@oneplatformdev/ui 0.0.1-beta.99 → 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-Dfbnw0oF.js +0 -303
  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 -75
  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
@@ -1,5 +0,0 @@
1
- import { IComboboxOptionsNodeProps } from '..';
2
-
3
- export declare const ComboboxOptionItem: import('react').ForwardRefExoticComponent<IComboboxOptionsNodeProps & {
4
- children?: import('react').ReactNode | undefined;
5
- } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,67 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import "../Accordion/Accordion.mjs";
4
- import "../Alert/Alert.mjs";
5
- import "../AlertDialog/AlertDialogRoot.mjs";
6
- import "@oneplatformdev/utils";
7
- import "recharts";
8
- import "../Chart/Chart.mjs";
9
- import "../Sidebar/Sidebar.mjs";
10
- import "@radix-ui/react-aspect-ratio";
11
- import "../Avatar/Avatar.mjs";
12
- import "../Badge/badgeVariants.mjs";
13
- import "../Breadcrumb/Breadcrumb.mjs";
14
- import "../Button/Button.mjs";
15
- import "../Button/buttonVariants.mjs";
16
- import "../ButtonIcon/ButtonIcon.mjs";
17
- import "../ButtonIcon/buttonIconVariants.mjs";
18
- import "../Calendar/Calendar.mjs";
19
- import "../Card/Card.mjs";
20
- import "../Carousel/Carousel.mjs";
21
- import "../Checkbox/Checkbox.mjs";
22
- import "@radix-ui/react-collapsible";
23
- import { a as no } from "../Combobox-Dfbnw0oF.js";
24
- import "../Command/Command.mjs";
25
- import "../DropdownMenu/DropdownMenu.mjs";
26
- import "../Table/Table.mjs";
27
- import "@tanstack/react-table";
28
- import "lucide-react";
29
- import "../DatePicker/DatePicker.mjs";
30
- import "../Dialog/Dialog.mjs";
31
- import "../Drawer/Drawer.mjs";
32
- import "../Form/Form.mjs";
33
- import "../FormInput/FormInput.mjs";
34
- import "../Select/SelectRoot.mjs";
35
- import "../Textarea/Textarea.mjs";
36
- import "../Separator/Separator.mjs";
37
- import "../HoverCard/HoverCard.mjs";
38
- import "../Input/Input.mjs";
39
- import "../InputOTP/InputOTP.mjs";
40
- import "../Label/Label.mjs";
41
- import "../Label/labelVariants.mjs";
42
- import "../LoadingMask/RenderLoadingMask.mjs";
43
- import "../LoadingProgress/loadingProgressVariants.mjs";
44
- import "../Menubar/Menubar.mjs";
45
- import "../NavigationMenu/NavigationMenu.mjs";
46
- import "../NavigationMenu/navigationMenuVariants.mjs";
47
- import "../Pagination/Pagination.mjs";
48
- import "../Popover/Popover.mjs";
49
- import "../Progress/Progress.mjs";
50
- import "../RadioGroup/RadioGroup.mjs";
51
- import "react-resizable-panels";
52
- import "../ScrollArea/ScrollArea.mjs";
53
- import "@oneplatformdev/hooks";
54
- import "../Sheet/Sheet.mjs";
55
- import "../Slider/Slider.mjs";
56
- import "next-themes";
57
- import "sonner";
58
- import "../Switch/Switch.mjs";
59
- import "../Tabs/TabsRoot.mjs";
60
- import "../Toast/Toast.mjs";
61
- import "../Toggle/Toggle.mjs";
62
- import "../ToggleGroup/ToggleGroup.mjs";
63
- import "../Tooltip/TooltipRoot.mjs";
64
- import "../Dropzone/Dropzone.mjs";
65
- export {
66
- no as ComboboxOptionItem
67
- };
@@ -1,4 +0,0 @@
1
- import { IComboboxOptionsNodeProps, IComboboxOptionsProps } from './Combobox.types';
2
-
3
- export declare const ComboboxOptionsNode: import('react').ForwardRefExoticComponent<IComboboxOptionsNodeProps & import('react').RefAttributes<HTMLDivElement>>;
4
- export declare const ComboboxOptions: import('react').ForwardRefExoticComponent<IComboboxOptionsProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,12 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "../Button/Button.mjs";
3
- import "../Button/buttonVariants.mjs";
4
- import "react";
5
- import "../Collapsible/Collapsible.mjs";
6
- import { c as a, b as e } from "../Combobox-Dfbnw0oF.js";
7
- import "lucide-react";
8
- import "@oneplatformdev/utils";
9
- export {
10
- a as ComboboxOptions,
11
- e as ComboboxOptionsNode
12
- };
@@ -1,2 +0,0 @@
1
- export * from './Combobox';
2
- export type * from './Combobox.types';
@@ -1,4 +0,0 @@
1
- import { C as m } from "../Combobox-Dfbnw0oF.js";
2
- export {
3
- m as Combobox
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,303 +0,0 @@
1
- import { jsxs as s, jsx as e, Fragment as A } from "react/jsx-runtime";
2
- import f, { forwardRef as y, useState as V, useRef as W, useEffect as X, useCallback as g, useLayoutEffect as H } from "react";
3
- import { LoadingMask as J } from "./LoadingMask/LoadingMask.mjs";
4
- import "./LoadingMask/RenderLoadingMask.mjs";
5
- import { Popover as K, PopoverTrigger as Q, PopoverContent as Y } from "./Popover/Popover.mjs";
6
- import { Button as _ } from "./Button/Button.mjs";
7
- import "./Button/buttonVariants.mjs";
8
- import { CommandItem as Z, Command as $, CommandInput as ee, CommandList as te, CommandGroup as oe, CommandEmpty as F } from "./Command/Command.mjs";
9
- import { cn as p } from "@oneplatformdev/utils";
10
- import { useDebounceCallback as re } from "@oneplatformdev/hooks";
11
- import { Check as ae, ChevronDownIcon as ie, X as ne, ChevronsUpDown as le } from "lucide-react";
12
- import { Collapsible as se, CollapsibleTrigger as pe, CollapsibleContent as me } from "./Collapsible/Collapsible.mjs";
13
- import "./Accordion/Accordion.mjs";
14
- import "./Alert/Alert.mjs";
15
- import "./AlertDialog/AlertDialogRoot.mjs";
16
- import "recharts";
17
- import "./Chart/Chart.mjs";
18
- import "./Sidebar/Sidebar.mjs";
19
- import "@radix-ui/react-aspect-ratio";
20
- import "./Avatar/Avatar.mjs";
21
- import "./Badge/badgeVariants.mjs";
22
- import "./Breadcrumb/Breadcrumb.mjs";
23
- import "./ButtonIcon/ButtonIcon.mjs";
24
- import "./ButtonIcon/buttonIconVariants.mjs";
25
- import "./Calendar/Calendar.mjs";
26
- import "./Card/Card.mjs";
27
- import "./Carousel/Carousel.mjs";
28
- import "./Checkbox/Checkbox.mjs";
29
- import "@radix-ui/react-collapsible";
30
- import "./DropdownMenu/DropdownMenu.mjs";
31
- import "./Table/Table.mjs";
32
- import "@tanstack/react-table";
33
- import "./DatePicker/DatePicker.mjs";
34
- import "./Dialog/Dialog.mjs";
35
- import "./Drawer/Drawer.mjs";
36
- import "./Form/Form.mjs";
37
- import "./FormInput/FormInput.mjs";
38
- import "./Select/SelectRoot.mjs";
39
- import "./Textarea/Textarea.mjs";
40
- import "./Separator/Separator.mjs";
41
- import "./HoverCard/HoverCard.mjs";
42
- import "./Input/Input.mjs";
43
- import "./InputOTP/InputOTP.mjs";
44
- import "./Label/Label.mjs";
45
- import "./Label/labelVariants.mjs";
46
- import "./LoadingProgress/loadingProgressVariants.mjs";
47
- import "./Menubar/Menubar.mjs";
48
- import "./NavigationMenu/NavigationMenu.mjs";
49
- import "./NavigationMenu/navigationMenuVariants.mjs";
50
- import "./Pagination/Pagination.mjs";
51
- import "./Progress/Progress.mjs";
52
- import "./RadioGroup/RadioGroup.mjs";
53
- import "react-resizable-panels";
54
- import "./ScrollArea/ScrollArea.mjs";
55
- import "./Sheet/Sheet.mjs";
56
- import "./Slider/Slider.mjs";
57
- import "next-themes";
58
- import "sonner";
59
- import "./Switch/Switch.mjs";
60
- import "./Tabs/TabsRoot.mjs";
61
- import "./Toast/Toast.mjs";
62
- import "./Toggle/Toggle.mjs";
63
- import "./ToggleGroup/ToggleGroup.mjs";
64
- import "./Tooltip/TooltipRoot.mjs";
65
- import "./Dropzone/Dropzone.mjs";
66
- const ce = 8, I = y((n, l) => {
67
- const { children: t, setOpen: m, option: o, onChangeOption: i, value: c = "", deep: a = 0 } = n;
68
- return /* @__PURE__ */ s(
69
- Z,
70
- {
71
- ref: l,
72
- value: o.value,
73
- onSelect: () => {
74
- c === o.value ? i == null || i({ value: "", label: "" }) : i == null || i(o), m(!1);
75
- },
76
- style: {
77
- paddingLeft: (a + 1) * ce
78
- },
79
- children: [
80
- t,
81
- /* @__PURE__ */ e(
82
- "span",
83
- {
84
- className: p(
85
- "overflow-hidden whitespace-wrap text-ellipsis line-clamp-2"
86
- ),
87
- children: o.label
88
- }
89
- ),
90
- /* @__PURE__ */ e(
91
- ae,
92
- {
93
- className: p(
94
- "ml-auto",
95
- c === o.value ? "opacity-100" : "opacity-0"
96
- )
97
- }
98
- )
99
- ]
100
- },
101
- o.value
102
- );
103
- }), M = y((n, l) => {
104
- var c;
105
- const { option: t, deep: m = 0 } = n, [o, i] = V(!0);
106
- return (c = t == null ? void 0 : t.items) != null && c.length ? /* @__PURE__ */ s(
107
- se,
108
- {
109
- ref: l,
110
- open: o,
111
- onOpenChange: i,
112
- "data-opened": o,
113
- className: p("group/collapsible"),
114
- children: [
115
- /* @__PURE__ */ e(I, { ...n, children: /* @__PURE__ */ e(pe, { asChild: !0, children: /* @__PURE__ */ s(
116
- _,
117
- {
118
- onClick: (a) => {
119
- a == null || a.preventDefault(), a == null || a.stopPropagation(), i((d) => !d);
120
- },
121
- type: "button",
122
- variant: "ghost",
123
- size: "sm",
124
- className: p("aspect-square size-6", "transition-transform"),
125
- children: [
126
- /* @__PURE__ */ e(
127
- ie,
128
- {
129
- className: p(
130
- "!size-5",
131
- "transition-transform",
132
- o && "rotate-180"
133
- )
134
- }
135
- ),
136
- /* @__PURE__ */ e("span", { className: "sr-only", children: "Toggle" })
137
- ]
138
- }
139
- ) }) }),
140
- /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-0", children: t == null ? void 0 : t.items.map((a) => /* @__PURE__ */ e(
141
- M,
142
- {
143
- ...n,
144
- deep: m + 1,
145
- option: a
146
- },
147
- a.value
148
- )) }) })
149
- ]
150
- }
151
- ) : /* @__PURE__ */ e(I, { ...n, ref: l });
152
- }), de = y((n, l) => {
153
- const { options: t = [], ...m } = n;
154
- return /* @__PURE__ */ e("div", { ref: l, className: "flex flex-col gap-0", children: t.map((o) => /* @__PURE__ */ e(M, { ...m, option: o }, o.value)) });
155
- }), St = y(
156
- (n, l) => {
157
- var j;
158
- const {
159
- value: t,
160
- onChange: m,
161
- placeholder: o,
162
- disabled: i,
163
- searchLabel: c = "Type to search...",
164
- fetchOptions: a,
165
- options: d,
166
- emptyLabel: L = "No options",
167
- emptyAction: b,
168
- onMount: P
169
- } = n, w = W(!1), [u, v] = f.useState(!1), [C, T] = f.useState(""), [N, x] = f.useState([]), [S, k] = f.useState(), [O, h] = f.useState(!1);
170
- X(() => {
171
- d != null && d.length && x(d);
172
- }, [d]);
173
- const R = async () => {
174
- u || (E(), T(""));
175
- }, E = g(async (r) => {
176
- h(!0);
177
- try {
178
- const D = await a(r);
179
- x(D);
180
- } catch (D) {
181
- console.error("Unexpected error while get option:", D);
182
- } finally {
183
- h(!1);
184
- }
185
- }, []), q = re(E, 1e3, {
186
- leading: !1,
187
- trailing: !0
188
- }), B = g((r) => {
189
- h(!0), T(r), q(r);
190
- }, []), z = g((r) => {
191
- m(r.value), k(r), h(!1);
192
- }, []), G = g(() => {
193
- z({ value: "", label: "" }), k(void 0), h(!1);
194
- }, []), U = g(() => {
195
- if (!P) {
196
- w.current = !0;
197
- return;
198
- }
199
- P({ setOptions: x, search: C || "", open: u, setOpen: v }).finally(
200
- () => {
201
- w.current = !0;
202
- }
203
- );
204
- }, []);
205
- return H(() => (U(), () => {
206
- w.current = !1;
207
- }), []), /* @__PURE__ */ e("div", { className: "w-full", ref: l, children: /* @__PURE__ */ s(
208
- K,
209
- {
210
- open: u,
211
- onOpenChange: (r) => {
212
- v(r), r && R();
213
- },
214
- children: [
215
- /* @__PURE__ */ e(Q, { asChild: !0, className: "border-input", children: /* @__PURE__ */ s(
216
- _,
217
- {
218
- variant: "outline",
219
- role: "combobox",
220
- size: "lg",
221
- "aria-expanded": u,
222
- className: p(
223
- "w-full justify-between font-normal text-sm bg-transparent relative p-3",
224
- "border border-border",
225
- u && "border-2 outline-none ring-1 ring-ring",
226
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
227
- ),
228
- disabled: i,
229
- children: [
230
- /* @__PURE__ */ e("span", { className: "truncate max-w-[calc(100%-1.5rem)] overflow-hidden whitespace-nowrap", children: t ? ((j = N.find((r) => r.value === t)) == null ? void 0 : j.label) || (S == null ? void 0 : S.label) : /* @__PURE__ */ e("span", { className: "text-gray-400", children: o }) }),
231
- t ? /* @__PURE__ */ e(
232
- "div",
233
- {
234
- className: p(
235
- "absolute top-0 right-1",
236
- "flex items-center justify-center",
237
- "w-9 aspect-square [&_svg]:size-5",
238
- "opacity-50 cursor-pointer hover:opacity-100"
239
- ),
240
- onClick: (r) => {
241
- r.stopPropagation(), G();
242
- },
243
- children: /* @__PURE__ */ e(ne, {})
244
- }
245
- ) : /* @__PURE__ */ e(le, { className: "opacity-50 w-4 h-4" })
246
- ]
247
- }
248
- ) }),
249
- /* @__PURE__ */ e(
250
- Y,
251
- {
252
- className: "w-[var(--radix-popper-anchor-width)] max-w-none p-0",
253
- align: "start",
254
- children: /* @__PURE__ */ s($, { shouldFilter: !1, children: [
255
- /* @__PURE__ */ e(
256
- ee,
257
- {
258
- placeholder: c,
259
- value: C,
260
- onValueChange: B
261
- }
262
- ),
263
- /* @__PURE__ */ e(te, { children: /* @__PURE__ */ s(
264
- oe,
265
- {
266
- className: p(!N.length && "p-0 shadow-none"),
267
- children: [
268
- O && /* @__PURE__ */ e(J, { fullWidth: !0 }),
269
- !O && !!C && /* @__PURE__ */ e(A, { children: b ? /* @__PURE__ */ s(F, { className: "flex flex-col gap-3 py-5 px-3 items-center", children: [
270
- /* @__PURE__ */ e("span", { children: L }),
271
- typeof b == "function" ? b({
272
- setOptions: x,
273
- search: C || "",
274
- open: u,
275
- setOpen: v
276
- }) : b
277
- ] }) : /* @__PURE__ */ e(F, { children: L }) }),
278
- !O && /* @__PURE__ */ e(
279
- de,
280
- {
281
- value: t,
282
- options: N,
283
- onChangeOption: z,
284
- setOpen: v
285
- }
286
- )
287
- ]
288
- }
289
- ) })
290
- ] })
291
- }
292
- )
293
- ]
294
- }
295
- ) });
296
- }
297
- );
298
- export {
299
- St as C,
300
- I as a,
301
- M as b,
302
- de as c
303
- };
@@ -1,80 +0,0 @@
1
- import { DialogProps } from '@radix-ui/react-dialog';
2
- import * as React from 'react';
3
- declare const Command: React.ForwardRefExoticComponent<Omit<{
4
- children?: React.ReactNode;
5
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
- ref?: React.Ref<HTMLDivElement>;
7
- } & {
8
- asChild?: boolean;
9
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
10
- label?: string;
11
- shouldFilter?: boolean;
12
- filter?: (value: string, search: string, keywords?: string[]) => number;
13
- defaultValue?: string;
14
- value?: string;
15
- onValueChange?: (value: string) => void;
16
- loop?: boolean;
17
- disablePointerSelection?: boolean;
18
- vimBindings?: boolean;
19
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
- declare const CommandDialog: ({ children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
21
- declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
22
- ref?: React.Ref<HTMLInputElement>;
23
- } & {
24
- asChild?: boolean;
25
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
26
- value?: string;
27
- onValueChange?: (search: string) => void;
28
- } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
- declare const CommandList: React.ForwardRefExoticComponent<Omit<{
30
- children?: React.ReactNode;
31
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
32
- ref?: React.Ref<HTMLDivElement>;
33
- } & {
34
- asChild?: boolean;
35
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
36
- label?: string;
37
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
- declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
39
- children?: React.ReactNode;
40
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
41
- ref?: React.Ref<HTMLDivElement>;
42
- } & {
43
- asChild?: boolean;
44
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
- declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
46
- children?: React.ReactNode;
47
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
48
- ref?: React.Ref<HTMLDivElement>;
49
- } & {
50
- asChild?: boolean;
51
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
52
- heading?: React.ReactNode;
53
- value?: string;
54
- forceMount?: boolean;
55
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
- declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
57
- ref?: React.Ref<HTMLDivElement>;
58
- } & {
59
- asChild?: boolean;
60
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
61
- alwaysRender?: boolean;
62
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
63
- declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
64
- children?: React.ReactNode;
65
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
66
- ref?: React.Ref<HTMLDivElement>;
67
- } & {
68
- asChild?: boolean;
69
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
70
- disabled?: boolean;
71
- onSelect?: (value: string) => void;
72
- value?: string;
73
- keywords?: string[];
74
- forceMount?: boolean;
75
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
76
- declare const CommandShortcut: {
77
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
78
- displayName: string;
79
- };
80
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -1,116 +0,0 @@
1
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
2
- import * as m from "react";
3
- import { Command as t } from "cmdk";
4
- import { Search as p } from "lucide-react";
5
- import { cn as r } from "@oneplatformdev/utils";
6
- import { Dialog as i, DialogContent as l } from "../Dialog/Dialog.mjs";
7
- const n = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
8
- t,
9
- {
10
- ref: d,
11
- className: r(
12
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
13
- e
14
- ),
15
- ...a
16
- }
17
- ));
18
- n.displayName = t.displayName;
19
- const C = ({ children: e, ...a }) => /* @__PURE__ */ o(i, { ...a, children: /* @__PURE__ */ o(l, { className: "overflow-hidden p-0", children: /* @__PURE__ */ o(n, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), c = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ s("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
20
- /* @__PURE__ */ o(p, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
21
- /* @__PURE__ */ o(
22
- t.Input,
23
- {
24
- ref: d,
25
- className: r(
26
- "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
27
- e
28
- ),
29
- ...a
30
- }
31
- )
32
- ] }));
33
- c.displayName = t.Input.displayName;
34
- const u = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
35
- t.List,
36
- {
37
- ref: d,
38
- className: r("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
39
- ...a
40
- }
41
- ));
42
- u.displayName = t.List.displayName;
43
- const f = m.forwardRef((e, a) => /* @__PURE__ */ o(
44
- t.Empty,
45
- {
46
- ref: a,
47
- className: "py-6 text-center text-sm",
48
- ...e
49
- }
50
- ));
51
- f.displayName = t.Empty.displayName;
52
- const g = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
53
- t.Group,
54
- {
55
- ref: d,
56
- className: r(
57
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
58
- e
59
- ),
60
- ...a
61
- }
62
- ));
63
- g.displayName = t.Group.displayName;
64
- const x = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
65
- t.Separator,
66
- {
67
- ref: d,
68
- className: r("-mx-1 h-px bg-border", e),
69
- ...a
70
- }
71
- ));
72
- x.displayName = t.Separator.displayName;
73
- const h = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ o(
74
- t.Item,
75
- {
76
- ref: d,
77
- className: r(
78
- "relative flex gap-2 select-none items-center rounded-sm",
79
- "min-h-8 px-2 py-1",
80
- "[&>span]:py-1",
81
- "text-sm text-[#666A78] font-medium leading-[1.12]",
82
- "data-[selected=true]:bg-accent",
83
- "data-[selected=true]:text-[#191F35] hover:text-[#191F35]",
84
- "outline-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
85
- "cursor-pointer",
86
- e
87
- ),
88
- ...a
89
- }
90
- ));
91
- h.displayName = t.Item.displayName;
92
- const y = ({
93
- className: e,
94
- ...a
95
- }) => /* @__PURE__ */ o(
96
- "span",
97
- {
98
- className: r(
99
- "ml-auto text-xs tracking-widest text-muted-foreground",
100
- e
101
- ),
102
- ...a
103
- }
104
- );
105
- y.displayName = "CommandShortcut";
106
- export {
107
- n as Command,
108
- C as CommandDialog,
109
- f as CommandEmpty,
110
- g as CommandGroup,
111
- c as CommandInput,
112
- h as CommandItem,
113
- u as CommandList,
114
- x as CommandSeparator,
115
- y as CommandShortcut
116
- };
@@ -1 +0,0 @@
1
- export * from './Command';
package/Command/index.mjs DELETED
@@ -1,12 +0,0 @@
1
- import { Command as a, CommandDialog as n, CommandEmpty as d, CommandGroup as C, CommandInput as t, CommandItem as r, CommandList as p, CommandSeparator as e, CommandShortcut as u } from "./Command.mjs";
2
- export {
3
- a as Command,
4
- n as CommandDialog,
5
- d as CommandEmpty,
6
- C as CommandGroup,
7
- t as CommandInput,
8
- r as CommandItem,
9
- p as CommandList,
10
- e as CommandSeparator,
11
- u as CommandShortcut
12
- };
@@ -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,11 +0,0 @@
1
- import { default as React, FC } from 'react';
2
- import { Table as ReactTable } from '@tanstack/react-table';
3
-
4
- interface IProps {
5
- table: ReactTable<any>;
6
- ToolBar?: React.ReactNode;
7
- tColumns?: string;
8
- tNoResults?: string;
9
- }
10
- export declare const DataTable: FC<IProps>;
11
- export {};