@epam/ai-dial-ui-kit 0.16.0-dev.45 → 0.16.0-dev.47
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 +11 -10
- package/dist/CHANGELOG.md +4 -1
- package/dist/DateCellRenderer-uqWWm9rI.cjs +63 -0
- package/dist/MarkdownEditor-BtLY7OVq.cjs +1 -0
- 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 +99 -0
- package/dist/components/New/Analytics/Histogram/Histogram.js +212 -0
- package/dist/components-manifest.json +3153 -5303
- package/dist/constants/public-class-names.js +8 -7
- package/dist/dial-ui-kit.cjs +3 -3
- package/dist/dial-ui-kit.js +381 -456
- package/dist/editors.cjs +1 -1
- package/dist/editors.js +4 -10
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +23 -31
- package/dist/{merge-classes-B0SnCG4i.cjs → icon-D93YIwGJ.cjs} +1 -1
- package/dist/index.css +1 -1
- package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +5 -3
- package/dist/migration-guides/0.16.0/unused-legacy-components-removal.md +128 -0
- package/dist/migration-guides/README.md +1 -0
- package/dist/node_modules/react-dnd/dist/internals/registration.js +5 -13
- package/dist/src/components/New/Analytics/Bar/Bar.d.ts +86 -0
- package/dist/src/components/New/Analytics/BarGroup/BarGroup.d.ts +103 -0
- package/dist/src/components/New/Analytics/Card/Card.d.ts +91 -0
- package/dist/src/components/New/Analytics/Histogram/Histogram.d.ts +59 -0
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +8 -2
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/src/constants/public-class-names.d.ts +8 -7
- package/dist/src/index.d.ts +10 -53
- package/dist/src/subpaths/editors.d.ts +9 -15
- package/dist/src/subpaths/grid.d.ts +2 -8
- package/dist/src/types/editor.d.ts +0 -6
- package/dist/src/utils/grid-registration.d.ts +6 -8
- package/package.json +1 -12
- package/dist/DateCellRenderer-DrDOIpWg.cjs +0 -63
- package/dist/IconButton-CsePS6PY.cjs +0 -1
- package/dist/JsonEditor-DQhHSm93.cjs +0 -1
- package/dist/MarkdownEditor-CvIPIbPq.cjs +0 -1
- package/dist/MarkdownEditor-TR6X_gdl.cjs +0 -1
- package/dist/MarkdownEditorContainer-JIn_VNUX.cjs +0 -1
- package/dist/Switch-HEL_aq23.cjs +0 -1
- 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/open-popup.svg.js +0 -5
- 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/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/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/icon-CrGVkVpG.cjs +0 -1
- package/dist/icon-DhjrDQ8I.cjs +0 -1
- package/dist/lazy-kq-xfXXv.cjs +0 -1
- 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/components/AutocompleteInput/AutocompleteInputValue.d.ts +0 -34
- 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/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/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/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/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/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/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/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/storybook/form-item.d.ts +0 -3
- package/dist/src/models/segmented-control.d.ts +0 -7
- package/dist/src/types/form-item.d.ts +0 -31
- package/dist/src/types/select.d.ts +0 -8
- package/dist/types/form-item.js +0 -4
- package/dist/types/select.js +0 -5
|
@@ -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,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,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";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { FC, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
export interface DialCollapsibleSidebarProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
width?: number;
|
|
5
|
-
title: ReactNode;
|
|
6
|
-
titleClassName?: string;
|
|
7
|
-
containerClassName?: string;
|
|
8
|
-
iconSize?: number;
|
|
9
|
-
additionalButtons?: ReactNode;
|
|
10
|
-
iconStroke?: number;
|
|
11
|
-
isOpened?: boolean;
|
|
12
|
-
onToggle?: (nextOpened: boolean, e: MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A collapsible horizontal bar component that allows toggling between an expanded and collapsed state.
|
|
16
|
-
* aliases: ToggleSidebar|CollapsiblePanel
|
|
17
|
-
* Design system 1.0
|
|
18
|
-
*
|
|
19
|
-
* It supports customizable width, title, icons, additional buttons, and flexible styling options.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <DialCollapsibleSidebar
|
|
24
|
-
* width={300}
|
|
25
|
-
* title="Menu"
|
|
26
|
-
* titleClassName="text-primary font-bold"
|
|
27
|
-
* containerClassName="bg-gray-100 shadow-md"
|
|
28
|
-
* iconSize={24}
|
|
29
|
-
* additionalButtons={<button>Extra</button>}
|
|
30
|
-
* >
|
|
31
|
-
* <div>Content goes here</div>
|
|
32
|
-
* </DialCollapsibleSidebar>
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @param children - The content to display inside the collapsible bar when expanded
|
|
36
|
-
* @param [width = 280] - The width of the bar when expanded
|
|
37
|
-
* @param title - The title displayed when the bar is collapsed
|
|
38
|
-
* @param [titleClassName] - Additional CSS classes applied to the title element
|
|
39
|
-
* @param [containerClassName] - Additional CSS classes applied to the container element
|
|
40
|
-
* @param [iconSize = 32] - The size of the toggle icons. Defaults to 32
|
|
41
|
-
* @param [iconStroke = 1.5] - The stroke width of the toggle icons. Defaults to 1.5
|
|
42
|
-
* @param [additionalButtons] - Additional buttons or elements displayed next to the toggle button when expanded
|
|
43
|
-
* @param [isOpened] - When provided, the component becomes controlled by this value
|
|
44
|
-
* @param [onToggle] - Fired when user clicks the toggle in controlled mode, with the next state
|
|
45
|
-
*/
|
|
46
|
-
export declare const DialCollapsibleSidebar: FC<DialCollapsibleSidebarProps>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialPopupProps } from '../Popup/Popup';
|
|
3
|
-
import { ConfirmationPopupVariant } from '../../types/confirmation-popup';
|
|
4
|
-
export interface DialConfirmationPopupProps extends DialPopupProps {
|
|
5
|
-
description?: ReactNode;
|
|
6
|
-
descriptionClassName?: string;
|
|
7
|
-
confirmLabel?: string;
|
|
8
|
-
cancelLabel?: string;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
disableConfirmButton?: boolean;
|
|
11
|
-
confirmClassName?: string;
|
|
12
|
-
onConfirm: () => void;
|
|
13
|
-
onCancel?: () => void;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
variant?: ConfirmationPopupVariant;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A confirmation dialog built with DialPopup and DialButton.
|
|
19
|
-
* aliases: ConfirmDialog|WarningDialog
|
|
20
|
-
* Design system 1.0
|
|
21
|
-
*
|
|
22
|
-
* Provides an accessible modal with a title, optional description or custom content,
|
|
23
|
-
* and a footer with Cancel / Confirm actions.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* <ConfirmationModal
|
|
28
|
-
* open
|
|
29
|
-
* header="Delete item?"
|
|
30
|
-
* description="This action cannot be undone."
|
|
31
|
-
* confirmLabel="Delete"
|
|
32
|
-
* onClose={() => setOpen(false)}
|
|
33
|
-
* onConfirm={handleDelete}
|
|
34
|
-
* />
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @param header - Title content for the header
|
|
38
|
-
* @param [description] - Secondary text (ignored when `children` set)
|
|
39
|
-
* @param [descriptionClassName] - Custom CSS class for the description
|
|
40
|
-
* @param [open=false] - Controls visibility of the popup
|
|
41
|
-
* @param [confirmLabel="Ok"] - Label for the confirm button
|
|
42
|
-
* @param [cancelLabel="Cancel"] - Label for the cancel button
|
|
43
|
-
* @param [isLoading=false] - Shows loader placeholder and hides actions
|
|
44
|
-
* @param [disableConfirmButton=false] - Disables the confirm button
|
|
45
|
-
* @param [className] - Extra classes for the popup container
|
|
46
|
-
* @param [confirmClassName] - Extra classes merged into the confirm button
|
|
47
|
-
* @param onClose - Fired on close
|
|
48
|
-
* @param onConfirm - Fired on confirm
|
|
49
|
-
* @param [onCancel] - Fired on cancel (falls back to `onClose`)
|
|
50
|
-
* @param [children] - Custom body content
|
|
51
|
-
* @param [dividers=false] - Whether to render separators between sections
|
|
52
|
-
* @param [variant=ConfirmationPopupVariant.Info] - Visual variant for the popup
|
|
53
|
-
* @param [size=PopupSize.Sm] - Size of the popup
|
|
54
|
-
*/
|
|
55
|
-
export declare const DialConfirmationPopup: FC<DialConfirmationPopupProps>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonAppearance, ButtonVariant } from '../../types/button';
|
|
2
|
-
import { ConfirmationPopupVariant } from '../../types/confirmation-popup';
|
|
3
|
-
export declare const actionsBaseClassName = "flex justify-end gap-2 px-6 py-4 border-t border-tertiary";
|
|
4
|
-
export declare const descriptionBaseClassName = "text-secondary dial-small-text px-6 pb-4";
|
|
5
|
-
export declare const defaultCancelLabel = "Cancel";
|
|
6
|
-
export declare const defaultConfirmLabel = "Ok";
|
|
7
|
-
export declare const variantConfig: Record<ConfirmationPopupVariant, {
|
|
8
|
-
container?: string;
|
|
9
|
-
confirm?: {
|
|
10
|
-
variant: ButtonVariant;
|
|
11
|
-
appearance: ButtonAppearance;
|
|
12
|
-
};
|
|
13
|
-
confirmClassName?: string;
|
|
14
|
-
cancel?: {
|
|
15
|
-
variant: ButtonVariant;
|
|
16
|
-
appearance: ButtonAppearance;
|
|
17
|
-
};
|
|
18
|
-
}>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface DialDraggableItemProps {
|
|
3
|
-
id: string;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
ariaLabel?: string;
|
|
7
|
-
onFind?: (field: string) => number;
|
|
8
|
-
onMove?: (field: string, atIndex: number) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A lightweight wrapper that makes its children sortable via drag-and-drop.
|
|
12
|
-
* aliases: SortableItem|DragHandle
|
|
13
|
-
* Design system 1.0
|
|
14
|
-
*
|
|
15
|
-
* Renders a row with a grab handle (left) and the provided content (right).
|
|
16
|
-
* Integrates with `react-dnd` using a simple "column" drag type and delegates
|
|
17
|
-
* reordering logic to the provided `findItem` and `moveItem` callbacks.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* <DialDraggableItem id="a" findItem={find} moveItem={move}>
|
|
22
|
-
* <span>Item A</span>
|
|
23
|
-
* </DialDraggableItem>
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param id - Unique identifier of the draggable item
|
|
27
|
-
* @param children - Content rendered within the draggable row
|
|
28
|
-
* @param [className] - Additional CSS classes applied to the root container
|
|
29
|
-
* @param [onFind] - Function to resolve an item's current index by id
|
|
30
|
-
* @param [onMove] - Function to move an item (by id) to a target index
|
|
31
|
-
* @param [ariaLabel='Drag item'] - Accessible label for the handle
|
|
32
|
-
*/
|
|
33
|
-
export declare const DialDraggableItem: FC<DialDraggableItemProps>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { DialDropdownProps } from '../Dropdown/Dropdown';
|
|
3
|
-
import { ElementSize } from '../../types/size';
|
|
4
|
-
export interface DialDropdownIconProps extends Omit<DialDropdownProps, 'children' | 'className'> {
|
|
5
|
-
icon: ReactNode;
|
|
6
|
-
ariaLabel: string;
|
|
7
|
-
size?: ElementSize;
|
|
8
|
-
className?: string;
|
|
9
|
-
buttonClassName?: string;
|
|
10
|
-
iconClassName?: string;
|
|
11
|
-
caretIcon?: ReactNode;
|
|
12
|
-
showCaret?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A compact icon trigger with a dropdown menu.
|
|
16
|
-
* aliases: ModelPicker|IconMenu|AvatarDropdown
|
|
17
|
-
* Design system 1.0
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* <DialDropdownIcon
|
|
22
|
-
* ariaLabel="Select model"
|
|
23
|
-
* icon={<IconBrandOpenai size={18} />}
|
|
24
|
-
* items={items}
|
|
25
|
-
* />
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @param items - Menu items to display.
|
|
29
|
-
* @param icon - Primary trigger icon.
|
|
30
|
-
* @param ariaLabel - Accessible name for the trigger button.
|
|
31
|
-
* @param [size=ElementSize.Standard] - Trigger size.
|
|
32
|
-
* @param [className] - Additional CSS classes applied to the dropdown wrapper.
|
|
33
|
-
* @param [buttonClassName] - Additional CSS classes applied to the trigger button.
|
|
34
|
-
* @param [iconClassName] - Additional CSS classes applied to the primary icon wrapper.
|
|
35
|
-
* @param [caretIcon] - Custom caret icon.
|
|
36
|
-
* @param [showCaret=true] - Whether to render the caret.
|
|
37
|
-
*/
|
|
38
|
-
export declare const DialDropdownIcon: FC<DialDropdownIconProps>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface DialFileIconProps {
|
|
3
|
-
extension?: string;
|
|
4
|
-
size?: number;
|
|
5
|
-
stroke?: number;
|
|
6
|
-
className?: string;
|
|
7
|
-
decorative?: boolean;
|
|
8
|
-
label?: ReactNode;
|
|
9
|
-
indicator?: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Renders a file-type icon based on a file extension.
|
|
13
|
-
* aliases: ExtensionIcon|TypeIcon
|
|
14
|
-
* Design system 1.0
|
|
15
|
-
*
|
|
16
|
-
* Uses DialIcon to provide consistent icon wrapper styling.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <DialFileIcon extension=".pdf" />
|
|
21
|
-
* <DialFileIcon extension="tsx" size={28} stroke={1.25} />
|
|
22
|
-
* <DialFileIcon extension="unknown" decorative /> // decorative, hidden from AT
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @param extension - File extension string (with or without leading dot)
|
|
26
|
-
* @param [size=baseIconProps.size] - Icon pixel size
|
|
27
|
-
* @param [stroke=baseIconProps.stroke] - Tabler icon stroke width
|
|
28
|
-
* @param [className] - Additional classes on the container
|
|
29
|
-
* @param [decorative=false] - Whether the icon should be hidden from assistive technologies
|
|
30
|
-
* @param [label] - Accessible label when not decorative; defaults to "<EXT> file icon"
|
|
31
|
-
* @param [indicator] - Optional indicator element to display alongside the icon
|
|
32
|
-
*/
|
|
33
|
-
export declare const DialFileIcon: FC<DialFileIconProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type ExtensionKey = '.bmp' | '.cpp' | '.c' | '.cs' | '.css' | '.csv' | '.doc' | '.docx' | '.html' | '.ini' | '.jpg' | '.js' | '.json' | '.jsx' | '.md' | '.pdf' | '.php' | '.png' | '.ppt' | '.py' | '.rs' | '.sql' | '.svg' | '.ts' | '.tsx' | '.txt' | '.vue' | '.xls' | '.xml' | '.zip';
|
|
3
|
-
export interface BaseFileIconOpts {
|
|
4
|
-
size?: number;
|
|
5
|
-
stroke?: number;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const fileIconFactories: Record<string, (opts: BaseFileIconOpts) => ReactNode>;
|
|
9
|
-
export declare const supportedExtensions: ExtensionKey[];
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface DialFileNameProps {
|
|
3
|
-
name: string;
|
|
4
|
-
fileExtension?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
shared?: boolean;
|
|
7
|
-
iconSize?: number;
|
|
8
|
-
details?: ReactNode;
|
|
9
|
-
sharedIndicatorClassName?: string;
|
|
10
|
-
sharedIndicatorTooltip?: ReactNode;
|
|
11
|
-
hideTooltip?: boolean;
|
|
12
|
-
isInvalidName?: boolean;
|
|
13
|
-
tooltipContent?: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Component to display a file name with a file icon and shared indicator.
|
|
17
|
-
* aliases: FileDisplay|NameDisplay
|
|
18
|
-
* Design system 1.0
|
|
19
|
-
*
|
|
20
|
-
* Handles long names with ellipsis and tooltip.
|
|
21
|
-
*
|
|
22
|
-
* If `details` is provided (e.g., file size, date), the component switches to
|
|
23
|
-
* a vertical layout and renders the extra information below the file name.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* // Without details
|
|
28
|
-
* <DialFileName name="Document.pdf" />
|
|
29
|
-
*
|
|
30
|
-
* // With details (file size and updated date)
|
|
31
|
-
* <DialFileName
|
|
32
|
-
* name="Document.pdf"
|
|
33
|
-
* details={<span className="text-secondary">24 KB · Jul 20, 2025</span>}
|
|
34
|
-
* />
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @param name - Full file name with or without extension.
|
|
38
|
-
* @param className - Additional CSS classes for the root container.
|
|
39
|
-
* @param shared - Whether the file is shared.
|
|
40
|
-
* @param iconSize - Icon size in px. Default: BASE_ICON_SIZE.
|
|
41
|
-
* @param details - Optional metadata block displayed under the file name (e.g., size, modified date).
|
|
42
|
-
* @param sharedIndicatorClassName - Additional CSS classes for the shared indicator.
|
|
43
|
-
* @param sharedIndicatorTooltip - Custom tooltip content for the shared indicator; defaults to "Shared"
|
|
44
|
-
* @param isInvalidName - If true, applies disabled styling to indicate the file name has invalid characters.
|
|
45
|
-
* @param tooltipContent - Custom tooltip content to show when the name is truncated; defaults to showing the full name.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*/
|
|
49
|
-
export declare const DialFileName: FC<DialFileNameProps>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
export interface DialFolderNameProps {
|
|
3
|
-
name: string;
|
|
4
|
-
shared?: boolean;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
iconSize?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
sharedIndicatorClassName?: string;
|
|
9
|
-
sharedIndicatorTooltip?: ReactNode;
|
|
10
|
-
hideTooltip?: boolean;
|
|
11
|
-
isInvalidName?: boolean;
|
|
12
|
-
tooltipContent?: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Component to display a folder name with a folder icon and shared indicator.
|
|
16
|
-
* aliases: FolderDisplay|DirectoryName
|
|
17
|
-
* Design system 1.0
|
|
18
|
-
*
|
|
19
|
-
* Handles long names with ellipsis and tooltip.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <DialFolderName name="Organization" />
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @param name - Folder name
|
|
27
|
-
* @param className - Additional CSS classes for the root container
|
|
28
|
-
* @param shared - If true, shows shared indicator. Default: false.
|
|
29
|
-
* @param loading - If true, shows loading state. Default: false.
|
|
30
|
-
* @param iconSize - Icon size in px. Default: BASE_ICON_SIZE.
|
|
31
|
-
* @param sharedIndicatorClassName - Additional CSS classes for the shared indicator
|
|
32
|
-
* @param sharedIndicatorTooltip - Custom tooltip content for the shared indicator; defaults to "Shared"
|
|
33
|
-
* @param isInvalidName - If true, applies disabled styling to indicate the file name has invalid characters.
|
|
34
|
-
* @param hideTooltip - If true, disables the tooltip even if the name is truncated.
|
|
35
|
-
* @param tooltipContent - Custom tooltip content to show when the name is truncated; defaults to showing the full name.
|
|
36
|
-
*/
|
|
37
|
-
export declare const DialFolderName: FC<DialFolderNameProps>;
|