@tecsinapse/cortex-react 1.13.1 → 1.13.3-beta.0

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 (355) hide show
  1. package/dist/cjs/components/Accordion/Content.js +5 -4
  2. package/dist/cjs/components/Accordion/Face.js +6 -5
  3. package/dist/cjs/components/Accordion/Root.js +15 -12
  4. package/dist/cjs/components/Accordion/Trigger.js +49 -47
  5. package/dist/cjs/components/Avatar.js +14 -13
  6. package/dist/cjs/components/Badge.js +9 -24
  7. package/dist/cjs/components/Breadcrumbs/BreadcrumbItem.js +21 -17
  8. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.js +6 -6
  9. package/dist/cjs/components/Button.js +5 -4
  10. package/dist/cjs/components/Calendar/Calendar.js +29 -11
  11. package/dist/cjs/components/Calendar/CalendarCell.js +12 -16
  12. package/dist/cjs/components/Calendar/CalendarGrid.js +12 -5
  13. package/dist/cjs/components/Calendar/CalendarGridBodyRows.js +4 -4
  14. package/dist/cjs/components/Calendar/CalendarGridHeaderRow.js +2 -2
  15. package/dist/cjs/components/Calendar/CalendarHeader.js +27 -25
  16. package/dist/cjs/components/Calendar/RangeCalendar.js +30 -16
  17. package/dist/cjs/components/Card.js +2 -1
  18. package/dist/cjs/components/Carousel/Carousel.js +29 -23
  19. package/dist/cjs/components/Carousel/CarouselItem.js +46 -40
  20. package/dist/cjs/components/Checkbox.js +2 -1
  21. package/dist/cjs/components/ColorPicker.js +9 -5
  22. package/dist/cjs/components/{DatePicker/Content.js → Content.js} +2 -1
  23. package/dist/cjs/components/DatePicker/DateField.js +11 -10
  24. package/dist/cjs/components/DatePicker/DatePickerInput.js +60 -38
  25. package/dist/cjs/components/DatePicker/DatePickerInputBase.js +34 -29
  26. package/dist/cjs/components/DatePicker/DateRangePickerInput.js +74 -50
  27. package/dist/cjs/components/DatePicker/DateSegment.js +5 -4
  28. package/dist/cjs/components/Divider.js +2 -2
  29. package/dist/cjs/components/Drawer.js +23 -20
  30. package/dist/cjs/components/GroupButton.js +24 -24
  31. package/dist/cjs/components/Hint.js +2 -1
  32. package/dist/cjs/components/Input/Box.js +23 -19
  33. package/dist/cjs/components/Input/Face.js +5 -4
  34. package/dist/cjs/components/Input/Left.js +2 -1
  35. package/dist/cjs/components/Input/Mask.js +5 -1
  36. package/dist/cjs/components/Input/Right.js +2 -1
  37. package/dist/cjs/components/Input/Root.js +2 -1
  38. package/dist/cjs/components/Input/Search.js +8 -1
  39. package/dist/cjs/components/Input/index.js +1 -0
  40. package/dist/cjs/components/Input/masks.js +1 -0
  41. package/dist/cjs/components/Kanban.js +8 -8
  42. package/dist/cjs/components/Loading.js +21 -19
  43. package/dist/cjs/components/Masonry.js +9 -8
  44. package/dist/cjs/components/Menubar/Categories.js +6 -2
  45. package/dist/cjs/components/Menubar/Category.js +6 -2
  46. package/dist/cjs/components/Menubar/Dropdown.js +7 -5
  47. package/dist/cjs/components/Menubar/DropdownRoot.js +29 -26
  48. package/dist/cjs/components/Menubar/Header.js +10 -6
  49. package/dist/cjs/components/Menubar/IconControlSubItem.js +5 -5
  50. package/dist/cjs/components/Menubar/Item.js +25 -18
  51. package/dist/cjs/components/Menubar/ItemLink.js +6 -6
  52. package/dist/cjs/components/Menubar/Left.js +5 -5
  53. package/dist/cjs/components/Menubar/MostUsed.js +10 -3
  54. package/dist/cjs/components/Menubar/MostUsedItem.js +9 -7
  55. package/dist/cjs/components/Menubar/MostUsedList.js +7 -6
  56. package/dist/cjs/components/Menubar/Right.js +5 -5
  57. package/dist/cjs/components/Menubar/Root.js +4 -2
  58. package/dist/cjs/components/Menubar/Search.js +4 -2
  59. package/dist/cjs/components/Menubar/SubItem.js +8 -6
  60. package/dist/cjs/components/Modal.js +12 -8
  61. package/dist/cjs/components/Popover/Content.js +7 -7
  62. package/dist/cjs/components/Popover/Provider.js +6 -2
  63. package/dist/cjs/components/Popover/Root.js +2 -2
  64. package/dist/cjs/components/ProgressBar/Progress.js +3 -3
  65. package/dist/cjs/components/ProgressBar/ProgressBar.js +2 -2
  66. package/dist/cjs/components/RadioButton.js +8 -5
  67. package/dist/cjs/components/ScrollableDigitSelector.js +58 -0
  68. package/dist/cjs/components/Select/Content.js +2 -1
  69. package/dist/cjs/components/Select/CustomMultiOption.js +17 -15
  70. package/dist/cjs/components/Select/CustomOption.js +5 -4
  71. package/dist/cjs/components/Select/GroupedOptions.js +16 -9
  72. package/dist/cjs/components/Select/MultiCheckAllOptions.js +13 -9
  73. package/dist/cjs/components/Select/MultiGroupedOptions.js +22 -13
  74. package/dist/cjs/components/Select/MultiOption.js +17 -15
  75. package/dist/cjs/components/Select/MultiOptions.js +15 -8
  76. package/dist/cjs/components/Select/Option.js +5 -4
  77. package/dist/cjs/components/Select/Options.js +8 -4
  78. package/dist/cjs/components/Select/Popover.js +6 -5
  79. package/dist/cjs/components/Select/Root.js +16 -15
  80. package/dist/cjs/components/Select/SkeletonOptions.js +2 -2
  81. package/dist/cjs/components/Select/Trigger.js +34 -28
  82. package/dist/cjs/components/Skeleton.js +5 -5
  83. package/dist/cjs/components/Snackbar/BaseSnackbar.js +2 -1
  84. package/dist/cjs/components/Snackbar/DefaultSnack.js +20 -16
  85. package/dist/cjs/components/Stepper/Node.js +5 -2
  86. package/dist/cjs/components/Stepper/Root.js +5 -4
  87. package/dist/cjs/components/Table.js +12 -9
  88. package/dist/cjs/components/Tag.js +17 -14
  89. package/dist/cjs/components/TextArea/Box.js +30 -26
  90. package/dist/cjs/components/TextArea/Face.js +5 -4
  91. package/dist/cjs/components/TextArea/Left.js +2 -1
  92. package/dist/cjs/components/TextArea/Right.js +2 -1
  93. package/dist/cjs/components/TextArea/Root.js +2 -1
  94. package/dist/cjs/components/TimePicker/TimeField.js +49 -0
  95. package/dist/cjs/components/TimePicker/TimeFieldInput.js +85 -0
  96. package/dist/cjs/components/TimePicker/TimePickerInput.js +85 -0
  97. package/dist/cjs/components/TimePicker/TimePickerSelector.js +138 -0
  98. package/dist/cjs/components/Toggle.js +17 -13
  99. package/dist/cjs/components/Tooltip.js +28 -19
  100. package/dist/cjs/components/Uploader/Dropzone.js +15 -6
  101. package/dist/cjs/components/Uploader/Files.js +8 -2
  102. package/dist/cjs/components/Uploader/Modal.js +20 -14
  103. package/dist/cjs/components/Uploader/Root.js +20 -17
  104. package/dist/cjs/components/Uploader/Upload.js +41 -26
  105. package/dist/cjs/hooks/useCalendar.js +10 -2
  106. package/dist/cjs/hooks/useCalendarCell.js +17 -2
  107. package/dist/cjs/hooks/useDatePickerInput.js +11 -4
  108. package/dist/cjs/hooks/useDateRangePickerInput.js +7 -2
  109. package/dist/cjs/hooks/useNumberMask.js +1 -0
  110. package/dist/cjs/hooks/useRangeCalendar.js +7 -2
  111. package/dist/cjs/hooks/useTimePickerInput.js +45 -0
  112. package/dist/cjs/index.js +11 -2
  113. package/dist/cjs/provider/CalendarProvider.js +24 -0
  114. package/dist/cjs/provider/CategoriesContext.js +2 -1
  115. package/dist/cjs/provider/MenubarProvider.js +5 -2
  116. package/dist/cjs/provider/SnackbarProvider.js +5 -1
  117. package/dist/cjs/service/SnackbarSonner.js +2 -2
  118. package/dist/cjs/styles/calendar-cell.js +10 -5
  119. package/dist/cjs/styles/time-field-input.js +18 -0
  120. package/dist/cjs/utils/date.js +0 -5
  121. package/dist/cjs/utils/react.js +2 -1
  122. package/dist/esm/components/Accordion/Content.js +6 -5
  123. package/dist/esm/components/Accordion/Face.js +7 -6
  124. package/dist/esm/components/Accordion/Root.js +15 -12
  125. package/dist/esm/components/Accordion/Trigger.js +49 -47
  126. package/dist/esm/components/Avatar.js +17 -16
  127. package/dist/esm/components/Badge.js +9 -6
  128. package/dist/esm/components/Breadcrumbs/BreadcrumbItem.js +21 -17
  129. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +6 -6
  130. package/dist/esm/components/Button.js +6 -5
  131. package/dist/esm/components/Calendar/Calendar.js +29 -11
  132. package/dist/esm/components/Calendar/CalendarCell.js +12 -16
  133. package/dist/esm/components/Calendar/CalendarGrid.js +12 -5
  134. package/dist/esm/components/Calendar/CalendarGridBodyRows.js +4 -4
  135. package/dist/esm/components/Calendar/CalendarGridHeaderRow.js +2 -2
  136. package/dist/esm/components/Calendar/CalendarHeader.js +27 -25
  137. package/dist/esm/components/Calendar/RangeCalendar.js +30 -16
  138. package/dist/esm/components/Card.js +3 -2
  139. package/dist/esm/components/Carousel/Carousel.js +29 -23
  140. package/dist/esm/components/Carousel/CarouselItem.js +46 -40
  141. package/dist/esm/components/Checkbox.js +3 -2
  142. package/dist/esm/components/ColorPicker.js +10 -6
  143. package/dist/esm/components/Content.js +9 -0
  144. package/dist/esm/components/DatePicker/DateField.js +13 -12
  145. package/dist/esm/components/DatePicker/DatePickerInput.js +60 -38
  146. package/dist/esm/components/DatePicker/DatePickerInputBase.js +35 -30
  147. package/dist/esm/components/DatePicker/DateRangePickerInput.js +74 -50
  148. package/dist/esm/components/DatePicker/DateSegment.js +7 -6
  149. package/dist/esm/components/Divider.js +2 -2
  150. package/dist/esm/components/Drawer.js +23 -20
  151. package/dist/esm/components/GroupButton.js +24 -24
  152. package/dist/esm/components/Hint.js +3 -2
  153. package/dist/esm/components/Input/Box.js +25 -21
  154. package/dist/esm/components/Input/Face.js +10 -9
  155. package/dist/esm/components/Input/Left.js +4 -3
  156. package/dist/esm/components/Input/Mask.js +7 -3
  157. package/dist/esm/components/Input/Right.js +4 -3
  158. package/dist/esm/components/Input/Root.js +4 -3
  159. package/dist/esm/components/Input/Search.js +10 -3
  160. package/dist/esm/components/Input/index.js +1 -0
  161. package/dist/esm/components/Input/masks.js +1 -0
  162. package/dist/esm/components/Kanban.js +8 -8
  163. package/dist/esm/components/Loading.js +21 -19
  164. package/dist/esm/components/Masonry.js +12 -11
  165. package/dist/esm/components/Menubar/Categories.js +6 -2
  166. package/dist/esm/components/Menubar/Category.js +6 -2
  167. package/dist/esm/components/Menubar/Dropdown.js +7 -5
  168. package/dist/esm/components/Menubar/DropdownRoot.js +29 -26
  169. package/dist/esm/components/Menubar/Header.js +10 -6
  170. package/dist/esm/components/Menubar/IconControlSubItem.js +5 -5
  171. package/dist/esm/components/Menubar/Item.js +26 -19
  172. package/dist/esm/components/Menubar/ItemLink.js +6 -6
  173. package/dist/esm/components/Menubar/Left.js +5 -5
  174. package/dist/esm/components/Menubar/MostUsed.js +10 -3
  175. package/dist/esm/components/Menubar/MostUsedItem.js +9 -7
  176. package/dist/esm/components/Menubar/MostUsedList.js +8 -7
  177. package/dist/esm/components/Menubar/Right.js +5 -5
  178. package/dist/esm/components/Menubar/Root.js +4 -2
  179. package/dist/esm/components/Menubar/Search.js +4 -2
  180. package/dist/esm/components/Menubar/SubItem.js +8 -6
  181. package/dist/esm/components/Modal.js +13 -9
  182. package/dist/esm/components/Popover/Content.js +7 -7
  183. package/dist/esm/components/Popover/Provider.js +6 -2
  184. package/dist/esm/components/Popover/Root.js +2 -2
  185. package/dist/esm/components/ProgressBar/Progress.js +3 -3
  186. package/dist/esm/components/ProgressBar/ProgressBar.js +2 -2
  187. package/dist/esm/components/RadioButton.js +9 -6
  188. package/dist/esm/components/ScrollableDigitSelector.js +56 -0
  189. package/dist/esm/components/Select/Content.js +3 -2
  190. package/dist/esm/components/Select/CustomMultiOption.js +17 -15
  191. package/dist/esm/components/Select/CustomOption.js +6 -5
  192. package/dist/esm/components/Select/GroupedOptions.js +17 -10
  193. package/dist/esm/components/Select/MultiCheckAllOptions.js +14 -10
  194. package/dist/esm/components/Select/MultiGroupedOptions.js +23 -14
  195. package/dist/esm/components/Select/MultiOption.js +17 -15
  196. package/dist/esm/components/Select/MultiOptions.js +16 -9
  197. package/dist/esm/components/Select/Option.js +6 -5
  198. package/dist/esm/components/Select/Options.js +9 -5
  199. package/dist/esm/components/Select/Popover.js +7 -6
  200. package/dist/esm/components/Select/Root.js +17 -16
  201. package/dist/esm/components/Select/SkeletonOptions.js +2 -2
  202. package/dist/esm/components/Select/Trigger.js +35 -29
  203. package/dist/esm/components/Skeleton.js +5 -5
  204. package/dist/esm/components/Snackbar/BaseSnackbar.js +3 -2
  205. package/dist/esm/components/Snackbar/DefaultSnack.js +20 -16
  206. package/dist/esm/components/Stepper/Node.js +5 -2
  207. package/dist/esm/components/Stepper/Root.js +11 -10
  208. package/dist/esm/components/Table.js +12 -9
  209. package/dist/esm/components/Tag.js +18 -15
  210. package/dist/esm/components/TextArea/Box.js +32 -28
  211. package/dist/esm/components/TextArea/Face.js +8 -7
  212. package/dist/esm/components/TextArea/Left.js +4 -3
  213. package/dist/esm/components/TextArea/Right.js +4 -3
  214. package/dist/esm/components/TextArea/Root.js +4 -3
  215. package/dist/esm/components/TextArea/utils.js +3 -3
  216. package/dist/esm/components/TimePicker/TimeField.js +47 -0
  217. package/dist/esm/components/TimePicker/TimeFieldInput.js +83 -0
  218. package/dist/esm/components/TimePicker/TimePickerInput.js +83 -0
  219. package/dist/esm/components/TimePicker/TimePickerSelector.js +136 -0
  220. package/dist/esm/components/Toggle.js +18 -14
  221. package/dist/esm/components/Tooltip.js +29 -20
  222. package/dist/esm/components/Uploader/Dropzone.js +15 -6
  223. package/dist/esm/components/Uploader/Files.js +8 -2
  224. package/dist/esm/components/Uploader/Modal.js +20 -14
  225. package/dist/esm/components/Uploader/Root.js +20 -17
  226. package/dist/esm/components/Uploader/Upload.js +41 -26
  227. package/dist/esm/hooks/useCalendar.js +10 -2
  228. package/dist/esm/hooks/useCalendarCell.js +18 -3
  229. package/dist/esm/hooks/useDatePickerInput.js +11 -4
  230. package/dist/esm/hooks/useDateRangePickerInput.js +7 -2
  231. package/dist/esm/hooks/useNumberMask.js +1 -0
  232. package/dist/esm/hooks/useRangeCalendar.js +7 -2
  233. package/dist/esm/hooks/useTimePickerInput.js +43 -0
  234. package/dist/esm/index.js +6 -2
  235. package/dist/esm/provider/CalendarProvider.js +21 -0
  236. package/dist/esm/provider/CategoriesContext.js +3 -2
  237. package/dist/esm/provider/MenubarProvider.js +7 -4
  238. package/dist/esm/provider/SnackbarProvider.js +6 -2
  239. package/dist/esm/service/SnackbarSonner.js +2 -2
  240. package/dist/esm/styles/calendar-cell.js +10 -5
  241. package/dist/esm/styles/time-field-input.js +16 -0
  242. package/dist/esm/utils/date.js +2 -6
  243. package/dist/esm/utils/react.js +3 -2
  244. package/dist/types/components/Accordion/Content.d.ts +1 -2
  245. package/dist/types/components/Accordion/Face.d.ts +1 -2
  246. package/dist/types/components/Accordion/Root.d.ts +1 -2
  247. package/dist/types/components/Accordion/Trigger.d.ts +1 -2
  248. package/dist/types/components/Accordion/index.d.ts +4 -4
  249. package/dist/types/components/Avatar.d.ts +2 -2
  250. package/dist/types/components/Breadcrumbs/BreadcrumbItem.d.ts +2 -2
  251. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  252. package/dist/types/components/Calendar/Calendar.d.ts +3 -3
  253. package/dist/types/components/Calendar/CalendarCell.d.ts +1 -2
  254. package/dist/types/components/Calendar/CalendarGrid.d.ts +1 -2
  255. package/dist/types/components/Calendar/CalendarGridBodyRows.d.ts +1 -2
  256. package/dist/types/components/Calendar/CalendarGridHeaderRow.d.ts +1 -2
  257. package/dist/types/components/Calendar/CalendarHeader.d.ts +1 -2
  258. package/dist/types/components/Calendar/CalendarProvider.d.ts +10 -0
  259. package/dist/types/components/Calendar/RangeCalendar.d.ts +3 -3
  260. package/dist/types/components/Calendar/types.d.ts +5 -0
  261. package/dist/types/components/Carousel/Carousel.d.ts +1 -2
  262. package/dist/types/components/Carousel/CarouselItem.d.ts +1 -2
  263. package/dist/types/components/ColorPicker.d.ts +2 -2
  264. package/dist/types/components/Content.d.ts +5 -0
  265. package/dist/types/components/DatePicker/DateField.d.ts +1 -2
  266. package/dist/types/components/DatePicker/DatePickerInput.d.ts +3 -6
  267. package/dist/types/components/DatePicker/DatePickerInputBase.d.ts +1 -1
  268. package/dist/types/components/DatePicker/DateRangePickerInput.d.ts +4 -7
  269. package/dist/types/components/DatePicker/DateSegment.d.ts +1 -2
  270. package/dist/types/components/DatePicker/types.d.ts +8 -0
  271. package/dist/types/components/Divider.d.ts +2 -2
  272. package/dist/types/components/Drawer.d.ts +1 -1
  273. package/dist/types/components/GroupButton.d.ts +2 -2
  274. package/dist/types/components/Kanban.d.ts +4 -4
  275. package/dist/types/components/Loading.d.ts +1 -2
  276. package/dist/types/components/Menubar/Categories.d.ts +1 -2
  277. package/dist/types/components/Menubar/Category.d.ts +1 -2
  278. package/dist/types/components/Menubar/Dropdown.d.ts +1 -2
  279. package/dist/types/components/Menubar/DropdownRoot.d.ts +1 -2
  280. package/dist/types/components/Menubar/Header.d.ts +1 -2
  281. package/dist/types/components/Menubar/IconControlSubItem.d.ts +1 -2
  282. package/dist/types/components/Menubar/Item.d.ts +1 -2
  283. package/dist/types/components/Menubar/ItemLink.d.ts +1 -2
  284. package/dist/types/components/Menubar/Left.d.ts +1 -2
  285. package/dist/types/components/Menubar/MostUsed.d.ts +1 -2
  286. package/dist/types/components/Menubar/MostUsedItem.d.ts +1 -2
  287. package/dist/types/components/Menubar/MostUsedList.d.ts +1 -2
  288. package/dist/types/components/Menubar/Right.d.ts +1 -2
  289. package/dist/types/components/Menubar/Root.d.ts +1 -2
  290. package/dist/types/components/Menubar/Search.d.ts +1 -2
  291. package/dist/types/components/Menubar/SubItem.d.ts +1 -2
  292. package/dist/types/components/Menubar/index.d.ts +13 -13
  293. package/dist/types/components/Popover/Content.d.ts +1 -1
  294. package/dist/types/components/Popover/Provider.d.ts +2 -2
  295. package/dist/types/components/Popover/Root.d.ts +1 -1
  296. package/dist/types/components/Popover/index.d.ts +3 -3
  297. package/dist/types/components/ProgressBar/Progress.d.ts +1 -2
  298. package/dist/types/components/ProgressBar/ProgressBar.d.ts +1 -2
  299. package/dist/types/components/ScrollableDigitSelector.d.ts +9 -0
  300. package/dist/types/components/Select/Content.d.ts +1 -2
  301. package/dist/types/components/Select/CustomMultiOption.d.ts +1 -2
  302. package/dist/types/components/Select/CustomOption.d.ts +1 -2
  303. package/dist/types/components/Select/GroupedOptions.d.ts +1 -2
  304. package/dist/types/components/Select/MultiCheckAllOptions.d.ts +1 -2
  305. package/dist/types/components/Select/MultiGroupedOptions.d.ts +1 -2
  306. package/dist/types/components/Select/MultiOption.d.ts +1 -2
  307. package/dist/types/components/Select/MultiOptions.d.ts +1 -2
  308. package/dist/types/components/Select/Option.d.ts +1 -2
  309. package/dist/types/components/Select/Options.d.ts +1 -2
  310. package/dist/types/components/Select/Popover.d.ts +1 -2
  311. package/dist/types/components/Select/Root.d.ts +1 -2
  312. package/dist/types/components/Select/SkeletonOptions.d.ts +1 -2
  313. package/dist/types/components/Select/Trigger.d.ts +1 -2
  314. package/dist/types/components/Select/index.d.ts +12 -12
  315. package/dist/types/components/Skeleton.d.ts +1 -1
  316. package/dist/types/components/Snackbar/DefaultSnack.d.ts +1 -2
  317. package/dist/types/components/Stepper/Node.d.ts +1 -1
  318. package/dist/types/components/Stepper/Root.d.ts +1 -1
  319. package/dist/types/components/Stepper/index.d.ts +2 -2
  320. package/dist/types/components/Table.d.ts +8 -8
  321. package/dist/types/components/Tag.d.ts +2 -2
  322. package/dist/types/components/{TimeField → TimePicker}/TimeField.d.ts +2 -2
  323. package/dist/types/components/TimePicker/TimeFieldInput.d.ts +13 -0
  324. package/dist/types/components/TimePicker/TimePickerInput.d.ts +14 -0
  325. package/dist/types/components/TimePicker/TimePickerSelector.d.ts +13 -0
  326. package/dist/types/components/TimePicker/index.d.ts +4 -0
  327. package/dist/types/components/Uploader/Dropzone.d.ts +1 -2
  328. package/dist/types/components/Uploader/Files.d.ts +1 -2
  329. package/dist/types/components/Uploader/Root.d.ts +1 -2
  330. package/dist/types/components/Uploader/Upload.d.ts +1 -2
  331. package/dist/types/components/Uploader/index.d.ts +3 -3
  332. package/dist/types/components/index.d.ts +1 -1
  333. package/dist/types/hooks/index.d.ts +1 -0
  334. package/dist/types/hooks/useCalendar.d.ts +3 -1
  335. package/dist/types/hooks/useCalendarCell.d.ts +2 -0
  336. package/dist/types/hooks/useDatePickerInput.d.ts +3 -1
  337. package/dist/types/hooks/useDateRangePickerInput.d.ts +3 -1
  338. package/dist/types/hooks/useRangeCalendar.d.ts +3 -1
  339. package/dist/types/hooks/useTimePickerInput.d.ts +14 -0
  340. package/dist/types/provider/CalendarProvider.d.ts +10 -0
  341. package/dist/types/provider/CategoriesContext.d.ts +2 -2
  342. package/dist/types/provider/MenubarProvider.d.ts +2 -2
  343. package/dist/types/provider/SnackbarProvider.d.ts +2 -2
  344. package/dist/types/provider/index.d.ts +1 -0
  345. package/dist/types/styles/calendar-cell.d.ts +18 -3
  346. package/dist/types/styles/time-field-input.d.ts +25 -0
  347. package/package.json +2 -2
  348. package/dist/cjs/components/TimeField/TimeField.js +0 -24
  349. package/dist/cjs/components/TimeField/TimeFieldInput.js +0 -42
  350. package/dist/esm/components/DatePicker/Content.js +0 -8
  351. package/dist/esm/components/TimeField/TimeField.js +0 -22
  352. package/dist/esm/components/TimeField/TimeFieldInput.js +0 -40
  353. package/dist/types/components/DatePicker/Content.d.ts +0 -5
  354. package/dist/types/components/TimeField/TimeFieldInput.d.ts +0 -11
  355. package/dist/types/components/TimeField/index.d.ts +0 -2
@@ -1,5 +1,5 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
1
2
  import clsx from 'clsx';
2
- import React__default from 'react';
3
3
  import { LiaAngleRightSolid, LiaAngleDownSolid } from 'react-icons/lia';
4
4
  import { useAccordionContext } from './context.js';
5
5
 
@@ -29,7 +29,7 @@ const AccordionTrigger = ({
29
29
  }
30
30
  toggle?.();
31
31
  };
32
- return /* @__PURE__ */ React__default.createElement(
32
+ return /* @__PURE__ */ jsxs(
33
33
  "div",
34
34
  {
35
35
  className: clsx(
@@ -39,53 +39,55 @@ const AccordionTrigger = ({
39
39
  { "border-r flex-col px-mili": direction === "horizontal" },
40
40
  { "border-b py-mili": direction === "vertical" }
41
41
  ),
42
- onClick: action
43
- },
44
- /* @__PURE__ */ React__default.createElement(
45
- "div",
46
- {
47
- className: clsx(
48
- "rounded-mili border border-secondary-light flex align-center justify-center p-micro",
42
+ onClick: action,
43
+ children: [
44
+ /* @__PURE__ */ jsx(
45
+ "div",
49
46
  {
50
- "absolute -translate-x-micro translate-y-deca bg-white": floating && direction === "horizontal"
51
- },
47
+ className: clsx(
48
+ "rounded-mili border border-secondary-light flex align-center justify-center p-micro",
49
+ {
50
+ "absolute -translate-x-micro translate-y-deca bg-white": floating && direction === "horizontal"
51
+ },
52
+ {
53
+ "absolute -translate-y-micro translate-x-deca bg-white": floating && direction === "vertical"
54
+ },
55
+ className
56
+ ),
57
+ children: direction === "horizontal" ? /* @__PURE__ */ jsx(
58
+ LiaAngleRightSolid,
59
+ {
60
+ className: clsx(
61
+ "text-secondary-medium transition-transform duration-200",
62
+ {
63
+ "rotate-180": invertedArrow ? !open : open
64
+ }
65
+ )
66
+ }
67
+ ) : /* @__PURE__ */ jsx(
68
+ LiaAngleDownSolid,
69
+ {
70
+ className: clsx(
71
+ "text-secondary-medium transition-transform duration-200",
72
+ {
73
+ "rotate-180": invertedArrow ? !open : open
74
+ }
75
+ )
76
+ }
77
+ )
78
+ }
79
+ ),
80
+ !floating ? /* @__PURE__ */ jsx(
81
+ "span",
52
82
  {
53
- "absolute -translate-y-micro translate-x-deca bg-white": floating && direction === "vertical"
54
- },
55
- className
56
- )
57
- },
58
- direction === "horizontal" ? /* @__PURE__ */ React__default.createElement(
59
- LiaAngleRightSolid,
60
- {
61
- className: clsx(
62
- "text-secondary-medium transition-transform duration-200",
63
- {
64
- "rotate-180": invertedArrow ? !open : open
65
- }
66
- )
67
- }
68
- ) : /* @__PURE__ */ React__default.createElement(
69
- LiaAngleDownSolid,
70
- {
71
- className: clsx(
72
- "text-secondary-medium transition-transform duration-200",
73
- {
74
- "rotate-180": invertedArrow ? !open : open
75
- }
76
- )
77
- }
78
- )
79
- ),
80
- !floating ? /* @__PURE__ */ React__default.createElement(
81
- "span",
82
- {
83
- className: clsx({
84
- "-rotate-180 [writing-mode:vertical-lr]": direction === "horizontal"
85
- })
86
- },
87
- label
88
- ) : null
83
+ className: clsx({
84
+ "-rotate-180 [writing-mode:vertical-lr]": direction === "horizontal"
85
+ }),
86
+ children: label
87
+ }
88
+ ) : null
89
+ ]
90
+ }
89
91
  );
90
92
  };
91
93
 
@@ -1,32 +1,33 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import clsx from 'clsx';
2
- import React__default from 'react';
3
+ import React from 'react';
3
4
  import '@internationalized/date';
4
5
  import { getNameInitials } from '../utils/string.js';
5
6
 
6
7
  const Avatar = ({ src, name, className, ...rest }) => {
7
- const [hasError, setHasError] = React__default.useState(false);
8
- React__default.useEffect(() => {
8
+ const [hasError, setHasError] = React.useState(false);
9
+ React.useEffect(() => {
9
10
  setHasError(false);
10
11
  }, [src]);
11
- return /* @__PURE__ */ React__default.createElement(
12
+ return /* @__PURE__ */ jsx(
12
13
  "div",
13
14
  {
14
15
  ...rest,
15
16
  className: clsx(
16
17
  "rounded-pill bg-secondary-dark h-mega flex items-center justify-center cursor-pointer aspect-square",
17
18
  className
18
- )
19
- },
20
- src && !hasError ? /* @__PURE__ */ React__default.createElement(
21
- "img",
22
- {
23
- src,
24
- alt: name,
25
- className: "rounded-pill aspect-square h-mega",
26
- onError: () => setHasError(true),
27
- "data-testid": "avatar-img"
28
- }
29
- ) : /* @__PURE__ */ React__default.createElement("p", { className: "font-bold text-white text-base", "data-testid": "avatar-p" }, getNameInitials(name))
19
+ ),
20
+ children: src && !hasError ? /* @__PURE__ */ jsx(
21
+ "img",
22
+ {
23
+ src,
24
+ alt: name,
25
+ className: "rounded-pill aspect-square h-mega",
26
+ onError: () => setHasError(true),
27
+ "data-testid": "avatar-img"
28
+ }
29
+ ) : /* @__PURE__ */ jsx("p", { className: "font-bold text-white text-base", "data-testid": "avatar-p", children: getNameInitials(name) })
30
+ }
30
31
  );
31
32
  };
32
33
 
@@ -1,10 +1,10 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
1
2
  import { badge, containerBadge } from '@tecsinapse/cortex-core';
2
- import * as React from 'react';
3
3
  import { forwardRef } from 'react';
4
4
 
5
5
  const Badge = forwardRef((props, ref) => {
6
6
  const { value, variants, ...rest } = props;
7
- return /* @__PURE__ */ React.createElement(
7
+ return /* @__PURE__ */ jsx(
8
8
  "div",
9
9
  {
10
10
  ref,
@@ -12,9 +12,9 @@ const Badge = forwardRef((props, ref) => {
12
12
  className: `relative ${variants?.className}`,
13
13
  intent: variants?.intent
14
14
  }),
15
- ...rest
16
- },
17
- value
15
+ ...rest,
16
+ children: value
17
+ }
18
18
  );
19
19
  });
20
20
  function getDisplayValue(value) {
@@ -24,7 +24,10 @@ function getDisplayValue(value) {
24
24
  }
25
25
  const BadgeAnchor = forwardRef((props, ref) => {
26
26
  const { value, variants, children, ...rest } = props;
27
- return /* @__PURE__ */ React.createElement("div", { className: containerBadge() }, children, /* @__PURE__ */ React.createElement("div", { ref, className: badge(variants), ...rest }, getDisplayValue(value)));
27
+ return /* @__PURE__ */ jsxs("div", { className: containerBadge(), children: [
28
+ children,
29
+ /* @__PURE__ */ jsx("div", { ref, className: badge(variants), ...rest, children: getDisplayValue(value) })
30
+ ] });
28
31
  });
29
32
 
30
33
  export { Badge, BadgeAnchor };
@@ -1,5 +1,6 @@
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import { createElement } from 'react';
1
3
  import clsx from 'clsx';
2
- import React__default from 'react';
3
4
  import { MdOutlineKeyboardDoubleArrowRight } from 'react-icons/md';
4
5
 
5
6
  const BreadcrumbItem = ({
@@ -8,22 +9,25 @@ const BreadcrumbItem = ({
8
9
  componentProps,
9
10
  title
10
11
  }) => {
11
- return /* @__PURE__ */ React__default.createElement(Component, { ...componentProps, key: title }, /* @__PURE__ */ React__default.createElement("div", { className: "flex gap-x-mili items-center" }, /* @__PURE__ */ React__default.createElement(
12
- "p",
13
- {
14
- className: clsx(
15
- "no-underline",
16
- isLast ? "text-secondary-medium cursor-default" : "text-secondary-xdark cursor-pointer"
17
- )
18
- },
19
- title
20
- ), !isLast ? /* @__PURE__ */ React__default.createElement(
21
- MdOutlineKeyboardDoubleArrowRight,
22
- {
23
- className: "mt-[0.125rem] text-primary-medium",
24
- "data-testid": "breadcrumb-item-icon"
25
- }
26
- ) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null)));
12
+ return /* @__PURE__ */ createElement(Component, { ...componentProps, key: title }, /* @__PURE__ */ jsxs("div", { className: "flex gap-x-mili items-center", children: [
13
+ /* @__PURE__ */ jsx(
14
+ "p",
15
+ {
16
+ className: clsx(
17
+ "no-underline",
18
+ isLast ? "text-secondary-medium cursor-default" : "text-secondary-xdark cursor-pointer"
19
+ ),
20
+ children: title
21
+ }
22
+ ),
23
+ !isLast ? /* @__PURE__ */ jsx(
24
+ MdOutlineKeyboardDoubleArrowRight,
25
+ {
26
+ className: "mt-[0.125rem] text-primary-medium",
27
+ "data-testid": "breadcrumb-item-icon"
28
+ }
29
+ ) : /* @__PURE__ */ jsx(Fragment, {})
30
+ ] }));
27
31
  };
28
32
 
29
33
  export { BreadcrumbItem };
@@ -1,20 +1,20 @@
1
- import React__default from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { Card } from '../Card.js';
3
3
  import { BreadcrumbItem } from './BreadcrumbItem.js';
4
4
 
5
5
  const Breadcrumbs = (props) => {
6
6
  const { breadcrumbs, ...rest } = props;
7
- return /* @__PURE__ */ React__default.createElement(Card, { className: "flex gap-x-mili w-full items-center py-mili", ...rest }, breadcrumbs.map((item, index) => {
7
+ return /* @__PURE__ */ jsx(Card, { className: "flex gap-x-mili w-full items-center py-mili", ...rest, children: breadcrumbs.map((item, index) => {
8
8
  const isLast = index === breadcrumbs.length - 1;
9
- return /* @__PURE__ */ React__default.createElement(
9
+ return /* @__PURE__ */ jsx(
10
10
  BreadcrumbItem,
11
11
  {
12
- key: `${item.title}-${index}`,
13
12
  ...item,
14
13
  isLast
15
- }
14
+ },
15
+ `${item.title}-${index}`
16
16
  );
17
- }));
17
+ }) });
18
18
  };
19
19
 
20
20
  export { Breadcrumbs };
@@ -1,16 +1,17 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { button } from '@tecsinapse/cortex-core';
2
- import React__default, { forwardRef } from 'react';
3
+ import { forwardRef } from 'react';
3
4
 
4
5
  const Button = forwardRef((props, ref) => {
5
6
  const { variants, intent, variant, size, children, className, ...rest } = props;
6
- return /* @__PURE__ */ React__default.createElement(
7
+ return /* @__PURE__ */ jsx(
7
8
  "button",
8
9
  {
9
10
  ...rest,
10
11
  className: button({ intent, variant, size, ...variants, className }),
11
- ref
12
- },
13
- children
12
+ ref,
13
+ children
14
+ }
14
15
  );
15
16
  });
16
17
 
@@ -1,7 +1,11 @@
1
- import React__default from 'react';
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useCalendar } from '../../hooks/useCalendar.js';
3
3
  import '@internationalized/date';
4
+ import 'react';
4
5
  import 'react-aria';
6
+ import '../../provider/MenubarContext.js';
7
+ import '../../provider/SnackbarProvider.js';
8
+ import { CalendarProvider } from '../../provider/CalendarProvider.js';
5
9
  import 'react-stately';
6
10
  import '../Popover/Context.js';
7
11
  import 'react-dropzone';
@@ -11,16 +15,30 @@ import 'currency.js';
11
15
  import { CalendarGrid } from './CalendarGrid.js';
12
16
  import { CalendarHeader } from './CalendarHeader.js';
13
17
 
14
- const Calendar = ({ value, onChange }) => {
15
- const { calendarProps, title, state } = useCalendar({ value, onChange });
16
- return /* @__PURE__ */ React__default.createElement("div", { ...calendarProps, className: "calendar", "data-testid": "calendar-div" }, /* @__PURE__ */ React__default.createElement(
17
- CalendarHeader,
18
- {
19
- onClickPrevButton: () => state.focusPreviousPage(),
20
- onClickNextButton: () => state.focusNextPage(),
21
- title
22
- }
23
- ), /* @__PURE__ */ React__default.createElement(CalendarGrid, { state }));
18
+ const Calendar = ({
19
+ value,
20
+ onChange,
21
+ isTodayHighlited = true,
22
+ minValue,
23
+ maxValue
24
+ }) => {
25
+ const { calendarProps, title, state } = useCalendar({
26
+ value,
27
+ onChange,
28
+ minValue,
29
+ maxValue
30
+ });
31
+ return /* @__PURE__ */ jsx(CalendarProvider, { isTodayHighlited, children: /* @__PURE__ */ jsxs("div", { ...calendarProps, className: "calendar", "data-testid": "calendar-div", children: [
32
+ /* @__PURE__ */ jsx(
33
+ CalendarHeader,
34
+ {
35
+ onClickPrevButton: () => state.focusPreviousPage(),
36
+ onClickNextButton: () => state.focusNextPage(),
37
+ title
38
+ }
39
+ ),
40
+ /* @__PURE__ */ jsx(CalendarGrid, { state })
41
+ ] }) });
24
42
  };
25
43
 
26
44
  export { Calendar };
@@ -1,7 +1,8 @@
1
- import React__default from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import '@internationalized/date';
3
3
  import 'react-aria';
4
4
  import 'react-stately';
5
+ import 'react';
5
6
  import { useCalendarCell } from '../../hooks/useCalendarCell.js';
6
7
  import '../Popover/Context.js';
7
8
  import 'react-dropzone';
@@ -26,30 +27,25 @@ const CalendarCell = ({ state, date }) => {
26
27
  formattedDate,
27
28
  isSelectionStart,
28
29
  isSelectionEnd,
29
- inRange
30
+ inRange,
31
+ isToday,
32
+ isDisabled
30
33
  } = useCalendarCell({ state, date });
31
- return /* @__PURE__ */ React__default.createElement(
34
+ return /* @__PURE__ */ jsx(
32
35
  Td,
33
36
  {
34
37
  ...cellProps,
35
38
  "data-testid": "calendar-cell-td",
36
39
  className: cell({
37
- isOutsideVisibleRange,
40
+ isDisabled: isOutsideVisibleRange || isDisabled,
38
41
  isSelected,
39
42
  isSelectionStart,
40
43
  isSelectionEnd,
41
- inRange
42
- })
43
- },
44
- /* @__PURE__ */ React__default.createElement(
45
- "div",
46
- {
47
- ...buttonProps,
48
- ref,
49
- className: button({ isOutsideVisibleRange })
50
- },
51
- formattedDate
52
- )
44
+ inRange,
45
+ isToday
46
+ }),
47
+ children: /* @__PURE__ */ jsx("div", { ...buttonProps, ref, className: button({ isDisabled }), children: formattedDate })
48
+ }
53
49
  );
54
50
  };
55
51
 
@@ -1,7 +1,11 @@
1
- import React__default from 'react';
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import '@internationalized/date';
3
3
  import 'react-aria';
4
4
  import 'react-stately';
5
+ import 'react';
6
+ import '../../provider/MenubarContext.js';
7
+ import '../../provider/SnackbarProvider.js';
8
+ import '../../provider/CalendarProvider.js';
5
9
  import { useCalendarGrid } from '../../hooks/useCalendarGrid.js';
6
10
  import '../Popover/Context.js';
7
11
  import 'react-dropzone';
@@ -13,13 +17,16 @@ import { CalendarGridHeaderRow } from './CalendarGridHeaderRow.js';
13
17
 
14
18
  const CalendarGrid = ({ state }) => {
15
19
  const { gridProps, headerProps, weekDays } = useCalendarGrid({ state });
16
- return /* @__PURE__ */ React__default.createElement(
20
+ return /* @__PURE__ */ jsx(
17
21
  "div",
18
22
  {
19
23
  className: "bg-white rounded-micro px-deca py-mili",
20
- "data-testid": "calendar-grid"
21
- },
22
- /* @__PURE__ */ React__default.createElement("table", { ...gridProps, className: "border-separate border-spacing-y-nano" }, /* @__PURE__ */ React__default.createElement("thead", { ...headerProps }, /* @__PURE__ */ React__default.createElement(CalendarGridHeaderRow, { weekDays })), /* @__PURE__ */ React__default.createElement("tbody", null, /* @__PURE__ */ React__default.createElement(CalendarGridBodyRows, { state })))
24
+ "data-testid": "calendar-grid",
25
+ children: /* @__PURE__ */ jsxs("table", { ...gridProps, className: "border-separate border-spacing-y-nano", children: [
26
+ /* @__PURE__ */ jsx("thead", { ...headerProps, children: /* @__PURE__ */ jsx(CalendarGridHeaderRow, { weekDays }) }),
27
+ /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx(CalendarGridBodyRows, { state }) })
28
+ ] })
29
+ }
23
30
  );
24
31
  };
25
32
 
@@ -1,10 +1,10 @@
1
- import React__default from 'react';
1
+ import { jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { CalendarCell } from './CalendarCell.js';
3
3
 
4
4
  const CalendarGridBodyRows = ({ state }) => {
5
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, [...new Array(6).keys()].map((weekIndex) => /* @__PURE__ */ React__default.createElement("tr", { key: weekIndex, className: "shadow-0 px-deca" }, state.getDatesInWeek(weekIndex).map((date, i) => {
6
- return date ? /* @__PURE__ */ React__default.createElement(CalendarCell, { key: i, state, date }) : /* @__PURE__ */ React__default.createElement("td", { key: i });
7
- }))));
5
+ return /* @__PURE__ */ jsx(Fragment, { children: [...new Array(6).keys()].map((weekIndex) => /* @__PURE__ */ jsx("tr", { className: "shadow-0 px-deca", children: state.getDatesInWeek(weekIndex).map((date, i) => {
6
+ return date ? /* @__PURE__ */ jsx(CalendarCell, { state, date }, i) : /* @__PURE__ */ jsx("td", {}, i);
7
+ }) }, weekIndex)) });
8
8
  };
9
9
 
10
10
  export { CalendarGridBodyRows };
@@ -1,10 +1,10 @@
1
- import React__default from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { THeadCell } from '../Table.js';
3
3
 
4
4
  const CalendarGridHeaderRow = ({
5
5
  weekDays
6
6
  }) => {
7
- return /* @__PURE__ */ React__default.createElement("tr", { "data-testid": "calendar-grid-header-row" }, weekDays.map((day, index) => /* @__PURE__ */ React__default.createElement(THeadCell, { key: index }, day)));
7
+ return /* @__PURE__ */ jsx("tr", { "data-testid": "calendar-grid-header-row", children: weekDays.map((day, index) => /* @__PURE__ */ jsx(THeadCell, { className: "w-11 h-11 aspect-square", children: day }, index)) });
8
8
  };
9
9
 
10
10
  export { CalendarGridHeaderRow };
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { FaChevronLeft, FaChevronRight } from 'react-icons/fa';
3
3
  import { Button } from '../Button.js';
4
4
 
@@ -7,33 +7,35 @@ const CalendarHeader = ({
7
7
  onClickNextButton,
8
8
  title
9
9
  }) => {
10
- return /* @__PURE__ */ React__default.createElement(
10
+ return /* @__PURE__ */ jsxs(
11
11
  "div",
12
12
  {
13
13
  className: "flex flex-row justify-between items-center gap-x-deca bg-miscellaneous-body p-mili",
14
- "data-testid": "calendar-header"
15
- },
16
- /* @__PURE__ */ React__default.createElement(
17
- Button,
18
- {
19
- onClick: onClickPrevButton,
20
- variants: { variant: "text", intent: "secondary", size: "small" },
21
- "data-testid": "calendar-header-prev-button",
22
- type: "button"
23
- },
24
- /* @__PURE__ */ React__default.createElement(FaChevronLeft, null)
25
- ),
26
- /* @__PURE__ */ React__default.createElement("span", { className: "font-bold capitalize" }, title),
27
- /* @__PURE__ */ React__default.createElement(
28
- Button,
29
- {
30
- onClick: onClickNextButton,
31
- variants: { variant: "text", intent: "secondary", size: "small" },
32
- "data-testid": "calendar-header-next-button",
33
- type: "button"
34
- },
35
- /* @__PURE__ */ React__default.createElement(FaChevronRight, null)
36
- )
14
+ "data-testid": "calendar-header",
15
+ children: [
16
+ /* @__PURE__ */ jsx(
17
+ Button,
18
+ {
19
+ onClick: onClickPrevButton,
20
+ variants: { variant: "text", intent: "secondary", size: "small" },
21
+ "data-testid": "calendar-header-prev-button",
22
+ type: "button",
23
+ children: /* @__PURE__ */ jsx(FaChevronLeft, {})
24
+ }
25
+ ),
26
+ /* @__PURE__ */ jsx("span", { className: "font-bold capitalize", children: title }),
27
+ /* @__PURE__ */ jsx(
28
+ Button,
29
+ {
30
+ onClick: onClickNextButton,
31
+ variants: { variant: "text", intent: "secondary", size: "small" },
32
+ "data-testid": "calendar-header-next-button",
33
+ type: "button",
34
+ children: /* @__PURE__ */ jsx(FaChevronRight, {})
35
+ }
36
+ )
37
+ ]
38
+ }
37
39
  );
38
40
  };
39
41
 
@@ -1,7 +1,11 @@
1
- import React__default from 'react';
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import '@internationalized/date';
3
3
  import 'react-aria';
4
4
  import 'react-stately';
5
+ import 'react';
6
+ import '../../provider/MenubarContext.js';
7
+ import '../../provider/SnackbarProvider.js';
8
+ import { CalendarProvider } from '../../provider/CalendarProvider.js';
5
9
  import '../Popover/Context.js';
6
10
  import 'react-dropzone';
7
11
  import 'uuid';
@@ -11,29 +15,39 @@ import { useRangeCalendar } from '../../hooks/useRangeCalendar.js';
11
15
  import { CalendarGrid } from './CalendarGrid.js';
12
16
  import { CalendarHeader } from './CalendarHeader.js';
13
17
 
14
- const RangeCalendar = ({ value, onChange }) => {
18
+ const RangeCalendar = ({
19
+ value,
20
+ onChange,
21
+ isTodayHighlited = true,
22
+ minValue,
23
+ maxValue
24
+ }) => {
15
25
  const { calendarProps, state, title, ref } = useRangeCalendar({
16
26
  value,
17
- onChange
27
+ onChange,
28
+ minValue,
29
+ maxValue
18
30
  });
19
- return /* @__PURE__ */ React__default.createElement(
31
+ return /* @__PURE__ */ jsx(CalendarProvider, { isTodayHighlited, children: /* @__PURE__ */ jsxs(
20
32
  "div",
21
33
  {
22
34
  ...calendarProps,
23
35
  className: "calendar",
24
36
  ref,
25
- "data-testid": "calendar-range-div"
26
- },
27
- /* @__PURE__ */ React__default.createElement(
28
- CalendarHeader,
29
- {
30
- onClickPrevButton: () => state.focusPreviousPage(),
31
- onClickNextButton: () => state.focusNextPage(),
32
- title
33
- }
34
- ),
35
- /* @__PURE__ */ React__default.createElement(CalendarGrid, { state })
36
- );
37
+ "data-testid": "calendar-range-div",
38
+ children: [
39
+ /* @__PURE__ */ jsx(
40
+ CalendarHeader,
41
+ {
42
+ onClickPrevButton: () => state.focusPreviousPage(),
43
+ onClickNextButton: () => state.focusNextPage(),
44
+ title
45
+ }
46
+ ),
47
+ /* @__PURE__ */ jsx(CalendarGrid, { state })
48
+ ]
49
+ }
50
+ ) });
37
51
  };
38
52
 
39
53
  export { RangeCalendar };
@@ -1,9 +1,10 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { card } from '@tecsinapse/cortex-core';
2
- import React__default, { forwardRef } from 'react';
3
+ import { forwardRef } from 'react';
3
4
 
4
5
  const Card = forwardRef((props, ref) => {
5
6
  const { children, className, ...rest } = props;
6
- return /* @__PURE__ */ React__default.createElement("div", { className: card({ className }), ref, ...rest }, children);
7
+ return /* @__PURE__ */ jsx("div", { className: card({ className }), ref, ...rest, children });
7
8
  });
8
9
 
9
10
  export { Card };