@cube-dev/ui-kit 0.39.1 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (939) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/cjs/_internal/hooks/index.js +1 -1
  3. package/cjs/_internal/hooks/use-chained-callback.js +2 -3
  4. package/cjs/_internal/hooks/use-deprecation-warning.js +2 -3
  5. package/cjs/_internal/hooks/use-effect-once.js +2 -3
  6. package/cjs/_internal/hooks/use-event.js +2 -3
  7. package/cjs/_internal/hooks/use-is-first-render.js +2 -3
  8. package/cjs/_internal/hooks/use-sync-ref.js +2 -3
  9. package/cjs/_internal/hooks/use-timer/index.js +1 -1
  10. package/cjs/_internal/hooks/use-timer/timer.js +1 -1
  11. package/cjs/_internal/hooks/use-timer/use-timer.js +2 -3
  12. package/cjs/_internal/hooks/use-update-effect.js +2 -3
  13. package/cjs/_internal/hooks/use-warn.js +2 -3
  14. package/cjs/_internal/index.js +1 -1
  15. package/cjs/components/Block.js +1 -1
  16. package/cjs/components/GlobalStyles.js +1 -1
  17. package/cjs/components/GridProvider.js +1 -1
  18. package/cjs/components/HiddenInput.js +1 -1
  19. package/cjs/components/OpenTrasition.js +2 -3
  20. package/cjs/components/Root.js +2 -3
  21. package/cjs/components/actions/Action.js +1 -1
  22. package/cjs/components/actions/Button/Button.js +1 -1
  23. package/cjs/components/actions/Button/Submit.js +3 -3
  24. package/cjs/components/actions/Button/index.js +1 -1
  25. package/cjs/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  26. package/cjs/components/actions/index.js +1 -1
  27. package/cjs/components/actions/use-action.js +5 -5
  28. package/cjs/components/content/ActiveZone/ActiveZone.js +1 -1
  29. package/cjs/components/content/Alert/Alert.js +1 -1
  30. package/cjs/components/content/Alert/index.js +1 -1
  31. package/cjs/components/content/Alert/types.js +1 -1
  32. package/cjs/components/content/Alert/use-alert.js +2 -3
  33. package/cjs/components/content/Avatar/Avatar.js +1 -1
  34. package/cjs/components/content/Badge/Badge.js +1 -1
  35. package/cjs/components/content/Card/Card.js +1 -1
  36. package/cjs/components/content/Content.js +1 -1
  37. package/cjs/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
  38. package/cjs/components/content/CopyPasteBlock/index.js +1 -1
  39. package/cjs/components/content/CopySnippet/CopySnippet.js +1 -1
  40. package/cjs/components/content/CopySnippet/index.js +1 -1
  41. package/cjs/components/content/Divider.js +1 -1
  42. package/cjs/components/content/Footer.js +1 -1
  43. package/cjs/components/content/Header.js +1 -1
  44. package/cjs/components/content/Paragraph.js +1 -1
  45. package/cjs/components/content/Placeholder/Placeholder.js +1 -1
  46. package/cjs/components/content/PrismCode/PrismCode.js +1 -1
  47. package/cjs/components/content/Result/Result.js +1 -1
  48. package/cjs/components/content/Skeleton/Skeleton.js +2 -3
  49. package/cjs/components/content/Tag/Tag.js +1 -1
  50. package/cjs/components/content/Text.js +1 -1
  51. package/cjs/components/content/Title.js +1 -1
  52. package/cjs/components/{forms → fields}/Checkbox/Checkbox.js +9 -9
  53. package/cjs/components/{forms → fields}/Checkbox/CheckboxGroup.js +6 -7
  54. package/cjs/components/{forms → fields}/Checkbox/context.js +1 -1
  55. package/cjs/components/{forms/Slider → fields/Checkbox}/index.js +3 -4
  56. package/cjs/components/{pickers → fields}/ComboBox/ComboBox.js +13 -45
  57. package/cjs/components/fields/ComboBox/index.js +26 -0
  58. package/cjs/components/{forms → fields}/DatePicker/DateInput.js +5 -6
  59. package/cjs/components/{forms → fields}/DatePicker/DateInputBase.js +1 -1
  60. package/cjs/components/{forms → fields}/DatePicker/DatePicker.js +5 -6
  61. package/cjs/components/{forms → fields}/DatePicker/DatePickerButton.js +1 -1
  62. package/cjs/components/{forms → fields}/DatePicker/DatePickerElement.js +1 -1
  63. package/cjs/components/{forms → fields}/DatePicker/DatePickerInput.js +2 -3
  64. package/cjs/components/{forms → fields}/DatePicker/DatePickerSegment.js +2 -3
  65. package/cjs/components/{forms → fields}/DatePicker/DateRangePicker.js +5 -6
  66. package/cjs/components/{forms → fields}/DatePicker/DateRangeSeparatedPicker.js +5 -6
  67. package/cjs/components/{forms → fields}/DatePicker/TimeInput.js +5 -6
  68. package/cjs/components/{forms → fields}/DatePicker/index.js +2 -1
  69. package/cjs/components/{forms → fields}/DatePicker/intl.js +1 -1
  70. package/cjs/components/{forms → fields}/DatePicker/parseDate.js +2 -3
  71. package/cjs/components/{forms → fields}/DatePicker/props.js +1 -1
  72. package/cjs/components/{forms/Slider → fields/DatePicker}/types.js +1 -1
  73. package/cjs/components/{forms → fields}/DatePicker/utils.js +3 -4
  74. package/cjs/components/{forms → fields}/FileInput/FileInput.js +27 -15
  75. package/cjs/components/{forms → fields}/Input/Input.js +2 -2
  76. package/cjs/components/{forms → fields}/Input/index.js +1 -1
  77. package/cjs/components/{forms → fields}/NumberInput/NumberInput.js +5 -5
  78. package/cjs/components/{forms → fields}/NumberInput/StepButton.js +2 -3
  79. package/cjs/components/{forms → fields}/PasswordInput/PasswordInput.js +5 -5
  80. package/cjs/components/{forms → fields}/RadioGroup/Radio.js +8 -8
  81. package/cjs/components/{forms → fields}/RadioGroup/RadioGroup.js +6 -7
  82. package/cjs/components/{forms → fields}/RadioGroup/context.js +3 -3
  83. package/cjs/components/fields/RadioGroup/index.js +27 -0
  84. package/cjs/components/{forms → fields}/SearchInput/SearchInput.js +6 -4
  85. package/cjs/components/fields/SearchInput/index.js +26 -0
  86. package/cjs/components/{pickers → fields}/Select/Select.js +30 -30
  87. package/cjs/components/fields/Select/index.js +26 -0
  88. package/cjs/components/{forms → fields}/Slider/Gradation.js +2 -3
  89. package/cjs/components/{forms → fields}/Slider/Header.js +2 -3
  90. package/cjs/components/{forms → fields}/Slider/RangeSlider.js +1 -1
  91. package/cjs/components/{forms → fields}/Slider/Slider.js +1 -1
  92. package/cjs/components/{forms → fields}/Slider/SliderBase.js +7 -7
  93. package/cjs/components/{forms → fields}/Slider/SliderInput.js +2 -3
  94. package/cjs/components/{forms → fields}/Slider/SliderThumb.js +2 -3
  95. package/cjs/components/{forms → fields}/Slider/SliderTrack.js +2 -3
  96. package/cjs/components/{forms → fields}/Slider/elements.js +1 -1
  97. package/cjs/components/fields/Slider/index.js +31 -0
  98. package/cjs/components/{forms/FieldWrapper → fields/Slider}/types.js +1 -1
  99. package/cjs/components/{forms → fields}/Switch/Switch.js +8 -9
  100. package/cjs/components/fields/Switch/index.js +26 -0
  101. package/cjs/components/{forms → fields}/TextArea/TextArea.js +5 -5
  102. package/cjs/components/fields/TextArea/index.js +26 -0
  103. package/cjs/components/{forms → fields}/TextInput/TextInput.js +5 -4
  104. package/cjs/components/{forms → fields}/TextInput/TextInputBase.js +6 -7
  105. package/cjs/components/fields/TextInput/index.js +27 -0
  106. package/cjs/components/{forms → fields}/index.js +11 -5
  107. package/cjs/components/{forms → form}/FieldWrapper/FieldWrapper.js +9 -8
  108. package/cjs/components/{forms → form}/FieldWrapper/extract-field-wrapper-props.js +2 -3
  109. package/cjs/components/{forms → form}/FieldWrapper/index.js +1 -1
  110. package/cjs/components/{forms/Form/use-field → form/FieldWrapper}/types.js +1 -1
  111. package/cjs/components/{forms → form}/Form/Field.js +10 -11
  112. package/cjs/components/{forms → form}/Form/Form.js +9 -9
  113. package/cjs/components/{forms → form}/Form/Submit/Submit.js +3 -3
  114. package/cjs/components/{forms → form}/Form/Submit/index.js +1 -1
  115. package/cjs/components/{forms → form}/Form/SubmitError.js +3 -3
  116. package/cjs/components/{forms → form}/Form/index.js +3 -3
  117. package/cjs/components/{forms → form}/Form/types.js +1 -1
  118. package/cjs/components/{forms → form}/Form/use-field/index.js +1 -1
  119. package/cjs/components/form/Form/use-field/types.js +11 -0
  120. package/cjs/components/{forms → form}/Form/use-field/use-field-props.js +7 -8
  121. package/cjs/components/{forms → form}/Form/use-field/use-field.js +7 -8
  122. package/cjs/components/{forms → form}/Form/use-form.js +9 -6
  123. package/cjs/components/{forms → form}/Form/validation.js +4 -4
  124. package/cjs/components/{forms → form}/Label.js +5 -5
  125. package/cjs/components/form/index.js +29 -0
  126. package/cjs/components/{forms → form}/wrapper.js +4 -5
  127. package/cjs/components/layout/Flex.js +1 -1
  128. package/cjs/components/layout/Flow.js +1 -1
  129. package/cjs/components/layout/Grid.js +1 -1
  130. package/cjs/components/layout/Prefix.js +1 -1
  131. package/cjs/components/layout/Space.js +1 -1
  132. package/cjs/components/layout/Suffix.js +1 -1
  133. package/cjs/components/navigation/LegacyTabs/LegacyTabs.js +2 -3
  134. package/cjs/components/navigation/Link/Link.js +1 -1
  135. package/cjs/components/organisms/FileTabs/FileTabs.js +2 -3
  136. package/cjs/components/organisms/Modal/Modal.js +2 -3
  137. package/cjs/components/organisms/StatsCard/StatsCard.js +2 -3
  138. package/cjs/components/other/Base64Upload/Base64Upload.js +1 -1
  139. package/cjs/components/other/Calendar/Calendar.js +1 -1
  140. package/cjs/components/other/Calendar/CalendarCell.js +2 -3
  141. package/cjs/components/other/Calendar/CalendarGrid.js +2 -3
  142. package/cjs/components/other/Calendar/RangeCalendar.js +1 -1
  143. package/cjs/components/other/CloudLogo/CloudLogo.js +1 -1
  144. package/cjs/components/overlays/AlertDialog/AlertDialog.js +2 -2
  145. package/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +3 -4
  146. package/cjs/components/overlays/AlertDialog/AlertDialogZone.js +2 -3
  147. package/cjs/components/overlays/AlertDialog/index.js +1 -1
  148. package/cjs/components/overlays/AlertDialog/types.js +1 -1
  149. package/cjs/components/overlays/Dialog/Dialog.js +1 -1
  150. package/cjs/components/overlays/Dialog/DialogContainer.js +2 -3
  151. package/cjs/components/overlays/Dialog/DialogForm.js +5 -7
  152. package/cjs/components/overlays/Dialog/DialogTrigger.js +1 -1
  153. package/cjs/components/overlays/Dialog/context.js +3 -3
  154. package/cjs/components/overlays/Dialog/index.js +1 -1
  155. package/cjs/components/overlays/Modal/Modal.js +1 -1
  156. package/cjs/components/overlays/Modal/OpenTransition.js +3 -4
  157. package/cjs/components/overlays/Modal/Overlay.js +1 -1
  158. package/cjs/components/overlays/Modal/Popover.js +1 -1
  159. package/cjs/components/overlays/Modal/Tray.js +1 -1
  160. package/cjs/components/overlays/Modal/Underlay.js +1 -1
  161. package/cjs/components/overlays/Modal/index.js +1 -1
  162. package/cjs/components/overlays/Modal/types.js +1 -1
  163. package/cjs/components/overlays/NewNotifications/Bar/FloatingNotification.js +1 -1
  164. package/cjs/components/overlays/NewNotifications/Bar/NotificationsBar.js +2 -3
  165. package/cjs/components/overlays/NewNotifications/Bar/TransitionComponent.js +2 -3
  166. package/cjs/components/overlays/NewNotifications/Bar/index.js +1 -1
  167. package/cjs/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +3 -4
  168. package/cjs/components/overlays/NewNotifications/Dialog/index.js +1 -1
  169. package/cjs/components/overlays/NewNotifications/Notification.js +2 -3
  170. package/cjs/components/overlays/NewNotifications/NotificationView/NotificationAction.js +2 -3
  171. package/cjs/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +1 -1
  172. package/cjs/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +1 -1
  173. package/cjs/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
  174. package/cjs/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +1 -1
  175. package/cjs/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +1 -1
  176. package/cjs/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +3 -4
  177. package/cjs/components/overlays/NewNotifications/NotificationView/NotificationView.js +1 -1
  178. package/cjs/components/overlays/NewNotifications/NotificationView/index.js +1 -1
  179. package/cjs/components/overlays/NewNotifications/NotificationView/types.js +1 -1
  180. package/cjs/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +3 -3
  181. package/cjs/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
  182. package/cjs/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +2 -3
  183. package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +2 -3
  184. package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +2 -3
  185. package/cjs/components/overlays/NewNotifications/NotificationsList/index.js +1 -1
  186. package/cjs/components/overlays/NewNotifications/NotificationsList/types.js +1 -1
  187. package/cjs/components/overlays/NewNotifications/hooks/index.js +1 -1
  188. package/cjs/components/overlays/NewNotifications/hooks/types.js +1 -1
  189. package/cjs/components/overlays/NewNotifications/hooks/use-notification-list-item.js +2 -3
  190. package/cjs/components/overlays/NewNotifications/hooks/use-notifications-api.js +2 -3
  191. package/cjs/components/overlays/NewNotifications/hooks/use-notifications-list.js +2 -3
  192. package/cjs/components/overlays/NewNotifications/hooks/use-notifications-observer.js +2 -3
  193. package/cjs/components/overlays/NewNotifications/index.js +1 -1
  194. package/cjs/components/overlays/NewNotifications/types.js +1 -1
  195. package/cjs/components/overlays/Notification/Notification.js +2 -3
  196. package/cjs/components/overlays/OverlayWrapper.js +2 -3
  197. package/cjs/components/overlays/Toasts/Toast.js +2 -3
  198. package/cjs/components/overlays/Toasts/index.js +1 -1
  199. package/cjs/components/overlays/Toasts/types.js +1 -1
  200. package/cjs/components/overlays/Toasts/use-toasts-api.js +2 -3
  201. package/cjs/components/overlays/Tooltip/Tooltip.js +1 -1
  202. package/cjs/components/overlays/Tooltip/TooltipProvider.js +1 -1
  203. package/cjs/components/overlays/Tooltip/TooltipTrigger.js +1 -1
  204. package/cjs/components/overlays/Tooltip/context.js +1 -1
  205. package/cjs/components/overlays/Tooltip/index.js +27 -0
  206. package/cjs/components/pickers/Menu/Menu.js +1 -1
  207. package/cjs/components/pickers/Menu/MenuButton.js +2 -3
  208. package/cjs/components/pickers/Menu/MenuItem.js +2 -3
  209. package/cjs/components/pickers/Menu/MenuSection.js +2 -3
  210. package/cjs/components/pickers/Menu/MenuTrigger.js +1 -1
  211. package/cjs/components/pickers/Menu/context.js +3 -3
  212. package/cjs/components/pickers/Menu/styled.js +1 -1
  213. package/cjs/components/portal/Portal.js +2 -3
  214. package/cjs/components/portal/PortalProvider.js +3 -3
  215. package/cjs/components/portal/index.js +1 -1
  216. package/cjs/components/portal/storybook/templates/CustomRoot.js +1 -1
  217. package/cjs/components/portal/storybook/templates/PortalOrder.js +1 -1
  218. package/cjs/components/portal/storybook/templates/basic.js +1 -1
  219. package/cjs/components/portal/storybook/templates/index.js +1 -1
  220. package/cjs/components/portal/types.js +1 -1
  221. package/cjs/components/portal/usePortal.js +2 -3
  222. package/cjs/components/shared/InvalidIcon.js +1 -1
  223. package/cjs/components/shared/ValidIcon.js +1 -1
  224. package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +2 -3
  225. package/cjs/components/status/LoadingAnimation/index.js +1 -1
  226. package/cjs/components/status/Spin/Cube.js +1 -1
  227. package/cjs/components/status/Spin/InternalSpinner.js +1 -1
  228. package/cjs/components/status/Spin/Spin.js +2 -3
  229. package/cjs/components/status/Spin/SpinsContainer.js +1 -1
  230. package/cjs/components/status/Spin/index.js +1 -1
  231. package/cjs/components/status/Spin/types.js +1 -1
  232. package/cjs/components/status/index.js +1 -1
  233. package/cjs/data/themes.js +1 -1
  234. package/cjs/icons/AiIcon.js +1 -1
  235. package/cjs/icons/AreaChartIcon.js +1 -1
  236. package/cjs/icons/BackwardIcon.js +1 -1
  237. package/cjs/icons/BarChartIcon.js +1 -1
  238. package/cjs/icons/BellFilledIcon.js +1 -1
  239. package/cjs/icons/BellIcon.js +1 -1
  240. package/cjs/icons/BooleanIcon.js +1 -1
  241. package/cjs/icons/CalendarEditIcon.js +1 -1
  242. package/cjs/icons/CalendarIcon.js +1 -1
  243. package/cjs/icons/CaretDownIcon.js +1 -1
  244. package/cjs/icons/CaretUpIcon.js +1 -1
  245. package/cjs/icons/CheckCircleFilledIcon.js +1 -1
  246. package/cjs/icons/CheckCircleIcon.js +1 -1
  247. package/cjs/icons/CheckIcon.js +1 -1
  248. package/cjs/icons/CircleFilledIcon.js +1 -1
  249. package/cjs/icons/CloseCircleFilledIcon.js +1 -1
  250. package/cjs/icons/CloseCircleIcon.js +1 -1
  251. package/cjs/icons/CloseIcon.js +1 -1
  252. package/cjs/icons/CopyIcon.js +1 -1
  253. package/cjs/icons/CountIcon.js +1 -1
  254. package/cjs/icons/CubeIcon.js +1 -1
  255. package/cjs/icons/DangerIcon.js +1 -1
  256. package/cjs/icons/DashboardIcon.js +1 -1
  257. package/cjs/icons/DonutIcon.js +1 -1
  258. package/cjs/icons/DownIcon.js +1 -1
  259. package/cjs/icons/ExclamationCircleFilledIcon.js +1 -1
  260. package/cjs/icons/ExclamationCircleIcon.js +1 -1
  261. package/cjs/icons/ExclamationIcon.js +1 -1
  262. package/cjs/icons/EyeIcon.js +1 -1
  263. package/cjs/icons/EyeInvisibleIcon.js +1 -1
  264. package/cjs/icons/FilterIcon.js +1 -1
  265. package/cjs/icons/ForwardIcon.js +1 -1
  266. package/cjs/icons/IconContainer.js +1 -1
  267. package/cjs/icons/InfoCircleIcon.js +1 -1
  268. package/cjs/icons/InfoIcon.js +1 -1
  269. package/cjs/icons/KeyIcon.js +1 -1
  270. package/cjs/icons/LeftIcon.js +1 -1
  271. package/cjs/icons/LineChartIcon.js +1 -1
  272. package/cjs/icons/LoadingIcon.js +1 -1
  273. package/cjs/icons/LockFilledIcon.js +1 -1
  274. package/cjs/icons/LockIcon.js +1 -1
  275. package/cjs/icons/MoreIcon.js +1 -1
  276. package/cjs/icons/NotAllowedIcon.js +1 -1
  277. package/cjs/icons/NumberIcon.js +1 -1
  278. package/cjs/icons/PauseCircleFilledIcon.js +1 -1
  279. package/cjs/icons/PauseCircleIcon.js +1 -1
  280. package/cjs/icons/PieChartIcon.js +1 -1
  281. package/cjs/icons/PlusIcon.js +1 -1
  282. package/cjs/icons/ReloadIcon.js +1 -1
  283. package/cjs/icons/RightIcon.js +1 -1
  284. package/cjs/icons/SearchIcon.js +1 -1
  285. package/cjs/icons/SettingsIcon.js +1 -1
  286. package/cjs/icons/SlashIcon.js +1 -1
  287. package/cjs/icons/SparklesIcon.js +1 -1
  288. package/cjs/icons/SqlIcon.js +1 -1
  289. package/cjs/icons/StatsIcon.js +1 -1
  290. package/cjs/icons/StringIcon.js +1 -1
  291. package/cjs/icons/SwitchIcon.js +1 -1
  292. package/cjs/icons/TableIcon.js +1 -1
  293. package/cjs/icons/ThumbsDownIcon.js +1 -1
  294. package/cjs/icons/ThumbsUpIcon.js +1 -1
  295. package/cjs/icons/ThunderboltCrossedIcon.js +1 -1
  296. package/cjs/icons/ThunderboltFilledIcon.js +1 -1
  297. package/cjs/icons/ThunderboltIcon.js +1 -1
  298. package/cjs/icons/TimeIcon.js +1 -1
  299. package/cjs/icons/UnlockIcon.js +1 -1
  300. package/cjs/icons/UpIcon.js +1 -1
  301. package/cjs/icons/ViewIcon.js +1 -1
  302. package/cjs/icons/WarningFilledIcon.js +1 -1
  303. package/cjs/icons/WarningIcon.js +1 -1
  304. package/cjs/icons/index.js +1 -1
  305. package/cjs/icons/wrap-icon.js +2 -3
  306. package/cjs/index.js +7 -38
  307. package/cjs/provider.js +4 -4
  308. package/cjs/providers/TrackingProvider.js +4 -4
  309. package/cjs/services/notification.js +1 -1
  310. package/cjs/shared/form.js +1 -1
  311. package/cjs/shared/index.js +1 -1
  312. package/cjs/stories/Form.stories.js +1 -1
  313. package/cjs/stories/FormFieldArgs.js +1 -1
  314. package/cjs/stories/Layout.stories.js +1 -1
  315. package/cjs/stories/Tasty.stories.js +1 -1
  316. package/cjs/stories/components/ConfirmDeletionDialogForm.js +2 -3
  317. package/cjs/stories/components/DialogFormApp.js +2 -3
  318. package/cjs/stories/components/StyledButton.js +3 -3
  319. package/cjs/stories/lists/baseProps.js +1 -1
  320. package/cjs/tasty/index.js +1 -1
  321. package/cjs/tasty/providers/BreakpointsProvider.js +3 -3
  322. package/cjs/tasty/styles/align.js +2 -3
  323. package/cjs/tasty/styles/border.js +2 -3
  324. package/cjs/tasty/styles/boxShadow.combinator.js +2 -3
  325. package/cjs/tasty/styles/color.js +2 -3
  326. package/cjs/tasty/styles/createStyle.js +2 -3
  327. package/cjs/tasty/styles/dimension.js +2 -3
  328. package/cjs/tasty/styles/display.js +2 -3
  329. package/cjs/tasty/styles/fade.js +2 -3
  330. package/cjs/tasty/styles/fill.js +2 -3
  331. package/cjs/tasty/styles/flow.js +2 -3
  332. package/cjs/tasty/styles/font.js +2 -3
  333. package/cjs/tasty/styles/fontStyle.js +2 -3
  334. package/cjs/tasty/styles/gap.js +2 -3
  335. package/cjs/tasty/styles/groupRadius.js +2 -3
  336. package/cjs/tasty/styles/height.js +2 -3
  337. package/cjs/tasty/styles/index.js +1 -1
  338. package/cjs/tasty/styles/inset.js +2 -3
  339. package/cjs/tasty/styles/justify.js +2 -3
  340. package/cjs/tasty/styles/list.js +1 -1
  341. package/cjs/tasty/styles/margin.js +2 -3
  342. package/cjs/tasty/styles/marginBlock.js +2 -3
  343. package/cjs/tasty/styles/marginInline.js +2 -3
  344. package/cjs/tasty/styles/outline.js +2 -3
  345. package/cjs/tasty/styles/padding.js +2 -3
  346. package/cjs/tasty/styles/paddingBlock.js +2 -3
  347. package/cjs/tasty/styles/paddingInline.js +2 -3
  348. package/cjs/tasty/styles/predefined.js +5 -5
  349. package/cjs/tasty/styles/preset.js +2 -3
  350. package/cjs/tasty/styles/radius.js +2 -3
  351. package/cjs/tasty/styles/reset.js +2 -3
  352. package/cjs/tasty/styles/shadow.js +2 -3
  353. package/cjs/tasty/styles/styledScrollbar.js +2 -3
  354. package/cjs/tasty/styles/transition.js +3 -3
  355. package/cjs/tasty/styles/types.js +1 -1
  356. package/cjs/tasty/styles/width.js +2 -3
  357. package/cjs/tasty/tasty.js +3 -3
  358. package/cjs/tasty/types.js +1 -1
  359. package/cjs/tasty/utils/cache-wrapper.js +2 -3
  360. package/cjs/tasty/utils/case-converter.js +2 -3
  361. package/cjs/tasty/utils/colors.js +2 -3
  362. package/cjs/tasty/utils/dotize.js +1 -1
  363. package/cjs/tasty/utils/filterBaseProps.js +2 -3
  364. package/cjs/tasty/utils/getDisplayName.js +2 -3
  365. package/cjs/tasty/utils/index.js +2 -3
  366. package/cjs/tasty/utils/mergeStyles.js +2 -3
  367. package/cjs/tasty/utils/modAttrs.js +1 -1
  368. package/cjs/tasty/utils/renderStyles.js +3 -4
  369. package/cjs/tasty/utils/responsive.js +4 -5
  370. package/cjs/tasty/utils/string.js +2 -3
  371. package/cjs/tasty/utils/styles.js +24 -24
  372. package/cjs/tasty/utils/warnings.js +3 -4
  373. package/cjs/tokens.js +1 -1
  374. package/cjs/type-checks.js +2 -2
  375. package/cjs/utils/ResizeSensor.js +1 -1
  376. package/cjs/utils/modules.js +2 -3
  377. package/cjs/utils/promise.js +2 -3
  378. package/cjs/utils/random.js +2 -3
  379. package/cjs/utils/range.js +2 -3
  380. package/cjs/utils/react/Slots.js +4 -5
  381. package/cjs/utils/react/chain.js +2 -3
  382. package/cjs/utils/react/index.js +1 -1
  383. package/cjs/utils/react/interactions.js +2 -3
  384. package/cjs/utils/react/isTextOnly.js +2 -3
  385. package/cjs/utils/react/mapProps.js +3 -4
  386. package/cjs/utils/react/mergeProps.js +2 -3
  387. package/cjs/utils/react/nullableValue.js +7 -8
  388. package/cjs/utils/react/useCombinedRefs.js +2 -3
  389. package/cjs/utils/react/useId.js +4 -5
  390. package/cjs/utils/react/useLayoutEffect.js +1 -1
  391. package/cjs/utils/react/useViewportSize.js +2 -3
  392. package/cjs/utils/react/wrapNodeIfPlain.js +2 -3
  393. package/cjs/utils/transitions.js +1 -1
  394. package/cjs/utils/tree.js +2 -3
  395. package/cjs/utils/warnings.js +5 -6
  396. package/cjs/version.js +25 -0
  397. package/es/_internal/hooks/index.js +1 -1
  398. package/es/_internal/hooks/use-chained-callback.js +1 -1
  399. package/es/_internal/hooks/use-deprecation-warning.js +1 -1
  400. package/es/_internal/hooks/use-effect-once.js +1 -1
  401. package/es/_internal/hooks/use-event.js +1 -1
  402. package/es/_internal/hooks/use-is-first-render.js +1 -1
  403. package/es/_internal/hooks/use-sync-ref.js +1 -1
  404. package/es/_internal/hooks/use-timer/index.js +1 -1
  405. package/es/_internal/hooks/use-timer/timer.js +1 -1
  406. package/es/_internal/hooks/use-timer/use-timer.js +1 -1
  407. package/es/_internal/hooks/use-update-effect.js +1 -1
  408. package/es/_internal/hooks/use-warn.js +1 -1
  409. package/es/_internal/index.js +1 -1
  410. package/es/components/Block.js +1 -1
  411. package/es/components/GlobalStyles.js +1 -1
  412. package/es/components/GridProvider.js +1 -1
  413. package/es/components/HiddenInput.js +1 -1
  414. package/es/components/OpenTrasition.js +1 -1
  415. package/es/components/Root.js +1 -1
  416. package/es/components/actions/Action.js +1 -1
  417. package/es/components/actions/Button/Button.js +1 -1
  418. package/es/components/actions/Button/Submit.js +2 -2
  419. package/es/components/actions/Button/index.js +1 -1
  420. package/es/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  421. package/es/components/actions/index.js +1 -1
  422. package/es/components/actions/use-action.js +1 -1
  423. package/es/components/content/ActiveZone/ActiveZone.js +1 -1
  424. package/es/components/content/Alert/Alert.js +1 -1
  425. package/es/components/content/Alert/index.js +1 -1
  426. package/es/components/content/Alert/types.js +1 -1
  427. package/es/components/content/Alert/use-alert.js +1 -1
  428. package/es/components/content/Avatar/Avatar.js +1 -1
  429. package/es/components/content/Badge/Badge.js +1 -1
  430. package/es/components/content/Card/Card.js +1 -1
  431. package/es/components/content/Content.js +1 -1
  432. package/es/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
  433. package/es/components/content/CopyPasteBlock/index.js +1 -1
  434. package/es/components/content/CopySnippet/CopySnippet.js +1 -1
  435. package/es/components/content/CopySnippet/index.js +1 -1
  436. package/es/components/content/Divider.js +1 -1
  437. package/es/components/content/Footer.js +1 -1
  438. package/es/components/content/Header.js +1 -1
  439. package/es/components/content/Paragraph.js +1 -1
  440. package/es/components/content/Placeholder/Placeholder.js +1 -1
  441. package/es/components/content/PrismCode/PrismCode.js +1 -1
  442. package/es/components/content/Result/Result.js +1 -1
  443. package/es/components/content/Skeleton/Skeleton.js +1 -1
  444. package/es/components/content/Tag/Tag.js +1 -1
  445. package/es/components/content/Text.js +1 -1
  446. package/es/components/content/Title.js +1 -1
  447. package/es/components/{forms → fields}/Checkbox/Checkbox.js +5 -5
  448. package/es/components/{forms → fields}/Checkbox/CheckboxGroup.js +2 -3
  449. package/es/components/{forms → fields}/Checkbox/context.js +1 -1
  450. package/es/components/fields/Checkbox/index.js +11 -0
  451. package/es/components/{pickers → fields}/ComboBox/ComboBox.js +8 -40
  452. package/es/components/fields/ComboBox/index.js +10 -0
  453. package/es/components/{forms → fields}/DatePicker/DateInput.js +3 -4
  454. package/es/components/{forms → fields}/DatePicker/DateInputBase.js +1 -1
  455. package/es/components/{forms → fields}/DatePicker/DatePicker.js +3 -4
  456. package/es/components/{forms → fields}/DatePicker/DatePickerButton.js +1 -1
  457. package/es/components/{forms → fields}/DatePicker/DatePickerElement.js +1 -1
  458. package/es/components/{forms → fields}/DatePicker/DatePickerInput.js +2 -2
  459. package/es/components/{forms → fields}/DatePicker/DatePickerSegment.js +1 -1
  460. package/es/components/{forms → fields}/DatePicker/DateRangePicker.js +3 -4
  461. package/es/components/{forms → fields}/DatePicker/DateRangeSeparatedPicker.js +3 -4
  462. package/es/components/{forms → fields}/DatePicker/TimeInput.js +3 -4
  463. package/es/components/{forms → fields}/DatePicker/index.js +2 -1
  464. package/es/components/{forms → fields}/DatePicker/intl.js +1 -1
  465. package/es/components/{forms → fields}/DatePicker/parseDate.js +1 -1
  466. package/es/components/{forms → fields}/DatePicker/props.js +1 -1
  467. package/es/components/{forms/FieldWrapper → fields/DatePicker}/types.js +1 -1
  468. package/es/components/{forms → fields}/DatePicker/utils.js +1 -1
  469. package/es/components/{forms → fields}/FileInput/FileInput.js +26 -14
  470. package/es/components/{forms → fields}/Input/Input.js +2 -2
  471. package/es/components/{forms → fields}/Input/index.js +1 -1
  472. package/es/components/{forms → fields}/NumberInput/NumberInput.js +3 -3
  473. package/es/components/{forms → fields}/NumberInput/StepButton.js +1 -1
  474. package/es/components/{forms → fields}/PasswordInput/PasswordInput.js +3 -3
  475. package/es/components/{forms → fields}/RadioGroup/Radio.js +3 -3
  476. package/es/components/{forms → fields}/RadioGroup/RadioGroup.js +2 -3
  477. package/es/components/{forms → fields}/RadioGroup/context.js +1 -1
  478. package/es/components/fields/RadioGroup/index.js +11 -0
  479. package/es/components/{forms → fields}/SearchInput/SearchInput.js +3 -2
  480. package/es/components/fields/SearchInput/index.js +10 -0
  481. package/es/components/{pickers → fields}/Select/Select.js +8 -8
  482. package/es/components/fields/Select/index.js +10 -0
  483. package/es/components/{forms → fields}/Slider/Gradation.js +1 -1
  484. package/es/components/{forms → fields}/Slider/Header.js +1 -1
  485. package/es/components/{forms → fields}/Slider/RangeSlider.js +1 -1
  486. package/es/components/{forms → fields}/Slider/Slider.js +1 -1
  487. package/es/components/{forms → fields}/Slider/SliderBase.js +3 -3
  488. package/es/components/{forms → fields}/Slider/SliderInput.js +1 -1
  489. package/es/components/{forms → fields}/Slider/SliderThumb.js +1 -1
  490. package/es/components/{forms → fields}/Slider/SliderTrack.js +1 -1
  491. package/es/components/{forms → fields}/Slider/elements.js +1 -1
  492. package/es/components/{forms → fields}/Slider/index.js +2 -1
  493. package/es/components/{forms → fields}/Slider/types.js +1 -1
  494. package/es/components/{forms → fields}/Switch/Switch.js +3 -4
  495. package/es/components/fields/Switch/index.js +10 -0
  496. package/es/components/{forms → fields}/TextArea/TextArea.js +3 -3
  497. package/es/components/fields/TextArea/index.js +10 -0
  498. package/es/components/{forms → fields}/TextInput/TextInput.js +3 -2
  499. package/es/components/{forms → fields}/TextInput/TextInputBase.js +3 -4
  500. package/es/components/fields/TextInput/index.js +11 -0
  501. package/es/components/fields/index.js +23 -0
  502. package/es/components/{forms → form}/FieldWrapper/FieldWrapper.js +6 -5
  503. package/es/components/{forms → form}/FieldWrapper/extract-field-wrapper-props.js +1 -1
  504. package/es/components/{forms → form}/FieldWrapper/index.js +1 -1
  505. package/es/components/{forms/Form → form/FieldWrapper}/types.js +1 -1
  506. package/es/components/{forms → form}/Form/Field.js +4 -4
  507. package/es/components/{forms → form}/Form/Form.js +3 -3
  508. package/es/components/{forms → form}/Form/Submit/Submit.js +2 -2
  509. package/es/components/{forms → form}/Form/Submit/index.js +1 -1
  510. package/es/components/{forms → form}/Form/SubmitError.js +2 -2
  511. package/es/components/{forms → form}/Form/index.js +2 -2
  512. package/es/components/{forms/Form/use-field → form/Form}/types.js +1 -1
  513. package/es/components/{forms → form}/Form/use-field/index.js +1 -1
  514. package/es/components/form/Form/use-field/types.js +10 -0
  515. package/es/components/{forms → form}/Form/use-field/use-field-props.js +3 -3
  516. package/es/components/{forms → form}/Form/use-field/use-field.js +3 -3
  517. package/es/components/{forms → form}/Form/use-form.js +5 -2
  518. package/es/components/{forms → form}/Form/validation.js +1 -1
  519. package/es/components/{forms → form}/Label.js +2 -2
  520. package/es/components/form/index.js +13 -0
  521. package/es/components/{forms → form}/wrapper.js +2 -2
  522. package/es/components/layout/Flex.js +1 -1
  523. package/es/components/layout/Flow.js +1 -1
  524. package/es/components/layout/Grid.js +1 -1
  525. package/es/components/layout/Prefix.js +1 -1
  526. package/es/components/layout/Space.js +1 -1
  527. package/es/components/layout/Suffix.js +1 -1
  528. package/es/components/navigation/LegacyTabs/LegacyTabs.js +1 -1
  529. package/es/components/navigation/Link/Link.js +1 -1
  530. package/es/components/organisms/FileTabs/FileTabs.js +1 -1
  531. package/es/components/organisms/Modal/Modal.js +1 -1
  532. package/es/components/organisms/StatsCard/StatsCard.js +1 -1
  533. package/es/components/other/Base64Upload/Base64Upload.js +1 -1
  534. package/es/components/other/Calendar/Calendar.js +1 -1
  535. package/es/components/other/Calendar/CalendarCell.js +1 -1
  536. package/es/components/other/Calendar/CalendarGrid.js +1 -1
  537. package/es/components/other/Calendar/RangeCalendar.js +2 -2
  538. package/es/components/other/CloudLogo/CloudLogo.js +1 -1
  539. package/es/components/overlays/AlertDialog/AlertDialog.js +2 -2
  540. package/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
  541. package/es/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
  542. package/es/components/overlays/AlertDialog/index.js +1 -1
  543. package/es/components/overlays/AlertDialog/types.js +1 -1
  544. package/es/components/overlays/Dialog/Dialog.js +1 -1
  545. package/es/components/overlays/Dialog/DialogContainer.js +1 -1
  546. package/es/components/overlays/Dialog/DialogForm.js +2 -3
  547. package/es/components/overlays/Dialog/DialogTrigger.js +2 -2
  548. package/es/components/overlays/Dialog/context.js +1 -1
  549. package/es/components/overlays/Dialog/index.js +1 -1
  550. package/es/components/overlays/Modal/Modal.js +1 -1
  551. package/es/components/overlays/Modal/OpenTransition.js +1 -1
  552. package/es/components/overlays/Modal/Overlay.js +1 -1
  553. package/es/components/overlays/Modal/Popover.js +1 -1
  554. package/es/components/overlays/Modal/Tray.js +2 -2
  555. package/es/components/overlays/Modal/Underlay.js +1 -1
  556. package/es/components/overlays/Modal/index.js +1 -1
  557. package/es/components/overlays/Modal/types.js +1 -1
  558. package/es/components/overlays/NewNotifications/Bar/FloatingNotification.js +1 -1
  559. package/es/components/overlays/NewNotifications/Bar/NotificationsBar.js +1 -1
  560. package/es/components/overlays/NewNotifications/Bar/TransitionComponent.js +1 -1
  561. package/es/components/overlays/NewNotifications/Bar/index.js +1 -1
  562. package/es/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +1 -1
  563. package/es/components/overlays/NewNotifications/Dialog/index.js +1 -1
  564. package/es/components/overlays/NewNotifications/Notification.js +1 -1
  565. package/es/components/overlays/NewNotifications/NotificationView/NotificationAction.js +1 -1
  566. package/es/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +1 -1
  567. package/es/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +1 -1
  568. package/es/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
  569. package/es/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +1 -1
  570. package/es/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +1 -1
  571. package/es/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +1 -1
  572. package/es/components/overlays/NewNotifications/NotificationView/NotificationView.js +1 -1
  573. package/es/components/overlays/NewNotifications/NotificationView/index.js +1 -1
  574. package/es/components/overlays/NewNotifications/NotificationView/types.js +1 -1
  575. package/es/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +1 -1
  576. package/es/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
  577. package/es/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +1 -1
  578. package/es/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +1 -1
  579. package/es/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +1 -1
  580. package/es/components/overlays/NewNotifications/NotificationsList/index.js +1 -1
  581. package/es/components/overlays/NewNotifications/NotificationsList/types.js +1 -1
  582. package/es/components/overlays/NewNotifications/hooks/index.js +1 -1
  583. package/es/components/overlays/NewNotifications/hooks/types.js +1 -1
  584. package/es/components/overlays/NewNotifications/hooks/use-notification-list-item.js +1 -1
  585. package/es/components/overlays/NewNotifications/hooks/use-notifications-api.js +1 -1
  586. package/es/components/overlays/NewNotifications/hooks/use-notifications-list.js +1 -1
  587. package/es/components/overlays/NewNotifications/hooks/use-notifications-observer.js +1 -1
  588. package/es/components/overlays/NewNotifications/index.js +1 -1
  589. package/es/components/overlays/NewNotifications/types.js +1 -1
  590. package/es/components/overlays/Notification/Notification.js +1 -1
  591. package/es/components/overlays/OverlayWrapper.js +1 -1
  592. package/es/components/overlays/Toasts/Toast.js +1 -1
  593. package/es/components/overlays/Toasts/index.js +1 -1
  594. package/es/components/overlays/Toasts/types.js +1 -1
  595. package/es/components/overlays/Toasts/use-toasts-api.js +1 -1
  596. package/es/components/overlays/Tooltip/Tooltip.js +1 -1
  597. package/es/components/overlays/Tooltip/TooltipProvider.js +1 -1
  598. package/es/components/overlays/Tooltip/TooltipTrigger.js +2 -2
  599. package/es/components/overlays/Tooltip/context.js +1 -1
  600. package/es/components/overlays/Tooltip/index.js +11 -0
  601. package/es/components/pickers/Menu/Menu.js +1 -1
  602. package/es/components/pickers/Menu/MenuButton.js +1 -1
  603. package/es/components/pickers/Menu/MenuItem.js +1 -1
  604. package/es/components/pickers/Menu/MenuSection.js +1 -1
  605. package/es/components/pickers/Menu/MenuTrigger.js +2 -2
  606. package/es/components/pickers/Menu/context.js +1 -1
  607. package/es/components/pickers/Menu/styled.js +1 -1
  608. package/es/components/portal/Portal.js +1 -1
  609. package/es/components/portal/PortalProvider.js +1 -1
  610. package/es/components/portal/index.js +1 -1
  611. package/es/components/portal/storybook/templates/CustomRoot.js +1 -1
  612. package/es/components/portal/storybook/templates/PortalOrder.js +1 -1
  613. package/es/components/portal/storybook/templates/basic.js +1 -1
  614. package/es/components/portal/storybook/templates/index.js +1 -1
  615. package/es/components/portal/types.js +1 -1
  616. package/es/components/portal/usePortal.js +1 -1
  617. package/es/components/shared/InvalidIcon.js +1 -1
  618. package/es/components/shared/ValidIcon.js +1 -1
  619. package/es/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
  620. package/es/components/status/LoadingAnimation/index.js +1 -1
  621. package/es/components/status/Spin/Cube.js +1 -1
  622. package/es/components/status/Spin/InternalSpinner.js +1 -1
  623. package/es/components/status/Spin/Spin.js +1 -1
  624. package/es/components/status/Spin/SpinsContainer.js +1 -1
  625. package/es/components/status/Spin/index.js +1 -1
  626. package/es/components/status/Spin/types.js +1 -1
  627. package/es/components/status/index.js +1 -1
  628. package/es/data/themes.js +1 -1
  629. package/es/icons/AiIcon.js +1 -1
  630. package/es/icons/AreaChartIcon.js +1 -1
  631. package/es/icons/BackwardIcon.js +1 -1
  632. package/es/icons/BarChartIcon.js +1 -1
  633. package/es/icons/BellFilledIcon.js +1 -1
  634. package/es/icons/BellIcon.js +1 -1
  635. package/es/icons/BooleanIcon.js +1 -1
  636. package/es/icons/CalendarEditIcon.js +1 -1
  637. package/es/icons/CalendarIcon.js +1 -1
  638. package/es/icons/CaretDownIcon.js +1 -1
  639. package/es/icons/CaretUpIcon.js +1 -1
  640. package/es/icons/CheckCircleFilledIcon.js +1 -1
  641. package/es/icons/CheckCircleIcon.js +1 -1
  642. package/es/icons/CheckIcon.js +1 -1
  643. package/es/icons/CircleFilledIcon.js +1 -1
  644. package/es/icons/CloseCircleFilledIcon.js +1 -1
  645. package/es/icons/CloseCircleIcon.js +1 -1
  646. package/es/icons/CloseIcon.js +1 -1
  647. package/es/icons/CopyIcon.js +1 -1
  648. package/es/icons/CountIcon.js +1 -1
  649. package/es/icons/CubeIcon.js +1 -1
  650. package/es/icons/DangerIcon.js +1 -1
  651. package/es/icons/DashboardIcon.js +1 -1
  652. package/es/icons/DonutIcon.js +1 -1
  653. package/es/icons/DownIcon.js +1 -1
  654. package/es/icons/ExclamationCircleFilledIcon.js +1 -1
  655. package/es/icons/ExclamationCircleIcon.js +1 -1
  656. package/es/icons/ExclamationIcon.js +1 -1
  657. package/es/icons/EyeIcon.js +1 -1
  658. package/es/icons/EyeInvisibleIcon.js +1 -1
  659. package/es/icons/FilterIcon.js +1 -1
  660. package/es/icons/ForwardIcon.js +1 -1
  661. package/es/icons/IconContainer.js +1 -1
  662. package/es/icons/InfoCircleIcon.js +1 -1
  663. package/es/icons/InfoIcon.js +1 -1
  664. package/es/icons/KeyIcon.js +1 -1
  665. package/es/icons/LeftIcon.js +1 -1
  666. package/es/icons/LineChartIcon.js +1 -1
  667. package/es/icons/LoadingIcon.js +1 -1
  668. package/es/icons/LockFilledIcon.js +1 -1
  669. package/es/icons/LockIcon.js +1 -1
  670. package/es/icons/MoreIcon.js +1 -1
  671. package/es/icons/NotAllowedIcon.js +1 -1
  672. package/es/icons/NumberIcon.js +1 -1
  673. package/es/icons/PauseCircleFilledIcon.js +1 -1
  674. package/es/icons/PauseCircleIcon.js +1 -1
  675. package/es/icons/PieChartIcon.js +1 -1
  676. package/es/icons/PlusIcon.js +1 -1
  677. package/es/icons/ReloadIcon.js +1 -1
  678. package/es/icons/RightIcon.js +1 -1
  679. package/es/icons/SearchIcon.js +1 -1
  680. package/es/icons/SettingsIcon.js +1 -1
  681. package/es/icons/SlashIcon.js +1 -1
  682. package/es/icons/SparklesIcon.js +1 -1
  683. package/es/icons/SqlIcon.js +1 -1
  684. package/es/icons/StatsIcon.js +1 -1
  685. package/es/icons/StringIcon.js +1 -1
  686. package/es/icons/SwitchIcon.js +1 -1
  687. package/es/icons/TableIcon.js +1 -1
  688. package/es/icons/ThumbsDownIcon.js +1 -1
  689. package/es/icons/ThumbsUpIcon.js +1 -1
  690. package/es/icons/ThunderboltCrossedIcon.js +1 -1
  691. package/es/icons/ThunderboltFilledIcon.js +1 -1
  692. package/es/icons/ThunderboltIcon.js +1 -1
  693. package/es/icons/TimeIcon.js +1 -1
  694. package/es/icons/UnlockIcon.js +1 -1
  695. package/es/icons/UpIcon.js +1 -1
  696. package/es/icons/ViewIcon.js +1 -1
  697. package/es/icons/WarningFilledIcon.js +1 -1
  698. package/es/icons/WarningIcon.js +1 -1
  699. package/es/icons/index.js +1 -1
  700. package/es/icons/wrap-icon.js +1 -1
  701. package/es/index.js +5 -21
  702. package/es/provider.js +1 -1
  703. package/es/providers/TrackingProvider.js +1 -1
  704. package/es/services/notification.js +1 -1
  705. package/es/shared/form.js +1 -1
  706. package/es/shared/index.js +1 -1
  707. package/es/stories/Form.stories.js +1 -1
  708. package/es/stories/FormFieldArgs.js +1 -1
  709. package/es/stories/Layout.stories.js +1 -1
  710. package/es/stories/Tasty.stories.js +1 -1
  711. package/es/stories/components/ConfirmDeletionDialogForm.js +2 -2
  712. package/es/stories/components/DialogFormApp.js +1 -1
  713. package/es/stories/components/StyledButton.js +1 -1
  714. package/es/stories/lists/baseProps.js +1 -1
  715. package/es/tasty/index.js +1 -1
  716. package/es/tasty/providers/BreakpointsProvider.js +1 -1
  717. package/es/tasty/styles/align.js +1 -1
  718. package/es/tasty/styles/border.js +1 -1
  719. package/es/tasty/styles/boxShadow.combinator.js +1 -1
  720. package/es/tasty/styles/color.js +1 -1
  721. package/es/tasty/styles/createStyle.js +1 -1
  722. package/es/tasty/styles/dimension.js +1 -1
  723. package/es/tasty/styles/display.js +1 -1
  724. package/es/tasty/styles/fade.js +1 -1
  725. package/es/tasty/styles/fill.js +1 -1
  726. package/es/tasty/styles/flow.js +1 -1
  727. package/es/tasty/styles/font.js +1 -1
  728. package/es/tasty/styles/fontStyle.js +1 -1
  729. package/es/tasty/styles/gap.js +1 -1
  730. package/es/tasty/styles/groupRadius.js +1 -1
  731. package/es/tasty/styles/height.js +1 -1
  732. package/es/tasty/styles/index.js +1 -1
  733. package/es/tasty/styles/inset.js +1 -1
  734. package/es/tasty/styles/justify.js +1 -1
  735. package/es/tasty/styles/list.js +1 -1
  736. package/es/tasty/styles/margin.js +1 -1
  737. package/es/tasty/styles/marginBlock.js +1 -1
  738. package/es/tasty/styles/marginInline.js +1 -1
  739. package/es/tasty/styles/outline.js +1 -1
  740. package/es/tasty/styles/padding.js +1 -1
  741. package/es/tasty/styles/paddingBlock.js +1 -1
  742. package/es/tasty/styles/paddingInline.js +1 -1
  743. package/es/tasty/styles/predefined.js +1 -1
  744. package/es/tasty/styles/preset.js +1 -1
  745. package/es/tasty/styles/radius.js +1 -1
  746. package/es/tasty/styles/reset.js +1 -1
  747. package/es/tasty/styles/shadow.js +1 -1
  748. package/es/tasty/styles/styledScrollbar.js +1 -1
  749. package/es/tasty/styles/transition.js +1 -1
  750. package/es/tasty/styles/types.js +1 -1
  751. package/es/tasty/styles/width.js +1 -1
  752. package/es/tasty/tasty.js +1 -1
  753. package/es/tasty/types.js +1 -1
  754. package/es/tasty/utils/cache-wrapper.js +1 -1
  755. package/es/tasty/utils/case-converter.js +1 -1
  756. package/es/tasty/utils/colors.js +1 -1
  757. package/es/tasty/utils/dotize.js +1 -1
  758. package/es/tasty/utils/filterBaseProps.js +1 -1
  759. package/es/tasty/utils/getDisplayName.js +1 -1
  760. package/es/tasty/utils/index.js +1 -1
  761. package/es/tasty/utils/mergeStyles.js +1 -1
  762. package/es/tasty/utils/modAttrs.js +1 -1
  763. package/es/tasty/utils/renderStyles.js +1 -1
  764. package/es/tasty/utils/responsive.js +1 -1
  765. package/es/tasty/utils/string.js +1 -1
  766. package/es/tasty/utils/styles.js +1 -1
  767. package/es/tasty/utils/warnings.js +1 -1
  768. package/es/tokens.js +1 -1
  769. package/es/type-checks.js +2 -2
  770. package/es/utils/ResizeSensor.js +1 -1
  771. package/es/utils/modules.js +1 -1
  772. package/es/utils/promise.js +1 -1
  773. package/es/utils/random.js +1 -1
  774. package/es/utils/range.js +1 -1
  775. package/es/utils/react/Slots.js +1 -1
  776. package/es/utils/react/chain.js +1 -1
  777. package/es/utils/react/index.js +1 -1
  778. package/es/utils/react/interactions.js +1 -1
  779. package/es/utils/react/isTextOnly.js +1 -1
  780. package/es/utils/react/mapProps.js +1 -1
  781. package/es/utils/react/mergeProps.js +1 -1
  782. package/es/utils/react/nullableValue.js +1 -1
  783. package/es/utils/react/useCombinedRefs.js +1 -1
  784. package/es/utils/react/useId.js +1 -1
  785. package/es/utils/react/useLayoutEffect.js +1 -1
  786. package/es/utils/react/useViewportSize.js +1 -1
  787. package/es/utils/react/wrapNodeIfPlain.js +1 -1
  788. package/es/utils/transitions.js +1 -1
  789. package/es/utils/tree.js +1 -1
  790. package/es/utils/warnings.js +1 -1
  791. package/es/version.js +25 -0
  792. package/package.json +1 -16
  793. package/types/components/Block.d.ts +0 -1
  794. package/types/components/HiddenInput.d.ts +0 -1
  795. package/types/components/actions/Action.d.ts +2 -2
  796. package/types/components/actions/Button/Button.d.ts +1 -1
  797. package/types/components/actions/Button/Submit.d.ts +0 -1
  798. package/types/components/actions/ButtonGroup/ButtonGroup.d.ts +0 -1
  799. package/types/components/actions/index.d.ts +1 -2
  800. package/types/components/actions/use-action.d.ts +2 -2
  801. package/types/components/content/Alert/Alert.d.ts +0 -1
  802. package/types/components/content/Badge/Badge.d.ts +0 -1
  803. package/types/components/content/Card/Card.d.ts +0 -1
  804. package/types/components/content/Content.d.ts +0 -1
  805. package/types/components/content/CopySnippet/CopySnippet.d.ts +6 -238
  806. package/types/components/content/Divider.d.ts +0 -1
  807. package/types/components/content/Footer.d.ts +0 -1
  808. package/types/components/content/Header.d.ts +0 -1
  809. package/types/components/content/Paragraph.d.ts +0 -1
  810. package/types/components/content/Placeholder/Placeholder.d.ts +0 -1
  811. package/types/components/content/PrismCode/PrismCode.d.ts +0 -1
  812. package/types/components/content/Title.d.ts +0 -1
  813. package/types/components/{forms → fields}/Checkbox/Checkbox.d.ts +9 -6
  814. package/types/components/{forms → fields}/Checkbox/CheckboxGroup.d.ts +3 -4
  815. package/types/components/{forms → fields}/Checkbox/context.d.ts +0 -1
  816. package/types/components/fields/Checkbox/index.d.ts +2 -0
  817. package/types/components/{pickers → fields}/ComboBox/ComboBox.d.ts +8 -5
  818. package/types/components/fields/ComboBox/index.d.ts +1 -0
  819. package/types/components/{forms → fields}/DatePicker/DateInput.d.ts +1 -1
  820. package/types/components/{forms → fields}/DatePicker/DatePicker.d.ts +3 -2
  821. package/types/components/fields/DatePicker/DatePickerButton.d.ts +5 -0
  822. package/types/components/{forms → fields}/DatePicker/DatePickerElement.d.ts +4 -1
  823. package/types/components/{forms → fields}/DatePicker/DatePickerInput.d.ts +4 -3
  824. package/types/components/{forms → fields}/DatePicker/DatePickerSegment.d.ts +3 -2
  825. package/types/components/{forms → fields}/DatePicker/DateRangePicker.d.ts +3 -2
  826. package/types/components/{forms → fields}/DatePicker/DateRangeSeparatedPicker.d.ts +3 -2
  827. package/types/components/{forms → fields}/DatePicker/TimeInput.d.ts +2 -2
  828. package/types/components/{forms → fields}/DatePicker/index.d.ts +1 -0
  829. package/types/components/fields/DatePicker/props.d.ts +3 -0
  830. package/types/components/fields/DatePicker/types.d.ts +29 -0
  831. package/types/components/{forms → fields}/DatePicker/utils.d.ts +0 -1
  832. package/types/components/{forms → fields}/FileInput/FileInput.d.ts +6 -1
  833. package/types/components/{forms → fields}/Input/Input.d.ts +1 -1
  834. package/types/components/{forms → fields}/NumberInput/NumberInput.d.ts +5 -7
  835. package/types/components/{forms → fields}/PasswordInput/PasswordInput.d.ts +5 -6
  836. package/types/components/{forms → fields}/RadioGroup/Radio.d.ts +20 -34
  837. package/types/components/{forms → fields}/RadioGroup/RadioGroup.d.ts +7 -4
  838. package/types/components/{forms → fields}/RadioGroup/context.d.ts +0 -1
  839. package/types/components/fields/RadioGroup/index.d.ts +2 -0
  840. package/types/components/fields/SearchInput/SearchInput.d.ts +11 -0
  841. package/types/components/fields/SearchInput/index.d.ts +1 -0
  842. package/types/components/{pickers → fields}/Select/Select.d.ts +10 -5
  843. package/types/components/fields/Select/index.d.ts +1 -0
  844. package/types/components/{forms → fields}/Slider/Gradation.d.ts +1 -1
  845. package/types/components/{forms → fields}/Slider/RangeSlider.d.ts +1 -2
  846. package/types/components/{forms → fields}/Slider/Slider.d.ts +1 -2
  847. package/types/components/{forms → fields}/Slider/SliderBase.d.ts +5 -3
  848. package/types/components/{forms → fields}/Slider/SliderInput.d.ts +1 -1
  849. package/types/components/{forms → fields}/Slider/SliderThumb.d.ts +1 -1
  850. package/types/components/{forms → fields}/Slider/SliderTrack.d.ts +1 -1
  851. package/types/components/{forms → fields}/Slider/elements.d.ts +0 -1
  852. package/types/components/fields/Slider/index.d.ts +5 -0
  853. package/types/components/{forms → fields}/Slider/types.d.ts +2 -1
  854. package/types/components/{forms → fields}/Switch/Switch.d.ts +5 -4
  855. package/types/components/fields/Switch/index.d.ts +1 -0
  856. package/types/components/{forms → fields}/TextArea/TextArea.d.ts +4 -7
  857. package/types/components/fields/TextArea/index.d.ts +1 -0
  858. package/types/components/{forms → fields}/TextInput/TextInput.d.ts +3 -5
  859. package/types/components/{forms → fields}/TextInput/TextInputBase.d.ts +3 -4
  860. package/types/components/fields/TextInput/index.d.ts +2 -0
  861. package/types/components/fields/index.d.ts +14 -0
  862. package/types/components/{forms → form}/FieldWrapper/FieldWrapper.d.ts +0 -1
  863. package/types/components/{forms → form}/FieldWrapper/types.d.ts +4 -3
  864. package/types/components/{forms → form}/Form/Field.d.ts +2 -2
  865. package/types/components/{forms → form}/Form/Form.d.ts +2 -2
  866. package/types/components/{forms → form}/Form/Submit/Submit.d.ts +2 -3
  867. package/types/components/{forms → form}/Form/SubmitError.d.ts +1 -1
  868. package/types/components/{forms → form}/Form/index.d.ts +4 -5
  869. package/types/components/{forms → form}/Form/use-field/types.d.ts +2 -2
  870. package/types/components/{forms → form}/Form/use-field/use-field-props.d.ts +1 -1
  871. package/types/components/{forms → form}/Form/use-field/use-field.d.ts +1 -1
  872. package/types/components/{forms → form}/Form/use-form.d.ts +1 -0
  873. package/types/components/{forms → form}/Label.d.ts +2 -2
  874. package/types/components/form/index.d.ts +4 -0
  875. package/types/components/{forms → form}/wrapper.d.ts +2 -2
  876. package/types/components/layout/Flex.d.ts +0 -1
  877. package/types/components/layout/Flow.d.ts +0 -1
  878. package/types/components/layout/Grid.d.ts +0 -1
  879. package/types/components/layout/Space.d.ts +0 -1
  880. package/types/components/navigation/Link/Link.d.ts +1 -2
  881. package/types/components/other/Base64Upload/Base64Upload.d.ts +1 -2
  882. package/types/components/other/Calendar/Calendar.d.ts +1 -2
  883. package/types/components/other/Calendar/RangeCalendar.d.ts +2 -3
  884. package/types/components/other/CloudLogo/CloudLogo.d.ts +1 -2
  885. package/types/components/overlays/AlertDialog/AlertDialog.d.ts +1 -1
  886. package/types/components/overlays/AlertDialog/AlertDialogZone.d.ts +0 -1
  887. package/types/components/overlays/AlertDialog/types.d.ts +1 -1
  888. package/types/components/overlays/Dialog/Dialog.d.ts +2 -1
  889. package/types/components/overlays/Dialog/DialogForm.d.ts +1 -2
  890. package/types/components/overlays/Dialog/DialogTrigger.d.ts +6 -1
  891. package/types/components/overlays/Modal/Modal.d.ts +2 -4
  892. package/types/components/overlays/Modal/OpenTransition.d.ts +2 -1
  893. package/types/components/overlays/Modal/Overlay.d.ts +2 -3
  894. package/types/components/overlays/Modal/Popover.d.ts +2 -2
  895. package/types/components/overlays/Modal/Tray.d.ts +8 -3
  896. package/types/components/overlays/Modal/types.d.ts +9 -0
  897. package/types/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.d.ts +0 -1
  898. package/types/components/overlays/NewNotifications/NotificationView/NotificationIcon.d.ts +0 -1
  899. package/types/components/overlays/NewNotifications/NotificationView/NotificationView.d.ts +5 -6
  900. package/types/components/overlays/NewNotifications/NotificationsList/NotificationsList.d.ts +2 -2
  901. package/types/components/overlays/OverlayWrapper.d.ts +2 -1
  902. package/types/components/overlays/Toasts/use-toasts-api.d.ts +0 -1
  903. package/types/components/overlays/Tooltip/Tooltip.d.ts +6 -2
  904. package/types/components/overlays/Tooltip/TooltipTrigger.d.ts +23 -2
  905. package/types/components/overlays/Tooltip/index.d.ts +2 -0
  906. package/types/components/pickers/Menu/Menu.d.ts +5 -2
  907. package/types/components/pickers/Menu/MenuTrigger.d.ts +5 -10
  908. package/types/components/pickers/Menu/styled.d.ts +8 -1
  909. package/types/components/portal/Portal.d.ts +0 -1
  910. package/types/components/portal/usePortal.d.ts +0 -1
  911. package/types/components/status/Spin/Cube.d.ts +1 -2
  912. package/types/components/status/Spin/InternalSpinner.d.ts +0 -1
  913. package/types/components/status/Spin/SpinsContainer.d.ts +1 -2
  914. package/types/icons/IconContainer.d.ts +0 -1
  915. package/types/index.d.ts +6 -37
  916. package/types/stories/components/ConfirmDeletionDialogForm.d.ts +1 -2
  917. package/types/stories/components/StyledButton.d.ts +3 -120
  918. package/types/tasty/types.d.ts +2 -1
  919. package/types/tasty/utils/dotize.d.ts +1 -1
  920. package/types/utils/react/mapProps.d.ts +1 -1
  921. package/types/version.d.ts +5 -0
  922. package/es/components/forms/index.js +0 -17
  923. package/types/components/forms/DatePicker/DatePickerButton.d.ts +0 -122
  924. package/types/components/forms/DatePicker/props.d.ts +0 -4
  925. package/types/components/forms/SearchInput/SearchInput.d.ts +0 -11
  926. package/types/components/forms/Slider/index.d.ts +0 -3
  927. package/types/components/forms/index.d.ts +0 -8
  928. /package/types/components/{forms → fields}/DatePicker/DateInputBase.d.ts +0 -0
  929. /package/types/components/{forms → fields}/DatePicker/intl.d.ts +0 -0
  930. /package/types/components/{forms → fields}/DatePicker/parseDate.d.ts +0 -0
  931. /package/types/components/{forms → fields}/Input/index.d.ts +0 -0
  932. /package/types/components/{forms → fields}/NumberInput/StepButton.d.ts +0 -0
  933. /package/types/components/{forms → fields}/Slider/Header.d.ts +0 -0
  934. /package/types/components/{forms → form}/FieldWrapper/extract-field-wrapper-props.d.ts +0 -0
  935. /package/types/components/{forms → form}/FieldWrapper/index.d.ts +0 -0
  936. /package/types/components/{forms → form}/Form/Submit/index.d.ts +0 -0
  937. /package/types/components/{forms → form}/Form/types.d.ts +0 -0
  938. /package/types/components/{forms → form}/Form/use-field/index.d.ts +0 -0
  939. /package/types/components/{forms → form}/Form/validation.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  "use strict";
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.Skeleton = void 0;
10
+ exports.Skeleton = Skeleton;
11
11
  const jsx_runtime_1 = require("react/jsx-runtime");
12
12
  const Placeholder_1 = require("../Placeholder/Placeholder");
13
13
  const Flow_1 = require("../../layout/Flow");
@@ -74,6 +74,5 @@ function Skeleton({ layout, isStatic, ...props }) {
74
74
  layout = layout || 'page';
75
75
  return LAYOUT_MAP[layout] ? (LAYOUT_MAP[layout]({ isStatic, ...props, qa: 'Skeleton' })) : ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { ...props }));
76
76
  }
77
- exports.Skeleton = Skeleton;
78
77
 
79
78
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,28 +1,28 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  "use strict";
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.Checkbox = void 0;
10
+ exports.useCheckbox = exports.Checkbox = void 0;
11
11
  const jsx_runtime_1 = require("react/jsx-runtime");
12
12
  const utils_1 = require("@react-spectrum/utils");
13
13
  const react_1 = require("react");
14
14
  const react_aria_1 = require("react-aria");
15
+ Object.defineProperty(exports, "useCheckbox", { enumerable: true, get: function () { return react_aria_1.useCheckbox; } });
15
16
  const react_stately_1 = require("react-stately");
16
17
  const provider_1 = require("../../../provider");
17
18
  const tasty_1 = require("../../../tasty");
18
19
  const interactions_1 = require("../../../utils/react/interactions");
19
20
  const react_2 = require("../../../utils/react");
20
- const Label_1 = require("../Label");
21
21
  const HiddenInput_1 = require("../../HiddenInput");
22
- const Form_1 = require("../Form");
22
+ const form_1 = require("../../form");
23
23
  const nullableValue_1 = require("../../../utils/react/nullableValue");
24
24
  const Text_1 = require("../../content/Text");
25
- const wrapper_1 = require("../wrapper");
25
+ const form_2 = require("../../form");
26
26
  const CheckboxGroup_1 = require("./CheckboxGroup");
27
27
  const context_1 = require("./context");
28
28
  function CheckOutlined() {
@@ -85,8 +85,8 @@ function Checkbox(props, ref) {
85
85
  props = (0, nullableValue_1.castNullableIsSelected)(props);
86
86
  let originalProps = props;
87
87
  props = (0, provider_1.useProviderProps)(props);
88
- props = (0, Form_1.useFormProps)(props);
89
- props = (0, Form_1.useFieldProps)(props, {
88
+ props = (0, form_1.useFormProps)(props);
89
+ props = (0, form_1.useFieldProps)(props, {
90
90
  defaultValidationTrigger: 'onChange',
91
91
  valuePropsMapper: ({ value, onChange }) => ({
92
92
  isSelected: value ?? false,
@@ -99,7 +99,7 @@ function Checkbox(props, ref) {
99
99
  let styles = (0, tasty_1.extractStyles)(props, tasty_1.OUTER_STYLES);
100
100
  inputStyles = (0, tasty_1.extractStyles)(props, tasty_1.BLOCK_STYLES, inputStyles);
101
101
  labelStyles = (0, react_1.useMemo)(() => ({
102
- ...(insideForm ? Label_1.LABEL_STYLES : Label_1.INLINE_LABEL_STYLES),
102
+ ...(insideForm ? form_1.LABEL_STYLES : form_1.INLINE_LABEL_STYLES),
103
103
  ...labelStyles,
104
104
  }), [insideForm, labelStyles]);
105
105
  let { isFocused, focusProps } = (0, interactions_1.useFocus)({ isDisabled }, true);
@@ -148,7 +148,7 @@ function Checkbox(props, ref) {
148
148
  };
149
149
  const checkboxField = ((0, jsx_runtime_1.jsxs)(CheckboxWrapperElement, { isHidden: isHidden, mods: mods, styles: { position: 'relative' }, children: [(0, jsx_runtime_1.jsx)(HiddenInput_1.HiddenInput, { "data-qa": "HiddenInput", ...(0, react_2.mergeProps)(inputProps, focusProps), ref: inputRef }), (0, jsx_runtime_1.jsx)(CheckboxElement, { qa: qa || 'Checkbox', mods: mods, styles: inputStyles, children: markIcon }), children && (0, jsx_runtime_1.jsx)(Text_1.Text, { nowrap: true, children: children })] }));
150
150
  if (insideForm && !groupState) {
151
- return (0, wrapper_1.wrapWithField)(checkboxField, domRef, {
151
+ return (0, form_2.wrapWithField)(checkboxField, domRef, {
152
152
  ...props,
153
153
  children: null,
154
154
  labelStyles,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -16,9 +16,8 @@ const react_stately_1 = require("react-stately");
16
16
  const provider_1 = require("../../../provider");
17
17
  const tasty_1 = require("../../../tasty");
18
18
  const nullableValue_1 = require("../../../utils/react/nullableValue");
19
- const Form_1 = require("../Form");
19
+ const form_1 = require("../../form");
20
20
  const react_2 = require("../../../utils/react");
21
- const wrapper_1 = require("../wrapper");
22
21
  const context_1 = require("./context");
23
22
  const CheckGroupElement = (0, tasty_1.tasty)({
24
23
  qa: 'CheckboxGroup',
@@ -39,8 +38,8 @@ const CheckGroupElement = (0, tasty_1.tasty)({
39
38
  function CheckboxGroup(props, ref) {
40
39
  props = (0, nullableValue_1.castNullableArrayValue)(props);
41
40
  props = (0, provider_1.useProviderProps)(props);
42
- props = (0, Form_1.useFormProps)(props);
43
- props = (0, Form_1.useFieldProps)(props, {
41
+ props = (0, form_1.useFormProps)(props);
42
+ props = (0, form_1.useFieldProps)(props, {
44
43
  defaultValidationTrigger: 'onChange',
45
44
  valuePropsMapper: ({ value, onChange }) => ({
46
45
  value: value != null ? value : [],
@@ -54,11 +53,11 @@ function CheckboxGroup(props, ref) {
54
53
  let { groupProps, labelProps } = (0, react_aria_1.useCheckboxGroup)(props, state);
55
54
  let radioGroup = ((0, jsx_runtime_1.jsx)(CheckGroupElement, { styles: inputStyles, mods: {
56
55
  horizontal: orientation === 'horizontal',
57
- }, children: (0, jsx_runtime_1.jsx)(Form_1.FormContext.Provider, { value: {
56
+ }, children: (0, jsx_runtime_1.jsx)(form_1.FormContext.Provider, { value: {
58
57
  isDisabled,
59
58
  validationState,
60
59
  }, children: (0, jsx_runtime_1.jsx)(context_1.CheckboxGroupContext.Provider, { value: state, children: children }) }) }));
61
- return (0, wrapper_1.wrapWithField)(radioGroup, domRef, {
60
+ return (0, form_1.wrapWithField)(radioGroup, domRef, {
62
61
  ...props,
63
62
  children: null,
64
63
  fieldProps: groupProps,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -21,8 +21,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
21
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
22
  };
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- __exportStar(require("./RangeSlider"), exports);
25
- __exportStar(require("./Slider"), exports);
26
- __exportStar(require("./types"), exports);
24
+ __exportStar(require("./Checkbox"), exports);
25
+ __exportStar(require("./CheckboxGroup"), exports);
27
26
 
28
27
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -12,15 +12,14 @@ const jsx_runtime_1 = require("react/jsx-runtime");
12
12
  const react_1 = require("react");
13
13
  const react_aria_1 = require("react-aria");
14
14
  const react_stately_1 = require("react-stately");
15
- const forms_1 = require("../../forms");
15
+ const form_1 = require("../../form");
16
+ const index_1 = require("../index");
16
17
  const provider_1 = require("../../../provider");
17
18
  const tasty_1 = require("../../../tasty");
18
19
  const interactions_1 = require("../../../utils/react/interactions");
19
20
  const react_2 = require("../../../utils/react");
20
- const Select_1 = require("../Select/Select");
21
- const forms_2 = require("../../forms");
21
+ const Select_1 = require("../Select");
22
22
  const OverlayWrapper_1 = require("../../overlays/OverlayWrapper");
23
- const wrapper_1 = require("../../forms/wrapper");
24
23
  const icons_1 = require("../../../icons");
25
24
  const InvalidIcon_1 = require("../../shared/InvalidIcon");
26
25
  const ValidIcon_1 = require("../../shared/ValidIcon");
@@ -28,11 +27,11 @@ function CaretDownIcon() {
28
27
  return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", width: "14", height: "14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z", fill: "currentColor" }) }));
29
28
  }
30
29
  const ComboBoxWrapperElement = (0, tasty_1.tasty)({
31
- styles: forms_2.INPUT_WRAPPER_STYLES,
30
+ styles: index_1.INPUT_WRAPPER_STYLES,
32
31
  });
33
32
  const InputElement = (0, tasty_1.tasty)({
34
33
  as: 'input',
35
- styles: forms_2.DEFAULT_INPUT_STYLES,
34
+ styles: index_1.DEFAULT_INPUT_STYLES,
36
35
  });
37
36
  const TriggerElement = (0, tasty_1.tasty)({
38
37
  as: 'button',
@@ -63,8 +62,8 @@ const TriggerElement = (0, tasty_1.tasty)({
63
62
  });
64
63
  exports.ComboBox = (0, react_1.forwardRef)(function ComboBox(props, ref) {
65
64
  props = (0, provider_1.useProviderProps)(props);
66
- props = (0, forms_1.useFormProps)(props);
67
- props = (0, forms_1.useFieldProps)(props, {
65
+ props = (0, form_1.useFormProps)(props);
66
+ props = (0, form_1.useFieldProps)(props, {
68
67
  valuePropsMapper: ({ value, onChange }) => ({
69
68
  inputValue: value != null ? value : '',
70
69
  onInputChange: (val) => onChange(val, !props.allowsCustomValue),
@@ -74,43 +73,12 @@ exports.ComboBox = (0, react_1.forwardRef)(function ComboBox(props, ref) {
74
73
  let { qa, label, extra, labelStyles, isRequired, necessityIndicator, validationState, icon, prefix, isDisabled, multiLine, autoFocus, wrapperRef, inputRef, triggerRef, popoverRef, listBoxRef, isLoading, loadingIndicator, overlayOffset = 8, inputStyles, optionStyles, triggerStyles, suffix, listBoxStyles, overlayStyles, hideTrigger, message, description, size, autoComplete = 'off', direction = 'bottom', shouldFlip = true, menuTrigger = 'input', suffixPosition = 'before', loadingState, filter, styles, labelSuffix, ...otherProps } = props;
75
74
  let isAsync = loadingState != null;
76
75
  let { contains } = (0, react_aria_1.useFilter)({ sensitivity: 'base' });
77
- const comboboxProps = {
78
- ...otherProps,
79
- inputValue: props.inputValue,
80
- defaultInputValue: props.defaultInputValue,
81
- defaultItems: props.defaultItems,
82
- defaultSelectedKey: props.defaultSelectedKey,
83
- children: props.children,
84
- items: props.items,
85
- selectedKey: props.selectedKey,
86
- label: props.label,
87
- isDisabled: props.isDisabled,
88
- validationState: props.validationState,
89
- placeholder: props.placeholder,
90
- description: props.description,
91
- autoFocus: props.autoFocus,
92
- isRequired: props.isRequired,
93
- allowsCustomValue: props.allowsCustomValue,
94
- menuTrigger,
95
- disabledKeys: props.disabledKeys,
96
- name: props.name,
97
- onInputChange: props.onInputChange,
98
- errorMessage: props.errorMessage,
99
- isReadOnly: props.isReadOnly,
100
- onBlur: props.onBlur,
101
- onFocus: props.onFocus,
102
- onSelectionChange: props.onSelectionChange,
103
- onFocusChange: props.onFocusChange,
104
- onKeyDown: props.onKeyDown,
105
- onKeyUp: props.onKeyUp,
106
- onOpenChange: props.onOpenChange,
107
- defaultFilter: filter || contains,
108
- allowsEmptyCollection: isAsync,
109
- };
110
76
  let state = (0, react_stately_1.useComboBoxState)({
111
- ...comboboxProps,
77
+ ...props,
112
78
  defaultFilter: filter || contains,
79
+ filter: undefined,
113
80
  allowsEmptyCollection: isAsync,
81
+ menuTrigger,
114
82
  });
115
83
  const outerStyles = (0, tasty_1.extractStyles)(otherProps, tasty_1.OUTER_STYLES, styles);
116
84
  inputStyles = (0, tasty_1.extractStyles)(otherProps, tasty_1.BLOCK_STYLES, inputStyles);
@@ -131,7 +99,7 @@ exports.ComboBox = (0, react_1.forwardRef)(function ComboBox(props, ref) {
131
99
  offset: overlayOffset,
132
100
  });
133
101
  let { labelProps, inputProps, listBoxProps, buttonProps: triggerProps, } = (0, react_aria_1.useComboBox)({
134
- ...comboboxProps,
102
+ ...props,
135
103
  inputRef,
136
104
  buttonRef: triggerRef,
137
105
  listBoxRef,
@@ -189,7 +157,7 @@ exports.ComboBox = (0, react_1.forwardRef)(function ComboBox(props, ref) {
189
157
  disabled: isDisabled,
190
158
  loading: isLoading,
191
159
  }), ref: triggerRef, "data-size": size, isDisabled: isDisabled, styles: triggerStyles, children: (0, jsx_runtime_1.jsx)(CaretDownIcon, {}) })) : null] }), (0, jsx_runtime_1.jsx)(OverlayWrapper_1.OverlayWrapper, { isOpen: state.isOpen && !isDisabled, children: (0, jsx_runtime_1.jsx)(Select_1.ListBoxPopup, { ...listBoxProps, shouldUseVirtualFocus: true, listBoxRef: listBoxRef, popoverRef: popoverRef, overlayProps: overlayProps, placement: placement, state: state, listBoxStyles: listBoxStyles, overlayStyles: overlayStyles, optionStyles: optionStyles, minWidth: comboBoxWidth }) })] }));
192
- return (0, wrapper_1.wrapWithField)(comboBoxField, ref, (0, react_2.mergeProps)({ ...props, styles }, { labelProps }));
160
+ return (0, form_1.wrapWithField)(comboBoxField, ref, (0, react_2.mergeProps)({ ...props, styles }, { labelProps }));
193
161
  });
194
162
  exports.ComboBox.Item = react_stately_1.Item;
195
163
  Object.defineProperty(exports.ComboBox, 'cubeInputType', {
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license MIT
3
+ * author: Cube Dev Team
4
+ * @cube-dev/ui-kit v0.41.0
5
+ * Released under the MIT license.
6
+ */
7
+
8
+ "use strict";
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ __exportStar(require("./ComboBox"), exports);
25
+
26
+
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -14,10 +14,9 @@ const date_1 = require("@internationalized/date");
14
14
  const react_aria_1 = require("react-aria");
15
15
  const react_stately_1 = require("react-stately");
16
16
  const provider_1 = require("../../../provider");
17
- const wrapper_1 = require("../wrapper");
17
+ const form_1 = require("../../form");
18
18
  const tasty_1 = require("../../../tasty");
19
19
  const react_2 = require("../../../utils/react");
20
- const Form_1 = require("../Form");
21
20
  const utils_1 = require("./utils");
22
21
  const DateInputBase_1 = require("./DateInputBase");
23
22
  const DatePickerSegment_1 = require("./DatePickerSegment");
@@ -25,8 +24,8 @@ const props_1 = require("./props");
25
24
  const parseDate_1 = require("./parseDate");
26
25
  function DateInput(props, ref) {
27
26
  props = (0, provider_1.useProviderProps)(props);
28
- props = (0, Form_1.useFormProps)(props);
29
- props = (0, Form_1.useFieldProps)(props, {
27
+ props = (0, form_1.useFormProps)(props);
28
+ props = (0, form_1.useFieldProps)(props, {
30
29
  defaultValidationTrigger: 'onBlur',
31
30
  valuePropsMapper: ({ value, onChange }) => ({
32
31
  value: typeof value === 'string' ? (0, parseDate_1.parseAbsoluteDate)(value) : value,
@@ -49,7 +48,7 @@ function DateInput(props, ref) {
49
48
  let fieldRef = (0, react_1.useRef)(null);
50
49
  let { labelProps, fieldProps } = (0, react_aria_1.useDateField)(props, state, fieldRef);
51
50
  const component = ((0, jsx_runtime_1.jsx)(DateInputBase_1.DateInputBase, { ref: fieldRef, size: size, fieldProps: fieldProps, isDisabled: isDisabled, autoFocus: autoFocus, validationState: state.validationState, styles: wrapperStyles, inputStyles: inputStyles, children: state.segments.map((segment, i) => ((0, jsx_runtime_1.jsx)(DatePickerSegment_1.DatePickerSegment, { segment: segment, state: state, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired }, i))) }));
52
- return (0, wrapper_1.wrapWithField)(component, domRef, {
51
+ return (0, form_1.wrapWithField)(component, domRef, {
53
52
  ...props,
54
53
  styles,
55
54
  labelProps: (0, react_2.mergeProps)(props.labelProps, labelProps),
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -13,10 +13,9 @@ const react_1 = require("react");
13
13
  const react_aria_1 = require("react-aria");
14
14
  const react_stately_1 = require("react-stately");
15
15
  const provider_1 = require("../../../provider");
16
- const wrapper_1 = require("../wrapper");
17
16
  const tasty_1 = require("../../../tasty");
18
17
  const react_2 = require("../../../utils/react");
19
- const Form_1 = require("../Form");
18
+ const form_1 = require("../../form");
20
19
  const Dialog_1 = require("../../overlays/Dialog");
21
20
  const Calendar_1 = require("../../other/Calendar/Calendar");
22
21
  const utils_1 = require("./utils");
@@ -29,8 +28,8 @@ const intl_1 = require("./intl");
29
28
  const DatePickerElement_1 = require("./DatePickerElement");
30
29
  function DatePicker(props, ref) {
31
30
  props = (0, provider_1.useProviderProps)(props);
32
- props = (0, Form_1.useFormProps)(props);
33
- props = (0, Form_1.useFieldProps)(props, {
31
+ props = (0, form_1.useFormProps)(props);
32
+ props = (0, form_1.useFieldProps)(props, {
34
33
  defaultValidationTrigger: 'onBlur',
35
34
  });
36
35
  props = Object.assign({}, props_1.DEFAULT_DATE_PROPS, props);
@@ -66,7 +65,7 @@ function DatePicker(props, ref) {
66
65
  let showTimeField = !!timeGranularity;
67
66
  // let visibleMonths = useVisibleMonths(maxVisibleMonths);
68
67
  const component = ((0, jsx_runtime_1.jsxs)(DatePickerElement_1.DatePickerElement, { ref: targetRef, styles: props.wrapperStyles, mods: { focused: isFocused && !isFocusedButton }, ...focusProps, children: [(0, jsx_runtime_1.jsx)(DateInputBase_1.DateInputBase, { disableFocusRing: true, radius: "left", border: "top left bottom", isDisabled: isDisabled, validationState: validationState, size: size, children: (0, jsx_runtime_1.jsx)(DatePickerInput_1.DatePickerInput, { useLocale: useLocaleProp, ...fieldProps }) }), (0, jsx_runtime_1.jsxs)(Dialog_1.DialogTrigger, { hideArrow: true, type: "popover", mobileType: "tray", placement: "bottom right", targetRef: targetRef, isOpen: isOpen, shouldFlip: props.shouldFlip, onOpenChange: setOpen, children: [(0, jsx_runtime_1.jsx)(DatePickerButton_1.DatePickerButton, { size: size, ...(0, react_2.mergeProps)(buttonProps, focusPropsButton), isDisabled: isDisabled }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...dialogProps, width: "max-content", children: [(0, jsx_runtime_1.jsx)(Calendar_1.Calendar, { ...calendarProps }), showTimeField && ((0, jsx_runtime_1.jsx)(TimeInput_1.TimeInput, { padding: "1x", label: intl_1.dateMessages['time'], value: state.timeValue, placeholderValue: timePlaceholder, granularity: timeGranularity, minValue: timeMinValue, maxValue: timeMaxValue, hourCycle: props.hourCycle, hideTimeZone: props.hideTimeZone, onChange: state.setTimeValue }))] })] })] }));
69
- return (0, wrapper_1.wrapWithField)(component, domRef, {
68
+ return (0, form_1.wrapWithField)(component, domRef, {
70
69
  ...props,
71
70
  styles,
72
71
  labelProps: (0, react_2.mergeProps)(props.labelProps, labelProps),
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  "use strict";
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.DatePickerInput = void 0;
10
+ exports.DatePickerInput = DatePickerInput;
11
11
  const jsx_runtime_1 = require("react/jsx-runtime");
12
12
  const react_1 = require("react");
13
13
  const date_1 = require("@internationalized/date");
@@ -50,6 +50,5 @@ function DatePickerInput(props) {
50
50
  let { fieldProps } = (0, react_aria_1.useDateField)(props, state, ref);
51
51
  return ((0, jsx_runtime_1.jsx)(DateInputElement, { ref: ref, ...(0, react_2.mergeProps)(fieldProps, focusWithinProps), children: state.segments.map((segment, i) => ((0, jsx_runtime_1.jsx)(DatePickerSegment_1.DatePickerSegment, { segment: segment, state: state, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired }, i))) }));
52
52
  }
53
- exports.DatePickerInput = DatePickerInput;
54
53
 
55
54
 
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  "use strict";
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.DatePickerSegment = void 0;
10
+ exports.DatePickerSegment = DatePickerSegment;
11
11
  const jsx_runtime_1 = require("react/jsx-runtime");
12
12
  const react_1 = require("react");
13
13
  const react_aria_1 = require("react-aria");
@@ -49,7 +49,6 @@ function DatePickerSegment({ segment, state, ...otherProps }) {
49
49
  return ((0, jsx_runtime_1.jsx)(EditableSegment, { segment: segment, state: state, ...otherProps }));
50
50
  }
51
51
  }
52
- exports.DatePickerSegment = DatePickerSegment;
53
52
  function LiteralSegment({ segment }) {
54
53
  return ((0, jsx_runtime_1.jsx)(LiteralSegmentElement, { "data-type": segment.type === 'literal' ? undefined : segment.type, children: segment.text }));
55
54
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -13,10 +13,9 @@ const react_1 = require("react");
13
13
  const react_aria_1 = require("react-aria");
14
14
  const react_stately_1 = require("react-stately");
15
15
  const provider_1 = require("../../../provider");
16
- const wrapper_1 = require("../wrapper");
17
16
  const tasty_1 = require("../../../tasty");
18
17
  const react_2 = require("../../../utils/react");
19
- const Form_1 = require("../Form");
18
+ const form_1 = require("../../form");
20
19
  const Space_1 = require("../../layout/Space");
21
20
  const Dialog_1 = require("../../overlays/Dialog");
22
21
  const RangeCalendar_1 = require("../../other/Calendar/RangeCalendar");
@@ -38,8 +37,8 @@ const DateRangeDash = (0, tasty_1.tasty)({
38
37
  });
39
38
  function DateRangePicker(props, ref) {
40
39
  props = (0, provider_1.useProviderProps)(props);
41
- props = (0, Form_1.useFormProps)(props);
42
- props = (0, Form_1.useFieldProps)(props, {
40
+ props = (0, form_1.useFormProps)(props);
41
+ props = (0, form_1.useFieldProps)(props, {
43
42
  defaultValidationTrigger: 'onBlur',
44
43
  });
45
44
  props = Object.assign({}, props_1.DEFAULT_DATE_PROPS, props);
@@ -75,7 +74,7 @@ function DateRangePicker(props, ref) {
75
74
  let showTimeField = !!timeGranularity;
76
75
  // let visibleMonths = useVisibleMonths(maxVisibleMonths);
77
76
  const component = ((0, jsx_runtime_1.jsxs)(DatePickerElement_1.DatePickerElement, { ref: targetRef, styles: props.wrapperStyles, mods: { focused: isFocused && !isFocusedButton }, ...focusProps, children: [(0, jsx_runtime_1.jsxs)(DateInputBase_1.DateInputBase, { disableFocusRing: true, isDisabled: isDisabled, validationState: validationState, size: size, styles: { radius: 'left', border: 'top left bottom' }, children: [(0, jsx_runtime_1.jsx)(DatePickerInput_1.DatePickerInput, { useLocale: useLocaleProp, ...startFieldProps }), (0, jsx_runtime_1.jsx)(DateRangeDash, {}), (0, jsx_runtime_1.jsx)(DatePickerInput_1.DatePickerInput, { useLocale: useLocaleProp, ...endFieldProps })] }), (0, jsx_runtime_1.jsxs)(Dialog_1.DialogTrigger, { hideArrow: true, type: "popover", mobileType: "tray", placement: "bottom right", targetRef: targetRef, isOpen: isOpen, shouldFlip: shouldFlip, onOpenChange: setOpen, children: [(0, jsx_runtime_1.jsx)(DatePickerButton_1.DatePickerButton, { size: size, ...(0, react_2.mergeProps)(buttonProps, focusPropsButton), isDisabled: isDisabled }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...dialogProps, width: "max-content", children: [(0, jsx_runtime_1.jsx)(RangeCalendar_1.RangeCalendar, { ...calendarProps }), showTimeField && ((0, jsx_runtime_1.jsxs)(Space_1.Space, { children: [(0, jsx_runtime_1.jsx)(TimeInput_1.TimeInput, { padding: "1x", label: intl_1.dateMessages['startTime'], value: state.timeRange?.start || null, placeholderValue: timePlaceholder, granularity: timeGranularity, minValue: timeMinValue, maxValue: timeMaxValue, hourCycle: props.hourCycle, hideTimeZone: props.hideTimeZone, onChange: (v) => state.setTime('start', v) }), (0, jsx_runtime_1.jsx)(TimeInput_1.TimeInput, { padding: "1x", label: intl_1.dateMessages['endTime'], value: state.timeRange?.end || null, placeholderValue: timePlaceholder, granularity: timeGranularity, minValue: timeMinValue, maxValue: timeMaxValue, hourCycle: props.hourCycle, hideTimeZone: props.hideTimeZone, onChange: (v) => state.setTime('end', v) })] }))] })] })] }));
78
- return (0, wrapper_1.wrapWithField)(component, domRef, {
77
+ return (0, form_1.wrapWithField)(component, domRef, {
79
78
  ...props,
80
79
  styles,
81
80
  labelProps: (0, react_2.mergeProps)(props.labelProps, labelProps),
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.39.1
4
+ * @cube-dev/ui-kit v0.41.0
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -13,10 +13,9 @@ const react_1 = require("react");
13
13
  const react_aria_1 = require("react-aria");
14
14
  const react_stately_1 = require("react-stately");
15
15
  const provider_1 = require("../../../provider");
16
- const wrapper_1 = require("../wrapper");
17
16
  const tasty_1 = require("../../../tasty");
18
17
  const react_2 = require("../../../utils/react");
19
- const Form_1 = require("../Form");
18
+ const form_1 = require("../../form");
20
19
  const Dialog_1 = require("../../overlays/Dialog");
21
20
  const Calendar_1 = require("../../other/Calendar/Calendar");
22
21
  const utils_1 = require("./utils");
@@ -37,8 +36,8 @@ const DateRangeDash = (0, tasty_1.tasty)({
37
36
  });
38
37
  function DateRangeSeparatedPicker(props, ref) {
39
38
  props = (0, provider_1.useProviderProps)(props);
40
- props = (0, Form_1.useFormProps)(props);
41
- props = (0, Form_1.useFieldProps)(props, {
39
+ props = (0, form_1.useFormProps)(props);
40
+ props = (0, form_1.useFieldProps)(props, {
42
41
  defaultValidationTrigger: 'onBlur',
43
42
  });
44
43
  props = Object.assign({}, props_1.DEFAULT_DATE_PROPS, props);
@@ -120,7 +119,7 @@ function DateRangeSeparatedPicker(props, ref) {
120
119
  const component = ((0, jsx_runtime_1.jsxs)(DatePickerElement_1.DatePickerElement, { ref: targetRef, styles: props.wrapperStyles, children: [(0, jsx_runtime_1.jsxs)(DatePickerElement_1.DatePickerElement, { ...startFocusRingProps.focusProps, mods: { focused: startFocusRingProps.isFocused }, children: [(0, jsx_runtime_1.jsx)(DateInputBase_1.DateInputBase, { disableFocusRing: true, isDisabled: isDisabled, validationState: validationState, size: size, styles: { radius: 'left', border: 'top left bottom' }, children: (0, jsx_runtime_1.jsx)(DatePickerInput_1.DatePickerInput, { useLocale: useLocaleProp, ...startFieldProps }) }), (0, jsx_runtime_1.jsxs)(Dialog_1.DialogTrigger, { hideArrow: true, type: "popover", mobileType: "tray", placement: "bottom right", targetRef: targetRef, isOpen: startState.isOpen, shouldFlip: props.shouldFlip, onOpenChange: startState.setOpen, children: [(0, jsx_runtime_1.jsx)(DatePickerButton_1.DatePickerButton, { size: size, ...(0, react_2.mergeProps)(startProps.buttonProps, startFocusProps.focusProps), isDisabled: isDisabled }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...startProps.dialogProps, width: "max-content", children: [(0, jsx_runtime_1.jsx)(Calendar_1.Calendar, { ...startProps.calendarProps, defaultFocusedValue: state.value?.start || state.value?.end || undefined, selectedRange: state.value?.start && state.value?.end ? state.value : undefined, onChange: (value) => onChange(value, 'start') }), showTimeField && ((0, jsx_runtime_1.jsx)(TimeInput_1.TimeInput, { padding: "1x", label: intl_1.dateMessages['time'], value: startState.timeValue, placeholderValue: timePlaceholder, granularity: timeGranularity, minValue: timeMinValue, maxValue: timeMaxValue, hourCycle: props.hourCycle, hideTimeZone: props.hideTimeZone, onChange: startState.setTimeValue }))] })] })] }), (0, jsx_runtime_1.jsx)(DateRangeDash, {}), (0, jsx_runtime_1.jsxs)(DatePickerElement_1.DatePickerElement, { ...endFocusRingProps.focusProps, mods: { focused: endFocusRingProps.isFocused }, children: [(0, jsx_runtime_1.jsx)(DateInputBase_1.DateInputBase, { disableFocusRing: true, isDisabled: isDisabled, validationState: validationState, size: size, radius: "left", border: "top left bottom", children: (0, jsx_runtime_1.jsx)(DatePickerInput_1.DatePickerInput, { useLocale: useLocaleProp, ...endFieldProps }) }), (0, jsx_runtime_1.jsxs)(Dialog_1.DialogTrigger, { hideArrow: true, type: "popover", mobileType: "tray", placement: "bottom right", targetRef: targetRef, isOpen: endState.isOpen, shouldFlip: props.shouldFlip, onOpenChange: endState.setOpen, children: [(0, jsx_runtime_1.jsx)(DatePickerButton_1.DatePickerButton, { "aria-label": "Show calendar for the end date", size: size, ...(0, react_2.mergeProps)(endFocusProps.focusProps, endProps.buttonProps), isDisabled: isDisabled }), (0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...endProps.dialogProps, width: "max-content", children: [(0, jsx_runtime_1.jsx)(Calendar_1.Calendar, { ...endProps.calendarProps, defaultFocusedValue: state.value?.end || state.value?.start || undefined, selectedRange: state.value?.start && state.value?.end ? state.value : undefined, onChange: (value) => {
121
120
  onChange(value, 'end');
122
121
  } }), showTimeField && ((0, jsx_runtime_1.jsx)(TimeInput_1.TimeInput, { padding: "1x", label: intl_1.dateMessages['time'], value: endState.timeValue, placeholderValue: timePlaceholder, granularity: timeGranularity, minValue: timeMinValue, maxValue: timeMaxValue, hourCycle: props.hourCycle, hideTimeZone: props.hideTimeZone, onChange: endState.setTimeValue }))] })] })] })] }));
123
- return (0, wrapper_1.wrapWithField)(component, domRef, {
122
+ return (0, form_1.wrapWithField)(component, domRef, {
124
123
  ...props,
125
124
  styles,
126
125
  labelProps: (0, react_2.mergeProps)(props.labelProps, labelProps),