@cube-dev/ui-kit 0.9.1 → 0.9.2

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 (376) hide show
  1. package/dist/cjs/components/Base.js +2 -2
  2. package/dist/cjs/components/Block.js +1 -1
  3. package/dist/cjs/components/GlobalStyles.js +1 -1
  4. package/dist/cjs/components/GridProvider.js +3 -2
  5. package/dist/cjs/components/HiddenInput.js +1 -1
  6. package/dist/cjs/components/OpenTrasition.js +1 -1
  7. package/dist/cjs/components/Root.js +2 -2
  8. package/dist/cjs/components/actions/Action.js +2 -2
  9. package/dist/cjs/components/actions/Button/Button.js +1 -1
  10. package/dist/cjs/components/actions/Button/Submit.js +1 -1
  11. package/dist/cjs/components/actions/Button/index.js +1 -1
  12. package/dist/cjs/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  13. package/dist/cjs/components/actions/index.js +1 -1
  14. package/dist/cjs/components/content/ActiveZone/ActiveZone.js +1 -1
  15. package/dist/cjs/components/content/Avatar/Avatar.js +1 -1
  16. package/dist/cjs/components/content/Badge/Badge.js +1 -1
  17. package/dist/cjs/components/content/Card/Card.js +1 -1
  18. package/dist/cjs/components/content/Content.js +1 -1
  19. package/dist/cjs/components/content/Divider.js +1 -1
  20. package/dist/cjs/components/content/Footer.js +1 -1
  21. package/dist/cjs/components/content/Header.js +1 -1
  22. package/dist/cjs/components/content/Paragraph.js +1 -1
  23. package/dist/cjs/components/content/Placeholder/Placeholder.js +1 -1
  24. package/dist/cjs/components/content/PrismCode/PrismCode.js +1 -1
  25. package/dist/cjs/components/content/Result/Result.js +1 -1
  26. package/dist/cjs/components/content/Skeleton/Skeleton.js +1 -1
  27. package/dist/cjs/components/content/Tag/Tag.js +1 -1
  28. package/dist/cjs/components/content/Text.js +1 -1
  29. package/dist/cjs/components/content/Title.js +1 -1
  30. package/dist/cjs/components/forms/Checkbox/Checkbox.js +1 -1
  31. package/dist/cjs/components/forms/Checkbox/CheckboxGroup.js +1 -1
  32. package/dist/cjs/components/forms/Checkbox/context.js +1 -1
  33. package/dist/cjs/components/forms/FieldWrapper.js +1 -1
  34. package/dist/cjs/components/forms/FileInput/FileInput.js +7 -6
  35. package/dist/cjs/components/forms/Form/Field.js +5 -5
  36. package/dist/cjs/components/forms/Form/Form.js +8 -8
  37. package/dist/cjs/components/forms/Form/index.js +1 -1
  38. package/dist/cjs/components/forms/Form/useForm.js +1 -1
  39. package/dist/cjs/components/forms/Form/validation.js +2 -2
  40. package/dist/cjs/components/forms/Label.js +1 -1
  41. package/dist/cjs/components/forms/NumberInput/NumberInput.js +1 -1
  42. package/dist/cjs/components/forms/NumberInput/StepButton.js +3 -3
  43. package/dist/cjs/components/forms/PasswordInput/PasswordInput.js +3 -3
  44. package/dist/cjs/components/forms/RadioGroup/Radio.js +1 -1
  45. package/dist/cjs/components/forms/RadioGroup/RadioGroup.js +1 -1
  46. package/dist/cjs/components/forms/RadioGroup/context.js +1 -1
  47. package/dist/cjs/components/forms/SearchInput/SearchInput.js +5 -5
  48. package/dist/cjs/components/forms/Switch/Switch.js +1 -1
  49. package/dist/cjs/components/forms/TextArea/TextArea.js +1 -1
  50. package/dist/cjs/components/forms/TextInput/TextInput.js +1 -1
  51. package/dist/cjs/components/forms/TextInput/TextInputBase.js +4 -4
  52. package/dist/cjs/components/forms/index.js +1 -1
  53. package/dist/cjs/components/layout/Flex.js +1 -1
  54. package/dist/cjs/components/layout/Flow.js +1 -1
  55. package/dist/cjs/components/layout/Grid.js +1 -1
  56. package/dist/cjs/components/layout/Prefix.js +2 -2
  57. package/dist/cjs/components/layout/Space.js +1 -1
  58. package/dist/cjs/components/layout/Suffix.js +1 -1
  59. package/dist/cjs/components/navigation/LegacyTabs/LegacyTabs.js +5 -5
  60. package/dist/cjs/components/navigation/Link/Link.js +3 -3
  61. package/dist/cjs/components/organisms/Alert/Alert.js +1 -1
  62. package/dist/cjs/components/organisms/CopySnippet/CopySnippet.js +3 -3
  63. package/dist/cjs/components/organisms/DirectoryTree/DirectoryTree.js +3 -3
  64. package/dist/cjs/components/organisms/FileTabs/FileTabs.js +1 -1
  65. package/dist/cjs/components/organisms/Modal/Modal.js +3 -3
  66. package/dist/cjs/components/organisms/SearchResults/SearchResults.js +3 -3
  67. package/dist/cjs/components/organisms/StatsCard/StatsCard.js +1 -1
  68. package/dist/cjs/components/organisms/TopBar/TopBar.js +1 -1
  69. package/dist/cjs/components/other/Base64Upload/Base64Upload.js +5 -5
  70. package/dist/cjs/components/other/CloudLogo/CloudLogo.js +1 -1
  71. package/dist/cjs/components/overlays/AlertDialog/AlertDialog.js +13 -5
  72. package/dist/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +7 -6
  73. package/dist/cjs/components/overlays/AlertDialog/AlertDialogZone.js +2 -2
  74. package/dist/cjs/components/overlays/AlertDialog/index.js +1 -1
  75. package/dist/cjs/components/overlays/AlertDialog/types.js +1 -1
  76. package/dist/cjs/components/overlays/Dialog/Dialog.js +3 -3
  77. package/dist/cjs/components/overlays/Dialog/DialogContainer.js +1 -1
  78. package/dist/cjs/components/overlays/Dialog/DialogForm.js +6 -6
  79. package/dist/cjs/components/overlays/Dialog/DialogTrigger.js +1 -1
  80. package/dist/cjs/components/overlays/Dialog/context.js +1 -1
  81. package/dist/cjs/components/overlays/Dialog/index.js +1 -1
  82. package/dist/cjs/components/overlays/Modal/Modal.js +1 -1
  83. package/dist/cjs/components/overlays/Modal/OpenTransition.js +1 -1
  84. package/dist/cjs/components/overlays/Modal/Overlay.js +3 -3
  85. package/dist/cjs/components/overlays/Modal/Popover.js +1 -1
  86. package/dist/cjs/components/overlays/Modal/Tray.js +1 -1
  87. package/dist/cjs/components/overlays/Modal/Underlay.js +1 -1
  88. package/dist/cjs/components/overlays/Modal/index.js +1 -1
  89. package/dist/cjs/components/overlays/Notification/Notification.js +1 -1
  90. package/dist/cjs/components/overlays/OverlayWrapper.js +1 -1
  91. package/dist/cjs/components/overlays/Tooltip/Tooltip.js +1 -1
  92. package/dist/cjs/components/overlays/Tooltip/TooltipProvider.js +1 -1
  93. package/dist/cjs/components/overlays/Tooltip/TooltipTrigger.js +3 -2
  94. package/dist/cjs/components/overlays/Tooltip/context.js +1 -1
  95. package/dist/cjs/components/pickers/ComboBox/ComboBox.js +3 -2
  96. package/dist/cjs/components/pickers/Select/Select.js +3 -2
  97. package/dist/cjs/components/portal/Portal.js +1 -1
  98. package/dist/cjs/components/portal/PortalProvider.js +1 -1
  99. package/dist/cjs/components/portal/index.js +1 -1
  100. package/dist/cjs/components/portal/storybook/templates/basic.js +1 -1
  101. package/dist/cjs/components/portal/storybook/templates/index.js +1 -1
  102. package/dist/cjs/components/portal/types.js +1 -1
  103. package/dist/cjs/components/portal/usePortal.js +7 -5
  104. package/dist/cjs/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
  105. package/dist/cjs/components/status/Spin/Spin.js +1 -1
  106. package/dist/cjs/components/types.js +1 -1
  107. package/dist/cjs/data/themes.js +1 -1
  108. package/dist/cjs/index.js +1 -1
  109. package/dist/cjs/provider.js +1 -1
  110. package/dist/cjs/providers/BreakpointsProvider.js +1 -1
  111. package/dist/cjs/providers/StylesProvider.js +1 -1
  112. package/dist/cjs/services/notification.js +1 -1
  113. package/dist/cjs/shared/form.js +1 -1
  114. package/dist/cjs/shared/index.js +1 -1
  115. package/dist/cjs/stories/FormFieldArgs.js +1 -1
  116. package/dist/cjs/stories/components/ConfirmDeletionDialogForm.js +1 -1
  117. package/dist/cjs/stories/components/DialogFormApp.js +2 -2
  118. package/dist/cjs/stories/components/StyledButton.js +3 -3
  119. package/dist/cjs/stories/lists/baseProps.js +1 -1
  120. package/dist/cjs/styled/index.js +1 -1
  121. package/dist/cjs/styled/styled.js +12 -11
  122. package/dist/cjs/styles/align.js +1 -1
  123. package/dist/cjs/styles/border.js +1 -1
  124. package/dist/cjs/styles/boxShadow.combinator.js +1 -1
  125. package/dist/cjs/styles/color.js +1 -1
  126. package/dist/cjs/styles/dimension.js +1 -1
  127. package/dist/cjs/styles/display.js +1 -1
  128. package/dist/cjs/styles/fill.js +1 -1
  129. package/dist/cjs/styles/flow.js +1 -1
  130. package/dist/cjs/styles/font.js +1 -1
  131. package/dist/cjs/styles/fontStyle.js +1 -1
  132. package/dist/cjs/styles/gap.js +1 -1
  133. package/dist/cjs/styles/groupRadius.js +1 -1
  134. package/dist/cjs/styles/height.js +1 -1
  135. package/dist/cjs/styles/index.js +1 -1
  136. package/dist/cjs/styles/justify.js +1 -1
  137. package/dist/cjs/styles/list.js +1 -1
  138. package/dist/cjs/styles/margin.js +1 -1
  139. package/dist/cjs/styles/marginBlock.js +1 -1
  140. package/dist/cjs/styles/marginInline.js +1 -1
  141. package/dist/cjs/styles/outline.js +1 -1
  142. package/dist/cjs/styles/padding.js +1 -1
  143. package/dist/cjs/styles/paddingBlock.js +1 -1
  144. package/dist/cjs/styles/paddingInline.js +1 -1
  145. package/dist/cjs/styles/predefined.js +1 -1
  146. package/dist/cjs/styles/preset.js +1 -1
  147. package/dist/cjs/styles/radius.js +1 -1
  148. package/dist/cjs/styles/reset.js +1 -1
  149. package/dist/cjs/styles/shadow.js +1 -1
  150. package/dist/cjs/styles/styledScrollbar.js +1 -1
  151. package/dist/cjs/styles/transition.js +1 -1
  152. package/dist/cjs/styles/types.js +1 -1
  153. package/dist/cjs/styles/width.js +1 -1
  154. package/dist/cjs/test/setup.js +1 -1
  155. package/dist/cjs/tokens.js +1 -1
  156. package/dist/cjs/utils/ResizeSensor.js +1 -1
  157. package/dist/cjs/utils/colors.js +1 -1
  158. package/dist/cjs/utils/dotize.js +1 -1
  159. package/dist/cjs/utils/escape-string.js +1 -1
  160. package/dist/cjs/utils/filterBaseProps.js +2 -2
  161. package/dist/cjs/utils/index.js +1 -1
  162. package/dist/cjs/utils/interactions.js +1 -1
  163. package/dist/cjs/utils/mergeStyles.js +3 -3
  164. package/dist/cjs/utils/modules.js +1 -1
  165. package/dist/cjs/utils/promise.js +1 -1
  166. package/dist/cjs/utils/react/Slots.js +1 -1
  167. package/dist/cjs/utils/react/chain.js +1 -1
  168. package/dist/cjs/utils/react/index.js +1 -1
  169. package/dist/cjs/utils/react/isTextOnly.js +1 -1
  170. package/dist/cjs/utils/react/mapProps.js +1 -1
  171. package/dist/cjs/utils/react/mergeProps.js +3 -3
  172. package/dist/cjs/utils/react/modAttrs.js +1 -1
  173. package/dist/cjs/utils/react/nullableValue.js +1 -1
  174. package/dist/cjs/utils/react/useCombinedRefs.js +1 -1
  175. package/dist/cjs/utils/react/useId.js +1 -1
  176. package/dist/cjs/utils/react/useLayoutEffect.js +1 -1
  177. package/dist/cjs/utils/react/wrapNodeIfPlain.js +1 -1
  178. package/dist/cjs/utils/renderStyles.js +1 -1
  179. package/dist/cjs/utils/responsive.js +1 -1
  180. package/dist/cjs/utils/string.js +1 -1
  181. package/dist/cjs/utils/styles.js +1 -1
  182. package/dist/cjs/utils/transitions.js +1 -1
  183. package/dist/cjs/utils/tree.js +1 -1
  184. package/dist/cjs/utils/warnings.js +1 -1
  185. package/dist/es/components/Base.js +2 -2
  186. package/dist/es/components/Block.js +1 -1
  187. package/dist/es/components/GlobalStyles.js +1 -1
  188. package/dist/es/components/GridProvider.js +3 -2
  189. package/dist/es/components/HiddenInput.js +1 -1
  190. package/dist/es/components/OpenTrasition.js +1 -1
  191. package/dist/es/components/Root.js +2 -2
  192. package/dist/es/components/actions/Action.js +2 -2
  193. package/dist/es/components/actions/Button/Button.js +1 -1
  194. package/dist/es/components/actions/Button/Submit.js +1 -1
  195. package/dist/es/components/actions/Button/index.js +1 -1
  196. package/dist/es/components/actions/ButtonGroup/ButtonGroup.js +1 -1
  197. package/dist/es/components/actions/index.js +1 -1
  198. package/dist/es/components/content/ActiveZone/ActiveZone.js +1 -1
  199. package/dist/es/components/content/Avatar/Avatar.js +1 -1
  200. package/dist/es/components/content/Badge/Badge.js +1 -1
  201. package/dist/es/components/content/Card/Card.js +1 -1
  202. package/dist/es/components/content/Content.js +1 -1
  203. package/dist/es/components/content/Divider.js +1 -1
  204. package/dist/es/components/content/Footer.js +1 -1
  205. package/dist/es/components/content/Header.js +1 -1
  206. package/dist/es/components/content/Paragraph.js +1 -1
  207. package/dist/es/components/content/Placeholder/Placeholder.js +1 -1
  208. package/dist/es/components/content/PrismCode/PrismCode.js +1 -1
  209. package/dist/es/components/content/Result/Result.js +1 -1
  210. package/dist/es/components/content/Skeleton/Skeleton.js +1 -1
  211. package/dist/es/components/content/Tag/Tag.js +1 -1
  212. package/dist/es/components/content/Text.js +1 -1
  213. package/dist/es/components/content/Title.js +1 -1
  214. package/dist/es/components/forms/Checkbox/Checkbox.js +1 -1
  215. package/dist/es/components/forms/Checkbox/CheckboxGroup.js +1 -1
  216. package/dist/es/components/forms/Checkbox/context.js +1 -1
  217. package/dist/es/components/forms/FieldWrapper.js +1 -1
  218. package/dist/es/components/forms/FileInput/FileInput.js +7 -6
  219. package/dist/es/components/forms/Form/Field.js +5 -5
  220. package/dist/es/components/forms/Form/Form.js +8 -8
  221. package/dist/es/components/forms/Form/index.js +1 -1
  222. package/dist/es/components/forms/Form/useForm.js +1 -1
  223. package/dist/es/components/forms/Form/validation.js +2 -2
  224. package/dist/es/components/forms/Label.js +1 -1
  225. package/dist/es/components/forms/NumberInput/NumberInput.js +1 -1
  226. package/dist/es/components/forms/NumberInput/StepButton.js +2 -2
  227. package/dist/es/components/forms/PasswordInput/PasswordInput.js +2 -2
  228. package/dist/es/components/forms/RadioGroup/Radio.js +1 -1
  229. package/dist/es/components/forms/RadioGroup/RadioGroup.js +1 -1
  230. package/dist/es/components/forms/RadioGroup/context.js +1 -1
  231. package/dist/es/components/forms/SearchInput/SearchInput.js +5 -5
  232. package/dist/es/components/forms/Switch/Switch.js +1 -1
  233. package/dist/es/components/forms/TextArea/TextArea.js +1 -1
  234. package/dist/es/components/forms/TextInput/TextInput.js +1 -1
  235. package/dist/es/components/forms/TextInput/TextInputBase.js +4 -4
  236. package/dist/es/components/forms/index.js +1 -1
  237. package/dist/es/components/layout/Flex.js +1 -1
  238. package/dist/es/components/layout/Flow.js +1 -1
  239. package/dist/es/components/layout/Grid.js +1 -1
  240. package/dist/es/components/layout/Prefix.js +2 -2
  241. package/dist/es/components/layout/Space.js +1 -1
  242. package/dist/es/components/layout/Suffix.js +1 -1
  243. package/dist/es/components/navigation/LegacyTabs/LegacyTabs.js +4 -4
  244. package/dist/es/components/navigation/Link/Link.js +2 -2
  245. package/dist/es/components/organisms/Alert/Alert.js +1 -1
  246. package/dist/es/components/organisms/CopySnippet/CopySnippet.js +2 -2
  247. package/dist/es/components/organisms/DirectoryTree/DirectoryTree.js +2 -2
  248. package/dist/es/components/organisms/FileTabs/FileTabs.js +1 -1
  249. package/dist/es/components/organisms/Modal/Modal.js +2 -2
  250. package/dist/es/components/organisms/SearchResults/SearchResults.js +2 -2
  251. package/dist/es/components/organisms/StatsCard/StatsCard.js +1 -1
  252. package/dist/es/components/organisms/TopBar/TopBar.js +1 -1
  253. package/dist/es/components/other/Base64Upload/Base64Upload.js +4 -4
  254. package/dist/es/components/other/CloudLogo/CloudLogo.js +1 -1
  255. package/dist/es/components/overlays/AlertDialog/AlertDialog.js +13 -5
  256. package/dist/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +7 -6
  257. package/dist/es/components/overlays/AlertDialog/AlertDialogZone.js +2 -2
  258. package/dist/es/components/overlays/AlertDialog/index.js +1 -1
  259. package/dist/es/components/overlays/AlertDialog/types.js +1 -1
  260. package/dist/es/components/overlays/Dialog/Dialog.js +2 -2
  261. package/dist/es/components/overlays/Dialog/DialogContainer.js +1 -1
  262. package/dist/es/components/overlays/Dialog/DialogForm.js +5 -5
  263. package/dist/es/components/overlays/Dialog/DialogTrigger.js +1 -1
  264. package/dist/es/components/overlays/Dialog/context.js +1 -1
  265. package/dist/es/components/overlays/Dialog/index.js +1 -1
  266. package/dist/es/components/overlays/Modal/Modal.js +1 -1
  267. package/dist/es/components/overlays/Modal/OpenTransition.js +1 -1
  268. package/dist/es/components/overlays/Modal/Overlay.js +3 -3
  269. package/dist/es/components/overlays/Modal/Popover.js +1 -1
  270. package/dist/es/components/overlays/Modal/Tray.js +1 -1
  271. package/dist/es/components/overlays/Modal/Underlay.js +1 -1
  272. package/dist/es/components/overlays/Modal/index.js +1 -1
  273. package/dist/es/components/overlays/Notification/Notification.js +1 -1
  274. package/dist/es/components/overlays/OverlayWrapper.js +1 -1
  275. package/dist/es/components/overlays/Tooltip/Tooltip.js +1 -1
  276. package/dist/es/components/overlays/Tooltip/TooltipProvider.js +1 -1
  277. package/dist/es/components/overlays/Tooltip/TooltipTrigger.js +3 -2
  278. package/dist/es/components/overlays/Tooltip/context.js +1 -1
  279. package/dist/es/components/pickers/ComboBox/ComboBox.js +3 -2
  280. package/dist/es/components/pickers/Select/Select.js +3 -2
  281. package/dist/es/components/portal/Portal.js +1 -1
  282. package/dist/es/components/portal/PortalProvider.js +1 -1
  283. package/dist/es/components/portal/index.js +1 -1
  284. package/dist/es/components/portal/storybook/templates/basic.js +1 -1
  285. package/dist/es/components/portal/storybook/templates/index.js +1 -1
  286. package/dist/es/components/portal/types.js +1 -1
  287. package/dist/es/components/portal/usePortal.js +7 -5
  288. package/dist/es/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
  289. package/dist/es/components/status/Spin/Spin.js +1 -1
  290. package/dist/es/components/types.js +1 -1
  291. package/dist/es/data/themes.js +1 -1
  292. package/dist/es/index.js +1 -1
  293. package/dist/es/provider.js +1 -1
  294. package/dist/es/providers/BreakpointsProvider.js +1 -1
  295. package/dist/es/providers/StylesProvider.js +1 -1
  296. package/dist/es/services/notification.js +1 -1
  297. package/dist/es/shared/form.js +1 -1
  298. package/dist/es/shared/index.js +1 -1
  299. package/dist/es/stories/FormFieldArgs.js +1 -1
  300. package/dist/es/stories/components/ConfirmDeletionDialogForm.js +1 -1
  301. package/dist/es/stories/components/DialogFormApp.js +2 -2
  302. package/dist/es/stories/components/StyledButton.js +2 -2
  303. package/dist/es/stories/lists/baseProps.js +1 -1
  304. package/dist/es/styled/index.js +1 -1
  305. package/dist/es/styled/styled.js +12 -11
  306. package/dist/es/styles/align.js +1 -1
  307. package/dist/es/styles/border.js +1 -1
  308. package/dist/es/styles/boxShadow.combinator.js +1 -1
  309. package/dist/es/styles/color.js +1 -1
  310. package/dist/es/styles/dimension.js +1 -1
  311. package/dist/es/styles/display.js +1 -1
  312. package/dist/es/styles/fill.js +1 -1
  313. package/dist/es/styles/flow.js +1 -1
  314. package/dist/es/styles/font.js +1 -1
  315. package/dist/es/styles/fontStyle.js +1 -1
  316. package/dist/es/styles/gap.js +1 -1
  317. package/dist/es/styles/groupRadius.js +1 -1
  318. package/dist/es/styles/height.js +1 -1
  319. package/dist/es/styles/index.js +1 -1
  320. package/dist/es/styles/justify.js +1 -1
  321. package/dist/es/styles/list.js +1 -1
  322. package/dist/es/styles/margin.js +1 -1
  323. package/dist/es/styles/marginBlock.js +1 -1
  324. package/dist/es/styles/marginInline.js +1 -1
  325. package/dist/es/styles/outline.js +1 -1
  326. package/dist/es/styles/padding.js +1 -1
  327. package/dist/es/styles/paddingBlock.js +1 -1
  328. package/dist/es/styles/paddingInline.js +1 -1
  329. package/dist/es/styles/predefined.js +1 -1
  330. package/dist/es/styles/preset.js +1 -1
  331. package/dist/es/styles/radius.js +1 -1
  332. package/dist/es/styles/reset.js +1 -1
  333. package/dist/es/styles/shadow.js +1 -1
  334. package/dist/es/styles/styledScrollbar.js +1 -1
  335. package/dist/es/styles/transition.js +1 -1
  336. package/dist/es/styles/types.js +1 -1
  337. package/dist/es/styles/width.js +1 -1
  338. package/dist/es/test/setup.js +1 -1
  339. package/dist/es/tokens.js +1 -1
  340. package/dist/es/utils/ResizeSensor.js +1 -1
  341. package/dist/es/utils/colors.js +1 -1
  342. package/dist/es/utils/dotize.js +1 -1
  343. package/dist/es/utils/escape-string.js +1 -1
  344. package/dist/es/utils/filterBaseProps.js +2 -2
  345. package/dist/es/utils/index.js +1 -1
  346. package/dist/es/utils/interactions.js +1 -1
  347. package/dist/es/utils/mergeStyles.js +3 -3
  348. package/dist/es/utils/modules.js +1 -1
  349. package/dist/es/utils/promise.js +1 -1
  350. package/dist/es/utils/react/Slots.js +1 -1
  351. package/dist/es/utils/react/chain.js +1 -1
  352. package/dist/es/utils/react/index.js +1 -1
  353. package/dist/es/utils/react/isTextOnly.js +1 -1
  354. package/dist/es/utils/react/mapProps.js +1 -1
  355. package/dist/es/utils/react/mergeProps.js +3 -3
  356. package/dist/es/utils/react/modAttrs.js +1 -1
  357. package/dist/es/utils/react/nullableValue.js +1 -1
  358. package/dist/es/utils/react/useCombinedRefs.js +1 -1
  359. package/dist/es/utils/react/useId.js +1 -1
  360. package/dist/es/utils/react/useLayoutEffect.js +1 -1
  361. package/dist/es/utils/react/wrapNodeIfPlain.js +1 -1
  362. package/dist/es/utils/renderStyles.js +1 -1
  363. package/dist/es/utils/responsive.js +1 -1
  364. package/dist/es/utils/string.js +1 -1
  365. package/dist/es/utils/styles.js +1 -1
  366. package/dist/es/utils/transitions.js +1 -1
  367. package/dist/es/utils/tree.js +1 -1
  368. package/dist/es/utils/warnings.js +1 -1
  369. package/dist/package.json +1 -1
  370. package/dist/types/components/navigation/LegacyTabs/LegacyTabs.d.ts +1 -1
  371. package/dist/types/components/navigation/Link/Link.d.ts +1 -1
  372. package/dist/types/components/other/CloudLogo/CloudLogo.d.ts +1 -1
  373. package/dist/types/components/overlays/AlertDialog/AlertDialog.d.ts +3 -3
  374. package/dist/types/components/overlays/Dialog/DialogForm.d.ts +1 -1
  375. package/dist/types/utils/react/mapProps.d.ts +1 -1
  376. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -13,7 +13,7 @@ import { useSearchField } from '@react-aria/searchfield';
13
13
  import { useCombinedRefs } from '../../../utils/react';
14
14
  import { TextInputBase, } from '../TextInput/TextInputBase';
15
15
  import { useProviderProps } from '../../../provider';
16
- import { Button } from '../../actions/Button/Button';
16
+ import { Button } from '../../actions';
17
17
  import { ariaToCubeButtonProps } from '../../../utils/react/mapProps';
18
18
  import { castNullableStringValue, } from '../../../utils/react/nullableValue';
19
19
  export const SearchInput = forwardRef((props, ref) => {
@@ -31,9 +31,9 @@ export const SearchInput = forwardRef((props, ref) => {
31
31
  }, [combinedRef, value]);
32
32
  let state = useSearchFieldState(props);
33
33
  let { inputProps, clearButtonProps } = useSearchField(props, state, inputRef);
34
- return (_jsx(TextInputBase, { inputProps: inputProps, ref: ref, inputRef: inputRef, inputStyles: { paddingRight: '4x' }, type: "search", prefix: _jsx(SearchOutlined, {}, void 0), suffixPosition: "after", suffix: isClearable
35
- && state.value !== ''
36
- && !props.isReadOnly && (_jsx(Button, { type: "clear", ...ariaToCubeButtonProps(clearButtonProps), color: {
34
+ return (_jsx(TextInputBase, { inputProps: inputProps, ref: ref, inputRef: inputRef, inputStyles: { paddingRight: '4x' }, type: "search", prefix: _jsx(SearchOutlined, {}, void 0), suffixPosition: "after", suffix: isClearable &&
35
+ state.value !== '' &&
36
+ !props.isReadOnly && (_jsx(Button, { type: "clear", ...ariaToCubeButtonProps(clearButtonProps), color: {
37
37
  '': '#dark.50',
38
38
  'hovered | pressed': '#purple-text',
39
39
  }, radius: "right (1r - 1bw)", padding: ".5x 1x", placeSelf: "stretch", icon: _jsx(CloseOutlined, {}, void 0) }, void 0)), ...props }, void 0));
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -104,12 +104,12 @@ function TextInputBase(props, ref) {
104
104
  useImperativeHandle(ref, () => ({
105
105
  ...createFocusableRef(domRef, inputRef),
106
106
  select() {
107
- if (inputRef?.current) {
107
+ if (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) {
108
108
  inputRef.current.select();
109
109
  }
110
110
  },
111
111
  getInputElement() {
112
- return inputRef?.current;
112
+ return inputRef === null || inputRef === void 0 ? void 0 : inputRef.current;
113
113
  },
114
114
  }));
115
115
  let isInvalid = validationState === 'invalid';
@@ -118,7 +118,7 @@ function TextInputBase(props, ref) {
118
118
  suffix =
119
119
  typeof suffix === 'string' ? (_jsx(Block, { padding: "1x right", children: suffix }, void 0)) : (suffix);
120
120
  // Fix safari bug: https://github.com/philipwalton/flexbugs/issues/270
121
- if (!inputProps?.placeholder) {
121
+ if (!(inputProps === null || inputProps === void 0 ? void 0 : inputProps.placeholder)) {
122
122
  if (!inputProps) {
123
123
  inputProps = {};
124
124
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -30,7 +30,7 @@ export const Prefix = forwardRef((allProps, outerRef) => {
30
30
  const styles = extractStyles(props, CONTAINER_STYLES, DEFAULT_STYLES);
31
31
  const ref = useCombinedRefs(outerRef);
32
32
  useEffect(() => {
33
- if (ref?.current && onWidthChange) {
33
+ if ((ref === null || ref === void 0 ? void 0 : ref.current) && onWidthChange) {
34
34
  onWidthChange(ref.current.offsetWidth);
35
35
  }
36
36
  }, [children, ref, onWidthChange]);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -10,7 +10,7 @@ import { createContext, useContext, useEffect, useLayoutEffect, useRef, useState
10
10
  import { Block } from '../../Block';
11
11
  import { Space } from '../../layout/Space';
12
12
  import { Flex } from '../../layout/Flex';
13
- import { Button } from '../../actions/Button/Button';
13
+ import { Button } from '../../actions';
14
14
  const LegacyTabsContext = createContext({
15
15
  addTab() { },
16
16
  removeTab() { },
@@ -135,8 +135,8 @@ export function LegacyTabs({ defaultActiveKey, activeKey: activeKeyProp, onTabCl
135
135
  if (!el)
136
136
  return;
137
137
  setLeftFade(!!el.scrollLeft);
138
- setRightFade(el.scrollWidth !== el.offsetWidth
139
- && !!(el.scrollWidth - el.offsetWidth - el.scrollLeft));
138
+ setRightFade(el.scrollWidth !== el.offsetWidth &&
139
+ !!(el.scrollWidth - el.offsetWidth - el.scrollLeft));
140
140
  }
141
141
  useLayoutEffect(updateScroll, [tabs]);
142
142
  function scrollCurrentIntoView() {
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  import { forwardRef } from 'react';
10
- import { Button } from '../../actions/Button/Button';
10
+ import { Button } from '../../actions';
11
11
  export const Link = forwardRef((props, ref) => {
12
12
  return _jsx(Button, { type: "link", ...props, ref: ref }, void 0);
13
13
  });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  import copy from 'clipboard-copy';
10
- import { Button } from '../../actions/Button/Button';
10
+ import { Button } from '../../actions';
11
11
  import { Card } from '../../content/Card/Card';
12
12
  import { Grid } from '../../layout/Grid';
13
13
  import { styled } from '../../../styled';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -10,7 +10,7 @@ import { useEffect, useState } from 'react';
10
10
  import { CaretDownOutlined, CaretUpOutlined, FileOutlined, FolderOpenFilled, FolderFilled, } from '@ant-design/icons';
11
11
  import { Flex } from '../../layout/Flex';
12
12
  import { Action } from '../../actions/Action';
13
- import { Button } from '../../actions/Button/Button';
13
+ import { Button } from '../../actions';
14
14
  import { Space } from '../../layout/Space';
15
15
  import { Block } from '../../Block';
16
16
  const IMAGES = {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -14,7 +14,7 @@ import { Card } from '../../content/Card/Card';
14
14
  import { Flow } from '../../layout/Flow';
15
15
  import { Flex } from '../../layout/Flex';
16
16
  import { Block } from '../../Block';
17
- import { Button } from '../../actions/Button/Button';
17
+ import { Button } from '../../actions';
18
18
  import { Space } from '../../layout/Space';
19
19
  import { Title } from '../../content/Title';
20
20
  import styled from 'styled-components';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -10,7 +10,7 @@ import { useEffect, useState, Fragment } from 'react';
10
10
  import { CaretDownOutlined, CaretUpOutlined, FileOutlined, } from '@ant-design/icons';
11
11
  import { Flex } from '../../layout/Flex';
12
12
  import { Action } from '../../actions/Action';
13
- import { Button } from '../../actions/Button/Button';
13
+ import { Button } from '../../actions';
14
14
  import { Space } from '../../layout/Space';
15
15
  import { Block } from '../../Block';
16
16
  import { Paragraph } from '../../content/Paragraph';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
9
9
  import { forwardRef, useState } from 'react';
10
- import { Button } from '../../actions/Button/Button';
10
+ import { Button } from '../../actions';
11
11
  import { Block } from '../../Block';
12
12
  import { Text } from '../../content/Text';
13
13
  import styled from 'styled-components';
@@ -56,8 +56,8 @@ export const Base64Upload = styled(forwardRef((allProps, ref) => {
56
56
  console.error(e);
57
57
  return;
58
58
  }
59
- onInput
60
- && onInput({
59
+ onInput &&
60
+ onInput({
61
61
  encoded: base64text,
62
62
  raw: JSON.parse(text),
63
63
  });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  import { chain } from '@react-aria/utils';
10
- import { Button } from '../../actions/Button/Button';
10
+ import { Button } from '../../actions';
11
11
  import { Content } from '../../content/Content';
12
+ import { Paragraph } from '../../content/Paragraph';
12
13
  import { Dialog } from '../Dialog/Dialog';
13
14
  import { DialogContext } from '../Dialog/context';
14
15
  import { Title } from '../../content/Title';
@@ -27,9 +28,10 @@ const DEFAULT_CANCEL_PROPS = {
27
28
  * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
28
29
  */
29
30
  function AlertDialog(props, ref) {
30
- const { onClose = () => { } } = useContext(DialogContext) ?? {};
31
+ var _a;
32
+ const { onClose = () => { } } = (_a = useContext(DialogContext)) !== null && _a !== void 0 ? _a : {};
31
33
  const { danger, actions, title, styles, noActions, content, ...otherProps } = props;
32
- let { confirm: confirmProps, secondary: secondaryProps, cancel: cancelProps, } = actions ?? {};
34
+ let { confirm: confirmProps, secondary: secondaryProps, cancel: cancelProps, } = actions !== null && actions !== void 0 ? actions : {};
33
35
  // the confirm button is present by default
34
36
  confirmProps =
35
37
  confirmProps !== false
@@ -45,7 +47,13 @@ function AlertDialog(props, ref) {
45
47
  ...(typeof cancelProps === 'object' ? cancelProps : null),
46
48
  }
47
49
  : undefined;
48
- return (_jsxs(Dialog, { role: "alertdialog", ref: ref, isDismissable: false, ...otherProps, children: [title ? (_jsx(Header, { children: _jsx(Title, { children: title }, void 0) }, void 0)) : null, _jsx(Content, { children: content }, void 0), !noActions ? (_jsx(Footer, { children: _jsxs(ButtonGroup, { align: "end", children: [_jsx(Button, { theme: danger ? 'danger' : undefined, autoFocus: true, ...confirmProps, onPress: (e) => chain(confirmProps?.onPress?.(e), onClose('confirm')) }, void 0), secondaryProps && (_jsx(Button, { ...secondaryProps, onPress: (e) => chain(secondaryProps?.onPress?.(e), onClose('secondary')) }, void 0)), cancelProps && (_jsx(Button, { ...cancelProps, onPress: (e) => chain(cancelProps?.onPress?.(e), onClose('cancel')) }, void 0))] }, void 0) }, void 0)) : null] }, void 0));
50
+ return (_jsxs(Dialog, { role: "alertdialog", ref: ref, isDismissable: false, ...otherProps, children: [title ? (_jsx(Header, { children: _jsx(Title, { children: title }, void 0) }, void 0)) : null, content ? (_jsx(Content, { children: typeof content === 'string' ? (_jsx(Paragraph, { children: content }, void 0)) : (content) }, void 0)) : null, !noActions ? (_jsx(Footer, { children: _jsxs(ButtonGroup, { align: "end", children: [_jsx(Button, { theme: danger ? 'danger' : undefined, autoFocus: true, ...confirmProps, onPress: (e) => {
51
+ var _a, _b;
52
+ return chain((_b = (_a = confirmProps) === null || _a === void 0 ? void 0 : _a.onPress) === null || _b === void 0 ? void 0 : _b.call(_a, e), onClose('confirm'));
53
+ } }, void 0), secondaryProps && (_jsx(Button, { ...secondaryProps, onPress: (e) => { var _a; return chain((_a = secondaryProps === null || secondaryProps === void 0 ? void 0 : secondaryProps.onPress) === null || _a === void 0 ? void 0 : _a.call(secondaryProps, e), onClose('secondary')); } }, void 0)), cancelProps && (_jsx(Button, { ...cancelProps, onPress: (e) => {
54
+ var _a, _b;
55
+ return chain((_b = (_a = cancelProps) === null || _a === void 0 ? void 0 : _a.onPress) === null || _b === void 0 ? void 0 : _b.call(_a, e), onClose('cancel'));
56
+ } }, void 0))] }, void 0) }, void 0)) : null] }, void 0));
49
57
  }
50
58
  /**
51
59
  * AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -25,21 +25,22 @@ export function AlertDialogApiProvider(props) {
25
25
  meta: { id: currentId, isClosed: false, isVisible: true },
26
26
  };
27
27
  const close = () => {
28
+ var _a;
28
29
  if (currentDialog.meta.isClosed)
29
30
  return;
30
31
  currentDialog.meta.isClosed = true;
31
- params.cancelToken?.removeEventListener('abort', close);
32
- setOpenedDialog((currentState) => currentState?.meta.id !== currentId
32
+ (_a = params.cancelToken) === null || _a === void 0 ? void 0 : _a.removeEventListener('abort', close);
33
+ setOpenedDialog((currentState) => (currentState === null || currentState === void 0 ? void 0 : currentState.meta.id) !== currentId
33
34
  ? currentState
34
35
  : {
35
36
  props: currentState.props,
36
37
  meta: { ...currentState.meta, isVisible: false },
37
38
  });
38
- setTimeout(() => setOpenedDialog((currentState) => currentState?.meta.id !== currentId ? currentState : null), 300);
39
+ setTimeout(() => setOpenedDialog((currentState) => (currentState === null || currentState === void 0 ? void 0 : currentState.meta.id) !== currentId ? currentState : null), 300);
39
40
  };
40
- if (cancelToken?.aborted)
41
+ if (cancelToken === null || cancelToken === void 0 ? void 0 : cancelToken.aborted)
41
42
  return new Promise(() => { });
42
- cancelToken?.addEventListener('abort', close, { once: true });
43
+ cancelToken === null || cancelToken === void 0 ? void 0 : cancelToken.addEventListener('abort', close, { once: true });
43
44
  currentDialog.meta.promise = new Promise((resolve, reject) => {
44
45
  currentDialog.meta.resolve = (status) => {
45
46
  close();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -33,7 +33,7 @@ export function AlertDialogZone(props) {
33
33
  return {
34
34
  ...action,
35
35
  onPress: (e) => {
36
- onPress?.(e);
36
+ onPress === null || onPress === void 0 ? void 0 : onPress(e);
37
37
  resolve(status);
38
38
  },
39
39
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- import { Button } from '../../actions/Button/Button';
9
+ import { Button } from '../../actions';
10
10
  import { useDOMRef } from '@react-spectrum/utils';
11
11
  import { DialogContext } from './context';
12
12
  import { DismissButton } from '@react-aria/overlays';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -14,7 +14,7 @@ import { Form } from '../../forms/Form/Form';
14
14
  import { useForm } from '../../forms/Form/useForm';
15
15
  import { Content } from '../../content/Content';
16
16
  import { Submit } from '../../actions/Button/Submit';
17
- import { Button } from '../../actions/Button/Button';
17
+ import { Button } from '../../actions';
18
18
  import { ButtonGroup } from '../../actions/ButtonGroup/ButtonGroup';
19
19
  import { Header } from '../../content/Header';
20
20
  const DialogForm = (props, ref) => {
@@ -30,12 +30,12 @@ const DialogForm = (props, ref) => {
30
30
  },
31
31
  }));
32
32
  function onLocalDismiss() {
33
- onDismiss?.();
34
- form?.resetFields();
33
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
34
+ form === null || form === void 0 ? void 0 : form.resetFields();
35
35
  setOpen(false);
36
36
  }
37
37
  return (_jsx(DialogContainer, { onDismiss: onLocalDismiss, isDismissable: true, children: open && (_jsxs(Dialog, { qa: `${qa || ''}Dialog`, size: size, closeIcon: closeIcon, children: [_jsx(Header, { children: _jsx(Title, { children: title }, void 0) }, void 0), _jsx(Content, { children: _jsxs(Form, { qa: qa || 'DialogForm', form: form, name: name, onSubmit: async (data) => {
38
- await onSubmit?.(data);
38
+ await (onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(data));
39
39
  setOpen(false);
40
40
  if (!preserve && form) {
41
41
  form.resetFields();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
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.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7
 
@@ -16,11 +16,11 @@ function Overlay(props, ref) {
16
16
  let containerRef = useRef(container);
17
17
  let handleEntered = useCallback(() => {
18
18
  setExited(false);
19
- onEntered?.();
19
+ onEntered === null || onEntered === void 0 ? void 0 : onEntered();
20
20
  }, [onEntered]);
21
21
  let handleExited = useCallback(() => {
22
22
  setExited(true);
23
- onExited?.();
23
+ onExited === null || onExited === void 0 ? void 0 : onExited();
24
24
  }, [onExited]);
25
25
  // Don't un-render the overlay while it's transitioning out.
26
26
  let mountOverlay = isOpen || !exited;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license MIT
3
3
  * author: Cube Dev Team
4
- * @cube-dev/ui-kit v0.9.1
4
+ * @cube-dev/ui-kit v0.9.2
5
5
  * Released under the MIT license.
6
6
  */
7
7