@epam/ai-dial-ui-kit 0.14.0-dev.4 → 0.14.0-dev.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/CHANGELOG.md +26 -4
- package/dist/DateCellRenderer-DNPEX0I7.cjs +1 -0
- package/dist/DateCellRenderer-p6k-mVZt.cjs +63 -0
- package/dist/IconButton-DWqoaBWf.cjs +1 -0
- package/dist/JsonEditor-BZCyPc2D.cjs +1 -0
- package/dist/MarkdownEditor-CBH7ILah.cjs +1 -0
- package/dist/MarkdownEditor-CMRC_XsQ.cjs +1 -0
- package/dist/MarkdownEditorContainer-B_6-Gd-T.cjs +1 -0
- package/dist/Switch-CUKClcEz.cjs +1 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +31 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/assets/icons/add-child.svg.js +5 -0
- package/dist/assets/icons/add-sibling.svg.js +5 -0
- package/dist/assets/icons/copy-to.svg.js +5 -0
- package/dist/assets/icons/file/c.svg.js +5 -0
- package/dist/assets/icons/file/cpp.svg.js +5 -0
- package/dist/assets/icons/file/cs.svg.js +5 -0
- package/dist/assets/icons/file/ini.svg.js +5 -0
- package/dist/assets/icons/file/json.svg.js +5 -0
- package/dist/assets/icons/file/md.svg.js +5 -0
- package/dist/assets/icons/file/py.svg.js +5 -0
- package/dist/assets/icons/loader.svg.js +5 -0
- package/dist/assets/icons/move-to.svg.js +5 -0
- package/dist/assets/icons/open-popup.svg.js +5 -0
- package/dist/assets/icons/unshare.svg.js +5 -0
- package/dist/components/Accordion/Accordion.js +70 -0
- package/dist/components/Analytics/Bar/Bar.js +80 -0
- package/dist/components/Analytics/Bar/utils.js +24 -0
- package/dist/components/Analytics/BarGroup/BarGroup.js +140 -0
- package/dist/components/Analytics/Card/Card.js +87 -0
- package/dist/components/Analytics/ErrorTag/ErrorTag.js +19 -0
- package/dist/components/Analytics/Histogram/Histogram.js +200 -0
- package/dist/components/Analytics/Histogram/utils.js +45 -0
- package/dist/components/AutocompleteInput/AutocompleteInputValue.js +21 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +126 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +83 -0
- package/dist/components/Breadcrumb/constants.js +20 -0
- package/dist/components/Button/Button.js +53 -0
- package/dist/components/Button/ButtonWrappers.js +40 -0
- package/dist/components/Button/constants.js +29 -0
- package/dist/components/Button/utils.js +11 -0
- package/dist/components/ButtonDropdown/ButtonDropdown.js +33 -0
- package/dist/components/ButtonDropdown/constants.js +8 -0
- package/dist/components/CaptionText/CaptionText.js +27 -0
- package/dist/components/Checkbox/Checkbox.js +64 -0
- package/dist/components/Checkbox/constants.js +4 -0
- package/dist/components/CloseButton/CloseButton.js +27 -0
- package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +84 -0
- package/dist/components/ConfirmationPopup/ConfirmationPopup.js +75 -0
- package/dist/components/ConfirmationPopup/constants.js +32 -0
- package/dist/components/DraggableItem/DraggableItem.js +61 -0
- package/dist/components/DraggableItem/constants.js +6 -0
- package/dist/components/Dropdown/Dropdown.js +293 -0
- package/dist/components/Dropdown/DropdownSubMenuItem.js +121 -0
- package/dist/components/Dropdown/constants.js +24 -0
- package/dist/components/DropdownIcon/DropdownIcon.js +92 -0
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +75 -0
- package/dist/components/EllipsisTooltip/constants.js +4 -0
- package/dist/components/FabButton/FabButton.js +35 -0
- package/dist/components/FileIcon/FileIcon.js +37 -0
- package/dist/components/FileIcon/constants.js +60 -0
- package/dist/components/FileManager/FileManager.js +887 -0
- package/dist/components/FileManager/FileManagerContext.js +5 -0
- package/dist/components/FileManager/FileManagerProvider.js +770 -0
- package/dist/components/FileManager/FileManagerTooltip.js +92 -0
- package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +293 -0
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +194 -0
- package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +52 -0
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +103 -0
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +5 -0
- package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +56 -0
- package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +69 -0
- package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +100 -0
- package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +93 -0
- package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +165 -0
- package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +6 -0
- package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +120 -0
- package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +119 -0
- package/dist/components/FileManager/components/FileMetadataPopup/constants.js +9 -0
- package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +180 -0
- package/dist/components/FileManager/components/FoldersTree/constants.js +9 -0
- package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +51 -0
- package/dist/components/FileManager/constants.js +28 -0
- package/dist/components/FileManager/errors.js +10 -0
- package/dist/components/FileManager/hooks/use-bulk-actions.js +143 -0
- package/dist/components/FileManager/hooks/use-collapse-tree.js +22 -0
- package/dist/components/FileManager/hooks/use-conflict-resolution.js +158 -0
- package/dist/components/FileManager/hooks/use-current-path.js +29 -0
- package/dist/components/FileManager/hooks/use-file-clipboard.js +154 -0
- package/dist/components/FileManager/hooks/use-file-delete.js +39 -0
- package/dist/components/FileManager/hooks/use-file-download.js +16 -0
- package/dist/components/FileManager/hooks/use-file-manager-columns.js +106 -0
- package/dist/components/FileManager/hooks/use-file-manager-context.js +13 -0
- package/dist/components/FileManager/hooks/use-file-manager-tabs.js +23 -0
- package/dist/components/FileManager/hooks/use-file-metadata.js +20 -0
- package/dist/components/FileManager/hooks/use-file-search.js +90 -0
- package/dist/components/FileManager/hooks/use-file-upload.js +338 -0
- package/dist/components/FileManager/hooks/use-folder-creation.js +151 -0
- package/dist/components/FileManager/hooks/use-grid-actions-column.js +65 -0
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +188 -0
- package/dist/components/FileManager/hooks/use-item-renaming.js +124 -0
- package/dist/components/FileManager/hooks/use-new-actions.js +67 -0
- package/dist/components/FileManager/hooks/use-paths-selection.js +28 -0
- package/dist/components/FileManager/hooks/use-show-hidden-files.js +20 -0
- package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +39 -0
- package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +42 -0
- package/dist/components/FileManager/hooks/use-trigger-view-rename.js +25 -0
- package/dist/components/FileManager/utils.js +121 -0
- package/dist/components/FileName/FileName.js +68 -0
- package/dist/components/FolderName/FolderName.js +57 -0
- package/dist/components/FormItem/FormItem.js +90 -0
- package/dist/components/FormItem/constants.js +9 -0
- package/dist/components/FormPopup/FormPopup.js +59 -0
- package/dist/components/FormPopup/constants.js +6 -0
- package/dist/components/Grid/Grid.js +333 -0
- package/dist/components/Grid/constants.js +33 -0
- package/dist/components/Grid/renderers/DateCellRenderer.js +27 -0
- package/dist/components/Grid/renderers/constants.js +25 -0
- package/dist/components/Icon/Icon.js +6 -0
- package/dist/components/IconButton/IconButton.js +40 -0
- package/dist/components/IconButton/IconButtonWrappers.js +48 -0
- package/dist/components/InfoButton/InfoButton.js +32 -0
- package/dist/components/InfoButton/constants.js +4 -0
- package/dist/components/Input/Button/InputButton.js +37 -0
- package/dist/components/Input/Button/constants.js +4 -0
- package/dist/components/Input/Input.js +120 -0
- package/dist/components/Input/utils.js +37 -0
- package/dist/components/InputPopup/InputPopup.js +174 -0
- package/dist/components/JsonEditor/JsonEditor.js +64 -0
- package/dist/components/JsonEditor/lazy.js +4 -0
- package/dist/components/Label/Label.js +27 -0
- package/dist/components/LabelledText/LabelledText.js +37 -0
- package/dist/components/LoadFileArea/EmptyFileArea.js +130 -0
- package/dist/components/LoadFileArea/FilledDropZone.js +80 -0
- package/dist/components/LoadFileArea/FilledInput.js +29 -0
- package/dist/components/LoadFileArea/LoadFileArea.js +70 -0
- package/dist/components/LoadFileArea/LoadFileAreaField.js +128 -0
- package/dist/components/Loader/Loader.js +40 -0
- package/dist/components/Loader/constants.js +5 -0
- package/dist/components/MarkdownEditor/MarkdownEditor.js +37 -0
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +82 -0
- package/dist/components/MarkdownEditor/lazy.js +4 -0
- package/dist/components/New/Accordion/Accordion.js +103 -0
- package/dist/components/New/Button/Button.js +76 -0
- package/dist/components/New/Button/ButtonWrappers.js +44 -0
- package/dist/components/New/Button/constants.js +27 -0
- package/dist/components/New/Button/utils.js +11 -0
- package/dist/components/New/ButtonDropdown/ButtonDropdown.js +28 -0
- package/dist/components/New/ButtonDropdown/constants.js +17 -0
- package/dist/components/New/Calendar/Calendar.js +343 -0
- package/dist/components/New/Calendar/constants.js +57 -0
- package/dist/components/New/Calendar/utils.js +77 -0
- package/dist/components/New/CaptionText/CaptionText.js +27 -0
- package/dist/components/New/CardShell/CardShell.js +22 -0
- package/dist/components/New/Checkbox/Checkbox.js +92 -0
- package/dist/components/New/Checkbox/CheckboxBox.js +34 -0
- package/dist/components/New/Checkbox/constants.js +8 -0
- package/dist/components/New/CloseButton/CloseButton.js +33 -0
- package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +108 -0
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +78 -0
- package/dist/components/New/ConfirmationPopup/constants.js +27 -0
- package/dist/components/New/Dropdown/Dropdown.js +304 -0
- package/dist/components/New/Dropdown/DropdownSubMenuItem.js +85 -0
- package/dist/components/New/Dropdown/constants.js +28 -0
- package/dist/components/New/Dropdown/item-mark.js +6 -0
- package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +45 -0
- package/dist/components/New/EllipsisTooltip/use-truncation.js +18 -0
- package/dist/components/New/FileDropzone/FileDropzone.js +135 -0
- package/dist/components/New/FolderPath/FolderPath.js +64 -0
- package/dist/components/New/Grid/Grid.js +301 -0
- package/dist/components/New/Grid/components/SelectionCell.js +50 -0
- package/dist/components/New/Grid/components/SelectionHeader.js +46 -0
- package/dist/components/New/Grid/constants.js +44 -0
- package/dist/components/New/Grid/renderers/DateCellRenderer.js +27 -0
- package/dist/components/New/Grid/renderers/constants.js +25 -0
- package/dist/components/New/Highlight/Highlight.js +50 -0
- package/dist/components/New/IconButton/IconButton.js +46 -0
- package/dist/components/New/IconButton/IconButtonWrappers.js +40 -0
- package/dist/components/New/InfoButton/InfoButton.js +39 -0
- package/dist/components/New/InlineSelect/InlineSelect.js +96 -0
- package/dist/components/New/Input/Button/InputButton.js +38 -0
- package/dist/components/New/Input/Button/constants.js +4 -0
- package/dist/components/New/Input/Input.js +169 -0
- package/dist/components/New/Input/utils.js +37 -0
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +101 -0
- package/dist/components/New/InteractiveTooltip/constants.js +6 -0
- package/dist/components/New/Label/Label.js +42 -0
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +41 -0
- package/dist/components/New/MarkdownEditor/constants.js +43 -0
- package/dist/components/New/MarkdownEditor/lazy.js +4 -0
- package/dist/components/New/MenuItem/MenuItem.js +108 -0
- package/dist/components/New/MenuItem/constants.js +16 -0
- package/dist/components/New/NoDataContent/NoDataContent.js +54 -0
- package/dist/components/New/Notification/Notification.js +67 -0
- package/dist/components/New/Notification/NotificationWrapper.js +61 -0
- package/dist/components/New/Notification/constants.js +32 -0
- package/dist/components/New/NumberInput/NumberInput.js +41 -0
- package/dist/components/New/PasswordInput/PasswordInput.js +54 -0
- package/dist/components/New/Popup/Popup.js +164 -0
- package/dist/components/New/Popup/constants.js +17 -0
- package/dist/components/New/Radio/Radio.js +100 -0
- package/dist/components/New/RadioGroup/RadioGroup.js +81 -0
- package/dist/components/New/RadioGroup/constants.js +11 -0
- package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +138 -0
- package/dist/components/New/RadioGroupPopupField/constants.js +11 -0
- package/dist/components/New/ResizableContainer/ConditionalResizableContainer.js +6 -0
- package/dist/components/New/ResizableContainer/ResizableContainer.js +106 -0
- package/dist/components/New/ResizableContainer/components/ResizeHandle.js +85 -0
- package/dist/components/New/Search/Search.js +74 -0
- package/dist/components/New/SegmentedControl/SegmentedControl.js +92 -0
- package/dist/components/New/SegmentedControl/constants.js +19 -0
- package/dist/components/New/Select/MultiSelectTags.js +23 -0
- package/dist/components/New/Select/Select.js +379 -0
- package/dist/components/New/Select/SelectSubMenuItem.js +101 -0
- package/dist/components/New/Select/constants.js +42 -0
- package/dist/components/New/Slider/Slider.js +112 -0
- package/dist/components/New/Switch/Switch.js +95 -0
- package/dist/components/New/Tabs/Tabs.js +95 -0
- package/dist/components/New/Tag/Tag.js +76 -0
- package/dist/components/New/Tag/constants.js +17 -0
- package/dist/components/New/TagInput/TagInput.js +197 -0
- package/dist/components/New/TagInput/utils.js +21 -0
- package/dist/components/New/Textarea/Textarea.js +55 -0
- package/dist/components/New/ThemeScope/ThemeScope.js +14 -0
- package/dist/components/New/ToggleIconButton/ToggleIconButton.js +54 -0
- package/dist/components/New/Tooltip/Tooltip.js +19 -0
- package/dist/components/New/Tooltip/TooltipContainer.js +12 -0
- package/dist/components/New/Tooltip/TooltipContent.js +45 -0
- package/dist/components/New/Tooltip/TooltipContext.js +67 -0
- package/dist/components/New/Tooltip/TooltipTrigger.js +45 -0
- package/dist/components/New/Tooltip/constants.js +8 -0
- package/dist/components/New/constants/icon.js +4 -0
- package/dist/components/New/constants/overlay.js +27 -0
- package/dist/components/NoDataContent/NoDataContent.js +45 -0
- package/dist/components/Notification/Notification.js +67 -0
- package/dist/components/Notification/constants.js +24 -0
- package/dist/components/NumberInput/NumberInput.js +41 -0
- package/dist/components/Pagination/Pagination.js +80 -0
- package/dist/components/Pagination/utils.js +10 -0
- package/dist/components/PasswordInput/Icons/HideIcon.js +16 -0
- package/dist/components/PasswordInput/Icons/ShowIcon.js +16 -0
- package/dist/components/PasswordInput/PasswordInput.js +21 -0
- package/dist/components/Popup/Popup.js +110 -0
- package/dist/components/Popup/constants.js +12 -0
- package/dist/components/ProgressBar/ProgressBar.js +58 -0
- package/dist/components/RadioButton/RadioButton.js +103 -0
- package/dist/components/RadioGroup/RadioGroup.js +92 -0
- package/dist/components/RadioGroup/constants.js +10 -0
- package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +101 -0
- package/dist/components/RemoveButton/RemoveButton.js +30 -0
- package/dist/components/ResizableContainer/ConditionalResizableContainer.js +6 -0
- package/dist/components/ResizableContainer/ResizableContainer.js +79 -0
- package/dist/components/ResizableContainer/components/ResizeHandle.js +20 -0
- package/dist/components/ResizableContainer/components/ResizeIcon.js +11 -0
- package/dist/components/SchemaRenderer/SchemaRenderer.js +150 -0
- package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +41 -0
- package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +74 -0
- package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +118 -0
- package/dist/components/SchemaRenderer/components/SchemaField.js +78 -0
- package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +114 -0
- package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +184 -0
- package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
- package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +192 -0
- package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +161 -0
- package/dist/components/SchemaRenderer/components/SchemaSection.js +81 -0
- package/dist/components/SchemaRenderer/context.js +12 -0
- package/dist/components/SchemaRenderer/types.js +27 -0
- package/dist/components/SchemaRenderer/utils.js +258 -0
- package/dist/components/Search/Search.js +63 -0
- package/dist/components/Search/constants.js +27 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +87 -0
- package/dist/components/SegmentedControl/constants.js +8 -0
- package/dist/components/Select/MultiSelectTags.js +23 -0
- package/dist/components/Select/Select.js +435 -0
- package/dist/components/Select/SelectSubMenuItem.js +90 -0
- package/dist/components/Select/constants.js +15 -0
- package/dist/components/SelectField/SelectField.js +66 -0
- package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
- package/dist/components/Skeleton/Skeleton.js +90 -0
- package/dist/components/Skeleton/utils.js +16 -0
- package/dist/components/Slider/Slider.js +158 -0
- package/dist/components/Spinner/Spinner.js +30 -0
- package/dist/components/Steps/Step.js +34 -0
- package/dist/components/Steps/Steps.js +27 -0
- package/dist/components/Steps/utils.js +42 -0
- package/dist/components/Switch/Switch.js +70 -0
- package/dist/components/Tab/Tab.js +65 -0
- package/dist/components/Tabs/Tabs.js +213 -0
- package/dist/components/Tabs/constants.js +4 -0
- package/dist/components/Tag/Tag.js +37 -0
- package/dist/components/TagInput/TagInput.js +179 -0
- package/dist/components/Textarea/Textarea.js +43 -0
- package/dist/components/Tooltip/Tooltip.js +30 -0
- package/dist/components/Tooltip/TooltipContainer.js +12 -0
- package/dist/components/Tooltip/TooltipContent.js +40 -0
- package/dist/components/Tooltip/TooltipContext.js +66 -0
- package/dist/components/Tooltip/TooltipTrigger.js +33 -0
- package/dist/components-manifest.json +1260 -172
- package/dist/{JsonEditor-CFkmn69x.js → constants/editor.js} +5 -63
- package/dist/constants/file-grid-columns.js +176 -0
- package/dist/constants/icon.js +10 -0
- package/dist/constants/validation.js +11 -0
- package/dist/dial-ui-kit.cjs +2 -0
- package/dist/dial-ui-kit.js +416 -0
- package/dist/editor-BKQqPhwX.cjs +1 -0
- package/dist/editors.cjs +1 -0
- package/dist/editors.js +12 -0
- package/dist/file-manager.cjs +1 -0
- package/dist/file-manager.js +22 -0
- package/dist/grid.cjs +1 -0
- package/dist/grid.js +30 -0
- package/dist/hooks/use-editable-item.js +94 -0
- package/dist/hooks/use-flexible-actions.js +72 -0
- package/dist/hooks/use-has-hover.js +17 -0
- package/dist/hooks/use-is-mobile-screen.js +12 -0
- package/dist/hooks/use-is-tablet-screen.js +12 -0
- package/dist/hooks/use-screen-type.js +14 -0
- package/dist/hooks/use-width-breakpoint.js +15 -0
- package/dist/icon-CrGVkVpG.cjs +1 -0
- package/dist/icon-DhjrDQ8I.cjs +1 -0
- package/dist/index.css +2 -2
- package/dist/lazy-CJ-0Pjkj.cjs +1 -0
- package/dist/merge-classes-Dipy1Ih1.cjs +1 -0
- package/dist/migration-guides/0.14.0/button-tooltip-2-0.md +111 -0
- package/dist/migration-guides/0.14.0/select-multiselect-option-row.md +99 -0
- package/dist/migration-guides/0.14.0/shadow-token-per-step-rename.md +139 -0
- package/dist/migration-guides/0.14.0/tag-single-size.md +121 -0
- package/dist/migration-guides/README.md +4 -0
- package/dist/models/file.js +6 -0
- package/dist/models/selection-mode.js +4 -0
- package/dist/models/step.js +4 -0
- package/dist/node_modules/@react-dnd/asap/dist/AsapQueue.js +39 -0
- package/dist/node_modules/@react-dnd/asap/dist/RawTask.js +17 -0
- package/dist/node_modules/@react-dnd/asap/dist/TaskFactory.js +16 -0
- package/dist/node_modules/@react-dnd/asap/dist/asap.js +9 -0
- package/dist/node_modules/@react-dnd/asap/dist/makeRequestCall.js +62 -0
- package/dist/node_modules/@react-dnd/invariant/dist/index.js +22 -0
- package/dist/node_modules/@react-dnd/shallowequal/dist/index.js +25 -0
- package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +39799 -0
- package/dist/node_modules/ag-grid-react/dist/package/index.esm.js +1989 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js +70 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/drop.js +54 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js +18 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/hover.js +42 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/index.js +17 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js +13 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js +12 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/types.js +9 -0
- package/dist/node_modules/dnd-core/dist/actions/registry.js +43 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js +41 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js +115 -0
- package/dist/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js +96 -0
- package/dist/node_modules/dnd-core/dist/contracts.js +21 -0
- package/dist/node_modules/dnd-core/dist/createDragDropManager.js +19 -0
- package/dist/node_modules/dnd-core/dist/interfaces.js +7 -0
- package/dist/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js +30 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOffset.js +50 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOperation.js +78 -0
- package/dist/node_modules/dnd-core/dist/reducers/index.js +42 -0
- package/dist/node_modules/dnd-core/dist/reducers/refCount.js +16 -0
- package/dist/node_modules/dnd-core/dist/reducers/stateId.js +6 -0
- package/dist/node_modules/dnd-core/dist/utils/coords.js +26 -0
- package/dist/node_modules/dnd-core/dist/utils/dirtiness.js +12 -0
- package/dist/node_modules/dnd-core/dist/utils/equality.js +17 -0
- package/dist/node_modules/dnd-core/dist/utils/getNextUniqueId.js +7 -0
- package/dist/node_modules/dnd-core/dist/utils/js_utils.js +36 -0
- package/dist/node_modules/dnd-core/dist/utils/matchesType.js +8 -0
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/mime-db/db.json.js +2527 -0
- package/dist/node_modules/mime-db/index.js +8 -0
- package/dist/node_modules/mime-types/index.js +70 -0
- package/dist/node_modules/mime-types/mimeScore.js +38 -0
- package/dist/node_modules/re-resizable/lib/index.js +424 -0
- package/dist/node_modules/re-resizable/lib/resizer.js +49 -0
- package/dist/node_modules/react-dnd/dist/core/DndContext.js +7 -0
- package/dist/node_modules/react-dnd/dist/core/DndProvider.js +66 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollectedProps.js +11 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +22 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +25 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +21 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +20 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +19 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +22 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +15 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +13 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +23 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDragDropManager.js +10 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js +21 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/connectors.js +12 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useAccept.js +13 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDrop.js +16 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js +18 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js +18 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js +15 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js +23 -0
- package/dist/node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/node_modules/react-dnd/dist/hooks/useMonitorOutput.js +20 -0
- package/dist/node_modules/react-dnd/dist/hooks/useOptionalFactory.js +10 -0
- package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +88 -0
- package/dist/node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js +59 -0
- package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +87 -0
- package/dist/node_modules/react-dnd/dist/internals/TargetConnector.js +57 -0
- package/dist/node_modules/react-dnd/dist/internals/isRef.js +9 -0
- package/dist/node_modules/react-dnd/dist/internals/registration.js +18 -0
- package/dist/node_modules/react-dnd/dist/internals/wrapConnectorHooks.js +46 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js +10 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js +22 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js +274 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js +59 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js +43 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js +10 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js +24 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js +48 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeTypes.js +7 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OffsetUtils.js +70 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OptionsReader.js +22 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/index.js +7 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js +22 -0
- package/dist/node_modules/redux/es/redux.js +158 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2924 -0
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +4 -2
- package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +1 -4
- package/dist/src/components/Grid/renderers/utils.d.ts +1 -2
- package/dist/src/components/JsonEditor/lazy.d.ts +14 -0
- package/dist/src/components/MarkdownEditor/lazy.d.ts +7 -0
- package/dist/src/components/New/Button/Button.d.ts +4 -3
- package/dist/src/components/New/Checkbox/Checkbox.d.ts +4 -0
- package/dist/src/components/New/Checkbox/CheckboxBox.d.ts +30 -0
- package/dist/src/components/New/CollapsibleSidebar/CollapsibleSidebar.d.ts +82 -0
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +10 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +5 -2
- package/dist/src/components/New/Dropdown/item-mark.d.ts +15 -0
- package/dist/src/components/New/EllipsisTooltip/EllipsisTooltip.d.ts +1 -1
- package/dist/src/components/New/EllipsisTooltip/use-truncation.d.ts +5 -0
- package/dist/src/components/New/Grid/Grid.d.ts +124 -0
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +21 -0
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +14 -0
- package/dist/src/components/New/Grid/constants.d.ts +61 -0
- package/dist/src/components/New/Grid/renderers/DateCellRenderer.d.ts +48 -0
- package/dist/src/components/New/Grid/renderers/constants.d.ts +5 -0
- package/dist/src/components/New/IconButton/IconButton.d.ts +4 -4
- package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +74 -0
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +26 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +7 -0
- package/dist/src/components/New/MenuItem/MenuItem.d.ts +68 -0
- package/dist/src/components/New/MenuItem/constants.d.ts +5 -0
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +48 -0
- package/dist/src/components/New/Popup/Popup.d.ts +48 -9
- package/dist/src/components/New/Popup/constants.d.ts +7 -0
- package/dist/src/components/New/ResizableContainer/ConditionalResizableContainer.d.ts +34 -0
- package/dist/src/components/New/ResizableContainer/ResizableContainer.d.ts +77 -0
- package/dist/src/components/New/ResizableContainer/components/ResizeHandle.d.ts +21 -0
- package/dist/src/components/New/SegmentedControl/constants.d.ts +2 -2
- package/dist/src/components/New/Select/Select.d.ts +14 -2
- package/dist/src/components/New/Select/SelectSubMenuItem.d.ts +3 -0
- package/dist/src/components/New/Select/constants.d.ts +12 -5
- package/dist/src/components/New/Slider/Slider.d.ts +70 -0
- package/dist/src/components/New/Tag/Tag.d.ts +26 -4
- package/dist/src/components/New/Tag/constants.d.ts +23 -0
- package/dist/src/components/New/Textarea/Textarea.d.ts +8 -2
- package/dist/src/components/New/ThemeScope/ThemeScope.d.ts +46 -0
- package/dist/src/components/New/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/New/Tooltip/TooltipContent.d.ts +4 -3
- package/dist/src/components/New/Tooltip/constants.d.ts +15 -1
- package/dist/src/components/New/constants/icon.d.ts +22 -0
- package/dist/src/components/New/constants/overlay.d.ts +19 -3
- package/dist/src/components/Tooltip/TooltipContent.d.ts +4 -0
- package/dist/src/hooks/use-has-hover.d.ts +20 -0
- package/dist/src/index.d.ts +33 -4
- package/dist/src/models/dropdown.d.ts +26 -0
- package/dist/src/models/select.d.ts +30 -0
- package/dist/src/subpaths/editors.d.ts +22 -0
- package/dist/src/subpaths/file-manager.d.ts +21 -0
- package/dist/src/subpaths/grid.d.ts +25 -0
- package/dist/src/types/menu-item.d.ts +21 -0
- package/dist/src/types/tag.d.ts +4 -0
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +1 -0
- package/dist/src/utils/__tests__/pointer.spec.d.ts +1 -0
- package/dist/src/utils/element-size-observer.d.ts +26 -0
- package/dist/src/utils/grid-comparators.d.ts +4 -0
- package/dist/src/utils/grid-date.d.ts +7 -0
- package/dist/src/utils/grid-registration.d.ts +16 -0
- package/dist/src/utils/grid-registration.spec.d.ts +1 -0
- package/dist/src/utils/pointer.d.ts +29 -0
- package/dist/types/analytics.js +4 -0
- package/dist/types/button.js +5 -0
- package/dist/types/calendar.js +4 -0
- package/dist/types/caption.js +4 -0
- package/dist/types/confirmation-popup.js +4 -0
- package/dist/types/dropdown.js +6 -0
- package/dist/types/editor.js +4 -0
- package/dist/types/file-manager.js +12 -0
- package/dist/types/flexible-actions.js +4 -0
- package/dist/types/form-item.js +4 -0
- package/dist/types/item.js +4 -0
- package/dist/types/menu-item.js +4 -0
- package/dist/types/notification.js +5 -0
- package/dist/types/popup.js +4 -0
- package/dist/types/radio-group.js +4 -0
- package/dist/types/resizable-container.js +4 -0
- package/dist/types/screen.js +4 -0
- package/dist/types/select.js +5 -0
- package/dist/types/size.js +4 -0
- package/dist/types/skeleton.js +6 -0
- package/dist/types/tab.js +6 -0
- package/dist/types/tag.js +4 -0
- package/dist/types/tooltip.js +4 -0
- package/dist/use-file-manager-tabs-CIQjiyK-.cjs +3 -0
- package/dist/utils/accessible-name.js +6 -0
- package/dist/utils/debounce.js +9 -0
- package/dist/utils/element-size-observer.js +24 -0
- package/dist/utils/file-accept.js +16 -0
- package/dist/utils/flat-to-hierarchy-convertor.js +86 -0
- package/dist/utils/grid-comparators.js +17 -0
- package/dist/utils/grid-date.js +20 -0
- package/dist/utils/grid-registration.js +8 -0
- package/dist/utils/merge-classes.js +8 -0
- package/dist/utils/mobile.js +11 -0
- package/dist/utils/path.js +4 -0
- package/dist/utils/pointer.js +5 -0
- package/dist/utils/sub-menu-floating.js +78 -0
- package/package.json +21 -8
- package/dist/JsonEditor-CPk58Te4.cjs +0 -1
- package/dist/MarkdownEditor-ALJ17x82.js +0 -75
- package/dist/MarkdownEditor-CqMQgd-3.js +0 -35
- package/dist/MarkdownEditor-Cz2HKRcy.cjs +0 -1
- package/dist/MarkdownEditor-DgPlyntV.cjs +0 -1
- package/dist/dial-ui-kit.cjs.js +0 -1
- package/dist/dial-ui-kit.es.js +0 -218
- package/dist/index-BnqboA_3.js +0 -66738
- package/dist/index-CBaBO6e_.cjs +0 -71
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { FC, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { LabelProps } from '../Label/Label';
|
|
3
|
+
type NativeInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'defaultValue' | 'onChange' | 'size'>;
|
|
4
|
+
export interface SliderProps extends NativeInputProps {
|
|
5
|
+
value: number;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
labelProps?: LabelProps;
|
|
11
|
+
/** 2-element or 3-element label tuple rendered below the track */
|
|
12
|
+
labels?: [string, string] | [string, string, string];
|
|
13
|
+
/** Custom formatter for the displayed value; defaults to fixed-decimal based on step */
|
|
14
|
+
formatValue?: (value: number) => string;
|
|
15
|
+
/** Renders the current value at the end of the label row */
|
|
16
|
+
showValue?: boolean;
|
|
17
|
+
caption?: string;
|
|
18
|
+
error?: string;
|
|
19
|
+
onChange?: (value: number) => void;
|
|
20
|
+
containerClassName?: string;
|
|
21
|
+
/** Additional classes for the unfilled track */
|
|
22
|
+
trackClassName?: string;
|
|
23
|
+
/** Additional classes for the filled portion of the track */
|
|
24
|
+
fillClassName?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A range slider from the 2.0 design system.
|
|
28
|
+
* aliases: RangeInput|TemperatureSlider|RangeSlider
|
|
29
|
+
* Design system 2.0
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <Slider
|
|
34
|
+
* id="temperature"
|
|
35
|
+
* labelProps={{ label: 'Temperature' }}
|
|
36
|
+
* value={temperature}
|
|
37
|
+
* labels={['Precise', 'Neutral', 'Creative']}
|
|
38
|
+
* onChange={setTemperature}
|
|
39
|
+
* />
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* Built on a native `<input type="range">`, so the browser owns the drag, the
|
|
43
|
+
* arrow / Home / End steps, touch and the writing direction. Only the thumb is
|
|
44
|
+
* restyled; the track and its fill are separate elements so the fill can be
|
|
45
|
+
* driven from `value`. Thumb states live in `slider.scss`, because a
|
|
46
|
+
* pseudo-element cannot be reached by a utility class.
|
|
47
|
+
*
|
|
48
|
+
* The interactive row is 24px tall and spans the full width, so the pointer
|
|
49
|
+
* target meets WCAG 2.5.8 (Minimum) but not the 44px of 2.5.5 (Enhanced) — see
|
|
50
|
+
* the exception table in the README.
|
|
51
|
+
*
|
|
52
|
+
* @param value - Current slider value
|
|
53
|
+
* @param [min=0] - Minimum value
|
|
54
|
+
* @param [max=1] - Maximum value
|
|
55
|
+
* @param [step=0.1] - Step increment
|
|
56
|
+
* @param [disabled=false] - Whether the slider is disabled
|
|
57
|
+
* @param [labelProps] - Props of the {@link Label} rendered above the track
|
|
58
|
+
* @param [labels] - 2 or 3 strings rendered below the track (start, [middle,] end)
|
|
59
|
+
* @param [formatValue] - Custom formatter for the displayed value; also becomes the announced `aria-valuetext`
|
|
60
|
+
* @param [showValue=false] - Renders the current value at the end of the label row
|
|
61
|
+
* @param [caption] - Helper text rendered below the track, and described by the slider
|
|
62
|
+
* @param [error] - Error message rendered below the track; replaces the caption
|
|
63
|
+
* @param [onChange] - Callback fired with the new value
|
|
64
|
+
* @param [containerClassName] - Additional classes for the outer container
|
|
65
|
+
* @param [trackClassName] - Additional classes for the unfilled track
|
|
66
|
+
* @param [fillClassName] - Additional classes for the filled portion of the track
|
|
67
|
+
* @param [className] - Additional classes for the underlying range input
|
|
68
|
+
*/
|
|
69
|
+
export declare const Slider: FC<SliderProps>;
|
|
70
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { TagAppearance } from '../../../types/tag';
|
|
3
3
|
type NativeTagProps = Omit<HTMLAttributes<HTMLSpanElement>, 'children'>;
|
|
4
4
|
export interface TagProps extends NativeTagProps {
|
|
5
5
|
label: string;
|
|
6
6
|
icon?: ReactNode;
|
|
7
|
-
|
|
7
|
+
appearance?: TagAppearance;
|
|
8
8
|
selected?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
closable?: boolean;
|
|
@@ -16,6 +16,10 @@ export interface TagProps extends NativeTagProps {
|
|
|
16
16
|
* aliases: Chip|Pill
|
|
17
17
|
* Design system 2.0
|
|
18
18
|
*
|
|
19
|
+
* The tag has one height — the 32px pill of the 2.0 design. There is no `size`
|
|
20
|
+
* prop: a tag sizes itself, and a caller that needs a different height is
|
|
21
|
+
* usually reaching for a button.
|
|
22
|
+
*
|
|
19
23
|
* The label truncates rather than wrapping, and carries a native `title` so the
|
|
20
24
|
* full text stays reachable when it does.
|
|
21
25
|
*
|
|
@@ -24,18 +28,36 @@ export interface TagProps extends NativeTagProps {
|
|
|
24
28
|
* the caller: a clickable tag that is also closable gives a screen reader two
|
|
25
29
|
* actions with no way to tell which one it landed on.
|
|
26
30
|
*
|
|
31
|
+
* No tag draws a rim; the two appearances are told apart by their fill.
|
|
32
|
+
* `TagAppearance.Selectable` is the filter chip of the 2.0 design: no fill
|
|
33
|
+
* at all until it is selected, one hover tint shared by both states, a semibold
|
|
34
|
+
* label once selected, and the state carried on `aria-pressed` rather than by
|
|
35
|
+
* the tint alone. Give it an `onClick` — a selectable tag that cannot be
|
|
36
|
+
* activated is a colour and nothing else.
|
|
37
|
+
*
|
|
38
|
+
* Selecting one therefore changes its width by the difference between the
|
|
39
|
+
* regular and semibold label. In a wrapping filter row that is what the design
|
|
40
|
+
* asks for; if a fixed width matters, give the chip one.
|
|
41
|
+
*
|
|
27
42
|
* @example
|
|
28
43
|
* ```tsx
|
|
29
44
|
* <Tag label="TypeScript" />
|
|
30
45
|
* <Tag label="TypeScript" closable onRemove={() => remove('TypeScript')} />
|
|
31
46
|
* <Tag label="Drafts" selected onClick={() => toggle('Drafts')} />
|
|
47
|
+
* <Tag
|
|
48
|
+
* label="Drafts"
|
|
49
|
+
* appearance={TagAppearance.Selectable}
|
|
50
|
+
* selected={isSelected}
|
|
51
|
+
* onClick={() => toggle('Drafts')}
|
|
52
|
+
* />
|
|
32
53
|
* ```
|
|
33
54
|
*
|
|
34
55
|
* @param label - Text content displayed inside the tag.
|
|
35
56
|
* @param [icon] - Icon rendered before the label.
|
|
36
|
-
* @param [
|
|
57
|
+
* @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.
|
|
37
59
|
* @param [selected=false] - Applies the accent-tinted selected styling.
|
|
38
|
-
* @param [disabled=false] -
|
|
60
|
+
* @param [disabled=false] - Stops the tag responding: no click handling, no remove control. The design defines no disabled tag, so the colours stay put.
|
|
39
61
|
* @param [closable=false] - Renders the remove button. Needs `onRemove` to appear.
|
|
40
62
|
* @param [removeLabel] - Accessible name of the remove button; defaults to `Remove <label>`.
|
|
41
63
|
* @param [onRemove] - Called when the remove button is clicked. The click does not bubble to `onClick`.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TagAppearance } from '../../../types/tag';
|
|
2
|
+
/**
|
|
3
|
+
* Geometry and layout shared by every tag. No transition: the design animates
|
|
4
|
+
* the hover and selected steps instantly (0ms), so the fill switches on the
|
|
5
|
+
* same frame as the pointer.
|
|
6
|
+
*/
|
|
7
|
+
export declare const tagBaseClassName = "inline-flex h-[32px] max-w-full items-center gap-1 rounded-full px-3";
|
|
8
|
+
/**
|
|
9
|
+
* Fill and text colour per appearance and selection. No tag draws a rim: the
|
|
10
|
+
* two appearances are told apart by their fill — `outlined` sits on the raised
|
|
11
|
+
* layer, `selectable` on nothing until it is selected, where it also steps its
|
|
12
|
+
* label up from secondary to primary.
|
|
13
|
+
*/
|
|
14
|
+
export declare const tagStateClassNames: Record<TagAppearance, Record<'default' | 'selected', string>>;
|
|
15
|
+
/** Cursor and focus ring of a tag that can be activated. */
|
|
16
|
+
export declare const tagInteractiveClassName = "cursor-pointer outline-offset-0 focus-visible:outline focus-visible:outline-focus";
|
|
17
|
+
/**
|
|
18
|
+
* Hover and active step of a clickable tag — one accent tint for every
|
|
19
|
+
* appearance and both selections, as the 2.0 overlay rows do. A selected tag
|
|
20
|
+
* must not read as hovered at rest, and the label is left alone, so an
|
|
21
|
+
* unselected one never darkens into looking selected.
|
|
22
|
+
*/
|
|
23
|
+
export declare const tagHoverClassName = "hover:bg-control-accent-alpha-hover active:bg-control-accent-alpha-active";
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { DetailedHTMLProps, FC, TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { LabelProps } from '../Label/Label';
|
|
3
|
+
export declare enum TextareaResize {
|
|
4
|
+
None = "none",
|
|
5
|
+
Both = "both",
|
|
6
|
+
Horizontal = "horizontal",
|
|
7
|
+
Vertical = "vertical"
|
|
8
|
+
}
|
|
3
9
|
export interface TextareaProps extends DetailedHTMLProps<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>, HTMLTextAreaElement> {
|
|
4
10
|
labelProps?: LabelProps;
|
|
5
11
|
invalid?: boolean;
|
|
6
12
|
containerClassName?: string;
|
|
7
|
-
resize?: boolean;
|
|
13
|
+
resize?: boolean | TextareaResize;
|
|
8
14
|
error?: string;
|
|
9
15
|
caption?: string;
|
|
10
16
|
onChange?: (value: string) => void;
|
|
@@ -32,7 +38,7 @@ export interface TextareaProps extends DetailedHTMLProps<Omit<TextareaHTMLAttrib
|
|
|
32
38
|
* @param [className=""] - Additional CSS classes to apply to the textarea element
|
|
33
39
|
* @param [containerClassName=""] - Additional CSS classes to apply to the container div
|
|
34
40
|
* @param [invalid=false] - Whether the textarea has validation errors (applies error styling)
|
|
35
|
-
* @param [resize=false] - Whether the textarea
|
|
41
|
+
* @param [resize=false] - Whether/how the textarea can be resized. Accepts a boolean (`true` = both directions, `false` = none) or a {@link TextareaResize} value for a single axis (`horizontal`/`vertical`)
|
|
36
42
|
* @param [error] - Error message to display below the textarea (also adds error styling)
|
|
37
43
|
* @param [caption] - Optional caption text to display below the textarea
|
|
38
44
|
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface ThemeScopeProps {
|
|
3
|
+
/**
|
|
4
|
+
* Class name that redefines the design tokens for this subtree — typically a
|
|
5
|
+
* host-owned rule setting `--bg-*` / `--text-*` / `--stroke-*` custom
|
|
6
|
+
* properties. Multiple space-separated classes are allowed.
|
|
7
|
+
*/
|
|
8
|
+
className: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Marks a subtree as living under a host-defined token scope, so overlays this
|
|
13
|
+
* subtree opens in a portal are painted with the same tokens.
|
|
14
|
+
* Design system 2.0
|
|
15
|
+
*
|
|
16
|
+
* Redefining design tokens on a panel root re-themes everything the panel
|
|
17
|
+
* renders — until a `Dropdown`, `Popup`, `Tooltip` or `Calendar` escapes into a
|
|
18
|
+
* `FloatingPortal` at the end of `<body>`, where the scope's custom properties
|
|
19
|
+
* no longer reach it. Wrapping the panel in a `ThemeScope` re-applies the same
|
|
20
|
+
* class to those portalled overlays, so an overlay opened from a dark panel
|
|
21
|
+
* stays dark while the rest of the app keeps its own palette.
|
|
22
|
+
*
|
|
23
|
+
* The wrapper itself is `display: contents`, so it generates no box and leaves
|
|
24
|
+
* the surrounding flex or grid layout untouched — custom properties inherit
|
|
25
|
+
* through it all the same. Scopes nest: an inner scope's overlays carry the
|
|
26
|
+
* outer classes first, matching the cascade they would see in place.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```tsx
|
|
30
|
+
* // .side-panel-theme redefines --bg-*, --text-* and --stroke-* tokens.
|
|
31
|
+
* <ThemeScope className="side-panel-theme">
|
|
32
|
+
* <ConversationPanel {...props} />
|
|
33
|
+
* </ThemeScope>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @param className - Class name redefining the design tokens for this subtree
|
|
37
|
+
* @param children - The subtree painted with those tokens
|
|
38
|
+
*/
|
|
39
|
+
export declare const ThemeScope: FC<ThemeScopeProps>;
|
|
40
|
+
/**
|
|
41
|
+
* Class names of the enclosing `ThemeScope`s, outermost first, or `''` when the
|
|
42
|
+
* caller sits outside any scope. Components rendering into a `FloatingPortal`
|
|
43
|
+
* merge this onto their floating root so the tokens follow them out of the
|
|
44
|
+
* subtree.
|
|
45
|
+
*/
|
|
46
|
+
export declare const useThemeScope: () => string;
|
|
@@ -19,7 +19,7 @@ export interface TooltipProps extends TooltipContainerOptions {
|
|
|
19
19
|
* Tooltip text does not reach assistive technology unless the trigger itself
|
|
20
20
|
* carries it: pass `asChild` so the `aria-describedby` lands on the control
|
|
21
21
|
* rather than on a wrapper `<span>`, and never let a tooltip be the only
|
|
22
|
-
* accessible name of a control — it renders nothing on
|
|
22
|
+
* accessible name of a control — it renders nothing on a touch-only device.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```tsx
|
|
@@ -7,9 +7,10 @@ export interface TooltipContentProps extends HTMLProps<HTMLDivElement> {
|
|
|
7
7
|
* Design system 2.0
|
|
8
8
|
*
|
|
9
9
|
* Rendered in a portal, above popups and dropdowns, with an arrow pointing back
|
|
10
|
-
* at the trigger. Renders nothing on a
|
|
11
|
-
* to reveal it — so a control must never depend on a tooltip alone to be
|
|
12
|
-
* understood, or to have an accessible name.
|
|
10
|
+
* at the trigger. Renders nothing on a touch-only device, where no pointer can
|
|
11
|
+
* hover to reveal it — so a control must never depend on a tooltip alone to be
|
|
12
|
+
* understood, or to have an accessible name. A narrow viewport is not itself
|
|
13
|
+
* disqualifying: an embed a few hundred pixels wide still hovers on a desktop.
|
|
13
14
|
*
|
|
14
15
|
* @param children - The content to display inside the tooltip
|
|
15
16
|
* @param [className] - Additional CSS classes applied to the tooltip bubble
|
|
@@ -21,5 +21,19 @@ export declare const arrowClassName = "fill-control-inverted";
|
|
|
21
21
|
/**
|
|
22
22
|
* Tooltips sit above popups, dropdowns and the calendar (all `z-[53]`), since
|
|
23
23
|
* they can be triggered by a control inside one of them.
|
|
24
|
+
*
|
|
25
|
+
* `max-w-[376px]` is the cap the design puts on a tooltip: at `dial-small-text`
|
|
26
|
+
* that is around 60 characters a line, past which a line stops being
|
|
27
|
+
* comfortable to read. Longer text wraps instead of widening the bubble. The
|
|
28
|
+
* width stays a literal because Tailwind only sees static class strings.
|
|
29
|
+
*
|
|
30
|
+
* `shadow-xs` is the elevation the design gives a tooltip — the tightest step
|
|
31
|
+
* of the scale, which is what a bubble anchored to its trigger needs: enough to
|
|
32
|
+
* lift it off the surface underneath without reading as a floating panel, the
|
|
33
|
+
* way `shadow-md` marks a dropdown or a calendar. It matters most where the
|
|
34
|
+
* inverted surface is the lightest thing on screen, on a dark panel. The arrow
|
|
35
|
+
* takes no shadow of its own: both `xs` layers blur 4px or less, so there is
|
|
36
|
+
* nothing to see around a 7px triangle that the box's own shadow does not
|
|
37
|
+
* already carry.
|
|
24
38
|
*/
|
|
25
|
-
export declare const tooltipClassName = "z-[55] max-w-[
|
|
39
|
+
export declare const tooltipClassName = "z-[55] max-w-[376px] whitespace-pre-wrap break-words rounded-lg bg-control-inverted px-3 py-2 dial-small-text text-control-inverted shadow-xs";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon stroke (1.5px) from the 2.0 stroke scale. Tabler renders every outline
|
|
3
|
+
* icon at `stroke={2}` unless told otherwise, so the token has to be passed
|
|
4
|
+
* explicitly — a 2.0 component that omits it draws a heavier icon than the
|
|
5
|
+
* design system asks for.
|
|
6
|
+
*
|
|
7
|
+
* It is a number rather than a Tailwind utility because an icon's weight is an
|
|
8
|
+
* SVG `stroke-width` attribute on the glyph, not a border on its box. The
|
|
9
|
+
* border half of the same scale stays on plain Tailwind widths — `border`,
|
|
10
|
+
* `border-2`, `border-4`, and `border-[0.5px]` for a table divider.
|
|
11
|
+
*
|
|
12
|
+
* Exported publicly so icons a consumer passes into a 2.0 component — a button
|
|
13
|
+
* icon, a menu item, a segmented-control segment — can match the ones the
|
|
14
|
+
* components draw themselves.
|
|
15
|
+
*
|
|
16
|
+
* Two deliberate departures inside the library: the empty-state illustrations
|
|
17
|
+
* (`NoDataContent`, the grid's no-rows overlay) use a much lighter stroke,
|
|
18
|
+
* since a 1.5px line reads as a drawing at 16px and as a fence at 100px; and
|
|
19
|
+
* the checkbox glyph uses a heavier one, because it is a control mark sized to
|
|
20
|
+
* a 14px box rather than an icon from the set.
|
|
21
|
+
*/
|
|
22
|
+
export declare const DIAL_KIT_ICON_STROKE = 1.5;
|
|
@@ -17,8 +17,24 @@ export declare const overlaySubMenuClassName: string;
|
|
|
17
17
|
* reached by keyboard, and the 1.0 versions suppressed the ring outright.
|
|
18
18
|
*/
|
|
19
19
|
export declare const overlayItemClassName: string;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Tint marking the row that is currently selected, at rest: the faint step of
|
|
22
|
+
* the accent-alpha ramp, so hovering a selected row still has somewhere to go.
|
|
23
|
+
*/
|
|
24
|
+
export declare const overlayItemSelectedClassName = "bg-control-accent-alpha";
|
|
25
|
+
/**
|
|
26
|
+
* The row that is currently open in a navigation menu: the same faint tint as a
|
|
27
|
+
* selected row, with the label and its icon in the accent colour. Unlike
|
|
28
|
+
* {@link overlayItemSelectedClassName} it carries no separate mark — the colour
|
|
29
|
+
* *is* the mark, which is what the design's in-navigation state shows.
|
|
30
|
+
*/
|
|
31
|
+
export declare const overlayItemHighlightClassName: string;
|
|
32
|
+
/**
|
|
33
|
+
* A row that cannot be chosen. `overlayItemClassName` tints every row on hover
|
|
34
|
+
* and a selected row carries a tint at rest, so both have to be turned off
|
|
35
|
+
* again here — `mergeClasses` is tailwind-merge, so these later declarations
|
|
36
|
+
* win as long as the disabled classes are merged after the selected ones.
|
|
37
|
+
*/
|
|
38
|
+
export declare const overlayItemDisabledClassName: string;
|
|
23
39
|
/** Distance between the trigger and its panel, and between nested panels. */
|
|
24
40
|
export declare const overlayGap = 4;
|
|
@@ -6,6 +6,10 @@ export interface Props extends HTMLProps<HTMLDivElement> {
|
|
|
6
6
|
* The content area of a tooltip that displays the tooltip information
|
|
7
7
|
* Design system 1.0
|
|
8
8
|
*
|
|
9
|
+
* Renders nothing on a touch-only device, where no pointer can hover to reveal
|
|
10
|
+
* it. A narrow viewport is not itself disqualifying: an embed a few hundred
|
|
11
|
+
* pixels wide still hovers on a desktop.
|
|
12
|
+
*
|
|
9
13
|
* @param children - The content to display inside the tooltip
|
|
10
14
|
* @param [style] - Additional inline styles for the tooltip content
|
|
11
15
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A React hook that reports whether the device's primary pointer can hover.
|
|
3
|
+
*
|
|
4
|
+
* Tracks the `hover: none` media query rather than the viewport width, so a
|
|
5
|
+
* narrow embed on a desktop still counts as hover-capable, and re-evaluates
|
|
6
|
+
* when a hybrid device switches input — a tablet that gains a trackpad starts
|
|
7
|
+
* hovering without a reload.
|
|
8
|
+
*
|
|
9
|
+
* Defaults to `true` where the capability cannot be read (SSR, or a browser
|
|
10
|
+
* without `matchMedia`), so hover-only UI is never dropped on a guess.
|
|
11
|
+
*
|
|
12
|
+
* @returns {boolean} `true` when the pointer can hover, `false` on a touch-only device.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const hasHover = useHasHover();
|
|
16
|
+
* if (!hasHover) {
|
|
17
|
+
* return null; // Nothing would ever reveal a hover-only bubble here
|
|
18
|
+
* }
|
|
19
|
+
*/
|
|
20
|
+
export declare const useHasHover: () => boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export { RadioGroupOrientation } from './types/radio-group';
|
|
|
107
107
|
export { PopupSize } from './types/popup';
|
|
108
108
|
export { ConfirmationPopupVariant } from './types/confirmation-popup';
|
|
109
109
|
export { DropdownType, DropdownTrigger, DropdownItemType, } from './types/dropdown';
|
|
110
|
+
export { MenuItemMark } from './types/menu-item';
|
|
110
111
|
export { ElementSize } from './types/size';
|
|
111
112
|
export { ScreenResolution, TabOrientation, TabView } from './types/tab';
|
|
112
113
|
export type { DialBreadcrumbPathItem } from './models/breadcrumb';
|
|
@@ -143,8 +144,8 @@ export { NOT_ALLOWED_SYMBOLS, NOT_ALLOWED_SPACES, NOT_ALLOWED_SYMBOLS_REGEXP, NO
|
|
|
143
144
|
export { DialSchemaRenderer } from './components/SchemaRenderer/SchemaRenderer';
|
|
144
145
|
export { SchemaRendererVariant, SchemaDisplayMode, SchemaOrientation, JsonSchemaType, } from './components/SchemaRenderer/types';
|
|
145
146
|
export type { DialSchemaRendererProps, JsonSchema, JsonSchemaDef, ValidationError, } from './components/SchemaRenderer/types';
|
|
146
|
-
export
|
|
147
|
-
export
|
|
147
|
+
export { LazyDialJsonEditor } from './components/JsonEditor/lazy';
|
|
148
|
+
export { LazyDialMarkdownEditor } from './components/MarkdownEditor/lazy';
|
|
148
149
|
export { NotificationVariant, NotificationType } from './types/notification.ts';
|
|
149
150
|
export { Notification } from './components/New/Notification/Notification';
|
|
150
151
|
export { Highlight } from './components/New/Highlight/Highlight';
|
|
@@ -167,7 +168,7 @@ export type { FabButtonProps } from './components/FabButton/FabButton';
|
|
|
167
168
|
export { ButtonDropdown } from './components/New/ButtonDropdown/ButtonDropdown';
|
|
168
169
|
export type { ButtonDropdownProps } from './components/New/ButtonDropdown/ButtonDropdown';
|
|
169
170
|
export type { MarkdownEditorProps } from './components/New/MarkdownEditor/MarkdownEditor';
|
|
170
|
-
export
|
|
171
|
+
export { LazyMarkdownEditor } from './components/New/MarkdownEditor/lazy';
|
|
171
172
|
export { InlineSelect, InlineSelectTrigger, } from './components/New/InlineSelect/InlineSelect';
|
|
172
173
|
export type { InlineSelectProps, InlineSelectTriggerProps, } from './components/New/InlineSelect/InlineSelect';
|
|
173
174
|
export { Select } from './components/New/Select/Select';
|
|
@@ -178,7 +179,7 @@ export { InfoButton } from './components/New/InfoButton/InfoButton';
|
|
|
178
179
|
export type { InfoButtonProps } from './components/New/InfoButton/InfoButton';
|
|
179
180
|
export type { LabelProps } from './components/New/Label/Label';
|
|
180
181
|
export { Label } from './components/New/Label/Label';
|
|
181
|
-
export { Textarea } from './components/New/Textarea/Textarea';
|
|
182
|
+
export { Textarea, TextareaResize } from './components/New/Textarea/Textarea';
|
|
182
183
|
export { Input } from './components/New/Input/Input';
|
|
183
184
|
export type { InputProps } from './components/New/Input/Input';
|
|
184
185
|
export { PasswordInput } from './components/New/PasswordInput/PasswordInput';
|
|
@@ -193,6 +194,10 @@ export { ConfirmationPopup } from './components/New/ConfirmationPopup/Confirmati
|
|
|
193
194
|
export type { ConfirmationPopupProps } from './components/New/ConfirmationPopup/ConfirmationPopup';
|
|
194
195
|
export { Dropdown } from './components/New/Dropdown/Dropdown';
|
|
195
196
|
export type { DropdownProps } from './components/New/Dropdown/Dropdown';
|
|
197
|
+
export { ThemeScope, useThemeScope, } from './components/New/ThemeScope/ThemeScope';
|
|
198
|
+
export type { ThemeScopeProps } from './components/New/ThemeScope/ThemeScope';
|
|
199
|
+
export { MenuItem } from './components/New/MenuItem/MenuItem';
|
|
200
|
+
export type { MenuItemProps } from './components/New/MenuItem/MenuItem';
|
|
196
201
|
export type { TextareaProps } from './components/New/Textarea/Textarea';
|
|
197
202
|
export type { CaptionTextProps } from './components/New/CaptionText/CaptionText';
|
|
198
203
|
export { CaptionText, ErrorText, } from './components/New/CaptionText/CaptionText';
|
|
@@ -208,6 +213,8 @@ export { RadioGroupPopupField } from './components/New/RadioGroupPopupField/Radi
|
|
|
208
213
|
export type { RadioGroupPopupFieldProps } from './components/New/RadioGroupPopupField/RadioGroupPopupField';
|
|
209
214
|
export { Checkbox } from './components/New/Checkbox/Checkbox';
|
|
210
215
|
export type { CheckboxProps } from './components/New/Checkbox/Checkbox';
|
|
216
|
+
export { CheckboxBox } from './components/New/Checkbox/CheckboxBox';
|
|
217
|
+
export type { CheckboxBoxProps } from './components/New/Checkbox/CheckboxBox';
|
|
211
218
|
export { ToggleIconButton } from './components/New/ToggleIconButton/ToggleIconButton';
|
|
212
219
|
export type { ToggleIconButtonProps } from './components/New/ToggleIconButton/ToggleIconButton';
|
|
213
220
|
export { SegmentedControl } from './components/New/SegmentedControl/SegmentedControl';
|
|
@@ -218,11 +225,14 @@ export { FileDropzone } from './components/New/FileDropzone/FileDropzone';
|
|
|
218
225
|
export type { FileDropzoneProps } from './components/New/FileDropzone/FileDropzone';
|
|
219
226
|
export { Tag } from './components/New/Tag/Tag';
|
|
220
227
|
export type { TagProps } from './components/New/Tag/Tag';
|
|
228
|
+
export { TagAppearance } from './types/tag';
|
|
221
229
|
export { TagInput } from './components/New/TagInput/TagInput';
|
|
222
230
|
export type { TagInputProps } from './components/New/TagInput/TagInput';
|
|
223
231
|
export { Search } from './components/New/Search/Search';
|
|
224
232
|
export type { SearchProps } from './components/New/Search/Search';
|
|
225
233
|
export { matchesAccept } from './utils/file-accept';
|
|
234
|
+
export { Slider } from './components/New/Slider/Slider';
|
|
235
|
+
export type { SliderProps } from './components/New/Slider/Slider';
|
|
226
236
|
export { Tooltip } from './components/New/Tooltip/Tooltip';
|
|
227
237
|
export type { TooltipProps } from './components/New/Tooltip/Tooltip';
|
|
228
238
|
export { TooltipContainer } from './components/New/Tooltip/TooltipContainer';
|
|
@@ -231,5 +241,24 @@ export type { TooltipContentProps } from './components/New/Tooltip/TooltipConten
|
|
|
231
241
|
export { TooltipTrigger } from './components/New/Tooltip/TooltipTrigger';
|
|
232
242
|
export type { TooltipContainerOptions } from './components/New/Tooltip/TooltipContext';
|
|
233
243
|
export { TooltipPlacement } from './types/tooltip.ts';
|
|
244
|
+
export { InteractiveTooltip } from './components/New/InteractiveTooltip/InteractiveTooltip';
|
|
245
|
+
export type { InteractiveTooltipProps } from './components/New/InteractiveTooltip/InteractiveTooltip';
|
|
234
246
|
export { EllipsisTooltip } from './components/New/EllipsisTooltip/EllipsisTooltip';
|
|
235
247
|
export type { EllipsisTooltipProps } from './components/New/EllipsisTooltip/EllipsisTooltip';
|
|
248
|
+
export { CollapsibleSidebar } from './components/New/CollapsibleSidebar/CollapsibleSidebar';
|
|
249
|
+
export type { CollapsibleSidebarProps } from './components/New/CollapsibleSidebar/CollapsibleSidebar';
|
|
250
|
+
export { ResizableContainer } from './components/New/ResizableContainer/ResizableContainer';
|
|
251
|
+
export type { ResizableContainerProps } from './components/New/ResizableContainer/ResizableContainer';
|
|
252
|
+
export { ConditionalResizableContainer } from './components/New/ResizableContainer/ConditionalResizableContainer';
|
|
253
|
+
export type { ConditionalResizableContainerProps } from './components/New/ResizableContainer/ConditionalResizableContainer';
|
|
254
|
+
export { NoDataContent } from './components/New/NoDataContent/NoDataContent';
|
|
255
|
+
export type { NoDataContentProps } from './components/New/NoDataContent/NoDataContent';
|
|
256
|
+
export { Grid, GRID_SELECTION_COLUMN_ID } from './components/New/Grid/Grid';
|
|
257
|
+
export type { GridProps } from './components/New/Grid/Grid';
|
|
258
|
+
export { DateCellRenderer } from './components/New/Grid/renderers/DateCellRenderer';
|
|
259
|
+
export type { DateCellRendererProps, DateValue, } from './components/New/Grid/renderers/DateCellRenderer';
|
|
260
|
+
export { DEFAULT_DATE_FORMAT_OPTIONS, DEFAULT_LOCALE as DEFAULT_DATE_LOCALE, } from './components/New/Grid/renderers/constants';
|
|
261
|
+
export { GRID_ALIGN_RIGHT_CLASS, GRID_ROOT_CLASS, GRID_THEME_PARAMS, ROW_HEIGHT as GRID_ROW_HEIGHT, } from './components/New/Grid/constants';
|
|
262
|
+
export { DIAL_KIT_ICON_STROKE } from './components/New/constants/icon';
|
|
263
|
+
export { convertToDate } from './utils/grid-date';
|
|
264
|
+
export { baseColumnComparator, checkColDefsChanges, } from './utils/grid-comparators';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DropdownItemType } from '../types/dropdown';
|
|
2
|
+
import { MenuItemMark } from '../types/menu-item';
|
|
2
3
|
import { ReactNode, MouseEvent } from 'react';
|
|
3
4
|
export interface DropdownSubMenuHoverOptions {
|
|
4
5
|
/** Delay (ms) before the submenu opens/closes on hover. Defaults to `{ open: 80, close: 80 }`. */
|
|
@@ -15,6 +16,31 @@ export interface DropdownItem {
|
|
|
15
16
|
icon?: ReactNode;
|
|
16
17
|
disabled?: boolean;
|
|
17
18
|
danger?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Renders the item as a multiselect row: a checkbox box before the label, the
|
|
21
|
+
* accent tint while checked, and a click that leaves the menu open. The row is
|
|
22
|
+
* a `menuitemcheckbox` whose state lives on `aria-checked`; the box itself is
|
|
23
|
+
* decorative. Keep `checked` in your own state and update it from the item's
|
|
24
|
+
* `onClick` (or the dropdown's `onItemClick`).
|
|
25
|
+
*/
|
|
26
|
+
selectable?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* How this item is marked while `checked`, straight from the design's
|
|
29
|
+
* Menu-item states: a trailing check (`Check`, a single choice that closes
|
|
30
|
+
* the menu), a leading checkbox box (`Checkbox`, the multiselect row that
|
|
31
|
+
* keeps the menu open) or an accent tint (`Highlight`, the current item of
|
|
32
|
+
* a navigation menu). Defaults to `Checkbox` for a `selectable` item and to
|
|
33
|
+
* `None` otherwise.
|
|
34
|
+
*/
|
|
35
|
+
mark?: MenuItemMark;
|
|
36
|
+
/** Whether a marked item is currently checked. */
|
|
37
|
+
checked?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* A control of its own at the row's trailing edge — a favourite toggle, a
|
|
40
|
+
* delete button. It is rendered beside the row rather than inside it, so it
|
|
41
|
+
* keeps its own click and stays out of the row's accessible name.
|
|
42
|
+
*/
|
|
43
|
+
rightControl?: ReactNode;
|
|
18
44
|
type?: DropdownItemType;
|
|
19
45
|
className?: string;
|
|
20
46
|
onClick?: (info: {
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { TooltipPlacement } from '../types/tooltip';
|
|
3
|
+
/**
|
|
4
|
+
* Data for the interactive panel {@link Select} anchors to an option's row —
|
|
5
|
+
* unlike a plain tooltip, its content can hold controls of its own (a "View
|
|
6
|
+
* details" link, for example), which is why it takes a full node rather than
|
|
7
|
+
* a string.
|
|
8
|
+
*/
|
|
9
|
+
export interface SelectOptionInteractiveTooltip {
|
|
10
|
+
content: ReactNode;
|
|
11
|
+
/** @default TooltipPlacement.Right */
|
|
12
|
+
placement?: TooltipPlacement;
|
|
13
|
+
/**
|
|
14
|
+
* Additional CSS classes for the panel — e.g. a wider `max-w-*` for content
|
|
15
|
+
* that does not fit the default 320px.
|
|
16
|
+
*/
|
|
17
|
+
contentClassName?: string;
|
|
18
|
+
}
|
|
2
19
|
export interface SelectOption {
|
|
3
20
|
value: string;
|
|
4
21
|
label: string;
|
|
@@ -11,5 +28,18 @@ export interface SelectOption {
|
|
|
11
28
|
description?: string;
|
|
12
29
|
disabled?: boolean;
|
|
13
30
|
icon?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* A control of its own at the row's trailing edge — a favourite toggle, a
|
|
33
|
+
* delete button. It is rendered beside the row rather than inside it, so it
|
|
34
|
+
* keeps its own click and stays out of the row's accessible name.
|
|
35
|
+
*/
|
|
36
|
+
rightControl?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Anchors an {@link InteractiveTooltip} to this option's row, open on hover
|
|
39
|
+
* or focus. Use it for content too rich for `description` — an explanation
|
|
40
|
+
* with its own link or button, the way a skill picker explains what a
|
|
41
|
+
* skill does before it is chosen.
|
|
42
|
+
*/
|
|
43
|
+
interactiveTooltip?: SelectOptionInteractiveTooltip;
|
|
14
44
|
children?: SelectOption[];
|
|
15
45
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@epam/ai-dial-ui-kit/editors` - curated subpath for the JSON/Markdown
|
|
3
|
+
* editor lazy loaders.
|
|
4
|
+
*
|
|
5
|
+
* The three loaders below are re-exported from the same shared leaf modules
|
|
6
|
+
* `src/index.ts` re-exports (`components/JsonEditor/lazy`,
|
|
7
|
+
* `components/MarkdownEditor/lazy`, `components/New/MarkdownEditor/lazy`),
|
|
8
|
+
* so this entry and the root reference one emitted chunk per loader instead
|
|
9
|
+
* of each carrying its own duplicate copy of the loader's `import()` call -
|
|
10
|
+
* see `components/JsonEditor/lazy.ts`'s comment for the emitted-topology
|
|
11
|
+
* defect that duplication caused. `src/mcp/generate-manifest.ts` follows
|
|
12
|
+
* this re-export back to the leaf module to keep attaching lazy-loading
|
|
13
|
+
* metadata to `DialJsonEditor`/`DialMarkdownEditor`/`MarkdownEditor` (2.0)
|
|
14
|
+
* in the published MCP component manifest.
|
|
15
|
+
*/
|
|
16
|
+
export { LazyDialJsonEditor } from '../components/JsonEditor/lazy';
|
|
17
|
+
export { LazyDialMarkdownEditor } from '../components/MarkdownEditor/lazy';
|
|
18
|
+
export { LazyMarkdownEditor } from '../components/New/MarkdownEditor/lazy';
|
|
19
|
+
export declare const LazyDialMarkdownEditorContainer: () => Promise<typeof import("../components/MarkdownEditor/MarkdownEditorContainer")>;
|
|
20
|
+
export { EditorThemes } from '../types/editor';
|
|
21
|
+
export type { MarkdownEditorProps } from '../components/New/MarkdownEditor/MarkdownEditor';
|
|
22
|
+
export type { DialMarkdownEditorContainerProps } from '../components/MarkdownEditor/MarkdownEditorContainer';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@epam/ai-dial-ui-kit/file-manager` - curated subpath for `DialFileManager`
|
|
3
|
+
* and its directly related types/hooks/constants.
|
|
4
|
+
*
|
|
5
|
+
* Re-exports the FileManager-related names from the root `src/index.ts`
|
|
6
|
+
* barrel. `DialFileManager` reaches the legacy `DialGrid`
|
|
7
|
+
* (src/components/FileManager/FileManager.tsx:46), so importing from this
|
|
8
|
+
* subpath pulls in ag-grid-community/ag-grid-react exactly as importing
|
|
9
|
+
* `DialFileManager` from the root does.
|
|
10
|
+
*/
|
|
11
|
+
export { DialFileManager } from '../components/FileManager/FileManager';
|
|
12
|
+
export type { FileManagerGridRow } from '../components/FileManager/FileManagerContext';
|
|
13
|
+
export type { GridOptions, ToolbarOptions, BulkActionsToolbarOptions, } from '../components/FileManager/FileManager';
|
|
14
|
+
export { DialDestinationFolderPopup } from '../components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup';
|
|
15
|
+
export { DialFoldersTree } from '../components/FileManager/components/FoldersTree/FoldersTree';
|
|
16
|
+
export { useDialFileManagerTabs } from '../components/FileManager/hooks/use-file-manager-tabs';
|
|
17
|
+
export { FileManagerProvider } from '../components/FileManager/FileManagerProvider';
|
|
18
|
+
export { useFileManagerContext } from '../components/FileManager/hooks/use-file-manager-context';
|
|
19
|
+
export { DialFileManagerTabs, DialFileManagerActions, FileManagerColumnKey, } from '../types/file-manager';
|
|
20
|
+
export { type DialCopiedItem, type DialDeletedItem, type DialUploadFileItem, type DialFileManagerActionsRef, type DialFileAcceptType, } from '../models/file-manager';
|
|
21
|
+
export { NAME_COLUMN, SIZE_COLUMN, UPDATED_AT_COLUMN, } from '../constants/file-grid-columns';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@epam/ai-dial-ui-kit/grid` - curated subpath for both Grid generations.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the Grid-related names from the root `src/index.ts` barrel.
|
|
5
|
+
* This subpath is an ergonomic feature boundary, not a substitute for the
|
|
6
|
+
* root entry's own tree-shaking (which
|
|
7
|
+
* `preserveModules` already provides for a root `import { Button } from
|
|
8
|
+
* '@epam/ai-dial-ui-kit'`). Importing from here pulls in ag-grid-community /
|
|
9
|
+
* ag-grid-react, exactly as importing `Grid`/`DialGrid` from the root does.
|
|
10
|
+
*/
|
|
11
|
+
export { DialGrid } from '../components/Grid/Grid';
|
|
12
|
+
export type { DialGridProps } from '../components/Grid/Grid';
|
|
13
|
+
export { DialDateCellRenderer } from '../components/Grid/renderers/DateCellRenderer';
|
|
14
|
+
export type { DateValue as DialGridDateValue, DialDateCellRendererProps, } from '../components/Grid/renderers/DateCellRenderer';
|
|
15
|
+
export { DEFAULT_DATE_FORMAT_OPTIONS as DEFAULT_GRID_DATE_FORMAT_OPTIONS, DEFAULT_LOCALE as DEFAULT_GRID_DATE_LOCALE, } from '../components/Grid/renderers/constants';
|
|
16
|
+
export { convertToDate as convertGridDateToDate } from '../components/Grid/renderers/utils';
|
|
17
|
+
export { Grid, GRID_SELECTION_COLUMN_ID } from '../components/New/Grid/Grid';
|
|
18
|
+
export type { GridProps } from '../components/New/Grid/Grid';
|
|
19
|
+
export { DateCellRenderer } from '../components/New/Grid/renderers/DateCellRenderer';
|
|
20
|
+
export type { DateCellRendererProps, DateValue, } from '../components/New/Grid/renderers/DateCellRenderer';
|
|
21
|
+
export { DEFAULT_DATE_FORMAT_OPTIONS, DEFAULT_LOCALE as DEFAULT_DATE_LOCALE, } from '../components/New/Grid/renderers/constants';
|
|
22
|
+
export { GRID_ALIGN_RIGHT_CLASS, GRID_ROOT_CLASS, GRID_THEME_PARAMS, ROW_HEIGHT as GRID_ROW_HEIGHT, } from '../components/New/Grid/constants';
|
|
23
|
+
export { convertToDate } from '../utils/grid-date';
|
|
24
|
+
export { baseColumnComparator, checkColDefsChanges, } from '../utils/grid-comparators';
|
|
25
|
+
export { GridSelectionMode } from '../models/selection-mode';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a chosen row inside an overlay (dropdown menu, select list) is marked.
|
|
3
|
+
*
|
|
4
|
+
* The design marks a chosen row differently depending on what the overlay is.
|
|
5
|
+
* A **menu** puts a check at the trailing edge, single- and multi-select alike,
|
|
6
|
+
* and gives the current item of a navigation menu an accent label. A **select
|
|
7
|
+
* list** tints the chosen row instead, with a checkbox in front of it when the
|
|
8
|
+
* list is a multiselect.
|
|
9
|
+
*/
|
|
10
|
+
export declare enum MenuItemMark {
|
|
11
|
+
/** Nothing marks the row — it is only ever unselected. */
|
|
12
|
+
None = "none",
|
|
13
|
+
/** A trailing check on the chosen row; the row keeps its plain background. */
|
|
14
|
+
Check = "check",
|
|
15
|
+
/** The chosen row is tinted, with no glyph — the select list's own mark. */
|
|
16
|
+
Tint = "tint",
|
|
17
|
+
/** A leading checkbox box, tinted while checked, for multiselect rows. */
|
|
18
|
+
Checkbox = "checkbox",
|
|
19
|
+
/** Accent label on a tinted row: the current item in a navigation menu. */
|
|
20
|
+
Highlight = "highlight"
|
|
21
|
+
}
|