@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,323 @@
|
|
|
1
|
+
// import libs
|
|
2
|
+
@use "~@carbon/styles/scss/components/data-table/data-table";
|
|
3
|
+
// currently not needed @import "~@carbon/styles/scss/components/data-table/action";
|
|
4
|
+
@use "~@carbon/styles/scss/components/data-table/expandable/index" as table-expandable;
|
|
5
|
+
// currently not needed @import ~@carbon/styles/scss/components/data-table/skeleton;
|
|
6
|
+
@use "~@carbon/styles/scss/components/data-table/sort/index" as table-sort;
|
|
7
|
+
@include data-table.data-table;
|
|
8
|
+
|
|
9
|
+
// own vars
|
|
10
|
+
$eccgui-size-tablecell-height-regular: mini-units(4) !default;
|
|
11
|
+
$eccgui-size-tablecell-padding-regular: ($eccgui-size-tablecell-height-regular - rem($eccgui-size-typo-text)) * 0.5 !default;
|
|
12
|
+
$eccgui-size-tablecell-height-compact: mini-units(3) !default;
|
|
13
|
+
$eccgui-size-tablecell-padding-compact: ($eccgui-size-tablecell-height-compact - rem($eccgui-size-typo-text)) * 0.5 !default;
|
|
14
|
+
$eccgui-size-tablecell-height-tall: mini-units(6) !default;
|
|
15
|
+
$eccgui-size-tablecell-padding-tall: ($eccgui-size-tablecell-height-tall - rem($eccgui-size-typo-text)) * 0.5 !default;
|
|
16
|
+
$eccgui-size-tablecell-font-weight: $eccgui-font-weight-regular !default;
|
|
17
|
+
$eccgui-size-tableheader-font-weight: $eccgui-font-weight-bold !default;
|
|
18
|
+
$eccgui-color-table-background: $card-background-color !default;
|
|
19
|
+
$eccgui-color-tableheader-background: $button-background-color !default;
|
|
20
|
+
$eccgui-color-tablerow-background-even: lighten($menu-item-color-hover, 24%) !default;
|
|
21
|
+
$eccgui-color-tablerow-background-odd: transparent !default;
|
|
22
|
+
$eccgui-color-tablerow-hover: $menu-item-color-hover !default;
|
|
23
|
+
$eccgui-color-tablerow-selected: rgba($eccgui-color-accent, 0.1) !default;
|
|
24
|
+
$eccgui-color-tablerow-selected-hover: mix($eccgui-color-tablerow-selected, $eccgui-color-tablerow-hover, 50%) !default;
|
|
25
|
+
$eccgui-color-tablerow-border: $pt-divider-black !default;
|
|
26
|
+
|
|
27
|
+
// changes
|
|
28
|
+
.#{$eccgui}-simpletable__container {
|
|
29
|
+
min-width: unset;
|
|
30
|
+
background-color: $eccgui-color-table-background;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.#{$prefix}--data-table {
|
|
34
|
+
min-width: 100%;
|
|
35
|
+
--#{$eccgui}-color-border: #{$eccgui-color-tablerow-border};
|
|
36
|
+
--#{$eccgui}-divider-row: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.#{$eccgui}-simpletable--haslayout {
|
|
40
|
+
table-layout: fixed;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.#{$eccgui}-simpletable--rowdivider {
|
|
44
|
+
--#{$eccgui}-divider-row: solid;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.#{$prefix}--data-table thead {
|
|
48
|
+
background-color: transparent;
|
|
49
|
+
font-weight: $eccgui-size-tablecell-font-weight;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.#{$prefix}--data-table th,
|
|
53
|
+
.#{$prefix}--data-table-header {
|
|
54
|
+
background-color: $eccgui-color-tableheader-background;
|
|
55
|
+
font-weight: $eccgui-size-tableheader-font-weight;
|
|
56
|
+
}
|
|
57
|
+
.#{$prefix}--data-table th.#{$prefix}--table-column-checkbox {
|
|
58
|
+
background: $eccgui-color-tableheader-background;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.#{$prefix}--data-table thead tr,
|
|
62
|
+
.#{$prefix}--data-table tbody tr,
|
|
63
|
+
.#{$prefix}--data-table tbody tr th {
|
|
64
|
+
height: $eccgui-size-tablecell-height-regular;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.#{$prefix}--data-table .#{$prefix}--table-header-label {
|
|
68
|
+
padding: $eccgui-size-tablecell-padding-regular 0;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
flex-shrink: 1;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.#{$prefix}--data-table td,
|
|
76
|
+
.#{$prefix}--data-table tbody th {
|
|
77
|
+
padding-top: $eccgui-size-tablecell-padding-regular * 1.05;
|
|
78
|
+
padding-bottom: $eccgui-size-tablecell-padding-regular * 0.95;
|
|
79
|
+
|
|
80
|
+
vertical-align: top;
|
|
81
|
+
|
|
82
|
+
&.#{$eccgui}-simpletable__cell--middle {
|
|
83
|
+
vertical-align: middle;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
& + td:first-of-type {
|
|
87
|
+
padding-left: $spacing-05;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.#{$prefix}--data-table .#{$prefix}--table-column-menu,
|
|
92
|
+
.#{$prefix}--data-table .#{$prefix}--table-column-menu:last-of-type {
|
|
93
|
+
width: auto;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.#{$prefix}--data-table {
|
|
98
|
+
thead th, tbody td, tbody th {
|
|
99
|
+
padding-left: $eccgui-size-block-whitespace * 0.5;
|
|
100
|
+
padding-right: $eccgui-size-block-whitespace * 0.5;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
|
|
103
|
+
&.#{$prefix}--table-expand {
|
|
104
|
+
height: $button-height;
|
|
105
|
+
width: $button-height;
|
|
106
|
+
padding-top: $eccgui-size-tablecell-padding-regular * 1.05;
|
|
107
|
+
padding-left: 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
thead th.#{$prefix}--table-expand {
|
|
112
|
+
padding-top: 0;
|
|
113
|
+
padding-bottom: 0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.#{$prefix}--table-expand__button {
|
|
118
|
+
height: $button-height;
|
|
119
|
+
width: $button-height;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.#{$prefix}--data-table td,
|
|
123
|
+
.#{$prefix}--data-table tbody th {
|
|
124
|
+
border-top: 1px var(--#{$eccgui}-divider-row) var(--#{$eccgui}-color-cell) !important;
|
|
125
|
+
border-bottom: 1px var(--#{$eccgui}-divider-row) var(--#{$eccgui}-color-border) !important;
|
|
126
|
+
background: var(--#{$eccgui}-color-cell) !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Row background colors
|
|
130
|
+
|
|
131
|
+
.#{$eccgui}-simpletable--colorless > tbody {
|
|
132
|
+
& > tr, & > tr:hover {
|
|
133
|
+
background: transparent;
|
|
134
|
+
--#{$eccgui}-color-cell: transparent;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.#{$prefix}--data-table:not(.#{$eccgui}-simpletable--colorless) > tbody {
|
|
139
|
+
background-color: transparent;
|
|
140
|
+
--#{$eccgui}-color-cell: #{$eccgui-color-tablerow-background-odd};
|
|
141
|
+
|
|
142
|
+
& > tr {
|
|
143
|
+
&.#{$prefix}--expandable-row:not([data-child-row]) {
|
|
144
|
+
--#{$eccgui}-color-border: #{$eccgui-color-tablerow-background-odd};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:hover,
|
|
148
|
+
&:hover + tr[data-child-row],
|
|
149
|
+
&.#{$prefix}--expandable-row--hover {
|
|
150
|
+
background-color: transparent;
|
|
151
|
+
|
|
152
|
+
& > th, & > td {
|
|
153
|
+
--#{$eccgui}-color-cell: #{$eccgui-color-tablerow-hover};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.#{$prefix}--data-table--selected {
|
|
158
|
+
& > th {
|
|
159
|
+
--#{$eccgui}-color-cell: #{mix($eccgui-color-tablerow-selected, $eccgui-color-tableheader-background, 50%)};
|
|
160
|
+
}
|
|
161
|
+
& > td {
|
|
162
|
+
--#{$eccgui}-color-cell: #{$eccgui-color-tablerow-selected};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:hover {
|
|
166
|
+
& > th {
|
|
167
|
+
--#{$eccgui}-color-cell: #{mix($eccgui-color-tablerow-selected-hover, $eccgui-color-tableheader-background, 50%)};
|
|
168
|
+
}
|
|
169
|
+
& > td {
|
|
170
|
+
--#{$eccgui}-color-cell: #{$eccgui-color-tablerow-selected-hover};
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// zebra style
|
|
178
|
+
|
|
179
|
+
.#{$prefix}--data-table--zebra > tbody > tr[data-parent-row]:nth-child(4n+3),
|
|
180
|
+
.#{$prefix}--data-table--zebra > tbody > tr[data-child-row]:nth-child(4n+4),
|
|
181
|
+
.#{$prefix}--data-table > tbody > tr.#{eccgui}-simpletable__row--zebra,
|
|
182
|
+
.#{$prefix}--data-table > tbody > tr.#{eccgui}-simpletable__row--zebra + tr[data-child-row] {
|
|
183
|
+
// even rows
|
|
184
|
+
|
|
185
|
+
&.#{$prefix}--expandable-row:not([data-child-row]) {
|
|
186
|
+
--#{$eccgui}-color-border: #{$eccgui-color-tablerow-background-even};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
& > th, & > td {
|
|
190
|
+
--#{$eccgui}-color-cell: #{$eccgui-color-tablerow-background-even};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&:hover,
|
|
194
|
+
&:hover + tr[data-child-row],
|
|
195
|
+
&.#{$prefix}--expandable-row--hover {
|
|
196
|
+
& > th, & > td {
|
|
197
|
+
--#{$eccgui}-color-cell: #{mix($eccgui-color-tablerow-hover, $eccgui-color-tablerow-background-even, 50%)};
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&.#{$prefix}--data-table--selected {
|
|
202
|
+
& > th {
|
|
203
|
+
--#{$eccgui}-color-cell: #{mix(mix($eccgui-color-tablerow-selected, $eccgui-color-tablerow-background-even, 50%), $eccgui-color-tableheader-background, 50%)};
|
|
204
|
+
}
|
|
205
|
+
& > td {
|
|
206
|
+
--#{$eccgui}-color-cell: #{mix($eccgui-color-tablerow-selected, $eccgui-color-tablerow-background-even, 50%)};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&:hover {
|
|
210
|
+
& > th {
|
|
211
|
+
--#{$eccgui}-color-cell: #{mix(mix($eccgui-color-tablerow-selected-hover, $eccgui-color-tablerow-background-even, 50%), $eccgui-color-tableheader-background, 50%)};
|
|
212
|
+
}
|
|
213
|
+
& > td {
|
|
214
|
+
--#{$eccgui}-color-cell: #{mix($eccgui-color-tablerow-selected-hover, $eccgui-color-tablerow-background-even, 50%)};
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Compact
|
|
221
|
+
|
|
222
|
+
.#{$prefix}--data-table--xs thead tr,
|
|
223
|
+
.#{$prefix}--data-table--xs tbody tr,
|
|
224
|
+
.#{$prefix}--data-table--xs tbody tr th {
|
|
225
|
+
height: $eccgui-size-tablecell-height-compact;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.#{$prefix}--data-table--xs .#{$prefix}--table-header-label {
|
|
229
|
+
padding: $eccgui-size-tablecell-padding-compact 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.#{$prefix}--data-table--xs td,
|
|
233
|
+
.#{$prefix}--data-table--xs tbody tr th {
|
|
234
|
+
padding-top: $eccgui-size-tablecell-padding-compact * 1.05;
|
|
235
|
+
padding-bottom: $eccgui-size-tablecell-padding-compact * 0.95;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.#{$prefix}--data-table--xs tbody td.#{$prefix}--table-expand {
|
|
239
|
+
padding-top: $eccgui-size-tablecell-padding-compact * 1.05;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Tall
|
|
243
|
+
|
|
244
|
+
.#{$prefix}--data-table--md thead tr,
|
|
245
|
+
.#{$prefix}--data-table--md tbody tr,
|
|
246
|
+
.#{$prefix}--data-table--md tbody tr th {
|
|
247
|
+
height: $eccgui-size-tablecell-height-compact;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.#{$prefix}--data-table--md .#{$prefix}--table-header-label {
|
|
251
|
+
padding: $eccgui-size-tablecell-padding-tall 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.#{$prefix}--data-table--md td,
|
|
255
|
+
.#{$prefix}--data-table--md tbody tr th {
|
|
256
|
+
padding-top: $eccgui-size-tablecell-padding-tall * 1.05;
|
|
257
|
+
padding-bottom: $eccgui-size-tablecell-padding-tall * 0.95;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.#{$prefix}--data-table--md tbody td.#{$prefix}--table-expand {
|
|
261
|
+
padding-top: $eccgui-size-tablecell-padding-tall * 1.05;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// Expanded row
|
|
265
|
+
|
|
266
|
+
tr.#{$prefix}--parent-row:not(.#{$prefix}--expandable-row) + tr[data-child-row] {
|
|
267
|
+
display: none;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] {
|
|
271
|
+
display: table-row;
|
|
272
|
+
|
|
273
|
+
td {
|
|
274
|
+
padding-left: $eccgui-size-block-whitespace * 0.5;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
& > td {
|
|
278
|
+
padding: 0;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// Sorting option
|
|
283
|
+
|
|
284
|
+
.#{$prefix}--table-sort {
|
|
285
|
+
background-color: transparent;
|
|
286
|
+
padding-left: $eccgui-size-block-whitespace * 0.5;
|
|
287
|
+
|
|
288
|
+
&:hover {
|
|
289
|
+
background-color: $button-background-color-hover;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.cds--table-sort__icon-unsorted {
|
|
293
|
+
opacity: 1;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.cds--table-sort__flex {
|
|
297
|
+
justify-content: unset;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.#{$prefix}--table-sort.#{$prefix}--table-sort--active {
|
|
302
|
+
background: $button-background-color-active;
|
|
303
|
+
|
|
304
|
+
.cds--table-sort__icon {
|
|
305
|
+
opacity: 1;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// Sticky header
|
|
310
|
+
|
|
311
|
+
.#{$prefix}--data-table_inner-container {
|
|
312
|
+
background-color: $eccgui-color-tableheader-background;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.#{$prefix}--data-table--sticky-header {
|
|
316
|
+
thead tr th {
|
|
317
|
+
// border-bottom-color: $active-ui;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
tr {
|
|
321
|
+
min-height: $eccgui-size-tablecell-height-regular;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
@@ -29,7 +29,7 @@ export interface TagProps extends Omit<
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Sets the background color of a tag, depends on the `Color` object provided by the
|
|
32
|
-
* [npm color module](https://www.npmjs.com/package/color) v3. You can use it with
|
|
32
|
+
* [npm color module](https://www.npmjs.com/export package/color) v3. You can use it with
|
|
33
33
|
* all allowed [CSS color values](https://developer.mozilla.org/de/docs/Web/CSS/color_value).
|
|
34
34
|
*
|
|
35
35
|
* The front color is set automatically, so the tag label is always readable.
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
3
3
|
|
|
4
|
+
export interface TagListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
function TagList({
|
|
5
9
|
children,
|
|
6
10
|
className = '',
|
|
7
11
|
label = '',
|
|
8
12
|
...otherProps
|
|
9
|
-
}:
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
}: TagListProps) {
|
|
12
14
|
|
|
13
15
|
const tagList = (
|
|
14
16
|
<ul
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
-
import { Tag } from "
|
|
4
|
-
import { helpersArgTypes } from "
|
|
3
|
+
import { Tag } from "./../../../../index";
|
|
4
|
+
import { helpersArgTypes } from "../../../../.storybook/helpers";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
title: "Components/Tag",
|
|
@@ -33,6 +33,7 @@ const Template: ComponentStory<typeof Tag> = (args) => (
|
|
|
33
33
|
export const Default = Template.bind({});
|
|
34
34
|
Default.args = {
|
|
35
35
|
children: "Tag label",
|
|
36
|
+
small: false,
|
|
36
37
|
onClick: undefined,
|
|
37
38
|
onRemove: undefined,
|
|
38
39
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
+
import { TagList, Tag } from "./../../../../index";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: "Components/Tag",
|
|
7
|
+
component: TagList,
|
|
8
|
+
argTypes: {
|
|
9
|
+
children: {
|
|
10
|
+
control: "none",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
} as ComponentMeta<typeof TagList>;
|
|
14
|
+
|
|
15
|
+
const Template: ComponentStory<typeof TagList> = (args) => (
|
|
16
|
+
<TagList {...args} />
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export const List = Template.bind({});
|
|
20
|
+
List.args = {
|
|
21
|
+
label: "Tag list",
|
|
22
|
+
children: [
|
|
23
|
+
<Tag>Short</Tag>,
|
|
24
|
+
<Tag>List</Tag>,
|
|
25
|
+
<Tag>Of</Tag>,
|
|
26
|
+
<Tag>Tags</Tag>,
|
|
27
|
+
]
|
|
28
|
+
};
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
HTMLInputProps,
|
|
8
8
|
InputGroupProps,
|
|
9
9
|
} from "@blueprintjs/core";
|
|
10
|
+
import { IntentTypes, Definitions as IntentDefinitions } from "../../common/Intent";
|
|
10
11
|
import Icon from "../Icon/Icon";
|
|
11
12
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
12
13
|
import {ValidIconName} from "../Icon/canonicalIconNames";
|
|
@@ -15,20 +16,28 @@ import {InvisibleCharacterWarningProps, useTextValidation} from "./useTextValida
|
|
|
15
16
|
export interface TextFieldProps extends Partial<Omit<InputGroupProps, "intent" | "leftIcon"> & HTMLInputProps> {
|
|
16
17
|
/**
|
|
17
18
|
* The input element is displayed with primary color scheme.
|
|
19
|
+
* @deprecated
|
|
18
20
|
*/
|
|
19
21
|
hasStatePrimary?: boolean;
|
|
20
22
|
/**
|
|
21
23
|
* The input element is displayed with success (some type of green) color scheme.
|
|
24
|
+
* @deprecated
|
|
22
25
|
*/
|
|
23
26
|
hasStateSuccess?: boolean;
|
|
24
27
|
/**
|
|
25
28
|
* The input element is displayed with warning (some type of orange) color scheme.
|
|
29
|
+
* @deprecated
|
|
26
30
|
*/
|
|
27
31
|
hasStateWarning?: boolean;
|
|
28
32
|
/**
|
|
29
33
|
* The input element is displayed with danger (some type of red) color scheme.
|
|
34
|
+
* @deprecated
|
|
30
35
|
*/
|
|
31
36
|
hasStateDanger?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Intent state of the text field.
|
|
39
|
+
*/
|
|
40
|
+
intent?: IntentTypes | "edited" | "removed"
|
|
32
41
|
/**
|
|
33
42
|
* The input element uses the full horizontal width of the parent container.
|
|
34
43
|
*/
|
|
@@ -57,43 +66,65 @@ function TextField({
|
|
|
57
66
|
invisibleCharacterWarning,
|
|
58
67
|
...otherProps
|
|
59
68
|
}: TextFieldProps) {
|
|
60
|
-
let
|
|
69
|
+
let deprecatedIntent;
|
|
61
70
|
switch (true) {
|
|
62
71
|
case hasStatePrimary:
|
|
63
|
-
|
|
72
|
+
deprecatedIntent = IntentDefinitions.PRIMARY;
|
|
64
73
|
break;
|
|
65
74
|
case hasStateSuccess:
|
|
66
|
-
|
|
75
|
+
deprecatedIntent = IntentDefinitions.SUCCESS;
|
|
67
76
|
break;
|
|
68
77
|
case hasStateWarning:
|
|
69
|
-
|
|
78
|
+
deprecatedIntent = IntentDefinitions.WARNING;
|
|
70
79
|
break;
|
|
71
80
|
case hasStateDanger:
|
|
72
|
-
|
|
81
|
+
deprecatedIntent = IntentDefinitions.DANGER;
|
|
73
82
|
break;
|
|
74
83
|
default:
|
|
75
84
|
break;
|
|
76
85
|
}
|
|
77
86
|
|
|
78
|
-
const
|
|
87
|
+
const {
|
|
88
|
+
intent = deprecatedIntent,
|
|
89
|
+
...otherBlueprintInputGroupProps
|
|
90
|
+
} = otherProps;
|
|
91
|
+
|
|
92
|
+
let iconIntent;
|
|
93
|
+
switch (intent) {
|
|
94
|
+
case "edited":
|
|
95
|
+
iconIntent = IntentDefinitions.INFO;
|
|
96
|
+
break;
|
|
97
|
+
case "removed":
|
|
98
|
+
iconIntent = IntentDefinitions.DANGER;
|
|
99
|
+
break;
|
|
100
|
+
default:
|
|
101
|
+
iconIntent = intent as IntentTypes;
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const maybeWrappedOnChange = useTextValidation({...otherBlueprintInputGroupProps, invisibleCharacterWarning})
|
|
79
106
|
|
|
80
|
-
if ((
|
|
81
|
-
|
|
107
|
+
if ((otherBlueprintInputGroupProps.readOnly || otherBlueprintInputGroupProps.disabled) && !!otherBlueprintInputGroupProps.value && !otherBlueprintInputGroupProps.title) {
|
|
108
|
+
otherBlueprintInputGroupProps["title"] = otherBlueprintInputGroupProps.value;
|
|
82
109
|
}
|
|
83
110
|
|
|
84
111
|
return (
|
|
85
112
|
<BlueprintInputGroup
|
|
86
|
-
className={
|
|
87
|
-
|
|
113
|
+
className={
|
|
114
|
+
`${eccgui}-textfield` +
|
|
115
|
+
(intent ? ` ${eccgui}-intent--${intent}` : "") +
|
|
116
|
+
(!!className ? ` ${className}` : "")
|
|
117
|
+
}
|
|
118
|
+
intent={(intent && !(["info", "edited", "removed", "neutral"].includes(intent))) ? intent as BlueprintIntent : undefined}
|
|
88
119
|
fill={fullWidth}
|
|
89
|
-
{...
|
|
120
|
+
{...otherBlueprintInputGroupProps}
|
|
90
121
|
leftIcon={
|
|
91
122
|
leftIcon != null && leftIcon !== false ? (
|
|
92
123
|
typeof leftIcon === "string" ? (
|
|
93
124
|
<Icon
|
|
94
125
|
name={leftIcon}
|
|
95
126
|
className={BlueprintClassNames.ICON}
|
|
96
|
-
intent={
|
|
127
|
+
intent={iconIntent as IntentTypes | undefined}
|
|
97
128
|
/>
|
|
98
129
|
) : (
|
|
99
130
|
<span className={BlueprintClassNames.ICON}>{leftIcon}</span>
|
|
@@ -71,7 +71,7 @@ $input-button-height-small: math.div($eccgui-size-textfield-height-small, $eccgu
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.#{$ns}-input {
|
|
74
|
-
.#{$ns}-input-group[class*="#{$
|
|
74
|
+
.#{$ns}-input-group[class*="#{$eccgui}-intent--"] & {
|
|
75
75
|
animation-delay: 0.5s;
|
|
76
76
|
animation-duration: 1s;
|
|
77
77
|
}
|
|
@@ -79,6 +79,28 @@ $input-button-height-small: math.div($eccgui-size-textfield-height-small, $eccgu
|
|
|
79
79
|
@include intent-state-flash("success", $eccgui-color-success-background);
|
|
80
80
|
@include intent-state-flash("warning", $eccgui-color-warning-background);
|
|
81
81
|
@include intent-state-flash("danger", $eccgui-color-danger-background);
|
|
82
|
+
|
|
83
|
+
.#{$ns}-input-group.#{$eccgui}-intent--info & {
|
|
84
|
+
@include pt-input-intent($eccgui-color-info-text);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.#{$ns}-input-group.#{$eccgui}-intent--accent & {
|
|
88
|
+
@include pt-input-intent($eccgui-color-primary);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.#{$ns}-input-group.#{$eccgui}-intent--neutral & {
|
|
92
|
+
@include pt-input-intent($eccgui-color-workspace-text);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.#{$ns}-input-group.#{$eccgui}-intent--edited & {
|
|
96
|
+
@include pt-input-intent($eccgui-color-info-text);
|
|
97
|
+
color: $eccgui-color-info-text;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.#{$ns}-input-group.#{$eccgui}-intent--removed & {
|
|
101
|
+
@include pt-input-intent($eccgui-color-danger-text);
|
|
102
|
+
text-decoration: line-through $eccgui-color-danger-text 2px;
|
|
103
|
+
}
|
|
82
104
|
}
|
|
83
105
|
|
|
84
106
|
.#{$eccgui}-textarea {
|
|
@@ -51,8 +51,8 @@ mark {
|
|
|
51
51
|
styles from other stylesheets we cannot control here
|
|
52
52
|
TODO: need to reevaluated when it is not used together with MDL anymore
|
|
53
53
|
*/
|
|
54
|
-
background-color: rgba(
|
|
55
|
-
color:
|
|
54
|
+
background-color: rgba($eccgui-color-info-background, 1) !important;
|
|
55
|
+
color: $eccgui-color-info-text !important;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// HtmlContentBlock
|
package/src/components/index.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
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
|
+
|
|
10
|
+
export * from "./interfaces";
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
$reactflow-node-basesize: $button-height !default;
|
|
2
|
+
$reactflow-node-largesize: mini-units(6) !default;
|
|
2
3
|
$reactflow-node-border-color: $eccgui-color-workspace-text !default;
|
|
3
4
|
$reactflow-node-background-color: $button-background-color !default;
|
|
4
5
|
$reactflow-node-color: $eccgui-color-workspace-text !default;
|
|
5
6
|
$reactflow-node-font-size: $eccgui-size-typo-caption !default;
|
|
6
7
|
$reactflow-node-border-width: 2 * $button-border-width !default;
|
|
7
8
|
$reactflow-node-border-radius: $button-border-radius !default;
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
$reactflow-edge-stroke-opacity-default: 0.6 !default;
|
|
11
|
+
$reactflow-edge-stroke-opacity-hover: 0.8 !default;
|
|
12
|
+
$reactflow-edge-stroke-opacity-selected: 1 !default;
|
|
13
|
+
$reactflow-edge-stroke-color-default: $eccgui-color-workspace-text !default;
|
|
9
14
|
$reactflow-edge-stroke-color-hover: $eccgui-color-workspace-text !default;
|
|
10
15
|
$reactflow-edge-stroke-color-selected: $eccgui-color-accent !default;
|
|
16
|
+
|
|
11
17
|
$reactflow-transition-time: 0.25s !default;
|
|
12
18
|
$reactflow-transition-function: "" !default;
|
|
13
19
|
|
|
14
|
-
$reactflow-
|
|
15
|
-
$reactflow-edge-stroke-opacity-hover: alpha($reactflow-edge-stroke-color) !default;
|
|
16
|
-
$reactflow-edge-stroke-opacity-selected: alpha($reactflow-edge-stroke-color) !default;
|
|
20
|
+
$reactflow-transition-anglestart: -90deg;
|