@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,70 +0,0 @@
|
|
|
1
|
-
import { __exports as l } from "../../_virtual/index2.js";
|
|
2
|
-
import { __require as R } from "../mime-db/index.js";
|
|
3
|
-
import b from "../../_virtual/___vite-browser-external.js";
|
|
4
|
-
import { __require as k } from "./mimeScore.js";
|
|
5
|
-
var h;
|
|
6
|
-
function j() {
|
|
7
|
-
return h ? l : (h = 1, (function(i) {
|
|
8
|
-
var t = R(), E = b.extname, m = k(), v = /^\s*([^;\s]*)(?:;|\s|$)/, d = /^text\//i;
|
|
9
|
-
i.charset = _, i.charsets = { lookup: _ }, i.contentType = g, i.extension = o, i.extensions = /* @__PURE__ */ Object.create(null), i.lookup = q, i.types = /* @__PURE__ */ Object.create(null), i._extensionConflicts = [], C(i.extensions, i.types);
|
|
10
|
-
function _(r) {
|
|
11
|
-
if (!r || typeof r != "string")
|
|
12
|
-
return !1;
|
|
13
|
-
var e = v.exec(r), n = e && t[e[1].toLowerCase()];
|
|
14
|
-
return n && n.charset ? n.charset : e && d.test(e[1]) ? "UTF-8" : !1;
|
|
15
|
-
}
|
|
16
|
-
function g(r) {
|
|
17
|
-
if (!r || typeof r != "string")
|
|
18
|
-
return !1;
|
|
19
|
-
var e = r.indexOf("/") === -1 ? i.lookup(r) : r;
|
|
20
|
-
if (!e)
|
|
21
|
-
return !1;
|
|
22
|
-
if (e.indexOf("charset") === -1) {
|
|
23
|
-
var n = i.charset(e);
|
|
24
|
-
n && (e += "; charset=" + n.toLowerCase());
|
|
25
|
-
}
|
|
26
|
-
return e;
|
|
27
|
-
}
|
|
28
|
-
function o(r) {
|
|
29
|
-
if (!r || typeof r != "string")
|
|
30
|
-
return !1;
|
|
31
|
-
var e = v.exec(r), n = e && i.extensions[e[1].toLowerCase()];
|
|
32
|
-
return !n || !n.length ? !1 : n[0];
|
|
33
|
-
}
|
|
34
|
-
function q(r) {
|
|
35
|
-
if (!r || typeof r != "string")
|
|
36
|
-
return !1;
|
|
37
|
-
var e = E("x." + r).toLowerCase().slice(1);
|
|
38
|
-
return e && i.types[e] || !1;
|
|
39
|
-
}
|
|
40
|
-
function C(r, e) {
|
|
41
|
-
Object.keys(t).forEach(function(a) {
|
|
42
|
-
var u = t[a], f = u.extensions;
|
|
43
|
-
if (!(!f || !f.length)) {
|
|
44
|
-
r[a] = f;
|
|
45
|
-
for (var s = 0; s < f.length; s++) {
|
|
46
|
-
var c = f[s];
|
|
47
|
-
e[c] = O(c, e[c], a);
|
|
48
|
-
const T = M(
|
|
49
|
-
c,
|
|
50
|
-
e[c],
|
|
51
|
-
a
|
|
52
|
-
);
|
|
53
|
-
T !== e[c] && i._extensionConflicts.push([c, T, e[c]]);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function O(r, e, n) {
|
|
59
|
-
var a = e ? m(e, t[e].source) : 0, u = n ? m(n, t[n].source) : 0;
|
|
60
|
-
return a > u ? e : n;
|
|
61
|
-
}
|
|
62
|
-
function M(r, e, n) {
|
|
63
|
-
var a = ["nginx", "apache", void 0, "iana"], u = e ? a.indexOf(t[e].source) : 0, f = n ? a.indexOf(t[n].source) : 0;
|
|
64
|
-
return i.types[o] !== "application/octet-stream" && (u > f || u === f && i.types[o]?.slice(0, 12) === "application/") || u > f ? e : n;
|
|
65
|
-
}
|
|
66
|
-
})(l), l);
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
j as __require
|
|
70
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var t, o;
|
|
2
|
-
function v() {
|
|
3
|
-
if (o) return t;
|
|
4
|
-
o = 1;
|
|
5
|
-
var r = {
|
|
6
|
-
"prs.": 100,
|
|
7
|
-
"x-": 200,
|
|
8
|
-
"x.": 300,
|
|
9
|
-
"vnd.": 400,
|
|
10
|
-
default: 900
|
|
11
|
-
}, a = {
|
|
12
|
-
nginx: 10,
|
|
13
|
-
apache: 20,
|
|
14
|
-
iana: 40,
|
|
15
|
-
default: 30
|
|
16
|
-
// definitions added by `jshttp/mime-db` project?
|
|
17
|
-
}, c = {
|
|
18
|
-
// prefer application/xml over text/xml
|
|
19
|
-
// prefer application/rtf over text/rtf
|
|
20
|
-
application: 1,
|
|
21
|
-
// prefer font/woff over application/font-woff
|
|
22
|
-
font: 2,
|
|
23
|
-
// prefer video/mp4 over audio/mp4 over application/mp4
|
|
24
|
-
// See https://www.rfc-editor.org/rfc/rfc4337.html#section-2
|
|
25
|
-
audio: 2,
|
|
26
|
-
video: 3,
|
|
27
|
-
default: 0
|
|
28
|
-
};
|
|
29
|
-
return t = function(e, n = "default") {
|
|
30
|
-
if (e === "application/octet-stream")
|
|
31
|
-
return 0;
|
|
32
|
-
const [u, i] = e.split("/"), S = i.replace(/(\.|x-).*/, "$1"), f = r[S] || r.default, l = a[n] || a.default, s = c[u] || c.default, d = 1 - e.length / 100;
|
|
33
|
-
return f + l + s + d;
|
|
34
|
-
}, t;
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
v as __require
|
|
38
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
class r {
|
|
2
|
-
beginDrag() {
|
|
3
|
-
const t = this.spec, o = this.monitor;
|
|
4
|
-
let n = null;
|
|
5
|
-
return typeof t.item == "object" ? n = t.item : typeof t.item == "function" ? n = t.item(o) : n = {}, n ?? null;
|
|
6
|
-
}
|
|
7
|
-
canDrag() {
|
|
8
|
-
const t = this.spec, o = this.monitor;
|
|
9
|
-
return typeof t.canDrag == "boolean" ? t.canDrag : typeof t.canDrag == "function" ? t.canDrag(o) : !0;
|
|
10
|
-
}
|
|
11
|
-
isDragging(t, o) {
|
|
12
|
-
const n = this.spec, e = this.monitor, { isDragging: s } = n;
|
|
13
|
-
return s ? s(e) : o === t.getSourceId();
|
|
14
|
-
}
|
|
15
|
-
endDrag() {
|
|
16
|
-
const t = this.spec, o = this.monitor, n = this.connector, { end: e } = t;
|
|
17
|
-
e && e(o.getItem(), o), n.reconnect();
|
|
18
|
-
}
|
|
19
|
-
constructor(t, o, n) {
|
|
20
|
-
this.spec = t, this.monitor = o, this.connector = n;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
r as DragSourceImpl
|
|
25
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useMemo as r } from "react";
|
|
2
|
-
function u(e) {
|
|
3
|
-
return r(
|
|
4
|
-
() => e.hooks.dragSource(),
|
|
5
|
-
[
|
|
6
|
-
e
|
|
7
|
-
]
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
function n(e) {
|
|
11
|
-
return r(
|
|
12
|
-
() => e.hooks.dragPreview(),
|
|
13
|
-
[
|
|
14
|
-
e
|
|
15
|
-
]
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
n as useConnectDragPreview,
|
|
20
|
-
u as useConnectDragSource
|
|
21
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { invariant as n } from "../../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
-
import { useCollectedProps as c } from "../useCollectedProps.js";
|
|
3
|
-
import { useOptionalFactory as s } from "../useOptionalFactory.js";
|
|
4
|
-
import { useConnectDragSource as p, useConnectDragPreview as a } from "./connectors.js";
|
|
5
|
-
import { useDragSourceConnector as m } from "./useDragSourceConnector.js";
|
|
6
|
-
import { useDragSourceMonitor as u } from "./useDragSourceMonitor.js";
|
|
7
|
-
import { useRegisteredDragSource as g } from "./useRegisteredDragSource.js";
|
|
8
|
-
function w(t, i) {
|
|
9
|
-
const e = s(t, i);
|
|
10
|
-
n(!e.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
|
|
11
|
-
const r = u(), o = m(e.options, e.previewOptions);
|
|
12
|
-
return g(e, r, o), [
|
|
13
|
-
c(e.collect, r, o),
|
|
14
|
-
p(o),
|
|
15
|
-
a(o)
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
w as useDrag
|
|
20
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { useMemo as f, useEffect as m } from "react";
|
|
2
|
-
import { DragSourceImpl as t } from "./DragSourceImpl.js";
|
|
3
|
-
function p(r, e, u) {
|
|
4
|
-
const o = f(
|
|
5
|
-
() => new t(r, e, u),
|
|
6
|
-
[
|
|
7
|
-
e,
|
|
8
|
-
u
|
|
9
|
-
]
|
|
10
|
-
);
|
|
11
|
-
return m(() => {
|
|
12
|
-
o.spec = r;
|
|
13
|
-
}, [
|
|
14
|
-
r
|
|
15
|
-
]), o;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
p as useDragSource
|
|
19
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useMemo as t } from "react";
|
|
2
|
-
import { useDragDropManager as u } from "../useDragDropManager.js";
|
|
3
|
-
import { useIsomorphicLayoutEffect as c } from "../useIsomorphicLayoutEffect.js";
|
|
4
|
-
import { SourceConnector as m } from "../../internals/SourceConnector.js";
|
|
5
|
-
function g(o, e) {
|
|
6
|
-
const n = u(), r = t(
|
|
7
|
-
() => new m(n.getBackend()),
|
|
8
|
-
[
|
|
9
|
-
n
|
|
10
|
-
]
|
|
11
|
-
);
|
|
12
|
-
return c(() => (r.dragSourceOptions = o || null, r.reconnect(), () => r.disconnectDragSource()), [
|
|
13
|
-
r,
|
|
14
|
-
o
|
|
15
|
-
]), c(() => (r.dragPreviewOptions = e || null, r.reconnect(), () => r.disconnectDragPreview()), [
|
|
16
|
-
r,
|
|
17
|
-
e
|
|
18
|
-
]), r;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
g as useDragSourceConnector
|
|
22
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useMemo as o } from "react";
|
|
2
|
-
import { useDragDropManager as e } from "../useDragDropManager.js";
|
|
3
|
-
import { DragSourceMonitorImpl as m } from "../../internals/DragSourceMonitorImpl.js";
|
|
4
|
-
function u() {
|
|
5
|
-
const r = e();
|
|
6
|
-
return o(
|
|
7
|
-
() => new m(r),
|
|
8
|
-
[
|
|
9
|
-
r
|
|
10
|
-
]
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
u as useDragSourceMonitor
|
|
15
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { invariant as t } from "../../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
-
import { useMemo as n } from "react";
|
|
3
|
-
function i(e) {
|
|
4
|
-
return n(() => {
|
|
5
|
-
const r = e.type;
|
|
6
|
-
return t(r != null, "spec.type must be defined"), r;
|
|
7
|
-
}, [
|
|
8
|
-
e
|
|
9
|
-
]);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
i as useDragType
|
|
13
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { useDragDropManager as n } from "../useDragDropManager.js";
|
|
2
|
-
import { useIsomorphicLayoutEffect as g } from "../useIsomorphicLayoutEffect.js";
|
|
3
|
-
import { useDragSource as m } from "./useDragSource.js";
|
|
4
|
-
import { useDragType as f } from "./useDragType.js";
|
|
5
|
-
import { registerSource as c } from "../../internals/registration.js";
|
|
6
|
-
function h(t, r, e) {
|
|
7
|
-
const u = n(), a = m(t, r, e), o = f(t);
|
|
8
|
-
g(function() {
|
|
9
|
-
if (o != null) {
|
|
10
|
-
const [i, s] = c(o, a, u);
|
|
11
|
-
return r.receiveHandlerId(i), e.receiveHandlerId(i), s;
|
|
12
|
-
}
|
|
13
|
-
}, [
|
|
14
|
-
u,
|
|
15
|
-
r,
|
|
16
|
-
e,
|
|
17
|
-
a,
|
|
18
|
-
o
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
h as useRegisteredDragSource
|
|
23
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { invariant as i } from "../../../@react-dnd/invariant/dist/index.js";
|
|
2
|
-
let e = !1, n = !1;
|
|
3
|
-
class s {
|
|
4
|
-
receiveHandlerId(t) {
|
|
5
|
-
this.sourceId = t;
|
|
6
|
-
}
|
|
7
|
-
getHandlerId() {
|
|
8
|
-
return this.sourceId;
|
|
9
|
-
}
|
|
10
|
-
canDrag() {
|
|
11
|
-
i(!e, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
|
|
12
|
-
try {
|
|
13
|
-
return e = !0, this.internalMonitor.canDragSource(this.sourceId);
|
|
14
|
-
} finally {
|
|
15
|
-
e = !1;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
isDragging() {
|
|
19
|
-
if (!this.sourceId)
|
|
20
|
-
return !1;
|
|
21
|
-
i(!n, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
|
|
22
|
-
try {
|
|
23
|
-
return n = !0, this.internalMonitor.isDraggingSource(this.sourceId);
|
|
24
|
-
} finally {
|
|
25
|
-
n = !1;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
subscribeToStateChange(t, r) {
|
|
29
|
-
return this.internalMonitor.subscribeToStateChange(t, r);
|
|
30
|
-
}
|
|
31
|
-
isDraggingSource(t) {
|
|
32
|
-
return this.internalMonitor.isDraggingSource(t);
|
|
33
|
-
}
|
|
34
|
-
isOverTarget(t, r) {
|
|
35
|
-
return this.internalMonitor.isOverTarget(t, r);
|
|
36
|
-
}
|
|
37
|
-
getTargetIds() {
|
|
38
|
-
return this.internalMonitor.getTargetIds();
|
|
39
|
-
}
|
|
40
|
-
isSourcePublic() {
|
|
41
|
-
return this.internalMonitor.isSourcePublic();
|
|
42
|
-
}
|
|
43
|
-
getSourceId() {
|
|
44
|
-
return this.internalMonitor.getSourceId();
|
|
45
|
-
}
|
|
46
|
-
subscribeToOffsetChange(t) {
|
|
47
|
-
return this.internalMonitor.subscribeToOffsetChange(t);
|
|
48
|
-
}
|
|
49
|
-
canDragSource(t) {
|
|
50
|
-
return this.internalMonitor.canDragSource(t);
|
|
51
|
-
}
|
|
52
|
-
canDropOnTarget(t) {
|
|
53
|
-
return this.internalMonitor.canDropOnTarget(t);
|
|
54
|
-
}
|
|
55
|
-
getItemType() {
|
|
56
|
-
return this.internalMonitor.getItemType();
|
|
57
|
-
}
|
|
58
|
-
getItem() {
|
|
59
|
-
return this.internalMonitor.getItem();
|
|
60
|
-
}
|
|
61
|
-
getDropResult() {
|
|
62
|
-
return this.internalMonitor.getDropResult();
|
|
63
|
-
}
|
|
64
|
-
didDrop() {
|
|
65
|
-
return this.internalMonitor.didDrop();
|
|
66
|
-
}
|
|
67
|
-
getInitialClientOffset() {
|
|
68
|
-
return this.internalMonitor.getInitialClientOffset();
|
|
69
|
-
}
|
|
70
|
-
getInitialSourceClientOffset() {
|
|
71
|
-
return this.internalMonitor.getInitialSourceClientOffset();
|
|
72
|
-
}
|
|
73
|
-
getSourceClientOffset() {
|
|
74
|
-
return this.internalMonitor.getSourceClientOffset();
|
|
75
|
-
}
|
|
76
|
-
getClientOffset() {
|
|
77
|
-
return this.internalMonitor.getClientOffset();
|
|
78
|
-
}
|
|
79
|
-
getDifferenceFromInitialOffset() {
|
|
80
|
-
return this.internalMonitor.getDifferenceFromInitialOffset();
|
|
81
|
-
}
|
|
82
|
-
constructor(t) {
|
|
83
|
-
this.sourceId = null, this.internalMonitor = t.getMonitor();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
export {
|
|
87
|
-
s as DragSourceMonitorImpl
|
|
88
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { shallowEqual as i } from "../../../@react-dnd/shallowequal/dist/index.js";
|
|
2
|
-
import { isRef as n } from "./isRef.js";
|
|
3
|
-
import { wrapConnectorHooks as s } from "./wrapConnectorHooks.js";
|
|
4
|
-
class h {
|
|
5
|
-
receiveHandlerId(r) {
|
|
6
|
-
this.handlerId !== r && (this.handlerId = r, this.reconnect());
|
|
7
|
-
}
|
|
8
|
-
get connectTarget() {
|
|
9
|
-
return this.dragSource;
|
|
10
|
-
}
|
|
11
|
-
get dragSourceOptions() {
|
|
12
|
-
return this.dragSourceOptionsInternal;
|
|
13
|
-
}
|
|
14
|
-
set dragSourceOptions(r) {
|
|
15
|
-
this.dragSourceOptionsInternal = r;
|
|
16
|
-
}
|
|
17
|
-
get dragPreviewOptions() {
|
|
18
|
-
return this.dragPreviewOptionsInternal;
|
|
19
|
-
}
|
|
20
|
-
set dragPreviewOptions(r) {
|
|
21
|
-
this.dragPreviewOptionsInternal = r;
|
|
22
|
-
}
|
|
23
|
-
reconnect() {
|
|
24
|
-
const r = this.reconnectDragSource();
|
|
25
|
-
this.reconnectDragPreview(r);
|
|
26
|
-
}
|
|
27
|
-
reconnectDragSource() {
|
|
28
|
-
const r = this.dragSource, e = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange();
|
|
29
|
-
return e && this.disconnectDragSource(), this.handlerId ? r ? (e && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragSource = r, this.lastConnectedDragSourceOptions = this.dragSourceOptions, this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, r, this.dragSourceOptions)), e) : (this.lastConnectedDragSource = r, e) : e;
|
|
30
|
-
}
|
|
31
|
-
reconnectDragPreview(r = !1) {
|
|
32
|
-
const e = this.dragPreview, t = r || this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange();
|
|
33
|
-
if (t && this.disconnectDragPreview(), !!this.handlerId) {
|
|
34
|
-
if (!e) {
|
|
35
|
-
this.lastConnectedDragPreview = e;
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
t && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragPreview = e, this.lastConnectedDragPreviewOptions = this.dragPreviewOptions, this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, e, this.dragPreviewOptions));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
didHandlerIdChange() {
|
|
42
|
-
return this.lastConnectedHandlerId !== this.handlerId;
|
|
43
|
-
}
|
|
44
|
-
didConnectedDragSourceChange() {
|
|
45
|
-
return this.lastConnectedDragSource !== this.dragSource;
|
|
46
|
-
}
|
|
47
|
-
didConnectedDragPreviewChange() {
|
|
48
|
-
return this.lastConnectedDragPreview !== this.dragPreview;
|
|
49
|
-
}
|
|
50
|
-
didDragSourceOptionsChange() {
|
|
51
|
-
return !i(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
|
|
52
|
-
}
|
|
53
|
-
didDragPreviewOptionsChange() {
|
|
54
|
-
return !i(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
|
|
55
|
-
}
|
|
56
|
-
disconnectDragSource() {
|
|
57
|
-
this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), this.dragSourceUnsubscribe = void 0);
|
|
58
|
-
}
|
|
59
|
-
disconnectDragPreview() {
|
|
60
|
-
this.dragPreviewUnsubscribe && (this.dragPreviewUnsubscribe(), this.dragPreviewUnsubscribe = void 0, this.dragPreviewNode = null, this.dragPreviewRef = null);
|
|
61
|
-
}
|
|
62
|
-
get dragSource() {
|
|
63
|
-
return this.dragSourceNode || this.dragSourceRef && this.dragSourceRef.current;
|
|
64
|
-
}
|
|
65
|
-
get dragPreview() {
|
|
66
|
-
return this.dragPreviewNode || this.dragPreviewRef && this.dragPreviewRef.current;
|
|
67
|
-
}
|
|
68
|
-
clearDragSource() {
|
|
69
|
-
this.dragSourceNode = null, this.dragSourceRef = null;
|
|
70
|
-
}
|
|
71
|
-
clearDragPreview() {
|
|
72
|
-
this.dragPreviewNode = null, this.dragPreviewRef = null;
|
|
73
|
-
}
|
|
74
|
-
constructor(r) {
|
|
75
|
-
this.hooks = s({
|
|
76
|
-
dragSource: (e, t) => {
|
|
77
|
-
this.clearDragSource(), this.dragSourceOptions = t || null, n(e) ? this.dragSourceRef = e : this.dragSourceNode = e, this.reconnectDragSource();
|
|
78
|
-
},
|
|
79
|
-
dragPreview: (e, t) => {
|
|
80
|
-
this.clearDragPreview(), this.dragPreviewOptions = t || null, n(e) ? this.dragPreviewRef = e : this.dragPreviewNode = e, this.reconnectDragPreview();
|
|
81
|
-
}
|
|
82
|
-
}), this.handlerId = null, this.dragSourceRef = null, this.dragSourceOptionsInternal = null, this.dragPreviewRef = null, this.dragPreviewOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDragSource = null, this.lastConnectedDragSourceOptions = null, this.lastConnectedDragPreview = null, this.lastConnectedDragPreviewOptions = null, this.backend = r;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
export {
|
|
86
|
-
h as SourceConnector
|
|
87
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const editor: {
|
|
2
|
-
IStandaloneThemeData: Record<string, unknown>;
|
|
3
|
-
IMarker: Record<string, unknown>;
|
|
4
|
-
IStandaloneEditorConstructionOptions: Record<string, unknown>;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: {
|
|
7
|
-
editor: {
|
|
8
|
-
IStandaloneThemeData: Record<string, unknown>;
|
|
9
|
-
IMarker: Record<string, unknown>;
|
|
10
|
-
IStandaloneEditorConstructionOptions: Record<string, unknown>;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface DialAnalyticsErrorTagProps {
|
|
3
|
-
/** Text shown inside the tag. Defaults to `'Error'`. */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** Additional CSS classes applied to the tag. */
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* A non-interactive error tag used across analytics components to indicate that a
|
|
10
|
-
* Design system 1.0
|
|
11
|
-
* metric value could not be provided. Renders a {@link DialTag} styled with the
|
|
12
|
-
* error palette (`bg-error`, `text-error`, `border-error`).
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* <DialAnalyticsErrorTag />
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param [label='Error'] - Text shown inside the tag.
|
|
20
|
-
* @param [className] - Additional CSS classes applied to the tag.
|
|
21
|
-
*/
|
|
22
|
-
export declare const DialAnalyticsErrorTag: FC<DialAnalyticsErrorTagProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { DialAnalyticsCard } from './Card/Card';
|
|
2
|
-
export type { DialAnalyticsCardProps } from './Card/Card';
|
|
3
|
-
export { AnalyticsCardVariant } from '../../types/analytics';
|
|
4
|
-
export { DialAnalyticsBar } from './Bar/Bar';
|
|
5
|
-
export type { DialAnalyticsBarProps } from './Bar/Bar';
|
|
6
|
-
export { DEFAULT_ANALYTICS_BAR_COLOR_MAP } from './Bar/utils';
|
|
7
|
-
export type { AnalyticsBarColorStop, AnalyticsCardCompareItem, } from '../../models/analytics';
|
|
8
|
-
export { DialAnalyticsErrorTag } from './ErrorTag/ErrorTag';
|
|
9
|
-
export type { DialAnalyticsErrorTagProps } from './ErrorTag/ErrorTag';
|
|
10
|
-
export { DialAnalyticsBarGroup } from './BarGroup/BarGroup';
|
|
11
|
-
export type { DialAnalyticsBarGroupProps } from './BarGroup/BarGroup';
|
|
12
|
-
export { DialAnalyticsHistogram } from './Histogram/Histogram';
|
|
13
|
-
export type { DialAnalyticsHistogramProps } from './Histogram/Histogram';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
export interface DialAutocompleteInputValueProps {
|
|
3
|
-
placeholder?: string;
|
|
4
|
-
selectedItems?: string[];
|
|
5
|
-
listClassName?: string;
|
|
6
|
-
listElementClassName?: string;
|
|
7
|
-
collapseTagOverflow?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A component that displays a list of selected items in a customizable, styled list. Each item is
|
|
11
|
-
* aliases: SelectedList|ItemDisplay
|
|
12
|
-
* Design system 1.0
|
|
13
|
-
*
|
|
14
|
-
* rendered as a tag wrapped in a tooltip, allowing for truncation and additional context when
|
|
15
|
-
* hovered. The component is flexible and supports custom CSS classes for styling the list and
|
|
16
|
-
* individual list items.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <DialAutocompleteInputValue
|
|
21
|
-
* selectedItems={['Item 1', 'Item 2', 'Item 3']}
|
|
22
|
-
* listClassName="custom-list-class"
|
|
23
|
-
* listElementClassName="custom-item-class"
|
|
24
|
-
* collapseTagOverflow
|
|
25
|
-
* />
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @param [placeholder] - Placeholder text to display when no items are selected.
|
|
29
|
-
* @param [selectedItems] - An array of strings representing the selected items to display. If empty or undefined, the component renders nothing.
|
|
30
|
-
* @param [listClassName] - Additional CSS classes applied to the container element containing the list of selected items.
|
|
31
|
-
* @param [listElementClassName] - Additional CSS classes applied to each tag element representing an individual selected item.
|
|
32
|
-
* @param [collapseTagOverflow=false] - When true, keeps items on one line and shows `+N` chip with a tooltip for overflow items.
|
|
33
|
-
*/
|
|
34
|
-
export declare const DialAutocompleteInputValue: FC<DialAutocompleteInputValueProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { DialButtonProps } from '../Button/Button';
|
|
3
|
-
import { DropdownItem } from '../../models/dropdown';
|
|
4
|
-
export interface DialButtonDropdownProps extends Omit<DialButtonProps, 'iconAfter'> {
|
|
5
|
-
items: DropdownItem[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A Button dropdown component based on DialDropdown component
|
|
9
|
-
* aliases: SplitButton|MenuButton
|
|
10
|
-
* Design system 1.0
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <DialButtonDropdown
|
|
15
|
-
* title="Click me"
|
|
16
|
-
* variant={ButtonVariant.Neutral}
|
|
17
|
-
* items={[{ key: 'profile', label: 'Profile' }, { key: 'logout', label: 'Logout' }]}
|
|
18
|
-
* />
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* Inherits all props from DialButton.
|
|
22
|
-
* @param [items] - DropdownItems with actions
|
|
23
|
-
*/
|
|
24
|
-
export declare const DialButtonDropdown: FC<DialButtonDropdownProps>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode, LabelHTMLAttributes } from 'react';
|
|
2
|
-
export interface DialCheckboxProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'onChange'> {
|
|
3
|
-
id: string;
|
|
4
|
-
label?: ReactNode;
|
|
5
|
-
checked: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
indeterminate?: boolean;
|
|
8
|
-
ariaLabel?: string;
|
|
9
|
-
onChange?: (value?: boolean, id?: string) => void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A Checkbox component with styling options
|
|
13
|
-
* aliases: ToggleCheckbox|MultiSelectOption
|
|
14
|
-
* Design system 1.0
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <DialCheckbox
|
|
19
|
-
* id="checkbox"
|
|
20
|
-
* label="Dial Checkbox"
|
|
21
|
-
* checked={true}
|
|
22
|
-
* disabled={false}
|
|
23
|
-
* onChange={(value) => console.log(value)}
|
|
24
|
-
* />
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @param id - Unique identifier for the checkbox element
|
|
28
|
-
* @param [label] - The label text for the field
|
|
29
|
-
* @param [checked] - The current value of the checkbox
|
|
30
|
-
* @param [disabled=false] - Whether the checkbox is disabled
|
|
31
|
-
* @param [indeterminate=false] - indeterminate state
|
|
32
|
-
* @param [ariaLabel] - Accessible label for screen readers when no title is provided
|
|
33
|
-
* @param [onChange] - Callback function called when the checkbox value changes
|
|
34
|
-
* @param [className] - Additional CSS classes to apply to the checkbox wrapper
|
|
35
|
-
*/
|
|
36
|
-
export declare const DialCheckbox: FC<DialCheckboxProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ariaDescription = "checkbox-container";
|