@oneplatformdev/ui 0.0.1-beta.98 → 0.1.0-5

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 (479) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -29
  3. package/{Button → dist/Button}/Button.d.ts +1 -0
  4. package/dist/Button/Button.d.ts.map +1 -0
  5. package/{Button/Button.mjs → dist/Button/Button.js} +8 -8
  6. package/dist/Button/Button.stories.d.ts +8 -0
  7. package/dist/Button/Button.stories.d.ts.map +1 -0
  8. package/dist/Button/Button.stories.js +20 -0
  9. package/{Button → dist/Button}/Button.types.d.ts +3 -2
  10. package/dist/Button/Button.types.d.ts.map +1 -0
  11. package/dist/Button/Button.types.js +1 -0
  12. package/dist/Button/buttonVariants.d.ts +5 -0
  13. package/dist/Button/buttonVariants.d.ts.map +1 -0
  14. package/dist/Button/buttonVariants.js +35 -0
  15. package/{Button → dist/Button}/index.d.ts +1 -0
  16. package/dist/Button/index.d.ts.map +1 -0
  17. package/dist/Button/index.js +7 -0
  18. package/{ButtonIcon → dist/ButtonIcon}/ButtonIcon.d.ts +1 -0
  19. package/dist/ButtonIcon/ButtonIcon.d.ts.map +1 -0
  20. package/dist/ButtonIcon/ButtonIcon.js +29 -0
  21. package/dist/ButtonIcon/ButtonIcon.stories.d.ts +37 -0
  22. package/dist/ButtonIcon/ButtonIcon.stories.d.ts.map +1 -0
  23. package/dist/ButtonIcon/ButtonIcon.stories.js +126 -0
  24. package/{ButtonIcon → dist/ButtonIcon}/ButtonIcon.types.d.ts +3 -2
  25. package/dist/ButtonIcon/ButtonIcon.types.d.ts.map +1 -0
  26. package/dist/ButtonIcon/ButtonIcon.types.js +1 -0
  27. package/dist/ButtonIcon/buttonIconVariants.d.ts +8 -0
  28. package/dist/ButtonIcon/buttonIconVariants.d.ts.map +1 -0
  29. package/{ButtonIcon/buttonIconVariants.mjs → dist/ButtonIcon/buttonIconVariants.js} +3 -3
  30. package/{ButtonIcon → dist/ButtonIcon}/index.d.ts +1 -0
  31. package/dist/ButtonIcon/index.d.ts.map +1 -0
  32. package/dist/ButtonIcon/index.js +7 -0
  33. package/dist/CHANGELOG.md +17 -0
  34. package/dist/LICENSE +21 -0
  35. package/dist/README.md +7 -0
  36. package/{Tooltip → dist/Tooltip}/Tooltip.d.ts +2 -2
  37. package/dist/Tooltip/Tooltip.d.ts.map +1 -0
  38. package/{Tooltip/Tooltip.mjs → dist/Tooltip/Tooltip.js} +1 -1
  39. package/{Tooltip → dist/Tooltip}/Tooltip.types.d.ts +2 -2
  40. package/dist/Tooltip/Tooltip.types.d.ts.map +1 -0
  41. package/dist/Tooltip/Tooltip.types.js +1 -0
  42. package/{Tooltip → dist/Tooltip}/TooltipRoot.d.ts +1 -0
  43. package/dist/Tooltip/TooltipRoot.d.ts.map +1 -0
  44. package/{Tooltip → dist/Tooltip}/index.d.ts +1 -0
  45. package/dist/Tooltip/index.d.ts.map +1 -0
  46. package/{Tooltip/index.mjs → dist/Tooltip/index.js} +2 -2
  47. package/dist/global.css +1 -0
  48. package/dist/index.d.ts +4 -0
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.js +17 -0
  51. package/dist/package.json +76 -0
  52. package/package.json +45 -72
  53. package/Accordion/Accordion.d.ts +0 -9
  54. package/Accordion/Accordion.mjs +0 -49
  55. package/Accordion/index.d.ts +0 -1
  56. package/Accordion/index.mjs +0 -7
  57. package/Accordion/package.json +0 -7
  58. package/Alert/Alert.d.ts +0 -7
  59. package/Alert/Alert.mjs +0 -37
  60. package/Alert/alertVariants.d.ts +0 -4
  61. package/Alert/alertVariants.mjs +0 -19
  62. package/Alert/index.d.ts +0 -1
  63. package/Alert/index.mjs +0 -6
  64. package/Alert/package.json +0 -7
  65. package/AlertDialog/AlertDialog.d.ts +0 -65
  66. package/AlertDialog/AlertDialog.mjs +0 -97
  67. package/AlertDialog/AlertDialog.types.d.ts +0 -53
  68. package/AlertDialog/AlertDialogRoot.d.ts +0 -21
  69. package/AlertDialog/AlertDialogRoot.mjs +0 -114
  70. package/AlertDialog/index.d.ts +0 -3
  71. package/AlertDialog/index.mjs +0 -16
  72. package/AlertDialog/package.json +0 -7
  73. package/AreaChart/AreaChart.d.ts +0 -4
  74. package/AreaChart/AreaChart.mjs +0 -27
  75. package/AreaChart/AreaChart.types.d.ts +0 -15
  76. package/AreaChart/index.d.ts +0 -2
  77. package/AreaChart/index.mjs +0 -4
  78. package/AreaChart/package.json +0 -7
  79. package/Aside/Aside.d.ts +0 -4
  80. package/Aside/Aside.mjs +0 -23
  81. package/Aside/Aside.types.d.ts +0 -18
  82. package/Aside/AsideSidebar.d.ts +0 -3
  83. package/Aside/AsideSidebar.mjs +0 -37
  84. package/Aside/index.d.ts +0 -3
  85. package/Aside/index.mjs +0 -7
  86. package/Aside/package.json +0 -7
  87. package/AspectRatio/AspectRatio.d.ts +0 -2
  88. package/AspectRatio/AspectRatio.mjs +0 -5
  89. package/AspectRatio/index.d.ts +0 -1
  90. package/AspectRatio/index.mjs +0 -5
  91. package/AspectRatio/package.json +0 -7
  92. package/Avatar/Avatar.d.ts +0 -5
  93. package/Avatar/Avatar.mjs +0 -42
  94. package/Avatar/index.d.ts +0 -1
  95. package/Avatar/index.mjs +0 -6
  96. package/Avatar/package.json +0 -7
  97. package/Badge/Badge.d.ts +0 -5
  98. package/Badge/Badge.mjs +0 -10
  99. package/Badge/Badge.types.d.ts +0 -5
  100. package/Badge/badgeVariants.d.ts +0 -3
  101. package/Badge/badgeVariants.mjs +0 -20
  102. package/Badge/index.d.ts +0 -3
  103. package/Badge/index.mjs +0 -6
  104. package/Badge/package.json +0 -7
  105. package/Breadcrumb/Breadcrumb.d.ts +0 -19
  106. package/Breadcrumb/Breadcrumb.mjs +0 -90
  107. package/Breadcrumb/index.d.ts +0 -1
  108. package/Breadcrumb/index.mjs +0 -10
  109. package/Breadcrumb/package.json +0 -7
  110. package/Button/buttonVariants.d.ts +0 -4
  111. package/Button/buttonVariants.mjs +0 -29
  112. package/Button/index.mjs +0 -7
  113. package/Button/package.json +0 -7
  114. package/ButtonIcon/ButtonIcon.mjs +0 -29
  115. package/ButtonIcon/buttonIconVariants.d.ts +0 -7
  116. package/ButtonIcon/index.mjs +0 -7
  117. package/ButtonIcon/package.json +0 -7
  118. package/Calendar/Calendar.d.ts +0 -8
  119. package/Calendar/Calendar.mjs +0 -64
  120. package/Calendar/index.d.ts +0 -1
  121. package/Calendar/index.mjs +0 -4
  122. package/Calendar/package.json +0 -7
  123. package/Card/Card.d.ts +0 -8
  124. package/Card/Card.mjs +0 -61
  125. package/Card/index.d.ts +0 -1
  126. package/Card/index.mjs +0 -9
  127. package/Card/package.json +0 -7
  128. package/Carousel/Carousel.d.ts +0 -18
  129. package/Carousel/Carousel.mjs +0 -168
  130. package/Carousel/index.d.ts +0 -1
  131. package/Carousel/index.mjs +0 -8
  132. package/Carousel/package.json +0 -7
  133. package/Chart/Chart.d.ts +0 -62
  134. package/Chart/Chart.mjs +0 -210
  135. package/Chart/index.d.ts +0 -1
  136. package/Chart/index.mjs +0 -9
  137. package/Chart/package.json +0 -7
  138. package/Checkbox/Checkbox.d.ts +0 -5
  139. package/Checkbox/Checkbox.mjs +0 -54
  140. package/Checkbox/Checkbox.types.d.ts +0 -10
  141. package/Checkbox/index.d.ts +0 -2
  142. package/Checkbox/index.mjs +0 -5
  143. package/Checkbox/package.json +0 -7
  144. package/Collapsible/Collapsible.d.ts +0 -5
  145. package/Collapsible/Collapsible.mjs +0 -7
  146. package/Collapsible/index.d.ts +0 -1
  147. package/Collapsible/index.mjs +0 -6
  148. package/Collapsible/package.json +0 -7
  149. package/Combobox/Combobox.d.ts +0 -4
  150. package/Combobox/Combobox.mjs +0 -15
  151. package/Combobox/Combobox.types.d.ts +0 -38
  152. package/Combobox/ComboboxOptionItem.d.ts +0 -5
  153. package/Combobox/ComboboxOptionItem.mjs +0 -67
  154. package/Combobox/ComboboxOptions.d.ts +0 -4
  155. package/Combobox/ComboboxOptions.mjs +0 -12
  156. package/Combobox/index.d.ts +0 -2
  157. package/Combobox/index.mjs +0 -4
  158. package/Combobox/package.json +0 -7
  159. package/Combobox-B0sHDL7X.js +0 -301
  160. package/Command/Command.d.ts +0 -80
  161. package/Command/Command.mjs +0 -116
  162. package/Command/index.d.ts +0 -1
  163. package/Command/index.mjs +0 -12
  164. package/Command/package.json +0 -7
  165. package/DataTable/DataTable.d.ts +0 -11
  166. package/DataTable/DataTable.mjs +0 -64
  167. package/DataTable/DataTable.types.d.ts +0 -11
  168. package/DataTable/DataTableColumnFilter.d.ts +0 -4
  169. package/DataTable/DataTableColumnFilter.mjs +0 -31
  170. package/DataTable/index.d.ts +0 -2
  171. package/DataTable/index.mjs +0 -4
  172. package/DataTable/package.json +0 -7
  173. package/DataTable/useDataTable.d.ts +0 -3
  174. package/DataTable/useDataTable.mjs +0 -30
  175. package/DatePicker/DatePicker.d.ts +0 -3
  176. package/DatePicker/DatePicker.mjs +0 -699
  177. package/DatePicker/DatePicker.types.d.ts +0 -5
  178. package/DatePicker/index.d.ts +0 -3
  179. package/DatePicker/index.mjs +0 -5
  180. package/DatePicker/package.json +0 -7
  181. package/Dialog/Dialog.d.ts +0 -21
  182. package/Dialog/Dialog.mjs +0 -117
  183. package/Dialog/index.d.ts +0 -1
  184. package/Dialog/index.mjs +0 -13
  185. package/Dialog/package.json +0 -7
  186. package/Drawer/Drawer.d.ts +0 -22
  187. package/Drawer/Drawer.mjs +0 -98
  188. package/Drawer/index.d.ts +0 -1
  189. package/Drawer/index.mjs +0 -13
  190. package/Drawer/package.json +0 -7
  191. package/DropdownMenu/DropdownMenu.d.ts +0 -27
  192. package/DropdownMenu/DropdownMenu.mjs +0 -148
  193. package/DropdownMenu/index.d.ts +0 -1
  194. package/DropdownMenu/index.mjs +0 -18
  195. package/DropdownMenu/package.json +0 -7
  196. package/Dropzone/Dropzone.d.ts +0 -22
  197. package/Dropzone/Dropzone.mjs +0 -152
  198. package/Dropzone/Dropzone.types.d.ts +0 -42
  199. package/Dropzone/DropzoneFilePreview.d.ts +0 -4
  200. package/Dropzone/DropzoneFilePreview.mjs +0 -9
  201. package/Dropzone/DropzoneSinglePickPreview.d.ts +0 -10
  202. package/Dropzone/DropzoneSinglePickPreview.mjs +0 -41
  203. package/Dropzone/DropzoneUtils.d.ts +0 -5
  204. package/Dropzone/DropzoneUtils.mjs +0 -24
  205. package/Dropzone/index.d.ts +0 -2
  206. package/Dropzone/index.mjs +0 -7
  207. package/Dropzone/package.json +0 -7
  208. package/DropzoneFilePreview-Dhtv8F4u.js +0 -67
  209. package/Form/Form.d.ts +0 -23
  210. package/Form/Form.mjs +0 -98
  211. package/Form/FormRenderControl.d.ts +0 -4
  212. package/Form/FormRenderControl.mjs +0 -21
  213. package/Form/FormRenderControl.types.d.ts +0 -16
  214. package/Form/index.d.ts +0 -3
  215. package/Form/index.mjs +0 -13
  216. package/Form/package.json +0 -7
  217. package/FormCheckbox/FormCheckbox.d.ts +0 -4
  218. package/FormCheckbox/FormCheckbox.mjs +0 -30
  219. package/FormCheckbox/FormCheckbox.types.d.ts +0 -7
  220. package/FormCheckbox/index.d.ts +0 -2
  221. package/FormCheckbox/index.mjs +0 -4
  222. package/FormCheckbox/package.json +0 -7
  223. package/FormCombobox/FormCombobox.d.ts +0 -4
  224. package/FormCombobox/FormCombobox.mjs +0 -26
  225. package/FormCombobox/FormCombobox.types.d.ts +0 -6
  226. package/FormCombobox/index.d.ts +0 -2
  227. package/FormCombobox/index.mjs +0 -4
  228. package/FormCombobox/package.json +0 -7
  229. package/FormDatePicker/FormDatePicker.d.ts +0 -4
  230. package/FormDatePicker/FormDatePicker.mjs +0 -29
  231. package/FormDatePicker/FormDatePicker.types.d.ts +0 -6
  232. package/FormDatePicker/index.d.ts +0 -3
  233. package/FormDatePicker/index.mjs +0 -5
  234. package/FormDatePicker/package.json +0 -7
  235. package/FormDropzone/FormDropzone.d.ts +0 -4
  236. package/FormDropzone/FormDropzone.mjs +0 -19
  237. package/FormDropzone/FormDropzone.types.d.ts +0 -6
  238. package/FormDropzone/index.d.ts +0 -2
  239. package/FormDropzone/index.mjs +0 -4
  240. package/FormDropzone/package.json +0 -7
  241. package/FormInput/FormInput.d.ts +0 -7
  242. package/FormInput/FormInput.mjs +0 -40
  243. package/FormInput/FormInput.types.d.ts +0 -6
  244. package/FormInput/index.d.ts +0 -2
  245. package/FormInput/index.mjs +0 -4
  246. package/FormInput/package.json +0 -7
  247. package/FormRadio/FormRadio.d.ts +0 -4
  248. package/FormRadio/FormRadio.mjs +0 -40
  249. package/FormRadio/FormRadio.types.d.ts +0 -6
  250. package/FormRadio/index.d.ts +0 -2
  251. package/FormRadio/index.mjs +0 -4
  252. package/FormRadio/package.json +0 -7
  253. package/FormSelect/FormSelect.d.ts +0 -4
  254. package/FormSelect/FormSelect.mjs +0 -40
  255. package/FormSelect/FormSelect.types.d.ts +0 -6
  256. package/FormSelect/index.d.ts +0 -2
  257. package/FormSelect/index.mjs +0 -4
  258. package/FormSelect/package.json +0 -7
  259. package/FormTextarea/FormTextarea.d.ts +0 -4
  260. package/FormTextarea/FormTextarea.mjs +0 -27
  261. package/FormTextarea/FormTextarea.types.d.ts +0 -6
  262. package/FormTextarea/index.d.ts +0 -2
  263. package/FormTextarea/index.mjs +0 -4
  264. package/FormTextarea/package.json +0 -7
  265. package/Header/Header.d.ts +0 -4
  266. package/Header/Header.mjs +0 -26
  267. package/Header/Header.types.d.ts +0 -3
  268. package/Header/index.d.ts +0 -2
  269. package/Header/index.mjs +0 -5
  270. package/Header/package.json +0 -7
  271. package/HoverCard/HoverCard.d.ts +0 -6
  272. package/HoverCard/HoverCard.mjs +0 -23
  273. package/HoverCard/index.d.ts +0 -1
  274. package/HoverCard/index.mjs +0 -6
  275. package/HoverCard/package.json +0 -7
  276. package/Input/Input.d.ts +0 -6
  277. package/Input/Input.mjs +0 -73
  278. package/Input/Input.types.d.ts +0 -17
  279. package/Input/index.d.ts +0 -3
  280. package/Input/index.mjs +0 -7
  281. package/Input/inputVariants.d.ts +0 -3
  282. package/Input/inputVariants.mjs +0 -24
  283. package/Input/package.json +0 -7
  284. package/InputOTP/InputOTP.d.ts +0 -34
  285. package/InputOTP/InputOTP.mjs +0 -48
  286. package/InputOTP/index.d.ts +0 -1
  287. package/InputOTP/index.mjs +0 -7
  288. package/InputOTP/package.json +0 -7
  289. package/Label/Label.d.ts +0 -5
  290. package/Label/Label.mjs +0 -17
  291. package/Label/index.d.ts +0 -2
  292. package/Label/index.mjs +0 -6
  293. package/Label/labelVariants.d.ts +0 -1
  294. package/Label/labelVariants.mjs +0 -10
  295. package/Label/package.json +0 -7
  296. package/LazyLoader/LazyLoader.d.ts +0 -20
  297. package/LazyLoader/LazyLoader.mjs +0 -8
  298. package/LazyLoader/index.d.ts +0 -1
  299. package/LazyLoader/index.mjs +0 -5
  300. package/LazyLoader/package.json +0 -7
  301. package/LoadingMask/LoadingMask.d.ts +0 -4
  302. package/LoadingMask/LoadingMask.mjs +0 -21
  303. package/LoadingMask/LoadingMask.types.d.ts +0 -5
  304. package/LoadingMask/RenderLoadingMask.d.ts +0 -3
  305. package/LoadingMask/RenderLoadingMask.mjs +0 -108
  306. package/LoadingMask/index.d.ts +0 -3
  307. package/LoadingMask/index.mjs +0 -6
  308. package/LoadingMask/package.json +0 -7
  309. package/LoadingProgress/LoadingProgress.d.ts +0 -4
  310. package/LoadingProgress/LoadingProgress.mjs +0 -37
  311. package/LoadingProgress/LoadingProgress.types.d.ts +0 -8
  312. package/LoadingProgress/index.d.ts +0 -3
  313. package/LoadingProgress/index.mjs +0 -6
  314. package/LoadingProgress/loadingProgressVariants.d.ts +0 -4
  315. package/LoadingProgress/loadingProgressVariants.mjs +0 -24
  316. package/LoadingProgress/package.json +0 -7
  317. package/Menubar/Menubar.d.ts +0 -28
  318. package/Menubar/Menubar.mjs +0 -175
  319. package/Menubar/index.d.ts +0 -1
  320. package/Menubar/index.mjs +0 -19
  321. package/Menubar/package.json +0 -7
  322. package/NavigationMenu/NavigationMenu.d.ts +0 -11
  323. package/NavigationMenu/NavigationMenu.mjs +0 -101
  324. package/NavigationMenu/index.d.ts +0 -2
  325. package/NavigationMenu/index.mjs +0 -13
  326. package/NavigationMenu/navigationMenuVariants.d.ts +0 -1
  327. package/NavigationMenu/navigationMenuVariants.mjs +0 -7
  328. package/NavigationMenu/package.json +0 -7
  329. package/Pagination/Pagination.d.ts +0 -28
  330. package/Pagination/Pagination.mjs +0 -106
  331. package/Pagination/index.d.ts +0 -1
  332. package/Pagination/index.mjs +0 -10
  333. package/Pagination/package.json +0 -7
  334. package/Popover/Popover.d.ts +0 -7
  335. package/Popover/Popover.mjs +0 -28
  336. package/Popover/index.d.ts +0 -1
  337. package/Popover/index.mjs +0 -7
  338. package/Popover/package.json +0 -7
  339. package/Progress/Progress.d.ts +0 -4
  340. package/Progress/Progress.mjs +0 -26
  341. package/Progress/index.d.ts +0 -1
  342. package/Progress/index.mjs +0 -4
  343. package/Progress/package.json +0 -7
  344. package/Radio/Radio.d.ts +0 -4
  345. package/Radio/Radio.mjs +0 -12
  346. package/Radio/Radio.types.d.ts +0 -11
  347. package/Radio/index.d.ts +0 -2
  348. package/Radio/index.mjs +0 -4
  349. package/Radio/package.json +0 -7
  350. package/RadioGroup/RadioGroup.d.ts +0 -11
  351. package/RadioGroup/RadioGroup.mjs +0 -49
  352. package/RadioGroup/index.d.ts +0 -1
  353. package/RadioGroup/index.mjs +0 -6
  354. package/RadioGroup/package.json +0 -7
  355. package/Resizable/Resizable.d.ts +0 -23
  356. package/Resizable/Resizable.mjs +0 -36
  357. package/Resizable/index.d.ts +0 -1
  358. package/Resizable/index.mjs +0 -6
  359. package/Resizable/package.json +0 -7
  360. package/ScrollArea/ScrollArea.d.ts +0 -5
  361. package/ScrollArea/ScrollArea.mjs +0 -51
  362. package/ScrollArea/index.d.ts +0 -1
  363. package/ScrollArea/index.mjs +0 -5
  364. package/ScrollArea/package.json +0 -7
  365. package/Search/Search.d.ts +0 -4
  366. package/Search/Search.mjs +0 -30
  367. package/Search/Search.types.d.ts +0 -6
  368. package/Search/index.d.ts +0 -3
  369. package/Search/index.mjs +0 -5
  370. package/Search/package.json +0 -7
  371. package/Select/Select.d.ts +0 -3
  372. package/Select/Select.mjs +0 -103
  373. package/Select/Select.types.d.ts +0 -37
  374. package/Select/SelectRoot.d.ts +0 -13
  375. package/Select/SelectRoot.mjs +0 -126
  376. package/Select/index.d.ts +0 -3
  377. package/Select/index.mjs +0 -15
  378. package/Select/package.json +0 -7
  379. package/Separator/Separator.d.ts +0 -4
  380. package/Separator/Separator.mjs +0 -24
  381. package/Separator/index.d.ts +0 -1
  382. package/Separator/index.mjs +0 -4
  383. package/Separator/package.json +0 -7
  384. package/Sheet/Sheet.d.ts +0 -28
  385. package/Sheet/Sheet.mjs +0 -110
  386. package/Sheet/index.d.ts +0 -1
  387. package/Sheet/index.mjs +0 -13
  388. package/Sheet/package.json +0 -7
  389. package/Sidebar/Sidebar.d.ts +0 -66
  390. package/Sidebar/Sidebar.mjs +0 -543
  391. package/Sidebar/index.d.ts +0 -1
  392. package/Sidebar/index.mjs +0 -27
  393. package/Sidebar/package.json +0 -7
  394. package/Skeleton/Skeleton.d.ts +0 -4
  395. package/Skeleton/Skeleton.mjs +0 -17
  396. package/Skeleton/index.d.ts +0 -1
  397. package/Skeleton/index.mjs +0 -4
  398. package/Skeleton/package.json +0 -7
  399. package/Slider/Slider.d.ts +0 -4
  400. package/Slider/Slider.mjs +0 -23
  401. package/Slider/index.d.ts +0 -1
  402. package/Slider/index.mjs +0 -4
  403. package/Slider/package.json +0 -7
  404. package/Sonner/Sonner.d.ts +0 -5
  405. package/Sonner/Sonner.mjs +0 -25
  406. package/Sonner/index.d.ts +0 -1
  407. package/Sonner/index.mjs +0 -4
  408. package/Sonner/package.json +0 -7
  409. package/Switch/Switch.d.ts +0 -4
  410. package/Switch/Switch.mjs +0 -27
  411. package/Switch/index.d.ts +0 -1
  412. package/Switch/index.mjs +0 -4
  413. package/Switch/package.json +0 -7
  414. package/Table/Table.d.ts +0 -10
  415. package/Table/Table.mjs +0 -90
  416. package/Table/index.d.ts +0 -1
  417. package/Table/index.mjs +0 -11
  418. package/Table/package.json +0 -7
  419. package/TablePagination/TablePagination.d.ts +0 -16
  420. package/TablePagination/TablePagination.mjs +0 -74
  421. package/TablePagination/index.d.ts +0 -1
  422. package/TablePagination/index.mjs +0 -4
  423. package/TablePagination/package.json +0 -7
  424. package/Tabs/Tabs.d.ts +0 -5
  425. package/Tabs/Tabs.mjs +0 -23
  426. package/Tabs/Tabs.types.d.ts +0 -12
  427. package/Tabs/TabsRoot.d.ts +0 -7
  428. package/Tabs/TabsRoot.mjs +0 -46
  429. package/Tabs/index.d.ts +0 -2
  430. package/Tabs/index.mjs +0 -10
  431. package/Tabs/package.json +0 -7
  432. package/Textarea/Textarea.d.ts +0 -4
  433. package/Textarea/Textarea.mjs +0 -74
  434. package/Textarea/Textarea.types.d.ts +0 -18
  435. package/Textarea/index.d.ts +0 -2
  436. package/Textarea/index.mjs +0 -4
  437. package/Textarea/package.json +0 -7
  438. package/Textarea/useAutosizeTextArea.d.ts +0 -3
  439. package/Textarea/useAutosizeTextArea.mjs +0 -20
  440. package/Theme/ThemeModeToggle.d.ts +0 -8
  441. package/Theme/ThemeModeToggle.mjs +0 -48
  442. package/Theme/ThemeProvider.d.ts +0 -4
  443. package/Theme/ThemeProvider.mjs +0 -27
  444. package/Theme/index.d.ts +0 -2
  445. package/Theme/index.mjs +0 -6
  446. package/Theme/package.json +0 -7
  447. package/Toast/Toast.d.ts +0 -13
  448. package/Toast/Toast.mjs +0 -80
  449. package/Toast/Toast.types.d.ts +0 -34
  450. package/Toast/index.d.ts +0 -3
  451. package/Toast/index.mjs +0 -15
  452. package/Toast/package.json +0 -7
  453. package/Toast/toast.constants.d.ts +0 -6
  454. package/Toast/toast.constants.mjs +0 -9
  455. package/Toast/toastVariants.d.ts +0 -3
  456. package/Toast/toastVariants.mjs +0 -21
  457. package/Toast/useToast.d.ts +0 -16
  458. package/Toast/useToast.mjs +0 -101
  459. package/Toaster/Toaster.d.ts +0 -1
  460. package/Toaster/Toaster.mjs +0 -22
  461. package/Toaster/index.d.ts +0 -1
  462. package/Toaster/index.mjs +0 -4
  463. package/Toaster/package.json +0 -7
  464. package/Toggle/Toggle.d.ts +0 -12
  465. package/Toggle/Toggle.mjs +0 -37
  466. package/Toggle/index.d.ts +0 -1
  467. package/Toggle/index.mjs +0 -5
  468. package/Toggle/package.json +0 -7
  469. package/ToggleGroup/ToggleGroup.d.ts +0 -12
  470. package/ToggleGroup/ToggleGroup.mjs +0 -41
  471. package/ToggleGroup/index.d.ts +0 -1
  472. package/ToggleGroup/index.mjs +0 -5
  473. package/ToggleGroup/package.json +0 -7
  474. package/Tooltip/package.json +0 -7
  475. package/index.css +0 -1
  476. package/index.d.ts +0 -68
  477. package/index.mjs +0 -367
  478. package/tailwind.config.mjs +0 -148
  479. /package/{Tooltip/TooltipRoot.mjs → dist/Tooltip/TooltipRoot.js} +0 -0
package/Sonner/Sonner.mjs DELETED
@@ -1,25 +0,0 @@
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
- };
package/Sonner/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './Sonner';
package/Sonner/index.mjs DELETED
@@ -1,4 +0,0 @@
1
- import { Sonner as e } from "./Sonner.mjs";
2
- export {
3
- e as Sonner
4
- };
@@ -1,7 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "main": "./index.mjs",
4
- "module": "./index.mjs",
5
- "default": "./index.mjs",
6
- "types": "./index.d.ts"
7
- }
@@ -1,4 +0,0 @@
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 };
package/Switch/Switch.mjs DELETED
@@ -1,27 +0,0 @@
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
- };
package/Switch/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './Switch';
package/Switch/index.mjs DELETED
@@ -1,4 +0,0 @@
1
- import { Switch as t } from "./Switch.mjs";
2
- export {
3
- t as Switch
4
- };
@@ -1,7 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "main": "./index.mjs",
4
- "module": "./index.mjs",
5
- "default": "./index.mjs",
6
- "types": "./index.d.ts"
7
- }
package/Table/Table.d.ts DELETED
@@ -1,10 +0,0 @@
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, };
package/Table/Table.mjs DELETED
@@ -1,90 +0,0 @@
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
- };
package/Table/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './Table';
package/Table/index.mjs DELETED
@@ -1,11 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "main": "./index.mjs",
4
- "module": "./index.mjs",
5
- "default": "./index.mjs",
6
- "types": "./index.d.ts"
7
- }
@@ -1,16 +0,0 @@
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 {};
@@ -1,74 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export * from './TablePagination';
@@ -1,4 +0,0 @@
1
- import { TablePagination as e } from "./TablePagination.mjs";
2
- export {
3
- e as TablePagination
4
- };
@@ -1,7 +0,0 @@
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 DELETED
@@ -1,5 +0,0 @@
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 DELETED
@@ -1,23 +0,0 @@
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
- };
@@ -1,12 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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 };
package/Tabs/TabsRoot.mjs DELETED
@@ -1,46 +0,0 @@
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
- };
package/Tabs/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './TabsRoot';
2
- export * from './Tabs';
package/Tabs/index.mjs DELETED
@@ -1,10 +0,0 @@
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
- };
package/Tabs/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "main": "./index.mjs",
4
- "module": "./index.mjs",
5
- "default": "./index.mjs",
6
- "types": "./index.d.ts"
7
- }
@@ -1,4 +0,0 @@
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 };
@@ -1,74 +0,0 @@
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",
44
- "rounded-[12px] border border-input bg-[#FCFCFC] shadow-none",
45
- "placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
46
- x ? "resize" : "resize-none !overflow-hidden",
47
- n && "pb-2",
48
- f
49
- )
50
- }
51
- ),
52
- n && /* @__PURE__ */ u(
53
- "label",
54
- {
55
- htmlFor: s || a,
56
- className: d(
57
- "w-full text-right inline-flex items-center justify-end",
58
- "text-sm font-normal text-muted-foreground",
59
- "leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
60
- ),
61
- children: [
62
- String(r || "").length,
63
- " / ",
64
- e == null ? void 0 : e.maxLength
65
- ]
66
- }
67
- )
68
- ] });
69
- }
70
- );
71
- S.displayName = "Textarea";
72
- export {
73
- S as Textarea
74
- };
@@ -1,18 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export * from './Textarea';
2
- export type * from './Textarea.types';
@@ -1,4 +0,0 @@
1
- import { Textarea as a } from "./Textarea.mjs";
2
- export {
3
- a as Textarea
4
- };
@@ -1,7 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "main": "./index.mjs",
4
- "module": "./index.mjs",
5
- "default": "./index.mjs",
6
- "types": "./index.d.ts"
7
- }
@@ -1,3 +0,0 @@
1
- import { IUseAutosizeTextAreaProps } from '..';
2
-
3
- export declare const useAutosizeTextArea: ({ textAreaRef, triggerAutoSize, maxHeight, minHeight, }: IUseAutosizeTextAreaProps) => void;
@@ -1,20 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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;
@@ -1,48 +0,0 @@
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
- };