@oneplatformdev/ui 0.0.1-beta.100

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 (443) hide show
  1. package/Accordion/Accordion.d.ts +9 -0
  2. package/Accordion/Accordion.mjs +49 -0
  3. package/Accordion/index.d.ts +1 -0
  4. package/Accordion/index.mjs +7 -0
  5. package/Accordion/package.json +7 -0
  6. package/Alert/Alert.d.ts +7 -0
  7. package/Alert/Alert.mjs +37 -0
  8. package/Alert/alertVariants.d.ts +4 -0
  9. package/Alert/alertVariants.mjs +19 -0
  10. package/Alert/index.d.ts +1 -0
  11. package/Alert/index.mjs +6 -0
  12. package/Alert/package.json +7 -0
  13. package/AlertDialog/AlertDialog.d.ts +65 -0
  14. package/AlertDialog/AlertDialog.mjs +97 -0
  15. package/AlertDialog/AlertDialog.types.d.ts +53 -0
  16. package/AlertDialog/AlertDialogRoot.d.ts +21 -0
  17. package/AlertDialog/AlertDialogRoot.mjs +114 -0
  18. package/AlertDialog/index.d.ts +3 -0
  19. package/AlertDialog/index.mjs +16 -0
  20. package/AlertDialog/package.json +7 -0
  21. package/AreaChart/AreaChart.d.ts +4 -0
  22. package/AreaChart/AreaChart.mjs +27 -0
  23. package/AreaChart/AreaChart.types.d.ts +15 -0
  24. package/AreaChart/index.d.ts +2 -0
  25. package/AreaChart/index.mjs +4 -0
  26. package/AreaChart/package.json +7 -0
  27. package/Aside/Aside.d.ts +4 -0
  28. package/Aside/Aside.mjs +23 -0
  29. package/Aside/Aside.types.d.ts +18 -0
  30. package/Aside/AsideSidebar.d.ts +3 -0
  31. package/Aside/AsideSidebar.mjs +37 -0
  32. package/Aside/index.d.ts +3 -0
  33. package/Aside/index.mjs +7 -0
  34. package/Aside/package.json +7 -0
  35. package/AspectRatio/AspectRatio.d.ts +2 -0
  36. package/AspectRatio/AspectRatio.mjs +5 -0
  37. package/AspectRatio/index.d.ts +1 -0
  38. package/AspectRatio/index.mjs +5 -0
  39. package/AspectRatio/package.json +7 -0
  40. package/Avatar/Avatar.d.ts +5 -0
  41. package/Avatar/Avatar.mjs +42 -0
  42. package/Avatar/index.d.ts +1 -0
  43. package/Avatar/index.mjs +6 -0
  44. package/Avatar/package.json +7 -0
  45. package/Badge/Badge.d.ts +5 -0
  46. package/Badge/Badge.mjs +10 -0
  47. package/Badge/Badge.types.d.ts +5 -0
  48. package/Badge/badgeVariants.d.ts +3 -0
  49. package/Badge/badgeVariants.mjs +20 -0
  50. package/Badge/index.d.ts +3 -0
  51. package/Badge/index.mjs +6 -0
  52. package/Badge/package.json +7 -0
  53. package/Breadcrumb/Breadcrumb.d.ts +19 -0
  54. package/Breadcrumb/Breadcrumb.mjs +90 -0
  55. package/Breadcrumb/index.d.ts +1 -0
  56. package/Breadcrumb/index.mjs +10 -0
  57. package/Breadcrumb/package.json +7 -0
  58. package/Button/Button.d.ts +4 -0
  59. package/Button/Button.mjs +32 -0
  60. package/Button/Button.types.d.ts +8 -0
  61. package/Button/buttonVariants.d.ts +4 -0
  62. package/Button/buttonVariants.mjs +29 -0
  63. package/Button/index.d.ts +3 -0
  64. package/Button/index.mjs +7 -0
  65. package/Button/package.json +7 -0
  66. package/ButtonIcon/ButtonIcon.d.ts +3 -0
  67. package/ButtonIcon/ButtonIcon.mjs +29 -0
  68. package/ButtonIcon/ButtonIcon.types.d.ts +7 -0
  69. package/ButtonIcon/buttonIconVariants.d.ts +7 -0
  70. package/ButtonIcon/buttonIconVariants.mjs +139 -0
  71. package/ButtonIcon/index.d.ts +3 -0
  72. package/ButtonIcon/index.mjs +7 -0
  73. package/ButtonIcon/package.json +7 -0
  74. package/Calendar/Calendar.d.ts +8 -0
  75. package/Calendar/Calendar.mjs +64 -0
  76. package/Calendar/index.d.ts +1 -0
  77. package/Calendar/index.mjs +4 -0
  78. package/Calendar/package.json +7 -0
  79. package/Card/Card.d.ts +8 -0
  80. package/Card/Card.mjs +61 -0
  81. package/Card/index.d.ts +1 -0
  82. package/Card/index.mjs +9 -0
  83. package/Card/package.json +7 -0
  84. package/Carousel/Carousel.d.ts +18 -0
  85. package/Carousel/Carousel.mjs +168 -0
  86. package/Carousel/index.d.ts +1 -0
  87. package/Carousel/index.mjs +8 -0
  88. package/Carousel/package.json +7 -0
  89. package/Chart/Chart.d.ts +62 -0
  90. package/Chart/Chart.mjs +210 -0
  91. package/Chart/index.d.ts +1 -0
  92. package/Chart/index.mjs +9 -0
  93. package/Chart/package.json +7 -0
  94. package/Checkbox/Checkbox.d.ts +5 -0
  95. package/Checkbox/Checkbox.mjs +54 -0
  96. package/Checkbox/Checkbox.types.d.ts +10 -0
  97. package/Checkbox/index.d.ts +2 -0
  98. package/Checkbox/index.mjs +5 -0
  99. package/Checkbox/package.json +7 -0
  100. package/Collapsible/Collapsible.d.ts +5 -0
  101. package/Collapsible/Collapsible.mjs +7 -0
  102. package/Collapsible/index.d.ts +1 -0
  103. package/Collapsible/index.mjs +6 -0
  104. package/Collapsible/package.json +7 -0
  105. package/Combobox/Combobox.d.ts +4 -0
  106. package/Combobox/Combobox.mjs +15 -0
  107. package/Combobox/Combobox.types.d.ts +38 -0
  108. package/Combobox/ComboboxOptionItem.d.ts +5 -0
  109. package/Combobox/ComboboxOptionItem.mjs +67 -0
  110. package/Combobox/ComboboxOptions.d.ts +4 -0
  111. package/Combobox/ComboboxOptions.mjs +12 -0
  112. package/Combobox/index.d.ts +2 -0
  113. package/Combobox/index.mjs +4 -0
  114. package/Combobox/package.json +7 -0
  115. package/Combobox-Dfbnw0oF.js +303 -0
  116. package/Command/Command.d.ts +80 -0
  117. package/Command/Command.mjs +116 -0
  118. package/Command/index.d.ts +1 -0
  119. package/Command/index.mjs +12 -0
  120. package/Command/package.json +7 -0
  121. package/DataTable/DataTable.d.ts +11 -0
  122. package/DataTable/DataTable.mjs +64 -0
  123. package/DataTable/DataTable.types.d.ts +11 -0
  124. package/DataTable/DataTableColumnFilter.d.ts +4 -0
  125. package/DataTable/DataTableColumnFilter.mjs +31 -0
  126. package/DataTable/index.d.ts +2 -0
  127. package/DataTable/index.mjs +4 -0
  128. package/DataTable/package.json +7 -0
  129. package/DataTable/useDataTable.d.ts +3 -0
  130. package/DataTable/useDataTable.mjs +30 -0
  131. package/DatePicker/DatePicker.d.ts +3 -0
  132. package/DatePicker/DatePicker.mjs +699 -0
  133. package/DatePicker/DatePicker.types.d.ts +5 -0
  134. package/DatePicker/index.d.ts +3 -0
  135. package/DatePicker/index.mjs +5 -0
  136. package/DatePicker/package.json +7 -0
  137. package/Dialog/Dialog.d.ts +21 -0
  138. package/Dialog/Dialog.mjs +117 -0
  139. package/Dialog/index.d.ts +1 -0
  140. package/Dialog/index.mjs +13 -0
  141. package/Dialog/package.json +7 -0
  142. package/Drawer/Drawer.d.ts +22 -0
  143. package/Drawer/Drawer.mjs +98 -0
  144. package/Drawer/index.d.ts +1 -0
  145. package/Drawer/index.mjs +13 -0
  146. package/Drawer/package.json +7 -0
  147. package/DropdownMenu/DropdownMenu.d.ts +27 -0
  148. package/DropdownMenu/DropdownMenu.mjs +148 -0
  149. package/DropdownMenu/index.d.ts +1 -0
  150. package/DropdownMenu/index.mjs +18 -0
  151. package/DropdownMenu/package.json +7 -0
  152. package/Dropzone/Dropzone.d.ts +22 -0
  153. package/Dropzone/Dropzone.mjs +152 -0
  154. package/Dropzone/Dropzone.types.d.ts +42 -0
  155. package/Dropzone/DropzoneFilePreview.d.ts +4 -0
  156. package/Dropzone/DropzoneFilePreview.mjs +9 -0
  157. package/Dropzone/DropzoneSinglePickPreview.d.ts +10 -0
  158. package/Dropzone/DropzoneSinglePickPreview.mjs +41 -0
  159. package/Dropzone/DropzoneUtils.d.ts +5 -0
  160. package/Dropzone/DropzoneUtils.mjs +24 -0
  161. package/Dropzone/index.d.ts +2 -0
  162. package/Dropzone/index.mjs +7 -0
  163. package/Dropzone/package.json +7 -0
  164. package/DropzoneFilePreview-Dhtv8F4u.js +67 -0
  165. package/Form/Form.d.ts +23 -0
  166. package/Form/Form.mjs +98 -0
  167. package/Form/FormRenderControl.d.ts +4 -0
  168. package/Form/FormRenderControl.mjs +21 -0
  169. package/Form/FormRenderControl.types.d.ts +16 -0
  170. package/Form/index.d.ts +3 -0
  171. package/Form/index.mjs +13 -0
  172. package/Form/package.json +7 -0
  173. package/FormCheckbox/FormCheckbox.d.ts +4 -0
  174. package/FormCheckbox/FormCheckbox.mjs +30 -0
  175. package/FormCheckbox/FormCheckbox.types.d.ts +7 -0
  176. package/FormCheckbox/index.d.ts +2 -0
  177. package/FormCheckbox/index.mjs +4 -0
  178. package/FormCheckbox/package.json +7 -0
  179. package/FormCombobox/FormCombobox.d.ts +4 -0
  180. package/FormCombobox/FormCombobox.mjs +26 -0
  181. package/FormCombobox/FormCombobox.types.d.ts +6 -0
  182. package/FormCombobox/index.d.ts +2 -0
  183. package/FormCombobox/index.mjs +4 -0
  184. package/FormCombobox/package.json +7 -0
  185. package/FormDatePicker/FormDatePicker.d.ts +4 -0
  186. package/FormDatePicker/FormDatePicker.mjs +29 -0
  187. package/FormDatePicker/FormDatePicker.types.d.ts +6 -0
  188. package/FormDatePicker/index.d.ts +3 -0
  189. package/FormDatePicker/index.mjs +5 -0
  190. package/FormDatePicker/package.json +7 -0
  191. package/FormDropzone/FormDropzone.d.ts +4 -0
  192. package/FormDropzone/FormDropzone.mjs +19 -0
  193. package/FormDropzone/FormDropzone.types.d.ts +6 -0
  194. package/FormDropzone/index.d.ts +2 -0
  195. package/FormDropzone/index.mjs +4 -0
  196. package/FormDropzone/package.json +7 -0
  197. package/FormInput/FormInput.d.ts +7 -0
  198. package/FormInput/FormInput.mjs +44 -0
  199. package/FormInput/FormInput.types.d.ts +6 -0
  200. package/FormInput/index.d.ts +2 -0
  201. package/FormInput/index.mjs +4 -0
  202. package/FormInput/package.json +7 -0
  203. package/FormRadio/FormRadio.d.ts +4 -0
  204. package/FormRadio/FormRadio.mjs +40 -0
  205. package/FormRadio/FormRadio.types.d.ts +6 -0
  206. package/FormRadio/index.d.ts +2 -0
  207. package/FormRadio/index.mjs +4 -0
  208. package/FormRadio/package.json +7 -0
  209. package/FormSelect/FormSelect.d.ts +4 -0
  210. package/FormSelect/FormSelect.mjs +40 -0
  211. package/FormSelect/FormSelect.types.d.ts +6 -0
  212. package/FormSelect/index.d.ts +2 -0
  213. package/FormSelect/index.mjs +4 -0
  214. package/FormSelect/package.json +7 -0
  215. package/FormTextarea/FormTextarea.d.ts +4 -0
  216. package/FormTextarea/FormTextarea.mjs +27 -0
  217. package/FormTextarea/FormTextarea.types.d.ts +6 -0
  218. package/FormTextarea/index.d.ts +2 -0
  219. package/FormTextarea/index.mjs +4 -0
  220. package/FormTextarea/package.json +7 -0
  221. package/Header/Header.d.ts +4 -0
  222. package/Header/Header.mjs +26 -0
  223. package/Header/Header.types.d.ts +3 -0
  224. package/Header/index.d.ts +2 -0
  225. package/Header/index.mjs +5 -0
  226. package/Header/package.json +7 -0
  227. package/HoverCard/HoverCard.d.ts +6 -0
  228. package/HoverCard/HoverCard.mjs +23 -0
  229. package/HoverCard/index.d.ts +1 -0
  230. package/HoverCard/index.mjs +6 -0
  231. package/HoverCard/package.json +7 -0
  232. package/Input/Input.d.ts +6 -0
  233. package/Input/Input.mjs +73 -0
  234. package/Input/Input.types.d.ts +17 -0
  235. package/Input/index.d.ts +3 -0
  236. package/Input/index.mjs +7 -0
  237. package/Input/inputVariants.d.ts +3 -0
  238. package/Input/inputVariants.mjs +24 -0
  239. package/Input/package.json +7 -0
  240. package/InputOTP/InputOTP.d.ts +34 -0
  241. package/InputOTP/InputOTP.mjs +48 -0
  242. package/InputOTP/index.d.ts +1 -0
  243. package/InputOTP/index.mjs +7 -0
  244. package/InputOTP/package.json +7 -0
  245. package/Label/Label.d.ts +5 -0
  246. package/Label/Label.mjs +17 -0
  247. package/Label/index.d.ts +2 -0
  248. package/Label/index.mjs +6 -0
  249. package/Label/labelVariants.d.ts +1 -0
  250. package/Label/labelVariants.mjs +10 -0
  251. package/Label/package.json +7 -0
  252. package/LazyLoader/LazyLoader.d.ts +20 -0
  253. package/LazyLoader/LazyLoader.mjs +8 -0
  254. package/LazyLoader/index.d.ts +1 -0
  255. package/LazyLoader/index.mjs +5 -0
  256. package/LazyLoader/package.json +7 -0
  257. package/LoadingMask/LoadingMask.d.ts +4 -0
  258. package/LoadingMask/LoadingMask.mjs +21 -0
  259. package/LoadingMask/LoadingMask.types.d.ts +5 -0
  260. package/LoadingMask/RenderLoadingMask.d.ts +3 -0
  261. package/LoadingMask/RenderLoadingMask.mjs +108 -0
  262. package/LoadingMask/index.d.ts +3 -0
  263. package/LoadingMask/index.mjs +6 -0
  264. package/LoadingMask/package.json +7 -0
  265. package/LoadingProgress/LoadingProgress.d.ts +4 -0
  266. package/LoadingProgress/LoadingProgress.mjs +37 -0
  267. package/LoadingProgress/LoadingProgress.types.d.ts +8 -0
  268. package/LoadingProgress/index.d.ts +3 -0
  269. package/LoadingProgress/index.mjs +6 -0
  270. package/LoadingProgress/loadingProgressVariants.d.ts +4 -0
  271. package/LoadingProgress/loadingProgressVariants.mjs +24 -0
  272. package/LoadingProgress/package.json +7 -0
  273. package/Menubar/Menubar.d.ts +28 -0
  274. package/Menubar/Menubar.mjs +175 -0
  275. package/Menubar/index.d.ts +1 -0
  276. package/Menubar/index.mjs +19 -0
  277. package/Menubar/package.json +7 -0
  278. package/NavigationMenu/NavigationMenu.d.ts +11 -0
  279. package/NavigationMenu/NavigationMenu.mjs +101 -0
  280. package/NavigationMenu/index.d.ts +2 -0
  281. package/NavigationMenu/index.mjs +13 -0
  282. package/NavigationMenu/navigationMenuVariants.d.ts +1 -0
  283. package/NavigationMenu/navigationMenuVariants.mjs +7 -0
  284. package/NavigationMenu/package.json +7 -0
  285. package/Pagination/Pagination.d.ts +28 -0
  286. package/Pagination/Pagination.mjs +106 -0
  287. package/Pagination/index.d.ts +1 -0
  288. package/Pagination/index.mjs +10 -0
  289. package/Pagination/package.json +7 -0
  290. package/Popover/Popover.d.ts +7 -0
  291. package/Popover/Popover.mjs +28 -0
  292. package/Popover/index.d.ts +1 -0
  293. package/Popover/index.mjs +7 -0
  294. package/Popover/package.json +7 -0
  295. package/Progress/Progress.d.ts +4 -0
  296. package/Progress/Progress.mjs +26 -0
  297. package/Progress/index.d.ts +1 -0
  298. package/Progress/index.mjs +4 -0
  299. package/Progress/package.json +7 -0
  300. package/README.md +33 -0
  301. package/Radio/Radio.d.ts +4 -0
  302. package/Radio/Radio.mjs +12 -0
  303. package/Radio/Radio.types.d.ts +11 -0
  304. package/Radio/index.d.ts +2 -0
  305. package/Radio/index.mjs +4 -0
  306. package/Radio/package.json +7 -0
  307. package/RadioGroup/RadioGroup.d.ts +11 -0
  308. package/RadioGroup/RadioGroup.mjs +49 -0
  309. package/RadioGroup/index.d.ts +1 -0
  310. package/RadioGroup/index.mjs +6 -0
  311. package/RadioGroup/package.json +7 -0
  312. package/Resizable/Resizable.d.ts +23 -0
  313. package/Resizable/Resizable.mjs +36 -0
  314. package/Resizable/index.d.ts +1 -0
  315. package/Resizable/index.mjs +6 -0
  316. package/Resizable/package.json +7 -0
  317. package/ScrollArea/ScrollArea.d.ts +5 -0
  318. package/ScrollArea/ScrollArea.mjs +51 -0
  319. package/ScrollArea/index.d.ts +1 -0
  320. package/ScrollArea/index.mjs +5 -0
  321. package/ScrollArea/package.json +7 -0
  322. package/Search/Search.d.ts +4 -0
  323. package/Search/Search.mjs +30 -0
  324. package/Search/Search.types.d.ts +6 -0
  325. package/Search/index.d.ts +3 -0
  326. package/Search/index.mjs +5 -0
  327. package/Search/package.json +7 -0
  328. package/Select/Select.d.ts +3 -0
  329. package/Select/Select.mjs +103 -0
  330. package/Select/Select.types.d.ts +37 -0
  331. package/Select/SelectRoot.d.ts +13 -0
  332. package/Select/SelectRoot.mjs +126 -0
  333. package/Select/index.d.ts +3 -0
  334. package/Select/index.mjs +15 -0
  335. package/Select/package.json +7 -0
  336. package/Separator/Separator.d.ts +4 -0
  337. package/Separator/Separator.mjs +24 -0
  338. package/Separator/index.d.ts +1 -0
  339. package/Separator/index.mjs +4 -0
  340. package/Separator/package.json +7 -0
  341. package/Sheet/Sheet.d.ts +28 -0
  342. package/Sheet/Sheet.mjs +110 -0
  343. package/Sheet/index.d.ts +1 -0
  344. package/Sheet/index.mjs +13 -0
  345. package/Sheet/package.json +7 -0
  346. package/Sidebar/Sidebar.d.ts +66 -0
  347. package/Sidebar/Sidebar.mjs +543 -0
  348. package/Sidebar/index.d.ts +1 -0
  349. package/Sidebar/index.mjs +27 -0
  350. package/Sidebar/package.json +7 -0
  351. package/Skeleton/Skeleton.d.ts +4 -0
  352. package/Skeleton/Skeleton.mjs +17 -0
  353. package/Skeleton/index.d.ts +1 -0
  354. package/Skeleton/index.mjs +4 -0
  355. package/Skeleton/package.json +7 -0
  356. package/Slider/Slider.d.ts +4 -0
  357. package/Slider/Slider.mjs +23 -0
  358. package/Slider/index.d.ts +1 -0
  359. package/Slider/index.mjs +4 -0
  360. package/Slider/package.json +7 -0
  361. package/Sonner/Sonner.d.ts +5 -0
  362. package/Sonner/Sonner.mjs +25 -0
  363. package/Sonner/index.d.ts +1 -0
  364. package/Sonner/index.mjs +4 -0
  365. package/Sonner/package.json +7 -0
  366. package/Switch/Switch.d.ts +4 -0
  367. package/Switch/Switch.mjs +27 -0
  368. package/Switch/index.d.ts +1 -0
  369. package/Switch/index.mjs +4 -0
  370. package/Switch/package.json +7 -0
  371. package/Table/Table.d.ts +10 -0
  372. package/Table/Table.mjs +90 -0
  373. package/Table/index.d.ts +1 -0
  374. package/Table/index.mjs +11 -0
  375. package/Table/package.json +7 -0
  376. package/TablePagination/TablePagination.d.ts +16 -0
  377. package/TablePagination/TablePagination.mjs +74 -0
  378. package/TablePagination/index.d.ts +1 -0
  379. package/TablePagination/index.mjs +4 -0
  380. package/TablePagination/package.json +7 -0
  381. package/Tabs/Tabs.d.ts +5 -0
  382. package/Tabs/Tabs.mjs +23 -0
  383. package/Tabs/Tabs.types.d.ts +12 -0
  384. package/Tabs/TabsRoot.d.ts +7 -0
  385. package/Tabs/TabsRoot.mjs +46 -0
  386. package/Tabs/index.d.ts +2 -0
  387. package/Tabs/index.mjs +10 -0
  388. package/Tabs/package.json +7 -0
  389. package/Textarea/Textarea.d.ts +4 -0
  390. package/Textarea/Textarea.mjs +75 -0
  391. package/Textarea/Textarea.types.d.ts +18 -0
  392. package/Textarea/index.d.ts +2 -0
  393. package/Textarea/index.mjs +4 -0
  394. package/Textarea/package.json +7 -0
  395. package/Textarea/useAutosizeTextArea.d.ts +3 -0
  396. package/Textarea/useAutosizeTextArea.mjs +20 -0
  397. package/Theme/ThemeModeToggle.d.ts +8 -0
  398. package/Theme/ThemeModeToggle.mjs +48 -0
  399. package/Theme/ThemeProvider.d.ts +4 -0
  400. package/Theme/ThemeProvider.mjs +27 -0
  401. package/Theme/index.d.ts +2 -0
  402. package/Theme/index.mjs +6 -0
  403. package/Theme/package.json +7 -0
  404. package/Toast/Toast.d.ts +13 -0
  405. package/Toast/Toast.mjs +80 -0
  406. package/Toast/Toast.types.d.ts +34 -0
  407. package/Toast/index.d.ts +3 -0
  408. package/Toast/index.mjs +15 -0
  409. package/Toast/package.json +7 -0
  410. package/Toast/toast.constants.d.ts +6 -0
  411. package/Toast/toast.constants.mjs +9 -0
  412. package/Toast/toastVariants.d.ts +3 -0
  413. package/Toast/toastVariants.mjs +21 -0
  414. package/Toast/useToast.d.ts +16 -0
  415. package/Toast/useToast.mjs +101 -0
  416. package/Toaster/Toaster.d.ts +1 -0
  417. package/Toaster/Toaster.mjs +22 -0
  418. package/Toaster/index.d.ts +1 -0
  419. package/Toaster/index.mjs +4 -0
  420. package/Toaster/package.json +7 -0
  421. package/Toggle/Toggle.d.ts +12 -0
  422. package/Toggle/Toggle.mjs +37 -0
  423. package/Toggle/index.d.ts +1 -0
  424. package/Toggle/index.mjs +5 -0
  425. package/Toggle/package.json +7 -0
  426. package/ToggleGroup/ToggleGroup.d.ts +12 -0
  427. package/ToggleGroup/ToggleGroup.mjs +41 -0
  428. package/ToggleGroup/index.d.ts +1 -0
  429. package/ToggleGroup/index.mjs +5 -0
  430. package/ToggleGroup/package.json +7 -0
  431. package/Tooltip/Tooltip.d.ts +4 -0
  432. package/Tooltip/Tooltip.mjs +12 -0
  433. package/Tooltip/Tooltip.types.d.ts +8 -0
  434. package/Tooltip/TooltipRoot.d.ts +7 -0
  435. package/Tooltip/TooltipRoot.mjs +23 -0
  436. package/Tooltip/index.d.ts +3 -0
  437. package/Tooltip/index.mjs +9 -0
  438. package/Tooltip/package.json +7 -0
  439. package/index.css +1 -0
  440. package/index.d.ts +68 -0
  441. package/index.mjs +367 -0
  442. package/package.json +103 -0
  443. package/tailwind.config.mjs +148 -0
@@ -0,0 +1,25 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useTheme as e } from "next-themes";
3
+ import { Toaster as s } from "sonner";
4
+ const p = ({ ...t }) => {
5
+ const { theme: o = "system" } = e();
6
+ return /* @__PURE__ */ r(
7
+ s,
8
+ {
9
+ theme: o,
10
+ className: "toaster group",
11
+ toastOptions: {
12
+ classNames: {
13
+ toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
14
+ description: "group-[.toast]:text-muted-foreground",
15
+ actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
16
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
17
+ }
18
+ },
19
+ ...t
20
+ }
21
+ );
22
+ };
23
+ export {
24
+ p as Sonner
25
+ };
@@ -0,0 +1 @@
1
+ export * from './Sonner';
@@ -0,0 +1,4 @@
1
+ import { Sonner as e } from "./Sonner.mjs";
2
+ export {
3
+ e as Sonner
4
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "sideEffects": false,
3
+ "main": "./index.mjs",
4
+ "module": "./index.mjs",
5
+ "default": "./index.mjs",
6
+ "types": "./index.d.ts"
7
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SwitchPrimitives from "@radix-ui/react-switch";
3
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Switch };
@@ -0,0 +1,27 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as a from "react";
3
+ import * as e from "@radix-ui/react-switch";
4
+ import { cn as o } from "@oneplatformdev/utils";
5
+ const n = a.forwardRef(({ className: t, ...i }, s) => /* @__PURE__ */ r(
6
+ e.Root,
7
+ {
8
+ className: o(
9
+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
10
+ t
11
+ ),
12
+ ...i,
13
+ ref: s,
14
+ children: /* @__PURE__ */ r(
15
+ e.Thumb,
16
+ {
17
+ className: o(
18
+ "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
19
+ )
20
+ }
21
+ )
22
+ }
23
+ ));
24
+ n.displayName = e.Root.displayName;
25
+ export {
26
+ n as Switch
27
+ };
@@ -0,0 +1 @@
1
+ export * from './Switch';
@@ -0,0 +1,4 @@
1
+ import { Switch as t } from "./Switch.mjs";
2
+ export {
3
+ t as Switch
4
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "sideEffects": false,
3
+ "main": "./index.mjs",
4
+ "module": "./index.mjs",
5
+ "default": "./index.mjs",
6
+ "types": "./index.d.ts"
7
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
+ declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -0,0 +1,90 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { cn as r } from "@oneplatformdev/utils";
4
+ const d = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ t(
5
+ "table",
6
+ {
7
+ ref: o,
8
+ className: r("w-full caption-bottom text-sm", e),
9
+ ...a
10
+ }
11
+ ) }));
12
+ d.displayName = "Table";
13
+ const s = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t("thead", { ref: o, className: r("[&_tr]:border-b", e), ...a }));
14
+ s.displayName = "TableHeader";
15
+ const m = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
16
+ "tbody",
17
+ {
18
+ ref: o,
19
+ className: r("[&_tr:last-child]:border-0", e),
20
+ ...a
21
+ }
22
+ ));
23
+ m.displayName = "TableBody";
24
+ const b = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
25
+ "tfoot",
26
+ {
27
+ ref: o,
28
+ className: r(
29
+ "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
30
+ e
31
+ ),
32
+ ...a
33
+ }
34
+ ));
35
+ b.displayName = "TableFooter";
36
+ const c = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
37
+ "tr",
38
+ {
39
+ ref: o,
40
+ className: r(
41
+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
42
+ e
43
+ ),
44
+ ...a
45
+ }
46
+ ));
47
+ c.displayName = "TableRow";
48
+ const f = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
49
+ "th",
50
+ {
51
+ ref: o,
52
+ className: r(
53
+ "h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
54
+ e
55
+ ),
56
+ ...a
57
+ }
58
+ ));
59
+ f.displayName = "TableHead";
60
+ const i = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
61
+ "td",
62
+ {
63
+ ref: o,
64
+ className: r(
65
+ "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
66
+ e
67
+ ),
68
+ ...a
69
+ }
70
+ ));
71
+ i.displayName = "TableCell";
72
+ const n = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
73
+ "caption",
74
+ {
75
+ ref: o,
76
+ className: r("mt-4 text-sm text-muted-foreground", e),
77
+ ...a
78
+ }
79
+ ));
80
+ n.displayName = "TableCaption";
81
+ export {
82
+ d as Table,
83
+ m as TableBody,
84
+ n as TableCaption,
85
+ i as TableCell,
86
+ b as TableFooter,
87
+ f as TableHead,
88
+ s as TableHeader,
89
+ c as TableRow
90
+ };
@@ -0,0 +1 @@
1
+ export * from './Table';
@@ -0,0 +1,11 @@
1
+ import { Table as l, TableBody as b, TableCaption as T, TableCell as o, TableFooter as r, TableHead as d, TableHeader as t, TableRow as p } from "./Table.mjs";
2
+ export {
3
+ l as Table,
4
+ b as TableBody,
5
+ T as TableCaption,
6
+ o as TableCell,
7
+ r as TableFooter,
8
+ d as TableHead,
9
+ t as TableHeader,
10
+ p as TableRow
11
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "sideEffects": false,
3
+ "main": "./index.mjs",
4
+ "module": "./index.mjs",
5
+ "default": "./index.mjs",
6
+ "types": "./index.d.ts"
7
+ }
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+
3
+ interface IProps {
4
+ limit: number;
5
+ offset: number;
6
+ totalRows: number;
7
+ setLimit: (limit: number) => void;
8
+ setOffset: (offset: number) => void;
9
+ tRowsPerPage?: string;
10
+ tPrevious?: string;
11
+ tPage?: string;
12
+ tNext?: string;
13
+ tOf?: string;
14
+ }
15
+ export declare const TablePagination: FC<IProps>;
16
+ export {};
@@ -0,0 +1,74 @@
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
+ import { Button as i } from "../Button/Button.mjs";
3
+ import "../Button/buttonVariants.mjs";
4
+ import "../Select/SelectRoot.mjs";
5
+ import { Select as P } from "../Select/Select.mjs";
6
+ const y = ({
7
+ offset: l,
8
+ limit: a,
9
+ totalRows: s,
10
+ setLimit: p,
11
+ setOffset: t,
12
+ tRowsPerPage: d = "Rows per page",
13
+ tPrevious: u = "Previous",
14
+ tPage: x = "Page",
15
+ tNext: v = "Next",
16
+ tOf: h = "Of"
17
+ }) => {
18
+ const r = Math.ceil(l / a) + 1, o = Math.ceil(s / a), m = r === o, b = (e) => {
19
+ t(0), p(parseInt(e));
20
+ }, g = () => {
21
+ let e = l - a;
22
+ e < 0 && (e = 0), t(e);
23
+ }, N = () => {
24
+ let e = l + a;
25
+ e > s && (e = s - a), t(e);
26
+ };
27
+ return /* @__PURE__ */ c("div", { className: "flex items-center justify-end space-x-2 py-4", children: [
28
+ /* @__PURE__ */ c("div", { className: "flex items-center space-x-2", children: [
29
+ /* @__PURE__ */ n("span", { className: "text-sm text-nowrap", children: d }),
30
+ /* @__PURE__ */ n(
31
+ P,
32
+ {
33
+ value: a == null ? void 0 : a.toString(),
34
+ options: [
35
+ { value: "5", label: "5" },
36
+ { value: "10", label: "10" },
37
+ { value: "20", label: "20" },
38
+ { value: "30", label: "30" },
39
+ { value: "50", label: "50" }
40
+ ],
41
+ onChange: b,
42
+ placeholder: "6",
43
+ nullable: !1
44
+ }
45
+ )
46
+ ] }),
47
+ /* @__PURE__ */ c("div", { className: "space-x-2", children: [
48
+ /* @__PURE__ */ n(
49
+ i,
50
+ {
51
+ variant: "outline",
52
+ size: "sm",
53
+ disabled: !l,
54
+ onClick: g,
55
+ children: u
56
+ }
57
+ ),
58
+ /* @__PURE__ */ n("span", { className: "text-sm", children: `${x} ${r} ${h} ${o}` }),
59
+ /* @__PURE__ */ n(
60
+ i,
61
+ {
62
+ variant: "outline",
63
+ size: "sm",
64
+ disabled: m,
65
+ onClick: N,
66
+ children: v
67
+ }
68
+ )
69
+ ] })
70
+ ] });
71
+ };
72
+ export {
73
+ y as TablePagination
74
+ };
@@ -0,0 +1 @@
1
+ export * from './TablePagination';
@@ -0,0 +1,4 @@
1
+ import { TablePagination as e } from "./TablePagination.mjs";
2
+ export {
3
+ e as TablePagination
4
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "sideEffects": false,
3
+ "main": "./index.mjs",
4
+ "module": "./index.mjs",
5
+ "default": "./index.mjs",
6
+ "types": "./index.d.ts"
7
+ }
package/Tabs/Tabs.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { TabsProps } from './Tabs.types';
2
+ import { FC, PropsWithChildren } from 'react';
3
+
4
+ export declare const TabRender: FC<TabsProps>;
5
+ export declare const Tabs: FC<PropsWithChildren<TabsProps>>;
package/Tabs/Tabs.mjs ADDED
@@ -0,0 +1,23 @@
1
+ import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
+ import { Children as p } from "react";
3
+ import { TabsContent as m, TabsRoot as b, TabsList as i, TabsTrigger as h } from "./TabsRoot.mjs";
4
+ const T = (a) => {
5
+ const { tabs: s = [], contents: t } = a;
6
+ return p.map(t, (n, r) => {
7
+ var l;
8
+ if (!n || !s[r]) return null;
9
+ const e = (l = s[r]) == null ? void 0 : l.value, u = n.props || {};
10
+ return /* @__PURE__ */ o(m, { value: e, ...u, children: n }, e);
11
+ });
12
+ }, f = (a) => {
13
+ const { tab: s, tabs: t = [], onChange: n, children: r } = a;
14
+ return /* @__PURE__ */ c(b, { value: s, onValueChange: n, children: [
15
+ /* @__PURE__ */ o(i, { className: "px-2 py-6 bg-[#E0E7FF] rounded-[6px]", children: t.map((e) => /* @__PURE__ */ o(h, { value: e.value, className: "h-8", children: e.label }, e.value)) }),
16
+ r,
17
+ !r && /* @__PURE__ */ o(T, { ...a })
18
+ ] });
19
+ };
20
+ export {
21
+ T as TabRender,
22
+ f as Tabs
23
+ };
@@ -0,0 +1,12 @@
1
+ import { ReactElement } from 'react';
2
+
3
+ export interface TabItemProps {
4
+ value: string;
5
+ label: string;
6
+ }
7
+ export interface TabsProps {
8
+ tabs: TabItemProps[];
9
+ tab?: string;
10
+ onChange?: (value: string) => void;
11
+ contents?: ReactElement[];
12
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ declare const TabsRoot: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { TabsRoot, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,46 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as a from "react";
3
+ import * as e from "@radix-ui/react-tabs";
4
+ import { cn as n } from "@oneplatformdev/utils";
5
+ const m = e.Root, r = a.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ o(
6
+ e.List,
7
+ {
8
+ ref: s,
9
+ className: n(
10
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
11
+ i
12
+ ),
13
+ ...t
14
+ }
15
+ ));
16
+ r.displayName = e.List.displayName;
17
+ const f = a.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ o(
18
+ e.Trigger,
19
+ {
20
+ ref: s,
21
+ className: n(
22
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
23
+ i
24
+ ),
25
+ ...t
26
+ }
27
+ ));
28
+ f.displayName = e.Trigger.displayName;
29
+ const d = a.forwardRef(({ className: i, ...t }, s) => /* @__PURE__ */ o(
30
+ e.Content,
31
+ {
32
+ ref: s,
33
+ className: n(
34
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
35
+ i
36
+ ),
37
+ ...t
38
+ }
39
+ ));
40
+ d.displayName = e.Content.displayName;
41
+ export {
42
+ d as TabsContent,
43
+ r as TabsList,
44
+ m as TabsRoot,
45
+ f as TabsTrigger
46
+ };
@@ -0,0 +1,2 @@
1
+ export * from './TabsRoot';
2
+ export * from './Tabs';
package/Tabs/index.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { TabsContent as T, TabsList as a, TabsRoot as b, TabsTrigger as e } from "./TabsRoot.mjs";
2
+ import { TabRender as t, Tabs as n } from "./Tabs.mjs";
3
+ export {
4
+ t as TabRender,
5
+ n as Tabs,
6
+ T as TabsContent,
7
+ a as TabsList,
8
+ b as TabsRoot,
9
+ e as TabsTrigger
10
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "sideEffects": false,
3
+ "main": "./index.mjs",
4
+ "module": "./index.mjs",
5
+ "default": "./index.mjs",
6
+ "types": "./index.d.ts"
7
+ }
@@ -0,0 +1,4 @@
1
+ import { TextareaProps } from './Textarea.types';
2
+ import * as React from 'react';
3
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
4
+ export { Textarea };
@@ -0,0 +1,75 @@
1
+ import { jsxs as u, Fragment as h, jsx as p } from "react/jsx-runtime";
2
+ import * as v from "react";
3
+ import { useId as w, useRef as z, useState as A, useImperativeHandle as F, useEffect as N } from "react";
4
+ import { cn as d } from "@oneplatformdev/utils";
5
+ import { useAutosizeTextArea as y } from "./useAutosizeTextArea.mjs";
6
+ const S = v.forwardRef(
7
+ (m, c) => {
8
+ const {
9
+ className: f,
10
+ value: r = "",
11
+ maxHeight: o = Number.MAX_SAFE_INTEGER,
12
+ minHeight: i = 0,
13
+ resizeble: x = !0,
14
+ counter: n = !1,
15
+ id: s = "",
16
+ ...e
17
+ } = m, a = w(), t = z(null), [g, b] = A("");
18
+ return y({
19
+ textAreaRef: t,
20
+ triggerAutoSize: g,
21
+ maxHeight: o,
22
+ minHeight: i
23
+ }), F(c, () => ({
24
+ ...t.current ?? {},
25
+ textArea: t.current,
26
+ focus: () => {
27
+ var l;
28
+ return (l = t == null ? void 0 : t.current) == null ? void 0 : l.focus();
29
+ },
30
+ maxHeight: o,
31
+ minHeight: i
32
+ })), N(() => {
33
+ b(r);
34
+ }, [e == null ? void 0 : e.defaultValue, r]), /* @__PURE__ */ u(h, { children: [
35
+ /* @__PURE__ */ p(
36
+ "textarea",
37
+ {
38
+ id: s || a,
39
+ ...e,
40
+ ref: t,
41
+ value: r,
42
+ className: d(
43
+ "flex min-h-10 w-full px-3 py-2 text-base relative md:text-sm",
44
+ "rounded-[12px] border border-input bg-[#FCFCFC] shadow-none",
45
+ "placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
46
+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
47
+ x ? "resize" : "resize-none !overflow-hidden",
48
+ n && "pb-2",
49
+ f
50
+ )
51
+ }
52
+ ),
53
+ n && /* @__PURE__ */ u(
54
+ "label",
55
+ {
56
+ htmlFor: s || a,
57
+ className: d(
58
+ "w-full text-right inline-flex items-center justify-end",
59
+ "text-sm font-normal text-muted-foreground",
60
+ "leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
61
+ ),
62
+ children: [
63
+ String(r || "").length,
64
+ " / ",
65
+ e == null ? void 0 : e.maxLength
66
+ ]
67
+ }
68
+ )
69
+ ] });
70
+ }
71
+ );
72
+ S.displayName = "Textarea";
73
+ export {
74
+ S as Textarea
75
+ };
@@ -0,0 +1,18 @@
1
+ import { ComponentProps, RefObject } from 'react';
2
+
3
+ export interface IUseAutosizeTextAreaProps {
4
+ textAreaRef: RefObject<HTMLTextAreaElement | null>;
5
+ triggerAutoSize: string;
6
+ /**
7
+ * The minimum height of the textarea.
8
+ */
9
+ minHeight?: number;
10
+ /**
11
+ * The maximum height of the textarea.
12
+ */
13
+ maxHeight?: number;
14
+ }
15
+ export interface TextareaProps extends ComponentProps<'textarea'>, Pick<IUseAutosizeTextAreaProps, 'minHeight' | 'maxHeight'> {
16
+ resizeble?: boolean;
17
+ counter?: boolean;
18
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Textarea';
2
+ export type * from './Textarea.types';
@@ -0,0 +1,4 @@
1
+ import { Textarea as a } from "./Textarea.mjs";
2
+ export {
3
+ a as Textarea
4
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "sideEffects": false,
3
+ "main": "./index.mjs",
4
+ "module": "./index.mjs",
5
+ "default": "./index.mjs",
6
+ "types": "./index.d.ts"
7
+ }
@@ -0,0 +1,3 @@
1
+ import { IUseAutosizeTextAreaProps } from '..';
2
+
3
+ export declare const useAutosizeTextArea: ({ textAreaRef, triggerAutoSize, maxHeight, minHeight, }: IUseAutosizeTextAreaProps) => void;
@@ -0,0 +1,20 @@
1
+ import * as f from "react";
2
+ const u = ({
3
+ textAreaRef: r,
4
+ triggerAutoSize: l,
5
+ maxHeight: t = Number.MAX_SAFE_INTEGER,
6
+ minHeight: s = 0
7
+ }) => {
8
+ const [c, i] = f.useState(!0);
9
+ f.useEffect(() => {
10
+ const e = r.current;
11
+ if (e) {
12
+ c && (e.style.minHeight = `${s + 0}px`, t > s && (e.style.maxHeight = `${t}px`), i(!1)), e.style.height = `${s + 0}px`;
13
+ const o = e.scrollHeight;
14
+ o > t ? e.style.height = `${t}px` : e.style.height = `${o + 0}px`;
15
+ }
16
+ }, [r.current, l]);
17
+ };
18
+ export {
19
+ u as useAutosizeTextArea
20
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ export interface ThemeModeToggleProps {
3
+ lightLabel?: string;
4
+ darkLabel?: string;
5
+ systemLabel?: string;
6
+ }
7
+ export declare const ThemeModeToggle: React.FC<ThemeModeToggleProps>;
8
+ export default ThemeModeToggle;
@@ -0,0 +1,48 @@
1
+ import { jsxs as n, jsx as e, Fragment as c } from "react/jsx-runtime";
2
+ import * as d from "react";
3
+ import { SunMoon as h, Sun as u, Moon as p } from "lucide-react";
4
+ import { useTheme as l } from "next-themes";
5
+ import { Button as g } from "../Button/Button.mjs";
6
+ import "../Button/buttonVariants.mjs";
7
+ import { DropdownMenu as T, DropdownMenuTrigger as f, DropdownMenuContent as M, DropdownMenuItem as k } from "../DropdownMenu/DropdownMenu.mjs";
8
+ const y = {
9
+ system: h,
10
+ light: u,
11
+ dark: p
12
+ }, b = () => {
13
+ const { theme: r = "system" } = l(), o = d.useMemo(() => y[r], [r]);
14
+ return /* @__PURE__ */ n(c, { children: [
15
+ /* @__PURE__ */ e(
16
+ o,
17
+ {
18
+ className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0 text-[currentColor] dar:fill-current"
19
+ }
20
+ ),
21
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Toggle theme" })
22
+ ] });
23
+ }, I = (r) => {
24
+ const {
25
+ lightLabel: o = "Light",
26
+ darkLabel: a = "Dark",
27
+ systemLabel: s = "System"
28
+ } = r, { setTheme: m } = l();
29
+ return /* @__PURE__ */ n(T, { children: [
30
+ /* @__PURE__ */ e(f, { asChild: !0, children: /* @__PURE__ */ e(g, { variant: "outline", size: "icon", children: /* @__PURE__ */ e(b, {}) }) }),
31
+ /* @__PURE__ */ e(M, { align: "end", children: [
32
+ { value: "system", label: s },
33
+ { value: "light", label: o },
34
+ { value: "dark", label: a }
35
+ ].map(({ value: t, label: i }) => /* @__PURE__ */ e(
36
+ k,
37
+ {
38
+ onClick: () => m(t),
39
+ children: i
40
+ },
41
+ t
42
+ )) })
43
+ ] });
44
+ };
45
+ export {
46
+ I as ThemeModeToggle,
47
+ I as default
48
+ };