@carbon/ibm-products 2.17.1 → 2.18.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +17078 -15669
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +71 -9
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +5763 -6355
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +124 -9
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/Carousel/Carousel.docs-page.js +11 -0
- package/es/components/Carousel/Carousel.js +322 -0
- package/es/components/Carousel/CarouselItem.js +53 -0
- package/es/components/Carousel/index.js +9 -0
- package/es/components/Carousel/utils.js +98 -0
- package/es/components/CreateSidePanel/CreateSidePanel.js +7 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +13 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +4 -3
- package/es/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +7 -1
- package/es/components/Datagrid/useExpandedRow.js +3 -6
- package/es/components/Datagrid/useFocusRowExpander.js +40 -0
- package/es/components/Datagrid/useNestedRowExpander.js +9 -0
- package/es/components/Datagrid/useNestedRows.js +1 -5
- package/es/components/Datagrid/useRowExpander.js +9 -0
- package/es/components/Datagrid/useSelectRows.js +9 -2
- package/es/components/Datagrid/utils/handleFilterTagLabelText.js +26 -0
- package/es/components/EditSidePanel/EditSidePanel.js +8 -2
- package/es/components/FilterSummary/FilterSummary.js +21 -7
- package/es/components/Guidebanner/Guidebanner.docs-page.js +15 -0
- package/es/components/Guidebanner/Guidebanner.js +221 -0
- package/es/components/Guidebanner/GuidebannerElement.js +72 -0
- package/es/components/Guidebanner/GuidebannerElementButton.js +80 -0
- package/es/components/Guidebanner/GuidebannerElementLink.js +57 -0
- package/es/components/Guidebanner/index.js +11 -0
- package/es/components/NonLinearReading/NonLinearReading.docs-page.js +15 -0
- package/es/components/NonLinearReading/NonLinearReading.js +89 -0
- package/es/components/NonLinearReading/index.js +8 -0
- package/es/components/SidePanel/SidePanel.js +48 -27
- package/es/components/TagSet/TagSet.js +22 -5
- package/es/components/WebTerminal/WebTerminal.js +5 -3
- package/es/global/js/hooks/useCreateComponentStepChange.js +1 -1
- package/es/global/js/package-settings.js +6 -3
- package/lib/components/Carousel/Carousel.docs-page.js +21 -0
- package/lib/components/Carousel/Carousel.js +329 -0
- package/lib/components/Carousel/CarouselItem.js +54 -0
- package/lib/components/Carousel/index.js +19 -0
- package/lib/components/Carousel/utils.js +105 -0
- package/lib/components/CreateSidePanel/CreateSidePanel.js +7 -1
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +13 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +4 -3
- package/lib/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +7 -1
- package/lib/components/Datagrid/useExpandedRow.js +2 -5
- package/lib/components/Datagrid/useFocusRowExpander.js +45 -0
- package/lib/components/Datagrid/useNestedRowExpander.js +9 -0
- package/lib/components/Datagrid/useNestedRows.js +1 -5
- package/lib/components/Datagrid/useRowExpander.js +9 -0
- package/lib/components/Datagrid/useSelectRows.js +9 -2
- package/lib/components/Datagrid/utils/handleFilterTagLabelText.js +32 -0
- package/lib/components/EditSidePanel/EditSidePanel.js +8 -2
- package/lib/components/FilterSummary/FilterSummary.js +24 -7
- package/lib/components/Guidebanner/Guidebanner.docs-page.js +25 -0
- package/lib/components/Guidebanner/Guidebanner.js +229 -0
- package/lib/components/Guidebanner/GuidebannerElement.js +77 -0
- package/lib/components/Guidebanner/GuidebannerElementButton.js +85 -0
- package/lib/components/Guidebanner/GuidebannerElementLink.js +62 -0
- package/lib/components/Guidebanner/index.js +33 -0
- package/lib/components/NonLinearReading/NonLinearReading.docs-page.js +25 -0
- package/lib/components/NonLinearReading/NonLinearReading.js +97 -0
- package/lib/components/NonLinearReading/index.js +12 -0
- package/lib/components/SidePanel/SidePanel.js +47 -26
- package/lib/components/TagSet/TagSet.js +22 -5
- package/lib/components/WebTerminal/WebTerminal.js +4 -2
- package/lib/global/js/hooks/useCreateComponentStepChange.js +1 -1
- package/lib/global/js/package-settings.js +6 -3
- package/package.json +5 -5
- package/scss/components/Carousel/_carbon-imports.scss +6 -0
- package/scss/components/Carousel/_carousel.scss +72 -0
- package/scss/components/Carousel/_index-with-carbon.scss +9 -0
- package/scss/components/Carousel/_index.scss +8 -0
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +21 -0
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +9 -0
- package/scss/components/FilterSummary/_filter-summary.scss +6 -1
- package/scss/components/Guidebanner/_carbon-imports.scss +6 -0
- package/scss/components/Guidebanner/_guidebanner.scss +248 -0
- package/scss/components/Guidebanner/_index-with-carbon.scss +9 -0
- package/scss/components/Guidebanner/_index.scss +8 -0
- package/scss/components/NonLinearReading/_carbon-imports.scss +6 -0
- package/scss/components/NonLinearReading/_index-with-carbon.scss +9 -0
- package/scss/components/NonLinearReading/_index.scss +8 -0
- package/scss/components/NonLinearReading/_non-linear-reading.scss +122 -0
- package/scss/components/SidePanel/_side-panel.scss +22 -6
- package/scss/components/WebTerminal/_web-terminal.scss +1 -2
- package/scss/components/_Canary/_canary.scss +1 -2
- package/scss/components/_Canary/_carbon-imports.scss +7 -0
- package/scss/components/_Canary/_index-with-carbon.scss +8 -0
- package/scss/components/_Canary/_index.scss +7 -0
- package/scss/components/_index-with-carbon.scss +1 -1
- package/scss/components/_index.scss +5 -2
- /package/es/components/Datagrid/{Extensions → Datagrid.stories}/ColumnAlignment/ColumnAlignment.docs-page.js +0 -0
- /package/lib/components/Datagrid/{Extensions → Datagrid.stories}/ColumnAlignment/ColumnAlignment.docs-page.js +0 -0
@@ -0,0 +1,122 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2023, 2023
|
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
|
+
/* stylelint-disable carbon/layout-token-use */
|
9
|
+
/* stylelint-disable function-no-unknown */
|
10
|
+
|
11
|
+
// Standard imports.
|
12
|
+
@use '@carbon/layout/scss/convert' as *;
|
13
|
+
@use '@carbon/react/scss/colors' as *;
|
14
|
+
@use '@carbon/styles/scss/components/button/tokens' as *;
|
15
|
+
@use '@carbon/styles/scss/spacing' as *;
|
16
|
+
@use '@carbon/styles/scss/theme' as *;
|
17
|
+
@use '@carbon/styles/scss/themes';
|
18
|
+
@use '@carbon/styles/scss/type';
|
19
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
20
|
+
|
21
|
+
@keyframes fade {
|
22
|
+
0% {
|
23
|
+
opacity: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
15% {
|
27
|
+
opacity: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
100% {
|
31
|
+
opacity: 1;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
36
|
+
$block-class: #{c4p-settings.$pkg-prefix}--non-linear-reading;
|
37
|
+
|
38
|
+
.#{$block-class}__dark {
|
39
|
+
@include theme(themes.$g100, true);
|
40
|
+
}
|
41
|
+
|
42
|
+
// CLOSED/COLLAPSED STATE, DEFAULT
|
43
|
+
.#{$block-class} .#{$block-class}__keyword {
|
44
|
+
height: to-rem(20px);
|
45
|
+
padding-top: 0;
|
46
|
+
padding-right: to-rem(3px);
|
47
|
+
border-width: to-rem(1px);
|
48
|
+
border-style: solid;
|
49
|
+
border-color: $button-tertiary;
|
50
|
+
border-radius: $spacing-04;
|
51
|
+
background-color: transparent;
|
52
|
+
color: $button-tertiary;
|
53
|
+
white-space: nowrap;
|
54
|
+
}
|
55
|
+
.#{$block-class} .#{$block-class}__keyword:hover {
|
56
|
+
border-color: $button-tertiary;
|
57
|
+
background-color: $button-tertiary;
|
58
|
+
color: $text-inverse;
|
59
|
+
}
|
60
|
+
// Disable browser's default focus outline.
|
61
|
+
// We will provide all the focus/outline styling below.
|
62
|
+
.#{$block-class} .#{$block-class}__keyword:focus-visible {
|
63
|
+
outline: none;
|
64
|
+
}
|
65
|
+
.#{$block-class} .#{$block-class}__keyword:focus {
|
66
|
+
border-color: $text-inverse;
|
67
|
+
background-color: $button-tertiary;
|
68
|
+
box-shadow: 0 0 0 1px $text-inverse, 0 0 0 3px $button-tertiary;
|
69
|
+
color: $text-inverse;
|
70
|
+
}
|
71
|
+
// The "up" chevron
|
72
|
+
.#{$block-class} .#{$block-class}__keyword svg {
|
73
|
+
margin: to-rem(1px) 0 0 0;
|
74
|
+
vertical-align: text-top;
|
75
|
+
}
|
76
|
+
|
77
|
+
// OPEN/EXPANDED STATE
|
78
|
+
.#{$block-class} .#{$block-class}__keyword-open {
|
79
|
+
border-color: $button-tertiary;
|
80
|
+
background-color: $button-tertiary;
|
81
|
+
color: $text-inverse;
|
82
|
+
}
|
83
|
+
.#{$block-class} .#{$block-class}__keyword-open:hover {
|
84
|
+
border-color: $button-tertiary;
|
85
|
+
background-color: transparent;
|
86
|
+
color: $button-tertiary;
|
87
|
+
}
|
88
|
+
.#{$block-class} .#{$block-class}__keyword-open:focus {
|
89
|
+
border-color: $text-inverse;
|
90
|
+
background-color: transparent;
|
91
|
+
box-shadow: inset 0 0 0 1px $button-tertiary, 0 0 0 1px $text-inverse,
|
92
|
+
0 0 0 3px $button-tertiary;
|
93
|
+
color: $button-tertiary;
|
94
|
+
}
|
95
|
+
// The "up" chevron, flipped
|
96
|
+
.#{$block-class} .#{$block-class}__keyword-open svg {
|
97
|
+
transform: rotate(180deg);
|
98
|
+
}
|
99
|
+
|
100
|
+
.#{$block-class} .#{$block-class}__body {
|
101
|
+
@include type.type-style('body-01');
|
102
|
+
|
103
|
+
display: block;
|
104
|
+
padding: $spacing-03 $spacing-04;
|
105
|
+
border-left: to-rem(1.25px) solid $text-primary;
|
106
|
+
margin: $spacing-02 0;
|
107
|
+
// Novice to pro does not always use Carbon defaults/tokens
|
108
|
+
// stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
|
109
|
+
animation: fade 600ms;
|
110
|
+
|
111
|
+
/* stylelint-disable-next-line max-nesting-depth */
|
112
|
+
@media (prefers-reduced-motion: reduce) {
|
113
|
+
animation: none;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
// The body has an id that must be visible to the button's "aria-controls" property.
|
117
|
+
// We *must* render the body with the id to avoid breaking accessibility.
|
118
|
+
// When closed: we render but don't display the body and we don't render the "content".
|
119
|
+
// When open: we display the body and render the content.
|
120
|
+
.#{$block-class} .#{$block-class}__keyword-closed + .#{$block-class}__body {
|
121
|
+
display: none;
|
122
|
+
}
|
@@ -45,7 +45,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
45
45
|
@mixin setCommonTitleStyles() {
|
46
46
|
display: -webkit-box;
|
47
47
|
overflow: hidden;
|
48
|
-
|
48
|
+
/* stylelint-disable-next-line carbon/layout-token-use -- custom css property set below */
|
49
|
+
padding-right: var(--#{$block-class}--title-padding-right);
|
49
50
|
-webkit-box-orient: vertical;
|
50
51
|
-webkit-line-clamp: 2;
|
51
52
|
}
|
@@ -61,6 +62,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
61
62
|
--#{$block-class}--content-bottom-padding: #{$spacing-10};
|
62
63
|
--#{$block-class}--collapsed-title-y-position: 1rem;
|
63
64
|
--#{$block-class}--label-text-height: 0;
|
65
|
+
--#{$block-class}--title-padding-right: #{$spacing-09};
|
64
66
|
|
65
67
|
position: fixed;
|
66
68
|
// Need to disable stylelint until dart sass namespace support is added
|
@@ -140,6 +142,9 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
140
142
|
background-color: transparent;
|
141
143
|
}
|
142
144
|
}
|
145
|
+
&.#{$block-class}__container--has-slug {
|
146
|
+
--#{$block-class}--title-padding-right: #{$spacing-12};
|
147
|
+
}
|
143
148
|
&.#{$block-class}__container-is-animating {
|
144
149
|
pointer-events: none;
|
145
150
|
}
|
@@ -174,7 +179,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
174
179
|
@include type.type-style('label-01');
|
175
180
|
|
176
181
|
overflow: hidden;
|
177
|
-
padding-right: $
|
182
|
+
padding-right: var(--#{$block-class}--title-padding-right);
|
178
183
|
opacity: var(--#{$block-class}--subtitle-opacity);
|
179
184
|
text-overflow: ellipsis;
|
180
185
|
transform: translateY(var(--#{$block-class}--title-y-position));
|
@@ -244,6 +249,10 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
244
249
|
overflow-x: hidden;
|
245
250
|
}
|
246
251
|
|
252
|
+
&.#{$block-class}__container--has-slug .#{$block-class}__inner-content {
|
253
|
+
@include utilities.ai-gradient('bottom');
|
254
|
+
}
|
255
|
+
|
247
256
|
.#{$block-class}__inner-content-with-actions {
|
248
257
|
height: calc(
|
249
258
|
100vh - (var(--#{$block-class}--content-bottom-padding) + 2rem)
|
@@ -330,19 +339,26 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
330
339
|
}
|
331
340
|
|
332
341
|
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button {
|
333
|
-
position: absolute;
|
334
|
-
z-index: 5;
|
335
|
-
top: $spacing-03;
|
336
|
-
right: $spacing-05;
|
337
342
|
display: flex;
|
338
343
|
align-items: center;
|
339
344
|
justify-content: center;
|
345
|
+
margin: $spacing-03;
|
346
|
+
margin-bottom: 0;
|
340
347
|
}
|
341
348
|
|
342
349
|
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button
|
343
350
|
.#{c4p-settings.$carbon-prefix}--btn__icon {
|
344
351
|
margin: 0;
|
345
352
|
}
|
353
|
+
|
354
|
+
.#{$block-class}__slug-and-close {
|
355
|
+
position: fixed;
|
356
|
+
z-index: 5;
|
357
|
+
top: 0;
|
358
|
+
right: 0;
|
359
|
+
display: flex;
|
360
|
+
}
|
361
|
+
|
346
362
|
.#{$block-class}__body-content {
|
347
363
|
padding: $spacing-05;
|
348
364
|
padding-top: 0;
|
@@ -59,7 +59,6 @@ $block-class: #{$pkg-prefix}--web-terminal;
|
|
59
59
|
border-left: 1px solid $gray-90;
|
60
60
|
color: $text-primary;
|
61
61
|
/* stylelint-disable-next-line */
|
62
|
-
background-color: $gray-100;
|
63
62
|
}
|
64
63
|
|
65
64
|
.#{$block-class}__bar {
|
@@ -85,7 +84,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
|
|
85
84
|
|
86
85
|
// Terminal body styles
|
87
86
|
.#{$block-class}__body {
|
88
|
-
height:
|
87
|
+
height: calc(100vh - #{$spacing-09});
|
89
88
|
}
|
90
89
|
|
91
90
|
// Terminal wrapper styles
|
@@ -1,7 +1,6 @@
|
|
1
1
|
//
|
2
|
-
// Copyright IBM Corp. 2020,
|
2
|
+
// Copyright IBM Corp. 2020, 2023
|
3
3
|
//
|
4
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
|
-
@use '@carbon/styles/scss/components/code-snippet';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
// Copyright IBM Corp. 2021,
|
2
|
+
// Copyright IBM Corp. 2021, 2023
|
3
3
|
//
|
4
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
// Package all scss files here for those that want them all bundled up.
|
9
9
|
|
10
|
-
@use './_Canary
|
10
|
+
@use './_Canary';
|
11
11
|
|
12
12
|
@use './APIKeyModal';
|
13
13
|
@use './AboutModal';
|
@@ -50,5 +50,8 @@
|
|
50
50
|
@use './EditTearsheetNarrow';
|
51
51
|
@use './EditFullPage';
|
52
52
|
@use './EditUpdateCards';
|
53
|
+
@use './Carousel';
|
53
54
|
@use './Checklist';
|
55
|
+
@use './Guidebanner';
|
54
56
|
@use './InlineTip';
|
57
|
+
@use './NonLinearReading';
|
File without changes
|
File without changes
|