@carbon/ibm-products 2.10.1 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -0
- package/css/index-full-carbon.css +72 -26
- 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 +1 -0
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +72 -26
- 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 +69 -25
- package/css/index.css.map +1 -1
- package/css/index.min.css +2 -2
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +10 -3
- package/es/components/AboutModal/AboutModal.js +10 -3
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +17 -5
- package/es/components/CreateModal/CreateModal.js +10 -3
- package/es/components/Datagrid/Datagrid/DatagridContent.js +9 -7
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -3
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +26 -13
- package/es/components/Datagrid/Datagrid/DatagridRow.js +47 -40
- package/es/components/Datagrid/Datagrid/DraggableElement.js +36 -132
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +17 -49
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +125 -40
- package/es/components/Datagrid/useActionsColumn.js +5 -3
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/utils/DatagridPagination.js +1 -1
- package/es/components/EmptyStates/EmptyState.js +1 -1
- 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/EmptyStates/assets/ErrorIllustration.js +6 -11
- package/es/components/EmptyStates/assets/NoDataIllustration.js +6 -11
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
- package/es/components/ExportModal/ExportModal.js +10 -3
- package/es/components/ImportModal/ImportModal.js +10 -3
- package/es/components/RemoveModal/RemoveModal.js +10 -3
- package/es/components/TagSet/TagSet.js +5 -21
- package/es/components/TagSet/TagSetModal.js +7 -3
- package/es/components/Tearsheet/TearsheetShell.js +12 -26
- package/es/components/index.js +1 -1
- package/es/global/decorators/sidePanelDecorator.js +7 -0
- package/es/global/js/hooks/usePortalTarget.js +30 -0
- package/es/global/js/hooks/useWindowScroll.js +5 -0
- package/es/global/js/package-settings.js +1 -1
- package/es/global/js/utils/getNodeTextContent.js +47 -0
- package/flags.js +6 -0
- package/lib/components/APIKeyModal/APIKeyModal.js +10 -3
- package/lib/components/AboutModal/AboutModal.js +10 -3
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +17 -5
- package/lib/components/CreateModal/CreateModal.js +10 -3
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +9 -7
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +26 -13
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +46 -41
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +37 -137
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +20 -49
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +130 -47
- package/lib/components/Datagrid/useActionsColumn.js +5 -3
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/utils/DatagridPagination.js +1 -1
- package/lib/components/EmptyStates/EmptyState.js +1 -1
- 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/EmptyStates/assets/ErrorIllustration.js +6 -11
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +6 -11
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +6 -12
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +6 -12
- package/lib/components/ExportModal/ExportModal.js +10 -3
- package/lib/components/ImportModal/ImportModal.js +10 -3
- package/lib/components/RemoveModal/RemoveModal.js +10 -3
- package/lib/components/TagSet/TagSet.js +5 -21
- package/lib/components/TagSet/TagSetModal.js +7 -3
- package/lib/components/Tearsheet/TearsheetShell.js +12 -26
- package/lib/components/index.js +6 -0
- package/lib/global/decorators/sidePanelDecorator.js +7 -0
- package/lib/global/js/hooks/usePortalTarget.js +38 -0
- package/lib/global/js/hooks/useWindowScroll.js +6 -0
- package/lib/global/js/package-settings.js +1 -1
- package/lib/global/js/utils/getNodeTextContent.js +55 -0
- package/package.json +11 -7
- package/scss/components/ActionSet/_action-set.scss +2 -1
- package/scss/components/Datagrid/styles/_datagrid.scss +11 -6
- package/scss/components/Datagrid/styles/_draggableElement.scss +34 -16
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +13 -0
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +22 -11
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +6 -3
- package/scss/components/FilterSummary/_filter-summary.scss +2 -1
- package/scss/global/decorators/_side-panel-decorator.scss +7 -0
- package/scss/global/js/utils/_story-as-full-page.scss +0 -6
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.getNodeTextContent = void 0;
|
8
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
9
|
+
/**
|
10
|
+
* Copyright IBM Corp. 2023
|
11
|
+
*
|
12
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
14
|
+
*/
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Returns a compiled string of all the text content of a React node and any of its child nodes.
|
18
|
+
* This is meant to be used in a limited fashion to convert a "styled" sentence into a single string:
|
19
|
+
* e.g. <p>Title <b>Page</b>.</p> --> "Title Page."
|
20
|
+
* This will likely not work for arrays of nodes due to the lack of word spacing:
|
21
|
+
* e.g. <ul>
|
22
|
+
* <li>Item 1</li>
|
23
|
+
* <li>Item 2</li>
|
24
|
+
* <li>Item 3</li>
|
25
|
+
* </ul>
|
26
|
+
* --> "Item 1Item 2Item 3"
|
27
|
+
* @param {Node} node A React node
|
28
|
+
* @returns {string}
|
29
|
+
*/
|
30
|
+
var getNodeTextContent = function getNodeTextContent(node) {
|
31
|
+
if (node == null) {
|
32
|
+
return '';
|
33
|
+
}
|
34
|
+
switch ((0, _typeof2.default)(node)) {
|
35
|
+
case 'string':
|
36
|
+
case 'number':
|
37
|
+
return node.toString();
|
38
|
+
case 'object':
|
39
|
+
{
|
40
|
+
if (node instanceof Array) {
|
41
|
+
return node.map(getNodeTextContent).join('');
|
42
|
+
}
|
43
|
+
if ('props' in node) {
|
44
|
+
return getNodeTextContent(node.props.children);
|
45
|
+
}
|
46
|
+
|
47
|
+
// Ignore any other JavaScript 'object' types.
|
48
|
+
return '';
|
49
|
+
}
|
50
|
+
default:
|
51
|
+
// Ignore all other JavaScript types.
|
52
|
+
return '';
|
53
|
+
}
|
54
|
+
};
|
55
|
+
exports.getNodeTextContent = getNodeTextContent;
|
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.11.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -23,7 +23,8 @@
|
|
23
23
|
"css",
|
24
24
|
"es",
|
25
25
|
"lib",
|
26
|
-
"scss"
|
26
|
+
"scss",
|
27
|
+
"flags.js"
|
27
28
|
],
|
28
29
|
"keywords": [
|
29
30
|
"carbon",
|
@@ -56,6 +57,9 @@
|
|
56
57
|
"devDependencies": {
|
57
58
|
"@babel/cli": "^7.22.10",
|
58
59
|
"@babel/core": "^7.22.10",
|
60
|
+
"@dnd-kit/core": "^6.0.8",
|
61
|
+
"@dnd-kit/sortable": "^7.0.2",
|
62
|
+
"@dnd-kit/utilities": "^3.2.1",
|
59
63
|
"babel-preset-ibm-cloud-cognitive": "^0.14.39",
|
60
64
|
"chalk": "^4.1.2",
|
61
65
|
"change-case": "^4.1.2",
|
@@ -83,14 +87,14 @@
|
|
83
87
|
"react-window": "^1.8.9"
|
84
88
|
},
|
85
89
|
"peerDependencies": {
|
86
|
-
"@carbon/grid": "^11.
|
87
|
-
"@carbon/layout": "^11.
|
90
|
+
"@carbon/grid": "^11.19.0",
|
91
|
+
"@carbon/layout": "^11.19.0",
|
88
92
|
"@carbon/motion": "^11.15.0",
|
89
93
|
"@carbon/react": "^1.37.0",
|
90
|
-
"@carbon/themes": "^11.
|
91
|
-
"@carbon/type": "^11.
|
94
|
+
"@carbon/themes": "^11.24.0",
|
95
|
+
"@carbon/type": "^11.23.0",
|
92
96
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
93
97
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
94
98
|
},
|
95
|
-
"gitHead": "
|
99
|
+
"gitHead": "512f13bb07b7b8c7bdbd1ea97d2bc1e86de3fabf"
|
96
100
|
}
|
@@ -107,7 +107,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
107
107
|
.#{$action-set-block-class}__action-button:not(
|
108
108
|
.#{$action-set-block-class}__action-button--ghost
|
109
109
|
) {
|
110
|
-
|
110
|
+
/* stylelint-disable-next-line function-no-unknown -- to-rem carbon replacement for rem */
|
111
|
+
max-width: to-rem(232px);
|
111
112
|
flex: 0 1 25%;
|
112
113
|
}
|
113
114
|
|
@@ -92,10 +92,10 @@
|
|
92
92
|
&.#{c4p-settings.$carbon-prefix}--data-table--sm,
|
93
93
|
&.#{c4p-settings.$carbon-prefix}--data-table--md {
|
94
94
|
.#{$block-class}__cell {
|
95
|
-
/* stylelint-disable-next-line
|
96
|
-
padding-top: rem(7px);
|
97
|
-
/* stylelint-disable-next-line
|
98
|
-
padding-bottom: rem(6px);
|
95
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
96
|
+
padding-top: to-rem(7px);
|
97
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
98
|
+
padding-bottom: to-rem(6px);
|
99
99
|
}
|
100
100
|
}
|
101
101
|
|
@@ -123,8 +123,8 @@
|
|
123
123
|
}
|
124
124
|
|
125
125
|
.#{c4p-settings.$carbon-prefix}--table-column-checkbox {
|
126
|
-
/* stylelint-disable-next-line
|
127
|
-
padding-top: rem(13px);
|
126
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
127
|
+
padding-top: to-rem(13px);
|
128
128
|
}
|
129
129
|
}
|
130
130
|
|
@@ -288,6 +288,7 @@
|
|
288
288
|
}
|
289
289
|
|
290
290
|
.#{$block-class}__empty-state .#{$block-class}__table-simple tr:hover td {
|
291
|
+
border-bottom: none;
|
291
292
|
background: transparent;
|
292
293
|
}
|
293
294
|
|
@@ -299,6 +300,10 @@
|
|
299
300
|
flex: 1 1 auto;
|
300
301
|
}
|
301
302
|
|
303
|
+
.#{$block-class}__empty-state .#{$block-class}__empty-state-cell {
|
304
|
+
border-bottom: none;
|
305
|
+
}
|
306
|
+
|
302
307
|
.#{$block-class}__resizer {
|
303
308
|
position: absolute;
|
304
309
|
z-index: 1;
|
@@ -15,7 +15,6 @@
|
|
15
15
|
display: flex;
|
16
16
|
align-items: center;
|
17
17
|
margin-right: $spacing-03;
|
18
|
-
cursor: grab;
|
19
18
|
}
|
20
19
|
|
21
20
|
.#{variables.$block-class}__draggable-handleStyle.disabled {
|
@@ -26,32 +25,56 @@
|
|
26
25
|
fill: $icon-on-color-disabled;
|
27
26
|
}
|
28
27
|
|
28
|
+
.#{variables.$block-class}__draggable-underlay {
|
29
|
+
position: absolute;
|
30
|
+
width: 100%;
|
31
|
+
}
|
32
|
+
|
33
|
+
.#{variables.$block-class}__draggable-underlay-item {
|
34
|
+
// must match draggable item size
|
35
|
+
width: 100%;
|
36
|
+
height: $spacing-09;
|
37
|
+
border: 2px dashed $focus;
|
38
|
+
/* stylelint-disable-next-line carbon/theme-token-use */
|
39
|
+
background-color: colors.$blue-10; // not good in dark mode
|
40
|
+
}
|
41
|
+
|
29
42
|
.#{variables.$block-class}__draggable-handleHolder {
|
43
|
+
position: relative; // above underlay
|
30
44
|
display: flex;
|
31
45
|
height: $spacing-09;
|
32
46
|
border-bottom: 1px solid $layer-active;
|
33
47
|
background-color: $layer;
|
48
|
+
cursor: grab;
|
34
49
|
}
|
35
50
|
|
36
51
|
.#{variables.$block-class}__draggable-handleHolder:hover {
|
37
52
|
background-color: $layer-hover;
|
38
53
|
}
|
39
54
|
|
40
|
-
.#{variables.$block-class}__draggable-handleHolder
|
41
|
-
|
42
|
-
|
43
|
-
|
55
|
+
.#{variables.$block-class}__draggable-handleHolder:focus {
|
56
|
+
box-shadow: inset 0 0 0 1px $focus;
|
57
|
+
outline: none;
|
58
|
+
}
|
59
|
+
|
60
|
+
.#{variables.$block-class}__draggable-handleHolder--selected {
|
44
61
|
background-color: $layer-selected;
|
45
62
|
}
|
46
63
|
|
47
|
-
.#{variables.$block-class}__draggable-handleHolder
|
48
|
-
|
64
|
+
.#{variables.$block-class}__draggable-handleHolder--dragging {
|
65
|
+
z-index: 2; // raise above other items in draggable list
|
66
|
+
background-color: $highlight;
|
67
|
+
color: $text-primary;
|
68
|
+
outline: none;
|
49
69
|
}
|
50
70
|
|
51
|
-
.#{variables.$block-class}__draggable-handleHolder
|
52
|
-
|
53
|
-
|
54
|
-
|
71
|
+
.#{variables.$block-class}__draggable-handleHolder:active,
|
72
|
+
.#{variables.$block-class}__draggable-handleHolder--dragging {
|
73
|
+
cursor: grabbing;
|
74
|
+
}
|
75
|
+
|
76
|
+
.#{variables.$block-class}__draggable-handleHolder-selected:hover {
|
77
|
+
background-color: $layer-selected-hover-01;
|
55
78
|
}
|
56
79
|
|
57
80
|
.#{variables.$block-class}__draggable-handleHolder-droppable {
|
@@ -69,11 +92,6 @@
|
|
69
92
|
transition: opacity $duration-moderate-01 motion(entrance, productive);
|
70
93
|
}
|
71
94
|
|
72
|
-
.#{variables.$block-class}__draggable-handleHolder-grabbed {
|
73
|
-
background-color: $highlight;
|
74
|
-
color: $text-primary;
|
75
|
-
}
|
76
|
-
|
77
95
|
.#{variables.$block-class}__draggable-handleHolder--sticky {
|
78
96
|
color: $text-on-color-disabled;
|
79
97
|
}
|
@@ -52,9 +52,22 @@
|
|
52
52
|
width: $spacing-07;
|
53
53
|
height: $spacing-07;
|
54
54
|
min-height: $spacing-07;
|
55
|
+
align-items: center;
|
55
56
|
justify-content: center;
|
56
57
|
padding: 0;
|
57
58
|
.#{variables.$block-class}__row-expander--icon {
|
58
59
|
fill: $layer-selected-inverse;
|
59
60
|
}
|
60
61
|
}
|
62
|
+
|
63
|
+
.#{variables.$block-class}
|
64
|
+
.#{c4p-settings.$carbon-prefix}--data-table
|
65
|
+
tbody
|
66
|
+
tr:hover
|
67
|
+
+ .#{variables.$block-class}__expanded-row,
|
68
|
+
.#{variables.$block-class} .#{variables.$block-class}__expanded-row:hover,
|
69
|
+
.#{variables.$block-class}
|
70
|
+
.#{variables.$block-class}__expandable-row--hover
|
71
|
+
td {
|
72
|
+
background: $layer-hover;
|
73
|
+
}
|
@@ -40,7 +40,7 @@
|
|
40
40
|
.#{variables.$block-class}__customize-columns-checkbox-visible-label {
|
41
41
|
// Disabling linter only to match the spacing that Carbon uses for the Checkbox label
|
42
42
|
/* stylelint-disable-next-line */
|
43
|
-
padding-left: convert.rem(6px);
|
43
|
+
padding-left: convert.to-rem(6px);
|
44
44
|
}
|
45
45
|
|
46
46
|
.#{variables.$block-class}__customize-columns-column-list
|
@@ -16,7 +16,8 @@
|
|
16
16
|
@use '../../../../global/styles/project-settings' as c4p-settings;
|
17
17
|
@use '../variables';
|
18
18
|
|
19
|
-
|
19
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
20
|
+
$action-set-height: to-rem(64px);
|
20
21
|
|
21
22
|
.#{variables.$block-class}-filter-flyout__container {
|
22
23
|
position: relative;
|
@@ -27,9 +28,11 @@ $action-set-height: rem(64px);
|
|
27
28
|
top: $spacing-09;
|
28
29
|
right: 0;
|
29
30
|
display: none;
|
30
|
-
|
31
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
32
|
+
width: to-rem(642px);
|
31
33
|
background-color: $layer-02;
|
32
|
-
|
34
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
35
|
+
box-shadow: 0 1px to-rem(8px) 0 rgba(0, 0, 0, 0.25);
|
33
36
|
}
|
34
37
|
|
35
38
|
.#{variables.$block-class}-filter-flyout--open {
|
@@ -37,12 +40,15 @@ $action-set-height: rem(64px);
|
|
37
40
|
}
|
38
41
|
|
39
42
|
.#{variables.$block-class}-filter-flyout--batch {
|
40
|
-
|
41
|
-
|
43
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
44
|
+
min-height: to-rem(346px);
|
45
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
46
|
+
grid-template-rows: 1fr to-rem(48px);
|
42
47
|
}
|
43
48
|
|
44
49
|
.#{variables.$block-class}-filter-flyout--instant {
|
45
|
-
|
50
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
51
|
+
min-height: to-rem(282px);
|
46
52
|
grid-template-rows: 1fr;
|
47
53
|
}
|
48
54
|
|
@@ -52,11 +58,14 @@ $action-set-height: rem(64px);
|
|
52
58
|
|
53
59
|
.#{variables.$block-class}-filter-flyout__inner-container::before {
|
54
60
|
position: absolute;
|
55
|
-
|
61
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
62
|
+
top: to-rem(-7px);
|
56
63
|
right: 1px;
|
57
64
|
display: block;
|
58
|
-
|
59
|
-
|
65
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
66
|
+
width: to-rem(46px);
|
67
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
68
|
+
height: to-rem(15px);
|
60
69
|
background-color: $layer-02;
|
61
70
|
content: '';
|
62
71
|
}
|
@@ -70,7 +79,8 @@ $action-set-height: rem(64px);
|
|
70
79
|
|
71
80
|
.#{variables.$block-class}-filter-flyout__filters {
|
72
81
|
display: grid;
|
73
|
-
|
82
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
83
|
+
gap: to-rem(16px) rem(32px);
|
74
84
|
grid-template-columns: 1fr 1fr;
|
75
85
|
}
|
76
86
|
|
@@ -85,7 +95,8 @@ $action-set-height: rem(64px);
|
|
85
95
|
.#{variables.$block-class}-filter-flyout__trigger--open.#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$carbon-prefix}--btn--icon-only {
|
86
96
|
position: relative;
|
87
97
|
background-color: $layer-02;
|
88
|
-
|
98
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
99
|
+
box-shadow: 0 1px to-rem(8px) 0 rgba(0, 0, 0, 0.25);
|
89
100
|
}
|
90
101
|
|
91
102
|
.#{variables.$block-class}-filter-flyout
|
@@ -14,7 +14,8 @@
|
|
14
14
|
|
15
15
|
.#{$block-class}-filter-panel__container {
|
16
16
|
position: relative;
|
17
|
-
|
17
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
18
|
+
width: to-rem(320px);
|
18
19
|
height: clamp(var(--filter-panel-min-height), 100%, 100vh);
|
19
20
|
border-top: 1px $layer-accent-01 solid;
|
20
21
|
background-color: $layer-01;
|
@@ -29,7 +30,8 @@
|
|
29
30
|
top: -1px; // stylelint-disable-line
|
30
31
|
left: 0;
|
31
32
|
display: block;
|
32
|
-
|
33
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
34
|
+
width: to-rem(47px); // size of filter panel button
|
33
35
|
height: 1px;
|
34
36
|
background-color: $layer-01;
|
35
37
|
content: '';
|
@@ -95,7 +97,8 @@
|
|
95
97
|
position: sticky;
|
96
98
|
z-index: 1; // To layer action set on top of content behind when sticky
|
97
99
|
bottom: 0;
|
98
|
-
|
100
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
101
|
+
height: to-rem(64px);
|
99
102
|
margin-top: auto;
|
100
103
|
}
|
101
104
|
|
@@ -13,7 +13,8 @@ $block-class: #{$pkg-prefix}--filter-summary;
|
|
13
13
|
.#{$block-class} {
|
14
14
|
display: flex;
|
15
15
|
width: 100%;
|
16
|
-
|
16
|
+
/* stylelint-disable-next-line -- to-rem carbon replacement for rem */
|
17
|
+
height: to-rem(48px);
|
17
18
|
align-items: center;
|
18
19
|
padding: $spacing-03;
|
19
20
|
border-top: 1px solid $border-subtle-01;
|
@@ -1,3 +1,10 @@
|
|
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
|
+
|
1
8
|
@mixin side-panel-decorator($prefix) {
|
2
9
|
.#{$prefix}container {
|
3
10
|
display: flex;
|