@epam/ai-dial-ui-kit 0.14.0-dev.3 → 0.14.0-dev.30
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 +23 -1
- package/dist/CHANGELOG.md +20 -3
- package/dist/DateCellRenderer-BdsPUuVy.cjs +63 -0
- package/dist/DateCellRenderer-BmzYCUIt.cjs +1 -0
- package/dist/IconButton-BCbBgnzo.cjs +1 -0
- package/dist/JsonEditor-pdzI3xkJ.cjs +1 -0
- package/dist/MarkdownEditor-CNEY8i7O.cjs +1 -0
- package/dist/MarkdownEditor-Dea4eQpw.cjs +1 -0
- package/dist/MarkdownEditorContainer-BO6PafCS.cjs +1 -0
- package/dist/Switch-CtdhpYik.cjs +1 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +31 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +7 -0
- package/dist/assets/icons/add-child.svg.js +5 -0
- package/dist/assets/icons/add-sibling.svg.js +5 -0
- package/dist/assets/icons/copy-to.svg.js +5 -0
- package/dist/assets/icons/file/c.svg.js +5 -0
- package/dist/assets/icons/file/cpp.svg.js +5 -0
- package/dist/assets/icons/file/cs.svg.js +5 -0
- package/dist/assets/icons/file/ini.svg.js +5 -0
- package/dist/assets/icons/file/json.svg.js +5 -0
- package/dist/assets/icons/file/md.svg.js +5 -0
- package/dist/assets/icons/file/py.svg.js +5 -0
- package/dist/assets/icons/loader.svg.js +5 -0
- package/dist/assets/icons/move-to.svg.js +5 -0
- package/dist/assets/icons/open-popup.svg.js +5 -0
- package/dist/assets/icons/unshare.svg.js +5 -0
- package/dist/components/Accordion/Accordion.js +70 -0
- package/dist/components/Analytics/Bar/Bar.js +80 -0
- package/dist/components/Analytics/Bar/utils.js +24 -0
- package/dist/components/Analytics/BarGroup/BarGroup.js +140 -0
- package/dist/components/Analytics/Card/Card.js +87 -0
- package/dist/components/Analytics/ErrorTag/ErrorTag.js +19 -0
- package/dist/components/Analytics/Histogram/Histogram.js +200 -0
- package/dist/components/Analytics/Histogram/utils.js +45 -0
- package/dist/components/AutocompleteInput/AutocompleteInputValue.js +21 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +126 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +83 -0
- package/dist/components/Breadcrumb/constants.js +20 -0
- package/dist/components/Button/Button.js +53 -0
- package/dist/components/Button/ButtonWrappers.js +40 -0
- package/dist/components/Button/constants.js +29 -0
- package/dist/components/Button/utils.js +11 -0
- package/dist/components/ButtonDropdown/ButtonDropdown.js +33 -0
- package/dist/components/ButtonDropdown/constants.js +8 -0
- package/dist/components/CaptionText/CaptionText.js +27 -0
- package/dist/components/Checkbox/Checkbox.js +64 -0
- package/dist/components/Checkbox/constants.js +4 -0
- package/dist/components/CloseButton/CloseButton.js +27 -0
- package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +84 -0
- package/dist/components/ConfirmationPopup/ConfirmationPopup.js +75 -0
- package/dist/components/ConfirmationPopup/constants.js +32 -0
- package/dist/components/DraggableItem/DraggableItem.js +61 -0
- package/dist/components/DraggableItem/constants.js +6 -0
- package/dist/components/Dropdown/Dropdown.js +293 -0
- package/dist/components/Dropdown/DropdownSubMenuItem.js +121 -0
- package/dist/components/Dropdown/constants.js +24 -0
- package/dist/components/DropdownIcon/DropdownIcon.js +92 -0
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +75 -0
- package/dist/components/EllipsisTooltip/constants.js +4 -0
- package/dist/components/FabButton/FabButton.js +35 -0
- package/dist/components/FileIcon/FileIcon.js +37 -0
- package/dist/components/FileIcon/constants.js +60 -0
- package/dist/components/FileManager/FileManager.js +887 -0
- package/dist/components/FileManager/FileManagerContext.js +5 -0
- package/dist/components/FileManager/FileManagerProvider.js +770 -0
- package/dist/components/FileManager/FileManagerTooltip.js +92 -0
- package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +293 -0
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +194 -0
- package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +52 -0
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +103 -0
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +5 -0
- package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +56 -0
- package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +69 -0
- package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +100 -0
- package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +93 -0
- package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +165 -0
- package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +6 -0
- package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +120 -0
- package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +119 -0
- package/dist/components/FileManager/components/FileMetadataPopup/constants.js +9 -0
- package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +180 -0
- package/dist/components/FileManager/components/FoldersTree/constants.js +9 -0
- package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +51 -0
- package/dist/components/FileManager/constants.js +28 -0
- package/dist/components/FileManager/errors.js +10 -0
- package/dist/components/FileManager/hooks/use-bulk-actions.js +143 -0
- package/dist/components/FileManager/hooks/use-collapse-tree.js +22 -0
- package/dist/components/FileManager/hooks/use-conflict-resolution.js +158 -0
- package/dist/components/FileManager/hooks/use-current-path.js +29 -0
- package/dist/components/FileManager/hooks/use-file-clipboard.js +154 -0
- package/dist/components/FileManager/hooks/use-file-delete.js +39 -0
- package/dist/components/FileManager/hooks/use-file-download.js +16 -0
- package/dist/components/FileManager/hooks/use-file-manager-columns.js +106 -0
- package/dist/components/FileManager/hooks/use-file-manager-context.js +13 -0
- package/dist/components/FileManager/hooks/use-file-manager-tabs.js +23 -0
- package/dist/components/FileManager/hooks/use-file-metadata.js +20 -0
- package/dist/components/FileManager/hooks/use-file-search.js +90 -0
- package/dist/components/FileManager/hooks/use-file-upload.js +338 -0
- package/dist/components/FileManager/hooks/use-folder-creation.js +151 -0
- package/dist/components/FileManager/hooks/use-grid-actions-column.js +65 -0
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +188 -0
- package/dist/components/FileManager/hooks/use-item-renaming.js +124 -0
- package/dist/components/FileManager/hooks/use-new-actions.js +67 -0
- package/dist/components/FileManager/hooks/use-paths-selection.js +28 -0
- package/dist/components/FileManager/hooks/use-show-hidden-files.js +20 -0
- package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +39 -0
- package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +42 -0
- package/dist/components/FileManager/hooks/use-trigger-view-rename.js +25 -0
- package/dist/components/FileManager/utils.js +121 -0
- package/dist/components/FileName/FileName.js +68 -0
- package/dist/components/FolderName/FolderName.js +57 -0
- package/dist/components/FormItem/FormItem.js +90 -0
- package/dist/components/FormItem/constants.js +9 -0
- package/dist/components/FormPopup/FormPopup.js +59 -0
- package/dist/components/FormPopup/constants.js +6 -0
- package/dist/components/Grid/Grid.js +333 -0
- package/dist/components/Grid/constants.js +28 -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/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/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 +323 -0
- package/dist/components/New/Dropdown/DropdownSubMenuItem.js +127 -0
- package/dist/components/New/Dropdown/constants.js +35 -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/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/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 +90 -0
- package/dist/components/New/Select/constants.js +57 -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 +23 -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 +1544 -373
- package/dist/{JsonEditor-0ZT9yNXj.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 +408 -0
- package/dist/editor-Ba3vCFHk.cjs +1 -0
- package/dist/editors.cjs +1 -0
- package/dist/editors.js +9 -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-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/merge-classes-Dipy1Ih1.cjs +1 -0
- package/dist/migration-guides/0.14.0/button-tooltip-2-0.md +111 -0
- package/dist/migration-guides/0.14.0/select-multiselect-option-row.md +99 -0
- package/dist/migration-guides/0.14.0/shadow-token-per-step-rename.md +139 -0
- package/dist/migration-guides/0.14.0/tag-single-size.md +121 -0
- package/dist/migration-guides/README.md +4 -0
- package/dist/models/file.js +6 -0
- package/dist/models/selection-mode.js +4 -0
- package/dist/models/step.js +4 -0
- package/dist/node_modules/@react-dnd/asap/dist/AsapQueue.js +39 -0
- package/dist/node_modules/@react-dnd/asap/dist/RawTask.js +17 -0
- package/dist/node_modules/@react-dnd/asap/dist/TaskFactory.js +16 -0
- package/dist/node_modules/@react-dnd/asap/dist/asap.js +9 -0
- package/dist/node_modules/@react-dnd/asap/dist/makeRequestCall.js +62 -0
- package/dist/node_modules/@react-dnd/invariant/dist/index.js +22 -0
- package/dist/node_modules/@react-dnd/shallowequal/dist/index.js +25 -0
- package/dist/node_modules/ag-grid-community/dist/package/main.esm.js +39799 -0
- package/dist/node_modules/ag-grid-react/dist/package/index.esm.js +1989 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js +70 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/drop.js +54 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js +18 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/hover.js +42 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/index.js +17 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js +13 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js +12 -0
- package/dist/node_modules/dnd-core/dist/actions/dragDrop/types.js +9 -0
- package/dist/node_modules/dnd-core/dist/actions/registry.js +43 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js +41 -0
- package/dist/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js +115 -0
- package/dist/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js +96 -0
- package/dist/node_modules/dnd-core/dist/contracts.js +21 -0
- package/dist/node_modules/dnd-core/dist/createDragDropManager.js +19 -0
- package/dist/node_modules/dnd-core/dist/interfaces.js +7 -0
- package/dist/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js +30 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOffset.js +50 -0
- package/dist/node_modules/dnd-core/dist/reducers/dragOperation.js +78 -0
- package/dist/node_modules/dnd-core/dist/reducers/index.js +42 -0
- package/dist/node_modules/dnd-core/dist/reducers/refCount.js +16 -0
- package/dist/node_modules/dnd-core/dist/reducers/stateId.js +6 -0
- package/dist/node_modules/dnd-core/dist/utils/coords.js +26 -0
- package/dist/node_modules/dnd-core/dist/utils/dirtiness.js +12 -0
- package/dist/node_modules/dnd-core/dist/utils/equality.js +17 -0
- package/dist/node_modules/dnd-core/dist/utils/getNextUniqueId.js +7 -0
- package/dist/node_modules/dnd-core/dist/utils/js_utils.js +36 -0
- package/dist/node_modules/dnd-core/dist/utils/matchesType.js +8 -0
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/mime-db/db.json.js +2527 -0
- package/dist/node_modules/mime-db/index.js +8 -0
- package/dist/node_modules/mime-types/index.js +70 -0
- package/dist/node_modules/mime-types/mimeScore.js +38 -0
- package/dist/node_modules/re-resizable/lib/index.js +424 -0
- package/dist/node_modules/re-resizable/lib/resizer.js +49 -0
- package/dist/node_modules/react-dnd/dist/core/DndContext.js +7 -0
- package/dist/node_modules/react-dnd/dist/core/DndProvider.js +66 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollectedProps.js +11 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +22 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +25 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +21 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +20 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +19 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +22 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +15 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +13 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +23 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDragDropManager.js +10 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js +21 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/connectors.js +12 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useAccept.js +13 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDrop.js +16 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js +18 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js +18 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js +15 -0
- package/dist/node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js +23 -0
- package/dist/node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/node_modules/react-dnd/dist/hooks/useMonitorOutput.js +20 -0
- package/dist/node_modules/react-dnd/dist/hooks/useOptionalFactory.js +10 -0
- package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +88 -0
- package/dist/node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js +59 -0
- package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +87 -0
- package/dist/node_modules/react-dnd/dist/internals/TargetConnector.js +57 -0
- package/dist/node_modules/react-dnd/dist/internals/isRef.js +9 -0
- package/dist/node_modules/react-dnd/dist/internals/registration.js +18 -0
- package/dist/node_modules/react-dnd/dist/internals/wrapConnectorHooks.js +46 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js +10 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js +22 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js +274 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js +59 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js +43 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js +10 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js +24 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js +48 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/NativeTypes.js +7 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OffsetUtils.js +70 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/OptionsReader.js +22 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/index.js +7 -0
- package/dist/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js +22 -0
- package/dist/node_modules/redux/es/redux.js +158 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2924 -0
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +4 -2
- package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +1 -4
- package/dist/src/components/Grid/renderers/utils.d.ts +1 -2
- package/dist/src/components/New/Button/Button.d.ts +4 -3
- package/dist/src/components/New/Checkbox/Checkbox.d.ts +4 -0
- package/dist/src/components/New/Checkbox/CheckboxBox.d.ts +30 -0
- package/dist/src/components/New/CollapsibleSidebar/CollapsibleSidebar.d.ts +82 -0
- package/dist/src/components/New/Dropdown/constants.d.ts +2 -0
- 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/Highlight/Highlight.d.ts +1 -1
- package/dist/src/components/New/IconButton/IconButton.d.ts +4 -4
- package/dist/src/components/New/Label/Label.d.ts +5 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +48 -0
- package/dist/src/components/New/Popup/Popup.d.ts +48 -9
- package/dist/src/components/New/Popup/constants.d.ts +7 -0
- package/dist/src/components/New/RadioGroup/RadioGroup.d.ts +78 -0
- package/dist/src/components/New/RadioGroup/constants.d.ts +11 -0
- package/dist/src/components/New/RadioGroupPopupField/RadioGroupPopupField.d.ts +93 -0
- package/dist/src/components/New/RadioGroupPopupField/constants.d.ts +22 -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 +1 -1
- package/dist/src/components/New/Select/constants.d.ts +2 -2
- package/dist/src/components/New/Slider/Slider.d.ts +70 -0
- package/dist/src/components/New/Tag/Tag.d.ts +26 -4
- package/dist/src/components/New/Tag/constants.d.ts +23 -0
- package/dist/src/components/New/Textarea/Textarea.d.ts +8 -2
- package/dist/src/components/New/ThemeScope/ThemeScope.d.ts +46 -0
- package/dist/src/components/New/Tooltip/constants.d.ts +15 -1
- package/dist/src/components/New/constants/icon.d.ts +22 -0
- package/dist/src/components/New/constants/overlay.d.ts +12 -3
- package/dist/src/index.d.ts +29 -1
- package/dist/src/models/dropdown.d.ts +10 -0
- package/dist/src/subpaths/editors.d.ts +21 -0
- package/dist/src/subpaths/file-manager.d.ts +21 -0
- package/dist/src/subpaths/grid.d.ts +25 -0
- package/dist/src/types/tag.d.ts +4 -0
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +1 -0
- package/dist/src/utils/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/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/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-CmpcHI2g.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/merge-classes.js +8 -0
- package/dist/utils/mobile.js +11 -0
- package/dist/utils/path.js +4 -0
- package/dist/utils/sub-menu-floating.js +78 -0
- package/package.json +21 -8
- package/dist/JsonEditor-EOISr6OE.cjs +0 -1
- package/dist/MarkdownEditor-BfeV6-XV.cjs +0 -1
- package/dist/MarkdownEditor-Csbic0gz.js +0 -75
- package/dist/MarkdownEditor-D8p7zjZ1.js +0 -35
- package/dist/MarkdownEditor-vV5rCB3Y.cjs +0 -1
- package/dist/dial-ui-kit.cjs.js +0 -1
- package/dist/dial-ui-kit.es.js +0 -216
- package/dist/index-BVZGIW7V.js +0 -66534
- package/dist/index-Ho1ZjGNx.cjs +0 -71
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.14.0-dev.
|
|
3
|
-
"generatedAt": "2026-
|
|
2
|
+
"version": "0.14.0-dev.30",
|
|
3
|
+
"generatedAt": "2026-09-07T09:55:56.756Z",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
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
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
|
|
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",
|
|
@@ -721,8 +721,9 @@
|
|
|
721
721
|
},
|
|
722
722
|
{
|
|
723
723
|
"name": "tooltipProps",
|
|
724
|
-
"type": "
|
|
725
|
-
"required": false
|
|
724
|
+
"type": "ButtonTooltipProps",
|
|
725
|
+
"required": false,
|
|
726
|
+
"description": "Props of the 2.0 wrapping the button"
|
|
726
727
|
},
|
|
727
728
|
{
|
|
728
729
|
"name": "href",
|
|
@@ -783,8 +784,9 @@
|
|
|
783
784
|
},
|
|
784
785
|
{
|
|
785
786
|
"name": "tooltipProps",
|
|
786
|
-
"type": "
|
|
787
|
-
"required": false
|
|
787
|
+
"type": "IconButtonTooltipProps",
|
|
788
|
+
"required": false,
|
|
789
|
+
"description": "Props of the 2.0 wrapping the button"
|
|
788
790
|
}
|
|
789
791
|
],
|
|
790
792
|
"examples": [
|
|
@@ -885,6 +887,18 @@
|
|
|
885
887
|
"required": false,
|
|
886
888
|
"defaultValue": "'edit'",
|
|
887
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"
|
|
888
902
|
}
|
|
889
903
|
],
|
|
890
904
|
"examples": [
|
|
@@ -1319,6 +1333,12 @@
|
|
|
1319
1333
|
"required": false,
|
|
1320
1334
|
"defaultValue": "ElementSize.Small",
|
|
1321
1335
|
"description": "The size of the label, which can be 'small', 'medium', or 'large'."
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"name": "containerClassName",
|
|
1339
|
+
"type": "string",
|
|
1340
|
+
"required": false,
|
|
1341
|
+
"description": "Additional classes for the wrapper holding the\n`<label>` and its info button. Needed when the label is a flex item that has\nto shrink: a wrapper left at `min-width: auto` cannot, so its text overflows\ninstead of truncating."
|
|
1322
1342
|
}
|
|
1323
1343
|
],
|
|
1324
1344
|
"examples": [
|
|
@@ -1352,10 +1372,10 @@
|
|
|
1352
1372
|
},
|
|
1353
1373
|
{
|
|
1354
1374
|
"name": "resize",
|
|
1355
|
-
"type": "boolean",
|
|
1375
|
+
"type": "boolean | TextareaResize",
|
|
1356
1376
|
"required": false,
|
|
1357
1377
|
"defaultValue": "false",
|
|
1358
|
-
"description": "Whether the textarea
|
|
1378
|
+
"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`)"
|
|
1359
1379
|
},
|
|
1360
1380
|
{
|
|
1361
1381
|
"name": "error",
|
|
@@ -1544,7 +1564,7 @@
|
|
|
1544
1564
|
"name": "Popup",
|
|
1545
1565
|
"category": "Components_2_0",
|
|
1546
1566
|
"generation": "2.0",
|
|
1547
|
-
"description": "An accessible modal dialog using Floating UI.\naliases: Modal|Dialog\nDesign system 2.0\n\nRenders in a portal with a scrim overlay, focus management, a header with the\ntitle and close control, a scrollable body and an optional footer. Sections\nare separated by spacing rather than rules;
|
|
1567
|
+
"description": "An accessible modal dialog using Floating UI.\naliases: Modal|Dialog\nDesign system 2.0\n\nRenders in a portal with a scrim overlay, focus management, a header with the\ntitle and close control, a scrollable body and an optional footer. Sections\nare separated by spacing rather than rules; opt into a rule with\n`headerDivider` / `footerDivider`.\n\nThe header grows from the title alone: `onBack` prepends a back control,\n`headerActions` sits between the title and the close button.\n\nThe footer is declared as data, not markup: `mainButtons` and\n`additionalButtons` take and the popup renders the\ns itself, so spacing, order and the neutral default are the\nsame on every dialog. `additionalButtonsOnLeft` moves the secondary group to\nthe opposite edge. A `footer` node still wins over both, for the rare surface\nthat needs something other than a row of buttons.\n\nA string `header` names the dialog automatically. A `header` node cannot —\npass `ariaLabel` in that case, or the dialog opens unnamed.",
|
|
1548
1568
|
"props": [
|
|
1549
1569
|
{
|
|
1550
1570
|
"name": "open",
|
|
@@ -1611,7 +1631,13 @@
|
|
|
1611
1631
|
"name": "footer",
|
|
1612
1632
|
"type": "ReactNode",
|
|
1613
1633
|
"required": false,
|
|
1614
|
-
"description": "
|
|
1634
|
+
"description": "Custom footer node; overrides `mainButtons` and `additionalButtons`"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"name": "footerClassName",
|
|
1638
|
+
"type": "string",
|
|
1639
|
+
"required": false,
|
|
1640
|
+
"description": "Additional CSS classes applied to the built-in footer container"
|
|
1615
1641
|
},
|
|
1616
1642
|
{
|
|
1617
1643
|
"name": "onClose",
|
|
@@ -1619,6 +1645,58 @@
|
|
|
1619
1645
|
"required": false,
|
|
1620
1646
|
"description": "Callback fired when the popup requests to close"
|
|
1621
1647
|
},
|
|
1648
|
+
{
|
|
1649
|
+
"name": "onBack",
|
|
1650
|
+
"type": "(e: MouseEvent<HTMLButtonElement>) => void",
|
|
1651
|
+
"required": false,
|
|
1652
|
+
"description": "Callback for the header back button; the button renders only when set"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
"name": "backAriaLabel",
|
|
1656
|
+
"type": "string",
|
|
1657
|
+
"required": false,
|
|
1658
|
+
"defaultValue": "'Back'",
|
|
1659
|
+
"description": "Accessible name of the back button"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"name": "headerActions",
|
|
1663
|
+
"type": "ReactNode",
|
|
1664
|
+
"required": false,
|
|
1665
|
+
"description": "Controls rendered between the title and the close button"
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"name": "headerDivider",
|
|
1669
|
+
"type": "boolean",
|
|
1670
|
+
"required": false,
|
|
1671
|
+
"defaultValue": "false",
|
|
1672
|
+
"description": "Whether a rule is drawn under the header"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"name": "mainButtons",
|
|
1676
|
+
"type": "ButtonProps[]",
|
|
1677
|
+
"required": false,
|
|
1678
|
+
"description": "Primary footer buttons, aligned to the trailing edge; each defaults to `ButtonVariant.Neutral`"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"name": "additionalButtons",
|
|
1682
|
+
"type": "ButtonProps[]",
|
|
1683
|
+
"required": false,
|
|
1684
|
+
"description": "Secondary footer buttons, next to `mainButtons` unless moved left"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"name": "additionalButtonsOnLeft",
|
|
1688
|
+
"type": "boolean",
|
|
1689
|
+
"required": false,
|
|
1690
|
+
"defaultValue": "false",
|
|
1691
|
+
"description": "Whether `additionalButtons` sit on the leading edge"
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"name": "footerDivider",
|
|
1695
|
+
"type": "boolean",
|
|
1696
|
+
"required": false,
|
|
1697
|
+
"defaultValue": "false",
|
|
1698
|
+
"description": "Whether a rule is drawn above the footer"
|
|
1699
|
+
},
|
|
1622
1700
|
{
|
|
1623
1701
|
"name": "size",
|
|
1624
1702
|
"type": "PopupSize",
|
|
@@ -1656,7 +1734,7 @@
|
|
|
1656
1734
|
}
|
|
1657
1735
|
],
|
|
1658
1736
|
"examples": [
|
|
1659
|
-
"<Popup\n open\n header=\"Title\"\n size={PopupSize.Md}\n
|
|
1737
|
+
"<Popup\n open\n header=\"Title\"\n size={PopupSize.Md}\n onBack={() => setStep(step - 1)}\n headerActions={<InfoButton caption=\"What is this?\" />}\n additionalButtonsOnLeft\n additionalButtons={[\n {\n label: 'Back',\n variant: ButtonVariant.Primary,\n appearance: ButtonAppearance.Link,\n iconBefore: <IconArrowLeft />,\n onClick: goBack,\n },\n ]}\n mainButtons={[\n { label: 'Cancel', onClick: () => setOpen(false) },\n { label: 'Confirm', variant: ButtonVariant.Primary, onClick: submit },\n ]}\n onClose={() => setOpen(false)}\n>\n <div className=\"px-6 py-4\">Dialog content goes here…</div>\n</Popup>"
|
|
1660
1738
|
],
|
|
1661
1739
|
"sourceFile": "components/New/Popup/Popup.tsx"
|
|
1662
1740
|
},
|
|
@@ -1950,6 +2028,30 @@
|
|
|
1950
2028
|
],
|
|
1951
2029
|
"sourceFile": "components/New/Dropdown/Dropdown.tsx"
|
|
1952
2030
|
},
|
|
2031
|
+
{
|
|
2032
|
+
"name": "ThemeScope",
|
|
2033
|
+
"category": "Components_2_0",
|
|
2034
|
+
"generation": "2.0",
|
|
2035
|
+
"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.",
|
|
2036
|
+
"props": [
|
|
2037
|
+
{
|
|
2038
|
+
"name": "className",
|
|
2039
|
+
"type": "string",
|
|
2040
|
+
"required": true,
|
|
2041
|
+
"description": "Class name redefining the design tokens for this subtree"
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"name": "children",
|
|
2045
|
+
"type": "ReactNode",
|
|
2046
|
+
"required": true,
|
|
2047
|
+
"description": "The subtree painted with those tokens"
|
|
2048
|
+
}
|
|
2049
|
+
],
|
|
2050
|
+
"examples": [
|
|
2051
|
+
"// .side-panel-theme redefines --bg-*, --text-* and --stroke-* tokens.\n<ThemeScope className=\"side-panel-theme\">\n <ConversationPanel {...props} />\n</ThemeScope>"
|
|
2052
|
+
],
|
|
2053
|
+
"sourceFile": "components/New/ThemeScope/ThemeScope.tsx"
|
|
2054
|
+
},
|
|
1953
2055
|
{
|
|
1954
2056
|
"name": "CaptionText",
|
|
1955
2057
|
"category": "Components_2_0",
|
|
@@ -2168,655 +2270,1573 @@
|
|
|
2168
2270
|
"sourceFile": "components/New/Radio/Radio.tsx"
|
|
2169
2271
|
},
|
|
2170
2272
|
{
|
|
2171
|
-
"name": "
|
|
2273
|
+
"name": "RadioGroup",
|
|
2172
2274
|
"category": "Components_2_0",
|
|
2173
2275
|
"generation": "2.0",
|
|
2174
|
-
"description": "A
|
|
2276
|
+
"description": "A set of mutually exclusive options with one group label.\naliases: SelectionGroup|OptionGroup|RadioList\nDesign system 2.0",
|
|
2175
2277
|
"props": [
|
|
2176
2278
|
{
|
|
2177
|
-
"name": "
|
|
2178
|
-
"type": "
|
|
2279
|
+
"name": "items",
|
|
2280
|
+
"type": "RadioGroupItem[]",
|
|
2281
|
+
"required": true,
|
|
2282
|
+
"description": "Options to render; each needs a unique `value` and may carry a `label`, `caption`, `content` and `disabled` flag"
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
"name": "value",
|
|
2286
|
+
"type": "string",
|
|
2179
2287
|
"required": false,
|
|
2180
|
-
"description": "
|
|
2288
|
+
"description": "The `value` of the selected option"
|
|
2181
2289
|
},
|
|
2182
2290
|
{
|
|
2183
|
-
"name": "
|
|
2184
|
-
"type": "
|
|
2291
|
+
"name": "onChange",
|
|
2292
|
+
"type": "(value: string) => void",
|
|
2293
|
+
"required": true,
|
|
2294
|
+
"description": "Callback fired with the newly selected `value`"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"name": "name",
|
|
2298
|
+
"type": "string",
|
|
2185
2299
|
"required": false,
|
|
2186
|
-
"
|
|
2187
|
-
"description": "The current value of the checkbox"
|
|
2300
|
+
"description": "The `name` shared by the underlying radios; defaults to the group id"
|
|
2188
2301
|
},
|
|
2189
2302
|
{
|
|
2190
|
-
"name": "
|
|
2191
|
-
"type": "
|
|
2303
|
+
"name": "id",
|
|
2304
|
+
"type": "string",
|
|
2192
2305
|
"required": false,
|
|
2193
|
-
"
|
|
2194
|
-
"description": "Whether the checkbox is in the mixed state"
|
|
2306
|
+
"description": "Base id for the group; option ids are derived from it"
|
|
2195
2307
|
},
|
|
2196
2308
|
{
|
|
2197
|
-
"name": "
|
|
2198
|
-
"type": "
|
|
2309
|
+
"name": "orientation",
|
|
2310
|
+
"type": "RadioGroupOrientation",
|
|
2199
2311
|
"required": false,
|
|
2200
|
-
"defaultValue": "
|
|
2201
|
-
"description": "Whether the
|
|
2312
|
+
"defaultValue": "RadioGroupOrientation.Column",
|
|
2313
|
+
"description": "Whether the options stack or sit in a row"
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"name": "labelProps",
|
|
2317
|
+
"type": "LabelProps",
|
|
2318
|
+
"required": false,
|
|
2319
|
+
"description": "Props of the rendered above the options"
|
|
2202
2320
|
},
|
|
2203
2321
|
{
|
|
2204
2322
|
"name": "disabled",
|
|
2205
2323
|
"type": "boolean",
|
|
2206
2324
|
"required": false,
|
|
2207
|
-
"description": "
|
|
2325
|
+
"description": "Disables every option"
|
|
2208
2326
|
},
|
|
2209
2327
|
{
|
|
2210
|
-
"name": "
|
|
2211
|
-
"type": "
|
|
2328
|
+
"name": "error",
|
|
2329
|
+
"type": "string",
|
|
2212
2330
|
"required": false,
|
|
2213
|
-
"description": "
|
|
2331
|
+
"description": "Error message rendered below the options"
|
|
2214
2332
|
},
|
|
2215
2333
|
{
|
|
2216
2334
|
"name": "caption",
|
|
2217
2335
|
"type": "string",
|
|
2218
2336
|
"required": false,
|
|
2219
|
-
"description": "
|
|
2220
|
-
}
|
|
2221
|
-
],
|
|
2222
|
-
"examples": [
|
|
2223
|
-
"<Checkbox\n labelProps={{ label: 'Accept terms' }}\n isSelected={accepted}\n onChange={setAccepted}\n/>"
|
|
2224
|
-
],
|
|
2225
|
-
"sourceFile": "components/New/Checkbox/Checkbox.tsx"
|
|
2226
|
-
},
|
|
2227
|
-
{
|
|
2228
|
-
"name": "ToggleIconButton",
|
|
2229
|
-
"category": "Components_2_0",
|
|
2230
|
-
"generation": "2.0",
|
|
2231
|
-
"description": "An icon button that stays pressed, for a setting the icon itself represents.\naliases: IconToggle|ToggleButton|BookmarkButton\nDesign system 2.0",
|
|
2232
|
-
"props": [
|
|
2337
|
+
"description": "Helper text rendered below the options when there is no `error`"
|
|
2338
|
+
},
|
|
2233
2339
|
{
|
|
2234
|
-
"name": "
|
|
2235
|
-
"type": "
|
|
2236
|
-
"required":
|
|
2237
|
-
"description": "
|
|
2340
|
+
"name": "ariaLabel",
|
|
2341
|
+
"type": "string",
|
|
2342
|
+
"required": false,
|
|
2343
|
+
"description": "Names the group when there is no string `labelProps.label`"
|
|
2238
2344
|
},
|
|
2239
2345
|
{
|
|
2240
|
-
"name": "
|
|
2241
|
-
"type": "
|
|
2346
|
+
"name": "className",
|
|
2347
|
+
"type": "string",
|
|
2242
2348
|
"required": false,
|
|
2243
|
-
"description": "
|
|
2349
|
+
"description": "Additional classes for the outer container"
|
|
2244
2350
|
},
|
|
2245
2351
|
{
|
|
2246
|
-
"name": "
|
|
2247
|
-
"type": "
|
|
2352
|
+
"name": "optionsClassName",
|
|
2353
|
+
"type": "string",
|
|
2248
2354
|
"required": false,
|
|
2249
|
-
"
|
|
2250
|
-
"description": "Whether the toggle is on"
|
|
2355
|
+
"description": "Additional classes for the options wrapper"
|
|
2251
2356
|
},
|
|
2252
2357
|
{
|
|
2253
|
-
"name": "
|
|
2254
|
-
"type": "
|
|
2358
|
+
"name": "radioClassName",
|
|
2359
|
+
"type": "string",
|
|
2255
2360
|
"required": false,
|
|
2256
|
-
"description": "
|
|
2361
|
+
"description": "Additional classes for every option's control row"
|
|
2257
2362
|
},
|
|
2258
2363
|
{
|
|
2259
|
-
"name": "
|
|
2260
|
-
"type": "
|
|
2364
|
+
"name": "contentClassName",
|
|
2365
|
+
"type": "string",
|
|
2261
2366
|
"required": false,
|
|
2262
|
-
"description": "
|
|
2367
|
+
"description": "Additional classes for the selected option's content"
|
|
2263
2368
|
}
|
|
2264
2369
|
],
|
|
2265
2370
|
"examples": [
|
|
2266
|
-
"<
|
|
2371
|
+
"<RadioGroup\n labelProps={{ label: 'Delivery' }}\n value={delivery}\n onChange={setDelivery}\n items={[\n { value: 'pickup', label: 'Pickup', caption: 'Free, ready today' },\n { value: 'courier', label: 'Courier', content: <AddressForm /> },\n ]}\n/>"
|
|
2267
2372
|
],
|
|
2268
|
-
"sourceFile": "components/New/
|
|
2373
|
+
"sourceFile": "components/New/RadioGroup/RadioGroup.tsx"
|
|
2269
2374
|
},
|
|
2270
2375
|
{
|
|
2271
|
-
"name": "
|
|
2376
|
+
"name": "RadioGroupPopupField",
|
|
2272
2377
|
"category": "Components_2_0",
|
|
2273
2378
|
"generation": "2.0",
|
|
2274
|
-
"description": "A
|
|
2379
|
+
"description": "A field whose value is picked from a inside a .\naliases: PopupRadio|ChoicePopup|RadioPopupField\nDesign system 2.0",
|
|
2275
2380
|
"props": [
|
|
2276
2381
|
{
|
|
2277
2382
|
"name": "items",
|
|
2278
|
-
"type": "
|
|
2383
|
+
"type": "RadioGroupItem[]",
|
|
2279
2384
|
"required": true,
|
|
2280
|
-
"description": "
|
|
2385
|
+
"description": "Options offered inside the popup"
|
|
2281
2386
|
},
|
|
2282
2387
|
{
|
|
2283
2388
|
"name": "value",
|
|
2284
|
-
"type": "
|
|
2389
|
+
"type": "string",
|
|
2390
|
+
"required": false,
|
|
2391
|
+
"description": "The committed value, shown in the collapsed field"
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
"name": "customValue",
|
|
2395
|
+
"type": "string",
|
|
2396
|
+
"required": false,
|
|
2397
|
+
"description": "Text shown in the field in place of the selected option's label"
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
"name": "header",
|
|
2401
|
+
"type": "ReactNode",
|
|
2285
2402
|
"required": true,
|
|
2286
|
-
"description": "
|
|
2403
|
+
"description": "Title of the popup"
|
|
2287
2404
|
},
|
|
2288
2405
|
{
|
|
2289
|
-
"name": "
|
|
2290
|
-
"type": "(value
|
|
2406
|
+
"name": "onApply",
|
|
2407
|
+
"type": "(value?: string) => void",
|
|
2291
2408
|
"required": true,
|
|
2292
|
-
"description": "Callback fired with the
|
|
2409
|
+
"description": "Callback fired with the selected value when Apply is clicked"
|
|
2293
2410
|
},
|
|
2294
2411
|
{
|
|
2295
|
-
"name": "
|
|
2296
|
-
"type": "
|
|
2412
|
+
"name": "id",
|
|
2413
|
+
"type": "string",
|
|
2297
2414
|
"required": false,
|
|
2298
|
-
"description": "
|
|
2415
|
+
"description": "Base id for the field; the label and the options derive theirs from it"
|
|
2299
2416
|
},
|
|
2300
2417
|
{
|
|
2301
|
-
"name": "
|
|
2302
|
-
"type": "
|
|
2418
|
+
"name": "labelProps",
|
|
2419
|
+
"type": "LabelProps",
|
|
2303
2420
|
"required": false,
|
|
2304
|
-
"description": "
|
|
2421
|
+
"description": "Props of the rendered above the field"
|
|
2305
2422
|
},
|
|
2306
2423
|
{
|
|
2307
|
-
"name": "
|
|
2424
|
+
"name": "placeholder",
|
|
2308
2425
|
"type": "string",
|
|
2309
2426
|
"required": false,
|
|
2310
|
-
"description": "
|
|
2427
|
+
"description": "Text shown in the field while no value is selected"
|
|
2311
2428
|
},
|
|
2312
2429
|
{
|
|
2313
|
-
"name": "
|
|
2430
|
+
"name": "selectedValue",
|
|
2314
2431
|
"type": "string",
|
|
2315
|
-
"required": false
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
"examples": [
|
|
2319
|
-
"<SegmentedControl\n aria-label=\"View\"\n value={view}\n onChange={setView}\n items={[\n { value: 'list', icon: <IconList />, 'aria-label': 'List' },\n { value: 'grid', icon: <IconGrid />, 'aria-label': 'Grid' },\n ]}\n/>"
|
|
2320
|
-
],
|
|
2321
|
-
"sourceFile": "components/New/SegmentedControl/SegmentedControl.tsx"
|
|
2322
|
-
},
|
|
2323
|
-
{
|
|
2324
|
-
"name": "Tabs",
|
|
2325
|
-
"category": "Components_2_0",
|
|
2326
|
-
"generation": "2.0",
|
|
2327
|
-
"description": "A horizontal row of tabs, underlining the active one and showing optional count badges.\naliases: TabRow|TabNavigation|TabBar\nDesign system 2.0\n\nFollows the ARIA tabs pattern with automatic activation: only the active tab is\nin the tab order, and the arrow keys move both focus and selection. `Home` and\n`End` jump to the first and last tab, and the arrows wrap around the ends.\nTabs marked `disabled` are greyed out, cannot be clicked, and are skipped by\nkeyboard navigation.\n\nThe component renders the tabs only; the panels stay with the consumer.",
|
|
2328
|
-
"props": [
|
|
2432
|
+
"required": false,
|
|
2433
|
+
"description": "Controlled draft selection inside the popup"
|
|
2434
|
+
},
|
|
2329
2435
|
{
|
|
2330
|
-
"name": "
|
|
2331
|
-
"type": "
|
|
2332
|
-
"required":
|
|
2333
|
-
"description": "
|
|
2436
|
+
"name": "onSelectionChange",
|
|
2437
|
+
"type": "(value: string) => void",
|
|
2438
|
+
"required": false,
|
|
2439
|
+
"description": "Callback fired when the draft selection changes"
|
|
2334
2440
|
},
|
|
2335
2441
|
{
|
|
2336
|
-
"name": "
|
|
2337
|
-
"type": "
|
|
2338
|
-
"required":
|
|
2339
|
-
"description": "
|
|
2442
|
+
"name": "onCancel",
|
|
2443
|
+
"type": "() => void",
|
|
2444
|
+
"required": false,
|
|
2445
|
+
"description": "Callback fired when Cancel is clicked, before the popup closes"
|
|
2340
2446
|
},
|
|
2341
2447
|
{
|
|
2342
|
-
"name": "
|
|
2343
|
-
"type": "(
|
|
2344
|
-
"required":
|
|
2345
|
-
"description": "
|
|
2448
|
+
"name": "onClose",
|
|
2449
|
+
"type": "() => void",
|
|
2450
|
+
"required": false,
|
|
2451
|
+
"description": "Callback fired whenever the popup closes"
|
|
2346
2452
|
},
|
|
2347
2453
|
{
|
|
2348
|
-
"name": "
|
|
2349
|
-
"type": "
|
|
2454
|
+
"name": "isValid",
|
|
2455
|
+
"type": "boolean",
|
|
2350
2456
|
"required": false,
|
|
2351
|
-
"
|
|
2457
|
+
"defaultValue": "true",
|
|
2458
|
+
"description": "Whether Apply is enabled"
|
|
2352
2459
|
},
|
|
2353
2460
|
{
|
|
2354
|
-
"name": "
|
|
2461
|
+
"name": "applyButtonLabel",
|
|
2355
2462
|
"type": "string",
|
|
2356
2463
|
"required": false,
|
|
2357
|
-
"
|
|
2464
|
+
"defaultValue": "defaultApplyLabel",
|
|
2465
|
+
"description": "Label of the Apply button"
|
|
2358
2466
|
},
|
|
2359
2467
|
{
|
|
2360
|
-
"name": "
|
|
2468
|
+
"name": "cancelButtonLabel",
|
|
2361
2469
|
"type": "string",
|
|
2362
2470
|
"required": false,
|
|
2363
|
-
"
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2471
|
+
"defaultValue": "defaultCancelLabel",
|
|
2472
|
+
"description": "Label of the Cancel button"
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"name": "size",
|
|
2476
|
+
"type": "PopupSize",
|
|
2477
|
+
"required": false,
|
|
2478
|
+
"defaultValue": "PopupSize.Md",
|
|
2479
|
+
"description": "Size of the popup"
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
"name": "portalId",
|
|
2483
|
+
"type": "string",
|
|
2484
|
+
"required": false,
|
|
2485
|
+
"description": "Portal container id for the popup"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
"name": "disabled",
|
|
2489
|
+
"type": "boolean",
|
|
2490
|
+
"required": false,
|
|
2491
|
+
"description": "Disables the field, so the popup cannot be opened"
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
"name": "invalid",
|
|
2495
|
+
"type": "boolean",
|
|
2496
|
+
"required": false,
|
|
2497
|
+
"description": "Paints the field with the error border"
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
"name": "error",
|
|
2501
|
+
"type": "string",
|
|
2502
|
+
"required": false,
|
|
2503
|
+
"description": "Error message rendered below the field"
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"name": "caption",
|
|
2507
|
+
"type": "string",
|
|
2508
|
+
"required": false,
|
|
2509
|
+
"description": "Helper text rendered below the field when there is no `error`"
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
"name": "ariaLabel",
|
|
2513
|
+
"type": "string",
|
|
2514
|
+
"required": false,
|
|
2515
|
+
"description": "Names the field when there is no string `labelProps.label`"
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
"name": "className",
|
|
2519
|
+
"type": "string",
|
|
2520
|
+
"required": false,
|
|
2521
|
+
"description": "Additional classes for the outer container"
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
"name": "fieldClassName",
|
|
2525
|
+
"type": "string",
|
|
2526
|
+
"required": false,
|
|
2527
|
+
"description": "Additional classes for the collapsed field"
|
|
2528
|
+
}
|
|
2529
|
+
],
|
|
2530
|
+
"examples": [
|
|
2531
|
+
"<RadioGroupPopupField\n labelProps={{ label: 'Status' }}\n header=\"Select status\"\n placeholder=\"None\"\n items={[\n { value: 'draft', label: 'Draft' },\n { value: 'published', label: 'Published' },\n ]}\n value={status}\n onApply={(next) => setStatus(next)}\n/>"
|
|
2532
|
+
],
|
|
2533
|
+
"sourceFile": "components/New/RadioGroupPopupField/RadioGroupPopupField.tsx"
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
"name": "Checkbox",
|
|
2537
|
+
"category": "Components_2_0",
|
|
2538
|
+
"generation": "2.0",
|
|
2539
|
+
"description": "A checkbox from the 2.0 design system.\naliases: ToggleCheckbox|MultiSelectOption|TriStateCheckbox\nDesign system 2.0",
|
|
2540
|
+
"props": [
|
|
2541
|
+
{
|
|
2542
|
+
"name": "labelProps",
|
|
2543
|
+
"type": "LabelProps",
|
|
2544
|
+
"required": false,
|
|
2545
|
+
"description": "Props of the rendered next to the control"
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
"name": "isSelected",
|
|
2549
|
+
"type": "boolean",
|
|
2550
|
+
"required": false,
|
|
2551
|
+
"defaultValue": "false",
|
|
2552
|
+
"description": "The current value of the checkbox"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"name": "isIndeterminate",
|
|
2556
|
+
"type": "boolean",
|
|
2557
|
+
"required": false,
|
|
2558
|
+
"defaultValue": "false",
|
|
2559
|
+
"description": "Whether the checkbox is in the mixed state"
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
"name": "invalid",
|
|
2563
|
+
"type": "boolean",
|
|
2564
|
+
"required": false,
|
|
2565
|
+
"defaultValue": "false",
|
|
2566
|
+
"description": "Whether the checkbox failed validation (applies error styling)"
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
"name": "disabled",
|
|
2570
|
+
"type": "boolean",
|
|
2571
|
+
"required": false,
|
|
2572
|
+
"description": "Whether the checkbox is disabled"
|
|
2573
|
+
},
|
|
2574
|
+
{
|
|
2575
|
+
"name": "onChange",
|
|
2576
|
+
"type": "(value: boolean) => void",
|
|
2577
|
+
"required": false,
|
|
2578
|
+
"description": "Callback fired with the new value when toggled"
|
|
2579
|
+
},
|
|
2580
|
+
{
|
|
2581
|
+
"name": "caption",
|
|
2582
|
+
"type": "string",
|
|
2583
|
+
"required": false,
|
|
2584
|
+
"description": "Caption text rendered below the label, and described by the checkbox"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"name": "boxClassName",
|
|
2588
|
+
"type": "string",
|
|
2589
|
+
"required": false,
|
|
2590
|
+
"description": "Additional classes for the box itself. Use it to drop\nthe box's own focus ring where the container already draws one, as a\nmultiselect row does."
|
|
2591
|
+
}
|
|
2592
|
+
],
|
|
2593
|
+
"examples": [
|
|
2594
|
+
"<Checkbox\n labelProps={{ label: 'Accept terms' }}\n isSelected={accepted}\n onChange={setAccepted}\n/>"
|
|
2595
|
+
],
|
|
2596
|
+
"sourceFile": "components/New/Checkbox/Checkbox.tsx"
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"name": "CheckboxBox",
|
|
2600
|
+
"category": "Components_2_0",
|
|
2601
|
+
"generation": "2.0",
|
|
2602
|
+
"description": "The 20px box a checkbox draws — the square, its border, its fill and the\ncheck or dash inside.\nDesign system 2.0\n\nTwo things render it: , where it is the `<label for>` that\ntoggles the input next to it, and rows that only *look* like a checkbox —\na `menuitemcheckbox` in a dropdown, whose state lives on `aria-checked` and\nwhose whole row is the control. Passing `htmlFor` picks the first: the box\nbecomes a label with a pointer target of its own. Without it the box is a\ndecorative `<span>`, hidden from assistive technology, and the row around it\ncarries both the state and the pointer target.",
|
|
2603
|
+
"props": [
|
|
2604
|
+
{
|
|
2605
|
+
"name": "isSelected",
|
|
2606
|
+
"type": "boolean",
|
|
2607
|
+
"required": false,
|
|
2608
|
+
"defaultValue": "false",
|
|
2609
|
+
"description": "Whether the box is filled with a check"
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"name": "isIndeterminate",
|
|
2613
|
+
"type": "boolean",
|
|
2614
|
+
"required": false,
|
|
2615
|
+
"defaultValue": "false",
|
|
2616
|
+
"description": "Whether the box is filled with a dash; takes precedence over `isSelected`"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"name": "invalid",
|
|
2620
|
+
"type": "boolean",
|
|
2621
|
+
"required": false,
|
|
2622
|
+
"defaultValue": "false",
|
|
2623
|
+
"description": "Paints the box with the error colour"
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
"name": "disabled",
|
|
2627
|
+
"type": "boolean",
|
|
2628
|
+
"required": false,
|
|
2629
|
+
"defaultValue": "false",
|
|
2630
|
+
"description": "Greys the box out"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
"name": "htmlFor",
|
|
2634
|
+
"type": "string",
|
|
2635
|
+
"required": false,
|
|
2636
|
+
"description": "Id of the input this box labels; omit for a decorative box"
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
"name": "className",
|
|
2640
|
+
"type": "string",
|
|
2641
|
+
"required": false,
|
|
2642
|
+
"description": "Additional classes for the box"
|
|
2643
|
+
}
|
|
2644
|
+
],
|
|
2645
|
+
"examples": [],
|
|
2646
|
+
"sourceFile": "components/New/Checkbox/CheckboxBox.tsx"
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"name": "ToggleIconButton",
|
|
2650
|
+
"category": "Components_2_0",
|
|
2651
|
+
"generation": "2.0",
|
|
2652
|
+
"description": "An icon button that stays pressed, for a setting the icon itself represents.\naliases: IconToggle|ToggleButton|BookmarkButton\nDesign system 2.0",
|
|
2653
|
+
"props": [
|
|
2654
|
+
{
|
|
2655
|
+
"name": "icon",
|
|
2656
|
+
"type": "ReactNode",
|
|
2657
|
+
"required": true,
|
|
2658
|
+
"description": "Icon shown while unselected; rendered at 16px"
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"name": "selectedIcon",
|
|
2662
|
+
"type": "ReactNode",
|
|
2663
|
+
"required": false,
|
|
2664
|
+
"description": "Icon shown while selected; falls back to `icon`"
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
"name": "isSelected",
|
|
2668
|
+
"type": "boolean",
|
|
2669
|
+
"required": false,
|
|
2670
|
+
"defaultValue": "false",
|
|
2671
|
+
"description": "Whether the toggle is on"
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
"name": "onToggle",
|
|
2675
|
+
"type": "(isSelected: boolean) => void",
|
|
2676
|
+
"required": false,
|
|
2677
|
+
"description": "Callback fired with the next value when clicked"
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
"name": "tooltipProps",
|
|
2681
|
+
"type": "ToggleTooltipProps",
|
|
2682
|
+
"required": false,
|
|
2683
|
+
"description": "Props of the 2.0 wrapping the button"
|
|
2684
|
+
}
|
|
2685
|
+
],
|
|
2686
|
+
"examples": [
|
|
2687
|
+
"<ToggleIconButton\n icon={<IconBookmark />}\n selectedIcon={<IconBookmarkFilled />}\n isSelected={isBookmarked}\n onToggle={setIsBookmarked}\n tooltipProps={{ tooltip: 'Bookmark' }}\n/>"
|
|
2688
|
+
],
|
|
2689
|
+
"sourceFile": "components/New/ToggleIconButton/ToggleIconButton.tsx"
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"name": "SegmentedControl",
|
|
2693
|
+
"category": "Components_2_0",
|
|
2694
|
+
"generation": "2.0",
|
|
2695
|
+
"description": "A single-select switch between a few mutually exclusive, equally sized options.\naliases: SegmentedButton|ViewSwitcher|ButtonGroup\nDesign system 2.0",
|
|
2696
|
+
"props": [
|
|
2697
|
+
{
|
|
2698
|
+
"name": "items",
|
|
2699
|
+
"type": "SegmentedControlItem<T>[]",
|
|
2700
|
+
"required": true,
|
|
2701
|
+
"description": "Segments to render; each needs a unique `value` and may carry a `label`, `icon` and `disabled` flag"
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"name": "value",
|
|
2705
|
+
"type": "T",
|
|
2706
|
+
"required": true,
|
|
2707
|
+
"description": "The currently selected `value`"
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
"name": "onChange",
|
|
2711
|
+
"type": "(value: T) => void",
|
|
2712
|
+
"required": true,
|
|
2713
|
+
"description": "Callback fired with the newly selected `value`"
|
|
2714
|
+
},
|
|
2715
|
+
{
|
|
2716
|
+
"name": "disabled",
|
|
2717
|
+
"type": "boolean",
|
|
2718
|
+
"required": false,
|
|
2719
|
+
"description": "Disables every segment"
|
|
2720
|
+
},
|
|
2721
|
+
{
|
|
2722
|
+
"name": "className",
|
|
2723
|
+
"type": "string",
|
|
2724
|
+
"required": false,
|
|
2725
|
+
"description": "Additional classes for the track"
|
|
2726
|
+
},
|
|
2727
|
+
{
|
|
2728
|
+
"name": "segmentClassName",
|
|
2729
|
+
"type": "string",
|
|
2730
|
+
"required": false,
|
|
2731
|
+
"description": "Additional classes for every segment"
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
"name": "'aria-label'",
|
|
2735
|
+
"type": "string",
|
|
2736
|
+
"required": false
|
|
2737
|
+
}
|
|
2738
|
+
],
|
|
2739
|
+
"examples": [
|
|
2740
|
+
"<SegmentedControl\n aria-label=\"View\"\n value={view}\n onChange={setView}\n items={[\n { value: 'list', icon: <IconList />, 'aria-label': 'List' },\n { value: 'grid', icon: <IconGrid />, 'aria-label': 'Grid' },\n ]}\n/>"
|
|
2741
|
+
],
|
|
2742
|
+
"sourceFile": "components/New/SegmentedControl/SegmentedControl.tsx"
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
"name": "Tabs",
|
|
2746
|
+
"category": "Components_2_0",
|
|
2747
|
+
"generation": "2.0",
|
|
2748
|
+
"description": "A horizontal row of tabs, underlining the active one and showing optional count badges.\naliases: TabRow|TabNavigation|TabBar\nDesign system 2.0\n\nFollows the ARIA tabs pattern with automatic activation: only the active tab is\nin the tab order, and the arrow keys move both focus and selection. `Home` and\n`End` jump to the first and last tab, and the arrows wrap around the ends.\nTabs marked `disabled` are greyed out, cannot be clicked, and are skipped by\nkeyboard navigation.\n\nThe component renders the tabs only; the panels stay with the consumer.",
|
|
2749
|
+
"props": [
|
|
2750
|
+
{
|
|
2751
|
+
"name": "tabs",
|
|
2752
|
+
"type": "TabItem[]",
|
|
2753
|
+
"required": true,
|
|
2754
|
+
"description": "Ordered list of tabs to render."
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"name": "activeTabId",
|
|
2758
|
+
"type": "string",
|
|
2759
|
+
"required": true,
|
|
2760
|
+
"description": "ID of the currently selected tab."
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
"name": "onTabChange",
|
|
2764
|
+
"type": "(tabId: string) => void",
|
|
2765
|
+
"required": true,
|
|
2766
|
+
"description": "Fired with the tab's `id` when the user selects a tab."
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"name": "ariaLabel",
|
|
2770
|
+
"type": "string",
|
|
2771
|
+
"required": false,
|
|
2772
|
+
"description": "Accessible name for the tab list."
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"name": "className",
|
|
2776
|
+
"type": "string",
|
|
2777
|
+
"required": false,
|
|
2778
|
+
"description": "Additional CSS classes for the tab list container."
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
"name": "tabClassName",
|
|
2782
|
+
"type": "string",
|
|
2783
|
+
"required": false,
|
|
2784
|
+
"description": "Additional CSS classes applied to every tab."
|
|
2785
|
+
}
|
|
2786
|
+
],
|
|
2787
|
+
"examples": [
|
|
2367
2788
|
"<Tabs\n ariaLabel=\"Conversation views\"\n tabs={[\n { id: 'all', label: 'All', count: 12 },\n { id: 'shared', label: 'Shared with me' },\n ]}\n activeTabId={activeTabId}\n onTabChange={setActiveTabId}\n/>"
|
|
2368
2789
|
],
|
|
2369
|
-
"sourceFile": "components/New/Tabs/Tabs.tsx"
|
|
2790
|
+
"sourceFile": "components/New/Tabs/Tabs.tsx"
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
"name": "FileDropzone",
|
|
2794
|
+
"category": "Components_2_0",
|
|
2795
|
+
"generation": "2.0",
|
|
2796
|
+
"description": "A dashed drop area that takes files by drag-and-drop or through the file picker.\naliases: LoadFileArea|FileUpload|DragDropUpload|UploadArea\nDesign system 2.0\n\nThe area is a label over a visually hidden file input, so the picker opens on\nclick and the control stays operable by keyboard and announced as a file input\nwithout any extra wiring. The border highlights while a drag hovers it.\n\n`accept` is enforced on drops as well as in the picker — the browser only\nfilters the latter — so `onChange` never receives a file the caller excluded.\nRejected files go to `onReject`; all copy stays with the caller, which keeps\nvalidation messages in the consumer's own wording and language.",
|
|
2797
|
+
"props": [
|
|
2798
|
+
{
|
|
2799
|
+
"name": "labelProps",
|
|
2800
|
+
"type": "LabelProps",
|
|
2801
|
+
"required": false,
|
|
2802
|
+
"description": "Props of the naming the field, rendered above the area."
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
"name": "label",
|
|
2806
|
+
"type": "ReactNode",
|
|
2807
|
+
"required": true,
|
|
2808
|
+
"description": "Primary line of copy."
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
"name": "description",
|
|
2812
|
+
"type": "ReactNode",
|
|
2813
|
+
"required": false,
|
|
2814
|
+
"description": "Secondary line of copy."
|
|
2815
|
+
},
|
|
2816
|
+
{
|
|
2817
|
+
"name": "onChange",
|
|
2818
|
+
"type": "(files: File[]) => void",
|
|
2819
|
+
"required": true,
|
|
2820
|
+
"description": "Fired with the accepted files."
|
|
2821
|
+
},
|
|
2822
|
+
{
|
|
2823
|
+
"name": "onReject",
|
|
2824
|
+
"type": "(files: File[]) => void",
|
|
2825
|
+
"required": false,
|
|
2826
|
+
"description": "Fired with dropped files that `accept` excluded."
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
"name": "accept",
|
|
2830
|
+
"type": "string",
|
|
2831
|
+
"required": false,
|
|
2832
|
+
"description": "Comma-separated `accept` tokens."
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"name": "multiple",
|
|
2836
|
+
"type": "boolean",
|
|
2837
|
+
"required": false,
|
|
2838
|
+
"defaultValue": "false",
|
|
2839
|
+
"description": "Whether more than one file can be selected."
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"name": "disabled",
|
|
2843
|
+
"type": "boolean",
|
|
2844
|
+
"required": false,
|
|
2845
|
+
"defaultValue": "false",
|
|
2846
|
+
"description": "Disables picking and dropping."
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
"name": "errorText",
|
|
2850
|
+
"type": "string",
|
|
2851
|
+
"required": false,
|
|
2852
|
+
"description": "Error message rendered below the area."
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
"name": "icon",
|
|
2856
|
+
"type": "ReactNode",
|
|
2857
|
+
"required": false,
|
|
2858
|
+
"description": "Icon rendered above the copy."
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
"name": "id",
|
|
2862
|
+
"type": "string",
|
|
2863
|
+
"required": false,
|
|
2864
|
+
"description": "`id` of the underlying file input."
|
|
2865
|
+
},
|
|
2866
|
+
{
|
|
2867
|
+
"name": "ariaLabel",
|
|
2868
|
+
"type": "string",
|
|
2869
|
+
"required": false,
|
|
2870
|
+
"description": "Accessible name; needed when `label` carries no text."
|
|
2871
|
+
},
|
|
2872
|
+
{
|
|
2873
|
+
"name": "className",
|
|
2874
|
+
"type": "string",
|
|
2875
|
+
"required": false,
|
|
2876
|
+
"description": "Additional CSS classes for the drop area."
|
|
2877
|
+
}
|
|
2878
|
+
],
|
|
2879
|
+
"examples": [
|
|
2880
|
+
"<FileDropzone\n label=\"Drag and drop it or click here to upload\"\n description=\"File formats .md, .zip and .skill\"\n accept=\".md,.zip,.skill\"\n onChange={(files) => upload(files)}\n onReject={() => setError('Unsupported file format')}\n/>"
|
|
2881
|
+
],
|
|
2882
|
+
"sourceFile": "components/New/FileDropzone/FileDropzone.tsx"
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
"name": "Tag",
|
|
2886
|
+
"category": "Components_2_0",
|
|
2887
|
+
"generation": "2.0",
|
|
2888
|
+
"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.",
|
|
2889
|
+
"props": [
|
|
2890
|
+
{
|
|
2891
|
+
"name": "label",
|
|
2892
|
+
"type": "string",
|
|
2893
|
+
"required": true,
|
|
2894
|
+
"description": "Text content displayed inside the tag."
|
|
2895
|
+
},
|
|
2896
|
+
{
|
|
2897
|
+
"name": "icon",
|
|
2898
|
+
"type": "ReactNode",
|
|
2899
|
+
"required": false,
|
|
2900
|
+
"description": "Icon rendered before the label."
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
"name": "appearance",
|
|
2904
|
+
"type": "TagAppearance",
|
|
2905
|
+
"required": false,
|
|
2906
|
+
"defaultValue": "TagAppearance.Outlined",
|
|
2907
|
+
"description": "`outlined` is the filled chip on the raised\nlayer; `selectable` is the unfilled filter chip that tints and turns semibold when selected."
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
"name": "selected",
|
|
2911
|
+
"type": "boolean",
|
|
2912
|
+
"required": false,
|
|
2913
|
+
"defaultValue": "false",
|
|
2914
|
+
"description": "Applies the accent-tinted selected styling."
|
|
2915
|
+
},
|
|
2916
|
+
{
|
|
2917
|
+
"name": "disabled",
|
|
2918
|
+
"type": "boolean",
|
|
2919
|
+
"required": false,
|
|
2920
|
+
"defaultValue": "false",
|
|
2921
|
+
"description": "Stops the tag responding: no click handling, no remove control. The design defines no disabled tag, so the colours stay put."
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"name": "closable",
|
|
2925
|
+
"type": "boolean",
|
|
2926
|
+
"required": false,
|
|
2927
|
+
"defaultValue": "false",
|
|
2928
|
+
"description": "Renders the remove button. Needs `onRemove` to appear."
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
"name": "removeLabel",
|
|
2932
|
+
"type": "string",
|
|
2933
|
+
"required": false,
|
|
2934
|
+
"description": "Accessible name of the remove button; defaults to `Remove <label>`."
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
"name": "onRemove",
|
|
2938
|
+
"type": "(event: MouseEvent<HTMLButtonElement>) => void",
|
|
2939
|
+
"required": false,
|
|
2940
|
+
"description": "Called when the remove button is clicked. The click does not bubble to `onClick`."
|
|
2941
|
+
}
|
|
2942
|
+
],
|
|
2943
|
+
"examples": [
|
|
2944
|
+
"<Tag label=\"TypeScript\" />\n<Tag label=\"TypeScript\" closable onRemove={() => remove('TypeScript')} />\n<Tag label=\"Drafts\" selected onClick={() => toggle('Drafts')} />\n<Tag\n label=\"Drafts\"\n appearance={TagAppearance.Selectable}\n selected={isSelected}\n onClick={() => toggle('Drafts')}\n/>"
|
|
2945
|
+
],
|
|
2946
|
+
"sourceFile": "components/New/Tag/Tag.tsx"
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
"name": "TagInput",
|
|
2950
|
+
"category": "Components_2_0",
|
|
2951
|
+
"generation": "2.0",
|
|
2952
|
+
"description": "A tag input field: type a value and commit it with Enter or comma.\naliases: MultiTag|TagField|ChipInput\nDesign system 2.0\n\nThe field is an , so it carries the 2.0 field styling, sizes,\nlabel, caption and error states, and the tags render as s in its\ncontent slot. The field grows as tags wrap, unless `collapseTagOverflow` keeps\nthem on one line behind a `+N` chip.\n\nWorks controlled (`value` + `onChange`) or uncontrolled (`defaultValue`).\nDuplicate tags are ignored. Backspace on an empty input removes the last tag.",
|
|
2953
|
+
"props": [
|
|
2954
|
+
{
|
|
2955
|
+
"name": "id",
|
|
2956
|
+
"type": "string",
|
|
2957
|
+
"required": false,
|
|
2958
|
+
"description": "The id of the text input, linked to the label."
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
"name": "value",
|
|
2962
|
+
"type": "string[]",
|
|
2963
|
+
"required": false,
|
|
2964
|
+
"description": "Controlled tag list."
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"name": "defaultValue",
|
|
2968
|
+
"type": "string[]",
|
|
2969
|
+
"required": false,
|
|
2970
|
+
"description": "Initial tag list when uncontrolled."
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
"name": "size",
|
|
2974
|
+
"type": "ElementSize",
|
|
2975
|
+
"required": false,
|
|
2976
|
+
"defaultValue": "ElementSize.Standard",
|
|
2977
|
+
"description": "Field height: standard is 40px, small is 24px."
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"name": "labelProps",
|
|
2981
|
+
"type": "LabelProps",
|
|
2982
|
+
"required": false,
|
|
2983
|
+
"description": "Props of the rendered above the field."
|
|
2984
|
+
},
|
|
2985
|
+
{
|
|
2986
|
+
"name": "placeholder",
|
|
2987
|
+
"type": "string",
|
|
2988
|
+
"required": false,
|
|
2989
|
+
"description": "Placeholder shown while there are no tags."
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
"name": "caption",
|
|
2993
|
+
"type": "string",
|
|
2994
|
+
"required": false,
|
|
2995
|
+
"description": "Helper text rendered below the field when there is no `error`."
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"name": "error",
|
|
2999
|
+
"type": "string",
|
|
3000
|
+
"required": false,
|
|
3001
|
+
"description": "Error message rendered below the field (pass `invalid` too for error styling)."
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
"name": "invalid",
|
|
3005
|
+
"type": "boolean",
|
|
3006
|
+
"required": false,
|
|
3007
|
+
"description": "Applies the field's error styling."
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"name": "disabled",
|
|
3011
|
+
"type": "boolean",
|
|
3012
|
+
"required": false,
|
|
3013
|
+
"defaultValue": "false",
|
|
3014
|
+
"description": "Disables typing and tag removal."
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
"name": "readOnly",
|
|
3018
|
+
"type": "boolean",
|
|
3019
|
+
"required": false,
|
|
3020
|
+
"defaultValue": "false",
|
|
3021
|
+
"description": "Shows the tags without allowing new ones or removal."
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
"name": "collapseTagOverflow",
|
|
3025
|
+
"type": "boolean",
|
|
3026
|
+
"required": false,
|
|
3027
|
+
"defaultValue": "false",
|
|
3028
|
+
"description": "Keep the tags on one line, replacing the ones that do not fit with a `+N` chip."
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
"name": "ariaLabel",
|
|
3032
|
+
"type": "string",
|
|
3033
|
+
"required": false,
|
|
3034
|
+
"description": "Accessible name for the text input; use it when there is no visible label."
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"name": "tagListLabel",
|
|
3038
|
+
"type": "string",
|
|
3039
|
+
"required": false,
|
|
3040
|
+
"defaultValue": "'Tags'",
|
|
3041
|
+
"description": "Accessible name of the tag list."
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
"name": "className",
|
|
3045
|
+
"type": "string",
|
|
3046
|
+
"required": false,
|
|
3047
|
+
"description": "Additional CSS classes for the outer container."
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
"name": "fieldClassName",
|
|
3051
|
+
"type": "string",
|
|
3052
|
+
"required": false,
|
|
3053
|
+
"description": "Additional CSS classes for the field itself."
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
"name": "tagClassName",
|
|
3057
|
+
"type": "string",
|
|
3058
|
+
"required": false,
|
|
3059
|
+
"description": "Additional CSS classes applied to every tag."
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
"name": "onChange",
|
|
3063
|
+
"type": "(tags: string[]) => void",
|
|
3064
|
+
"required": false,
|
|
3065
|
+
"description": "Called with the new list whenever a tag is added or removed."
|
|
3066
|
+
}
|
|
3067
|
+
],
|
|
3068
|
+
"examples": [
|
|
3069
|
+
"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/>"
|
|
3070
|
+
],
|
|
3071
|
+
"sourceFile": "components/New/TagInput/TagInput.tsx"
|
|
3072
|
+
},
|
|
3073
|
+
{
|
|
3074
|
+
"name": "Search",
|
|
3075
|
+
"category": "Components_2_0",
|
|
3076
|
+
"generation": "2.0",
|
|
3077
|
+
"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.",
|
|
3078
|
+
"props": [
|
|
3079
|
+
{
|
|
3080
|
+
"name": "withoutBorder",
|
|
3081
|
+
"type": "boolean",
|
|
3082
|
+
"required": false,
|
|
3083
|
+
"defaultValue": "false",
|
|
3084
|
+
"description": "Renders the field without its border and background"
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
"name": "clearLabel",
|
|
3088
|
+
"type": "string",
|
|
3089
|
+
"required": false,
|
|
3090
|
+
"defaultValue": "'Clear search'",
|
|
3091
|
+
"description": "Accessible name of the clear button"
|
|
3092
|
+
}
|
|
3093
|
+
],
|
|
3094
|
+
"examples": [
|
|
3095
|
+
"<Search\n id=\"search\"\n value={query}\n placeholder=\"Search\"\n onChange={setQuery}\n/>"
|
|
3096
|
+
],
|
|
3097
|
+
"sourceFile": "components/New/Search/Search.tsx"
|
|
2370
3098
|
},
|
|
2371
3099
|
{
|
|
2372
|
-
"name": "
|
|
3100
|
+
"name": "Slider",
|
|
2373
3101
|
"category": "Components_2_0",
|
|
2374
3102
|
"generation": "2.0",
|
|
2375
|
-
"description": "A
|
|
3103
|
+
"description": "A range slider from the 2.0 design system.\naliases: RangeInput|TemperatureSlider|RangeSlider\nDesign system 2.0",
|
|
2376
3104
|
"props": [
|
|
3105
|
+
{
|
|
3106
|
+
"name": "value",
|
|
3107
|
+
"type": "number",
|
|
3108
|
+
"required": true,
|
|
3109
|
+
"description": "Current slider value"
|
|
3110
|
+
},
|
|
3111
|
+
{
|
|
3112
|
+
"name": "min",
|
|
3113
|
+
"type": "number",
|
|
3114
|
+
"required": false,
|
|
3115
|
+
"defaultValue": "0",
|
|
3116
|
+
"description": "Minimum value"
|
|
3117
|
+
},
|
|
3118
|
+
{
|
|
3119
|
+
"name": "max",
|
|
3120
|
+
"type": "number",
|
|
3121
|
+
"required": false,
|
|
3122
|
+
"defaultValue": "1",
|
|
3123
|
+
"description": "Maximum value"
|
|
3124
|
+
},
|
|
3125
|
+
{
|
|
3126
|
+
"name": "step",
|
|
3127
|
+
"type": "number",
|
|
3128
|
+
"required": false,
|
|
3129
|
+
"defaultValue": "0.1",
|
|
3130
|
+
"description": "Step increment"
|
|
3131
|
+
},
|
|
3132
|
+
{
|
|
3133
|
+
"name": "disabled",
|
|
3134
|
+
"type": "boolean",
|
|
3135
|
+
"required": false,
|
|
3136
|
+
"description": "Whether the slider is disabled"
|
|
3137
|
+
},
|
|
2377
3138
|
{
|
|
2378
3139
|
"name": "labelProps",
|
|
2379
3140
|
"type": "LabelProps",
|
|
2380
3141
|
"required": false,
|
|
2381
|
-
"description": "Props of the
|
|
3142
|
+
"description": "Props of the rendered above the track"
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
"name": "labels",
|
|
3146
|
+
"type": "[string, string] | [string, string, string]",
|
|
3147
|
+
"required": false,
|
|
3148
|
+
"description": "2 or 3 strings rendered below the track (start, [middle,] end)"
|
|
3149
|
+
},
|
|
3150
|
+
{
|
|
3151
|
+
"name": "formatValue",
|
|
3152
|
+
"type": "(value: number) => string",
|
|
3153
|
+
"required": false,
|
|
3154
|
+
"description": "Custom formatter for the displayed value; also becomes the announced `aria-valuetext`"
|
|
3155
|
+
},
|
|
3156
|
+
{
|
|
3157
|
+
"name": "showValue",
|
|
3158
|
+
"type": "boolean",
|
|
3159
|
+
"required": false,
|
|
3160
|
+
"defaultValue": "false",
|
|
3161
|
+
"description": "Renders the current value at the end of the label row"
|
|
3162
|
+
},
|
|
3163
|
+
{
|
|
3164
|
+
"name": "caption",
|
|
3165
|
+
"type": "string",
|
|
3166
|
+
"required": false,
|
|
3167
|
+
"description": "Helper text rendered below the track, and described by the slider"
|
|
3168
|
+
},
|
|
3169
|
+
{
|
|
3170
|
+
"name": "error",
|
|
3171
|
+
"type": "string",
|
|
3172
|
+
"required": false,
|
|
3173
|
+
"description": "Error message rendered below the track; replaces the caption"
|
|
3174
|
+
},
|
|
3175
|
+
{
|
|
3176
|
+
"name": "onChange",
|
|
3177
|
+
"type": "(value: number) => void",
|
|
3178
|
+
"required": false,
|
|
3179
|
+
"description": "Callback fired with the new value"
|
|
3180
|
+
},
|
|
3181
|
+
{
|
|
3182
|
+
"name": "containerClassName",
|
|
3183
|
+
"type": "string",
|
|
3184
|
+
"required": false,
|
|
3185
|
+
"description": "Additional classes for the outer container"
|
|
3186
|
+
},
|
|
3187
|
+
{
|
|
3188
|
+
"name": "trackClassName",
|
|
3189
|
+
"type": "string",
|
|
3190
|
+
"required": false,
|
|
3191
|
+
"description": "Additional classes for the unfilled track"
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
"name": "fillClassName",
|
|
3195
|
+
"type": "string",
|
|
3196
|
+
"required": false,
|
|
3197
|
+
"description": "Additional classes for the filled portion of the track"
|
|
3198
|
+
}
|
|
3199
|
+
],
|
|
3200
|
+
"examples": [
|
|
3201
|
+
"<Slider\n id=\"temperature\"\n labelProps={{ label: 'Temperature' }}\n value={temperature}\n labels={['Precise', 'Neutral', 'Creative']}\n onChange={setTemperature}\n/>"
|
|
3202
|
+
],
|
|
3203
|
+
"sourceFile": "components/New/Slider/Slider.tsx"
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"name": "Tooltip",
|
|
3207
|
+
"category": "Components_2_0",
|
|
3208
|
+
"generation": "2.0",
|
|
3209
|
+
"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.",
|
|
3210
|
+
"props": [
|
|
3211
|
+
{
|
|
3212
|
+
"name": "hideTooltip",
|
|
3213
|
+
"type": "boolean",
|
|
3214
|
+
"required": false,
|
|
3215
|
+
"defaultValue": "false",
|
|
3216
|
+
"description": "Suppress the tooltip while keeping the trigger rendered"
|
|
3217
|
+
},
|
|
3218
|
+
{
|
|
3219
|
+
"name": "tooltip",
|
|
3220
|
+
"type": "ReactNode",
|
|
3221
|
+
"required": false,
|
|
3222
|
+
"description": "The content to display in the tooltip"
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
"name": "children",
|
|
3226
|
+
"type": "ReactNode",
|
|
3227
|
+
"required": true,
|
|
3228
|
+
"description": "The element that triggers the tooltip"
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
"name": "asChild",
|
|
3232
|
+
"type": "boolean",
|
|
3233
|
+
"required": false,
|
|
3234
|
+
"defaultValue": "false",
|
|
3235
|
+
"description": "Use the child as the trigger instead of wrapping it in a `<span>`"
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
"name": "triggerClassName",
|
|
3239
|
+
"type": "string",
|
|
3240
|
+
"required": false,
|
|
3241
|
+
"description": "Additional CSS classes for the trigger element"
|
|
3242
|
+
},
|
|
3243
|
+
{
|
|
3244
|
+
"name": "contentClassName",
|
|
3245
|
+
"type": "string",
|
|
3246
|
+
"required": false,
|
|
3247
|
+
"description": "Additional CSS classes for the tooltip bubble"
|
|
3248
|
+
}
|
|
3249
|
+
],
|
|
3250
|
+
"examples": [
|
|
3251
|
+
"<Tooltip tooltip=\"Tooltip text\" placement={TooltipPlacement.Top} asChild>\n <button>Hover me</button>\n</Tooltip>"
|
|
3252
|
+
],
|
|
3253
|
+
"sourceFile": "components/New/Tooltip/Tooltip.tsx"
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
"name": "TooltipContainer",
|
|
3257
|
+
"category": "Components_2_0",
|
|
3258
|
+
"generation": "2.0",
|
|
3259
|
+
"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.",
|
|
3260
|
+
"props": [],
|
|
3261
|
+
"examples": [
|
|
3262
|
+
"<TooltipContainer placement={TooltipPlacement.Top}>\n <TooltipTrigger asChild>\n <button>Hover me</button>\n </TooltipTrigger>\n <TooltipContent>Tooltip text</TooltipContent>\n</TooltipContainer>"
|
|
3263
|
+
],
|
|
3264
|
+
"sourceFile": "components/New/Tooltip/TooltipContainer.tsx"
|
|
3265
|
+
},
|
|
3266
|
+
{
|
|
3267
|
+
"name": "TooltipContent",
|
|
3268
|
+
"category": "Components_2_0",
|
|
3269
|
+
"generation": "2.0",
|
|
3270
|
+
"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.",
|
|
3271
|
+
"props": [
|
|
3272
|
+
{
|
|
3273
|
+
"name": "style",
|
|
3274
|
+
"type": "CSSProperties",
|
|
3275
|
+
"required": false,
|
|
3276
|
+
"description": "Additional inline styles for the tooltip bubble"
|
|
3277
|
+
}
|
|
3278
|
+
],
|
|
3279
|
+
"examples": [],
|
|
3280
|
+
"sourceFile": "components/New/Tooltip/TooltipContent.tsx"
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
"name": "TooltipTrigger",
|
|
3284
|
+
"category": "Components_2_0",
|
|
3285
|
+
"generation": "2.0",
|
|
3286
|
+
"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.",
|
|
3287
|
+
"props": [
|
|
3288
|
+
{
|
|
3289
|
+
"name": "asChild",
|
|
3290
|
+
"type": "boolean",
|
|
3291
|
+
"required": false,
|
|
3292
|
+
"defaultValue": "false",
|
|
3293
|
+
"description": "Render the child as the trigger instead of wrapping it in a `<span>`"
|
|
3294
|
+
}
|
|
3295
|
+
],
|
|
3296
|
+
"examples": [],
|
|
3297
|
+
"sourceFile": "components/New/Tooltip/TooltipTrigger.tsx"
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
"name": "EllipsisTooltip",
|
|
3301
|
+
"category": "Components_2_0",
|
|
3302
|
+
"generation": "2.0",
|
|
3303
|
+
"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.",
|
|
3304
|
+
"props": [
|
|
3305
|
+
{
|
|
3306
|
+
"name": "text",
|
|
3307
|
+
"type": "ReactNode",
|
|
3308
|
+
"required": true,
|
|
3309
|
+
"description": "The text or node to display, truncated with an ellipsis when it does not fit"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"name": "className",
|
|
3313
|
+
"type": "string",
|
|
3314
|
+
"required": false,
|
|
3315
|
+
"description": "Additional CSS classes for the text element, typically its width"
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
"name": "contentClassName",
|
|
3319
|
+
"type": "string",
|
|
3320
|
+
"required": false,
|
|
3321
|
+
"description": "Additional CSS classes for the tooltip bubble"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
"name": "hideTooltip",
|
|
3325
|
+
"type": "boolean",
|
|
3326
|
+
"required": false,
|
|
3327
|
+
"defaultValue": "false",
|
|
3328
|
+
"description": "Suppress the tooltip even while the text is truncated"
|
|
3329
|
+
},
|
|
3330
|
+
{
|
|
3331
|
+
"name": "id",
|
|
3332
|
+
"type": "string",
|
|
3333
|
+
"required": false,
|
|
3334
|
+
"description": "`id` of the text element"
|
|
2382
3335
|
},
|
|
2383
3336
|
{
|
|
2384
|
-
"name": "
|
|
3337
|
+
"name": "customTooltipContent",
|
|
3338
|
+
"type": "ReactNode",
|
|
3339
|
+
"required": false,
|
|
3340
|
+
"description": "Shown instead of the full text while truncated"
|
|
3341
|
+
}
|
|
3342
|
+
],
|
|
3343
|
+
"examples": [
|
|
3344
|
+
"<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 />"
|
|
3345
|
+
],
|
|
3346
|
+
"sourceFile": "components/New/EllipsisTooltip/EllipsisTooltip.tsx"
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
"name": "CollapsibleSidebar",
|
|
3350
|
+
"category": "Components_2_0",
|
|
3351
|
+
"generation": "2.0",
|
|
3352
|
+
"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.",
|
|
3353
|
+
"props": [
|
|
3354
|
+
{
|
|
3355
|
+
"name": "children",
|
|
2385
3356
|
"type": "ReactNode",
|
|
2386
3357
|
"required": true,
|
|
2387
|
-
"description": "
|
|
3358
|
+
"description": "Content shown while the sidebar is expanded."
|
|
2388
3359
|
},
|
|
2389
3360
|
{
|
|
2390
|
-
"name": "
|
|
3361
|
+
"name": "title",
|
|
2391
3362
|
"type": "ReactNode",
|
|
2392
|
-
"required": false,
|
|
2393
|
-
"description": "Secondary line of copy."
|
|
2394
|
-
},
|
|
2395
|
-
{
|
|
2396
|
-
"name": "onChange",
|
|
2397
|
-
"type": "(files: File[]) => void",
|
|
2398
3363
|
"required": true,
|
|
2399
|
-
"description": "
|
|
3364
|
+
"description": "Name of the panel, rendered as vertical text while collapsed."
|
|
2400
3365
|
},
|
|
2401
3366
|
{
|
|
2402
|
-
"name": "
|
|
2403
|
-
"type": "
|
|
3367
|
+
"name": "width",
|
|
3368
|
+
"type": "number",
|
|
2404
3369
|
"required": false,
|
|
2405
|
-
"
|
|
3370
|
+
"defaultValue": "280",
|
|
3371
|
+
"description": "Width in px while expanded."
|
|
2406
3372
|
},
|
|
2407
3373
|
{
|
|
2408
|
-
"name": "
|
|
2409
|
-
"type": "
|
|
3374
|
+
"name": "collapsedWidth",
|
|
3375
|
+
"type": "number",
|
|
2410
3376
|
"required": false,
|
|
2411
|
-
"
|
|
3377
|
+
"defaultValue": "COLLAPSED_WIDTH",
|
|
3378
|
+
"description": "Width in px while collapsed."
|
|
2412
3379
|
},
|
|
2413
3380
|
{
|
|
2414
|
-
"name": "
|
|
3381
|
+
"name": "isOpened",
|
|
2415
3382
|
"type": "boolean",
|
|
2416
3383
|
"required": false,
|
|
2417
|
-
"
|
|
2418
|
-
"description": "Whether more than one file can be selected."
|
|
3384
|
+
"description": "Controlled open state."
|
|
2419
3385
|
},
|
|
2420
3386
|
{
|
|
2421
|
-
"name": "
|
|
3387
|
+
"name": "defaultOpened",
|
|
2422
3388
|
"type": "boolean",
|
|
2423
3389
|
"required": false,
|
|
2424
|
-
"defaultValue": "
|
|
2425
|
-
"description": "
|
|
3390
|
+
"defaultValue": "true",
|
|
3391
|
+
"description": "Initial open state when uncontrolled."
|
|
2426
3392
|
},
|
|
2427
3393
|
{
|
|
2428
|
-
"name": "
|
|
2429
|
-
"type": "
|
|
3394
|
+
"name": "onToggle",
|
|
3395
|
+
"type": "(nextOpened: boolean, e: MouseEvent<HTMLButtonElement>) => void",
|
|
2430
3396
|
"required": false,
|
|
2431
|
-
"description": "
|
|
3397
|
+
"description": "Fired when the toggle is clicked. Receives the next open state."
|
|
2432
3398
|
},
|
|
2433
3399
|
{
|
|
2434
|
-
"name": "
|
|
3400
|
+
"name": "additionalButtons",
|
|
2435
3401
|
"type": "ReactNode",
|
|
2436
3402
|
"required": false,
|
|
2437
|
-
"description": "
|
|
3403
|
+
"description": "Extra footer controls, rendered while expanded."
|
|
2438
3404
|
},
|
|
2439
3405
|
{
|
|
2440
|
-
"name": "
|
|
3406
|
+
"name": "ariaLabel",
|
|
2441
3407
|
"type": "string",
|
|
2442
3408
|
"required": false,
|
|
2443
|
-
"
|
|
3409
|
+
"defaultValue": "'Sidebar'",
|
|
3410
|
+
"description": "Accessible name of the sidebar region."
|
|
2444
3411
|
},
|
|
2445
3412
|
{
|
|
2446
|
-
"name": "
|
|
3413
|
+
"name": "collapseLabel",
|
|
2447
3414
|
"type": "string",
|
|
2448
3415
|
"required": false,
|
|
2449
|
-
"
|
|
3416
|
+
"defaultValue": "'Collapse sidebar'",
|
|
3417
|
+
"description": "Name and tooltip of the toggle while expanded."
|
|
3418
|
+
},
|
|
3419
|
+
{
|
|
3420
|
+
"name": "expandLabel",
|
|
3421
|
+
"type": "string",
|
|
3422
|
+
"required": false,
|
|
3423
|
+
"defaultValue": "'Expand sidebar'",
|
|
3424
|
+
"description": "Name and tooltip of the toggle while collapsed."
|
|
2450
3425
|
},
|
|
2451
3426
|
{
|
|
2452
3427
|
"name": "className",
|
|
2453
3428
|
"type": "string",
|
|
2454
3429
|
"required": false,
|
|
2455
|
-
"description": "Additional CSS classes for the
|
|
3430
|
+
"description": "Additional CSS classes for the outer container."
|
|
3431
|
+
},
|
|
3432
|
+
{
|
|
3433
|
+
"name": "titleClassName",
|
|
3434
|
+
"type": "string",
|
|
3435
|
+
"required": false,
|
|
3436
|
+
"description": "Additional CSS classes for the vertical title."
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
"name": "contentClassName",
|
|
3440
|
+
"type": "string",
|
|
3441
|
+
"required": false,
|
|
3442
|
+
"description": "Additional CSS classes for the content region."
|
|
3443
|
+
},
|
|
3444
|
+
{
|
|
3445
|
+
"name": "footerClassName",
|
|
3446
|
+
"type": "string",
|
|
3447
|
+
"required": false,
|
|
3448
|
+
"description": "Additional CSS classes for the footer."
|
|
2456
3449
|
}
|
|
2457
3450
|
],
|
|
2458
3451
|
"examples": [
|
|
2459
|
-
"<
|
|
3452
|
+
"<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>"
|
|
2460
3453
|
],
|
|
2461
|
-
"sourceFile": "components/New/
|
|
3454
|
+
"sourceFile": "components/New/CollapsibleSidebar/CollapsibleSidebar.tsx"
|
|
2462
3455
|
},
|
|
2463
3456
|
{
|
|
2464
|
-
"name": "
|
|
3457
|
+
"name": "ResizableContainer",
|
|
2465
3458
|
"category": "Components_2_0",
|
|
2466
3459
|
"generation": "2.0",
|
|
2467
|
-
"description": "A
|
|
3460
|
+
"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.",
|
|
2468
3461
|
"props": [
|
|
2469
3462
|
{
|
|
2470
|
-
"name": "
|
|
2471
|
-
"type": "
|
|
3463
|
+
"name": "children",
|
|
3464
|
+
"type": "ReactNode",
|
|
2472
3465
|
"required": true,
|
|
2473
|
-
"description": "
|
|
3466
|
+
"description": "Content placed inside the container."
|
|
2474
3467
|
},
|
|
2475
3468
|
{
|
|
2476
|
-
"name": "
|
|
2477
|
-
"type": "
|
|
3469
|
+
"name": "minWidth",
|
|
3470
|
+
"type": "number",
|
|
3471
|
+
"required": true,
|
|
3472
|
+
"description": "Minimum allowed width in px."
|
|
3473
|
+
},
|
|
3474
|
+
{
|
|
3475
|
+
"name": "maxWidth",
|
|
3476
|
+
"type": "number",
|
|
3477
|
+
"required": true,
|
|
3478
|
+
"description": "Maximum allowed width in px."
|
|
3479
|
+
},
|
|
3480
|
+
{
|
|
3481
|
+
"name": "width",
|
|
3482
|
+
"type": "number",
|
|
2478
3483
|
"required": false,
|
|
2479
|
-
"description": "
|
|
3484
|
+
"description": "Controlled width. If omitted the container is uncontrolled."
|
|
2480
3485
|
},
|
|
2481
3486
|
{
|
|
2482
|
-
"name": "
|
|
2483
|
-
"type": "
|
|
3487
|
+
"name": "defaultWidth",
|
|
3488
|
+
"type": "number",
|
|
2484
3489
|
"required": false,
|
|
2485
|
-
"
|
|
2486
|
-
"description": "Tag height: standard is 24px, small is 20px."
|
|
3490
|
+
"description": "Initial width when uncontrolled. Defaults to `minWidth`."
|
|
2487
3491
|
},
|
|
2488
3492
|
{
|
|
2489
|
-
"name": "
|
|
2490
|
-
"type": "
|
|
3493
|
+
"name": "onResizeStop",
|
|
3494
|
+
"type": "(width: number) => void",
|
|
2491
3495
|
"required": false,
|
|
2492
|
-
"
|
|
2493
|
-
"description": "Applies the accent-tinted selected styling."
|
|
3496
|
+
"description": "Fired when a resize ends, and once per arrow key press."
|
|
2494
3497
|
},
|
|
2495
3498
|
{
|
|
2496
|
-
"name": "
|
|
3499
|
+
"name": "onResize",
|
|
3500
|
+
"type": "(width: number) => void",
|
|
3501
|
+
"required": false,
|
|
3502
|
+
"description": "Fired continuously while dragging."
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
"name": "side",
|
|
3506
|
+
"type": "ResizableContainerSide",
|
|
3507
|
+
"required": false,
|
|
3508
|
+
"defaultValue": "ResizableContainerSide.Right",
|
|
3509
|
+
"description": "Edge carrying the resize handle."
|
|
3510
|
+
},
|
|
3511
|
+
{
|
|
3512
|
+
"name": "keyboardStep",
|
|
3513
|
+
"type": "number",
|
|
3514
|
+
"required": false,
|
|
3515
|
+
"defaultValue": "DEFAULT_KEYBOARD_STEP",
|
|
3516
|
+
"description": "Width change per arrow key press."
|
|
3517
|
+
},
|
|
3518
|
+
{
|
|
3519
|
+
"name": "ariaLabel",
|
|
3520
|
+
"type": "string",
|
|
3521
|
+
"required": false,
|
|
3522
|
+
"defaultValue": "'Resize panel'",
|
|
3523
|
+
"description": "Accessible name of the handle."
|
|
3524
|
+
},
|
|
3525
|
+
{
|
|
3526
|
+
"name": "className",
|
|
3527
|
+
"type": "string",
|
|
3528
|
+
"required": false,
|
|
3529
|
+
"description": "Additional CSS classes for the inner content wrapper."
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
"name": "resizeHandlerClassName",
|
|
3533
|
+
"type": "string",
|
|
3534
|
+
"required": false,
|
|
3535
|
+
"description": "Additional CSS classes for the resize handle."
|
|
3536
|
+
},
|
|
3537
|
+
{
|
|
3538
|
+
"name": "resizeHandler",
|
|
3539
|
+
"type": "ReactNode",
|
|
3540
|
+
"required": false,
|
|
3541
|
+
"description": "Custom node rendered inside the handle, replacing the default chevron."
|
|
3542
|
+
}
|
|
3543
|
+
],
|
|
3544
|
+
"examples": [
|
|
3545
|
+
"<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>"
|
|
3546
|
+
],
|
|
3547
|
+
"sourceFile": "components/New/ResizableContainer/ResizableContainer.tsx"
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
"name": "ConditionalResizableContainer",
|
|
3551
|
+
"category": "Components_2_0",
|
|
3552
|
+
"generation": "2.0",
|
|
3553
|
+
"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.",
|
|
3554
|
+
"props": [
|
|
3555
|
+
{
|
|
3556
|
+
"name": "enabled",
|
|
2497
3557
|
"type": "boolean",
|
|
2498
3558
|
"required": false,
|
|
2499
|
-
"defaultValue": "
|
|
2500
|
-
"description": "
|
|
3559
|
+
"defaultValue": "true",
|
|
3560
|
+
"description": "Whether resizing is enabled."
|
|
3561
|
+
}
|
|
3562
|
+
],
|
|
3563
|
+
"examples": [
|
|
3564
|
+
"<ConditionalResizableContainer\n enabled={isExpanded}\n minWidth={180}\n maxWidth={520}\n defaultWidth={260}\n>\n <Sidebar />\n</ConditionalResizableContainer>"
|
|
3565
|
+
],
|
|
3566
|
+
"sourceFile": "components/New/ResizableContainer/ConditionalResizableContainer.tsx"
|
|
3567
|
+
},
|
|
3568
|
+
{
|
|
3569
|
+
"name": "NoDataContent",
|
|
3570
|
+
"category": "Components_2_0",
|
|
3571
|
+
"generation": "2.0",
|
|
3572
|
+
"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.",
|
|
3573
|
+
"props": [
|
|
3574
|
+
{
|
|
3575
|
+
"name": "title",
|
|
3576
|
+
"type": "ReactNode",
|
|
3577
|
+
"required": true,
|
|
3578
|
+
"description": "Headline of the empty state."
|
|
2501
3579
|
},
|
|
2502
3580
|
{
|
|
2503
|
-
"name": "
|
|
3581
|
+
"name": "description",
|
|
3582
|
+
"type": "ReactNode",
|
|
3583
|
+
"required": false,
|
|
3584
|
+
"description": "Optional secondary line under the title."
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"name": "icon",
|
|
3588
|
+
"type": "ReactNode",
|
|
3589
|
+
"required": false,
|
|
3590
|
+
"description": "Illustration above the title. Defaults to a struck-through clipboard."
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"name": "live",
|
|
2504
3594
|
"type": "boolean",
|
|
2505
3595
|
"required": false,
|
|
2506
3596
|
"defaultValue": "false",
|
|
2507
|
-
"description": "
|
|
3597
|
+
"description": "Announce the empty state to assistive tech as it appears."
|
|
2508
3598
|
},
|
|
2509
3599
|
{
|
|
2510
|
-
"name": "
|
|
3600
|
+
"name": "className",
|
|
2511
3601
|
"type": "string",
|
|
2512
3602
|
"required": false,
|
|
2513
|
-
"description": "
|
|
3603
|
+
"description": "Additional CSS classes for the container."
|
|
2514
3604
|
},
|
|
2515
3605
|
{
|
|
2516
|
-
"name": "
|
|
2517
|
-
"type": "
|
|
3606
|
+
"name": "titleClassName",
|
|
3607
|
+
"type": "string",
|
|
2518
3608
|
"required": false,
|
|
2519
|
-
"description": "
|
|
3609
|
+
"description": "Additional CSS classes for the title."
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
"name": "descriptionClassName",
|
|
3613
|
+
"type": "string",
|
|
3614
|
+
"required": false,
|
|
3615
|
+
"description": "Additional CSS classes for the description."
|
|
2520
3616
|
}
|
|
2521
3617
|
],
|
|
2522
3618
|
"examples": [
|
|
2523
|
-
"<
|
|
3619
|
+
"<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 />"
|
|
2524
3620
|
],
|
|
2525
|
-
"sourceFile": "components/New/
|
|
3621
|
+
"sourceFile": "components/New/NoDataContent/NoDataContent.tsx"
|
|
2526
3622
|
},
|
|
2527
3623
|
{
|
|
2528
|
-
"name": "
|
|
3624
|
+
"name": "Grid",
|
|
2529
3625
|
"category": "Components_2_0",
|
|
2530
3626
|
"generation": "2.0",
|
|
2531
|
-
"description": "A
|
|
3627
|
+
"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.",
|
|
2532
3628
|
"props": [
|
|
2533
3629
|
{
|
|
2534
|
-
"name": "
|
|
2535
|
-
"type": "
|
|
3630
|
+
"name": "columnDefs",
|
|
3631
|
+
"type": "ColDef<T>[]",
|
|
2536
3632
|
"required": false,
|
|
2537
|
-
"description": "
|
|
3633
|
+
"description": "Column definitions, in ag-Grid `ColDef` format."
|
|
2538
3634
|
},
|
|
2539
3635
|
{
|
|
2540
|
-
"name": "
|
|
2541
|
-
"type": "
|
|
3636
|
+
"name": "rowData",
|
|
3637
|
+
"type": "T[]",
|
|
2542
3638
|
"required": false,
|
|
2543
|
-
"description": "
|
|
3639
|
+
"description": "Rows to display."
|
|
2544
3640
|
},
|
|
2545
3641
|
{
|
|
2546
|
-
"name": "
|
|
2547
|
-
"type": "
|
|
3642
|
+
"name": "additionalGridOptions",
|
|
3643
|
+
"type": "GridOptions<T>",
|
|
2548
3644
|
"required": false,
|
|
2549
|
-
"description": "
|
|
3645
|
+
"description": "Extra ag-Grid options, merged over the defaults."
|
|
2550
3646
|
},
|
|
2551
3647
|
{
|
|
2552
|
-
"name": "
|
|
2553
|
-
"type": "
|
|
3648
|
+
"name": "getContextMenuItems",
|
|
3649
|
+
"type": "(row: T) => DropdownItem[]",
|
|
2554
3650
|
"required": false,
|
|
2555
|
-
"
|
|
2556
|
-
"description": "Field height: standard is 40px, small is 24px."
|
|
3651
|
+
"description": "Items of the row context menu. Omit for no menu."
|
|
2557
3652
|
},
|
|
2558
3653
|
{
|
|
2559
|
-
"name": "
|
|
2560
|
-
"type": "
|
|
3654
|
+
"name": "className",
|
|
3655
|
+
"type": "string",
|
|
2561
3656
|
"required": false,
|
|
2562
|
-
"description": "
|
|
3657
|
+
"description": "Additional CSS classes for the grid container."
|
|
2563
3658
|
},
|
|
2564
3659
|
{
|
|
2565
|
-
"name": "
|
|
3660
|
+
"name": "ariaLabel",
|
|
2566
3661
|
"type": "string",
|
|
2567
3662
|
"required": false,
|
|
2568
|
-
"
|
|
3663
|
+
"defaultValue": "'Data grid'",
|
|
3664
|
+
"description": "Accessible name of the grid region."
|
|
2569
3665
|
},
|
|
2570
3666
|
{
|
|
2571
|
-
"name": "
|
|
2572
|
-
"type": "
|
|
3667
|
+
"name": "wrapCustomCellRenderers",
|
|
3668
|
+
"type": "boolean | ((col: ColDef<T>) => boolean)",
|
|
2573
3669
|
"required": false,
|
|
2574
|
-
"
|
|
3670
|
+
"defaultValue": "true",
|
|
3671
|
+
"description": "Whether custom renderers get context-menu support."
|
|
2575
3672
|
},
|
|
2576
3673
|
{
|
|
2577
|
-
"name": "
|
|
2578
|
-
"type": "string",
|
|
3674
|
+
"name": "disabledRowIds",
|
|
3675
|
+
"type": "Set<string>",
|
|
2579
3676
|
"required": false,
|
|
2580
|
-
"description": "
|
|
3677
|
+
"description": "Rows that cannot be selected."
|
|
2581
3678
|
},
|
|
2582
3679
|
{
|
|
2583
|
-
"name": "
|
|
2584
|
-
"type": "
|
|
3680
|
+
"name": "selectedRowIds",
|
|
3681
|
+
"type": "Set<string>",
|
|
2585
3682
|
"required": false,
|
|
2586
|
-
"description": "
|
|
3683
|
+
"description": "Controlled selection: ids of the selected rows."
|
|
2587
3684
|
},
|
|
2588
3685
|
{
|
|
2589
|
-
"name": "
|
|
2590
|
-
"type": "
|
|
3686
|
+
"name": "onGridApiChange",
|
|
3687
|
+
"type": "(api: GridApi<T>) => void",
|
|
2591
3688
|
"required": false,
|
|
2592
|
-
"
|
|
2593
|
-
"description": "Disables typing and tag removal."
|
|
3689
|
+
"description": "Fired when the grid API becomes available."
|
|
2594
3690
|
},
|
|
2595
3691
|
{
|
|
2596
|
-
"name": "
|
|
2597
|
-
"type": "
|
|
3692
|
+
"name": "onSelectionChange",
|
|
3693
|
+
"type": "(selectedRowIds: Set<string>, selectedRows: T[]) => void",
|
|
2598
3694
|
"required": false,
|
|
2599
|
-
"
|
|
2600
|
-
"description": "Shows the tags without allowing new ones or removal."
|
|
3695
|
+
"description": "Fired when the selection changes."
|
|
2601
3696
|
},
|
|
2602
3697
|
{
|
|
2603
|
-
"name": "
|
|
2604
|
-
"type": "
|
|
3698
|
+
"name": "getRowId",
|
|
3699
|
+
"type": "(row: T) => string",
|
|
2605
3700
|
"required": false,
|
|
2606
|
-
"
|
|
2607
|
-
"description": "Keep the tags on one line, replacing the ones that do not fit with a `+N` chip."
|
|
3701
|
+
"description": "Extracts the unique id of a row. Defaults to its `id` field."
|
|
2608
3702
|
},
|
|
2609
3703
|
{
|
|
2610
|
-
"name": "
|
|
2611
|
-
"type": "
|
|
3704
|
+
"name": "alternateOddRowColors",
|
|
3705
|
+
"type": "boolean",
|
|
2612
3706
|
"required": false,
|
|
2613
|
-
"
|
|
3707
|
+
"defaultValue": "false",
|
|
3708
|
+
"description": "Tints odd rows."
|
|
2614
3709
|
},
|
|
2615
3710
|
{
|
|
2616
|
-
"name": "
|
|
3711
|
+
"name": "filterPlaceholder",
|
|
2617
3712
|
"type": "string",
|
|
2618
3713
|
"required": false,
|
|
2619
|
-
"defaultValue": "'
|
|
2620
|
-
"description": "
|
|
3714
|
+
"defaultValue": "'Enter value'",
|
|
3715
|
+
"description": "Placeholder of the column filter inputs."
|
|
2621
3716
|
},
|
|
2622
3717
|
{
|
|
2623
|
-
"name": "
|
|
2624
|
-
"type": "
|
|
3718
|
+
"name": "emptyStateIcon",
|
|
3719
|
+
"type": "ReactNode",
|
|
2625
3720
|
"required": false,
|
|
2626
|
-
"description": "
|
|
3721
|
+
"description": "Illustration of the empty state."
|
|
2627
3722
|
},
|
|
2628
3723
|
{
|
|
2629
|
-
"name": "
|
|
3724
|
+
"name": "emptyStateTitle",
|
|
2630
3725
|
"type": "string",
|
|
2631
3726
|
"required": false,
|
|
2632
|
-
"
|
|
3727
|
+
"defaultValue": "'No results found'",
|
|
3728
|
+
"description": "Headline of the empty state."
|
|
2633
3729
|
},
|
|
2634
3730
|
{
|
|
2635
|
-
"name": "
|
|
3731
|
+
"name": "emptyStateDescription",
|
|
2636
3732
|
"type": "string",
|
|
2637
3733
|
"required": false,
|
|
2638
|
-
"
|
|
3734
|
+
"defaultValue": "\"Sorry, we couldn't find any results for your search.\"",
|
|
3735
|
+
"description": "Secondary line of the empty state."
|
|
2639
3736
|
},
|
|
2640
3737
|
{
|
|
2641
|
-
"name": "
|
|
2642
|
-
"type": "(tags: string[]) => void",
|
|
2643
|
-
"required": false,
|
|
2644
|
-
"description": "Called with the new list whenever a tag is added or removed."
|
|
2645
|
-
}
|
|
2646
|
-
],
|
|
2647
|
-
"examples": [
|
|
2648
|
-
"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/>"
|
|
2649
|
-
],
|
|
2650
|
-
"sourceFile": "components/New/TagInput/TagInput.tsx"
|
|
2651
|
-
},
|
|
2652
|
-
{
|
|
2653
|
-
"name": "Search",
|
|
2654
|
-
"category": "Components_2_0",
|
|
2655
|
-
"generation": "2.0",
|
|
2656
|
-
"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.",
|
|
2657
|
-
"props": [
|
|
2658
|
-
{
|
|
2659
|
-
"name": "withoutBorder",
|
|
3738
|
+
"name": "loading",
|
|
2660
3739
|
"type": "boolean",
|
|
2661
3740
|
"required": false,
|
|
2662
3741
|
"defaultValue": "false",
|
|
2663
|
-
"description": "
|
|
3742
|
+
"description": "Shows the loading overlay."
|
|
2664
3743
|
},
|
|
2665
3744
|
{
|
|
2666
|
-
"name": "
|
|
2667
|
-
"type": "
|
|
3745
|
+
"name": "wrapperBorder",
|
|
3746
|
+
"type": "boolean",
|
|
2668
3747
|
"required": false,
|
|
2669
|
-
"defaultValue": "
|
|
2670
|
-
"description": "
|
|
2671
|
-
}
|
|
2672
|
-
],
|
|
2673
|
-
"examples": [
|
|
2674
|
-
"<Search\n id=\"search\"\n value={query}\n placeholder=\"Search\"\n onChange={setQuery}\n/>"
|
|
2675
|
-
],
|
|
2676
|
-
"sourceFile": "components/New/Search/Search.tsx"
|
|
2677
|
-
},
|
|
2678
|
-
{
|
|
2679
|
-
"name": "Tooltip",
|
|
2680
|
-
"category": "Components_2_0",
|
|
2681
|
-
"generation": "2.0",
|
|
2682
|
-
"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.",
|
|
2683
|
-
"props": [
|
|
3748
|
+
"defaultValue": "true",
|
|
3749
|
+
"description": "Draws a border around the grid."
|
|
3750
|
+
},
|
|
2684
3751
|
{
|
|
2685
|
-
"name": "
|
|
3752
|
+
"name": "withoutHeaderBorders",
|
|
2686
3753
|
"type": "boolean",
|
|
2687
3754
|
"required": false,
|
|
2688
3755
|
"defaultValue": "false",
|
|
2689
|
-
"description": "
|
|
3756
|
+
"description": "Hides the vertical borders between header cells."
|
|
2690
3757
|
},
|
|
2691
3758
|
{
|
|
2692
|
-
"name": "
|
|
2693
|
-
"type": "
|
|
3759
|
+
"name": "selectionMode",
|
|
3760
|
+
"type": "GridSelectionMode",
|
|
2694
3761
|
"required": false,
|
|
2695
|
-
"description": "
|
|
2696
|
-
},
|
|
2697
|
-
{
|
|
2698
|
-
"name": "children",
|
|
2699
|
-
"type": "ReactNode",
|
|
2700
|
-
"required": true,
|
|
2701
|
-
"description": "The element that triggers the tooltip"
|
|
3762
|
+
"description": "Renders a selection column of checkboxes or radios."
|
|
2702
3763
|
},
|
|
2703
3764
|
{
|
|
2704
|
-
"name": "
|
|
3765
|
+
"name": "allowDisabledContextMenu",
|
|
2705
3766
|
"type": "boolean",
|
|
2706
3767
|
"required": false,
|
|
2707
3768
|
"defaultValue": "false",
|
|
2708
|
-
"description": "
|
|
3769
|
+
"description": "Keeps the context menu on a non-selectable row."
|
|
2709
3770
|
},
|
|
2710
3771
|
{
|
|
2711
|
-
"name": "
|
|
2712
|
-
"type": "string",
|
|
3772
|
+
"name": "selectRowLabel",
|
|
3773
|
+
"type": "(row: T) => string",
|
|
2713
3774
|
"required": false,
|
|
2714
|
-
"description": "
|
|
3775
|
+
"description": "Accessible name of a row's selection control."
|
|
2715
3776
|
},
|
|
2716
3777
|
{
|
|
2717
|
-
"name": "
|
|
3778
|
+
"name": "selectAllLabel",
|
|
2718
3779
|
"type": "string",
|
|
2719
3780
|
"required": false,
|
|
2720
|
-
"
|
|
3781
|
+
"defaultValue": "'Select all rows'",
|
|
3782
|
+
"description": "Accessible name of the select-all control."
|
|
2721
3783
|
}
|
|
2722
3784
|
],
|
|
2723
3785
|
"examples": [
|
|
2724
|
-
"
|
|
2725
|
-
],
|
|
2726
|
-
"sourceFile": "components/New/Tooltip/Tooltip.tsx"
|
|
2727
|
-
},
|
|
2728
|
-
{
|
|
2729
|
-
"name": "TooltipContainer",
|
|
2730
|
-
"category": "Components_2_0",
|
|
2731
|
-
"generation": "2.0",
|
|
2732
|
-
"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.",
|
|
2733
|
-
"props": [],
|
|
2734
|
-
"examples": [
|
|
2735
|
-
"<TooltipContainer placement={TooltipPlacement.Top}>\n <TooltipTrigger asChild>\n <button>Hover me</button>\n </TooltipTrigger>\n <TooltipContent>Tooltip text</TooltipContent>\n</TooltipContainer>"
|
|
2736
|
-
],
|
|
2737
|
-
"sourceFile": "components/New/Tooltip/TooltipContainer.tsx"
|
|
2738
|
-
},
|
|
2739
|
-
{
|
|
2740
|
-
"name": "TooltipContent",
|
|
2741
|
-
"category": "Components_2_0",
|
|
2742
|
-
"generation": "2.0",
|
|
2743
|
-
"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.",
|
|
2744
|
-
"props": [
|
|
2745
|
-
{
|
|
2746
|
-
"name": "style",
|
|
2747
|
-
"type": "CSSProperties",
|
|
2748
|
-
"required": false,
|
|
2749
|
-
"description": "Additional inline styles for the tooltip bubble"
|
|
2750
|
-
}
|
|
3786
|
+
"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/>"
|
|
2751
3787
|
],
|
|
2752
|
-
"
|
|
2753
|
-
"sourceFile": "components/New/Tooltip/TooltipContent.tsx"
|
|
3788
|
+
"sourceFile": "components/New/Grid/Grid.tsx"
|
|
2754
3789
|
},
|
|
2755
3790
|
{
|
|
2756
|
-
"name": "
|
|
2757
|
-
"category": "Components_2_0",
|
|
3791
|
+
"name": "DateCellRenderer",
|
|
3792
|
+
"category": "Components_2_0/Grid",
|
|
2758
3793
|
"generation": "2.0",
|
|
2759
|
-
"description": "
|
|
3794
|
+
"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.",
|
|
2760
3795
|
"props": [
|
|
2761
3796
|
{
|
|
2762
|
-
"name": "
|
|
2763
|
-
"type": "
|
|
3797
|
+
"name": "value",
|
|
3798
|
+
"type": "DateValue | null",
|
|
2764
3799
|
"required": false,
|
|
2765
|
-
"
|
|
2766
|
-
"description": "Render the child as the trigger instead of wrapping it in a `<span>`"
|
|
2767
|
-
}
|
|
2768
|
-
],
|
|
2769
|
-
"examples": [],
|
|
2770
|
-
"sourceFile": "components/New/Tooltip/TooltipTrigger.tsx"
|
|
2771
|
-
},
|
|
2772
|
-
{
|
|
2773
|
-
"name": "EllipsisTooltip",
|
|
2774
|
-
"category": "Components_2_0",
|
|
2775
|
-
"generation": "2.0",
|
|
2776
|
-
"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.",
|
|
2777
|
-
"props": [
|
|
2778
|
-
{
|
|
2779
|
-
"name": "text",
|
|
2780
|
-
"type": "ReactNode",
|
|
2781
|
-
"required": true,
|
|
2782
|
-
"description": "The text or node to display, truncated with an ellipsis when it does not fit"
|
|
3800
|
+
"description": "The date to render."
|
|
2783
3801
|
},
|
|
2784
3802
|
{
|
|
2785
|
-
"name": "
|
|
3803
|
+
"name": "locale",
|
|
2786
3804
|
"type": "string",
|
|
2787
3805
|
"required": false,
|
|
2788
|
-
"
|
|
3806
|
+
"defaultValue": "DEFAULT_LOCALE",
|
|
3807
|
+
"description": "Locale used for formatting."
|
|
2789
3808
|
},
|
|
2790
3809
|
{
|
|
2791
|
-
"name": "
|
|
2792
|
-
"type": "
|
|
3810
|
+
"name": "options",
|
|
3811
|
+
"type": "Intl.DateTimeFormatOptions",
|
|
2793
3812
|
"required": false,
|
|
2794
|
-
"
|
|
3813
|
+
"defaultValue": "DEFAULT_DATE_FORMAT_OPTIONS",
|
|
3814
|
+
"description": "`Intl.DateTimeFormat` options, e.g. `timeZone`."
|
|
2795
3815
|
},
|
|
2796
3816
|
{
|
|
2797
|
-
"name": "
|
|
2798
|
-
"type": "
|
|
3817
|
+
"name": "emptyPlaceholder",
|
|
3818
|
+
"type": "string",
|
|
2799
3819
|
"required": false,
|
|
2800
|
-
"
|
|
2801
|
-
"description": "Suppress the tooltip even while the text is truncated"
|
|
3820
|
+
"description": "Rendered when the value carries no usable date."
|
|
2802
3821
|
},
|
|
2803
3822
|
{
|
|
2804
|
-
"name": "
|
|
3823
|
+
"name": "className",
|
|
2805
3824
|
"type": "string",
|
|
2806
3825
|
"required": false,
|
|
2807
|
-
"description": "
|
|
3826
|
+
"description": "Additional CSS classes for the cell."
|
|
2808
3827
|
},
|
|
2809
3828
|
{
|
|
2810
|
-
"name": "
|
|
2811
|
-
"type": "
|
|
3829
|
+
"name": "hideTooltip",
|
|
3830
|
+
"type": "boolean",
|
|
2812
3831
|
"required": false,
|
|
2813
|
-
"
|
|
3832
|
+
"defaultValue": "false",
|
|
3833
|
+
"description": "Suppresses the truncation tooltip."
|
|
2814
3834
|
}
|
|
2815
3835
|
],
|
|
2816
3836
|
"examples": [
|
|
2817
|
-
"
|
|
3837
|
+
"// 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"
|
|
2818
3838
|
],
|
|
2819
|
-
"sourceFile": "components/New/
|
|
3839
|
+
"sourceFile": "components/New/Grid/renderers/DateCellRenderer.tsx"
|
|
2820
3840
|
},
|
|
2821
3841
|
{
|
|
2822
3842
|
"name": "DialCaptionText",
|
|
@@ -3818,7 +4838,8 @@
|
|
|
3818
4838
|
"examples": [
|
|
3819
4839
|
"<DialRadioGroup\n fieldTitle=\"Delivery\"\n elementId=\"delivery\"\n orientation={RadioGroupOrientation.Column}\n activeRadioButton=\"courier\"\n radioButtons={[\n { id: 'pickup', name: 'Pickup', content: <span>Free, ready today</span> },\n { id: 'courier', name: 'Courier', content: <span>Arrives tomorrow</span> },\n ]}\n onChange={(id) => console.log('selected', id)}\n/>"
|
|
3820
4840
|
],
|
|
3821
|
-
"sourceFile": "components/RadioGroup/RadioGroup.tsx"
|
|
4841
|
+
"sourceFile": "components/RadioGroup/RadioGroup.tsx",
|
|
4842
|
+
"supersededBy": "RadioGroup"
|
|
3822
4843
|
},
|
|
3823
4844
|
{
|
|
3824
4845
|
"name": "DialSlider",
|
|
@@ -3912,7 +4933,8 @@
|
|
|
3912
4933
|
"examples": [
|
|
3913
4934
|
"<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/>"
|
|
3914
4935
|
],
|
|
3915
|
-
"sourceFile": "components/Slider/Slider.tsx"
|
|
4936
|
+
"sourceFile": "components/Slider/Slider.tsx",
|
|
4937
|
+
"supersededBy": "Slider"
|
|
3916
4938
|
},
|
|
3917
4939
|
{
|
|
3918
4940
|
"name": "DialNoDataContent",
|
|
@@ -3960,7 +4982,8 @@
|
|
|
3960
4982
|
"examples": [
|
|
3961
4983
|
"<NoDataContent\n emptyDataTitle=\"No results found\"\n icon={<CustomIcon />}\n/>"
|
|
3962
4984
|
],
|
|
3963
|
-
"sourceFile": "components/NoDataContent/NoDataContent.tsx"
|
|
4985
|
+
"sourceFile": "components/NoDataContent/NoDataContent.tsx",
|
|
4986
|
+
"supersededBy": "NoDataContent"
|
|
3964
4987
|
},
|
|
3965
4988
|
{
|
|
3966
4989
|
"name": "DialCollapsibleSidebar",
|
|
@@ -4035,7 +5058,8 @@
|
|
|
4035
5058
|
"examples": [
|
|
4036
5059
|
"<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>"
|
|
4037
5060
|
],
|
|
4038
|
-
"sourceFile": "components/CollapsibleSidebar/CollapsibleSidebar.tsx"
|
|
5061
|
+
"sourceFile": "components/CollapsibleSidebar/CollapsibleSidebar.tsx",
|
|
5062
|
+
"supersededBy": "CollapsibleSidebar"
|
|
4039
5063
|
},
|
|
4040
5064
|
{
|
|
4041
5065
|
"name": "DialLabelledText",
|
|
@@ -4630,7 +5654,8 @@
|
|
|
4630
5654
|
}
|
|
4631
5655
|
],
|
|
4632
5656
|
"examples": [],
|
|
4633
|
-
"sourceFile": "components/ResizableContainer/ResizableContainer.tsx"
|
|
5657
|
+
"sourceFile": "components/ResizableContainer/ResizableContainer.tsx",
|
|
5658
|
+
"supersededBy": "ResizableContainer"
|
|
4634
5659
|
},
|
|
4635
5660
|
{
|
|
4636
5661
|
"name": "DialConditionalResizableContainer",
|
|
@@ -4649,7 +5674,8 @@
|
|
|
4649
5674
|
"examples": [
|
|
4650
5675
|
"<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>"
|
|
4651
5676
|
],
|
|
4652
|
-
"sourceFile": "components/ResizableContainer/ConditionalResizableContainer.tsx"
|
|
5677
|
+
"sourceFile": "components/ResizableContainer/ConditionalResizableContainer.tsx",
|
|
5678
|
+
"supersededBy": "ConditionalResizableContainer"
|
|
4653
5679
|
},
|
|
4654
5680
|
{
|
|
4655
5681
|
"name": "DialGrid",
|
|
@@ -4804,7 +5830,8 @@
|
|
|
4804
5830
|
"examples": [
|
|
4805
5831
|
"// 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/>"
|
|
4806
5832
|
],
|
|
4807
|
-
"sourceFile": "components/Grid/Grid.tsx"
|
|
5833
|
+
"sourceFile": "components/Grid/Grid.tsx",
|
|
5834
|
+
"supersededBy": "Grid"
|
|
4808
5835
|
},
|
|
4809
5836
|
{
|
|
4810
5837
|
"name": "DialDateCellRenderer",
|
|
@@ -4853,7 +5880,8 @@
|
|
|
4853
5880
|
"examples": [
|
|
4854
5881
|
"// 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"
|
|
4855
5882
|
],
|
|
4856
|
-
"sourceFile": "components/Grid/renderers/DateCellRenderer.tsx"
|
|
5883
|
+
"sourceFile": "components/Grid/renderers/DateCellRenderer.tsx",
|
|
5884
|
+
"supersededBy": "DateCellRenderer"
|
|
4857
5885
|
},
|
|
4858
5886
|
{
|
|
4859
5887
|
"name": "DialTabs",
|
|
@@ -5817,7 +6845,8 @@
|
|
|
5817
6845
|
"examples": [
|
|
5818
6846
|
"<DialRadioGroupPopupField\n fieldTitle=\"Status\"\n htmlFor=\"status\"\n header=\"Select status\"\n emptyValueText=\"None\"\n radioButtons={[\n { id: 'draft', name: 'Draft' },\n { id: 'review', name: 'In Review' },\n { id: 'published', name: 'Published' },\n ]}\n selectedValue=\"draft\"\n selectedRadioValue=\"draft\"\n onChangeRadioField={(id) => console.log('radio changed', id)}\n id=\"status-group\"\n isValid={true}\n onApply={() => console.log('applied')}\n/>"
|
|
5819
6847
|
],
|
|
5820
|
-
"sourceFile": "components/RadioGroupPopupField/RadioGroupPopupField.tsx"
|
|
6848
|
+
"sourceFile": "components/RadioGroupPopupField/RadioGroupPopupField.tsx",
|
|
6849
|
+
"supersededBy": "RadioGroupPopupField"
|
|
5821
6850
|
},
|
|
5822
6851
|
{
|
|
5823
6852
|
"name": "DialFormPopup",
|
|
@@ -8543,6 +9572,14 @@
|
|
|
8543
9572
|
"name": "danger?",
|
|
8544
9573
|
"value": "boolean"
|
|
8545
9574
|
},
|
|
9575
|
+
{
|
|
9576
|
+
"name": "selectable?",
|
|
9577
|
+
"value": "boolean"
|
|
9578
|
+
},
|
|
9579
|
+
{
|
|
9580
|
+
"name": "checked?",
|
|
9581
|
+
"value": "boolean"
|
|
9582
|
+
},
|
|
8546
9583
|
{
|
|
8547
9584
|
"name": "type?",
|
|
8548
9585
|
"value": "DropdownItemType"
|
|
@@ -9113,6 +10150,60 @@
|
|
|
9113
10150
|
"sourceFile": "components/New/Calendar/Calendar.tsx",
|
|
9114
10151
|
"typeBody": "Date | string | null"
|
|
9115
10152
|
},
|
|
10153
|
+
{
|
|
10154
|
+
"name": "TextareaResize",
|
|
10155
|
+
"kind": "enum",
|
|
10156
|
+
"members": [
|
|
10157
|
+
{
|
|
10158
|
+
"name": "None",
|
|
10159
|
+
"value": "'none'"
|
|
10160
|
+
},
|
|
10161
|
+
{
|
|
10162
|
+
"name": "Both",
|
|
10163
|
+
"value": "'both'"
|
|
10164
|
+
},
|
|
10165
|
+
{
|
|
10166
|
+
"name": "Horizontal",
|
|
10167
|
+
"value": "'horizontal'"
|
|
10168
|
+
},
|
|
10169
|
+
{
|
|
10170
|
+
"name": "Vertical",
|
|
10171
|
+
"value": "'vertical'"
|
|
10172
|
+
}
|
|
10173
|
+
],
|
|
10174
|
+
"sourceFile": "components/New/Textarea/Textarea.tsx"
|
|
10175
|
+
},
|
|
10176
|
+
{
|
|
10177
|
+
"name": "RadioGroupItem",
|
|
10178
|
+
"kind": "interface",
|
|
10179
|
+
"members": [
|
|
10180
|
+
{
|
|
10181
|
+
"name": "value",
|
|
10182
|
+
"value": "string"
|
|
10183
|
+
},
|
|
10184
|
+
{
|
|
10185
|
+
"name": "label?",
|
|
10186
|
+
"value": "ReactNode"
|
|
10187
|
+
},
|
|
10188
|
+
{
|
|
10189
|
+
"name": "caption?",
|
|
10190
|
+
"value": "string"
|
|
10191
|
+
},
|
|
10192
|
+
{
|
|
10193
|
+
"name": "content?",
|
|
10194
|
+
"value": "ReactNode"
|
|
10195
|
+
},
|
|
10196
|
+
{
|
|
10197
|
+
"name": "disabled?",
|
|
10198
|
+
"value": "boolean"
|
|
10199
|
+
},
|
|
10200
|
+
{
|
|
10201
|
+
"name": "'aria-label'?",
|
|
10202
|
+
"value": "string"
|
|
10203
|
+
}
|
|
10204
|
+
],
|
|
10205
|
+
"sourceFile": "components/New/RadioGroup/RadioGroup.tsx"
|
|
10206
|
+
},
|
|
9116
10207
|
{
|
|
9117
10208
|
"name": "SegmentedControlItem",
|
|
9118
10209
|
"kind": "interface",
|
|
@@ -9164,6 +10255,21 @@
|
|
|
9164
10255
|
"sourceFile": "components/New/Tabs/Tabs.tsx",
|
|
9165
10256
|
"description": "A single tab entry rendered by ."
|
|
9166
10257
|
},
|
|
10258
|
+
{
|
|
10259
|
+
"name": "TagAppearance",
|
|
10260
|
+
"kind": "enum",
|
|
10261
|
+
"members": [
|
|
10262
|
+
{
|
|
10263
|
+
"name": "Outlined",
|
|
10264
|
+
"value": "'outlined'"
|
|
10265
|
+
},
|
|
10266
|
+
{
|
|
10267
|
+
"name": "Selectable",
|
|
10268
|
+
"value": "'selectable'"
|
|
10269
|
+
}
|
|
10270
|
+
],
|
|
10271
|
+
"sourceFile": "types/tag.ts"
|
|
10272
|
+
},
|
|
9167
10273
|
{
|
|
9168
10274
|
"name": "TooltipContainerOptions",
|
|
9169
10275
|
"kind": "interface",
|
|
@@ -9232,7 +10338,7 @@
|
|
|
9232
10338
|
},
|
|
9233
10339
|
{
|
|
9234
10340
|
"name": "convertGridDateToDate",
|
|
9235
|
-
"sourceFile": "
|
|
10341
|
+
"sourceFile": "utils/grid-date.ts"
|
|
9236
10342
|
},
|
|
9237
10343
|
{
|
|
9238
10344
|
"name": "useDialFileManagerTabs",
|
|
@@ -9271,11 +10377,76 @@
|
|
|
9271
10377
|
"description": "Hook to read the File Manager context.\nThrows if used outside of the provider.",
|
|
9272
10378
|
"signature": "() => unknown"
|
|
9273
10379
|
},
|
|
10380
|
+
{
|
|
10381
|
+
"name": "useThemeScope",
|
|
10382
|
+
"sourceFile": "components/New/ThemeScope/ThemeScope.tsx",
|
|
10383
|
+
"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.",
|
|
10384
|
+
"signature": "() => string"
|
|
10385
|
+
},
|
|
9274
10386
|
{
|
|
9275
10387
|
"name": "matchesAccept",
|
|
9276
10388
|
"sourceFile": "utils/file-accept.ts",
|
|
9277
10389
|
"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.",
|
|
9278
10390
|
"signature": "(file: File, accept?: string) => boolean"
|
|
10391
|
+
},
|
|
10392
|
+
{
|
|
10393
|
+
"name": "GRID_SELECTION_COLUMN_ID",
|
|
10394
|
+
"sourceFile": "components/New/Grid/Grid.tsx",
|
|
10395
|
+
"description": "Column id of the selection column this component prepends itself.",
|
|
10396
|
+
"signature": "GRID_SELECTION_COLUMN_ID = 'dial-kit-grid-selection'"
|
|
10397
|
+
},
|
|
10398
|
+
{
|
|
10399
|
+
"name": "DEFAULT_DATE_FORMAT_OPTIONS",
|
|
10400
|
+
"sourceFile": "components/New/Grid/renderers/constants.ts",
|
|
10401
|
+
"signature": "DEFAULT_DATE_FORMAT_OPTIONS: Intl.DateTimeFormatOptions"
|
|
10402
|
+
},
|
|
10403
|
+
{
|
|
10404
|
+
"name": "DEFAULT_DATE_LOCALE",
|
|
10405
|
+
"sourceFile": "components/New/Grid/renderers/constants.ts"
|
|
10406
|
+
},
|
|
10407
|
+
{
|
|
10408
|
+
"name": "GRID_ALIGN_RIGHT_CLASS",
|
|
10409
|
+
"sourceFile": "components/New/Grid/constants.ts",
|
|
10410
|
+
"description": "Right-aligns a column. Applied by the consumer through `cellClass`.",
|
|
10411
|
+
"signature": "GRID_ALIGN_RIGHT_CLASS = 'dial-kit-grid-align-right'"
|
|
10412
|
+
},
|
|
10413
|
+
{
|
|
10414
|
+
"name": "GRID_ROOT_CLASS",
|
|
10415
|
+
"sourceFile": "components/New/Grid/constants.ts",
|
|
10416
|
+
"description": "Root class of the 2.0 grid; every rule in `styles/grid.scss` sits under it.",
|
|
10417
|
+
"signature": "GRID_ROOT_CLASS = 'dial-kit-grid'"
|
|
10418
|
+
},
|
|
10419
|
+
{
|
|
10420
|
+
"name": "GRID_THEME_PARAMS",
|
|
10421
|
+
"sourceFile": "components/New/Grid/constants.ts",
|
|
10422
|
+
"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.",
|
|
10423
|
+
"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}"
|
|
10424
|
+
},
|
|
10425
|
+
{
|
|
10426
|
+
"name": "GRID_ROW_HEIGHT",
|
|
10427
|
+
"sourceFile": "components/New/Grid/constants.ts"
|
|
10428
|
+
},
|
|
10429
|
+
{
|
|
10430
|
+
"name": "DIAL_KIT_ICON_STROKE",
|
|
10431
|
+
"sourceFile": "components/New/constants/icon.ts",
|
|
10432
|
+
"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.",
|
|
10433
|
+
"signature": "DIAL_KIT_ICON_STROKE = 1.5"
|
|
10434
|
+
},
|
|
10435
|
+
{
|
|
10436
|
+
"name": "convertToDate",
|
|
10437
|
+
"sourceFile": "utils/grid-date.ts",
|
|
10438
|
+
"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.",
|
|
10439
|
+
"signature": "(input?: DateValue | null) => Date | null"
|
|
10440
|
+
},
|
|
10441
|
+
{
|
|
10442
|
+
"name": "baseColumnComparator",
|
|
10443
|
+
"sourceFile": "utils/grid-comparators.ts",
|
|
10444
|
+
"signature": "(a: string | number | undefined, b: string | number | undefined, _nodeA?: IRowNode, _nodeB?: IRowNode, isInverted?: boolean) => number"
|
|
10445
|
+
},
|
|
10446
|
+
{
|
|
10447
|
+
"name": "checkColDefsChanges",
|
|
10448
|
+
"sourceFile": "utils/grid-comparators.ts",
|
|
10449
|
+
"signature": "(cols: ColDef[], initialCols: ColDef[]) => unknown"
|
|
9279
10450
|
}
|
|
9280
10451
|
],
|
|
9281
10452
|
"utils": [
|