@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
@@ -35,298 +35,300 @@ _Status icons_ are an important method of communicating severity level
|
|
35
35
|
information to users. The shapes and colors, communicate severity that enable
|
36
36
|
users to quickly assess and identify status and respond accordingly.
|
37
37
|
*/
|
38
|
-
|
38
|
+
|
39
|
+
exports.StatusIcon = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
39
40
|
var _icons$kind;
|
40
|
-
var kind =
|
41
|
-
theme =
|
42
|
-
size =
|
43
|
-
className =
|
44
|
-
iconDescription =
|
45
|
-
rest = _rollupPluginBabelHelpers.objectWithoutProperties(
|
41
|
+
var kind = _ref2.kind,
|
42
|
+
theme = _ref2.theme,
|
43
|
+
size = _ref2.size,
|
44
|
+
className = _ref2.className,
|
45
|
+
iconDescription = _ref2.iconDescription,
|
46
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded);
|
47
|
+
var forwardedRef = ref;
|
46
48
|
var icons$1 = {
|
47
49
|
fatal: {
|
48
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
50
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
49
51
|
return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
|
50
52
|
size: 16,
|
51
|
-
ref:
|
53
|
+
ref: forwardedRef
|
52
54
|
}, props));
|
53
55
|
}),
|
54
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
56
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
55
57
|
return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
|
56
58
|
size: 20,
|
57
|
-
ref:
|
59
|
+
ref: forwardedRef
|
58
60
|
}, props));
|
59
61
|
}),
|
60
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
62
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
61
63
|
return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
|
62
64
|
size: 24,
|
63
|
-
ref:
|
65
|
+
ref: forwardedRef
|
64
66
|
}, props));
|
65
67
|
}),
|
66
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
68
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
67
69
|
return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
|
68
70
|
size: 32,
|
69
|
-
ref:
|
71
|
+
ref: forwardedRef
|
70
72
|
}, props));
|
71
73
|
})
|
72
74
|
},
|
73
75
|
critical: {
|
74
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
76
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
75
77
|
return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
|
76
78
|
size: 16,
|
77
|
-
ref:
|
79
|
+
ref: forwardedRef
|
78
80
|
}, props));
|
79
81
|
}),
|
80
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
82
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
81
83
|
return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
|
82
84
|
size: 20,
|
83
|
-
ref:
|
85
|
+
ref: forwardedRef
|
84
86
|
}, props));
|
85
87
|
}),
|
86
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
88
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
87
89
|
return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
|
88
90
|
size: 24,
|
89
|
-
ref:
|
91
|
+
ref: forwardedRef
|
90
92
|
}, props));
|
91
93
|
}),
|
92
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
94
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
93
95
|
return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
|
94
96
|
size: 32,
|
95
|
-
ref:
|
97
|
+
ref: forwardedRef
|
96
98
|
}, props));
|
97
99
|
})
|
98
100
|
},
|
99
101
|
'major-warning': {
|
100
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
102
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
101
103
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
|
102
104
|
size: 16,
|
103
|
-
ref:
|
105
|
+
ref: forwardedRef
|
104
106
|
}, props));
|
105
107
|
}),
|
106
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
108
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
107
109
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
|
108
110
|
size: 20,
|
109
|
-
ref:
|
111
|
+
ref: forwardedRef
|
110
112
|
}, props));
|
111
113
|
}),
|
112
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
114
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
113
115
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
|
114
116
|
size: 24,
|
115
|
-
ref:
|
117
|
+
ref: forwardedRef
|
116
118
|
}, props));
|
117
119
|
}),
|
118
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
120
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
119
121
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
|
120
122
|
size: 32,
|
121
|
-
ref:
|
123
|
+
ref: forwardedRef
|
122
124
|
}, props));
|
123
125
|
})
|
124
126
|
},
|
125
127
|
'minor-warning': {
|
126
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
128
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
127
129
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
|
128
130
|
size: 16,
|
129
|
-
ref:
|
131
|
+
ref: forwardedRef
|
130
132
|
}, props));
|
131
133
|
}),
|
132
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
134
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
133
135
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
|
134
136
|
size: 20,
|
135
|
-
ref:
|
137
|
+
ref: forwardedRef
|
136
138
|
}, props));
|
137
139
|
}),
|
138
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
140
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
139
141
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
|
140
142
|
size: 24,
|
141
|
-
ref:
|
143
|
+
ref: forwardedRef
|
142
144
|
}, props));
|
143
145
|
}),
|
144
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
146
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
145
147
|
return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
|
146
148
|
size: 32,
|
147
|
-
ref:
|
149
|
+
ref: forwardedRef
|
148
150
|
}, props));
|
149
151
|
})
|
150
152
|
},
|
151
153
|
undefined: {
|
152
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
154
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
153
155
|
return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
|
154
156
|
size: 16,
|
155
|
-
ref:
|
157
|
+
ref: forwardedRef
|
156
158
|
}, props));
|
157
159
|
}),
|
158
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
160
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
159
161
|
return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
|
160
162
|
size: 20,
|
161
|
-
ref:
|
163
|
+
ref: forwardedRef
|
162
164
|
}, props));
|
163
165
|
}),
|
164
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
166
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
165
167
|
return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
|
166
168
|
size: 24,
|
167
|
-
ref:
|
169
|
+
ref: forwardedRef
|
168
170
|
}, props));
|
169
171
|
}),
|
170
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
172
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
171
173
|
return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
|
172
174
|
size: 32,
|
173
|
-
ref:
|
175
|
+
ref: forwardedRef
|
174
176
|
}, props));
|
175
177
|
})
|
176
178
|
},
|
177
179
|
unknown: {
|
178
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
180
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
179
181
|
return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
|
180
182
|
size: 16,
|
181
|
-
ref:
|
183
|
+
ref: forwardedRef
|
182
184
|
}, props));
|
183
185
|
}),
|
184
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
186
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
185
187
|
return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
|
186
188
|
size: 20,
|
187
|
-
ref:
|
189
|
+
ref: forwardedRef
|
188
190
|
}, props));
|
189
191
|
}),
|
190
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
192
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
191
193
|
return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
|
192
194
|
size: 24,
|
193
|
-
ref:
|
195
|
+
ref: forwardedRef
|
194
196
|
}, props));
|
195
197
|
}),
|
196
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
198
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
197
199
|
return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
|
198
200
|
size: 32,
|
199
|
-
ref:
|
201
|
+
ref: forwardedRef
|
200
202
|
}, props));
|
201
203
|
})
|
202
204
|
},
|
203
205
|
normal: {
|
204
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
206
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
205
207
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
|
206
208
|
size: 16,
|
207
|
-
ref:
|
209
|
+
ref: forwardedRef
|
208
210
|
}, props));
|
209
211
|
}),
|
210
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
212
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
211
213
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
|
212
214
|
size: 20,
|
213
|
-
ref:
|
215
|
+
ref: forwardedRef
|
214
216
|
}, props));
|
215
217
|
}),
|
216
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
218
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
217
219
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
|
218
220
|
size: 24,
|
219
|
-
ref:
|
221
|
+
ref: forwardedRef
|
220
222
|
}, props));
|
221
223
|
}),
|
222
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
224
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
223
225
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
|
224
226
|
size: 32,
|
225
|
-
ref:
|
227
|
+
ref: forwardedRef
|
226
228
|
}, props));
|
227
229
|
})
|
228
230
|
},
|
229
231
|
info: {
|
230
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
232
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
231
233
|
return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
|
232
234
|
size: 16,
|
233
|
-
ref:
|
235
|
+
ref: forwardedRef
|
234
236
|
}, props));
|
235
237
|
}),
|
236
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
238
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
237
239
|
return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
|
238
240
|
size: 20,
|
239
|
-
ref:
|
241
|
+
ref: forwardedRef
|
240
242
|
}, props));
|
241
243
|
}),
|
242
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
244
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
243
245
|
return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
|
244
246
|
size: 24,
|
245
|
-
ref:
|
247
|
+
ref: forwardedRef
|
246
248
|
}, props));
|
247
249
|
}),
|
248
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
250
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
249
251
|
return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
|
250
252
|
size: 32,
|
251
|
-
ref:
|
253
|
+
ref: forwardedRef
|
252
254
|
}, props));
|
253
255
|
})
|
254
256
|
},
|
255
257
|
'in-progress': {
|
256
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
258
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
257
259
|
return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
|
258
260
|
size: 16,
|
259
|
-
ref:
|
261
|
+
ref: forwardedRef
|
260
262
|
}, props));
|
261
263
|
}),
|
262
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
264
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
263
265
|
return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
|
264
266
|
size: 20,
|
265
|
-
ref:
|
267
|
+
ref: forwardedRef
|
266
268
|
}, props));
|
267
269
|
}),
|
268
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
270
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
269
271
|
return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
|
270
272
|
size: 24,
|
271
|
-
ref:
|
273
|
+
ref: forwardedRef
|
272
274
|
}, props));
|
273
275
|
}),
|
274
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
276
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
275
277
|
return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
|
276
278
|
size: 32,
|
277
|
-
ref:
|
279
|
+
ref: forwardedRef
|
278
280
|
}, props));
|
279
281
|
})
|
280
282
|
},
|
281
283
|
running: {
|
282
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
284
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
283
285
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
|
284
286
|
size: 16,
|
285
|
-
ref:
|
287
|
+
ref: forwardedRef
|
286
288
|
}, props));
|
287
289
|
}),
|
288
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
290
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
289
291
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
|
290
292
|
size: 20,
|
291
|
-
ref:
|
293
|
+
ref: forwardedRef
|
292
294
|
}, props));
|
293
295
|
}),
|
294
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
296
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
295
297
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
|
296
298
|
size: 24,
|
297
|
-
ref:
|
299
|
+
ref: forwardedRef
|
298
300
|
}, props));
|
299
301
|
}),
|
300
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
302
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
301
303
|
return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
|
302
304
|
size: 32,
|
303
|
-
ref:
|
305
|
+
ref: forwardedRef
|
304
306
|
}, props));
|
305
307
|
})
|
306
308
|
},
|
307
309
|
pending: {
|
308
|
-
sm: /*#__PURE__*/React.forwardRef(function (props,
|
310
|
+
sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
309
311
|
return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
|
310
312
|
size: 16,
|
311
|
-
ref:
|
313
|
+
ref: forwardedRef
|
312
314
|
}, props));
|
313
315
|
}),
|
314
|
-
md: /*#__PURE__*/React.forwardRef(function (props,
|
316
|
+
md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
315
317
|
return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
|
316
318
|
size: 20,
|
317
|
-
ref:
|
319
|
+
ref: forwardedRef
|
318
320
|
}, props));
|
319
321
|
}),
|
320
|
-
lg: /*#__PURE__*/React.forwardRef(function (props,
|
322
|
+
lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
321
323
|
return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
|
322
324
|
size: 24,
|
323
|
-
ref:
|
325
|
+
ref: forwardedRef
|
324
326
|
}, props));
|
325
327
|
}),
|
326
|
-
xl: /*#__PURE__*/React.forwardRef(function (props,
|
328
|
+
xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
|
327
329
|
return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
|
328
330
|
size: 32,
|
329
|
-
ref:
|
331
|
+
ref: forwardedRef
|
330
332
|
}, props));
|
331
333
|
})
|
332
334
|
}
|
@@ -149,7 +149,15 @@ var TearsheetShell = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
149
149
|
firstElement === null || firstElement === void 0 || firstElement.focus();
|
150
150
|
}, 0);
|
151
151
|
}
|
152
|
-
|
152
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
153
|
+
}, [open]);
|
154
|
+
React.useEffect(function () {
|
155
|
+
if (open && position !== depth) {
|
156
|
+
setTimeout(function () {
|
157
|
+
firstElement === null || firstElement === void 0 || firstElement.focus();
|
158
|
+
}, 0);
|
159
|
+
}
|
160
|
+
}, [position, depth, firstElement, open]);
|
153
161
|
React.useEffect(function () {
|
154
162
|
var notify = function notify() {
|
155
163
|
return stack.all.forEach(function (handler) {
|
@@ -1,3 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2021, 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
|
+
import React, { ReactNode } from 'react';
|
8
|
+
interface ToolbarGroupProps {
|
9
|
+
/** Provide the content of the `ToolbarGroup` */
|
10
|
+
children?: ReactNode;
|
11
|
+
/** Provide an optional class to be applied to the containing node */
|
12
|
+
className?: string;
|
13
|
+
}
|
1
14
|
/** Toolbar groups organize the commands within a toolbar into related groups. */
|
2
|
-
export let ToolbarGroup: React.ForwardRefExoticComponent<
|
3
|
-
|
15
|
+
export declare let ToolbarGroup: React.ForwardRefExoticComponent<ToolbarGroupProps & {
|
16
|
+
children?: React.ReactNode;
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
18
|
+
export {};
|
@@ -22,7 +22,6 @@ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
23
23
|
|
24
24
|
var _excluded = ["className", "children"];
|
25
|
-
|
26
25
|
/** Toolbar groups organize the commands within a toolbar into related groups. */
|
27
26
|
exports.ToolbarGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
28
27
|
var className = _ref.className,
|
@@ -97,9 +97,11 @@ exports.TruncatedList = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
97
97
|
var items = listRef.current.childNodes;
|
98
98
|
var _listHeight = 0;
|
99
99
|
for (var index = 0; index < numItemsToShow; index++) {
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
if (items[index]) {
|
101
|
+
var _window;
|
102
|
+
var height = ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(items[index])) === null || _window === void 0 ? void 0 : _window.height) || 16;
|
103
|
+
_listHeight += parseInt(height);
|
104
|
+
}
|
103
105
|
}
|
104
106
|
setListHeight(_listHeight);
|
105
107
|
}
|
@@ -123,7 +123,8 @@ exports.UserAvatar = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
123
123
|
// example: [`${blockClass}__here-if-small`]: size === 'sm',
|
124
124
|
}),
|
125
125
|
ref: ref,
|
126
|
-
role: "img"
|
126
|
+
role: "img",
|
127
|
+
"aria-hidden": "true"
|
127
128
|
}, devtools.getDevtoolsProps(componentName)), getItem());
|
128
129
|
};
|
129
130
|
if (tooltipText) {
|
@@ -150,7 +151,7 @@ exports.UserAvatar.propTypes = {
|
|
150
151
|
/**
|
151
152
|
* Provide the background color need to be set for UserAvatar.
|
152
153
|
*/
|
153
|
-
backgroundColor: index["default"].oneOf(['
|
154
|
+
backgroundColor: index["default"].oneOf(['order-1-cyan', 'order-2-gray', 'order-3-green', 'order-4-magenta', 'order-5-purple', 'order-6-teal', 'order-7-cyan', 'order-8-gray', 'order-9-green', 'order-10-magenta', 'order-11-purple', 'order-12-teal']),
|
154
155
|
/**
|
155
156
|
* Provide an optional class to be applied to the containing node.
|
156
157
|
*/
|
@@ -44,13 +44,14 @@ export { Decorator } from "./Decorator";
|
|
44
44
|
export { DecoratorLink } from "./DecoratorLink";
|
45
45
|
export { DecoratorSingleButton } from "./DecoratorSingleButton";
|
46
46
|
export { DecoratorDualButton } from "./DecoratorDualButton";
|
47
|
-
export { DescriptionList } from "./DescriptionList";
|
48
47
|
export { FullPageError } from "./FullPageError";
|
49
48
|
export { SearchBar } from "./SearchBar";
|
50
49
|
export { Nav } from "./Nav";
|
51
50
|
export { StringFormatter } from "./StringFormatter";
|
52
51
|
export { UserAvatar } from "./UserAvatar";
|
52
|
+
export { ScrollGradient } from "./ScrollGradient";
|
53
53
|
export { StatusIndicator } from "./StatusIndicator";
|
54
|
+
export { ActionBar } from "./ActionBar";
|
54
55
|
export { ComboButton, ComboButtonItem } from "./ComboButton";
|
55
56
|
export { CreateFullPage, CreateFullPageStep } from "./CreateFullPage";
|
56
57
|
export { CreateTearsheet, CreateTearsheetStep, CreateTearsheetDivider } from "./CreateTearsheet";
|
@@ -63,3 +64,5 @@ export { Datagrid, useDatagrid, useInfiniteScroll, useNestedRows, useSelectRows,
|
|
63
64
|
export { EditTearsheet, EditTearsheetForm } from "./EditTearsheet";
|
64
65
|
export { Guidebanner, GuidebannerElement, GuidebannerElementButton, GuidebannerElementLink } from "./Guidebanner";
|
65
66
|
export { InlineTip, InlineTipButton, InlineTipLink } from "./InlineTip";
|
67
|
+
export { DescriptionList, DescriptionListBody, DescriptionListCell, DescriptionListRow } from "./DescriptionList";
|
68
|
+
export { FilterPanel, FilterPanelAccordion, FilterPanelAccordionItem, FilterPanelCheckbox, FilterPanelCheckboxWithOverflow, FilterPanelGroup, FilterPanelLabel } from "./FilterPanel";
|
@@ -31,10 +31,17 @@ var useFocus = function useFocus(modalRef) {
|
|
31
31
|
var query = "".concat(queryButton, ",").concat(queryLink, ",").concat(queryInput, ",").concat(querySelect, ",").concat(queryTextarea, ", ").concat(queryTabIndex);
|
32
32
|
var modalEl = modalRef === null || modalRef === void 0 ? void 0 : modalRef.current;
|
33
33
|
var getFocusable = React.useCallback(function () {
|
34
|
+
var _focusableElements, _focusableElements2, _focusableElements3, _focusableElements4;
|
34
35
|
// Selecting all focusable elements based on the above conditions
|
35
36
|
var focusableElements = modalEl === null || modalEl === void 0 ? void 0 : modalEl.querySelectorAll("".concat(query));
|
36
|
-
|
37
|
-
|
37
|
+
if ((_focusableElements = focusableElements) !== null && _focusableElements !== void 0 && _focusableElements.length) {
|
38
|
+
focusableElements = Array.prototype.filter.call(focusableElements, function (el) {
|
39
|
+
var _window;
|
40
|
+
return ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(el)) === null || _window === void 0 ? void 0 : _window.display) !== 'none';
|
41
|
+
});
|
42
|
+
}
|
43
|
+
var first = (_focusableElements2 = focusableElements) === null || _focusableElements2 === void 0 ? void 0 : _focusableElements2[0];
|
44
|
+
var last = (_focusableElements3 = focusableElements) === null || _focusableElements3 === void 0 ? void 0 : _focusableElements3[((_focusableElements4 = focusableElements) === null || _focusableElements4 === void 0 ? void 0 : _focusableElements4.length) - 1];
|
38
45
|
var all = focusableElements;
|
39
46
|
return {
|
40
47
|
first: first,
|
@@ -80,9 +80,18 @@ declare namespace defaults {
|
|
80
80
|
let TruncatedList: boolean;
|
81
81
|
let DelimitedList: boolean;
|
82
82
|
let FullPageError: boolean;
|
83
|
+
let ScrollGradient: boolean;
|
83
84
|
let StringFormatter: boolean;
|
84
85
|
let StatusIndicator: boolean;
|
85
86
|
let StatusIndicatorStep: boolean;
|
87
|
+
let ActionBar: boolean;
|
88
|
+
let FilterPanel: boolean;
|
89
|
+
let FilterPanelAccordion: boolean;
|
90
|
+
let FilterPanelAccordionItem: boolean;
|
91
|
+
let FilterPanelCheckbox: boolean;
|
92
|
+
let FilterPanelCheckboxWithOverflow: boolean;
|
93
|
+
let FilterPanelGroup: boolean;
|
94
|
+
let FilterPanelLabel: boolean;
|
86
95
|
let Coachmark: boolean;
|
87
96
|
let CoachmarkBeacon: boolean;
|
88
97
|
let CoachmarkButton: boolean;
|
@@ -95,6 +104,9 @@ declare namespace defaults {
|
|
95
104
|
let DecoratorSingleButton: boolean;
|
96
105
|
let DecoratorDualButton: boolean;
|
97
106
|
let DescriptionList: boolean;
|
107
|
+
let DescriptionListBody: boolean;
|
108
|
+
let DescriptionListCell: boolean;
|
109
|
+
let DescriptionListRow: boolean;
|
98
110
|
let SearchBar: boolean;
|
99
111
|
let UserAvatar: boolean;
|
100
112
|
let Checklist: boolean;
|
@@ -83,9 +83,18 @@ var defaults = {
|
|
83
83
|
TruncatedList: false,
|
84
84
|
DelimitedList: false,
|
85
85
|
FullPageError: false,
|
86
|
+
ScrollGradient: false,
|
86
87
|
StringFormatter: false,
|
87
88
|
StatusIndicator: false,
|
88
89
|
StatusIndicatorStep: false,
|
90
|
+
ActionBar: false,
|
91
|
+
FilterPanel: false,
|
92
|
+
FilterPanelAccordion: false,
|
93
|
+
FilterPanelAccordionItem: false,
|
94
|
+
FilterPanelCheckbox: false,
|
95
|
+
FilterPanelCheckboxWithOverflow: false,
|
96
|
+
FilterPanelGroup: false,
|
97
|
+
FilterPanelLabel: false,
|
89
98
|
/* new component flags here - comment used by generate CLI */
|
90
99
|
|
91
100
|
// Novice to pro components not yet reviewed and released:
|
@@ -101,6 +110,9 @@ var defaults = {
|
|
101
110
|
DecoratorSingleButton: false,
|
102
111
|
DecoratorDualButton: false,
|
103
112
|
DescriptionList: false,
|
113
|
+
DescriptionListBody: false,
|
114
|
+
DescriptionListCell: false,
|
115
|
+
DescriptionListRow: false,
|
104
116
|
SearchBar: false,
|
105
117
|
UserAvatar: false,
|
106
118
|
/* new component flags here - comment used by generate CLI */
|