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

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