@carbon/ibm-products 2.32.0 → 2.34.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +351 -3
- 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.css +351 -3
- 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 +351 -3
- 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/ActionBar/ActionBar.js +8 -1
- package/es/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
- package/es/components/CreateSidePanel/CreateSidePanel.js +5 -2
- package/es/components/CreateTearsheet/CreateTearsheetDivider.d.ts +12 -1
- package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +39 -145
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +60 -112
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.d.ts +3 -1
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +10 -3
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +304 -0
- package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +6 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +5 -5
- package/es/components/Datagrid/useRowSize.js +4 -2
- package/es/components/DescriptionList/DescriptionList.d.ts +0 -37
- package/es/components/DescriptionList/DescriptionList.js +7 -12
- package/es/components/DescriptionList/DescriptionListBody.d.ts +2 -0
- package/es/components/DescriptionList/DescriptionListBody.js +39 -0
- package/es/components/DescriptionList/DescriptionListCell.d.ts +2 -0
- package/es/components/DescriptionList/DescriptionListCell.js +39 -0
- package/es/components/DescriptionList/DescriptionListRow.d.ts +2 -0
- package/es/components/DescriptionList/DescriptionListRow.js +41 -0
- package/es/components/DescriptionList/index.d.ts +4 -1
- package/es/components/EditSidePanel/EditSidePanel.d.ts +92 -2
- package/es/components/EditSidePanel/EditSidePanel.js +8 -10
- package/es/components/FilterPanel/FilterPanel.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanel.js +55 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +83 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +94 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +80 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +157 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +72 -0
- package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +63 -0
- package/es/components/FilterPanel/FilterPanelLabel/index.d.ts +1 -0
- package/es/components/FilterPanel/index.d.ts +7 -0
- package/es/components/OptionsTile/OptionsTile.d.ts +77 -3
- package/es/components/OptionsTile/OptionsTile.js +9 -20
- package/es/components/RemoveModal/RemoveModal.d.ts +81 -7
- package/es/components/RemoveModal/RemoveModal.js +1 -0
- package/es/components/ScrollGradient/ScrollGradient.d.ts +5 -0
- package/es/components/ScrollGradient/ScrollGradient.js +156 -0
- package/es/components/ScrollGradient/constants.d.ts +15 -0
- package/es/components/ScrollGradient/constants.js +121 -0
- package/es/components/ScrollGradient/index.d.ts +1 -0
- package/es/components/SidePanel/SidePanel.d.ts +144 -2
- package/es/components/SidePanel/SidePanel.js +88 -112
- package/es/components/StatusIcon/StatusIcon.d.ts +34 -2
- package/es/components/StatusIcon/StatusIcon.js +97 -95
- package/es/components/Tearsheet/TearsheetShell.js +9 -1
- package/es/components/Toolbar/ToolbarGroup.d.ts +17 -2
- package/es/components/Toolbar/ToolbarGroup.js +0 -1
- package/es/components/TruncatedList/TruncatedList.js +5 -3
- package/es/components/UserAvatar/UserAvatar.js +3 -2
- package/es/components/index.d.ts +4 -1
- package/es/global/js/hooks/useFocus.js +9 -2
- package/es/global/js/package-settings.d.ts +12 -0
- package/es/global/js/package-settings.js +12 -0
- package/es/index.js +12 -0
- package/es/settings.d.ts +12 -0
- package/lib/components/ActionBar/ActionBar.js +11 -6
- package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
- package/lib/components/CreateSidePanel/CreateSidePanel.js +5 -2
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.d.ts +12 -1
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +39 -145
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +60 -112
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.d.ts +3 -1
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +9 -2
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +311 -0
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +5 -5
- package/lib/components/Datagrid/useRowSize.js +4 -2
- package/lib/components/DescriptionList/DescriptionList.d.ts +0 -37
- package/lib/components/DescriptionList/DescriptionList.js +6 -11
- package/lib/components/DescriptionList/DescriptionListBody.d.ts +2 -0
- package/lib/components/DescriptionList/DescriptionListBody.js +46 -0
- package/lib/components/DescriptionList/DescriptionListCell.d.ts +2 -0
- package/lib/components/DescriptionList/DescriptionListCell.js +46 -0
- package/lib/components/DescriptionList/DescriptionListRow.d.ts +2 -0
- package/lib/components/DescriptionList/DescriptionListRow.js +48 -0
- package/lib/components/DescriptionList/index.d.ts +4 -1
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +92 -2
- package/lib/components/EditSidePanel/EditSidePanel.js +8 -10
- package/lib/components/FilterPanel/FilterPanel.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanel.js +62 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +90 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +101 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +87 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +164 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +79 -0
- package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +70 -0
- package/lib/components/FilterPanel/FilterPanelLabel/index.d.ts +1 -0
- package/lib/components/FilterPanel/index.d.ts +7 -0
- package/lib/components/OptionsTile/OptionsTile.d.ts +77 -3
- package/lib/components/OptionsTile/OptionsTile.js +9 -20
- package/lib/components/RemoveModal/RemoveModal.d.ts +81 -7
- package/lib/components/RemoveModal/RemoveModal.js +1 -0
- package/lib/components/ScrollGradient/ScrollGradient.d.ts +5 -0
- package/lib/components/ScrollGradient/ScrollGradient.js +163 -0
- package/lib/components/ScrollGradient/constants.d.ts +15 -0
- package/lib/components/ScrollGradient/constants.js +128 -0
- package/lib/components/ScrollGradient/index.d.ts +1 -0
- package/lib/components/SidePanel/SidePanel.d.ts +144 -2
- package/lib/components/SidePanel/SidePanel.js +88 -112
- package/lib/components/StatusIcon/StatusIcon.d.ts +34 -2
- package/lib/components/StatusIcon/StatusIcon.js +97 -95
- package/lib/components/Tearsheet/TearsheetShell.js +9 -1
- package/lib/components/Toolbar/ToolbarGroup.d.ts +17 -2
- package/lib/components/Toolbar/ToolbarGroup.js +0 -1
- package/lib/components/TruncatedList/TruncatedList.js +5 -3
- package/lib/components/UserAvatar/UserAvatar.js +3 -2
- package/lib/components/index.d.ts +4 -1
- package/lib/global/js/hooks/useFocus.js +9 -2
- package/lib/global/js/package-settings.d.ts +12 -0
- package/lib/global/js/package-settings.js +12 -0
- package/lib/index.js +60 -0
- package/lib/settings.d.ts +12 -0
- package/package.json +3 -3
- package/scss/components/FilterPanel/_carbon-imports.scss +9 -0
- package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +56 -0
- package/scss/components/FilterPanel/_filter-panel-accordion.scss +6 -0
- package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +62 -0
- package/scss/components/FilterPanel/_filter-panel-checkbox.scss +54 -0
- package/scss/components/FilterPanel/_filter-panel-group.scss +39 -0
- package/scss/components/FilterPanel/_filter-panel-label.scss +39 -0
- package/scss/components/FilterPanel/_filter-panel.scss +31 -0
- package/scss/components/FilterPanel/_index-with-carbon.scss +15 -0
- package/scss/components/FilterPanel/_index.scss +14 -0
- package/scss/components/ScrollGradient/_carbon-imports.scss +9 -0
- package/scss/components/ScrollGradient/_index-with-carbon.scss +9 -0
- package/scss/components/ScrollGradient/_index.scss +8 -0
- package/scss/components/ScrollGradient/_scroll-gradient.scss +102 -0
- package/scss/components/UserAvatar/_user-avatar.scss +37 -4
- package/scss/components/_index-with-carbon.scss +2 -0
- package/scss/components/_index.scss +2 -0
package/lib/index.js
CHANGED
@@ -114,12 +114,24 @@ var DecoratorLink = require('./components/DecoratorLink/DecoratorLink.js');
|
|
114
114
|
var DecoratorSingleButton = require('./components/DecoratorSingleButton/DecoratorSingleButton.js');
|
115
115
|
var DecoratorDualButton = require('./components/DecoratorDualButton/DecoratorDualButton.js');
|
116
116
|
var DescriptionList = require('./components/DescriptionList/DescriptionList.js');
|
117
|
+
var DescriptionListBody = require('./components/DescriptionList/DescriptionListBody.js');
|
118
|
+
var DescriptionListCell = require('./components/DescriptionList/DescriptionListCell.js');
|
119
|
+
var DescriptionListRow = require('./components/DescriptionList/DescriptionListRow.js');
|
117
120
|
var FullPageError = require('./components/FullPageError/FullPageError.js');
|
118
121
|
var SearchBar = require('./components/SearchBar/SearchBar.js');
|
119
122
|
var Nav = require('./components/Nav/Nav.js');
|
120
123
|
var StringFormatter = require('./components/StringFormatter/StringFormatter.js');
|
121
124
|
var UserAvatar = require('./components/UserAvatar/UserAvatar.js');
|
125
|
+
var ScrollGradient = require('./components/ScrollGradient/ScrollGradient.js');
|
122
126
|
var StatusIndicator = require('./components/StatusIndicator/StatusIndicator.js');
|
127
|
+
var ActionBar = require('./components/ActionBar/ActionBar.js');
|
128
|
+
var FilterPanel = require('./components/FilterPanel/FilterPanel.js');
|
129
|
+
var FilterPanelAccordion = require('./components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js');
|
130
|
+
var FilterPanelAccordionItem = require('./components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js');
|
131
|
+
var FilterPanelCheckbox = require('./components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js');
|
132
|
+
var FilterPanelCheckboxWithOverflow = require('./components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js');
|
133
|
+
var FilterPanelGroup = require('./components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js');
|
134
|
+
var FilterPanelLabel = require('./components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js');
|
123
135
|
|
124
136
|
|
125
137
|
|
@@ -475,6 +487,18 @@ Object.defineProperty(exports, 'DescriptionList', {
|
|
475
487
|
enumerable: true,
|
476
488
|
get: function () { return DescriptionList.DescriptionList; }
|
477
489
|
});
|
490
|
+
Object.defineProperty(exports, 'DescriptionListBody', {
|
491
|
+
enumerable: true,
|
492
|
+
get: function () { return DescriptionListBody.DescriptionListBody; }
|
493
|
+
});
|
494
|
+
Object.defineProperty(exports, 'DescriptionListCell', {
|
495
|
+
enumerable: true,
|
496
|
+
get: function () { return DescriptionListCell.DescriptionListCell; }
|
497
|
+
});
|
498
|
+
Object.defineProperty(exports, 'DescriptionListRow', {
|
499
|
+
enumerable: true,
|
500
|
+
get: function () { return DescriptionListRow.DescriptionListRow; }
|
501
|
+
});
|
478
502
|
Object.defineProperty(exports, 'FullPageError', {
|
479
503
|
enumerable: true,
|
480
504
|
get: function () { return FullPageError.FullPageError; }
|
@@ -495,7 +519,43 @@ Object.defineProperty(exports, 'UserAvatar', {
|
|
495
519
|
enumerable: true,
|
496
520
|
get: function () { return UserAvatar.UserAvatar; }
|
497
521
|
});
|
522
|
+
Object.defineProperty(exports, 'ScrollGradient', {
|
523
|
+
enumerable: true,
|
524
|
+
get: function () { return ScrollGradient.ScrollGradient; }
|
525
|
+
});
|
498
526
|
Object.defineProperty(exports, 'StatusIndicator', {
|
499
527
|
enumerable: true,
|
500
528
|
get: function () { return StatusIndicator.StatusIndicator; }
|
501
529
|
});
|
530
|
+
Object.defineProperty(exports, 'ActionBar', {
|
531
|
+
enumerable: true,
|
532
|
+
get: function () { return ActionBar.ActionBar; }
|
533
|
+
});
|
534
|
+
Object.defineProperty(exports, 'FilterPanel', {
|
535
|
+
enumerable: true,
|
536
|
+
get: function () { return FilterPanel.FilterPanel; }
|
537
|
+
});
|
538
|
+
Object.defineProperty(exports, 'FilterPanelAccordion', {
|
539
|
+
enumerable: true,
|
540
|
+
get: function () { return FilterPanelAccordion.FilterPanelAccordion; }
|
541
|
+
});
|
542
|
+
Object.defineProperty(exports, 'FilterPanelAccordionItem', {
|
543
|
+
enumerable: true,
|
544
|
+
get: function () { return FilterPanelAccordionItem.FilterPanelAccordionItem; }
|
545
|
+
});
|
546
|
+
Object.defineProperty(exports, 'FilterPanelCheckbox', {
|
547
|
+
enumerable: true,
|
548
|
+
get: function () { return FilterPanelCheckbox.FilterPanelCheckbox; }
|
549
|
+
});
|
550
|
+
Object.defineProperty(exports, 'FilterPanelCheckboxWithOverflow', {
|
551
|
+
enumerable: true,
|
552
|
+
get: function () { return FilterPanelCheckboxWithOverflow.FilterPanelCheckboxWithOverflow; }
|
553
|
+
});
|
554
|
+
Object.defineProperty(exports, 'FilterPanelGroup', {
|
555
|
+
enumerable: true,
|
556
|
+
get: function () { return FilterPanelGroup.FilterPanelGroup; }
|
557
|
+
});
|
558
|
+
Object.defineProperty(exports, 'FilterPanelLabel', {
|
559
|
+
enumerable: true,
|
560
|
+
get: function () { return FilterPanelLabel.FilterPanelLabel; }
|
561
|
+
});
|
package/lib/settings.d.ts
CHANGED
@@ -66,9 +66,18 @@ export const pkg: {
|
|
66
66
|
TruncatedList: boolean;
|
67
67
|
DelimitedList: boolean;
|
68
68
|
FullPageError: boolean;
|
69
|
+
ScrollGradient: boolean;
|
69
70
|
StringFormatter: boolean;
|
70
71
|
StatusIndicator: boolean;
|
71
72
|
StatusIndicatorStep: boolean;
|
73
|
+
ActionBar: boolean;
|
74
|
+
FilterPanel: boolean;
|
75
|
+
FilterPanelAccordion: boolean;
|
76
|
+
FilterPanelAccordionItem: boolean;
|
77
|
+
FilterPanelCheckbox: boolean;
|
78
|
+
FilterPanelCheckboxWithOverflow: boolean;
|
79
|
+
FilterPanelGroup: boolean;
|
80
|
+
FilterPanelLabel: boolean;
|
72
81
|
Coachmark: boolean;
|
73
82
|
CoachmarkBeacon: boolean;
|
74
83
|
CoachmarkButton: boolean;
|
@@ -81,6 +90,9 @@ export const pkg: {
|
|
81
90
|
DecoratorSingleButton: boolean;
|
82
91
|
DecoratorDualButton: boolean;
|
83
92
|
DescriptionList: boolean;
|
93
|
+
DescriptionListBody: boolean;
|
94
|
+
DescriptionListCell: boolean;
|
95
|
+
DescriptionListRow: boolean;
|
84
96
|
SearchBar: boolean;
|
85
97
|
UserAvatar: boolean;
|
86
98
|
Checklist: boolean;
|
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.34.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -90,7 +90,7 @@
|
|
90
90
|
},
|
91
91
|
"dependencies": {
|
92
92
|
"@babel/runtime": "^7.23.9",
|
93
|
-
"@carbon/ibm-products-styles": "^2.
|
93
|
+
"@carbon/ibm-products-styles": "^2.32.0",
|
94
94
|
"@carbon/telemetry": "^0.1.0",
|
95
95
|
"@dnd-kit/core": "^6.0.8",
|
96
96
|
"@dnd-kit/modifiers": "^7.0.0",
|
@@ -114,5 +114,5 @@
|
|
114
114
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
115
115
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
116
116
|
},
|
117
|
-
"gitHead": "
|
117
|
+
"gitHead": "8c3c324be171a801b4d966e94c54ca01a99eb82f"
|
118
118
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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
|
+
// Import any Carbon component styles used from FilterPanel in this file.
|
9
|
+
// FilterPanel uses the following Carbon components:
|
@@ -0,0 +1,56 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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 function-no-unknown */
|
9
|
+
/* stylelint-disable max-nesting-depth */
|
10
|
+
|
11
|
+
// Standard imports.
|
12
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
13
|
+
@use '../../global/styles/mixins';
|
14
|
+
|
15
|
+
@use '@carbon/layout/scss/convert' as *;
|
16
|
+
@use '@carbon/styles/scss/spacing' as *;
|
17
|
+
@use '@carbon/styles/scss/theme' as *;
|
18
|
+
@use '@carbon/styles/scss/type';
|
19
|
+
|
20
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
21
|
+
$block-class: #{c4p-settings.$pkg-prefix}--filter-panel-accordion-item;
|
22
|
+
$carbon: #{c4p-settings.$carbon-prefix};
|
23
|
+
|
24
|
+
// Remove top and bottom borders.
|
25
|
+
html .#{$block-class} {
|
26
|
+
border-block-start: 0;
|
27
|
+
}
|
28
|
+
html .#{$block-class}:last-child {
|
29
|
+
border-block-end: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
// Override Carbon Accordion Item styling
|
33
|
+
html .#{$block-class} .#{$carbon}--accordion__wrapper {
|
34
|
+
padding-block: 0;
|
35
|
+
}
|
36
|
+
html .#{$block-class} .#{$carbon}--accordion__heading {
|
37
|
+
min-block-size: 2rem;
|
38
|
+
padding-inline-end: 0;
|
39
|
+
}
|
40
|
+
html .#{$block-class} .#{$carbon}--accordion__title {
|
41
|
+
width: 100%;
|
42
|
+
// 100% - the space taken up by the expand/collapse icon.
|
43
|
+
max-width: calc(100% - $spacing-07);
|
44
|
+
margin-inline-end: 0;
|
45
|
+
}
|
46
|
+
html .#{$block-class} .#{$carbon}--accordion__content {
|
47
|
+
padding-inline-end: 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
// Override Filter Panel Label
|
51
|
+
.#{$block-class} .#{c4p-settings.$pkg-prefix}--filter-panel-label__text {
|
52
|
+
@include type.type-style('body-01');
|
53
|
+
}
|
54
|
+
.#{$block-class} .#{c4p-settings.$pkg-prefix}--filter-panel-label__count {
|
55
|
+
@include type.type-style('label-01');
|
56
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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 function-no-unknown */
|
9
|
+
/* stylelint-disable max-nesting-depth */
|
10
|
+
|
11
|
+
// Standard imports.
|
12
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
13
|
+
@use '../../global/styles/mixins';
|
14
|
+
|
15
|
+
@use '@carbon/styles/scss/colors' as *;
|
16
|
+
@use '@carbon/layout/scss/convert' as *;
|
17
|
+
@use '@carbon/styles/scss/spacing' as *;
|
18
|
+
@use '@carbon/styles/scss/theme' as *;
|
19
|
+
|
20
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
21
|
+
$block-class: #{c4p-settings.$pkg-prefix}--filter-panel-checkbox-with-overflow;
|
22
|
+
$carbon: #{c4p-settings.$carbon-prefix};
|
23
|
+
|
24
|
+
.#{$block-class} {
|
25
|
+
position: relative;
|
26
|
+
}
|
27
|
+
.#{$block-class}--open,
|
28
|
+
.#{$block-class}:hover,
|
29
|
+
.#{$block-class}:focus-within {
|
30
|
+
background-color: $field;
|
31
|
+
}
|
32
|
+
|
33
|
+
// Position the menu button via its wrapper, not the button itself.
|
34
|
+
.#{$block-class} .#{$carbon}--overflow-menu__wrapper {
|
35
|
+
position: absolute;
|
36
|
+
top: 0;
|
37
|
+
right: 0;
|
38
|
+
}
|
39
|
+
// Size the menu button.
|
40
|
+
.#{$block-class} .#{$block-class}__overflow-button {
|
41
|
+
width: $spacing-06;
|
42
|
+
background-color: $layer;
|
43
|
+
block-size: $spacing-06;
|
44
|
+
min-block-size: $spacing-06;
|
45
|
+
}
|
46
|
+
|
47
|
+
// OverflowMenu <li>
|
48
|
+
.#{$block-class}__overflow-options .#{$carbon}--overflow-menu-options__option {
|
49
|
+
height: $spacing-06;
|
50
|
+
}
|
51
|
+
// OverflowMenu <button>
|
52
|
+
.#{$block-class}__overflow-options .#{$carbon}--overflow-menu-options__btn {
|
53
|
+
max-width: none;
|
54
|
+
justify-content: flex-end;
|
55
|
+
}
|
56
|
+
// SIZE FIX: This element is being used to "erase" the drop shadow
|
57
|
+
// created by the menu items overtop the menu button.
|
58
|
+
.#{$block-class}__overflow-options.#{$carbon}--overflow-menu-options[data-floating-menu-direction='bottom']:not(
|
59
|
+
.#{$carbon}--breadcrumb-menu-options
|
60
|
+
)::after {
|
61
|
+
inline-size: $spacing-06;
|
62
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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 max-nesting-depth */
|
9
|
+
|
10
|
+
// Standard imports.
|
11
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
12
|
+
@use '../../global/styles/mixins';
|
13
|
+
|
14
|
+
@use '@carbon/layout/scss/convert' as *;
|
15
|
+
@use '@carbon/styles/scss/spacing' as *;
|
16
|
+
@use '@carbon/styles/scss/type';
|
17
|
+
|
18
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
19
|
+
$block-class: #{c4p-settings.$pkg-prefix}--filter-panel-checkbox;
|
20
|
+
$label: #{c4p-settings.$pkg-prefix}--filter-panel-label;
|
21
|
+
$carbon: #{c4p-settings.$carbon-prefix};
|
22
|
+
|
23
|
+
// UNDO Carbon's concept that a Checkbox is always a list item (":last-of-type").
|
24
|
+
// This also allows the TruncatedList to calculate the correct height for expanding/collapsing the list.
|
25
|
+
.#{$block-class}.#{$carbon}--form-item.#{$carbon}--checkbox-wrapper,
|
26
|
+
.#{$block-class}.#{$carbon}--form-item.#{$carbon}--checkbox-wrapper:last-of-type {
|
27
|
+
margin-block-end: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
// Surround a checkbox's count with parentheses.
|
31
|
+
.#{$block-class}
|
32
|
+
.#{c4p-settings.$pkg-prefix}--filter-panel-label__count::before {
|
33
|
+
content: '(';
|
34
|
+
}
|
35
|
+
.#{$block-class}
|
36
|
+
.#{c4p-settings.$pkg-prefix}--filter-panel-label__count::after {
|
37
|
+
content: ')';
|
38
|
+
}
|
39
|
+
|
40
|
+
.#{$block-class} .#{$carbon}--checkbox-label,
|
41
|
+
.#{$block-class} .#{$carbon}--checkbox-label-text {
|
42
|
+
// Set Carbon's Checkbox label to 100% the width of the filter panel.
|
43
|
+
width: 100%;
|
44
|
+
// Match height to the "checkbox with overflow" button.
|
45
|
+
height: $spacing-06;
|
46
|
+
}
|
47
|
+
|
48
|
+
.#{$block-class} .#{$label}__text {
|
49
|
+
@include type.type-style('body-compact-01');
|
50
|
+
}
|
51
|
+
|
52
|
+
.#{$block-class} .#{$label}__count {
|
53
|
+
@include type.type-style('label-01');
|
54
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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 function-no-unknown */
|
9
|
+
/* stylelint-disable max-nesting-depth */
|
10
|
+
|
11
|
+
// Standard imports.
|
12
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
13
|
+
@use '../../global/styles/mixins';
|
14
|
+
|
15
|
+
@use '@carbon/layout/scss/convert' as *;
|
16
|
+
@use '@carbon/styles/scss/spacing' as *;
|
17
|
+
@use '@carbon/styles/scss/theme' as *;
|
18
|
+
@use '@carbon/styles/scss/type';
|
19
|
+
|
20
|
+
// FilterPanel uses the following Carbon for IBM Products components:
|
21
|
+
// TODO: @use(s) of IBM Products component styles used by FilterPanel
|
22
|
+
|
23
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
24
|
+
$block-class: #{c4p-settings.$pkg-prefix}--filter-panel-group;
|
25
|
+
|
26
|
+
.#{$block-class} {
|
27
|
+
padding-top: $spacing-04;
|
28
|
+
border-top: to-rem(1px) solid $border-subtle;
|
29
|
+
margin-top: $spacing-04;
|
30
|
+
margin-bottom: $spacing-04;
|
31
|
+
}
|
32
|
+
|
33
|
+
.#{$block-class}__title {
|
34
|
+
@include type.type-style('label-01');
|
35
|
+
@include type.font-weight('semibold');
|
36
|
+
|
37
|
+
margin-top: 0;
|
38
|
+
margin-bottom: $spacing-04;
|
39
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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 max-nesting-depth */
|
9
|
+
|
10
|
+
// Standard imports.
|
11
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
12
|
+
@use '../../global/styles/mixins';
|
13
|
+
|
14
|
+
@use '@carbon/styles/scss/spacing' as *;
|
15
|
+
@use '@carbon/styles/scss/theme' as *;
|
16
|
+
@use '@carbon/styles/scss/type';
|
17
|
+
|
18
|
+
// FilterPanel uses the following Carbon for IBM Products components:
|
19
|
+
// TODO: @use(s) of IBM Products component styles used by FilterPanel
|
20
|
+
|
21
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
22
|
+
$block-class: #{c4p-settings.$pkg-prefix}--filter-panel-label;
|
23
|
+
|
24
|
+
.#{$block-class} {
|
25
|
+
display: flex;
|
26
|
+
align-items: center;
|
27
|
+
}
|
28
|
+
|
29
|
+
.#{$block-class}__text {
|
30
|
+
overflow: hidden;
|
31
|
+
flex: 1 1;
|
32
|
+
text-overflow: ellipsis;
|
33
|
+
white-space: nowrap;
|
34
|
+
}
|
35
|
+
|
36
|
+
.#{$block-class}__count {
|
37
|
+
margin-left: $spacing-04;
|
38
|
+
color: $text-secondary;
|
39
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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 max-nesting-depth */
|
9
|
+
|
10
|
+
// Standard imports.
|
11
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
12
|
+
@use '../../global/styles/mixins';
|
13
|
+
|
14
|
+
@use '@carbon/styles/scss/spacing' as *;
|
15
|
+
@use '@carbon/styles/scss/theme' as *;
|
16
|
+
@use '@carbon/styles/scss/type';
|
17
|
+
|
18
|
+
// FilterPanel uses the following Carbon for IBM Products components:
|
19
|
+
// TODO: @use(s) of IBM Products component styles used by FilterPanel
|
20
|
+
@use '../TruncatedList';
|
21
|
+
|
22
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
23
|
+
$block-class: #{c4p-settings.$pkg-prefix}--filter-panel;
|
24
|
+
$carbon: #{c4p-settings.$carbon-prefix};
|
25
|
+
|
26
|
+
.#{$block-class}__title {
|
27
|
+
@include type.type-style('body-compact-01');
|
28
|
+
|
29
|
+
margin-top: $spacing-04;
|
30
|
+
margin-bottom: $spacing-04;
|
31
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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
|
+
@use './carbon-imports';
|
9
|
+
@use './filter-panel';
|
10
|
+
@use './filter-panel-accordion';
|
11
|
+
@use './filter-panel-accordion-item';
|
12
|
+
@use './filter-panel-checkbox';
|
13
|
+
@use './filter-panel-checkbox-with-overflow';
|
14
|
+
@use './filter-panel-group';
|
15
|
+
@use './filter-panel-label';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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
|
+
@use './filter-panel';
|
9
|
+
@use './filter-panel-accordion';
|
10
|
+
@use './filter-panel-accordion-item';
|
11
|
+
@use './filter-panel-checkbox';
|
12
|
+
@use './filter-panel-checkbox-with-overflow';
|
13
|
+
@use './filter-panel-group';
|
14
|
+
@use './filter-panel-label';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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
|
+
// Import any Carbon component styles used from ScrollGradient in this file.
|
9
|
+
// ScrollGradient uses the following Carbon components:
|
@@ -0,0 +1,102 @@
|
|
1
|
+
//
|
2
|
+
// Copyright IBM Corp. 2024, 2024
|
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
|
+
// Standard imports.
|
9
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
10
|
+
@use '../../global/styles/mixins';
|
11
|
+
@use '@carbon/styles/scss/motion' as *;
|
12
|
+
@use '@carbon/styles/scss/spacing' as *;
|
13
|
+
|
14
|
+
$block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
|
15
|
+
|
16
|
+
.#{$block-class} {
|
17
|
+
position: relative;
|
18
|
+
display: flex;
|
19
|
+
width: inherit;
|
20
|
+
height: inherit;
|
21
|
+
align-items: stretch;
|
22
|
+
justify-content: stretch;
|
23
|
+
}
|
24
|
+
.#{$block-class}__content {
|
25
|
+
overflow: auto;
|
26
|
+
width: 100%;
|
27
|
+
height: inherit;
|
28
|
+
}
|
29
|
+
|
30
|
+
.#{$block-class}__content-children {
|
31
|
+
width: 100%;
|
32
|
+
height: 100%;
|
33
|
+
}
|
34
|
+
// All gradients
|
35
|
+
.#{$block-class}__start-vertical,
|
36
|
+
.#{$block-class}__start-horizontal,
|
37
|
+
.#{$block-class}__end-vertical,
|
38
|
+
.#{$block-class}__end-horizontal {
|
39
|
+
position: absolute;
|
40
|
+
z-index: 1;
|
41
|
+
display: none;
|
42
|
+
pointer-events: none;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Vertical start
|
46
|
+
.#{$block-class}--y-scrollable .#{$block-class}__start-vertical {
|
47
|
+
top: 0;
|
48
|
+
left: 0;
|
49
|
+
height: $spacing-09;
|
50
|
+
}
|
51
|
+
// Vertical end
|
52
|
+
.#{$block-class}--y-scrollable .#{$block-class}__end-vertical {
|
53
|
+
bottom: 0;
|
54
|
+
left: 0;
|
55
|
+
height: $spacing-09;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Horizontal start
|
59
|
+
.#{$block-class}--x-scrollable .#{$block-class}__start-horizontal {
|
60
|
+
top: 0;
|
61
|
+
left: 0;
|
62
|
+
width: $spacing-09;
|
63
|
+
}
|
64
|
+
|
65
|
+
// Horizontal end
|
66
|
+
.#{$block-class}--x-scrollable .#{$block-class}__end-horizontal {
|
67
|
+
top: 0;
|
68
|
+
right: 0;
|
69
|
+
width: $spacing-09;
|
70
|
+
}
|
71
|
+
|
72
|
+
// Vertical start states
|
73
|
+
.#{$block-class}--y-started.#{$block-class}--y-scrollable
|
74
|
+
.#{$block-class}__start-vertical,
|
75
|
+
.#{$block-class}--y-end.#{$block-class}--y-scrollable
|
76
|
+
.#{$block-class}__start-vertical {
|
77
|
+
display: block;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Vertical end states
|
81
|
+
.#{$block-class}--y-initial.#{$block-class}--y-scrollable
|
82
|
+
.#{$block-class}__end-vertical,
|
83
|
+
.#{$block-class}--y-started.#{$block-class}--y-scrollable
|
84
|
+
.#{$block-class}__end-vertical {
|
85
|
+
display: block;
|
86
|
+
}
|
87
|
+
|
88
|
+
// Horizontal start states
|
89
|
+
.#{$block-class}--x-started.#{$block-class}--x-scrollable
|
90
|
+
.#{$block-class}__start-horizontal,
|
91
|
+
.#{$block-class}--x-end.#{$block-class}--x-scrollable
|
92
|
+
.#{$block-class}__start-horizontal {
|
93
|
+
display: block;
|
94
|
+
}
|
95
|
+
|
96
|
+
// Horizontal end states
|
97
|
+
.#{$block-class}--x-initial.#{$block-class}--x-scrollable
|
98
|
+
.#{$block-class}__end-horizontal,
|
99
|
+
.#{$block-class}--x-started.#{$block-class}--x-scrollable
|
100
|
+
.#{$block-class}__end-horizontal {
|
101
|
+
display: block;
|
102
|
+
}
|
@@ -75,13 +75,46 @@ $sizes: (
|
|
75
75
|
background-color: $color;
|
76
76
|
}
|
77
77
|
|
78
|
-
|
79
|
-
|
78
|
+
@mixin setLightBg($order, $color) {
|
79
|
+
.#{$carbon-prefix}--g10 .#{$block-class}--#{$order},
|
80
|
+
.#{$carbon-prefix}--white .#{$block-class}--#{$order} {
|
81
|
+
@include setBgColor($color);
|
82
|
+
}
|
80
83
|
}
|
81
84
|
|
82
|
-
|
83
|
-
|
85
|
+
@mixin setDarkBg($order, $color) {
|
86
|
+
.#{$carbon-prefix}--g90 .#{$block-class}--#{$order},
|
87
|
+
.#{$carbon-prefix}--g100 .#{$block-class}--#{$order} {
|
88
|
+
@include setBgColor($color);
|
89
|
+
}
|
84
90
|
}
|
91
|
+
|
92
|
+
@include setLightBg(order-1-cyan, $cyan-60);
|
93
|
+
@include setLightBg(order-2-gray, $gray-60);
|
94
|
+
@include setLightBg(order-3-green, $green-60);
|
95
|
+
@include setLightBg(order-4-magenta, $magenta-60);
|
96
|
+
@include setLightBg(order-5-purple, $purple-60);
|
97
|
+
@include setLightBg(order-6-teal, $teal-60);
|
98
|
+
@include setLightBg(order-7-cyan, $cyan-80);
|
99
|
+
@include setLightBg(order-8-gray, $gray-80);
|
100
|
+
@include setLightBg(order-9-green, $green-80);
|
101
|
+
@include setLightBg(order-10-magenta, $magenta-80);
|
102
|
+
@include setLightBg(order-11-purple, $purple-80);
|
103
|
+
@include setLightBg(order-12-teal, $teal-80);
|
104
|
+
|
105
|
+
@include setDarkBg(order-1-cyan, $cyan-50);
|
106
|
+
@include setDarkBg(order-2-gray, $gray-50);
|
107
|
+
@include setDarkBg(order-3-green, $green-50);
|
108
|
+
@include setDarkBg(order-4-magenta, $magenta-50);
|
109
|
+
@include setDarkBg(order-5-purple, $purple-50);
|
110
|
+
@include setDarkBg(order-6-teal, $teal-50);
|
111
|
+
@include setDarkBg(order-7-cyan, $cyan-30);
|
112
|
+
@include setDarkBg(order-8-gray, $gray-30);
|
113
|
+
@include setDarkBg(order-9-green, $green-30);
|
114
|
+
@include setDarkBg(order-10-magenta, $magenta-30);
|
115
|
+
@include setDarkBg(order-11-purple, $purple-30);
|
116
|
+
@include setDarkBg(order-12-teal, $teal-30);
|
117
|
+
|
85
118
|
.#{$block-class}--xl {
|
86
119
|
@include size('xl');
|
87
120
|
@include type.type-style('heading-04');
|
@@ -70,4 +70,6 @@
|
|
70
70
|
@use './Nav/index-with-carbon' as *;
|
71
71
|
@use './StringFormatter/index-with-carbon' as *;
|
72
72
|
@use './UserAvatar/index-with-carbon' as *;
|
73
|
+
@use './ScrollGradient/index-with-carbon' as *;
|
73
74
|
@use './StatusIndicator/index-with-carbon' as *;
|
75
|
+
@use './FilterPanel/index-with-carbon' as *;
|