@elyra/canvas 12.44.0 → 13.0.0-alpha.0
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/build.sh +2 -2
- package/dist/bucket-2-b54707f5.js +2 -0
- package/dist/bucket-2-b54707f5.js.map +1 -0
- package/dist/bucket-2-ead0e85a.js +2 -0
- package/dist/bucket-2-ead0e85a.js.map +1 -0
- package/dist/bucket-8-cc1980eb.js +8 -0
- package/dist/bucket-8-cc1980eb.js.map +1 -0
- package/dist/bucket-8-de8062b8.js +7 -0
- package/dist/bucket-8-de8062b8.js.map +1 -0
- package/dist/common-canvas-2ec9a216.js +2 -0
- package/dist/common-canvas-2ec9a216.js.map +1 -0
- package/dist/common-canvas-b1ee91b9.js +2 -0
- package/dist/common-canvas-b1ee91b9.js.map +1 -0
- package/dist/common-canvas.es.js +1 -1
- package/dist/common-canvas.es.js.map +1 -1
- package/dist/common-canvas.js +1 -1
- package/dist/common-canvas.js.map +1 -1
- package/dist/common-properties-bdb253ac.js +2 -0
- package/dist/common-properties-bdb253ac.js.map +1 -0
- package/dist/common-properties-bf161ba9.js +2 -0
- package/dist/common-properties-bf161ba9.js.map +1 -0
- package/dist/context-menu-wrapper-0eab6957.js +2 -0
- package/dist/context-menu-wrapper-0eab6957.js.map +1 -0
- package/dist/context-menu-wrapper-3d3215a1.js +2 -0
- package/dist/context-menu-wrapper-3d3215a1.js.map +1 -0
- package/dist/flexible-table-9c20861b.js +2 -0
- package/dist/flexible-table-9c20861b.js.map +1 -0
- package/dist/flexible-table-e7485a71.js +2 -0
- package/dist/flexible-table-e7485a71.js.map +1 -0
- package/dist/icon-0c141070.js +2 -0
- package/dist/icon-0c141070.js.map +1 -0
- package/dist/icon-594ca22f.js +2 -0
- package/dist/icon-594ca22f.js.map +1 -0
- package/dist/iconPropTypes-4cbeb95d-2c6ff14c.js +2 -0
- package/dist/iconPropTypes-4cbeb95d-2c6ff14c.js.map +1 -0
- package/dist/iconPropTypes-4cbeb95d-a0eae58e.js +2 -0
- package/dist/iconPropTypes-4cbeb95d-a0eae58e.js.map +1 -0
- package/dist/index-663171c6.js +2 -0
- package/dist/index-663171c6.js.map +1 -0
- package/dist/index-cbac5c62.js +2 -0
- package/dist/index-cbac5c62.js.map +1 -0
- package/dist/lib/canvas.es.js +1 -1
- package/dist/lib/canvas.js +1 -1
- package/dist/lib/context-menu.es.js +1 -1
- package/dist/lib/context-menu.js +1 -1
- package/dist/lib/properties/field-picker.es.js +1 -1
- package/dist/lib/properties/field-picker.js +1 -1
- package/dist/lib/properties/flexible-table.es.js +1 -1
- package/dist/lib/properties/flexible-table.js +1 -1
- package/dist/lib/properties.es.js +1 -1
- package/dist/lib/properties.js +1 -1
- package/dist/lib/tooltip.es.js +1 -1
- package/dist/lib/tooltip.es.js.map +1 -1
- package/dist/lib/tooltip.js +1 -1
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/styles/common-canvas.min.css +1 -1
- package/dist/styles/common-canvas.min.css.map +1 -1
- package/dist/toolbar-61e2a68d.js +2 -0
- package/dist/toolbar-61e2a68d.js.map +1 -0
- package/dist/toolbar-a8104255.js +2 -0
- package/dist/toolbar-a8104255.js.map +1 -0
- package/locales/common-properties/locales/en.json +4 -1
- package/locales/common-properties/locales/eo.json +4 -1
- package/package.json +16 -23
- package/src/carbon.scss +22 -0
- package/src/color-picker/color-picker.scss +1 -3
- package/src/common-canvas/cc-contents.jsx +4 -4
- package/src/common-canvas/cc-state-tag.jsx +3 -3
- package/src/common-canvas/cc-text-toolbar.jsx +11 -11
- package/src/common-canvas/common-canvas.scss +26 -27
- package/src/common-canvas/svg-canvas-d3.scss +64 -64
- package/src/common-canvas/svg-canvas-utils-external.js +12 -6
- package/src/common-canvas/svg-canvas-utils-textarea.js +1 -1
- package/src/common-properties/actions/button/button.jsx +2 -2
- package/src/common-properties/actions/button/button.scss +0 -3
- package/src/common-properties/actions/image/image.scss +0 -3
- package/src/common-properties/components/control-item/control-item.scss +8 -8
- package/src/common-properties/components/editor-form/editor-form.jsx +22 -13
- package/src/common-properties/components/editor-form/editor-form.scss +16 -22
- package/src/common-properties/components/empty-table/empty-table.jsx +4 -4
- package/src/common-properties/components/empty-table/empty-table.scss +1 -1
- package/src/common-properties/components/field-picker/field-picker.jsx +4 -3
- package/src/common-properties/components/field-picker/field-picker.scss +3 -3
- package/src/common-properties/components/flexible-table/flexible-table.jsx +11 -10
- package/src/common-properties/components/flexible-table/flexible-table.scss +9 -8
- package/src/common-properties/components/moveable-table-rows/moveable-table-rows.jsx +10 -2
- package/src/common-properties/components/moveable-table-rows/moveable-table-rows.scss +4 -8
- package/src/common-properties/components/properties-buttons/properties-buttons.jsx +6 -7
- package/src/common-properties/components/properties-buttons/properties-buttons.scss +8 -7
- package/src/common-properties/components/properties-modal/properties-modal.jsx +1 -1
- package/src/common-properties/components/properties-modal/properties-modal.scss +4 -4
- package/src/common-properties/components/title-editor/title-editor.jsx +9 -9
- package/src/common-properties/components/title-editor/title-editor.scss +9 -9
- package/src/common-properties/components/truncated-content-tooltip/truncated-content-tooltip.jsx +1 -1
- package/src/common-properties/components/validation-message/validation-message.scss +7 -7
- package/src/common-properties/components/virtualized-table/virtualized-table.jsx +9 -9
- package/src/common-properties/components/virtualized-table/virtualized-table.scss +23 -25
- package/src/common-properties/components/wide-flyout/wide-flyout.scss +5 -5
- package/src/common-properties/constants/constants.js +5 -3
- package/src/common-properties/controls/abstract-table.jsx +9 -9
- package/src/common-properties/controls/abstract-table.scss +4 -4
- package/src/common-properties/controls/checkbox/checkbox.jsx +15 -15
- package/src/common-properties/controls/checkbox/checkbox.scss +3 -5
- package/src/common-properties/controls/checkboxset/checkboxset.jsx +4 -4
- package/src/common-properties/controls/checkboxset/checkboxset.scss +3 -2
- package/src/common-properties/controls/datefield/datefield.jsx +14 -13
- package/src/common-properties/controls/datepicker/datepicker.jsx +23 -22
- package/src/common-properties/controls/datepicker/datepicker.scss +1 -10
- package/src/common-properties/controls/datepicker-range/datepicker-range.jsx +35 -34
- package/src/common-properties/controls/datepicker-range/datepicker-range.scss +1 -1
- package/src/common-properties/controls/dropdown/dropdown.jsx +49 -40
- package/src/common-properties/controls/dropdown/dropdown.scss +9 -14
- package/src/common-properties/controls/expression/expression-builder/expression-builder.scss +3 -3
- package/src/common-properties/controls/expression/expression-builder/expression-select-field-function.jsx +5 -5
- package/src/common-properties/controls/expression/expression-builder/expression-select-operator.jsx +2 -2
- package/src/common-properties/controls/expression/expression-toggle/expression-toggle.jsx +8 -7
- package/src/common-properties/controls/expression/expression-toggle/expression-toggle.scss +1 -1
- package/src/common-properties/controls/expression/expression.jsx +4 -3
- package/src/common-properties/controls/expression/expression.scss +16 -17
- package/src/common-properties/controls/multiselect/multiselect.jsx +32 -26
- package/src/common-properties/controls/multiselect/multiselect.scss +1 -1
- package/src/common-properties/controls/numberfield/numberfield.jsx +24 -22
- package/src/common-properties/controls/numberfield/numberfield.scss +7 -14
- package/src/common-properties/controls/passwordfield/passwordfield.jsx +17 -16
- package/src/common-properties/controls/radioset/radioset.jsx +3 -3
- package/src/common-properties/controls/radioset/radioset.scss +2 -2
- package/src/common-properties/controls/slider/slider.jsx +21 -17
- package/src/common-properties/controls/slider/slider.scss +10 -6
- package/src/common-properties/controls/someofselect/someofselect.scss +3 -3
- package/src/common-properties/controls/textarea/textarea.jsx +26 -22
- package/src/common-properties/controls/textarea/textarea.scss +0 -5
- package/src/common-properties/controls/textfield/textfield.jsx +17 -14
- package/src/common-properties/controls/textfield/textfield.scss +3 -7
- package/src/common-properties/controls/timefield/timefield.jsx +14 -13
- package/src/common-properties/controls/toggle/toggle.jsx +11 -2
- package/src/common-properties/controls/toggle/toggle.scss +2 -4
- package/src/common-properties/controls/toggletext/toggletext.jsx +4 -4
- package/src/common-properties/controls/toggletext/toggletext.scss +11 -4
- package/src/common-properties/index.scss +2 -2
- package/src/common-properties/panels/control/control.scss +2 -2
- package/src/common-properties/panels/sub-panel/button.jsx +2 -2
- package/src/common-properties/panels/sub-panel/cell.jsx +3 -4
- package/src/common-properties/panels/sub-panel/sub-panel.scss +2 -2
- package/src/common-properties/panels/subtabs/subtabs.jsx +22 -13
- package/src/common-properties/panels/subtabs/subtabs.scss +28 -27
- package/src/common-properties/panels/summary/summary.jsx +4 -4
- package/src/common-properties/panels/summary/summary.scss +5 -5
- package/src/common-properties/panels/tearsheet/tearsheet.jsx +1 -1
- package/src/common-properties/panels/tearsheet/tearsheet.scss +17 -17
- package/src/common-properties/panels/text-panel/text-panel.scss +4 -4
- package/src/common-properties/panels/twisty/twisty.jsx +1 -1
- package/src/common-properties/panels/twisty/twisty.scss +5 -2
- package/src/common-properties/properties-main/properties-main.jsx +1 -1
- package/src/common-properties/properties-main/properties-main.scss +8 -8
- package/src/context-menu/common-context-menu.jsx +2 -2
- package/src/context-menu/context-menu.scss +5 -6
- package/src/icons/icon.jsx +33 -33
- package/src/icons/icon.scss +10 -10
- package/src/index.scss +2 -4
- package/src/notification-panel/notification-panel.jsx +5 -5
- package/src/notification-panel/notification-panel.scss +31 -31
- package/src/palette/palette-dialog-topbar.jsx +4 -4
- package/src/palette/palette-flyout-content-category.jsx +3 -3
- package/src/palette/palette-flyout-content-search.jsx +2 -2
- package/src/palette/palette-flyout-content.jsx +1 -1
- package/src/palette/palette.scss +45 -43
- package/src/themes/light.scss +7 -3
- package/src/toolbar/toolbar-action-item.jsx +1 -1
- package/src/toolbar/toolbar-button-item.jsx +31 -31
- package/src/toolbar/toolbar-overflow-item.jsx +3 -3
- package/src/toolbar/toolbar-sub-menu-item.jsx +4 -1
- package/src/toolbar/toolbar.scss +41 -39
- package/src/tooltip/tooltip.jsx +1 -1
- package/src/tooltip/tooltip.scss +15 -15
- package/stats.html +1 -1
- package/dist/_baseIteratee-148093b7.js +0 -7
- package/dist/_baseIteratee-148093b7.js.map +0 -1
- package/dist/_baseIteratee-2b75d27c.js +0 -8
- package/dist/_baseIteratee-2b75d27c.js.map +0 -1
- package/dist/common-canvas-6ed21ab6.js +0 -2
- package/dist/common-canvas-6ed21ab6.js.map +0 -1
- package/dist/common-canvas-8abf016c.js +0 -2
- package/dist/common-canvas-8abf016c.js.map +0 -1
- package/dist/common-properties-88377242.js +0 -2
- package/dist/common-properties-88377242.js.map +0 -1
- package/dist/common-properties-b295acc8.js +0 -2
- package/dist/common-properties-b295acc8.js.map +0 -1
- package/dist/context-menu-wrapper-949393c7.js +0 -2
- package/dist/context-menu-wrapper-949393c7.js.map +0 -1
- package/dist/context-menu-wrapper-f62dfcdb.js +0 -2
- package/dist/context-menu-wrapper-f62dfcdb.js.map +0 -1
- package/dist/flexible-table-c6a8b402.js +0 -2
- package/dist/flexible-table-c6a8b402.js.map +0 -1
- package/dist/flexible-table-f7b294a0.js +0 -2
- package/dist/flexible-table-f7b294a0.js.map +0 -1
- package/dist/icon-56b27c4f.js +0 -2
- package/dist/icon-56b27c4f.js.map +0 -1
- package/dist/icon-8ec2f0ec.js +0 -2
- package/dist/icon-8ec2f0ec.js.map +0 -1
- package/dist/index-01cbacf9.js +0 -2
- package/dist/index-01cbacf9.js.map +0 -1
- package/dist/index-79543d41.js +0 -2
- package/dist/index-79543d41.js.map +0 -1
- package/dist/toolbar-235dfb9d.js +0 -2
- package/dist/toolbar-235dfb9d.js.map +0 -1
- package/dist/toolbar-6607e35c.js +0 -2
- package/dist/toolbar-6607e35c.js.map +0 -1
package/src/icons/icon.scss
CHANGED
|
@@ -15,41 +15,41 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
.canvas-icon .stroke, .canvas-icon.stroke {
|
|
18
|
-
stroke: $icon-
|
|
18
|
+
stroke: $icon-primary;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.canvas-icon .fill, .canvas-icon.fill {
|
|
22
|
-
fill: $icon-
|
|
22
|
+
fill: $icon-primary;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.canvas-icon[disabled] {
|
|
26
|
-
fill: $disabled
|
|
26
|
+
fill: $button-disabled;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
svg.properties-icon, svg.canvas-icon {
|
|
30
|
-
fill: $icon-
|
|
30
|
+
fill: $icon-primary;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
svg.canvas-state-icon-error {
|
|
34
|
-
fill: $support-
|
|
34
|
+
fill: $support-error;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
svg.canvas-state-icon-success {
|
|
38
|
-
fill: $support-
|
|
38
|
+
fill: $support-success;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
svg.canvas-state-icon-warning {
|
|
42
|
-
fill: $support-
|
|
42
|
+
fill: $support-warning;
|
|
43
43
|
[data-icon-path="inner-path"] { // exclamation mark
|
|
44
|
-
fill: $
|
|
44
|
+
fill: $layer-selected-inverse;
|
|
45
45
|
opacity: 1;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
svg.canvas-state-icon-info {
|
|
50
|
-
fill: $support-
|
|
50
|
+
fill: $support-info;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
svg.canvas-state-icon-information-hollow {
|
|
54
|
-
fill: $icon-
|
|
54
|
+
fill: $icon-secondary;
|
|
55
55
|
}
|
package/src/index.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
@import "carbon
|
|
18
|
-
@import "carbon-components/scss/globals/scss/typography";
|
|
19
|
-
|
|
17
|
+
@import "./carbon.scss";
|
|
20
18
|
@import "./common-properties/index.scss";
|
|
21
19
|
@import "./notification-panel/notification-panel.scss";
|
|
22
20
|
@import "./icons/icon.scss";
|
|
@@ -19,8 +19,8 @@ import PropTypes from "prop-types";
|
|
|
19
19
|
import { connect } from "react-redux";
|
|
20
20
|
import { injectIntl } from "react-intl";
|
|
21
21
|
import Icon from "./../icons/icon.jsx";
|
|
22
|
-
import { Button } from "carbon
|
|
23
|
-
import {
|
|
22
|
+
import { Button } from "@carbon/react";
|
|
23
|
+
import { Close } from "@carbon/react/icons";
|
|
24
24
|
import Logger from "../logging/canvas-logger.js";
|
|
25
25
|
import { DEFAULT_NOTIFICATION_HEADER } from "./../common-canvas/constants/canvas-constants.js";
|
|
26
26
|
import defaultMessages from "../../locales/notification-panel/locales/en.json";
|
|
@@ -200,7 +200,7 @@ class NotificationPanel extends React.Component {
|
|
|
200
200
|
ref={(ref) => (!ref || this.allRefs.push(ref))}
|
|
201
201
|
size="sm"
|
|
202
202
|
kind="ghost"
|
|
203
|
-
renderIcon={
|
|
203
|
+
renderIcon={Close}
|
|
204
204
|
hasIconOnly
|
|
205
205
|
iconDescription={this.props.intl.formatMessage({
|
|
206
206
|
id: "notification.panel.close.button.description",
|
|
@@ -228,7 +228,7 @@ class NotificationPanel extends React.Component {
|
|
|
228
228
|
className="notification-panel-clear-all"
|
|
229
229
|
onClick={this.clearNotificationMessages.bind(this)}
|
|
230
230
|
kind="ghost"
|
|
231
|
-
size="
|
|
231
|
+
size="sm"
|
|
232
232
|
disabled={this.props.messages.length === 0}
|
|
233
233
|
>
|
|
234
234
|
{this.props.notificationConfig.clearAllMessage}
|
|
@@ -245,7 +245,7 @@ class NotificationPanel extends React.Component {
|
|
|
245
245
|
className="notification-panel-secondary-button"
|
|
246
246
|
onClick={this.props.notificationConfig.secondaryButtonCallback.bind(this)}
|
|
247
247
|
kind="ghost"
|
|
248
|
-
size="
|
|
248
|
+
size="sm"
|
|
249
249
|
disabled={this.props.secondaryButtonDisabled}
|
|
250
250
|
>
|
|
251
251
|
{this.props.notificationConfig.secondaryButtonLabel}
|
|
@@ -34,7 +34,7 @@ $notification-panel-button-container-height: 49px;
|
|
|
34
34
|
min-height: $notification-panel-header-height;
|
|
35
35
|
height: fit-content;
|
|
36
36
|
width: inherit;
|
|
37
|
-
background-color: $
|
|
37
|
+
background-color: $layer-01;
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-direction: column;
|
|
40
40
|
justify-content: center;
|
|
@@ -43,20 +43,20 @@ $notification-panel-button-container-height: 49px;
|
|
|
43
43
|
outline: none; // Turn outline off and use carbon style for focus below.
|
|
44
44
|
|
|
45
45
|
&:focus {
|
|
46
|
-
border-color: $
|
|
47
|
-
box-shadow: inset 0 0 0 2px $
|
|
46
|
+
border-color: $focus;
|
|
47
|
+
box-shadow: inset 0 0 0 2px $focus;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.notification-panel-header {
|
|
51
|
-
@include
|
|
51
|
+
@include type-style("productive-heading-02");
|
|
52
52
|
display: flex;
|
|
53
53
|
justify-content: space-between;
|
|
54
54
|
align-items: center;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.notification-panel-subtitle {
|
|
58
|
-
@include
|
|
59
|
-
color: $text-
|
|
58
|
+
@include type-style("helper-text-01");
|
|
59
|
+
color: $text-secondary;
|
|
60
60
|
padding-top: $spacing-02;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -70,7 +70,7 @@ $notification-panel-button-container-height: 49px;
|
|
|
70
70
|
.notification-panel-button-container {
|
|
71
71
|
width: 100%;
|
|
72
72
|
height: $notification-panel-button-container-height;
|
|
73
|
-
background-color: $
|
|
73
|
+
background-color: $layer-01;
|
|
74
74
|
display: flex;
|
|
75
75
|
justify-content: space-between;
|
|
76
76
|
border-top: 0;
|
|
@@ -81,13 +81,13 @@ $notification-panel-button-container-height: 49px;
|
|
|
81
81
|
.notification-panel-messages {
|
|
82
82
|
overflow-y: auto;
|
|
83
83
|
line-height: normal;
|
|
84
|
-
background-color: $
|
|
85
|
-
border-top: 1px solid $
|
|
86
|
-
border-bottom: 1px solid $
|
|
84
|
+
background-color: $layer-01;
|
|
85
|
+
border-top: 1px solid $layer-accent-01;
|
|
86
|
+
border-bottom: 1px solid $layer-accent-01;
|
|
87
87
|
max-height: 448px;
|
|
88
88
|
|
|
89
89
|
.notifications-button-container {
|
|
90
|
-
border-bottom: 1px solid $
|
|
90
|
+
border-bottom: 1px solid $layer-accent-01;
|
|
91
91
|
min-height: $notification-message-height;
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -99,12 +99,12 @@ $notification-panel-button-container-height: 49px;
|
|
|
99
99
|
outline: none; // Turn outline off and use carbon style for focus below.
|
|
100
100
|
|
|
101
101
|
&:focus {
|
|
102
|
-
border-color: $
|
|
103
|
-
box-shadow: inset 0 0 0 2px $
|
|
102
|
+
border-color: $focus;
|
|
103
|
+
box-shadow: inset 0 0 0 2px $focus;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.notification-panel-empty-message {
|
|
107
|
-
@include
|
|
107
|
+
@include type-style("body-short-01");
|
|
108
108
|
text-align: center;
|
|
109
109
|
padding-right: 30px;
|
|
110
110
|
padding-left: 30px;
|
|
@@ -120,21 +120,21 @@ $notification-panel-button-container-height: 49px;
|
|
|
120
120
|
display: inline-flex;
|
|
121
121
|
width: 100%;
|
|
122
122
|
min-height: $notification-message-height;
|
|
123
|
-
background-color: $
|
|
123
|
+
background-color: $layer-01;
|
|
124
124
|
border-style: none;
|
|
125
|
-
border-left: $notification-left-border-color-width solid $
|
|
125
|
+
border-left: $notification-left-border-color-width solid $layer-01;
|
|
126
126
|
cursor: default;
|
|
127
127
|
margin-top: 0; // Required for Safari
|
|
128
128
|
margin-bottom: 0; // Required for Safari
|
|
129
129
|
outline: none; // Turn outline off and use carbon style for focus below.
|
|
130
130
|
|
|
131
131
|
&:focus {
|
|
132
|
-
border-color: $
|
|
133
|
-
box-shadow: inset 0 0 0 2px $
|
|
132
|
+
border-color: $focus;
|
|
133
|
+
box-shadow: inset 0 0 0 2px $focus;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
&:hover {
|
|
137
|
-
background-color: $hover-
|
|
137
|
+
background-color: $layer-hover-01;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
&:focus,
|
|
@@ -143,16 +143,16 @@ $notification-panel-button-container-height: 49px;
|
|
|
143
143
|
border-left: $notification-left-border-color-width solid $field-01;
|
|
144
144
|
}
|
|
145
145
|
&.error {
|
|
146
|
-
border-left: $notification-left-border-color-width solid $support-
|
|
146
|
+
border-left: $notification-left-border-color-width solid $support-error;
|
|
147
147
|
}
|
|
148
148
|
&.warning {
|
|
149
|
-
border-left: $notification-left-border-color-width solid $support-
|
|
149
|
+
border-left: $notification-left-border-color-width solid $support-warning;
|
|
150
150
|
}
|
|
151
151
|
&.success {
|
|
152
|
-
border-left: $notification-left-border-color-width solid $support-
|
|
152
|
+
border-left: $notification-left-border-color-width solid $support-success;
|
|
153
153
|
}
|
|
154
154
|
&.info {
|
|
155
|
-
border-left: $notification-left-border-color-width solid $support-
|
|
155
|
+
border-left: $notification-left-border-color-width solid $support-info;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -181,24 +181,24 @@ $notification-panel-button-container-height: 49px;
|
|
|
181
181
|
width: 266px;
|
|
182
182
|
|
|
183
183
|
.notification-message-title {
|
|
184
|
-
@include
|
|
185
|
-
color: $text-
|
|
184
|
+
@include type-style("productive-heading-01");
|
|
185
|
+
color: $text-primary;
|
|
186
186
|
padding-bottom: $spacing-02;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.notification-message-subtitle {
|
|
190
|
-
@include
|
|
191
|
-
color: $text-
|
|
190
|
+
@include type-style("label-01");
|
|
191
|
+
color: $text-secondary;
|
|
192
192
|
hr {
|
|
193
193
|
margin-bottom: $spacing-03;
|
|
194
194
|
border-bottom: 0;
|
|
195
|
-
border-top: solid 1px $
|
|
195
|
+
border-top: solid 1px $layer-accent-01;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.notification-message-content {
|
|
200
|
-
@include
|
|
201
|
-
color: $text-
|
|
200
|
+
@include type-style("label-01");
|
|
201
|
+
color: $text-secondary;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -210,7 +210,7 @@ $notification-panel-button-container-height: 49px;
|
|
|
210
210
|
|
|
211
211
|
.notification-message-timestamp {
|
|
212
212
|
display: inline-flex;
|
|
213
|
-
color: $text-
|
|
213
|
+
color: $text-secondary;
|
|
214
214
|
svg {
|
|
215
215
|
width: 10px;
|
|
216
216
|
height: 10px;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
|
|
20
|
-
import {
|
|
20
|
+
import { CloseOutline, Grid, List } from "@carbon/react/icons";
|
|
21
21
|
|
|
22
22
|
import Toolbar from "../toolbar";
|
|
23
23
|
|
|
@@ -56,13 +56,13 @@ class PaletteDialogTopbar extends React.Component {
|
|
|
56
56
|
render() {
|
|
57
57
|
const config = {
|
|
58
58
|
leftBar: [
|
|
59
|
-
{ action: "grid", iconEnabled: (<
|
|
60
|
-
{ action: "list", iconEnabled: (<
|
|
59
|
+
{ action: "grid", iconEnabled: (<Grid />), enable: true, isSelected: this.props.showGrid },
|
|
60
|
+
{ action: "list", iconEnabled: (<List />), enable: true, isSelected: !this.props.showGrid },
|
|
61
61
|
{ divider: true }
|
|
62
62
|
],
|
|
63
63
|
rightBar: [
|
|
64
64
|
{ divider: true },
|
|
65
|
-
{ action: "close", iconEnabled: (<
|
|
65
|
+
{ action: "close", iconEnabled: (<CloseOutline />), enable: true }
|
|
66
66
|
]
|
|
67
67
|
};
|
|
68
68
|
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
|
-
import { InlineLoading } from "carbon
|
|
19
|
+
import { InlineLoading } from "@carbon/react";
|
|
20
20
|
import SVG from "react-inlinesvg";
|
|
21
21
|
import { TIP_TYPE_PALETTE_CATEGORY } from "../common-canvas/constants/canvas-constants.js";
|
|
22
22
|
import { get } from "lodash";
|
|
23
|
-
import { AccordionItem } from "carbon
|
|
23
|
+
import { AccordionItem } from "@carbon/react";
|
|
24
24
|
import PaletteContentList from "./palette-content-list.jsx";
|
|
25
25
|
|
|
26
26
|
|
|
@@ -212,7 +212,7 @@ class PaletteFlyoutContentCategory extends React.Component {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
categoryKeyPressed(evt) {
|
|
215
|
-
if (evt.target.className === "
|
|
215
|
+
if (evt.target.className === "cds--accordion__heading") {
|
|
216
216
|
if (evt.code === "Enter" || evt.code === "Space") {
|
|
217
217
|
evt.preventDefault();
|
|
218
218
|
evt.stopPropagation();
|
|
@@ -18,7 +18,7 @@ import React from "react";
|
|
|
18
18
|
import { injectIntl } from "react-intl";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import defaultMessages from "../../locales/palette/locales/en.json";
|
|
21
|
-
import { Search } from "carbon
|
|
21
|
+
import { Search } from "@carbon/react";
|
|
22
22
|
|
|
23
23
|
class PaletteFlyoutContentSearch extends React.Component {
|
|
24
24
|
|
|
@@ -52,7 +52,7 @@ class PaletteFlyoutContentSearch extends React.Component {
|
|
|
52
52
|
// palette-flyout-search id added for hopscotch tours
|
|
53
53
|
<div className="palette-flyout-search-container" id="palette-flyout-search">
|
|
54
54
|
<Search
|
|
55
|
-
|
|
55
|
+
id="palette-flyout-search"
|
|
56
56
|
className="palette-flyout-search"
|
|
57
57
|
placeholder={placeHolder}
|
|
58
58
|
onChange={this.handleSearchStringChange}
|
|
@@ -22,7 +22,7 @@ import PaletteFlyoutContentCategory from "./palette-flyout-content-category.jsx"
|
|
|
22
22
|
import PaletteFlyoutContentSearch from "./palette-flyout-content-search.jsx";
|
|
23
23
|
import PaletteFlyoutContentFilteredList from "./palette-flyout-content-filtered-list.jsx";
|
|
24
24
|
import Logger from "../logging/canvas-logger.js";
|
|
25
|
-
import { Accordion } from "carbon
|
|
25
|
+
import { Accordion } from "@carbon/react";
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
const logger = new Logger("PaletteFlyoutContent");
|
package/src/palette/palette.scss
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
$palette-border-width: 1px;
|
|
18
|
-
$palette-border-color: $
|
|
18
|
+
$palette-border-color: $layer-accent-01;
|
|
19
19
|
$palette-search-container-height: 41px;
|
|
20
20
|
|
|
21
21
|
//--------------------------------------------------------
|
|
@@ -27,7 +27,7 @@ $palette-search-container-height: 41px;
|
|
|
27
27
|
position: relative;
|
|
28
28
|
height: 100%;
|
|
29
29
|
padding-bottom: 5px;
|
|
30
|
-
background-color: $
|
|
30
|
+
background-color: $layer-01;
|
|
31
31
|
-webkit-transition: 0.2s;
|
|
32
32
|
transition: 0.2s;
|
|
33
33
|
cursor: default; /* This stops Chrome displaying an I-beam cursor when dragging in the canvas. */
|
|
@@ -63,27 +63,27 @@ $palette-search-container-height: 41px;
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.palette-no-results-title {
|
|
66
|
-
@include
|
|
66
|
+
@include type-style("body-short-01");
|
|
67
67
|
width: 100%;
|
|
68
68
|
padding: 20px 20px 0;
|
|
69
69
|
text-align: center;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.palette-no-results-desc {
|
|
73
|
-
@include
|
|
73
|
+
@include type-style("caption-01");
|
|
74
74
|
width: 100%;
|
|
75
75
|
padding: 0 20px;
|
|
76
76
|
text-align: center;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.palette-flyout-restrict-item {
|
|
80
|
-
@include
|
|
80
|
+
@include type-style("helper-text-01");
|
|
81
81
|
width: 100%;
|
|
82
82
|
padding: $spacing-08 20px;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.palette-list-item-desc-button {
|
|
86
|
-
color: $link-
|
|
86
|
+
color: $link-primary;
|
|
87
87
|
cursor: pointer;
|
|
88
88
|
padding: 5px 0 0;
|
|
89
89
|
}
|
|
@@ -102,21 +102,21 @@ $palette-search-container-height: 41px;
|
|
|
102
102
|
outline: none; // Turn outline off and use carbon style for focus below.
|
|
103
103
|
|
|
104
104
|
&:hover {
|
|
105
|
-
background-color: $
|
|
105
|
+
background-color: $layer-accent-01;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
&:focus {
|
|
109
|
-
border-color: $
|
|
110
|
-
box-shadow: inset 0 0 0 2px $
|
|
109
|
+
border-color: $focus;
|
|
110
|
+
box-shadow: inset 0 0 0 2px $focus;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.palette-list-item-category-label {
|
|
114
|
-
@include
|
|
114
|
+
@include type-style("caption-01");
|
|
115
115
|
width: 100%;
|
|
116
116
|
padding: $spacing-05 10px 0 58px;
|
|
117
117
|
|
|
118
118
|
& mark {
|
|
119
|
-
color: $
|
|
119
|
+
color: $button-primary;
|
|
120
120
|
background-color: $highlight;
|
|
121
121
|
font-weight: 500;
|
|
122
122
|
}
|
|
@@ -133,17 +133,17 @@ $palette-search-container-height: 41px;
|
|
|
133
133
|
|
|
134
134
|
.palette-list-item-icon {
|
|
135
135
|
width: 28px; /* Not specifying height preserves the image's aspect ratio. */
|
|
136
|
-
color: $text-
|
|
136
|
+
color: $text-secondary;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.palette-list-item-text-div {
|
|
140
|
-
@include
|
|
140
|
+
@include type-style("productive-heading-01");
|
|
141
141
|
font-weight: 400;
|
|
142
142
|
padding: 0 10px;
|
|
143
143
|
width: calc(100% - 68px);
|
|
144
144
|
line-height: 1;
|
|
145
145
|
& mark {
|
|
146
|
-
color: $
|
|
146
|
+
color: $button-primary;
|
|
147
147
|
background-color: $highlight;
|
|
148
148
|
font-weight: 500;
|
|
149
149
|
}
|
|
@@ -153,25 +153,25 @@ $palette-search-container-height: 41px;
|
|
|
153
153
|
transform: scale(1.5);
|
|
154
154
|
width: 28px; /* Not specifying height preserves the image's aspect ratio. */
|
|
155
155
|
line-height: 46px; /* Must be same as containing div height */
|
|
156
|
-
color: $text-
|
|
156
|
+
color: $text-secondary;
|
|
157
157
|
margin-left: 0;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.palette-list-item-description {
|
|
161
|
-
@include
|
|
161
|
+
@include type-style("caption-01");
|
|
162
162
|
padding: 0 10px 0 58px;
|
|
163
163
|
word-break: break-word;
|
|
164
164
|
width: 100%; // Needed when the description is only one line long
|
|
165
165
|
|
|
166
166
|
& mark {
|
|
167
|
-
color: $
|
|
167
|
+
color: $button-primary;
|
|
168
168
|
background-color: $highlight;
|
|
169
169
|
font-weight: 500;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
& .highlight {
|
|
174
|
-
background-color: $
|
|
174
|
+
background-color: $button-primary;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
&.search-result {
|
|
@@ -196,27 +196,29 @@ $palette-search-container-height: 41px;
|
|
|
196
196
|
position: absolute;
|
|
197
197
|
overflow-x: hidden;
|
|
198
198
|
overflow-y: overlay;
|
|
199
|
-
li .
|
|
200
|
-
margin
|
|
199
|
+
li .cds--accordion__arrow {
|
|
200
|
+
margin: 15px;
|
|
201
201
|
}
|
|
202
|
-
.
|
|
203
|
-
button {
|
|
204
|
-
border-bottom: $palette-border-width solid $palette-border-color;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
.bx--accordion__item {
|
|
202
|
+
.cds--accordion__item {
|
|
208
203
|
border-top: 0;
|
|
204
|
+
&:last-child {
|
|
205
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
206
|
+
}
|
|
209
207
|
|
|
210
|
-
.
|
|
208
|
+
.cds--accordion__heading {
|
|
211
209
|
padding: 0;
|
|
212
|
-
.
|
|
210
|
+
.cds--accordion__title {
|
|
213
211
|
margin: 0;
|
|
214
212
|
padding: 0 0 0 11px;
|
|
215
213
|
height: 45px;
|
|
216
214
|
}
|
|
217
215
|
}
|
|
216
|
+
|
|
217
|
+
.cds--accordion__wrapper {
|
|
218
|
+
padding: 0;
|
|
219
|
+
}
|
|
218
220
|
}
|
|
219
|
-
li .
|
|
221
|
+
li .cds--accordion__content {
|
|
220
222
|
padding: 0;
|
|
221
223
|
}
|
|
222
224
|
}
|
|
@@ -258,7 +260,7 @@ $palette-search-container-height: 41px;
|
|
|
258
260
|
.palette-flyout-category-item-icon {
|
|
259
261
|
width: 20px; /* Not specifying height preserves the image's aspect ratio. */
|
|
260
262
|
margin-left: 5px;
|
|
261
|
-
fill: $icon-
|
|
263
|
+
fill: $icon-primary;
|
|
262
264
|
padding-top: 4px;
|
|
263
265
|
}
|
|
264
266
|
|
|
@@ -303,12 +305,12 @@ $palette-search-container-height: 41px;
|
|
|
303
305
|
overflow: hidden;
|
|
304
306
|
// Move the magnifying glass icon to be positioned over the category icons
|
|
305
307
|
// in the palette, as required from DUX review.
|
|
306
|
-
.
|
|
308
|
+
.cds--search-magnifier svg {
|
|
307
309
|
margin-left: 10px;
|
|
308
310
|
}
|
|
309
311
|
|
|
310
312
|
svg {
|
|
311
|
-
fill: $icon-
|
|
313
|
+
fill: $icon-primary;
|
|
312
314
|
}
|
|
313
315
|
|
|
314
316
|
// Position the search text to be directly over the category text in the
|
|
@@ -331,14 +333,14 @@ $palette-search-container-height: 41px;
|
|
|
331
333
|
margin-top: 4px;
|
|
332
334
|
border-bottom-width: 0;
|
|
333
335
|
|
|
334
|
-
&.
|
|
336
|
+
&.cds--search-close::before {
|
|
335
337
|
content: none;
|
|
336
338
|
}
|
|
337
339
|
}
|
|
338
340
|
}
|
|
339
341
|
}
|
|
340
342
|
|
|
341
|
-
.palette-loading-category .
|
|
343
|
+
.palette-loading-category .cds--accordion__arrow {
|
|
342
344
|
display: none;
|
|
343
345
|
}
|
|
344
346
|
|
|
@@ -376,7 +378,7 @@ $palette-search-container-height: 41px;
|
|
|
376
378
|
padding-left: 19px;
|
|
377
379
|
|
|
378
380
|
&:hover {
|
|
379
|
-
background-color: $
|
|
381
|
+
background-color: $layer-accent-01;
|
|
380
382
|
}
|
|
381
383
|
|
|
382
384
|
.palette-list-item-icon-and-text {
|
|
@@ -390,7 +392,7 @@ $palette-search-container-height: 41px;
|
|
|
390
392
|
.palette-list-item-icon {
|
|
391
393
|
width: 28px; /* Not specifying height preserves the image's aspect ratio. */
|
|
392
394
|
line-height: 46px; /* Must be same as containing div height */
|
|
393
|
-
color: $text-
|
|
395
|
+
color: $text-secondary;
|
|
394
396
|
margin-left: 0;
|
|
395
397
|
margin-right: 10px;
|
|
396
398
|
}
|
|
@@ -412,7 +414,7 @@ $palette-search-container-height: 41px;
|
|
|
412
414
|
transform: scale(1.5);
|
|
413
415
|
width: 28px; /* Not specifying height preserves the image's aspect ratio. */
|
|
414
416
|
line-height: 46px; /* Must be same as containing div height */
|
|
415
|
-
color: $text-
|
|
417
|
+
color: $text-secondary;
|
|
416
418
|
margin-left: 0;
|
|
417
419
|
margin-right: 10px;
|
|
418
420
|
}
|
|
@@ -421,20 +423,20 @@ $palette-search-container-height: 41px;
|
|
|
421
423
|
|
|
422
424
|
.palette-dialog-topbar {
|
|
423
425
|
height: 41px;
|
|
424
|
-
background-color: $
|
|
426
|
+
background-color: $layer-accent-01;
|
|
425
427
|
border-bottom: $palette-border-width solid $palette-border-color;
|
|
426
428
|
}
|
|
427
429
|
|
|
428
430
|
.palette-dialog-content {
|
|
429
431
|
height: 404px; /* palette-div height - topbar height - 6 pixels (for hover zone to aid drag sizing)*/
|
|
430
432
|
display: flex;
|
|
431
|
-
background-color: $
|
|
433
|
+
background-color: $layer-01;
|
|
432
434
|
border-bottom: $palette-border-width solid $palette-border-color;
|
|
433
435
|
border-right: $palette-border-width solid $palette-border-color;
|
|
434
436
|
}
|
|
435
437
|
|
|
436
438
|
.palette-dialog-categories {
|
|
437
|
-
background-color: $
|
|
439
|
+
background-color: $layer-01;
|
|
438
440
|
width: 130px;
|
|
439
441
|
min-width: 130px; /* Set a min-width to ensure space for the scroll bar when it is displayed */
|
|
440
442
|
border-right: $palette-border-width solid $palette-border-color;
|
|
@@ -456,7 +458,7 @@ $palette-search-container-height: 41px;
|
|
|
456
458
|
|
|
457
459
|
.palette-dialog-category-selected {
|
|
458
460
|
font-weight: 600;
|
|
459
|
-
border-color: $
|
|
461
|
+
border-color: $button-secondary;
|
|
460
462
|
border-width: 0 0 0 $palette-border-width;
|
|
461
463
|
border-style: solid;
|
|
462
464
|
width: 130px;
|
|
@@ -485,8 +487,8 @@ $palette-search-container-height: 41px;
|
|
|
485
487
|
}
|
|
486
488
|
|
|
487
489
|
.palette-dialog-grid-node-outer:hover {
|
|
488
|
-
border-color: $
|
|
489
|
-
color: $
|
|
490
|
+
border-color: $button-secondary;
|
|
491
|
+
color: $button-secondary;
|
|
490
492
|
}
|
|
491
493
|
|
|
492
494
|
.palette-dialog-grid-node-inner {
|
package/src/themes/light.scss
CHANGED
|
@@ -14,11 +14,15 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
@
|
|
17
|
+
@use "@carbon/react/scss/themes" as *;
|
|
18
|
+
@use "../carbon.scss" as *;
|
|
18
19
|
|
|
19
20
|
// Switch the themes below to get light or dark.
|
|
21
|
+
$theme: $g10; // The light (gray 10) theme
|
|
22
|
+
// $theme: $g90; // The dark theme
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
:root {
|
|
25
|
+
@include theme();
|
|
26
|
+
}
|
|
23
27
|
|
|
24
28
|
@import "../index.scss";
|
|
@@ -201,7 +201,7 @@ class ToolbarActionItem extends React.Component {
|
|
|
201
201
|
<div ref={this.divRef} className={itemClassName} data-toolbar-action={actionObj.action} data-toolbar-item
|
|
202
202
|
onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave} onKeyDown={this.onKeyDown}
|
|
203
203
|
>
|
|
204
|
-
<div>
|
|
204
|
+
<div className="toolbar-button-item">
|
|
205
205
|
<ToolbarButtonItem
|
|
206
206
|
actionObj={actionObj}
|
|
207
207
|
actionName={this.generateActionName()}
|