@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
@@ -1,65 +0,0 @@
1
- import { AlertDialogProps } from './AlertDialog.types';
2
- import { FC, PropsWithChildren } from 'react';
3
-
4
- /**
5
- * Component for show Alert Dialog.
6
- * @public
7
- * @see [Documentation](#)
8
- * @example
9
- * > Import:
10
- * ```tsx
11
- * import { AlertDialog } from '@oneplatformdev/ui/AlertDialog';
12
- * ```
13
- * > Simple example:
14
- * ```tsx
15
- * <AlertDialog
16
- * trigger={'Trigger text'} // may be any ReactNode | Button | string
17
- * variant='alert' // 'confirm' (default) | 'alert' | 'destructive'
18
- * title='Dialog title'
19
- * description='Description text...'
20
- * />
21
- * ```
22
- * > Base example:
23
- * ```tsx
24
- * <AlertDialog
25
- * trigger={<Button variant="outline">Simple Trigger</Button>}
26
- * title='Dialog title'
27
- * description='Description text...'
28
- * onCancel={(event) => console.log(event, 'Cancel')}
29
- * onConfirm={(event) => console.log(event, 'Confirm')}
30
- * />
31
- * ```
32
- * > Trigger example: Button with icon children
33
- * ```tsx
34
- * <AlertDialog
35
- * trigger={<Button variant="outline" size="icon"><PencilLine /></Button>}
36
- * title="Dialog title with icon trigger"
37
- * description="Description text..."
38
- * onCancel={(event) => console.log(event, 'Cancel')}
39
- * onConfirm={(event) => console.log(event, 'Confirm')}
40
- * />
41
- * ```
42
- *
43
- * > Full content example:
44
- * ```tsx
45
- * <AlertDialog trigger={<Button variant="outline">Full Content Trigger</Button>}>
46
- * Full Content...
47
- * </AlertDialog>
48
- * ```
49
- *
50
- * > Full control example:
51
- * ```tsx
52
- * <AlertDialog
53
- * open={true}
54
- * onOpenChange={(nextState) => console.log(nextState)}
55
- * trigger={<Button variant="outline">Control Trigger</Button>}
56
- * header={<div>Custom Header</div>}
57
- * footer={[
58
- * <Button key='cancel' variant="outline" onClick={() => {}}>On Action</Button>,
59
- * <Button key='action' variant="outline" onClick={() => {}}>On Action</Button>,
60
- * ]}
61
- * />
62
- * ```
63
- */
64
- export declare const AlertDialog: FC<PropsWithChildren<AlertDialogProps>>;
65
- export default AlertDialog;
@@ -1,97 +0,0 @@
1
- import { jsxs as g, jsx as t } from "react/jsx-runtime";
2
- import { cloneElement as a, useId as j, Children as y } from "react";
3
- import { AlertDialogRoot as E, AlertDialogContent as u, AlertDialogTrigger as v, AlertDialogHeader as f, AlertDialogTitle as B, AlertDialogDescription as R, AlertDialogFooter as A, AlertDialogAction as D, AlertDialogCancel as k } from "./AlertDialogRoot.mjs";
4
- import { isValidReactElement as s } from "@oneplatformdev/utils";
5
- const F = (o) => {
6
- const { slotProps: e = {}, children: r } = o, i = e.trigger ?? {};
7
- return s(r, v) ? a(
8
- r,
9
- {
10
- ...r.props || {},
11
- ...i
12
- }
13
- ) : /* @__PURE__ */ t(v, { asChild: !0, children: r });
14
- }, H = (o) => {
15
- const {
16
- title: e = "",
17
- description: r = "",
18
- slotProps: i = {},
19
- children: l
20
- } = o, n = i.header ?? {}, d = i.title ?? {}, c = i.description ?? {};
21
- return l ? s(l, f) ? a(
22
- l,
23
- { ...l.props || {}, ...n }
24
- ) : /* @__PURE__ */ t(f, { ...n, children: l }) : /* @__PURE__ */ g(f, { children: [
25
- e && s(e, B) ? a(
26
- e,
27
- { ...e.props || {}, ...d }
28
- ) : /* @__PURE__ */ t(B, { ...d, children: e }),
29
- r && s(r, R) ? a(
30
- r,
31
- { ...r.props || {}, ...c }
32
- ) : /* @__PURE__ */ t(R, { ...c, children: r })
33
- ] });
34
- }, I = (o) => {
35
- const {
36
- slotProps: e = {},
37
- children: r,
38
- onCancel: i,
39
- onConfirm: l,
40
- cancelLabel: n = "Cancel",
41
- actionLabel: d = "Continue",
42
- variant: c = "confirm"
43
- } = o, x = j(), m = e.footer ?? {}, T = e.cancelButton ?? {}, C = e.actionButton ?? {};
44
- return r ? s(r, A) ? a(
45
- r,
46
- { ...r.props || {}, ...m }
47
- ) : /* @__PURE__ */ t(A, { ...m, children: y.map(r, (p, b) => {
48
- if (!p || !s(p)) return;
49
- const h = p, P = a(h, { ...h.props || {}, key: h.key || `footer-${x}-action-${b}` });
50
- return s(p, D) || s(p, k) ? P : /* @__PURE__ */ t(D, { asChild: !0, children: P });
51
- }) }) : /* @__PURE__ */ g(A, { children: [
52
- c !== "alert" && /* @__PURE__ */ t(
53
- k,
54
- {
55
- variant: "ghost",
56
- onClick: i,
57
- ...T,
58
- children: n
59
- }
60
- ),
61
- /* @__PURE__ */ t(
62
- D,
63
- {
64
- onClick: l,
65
- ...C,
66
- variant: C.variant || c === "destructive" ? "destructive" : "default",
67
- children: d
68
- }
69
- )
70
- ] });
71
- }, w = (o) => {
72
- const {
73
- trigger: e,
74
- header: r,
75
- footer: i,
76
- slotProps: l = {},
77
- children: n,
78
- ...d
79
- } = o, c = l.content ?? {};
80
- return /* @__PURE__ */ g(E, { ...d, children: [
81
- /* @__PURE__ */ t(F, { ...o, children: e }),
82
- n ? s(n, u) ? a(
83
- n,
84
- {
85
- ...n.props || {},
86
- ...c
87
- }
88
- ) : /* @__PURE__ */ t(u, { ...c, children: n }) : /* @__PURE__ */ g(u, { ...c, children: [
89
- /* @__PURE__ */ t(H, { ...o, children: r }),
90
- /* @__PURE__ */ t(I, { ...o, children: i })
91
- ] })
92
- ] });
93
- };
94
- export {
95
- w as AlertDialog,
96
- w as default
97
- };
@@ -1,53 +0,0 @@
1
- import { AlertDialogTrigger, AlertDialogTitle, AlertDialogRoot, AlertDialogDescription, AlertDialogHeader, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, AlertDialogContent } from './AlertDialogRoot';
2
- import { ComponentPropsWithoutRef, ReactNode, MouseEvent } from 'react';
3
-
4
- export type AlertDialogRootProps = ComponentPropsWithoutRef<typeof AlertDialogRoot>;
5
- export type AlertDialogTriggerProps = ComponentPropsWithoutRef<typeof AlertDialogTrigger>;
6
- export type AlertDialogContentProps = ComponentPropsWithoutRef<typeof AlertDialogContent>;
7
- export type AlertDialogHeaderProps = ComponentPropsWithoutRef<typeof AlertDialogHeader>;
8
- export type AlertDialogTitleProps = ComponentPropsWithoutRef<typeof AlertDialogTitle>;
9
- export type AlertDialogDescriptionProps = ComponentPropsWithoutRef<typeof AlertDialogDescription>;
10
- export type AlertDialogFooterProps = ComponentPropsWithoutRef<typeof AlertDialogFooter>;
11
- export type AlertDialogCancelProps = ComponentPropsWithoutRef<typeof AlertDialogCancel>;
12
- export type AlertDialogActionProps = ComponentPropsWithoutRef<typeof AlertDialogAction>;
13
- export interface AlertDialogProps extends Partial<AlertDialogRootProps> {
14
- /** Alert Dialog Type. */
15
- variant?: 'confirm' | 'alert' | 'destructive';
16
- /** CancelButton label. */
17
- cancelLabel?: ReactNode;
18
- /** ActionButton label. */
19
- actionLabel?: ReactNode;
20
- /** CancelButton onClick event. */
21
- onCancel?: (event: MouseEvent<HTMLButtonElement>) => void;
22
- /** ActionButton onClick event. */
23
- onConfirm?: (event: MouseEvent<HTMLButtonElement>) => void;
24
- /** The trigger to open alert dialog. */
25
- trigger?: ReactNode;
26
- /** Alert Dialog Header. */
27
- header?: ReactNode;
28
- /** Alert Dialog Header Title. */
29
- title?: ReactNode;
30
- /** Alert Dialog Header Description. */
31
- description?: ReactNode;
32
- /** Alert Dialog Footer. */
33
- footer?: ReactNode;
34
- /** Alert Dialog Slots props. */
35
- slotProps?: {
36
- /** Alert Dialog Slot props for AlertDialogTrigger. */
37
- trigger?: AlertDialogTriggerProps;
38
- /** Alert Dialog Slot props for AlertDialogContentProps. */
39
- content?: AlertDialogContentProps;
40
- /** Alert Dialog Slot props for AlertDialogTrigger. */
41
- header?: AlertDialogHeaderProps;
42
- /** Alert Dialog Slot props for AlertDialogFooter. */
43
- footer?: AlertDialogFooterProps;
44
- /** Alert Dialog Slot props for AlertDialogTitle. */
45
- title?: AlertDialogTitleProps;
46
- /** Alert Dialog Slot props for AlertDialogDescriptionProps. */
47
- description?: AlertDialogDescriptionProps;
48
- /** Alert Dialog Slot props for AlertDialogCancelProps. */
49
- cancelButton?: AlertDialogCancelProps;
50
- /** Alert Dialog Slot props for AlertDialogActionProps. */
51
- actionButton?: AlertDialogActionProps;
52
- };
53
- }
@@ -1,21 +0,0 @@
1
- import { ButtonProps } from '../Button';
2
- import * as React from 'react';
3
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
4
- declare const AlertDialogRoot: React.FC<AlertDialogPrimitive.AlertDialogProps>;
5
- declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
7
- declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const AlertDialogHeader: {
10
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
- displayName: string;
12
- };
13
- declare const AlertDialogFooter: {
14
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
- displayName: string;
16
- };
17
- declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
- declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
- declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
20
- declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
21
- export { AlertDialogRoot, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -1,114 +0,0 @@
1
- import { jsx as l, jsxs as c } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import * as e from "@radix-ui/react-alert-dialog";
4
- import { cn as s } from "@oneplatformdev/utils";
5
- import "../Button/Button.mjs";
6
- import { buttonVariants as n } from "../Button/buttonVariants.mjs";
7
- const v = e.Root, C = e.Trigger, f = e.Portal, m = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
8
- e.Overlay,
9
- {
10
- className: s(
11
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
12
- a
13
- ),
14
- ...t,
15
- ref: o
16
- }
17
- ));
18
- m.displayName = e.Overlay.displayName;
19
- const p = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ c(f, { children: [
20
- /* @__PURE__ */ l(m, {}),
21
- /* @__PURE__ */ l(
22
- e.Content,
23
- {
24
- ref: o,
25
- className: s(
26
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
27
- a
28
- ),
29
- ...t
30
- }
31
- )
32
- ] }));
33
- p.displayName = e.Content.displayName;
34
- const g = ({
35
- className: a,
36
- ...t
37
- }) => /* @__PURE__ */ l(
38
- "div",
39
- {
40
- className: s(
41
- "w-full min-w-0 flex flex-col space-y-2 text-center sm:text-left",
42
- a
43
- ),
44
- ...t
45
- }
46
- );
47
- g.displayName = "AlertDialogHeader";
48
- const N = ({
49
- className: a,
50
- ...t
51
- }) => /* @__PURE__ */ l(
52
- "div",
53
- {
54
- className: s(
55
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
56
- a
57
- ),
58
- ...t
59
- }
60
- );
61
- N.displayName = "AlertDialogFooter";
62
- const y = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
63
- e.Title,
64
- {
65
- ref: o,
66
- className: s("text-lg font-semibold", a),
67
- ...t
68
- }
69
- ));
70
- y.displayName = e.Title.displayName;
71
- const x = i.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ l(
72
- e.Description,
73
- {
74
- ref: o,
75
- className: s("text-sm text-muted-foreground", a),
76
- ...t
77
- }
78
- ));
79
- x.displayName = e.Description.displayName;
80
- const u = i.forwardRef(({ className: a, variant: t, size: o, ...r }, d) => /* @__PURE__ */ l(
81
- e.Action,
82
- {
83
- ref: d,
84
- className: s(n({ variant: t, size: o }), a),
85
- ...r
86
- }
87
- ));
88
- u.displayName = e.Action.displayName;
89
- const A = i.forwardRef(({ className: a, variant: t = "outline", size: o, ...r }, d) => /* @__PURE__ */ l(
90
- e.Cancel,
91
- {
92
- ref: d,
93
- className: s(
94
- n({ variant: t, size: o }),
95
- "mt-2 sm:mt-0",
96
- a
97
- ),
98
- ...r
99
- }
100
- ));
101
- A.displayName = e.Cancel.displayName;
102
- export {
103
- u as AlertDialogAction,
104
- A as AlertDialogCancel,
105
- p as AlertDialogContent,
106
- x as AlertDialogDescription,
107
- N as AlertDialogFooter,
108
- g as AlertDialogHeader,
109
- m as AlertDialogOverlay,
110
- f as AlertDialogPortal,
111
- v as AlertDialogRoot,
112
- y as AlertDialogTitle,
113
- C as AlertDialogTrigger
114
- };
@@ -1,3 +0,0 @@
1
- export { AlertDialogRoot, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './AlertDialogRoot';
2
- export * from './AlertDialog';
3
- export type * from './AlertDialog.types';
@@ -1,16 +0,0 @@
1
- import { AlertDialogAction as e, AlertDialogCancel as r, AlertDialogContent as t, AlertDialogDescription as i, AlertDialogFooter as a, AlertDialogHeader as g, AlertDialogOverlay as A, AlertDialogPortal as D, AlertDialogRoot as n, AlertDialogTitle as c, AlertDialogTrigger as p } from "./AlertDialogRoot.mjs";
2
- import { AlertDialog as m } from "./AlertDialog.mjs";
3
- export {
4
- m as AlertDialog,
5
- e as AlertDialogAction,
6
- r as AlertDialogCancel,
7
- t as AlertDialogContent,
8
- i as AlertDialogDescription,
9
- a as AlertDialogFooter,
10
- g as AlertDialogHeader,
11
- A as AlertDialogOverlay,
12
- D as AlertDialogPortal,
13
- n as AlertDialogRoot,
14
- c as AlertDialogTitle,
15
- p as AlertDialogTrigger
16
- };
@@ -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 { AreaChartProps } from './AreaChart.types';
2
- import { FC } from 'react';
3
-
4
- export declare const AreaChart: FC<AreaChartProps>;
@@ -1,27 +0,0 @@
1
- import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
- import { AreaChart as s, CartesianGrid as n, XAxis as l, YAxis as h, Area as p } from "recharts";
3
- import { ChartContainer as d, ChartTooltip as f, ChartTooltipContent as c } from "../Chart/Chart.mjs";
4
- const k = ({ data: o, config: i }) => /* @__PURE__ */ t(d, { config: i, className: "h-[350px] w-full", children: /* @__PURE__ */ a(s, { data: o, width: 808, height: 350, margin: { top: 10, right: 10, left: 0, bottom: 0 }, children: [
5
- /* @__PURE__ */ t("defs", { children: Object.entries(i).map(([e, { color: r }]) => /* @__PURE__ */ a("linearGradient", { id: `${e}Gradient`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
6
- /* @__PURE__ */ t("stop", { offset: "5%", stopColor: r, stopOpacity: 0.8 }),
7
- /* @__PURE__ */ t("stop", { offset: "95%", stopColor: r, stopOpacity: 0.1 })
8
- ] }, e)) }),
9
- /* @__PURE__ */ t(n, { strokeDasharray: "none", stroke: "gray", strokeWidth: 0.5, vertical: !0, horizontal: !0 }),
10
- /* @__PURE__ */ t(l, { dataKey: "month", axisLine: !1, tickLine: !1, tick: { fontSize: 12 } }),
11
- /* @__PURE__ */ t(h, { axisLine: !1, tickLine: !1, tick: { fontSize: 12 } }),
12
- /* @__PURE__ */ t(f, { content: /* @__PURE__ */ t(c, {}) }),
13
- Object.entries(i).map(([e, { color: r }]) => /* @__PURE__ */ t(
14
- p,
15
- {
16
- type: "monotone",
17
- dataKey: e,
18
- stroke: r,
19
- fill: `url(#${e}Gradient)`,
20
- strokeWidth: 3
21
- },
22
- e
23
- ))
24
- ] }) });
25
- export {
26
- k as AreaChart
27
- };
@@ -1,15 +0,0 @@
1
- export interface AreaChartData {
2
- month: string;
3
- [key: string]: number | string;
4
- }
5
- export interface AreaChartConfigItem {
6
- label: string;
7
- color: string;
8
- }
9
- export interface AreaChartConfig {
10
- [key: string]: AreaChartConfigItem;
11
- }
12
- export interface AreaChartProps {
13
- data: AreaChartData[];
14
- config: AreaChartConfig;
15
- }
@@ -1,2 +0,0 @@
1
- export * from './AreaChart';
2
- export type * from './AreaChart.types';
@@ -1,4 +0,0 @@
1
- import { AreaChart as e } from "./AreaChart.mjs";
2
- export {
3
- e as AreaChart
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/Aside/Aside.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { AsideProps } from './Aside.types';
2
-
3
- export declare const Aside: React.FC<React.PropsWithChildren<AsideProps>>;
4
- export default Aside;
package/Aside/Aside.mjs DELETED
@@ -1,23 +0,0 @@
1
- import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { SidebarProvider as s, SidebarInset as n } from "../Sidebar/Sidebar.mjs";
3
- const c = (d) => {
4
- const {
5
- children: l,
6
- header: r,
7
- sidebar: i
8
- } = d;
9
- return /* @__PURE__ */ e(s, { children: [
10
- !!i && i,
11
- /* @__PURE__ */ e(n, { children: [
12
- !!r && r,
13
- /* @__PURE__ */ e("section", { className: "flex flex-1 flex-col gap-4 p-4 pt-0", children: [
14
- /* @__PURE__ */ o("div", { children: "test build" }),
15
- l
16
- ] })
17
- ] })
18
- ] });
19
- };
20
- export {
21
- c as Aside,
22
- c as default
23
- };
@@ -1,18 +0,0 @@
1
- import { SidebarHeader, SidebarContent, SidebarFooter, Sidebar } from '../Sidebar';
2
- import * as React from "react";
3
- export interface AsideProps {
4
- header?: React.ReactNode;
5
- sidebar?: React.ReactElement<typeof Sidebar>;
6
- }
7
- export interface AsideSidebarProps extends Partial<Omit<React.ComponentPropsWithRef<typeof Sidebar>, 'slot' | 'content'>> {
8
- header?: React.ReactNode | React.ReactElement<typeof SidebarHeader>;
9
- content?: React.ReactNode | React.ReactElement<typeof SidebarContent>;
10
- footer?: React.ReactNode | React.ReactElement<typeof SidebarFooter>;
11
- slot?: {
12
- sidebar?: React.ComponentProps<typeof Sidebar>["slot"];
13
- header?: React.ComponentPropsWithoutRef<typeof SidebarHeader>;
14
- content?: React.ComponentPropsWithoutRef<typeof SidebarContent>;
15
- footer?: React.ComponentPropsWithoutRef<typeof SidebarFooter>;
16
- };
17
- hiddenRail?: boolean;
18
- }
@@ -1,3 +0,0 @@
1
- import { AsideSidebarProps } from './Aside.types';
2
- import * as React from "react";
3
- export declare const AsideSidebar: React.FC<React.PropsWithChildren<AsideSidebarProps>>;
@@ -1,37 +0,0 @@
1
- import { jsxs as l, Fragment as S, jsx as a } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import { Sidebar as s, SidebarHeader as p, SidebarContent as m, SidebarFooter as h, SidebarRail as E } from "../Sidebar/Sidebar.mjs";
4
- function t(d, r) {
5
- return c.isValidElement(d) && d.type === r;
6
- }
7
- const R = (d) => {
8
- const {
9
- children: r,
10
- header: n,
11
- content: i,
12
- footer: o,
13
- slot: e,
14
- hiddenRail: b,
15
- ...f
16
- } = d;
17
- return /* @__PURE__ */ l(s, { collapsible: "icon", ...f, children: [
18
- r || /* @__PURE__ */ l(S, { children: [
19
- !r && n && t(n, p) ? c.cloneElement(n, {
20
- ...n.props,
21
- ...(e == null ? void 0 : e.header) || {}
22
- }) : /* @__PURE__ */ a(p, { ...(e == null ? void 0 : e.header) || {}, children: /* @__PURE__ */ a("div", { className: "grid gap-2 text-center", children: n }) }),
23
- !r && i && t(i, m) ? c.cloneElement(i, {
24
- ...i.props,
25
- ...(e == null ? void 0 : e.content) || {}
26
- }) : /* @__PURE__ */ a(m, { ...(e == null ? void 0 : e.content) || {}, children: i }),
27
- !r && o && t(o, h) ? c.cloneElement(o, {
28
- ...o.props,
29
- ...(e == null ? void 0 : e.footer) || {}
30
- }) : /* @__PURE__ */ a(h, { ...(e == null ? void 0 : e.footer) || {}, children: o })
31
- ] }),
32
- !b && /* @__PURE__ */ a(E, {})
33
- ] });
34
- };
35
- export {
36
- R as AsideSidebar
37
- };
package/Aside/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { Aside, default } from './Aside';
2
- export { AsideSidebar } from './AsideSidebar';
3
- export type * from './Aside.types';
package/Aside/index.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { Aside as r, Aside as i } from "./Aside.mjs";
2
- import { AsideSidebar as s } from "./AsideSidebar.mjs";
3
- export {
4
- r as Aside,
5
- s as AsideSidebar,
6
- i as default
7
- };
@@ -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,2 +0,0 @@
1
- import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
2
- export declare const AspectRatio: import('react').ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,5 +0,0 @@
1
- import * as t from "@radix-ui/react-aspect-ratio";
2
- const o = t.Root;
3
- export {
4
- o as AspectRatio
5
- };
@@ -1 +0,0 @@
1
- export { AspectRatio as default, AspectRatio } from './AspectRatio';
@@ -1,5 +0,0 @@
1
- import { AspectRatio as e, AspectRatio as o } from "./AspectRatio.mjs";
2
- export {
3
- e as AspectRatio,
4
- o as default
5
- };
@@ -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,5 +0,0 @@
1
- import * as React from "react";
2
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
- export declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
- export declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
- export declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
package/Avatar/Avatar.mjs DELETED
@@ -1,42 +0,0 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import * as o from "react";
3
- import * as a from "@radix-ui/react-avatar";
4
- import { cn as s } from "@oneplatformdev/utils";
5
- const t = o.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ m(
6
- a.Root,
7
- {
8
- ref: r,
9
- className: s(
10
- "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
11
- e
12
- ),
13
- ...l
14
- }
15
- ));
16
- t.displayName = a.Root.displayName;
17
- const f = o.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ m(
18
- a.Image,
19
- {
20
- ref: r,
21
- className: s("aspect-square h-full w-full", e),
22
- ...l
23
- }
24
- ));
25
- f.displayName = a.Image.displayName;
26
- const i = o.forwardRef(({ className: e, ...l }, r) => /* @__PURE__ */ m(
27
- a.Fallback,
28
- {
29
- ref: r,
30
- className: s(
31
- "flex h-full w-full items-center justify-center rounded-full bg-muted",
32
- e
33
- ),
34
- ...l
35
- }
36
- ));
37
- i.displayName = a.Fallback.displayName;
38
- export {
39
- t as Avatar,
40
- i as AvatarFallback,
41
- f as AvatarImage
42
- };
package/Avatar/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './Avatar';
package/Avatar/index.mjs DELETED
@@ -1,6 +0,0 @@
1
- import { Avatar as t, AvatarFallback as v, AvatarImage as A } from "./Avatar.mjs";
2
- export {
3
- t as Avatar,
4
- v as AvatarFallback,
5
- A as AvatarImage
6
- };