@handijitcom/ui 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (878) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1023 -2
  3. package/build/base.css +1 -0
  4. package/build/calendar.cjs +2 -0
  5. package/build/calendar.cjs.map +1 -0
  6. package/build/calendar.css +1 -0
  7. package/build/calendar.js +741 -0
  8. package/build/calendar.js.map +1 -0
  9. package/build/charts.cjs +2 -0
  10. package/build/charts.cjs.map +1 -0
  11. package/build/charts.css +1 -0
  12. package/build/charts.js +1866 -0
  13. package/build/charts.js.map +1 -0
  14. package/build/chat.cjs +4 -0
  15. package/build/chat.cjs.map +1 -0
  16. package/build/chat.css +1 -0
  17. package/build/chat.js +1126 -0
  18. package/build/chat.js.map +1 -0
  19. package/build/components/Accordion/index.cjs +2 -0
  20. package/build/components/Accordion/index.cjs.map +1 -0
  21. package/build/components/Accordion/index.d.cts +29 -0
  22. package/build/components/Accordion/index.d.ts +29 -0
  23. package/build/components/Accordion/index.js +42 -0
  24. package/build/components/Accordion/index.js.map +1 -0
  25. package/build/components/Accordion/style.css +1 -0
  26. package/build/components/Alert/index.cjs +2 -0
  27. package/build/components/Alert/index.cjs.map +1 -0
  28. package/build/components/Alert/index.d.cts +15 -0
  29. package/build/components/Alert/index.d.ts +15 -0
  30. package/build/components/Alert/index.js +32 -0
  31. package/build/components/Alert/index.js.map +1 -0
  32. package/build/components/Alert/style.css +1 -0
  33. package/build/components/Avatar/index.cjs +2 -0
  34. package/build/components/Avatar/index.cjs.map +1 -0
  35. package/build/components/Avatar/index.d.cts +26 -0
  36. package/build/components/Avatar/index.d.ts +26 -0
  37. package/build/components/Avatar/index.js +57 -0
  38. package/build/components/Avatar/index.js.map +1 -0
  39. package/build/components/Avatar/style.css +1 -0
  40. package/build/components/Badge/index.cjs +2 -0
  41. package/build/components/Badge/index.cjs.map +1 -0
  42. package/build/components/Badge/index.d.cts +21 -0
  43. package/build/components/Badge/index.d.ts +21 -0
  44. package/build/components/Badge/index.js +26 -0
  45. package/build/components/Badge/index.js.map +1 -0
  46. package/build/components/Badge/style.css +1 -0
  47. package/build/components/BottomSheet/index.cjs +2 -0
  48. package/build/components/BottomSheet/index.cjs.map +1 -0
  49. package/build/components/BottomSheet/index.d.cts +21 -0
  50. package/build/components/BottomSheet/index.d.ts +21 -0
  51. package/build/components/BottomSheet/index.js +85 -0
  52. package/build/components/BottomSheet/index.js.map +1 -0
  53. package/build/components/BottomSheet/style.css +1 -0
  54. package/build/components/Breadcrumb/index.cjs +2 -0
  55. package/build/components/Breadcrumb/index.cjs.map +1 -0
  56. package/build/components/Breadcrumb/index.d.cts +20 -0
  57. package/build/components/Breadcrumb/index.d.ts +20 -0
  58. package/build/components/Breadcrumb/index.js +31 -0
  59. package/build/components/Breadcrumb/index.js.map +1 -0
  60. package/build/components/Breadcrumb/style.css +1 -0
  61. package/build/components/Button/index.cjs +2 -0
  62. package/build/components/Button/index.cjs.map +1 -0
  63. package/build/components/Button/index.d.cts +32 -0
  64. package/build/components/Button/index.d.ts +32 -0
  65. package/build/components/Button/index.js +88 -0
  66. package/build/components/Button/index.js.map +1 -0
  67. package/build/components/Button/style.css +1 -0
  68. package/build/components/Card/index.cjs +2 -0
  69. package/build/components/Card/index.cjs.map +1 -0
  70. package/build/components/Card/index.d.cts +51 -0
  71. package/build/components/Card/index.d.ts +51 -0
  72. package/build/components/Card/index.js +58 -0
  73. package/build/components/Card/index.js.map +1 -0
  74. package/build/components/Card/style.css +1 -0
  75. package/build/components/Carousel/index.cjs +2 -0
  76. package/build/components/Carousel/index.cjs.map +1 -0
  77. package/build/components/Carousel/index.d.cts +24 -0
  78. package/build/components/Carousel/index.d.ts +24 -0
  79. package/build/components/Carousel/index.js +111 -0
  80. package/build/components/Carousel/index.js.map +1 -0
  81. package/build/components/Carousel/style.css +1 -0
  82. package/build/components/Checkbox/index.cjs +2 -0
  83. package/build/components/Checkbox/index.cjs.map +1 -0
  84. package/build/components/Checkbox/index.d.cts +15 -0
  85. package/build/components/Checkbox/index.d.ts +15 -0
  86. package/build/components/Checkbox/index.js +50 -0
  87. package/build/components/Checkbox/index.js.map +1 -0
  88. package/build/components/Checkbox/style.css +1 -0
  89. package/build/components/Chip/index.cjs +2 -0
  90. package/build/components/Chip/index.cjs.map +1 -0
  91. package/build/components/Chip/index.d.cts +27 -0
  92. package/build/components/Chip/index.d.ts +27 -0
  93. package/build/components/Chip/index.js +67 -0
  94. package/build/components/Chip/index.js.map +1 -0
  95. package/build/components/Chip/style.css +1 -0
  96. package/build/components/ChipGroup/index.cjs +2 -0
  97. package/build/components/ChipGroup/index.cjs.map +1 -0
  98. package/build/components/ChipGroup/index.d.cts +53 -0
  99. package/build/components/ChipGroup/index.d.ts +53 -0
  100. package/build/components/ChipGroup/index.js +81 -0
  101. package/build/components/ChipGroup/index.js.map +1 -0
  102. package/build/components/ChipGroup/style.css +1 -0
  103. package/build/components/CodeBadge/index.cjs +2 -0
  104. package/build/components/CodeBadge/index.cjs.map +1 -0
  105. package/build/components/CodeBadge/index.d.cts +36 -0
  106. package/build/components/CodeBadge/index.d.ts +36 -0
  107. package/build/components/CodeBadge/index.js +62 -0
  108. package/build/components/CodeBadge/index.js.map +1 -0
  109. package/build/components/CodeBadge/style.css +1 -0
  110. package/build/components/Combobox/index.cjs +2 -0
  111. package/build/components/Combobox/index.cjs.map +1 -0
  112. package/build/components/Combobox/index.d.cts +8 -0
  113. package/build/components/Combobox/index.d.ts +8 -0
  114. package/build/components/Combobox/index.js +332 -0
  115. package/build/components/Combobox/index.js.map +1 -0
  116. package/build/components/Combobox/style.css +1 -0
  117. package/build/components/CommandPalette/index.cjs +2 -0
  118. package/build/components/CommandPalette/index.cjs.map +1 -0
  119. package/build/components/CommandPalette/index.d.cts +37 -0
  120. package/build/components/CommandPalette/index.d.ts +37 -0
  121. package/build/components/CommandPalette/index.js +181 -0
  122. package/build/components/CommandPalette/index.js.map +1 -0
  123. package/build/components/CommandPalette/style.css +1 -0
  124. package/build/components/ConfirmDialog/index.cjs +2 -0
  125. package/build/components/ConfirmDialog/index.cjs.map +1 -0
  126. package/build/components/ConfirmDialog/index.d.cts +34 -0
  127. package/build/components/ConfirmDialog/index.d.ts +34 -0
  128. package/build/components/ConfirmDialog/index.js +85 -0
  129. package/build/components/ConfirmDialog/index.js.map +1 -0
  130. package/build/components/CopyField/index.cjs +2 -0
  131. package/build/components/CopyField/index.cjs.map +1 -0
  132. package/build/components/CopyField/index.d.cts +20 -0
  133. package/build/components/CopyField/index.d.ts +20 -0
  134. package/build/components/CopyField/index.js +44 -0
  135. package/build/components/CopyField/index.js.map +1 -0
  136. package/build/components/CopyField/style.css +1 -0
  137. package/build/components/DataTable/index.cjs +2 -0
  138. package/build/components/DataTable/index.cjs.map +1 -0
  139. package/build/components/DataTable/index.d.cts +60 -0
  140. package/build/components/DataTable/index.d.ts +60 -0
  141. package/build/components/DataTable/index.js +109 -0
  142. package/build/components/DataTable/index.js.map +1 -0
  143. package/build/components/DataTable/style.css +1 -0
  144. package/build/components/DateField/index.cjs +2 -0
  145. package/build/components/DateField/index.cjs.map +1 -0
  146. package/build/components/DateField/index.d.cts +57 -0
  147. package/build/components/DateField/index.d.ts +57 -0
  148. package/build/components/DateField/index.js +90 -0
  149. package/build/components/DateField/index.js.map +1 -0
  150. package/build/components/DateField/style.css +1 -0
  151. package/build/components/Directory/index.cjs +2 -0
  152. package/build/components/Directory/index.cjs.map +1 -0
  153. package/build/components/Directory/index.d.cts +51 -0
  154. package/build/components/Directory/index.d.ts +51 -0
  155. package/build/components/Directory/index.js +46 -0
  156. package/build/components/Directory/index.js.map +1 -0
  157. package/build/components/Directory/style.css +1 -0
  158. package/build/components/Disclosure/index.cjs +2 -0
  159. package/build/components/Disclosure/index.cjs.map +1 -0
  160. package/build/components/Disclosure/index.d.cts +34 -0
  161. package/build/components/Disclosure/index.d.ts +34 -0
  162. package/build/components/Disclosure/index.js +64 -0
  163. package/build/components/Disclosure/index.js.map +1 -0
  164. package/build/components/Disclosure/style.css +1 -0
  165. package/build/components/Divider/index.cjs +2 -0
  166. package/build/components/Divider/index.cjs.map +1 -0
  167. package/build/components/Divider/index.d.cts +10 -0
  168. package/build/components/Divider/index.d.ts +10 -0
  169. package/build/components/Divider/index.js +24 -0
  170. package/build/components/Divider/index.js.map +1 -0
  171. package/build/components/Divider/style.css +1 -0
  172. package/build/components/Drawer/index.cjs +2 -0
  173. package/build/components/Drawer/index.cjs.map +1 -0
  174. package/build/components/Drawer/index.d.cts +29 -0
  175. package/build/components/Drawer/index.d.ts +29 -0
  176. package/build/components/Drawer/index.js +91 -0
  177. package/build/components/Drawer/index.js.map +1 -0
  178. package/build/components/Drawer/style.css +1 -0
  179. package/build/components/EmptyState/index.cjs +2 -0
  180. package/build/components/EmptyState/index.cjs.map +1 -0
  181. package/build/components/EmptyState/index.d.cts +19 -0
  182. package/build/components/EmptyState/index.d.ts +19 -0
  183. package/build/components/EmptyState/index.js +35 -0
  184. package/build/components/EmptyState/index.js.map +1 -0
  185. package/build/components/EmptyState/style.css +1 -0
  186. package/build/components/Field/index.cjs +2 -0
  187. package/build/components/Field/index.cjs.map +1 -0
  188. package/build/components/Field/index.d.cts +37 -0
  189. package/build/components/Field/index.d.ts +37 -0
  190. package/build/components/Field/index.js +54 -0
  191. package/build/components/Field/index.js.map +1 -0
  192. package/build/components/Field/style.css +1 -0
  193. package/build/components/FileUpload/index.cjs +2 -0
  194. package/build/components/FileUpload/index.cjs.map +1 -0
  195. package/build/components/FileUpload/index.d.cts +42 -0
  196. package/build/components/FileUpload/index.d.ts +42 -0
  197. package/build/components/FileUpload/index.js +145 -0
  198. package/build/components/FileUpload/index.js.map +1 -0
  199. package/build/components/FileUpload/style.css +1 -0
  200. package/build/components/FilterBar/index.cjs +2 -0
  201. package/build/components/FilterBar/index.cjs.map +1 -0
  202. package/build/components/FilterBar/index.d.cts +28 -0
  203. package/build/components/FilterBar/index.d.ts +28 -0
  204. package/build/components/FilterBar/index.js +35 -0
  205. package/build/components/FilterBar/index.js.map +1 -0
  206. package/build/components/FilterBar/style.css +1 -0
  207. package/build/components/IconButton/index.cjs +2 -0
  208. package/build/components/IconButton/index.cjs.map +1 -0
  209. package/build/components/IconButton/index.d.cts +26 -0
  210. package/build/components/IconButton/index.d.ts +26 -0
  211. package/build/components/IconButton/index.js +61 -0
  212. package/build/components/IconButton/index.js.map +1 -0
  213. package/build/components/IconButton/style.css +1 -0
  214. package/build/components/Input/index.cjs +2 -0
  215. package/build/components/Input/index.cjs.map +1 -0
  216. package/build/components/Input/index.d.cts +15 -0
  217. package/build/components/Input/index.d.ts +15 -0
  218. package/build/components/Input/index.js +52 -0
  219. package/build/components/Input/index.js.map +1 -0
  220. package/build/components/Input/style.css +1 -0
  221. package/build/components/Kbd/index.cjs +2 -0
  222. package/build/components/Kbd/index.cjs.map +1 -0
  223. package/build/components/Kbd/index.d.cts +12 -0
  224. package/build/components/Kbd/index.d.ts +12 -0
  225. package/build/components/Kbd/index.js +13 -0
  226. package/build/components/Kbd/index.js.map +1 -0
  227. package/build/components/Kbd/style.css +1 -0
  228. package/build/components/Link/index.cjs +2 -0
  229. package/build/components/Link/index.cjs.map +1 -0
  230. package/build/components/Link/index.d.cts +5 -0
  231. package/build/components/Link/index.d.ts +5 -0
  232. package/build/components/Link/index.js +11 -0
  233. package/build/components/Link/index.js.map +1 -0
  234. package/build/components/Menu/index.cjs +2 -0
  235. package/build/components/Menu/index.cjs.map +1 -0
  236. package/build/components/Menu/index.d.cts +46 -0
  237. package/build/components/Menu/index.d.ts +46 -0
  238. package/build/components/Menu/index.js +241 -0
  239. package/build/components/Menu/index.js.map +1 -0
  240. package/build/components/Menu/style.css +1 -0
  241. package/build/components/Modal/index.cjs +2 -0
  242. package/build/components/Modal/index.cjs.map +1 -0
  243. package/build/components/Modal/index.d.cts +35 -0
  244. package/build/components/Modal/index.d.ts +35 -0
  245. package/build/components/Modal/index.js +95 -0
  246. package/build/components/Modal/index.js.map +1 -0
  247. package/build/components/Modal/style.css +1 -0
  248. package/build/components/MoneyInput/index.cjs +2 -0
  249. package/build/components/MoneyInput/index.cjs.map +1 -0
  250. package/build/components/MoneyInput/index.d.cts +17 -0
  251. package/build/components/MoneyInput/index.d.ts +17 -0
  252. package/build/components/MoneyInput/index.js +22 -0
  253. package/build/components/MoneyInput/index.js.map +1 -0
  254. package/build/components/PageHeader/index.cjs +2 -0
  255. package/build/components/PageHeader/index.cjs.map +1 -0
  256. package/build/components/PageHeader/index.d.cts +24 -0
  257. package/build/components/PageHeader/index.d.ts +24 -0
  258. package/build/components/PageHeader/index.js +34 -0
  259. package/build/components/PageHeader/index.js.map +1 -0
  260. package/build/components/PageHeader/style.css +1 -0
  261. package/build/components/Pagination/index.cjs +2 -0
  262. package/build/components/Pagination/index.cjs.map +1 -0
  263. package/build/components/Pagination/index.d.cts +39 -0
  264. package/build/components/Pagination/index.d.ts +39 -0
  265. package/build/components/Pagination/index.js +128 -0
  266. package/build/components/Pagination/index.js.map +1 -0
  267. package/build/components/Pagination/style.css +1 -0
  268. package/build/components/Panel/index.cjs +2 -0
  269. package/build/components/Panel/index.cjs.map +1 -0
  270. package/build/components/Panel/index.d.cts +43 -0
  271. package/build/components/Panel/index.d.ts +43 -0
  272. package/build/components/Panel/index.js +55 -0
  273. package/build/components/Panel/index.js.map +1 -0
  274. package/build/components/Panel/style.css +1 -0
  275. package/build/components/PasswordInput/index.cjs +2 -0
  276. package/build/components/PasswordInput/index.cjs.map +1 -0
  277. package/build/components/PasswordInput/index.d.cts +14 -0
  278. package/build/components/PasswordInput/index.d.ts +14 -0
  279. package/build/components/PasswordInput/index.js +40 -0
  280. package/build/components/PasswordInput/index.js.map +1 -0
  281. package/build/components/PasswordInput/style.css +1 -0
  282. package/build/components/PercentInput/index.cjs +2 -0
  283. package/build/components/PercentInput/index.cjs.map +1 -0
  284. package/build/components/PercentInput/index.d.cts +10 -0
  285. package/build/components/PercentInput/index.d.ts +10 -0
  286. package/build/components/PercentInput/index.js +14 -0
  287. package/build/components/PercentInput/index.js.map +1 -0
  288. package/build/components/Popover/index.cjs +2 -0
  289. package/build/components/Popover/index.cjs.map +1 -0
  290. package/build/components/Popover/index.d.cts +26 -0
  291. package/build/components/Popover/index.d.ts +26 -0
  292. package/build/components/Popover/index.js +106 -0
  293. package/build/components/Popover/index.js.map +1 -0
  294. package/build/components/Popover/style.css +1 -0
  295. package/build/components/Price/index.cjs +2 -0
  296. package/build/components/Price/index.cjs.map +1 -0
  297. package/build/components/Price/index.d.cts +22 -0
  298. package/build/components/Price/index.d.ts +22 -0
  299. package/build/components/Price/index.js +46 -0
  300. package/build/components/Price/index.js.map +1 -0
  301. package/build/components/Price/style.css +1 -0
  302. package/build/components/Progress/index.cjs +2 -0
  303. package/build/components/Progress/index.cjs.map +1 -0
  304. package/build/components/Progress/index.d.cts +59 -0
  305. package/build/components/Progress/index.d.ts +59 -0
  306. package/build/components/Progress/index.js +124 -0
  307. package/build/components/Progress/index.js.map +1 -0
  308. package/build/components/Progress/style.css +1 -0
  309. package/build/components/PromptDialog/index.cjs +2 -0
  310. package/build/components/PromptDialog/index.cjs.map +1 -0
  311. package/build/components/PromptDialog/index.d.cts +36 -0
  312. package/build/components/PromptDialog/index.d.ts +36 -0
  313. package/build/components/PromptDialog/index.js +119 -0
  314. package/build/components/PromptDialog/index.js.map +1 -0
  315. package/build/components/PromptDialog/style.css +1 -0
  316. package/build/components/QuantityInput/index.cjs +2 -0
  317. package/build/components/QuantityInput/index.cjs.map +1 -0
  318. package/build/components/QuantityInput/index.d.cts +17 -0
  319. package/build/components/QuantityInput/index.d.ts +17 -0
  320. package/build/components/QuantityInput/index.js +23 -0
  321. package/build/components/QuantityInput/index.js.map +1 -0
  322. package/build/components/QuantityStepper/index.cjs +2 -0
  323. package/build/components/QuantityStepper/index.cjs.map +1 -0
  324. package/build/components/QuantityStepper/index.d.cts +37 -0
  325. package/build/components/QuantityStepper/index.d.ts +37 -0
  326. package/build/components/QuantityStepper/index.js +118 -0
  327. package/build/components/QuantityStepper/index.js.map +1 -0
  328. package/build/components/QuantityStepper/style.css +1 -0
  329. package/build/components/Radio/index.cjs +2 -0
  330. package/build/components/Radio/index.cjs.map +1 -0
  331. package/build/components/Radio/index.d.cts +18 -0
  332. package/build/components/Radio/index.d.ts +18 -0
  333. package/build/components/Radio/index.js +53 -0
  334. package/build/components/Radio/index.js.map +1 -0
  335. package/build/components/Radio/style.css +1 -0
  336. package/build/components/RadioCard/index.cjs +2 -0
  337. package/build/components/RadioCard/index.cjs.map +1 -0
  338. package/build/components/RadioCard/index.d.cts +16 -0
  339. package/build/components/RadioCard/index.d.ts +16 -0
  340. package/build/components/RadioCard/index.js +48 -0
  341. package/build/components/RadioCard/index.js.map +1 -0
  342. package/build/components/RadioCard/style.css +1 -0
  343. package/build/components/RangeSlider/index.cjs +2 -0
  344. package/build/components/RangeSlider/index.cjs.map +1 -0
  345. package/build/components/RangeSlider/index.d.cts +45 -0
  346. package/build/components/RangeSlider/index.d.ts +45 -0
  347. package/build/components/RangeSlider/index.js +121 -0
  348. package/build/components/RangeSlider/index.js.map +1 -0
  349. package/build/components/RangeSlider/style.css +1 -0
  350. package/build/components/RateInput/index.cjs +2 -0
  351. package/build/components/RateInput/index.cjs.map +1 -0
  352. package/build/components/RateInput/index.d.cts +9 -0
  353. package/build/components/RateInput/index.d.ts +9 -0
  354. package/build/components/RateInput/index.js +18 -0
  355. package/build/components/RateInput/index.js.map +1 -0
  356. package/build/components/Rating/index.cjs +2 -0
  357. package/build/components/Rating/index.cjs.map +1 -0
  358. package/build/components/Rating/index.d.cts +16 -0
  359. package/build/components/Rating/index.d.ts +16 -0
  360. package/build/components/Rating/index.js +29 -0
  361. package/build/components/Rating/index.js.map +1 -0
  362. package/build/components/Rating/style.css +1 -0
  363. package/build/components/RatingInput/index.cjs +2 -0
  364. package/build/components/RatingInput/index.cjs.map +1 -0
  365. package/build/components/RatingInput/index.d.cts +34 -0
  366. package/build/components/RatingInput/index.d.ts +34 -0
  367. package/build/components/RatingInput/index.js +89 -0
  368. package/build/components/RatingInput/index.js.map +1 -0
  369. package/build/components/RatingInput/style.css +1 -0
  370. package/build/components/ScaledInput/index.cjs +2 -0
  371. package/build/components/ScaledInput/index.cjs.map +1 -0
  372. package/build/components/ScaledInput/index.d.cts +77 -0
  373. package/build/components/ScaledInput/index.d.ts +77 -0
  374. package/build/components/ScaledInput/index.js +77 -0
  375. package/build/components/ScaledInput/index.js.map +1 -0
  376. package/build/components/ScaledInput/style.css +1 -0
  377. package/build/components/ScrollArea/index.cjs +2 -0
  378. package/build/components/ScrollArea/index.cjs.map +1 -0
  379. package/build/components/ScrollArea/index.d.cts +23 -0
  380. package/build/components/ScrollArea/index.d.ts +23 -0
  381. package/build/components/ScrollArea/index.js +65 -0
  382. package/build/components/ScrollArea/index.js.map +1 -0
  383. package/build/components/ScrollArea/style.css +1 -0
  384. package/build/components/SectionHeader/index.cjs +2 -0
  385. package/build/components/SectionHeader/index.cjs.map +1 -0
  386. package/build/components/SectionHeader/index.d.cts +17 -0
  387. package/build/components/SectionHeader/index.d.ts +17 -0
  388. package/build/components/SectionHeader/index.js +25 -0
  389. package/build/components/SectionHeader/index.js.map +1 -0
  390. package/build/components/SectionHeader/style.css +1 -0
  391. package/build/components/SegmentedControl/index.cjs +2 -0
  392. package/build/components/SegmentedControl/index.cjs.map +1 -0
  393. package/build/components/SegmentedControl/index.d.cts +39 -0
  394. package/build/components/SegmentedControl/index.d.ts +39 -0
  395. package/build/components/SegmentedControl/index.js +84 -0
  396. package/build/components/SegmentedControl/index.js.map +1 -0
  397. package/build/components/SegmentedControl/style.css +1 -0
  398. package/build/components/Select/index.cjs +2 -0
  399. package/build/components/Select/index.cjs.map +1 -0
  400. package/build/components/Select/index.d.cts +52 -0
  401. package/build/components/Select/index.d.ts +52 -0
  402. package/build/components/Select/index.js +206 -0
  403. package/build/components/Select/index.js.map +1 -0
  404. package/build/components/Select/style.css +1 -0
  405. package/build/components/Skeleton/index.cjs +2 -0
  406. package/build/components/Skeleton/index.cjs.map +1 -0
  407. package/build/components/Skeleton/index.d.cts +25 -0
  408. package/build/components/Skeleton/index.d.ts +25 -0
  409. package/build/components/Skeleton/index.js +50 -0
  410. package/build/components/Skeleton/index.js.map +1 -0
  411. package/build/components/Skeleton/style.css +1 -0
  412. package/build/components/Spinner/index.cjs +2 -0
  413. package/build/components/Spinner/index.cjs.map +1 -0
  414. package/build/components/Spinner/index.d.cts +16 -0
  415. package/build/components/Spinner/index.d.ts +16 -0
  416. package/build/components/Spinner/index.js +15 -0
  417. package/build/components/Spinner/index.js.map +1 -0
  418. package/build/components/Spinner/style.css +1 -0
  419. package/build/components/Stat/index.cjs +2 -0
  420. package/build/components/Stat/index.cjs.map +1 -0
  421. package/build/components/Stat/index.d.cts +34 -0
  422. package/build/components/Stat/index.d.ts +34 -0
  423. package/build/components/Stat/index.js +72 -0
  424. package/build/components/Stat/index.js.map +1 -0
  425. package/build/components/Stat/style.css +1 -0
  426. package/build/components/StatusDot/index.cjs +2 -0
  427. package/build/components/StatusDot/index.cjs.map +1 -0
  428. package/build/components/StatusDot/index.d.cts +23 -0
  429. package/build/components/StatusDot/index.d.ts +23 -0
  430. package/build/components/StatusDot/index.js +23 -0
  431. package/build/components/StatusDot/index.js.map +1 -0
  432. package/build/components/StatusDot/style.css +1 -0
  433. package/build/components/Steps/index.cjs +2 -0
  434. package/build/components/Steps/index.cjs.map +1 -0
  435. package/build/components/Steps/index.d.cts +23 -0
  436. package/build/components/Steps/index.d.ts +23 -0
  437. package/build/components/Steps/index.js +69 -0
  438. package/build/components/Steps/index.js.map +1 -0
  439. package/build/components/Steps/style.css +1 -0
  440. package/build/components/SummaryCard/index.cjs +2 -0
  441. package/build/components/SummaryCard/index.cjs.map +1 -0
  442. package/build/components/SummaryCard/index.d.cts +24 -0
  443. package/build/components/SummaryCard/index.d.ts +24 -0
  444. package/build/components/SummaryCard/index.js +33 -0
  445. package/build/components/SummaryCard/index.js.map +1 -0
  446. package/build/components/SummaryCard/style.css +1 -0
  447. package/build/components/Switch/index.cjs +2 -0
  448. package/build/components/Switch/index.cjs.map +1 -0
  449. package/build/components/Switch/index.d.cts +21 -0
  450. package/build/components/Switch/index.d.ts +21 -0
  451. package/build/components/Switch/index.js +60 -0
  452. package/build/components/Switch/index.js.map +1 -0
  453. package/build/components/Switch/style.css +1 -0
  454. package/build/components/Table/index.cjs +2 -0
  455. package/build/components/Table/index.cjs.map +1 -0
  456. package/build/components/Table/index.d.cts +28 -0
  457. package/build/components/Table/index.d.ts +28 -0
  458. package/build/components/Table/index.js +58 -0
  459. package/build/components/Table/index.js.map +1 -0
  460. package/build/components/Table/style.css +1 -0
  461. package/build/components/TableCheckbox/index.cjs +2 -0
  462. package/build/components/TableCheckbox/index.cjs.map +1 -0
  463. package/build/components/TableCheckbox/index.d.cts +15 -0
  464. package/build/components/TableCheckbox/index.d.ts +15 -0
  465. package/build/components/TableCheckbox/index.js +31 -0
  466. package/build/components/TableCheckbox/index.js.map +1 -0
  467. package/build/components/TableCheckbox/style.css +1 -0
  468. package/build/components/Tabs/index.cjs +2 -0
  469. package/build/components/Tabs/index.cjs.map +1 -0
  470. package/build/components/Tabs/index.d.cts +27 -0
  471. package/build/components/Tabs/index.d.ts +27 -0
  472. package/build/components/Tabs/index.js +102 -0
  473. package/build/components/Tabs/index.js.map +1 -0
  474. package/build/components/Tabs/style.css +1 -0
  475. package/build/components/TagInput/index.cjs +2 -0
  476. package/build/components/TagInput/index.cjs.map +1 -0
  477. package/build/components/TagInput/index.d.cts +43 -0
  478. package/build/components/TagInput/index.d.ts +43 -0
  479. package/build/components/TagInput/index.js +134 -0
  480. package/build/components/TagInput/index.js.map +1 -0
  481. package/build/components/TagInput/style.css +1 -0
  482. package/build/components/TextLink/index.cjs +2 -0
  483. package/build/components/TextLink/index.cjs.map +1 -0
  484. package/build/components/TextLink/index.d.cts +16 -0
  485. package/build/components/TextLink/index.d.ts +16 -0
  486. package/build/components/TextLink/index.js +32 -0
  487. package/build/components/TextLink/index.js.map +1 -0
  488. package/build/components/TextLink/style.css +1 -0
  489. package/build/components/Textarea/index.cjs +2 -0
  490. package/build/components/Textarea/index.cjs.map +1 -0
  491. package/build/components/Textarea/index.d.cts +20 -0
  492. package/build/components/Textarea/index.d.ts +20 -0
  493. package/build/components/Textarea/index.js +68 -0
  494. package/build/components/Textarea/index.js.map +1 -0
  495. package/build/components/Textarea/style.css +1 -0
  496. package/build/components/Tile/index.cjs +2 -0
  497. package/build/components/Tile/index.cjs.map +1 -0
  498. package/build/components/Tile/index.d.cts +19 -0
  499. package/build/components/Tile/index.d.ts +19 -0
  500. package/build/components/Tile/index.js +24 -0
  501. package/build/components/Tile/index.js.map +1 -0
  502. package/build/components/Tile/style.css +1 -0
  503. package/build/components/Timeline/index.cjs +2 -0
  504. package/build/components/Timeline/index.cjs.map +1 -0
  505. package/build/components/Timeline/index.d.cts +24 -0
  506. package/build/components/Timeline/index.d.ts +24 -0
  507. package/build/components/Timeline/index.js +56 -0
  508. package/build/components/Timeline/index.js.map +1 -0
  509. package/build/components/Timeline/style.css +1 -0
  510. package/build/components/Toast/index.cjs +2 -0
  511. package/build/components/Toast/index.cjs.map +1 -0
  512. package/build/components/Toast/index.d.cts +63 -0
  513. package/build/components/Toast/index.d.ts +63 -0
  514. package/build/components/Toast/index.js +159 -0
  515. package/build/components/Toast/index.js.map +1 -0
  516. package/build/components/Toast/style.css +1 -0
  517. package/build/components/ToastPortal/index.cjs +2 -0
  518. package/build/components/ToastPortal/index.cjs.map +1 -0
  519. package/build/components/ToastPortal/index.d.cts +10 -0
  520. package/build/components/ToastPortal/index.d.ts +10 -0
  521. package/build/components/ToastPortal/index.js +15 -0
  522. package/build/components/ToastPortal/index.js.map +1 -0
  523. package/build/components/Tooltip/index.cjs +2 -0
  524. package/build/components/Tooltip/index.cjs.map +1 -0
  525. package/build/components/Tooltip/index.d.cts +23 -0
  526. package/build/components/Tooltip/index.d.ts +23 -0
  527. package/build/components/Tooltip/index.js +116 -0
  528. package/build/components/Tooltip/index.js.map +1 -0
  529. package/build/components/Tooltip/style.css +1 -0
  530. package/build/constants/breakpoint.constants.cjs +2 -0
  531. package/build/constants/breakpoint.constants.cjs.map +1 -0
  532. package/build/constants/breakpoint.constants.d.cts +15 -0
  533. package/build/constants/breakpoint.constants.d.ts +15 -0
  534. package/build/constants/breakpoint.constants.js +12 -0
  535. package/build/constants/breakpoint.constants.js.map +1 -0
  536. package/build/constants/combobox.constants.cjs +2 -0
  537. package/build/constants/combobox.constants.cjs.map +1 -0
  538. package/build/constants/combobox.constants.d.cts +11 -0
  539. package/build/constants/combobox.constants.d.ts +11 -0
  540. package/build/constants/combobox.constants.js +7 -0
  541. package/build/constants/combobox.constants.js.map +1 -0
  542. package/build/constants/scale.constants.cjs +2 -0
  543. package/build/constants/scale.constants.cjs.map +1 -0
  544. package/build/constants/scale.constants.d.cts +11 -0
  545. package/build/constants/scale.constants.d.ts +11 -0
  546. package/build/constants/scale.constants.js +8 -0
  547. package/build/constants/scale.constants.js.map +1 -0
  548. package/build/constants/scroll.constants.cjs +2 -0
  549. package/build/constants/scroll.constants.cjs.map +1 -0
  550. package/build/constants/scroll.constants.d.cts +7 -0
  551. package/build/constants/scroll.constants.d.ts +7 -0
  552. package/build/constants/scroll.constants.js +5 -0
  553. package/build/constants/scroll.constants.js.map +1 -0
  554. package/build/enums/ui-size.enum.cjs +2 -0
  555. package/build/enums/ui-size.enum.cjs.map +1 -0
  556. package/build/enums/ui-size.enum.d.cts +12 -0
  557. package/build/enums/ui-size.enum.d.ts +12 -0
  558. package/build/enums/ui-size.enum.js +5 -0
  559. package/build/enums/ui-size.enum.js.map +1 -0
  560. package/build/enums/ui-variant.enum.cjs +2 -0
  561. package/build/enums/ui-variant.enum.cjs.map +1 -0
  562. package/build/enums/ui-variant.enum.d.cts +20 -0
  563. package/build/enums/ui-variant.enum.d.ts +20 -0
  564. package/build/enums/ui-variant.enum.js +5 -0
  565. package/build/enums/ui-variant.enum.js.map +1 -0
  566. package/build/helpers/aria.helper.cjs +2 -0
  567. package/build/helpers/aria.helper.cjs.map +1 -0
  568. package/build/helpers/aria.helper.d.cts +7 -0
  569. package/build/helpers/aria.helper.d.ts +7 -0
  570. package/build/helpers/aria.helper.js +5 -0
  571. package/build/helpers/aria.helper.js.map +1 -0
  572. package/build/helpers/class-name.helper.cjs +2 -0
  573. package/build/helpers/class-name.helper.cjs.map +1 -0
  574. package/build/helpers/class-name.helper.d.cts +3 -0
  575. package/build/helpers/class-name.helper.d.ts +3 -0
  576. package/build/helpers/class-name.helper.js +10 -0
  577. package/build/helpers/class-name.helper.js.map +1 -0
  578. package/build/helpers/component.helper.cjs +2 -0
  579. package/build/helpers/component.helper.cjs.map +1 -0
  580. package/build/helpers/component.helper.d.cts +13 -0
  581. package/build/helpers/component.helper.d.ts +13 -0
  582. package/build/helpers/component.helper.js +5 -0
  583. package/build/helpers/component.helper.js.map +1 -0
  584. package/build/helpers/focus.helper.cjs +2 -0
  585. package/build/helpers/focus.helper.cjs.map +1 -0
  586. package/build/helpers/focus.helper.d.cts +90 -0
  587. package/build/helpers/focus.helper.d.ts +90 -0
  588. package/build/helpers/focus.helper.js +83 -0
  589. package/build/helpers/focus.helper.js.map +1 -0
  590. package/build/helpers/label.helper.cjs +2 -0
  591. package/build/helpers/label.helper.cjs.map +1 -0
  592. package/build/helpers/label.helper.d.cts +11 -0
  593. package/build/helpers/label.helper.d.ts +11 -0
  594. package/build/helpers/label.helper.js +11 -0
  595. package/build/helpers/label.helper.js.map +1 -0
  596. package/build/helpers/portal.helper.cjs +2 -0
  597. package/build/helpers/portal.helper.cjs.map +1 -0
  598. package/build/helpers/portal.helper.d.cts +28 -0
  599. package/build/helpers/portal.helper.d.ts +28 -0
  600. package/build/helpers/portal.helper.js +36 -0
  601. package/build/helpers/portal.helper.js.map +1 -0
  602. package/build/helpers/ref.helper.cjs +2 -0
  603. package/build/helpers/ref.helper.cjs.map +1 -0
  604. package/build/helpers/ref.helper.d.cts +3 -0
  605. package/build/helpers/ref.helper.d.ts +3 -0
  606. package/build/helpers/ref.helper.js +7 -0
  607. package/build/helpers/ref.helper.js.map +1 -0
  608. package/build/helpers/scaled-number.helper.cjs +2 -0
  609. package/build/helpers/scaled-number.helper.cjs.map +1 -0
  610. package/build/helpers/scaled-number.helper.d.cts +55 -0
  611. package/build/helpers/scaled-number.helper.d.ts +55 -0
  612. package/build/helpers/scaled-number.helper.js +34 -0
  613. package/build/helpers/scaled-number.helper.js.map +1 -0
  614. package/build/helpers/scroll.helper.cjs +2 -0
  615. package/build/helpers/scroll.helper.cjs.map +1 -0
  616. package/build/helpers/scroll.helper.d.cts +8 -0
  617. package/build/helpers/scroll.helper.d.ts +8 -0
  618. package/build/helpers/scroll.helper.js +11 -0
  619. package/build/helpers/scroll.helper.js.map +1 -0
  620. package/build/helpers/text.helper.cjs +2 -0
  621. package/build/helpers/text.helper.cjs.map +1 -0
  622. package/build/helpers/text.helper.d.cts +5 -0
  623. package/build/helpers/text.helper.d.ts +5 -0
  624. package/build/helpers/text.helper.js +6 -0
  625. package/build/helpers/text.helper.js.map +1 -0
  626. package/build/helpers/theme.helper.cjs +2 -0
  627. package/build/helpers/theme.helper.cjs.map +1 -0
  628. package/build/helpers/theme.helper.d.cts +18 -0
  629. package/build/helpers/theme.helper.d.ts +18 -0
  630. package/build/helpers/theme.helper.js +37 -0
  631. package/build/helpers/theme.helper.js.map +1 -0
  632. package/build/hooks/useAnnounce.cjs +2 -0
  633. package/build/hooks/useAnnounce.cjs.map +1 -0
  634. package/build/hooks/useAnnounce.d.cts +4 -0
  635. package/build/hooks/useAnnounce.d.ts +4 -0
  636. package/build/hooks/useAnnounce.js +23 -0
  637. package/build/hooks/useAnnounce.js.map +1 -0
  638. package/build/hooks/useAsyncSearch.cjs +2 -0
  639. package/build/hooks/useAsyncSearch.cjs.map +1 -0
  640. package/build/hooks/useAsyncSearch.d.cts +11 -0
  641. package/build/hooks/useAsyncSearch.d.ts +11 -0
  642. package/build/hooks/useAsyncSearch.js +17 -0
  643. package/build/hooks/useAsyncSearch.js.map +1 -0
  644. package/build/hooks/useCopyFeedback.cjs +2 -0
  645. package/build/hooks/useCopyFeedback.cjs.map +1 -0
  646. package/build/hooks/useCopyFeedback.d.cts +10 -0
  647. package/build/hooks/useCopyFeedback.d.ts +10 -0
  648. package/build/hooks/useCopyFeedback.js +25 -0
  649. package/build/hooks/useCopyFeedback.js.map +1 -0
  650. package/build/hooks/useDismissOnEscape.cjs +2 -0
  651. package/build/hooks/useDismissOnEscape.cjs.map +1 -0
  652. package/build/hooks/useDismissOnEscape.d.cts +16 -0
  653. package/build/hooks/useDismissOnEscape.d.ts +16 -0
  654. package/build/hooks/useDismissOnEscape.js +18 -0
  655. package/build/hooks/useDismissOnEscape.js.map +1 -0
  656. package/build/hooks/useListboxNavigation.cjs +2 -0
  657. package/build/hooks/useListboxNavigation.cjs.map +1 -0
  658. package/build/hooks/useListboxNavigation.d.cts +7 -0
  659. package/build/hooks/useListboxNavigation.d.ts +7 -0
  660. package/build/hooks/useListboxNavigation.js +53 -0
  661. package/build/hooks/useListboxNavigation.js.map +1 -0
  662. package/build/hooks/usePortalSurface.cjs +2 -0
  663. package/build/hooks/usePortalSurface.cjs.map +1 -0
  664. package/build/hooks/usePortalSurface.d.cts +25 -0
  665. package/build/hooks/usePortalSurface.d.ts +25 -0
  666. package/build/hooks/usePortalSurface.js +19 -0
  667. package/build/hooks/usePortalSurface.js.map +1 -0
  668. package/build/hooks/usePositioning.cjs +2 -0
  669. package/build/hooks/usePositioning.cjs.map +1 -0
  670. package/build/hooks/usePositioning.d.cts +13 -0
  671. package/build/hooks/usePositioning.d.ts +13 -0
  672. package/build/hooks/usePositioning.js +74 -0
  673. package/build/hooks/usePositioning.js.map +1 -0
  674. package/build/hooks/useScrollLock.cjs +2 -0
  675. package/build/hooks/useScrollLock.cjs.map +1 -0
  676. package/build/hooks/useScrollLock.d.cts +2 -0
  677. package/build/hooks/useScrollLock.d.ts +2 -0
  678. package/build/hooks/useScrollLock.js +34 -0
  679. package/build/hooks/useScrollLock.js.map +1 -0
  680. package/build/hooks/useSheetViewport.cjs +2 -0
  681. package/build/hooks/useSheetViewport.cjs.map +1 -0
  682. package/build/hooks/useSheetViewport.d.cts +6 -0
  683. package/build/hooks/useSheetViewport.d.ts +6 -0
  684. package/build/hooks/useSheetViewport.js +29 -0
  685. package/build/hooks/useSheetViewport.js.map +1 -0
  686. package/build/hooks/useStickToBottom.cjs +2 -0
  687. package/build/hooks/useStickToBottom.cjs.map +1 -0
  688. package/build/hooks/useStickToBottom.d.cts +12 -0
  689. package/build/hooks/useStickToBottom.d.ts +12 -0
  690. package/build/hooks/useStickToBottom.js +39 -0
  691. package/build/hooks/useStickToBottom.js.map +1 -0
  692. package/build/hooks/useUiTheme.cjs +2 -0
  693. package/build/hooks/useUiTheme.cjs.map +1 -0
  694. package/build/hooks/useUiTheme.d.cts +10 -0
  695. package/build/hooks/useUiTheme.d.ts +10 -0
  696. package/build/hooks/useUiTheme.js +42 -0
  697. package/build/hooks/useUiTheme.js.map +1 -0
  698. package/build/hooks/useUiTokens.cjs +2 -0
  699. package/build/hooks/useUiTokens.cjs.map +1 -0
  700. package/build/hooks/useUiTokens.d.cts +11 -0
  701. package/build/hooks/useUiTokens.d.ts +11 -0
  702. package/build/hooks/useUiTokens.js +36 -0
  703. package/build/hooks/useUiTokens.js.map +1 -0
  704. package/build/hooks/useVirtualList.cjs +2 -0
  705. package/build/hooks/useVirtualList.cjs.map +1 -0
  706. package/build/hooks/useVirtualList.d.cts +13 -0
  707. package/build/hooks/useVirtualList.d.ts +13 -0
  708. package/build/hooks/useVirtualList.js +41 -0
  709. package/build/hooks/useVirtualList.js.map +1 -0
  710. package/build/index.cjs +2 -0
  711. package/build/index.cjs.map +1 -0
  712. package/build/index.d.cts +98 -0
  713. package/build/index.d.ts +98 -0
  714. package/build/index.js +209 -0
  715. package/build/index.js.map +1 -0
  716. package/build/scss/_index.scss +7 -0
  717. package/build/scss/_mixins.scss +861 -0
  718. package/build/scss/_variables.scss +245 -0
  719. package/build/styles/base.d.cts +0 -0
  720. package/build/styles/base.d.ts +0 -0
  721. package/build/styles.css +135 -0
  722. package/build/theme/UiProvider.cjs +2 -0
  723. package/build/theme/UiProvider.cjs.map +1 -0
  724. package/build/theme/UiProvider.d.cts +23 -0
  725. package/build/theme/UiProvider.d.ts +23 -0
  726. package/build/theme/UiProvider.js +12 -0
  727. package/build/theme/UiProvider.js.map +1 -0
  728. package/build/theme/UiThemeScript.cjs +2 -0
  729. package/build/theme/UiThemeScript.cjs.map +1 -0
  730. package/build/theme/UiThemeScript.d.cts +22 -0
  731. package/build/theme/UiThemeScript.d.ts +22 -0
  732. package/build/theme/UiThemeScript.js +8 -0
  733. package/build/theme/UiThemeScript.js.map +1 -0
  734. package/build/theme/context.cjs +2 -0
  735. package/build/theme/context.cjs.map +1 -0
  736. package/build/theme/context.d.cts +5 -0
  737. package/build/theme/context.d.ts +5 -0
  738. package/build/theme/context.js +8 -0
  739. package/build/theme/context.js.map +1 -0
  740. package/build/types/calendar/Calendar/EventBlock.d.cts +29 -0
  741. package/build/types/calendar/Calendar/EventBlock.d.ts +29 -0
  742. package/build/types/calendar/Calendar/MonthGrid.d.cts +28 -0
  743. package/build/types/calendar/Calendar/MonthGrid.d.ts +28 -0
  744. package/build/types/calendar/Calendar/TimeGrid.d.cts +37 -0
  745. package/build/types/calendar/Calendar/TimeGrid.d.ts +37 -0
  746. package/build/types/calendar/Calendar/index.d.cts +72 -0
  747. package/build/types/calendar/Calendar/index.d.ts +72 -0
  748. package/build/types/calendar/core/layout.d.cts +43 -0
  749. package/build/types/calendar/core/layout.d.ts +43 -0
  750. package/build/types/calendar/core/moves.d.cts +37 -0
  751. package/build/types/calendar/core/moves.d.ts +37 -0
  752. package/build/types/calendar/core/time.d.cts +19 -0
  753. package/build/types/calendar/core/time.d.ts +19 -0
  754. package/build/types/calendar/core/types.d.cts +75 -0
  755. package/build/types/calendar/core/types.d.ts +75 -0
  756. package/build/types/calendar/core/useCalendarDrag.d.cts +32 -0
  757. package/build/types/calendar/core/useCalendarDrag.d.ts +32 -0
  758. package/build/types/calendar/index.d.cts +13 -0
  759. package/build/types/calendar/index.d.ts +13 -0
  760. package/build/types/charts/AreaChart/index.d.cts +14 -0
  761. package/build/types/charts/AreaChart/index.d.ts +14 -0
  762. package/build/types/charts/BarChart/index.d.cts +16 -0
  763. package/build/types/charts/BarChart/index.d.ts +16 -0
  764. package/build/types/charts/BoxPlot/index.d.cts +43 -0
  765. package/build/types/charts/BoxPlot/index.d.ts +43 -0
  766. package/build/types/charts/ComposedChart/index.d.cts +16 -0
  767. package/build/types/charts/ComposedChart/index.d.ts +16 -0
  768. package/build/types/charts/Heatmap/index.d.cts +30 -0
  769. package/build/types/charts/Heatmap/index.d.ts +30 -0
  770. package/build/types/charts/Histogram/index.d.cts +29 -0
  771. package/build/types/charts/Histogram/index.d.ts +29 -0
  772. package/build/types/charts/LineChart/index.d.cts +14 -0
  773. package/build/types/charts/LineChart/index.d.ts +14 -0
  774. package/build/types/charts/PieChart/index.d.cts +36 -0
  775. package/build/types/charts/PieChart/index.d.ts +36 -0
  776. package/build/types/charts/RadarChart/index.d.cts +40 -0
  777. package/build/types/charts/RadarChart/index.d.ts +40 -0
  778. package/build/types/charts/ScatterPlot/index.d.cts +41 -0
  779. package/build/types/charts/ScatterPlot/index.d.ts +41 -0
  780. package/build/types/charts/core/CartesianChart.d.cts +43 -0
  781. package/build/types/charts/core/CartesianChart.d.ts +43 -0
  782. package/build/types/charts/core/ChartFrame.d.cts +55 -0
  783. package/build/types/charts/core/ChartFrame.d.ts +55 -0
  784. package/build/types/charts/core/axes.d.cts +37 -0
  785. package/build/types/charts/core/axes.d.ts +37 -0
  786. package/build/types/charts/core/cartesian.d.cts +80 -0
  787. package/build/types/charts/core/cartesian.d.ts +80 -0
  788. package/build/types/charts/core/format.d.cts +19 -0
  789. package/build/types/charts/core/format.d.ts +19 -0
  790. package/build/types/charts/core/margins.d.cts +9 -0
  791. package/build/types/charts/core/margins.d.ts +9 -0
  792. package/build/types/charts/core/palette.d.cts +11 -0
  793. package/build/types/charts/core/palette.d.ts +11 -0
  794. package/build/types/charts/core/path.d.cts +24 -0
  795. package/build/types/charts/core/path.d.ts +24 -0
  796. package/build/types/charts/core/scale.d.cts +40 -0
  797. package/build/types/charts/core/scale.d.ts +40 -0
  798. package/build/types/charts/core/series.d.cts +11 -0
  799. package/build/types/charts/core/series.d.ts +11 -0
  800. package/build/types/charts/core/spatial.d.cts +12 -0
  801. package/build/types/charts/core/spatial.d.ts +12 -0
  802. package/build/types/charts/core/stats.d.cts +34 -0
  803. package/build/types/charts/core/stats.d.ts +34 -0
  804. package/build/types/charts/core/types.d.cts +31 -0
  805. package/build/types/charts/core/types.d.ts +31 -0
  806. package/build/types/charts/core/useChartWidth.d.cts +7 -0
  807. package/build/types/charts/core/useChartWidth.d.ts +7 -0
  808. package/build/types/charts/index.d.cts +21 -0
  809. package/build/types/charts/index.d.ts +21 -0
  810. package/build/types/chat/ActionList/index.d.cts +46 -0
  811. package/build/types/chat/ActionList/index.d.ts +46 -0
  812. package/build/types/chat/AppBar/index.d.cts +21 -0
  813. package/build/types/chat/AppBar/index.d.ts +21 -0
  814. package/build/types/chat/ChatMessage/index.d.cts +24 -0
  815. package/build/types/chat/ChatMessage/index.d.ts +24 -0
  816. package/build/types/chat/ChatThread/index.d.cts +24 -0
  817. package/build/types/chat/ChatThread/index.d.ts +24 -0
  818. package/build/types/chat/Citation/index.d.cts +15 -0
  819. package/build/types/chat/Citation/index.d.ts +15 -0
  820. package/build/types/chat/CodeBlock/format.d.cts +7 -0
  821. package/build/types/chat/CodeBlock/format.d.ts +7 -0
  822. package/build/types/chat/CodeBlock/grammars.d.cts +44 -0
  823. package/build/types/chat/CodeBlock/grammars.d.ts +44 -0
  824. package/build/types/chat/CodeBlock/highlight.d.cts +22 -0
  825. package/build/types/chat/CodeBlock/highlight.d.ts +22 -0
  826. package/build/types/chat/CodeBlock/index.d.cts +33 -0
  827. package/build/types/chat/CodeBlock/index.d.ts +33 -0
  828. package/build/types/chat/DescriptionList/index.d.cts +16 -0
  829. package/build/types/chat/DescriptionList/index.d.ts +16 -0
  830. package/build/types/chat/Legend/index.d.cts +21 -0
  831. package/build/types/chat/Legend/index.d.ts +21 -0
  832. package/build/types/chat/MessageActions/index.d.cts +21 -0
  833. package/build/types/chat/MessageActions/index.d.ts +21 -0
  834. package/build/types/chat/PromptInput/index.d.cts +47 -0
  835. package/build/types/chat/PromptInput/index.d.ts +47 -0
  836. package/build/types/chat/PromptSuggestions/index.d.cts +25 -0
  837. package/build/types/chat/PromptSuggestions/index.d.ts +25 -0
  838. package/build/types/chat/Prose/index.d.cts +15 -0
  839. package/build/types/chat/Prose/index.d.ts +15 -0
  840. package/build/types/chat/ReasoningBlock/index.d.cts +24 -0
  841. package/build/types/chat/ReasoningBlock/index.d.ts +24 -0
  842. package/build/types/chat/ReasoningText/index.d.cts +14 -0
  843. package/build/types/chat/ReasoningText/index.d.ts +14 -0
  844. package/build/types/chat/SegmentBar/index.d.cts +46 -0
  845. package/build/types/chat/SegmentBar/index.d.ts +46 -0
  846. package/build/types/chat/SourceList/index.d.cts +25 -0
  847. package/build/types/chat/SourceList/index.d.ts +25 -0
  848. package/build/types/chat/TerminalOutput/index.d.cts +25 -0
  849. package/build/types/chat/TerminalOutput/index.d.ts +25 -0
  850. package/build/types/chat/ToolCall/index.d.cts +41 -0
  851. package/build/types/chat/ToolCall/index.d.ts +41 -0
  852. package/build/types/chat/index.d.cts +26 -0
  853. package/build/types/chat/index.d.ts +26 -0
  854. package/build/types/combobox.type.d.cts +65 -0
  855. package/build/types/combobox.type.d.ts +65 -0
  856. package/build/types/common-element-props.type.d.cts +8 -0
  857. package/build/types/common-element-props.type.d.ts +8 -0
  858. package/build/types/helpers/class-name.helper.d.cts +3 -0
  859. package/build/types/helpers/class-name.helper.d.ts +3 -0
  860. package/build/types/helpers/component.helper.d.cts +13 -0
  861. package/build/types/helpers/component.helper.d.ts +13 -0
  862. package/build/types/helpers/label.helper.d.cts +12 -0
  863. package/build/types/helpers/label.helper.d.ts +12 -0
  864. package/build/types/hook.type.d.cts +36 -0
  865. package/build/types/hook.type.d.ts +36 -0
  866. package/build/types/link.type.d.cts +14 -0
  867. package/build/types/link.type.d.ts +14 -0
  868. package/build/types/positioning.type.d.cts +38 -0
  869. package/build/types/positioning.type.d.ts +38 -0
  870. package/build/types/theme.type.d.cts +197 -0
  871. package/build/types/theme.type.d.ts +197 -0
  872. package/build/types/types/common-element-props.type.d.cts +8 -0
  873. package/build/types/types/common-element-props.type.d.ts +8 -0
  874. package/build/types/types/link.type.d.cts +14 -0
  875. package/build/types/types/link.type.d.ts +14 -0
  876. package/build/types/types/theme.type.d.cts +197 -0
  877. package/build/types/types/theme.type.d.ts +197 -0
  878. package/package.json +905 -4
@@ -0,0 +1,20 @@
1
+ import { FC } from 'react';
2
+ type Props = {
3
+ /** Gösterilecek ve panoya kopyalanacak değer. */
4
+ value: string;
5
+ /** Kopyalama düğmesinin erişilebilir adı. */
6
+ copyLabel?: string;
7
+ /** Kopyalandıktan sonraki ad. */
8
+ copiedLabel?: string;
9
+ /** `aria-live` ile duyurulan onay cümlesi. */
10
+ copiedAnnouncement?: string;
11
+ size?: 'sm' | 'md';
12
+ /** Kopyalama düğmesini gizler. */
13
+ isReadOnly?: boolean;
14
+ className?: string;
15
+ testId?: string;
16
+ };
17
+ /** Kopyalanabilir teknik değer — tek dokunuşla panoya. */
18
+ declare const CopyField: FC<Props>;
19
+ declare const _default: typeof CopyField;
20
+ export default _default;
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { jsxs as h, jsx as i } from "react/jsx-runtime";
3
+ import { memo as b } from "react";
4
+ import { ClipboardCheckFill as x, ClipboardFill as N } from "react-bootstrap-icons";
5
+ import { cx as d } from "../../helpers/class-name.helper.js";
6
+ import { resolveFormatter as m, resolveLabel as k } from "../../helpers/label.helper.js";
7
+ import { useCopyFeedback as L } from "../../hooks/useCopyFeedback.js";
8
+ import { useUi as j } from "../../theme/context.js";
9
+ const e = {"copy":"ui-copy-Yht5s","copy--sm":"ui-copy--sm-Tjqws","copy__code":"ui-copy__code-CYlCA","copy--md":"ui-copy--md-00rhU","copy__button":"ui-copy__button-GDdH6","copy__button--done":"ui-copy__button--done-MujUR","copy__srOnly":"ui-copy__srOnly-WMTNN"};
10
+ const A = ({
11
+ value: p,
12
+ copyLabel: s,
13
+ copiedLabel: a,
14
+ copiedAnnouncement: l,
15
+ size: y = "sm",
16
+ isReadOnly: f,
17
+ className: F,
18
+ testId: u
19
+ }) => {
20
+ var t, c, n;
21
+ const { labels: o } = j(), { isCopied: r, copy: C, nodeRef: _ } = L(p);
22
+ return /* @__PURE__ */ h("span", { className: d(e.copy, e[`copy--${y}`], F), "data-testid": u, children: [
23
+ /* @__PURE__ */ i("span", { className: e.copy__code, ref: _, children: p }),
24
+ !f && /* @__PURE__ */ i(
25
+ "button",
26
+ {
27
+ type: "button",
28
+ className: d(e.copy__button, r && e["copy__button--done"]),
29
+ onClick: C,
30
+ "aria-label": r ? a ?? m("CopyField.copiedLabel", (t = o == null ? void 0 : o.copyField) == null ? void 0 : t.copied, p) : s ?? m("CopyField.copyLabel", (c = o == null ? void 0 : o.copyField) == null ? void 0 : c.copy, p),
31
+ children: r ? /* @__PURE__ */ i(x, { "aria-hidden": !0 }) : /* @__PURE__ */ i(N, { "aria-hidden": !0 })
32
+ }
33
+ ),
34
+ /* @__PURE__ */ i("span", { "aria-live": "polite", className: e.copy__srOnly, children: r ? k(
35
+ "CopyField.copiedAnnouncement",
36
+ l,
37
+ (n = o == null ? void 0 : o.copyField) == null ? void 0 : n.announcement
38
+ ) : "" })
39
+ ] });
40
+ }, z = /* @__PURE__ */ b(A);
41
+ export {
42
+ z as default
43
+ };
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/CopyField/index.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, memo } from 'react';\n\nimport { ClipboardCheckFill, ClipboardFill } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { resolveFormatter, resolveLabel } from '../../helpers/label.helper';\nimport { useCopyFeedback } from '../../hooks/useCopyFeedback';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\ntype Props = {\n /** Gösterilecek ve panoya kopyalanacak değer. */\n value: string;\n /** Kopyalama düğmesinin erişilebilir adı. */\n copyLabel?: string;\n /** Kopyalandıktan sonraki ad. */\n copiedLabel?: string;\n /** `aria-live` ile duyurulan onay cümlesi. */\n copiedAnnouncement?: string;\n size?: 'sm' | 'md';\n /** Kopyalama düğmesini gizler. */\n isReadOnly?: boolean;\n className?: string;\n testId?: string;\n};\n\n/** Kopyalanabilir teknik değer — tek dokunuşla panoya. */\nconst CopyField: FC<Props> = ({\n value,\n copyLabel,\n copiedLabel,\n copiedAnnouncement,\n size = 'sm',\n isReadOnly,\n className,\n testId,\n}) => {\n const { labels } = useUi();\n const { isCopied, copy, nodeRef } = useCopyFeedback(value);\n\n return (\n <span className={cx(styles.copy, styles[`copy--${size}`], className)} data-testid={testId}>\n {/*\n `user-select: all` (CSS): tek tiklama degerin TAMAMINI secer.\n Kullanicilar fareyle surukleyip yarim deger kopyaliyordu.\n */}\n <span className={styles.copy__code} ref={nodeRef}>\n {value}\n </span>\n\n {!isReadOnly && (\n <button\n type=\"button\"\n className={cx(styles.copy__button, isCopied && styles['copy__button--done'])}\n onClick={copy}\n aria-label={\n isCopied\n ? (copiedLabel ??\n resolveFormatter('CopyField.copiedLabel', labels?.copyField?.copied, value))\n : (copyLabel ??\n resolveFormatter('CopyField.copyLabel', labels?.copyField?.copy, value))\n }\n >\n {/*\n Kopyalandi ISARETLI PANO, yalin tik degil: yalin tik \"dogru\n deger\" diye de okunabiliyordu. Ayni gövde + tik, degisimin\n kopyalama eylemine ait oldugunu birakiyor.\n */}\n {isCopied ? <ClipboardCheckFill aria-hidden /> : <ClipboardFill aria-hidden />}\n </button>\n )}\n\n {/*\n Ekran okuyucu icin: ikon degisimi gorsel bir sinyal, duyulmuyor.\n `aria-live` yalnizca DEGISTIGINDE konusur.\n */}\n <span aria-live=\"polite\" className={styles.copy__srOnly}>\n {isCopied\n ? resolveLabel(\n 'CopyField.copiedAnnouncement',\n copiedAnnouncement,\n labels?.copyField?.announcement,\n )\n : ''}\n </span>\n </span>\n );\n};\n\nexport default /*#__PURE__*/ memo(CopyField) as typeof CopyField;\n"],"names":["CopyField","value","copyLabel","copiedLabel","copiedAnnouncement","size","isReadOnly","className","testId","labels","useUi","isCopied","copy","nodeRef","useCopyFeedback","jsxs","cx","styles","jsx","resolveFormatter","_a","_b","ClipboardCheckFill","ClipboardFill","resolveLabel","_c","index"],"mappings":";;;;;;;;;AA6BA,MAAMA,IAAuB,CAAC;AAAA,EAC5B,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AACF,MAAM;;AACJ,QAAM,EAAE,QAAAC,EAAA,IAAWC,EAAA,GACb,EAAE,UAAAC,GAAU,MAAAC,GAAM,SAAAC,EAAA,IAAYC,EAAgBb,CAAK;AAEzD,SACE,gBAAAc,EAAC,QAAA,EAAK,WAAWC,EAAGC,EAAO,MAAMA,EAAO,SAASZ,CAAI,EAAE,GAAGE,CAAS,GAAG,eAAaC,GAKjF,UAAA;AAAA,IAAA,gBAAAU,EAAC,UAAK,WAAWD,EAAO,YAAY,KAAKJ,GACtC,UAAAZ,GACH;AAAA,IAEC,CAACK,KACA,gBAAAY;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAWF,EAAGC,EAAO,cAAcN,KAAYM,EAAO,oBAAoB,CAAC;AAAA,QAC3E,SAASL;AAAA,QACT,cACED,IACKR,KACDgB,EAAiB,0BAAyBC,IAAAX,KAAA,gBAAAA,EAAQ,cAAR,gBAAAW,EAAmB,QAAQnB,CAAK,IACzEC,KACDiB,EAAiB,wBAAuBE,IAAAZ,KAAA,gBAAAA,EAAQ,cAAR,gBAAAY,EAAmB,MAAMpB,CAAK;AAAA,QAQ3E,UAAAU,sBAAYW,GAAA,EAAmB,eAAW,IAAC,IAAK,gBAAAJ,EAACK,GAAA,EAAc,eAAW,GAAA,CAAC;AAAA,MAAA;AAAA,IAAA;AAAA,sBAQ/E,QAAA,EAAK,aAAU,UAAS,WAAWN,EAAO,cACxC,UAAAN,IACGa;AAAA,MACE;AAAA,MACApB;AAAA,OACAqB,IAAAhB,KAAA,gBAAAA,EAAQ,cAAR,gBAAAgB,EAAmB;AAAA,IAAA,IAErB,GAAA,CACN;AAAA,EAAA,GACF;AAEJ,GAEAC,sBAAkC1B,CAAS;"}
@@ -0,0 +1 @@
1
+ @layer ui{.ui-copy-Yht5s{display:inline-flex;align-items:center;gap:var(--hd-space-1);max-width:100%;min-width:0}.ui-copy--sm-Tjqws .ui-copy__code-CYlCA{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-copy--md-00rhU .ui-copy__code-CYlCA{font-family:var(--hd-font-mono);font-size:var(--hd-type-small-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-copy__code-CYlCA{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;-webkit-user-select:all;user-select:all;color:inherit}.ui-copy__button-GDdH6{position:relative}.ui-copy__button-GDdH6:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-copy__button-GDdH6{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;padding:0;border:none;border-radius:var(--hd-radius-xs);background:none;color:var(--hd-text-3);font-size:16px;cursor:pointer;transition:color var(--hd-duration-fast) var(--hd-ease-standard),background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-copy__button-GDdH6:hover{color:var(--hd-text);background-color:var(--hd-bg-raised)}.ui-copy__button-GDdH6:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, -1px)}@media (prefers-reduced-motion: reduce){.ui-copy__button-GDdH6{transition:none}}.ui-copy__button--done-MujUR,.ui-copy__button--done-MujUR:hover{color:var(--hd-success-solid)}.ui-copy__srOnly-WMTNN{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),u=require("react"),q=require("react-bootstrap-icons"),r=require("../../helpers/class-name.helper.cjs"),D=require("../../helpers/component.helper.cjs"),f=require("../../helpers/label.helper.cjs"),S=require("../../theme/context.cjs"),s={default:{"wrapper":"ui-wrapper-KXCZg","wrapper--capped":"ui-wrapper--capped-M2QUJ","table":"ui-table-LF5Ow","state":"ui-state-YPPb0","state--error":"ui-state--error-A492d","state__message":"ui-state__message-wwbIW","row--warning":"ui-row--warning-BAUN2","srOnly":"ui-srOnly-Oia8c","sort":"ui-sort-3Q6Fx","sort__arrow":"ui-sort__arrow-MITWb","sort__arrow--ascending":"ui-sort__arrow--ascending-85T5d","sort__arrow--descending":"ui-sort__arrow--descending-gs3VU","sticky":"ui-sticky-KDEvQ","bulkBar":"ui-bulkBar-62qk0"}},v=({columns:l,label:c,children:i,isLoading:o,error:b,emptyMessage:g,loadingMessage:N,hasViewportCap:_,onSort:d,bulkBar:h,className:m,testId:w})=>{var p,j;const{labels:t}=S.useUi(),y=u.Children.count(i),x=(e,n)=>a.jsx("tr",{children:a.jsx("td",{colSpan:l.length,className:r.cx(s.default.state,n&&s.default[`state--${n}`]),children:e})});return a.jsxs("div",{className:r.cx(s.default.wrapper,_&&s.default["wrapper--capped"],m),"data-testid":w,children:[h&&a.jsx("div",{className:s.default.bulkBar,children:h}),a.jsxs("table",{className:s.default.table,"aria-label":c,children:[a.jsx("thead",{children:a.jsx("tr",{children:l.map(e=>{const n=!!(e.isSortable&&d),T=e.ariaSort==="ascending"?"descending":"ascending";return a.jsx("th",{scope:"col","aria-sort":e.ariaSort,className:r.cx(e.className,e.isSticky&&s.default.sticky),children:n?a.jsxs("button",{type:"button",className:s.default.sort,onClick:()=>d==null?void 0:d(e.key,T),children:[e.label,e.srLabel&&a.jsx("span",{className:s.default.srOnly,children:e.srLabel}),a.jsx("span",{"aria-hidden":!0,className:r.cx(s.default.sort__arrow,e.ariaSort&&s.default[`sort__arrow--${e.ariaSort}`]),children:e.ariaSort==="descending"?"▾":"▴"})]}):a.jsxs(a.Fragment,{children:[e.label,e.srLabel&&a.jsx("span",{className:s.default.srOnly,children:e.srLabel})]})},e.key)})})}),a.jsx("tbody",{children:b?x(a.jsxs("span",{role:"alert",className:s.default.state__message,children:[a.jsx(q.ExclamationCircleFill,{"aria-hidden":!0}),b]}),"error"):o?x(f.resolveLabel("DataTable.loadingMessage",N,(p=t==null?void 0:t.dataTable)==null?void 0:p.loading)):y===0?x(f.resolveLabel("DataTable.emptyMessage",g,(j=t==null?void 0:t.dataTable)==null?void 0:j.empty)):i})]})]})},L=D.named(u.memo(({isWarning:l,className:c,children:i,...o})=>a.jsx("tr",{className:r.cx(l&&s.default["row--warning"],c),...o,children:i})),"DataTableRow"),k=u.memo(v);exports.DataTableRow=L;exports.default=k;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/DataTable/index.tsx"],"sourcesContent":["'use client';\n\nimport { Children, type FC, type HTMLAttributes, memo, type ReactNode } from 'react';\n\nimport { ExclamationCircleFill } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\nexport type DataTableColumn = {\n /** Sütun kimliği (React key). */\n key: string;\n /** Başlık hücresinin içeriği. */\n label?: ReactNode;\n /** Görsel başlığı olmayan sütunun erişilebilir adı (eylem sütunu gibi). */\n srLabel?: string;\n /** Sıralanabilir sütunun yönü (`aria-sort`). */\n ariaSort?: 'ascending' | 'descending';\n /**\n * Sütun sıralanabilir. `DataTable.onSort` ile birlikte anlamlı; ikisinden biri eksikse başlık düz\n * metin kalır\n */\n isSortable?: boolean;\n /** Sütun yatay kaydırmada YERİNDE kalır. */\n isSticky?: boolean;\n className?: string;\n};\n\ntype Props = {\n columns: DataTableColumn[];\n /**\n * Tablonun erişilebilir adı (\"Bekleyen siparişler\").\n * ⚠ ADSIZ TABLO EKRAN OKUYUCUDA YALNIZCA \"tablo\" DİYE OKUNUR.\n */\n label?: string;\n /**\n * Gövde satırları (` `). Ekranların özel hücreleri, bağlantıları ve satır tintleri burada yaşar;\n * tablo yalnızca kabuğu ve durum satırlarını üstlenir.\n */\n children?: ReactNode;\n /** Satır yokken gösterilen metin. */\n emptyMessage?: string;\n /** Yükleme sürerken gösterilen metin. */\n loadingMessage?: string;\n isLoading?: boolean;\n /**\n * Liste ÇEKİLEMEDİ. \"Yüklenemedi\" ile \"boş\" ayrı durumlardır: hata verilmişken boş mesajı asla\n * çizilmez\n */\n error?: string | null;\n /** Gövde `100dvh - <bant>` ile sınırlanır ve başlık satırı kendi kaydırma alanına yapışır. */\n hasViewportCap?: boolean;\n /** Sıralanabilir bir başlığa basıldığında çağrılır. */\n onSort?: (key: string, direction: 'ascending' | 'descending') => void;\n /** Satır seçildiğinde beliren TOPLU EYLEM şeridi. */\n bulkBar?: ReactNode;\n className?: string;\n testId?: string;\n};\n\n/** Operasyon veri tablosu — durum satırlı tablo sözleşmesi. */\nconst DataTable: FC<Props> = ({\n columns,\n label,\n children,\n isLoading,\n error,\n emptyMessage,\n loadingMessage,\n hasViewportCap,\n onSort,\n bulkBar,\n className,\n testId,\n}) => {\n /* Bosluk karari satir SAYISINDAN verilir; cagiranin ayrica `isEmpty` gecmesi gerekmez. */\n const { labels } = useUi();\n const rowCount = Children.count(children);\n\n const renderStateRow = (content: ReactNode, modifier?: 'error') => (\n <tr>\n <td\n colSpan={columns.length}\n className={cx(styles.state, modifier && styles[`state--${modifier}`])}\n >\n {content}\n </td>\n </tr>\n );\n\n return (\n <div\n className={cx(styles.wrapper, hasViewportCap && styles['wrapper--capped'], className)}\n data-testid={testId}\n >\n {bulkBar && <div className={styles.bulkBar}>{bulkBar}</div>}\n\n <table className={styles.table} aria-label={label}>\n <thead>\n <tr>\n {columns.map(column => {\n const isSortable = Boolean(column.isSortable && onSort);\n /* Ilk tikta ARTAN; ikinci tik yonu cevirir. */\n const nextDirection = column.ariaSort === 'ascending' ? 'descending' : 'ascending';\n\n return (\n <th\n key={column.key}\n scope=\"col\"\n aria-sort={column.ariaSort}\n className={cx(column.className, column.isSticky && styles.sticky)}\n >\n {isSortable ? (\n /* Siralama bir DUGME, ` `ye yazilan `onClick` degil. */\n <button\n type=\"button\"\n className={styles.sort}\n onClick={() => onSort?.(column.key, nextDirection)}\n >\n {column.label}\n {column.srLabel && <span className={styles.srOnly}>{column.srLabel}</span>}\n\n {/*\n Yon oku: `aria-hidden` cunku ayni bilgi `aria-sort`ta.\n Siralanabilir ama siralanmamis sutunda SOLUK bir cift\n ok duruyor — sutunun siralanabildigi ancak uzerine\n gelince anlasiliyordu.\n */}\n <span\n aria-hidden\n className={cx(\n styles.sort__arrow,\n column.ariaSort && styles[`sort__arrow--${column.ariaSort}`],\n )}\n >\n {column.ariaSort === 'descending' ? '▾' : '▴'}\n </span>\n </button>\n ) : (\n <>\n {column.label}\n {column.srLabel && <span className={styles.srOnly}>{column.srLabel}</span>}\n </>\n )}\n </th>\n );\n })}\n </tr>\n </thead>\n <tbody>\n {error\n ? renderStateRow(\n <span role=\"alert\" className={styles.state__message}>\n <ExclamationCircleFill aria-hidden />\n {error}\n </span>,\n 'error',\n )\n : isLoading\n ? renderStateRow(\n resolveLabel(\n 'DataTable.loadingMessage',\n loadingMessage,\n labels?.dataTable?.loading,\n ),\n )\n : rowCount === 0\n ? renderStateRow(\n resolveLabel('DataTable.emptyMessage', emptyMessage, labels?.dataTable?.empty),\n )\n : children}\n </tbody>\n </table>\n </div>\n );\n};\n\ntype RowProps = HTMLAttributes<HTMLTableRowElement> & {\n children: ReactNode;\n /** Satır dikkat bekleyen iş taşıyor (kritik stok, karar bekleyen talep). */\n isWarning?: boolean;\n};\n\nexport const DataTableRow: FC<RowProps> = /*#__PURE__*/ named(\n /*#__PURE__*/ memo(({ isWarning, className, children, ...rest }) => (\n <tr className={cx(isWarning && styles['row--warning'], className)} {...rest}>\n {children}\n </tr>\n )),\n 'DataTableRow',\n);\n\nexport default /*#__PURE__*/ memo(DataTable) as typeof DataTable;\n"],"names":["DataTable","columns","label","children","isLoading","error","emptyMessage","loadingMessage","hasViewportCap","onSort","bulkBar","className","testId","labels","useUi","rowCount","Children","renderStateRow","content","modifier","jsx","cx","styles","jsxs","column","isSortable","nextDirection","Fragment","ExclamationCircleFill","resolveLabel","_a","_b","DataTableRow","named","memo","isWarning","rest","index"],"mappings":"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"}
@@ -0,0 +1,60 @@
1
+ import { FC, HTMLAttributes, ReactNode } from 'react';
2
+ export type DataTableColumn = {
3
+ /** Sütun kimliği (React key). */
4
+ key: string;
5
+ /** Başlık hücresinin içeriği. */
6
+ label?: ReactNode;
7
+ /** Görsel başlığı olmayan sütunun erişilebilir adı (eylem sütunu gibi). */
8
+ srLabel?: string;
9
+ /** Sıralanabilir sütunun yönü (`aria-sort`). */
10
+ ariaSort?: 'ascending' | 'descending';
11
+ /**
12
+ * Sütun sıralanabilir. `DataTable.onSort` ile birlikte anlamlı; ikisinden biri eksikse başlık düz
13
+ * metin kalır
14
+ */
15
+ isSortable?: boolean;
16
+ /** Sütun yatay kaydırmada YERİNDE kalır. */
17
+ isSticky?: boolean;
18
+ className?: string;
19
+ };
20
+ type Props = {
21
+ columns: DataTableColumn[];
22
+ /**
23
+ * Tablonun erişilebilir adı ("Bekleyen siparişler").
24
+ * ⚠ ADSIZ TABLO EKRAN OKUYUCUDA YALNIZCA "tablo" DİYE OKUNUR.
25
+ */
26
+ label?: string;
27
+ /**
28
+ * Gövde satırları (` `). Ekranların özel hücreleri, bağlantıları ve satır tintleri burada yaşar;
29
+ * tablo yalnızca kabuğu ve durum satırlarını üstlenir.
30
+ */
31
+ children?: ReactNode;
32
+ /** Satır yokken gösterilen metin. */
33
+ emptyMessage?: string;
34
+ /** Yükleme sürerken gösterilen metin. */
35
+ loadingMessage?: string;
36
+ isLoading?: boolean;
37
+ /**
38
+ * Liste ÇEKİLEMEDİ. "Yüklenemedi" ile "boş" ayrı durumlardır: hata verilmişken boş mesajı asla
39
+ * çizilmez
40
+ */
41
+ error?: string | null;
42
+ /** Gövde `100dvh - <bant>` ile sınırlanır ve başlık satırı kendi kaydırma alanına yapışır. */
43
+ hasViewportCap?: boolean;
44
+ /** Sıralanabilir bir başlığa basıldığında çağrılır. */
45
+ onSort?: (key: string, direction: 'ascending' | 'descending') => void;
46
+ /** Satır seçildiğinde beliren TOPLU EYLEM şeridi. */
47
+ bulkBar?: ReactNode;
48
+ className?: string;
49
+ testId?: string;
50
+ };
51
+ /** Operasyon veri tablosu — durum satırlı tablo sözleşmesi. */
52
+ declare const DataTable: FC<Props>;
53
+ type RowProps = HTMLAttributes<HTMLTableRowElement> & {
54
+ children: ReactNode;
55
+ /** Satır dikkat bekleyen iş taşıyor (kritik stok, karar bekleyen talep). */
56
+ isWarning?: boolean;
57
+ };
58
+ export declare const DataTableRow: FC<RowProps>;
59
+ declare const _default: typeof DataTable;
60
+ export default _default;
@@ -0,0 +1,60 @@
1
+ import { FC, HTMLAttributes, ReactNode } from 'react';
2
+ export type DataTableColumn = {
3
+ /** Sütun kimliği (React key). */
4
+ key: string;
5
+ /** Başlık hücresinin içeriği. */
6
+ label?: ReactNode;
7
+ /** Görsel başlığı olmayan sütunun erişilebilir adı (eylem sütunu gibi). */
8
+ srLabel?: string;
9
+ /** Sıralanabilir sütunun yönü (`aria-sort`). */
10
+ ariaSort?: 'ascending' | 'descending';
11
+ /**
12
+ * Sütun sıralanabilir. `DataTable.onSort` ile birlikte anlamlı; ikisinden biri eksikse başlık düz
13
+ * metin kalır
14
+ */
15
+ isSortable?: boolean;
16
+ /** Sütun yatay kaydırmada YERİNDE kalır. */
17
+ isSticky?: boolean;
18
+ className?: string;
19
+ };
20
+ type Props = {
21
+ columns: DataTableColumn[];
22
+ /**
23
+ * Tablonun erişilebilir adı ("Bekleyen siparişler").
24
+ * ⚠ ADSIZ TABLO EKRAN OKUYUCUDA YALNIZCA "tablo" DİYE OKUNUR.
25
+ */
26
+ label?: string;
27
+ /**
28
+ * Gövde satırları (` `). Ekranların özel hücreleri, bağlantıları ve satır tintleri burada yaşar;
29
+ * tablo yalnızca kabuğu ve durum satırlarını üstlenir.
30
+ */
31
+ children?: ReactNode;
32
+ /** Satır yokken gösterilen metin. */
33
+ emptyMessage?: string;
34
+ /** Yükleme sürerken gösterilen metin. */
35
+ loadingMessage?: string;
36
+ isLoading?: boolean;
37
+ /**
38
+ * Liste ÇEKİLEMEDİ. "Yüklenemedi" ile "boş" ayrı durumlardır: hata verilmişken boş mesajı asla
39
+ * çizilmez
40
+ */
41
+ error?: string | null;
42
+ /** Gövde `100dvh - <bant>` ile sınırlanır ve başlık satırı kendi kaydırma alanına yapışır. */
43
+ hasViewportCap?: boolean;
44
+ /** Sıralanabilir bir başlığa basıldığında çağrılır. */
45
+ onSort?: (key: string, direction: 'ascending' | 'descending') => void;
46
+ /** Satır seçildiğinde beliren TOPLU EYLEM şeridi. */
47
+ bulkBar?: ReactNode;
48
+ className?: string;
49
+ testId?: string;
50
+ };
51
+ /** Operasyon veri tablosu — durum satırlı tablo sözleşmesi. */
52
+ declare const DataTable: FC<Props>;
53
+ type RowProps = HTMLAttributes<HTMLTableRowElement> & {
54
+ children: ReactNode;
55
+ /** Satır dikkat bekleyen iş taşıyor (kritik stok, karar bekleyen talep). */
56
+ isWarning?: boolean;
57
+ };
58
+ export declare const DataTableRow: FC<RowProps>;
59
+ declare const _default: typeof DataTable;
60
+ export default _default;
@@ -0,0 +1,109 @@
1
+ "use client";
2
+ import { jsxs as s, jsx as r, Fragment as S } from "react/jsx-runtime";
3
+ import { memo as w, Children as C } from "react";
4
+ import { ExclamationCircleFill as v } from "react-bootstrap-icons";
5
+ import { cx as i } from "../../helpers/class-name.helper.js";
6
+ import { named as R } from "../../helpers/component.helper.js";
7
+ import { resolveLabel as y } from "../../helpers/label.helper.js";
8
+ import { useUi as j } from "../../theme/context.js";
9
+ const e = {"wrapper":"ui-wrapper-KXCZg","wrapper--capped":"ui-wrapper--capped-M2QUJ","table":"ui-table-LF5Ow","state":"ui-state-YPPb0","state--error":"ui-state--error-A492d","state__message":"ui-state__message-wwbIW","row--warning":"ui-row--warning-BAUN2","srOnly":"ui-srOnly-Oia8c","sort":"ui-sort-3Q6Fx","sort__arrow":"ui-sort__arrow-MITWb","sort__arrow--ascending":"ui-sort__arrow--ascending-85T5d","sort__arrow--descending":"ui-sort__arrow--descending-gs3VU","sticky":"ui-sticky-KDEvQ","bulkBar":"ui-bulkBar-62qk0"};
10
+ const F = ({
11
+ columns: l,
12
+ label: o,
13
+ children: d,
14
+ isLoading: p,
15
+ error: m,
16
+ emptyMessage: f,
17
+ loadingMessage: x,
18
+ hasViewportCap: T,
19
+ onSort: n,
20
+ bulkBar: b,
21
+ className: D,
22
+ testId: _
23
+ }) => {
24
+ var g, N;
25
+ const { labels: t } = j(), k = C.count(d), h = (a, c) => /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r(
26
+ "td",
27
+ {
28
+ colSpan: l.length,
29
+ className: i(e.state, c && e[`state--${c}`]),
30
+ children: a
31
+ }
32
+ ) });
33
+ return /* @__PURE__ */ s(
34
+ "div",
35
+ {
36
+ className: i(e.wrapper, T && e["wrapper--capped"], D),
37
+ "data-testid": _,
38
+ children: [
39
+ b && /* @__PURE__ */ r("div", { className: e.bulkBar, children: b }),
40
+ /* @__PURE__ */ s("table", { className: e.table, "aria-label": o, children: [
41
+ /* @__PURE__ */ r("thead", { children: /* @__PURE__ */ r("tr", { children: l.map((a) => {
42
+ const c = !!(a.isSortable && n), L = a.ariaSort === "ascending" ? "descending" : "ascending";
43
+ return /* @__PURE__ */ r(
44
+ "th",
45
+ {
46
+ scope: "col",
47
+ "aria-sort": a.ariaSort,
48
+ className: i(a.className, a.isSticky && e.sticky),
49
+ children: c ? (
50
+ /* Siralama bir DUGME, ` `ye yazilan `onClick` degil. */
51
+ /* @__PURE__ */ s(
52
+ "button",
53
+ {
54
+ type: "button",
55
+ className: e.sort,
56
+ onClick: () => n == null ? void 0 : n(a.key, L),
57
+ children: [
58
+ a.label,
59
+ a.srLabel && /* @__PURE__ */ r("span", { className: e.srOnly, children: a.srLabel }),
60
+ /* @__PURE__ */ r(
61
+ "span",
62
+ {
63
+ "aria-hidden": !0,
64
+ className: i(
65
+ e.sort__arrow,
66
+ a.ariaSort && e[`sort__arrow--${a.ariaSort}`]
67
+ ),
68
+ children: a.ariaSort === "descending" ? "▾" : "▴"
69
+ }
70
+ )
71
+ ]
72
+ }
73
+ )
74
+ ) : /* @__PURE__ */ s(S, { children: [
75
+ a.label,
76
+ a.srLabel && /* @__PURE__ */ r("span", { className: e.srOnly, children: a.srLabel })
77
+ ] })
78
+ },
79
+ a.key
80
+ );
81
+ }) }) }),
82
+ /* @__PURE__ */ r("tbody", { children: m ? h(
83
+ /* @__PURE__ */ s("span", { role: "alert", className: e.state__message, children: [
84
+ /* @__PURE__ */ r(v, { "aria-hidden": !0 }),
85
+ m
86
+ ] }),
87
+ "error"
88
+ ) : p ? h(
89
+ y(
90
+ "DataTable.loadingMessage",
91
+ x,
92
+ (g = t == null ? void 0 : t.dataTable) == null ? void 0 : g.loading
93
+ )
94
+ ) : k === 0 ? h(
95
+ y("DataTable.emptyMessage", f, (N = t == null ? void 0 : t.dataTable) == null ? void 0 : N.empty)
96
+ ) : d })
97
+ ] })
98
+ ]
99
+ }
100
+ );
101
+ }, A = /* @__PURE__ */ R(
102
+ /* @__PURE__ */ w(({ isWarning: l, className: o, children: d, ...p }) => /* @__PURE__ */ r("tr", { className: i(l && e["row--warning"], o), ...p, children: d })),
103
+ "DataTableRow"
104
+ ), G = /* @__PURE__ */ w(F);
105
+ export {
106
+ A as DataTableRow,
107
+ G as default
108
+ };
109
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/DataTable/index.tsx"],"sourcesContent":["'use client';\n\nimport { Children, type FC, type HTMLAttributes, memo, type ReactNode } from 'react';\n\nimport { ExclamationCircleFill } from 'react-bootstrap-icons';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport { resolveLabel } from '../../helpers/label.helper';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\nexport type DataTableColumn = {\n /** Sütun kimliği (React key). */\n key: string;\n /** Başlık hücresinin içeriği. */\n label?: ReactNode;\n /** Görsel başlığı olmayan sütunun erişilebilir adı (eylem sütunu gibi). */\n srLabel?: string;\n /** Sıralanabilir sütunun yönü (`aria-sort`). */\n ariaSort?: 'ascending' | 'descending';\n /**\n * Sütun sıralanabilir. `DataTable.onSort` ile birlikte anlamlı; ikisinden biri eksikse başlık düz\n * metin kalır\n */\n isSortable?: boolean;\n /** Sütun yatay kaydırmada YERİNDE kalır. */\n isSticky?: boolean;\n className?: string;\n};\n\ntype Props = {\n columns: DataTableColumn[];\n /**\n * Tablonun erişilebilir adı (\"Bekleyen siparişler\").\n * ⚠ ADSIZ TABLO EKRAN OKUYUCUDA YALNIZCA \"tablo\" DİYE OKUNUR.\n */\n label?: string;\n /**\n * Gövde satırları (` `). Ekranların özel hücreleri, bağlantıları ve satır tintleri burada yaşar;\n * tablo yalnızca kabuğu ve durum satırlarını üstlenir.\n */\n children?: ReactNode;\n /** Satır yokken gösterilen metin. */\n emptyMessage?: string;\n /** Yükleme sürerken gösterilen metin. */\n loadingMessage?: string;\n isLoading?: boolean;\n /**\n * Liste ÇEKİLEMEDİ. \"Yüklenemedi\" ile \"boş\" ayrı durumlardır: hata verilmişken boş mesajı asla\n * çizilmez\n */\n error?: string | null;\n /** Gövde `100dvh - <bant>` ile sınırlanır ve başlık satırı kendi kaydırma alanına yapışır. */\n hasViewportCap?: boolean;\n /** Sıralanabilir bir başlığa basıldığında çağrılır. */\n onSort?: (key: string, direction: 'ascending' | 'descending') => void;\n /** Satır seçildiğinde beliren TOPLU EYLEM şeridi. */\n bulkBar?: ReactNode;\n className?: string;\n testId?: string;\n};\n\n/** Operasyon veri tablosu — durum satırlı tablo sözleşmesi. */\nconst DataTable: FC<Props> = ({\n columns,\n label,\n children,\n isLoading,\n error,\n emptyMessage,\n loadingMessage,\n hasViewportCap,\n onSort,\n bulkBar,\n className,\n testId,\n}) => {\n /* Bosluk karari satir SAYISINDAN verilir; cagiranin ayrica `isEmpty` gecmesi gerekmez. */\n const { labels } = useUi();\n const rowCount = Children.count(children);\n\n const renderStateRow = (content: ReactNode, modifier?: 'error') => (\n <tr>\n <td\n colSpan={columns.length}\n className={cx(styles.state, modifier && styles[`state--${modifier}`])}\n >\n {content}\n </td>\n </tr>\n );\n\n return (\n <div\n className={cx(styles.wrapper, hasViewportCap && styles['wrapper--capped'], className)}\n data-testid={testId}\n >\n {bulkBar && <div className={styles.bulkBar}>{bulkBar}</div>}\n\n <table className={styles.table} aria-label={label}>\n <thead>\n <tr>\n {columns.map(column => {\n const isSortable = Boolean(column.isSortable && onSort);\n /* Ilk tikta ARTAN; ikinci tik yonu cevirir. */\n const nextDirection = column.ariaSort === 'ascending' ? 'descending' : 'ascending';\n\n return (\n <th\n key={column.key}\n scope=\"col\"\n aria-sort={column.ariaSort}\n className={cx(column.className, column.isSticky && styles.sticky)}\n >\n {isSortable ? (\n /* Siralama bir DUGME, ` `ye yazilan `onClick` degil. */\n <button\n type=\"button\"\n className={styles.sort}\n onClick={() => onSort?.(column.key, nextDirection)}\n >\n {column.label}\n {column.srLabel && <span className={styles.srOnly}>{column.srLabel}</span>}\n\n {/*\n Yon oku: `aria-hidden` cunku ayni bilgi `aria-sort`ta.\n Siralanabilir ama siralanmamis sutunda SOLUK bir cift\n ok duruyor — sutunun siralanabildigi ancak uzerine\n gelince anlasiliyordu.\n */}\n <span\n aria-hidden\n className={cx(\n styles.sort__arrow,\n column.ariaSort && styles[`sort__arrow--${column.ariaSort}`],\n )}\n >\n {column.ariaSort === 'descending' ? '▾' : '▴'}\n </span>\n </button>\n ) : (\n <>\n {column.label}\n {column.srLabel && <span className={styles.srOnly}>{column.srLabel}</span>}\n </>\n )}\n </th>\n );\n })}\n </tr>\n </thead>\n <tbody>\n {error\n ? renderStateRow(\n <span role=\"alert\" className={styles.state__message}>\n <ExclamationCircleFill aria-hidden />\n {error}\n </span>,\n 'error',\n )\n : isLoading\n ? renderStateRow(\n resolveLabel(\n 'DataTable.loadingMessage',\n loadingMessage,\n labels?.dataTable?.loading,\n ),\n )\n : rowCount === 0\n ? renderStateRow(\n resolveLabel('DataTable.emptyMessage', emptyMessage, labels?.dataTable?.empty),\n )\n : children}\n </tbody>\n </table>\n </div>\n );\n};\n\ntype RowProps = HTMLAttributes<HTMLTableRowElement> & {\n children: ReactNode;\n /** Satır dikkat bekleyen iş taşıyor (kritik stok, karar bekleyen talep). */\n isWarning?: boolean;\n};\n\nexport const DataTableRow: FC<RowProps> = /*#__PURE__*/ named(\n /*#__PURE__*/ memo(({ isWarning, className, children, ...rest }) => (\n <tr className={cx(isWarning && styles['row--warning'], className)} {...rest}>\n {children}\n </tr>\n )),\n 'DataTableRow',\n);\n\nexport default /*#__PURE__*/ memo(DataTable) as typeof DataTable;\n"],"names":["DataTable","columns","label","children","isLoading","error","emptyMessage","loadingMessage","hasViewportCap","onSort","bulkBar","className","testId","labels","useUi","rowCount","Children","renderStateRow","content","modifier","jsx","cx","styles","jsxs","column","isSortable","nextDirection","Fragment","ExclamationCircleFill","resolveLabel","_a","_b","DataTableRow","named","memo","isWarning","rest","index"],"mappings":"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"}
@@ -0,0 +1 @@
1
+ @charset "UTF-8";@layer ui{.ui-wrapper-KXCZg{overflow:auto;position:relative;background-color:var(--hd-bg-surface);border:1px solid var(--hd-border);border-radius:var(--hd-radius-sm)}.ui-wrapper--capped-M2QUJ{max-height:calc(100dvh - var(--ui-header-height, 0px) - var(--hd-space-12))}.ui-wrapper--capped-M2QUJ .ui-table-LF5Ow thead th{position:sticky;top:0;z-index:var(--hd-z-sticky)}.ui-table-LF5Ow{width:100%;border-collapse:collapse;font-family:var(--hd-font-body);font-size:var(--hd-type-small-size)}.ui-table-LF5Ow th,.ui-table-LF5Ow td{padding:var(--hd-space-3);text-align:start;border-bottom:1px solid var(--hd-border);vertical-align:middle}.ui-table-LF5Ow thead th{background-color:var(--hd-bg-raised);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text-2);white-space:nowrap}.ui-table-LF5Ow tbody tr:hover{background-color:var(--hd-bg-inset)}.ui-state-YPPb0{text-align:center;color:var(--hd-text-2);padding-block:var(--hd-space-6)}.ui-state--error-A492d{color:var(--hd-danger-fg)}.ui-state__message-wwbIW{display:inline-flex;align-items:center;gap:var(--hd-space-2)}.ui-state__message-wwbIW svg{font-size:18px;flex-shrink:0}.ui-row--warning-BAUN2{background-color:var(--hd-warning-bg)}.ui-row--warning-BAUN2 td:first-child{box-shadow:inset 3px 0 0 var(--hd-warning-fg)}.ui-srOnly-Oia8c{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ui-sort-3Q6Fx{display:inline-flex;align-items:center;gap:var(--hd-space-1);width:100%;padding:0;border:none;background:none;cursor:pointer;font:inherit;color:inherit;text-align:inherit}.ui-sort-3Q6Fx:hover .ui-sort__arrow-MITWb:not(.ui-sort__arrow--ascending-85T5d,.ui-sort__arrow--descending-gs3VU){color:var(--hd-text)}.ui-sort-3Q6Fx:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, -2px)}.ui-sort__arrow-MITWb{flex-shrink:0;font-size:var(--hd-type-caption-size);color:var(--hd-text-3);transition:color var(--hd-duration-fast) var(--hd-ease-standard)}@media (forced-colors: active){.ui-sort__arrow-MITWb{color:GrayText}}.ui-sort__arrow--ascending-85T5d,.ui-sort__arrow--descending-gs3VU{color:var(--hd-text)}@media (prefers-reduced-motion: reduce){.ui-sort__arrow-MITWb{transition:none}}.ui-sticky-KDEvQ{position:sticky;left:0;z-index:var(--hd-z-raised);background-color:var(--hd-bg-surface)}[dir=rtl] .ui-sticky-KDEvQ{left:auto;right:0}.ui-sticky-KDEvQ:after{content:"";position:absolute;inset-block:0;inset-inline-end:0;width:1px;background-color:var(--hd-border)}thead .ui-sticky-KDEvQ{background-color:var(--hd-bg-raised)}.ui-bulkBar-62qk0{display:flex;align-items:center;gap:var(--hd-space-3);position:sticky;top:0;z-index:var(--hd-z-sticky);padding:var(--hd-space-2) var(--hd-space-3);border-bottom:1px solid var(--hd-border-strong);background-color:var(--hd-primary-soft);font-size:var(--hd-type-small-size);color:var(--hd-text)}}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),u=require("react"),_=require("../../helpers/class-name.helper.cjs"),h=require("../../helpers/component.helper.cjs"),F=require("../../theme/context.cjs"),t={default:{"dateField":"ui-dateField-UnUwe","dateField--sm":"ui-dateField--sm-bcDe9","range":"ui-range-nGuRH","range__row":"ui-range__row--debA","range__separator":"ui-range__separator-fEqqr","range__field":"ui-range__field-tmoNH","range__summary":"ui-range__summary-L6v1T"}},m=u.forwardRef(({type:e="date",size:n="md",className:l,testId:c,...s},d)=>a.jsx("input",{ref:d,type:e,className:_.cx(t.default.dateField,n==="sm"&&t.default["dateField--sm"],l),"data-testid":c,...s})),v=u.memo(h.named(m,"DateField")),$=({value:e,onChange:n,startLabel:l,endLabel:c,separator:s="–",min:d,max:f,isSummaryVisible:j,size:D,isDisabled:b,isReadOnly:p,id:o,required:y,"aria-describedby":N,"aria-invalid":q,className:R,testId:w})=>{const{labels:i}=F.useUi(),g=(()=>{if(!j||!(i!=null&&i.locale)||e.start===""||e.end==="")return null;try{const r=new Intl.DateTimeFormat(i.locale,{dateStyle:"medium"});return`${r.format(new Date(e.start))} ${s} ${r.format(new Date(e.end))}`}catch{return null}})(),x={className:t.default.range__field,size:D,disabled:b,readOnly:p,required:y,"aria-describedby":N,"aria-invalid":q||void 0};return a.jsxs("div",{className:_.cx(t.default.range,R),"data-testid":w,children:[a.jsxs("div",{className:t.default.range__row,children:[a.jsx(m,{...x,id:o,"aria-label":l,value:e.start,min:d,max:e.end||f,onChange:r=>n({...e,start:r.target.value})}),a.jsx("span",{className:t.default.range__separator,"aria-hidden":!0,children:s}),a.jsx(m,{...x,id:o===void 0?void 0:`${o}-end`,"aria-label":c,value:e.end,min:e.start||d,max:f,onChange:r=>n({...e,end:r.target.value})})]}),g&&a.jsx("span",{className:t.default.range__summary,children:g})]})},S=h.named(u.memo($),"DateRange");exports.DateRange=S;exports.default=v;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/DateField/index.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef, type InputHTMLAttributes, memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\nimport { useUi } from '../../theme/context';\n\nimport styles from './index.module.scss';\n\n/* `size` yerel ozellikte karakter genisligi (`number`); burada olcu adi — `Input` ile ayni. */\ntype Props = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {\n /** `date` (varsayılan) · `datetime-local` · `month` · `time`. */\n type?: 'date' | 'datetime-local' | 'month' | 'time';\n /** `sm` yoğun şeritler içindir (araç çubuğu, `Select size=\"sm\"` yanında); varsayılan form ölçüsü `md`. */\n size?: 'sm' | 'md';\n testId?: string;\n};\n\n/** Tarih alanı — yerel `<input type=\"date\">`. */\nconst DateField = forwardRef<HTMLInputElement, Props>(\n ({ type = 'date', size = 'md', className, testId, ...rest }, ref) => (\n <input\n ref={ref}\n type={type}\n className={cx(styles.dateField, size === 'sm' && styles['dateField--sm'], className)}\n data-testid={testId}\n {...rest}\n />\n ),\n);\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(DateField, 'DateField')) as typeof DateField;\n\nexport type DateRangeValue = {\n /** ISO tarih (`YYYY-MM-DD`) ya da boş dize. */\n start: string;\n end: string;\n};\n\ntype RangeProps = {\n value: DateRangeValue;\n onChange: (value: DateRangeValue) => void;\n /** Başlangıç alanının erişilebilir adı (\"Başlangıç\"). */\n startLabel: string;\n /** Bitiş alanının erişilebilir adı (\"Bitiş\"). */\n endLabel: string;\n /** İki alanın arasındaki ayraç. */\n separator?: string;\n /** Ölçeğin uçları; ikisi de yerel öğeye geçer. */\n min?: string;\n max?: string;\n /** Seçilen aralığın okunur özetini gösterir. */\n isSummaryVisible?: boolean;\n /** İki alanın ölçüsü — `DateField.size`. */\n size?: Props['size'];\n isDisabled?: boolean;\n /** Read-only (2.2): the native `readOnly` of both fields — focusable and readable, not editable. */\n isReadOnly?: boolean;\n /**\n * The id of the START field (2.2) — the `id` of `Field`'s `FieldChildProps`, so a form's focus\n * reaches the range. The end field takes `<id>-end`.\n */\n id?: string;\n /** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); native `required` on both fields. */\n required?: boolean;\n /** On both fields (2.2), with the error and hint ids of `Field`. */\n 'aria-describedby'?: string;\n /** On both fields (2.2); each draws the danger edge of an invalid field. */\n 'aria-invalid'?: boolean;\n className?: string;\n testId?: string;\n};\n\n/** Tarih aralığı — iki yerel alan, taklit takvim değil. */\nconst DateRangeBase = ({\n value,\n onChange,\n startLabel,\n endLabel,\n separator = '–',\n min,\n max,\n isSummaryVisible,\n size,\n isDisabled,\n isReadOnly,\n id,\n required,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid,\n className,\n testId,\n}: RangeProps) => {\n const { labels } = useUi();\n\n /* OZET `Intl` ile ve `labels.locale`den. */\n const summary = (() => {\n if (!isSummaryVisible || !labels?.locale || value.start === '' || value.end === '') return null;\n\n try {\n const format = new Intl.DateTimeFormat(labels.locale, { dateStyle: 'medium' });\n return `${format.format(new Date(value.start))} ${separator} ${format.format(new Date(value.end))}`;\n } catch {\n /* Gecersiz yerel ayar ya da tarih: ozet cizilmez, alanlar calismaya devam eder. */\n return null;\n }\n })();\n\n /* The same state and links on both fields: each is a stop of its own for a screen reader. */\n const fieldProps = {\n className: styles.range__field,\n size,\n disabled: isDisabled,\n readOnly: isReadOnly,\n required,\n 'aria-describedby': describedBy,\n 'aria-invalid': isInvalid || undefined,\n };\n\n return (\n <div className={cx(styles.range, className)} data-testid={testId}>\n <div className={styles.range__row}>\n <DateField\n {...fieldProps}\n id={id}\n aria-label={startLabel}\n value={value.start}\n min={min}\n /* Baslangic bitisi GECEMEZ: tarayici gecersiz araligi en bastan sectirmiyor. */\n max={value.end || max}\n onChange={event => onChange({ ...value, start: event.target.value })}\n />\n\n <span className={styles.range__separator} aria-hidden>\n {separator}\n </span>\n\n <DateField\n {...fieldProps}\n id={id === undefined ? undefined : `${id}-end`}\n aria-label={endLabel}\n value={value.end}\n min={value.start || min}\n max={max}\n onChange={event => onChange({ ...value, end: event.target.value })}\n />\n </div>\n\n {summary && <span className={styles.range__summary}>{summary}</span>}\n </div>\n );\n};\n\nexport const DateRange = /*#__PURE__*/ named(/*#__PURE__*/ memo(DateRangeBase), 'DateRange');\n"],"names":["DateField","forwardRef","type","size","className","testId","rest","ref","jsx","cx","styles","index","memo","named","DateRangeBase","value","onChange","startLabel","endLabel","separator","min","max","isSummaryVisible","isDisabled","isReadOnly","id","required","describedBy","isInvalid","labels","useUi","summary","format","fieldProps","jsxs","event","DateRange"],"mappings":"4VAmBMA,EAAYC,EAAAA,WAChB,CAAC,CAAE,KAAAC,EAAO,OAAQ,KAAAC,EAAO,KAAM,UAAAC,EAAW,OAAAC,EAAQ,GAAGC,GAAQC,IAC3DC,EAAAA,IAAC,QAAA,CACC,IAAAD,EACA,KAAAL,EACA,UAAWO,EAAAA,GAAGC,EAAAA,QAAO,UAAWP,IAAS,MAAQO,EAAAA,QAAO,eAAe,EAAGN,CAAS,EACnF,cAAaC,EACZ,GAAGC,CAAA,CAAA,CAGV,EAEAK,EAA6BC,OAAmBC,EAAAA,MAAMb,EAAW,WAAW,CAAC,EA2CvEc,EAAgB,CAAC,CACrB,MAAAC,EACA,SAAAC,EACA,WAAAC,EACA,SAAAC,EACA,UAAAC,EAAY,IACZ,IAAAC,EACA,IAAAC,EACA,iBAAAC,EACA,KAAAnB,EACA,WAAAoB,EACA,WAAAC,EACA,GAAAC,EACA,SAAAC,EACA,mBAAoBC,EACpB,eAAgBC,EAChB,UAAAxB,EACA,OAAAC,CACF,IAAkB,CAChB,KAAM,CAAE,OAAAwB,CAAA,EAAWC,QAAA,EAGbC,GAAW,IAAM,CACrB,GAAI,CAACT,GAAoB,EAACO,GAAA,MAAAA,EAAQ,SAAUd,EAAM,QAAU,IAAMA,EAAM,MAAQ,GAAI,OAAO,KAE3F,GAAI,CACF,MAAMiB,EAAS,IAAI,KAAK,eAAeH,EAAO,OAAQ,CAAE,UAAW,SAAU,EAC7E,MAAO,GAAGG,EAAO,OAAO,IAAI,KAAKjB,EAAM,KAAK,CAAC,CAAC,IAAII,CAAS,IAAIa,EAAO,OAAO,IAAI,KAAKjB,EAAM,GAAG,CAAC,CAAC,EACnG,MAAQ,CAEN,OAAO,IACT,CACF,GAAA,EAGMkB,EAAa,CACjB,UAAWvB,EAAAA,QAAO,aAClB,KAAAP,EACA,SAAUoB,EACV,SAAUC,EACV,SAAAE,EACA,mBAAoBC,EACpB,eAAgBC,GAAa,MAAA,EAG/B,OACEM,OAAC,OAAI,UAAWzB,EAAAA,GAAGC,EAAAA,QAAO,MAAON,CAAS,EAAG,cAAaC,EACxD,SAAA,CAAA6B,EAAAA,KAAC,MAAA,CAAI,UAAWxB,EAAAA,QAAO,WACrB,SAAA,CAAAF,EAAAA,IAACR,EAAA,CACE,GAAGiC,EACJ,GAAAR,EACA,aAAYR,EACZ,MAAOF,EAAM,MACb,IAAAK,EAEA,IAAKL,EAAM,KAAOM,EAClB,SAAUc,GAASnB,EAAS,CAAE,GAAGD,EAAO,MAAOoB,EAAM,OAAO,KAAA,CAAO,CAAA,CAAA,QAGpE,OAAA,CAAK,UAAWzB,EAAAA,QAAO,iBAAkB,cAAW,GAClD,SAAAS,EACH,EAEAX,EAAAA,IAACR,EAAA,CACE,GAAGiC,EACJ,GAAIR,IAAO,OAAY,OAAY,GAAGA,CAAE,OACxC,aAAYP,EACZ,MAAOH,EAAM,IACb,IAAKA,EAAM,OAASK,EACpB,IAAAC,EACA,SAAUc,GAASnB,EAAS,CAAE,GAAGD,EAAO,IAAKoB,EAAM,OAAO,KAAA,CAAO,CAAA,CAAA,CACnE,EACF,EAECJ,GAAWvB,EAAAA,IAAC,OAAA,CAAK,UAAWE,EAAAA,QAAO,eAAiB,SAAAqB,CAAA,CAAQ,CAAA,EAC/D,CAEJ,EAEaK,EAA0BvB,EAAAA,MAAoBD,OAAKE,CAAa,EAAG,WAAW"}
@@ -0,0 +1,57 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ type Props = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {
3
+ /** `date` (varsayılan) · `datetime-local` · `month` · `time`. */
4
+ type?: 'date' | 'datetime-local' | 'month' | 'time';
5
+ /** `sm` yoğun şeritler içindir (araç çubuğu, `Select size="sm"` yanında); varsayılan form ölçüsü `md`. */
6
+ size?: 'sm' | 'md';
7
+ testId?: string;
8
+ };
9
+ /** Tarih alanı — yerel `<input type="date">`. */
10
+ declare const DateField: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
11
+ /** `date` (varsayılan) · `datetime-local` · `month` · `time`. */
12
+ type?: "date" | "datetime-local" | "month" | "time";
13
+ /** `sm` yoğun şeritler içindir (araç çubuğu, `Select size="sm"` yanında); varsayılan form ölçüsü `md`. */
14
+ size?: "sm" | "md";
15
+ testId?: string;
16
+ } & import('react').RefAttributes<HTMLInputElement>>;
17
+ declare const _default: typeof DateField;
18
+ export default _default;
19
+ export type DateRangeValue = {
20
+ /** ISO tarih (`YYYY-MM-DD`) ya da boş dize. */
21
+ start: string;
22
+ end: string;
23
+ };
24
+ type RangeProps = {
25
+ value: DateRangeValue;
26
+ onChange: (value: DateRangeValue) => void;
27
+ /** Başlangıç alanının erişilebilir adı ("Başlangıç"). */
28
+ startLabel: string;
29
+ /** Bitiş alanının erişilebilir adı ("Bitiş"). */
30
+ endLabel: string;
31
+ /** İki alanın arasındaki ayraç. */
32
+ separator?: string;
33
+ /** Ölçeğin uçları; ikisi de yerel öğeye geçer. */
34
+ min?: string;
35
+ max?: string;
36
+ /** Seçilen aralığın okunur özetini gösterir. */
37
+ isSummaryVisible?: boolean;
38
+ /** İki alanın ölçüsü — `DateField.size`. */
39
+ size?: Props['size'];
40
+ isDisabled?: boolean;
41
+ /** Read-only (2.2): the native `readOnly` of both fields — focusable and readable, not editable. */
42
+ isReadOnly?: boolean;
43
+ /**
44
+ * The id of the START field (2.2) — the `id` of `Field`'s `FieldChildProps`, so a form's focus
45
+ * reaches the range. The end field takes `<id>-end`.
46
+ */
47
+ id?: string;
48
+ /** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); native `required` on both fields. */
49
+ required?: boolean;
50
+ /** On both fields (2.2), with the error and hint ids of `Field`. */
51
+ 'aria-describedby'?: string;
52
+ /** On both fields (2.2); each draws the danger edge of an invalid field. */
53
+ 'aria-invalid'?: boolean;
54
+ className?: string;
55
+ testId?: string;
56
+ };
57
+ export declare const DateRange: import('react').MemoExoticComponent<({ value, onChange, startLabel, endLabel, separator, min, max, isSummaryVisible, size, isDisabled, isReadOnly, id, required, "aria-describedby": describedBy, "aria-invalid": isInvalid, className, testId, }: RangeProps) => import("react").JSX.Element>;
@@ -0,0 +1,57 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ type Props = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {
3
+ /** `date` (varsayılan) · `datetime-local` · `month` · `time`. */
4
+ type?: 'date' | 'datetime-local' | 'month' | 'time';
5
+ /** `sm` yoğun şeritler içindir (araç çubuğu, `Select size="sm"` yanında); varsayılan form ölçüsü `md`. */
6
+ size?: 'sm' | 'md';
7
+ testId?: string;
8
+ };
9
+ /** Tarih alanı — yerel `<input type="date">`. */
10
+ declare const DateField: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
11
+ /** `date` (varsayılan) · `datetime-local` · `month` · `time`. */
12
+ type?: "date" | "datetime-local" | "month" | "time";
13
+ /** `sm` yoğun şeritler içindir (araç çubuğu, `Select size="sm"` yanında); varsayılan form ölçüsü `md`. */
14
+ size?: "sm" | "md";
15
+ testId?: string;
16
+ } & import('react').RefAttributes<HTMLInputElement>>;
17
+ declare const _default: typeof DateField;
18
+ export default _default;
19
+ export type DateRangeValue = {
20
+ /** ISO tarih (`YYYY-MM-DD`) ya da boş dize. */
21
+ start: string;
22
+ end: string;
23
+ };
24
+ type RangeProps = {
25
+ value: DateRangeValue;
26
+ onChange: (value: DateRangeValue) => void;
27
+ /** Başlangıç alanının erişilebilir adı ("Başlangıç"). */
28
+ startLabel: string;
29
+ /** Bitiş alanının erişilebilir adı ("Bitiş"). */
30
+ endLabel: string;
31
+ /** İki alanın arasındaki ayraç. */
32
+ separator?: string;
33
+ /** Ölçeğin uçları; ikisi de yerel öğeye geçer. */
34
+ min?: string;
35
+ max?: string;
36
+ /** Seçilen aralığın okunur özetini gösterir. */
37
+ isSummaryVisible?: boolean;
38
+ /** İki alanın ölçüsü — `DateField.size`. */
39
+ size?: Props['size'];
40
+ isDisabled?: boolean;
41
+ /** Read-only (2.2): the native `readOnly` of both fields — focusable and readable, not editable. */
42
+ isReadOnly?: boolean;
43
+ /**
44
+ * The id of the START field (2.2) — the `id` of `Field`'s `FieldChildProps`, so a form's focus
45
+ * reaches the range. The end field takes `<id>-end`.
46
+ */
47
+ id?: string;
48
+ /** Zorunluluk — `Field`in `FieldChildProps` sözleşmesi (2.2); native `required` on both fields. */
49
+ required?: boolean;
50
+ /** On both fields (2.2), with the error and hint ids of `Field`. */
51
+ 'aria-describedby'?: string;
52
+ /** On both fields (2.2); each draws the danger edge of an invalid field. */
53
+ 'aria-invalid'?: boolean;
54
+ className?: string;
55
+ testId?: string;
56
+ };
57
+ export declare const DateRange: import('react').MemoExoticComponent<({ value, onChange, startLabel, endLabel, separator, min, max, isSummaryVisible, size, isDisabled, isReadOnly, id, required, "aria-describedby": describedBy, "aria-invalid": isInvalid, className, testId, }: RangeProps) => import("react").JSX.Element>;
@@ -0,0 +1,90 @@
1
+ "use client";
2
+ import { jsx as r, jsxs as u } from "react/jsx-runtime";
3
+ import { memo as y, forwardRef as v } from "react";
4
+ import { cx as D } from "../../helpers/class-name.helper.js";
5
+ import { named as _ } from "../../helpers/component.helper.js";
6
+ import { useUi as B } from "../../theme/context.js";
7
+ const e = {"dateField":"ui-dateField-UnUwe","dateField--sm":"ui-dateField--sm-bcDe9","range":"ui-range-nGuRH","range__row":"ui-range__row--debA","range__separator":"ui-range__separator-fEqqr","range__field":"ui-range__field-tmoNH","range__summary":"ui-range__summary-L6v1T"};
8
+ const c = v(
9
+ ({ type: a = "date", size: n = "md", className: m, testId: o, ...d }, s) => /* @__PURE__ */ r(
10
+ "input",
11
+ {
12
+ ref: s,
13
+ type: a,
14
+ className: D(e.dateField, n === "sm" && e["dateField--sm"], m),
15
+ "data-testid": o,
16
+ ...d
17
+ }
18
+ )
19
+ ), k = /* @__PURE__ */ y(/* @__PURE__ */ _(c, "DateField")), C = ({
20
+ value: a,
21
+ onChange: n,
22
+ startLabel: m,
23
+ endLabel: o,
24
+ separator: d = "–",
25
+ min: s,
26
+ max: f,
27
+ isSummaryVisible: h,
28
+ size: b,
29
+ isDisabled: N,
30
+ isReadOnly: w,
31
+ id: l,
32
+ required: x,
33
+ "aria-describedby": F,
34
+ "aria-invalid": R,
35
+ className: $,
36
+ testId: j
37
+ }) => {
38
+ const { labels: i } = B(), g = (() => {
39
+ if (!h || !(i != null && i.locale) || a.start === "" || a.end === "") return null;
40
+ try {
41
+ const t = new Intl.DateTimeFormat(i.locale, { dateStyle: "medium" });
42
+ return `${t.format(new Date(a.start))} ${d} ${t.format(new Date(a.end))}`;
43
+ } catch {
44
+ return null;
45
+ }
46
+ })(), p = {
47
+ className: e.range__field,
48
+ size: b,
49
+ disabled: N,
50
+ readOnly: w,
51
+ required: x,
52
+ "aria-describedby": F,
53
+ "aria-invalid": R || void 0
54
+ };
55
+ return /* @__PURE__ */ u("div", { className: D(e.range, $), "data-testid": j, children: [
56
+ /* @__PURE__ */ u("div", { className: e.range__row, children: [
57
+ /* @__PURE__ */ r(
58
+ c,
59
+ {
60
+ ...p,
61
+ id: l,
62
+ "aria-label": m,
63
+ value: a.start,
64
+ min: s,
65
+ max: a.end || f,
66
+ onChange: (t) => n({ ...a, start: t.target.value })
67
+ }
68
+ ),
69
+ /* @__PURE__ */ r("span", { className: e.range__separator, "aria-hidden": !0, children: d }),
70
+ /* @__PURE__ */ r(
71
+ c,
72
+ {
73
+ ...p,
74
+ id: l === void 0 ? void 0 : `${l}-end`,
75
+ "aria-label": o,
76
+ value: a.end,
77
+ min: a.start || s,
78
+ max: f,
79
+ onChange: (t) => n({ ...a, end: t.target.value })
80
+ }
81
+ )
82
+ ] }),
83
+ g && /* @__PURE__ */ r("span", { className: e.range__summary, children: g })
84
+ ] });
85
+ }, q = /* @__PURE__ */ _(/* @__PURE__ */ y(C), "DateRange");
86
+ export {
87
+ q as DateRange,
88
+ k as default
89
+ };
90
+ //# sourceMappingURL=index.js.map