@oneplatformdev/ui 0.1.9-6 → 0.1.9

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 (575) hide show
  1. package/Accordion/Accordion.d.ts +10 -0
  2. package/Accordion/Accordion.d.ts.map +1 -0
  3. package/Accordion/Accordion.js +49 -0
  4. package/Accordion/index.d.ts +2 -0
  5. package/Accordion/index.d.ts.map +1 -0
  6. package/Accordion/index.js +7 -0
  7. package/Alert/Alert.d.ts +8 -0
  8. package/Alert/Alert.d.ts.map +1 -0
  9. package/Alert/Alert.js +37 -0
  10. package/Alert/alertVariants.d.ts +5 -0
  11. package/Alert/alertVariants.d.ts.map +1 -0
  12. package/Alert/alertVariants.js +19 -0
  13. package/Alert/index.d.ts +2 -0
  14. package/Alert/index.d.ts.map +1 -0
  15. package/Alert/index.js +6 -0
  16. package/AlertDialog/AlertDialog.d.ts +65 -0
  17. package/AlertDialog/AlertDialog.d.ts.map +1 -0
  18. package/AlertDialog/AlertDialog.js +97 -0
  19. package/AlertDialog/AlertDialog.stories.d.ts +47 -0
  20. package/AlertDialog/AlertDialog.stories.d.ts.map +1 -0
  21. package/AlertDialog/AlertDialog.stories.js +121 -0
  22. package/AlertDialog/AlertDialog.types.d.ts +53 -0
  23. package/AlertDialog/AlertDialog.types.d.ts.map +1 -0
  24. package/AlertDialog/AlertDialog.types.js +1 -0
  25. package/AlertDialog/AlertDialogRoot.d.ts +22 -0
  26. package/AlertDialog/AlertDialogRoot.d.ts.map +1 -0
  27. package/AlertDialog/AlertDialogRoot.js +114 -0
  28. package/AlertDialog/index.d.ts +4 -0
  29. package/AlertDialog/index.d.ts.map +1 -0
  30. package/AlertDialog/index.js +16 -0
  31. package/AreaChart/AreaChart.d.ts +4 -0
  32. package/AreaChart/AreaChart.d.ts.map +1 -0
  33. package/AreaChart/AreaChart.js +27 -0
  34. package/AreaChart/AreaChart.types.d.ts +16 -0
  35. package/AreaChart/AreaChart.types.d.ts.map +1 -0
  36. package/AreaChart/AreaChart.types.js +1 -0
  37. package/AreaChart/index.d.ts +3 -0
  38. package/AreaChart/index.d.ts.map +1 -0
  39. package/AreaChart/index.js +4 -0
  40. package/Aside/Aside.d.ts +4 -0
  41. package/Aside/Aside.d.ts.map +1 -0
  42. package/Aside/Aside.js +23 -0
  43. package/Aside/Aside.types.d.ts +19 -0
  44. package/Aside/Aside.types.d.ts.map +1 -0
  45. package/Aside/Aside.types.js +1 -0
  46. package/Aside/AsideSidebar.d.ts +4 -0
  47. package/Aside/AsideSidebar.d.ts.map +1 -0
  48. package/Aside/AsideSidebar.js +37 -0
  49. package/Aside/index.d.ts +4 -0
  50. package/Aside/index.d.ts.map +1 -0
  51. package/Aside/index.js +7 -0
  52. package/AspectRatio/AspectRatio.d.ts +3 -0
  53. package/AspectRatio/AspectRatio.d.ts.map +1 -0
  54. package/AspectRatio/AspectRatio.js +5 -0
  55. package/AspectRatio/index.d.ts +2 -0
  56. package/AspectRatio/index.d.ts.map +1 -0
  57. package/AspectRatio/index.js +5 -0
  58. package/Avatar/Avatar.d.ts +6 -0
  59. package/Avatar/Avatar.d.ts.map +1 -0
  60. package/Avatar/Avatar.js +42 -0
  61. package/Avatar/index.d.ts +2 -0
  62. package/Avatar/index.d.ts.map +1 -0
  63. package/Avatar/index.js +6 -0
  64. package/Badge/Badge.d.ts +5 -0
  65. package/Badge/Badge.d.ts.map +1 -0
  66. package/Badge/Badge.js +10 -0
  67. package/Badge/Badge.types.d.ts +6 -0
  68. package/Badge/Badge.types.d.ts.map +1 -0
  69. package/Badge/Badge.types.js +1 -0
  70. package/Badge/badgeVariants.d.ts +4 -0
  71. package/Badge/badgeVariants.d.ts.map +1 -0
  72. package/Badge/badgeVariants.js +20 -0
  73. package/Badge/index.d.ts +4 -0
  74. package/Badge/index.d.ts.map +1 -0
  75. package/Badge/index.js +6 -0
  76. package/Breadcrumb/Breadcrumb.d.ts +20 -0
  77. package/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  78. package/Breadcrumb/Breadcrumb.js +90 -0
  79. package/Breadcrumb/index.d.ts +2 -0
  80. package/Breadcrumb/index.d.ts.map +1 -0
  81. package/Breadcrumb/index.js +10 -0
  82. package/Button/buttonVariants.d.ts +1 -1
  83. package/ButtonIcon/buttonIconVariants.d.ts +2 -2
  84. package/CHANGELOG.md +54 -0
  85. package/Calendar/Calendar.d.ts +9 -0
  86. package/Calendar/Calendar.d.ts.map +1 -0
  87. package/Calendar/Calendar.js +64 -0
  88. package/Calendar/index.d.ts +2 -0
  89. package/Calendar/index.d.ts.map +1 -0
  90. package/Calendar/index.js +4 -0
  91. package/Card/Card.d.ts +9 -0
  92. package/Card/Card.d.ts.map +1 -0
  93. package/Card/Card.js +62 -0
  94. package/Card/index.d.ts +2 -0
  95. package/Card/index.d.ts.map +1 -0
  96. package/Card/index.js +9 -0
  97. package/Carousel/Carousel.d.ts +19 -0
  98. package/Carousel/Carousel.d.ts.map +1 -0
  99. package/Carousel/Carousel.js +168 -0
  100. package/Carousel/index.d.ts +2 -0
  101. package/Carousel/index.d.ts.map +1 -0
  102. package/Carousel/index.js +8 -0
  103. package/Chart/Chart.d.ts +62 -0
  104. package/Chart/Chart.d.ts.map +1 -0
  105. package/Chart/Chart.js +208 -0
  106. package/Chart/index.d.ts +2 -0
  107. package/Chart/index.d.ts.map +1 -0
  108. package/Chart/index.js +9 -0
  109. package/Checkbox/Checkbox.d.ts +6 -0
  110. package/Checkbox/Checkbox.d.ts.map +1 -0
  111. package/Checkbox/Checkbox.js +54 -0
  112. package/Checkbox/Checkbox.types.d.ts +11 -0
  113. package/Checkbox/Checkbox.types.d.ts.map +1 -0
  114. package/Checkbox/Checkbox.types.js +1 -0
  115. package/Checkbox/index.d.ts +3 -0
  116. package/Checkbox/index.d.ts.map +1 -0
  117. package/Checkbox/index.js +5 -0
  118. package/Collapsible/Collapsible.d.ts +6 -0
  119. package/Collapsible/Collapsible.d.ts.map +1 -0
  120. package/Collapsible/Collapsible.js +7 -0
  121. package/Collapsible/index.d.ts +2 -0
  122. package/Collapsible/index.d.ts.map +1 -0
  123. package/Collapsible/index.js +6 -0
  124. package/Combobox/Combobox.d.ts +4 -0
  125. package/Combobox/Combobox.d.ts.map +1 -0
  126. package/Combobox/Combobox.js +177 -0
  127. package/Combobox/Combobox.types.d.ts +50 -0
  128. package/Combobox/Combobox.types.d.ts.map +1 -0
  129. package/Combobox/Combobox.types.js +1 -0
  130. package/Combobox/ComboboxOptionItem.d.ts +5 -0
  131. package/Combobox/ComboboxOptionItem.d.ts.map +1 -0
  132. package/Combobox/ComboboxOptionItem.js +108 -0
  133. package/Combobox/ComboboxOptions.d.ts +4 -0
  134. package/Combobox/ComboboxOptions.d.ts.map +1 -0
  135. package/Combobox/ComboboxOptions.js +64 -0
  136. package/Combobox/index.d.ts +3 -0
  137. package/Combobox/index.d.ts.map +1 -0
  138. package/Combobox/index.js +4 -0
  139. package/Command/Command.d.ts +81 -0
  140. package/Command/Command.d.ts.map +1 -0
  141. package/Command/Command.js +117 -0
  142. package/Command/index.d.ts +2 -0
  143. package/Command/index.d.ts.map +1 -0
  144. package/Command/index.js +12 -0
  145. package/DataTable/DataTable.d.ts +11 -0
  146. package/DataTable/DataTable.d.ts.map +1 -0
  147. package/DataTable/DataTable.js +61 -0
  148. package/DataTable/DataTable.types.d.ts +11 -0
  149. package/DataTable/DataTable.types.d.ts.map +1 -0
  150. package/DataTable/DataTable.types.js +1 -0
  151. package/DataTable/DataTableColumnFilter.d.ts +4 -0
  152. package/DataTable/DataTableColumnFilter.d.ts.map +1 -0
  153. package/DataTable/DataTableColumnFilter.js +31 -0
  154. package/DataTable/index.d.ts +3 -0
  155. package/DataTable/index.d.ts.map +1 -0
  156. package/DataTable/index.js +4 -0
  157. package/DataTable/useDataTable.d.ts +4 -0
  158. package/DataTable/useDataTable.d.ts.map +1 -0
  159. package/DataTable/useDataTable.js +30 -0
  160. package/DatePicker/DatePicker.d.ts +4 -0
  161. package/DatePicker/DatePicker.d.ts.map +1 -0
  162. package/DatePicker/DatePicker.js +53 -0
  163. package/DatePicker/DatePicker.types.d.ts +6 -0
  164. package/DatePicker/DatePicker.types.d.ts.map +1 -0
  165. package/DatePicker/DatePicker.types.js +1 -0
  166. package/DatePicker/index.d.ts +4 -0
  167. package/DatePicker/index.d.ts.map +1 -0
  168. package/DatePicker/index.js +5 -0
  169. package/Dialog/Dialog.d.ts +23 -0
  170. package/Dialog/Dialog.d.ts.map +1 -0
  171. package/Dialog/Dialog.js +146 -0
  172. package/Dialog/DialogOverlayScope.d.ts +9 -0
  173. package/Dialog/DialogOverlayScope.d.ts.map +1 -0
  174. package/Dialog/DialogOverlayScope.js +10 -0
  175. package/Dialog/index.d.ts +3 -0
  176. package/Dialog/index.d.ts.map +1 -0
  177. package/Dialog/index.js +17 -0
  178. package/Drawer/Drawer.d.ts +23 -0
  179. package/Drawer/Drawer.d.ts.map +1 -0
  180. package/Drawer/Drawer.js +98 -0
  181. package/Drawer/index.d.ts +2 -0
  182. package/Drawer/index.d.ts.map +1 -0
  183. package/Drawer/index.js +13 -0
  184. package/Dropzone/Dropzone.d.ts +22 -0
  185. package/Dropzone/Dropzone.d.ts.map +1 -0
  186. package/Dropzone/Dropzone.js +155 -0
  187. package/Dropzone/Dropzone.types.d.ts +44 -0
  188. package/Dropzone/Dropzone.types.d.ts.map +1 -0
  189. package/Dropzone/Dropzone.types.js +17 -0
  190. package/Dropzone/DropzoneFilePreview.d.ts +4 -0
  191. package/Dropzone/DropzoneFilePreview.d.ts.map +1 -0
  192. package/Dropzone/DropzoneFilePreview.js +54 -0
  193. package/Dropzone/DropzoneSinglePickPreview.d.ts +10 -0
  194. package/Dropzone/DropzoneSinglePickPreview.d.ts.map +1 -0
  195. package/Dropzone/DropzoneSinglePickPreview.js +41 -0
  196. package/Dropzone/DropzoneUtils.d.ts +5 -0
  197. package/Dropzone/DropzoneUtils.d.ts.map +1 -0
  198. package/Dropzone/DropzoneUtils.js +24 -0
  199. package/Dropzone/index.d.ts +3 -0
  200. package/Dropzone/index.d.ts.map +1 -0
  201. package/Dropzone/index.js +7 -0
  202. package/Form/Form.d.ts +24 -0
  203. package/Form/Form.d.ts.map +1 -0
  204. package/Form/Form.js +98 -0
  205. package/Form/FormRenderControl.d.ts +4 -0
  206. package/Form/FormRenderControl.d.ts.map +1 -0
  207. package/Form/FormRenderControl.js +21 -0
  208. package/Form/FormRenderControl.types.d.ts +16 -0
  209. package/Form/FormRenderControl.types.d.ts.map +1 -0
  210. package/Form/FormRenderControl.types.js +1 -0
  211. package/Form/index.d.ts +4 -0
  212. package/Form/index.d.ts.map +1 -0
  213. package/Form/index.js +13 -0
  214. package/FormCheckbox/FormCheckbox.d.ts +4 -0
  215. package/FormCheckbox/FormCheckbox.d.ts.map +1 -0
  216. package/FormCheckbox/FormCheckbox.js +30 -0
  217. package/FormCheckbox/FormCheckbox.types.d.ts +7 -0
  218. package/FormCheckbox/FormCheckbox.types.d.ts.map +1 -0
  219. package/FormCheckbox/FormCheckbox.types.js +1 -0
  220. package/FormCheckbox/index.d.ts +3 -0
  221. package/FormCheckbox/index.d.ts.map +1 -0
  222. package/FormCheckbox/index.js +4 -0
  223. package/FormCombobox/FormCombobox.d.ts +4 -0
  224. package/FormCombobox/FormCombobox.d.ts.map +1 -0
  225. package/FormCombobox/FormCombobox.js +26 -0
  226. package/FormCombobox/FormCombobox.types.d.ts +6 -0
  227. package/FormCombobox/FormCombobox.types.d.ts.map +1 -0
  228. package/FormCombobox/FormCombobox.types.js +1 -0
  229. package/FormCombobox/index.d.ts +3 -0
  230. package/FormCombobox/index.d.ts.map +1 -0
  231. package/FormCombobox/index.js +4 -0
  232. package/FormDatePicker/FormDatePicker.d.ts +4 -0
  233. package/FormDatePicker/FormDatePicker.d.ts.map +1 -0
  234. package/FormDatePicker/FormDatePicker.js +29 -0
  235. package/FormDatePicker/FormDatePicker.types.d.ts +6 -0
  236. package/FormDatePicker/FormDatePicker.types.d.ts.map +1 -0
  237. package/FormDatePicker/FormDatePicker.types.js +1 -0
  238. package/FormDatePicker/index.d.ts +4 -0
  239. package/FormDatePicker/index.d.ts.map +1 -0
  240. package/FormDatePicker/index.js +5 -0
  241. package/FormDropzone/FormDropzone.d.ts +4 -0
  242. package/FormDropzone/FormDropzone.d.ts.map +1 -0
  243. package/FormDropzone/FormDropzone.js +19 -0
  244. package/FormDropzone/FormDropzone.types.d.ts +6 -0
  245. package/FormDropzone/FormDropzone.types.d.ts.map +1 -0
  246. package/FormDropzone/FormDropzone.types.js +1 -0
  247. package/FormDropzone/index.d.ts +3 -0
  248. package/FormDropzone/index.d.ts.map +1 -0
  249. package/FormDropzone/index.js +4 -0
  250. package/FormInput/FormInput.d.ts +7 -0
  251. package/FormInput/FormInput.d.ts.map +1 -0
  252. package/FormInput/FormInput.js +45 -0
  253. package/FormInput/FormInput.types.d.ts +6 -0
  254. package/FormInput/FormInput.types.d.ts.map +1 -0
  255. package/FormInput/FormInput.types.js +1 -0
  256. package/FormInput/index.d.ts +3 -0
  257. package/FormInput/index.d.ts.map +1 -0
  258. package/FormInput/index.js +4 -0
  259. package/FormRadio/FormRadio.d.ts +4 -0
  260. package/FormRadio/FormRadio.d.ts.map +1 -0
  261. package/FormRadio/FormRadio.js +40 -0
  262. package/FormRadio/FormRadio.types.d.ts +6 -0
  263. package/FormRadio/FormRadio.types.d.ts.map +1 -0
  264. package/FormRadio/FormRadio.types.js +1 -0
  265. package/FormRadio/index.d.ts +3 -0
  266. package/FormRadio/index.d.ts.map +1 -0
  267. package/FormRadio/index.js +4 -0
  268. package/FormSelect/FormSelect.d.ts +4 -0
  269. package/FormSelect/FormSelect.d.ts.map +1 -0
  270. package/FormSelect/FormSelect.js +40 -0
  271. package/FormSelect/FormSelect.types.d.ts +6 -0
  272. package/FormSelect/FormSelect.types.d.ts.map +1 -0
  273. package/FormSelect/FormSelect.types.js +1 -0
  274. package/FormSelect/index.d.ts +3 -0
  275. package/FormSelect/index.d.ts.map +1 -0
  276. package/FormSelect/index.js +4 -0
  277. package/FormTextarea/FormTextarea.d.ts +4 -0
  278. package/FormTextarea/FormTextarea.d.ts.map +1 -0
  279. package/FormTextarea/FormTextarea.js +27 -0
  280. package/FormTextarea/FormTextarea.types.d.ts +6 -0
  281. package/FormTextarea/FormTextarea.types.d.ts.map +1 -0
  282. package/FormTextarea/FormTextarea.types.js +1 -0
  283. package/FormTextarea/index.d.ts +3 -0
  284. package/FormTextarea/index.d.ts.map +1 -0
  285. package/FormTextarea/index.js +4 -0
  286. package/Header/Header.d.ts +5 -0
  287. package/Header/Header.d.ts.map +1 -0
  288. package/Header/Header.js +26 -0
  289. package/Header/Header.types.d.ts +4 -0
  290. package/Header/Header.types.d.ts.map +1 -0
  291. package/Header/Header.types.js +1 -0
  292. package/Header/index.d.ts +3 -0
  293. package/Header/index.d.ts.map +1 -0
  294. package/Header/index.js +5 -0
  295. package/HoverCard/HoverCard.d.ts +7 -0
  296. package/HoverCard/HoverCard.d.ts.map +1 -0
  297. package/HoverCard/HoverCard.js +23 -0
  298. package/HoverCard/index.d.ts +2 -0
  299. package/HoverCard/index.d.ts.map +1 -0
  300. package/HoverCard/index.js +6 -0
  301. package/Input/Input.d.ts +6 -0
  302. package/Input/Input.d.ts.map +1 -0
  303. package/Input/Input.js +72 -0
  304. package/Input/Input.types.d.ts +17 -0
  305. package/Input/Input.types.d.ts.map +1 -0
  306. package/Input/Input.types.js +1 -0
  307. package/Input/index.d.ts +4 -0
  308. package/Input/index.d.ts.map +1 -0
  309. package/Input/index.js +7 -0
  310. package/Input/inputVariants.d.ts +4 -0
  311. package/Input/inputVariants.d.ts.map +1 -0
  312. package/Input/inputVariants.js +24 -0
  313. package/InputOTP/InputOTP.d.ts +35 -0
  314. package/InputOTP/InputOTP.d.ts.map +1 -0
  315. package/InputOTP/InputOTP.js +48 -0
  316. package/InputOTP/index.d.ts +2 -0
  317. package/InputOTP/index.d.ts.map +1 -0
  318. package/InputOTP/index.js +7 -0
  319. package/Label/Label.d.ts +6 -0
  320. package/Label/Label.d.ts.map +1 -0
  321. package/Label/Label.js +17 -0
  322. package/Label/index.d.ts +3 -0
  323. package/Label/index.d.ts.map +1 -0
  324. package/Label/index.js +6 -0
  325. package/Label/labelVariants.d.ts +2 -0
  326. package/Label/labelVariants.d.ts.map +1 -0
  327. package/Label/labelVariants.js +10 -0
  328. package/LazyLoader/LazyLoader.d.ts +20 -0
  329. package/LazyLoader/LazyLoader.d.ts.map +1 -0
  330. package/LazyLoader/LazyLoader.js +8 -0
  331. package/LazyLoader/index.d.ts +2 -0
  332. package/LazyLoader/index.d.ts.map +1 -0
  333. package/LazyLoader/index.js +5 -0
  334. package/LoadedIcon/LoadedIcon.d.ts +11 -0
  335. package/LoadedIcon/LoadedIcon.d.ts.map +1 -0
  336. package/LoadedIcon/LoadedIcon.js +27 -0
  337. package/LoadedIcon/index.d.ts +2 -0
  338. package/LoadedIcon/index.d.ts.map +1 -0
  339. package/LoadedIcon/index.js +4 -0
  340. package/LoadingMask/LoadingMask.d.ts +4 -0
  341. package/LoadingMask/LoadingMask.d.ts.map +1 -0
  342. package/LoadingMask/LoadingMask.js +21 -0
  343. package/LoadingMask/LoadingMask.types.d.ts +5 -0
  344. package/LoadingMask/LoadingMask.types.d.ts.map +1 -0
  345. package/LoadingMask/LoadingMask.types.js +1 -0
  346. package/LoadingMask/RenderLoadingMask.d.ts +3 -0
  347. package/LoadingMask/RenderLoadingMask.d.ts.map +1 -0
  348. package/LoadingMask/RenderLoadingMask.js +108 -0
  349. package/LoadingMask/index.d.ts +4 -0
  350. package/LoadingMask/index.d.ts.map +1 -0
  351. package/LoadingMask/index.js +6 -0
  352. package/LoadingProgress/LoadingProgress.d.ts +4 -0
  353. package/LoadingProgress/LoadingProgress.d.ts.map +1 -0
  354. package/LoadingProgress/LoadingProgress.js +37 -0
  355. package/LoadingProgress/LoadingProgress.types.d.ts +8 -0
  356. package/LoadingProgress/LoadingProgress.types.d.ts.map +1 -0
  357. package/LoadingProgress/LoadingProgress.types.js +1 -0
  358. package/LoadingProgress/index.d.ts +4 -0
  359. package/LoadingProgress/index.d.ts.map +1 -0
  360. package/LoadingProgress/index.js +6 -0
  361. package/LoadingProgress/loadingProgressVariants.d.ts +5 -0
  362. package/LoadingProgress/loadingProgressVariants.d.ts.map +1 -0
  363. package/LoadingProgress/loadingProgressVariants.js +24 -0
  364. package/Menubar/Menubar.d.ts +29 -0
  365. package/Menubar/Menubar.d.ts.map +1 -0
  366. package/Menubar/Menubar.js +175 -0
  367. package/Menubar/index.d.ts +2 -0
  368. package/Menubar/index.d.ts.map +1 -0
  369. package/Menubar/index.js +19 -0
  370. package/NavigationMenu/NavigationMenu.d.ts +12 -0
  371. package/NavigationMenu/NavigationMenu.d.ts.map +1 -0
  372. package/NavigationMenu/NavigationMenu.js +101 -0
  373. package/NavigationMenu/index.d.ts +3 -0
  374. package/NavigationMenu/index.d.ts.map +1 -0
  375. package/NavigationMenu/index.js +13 -0
  376. package/NavigationMenu/navigationMenuVariants.d.ts +2 -0
  377. package/NavigationMenu/navigationMenuVariants.d.ts.map +1 -0
  378. package/NavigationMenu/navigationMenuVariants.js +7 -0
  379. package/Pagination/Pagination.d.ts +29 -0
  380. package/Pagination/Pagination.d.ts.map +1 -0
  381. package/Pagination/Pagination.js +106 -0
  382. package/Pagination/index.d.ts +2 -0
  383. package/Pagination/index.d.ts.map +1 -0
  384. package/Pagination/index.js +10 -0
  385. package/Popover/Popover.d.ts +8 -0
  386. package/Popover/Popover.d.ts.map +1 -0
  387. package/Popover/Popover.js +36 -0
  388. package/Popover/index.d.ts +2 -0
  389. package/Popover/index.d.ts.map +1 -0
  390. package/Popover/index.js +7 -0
  391. package/Progress/Progress.d.ts +5 -0
  392. package/Progress/Progress.d.ts.map +1 -0
  393. package/Progress/Progress.js +26 -0
  394. package/Progress/index.d.ts +2 -0
  395. package/Progress/index.d.ts.map +1 -0
  396. package/Progress/index.js +4 -0
  397. package/Radio/Radio.d.ts +4 -0
  398. package/Radio/Radio.d.ts.map +1 -0
  399. package/Radio/Radio.js +12 -0
  400. package/Radio/Radio.types.d.ts +11 -0
  401. package/Radio/Radio.types.d.ts.map +1 -0
  402. package/Radio/Radio.types.js +1 -0
  403. package/Radio/index.d.ts +3 -0
  404. package/Radio/index.d.ts.map +1 -0
  405. package/Radio/index.js +4 -0
  406. package/RadioGroup/RadioGroup.d.ts +12 -0
  407. package/RadioGroup/RadioGroup.d.ts.map +1 -0
  408. package/RadioGroup/RadioGroup.js +49 -0
  409. package/RadioGroup/index.d.ts +2 -0
  410. package/RadioGroup/index.d.ts.map +1 -0
  411. package/RadioGroup/index.js +6 -0
  412. package/Resizable/Resizable.d.ts +24 -0
  413. package/Resizable/Resizable.d.ts.map +1 -0
  414. package/Resizable/Resizable.js +36 -0
  415. package/Resizable/index.d.ts +2 -0
  416. package/Resizable/index.d.ts.map +1 -0
  417. package/Resizable/index.js +6 -0
  418. package/ScrollArea/ScrollArea.d.ts +6 -0
  419. package/ScrollArea/ScrollArea.d.ts.map +1 -0
  420. package/ScrollArea/ScrollArea.js +51 -0
  421. package/ScrollArea/index.d.ts +2 -0
  422. package/ScrollArea/index.d.ts.map +1 -0
  423. package/ScrollArea/index.js +5 -0
  424. package/Search/Search.d.ts +3 -0
  425. package/Search/Search.d.ts.map +1 -0
  426. package/Search/Search.js +45 -0
  427. package/Search/Search.types.d.ts +7 -0
  428. package/Search/Search.types.d.ts.map +1 -0
  429. package/Search/Search.types.js +1 -0
  430. package/Search/index.d.ts +4 -0
  431. package/Search/index.d.ts.map +1 -0
  432. package/Search/index.js +5 -0
  433. package/Select/Select.d.ts +3 -0
  434. package/Select/Select.d.ts.map +1 -0
  435. package/Select/Select.js +102 -0
  436. package/Select/Select.stories.d.ts +7 -0
  437. package/Select/Select.stories.d.ts.map +1 -0
  438. package/Select/Select.stories.js +41 -0
  439. package/Select/Select.types.d.ts +37 -0
  440. package/Select/Select.types.d.ts.map +1 -0
  441. package/Select/Select.types.js +1 -0
  442. package/Select/SelectRoot.d.ts +14 -0
  443. package/Select/SelectRoot.d.ts.map +1 -0
  444. package/Select/SelectRoot.js +126 -0
  445. package/Select/index.d.ts +4 -0
  446. package/Select/index.d.ts.map +1 -0
  447. package/Select/index.js +15 -0
  448. package/Separator/Separator.d.ts +5 -0
  449. package/Separator/Separator.d.ts.map +1 -0
  450. package/Separator/Separator.js +24 -0
  451. package/Separator/index.d.ts +2 -0
  452. package/Separator/index.d.ts.map +1 -0
  453. package/Separator/index.js +4 -0
  454. package/Sheet/Sheet.d.ts +29 -0
  455. package/Sheet/Sheet.d.ts.map +1 -0
  456. package/Sheet/Sheet.js +110 -0
  457. package/Sheet/index.d.ts +2 -0
  458. package/Sheet/index.d.ts.map +1 -0
  459. package/Sheet/index.js +13 -0
  460. package/Sidebar/Sidebar.d.ts +67 -0
  461. package/Sidebar/Sidebar.d.ts.map +1 -0
  462. package/Sidebar/Sidebar.js +532 -0
  463. package/Sidebar/index.d.ts +2 -0
  464. package/Sidebar/index.d.ts.map +1 -0
  465. package/Sidebar/index.js +27 -0
  466. package/Skeleton/Skeleton.d.ts +4 -0
  467. package/Skeleton/Skeleton.d.ts.map +1 -0
  468. package/Skeleton/Skeleton.js +17 -0
  469. package/Skeleton/index.d.ts +2 -0
  470. package/Skeleton/index.d.ts.map +1 -0
  471. package/Skeleton/index.js +4 -0
  472. package/Slider/Slider.d.ts +5 -0
  473. package/Slider/Slider.d.ts.map +1 -0
  474. package/Slider/Slider.js +23 -0
  475. package/Slider/index.d.ts +2 -0
  476. package/Slider/index.d.ts.map +1 -0
  477. package/Slider/index.js +4 -0
  478. package/Sonner/Sonner.d.ts +5 -0
  479. package/Sonner/Sonner.d.ts.map +1 -0
  480. package/Sonner/Sonner.js +25 -0
  481. package/Sonner/index.d.ts +2 -0
  482. package/Sonner/index.d.ts.map +1 -0
  483. package/Sonner/index.js +4 -0
  484. package/Switch/Switch.d.ts +5 -0
  485. package/Switch/Switch.d.ts.map +1 -0
  486. package/Switch/Switch.js +27 -0
  487. package/Switch/index.d.ts +2 -0
  488. package/Switch/index.d.ts.map +1 -0
  489. package/Switch/index.js +4 -0
  490. package/Table/Table.d.ts +11 -0
  491. package/Table/Table.d.ts.map +1 -0
  492. package/Table/Table.js +90 -0
  493. package/Table/index.d.ts +2 -0
  494. package/Table/index.d.ts.map +1 -0
  495. package/Table/index.js +11 -0
  496. package/TablePagination/TablePagination.d.ts +16 -0
  497. package/TablePagination/TablePagination.d.ts.map +1 -0
  498. package/TablePagination/TablePagination.js +74 -0
  499. package/TablePagination/index.d.ts +2 -0
  500. package/TablePagination/index.d.ts.map +1 -0
  501. package/TablePagination/index.js +4 -0
  502. package/Tabs/Tabs.d.ts +5 -0
  503. package/Tabs/Tabs.d.ts.map +1 -0
  504. package/Tabs/Tabs.js +22 -0
  505. package/Tabs/Tabs.types.d.ts +12 -0
  506. package/Tabs/Tabs.types.d.ts.map +1 -0
  507. package/Tabs/Tabs.types.js +1 -0
  508. package/Tabs/TabsRoot.d.ts +8 -0
  509. package/Tabs/TabsRoot.d.ts.map +1 -0
  510. package/Tabs/TabsRoot.js +46 -0
  511. package/Tabs/index.d.ts +3 -0
  512. package/Tabs/index.d.ts.map +1 -0
  513. package/Tabs/index.js +10 -0
  514. package/Textarea/Textarea.d.ts +5 -0
  515. package/Textarea/Textarea.d.ts.map +1 -0
  516. package/Textarea/Textarea.js +72 -0
  517. package/Textarea/Textarea.types.d.ts +18 -0
  518. package/Textarea/Textarea.types.d.ts.map +1 -0
  519. package/Textarea/Textarea.types.js +1 -0
  520. package/Textarea/index.d.ts +3 -0
  521. package/Textarea/index.d.ts.map +1 -0
  522. package/Textarea/index.js +4 -0
  523. package/Textarea/useAutosizeTextArea.d.ts +3 -0
  524. package/Textarea/useAutosizeTextArea.d.ts.map +1 -0
  525. package/Textarea/useAutosizeTextArea.js +20 -0
  526. package/Theme/ThemeModeToggle.d.ts +9 -0
  527. package/Theme/ThemeModeToggle.d.ts.map +1 -0
  528. package/Theme/ThemeModeToggle.js +48 -0
  529. package/Theme/ThemeProvider.d.ts +5 -0
  530. package/Theme/ThemeProvider.d.ts.map +1 -0
  531. package/Theme/ThemeProvider.js +27 -0
  532. package/Theme/index.d.ts +3 -0
  533. package/Theme/index.d.ts.map +1 -0
  534. package/Theme/index.js +6 -0
  535. package/Toast/Toast.d.ts +14 -0
  536. package/Toast/Toast.d.ts.map +1 -0
  537. package/Toast/Toast.js +80 -0
  538. package/Toast/Toast.types.d.ts +34 -0
  539. package/Toast/Toast.types.d.ts.map +1 -0
  540. package/Toast/Toast.types.js +1 -0
  541. package/Toast/index.d.ts +4 -0
  542. package/Toast/index.d.ts.map +1 -0
  543. package/Toast/index.js +15 -0
  544. package/Toast/toast.constants.d.ts +7 -0
  545. package/Toast/toast.constants.d.ts.map +1 -0
  546. package/Toast/toast.constants.js +9 -0
  547. package/Toast/toastVariants.d.ts +4 -0
  548. package/Toast/toastVariants.d.ts.map +1 -0
  549. package/Toast/toastVariants.js +21 -0
  550. package/Toast/useToast.d.ts +16 -0
  551. package/Toast/useToast.d.ts.map +1 -0
  552. package/Toast/useToast.js +101 -0
  553. package/Toaster/Toaster.d.ts +2 -0
  554. package/Toaster/Toaster.d.ts.map +1 -0
  555. package/Toaster/Toaster.js +22 -0
  556. package/Toaster/index.d.ts +2 -0
  557. package/Toaster/index.d.ts.map +1 -0
  558. package/Toaster/index.js +4 -0
  559. package/Toggle/Toggle.d.ts +13 -0
  560. package/Toggle/Toggle.d.ts.map +1 -0
  561. package/Toggle/Toggle.js +37 -0
  562. package/Toggle/index.d.ts +2 -0
  563. package/Toggle/index.d.ts.map +1 -0
  564. package/Toggle/index.js +5 -0
  565. package/ToggleGroup/ToggleGroup.d.ts +13 -0
  566. package/ToggleGroup/ToggleGroup.d.ts.map +1 -0
  567. package/ToggleGroup/ToggleGroup.js +41 -0
  568. package/ToggleGroup/index.d.ts +2 -0
  569. package/ToggleGroup/index.d.ts.map +1 -0
  570. package/ToggleGroup/index.js +5 -0
  571. package/index.d.ts +66 -0
  572. package/index.d.ts.map +1 -1
  573. package/index.js +371 -15
  574. package/package.json +44 -6
  575. package/packages/hooks/src/useIsMobile/useIsMobile.js +16 -0
@@ -0,0 +1,53 @@
1
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { format as d } from "date-fns";
4
+ import { Calendar as s } from "lucide-react";
5
+ import { cn as c } from "@oneplatformdev/utils";
6
+ import { Button as f } from "../Button/Button.js";
7
+ import "../Button/buttonVariants.js";
8
+ import { Calendar as p } from "../Calendar/Calendar.js";
9
+ import { Popover as u, PopoverTrigger as h, PopoverContent as y } from "../Popover/Popover.js";
10
+ import { uk as t } from "../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/uk.js";
11
+ const g = i.forwardRef(
12
+ (a, m) => {
13
+ const {
14
+ selectedDate: o,
15
+ onDateChange: l,
16
+ disabled: n = !1
17
+ } = a;
18
+ return /* @__PURE__ */ e(u, { children: [
19
+ /* @__PURE__ */ r(h, { asChild: !0, children: /* @__PURE__ */ e(
20
+ f,
21
+ {
22
+ ref: m,
23
+ disabled: n,
24
+ variant: "outline-solid",
25
+ className: c(
26
+ "w-full justify-start text-left font-normal border h-10",
27
+ !o && "text-muted-foreground"
28
+ ),
29
+ children: [
30
+ o ? d(o, "LLL dd, y", { locale: t }) : /* @__PURE__ */ r("span", { children: "dd/mm/yyyy" }),
31
+ /* @__PURE__ */ r(s, { className: "mr-2 h-4 w-4 ml-auto" })
32
+ ]
33
+ }
34
+ ) }),
35
+ /* @__PURE__ */ r(y, { align: "start", className: "w-auto p-0", children: /* @__PURE__ */ r(
36
+ p,
37
+ {
38
+ mode: "single",
39
+ captionLayout: "dropdown-buttons",
40
+ selected: o,
41
+ onSelect: l,
42
+ fromYear: 1960,
43
+ toYear: 2030,
44
+ locale: t
45
+ }
46
+ ) })
47
+ ] });
48
+ }
49
+ );
50
+ g.displayName = "DatePicker";
51
+ export {
52
+ g as DatePicker
53
+ };
@@ -0,0 +1,6 @@
1
+ export interface DatePickerProps {
2
+ selectedDate?: Date;
3
+ onDateChange: (date: Date | undefined) => void;
4
+ disabled?: boolean;
5
+ }
6
+ //# sourceMappingURL=DatePicker.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.types.d.ts","sourceRoot":"","sources":["../../src/DatePicker/DatePicker.types.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,4 @@
1
+ export * from './DatePicker';
2
+ export { DatePicker as default } from './DatePicker';
3
+ export type * from './DatePicker.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AACrD,mBAAmB,oBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { DatePicker as r, DatePicker as t } from "./DatePicker.js";
2
+ export {
3
+ r as DatePicker,
4
+ t as default
5
+ };
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ declare const Dialog: (props: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
9
+ showCloseButton?: boolean;
10
+ preventAutoFocus?: boolean;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DialogHeader: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const DialogFooter: {
17
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
21
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
22
+ export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
23
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAM1D,QAAA,MAAM,MAAM,GACV,OAAO,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,4CAInE,CAAC;AAEF,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAGH,QAAA,MAAM,aAAa;sBAGG,OAAO;uBACN,OAAO;wCAuE7B,CAAC;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,WAAW,oKAYf,CAAC;AAGH,QAAA,MAAM,iBAAiB,8KASrB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
@@ -0,0 +1,146 @@
1
+ import { jsx as o, jsxs as n } from "react/jsx-runtime";
2
+ import i, { useState as y, useRef as N } from "react";
3
+ import * as a from "@radix-ui/react-dialog";
4
+ import { XIcon as D } from "lucide-react";
5
+ import { cn as l, composeRefs as h } from "@oneplatformdev/utils";
6
+ import { DialogOverlayScope as b } from "./DialogOverlayScope.js";
7
+ const P = (e) => {
8
+ const { modal: t, ...s } = e;
9
+ return /* @__PURE__ */ o(a.Root, { modal: t, ...s });
10
+ }, S = a.Trigger, v = a.Portal, H = a.Close, d = i.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
11
+ a.Overlay,
12
+ {
13
+ ref: s,
14
+ className: l(
15
+ "fixed inset-0 z-40 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
16
+ e
17
+ ),
18
+ ...t
19
+ }
20
+ ));
21
+ d.displayName = a.Overlay.displayName;
22
+ const w = i.forwardRef(
23
+ ({
24
+ className: e,
25
+ children: t,
26
+ showCloseButton: s = !0,
27
+ onOpenAutoFocus: c,
28
+ preventAutoFocus: f,
29
+ ...m
30
+ }, p) => {
31
+ const [u, g] = y(null), x = N(null);
32
+ return /* @__PURE__ */ o(v, { children: /* @__PURE__ */ n(d, { children: [
33
+ /* @__PURE__ */ o(b, { value: u, children: /* @__PURE__ */ n(
34
+ a.Content,
35
+ {
36
+ ref: (r) => {
37
+ r && h(p, x)(r);
38
+ },
39
+ className: l(
40
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg",
41
+ "duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
42
+ "max-w-[90%] max-h-[90%] overflow-hidden",
43
+ "bg-[#FCFCFC] border border-[#E8E9EB] rounded-[16px]",
44
+ e
45
+ ),
46
+ onOpenAutoFocus: (r) => (f && r.preventDefault(), c?.(r)),
47
+ ...m,
48
+ children: [
49
+ t,
50
+ s && /* @__PURE__ */ n(
51
+ a.Close,
52
+ {
53
+ "aria-label": "Close",
54
+ className: l(
55
+ "absolute right-4 top-4 rounded-sm ring-offset-background w-10 aspect-square",
56
+ "flex items-center justify-center",
57
+ "data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
58
+ "opacity-70 hover:opacity-100",
59
+ // 'focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2',
60
+ "focus:outline-hidden focus:ring-0 focus:ring-ring focus:ring-offset-2",
61
+ "hover:bg-accent",
62
+ "disabled:pointer-events-none",
63
+ "transition-opacity"
64
+ ),
65
+ children: [
66
+ /* @__PURE__ */ o(D, { className: "h-4 w-4" }),
67
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
68
+ ]
69
+ }
70
+ )
71
+ ]
72
+ }
73
+ ) }),
74
+ /* @__PURE__ */ o(
75
+ "div",
76
+ {
77
+ ref: (r) => {
78
+ r && g(r);
79
+ }
80
+ }
81
+ )
82
+ ] }) });
83
+ }
84
+ );
85
+ w.displayName = a.Content.displayName;
86
+ const C = ({
87
+ className: e,
88
+ ...t
89
+ }) => /* @__PURE__ */ o(
90
+ "div",
91
+ {
92
+ className: l(
93
+ "flex flex-col space-y-1.5 text-center sm:text-left",
94
+ e
95
+ ),
96
+ ...t
97
+ }
98
+ );
99
+ C.displayName = "DialogHeader";
100
+ const R = ({
101
+ className: e,
102
+ ...t
103
+ }) => /* @__PURE__ */ o(
104
+ "div",
105
+ {
106
+ className: l(
107
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
108
+ e
109
+ ),
110
+ ...t
111
+ }
112
+ );
113
+ R.displayName = "DialogFooter";
114
+ const F = i.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
115
+ a.Title,
116
+ {
117
+ ref: s,
118
+ className: l(
119
+ "text-lg font-semibold leading-none tracking-tight",
120
+ e
121
+ ),
122
+ ...t
123
+ }
124
+ ));
125
+ F.displayName = a.Title.displayName;
126
+ const O = i.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ o(
127
+ a.Description,
128
+ {
129
+ ref: s,
130
+ className: l("text-sm text-muted-foreground", e),
131
+ ...t
132
+ }
133
+ ));
134
+ O.displayName = a.Description.displayName;
135
+ export {
136
+ P as Dialog,
137
+ H as DialogClose,
138
+ w as DialogContent,
139
+ O as DialogDescription,
140
+ R as DialogFooter,
141
+ C as DialogHeader,
142
+ d as DialogOverlay,
143
+ v as DialogPortal,
144
+ F as DialogTitle,
145
+ S as DialogTrigger
146
+ };
@@ -0,0 +1,9 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const DialogOverlayContainerContext: import('react').Context<HTMLElement | null>;
3
+ export declare const useDialogOverlayContainer: () => HTMLElement | null;
4
+ interface IDialogOverlayScopeProps extends PropsWithChildren {
5
+ value: HTMLElement | null;
6
+ }
7
+ export declare const DialogOverlayScope: ({ value, children }: IDialogOverlayScopeProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=DialogOverlayScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogOverlayScope.d.ts","sourceRoot":"","sources":["../../src/Dialog/DialogOverlayScope.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAErE,eAAO,MAAM,6BAA6B,6CAEzC,CAAC;AACF,eAAO,MAAM,yBAAyB,0BAAkD,CAAC;AAEzF,UAAU,wBACR,SAAQ,iBAAiB;IACzB,KAAK,EAAE,WAAW,GAAG,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,kBAAkB,GAAI,qBAAqB,wBAAwB,4CAM/E,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { createContext as n, useContext as a } from "react";
3
+ const o = n(
4
+ null
5
+ ), s = () => a(o), c = ({ value: e, children: t }) => /* @__PURE__ */ r(o.Provider, { value: e, children: t });
6
+ export {
7
+ o as DialogOverlayContainerContext,
8
+ c as DialogOverlayScope,
9
+ s as useDialogOverlayContainer
10
+ };
@@ -0,0 +1,3 @@
1
+ export * from './Dialog';
2
+ export * from './DialogOverlayScope';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Dialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { Dialog as l, DialogClose as e, DialogContent as i, DialogDescription as r, DialogFooter as g, DialogHeader as D, DialogOverlay as t, DialogPortal as n, DialogTitle as C, DialogTrigger as p } from "./Dialog.js";
2
+ import { DialogOverlayContainerContext as y, DialogOverlayScope as O, useDialogOverlayContainer as s } from "./DialogOverlayScope.js";
3
+ export {
4
+ l as Dialog,
5
+ e as DialogClose,
6
+ i as DialogContent,
7
+ r as DialogDescription,
8
+ g as DialogFooter,
9
+ D as DialogHeader,
10
+ t as DialogOverlay,
11
+ y as DialogOverlayContainerContext,
12
+ O as DialogOverlayScope,
13
+ n as DialogPortal,
14
+ C as DialogTitle,
15
+ p as DialogTrigger,
16
+ s as useDialogOverlayContainer
17
+ };
@@ -0,0 +1,23 @@
1
+ import { Drawer as DrawerPrimitive } from 'vaul';
2
+ import * as React from "react";
3
+ declare const Drawer: {
4
+ ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ declare const DrawerTrigger: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const DrawerPortal: typeof import('vaul').Portal;
9
+ declare const DrawerClose: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DrawerHeader: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const DrawerFooter: {
17
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dialog').DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
21
+ declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dialog').DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
22
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
23
+ //# sourceMappingURL=Drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAA;AAIhD,QAAA,MAAM,MAAM;0CAGT,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;;CAKnD,CAAA;AAGD,QAAA,MAAM,aAAa,+HAA0B,CAAA;AAE7C,QAAA,MAAM,YAAY,8BAAyB,CAAA;AAE3C,QAAA,MAAM,WAAW,6HAAwB,CAAA;AAEzC,QAAA,MAAM,aAAa,kOASjB,CAAA;AAGF,QAAA,MAAM,aAAa,kOAkBjB,CAAA;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKtC,CAAA;AAGD,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKtC,CAAA;AAGD,QAAA,MAAM,WAAW,qLAYf,CAAA;AAGF,QAAA,MAAM,iBAAiB,+LASrB,CAAA;AAGF,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAA"}
@@ -0,0 +1,98 @@
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { Drawer as a } from "vaul";
4
+ import { cn as s } from "@oneplatformdev/utils";
5
+ const n = ({
6
+ shouldScaleBackground: e = !0,
7
+ ...r
8
+ }) => /* @__PURE__ */ t(
9
+ a.Root,
10
+ {
11
+ shouldScaleBackground: e,
12
+ ...r
13
+ }
14
+ );
15
+ n.displayName = "Drawer";
16
+ const u = a.Trigger, c = a.Portal, b = a.Close, d = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
17
+ a.Overlay,
18
+ {
19
+ ref: o,
20
+ className: s("fixed inset-0 z-50 bg-black/80", e),
21
+ ...r
22
+ }
23
+ ));
24
+ d.displayName = a.Overlay.displayName;
25
+ const p = l.forwardRef(({ className: e, children: r, ...o }, m) => /* @__PURE__ */ i(c, { children: [
26
+ /* @__PURE__ */ t(d, {}),
27
+ /* @__PURE__ */ i(
28
+ a.Content,
29
+ {
30
+ ref: m,
31
+ className: s(
32
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
33
+ e
34
+ ),
35
+ ...o,
36
+ children: [
37
+ /* @__PURE__ */ t("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
38
+ r
39
+ ]
40
+ }
41
+ )
42
+ ] }));
43
+ p.displayName = "DrawerContent";
44
+ const f = ({
45
+ className: e,
46
+ ...r
47
+ }) => /* @__PURE__ */ t(
48
+ "div",
49
+ {
50
+ className: s("grid gap-1.5 p-4 text-center sm:text-left", e),
51
+ ...r
52
+ }
53
+ );
54
+ f.displayName = "DrawerHeader";
55
+ const w = ({
56
+ className: e,
57
+ ...r
58
+ }) => /* @__PURE__ */ t(
59
+ "div",
60
+ {
61
+ className: s("mt-auto flex flex-col gap-2 p-4", e),
62
+ ...r
63
+ }
64
+ );
65
+ w.displayName = "DrawerFooter";
66
+ const D = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
67
+ a.Title,
68
+ {
69
+ ref: o,
70
+ className: s(
71
+ "text-lg font-semibold leading-none tracking-tight",
72
+ e
73
+ ),
74
+ ...r
75
+ }
76
+ ));
77
+ D.displayName = a.Title.displayName;
78
+ const x = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
79
+ a.Description,
80
+ {
81
+ ref: o,
82
+ className: s("text-sm text-muted-foreground", e),
83
+ ...r
84
+ }
85
+ ));
86
+ x.displayName = a.Description.displayName;
87
+ export {
88
+ n as Drawer,
89
+ b as DrawerClose,
90
+ p as DrawerContent,
91
+ x as DrawerDescription,
92
+ w as DrawerFooter,
93
+ f as DrawerHeader,
94
+ d as DrawerOverlay,
95
+ c as DrawerPortal,
96
+ D as DrawerTitle,
97
+ u as DrawerTrigger
98
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Drawer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Drawer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Drawer as a, DrawerClose as D, DrawerContent as w, DrawerDescription as o, DrawerFooter as t, DrawerHeader as i, DrawerOverlay as l, DrawerPortal as n, DrawerTitle as g, DrawerTrigger as p } from "./Drawer.js";
2
+ export {
3
+ a as Drawer,
4
+ D as DrawerClose,
5
+ w as DrawerContent,
6
+ o as DrawerDescription,
7
+ t as DrawerFooter,
8
+ i as DrawerHeader,
9
+ l as DrawerOverlay,
10
+ n as DrawerPortal,
11
+ g as DrawerTitle,
12
+ p as DrawerTrigger
13
+ };
@@ -0,0 +1,22 @@
1
+ import { DropzoneControl, DropzoneProps } from './Dropzone.types';
2
+ /**
3
+ * Dropzone component - A drag-and-drop file upload area with image previews, error handling, and localization.
4
+ *
5
+ * @component
6
+ * @param {DropzoneProps} props - The props for the Dropzone component.
7
+ * @param {string[]} [props.acceptTypes=DEFAULT_FILE_TYPES] - Allowed file MIME types.
8
+ * @param {number} props.maxSizeMB - Maximum allowed file size in megabytes.
9
+ * @param {number} [props.maxFiles=1] - Maximum number of files that can be uploaded.
10
+ * @param {DropzoneTranslations} props.translations - Translations for text labels.
11
+ * @param {(errors: FileRejection[]) => void} [props.onErrors] - Callback triggered when file errors occur.
12
+ * @param {boolean} [props.hideErrors=false] - Whether to hide error messages.
13
+ * @param {boolean} [props.disabled=false] - Whether the dropzone is disabled.
14
+ * @param {DropzoneStyles} [props.classNames] - Custom classNames for different dropzone states.
15
+ * @param {DropzoneValueItem[]} [props.value=[]] - Current selected files or URLs.
16
+ * @param {(items: DropzoneValueItem[]) => void} [props.onChangeValue] - Callback triggered when file selection changes.
17
+ * @param {string} [props.className] - Additional class names for styling.
18
+ * @param {React.Ref<HTMLDivElement>} ref - Ref for the root dropzone container.
19
+ * @returns {JSX.Element} The rendered Dropzone component.
20
+ */
21
+ export declare const Dropzone: import('react').ForwardRefExoticComponent<DropzoneProps & import('react').RefAttributes<DropzoneControl>>;
22
+ //# sourceMappingURL=Dropzone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropzone.d.ts","sourceRoot":"","sources":["../../src/Dropzone/Dropzone.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,eAAe,EACf,aAAa,EAEd,MAAM,kBAAkB,CAAC;AAK1B;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,2GA6LpB,CAAC"}
@@ -0,0 +1,155 @@
1
+ import { jsxs as t, jsx as l, Fragment as j } from "react/jsx-runtime";
2
+ import { X as H } from "lucide-react";
3
+ import { forwardRef as O, useState as g, useImperativeHandle as X } from "react";
4
+ import { useDropzone as Y } from "react-dropzone";
5
+ import { cn as n } from "@oneplatformdev/utils";
6
+ import { Card as q } from "../Card/Card.js";
7
+ import { DEFAULT_FILE_TYPES as G } from "./Dropzone.types.js";
8
+ import { FilePreview as J } from "./DropzoneFilePreview.js";
9
+ import { DropzoneSinglePickPreview as K } from "./DropzoneSinglePickPreview.js";
10
+ import { DefaultFileIcon as Q, isFile as v, extractName as R } from "./DropzoneUtils.js";
11
+ const Z = O(
12
+ ({
13
+ acceptTypes: w = G,
14
+ maxSizeMB: N,
15
+ maxFiles: x = 1,
16
+ onErrors: E,
17
+ hideErrors: y = !1,
18
+ disabled: a = !1,
19
+ classNames: m,
20
+ value: F = [],
21
+ onChangeValue: h,
22
+ className: z,
23
+ labelDropzonePrompt: D = "Drop files here or click to select",
24
+ labelDropzoneSubPrompt: I = "",
25
+ labelOrClickToSelect: $ = "Click to select files",
26
+ labelSelectedFiles: b = "Selected Files",
27
+ labelUploadErrors: S = "Upload Errors",
28
+ labelFileTooLarge: C = "File is too large",
29
+ labelInvalidFileType: W = "Invalid file type",
30
+ singlePick: i = !1,
31
+ labelDropzoneClassname: k,
32
+ labelDropzoneSubClassname: B,
33
+ ...T
34
+ }, _) => {
35
+ const [s, d] = g(F), [p, A] = g([]), L = (e, o) => {
36
+ A(o), E?.(o);
37
+ const r = i ? e.slice(0, 1) : [...s, ...e].slice(0, x);
38
+ d(r), h?.(r);
39
+ }, u = (e, o) => {
40
+ if (a) return;
41
+ e.stopPropagation();
42
+ const r = s.filter((c, f) => f !== o);
43
+ d(r), h?.(r);
44
+ }, { getRootProps: M, getInputProps: P, isDragActive: U } = Y({
45
+ onDrop: L,
46
+ accept: w.reduce((e, o) => (e[o] = [], e), {}),
47
+ maxSize: N * 1024 * 1024,
48
+ maxFiles: i ? 1 : x,
49
+ disabled: a
50
+ });
51
+ return X(_, () => ({
52
+ setItems: d
53
+ }), []), /* @__PURE__ */ t(
54
+ q,
55
+ {
56
+ ...M(),
57
+ ...T,
58
+ className: n(
59
+ "border-dashed p-2 text-center flex flex-col items-center justify-center cursor-pointer",
60
+ a && "border-[#E4E4E7] pointer-events-none",
61
+ p.length > 0 ? "border-red-500" : "border-[#E4E4E7]!",
62
+ U && "bg-gray-100",
63
+ i && "shadow-none!",
64
+ i && s.length > 0 && "p-0! shadow-none!",
65
+ z
66
+ ),
67
+ children: [
68
+ /* @__PURE__ */ l("input", { ...P() }),
69
+ s.length === 0 && p.length === 0 && /* @__PURE__ */ t(
70
+ "div",
71
+ {
72
+ className: n(
73
+ "flex flex-col items-center gap-1",
74
+ m?.idleWrapper
75
+ ),
76
+ children: [
77
+ /* @__PURE__ */ l(Q, {}),
78
+ !a && /* @__PURE__ */ t(j, { children: [
79
+ /* @__PURE__ */ l("span", { className: n("font-medium text-md text-foreground max-w-[200px]", k), children: D }),
80
+ /* @__PURE__ */ l("span", { className: n("font-normal text-xs text-foreground max-w-[250px]", B), children: I })
81
+ ] })
82
+ ]
83
+ }
84
+ ),
85
+ p.length > 0 && /* @__PURE__ */ t("div", { className: n("w-full mt-4", m?.errorWrapper), children: [
86
+ /* @__PURE__ */ t("span", { className: "font-semibold text-red-500", children: [
87
+ S,
88
+ ":"
89
+ ] }),
90
+ /* @__PURE__ */ l("ul", { className: "mt-2 text-sm text-red-500 list-disc list-inside", children: p.map((e, o) => /* @__PURE__ */ t("li", { children: [
91
+ e.file.name,
92
+ " (",
93
+ (e.file.size / (1024 * 1024)).toFixed(2),
94
+ " MB)",
95
+ !y && /* @__PURE__ */ l("ul", { className: "ml-4 list-disc list-inside", children: e.errors.map((r, c) => /* @__PURE__ */ t("li", { children: [
96
+ r.code === "file-too-large" && C,
97
+ r.code === "file-invalid-type" && W,
98
+ r.code !== "file-too-large" && r.code !== "file-invalid-type" && r.message
99
+ ] }, c)) })
100
+ ] }, o)) })
101
+ ] }),
102
+ !!(i && s.length) && /* @__PURE__ */ l(
103
+ K,
104
+ {
105
+ item: s[0],
106
+ onRemoveClick: (e) => u(e, 0),
107
+ disabled: a
108
+ }
109
+ ),
110
+ !i && s.length > 0 && /* @__PURE__ */ t("div", { className: n("w-full mt-2", m?.previewWrapper), children: [
111
+ /* @__PURE__ */ t("pre", { className: "font-semibold text-gray-600", children: [
112
+ b,
113
+ ":"
114
+ ] }),
115
+ /* @__PURE__ */ l("ul", { className: "mt-2 text-sm text-gray-500 flex flex-wrap gap-4 items-start justify-center", children: s.map((e, o) => {
116
+ const r = v(e) ? e.name : R(e), c = v(e) ? (e.size / (1024 * 1024)).toFixed(2) + " MB" : "";
117
+ return /* @__PURE__ */ t(
118
+ "li",
119
+ {
120
+ className: "flex flex-col items-center gap-2 relative",
121
+ children: [
122
+ /* @__PURE__ */ t("div", { className: "relative", children: [
123
+ /* @__PURE__ */ l(J, { item: e, styles: m }),
124
+ /* @__PURE__ */ l(
125
+ "div",
126
+ {
127
+ className: "absolute top-0 right-0 cursor-pointer bg-gray-300 rounded-sm",
128
+ onClick: (f) => u(f, o),
129
+ children: /* @__PURE__ */ l(H, { size: 16, strokeWidth: 1, color: "black" })
130
+ }
131
+ )
132
+ ] }),
133
+ /* @__PURE__ */ t("span", { className: "inline-flex flex-col items-center", children: [
134
+ /* @__PURE__ */ l("span", { className: "max-w-[80px] text-ellipsis overflow-hidden whitespace-nowrap", children: r }),
135
+ c && /* @__PURE__ */ t("span", { children: [
136
+ "(",
137
+ c,
138
+ ")"
139
+ ] })
140
+ ] })
141
+ ]
142
+ },
143
+ o
144
+ );
145
+ }) })
146
+ ] })
147
+ ]
148
+ }
149
+ );
150
+ }
151
+ );
152
+ Z.displayName = "Dropzone";
153
+ export {
154
+ Z as Dropzone
155
+ };