@epam/ai-dial-ui-kit 0.16.0-dev.7 → 0.16.0-dev.70
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 +27 -12
- package/dist/CHANGELOG.md +119 -0
- package/dist/{DateCellRenderer-CbInykpW.cjs → DateCellRenderer-VFKHZI-J.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/New/Analytics/Bar/Bar.js +104 -0
- package/dist/components/New/Analytics/BarGroup/BarGroup.js +143 -0
- package/dist/components/New/Analytics/Card/Card.js +107 -0
- 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 +52 -51
- package/dist/components/New/Breadcrumbs/Breadcrumbs.js +65 -61
- package/dist/components/New/Breadcrumbs/constants.js +40 -21
- package/dist/components/New/Calendar/Calendar.js +338 -225
- package/dist/components/New/Calendar/TimePickerPanel.js +87 -0
- package/dist/components/New/Calendar/constants.js +26 -24
- 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 +20 -17
- package/dist/components/New/Dropdown/search.js +37 -0
- package/dist/components/New/EntityIdentity/EntityIdentity.js +62 -60
- package/dist/components/New/ErrorBoundary/ErrorBoundary.js +67 -0
- 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 +234 -202
- package/dist/components/New/Grid/components/GridEmptyState.js +13 -0
- package/dist/components/New/Grid/components/SelectionCell.js +35 -33
- 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/LoginScreen/LoginScreen.js +98 -0
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +40 -28
- 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 +217 -211
- package/dist/components/New/Select/constants.js +29 -38
- package/dist/components/New/SelectedEntityCard/SelectedEntityCard.js +86 -0
- 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/Spinner/Spinner.js +16 -11
- package/dist/components-manifest.json +3870 -6420
- package/dist/constants/public-class-names.js +36 -7
- package/dist/dial-ui-kit.cjs +4 -2
- package/dist/dial-ui-kit.js +391 -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 +1 -1
- package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
- package/dist/migration-guides/0.16.0/grid-empty-state-pattern.md +100 -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/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/{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 +14 -8
- 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/Breadcrumbs.d.ts +8 -5
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +17 -10
- package/dist/src/components/New/Calendar/Calendar.d.ts +49 -3
- package/dist/src/components/New/Calendar/TimePickerPanel.d.ts +15 -0
- package/dist/src/components/New/Calendar/constants.d.ts +2 -0
- 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 +6 -0
- 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/ErrorBoundary/ErrorBoundary.d.ts +78 -0
- package/dist/src/components/New/FileName/FileName.d.ts +11 -0
- 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 +49 -8
- package/dist/src/components/New/Grid/components/GridEmptyState.d.ts +21 -0
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +4 -1
- package/dist/src/components/New/Grid/constants.d.ts +2 -0
- 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/LoginScreen/LoginScreen.d.ts +63 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +8 -2
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +24 -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 +2 -2
- package/dist/src/components/New/Select/Select.d.ts +8 -0
- package/dist/src/components/New/Select/constants.d.ts +0 -1
- 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/TransferQueue/TransferQueue.d.ts +9 -5
- package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +1 -3
- package/dist/src/components/New/constants/icon.d.ts +2 -2
- package/dist/src/components/ProgressBar/ProgressBar.d.ts +23 -3
- package/dist/src/components/Spinner/Spinner.d.ts +27 -1
- package/dist/src/constants/public-class-names.d.ts +36 -7
- package/dist/src/index.d.ts +41 -83
- 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/breadcrumbs.d.ts +6 -0
- 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/types/breadcrumbs.js +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/package.json +10 -20
- package/dist/DateCellRenderer-BZvKj3rU.cjs +0 -1
- package/dist/IconButton-B1Hx0Y3y.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-DLPODjar.cjs +0 -1
- package/dist/Switch-DAaAOaIu.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/Card/Card.js +0 -87
- 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-aymbCxrD.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,63 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { FormSectionVariant } from '../../../types/form-section';
|
|
3
|
+
export type FormSectionHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
export interface FormSectionProps {
|
|
5
|
+
/** Heading of the section; also names the `section` landmark. */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/** Control at the end of the heading row — typically a small "Add" or "Change" button. */
|
|
8
|
+
action?: ReactNode;
|
|
9
|
+
/** Optional line under the heading saying what the section holds. */
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** Type scale of the heading and description. Defaults to `FormSectionVariant.Row`. */
|
|
12
|
+
variant?: FormSectionVariant;
|
|
13
|
+
/** Level of the heading element, to fit the page's outline. Defaults to `3`. */
|
|
14
|
+
headingLevel?: FormSectionHeadingLevel;
|
|
15
|
+
/** The section's fields or values. */
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
/** Additional CSS classes for the container. */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Additional CSS classes for the heading. */
|
|
20
|
+
titleClassName?: string;
|
|
21
|
+
/** Additional CSS classes for the description. */
|
|
22
|
+
descriptionClassName?: string;
|
|
23
|
+
/** Additional CSS classes for the content wrapper. */
|
|
24
|
+
contentClassName?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A titled section of a form or a builder column: a heading with an optional
|
|
28
|
+
* action at its end, an optional description and the section's content.
|
|
29
|
+
* aliases: SectionRow|FieldSection|SettingsSection|FormGroup|SectionHeader
|
|
30
|
+
* Design system 2.0
|
|
31
|
+
*
|
|
32
|
+
* The root is a `section` named by its heading, so each section is a region a
|
|
33
|
+
* screen reader can jump to. `headingLevel` picks the heading element so the
|
|
34
|
+
* section fits the outline of the page it is mounted in; the variant only sets
|
|
35
|
+
* the type scale. The action sits at the inline end of the heading row and
|
|
36
|
+
* never shrinks; the content is rendered as given, with no field styling of its
|
|
37
|
+
* own. For a collapsible group, use `Accordion`; for a single labelled control,
|
|
38
|
+
* the control's own `label`.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <FormSection
|
|
43
|
+
* title="Model"
|
|
44
|
+
* variant={FormSectionVariant.Caption}
|
|
45
|
+
* action={<GhostButton label="Change" onClick={openPicker} />}
|
|
46
|
+
* description="The model that answers in this application."
|
|
47
|
+
* >
|
|
48
|
+
* <SelectedEntityCard entityId={modelId} />
|
|
49
|
+
* </FormSection>
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param title - Heading of the section; also names the `section` landmark.
|
|
53
|
+
* @param [action] - Control at the end of the heading row.
|
|
54
|
+
* @param [description] - Optional line under the heading.
|
|
55
|
+
* @param [variant] - Type scale of the heading and description. Defaults to `FormSectionVariant.Row`.
|
|
56
|
+
* @param [headingLevel] - Level of the heading element. Defaults to `3`.
|
|
57
|
+
* @param [children] - The section's fields or values.
|
|
58
|
+
* @param [className] - Additional CSS classes for the container.
|
|
59
|
+
* @param [titleClassName] - Additional CSS classes for the heading.
|
|
60
|
+
* @param [descriptionClassName] - Additional CSS classes for the description.
|
|
61
|
+
* @param [contentClassName] - Additional CSS classes for the content wrapper.
|
|
62
|
+
*/
|
|
63
|
+
export declare const FormSection: FC<FormSectionProps>;
|
|
@@ -2,7 +2,7 @@ import { ColDef, GridApi, GridOptions } from 'ag-grid-community';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { DropdownItem } from '../../../models/dropdown';
|
|
4
4
|
import { GridSelectionMode } from '../../../models/selection-mode';
|
|
5
|
-
import { GridColorScheme } from '../../../types/grid';
|
|
5
|
+
import { GridAppearance, GridColorScheme } from '../../../types/grid';
|
|
6
6
|
/** Column id of the selection column this component prepends itself. */
|
|
7
7
|
export declare const GRID_SELECTION_COLUMN_ID = "dial-kit-grid-selection";
|
|
8
8
|
export interface GridProps<T extends object = Record<string, unknown>> {
|
|
@@ -34,12 +34,26 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
34
34
|
alternateOddRowColors?: boolean;
|
|
35
35
|
/** Placeholder of the column filter inputs. */
|
|
36
36
|
filterPlaceholder?: string;
|
|
37
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Illustration of both empty states. Defaults to the shared placeholder-list
|
|
39
|
+
* card of `NoDataContent`; leave it unset so every empty list looks the same.
|
|
40
|
+
*/
|
|
38
41
|
emptyStateIcon?: ReactNode;
|
|
39
|
-
/** Headline
|
|
42
|
+
/** Headline when there are no rows, as "No [entities] yet". */
|
|
40
43
|
emptyStateTitle?: string;
|
|
41
|
-
/** Secondary line
|
|
44
|
+
/** Secondary line when there are no rows, as "[Entities] will appear here once [condition]." */
|
|
42
45
|
emptyStateDescription?: string;
|
|
46
|
+
/** Way forward when there are no rows, such as a create button. */
|
|
47
|
+
emptyStateAction?: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Announces the no-rows message. Turn it on when the host filters `rowData`
|
|
50
|
+
* itself, so the grid is empty because of a search. Defaults to `false`.
|
|
51
|
+
*/
|
|
52
|
+
emptyStateLive?: boolean;
|
|
53
|
+
/** Headline when the column filters leave no rows, as "No [entities] found". */
|
|
54
|
+
filteredEmptyStateTitle?: string;
|
|
55
|
+
/** Secondary line when the column filters leave no rows. */
|
|
56
|
+
filteredEmptyStateDescription?: string;
|
|
43
57
|
/** Shows the loading overlay. Defaults to `false`. */
|
|
44
58
|
loading?: boolean;
|
|
45
59
|
/** Draws a border around the grid. Defaults to `true`. */
|
|
@@ -60,6 +74,11 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
60
74
|
* dark. Defaults to `light`, which leaves the current appearance unchanged.
|
|
61
75
|
*/
|
|
62
76
|
colorScheme?: GridColorScheme;
|
|
77
|
+
/**
|
|
78
|
+
* Visual treatment. `Chat` draws the borderless "Chat table" card and
|
|
79
|
+
* ignores `wrapperBorder`. Defaults to `GridAppearance.Default`.
|
|
80
|
+
*/
|
|
81
|
+
appearance?: GridAppearance;
|
|
63
82
|
}
|
|
64
83
|
/**
|
|
65
84
|
* A data grid built on ag-Grid, wired to the 2.0 tokens and controls.
|
|
@@ -70,6 +89,13 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
70
89
|
* columns sized to the available width, a row context menu, truncation
|
|
71
90
|
* tooltips, and an empty state.
|
|
72
91
|
*
|
|
92
|
+
* The empty state follows the Patterns 2.0 empty-state behaviour and has two
|
|
93
|
+
* forms. A grid with no rows says "No [entities] yet" and can offer an action;
|
|
94
|
+
* a grid whose column filters leave nothing says "No [entities] found" and is
|
|
95
|
+
* announced, since the user has just changed a filter. A host that filters
|
|
96
|
+
* `rowData` itself passes the "found" copy as `emptyStateTitle` and sets
|
|
97
|
+
* `emptyStateLive`.
|
|
98
|
+
*
|
|
73
99
|
* The selection column renders the 2.0 `Checkbox` and `Radio` instead of
|
|
74
100
|
* ag-Grid's own inputs, so selection looks and behaves like every other control
|
|
75
101
|
* in the kit and the select-all reaches the `mixed` state when the selection is
|
|
@@ -102,6 +128,16 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
102
128
|
* getContextMenuItems={(row) => [{ key: 'edit', label: 'Edit' }]}
|
|
103
129
|
* />
|
|
104
130
|
*
|
|
131
|
+
* // An empty grid with a way forward
|
|
132
|
+
* <Grid<Product>
|
|
133
|
+
* columnDefs={columns}
|
|
134
|
+
* rowData={[]}
|
|
135
|
+
* emptyStateTitle="No products yet"
|
|
136
|
+
* emptyStateDescription="Products will appear here once you add one."
|
|
137
|
+
* emptyStateAction={<OutlinedButton label="Add product" onClick={addProduct} />}
|
|
138
|
+
* filteredEmptyStateTitle="No products found"
|
|
139
|
+
* />
|
|
140
|
+
*
|
|
105
141
|
* // Dark native controls, including the date-filter calendar
|
|
106
142
|
* <Grid<Product> columnDefs={columns} rowData={products} colorScheme={GridColorScheme.Dark} />
|
|
107
143
|
* ```
|
|
@@ -120,9 +156,13 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
120
156
|
* @param [getRowId] - Extracts the unique id of a row. Defaults to its `id` field.
|
|
121
157
|
* @param [alternateOddRowColors=false] - Tints odd rows.
|
|
122
158
|
* @param [filterPlaceholder='Enter value'] - Placeholder of the column filter inputs.
|
|
123
|
-
* @param [emptyStateIcon] - Illustration of
|
|
124
|
-
* @param [emptyStateTitle='No
|
|
125
|
-
* @param [emptyStateDescription] - Secondary line
|
|
159
|
+
* @param [emptyStateIcon] - Illustration of both empty states. Defaults to the shared placeholder-list card.
|
|
160
|
+
* @param [emptyStateTitle='No items yet'] - Headline when there are no rows.
|
|
161
|
+
* @param [emptyStateDescription='Items will appear here once they are added.'] - Secondary line when there are no rows.
|
|
162
|
+
* @param [emptyStateAction] - Way forward when there are no rows.
|
|
163
|
+
* @param [emptyStateLive=false] - Announce the no-rows message; for a host that filters `rowData` itself.
|
|
164
|
+
* @param [filteredEmptyStateTitle='No items found'] - Headline when the column filters leave no rows.
|
|
165
|
+
* @param [filteredEmptyStateDescription='Try a different search term or check your filters.'] - Secondary line when the column filters leave no rows.
|
|
126
166
|
* @param [loading=false] - Shows the loading overlay.
|
|
127
167
|
* @param [wrapperBorder=true] - Draws a border around the grid.
|
|
128
168
|
* @param [withoutHeaderBorders=false] - Hides the vertical borders between header cells.
|
|
@@ -131,5 +171,6 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
131
171
|
* @param [selectRowLabel] - Accessible name of a row's selection control.
|
|
132
172
|
* @param [selectAllLabel='Select all rows'] - Accessible name of the select-all control.
|
|
133
173
|
* @param [colorScheme='light'] - AG Grid color scheme. `dark` paints native controls dark.
|
|
174
|
+
* @param [appearance='default'] - Visual treatment; `chat` draws the borderless "Chat table".
|
|
134
175
|
*/
|
|
135
|
-
export declare const Grid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, selectRowLabel, selectAllLabel, colorScheme, }: GridProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
176
|
+
export declare const Grid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, emptyStateAction, emptyStateLive, filteredEmptyStateTitle, filteredEmptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, selectRowLabel, selectAllLabel, colorScheme, appearance, }: GridProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IOverlayParams, OverlaySelectorFunc } from 'ag-grid-community';
|
|
2
|
+
import { NoDataContentProps } from '../../NoDataContent/NoDataContent';
|
|
3
|
+
/** What the grid shows for each of its two empty states. */
|
|
4
|
+
export interface GridEmptyStateParams {
|
|
5
|
+
/** The grid has no rows at all. */
|
|
6
|
+
empty: NoDataContentProps;
|
|
7
|
+
/** The grid has rows, but its column filters leave none of them. */
|
|
8
|
+
filtered: NoDataContentProps;
|
|
9
|
+
}
|
|
10
|
+
export type GridEmptyStateProps = IOverlayParams & GridEmptyStateParams;
|
|
11
|
+
/**
|
|
12
|
+
* The grid's no-rows and no-matching-rows overlays, both drawn with
|
|
13
|
+
* {@link NoDataContent} so an empty grid looks like every other empty list.
|
|
14
|
+
*/
|
|
15
|
+
export declare const GridEmptyState: ({ overlayType, empty, filtered, }: GridEmptyStateProps) => import('react/jsx-runtime').JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* Hands the two empty overlays to {@link GridEmptyState} and leaves the rest —
|
|
18
|
+
* loading, exporting — to ag-Grid. The selector is read once, so what the
|
|
19
|
+
* overlay shows travels in `overlayComponentParams`, which ag-Grid refreshes.
|
|
20
|
+
*/
|
|
21
|
+
export declare const selectGridEmptyStateOverlay: OverlaySelectorFunc;
|
|
@@ -17,5 +17,8 @@ export interface SelectionCellProps<T> {
|
|
|
17
17
|
* The row node is the source of truth: the control subscribes to its
|
|
18
18
|
* `rowSelected` event, so a selection made anywhere — another cell, the header,
|
|
19
19
|
* or the `selectedRowIds` prop — is reflected here without refreshing the cell.
|
|
20
|
+
* It also follows the node's `selectable` flag, so a row a consumer's
|
|
21
|
+
* `rowSelection.isRowSelectable` rejects is drawn disabled rather than as a
|
|
22
|
+
* live control that ag-Grid silently refuses to select.
|
|
20
23
|
*/
|
|
21
|
-
export declare const SelectionCell: <T>({ params, mode, label, radioName, rowId, disabled, }: SelectionCellProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
24
|
+
export declare const SelectionCell: <T>({ params, mode, label, radioName, rowId, disabled: isDisabledRow, }: SelectionCellProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export declare const GRID_ROOT_CLASS = "dial-kit-grid";
|
|
3
3
|
/** Present only while a selection column is rendered. Drives its reveal. */
|
|
4
4
|
export declare const GRID_WITH_SELECTION_CLASS = "dial-kit-grid-with-selection";
|
|
5
|
+
/** Present on `GridAppearance.Chat`: the "Chat table" card, dividers and rows. */
|
|
6
|
+
export declare const GRID_CHAT_CLASS = "dial-kit-grid-chat";
|
|
5
7
|
export declare const GRID_WITHOUT_HEADER_BORDERS_CLASS = "dial-kit-grid-without-header-borders";
|
|
6
8
|
/** Cell of the selection column: faded out until the row is hovered. */
|
|
7
9
|
export declare const GRID_ROW_SELECT_CLASS = "dial-kit-grid-row-select";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface LabelledTextProps {
|
|
3
|
+
/** Small caption above the value, naming it. */
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/** The value. Truncates with an ellipsis, revealing the full text in a tooltip only when clipped. */
|
|
6
|
+
text?: ReactNode;
|
|
7
|
+
/** Tooltip content shown instead of `text` while it is clipped. */
|
|
8
|
+
tooltip?: ReactNode;
|
|
9
|
+
/** Custom value content, rendered instead of `text`. */
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/** Element after the value, e.g. a copy button. */
|
|
12
|
+
postfix?: ReactNode;
|
|
13
|
+
/** Additional CSS classes for the root element. */
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A read-only label/value pair: a small caption above a value.
|
|
18
|
+
* aliases: LabelValue|DisplayText|ReadOnlyField|KeyValue
|
|
19
|
+
* Design system 2.0
|
|
20
|
+
*
|
|
21
|
+
* The caption is the kit's `Label`, so it matches the other 2.0 fields. There is
|
|
22
|
+
* no control to point its `htmlFor` at: it sits beside the value and reads in
|
|
23
|
+
* DOM order. It is not a form field: use `Label` with an input for editable
|
|
24
|
+
* values.
|
|
25
|
+
*
|
|
26
|
+
* Without `children` the value is a single line capped at 200px that truncates;
|
|
27
|
+
* the tooltip appears only while the text is actually clipped. With `children`
|
|
28
|
+
* the value takes the content's own width.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <LabelledText label="Endpoint" text="https://example.com/v1/chat" />
|
|
33
|
+
*
|
|
34
|
+
* <LabelledText
|
|
35
|
+
* label="Key"
|
|
36
|
+
* text="sk-0000"
|
|
37
|
+
* postfix={<IconButton icon={<IconCopy />} ariaLabel="Copy key" />}
|
|
38
|
+
* />
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @param label - Caption above the value.
|
|
42
|
+
* @param [text] - The value, truncated with an ellipsis when it does not fit.
|
|
43
|
+
* @param [tooltip] - Tooltip content used instead of `text` while it is clipped.
|
|
44
|
+
* @param [children] - Custom value content, rendered instead of `text`.
|
|
45
|
+
* @param [postfix] - Element after the value.
|
|
46
|
+
* @param [className] - Additional CSS classes for the root element.
|
|
47
|
+
*/
|
|
48
|
+
export declare const LabelledText: FC<LabelledTextProps>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
import { LiveRegionElement, LiveRegionPoliteness } from '../../../types/live-region';
|
|
3
|
+
export interface LiveRegionProps extends Omit<HTMLAttributes<HTMLElement>, 'role' | 'aria-live' | 'aria-atomic'> {
|
|
4
|
+
/**
|
|
5
|
+
* How urgently the change is read. `Polite` (default) renders
|
|
6
|
+
* `role="status"` + `aria-live="polite"`; `Assertive` renders
|
|
7
|
+
* `role="alert"` + `aria-live="assertive"`.
|
|
8
|
+
*/
|
|
9
|
+
politeness?: LiveRegionPoliteness;
|
|
10
|
+
/** Hide the region visually while keeping it readable by assistive tech (`sr-only`). */
|
|
11
|
+
visuallyHidden?: boolean;
|
|
12
|
+
/** Sets `aria-atomic`: read the whole region, not only the changed node, on each change. */
|
|
13
|
+
atomic?: boolean;
|
|
14
|
+
/** The wrapper element. Default `LiveRegionElement.Div`; use `Span` inside inline content. */
|
|
15
|
+
as?: LiveRegionElement;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A live region that is always in the DOM, so a screen reader announces the
|
|
19
|
+
* message put into it.
|
|
20
|
+
* aliases: AriaLive|Announcer|StatusMessage|ScreenReaderAnnouncement|SrOnlyStatus
|
|
21
|
+
* Design system 2.0
|
|
22
|
+
*
|
|
23
|
+
* Screen readers announce a live region reliably only when the region already
|
|
24
|
+
* exists before its content changes; a region mounted together with its text is
|
|
25
|
+
* often read late or not at all. `LiveRegion` always renders its wrapper, even
|
|
26
|
+
* when `children` is empty, `null` or `false` — only the content changes.
|
|
27
|
+
*
|
|
28
|
+
* Use it for a message that is not attached to one control and must be heard:
|
|
29
|
+
* a failed submit, an async status ("Saved", "3 results"), an empty search.
|
|
30
|
+
* Use something else when:
|
|
31
|
+
* - the message belongs to a form field — render `ErrorText` / `CaptionText`
|
|
32
|
+
* with an `id` and point the control's `aria-describedby` at it (or pass
|
|
33
|
+
* `announce` to them when the error must also be announced);
|
|
34
|
+
* - the message is a toast or a section message — `Notification` and its
|
|
35
|
+
* wrappers are already live regions.
|
|
36
|
+
*
|
|
37
|
+
* An empty, visible region takes no layout space: while it has no child nodes
|
|
38
|
+
* it gets `sr-only` (through `empty:sr-only`) rather than `display: none`,
|
|
39
|
+
* because some screen readers drop a `display: none` node from the
|
|
40
|
+
* accessibility tree and would then miss the first message put into it.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <LiveRegion politeness={LiveRegionPoliteness.Assertive}>
|
|
45
|
+
* {submitError && <ErrorText text={submitError} />}
|
|
46
|
+
* </LiveRegion>
|
|
47
|
+
*
|
|
48
|
+
* <LiveRegion visuallyHidden>{isEmpty ? 'No results' : ''}</LiveRegion>
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param [politeness] - `LiveRegionPoliteness.Polite` (default) or `Assertive`.
|
|
52
|
+
* @param [visuallyHidden] - Hide the region visually (`sr-only`); it is still announced.
|
|
53
|
+
* @param [atomic] - Sets `aria-atomic`.
|
|
54
|
+
* @param [as] - The wrapper element, `LiveRegionElement.Div` by default.
|
|
55
|
+
* @param [className] - Additional CSS classes for the wrapper.
|
|
56
|
+
* @param [children] - The message. May be empty; the wrapper is rendered anyway.
|
|
57
|
+
*/
|
|
58
|
+
export declare const LiveRegion: FC<LiveRegionProps>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { FC, ReactNode, Ref } from 'react';
|
|
2
|
+
export interface LoginScreenProvider {
|
|
3
|
+
/** Stable provider id; used as the list key. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Visible label; also the link's accessible name. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Where the provider's sign-in starts — a top-level navigation. */
|
|
8
|
+
href: string;
|
|
9
|
+
/** Optional provider logo. Decorative; hidden when it fails to load. */
|
|
10
|
+
iconSrc?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface LoginScreenProps {
|
|
13
|
+
/** Headline of the screen, rendered as the page's `h1`. */
|
|
14
|
+
title: ReactNode;
|
|
15
|
+
/** Prompt above the provider list, such as "Sign in with:". */
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/** Product mark above the title. Decorative; hidden when it fails to load. */
|
|
18
|
+
logoSrc?: string;
|
|
19
|
+
/** One full-width link-styled button per provider. */
|
|
20
|
+
providers?: LoginScreenProvider[];
|
|
21
|
+
/** Accessible name of the provider list. */
|
|
22
|
+
providersLabel?: string;
|
|
23
|
+
/** State content above the providers: a spinner, an error with a retry, a notice. */
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
/** Ref to the `h1` (focusable with `tabIndex={-1}`), for moving focus after a retry. */
|
|
26
|
+
titleRef?: Ref<HTMLHeadingElement>;
|
|
27
|
+
/** Additional CSS classes for the container. */
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The full-page sign-in screen shared by DIAL applications: soft themed
|
|
32
|
+
* artwork behind a centred card with the product mark, an `h1`, state content
|
|
33
|
+
* and one button per identity provider.
|
|
34
|
+
* aliases: SignInPage|LoginPage|AuthPage|ProviderPicker
|
|
35
|
+
* Design system 2.0
|
|
36
|
+
*
|
|
37
|
+
* Fills its container. The root is a `section` named by its title. The
|
|
38
|
+
* artwork follows the `gradient-1` / `gradient-2` theme tokens. On mobile the
|
|
39
|
+
* card loses its surface and spans the width. Fetching providers and building
|
|
40
|
+
* their URLs stay with the application. For a signed-out or access-denied
|
|
41
|
+
* state inside an app, use `StateScreen`.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <LoginScreen
|
|
46
|
+
* logoSrc="/favicon.svg"
|
|
47
|
+
* title="Welcome to DIAL Chat"
|
|
48
|
+
* description="Sign in with:"
|
|
49
|
+
* providersLabel="Sign-in options"
|
|
50
|
+
* providers={[{ id: 'keycloak', label: 'Keycloak', href: '/api/auth/login/keycloak' }]}
|
|
51
|
+
* />
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param title - Headline of the screen, rendered as the page's `h1`.
|
|
55
|
+
* @param [description] - Prompt above the provider list.
|
|
56
|
+
* @param [logoSrc] - Product mark above the title.
|
|
57
|
+
* @param [providers] - One link-styled button per provider.
|
|
58
|
+
* @param [providersLabel] - Accessible name of the provider list.
|
|
59
|
+
* @param [children] - State content above the providers.
|
|
60
|
+
* @param [titleRef] - Ref to the focusable `h1`.
|
|
61
|
+
* @param [className] - Additional CSS classes for the container.
|
|
62
|
+
*/
|
|
63
|
+
export declare const LoginScreen: FC<LoginScreenProps>;
|
|
@@ -14,6 +14,10 @@ export interface MarkdownEditorProps {
|
|
|
14
14
|
id?: string;
|
|
15
15
|
/** Accessible name for the underlying textarea. Use it only where no visible label exists to pair with `id`. */
|
|
16
16
|
ariaLabel?: string;
|
|
17
|
+
/** Ids of elements describing the textarea — typically an error rendered next to the editor. */
|
|
18
|
+
ariaDescribedBy?: string;
|
|
19
|
+
/** Draws the error border and sets `aria-invalid` on the textarea. */
|
|
20
|
+
invalid?: boolean;
|
|
17
21
|
/** Whether to show the bottom drag bar that resizes the editor height. */
|
|
18
22
|
showDragbar?: boolean;
|
|
19
23
|
}
|
|
@@ -37,6 +41,8 @@ export interface MarkdownEditorProps {
|
|
|
37
41
|
* @param [defaultPreview='edit'] - Initial edit/live/preview mode
|
|
38
42
|
* @param [id] - `id` of the underlying textarea, for a visible `<label htmlFor>`
|
|
39
43
|
* @param [ariaLabel] - Accessible name for the underlying textarea
|
|
44
|
+
* @param [ariaDescribedBy] - Ids of elements describing the textarea, e.g. its error
|
|
45
|
+
* @param [invalid=false] - Draws the error border and sets `aria-invalid` on the textarea
|
|
40
46
|
* @param [showDragbar=true] - Whether to show the bottom drag bar that resizes the editor height
|
|
41
47
|
*/
|
|
42
48
|
export declare const MarkdownEditor: FC<MarkdownEditorProps>;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared leaf module for the 2.0 Markdown editor's lazy loader. Both
|
|
3
3
|
* `src/index.ts` (root) and `src/subpaths/editors.ts` (`./editors`)
|
|
4
|
-
* re-export this same binding instead of each declaring their own copy
|
|
5
|
-
*
|
|
4
|
+
* re-export this same binding instead of each declaring their own copy of
|
|
5
|
+
* the loader function. The duplication it replaced was an emitted-topology
|
|
6
|
+
* defect, not just source-level duplication: a loader function's body
|
|
7
|
+
* containing its own `import()` call, when duplicated verbatim into more than
|
|
8
|
+
* one entry's own emitted chunk, can pull an unrelated dynamically-imported
|
|
9
|
+
* feature into the initial graph in some Vite/Rolldown versions - see
|
|
10
|
+
* `openspec/changes/isolate-heavy-feature-modules` Section 9's
|
|
11
|
+
* `diagnosis-baseline.txt` for the measured reproduction.
|
|
6
12
|
*/
|
|
7
13
|
export declare const LazyMarkdownEditor: () => Promise<typeof import('./MarkdownEditor')>;
|
|
@@ -4,8 +4,10 @@ export interface NoDataContentProps {
|
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
/** Optional secondary line under the title. */
|
|
6
6
|
description?: ReactNode;
|
|
7
|
-
/** Illustration above the title. Defaults to the
|
|
7
|
+
/** Illustration above the title. Defaults to the placeholder-list card. */
|
|
8
8
|
icon?: ReactNode;
|
|
9
|
+
/** Optional way forward, such as a button, rendered under the text. */
|
|
10
|
+
action?: ReactNode;
|
|
9
11
|
/**
|
|
10
12
|
* Announces the empty state to assistive tech as it appears. Turn it on where
|
|
11
13
|
* the content replaces a list the user has just filtered or searched.
|
|
@@ -23,23 +25,37 @@ export interface NoDataContentProps {
|
|
|
23
25
|
* aliases: EmptyState|NoResults|ZeroState
|
|
24
26
|
* Design system 2.0
|
|
25
27
|
*
|
|
26
|
-
* Fills its container and centres an illustration, a headline
|
|
27
|
-
* secondary line. The icon is decorative, so it is
|
|
28
|
-
* and the text carries the message on its own.
|
|
28
|
+
* Fills its container and centres an illustration, a headline, an optional
|
|
29
|
+
* secondary line and an optional action. The icon is decorative, so it is
|
|
30
|
+
* hidden from assistive tech and the text carries the message on its own.
|
|
31
|
+
*
|
|
32
|
+
* Copy follows the Patterns 2.0 empty-state behaviour:
|
|
33
|
+
* - default: "No [entities] yet" / "[Entities] will appear here once [condition]."
|
|
34
|
+
* - Shared with me: "No [entities] yet" / "[Entities] other people share with you will show up here."
|
|
35
|
+
* - after a search or filter: "No [entities] found" / "Try a different search
|
|
36
|
+
* term or check your filters." — drop the part the list does not have — with `live`.
|
|
37
|
+
*
|
|
38
|
+
* Leave `icon` unset in a list, so every empty list shows the same card.
|
|
29
39
|
*
|
|
30
40
|
* @example
|
|
31
41
|
* ```tsx
|
|
32
42
|
* <NoDataContent
|
|
33
|
-
* title="No
|
|
34
|
-
* description="Try a different search term."
|
|
43
|
+
* title="No chats found"
|
|
44
|
+
* description="Try a different search term or check your filters."
|
|
45
|
+
* live
|
|
35
46
|
* />
|
|
36
47
|
*
|
|
37
|
-
* <NoDataContent
|
|
48
|
+
* <NoDataContent
|
|
49
|
+
* title="No chats yet"
|
|
50
|
+
* description="Chats will appear here once you start one."
|
|
51
|
+
* action={<Button label="New chat" onClick={createChat} />}
|
|
52
|
+
* />
|
|
38
53
|
* ```
|
|
39
54
|
*
|
|
40
55
|
* @param title - Headline of the empty state.
|
|
41
56
|
* @param [description] - Optional secondary line under the title.
|
|
42
|
-
* @param [icon] - Illustration above the title. Defaults to the
|
|
57
|
+
* @param [icon] - Illustration above the title. Defaults to the placeholder-list card.
|
|
58
|
+
* @param [action] - Optional way forward, rendered under the text.
|
|
43
59
|
* @param [live=false] - Announce the empty state to assistive tech as it appears.
|
|
44
60
|
* @param [className] - Additional CSS classes for the container.
|
|
45
61
|
* @param [titleClassName] - Additional CSS classes for the title.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The empty-state illustration: a card holding three placeholder list rows.
|
|
4
|
+
* Every colour comes from a layer or stroke token, so it follows the theme
|
|
5
|
+
* instead of staying a light card on a dark surface.
|
|
6
|
+
*/
|
|
7
|
+
export declare const NoDataIllustration: FC;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { NotificationType, NotificationVariant } from '../../../types/notification';
|
|
2
|
+
import { NotificationSurface, NotificationType, NotificationVariant } from '../../../types/notification';
|
|
3
3
|
export interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
4
4
|
variant?: NotificationVariant;
|
|
5
5
|
type?: NotificationType;
|
|
6
|
+
/**
|
|
7
|
+
* Surface the notification draws on. `NotificationSurface.Neutral` keeps the
|
|
8
|
+
* variant's icon, icon colour and live-region role but draws the neutral
|
|
9
|
+
* sunken layer (`bg-layer-sunken`) with primary text instead of the
|
|
10
|
+
* variant's coloured surface.
|
|
11
|
+
* @default NotificationSurface.Variant
|
|
12
|
+
*/
|
|
13
|
+
surface?: NotificationSurface;
|
|
6
14
|
title?: ReactNode;
|
|
7
15
|
message: ReactNode;
|
|
8
16
|
action?: ReactNode;
|
|
9
17
|
closable?: boolean;
|
|
18
|
+
/** Accessible name of the close button, for hosts that localise it. */
|
|
19
|
+
closeAriaLabel?: string;
|
|
10
20
|
iconSize?: number;
|
|
11
21
|
iconStroke?: number;
|
|
12
22
|
textClassName?: string;
|
|
@@ -18,7 +28,9 @@ export interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
18
28
|
* Design system 2.0
|
|
19
29
|
*
|
|
20
30
|
* Renders a colored container with an icon, message text, and an optional
|
|
21
|
-
* close button.
|
|
31
|
+
* close button. `surface={NotificationSurface.Neutral}` swaps the coloured
|
|
32
|
+
* container for the neutral sunken layer and keeps the variant's icon, icon
|
|
33
|
+
* colour and role.
|
|
22
34
|
*
|
|
23
35
|
* The container is a live region whose politeness follows the variant: `error`
|
|
24
36
|
* and `warning` use `role="alert"` (assertive, interrupts the screen reader),
|
|
@@ -60,6 +72,14 @@ export interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
60
72
|
* />
|
|
61
73
|
*
|
|
62
74
|
* <Notification
|
|
75
|
+
* variant={NotificationVariant.Warning}
|
|
76
|
+
* type={NotificationType.SectionMessage}
|
|
77
|
+
* surface={NotificationSurface.Neutral}
|
|
78
|
+
* title="Log in required"
|
|
79
|
+
* message="Scheduled tasks run while you are offline."
|
|
80
|
+
* />
|
|
81
|
+
*
|
|
82
|
+
* <Notification
|
|
63
83
|
* variant={NotificationVariant.Error}
|
|
64
84
|
* type={NotificationType.SectionMessage}
|
|
65
85
|
* title="Couldn't finish this response"
|
|
@@ -78,12 +98,14 @@ export interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
78
98
|
*
|
|
79
99
|
* @param [variant=NotificationVariant.Info] - Defines the visual style and icon of the alert
|
|
80
100
|
* @param [type=NotificationType.Toast] - Defines the type of notification, either a toast or a section message
|
|
101
|
+
* @param [surface=NotificationSurface.Variant] - `Neutral` draws the neutral sunken surface while keeping the variant's icon, icon colour and role
|
|
81
102
|
* @param [title] - Optional heading displayed above the message in semibold
|
|
82
103
|
* @param message - Message text to display inside the alert
|
|
83
104
|
* @param [action] - Optional control (typically a small `Button`) rendered at the inline end, after the text and before the close button; the caller supplies its accessible name
|
|
84
105
|
* @param [className] - Additional CSS classes applied to the alert container
|
|
85
106
|
* @param [textClassName] - Additional CSS classes applied to the message text
|
|
86
107
|
* @param [closable=false] - Whether the alert has a close button
|
|
108
|
+
* @param [closeAriaLabel='Close notification'] - Accessible name of the close button
|
|
87
109
|
* @param [iconSize=24] - Size of the icon displayed in the alert
|
|
88
110
|
* @param [iconStroke=2] - Stroke width of the icon displayed in the alert
|
|
89
111
|
* @param [onClose] - Callback fired when the close button is clicked
|
|
@@ -5,6 +5,17 @@ export declare const variantIcons: (props: {
|
|
|
5
5
|
stroke: number;
|
|
6
6
|
}) => Record<NotificationVariant, ReactNode>;
|
|
7
7
|
export declare const notificationVariantClassNameMap: Record<NotificationVariant, string>;
|
|
8
|
+
/** Surface classes for `NotificationSurface.Neutral`, whatever the variant. */
|
|
9
|
+
export declare const notificationNeutralSurfaceClassName = "bg-layer-sunken text-primary";
|
|
10
|
+
/**
|
|
11
|
+
* Icon colour per variant on `NotificationSurface.Neutral`.
|
|
12
|
+
*
|
|
13
|
+
* On the variant surface the icon inherits the container's text colour. The
|
|
14
|
+
* neutral surface sets primary text, so the icon names its status colour
|
|
15
|
+
* itself; `warning` uses the dedicated `text-warning-icon` token, as the design
|
|
16
|
+
* does for a warning triangle outside a warning surface.
|
|
17
|
+
*/
|
|
18
|
+
export declare const notificationNeutralSurfaceIconClassNameMap: Record<NotificationVariant, string>;
|
|
8
19
|
/**
|
|
9
20
|
* Live-region role per variant.
|
|
10
21
|
*
|
|
@@ -5,6 +5,8 @@ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'iconAfter
|
|
|
5
5
|
showPasswordLabel?: string;
|
|
6
6
|
/** Accessible name of the reveal toggle while the value is visible. */
|
|
7
7
|
hidePasswordLabel?: string;
|
|
8
|
+
/** Hides the reveal toggle while the field stays editable, and keeps the value masked. */
|
|
9
|
+
isToggleHidden?: boolean;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* A password field with a reveal toggle, built on {@link Input}.
|
|
@@ -18,6 +20,9 @@ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'iconAfter
|
|
|
18
20
|
* A disabled field is masked with no toggle at all, and comes back masked if it
|
|
19
21
|
* is enabled again.
|
|
20
22
|
*
|
|
23
|
+
* `isToggleHidden` does the same without disabling the field: use it when there
|
|
24
|
+
* is nothing to reveal, such as a stored secret the server never returns.
|
|
25
|
+
*
|
|
21
26
|
* @example
|
|
22
27
|
* ```tsx
|
|
23
28
|
* <PasswordInput
|
|
@@ -32,5 +37,6 @@ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'iconAfter
|
|
|
32
37
|
* @param [hidePasswordLabel="Hide password"] - Accessible name of the toggle while the value is visible
|
|
33
38
|
* @param [size=ElementSize.Standard] - Field height: standard is 40px, small is 24px
|
|
34
39
|
* @param [disabled=false] - Disables the field, masks it, and hides the reveal toggle
|
|
40
|
+
* @param [isToggleHidden=false] - Hides the reveal toggle and keeps the value masked, leaving the field editable
|
|
35
41
|
*/
|
|
36
42
|
export declare const PasswordInput: FC<PasswordInputProps>;
|
|
@@ -2,7 +2,7 @@ import { PopupSize } from '../../../types/popup';
|
|
|
2
2
|
export declare const popupOverlayBaseClassName = "z-popup flex items-center justify-center bg-backdrop md:p-4 gap-5 p-6";
|
|
3
3
|
export declare const popupBaseClassName = "relative flex w-full max-h-full flex-col rounded-xl bg-layer-raised md:h-auto";
|
|
4
4
|
export declare const popupHeaderClassName = "flex flex-row items-center justify-between px-6 py-4";
|
|
5
|
-
export declare const popupTitleClassName = "flex-1 min-w-0 mr-3 truncate dial-
|
|
5
|
+
export declare const popupTitleClassName = "flex-1 min-w-0 mr-3 truncate dial-h2-text text-primary";
|
|
6
6
|
/** Rule under the header. Opt-in: by default sections are separated by spacing. */
|
|
7
7
|
export declare const popupHeaderDividerClassName = "border-b border-tertiary";
|
|
8
8
|
export declare const popupFooterClassName = "flex flex-row items-center gap-2 px-6 py-4";
|