@epam/ai-dial-ui-kit 0.14.0-dev.5 → 0.14.0-dev.51

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 (534) hide show
  1. package/README.md +34 -4
  2. package/dist/CHANGELOG.md +20 -4
  3. package/dist/DateCellRenderer-BVM-Q8yx.cjs +63 -0
  4. package/dist/DateCellRenderer-C9SdzDU4.cjs +1 -0
  5. package/dist/IconButton-DWqoaBWf.cjs +1 -0
  6. package/dist/JsonEditor-BlaSMX26.cjs +1 -0
  7. package/dist/MarkdownEditor-5kljDPcm.cjs +1 -0
  8. package/dist/MarkdownEditor-C0_gU7Fi.cjs +1 -0
  9. package/dist/MarkdownEditorContainer-BqTGQArV.cjs +1 -0
  10. package/dist/Switch-CUKClcEz.cjs +1 -0
  11. package/dist/_virtual/___vite-browser-external.js +6 -0
  12. package/dist/_virtual/__vite-browser-external.js +4 -0
  13. package/dist/_virtual/_commonjsHelpers.js +31 -0
  14. package/dist/_virtual/index.js +5 -0
  15. package/dist/_virtual/index2.js +4 -0
  16. package/dist/_virtual/index3.js +7 -0
  17. package/dist/assets/icons/add-child.svg.js +5 -0
  18. package/dist/assets/icons/add-sibling.svg.js +5 -0
  19. package/dist/assets/icons/copy-to.svg.js +5 -0
  20. package/dist/assets/icons/file/c.svg.js +5 -0
  21. package/dist/assets/icons/file/cpp.svg.js +5 -0
  22. package/dist/assets/icons/file/cs.svg.js +5 -0
  23. package/dist/assets/icons/file/ini.svg.js +5 -0
  24. package/dist/assets/icons/file/json.svg.js +5 -0
  25. package/dist/assets/icons/file/md.svg.js +5 -0
  26. package/dist/assets/icons/file/py.svg.js +5 -0
  27. package/dist/assets/icons/loader.svg.js +5 -0
  28. package/dist/assets/icons/move-to.svg.js +5 -0
  29. package/dist/assets/icons/no-data.svg.js +5 -0
  30. package/dist/assets/icons/open-popup.svg.js +5 -0
  31. package/dist/assets/icons/unshare.svg.js +5 -0
  32. package/dist/components/Accordion/Accordion.js +70 -0
  33. package/dist/components/Analytics/Bar/Bar.js +80 -0
  34. package/dist/components/Analytics/Bar/utils.js +24 -0
  35. package/dist/components/Analytics/BarGroup/BarGroup.js +142 -0
  36. package/dist/components/Analytics/Card/Card.js +87 -0
  37. package/dist/components/Analytics/ErrorTag/ErrorTag.js +19 -0
  38. package/dist/components/Analytics/Histogram/Histogram.js +200 -0
  39. package/dist/components/Analytics/Histogram/utils.js +45 -0
  40. package/dist/components/AutocompleteInput/AutocompleteInputValue.js +21 -0
  41. package/dist/components/Breadcrumb/Breadcrumb.js +126 -0
  42. package/dist/components/Breadcrumb/BreadcrumbItem.js +83 -0
  43. package/dist/components/Breadcrumb/constants.js +20 -0
  44. package/dist/components/Button/Button.js +53 -0
  45. package/dist/components/Button/ButtonWrappers.js +40 -0
  46. package/dist/components/Button/constants.js +29 -0
  47. package/dist/components/Button/utils.js +11 -0
  48. package/dist/components/ButtonDropdown/ButtonDropdown.js +33 -0
  49. package/dist/components/ButtonDropdown/constants.js +8 -0
  50. package/dist/components/CaptionText/CaptionText.js +27 -0
  51. package/dist/components/Checkbox/Checkbox.js +64 -0
  52. package/dist/components/Checkbox/constants.js +4 -0
  53. package/dist/components/CloseButton/CloseButton.js +27 -0
  54. package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +84 -0
  55. package/dist/components/ConfirmationPopup/ConfirmationPopup.js +75 -0
  56. package/dist/components/ConfirmationPopup/constants.js +32 -0
  57. package/dist/components/DraggableItem/DraggableItem.js +61 -0
  58. package/dist/components/DraggableItem/constants.js +6 -0
  59. package/dist/components/Dropdown/Dropdown.js +293 -0
  60. package/dist/components/Dropdown/DropdownSubMenuItem.js +121 -0
  61. package/dist/components/Dropdown/constants.js +24 -0
  62. package/dist/components/DropdownIcon/DropdownIcon.js +92 -0
  63. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +75 -0
  64. package/dist/components/EllipsisTooltip/constants.js +4 -0
  65. package/dist/components/FabButton/FabButton.js +35 -0
  66. package/dist/components/FileIcon/FileIcon.js +37 -0
  67. package/dist/components/FileIcon/constants.js +60 -0
  68. package/dist/components/FileManager/FileManager.js +887 -0
  69. package/dist/components/FileManager/FileManagerContext.js +5 -0
  70. package/dist/components/FileManager/FileManagerProvider.js +770 -0
  71. package/dist/components/FileManager/FileManagerTooltip.js +92 -0
  72. package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +293 -0
  73. package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +201 -0
  74. package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +52 -0
  75. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +103 -0
  76. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +5 -0
  77. package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +56 -0
  78. package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +69 -0
  79. package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +100 -0
  80. package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +93 -0
  81. package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +165 -0
  82. package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +6 -0
  83. package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +120 -0
  84. package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +119 -0
  85. package/dist/components/FileManager/components/FileMetadataPopup/constants.js +9 -0
  86. package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +180 -0
  87. package/dist/components/FileManager/components/FoldersTree/constants.js +9 -0
  88. package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +51 -0
  89. package/dist/components/FileManager/constants.js +28 -0
  90. package/dist/components/FileManager/errors.js +10 -0
  91. package/dist/components/FileManager/hooks/use-bulk-actions.js +143 -0
  92. package/dist/components/FileManager/hooks/use-collapse-tree.js +22 -0
  93. package/dist/components/FileManager/hooks/use-conflict-resolution.js +158 -0
  94. package/dist/components/FileManager/hooks/use-current-path.js +29 -0
  95. package/dist/components/FileManager/hooks/use-file-clipboard.js +154 -0
  96. package/dist/components/FileManager/hooks/use-file-delete.js +39 -0
  97. package/dist/components/FileManager/hooks/use-file-download.js +16 -0
  98. package/dist/components/FileManager/hooks/use-file-manager-columns.js +106 -0
  99. package/dist/components/FileManager/hooks/use-file-manager-context.js +13 -0
  100. package/dist/components/FileManager/hooks/use-file-manager-tabs.js +23 -0
  101. package/dist/components/FileManager/hooks/use-file-metadata.js +20 -0
  102. package/dist/components/FileManager/hooks/use-file-search.js +90 -0
  103. package/dist/components/FileManager/hooks/use-file-upload.js +338 -0
  104. package/dist/components/FileManager/hooks/use-folder-creation.js +151 -0
  105. package/dist/components/FileManager/hooks/use-grid-actions-column.js +65 -0
  106. package/dist/components/FileManager/hooks/use-grid-context-menu.js +188 -0
  107. package/dist/components/FileManager/hooks/use-item-renaming.js +124 -0
  108. package/dist/components/FileManager/hooks/use-new-actions.js +67 -0
  109. package/dist/components/FileManager/hooks/use-paths-selection.js +28 -0
  110. package/dist/components/FileManager/hooks/use-show-hidden-files.js +20 -0
  111. package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +39 -0
  112. package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +42 -0
  113. package/dist/components/FileManager/hooks/use-trigger-view-rename.js +25 -0
  114. package/dist/components/FileManager/utils.js +129 -0
  115. package/dist/components/FileName/FileName.js +68 -0
  116. package/dist/components/FolderName/FolderName.js +57 -0
  117. package/dist/components/FormItem/FormItem.js +90 -0
  118. package/dist/components/FormItem/constants.js +9 -0
  119. package/dist/components/FormPopup/FormPopup.js +59 -0
  120. package/dist/components/FormPopup/constants.js +6 -0
  121. package/dist/components/Grid/Grid.js +333 -0
  122. package/dist/components/Grid/constants.js +33 -0
  123. package/dist/components/Grid/renderers/DateCellRenderer.js +27 -0
  124. package/dist/components/Grid/renderers/constants.js +25 -0
  125. package/dist/components/Icon/Icon.js +6 -0
  126. package/dist/components/IconButton/IconButton.js +40 -0
  127. package/dist/components/IconButton/IconButtonWrappers.js +48 -0
  128. package/dist/components/InfoButton/InfoButton.js +32 -0
  129. package/dist/components/InfoButton/constants.js +4 -0
  130. package/dist/components/Input/Button/InputButton.js +37 -0
  131. package/dist/components/Input/Button/constants.js +4 -0
  132. package/dist/components/Input/Input.js +120 -0
  133. package/dist/components/Input/utils.js +37 -0
  134. package/dist/components/InputPopup/InputPopup.js +174 -0
  135. package/dist/components/JsonEditor/JsonEditor.js +64 -0
  136. package/dist/components/JsonEditor/lazy.js +4 -0
  137. package/dist/components/Label/Label.js +27 -0
  138. package/dist/components/LabelledText/LabelledText.js +37 -0
  139. package/dist/components/LoadFileArea/EmptyFileArea.js +130 -0
  140. package/dist/components/LoadFileArea/FilledDropZone.js +80 -0
  141. package/dist/components/LoadFileArea/FilledInput.js +29 -0
  142. package/dist/components/LoadFileArea/LoadFileArea.js +70 -0
  143. package/dist/components/LoadFileArea/LoadFileAreaField.js +128 -0
  144. package/dist/components/Loader/Loader.js +40 -0
  145. package/dist/components/Loader/constants.js +5 -0
  146. package/dist/components/MarkdownEditor/MarkdownEditor.js +37 -0
  147. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +80 -0
  148. package/dist/components/MarkdownEditor/lazy.js +4 -0
  149. package/dist/components/New/Accordion/Accordion.js +103 -0
  150. package/dist/components/New/Button/Button.js +76 -0
  151. package/dist/components/New/Button/ButtonWrappers.js +44 -0
  152. package/dist/components/New/Button/constants.js +27 -0
  153. package/dist/components/New/Button/utils.js +11 -0
  154. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +28 -0
  155. package/dist/components/New/ButtonDropdown/constants.js +17 -0
  156. package/dist/components/New/Calendar/Calendar.js +343 -0
  157. package/dist/components/New/Calendar/constants.js +57 -0
  158. package/dist/components/New/Calendar/utils.js +77 -0
  159. package/dist/components/New/CaptionText/CaptionText.js +27 -0
  160. package/dist/components/New/CardShell/CardShell.js +22 -0
  161. package/dist/components/New/Checkbox/Checkbox.js +92 -0
  162. package/dist/components/New/Checkbox/CheckboxBox.js +34 -0
  163. package/dist/components/New/Checkbox/constants.js +8 -0
  164. package/dist/components/New/CloseButton/CloseButton.js +33 -0
  165. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +108 -0
  166. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +78 -0
  167. package/dist/components/New/ConfirmationPopup/constants.js +27 -0
  168. package/dist/components/New/Dropdown/Dropdown.js +316 -0
  169. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +105 -0
  170. package/dist/components/New/Dropdown/constants.js +28 -0
  171. package/dist/components/New/Dropdown/item-mark.js +6 -0
  172. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +45 -0
  173. package/dist/components/New/EllipsisTooltip/use-truncation.js +18 -0
  174. package/dist/components/New/FileDropzone/FileDropzone.js +135 -0
  175. package/dist/components/New/FolderPath/FolderPath.js +64 -0
  176. package/dist/components/New/Grid/Grid.js +301 -0
  177. package/dist/components/New/Grid/components/SelectionCell.js +50 -0
  178. package/dist/components/New/Grid/components/SelectionHeader.js +46 -0
  179. package/dist/components/New/Grid/constants.js +44 -0
  180. package/dist/components/New/Grid/renderers/DateCellRenderer.js +27 -0
  181. package/dist/components/New/Grid/renderers/constants.js +25 -0
  182. package/dist/components/New/Highlight/Highlight.js +50 -0
  183. package/dist/components/New/IconButton/IconButton.js +46 -0
  184. package/dist/components/New/IconButton/IconButtonWrappers.js +40 -0
  185. package/dist/components/New/InfoButton/InfoButton.js +39 -0
  186. package/dist/components/New/InlineSelect/InlineSelect.js +96 -0
  187. package/dist/components/New/Input/Button/InputButton.js +38 -0
  188. package/dist/components/New/Input/Button/constants.js +4 -0
  189. package/dist/components/New/Input/Input.js +169 -0
  190. package/dist/components/New/Input/utils.js +37 -0
  191. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +104 -0
  192. package/dist/components/New/InteractiveTooltip/constants.js +6 -0
  193. package/dist/components/New/Label/Label.js +42 -0
  194. package/dist/components/New/MarkdownEditor/MarkdownEditor.js +41 -0
  195. package/dist/components/New/MarkdownEditor/constants.js +43 -0
  196. package/dist/components/New/MarkdownEditor/lazy.js +4 -0
  197. package/dist/components/New/MenuItem/MenuItem.js +108 -0
  198. package/dist/components/New/MenuItem/constants.js +16 -0
  199. package/dist/components/New/NoDataContent/NoDataContent.js +54 -0
  200. package/dist/components/New/Notification/Notification.js +67 -0
  201. package/dist/components/New/Notification/NotificationWrapper.js +61 -0
  202. package/dist/components/New/Notification/constants.js +32 -0
  203. package/dist/components/New/NumberInput/NumberInput.js +41 -0
  204. package/dist/components/New/PasswordInput/PasswordInput.js +54 -0
  205. package/dist/components/New/Popup/Popup.js +164 -0
  206. package/dist/components/New/Popup/constants.js +17 -0
  207. package/dist/components/New/Radio/Radio.js +100 -0
  208. package/dist/components/New/RadioGroup/RadioGroup.js +81 -0
  209. package/dist/components/New/RadioGroup/constants.js +11 -0
  210. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +138 -0
  211. package/dist/components/New/RadioGroupPopupField/constants.js +11 -0
  212. package/dist/components/New/ResizableContainer/ConditionalResizableContainer.js +6 -0
  213. package/dist/components/New/ResizableContainer/ResizableContainer.js +106 -0
  214. package/dist/components/New/ResizableContainer/components/ResizeHandle.js +85 -0
  215. package/dist/components/New/Search/Search.js +74 -0
  216. package/dist/components/New/SegmentedControl/SegmentedControl.js +92 -0
  217. package/dist/components/New/SegmentedControl/constants.js +19 -0
  218. package/dist/components/New/Select/MultiSelectTags.js +23 -0
  219. package/dist/components/New/Select/Select.js +379 -0
  220. package/dist/components/New/Select/SelectSubMenuItem.js +103 -0
  221. package/dist/components/New/Select/constants.js +42 -0
  222. package/dist/components/New/Slider/Slider.js +112 -0
  223. package/dist/components/New/Switch/Switch.js +95 -0
  224. package/dist/components/New/Tabs/Tabs.js +95 -0
  225. package/dist/components/New/Tag/Tag.js +76 -0
  226. package/dist/components/New/Tag/constants.js +17 -0
  227. package/dist/components/New/TagInput/TagInput.js +197 -0
  228. package/dist/components/New/TagInput/utils.js +21 -0
  229. package/dist/components/New/Textarea/Textarea.js +55 -0
  230. package/dist/components/New/ThemeScope/ThemeScope.js +14 -0
  231. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +54 -0
  232. package/dist/components/New/Tooltip/Tooltip.js +19 -0
  233. package/dist/components/New/Tooltip/TooltipContainer.js +12 -0
  234. package/dist/components/New/Tooltip/TooltipContent.js +45 -0
  235. package/dist/components/New/Tooltip/TooltipContext.js +67 -0
  236. package/dist/components/New/Tooltip/TooltipTrigger.js +45 -0
  237. package/dist/components/New/Tooltip/constants.js +8 -0
  238. package/dist/components/New/constants/icon.js +4 -0
  239. package/dist/components/New/constants/overlay.js +27 -0
  240. package/dist/components/NoDataContent/NoDataContent.js +45 -0
  241. package/dist/components/Notification/Notification.js +67 -0
  242. package/dist/components/Notification/constants.js +24 -0
  243. package/dist/components/NumberInput/NumberInput.js +41 -0
  244. package/dist/components/Pagination/Pagination.js +80 -0
  245. package/dist/components/Pagination/utils.js +10 -0
  246. package/dist/components/PasswordInput/Icons/HideIcon.js +16 -0
  247. package/dist/components/PasswordInput/Icons/ShowIcon.js +16 -0
  248. package/dist/components/PasswordInput/PasswordInput.js +21 -0
  249. package/dist/components/Popup/Popup.js +110 -0
  250. package/dist/components/Popup/constants.js +12 -0
  251. package/dist/components/ProgressBar/ProgressBar.js +58 -0
  252. package/dist/components/RadioButton/RadioButton.js +103 -0
  253. package/dist/components/RadioGroup/RadioGroup.js +92 -0
  254. package/dist/components/RadioGroup/constants.js +10 -0
  255. package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +101 -0
  256. package/dist/components/RemoveButton/RemoveButton.js +30 -0
  257. package/dist/components/ResizableContainer/ConditionalResizableContainer.js +6 -0
  258. package/dist/components/ResizableContainer/ResizableContainer.js +79 -0
  259. package/dist/components/ResizableContainer/components/ResizeHandle.js +20 -0
  260. package/dist/components/ResizableContainer/components/ResizeIcon.js +11 -0
  261. package/dist/components/SchemaRenderer/SchemaRenderer.js +150 -0
  262. package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +41 -0
  263. package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +74 -0
  264. package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +118 -0
  265. package/dist/components/SchemaRenderer/components/SchemaField.js +78 -0
  266. package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +114 -0
  267. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +184 -0
  268. package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
  269. package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +192 -0
  270. package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +161 -0
  271. package/dist/components/SchemaRenderer/components/SchemaSection.js +81 -0
  272. package/dist/components/SchemaRenderer/context.js +12 -0
  273. package/dist/components/SchemaRenderer/types.js +27 -0
  274. package/dist/components/SchemaRenderer/utils.js +258 -0
  275. package/dist/components/Search/Search.js +63 -0
  276. package/dist/components/Search/constants.js +27 -0
  277. package/dist/components/SegmentedControl/SegmentedControl.js +87 -0
  278. package/dist/components/SegmentedControl/constants.js +8 -0
  279. package/dist/components/Select/MultiSelectTags.js +23 -0
  280. package/dist/components/Select/Select.js +435 -0
  281. package/dist/components/Select/SelectSubMenuItem.js +90 -0
  282. package/dist/components/Select/constants.js +15 -0
  283. package/dist/components/SelectField/SelectField.js +66 -0
  284. package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
  285. package/dist/components/Skeleton/Skeleton.js +90 -0
  286. package/dist/components/Skeleton/utils.js +16 -0
  287. package/dist/components/Slider/Slider.js +158 -0
  288. package/dist/components/Spinner/Spinner.js +30 -0
  289. package/dist/components/Steps/Step.js +34 -0
  290. package/dist/components/Steps/Steps.js +27 -0
  291. package/dist/components/Steps/utils.js +42 -0
  292. package/dist/components/Switch/Switch.js +70 -0
  293. package/dist/components/Tab/Tab.js +65 -0
  294. package/dist/components/Tabs/Tabs.js +213 -0
  295. package/dist/components/Tabs/constants.js +4 -0
  296. package/dist/components/Tag/Tag.js +37 -0
  297. package/dist/components/TagInput/TagInput.js +179 -0
  298. package/dist/components/Textarea/Textarea.js +43 -0
  299. package/dist/components/Tooltip/Tooltip.js +30 -0
  300. package/dist/components/Tooltip/TooltipContainer.js +12 -0
  301. package/dist/components/Tooltip/TooltipContent.js +40 -0
  302. package/dist/components/Tooltip/TooltipContext.js +66 -0
  303. package/dist/components/Tooltip/TooltipTrigger.js +33 -0
  304. package/dist/components-manifest.json +1130 -182
  305. package/dist/{JsonEditor-DrC6i27F.js → constants/editor.js} +5 -63
  306. package/dist/constants/file-grid-columns.js +176 -0
  307. package/dist/constants/icon.js +10 -0
  308. package/dist/constants/validation.js +11 -0
  309. package/dist/dial-ui-kit.cjs +2 -0
  310. package/dist/dial-ui-kit.js +416 -0
  311. package/dist/editors.cjs +1 -0
  312. package/dist/editors.js +12 -0
  313. package/dist/file-manager.cjs +1 -0
  314. package/dist/file-manager.js +22 -0
  315. package/dist/grid.cjs +1 -0
  316. package/dist/grid.js +30 -0
  317. package/dist/hooks/use-editable-item.js +94 -0
  318. package/dist/hooks/use-flexible-actions.js +72 -0
  319. package/dist/hooks/use-has-hover.js +17 -0
  320. package/dist/hooks/use-is-mobile-screen.js +12 -0
  321. package/dist/hooks/use-is-tablet-screen.js +12 -0
  322. package/dist/hooks/use-screen-type.js +14 -0
  323. package/dist/hooks/use-width-breakpoint.js +15 -0
  324. package/dist/icon-CrGVkVpG.cjs +1 -0
  325. package/dist/icon-DhjrDQ8I.cjs +1 -0
  326. package/dist/index.css +2 -2
  327. package/dist/lazy-B1eG0EeX.cjs +1 -0
  328. package/dist/merge-classes-Dipy1Ih1.cjs +1 -0
  329. package/dist/migration-guides/0.14.0/button-tooltip-2-0.md +1 -1
  330. package/dist/migration-guides/0.14.0/shadow-token-per-step-rename.md +139 -0
  331. package/dist/migration-guides/0.14.0/tag-single-size.md +121 -0
  332. package/dist/migration-guides/README.md +2 -0
  333. package/dist/models/file.js +6 -0
  334. package/dist/models/selection-mode.js +4 -0
  335. package/dist/models/step.js +4 -0
  336. package/dist/node_modules/@react-dnd/asap/dist/AsapQueue.js +39 -0
  337. package/dist/node_modules/@react-dnd/asap/dist/RawTask.js +17 -0
  338. package/dist/node_modules/@react-dnd/asap/dist/TaskFactory.js +16 -0
  339. package/dist/node_modules/@react-dnd/asap/dist/asap.js +9 -0
  340. package/dist/node_modules/@react-dnd/asap/dist/makeRequestCall.js +62 -0
  341. package/dist/node_modules/@react-dnd/invariant/dist/index.js +22 -0
  342. package/dist/node_modules/@react-dnd/shallowequal/dist/index.js +25 -0
  343. package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +39799 -0
  344. package/dist/node_modules/ag-grid-react/dist/package/index.esm.js +1989 -0
  345. package/dist/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js +70 -0
  346. package/dist/node_modules/dnd-core/dist/actions/dragDrop/drop.js +54 -0
  347. package/dist/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js +18 -0
  348. package/dist/node_modules/dnd-core/dist/actions/dragDrop/hover.js +42 -0
  349. package/dist/node_modules/dnd-core/dist/actions/dragDrop/index.js +17 -0
  350. package/dist/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js +13 -0
  351. package/dist/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js +12 -0
  352. package/dist/node_modules/dnd-core/dist/actions/dragDrop/types.js +9 -0
  353. package/dist/node_modules/dnd-core/dist/actions/registry.js +43 -0
  354. package/dist/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js +41 -0
  355. package/dist/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js +115 -0
  356. package/dist/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js +96 -0
  357. package/dist/node_modules/dnd-core/dist/contracts.js +21 -0
  358. package/dist/node_modules/dnd-core/dist/createDragDropManager.js +19 -0
  359. package/dist/node_modules/dnd-core/dist/interfaces.js +7 -0
  360. package/dist/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js +30 -0
  361. package/dist/node_modules/dnd-core/dist/reducers/dragOffset.js +50 -0
  362. package/dist/node_modules/dnd-core/dist/reducers/dragOperation.js +78 -0
  363. package/dist/node_modules/dnd-core/dist/reducers/index.js +42 -0
  364. package/dist/node_modules/dnd-core/dist/reducers/refCount.js +16 -0
  365. package/dist/node_modules/dnd-core/dist/reducers/stateId.js +6 -0
  366. package/dist/node_modules/dnd-core/dist/utils/coords.js +26 -0
  367. package/dist/node_modules/dnd-core/dist/utils/dirtiness.js +12 -0
  368. package/dist/node_modules/dnd-core/dist/utils/equality.js +17 -0
  369. package/dist/node_modules/dnd-core/dist/utils/getNextUniqueId.js +7 -0
  370. package/dist/node_modules/dnd-core/dist/utils/js_utils.js +36 -0
  371. package/dist/node_modules/dnd-core/dist/utils/matchesType.js +8 -0
  372. package/dist/node_modules/fast-deep-equal/index.js +31 -0
  373. package/dist/node_modules/mime-db/db.json.js +2527 -0
  374. package/dist/node_modules/mime-db/index.js +8 -0
  375. package/dist/node_modules/mime-types/index.js +70 -0
  376. package/dist/node_modules/mime-types/mimeScore.js +38 -0
  377. package/dist/node_modules/re-resizable/lib/index.js +424 -0
  378. package/dist/node_modules/re-resizable/lib/resizer.js +49 -0
  379. package/dist/node_modules/react-dnd/dist/core/DndContext.js +7 -0
  380. package/dist/node_modules/react-dnd/dist/core/DndProvider.js +66 -0
  381. package/dist/node_modules/react-dnd/dist/hooks/useCollectedProps.js +11 -0
  382. package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +22 -0
  383. package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +25 -0
  384. package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +21 -0
  385. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +20 -0
  386. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +19 -0
  387. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +22 -0
  388. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +15 -0
  389. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +13 -0
  390. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +23 -0
  391. package/dist/node_modules/react-dnd/dist/hooks/useDragDropManager.js +10 -0
  392. package/dist/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js +21 -0
  393. package/dist/node_modules/react-dnd/dist/hooks/useDrop/connectors.js +12 -0
  394. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useAccept.js +13 -0
  395. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDrop.js +16 -0
  396. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js +18 -0
  397. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js +18 -0
  398. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js +15 -0
  399. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js +23 -0
  400. package/dist/node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
  401. package/dist/node_modules/react-dnd/dist/hooks/useMonitorOutput.js +20 -0
  402. package/dist/node_modules/react-dnd/dist/hooks/useOptionalFactory.js +10 -0
  403. package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +88 -0
  404. package/dist/node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js +59 -0
  405. package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +87 -0
  406. package/dist/node_modules/react-dnd/dist/internals/TargetConnector.js +57 -0
  407. package/dist/node_modules/react-dnd/dist/internals/isRef.js +9 -0
  408. package/dist/node_modules/react-dnd/dist/internals/registration.js +18 -0
  409. package/dist/node_modules/react-dnd/dist/internals/wrapConnectorHooks.js +46 -0
  410. package/dist/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js +10 -0
  411. package/dist/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js +22 -0
  412. package/dist/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js +274 -0
  413. package/dist/node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js +59 -0
  414. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js +43 -0
  415. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js +10 -0
  416. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js +24 -0
  417. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js +48 -0
  418. package/dist/node_modules/react-dnd-html5-backend/dist/NativeTypes.js +7 -0
  419. package/dist/node_modules/react-dnd-html5-backend/dist/OffsetUtils.js +70 -0
  420. package/dist/node_modules/react-dnd-html5-backend/dist/OptionsReader.js +22 -0
  421. package/dist/node_modules/react-dnd-html5-backend/dist/index.js +7 -0
  422. package/dist/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js +22 -0
  423. package/dist/node_modules/redux/es/redux.js +158 -0
  424. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2924 -0
  425. package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +9 -2
  426. package/dist/src/components/FileManager/FileManager.d.ts +2 -1
  427. package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +2 -0
  428. package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +4 -2
  429. package/dist/src/components/FileManager/utils.d.ts +11 -0
  430. package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +1 -4
  431. package/dist/src/components/Grid/renderers/utils.d.ts +1 -2
  432. package/dist/src/components/JsonEditor/lazy.d.ts +14 -0
  433. package/dist/src/components/MarkdownEditor/lazy.d.ts +7 -0
  434. package/dist/src/components/New/CollapsibleSidebar/CollapsibleSidebar.d.ts +82 -0
  435. package/dist/src/components/New/Dropdown/Dropdown.d.ts +20 -0
  436. package/dist/src/components/New/Dropdown/constants.d.ts +5 -4
  437. package/dist/src/components/New/Dropdown/item-mark.d.ts +15 -0
  438. package/dist/src/components/New/EllipsisTooltip/EllipsisTooltip.d.ts +1 -1
  439. package/dist/src/components/New/EllipsisTooltip/use-truncation.d.ts +5 -0
  440. package/dist/src/components/New/Grid/Grid.d.ts +124 -0
  441. package/dist/src/components/New/Grid/components/SelectionCell.d.ts +21 -0
  442. package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +14 -0
  443. package/dist/src/components/New/Grid/constants.d.ts +61 -0
  444. package/dist/src/components/New/Grid/renderers/DateCellRenderer.d.ts +48 -0
  445. package/dist/src/components/New/Grid/renderers/constants.d.ts +5 -0
  446. package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +74 -0
  447. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +26 -0
  448. package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
  449. package/dist/src/components/New/MarkdownEditor/lazy.d.ts +7 -0
  450. package/dist/src/components/New/MenuItem/MenuItem.d.ts +68 -0
  451. package/dist/src/components/New/MenuItem/constants.d.ts +5 -0
  452. package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +48 -0
  453. package/dist/src/components/New/ResizableContainer/ConditionalResizableContainer.d.ts +34 -0
  454. package/dist/src/components/New/ResizableContainer/ResizableContainer.d.ts +77 -0
  455. package/dist/src/components/New/ResizableContainer/components/ResizeHandle.d.ts +21 -0
  456. package/dist/src/components/New/SegmentedControl/constants.d.ts +2 -2
  457. package/dist/src/components/New/Select/Select.d.ts +14 -2
  458. package/dist/src/components/New/Select/SelectSubMenuItem.d.ts +3 -0
  459. package/dist/src/components/New/Select/constants.d.ts +12 -5
  460. package/dist/src/components/New/Slider/Slider.d.ts +70 -0
  461. package/dist/src/components/New/Tag/Tag.d.ts +17 -10
  462. package/dist/src/components/New/Tag/constants.d.ts +23 -0
  463. package/dist/src/components/New/Textarea/Textarea.d.ts +8 -2
  464. package/dist/src/components/New/ThemeScope/ThemeScope.d.ts +46 -0
  465. package/dist/src/components/New/Tooltip/Tooltip.d.ts +1 -1
  466. package/dist/src/components/New/Tooltip/TooltipContent.d.ts +4 -3
  467. package/dist/src/components/New/Tooltip/constants.d.ts +10 -1
  468. package/dist/src/components/New/constants/icon.d.ts +22 -0
  469. package/dist/src/components/New/constants/overlay.d.ts +7 -0
  470. package/dist/src/components/Tooltip/TooltipContent.d.ts +4 -0
  471. package/dist/src/hooks/use-has-hover.d.ts +20 -0
  472. package/dist/src/index.d.ts +30 -4
  473. package/dist/src/models/dropdown.d.ts +40 -1
  474. package/dist/src/models/select.d.ts +30 -0
  475. package/dist/src/subpaths/editors.d.ts +22 -0
  476. package/dist/src/subpaths/file-manager.d.ts +21 -0
  477. package/dist/src/subpaths/grid.d.ts +25 -0
  478. package/dist/src/types/menu-item.d.ts +21 -0
  479. package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +1 -0
  480. package/dist/src/utils/__tests__/pointer.spec.d.ts +1 -0
  481. package/dist/src/utils/element-size-observer.d.ts +26 -0
  482. package/dist/src/utils/grid-comparators.d.ts +4 -0
  483. package/dist/src/utils/grid-date.d.ts +7 -0
  484. package/dist/src/utils/grid-registration.d.ts +16 -0
  485. package/dist/src/utils/grid-registration.spec.d.ts +1 -0
  486. package/dist/src/utils/pointer.d.ts +29 -0
  487. package/dist/src/utils/sub-menu-floating.d.ts +1 -0
  488. package/dist/types/analytics.js +4 -0
  489. package/dist/types/button.js +5 -0
  490. package/dist/types/calendar.js +4 -0
  491. package/dist/types/caption.js +4 -0
  492. package/dist/types/confirmation-popup.js +4 -0
  493. package/dist/types/dropdown.js +6 -0
  494. package/dist/types/editor.js +4 -0
  495. package/dist/types/file-manager.js +12 -0
  496. package/dist/types/flexible-actions.js +4 -0
  497. package/dist/types/form-item.js +4 -0
  498. package/dist/types/item.js +4 -0
  499. package/dist/types/menu-item.js +4 -0
  500. package/dist/types/notification.js +5 -0
  501. package/dist/types/popup.js +4 -0
  502. package/dist/types/radio-group.js +4 -0
  503. package/dist/types/resizable-container.js +4 -0
  504. package/dist/types/screen.js +4 -0
  505. package/dist/types/select.js +5 -0
  506. package/dist/types/size.js +4 -0
  507. package/dist/types/skeleton.js +6 -0
  508. package/dist/types/tab.js +6 -0
  509. package/dist/types/tag.js +4 -0
  510. package/dist/types/tooltip.js +4 -0
  511. package/dist/use-file-manager-tabs-DjdR_mYM.cjs +3 -0
  512. package/dist/utils/accessible-name.js +6 -0
  513. package/dist/utils/debounce.js +9 -0
  514. package/dist/utils/element-size-observer.js +24 -0
  515. package/dist/utils/file-accept.js +16 -0
  516. package/dist/utils/flat-to-hierarchy-convertor.js +86 -0
  517. package/dist/utils/grid-comparators.js +17 -0
  518. package/dist/utils/grid-date.js +20 -0
  519. package/dist/utils/grid-registration.js +8 -0
  520. package/dist/utils/merge-classes.js +8 -0
  521. package/dist/utils/mobile.js +11 -0
  522. package/dist/utils/path.js +4 -0
  523. package/dist/utils/pointer.js +5 -0
  524. package/dist/utils/sub-menu-floating.js +85 -0
  525. package/package.json +37 -12
  526. package/dist/JsonEditor-dP4yDdgN.cjs +0 -1
  527. package/dist/MarkdownEditor-BeNDQecT.js +0 -75
  528. package/dist/MarkdownEditor-CO-k9xZo.js +0 -35
  529. package/dist/MarkdownEditor-CSgVi6EZ.cjs +0 -1
  530. package/dist/MarkdownEditor-fskBDR5e.cjs +0 -1
  531. package/dist/dial-ui-kit.cjs.js +0 -1
  532. package/dist/dial-ui-kit.es.js +0 -220
  533. package/dist/index-DmEajFx0.cjs +0 -71
  534. package/dist/index-jMP1W9V6.js +0 -66826
@@ -0,0 +1,8 @@
1
+ import i from "./db.json.js";
2
+ var r, e;
3
+ function m() {
4
+ return e || (e = 1, r = i), r;
5
+ }
6
+ export {
7
+ m as __require
8
+ };
@@ -0,0 +1,70 @@
1
+ import { __exports as l } from "../../_virtual/index2.js";
2
+ import { __require as R } from "../mime-db/index.js";
3
+ import b from "../../_virtual/___vite-browser-external.js";
4
+ import { __require as k } from "./mimeScore.js";
5
+ var h;
6
+ function j() {
7
+ return h ? l : (h = 1, (function(i) {
8
+ var t = R(), E = b.extname, m = k(), v = /^\s*([^;\s]*)(?:;|\s|$)/, d = /^text\//i;
9
+ i.charset = _, i.charsets = { lookup: _ }, i.contentType = g, i.extension = o, i.extensions = /* @__PURE__ */ Object.create(null), i.lookup = q, i.types = /* @__PURE__ */ Object.create(null), i._extensionConflicts = [], C(i.extensions, i.types);
10
+ function _(r) {
11
+ if (!r || typeof r != "string")
12
+ return !1;
13
+ var e = v.exec(r), n = e && t[e[1].toLowerCase()];
14
+ return n && n.charset ? n.charset : e && d.test(e[1]) ? "UTF-8" : !1;
15
+ }
16
+ function g(r) {
17
+ if (!r || typeof r != "string")
18
+ return !1;
19
+ var e = r.indexOf("/") === -1 ? i.lookup(r) : r;
20
+ if (!e)
21
+ return !1;
22
+ if (e.indexOf("charset") === -1) {
23
+ var n = i.charset(e);
24
+ n && (e += "; charset=" + n.toLowerCase());
25
+ }
26
+ return e;
27
+ }
28
+ function o(r) {
29
+ if (!r || typeof r != "string")
30
+ return !1;
31
+ var e = v.exec(r), n = e && i.extensions[e[1].toLowerCase()];
32
+ return !n || !n.length ? !1 : n[0];
33
+ }
34
+ function q(r) {
35
+ if (!r || typeof r != "string")
36
+ return !1;
37
+ var e = E("x." + r).toLowerCase().slice(1);
38
+ return e && i.types[e] || !1;
39
+ }
40
+ function C(r, e) {
41
+ Object.keys(t).forEach(function(a) {
42
+ var u = t[a], f = u.extensions;
43
+ if (!(!f || !f.length)) {
44
+ r[a] = f;
45
+ for (var s = 0; s < f.length; s++) {
46
+ var c = f[s];
47
+ e[c] = O(c, e[c], a);
48
+ const T = M(
49
+ c,
50
+ e[c],
51
+ a
52
+ );
53
+ T !== e[c] && i._extensionConflicts.push([c, T, e[c]]);
54
+ }
55
+ }
56
+ });
57
+ }
58
+ function O(r, e, n) {
59
+ var a = e ? m(e, t[e].source) : 0, u = n ? m(n, t[n].source) : 0;
60
+ return a > u ? e : n;
61
+ }
62
+ function M(r, e, n) {
63
+ var a = ["nginx", "apache", void 0, "iana"], u = e ? a.indexOf(t[e].source) : 0, f = n ? a.indexOf(t[n].source) : 0;
64
+ return i.types[o] !== "application/octet-stream" && (u > f || u === f && i.types[o]?.slice(0, 12) === "application/") || u > f ? e : n;
65
+ }
66
+ })(l), l);
67
+ }
68
+ export {
69
+ j as __require
70
+ };
@@ -0,0 +1,38 @@
1
+ var t, o;
2
+ function v() {
3
+ if (o) return t;
4
+ o = 1;
5
+ var r = {
6
+ "prs.": 100,
7
+ "x-": 200,
8
+ "x.": 300,
9
+ "vnd.": 400,
10
+ default: 900
11
+ }, a = {
12
+ nginx: 10,
13
+ apache: 20,
14
+ iana: 40,
15
+ default: 30
16
+ // definitions added by `jshttp/mime-db` project?
17
+ }, c = {
18
+ // prefer application/xml over text/xml
19
+ // prefer application/rtf over text/rtf
20
+ application: 1,
21
+ // prefer font/woff over application/font-woff
22
+ font: 2,
23
+ // prefer video/mp4 over audio/mp4 over application/mp4
24
+ // See https://www.rfc-editor.org/rfc/rfc4337.html#section-2
25
+ audio: 2,
26
+ video: 3,
27
+ default: 0
28
+ };
29
+ return t = function(e, n = "default") {
30
+ if (e === "application/octet-stream")
31
+ return 0;
32
+ const [u, i] = e.split("/"), S = i.replace(/(\.|x-).*/, "$1"), f = r[S] || r.default, l = a[n] || a.default, s = c[u] || c.default, d = 1 - e.length / 100;
33
+ return f + l + s + d;
34
+ }, t;
35
+ }
36
+ export {
37
+ v as __require
38
+ };
@@ -0,0 +1,424 @@
1
+ import { jsx as A, jsxs as V } from "react/jsx-runtime";
2
+ import { PureComponent as Z } from "react";
3
+ import { flushSync as q } from "react-dom";
4
+ import { Resizer as J } from "./resizer.js";
5
+ var K = /* @__PURE__ */ (function() {
6
+ var r = function(o, t) {
7
+ return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
8
+ e.__proto__ = i;
9
+ } || function(e, i) {
10
+ for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
11
+ }, r(o, t);
12
+ };
13
+ return function(o, t) {
14
+ if (typeof t != "function" && t !== null)
15
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
16
+ r(o, t);
17
+ function e() {
18
+ this.constructor = o;
19
+ }
20
+ o.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
21
+ };
22
+ })(), z = function() {
23
+ return z = Object.assign || function(r) {
24
+ for (var o, t = 1, e = arguments.length; t < e; t++) {
25
+ o = arguments[t];
26
+ for (var i in o) Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
27
+ }
28
+ return r;
29
+ }, z.apply(this, arguments);
30
+ }, Q = {
31
+ width: "auto",
32
+ height: "auto"
33
+ }, B = function(r, o, t) {
34
+ return Math.max(Math.min(r, t), o);
35
+ }, O = function(r, o, t) {
36
+ var e = Math.round(r / o);
37
+ return e * o + t * (e - 1);
38
+ }, x = function(r, o) {
39
+ return new RegExp(r, "i").test(o);
40
+ }, _ = function(r) {
41
+ return !!(r.touches && r.touches.length);
42
+ }, $ = function(r) {
43
+ return !!((r.clientX || r.clientX === 0) && (r.clientY || r.clientY === 0));
44
+ }, j = function(r, o, t) {
45
+ t === void 0 && (t = 0);
46
+ var e = o.reduce(function(n, a, s) {
47
+ return Math.abs(a - r) < Math.abs(o[n] - r) ? s : n;
48
+ }, 0), i = Math.abs(o[e] - r);
49
+ return t === 0 || i < t ? o[e] : r;
50
+ }, P = function(r) {
51
+ return r = r.toString(), r === "auto" || r.endsWith("px") || r.endsWith("%") || r.endsWith("vh") || r.endsWith("vw") || r.endsWith("vmax") || r.endsWith("vmin") ? r : "".concat(r, "px");
52
+ }, N = function(r, o, t, e) {
53
+ if (r && typeof r == "string") {
54
+ if (r.endsWith("px"))
55
+ return Number(r.replace("px", ""));
56
+ if (r.endsWith("%")) {
57
+ var i = Number(r.replace("%", "")) / 100;
58
+ return o * i;
59
+ }
60
+ if (r.endsWith("vw")) {
61
+ var i = Number(r.replace("vw", "")) / 100;
62
+ return t * i;
63
+ }
64
+ if (r.endsWith("vh")) {
65
+ var i = Number(r.replace("vh", "")) / 100;
66
+ return e * i;
67
+ }
68
+ }
69
+ return r;
70
+ }, tt = function(r, o, t, e, i, n, a) {
71
+ return e = N(e, r.width, o, t), i = N(i, r.height, o, t), n = N(n, r.width, o, t), a = N(a, r.height, o, t), {
72
+ maxWidth: typeof e > "u" ? void 0 : Number(e),
73
+ maxHeight: typeof i > "u" ? void 0 : Number(i),
74
+ minWidth: typeof n > "u" ? void 0 : Number(n),
75
+ minHeight: typeof a > "u" ? void 0 : Number(a)
76
+ };
77
+ }, et = function(r) {
78
+ return Array.isArray(r) ? r : [r, r];
79
+ }, it = [
80
+ "as",
81
+ "ref",
82
+ "style",
83
+ "className",
84
+ "grid",
85
+ "gridGap",
86
+ "snap",
87
+ "bounds",
88
+ "boundsByDirection",
89
+ "size",
90
+ "defaultSize",
91
+ "minWidth",
92
+ "minHeight",
93
+ "maxWidth",
94
+ "maxHeight",
95
+ "lockAspectRatio",
96
+ "lockAspectRatioExtraWidth",
97
+ "lockAspectRatioExtraHeight",
98
+ "enable",
99
+ "handleStyles",
100
+ "handleClasses",
101
+ "handleWrapperStyle",
102
+ "handleWrapperClass",
103
+ "children",
104
+ "onResizeStart",
105
+ "onResize",
106
+ "onResizeStop",
107
+ "handleComponent",
108
+ "scale",
109
+ "resizeRatio",
110
+ "snapGap"
111
+ ], F = "__resizable_base__", ht = (
112
+ /** @class */
113
+ (function(r) {
114
+ K(o, r);
115
+ function o(t) {
116
+ var e, i, n, a, s = r.call(this, t) || this;
117
+ return s.ratio = 1, s.resizable = null, s.parentLeft = 0, s.parentTop = 0, s.resizableLeft = 0, s.resizableRight = 0, s.resizableTop = 0, s.resizableBottom = 0, s.targetLeft = 0, s.targetTop = 0, s.delta = {
118
+ width: 0,
119
+ height: 0
120
+ }, s.appendBase = function() {
121
+ if (!s.resizable || !s.window)
122
+ return null;
123
+ var p = s.parentNode;
124
+ if (!p)
125
+ return null;
126
+ var h = s.window.document.createElement("div");
127
+ return h.style.width = "100%", h.style.height = "100%", h.style.position = "absolute", h.style.transform = "scale(0, 0)", h.style.left = "0", h.style.flex = "0 0 100%", h.classList ? h.classList.add(F) : h.className += F, p.appendChild(h), h;
128
+ }, s.removeBase = function(p) {
129
+ var h = s.parentNode;
130
+ h && h.removeChild(p);
131
+ }, s.state = {
132
+ isResizing: !1,
133
+ width: (i = (e = s.propsSize) === null || e === void 0 ? void 0 : e.width) !== null && i !== void 0 ? i : "auto",
134
+ height: (a = (n = s.propsSize) === null || n === void 0 ? void 0 : n.height) !== null && a !== void 0 ? a : "auto",
135
+ direction: "right",
136
+ original: {
137
+ x: 0,
138
+ y: 0,
139
+ width: 0,
140
+ height: 0
141
+ },
142
+ backgroundStyle: {
143
+ height: "100%",
144
+ width: "100%",
145
+ backgroundColor: "rgba(0,0,0,0)",
146
+ cursor: "auto",
147
+ opacity: 0,
148
+ position: "fixed",
149
+ zIndex: 9999,
150
+ top: "0",
151
+ left: "0",
152
+ bottom: "0",
153
+ right: "0"
154
+ },
155
+ flexBasis: void 0
156
+ }, s.onResizeStart = s.onResizeStart.bind(s), s.onMouseMove = s.onMouseMove.bind(s), s.onMouseUp = s.onMouseUp.bind(s), s;
157
+ }
158
+ return Object.defineProperty(o.prototype, "parentNode", {
159
+ get: function() {
160
+ return this.resizable ? this.resizable.parentNode : null;
161
+ },
162
+ enumerable: !1,
163
+ configurable: !0
164
+ }), Object.defineProperty(o.prototype, "window", {
165
+ get: function() {
166
+ return !this.resizable || !this.resizable.ownerDocument ? null : this.resizable.ownerDocument.defaultView;
167
+ },
168
+ enumerable: !1,
169
+ configurable: !0
170
+ }), Object.defineProperty(o.prototype, "propsSize", {
171
+ get: function() {
172
+ return this.props.size || this.props.defaultSize || Q;
173
+ },
174
+ enumerable: !1,
175
+ configurable: !0
176
+ }), Object.defineProperty(o.prototype, "size", {
177
+ get: function() {
178
+ var t = 0, e = 0;
179
+ if (this.resizable && this.window) {
180
+ var i = this.resizable.offsetWidth, n = this.resizable.offsetHeight, a = this.resizable.style.position;
181
+ a !== "relative" && (this.resizable.style.position = "relative"), t = this.resizable.style.width !== "auto" ? this.resizable.offsetWidth : i, e = this.resizable.style.height !== "auto" ? this.resizable.offsetHeight : n, this.resizable.style.position = a;
182
+ }
183
+ return { width: t, height: e };
184
+ },
185
+ enumerable: !1,
186
+ configurable: !0
187
+ }), Object.defineProperty(o.prototype, "sizeStyle", {
188
+ get: function() {
189
+ var t = this, e = this.props.size, i = function(s) {
190
+ var p;
191
+ if (typeof t.state[s] > "u" || t.state[s] === "auto")
192
+ return "auto";
193
+ if (t.propsSize && t.propsSize[s] && (!((p = t.propsSize[s]) === null || p === void 0) && p.toString().endsWith("%"))) {
194
+ if (t.state[s].toString().endsWith("%"))
195
+ return t.state[s].toString();
196
+ var h = t.getParentSize(), l = Number(t.state[s].toString().replace("px", "")), d = l / h[s] * 100;
197
+ return "".concat(d, "%");
198
+ }
199
+ return P(t.state[s]);
200
+ }, n = e && typeof e.width < "u" && !this.state.isResizing ? P(e.width) : i("width"), a = e && typeof e.height < "u" && !this.state.isResizing ? P(e.height) : i("height");
201
+ return { width: n, height: a };
202
+ },
203
+ enumerable: !1,
204
+ configurable: !0
205
+ }), o.prototype.getParentSize = function() {
206
+ if (!this.parentNode)
207
+ return this.window ? { width: this.window.innerWidth, height: this.window.innerHeight } : { width: 0, height: 0 };
208
+ var t = this.appendBase();
209
+ if (!t)
210
+ return { width: 0, height: 0 };
211
+ var e = !1, i = this.parentNode.style.flexWrap;
212
+ i !== "wrap" && (e = !0, this.parentNode.style.flexWrap = "wrap"), t.style.position = "relative", t.style.minWidth = "100%", t.style.minHeight = "100%";
213
+ var n = {
214
+ width: t.offsetWidth,
215
+ height: t.offsetHeight
216
+ };
217
+ return e && (this.parentNode.style.flexWrap = i), this.removeBase(t), n;
218
+ }, o.prototype.bindEvents = function() {
219
+ this.window && (this.window.addEventListener("mouseup", this.onMouseUp), this.window.addEventListener("mousemove", this.onMouseMove), this.window.addEventListener("mouseleave", this.onMouseUp), this.window.addEventListener("touchmove", this.onMouseMove, {
220
+ capture: !0,
221
+ passive: !1
222
+ }), this.window.addEventListener("touchend", this.onMouseUp));
223
+ }, o.prototype.unbindEvents = function() {
224
+ this.window && (this.window.removeEventListener("mouseup", this.onMouseUp), this.window.removeEventListener("mousemove", this.onMouseMove), this.window.removeEventListener("mouseleave", this.onMouseUp), this.window.removeEventListener("touchmove", this.onMouseMove, !0), this.window.removeEventListener("touchend", this.onMouseUp));
225
+ }, o.prototype.componentDidMount = function() {
226
+ if (!(!this.resizable || !this.window)) {
227
+ var t = this.window.getComputedStyle(this.resizable);
228
+ this.setState({
229
+ width: this.state.width || this.size.width,
230
+ height: this.state.height || this.size.height,
231
+ flexBasis: t.flexBasis !== "auto" ? t.flexBasis : void 0
232
+ });
233
+ }
234
+ }, o.prototype.componentWillUnmount = function() {
235
+ this.window && this.unbindEvents();
236
+ }, o.prototype.createSizeForCssProperty = function(t, e) {
237
+ var i = this.propsSize && this.propsSize[e];
238
+ return this.state[e] === "auto" && this.state.original[e] === t && (typeof i > "u" || i === "auto") ? "auto" : t;
239
+ }, o.prototype.calculateNewMaxFromBoundary = function(t, e) {
240
+ var i = this.props.boundsByDirection, n = this.state.direction, a = i && x("left", n), s = i && x("top", n), p, h;
241
+ if (this.props.bounds === "parent") {
242
+ var l = this.parentNode;
243
+ l && (p = a ? this.resizableRight - this.parentLeft : l.offsetWidth + (this.parentLeft - this.resizableLeft), h = s ? this.resizableBottom - this.parentTop : l.offsetHeight + (this.parentTop - this.resizableTop));
244
+ } else this.props.bounds === "window" ? this.window && (p = a ? this.resizableRight : this.window.innerWidth - this.resizableLeft, h = s ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (p = a ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), h = s ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
245
+ return p && Number.isFinite(p) && (t = t && t < p ? t : p), h && Number.isFinite(h) && (e = e && e < h ? e : h), { maxWidth: t, maxHeight: e };
246
+ }, o.prototype.calculateNewSizeFromDirection = function(t, e) {
247
+ var i = this.props.scale || 1, n = et(this.props.resizeRatio || 1), a = n[0], s = n[1], p = this.state, h = p.direction, l = p.original, d = this.props, b = d.lockAspectRatio, y = d.lockAspectRatioExtraHeight, g = d.lockAspectRatioExtraWidth, u = l.width, v = l.height, w = y || 0, m = g || 0;
248
+ return x("right", h) && (u = l.width + (t - l.x) * a / i, b && (v = (u - m) / this.ratio + w)), x("left", h) && (u = l.width - (t - l.x) * a / i, b && (v = (u - m) / this.ratio + w)), x("bottom", h) && (v = l.height + (e - l.y) * s / i, b && (u = (v - w) * this.ratio + m)), x("top", h) && (v = l.height - (e - l.y) * s / i, b && (u = (v - w) * this.ratio + m)), { newWidth: u, newHeight: v };
249
+ }, o.prototype.calculateNewSizeFromAspectRatio = function(t, e, i, n) {
250
+ var a = this.props, s = a.lockAspectRatio, p = a.lockAspectRatioExtraHeight, h = a.lockAspectRatioExtraWidth, l = typeof n.width > "u" ? 10 : n.width, d = typeof i.width > "u" || i.width < 0 ? t : i.width, b = typeof n.height > "u" ? 10 : n.height, y = typeof i.height > "u" || i.height < 0 ? e : i.height, g = p || 0, u = h || 0;
251
+ if (s) {
252
+ var v = (b - g) * this.ratio + u, w = (y - g) * this.ratio + u, m = (l - u) / this.ratio + g, f = (d - u) / this.ratio + g, c = Math.max(l, v), R = Math.min(d, w), W = Math.max(b, m), M = Math.min(y, f);
253
+ t = B(t, c, R), e = B(e, W, M);
254
+ } else
255
+ t = B(t, l, d), e = B(e, b, y);
256
+ return { newWidth: t, newHeight: e };
257
+ }, o.prototype.setBoundingClientRect = function() {
258
+ var t = 1 / (this.props.scale || 1);
259
+ if (this.props.bounds === "parent") {
260
+ var e = this.parentNode;
261
+ if (e) {
262
+ var i = e.getBoundingClientRect();
263
+ this.parentLeft = i.left * t, this.parentTop = i.top * t;
264
+ }
265
+ }
266
+ if (this.props.bounds && typeof this.props.bounds != "string") {
267
+ var n = this.props.bounds.getBoundingClientRect();
268
+ this.targetLeft = n.left * t, this.targetTop = n.top * t;
269
+ }
270
+ if (this.resizable) {
271
+ var a = this.resizable.getBoundingClientRect(), s = a.left, p = a.top, h = a.right, l = a.bottom;
272
+ this.resizableLeft = s * t, this.resizableRight = h * t, this.resizableTop = p * t, this.resizableBottom = l * t;
273
+ }
274
+ }, o.prototype.onResizeStart = function(t, e) {
275
+ if (!(!this.resizable || !this.window)) {
276
+ var i = 0, n = 0;
277
+ if (t.nativeEvent && $(t.nativeEvent) ? (i = t.nativeEvent.clientX, n = t.nativeEvent.clientY) : t.nativeEvent && _(t.nativeEvent) && (i = t.nativeEvent.touches[0].clientX, n = t.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
278
+ var a = this.props.onResizeStart(t, e, this.resizable);
279
+ if (a === !1)
280
+ return;
281
+ }
282
+ this.props.size && (typeof this.props.size.height < "u" && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), typeof this.props.size.width < "u" && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), this.ratio = typeof this.props.lockAspectRatio == "number" ? this.props.lockAspectRatio : this.size.width / this.size.height;
283
+ var s, p = this.window.getComputedStyle(this.resizable);
284
+ if (p.flexBasis !== "auto") {
285
+ var h = this.parentNode;
286
+ if (h) {
287
+ var l = this.window.getComputedStyle(h).flexDirection;
288
+ this.flexDir = l.startsWith("row") ? "row" : "column", s = p.flexBasis;
289
+ }
290
+ }
291
+ this.setBoundingClientRect(), this.bindEvents();
292
+ var d = {
293
+ original: {
294
+ x: i,
295
+ y: n,
296
+ width: this.size.width,
297
+ height: this.size.height
298
+ },
299
+ isResizing: !0,
300
+ backgroundStyle: z(z({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(t.target).cursor || "auto" }),
301
+ direction: e,
302
+ flexBasis: s
303
+ };
304
+ this.setState(d);
305
+ }
306
+ }, o.prototype.onMouseMove = function(t) {
307
+ var e = this;
308
+ if (!(!this.state.isResizing || !this.resizable || !this.window)) {
309
+ if (this.window.TouchEvent && _(t))
310
+ try {
311
+ t.preventDefault(), t.stopPropagation();
312
+ } catch {
313
+ }
314
+ var i = this.props, n = i.maxWidth, a = i.maxHeight, s = i.minWidth, p = i.minHeight, h = _(t) ? t.touches[0].clientX : t.clientX, l = _(t) ? t.touches[0].clientY : t.clientY, d = this.state, b = d.direction, y = d.original, g = d.width, u = d.height, v = this.getParentSize(), w = tt(v, this.window.innerWidth, this.window.innerHeight, n, a, s, p);
315
+ n = w.maxWidth, a = w.maxHeight, s = w.minWidth, p = w.minHeight;
316
+ var m = this.calculateNewSizeFromDirection(h, l), f = m.newHeight, c = m.newWidth, R = this.calculateNewMaxFromBoundary(n, a);
317
+ this.props.snap && this.props.snap.x && (c = j(c, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (f = j(f, this.props.snap.y, this.props.snapGap));
318
+ var W = this.calculateNewSizeFromAspectRatio(c, f, { width: R.maxWidth, height: R.maxHeight }, { width: s, height: p });
319
+ if (c = W.newWidth, f = W.newHeight, this.props.grid) {
320
+ var M = O(c, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), k = O(f, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), E = this.props.snapGap || 0, U = E === 0 || Math.abs(M - c) <= E ? M : c, X = E === 0 || Math.abs(k - f) <= E ? k : f;
321
+ c = U, f = X;
322
+ }
323
+ var T = {
324
+ width: c - y.width,
325
+ height: f - y.height
326
+ };
327
+ if (this.delta = T, g && typeof g == "string") {
328
+ if (g.endsWith("%")) {
329
+ var C = c / v.width * 100;
330
+ c = "".concat(C, "%");
331
+ } else if (g.endsWith("vw")) {
332
+ var L = c / this.window.innerWidth * 100;
333
+ c = "".concat(L, "vw");
334
+ } else if (g.endsWith("vh")) {
335
+ var H = c / this.window.innerHeight * 100;
336
+ c = "".concat(H, "vh");
337
+ }
338
+ }
339
+ if (u && typeof u == "string") {
340
+ if (u.endsWith("%")) {
341
+ var C = f / v.height * 100;
342
+ f = "".concat(C, "%");
343
+ } else if (u.endsWith("vw")) {
344
+ var L = f / this.window.innerWidth * 100;
345
+ f = "".concat(L, "vw");
346
+ } else if (u.endsWith("vh")) {
347
+ var H = f / this.window.innerHeight * 100;
348
+ f = "".concat(H, "vh");
349
+ }
350
+ }
351
+ var S = {
352
+ width: this.createSizeForCssProperty(c, "width"),
353
+ height: this.createSizeForCssProperty(f, "height")
354
+ };
355
+ this.flexDir === "row" ? S.flexBasis = S.width : this.flexDir === "column" && (S.flexBasis = S.height);
356
+ var Y = this.state.width !== S.width, G = this.state.height !== S.height, I = this.state.flexBasis !== S.flexBasis, D = Y || G || I;
357
+ D && q(function() {
358
+ e.setState(S);
359
+ }), this.props.onResize && D && this.props.onResize(t, b, this.resizable, T);
360
+ }
361
+ }, o.prototype.onMouseUp = function(t) {
362
+ var e, i, n = this.state, a = n.isResizing, s = n.direction;
363
+ n.original, !(!a || !this.resizable) && (this.props.onResizeStop && this.props.onResizeStop(t, s, this.resizable, this.delta), this.props.size && this.setState({ width: (e = this.props.size.width) !== null && e !== void 0 ? e : "auto", height: (i = this.props.size.height) !== null && i !== void 0 ? i : "auto" }), this.unbindEvents(), this.setState({
364
+ isResizing: !1,
365
+ backgroundStyle: z(z({}, this.state.backgroundStyle), { cursor: "auto" })
366
+ }));
367
+ }, o.prototype.updateSize = function(t) {
368
+ var e, i;
369
+ this.setState({ width: (e = t.width) !== null && e !== void 0 ? e : "auto", height: (i = t.height) !== null && i !== void 0 ? i : "auto" });
370
+ }, o.prototype.renderResizer = function() {
371
+ var t = this, e = this.props, i = e.enable, n = e.handleStyles, a = e.handleClasses, s = e.handleWrapperStyle, p = e.handleWrapperClass, h = e.handleComponent;
372
+ if (!i)
373
+ return null;
374
+ var l = Object.keys(i).map(function(d) {
375
+ return i[d] !== !1 ? A(J, { direction: d, onResizeStart: t.onResizeStart, replaceStyles: n && n[d], className: a && a[d], children: h && h[d] ? h[d] : null }, d) : null;
376
+ });
377
+ return A("div", { className: p, style: s, children: l });
378
+ }, o.prototype.render = function() {
379
+ var t = this, e = Object.keys(this.props).reduce(function(a, s) {
380
+ return it.indexOf(s) !== -1 || (a[s] = t.props[s]), a;
381
+ }, {}), i = z(z(z({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
382
+ this.state.flexBasis && (i.flexBasis = this.state.flexBasis);
383
+ var n = this.props.as || "div";
384
+ return V(n, z({ style: i, className: this.props.className }, e, {
385
+ // `ref` is after `extendsProps` to ensure this one wins over a version
386
+ // passed in
387
+ ref: function(a) {
388
+ a && (t.resizable = a);
389
+ },
390
+ children: [this.state.isResizing && A("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()]
391
+ }));
392
+ }, o.defaultProps = {
393
+ as: "div",
394
+ onResizeStart: function() {
395
+ },
396
+ onResize: function() {
397
+ },
398
+ onResizeStop: function() {
399
+ },
400
+ enable: {
401
+ top: !0,
402
+ right: !0,
403
+ bottom: !0,
404
+ left: !0,
405
+ topRight: !0,
406
+ bottomRight: !0,
407
+ bottomLeft: !0,
408
+ topLeft: !0
409
+ },
410
+ style: {},
411
+ grid: [1, 1],
412
+ gridGap: [0, 0],
413
+ lockAspectRatio: !1,
414
+ lockAspectRatioExtraWidth: 0,
415
+ lockAspectRatioExtraHeight: 0,
416
+ scale: 1,
417
+ resizeRatio: 1,
418
+ snapGap: 0
419
+ }, o;
420
+ })(Z)
421
+ );
422
+ export {
423
+ ht as Resizable
424
+ };
@@ -0,0 +1,49 @@
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { memo as m, useCallback as u, useMemo as g } from "react";
3
+ var e = function() {
4
+ return e = Object.assign || function(r) {
5
+ for (var o, t = 1, s = arguments.length; t < s; t++) {
6
+ o = arguments[t];
7
+ for (var n in o) Object.prototype.hasOwnProperty.call(o, n) && (r[n] = o[n]);
8
+ }
9
+ return r;
10
+ }, e.apply(this, arguments);
11
+ }, l = {
12
+ width: "100%",
13
+ height: "10px",
14
+ top: "0px",
15
+ left: "0px",
16
+ cursor: "row-resize"
17
+ }, c = {
18
+ width: "10px",
19
+ height: "100%",
20
+ top: "0px",
21
+ left: "0px",
22
+ cursor: "col-resize"
23
+ }, i = {
24
+ width: "20px",
25
+ height: "20px",
26
+ position: "absolute",
27
+ zIndex: 1
28
+ }, v = {
29
+ top: e(e({}, l), { top: "-5px" }),
30
+ right: e(e({}, c), { left: void 0, right: "-5px" }),
31
+ bottom: e(e({}, l), { top: void 0, bottom: "-5px" }),
32
+ left: e(e({}, c), { left: "-5px" }),
33
+ topRight: e(e({}, i), { right: "-10px", top: "-10px", cursor: "ne-resize" }),
34
+ bottomRight: e(e({}, i), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
35
+ bottomLeft: e(e({}, i), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
36
+ topLeft: e(e({}, i), { left: "-10px", top: "-10px", cursor: "nw-resize" })
37
+ }, w = m(function(r) {
38
+ var o = r.onResizeStart, t = r.direction, s = r.children, n = r.replaceStyles, p = r.className, f = u(function(a) {
39
+ o(a, t);
40
+ }, [o, t]), h = u(function(a) {
41
+ o(a, t);
42
+ }, [o, t]), x = g(function() {
43
+ return e(e({ position: "absolute", userSelect: "none" }, v[t]), n ?? {});
44
+ }, [n, t]);
45
+ return d("div", { className: p || void 0, style: x, onMouseDown: f, onTouchStart: h, children: s });
46
+ });
47
+ export {
48
+ w as Resizer
49
+ };
@@ -0,0 +1,7 @@
1
+ import { createContext as e } from "react";
2
+ const n = e({
3
+ dragDropManager: void 0
4
+ });
5
+ export {
6
+ n as DndContext
7
+ };
@@ -0,0 +1,66 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { memo as g, useEffect as d } from "react";
3
+ import { DndContext as m } from "./DndContext.js";
4
+ import { createDragDropManager as b } from "../../../dnd-core/dist/createDragDropManager.js";
5
+ function v(n, r) {
6
+ if (n == null) return {};
7
+ var o = s(n, r), e, t;
8
+ if (Object.getOwnPropertySymbols) {
9
+ var a = Object.getOwnPropertySymbols(n);
10
+ for (t = 0; t < a.length; t++)
11
+ e = a[t], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(n, e) && (o[e] = n[e]);
12
+ }
13
+ return o;
14
+ }
15
+ function s(n, r) {
16
+ if (n == null) return {};
17
+ var o = {}, e = Object.keys(n), t, a;
18
+ for (a = 0; a < e.length; a++)
19
+ t = e[a], !(r.indexOf(t) >= 0) && (o[t] = n[t]);
20
+ return o;
21
+ }
22
+ let f = 0;
23
+ const i = /* @__PURE__ */ Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
24
+ var h = /* @__PURE__ */ g(function(r) {
25
+ var { children: o } = r, e = v(r, [
26
+ "children"
27
+ ]);
28
+ const [t, a] = D(e);
29
+ return d(() => {
30
+ if (a) {
31
+ const c = l();
32
+ return ++f, () => {
33
+ --f === 0 && (c[i] = null);
34
+ };
35
+ }
36
+ }, []), /* @__PURE__ */ u(m.Provider, {
37
+ value: t,
38
+ children: o
39
+ });
40
+ });
41
+ function D(n) {
42
+ if ("manager" in n)
43
+ return [
44
+ {
45
+ dragDropManager: n.manager
46
+ },
47
+ !1
48
+ ];
49
+ const r = x(n.backend, n.context, n.options, n.debugMode), o = !n.context;
50
+ return [
51
+ r,
52
+ o
53
+ ];
54
+ }
55
+ function x(n, r = l(), o, e) {
56
+ const t = r;
57
+ return t[i] || (t[i] = {
58
+ dragDropManager: b(n, r, o, e)
59
+ }), t[i];
60
+ }
61
+ function l() {
62
+ return typeof global < "u" ? global : window;
63
+ }
64
+ export {
65
+ h as DndProvider
66
+ };
@@ -0,0 +1,11 @@
1
+ import { useMonitorOutput as r } from "./useMonitorOutput.js";
2
+ function u(o, t, e) {
3
+ return r(
4
+ t,
5
+ o || (() => ({})),
6
+ () => e.reconnect()
7
+ );
8
+ }
9
+ export {
10
+ u as useCollectedProps
11
+ };