@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
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ <!-- markdownlint-disable-next-line -->
2
+ <p align="center">
3
+ <a href="https://github.com/oneplatformdev/core-web/tree/test" rel="noopener" target="_blank"><img width="150" height="133" src="https://github.com/oneplatformdev/core-web/blob/test/public/one_platform_demo_logo.png" alt="OnePlatform Dev"></a>
4
+ </p>
5
+
6
+ # @oneplatformdev/ui
7
+
8
+ ## Installation
9
+ Install the package in your project directory with:
10
+
11
+ <!-- #default-branch-switch -->
12
+ npm:
13
+ ```bush
14
+ npm install @oneplatformdev/ui lucide-react
15
+ ```
16
+ yarn:
17
+ ```bush
18
+ yarn add @oneplatformdev/ui lucide-react
19
+ ```
20
+
21
+ ## Documentation (currently unavailable)
22
+
23
+ ## Examples (currently unavailable)
24
+
25
+ ## License
26
+ This project is licensed under the terms of the
27
+ [MIT license](./LICENSE).
28
+
29
+ ## Usage
30
+ ```tsx
31
+ import '@oneplatformdev/ui/index.css';
32
+ import { Button } from '@oneplatformdev/ui';
33
+ ```
@@ -0,0 +1,4 @@
1
+ import { RadioProps } from './Radio.types';
2
+ import { FC } from 'react';
3
+
4
+ export declare const Radio: FC<RadioProps>;
@@ -0,0 +1,12 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { RadioGroup as c, RadioGroupLabel as u } from "../RadioGroup/RadioGroup.mjs";
3
+ const l = (e) => {
4
+ const { options: f = [], renderOption: r, ...s } = e;
5
+ return /* @__PURE__ */ a(c, { ...s, children: f.map((t) => {
6
+ const o = /* @__PURE__ */ a(u, { ...t }, t.value);
7
+ return !r || typeof r != "function" || !(r != null && r(t, u)) ? o : r == null ? void 0 : r(t, u);
8
+ }) });
9
+ };
10
+ export {
11
+ l as Radio
12
+ };
@@ -0,0 +1,11 @@
1
+ import { RadioGroup, RadioGroupLabel } from '../RadioGroup/RadioGroup';
2
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
3
+
4
+ export interface RadioOptionProps<Value extends string | number = string> {
5
+ value: Value;
6
+ label: ReactNode;
7
+ }
8
+ export interface RadioProps extends Partial<ComponentPropsWithoutRef<typeof RadioGroup>> {
9
+ options?: RadioOptionProps[];
10
+ renderOption?: (option: RadioOptionProps, DefaultOptionComponent: FC<ComponentPropsWithoutRef<typeof RadioGroupLabel>>) => ReactNode | null;
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Radio';
2
+ export type * from './Radio.types.ts';
@@ -0,0 +1,4 @@
1
+ import { Radio as a } from "./Radio.mjs";
2
+ export {
3
+ a as Radio
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,11 @@
1
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
2
+ import * as React from 'react';
3
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const RadioGroupLabel: React.ForwardRefExoticComponent<{
6
+ label: React.ReactNode;
7
+ value: string;
8
+ } & {
9
+ children?: React.ReactNode | undefined;
10
+ } & React.RefAttributes<HTMLLabelElement>>;
11
+ export { RadioGroup, RadioGroupItem, RadioGroupLabel };
@@ -0,0 +1,49 @@
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import * as i from "@radix-ui/react-radio-group";
3
+ import { Circle as c } from "lucide-react";
4
+ import * as s from "react";
5
+ import { cn as t } from "@oneplatformdev/utils";
6
+ import { Label as p } from "../Label/Label.mjs";
7
+ const f = s.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
8
+ i.Root,
9
+ {
10
+ className: t("grid gap-0", r),
11
+ ...a,
12
+ ref: o
13
+ }
14
+ ));
15
+ f.displayName = i.Root.displayName;
16
+ const m = s.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
17
+ i.Item,
18
+ {
19
+ ref: o,
20
+ className: t(
21
+ "aspect-square size-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
22
+ r
23
+ ),
24
+ ...a,
25
+ children: /* @__PURE__ */ e(i.Indicator, { className: "flex items-center justify-center ", children: /* @__PURE__ */ e(c, { className: "size-2.5 fill-primary" }) })
26
+ }
27
+ ));
28
+ m.displayName = i.Item.displayName;
29
+ const n = s.forwardRef(({ value: r, label: a, children: o }, d) => /* @__PURE__ */ l(
30
+ p,
31
+ {
32
+ ref: d,
33
+ htmlFor: r,
34
+ className: "flex w-full items-start gap-3 font-normal py-3 cursor-pointer",
35
+ children: [
36
+ /* @__PURE__ */ e(m, { value: r, id: r }),
37
+ /* @__PURE__ */ l("div", { className: "flex flex-col w-full gap-3", children: [
38
+ /* @__PURE__ */ e("span", { className: "flex flex-col justify-start leading-[16px]", children: a }),
39
+ o
40
+ ] })
41
+ ]
42
+ }
43
+ ));
44
+ n.displayName = "RadioGroupLabel";
45
+ export {
46
+ f as RadioGroup,
47
+ m as RadioGroupItem,
48
+ n as RadioGroupLabel
49
+ };
@@ -0,0 +1 @@
1
+ export * from './RadioGroup';
@@ -0,0 +1,6 @@
1
+ import { RadioGroup as a, RadioGroupItem as p, RadioGroupLabel as d } from "./RadioGroup.mjs";
2
+ export {
3
+ a as RadioGroup,
4
+ p as RadioGroupItem,
5
+ d as RadioGroupLabel
6
+ };
@@ -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,23 @@
1
+ import * as ResizablePrimitive from "react-resizable-panels";
2
+ declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ResizablePanel: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLMapElement | HTMLAnchorElement | HTMLButtonElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
+ className?: string | undefined;
5
+ collapsedSize?: number | undefined;
6
+ collapsible?: boolean | undefined;
7
+ defaultSize?: number | undefined;
8
+ id?: string | undefined;
9
+ maxSize?: number | undefined;
10
+ minSize?: number | undefined;
11
+ onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
12
+ onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
13
+ onResize?: ResizablePrimitive.PanelOnResize | undefined;
14
+ order?: number | undefined;
15
+ style?: object | undefined;
16
+ tagName?: keyof HTMLElementTagNameMap | undefined;
17
+ } & {
18
+ children?: import('react').ReactNode;
19
+ } & import('react').RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
+ declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
21
+ withHandle?: boolean;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
@@ -0,0 +1,36 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { GripVertical as n } from "lucide-react";
3
+ import * as t from "react-resizable-panels";
4
+ import { cn as i } from "@oneplatformdev/utils";
5
+ const f = ({
6
+ className: a,
7
+ ...r
8
+ }) => /* @__PURE__ */ e(
9
+ t.PanelGroup,
10
+ {
11
+ className: i(
12
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
13
+ a
14
+ ),
15
+ ...r
16
+ }
17
+ ), d = t.Panel, p = ({
18
+ withHandle: a,
19
+ className: r,
20
+ ...l
21
+ }) => /* @__PURE__ */ e(
22
+ t.PanelResizeHandle,
23
+ {
24
+ className: i(
25
+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
26
+ r
27
+ ),
28
+ ...l,
29
+ children: a && /* @__PURE__ */ e("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ e(n, { className: "h-2.5 w-2.5" }) })
30
+ }
31
+ );
32
+ export {
33
+ p as ResizableHandle,
34
+ d as ResizablePanel,
35
+ f as ResizablePanelGroup
36
+ };
@@ -0,0 +1 @@
1
+ export * from './Resizable';
@@ -0,0 +1,6 @@
1
+ import { ResizableHandle as l, ResizablePanel as b, ResizablePanelGroup as i } from "./Resizable.mjs";
2
+ export {
3
+ l as ResizableHandle,
4
+ b as ResizablePanel,
5
+ i as ResizablePanelGroup
6
+ };
@@ -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,5 @@
1
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
2
+ import * as React from 'react';
3
+ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,51 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import * as r from "@radix-ui/react-scroll-area";
3
+ import * as t from "react";
4
+ import { cn as s } from "@oneplatformdev/utils";
5
+ const m = t.forwardRef(({ className: o, children: l, ...a }, c) => /* @__PURE__ */ i(
6
+ r.Root,
7
+ {
8
+ ref: c,
9
+ className: s(
10
+ "relative overflow-hidden pr-2",
11
+ // '[&:has([data-orientation=vertical])]:pr-2',
12
+ o
13
+ ),
14
+ ...a,
15
+ children: [
16
+ /* @__PURE__ */ e(r.Viewport, { className: "h-full w-full rounded-[inherit]", children: l }),
17
+ /* @__PURE__ */ e(d, {}),
18
+ /* @__PURE__ */ e(r.Corner, {})
19
+ ]
20
+ }
21
+ ));
22
+ m.displayName = r.Root.displayName;
23
+ const d = t.forwardRef(({ className: o, orientation: l = "vertical", ...a }, c) => /* @__PURE__ */ e(
24
+ r.ScrollAreaScrollbar,
25
+ {
26
+ ref: c,
27
+ orientation: l,
28
+ className: s(
29
+ "flex touch-none select-none transition-colors",
30
+ "p-[1px] bg-[#DCDDE1] rounded-full",
31
+ l === "vertical" && "h-full w-1.5 border-l border-l-transparent",
32
+ l === "horizontal" && "h-1.5 flex-col border-t border-t-transparent",
33
+ o
34
+ ),
35
+ ...a,
36
+ children: /* @__PURE__ */ e(
37
+ r.ScrollAreaThumb,
38
+ {
39
+ className: s(
40
+ "relative flex-1 rounded-full bg-border",
41
+ "bg-[#FCFCFC]"
42
+ )
43
+ }
44
+ )
45
+ }
46
+ ));
47
+ d.displayName = r.ScrollAreaScrollbar.displayName;
48
+ export {
49
+ m as ScrollArea,
50
+ d as ScrollBar
51
+ };
@@ -0,0 +1 @@
1
+ export * from './ScrollArea';
@@ -0,0 +1,5 @@
1
+ import { ScrollArea as o, ScrollBar as a } from "./ScrollArea.mjs";
2
+ export {
3
+ o as ScrollArea,
4
+ a as ScrollBar
5
+ };
@@ -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 { SearchProps } from './Search.types';
2
+ import { FC } from 'react';
3
+
4
+ export declare const Search: FC<SearchProps>;
@@ -0,0 +1,30 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useState as S } from "react";
3
+ import { Input as f } from "../Input/Input.mjs";
4
+ import { useDebounceCallback as v } from "@oneplatformdev/hooks";
5
+ import { cn as d } from "@oneplatformdev/utils";
6
+ const j = (t) => {
7
+ const {
8
+ search: a,
9
+ onChange: e,
10
+ onSearch: c,
11
+ placeholder: s = "Search",
12
+ className: n,
13
+ ...m
14
+ } = t, [i, l] = S(a), h = v(c, 1e3), p = (r) => {
15
+ const u = r.target.value;
16
+ l(u), e == null || e(r), h(r.target.value);
17
+ };
18
+ return /* @__PURE__ */ o("div", { className: d("space-y-4", n), children: /* @__PURE__ */ o(
19
+ f,
20
+ {
21
+ placeholder: s,
22
+ value: i,
23
+ onChange: p,
24
+ ...m
25
+ }
26
+ ) });
27
+ };
28
+ export {
29
+ j as Search
30
+ };
@@ -0,0 +1,6 @@
1
+ import { InputProps } from '../Input';
2
+
3
+ export interface SearchProps extends InputProps {
4
+ search: string;
5
+ onSearch: (value?: string) => void;
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './Search';
2
+ export { Search as default } from './Search';
3
+ export type * from './Search.types';
@@ -0,0 +1,5 @@
1
+ import { Search as r, Search as c } from "./Search.mjs";
2
+ export {
3
+ r as Search,
4
+ c as default
5
+ };
@@ -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 { SelectProps } from '../Select';
2
+
3
+ export declare const Select: <ExtendOptionData>(props: SelectProps<ExtendOptionData>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,103 @@
1
+ import { jsxs as u, jsx as i, Fragment as x } from "react/jsx-runtime";
2
+ import { createElement as f, isValidElement as S } from "react";
3
+ import { Button as y } from "../Button/Button.mjs";
4
+ import "../Button/buttonVariants.mjs";
5
+ import { SelectRoot as b, SelectContent as R, SelectTrigger as C, SelectValue as V, SelectItem as p } from "./SelectRoot.mjs";
6
+ import { isValidReactElement as k } from "@oneplatformdev/utils";
7
+ const B = (t) => {
8
+ const { placeholder: n, renderTrigger: e, slotProps: l } = t, r = /* @__PURE__ */ i(C, { ...(l == null ? void 0 : l.triggerProps) || {}, children: /* @__PURE__ */ i(V, { placeholder: n }) });
9
+ return e && typeof e == "function" && k(e(t, r)) ? e(t, r) : r;
10
+ }, d = (t) => {
11
+ const { children: n, option: e, deep: l = 0 } = t;
12
+ return /* @__PURE__ */ u(
13
+ p,
14
+ {
15
+ value: e.value,
16
+ disabled: e.disabled,
17
+ className: "cursor-pointer",
18
+ style: { paddingLeft: `calc(8px + ${(l || 0) * 8}px)` },
19
+ children: [
20
+ !n && e.label,
21
+ n && /* @__PURE__ */ i(x, { children: typeof n == "function" ? n({ ...t }) : n })
22
+ ]
23
+ },
24
+ e.value
25
+ );
26
+ }, g = (t) => {
27
+ var a, o;
28
+ const { renderOption: n, option: e, index: l, options: r, deep: m = 0, ...c } = t;
29
+ return n && typeof n == "function" && S(
30
+ n(
31
+ e,
32
+ l,
33
+ r,
34
+ { ...c, options: r },
35
+ /* @__PURE__ */ i(d, { ...t })
36
+ )
37
+ ) ? /* @__PURE__ */ i(p, { value: e.value, children: n(
38
+ e,
39
+ l,
40
+ r,
41
+ { ...c, options: r },
42
+ /* @__PURE__ */ i(d, { ...t })
43
+ ) }, e.value) : (a = e.children) != null && a.length ? /* @__PURE__ */ u(
44
+ "div",
45
+ {
46
+ className: "flex flex-col gap-1 truncate line-clamp-2",
47
+ children: [
48
+ /* @__PURE__ */ i(d, { ...t }),
49
+ (o = e.children) == null ? void 0 : o.map((s, h, v) => /* @__PURE__ */ f(
50
+ g,
51
+ {
52
+ ...t,
53
+ key: s.value,
54
+ option: s,
55
+ options: v,
56
+ index: h,
57
+ deep: (m || 0) + 1
58
+ }
59
+ ))
60
+ ]
61
+ },
62
+ e.value
63
+ ) : /* @__PURE__ */ i(d, { ...t });
64
+ }, w = (t) => {
65
+ const {
66
+ value: n,
67
+ options: e,
68
+ onChange: l,
69
+ nullable: r = !1,
70
+ clearLabel: m = "Clear",
71
+ disabled: c
72
+ } = t;
73
+ return /* @__PURE__ */ u(b, { value: n, onValueChange: l, disabled: c, children: [
74
+ /* @__PURE__ */ i(B, { ...t }),
75
+ /* @__PURE__ */ u(R, { children: [
76
+ r && /* @__PURE__ */ i(
77
+ y,
78
+ {
79
+ className: "w-full px-2",
80
+ variant: "secondary",
81
+ size: "sm",
82
+ onClick: () => {
83
+ l == null || l("");
84
+ },
85
+ children: m
86
+ }
87
+ ),
88
+ e.map((a, o) => /* @__PURE__ */ f(
89
+ g,
90
+ {
91
+ ...t,
92
+ key: a.value,
93
+ option: a,
94
+ index: o,
95
+ deep: 0
96
+ }
97
+ ))
98
+ ] })
99
+ ] });
100
+ };
101
+ export {
102
+ w as Select
103
+ };
@@ -0,0 +1,37 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+
3
+ import * as SelectPrimitive from '@radix-ui/react-select';
4
+ export interface SelectOption<ExtendOptionData = unknown> {
5
+ value: string;
6
+ label?: ReactNode;
7
+ disabled?: boolean;
8
+ data?: ExtendOptionData;
9
+ children?: SelectOption<ExtendOptionData>[];
10
+ }
11
+ export type SelectRenderTrigger<ExtendOptionData> = (props: Omit<SelectProps<ExtendOptionData>, 'renderTrigger'>, defaultComponent: ReactNode) => ReactNode;
12
+ export type SelectRenderOption<ExtendOptionData> = (option: SelectOption<ExtendOptionData>, index: number, options: SelectOption<ExtendOptionData>[], props: Omit<SelectProps<ExtendOptionData>, 'renderOption'>, defaultComponent: ReactNode) => ReactNode;
13
+ export interface SelectProps<ExtendOptionData> {
14
+ /** Render options. */
15
+ options: SelectOption<ExtendOptionData>[];
16
+ /** Current value. */
17
+ value?: SelectOption<ExtendOptionData>['value'];
18
+ /** Select placeholder string. */
19
+ placeholder?: string;
20
+ /** Select Root onValueChange handler. */
21
+ onChange?: (value: SelectOption<ExtendOptionData>['value']) => void;
22
+ /** Show reset select item button. */
23
+ disabled?: boolean;
24
+ /** Show reset select item button. */
25
+ nullable?: boolean;
26
+ /** label for nullable button. */
27
+ clearLabel?: string;
28
+ /** Render custom trigger. */
29
+ renderTrigger?: SelectRenderTrigger<ExtendOptionData>;
30
+ /** Render custom option. */
31
+ renderOption?: SelectRenderOption<ExtendOptionData>;
32
+ /** Select Slot props */
33
+ slotProps?: {
34
+ /** Select Default Trigger Props */
35
+ triggerProps?: ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>;
36
+ };
37
+ }
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import * as SelectPrimitive from '@radix-ui/react-select';
3
+ declare const SelectRoot: React.FC<SelectPrimitive.SelectProps>;
4
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export { SelectRoot, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };