@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.
Files changed (178) hide show
  1. package/css/index-full-carbon.css +351 -3
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon.css +351 -3
  6. package/css/index-without-carbon.css.map +1 -1
  7. package/css/index-without-carbon.min.css +1 -1
  8. package/css/index-without-carbon.min.css.map +1 -1
  9. package/css/index.css +351 -3
  10. package/css/index.css.map +1 -1
  11. package/css/index.min.css +1 -1
  12. package/css/index.min.css.map +1 -1
  13. package/es/components/ActionBar/ActionBar.js +8 -1
  14. package/es/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
  15. package/es/components/CreateSidePanel/CreateSidePanel.js +5 -2
  16. package/es/components/CreateTearsheet/CreateTearsheetDivider.d.ts +12 -1
  17. package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
  18. package/es/components/DataSpreadsheet/DataSpreadsheet.js +39 -145
  19. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +60 -112
  20. package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.d.ts +3 -1
  21. package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +10 -3
  22. package/es/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
  23. package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +304 -0
  24. package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
  25. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
  26. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
  27. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
  28. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +6 -2
  29. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
  30. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
  31. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
  32. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
  33. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +5 -5
  34. package/es/components/Datagrid/useRowSize.js +4 -2
  35. package/es/components/DescriptionList/DescriptionList.d.ts +0 -37
  36. package/es/components/DescriptionList/DescriptionList.js +7 -12
  37. package/es/components/DescriptionList/DescriptionListBody.d.ts +2 -0
  38. package/es/components/DescriptionList/DescriptionListBody.js +39 -0
  39. package/es/components/DescriptionList/DescriptionListCell.d.ts +2 -0
  40. package/es/components/DescriptionList/DescriptionListCell.js +39 -0
  41. package/es/components/DescriptionList/DescriptionListRow.d.ts +2 -0
  42. package/es/components/DescriptionList/DescriptionListRow.js +41 -0
  43. package/es/components/DescriptionList/index.d.ts +4 -1
  44. package/es/components/EditSidePanel/EditSidePanel.d.ts +92 -2
  45. package/es/components/EditSidePanel/EditSidePanel.js +8 -10
  46. package/es/components/FilterPanel/FilterPanel.d.ts +5 -0
  47. package/es/components/FilterPanel/FilterPanel.js +55 -0
  48. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
  49. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +83 -0
  50. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
  51. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +94 -0
  52. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
  53. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +80 -0
  54. package/es/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
  55. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
  56. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +157 -0
  57. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
  58. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +72 -0
  59. package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.d.ts +5 -0
  60. package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +63 -0
  61. package/es/components/FilterPanel/FilterPanelLabel/index.d.ts +1 -0
  62. package/es/components/FilterPanel/index.d.ts +7 -0
  63. package/es/components/OptionsTile/OptionsTile.d.ts +77 -3
  64. package/es/components/OptionsTile/OptionsTile.js +9 -20
  65. package/es/components/RemoveModal/RemoveModal.d.ts +81 -7
  66. package/es/components/RemoveModal/RemoveModal.js +1 -0
  67. package/es/components/ScrollGradient/ScrollGradient.d.ts +5 -0
  68. package/es/components/ScrollGradient/ScrollGradient.js +156 -0
  69. package/es/components/ScrollGradient/constants.d.ts +15 -0
  70. package/es/components/ScrollGradient/constants.js +121 -0
  71. package/es/components/ScrollGradient/index.d.ts +1 -0
  72. package/es/components/SidePanel/SidePanel.d.ts +144 -2
  73. package/es/components/SidePanel/SidePanel.js +88 -112
  74. package/es/components/StatusIcon/StatusIcon.d.ts +34 -2
  75. package/es/components/StatusIcon/StatusIcon.js +97 -95
  76. package/es/components/Tearsheet/TearsheetShell.js +9 -1
  77. package/es/components/Toolbar/ToolbarGroup.d.ts +17 -2
  78. package/es/components/Toolbar/ToolbarGroup.js +0 -1
  79. package/es/components/TruncatedList/TruncatedList.js +5 -3
  80. package/es/components/UserAvatar/UserAvatar.js +3 -2
  81. package/es/components/index.d.ts +4 -1
  82. package/es/global/js/hooks/useFocus.js +9 -2
  83. package/es/global/js/package-settings.d.ts +12 -0
  84. package/es/global/js/package-settings.js +12 -0
  85. package/es/index.js +12 -0
  86. package/es/settings.d.ts +12 -0
  87. package/lib/components/ActionBar/ActionBar.js +11 -6
  88. package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
  89. package/lib/components/CreateSidePanel/CreateSidePanel.js +5 -2
  90. package/lib/components/CreateTearsheet/CreateTearsheetDivider.d.ts +12 -1
  91. package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
  92. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +39 -145
  93. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +60 -112
  94. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.d.ts +3 -1
  95. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +9 -2
  96. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
  97. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +311 -0
  98. package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -1
  99. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
  100. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
  101. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
  102. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -1
  103. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
  104. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
  105. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
  106. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
  107. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +5 -5
  108. package/lib/components/Datagrid/useRowSize.js +4 -2
  109. package/lib/components/DescriptionList/DescriptionList.d.ts +0 -37
  110. package/lib/components/DescriptionList/DescriptionList.js +6 -11
  111. package/lib/components/DescriptionList/DescriptionListBody.d.ts +2 -0
  112. package/lib/components/DescriptionList/DescriptionListBody.js +46 -0
  113. package/lib/components/DescriptionList/DescriptionListCell.d.ts +2 -0
  114. package/lib/components/DescriptionList/DescriptionListCell.js +46 -0
  115. package/lib/components/DescriptionList/DescriptionListRow.d.ts +2 -0
  116. package/lib/components/DescriptionList/DescriptionListRow.js +48 -0
  117. package/lib/components/DescriptionList/index.d.ts +4 -1
  118. package/lib/components/EditSidePanel/EditSidePanel.d.ts +92 -2
  119. package/lib/components/EditSidePanel/EditSidePanel.js +8 -10
  120. package/lib/components/FilterPanel/FilterPanel.d.ts +5 -0
  121. package/lib/components/FilterPanel/FilterPanel.js +62 -0
  122. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
  123. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +90 -0
  124. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
  125. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +101 -0
  126. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
  127. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +87 -0
  128. package/lib/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
  129. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
  130. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +164 -0
  131. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
  132. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +79 -0
  133. package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.d.ts +5 -0
  134. package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +70 -0
  135. package/lib/components/FilterPanel/FilterPanelLabel/index.d.ts +1 -0
  136. package/lib/components/FilterPanel/index.d.ts +7 -0
  137. package/lib/components/OptionsTile/OptionsTile.d.ts +77 -3
  138. package/lib/components/OptionsTile/OptionsTile.js +9 -20
  139. package/lib/components/RemoveModal/RemoveModal.d.ts +81 -7
  140. package/lib/components/RemoveModal/RemoveModal.js +1 -0
  141. package/lib/components/ScrollGradient/ScrollGradient.d.ts +5 -0
  142. package/lib/components/ScrollGradient/ScrollGradient.js +163 -0
  143. package/lib/components/ScrollGradient/constants.d.ts +15 -0
  144. package/lib/components/ScrollGradient/constants.js +128 -0
  145. package/lib/components/ScrollGradient/index.d.ts +1 -0
  146. package/lib/components/SidePanel/SidePanel.d.ts +144 -2
  147. package/lib/components/SidePanel/SidePanel.js +88 -112
  148. package/lib/components/StatusIcon/StatusIcon.d.ts +34 -2
  149. package/lib/components/StatusIcon/StatusIcon.js +97 -95
  150. package/lib/components/Tearsheet/TearsheetShell.js +9 -1
  151. package/lib/components/Toolbar/ToolbarGroup.d.ts +17 -2
  152. package/lib/components/Toolbar/ToolbarGroup.js +0 -1
  153. package/lib/components/TruncatedList/TruncatedList.js +5 -3
  154. package/lib/components/UserAvatar/UserAvatar.js +3 -2
  155. package/lib/components/index.d.ts +4 -1
  156. package/lib/global/js/hooks/useFocus.js +9 -2
  157. package/lib/global/js/package-settings.d.ts +12 -0
  158. package/lib/global/js/package-settings.js +12 -0
  159. package/lib/index.js +60 -0
  160. package/lib/settings.d.ts +12 -0
  161. package/package.json +3 -3
  162. package/scss/components/FilterPanel/_carbon-imports.scss +9 -0
  163. package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +56 -0
  164. package/scss/components/FilterPanel/_filter-panel-accordion.scss +6 -0
  165. package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +62 -0
  166. package/scss/components/FilterPanel/_filter-panel-checkbox.scss +54 -0
  167. package/scss/components/FilterPanel/_filter-panel-group.scss +39 -0
  168. package/scss/components/FilterPanel/_filter-panel-label.scss +39 -0
  169. package/scss/components/FilterPanel/_filter-panel.scss +31 -0
  170. package/scss/components/FilterPanel/_index-with-carbon.scss +15 -0
  171. package/scss/components/FilterPanel/_index.scss +14 -0
  172. package/scss/components/ScrollGradient/_carbon-imports.scss +9 -0
  173. package/scss/components/ScrollGradient/_index-with-carbon.scss +9 -0
  174. package/scss/components/ScrollGradient/_index.scss +8 -0
  175. package/scss/components/ScrollGradient/_scroll-gradient.scss +102 -0
  176. package/scss/components/UserAvatar/_user-avatar.scss +37 -4
  177. package/scss/components/_index-with-carbon.scss +2 -0
  178. 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
- exports.StatusIcon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
38
+
39
+ exports.StatusIcon = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
39
40
  var _icons$kind;
40
- var kind = _ref.kind,
41
- theme = _ref.theme,
42
- size = _ref.size,
43
- className = _ref.className,
44
- iconDescription = _ref.iconDescription,
45
- rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
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, ref) {
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: ref
53
+ ref: forwardedRef
52
54
  }, props));
53
55
  }),
54
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
59
+ ref: forwardedRef
58
60
  }, props));
59
61
  }),
60
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
65
+ ref: forwardedRef
64
66
  }, props));
65
67
  }),
66
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
71
+ ref: forwardedRef
70
72
  }, props));
71
73
  })
72
74
  },
73
75
  critical: {
74
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
79
+ ref: forwardedRef
78
80
  }, props));
79
81
  }),
80
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
85
+ ref: forwardedRef
84
86
  }, props));
85
87
  }),
86
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
91
+ ref: forwardedRef
90
92
  }, props));
91
93
  }),
92
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
97
+ ref: forwardedRef
96
98
  }, props));
97
99
  })
98
100
  },
99
101
  'major-warning': {
100
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
105
+ ref: forwardedRef
104
106
  }, props));
105
107
  }),
106
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
111
+ ref: forwardedRef
110
112
  }, props));
111
113
  }),
112
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
117
+ ref: forwardedRef
116
118
  }, props));
117
119
  }),
118
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
123
+ ref: forwardedRef
122
124
  }, props));
123
125
  })
124
126
  },
125
127
  'minor-warning': {
126
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
131
+ ref: forwardedRef
130
132
  }, props));
131
133
  }),
132
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
137
+ ref: forwardedRef
136
138
  }, props));
137
139
  }),
138
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
143
+ ref: forwardedRef
142
144
  }, props));
143
145
  }),
144
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
149
+ ref: forwardedRef
148
150
  }, props));
149
151
  })
150
152
  },
151
153
  undefined: {
152
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
157
+ ref: forwardedRef
156
158
  }, props));
157
159
  }),
158
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
163
+ ref: forwardedRef
162
164
  }, props));
163
165
  }),
164
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
169
+ ref: forwardedRef
168
170
  }, props));
169
171
  }),
170
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
175
+ ref: forwardedRef
174
176
  }, props));
175
177
  })
176
178
  },
177
179
  unknown: {
178
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
183
+ ref: forwardedRef
182
184
  }, props));
183
185
  }),
184
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
189
+ ref: forwardedRef
188
190
  }, props));
189
191
  }),
190
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
195
+ ref: forwardedRef
194
196
  }, props));
195
197
  }),
196
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
201
+ ref: forwardedRef
200
202
  }, props));
201
203
  })
202
204
  },
203
205
  normal: {
204
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
209
+ ref: forwardedRef
208
210
  }, props));
209
211
  }),
210
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
215
+ ref: forwardedRef
214
216
  }, props));
215
217
  }),
216
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
221
+ ref: forwardedRef
220
222
  }, props));
221
223
  }),
222
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
227
+ ref: forwardedRef
226
228
  }, props));
227
229
  })
228
230
  },
229
231
  info: {
230
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
235
+ ref: forwardedRef
234
236
  }, props));
235
237
  }),
236
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
241
+ ref: forwardedRef
240
242
  }, props));
241
243
  }),
242
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
247
+ ref: forwardedRef
246
248
  }, props));
247
249
  }),
248
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
253
+ ref: forwardedRef
252
254
  }, props));
253
255
  })
254
256
  },
255
257
  'in-progress': {
256
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
261
+ ref: forwardedRef
260
262
  }, props));
261
263
  }),
262
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
267
+ ref: forwardedRef
266
268
  }, props));
267
269
  }),
268
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
273
+ ref: forwardedRef
272
274
  }, props));
273
275
  }),
274
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
279
+ ref: forwardedRef
278
280
  }, props));
279
281
  })
280
282
  },
281
283
  running: {
282
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
287
+ ref: forwardedRef
286
288
  }, props));
287
289
  }),
288
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
293
+ ref: forwardedRef
292
294
  }, props));
293
295
  }),
294
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
299
+ ref: forwardedRef
298
300
  }, props));
299
301
  }),
300
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
305
+ ref: forwardedRef
304
306
  }, props));
305
307
  })
306
308
  },
307
309
  pending: {
308
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
313
+ ref: forwardedRef
312
314
  }, props));
313
315
  }),
314
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
319
+ ref: forwardedRef
318
320
  }, props));
319
321
  }),
320
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: ref
325
+ ref: forwardedRef
324
326
  }, props));
325
327
  }),
326
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
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: 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
- }, [open, firstElement]);
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<React.RefAttributes<any>>;
3
- import React from 'react';
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
- var _window;
101
- var height = ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(items[index])) === null || _window === void 0 ? void 0 : _window.height) || 16;
102
- _listHeight += parseInt(height);
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(['light-cyan', 'dark-cyan']),
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
- var first = focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements[0];
37
- var last = focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements[(focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) - 1];
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 */