@epam/ai-dial-ui-kit 0.16.0-dev.6 → 0.16.0-dev.60
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.
- package/README.md +24 -11
- package/dist/CHANGELOG.md +110 -0
- package/dist/{DateCellRenderer-ElULb0hY.cjs → DateCellRenderer-BFcpoREG.cjs} +32 -32
- package/dist/MarkdownEditor-5Jq0NTTP.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +3 -28
- package/dist/_virtual/index.js +5 -3
- package/dist/components/Dropdown/constants.js +2 -2
- package/dist/components/IconButton/IconButton.js +7 -7
- package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
- package/dist/components/Loader/Loader.js +8 -8
- package/dist/components/New/Analytics/Bar/Bar.js +104 -0
- package/dist/components/New/Analytics/BarGroup/BarGroup.js +143 -0
- package/dist/components/{Analytics → New/Analytics}/Card/Card.js +32 -20
- package/dist/components/New/Analytics/Histogram/Histogram.js +212 -0
- package/dist/components/New/Avatar/Avatar.js +17 -16
- package/dist/components/New/BottomSheet/BottomSheet.js +53 -52
- package/dist/components/New/Breadcrumbs/constants.js +1 -1
- package/dist/components/New/Calendar/Calendar.js +324 -228
- package/dist/components/New/Calendar/TimePickerPanel.js +87 -0
- package/dist/components/New/Calendar/constants.js +27 -25
- package/dist/components/New/CaptionText/CaptionText.js +31 -26
- package/dist/components/New/Checkbox/Checkbox.js +23 -21
- package/dist/components/New/Checkbox/CheckboxBox.js +25 -18
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +49 -44
- package/dist/components/New/Dropdown/Dropdown.js +350 -261
- package/dist/components/New/Dropdown/constants.js +21 -18
- package/dist/components/New/Dropdown/search.js +37 -0
- package/dist/components/New/EntityIdentity/EntityIdentity.js +62 -60
- package/dist/components/New/FileName/FileName.js +38 -37
- package/dist/components/New/FolderPath/FolderPath.js +151 -46
- package/dist/components/New/FormSection/FormSection.js +87 -0
- package/dist/components/New/Grid/Grid.js +187 -174
- package/dist/components/New/Grid/constants.js +9 -8
- package/dist/components/New/Input/Input.js +121 -107
- package/dist/components/New/LabelledText/LabelledText.js +43 -0
- package/dist/components/New/LiveRegion/LiveRegion.js +33 -0
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +40 -28
- package/dist/components/New/MenuItem/MenuItem.js +17 -17
- package/dist/components/New/NoDataContent/NoDataContent.js +22 -27
- package/dist/components/New/NoDataContent/NoDataIllustration.js +53 -0
- package/dist/components/New/Notification/Notification.js +51 -39
- package/dist/components/New/Notification/constants.js +26 -17
- package/dist/components/New/PasswordInput/PasswordInput.js +33 -32
- package/dist/components/New/Popup/constants.js +1 -1
- package/dist/components/New/Radio/Radio.js +19 -17
- package/dist/components/New/ResizeHandle/ResizeHandle.js +147 -0
- package/dist/components/New/SchemaRenderer/components/SchemaField.js +45 -44
- package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +41 -38
- package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +45 -39
- package/dist/components/New/Select/Select.js +205 -202
- package/dist/components/New/Select/constants.js +29 -38
- package/dist/components/New/SelectedEntityCard/SelectedEntityCard.js +86 -0
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
- package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
- package/dist/components/New/StateScreen/StateScreen.js +63 -0
- package/dist/components/New/Steps/Steps.js +86 -0
- package/dist/components/New/Switch/Switch.js +19 -17
- package/dist/components/New/Tabs/Tabs.js +91 -58
- package/dist/components/New/Tag/Tag.js +34 -34
- package/dist/components/New/Tag/constants.js +13 -4
- package/dist/components/New/Textarea/Textarea.js +37 -33
- package/dist/components/New/ToggleChip/ToggleChip.js +54 -0
- package/dist/components/New/ToggleChip/constants.js +11 -0
- package/dist/components/New/TransferQueue/TransferQueue.js +66 -71
- package/dist/components/New/TransferQueue/TransferQueueHeader.js +30 -38
- package/dist/components/New/TransferQueue/TransferQueueRow.js +106 -49
- package/dist/components/ProgressBar/ProgressBar.js +43 -38
- package/dist/components-manifest.json +3712 -6488
- package/dist/constants/public-class-names.js +34 -7
- package/dist/dial-ui-kit.cjs +4 -2
- package/dist/dial-ui-kit.js +387 -467
- package/dist/editors.cjs +1 -1
- package/dist/editors.js +4 -10
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +22 -29
- package/dist/{merge-classes-BEJXjzkx.cjs → icon-4D9xu6E_.cjs} +1 -1
- package/dist/index.css +2 -6
- package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
- package/dist/migration-guides/0.16.0/legacy-analytics-and-steps-removal.md +54 -0
- package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +91 -0
- package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
- package/dist/migration-guides/0.16.0/unused-legacy-components-removal.md +128 -0
- package/dist/migration-guides/README.md +5 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
- package/dist/node_modules/react-dnd/dist/internals/registration.js +5 -13
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/{Analytics → New/Analytics}/Bar/Bar.d.ts +6 -6
- package/dist/src/components/{Analytics → New/Analytics}/Bar/utils.d.ts +1 -1
- package/dist/src/components/{Analytics → New/Analytics}/BarGroup/BarGroup.d.ts +7 -7
- package/dist/src/components/{Analytics → New/Analytics}/Card/Card.d.ts +7 -7
- package/dist/src/components/{Analytics → New/Analytics}/Histogram/Histogram.d.ts +5 -5
- package/dist/src/components/{Analytics → New/Analytics}/Histogram/utils.d.ts +1 -1
- package/dist/src/components/New/Analytics/index.d.ts +11 -0
- package/dist/src/components/New/Avatar/Avatar.d.ts +3 -0
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
- package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
- package/dist/src/components/New/Calendar/Calendar.d.ts +17 -2
- package/dist/src/components/New/Calendar/TimePickerPanel.d.ts +15 -0
- package/dist/src/components/New/Calendar/constants.d.ts +7 -5
- package/dist/src/components/New/CaptionText/CaptionText.d.ts +24 -2
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +95 -1
- package/dist/src/components/New/Dropdown/constants.d.ts +7 -1
- package/dist/src/components/New/Dropdown/search.d.ts +9 -0
- package/dist/src/components/New/EntityIdentity/EntityIdentity.d.ts +6 -2
- package/dist/src/components/New/FileName/FileName.d.ts +11 -0
- package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
- package/dist/src/components/New/FolderPath/FolderPath.d.ts +16 -8
- package/dist/src/components/New/FormSection/FormSection.d.ts +63 -0
- package/dist/src/components/New/Grid/Grid.d.ts +8 -2
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
- package/dist/src/components/New/Grid/constants.d.ts +2 -0
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
- package/dist/src/components/New/LabelledText/LabelledText.d.ts +48 -0
- package/dist/src/components/New/LiveRegion/LiveRegion.d.ts +58 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +9 -3
- package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +16 -8
- package/dist/src/components/New/NoDataContent/NoDataIllustration.d.ts +7 -0
- package/dist/src/components/New/Notification/Notification.d.ts +24 -2
- package/dist/src/components/New/Notification/constants.d.ts +11 -0
- package/dist/src/components/New/PasswordInput/PasswordInput.d.ts +6 -0
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/ResizeHandle/ResizeHandle.d.ts +68 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +1 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +2 -0
- package/dist/src/components/New/SchemaRenderer/types.d.ts +3 -1
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/dist/src/components/New/Select/Select.d.ts +2 -0
- package/dist/src/components/New/Select/constants.d.ts +3 -4
- package/dist/src/components/New/SelectedEntityCard/SelectedEntityCard.d.ts +67 -0
- package/dist/src/components/New/StateScreen/StateScreen.d.ts +55 -0
- package/dist/src/components/New/Steps/Steps.d.ts +55 -0
- package/dist/src/components/New/Tabs/Tabs.d.ts +17 -1
- package/dist/src/components/New/Tag/Tag.d.ts +9 -5
- package/dist/src/components/New/Tag/constants.d.ts +12 -4
- package/dist/src/components/New/ToggleChip/ToggleChip.d.ts +70 -0
- package/dist/src/components/New/ToggleChip/constants.d.ts +12 -0
- package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
- package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +9 -5
- package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +1 -3
- package/dist/src/components/ProgressBar/ProgressBar.d.ts +23 -3
- package/dist/src/constants/public-class-names.d.ts +34 -7
- package/dist/src/index.d.ts +36 -82
- package/dist/src/models/step.d.ts +2 -0
- package/dist/src/subpaths/editors.d.ts +9 -15
- package/dist/src/subpaths/grid.d.ts +3 -9
- package/dist/src/types/dropdown.d.ts +16 -0
- package/dist/src/types/editor.d.ts +0 -6
- package/dist/src/types/form-section.d.ts +9 -0
- package/dist/src/types/grid.d.ts +10 -0
- package/dist/src/types/live-region.d.ts +17 -0
- package/dist/src/types/notification.d.ts +11 -0
- package/dist/src/types/progress-bar.d.ts +13 -0
- package/dist/src/types/tab.d.ts +5 -0
- package/dist/src/types/tag.d.ts +3 -1
- package/dist/src/utils/grid-registration.d.ts +6 -8
- package/dist/src/utils/sub-menu-floating.d.ts +1 -1
- package/dist/types/dropdown.js +5 -4
- package/dist/types/form-section.js +4 -0
- package/dist/types/grid.js +3 -2
- package/dist/types/live-region.js +5 -0
- package/dist/types/notification.js +3 -2
- package/dist/types/progress-bar.js +4 -0
- package/dist/types/tab.js +5 -4
- package/dist/types/tag.js +2 -2
- package/dist/utils/merge-classes.js +39 -7
- package/dist/utils/sub-menu-floating.js +8 -8
- package/package.json +12 -26
- package/dist/DateCellRenderer-C7yExfh5.cjs +0 -1
- package/dist/IconButton-DHOFapLo.cjs +0 -1
- package/dist/JsonEditor-Bxui5wJH.cjs +0 -1
- package/dist/MarkdownEditor-BKtFs714.cjs +0 -1
- package/dist/MarkdownEditor-Bapd1ycU.cjs +0 -1
- package/dist/MarkdownEditorContainer-B5aHwoYF.cjs +0 -1
- package/dist/Switch-DE6MrcqJ.cjs +0 -1
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -7
- package/dist/assets/icons/add-child.svg.js +0 -5
- package/dist/assets/icons/add-sibling.svg.js +0 -5
- package/dist/assets/icons/copy-to.svg.js +0 -5
- package/dist/assets/icons/file/c.svg.js +0 -5
- package/dist/assets/icons/file/cpp.svg.js +0 -5
- package/dist/assets/icons/file/cs.svg.js +0 -5
- package/dist/assets/icons/file/ini.svg.js +0 -5
- package/dist/assets/icons/file/json.svg.js +0 -5
- package/dist/assets/icons/file/md.svg.js +0 -5
- package/dist/assets/icons/file/py.svg.js +0 -5
- package/dist/assets/icons/move-to.svg.js +0 -5
- package/dist/assets/icons/no-data.svg.js +0 -5
- package/dist/assets/icons/open-popup.svg.js +0 -5
- package/dist/assets/icons/unshare.svg.js +0 -5
- package/dist/components/Analytics/Bar/Bar.js +0 -80
- package/dist/components/Analytics/BarGroup/BarGroup.js +0 -142
- package/dist/components/Analytics/ErrorTag/ErrorTag.js +0 -19
- package/dist/components/Analytics/Histogram/Histogram.js +0 -200
- package/dist/components/AutocompleteInput/AutocompleteInputValue.js +0 -21
- package/dist/components/ButtonDropdown/ButtonDropdown.js +0 -33
- package/dist/components/ButtonDropdown/constants.js +0 -8
- package/dist/components/Checkbox/Checkbox.js +0 -64
- package/dist/components/Checkbox/constants.js +0 -4
- package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +0 -84
- package/dist/components/ConfirmationPopup/ConfirmationPopup.js +0 -75
- package/dist/components/ConfirmationPopup/constants.js +0 -32
- package/dist/components/DraggableItem/DraggableItem.js +0 -61
- package/dist/components/DraggableItem/constants.js +0 -6
- package/dist/components/DropdownIcon/DropdownIcon.js +0 -103
- package/dist/components/FileIcon/FileIcon.js +0 -37
- package/dist/components/FileIcon/constants.js +0 -60
- package/dist/components/FileManager/FileManager.js +0 -888
- package/dist/components/FileManager/FileManagerContext.js +0 -5
- package/dist/components/FileManager/FileManagerProvider.js +0 -772
- package/dist/components/FileManager/FileManagerTooltip.js +0 -92
- package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +0 -293
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +0 -201
- package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +0 -52
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +0 -103
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +0 -5
- package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +0 -56
- package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +0 -69
- package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +0 -100
- package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +0 -93
- package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +0 -165
- package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +0 -6
- package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +0 -120
- package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +0 -119
- package/dist/components/FileManager/components/FileMetadataPopup/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +0 -180
- package/dist/components/FileManager/components/FoldersTree/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +0 -51
- package/dist/components/FileManager/constants.js +0 -28
- package/dist/components/FileManager/errors.js +0 -10
- package/dist/components/FileManager/hooks/use-bulk-actions.js +0 -143
- package/dist/components/FileManager/hooks/use-collapse-tree.js +0 -22
- package/dist/components/FileManager/hooks/use-conflict-resolution.js +0 -158
- package/dist/components/FileManager/hooks/use-current-path.js +0 -29
- package/dist/components/FileManager/hooks/use-file-clipboard.js +0 -154
- package/dist/components/FileManager/hooks/use-file-delete.js +0 -39
- package/dist/components/FileManager/hooks/use-file-download.js +0 -16
- package/dist/components/FileManager/hooks/use-file-manager-columns.js +0 -106
- package/dist/components/FileManager/hooks/use-file-manager-context.js +0 -13
- package/dist/components/FileManager/hooks/use-file-manager-tabs.js +0 -23
- package/dist/components/FileManager/hooks/use-file-metadata.js +0 -20
- package/dist/components/FileManager/hooks/use-file-search.js +0 -90
- package/dist/components/FileManager/hooks/use-file-upload.js +0 -338
- package/dist/components/FileManager/hooks/use-folder-creation.js +0 -151
- package/dist/components/FileManager/hooks/use-grid-actions-column.js +0 -65
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +0 -188
- package/dist/components/FileManager/hooks/use-item-renaming.js +0 -124
- package/dist/components/FileManager/hooks/use-new-actions.js +0 -67
- package/dist/components/FileManager/hooks/use-paths-selection.js +0 -28
- package/dist/components/FileManager/hooks/use-show-hidden-files.js +0 -20
- package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +0 -39
- package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +0 -42
- package/dist/components/FileManager/hooks/use-trigger-view-rename.js +0 -25
- package/dist/components/FileManager/utils.js +0 -129
- package/dist/components/FileName/FileName.js +0 -68
- package/dist/components/FolderName/FolderName.js +0 -57
- package/dist/components/FormItem/FormItem.js +0 -90
- package/dist/components/FormItem/constants.js +0 -9
- package/dist/components/FormPopup/FormPopup.js +0 -59
- package/dist/components/FormPopup/constants.js +0 -6
- package/dist/components/Grid/Grid.js +0 -333
- package/dist/components/Grid/constants.js +0 -33
- package/dist/components/Grid/renderers/DateCellRenderer.js +0 -27
- package/dist/components/Grid/renderers/constants.js +0 -25
- package/dist/components/InputPopup/InputPopup.js +0 -174
- package/dist/components/JsonEditor/JsonEditor.js +0 -65
- package/dist/components/JsonEditor/lazy.js +0 -4
- package/dist/components/MarkdownEditor/MarkdownEditor.js +0 -39
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +0 -82
- package/dist/components/MarkdownEditor/lazy.js +0 -4
- package/dist/components/Notification/Notification.js +0 -67
- package/dist/components/Notification/constants.js +0 -24
- package/dist/components/NumberInput/NumberInput.js +0 -41
- package/dist/components/Pagination/Pagination.js +0 -80
- package/dist/components/Pagination/utils.js +0 -10
- package/dist/components/PasswordInput/Icons/HideIcon.js +0 -16
- package/dist/components/PasswordInput/Icons/ShowIcon.js +0 -16
- package/dist/components/PasswordInput/PasswordInput.js +0 -21
- package/dist/components/Popup/Popup.js +0 -110
- package/dist/components/Popup/constants.js +0 -12
- package/dist/components/RadioButton/RadioButton.js +0 -103
- package/dist/components/RadioGroup/RadioGroup.js +0 -92
- package/dist/components/RadioGroup/constants.js +0 -10
- package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +0 -101
- package/dist/components/ResizableContainer/ConditionalResizableContainer.js +0 -6
- package/dist/components/ResizableContainer/ResizableContainer.js +0 -79
- package/dist/components/ResizableContainer/components/ResizeHandle.js +0 -20
- package/dist/components/ResizableContainer/components/ResizeIcon.js +0 -11
- package/dist/components/SchemaRenderer/SchemaRenderer.js +0 -151
- package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +0 -56
- package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +0 -74
- package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +0 -118
- package/dist/components/SchemaRenderer/components/SchemaField.js +0 -78
- package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +0 -114
- package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +0 -272
- package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +0 -36
- package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +0 -192
- package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +0 -161
- package/dist/components/SchemaRenderer/components/SchemaSection.js +0 -81
- package/dist/components/SchemaRenderer/context.js +0 -12
- package/dist/components/Search/Search.js +0 -63
- package/dist/components/Search/constants.js +0 -27
- package/dist/components/SegmentedControl/SegmentedControl.js +0 -87
- package/dist/components/SegmentedControl/constants.js +0 -8
- package/dist/components/Select/MultiSelectTags.js +0 -23
- package/dist/components/Select/Select.js +0 -435
- package/dist/components/Select/SelectSubMenuItem.js +0 -90
- package/dist/components/Select/constants.js +0 -15
- package/dist/components/SelectField/SelectField.js +0 -66
- package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +0 -34
- package/dist/components/Slider/Slider.js +0 -158
- package/dist/components/Steps/Step.js +0 -34
- package/dist/components/Steps/Steps.js +0 -27
- package/dist/components/Steps/utils.js +0 -42
- package/dist/components/Switch/Switch.js +0 -70
- package/dist/components/TagInput/TagInput.js +0 -179
- package/dist/components/Textarea/Textarea.js +0 -43
- package/dist/constants/editor.js +0 -52
- package/dist/constants/file-grid-columns.js +0 -176
- package/dist/file-manager.cjs +0 -1
- package/dist/file-manager.js +0 -22
- package/dist/hooks/use-flexible-actions.js +0 -72
- package/dist/hooks/use-width-breakpoint.js +0 -15
- package/dist/icon-CrGVkVpG.cjs +0 -1
- package/dist/icon-DhjrDQ8I.cjs +0 -1
- package/dist/lazy-_W6FYhKg.cjs +0 -1
- package/dist/node_modules/mime-db/db.json.js +0 -2527
- package/dist/node_modules/mime-db/index.js +0 -8
- package/dist/node_modules/mime-types/index.js +0 -70
- package/dist/node_modules/mime-types/mimeScore.js +0 -38
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +0 -25
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +0 -21
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +0 -20
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +0 -19
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +0 -22
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +0 -15
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +0 -13
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +0 -23
- package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +0 -88
- package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +0 -87
- package/dist/src/__mocks__/monaco-editor.d.ts +0 -13
- package/dist/src/components/Analytics/Bar/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/ErrorTag/ErrorTag.d.ts +0 -22
- package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/index.d.ts +0 -13
- package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +0 -34
- package/dist/src/components/Button/ButtonWrappers.test.d.ts +0 -1
- package/dist/src/components/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/ButtonDropdown/ButtonDropdown.d.ts +0 -24
- package/dist/src/components/ButtonDropdown/constants.d.ts +0 -2
- package/dist/src/components/Checkbox/Checkbox.d.ts +0 -36
- package/dist/src/components/Checkbox/constants.d.ts +0 -1
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +0 -46
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +0 -55
- package/dist/src/components/ConfirmationPopup/constants.d.ts +0 -18
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +0 -33
- package/dist/src/components/DraggableItem/constants.d.ts +0 -3
- package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +0 -38
- package/dist/src/components/FileIcon/FileIcon.d.ts +0 -33
- package/dist/src/components/FileIcon/constants.d.ts +0 -9
- package/dist/src/components/FileManager/FileManager.d.ts +0 -326
- package/dist/src/components/FileManager/FileManagerContext.d.ts +0 -181
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +0 -21
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +0 -12
- package/dist/src/components/FileManager/__mocks__/files.d.ts +0 -3
- package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +0 -90
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +0 -73
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +0 -63
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +0 -1
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +0 -56
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +0 -26
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +0 -51
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +0 -57
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +0 -71
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +0 -64
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +0 -76
- package/dist/src/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.d.ts +0 -50
- package/dist/src/components/FileManager/components/FileMetadataPopup/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +0 -135
- package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +0 -13
- package/dist/src/components/FileManager/constants.d.ts +0 -21
- package/dist/src/components/FileManager/errors.d.ts +0 -6
- package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-current-path.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-clipboard.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-delete.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-download.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-show-hidden-files.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-collapse-tree.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +0 -27
- package/dist/src/components/FileManager/hooks/use-current-path.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +0 -37
- package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-download.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +0 -43
- package/dist/src/components/FileManager/hooks/use-file-manager-context.d.ts +0 -7
- package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-metadata.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-search.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +0 -64
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +0 -15
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +0 -44
- package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-paths-selection.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-show-hidden-files.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +0 -26
- package/dist/src/components/FileManager/hooks/use-trigger-view-rename.d.ts +0 -20
- package/dist/src/components/FileManager/utils.d.ts +0 -69
- package/dist/src/components/FileManager/utils.spec.d.ts +0 -1
- package/dist/src/components/FileName/FileName.d.ts +0 -49
- package/dist/src/components/FolderName/FolderName.d.ts +0 -37
- package/dist/src/components/FormItem/FormItem.d.ts +0 -66
- package/dist/src/components/FormItem/constants.d.ts +0 -3
- package/dist/src/components/FormPopup/FormPopup.d.ts +0 -46
- package/dist/src/components/FormPopup/constants.d.ts +0 -3
- package/dist/src/components/Grid/Grid.d.ts +0 -120
- package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +0 -1
- package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
- package/dist/src/components/Grid/constants.d.ts +0 -28
- package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +0 -34
- package/dist/src/components/Grid/renderers/constants.d.ts +0 -7
- package/dist/src/components/Grid/renderers/utils.d.ts +0 -1
- package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
- package/dist/src/components/InputPopup/InputPopup.d.ts +0 -61
- package/dist/src/components/JsonEditor/JsonEditor.d.ts +0 -25
- package/dist/src/components/JsonEditor/lazy.d.ts +0 -14
- package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +0 -38
- package/dist/src/components/MarkdownEditor/MarkdownEditorContainer.d.ts +0 -51
- package/dist/src/components/MarkdownEditor/lazy.d.ts +0 -7
- package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Calendar/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Slider/utils.spec.d.ts +0 -1
- package/dist/src/components/New/TagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/Notification/Notification.d.ts +0 -58
- package/dist/src/components/Notification/constants.d.ts +0 -8
- package/dist/src/components/NumberInput/NumberInput.d.ts +0 -34
- package/dist/src/components/Pagination/Pagination.d.ts +0 -11
- package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Pagination/utils.d.ts +0 -9
- package/dist/src/components/PasswordInput/Icons/HideIcon.d.ts +0 -16
- package/dist/src/components/PasswordInput/Icons/ShowIcon.d.ts +0 -16
- package/dist/src/components/PasswordInput/PasswordInput.d.ts +0 -26
- package/dist/src/components/Popup/Popup.d.ts +0 -64
- package/dist/src/components/Popup/constants.d.ts +0 -5
- package/dist/src/components/RadioButton/RadioButton.d.ts +0 -54
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +0 -66
- package/dist/src/components/RadioGroup/constants.d.ts +0 -5
- package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +0 -74
- package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +0 -35
- package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +0 -72
- package/dist/src/components/ResizableContainer/components/ResizeHandle.d.ts +0 -10
- package/dist/src/components/ResizableContainer/components/ResizeIcon.d.ts +0 -8
- package/dist/src/components/SchemaRenderer/SchemaRenderer.d.ts +0 -30
- package/dist/src/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.d.ts +0 -20
- package/dist/src/components/SchemaRenderer/components/SchemaAnyOfEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaArrayEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaField.d.ts +0 -29
- package/dist/src/components/SchemaRenderer/components/SchemaFieldContent.d.ts +0 -25
- package/dist/src/components/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +0 -33
- package/dist/src/components/SchemaRenderer/components/SchemaObjectEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaOneOfEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaPrimitiveField.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaSection.d.ts +0 -33
- package/dist/src/components/SchemaRenderer/context.d.ts +0 -19
- package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/SchemaRenderer/types.d.ts +0 -62
- package/dist/src/components/SchemaRenderer/utils.d.ts +0 -1
- package/dist/src/components/Search/Search.d.ts +0 -35
- package/dist/src/components/Search/constants.d.ts +0 -8
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +0 -40
- package/dist/src/components/SegmentedControl/constants.d.ts +0 -5
- package/dist/src/components/Select/MultiSelectTags.d.ts +0 -8
- package/dist/src/components/Select/Select.d.ts +0 -100
- package/dist/src/components/Select/SelectSubMenuItem.d.ts +0 -8
- package/dist/src/components/Select/constants.d.ts +0 -9
- package/dist/src/components/SelectField/SelectField.d.ts +0 -42
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +0 -31
- package/dist/src/components/Slider/Slider.d.ts +0 -57
- package/dist/src/components/Steps/Step.d.ts +0 -9
- package/dist/src/components/Steps/Steps.d.ts +0 -26
- package/dist/src/components/Steps/tests/Steps.test.d.ts +0 -1
- package/dist/src/components/Steps/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Steps/utils.d.ts +0 -3
- package/dist/src/components/Switch/Switch.d.ts +0 -34
- package/dist/src/components/TagInput/TagInput.d.ts +0 -52
- package/dist/src/components/Textarea/Textarea.d.ts +0 -39
- package/dist/src/constants/editor.d.ts +0 -2
- package/dist/src/constants/file-grid-columns.d.ts +0 -4
- package/dist/src/constants/storybook/form-item.d.ts +0 -3
- package/dist/src/models/file-manager.d.ts +0 -19
- package/dist/src/models/segmented-control.d.ts +0 -7
- package/dist/src/subpaths/file-manager.d.ts +0 -21
- package/dist/src/types/file-manager.d.ts +0 -59
- package/dist/src/types/form-item.d.ts +0 -31
- package/dist/src/types/select.d.ts +0 -8
- package/dist/src/utils/__tests__/accessible-name.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/avatar.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/file-accept.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/merge-classes.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/path.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/pointer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/timezone.spec.d.ts +0 -1
- package/dist/src/utils/grid-registration.spec.d.ts +0 -1
- package/dist/types/file-manager.js +0 -12
- package/dist/types/form-item.js +0 -4
- package/dist/types/select.js +0 -5
- package/dist/use-file-manager-tabs-Bgh8mfOJ.cjs +0 -3
- package/dist/utils/path.js +0 -4
- /package/dist/components/{Analytics → New/Analytics}/Bar/utils.js +0 -0
- /package/dist/components/{Analytics → New/Analytics}/Histogram/utils.js +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Migrating the legacy `DialFileManager` — v0.15 → v0.16
|
|
2
|
+
|
|
3
|
+
## Why this changed
|
|
4
|
+
|
|
5
|
+
The file manager lives in its own package, `@epam/ai-dial-react-file-manager`,
|
|
6
|
+
which is where it is developed and what DIAL Chat already uses. The kit still
|
|
7
|
+
shipped the older copy, and the two drifted apart. Keeping both meant two
|
|
8
|
+
`DialFileManager` exports with the same name and different behaviour, and the
|
|
9
|
+
kit's copy pulled the legacy `DialGrid` and AG Grid into every consumer of the
|
|
10
|
+
`./file-manager` subpath. The copy in the kit is removed. The standalone package
|
|
11
|
+
is the only file manager.
|
|
12
|
+
|
|
13
|
+
## What changed
|
|
14
|
+
|
|
15
|
+
Every name below is gone from `@epam/ai-dial-ui-kit`, and the
|
|
16
|
+
`@epam/ai-dial-ui-kit/file-manager` subpath is gone with them. Each name is
|
|
17
|
+
exported under the same name by `@epam/ai-dial-react-file-manager`.
|
|
18
|
+
|
|
19
|
+
| Kind | Removed from `@epam/ai-dial-ui-kit` |
|
|
20
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
21
|
+
| Components | `DialFileManager`, `DialFoldersTree`, `DialDestinationFolderPopup` |
|
|
22
|
+
| Context and hooks | `FileManagerProvider`, `useFileManagerContext`, `useDialFileManagerTabs` |
|
|
23
|
+
| Enums | `DialFileManagerTabs`, `DialFileManagerActions`, `FileManagerColumnKey` |
|
|
24
|
+
| Column constants | `NAME_COLUMN`, `SIZE_COLUMN`, `UPDATED_AT_COLUMN` |
|
|
25
|
+
| Types | `FileManagerGridRow`, `GridOptions`, `ToolbarOptions`, `BulkActionsToolbarOptions`, `DialCopiedItem`, `DialDeletedItem`, `DialUploadFileItem`, `DialFileManagerActionsRef`, `DialFileAcceptType` |
|
|
26
|
+
| Package subpath | `@epam/ai-dial-ui-kit/file-manager` |
|
|
27
|
+
|
|
28
|
+
These stay in the kit: `DialFile`, `DialRootFolder`, `DialFileNodeType`,
|
|
29
|
+
`DialFilePermission`, `DialFileResourceType`, `DialItemType`,
|
|
30
|
+
`wrapInRootFolder` and `useEditableItem`, plus the 2.0 `FileIcon`, `FileName`,
|
|
31
|
+
`FolderName`, `SharedEntityIndicator` and `TransferQueue`. The 1.0
|
|
32
|
+
`DialFileName`, `DialFolderName`, `DialFileIcon` and
|
|
33
|
+
`DialSharedEntityIndicator` are removed in the same release — see
|
|
34
|
+
[unused-legacy-components-removal](unused-legacy-components-removal.md).
|
|
35
|
+
|
|
36
|
+
## Step-by-step migration
|
|
37
|
+
|
|
38
|
+
### 1. Find all usages
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
grep -rnE "ai-dial-ui-kit/file-manager|\b(DialFileManager|DialFoldersTree|DialDestinationFolderPopup|FileManagerProvider|useFileManagerContext|useDialFileManagerTabs|DialFileManagerTabs|DialFileManagerActions|FileManagerColumnKey|NAME_COLUMN|SIZE_COLUMN|UPDATED_AT_COLUMN|FileManagerGridRow|GridOptions|ToolbarOptions|BulkActionsToolbarOptions|DialCopiedItem|DialDeletedItem|DialUploadFileItem|DialFileManagerActionsRef|DialFileAcceptType)\b" src/
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 2. Install the standalone package
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install @epam/ai-dial-react-file-manager
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 3. Move the imports
|
|
51
|
+
|
|
52
|
+
Import the removed names from the standalone package. The kit's other names
|
|
53
|
+
keep their kit import.
|
|
54
|
+
|
|
55
|
+
**Before:**
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
import {
|
|
59
|
+
DialFileManager,
|
|
60
|
+
DialFileManagerTabs,
|
|
61
|
+
DialFileName,
|
|
62
|
+
} from '@epam/ai-dial-ui-kit';
|
|
63
|
+
// or
|
|
64
|
+
import { DialFileManager } from '@epam/ai-dial-ui-kit/file-manager';
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**After:**
|
|
68
|
+
|
|
69
|
+
```tsx
|
|
70
|
+
import {
|
|
71
|
+
DialFileManager,
|
|
72
|
+
DialFileManagerTabs,
|
|
73
|
+
} from '@epam/ai-dial-react-file-manager';
|
|
74
|
+
import { DialFileName } from '@epam/ai-dial-ui-kit';
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The standalone package has its own props and releases, so check its
|
|
78
|
+
documentation for any prop that changed since the copy in the kit was forked.
|
|
79
|
+
|
|
80
|
+
### 4. Verify
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm run typecheck
|
|
84
|
+
npm run test
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Notes
|
|
88
|
+
|
|
89
|
+
- The SVG icons used only by the old file manager (`add-child`, `add-sibling`,
|
|
90
|
+
`copy-to`, `move-to`, `unshare`) are removed as well. They were never
|
|
91
|
+
exported, so only a deep import into `dist/` would notice.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Migrating to the Tailwind CSS v4 stylesheet — v0.15.x → v0.16.0
|
|
2
|
+
|
|
3
|
+
## Why this changed
|
|
4
|
+
|
|
5
|
+
The kit's `styles.css` is now built with Tailwind CSS v4 instead of v3. `tailwind-merge`, which the components use to merge class names, already targets v4 class names, so the kit had been merging against one Tailwind version while building with another.
|
|
6
|
+
|
|
7
|
+
Class names, props and theme variables are unchanged. What changed is how the shipped stylesheet takes part in your page's cascade and what its preflight resets. Typecheck cannot detect either change, so they show up only when the page is rendered.
|
|
8
|
+
|
|
9
|
+
## What changed
|
|
10
|
+
|
|
11
|
+
| Area | v0.15.x (Tailwind v3) | v0.16.0 (Tailwind v4) |
|
|
12
|
+
| ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | ------------------------------------------- |
|
|
13
|
+
| Variant utilities (`hover:`, `focus-visible:`, `disabled:`, `placeholder:`, `before:`, `mobile:`, `md:` …) | Unlayered, after `@layer ui` | Inside `@layer ui` |
|
|
14
|
+
| Base utilities (`flex`, `bg-*`, `text-*` …) | `@layer ui` | `@layer ui` (now `ui.utilities`) |
|
|
15
|
+
| Kit classes (`dial-*`, `dial-kit-*`) | Unlayered | Unlayered |
|
|
16
|
+
| `hover:` utilities | Applied on every device | Applied only where `(hover: hover)` matches |
|
|
17
|
+
| `input`, `select`, `textarea` | Browser default background and radius | Transparent background, no radius |
|
|
18
|
+
| `margin` / `padding` reset | Listed elements (`h1`–`h6`, `p`, `ul`, `button` …) | Every element |
|
|
19
|
+
| `[hidden]` | `display: none` | `display: none !important` |
|
|
20
|
+
| Placeholder colour, pointer cursor on buttons, centred `<dialog>` | v3 values | Unchanged: the kit keeps the v3 values |
|
|
21
|
+
| Tailwind theme variables on `:root` | None | None: values are written into the utilities |
|
|
22
|
+
| Browser baseline | Native CSS nesting (Safari 16.5+, Chrome 112+) | Safari 16.4+, Chrome 111+, Firefox 128+ |
|
|
23
|
+
|
|
24
|
+
### Variant utilities and your own CSS
|
|
25
|
+
|
|
26
|
+
The kit puts Tailwind in a cascade layer named `ui` so that unlayered CSS (your app's styles and the kit's own `dial-*` classes) always beats a plain utility. Tailwind v3 placed variant utilities outside that layer. They competed with your unlayered CSS on specificity and source order, and often won, because `.hover\:bg-x:hover` is more specific than a single class.
|
|
27
|
+
|
|
28
|
+
In v4 they are inside `@layer ui`, so any unlayered rule in your app that sets the same property now wins. For example, take a kit element with a `hover:` background. If your stylesheet also sets that element's `background-color`, the hover state disappears.
|
|
29
|
+
|
|
30
|
+
## Step-by-step migration
|
|
31
|
+
|
|
32
|
+
### 1. Find CSS that targets kit elements
|
|
33
|
+
|
|
34
|
+
Look for unlayered rules in your app that style elements the kit renders, especially rules that set colour, background, border or outline:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
grep -rnE "\.dial-|\[class\*=\"dial-|\.ag-" src/ --include=*.css --include=*.scss
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Where such a rule should give way to the kit's interactive states, put it in a layer that comes before `ui`, or scope it to the resting state:
|
|
41
|
+
|
|
42
|
+
**Before:**
|
|
43
|
+
|
|
44
|
+
```css
|
|
45
|
+
.my-toolbar .dial-kit-primary-ghost-button {
|
|
46
|
+
background-color: var(--my-toolbar-bg);
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**After:**
|
|
51
|
+
|
|
52
|
+
```css
|
|
53
|
+
@layer app {
|
|
54
|
+
.my-toolbar .dial-kit-primary-ghost-button {
|
|
55
|
+
background-color: var(--my-toolbar-bg);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Declare the order once, before the kit's stylesheet is loaded: `@layer app, ui;`.
|
|
61
|
+
|
|
62
|
+
### 2. Restore form-control defaults if your page relied on them
|
|
63
|
+
|
|
64
|
+
The kit's preflight reaches every element on the page, not only the kit's own. If your own `input`, `select` or `textarea` elements carry no background or radius class and should keep the browser's look, restore it in your stylesheet:
|
|
65
|
+
|
|
66
|
+
```css
|
|
67
|
+
input,
|
|
68
|
+
select,
|
|
69
|
+
textarea {
|
|
70
|
+
background-color: Field;
|
|
71
|
+
border-radius: revert;
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The same applies to elements that relied on the browser's default `margin` or `padding` (`td`, `option`): set them explicitly.
|
|
76
|
+
|
|
77
|
+
### 3. Check `hidden` elements
|
|
78
|
+
|
|
79
|
+
An element with the `hidden` attribute is now hidden even when it also has a display utility such as `flex`. If you toggle visibility with both, drop the attribute or the utility.
|
|
80
|
+
|
|
81
|
+
### 4. Check touch devices
|
|
82
|
+
|
|
83
|
+
`hover:` utilities no longer apply on devices without a hovering pointer, so a state that a tap used to trigger as a "sticky hover" no longer shows. Use `active:` or `focus-visible:` where a touch state is intended.
|
|
84
|
+
|
|
85
|
+
### 5. Verify
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
npm run typecheck
|
|
89
|
+
npm run test
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Then open the screens that use the kit in a desktop browser and on a touch device, and check hover, focus and disabled states, form fields and popups.
|
|
93
|
+
|
|
94
|
+
## Notes
|
|
95
|
+
|
|
96
|
+
- Hosts that build with Tailwind v4 themselves keep their own theme. The kit writes theme values directly into its utilities and declares no `--font-sans`, `--spacing`, `--radius-*` or `--color-*` on `:root`, so it cannot override yours.
|
|
97
|
+
- The kit's stylesheet registers Tailwind v4's `--tw-*` custom properties (`@property`) and declares a top-level `@layer properties`. A host on Tailwind v4 declares the same names with the same definitions.
|
|
98
|
+
- `@apply dial-…` against the kit's classes was not supported before and is still not supported. Tailwind v4's `@apply` accepts only utilities.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Migrating off the removed 1.0 components — v0.15 → v0.16
|
|
2
|
+
|
|
3
|
+
## Why this changed
|
|
4
|
+
|
|
5
|
+
Most 1.0 `Dial*` components have had a 2.0 replacement for several releases,
|
|
6
|
+
and the applications built on the kit — DIAL Chat and the DIAL Admin frontend —
|
|
7
|
+
no longer use the 1.0 versions listed below. Keeping them meant two components
|
|
8
|
+
for one control in the public API, two sets of tests and stories to maintain,
|
|
9
|
+
and Monaco shipped as an optional peer only for the 1.0 JSON editor. They are
|
|
10
|
+
removed. The 1.0 components that are still in use — `DialTabs`, `DialSteps`,
|
|
11
|
+
`DialLabelledText`, `DialLoadFileArea`, the `DialAnalytics*` set and the
|
|
12
|
+
building blocks they render — stay.
|
|
13
|
+
|
|
14
|
+
## What changed
|
|
15
|
+
|
|
16
|
+
### Components and their replacements
|
|
17
|
+
|
|
18
|
+
Every name in the first column is gone from `@epam/ai-dial-ui-kit`. Use the 2.0
|
|
19
|
+
component in the second column, imported from the same package. The 2.0
|
|
20
|
+
components have their own props, so this is a rewrite of the call site, not a
|
|
21
|
+
rename — check each one's story for its API.
|
|
22
|
+
|
|
23
|
+
| Removed | Use instead |
|
|
24
|
+
| ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
25
|
+
| `DialAutocompleteInputValue` | `AutocompleteTagInput` |
|
|
26
|
+
| `DialButtonDropdown` | `ButtonDropdown` |
|
|
27
|
+
| `DialCheckbox` | `Checkbox` |
|
|
28
|
+
| `DialCollapsibleSidebar` | `CollapsibleSidebar` |
|
|
29
|
+
| `DialConfirmationPopup` | `ConfirmationPopup` |
|
|
30
|
+
| `DialDropdownIcon`, `DialDropdownIconProps` | `Dropdown` with an `IconButton` trigger |
|
|
31
|
+
| `DialFileIcon`, `DialFileIconProps` | `FileIcon` |
|
|
32
|
+
| `DialFileName` | `FileName` |
|
|
33
|
+
| `DialFolderName` | `FolderName` |
|
|
34
|
+
| `DialFormItem`, `FormItemOrientation` | The 2.0 field's own `labelProps`, `caption` and `error` |
|
|
35
|
+
| `DialFormPopup`, `DialPopup` | `Popup` |
|
|
36
|
+
| `DialGrid`, `DialGridProps` | `Grid`, `GridProps` |
|
|
37
|
+
| `DialDateCellRenderer`, `DialDateCellRendererProps`, `DialGridDateValue` | `DateCellRenderer`, `DateCellRendererProps`, `DateValue` |
|
|
38
|
+
| `DEFAULT_GRID_DATE_FORMAT_OPTIONS`, `DEFAULT_GRID_DATE_LOCALE`, `convertGridDateToDate` | `DEFAULT_DATE_FORMAT_OPTIONS`, `DEFAULT_DATE_LOCALE`, `convertToDate` |
|
|
39
|
+
| `LazyDialMarkdownEditor`, `LazyDialMarkdownEditorContainer`, `DialMarkdownEditorContainerProps` | `LazyMarkdownEditor`, `MarkdownEditorProps` — there is no JSON mode |
|
|
40
|
+
| `DialNotification`, `DialNotificationProps` | `Notification` |
|
|
41
|
+
| `DialNumberInput` | `NumberInput` |
|
|
42
|
+
| `DialPasswordInput` | `PasswordInput` |
|
|
43
|
+
| `DialRadioButton` | `Radio` |
|
|
44
|
+
| `DialRadioGroup` | `RadioGroup` |
|
|
45
|
+
| `DialRadioGroupPopupField` | `RadioGroupPopupField` |
|
|
46
|
+
| `DialResizableContainer`, `DialConditionalResizableContainer` | `ResizableContainer` |
|
|
47
|
+
| `DialSchemaRenderer`, `DialSchemaRendererProps` | `SchemaRenderer`, `SchemaRendererProps` |
|
|
48
|
+
| `DialSearch`, `DialSearchProps` | `Search` |
|
|
49
|
+
| `DialSegmentedControl`, `DialSegmentedControlProps`, `SegmentedControlOption` | `SegmentedControl` |
|
|
50
|
+
| `DialSelect`, `DialSelectField`, `SelectSize`, `SelectVariant` | `Select` |
|
|
51
|
+
| `DialSharedEntityIndicator` | `SharedEntityIndicator` |
|
|
52
|
+
| `DialSlider`, `DialSliderProps` | `Slider` |
|
|
53
|
+
| `DialSwitch` | `Switch` |
|
|
54
|
+
| `DialTagInput` | `TagInput` |
|
|
55
|
+
| `DialTextarea` | `Textarea` |
|
|
56
|
+
| `LazyDialJsonEditor`, `DialDraggableItem`, `DialInputPopup`, `DialPagination`, `DialPaginationProps` | No replacement in the kit |
|
|
57
|
+
|
|
58
|
+
The schema types keep their names and import path: `JsonSchema`,
|
|
59
|
+
`JsonSchemaDef`, `ValidationError`, `SchemaRendererTexts`,
|
|
60
|
+
`SchemaRendererVariant`, `SchemaDisplayMode`, `SchemaOrientation` and
|
|
61
|
+
`JsonSchemaType` are still exported from `@epam/ai-dial-ui-kit`.
|
|
62
|
+
|
|
63
|
+
### Subpaths
|
|
64
|
+
|
|
65
|
+
| Subpath | Removed |
|
|
66
|
+
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
67
|
+
| `@epam/ai-dial-ui-kit/grid` | `DialGrid`, `DialGridProps`, `DialDateCellRenderer`, `DialDateCellRendererProps`, `DialGridDateValue`, `DEFAULT_GRID_DATE_*`, `convertGridDateToDate` |
|
|
68
|
+
| `@epam/ai-dial-ui-kit/editors` | `LazyDialJsonEditor`, `LazyDialMarkdownEditor`, `LazyDialMarkdownEditorContainer`, `DialMarkdownEditorContainerProps` |
|
|
69
|
+
|
|
70
|
+
### Peer dependencies
|
|
71
|
+
|
|
72
|
+
`monaco-editor` and `@monaco-editor/react` are no longer optional peers: only
|
|
73
|
+
the removed JSON editor used them.
|
|
74
|
+
|
|
75
|
+
### Public class names and stylesheet
|
|
76
|
+
|
|
77
|
+
- `DIAL_KIT_CLASS.dropdownIcon` (`dial-kit-dropdown-icon`) and
|
|
78
|
+
`DIAL_KIT_CLASS.dropdownIconCaret` (`dial-kit-dropdown-icon-caret`) are
|
|
79
|
+
removed with `DialDropdownIcon`.
|
|
80
|
+
- `styles.css` no longer contains the rules only the removed components used:
|
|
81
|
+
`dial-popup`, `dial-sm-popup`, `dial-md-popup`, `dial-lg-popup`,
|
|
82
|
+
`dial-danger-popup`, `dial-input-radio`, `dial-pagination-dot` and
|
|
83
|
+
`dial-textarea`.
|
|
84
|
+
|
|
85
|
+
## Step-by-step migration
|
|
86
|
+
|
|
87
|
+
### 1. Find all usages
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
grep -rnE "\b(DialAutocompleteInputValue|DialButtonDropdown|DialCheckbox|DialCollapsibleSidebar|DialConfirmationPopup|DialDropdownIcon(Props)?|DialFileIcon(Props)?|DialFileName|DialFolderName|DialFormItem|FormItemOrientation|DialFormPopup|DialPopup|DialGrid(Props|DateValue)?|DialDateCellRenderer(Props)?|DEFAULT_GRID_DATE_FORMAT_OPTIONS|DEFAULT_GRID_DATE_LOCALE|convertGridDateToDate|LazyDialJsonEditor|LazyDialMarkdownEditor(Container)?|DialMarkdownEditorContainerProps|DialNotification(Props)?|DialNumberInput|DialPasswordInput|DialRadioButton|DialRadioGroup(PopupField)?|DialResizableContainer|DialConditionalResizableContainer|DialSchemaRenderer(Props)?|DialSearch(Props)?|DialSegmentedControl(Props)?|SegmentedControlOption|DialSelect|DialSelectField|SelectSize|SelectVariant|DialSharedEntityIndicator|DialSlider(Props)?|DialSwitch|DialTagInput|DialTextarea|DialDraggableItem|DialInputPopup|DialPagination(Props)?)\b|dial-kit-dropdown-icon|dial-(sm-|md-|lg-|danger-)?popup\b|dial-input-radio|dial-pagination-dot|dial-textarea\b" src/
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 2. Replace each component with its 2.0 counterpart
|
|
94
|
+
|
|
95
|
+
**Before:**
|
|
96
|
+
|
|
97
|
+
```tsx
|
|
98
|
+
import { DialSelect, DialSwitch, DialPopup } from '@epam/ai-dial-ui-kit';
|
|
99
|
+
import { DialGrid } from '@epam/ai-dial-ui-kit/grid';
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**After:**
|
|
103
|
+
|
|
104
|
+
```tsx
|
|
105
|
+
import { Popup, Select, Switch } from '@epam/ai-dial-ui-kit';
|
|
106
|
+
import { Grid } from '@epam/ai-dial-ui-kit/grid';
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Then adjust the props at each call site to the 2.0 component's API — its
|
|
110
|
+
Storybook story lists them.
|
|
111
|
+
|
|
112
|
+
### 3. Drop Monaco if you installed it only for the kit
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
npm uninstall monaco-editor @monaco-editor/react
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### 4. Verify
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
npm run typecheck
|
|
122
|
+
npm run test
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Notes
|
|
126
|
+
|
|
127
|
+
- If your own markup used one of the removed `dial-*` classes from
|
|
128
|
+
`styles.css`, move its declarations into your own stylesheet.
|
|
@@ -30,6 +30,11 @@ migration-guides/
|
|
|
30
30
|
| 0.14.0 | [shadow-token-per-step-rename](0.14.0/shadow-token-per-step-rename.md) | Shadow scale rebuilt per step: `sm` moves to the side panels, controls keep their shadow under `dial-kit-control-shadow` |
|
|
31
31
|
| 0.15.0 | [legacy-theme-variable-fallbacks-removal](0.15.0/legacy-theme-variable-fallbacks-removal.md) | Old theme variable names (`--bg-control-neutral-hover`, `--stroke-focus-black`, `--bg-control-accent-gradient-*`) dropped from the fallback chains |
|
|
32
32
|
| 0.15.0 | [slider-redesign](0.15.0/slider-redesign.md) | `Slider` redrawn: 12px accent thumb with a hover/focus halo, accent-tint track; adds `showTooltip`, `showTicks`, `leftContent`, `rightContent` |
|
|
33
|
+
| 0.16.0 | [tailwind-v4-stylesheet](0.16.0/tailwind-v4-stylesheet.md) | `styles.css` built with Tailwind v4: variant utilities move into `@layer ui`, v4 preflight, new browser baseline |
|
|
34
|
+
| 0.16.0 | [legacy-file-manager-removal](0.16.0/legacy-file-manager-removal.md) | Legacy `DialFileManager`, its helpers and the `./file-manager` subpath removed; import them from `@epam/ai-dial-react-file-manager` |
|
|
35
|
+
| 0.16.0 | [caption-text-no-alert-role](0.16.0/caption-text-no-alert-role.md) | `CaptionText` / `ErrorText` drop `role="alert"`; 2.0 fields link their error and caption through `aria-describedby` |
|
|
36
|
+
| 0.16.0 | [legacy-analytics-and-steps-removal](0.16.0/legacy-analytics-and-steps-removal.md) | Legacy `DialAnalytics*` components and 1.0 `DialSteps` removed; use the 2.0 `Analytics*` components and `Steps` |
|
|
37
|
+
| 0.16.0 | [unused-legacy-components-removal](0.16.0/unused-legacy-components-removal.md) | 34 unused 1.0 components (`DialSelect`, `DialPopup`, `DialGrid`, `LazyDialJsonEditor` …) and `DialSchemaRenderer` removed in favour of their 2.0 counterparts; Monaco is no longer a peer |
|
|
33
38
|
|
|
34
39
|
---
|
|
35
40
|
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
1
|
+
function n(r, g, a) {
|
|
2
|
+
const t = a.getRegistry(), e = t.addTarget(r, g);
|
|
3
3
|
return [
|
|
4
|
-
|
|
5
|
-
() =>
|
|
6
|
-
];
|
|
7
|
-
}
|
|
8
|
-
function c(t, o, g) {
|
|
9
|
-
const e = g.getRegistry(), r = e.addSource(t, o);
|
|
10
|
-
return [
|
|
11
|
-
r,
|
|
12
|
-
() => e.removeSource(r)
|
|
4
|
+
e,
|
|
5
|
+
() => t.removeTarget(e)
|
|
13
6
|
];
|
|
14
7
|
}
|
|
15
8
|
export {
|
|
16
|
-
|
|
17
|
-
s as registerTarget
|
|
9
|
+
n as registerTarget
|
|
18
10
|
};
|
|
@@ -5,4 +5,4 @@ export declare const dropdownItemDisabledClassName = "opacity-75 !cursor-not-all
|
|
|
5
5
|
export declare const dropdownItemDangerClassName = "text-error";
|
|
6
6
|
export declare const dropdownDividerClassName = "my-1 border-t border-hover border-secondary";
|
|
7
7
|
export declare const dropdownGap = 4;
|
|
8
|
-
export declare const submenuCaretIcon: import(
|
|
8
|
+
export declare const submenuCaretIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { AnalyticsBarColorStop } from '
|
|
3
|
-
export interface
|
|
2
|
+
import { AnalyticsBarColorStop } from '../../../../models/analytics';
|
|
3
|
+
export interface AnalyticsBarProps {
|
|
4
4
|
/**
|
|
5
5
|
* Current value used to size and color the bar. Pass `null` when there is no
|
|
6
6
|
* data (em dash, no progress bar). Omit it when `error` is set.
|
|
@@ -48,7 +48,7 @@ export interface DialAnalyticsBarProps {
|
|
|
48
48
|
* A compact analytics meter: a horizontal bar whose fill width and color reflect a
|
|
49
49
|
* value relative to `maxValue`, with an optional title on the left and value on the right.
|
|
50
50
|
* aliases: MetricBar|Meter|ScoreBar
|
|
51
|
-
* Design system
|
|
51
|
+
* Design system 2.0
|
|
52
52
|
*
|
|
53
53
|
* The fill color is resolved from `colorMap` based on the normalized ratio
|
|
54
54
|
* (`value / maxValue`), so the bar shifts hue as the value grows. An empty bar
|
|
@@ -57,12 +57,12 @@ export interface DialAnalyticsBarProps {
|
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* ```tsx
|
|
60
|
-
* <
|
|
60
|
+
* <AnalyticsBar title="Relevance" value={0.82} valueLabel="82%" />
|
|
61
61
|
* ```
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```tsx
|
|
65
|
-
* <
|
|
65
|
+
* <AnalyticsBar
|
|
66
66
|
* title="Score"
|
|
67
67
|
* value={640}
|
|
68
68
|
* maxValue={1000}
|
|
@@ -83,4 +83,4 @@ export interface DialAnalyticsBarProps {
|
|
|
83
83
|
* @param [inline] - Renders the title and bar on a single row (50% / 50%).
|
|
84
84
|
* @param [ariaLabel] - Accessible label for the bar.
|
|
85
85
|
*/
|
|
86
|
-
export declare const
|
|
86
|
+
export declare const AnalyticsBar: FC<AnalyticsBarProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsBarColorStop } from '
|
|
1
|
+
import { AnalyticsBarColorStop } from '../../../../models/analytics';
|
|
2
2
|
/**
|
|
3
3
|
* Default color map for {@link DialAnalyticsBar}, expressed as ratios (value / maxValue).
|
|
4
4
|
* A value of `0` leaves the bar empty (track shows through); a value at the maximum
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { AnalyticsBarColorStop } from '
|
|
3
|
-
export interface
|
|
2
|
+
import { AnalyticsBarColorStop } from '../../../../models/analytics';
|
|
3
|
+
export interface AnalyticsBarGroupProps {
|
|
4
4
|
/** Title passed to the accordion header. */
|
|
5
5
|
title: ReactNode;
|
|
6
6
|
/** Tooltip shown when hovering the accordion header title. */
|
|
@@ -67,15 +67,15 @@ export interface DialAnalyticsBarGroupProps {
|
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* A collapsible group of analytics bars built from a key/value map. Wraps
|
|
70
|
-
* {@link
|
|
71
|
-
* is shown as the header description, and each entry renders a {@link
|
|
70
|
+
* {@link Accordion}: the `title` is shown in the header, the number of entries
|
|
71
|
+
* is shown as the header description, and each entry renders a {@link AnalyticsBar}
|
|
72
72
|
* with the key as its title and the value as its value.
|
|
73
73
|
* aliases: MetricBarGroup|BarList|NumericResults
|
|
74
|
-
* Design system
|
|
74
|
+
* Design system 2.0
|
|
75
75
|
*
|
|
76
76
|
* @example
|
|
77
77
|
* ```tsx
|
|
78
|
-
* <
|
|
78
|
+
* <AnalyticsBarGroup
|
|
79
79
|
* title="Relevance"
|
|
80
80
|
* data={{ accuracy: 0.82, recall: 0.64, precision: 0.91 }}
|
|
81
81
|
* />
|
|
@@ -100,4 +100,4 @@ export interface DialAnalyticsBarGroupProps {
|
|
|
100
100
|
* @param [barDescriptions] - Map of bar key to tooltip content. Hovering each bar shows its description.
|
|
101
101
|
* @param [className] - Additional CSS classes for the accordion container.
|
|
102
102
|
*/
|
|
103
|
-
export declare const
|
|
103
|
+
export declare const AnalyticsBarGroup: FC<AnalyticsBarGroupProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { AnalyticsCardCompareItem } from '
|
|
3
|
-
import { AnalyticsCardVariant } from '
|
|
4
|
-
export interface
|
|
2
|
+
import { AnalyticsCardCompareItem } from '../../../../models/analytics';
|
|
3
|
+
import { AnalyticsCardVariant } from '../../../../types/analytics';
|
|
4
|
+
export interface AnalyticsCardProps {
|
|
5
5
|
title: ReactNode;
|
|
6
6
|
value?: ReactNode;
|
|
7
7
|
description?: ReactNode;
|
|
@@ -41,7 +41,7 @@ export interface DialAnalyticsCardProps {
|
|
|
41
41
|
* A simple analytics summary card that displays a single metric as a title,
|
|
42
42
|
* a prominent value, and an optional description.
|
|
43
43
|
* aliases: MetricCard|StatCard|KpiCard
|
|
44
|
-
* Design system
|
|
44
|
+
* Design system 2.0
|
|
45
45
|
*
|
|
46
46
|
* Two visual variants are available via the {@link AnalyticsCardVariant} enum:
|
|
47
47
|
* - `Default` — `bg-layer-3`, large `dial-display2-text` value, supports a description.
|
|
@@ -55,7 +55,7 @@ export interface DialAnalyticsCardProps {
|
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* ```tsx
|
|
58
|
-
* <
|
|
58
|
+
* <AnalyticsCard
|
|
59
59
|
* title="Total requests"
|
|
60
60
|
* value="12,480"
|
|
61
61
|
* description="+12% vs last week"
|
|
@@ -64,7 +64,7 @@ export interface DialAnalyticsCardProps {
|
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* ```tsx
|
|
67
|
-
* <
|
|
67
|
+
* <AnalyticsCard
|
|
68
68
|
* title="Response time"
|
|
69
69
|
* delta={9}
|
|
70
70
|
* deltaUnit="s"
|
|
@@ -88,4 +88,4 @@ export interface DialAnalyticsCardProps {
|
|
|
88
88
|
* @param [deltaUnit] - Suffix appended to the formatted delta (e.g. `"s"` → `+9s`).
|
|
89
89
|
* @param [compareValues] - Enables compare mode with two side-by-side metrics.
|
|
90
90
|
*/
|
|
91
|
-
export declare const
|
|
91
|
+
export declare const AnalyticsCard: FC<AnalyticsCardProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { AnalyticsBarColorStop } from '
|
|
3
|
-
export interface
|
|
2
|
+
import { AnalyticsBarColorStop } from '../../../../models/analytics';
|
|
3
|
+
export interface AnalyticsHistogramProps {
|
|
4
4
|
/** Title rendered above the histogram. */
|
|
5
5
|
title: ReactNode;
|
|
6
6
|
/** Values to distribute across the columns. */
|
|
@@ -34,11 +34,11 @@ export interface DialAnalyticsHistogramProps {
|
|
|
34
34
|
* along the bottom. Hovering a column reveals a tooltip with its share of the
|
|
35
35
|
* total.
|
|
36
36
|
* aliases: Distribution|ColumnChart|FrequencyChart
|
|
37
|
-
* Design system
|
|
37
|
+
* Design system 2.0
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* ```tsx
|
|
41
|
-
* <
|
|
41
|
+
* <AnalyticsHistogram
|
|
42
42
|
* title="Score distribution"
|
|
43
43
|
* values={[0.1, 0.15, 0.4, 0.42, 0.43, 0.9, 1]}
|
|
44
44
|
* valueTitle="responses"
|
|
@@ -56,4 +56,4 @@ export interface DialAnalyticsHistogramProps {
|
|
|
56
56
|
* @param [valueSetLabel] - Label for the primary values set (compare mode tooltip).
|
|
57
57
|
* @param [compareValueSetLabel] - Label for the compare values set (compare mode tooltip).
|
|
58
58
|
*/
|
|
59
|
-
export declare const
|
|
59
|
+
export declare const AnalyticsHistogram: FC<AnalyticsHistogramProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticsBarColorStop } from '
|
|
1
|
+
import { AnalyticsBarColorStop } from '../../../../models/analytics';
|
|
2
2
|
/** Fill color for the zero-bucket column (values of exactly `0`). */
|
|
3
3
|
export declare const ZERO_BUCKET_COLOR = "#FF4E50";
|
|
4
4
|
export interface AnalyticsHistogramColumn {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { AnalyticsCard } from './Card/Card';
|
|
2
|
+
export type { AnalyticsCardProps } from './Card/Card';
|
|
3
|
+
export { AnalyticsCardVariant } from '../../../types/analytics';
|
|
4
|
+
export { AnalyticsBar } from './Bar/Bar';
|
|
5
|
+
export type { AnalyticsBarProps } from './Bar/Bar';
|
|
6
|
+
export { DEFAULT_ANALYTICS_BAR_COLOR_MAP } from './Bar/utils';
|
|
7
|
+
export type { AnalyticsBarColorStop, AnalyticsCardCompareItem, } from '../../../models/analytics';
|
|
8
|
+
export { AnalyticsBarGroup } from './BarGroup/BarGroup';
|
|
9
|
+
export type { AnalyticsBarGroupProps } from './BarGroup/BarGroup';
|
|
10
|
+
export { AnalyticsHistogram } from './Histogram/Histogram';
|
|
11
|
+
export type { AnalyticsHistogramProps } from './Histogram/Histogram';
|
|
@@ -21,6 +21,8 @@ export interface AvatarProps {
|
|
|
21
21
|
className?: string;
|
|
22
22
|
/** Type-scale class for the initials. When set, it replaces the font size derived from `size`. */
|
|
23
23
|
textClassName?: string;
|
|
24
|
+
/** Additional CSS classes applied only while the image is shown, e.g. a plate behind a transparent icon. */
|
|
25
|
+
imageClassName?: string;
|
|
24
26
|
/** Called when the image fails to load, after the avatar has switched to initials. */
|
|
25
27
|
onImageError?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
26
28
|
}
|
|
@@ -56,6 +58,7 @@ export interface AvatarProps {
|
|
|
56
58
|
* @param [color] - Explicit colour pair overriding the deterministic pick from `name`
|
|
57
59
|
* @param [className] - Additional CSS classes for the avatar
|
|
58
60
|
* @param [textClassName] - Type-scale class for the initials, replacing the size-derived font size
|
|
61
|
+
* @param [imageClassName] - Additional CSS classes applied only while the image is shown
|
|
59
62
|
* @param [onImageError] - Called when the image fails to load
|
|
60
63
|
*/
|
|
61
64
|
export declare const Avatar: FC<AvatarProps>;
|
|
@@ -29,7 +29,7 @@ export declare const currentSizeClassName: Record<BreadcrumbsSize, string>;
|
|
|
29
29
|
*/
|
|
30
30
|
export declare const segmentWidthClassName: Record<'first' | 'middle' | 'last', string>;
|
|
31
31
|
/** The box that draws a segment, around its icon and its label. */
|
|
32
|
-
export declare const segmentClassName = "flex min-w-0 flex-1 items-center gap-1 rounded-
|
|
32
|
+
export declare const segmentClassName = "flex min-w-0 flex-1 items-center gap-1 rounded-xs transition-colors";
|
|
33
33
|
/**
|
|
34
34
|
* A segment the user can follow. Secondary until hovered, then accent — the
|
|
35
35
|
* same pairing the kit's other inline links use.
|
|
@@ -49,7 +49,7 @@ export declare const separatorClassName = "inline-flex flex-none items-center le
|
|
|
49
49
|
* glyph to the 24×24 of WCAG 2.5.8; the enhanced 44×44 target would overhang
|
|
50
50
|
* the segments on either side of it (see the README exception table).
|
|
51
51
|
*/
|
|
52
|
-
export declare const overflowButtonClassName = "dial-kit-minimum-target flex shrink-0 items-center rounded-
|
|
52
|
+
export declare const overflowButtonClassName = "dial-kit-minimum-target flex shrink-0 items-center rounded-xs text-secondary transition-colors hover:text-accent focus-visible:outline focus-visible:outline-offset-2 focus-visible:outline-focus";
|
|
53
53
|
/**
|
|
54
54
|
* Smallest trail the collapse can produce: the root, the ellipsis and the
|
|
55
55
|
* current page. Below that there is nothing left to hide behind the ellipsis.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getButtonChevron: (isOpen: boolean) => import(
|
|
1
|
+
export declare const getButtonChevron: (isOpen: boolean) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -15,6 +15,12 @@ export interface CalendarProps {
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
invalid?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Ids of elements describing the field — typically an error rendered next
|
|
20
|
+
* to it. Lands on the focusable control: the masked input in `time` mode,
|
|
21
|
+
* the popover trigger otherwise.
|
|
22
|
+
*/
|
|
23
|
+
ariaDescribedBy?: string;
|
|
18
24
|
id?: string;
|
|
19
25
|
className?: string;
|
|
20
26
|
minDate?: Date;
|
|
@@ -24,10 +30,17 @@ export interface CalendarProps {
|
|
|
24
30
|
fieldClassName?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Shows the viewer's timezone (e.g. `(GMT+01:00) Europe/Berlin`, computed
|
|
27
|
-
* by `getTimezoneLabel`) at the trailing edge of the
|
|
33
|
+
* by `getTimezoneLabel`) at the trailing edge of the time fields — the
|
|
34
|
+
* `time` mode field and the `datetime` popover footer's field — naming
|
|
28
35
|
* the zone the entered time-of-day refers to.
|
|
29
36
|
*/
|
|
30
37
|
showTimezone?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* `time` mode only: shows a clock button at the field's trailing edge that
|
|
40
|
+
* opens an hour/minute list popover. The field stays typeable either way.
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
showTimePicker?: boolean;
|
|
31
44
|
}
|
|
32
45
|
/**
|
|
33
46
|
* A date/time picker supporting four selection modes.
|
|
@@ -57,12 +70,14 @@ export interface CalendarProps {
|
|
|
57
70
|
* @param [placeholder] - Placeholder shown when there is no value; defaults to a mode-appropriate string ("Select date", "Select date and time", "--:--" or "Select day")
|
|
58
71
|
* @param [disabled=false] - Disables the control
|
|
59
72
|
* @param [invalid=false] - Applies error styling
|
|
73
|
+
* @param [ariaDescribedBy] - Ids of elements describing the field (e.g. its error), set on the focusable control
|
|
60
74
|
* @param [id] - id applied to the control, linked to the label
|
|
61
75
|
* @param [className] - Additional CSS classes applied to the outer container
|
|
62
76
|
* @param [minDate] - Earliest selectable date (date/datetime modes)
|
|
63
77
|
* @param [maxDate] - Latest selectable date (date/datetime modes)
|
|
64
78
|
* @param [locale="en-GB"] - BCP 47 locale tag used to localize month/weekday names and date formatting
|
|
65
79
|
* @param [fieldClassName] - Additional classes merged onto the trigger field, overriding conflicting defaults
|
|
66
|
-
* @param [showTimezone=false] - Shows the viewer's timezone (e.g. `(GMT+01:00) Europe/Berlin`) at the trailing edge of the `time`
|
|
80
|
+
* @param [showTimezone=false] - Shows the viewer's timezone (e.g. `(GMT+01:00) Europe/Berlin`) at the trailing edge of the time fields (`time` mode and the `datetime` popover footer)
|
|
81
|
+
* @param [showTimePicker=true] - `time` mode only: shows a clock button that opens an hour/minute list popover next to the typeable field
|
|
67
82
|
*/
|
|
68
83
|
export declare const Calendar: FC<CalendarProps>;
|