@oneplatformdev/ui 0.0.1-beta.98 → 0.1.2-1

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 (444) hide show
  1. package/README.md +4 -30
  2. package/package.json +35 -92
  3. package/src/globals.css +123 -0
  4. package/Accordion/Accordion.d.ts +0 -9
  5. package/Accordion/Accordion.mjs +0 -49
  6. package/Accordion/index.d.ts +0 -1
  7. package/Accordion/index.mjs +0 -7
  8. package/Accordion/package.json +0 -7
  9. package/Alert/Alert.d.ts +0 -7
  10. package/Alert/Alert.mjs +0 -37
  11. package/Alert/alertVariants.d.ts +0 -4
  12. package/Alert/alertVariants.mjs +0 -19
  13. package/Alert/index.d.ts +0 -1
  14. package/Alert/index.mjs +0 -6
  15. package/Alert/package.json +0 -7
  16. package/AlertDialog/AlertDialog.d.ts +0 -65
  17. package/AlertDialog/AlertDialog.mjs +0 -97
  18. package/AlertDialog/AlertDialog.types.d.ts +0 -53
  19. package/AlertDialog/AlertDialogRoot.d.ts +0 -21
  20. package/AlertDialog/AlertDialogRoot.mjs +0 -114
  21. package/AlertDialog/index.d.ts +0 -3
  22. package/AlertDialog/index.mjs +0 -16
  23. package/AlertDialog/package.json +0 -7
  24. package/AreaChart/AreaChart.d.ts +0 -4
  25. package/AreaChart/AreaChart.mjs +0 -27
  26. package/AreaChart/AreaChart.types.d.ts +0 -15
  27. package/AreaChart/index.d.ts +0 -2
  28. package/AreaChart/index.mjs +0 -4
  29. package/AreaChart/package.json +0 -7
  30. package/Aside/Aside.d.ts +0 -4
  31. package/Aside/Aside.mjs +0 -23
  32. package/Aside/Aside.types.d.ts +0 -18
  33. package/Aside/AsideSidebar.d.ts +0 -3
  34. package/Aside/AsideSidebar.mjs +0 -37
  35. package/Aside/index.d.ts +0 -3
  36. package/Aside/index.mjs +0 -7
  37. package/Aside/package.json +0 -7
  38. package/AspectRatio/AspectRatio.d.ts +0 -2
  39. package/AspectRatio/AspectRatio.mjs +0 -5
  40. package/AspectRatio/index.d.ts +0 -1
  41. package/AspectRatio/index.mjs +0 -5
  42. package/AspectRatio/package.json +0 -7
  43. package/Avatar/Avatar.d.ts +0 -5
  44. package/Avatar/Avatar.mjs +0 -42
  45. package/Avatar/index.d.ts +0 -1
  46. package/Avatar/index.mjs +0 -6
  47. package/Avatar/package.json +0 -7
  48. package/Badge/Badge.d.ts +0 -5
  49. package/Badge/Badge.mjs +0 -10
  50. package/Badge/Badge.types.d.ts +0 -5
  51. package/Badge/badgeVariants.d.ts +0 -3
  52. package/Badge/badgeVariants.mjs +0 -20
  53. package/Badge/index.d.ts +0 -3
  54. package/Badge/index.mjs +0 -6
  55. package/Badge/package.json +0 -7
  56. package/Breadcrumb/Breadcrumb.d.ts +0 -19
  57. package/Breadcrumb/Breadcrumb.mjs +0 -90
  58. package/Breadcrumb/index.d.ts +0 -1
  59. package/Breadcrumb/index.mjs +0 -10
  60. package/Breadcrumb/package.json +0 -7
  61. package/Button/Button.d.ts +0 -4
  62. package/Button/Button.mjs +0 -32
  63. package/Button/Button.types.d.ts +0 -8
  64. package/Button/buttonVariants.d.ts +0 -4
  65. package/Button/buttonVariants.mjs +0 -29
  66. package/Button/index.d.ts +0 -3
  67. package/Button/index.mjs +0 -7
  68. package/Button/package.json +0 -7
  69. package/ButtonIcon/ButtonIcon.d.ts +0 -3
  70. package/ButtonIcon/ButtonIcon.mjs +0 -29
  71. package/ButtonIcon/ButtonIcon.types.d.ts +0 -7
  72. package/ButtonIcon/buttonIconVariants.d.ts +0 -7
  73. package/ButtonIcon/buttonIconVariants.mjs +0 -139
  74. package/ButtonIcon/index.d.ts +0 -3
  75. package/ButtonIcon/index.mjs +0 -7
  76. package/ButtonIcon/package.json +0 -7
  77. package/Calendar/Calendar.d.ts +0 -8
  78. package/Calendar/Calendar.mjs +0 -64
  79. package/Calendar/index.d.ts +0 -1
  80. package/Calendar/index.mjs +0 -4
  81. package/Calendar/package.json +0 -7
  82. package/Card/Card.d.ts +0 -8
  83. package/Card/Card.mjs +0 -61
  84. package/Card/index.d.ts +0 -1
  85. package/Card/index.mjs +0 -9
  86. package/Card/package.json +0 -7
  87. package/Carousel/Carousel.d.ts +0 -18
  88. package/Carousel/Carousel.mjs +0 -168
  89. package/Carousel/index.d.ts +0 -1
  90. package/Carousel/index.mjs +0 -8
  91. package/Carousel/package.json +0 -7
  92. package/Chart/Chart.d.ts +0 -62
  93. package/Chart/Chart.mjs +0 -210
  94. package/Chart/index.d.ts +0 -1
  95. package/Chart/index.mjs +0 -9
  96. package/Chart/package.json +0 -7
  97. package/Checkbox/Checkbox.d.ts +0 -5
  98. package/Checkbox/Checkbox.mjs +0 -54
  99. package/Checkbox/Checkbox.types.d.ts +0 -10
  100. package/Checkbox/index.d.ts +0 -2
  101. package/Checkbox/index.mjs +0 -5
  102. package/Checkbox/package.json +0 -7
  103. package/Collapsible/Collapsible.d.ts +0 -5
  104. package/Collapsible/Collapsible.mjs +0 -7
  105. package/Collapsible/index.d.ts +0 -1
  106. package/Collapsible/index.mjs +0 -6
  107. package/Collapsible/package.json +0 -7
  108. package/Combobox/Combobox.d.ts +0 -4
  109. package/Combobox/Combobox.mjs +0 -15
  110. package/Combobox/Combobox.types.d.ts +0 -38
  111. package/Combobox/ComboboxOptionItem.d.ts +0 -5
  112. package/Combobox/ComboboxOptionItem.mjs +0 -67
  113. package/Combobox/ComboboxOptions.d.ts +0 -4
  114. package/Combobox/ComboboxOptions.mjs +0 -12
  115. package/Combobox/index.d.ts +0 -2
  116. package/Combobox/index.mjs +0 -4
  117. package/Combobox/package.json +0 -7
  118. package/Combobox-B0sHDL7X.js +0 -301
  119. package/Command/Command.d.ts +0 -80
  120. package/Command/Command.mjs +0 -116
  121. package/Command/index.d.ts +0 -1
  122. package/Command/index.mjs +0 -12
  123. package/Command/package.json +0 -7
  124. package/DataTable/DataTable.d.ts +0 -11
  125. package/DataTable/DataTable.mjs +0 -64
  126. package/DataTable/DataTable.types.d.ts +0 -11
  127. package/DataTable/DataTableColumnFilter.d.ts +0 -4
  128. package/DataTable/DataTableColumnFilter.mjs +0 -31
  129. package/DataTable/index.d.ts +0 -2
  130. package/DataTable/index.mjs +0 -4
  131. package/DataTable/package.json +0 -7
  132. package/DataTable/useDataTable.d.ts +0 -3
  133. package/DataTable/useDataTable.mjs +0 -30
  134. package/DatePicker/DatePicker.d.ts +0 -3
  135. package/DatePicker/DatePicker.mjs +0 -699
  136. package/DatePicker/DatePicker.types.d.ts +0 -5
  137. package/DatePicker/index.d.ts +0 -3
  138. package/DatePicker/index.mjs +0 -5
  139. package/DatePicker/package.json +0 -7
  140. package/Dialog/Dialog.d.ts +0 -21
  141. package/Dialog/Dialog.mjs +0 -117
  142. package/Dialog/index.d.ts +0 -1
  143. package/Dialog/index.mjs +0 -13
  144. package/Dialog/package.json +0 -7
  145. package/Drawer/Drawer.d.ts +0 -22
  146. package/Drawer/Drawer.mjs +0 -98
  147. package/Drawer/index.d.ts +0 -1
  148. package/Drawer/index.mjs +0 -13
  149. package/Drawer/package.json +0 -7
  150. package/DropdownMenu/DropdownMenu.d.ts +0 -27
  151. package/DropdownMenu/DropdownMenu.mjs +0 -148
  152. package/DropdownMenu/index.d.ts +0 -1
  153. package/DropdownMenu/index.mjs +0 -18
  154. package/DropdownMenu/package.json +0 -7
  155. package/Dropzone/Dropzone.d.ts +0 -22
  156. package/Dropzone/Dropzone.mjs +0 -152
  157. package/Dropzone/Dropzone.types.d.ts +0 -42
  158. package/Dropzone/DropzoneFilePreview.d.ts +0 -4
  159. package/Dropzone/DropzoneFilePreview.mjs +0 -9
  160. package/Dropzone/DropzoneSinglePickPreview.d.ts +0 -10
  161. package/Dropzone/DropzoneSinglePickPreview.mjs +0 -41
  162. package/Dropzone/DropzoneUtils.d.ts +0 -5
  163. package/Dropzone/DropzoneUtils.mjs +0 -24
  164. package/Dropzone/index.d.ts +0 -2
  165. package/Dropzone/index.mjs +0 -7
  166. package/Dropzone/package.json +0 -7
  167. package/DropzoneFilePreview-Dhtv8F4u.js +0 -67
  168. package/Form/Form.d.ts +0 -23
  169. package/Form/Form.mjs +0 -98
  170. package/Form/FormRenderControl.d.ts +0 -4
  171. package/Form/FormRenderControl.mjs +0 -21
  172. package/Form/FormRenderControl.types.d.ts +0 -16
  173. package/Form/index.d.ts +0 -3
  174. package/Form/index.mjs +0 -13
  175. package/Form/package.json +0 -7
  176. package/FormCheckbox/FormCheckbox.d.ts +0 -4
  177. package/FormCheckbox/FormCheckbox.mjs +0 -30
  178. package/FormCheckbox/FormCheckbox.types.d.ts +0 -7
  179. package/FormCheckbox/index.d.ts +0 -2
  180. package/FormCheckbox/index.mjs +0 -4
  181. package/FormCheckbox/package.json +0 -7
  182. package/FormCombobox/FormCombobox.d.ts +0 -4
  183. package/FormCombobox/FormCombobox.mjs +0 -26
  184. package/FormCombobox/FormCombobox.types.d.ts +0 -6
  185. package/FormCombobox/index.d.ts +0 -2
  186. package/FormCombobox/index.mjs +0 -4
  187. package/FormCombobox/package.json +0 -7
  188. package/FormDatePicker/FormDatePicker.d.ts +0 -4
  189. package/FormDatePicker/FormDatePicker.mjs +0 -29
  190. package/FormDatePicker/FormDatePicker.types.d.ts +0 -6
  191. package/FormDatePicker/index.d.ts +0 -3
  192. package/FormDatePicker/index.mjs +0 -5
  193. package/FormDatePicker/package.json +0 -7
  194. package/FormDropzone/FormDropzone.d.ts +0 -4
  195. package/FormDropzone/FormDropzone.mjs +0 -19
  196. package/FormDropzone/FormDropzone.types.d.ts +0 -6
  197. package/FormDropzone/index.d.ts +0 -2
  198. package/FormDropzone/index.mjs +0 -4
  199. package/FormDropzone/package.json +0 -7
  200. package/FormInput/FormInput.d.ts +0 -7
  201. package/FormInput/FormInput.mjs +0 -40
  202. package/FormInput/FormInput.types.d.ts +0 -6
  203. package/FormInput/index.d.ts +0 -2
  204. package/FormInput/index.mjs +0 -4
  205. package/FormInput/package.json +0 -7
  206. package/FormRadio/FormRadio.d.ts +0 -4
  207. package/FormRadio/FormRadio.mjs +0 -40
  208. package/FormRadio/FormRadio.types.d.ts +0 -6
  209. package/FormRadio/index.d.ts +0 -2
  210. package/FormRadio/index.mjs +0 -4
  211. package/FormRadio/package.json +0 -7
  212. package/FormSelect/FormSelect.d.ts +0 -4
  213. package/FormSelect/FormSelect.mjs +0 -40
  214. package/FormSelect/FormSelect.types.d.ts +0 -6
  215. package/FormSelect/index.d.ts +0 -2
  216. package/FormSelect/index.mjs +0 -4
  217. package/FormSelect/package.json +0 -7
  218. package/FormTextarea/FormTextarea.d.ts +0 -4
  219. package/FormTextarea/FormTextarea.mjs +0 -27
  220. package/FormTextarea/FormTextarea.types.d.ts +0 -6
  221. package/FormTextarea/index.d.ts +0 -2
  222. package/FormTextarea/index.mjs +0 -4
  223. package/FormTextarea/package.json +0 -7
  224. package/Header/Header.d.ts +0 -4
  225. package/Header/Header.mjs +0 -26
  226. package/Header/Header.types.d.ts +0 -3
  227. package/Header/index.d.ts +0 -2
  228. package/Header/index.mjs +0 -5
  229. package/Header/package.json +0 -7
  230. package/HoverCard/HoverCard.d.ts +0 -6
  231. package/HoverCard/HoverCard.mjs +0 -23
  232. package/HoverCard/index.d.ts +0 -1
  233. package/HoverCard/index.mjs +0 -6
  234. package/HoverCard/package.json +0 -7
  235. package/Input/Input.d.ts +0 -6
  236. package/Input/Input.mjs +0 -73
  237. package/Input/Input.types.d.ts +0 -17
  238. package/Input/index.d.ts +0 -3
  239. package/Input/index.mjs +0 -7
  240. package/Input/inputVariants.d.ts +0 -3
  241. package/Input/inputVariants.mjs +0 -24
  242. package/Input/package.json +0 -7
  243. package/InputOTP/InputOTP.d.ts +0 -34
  244. package/InputOTP/InputOTP.mjs +0 -48
  245. package/InputOTP/index.d.ts +0 -1
  246. package/InputOTP/index.mjs +0 -7
  247. package/InputOTP/package.json +0 -7
  248. package/Label/Label.d.ts +0 -5
  249. package/Label/Label.mjs +0 -17
  250. package/Label/index.d.ts +0 -2
  251. package/Label/index.mjs +0 -6
  252. package/Label/labelVariants.d.ts +0 -1
  253. package/Label/labelVariants.mjs +0 -10
  254. package/Label/package.json +0 -7
  255. package/LazyLoader/LazyLoader.d.ts +0 -20
  256. package/LazyLoader/LazyLoader.mjs +0 -8
  257. package/LazyLoader/index.d.ts +0 -1
  258. package/LazyLoader/index.mjs +0 -5
  259. package/LazyLoader/package.json +0 -7
  260. package/LoadingMask/LoadingMask.d.ts +0 -4
  261. package/LoadingMask/LoadingMask.mjs +0 -21
  262. package/LoadingMask/LoadingMask.types.d.ts +0 -5
  263. package/LoadingMask/RenderLoadingMask.d.ts +0 -3
  264. package/LoadingMask/RenderLoadingMask.mjs +0 -108
  265. package/LoadingMask/index.d.ts +0 -3
  266. package/LoadingMask/index.mjs +0 -6
  267. package/LoadingMask/package.json +0 -7
  268. package/LoadingProgress/LoadingProgress.d.ts +0 -4
  269. package/LoadingProgress/LoadingProgress.mjs +0 -37
  270. package/LoadingProgress/LoadingProgress.types.d.ts +0 -8
  271. package/LoadingProgress/index.d.ts +0 -3
  272. package/LoadingProgress/index.mjs +0 -6
  273. package/LoadingProgress/loadingProgressVariants.d.ts +0 -4
  274. package/LoadingProgress/loadingProgressVariants.mjs +0 -24
  275. package/LoadingProgress/package.json +0 -7
  276. package/Menubar/Menubar.d.ts +0 -28
  277. package/Menubar/Menubar.mjs +0 -175
  278. package/Menubar/index.d.ts +0 -1
  279. package/Menubar/index.mjs +0 -19
  280. package/Menubar/package.json +0 -7
  281. package/NavigationMenu/NavigationMenu.d.ts +0 -11
  282. package/NavigationMenu/NavigationMenu.mjs +0 -101
  283. package/NavigationMenu/index.d.ts +0 -2
  284. package/NavigationMenu/index.mjs +0 -13
  285. package/NavigationMenu/navigationMenuVariants.d.ts +0 -1
  286. package/NavigationMenu/navigationMenuVariants.mjs +0 -7
  287. package/NavigationMenu/package.json +0 -7
  288. package/Pagination/Pagination.d.ts +0 -28
  289. package/Pagination/Pagination.mjs +0 -106
  290. package/Pagination/index.d.ts +0 -1
  291. package/Pagination/index.mjs +0 -10
  292. package/Pagination/package.json +0 -7
  293. package/Popover/Popover.d.ts +0 -7
  294. package/Popover/Popover.mjs +0 -28
  295. package/Popover/index.d.ts +0 -1
  296. package/Popover/index.mjs +0 -7
  297. package/Popover/package.json +0 -7
  298. package/Progress/Progress.d.ts +0 -4
  299. package/Progress/Progress.mjs +0 -26
  300. package/Progress/index.d.ts +0 -1
  301. package/Progress/index.mjs +0 -4
  302. package/Progress/package.json +0 -7
  303. package/Radio/Radio.d.ts +0 -4
  304. package/Radio/Radio.mjs +0 -12
  305. package/Radio/Radio.types.d.ts +0 -11
  306. package/Radio/index.d.ts +0 -2
  307. package/Radio/index.mjs +0 -4
  308. package/Radio/package.json +0 -7
  309. package/RadioGroup/RadioGroup.d.ts +0 -11
  310. package/RadioGroup/RadioGroup.mjs +0 -49
  311. package/RadioGroup/index.d.ts +0 -1
  312. package/RadioGroup/index.mjs +0 -6
  313. package/RadioGroup/package.json +0 -7
  314. package/Resizable/Resizable.d.ts +0 -23
  315. package/Resizable/Resizable.mjs +0 -36
  316. package/Resizable/index.d.ts +0 -1
  317. package/Resizable/index.mjs +0 -6
  318. package/Resizable/package.json +0 -7
  319. package/ScrollArea/ScrollArea.d.ts +0 -5
  320. package/ScrollArea/ScrollArea.mjs +0 -51
  321. package/ScrollArea/index.d.ts +0 -1
  322. package/ScrollArea/index.mjs +0 -5
  323. package/ScrollArea/package.json +0 -7
  324. package/Search/Search.d.ts +0 -4
  325. package/Search/Search.mjs +0 -30
  326. package/Search/Search.types.d.ts +0 -6
  327. package/Search/index.d.ts +0 -3
  328. package/Search/index.mjs +0 -5
  329. package/Search/package.json +0 -7
  330. package/Select/Select.d.ts +0 -3
  331. package/Select/Select.mjs +0 -103
  332. package/Select/Select.types.d.ts +0 -37
  333. package/Select/SelectRoot.d.ts +0 -13
  334. package/Select/SelectRoot.mjs +0 -126
  335. package/Select/index.d.ts +0 -3
  336. package/Select/index.mjs +0 -15
  337. package/Select/package.json +0 -7
  338. package/Separator/Separator.d.ts +0 -4
  339. package/Separator/Separator.mjs +0 -24
  340. package/Separator/index.d.ts +0 -1
  341. package/Separator/index.mjs +0 -4
  342. package/Separator/package.json +0 -7
  343. package/Sheet/Sheet.d.ts +0 -28
  344. package/Sheet/Sheet.mjs +0 -110
  345. package/Sheet/index.d.ts +0 -1
  346. package/Sheet/index.mjs +0 -13
  347. package/Sheet/package.json +0 -7
  348. package/Sidebar/Sidebar.d.ts +0 -66
  349. package/Sidebar/Sidebar.mjs +0 -543
  350. package/Sidebar/index.d.ts +0 -1
  351. package/Sidebar/index.mjs +0 -27
  352. package/Sidebar/package.json +0 -7
  353. package/Skeleton/Skeleton.d.ts +0 -4
  354. package/Skeleton/Skeleton.mjs +0 -17
  355. package/Skeleton/index.d.ts +0 -1
  356. package/Skeleton/index.mjs +0 -4
  357. package/Skeleton/package.json +0 -7
  358. package/Slider/Slider.d.ts +0 -4
  359. package/Slider/Slider.mjs +0 -23
  360. package/Slider/index.d.ts +0 -1
  361. package/Slider/index.mjs +0 -4
  362. package/Slider/package.json +0 -7
  363. package/Sonner/Sonner.d.ts +0 -5
  364. package/Sonner/Sonner.mjs +0 -25
  365. package/Sonner/index.d.ts +0 -1
  366. package/Sonner/index.mjs +0 -4
  367. package/Sonner/package.json +0 -7
  368. package/Switch/Switch.d.ts +0 -4
  369. package/Switch/Switch.mjs +0 -27
  370. package/Switch/index.d.ts +0 -1
  371. package/Switch/index.mjs +0 -4
  372. package/Switch/package.json +0 -7
  373. package/Table/Table.d.ts +0 -10
  374. package/Table/Table.mjs +0 -90
  375. package/Table/index.d.ts +0 -1
  376. package/Table/index.mjs +0 -11
  377. package/Table/package.json +0 -7
  378. package/TablePagination/TablePagination.d.ts +0 -16
  379. package/TablePagination/TablePagination.mjs +0 -74
  380. package/TablePagination/index.d.ts +0 -1
  381. package/TablePagination/index.mjs +0 -4
  382. package/TablePagination/package.json +0 -7
  383. package/Tabs/Tabs.d.ts +0 -5
  384. package/Tabs/Tabs.mjs +0 -23
  385. package/Tabs/Tabs.types.d.ts +0 -12
  386. package/Tabs/TabsRoot.d.ts +0 -7
  387. package/Tabs/TabsRoot.mjs +0 -46
  388. package/Tabs/index.d.ts +0 -2
  389. package/Tabs/index.mjs +0 -10
  390. package/Tabs/package.json +0 -7
  391. package/Textarea/Textarea.d.ts +0 -4
  392. package/Textarea/Textarea.mjs +0 -74
  393. package/Textarea/Textarea.types.d.ts +0 -18
  394. package/Textarea/index.d.ts +0 -2
  395. package/Textarea/index.mjs +0 -4
  396. package/Textarea/package.json +0 -7
  397. package/Textarea/useAutosizeTextArea.d.ts +0 -3
  398. package/Textarea/useAutosizeTextArea.mjs +0 -20
  399. package/Theme/ThemeModeToggle.d.ts +0 -8
  400. package/Theme/ThemeModeToggle.mjs +0 -48
  401. package/Theme/ThemeProvider.d.ts +0 -4
  402. package/Theme/ThemeProvider.mjs +0 -27
  403. package/Theme/index.d.ts +0 -2
  404. package/Theme/index.mjs +0 -6
  405. package/Theme/package.json +0 -7
  406. package/Toast/Toast.d.ts +0 -13
  407. package/Toast/Toast.mjs +0 -80
  408. package/Toast/Toast.types.d.ts +0 -34
  409. package/Toast/index.d.ts +0 -3
  410. package/Toast/index.mjs +0 -15
  411. package/Toast/package.json +0 -7
  412. package/Toast/toast.constants.d.ts +0 -6
  413. package/Toast/toast.constants.mjs +0 -9
  414. package/Toast/toastVariants.d.ts +0 -3
  415. package/Toast/toastVariants.mjs +0 -21
  416. package/Toast/useToast.d.ts +0 -16
  417. package/Toast/useToast.mjs +0 -101
  418. package/Toaster/Toaster.d.ts +0 -1
  419. package/Toaster/Toaster.mjs +0 -22
  420. package/Toaster/index.d.ts +0 -1
  421. package/Toaster/index.mjs +0 -4
  422. package/Toaster/package.json +0 -7
  423. package/Toggle/Toggle.d.ts +0 -12
  424. package/Toggle/Toggle.mjs +0 -37
  425. package/Toggle/index.d.ts +0 -1
  426. package/Toggle/index.mjs +0 -5
  427. package/Toggle/package.json +0 -7
  428. package/ToggleGroup/ToggleGroup.d.ts +0 -12
  429. package/ToggleGroup/ToggleGroup.mjs +0 -41
  430. package/ToggleGroup/index.d.ts +0 -1
  431. package/ToggleGroup/index.mjs +0 -5
  432. package/ToggleGroup/package.json +0 -7
  433. package/Tooltip/Tooltip.d.ts +0 -4
  434. package/Tooltip/Tooltip.mjs +0 -12
  435. package/Tooltip/Tooltip.types.d.ts +0 -8
  436. package/Tooltip/TooltipRoot.d.ts +0 -7
  437. package/Tooltip/TooltipRoot.mjs +0 -23
  438. package/Tooltip/index.d.ts +0 -3
  439. package/Tooltip/index.mjs +0 -9
  440. package/Tooltip/package.json +0 -7
  441. package/index.css +0 -1
  442. package/index.d.ts +0 -68
  443. package/index.mjs +0 -367
  444. package/tailwind.config.mjs +0 -148
@@ -1,699 +0,0 @@
1
- import { jsxs as G, jsx as d } from "react/jsx-runtime";
2
- import * as D from "react";
3
- import { format as S } from "date-fns";
4
- import { Calendar as x } from "lucide-react";
5
- import { cn as C } from "@oneplatformdev/utils";
6
- import { Button as F } from "../Button/Button.mjs";
7
- import "../Button/buttonVariants.mjs";
8
- import { Calendar as O } from "../Calendar/Calendar.mjs";
9
- import { Popover as V, PopoverTrigger as z, PopoverContent as L } from "../Popover/Popover.mjs";
10
- function w(t) {
11
- return (e = {}) => {
12
- const n = e.width ? String(e.width) : t.defaultWidth;
13
- return t.formats[n] || t.formats[t.defaultWidth];
14
- };
15
- }
16
- function m(t) {
17
- return (e, n) => {
18
- const a = n != null && n.context ? String(n.context) : "standalone";
19
- let i;
20
- if (a === "formatting" && t.formattingValues) {
21
- const r = t.defaultFormattingWidth || t.defaultWidth, l = n != null && n.width ? String(n.width) : r;
22
- i = t.formattingValues[l] || t.formattingValues[r];
23
- } else {
24
- const r = t.defaultWidth, l = n != null && n.width ? String(n.width) : t.defaultWidth;
25
- i = t.values[l] || t.values[r];
26
- }
27
- const o = t.argumentCallback ? t.argumentCallback(e) : e;
28
- return i[o];
29
- };
30
- }
31
- function f(t) {
32
- return (e, n = {}) => {
33
- const a = n.width, i = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], o = e.match(i);
34
- if (!o)
35
- return null;
36
- const r = o[0], l = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], s = Array.isArray(l) ? X(l, (h) => h.test(r)) : (
37
- // [TODO] -- I challenge you to fix the type
38
- R(l, (h) => h.test(r))
39
- );
40
- let c;
41
- c = t.valueCallback ? t.valueCallback(s) : s, c = n.valueCallback ? (
42
- // [TODO] -- I challenge you to fix the type
43
- n.valueCallback(c)
44
- ) : c;
45
- const g = e.slice(r.length);
46
- return { value: c, rest: g };
47
- };
48
- }
49
- function R(t, e) {
50
- for (const n in t)
51
- if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
52
- return n;
53
- }
54
- function X(t, e) {
55
- for (let n = 0; n < t.length; n++)
56
- if (e(t[n]))
57
- return n;
58
- }
59
- function H(t) {
60
- return (e, n = {}) => {
61
- const a = e.match(t.matchPattern);
62
- if (!a) return null;
63
- const i = a[0], o = e.match(t.parsePattern);
64
- if (!o) return null;
65
- let r = t.valueCallback ? t.valueCallback(o[0]) : o[0];
66
- r = n.valueCallback ? n.valueCallback(r) : r;
67
- const l = e.slice(i.length);
68
- return { value: r, rest: l };
69
- };
70
- }
71
- const P = Symbol.for("constructDateFrom");
72
- function k(t, e) {
73
- return typeof t == "function" ? t(e) : t && typeof t == "object" && P in t ? t[P](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
74
- }
75
- function E(t, ...e) {
76
- const n = k.bind(
77
- null,
78
- t || e.find((a) => typeof a == "object")
79
- );
80
- return e.map(n);
81
- }
82
- let T = {};
83
- function Y() {
84
- return T;
85
- }
86
- function y(t, e) {
87
- return k(e || t, t);
88
- }
89
- function p(t, e) {
90
- var l, s, c, g;
91
- const n = Y(), a = (e == null ? void 0 : e.weekStartsOn) ?? ((s = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : s.weekStartsOn) ?? n.weekStartsOn ?? ((g = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : g.weekStartsOn) ?? 0, i = y(t, e == null ? void 0 : e.in), o = i.getDay(), r = (o < a ? 7 : 0) + o - a;
92
- return i.setDate(i.getDate() - r), i.setHours(0, 0, 0, 0), i;
93
- }
94
- function N(t, e, n) {
95
- const [a, i] = E(
96
- n == null ? void 0 : n.in,
97
- t,
98
- e
99
- );
100
- return +p(a, n) == +p(i, n);
101
- }
102
- function v(t, e) {
103
- if (t.one !== void 0 && e === 1)
104
- return t.one;
105
- const n = e % 10, a = e % 100;
106
- return n === 1 && a !== 11 ? t.singularNominative.replace("{{count}}", String(e)) : n >= 2 && n <= 4 && (a < 10 || a > 20) ? t.singularGenitive.replace("{{count}}", String(e)) : t.pluralGenitive.replace("{{count}}", String(e));
107
- }
108
- function u(t) {
109
- return (e, n) => n && n.addSuffix ? n.comparison && n.comparison > 0 ? t.future ? v(t.future, e) : "за " + v(t.regular, e) : t.past ? v(t.past, e) : v(t.regular, e) + " тому" : v(t.regular, e);
110
- }
111
- const A = (t, e) => e && e.addSuffix ? e.comparison && e.comparison > 0 ? "за півхвилини" : "півхвилини тому" : "півхвилини", j = {
112
- lessThanXSeconds: u({
113
- regular: {
114
- one: "менше секунди",
115
- singularNominative: "менше {{count}} секунди",
116
- singularGenitive: "менше {{count}} секунд",
117
- pluralGenitive: "менше {{count}} секунд"
118
- },
119
- future: {
120
- one: "менше, ніж за секунду",
121
- singularNominative: "менше, ніж за {{count}} секунду",
122
- singularGenitive: "менше, ніж за {{count}} секунди",
123
- pluralGenitive: "менше, ніж за {{count}} секунд"
124
- }
125
- }),
126
- xSeconds: u({
127
- regular: {
128
- singularNominative: "{{count}} секунда",
129
- singularGenitive: "{{count}} секунди",
130
- pluralGenitive: "{{count}} секунд"
131
- },
132
- past: {
133
- singularNominative: "{{count}} секунду тому",
134
- singularGenitive: "{{count}} секунди тому",
135
- pluralGenitive: "{{count}} секунд тому"
136
- },
137
- future: {
138
- singularNominative: "за {{count}} секунду",
139
- singularGenitive: "за {{count}} секунди",
140
- pluralGenitive: "за {{count}} секунд"
141
- }
142
- }),
143
- halfAMinute: A,
144
- lessThanXMinutes: u({
145
- regular: {
146
- one: "менше хвилини",
147
- singularNominative: "менше {{count}} хвилини",
148
- singularGenitive: "менше {{count}} хвилин",
149
- pluralGenitive: "менше {{count}} хвилин"
150
- },
151
- future: {
152
- one: "менше, ніж за хвилину",
153
- singularNominative: "менше, ніж за {{count}} хвилину",
154
- singularGenitive: "менше, ніж за {{count}} хвилини",
155
- pluralGenitive: "менше, ніж за {{count}} хвилин"
156
- }
157
- }),
158
- xMinutes: u({
159
- regular: {
160
- singularNominative: "{{count}} хвилина",
161
- singularGenitive: "{{count}} хвилини",
162
- pluralGenitive: "{{count}} хвилин"
163
- },
164
- past: {
165
- singularNominative: "{{count}} хвилину тому",
166
- singularGenitive: "{{count}} хвилини тому",
167
- pluralGenitive: "{{count}} хвилин тому"
168
- },
169
- future: {
170
- singularNominative: "за {{count}} хвилину",
171
- singularGenitive: "за {{count}} хвилини",
172
- pluralGenitive: "за {{count}} хвилин"
173
- }
174
- }),
175
- aboutXHours: u({
176
- regular: {
177
- singularNominative: "близько {{count}} години",
178
- singularGenitive: "близько {{count}} годин",
179
- pluralGenitive: "близько {{count}} годин"
180
- },
181
- future: {
182
- singularNominative: "приблизно за {{count}} годину",
183
- singularGenitive: "приблизно за {{count}} години",
184
- pluralGenitive: "приблизно за {{count}} годин"
185
- }
186
- }),
187
- xHours: u({
188
- regular: {
189
- singularNominative: "{{count}} годину",
190
- singularGenitive: "{{count}} години",
191
- pluralGenitive: "{{count}} годин"
192
- }
193
- }),
194
- xDays: u({
195
- regular: {
196
- singularNominative: "{{count}} день",
197
- singularGenitive: "{{count}} днi",
198
- pluralGenitive: "{{count}} днів"
199
- }
200
- }),
201
- aboutXWeeks: u({
202
- regular: {
203
- singularNominative: "близько {{count}} тижня",
204
- singularGenitive: "близько {{count}} тижнів",
205
- pluralGenitive: "близько {{count}} тижнів"
206
- },
207
- future: {
208
- singularNominative: "приблизно за {{count}} тиждень",
209
- singularGenitive: "приблизно за {{count}} тижні",
210
- pluralGenitive: "приблизно за {{count}} тижнів"
211
- }
212
- }),
213
- xWeeks: u({
214
- regular: {
215
- singularNominative: "{{count}} тиждень",
216
- singularGenitive: "{{count}} тижні",
217
- pluralGenitive: "{{count}} тижнів"
218
- }
219
- }),
220
- aboutXMonths: u({
221
- regular: {
222
- singularNominative: "близько {{count}} місяця",
223
- singularGenitive: "близько {{count}} місяців",
224
- pluralGenitive: "близько {{count}} місяців"
225
- },
226
- future: {
227
- singularNominative: "приблизно за {{count}} місяць",
228
- singularGenitive: "приблизно за {{count}} місяці",
229
- pluralGenitive: "приблизно за {{count}} місяців"
230
- }
231
- }),
232
- xMonths: u({
233
- regular: {
234
- singularNominative: "{{count}} місяць",
235
- singularGenitive: "{{count}} місяці",
236
- pluralGenitive: "{{count}} місяців"
237
- }
238
- }),
239
- aboutXYears: u({
240
- regular: {
241
- singularNominative: "близько {{count}} року",
242
- singularGenitive: "близько {{count}} років",
243
- pluralGenitive: "близько {{count}} років"
244
- },
245
- future: {
246
- singularNominative: "приблизно за {{count}} рік",
247
- singularGenitive: "приблизно за {{count}} роки",
248
- pluralGenitive: "приблизно за {{count}} років"
249
- }
250
- }),
251
- xYears: u({
252
- regular: {
253
- singularNominative: "{{count}} рік",
254
- singularGenitive: "{{count}} роки",
255
- pluralGenitive: "{{count}} років"
256
- }
257
- }),
258
- overXYears: u({
259
- regular: {
260
- singularNominative: "більше {{count}} року",
261
- singularGenitive: "більше {{count}} років",
262
- pluralGenitive: "більше {{count}} років"
263
- },
264
- future: {
265
- singularNominative: "більше, ніж за {{count}} рік",
266
- singularGenitive: "більше, ніж за {{count}} роки",
267
- pluralGenitive: "більше, ніж за {{count}} років"
268
- }
269
- }),
270
- almostXYears: u({
271
- regular: {
272
- singularNominative: "майже {{count}} рік",
273
- singularGenitive: "майже {{count}} роки",
274
- pluralGenitive: "майже {{count}} років"
275
- },
276
- future: {
277
- singularNominative: "майже за {{count}} рік",
278
- singularGenitive: "майже за {{count}} роки",
279
- pluralGenitive: "майже за {{count}} років"
280
- }
281
- })
282
- }, _ = (t, e, n) => (n = n || {}, j[t](e, n)), q = {
283
- full: "EEEE, do MMMM y 'р.'",
284
- long: "do MMMM y 'р.'",
285
- medium: "d MMM y 'р.'",
286
- short: "dd.MM.y"
287
- }, I = {
288
- full: "H:mm:ss zzzz",
289
- long: "H:mm:ss z",
290
- medium: "H:mm:ss",
291
- short: "H:mm"
292
- }, Q = {
293
- full: "{{date}} 'о' {{time}}",
294
- long: "{{date}} 'о' {{time}}",
295
- medium: "{{date}}, {{time}}",
296
- short: "{{date}}, {{time}}"
297
- }, B = {
298
- date: w({
299
- formats: q,
300
- defaultWidth: "full"
301
- }),
302
- time: w({
303
- formats: I,
304
- defaultWidth: "full"
305
- }),
306
- dateTime: w({
307
- formats: Q,
308
- defaultWidth: "full"
309
- })
310
- }, b = [
311
- "неділю",
312
- "понеділок",
313
- "вівторок",
314
- "середу",
315
- "четвер",
316
- "п’ятницю",
317
- "суботу"
318
- ];
319
- function K(t) {
320
- const e = b[t];
321
- switch (t) {
322
- case 0:
323
- case 3:
324
- case 5:
325
- case 6:
326
- return "'у минулу " + e + " о' p";
327
- case 1:
328
- case 2:
329
- case 4:
330
- return "'у минулий " + e + " о' p";
331
- }
332
- }
333
- function M(t) {
334
- return "'у " + b[t] + " о' p";
335
- }
336
- function $(t) {
337
- const e = b[t];
338
- switch (t) {
339
- case 0:
340
- case 3:
341
- case 5:
342
- case 6:
343
- return "'у наступну " + e + " о' p";
344
- case 1:
345
- case 2:
346
- case 4:
347
- return "'у наступний " + e + " о' p";
348
- }
349
- }
350
- const J = (t, e, n) => {
351
- const a = y(t), i = a.getDay();
352
- return N(a, e, n) ? M(i) : K(i);
353
- }, U = (t, e, n) => {
354
- const a = y(t), i = a.getDay();
355
- return N(a, e, n) ? M(i) : $(i);
356
- }, Z = {
357
- lastWeek: J,
358
- yesterday: "'вчора о' p",
359
- today: "'сьогодні о' p",
360
- tomorrow: "'завтра о' p",
361
- nextWeek: U,
362
- other: "P"
363
- }, tt = (t, e, n, a) => {
364
- const i = Z[t];
365
- return typeof i == "function" ? i(e, n, a) : i;
366
- }, et = {
367
- narrow: ["до н.е.", "н.е."],
368
- abbreviated: ["до н. е.", "н. е."],
369
- wide: ["до нашої ери", "нашої ери"]
370
- }, nt = {
371
- narrow: ["1", "2", "3", "4"],
372
- abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
373
- wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"]
374
- }, at = {
375
- // ДСТУ 3582:2013
376
- narrow: ["С", "Л", "Б", "К", "Т", "Ч", "Л", "С", "В", "Ж", "Л", "Г"],
377
- abbreviated: [
378
- "січ.",
379
- "лют.",
380
- "берез.",
381
- "квіт.",
382
- "трав.",
383
- "черв.",
384
- "лип.",
385
- "серп.",
386
- "верес.",
387
- "жовт.",
388
- "листоп.",
389
- "груд."
390
- ],
391
- wide: [
392
- "січень",
393
- "лютий",
394
- "березень",
395
- "квітень",
396
- "травень",
397
- "червень",
398
- "липень",
399
- "серпень",
400
- "вересень",
401
- "жовтень",
402
- "листопад",
403
- "грудень"
404
- ]
405
- }, it = {
406
- narrow: ["С", "Л", "Б", "К", "Т", "Ч", "Л", "С", "В", "Ж", "Л", "Г"],
407
- abbreviated: [
408
- "січ.",
409
- "лют.",
410
- "берез.",
411
- "квіт.",
412
- "трав.",
413
- "черв.",
414
- "лип.",
415
- "серп.",
416
- "верес.",
417
- "жовт.",
418
- "листоп.",
419
- "груд."
420
- ],
421
- wide: [
422
- "січня",
423
- "лютого",
424
- "березня",
425
- "квітня",
426
- "травня",
427
- "червня",
428
- "липня",
429
- "серпня",
430
- "вересня",
431
- "жовтня",
432
- "листопада",
433
- "грудня"
434
- ]
435
- }, rt = {
436
- narrow: ["Н", "П", "В", "С", "Ч", "П", "С"],
437
- short: ["нд", "пн", "вт", "ср", "чт", "пт", "сб"],
438
- abbreviated: ["нед", "пон", "вів", "сер", "чтв", "птн", "суб"],
439
- wide: [
440
- "неділя",
441
- "понеділок",
442
- "вівторок",
443
- "середа",
444
- "четвер",
445
- "п’ятниця",
446
- "субота"
447
- ]
448
- }, ut = {
449
- narrow: {
450
- am: "ДП",
451
- pm: "ПП",
452
- midnight: "півн.",
453
- noon: "пол.",
454
- morning: "ранок",
455
- afternoon: "день",
456
- evening: "веч.",
457
- night: "ніч"
458
- },
459
- abbreviated: {
460
- am: "ДП",
461
- pm: "ПП",
462
- midnight: "півн.",
463
- noon: "пол.",
464
- morning: "ранок",
465
- afternoon: "день",
466
- evening: "веч.",
467
- night: "ніч"
468
- },
469
- wide: {
470
- am: "ДП",
471
- pm: "ПП",
472
- midnight: "північ",
473
- noon: "полудень",
474
- morning: "ранок",
475
- afternoon: "день",
476
- evening: "вечір",
477
- night: "ніч"
478
- }
479
- }, lt = {
480
- narrow: {
481
- am: "ДП",
482
- pm: "ПП",
483
- midnight: "півн.",
484
- noon: "пол.",
485
- morning: "ранку",
486
- afternoon: "дня",
487
- evening: "веч.",
488
- night: "ночі"
489
- },
490
- abbreviated: {
491
- am: "ДП",
492
- pm: "ПП",
493
- midnight: "півн.",
494
- noon: "пол.",
495
- morning: "ранку",
496
- afternoon: "дня",
497
- evening: "веч.",
498
- night: "ночі"
499
- },
500
- wide: {
501
- am: "ДП",
502
- pm: "ПП",
503
- midnight: "північ",
504
- noon: "полудень",
505
- morning: "ранку",
506
- afternoon: "дня",
507
- evening: "веч.",
508
- night: "ночі"
509
- }
510
- }, ot = (t, e) => {
511
- const n = String(e == null ? void 0 : e.unit), a = Number(t);
512
- let i;
513
- return n === "date" ? a === 3 || a === 23 ? i = "-є" : i = "-е" : n === "minute" || n === "second" || n === "hour" ? i = "-а" : i = "-й", a + i;
514
- }, ct = {
515
- ordinalNumber: ot,
516
- era: m({
517
- values: et,
518
- defaultWidth: "wide"
519
- }),
520
- quarter: m({
521
- values: nt,
522
- defaultWidth: "wide",
523
- argumentCallback: (t) => t - 1
524
- }),
525
- month: m({
526
- values: at,
527
- defaultWidth: "wide",
528
- formattingValues: it,
529
- defaultFormattingWidth: "wide"
530
- }),
531
- day: m({
532
- values: rt,
533
- defaultWidth: "wide"
534
- }),
535
- dayPeriod: m({
536
- values: ut,
537
- defaultWidth: "any",
538
- formattingValues: lt,
539
- defaultFormattingWidth: "wide"
540
- })
541
- }, st = /^(\d+)(-?(е|й|є|а|я))?/i, dt = /\d+/i, mt = {
542
- narrow: /^((до )?н\.?\s?е\.?)/i,
543
- abbreviated: /^((до )?н\.?\s?е\.?)/i,
544
- wide: /^(до нашої ери|нашої ери|наша ера)/i
545
- }, ft = {
546
- any: [/^д/i, /^н/i]
547
- }, vt = {
548
- narrow: /^[1234]/i,
549
- abbreviated: /^[1234](-?[иі]?й?)? кв.?/i,
550
- wide: /^[1234](-?[иі]?й?)? квартал/i
551
- }, gt = {
552
- any: [/1/i, /2/i, /3/i, /4/i]
553
- }, ht = {
554
- narrow: /^[слбктчвжг]/i,
555
- abbreviated: /^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,
556
- wide: /^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i
557
- }, wt = {
558
- narrow: [
559
- /^с/i,
560
- /^л/i,
561
- /^б/i,
562
- /^к/i,
563
- /^т/i,
564
- /^ч/i,
565
- /^л/i,
566
- /^с/i,
567
- /^в/i,
568
- /^ж/i,
569
- /^л/i,
570
- /^г/i
571
- ],
572
- any: [
573
- /^сі/i,
574
- /^лю/i,
575
- /^б/i,
576
- /^к/i,
577
- /^т/i,
578
- /^ч/i,
579
- /^лип/i,
580
- /^се/i,
581
- /^в/i,
582
- /^ж/i,
583
- /^лис/i,
584
- /^г/i
585
- ]
586
- }, yt = {
587
- narrow: /^[нпвсч]/i,
588
- short: /^(нд|пн|вт|ср|чт|пт|сб)\.?/i,
589
- abbreviated: /^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,
590
- wide: /^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i
591
- }, bt = {
592
- narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
593
- any: [/^н/i, /^п[он]/i, /^в/i, /^с[ер]/i, /^ч/i, /^п\W*?[ят]/i, /^с[уб]/i]
594
- }, Gt = {
595
- narrow: /^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,
596
- abbreviated: /^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,
597
- wide: /^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i
598
- }, Pt = {
599
- any: {
600
- am: /^дп/i,
601
- pm: /^пп/i,
602
- midnight: /^півн/i,
603
- noon: /^пол/i,
604
- morning: /^р/i,
605
- afternoon: /^д[ен]/i,
606
- evening: /^в/i,
607
- night: /^н/i
608
- }
609
- }, pt = {
610
- ordinalNumber: H({
611
- matchPattern: st,
612
- parsePattern: dt,
613
- valueCallback: (t) => parseInt(t, 10)
614
- }),
615
- era: f({
616
- matchPatterns: mt,
617
- defaultMatchWidth: "wide",
618
- parsePatterns: ft,
619
- defaultParseWidth: "any"
620
- }),
621
- quarter: f({
622
- matchPatterns: vt,
623
- defaultMatchWidth: "wide",
624
- parsePatterns: gt,
625
- defaultParseWidth: "any",
626
- valueCallback: (t) => t + 1
627
- }),
628
- month: f({
629
- matchPatterns: ht,
630
- defaultMatchWidth: "wide",
631
- parsePatterns: wt,
632
- defaultParseWidth: "any"
633
- }),
634
- day: f({
635
- matchPatterns: yt,
636
- defaultMatchWidth: "wide",
637
- parsePatterns: bt,
638
- defaultParseWidth: "any"
639
- }),
640
- dayPeriod: f({
641
- matchPatterns: Gt,
642
- defaultMatchWidth: "wide",
643
- parsePatterns: Pt,
644
- defaultParseWidth: "any"
645
- })
646
- }, W = {
647
- code: "uk",
648
- formatDistance: _,
649
- formatLong: B,
650
- formatRelative: tt,
651
- localize: ct,
652
- match: pt,
653
- options: {
654
- weekStartsOn: 1,
655
- firstWeekContainsDate: 1
656
- }
657
- }, Wt = D.forwardRef(
658
- (t, e) => {
659
- const {
660
- selectedDate: n,
661
- onDateChange: a,
662
- disabled: i = !1
663
- } = t;
664
- return /* @__PURE__ */ G(V, { children: [
665
- /* @__PURE__ */ d(z, { asChild: !0, children: /* @__PURE__ */ G(
666
- F,
667
- {
668
- ref: e,
669
- disabled: i,
670
- variant: "outline",
671
- className: C(
672
- "w-full justify-start text-left font-normal border h-10",
673
- !n && "text-muted-foreground"
674
- ),
675
- children: [
676
- n ? S(n, "LLL dd, y", { locale: W }) : /* @__PURE__ */ d("span", { children: "dd/mm/yyyy" }),
677
- /* @__PURE__ */ d(x, { className: "mr-2 h-4 w-4 ml-auto" })
678
- ]
679
- }
680
- ) }),
681
- /* @__PURE__ */ d(L, { align: "start", className: "w-auto p-0", children: /* @__PURE__ */ d(
682
- O,
683
- {
684
- mode: "single",
685
- captionLayout: "dropdown-buttons",
686
- selected: n,
687
- onSelect: a,
688
- fromYear: 1960,
689
- toYear: 2030,
690
- locale: W
691
- }
692
- ) })
693
- ] });
694
- }
695
- );
696
- Wt.displayName = "DatePicker";
697
- export {
698
- Wt as DatePicker
699
- };
@@ -1,5 +0,0 @@
1
- export interface DatePickerProps {
2
- selectedDate?: Date;
3
- onDateChange: (date: Date | undefined) => void;
4
- disabled?: boolean;
5
- }
@@ -1,3 +0,0 @@
1
- export * from './DatePicker';
2
- export { DatePicker as default } from './DatePicker';
3
- export type * from './DatePicker.types';