@epam/ai-dial-ui-kit 0.14.0-dev.5 → 0.14.0-dev.50
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 -1
- package/dist/CHANGELOG.md +19 -4
- package/dist/DateCellRenderer-BVM-Q8yx.cjs +63 -0
- package/dist/DateCellRenderer-C9SdzDU4.cjs +1 -0
- package/dist/IconButton-DWqoaBWf.cjs +1 -0
- package/dist/JsonEditor-BlaSMX26.cjs +1 -0
- package/dist/MarkdownEditor-5kljDPcm.cjs +1 -0
- package/dist/MarkdownEditor-C0_gU7Fi.cjs +1 -0
- package/dist/MarkdownEditorContainer-BqTGQArV.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/no-data.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 +142 -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 +201 -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 +129 -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 +80 -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 +316 -0
- package/dist/components/New/Dropdown/DropdownSubMenuItem.js +105 -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 +104 -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 +103 -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 +1129 -177
- package/dist/{JsonEditor-DrC6i27F.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/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-B1eG0EeX.cjs +1 -0
- package/dist/merge-classes-Dipy1Ih1.cjs +1 -0
- package/dist/migration-guides/0.14.0/button-tooltip-2-0.md +1 -1
- 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 +2 -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/Analytics/BarGroup/BarGroup.d.ts +9 -2
- package/dist/src/components/FileManager/FileManager.d.ts +2 -1
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +2 -0
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +4 -2
- package/dist/src/components/FileManager/utils.d.ts +11 -0
- 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/CollapsibleSidebar/CollapsibleSidebar.d.ts +82 -0
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +20 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +5 -4
- 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/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/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 +17 -10
- 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 +10 -1
- package/dist/src/components/New/constants/icon.d.ts +22 -0
- package/dist/src/components/New/constants/overlay.d.ts +7 -0
- 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 +30 -4
- package/dist/src/models/dropdown.d.ts +40 -1
- 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/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/src/utils/sub-menu-floating.d.ts +1 -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-DjdR_mYM.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 +85 -0
- package/package.json +21 -8
- package/dist/JsonEditor-dP4yDdgN.cjs +0 -1
- package/dist/MarkdownEditor-BeNDQecT.js +0 -75
- package/dist/MarkdownEditor-CO-k9xZo.js +0 -35
- package/dist/MarkdownEditor-CSgVi6EZ.cjs +0 -1
- package/dist/MarkdownEditor-fskBDR5e.cjs +0 -1
- package/dist/dial-ui-kit.cjs.js +0 -1
- package/dist/dial-ui-kit.es.js +0 -220
- package/dist/index-DmEajFx0.cjs +0 -71
- package/dist/index-jMP1W9V6.js +0 -66826
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.14.0-dev.
|
|
3
|
-
"generatedAt": "2026-
|
|
2
|
+
"version": "0.14.0-dev.50",
|
|
3
|
+
"generatedAt": "2026-09-11T22:15:11.984Z",
|
|
4
4
|
"kit": {
|
|
5
5
|
"name": "@epam/ai-dial-ui-kit",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"setupNotes": "## Next.js Integration\n1. Install the package and peer dependencies that are not currently in your project\n``` bash\nnpm install @epam/ai-dial-ui-kit\nnpm install react react-dom @tabler/icons-react classnames\nnpm install @floating-ui/react monaco-editor @monaco-editor/react\n```\n\n2. Import style in the root layout of the project:\n\n```tsx\n// app/layout.tsx\nimport \"@epam/ai-dial-ui-kit/styles.css\";\n```\n\n3. Usage example\n\n```tsx\n// app/page.tsx\n\"use client\";\nimport { DialPrimaryButton } from \"@epam/ai-dial-ui-kit\";\n\nexport default function Home() {\n return (\n <div className=\"w-full h-full flex flex-col gap-3 items-center justify-center\">\n <h1>Test library</h1>\n <DialPrimaryButton onClick={() => alert('Hello AI DIAL!')} />\n </div>\n );\n}\n```\nSee \"🎨 Theming & Customization\" section in README."
|
|
22
22
|
},
|
|
23
|
-
"styles": "# Typography CSS Utility Classes\n\n## Design-system-compliant classes (`dial-*-text`)\n\nUse these by default. They follow the design system type scale.\n\n| Class | Design name | Weight | Size / Line-height |\n| --------------------------------- | --------------------------- | -------- | ----------------------------------- |\n| `.dial-display1-text` | Display 1 | semibold | 32px / 48px |\n| `.dial-display2-text` | Display 2 | semibold | 28px / 40px |\n| `.dial-display3-text` | Display 3 | semibold | 22px / 32px |\n| `.dial-h1-text` | Heading 1 | semibold | 20px / 28px |\n| `.dial-h2-text` | Heading 2 | semibold | 18px / 26px |\n| `.dial-h3-text` | Heading 3 | semibold | 16px / 24px |\n| `.dial-body-text` | Body Text | normal | 16px / 24px |\n| `.dial-body-semi-text` | Body Text (Semi Bold) | semibold | 16px / 24px |\n| `.dial-body-paragraph-text` | Body Paragraph | normal | 16px / 26px |\n| `.dial-body-paragraph-semi-text` | Body Paragraph (Semi Bold) | semibold | 16px / 26px |\n| `.dial-small-text` | Small Text | normal | 14px / 20px |\n| `.dial-small-semi-text` | Small Text (Semi Bold) | semibold | 14px / 20px |\n| `.dial-small-paragraph-text` | Small Paragraph | normal | 14px / 24px |\n| `.dial-small-paragraph-semi-text` | Small Paragraph (Semi Bold) | semibold | 14px / 24px |\n| `.dial-tiny-text` | Tiny Text | normal | 12px / 16px |\n| `.dial-tiny-lead-text` | Tiny Text Lead | normal | 12px / 16px (+0.03em, uppercase) |\n| `.dial-tiny-semi-text` | Tiny Text (Semi Bold) | semibold | 12px / 16px |\n| `.dial-tiny-lead-semi-text` | Tiny Text Lead (Semi Bold) | semibold | 12px / 16px (+0.03em, uppercase) |\n| `.dial-caption-text` | Caption | normal | 10px / 12px |\n| `.dial-caption-lead-semi-text` | Caption Lead (Semi Bold) | semibold | 10px / 12px (+0.06em, uppercase) |\n| `.dial-code-text` | Code | normal | 14px / 20px (Fira Code / monospace) |\n\nThe three `*-lead-*` classes apply `text-transform: uppercase` themselves — pass them the sentence-case string, not a pre-uppercased one, so the accessible name stays readable.\n\n`.dial-code-text` resolves its family through `var(--theme-font-mono, var(--font-fira-code, 'Fira Code'))` before falling back to the system monospace stack. The kit ships no font file; the host provides the face.\n\n## Legacy classes (avoid in new code)\n\nClasses like `dial-h1`, `dial-h2`, `dial-body`, `dial-small*`, `dial-tiny*`, `dial-caption` are legacy. They can be used in legacy projects if user explicidly specify they need legacy typography.\n\n## Raw SCSS source\n",
|
|
24
|
-
"theming": "# Theming & CSS Variable Tokens\n\nAI DIAL UI Kit uses CSS custom properties (variables) for theming.\nDark and light themes are switched by setting different values for these variables on `:root` or a theme wrapper element.\n\n## Usage in Tailwind\n\nThe Tailwind config maps CSS variables to utility classes.\nUse these classes in your components:\n\n```tsx\n// Backgrounds\n<div className=\"bg-layer-0\" /> // darkest background\n<div className=\"bg-layer-1\" /> // main content area\n<div className=\"bg-layer-2\" /> // elevated panels\n\n// Text\n<span className=\"text-primary\" /> // main text color\n<span className=\"text-secondary\" /> // muted text\n<span className=\"text-error\" /> // error state\n\n// Borders\n<div className=\"border border-primary\" /> // standard border\n<div className=\"border border-error\" /> // error border\n```\n\n## Override CSS Variables\n\n```css\n:root {\n --bg-layer-0: #000000;\n --bg-layer-1: #0c101d;\n --bg-layer-2: #161b2d;\n --bg-layer-3: #1d2439;\n --text-primary: #eef1f7;\n --text-secondary: #9fa6bd;\n --text-error: #f76464;\n --stroke-primary: #696e7c;\n --controls-bg-accent-primary: #3664e2;\n /* ... see tailwind.config.js for full list */\n}\n```\n\n## Token Reference\n\n\n### backgroundsColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `layer-sunken` | `var(--bg-layer-sunken)` | `#EEF1F7` |\n| `layer-base` | `var(--bg-layer-base)` | `#F5F7FA` |\n| `layer-raised` | `var(--bg-layer-raised)` | `#FCFCFC` |\n| `gradient-1` | `var(--bg-gradient-1)` | `#1D4ED8` |\n| `gradient-1-hover` | `var(--bg-gradient-1-hover)` | `#6785FB` |\n| `gradient-1-active` | `var(--bg-gradient-1-active)` | `#1D4ED8` |\n| `gradient-2` | `var(--bg-gradient-2)` | `#885DF2` |\n| `gradient-2-hover` | `var(--bg-gradient-2-hover)` | `#885DF2` |\n| `gradient-2-active` | `var(--bg-gradient-2-active)` | `#7C3AED` |\n| `control-accent-alpha` | `var(--bg-control-accent-alpha)` | `#2764D90F` |\n| `control-accent-alpha-hover` | `var(--bg-control-accent-alpha-hover)` | `#2764D924` |\n| `control-accent-alpha-active` | `var(--bg-control-accent-alpha-active)` | `#2764D933` |\n| `control-accent` | `var(--bg-control-accent)` | `#1D4ED8` |\n| `control-accent-hover` | `var(--bg-control-accent-hover)` | `#5976E9` |\n| `control-neutral` | `var(--bg-control-neutral)` | `#FCFCFC` |\n| `control-neutral-hover-strong` | `var(--bg-control-neutral-hover-strong)` | `#848E9C` |\n| `control-neutral-active` | `var(--bg-control-neutral-active)` | `#D1DBEA` |\n| `control-neutral-default` | `var(--bg-control-neutral-default)` | `#ACB3C3` |\n| `control-inverted` | `var(--bg-control-inverted)` | `#57647A` |\n| `control-error` | `var(--bg-control-error)` | `#AE2F2F` |\n| `control-error-hover` | `var(--bg-control-error-hover)` | `#BF3939` |\n| `control-error-active` | `var(--bg-control-error-active)` | `#CC4545` |\n| `control-error-alpha-hover` | `var(--bg-control-error-alpha-hover)` | `#F764641A` |\n| `control-error-alpha-active` | `var(--bg-control-error-alpha-active)` | `#F7646433` |\n| `control-disable-secondary` | `var(--bg-control-disable-secondary)` | `#ACB3C3` |\n| `green-1` | `var(--bg-visual-green-1)` | `#CDE8E5` |\n| `green-2` | `var(--bg-visual-green-2)` | `#D1F0DC` |\n| `violet-1` | `var(--bg-visual-violet-1)` | `#DDE3F9` |\n| `violet-2` | `var(--bg-visual-violet-2)` | `#F1E9FF` |\n\n### borderColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-alpha` | `var(--stroke-accent-alpha)` | `#2764D933` |\n| `gradient-1` | `var(--stroke-gradient-1)` | `#5976E9` |\n| `gradient-2` | `var(--stroke-gradient-2)` | `#885DF2` |\n| `accent-focus` | `var(--stroke-focus
|
|
23
|
+
"styles": "# Typography CSS Utility Classes\n\n## Design-system-compliant classes (`dial-*-text`)\n\nUse these by default. They follow the design system type scale.\n\n| Class | Design name | Weight | Size / Line-height |\n| --------------------------------- | --------------------------- | -------- | ----------------------------------- |\n| `.dial-display1-text` | Display 1 | semibold | 32px / 48px |\n| `.dial-display2-text` | Display 2 | semibold | 28px / 40px |\n| `.dial-display3-text` | Display 3 | semibold | 22px / 32px |\n| `.dial-h1-text` | Heading 1 | semibold | 20px / 28px |\n| `.dial-h2-text` | Heading 2 | semibold | 18px / 26px |\n| `.dial-h3-text` | Heading 3 | semibold | 16px / 24px |\n| `.dial-body-text` | Body Text | normal | 16px / 24px |\n| `.dial-body-semi-text` | Body Text (Semi Bold) | semibold | 16px / 24px |\n| `.dial-body-paragraph-text` | Body Paragraph | normal | 16px / 26px |\n| `.dial-body-paragraph-semi-text` | Body Paragraph (Semi Bold) | semibold | 16px / 26px |\n| `.dial-small-text` | Small Text | normal | 14px / 20px |\n| `.dial-small-semi-text` | Small Text (Semi Bold) | semibold | 14px / 20px |\n| `.dial-small-paragraph-text` | Small Paragraph | normal | 14px / 24px |\n| `.dial-small-paragraph-semi-text` | Small Paragraph (Semi Bold) | semibold | 14px / 24px |\n| `.dial-tiny-text` | Tiny Text | normal | 12px / 16px |\n| `.dial-tiny-lead-text` | Tiny Text Lead | normal | 12px / 16px (+0.03em, uppercase) |\n| `.dial-tiny-semi-text` | Tiny Text (Semi Bold) | semibold | 12px / 16px |\n| `.dial-tiny-lead-semi-text` | Tiny Text Lead (Semi Bold) | semibold | 12px / 16px (+0.03em, uppercase) |\n| `.dial-caption-text` | Caption | normal | 10px / 12px |\n| `.dial-caption-lead-semi-text` | Caption Lead (Semi Bold) | semibold | 10px / 12px (+0.06em, uppercase) |\n| `.dial-code-text` | Code | normal | 14px / 20px (Fira Code / monospace) |\n| `.dial-italic-text` | Italic | normal | 18px / 22px (serif, italic) |\n| `.dial-small-italic-text` | Small Italic | normal | 14px / 20px (serif, italic) |\n| `.dial-tiny-italic-text` | Tiny Italic | normal | 12px / 16px (serif, italic) |\n| `.dial-caption-italic-text` | Caption Italic | normal | 10px / 12px (serif, italic) |\n\nThe three `*-lead-*` classes apply `text-transform: uppercase` themselves — pass them the sentence-case string, not a pre-uppercased one, so the accessible name stays readable.\n\n`.dial-code-text` resolves its family through `var(--theme-font-mono, var(--font-fira-code, 'Fira Code'))` before falling back to the system monospace stack. The kit ships no font file; the host provides the face.\n\nThe `*-italic-text` classes use a serif italic face and are intended for mathematical and formula symbols. Their line-heights follow the corresponding typography size; the default 18px variant uses a fixed 22px line-height to keep standalone symbols vertically aligned without changing their container's height.\n\n## Legacy classes (avoid in new code)\n\nClasses like `dial-h1`, `dial-h2`, `dial-body`, `dial-small*`, `dial-tiny*`, `dial-caption` are legacy. They can be used in legacy projects if user explicidly specify they need legacy typography.\n\n## Raw SCSS source\n",
|
|
24
|
+
"theming": "# Theming & CSS Variable Tokens\n\nAI DIAL UI Kit uses CSS custom properties (variables) for theming.\nDark and light themes are switched by setting different values for these variables on `:root` or a theme wrapper element.\n\n## Usage in Tailwind\n\nThe Tailwind config maps CSS variables to utility classes.\nUse these classes in your components:\n\n```tsx\n// Backgrounds\n<div className=\"bg-layer-0\" /> // darkest background\n<div className=\"bg-layer-1\" /> // main content area\n<div className=\"bg-layer-2\" /> // elevated panels\n\n// Text\n<span className=\"text-primary\" /> // main text color\n<span className=\"text-secondary\" /> // muted text\n<span className=\"text-error\" /> // error state\n\n// Borders\n<div className=\"border border-primary\" /> // standard border\n<div className=\"border border-error\" /> // error border\n```\n\n## Override CSS Variables\n\n```css\n:root {\n --bg-layer-0: #000000;\n --bg-layer-1: #0c101d;\n --bg-layer-2: #161b2d;\n --bg-layer-3: #1d2439;\n --text-primary: #eef1f7;\n --text-secondary: #9fa6bd;\n --text-error: #f76464;\n --stroke-primary: #696e7c;\n --controls-bg-accent-primary: #3664e2;\n /* ... see tailwind.config.js for full list */\n}\n```\n\n## Token Reference\n\n\n### backgroundsColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `layer-sunken` | `var(--bg-layer-sunken)` | `#EEF1F7` |\n| `layer-base` | `var(--bg-layer-base)` | `#F5F7FA` |\n| `layer-raised` | `var(--bg-layer-raised)` | `#FCFCFC` |\n| `gradient-1` | `var(--bg-gradient-1)` | `#1D4ED8` |\n| `gradient-1-hover` | `var(--bg-gradient-1-hover)` | `#6785FB` |\n| `gradient-1-active` | `var(--bg-gradient-1-active)` | `#1D4ED8` |\n| `gradient-2` | `var(--bg-gradient-2)` | `#885DF2` |\n| `gradient-2-hover` | `var(--bg-gradient-2-hover)` | `#885DF2` |\n| `gradient-2-active` | `var(--bg-gradient-2-active)` | `#7C3AED` |\n| `control-accent-alpha` | `var(--bg-control-accent-alpha)` | `#2764D90F` |\n| `control-accent-alpha-hover` | `var(--bg-control-accent-alpha-hover)` | `#2764D924` |\n| `control-accent-alpha-active` | `var(--bg-control-accent-alpha-active)` | `#2764D933` |\n| `control-accent` | `var(--bg-control-accent)` | `#1D4ED8` |\n| `control-accent-hover` | `var(--bg-control-accent-hover)` | `#5976E9` |\n| `control-neutral` | `var(--bg-control-neutral)` | `#FCFCFC` |\n| `control-neutral-hover-strong` | `var(--bg-control-neutral-hover-strong)` | `#848E9C` |\n| `control-neutral-active` | `var(--bg-control-neutral-active)` | `#D1DBEA` |\n| `control-neutral-default` | `var(--bg-control-neutral-default)` | `#ACB3C3` |\n| `control-inverted` | `var(--bg-control-inverted)` | `#57647A` |\n| `control-error` | `var(--bg-control-error)` | `#AE2F2F` |\n| `control-error-hover` | `var(--bg-control-error-hover)` | `#BF3939` |\n| `control-error-active` | `var(--bg-control-error-active)` | `#CC4545` |\n| `control-error-alpha-hover` | `var(--bg-control-error-alpha-hover)` | `#F764641A` |\n| `control-error-alpha-active` | `var(--bg-control-error-alpha-active)` | `#F7646433` |\n| `control-disable-primary` | `var(--bg-control-disable-primary)` | `#DCE0E8` |\n| `control-disable-secondary` | `var(--bg-control-disable-secondary)` | `#ACB3C3` |\n| `green-1` | `var(--bg-visual-green-1)` | `#CDE8E5` |\n| `green-2` | `var(--bg-visual-green-2)` | `#D1F0DC` |\n| `violet-1` | `var(--bg-visual-violet-1)` | `#DDE3F9` |\n| `violet-2` | `var(--bg-visual-violet-2)` | `#F1E9FF` |\n\n### shadowColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `xs-1` | `var(--shadow-xs-1)` | `#2764D933` |\n| `xs-2` | `var(--shadow-xs-2)` | `#161B2D08` |\n\n### borderColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-alpha` | `var(--stroke-accent-alpha)` | `#2764D933` |\n| `gradient-1` | `var(--stroke-gradient-1)` | `#5976E9` |\n| `gradient-2` | `var(--stroke-gradient-2)` | `#885DF2` |\n| `accent-focus` | `var(--stroke-accent-focus)` | `#6785FB` |\n| `error-alpha` | `var(--stroke-error-alpha)` | `#AE2F2F73` |\n| `control-disable-primary` | `var(--stroke-control-disable-primary)` | `#848E9C` |\n\n### textColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `warning-icon` | `var(--text-warning-icon)` | `#EEC840` |\n| `green-1` | `var(--text-visual-green-1)` | `#059669` |\n| `green-2` | `var(--text-visual-green-2)` | `#0D6E72` |\n| `green-3` | `var(--text-visual-green-3)` | `#065F46` |\n| `brown-1` | `var(--text-visual-brown-1)` | `#D36817` |\n| `brown-2` | `var(--text-visual-brown-2)` | `#B45309` |\n| `violet-1` | `var(--text-visual-violet-1)` | `#7C3AED` |\n| `violet-2` | `var(--text-visual-violet-2)` | `#3730B7` |\n| `control-permanent` | `var(--text-control-permanent)` | `#FCFCFC` |\n| `control-inverted` | `var(--text-control-inverted)` | `#FCFCFC` |\n| `control-disable-primary` | `var(--text-control-disable-primary)` | `#848E9C` |\n| `control-disable-secondary` | `var(--text-control-disable-secondary)` | `#DCE0E8` |\n| `control-accent-hover` | `var(--text-control-accent-hover)` | `#5976E9` |\n| `control-accent-active` | `var(--text-control-accent-active)` | `#6785FB` |\n\n### backgroundsColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `layer-0` | `var(--bg-layer-0)` | `#FCFCFC` |\n| `layer-1` | `var(--bg-layer-1)` | `#E0E6F0` |\n| `layer-2` | `var(--bg-layer-2)` | `#EEF1F7` |\n| `layer-3` | `var(--bg-layer-3)` | `#FCFCFC` |\n| `layer-4` | `var(--bg-layer-4)` | `#D1DBEA` |\n| `accent-primary-alpha` | `var(--bg-accent-primary-alpha)` | `#7DA4FF26` |\n| `accent-secondary-alpha` | `var(--bg-accent-secondary-alpha)` | `#37BABC2E` |\n| `accent-tertiary-alpha` | `var(--bg-accent-tertiary-alpha)` | `#A972FF2E` |\n| `accent-primary` | `var(--bg-accent-primary)` | `#5C8DEA` |\n| `accent-secondary` | `var(--bg-accent-secondary)` | `#37BABC` |\n| `red-400` | `var(--bg-red-400)` | `#F76464` |\n| `controls-accent-primary` | `var(--controls-bg-accent-primary)` | `#124ACE` |\n| `controls-accent-primary-hover` | `var(--controls-bg-accent-primary-hover)` | `#2656D9` |\n| `controls-accent-primary-active` | `var(--controls-bg-accent-primary-active)` | `#3664E2` |\n| `controls-accent-primary-alpha-active` | `var(--controls-bg-accent-primary-alpha-active)` | `#7DA4FF5C` |\n| `controls-accent-secondary-alpha-active` | `var(--controls-bg-accent-secondary-alpha-active)` | `#37BABC5C` |\n| `controls-accent-tertiary-alpha-active` | `var(--controls-bg-accent-tertiary-alpha-active)` | `#A972FF5C` |\n| `controls-error` | `var(--controls-bg-error)` | `#AE2F2F` |\n| `controls-error-hover` | `var(--controls-bg-error-hover)` | `#BF3939` |\n| `controls-error-active` | `var(--controls-bg-error-active)` | `#CC4545` |\n| `controls-error-alpha-active` | `var(--controls-bg-error-alpha-active)` | `#F764645C` |\n| `controls-disable-accent` | `var(--controls-bg-disable-accent)` | `#7C8293` |\n| `controls-disable` | `var(--controls-bg-disable)` | `#D1DBEA` |\n| `controls-neutral-hover` | `var(--controls-bg-neutral-hover)` | `#D1DBEA` |\n| `controls-neutral-active` | `var(--controls-bg-neutral-active)` | `#9FA6BD` |\n| `controls-accent-success-alpha-hover` | `var(--controls-bg-accent-success-alpha-hover)` | `#37BABC2E` |\n| `controls-accent-success-alpha-active` | `var(--controls-bg-accent-success-alpha-active)` | `#37BABC5C` |\n| `controls-enable-primary` | `var(--controls-enable-primary)` | `#FCFCFC` |\n\n### borderColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-primary` | `var(--stroke-accent-primary)` | `#124ACE` |\n| `accent-secondary` | `var(--stroke-accent-secondary)` | `#007274` |\n| `controls-accent` | `var(--controls-bg-accent)` | `#5C8DEA` |\n| `red-900` | `var(--red-900)` | `#402027` |\n\n### textColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-primary` | `var(--text-accent-primary)` | `#7DA4FF` |\n| `accent-secondary` | `var(--text-accent-secondary)` | `#37BABC` |\n| `accent-tertiary` | `var(--text-accent-tertiary)` | `#A972FF` |\n| `controls-permanent` | `var(--controls-text-permanent)` | `#FCFCFC` |\n| `controls-accent-disable` | `var(--controls-text-accent-disable)` | `#D1DBEA` |\n| `controls-primary-disable` | `var(--controls-text-primary-disable)` | `#696E7C` |\n| `controls-secondary-disable` | `var(--controls-text-secondary-disable)` | `#9FA6BD` |\n| `controls-neutral` | `var(--controls-text-neutral)` | `#161B2D` |\n| `controls-accent-primary-hover` | `var(--controls-text-accent-primary-hover)` | `#3664E2` |\n| `controls-accent-primary-active` | `var(--controls-text-accent-primary-active)` | `#7DA4FF` |",
|
|
25
25
|
"components": [
|
|
26
26
|
{
|
|
27
27
|
"name": "Spinner",
|
|
@@ -887,6 +887,18 @@
|
|
|
887
887
|
"required": false,
|
|
888
888
|
"defaultValue": "'edit'",
|
|
889
889
|
"description": "Initial edit/live/preview mode"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "id",
|
|
893
|
+
"type": "string",
|
|
894
|
+
"required": false,
|
|
895
|
+
"description": "`id` of the underlying textarea, for a visible `<label htmlFor>`"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "ariaLabel",
|
|
899
|
+
"type": "string",
|
|
900
|
+
"required": false,
|
|
901
|
+
"description": "Accessible name for the underlying textarea"
|
|
890
902
|
}
|
|
891
903
|
],
|
|
892
904
|
"examples": [
|
|
@@ -994,7 +1006,7 @@
|
|
|
994
1006
|
"name": "Select",
|
|
995
1007
|
"category": "Components_2_0",
|
|
996
1008
|
"generation": "2.0",
|
|
997
|
-
"description": "A versatile select supporting single and multiple selections.\naliases: OptionPicker|ChoiceSelector\nDesign system 2.0\n\nThe field is an , so it carries the 2.0 field styling, sizes,\nlabel, caption and error states, and it exposes the control as a `combobox`\nwhose popup is the option list.\n\nSingle mode:\n- The field shows the selected option's leading icon + label.\n- In the list, the selected option is
|
|
1009
|
+
"description": "A versatile select supporting single and multiple selections.\naliases: OptionPicker|ChoiceSelector\nDesign system 2.0\n\nA list of **values to choose from**, opened from the field. It is not the\ncontrol for showing actions or navigation options — that is .\n\nThe field is an , so it carries the 2.0 field styling, sizes,\nlabel, caption and error states, and it exposes the control as a `combobox`\nwhose popup is the option list.\n\nSingle mode:\n- The field shows the selected option's leading icon + label.\n- In the list, the selected option is tinted; `selectedOptionMark` swaps that\n for a trailing check or the navigation highlight.\n\nMultiple mode uses checkboxes (including Select All with indeterminate state) and\nrenders the selection as removable tags inside the field.\n\nThe field itself is never typeable: `searchable` puts a search field in the overlay\nheader that filters the options.",
|
|
998
1010
|
"props": [
|
|
999
1011
|
{
|
|
1000
1012
|
"name": "options",
|
|
@@ -1111,6 +1123,13 @@
|
|
|
1111
1123
|
"defaultValue": "'Select all'",
|
|
1112
1124
|
"description": "Label for the \"Select All\" checkbox."
|
|
1113
1125
|
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "selectedOptionMark",
|
|
1128
|
+
"type": "| MenuItemMark.Tint\n | MenuItemMark.Check\n | MenuItemMark.Highlight",
|
|
1129
|
+
"required": false,
|
|
1130
|
+
"defaultValue": "MenuItemMark.Tint",
|
|
1131
|
+
"description": "How the chosen option is marked in single mode."
|
|
1132
|
+
},
|
|
1114
1133
|
{
|
|
1115
1134
|
"name": "emptyStateTitle",
|
|
1116
1135
|
"type": "string",
|
|
@@ -1360,10 +1379,10 @@
|
|
|
1360
1379
|
},
|
|
1361
1380
|
{
|
|
1362
1381
|
"name": "resize",
|
|
1363
|
-
"type": "boolean",
|
|
1382
|
+
"type": "boolean | TextareaResize",
|
|
1364
1383
|
"required": false,
|
|
1365
1384
|
"defaultValue": "false",
|
|
1366
|
-
"description": "Whether the textarea
|
|
1385
|
+
"description": "Whether/how the textarea can be resized. Accepts a boolean (`true` = both directions, `false` = none) or a value for a single axis (`horizontal`/`vertical`)"
|
|
1367
1386
|
},
|
|
1368
1387
|
{
|
|
1369
1388
|
"name": "error",
|
|
@@ -1857,7 +1876,7 @@
|
|
|
1857
1876
|
"name": "Dropdown",
|
|
1858
1877
|
"category": "Components_2_0",
|
|
1859
1878
|
"generation": "2.0",
|
|
1860
|
-
"description": "Renders the given trigger (`children`) and a floating contextual menu overlay.\naliases: ContextMenu|PopupMenu\nDesign system 2.0\n\nSupports click/hover/contextMenu triggers, controlled/uncontrolled open, and an optional\nclose button inside the overlay. Placement is taken directly from Floating UI; when\n`placement` is **undefined** (default), automatic placement is handled by `autoPlacement
|
|
1879
|
+
"description": "Renders the given trigger (`children`) and a floating contextual menu overlay.\naliases: ContextMenu|PopupMenu\nDesign system 2.0\n\nA menu of **actions or navigation options**, opened from a trigger. It is not\nthe control for picking a value out of a list — a country, a sort order, a\nfilter — which is what is for.\n\nSupports click/hover/contextMenu triggers, controlled/uncontrolled open, and an optional\nclose button inside the overlay. Placement is taken directly from Floating UI; when\n`placement` is **undefined** (default), automatic placement is handled by `autoPlacement`.\n\nA chosen row is marked through the item's `mark`: the design draws a menu's\nsingle-select and multiselect the same way, with a check at the trailing edge\n(`MenuItemMark.Check`). Pair it with `selectable` for a multiselect row, which\nkeeps the menu open across toggles. `MenuItemMark.Highlight` is the current\nitem of a navigation menu.",
|
|
1861
1880
|
"props": [
|
|
1862
1881
|
{
|
|
1863
1882
|
"name": "children",
|
|
@@ -2009,6 +2028,12 @@
|
|
|
2009
2028
|
"type": "number | null",
|
|
2010
2029
|
"required": false,
|
|
2011
2030
|
"description": "Maximum height of the dropdown menu; when omitted, no limit is applied"
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
"name": "initialFocus",
|
|
2034
|
+
"type": "0 | -1 | RefObject<HTMLElement | null>",
|
|
2035
|
+
"required": false,
|
|
2036
|
+
"description": "Initial focus target inside the overlay on open, forwarded to `FloatingFocusManager`; when omitted, matches pre-existing behavior"
|
|
2012
2037
|
}
|
|
2013
2038
|
],
|
|
2014
2039
|
"examples": [
|
|
@@ -2016,6 +2041,117 @@
|
|
|
2016
2041
|
],
|
|
2017
2042
|
"sourceFile": "components/New/Dropdown/Dropdown.tsx"
|
|
2018
2043
|
},
|
|
2044
|
+
{
|
|
2045
|
+
"name": "ThemeScope",
|
|
2046
|
+
"category": "Components_2_0",
|
|
2047
|
+
"generation": "2.0",
|
|
2048
|
+
"description": "Marks a subtree as living under a host-defined token scope, so overlays this\nsubtree opens in a portal are painted with the same tokens.\nDesign system 2.0\n\nRedefining design tokens on a panel root re-themes everything the panel\nrenders — until a `Dropdown`, `Popup`, `Tooltip` or `Calendar` escapes into a\n`FloatingPortal` at the end of `<body>`, where the scope's custom properties\nno longer reach it. Wrapping the panel in a `ThemeScope` re-applies the same\nclass to those portalled overlays, so an overlay opened from a dark panel\nstays dark while the rest of the app keeps its own palette.\n\nThe wrapper itself is `display: contents`, so it generates no box and leaves\nthe surrounding flex or grid layout untouched — custom properties inherit\nthrough it all the same. Scopes nest: an inner scope's overlays carry the\nouter classes first, matching the cascade they would see in place.",
|
|
2049
|
+
"props": [
|
|
2050
|
+
{
|
|
2051
|
+
"name": "className",
|
|
2052
|
+
"type": "string",
|
|
2053
|
+
"required": true,
|
|
2054
|
+
"description": "Class name redefining the design tokens for this subtree"
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
"name": "children",
|
|
2058
|
+
"type": "ReactNode",
|
|
2059
|
+
"required": true,
|
|
2060
|
+
"description": "The subtree painted with those tokens"
|
|
2061
|
+
}
|
|
2062
|
+
],
|
|
2063
|
+
"examples": [
|
|
2064
|
+
"// .side-panel-theme redefines --bg-*, --text-* and --stroke-* tokens.\n<ThemeScope className=\"side-panel-theme\">\n <ConversationPanel {...props} />\n</ThemeScope>"
|
|
2065
|
+
],
|
|
2066
|
+
"sourceFile": "components/New/ThemeScope/ThemeScope.tsx"
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
"name": "MenuItem",
|
|
2070
|
+
"category": "Components_2_0",
|
|
2071
|
+
"generation": "2.0",
|
|
2072
|
+
"description": "One row of a floating overlay — a dropdown menu item or a select option.\nDesign system 2.0\n\nOwns the Menu-item states the design defines, so the dropdown and the select\ncannot drift apart: rest, hover, focus and disable, plus the three ways a\nchosen row is marked (`MenuItemMark`). The row itself is the control — the\ncheckbox box and the check icon are decorative, since the state already rides\non the `aria-checked`/`aria-selected` the caller sets alongside `role`.",
|
|
2073
|
+
"props": [
|
|
2074
|
+
{
|
|
2075
|
+
"name": "ref",
|
|
2076
|
+
"type": "Ref<HTMLButtonElement>",
|
|
2077
|
+
"required": false
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
"name": "label",
|
|
2081
|
+
"type": "ReactNode",
|
|
2082
|
+
"required": false,
|
|
2083
|
+
"description": "The row's text"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"name": "icon",
|
|
2087
|
+
"type": "ReactNode",
|
|
2088
|
+
"required": false,
|
|
2089
|
+
"description": "Icon rendered before the label"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"name": "description",
|
|
2093
|
+
"type": "ReactNode",
|
|
2094
|
+
"required": false,
|
|
2095
|
+
"description": "Secondary text at the row's trailing edge"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"name": "mark",
|
|
2099
|
+
"type": "MenuItemMark",
|
|
2100
|
+
"required": false,
|
|
2101
|
+
"defaultValue": "MenuItemMark.None",
|
|
2102
|
+
"description": "How a chosen row is marked"
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"name": "selected",
|
|
2106
|
+
"type": "boolean",
|
|
2107
|
+
"required": false,
|
|
2108
|
+
"defaultValue": "false",
|
|
2109
|
+
"description": "Whether this row is the chosen one"
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
"name": "danger",
|
|
2113
|
+
"type": "boolean",
|
|
2114
|
+
"required": false,
|
|
2115
|
+
"defaultValue": "false",
|
|
2116
|
+
"description": "Paints the row in the error colour"
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
"name": "trailing",
|
|
2120
|
+
"type": "ReactNode",
|
|
2121
|
+
"required": false,
|
|
2122
|
+
"description": "Node pinned to the trailing edge, e.g. a submenu caret"
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
"name": "rightControl",
|
|
2126
|
+
"type": "ReactNode",
|
|
2127
|
+
"required": false,
|
|
2128
|
+
"description": "A control of its own at the trailing edge, rendered beside the row"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"name": "ellipsisLabel",
|
|
2132
|
+
"type": "boolean",
|
|
2133
|
+
"required": false,
|
|
2134
|
+
"defaultValue": "false",
|
|
2135
|
+
"description": "Truncate the label with a tooltip once clipped"
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
"name": "labelClassName",
|
|
2139
|
+
"type": "string",
|
|
2140
|
+
"required": false,
|
|
2141
|
+
"description": "Additional classes for the label element"
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"name": "children",
|
|
2145
|
+
"type": "ReactNode",
|
|
2146
|
+
"required": false,
|
|
2147
|
+
"description": "Replaces the icon + label content"
|
|
2148
|
+
}
|
|
2149
|
+
],
|
|
2150
|
+
"examples": [
|
|
2151
|
+
"<MenuItem role=\"menuitem\" label=\"Rename\" icon={<IconPencil />} />\n\n// Single choice, marked with a trailing check\n<MenuItem role=\"option\" aria-selected label=\"English\" mark={MenuItemMark.Check} selected />\n\n// Current item of a navigation menu\n<MenuItem role=\"menuitem\" aria-current label=\"Settings\" mark={MenuItemMark.Highlight} selected />"
|
|
2152
|
+
],
|
|
2153
|
+
"sourceFile": "components/New/MenuItem/MenuItem.tsx"
|
|
2154
|
+
},
|
|
2019
2155
|
{
|
|
2020
2156
|
"name": "CaptionText",
|
|
2021
2157
|
"category": "Components_2_0",
|
|
@@ -2849,7 +2985,7 @@
|
|
|
2849
2985
|
"name": "Tag",
|
|
2850
2986
|
"category": "Components_2_0",
|
|
2851
2987
|
"generation": "2.0",
|
|
2852
|
-
"description": "A compact label element used for selections, filters, or categories.\naliases: Chip|Pill\nDesign system 2.0\n\nThe label truncates rather than wrapping, and carries a native `title` so the\nfull text stays reachable when it does.\n\nA tag with `onClick` becomes a `role=\"button\"` operable with Enter and Space.\nIts remove control is a real nested `<button>`, so keep the two roles apart in\nthe caller: a clickable tag that is also closable gives a screen reader two\nactions with no way to tell which one it landed on.\n\n`TagAppearance.Selectable` is the filter chip of the 2.0 design: no
|
|
2988
|
+
"description": "A compact label element used for selections, filters, or categories.\naliases: Chip|Pill\nDesign system 2.0\n\nThe tag has one height — the 32px pill of the 2.0 design. There is no `size`\nprop: a tag sizes itself, and a caller that needs a different height is\nusually reaching for a button.\n\nThe label truncates rather than wrapping, and carries a native `title` so the\nfull text stays reachable when it does.\n\nA tag with `onClick` becomes a `role=\"button\"` operable with Enter and Space.\nIts remove control is a real nested `<button>`, so keep the two roles apart in\nthe caller: a clickable tag that is also closable gives a screen reader two\nactions with no way to tell which one it landed on.\n\nNo tag draws a rim; the two appearances are told apart by their fill.\n`TagAppearance.Selectable` is the filter chip of the 2.0 design: no fill\nat all until it is selected, one hover tint shared by both states, a semibold\nlabel once selected, and the state carried on `aria-pressed` rather than by\nthe tint alone. Give it an `onClick` — a selectable tag that cannot be\nactivated is a colour and nothing else.\n\nSelecting one therefore changes its width by the difference between the\nregular and semibold label. In a wrapping filter row that is what the design\nasks for; if a fixed width matters, give the chip one.",
|
|
2853
2989
|
"props": [
|
|
2854
2990
|
{
|
|
2855
2991
|
"name": "label",
|
|
@@ -2863,19 +2999,12 @@
|
|
|
2863
2999
|
"required": false,
|
|
2864
3000
|
"description": "Icon rendered before the label."
|
|
2865
3001
|
},
|
|
2866
|
-
{
|
|
2867
|
-
"name": "size",
|
|
2868
|
-
"type": "ElementSize",
|
|
2869
|
-
"required": false,
|
|
2870
|
-
"defaultValue": "ElementSize.Standard",
|
|
2871
|
-
"description": "Tag height: standard is 24px, small is 20px."
|
|
2872
|
-
},
|
|
2873
3002
|
{
|
|
2874
3003
|
"name": "appearance",
|
|
2875
3004
|
"type": "TagAppearance",
|
|
2876
3005
|
"required": false,
|
|
2877
3006
|
"defaultValue": "TagAppearance.Outlined",
|
|
2878
|
-
"description": "`outlined` is the
|
|
3007
|
+
"description": "`outlined` is the filled chip on the raised\nlayer; `selectable` is the unfilled filter chip that tints and turns semibold when selected."
|
|
2879
3008
|
},
|
|
2880
3009
|
{
|
|
2881
3010
|
"name": "selected",
|
|
@@ -2889,7 +3018,7 @@
|
|
|
2889
3018
|
"type": "boolean",
|
|
2890
3019
|
"required": false,
|
|
2891
3020
|
"defaultValue": "false",
|
|
2892
|
-
"description": "
|
|
3021
|
+
"description": "Stops the tag responding: no click handling, no remove control. The design defines no disabled tag, so the colours stay put."
|
|
2893
3022
|
},
|
|
2894
3023
|
{
|
|
2895
3024
|
"name": "closable",
|
|
@@ -2975,240 +3104,915 @@
|
|
|
2975
3104
|
"name": "invalid",
|
|
2976
3105
|
"type": "boolean",
|
|
2977
3106
|
"required": false,
|
|
2978
|
-
"description": "Applies the field's error styling."
|
|
3107
|
+
"description": "Applies the field's error styling."
|
|
3108
|
+
},
|
|
3109
|
+
{
|
|
3110
|
+
"name": "disabled",
|
|
3111
|
+
"type": "boolean",
|
|
3112
|
+
"required": false,
|
|
3113
|
+
"defaultValue": "false",
|
|
3114
|
+
"description": "Disables typing and tag removal."
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
"name": "readOnly",
|
|
3118
|
+
"type": "boolean",
|
|
3119
|
+
"required": false,
|
|
3120
|
+
"defaultValue": "false",
|
|
3121
|
+
"description": "Shows the tags without allowing new ones or removal."
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
"name": "collapseTagOverflow",
|
|
3125
|
+
"type": "boolean",
|
|
3126
|
+
"required": false,
|
|
3127
|
+
"defaultValue": "false",
|
|
3128
|
+
"description": "Keep the tags on one line, replacing the ones that do not fit with a `+N` chip."
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
"name": "ariaLabel",
|
|
3132
|
+
"type": "string",
|
|
3133
|
+
"required": false,
|
|
3134
|
+
"description": "Accessible name for the text input; use it when there is no visible label."
|
|
3135
|
+
},
|
|
3136
|
+
{
|
|
3137
|
+
"name": "tagListLabel",
|
|
3138
|
+
"type": "string",
|
|
3139
|
+
"required": false,
|
|
3140
|
+
"defaultValue": "'Tags'",
|
|
3141
|
+
"description": "Accessible name of the tag list."
|
|
3142
|
+
},
|
|
3143
|
+
{
|
|
3144
|
+
"name": "className",
|
|
3145
|
+
"type": "string",
|
|
3146
|
+
"required": false,
|
|
3147
|
+
"description": "Additional CSS classes for the outer container."
|
|
3148
|
+
},
|
|
3149
|
+
{
|
|
3150
|
+
"name": "fieldClassName",
|
|
3151
|
+
"type": "string",
|
|
3152
|
+
"required": false,
|
|
3153
|
+
"description": "Additional CSS classes for the field itself."
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
"name": "tagClassName",
|
|
3157
|
+
"type": "string",
|
|
3158
|
+
"required": false,
|
|
3159
|
+
"description": "Additional CSS classes applied to every tag."
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"name": "onChange",
|
|
3163
|
+
"type": "(tags: string[]) => void",
|
|
3164
|
+
"required": false,
|
|
3165
|
+
"description": "Called with the new list whenever a tag is added or removed."
|
|
3166
|
+
}
|
|
3167
|
+
],
|
|
3168
|
+
"examples": [
|
|
3169
|
+
"const [tags, setTags] = useState<string[]>(['React']);\n\n<TagInput\n id=\"skills\"\n labelProps={{ label: 'Skills' }}\n placeholder=\"Add a skill\"\n caption=\"Press Enter or comma to add\"\n value={tags}\n onChange={setTags}\n/>"
|
|
3170
|
+
],
|
|
3171
|
+
"sourceFile": "components/New/TagInput/TagInput.tsx"
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
"name": "Search",
|
|
3175
|
+
"category": "Components_2_0",
|
|
3176
|
+
"generation": "2.0",
|
|
3177
|
+
"description": "A search field with a leading magnifier and a clear button, built on .\naliases: SearchField|QueryInput|SearchBox\nDesign system 2.0\n\nFully controlled: it renders exactly the `value` it is given and reports every\nedit through `onChange`, which receives `undefined` for an empty field. The\nclear button appears only while there is something to clear, and returns focus\nto the input once pressed so keyboard users are not dropped to the page body.\n\n`type` and both icon slots are owned by this component; every other\n prop is passed through.",
|
|
3178
|
+
"props": [
|
|
3179
|
+
{
|
|
3180
|
+
"name": "withoutBorder",
|
|
3181
|
+
"type": "boolean",
|
|
3182
|
+
"required": false,
|
|
3183
|
+
"defaultValue": "false",
|
|
3184
|
+
"description": "Renders the field without its border and background"
|
|
3185
|
+
},
|
|
3186
|
+
{
|
|
3187
|
+
"name": "clearLabel",
|
|
3188
|
+
"type": "string",
|
|
3189
|
+
"required": false,
|
|
3190
|
+
"defaultValue": "'Clear search'",
|
|
3191
|
+
"description": "Accessible name of the clear button"
|
|
3192
|
+
}
|
|
3193
|
+
],
|
|
3194
|
+
"examples": [
|
|
3195
|
+
"<Search\n id=\"search\"\n value={query}\n placeholder=\"Search\"\n onChange={setQuery}\n/>"
|
|
3196
|
+
],
|
|
3197
|
+
"sourceFile": "components/New/Search/Search.tsx"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
"name": "Slider",
|
|
3201
|
+
"category": "Components_2_0",
|
|
3202
|
+
"generation": "2.0",
|
|
3203
|
+
"description": "A range slider from the 2.0 design system.\naliases: RangeInput|TemperatureSlider|RangeSlider\nDesign system 2.0",
|
|
3204
|
+
"props": [
|
|
3205
|
+
{
|
|
3206
|
+
"name": "value",
|
|
3207
|
+
"type": "number",
|
|
3208
|
+
"required": true,
|
|
3209
|
+
"description": "Current slider value"
|
|
3210
|
+
},
|
|
3211
|
+
{
|
|
3212
|
+
"name": "min",
|
|
3213
|
+
"type": "number",
|
|
3214
|
+
"required": false,
|
|
3215
|
+
"defaultValue": "0",
|
|
3216
|
+
"description": "Minimum value"
|
|
3217
|
+
},
|
|
3218
|
+
{
|
|
3219
|
+
"name": "max",
|
|
3220
|
+
"type": "number",
|
|
3221
|
+
"required": false,
|
|
3222
|
+
"defaultValue": "1",
|
|
3223
|
+
"description": "Maximum value"
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
"name": "step",
|
|
3227
|
+
"type": "number",
|
|
3228
|
+
"required": false,
|
|
3229
|
+
"defaultValue": "0.1",
|
|
3230
|
+
"description": "Step increment"
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
"name": "disabled",
|
|
3234
|
+
"type": "boolean",
|
|
3235
|
+
"required": false,
|
|
3236
|
+
"description": "Whether the slider is disabled"
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
"name": "labelProps",
|
|
3240
|
+
"type": "LabelProps",
|
|
3241
|
+
"required": false,
|
|
3242
|
+
"description": "Props of the rendered above the track"
|
|
3243
|
+
},
|
|
3244
|
+
{
|
|
3245
|
+
"name": "labels",
|
|
3246
|
+
"type": "[string, string] | [string, string, string]",
|
|
3247
|
+
"required": false,
|
|
3248
|
+
"description": "2 or 3 strings rendered below the track (start, [middle,] end)"
|
|
3249
|
+
},
|
|
3250
|
+
{
|
|
3251
|
+
"name": "formatValue",
|
|
3252
|
+
"type": "(value: number) => string",
|
|
3253
|
+
"required": false,
|
|
3254
|
+
"description": "Custom formatter for the displayed value; also becomes the announced `aria-valuetext`"
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
"name": "showValue",
|
|
3258
|
+
"type": "boolean",
|
|
3259
|
+
"required": false,
|
|
3260
|
+
"defaultValue": "false",
|
|
3261
|
+
"description": "Renders the current value at the end of the label row"
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
"name": "caption",
|
|
3265
|
+
"type": "string",
|
|
3266
|
+
"required": false,
|
|
3267
|
+
"description": "Helper text rendered below the track, and described by the slider"
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
"name": "error",
|
|
3271
|
+
"type": "string",
|
|
3272
|
+
"required": false,
|
|
3273
|
+
"description": "Error message rendered below the track; replaces the caption"
|
|
3274
|
+
},
|
|
3275
|
+
{
|
|
3276
|
+
"name": "onChange",
|
|
3277
|
+
"type": "(value: number) => void",
|
|
3278
|
+
"required": false,
|
|
3279
|
+
"description": "Callback fired with the new value"
|
|
3280
|
+
},
|
|
3281
|
+
{
|
|
3282
|
+
"name": "containerClassName",
|
|
3283
|
+
"type": "string",
|
|
3284
|
+
"required": false,
|
|
3285
|
+
"description": "Additional classes for the outer container"
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
"name": "trackClassName",
|
|
3289
|
+
"type": "string",
|
|
3290
|
+
"required": false,
|
|
3291
|
+
"description": "Additional classes for the unfilled track"
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"name": "fillClassName",
|
|
3295
|
+
"type": "string",
|
|
3296
|
+
"required": false,
|
|
3297
|
+
"description": "Additional classes for the filled portion of the track"
|
|
3298
|
+
}
|
|
3299
|
+
],
|
|
3300
|
+
"examples": [
|
|
3301
|
+
"<Slider\n id=\"temperature\"\n labelProps={{ label: 'Temperature' }}\n value={temperature}\n labels={['Precise', 'Neutral', 'Creative']}\n onChange={setTemperature}\n/>"
|
|
3302
|
+
],
|
|
3303
|
+
"sourceFile": "components/New/Slider/Slider.tsx"
|
|
3304
|
+
},
|
|
3305
|
+
{
|
|
3306
|
+
"name": "Tooltip",
|
|
3307
|
+
"category": "Components_2_0",
|
|
3308
|
+
"generation": "2.0",
|
|
3309
|
+
"description": "Shows a short explanation next to an element while it is hovered or focused.\naliases: HoverPopover|InfoPopover\nDesign system 2.0\n\nThe tooltip is placed on one of the four sides of the trigger and follows it\non scroll, flipping to the opposite side when it would not fit.\n\nTooltip text does not reach assistive technology unless the trigger itself\ncarries it: pass `asChild` so the `aria-describedby` lands on the control\nrather than on a wrapper `<span>`, and never let a tooltip be the only\naccessible name of a control — it renders nothing on a touch-only device.",
|
|
3310
|
+
"props": [
|
|
3311
|
+
{
|
|
3312
|
+
"name": "hideTooltip",
|
|
3313
|
+
"type": "boolean",
|
|
3314
|
+
"required": false,
|
|
3315
|
+
"defaultValue": "false",
|
|
3316
|
+
"description": "Suppress the tooltip while keeping the trigger rendered"
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
"name": "tooltip",
|
|
3320
|
+
"type": "ReactNode",
|
|
3321
|
+
"required": false,
|
|
3322
|
+
"description": "The content to display in the tooltip"
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "children",
|
|
3326
|
+
"type": "ReactNode",
|
|
3327
|
+
"required": true,
|
|
3328
|
+
"description": "The element that triggers the tooltip"
|
|
3329
|
+
},
|
|
3330
|
+
{
|
|
3331
|
+
"name": "asChild",
|
|
3332
|
+
"type": "boolean",
|
|
3333
|
+
"required": false,
|
|
3334
|
+
"defaultValue": "false",
|
|
3335
|
+
"description": "Use the child as the trigger instead of wrapping it in a `<span>`"
|
|
3336
|
+
},
|
|
3337
|
+
{
|
|
3338
|
+
"name": "triggerClassName",
|
|
3339
|
+
"type": "string",
|
|
3340
|
+
"required": false,
|
|
3341
|
+
"description": "Additional CSS classes for the trigger element"
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
"name": "contentClassName",
|
|
3345
|
+
"type": "string",
|
|
3346
|
+
"required": false,
|
|
3347
|
+
"description": "Additional CSS classes for the tooltip bubble"
|
|
3348
|
+
}
|
|
3349
|
+
],
|
|
3350
|
+
"examples": [
|
|
3351
|
+
"<Tooltip tooltip=\"Tooltip text\" placement={TooltipPlacement.Top} asChild>\n <button>Hover me</button>\n</Tooltip>"
|
|
3352
|
+
],
|
|
3353
|
+
"sourceFile": "components/New/Tooltip/Tooltip.tsx"
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"name": "TooltipContainer",
|
|
3357
|
+
"category": "Components_2_0",
|
|
3358
|
+
"generation": "2.0",
|
|
3359
|
+
"description": "Provides tooltip positioning and open state to a trigger and a content pair.\naliases: TooltipProvider|TooltipRoot\nDesign system 2.0\n\nUse it directly only when the trigger and the content cannot be rendered by\n`Tooltip` itself — for example when the content needs custom markup.",
|
|
3360
|
+
"props": [],
|
|
3361
|
+
"examples": [
|
|
3362
|
+
"<TooltipContainer placement={TooltipPlacement.Top}>\n <TooltipTrigger asChild>\n <button>Hover me</button>\n </TooltipTrigger>\n <TooltipContent>Tooltip text</TooltipContent>\n</TooltipContainer>"
|
|
3363
|
+
],
|
|
3364
|
+
"sourceFile": "components/New/Tooltip/TooltipContainer.tsx"
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
"name": "TooltipContent",
|
|
3368
|
+
"category": "Components_2_0",
|
|
3369
|
+
"generation": "2.0",
|
|
3370
|
+
"description": "The floating bubble that carries the tooltip text.\nDesign system 2.0\n\nRendered in a portal, above popups and dropdowns, with an arrow pointing back\nat the trigger. Renders nothing on a touch-only device, where no pointer can\nhover to reveal it — so a control must never depend on a tooltip alone to be\nunderstood, or to have an accessible name. A narrow viewport is not itself\ndisqualifying: an embed a few hundred pixels wide still hovers on a desktop.",
|
|
3371
|
+
"props": [
|
|
3372
|
+
{
|
|
3373
|
+
"name": "style",
|
|
3374
|
+
"type": "CSSProperties",
|
|
3375
|
+
"required": false,
|
|
3376
|
+
"description": "Additional inline styles for the tooltip bubble"
|
|
3377
|
+
}
|
|
3378
|
+
],
|
|
3379
|
+
"examples": [],
|
|
3380
|
+
"sourceFile": "components/New/Tooltip/TooltipContent.tsx"
|
|
3381
|
+
},
|
|
3382
|
+
{
|
|
3383
|
+
"name": "TooltipTrigger",
|
|
3384
|
+
"category": "Components_2_0",
|
|
3385
|
+
"generation": "2.0",
|
|
3386
|
+
"description": "The element a tooltip is anchored to and opened from.\nDesign system 2.0\n\nPrefer `asChild` whenever the trigger is a single element: it puts the\n`aria-describedby` that names the tooltip on the control itself instead of on\na wrapper `<span>`, which is the only way the tooltip text reaches assistive\ntechnology.",
|
|
3387
|
+
"props": [
|
|
3388
|
+
{
|
|
3389
|
+
"name": "asChild",
|
|
3390
|
+
"type": "boolean",
|
|
3391
|
+
"required": false,
|
|
3392
|
+
"defaultValue": "false",
|
|
3393
|
+
"description": "Render the child as the trigger instead of wrapping it in a `<span>`"
|
|
3394
|
+
}
|
|
3395
|
+
],
|
|
3396
|
+
"examples": [],
|
|
3397
|
+
"sourceFile": "components/New/Tooltip/TooltipTrigger.tsx"
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
"name": "InteractiveTooltip",
|
|
3401
|
+
"category": "Components_2_0",
|
|
3402
|
+
"generation": "2.0",
|
|
3403
|
+
"description": "A hover panel that, unlike , can hold its own interactive\ncontent.\naliases: HoverCard|InfoPopover\nDesign system 2.0\n\nOpens next to the trigger on hover or focus, the way a tooltip does, but\nstays open while the pointer moves into the panel so its content — links,\nbuttons, anything — can be hovered and clicked. It carries no `role`, since\nARIA's `tooltip` role forbids focusable content and this is meant to hold\nsome; a panel with meaningfully interactive content should still be\nreachable without a mouse (Tab from the trigger reaches it), but a purely\ndecorative one is fine to leave out of the tab order entirely.\n\nRenders nothing on a mobile screen, where there is no hover to reveal it —\nso, as with , a control must never depend on this panel alone\nto be understood or operated.",
|
|
3404
|
+
"props": [
|
|
3405
|
+
{
|
|
3406
|
+
"name": "content",
|
|
3407
|
+
"type": "ReactNode",
|
|
3408
|
+
"required": true,
|
|
3409
|
+
"description": "The panel's content"
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
"name": "placement",
|
|
3413
|
+
"type": "TooltipPlacement",
|
|
3414
|
+
"required": false,
|
|
3415
|
+
"defaultValue": "TooltipPlacement.Right",
|
|
3416
|
+
"description": "Side of the trigger the panel is placed on"
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"name": "children",
|
|
3420
|
+
"type": "ReactNode",
|
|
3421
|
+
"required": true,
|
|
3422
|
+
"description": "The element that triggers the panel"
|
|
3423
|
+
},
|
|
3424
|
+
{
|
|
3425
|
+
"name": "asChild",
|
|
3426
|
+
"type": "boolean",
|
|
3427
|
+
"required": false,
|
|
3428
|
+
"defaultValue": "false",
|
|
3429
|
+
"description": "Use the child as the trigger instead of wrapping it in a `<span>`"
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
"name": "hideTooltip",
|
|
3433
|
+
"type": "boolean",
|
|
3434
|
+
"required": false,
|
|
3435
|
+
"defaultValue": "false",
|
|
3436
|
+
"description": "Suppress the panel while keeping the trigger rendered"
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
"name": "initialOpen",
|
|
3440
|
+
"type": "boolean",
|
|
3441
|
+
"required": false,
|
|
3442
|
+
"defaultValue": "false",
|
|
3443
|
+
"description": "Whether the panel starts open (uncontrolled only)"
|
|
3444
|
+
},
|
|
3445
|
+
{
|
|
3446
|
+
"name": "open",
|
|
3447
|
+
"type": "boolean",
|
|
3448
|
+
"required": false,
|
|
3449
|
+
"description": "Controlled open state; disables the hover and focus triggers"
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
"name": "onOpenChange",
|
|
3453
|
+
"type": "(open: boolean) => void",
|
|
3454
|
+
"required": false,
|
|
3455
|
+
"description": "Callback fired when the open state should change"
|
|
3456
|
+
},
|
|
3457
|
+
{
|
|
3458
|
+
"name": "triggerClassName",
|
|
3459
|
+
"type": "string",
|
|
3460
|
+
"required": false,
|
|
3461
|
+
"description": "Additional CSS classes for the trigger element"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"name": "contentClassName",
|
|
3465
|
+
"type": "string",
|
|
3466
|
+
"required": false,
|
|
3467
|
+
"description": "Additional CSS classes for the panel"
|
|
3468
|
+
}
|
|
3469
|
+
],
|
|
3470
|
+
"examples": [
|
|
3471
|
+
"<InteractiveTooltip\n placement={TooltipPlacement.Right}\n content={\n <>\n <p>Lets the model write and execute Python in an isolated sandbox.</p>\n <Button variant={ButtonVariant.Primary} appearance={ButtonAppearance.Link}>\n View details\n </Button>\n </>\n }\n>\n <MenuItem label=\"code-interpreter\" />\n</InteractiveTooltip>"
|
|
3472
|
+
],
|
|
3473
|
+
"sourceFile": "components/New/InteractiveTooltip/InteractiveTooltip.tsx"
|
|
3474
|
+
},
|
|
3475
|
+
{
|
|
3476
|
+
"name": "EllipsisTooltip",
|
|
3477
|
+
"category": "Components_2_0",
|
|
3478
|
+
"generation": "2.0",
|
|
3479
|
+
"description": "Single-line text with a CSS ellipsis that reveals the full string in a\ntooltip **only when it is actually clipped**.\naliases: TruncatedText|TruncationTooltip\nDesign system 2.0\n\nText that fits gets no tooltip at all, so a row of labels does not sprout\ntooltips that repeat what is already on screen.\n\nThe width has to be finite for anything to truncate: the element is a\n`min-w-0`, `flex-1` block, and `className` sets the width it should fit into.\n\na11y: while truncated, the full string is exposed as the element's\n`aria-label`, so a screen reader reads the whole label even though the\ntooltip itself renders nothing on a touch-only device.",
|
|
3480
|
+
"props": [
|
|
3481
|
+
{
|
|
3482
|
+
"name": "text",
|
|
3483
|
+
"type": "ReactNode",
|
|
3484
|
+
"required": true,
|
|
3485
|
+
"description": "The text or node to display, truncated with an ellipsis when it does not fit"
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
"name": "className",
|
|
3489
|
+
"type": "string",
|
|
3490
|
+
"required": false,
|
|
3491
|
+
"description": "Additional CSS classes for the text element, typically its width"
|
|
3492
|
+
},
|
|
3493
|
+
{
|
|
3494
|
+
"name": "contentClassName",
|
|
3495
|
+
"type": "string",
|
|
3496
|
+
"required": false,
|
|
3497
|
+
"description": "Additional CSS classes for the tooltip bubble"
|
|
3498
|
+
},
|
|
3499
|
+
{
|
|
3500
|
+
"name": "hideTooltip",
|
|
3501
|
+
"type": "boolean",
|
|
3502
|
+
"required": false,
|
|
3503
|
+
"defaultValue": "false",
|
|
3504
|
+
"description": "Suppress the tooltip even while the text is truncated"
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
"name": "id",
|
|
3508
|
+
"type": "string",
|
|
3509
|
+
"required": false,
|
|
3510
|
+
"description": "`id` of the text element"
|
|
3511
|
+
},
|
|
3512
|
+
{
|
|
3513
|
+
"name": "customTooltipContent",
|
|
3514
|
+
"type": "ReactNode",
|
|
3515
|
+
"required": false,
|
|
3516
|
+
"description": "Shown instead of the full text while truncated"
|
|
3517
|
+
}
|
|
3518
|
+
],
|
|
3519
|
+
"examples": [
|
|
3520
|
+
"<EllipsisTooltip text=\"Very long message that will be truncated\" />\n\n<EllipsisTooltip\n text={<span className=\"dial-small-semi-text\">Custom node</span>}\n className=\"max-w-[160px]\"\n/>\n\n<EllipsisTooltip text=\"Tooltip suppressed even when clipped\" hideTooltip />"
|
|
3521
|
+
],
|
|
3522
|
+
"sourceFile": "components/New/EllipsisTooltip/EllipsisTooltip.tsx"
|
|
3523
|
+
},
|
|
3524
|
+
{
|
|
3525
|
+
"name": "CollapsibleSidebar",
|
|
3526
|
+
"category": "Components_2_0",
|
|
3527
|
+
"generation": "2.0",
|
|
3528
|
+
"description": "A side panel that collapses to a narrow rail carrying its title vertically.\naliases: ToggleSidebar|CollapsiblePanel|SidePanel\nDesign system 2.0\n\nWorks as a controlled component when `isOpened` is provided, otherwise it keeps\nits own state from `defaultOpened`. The width is derived from the open state, so\nchanging `width` on an open sidebar takes effect immediately.\n\nThe panel is an `aside` named by `ariaLabel`, and the toggle is a real\n`aria-expanded` control pointing at the content region. Content stays mounted\nwhile collapsed — hidden with `display: none` — so scroll position and any\nform state inside it survive a collapse.\n\nThe container paints no background and no radius: it is meant to sit on the\nsurface it belongs to. Pass `className` for either.",
|
|
3529
|
+
"props": [
|
|
3530
|
+
{
|
|
3531
|
+
"name": "children",
|
|
3532
|
+
"type": "ReactNode",
|
|
3533
|
+
"required": true,
|
|
3534
|
+
"description": "Content shown while the sidebar is expanded."
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"name": "title",
|
|
3538
|
+
"type": "ReactNode",
|
|
3539
|
+
"required": true,
|
|
3540
|
+
"description": "Name of the panel, rendered as vertical text while collapsed."
|
|
3541
|
+
},
|
|
3542
|
+
{
|
|
3543
|
+
"name": "width",
|
|
3544
|
+
"type": "number",
|
|
3545
|
+
"required": false,
|
|
3546
|
+
"defaultValue": "280",
|
|
3547
|
+
"description": "Width in px while expanded."
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
"name": "collapsedWidth",
|
|
3551
|
+
"type": "number",
|
|
3552
|
+
"required": false,
|
|
3553
|
+
"defaultValue": "COLLAPSED_WIDTH",
|
|
3554
|
+
"description": "Width in px while collapsed."
|
|
3555
|
+
},
|
|
3556
|
+
{
|
|
3557
|
+
"name": "isOpened",
|
|
3558
|
+
"type": "boolean",
|
|
3559
|
+
"required": false,
|
|
3560
|
+
"description": "Controlled open state."
|
|
3561
|
+
},
|
|
3562
|
+
{
|
|
3563
|
+
"name": "defaultOpened",
|
|
3564
|
+
"type": "boolean",
|
|
3565
|
+
"required": false,
|
|
3566
|
+
"defaultValue": "true",
|
|
3567
|
+
"description": "Initial open state when uncontrolled."
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
"name": "onToggle",
|
|
3571
|
+
"type": "(nextOpened: boolean, e: MouseEvent<HTMLButtonElement>) => void",
|
|
3572
|
+
"required": false,
|
|
3573
|
+
"description": "Fired when the toggle is clicked. Receives the next open state."
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
"name": "additionalButtons",
|
|
3577
|
+
"type": "ReactNode",
|
|
3578
|
+
"required": false,
|
|
3579
|
+
"description": "Extra footer controls, rendered while expanded."
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
"name": "ariaLabel",
|
|
3583
|
+
"type": "string",
|
|
3584
|
+
"required": false,
|
|
3585
|
+
"defaultValue": "'Sidebar'",
|
|
3586
|
+
"description": "Accessible name of the sidebar region."
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
"name": "collapseLabel",
|
|
3590
|
+
"type": "string",
|
|
3591
|
+
"required": false,
|
|
3592
|
+
"defaultValue": "'Collapse sidebar'",
|
|
3593
|
+
"description": "Name and tooltip of the toggle while expanded."
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
"name": "expandLabel",
|
|
3597
|
+
"type": "string",
|
|
3598
|
+
"required": false,
|
|
3599
|
+
"defaultValue": "'Expand sidebar'",
|
|
3600
|
+
"description": "Name and tooltip of the toggle while collapsed."
|
|
3601
|
+
},
|
|
3602
|
+
{
|
|
3603
|
+
"name": "className",
|
|
3604
|
+
"type": "string",
|
|
3605
|
+
"required": false,
|
|
3606
|
+
"description": "Additional CSS classes for the outer container."
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"name": "titleClassName",
|
|
3610
|
+
"type": "string",
|
|
3611
|
+
"required": false,
|
|
3612
|
+
"description": "Additional CSS classes for the vertical title."
|
|
3613
|
+
},
|
|
3614
|
+
{
|
|
3615
|
+
"name": "contentClassName",
|
|
3616
|
+
"type": "string",
|
|
3617
|
+
"required": false,
|
|
3618
|
+
"description": "Additional CSS classes for the content region."
|
|
3619
|
+
},
|
|
3620
|
+
{
|
|
3621
|
+
"name": "footerClassName",
|
|
3622
|
+
"type": "string",
|
|
3623
|
+
"required": false,
|
|
3624
|
+
"description": "Additional CSS classes for the footer."
|
|
3625
|
+
}
|
|
3626
|
+
],
|
|
3627
|
+
"examples": [
|
|
3628
|
+
"<CollapsibleSidebar title=\"Filters\" width={320}>\n <FilterForm />\n</CollapsibleSidebar>\n\n<CollapsibleSidebar\n title=\"Filters\"\n isOpened={opened}\n onToggle={setOpened}\n>\n <FilterForm />\n</CollapsibleSidebar>"
|
|
3629
|
+
],
|
|
3630
|
+
"sourceFile": "components/New/CollapsibleSidebar/CollapsibleSidebar.tsx"
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
"name": "ResizableContainer",
|
|
3634
|
+
"category": "Components_2_0",
|
|
3635
|
+
"generation": "2.0",
|
|
3636
|
+
"description": "A panel the user can widen or narrow by dragging its edge.\naliases: ResizePanel|SizableContainer|Splitter\nDesign system 2.0\n\nWorks as a controlled component when `width` is provided, otherwise it keeps\nits own width from `defaultWidth`. The handle — an accent line with a chevron\npointing away from the panel — appears on hover and while dragging, and stays\nwithin `minWidth`–`maxWidth` in both modes.\n\nThe handle is a focusable `separator`, so the panel resizes with the arrow\nkeys — `Home` and `End` jump to the bounds — and each press reports through\n`onResize` and `onResizeStop`. Unlike the 1.0 container this one draws no\ndividers between its children; pass `divide-y divide-tertiary` through\n`className` if you want them.",
|
|
3637
|
+
"props": [
|
|
3638
|
+
{
|
|
3639
|
+
"name": "children",
|
|
3640
|
+
"type": "ReactNode",
|
|
3641
|
+
"required": true,
|
|
3642
|
+
"description": "Content placed inside the container."
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
"name": "minWidth",
|
|
3646
|
+
"type": "number",
|
|
3647
|
+
"required": true,
|
|
3648
|
+
"description": "Minimum allowed width in px."
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
"name": "maxWidth",
|
|
3652
|
+
"type": "number",
|
|
3653
|
+
"required": true,
|
|
3654
|
+
"description": "Maximum allowed width in px."
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
"name": "width",
|
|
3658
|
+
"type": "number",
|
|
3659
|
+
"required": false,
|
|
3660
|
+
"description": "Controlled width. If omitted the container is uncontrolled."
|
|
3661
|
+
},
|
|
3662
|
+
{
|
|
3663
|
+
"name": "defaultWidth",
|
|
3664
|
+
"type": "number",
|
|
3665
|
+
"required": false,
|
|
3666
|
+
"description": "Initial width when uncontrolled. Defaults to `minWidth`."
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
"name": "onResizeStop",
|
|
3670
|
+
"type": "(width: number) => void",
|
|
3671
|
+
"required": false,
|
|
3672
|
+
"description": "Fired when a resize ends, and once per arrow key press."
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
"name": "onResize",
|
|
3676
|
+
"type": "(width: number) => void",
|
|
3677
|
+
"required": false,
|
|
3678
|
+
"description": "Fired continuously while dragging."
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
"name": "side",
|
|
3682
|
+
"type": "ResizableContainerSide",
|
|
3683
|
+
"required": false,
|
|
3684
|
+
"defaultValue": "ResizableContainerSide.Right",
|
|
3685
|
+
"description": "Edge carrying the resize handle."
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
"name": "keyboardStep",
|
|
3689
|
+
"type": "number",
|
|
3690
|
+
"required": false,
|
|
3691
|
+
"defaultValue": "DEFAULT_KEYBOARD_STEP",
|
|
3692
|
+
"description": "Width change per arrow key press."
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
"name": "ariaLabel",
|
|
3696
|
+
"type": "string",
|
|
3697
|
+
"required": false,
|
|
3698
|
+
"defaultValue": "'Resize panel'",
|
|
3699
|
+
"description": "Accessible name of the handle."
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
"name": "className",
|
|
3703
|
+
"type": "string",
|
|
3704
|
+
"required": false,
|
|
3705
|
+
"description": "Additional CSS classes for the inner content wrapper."
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
"name": "resizeHandlerClassName",
|
|
3709
|
+
"type": "string",
|
|
3710
|
+
"required": false,
|
|
3711
|
+
"description": "Additional CSS classes for the resize handle."
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
"name": "resizeHandler",
|
|
3715
|
+
"type": "ReactNode",
|
|
3716
|
+
"required": false,
|
|
3717
|
+
"description": "Custom node rendered inside the handle, replacing the default chevron."
|
|
3718
|
+
}
|
|
3719
|
+
],
|
|
3720
|
+
"examples": [
|
|
3721
|
+
"<ResizableContainer minWidth={180} maxWidth={520} defaultWidth={260}>\n <Sidebar />\n</ResizableContainer>\n\n<ResizableContainer\n minWidth={180}\n maxWidth={520}\n width={sidebarWidth}\n onResizeStop={setSidebarWidth}\n>\n <Sidebar />\n</ResizableContainer>"
|
|
3722
|
+
],
|
|
3723
|
+
"sourceFile": "components/New/ResizableContainer/ResizableContainer.tsx"
|
|
3724
|
+
},
|
|
3725
|
+
{
|
|
3726
|
+
"name": "ConditionalResizableContainer",
|
|
3727
|
+
"category": "Components_2_0",
|
|
3728
|
+
"generation": "2.0",
|
|
3729
|
+
"description": "Renders its children inside a only while `enabled`.\naliases: OptionalResize|ConditionalPanel\nDesign system 2.0\n\nWhen `enabled` is false the children are rendered on their own, with no\nwrapper element and no resize behaviour — useful for a panel that is only\nresizable while it is expanded. Every other prop is passed straight through;\nsee for controlled and uncontrolled sizing, sides\nand callbacks.",
|
|
3730
|
+
"props": [
|
|
3731
|
+
{
|
|
3732
|
+
"name": "enabled",
|
|
3733
|
+
"type": "boolean",
|
|
3734
|
+
"required": false,
|
|
3735
|
+
"defaultValue": "true",
|
|
3736
|
+
"description": "Whether resizing is enabled."
|
|
3737
|
+
}
|
|
3738
|
+
],
|
|
3739
|
+
"examples": [
|
|
3740
|
+
"<ConditionalResizableContainer\n enabled={isExpanded}\n minWidth={180}\n maxWidth={520}\n defaultWidth={260}\n>\n <Sidebar />\n</ConditionalResizableContainer>"
|
|
3741
|
+
],
|
|
3742
|
+
"sourceFile": "components/New/ResizableContainer/ConditionalResizableContainer.tsx"
|
|
3743
|
+
},
|
|
3744
|
+
{
|
|
3745
|
+
"name": "NoDataContent",
|
|
3746
|
+
"category": "Components_2_0",
|
|
3747
|
+
"generation": "2.0",
|
|
3748
|
+
"description": "Message shown in place of a list, table or grid that has nothing to show.\naliases: EmptyState|NoResults|ZeroState\nDesign system 2.0\n\nFills its container and centres an illustration, a headline and an optional\nsecondary line. The icon is decorative, so it is hidden from assistive tech\nand the text carries the message on its own.",
|
|
3749
|
+
"props": [
|
|
3750
|
+
{
|
|
3751
|
+
"name": "title",
|
|
3752
|
+
"type": "ReactNode",
|
|
3753
|
+
"required": true,
|
|
3754
|
+
"description": "Headline of the empty state."
|
|
3755
|
+
},
|
|
3756
|
+
{
|
|
3757
|
+
"name": "description",
|
|
3758
|
+
"type": "ReactNode",
|
|
3759
|
+
"required": false,
|
|
3760
|
+
"description": "Optional secondary line under the title."
|
|
3761
|
+
},
|
|
3762
|
+
{
|
|
3763
|
+
"name": "icon",
|
|
3764
|
+
"type": "ReactNode",
|
|
3765
|
+
"required": false,
|
|
3766
|
+
"description": "Illustration above the title. Defaults to the empty-state document mark."
|
|
3767
|
+
},
|
|
3768
|
+
{
|
|
3769
|
+
"name": "live",
|
|
3770
|
+
"type": "boolean",
|
|
3771
|
+
"required": false,
|
|
3772
|
+
"defaultValue": "false",
|
|
3773
|
+
"description": "Announce the empty state to assistive tech as it appears."
|
|
3774
|
+
},
|
|
3775
|
+
{
|
|
3776
|
+
"name": "className",
|
|
3777
|
+
"type": "string",
|
|
3778
|
+
"required": false,
|
|
3779
|
+
"description": "Additional CSS classes for the container."
|
|
3780
|
+
},
|
|
3781
|
+
{
|
|
3782
|
+
"name": "titleClassName",
|
|
3783
|
+
"type": "string",
|
|
3784
|
+
"required": false,
|
|
3785
|
+
"description": "Additional CSS classes for the title."
|
|
3786
|
+
},
|
|
3787
|
+
{
|
|
3788
|
+
"name": "descriptionClassName",
|
|
3789
|
+
"type": "string",
|
|
3790
|
+
"required": false,
|
|
3791
|
+
"description": "Additional CSS classes for the description."
|
|
3792
|
+
}
|
|
3793
|
+
],
|
|
3794
|
+
"examples": [
|
|
3795
|
+
"<NoDataContent\n title=\"No results found\"\n description=\"Try a different search term.\"\n/>\n\n<NoDataContent title=\"Nothing here yet\" icon={<IconInbox size={60} />} live />"
|
|
3796
|
+
],
|
|
3797
|
+
"sourceFile": "components/New/NoDataContent/NoDataContent.tsx"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"name": "Grid",
|
|
3801
|
+
"category": "Components_2_0",
|
|
3802
|
+
"generation": "2.0",
|
|
3803
|
+
"description": "A data grid built on ag-Grid, wired to the 2.0 tokens and controls.\naliases: DataTable|TableGrid|DataGrid\nDesign system 2.0\n\nComes preconfigured with case-insensitive sorting, floating column filters,\ncolumns sized to the available width, a row context menu, truncation\ntooltips, and an empty state.\n\nThe selection column renders the 2.0 `Checkbox` and `Radio` instead of\nag-Grid's own inputs, so selection looks and behaves like every other control\nin the kit and the select-all reaches the `mixed` state when the selection is\npartial. The column stays faded out until the row is hovered, something is\nselected, or the keyboard reaches it.\n\nSelection works controlled or uncontrolled: pass `selectedRowIds` to own it,\nor read `onSelectionChange` and let the grid keep its own. A `sort` declared\non a column is honoured — 1.0 stripped it on startup.",
|
|
3804
|
+
"props": [
|
|
3805
|
+
{
|
|
3806
|
+
"name": "columnDefs",
|
|
3807
|
+
"type": "ColDef<T>[]",
|
|
3808
|
+
"required": false,
|
|
3809
|
+
"description": "Column definitions, in ag-Grid `ColDef` format."
|
|
3810
|
+
},
|
|
3811
|
+
{
|
|
3812
|
+
"name": "rowData",
|
|
3813
|
+
"type": "T[]",
|
|
3814
|
+
"required": false,
|
|
3815
|
+
"description": "Rows to display."
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
"name": "additionalGridOptions",
|
|
3819
|
+
"type": "GridOptions<T>",
|
|
3820
|
+
"required": false,
|
|
3821
|
+
"description": "Extra ag-Grid options, merged over the defaults."
|
|
3822
|
+
},
|
|
3823
|
+
{
|
|
3824
|
+
"name": "getContextMenuItems",
|
|
3825
|
+
"type": "(row: T) => DropdownItem[]",
|
|
3826
|
+
"required": false,
|
|
3827
|
+
"description": "Items of the row context menu. Omit for no menu."
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
"name": "className",
|
|
3831
|
+
"type": "string",
|
|
3832
|
+
"required": false,
|
|
3833
|
+
"description": "Additional CSS classes for the grid container."
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
"name": "ariaLabel",
|
|
3837
|
+
"type": "string",
|
|
3838
|
+
"required": false,
|
|
3839
|
+
"defaultValue": "'Data grid'",
|
|
3840
|
+
"description": "Accessible name of the grid region."
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
"name": "wrapCustomCellRenderers",
|
|
3844
|
+
"type": "boolean | ((col: ColDef<T>) => boolean)",
|
|
3845
|
+
"required": false,
|
|
3846
|
+
"defaultValue": "true",
|
|
3847
|
+
"description": "Whether custom renderers get context-menu support."
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
"name": "disabledRowIds",
|
|
3851
|
+
"type": "Set<string>",
|
|
3852
|
+
"required": false,
|
|
3853
|
+
"description": "Rows that cannot be selected."
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
"name": "selectedRowIds",
|
|
3857
|
+
"type": "Set<string>",
|
|
3858
|
+
"required": false,
|
|
3859
|
+
"description": "Controlled selection: ids of the selected rows."
|
|
2979
3860
|
},
|
|
2980
3861
|
{
|
|
2981
|
-
"name": "
|
|
2982
|
-
"type": "
|
|
3862
|
+
"name": "onGridApiChange",
|
|
3863
|
+
"type": "(api: GridApi<T>) => void",
|
|
2983
3864
|
"required": false,
|
|
2984
|
-
"
|
|
2985
|
-
"description": "Disables typing and tag removal."
|
|
3865
|
+
"description": "Fired when the grid API becomes available."
|
|
2986
3866
|
},
|
|
2987
3867
|
{
|
|
2988
|
-
"name": "
|
|
2989
|
-
"type": "
|
|
3868
|
+
"name": "onSelectionChange",
|
|
3869
|
+
"type": "(selectedRowIds: Set<string>, selectedRows: T[]) => void",
|
|
2990
3870
|
"required": false,
|
|
2991
|
-
"
|
|
2992
|
-
"description": "Shows the tags without allowing new ones or removal."
|
|
3871
|
+
"description": "Fired when the selection changes."
|
|
2993
3872
|
},
|
|
2994
3873
|
{
|
|
2995
|
-
"name": "
|
|
2996
|
-
"type": "
|
|
3874
|
+
"name": "getRowId",
|
|
3875
|
+
"type": "(row: T) => string",
|
|
2997
3876
|
"required": false,
|
|
2998
|
-
"
|
|
2999
|
-
"description": "Keep the tags on one line, replacing the ones that do not fit with a `+N` chip."
|
|
3877
|
+
"description": "Extracts the unique id of a row. Defaults to its `id` field."
|
|
3000
3878
|
},
|
|
3001
3879
|
{
|
|
3002
|
-
"name": "
|
|
3003
|
-
"type": "
|
|
3880
|
+
"name": "alternateOddRowColors",
|
|
3881
|
+
"type": "boolean",
|
|
3004
3882
|
"required": false,
|
|
3005
|
-
"
|
|
3883
|
+
"defaultValue": "false",
|
|
3884
|
+
"description": "Tints odd rows."
|
|
3006
3885
|
},
|
|
3007
3886
|
{
|
|
3008
|
-
"name": "
|
|
3887
|
+
"name": "filterPlaceholder",
|
|
3009
3888
|
"type": "string",
|
|
3010
3889
|
"required": false,
|
|
3011
|
-
"defaultValue": "'
|
|
3012
|
-
"description": "
|
|
3890
|
+
"defaultValue": "'Enter value'",
|
|
3891
|
+
"description": "Placeholder of the column filter inputs."
|
|
3013
3892
|
},
|
|
3014
3893
|
{
|
|
3015
|
-
"name": "
|
|
3016
|
-
"type": "
|
|
3894
|
+
"name": "emptyStateIcon",
|
|
3895
|
+
"type": "ReactNode",
|
|
3017
3896
|
"required": false,
|
|
3018
|
-
"description": "
|
|
3897
|
+
"description": "Illustration of the empty state."
|
|
3019
3898
|
},
|
|
3020
3899
|
{
|
|
3021
|
-
"name": "
|
|
3900
|
+
"name": "emptyStateTitle",
|
|
3022
3901
|
"type": "string",
|
|
3023
3902
|
"required": false,
|
|
3024
|
-
"
|
|
3903
|
+
"defaultValue": "'No results found'",
|
|
3904
|
+
"description": "Headline of the empty state."
|
|
3025
3905
|
},
|
|
3026
3906
|
{
|
|
3027
|
-
"name": "
|
|
3907
|
+
"name": "emptyStateDescription",
|
|
3028
3908
|
"type": "string",
|
|
3029
3909
|
"required": false,
|
|
3030
|
-
"
|
|
3910
|
+
"defaultValue": "\"Sorry, we couldn't find any results for your search.\"",
|
|
3911
|
+
"description": "Secondary line of the empty state."
|
|
3031
3912
|
},
|
|
3032
3913
|
{
|
|
3033
|
-
"name": "
|
|
3034
|
-
"type": "(tags: string[]) => void",
|
|
3035
|
-
"required": false,
|
|
3036
|
-
"description": "Called with the new list whenever a tag is added or removed."
|
|
3037
|
-
}
|
|
3038
|
-
],
|
|
3039
|
-
"examples": [
|
|
3040
|
-
"const [tags, setTags] = useState<string[]>(['React']);\n\n<TagInput\n id=\"skills\"\n labelProps={{ label: 'Skills' }}\n placeholder=\"Add a skill\"\n caption=\"Press Enter or comma to add\"\n value={tags}\n onChange={setTags}\n/>"
|
|
3041
|
-
],
|
|
3042
|
-
"sourceFile": "components/New/TagInput/TagInput.tsx"
|
|
3043
|
-
},
|
|
3044
|
-
{
|
|
3045
|
-
"name": "Search",
|
|
3046
|
-
"category": "Components_2_0",
|
|
3047
|
-
"generation": "2.0",
|
|
3048
|
-
"description": "A search field with a leading magnifier and a clear button, built on .\naliases: SearchField|QueryInput|SearchBox\nDesign system 2.0\n\nFully controlled: it renders exactly the `value` it is given and reports every\nedit through `onChange`, which receives `undefined` for an empty field. The\nclear button appears only while there is something to clear, and returns focus\nto the input once pressed so keyboard users are not dropped to the page body.\n\n`type` and both icon slots are owned by this component; every other\n prop is passed through.",
|
|
3049
|
-
"props": [
|
|
3050
|
-
{
|
|
3051
|
-
"name": "withoutBorder",
|
|
3914
|
+
"name": "loading",
|
|
3052
3915
|
"type": "boolean",
|
|
3053
3916
|
"required": false,
|
|
3054
3917
|
"defaultValue": "false",
|
|
3055
|
-
"description": "
|
|
3918
|
+
"description": "Shows the loading overlay."
|
|
3056
3919
|
},
|
|
3057
3920
|
{
|
|
3058
|
-
"name": "
|
|
3059
|
-
"type": "
|
|
3921
|
+
"name": "wrapperBorder",
|
|
3922
|
+
"type": "boolean",
|
|
3060
3923
|
"required": false,
|
|
3061
|
-
"defaultValue": "
|
|
3062
|
-
"description": "
|
|
3063
|
-
}
|
|
3064
|
-
],
|
|
3065
|
-
"examples": [
|
|
3066
|
-
"<Search\n id=\"search\"\n value={query}\n placeholder=\"Search\"\n onChange={setQuery}\n/>"
|
|
3067
|
-
],
|
|
3068
|
-
"sourceFile": "components/New/Search/Search.tsx"
|
|
3069
|
-
},
|
|
3070
|
-
{
|
|
3071
|
-
"name": "Tooltip",
|
|
3072
|
-
"category": "Components_2_0",
|
|
3073
|
-
"generation": "2.0",
|
|
3074
|
-
"description": "Shows a short explanation next to an element while it is hovered or focused.\naliases: HoverPopover|InfoPopover\nDesign system 2.0\n\nThe tooltip is placed on one of the four sides of the trigger and follows it\non scroll, flipping to the opposite side when it would not fit.\n\nTooltip text does not reach assistive technology unless the trigger itself\ncarries it: pass `asChild` so the `aria-describedby` lands on the control\nrather than on a wrapper `<span>`, and never let a tooltip be the only\naccessible name of a control — it renders nothing on mobile screens.",
|
|
3075
|
-
"props": [
|
|
3924
|
+
"defaultValue": "true",
|
|
3925
|
+
"description": "Draws a border around the grid."
|
|
3926
|
+
},
|
|
3076
3927
|
{
|
|
3077
|
-
"name": "
|
|
3928
|
+
"name": "withoutHeaderBorders",
|
|
3078
3929
|
"type": "boolean",
|
|
3079
3930
|
"required": false,
|
|
3080
3931
|
"defaultValue": "false",
|
|
3081
|
-
"description": "
|
|
3932
|
+
"description": "Hides the vertical borders between header cells."
|
|
3082
3933
|
},
|
|
3083
3934
|
{
|
|
3084
|
-
"name": "
|
|
3085
|
-
"type": "
|
|
3935
|
+
"name": "selectionMode",
|
|
3936
|
+
"type": "GridSelectionMode",
|
|
3086
3937
|
"required": false,
|
|
3087
|
-
"description": "
|
|
3088
|
-
},
|
|
3089
|
-
{
|
|
3090
|
-
"name": "children",
|
|
3091
|
-
"type": "ReactNode",
|
|
3092
|
-
"required": true,
|
|
3093
|
-
"description": "The element that triggers the tooltip"
|
|
3938
|
+
"description": "Renders a selection column of checkboxes or radios."
|
|
3094
3939
|
},
|
|
3095
3940
|
{
|
|
3096
|
-
"name": "
|
|
3941
|
+
"name": "allowDisabledContextMenu",
|
|
3097
3942
|
"type": "boolean",
|
|
3098
3943
|
"required": false,
|
|
3099
3944
|
"defaultValue": "false",
|
|
3100
|
-
"description": "
|
|
3945
|
+
"description": "Keeps the context menu on a non-selectable row."
|
|
3101
3946
|
},
|
|
3102
3947
|
{
|
|
3103
|
-
"name": "
|
|
3104
|
-
"type": "string",
|
|
3948
|
+
"name": "selectRowLabel",
|
|
3949
|
+
"type": "(row: T) => string",
|
|
3105
3950
|
"required": false,
|
|
3106
|
-
"description": "
|
|
3951
|
+
"description": "Accessible name of a row's selection control."
|
|
3107
3952
|
},
|
|
3108
3953
|
{
|
|
3109
|
-
"name": "
|
|
3954
|
+
"name": "selectAllLabel",
|
|
3110
3955
|
"type": "string",
|
|
3111
3956
|
"required": false,
|
|
3112
|
-
"
|
|
3957
|
+
"defaultValue": "'Select all rows'",
|
|
3958
|
+
"description": "Accessible name of the select-all control."
|
|
3113
3959
|
}
|
|
3114
3960
|
],
|
|
3115
3961
|
"examples": [
|
|
3116
|
-
"
|
|
3117
|
-
],
|
|
3118
|
-
"sourceFile": "components/New/Tooltip/Tooltip.tsx"
|
|
3119
|
-
},
|
|
3120
|
-
{
|
|
3121
|
-
"name": "TooltipContainer",
|
|
3122
|
-
"category": "Components_2_0",
|
|
3123
|
-
"generation": "2.0",
|
|
3124
|
-
"description": "Provides tooltip positioning and open state to a trigger and a content pair.\naliases: TooltipProvider|TooltipRoot\nDesign system 2.0\n\nUse it directly only when the trigger and the content cannot be rendered by\n`Tooltip` itself — for example when the content needs custom markup.",
|
|
3125
|
-
"props": [],
|
|
3126
|
-
"examples": [
|
|
3127
|
-
"<TooltipContainer placement={TooltipPlacement.Top}>\n <TooltipTrigger asChild>\n <button>Hover me</button>\n </TooltipTrigger>\n <TooltipContent>Tooltip text</TooltipContent>\n</TooltipContainer>"
|
|
3128
|
-
],
|
|
3129
|
-
"sourceFile": "components/New/Tooltip/TooltipContainer.tsx"
|
|
3130
|
-
},
|
|
3131
|
-
{
|
|
3132
|
-
"name": "TooltipContent",
|
|
3133
|
-
"category": "Components_2_0",
|
|
3134
|
-
"generation": "2.0",
|
|
3135
|
-
"description": "The floating bubble that carries the tooltip text.\nDesign system 2.0\n\nRendered in a portal, above popups and dropdowns, with an arrow pointing back\nat the trigger. Renders nothing on a mobile screen, where there is no hover\nto reveal it — so a control must never depend on a tooltip alone to be\nunderstood, or to have an accessible name.",
|
|
3136
|
-
"props": [
|
|
3137
|
-
{
|
|
3138
|
-
"name": "style",
|
|
3139
|
-
"type": "CSSProperties",
|
|
3140
|
-
"required": false,
|
|
3141
|
-
"description": "Additional inline styles for the tooltip bubble"
|
|
3142
|
-
}
|
|
3962
|
+
"interface Product { id: string; name: string; price: number }\n\nconst columns: ColDef<Product>[] = [\n { field: 'name', headerName: 'Product', flex: 1 },\n { field: 'price', headerName: 'Price', width: 120 },\n];\n\n<Grid<Product> columnDefs={columns} rowData={products} />\n\n// With selection and a context menu\n<Grid<Product>\n columnDefs={columns}\n rowData={products}\n selectionMode={GridSelectionMode.MULTIPLE}\n selectedRowIds={selectedIds}\n onSelectionChange={(ids) => setSelectedIds(ids)}\n selectRowLabel={(row) => `Select ${row.name}`}\n getContextMenuItems={(row) => [{ key: 'edit', label: 'Edit' }]}\n/>"
|
|
3143
3963
|
],
|
|
3144
|
-
"
|
|
3145
|
-
"sourceFile": "components/New/Tooltip/TooltipContent.tsx"
|
|
3964
|
+
"sourceFile": "components/New/Grid/Grid.tsx"
|
|
3146
3965
|
},
|
|
3147
3966
|
{
|
|
3148
|
-
"name": "
|
|
3149
|
-
"category": "Components_2_0",
|
|
3967
|
+
"name": "DateCellRenderer",
|
|
3968
|
+
"category": "Components_2_0/Grid",
|
|
3150
3969
|
"generation": "2.0",
|
|
3151
|
-
"description": "
|
|
3970
|
+
"description": "Date cell for the 2.0 , usable as an ag-Grid `cellRenderer`.\naliases: DateCell|TimestampCell\nDesign system 2.0\n\nFormats the value with `Intl.DateTimeFormat` and wraps it in a\n, so the full string is only offered when the column is\ntoo narrow to show it. A valid date is rendered inside a `<time datetime>`,\nwhich gives assistive tech and crawlers the machine-readable value next to\nthe localised one.",
|
|
3152
3971
|
"props": [
|
|
3153
3972
|
{
|
|
3154
|
-
"name": "
|
|
3155
|
-
"type": "
|
|
3973
|
+
"name": "value",
|
|
3974
|
+
"type": "DateValue | null",
|
|
3156
3975
|
"required": false,
|
|
3157
|
-
"
|
|
3158
|
-
"description": "Render the child as the trigger instead of wrapping it in a `<span>`"
|
|
3159
|
-
}
|
|
3160
|
-
],
|
|
3161
|
-
"examples": [],
|
|
3162
|
-
"sourceFile": "components/New/Tooltip/TooltipTrigger.tsx"
|
|
3163
|
-
},
|
|
3164
|
-
{
|
|
3165
|
-
"name": "EllipsisTooltip",
|
|
3166
|
-
"category": "Components_2_0",
|
|
3167
|
-
"generation": "2.0",
|
|
3168
|
-
"description": "Single-line text with a CSS ellipsis that reveals the full string in a\ntooltip **only when it is actually clipped**.\naliases: TruncatedText|TruncationTooltip\nDesign system 2.0\n\nText that fits gets no tooltip at all, so a row of labels does not sprout\ntooltips that repeat what is already on screen.\n\nThe width has to be finite for anything to truncate: the element is a\n`min-w-0`, `flex-1` block, and `className` sets the width it should fit into.\n\na11y: while truncated, the full string is exposed as the element's\n`aria-label`, so a screen reader reads the whole label even though the\ntooltip itself renders nothing on mobile screens.",
|
|
3169
|
-
"props": [
|
|
3170
|
-
{
|
|
3171
|
-
"name": "text",
|
|
3172
|
-
"type": "ReactNode",
|
|
3173
|
-
"required": true,
|
|
3174
|
-
"description": "The text or node to display, truncated with an ellipsis when it does not fit"
|
|
3976
|
+
"description": "The date to render."
|
|
3175
3977
|
},
|
|
3176
3978
|
{
|
|
3177
|
-
"name": "
|
|
3979
|
+
"name": "locale",
|
|
3178
3980
|
"type": "string",
|
|
3179
3981
|
"required": false,
|
|
3180
|
-
"
|
|
3982
|
+
"defaultValue": "DEFAULT_LOCALE",
|
|
3983
|
+
"description": "Locale used for formatting."
|
|
3181
3984
|
},
|
|
3182
3985
|
{
|
|
3183
|
-
"name": "
|
|
3184
|
-
"type": "
|
|
3986
|
+
"name": "options",
|
|
3987
|
+
"type": "Intl.DateTimeFormatOptions",
|
|
3185
3988
|
"required": false,
|
|
3186
|
-
"
|
|
3989
|
+
"defaultValue": "DEFAULT_DATE_FORMAT_OPTIONS",
|
|
3990
|
+
"description": "`Intl.DateTimeFormat` options, e.g. `timeZone`."
|
|
3187
3991
|
},
|
|
3188
3992
|
{
|
|
3189
|
-
"name": "
|
|
3190
|
-
"type": "
|
|
3993
|
+
"name": "emptyPlaceholder",
|
|
3994
|
+
"type": "string",
|
|
3191
3995
|
"required": false,
|
|
3192
|
-
"
|
|
3193
|
-
"description": "Suppress the tooltip even while the text is truncated"
|
|
3996
|
+
"description": "Rendered when the value carries no usable date."
|
|
3194
3997
|
},
|
|
3195
3998
|
{
|
|
3196
|
-
"name": "
|
|
3999
|
+
"name": "className",
|
|
3197
4000
|
"type": "string",
|
|
3198
4001
|
"required": false,
|
|
3199
|
-
"description": "
|
|
4002
|
+
"description": "Additional CSS classes for the cell."
|
|
3200
4003
|
},
|
|
3201
4004
|
{
|
|
3202
|
-
"name": "
|
|
3203
|
-
"type": "
|
|
4005
|
+
"name": "hideTooltip",
|
|
4006
|
+
"type": "boolean",
|
|
3204
4007
|
"required": false,
|
|
3205
|
-
"
|
|
4008
|
+
"defaultValue": "false",
|
|
4009
|
+
"description": "Suppresses the truncation tooltip."
|
|
3206
4010
|
}
|
|
3207
4011
|
],
|
|
3208
4012
|
"examples": [
|
|
3209
|
-
"
|
|
4013
|
+
"// As a column renderer\n{ field: 'createdAt', cellRenderer: DateCellRenderer,\n cellRendererParams: { options: { timeZone: 'UTC' } } }\n\n// Directly\n<DateCellRenderer value=\"2025-07-20T00:00:00Z\" options={{ timeZone: 'UTC' }} />\n<DateCellRenderer value={1752969600000} /> // epoch milliseconds"
|
|
3210
4014
|
],
|
|
3211
|
-
"sourceFile": "components/New/
|
|
4015
|
+
"sourceFile": "components/New/Grid/renderers/DateCellRenderer.tsx"
|
|
3212
4016
|
},
|
|
3213
4017
|
{
|
|
3214
4018
|
"name": "DialCaptionText",
|
|
@@ -3539,7 +4343,7 @@
|
|
|
3539
4343
|
"name": "barClassName",
|
|
3540
4344
|
"type": "string",
|
|
3541
4345
|
"required": false,
|
|
3542
|
-
"description": "Additional CSS classes for each bar's outer container."
|
|
4346
|
+
"description": "Additional CSS classes for each bar's outer container. In compare mode they apply to the shared pair container (one continuous block); the entry is a Tailwind `group` — use `group-hover:` for pair hover; when `onBarClick` is set that container also gets a default accent fill on hover and `:focus-visible`."
|
|
3543
4347
|
},
|
|
3544
4348
|
{
|
|
3545
4349
|
"name": "barDescriptions",
|
|
@@ -4305,7 +5109,8 @@
|
|
|
4305
5109
|
"examples": [
|
|
4306
5110
|
"<DialSlider\n value={0.5}\n min={0}\n max={1}\n step={0.1}\n labels={['Precise', 'Neutral', 'Creative']}\n aria-label=\"Temperature\"\n onChange={(v) => console.log(v)}\n/>"
|
|
4307
5111
|
],
|
|
4308
|
-
"sourceFile": "components/Slider/Slider.tsx"
|
|
5112
|
+
"sourceFile": "components/Slider/Slider.tsx",
|
|
5113
|
+
"supersededBy": "Slider"
|
|
4309
5114
|
},
|
|
4310
5115
|
{
|
|
4311
5116
|
"name": "DialNoDataContent",
|
|
@@ -4353,7 +5158,8 @@
|
|
|
4353
5158
|
"examples": [
|
|
4354
5159
|
"<NoDataContent\n emptyDataTitle=\"No results found\"\n icon={<CustomIcon />}\n/>"
|
|
4355
5160
|
],
|
|
4356
|
-
"sourceFile": "components/NoDataContent/NoDataContent.tsx"
|
|
5161
|
+
"sourceFile": "components/NoDataContent/NoDataContent.tsx",
|
|
5162
|
+
"supersededBy": "NoDataContent"
|
|
4357
5163
|
},
|
|
4358
5164
|
{
|
|
4359
5165
|
"name": "DialCollapsibleSidebar",
|
|
@@ -4428,7 +5234,8 @@
|
|
|
4428
5234
|
"examples": [
|
|
4429
5235
|
"<DialCollapsibleSidebar\n width={300}\n title=\"Menu\"\n titleClassName=\"text-primary font-bold\"\n containerClassName=\"bg-gray-100 shadow-md\"\n iconSize={24}\n additionalButtons={<button>Extra</button>}\n>\n <div>Content goes here</div>\n</DialCollapsibleSidebar>"
|
|
4430
5236
|
],
|
|
4431
|
-
"sourceFile": "components/CollapsibleSidebar/CollapsibleSidebar.tsx"
|
|
5237
|
+
"sourceFile": "components/CollapsibleSidebar/CollapsibleSidebar.tsx",
|
|
5238
|
+
"supersededBy": "CollapsibleSidebar"
|
|
4432
5239
|
},
|
|
4433
5240
|
{
|
|
4434
5241
|
"name": "DialLabelledText",
|
|
@@ -5023,7 +5830,8 @@
|
|
|
5023
5830
|
}
|
|
5024
5831
|
],
|
|
5025
5832
|
"examples": [],
|
|
5026
|
-
"sourceFile": "components/ResizableContainer/ResizableContainer.tsx"
|
|
5833
|
+
"sourceFile": "components/ResizableContainer/ResizableContainer.tsx",
|
|
5834
|
+
"supersededBy": "ResizableContainer"
|
|
5027
5835
|
},
|
|
5028
5836
|
{
|
|
5029
5837
|
"name": "DialConditionalResizableContainer",
|
|
@@ -5042,7 +5850,8 @@
|
|
|
5042
5850
|
"examples": [
|
|
5043
5851
|
"<DialConditionalResizableContainer\n enabled={!isCollapsed}\n defaultWidth={260}\n minWidth={180}\n maxWidth={520}\n onResize={(w) => console.log('Current width:', w)}\n onResizeStop={(w) => setSidebarWidth(w)}\n>\n <Sidebar />\n</DialConditionalResizableContainer>"
|
|
5044
5852
|
],
|
|
5045
|
-
"sourceFile": "components/ResizableContainer/ConditionalResizableContainer.tsx"
|
|
5853
|
+
"sourceFile": "components/ResizableContainer/ConditionalResizableContainer.tsx",
|
|
5854
|
+
"supersededBy": "ConditionalResizableContainer"
|
|
5046
5855
|
},
|
|
5047
5856
|
{
|
|
5048
5857
|
"name": "DialGrid",
|
|
@@ -5197,7 +6006,8 @@
|
|
|
5197
6006
|
"examples": [
|
|
5198
6007
|
"// Basic usage with data\ninterface Product {\n id: string;\n name: string;\n price: number;\n}\n\nconst columns: ColDef<Product>[] = [\n { field: 'name', headerName: 'Product Name', flex: 1 },\n { field: 'price', headerName: 'Price', width: 120 },\n];\n\n<DialGrid<Product>\n columnDefs={columns}\n rowData={products}\n/>\n\n// With loading state\n<DialGrid<Product>\n columnDefs={columns}\n rowData={products}\n loading={true}\n/>\n\n// With context menu\nconst getContextMenu = (row: Product): DropdownItem[] => [\n { key: 'edit', label: 'Edit' },\n { key: 'delete', label: 'Delete', danger: true },\n];\n\n<DialGrid<Product>\n columnDefs={columns}\n rowData={products}\n getContextMenuItems={getContextMenu}\n/>\n\n// Controlled selection\nconst [selectedIds, setSelectedIds] = useState<Set<string>>(new Set());\n\n<DialGrid<Product>\n columnDefs={columns}\n rowData={products}\n selectedRowIds={selectedIds}\n onSelectionChange={(ids, rows) => {\n setSelectedIds(ids);\n console.log('Selected:', rows);\n }}\n/>"
|
|
5199
6008
|
],
|
|
5200
|
-
"sourceFile": "components/Grid/Grid.tsx"
|
|
6009
|
+
"sourceFile": "components/Grid/Grid.tsx",
|
|
6010
|
+
"supersededBy": "Grid"
|
|
5201
6011
|
},
|
|
5202
6012
|
{
|
|
5203
6013
|
"name": "DialDateCellRenderer",
|
|
@@ -5246,7 +6056,8 @@
|
|
|
5246
6056
|
"examples": [
|
|
5247
6057
|
"// ag-Grid colDef\n{ field: 'createdAt', cellRenderer: DateCellRenderer, cellRendererParams: { options: { timeZone: 'UTC' } } }\n\n// Direct usage\n<DateCellRenderer value=\"2025-07-20T00:00:00Z\" options={{ timeZone: 'UTC' }} />\n<DateCellRenderer value={1752969600000} options={{ timeZone: 'UTC' }} /> // milliseconds"
|
|
5248
6058
|
],
|
|
5249
|
-
"sourceFile": "components/Grid/renderers/DateCellRenderer.tsx"
|
|
6059
|
+
"sourceFile": "components/Grid/renderers/DateCellRenderer.tsx",
|
|
6060
|
+
"supersededBy": "DateCellRenderer"
|
|
5250
6061
|
},
|
|
5251
6062
|
{
|
|
5252
6063
|
"name": "DialTabs",
|
|
@@ -5887,7 +6698,7 @@
|
|
|
5887
6698
|
"name": "DialTooltipContent",
|
|
5888
6699
|
"category": "Overlay",
|
|
5889
6700
|
"generation": "1.0",
|
|
5890
|
-
"description": "The content area of a tooltip that displays the tooltip information\nDesign system 1.0",
|
|
6701
|
+
"description": "The content area of a tooltip that displays the tooltip information\nDesign system 1.0\n\nRenders nothing on a touch-only device, where no pointer can hover to reveal\nit. A narrow viewport is not itself disqualifying: an embed a few hundred\npixels wide still hovers on a desktop.",
|
|
5891
6702
|
"props": [],
|
|
5892
6703
|
"examples": [],
|
|
5893
6704
|
"sourceFile": "components/Tooltip/TooltipContent.tsx",
|
|
@@ -8403,6 +9214,39 @@
|
|
|
8403
9214
|
],
|
|
8404
9215
|
"sourceFile": "types/dropdown.ts"
|
|
8405
9216
|
},
|
|
9217
|
+
{
|
|
9218
|
+
"name": "MenuItemMark",
|
|
9219
|
+
"kind": "enum",
|
|
9220
|
+
"members": [
|
|
9221
|
+
{
|
|
9222
|
+
"name": "None",
|
|
9223
|
+
"value": "'none'",
|
|
9224
|
+
"comment": "Nothing marks the row — it is only ever unselected."
|
|
9225
|
+
},
|
|
9226
|
+
{
|
|
9227
|
+
"name": "Check",
|
|
9228
|
+
"value": "'check'",
|
|
9229
|
+
"comment": "A trailing check on the chosen row; the row keeps its plain background."
|
|
9230
|
+
},
|
|
9231
|
+
{
|
|
9232
|
+
"name": "Tint",
|
|
9233
|
+
"value": "'tint'",
|
|
9234
|
+
"comment": "The chosen row is tinted, with no glyph — the select list's own mark."
|
|
9235
|
+
},
|
|
9236
|
+
{
|
|
9237
|
+
"name": "Checkbox",
|
|
9238
|
+
"value": "'checkbox'",
|
|
9239
|
+
"comment": "A leading checkbox box, tinted while checked, for multiselect rows."
|
|
9240
|
+
},
|
|
9241
|
+
{
|
|
9242
|
+
"name": "Highlight",
|
|
9243
|
+
"value": "'highlight'",
|
|
9244
|
+
"comment": "Accent label on a tinted row: the current item in a navigation menu."
|
|
9245
|
+
}
|
|
9246
|
+
],
|
|
9247
|
+
"sourceFile": "types/menu-item.ts",
|
|
9248
|
+
"description": "How a chosen row inside an overlay (dropdown menu, select list) is marked.\n\nThe design marks a chosen row differently depending on what the overlay is.\nA **menu** puts a check at the trailing edge, single- and multi-select alike,\nand gives the current item of a navigation menu an accent label. A **select\nlist** tints the chosen row instead, with a checkbox in front of it when the\nlist is a multiselect."
|
|
9249
|
+
},
|
|
8406
9250
|
{
|
|
8407
9251
|
"name": "ElementSize",
|
|
8408
9252
|
"kind": "enum",
|
|
@@ -8856,6 +9700,14 @@
|
|
|
8856
9700
|
"name": "icon?",
|
|
8857
9701
|
"value": "ReactNode"
|
|
8858
9702
|
},
|
|
9703
|
+
{
|
|
9704
|
+
"name": "rightControl?",
|
|
9705
|
+
"value": "ReactNode"
|
|
9706
|
+
},
|
|
9707
|
+
{
|
|
9708
|
+
"name": "interactiveTooltip?",
|
|
9709
|
+
"value": "SelectOptionInteractiveTooltip"
|
|
9710
|
+
},
|
|
8859
9711
|
{
|
|
8860
9712
|
"name": "children?",
|
|
8861
9713
|
"value": "SelectOption[]"
|
|
@@ -8941,10 +9793,18 @@
|
|
|
8941
9793
|
"name": "selectable?",
|
|
8942
9794
|
"value": "boolean"
|
|
8943
9795
|
},
|
|
9796
|
+
{
|
|
9797
|
+
"name": "mark?",
|
|
9798
|
+
"value": "MenuItemMark"
|
|
9799
|
+
},
|
|
8944
9800
|
{
|
|
8945
9801
|
"name": "checked?",
|
|
8946
9802
|
"value": "boolean"
|
|
8947
9803
|
},
|
|
9804
|
+
{
|
|
9805
|
+
"name": "rightControl?",
|
|
9806
|
+
"value": "ReactNode"
|
|
9807
|
+
},
|
|
8948
9808
|
{
|
|
8949
9809
|
"name": "type?",
|
|
8950
9810
|
"value": "DropdownItemType"
|
|
@@ -8980,6 +9840,10 @@
|
|
|
8980
9840
|
{
|
|
8981
9841
|
"name": "subMenuHoverOptions?",
|
|
8982
9842
|
"value": "DropdownSubMenuHoverOptions"
|
|
9843
|
+
},
|
|
9844
|
+
{
|
|
9845
|
+
"name": "interactiveTooltip?",
|
|
9846
|
+
"value": "DropdownItemInteractiveTooltip"
|
|
8983
9847
|
}
|
|
8984
9848
|
],
|
|
8985
9849
|
"sourceFile": "models/dropdown.ts"
|
|
@@ -9515,6 +10379,29 @@
|
|
|
9515
10379
|
"sourceFile": "components/New/Calendar/Calendar.tsx",
|
|
9516
10380
|
"typeBody": "Date | string | null"
|
|
9517
10381
|
},
|
|
10382
|
+
{
|
|
10383
|
+
"name": "TextareaResize",
|
|
10384
|
+
"kind": "enum",
|
|
10385
|
+
"members": [
|
|
10386
|
+
{
|
|
10387
|
+
"name": "None",
|
|
10388
|
+
"value": "'none'"
|
|
10389
|
+
},
|
|
10390
|
+
{
|
|
10391
|
+
"name": "Both",
|
|
10392
|
+
"value": "'both'"
|
|
10393
|
+
},
|
|
10394
|
+
{
|
|
10395
|
+
"name": "Horizontal",
|
|
10396
|
+
"value": "'horizontal'"
|
|
10397
|
+
},
|
|
10398
|
+
{
|
|
10399
|
+
"name": "Vertical",
|
|
10400
|
+
"value": "'vertical'"
|
|
10401
|
+
}
|
|
10402
|
+
],
|
|
10403
|
+
"sourceFile": "components/New/Textarea/Textarea.tsx"
|
|
10404
|
+
},
|
|
9518
10405
|
{
|
|
9519
10406
|
"name": "RadioGroupItem",
|
|
9520
10407
|
"kind": "interface",
|
|
@@ -9680,7 +10567,7 @@
|
|
|
9680
10567
|
},
|
|
9681
10568
|
{
|
|
9682
10569
|
"name": "convertGridDateToDate",
|
|
9683
|
-
"sourceFile": "
|
|
10570
|
+
"sourceFile": "utils/grid-date.ts"
|
|
9684
10571
|
},
|
|
9685
10572
|
{
|
|
9686
10573
|
"name": "useDialFileManagerTabs",
|
|
@@ -9719,11 +10606,76 @@
|
|
|
9719
10606
|
"description": "Hook to read the File Manager context.\nThrows if used outside of the provider.",
|
|
9720
10607
|
"signature": "() => unknown"
|
|
9721
10608
|
},
|
|
10609
|
+
{
|
|
10610
|
+
"name": "useThemeScope",
|
|
10611
|
+
"sourceFile": "components/New/ThemeScope/ThemeScope.tsx",
|
|
10612
|
+
"description": "Class names of the enclosing `ThemeScope`s, outermost first, or `''` when the\ncaller sits outside any scope. Components rendering into a `FloatingPortal`\nmerge this onto their floating root so the tokens follow them out of the\nsubtree.",
|
|
10613
|
+
"signature": "() => string"
|
|
10614
|
+
},
|
|
9722
10615
|
{
|
|
9723
10616
|
"name": "matchesAccept",
|
|
9724
10617
|
"sourceFile": "utils/file-accept.ts",
|
|
9725
10618
|
"description": "Tests a file against the value of a native `accept` attribute.\n\nThe file picker filters by `accept` on its own, but a drop does not: dropping\na `.png` onto an input that accepts `.md` hands the file over regardless. Any\ndrop target therefore has to re-check what it received.\n\nSupports all three `accept` token forms — an extension (`.md`), a full MIME\ntype (`text/markdown`) and a MIME wildcard (`image/*`). An empty or missing\n`accept` accepts everything, matching the attribute's own semantics.",
|
|
9726
10619
|
"signature": "(file: File, accept?: string) => boolean"
|
|
10620
|
+
},
|
|
10621
|
+
{
|
|
10622
|
+
"name": "GRID_SELECTION_COLUMN_ID",
|
|
10623
|
+
"sourceFile": "components/New/Grid/Grid.tsx",
|
|
10624
|
+
"description": "Column id of the selection column this component prepends itself.",
|
|
10625
|
+
"signature": "GRID_SELECTION_COLUMN_ID = 'dial-kit-grid-selection'"
|
|
10626
|
+
},
|
|
10627
|
+
{
|
|
10628
|
+
"name": "DEFAULT_DATE_FORMAT_OPTIONS",
|
|
10629
|
+
"sourceFile": "components/New/Grid/renderers/constants.ts",
|
|
10630
|
+
"signature": "DEFAULT_DATE_FORMAT_OPTIONS: Intl.DateTimeFormatOptions"
|
|
10631
|
+
},
|
|
10632
|
+
{
|
|
10633
|
+
"name": "DEFAULT_DATE_LOCALE",
|
|
10634
|
+
"sourceFile": "components/New/Grid/renderers/constants.ts"
|
|
10635
|
+
},
|
|
10636
|
+
{
|
|
10637
|
+
"name": "GRID_ALIGN_RIGHT_CLASS",
|
|
10638
|
+
"sourceFile": "components/New/Grid/constants.ts",
|
|
10639
|
+
"description": "Right-aligns a column. Applied by the consumer through `cellClass`.",
|
|
10640
|
+
"signature": "GRID_ALIGN_RIGHT_CLASS = 'dial-kit-grid-align-right'"
|
|
10641
|
+
},
|
|
10642
|
+
{
|
|
10643
|
+
"name": "GRID_ROOT_CLASS",
|
|
10644
|
+
"sourceFile": "components/New/Grid/constants.ts",
|
|
10645
|
+
"description": "Root class of the 2.0 grid; every rule in `styles/grid.scss` sits under it.",
|
|
10646
|
+
"signature": "GRID_ROOT_CLASS = 'dial-kit-grid'"
|
|
10647
|
+
},
|
|
10648
|
+
{
|
|
10649
|
+
"name": "GRID_THEME_PARAMS",
|
|
10650
|
+
"sourceFile": "components/New/Grid/constants.ts",
|
|
10651
|
+
"description": "ag-Grid theme parameters, resolved from the 2.0 colour tokens with the same\nliteral fallbacks the Tailwind config carries, so a consumer that defines no\nCSS variables still gets the intended palette.\n\nHover sits one step up the accent-alpha ramp from the selected tint, so a\nhovered selected row still reads as hovered — the same relationship the 2.0\ndropdown and select rows use.",
|
|
10652
|
+
"signature": "GRID_THEME_PARAMS = {\n accentColor: 'var(--bg-control-accent, #1D4ED8)',\n backgroundColor: 'var(--bg-layer-raised, #FCFCFC)',\n oddRowBackgroundColor: 'var(--bg-layer-sunken, #EEF1F7)',\n selectedRowBackgroundColor: 'var(--bg-control-accent-alpha, #2764D90F)',\n rowHoverColor: 'var(--bg-control-accent-alpha-hover, #2764D924)',\n borderColor: 'var(--stroke-tertiary, #E0E6F0)',\n // Dividers inside the table sit on the thin stroke (0.5px) rather than the\n // 1px main stroke that controls and standalone dividers use, so a dense grid\n // reads as rows of data instead of a set of boxes. Sub-pixel widths are\n // antialiased rather than snapped, which is what makes the line look lighter.\n // `wrapperBorder` and the pinned-column boundary are left on the main stroke\n // by the theme: those frame the table and separate its regions rather than\n // dividing rows and columns.\n rowBorder: THIN_TABLE_DIVIDER,\n headerRowBorder: THIN_TABLE_DIVIDER,\n headerColumnBorder: THIN_TABLE_DIVIDER,\n chromeBackgroundColor: 'var(--bg-layer-base, #F5F7FA)',\n foregroundColor: 'var(--text-primary, #161B2D)',\n headerTextColor: 'var(--text-secondary, #57647A)',\n // 1.0 asked the browser for dark native widgets while painting a light\n // theme; the scheme now matches the palette it is used with.\n browserColorScheme: 'light',\n headerFontSize: 14,\n headerFontWeight: 600,\n fontSize: 14,\n fontFamily: 'var(--theme-font, var(--font-inter))',\n spacing: 4,\n borderRadius: 4,\n wrapperBorderRadius: 8,\n}"
|
|
10653
|
+
},
|
|
10654
|
+
{
|
|
10655
|
+
"name": "GRID_ROW_HEIGHT",
|
|
10656
|
+
"sourceFile": "components/New/Grid/constants.ts"
|
|
10657
|
+
},
|
|
10658
|
+
{
|
|
10659
|
+
"name": "DIAL_KIT_ICON_STROKE",
|
|
10660
|
+
"sourceFile": "components/New/constants/icon.ts",
|
|
10661
|
+
"description": "Icon stroke (1.5px) from the 2.0 stroke scale. Tabler renders every outline\nicon at `stroke={2}` unless told otherwise, so the token has to be passed\nexplicitly — a 2.0 component that omits it draws a heavier icon than the\ndesign system asks for.\n\nIt is a number rather than a Tailwind utility because an icon's weight is an\nSVG `stroke-width` attribute on the glyph, not a border on its box. The\nborder half of the same scale stays on plain Tailwind widths — `border`,\n`border-2`, `border-4`, and `border-[0.5px]` for a table divider.\n\nExported publicly so icons a consumer passes into a 2.0 component — a button\nicon, a menu item, a segmented-control segment — can match the ones the\ncomponents draw themselves.\n\nTwo deliberate departures inside the library: the empty-state illustrations\n(`NoDataContent`, the grid's no-rows overlay) use a much lighter stroke,\nsince a 1.5px line reads as a drawing at 16px and as a fence at 100px; and\nthe checkbox glyph uses a heavier one, because it is a control mark sized to\na 14px box rather than an icon from the set.",
|
|
10662
|
+
"signature": "DIAL_KIT_ICON_STROKE = 1.5"
|
|
10663
|
+
},
|
|
10664
|
+
{
|
|
10665
|
+
"name": "convertToDate",
|
|
10666
|
+
"sourceFile": "utils/grid-date.ts",
|
|
10667
|
+
"description": "Normalises the value a date cell can receive into a `Date`, or `null` when it\ncarries no usable date. A pure integer string is read as epoch milliseconds,\nso a serialised timestamp behaves like the number it came from.",
|
|
10668
|
+
"signature": "(input?: DateValue | null) => Date | null"
|
|
10669
|
+
},
|
|
10670
|
+
{
|
|
10671
|
+
"name": "baseColumnComparator",
|
|
10672
|
+
"sourceFile": "utils/grid-comparators.ts",
|
|
10673
|
+
"signature": "(a: string | number | undefined, b: string | number | undefined, _nodeA?: IRowNode, _nodeB?: IRowNode, isInverted?: boolean) => number"
|
|
10674
|
+
},
|
|
10675
|
+
{
|
|
10676
|
+
"name": "checkColDefsChanges",
|
|
10677
|
+
"sourceFile": "utils/grid-comparators.ts",
|
|
10678
|
+
"signature": "(cols: ColDef[], initialCols: ColDef[]) => unknown"
|
|
9727
10679
|
}
|
|
9728
10680
|
],
|
|
9729
10681
|
"utils": [
|