@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,26 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DialInputProps } from '../Input/Input';
|
|
3
|
-
/**
|
|
4
|
-
* A password input component with show/hide functionality and customizable props.
|
|
5
|
-
* aliases: SecureInput|ToggleablePassword
|
|
6
|
-
* Design system 1.0
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <DialPasswordInput
|
|
11
|
-
* id="password"
|
|
12
|
-
* label="Password"
|
|
13
|
-
* value={password}
|
|
14
|
-
* onChange={e => setPassword(e.target.value)}
|
|
15
|
-
* disabled={false}
|
|
16
|
-
* />
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param id - Unique identifier for the input element
|
|
20
|
-
* @param [label] - The label text for the field
|
|
21
|
-
* @param [value] - The current value of the input
|
|
22
|
-
* @param [onChange] - Callback function called when the input value changes
|
|
23
|
-
* @param [disabled=false] - Whether the input is disabled
|
|
24
|
-
* @param [iconAfterInput] - Custom icon to display after the input (overridden by show/hide icons)
|
|
25
|
-
*/
|
|
26
|
-
export declare const DialPasswordInput: FC<DialInputProps>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { FC, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { PopupSize } from '../../types/popup';
|
|
3
|
-
export interface DialPopupProps {
|
|
4
|
-
open?: boolean;
|
|
5
|
-
header?: ReactNode;
|
|
6
|
-
portalId?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
overlayClassName?: string;
|
|
9
|
-
titleClassName?: string;
|
|
10
|
-
headerClassName?: string;
|
|
11
|
-
dividers?: boolean;
|
|
12
|
-
dividerFooter?: boolean;
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
footer?: ReactNode;
|
|
15
|
-
onClose?: (e?: MouseEvent<HTMLButtonElement> | null) => void;
|
|
16
|
-
size?: PopupSize;
|
|
17
|
-
hideClose?: boolean;
|
|
18
|
-
closeOnOutsideClick?: boolean;
|
|
19
|
-
preventKeyboardOnOpen?: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* An accessible modal dialog component using Floating UI.
|
|
23
|
-
* aliases: Modal|Dialog
|
|
24
|
-
* Design system 1.0
|
|
25
|
-
*
|
|
26
|
-
* Renders in a portal with a scrim overlay, focus management, header with a title,
|
|
27
|
-
* content area, optional footer and a close control.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```tsx
|
|
31
|
-
* <DialPopup
|
|
32
|
-
* open
|
|
33
|
-
* title="Title"
|
|
34
|
-
* size={PopupSize.Md}
|
|
35
|
-
* footer={
|
|
36
|
-
* <div className="flex justify-end gap-2">
|
|
37
|
-
* <button className="btn-secondary px-3 py-1 rounded">Cancel</button>
|
|
38
|
-
* <button className="btn-primary px-3 py-1 rounded">Confirm</button>
|
|
39
|
-
* </div>
|
|
40
|
-
* }
|
|
41
|
-
* onClose={() => console.log('closed')}
|
|
42
|
-
* >
|
|
43
|
-
* <div className="p-6">Dialog content goes here…</div>
|
|
44
|
-
* </DialPopup>
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @param [open=false] - Controls visibility of the popup
|
|
48
|
-
* @param [header] - Optional title rendered in the header
|
|
49
|
-
* @param [portalId] - Optional portal container id
|
|
50
|
-
* @param [className] - Additional CSS classes applied to the popup container
|
|
51
|
-
* @param [overlayClassName] - Additional CSS classes applied to the overlay
|
|
52
|
-
* @param [titleClassName] - Additional CSS classes applied to the title element
|
|
53
|
-
* @param [headerClassName] - Additional CSS classes applied to the popup header container
|
|
54
|
-
* @param [dividers=true] - Whether to render separators between sections
|
|
55
|
-
* @param [dividerFooter=true] - Whether to render a divider above the footer when `dividers` is true
|
|
56
|
-
* @param [children] - Body content
|
|
57
|
-
* @param [footer] - Footer area for actions
|
|
58
|
-
* @param [onClose] - Callback fired when the popup requests to close
|
|
59
|
-
* @param [size=PopupSize.Md] - Sets the max-width of the popup
|
|
60
|
-
* @param [hideClose=false] Whether the close button is hidden in the header (default: false)
|
|
61
|
-
* @param [closeOnOutsideClick=true] - Whether the popup closes when clicking outside (default: true)
|
|
62
|
-
* @param [preventKeyboardOnOpen=false] - When true, initial focus goes to a non-input guard to avoid opening the virtual keyboard on mobile. Redundant since the default focuses the dialog container, which never raises the keyboard; kept for compatibility
|
|
63
|
-
*/
|
|
64
|
-
export declare const DialPopup: FC<DialPopupProps>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PopupSize } from '../../types/popup';
|
|
2
|
-
export declare const overlayBaseClassName = "z-popup flex items-center justify-center bg-blackout md:p-4";
|
|
3
|
-
export declare const popupDividerClassName = "divide-tertiary divide-y";
|
|
4
|
-
export declare const popupHeaderClassName = "flex flex-row justify-between py-4 px-6 items-center";
|
|
5
|
-
export declare const popupSizeClassMap: Record<PopupSize, string>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface DialRadioButtonProps {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
label?: ReactNode;
|
|
6
|
-
caption?: ReactNode;
|
|
7
|
-
description?: ReactNode;
|
|
8
|
-
checked?: boolean;
|
|
9
|
-
inputId: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
labelClassName?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
onChange?: (value: string) => void;
|
|
14
|
-
descriptionClassName?: string;
|
|
15
|
-
containerClassName?: string;
|
|
16
|
-
oneLineCaption?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A stylized, accessible radio input with optional description.
|
|
20
|
-
* aliases: ChoiceOption|RadioInput
|
|
21
|
-
* Design system 1.0
|
|
22
|
-
*
|
|
23
|
-
* Renders a native `<input type="radio" />` paired with a label. When `checked`
|
|
24
|
-
* and `description` are provided, a supporting text block appears under the control.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* <DialRadioButton
|
|
29
|
-
* name="plan"
|
|
30
|
-
* value="pro"
|
|
31
|
-
* inputId="radio-pro"
|
|
32
|
-
* title="Pro plan"
|
|
33
|
-
* description="Includes all advanced features."
|
|
34
|
-
* checked
|
|
35
|
-
* onChange={(v) => console.log('changed', v)}
|
|
36
|
-
* />
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @param name - Radio group name
|
|
40
|
-
* @param value - Radio value emitted on change
|
|
41
|
-
* @param [label] - Visible label text
|
|
42
|
-
* @param [caption] - Caption text describing label
|
|
43
|
-
* @param [description] - Supporting text shown when checked
|
|
44
|
-
* @param [checked=false] - Controlled checked state
|
|
45
|
-
* @param inputId - ID associated with the label
|
|
46
|
-
* @param [className] - Additional classes applied to the input element
|
|
47
|
-
* @param [labelClassName] - Additional classes applied to the label element
|
|
48
|
-
* @param [disabled] - Disabled state of the control
|
|
49
|
-
* @param [onChange] - Callback fired with `value` when the radio is changed
|
|
50
|
-
* @param [descriptionClassName] - Additional classes applied to the description block
|
|
51
|
-
* @param [containerClassName] - Additional classes applied to the container div
|
|
52
|
-
* @param [oneLineCaption=false] - When true, the caption is shown on the same line to the right of the label instead of underneath it
|
|
53
|
-
*/
|
|
54
|
-
export declare const DialRadioButton: FC<DialRadioButtonProps>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { RadioButtonWithContent } from '../../models/radio';
|
|
3
|
-
import { RadioGroupOrientation } from '../../types/radio-group';
|
|
4
|
-
export interface DialRadioGroupProps {
|
|
5
|
-
fieldTitle?: string;
|
|
6
|
-
elementId: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
radioButtons: RadioButtonWithContent[];
|
|
9
|
-
activeRadioButton: string;
|
|
10
|
-
orientation: RadioGroupOrientation;
|
|
11
|
-
labelDescription?: string;
|
|
12
|
-
onChange: (radioId: string) => void;
|
|
13
|
-
radioClassName?: string;
|
|
14
|
-
groupLabelClassName?: string;
|
|
15
|
-
labelClassName?: string;
|
|
16
|
-
containerClassName?: string;
|
|
17
|
-
formItemChildrenClassName?: string;
|
|
18
|
-
selectedItemClassName?: string;
|
|
19
|
-
selectedLabelClassName?: string;
|
|
20
|
-
radioGroupClassName?: string;
|
|
21
|
-
inputContainerClassName?: string;
|
|
22
|
-
selectedInputContainerClassName?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Groups multiple `DialRadio` options and renders custom content for the active option.
|
|
26
|
-
* aliases: SelectionGroup|OptionGroup
|
|
27
|
-
* Design system 1.0
|
|
28
|
-
*
|
|
29
|
-
* Uses `DialField` as the field label and a container with `role="radiogroup"`.
|
|
30
|
-
* Content provided in `radioButtons[].content` is shown under the currently active radio.
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```tsx
|
|
34
|
-
* <DialRadioGroup
|
|
35
|
-
* fieldTitle="Delivery"
|
|
36
|
-
* elementId="delivery"
|
|
37
|
-
* orientation={RadioGroupOrientation.Column}
|
|
38
|
-
* activeRadioButton="courier"
|
|
39
|
-
* radioButtons={[
|
|
40
|
-
* { id: 'pickup', name: 'Pickup', content: <span>Free, ready today</span> },
|
|
41
|
-
* { id: 'courier', name: 'Courier', content: <span>Arrives tomorrow</span> },
|
|
42
|
-
* ]}
|
|
43
|
-
* onChange={(id) => console.log('selected', id)}
|
|
44
|
-
* />
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @param [fieldTitle] - Optional label rendered by `DialField`
|
|
48
|
-
* @param elementId - Name for the underlying radio group; also used for input `name`
|
|
49
|
-
* @param [radioClassName] - Additional classes applied to each radio input
|
|
50
|
-
* @param [inputContainerClassName] - Additional classes applied to each radio input's container
|
|
51
|
-
* @param [selectedInputContainerClassName] - Additional classes applied to the selected radio input's container
|
|
52
|
-
* @param [groupLabelClassName] - Optional classes applied to the group label. If not provided, `labelClassName` will be used.
|
|
53
|
-
* @param [formItemChildrenClassName] - Additional classes applied to the DialFormItem's children container
|
|
54
|
-
* @param [labelClassName] - Additional classes applied to each radio label
|
|
55
|
-
* @param [containerClassName] - Additional classes applied to the outer container
|
|
56
|
-
* @param [selectedItemClassName] - Additional classes applied to the selected option's content container
|
|
57
|
-
* @param [selectedLabelClassName] - Additional classes applied to the selected option's label
|
|
58
|
-
* @param [radioGroupClassName] - Additional classes applied to the radio group container
|
|
59
|
-
* @param [disabled] - Disables all child radios when set
|
|
60
|
-
* @param [labelDescription] - Optional description rendered by `DialFormItem`
|
|
61
|
-
* @param radioButtons - Array of options with ids, labels, and optional content
|
|
62
|
-
* @param activeRadioButton - The id of the currently selected radio
|
|
63
|
-
* @param orientation - Layout direction of radios: row or column
|
|
64
|
-
* @param onChange - Callback fired with the selected radio id
|
|
65
|
-
*/
|
|
66
|
-
export declare const DialRadioGroup: FC<DialRadioGroupProps>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { RadioGroupOrientation } from '../../types/radio-group';
|
|
2
|
-
export declare const groupBaseClassName = "flex flex-col gap-2";
|
|
3
|
-
export declare const optionsWrapperBaseClassName = "flex";
|
|
4
|
-
export declare const selectedContentClassName = "pb-1 mt-2";
|
|
5
|
-
export declare const orientationClassMap: Record<RadioGroupOrientation, string>;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DialLabelProps } from '../Label/Label';
|
|
3
|
-
import { DialInputPopupProps } from '../InputPopup/InputPopup';
|
|
4
|
-
import { DialPopupProps } from '../Popup/Popup';
|
|
5
|
-
import { DialRadioGroupProps } from '../RadioGroup/RadioGroup';
|
|
6
|
-
export interface RadioGroupPopupFieldProps extends Pick<DialLabelProps, 'label' | 'htmlFor'>, Omit<DialInputPopupProps, 'onOpen' | 'children'>, Pick<DialRadioGroupProps, 'radioButtons'>, Pick<DialPopupProps, 'onClose' | 'portalId' | 'size'> {
|
|
7
|
-
customInputValue?: string;
|
|
8
|
-
header: string;
|
|
9
|
-
cancelButtonTitle?: string;
|
|
10
|
-
applyButtonTitle?: string;
|
|
11
|
-
isValid: boolean;
|
|
12
|
-
onApply: () => void;
|
|
13
|
-
onCancel?: () => void;
|
|
14
|
-
selectedRadioValue: string;
|
|
15
|
-
onChangeRadioField: (id: string) => void;
|
|
16
|
-
id: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A composite field that opens a popup with a radio group selector.
|
|
20
|
-
* aliases: PopupRadio|ChoicePopup
|
|
21
|
-
* Design system 1.0
|
|
22
|
-
*
|
|
23
|
-
* Renders a labeled readout using `DialInputPopup`; when opened, a `DialPopup`
|
|
24
|
-
* displays a `DialRadioGroup` allowing the user to pick from a list of options.
|
|
25
|
-
* The footer provides Cancel/Apply actions, with Apply disabled when `isValid` is false.
|
|
26
|
-
*
|
|
27
|
-
* The value shown in the collapsed field is derived from either `customInputValue`
|
|
28
|
-
* or the name of the currently selected radio option identified by `selectedValue`.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* <DialRadioGroupPopupField
|
|
33
|
-
* fieldTitle="Status"
|
|
34
|
-
* htmlFor="status"
|
|
35
|
-
* header="Select status"
|
|
36
|
-
* emptyValueText="None"
|
|
37
|
-
* radioButtons={[
|
|
38
|
-
* { id: 'draft', name: 'Draft' },
|
|
39
|
-
* { id: 'review', name: 'In Review' },
|
|
40
|
-
* { id: 'published', name: 'Published' },
|
|
41
|
-
* ]}
|
|
42
|
-
* selectedValue="draft"
|
|
43
|
-
* selectedRadioValue="draft"
|
|
44
|
-
* onChangeRadioField={(id) => console.log('radio changed', id)}
|
|
45
|
-
* id="status-group"
|
|
46
|
-
* isValid={true}
|
|
47
|
-
* onApply={() => console.log('applied')}
|
|
48
|
-
* />
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @param fieldTitle - Field label text displayed above the input
|
|
52
|
-
* @param htmlFor - Associates the label with an input id for a11y
|
|
53
|
-
* @param [readonly] - When true, the popup cannot be opened
|
|
54
|
-
* @param [selectedValue] - Current value id used to resolve the displayed option name
|
|
55
|
-
* @param radioButtons - Collection of radio options (id/name)
|
|
56
|
-
* @param [customInputValue] - Custom value text to display instead of a radio option name
|
|
57
|
-
* @param [placeholder] - Placeholder text shown in the field when no value is selected; unlike `emptyValueText`, it suppresses the tooltip
|
|
58
|
-
* @param [valueClassName] - Extra classes applied to the value text in the collapsed field
|
|
59
|
-
* @param [inputClassName] - Extra classes applied to the collapsed input container
|
|
60
|
-
* @param emptyValueText - Placeholder text when no value is selected
|
|
61
|
-
* @param [onClose] - Callback fired when the popup closes
|
|
62
|
-
* @param header - Title text shown in the popup header
|
|
63
|
-
* @param [portalId] - Target portal id for rendering the popup
|
|
64
|
-
* @param onApply - Callback fired when the Apply button is clicked
|
|
65
|
-
* @param [onCancel] - Callback fired when the Cancel button is clicked
|
|
66
|
-
* @param [cancelButtonTitle="Cancel"] - Text for the Cancel button
|
|
67
|
-
* @param [applyButtonTitle="Apply"] - Text for the Apply button
|
|
68
|
-
* @param isValid - Determines whether the Apply action is enabled
|
|
69
|
-
* @param selectedRadioValue - Currently selected radio id inside the popup
|
|
70
|
-
* @param onChangeRadioField - Handler for radio selection changes
|
|
71
|
-
* @param id - Element id used for the internal radio group
|
|
72
|
-
* @param [size=PopupSize.Md] - Size of the popup
|
|
73
|
-
*/
|
|
74
|
-
export declare const DialRadioGroupPopupField: FC<RadioGroupPopupFieldProps>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DialResizableContainerProps } from './ResizableContainer';
|
|
3
|
-
export interface DialConditionalResizableContainerProps extends DialResizableContainerProps {
|
|
4
|
-
enabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* DialConditionalResizableContainer — A conditional wrapper around `DialResizableContainer`.
|
|
8
|
-
* aliases: OptionalResize|ConditionalPanel
|
|
9
|
-
* Design system 1.0
|
|
10
|
-
*
|
|
11
|
-
* This component renders its children inside a resizable container only when `enabled` is true.
|
|
12
|
-
* When `enabled` is false, children are rendered directly without any resizable behavior.
|
|
13
|
-
*
|
|
14
|
-
* All other props are the same as `DialResizableContainer`. See the documentation for
|
|
15
|
-
* `DialResizableContainer` for full details on usage, controlled/uncontrolled modes, sides, and callbacks.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <DialConditionalResizableContainer
|
|
20
|
-
* enabled={!isCollapsed}
|
|
21
|
-
* defaultWidth={260}
|
|
22
|
-
* minWidth={180}
|
|
23
|
-
* maxWidth={520}
|
|
24
|
-
* onResize={(w) => console.log('Current width:', w)}
|
|
25
|
-
* onResizeStop={(w) => setSidebarWidth(w)}
|
|
26
|
-
* >
|
|
27
|
-
* <Sidebar />
|
|
28
|
-
* </DialConditionalResizableContainer>
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @param enabled - Whether resizing is enabled. When false, children are rendered directly.
|
|
32
|
-
* @param children - Content to render inside the container.
|
|
33
|
-
* @see DialResizableContainer
|
|
34
|
-
*/
|
|
35
|
-
export declare const DialConditionalResizableContainer: FC<DialConditionalResizableContainerProps>;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ResizableContainerSide } from '../../types/resizable-container';
|
|
2
|
-
import { FC, ReactNode } from 'react';
|
|
3
|
-
export interface DialResizableContainerProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
minWidth: number;
|
|
6
|
-
maxWidth: number;
|
|
7
|
-
width?: number;
|
|
8
|
-
defaultWidth: number;
|
|
9
|
-
onResizeStop?: (width: number) => void;
|
|
10
|
-
onResize?: (width: number) => void;
|
|
11
|
-
side?: ResizableContainerSide;
|
|
12
|
-
resizeHandlerClassName?: string;
|
|
13
|
-
resizeHandler?: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* DialResizableContainer — A reusable resizable container
|
|
17
|
-
* aliases: ResizePanel|SizableContainer
|
|
18
|
-
* Design system 1.0
|
|
19
|
-
*
|
|
20
|
-
* supporting both **controlled** and **uncontrolled** width modes.
|
|
21
|
-
*
|
|
22
|
-
* Controlled Mode
|
|
23
|
-
*
|
|
24
|
-
* Provide `width` and optionally `onResizeStop`:
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <DialResizableContainer
|
|
27
|
-
* width={sidebarWidth}
|
|
28
|
-
* onResizeStop={(w) => setSidebarWidth(w)}
|
|
29
|
-
* minWidth={180}
|
|
30
|
-
* maxWidth={520}
|
|
31
|
-
* >
|
|
32
|
-
* <Sidebar />
|
|
33
|
-
* </DialResizableContainer>
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* Uncontrolled Mode
|
|
37
|
-
*
|
|
38
|
-
* Omit `width` entirely — the component manages its own width:
|
|
39
|
-
* ```tsx
|
|
40
|
-
* <DialResizableContainer
|
|
41
|
-
* defaultWidth={260}
|
|
42
|
-
* minWidth={180}
|
|
43
|
-
* maxWidth={520}
|
|
44
|
-
* >
|
|
45
|
-
* <Sidebar />
|
|
46
|
-
* </DialResizableContainer>
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* Features:
|
|
50
|
-
* - Resize from left or right
|
|
51
|
-
* - Fully supports controlled & uncontrolled sizing
|
|
52
|
-
* - Custom resize handler (icon or any ReactNode)
|
|
53
|
-
* - Callback when resize stops (optional)
|
|
54
|
-
* - Smooth hover/drag visibility transitions
|
|
55
|
-
*
|
|
56
|
-
* @param [children] - Content placed inside the container.
|
|
57
|
-
* @param [minWidth] - Minimum allowed width (px).
|
|
58
|
-
* @param [maxWidth] - Maximum allowed width (px).
|
|
59
|
-
* @param [width] - Controlled width. If omitted → uncontrolled mode.
|
|
60
|
-
* @param [defaultWidth] - Initial width in uncontrolled mode.
|
|
61
|
-
* @param [onResizeStop] - Optional callback fired when resize ends.
|
|
62
|
-
* @param [onResize] - Optional callback fired continuously during resizing with current width.
|
|
63
|
-
* @param [side=ResizableContainerSide.Right] - Resize handle side.
|
|
64
|
-
* @param [resizeHandlerClassName] - Optional additional CSS classes.
|
|
65
|
-
* @param [resizeHandler] - Optional custom handler element.
|
|
66
|
-
*
|
|
67
|
-
* @remarks
|
|
68
|
-
* - In uncontrolled mode, width is stored internally.
|
|
69
|
-
* - `onResizeStop` is optional in both modes.
|
|
70
|
-
* - Controlled mode always uses the value from `width`.
|
|
71
|
-
*/
|
|
72
|
-
export declare const DialResizableContainer: FC<DialResizableContainerProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ResizableContainerSide } from '../../../types/resizable-container';
|
|
2
|
-
import { FC, ReactNode } from 'react';
|
|
3
|
-
interface ResizeHandleProps {
|
|
4
|
-
side: ResizableContainerSide;
|
|
5
|
-
isResizing: boolean;
|
|
6
|
-
customHandler?: ReactNode;
|
|
7
|
-
handlerClassName?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const ResizeHandle: FC<ResizeHandleProps>;
|
|
10
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DialSchemaRendererProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Renders a JSON Schema as a form UI with collapsible sections, validation, and default values.
|
|
5
|
-
* aliases: SchemaRenderer|JsonSchemaForm
|
|
6
|
-
* Design system 1.0
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <DialSchemaRenderer
|
|
11
|
-
* schema={mySchema}
|
|
12
|
-
* onChange={(v) => console.log(v)}
|
|
13
|
-
* onDefaultValues={(defaults) => console.log(defaults)}
|
|
14
|
-
* />
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @param schema - The root JSON Schema to render
|
|
18
|
-
* @param [defaultValue] - Initial form value; if omitted, defaults are extracted from schema
|
|
19
|
-
* @param [texts] - Override any user-visible strings rendered by the component
|
|
20
|
-
* @param [className] - Additional CSS classes for the root container
|
|
21
|
-
* @param [readonly=false] - When true all inputs are disabled; sections remain collapsible
|
|
22
|
-
* @param [defaultExpanded=true] - Initial expanded state for all collapsible sections
|
|
23
|
-
* @param [variant=SchemaRendererVariant.Sections] - `Sections` wraps every top-level property in a collapsible card; `Flat` renders primitives as plain DialFormItem fields
|
|
24
|
-
* @param [renderField] - Override the rendered element for any field by path; return `defaultElement` to fall back to built-in rendering
|
|
25
|
-
* @param [onChange] - Called with the full form value on every change
|
|
26
|
-
* @param [onPropertyChange] - Called with `(path, value)` for each individual property change
|
|
27
|
-
* @param [onDefaultValues] - Called once on mount with the resolved default values
|
|
28
|
-
* @param [jsonEditorTheme] - Theme for the JSON editor shown for value keys absent from the schema
|
|
29
|
-
*/
|
|
30
|
-
export declare const DialSchemaRenderer: FC<DialSchemaRendererProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { EditorThemes } from '../../../types/editor';
|
|
3
|
-
export interface SchemaAdditionalPropertiesEditorProps {
|
|
4
|
-
value: unknown;
|
|
5
|
-
onChange: (value: unknown) => void;
|
|
6
|
-
theme?: EditorThemes;
|
|
7
|
-
height?: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Renders a single value key that is not declared in the schema's `properties` as a raw JSON
|
|
11
|
-
* editor, letting users inspect and manually edit it. The Monaco-based editor is dynamically
|
|
12
|
-
* imported on the client only, keeping the parent SchemaRenderer SSR-safe.
|
|
13
|
-
* aliases: SchemaExtraPropertyEditor|SchemaUnknownPropertyEditor
|
|
14
|
-
*
|
|
15
|
-
* @param value - The current value of the property (any JSON type)
|
|
16
|
-
* @param onChange - Called with the parsed value whenever the edited JSON is valid
|
|
17
|
-
* @param [theme=EditorThemes.dark] - Theme applied to the JSON editor
|
|
18
|
-
* @param [height=240] - Editor height in pixels
|
|
19
|
-
*/
|
|
20
|
-
export declare const SchemaAdditionalPropertiesEditor: FC<SchemaAdditionalPropertiesEditorProps>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { JsonSchemaDef } from '../types';
|
|
3
|
-
export interface SchemaAnyOfEditorProps {
|
|
4
|
-
schema: JsonSchemaDef;
|
|
5
|
-
value: unknown;
|
|
6
|
-
onChange: (value: unknown) => void;
|
|
7
|
-
path: string[];
|
|
8
|
-
level: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders an `anyOf` schema field as a type-selector dropdown with an inline sub-editor.
|
|
12
|
-
* aliases: AnyOfSchemaEditor|SchemaUnionEditor
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* <SchemaAnyOfEditor
|
|
17
|
-
* schema={{ anyOf: [{ type: 'null' }, { type: 'string' }] }}
|
|
18
|
-
* value={null}
|
|
19
|
-
* onChange={(v) => console.log(v)}
|
|
20
|
-
* path={['field']}
|
|
21
|
-
* level={1}
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @param schema - The JSON Schema definition containing an `anyOf` array
|
|
26
|
-
* @param value - Current field value
|
|
27
|
-
* @param onChange - Called with the new value when the type or sub-value changes
|
|
28
|
-
* @param path - Field path segments used for validation error tracking
|
|
29
|
-
* @param level - Nesting depth passed to child field components
|
|
30
|
-
*/
|
|
31
|
-
export declare const SchemaAnyOfEditor: FC<SchemaAnyOfEditorProps>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { JsonSchemaDef } from '../types';
|
|
3
|
-
export interface SchemaArrayEditorProps {
|
|
4
|
-
schema: JsonSchemaDef;
|
|
5
|
-
value: unknown;
|
|
6
|
-
onChange: (value: unknown) => void;
|
|
7
|
-
path: string[];
|
|
8
|
-
level: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders a JSON Schema array as a list of collapsible items with add and remove controls.
|
|
12
|
-
* aliases: ArraySchemaEditor|SchemaListEditor
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* <SchemaArrayEditor
|
|
17
|
-
* schema={{ type: 'array', items: { type: 'string' } }}
|
|
18
|
-
* value={['foo', 'bar']}
|
|
19
|
-
* onChange={(v) => console.log(v)}
|
|
20
|
-
* path={['tags']}
|
|
21
|
-
* level={1}
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @param schema - The JSON Schema array definition (must include an `items` sub-schema)
|
|
26
|
-
* @param value - Current array value
|
|
27
|
-
* @param onChange - Called with the updated array when items are added, removed, or changed
|
|
28
|
-
* @param path - Field path segments used for validation error tracking
|
|
29
|
-
* @param level - Nesting depth passed to child section components
|
|
30
|
-
*/
|
|
31
|
-
export declare const SchemaArrayEditor: FC<SchemaArrayEditorProps>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { SchemaFieldProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Renders a single schema property as a labeled field or a collapsible section.
|
|
5
|
-
* aliases: SchemaPropertyField|SchemaFormField
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <SchemaField
|
|
10
|
-
* schema={{ type: 'string' }}
|
|
11
|
-
* value="hello"
|
|
12
|
-
* onChange={(v) => console.log(v)}
|
|
13
|
-
* path={['name']}
|
|
14
|
-
* level={1}
|
|
15
|
-
* required
|
|
16
|
-
* label="Name"
|
|
17
|
-
* />
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @param schema - The JSON Schema definition for this field
|
|
21
|
-
* @param value - Current field value
|
|
22
|
-
* @param onChange - Called with the updated value when the field changes
|
|
23
|
-
* @param path - Field path segments used for validation error tracking
|
|
24
|
-
* @param [level=0] - Nesting depth; object/array fields render as collapsible sections
|
|
25
|
-
* @param [required] - Whether the field is required (shows error when empty)
|
|
26
|
-
* @param [label] - Display label; falls back to schema title or path segment
|
|
27
|
-
* @param [skipUntouched] - When `true`, required-field errors are only shown after the user has interacted with a field.
|
|
28
|
-
*/
|
|
29
|
-
export declare const SchemaField: FC<SchemaFieldProps>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { SchemaFieldContentProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Routes a resolved schema to the appropriate editor component.
|
|
5
|
-
* aliases: SchemaEditorRouter|SchemaContentDispatcher
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <SchemaFieldContent
|
|
10
|
-
* schema={{ type: 'string' }}
|
|
11
|
-
* value="hello"
|
|
12
|
-
* onChange={(v) => console.log(v)}
|
|
13
|
-
* path={['name']}
|
|
14
|
-
* level={1}
|
|
15
|
-
* />
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @param schema - The JSON Schema definition to render
|
|
19
|
-
* @param value - Current field value
|
|
20
|
-
* @param onChange - Called with the updated value when the field changes
|
|
21
|
-
* @param path - Field path segments used for validation error tracking
|
|
22
|
-
* @param level - Nesting depth passed to child editor components
|
|
23
|
-
* @param [required] - Whether the field is required (passed to primitive fields for error styling)
|
|
24
|
-
*/
|
|
25
|
-
export declare const SchemaFieldContent: FC<SchemaFieldContentProps>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { JsonSchemaDef } from '../types';
|
|
3
|
-
export interface SchemaKeyValueEditorProps {
|
|
4
|
-
schema: JsonSchemaDef;
|
|
5
|
-
value: unknown;
|
|
6
|
-
onChange: (value: unknown) => void;
|
|
7
|
-
path: string[];
|
|
8
|
-
level: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders an `additionalProperties` object schema as an editable key-value list. Primitive
|
|
12
|
-
* values render inline; object/`oneOf`/array values render as a collapsible section recursing
|
|
13
|
-
* back into `SchemaFieldContent`.
|
|
14
|
-
* aliases: KeyValueSchemaEditor|AdditionalPropertiesEditor
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <SchemaKeyValueEditor
|
|
19
|
-
* schema={{ type: 'object', additionalProperties: { type: 'string' } }}
|
|
20
|
-
* value={{ foo: 'bar' }}
|
|
21
|
-
* onChange={(v) => console.log(v)}
|
|
22
|
-
* path={['metadata']}
|
|
23
|
-
* level={1}
|
|
24
|
-
* />
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @param schema - The JSON Schema object definition with `additionalProperties`
|
|
28
|
-
* @param value - Current object value (treated as a key-value map)
|
|
29
|
-
* @param onChange - Called with the updated object when pairs are added, removed, or changed
|
|
30
|
-
* @param path - Field path segments used for validation error tracking
|
|
31
|
-
* @param level - Nesting depth passed to child section components
|
|
32
|
-
*/
|
|
33
|
-
export declare const SchemaKeyValueEditor: FC<SchemaKeyValueEditorProps>;
|