@epam/ai-dial-ui-kit 0.16.0-dev.6 → 0.16.0-dev.61
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/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 +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 +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/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/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-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
|
@@ -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
|
-
export declare const LazyMarkdownEditor: () => Promise<typeof import(
|
|
13
|
+
export declare const LazyMarkdownEditor: () => Promise<typeof import('./MarkdownEditor')>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Marks the chosen row in a `MenuItemMark.Check` list. Decorative: the row's
|
|
3
3
|
* `aria-checked`/`aria-selected` already carries the state.
|
|
4
4
|
*/
|
|
5
|
-
export declare const menuItemCheckIcon: import(
|
|
5
|
+
export declare const menuItemCheckIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -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,29 @@ 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.
|
|
29
31
|
*
|
|
30
32
|
* @example
|
|
31
33
|
* ```tsx
|
|
32
34
|
* <NoDataContent
|
|
33
|
-
* title="No
|
|
34
|
-
* description="Try a different search term."
|
|
35
|
+
* title="No chats found"
|
|
36
|
+
* description="Try a different search term or check your filters."
|
|
37
|
+
* live
|
|
35
38
|
* />
|
|
36
39
|
*
|
|
37
|
-
* <NoDataContent
|
|
40
|
+
* <NoDataContent
|
|
41
|
+
* title="No chats yet"
|
|
42
|
+
* description="Chats will appear here once you start one."
|
|
43
|
+
* action={<Button label="New chat" onClick={createChat} />}
|
|
44
|
+
* />
|
|
38
45
|
* ```
|
|
39
46
|
*
|
|
40
47
|
* @param title - Headline of the empty state.
|
|
41
48
|
* @param [description] - Optional secondary line under the title.
|
|
42
|
-
* @param [icon] - Illustration above the title. Defaults to the
|
|
49
|
+
* @param [icon] - Illustration above the title. Defaults to the placeholder-list card.
|
|
50
|
+
* @param [action] - Optional way forward, rendered under the text.
|
|
43
51
|
* @param [live=false] - Announce the empty state to assistive tech as it appears.
|
|
44
52
|
* @param [className] - Additional CSS classes for the container.
|
|
45
53
|
* @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";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
/** Props for `ResizeHandle`. */
|
|
3
|
+
export interface ResizeHandleProps {
|
|
4
|
+
/** Current width of the panel the handle resizes, in px. */
|
|
5
|
+
width: number;
|
|
6
|
+
/** Smallest width the handle can set, in px. */
|
|
7
|
+
minWidth: number;
|
|
8
|
+
/** Largest width the handle can set, in px. */
|
|
9
|
+
maxWidth: number;
|
|
10
|
+
/** Width a double click resets the panel to, in px. Without it a double click does nothing. */
|
|
11
|
+
defaultWidth?: number;
|
|
12
|
+
/** Called with the next width, already limited to `minWidth`–`maxWidth`. */
|
|
13
|
+
onWidthChange: (width: number) => void;
|
|
14
|
+
/** Accessible name of the separator. */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Hint shown beside the pointer once it rests on the handle. */
|
|
17
|
+
tooltip?: ReactNode;
|
|
18
|
+
/** Width change of one arrow key press, in px. Defaults to `16`. */
|
|
19
|
+
keyboardStep?: number;
|
|
20
|
+
/** Additional CSS classes for the handle, e.g. to change its position. */
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A vertical separator on the inline-end edge of a panel that resizes the panel
|
|
25
|
+
* by pointer or keyboard.
|
|
26
|
+
* aliases: Splitter|ColumnResizer|DragHandle|Divider
|
|
27
|
+
* Design system 2.0
|
|
28
|
+
*
|
|
29
|
+
* The component is controlled: it reports every width through `onWidthChange`
|
|
30
|
+
* and the host applies it to the panel. It is a focusable `separator` — the
|
|
31
|
+
* window-splitter pattern — so the arrow keys move it by `keyboardStep`, `Home`
|
|
32
|
+
* and `End` jump to the bounds, and a double click resets it to `defaultWidth`.
|
|
33
|
+
* Drag and keys follow the writing direction, so a panel at the inline start
|
|
34
|
+
* grows as the pointer moves towards the inline end, in RTL as well.
|
|
35
|
+
*
|
|
36
|
+
* It is positioned absolutely against its nearest positioned ancestor, over the
|
|
37
|
+
* panel's inline-end edge, and draws a thin line. The accent line and the hint
|
|
38
|
+
* appear once the pointer has rested on the handle, and a themed arrow follows
|
|
39
|
+
* the pointer instead of the native cursor. Hide it on screens too narrow to
|
|
40
|
+
* drag on by wrapping it, e.g. in `hidden desktop:block`.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <div className="relative" style={{ width }}>
|
|
45
|
+
* <Sidebar />
|
|
46
|
+
* <ResizeHandle
|
|
47
|
+
* width={width}
|
|
48
|
+
* minWidth={280}
|
|
49
|
+
* maxWidth={640}
|
|
50
|
+
* defaultWidth={400}
|
|
51
|
+
* onWidthChange={setWidth}
|
|
52
|
+
* label="Resize sidebar"
|
|
53
|
+
* tooltip="Drag to resize"
|
|
54
|
+
* />
|
|
55
|
+
* </div>
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param width - Current width of the panel in px.
|
|
59
|
+
* @param minWidth - Smallest width in px.
|
|
60
|
+
* @param maxWidth - Largest width in px.
|
|
61
|
+
* @param [defaultWidth] - Width a double click resets to.
|
|
62
|
+
* @param onWidthChange - Called with the next, limited width.
|
|
63
|
+
* @param label - Accessible name of the separator.
|
|
64
|
+
* @param [tooltip] - Hint shown beside the pointer once it rests on the handle.
|
|
65
|
+
* @param [keyboardStep=16] - Width change of one arrow key press in px.
|
|
66
|
+
* @param [className] - Additional CSS classes for the handle.
|
|
67
|
+
*/
|
|
68
|
+
export declare const ResizeHandle: FC<ResizeHandleProps>;
|
|
@@ -26,5 +26,6 @@ import { SchemaFieldContentProps } from '../types';
|
|
|
26
26
|
* @param [suppressInlineError=false] - Leaves the required error to the caller, which renders it under its own label
|
|
27
27
|
* @param [fieldId] - Id given to a primitive control, for a visible label to point at
|
|
28
28
|
* @param [ariaLabel] - Accessible name of the control
|
|
29
|
+
* @param [ariaDescribedBy] - Id of an error the caller renders outside the control, linked to a primitive control
|
|
29
30
|
*/
|
|
30
31
|
export declare const SchemaFieldContent: FC<SchemaFieldContentProps>;
|
|
@@ -7,6 +7,7 @@ export interface SchemaPrimitiveFieldProps {
|
|
|
7
7
|
invalid?: boolean;
|
|
8
8
|
id?: string;
|
|
9
9
|
ariaLabel?: string;
|
|
10
|
+
ariaDescribedBy?: string;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Renders a single primitive schema field: string, integer, number, boolean, enum, or const.
|
|
@@ -34,5 +35,6 @@ export interface SchemaPrimitiveFieldProps {
|
|
|
34
35
|
* @param [invalid] - Whether the field has a validation error (applies error styling)
|
|
35
36
|
* @param [id] - Id of the control, for a visible label to point at
|
|
36
37
|
* @param [ariaLabel] - Accessible name of the control
|
|
38
|
+
* @param [ariaDescribedBy] - Id of the field's validation error, linked to text, number and select controls
|
|
37
39
|
*/
|
|
38
40
|
export declare const SchemaPrimitiveField: FC<SchemaPrimitiveFieldProps>;
|
|
@@ -58,8 +58,10 @@ export interface SchemaFieldContentProps {
|
|
|
58
58
|
* have no visible label next to their control, so this is what names it.
|
|
59
59
|
*/
|
|
60
60
|
ariaLabel?: string;
|
|
61
|
+
/** Id of an error the caller renders outside the control, linked to a primitive control as its description. */
|
|
62
|
+
ariaDescribedBy?: string;
|
|
61
63
|
}
|
|
62
|
-
export interface SchemaFieldProps extends Omit<SchemaFieldContentProps, 'fieldId' | 'ariaLabel' | 'suppressInlineError'> {
|
|
64
|
+
export interface SchemaFieldProps extends Omit<SchemaFieldContentProps, 'fieldId' | 'ariaLabel' | 'ariaDescribedBy' | 'suppressInlineError'> {
|
|
63
65
|
label?: string;
|
|
64
66
|
}
|
|
65
67
|
export interface SchemaRendererContextValue {
|
|
@@ -37,8 +37,8 @@ export interface SegmentedControlProps<T extends string> {
|
|
|
37
37
|
* revealing a panel, so it takes `role="radiogroup"` with `role="radio"`
|
|
38
38
|
* segments. The group is a single tab stop — the selected segment holds it, and
|
|
39
39
|
* the arrow keys, `Home` and `End` move the selection, per the ARIA radio-group
|
|
40
|
-
* pattern.
|
|
41
|
-
* the behaviour this
|
|
40
|
+
* pattern. The removed 1.0 `DialSegmentedControl` used `tablist`/`tab`
|
|
41
|
+
* instead; that is the behaviour this replaced.
|
|
42
42
|
*
|
|
43
43
|
* An icon-only segment still needs a name: give it `aria-label`, since the icon
|
|
44
44
|
* carries no text. A segment with a string `label` is named by it.
|
|
@@ -51,4 +51,4 @@ export interface SegmentedControlProps<T extends string> {
|
|
|
51
51
|
* @param [segmentClassName] - Additional classes for every segment
|
|
52
52
|
* @param [aria-label] - Names the group as a whole
|
|
53
53
|
*/
|
|
54
|
-
export declare const SegmentedControl: <T extends string>({ items, value, onChange, disabled, className, segmentClassName: segmentClassNameProp, "aria-label": ariaLabel, }: SegmentedControlProps<T>) => import(
|
|
54
|
+
export declare const SegmentedControl: <T extends string>({ items, value, onChange, disabled, className, segmentClassName: segmentClassNameProp, "aria-label": ariaLabel, }: SegmentedControlProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -17,6 +17,7 @@ export interface SelectProps {
|
|
|
17
17
|
error?: string;
|
|
18
18
|
caption?: string;
|
|
19
19
|
ariaLabel?: string;
|
|
20
|
+
ariaDescribedBy?: string;
|
|
20
21
|
searchable?: boolean;
|
|
21
22
|
searchSize?: ElementSize;
|
|
22
23
|
searchPlaceholder?: string;
|
|
@@ -101,6 +102,7 @@ export interface SelectProps {
|
|
|
101
102
|
* @param [error] - Error message rendered below the field (does not by itself apply error styling, pass `invalid` too).
|
|
102
103
|
* @param [caption] - Helper text rendered below the field when there is no `error`.
|
|
103
104
|
* @param [ariaLabel] - Accessible name for the field; use it when there is no visible label.
|
|
105
|
+
* @param [ariaDescribedBy] - Ids of extra elements describing the field, e.g. an error rendered outside it; the field's own `error`/`caption` are linked automatically.
|
|
104
106
|
* @param [searchable=false] - Show a search field in the overlay header.
|
|
105
107
|
* @param [searchSize=ElementSize.Standard] - Size of the overlay search input when `searchable` is enabled.
|
|
106
108
|
* @param [searchPlaceholder] - Placeholder for the overlay search input.
|
|
@@ -27,7 +27,7 @@ export declare const selectOptionsScrollClassName: string;
|
|
|
27
27
|
export declare const selectSubMenuGap = 4;
|
|
28
28
|
export declare const selectSubMenuClassName: string;
|
|
29
29
|
/** Marks an option that opens a nested list. Matches the dropdown's caret. */
|
|
30
|
-
export declare const selectSubMenuCaretIcon: import(
|
|
30
|
+
export declare const selectSubMenuCaretIcon: import('react/jsx-runtime').JSX.Element;
|
|
31
31
|
/** Classes for the chevron rendered as the field's trailing icon. */
|
|
32
32
|
export declare const selectFieldIconClassName = "text-secondary transition-transform";
|
|
33
33
|
/**
|
|
@@ -35,6 +35,5 @@ export declare const selectFieldIconClassName = "text-secondary transition-trans
|
|
|
35
35
|
* short enough to scan at a glance does not need to be filtered.
|
|
36
36
|
*/
|
|
37
37
|
export declare const selectSearchThreshold = 8;
|
|
38
|
-
export declare const selectSearchIcon: import(
|
|
39
|
-
export declare const selectCloseIcon: import(
|
|
40
|
-
export declare const selectEmptyStateIcon: import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare const selectSearchIcon: import('react/jsx-runtime').JSX.Element;
|
|
39
|
+
export declare const selectCloseIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { EntityIdentityItem } from '../EntityIdentity/EntityIdentity';
|
|
3
|
+
/** User-visible strings of `SelectedEntityCard`. */
|
|
4
|
+
export interface SelectedEntityCardLabels {
|
|
5
|
+
/** Type label text, passed to `EntityIdentity`. Defaults to the English name of `item.type`. */
|
|
6
|
+
type?: string;
|
|
7
|
+
/** Text shown when nothing is selected. Defaults to `'Not selected'`. */
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Props for `SelectedEntityCard`. */
|
|
11
|
+
export interface SelectedEntityCardProps {
|
|
12
|
+
/** Id of the selected entity, `''` when there is none. Shown as-is when `item` is missing. */
|
|
13
|
+
entityId: string;
|
|
14
|
+
/** The selected entity as the catalog lists it; missing when the catalog does not. */
|
|
15
|
+
item?: EntityIdentityItem;
|
|
16
|
+
/** Whether the catalog is still loading; a skeleton stands in for a selected entity meanwhile. */
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
/** Dims the card. */
|
|
19
|
+
isDisabled?: boolean;
|
|
20
|
+
/** Error text under the card; it also turns the card's border red. */
|
|
21
|
+
error?: string;
|
|
22
|
+
/** What rides on the selection (an effort, a context window), as a line under the name. */
|
|
23
|
+
details?: ReactNode;
|
|
24
|
+
/** User-visible strings; pass translated ones in a localised app. */
|
|
25
|
+
labels?: SelectedEntityCardLabels;
|
|
26
|
+
/** Whether to show the type label above the name — off when a heading next to the card already names it. */
|
|
27
|
+
showType?: boolean;
|
|
28
|
+
/** Width and height of the icon in px. */
|
|
29
|
+
iconSize?: number;
|
|
30
|
+
/** Heading level of the name, 1–6. */
|
|
31
|
+
headingLevel?: number;
|
|
32
|
+
/** Additional CSS classes for the card. */
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The card of a form field that holds one selected entity — a model, an agent,
|
|
37
|
+
* a toolset: its identity, a skeleton while the catalog loads, its raw id when
|
|
38
|
+
* the catalog does not list it, or a placeholder when nothing is selected.
|
|
39
|
+
* aliases: SelectedModelCard|ModelCard|EntityCard
|
|
40
|
+
* Design system 2.0
|
|
41
|
+
*
|
|
42
|
+
* The control that changes the selection lives next to the card, not in it:
|
|
43
|
+
* the card is not interactive.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <SelectedEntityCard
|
|
48
|
+
* entityId="gpt-4o"
|
|
49
|
+
* item={{ type: EntityType.Model, name: 'GPT-4o', version: '2024-11-20' }}
|
|
50
|
+
* isLoading={isLoading}
|
|
51
|
+
* labels={{ type: t('Model'), placeholder: t('Select model') }}
|
|
52
|
+
* />
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param entityId - Id of the selected entity, `''` when there is none
|
|
56
|
+
* @param [item] - The selected entity as the catalog lists it
|
|
57
|
+
* @param [isLoading=false] - Whether the catalog is still loading
|
|
58
|
+
* @param [isDisabled=false] - Dims the card
|
|
59
|
+
* @param [error] - Error text under the card; also turns its border red
|
|
60
|
+
* @param [details] - A line under the name
|
|
61
|
+
* @param [labels] - User-visible strings
|
|
62
|
+
* @param [showType=true] - Whether to show the type label
|
|
63
|
+
* @param [iconSize=44] - Icon size in px
|
|
64
|
+
* @param [headingLevel=4] - Heading level of the name
|
|
65
|
+
* @param [className] - Additional CSS classes for the card
|
|
66
|
+
*/
|
|
67
|
+
export declare const SelectedEntityCard: FC<SelectedEntityCardProps>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { LiveRegionPoliteness } from '../../../types/live-region';
|
|
3
|
+
export interface StateScreenProps {
|
|
4
|
+
/** Headline of the state, rendered as the page's `h1`. */
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
/** Optional line under the title saying what the state means or what to do. */
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
/** Glyph drawn in the round badge above the title. Decorative: hidden from assistive tech. */
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
/** The way out of the state — typically one button (Log in, Log out, Retry). */
|
|
11
|
+
action?: ReactNode;
|
|
12
|
+
/** Additional CSS classes for the container. */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** Additional CSS classes for the title. */
|
|
15
|
+
titleClassName?: string;
|
|
16
|
+
/** Additional CSS classes for the description. */
|
|
17
|
+
descriptionClassName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Wraps the screen in a `LiveRegion` of this politeness, for a state that
|
|
20
|
+
* replaces content the user was working in (a load error, a crash). Omit it
|
|
21
|
+
* for a state the user navigated to.
|
|
22
|
+
*/
|
|
23
|
+
announce?: LiveRegionPoliteness;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A whole screen given over to one state the app cannot work past: signed out,
|
|
27
|
+
* access denied, a misconfigured provider.
|
|
28
|
+
* aliases: AuthScreen|LoginScreen|ForbiddenPage|AccessDenied|ErrorPage|FullPageState
|
|
29
|
+
* Design system 2.0
|
|
30
|
+
*
|
|
31
|
+
* Fills its container and centres a round icon badge, an `h1`, an optional
|
|
32
|
+
* description and an optional action. The root is a `section` named by its
|
|
33
|
+
* title, so the state is a landmark of its own. For an empty list or grid
|
|
34
|
+
* inside a page, use `NoDataContent` instead.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <StateScreen
|
|
39
|
+
* icon={<IconLock size={DIAL_ICON_SIZE.LG} stroke={DIAL_KIT_ICON_STROKE} />}
|
|
40
|
+
* title="Log in to configure your QuickApp"
|
|
41
|
+
* description="Set up instructions, add-ons and settings."
|
|
42
|
+
* action={<NeutralButton label="Log in" onClick={openLogin} />}
|
|
43
|
+
* />
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param title - Headline of the state, rendered as the page's `h1`.
|
|
47
|
+
* @param [description] - Optional line under the title.
|
|
48
|
+
* @param [icon] - Glyph drawn in the round badge; the badge is omitted without one.
|
|
49
|
+
* @param [action] - The way out of the state, rendered under the text.
|
|
50
|
+
* @param [className] - Additional CSS classes for the container.
|
|
51
|
+
* @param [titleClassName] - Additional CSS classes for the title.
|
|
52
|
+
* @param [descriptionClassName] - Additional CSS classes for the description.
|
|
53
|
+
* @param [announce] - Wraps the screen in a `LiveRegion` of this politeness, for a state that replaces the user's content.
|
|
54
|
+
*/
|
|
55
|
+
export declare const StateScreen: FC<StateScreenProps>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Step, StepStatus } from '../../../models/step';
|
|
3
|
+
export interface StepsProps {
|
|
4
|
+
/** Ordered steps to render. */
|
|
5
|
+
steps: Step[];
|
|
6
|
+
/** `id` of the active step. */
|
|
7
|
+
currentStep: string;
|
|
8
|
+
/** Fired with the `id` of the step the user may move to. */
|
|
9
|
+
onChangeStep: (step: string) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Already-translated text announced for a step's status, appended to the
|
|
12
|
+
* step's accessible name. Defaults to `'Completed'` / `'Error'`.
|
|
13
|
+
*/
|
|
14
|
+
statusLabels?: Partial<Record<StepStatus, string>>;
|
|
15
|
+
/** Accessible name for the list of steps. */
|
|
16
|
+
ariaLabel?: string;
|
|
17
|
+
/** Additional CSS classes for the root element. */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A row of numbered steps for a multi-step flow, marking the active one and
|
|
22
|
+
* flagging completed and failed steps.
|
|
23
|
+
* aliases: StepWizard|ProgressSteps|Stepper
|
|
24
|
+
* Design system 2.0
|
|
25
|
+
*
|
|
26
|
+
* A step's number turns into a check once it is completed and the user has moved
|
|
27
|
+
* on, and into an alert icon while a failed step is the active one. A step can
|
|
28
|
+
* only be entered when every step before it is `StepStatus.VALID`; going back is
|
|
29
|
+
* always allowed. A step with `disabled` cannot be entered at all.
|
|
30
|
+
*
|
|
31
|
+
* The list is an ordered list, the active step carries `aria-current="step"`,
|
|
32
|
+
* and a completed or failed step announces its status after its name.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* <Steps
|
|
37
|
+
* ariaLabel="Create deployment"
|
|
38
|
+
* steps={[
|
|
39
|
+
* { id: 'general', name: 'General', status: StepStatus.VALID },
|
|
40
|
+
* { id: 'limits', name: 'Limits', status: StepStatus.ERROR },
|
|
41
|
+
* { id: 'review', name: 'Review' },
|
|
42
|
+
* ]}
|
|
43
|
+
* currentStep="general"
|
|
44
|
+
* onChangeStep={setCurrentStep}
|
|
45
|
+
* />
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param steps - Ordered steps to render.
|
|
49
|
+
* @param currentStep - `id` of the active step.
|
|
50
|
+
* @param onChangeStep - Fired with the `id` of the step the user may move to.
|
|
51
|
+
* @param [statusLabels] - Translated status text announced after a step's name.
|
|
52
|
+
* @param [ariaLabel] - Accessible name for the list of steps.
|
|
53
|
+
* @param [className] - Additional CSS classes for the root element.
|
|
54
|
+
*/
|
|
55
|
+
export declare const Steps: FC<StepsProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { TabOrientation } from '../../../types/tab';
|
|
2
|
+
import { TabOrientation, TabStatus } from '../../../types/tab';
|
|
3
3
|
/** A single tab entry rendered by {@link Tabs}. */
|
|
4
4
|
export interface TabItem {
|
|
5
5
|
/** Unique identifier used to match against `activeTabId`. */
|
|
@@ -12,6 +12,18 @@ export interface TabItem {
|
|
|
12
12
|
icon?: ReactNode;
|
|
13
13
|
/** Renders the tab greyed out and unselectable, and skips it during keyboard navigation. */
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Flags the tab as holding an error or a warning � typically a form section
|
|
17
|
+
* that failed validation. Draws a coloured icon after the label and adds the
|
|
18
|
+
* state to the tab's accessible name. Uses the {@link TabStatus} enum.
|
|
19
|
+
*/
|
|
20
|
+
status?: TabStatus;
|
|
21
|
+
/**
|
|
22
|
+
* Already-translated text announced for `status`, appended to the tab's
|
|
23
|
+
* accessible name. Defaults to `'Error'` / `'Warning'`; pass it when the
|
|
24
|
+
* interface is localised.
|
|
25
|
+
*/
|
|
26
|
+
statusLabel?: string;
|
|
15
27
|
}
|
|
16
28
|
export interface TabsProps {
|
|
17
29
|
/** Ordered list of tabs to render. */
|
|
@@ -64,6 +76,10 @@ export interface TabsProps {
|
|
|
64
76
|
* `ArrowUp` / `ArrowDown`. The rail is the shape to reach for when the tabs
|
|
65
77
|
* label whole pages of a settings surface; the row, when they filter one.
|
|
66
78
|
*
|
|
79
|
+
* A tab with a `status` (`TabStatus.Error` or `TabStatus.Warning`) draws a
|
|
80
|
+
* coloured icon after its label, and the status text joins the tab's accessible
|
|
81
|
+
* name so the state reaches assistive tech as well as sighted users.
|
|
82
|
+
*
|
|
67
83
|
* `className` lands on whichever element is outermost: the heading wrapper when
|
|
68
84
|
* `sectionLabel` is set, the `role="tablist"` itself when it is not.
|
|
69
85
|
*
|
|
@@ -16,9 +16,10 @@ export interface TagProps extends NativeTagProps {
|
|
|
16
16
|
* aliases: Chip|Pill
|
|
17
17
|
* Design system 2.0
|
|
18
18
|
*
|
|
19
|
-
* The tag
|
|
20
|
-
*
|
|
21
|
-
* usually reaching for a
|
|
19
|
+
* The tag is the 32px pill of the 2.0 design; `TagAppearance.Bordered` is the
|
|
20
|
+
* compact 24px value chip of a form field. There is no `size` prop: a tag sizes
|
|
21
|
+
* itself, and a caller that needs a different height is usually reaching for a
|
|
22
|
+
* button.
|
|
22
23
|
*
|
|
23
24
|
* The label truncates rather than wrapping, and carries a native `title` so the
|
|
24
25
|
* full text stays reachable when it does.
|
|
@@ -28,7 +29,9 @@ export interface TagProps extends NativeTagProps {
|
|
|
28
29
|
* the caller: a clickable tag that is also closable gives a screen reader two
|
|
29
30
|
* actions with no way to tell which one it landed on.
|
|
30
31
|
*
|
|
31
|
-
*
|
|
32
|
+
* `outlined` and `selectable` draw no rim and are told apart by their fill;
|
|
33
|
+
* `bordered` draws one: the outlined `Badge`'s look, for a value the user can
|
|
34
|
+
* remove, on a surface the rimless fill would vanish on.
|
|
32
35
|
* `TagAppearance.Selectable` is the filter chip of the 2.0 design: no fill
|
|
33
36
|
* at all until it is selected, one hover tint shared by both states, a semibold
|
|
34
37
|
* label once selected, and the state carried on `aria-pressed` rather than by
|
|
@@ -55,7 +58,8 @@ export interface TagProps extends NativeTagProps {
|
|
|
55
58
|
* @param label - Text content displayed inside the tag.
|
|
56
59
|
* @param [icon] - Icon rendered before the label.
|
|
57
60
|
* @param [appearance=TagAppearance.Outlined] - `outlined` is the filled chip on the raised
|
|
58
|
-
* layer; `selectable` is the unfilled filter chip that tints and turns semibold when selected
|
|
61
|
+
* layer; `selectable` is the unfilled filter chip that tints and turns semibold when selected;
|
|
62
|
+
* `bordered` is the compact rimmed value chip of a form field.
|
|
59
63
|
* @param [selected=false] - Applies the accent-tinted selected styling.
|
|
60
64
|
* @param [disabled=false] - Stops the tag responding: no click handling, no remove control. The design defines no disabled tag, so the colours stay put.
|
|
61
65
|
* @param [closable=false] - Renders the remove button. Needs `onRemove` to appear.
|