@epam/ai-dial-ui-kit 0.14.0-dev.4 → 0.14.0-dev.41

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 (537) hide show
  1. package/README.md +22 -0
  2. package/dist/CHANGELOG.md +26 -4
  3. package/dist/DateCellRenderer-DNPEX0I7.cjs +1 -0
  4. package/dist/DateCellRenderer-p6k-mVZt.cjs +63 -0
  5. package/dist/IconButton-DWqoaBWf.cjs +1 -0
  6. package/dist/JsonEditor-BZCyPc2D.cjs +1 -0
  7. package/dist/MarkdownEditor-CBH7ILah.cjs +1 -0
  8. package/dist/MarkdownEditor-CMRC_XsQ.cjs +1 -0
  9. package/dist/MarkdownEditorContainer-B_6-Gd-T.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/open-popup.svg.js +5 -0
  30. package/dist/assets/icons/unshare.svg.js +5 -0
  31. package/dist/components/Accordion/Accordion.js +70 -0
  32. package/dist/components/Analytics/Bar/Bar.js +80 -0
  33. package/dist/components/Analytics/Bar/utils.js +24 -0
  34. package/dist/components/Analytics/BarGroup/BarGroup.js +140 -0
  35. package/dist/components/Analytics/Card/Card.js +87 -0
  36. package/dist/components/Analytics/ErrorTag/ErrorTag.js +19 -0
  37. package/dist/components/Analytics/Histogram/Histogram.js +200 -0
  38. package/dist/components/Analytics/Histogram/utils.js +45 -0
  39. package/dist/components/AutocompleteInput/AutocompleteInputValue.js +21 -0
  40. package/dist/components/Breadcrumb/Breadcrumb.js +126 -0
  41. package/dist/components/Breadcrumb/BreadcrumbItem.js +83 -0
  42. package/dist/components/Breadcrumb/constants.js +20 -0
  43. package/dist/components/Button/Button.js +53 -0
  44. package/dist/components/Button/ButtonWrappers.js +40 -0
  45. package/dist/components/Button/constants.js +29 -0
  46. package/dist/components/Button/utils.js +11 -0
  47. package/dist/components/ButtonDropdown/ButtonDropdown.js +33 -0
  48. package/dist/components/ButtonDropdown/constants.js +8 -0
  49. package/dist/components/CaptionText/CaptionText.js +27 -0
  50. package/dist/components/Checkbox/Checkbox.js +64 -0
  51. package/dist/components/Checkbox/constants.js +4 -0
  52. package/dist/components/CloseButton/CloseButton.js +27 -0
  53. package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +84 -0
  54. package/dist/components/ConfirmationPopup/ConfirmationPopup.js +75 -0
  55. package/dist/components/ConfirmationPopup/constants.js +32 -0
  56. package/dist/components/DraggableItem/DraggableItem.js +61 -0
  57. package/dist/components/DraggableItem/constants.js +6 -0
  58. package/dist/components/Dropdown/Dropdown.js +293 -0
  59. package/dist/components/Dropdown/DropdownSubMenuItem.js +121 -0
  60. package/dist/components/Dropdown/constants.js +24 -0
  61. package/dist/components/DropdownIcon/DropdownIcon.js +92 -0
  62. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +75 -0
  63. package/dist/components/EllipsisTooltip/constants.js +4 -0
  64. package/dist/components/FabButton/FabButton.js +35 -0
  65. package/dist/components/FileIcon/FileIcon.js +37 -0
  66. package/dist/components/FileIcon/constants.js +60 -0
  67. package/dist/components/FileManager/FileManager.js +887 -0
  68. package/dist/components/FileManager/FileManagerContext.js +5 -0
  69. package/dist/components/FileManager/FileManagerProvider.js +770 -0
  70. package/dist/components/FileManager/FileManagerTooltip.js +92 -0
  71. package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +293 -0
  72. package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +194 -0
  73. package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +52 -0
  74. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +103 -0
  75. package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +5 -0
  76. package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +56 -0
  77. package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +69 -0
  78. package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +100 -0
  79. package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +93 -0
  80. package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +165 -0
  81. package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +6 -0
  82. package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +120 -0
  83. package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +119 -0
  84. package/dist/components/FileManager/components/FileMetadataPopup/constants.js +9 -0
  85. package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +180 -0
  86. package/dist/components/FileManager/components/FoldersTree/constants.js +9 -0
  87. package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +51 -0
  88. package/dist/components/FileManager/constants.js +28 -0
  89. package/dist/components/FileManager/errors.js +10 -0
  90. package/dist/components/FileManager/hooks/use-bulk-actions.js +143 -0
  91. package/dist/components/FileManager/hooks/use-collapse-tree.js +22 -0
  92. package/dist/components/FileManager/hooks/use-conflict-resolution.js +158 -0
  93. package/dist/components/FileManager/hooks/use-current-path.js +29 -0
  94. package/dist/components/FileManager/hooks/use-file-clipboard.js +154 -0
  95. package/dist/components/FileManager/hooks/use-file-delete.js +39 -0
  96. package/dist/components/FileManager/hooks/use-file-download.js +16 -0
  97. package/dist/components/FileManager/hooks/use-file-manager-columns.js +106 -0
  98. package/dist/components/FileManager/hooks/use-file-manager-context.js +13 -0
  99. package/dist/components/FileManager/hooks/use-file-manager-tabs.js +23 -0
  100. package/dist/components/FileManager/hooks/use-file-metadata.js +20 -0
  101. package/dist/components/FileManager/hooks/use-file-search.js +90 -0
  102. package/dist/components/FileManager/hooks/use-file-upload.js +338 -0
  103. package/dist/components/FileManager/hooks/use-folder-creation.js +151 -0
  104. package/dist/components/FileManager/hooks/use-grid-actions-column.js +65 -0
  105. package/dist/components/FileManager/hooks/use-grid-context-menu.js +188 -0
  106. package/dist/components/FileManager/hooks/use-item-renaming.js +124 -0
  107. package/dist/components/FileManager/hooks/use-new-actions.js +67 -0
  108. package/dist/components/FileManager/hooks/use-paths-selection.js +28 -0
  109. package/dist/components/FileManager/hooks/use-show-hidden-files.js +20 -0
  110. package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +39 -0
  111. package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +42 -0
  112. package/dist/components/FileManager/hooks/use-trigger-view-rename.js +25 -0
  113. package/dist/components/FileManager/utils.js +121 -0
  114. package/dist/components/FileName/FileName.js +68 -0
  115. package/dist/components/FolderName/FolderName.js +57 -0
  116. package/dist/components/FormItem/FormItem.js +90 -0
  117. package/dist/components/FormItem/constants.js +9 -0
  118. package/dist/components/FormPopup/FormPopup.js +59 -0
  119. package/dist/components/FormPopup/constants.js +6 -0
  120. package/dist/components/Grid/Grid.js +333 -0
  121. package/dist/components/Grid/constants.js +33 -0
  122. package/dist/components/Grid/renderers/DateCellRenderer.js +27 -0
  123. package/dist/components/Grid/renderers/constants.js +25 -0
  124. package/dist/components/Icon/Icon.js +6 -0
  125. package/dist/components/IconButton/IconButton.js +40 -0
  126. package/dist/components/IconButton/IconButtonWrappers.js +48 -0
  127. package/dist/components/InfoButton/InfoButton.js +32 -0
  128. package/dist/components/InfoButton/constants.js +4 -0
  129. package/dist/components/Input/Button/InputButton.js +37 -0
  130. package/dist/components/Input/Button/constants.js +4 -0
  131. package/dist/components/Input/Input.js +120 -0
  132. package/dist/components/Input/utils.js +37 -0
  133. package/dist/components/InputPopup/InputPopup.js +174 -0
  134. package/dist/components/JsonEditor/JsonEditor.js +64 -0
  135. package/dist/components/JsonEditor/lazy.js +4 -0
  136. package/dist/components/Label/Label.js +27 -0
  137. package/dist/components/LabelledText/LabelledText.js +37 -0
  138. package/dist/components/LoadFileArea/EmptyFileArea.js +130 -0
  139. package/dist/components/LoadFileArea/FilledDropZone.js +80 -0
  140. package/dist/components/LoadFileArea/FilledInput.js +29 -0
  141. package/dist/components/LoadFileArea/LoadFileArea.js +70 -0
  142. package/dist/components/LoadFileArea/LoadFileAreaField.js +128 -0
  143. package/dist/components/Loader/Loader.js +40 -0
  144. package/dist/components/Loader/constants.js +5 -0
  145. package/dist/components/MarkdownEditor/MarkdownEditor.js +37 -0
  146. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +82 -0
  147. package/dist/components/MarkdownEditor/lazy.js +4 -0
  148. package/dist/components/New/Accordion/Accordion.js +103 -0
  149. package/dist/components/New/Button/Button.js +76 -0
  150. package/dist/components/New/Button/ButtonWrappers.js +44 -0
  151. package/dist/components/New/Button/constants.js +27 -0
  152. package/dist/components/New/Button/utils.js +11 -0
  153. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +28 -0
  154. package/dist/components/New/ButtonDropdown/constants.js +17 -0
  155. package/dist/components/New/Calendar/Calendar.js +343 -0
  156. package/dist/components/New/Calendar/constants.js +57 -0
  157. package/dist/components/New/Calendar/utils.js +77 -0
  158. package/dist/components/New/CaptionText/CaptionText.js +27 -0
  159. package/dist/components/New/CardShell/CardShell.js +22 -0
  160. package/dist/components/New/Checkbox/Checkbox.js +92 -0
  161. package/dist/components/New/Checkbox/CheckboxBox.js +34 -0
  162. package/dist/components/New/Checkbox/constants.js +8 -0
  163. package/dist/components/New/CloseButton/CloseButton.js +33 -0
  164. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +108 -0
  165. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +78 -0
  166. package/dist/components/New/ConfirmationPopup/constants.js +27 -0
  167. package/dist/components/New/Dropdown/Dropdown.js +304 -0
  168. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +85 -0
  169. package/dist/components/New/Dropdown/constants.js +28 -0
  170. package/dist/components/New/Dropdown/item-mark.js +6 -0
  171. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +45 -0
  172. package/dist/components/New/EllipsisTooltip/use-truncation.js +18 -0
  173. package/dist/components/New/FileDropzone/FileDropzone.js +135 -0
  174. package/dist/components/New/FolderPath/FolderPath.js +64 -0
  175. package/dist/components/New/Grid/Grid.js +301 -0
  176. package/dist/components/New/Grid/components/SelectionCell.js +50 -0
  177. package/dist/components/New/Grid/components/SelectionHeader.js +46 -0
  178. package/dist/components/New/Grid/constants.js +44 -0
  179. package/dist/components/New/Grid/renderers/DateCellRenderer.js +27 -0
  180. package/dist/components/New/Grid/renderers/constants.js +25 -0
  181. package/dist/components/New/Highlight/Highlight.js +50 -0
  182. package/dist/components/New/IconButton/IconButton.js +46 -0
  183. package/dist/components/New/IconButton/IconButtonWrappers.js +40 -0
  184. package/dist/components/New/InfoButton/InfoButton.js +39 -0
  185. package/dist/components/New/InlineSelect/InlineSelect.js +96 -0
  186. package/dist/components/New/Input/Button/InputButton.js +38 -0
  187. package/dist/components/New/Input/Button/constants.js +4 -0
  188. package/dist/components/New/Input/Input.js +169 -0
  189. package/dist/components/New/Input/utils.js +37 -0
  190. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +101 -0
  191. package/dist/components/New/InteractiveTooltip/constants.js +6 -0
  192. package/dist/components/New/Label/Label.js +42 -0
  193. package/dist/components/New/MarkdownEditor/MarkdownEditor.js +41 -0
  194. package/dist/components/New/MarkdownEditor/constants.js +43 -0
  195. package/dist/components/New/MarkdownEditor/lazy.js +4 -0
  196. package/dist/components/New/MenuItem/MenuItem.js +108 -0
  197. package/dist/components/New/MenuItem/constants.js +16 -0
  198. package/dist/components/New/NoDataContent/NoDataContent.js +54 -0
  199. package/dist/components/New/Notification/Notification.js +67 -0
  200. package/dist/components/New/Notification/NotificationWrapper.js +61 -0
  201. package/dist/components/New/Notification/constants.js +32 -0
  202. package/dist/components/New/NumberInput/NumberInput.js +41 -0
  203. package/dist/components/New/PasswordInput/PasswordInput.js +54 -0
  204. package/dist/components/New/Popup/Popup.js +164 -0
  205. package/dist/components/New/Popup/constants.js +17 -0
  206. package/dist/components/New/Radio/Radio.js +100 -0
  207. package/dist/components/New/RadioGroup/RadioGroup.js +81 -0
  208. package/dist/components/New/RadioGroup/constants.js +11 -0
  209. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +138 -0
  210. package/dist/components/New/RadioGroupPopupField/constants.js +11 -0
  211. package/dist/components/New/ResizableContainer/ConditionalResizableContainer.js +6 -0
  212. package/dist/components/New/ResizableContainer/ResizableContainer.js +106 -0
  213. package/dist/components/New/ResizableContainer/components/ResizeHandle.js +85 -0
  214. package/dist/components/New/Search/Search.js +74 -0
  215. package/dist/components/New/SegmentedControl/SegmentedControl.js +92 -0
  216. package/dist/components/New/SegmentedControl/constants.js +19 -0
  217. package/dist/components/New/Select/MultiSelectTags.js +23 -0
  218. package/dist/components/New/Select/Select.js +379 -0
  219. package/dist/components/New/Select/SelectSubMenuItem.js +101 -0
  220. package/dist/components/New/Select/constants.js +42 -0
  221. package/dist/components/New/Slider/Slider.js +112 -0
  222. package/dist/components/New/Switch/Switch.js +95 -0
  223. package/dist/components/New/Tabs/Tabs.js +95 -0
  224. package/dist/components/New/Tag/Tag.js +76 -0
  225. package/dist/components/New/Tag/constants.js +17 -0
  226. package/dist/components/New/TagInput/TagInput.js +197 -0
  227. package/dist/components/New/TagInput/utils.js +21 -0
  228. package/dist/components/New/Textarea/Textarea.js +55 -0
  229. package/dist/components/New/ThemeScope/ThemeScope.js +14 -0
  230. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +54 -0
  231. package/dist/components/New/Tooltip/Tooltip.js +19 -0
  232. package/dist/components/New/Tooltip/TooltipContainer.js +12 -0
  233. package/dist/components/New/Tooltip/TooltipContent.js +45 -0
  234. package/dist/components/New/Tooltip/TooltipContext.js +67 -0
  235. package/dist/components/New/Tooltip/TooltipTrigger.js +45 -0
  236. package/dist/components/New/Tooltip/constants.js +8 -0
  237. package/dist/components/New/constants/icon.js +4 -0
  238. package/dist/components/New/constants/overlay.js +27 -0
  239. package/dist/components/NoDataContent/NoDataContent.js +45 -0
  240. package/dist/components/Notification/Notification.js +67 -0
  241. package/dist/components/Notification/constants.js +24 -0
  242. package/dist/components/NumberInput/NumberInput.js +41 -0
  243. package/dist/components/Pagination/Pagination.js +80 -0
  244. package/dist/components/Pagination/utils.js +10 -0
  245. package/dist/components/PasswordInput/Icons/HideIcon.js +16 -0
  246. package/dist/components/PasswordInput/Icons/ShowIcon.js +16 -0
  247. package/dist/components/PasswordInput/PasswordInput.js +21 -0
  248. package/dist/components/Popup/Popup.js +110 -0
  249. package/dist/components/Popup/constants.js +12 -0
  250. package/dist/components/ProgressBar/ProgressBar.js +58 -0
  251. package/dist/components/RadioButton/RadioButton.js +103 -0
  252. package/dist/components/RadioGroup/RadioGroup.js +92 -0
  253. package/dist/components/RadioGroup/constants.js +10 -0
  254. package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +101 -0
  255. package/dist/components/RemoveButton/RemoveButton.js +30 -0
  256. package/dist/components/ResizableContainer/ConditionalResizableContainer.js +6 -0
  257. package/dist/components/ResizableContainer/ResizableContainer.js +79 -0
  258. package/dist/components/ResizableContainer/components/ResizeHandle.js +20 -0
  259. package/dist/components/ResizableContainer/components/ResizeIcon.js +11 -0
  260. package/dist/components/SchemaRenderer/SchemaRenderer.js +150 -0
  261. package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +41 -0
  262. package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +74 -0
  263. package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +118 -0
  264. package/dist/components/SchemaRenderer/components/SchemaField.js +78 -0
  265. package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +114 -0
  266. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +184 -0
  267. package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
  268. package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +192 -0
  269. package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +161 -0
  270. package/dist/components/SchemaRenderer/components/SchemaSection.js +81 -0
  271. package/dist/components/SchemaRenderer/context.js +12 -0
  272. package/dist/components/SchemaRenderer/types.js +27 -0
  273. package/dist/components/SchemaRenderer/utils.js +258 -0
  274. package/dist/components/Search/Search.js +63 -0
  275. package/dist/components/Search/constants.js +27 -0
  276. package/dist/components/SegmentedControl/SegmentedControl.js +87 -0
  277. package/dist/components/SegmentedControl/constants.js +8 -0
  278. package/dist/components/Select/MultiSelectTags.js +23 -0
  279. package/dist/components/Select/Select.js +435 -0
  280. package/dist/components/Select/SelectSubMenuItem.js +90 -0
  281. package/dist/components/Select/constants.js +15 -0
  282. package/dist/components/SelectField/SelectField.js +66 -0
  283. package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
  284. package/dist/components/Skeleton/Skeleton.js +90 -0
  285. package/dist/components/Skeleton/utils.js +16 -0
  286. package/dist/components/Slider/Slider.js +158 -0
  287. package/dist/components/Spinner/Spinner.js +30 -0
  288. package/dist/components/Steps/Step.js +34 -0
  289. package/dist/components/Steps/Steps.js +27 -0
  290. package/dist/components/Steps/utils.js +42 -0
  291. package/dist/components/Switch/Switch.js +70 -0
  292. package/dist/components/Tab/Tab.js +65 -0
  293. package/dist/components/Tabs/Tabs.js +213 -0
  294. package/dist/components/Tabs/constants.js +4 -0
  295. package/dist/components/Tag/Tag.js +37 -0
  296. package/dist/components/TagInput/TagInput.js +179 -0
  297. package/dist/components/Textarea/Textarea.js +43 -0
  298. package/dist/components/Tooltip/Tooltip.js +30 -0
  299. package/dist/components/Tooltip/TooltipContainer.js +12 -0
  300. package/dist/components/Tooltip/TooltipContent.js +40 -0
  301. package/dist/components/Tooltip/TooltipContext.js +66 -0
  302. package/dist/components/Tooltip/TooltipTrigger.js +33 -0
  303. package/dist/components-manifest.json +1260 -172
  304. package/dist/{JsonEditor-CFkmn69x.js → constants/editor.js} +5 -63
  305. package/dist/constants/file-grid-columns.js +176 -0
  306. package/dist/constants/icon.js +10 -0
  307. package/dist/constants/validation.js +11 -0
  308. package/dist/dial-ui-kit.cjs +2 -0
  309. package/dist/dial-ui-kit.js +416 -0
  310. package/dist/editor-BKQqPhwX.cjs +1 -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-CJ-0Pjkj.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 +111 -0
  330. package/dist/migration-guides/0.14.0/select-multiselect-option-row.md +99 -0
  331. package/dist/migration-guides/0.14.0/shadow-token-per-step-rename.md +139 -0
  332. package/dist/migration-guides/0.14.0/tag-single-size.md +121 -0
  333. package/dist/migration-guides/README.md +4 -0
  334. package/dist/models/file.js +6 -0
  335. package/dist/models/selection-mode.js +4 -0
  336. package/dist/models/step.js +4 -0
  337. package/dist/node_modules/@react-dnd/asap/dist/AsapQueue.js +39 -0
  338. package/dist/node_modules/@react-dnd/asap/dist/RawTask.js +17 -0
  339. package/dist/node_modules/@react-dnd/asap/dist/TaskFactory.js +16 -0
  340. package/dist/node_modules/@react-dnd/asap/dist/asap.js +9 -0
  341. package/dist/node_modules/@react-dnd/asap/dist/makeRequestCall.js +62 -0
  342. package/dist/node_modules/@react-dnd/invariant/dist/index.js +22 -0
  343. package/dist/node_modules/@react-dnd/shallowequal/dist/index.js +25 -0
  344. package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +39799 -0
  345. package/dist/node_modules/ag-grid-react/dist/package/index.esm.js +1989 -0
  346. package/dist/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js +70 -0
  347. package/dist/node_modules/dnd-core/dist/actions/dragDrop/drop.js +54 -0
  348. package/dist/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js +18 -0
  349. package/dist/node_modules/dnd-core/dist/actions/dragDrop/hover.js +42 -0
  350. package/dist/node_modules/dnd-core/dist/actions/dragDrop/index.js +17 -0
  351. package/dist/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js +13 -0
  352. package/dist/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js +12 -0
  353. package/dist/node_modules/dnd-core/dist/actions/dragDrop/types.js +9 -0
  354. package/dist/node_modules/dnd-core/dist/actions/registry.js +43 -0
  355. package/dist/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js +41 -0
  356. package/dist/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js +115 -0
  357. package/dist/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js +96 -0
  358. package/dist/node_modules/dnd-core/dist/contracts.js +21 -0
  359. package/dist/node_modules/dnd-core/dist/createDragDropManager.js +19 -0
  360. package/dist/node_modules/dnd-core/dist/interfaces.js +7 -0
  361. package/dist/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js +30 -0
  362. package/dist/node_modules/dnd-core/dist/reducers/dragOffset.js +50 -0
  363. package/dist/node_modules/dnd-core/dist/reducers/dragOperation.js +78 -0
  364. package/dist/node_modules/dnd-core/dist/reducers/index.js +42 -0
  365. package/dist/node_modules/dnd-core/dist/reducers/refCount.js +16 -0
  366. package/dist/node_modules/dnd-core/dist/reducers/stateId.js +6 -0
  367. package/dist/node_modules/dnd-core/dist/utils/coords.js +26 -0
  368. package/dist/node_modules/dnd-core/dist/utils/dirtiness.js +12 -0
  369. package/dist/node_modules/dnd-core/dist/utils/equality.js +17 -0
  370. package/dist/node_modules/dnd-core/dist/utils/getNextUniqueId.js +7 -0
  371. package/dist/node_modules/dnd-core/dist/utils/js_utils.js +36 -0
  372. package/dist/node_modules/dnd-core/dist/utils/matchesType.js +8 -0
  373. package/dist/node_modules/fast-deep-equal/index.js +31 -0
  374. package/dist/node_modules/mime-db/db.json.js +2527 -0
  375. package/dist/node_modules/mime-db/index.js +8 -0
  376. package/dist/node_modules/mime-types/index.js +70 -0
  377. package/dist/node_modules/mime-types/mimeScore.js +38 -0
  378. package/dist/node_modules/re-resizable/lib/index.js +424 -0
  379. package/dist/node_modules/re-resizable/lib/resizer.js +49 -0
  380. package/dist/node_modules/react-dnd/dist/core/DndContext.js +7 -0
  381. package/dist/node_modules/react-dnd/dist/core/DndProvider.js +66 -0
  382. package/dist/node_modules/react-dnd/dist/hooks/useCollectedProps.js +11 -0
  383. package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +22 -0
  384. package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +25 -0
  385. package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +21 -0
  386. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +20 -0
  387. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +19 -0
  388. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +22 -0
  389. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +15 -0
  390. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +13 -0
  391. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +23 -0
  392. package/dist/node_modules/react-dnd/dist/hooks/useDragDropManager.js +10 -0
  393. package/dist/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js +21 -0
  394. package/dist/node_modules/react-dnd/dist/hooks/useDrop/connectors.js +12 -0
  395. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useAccept.js +13 -0
  396. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDrop.js +16 -0
  397. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js +18 -0
  398. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js +18 -0
  399. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js +15 -0
  400. package/dist/node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js +23 -0
  401. package/dist/node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
  402. package/dist/node_modules/react-dnd/dist/hooks/useMonitorOutput.js +20 -0
  403. package/dist/node_modules/react-dnd/dist/hooks/useOptionalFactory.js +10 -0
  404. package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +88 -0
  405. package/dist/node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js +59 -0
  406. package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +87 -0
  407. package/dist/node_modules/react-dnd/dist/internals/TargetConnector.js +57 -0
  408. package/dist/node_modules/react-dnd/dist/internals/isRef.js +9 -0
  409. package/dist/node_modules/react-dnd/dist/internals/registration.js +18 -0
  410. package/dist/node_modules/react-dnd/dist/internals/wrapConnectorHooks.js +46 -0
  411. package/dist/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js +10 -0
  412. package/dist/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js +22 -0
  413. package/dist/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js +274 -0
  414. package/dist/node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js +59 -0
  415. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js +43 -0
  416. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js +10 -0
  417. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js +24 -0
  418. package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js +48 -0
  419. package/dist/node_modules/react-dnd-html5-backend/dist/NativeTypes.js +7 -0
  420. package/dist/node_modules/react-dnd-html5-backend/dist/OffsetUtils.js +70 -0
  421. package/dist/node_modules/react-dnd-html5-backend/dist/OptionsReader.js +22 -0
  422. package/dist/node_modules/react-dnd-html5-backend/dist/index.js +7 -0
  423. package/dist/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js +22 -0
  424. package/dist/node_modules/redux/es/redux.js +158 -0
  425. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2924 -0
  426. package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +4 -2
  427. package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +1 -4
  428. package/dist/src/components/Grid/renderers/utils.d.ts +1 -2
  429. package/dist/src/components/JsonEditor/lazy.d.ts +14 -0
  430. package/dist/src/components/MarkdownEditor/lazy.d.ts +7 -0
  431. package/dist/src/components/New/Button/Button.d.ts +4 -3
  432. package/dist/src/components/New/Checkbox/Checkbox.d.ts +4 -0
  433. package/dist/src/components/New/Checkbox/CheckboxBox.d.ts +30 -0
  434. package/dist/src/components/New/CollapsibleSidebar/CollapsibleSidebar.d.ts +82 -0
  435. package/dist/src/components/New/Dropdown/Dropdown.d.ts +10 -0
  436. package/dist/src/components/New/Dropdown/constants.d.ts +5 -2
  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/IconButton/IconButton.d.ts +4 -4
  447. package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +74 -0
  448. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +26 -0
  449. package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
  450. package/dist/src/components/New/MarkdownEditor/lazy.d.ts +7 -0
  451. package/dist/src/components/New/MenuItem/MenuItem.d.ts +68 -0
  452. package/dist/src/components/New/MenuItem/constants.d.ts +5 -0
  453. package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +48 -0
  454. package/dist/src/components/New/Popup/Popup.d.ts +48 -9
  455. package/dist/src/components/New/Popup/constants.d.ts +7 -0
  456. package/dist/src/components/New/ResizableContainer/ConditionalResizableContainer.d.ts +34 -0
  457. package/dist/src/components/New/ResizableContainer/ResizableContainer.d.ts +77 -0
  458. package/dist/src/components/New/ResizableContainer/components/ResizeHandle.d.ts +21 -0
  459. package/dist/src/components/New/SegmentedControl/constants.d.ts +2 -2
  460. package/dist/src/components/New/Select/Select.d.ts +14 -2
  461. package/dist/src/components/New/Select/SelectSubMenuItem.d.ts +3 -0
  462. package/dist/src/components/New/Select/constants.d.ts +12 -5
  463. package/dist/src/components/New/Slider/Slider.d.ts +70 -0
  464. package/dist/src/components/New/Tag/Tag.d.ts +26 -4
  465. package/dist/src/components/New/Tag/constants.d.ts +23 -0
  466. package/dist/src/components/New/Textarea/Textarea.d.ts +8 -2
  467. package/dist/src/components/New/ThemeScope/ThemeScope.d.ts +46 -0
  468. package/dist/src/components/New/Tooltip/Tooltip.d.ts +1 -1
  469. package/dist/src/components/New/Tooltip/TooltipContent.d.ts +4 -3
  470. package/dist/src/components/New/Tooltip/constants.d.ts +15 -1
  471. package/dist/src/components/New/constants/icon.d.ts +22 -0
  472. package/dist/src/components/New/constants/overlay.d.ts +19 -3
  473. package/dist/src/components/Tooltip/TooltipContent.d.ts +4 -0
  474. package/dist/src/hooks/use-has-hover.d.ts +20 -0
  475. package/dist/src/index.d.ts +33 -4
  476. package/dist/src/models/dropdown.d.ts +26 -0
  477. package/dist/src/models/select.d.ts +30 -0
  478. package/dist/src/subpaths/editors.d.ts +22 -0
  479. package/dist/src/subpaths/file-manager.d.ts +21 -0
  480. package/dist/src/subpaths/grid.d.ts +25 -0
  481. package/dist/src/types/menu-item.d.ts +21 -0
  482. package/dist/src/types/tag.d.ts +4 -0
  483. package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +1 -0
  484. package/dist/src/utils/__tests__/pointer.spec.d.ts +1 -0
  485. package/dist/src/utils/element-size-observer.d.ts +26 -0
  486. package/dist/src/utils/grid-comparators.d.ts +4 -0
  487. package/dist/src/utils/grid-date.d.ts +7 -0
  488. package/dist/src/utils/grid-registration.d.ts +16 -0
  489. package/dist/src/utils/grid-registration.spec.d.ts +1 -0
  490. package/dist/src/utils/pointer.d.ts +29 -0
  491. package/dist/types/analytics.js +4 -0
  492. package/dist/types/button.js +5 -0
  493. package/dist/types/calendar.js +4 -0
  494. package/dist/types/caption.js +4 -0
  495. package/dist/types/confirmation-popup.js +4 -0
  496. package/dist/types/dropdown.js +6 -0
  497. package/dist/types/editor.js +4 -0
  498. package/dist/types/file-manager.js +12 -0
  499. package/dist/types/flexible-actions.js +4 -0
  500. package/dist/types/form-item.js +4 -0
  501. package/dist/types/item.js +4 -0
  502. package/dist/types/menu-item.js +4 -0
  503. package/dist/types/notification.js +5 -0
  504. package/dist/types/popup.js +4 -0
  505. package/dist/types/radio-group.js +4 -0
  506. package/dist/types/resizable-container.js +4 -0
  507. package/dist/types/screen.js +4 -0
  508. package/dist/types/select.js +5 -0
  509. package/dist/types/size.js +4 -0
  510. package/dist/types/skeleton.js +6 -0
  511. package/dist/types/tab.js +6 -0
  512. package/dist/types/tag.js +4 -0
  513. package/dist/types/tooltip.js +4 -0
  514. package/dist/use-file-manager-tabs-CIQjiyK-.cjs +3 -0
  515. package/dist/utils/accessible-name.js +6 -0
  516. package/dist/utils/debounce.js +9 -0
  517. package/dist/utils/element-size-observer.js +24 -0
  518. package/dist/utils/file-accept.js +16 -0
  519. package/dist/utils/flat-to-hierarchy-convertor.js +86 -0
  520. package/dist/utils/grid-comparators.js +17 -0
  521. package/dist/utils/grid-date.js +20 -0
  522. package/dist/utils/grid-registration.js +8 -0
  523. package/dist/utils/merge-classes.js +8 -0
  524. package/dist/utils/mobile.js +11 -0
  525. package/dist/utils/path.js +4 -0
  526. package/dist/utils/pointer.js +5 -0
  527. package/dist/utils/sub-menu-floating.js +78 -0
  528. package/package.json +21 -8
  529. package/dist/JsonEditor-CPk58Te4.cjs +0 -1
  530. package/dist/MarkdownEditor-ALJ17x82.js +0 -75
  531. package/dist/MarkdownEditor-CqMQgd-3.js +0 -35
  532. package/dist/MarkdownEditor-Cz2HKRcy.cjs +0 -1
  533. package/dist/MarkdownEditor-DgPlyntV.cjs +0 -1
  534. package/dist/dial-ui-kit.cjs.js +0 -1
  535. package/dist/dial-ui-kit.es.js +0 -218
  536. package/dist/index-BnqboA_3.js +0 -66738
  537. package/dist/index-CBaBO6e_.cjs +0 -71
@@ -0,0 +1,301 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { themeBalham as ge, colorSchemeLight as _e } from "../../../node_modules/ag-grid-community/dist/package/main.esm.js";
3
+ import { AgGridReact as Ne } from "../../../node_modules/ag-grid-react/dist/package/index.esm.js";
4
+ import { IconZoomCancel as Ie } from "@tabler/icons-react";
5
+ import { useState as Te, useRef as D, useId as Ae, useCallback as s, useMemo as m, useEffect as g } from "react";
6
+ import { useIsMobileScreen as Ge } from "../../../hooks/use-is-mobile-screen.js";
7
+ import { useIsTabletScreen as De } from "../../../hooks/use-is-tablet-screen.js";
8
+ import { GridSelectionMode as Q } from "../../../models/selection-mode.js";
9
+ import { DropdownTrigger as be } from "../../../types/dropdown.js";
10
+ import { debounceFn as Le } from "../../../utils/debounce.js";
11
+ import { baseColumnComparator as Oe, omitUndefined as we } from "../../../utils/grid-comparators.js";
12
+ import { registerAgGridModulesOnce as ye } from "../../../utils/grid-registration.js";
13
+ import { mergeClasses as X } from "../../../utils/merge-classes.js";
14
+ import { Dropdown as ve } from "../Dropdown/Dropdown.js";
15
+ import { EllipsisTooltip as xe } from "../EllipsisTooltip/EllipsisTooltip.js";
16
+ import { NoDataContent as He } from "../NoDataContent/NoDataContent.js";
17
+ import { SelectionCell as We } from "./components/SelectionCell.js";
18
+ import { SelectionHeader as ke } from "./components/SelectionHeader.js";
19
+ import { GRID_THEME_PARAMS as b, SelectionEventSourceType as S, GRID_ROW_SELECT_CLASS as ze, GRID_HEADER_SELECT_CLASS as Pe, ROW_HEIGHT as Y, GRID_WITHOUT_HEADER_BORDERS_CLASS as Fe, GRID_SELECTION_VISIBLE_CLASS as Ue, GRID_WITH_SELECTION_CLASS as Me, GRID_ROOT_CLASS as Be } from "./constants.js";
20
+ import { SELECTION_COL_DEF as Ve } from "./renderers/constants.js";
21
+ const je = "dial-kit-grid-selection", Je = 150, Ze = 100, Sr = ({
22
+ columnDefs: _,
23
+ rowData: c,
24
+ additionalGridOptions: L,
25
+ getContextMenuItems: N,
26
+ className: ee,
27
+ ariaLabel: re = "Data grid",
28
+ wrapCustomCellRenderers: I = !0,
29
+ disabledRowIds: p,
30
+ selectedRowIds: l,
31
+ onSelectionChange: O,
32
+ onGridApiChange: te,
33
+ getRowId: w,
34
+ alternateOddRowColors: y = !1,
35
+ filterPlaceholder: v = "Enter value",
36
+ emptyStateIcon: x,
37
+ emptyStateTitle: H = "No results found",
38
+ emptyStateDescription: W = "Sorry, we couldn't find any results for your search.",
39
+ loading: k = !1,
40
+ wrapperBorder: z = !0,
41
+ withoutHeaderBorders: oe = !1,
42
+ allowDisabledContextMenu: P = !1,
43
+ selectionMode: n,
44
+ selectRowLabel: F,
45
+ selectAllLabel: U = "Select all rows"
46
+ }) => {
47
+ ye();
48
+ const [t, ne] = Te(), ie = Ge(), se = De(), T = D(/* @__PURE__ */ new Set()), M = D(
49
+ void 0
50
+ ), B = `dial-kit-grid-selection-${Ae()}`, d = D({
51
+ getRowId: w,
52
+ getContextMenuItems: N,
53
+ onSelectionChange: O,
54
+ selectRowLabel: F,
55
+ wrapCustomCellRenderers: I
56
+ });
57
+ d.current = {
58
+ getRowId: w,
59
+ getContextMenuItems: N,
60
+ onSelectionChange: O,
61
+ selectRowLabel: F,
62
+ wrapCustomCellRenderers: I
63
+ };
64
+ const a = s((e) => {
65
+ const r = d.current.getRowId;
66
+ return r ? r(e) : String(e.id ?? JSON.stringify(e));
67
+ }, []), V = !!N, j = !!I, ae = m(
68
+ () => ge.withPart(_e).withParams({
69
+ ...b,
70
+ oddRowBackgroundColor: y ? b.oddRowBackgroundColor : b.backgroundColor,
71
+ wrapperBorder: z
72
+ }),
73
+ [y, z]
74
+ ), le = s((e) => {
75
+ e.api.sizeColumnsToFit();
76
+ }, []), ce = ie || se || (l?.size ?? 0) > 0, u = s(
77
+ (e) => !!e && !!p?.has(a(e)),
78
+ [p, a]
79
+ ), C = s(
80
+ (e, r, i) => V ? /* @__PURE__ */ o(
81
+ ve,
82
+ {
83
+ trigger: [be.ContextMenu],
84
+ items: e.data ? d.current.getContextMenuItems?.(e.data) ?? [] : [],
85
+ anchorToMouse: !0,
86
+ matchReferenceWidth: !0,
87
+ className: X(
88
+ "size-full",
89
+ i && "cursor-not-allowed opacity-75"
90
+ ),
91
+ disabled: i && !P,
92
+ children: /* @__PURE__ */ o("span", { className: "block min-w-0 max-w-full flex-1", children: r })
93
+ }
94
+ ) : r,
95
+ [V, P]
96
+ ), A = s(
97
+ (e) => {
98
+ if (!e.data) return null;
99
+ const r = u(e.data);
100
+ return C(
101
+ e,
102
+ /* @__PURE__ */ o(
103
+ xe,
104
+ {
105
+ text: e.value == null ? "" : String(e.value),
106
+ className: "max-w-full dial-small-text text-primary",
107
+ hideTooltip: r
108
+ }
109
+ ),
110
+ r
111
+ );
112
+ },
113
+ [u, C]
114
+ ), R = s(
115
+ (e) => e === S.API || e === S.ROW_DATA_CHANGED,
116
+ []
117
+ ), de = m(
118
+ () => Le((e) => {
119
+ const i = (e.selectedNodes ?? []).map((q) => q.data), f = new Set(i.map(a));
120
+ T.current = f, M.current = e.source, !R(e.source) && d.current.onSelectionChange?.(f, i);
121
+ }, Ze),
122
+ [R, a]
123
+ ), G = m(() => {
124
+ if (n)
125
+ return {
126
+ ...Ve,
127
+ colId: je,
128
+ headerName: "",
129
+ headerClass: Pe,
130
+ cellClass: ze,
131
+ headerComponent: n === Q.MULTIPLE ? ke : void 0,
132
+ headerComponentParams: { label: U },
133
+ cellRenderer: (e) => {
134
+ if (!e.data) return null;
135
+ const r = a(e.data);
136
+ return /* @__PURE__ */ o(
137
+ We,
138
+ {
139
+ params: e,
140
+ mode: n,
141
+ rowId: r,
142
+ radioName: B,
143
+ label: d.current.selectRowLabel?.(e.data) ?? "Select row",
144
+ disabled: p?.has(r)
145
+ }
146
+ );
147
+ }
148
+ };
149
+ }, [
150
+ n,
151
+ U,
152
+ a,
153
+ p,
154
+ B
155
+ ]), J = s(
156
+ (e) => {
157
+ if (!e.cellRenderer)
158
+ return { ...e, cellRenderer: A };
159
+ const r = d.current.wrapCustomCellRenderers;
160
+ if (!(typeof r == "function" ? r(e) : !!r))
161
+ return e;
162
+ const f = e.cellRenderer;
163
+ return { ...e, cellRenderer: (E) => {
164
+ const he = u(E.data), K = typeof f == "function" ? f : void 0, Ee = K ? /* @__PURE__ */ o(K, { ...E }) : A(E);
165
+ return C(E, Ee, he);
166
+ } };
167
+ },
168
+ [u, A, C]
169
+ ), ue = m(() => {
170
+ const e = j ? (_ ?? []).map(J) : _ ?? [];
171
+ return G ? [G, ...e] : e;
172
+ }, [_, j, J, G]), {
173
+ defaultColDef: Z,
174
+ rowSelection: h,
175
+ ...me
176
+ } = L ?? {}, fe = m(
177
+ () => ({
178
+ minWidth: Je,
179
+ resizable: !0,
180
+ sortable: !0,
181
+ floatingFilter: !0,
182
+ filter: "agTextColumnFilter",
183
+ filterParams: {
184
+ filterPlaceholder: v,
185
+ buttons: ["reset"]
186
+ },
187
+ comparator: Oe,
188
+ ...we(Z)
189
+ }),
190
+ [v, Z]
191
+ ), Se = (e) => {
192
+ e.api.sizeColumnsToFit(), ne(e.api), L?.onGridReady?.(e), te?.(e.api);
193
+ };
194
+ g(() => {
195
+ t && c && t.setGridOption("rowData", c);
196
+ }, [t, c]);
197
+ const pe = s(
198
+ () => /* @__PURE__ */ o(
199
+ He,
200
+ {
201
+ live: !0,
202
+ title: H,
203
+ description: W,
204
+ icon: x ?? /* @__PURE__ */ o(Ie, { size: 100, stroke: 0.5, "aria-hidden": "true" })
205
+ }
206
+ ),
207
+ [H, W, x]
208
+ ), $ = typeof h == "object" ? h : void 0, Ce = m(() => n ? {
209
+ isRowSelectable: (e) => !u(e.data),
210
+ /*
211
+ Merged, not replaced, the way `defaultColDef` is: a consumer reaching
212
+ for `isRowSelectable` alone would otherwise hand ag-Grid a whole new
213
+ object and lose the three settings below with it.
214
+ */
215
+ ...$,
216
+ /*
217
+ `selectionMode` owns the mode, because it also decides whether the
218
+ selection column draws checkboxes or radios.
219
+ */
220
+ mode: n === Q.SINGLE ? "singleRow" : "multiRow",
221
+ // The controls live in this component's own selection column, so
222
+ // ag-Grid's inputs are switched off and only its behaviour is used.
223
+ checkboxes: !1,
224
+ headerCheckbox: !1
225
+ } : h, [
226
+ h,
227
+ $,
228
+ u,
229
+ n
230
+ ]);
231
+ g(() => {
232
+ t && c && T.current.size && T.current.forEach((e) => {
233
+ const r = t.getRowNode(e);
234
+ r && !r.isSelected() && r.setSelected(!0, !1, S.API);
235
+ });
236
+ }, [t, c]), g(() => {
237
+ t && l && (t.deselectAll("all", S.API), l.forEach((e) => {
238
+ const r = t.getRowNode(e);
239
+ r && !r.isSelected() && r.setSelected(!0, !1, S.API);
240
+ }));
241
+ }, [t, l]);
242
+ const Re = s(
243
+ (e) => e.data ? a(e.data) : "",
244
+ [a]
245
+ );
246
+ return g(() => {
247
+ const e = R(
248
+ M.current
249
+ );
250
+ if (t && l?.size && e) {
251
+ const r = Array.from(l)[0];
252
+ if (r) {
253
+ const i = t.getRowNode(r);
254
+ i && t.ensureNodeVisible(i);
255
+ }
256
+ }
257
+ }, [t, R, l]), /* @__PURE__ */ o(
258
+ "div",
259
+ {
260
+ className: X(
261
+ Be,
262
+ "size-full",
263
+ n && Me,
264
+ n && ce && Ue,
265
+ oe && Fe,
266
+ ee
267
+ ),
268
+ role: "region",
269
+ "aria-label": re,
270
+ "aria-busy": k,
271
+ children: /* @__PURE__ */ o("div", { className: "h-full overflow-x-auto", children: /* @__PURE__ */ o(
272
+ Ne,
273
+ {
274
+ rowModelType: "clientSide",
275
+ headerHeight: Y,
276
+ rowHeight: Y,
277
+ cellSelection: !1,
278
+ theme: ae,
279
+ autoSizeStrategy: { type: "fitGridWidth" },
280
+ columnDefs: ue,
281
+ defaultColDef: fe,
282
+ onGridSizeChanged: le,
283
+ onGridReady: Se,
284
+ loading: k,
285
+ suppressCellFocus: !0,
286
+ suppressDragLeaveHidesColumns: !0,
287
+ noRowsOverlayComponent: pe,
288
+ rowData: c,
289
+ rowSelection: Ce,
290
+ onSelectionChanged: de,
291
+ getRowId: Re,
292
+ ...me
293
+ }
294
+ ) })
295
+ }
296
+ );
297
+ };
298
+ export {
299
+ je as GRID_SELECTION_COLUMN_ID,
300
+ Sr as Grid
301
+ };
@@ -0,0 +1,50 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useState as E, useEffect as d } from "react";
3
+ import { GridSelectionMode as S } from "../../../../models/selection-mode.js";
4
+ import { Checkbox as u } from "../../Checkbox/Checkbox.js";
5
+ import { Radio as p } from "../../Radio/Radio.js";
6
+ import { SelectionEventSourceType as C } from "../constants.js";
7
+ const g = ({
8
+ params: l,
9
+ mode: r,
10
+ label: n,
11
+ radioName: m,
12
+ rowId: a,
13
+ disabled: o
14
+ }) => {
15
+ const e = l.node, [c, f] = E(() => !!e.isSelected());
16
+ d(() => {
17
+ const t = () => f(!!e.isSelected());
18
+ return t(), e.addEventListener("rowSelected", t), () => e.removeEventListener("rowSelected", t);
19
+ }, [e]);
20
+ const i = (t) => {
21
+ o || e.setSelected(
22
+ t,
23
+ // Single mode clears the rest of the selection, as a radio group does.
24
+ r === S.SINGLE,
25
+ C.CHECKBOX_SELECTED
26
+ );
27
+ };
28
+ return r === S.SINGLE ? /* @__PURE__ */ s(
29
+ p,
30
+ {
31
+ name: m,
32
+ value: a,
33
+ isSelected: c,
34
+ disabled: o,
35
+ "aria-label": n,
36
+ onChange: () => i(!0)
37
+ }
38
+ ) : /* @__PURE__ */ s(
39
+ u,
40
+ {
41
+ isSelected: c,
42
+ disabled: o,
43
+ "aria-label": n,
44
+ onChange: i
45
+ }
46
+ );
47
+ };
48
+ export {
49
+ g as SelectionCell
50
+ };
@@ -0,0 +1,46 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useState as f, useEffect as E, useCallback as m } from "react";
3
+ import { Checkbox as u } from "../../Checkbox/Checkbox.js";
4
+ import { SelectionEventSourceType as s } from "../constants.js";
5
+ const o = (e) => {
6
+ let n = 0, l = 0;
7
+ return e.forEachNodeAfterFilter((t) => {
8
+ t.selectable !== !1 && (l++, t.isSelected() && n++);
9
+ }), { selected: n, selectable: l };
10
+ }, v = ({
11
+ api: e,
12
+ label: n
13
+ }) => {
14
+ const [{ selected: l, selectable: t }, c] = f(
15
+ () => o(e)
16
+ );
17
+ E(() => {
18
+ const r = () => c(o(e));
19
+ return r(), e.addEventListener("selectionChanged", r), e.addEventListener("modelUpdated", r), () => {
20
+ e.isDestroyed() || (e.removeEventListener("selectionChanged", r), e.removeEventListener("modelUpdated", r));
21
+ };
22
+ }, [e]);
23
+ const d = m(
24
+ (r) => {
25
+ if (r) {
26
+ e.selectAll("filtered", s.CHECKBOX_SELECTED);
27
+ return;
28
+ }
29
+ e.deselectAll("filtered", s.CHECKBOX_SELECTED);
30
+ },
31
+ [e]
32
+ );
33
+ return /* @__PURE__ */ i(
34
+ u,
35
+ {
36
+ isSelected: t > 0 && l === t,
37
+ isIndeterminate: l > 0 && l < t,
38
+ disabled: t === 0,
39
+ "aria-label": n,
40
+ onChange: d
41
+ }
42
+ );
43
+ };
44
+ export {
45
+ v as SelectionHeader
46
+ };
@@ -0,0 +1,44 @@
1
+ const a = "dial-kit-grid", t = "dial-kit-grid-with-selection", d = "dial-kit-grid-without-header-borders", i = "dial-kit-grid-row-select", l = "dial-kit-grid-header-select", n = "dial-kit-grid-selection-visible", c = "dial-kit-grid-align-right", C = 40, o = "0.5px solid var(--stroke-tertiary, #E0E6F0)", E = {
2
+ accentColor: "var(--bg-control-accent, #1D4ED8)",
3
+ backgroundColor: "var(--bg-layer-raised, #FCFCFC)",
4
+ oddRowBackgroundColor: "var(--bg-layer-sunken, #EEF1F7)",
5
+ selectedRowBackgroundColor: "var(--bg-control-accent-alpha, #2764D90F)",
6
+ rowHoverColor: "var(--bg-control-accent-alpha-hover, #2764D924)",
7
+ borderColor: "var(--stroke-tertiary, #E0E6F0)",
8
+ // Dividers inside the table sit on the thin stroke (0.5px) rather than the
9
+ // 1px main stroke that controls and standalone dividers use, so a dense grid
10
+ // reads as rows of data instead of a set of boxes. Sub-pixel widths are
11
+ // antialiased rather than snapped, which is what makes the line look lighter.
12
+ // `wrapperBorder` and the pinned-column boundary are left on the main stroke
13
+ // by the theme: those frame the table and separate its regions rather than
14
+ // dividing rows and columns.
15
+ rowBorder: o,
16
+ headerRowBorder: o,
17
+ headerColumnBorder: o,
18
+ chromeBackgroundColor: "var(--bg-layer-base, #F5F7FA)",
19
+ foregroundColor: "var(--text-primary, #161B2D)",
20
+ headerTextColor: "var(--text-secondary, #57647A)",
21
+ // 1.0 asked the browser for dark native widgets while painting a light
22
+ // theme; the scheme now matches the palette it is used with.
23
+ browserColorScheme: "light",
24
+ headerFontSize: 14,
25
+ headerFontWeight: 600,
26
+ fontSize: 14,
27
+ fontFamily: "var(--theme-font, var(--font-inter))",
28
+ spacing: 4,
29
+ borderRadius: 4,
30
+ wrapperBorderRadius: 8
31
+ };
32
+ var e = /* @__PURE__ */ ((r) => (r.API = "api", r.ROW_DATA_CHANGED = "rowDataChanged", r.CHECKBOX_SELECTED = "checkboxSelected", r))(e || {});
33
+ export {
34
+ c as GRID_ALIGN_RIGHT_CLASS,
35
+ l as GRID_HEADER_SELECT_CLASS,
36
+ a as GRID_ROOT_CLASS,
37
+ i as GRID_ROW_SELECT_CLASS,
38
+ n as GRID_SELECTION_VISIBLE_CLASS,
39
+ E as GRID_THEME_PARAMS,
40
+ d as GRID_WITHOUT_HEADER_BORDERS_CLASS,
41
+ t as GRID_WITH_SELECTION_CLASS,
42
+ C as ROW_HEIGHT,
43
+ e as SelectionEventSourceType
44
+ };
@@ -0,0 +1,27 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useMemo as f } from "react";
3
+ import { convertToDate as p } from "../../../../utils/grid-date.js";
4
+ import { mergeClasses as T } from "../../../../utils/merge-classes.js";
5
+ import { EllipsisTooltip as c } from "../../EllipsisTooltip/EllipsisTooltip.js";
6
+ import { DEFAULT_LOCALE as d, DEFAULT_DATE_FORMAT_OPTIONS as D } from "./constants.js";
7
+ const L = ({
8
+ value: s,
9
+ locale: e = d,
10
+ options: o = D,
11
+ emptyPlaceholder: m,
12
+ className: a,
13
+ hideTooltip: l = !1
14
+ }) => {
15
+ const t = p(s), i = f(() => t ? new Intl.DateTimeFormat(e, o).format(t) : m, [t, m, e, o]), n = t ? t.toISOString() : void 0;
16
+ return /* @__PURE__ */ r(
17
+ c,
18
+ {
19
+ text: n ? /* @__PURE__ */ r("time", { dateTime: n, children: i }) : /* @__PURE__ */ r("span", { children: i }),
20
+ className: T("dial-small-text text-primary", a),
21
+ hideTooltip: l
22
+ }
23
+ );
24
+ };
25
+ export {
26
+ L as DateCellRenderer
27
+ };
@@ -0,0 +1,25 @@
1
+ const t = "en-US", s = {
2
+ year: "numeric",
3
+ month: "numeric",
4
+ day: "2-digit",
5
+ hour: "2-digit",
6
+ minute: "2-digit",
7
+ second: "2-digit"
8
+ }, e = 40, i = {
9
+ minWidth: e,
10
+ width: e,
11
+ maxWidth: e,
12
+ resizable: !1,
13
+ sortable: !1,
14
+ filter: !1,
15
+ floatingFilter: !1,
16
+ suppressMovable: !0,
17
+ suppressHeaderMenuButton: !0,
18
+ suppressAutoSize: !0,
19
+ suppressSizeToFit: !0
20
+ };
21
+ export {
22
+ s as DEFAULT_DATE_FORMAT_OPTIONS,
23
+ t as DEFAULT_LOCALE,
24
+ i as SELECTION_COL_DEF
25
+ };
@@ -0,0 +1,50 @@
1
+ import { jsx as c, jsxs as h, Fragment as g } from "react/jsx-runtime";
2
+ import { mergeClasses as s } from "../../../utils/merge-classes.js";
3
+ import { EllipsisTooltip as t } from "../EllipsisTooltip/EllipsisTooltip.js";
4
+ const i = {
5
+ 2: "line-clamp-2",
6
+ 3: "line-clamp-3",
7
+ 4: "line-clamp-4",
8
+ 5: "line-clamp-5",
9
+ 6: "line-clamp-6"
10
+ }, C = (e) => e === 1 ? "!truncate !whitespace-nowrap" : `${i[e] ?? i[2]} !whitespace-normal`, d = ({
11
+ text: e,
12
+ query: a,
13
+ markClassName: m,
14
+ className: n,
15
+ maxLines: r = 2
16
+ }) => {
17
+ const o = C(r);
18
+ if (!a.trim())
19
+ return /* @__PURE__ */ c(
20
+ t,
21
+ {
22
+ className: s(o, n),
23
+ text: e
24
+ }
25
+ );
26
+ const l = e.toLowerCase().indexOf(a.toLowerCase()), p = l === -1 ? e : /* @__PURE__ */ h(g, { children: [
27
+ e.slice(0, l),
28
+ /* @__PURE__ */ c(
29
+ "mark",
30
+ {
31
+ className: s(
32
+ "text-accent bg-control-accent-alpha-hover",
33
+ m
34
+ ),
35
+ children: e.slice(l, l + a.length)
36
+ }
37
+ ),
38
+ e.slice(l + a.length)
39
+ ] });
40
+ return /* @__PURE__ */ c(
41
+ t,
42
+ {
43
+ className: s(o, n),
44
+ text: p
45
+ }
46
+ );
47
+ };
48
+ export {
49
+ d as Highlight
50
+ };
@@ -0,0 +1,46 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ButtonAppearance as b } from "../../../types/button.js";
3
+ import { mergeClasses as u } from "../../../utils/merge-classes.js";
4
+ import { resolveAccessibleName as p } from "../../../utils/accessible-name.js";
5
+ import { ElementSize as t } from "../../../types/size.js";
6
+ import { Tooltip as S } from "../Tooltip/Tooltip.js";
7
+ import { getButtonClassNames as f } from "../Button/utils.js";
8
+ const g = {
9
+ [t.Small]: "size-[24px]",
10
+ [t.Standard]: "size-[40px] dial-kit-enhanced-target",
11
+ [t.Large]: "size-[48px] dial-kit-enhanced-target"
12
+ }, B = ({
13
+ variant: a,
14
+ appearance: n = b.Solid,
15
+ size: l = t.Standard,
16
+ className: m,
17
+ icon: s,
18
+ tooltipProps: e,
19
+ type: c = "button",
20
+ ...o
21
+ }) => {
22
+ const d = u(
23
+ "dial-kit-base-icon-button dial-kit-base-button",
24
+ a && f(a, n),
25
+ // 24px is below the AAA target size, so only the larger tiers get the
26
+ // enhanced pointer target — see the accessibility rules in AGENTS.md.
27
+ g[l],
28
+ m
29
+ ), i = /* @__PURE__ */ r(
30
+ "button",
31
+ {
32
+ ...o,
33
+ type: c,
34
+ className: d,
35
+ "aria-label": p(
36
+ o["aria-label"],
37
+ e?.tooltip
38
+ ),
39
+ children: s
40
+ }
41
+ );
42
+ return e ? /* @__PURE__ */ r(S, { asChild: !0, ...e, children: i }) : i;
43
+ };
44
+ export {
45
+ B as IconButton
46
+ };
@@ -0,0 +1,40 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { ButtonAppearance as t, ButtonVariant as o } from "../../../types/button.js";
3
+ import { IconButton as p } from "./IconButton.js";
4
+ const e = (n, r) => ({ appearance: a, ...c }) => /* @__PURE__ */ u(
5
+ p,
6
+ {
7
+ ...c,
8
+ variant: n,
9
+ appearance: a || r
10
+ }
11
+ ), i = (n, r) => ({ variant: a, ...c }) => /* @__PURE__ */ u(
12
+ p,
13
+ {
14
+ ...c,
15
+ variant: a || r,
16
+ appearance: n
17
+ }
18
+ ), l = e(
19
+ o.Primary,
20
+ t.Solid
21
+ ), S = e(
22
+ o.Neutral,
23
+ t.Solid
24
+ ), W = e(
25
+ o.Danger,
26
+ t.Ghost
27
+ ), d = i(
28
+ t.Ghost,
29
+ o.Primary
30
+ ), f = i(
31
+ t.Solid,
32
+ o.Static
33
+ );
34
+ export {
35
+ W as DangerIconButton,
36
+ d as GhostIconButton,
37
+ S as NeutralIconButton,
38
+ l as PrimaryIconButton,
39
+ f as StaticIconButton
40
+ };
@@ -0,0 +1,39 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { IconInfoCircle as n } from "@tabler/icons-react";
3
+ import { DIAL_KIT_ICON_STROKE as l } from "../constants/icon.js";
4
+ import { DIAL_ICON_SIZE as s } from "../../../constants/icon.js";
5
+ import { ElementSize as m } from "../../../types/size.js";
6
+ import { mergeClasses as a } from "../../../utils/merge-classes.js";
7
+ import { IconButton as c } from "../IconButton/IconButton.js";
8
+ const S = ({
9
+ caption: o,
10
+ onClick: e,
11
+ "aria-label": r
12
+ }) => {
13
+ if (!o) return null;
14
+ const i = a(
15
+ "text-secondary hover:text-control-accent-hover active:text-control-accent-active",
16
+ "focus-visible:outline focus-visible:outline-focus"
17
+ );
18
+ return /* @__PURE__ */ t(
19
+ c,
20
+ {
21
+ "aria-label": r,
22
+ className: i,
23
+ icon: /* @__PURE__ */ t(
24
+ n,
25
+ {
26
+ size: s.SM,
27
+ stroke: l,
28
+ "aria-hidden": "true"
29
+ }
30
+ ),
31
+ onClick: e,
32
+ size: m.Small,
33
+ tooltipProps: { tooltip: o }
34
+ }
35
+ );
36
+ };
37
+ export {
38
+ S as InfoButton
39
+ };