@epam/ai-dial-ui-kit 0.16.0-dev.3 → 0.16.0-dev.32

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 (290) hide show
  1. package/README.md +6 -1
  2. package/dist/CHANGELOG.md +57 -1
  3. package/dist/DateCellRenderer-ZFBZsJdH.cjs +63 -0
  4. package/dist/{IconButton-DHOFapLo.cjs → IconButton-CsePS6PY.cjs} +1 -1
  5. package/dist/JsonEditor-DQhHSm93.cjs +1 -0
  6. package/dist/{MarkdownEditor-Cp-KX6-T.cjs → MarkdownEditor-CvIPIbPq.cjs} +1 -1
  7. package/dist/{MarkdownEditor-Dav_pp0T.cjs → MarkdownEditor-TR6X_gdl.cjs} +1 -1
  8. package/dist/MarkdownEditorContainer-JIn_VNUX.cjs +1 -0
  9. package/dist/{Switch-DE6MrcqJ.cjs → Switch-HEL_aq23.cjs} +1 -1
  10. package/dist/_virtual/_commonjsHelpers.js +3 -28
  11. package/dist/_virtual/index.js +5 -3
  12. package/dist/components/Analytics/Bar/Bar.js +7 -7
  13. package/dist/components/Analytics/BarGroup/BarGroup.js +18 -18
  14. package/dist/components/Analytics/Histogram/Histogram.js +10 -10
  15. package/dist/components/Checkbox/Checkbox.js +9 -9
  16. package/dist/components/Dropdown/constants.js +2 -2
  17. package/dist/components/DropdownIcon/DropdownIcon.js +5 -5
  18. package/dist/components/Grid/Grid.js +11 -11
  19. package/dist/components/IconButton/IconButton.js +7 -7
  20. package/dist/components/InputPopup/InputPopup.js +8 -8
  21. package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
  22. package/dist/components/Loader/Loader.js +8 -8
  23. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
  24. package/dist/components/New/Avatar/Avatar.js +18 -17
  25. package/dist/components/New/BottomSheet/BottomSheet.js +53 -52
  26. package/dist/components/New/Breadcrumbs/constants.js +1 -1
  27. package/dist/components/New/Calendar/Calendar.js +314 -227
  28. package/dist/components/New/Calendar/TimePickerPanel.js +87 -0
  29. package/dist/components/New/Calendar/constants.js +27 -25
  30. package/dist/components/New/CaptionText/CaptionText.js +3 -4
  31. package/dist/components/New/Checkbox/Checkbox.js +23 -21
  32. package/dist/components/New/Checkbox/CheckboxBox.js +25 -18
  33. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +49 -44
  34. package/dist/components/New/Dropdown/Dropdown.js +334 -254
  35. package/dist/components/New/Dropdown/constants.js +21 -18
  36. package/dist/components/New/Dropdown/search.js +37 -0
  37. package/dist/components/New/FolderPath/FolderPath.js +151 -46
  38. package/dist/components/New/Grid/Grid.js +139 -132
  39. package/dist/components/New/Grid/constants.js +5 -2
  40. package/dist/components/New/Input/Input.js +121 -107
  41. package/dist/components/New/MenuItem/MenuItem.js +17 -17
  42. package/dist/components/New/Popup/constants.js +1 -1
  43. package/dist/components/New/Radio/Radio.js +19 -17
  44. package/dist/components/New/ResizeHandle/ResizeHandle.js +147 -0
  45. package/dist/components/New/SchemaRenderer/components/SchemaField.js +45 -44
  46. package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +41 -38
  47. package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +45 -39
  48. package/dist/components/New/Select/Select.js +201 -198
  49. package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
  50. package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
  51. package/dist/components/New/StateScreen/StateScreen.js +61 -0
  52. package/dist/components/New/Switch/Switch.js +19 -17
  53. package/dist/components/New/Textarea/Textarea.js +37 -33
  54. package/dist/components/New/TransferQueue/TransferQueue.js +66 -71
  55. package/dist/components/New/TransferQueue/TransferQueueHeader.js +30 -38
  56. package/dist/components/New/TransferQueue/TransferQueueRow.js +106 -49
  57. package/dist/components/Search/Search.js +1 -1
  58. package/dist/components/Select/Select.js +1 -1
  59. package/dist/components/Select/constants.js +6 -6
  60. package/dist/components/Slider/Slider.js +1 -1
  61. package/dist/components/Steps/Step.js +9 -9
  62. package/dist/components/TagInput/TagInput.js +1 -1
  63. package/dist/components-manifest.json +413 -1168
  64. package/dist/constants/public-class-names.js +11 -0
  65. package/dist/dial-ui-kit.cjs +4 -2
  66. package/dist/dial-ui-kit.js +354 -366
  67. package/dist/editors.cjs +1 -1
  68. package/dist/grid.cjs +1 -1
  69. package/dist/grid.js +19 -17
  70. package/dist/index.css +2 -6
  71. package/dist/lazy-kq-xfXXv.cjs +1 -0
  72. package/dist/{merge-classes-BEJXjzkx.cjs → merge-classes-B0SnCG4i.cjs} +1 -1
  73. package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
  74. package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +89 -0
  75. package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
  76. package/dist/migration-guides/README.md +3 -0
  77. package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +1767 -1763
  78. package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
  79. package/dist/src/components/ButtonDropdown/constants.d.ts +2 -2
  80. package/dist/src/components/Dropdown/constants.d.ts +1 -1
  81. package/dist/src/components/Grid/Grid.d.ts +1 -1
  82. package/dist/src/components/JsonEditor/lazy.d.ts +1 -1
  83. package/dist/src/components/MarkdownEditor/lazy.d.ts +1 -1
  84. package/dist/src/components/New/Avatar/Avatar.d.ts +9 -3
  85. package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
  86. package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
  87. package/dist/src/components/New/Calendar/Calendar.d.ts +10 -2
  88. package/dist/src/components/New/Calendar/TimePickerPanel.d.ts +15 -0
  89. package/dist/src/components/New/Calendar/constants.d.ts +7 -5
  90. package/dist/src/components/New/CaptionText/CaptionText.d.ts +8 -1
  91. package/dist/src/components/New/Dropdown/Dropdown.d.ts +42 -0
  92. package/dist/src/components/New/Dropdown/constants.d.ts +7 -1
  93. package/dist/src/components/New/Dropdown/search.d.ts +9 -0
  94. package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
  95. package/dist/src/components/New/FolderPath/FolderPath.d.ts +16 -8
  96. package/dist/src/components/New/Grid/Grid.d.ts +12 -1
  97. package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
  98. package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
  99. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
  100. package/dist/src/components/New/MarkdownEditor/lazy.d.ts +1 -1
  101. package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
  102. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  103. package/dist/src/components/New/ResizeHandle/ResizeHandle.d.ts +68 -0
  104. package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +1 -0
  105. package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +2 -0
  106. package/dist/src/components/New/SchemaRenderer/types.d.ts +3 -1
  107. package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +1 -1
  108. package/dist/src/components/New/Select/Select.d.ts +2 -0
  109. package/dist/src/components/New/Select/constants.d.ts +4 -4
  110. package/dist/src/components/New/StateScreen/StateScreen.d.ts +47 -0
  111. package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
  112. package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +9 -5
  113. package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +1 -3
  114. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  115. package/dist/src/components/Select/constants.d.ts +3 -3
  116. package/dist/src/constants/public-class-names.d.ts +11 -0
  117. package/dist/src/index.d.ts +8 -13
  118. package/dist/src/subpaths/editors.d.ts +1 -1
  119. package/dist/src/subpaths/grid.d.ts +1 -0
  120. package/dist/src/types/avatar.d.ts +9 -0
  121. package/dist/src/types/grid.d.ts +8 -0
  122. package/dist/src/utils/avatar.d.ts +2 -1
  123. package/dist/src/utils/sub-menu-floating.d.ts +1 -1
  124. package/dist/types/avatar.js +3 -2
  125. package/dist/types/grid.js +4 -0
  126. package/dist/utils/avatar.js +41 -18
  127. package/dist/utils/merge-classes.js +36 -7
  128. package/dist/utils/sub-menu-floating.js +8 -8
  129. package/package.json +9 -12
  130. package/dist/DateCellRenderer-BdUMSg-E.cjs +0 -1
  131. package/dist/DateCellRenderer-CZNa4jVJ.cjs +0 -63
  132. package/dist/JsonEditor-eAV7SaKu.cjs +0 -1
  133. package/dist/MarkdownEditorContainer-96cKYmYd.cjs +0 -1
  134. package/dist/_virtual/___vite-browser-external.js +0 -6
  135. package/dist/_virtual/__vite-browser-external.js +0 -4
  136. package/dist/_virtual/index2.js +0 -4
  137. package/dist/_virtual/index3.js +0 -7
  138. package/dist/assets/icons/add-child.svg.js +0 -5
  139. package/dist/assets/icons/add-sibling.svg.js +0 -5
  140. package/dist/assets/icons/copy-to.svg.js +0 -5
  141. package/dist/assets/icons/move-to.svg.js +0 -5
  142. package/dist/assets/icons/unshare.svg.js +0 -5
  143. package/dist/components/FileManager/FileManager.js +0 -888
  144. package/dist/components/FileManager/FileManagerContext.js +0 -5
  145. package/dist/components/FileManager/FileManagerProvider.js +0 -772
  146. package/dist/components/FileManager/FileManagerTooltip.js +0 -92
  147. package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +0 -293
  148. package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +0 -201
  149. package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +0 -52
  150. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +0 -103
  151. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +0 -5
  152. package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +0 -56
  153. package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +0 -69
  154. package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +0 -100
  155. package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +0 -93
  156. package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +0 -165
  157. package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +0 -6
  158. package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +0 -120
  159. package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +0 -119
  160. package/dist/components/FileManager/components/FileMetadataPopup/constants.js +0 -9
  161. package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +0 -180
  162. package/dist/components/FileManager/components/FoldersTree/constants.js +0 -9
  163. package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +0 -51
  164. package/dist/components/FileManager/constants.js +0 -28
  165. package/dist/components/FileManager/errors.js +0 -10
  166. package/dist/components/FileManager/hooks/use-bulk-actions.js +0 -143
  167. package/dist/components/FileManager/hooks/use-collapse-tree.js +0 -22
  168. package/dist/components/FileManager/hooks/use-conflict-resolution.js +0 -158
  169. package/dist/components/FileManager/hooks/use-current-path.js +0 -29
  170. package/dist/components/FileManager/hooks/use-file-clipboard.js +0 -154
  171. package/dist/components/FileManager/hooks/use-file-delete.js +0 -39
  172. package/dist/components/FileManager/hooks/use-file-download.js +0 -16
  173. package/dist/components/FileManager/hooks/use-file-manager-columns.js +0 -106
  174. package/dist/components/FileManager/hooks/use-file-manager-context.js +0 -13
  175. package/dist/components/FileManager/hooks/use-file-manager-tabs.js +0 -23
  176. package/dist/components/FileManager/hooks/use-file-metadata.js +0 -20
  177. package/dist/components/FileManager/hooks/use-file-search.js +0 -90
  178. package/dist/components/FileManager/hooks/use-file-upload.js +0 -338
  179. package/dist/components/FileManager/hooks/use-folder-creation.js +0 -151
  180. package/dist/components/FileManager/hooks/use-grid-actions-column.js +0 -65
  181. package/dist/components/FileManager/hooks/use-grid-context-menu.js +0 -188
  182. package/dist/components/FileManager/hooks/use-item-renaming.js +0 -124
  183. package/dist/components/FileManager/hooks/use-new-actions.js +0 -67
  184. package/dist/components/FileManager/hooks/use-paths-selection.js +0 -28
  185. package/dist/components/FileManager/hooks/use-show-hidden-files.js +0 -20
  186. package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +0 -39
  187. package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +0 -42
  188. package/dist/components/FileManager/hooks/use-trigger-view-rename.js +0 -25
  189. package/dist/components/FileManager/utils.js +0 -129
  190. package/dist/constants/file-grid-columns.js +0 -176
  191. package/dist/editor-BH6_A1k2.cjs +0 -1
  192. package/dist/file-manager.cjs +0 -1
  193. package/dist/file-manager.js +0 -22
  194. package/dist/hooks/use-flexible-actions.js +0 -72
  195. package/dist/hooks/use-width-breakpoint.js +0 -15
  196. package/dist/lazy-DMVYJhUR.cjs +0 -1
  197. package/dist/node_modules/mime-db/db.json.js +0 -2527
  198. package/dist/node_modules/mime-db/index.js +0 -8
  199. package/dist/node_modules/mime-types/index.js +0 -70
  200. package/dist/node_modules/mime-types/mimeScore.js +0 -38
  201. package/dist/src/__mocks__/monaco-editor.d.ts +0 -13
  202. package/dist/src/components/Analytics/Bar/utils.spec.d.ts +0 -1
  203. package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
  204. package/dist/src/components/Button/ButtonWrappers.test.d.ts +0 -1
  205. package/dist/src/components/Button/__tests__/utils.spec.d.ts +0 -1
  206. package/dist/src/components/FileManager/FileManager.d.ts +0 -326
  207. package/dist/src/components/FileManager/FileManagerContext.d.ts +0 -181
  208. package/dist/src/components/FileManager/FileManagerProvider.d.ts +0 -21
  209. package/dist/src/components/FileManager/FileManagerTooltip.d.ts +0 -12
  210. package/dist/src/components/FileManager/__mocks__/files.d.ts +0 -3
  211. package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +0 -90
  212. package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +0 -73
  213. package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +0 -63
  214. package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +0 -1
  215. package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +0 -56
  216. package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/constants.d.ts +0 -3
  217. package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +0 -26
  218. package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +0 -51
  219. package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +0 -57
  220. package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +0 -71
  221. package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +0 -64
  222. package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +0 -3
  223. package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +0 -76
  224. package/dist/src/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.d.ts +0 -50
  225. package/dist/src/components/FileManager/components/FileMetadataPopup/constants.d.ts +0 -6
  226. package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +0 -135
  227. package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +0 -6
  228. package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +0 -13
  229. package/dist/src/components/FileManager/constants.d.ts +0 -21
  230. package/dist/src/components/FileManager/errors.d.ts +0 -6
  231. package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +0 -1
  232. package/dist/src/components/FileManager/hooks/__tests__/use-current-path.spec.d.ts +0 -1
  233. package/dist/src/components/FileManager/hooks/__tests__/use-file-clipboard.spec.d.ts +0 -1
  234. package/dist/src/components/FileManager/hooks/__tests__/use-file-delete.spec.d.ts +0 -1
  235. package/dist/src/components/FileManager/hooks/__tests__/use-file-download.spec.d.ts +0 -1
  236. package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +0 -1
  237. package/dist/src/components/FileManager/hooks/__tests__/use-show-hidden-files.spec.d.ts +0 -1
  238. package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +0 -1
  239. package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +0 -30
  240. package/dist/src/components/FileManager/hooks/use-collapse-tree.d.ts +0 -9
  241. package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +0 -27
  242. package/dist/src/components/FileManager/hooks/use-current-path.d.ts +0 -13
  243. package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +0 -37
  244. package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +0 -13
  245. package/dist/src/components/FileManager/hooks/use-file-download.d.ts +0 -9
  246. package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +0 -43
  247. package/dist/src/components/FileManager/hooks/use-file-manager-context.d.ts +0 -7
  248. package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +0 -10
  249. package/dist/src/components/FileManager/hooks/use-file-metadata.d.ts +0 -10
  250. package/dist/src/components/FileManager/hooks/use-file-search.d.ts +0 -23
  251. package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +0 -64
  252. package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +0 -30
  253. package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +0 -15
  254. package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +0 -44
  255. package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +0 -22
  256. package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +0 -23
  257. package/dist/src/components/FileManager/hooks/use-paths-selection.d.ts +0 -13
  258. package/dist/src/components/FileManager/hooks/use-show-hidden-files.d.ts +0 -9
  259. package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +0 -22
  260. package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +0 -26
  261. package/dist/src/components/FileManager/hooks/use-trigger-view-rename.d.ts +0 -20
  262. package/dist/src/components/FileManager/utils.d.ts +0 -69
  263. package/dist/src/components/FileManager/utils.spec.d.ts +0 -1
  264. package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
  265. package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
  266. package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +0 -1
  267. package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +0 -1
  268. package/dist/src/components/New/Calendar/utils.spec.d.ts +0 -1
  269. package/dist/src/components/New/Slider/utils.spec.d.ts +0 -1
  270. package/dist/src/components/New/TagInput/utils.spec.d.ts +0 -1
  271. package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
  272. package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
  273. package/dist/src/components/Steps/tests/Steps.test.d.ts +0 -1
  274. package/dist/src/components/Steps/tests/utils.spec.d.ts +0 -1
  275. package/dist/src/constants/file-grid-columns.d.ts +0 -4
  276. package/dist/src/models/file-manager.d.ts +0 -19
  277. package/dist/src/subpaths/file-manager.d.ts +0 -21
  278. package/dist/src/types/file-manager.d.ts +0 -59
  279. package/dist/src/utils/__tests__/accessible-name.spec.d.ts +0 -1
  280. package/dist/src/utils/__tests__/avatar.spec.d.ts +0 -1
  281. package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +0 -1
  282. package/dist/src/utils/__tests__/file-accept.spec.d.ts +0 -1
  283. package/dist/src/utils/__tests__/merge-classes.spec.d.ts +0 -1
  284. package/dist/src/utils/__tests__/path.spec.d.ts +0 -1
  285. package/dist/src/utils/__tests__/pointer.spec.d.ts +0 -1
  286. package/dist/src/utils/__tests__/timezone.spec.d.ts +0 -1
  287. package/dist/src/utils/grid-registration.spec.d.ts +0 -1
  288. package/dist/types/file-manager.js +0 -12
  289. package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +0 -3
  290. package/dist/utils/path.js +0 -4
@@ -1,21 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { DialFileManagerProps } from './FileManager';
3
- export interface FileManagerProviderProps extends Omit<DialFileManagerProps, 'children'> {
4
- children: ReactNode;
5
- autoSelectUploadedItems?: boolean;
6
- }
7
- /**
8
- * Provider that encapsulates all File Manager business logic:
9
- * - path & navigation
10
- * - search (controlled + uncontrolled)
11
- * - hidden files toggle
12
- * - tree collapsed state
13
- * - selection
14
- * - clipboard (copy / cut / paste)
15
- * - delete confirmation state
16
- * - computed grid rows
17
- * - new actions
18
- *
19
- * @deprecated Import `FileManagerProvider` from `@epam/ai-dial-react-file-manager` instead.
20
- */
21
- export declare const FileManagerProvider: FC<FileManagerProviderProps>;
@@ -1,12 +0,0 @@
1
- import { FileManagerGridRow } from './FileManagerContext';
2
- import { DialFileAcceptType } from '../../models/file-manager';
3
- interface FileManagerTooltipProps {
4
- disabledGridRowIds: Set<string>;
5
- gridRows: FileManagerGridRow[];
6
- getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
7
- getRowDisabledTooltip: (row: FileManagerGridRow, allowedFileTypes?: DialFileAcceptType[], maxSelectableFileSize?: number) => string | undefined;
8
- allowedFileTypes?: DialFileAcceptType[];
9
- maxSelectableFileSize?: number;
10
- }
11
- export declare const FileManagerTooltip: ({ disabledGridRowIds, gridRows, getDisabledTooltip, getRowDisabledTooltip, allowedFileTypes, maxSelectableFileSize, }: FileManagerTooltipProps) => import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,3 +0,0 @@
1
- import { DialFile } from '../../../models/file';
2
- /** A reasonably broad tree + a very deep nested branch for stress-testing. */
3
- export declare const itemsMock: DialFile[];
@@ -1,90 +0,0 @@
1
- import { DialFile } from '../../../../models/file';
2
- import { DialFileManagerConflictActions, DialFileManagerConflictStrategies } from '../../../../types/file-manager';
3
- import { FC } from 'react';
4
- export interface FileConflictDecision {
5
- file: DialFile;
6
- action: DialFileManagerConflictActions;
7
- }
8
- export interface ConflictResolutionPopupProps {
9
- open: boolean;
10
- onClose: () => void;
11
- onReplace: () => void;
12
- onDuplicate: () => void;
13
- onDecideForEach?: (decisions: FileConflictDecision[]) => void;
14
- conflictingFiles: DialFile[];
15
- singleFileTitle?: string;
16
- multipleFilesTitle?: string;
17
- message?: string;
18
- actionLabels?: {
19
- [DialFileManagerConflictActions.Replace]?: string;
20
- [DialFileManagerConflictActions.Duplicate]?: string;
21
- [DialFileManagerConflictActions.Cancel]?: string;
22
- };
23
- strategyLabels?: {
24
- [DialFileManagerConflictStrategies.ReplaceAll]?: string;
25
- [DialFileManagerConflictStrategies.DuplicateAll]?: string;
26
- [DialFileManagerConflictStrategies.DecideForEach]?: string;
27
- };
28
- confirmLabel?: string;
29
- cancelLabel?: string;
30
- nameColumnLabel?: string;
31
- actionColumnLabel?: string;
32
- }
33
- /**
34
- * ConflictResolutionPopup
35
- *
36
- * A popup dialog for resolving file name conflicts during copy or move operations.
37
- * Shows different UI based on number of conflicting files:
38
- * - Single file: Simple Replace/Duplicate choice with radio buttons
39
- * - Multiple files: Replace all / Duplicate all / Decide for each strategy with optional grid
40
- *
41
- * When "Decide for each" is selected, displays a grid with dropdown selectors for individual
42
- * file resolution (Replace/Duplicate/Cancel).
43
- *
44
- * @example
45
- * ```tsx
46
- * // Single file conflict
47
- * <ConflictResolutionPopup
48
- * open={isOpen}
49
- * onClose={handleClose}
50
- * onReplace={handleReplace}
51
- * onDuplicate={handleDuplicate}
52
- * conflictingFiles={[file]}
53
- * />
54
- *
55
- * // Multiple files with custom labels
56
- * <ConflictResolutionPopup
57
- * open={isOpen}
58
- * onClose={handleClose}
59
- * onReplace={handleReplaceAll}
60
- * onDuplicate={handleDuplicateAll}
61
- * onDecideForEach={handleDecisions}
62
- * conflictingFiles={files}
63
- * actionLabels={{
64
- * [DialFileManagerConflictActions.Replace]: 'Overwrite',
65
- * [DialFileManagerConflictActions.Duplicate]: 'Keep Both',
66
- * }}
67
- * strategyLabels={{
68
- * [DialFileManagerConflictStrategies.ReplaceAll]: 'Overwrite All',
69
- * [DialFileManagerConflictStrategies.DuplicateAll]: 'Keep All',
70
- * }}
71
- * />
72
- * ```
73
- *
74
- * @param open - Whether the popup is visible
75
- * @param onClose - Callback fired when the popup is closed
76
- * @param onReplace - Callback fired when Replace/Replace All is confirmed
77
- * @param onDuplicate - Callback fired when Duplicate/Duplicate All is confirmed
78
- * @param [onDecideForEach] - Callback fired when individual decisions are confirmed; receives array of decisions
79
- * @param conflictingFiles - Array of files with name conflicts
80
- * @param [singleFileTitle="Replace Or Duplicate Item"] - Title for single file conflicts
81
- * @param [multipleFilesTitle="Replace Or Duplicate Items"] - Title for multiple file conflicts
82
- * @param [message] - Custom message (overrides default conflict description)
83
- * @param [actionLabels] - Custom labels for conflict actions (Replace/Duplicate/Cancel)
84
- * @param [strategyLabels] - Custom labels for conflict strategies (Replace all/Duplicate all/Decide for each)
85
- * @param [confirmLabel="Confirm"] - Label for the confirm button
86
- * @param [cancelLabel="Cancel"] - Label for the cancel button
87
- * @param [nameColumnLabel="Name"] - Label for the file name column in the grid
88
- * @param [actionColumnLabel="Action"] - Label for the action column in the grid
89
- */
90
- export declare const ConflictResolutionPopup: FC<ConflictResolutionPopupProps>;
@@ -1,73 +0,0 @@
1
- import { DialFileManagerProps } from '../../FileManager';
2
- import { FC, ReactNode } from 'react';
3
- import { DialNotificationProps } from '../../../Notification/Notification';
4
- export interface DestinationFolderPopupProps extends DialFileManagerProps {
5
- onClose: () => void;
6
- onConfirm?: () => void;
7
- open: boolean;
8
- setDestinationFolderPath?: (path?: string) => void;
9
- destinationFolderPath?: string;
10
- copyLabel?: string;
11
- moveLabel?: string;
12
- addFolderLabel?: string;
13
- showHiddenFileSwitcher?: boolean;
14
- showCreateFolderButton?: boolean;
15
- hiddenFilesSwitcherLabel?: string;
16
- mode?: 'copy' | 'move';
17
- header?: ReactNode;
18
- sourceFolder?: string;
19
- disabledPathTooltip?: string;
20
- collapsedFileTree?: boolean;
21
- alertProps?: DialNotificationProps;
22
- onFolderPopupPathChange?: (newPath?: string) => void;
23
- processDestinationFolderPath?: (path: string) => string;
24
- excludedPaths?: string[];
25
- }
26
- /**
27
- * DestinationFolderPopup
28
- * aliases: FolderSelector|PathChooser
29
- * Design system 1.0
30
- *
31
- * @deprecated Import `DialDestinationFolderPopup` from `@epam/ai-dial-react-file-manager` instead.
32
- *
33
- * A popup dialog for selecting a destination folder when copying or moving files.
34
- * Displays a File Manager interface with a footer containing action buttons and
35
- * a toggle for showing hidden files.
36
- *
37
- * @example
38
- * ```tsx
39
- * <DestinationFolderPopup
40
- * open={isOpen}
41
- * onClose={handleClose}
42
- * onConfirm={handleConfirm}
43
- * mode="copy"
44
- * title="Copy 3 files"
45
- * items={files}
46
- * rootItem={rootFolder}
47
- * path={currentPath}
48
- * onPathChange={setCurrentPath}
49
- * />
50
- * ```
51
- *
52
- * @param open - Whether the popup is visible
53
- * @param onClose - Callback fired when the popup is closed
54
- * @param [onConfirm] - Callback fired when the confirm button is clicked
55
- * @param [mode=DestinationFolderMode.Copy] - Operation mode: 'copy' or 'move'
56
- * @param [copyLabel="Copy"] - Label for the copy button
57
- * @param [moveLabel="Move"] - Label for the move button
58
- * @param [addFolderLabel="Add folder"] - Label for the add folder button
59
- * @param [hiddenFilesSwitcherLabel="Show hidden files"] - Label for the hidden files toggle
60
- * @param [title] - Custom title for the popup header
61
- * @param items - Array of files to display in the File Manager
62
- * @param rootItem - Root folder item
63
- * @param path - Current path in the File Manager
64
- * @param onPathChange - Callback fired when the path changes
65
- * @param [sourceFolder] - The source folder path for move operations
66
- * @param [disabledPathTooltip="Unavailable for the original path. Please select another folder"] - Tooltip text when destination is disabled
67
- * @param [collapsedFileTree=false] - Whether the file tree should be initially collapsed
68
- * @param [processDestinationFolderPath] - Optional function to process the destination folder path before setting it
69
- * @param [excludedPaths] - Paths to hide from this popup's tree and grid (e.g. a root folder that shouldn't be a valid destination). Matching items and their subtree are excluded.
70
- *
71
- * @returns A React component for the destination folder selection popup
72
- */
73
- export declare const DialDestinationFolderPopup: FC<DestinationFolderPopupProps>;
@@ -1,63 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { DialFileNodeType } from '../../../../models/file';
3
- interface DialFileManagerItemSummaryCellProps {
4
- id: string;
5
- name: string;
6
- nodeType: DialFileNodeType;
7
- size?: number;
8
- updatedAt?: string;
9
- shared?: boolean;
10
- dateLocale?: Intl.LocalesArgument;
11
- dateOptions?: Intl.DateTimeFormatOptions;
12
- sharedIndicatorClassName?: string;
13
- hideTooltip?: boolean;
14
- forbiddenSymbolsRegExp?: RegExp;
15
- forbiddenSymbolsTooltip?: ReactNode;
16
- }
17
- /**
18
- * Renders file or folder details inside the File Manager list/grid item.
19
- *
20
- * Displays the item name with an icon (via `DialFileManagerItemName`),
21
- * followed by a small details row:
22
- *
23
- * - File size (e.g., `"15 KB"`)
24
- * - A separator dot
25
- * - Formatted update date (via `DialDateCellRenderer`)
26
- *
27
- * The component automatically determines whether to show a **file** or **folder**
28
- * icon based on `nodeType`.
29
- *
30
- * ### Example
31
- * ```tsx
32
- * <DialFileManagerItemSummaryCell
33
- * id="42"
34
- * name="Report.pdf"
35
- * nodeType={DialFileNodeType.ITEM}
36
- * size={225280}
37
- * updatedAt="2025-07-20T00:00:00Z"
38
- * dateLocale="en-US"
39
- * dateOptions={{ timeZone: 'UTC' }}
40
- * />
41
- *
42
- * <DialFileManagerItemSummaryCell
43
- * id="folder-1"
44
- * name="Projects"
45
- * nodeType={DialFileNodeType.FOLDER}
46
- * updatedAt={undefined}
47
- * />
48
- * ```
49
- *
50
- * @param id - Unique identifier passed to `DialFileManagerItemName` as `elementId`.
51
- * @param name - File or folder display name.
52
- * @param nodeType - Determines whether the item renders as a **File** or **Folder**.
53
- * @param size - File size in bytes; formatted with {@link formatBytes}. Omit for folders.
54
- * @param updatedAt - Date or timestamp passed to `DialDateCellRenderer`. If invalid or missing, renders `"—"`.
55
- * @param dateLocale - Optional locale override for date formatting (e.g., `"fr-FR"`).
56
- * @param dateOptions - Optional `Intl.DateTimeFormat` configuration (e.g., `{ timeZone: 'UTC' }`).
57
- * @params sharedIndicatorClassName - Optional CSS classes for the shared indicator.
58
- * @param hideTooltip - If `true`, disables tooltips on the name and date, even if truncated.
59
- * @param forbiddenSymbolsRegExp - Optional RegExp to validate the name for forbidden symbols.
60
- * @param forbiddenSymbolsTooltip - Custom tooltip content when the name contains forbidden symbols; defaults to a standard message.
61
- */
62
- export declare const DialFileManagerItemSummaryCell: FC<DialFileManagerItemSummaryCellProps>;
63
- export {};
@@ -1,56 +0,0 @@
1
- import { FC } from 'react';
2
- import { DropdownItem } from '../../../../models/dropdown';
3
- export interface DialActionDropdownItem extends DropdownItem {
4
- title: string;
5
- tooltip?: string;
6
- }
7
- export interface DialFileManagerBulkActionsToolbarProps {
8
- getSelectionLabel: (selectedCount: number) => string;
9
- onClearSelection: () => void;
10
- actions: DialActionDropdownItem[];
11
- selectedCount: number;
12
- }
13
- /**
14
- * A responsive toolbar component displayed when files or items are selected
15
- * in the file manager. It shows a label with the number or name of selected
16
- * items and provides contextual action buttons.
17
- *
18
- * On smaller screens or when there’s not enough horizontal space,
19
- * some action buttons are automatically moved into a dropdown menu.
20
- *
21
- * **Key Features:**
22
- * - Dynamically measures available container width to determine how many actions
23
- * can fit inline.
24
- * - Uses a hidden measurement container to precisely calculate button widths.
25
- * - Automatically moves overflow actions into a "More" dropdown (`IconDotsVertical`).
26
- * - Responsive design with support for mobile layout via `useIsMobileScreen`.
27
- *
28
- * **Layout logic:**
29
- * - `measureRef`: hidden element used to measure the width of each button.
30
- * - `containerRef`: visible container where the toolbar is rendered.
31
- * - `leftSectionRef`: left section containing the "selected items" button.
32
- * - `visibleCount`: dynamically updated number of visible actions.
33
- * - Uses `ResizeObserver` + `requestAnimationFrame` to update layout on resize.
34
- *
35
- * @example
36
- * ```tsx
37
- * <DialFileManagerSelectionToolbar
38
- * getSelectionLabel={(count) => `${count} files selected`}
39
- * onClearSelection={() => console.log('Cleared')}
40
- * actions={[
41
- * { key: 'download', title: 'Download', icon: <IconDownload />, onClick: () => {} },
42
- * { key: 'delete', title: 'Delete', icon: <IconTrash />, onClick: () => {} },
43
- * ]}
44
- * />
45
- * ```
46
- *
47
- * @param {object} props
48
- * @param {() => string} props.getSelectionLabel - Function to get the label showing current selection status (e.g., "3 files selected").
49
- * @param {() => void} props.onClearSelection - Callback invoked when the clear selection button is clicked.
50
- * @param {DialActionDropdownItem[]} props.actions - List of available toolbar actions.
51
- * Each action defines a title, icon, key, and optional click handler.
52
- * @param {number} [props.selectedCount] - Count of currently selected items.
53
- *
54
- * @returns {JSX.Element} A responsive toolbar that adjusts visible actions based on available width.
55
- */
56
- export declare const DialFileManagerBulkActionsToolbar: FC<DialFileManagerBulkActionsToolbarProps>;
@@ -1,3 +0,0 @@
1
- export declare const ACTIONS_GAP = 12;
2
- export declare const MORE_BUTTON_WIDTH = 18;
3
- export declare const CONTAINER_PADDING = 8;
@@ -1,26 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { DialFile } from '../../../../models/file';
3
- export interface FileManagerDeleteConfirmationPopupProps {
4
- open: boolean;
5
- itemsToDelete: DialFile[];
6
- onClose: () => void;
7
- onConfirm: () => void;
8
- cancelLabel?: string;
9
- confirmLabel?: string;
10
- titleRenderer?: (fileNames: string[]) => ReactNode;
11
- contentRenderer?: (fileNames: string[]) => ReactNode;
12
- }
13
- /**
14
- * Confirmation popup for deleting files in FileManager.
15
- * Shows a list of files to be deleted with customizable title and content.
16
- *
17
- * @param open - Controls visibility of the popup
18
- * @param itemsToDelete - Array of files to be deleted
19
- * @param onClose - Callback when popup is closed
20
- * @param onConfirm - Callback when delete is confirmed
21
- * @param [cancelLabel='Cancel'] - Label for cancel button
22
- * @param [confirmLabel='Delete'] - Label for confirm button
23
- * @param [titleRenderer] - Custom title renderer function
24
- * @param [contentRenderer] - Custom content renderer function
25
- */
26
- export declare const FileManagerDeleteConfirmationPopup: FC<FileManagerDeleteConfirmationPopupProps>;
@@ -1,51 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { DialFileIconProps } from '../../../FileIcon/FileIcon';
3
- import { DialItemType } from '../../../../types/item';
4
- export interface DialFileManagerItemIconProps extends Omit<DialFileIconProps, 'extension'> {
5
- type: DialItemType;
6
- name: string;
7
- shared?: boolean;
8
- loading?: boolean;
9
- sharedIndicatorClassName?: string;
10
- sharedIndicatorTooltip?: ReactNode;
11
- fileExtension?: string;
12
- }
13
- /**
14
- * Renders an icon representing either a file or folder entity in the Dial system.
15
- *
16
- * Displays:
17
- * - A file icon based on its extension (via `DialFileIcon`)
18
- * - A folder icon (via `IconFolder`)
19
- * - A loading spinner if `loading` is true
20
- * - A shared indicator if the entity is marked as shared
21
- *
22
- * @example
23
- * ```tsx
24
- * <DialFileManagerItemIcon
25
- * name="document.pdf"
26
- * type={DialItemType.File}
27
- * shared
28
- * />
29
- *
30
- * <DialFileManagerItemIcon
31
- * name="My Folder"
32
- * type={DialItemType.Folder}
33
- * loading
34
- * />
35
- * ```
36
- *
37
- * @param {Object} props
38
- * @param {string} props.name - The name of the file or folder (used to determine extension for files).
39
- * @param {DialItemType} props.type - The type of the item (`file` or `folder`).
40
- * @param {boolean} [props.shared=false] - Whether the item is shared.
41
- * @param {boolean} [props.loading=false] - Whether to display the loading state.
42
- * @param {number} [props.size] - Optional icon size override.
43
- * @param {number} [props.stroke] - Optional icon stroke width override.
44
- * @param {string} [props.className] - Optional CSS class for styling.
45
- * @param {boolean} [props.decorative] - Whether the icon is decorative (for accessibility).
46
- * @param {string} [props.label] - Accessible label for screen readers.
47
- * @param {ReactNode} [props.indicator] - Optional indicator to display over the icon.
48
- * @param {string} [props.sharedIndicatorClassName] - Optional CSS class for the shared indicator.
49
- * @param [sharedIndicatorTooltip] - Custom tooltip content for the shared indicator; defaults to "Shared"
50
- */
51
- export declare const DialFileManagerItemIcon: FC<DialFileManagerItemIconProps>;
@@ -1,57 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { DialFileManagerItemNameInputProps } from '../FileManagerItemNameInput/FileManagerItemNameInput';
3
- import { DialItemType } from '../../../../types/item';
4
- export interface DialFileManagerItemNameProps extends DialFileManagerItemNameInputProps {
5
- name: string;
6
- type: DialItemType;
7
- elementId: string;
8
- editing?: boolean;
9
- loading?: boolean;
10
- creating?: boolean;
11
- shared?: boolean;
12
- details?: ReactNode;
13
- sharedIndicatorTooltip?: ReactNode;
14
- fileExtension?: string;
15
- validate?: (value: string) => string | null;
16
- onSave?: (value: string) => void;
17
- onCancel?: () => void;
18
- onCreateFolderSave?: (value: string) => void;
19
- onCreateFolderCancel?: () => void;
20
- hideTooltip?: boolean;
21
- forbiddenSymbolsRegExp?: RegExp;
22
- forbiddenSymbolsTooltip?: ReactNode;
23
- }
24
- /**
25
- * A component that renders a file or folder name with optional edit mode.
26
- *
27
- * When `editing` is `false`, it displays a read-only name via:
28
- * - `DialFolderName` for folders
29
- * - `DialFileName` for files
30
- *
31
- * When `editing` is `true`, it renders an editable input using `DialItemNameInput`,
32
- * driven by validation and change logic from the `useEditableItem` hook.
33
- *
34
- * @example
35
- * ```tsx
36
- * import { DialFileManagerItemName } from '@/components/DialFileManagerItemName/DialFileManagerItemName';
37
- * import { DialItemType } from '@/types/item';
38
- *
39
- * function Example() {
40
- * return (
41
- * <DialFileManagerItemName
42
- * name="Project"
43
- * type={DialItemType.Folder}
44
- * elementId="folder-123"
45
- * editing={true}
46
- * validate={(value) => (value.trim() ? null : 'Name cannot be empty')}
47
- * onSave={(newName) => console.log('Saved:', newName)}
48
- * onCancel={() => console.log('Canceled')}
49
- * />
50
- * );
51
- * }
52
- * ```
53
- *
54
- * @param props - Component props.
55
- * @returns Rendered file or folder name element (editable or static).
56
- */
57
- export declare const DialFileManagerItemName: FC<DialFileManagerItemNameProps>;
@@ -1,71 +0,0 @@
1
- import { FC, ReactNode, Ref } from 'react';
2
- import { DialItemType } from '../../../../types/item';
3
- export interface DialFileManagerItemNameInputProps {
4
- type: DialItemType;
5
- name: string;
6
- shared?: boolean;
7
- loading?: boolean;
8
- elementId: string;
9
- iconSize?: number;
10
- iconStroke?: number;
11
- iconClassName?: string;
12
- iconLabel?: string;
13
- iconIndicator?: ReactNode;
14
- inputInvalid?: boolean;
15
- inputInvalidMessage?: string;
16
- inputContainerClassName?: string;
17
- inputIconAfter?: ReactNode;
18
- inputRef?: Ref<HTMLInputElement>;
19
- onChange?: (value?: string) => void;
20
- sharedIndicatorClassName?: string;
21
- sharedIndicatorTooltip?: ReactNode;
22
- fileExtension?: string;
23
- }
24
- /**
25
- * Combines a file/folder icon with an editable text input.
26
- *
27
- * Used for renaming or labeling file/folder entities within the File Manager.
28
- * Displays:
29
- * - The item icon (with optional loading/shared state)
30
- * - An inline text input
31
- * - A validation tooltip when `inputInvalid` is `true`
32
- *
33
- * @example
34
- * ```tsx
35
- * <DialFileManagerItemNameInput
36
- * type={DialItemType.File}
37
- * name="report.pdf"
38
- * elementId="file-input-1"
39
- * shared
40
- * onChange={(value) => console.log('New name:', value)}
41
- * />
42
- *
43
- * <DialFileManagerItemNameInput
44
- * type={DialItemType.Folder}
45
- * name="Project A"
46
- * elementId="folder-input-2"
47
- * inputInvalid
48
- * inputInvalidMessage="Invalid name"
49
- * />
50
- * ```
51
- *
52
- * @param {Object} props
53
- * @param {DialItemType} props.type - The type of item (file or folder).
54
- * @param {string} props.name - Current name of the entity.
55
- * @param {string} props.elementId - Unique ID for the input element.
56
- * @param {boolean} [props.shared=false] - Whether the entity is shared.
57
- * @param {boolean} [props.loading=false] - Whether the icon is loading.
58
- * @param {number} [props.iconSize] - Optional size override for the icon.
59
- * @param {number} [props.iconStroke] - Optional stroke width override for the icon.
60
- * @param {string} [props.iconClassName] - Optional CSS class for the icon.
61
- * @param {string} [props.iconLabel] - Optional accessible label for the icon.
62
- * @param {ReactNode} [props.iconIndicator] - Optional indicator to render over the icon.
63
- * @param {boolean} [props.inputInvalid=false] - Marks the input as invalid.
64
- * @param {string} [props.inputInvalidMessage] - Tooltip message shown when invalid.
65
- * @param {ReactNode} [props.inputIconAfter] - Optional icon shown after the input (defaults to an error icon).
66
- * @param {string} [props.inputContainerClassName] - Additional CSS classes applied to the input container.
67
- * @param {Ref<HTMLInputElement>} [props.inputRef] - Ref to access the underlying input element.
68
- * @param {(value: string) => void} [props.onChange] - Callback fired when input value changes.
69
- * @param {string} [props.sharedIndicatorClassName] - Additional CSS classes for the shared indicator.
70
- */
71
- export declare const DialFileManagerItemNameInput: FC<DialFileManagerItemNameInputProps>;
@@ -1,64 +0,0 @@
1
- import { FC } from 'react';
2
- import { DialBreadcrumbProps } from '../../../Breadcrumb/Breadcrumb';
3
- import { DialSearchProps } from '../../../Search/Search';
4
- export interface DialFileManagerNavigationPanelProps extends Omit<DialBreadcrumbProps, 'pathItems' | 'children' | 'className' | 'separator'>, Omit<DialSearchProps, 'onChange' | 'elementId' | 'value' | 'className' | 'containerClassName' | 'placeholder' | 'size'> {
5
- path?: string;
6
- makeHref?: (segments: string[], index: number) => string | undefined;
7
- className?: string;
8
- breadcrumbClassName?: string;
9
- onItemClick?: (href?: string) => void;
10
- rootItemPath?: string;
11
- rootItemLabel?: string;
12
- breadcrumbsHiddenPathPart?: string;
13
- searchable?: boolean;
14
- value?: string | number | null;
15
- elementId?: string;
16
- onSearchChange?: (value: string) => void;
17
- searchClassName?: string;
18
- searchContainerClassName?: string;
19
- isCompactView?: boolean;
20
- }
21
- /**
22
- * FileManagerNavigationPanel
23
- *
24
- * A navigation header for the File Manager that displays a breadcrumb trail on the left
25
- * and an optional, controlled Search on the right.
26
- *
27
- * Uses the shared {@link DialBreadcrumb} for navigation and the shared {@link DialSearch}
28
- * for the controlled search input.
29
- *
30
- * @example
31
- * ```tsx
32
- * <FileManagerNavigationPanel
33
- * path="Organization/Folder 4"
34
- * searchable
35
- * elementId="file-manager-search"
36
- * value={query}
37
- * onSearchChange={(val) => setQuery(val)}
38
- * />
39
- *
40
- * // With clickable parents
41
- * <FileManagerNavigationPanel
42
- * path="Org/Design/Assets"
43
- * makeHref={(segments, i) => '#' + segments.slice(0, i + 1).join('/')}
44
- * />
45
- * ```
46
- *
47
- * @param [ariaLabel="Breadcrumb"] - Aria label for the breadcrumb `<nav>`
48
- * @param [labelClassName] - Extra classes for breadcrumb titles
49
- * @param [path] - A full path string that will be split into breadcrumb items
50
- * @param [makeHref] - Factory to create hrefs for segments
51
- * @param [onItemClick] - Callback fired when a breadcrumb item is clicked
52
- * @param [className] - Additional classes for the panel container
53
- * @param [breadcrumbClassName] - ClassName forwarded to inner `DialBreadcrumb`
54
- * @param [breadcrumbsHiddenPathPart] - A slash-separated path fragment whose segments will be omitted from the rendered breadcrumb trail.
55
- * @param [searchable=true] - Whether to render the search control
56
- * @param [value] - Controlled value for the search input (parent-managed)
57
- * @param [elementId="file-manager-search"] - DOM id for the internal DialSearch input
58
- * @param [size=ElementSize.Standard] - Size of the search input (from DialSearchProps)
59
- * @param [onSearchChange] - Callback fired when the search value changes
60
- * @param [searchClassName] - Extra classes for the search input element
61
- * @param [searchContainerClassName] - Extra classes for the search container
62
- * @param [isCompactView=false] - Whether the component should render in compact mode
63
- */
64
- export declare const DialFileManagerNavigationPanel: FC<DialFileManagerNavigationPanelProps>;
@@ -1,3 +0,0 @@
1
- export declare const panelBaseClassName = "w-full flex items-center justify-between gap-4";
2
- export declare const breadcrumbContainerClassName = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded";
3
- export declare const searchContainerWrapperClassName = "w-[260px]";