@carbon/react 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/es/components/Breadcrumb/index.d.ts +11 -0
  2. package/es/components/BreadcrumbItem/index.d.ts +7 -0
  3. package/es/components/ComboBox/ComboBox.js +1 -2
  4. package/es/components/ComboBox/index.d.ts +9 -0
  5. package/es/components/DataTableSkeleton/DataTableSkeleton.d.ts +4 -0
  6. package/es/components/DatePicker/DatePicker.Skeleton.d.ts +9 -1
  7. package/es/components/DatePicker/DatePicker.Skeleton.js +7 -5
  8. package/es/components/DatePicker/DatePicker.js +1 -0
  9. package/es/components/DatePickerInput/DatePickerInput.js +1 -2
  10. package/es/components/DatePickerInput/index.d.ts +9 -0
  11. package/es/components/ExpandableSearch/index.d.ts +9 -0
  12. package/es/components/FileUploader/index.d.ts +14 -0
  13. package/es/components/FormGroup/FormGroup.js +1 -2
  14. package/es/components/FormGroup/index.d.ts +9 -0
  15. package/es/components/Loading/index.d.ts +9 -0
  16. package/es/components/NumberInput/index.d.ts +8 -0
  17. package/es/components/OverflowMenuItem/OverflowMenuItem.js +1 -2
  18. package/es/components/OverflowMenuItem/index.d.ts +9 -0
  19. package/es/components/RadioButton/RadioButton.js +1 -2
  20. package/es/components/RadioButton/index.d.ts +9 -0
  21. package/es/components/RadioButtonGroup/RadioButtonGroup.js +1 -2
  22. package/es/components/RadioButtonGroup/index.d.ts +9 -0
  23. package/es/components/Search/Search.js +2 -2
  24. package/es/components/Select/Select.Skeleton.js +1 -2
  25. package/es/components/Select/Select.js +1 -2
  26. package/es/components/Select/index.d.ts +10 -0
  27. package/es/components/SelectItem/SelectItem.js +1 -2
  28. package/es/components/SelectItem/index.d.ts +9 -0
  29. package/es/components/SelectItemGroup/SelectItemGroup.js +1 -2
  30. package/es/components/SelectItemGroup/index.d.ts +9 -0
  31. package/es/components/StructuredList/StructuredList.js +10 -2
  32. package/es/components/TimePicker/TimePicker.js +1 -2
  33. package/es/components/TimePicker/index.d.ts +9 -0
  34. package/es/components/TimePickerSelect/TimePickerSelect.js +1 -2
  35. package/es/components/TimePickerSelect/index.d.ts +9 -0
  36. package/es/components/UIShell/HeaderPanel.js +2 -2
  37. package/es/components/UIShell/SideNav.js +5 -1
  38. package/es/index.js +25 -25
  39. package/es/types/common.d.ts +1 -1
  40. package/lib/components/Breadcrumb/index.d.ts +11 -0
  41. package/lib/components/BreadcrumbItem/index.d.ts +7 -0
  42. package/lib/components/ComboBox/ComboBox.js +1 -2
  43. package/lib/components/ComboBox/index.d.ts +9 -0
  44. package/lib/components/DataTableSkeleton/DataTableSkeleton.d.ts +4 -0
  45. package/lib/components/DatePicker/DatePicker.Skeleton.d.ts +9 -1
  46. package/lib/components/DatePicker/DatePicker.Skeleton.js +7 -5
  47. package/lib/components/DatePicker/DatePicker.js +1 -0
  48. package/lib/components/DatePickerInput/DatePickerInput.js +1 -2
  49. package/lib/components/DatePickerInput/index.d.ts +9 -0
  50. package/lib/components/ExpandableSearch/index.d.ts +9 -0
  51. package/lib/components/FileUploader/index.d.ts +14 -0
  52. package/lib/components/FormGroup/FormGroup.js +1 -2
  53. package/lib/components/FormGroup/index.d.ts +9 -0
  54. package/lib/components/Loading/index.d.ts +9 -0
  55. package/lib/components/NumberInput/index.d.ts +8 -0
  56. package/lib/components/OverflowMenuItem/OverflowMenuItem.js +1 -2
  57. package/lib/components/OverflowMenuItem/index.d.ts +9 -0
  58. package/lib/components/RadioButton/RadioButton.js +1 -2
  59. package/lib/components/RadioButton/index.d.ts +9 -0
  60. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +1 -2
  61. package/lib/components/RadioButtonGroup/index.d.ts +9 -0
  62. package/lib/components/Search/Search.js +2 -2
  63. package/lib/components/Select/Select.Skeleton.js +1 -2
  64. package/lib/components/Select/Select.js +1 -2
  65. package/lib/components/Select/index.d.ts +10 -0
  66. package/lib/components/SelectItem/SelectItem.js +1 -2
  67. package/lib/components/SelectItem/index.d.ts +9 -0
  68. package/lib/components/SelectItemGroup/SelectItemGroup.js +1 -2
  69. package/lib/components/SelectItemGroup/index.d.ts +9 -0
  70. package/lib/components/StructuredList/StructuredList.js +10 -2
  71. package/lib/components/TimePicker/TimePicker.js +1 -2
  72. package/lib/components/TimePicker/index.d.ts +9 -0
  73. package/lib/components/TimePickerSelect/TimePickerSelect.js +1 -2
  74. package/lib/components/TimePickerSelect/index.d.ts +9 -0
  75. package/lib/components/UIShell/HeaderPanel.js +2 -2
  76. package/lib/components/UIShell/SideNav.js +5 -1
  77. package/lib/index.js +50 -50
  78. package/lib/types/common.d.ts +1 -1
  79. package/package.json +6 -6
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import Breadcrumb from './Breadcrumb';
8
+ import BreadcrumbItem from './BreadcrumbItem';
9
+ import BreadcrumbSkeleton from './Breadcrumb.Skeleton';
10
+ export { Breadcrumb, BreadcrumbItem, BreadcrumbSkeleton };
11
+ export default Breadcrumb;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export { default } from '../Breadcrumb/BreadcrumbItem';
@@ -560,6 +560,5 @@ ComboBox.defaultProps = {
560
560
  ['aria-label']: 'Choose an item',
561
561
  direction: 'bottom'
562
562
  };
563
- var ComboBox$1 = ComboBox;
564
563
 
565
- export { ComboBox$1 as default };
564
+ export { ComboBox as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import ComboBox from './ComboBox';
8
+ export default ComboBox;
9
+ export { ComboBox };
@@ -45,6 +45,10 @@ export interface DataTableSkeletonProps extends TableHTMLAttributes<HTMLTableEle
45
45
  * Optionally specify whether you want the DataTable to be zebra striped
46
46
  */
47
47
  zebra?: boolean;
48
+ /**
49
+ * Optionally specify whether you want the DataTable to be styled
50
+ */
51
+ className?: string;
48
52
  }
49
53
  declare const DataTableSkeleton: FunctionComponent<DataTableSkeletonProps>;
50
54
  export default DataTableSkeleton;
@@ -8,14 +8,22 @@ import PropTypes from 'prop-types';
8
8
  import { type HTMLAttributes } from 'react';
9
9
  export interface DatePickerSkeletonProps extends HTMLAttributes<HTMLDivElement> {
10
10
  range?: boolean;
11
+ /**
12
+ * Specify whether the label should be hidden, or not
13
+ */
14
+ hideLabel?: boolean;
11
15
  }
12
16
  declare const DatePickerSkeleton: {
13
- ({ range, id, className, ...rest }: DatePickerSkeletonProps): JSX.Element;
17
+ ({ range, id, hideLabel, className, ...rest }: DatePickerSkeletonProps): JSX.Element;
14
18
  propTypes: {
15
19
  /**
16
20
  * Specify an optional className to add.
17
21
  */
18
22
  className: PropTypes.Requireable<string>;
23
+ /**
24
+ * Specify whether the label should be hidden, or not
25
+ */
26
+ hideLabel: PropTypes.Requireable<boolean>;
19
27
  /**
20
28
  * Specify the id to add.
21
29
  */
@@ -15,18 +15,16 @@ const DatePickerSkeleton = _ref => {
15
15
  let {
16
16
  range,
17
17
  id,
18
+ hideLabel,
18
19
  className,
19
20
  ...rest
20
21
  } = _ref;
21
22
  const prefix = usePrefix();
22
23
  const dateInput = /*#__PURE__*/React__default.createElement("div", {
23
24
  className: `${prefix}--date-picker-container`
24
- },
25
- /*#__PURE__*/
26
- /* eslint-disable jsx-a11y/label-has-for,jsx-a11y/label-has-associated-control */
27
- React__default.createElement("label", {
25
+ }, !hideLabel && /*#__PURE__*/React__default.createElement("span", {
28
26
  className: `${prefix}--label`,
29
- htmlFor: id
27
+ id: id
30
28
  }), /*#__PURE__*/React__default.createElement("div", {
31
29
  className: `${prefix}--date-picker__input ${prefix}--skeleton`
32
30
  }));
@@ -48,6 +46,10 @@ DatePickerSkeleton.propTypes = {
48
46
  * Specify an optional className to add.
49
47
  */
50
48
  className: PropTypes.string,
49
+ /**
50
+ * Specify whether the label should be hidden, or not
51
+ */
52
+ hideLabel: PropTypes.bool,
51
53
  /**
52
54
  * Specify the id to add.
53
55
  */
@@ -123,6 +123,7 @@ function updateClassNames(calendar, prefix) {
123
123
  });
124
124
  forEach.call(daysContainer.querySelectorAll('.flatpickr-day'), item => {
125
125
  item.classList.add(`${prefix}--date-picker__day`);
126
+ item.setAttribute('role', 'button');
126
127
  if (item.classList.contains('today') && calendar.selectedDates.length > 0) {
127
128
  item.classList.add('no-border');
128
129
  } else if (item.classList.contains('today') && calendar.selectedDates.length === 0) {
@@ -251,6 +251,5 @@ DatePickerIcon.propTypes = {
251
251
  */
252
252
  warn: PropTypes.bool
253
253
  };
254
- var DatePickerInput$1 = DatePickerInput;
255
254
 
256
- export { DatePickerInput$1 as default };
255
+ export { DatePickerInput as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import DatePickerInput from './DatePickerInput';
8
+ export default DatePickerInput;
9
+ export { DatePickerInput };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2021
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 ExpandableSearch from './ExpandableSearch';
8
+ export default ExpandableSearch;
9
+ export { ExpandableSearch };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import FileUploader from './FileUploader';
8
+ export default FileUploader;
9
+ export { FileUploader };
10
+ export { default as Filename } from './Filename';
11
+ export { default as FileUploaderSkeleton } from './FileUploader.Skeleton';
12
+ export { default as FileUploaderButton } from './FileUploaderButton';
13
+ export { default as FileUploaderDropContainer } from './FileUploaderDropContainer';
14
+ export { default as FileUploaderItem } from './FileUploaderItem';
@@ -73,6 +73,5 @@ FormGroup.defaultProps = {
73
73
  message: false,
74
74
  messageText: ''
75
75
  };
76
- var FormGroup$1 = FormGroup;
77
76
 
78
- export { FormGroup$1 as default };
77
+ export { FormGroup as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import FormGroup from './FormGroup';
8
+ export default FormGroup;
9
+ export { FormGroup };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import Loading from './Loading';
8
+ export default Loading;
9
+ export { Loading };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ export { default as NumberInputSkeleton } from './NumberInput.Skeleton';
8
+ export { NumberInput } from './NumberInput';
@@ -153,6 +153,5 @@ OverflowMenuItem.propTypes = {
153
153
  */
154
154
  wrapperClassName: PropTypes.string
155
155
  };
156
- var OverflowMenuItem$1 = OverflowMenuItem;
157
156
 
158
- export { OverflowMenuItem$1 as default };
157
+ export { OverflowMenuItem as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import OverflowMenuItem from './OverflowMenuItem';
8
+ export default OverflowMenuItem;
9
+ export { OverflowMenuItem };
@@ -115,6 +115,5 @@ RadioButton.propTypes = {
115
115
  */
116
116
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
117
117
  };
118
- var RadioButton$1 = RadioButton;
119
118
 
120
- export { RadioButton$1 as default };
119
+ export { RadioButton as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import RadioButton from './RadioButton';
8
+ export default RadioButton;
9
+ export { RadioButton };
@@ -190,6 +190,5 @@ RadioButtonGroup.propTypes = {
190
190
  warnText: PropTypes.node
191
191
  };
192
192
  RadioButtonGroup.displayName = 'RadioButtonGroup';
193
- var RadioButtonGroup$1 = RadioButtonGroup;
194
193
 
195
- export { RadioButtonGroup$1 as default };
194
+ export { RadioButtonGroup as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import RadioButtonGroup from './RadioButtonGroup';
8
+ export default RadioButtonGroup;
9
+ export { RadioButtonGroup };
@@ -135,7 +135,7 @@ const Search = /*#__PURE__*/React__default.forwardRef(function Search(_ref, forw
135
135
  id: searchId,
136
136
  htmlFor: uniqueId,
137
137
  className: `${prefix}--label`
138
- }, labelText), /*#__PURE__*/React__default.createElement("input", _extends({}, rest, {
138
+ }, labelText), /*#__PURE__*/React__default.createElement("input", _extends({
139
139
  autoComplete: autoComplete,
140
140
  className: `${prefix}--search-input`,
141
141
  defaultValue: defaultValue,
@@ -149,7 +149,7 @@ const Search = /*#__PURE__*/React__default.forwardRef(function Search(_ref, forw
149
149
  type: type,
150
150
  value: value,
151
151
  tabIndex: onExpand && !isExpanded ? -1 : undefined
152
- })), /*#__PURE__*/React__default.createElement("button", {
152
+ }, rest)), /*#__PURE__*/React__default.createElement("button", {
153
153
  "aria-label": closeButtonLabelText,
154
154
  className: clearClasses,
155
155
  disabled: disabled,
@@ -38,6 +38,5 @@ SelectSkeleton.propTypes = {
38
38
  */
39
39
  hideLabel: PropTypes.bool
40
40
  };
41
- var SelectSkeleton$1 = SelectSkeleton;
42
41
 
43
- export { SelectSkeleton, SelectSkeleton$1 as default };
42
+ export { SelectSkeleton, SelectSkeleton as default };
@@ -246,6 +246,5 @@ Select.defaultProps = {
246
246
  invalidText: '',
247
247
  helperText: ''
248
248
  };
249
- var Select$1 = Select;
250
249
 
251
- export { Select$1 as default };
250
+ export { Select as default };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import Select from './Select';
8
+ export { default as SelectSkeleton } from './Select.Skeleton';
9
+ export default Select;
10
+ export { Select };
@@ -62,6 +62,5 @@ SelectItem.defaultProps = {
62
62
  value: '',
63
63
  text: ''
64
64
  };
65
- var SelectItem$1 = SelectItem;
66
65
 
67
- export { SelectItem$1 as default };
66
+ export { SelectItem as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import SelectItem from './SelectItem';
8
+ export default SelectItem;
9
+ export { SelectItem };
@@ -48,6 +48,5 @@ SelectItemGroup.propTypes = {
48
48
  SelectItemGroup.defaultProps = {
49
49
  disabled: false
50
50
  };
51
- var SelectItemGroup$1 = SelectItemGroup;
52
51
 
53
- export { SelectItemGroup$1 as default };
52
+ export { SelectItemGroup as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import SelectItemGroup from './SelectItemGroup';
8
+ export default SelectItemGroup;
9
+ export { SelectItemGroup };
@@ -142,6 +142,7 @@ function StructuredListRow(props) {
142
142
  children,
143
143
  className,
144
144
  head,
145
+ onClick,
145
146
  ...other
146
147
  } = props;
147
148
  const [hasFocusWithin, setHasFocusWithin] = useState(false);
@@ -167,7 +168,10 @@ function StructuredListRow(props) {
167
168
  React__default.createElement("div", _extends({}, other, {
168
169
  role: "row",
169
170
  className: classes,
170
- onClick: () => setSelectedRow(id),
171
+ onClick: () => {
172
+ setSelectedRow(id);
173
+ onClick && onClick();
174
+ },
171
175
  onFocus: () => {
172
176
  setHasFocusWithin(true);
173
177
  },
@@ -196,6 +200,10 @@ StructuredListRow.propTypes = {
196
200
  * Specify whether a `<label>` should be used
197
201
  */
198
202
  label: deprecate(PropTypes.bool, `\nThe \`label\` prop is no longer needed and will be removed in the next major version of Carbon.`),
203
+ /**
204
+ * Provide a handler that is invoked on the click,
205
+ */
206
+ onClick: PropTypes.func,
199
207
  /**
200
208
  * Provide a handler that is invoked on the key down event for the control,
201
209
  */
@@ -227,7 +235,7 @@ function StructuredListInput(props) {
227
235
  value: row?.id ?? '',
228
236
  onChange: event => {
229
237
  setSelectedRow(event.target.value);
230
- onChange(event);
238
+ onChange && onChange(event);
231
239
  },
232
240
  id: id ?? defaultId,
233
241
  className: classes,
@@ -244,6 +244,5 @@ TimePicker.propTypes = {
244
244
  */
245
245
  warningText: PropTypes.node
246
246
  };
247
- var TimePicker$1 = TimePicker;
248
247
 
249
- export { TimePicker$1 as default };
248
+ export { TimePicker as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import TimePicker from './TimePicker';
8
+ export default TimePicker;
9
+ export { TimePicker };
@@ -64,6 +64,5 @@ TimePickerSelect.propTypes = {
64
64
  */
65
65
  id: PropTypes.string.isRequired
66
66
  };
67
- var TimePickerSelect$1 = TimePickerSelect;
68
67
 
69
- export { TimePickerSelect$1 as default };
68
+ export { TimePickerSelect as default };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { default as TimePickerSelect } from './TimePickerSelect';
8
+ export default TimePickerSelect;
9
+ export { TimePickerSelect };
@@ -15,13 +15,14 @@ import { useMergedRefs } from '../../internal/useMergedRefs.js';
15
15
  import { match } from '../../internal/keyboard/match.js';
16
16
  import { Escape } from '../../internal/keyboard/keys.js';
17
17
 
18
+ const noopFn = () => {};
18
19
  const HeaderPanel = /*#__PURE__*/React__default.forwardRef(function HeaderPanel(_ref, ref) {
19
20
  let {
20
21
  children,
21
22
  className: customClassName,
22
23
  expanded,
23
24
  addFocusListeners = true,
24
- onHeaderPanelFocus,
25
+ onHeaderPanelFocus = noopFn,
25
26
  href,
26
27
  ...other
27
28
  } = _ref;
@@ -95,7 +96,6 @@ HeaderPanel.propTypes = {
95
96
  /**
96
97
  * An optional listener that is called a callback to collapse the HeaderPanel
97
98
  */
98
-
99
99
  onHeaderPanelFocus: PropTypes.func
100
100
  };
101
101
  HeaderPanel.displayName = 'HeaderPanel';
@@ -15,6 +15,8 @@ import { usePrefix } from '../../internal/usePrefix.js';
15
15
  import { useMergedRefs } from '../../internal/useMergedRefs.js';
16
16
  import { useWindowEvent } from '../../internal/useEvent.js';
17
17
  import { useDelayedState } from '../../internal/useDelayedState.js';
18
+ import { breakpoints } from '@carbon/layout';
19
+ import { useMatchMedia } from '../../internal/useMatchMedia.js';
18
20
  import { match } from '../../internal/keyboard/match.js';
19
21
  import { Tab, Escape } from '../../internal/keyboard/keys.js';
20
22
 
@@ -152,6 +154,8 @@ function SideNavRenderFunction(_ref, ref) {
152
154
  sideNavRef.current.focus();
153
155
  }
154
156
  });
157
+ const lgMediaQuery = `(min-width: ${breakpoints.lg.width})`;
158
+ const isLg = useMatchMedia(lgMediaQuery);
155
159
  return /*#__PURE__*/React__default.createElement(SideNavContext.Provider, {
156
160
  value: {
157
161
  isRail
@@ -166,7 +170,7 @@ function SideNavRenderFunction(_ref, ref) {
166
170
  tabIndex: -1,
167
171
  ref: navRef,
168
172
  className: `${prefix}--side-nav__navigation ${className}`,
169
- inert: !isRail && (expanded ? undefined : -1)
173
+ inert: !isRail && (expanded || isLg ? undefined : -1)
170
174
  }, accessibilityLabel, eventHandlers, other), childrenToRender));
171
175
  }
172
176
  const SideNav = /*#__PURE__*/React__default.forwardRef(SideNavRenderFunction);