@carbon/ibm-products 1.4.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +527 -90
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +9 -3
- package/css/index-full-carbon.min.css.map +1 -0
- package/css/index-without-carbon-released-only.css +157 -67
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +3 -3
- package/css/index-without-carbon-released-only.min.css.map +1 -0
- package/css/index-without-carbon.css +468 -84
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +9 -3
- package/css/index-without-carbon.min.css.map +1 -0
- package/css/index.css +470 -86
- package/css/index.css.map +1 -1
- package/css/index.min.css +9 -3
- package/css/index.min.css.map +1 -0
- package/es/components/ActionSet/ActionSet.js +23 -11
- package/es/components/ActionSet/actions.js +25 -17
- package/es/components/AddSelect/AddSelect.js +115 -67
- package/es/components/AddSelect/AddSelectBreadcrumbs.js +56 -0
- package/es/components/AddSelect/AddSelectList.js +94 -0
- package/es/components/AddSelect/AddSelectSidebar.js +110 -0
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -2
- package/es/components/ButtonMenu/ButtonMenu.js +1 -1
- package/es/components/CancelableTextEdit/CancelableTextEdit.js +2 -2
- package/es/components/Card/Card.js +6 -4
- package/es/components/CreateFullPage/CreateFullPage.js +30 -5
- package/es/components/CreateFullPage/CreateFullPageStep.js +40 -32
- package/es/components/CreateInfluencer/CreateInfluencer.js +25 -3
- package/es/components/CreateTearsheet/CreateTearsheet.js +32 -6
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +45 -38
- package/es/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +24 -4
- package/es/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +8 -6
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +154 -0
- package/es/components/DataSpreadsheet/generateData.js +47 -0
- package/es/components/DataSpreadsheet/index.js +7 -0
- package/es/components/EmptyStates/EmptyState.js +1 -1
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/ExportModal/ExportModal.js +39 -12
- package/es/components/InlineEdit/InlineEdit.js +250 -80
- package/es/components/NotificationsPanel/NotificationsPanel.js +16 -3
- package/es/components/PageHeader/PageHeader.js +9 -6
- package/es/components/PageHeader/PageHeaderTitle.js +10 -6
- package/es/components/SidePanel/SidePanel.js +33 -16
- package/es/components/Tearsheet/Tearsheet.js +1 -1
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +4 -5
- package/es/components/WebTerminal/WebTerminal.js +1 -1
- package/es/components/index.js +2 -1
- package/es/global/js/hooks/index.js +1 -0
- package/es/global/js/hooks/useCreateComponentStepChange.js +31 -11
- package/es/global/js/hooks/useResetCreateComponent.js +7 -4
- package/es/global/js/hooks/useRetrieveStepData.js +51 -0
- package/es/global/js/package-settings.js +2 -1
- package/es/global/js/utils/getScrollbarWidth.js +14 -0
- package/es/global/js/utils/lastIndexInArray.js +26 -0
- package/es/settings.js +0 -5
- package/lib/components/ActionSet/ActionSet.js +23 -11
- package/lib/components/ActionSet/actions.js +25 -17
- package/lib/components/AddSelect/AddSelect.js +119 -67
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +71 -0
- package/lib/components/AddSelect/AddSelectList.js +112 -0
- package/lib/components/AddSelect/AddSelectSidebar.js +122 -0
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -2
- package/lib/components/ButtonMenu/ButtonMenu.js +1 -1
- package/lib/components/CancelableTextEdit/CancelableTextEdit.js +1 -1
- package/lib/components/Card/Card.js +6 -4
- package/lib/components/CreateFullPage/CreateFullPage.js +29 -4
- package/lib/components/CreateFullPage/CreateFullPageStep.js +38 -30
- package/lib/components/CreateInfluencer/CreateInfluencer.js +25 -3
- package/lib/components/CreateTearsheet/CreateTearsheet.js +31 -5
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +43 -36
- package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +22 -2
- package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +8 -6
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +171 -0
- package/lib/components/DataSpreadsheet/generateData.js +58 -0
- package/lib/components/DataSpreadsheet/index.js +13 -0
- package/lib/components/EmptyStates/EmptyState.js +1 -1
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/lib/components/ExportModal/ExportModal.js +36 -11
- package/lib/components/InlineEdit/InlineEdit.js +247 -79
- package/lib/components/NotificationsPanel/NotificationsPanel.js +13 -1
- package/lib/components/PageHeader/PageHeader.js +9 -6
- package/lib/components/PageHeader/PageHeaderTitle.js +10 -6
- package/lib/components/SidePanel/SidePanel.js +33 -16
- package/lib/components/Tearsheet/Tearsheet.js +1 -1
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +3 -4
- package/lib/components/WebTerminal/WebTerminal.js +1 -1
- package/lib/components/index.js +9 -1
- package/lib/global/js/hooks/index.js +8 -0
- package/lib/global/js/hooks/useCreateComponentStepChange.js +31 -11
- package/lib/global/js/hooks/useResetCreateComponent.js +7 -4
- package/lib/global/js/hooks/useRetrieveStepData.js +62 -0
- package/lib/global/js/package-settings.js +2 -1
- package/lib/global/js/utils/getScrollbarWidth.js +23 -0
- package/lib/global/js/utils/lastIndexInArray.js +35 -0
- package/lib/settings.js +0 -6
- package/package.json +27 -25
- package/scss/components/AddSelect/_add-select.scss +59 -5
- package/scss/components/BreadcrumbWithOverflow/_index.scss +1 -1
- package/scss/components/CancelableTextEdit/_cancelable-text-edit.scss +1 -0
- package/scss/components/CancelableTextEdit/_storybook-styles.scss +0 -7
- package/scss/components/CreateInfluencer/_create-influencer.scss +4 -4
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +2 -2
- package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +0 -6
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +79 -0
- package/scss/components/DataSpreadsheet/_index.scss +8 -0
- package/scss/components/DataSpreadsheet/_storybook-styles.scss +6 -0
- package/scss/components/EditSidePanel/_storybook-styles.scss +0 -8
- package/scss/components/InlineEdit/_inline-edit.scss +288 -10
- package/scss/components/InlineEdit/_storybook-styles.scss +12 -6
- package/scss/components/LoadingBar/_storybook-styles.scss +0 -5
- package/scss/components/NotificationsPanel/_notifications-panel.scss +2 -2
- package/scss/components/OptionsTile/_storybook-styles.scss +0 -7
- package/scss/components/PageHeader/_index.scss +1 -1
- package/scss/components/PageHeader/_page-header.scss +4 -1
- package/scss/components/ProductiveCard/_productive-card.scss +0 -4
- package/scss/components/SidePanel/_side-panel.scss +15 -6
- package/scss/components/StatusIcon/_index.scss +1 -1
- package/scss/components/StatusIcon/_status-icon.scss +6 -4
- package/scss/components/TagSet/_index.scss +1 -1
- package/scss/components/UserProfileImage/_index.scss +1 -1
- package/scss/components/UserProfileImage/_user-profile-image.scss +2 -2
- package/scss/components/WebTerminal/_web-terminal.scss +2 -2
- package/scss/components/_index.scss +1 -0
- package/scss/global/styles/_project-settings.scss +5 -1
- package/es/generated/feature-flags/feature-flags.js +0 -15
- package/lib/generated/feature-flags/feature-flags.js +0 -22
- package/scss/generated/feature-flags/_feature-flags.scss +0 -19
@@ -80,7 +80,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
80
80
|
$duration: 1000ms;
|
81
81
|
|
82
82
|
$animation: background-appear;
|
83
|
-
@if
|
83
|
+
@if $with-shadow {
|
84
84
|
$animation: background-and-shadow-appear;
|
85
85
|
}
|
86
86
|
|
@@ -434,6 +434,9 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
434
434
|
.#{$block-class}__title--editable {
|
435
435
|
display: flex;
|
436
436
|
overflow: visible;
|
437
|
+
// move to match non-editable version position
|
438
|
+
margin-top: calc(-1 * #{$spacing-01});
|
439
|
+
margin-left: calc(-1 * #{$spacing-05});
|
437
440
|
}
|
438
441
|
|
439
442
|
.#{$block-class}__title-skeleton {
|
@@ -25,7 +25,7 @@ $block-class: #{$pkg-prefix}--side-panel;
|
|
25
25
|
$action-set-block-class: #{$pkg-prefix}--action-set;
|
26
26
|
|
27
27
|
@mixin sidePanelEntranceRight($size: map-get($side-panel-sizes, md)) {
|
28
|
-
@keyframes
|
28
|
+
@keyframes side-panel-entrance-right {
|
29
29
|
0% {
|
30
30
|
opacity: 0;
|
31
31
|
// stylelint-disable-next-line carbon/layout-token-use
|
@@ -39,7 +39,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
39
39
|
}
|
40
40
|
|
41
41
|
@mixin sidePanelEntranceLeft($size: map-get($side-panel-sizes, md)) {
|
42
|
-
@keyframes
|
42
|
+
@keyframes side-panel-entrance-left {
|
43
43
|
0% {
|
44
44
|
opacity: 0;
|
45
45
|
// stylelint-disable-next-line carbon/layout-token-use
|
@@ -90,7 +90,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
90
90
|
}
|
91
91
|
|
92
92
|
@mixin side-panel {
|
93
|
-
@keyframes
|
93
|
+
@keyframes side-panel-exit-left {
|
94
94
|
0% {
|
95
95
|
opacity: 1;
|
96
96
|
transform: translateX(0);
|
@@ -102,7 +102,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
102
102
|
}
|
103
103
|
}
|
104
104
|
|
105
|
-
@keyframes
|
105
|
+
@keyframes side-panel-exit-right {
|
106
106
|
0% {
|
107
107
|
opacity: 1;
|
108
108
|
transform: translateX(0);
|
@@ -186,6 +186,15 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
186
186
|
&::before {
|
187
187
|
@include setDividerStyles();
|
188
188
|
}
|
189
|
+
&.#{$block-class}__title-container--reduced-motion {
|
190
|
+
z-index: 5;
|
191
|
+
border-bottom: 1px solid $decorative-01;
|
192
|
+
margin-bottom: $spacing-05;
|
193
|
+
}
|
194
|
+
&.#{$block-class}__title-container--reduced-motion.#{$block-class}__title-container--no-title-animation {
|
195
|
+
border-bottom: 0;
|
196
|
+
margin-bottom: 0;
|
197
|
+
}
|
189
198
|
&.#{$block-class}__on-detail-step .#{$block-class}__collapsed-title-text {
|
190
199
|
top: $spacing-09;
|
191
200
|
}
|
@@ -444,7 +453,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
444
453
|
background-color: $field-02;
|
445
454
|
}
|
446
455
|
|
447
|
-
@keyframes
|
456
|
+
@keyframes side-panel-overlay-entrance {
|
448
457
|
0% {
|
449
458
|
opacity: 0;
|
450
459
|
}
|
@@ -453,7 +462,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
453
462
|
}
|
454
463
|
}
|
455
464
|
|
456
|
-
@keyframes
|
465
|
+
@keyframes side-panel-overlay-exit {
|
457
466
|
0% {
|
458
467
|
opacity: 1;
|
459
468
|
}
|
@@ -72,7 +72,7 @@ $themes: ('light', 'dark');
|
|
72
72
|
|
73
73
|
$block-class: #{$pkg-prefix}--status-icon;
|
74
74
|
|
75
|
-
@function clr($name, $theme: light) {
|
75
|
+
@function --clr($name, $theme: light) {
|
76
76
|
// stylelint-disable-next-line carbon/theme-token-use
|
77
77
|
$color: map-get(map-get($colors, $name), $theme);
|
78
78
|
@return $color;
|
@@ -111,6 +111,8 @@ $block-class: #{$pkg-prefix}--status-icon;
|
|
111
111
|
@each $theme in $themes {
|
112
112
|
@each $icon in $icons {
|
113
113
|
@each $theme-key in $themes {
|
114
|
+
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger
|
115
|
+
.#{$block-class}--#{$theme}.#{$block-class}--#{$theme-key}-#{$icon},
|
114
116
|
.#{$block-class}--#{$theme}.#{$block-class}--#{$theme-key}-#{$icon} {
|
115
117
|
@if $icon == in-progress {
|
116
118
|
@media (prefers-reduced-motion: reduce) {
|
@@ -119,14 +121,14 @@ $block-class: #{$pkg-prefix}--status-icon;
|
|
119
121
|
// stylelint-disable-next-line carbon/motion-token-use
|
120
122
|
animation: rotating 8000ms infinite linear;
|
121
123
|
// stylelint-disable-next-line carbon/theme-token-use
|
122
|
-
fill: clr($icon, $theme);
|
124
|
+
fill: --clr($icon, $theme);
|
123
125
|
} @else if $icon == running {
|
124
126
|
// stylelint-disable-next-line carbon/theme-token-use
|
125
|
-
fill: clr($icon, $theme);
|
127
|
+
fill: --clr($icon, $theme);
|
126
128
|
transform: scaleY(-1);
|
127
129
|
} @else {
|
128
130
|
// stylelint-disable-next-line carbon/theme-token-use
|
129
|
-
fill: clr($icon, $theme);
|
131
|
+
fill: --clr($icon, $theme);
|
130
132
|
@media (prefers-reduced-motion) {
|
131
133
|
.#{$block-class}--#{$theme}.#{$block-class}--#{$theme-key}-in-progress {
|
132
134
|
animation: none;
|
@@ -44,7 +44,7 @@ $themes: (
|
|
44
44
|
|
45
45
|
$theme-keys: map-keys($themes);
|
46
46
|
|
47
|
-
@function get-background-color($color, $key, $contrast-key) {
|
47
|
+
@function --get-background-color($color, $key, $contrast-key) {
|
48
48
|
@return map-get(
|
49
49
|
$carbon-colors,
|
50
50
|
#{$color}#{map-get(map-get($themes, $key), #{$contrast-key}-contrast)}
|
@@ -60,7 +60,7 @@ $theme-keys: map-keys($themes);
|
|
60
60
|
@each $contrast-key in $theme-keys {
|
61
61
|
.#{$block-class}--#{$key}.#{$block-class}--#{$contrast-key}-#{$color} {
|
62
62
|
// stylelint-disable-next-line carbon/theme-token-use
|
63
|
-
background-color: get-background-color($color, $key, $contrast-key);
|
63
|
+
background-color: --get-background-color($color, $key, $contrast-key);
|
64
64
|
}
|
65
65
|
}
|
66
66
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
$web-terminal-width: 36.5rem;
|
5
5
|
$block-class: #{$pkg-prefix}--web-terminal;
|
6
6
|
|
7
|
-
@keyframes
|
7
|
+
@keyframes web-terminal-entrance {
|
8
8
|
0% {
|
9
9
|
opacity: 0;
|
10
10
|
// stylelint-disable-next-line carbon/layout-token-use
|
@@ -16,7 +16,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
|
19
|
-
@keyframes
|
19
|
+
@keyframes web-terminal-exit {
|
20
20
|
0% {
|
21
21
|
opacity: 1;
|
22
22
|
transform: translateX(0);
|
@@ -6,7 +6,11 @@
|
|
6
6
|
//
|
7
7
|
|
8
8
|
// set required feature flags for carbon
|
9
|
-
|
9
|
+
$feature-flags: (
|
10
|
+
ui-shell: true,
|
11
|
+
grid-columns-16: true,
|
12
|
+
enable-css-custom-properties: true,
|
13
|
+
);
|
10
14
|
|
11
15
|
// import the carbon import-once mechanism
|
12
16
|
@import '@carbon/import-once/scss/import-once';
|
@@ -1,15 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Copyright IBM Corp. 2020, 2020
|
3
|
-
//
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
6
|
-
//
|
7
|
-
// ******************************
|
8
|
-
// *
|
9
|
-
// * ONLY EDIT IN /common-files/feature-flags files elsewhere are copies
|
10
|
-
// * created by a pre-commit step
|
11
|
-
// *
|
12
|
-
// ******************************
|
13
|
-
export default {
|
14
|
-
'enable-css-custom-properties': false
|
15
|
-
};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
//
|
8
|
-
// Copyright IBM Corp. 2020, 2020
|
9
|
-
//
|
10
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
11
|
-
// LICENSE file in the root directory of this source tree.
|
12
|
-
//
|
13
|
-
// ******************************
|
14
|
-
// *
|
15
|
-
// * ONLY EDIT IN /common-files/feature-flags files elsewhere are copies
|
16
|
-
// * created by a pre-commit step
|
17
|
-
// *
|
18
|
-
// ******************************
|
19
|
-
var _default = {
|
20
|
-
'enable-css-custom-properties': false
|
21
|
-
};
|
22
|
-
exports.default = _default;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Copyright IBM Corp. 2020, 2020
|
3
|
-
//
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
6
|
-
//
|
7
|
-
|
8
|
-
// ******************************
|
9
|
-
// *
|
10
|
-
// * ONLY EDIT IN /common-files/feature-flags files elsewhere are copies
|
11
|
-
// * created by a pre-commit step
|
12
|
-
// *
|
13
|
-
// ******************************
|
14
|
-
|
15
|
-
$feature-flags: (
|
16
|
-
ui-shell: true,
|
17
|
-
grid-columns-16: true,
|
18
|
-
enable-css-custom-properties: true,
|
19
|
-
);
|