@carbon/ibm-products 2.1.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +58 -216
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +3 -3
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +11 -59
- 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 +30 -92
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +3 -3
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +28 -114
- package/css/index.css.map +1 -1
- package/css/index.min.css +3 -3
- package/css/index.min.css.map +1 -1
- package/es/components/AboutModal/AboutModal.js +3 -1
- package/es/components/ActionBar/ActionBar.js +6 -2
- package/es/components/AddSelect/AddSelectFormControl.js +6 -6
- package/es/components/AddSelect/AddSelectRow.js +5 -15
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -5
- package/es/components/ButtonMenu/ButtonMenu.js +4 -4
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +9 -3
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +47 -39
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +24 -20
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +1 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +15 -44
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +21 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +17 -17
- package/es/components/Datagrid/useActionsColumn.js +7 -10
- package/es/components/Datagrid/useCustomizeColumns.js +7 -9
- package/es/components/Datagrid/useExpandedRow.js +7 -11
- package/es/components/Datagrid/useFiltering.js +8 -12
- package/es/components/Datagrid/useInlineEdit.js +0 -3
- package/es/components/Datagrid/useNestedRows.js +6 -10
- package/es/components/Datagrid/useStickyColumn.js +3 -10
- package/es/components/Datagrid/utils/DatagridActions.js +14 -6
- package/es/components/ImportModal/ImportModal.js +6 -13
- package/es/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +17 -2
- package/es/components/PageHeader/PageHeader.js +6 -2
- package/es/components/PageHeader/PageHeaderUtils.js +2 -2
- package/es/components/SidePanel/SidePanel.js +3 -1
- package/es/components/TagSet/TagSet.js +7 -4
- package/es/components/Tearsheet/TearsheetShell.js +5 -4
- package/es/components/UserProfileImage/UserProfileImage.js +2 -13
- package/es/global/js/hooks/useCreateComponentStepChange.js +15 -16
- package/es/global/js/hooks/useResizeObserver.js +28 -14
- package/es/global/js/package-settings.js +1 -14
- package/es/global/js/utils/story-helper.js +1 -1
- package/lib/components/AboutModal/AboutModal.js +3 -1
- package/lib/components/ActionBar/ActionBar.js +6 -2
- package/lib/components/AddSelect/AddSelectFormControl.js +6 -6
- package/lib/components/AddSelect/AddSelectRow.js +5 -15
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -5
- package/lib/components/ButtonMenu/ButtonMenu.js +4 -4
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +9 -3
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +45 -37
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +24 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +7 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +13 -42
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +30 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +17 -17
- package/lib/components/Datagrid/useActionsColumn.js +7 -12
- package/lib/components/Datagrid/useCustomizeColumns.js +8 -10
- package/lib/components/Datagrid/useExpandedRow.js +6 -9
- package/lib/components/Datagrid/useFiltering.js +7 -10
- package/lib/components/Datagrid/useInlineEdit.js +0 -3
- package/lib/components/Datagrid/useNestedRows.js +6 -9
- package/lib/components/Datagrid/useStickyColumn.js +3 -10
- package/lib/components/Datagrid/utils/DatagridActions.js +13 -5
- package/lib/components/ImportModal/ImportModal.js +6 -13
- package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +17 -2
- package/lib/components/PageHeader/PageHeader.js +6 -2
- package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
- package/lib/components/SidePanel/SidePanel.js +3 -1
- package/lib/components/TagSet/TagSet.js +7 -4
- package/lib/components/Tearsheet/TearsheetShell.js +5 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -13
- package/lib/global/js/hooks/useCreateComponentStepChange.js +15 -16
- package/lib/global/js/hooks/useResizeObserver.js +27 -13
- package/lib/global/js/package-settings.js +1 -14
- package/lib/global/js/utils/story-helper.js +1 -1
- package/package.json +10 -10
- package/scss/components/AddSelect/_add-select.scss +0 -4
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +1 -0
- package/scss/components/ButtonMenu/_button-menu.scss +1 -32
- package/scss/components/DataSpreadsheet/_storybook-styles.scss +0 -6
- package/scss/components/Datagrid/_datagrid.scss +2 -4
- package/scss/components/Datagrid/_storybook-styles.scss +1 -15
- package/scss/components/Datagrid/styles/_datagrid.scss +13 -12
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +0 -7
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +0 -4
- package/scss/components/HTTPErrors/_storybook-styles.scss +2 -16
- package/scss/components/NotificationsPanel/_notifications-panel.scss +1 -1
- package/scss/components/NotificationsPanel/_storybook-styles.scss +4 -0
- package/scss/components/PageHeader/_page-header.scss +1 -0
- package/scss/components/PageHeader/_storybook-styles.scss +14 -42
- package/scss/components/SidePanel/_side-panel.scss +2 -0
- package/scss/components/Tearsheet/_tearsheet.scss +6 -7
- package/scss/components/WebTerminal/_storybook-styles.scss +1 -16
- package/scss/global/styles/_display-box.scss +0 -1
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.2.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"devDependencies": {
|
57
57
|
"@babel/cli": "^7.21.5",
|
58
58
|
"@babel/core": "^7.22.1",
|
59
|
-
"babel-preset-ibm-cloud-cognitive": "^0.14.
|
59
|
+
"babel-preset-ibm-cloud-cognitive": "^0.14.37",
|
60
60
|
"chalk": "^4.1.2",
|
61
61
|
"change-case": "^4.1.2",
|
62
62
|
"copyfiles": "^2.4.1",
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"fs-extra": "^11.1.1",
|
65
65
|
"glob": "^10.2.6",
|
66
66
|
"jest": "^29.5.0",
|
67
|
-
"jest-config-ibm-cloud-cognitive": "^0.24.
|
67
|
+
"jest-config-ibm-cloud-cognitive": "^0.24.24",
|
68
68
|
"jest-environment-jsdom": "^29.5.0",
|
69
69
|
"namor": "^1.1.2",
|
70
70
|
"npm-check-updates": "^16.10.12",
|
@@ -85,14 +85,14 @@
|
|
85
85
|
"react-window": "^1.8.9"
|
86
86
|
},
|
87
87
|
"peerDependencies": {
|
88
|
-
"@carbon/grid": "^11.
|
89
|
-
"@carbon/layout": "^11.
|
90
|
-
"@carbon/motion": "^11.
|
91
|
-
"@carbon/react": "~1.
|
92
|
-
"@carbon/themes": "^11.
|
93
|
-
"@carbon/type": "^11.
|
88
|
+
"@carbon/grid": "^11.15.0",
|
89
|
+
"@carbon/layout": "^11.15.0",
|
90
|
+
"@carbon/motion": "^11.12.0",
|
91
|
+
"@carbon/react": "~1.31.3",
|
92
|
+
"@carbon/themes": "^11.20.0",
|
93
|
+
"@carbon/type": "^11.19.0",
|
94
94
|
"react": "^16.8.6 || ^17.0.1",
|
95
95
|
"react-dom": "^16.8.6 || ^17.0.1"
|
96
96
|
},
|
97
|
-
"gitHead": "
|
97
|
+
"gitHead": "36a061543213748633227ce75ea1441e1edaca7d"
|
98
98
|
}
|
@@ -92,5 +92,6 @@ $_block-class: #{c4p-settings.$pkg-prefix}--breadcrumb-with-overflow;
|
|
92
92
|
|
93
93
|
.#{$_block-class}__overflow-menu-options.#{$_block-class}__overflow-menu-options {
|
94
94
|
// Need to disable stylelint until dart sass namespace support is added
|
95
|
+
/* stylelint-disable-next-line function-no-unknown */
|
95
96
|
z-index: utilities.z('header');
|
96
97
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
// Copyright IBM Corp. 2021,
|
2
|
+
// Copyright IBM Corp. 2021, 2021
|
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,10 +7,7 @@
|
|
7
7
|
|
8
8
|
// Standard imports.
|
9
9
|
@use '@carbon/styles/scss/spacing' as *;
|
10
|
-
@use '@carbon/styles/scss/components/button/tokens' as *;
|
11
10
|
@use '../../global/styles/project-settings' as c4p-settings;
|
12
|
-
@use '@carbon/react/scss/theme' as *;
|
13
|
-
@use '@carbon/styles/scss/type';
|
14
11
|
|
15
12
|
// TODO: @use(s) of Carbon settings and component styles and other
|
16
13
|
// related component styles used by ButtonMenu
|
@@ -20,37 +17,9 @@ $block-class: #{c4p-settings.$pkg-prefix}--button-menu;
|
|
20
17
|
|
21
18
|
.#{$block-class} {
|
22
19
|
min-width: 160px;
|
23
|
-
&.#{$block-class}__wrapper--primary,
|
24
|
-
&.#{$block-class}__wrapper--primary.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
|
25
|
-
background-color: $button-primary;
|
26
|
-
}
|
27
|
-
&.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--primary:hover {
|
28
|
-
background-color: $button-primary-hover;
|
29
|
-
}
|
30
|
-
|
31
|
-
&.#{$block-class}__wrapper--tertiary,
|
32
|
-
&.#{$block-class}__wrapper--tertiary.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
|
33
|
-
background-color: $button-tertiary;
|
34
|
-
}
|
35
|
-
&.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--tertiary:hover {
|
36
|
-
background-color: $button-tertiary-hover;
|
37
|
-
}
|
38
|
-
|
39
|
-
&.#{$block-class}__wrapper--ghost,
|
40
|
-
&.#{$block-class}__wrapper--ghost.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
|
41
|
-
background-color: transparent;
|
42
|
-
}
|
43
|
-
&.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--ghost:hover {
|
44
|
-
background-color: $layer-hover;
|
45
|
-
}
|
46
20
|
|
47
21
|
.#{$block-class}__trigger {
|
48
|
-
@include type.type-style('body-compact-01');
|
49
|
-
|
50
|
-
display: flex;
|
51
22
|
width: 100%;
|
52
|
-
align-items: center;
|
53
|
-
justify-content: space-between;
|
54
23
|
padding: 0 $spacing-05;
|
55
24
|
}
|
56
25
|
}
|
@@ -4,9 +4,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
|
-
|
8
|
-
$story-anchor: 'data-spreadsheet';
|
9
|
-
div[id*='#{$story-anchor}'] .docs-story > div:first-child > div:first-child {
|
10
|
-
overflow: auto;
|
11
|
-
width: 100%;
|
12
|
-
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
// Copyright IBM Corp. 2022,
|
2
|
+
// Copyright IBM Corp. 2022, 2022
|
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.
|
@@ -22,7 +22,6 @@
|
|
22
22
|
|
23
23
|
// Datagrid uses the following Carbon for IBM Products components:
|
24
24
|
// TODO: @use(s) of IBM Products component styles used by Datagrid
|
25
|
-
@use '../ButtonMenu';
|
26
25
|
|
27
26
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
28
27
|
$block-class: #{c4p-settings.$pkg-prefix}--datagrid;
|
@@ -34,8 +33,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
|
|
34
33
|
display: none;
|
35
34
|
}
|
36
35
|
|
37
|
-
|
38
|
-
> .#{c4p-settings.$pkg-prefix}--datagrid__row-size-dropdown {
|
36
|
+
.bx--overflow-menu-options > .c4p--datagrid__row-size-dropdown {
|
39
37
|
left: $spacing-01;
|
40
38
|
width: 112px;
|
41
39
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
// Copyright IBM Corp. 2022,
|
2
|
+
// Copyright IBM Corp. 2022, 2022
|
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.
|
@@ -114,17 +114,3 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
|
|
114
114
|
margin-right: $spacing-03;
|
115
115
|
background-color: $field-01;
|
116
116
|
}
|
117
|
-
|
118
|
-
.#{c4p-settings.$carbon-prefix}--body--with-modal-open {
|
119
|
-
.#{$block-class}__mobile-toolbar-modal.#{c4p-settings.$carbon-prefix}--modal {
|
120
|
-
top: -$spacing-07;
|
121
|
-
left: -$spacing-07;
|
122
|
-
width: 100vw;
|
123
|
-
}
|
124
|
-
}
|
125
|
-
|
126
|
-
$story-anchor: 'datagrid';
|
127
|
-
div[id*='#{$story-anchor}'] .docs-story > div:first-child > div:first-child {
|
128
|
-
overflow: auto;
|
129
|
-
width: 100%;
|
130
|
-
}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
/*
|
2
|
+
* Licensed Materials - Property of IBM
|
3
|
+
* 5724-Q36
|
4
|
+
* (c) Copyright IBM Corp. 2020 - 2021
|
5
|
+
* US Government Users Restricted Rights - Use, duplication or disclosure
|
6
|
+
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
7
|
+
*/
|
7
8
|
|
8
9
|
@use '@carbon/styles/scss/theme' as *;
|
9
10
|
@use '@carbon/styles/scss/spacing' as *;
|
@@ -581,6 +582,12 @@
|
|
581
582
|
width: 100%;
|
582
583
|
}
|
583
584
|
|
585
|
+
.#{c4p-settings.$carbon-prefix}--body--with-modal-open
|
586
|
+
.#{$block-class}__grid-container {
|
587
|
+
overflow: hidden;
|
588
|
+
height: 100vh;
|
589
|
+
}
|
590
|
+
|
584
591
|
.#{$block-class} .#{c4p-settings.$carbon-prefix}--modal {
|
585
592
|
width: 100%;
|
586
593
|
}
|
@@ -625,9 +632,3 @@
|
|
625
632
|
.#{$block-class} .#{c4p-settings.$pkg-prefix}--datagrid__head-wrap {
|
626
633
|
background-color: $layer-accent;
|
627
634
|
}
|
628
|
-
|
629
|
-
.#{$block-class}
|
630
|
-
.#{c4p-settings.$carbon-prefix}--action-list
|
631
|
-
.#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$pkg-prefix}--button-menu {
|
632
|
-
padding: 0;
|
633
|
-
}
|
@@ -75,13 +75,6 @@ $action-set-height: rem(64px);
|
|
75
75
|
}
|
76
76
|
|
77
77
|
// Carbon overrides
|
78
|
-
.#{variables.$block-class}-filter-flyout__trigger.#{c4p-settings.$carbon-prefix}--btn {
|
79
|
-
display: flex;
|
80
|
-
width: 3rem;
|
81
|
-
height: 3rem;
|
82
|
-
justify-content: center;
|
83
|
-
}
|
84
|
-
|
85
78
|
.#{variables.$block-class}-filter-flyout__trigger--open.#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$carbon-prefix}--btn--icon-only {
|
86
79
|
position: relative;
|
87
80
|
background-color: $layer-02;
|
@@ -124,10 +124,6 @@
|
|
124
124
|
}
|
125
125
|
|
126
126
|
.#{c4p-settings.$carbon-prefix}--btn.c4p--datagrid-filter-panel-open-button {
|
127
|
-
display: flex;
|
128
|
-
width: 3rem;
|
129
|
-
height: 3rem;
|
130
|
-
justify-content: center;
|
131
127
|
border-right: 1px solid $layer-accent-01;
|
132
128
|
border-bottom: none;
|
133
129
|
}
|
@@ -1,20 +1,6 @@
|
|
1
|
-
//
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2021, 2021
|
2
3
|
//
|
3
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
4
5
|
// LICENSE file in the root directory of this source tree.
|
5
6
|
//
|
6
|
-
$story-anchor: 'http-errors';
|
7
|
-
div[id*='#{$story-anchor}'] .docs-story {
|
8
|
-
min-height: 50vh;
|
9
|
-
/* stylelint-disable-next-line carbon/layout-token-use */
|
10
|
-
transform: translateZ(0);
|
11
|
-
}
|
12
|
-
|
13
|
-
div[id*='#{$story-anchor}'] .docs-story > div:first-child {
|
14
|
-
overflow: auto;
|
15
|
-
width: 100%;
|
16
|
-
}
|
17
|
-
|
18
|
-
div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
|
19
|
-
min-height: 50vh;
|
20
|
-
}
|
@@ -29,6 +29,7 @@ $block-class: #{$pkg-prefix}--page-header;
|
|
29
29
|
$breadcrumb-block-class: #{$pkg-prefix}--breadcrumb-with-overflow;
|
30
30
|
|
31
31
|
$raised-z-index: 99;
|
32
|
+
/* stylelint-disable-next-line function-no-unknown */
|
32
33
|
$z-index-header-minus: utilities.z('header') - 1;
|
33
34
|
|
34
35
|
$left-section-std-width: 60%;
|
@@ -15,6 +15,15 @@
|
|
15
15
|
|
16
16
|
$story-class: 'page-header-stories';
|
17
17
|
|
18
|
+
// cspell:disable-next-line
|
19
|
+
.sbdocs .#{$story-class}__viewport {
|
20
|
+
max-height: 500px;
|
21
|
+
background-color: $background;
|
22
|
+
box-shadow: 0 0 4px 1px $layer-accent-01;
|
23
|
+
color: $text-primary;
|
24
|
+
overflow-y: auto;
|
25
|
+
}
|
26
|
+
|
18
27
|
.#{$story-class}__content-switcher {
|
19
28
|
justify-content: flex-start;
|
20
29
|
}
|
@@ -57,52 +66,15 @@ $story-class: 'page-header-stories';
|
|
57
66
|
flex-direction: column;
|
58
67
|
}
|
59
68
|
|
60
|
-
$story-
|
61
|
-
div[id*='#{$story-anchor}'] .docs-story {
|
62
|
-
--story-height: 50vh;
|
63
|
-
|
64
|
-
min-height: var(--story-height);
|
65
|
-
/* stylelint-disable-next-line carbon/layout-token-use */
|
66
|
-
transform: translateZ(0);
|
67
|
-
}
|
68
|
-
|
69
|
-
div[id*='#{$story-anchor}'] .docs-story > div:first-child {
|
70
|
-
overflow: hidden;
|
71
|
-
width: 100%;
|
72
|
-
}
|
73
|
-
|
74
|
-
div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
|
75
|
-
min-height: 50vh;
|
76
|
-
}
|
77
|
-
|
78
|
-
.#{$story-class}__viewport {
|
69
|
+
.#{$story-class}__app--whole-page-scroll {
|
79
70
|
overflow: hidden;
|
80
|
-
height: 100vh;
|
81
|
-
}
|
82
|
-
|
83
|
-
.#{$story-class}__viewport--scroll {
|
84
|
-
overflow-y: auto;
|
85
71
|
}
|
86
72
|
|
87
|
-
.#{$story-class}
|
73
|
+
.#{$story-class}__content-container {
|
88
74
|
height: 100%;
|
89
|
-
|
90
|
-
}
|
91
|
-
|
92
|
-
.#{$story-class}__viewport
|
93
|
-
.#{$story-class}__content-container--with-global-header {
|
94
|
-
height: calc(100% - #{$spacing-09});
|
95
|
-
margin-top: $spacing-09;
|
75
|
+
padding: 0;
|
96
76
|
}
|
97
77
|
|
98
|
-
.#{$story-class}
|
99
|
-
overflow-y:
|
100
|
-
}
|
101
|
-
|
102
|
-
// cspell:disable-next-line
|
103
|
-
.sbdocs .#{$story-class}__viewport {
|
104
|
-
max-height: 50vh;
|
105
|
-
background-color: $background;
|
106
|
-
box-shadow: 0 0 4px 1px $layer-accent-01;
|
107
|
-
color: $text-primary;
|
78
|
+
.#{$story-class}__app--whole-page-scroll .#{$story-class}__content-container {
|
79
|
+
overflow-y: auto;
|
108
80
|
}
|
@@ -64,6 +64,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
64
64
|
|
65
65
|
position: fixed;
|
66
66
|
// Need to disable stylelint until dart sass namespace support is added
|
67
|
+
/* stylelint-disable-next-line function-no-unknown */
|
67
68
|
z-index: utilities.z('modal');
|
68
69
|
top: $spacing-09;
|
69
70
|
height: calc(100% - 3rem);
|
@@ -440,6 +441,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
440
441
|
.#{$block-class}__overlay {
|
441
442
|
position: fixed;
|
442
443
|
// Need to disable stylelint until dart sass namespace support is added
|
444
|
+
/* stylelint-disable-next-line function-no-unknown */
|
443
445
|
z-index: utilities.z('overlay');
|
444
446
|
width: 100%;
|
445
447
|
height: 100%;
|
@@ -30,6 +30,7 @@ $motion-duration: $duration-moderate-02;
|
|
30
30
|
@include block-wrap($block-class) {
|
31
31
|
&.#{$block-class} {
|
32
32
|
// Need to disable stylelint until dart sass namespace support is added
|
33
|
+
/* stylelint-disable-next-line function-no-unknown */
|
33
34
|
z-index: utilities.z('modal') + 1;
|
34
35
|
align-items: flex-end;
|
35
36
|
color: $text-primary;
|
@@ -43,6 +44,7 @@ $motion-duration: $duration-moderate-02;
|
|
43
44
|
|
44
45
|
&.is-visible {
|
45
46
|
// Need to disable stylelint until dart sass namespace support is added
|
47
|
+
/* stylelint-disable-next-line function-no-unknown */
|
46
48
|
z-index: utilities.z('modal');
|
47
49
|
align-items: flex-end;
|
48
50
|
// stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
|
@@ -56,6 +58,7 @@ $motion-duration: $duration-moderate-02;
|
|
56
58
|
|
57
59
|
&.#{$block-class}--stacked-1-of-2 {
|
58
60
|
// Need to disable stylelint until dart sass namespace support is added
|
61
|
+
/* stylelint-disable-next-line function-no-unknown */
|
59
62
|
z-index: utilities.z('modal') - 1;
|
60
63
|
// stylelint-disable-next-line carbon/theme-token-use
|
61
64
|
background-color: rgba($overlay-color, 0.33);
|
@@ -63,6 +66,7 @@ $motion-duration: $duration-moderate-02;
|
|
63
66
|
|
64
67
|
&.#{$block-class}--stacked-1-of-3 {
|
65
68
|
// Need to disable stylelint until dart sass namespace support is added
|
69
|
+
/* stylelint-disable-next-line function-no-unknown */
|
66
70
|
z-index: utilities.z('modal') - 2;
|
67
71
|
// stylelint-disable-next-line carbon/theme-token-use
|
68
72
|
background-color: rgba($overlay-color, 0.11);
|
@@ -70,6 +74,7 @@ $motion-duration: $duration-moderate-02;
|
|
70
74
|
|
71
75
|
&.#{$block-class}--stacked-2-of-3 {
|
72
76
|
// Need to disable stylelint until dart sass namespace support is added
|
77
|
+
/* stylelint-disable-next-line function-no-unknown */
|
73
78
|
z-index: utilities.z('modal') - 1;
|
74
79
|
// stylelint-disable-next-line carbon/theme-token-use
|
75
80
|
background-color: rgba($overlay-color, 0.25);
|
@@ -146,14 +151,12 @@ $motion-duration: $duration-moderate-02;
|
|
146
151
|
padding: $spacing-06 $spacing-07;
|
147
152
|
border-bottom: 1px solid $border-subtle-01;
|
148
153
|
margin: 0;
|
149
|
-
background-color: $layer;
|
150
154
|
}
|
151
155
|
|
152
156
|
&.#{$block-class}--narrow .#{$block-class}__header {
|
153
157
|
padding: $spacing-05;
|
154
158
|
border-bottom: 1px solid $border-subtle-01;
|
155
159
|
margin: 0;
|
156
|
-
background-color: $layer;
|
157
160
|
}
|
158
161
|
|
159
162
|
.#{$block-class}__header-content {
|
@@ -267,15 +270,11 @@ $motion-duration: $duration-moderate-02;
|
|
267
270
|
.#{$block-class}__main {
|
268
271
|
display: flex;
|
269
272
|
flex-direction: row;
|
270
|
-
background-color: $
|
273
|
+
background-color: $layer;
|
271
274
|
grid-column: 1 / -1;
|
272
275
|
grid-row: 1 / -1;
|
273
276
|
}
|
274
277
|
|
275
|
-
&.#{$block-class}--narrow .#{$block-class}__main {
|
276
|
-
background-color: $layer;
|
277
|
-
}
|
278
|
-
|
279
278
|
.#{$block-class}__main .#{$block-class}__influencer {
|
280
279
|
border-right: none;
|
281
280
|
border-left: 1px solid $border-subtle-01;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
// Copyright IBM Corp. 2021,
|
2
|
+
// Copyright IBM Corp. 2021, 2022
|
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.
|
@@ -34,18 +34,3 @@ $storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
|
|
34
34
|
font-size: 14px;
|
35
35
|
}
|
36
36
|
}
|
37
|
-
|
38
|
-
$story-anchor: 'web-terminal';
|
39
|
-
div[id*='#{$story-anchor}'] .docs-story {
|
40
|
-
min-height: 50vh;
|
41
|
-
transform: translateZ(0);
|
42
|
-
}
|
43
|
-
|
44
|
-
div[id*='#{$story-anchor}'] .docs-story > div:first-child {
|
45
|
-
width: 100%;
|
46
|
-
overflow: hidden;
|
47
|
-
}
|
48
|
-
|
49
|
-
div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
|
50
|
-
min-height: 50vh;
|
51
|
-
}
|