@epam/ai-dial-ui-kit 0.16.0-dev.6 → 0.16.0-dev.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -11
- package/dist/CHANGELOG.md +110 -0
- package/dist/{DateCellRenderer-ElULb0hY.cjs → DateCellRenderer-BFcpoREG.cjs} +32 -32
- package/dist/MarkdownEditor-5Jq0NTTP.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +3 -28
- package/dist/_virtual/index.js +5 -3
- package/dist/components/Dropdown/constants.js +2 -2
- package/dist/components/IconButton/IconButton.js +7 -7
- package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
- package/dist/components/Loader/Loader.js +8 -8
- package/dist/components/New/Analytics/Bar/Bar.js +104 -0
- package/dist/components/New/Analytics/BarGroup/BarGroup.js +143 -0
- package/dist/components/New/Analytics/Card/Card.js +107 -0
- package/dist/components/New/Analytics/Histogram/Histogram.js +212 -0
- package/dist/components/New/Avatar/Avatar.js +17 -16
- package/dist/components/New/BottomSheet/BottomSheet.js +53 -52
- package/dist/components/New/Breadcrumbs/constants.js +1 -1
- package/dist/components/New/Calendar/Calendar.js +324 -228
- package/dist/components/New/Calendar/TimePickerPanel.js +87 -0
- package/dist/components/New/Calendar/constants.js +27 -25
- package/dist/components/New/CaptionText/CaptionText.js +31 -26
- package/dist/components/New/Checkbox/Checkbox.js +23 -21
- package/dist/components/New/Checkbox/CheckboxBox.js +25 -18
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +49 -44
- package/dist/components/New/Dropdown/Dropdown.js +350 -261
- package/dist/components/New/Dropdown/constants.js +21 -18
- package/dist/components/New/Dropdown/search.js +37 -0
- package/dist/components/New/EntityIdentity/EntityIdentity.js +62 -60
- package/dist/components/New/FileName/FileName.js +38 -37
- package/dist/components/New/FolderPath/FolderPath.js +151 -46
- package/dist/components/New/FormSection/FormSection.js +87 -0
- package/dist/components/New/Grid/Grid.js +187 -174
- package/dist/components/New/Grid/constants.js +9 -8
- package/dist/components/New/Input/Input.js +121 -107
- package/dist/components/New/LabelledText/LabelledText.js +43 -0
- package/dist/components/New/LiveRegion/LiveRegion.js +33 -0
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +40 -28
- package/dist/components/New/MenuItem/MenuItem.js +17 -17
- package/dist/components/New/NoDataContent/NoDataContent.js +22 -27
- package/dist/components/New/NoDataContent/NoDataIllustration.js +53 -0
- package/dist/components/New/Notification/Notification.js +51 -39
- package/dist/components/New/Notification/constants.js +26 -17
- package/dist/components/New/PasswordInput/PasswordInput.js +33 -32
- package/dist/components/New/Popup/constants.js +1 -1
- package/dist/components/New/Radio/Radio.js +19 -17
- package/dist/components/New/ResizeHandle/ResizeHandle.js +147 -0
- package/dist/components/New/SchemaRenderer/components/SchemaField.js +45 -44
- package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +41 -38
- package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +45 -39
- package/dist/components/New/Select/Select.js +205 -202
- package/dist/components/New/Select/constants.js +29 -38
- package/dist/components/New/SelectedEntityCard/SelectedEntityCard.js +86 -0
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
- package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
- package/dist/components/New/StateScreen/StateScreen.js +63 -0
- package/dist/components/New/Steps/Steps.js +86 -0
- package/dist/components/New/Switch/Switch.js +19 -17
- package/dist/components/New/Tabs/Tabs.js +91 -58
- package/dist/components/New/Tag/Tag.js +34 -34
- package/dist/components/New/Tag/constants.js +13 -4
- package/dist/components/New/Textarea/Textarea.js +37 -33
- package/dist/components/New/ToggleChip/ToggleChip.js +54 -0
- package/dist/components/New/ToggleChip/constants.js +11 -0
- package/dist/components/New/TransferQueue/TransferQueue.js +66 -71
- package/dist/components/New/TransferQueue/TransferQueueHeader.js +30 -38
- package/dist/components/New/TransferQueue/TransferQueueRow.js +106 -49
- package/dist/components/ProgressBar/ProgressBar.js +43 -38
- package/dist/components-manifest.json +3712 -6488
- package/dist/constants/public-class-names.js +34 -7
- package/dist/dial-ui-kit.cjs +4 -2
- package/dist/dial-ui-kit.js +387 -467
- package/dist/editors.cjs +1 -1
- package/dist/editors.js +4 -10
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +22 -29
- package/dist/{merge-classes-BEJXjzkx.cjs → icon-4D9xu6E_.cjs} +1 -1
- package/dist/index.css +2 -6
- package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
- package/dist/migration-guides/0.16.0/legacy-analytics-and-steps-removal.md +54 -0
- package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +91 -0
- package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
- package/dist/migration-guides/0.16.0/unused-legacy-components-removal.md +128 -0
- package/dist/migration-guides/README.md +5 -0
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
- package/dist/node_modules/react-dnd/dist/internals/registration.js +5 -13
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/{Analytics → New/Analytics}/Bar/Bar.d.ts +6 -6
- package/dist/src/components/{Analytics → New/Analytics}/Bar/utils.d.ts +1 -1
- package/dist/src/components/{Analytics → New/Analytics}/BarGroup/BarGroup.d.ts +7 -7
- package/dist/src/components/{Analytics → New/Analytics}/Card/Card.d.ts +14 -8
- package/dist/src/components/{Analytics → New/Analytics}/Histogram/Histogram.d.ts +5 -5
- package/dist/src/components/{Analytics → New/Analytics}/Histogram/utils.d.ts +1 -1
- package/dist/src/components/New/Analytics/index.d.ts +11 -0
- package/dist/src/components/New/Avatar/Avatar.d.ts +3 -0
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
- package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
- package/dist/src/components/New/Calendar/Calendar.d.ts +17 -2
- package/dist/src/components/New/Calendar/TimePickerPanel.d.ts +15 -0
- package/dist/src/components/New/Calendar/constants.d.ts +7 -5
- package/dist/src/components/New/CaptionText/CaptionText.d.ts +24 -2
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +95 -1
- package/dist/src/components/New/Dropdown/constants.d.ts +7 -1
- package/dist/src/components/New/Dropdown/search.d.ts +9 -0
- package/dist/src/components/New/EntityIdentity/EntityIdentity.d.ts +6 -2
- package/dist/src/components/New/FileName/FileName.d.ts +11 -0
- package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
- package/dist/src/components/New/FolderPath/FolderPath.d.ts +16 -8
- package/dist/src/components/New/FormSection/FormSection.d.ts +63 -0
- package/dist/src/components/New/Grid/Grid.d.ts +8 -2
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
- package/dist/src/components/New/Grid/constants.d.ts +2 -0
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
- package/dist/src/components/New/LabelledText/LabelledText.d.ts +48 -0
- package/dist/src/components/New/LiveRegion/LiveRegion.d.ts +58 -0
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +6 -0
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +9 -3
- package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
- package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +16 -8
- package/dist/src/components/New/NoDataContent/NoDataIllustration.d.ts +7 -0
- package/dist/src/components/New/Notification/Notification.d.ts +24 -2
- package/dist/src/components/New/Notification/constants.d.ts +11 -0
- package/dist/src/components/New/PasswordInput/PasswordInput.d.ts +6 -0
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/ResizeHandle/ResizeHandle.d.ts +68 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +1 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +2 -0
- package/dist/src/components/New/SchemaRenderer/types.d.ts +3 -1
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/dist/src/components/New/Select/Select.d.ts +2 -0
- package/dist/src/components/New/Select/constants.d.ts +3 -4
- package/dist/src/components/New/SelectedEntityCard/SelectedEntityCard.d.ts +67 -0
- package/dist/src/components/New/StateScreen/StateScreen.d.ts +55 -0
- package/dist/src/components/New/Steps/Steps.d.ts +55 -0
- package/dist/src/components/New/Tabs/Tabs.d.ts +17 -1
- package/dist/src/components/New/Tag/Tag.d.ts +9 -5
- package/dist/src/components/New/Tag/constants.d.ts +12 -4
- package/dist/src/components/New/ToggleChip/ToggleChip.d.ts +70 -0
- package/dist/src/components/New/ToggleChip/constants.d.ts +12 -0
- package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
- package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +9 -5
- package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +1 -3
- package/dist/src/components/ProgressBar/ProgressBar.d.ts +23 -3
- package/dist/src/constants/public-class-names.d.ts +34 -7
- package/dist/src/index.d.ts +36 -82
- package/dist/src/models/step.d.ts +2 -0
- package/dist/src/subpaths/editors.d.ts +9 -15
- package/dist/src/subpaths/grid.d.ts +3 -9
- package/dist/src/types/dropdown.d.ts +16 -0
- package/dist/src/types/editor.d.ts +0 -6
- package/dist/src/types/form-section.d.ts +9 -0
- package/dist/src/types/grid.d.ts +10 -0
- package/dist/src/types/live-region.d.ts +17 -0
- package/dist/src/types/notification.d.ts +11 -0
- package/dist/src/types/progress-bar.d.ts +13 -0
- package/dist/src/types/tab.d.ts +5 -0
- package/dist/src/types/tag.d.ts +3 -1
- package/dist/src/utils/grid-registration.d.ts +6 -8
- package/dist/src/utils/sub-menu-floating.d.ts +1 -1
- package/dist/types/dropdown.js +5 -4
- package/dist/types/form-section.js +4 -0
- package/dist/types/grid.js +3 -2
- package/dist/types/live-region.js +5 -0
- package/dist/types/notification.js +3 -2
- package/dist/types/progress-bar.js +4 -0
- package/dist/types/tab.js +5 -4
- package/dist/types/tag.js +2 -2
- package/dist/utils/merge-classes.js +39 -7
- package/dist/utils/sub-menu-floating.js +8 -8
- package/package.json +12 -26
- package/dist/DateCellRenderer-C7yExfh5.cjs +0 -1
- package/dist/IconButton-DHOFapLo.cjs +0 -1
- package/dist/JsonEditor-Bxui5wJH.cjs +0 -1
- package/dist/MarkdownEditor-BKtFs714.cjs +0 -1
- package/dist/MarkdownEditor-Bapd1ycU.cjs +0 -1
- package/dist/MarkdownEditorContainer-B5aHwoYF.cjs +0 -1
- package/dist/Switch-DE6MrcqJ.cjs +0 -1
- package/dist/_virtual/___vite-browser-external.js +0 -6
- package/dist/_virtual/__vite-browser-external.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -7
- package/dist/assets/icons/add-child.svg.js +0 -5
- package/dist/assets/icons/add-sibling.svg.js +0 -5
- package/dist/assets/icons/copy-to.svg.js +0 -5
- package/dist/assets/icons/file/c.svg.js +0 -5
- package/dist/assets/icons/file/cpp.svg.js +0 -5
- package/dist/assets/icons/file/cs.svg.js +0 -5
- package/dist/assets/icons/file/ini.svg.js +0 -5
- package/dist/assets/icons/file/json.svg.js +0 -5
- package/dist/assets/icons/file/md.svg.js +0 -5
- package/dist/assets/icons/file/py.svg.js +0 -5
- package/dist/assets/icons/move-to.svg.js +0 -5
- package/dist/assets/icons/no-data.svg.js +0 -5
- package/dist/assets/icons/open-popup.svg.js +0 -5
- package/dist/assets/icons/unshare.svg.js +0 -5
- package/dist/components/Analytics/Bar/Bar.js +0 -80
- package/dist/components/Analytics/BarGroup/BarGroup.js +0 -142
- package/dist/components/Analytics/Card/Card.js +0 -87
- package/dist/components/Analytics/ErrorTag/ErrorTag.js +0 -19
- package/dist/components/Analytics/Histogram/Histogram.js +0 -200
- package/dist/components/AutocompleteInput/AutocompleteInputValue.js +0 -21
- package/dist/components/ButtonDropdown/ButtonDropdown.js +0 -33
- package/dist/components/ButtonDropdown/constants.js +0 -8
- package/dist/components/Checkbox/Checkbox.js +0 -64
- package/dist/components/Checkbox/constants.js +0 -4
- package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +0 -84
- package/dist/components/ConfirmationPopup/ConfirmationPopup.js +0 -75
- package/dist/components/ConfirmationPopup/constants.js +0 -32
- package/dist/components/DraggableItem/DraggableItem.js +0 -61
- package/dist/components/DraggableItem/constants.js +0 -6
- package/dist/components/DropdownIcon/DropdownIcon.js +0 -103
- package/dist/components/FileIcon/FileIcon.js +0 -37
- package/dist/components/FileIcon/constants.js +0 -60
- package/dist/components/FileManager/FileManager.js +0 -888
- package/dist/components/FileManager/FileManagerContext.js +0 -5
- package/dist/components/FileManager/FileManagerProvider.js +0 -772
- package/dist/components/FileManager/FileManagerTooltip.js +0 -92
- package/dist/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.js +0 -293
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +0 -201
- package/dist/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.js +0 -52
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.js +0 -103
- package/dist/components/FileManager/components/FileManagerBulkActionsToolbar/constants.js +0 -5
- package/dist/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.js +0 -56
- package/dist/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.js +0 -69
- package/dist/components/FileManager/components/FileManagerItemName/FileManagerItemName.js +0 -100
- package/dist/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.js +0 -93
- package/dist/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.js +0 -165
- package/dist/components/FileManager/components/FileManagerNavigationPanel/constants.js +0 -6
- package/dist/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.js +0 -120
- package/dist/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.js +0 -119
- package/dist/components/FileManager/components/FileMetadataPopup/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/FoldersTree.js +0 -180
- package/dist/components/FileManager/components/FoldersTree/constants.js +0 -9
- package/dist/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.js +0 -51
- package/dist/components/FileManager/constants.js +0 -28
- package/dist/components/FileManager/errors.js +0 -10
- package/dist/components/FileManager/hooks/use-bulk-actions.js +0 -143
- package/dist/components/FileManager/hooks/use-collapse-tree.js +0 -22
- package/dist/components/FileManager/hooks/use-conflict-resolution.js +0 -158
- package/dist/components/FileManager/hooks/use-current-path.js +0 -29
- package/dist/components/FileManager/hooks/use-file-clipboard.js +0 -154
- package/dist/components/FileManager/hooks/use-file-delete.js +0 -39
- package/dist/components/FileManager/hooks/use-file-download.js +0 -16
- package/dist/components/FileManager/hooks/use-file-manager-columns.js +0 -106
- package/dist/components/FileManager/hooks/use-file-manager-context.js +0 -13
- package/dist/components/FileManager/hooks/use-file-manager-tabs.js +0 -23
- package/dist/components/FileManager/hooks/use-file-metadata.js +0 -20
- package/dist/components/FileManager/hooks/use-file-search.js +0 -90
- package/dist/components/FileManager/hooks/use-file-upload.js +0 -338
- package/dist/components/FileManager/hooks/use-folder-creation.js +0 -151
- package/dist/components/FileManager/hooks/use-grid-actions-column.js +0 -65
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +0 -188
- package/dist/components/FileManager/hooks/use-item-renaming.js +0 -124
- package/dist/components/FileManager/hooks/use-new-actions.js +0 -67
- package/dist/components/FileManager/hooks/use-paths-selection.js +0 -28
- package/dist/components/FileManager/hooks/use-show-hidden-files.js +0 -20
- package/dist/components/FileManager/hooks/use-tree-additional-buttons.js +0 -39
- package/dist/components/FileManager/hooks/use-trigger-view-create-folder.js +0 -42
- package/dist/components/FileManager/hooks/use-trigger-view-rename.js +0 -25
- package/dist/components/FileManager/utils.js +0 -129
- package/dist/components/FileName/FileName.js +0 -68
- package/dist/components/FolderName/FolderName.js +0 -57
- package/dist/components/FormItem/FormItem.js +0 -90
- package/dist/components/FormItem/constants.js +0 -9
- package/dist/components/FormPopup/FormPopup.js +0 -59
- package/dist/components/FormPopup/constants.js +0 -6
- package/dist/components/Grid/Grid.js +0 -333
- package/dist/components/Grid/constants.js +0 -33
- package/dist/components/Grid/renderers/DateCellRenderer.js +0 -27
- package/dist/components/Grid/renderers/constants.js +0 -25
- package/dist/components/InputPopup/InputPopup.js +0 -174
- package/dist/components/JsonEditor/JsonEditor.js +0 -65
- package/dist/components/JsonEditor/lazy.js +0 -4
- package/dist/components/MarkdownEditor/MarkdownEditor.js +0 -39
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +0 -82
- package/dist/components/MarkdownEditor/lazy.js +0 -4
- package/dist/components/Notification/Notification.js +0 -67
- package/dist/components/Notification/constants.js +0 -24
- package/dist/components/NumberInput/NumberInput.js +0 -41
- package/dist/components/Pagination/Pagination.js +0 -80
- package/dist/components/Pagination/utils.js +0 -10
- package/dist/components/PasswordInput/Icons/HideIcon.js +0 -16
- package/dist/components/PasswordInput/Icons/ShowIcon.js +0 -16
- package/dist/components/PasswordInput/PasswordInput.js +0 -21
- package/dist/components/Popup/Popup.js +0 -110
- package/dist/components/Popup/constants.js +0 -12
- package/dist/components/RadioButton/RadioButton.js +0 -103
- package/dist/components/RadioGroup/RadioGroup.js +0 -92
- package/dist/components/RadioGroup/constants.js +0 -10
- package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +0 -101
- package/dist/components/ResizableContainer/ConditionalResizableContainer.js +0 -6
- package/dist/components/ResizableContainer/ResizableContainer.js +0 -79
- package/dist/components/ResizableContainer/components/ResizeHandle.js +0 -20
- package/dist/components/ResizableContainer/components/ResizeIcon.js +0 -11
- package/dist/components/SchemaRenderer/SchemaRenderer.js +0 -151
- package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +0 -56
- package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +0 -74
- package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +0 -118
- package/dist/components/SchemaRenderer/components/SchemaField.js +0 -78
- package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +0 -114
- package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +0 -272
- package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +0 -36
- package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +0 -192
- package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +0 -161
- package/dist/components/SchemaRenderer/components/SchemaSection.js +0 -81
- package/dist/components/SchemaRenderer/context.js +0 -12
- package/dist/components/Search/Search.js +0 -63
- package/dist/components/Search/constants.js +0 -27
- package/dist/components/SegmentedControl/SegmentedControl.js +0 -87
- package/dist/components/SegmentedControl/constants.js +0 -8
- package/dist/components/Select/MultiSelectTags.js +0 -23
- package/dist/components/Select/Select.js +0 -435
- package/dist/components/Select/SelectSubMenuItem.js +0 -90
- package/dist/components/Select/constants.js +0 -15
- package/dist/components/SelectField/SelectField.js +0 -66
- package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +0 -34
- package/dist/components/Slider/Slider.js +0 -158
- package/dist/components/Steps/Step.js +0 -34
- package/dist/components/Steps/Steps.js +0 -27
- package/dist/components/Steps/utils.js +0 -42
- package/dist/components/Switch/Switch.js +0 -70
- package/dist/components/TagInput/TagInput.js +0 -179
- package/dist/components/Textarea/Textarea.js +0 -43
- package/dist/constants/editor.js +0 -52
- package/dist/constants/file-grid-columns.js +0 -176
- package/dist/file-manager.cjs +0 -1
- package/dist/file-manager.js +0 -22
- package/dist/hooks/use-flexible-actions.js +0 -72
- package/dist/hooks/use-width-breakpoint.js +0 -15
- package/dist/icon-CrGVkVpG.cjs +0 -1
- package/dist/icon-DhjrDQ8I.cjs +0 -1
- package/dist/lazy-_W6FYhKg.cjs +0 -1
- package/dist/node_modules/mime-db/db.json.js +0 -2527
- package/dist/node_modules/mime-db/index.js +0 -8
- package/dist/node_modules/mime-types/index.js +0 -70
- package/dist/node_modules/mime-types/mimeScore.js +0 -38
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +0 -25
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +0 -21
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +0 -20
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +0 -19
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +0 -22
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +0 -15
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +0 -13
- package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +0 -23
- package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +0 -88
- package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +0 -87
- package/dist/src/__mocks__/monaco-editor.d.ts +0 -13
- package/dist/src/components/Analytics/Bar/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/ErrorTag/ErrorTag.d.ts +0 -22
- package/dist/src/components/Analytics/Histogram/utils.spec.d.ts +0 -1
- package/dist/src/components/Analytics/index.d.ts +0 -13
- package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +0 -34
- package/dist/src/components/Button/ButtonWrappers.test.d.ts +0 -1
- package/dist/src/components/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/ButtonDropdown/ButtonDropdown.d.ts +0 -24
- package/dist/src/components/ButtonDropdown/constants.d.ts +0 -2
- package/dist/src/components/Checkbox/Checkbox.d.ts +0 -36
- package/dist/src/components/Checkbox/constants.d.ts +0 -1
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +0 -46
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +0 -55
- package/dist/src/components/ConfirmationPopup/constants.d.ts +0 -18
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +0 -33
- package/dist/src/components/DraggableItem/constants.d.ts +0 -3
- package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +0 -38
- package/dist/src/components/FileIcon/FileIcon.d.ts +0 -33
- package/dist/src/components/FileIcon/constants.d.ts +0 -9
- package/dist/src/components/FileManager/FileManager.d.ts +0 -326
- package/dist/src/components/FileManager/FileManagerContext.d.ts +0 -181
- package/dist/src/components/FileManager/FileManagerProvider.d.ts +0 -21
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +0 -12
- package/dist/src/components/FileManager/__mocks__/files.d.ts +0 -3
- package/dist/src/components/FileManager/components/ConflictResolutionPopup/ConflictResolutionPopup.d.ts +0 -90
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +0 -73
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.d.ts +0 -63
- package/dist/src/components/FileManager/components/DialFileManagerItemSummaryCell/DialFileManagerItemSummaryCell.test.d.ts +0 -1
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/FileManagerBulkActionsToolbar.d.ts +0 -56
- package/dist/src/components/FileManager/components/FileManagerBulkActionsToolbar/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +0 -26
- package/dist/src/components/FileManager/components/FileManagerItemIcon/FileManagerItemIcon.d.ts +0 -51
- package/dist/src/components/FileManager/components/FileManagerItemName/FileManagerItemName.d.ts +0 -57
- package/dist/src/components/FileManager/components/FileManagerItemNameInput/FileManagerItemNameInput.d.ts +0 -71
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/FileManagerNavigationPanel.d.ts +0 -64
- package/dist/src/components/FileManager/components/FileManagerNavigationPanel/constants.d.ts +0 -3
- package/dist/src/components/FileManager/components/FileManagerToolbar/DialFileManagerToolbar.d.ts +0 -76
- package/dist/src/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.d.ts +0 -50
- package/dist/src/components/FileManager/components/FileMetadataPopup/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +0 -135
- package/dist/src/components/FileManager/components/FoldersTree/constants.d.ts +0 -6
- package/dist/src/components/FileManager/components/FoldersTree/hooks/use-expanded-paths.d.ts +0 -13
- package/dist/src/components/FileManager/constants.d.ts +0 -21
- package/dist/src/components/FileManager/errors.d.ts +0 -6
- package/dist/src/components/FileManager/hooks/__tests__/use-conflict-resolution.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-current-path.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-clipboard.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-delete.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-download.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-file-upload.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-show-hidden-files.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/__tests__/use-trigger-view-rename.spec.d.ts +0 -1
- package/dist/src/components/FileManager/hooks/use-bulk-actions.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-collapse-tree.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-conflict-resolution.d.ts +0 -27
- package/dist/src/components/FileManager/hooks/use-current-path.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-clipboard.d.ts +0 -37
- package/dist/src/components/FileManager/hooks/use-file-delete.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-file-download.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-file-manager-columns.d.ts +0 -43
- package/dist/src/components/FileManager/hooks/use-file-manager-context.d.ts +0 -7
- package/dist/src/components/FileManager/hooks/use-file-manager-tabs.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-metadata.d.ts +0 -10
- package/dist/src/components/FileManager/hooks/use-file-search.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-file-upload.d.ts +0 -64
- package/dist/src/components/FileManager/hooks/use-folder-creation.d.ts +0 -30
- package/dist/src/components/FileManager/hooks/use-grid-actions-column.d.ts +0 -15
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +0 -44
- package/dist/src/components/FileManager/hooks/use-item-renaming.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-new-actions.d.ts +0 -23
- package/dist/src/components/FileManager/hooks/use-paths-selection.d.ts +0 -13
- package/dist/src/components/FileManager/hooks/use-show-hidden-files.d.ts +0 -9
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +0 -22
- package/dist/src/components/FileManager/hooks/use-trigger-view-create-folder.d.ts +0 -26
- package/dist/src/components/FileManager/hooks/use-trigger-view-rename.d.ts +0 -20
- package/dist/src/components/FileManager/utils.d.ts +0 -69
- package/dist/src/components/FileManager/utils.spec.d.ts +0 -1
- package/dist/src/components/FileName/FileName.d.ts +0 -49
- package/dist/src/components/FolderName/FolderName.d.ts +0 -37
- package/dist/src/components/FormItem/FormItem.d.ts +0 -66
- package/dist/src/components/FormItem/constants.d.ts +0 -3
- package/dist/src/components/FormPopup/FormPopup.d.ts +0 -46
- package/dist/src/components/FormPopup/constants.d.ts +0 -3
- package/dist/src/components/Grid/Grid.d.ts +0 -120
- package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +0 -1
- package/dist/src/components/Grid/comparators/base-column-comparator.spec.d.ts +0 -1
- package/dist/src/components/Grid/constants.d.ts +0 -28
- package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +0 -34
- package/dist/src/components/Grid/renderers/constants.d.ts +0 -7
- package/dist/src/components/Grid/renderers/utils.d.ts +0 -1
- package/dist/src/components/Grid/renderers/utils.spec.d.ts +0 -1
- package/dist/src/components/InputPopup/InputPopup.d.ts +0 -61
- package/dist/src/components/JsonEditor/JsonEditor.d.ts +0 -25
- package/dist/src/components/JsonEditor/lazy.d.ts +0 -14
- package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +0 -38
- package/dist/src/components/MarkdownEditor/MarkdownEditorContainer.d.ts +0 -51
- package/dist/src/components/MarkdownEditor/lazy.d.ts +0 -7
- package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Button/__tests__/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Calendar/utils.spec.d.ts +0 -1
- package/dist/src/components/New/Slider/utils.spec.d.ts +0 -1
- package/dist/src/components/New/TagInput/utils.spec.d.ts +0 -1
- package/dist/src/components/Notification/Notification.d.ts +0 -58
- package/dist/src/components/Notification/constants.d.ts +0 -8
- package/dist/src/components/NumberInput/NumberInput.d.ts +0 -34
- package/dist/src/components/Pagination/Pagination.d.ts +0 -11
- package/dist/src/components/Pagination/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Pagination/utils.d.ts +0 -9
- package/dist/src/components/PasswordInput/Icons/HideIcon.d.ts +0 -16
- package/dist/src/components/PasswordInput/Icons/ShowIcon.d.ts +0 -16
- package/dist/src/components/PasswordInput/PasswordInput.d.ts +0 -26
- package/dist/src/components/Popup/Popup.d.ts +0 -64
- package/dist/src/components/Popup/constants.d.ts +0 -5
- package/dist/src/components/RadioButton/RadioButton.d.ts +0 -54
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +0 -66
- package/dist/src/components/RadioGroup/constants.d.ts +0 -5
- package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +0 -74
- package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +0 -35
- package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +0 -72
- package/dist/src/components/ResizableContainer/components/ResizeHandle.d.ts +0 -10
- package/dist/src/components/ResizableContainer/components/ResizeIcon.d.ts +0 -8
- package/dist/src/components/SchemaRenderer/SchemaRenderer.d.ts +0 -30
- package/dist/src/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.d.ts +0 -20
- package/dist/src/components/SchemaRenderer/components/SchemaAnyOfEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaArrayEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaField.d.ts +0 -29
- package/dist/src/components/SchemaRenderer/components/SchemaFieldContent.d.ts +0 -25
- package/dist/src/components/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +0 -33
- package/dist/src/components/SchemaRenderer/components/SchemaObjectEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaOneOfEditor.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaPrimitiveField.d.ts +0 -31
- package/dist/src/components/SchemaRenderer/components/SchemaSection.d.ts +0 -33
- package/dist/src/components/SchemaRenderer/context.d.ts +0 -19
- package/dist/src/components/SchemaRenderer/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/SchemaRenderer/types.d.ts +0 -62
- package/dist/src/components/SchemaRenderer/utils.d.ts +0 -1
- package/dist/src/components/Search/Search.d.ts +0 -35
- package/dist/src/components/Search/constants.d.ts +0 -8
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +0 -40
- package/dist/src/components/SegmentedControl/constants.d.ts +0 -5
- package/dist/src/components/Select/MultiSelectTags.d.ts +0 -8
- package/dist/src/components/Select/Select.d.ts +0 -100
- package/dist/src/components/Select/SelectSubMenuItem.d.ts +0 -8
- package/dist/src/components/Select/constants.d.ts +0 -9
- package/dist/src/components/SelectField/SelectField.d.ts +0 -42
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +0 -31
- package/dist/src/components/Slider/Slider.d.ts +0 -57
- package/dist/src/components/Steps/Step.d.ts +0 -9
- package/dist/src/components/Steps/Steps.d.ts +0 -26
- package/dist/src/components/Steps/tests/Steps.test.d.ts +0 -1
- package/dist/src/components/Steps/tests/utils.spec.d.ts +0 -1
- package/dist/src/components/Steps/utils.d.ts +0 -3
- package/dist/src/components/Switch/Switch.d.ts +0 -34
- package/dist/src/components/TagInput/TagInput.d.ts +0 -52
- package/dist/src/components/Textarea/Textarea.d.ts +0 -39
- package/dist/src/constants/editor.d.ts +0 -2
- package/dist/src/constants/file-grid-columns.d.ts +0 -4
- package/dist/src/constants/storybook/form-item.d.ts +0 -3
- package/dist/src/models/file-manager.d.ts +0 -19
- package/dist/src/models/segmented-control.d.ts +0 -7
- package/dist/src/subpaths/file-manager.d.ts +0 -21
- package/dist/src/types/file-manager.d.ts +0 -59
- package/dist/src/types/form-item.d.ts +0 -31
- package/dist/src/types/select.d.ts +0 -8
- package/dist/src/utils/__tests__/accessible-name.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/avatar.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/file-accept.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/merge-classes.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/path.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/pointer.spec.d.ts +0 -1
- package/dist/src/utils/__tests__/timezone.spec.d.ts +0 -1
- package/dist/src/utils/grid-registration.spec.d.ts +0 -1
- package/dist/types/file-manager.js +0 -12
- package/dist/types/form-item.js +0 -4
- package/dist/types/select.js +0 -5
- package/dist/use-file-manager-tabs-Bgh8mfOJ.cjs +0 -3
- package/dist/utils/path.js +0 -4
- /package/dist/components/{Analytics → New/Analytics}/Bar/utils.js +0 -0
- /package/dist/components/{Analytics → New/Analytics}/Histogram/utils.js +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { JsonSchemaDef } from '../types';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
export interface SchemaObjectEditorProps {
|
|
4
|
-
schema: JsonSchemaDef;
|
|
5
|
-
value: unknown;
|
|
6
|
-
onChange: (value: unknown) => void;
|
|
7
|
-
path: string[];
|
|
8
|
-
level: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders the properties of a JSON Schema object as labeled form fields.
|
|
12
|
-
* aliases: ObjectSchemaEditor|SchemaPropertiesEditor
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* <SchemaObjectEditor
|
|
17
|
-
* schema={{ type: 'object', properties: { name: { type: 'string' } } }}
|
|
18
|
-
* value={{ name: 'Alice' }}
|
|
19
|
-
* onChange={(v) => console.log(v)}
|
|
20
|
-
* path={['config']}
|
|
21
|
-
* level={1}
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @param schema - The JSON Schema object definition
|
|
26
|
-
* @param value - Current object value
|
|
27
|
-
* @param onChange - Called with the updated object when any property changes
|
|
28
|
-
* @param path - Field path segments used for validation error tracking
|
|
29
|
-
* @param level - Nesting depth passed to child SchemaField instances
|
|
30
|
-
*/
|
|
31
|
-
export declare const SchemaObjectEditor: FC<SchemaObjectEditorProps>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { JsonSchemaDef } from '../types';
|
|
3
|
-
export interface SchemaOneOfEditorProps {
|
|
4
|
-
schema: JsonSchemaDef;
|
|
5
|
-
value: unknown;
|
|
6
|
-
onChange: (value: unknown) => void;
|
|
7
|
-
path: string[];
|
|
8
|
-
level: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders a `oneOf` schema field as a type-selector dropdown with an inline sub-editor.
|
|
12
|
-
* aliases: OneOfSchemaEditor|SchemaDiscriminatorEditor
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* <SchemaOneOfEditor
|
|
17
|
-
* schema={{ oneOf: [...], discriminator: { propertyName: 'type', mapping: {...} } }}
|
|
18
|
-
* value={{ type: 'foo' }}
|
|
19
|
-
* onChange={(v) => console.log(v)}
|
|
20
|
-
* path={['config']}
|
|
21
|
-
* level={1}
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @param schema - The JSON Schema definition containing a `oneOf` array and optional `discriminator`
|
|
26
|
-
* @param value - Current field value
|
|
27
|
-
* @param onChange - Called with the new value when the selected type or sub-value changes
|
|
28
|
-
* @param path - Field path segments used for validation error tracking
|
|
29
|
-
* @param level - Nesting depth passed to child editor components
|
|
30
|
-
*/
|
|
31
|
-
export declare const SchemaOneOfEditor: FC<SchemaOneOfEditorProps>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { JsonSchemaDef } from '../types';
|
|
3
|
-
export interface SchemaPrimitiveFieldProps {
|
|
4
|
-
schema: JsonSchemaDef;
|
|
5
|
-
value: unknown;
|
|
6
|
-
onChange: (value: unknown) => void;
|
|
7
|
-
invalid?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Renders a single primitive schema field: string, integer, number, boolean, enum, or const.
|
|
11
|
-
* - `isProtected: true` → masked password input
|
|
12
|
-
* - `enum` + `enumDisplay: 'radio'` → radio buttons (`enumOrientation: 'row'` lays them horizontally)
|
|
13
|
-
* - `enum` without `enumDisplay` → select dropdown
|
|
14
|
-
* - `const` → disabled read-only input
|
|
15
|
-
* aliases: SchemaInputField|PrimitiveSchemaField
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <SchemaPrimitiveField
|
|
20
|
-
* schema={{ type: 'string', enum: ['a', 'b'], enumDisplay: 'radio', enumOrientation: 'row' }}
|
|
21
|
-
* value="a"
|
|
22
|
-
* onChange={(v) => console.log(v)}
|
|
23
|
-
* />
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param schema - The resolved JSON Schema definition; supports `isProtected`, `enumDisplay`, `enumOrientation`
|
|
27
|
-
* @param value - Current field value
|
|
28
|
-
* @param onChange - Called with the new value when the field changes
|
|
29
|
-
* @param [invalid] - Whether the field has a validation error (applies error styling)
|
|
30
|
-
*/
|
|
31
|
-
export declare const SchemaPrimitiveField: FC<SchemaPrimitiveFieldProps>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface SchemaSectionProps {
|
|
3
|
-
title: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
summary?: string;
|
|
6
|
-
errorCount?: number;
|
|
7
|
-
level?: number;
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
onRemove?: () => void;
|
|
10
|
-
defaultExpanded?: boolean;
|
|
11
|
-
removeItemAriaLabel?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A collapsible section card used to wrap schema property groups.
|
|
15
|
-
* aliases: CollapsibleSchemaSection|SchemaCard
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <SchemaSection title="Settings" level={0} summary="3/4 fields" errorCount={1}>
|
|
20
|
-
* <p>Content</p>
|
|
21
|
-
* </SchemaSection>
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @param title - Section header title
|
|
25
|
-
* @param [description] - Optional description shown in collapsed state
|
|
26
|
-
* @param [summary] - Short summary text shown in the header (e.g. "3/4 fields", "2 items")
|
|
27
|
-
* @param [errorCount=0] - Number of validation errors; shows error badge when > 0
|
|
28
|
-
* @param [level=0] - Nesting depth; 0 = top-level card style, 1+ = nested style
|
|
29
|
-
* @param [children] - Section body content rendered when expanded
|
|
30
|
-
* @param [onRemove] - If provided, shows a remove button in the section header
|
|
31
|
-
* @param [defaultExpanded=true] - Whether the section starts in the expanded state
|
|
32
|
-
*/
|
|
33
|
-
export declare const SchemaSection: FC<SchemaSectionProps>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { JsonSchema, JsonSchemaDef, SchemaRendererTexts } from './types';
|
|
3
|
-
import { EditorThemes } from '../../types/editor';
|
|
4
|
-
interface SchemaRendererContextValue {
|
|
5
|
-
rootSchema: JsonSchema;
|
|
6
|
-
texts: SchemaRendererTexts;
|
|
7
|
-
readonly?: boolean;
|
|
8
|
-
defaultExpanded?: boolean;
|
|
9
|
-
inputClassName?: string;
|
|
10
|
-
jsonEditorTheme?: EditorThemes;
|
|
11
|
-
acceptableResourceTypes?: Record<string, unknown>;
|
|
12
|
-
renderField?: (path: string[], schema: JsonSchemaDef, defaultElement: React.ReactElement) => React.ReactNode;
|
|
13
|
-
touchedPaths?: ReadonlySet<string>;
|
|
14
|
-
markTouched?: (path: string) => void;
|
|
15
|
-
skipUntouched?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const SchemaRendererContext: React.Context<SchemaRendererContextValue | null>;
|
|
18
|
-
export declare function useSchemaContext(): SchemaRendererContextValue;
|
|
19
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { EditorThemes } from '../../types/editor';
|
|
3
|
-
import { SchemaRendererVariant } from '../../types/json-schema';
|
|
4
|
-
import { JsonSchema, JsonSchemaDef, SchemaRendererTexts } from '../../models/json-schema';
|
|
5
|
-
export { SchemaRendererVariant, SchemaDisplayMode, SchemaOrientation, JsonSchemaType, } from '../../types/json-schema';
|
|
6
|
-
export type { DialMeta, JsonSchemaDef, JsonSchema, ValidationError, SchemaRendererTexts, } from '../../models/json-schema';
|
|
7
|
-
export { DEFAULT_SCHEMA_TEXTS } from '../../constants/schema-renderer';
|
|
8
|
-
export interface DialSchemaRendererProps {
|
|
9
|
-
schema: JsonSchema;
|
|
10
|
-
defaultValue?: Record<string, unknown>;
|
|
11
|
-
texts?: Partial<SchemaRendererTexts>;
|
|
12
|
-
className?: string;
|
|
13
|
-
readonly?: boolean;
|
|
14
|
-
defaultExpanded?: boolean;
|
|
15
|
-
inputClassName?: string;
|
|
16
|
-
/**
|
|
17
|
-
* `'sections'` (default) — every top-level property is a collapsible SchemaSection card.
|
|
18
|
-
* `'flat'` — primitive top-level properties render as plain DialFormItem fields; object/array
|
|
19
|
-
* properties still use collapsible sections.
|
|
20
|
-
*/
|
|
21
|
-
variant?: SchemaRendererVariant;
|
|
22
|
-
/**
|
|
23
|
-
* When `true`, required-field errors are only shown after the user has interacted
|
|
24
|
-
* with a field. When `false` (default), all unfilled required fields are highlighted immediately.
|
|
25
|
-
*/
|
|
26
|
-
skipUntouched?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Theme applied to the JSON editor shown for value keys that are not declared in the
|
|
29
|
-
* schema's `properties`. Defaults to `EditorThemes.dark`.
|
|
30
|
-
*/
|
|
31
|
-
jsonEditorTheme?: EditorThemes;
|
|
32
|
-
/**
|
|
33
|
-
* Live resource options for schema properties flagged with `dial:resource: true`.
|
|
34
|
-
* Keyed by the resource type name referenced in a property's `acceptableResourceTypes`
|
|
35
|
-
* array; each value provides the selectable entries for that resource type (a string
|
|
36
|
-
* array for string-typed properties).
|
|
37
|
-
*/
|
|
38
|
-
acceptableResourceTypes?: Record<string, unknown>;
|
|
39
|
-
onChange?: (value: Record<string, unknown>) => void;
|
|
40
|
-
onPropertyChange?: (path: string, value: unknown) => void;
|
|
41
|
-
onDefaultValues?: (value: Record<string, unknown>) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Override the rendered element for any field by path.
|
|
44
|
-
* Return `defaultElement` to fall back to the built-in renderer.
|
|
45
|
-
* @param path - Array of schema property keys leading to this field (e.g. ['connection', 'token'])
|
|
46
|
-
* @param schema - The resolved JSON Schema definition for this field
|
|
47
|
-
* @param defaultElement - The element that would be rendered without customization
|
|
48
|
-
*/
|
|
49
|
-
renderField?: (path: string[], schema: JsonSchemaDef, defaultElement: React.ReactElement) => React.ReactNode;
|
|
50
|
-
}
|
|
51
|
-
export interface SchemaFieldContentProps {
|
|
52
|
-
schema: JsonSchemaDef;
|
|
53
|
-
value: unknown;
|
|
54
|
-
onChange: (value: unknown) => void;
|
|
55
|
-
path: string[];
|
|
56
|
-
level: number;
|
|
57
|
-
required?: boolean;
|
|
58
|
-
suppressInlineError?: boolean;
|
|
59
|
-
}
|
|
60
|
-
export interface SchemaFieldProps extends SchemaFieldContentProps {
|
|
61
|
-
label?: string;
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../utils/json-schema';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ElementSize } from '../../types/size';
|
|
3
|
-
import { DialInputProps } from '../Input/Input';
|
|
4
|
-
export interface DialSearchProps extends Omit<DialInputProps, 'type' | 'size' | 'inputButtonProps' | 'labelProps' | 'iconBefore' | 'iconAfter' | 'prefix' | 'postfix' | 'onChange'> {
|
|
5
|
-
withoutBorder?: boolean;
|
|
6
|
-
size?: ElementSize;
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A search input component with a customizable placeholder, icons, flexible props, and the ability
|
|
11
|
-
* aliases: SearchField|QueryInput
|
|
12
|
-
* Design system 1.0
|
|
13
|
-
*
|
|
14
|
-
* to clear the input value via a clear button. Supports multiple sizes for flexible layouts.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <DialSearch
|
|
19
|
-
* id="search"
|
|
20
|
-
* value={query}
|
|
21
|
-
* placeholder="Search"
|
|
22
|
-
* size={ElementSize.Small}
|
|
23
|
-
* onChange={(value) => setQuery(value)}
|
|
24
|
-
* onBlur={() => handleBlur()}
|
|
25
|
-
* disabled={false}
|
|
26
|
-
* />
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* Extends the `DialInput` component, inheriting all of its props except for those that are overridden
|
|
30
|
-
* (like `iconBefore`, `iconAfter`, and `inputButtonProps` which are managed internally). The `size`
|
|
31
|
-
* prop allows you to choose between predefined size configurations that adjust the input's appearance
|
|
32
|
-
* @param [size=ElementSize.Standard] - The size of the search input. Uses the {@link ElementSize} enum.
|
|
33
|
-
* @param [withoutBorder] - If true, the search input will be rendered without a border.
|
|
34
|
-
*/
|
|
35
|
-
export declare const DialSearch: FC<DialSearchProps>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { SegmentedControlOption } from '../../models/segmented-control';
|
|
2
|
-
export interface DialSegmentedControlProps<T extends string> {
|
|
3
|
-
options: SegmentedControlOption<T>[];
|
|
4
|
-
value: T;
|
|
5
|
-
onChange: (value: T) => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
ariaLabel?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A single-select control for switching between a small set of mutually exclusive,
|
|
12
|
-
* equally-sized options (e.g. view switchers).
|
|
13
|
-
* aliases: SegmentedButton|ViewSwitcher
|
|
14
|
-
* Design system 1.0
|
|
15
|
-
*
|
|
16
|
-
* Renders a horizontal group of segments where every option is always visible and
|
|
17
|
-
* equally sized. Supports 2 or more segments, optional per-option icons, and
|
|
18
|
-
* keyboard navigation (Arrow keys, Home, End).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* <DialSegmentedControl
|
|
23
|
-
* ariaLabel="View"
|
|
24
|
-
* value={view}
|
|
25
|
-
* onChange={setView}
|
|
26
|
-
* options={[
|
|
27
|
-
* { value: 'list', label: 'List' },
|
|
28
|
-
* { value: 'grid', label: 'Grid' },
|
|
29
|
-
* ]}
|
|
30
|
-
* />
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @param options - Segments to render. Each option needs a unique `value` and may include a `label`, `icon`, and `disabled` flag.
|
|
34
|
-
* @param value - The currently selected option `value`.
|
|
35
|
-
* @param onChange - Callback fired with the selected option `value`.
|
|
36
|
-
* @param [disabled] - Disables the entire control when set.
|
|
37
|
-
* @param [className] - Additional classes applied to the container.
|
|
38
|
-
* @param [ariaLabel] - Accessible label for the control (applied to the `tablist`).
|
|
39
|
-
*/
|
|
40
|
-
export declare const DialSegmentedControl: <T extends string>({ options, value, onChange, disabled, className, ariaLabel, }: DialSegmentedControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const containerBaseClassName = "inline-flex items-center rounded bg-layer-3";
|
|
2
|
-
export declare const segmentBaseClassName = "flex flex-1 items-center justify-center gap-2 h-7 px-3 py-1 border border-primary dial-small-text whitespace-nowrap focus-visible:outline outline-offset-0 focus-visible:relative focus-visible:z-10";
|
|
3
|
-
export declare const segmentSelectedClassName = "relative z-10 bg-controls-accent-primary-alpha-active text-primary";
|
|
4
|
-
export declare const segmentUnselectedClassName = "text-secondary hover:text-primary";
|
|
5
|
-
export declare const segmentDisabledClassName = "text-controls-disable-accent cursor-not-allowed hover:text-controls-disable-accent";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SelectOption } from '../../models/select';
|
|
2
|
-
import { FC, MouseEvent } from 'react';
|
|
3
|
-
export interface DialMultiSelectTagsProps {
|
|
4
|
-
options: SelectOption[];
|
|
5
|
-
selectedValues: string[];
|
|
6
|
-
handleRemoveTag?: (event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, val: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const DialMultiSelectTags: FC<DialMultiSelectTagsProps>;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode, MouseEvent, Ref } from 'react';
|
|
2
|
-
import { SelectOption } from '../../models/select';
|
|
3
|
-
import { SelectSize, SelectVariant } from '../../types/select';
|
|
4
|
-
import { ElementSize } from '../../types/size';
|
|
5
|
-
export interface DialSelectProps {
|
|
6
|
-
options: SelectOption[];
|
|
7
|
-
multiple?: boolean;
|
|
8
|
-
elementId?: string;
|
|
9
|
-
size?: SelectSize;
|
|
10
|
-
variant?: SelectVariant;
|
|
11
|
-
value?: string | string[];
|
|
12
|
-
customSelectedValue?: string;
|
|
13
|
-
prefix?: string;
|
|
14
|
-
defaultValue?: string | string[];
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
searchable?: boolean;
|
|
17
|
-
searchSize?: ElementSize;
|
|
18
|
-
searchPlaceholder?: string;
|
|
19
|
-
selectAll?: boolean;
|
|
20
|
-
selectAllLabel?: string;
|
|
21
|
-
emptyStateTitle?: string;
|
|
22
|
-
emptyStateDescription?: string;
|
|
23
|
-
emptyStateIcon?: ReactNode;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
className?: string;
|
|
26
|
-
listClassName?: string;
|
|
27
|
-
closable?: boolean;
|
|
28
|
-
invalid?: boolean;
|
|
29
|
-
header?: ReactNode | (() => ReactNode);
|
|
30
|
-
footer?: ReactNode | (() => ReactNode);
|
|
31
|
-
open?: boolean;
|
|
32
|
-
onOpenChange?: (open: boolean) => void;
|
|
33
|
-
onInlineQueryChange?: (query: string) => void;
|
|
34
|
-
dismissRef?: Ref<unknown>;
|
|
35
|
-
onClose?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
36
|
-
onChange?: (next: string | string[]) => void;
|
|
37
|
-
inlineSearch?: boolean;
|
|
38
|
-
onFooterClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
39
|
-
customMultiSelectTagsRenderer?: (options: SelectOption[], selectedValues: string[], handleRemoveTag: (event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, val: string) => void) => ReactNode;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* A versatile select supporting single and multiple selections.
|
|
43
|
-
* aliases: OptionPicker|ChoiceSelector
|
|
44
|
-
* Design system 1.0
|
|
45
|
-
*
|
|
46
|
-
* Single mode mirrors the legacy visual:
|
|
47
|
-
* - Trigger shows the selected option's leading icon + label.
|
|
48
|
-
* - In the list, the selected option is indicated by a LEFT border and tinted background
|
|
49
|
-
* (no check icon).
|
|
50
|
-
*
|
|
51
|
-
* Multiple mode uses checkboxes (including Select All with indeterminate state).
|
|
52
|
-
*
|
|
53
|
-
* Search:
|
|
54
|
-
* - `searchable`: shows a plain input in the overlay header that filters options.
|
|
55
|
-
* - `inlineSearch` (single mode only): the trigger renders a plain input; typing filters options;
|
|
56
|
-
* when closed, the input shows the selected label.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```tsx
|
|
60
|
-
* <DialSelect options={[{ value: 'option-1', label: 'Option 1' }]} />
|
|
61
|
-
* <DialSelect searchable options={[{ value: 'a', label: 'Alpha' }, { value: 'b', label: 'Beta' }]} />
|
|
62
|
-
* <DialSelect multiple selectAll options={[{ value: '1', label: 'One' }, { value: '2', label: 'Two' }]} />
|
|
63
|
-
* <DialSelect inlineSearch options={[{ value: 'r', label: 'Relax-Name' }, { value: 'rep2', label: 'rep2' }]} />
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @param options - Array of options to select from.
|
|
67
|
-
* @param [elementId] - The id attribute for the select element.
|
|
68
|
-
* @param [multiple] - Whether multiple selections are allowed.
|
|
69
|
-
* @param [size=SelectSize.Md] - Size of the control.
|
|
70
|
-
* @param [variant=SelectVariant.Primary] - Visual variant.
|
|
71
|
-
* @param [value] - Controlled selected value(s).
|
|
72
|
-
* @param [customSelectedValue] - Custom string to render as the selected value in single mode.
|
|
73
|
-
* @param [prefix] - Prefix for selected value(s).
|
|
74
|
-
* @param [defaultValue] - Uncontrolled initial selected value(s).
|
|
75
|
-
* @param [placeholder="Select..."] - Placeholder text when no selection is made.
|
|
76
|
-
* @param [searchable=false] - Show a search field in the overlay header.
|
|
77
|
-
* @param [searchSize=ElementSize.Standard] - Size of the overlay search input when `searchable` is enabled.
|
|
78
|
-
* @param [searchPlaceholder] - Placeholder for the search input (overlay/inline).
|
|
79
|
-
* @param [selectAll=false] - Show a "Select All" checkbox in multiple mode.
|
|
80
|
-
* @param [selectAllLabel="Select all"] - Label for the "Select All" checkbox.
|
|
81
|
-
* @param [emptyStateTitle="No options available"] - Title text when there are no options.
|
|
82
|
-
* @param [emptyStateDescription] - Description text when there are no options.
|
|
83
|
-
* @param [emptyStateIcon] - Icon to display when there are no options.
|
|
84
|
-
* @param [invalid] - Whether the select is in an invalid state, affecting styling.
|
|
85
|
-
* @param [disabled=false] - Disable the control.
|
|
86
|
-
* @param [className] - Additional CSS classes for the trigger.
|
|
87
|
-
* @param [listClassName] - Additional CSS classes for the list dropdown.
|
|
88
|
-
* @param [closable=false] - Show a close button in the dropdown header.
|
|
89
|
-
* @param [header] - Custom node/function rendered above the options.
|
|
90
|
-
* @param [footer] - Custom node/function rendered below the options.
|
|
91
|
-
* @param [open] - Controlled open state of the dropdown. When provided, makes the dropdown controlled.
|
|
92
|
-
* @param [onOpenChange] - Called when the dropdown open state changes.
|
|
93
|
-
* @param [onClose] - Called when the dropdown close button is clicked.
|
|
94
|
-
* @param [onChange] - Called when the selection changes.
|
|
95
|
-
* @param [inlineSearch=false] - Render a plain input inside trigger (single mode only).
|
|
96
|
-
* @param [onInlineQueryChange] - Called when the inline search query changes
|
|
97
|
-
* @param [onFooterClick] - Called when the footer element is clicked. When provided, automatically closes the dropdown.
|
|
98
|
-
* @param [dismissRef] - Ref object to expose a `dismiss` method to programmatically close the select.
|
|
99
|
-
*/
|
|
100
|
-
export declare const DialSelect: FC<DialSelectProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { SelectOption } from '../../models/select';
|
|
3
|
-
export interface SelectSubMenuItemProps {
|
|
4
|
-
opt: SelectOption;
|
|
5
|
-
selectedValues: string[];
|
|
6
|
-
onSelect: (value: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const SelectSubMenuItem: FC<SelectSubMenuItemProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const selectTriggerBaseClassName = "dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer";
|
|
2
|
-
export declare const selectOverlayBaseClassName = "w-full rounded flex flex-col";
|
|
3
|
-
export declare const selectOptionBaseClassName = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none";
|
|
4
|
-
export declare const selectOptionSelectedClassName = "bg-accent-primary-alpha";
|
|
5
|
-
export declare const selectOptionSingleSelectedClassName = "bg-accent-primary-alpha border-l border-accent-primary border-1";
|
|
6
|
-
export declare const selectOptionDisabledClassName = "opacity-75";
|
|
7
|
-
export declare const dropdownMenuMaxHeight = 352;
|
|
8
|
-
export declare const selectSubMenuGap = 4;
|
|
9
|
-
export declare const selectChevronIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DialFormItemProps } from '../FormItem/FormItem';
|
|
3
|
-
import { DialSelectProps } from '../Select/Select';
|
|
4
|
-
import { DialLabelProps } from '../Label/Label';
|
|
5
|
-
export interface DialSelectFieldProps extends Omit<DialSelectProps, 'className' | 'elementId'>, Omit<DialLabelProps, 'htmlFor'>, Omit<DialFormItemProps, 'label' | 'children' | 'value'> {
|
|
6
|
-
selectClassName?: string;
|
|
7
|
-
containerClassName?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A Select field wrapper that composes `DialFormItem` and `DialSelect`.
|
|
11
|
-
* aliases: SelectInput|ComboField
|
|
12
|
-
* Design system 1.0
|
|
13
|
-
*
|
|
14
|
-
* Provides unified label, description, error rendering and a readonly view that shows
|
|
15
|
-
* the selected option labels (comma-separated in single mode, list in multiple).
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <DialSelectField
|
|
20
|
-
* elementId="transport"
|
|
21
|
-
* fieldTitle="Transport"
|
|
22
|
-
* options={[
|
|
23
|
-
* { value: 'SSE', label: 'Server-Sent Events (SSE)' },
|
|
24
|
-
* { value: 'WS', label: 'WebSocket' },
|
|
25
|
-
* ]}
|
|
26
|
-
* value="WS"
|
|
27
|
-
* onChange={(v) => setTransport(v as string)}
|
|
28
|
-
* />
|
|
29
|
-
*
|
|
30
|
-
* @params - Component properties extending:
|
|
31
|
-
* - {@link DialSelectProps} for select options and props, except for className
|
|
32
|
-
* - {@link DialFormItemProps} for form item props, except for htmlFor
|
|
33
|
-
* - {@link DialLabelProps} for label props, except for label, children, value
|
|
34
|
-
*
|
|
35
|
-
* @param selectClassName CSS class for the select element
|
|
36
|
-
* @param containerClassName CSS class for the form item container
|
|
37
|
-
* @param emptyStateTitle Title to show when there are no options
|
|
38
|
-
* @param restSelectProps All other DialSelect props
|
|
39
|
-
* @param restFormItemProps All other DialFormItem props
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
export declare const DialSelectField: FC<DialSelectFieldProps>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface DialSharedEntityIndicatorProps {
|
|
3
|
-
label?: ReactNode;
|
|
4
|
-
size?: number;
|
|
5
|
-
stroke?: number;
|
|
6
|
-
className?: string;
|
|
7
|
-
containerClassName?: string;
|
|
8
|
-
sharedIndicatorTooltip?: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A compact icon-only indicator to denote a "shared" entity.
|
|
12
|
-
* aliases: SharedIcon|AccessIndicator
|
|
13
|
-
* Design system 1.0
|
|
14
|
-
*
|
|
15
|
-
* Renders a small arrow-up-right icon with token-based colors.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <DialSharedEntityIndicator />
|
|
20
|
-
* <DialSharedEntityIndicator size={12} label="Opens in new window" />
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @param [label="Shared entity"] - Accessible label for assistive tech
|
|
24
|
-
* @param [size=10] - Pixel size for the icon
|
|
25
|
-
* @param [className] - Additional Tailwind classes applied to the icon
|
|
26
|
-
* @param [containerClassName] - Additional Tailwind classes appended to the container
|
|
27
|
-
* @param [stroke=1.5] - Stroke width for the icon
|
|
28
|
-
* @param [sharedIndicatorTooltip] - Custom tooltip content, defaults to "Shared"
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
export declare const DialSharedEntityIndicator: FC<DialSharedEntityIndicatorProps>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
2
|
-
import { DialLabelProps } from '../Label/Label';
|
|
3
|
-
export interface DialSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
4
|
-
value: number;
|
|
5
|
-
min?: number;
|
|
6
|
-
max?: number;
|
|
7
|
-
step?: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
labelProps?: DialLabelProps;
|
|
10
|
-
/** 2-element or 3-element label tuple rendered below the track */
|
|
11
|
-
labels?: [string, string] | [string, string, string];
|
|
12
|
-
/** Custom formatter for the thumb value; defaults to fixed-decimal based on step */
|
|
13
|
-
formatValue?: (value: number) => string;
|
|
14
|
-
onChange?: (value: number) => void;
|
|
15
|
-
/** Additional classes for the track bar (default: `bg-layer-1`) */
|
|
16
|
-
trackClassName?: string;
|
|
17
|
-
/** Additional classes for the filled portion of the track (default: `bg-controls-accent-primary`) */
|
|
18
|
-
fillClassName?: string;
|
|
19
|
-
/** Additional classes for the thumb circle (default: `bg-layer-3 text-primary dial-small-text`) */
|
|
20
|
-
thumbClassName?: string;
|
|
21
|
-
/** Additional classes for the labels row (default: `text-secondary dial-tiny-text`) */
|
|
22
|
-
labelsClassName?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A range slider with a custom thumb showing the current value and optional labels.
|
|
26
|
-
* aliases: RangeInput|TemperatureSlider
|
|
27
|
-
* Design system 1.0
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* <DialSlider
|
|
32
|
-
* value={0.5}
|
|
33
|
-
* min={0}
|
|
34
|
-
* max={1}
|
|
35
|
-
* step={0.1}
|
|
36
|
-
* labels={['Precise', 'Neutral', 'Creative']}
|
|
37
|
-
* aria-label="Temperature"
|
|
38
|
-
* onChange={(v) => console.log(v)}
|
|
39
|
-
* />
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @param value - Current slider value
|
|
43
|
-
* @param [min=0] - Minimum value
|
|
44
|
-
* @param [max=1] - Maximum value
|
|
45
|
-
* @param [step=0.1] - Step increment
|
|
46
|
-
* @param [disabled=false] - Disables interaction
|
|
47
|
-
* @param [labelProps] - Props forwarded to DialLabel rendered above the slider
|
|
48
|
-
* @param [labels] - 2 or 3 strings rendered below the track (start, [middle,] end)
|
|
49
|
-
* @param [formatValue] - Custom value formatter for the thumb display
|
|
50
|
-
* @param [onChange] - Callback fired with the new value on interaction
|
|
51
|
-
* @param [className] - Additional CSS classes for the outer container
|
|
52
|
-
* @param [trackClassName] - Additional CSS classes for the track bar
|
|
53
|
-
* @param [fillClassName] - Additional CSS classes for the fill portion of the track
|
|
54
|
-
* @param [thumbClassName] - Additional CSS classes for the thumb circle
|
|
55
|
-
* @param [labelsClassName] - Additional CSS classes for the labels row
|
|
56
|
-
*/
|
|
57
|
-
export declare const DialSlider: FC<DialSliderProps>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Step } from '../../models/step';
|
|
3
|
-
export interface DialStepsProps {
|
|
4
|
-
steps: Step[];
|
|
5
|
-
currentStep: string;
|
|
6
|
-
onChangeStep: (step: string) => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Props for the DialSteps component, which renders a multi-step navigation UI.
|
|
10
|
-
* aliases: StepWizard|ProgressSteps
|
|
11
|
-
* Design system 1.0
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* <DialSteps
|
|
16
|
-
* steps={[{ id: 'step1', label: 'Step 1', status: StepStatus.VALID }, { id: 'step2', label: 'Step 2', status: StepStatus.ERROR }]}
|
|
17
|
-
* currentStep="step1"
|
|
18
|
-
* onChangeStep={(step) => console.log(step)}
|
|
19
|
-
* />
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @param steps - Array of step objects to display
|
|
23
|
-
* @param currentStep - The id of the currently active step
|
|
24
|
-
* @param onChangeStep - Callback to set the current step by id
|
|
25
|
-
*/
|
|
26
|
-
export declare const DialSteps: FC<DialStepsProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Step } from '../../models/step';
|
|
2
|
-
export declare const getStepClass: (step: Step, currentStepId: string) => "border-accent-secondary text-primary" | "border-red-900 text-primary" | "border-accent-primary text-primary" | "border-primary text-primary" | "border-red-900 text-error" | "border-primary text-secondary";
|
|
3
|
-
export declare const getCircleClass: (step: Step, currentStepId: string) => "bg-accent-secondary" | "bg-red-400" | "bg-accent-primary" | "bg-layer-4";
|