@eccenca/gui-elements 23.1.0-rc.2 → 23.1.0-rc.3
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/CHANGELOG.md +54 -10
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +6 -4
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +33 -8
- package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js +52 -0
- package/dist/cjs/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -0
- package/dist/cjs/cmem/ConfidenceValue/index.js +14 -0
- package/dist/cjs/cmem/ConfidenceValue/index.js.map +1 -0
- package/dist/cjs/cmem/index.js +11 -0
- package/dist/cjs/cmem/index.js.map +1 -1
- package/dist/cjs/cmem/markdown/Markdown.js +8 -4
- package/dist/cjs/cmem/markdown/Markdown.js.map +1 -1
- package/dist/cjs/common/Intent/index.js +1 -0
- package/dist/cjs/common/Intent/index.js.map +1 -1
- package/dist/cjs/common/utils/CssCustomProperties.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +10 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js +8 -10
- package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -1
- package/dist/cjs/components/Card/Card.js +7 -6
- package/dist/cjs/components/Card/Card.js.map +1 -1
- package/dist/cjs/components/Card/CardContent.js +4 -2
- package/dist/cjs/components/Card/CardContent.js.map +1 -1
- package/dist/cjs/components/Card/CardHeader.js.map +1 -1
- package/dist/cjs/components/Depiction/Depiction.js +13 -13
- package/dist/cjs/components/Depiction/Depiction.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +6 -0
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.js +24 -9
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/components/ProgressBar/index.js +14 -0
- package/dist/cjs/components/ProgressBar/index.js.map +1 -0
- package/dist/cjs/components/Separation/Divider.js +20 -2
- package/dist/cjs/components/Separation/Divider.js.map +1 -1
- package/dist/cjs/components/Switch/Switch.js +2 -2
- package/dist/cjs/components/Switch/Switch.js.map +1 -1
- package/dist/cjs/components/Table/Table.js +46 -0
- package/dist/cjs/components/Table/Table.js.map +1 -0
- package/dist/cjs/components/Table/TableCell.js +29 -0
- package/dist/cjs/components/Table/TableCell.js.map +1 -0
- package/dist/cjs/components/Table/TableContainer.js +32 -0
- package/dist/cjs/components/Table/TableContainer.js.map +1 -0
- package/dist/cjs/components/Table/TableExpandHeader.js +36 -0
- package/dist/cjs/components/Table/TableExpandHeader.js.map +1 -0
- package/dist/cjs/components/Table/TableExpandRow.js +45 -0
- package/dist/cjs/components/Table/TableExpandRow.js.map +1 -0
- package/dist/cjs/components/{SimpleTable/TableContainer.js → Table/TableRow.js} +9 -11
- package/dist/cjs/components/Table/TableRow.js.map +1 -0
- package/dist/cjs/components/Table/index.js +26 -0
- package/dist/cjs/components/Table/index.js.map +1 -0
- package/dist/cjs/components/Tag/TagList.js.map +1 -1
- package/dist/cjs/components/Tag/index.js +11 -0
- package/dist/cjs/components/Tag/index.js.map +1 -0
- package/dist/cjs/components/TextField/TextField.js +25 -9
- package/dist/cjs/components/TextField/TextField.js.map +1 -1
- package/dist/cjs/components/index.js +4 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js +20 -5
- package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js +74 -0
- package/dist/cjs/extensions/react-flow/edges/EdgeLabel.js.map +1 -0
- package/dist/cjs/extensions/react-flow/edges/edgeTypes.js +10 -9
- package/dist/cjs/extensions/react-flow/edges/edgeTypes.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js +14 -3
- package/dist/cjs/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/index.js +13 -3
- package/dist/cjs/extensions/react-flow/index.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +113 -33
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +5 -2
- package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/cjs/extensions/react-flow/versionsupport.js +20 -0
- package/dist/cjs/extensions/react-flow/versionsupport.js.map +1 -0
- package/dist/cjs/index.js +3 -19
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +6 -4
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js +35 -10
- package/dist/esm/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js +56 -0
- package/dist/esm/cmem/ConfidenceValue/ConfidenceValue.js.map +1 -0
- package/dist/esm/cmem/ConfidenceValue/index.js +2 -0
- package/dist/esm/cmem/ConfidenceValue/index.js.map +1 -0
- package/dist/esm/cmem/index.js +1 -0
- package/dist/esm/cmem/index.js.map +1 -1
- package/dist/esm/cmem/markdown/Markdown.js +8 -4
- package/dist/esm/cmem/markdown/Markdown.js.map +1 -1
- package/dist/esm/common/Intent/index.js +1 -0
- package/dist/esm/common/Intent/index.js.map +1 -1
- package/dist/esm/common/utils/CssCustomProperties.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +10 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/SingleLineCodeEditor.js +8 -10
- package/dist/esm/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -1
- package/dist/esm/components/Card/Card.js +7 -6
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/CardContent.js +4 -2
- package/dist/esm/components/Card/CardContent.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/Depiction/Depiction.js +15 -14
- package/dist/esm/components/Depiction/Depiction.js.map +1 -1
- package/dist/esm/components/Icon/canonicalIconNames.js +6 -0
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Pagination/Pagination.js +25 -10
- package/dist/esm/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/ProgressBar/index.js +2 -0
- package/dist/esm/components/ProgressBar/index.js.map +1 -0
- package/dist/esm/components/Separation/Divider.js +29 -3
- package/dist/esm/components/Separation/Divider.js.map +1 -1
- package/dist/esm/components/Switch/Switch.js +2 -2
- package/dist/esm/components/Switch/Switch.js.map +1 -1
- package/dist/esm/components/Table/Table.js +50 -0
- package/dist/esm/components/Table/Table.js.map +1 -0
- package/dist/esm/components/{SimpleTable/TableContainer.js → Table/TableCell.js} +8 -12
- package/dist/esm/components/Table/TableCell.js.map +1 -0
- package/dist/esm/components/Table/TableContainer.js +36 -0
- package/dist/esm/components/Table/TableContainer.js.map +1 -0
- package/dist/esm/components/Table/TableExpandHeader.js +40 -0
- package/dist/esm/components/Table/TableExpandHeader.js.map +1 -0
- package/dist/esm/components/Table/TableExpandRow.js +49 -0
- package/dist/esm/components/Table/TableExpandRow.js.map +1 -0
- package/dist/esm/components/Table/TableRow.js +33 -0
- package/dist/esm/components/Table/TableRow.js.map +1 -0
- package/dist/esm/components/Table/index.js +9 -0
- package/dist/esm/components/Table/index.js.map +1 -0
- package/dist/esm/components/Tag/TagList.js.map +1 -1
- package/dist/esm/components/Tag/index.js +4 -0
- package/dist/esm/components/Tag/index.js.map +1 -0
- package/dist/esm/components/TextField/TextField.js +26 -10
- package/dist/esm/components/TextField/TextField.js.map +1 -1
- package/dist/esm/components/index.js +4 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeDefault.js +20 -4
- package/dist/esm/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js +63 -0
- package/dist/esm/extensions/react-flow/edges/EdgeLabel.js.map +1 -0
- package/dist/esm/extensions/react-flow/edges/edgeTypes.js +10 -9
- package/dist/esm/extensions/react-flow/edges/edgeTypes.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js +15 -4
- package/dist/esm/extensions/react-flow/handles/HandleDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/index.js +2 -1
- package/dist/esm/extensions/react-flow/index.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js +121 -38
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js +5 -2
- package/dist/esm/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
- package/dist/esm/extensions/react-flow/versionsupport.js +32 -0
- package/dist/esm/extensions/react-flow/versionsupport.js.map +1 -0
- package/dist/esm/index.js +3 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +1 -1
- package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +6 -2
- package/dist/types/cmem/ConfidenceValue/ConfidenceValue.d.ts +46 -0
- package/dist/types/cmem/ConfidenceValue/index.d.ts +1 -0
- package/dist/types/cmem/index.d.ts +1 -0
- package/dist/types/cmem/markdown/Markdown.d.ts +6 -1
- package/dist/types/common/Intent/index.d.ts +1 -1
- package/dist/types/common/utils/CssCustomProperties.d.ts +1 -1
- package/dist/types/components/Card/Card.d.ts +5 -1
- package/dist/types/components/Card/CardContent.d.ts +7 -1
- package/dist/types/components/Card/CardHeader.d.ts +9 -1
- package/dist/types/components/Grid/Grid.d.ts +1 -1
- package/dist/types/components/Grid/GridColumn.d.ts +1 -1
- package/dist/types/components/Grid/GridRow.d.ts +1 -1
- package/dist/types/components/Icon/IconButton.d.ts +1 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +5 -1
- package/dist/types/components/ProgressBar/index.d.ts +1 -0
- package/dist/types/components/Separation/Divider.d.ts +18 -2
- package/dist/types/components/Separation/Spacing.d.ts +1 -1
- package/dist/types/components/Switch/Switch.d.ts +5 -1
- package/dist/types/components/Table/Table.d.ts +32 -0
- package/dist/types/components/Table/TableCell.d.ts +11 -0
- package/dist/types/components/Table/TableContainer.d.ts +13 -0
- package/dist/types/components/Table/TableExpandHeader.d.ts +13 -0
- package/dist/types/components/Table/TableExpandRow.d.ts +17 -0
- package/dist/types/components/Table/TableRow.d.ts +10 -0
- package/dist/types/components/Table/index.d.ts +7 -0
- package/dist/types/components/Tag/Tag.d.ts +1 -1
- package/dist/types/components/Tag/TagList.d.ts +5 -2
- package/dist/types/components/Tag/index.d.ts +4 -0
- package/dist/types/components/TextField/TextField.d.ts +9 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/extensions/react-flow/edges/EdgeDefault.d.ts +16 -1
- package/dist/types/extensions/react-flow/edges/EdgeLabel.d.ts +44 -0
- package/dist/types/extensions/react-flow/edges/edgeTypes.d.ts +10 -9
- package/dist/types/extensions/react-flow/handles/HandleDefault.d.ts +11 -3
- package/dist/types/extensions/react-flow/index.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +55 -8
- package/dist/types/extensions/react-flow/nodes/NodeDefault.d.ts +2 -1
- package/dist/types/extensions/react-flow/versionsupport.d.ts +7 -0
- package/dist/types/index.d.ts +1 -6
- package/package.json +2 -1
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +5 -5
- package/src/cmem/ActivityControl/SilkActivityControl.tsx +44 -17
- package/src/cmem/ConfidenceValue/ConfidenceValue.stories.tsx +22 -0
- package/src/cmem/ConfidenceValue/ConfidenceValue.tsx +116 -0
- package/src/cmem/ConfidenceValue/confidencevalue.scss +49 -0
- package/src/cmem/ConfidenceValue/index.ts +1 -0
- package/src/cmem/_index.scss +1 -0
- package/src/cmem/index.ts +2 -0
- package/src/cmem/markdown/Markdown.stories.tsx +3 -1
- package/src/cmem/markdown/Markdown.tsx +22 -10
- package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +2 -2
- package/src/cmem/react-flow/_edges.scss +3 -2
- package/src/cmem/react-flow/configuration/_colors-workflow.scss +3 -0
- package/src/common/Intent/index.ts +2 -1
- package/src/common/utils/CssCustomProperties.ts +1 -1
- package/src/components/AutoSuggestion/AutoSuggestion.scss +1 -0
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +10 -1
- package/src/components/AutoSuggestion/SingleLineCodeEditor.tsx +8 -10
- package/src/components/AutoSuggestion/tests/SingleLineCodeEditor.test.tsx +5 -0
- package/src/components/Badge/badge.scss +2 -5
- package/src/components/Card/Card.tsx +11 -5
- package/src/components/Card/CardContent.tsx +12 -1
- package/src/components/Card/CardHeader.tsx +9 -1
- package/src/components/Card/card.scss +108 -3
- package/src/components/Checkbox/checkbox.scss +6 -2
- package/src/components/Depiction/Depiction.tsx +11 -10
- package/src/components/Grid/Grid.tsx +1 -1
- package/src/components/Grid/GridColumn.tsx +1 -1
- package/src/components/Grid/GridRow.tsx +1 -1
- package/src/components/Icon/IconButton.tsx +1 -1
- package/src/components/Icon/canonicalIconNames.tsx +13 -0
- package/src/components/Menu/menu.scss +4 -0
- package/src/components/OverviewItem/overviewitem.scss +2 -2
- package/src/components/Pagination/Pagination.tsx +29 -9
- package/src/components/Pagination/pagination.scss +16 -0
- package/src/components/ProgressBar/index.ts +1 -0
- package/src/components/Separation/Divider.tsx +36 -2
- package/src/components/Separation/Spacing.tsx +1 -1
- package/src/components/Separation/Stories/Divider.stories.tsx +22 -0
- package/src/components/Separation/separation.scss +31 -5
- package/src/components/Switch/Switch.tsx +6 -2
- package/src/components/Table/Table.tsx +88 -0
- package/src/components/Table/TableCell.tsx +37 -0
- package/src/components/Table/TableContainer.tsx +49 -0
- package/src/components/Table/TableExpandHeader.tsx +51 -0
- package/src/components/Table/TableExpandRow.tsx +70 -0
- package/src/components/Table/TableRow.tsx +36 -0
- package/src/components/Table/index.tsx +14 -0
- package/src/components/Table/table.scss +323 -0
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/Tag/TagList.tsx +5 -3
- package/src/components/Tag/index.ts +5 -0
- package/src/components/Tag/{Tag.stories.tsx → stories/Tag.stories.tsx} +3 -2
- package/src/components/Tag/stories/TagList.stories.tsx +28 -0
- package/src/components/Tag/tag.scss +1 -0
- package/src/components/TextField/TextField.tsx +43 -12
- package/src/components/TextField/stories/TextField.stories.tsx +3 -0
- package/src/components/TextField/textfield.scss +23 -1
- package/src/components/Tree/tree.scss +4 -0
- package/src/components/Typography/typography.scss +2 -2
- package/src/components/index.scss +1 -0
- package/src/components/index.ts +5 -0
- package/src/extensions/react-flow/_config.scss +8 -4
- package/src/extensions/react-flow/edges/EdgeDefault.tsx +60 -5
- package/src/extensions/react-flow/edges/EdgeLabel.tsx +127 -0
- package/src/extensions/react-flow/edges/_edges.scss +214 -38
- package/src/extensions/react-flow/edges/edgeTypes.ts +13 -9
- package/src/extensions/react-flow/edges/stories/EdgeDefault.stories.tsx +34 -13
- package/src/extensions/react-flow/edges/stories/EdgeLabel.stories.tsx +40 -0
- package/src/extensions/react-flow/handles/HandleDefault.tsx +41 -10
- package/src/extensions/react-flow/index.ts +3 -2
- package/src/extensions/react-flow/nodes/NodeContent.tsx +233 -60
- package/src/extensions/react-flow/nodes/NodeDefault.tsx +7 -2
- package/src/extensions/react-flow/nodes/_nodes.scss +232 -67
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +67 -1
- package/src/extensions/react-flow/versionsupport.ts +22 -0
- package/src/index.scss +0 -1
- package/src/index.ts +5 -38
- package/dist/cjs/components/SimpleTable/TableContainer.js.map +0 -1
- package/dist/cjs/components/SimpleTable/index.js +0 -16
- package/dist/cjs/components/SimpleTable/index.js.map +0 -1
- package/dist/esm/components/SimpleTable/TableContainer.js.map +0 -1
- package/dist/esm/components/SimpleTable/index.js +0 -4
- package/dist/esm/components/SimpleTable/index.js.map +0 -1
- package/dist/types/components/SimpleTable/TableContainer.d.ts +0 -3
- package/dist/types/components/SimpleTable/index.d.ts +0 -3
- package/src/components/SimpleTable/TableContainer.tsx +0 -20
- package/src/components/SimpleTable/index.tsx +0 -4
- package/src/components/SimpleTable/simpletable.scss +0 -180
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Color from "color";
|
|
3
|
+
import { TagProps } from "./../../components/Tag";
|
|
4
|
+
import { ProgressBarProps } from "./../../components/ProgressBar";
|
|
5
|
+
export interface ConfidenceValueProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
6
|
+
/**
|
|
7
|
+
* Confidence value.
|
|
8
|
+
*/
|
|
9
|
+
value: number;
|
|
10
|
+
/**
|
|
11
|
+
* Minimal border for the confidence range.
|
|
12
|
+
*/
|
|
13
|
+
minValue?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Center (or average) value of the confidence range.
|
|
16
|
+
*/
|
|
17
|
+
centerValue?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum border for the confidence range.
|
|
20
|
+
*/
|
|
21
|
+
maxValue?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Color of the confidence bar.
|
|
24
|
+
* By default it is colorized red for values below the `centerValue`, otherwise green.
|
|
25
|
+
*/
|
|
26
|
+
barColor?: Color | string;
|
|
27
|
+
/**
|
|
28
|
+
* The value is displayed by a bar.
|
|
29
|
+
* This confidence bar can be start from the left or right side, or from the center of the element.
|
|
30
|
+
*/
|
|
31
|
+
barStart?: "side" | "center";
|
|
32
|
+
/**
|
|
33
|
+
* What width is used to display the lement.
|
|
34
|
+
* It could use the `minimal` necessary space, the `maximal` available space, or a `static` width.
|
|
35
|
+
*/
|
|
36
|
+
spaceUsage?: "minimal" | "static" | "maximal";
|
|
37
|
+
/**
|
|
38
|
+
* Additional properties for the `<Tag/>` element that is used to display the confidence value.
|
|
39
|
+
*/
|
|
40
|
+
tagProps?: Omit<TagProps, "className">;
|
|
41
|
+
/**
|
|
42
|
+
* Additional properties for the `<PRogressBar/>` element that is used to display the confidence bar.
|
|
43
|
+
*/
|
|
44
|
+
progressBarProps?: Omit<ProgressBarProps, "className">;
|
|
45
|
+
}
|
|
46
|
+
export declare function ConfidenceValue({ className, value, minValue, maxValue, centerValue, barColor, barStart, spaceUsage, tagProps, progressBarProps, ...otherProps }: ConfidenceValueProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ConfidenceValue";
|
|
@@ -9,3 +9,4 @@ export { Markdown } from "./markdown/Markdown";
|
|
|
9
9
|
export { ReactFlow } from "./react-flow/ReactFlow/ReactFlow";
|
|
10
10
|
export { StickyNoteModal } from "./react-flow/StickyNoteModal/StickyNoteModal";
|
|
11
11
|
export type { IActivityStatus, ActivityAction, IActivityControlLayoutProps, TimeUnits, };
|
|
12
|
+
export * from "./ConfidenceValue";
|
|
@@ -26,6 +26,11 @@ export interface MarkdownParserProps extends TestableComponent {
|
|
|
26
26
|
* @see https://github.com/remarkjs/react-markdown#architecture
|
|
27
27
|
*/
|
|
28
28
|
reHypePlugins?: PluggableList;
|
|
29
|
+
/**
|
|
30
|
+
* Name for browser target where links withing the Markdown content are opened.
|
|
31
|
+
* Set to `false` to disable this feature.
|
|
32
|
+
*/
|
|
33
|
+
linkTargetName?: false | string;
|
|
29
34
|
}
|
|
30
35
|
/** Renders a markdown string. */
|
|
31
|
-
export declare const Markdown: ({ children, allowHtml, removeMarkup, inheritBlock, allowedElements, reHypePlugins, ...otherProps }: MarkdownParserProps) => JSX.Element;
|
|
36
|
+
export declare const Markdown: ({ children, allowHtml, removeMarkup, inheritBlock, allowedElements, reHypePlugins, linkTargetName, ...otherProps }: MarkdownParserProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare type IntentTypes = "neutral" | "primary" | "accent" | "info" | "success" | "warning" | "danger";
|
|
1
|
+
export declare type IntentTypes = "none" | "neutral" | "primary" | "accent" | "info" | "success" | "warning" | "danger";
|
|
2
2
|
export declare const Definitions: {
|
|
3
3
|
[key: string]: IntentTypes;
|
|
4
4
|
};
|
|
@@ -22,7 +22,7 @@ export default class CssCustomProperties {
|
|
|
22
22
|
static listLocalStylesheets: () => CSSStyleSheet[];
|
|
23
23
|
static listLocalCssRules: () => CSSRule[];
|
|
24
24
|
static listLocalCssStyleRules: (filter?: getLocalCssStyleRulesProps) => AllowedCSSRule[];
|
|
25
|
-
static listLocalCssStyleRuleProperties: (filter?: getLocalCssStyleRulePropertiesProps) =>
|
|
25
|
+
static listLocalCssStyleRuleProperties: (filter?: getLocalCssStyleRulePropertiesProps) => any[][];
|
|
26
26
|
static listCustomProperties: (props?: getCustomPropertiesProps) => any;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -19,10 +19,14 @@ export interface CardProps extends BlueprintCardProps {
|
|
|
19
19
|
* Property value defined which part of the card is always scrolled in, this may important when the card is larger than the viewport.
|
|
20
20
|
*/
|
|
21
21
|
scrollinOnFocus?: "start" | "center" | "end";
|
|
22
|
+
/**
|
|
23
|
+
* Controls how much whitespace is displayed within the card subelements.
|
|
24
|
+
*/
|
|
25
|
+
whitespaceAmount?: "none" | "small" | "medium" | "large";
|
|
22
26
|
}
|
|
23
27
|
/**
|
|
24
28
|
* Element to separate content sections from each other.
|
|
25
29
|
* Cards can include other cards but should not.
|
|
26
30
|
*/
|
|
27
|
-
declare function Card({ children, className, elevation, isOnlyLayout, fullHeight, elevated, scrollinOnFocus, interactive, ...otherProps }: CardProps): JSX.Element;
|
|
31
|
+
declare function Card({ children, className, elevation, isOnlyLayout, fullHeight, elevated, scrollinOnFocus, whitespaceAmount, interactive, ...otherProps }: CardProps): JSX.Element;
|
|
28
32
|
export default Card;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Usually `CardContent` uses all the remaining space inside a card.
|
|
5
|
+
* This behaviour can be changed by this option, so that the content section is not vertically grown or shrinked.
|
|
6
|
+
* You may use this then you have multiple content sections in one card but not all those sections should be grown or shrinked regarding the remaining space.
|
|
7
|
+
*/
|
|
8
|
+
noFlexHeight?: boolean;
|
|
3
9
|
}
|
|
4
10
|
/**
|
|
5
11
|
* Holds the card content.
|
|
6
12
|
* Display scrollbars in case there is not enough space for it.
|
|
7
13
|
*/
|
|
8
|
-
declare function CardContent({ children, className, ...otherProps }: CardContentProps): JSX.Element;
|
|
14
|
+
declare function CardContent({ children, className, noFlexHeight, ...otherProps }: CardContentProps): JSX.Element;
|
|
9
15
|
export default CardContent;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OverviewItemProps } from "./../OverviewItem/OverviewItem";
|
|
3
|
-
interface CardHeaderProps extends OverviewItemProps {
|
|
3
|
+
interface CardHeaderProps extends Omit<OverviewItemProps, "densityHigh" | "hasSpacing"> {
|
|
4
4
|
children: JSX.Element | (JSX.Element | undefined | null)[] | null | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
8
|
+
densityHigh?: OverviewItemProps["densityHigh"];
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
12
|
+
hasSpacing?: OverviewItemProps["hasSpacing"];
|
|
5
13
|
}
|
|
6
14
|
declare function CardHeader({ children, className, densityHigh, ...otherProps }: CardHeaderProps): JSX.Element;
|
|
7
15
|
export default CardHeader;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GridDefaultProps } from "carbon-components-react";
|
|
3
|
-
interface GridProps extends Omit<GridDefaultProps, "fullWidth"> {
|
|
3
|
+
interface GridProps extends Omit<GridDefaultProps, "fullWidth" | "columns" | "narrow"> {
|
|
4
4
|
/**
|
|
5
5
|
* The available grid height can be distributed between multiple rows.
|
|
6
6
|
* To do so the `verticalStretched` property must be set for the `<GridRow />` element that need to be stretched.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ColumnDefaultProps } from "carbon-components-react";
|
|
3
|
-
interface GridColumnProps extends ColumnDefaultProps {
|
|
3
|
+
interface GridColumnProps extends Omit<ColumnDefaultProps, "max" | "xlg" | "lg" | "md" | "sm"> {
|
|
4
4
|
/**
|
|
5
5
|
* Column width is small, using 3 (or 2, on medium viewports) parts out of 16.
|
|
6
6
|
* This boolean property is basically a quick switch for setting `{ md:2, lg:3 }`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RowDefaultProps } from "carbon-components-react";
|
|
3
|
-
interface GridRowProps extends RowDefaultProps {
|
|
3
|
+
interface GridRowProps extends Omit<RowDefaultProps, "narrow"> {
|
|
4
4
|
/**
|
|
5
5
|
* Do not wrap column children when there is not enough space available.
|
|
6
6
|
* This only works for grids on medium sized and larger viewports.
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ButtonProps, AnchorOrButtonProps } from "../Button/Button";
|
|
3
3
|
import { TestIconProps } from "./TestIcon";
|
|
4
4
|
import { ValidIconName } from "./canonicalIconNames";
|
|
5
|
-
interface IconButtonProps extends Omit<ButtonProps, "icon" | "rightIcon" | "text" | "minimal" | "tooltip"> {
|
|
5
|
+
export interface IconButtonProps extends Omit<ButtonProps, "icon" | "rightIcon" | "text" | "minimal" | "tooltip"> {
|
|
6
6
|
/**
|
|
7
7
|
* Canonical icon name, or an array of strings.
|
|
8
8
|
* In case of the array the first valid icon name is used.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProps as CarbonIconProps } from "carbon-components-react";
|
|
3
3
|
/** Valid icon names. */
|
|
4
|
-
export declare type ValidIconName = "application-activities" | "application-dataintegration" | "application-explore" | "application-homepage" | "application-legacygui" | "application-mapping" | "application-queries" | "application-useraccount" | "application-vocabularies" | "application-warning" | "artefact-commit" | "artefact-customtask" | "artefact-dataset" | "artefact-dataset-csv" | "artefact-dataset-eccencadataplatform" | "artefact-dataset-excel" | "artefact-dataset-file" | "artefact-dataset-jdbc" | "artefact-dataset-json" | "artefact-dataset-multicsv" | "artefact-dataset-neo4j" | "artefact-dataset-sparkview" | "artefact-dataset-sparqlendpoint" | "artefact-dataset-sqlendpoint" | "artefact-dataset-xml" | "artefact-deprecated" | "artefact-embedded" | "artefact-errorlog" | "artefact-file" | "artefact-linking" | "artefact-project" | "artefact-rawdata" | "artefact-remote" | "artefact-report" | "artefact-task" | "artefact-transform" | "artefact-uncategorized" | "artefact-workflow" | "data-sourcepath" | "data-targetpath" | "item-add-artefact" | "item-clone" | "item-comment" | "item-copy" | "item-download" | "item-draggable" | "item-edit" | "item-evaluation" | "item-execution" | "item-info" | "item-launch" | "item-moremenu" | "item-question" | "item-reload" | "item-remove" | "item-reset" | "item-save" | "item-settings" | "item-shuffle" | "item-start" | "item-stop" | "item-upload" | "item-vertmenu" | "item-viewdetails" | "list-sort" | "list-sortasc" | "list-sortdesc" | "module-accesscontrol" | "module-annotation" | "module-dashboard" | "module-gdprsearch" | "module-integrations" | "module-linkedrules" | "module-reports" | "module-search" | "module-thesauri" | "module-timetracker" | "module-visualization" | "navigation-back" | "navigation-close" | "navigation-first" | "navigation-forth" | "navigation-jump" | "navigation-last" | "navigation-next" | "navigation-previous" | "operation-aggregation" | "operation-autolayout" | "operation-clear" | "operation-commit" | "operation-comparison" | "operation-filter" | "operation-filteredit" | "operation-link" | "operation-logout" | "operation-redo" | "operation-search" | "operation-sharelink" | "operation-transform" | "operation-undo" | "operation-unlink" | "state-checked" | "state-checkedsimple" | "state-confirmed" | "state-danger" | "state-declined" | "state-info" | "state-partlychecked" | "state-protected" | "state-success" | "state-unchecked" | "state-warning" | "toggler-caret" | "toggler-maximize" | "toggler-minimize" | "toggler-moveleft" | "toggler-moveright" | "toggler-showless" | "toggler-showmore" | "toggler-star-empty" | "toggler-star-filled" | "toggler-tree" | "undefined";
|
|
4
|
+
export declare type ValidIconName = "application-activities" | "application-dataintegration" | "application-explore" | "application-homepage" | "application-legacygui" | "application-mapping" | "application-queries" | "application-useraccount" | "application-vocabularies" | "application-warning" | "artefact-commit" | "artefact-customtask" | "artefact-dataset" | "artefact-dataset-csv" | "artefact-dataset-eccencadataplatform" | "artefact-dataset-excel" | "artefact-dataset-file" | "artefact-dataset-jdbc" | "artefact-dataset-json" | "artefact-dataset-multicsv" | "artefact-dataset-neo4j" | "artefact-dataset-sparkview" | "artefact-dataset-sparqlendpoint" | "artefact-dataset-sqlendpoint" | "artefact-dataset-xml" | "artefact-deprecated" | "artefact-embedded" | "artefact-errorlog" | "artefact-file" | "artefact-linking" | "artefact-project" | "artefact-rawdata" | "artefact-remote" | "artefact-report" | "artefact-task" | "artefact-transform" | "artefact-uncategorized" | "artefact-workflow" | "data-sourcepath" | "data-targetpath" | "item-add-artefact" | "item-clone" | "item-comment" | "item-copy" | "item-download" | "item-draggable" | "item-edit" | "item-evaluation" | "item-execution" | "item-info" | "item-launch" | "item-moremenu" | "item-question" | "item-reload" | "item-remove" | "item-reset" | "item-save" | "item-settings" | "item-shuffle" | "item-skip-forward" | "item-start" | "item-stop" | "item-upload" | "item-vertmenu" | "item-viewdetails" | "list-sort" | "list-sortasc" | "list-sortdesc" | "module-accesscontrol" | "module-annotation" | "module-dashboard" | "module-gdprsearch" | "module-integrations" | "module-linkedrules" | "module-reports" | "module-search" | "module-thesauri" | "module-timetracker" | "module-visualization" | "navigation-back" | "navigation-close" | "navigation-first" | "navigation-forth" | "navigation-jump" | "navigation-last" | "navigation-next" | "navigation-previous" | "operation-aggregation" | "operation-autolayout" | "operation-clear" | "operation-commit" | "operation-comparison" | "operation-filter" | "operation-filteredit" | "operation-link" | "operation-logout" | "operation-redo" | "operation-search" | "operation-sharelink" | "operation-transform" | "operation-undo" | "operation-unlink" | "state-checked" | "state-checkedsimple" | "state-confirmed" | "state-danger" | "state-declined" | "state-info" | "state-partlychecked" | "state-protected" | "state-success" | "state-unchecked" | "state-warning" | "toggler-caret" | "toggler-caretright" | "toggler-caretdown" | "toggler-maximize" | "toggler-minimize" | "toggler-moveleft" | "toggler-moveright" | "toggler-rowexpand" | "toggler-rowcollapse" | "toggler-showless" | "toggler-showmore" | "toggler-star-empty" | "toggler-star-filled" | "toggler-tree" | "form-template" | "undefined";
|
|
5
5
|
export declare type CarbonIconType = React.ComponentType<CarbonIconProps>;
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated
|
|
@@ -21,8 +21,12 @@ export interface PaginationProps extends CarbonPaginationProps {
|
|
|
21
21
|
* Hide prev/next arrows to navigate through the pages.
|
|
22
22
|
*/
|
|
23
23
|
hideNavigationArrows?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Element is displayed with dividing borders.
|
|
26
|
+
*/
|
|
27
|
+
hideBorders?: boolean;
|
|
24
28
|
}
|
|
25
|
-
declare function Pagination({ className, hidePageSizeConfiguration, hideInfoText, hidePageSelect, hideNavigationArrows, ...otherProps }: PaginationProps): JSX.Element;
|
|
29
|
+
declare function Pagination({ className, hidePageSizeConfiguration, hideInfoText, hidePageSelect, hideNavigationArrows, hideBorders, ...otherProps }: PaginationProps): JSX.Element;
|
|
26
30
|
interface IPaginationDetails {
|
|
27
31
|
total: number;
|
|
28
32
|
current: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ProgressBar";
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SpacingProps } from "./Spacing";
|
|
3
|
+
export interface DividerProps extends React.HTMLAttributes<HTMLHRElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Add whitespace arount the horizontal rule.
|
|
6
|
+
*/
|
|
7
|
+
addSpacing?: "none" | SpacingProps["size"];
|
|
8
|
+
/**
|
|
9
|
+
* Set the width of the horizontal rule.
|
|
10
|
+
*/
|
|
11
|
+
width?: "short" | "half" | "medium" | "full";
|
|
12
|
+
/**
|
|
13
|
+
* Set the horizontal alignment of the horizontal rule.
|
|
14
|
+
* This is only visible for widths that are not set to `full`.
|
|
15
|
+
*/
|
|
16
|
+
alignment?: "left" | "center" | "right";
|
|
17
|
+
}
|
|
18
|
+
export declare function Divider({ className, addSpacing, width, alignment, ...otherHrProps }: DividerProps): JSX.Element;
|
|
3
19
|
export default Divider;
|
|
@@ -3,7 +3,7 @@ export interface SpacingProps {
|
|
|
3
3
|
/**
|
|
4
4
|
* Set the amount of white space that separates two elements.
|
|
5
5
|
*/
|
|
6
|
-
size?: "tiny" | "small" | "medium" | "large";
|
|
6
|
+
size?: "tiny" | "small" | "medium" | "large" | "xlarge";
|
|
7
7
|
/**
|
|
8
8
|
* If set then is a ruler displayed in the middle of the spacing area.
|
|
9
9
|
* The direction of the ruler is used from the spacing.
|
|
@@ -5,7 +5,11 @@ export interface SwitchProps extends Omit<BlueprintSwitchProps, "onChange"> {
|
|
|
5
5
|
* Event handler for changed state.
|
|
6
6
|
*/
|
|
7
7
|
onChange?: (value: boolean) => any;
|
|
8
|
+
/**
|
|
9
|
+
* class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
8
12
|
}
|
|
9
|
-
declare function Switch({ onChange, ...otherProps }: SwitchProps): JSX.Element;
|
|
13
|
+
declare function Switch({ onChange, className, ...otherProps }: SwitchProps): JSX.Element;
|
|
10
14
|
declare const _default: React.MemoExoticComponent<typeof Switch>;
|
|
11
15
|
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableProps as CarbonTableProps, DataTableSize as CarbonDataTableSize } from "carbon-components-react";
|
|
3
|
+
declare type TableRowHeightSizeDepracted = "compact" | "tall";
|
|
4
|
+
export declare type TableRowHeightSize = "small" | "medium" | "large" | TableRowHeightSizeDepracted;
|
|
5
|
+
export interface TableProps extends Omit<CarbonTableProps, "size" | "overflowMenuOnHover" | "stickyHeader" | "useStaticWidth">, React.TableHTMLAttributes<HTMLTableElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Sets basically the height of a row inside the table.
|
|
8
|
+
* Please use only `small`, `medium` and `large`.
|
|
9
|
+
* `compact` and `tall` are deprecated.
|
|
10
|
+
*/
|
|
11
|
+
size?: TableRowHeightSize;
|
|
12
|
+
/**
|
|
13
|
+
* All rows are divided by horizontal borders.
|
|
14
|
+
*/
|
|
15
|
+
hasDivider?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* This will lead to a `colgroup` element within the `table` setting `with` styles for each column.
|
|
18
|
+
* The table is then displayed `fixed`.
|
|
19
|
+
* All values need to be valid CSS width expression, e.g. `30px`, `5rem`, `40%`.
|
|
20
|
+
* If you need to add more attributes to the `col` elements, e.g. class names, then you need to control `colgroup` and `fixed` table by yourself.
|
|
21
|
+
*/
|
|
22
|
+
columnWidths?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Table is displayed without any own coloring.
|
|
25
|
+
* For example this can be used for sub tables inside other elements with already set background colors.
|
|
26
|
+
* Zebra styles won't work if this option is enabled!
|
|
27
|
+
*/
|
|
28
|
+
colorless?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare const tableRowHeightSizes: Record<string, CarbonDataTableSize>;
|
|
31
|
+
export declare function Table({ className, size, hasDivider, columnWidths, colorless, children, ...otherCarbonTableProps }: TableProps): JSX.Element;
|
|
32
|
+
export default Table;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableCellProps as CarbonTableCellProps } from "carbon-components-react";
|
|
3
|
+
export interface TableCellProps extends CarbonTableCellProps, React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
4
|
+
/**
|
|
5
|
+
* By default all table cell content is aligned to the top of the cell.
|
|
6
|
+
* Use this property to change the vertical alignment.
|
|
7
|
+
*/
|
|
8
|
+
alignVertical?: "middle";
|
|
9
|
+
}
|
|
10
|
+
export declare function TableCell({ className, children, alignVertical, ...otherTableCellProps }: TableCellProps): JSX.Element;
|
|
11
|
+
export default TableCell;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DataTableProps as CarbonDataTableProps, TableContainerProps as CarbonTableContainerProps } from "carbon-components-react";
|
|
3
|
+
import { TableRowHeightSize } from "./Table";
|
|
4
|
+
interface TableDataContainerProps extends Omit<CarbonDataTableProps, "size" | "overflowMenuOnHover" | "stickyHeader" | "useStaticWidth">, React.TableHTMLAttributes<HTMLTableElement> {
|
|
5
|
+
children(signature: any): JSX.Element;
|
|
6
|
+
size?: TableRowHeightSize;
|
|
7
|
+
}
|
|
8
|
+
interface TableSimpleContainerProps extends Omit<CarbonTableContainerProps, "description" | "stickyHeader" | "title" | "useStaticWidth">, React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export declare type TableContainerProps = TableDataContainerProps | TableSimpleContainerProps;
|
|
12
|
+
export declare function TableContainer({ className, ...otherProps }: TableContainerProps): JSX.Element;
|
|
13
|
+
export default TableContainer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableExpandHeaderProps as CarbonTableExpandHeaderProps } from "carbon-components-react";
|
|
3
|
+
export interface TableExpandHeaderProps extends Omit<CarbonTableExpandHeaderProps, "children" | "ariaLabel" | "enableExpando" | "expandIconDescription">, React.ThHTMLAttributes<HTMLTableCellElement> {
|
|
4
|
+
/**
|
|
5
|
+
* This text is displayed as tooltip for the button that toggles the expanded/collapsed state.
|
|
6
|
+
*/
|
|
7
|
+
togglerText: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Adds a button to the table header that can trigger a function to expand/collapse all rows of the table.
|
|
11
|
+
*/
|
|
12
|
+
export declare function TableExpandHeader({ togglerText, isExpanded, onExpand, className, enableToggle, ...otherCarbonTableExpandHeaderProps }: TableExpandHeaderProps): JSX.Element;
|
|
13
|
+
export default TableExpandHeader;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableExpandRowProps as CarbonTableExpandRowProps } from "carbon-components-react";
|
|
3
|
+
export interface TableExpandRowProps extends Omit<CarbonTableExpandRowProps, "ariaLabel" | "expandIconDescription">, React.HTMLAttributes<HTMLTableRowElement> {
|
|
4
|
+
/**
|
|
5
|
+
* This text is displayed as tooltip for the button that toggles the expanded/collapsed state.
|
|
6
|
+
*/
|
|
7
|
+
togglerText: string;
|
|
8
|
+
/**
|
|
9
|
+
* Display this row with the styles from a zebra style-enabled table.
|
|
10
|
+
*/
|
|
11
|
+
useZebraStyle?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Table row that is suffixed by a cell containing a button to expand/collapse this row.
|
|
15
|
+
*/
|
|
16
|
+
export declare function TableExpandRow({ togglerText, isExpanded, isSelected, useZebraStyle, onExpand, className, children, ...otherCarbonTableExpandRowProps }: TableExpandRowProps): JSX.Element;
|
|
17
|
+
export default TableExpandRow;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TableRowProps as CarbonTableRowProps } from "carbon-components-react";
|
|
3
|
+
export interface TableRowProps extends CarbonTableRowProps, React.TdHTMLAttributes<HTMLTableRowElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Display this row with the styles from a zebra style-enabled table.
|
|
6
|
+
*/
|
|
7
|
+
useZebraStyle?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function TableRow({ className, children, useZebraStyle, ...otherTableRowProps }: TableRowProps): JSX.Element;
|
|
10
|
+
export default TableRow;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./TableContainer";
|
|
2
|
+
export * from "./Table";
|
|
3
|
+
export * from "./TableRow";
|
|
4
|
+
export * from "./TableExpandRow";
|
|
5
|
+
export * from "./TableExpandHeader";
|
|
6
|
+
export * from "./TableCell";
|
|
7
|
+
export { TableHead, TableBody, TableExpandedRow, TableHeader, } from "carbon-components-react";
|
|
@@ -8,7 +8,7 @@ import { IntentTypes } from "../../common/Intent";
|
|
|
8
8
|
export interface TagProps extends Omit<BlueprintTagProps, "active" | "fill" | "icon" | "intent" | "large" | "multiline" | "rightIcon"> {
|
|
9
9
|
/**
|
|
10
10
|
* Sets the background color of a tag, depends on the `Color` object provided by the
|
|
11
|
-
* [npm color module](https://www.npmjs.com/package/color) v3. You can use it with
|
|
11
|
+
* [npm color module](https://www.npmjs.com/export package/color) v3. You can use it with
|
|
12
12
|
* all allowed [CSS color values](https://developer.mozilla.org/de/docs/Web/CSS/color_value).
|
|
13
13
|
*
|
|
14
14
|
* The front color is set automatically, so the tag label is always readable.
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TagListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function TagList({ children, className, label, ...otherProps }: TagListProps): JSX.Element;
|
|
3
6
|
export default TagList;
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MaybeElement, HTMLInputProps, InputGroupProps } from "@blueprintjs/core";
|
|
3
|
+
import { IntentTypes } from "../../common/Intent";
|
|
3
4
|
import { ValidIconName } from "../Icon/canonicalIconNames";
|
|
4
5
|
import { InvisibleCharacterWarningProps } from "./useTextValidation";
|
|
5
6
|
export interface TextFieldProps extends Partial<Omit<InputGroupProps, "intent" | "leftIcon"> & HTMLInputProps> {
|
|
6
7
|
/**
|
|
7
8
|
* The input element is displayed with primary color scheme.
|
|
9
|
+
* @deprecated
|
|
8
10
|
*/
|
|
9
11
|
hasStatePrimary?: boolean;
|
|
10
12
|
/**
|
|
11
13
|
* The input element is displayed with success (some type of green) color scheme.
|
|
14
|
+
* @deprecated
|
|
12
15
|
*/
|
|
13
16
|
hasStateSuccess?: boolean;
|
|
14
17
|
/**
|
|
15
18
|
* The input element is displayed with warning (some type of orange) color scheme.
|
|
19
|
+
* @deprecated
|
|
16
20
|
*/
|
|
17
21
|
hasStateWarning?: boolean;
|
|
18
22
|
/**
|
|
19
23
|
* The input element is displayed with danger (some type of red) color scheme.
|
|
24
|
+
* @deprecated
|
|
20
25
|
*/
|
|
21
26
|
hasStateDanger?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Intent state of the text field.
|
|
29
|
+
*/
|
|
30
|
+
intent?: IntentTypes | "edited" | "removed";
|
|
22
31
|
/**
|
|
23
32
|
* The input element uses the full horizontal width of the parent container.
|
|
24
33
|
*/
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from "./Badge/Badge";
|
|
2
2
|
export * from "./Depiction/Depiction";
|
|
3
3
|
export * from "./Icon";
|
|
4
|
+
export * from "./ProgressBar";
|
|
5
|
+
export * from "./Table";
|
|
6
|
+
export * from "./Tag";
|
|
4
7
|
export * from "./Tree/Tree";
|
|
5
8
|
export * from "./Typography";
|
|
9
|
+
export * from "./interfaces";
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EdgeProps as ReactFlowEdgeProps } from "react-flow-renderer/dist/types";
|
|
3
|
+
import { IntentTypes } from "../../../common/Intent";
|
|
4
|
+
import { NodeHighlightColor } from "./../nodes/NodeContent";
|
|
3
5
|
export interface EdgeDefaultDataProps {
|
|
6
|
+
/**
|
|
7
|
+
* Overwrites the default style how the edge stroke is displayed.
|
|
8
|
+
*/
|
|
9
|
+
strokeType?: "solid" | "dashed" | "dotted" | "double" | "doubledashed";
|
|
10
|
+
/**
|
|
11
|
+
* Feedback state of the node.
|
|
12
|
+
*/
|
|
13
|
+
intent?: IntentTypes;
|
|
14
|
+
/**
|
|
15
|
+
* Set the color of used highlights to mark the edge.
|
|
16
|
+
*/
|
|
17
|
+
highlightColor?: NodeHighlightColor | [NodeHighlightColor, NodeHighlightColor];
|
|
4
18
|
/**
|
|
5
19
|
* Size of the "glow" effect when the edge is hovered.
|
|
6
20
|
*/
|
|
7
21
|
pathGlowWidth?: number;
|
|
8
22
|
inversePath?: boolean;
|
|
9
23
|
/**
|
|
10
|
-
* Reference
|
|
24
|
+
* Reference link to the SVG marker used for the start of the edge
|
|
11
25
|
*/
|
|
12
26
|
markerStart?: string;
|
|
13
27
|
/**
|
|
@@ -26,3 +40,4 @@ export interface EdgeDefaultProps extends ReactFlowEdgeProps {
|
|
|
26
40
|
drawSvgPath?: (edge: ReactFlowEdgeProps) => string;
|
|
27
41
|
}
|
|
28
42
|
export declare const EdgeDefault: React.MemoExoticComponent<(edge: EdgeDefaultProps) => JSX.Element>;
|
|
43
|
+
export declare const createEdgeDefaultClassName: ({ strokeType, intent, highlightColor, }: EdgeDefaultDataProps, baseClass?: string) => string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DepictionProps } from "../../../index";
|
|
3
|
+
import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
|
|
4
|
+
import { IntentTypes } from "../../../common/Intent";
|
|
5
|
+
export interface EdgeLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Depiction element displayed left from the label.
|
|
8
|
+
*/
|
|
9
|
+
depiction?: ValidIconName | React.ReactElement<DepictionProps>;
|
|
10
|
+
/**
|
|
11
|
+
* Label of the edge.
|
|
12
|
+
* Cannot overflow the parent container.
|
|
13
|
+
*/
|
|
14
|
+
text: string | JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* One or multiple other elements displayed right from label.
|
|
17
|
+
*/
|
|
18
|
+
actions?: JSX.Element | JSX.Element[];
|
|
19
|
+
/**
|
|
20
|
+
* The element is increased in its size.
|
|
21
|
+
*/
|
|
22
|
+
large?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Stretches the label component to the full available width.
|
|
25
|
+
*/
|
|
26
|
+
fullWidth?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Add a info state to the label, visualized by color.
|
|
29
|
+
*/
|
|
30
|
+
intent?: IntentTypes;
|
|
31
|
+
}
|
|
32
|
+
export declare const EdgeLabel: React.MemoExoticComponent<({ depiction, text, actions, large, fullWidth, intent, ...otherDivProps }: EdgeLabelProps) => JSX.Element>;
|
|
33
|
+
interface EdgeLabelObjectProps extends React.SVGAttributes<SVGForeignObjectElement> {
|
|
34
|
+
/**
|
|
35
|
+
* The `<EdgeLabel />` element that need to be displayed.
|
|
36
|
+
*/
|
|
37
|
+
children: React.ReactElement<EdgeLabelProps>;
|
|
38
|
+
/**
|
|
39
|
+
* Property from the `renderLabel` callback method.
|
|
40
|
+
*/
|
|
41
|
+
edgeCenter: [number, number, number, number];
|
|
42
|
+
}
|
|
43
|
+
export declare const EdgeLabelObject: React.MemoExoticComponent<({ children, edgeCenter, ...otherForeignObjectProps }: EdgeLabelObjectProps) => JSX.Element>;
|
|
44
|
+
export {};
|
|
@@ -3,13 +3,14 @@ export declare const edgeTypes: {
|
|
|
3
3
|
default: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
4
4
|
straight: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
5
5
|
step: import("react").MemoExoticComponent<(edge: import("./EdgeStep").EdgeStepProps) => JSX.Element>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
success: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
7
|
+
warning: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
8
|
+
danger: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
9
|
+
implicit: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
10
|
+
import: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
11
|
+
subclass: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
12
|
+
subproperty: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
13
|
+
rdftype: import("react").MemoExoticComponent<(edge: import("./EdgeDefault").EdgeDefaultProps) => JSX.Element>;
|
|
14
|
+
value: import("react").MemoExoticComponent<(edge: import("./EdgeStep").EdgeStepProps) => JSX.Element>;
|
|
15
|
+
score: import("react").MemoExoticComponent<(edge: import("./EdgeStep").EdgeStepProps) => JSX.Element>;
|
|
15
16
|
};
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { HandleProps as
|
|
2
|
+
import { HandleProps as ReactFlowHandleLegacyProps } from "react-flow-renderer";
|
|
3
|
+
import { HandleProps as ReactFlowHandleNextProps } from "react-flow-renderer-lts";
|
|
3
4
|
import { HandleContentProps } from "./HandleContent";
|
|
4
|
-
|
|
5
|
+
import { ReacFlowVersionSupportProps } from "../versionsupport";
|
|
6
|
+
interface HandleExtensionProps extends ReacFlowVersionSupportProps {
|
|
5
7
|
data?: HandleContentProps;
|
|
6
8
|
tooltip?: string;
|
|
7
9
|
children?: JSX.Element | string;
|
|
10
|
+
onClick?: () => void;
|
|
8
11
|
}
|
|
9
|
-
export
|
|
12
|
+
export interface HandleProps extends HandleExtensionProps, ReactFlowHandleLegacyProps {
|
|
13
|
+
}
|
|
14
|
+
export interface HandleNextProps extends HandleExtensionProps, ReactFlowHandleNextProps {
|
|
15
|
+
}
|
|
16
|
+
export declare const HandleDefault: React.MemoExoticComponent<({ flowVersion, data, tooltip, children, ...handleProps }: HandleProps | HandleNextProps) => JSX.Element>;
|
|
17
|
+
export {};
|
|
@@ -3,10 +3,10 @@ export { NodeContent } from "./nodes/NodeContent";
|
|
|
3
3
|
export { NodeContentExtension } from "./nodes/NodeContentExtension";
|
|
4
4
|
export { NodeTools } from "./nodes/NodeTools";
|
|
5
5
|
export { nodeTypes } from "./nodes/nodeTypes";
|
|
6
|
-
export { EdgeDefault } from "./edges/EdgeDefault";
|
|
7
6
|
export { EdgeStep } from "./edges/EdgeStep";
|
|
8
7
|
export { EdgeTools } from "./edges/EdgeTools";
|
|
9
8
|
export { edgeTypes } from "./edges/edgeTypes";
|
|
9
|
+
export * from "./edges/EdgeLabel";
|
|
10
10
|
export { MarkerArrowClosedInverse } from "./markers/MarkerArrowClosedInverse";
|
|
11
11
|
export { ReactFlowMarkers } from "./markers/ReactFlowMarkers";
|
|
12
12
|
export { MiniMap } from "./minimap/MiniMap";
|
|
@@ -16,6 +16,6 @@ export type { NodeProps } from "./nodes/NodeDefault";
|
|
|
16
16
|
export type { NodeContentProps } from "./nodes/NodeContent";
|
|
17
17
|
export type { NodeContentExtensionProps } from "./nodes/NodeContentExtension";
|
|
18
18
|
export type { NodeToolsProps } from "./nodes/NodeTools";
|
|
19
|
-
export type { EdgeDefaultProps } from "./edges/EdgeDefault";
|
|
20
19
|
export type { EdgeStepProps } from "./edges/EdgeStep";
|
|
21
20
|
export type { MiniMapProps } from "./minimap/MiniMap";
|
|
21
|
+
export * from "./edges/EdgeDefault";
|