@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.
Files changed (142) hide show
  1. package/css/index-full-carbon.css +527 -90
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +9 -3
  4. package/css/index-full-carbon.min.css.map +1 -0
  5. package/css/index-without-carbon-released-only.css +157 -67
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +3 -3
  8. package/css/index-without-carbon-released-only.min.css.map +1 -0
  9. package/css/index-without-carbon.css +468 -84
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +9 -3
  12. package/css/index-without-carbon.min.css.map +1 -0
  13. package/css/index.css +470 -86
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +9 -3
  16. package/css/index.min.css.map +1 -0
  17. package/es/components/ActionSet/ActionSet.js +23 -11
  18. package/es/components/ActionSet/actions.js +25 -17
  19. package/es/components/AddSelect/AddSelect.js +115 -67
  20. package/es/components/AddSelect/AddSelectBreadcrumbs.js +56 -0
  21. package/es/components/AddSelect/AddSelectList.js +94 -0
  22. package/es/components/AddSelect/AddSelectSidebar.js +110 -0
  23. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -2
  24. package/es/components/ButtonMenu/ButtonMenu.js +1 -1
  25. package/es/components/CancelableTextEdit/CancelableTextEdit.js +2 -2
  26. package/es/components/Card/Card.js +6 -4
  27. package/es/components/CreateFullPage/CreateFullPage.js +30 -5
  28. package/es/components/CreateFullPage/CreateFullPageStep.js +40 -32
  29. package/es/components/CreateInfluencer/CreateInfluencer.js +25 -3
  30. package/es/components/CreateTearsheet/CreateTearsheet.js +32 -6
  31. package/es/components/CreateTearsheet/CreateTearsheetStep.js +45 -38
  32. package/es/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +24 -4
  33. package/es/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +8 -6
  34. package/es/components/DataSpreadsheet/DataSpreadsheet.js +154 -0
  35. package/es/components/DataSpreadsheet/generateData.js +47 -0
  36. package/es/components/DataSpreadsheet/index.js +7 -0
  37. package/es/components/EmptyStates/EmptyState.js +1 -1
  38. package/es/components/EmptyStates/EmptyStateContent.js +2 -2
  39. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  40. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  41. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  42. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  43. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  44. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  45. package/es/components/ExportModal/ExportModal.js +39 -12
  46. package/es/components/InlineEdit/InlineEdit.js +250 -80
  47. package/es/components/NotificationsPanel/NotificationsPanel.js +16 -3
  48. package/es/components/PageHeader/PageHeader.js +9 -6
  49. package/es/components/PageHeader/PageHeaderTitle.js +10 -6
  50. package/es/components/SidePanel/SidePanel.js +33 -16
  51. package/es/components/Tearsheet/Tearsheet.js +1 -1
  52. package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
  53. package/es/components/Tearsheet/TearsheetShell.js +4 -5
  54. package/es/components/WebTerminal/WebTerminal.js +1 -1
  55. package/es/components/index.js +2 -1
  56. package/es/global/js/hooks/index.js +1 -0
  57. package/es/global/js/hooks/useCreateComponentStepChange.js +31 -11
  58. package/es/global/js/hooks/useResetCreateComponent.js +7 -4
  59. package/es/global/js/hooks/useRetrieveStepData.js +51 -0
  60. package/es/global/js/package-settings.js +2 -1
  61. package/es/global/js/utils/getScrollbarWidth.js +14 -0
  62. package/es/global/js/utils/lastIndexInArray.js +26 -0
  63. package/es/settings.js +0 -5
  64. package/lib/components/ActionSet/ActionSet.js +23 -11
  65. package/lib/components/ActionSet/actions.js +25 -17
  66. package/lib/components/AddSelect/AddSelect.js +119 -67
  67. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +71 -0
  68. package/lib/components/AddSelect/AddSelectList.js +112 -0
  69. package/lib/components/AddSelect/AddSelectSidebar.js +122 -0
  70. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -2
  71. package/lib/components/ButtonMenu/ButtonMenu.js +1 -1
  72. package/lib/components/CancelableTextEdit/CancelableTextEdit.js +1 -1
  73. package/lib/components/Card/Card.js +6 -4
  74. package/lib/components/CreateFullPage/CreateFullPage.js +29 -4
  75. package/lib/components/CreateFullPage/CreateFullPageStep.js +38 -30
  76. package/lib/components/CreateInfluencer/CreateInfluencer.js +25 -3
  77. package/lib/components/CreateTearsheet/CreateTearsheet.js +31 -5
  78. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +43 -36
  79. package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +22 -2
  80. package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +8 -6
  81. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +171 -0
  82. package/lib/components/DataSpreadsheet/generateData.js +58 -0
  83. package/lib/components/DataSpreadsheet/index.js +13 -0
  84. package/lib/components/EmptyStates/EmptyState.js +1 -1
  85. package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
  86. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  87. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  88. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  89. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  90. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  91. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  92. package/lib/components/ExportModal/ExportModal.js +36 -11
  93. package/lib/components/InlineEdit/InlineEdit.js +247 -79
  94. package/lib/components/NotificationsPanel/NotificationsPanel.js +13 -1
  95. package/lib/components/PageHeader/PageHeader.js +9 -6
  96. package/lib/components/PageHeader/PageHeaderTitle.js +10 -6
  97. package/lib/components/SidePanel/SidePanel.js +33 -16
  98. package/lib/components/Tearsheet/Tearsheet.js +1 -1
  99. package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
  100. package/lib/components/Tearsheet/TearsheetShell.js +3 -4
  101. package/lib/components/WebTerminal/WebTerminal.js +1 -1
  102. package/lib/components/index.js +9 -1
  103. package/lib/global/js/hooks/index.js +8 -0
  104. package/lib/global/js/hooks/useCreateComponentStepChange.js +31 -11
  105. package/lib/global/js/hooks/useResetCreateComponent.js +7 -4
  106. package/lib/global/js/hooks/useRetrieveStepData.js +62 -0
  107. package/lib/global/js/package-settings.js +2 -1
  108. package/lib/global/js/utils/getScrollbarWidth.js +23 -0
  109. package/lib/global/js/utils/lastIndexInArray.js +35 -0
  110. package/lib/settings.js +0 -6
  111. package/package.json +27 -25
  112. package/scss/components/AddSelect/_add-select.scss +59 -5
  113. package/scss/components/BreadcrumbWithOverflow/_index.scss +1 -1
  114. package/scss/components/CancelableTextEdit/_cancelable-text-edit.scss +1 -0
  115. package/scss/components/CancelableTextEdit/_storybook-styles.scss +0 -7
  116. package/scss/components/CreateInfluencer/_create-influencer.scss +4 -4
  117. package/scss/components/CreateTearsheet/_create-tearsheet.scss +2 -2
  118. package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +0 -6
  119. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +79 -0
  120. package/scss/components/DataSpreadsheet/_index.scss +8 -0
  121. package/scss/components/DataSpreadsheet/_storybook-styles.scss +6 -0
  122. package/scss/components/EditSidePanel/_storybook-styles.scss +0 -8
  123. package/scss/components/InlineEdit/_inline-edit.scss +288 -10
  124. package/scss/components/InlineEdit/_storybook-styles.scss +12 -6
  125. package/scss/components/LoadingBar/_storybook-styles.scss +0 -5
  126. package/scss/components/NotificationsPanel/_notifications-panel.scss +2 -2
  127. package/scss/components/OptionsTile/_storybook-styles.scss +0 -7
  128. package/scss/components/PageHeader/_index.scss +1 -1
  129. package/scss/components/PageHeader/_page-header.scss +4 -1
  130. package/scss/components/ProductiveCard/_productive-card.scss +0 -4
  131. package/scss/components/SidePanel/_side-panel.scss +15 -6
  132. package/scss/components/StatusIcon/_index.scss +1 -1
  133. package/scss/components/StatusIcon/_status-icon.scss +6 -4
  134. package/scss/components/TagSet/_index.scss +1 -1
  135. package/scss/components/UserProfileImage/_index.scss +1 -1
  136. package/scss/components/UserProfileImage/_user-profile-image.scss +2 -2
  137. package/scss/components/WebTerminal/_web-terminal.scss +2 -2
  138. package/scss/components/_index.scss +1 -0
  139. package/scss/global/styles/_project-settings.scss +5 -1
  140. package/es/generated/feature-flags/feature-flags.js +0 -15
  141. package/lib/generated/feature-flags/feature-flags.js +0 -22
  142. package/scss/generated/feature-flags/_feature-flags.scss +0 -19
@@ -7,4 +7,4 @@
7
7
 
8
8
  // An index file is most useful when you have multiple components
9
9
 
10
- @import './page-header.scss';
10
+ @import './page-header';
@@ -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 ($with-shadow) {
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 {
@@ -36,10 +36,6 @@
36
36
  align-items: center;
37
37
  justify-content: space-between;
38
38
  border-top: 1px solid $ui-03;
39
-
40
- .#{$carbon-prefix}--btn svg {
41
- margin-left: $spacing-03;
42
- }
43
39
  }
44
40
 
45
41
  .#{$block-class}__footer-no-button {
@@ -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 sidePanelEntranceRight {
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 sidePanelEntranceLeft {
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 sidePanelExitLeft {
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 sidePanelExitRight {
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 sidePanelOverlayEntrance {
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 sidePanelOverlayExit {
465
+ @keyframes side-panel-overlay-exit {
457
466
  0% {
458
467
  opacity: 1;
459
468
  }
@@ -5,4 +5,4 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './status-icon.scss';
8
+ @import './status-icon';
@@ -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;
@@ -5,4 +5,4 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './tag-set.scss';
8
+ @import './tag-set';
@@ -5,4 +5,4 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './user-profile-image.scss';
8
+ @import './user-profile-image';
@@ -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 webTerminalEntrance {
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 webTerminalExit {
19
+ @keyframes web-terminal-exit {
20
20
  0% {
21
21
  opacity: 1;
22
22
  transform: translateX(0);
@@ -45,3 +45,4 @@
45
45
  @import './OptionsTile/index';
46
46
  @import './CancelableTextEdit/index';
47
47
  @import './InlineEdit/index';
48
+ @import './DataSpreadsheet/index';
@@ -6,7 +6,11 @@
6
6
  //
7
7
 
8
8
  // set required feature flags for carbon
9
- @import '../../generated/feature-flags/feature-flags';
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
- );