@lumx/react 3.9.3 → 3.9.4-alpha.1

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.
package/index.js CHANGED
@@ -394,7 +394,7 @@ const IS_BROWSER = typeof navigator !== 'undefined' && !navigator.userAgent.incl
394
394
  */
395
395
  const VISUALLY_HIDDEN = 'visually-hidden';
396
396
 
397
- const _excluded$1s = ["prefix"];
397
+ const _excluded$1r = ["prefix"];
398
398
 
399
399
  /**
400
400
  * Enhance isEmpty method to also works with numbers.
@@ -452,7 +452,7 @@ function handleBasicClasses(_ref2) {
452
452
  let {
453
453
  prefix
454
454
  } = _ref2,
455
- props = _objectWithoutProperties(_ref2, _excluded$1s);
455
+ props = _objectWithoutProperties(_ref2, _excluded$1r);
456
456
  const otherClasses = {};
457
457
  if (!isEmpty(props)) {
458
458
  Object.keys(props).forEach(prop => {
@@ -643,7 +643,7 @@ function useId() {
643
643
  }, []);
644
644
  }
645
645
 
646
- const _excluded$1r = ["id", "title", "className", "cancelProps", "confirmProps", "kind", "size", "dialogProps", "children"],
646
+ const _excluded$1q = ["id", "title", "className", "cancelProps", "confirmProps", "kind", "size", "dialogProps", "children"],
647
647
  _excluded2$3 = ["label", "onClick"],
648
648
  _excluded3 = ["label", "onClick"];
649
649
  /**
@@ -707,7 +707,7 @@ const AlertDialog = /*#__PURE__*/forwardRef((props, ref) => {
707
707
  dialogProps,
708
708
  children
709
709
  } = props,
710
- forwardedProps = _objectWithoutProperties(props, _excluded$1r);
710
+ forwardedProps = _objectWithoutProperties(props, _excluded$1q);
711
711
  const cancelButtonRef = React__default.useRef(null);
712
712
  const confirmationButtonRef = React__default.useRef(null);
713
713
  const {
@@ -831,7 +831,7 @@ const useMergeRefs = function () {
831
831
  refs);
832
832
  };
833
833
 
834
- const _excluded$1q = ["anchorToInput", "children", "chips", "className", "closeOnClick", "closeOnClickAway", "closeOnEscape", "disabled", "error", "fitToAnchorWidth", "hasError", "helper", "icon", "inputRef", "clearButtonProps", "isDisabled", "isRequired", "isOpen", "isValid", "label", "name", "offset", "onBlur", "onChange", "onClose", "onFocus", "onInfiniteScroll", "placeholder", "placement", "shouldFocusOnClose", "theme", "value", "textFieldProps", "focusAnchorOnClose"];
834
+ const _excluded$1p = ["anchorToInput", "children", "chips", "className", "closeOnClick", "closeOnClickAway", "closeOnEscape", "disabled", "error", "fitToAnchorWidth", "hasError", "helper", "icon", "inputRef", "clearButtonProps", "isDisabled", "isRequired", "isOpen", "isValid", "label", "name", "offset", "onBlur", "onChange", "onClose", "onFocus", "onInfiniteScroll", "placeholder", "placement", "shouldFocusOnClose", "theme", "value", "textFieldProps", "focusAnchorOnClose"];
835
835
 
836
836
  /**
837
837
  * Defines the props of the component.
@@ -902,7 +902,7 @@ const Autocomplete = /*#__PURE__*/forwardRef((props, ref) => {
902
902
  textFieldProps = {},
903
903
  focusAnchorOnClose
904
904
  } = props,
905
- forwardedProps = _objectWithoutProperties(props, _excluded$1q);
905
+ forwardedProps = _objectWithoutProperties(props, _excluded$1p);
906
906
  const inputAnchorRef = useRef(null);
907
907
  const textFieldRef = useRef(null);
908
908
  useFocus(inputAnchorRef.current, !isOpen && shouldFocusOnClose);
@@ -952,7 +952,7 @@ Autocomplete.displayName = COMPONENT_NAME$1l;
952
952
  Autocomplete.className = CLASSNAME$1i;
953
953
  Autocomplete.defaultProps = DEFAULT_PROPS$12;
954
954
 
955
- const _excluded$1p = ["anchorToInput", "children", "chipsAlignment", "className", "closeOnClickAway", "closeOnEscape", "fitToAnchorWidth", "hasError", "helper", "icon", "inputRef", "clearButtonProps", "isDisabled", "isRequired", "isOpen", "isValid", "label", "name", "offset", "onBlur", "onChange", "onClear", "onClose", "onFocus", "onInfiniteScroll", "onKeyDown", "placeholder", "placement", "selectedChipRender", "shouldFocusOnClose", "theme", "type", "value", "values"];
955
+ const _excluded$1o = ["anchorToInput", "children", "chipsAlignment", "className", "closeOnClickAway", "closeOnEscape", "fitToAnchorWidth", "hasError", "helper", "icon", "inputRef", "clearButtonProps", "isDisabled", "isRequired", "isOpen", "isValid", "label", "name", "offset", "onBlur", "onChange", "onClear", "onClose", "onFocus", "onInfiniteScroll", "onKeyDown", "placeholder", "placement", "selectedChipRender", "shouldFocusOnClose", "theme", "type", "value", "values"];
956
956
 
957
957
  /**
958
958
  * Defines the props of the component.
@@ -1037,7 +1037,7 @@ const AutocompleteMultiple = /*#__PURE__*/forwardRef((props, ref) => {
1037
1037
  value,
1038
1038
  values
1039
1039
  } = props,
1040
- forwardedProps = _objectWithoutProperties(props, _excluded$1p);
1040
+ forwardedProps = _objectWithoutProperties(props, _excluded$1o);
1041
1041
  return /*#__PURE__*/React__default.createElement(Autocomplete, _extends({
1042
1042
  ref: ref
1043
1043
  }, forwardedProps, {
@@ -1080,7 +1080,7 @@ AutocompleteMultiple.displayName = COMPONENT_NAME$1k;
1080
1080
  AutocompleteMultiple.className = CLASSNAME$1h;
1081
1081
  AutocompleteMultiple.defaultProps = DEFAULT_PROPS$11;
1082
1082
 
1083
- const _excluded$1o = ["actions", "alt", "badge", "className", "image", "linkProps", "linkAs", "onClick", "onKeyPress", "size", "theme", "thumbnailProps"];
1083
+ const _excluded$1n = ["actions", "alt", "badge", "className", "image", "linkProps", "linkAs", "onClick", "onKeyPress", "size", "theme", "thumbnailProps"];
1084
1084
 
1085
1085
  /**
1086
1086
  * Avatar sizes.
@@ -1130,7 +1130,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
1130
1130
  theme,
1131
1131
  thumbnailProps
1132
1132
  } = props,
1133
- forwardedProps = _objectWithoutProperties(props, _excluded$1o);
1133
+ forwardedProps = _objectWithoutProperties(props, _excluded$1n);
1134
1134
  return /*#__PURE__*/React__default.createElement("div", _extends({
1135
1135
  ref: ref
1136
1136
  }, forwardedProps, {
@@ -1161,7 +1161,7 @@ Avatar.displayName = COMPONENT_NAME$1j;
1161
1161
  Avatar.className = CLASSNAME$1g;
1162
1162
  Avatar.defaultProps = DEFAULT_PROPS$10;
1163
1163
 
1164
- const _excluded$1n = ["children", "className", "color"];
1164
+ const _excluded$1m = ["children", "className", "color"];
1165
1165
 
1166
1166
  /**
1167
1167
  * Defines the props of the component.
@@ -1197,7 +1197,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
1197
1197
  className,
1198
1198
  color
1199
1199
  } = props,
1200
- forwardedProps = _objectWithoutProperties(props, _excluded$1n);
1200
+ forwardedProps = _objectWithoutProperties(props, _excluded$1m);
1201
1201
  return /*#__PURE__*/React__default.createElement("div", _extends({
1202
1202
  ref: ref
1203
1203
  }, forwardedProps, {
@@ -1279,7 +1279,7 @@ const isComponentType = type => node => /*#__PURE__*/React__default.isValidEleme
1279
1279
  * A point coordinate in 2D space
1280
1280
  */
1281
1281
 
1282
- const _excluded$1m = ["linkAs"];
1282
+ const _excluded$1l = ["linkAs"];
1283
1283
  /**
1284
1284
  * Render link with default <a> HTML component or a custom one provided by `linkAs`.
1285
1285
  *
@@ -1293,14 +1293,14 @@ const renderLink = function (_ref) {
1293
1293
  let {
1294
1294
  linkAs
1295
1295
  } = _ref,
1296
- forwardedProps = _objectWithoutProperties(_ref, _excluded$1m);
1296
+ forwardedProps = _objectWithoutProperties(_ref, _excluded$1l);
1297
1297
  for (var _len = arguments.length, children = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1298
1298
  children[_key - 1] = arguments[_key];
1299
1299
  }
1300
1300
  return /*#__PURE__*/React__default.createElement(linkAs || 'a', forwardedProps, ...children);
1301
1301
  };
1302
1302
 
1303
- const _excluded$1l = ["aria-label", "children", "className", "color", "disabled", "emphasis", "hasBackground", "href", "isDisabled", "isSelected", "isActive", "isFocused", "isHovered", "linkAs", "name", "size", "target", "theme", "variant", "type", "fullWidth"];
1303
+ const _excluded$1k = ["aria-label", "children", "className", "color", "disabled", "emphasis", "hasBackground", "href", "isDisabled", "isSelected", "isActive", "isFocused", "isHovered", "linkAs", "name", "size", "target", "theme", "variant", "type", "fullWidth"];
1304
1304
 
1305
1305
  /**
1306
1306
  * Button size definition.
@@ -1372,7 +1372,7 @@ const ButtonRoot = /*#__PURE__*/forwardRef((props, ref) => {
1372
1372
  type = 'button',
1373
1373
  fullWidth
1374
1374
  } = props,
1375
- forwardedProps = _objectWithoutProperties(props, _excluded$1l);
1375
+ forwardedProps = _objectWithoutProperties(props, _excluded$1k);
1376
1376
  const adaptedColor = color || emphasis !== Emphasis.high && theme === Theme.dark && ColorPalette.light || emphasis === Emphasis.high && ColorPalette.primary || ColorPalette.dark;
1377
1377
  if (hasBackground) {
1378
1378
  return renderButtonWrapper(_objectSpread2(_objectSpread2({}, props), {}, {
@@ -1428,7 +1428,7 @@ const ButtonRoot = /*#__PURE__*/forwardRef((props, ref) => {
1428
1428
  ButtonRoot.displayName = COMPONENT_NAME$1h;
1429
1429
  ButtonRoot.defaultProps = {};
1430
1430
 
1431
- const _excluded$1k = ["children", "className", "emphasis", "leftIcon", "rightIcon", "size", "theme"];
1431
+ const _excluded$1j = ["children", "className", "emphasis", "leftIcon", "rightIcon", "size", "theme"];
1432
1432
 
1433
1433
  /**
1434
1434
  * Button emphasis definition.
@@ -1476,7 +1476,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
1476
1476
  size,
1477
1477
  theme
1478
1478
  } = props,
1479
- forwardedProps = _objectWithoutProperties(props, _excluded$1k);
1479
+ forwardedProps = _objectWithoutProperties(props, _excluded$1j);
1480
1480
  const buttonClassName = classnames(className, getBasicClass({
1481
1481
  prefix: CLASSNAME$1e,
1482
1482
  type: 'hasLeftIcon',
@@ -1505,7 +1505,7 @@ Button.displayName = COMPONENT_NAME$1g;
1505
1505
  Button.className = CLASSNAME$1e;
1506
1506
  Button.defaultProps = DEFAULT_PROPS$_;
1507
1507
 
1508
- const _excluded$1j = ["emphasis", "image", "icon", "label", "size", "theme", "tooltipProps", "hideTooltip"];
1508
+ const _excluded$1i = ["emphasis", "image", "icon", "label", "size", "theme", "tooltipProps", "hideTooltip"];
1509
1509
  /**
1510
1510
  * Component display name.
1511
1511
  */
@@ -1543,7 +1543,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
1543
1543
  tooltipProps,
1544
1544
  hideTooltip
1545
1545
  } = props,
1546
- forwardedProps = _objectWithoutProperties(props, _excluded$1j);
1546
+ forwardedProps = _objectWithoutProperties(props, _excluded$1i);
1547
1547
  return /*#__PURE__*/React__default.createElement(Tooltip, _extends({
1548
1548
  label: hideTooltip ? '' : label
1549
1549
  }, tooltipProps), /*#__PURE__*/React__default.createElement(ButtonRoot, _extends({
@@ -1567,7 +1567,7 @@ IconButton.displayName = COMPONENT_NAME$1f;
1567
1567
  IconButton.className = CLASSNAME$1d;
1568
1568
  IconButton.defaultProps = DEFAULT_PROPS$Z;
1569
1569
 
1570
- const _excluded$1i = ["children", "className"];
1570
+ const _excluded$1h = ["children", "className"];
1571
1571
 
1572
1572
  /**
1573
1573
  * Defines the props of the component
@@ -1600,7 +1600,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
1600
1600
  children,
1601
1601
  className
1602
1602
  } = props,
1603
- forwardedProps = _objectWithoutProperties(props, _excluded$1i);
1603
+ forwardedProps = _objectWithoutProperties(props, _excluded$1h);
1604
1604
  return /*#__PURE__*/React__default.createElement("div", _extends({
1605
1605
  ref: ref
1606
1606
  }, forwardedProps, {
@@ -1611,7 +1611,7 @@ ButtonGroup.displayName = COMPONENT_NAME$1e;
1611
1611
  ButtonGroup.className = CLASSNAME$1c;
1612
1612
  ButtonGroup.defaultProps = DEFAULT_PROPS$Y;
1613
1613
 
1614
- const _excluded$1h = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
1614
+ const _excluded$1g = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
1615
1615
 
1616
1616
  /**
1617
1617
  * Intermediate state of checkbox.
@@ -1663,7 +1663,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
1663
1663
  value,
1664
1664
  inputProps = {}
1665
1665
  } = props,
1666
- forwardedProps = _objectWithoutProperties(props, _excluded$1h);
1666
+ forwardedProps = _objectWithoutProperties(props, _excluded$1g);
1667
1667
  const localInputRef = React__default.useRef(null);
1668
1668
  const generatedInputId = useId();
1669
1669
  const inputId = id || generatedInputId;
@@ -1743,7 +1743,7 @@ function useStopPropagation(handler) {
1743
1743
  }, [handler]);
1744
1744
  }
1745
1745
 
1746
- const _excluded$1g = ["after", "before", "children", "className", "color", "disabled", "isClickable", "isDisabled", "isHighlighted", "isSelected", "onAfterClick", "onBeforeClick", "onClick", "size", "theme", "href", "onKeyDown"];
1746
+ const _excluded$1f = ["after", "before", "children", "className", "color", "disabled", "isClickable", "isDisabled", "isHighlighted", "isSelected", "onAfterClick", "onBeforeClick", "onClick", "size", "theme", "href", "onKeyDown"];
1747
1747
 
1748
1748
  /**
1749
1749
  * Chip sizes.
@@ -1798,7 +1798,7 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
1798
1798
  href,
1799
1799
  onKeyDown
1800
1800
  } = props,
1801
- forwardedProps = _objectWithoutProperties(props, _excluded$1g);
1801
+ forwardedProps = _objectWithoutProperties(props, _excluded$1f);
1802
1802
  const hasAfterClick = isFunction(onAfterClick);
1803
1803
  const hasBeforeClick = isFunction(onBeforeClick);
1804
1804
  const hasOnClick = isFunction(onClick);
@@ -1913,7 +1913,7 @@ const useChipGroupNavigation = function (chips, onChipDeleted) {
1913
1913
  };
1914
1914
  };
1915
1915
 
1916
- const _excluded$1f = ["align", "children", "className"];
1916
+ const _excluded$1e = ["align", "children", "className"];
1917
1917
 
1918
1918
  /**
1919
1919
  * Defines the props of the component.
@@ -1947,7 +1947,7 @@ const InternalChipGroup = /*#__PURE__*/forwardRef((props, ref) => {
1947
1947
  children,
1948
1948
  className
1949
1949
  } = props,
1950
- forwardedProps = _objectWithoutProperties(props, _excluded$1f);
1950
+ forwardedProps = _objectWithoutProperties(props, _excluded$1e);
1951
1951
  const chipGroupClassName = handleBasicClasses({
1952
1952
  prefix: CLASSNAME$19
1953
1953
  });
@@ -1964,7 +1964,7 @@ const ChipGroup = Object.assign(InternalChipGroup, {
1964
1964
  useChipGroupNavigation
1965
1965
  });
1966
1966
 
1967
- const _excluded$1e = ["actions", "avatarProps", "children", "className", "date", "fullDate", "hasActions", "headerActions", "isOpen", "isRelevant", "name", "onClick", "onMouseEnter", "onMouseLeave", "text", "theme", "variant"];
1967
+ const _excluded$1d = ["actions", "avatarProps", "children", "className", "date", "fullDate", "hasActions", "headerActions", "isOpen", "isRelevant", "name", "onClick", "onMouseEnter", "onMouseLeave", "text", "theme", "variant"];
1968
1968
  /**
1969
1969
  * Comment block variants.
1970
1970
  */
@@ -2022,7 +2022,7 @@ const CommentBlock = /*#__PURE__*/forwardRef((props, ref) => {
2022
2022
  theme,
2023
2023
  variant
2024
2024
  } = props,
2025
- forwardedProps = _objectWithoutProperties(props, _excluded$1e);
2025
+ forwardedProps = _objectWithoutProperties(props, _excluded$1d);
2026
2026
  const hasChildren = Children.count(children) > 0;
2027
2027
  return /*#__PURE__*/React__default.createElement("div", _extends({
2028
2028
  ref: ref,
@@ -2508,7 +2508,7 @@ const DatePickerControlled = /*#__PURE__*/forwardRef((props, ref) => {
2508
2508
  DatePickerControlled.displayName = COMPONENT_NAME$18;
2509
2509
  DatePickerControlled.className = CLASSNAME$17;
2510
2510
 
2511
- const _excluded$1d = ["defaultMonth", "locale", "value", "onChange"];
2511
+ const _excluded$1c = ["defaultMonth", "locale", "value", "onChange"];
2512
2512
  /**
2513
2513
  * DatePicker component.
2514
2514
  *
@@ -2523,7 +2523,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, ref) => {
2523
2523
  value,
2524
2524
  onChange
2525
2525
  } = props,
2526
- forwardedProps = _objectWithoutProperties(props, _excluded$1d);
2526
+ forwardedProps = _objectWithoutProperties(props, _excluded$1c);
2527
2527
  let referenceDate = value || defaultMonth || new Date();
2528
2528
  if (!isDateValid(referenceDate)) {
2529
2529
  // eslint-disable-next-line no-console
@@ -2560,7 +2560,7 @@ const useBooleanState = defaultValue => {
2560
2560
  return [booleanValue, setToFalse, setToTrue, toggleBoolean];
2561
2561
  };
2562
2562
 
2563
- const _excluded$1c = ["defaultMonth", "disabled", "isDisabled", "locale", "maxDate", "minDate", "name", "nextButtonProps", "onChange", "previousButtonProps", "value"];
2563
+ const _excluded$1b = ["defaultMonth", "disabled", "isDisabled", "locale", "maxDate", "minDate", "name", "nextButtonProps", "onChange", "previousButtonProps", "value"];
2564
2564
 
2565
2565
  /**
2566
2566
  * Defines the props of the component.
@@ -2592,7 +2592,7 @@ const DatePickerField = /*#__PURE__*/forwardRef((props, ref) => {
2592
2592
  previousButtonProps,
2593
2593
  value
2594
2594
  } = props,
2595
- forwardedProps = _objectWithoutProperties(props, _excluded$1c);
2595
+ forwardedProps = _objectWithoutProperties(props, _excluded$1b);
2596
2596
  const anchorRef = useRef(null);
2597
2597
  const [isOpen, close,, toggleOpen] = useBooleanState(false);
2598
2598
  const handleKeyboardNav = useCallback(evt => {
@@ -3140,7 +3140,7 @@ const useTransitionVisibility = (ref, isComponentVisible, timeout, onVisibilityC
3140
3140
  return isVisible || isComponentVisible;
3141
3141
  };
3142
3142
 
3143
- const _excluded$1b = ["children", "className", "header", "focusElement", "forceFooterDivider", "forceHeaderDivider", "footer", "isLoading", "isOpen", "onClose", "parentElement", "contentRef", "preventAutoClose", "size", "zIndex", "dialogProps", "onVisibilityChange", "disableBodyScroll", "preventCloseOnClick", "preventCloseOnEscape"];
3143
+ const _excluded$1a = ["children", "className", "header", "focusElement", "forceFooterDivider", "forceHeaderDivider", "footer", "isLoading", "isOpen", "onClose", "parentElement", "contentRef", "preventAutoClose", "size", "zIndex", "dialogProps", "onVisibilityChange", "disableBodyScroll", "preventCloseOnClick", "preventCloseOnEscape"];
3144
3144
 
3145
3145
  /**
3146
3146
  * Defines the props of the component.
@@ -3202,7 +3202,7 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
3202
3202
  preventCloseOnClick,
3203
3203
  preventCloseOnEscape
3204
3204
  } = props,
3205
- forwardedProps = _objectWithoutProperties(props, _excluded$1b);
3205
+ forwardedProps = _objectWithoutProperties(props, _excluded$1a);
3206
3206
 
3207
3207
  // eslint-disable-next-line react-hooks/rules-of-hooks
3208
3208
  const previousOpen = React__default.useRef(isOpen);
@@ -3314,7 +3314,7 @@ Dialog.displayName = COMPONENT_NAME$16;
3314
3314
  Dialog.className = CLASSNAME$16;
3315
3315
  Dialog.defaultProps = DEFAULT_PROPS$T;
3316
3316
 
3317
- const _excluded$1a = ["className", "theme"];
3317
+ const _excluded$19 = ["className", "theme"];
3318
3318
 
3319
3319
  /**
3320
3320
  * Defines the props of the component.
@@ -3349,7 +3349,7 @@ const Divider = /*#__PURE__*/forwardRef((props, ref) => {
3349
3349
  className,
3350
3350
  theme
3351
3351
  } = props,
3352
- forwardedProps = _objectWithoutProperties(props, _excluded$1a);
3352
+ forwardedProps = _objectWithoutProperties(props, _excluded$19);
3353
3353
  return /*#__PURE__*/React__default.createElement("hr", _extends({
3354
3354
  ref: ref
3355
3355
  }, forwardedProps, {
@@ -3363,7 +3363,7 @@ Divider.displayName = COMPONENT_NAME$15;
3363
3363
  Divider.className = CLASSNAME$15;
3364
3364
  Divider.defaultProps = DEFAULT_PROPS$S;
3365
3365
 
3366
- const _excluded$19 = ["className", "theme"];
3366
+ const _excluded$18 = ["className", "theme"];
3367
3367
 
3368
3368
  /**
3369
3369
  * Defines the props of the component.
@@ -3391,7 +3391,7 @@ const DragHandle = /*#__PURE__*/forwardRef((props, ref) => {
3391
3391
  className,
3392
3392
  theme
3393
3393
  } = props,
3394
- forwardedProps = _objectWithoutProperties(props, _excluded$19);
3394
+ forwardedProps = _objectWithoutProperties(props, _excluded$18);
3395
3395
  return /*#__PURE__*/React__default.createElement("div", _extends({
3396
3396
  ref: ref
3397
3397
  }, forwardedProps, {
@@ -3575,7 +3575,7 @@ const useKeyboardListNavigation = function (items, ref, onListItemSelected, onLi
3575
3575
  };
3576
3576
  };
3577
3577
 
3578
- const _excluded$18 = ["after", "before", "children", "className", "isHighlighted", "isSelected", "isDisabled", "linkAs", "linkProps", "linkRef", "onItemSelected", "size"];
3578
+ const _excluded$17 = ["after", "before", "children", "className", "isHighlighted", "isSelected", "isDisabled", "linkAs", "linkProps", "linkRef", "onItemSelected", "size"];
3579
3579
 
3580
3580
  /**
3581
3581
  * Defines the props of the component.
@@ -3632,7 +3632,7 @@ const ListItem = /*#__PURE__*/forwardRef((props, ref) => {
3632
3632
  onItemSelected,
3633
3633
  size
3634
3634
  } = props,
3635
- forwardedProps = _objectWithoutProperties(props, _excluded$18);
3635
+ forwardedProps = _objectWithoutProperties(props, _excluded$17);
3636
3636
  const role = linkAs || linkProps.href ? 'link' : 'button';
3637
3637
  const onKeyDown = useMemo(() => {
3638
3638
  if (onItemSelected && role === 'link') return onEnterPressed(onItemSelected);
@@ -4135,7 +4135,7 @@ const useInteractiveList = options => {
4135
4135
  }, [items, activeItemIndex, onListItemSelected]);
4136
4136
  };
4137
4137
 
4138
- const _excluded$17 = ["children", "className", "isClickable", "itemPadding", "onListItemSelected", "tabIndex"];
4138
+ const _excluded$16 = ["children", "className", "isClickable", "itemPadding", "onListItemSelected", "tabIndex"];
4139
4139
 
4140
4140
  /**
4141
4141
  * Defines the props of the component.
@@ -4175,7 +4175,7 @@ const InternalList = /*#__PURE__*/forwardRef((props, ref) => {
4175
4175
  onListItemSelected,
4176
4176
  tabIndex
4177
4177
  } = props,
4178
- forwardedProps = _objectWithoutProperties(props, _excluded$17);
4178
+ forwardedProps = _objectWithoutProperties(props, _excluded$16);
4179
4179
  const listElementRef = useRef(null);
4180
4180
  const {
4181
4181
  items,
@@ -6600,7 +6600,7 @@ function usePopoverStyle(_ref5) {
6600
6600
  };
6601
6601
  }
6602
6602
 
6603
- const _excluded$16 = ["anchorRef", "as", "children", "className", "closeOnClickAway", "closeOnEscape", "elevation", "focusElement", "hasArrow", "isOpen", "onClose", "parentElement", "usePortal", "focusAnchorOnClose", "withFocusTrap", "boundaryRef", "fitToAnchorWidth", "fitWithinViewportHeight", "focusTrapZoneElement", "offset", "placement", "style", "theme", "zIndex"];
6603
+ const _excluded$15 = ["anchorRef", "as", "children", "className", "closeOnClickAway", "closeOnEscape", "elevation", "focusElement", "hasArrow", "isOpen", "onClose", "parentElement", "usePortal", "focusAnchorOnClose", "withFocusTrap", "boundaryRef", "fitToAnchorWidth", "fitWithinViewportHeight", "focusTrapZoneElement", "offset", "placement", "style", "theme", "zIndex"];
6604
6604
 
6605
6605
  /**
6606
6606
  * Defines the props of the component.
@@ -6660,7 +6660,7 @@ const _InnerPopover = /*#__PURE__*/forwardRef((props, ref) => {
6660
6660
  theme,
6661
6661
  zIndex
6662
6662
  } = props,
6663
- forwardedProps = _objectWithoutProperties(props, _excluded$16);
6663
+ forwardedProps = _objectWithoutProperties(props, _excluded$15);
6664
6664
  const popoverRef = useRef(null);
6665
6665
  const {
6666
6666
  styles,
@@ -6777,7 +6777,7 @@ const useInfiniteScroll = function (ref, callback) {
6777
6777
  }, [callback, callbackOnMount]);
6778
6778
  };
6779
6779
 
6780
- const _excluded$15 = ["anchorRef", "children", "className", "closeOnClick", "closeOnClickAway", "closeOnEscape", "fitToAnchorWidth", "fitWithinViewportHeight", "isOpen", "offset", "focusAnchorOnClose", "onClose", "onInfiniteScroll", "placement", "shouldFocusOnOpen", "zIndex"];
6780
+ const _excluded$14 = ["anchorRef", "children", "className", "closeOnClick", "closeOnClickAway", "closeOnEscape", "fitToAnchorWidth", "fitWithinViewportHeight", "isOpen", "offset", "focusAnchorOnClose", "onClose", "onInfiniteScroll", "placement", "shouldFocusOnOpen", "zIndex"];
6781
6781
 
6782
6782
  /**
6783
6783
  * Defines the props of the component.
@@ -6833,7 +6833,7 @@ const Dropdown = /*#__PURE__*/forwardRef((props, ref) => {
6833
6833
  shouldFocusOnOpen,
6834
6834
  zIndex
6835
6835
  } = props,
6836
- forwardedProps = _objectWithoutProperties(props, _excluded$15);
6836
+ forwardedProps = _objectWithoutProperties(props, _excluded$14);
6837
6837
  const innerRef = useRef(null);
6838
6838
  const listElement = useRef(null);
6839
6839
  useInfiniteScroll(innerRef, onInfiniteScroll);
@@ -6878,7 +6878,7 @@ Dropdown.displayName = COMPONENT_NAME$10;
6878
6878
  Dropdown.className = CLASSNAME$10;
6879
6879
  Dropdown.defaultProps = DEFAULT_PROPS$O;
6880
6880
 
6881
- const _excluded$14 = ["className", "children", "hasBackground", "hasHeaderDivider", "isOpen", "label", "onClose", "onOpen", "onToggleOpen", "theme", "toggleButtonProps"];
6881
+ const _excluded$13 = ["className", "children", "hasBackground", "hasHeaderDivider", "isOpen", "label", "onClose", "onOpen", "onToggleOpen", "theme", "toggleButtonProps"];
6882
6882
 
6883
6883
  /**
6884
6884
  * Defines the props of the component.
@@ -6925,7 +6925,7 @@ const ExpansionPanel = /*#__PURE__*/forwardRef((props, ref) => {
6925
6925
  theme,
6926
6926
  toggleButtonProps
6927
6927
  } = props,
6928
- forwardedProps = _objectWithoutProperties(props, _excluded$14);
6928
+ forwardedProps = _objectWithoutProperties(props, _excluded$13);
6929
6929
  const children = Children.toArray(anyChildren);
6930
6930
 
6931
6931
  // Partition children by types.
@@ -7004,7 +7004,7 @@ ExpansionPanel.displayName = COMPONENT_NAME$$;
7004
7004
  ExpansionPanel.className = CLASSNAME$$;
7005
7005
  ExpansionPanel.defaultProps = DEFAULT_PROPS$N;
7006
7006
 
7007
- const _excluded$13 = ["label", "icon", "color", "className", "theme", "truncate"];
7007
+ const _excluded$12 = ["label", "icon", "color", "className", "theme", "truncate"];
7008
7008
  const COMPONENT_NAME$_ = 'Flag';
7009
7009
  const CLASSNAME$_ = getRootClassName(COMPONENT_NAME$_);
7010
7010
  const DEFAULT_PROPS$M = {
@@ -7027,7 +7027,7 @@ const Flag = /*#__PURE__*/forwardRef((props, ref) => {
7027
7027
  theme,
7028
7028
  truncate
7029
7029
  } = props,
7030
- forwardedProps = _objectWithoutProperties(props, _excluded$13);
7030
+ forwardedProps = _objectWithoutProperties(props, _excluded$12);
7031
7031
  const flagColor = color || (theme === Theme.light ? ColorPalette.dark : ColorPalette.light);
7032
7032
  const isTruncated = !!truncate;
7033
7033
  return /*#__PURE__*/React__default.createElement("div", _extends({}, forwardedProps, {
@@ -7052,7 +7052,7 @@ Flag.displayName = COMPONENT_NAME$_;
7052
7052
  Flag.className = CLASSNAME$_;
7053
7053
  Flag.defaultProps = DEFAULT_PROPS$M;
7054
7054
 
7055
- const _excluded$12 = ["as", "children", "className", "fillSpace", "gap", "hAlign", "marginAuto", "noShrink", "orientation", "vAlign", "wrap"];
7055
+ const _excluded$11 = ["as", "children", "className", "fillSpace", "gap", "hAlign", "marginAuto", "noShrink", "orientation", "vAlign", "wrap"];
7056
7056
 
7057
7057
  /**
7058
7058
  * Defines the props of the component.
@@ -7089,7 +7089,7 @@ const FlexBox = /*#__PURE__*/forwardRef((props, ref) => {
7089
7089
  vAlign,
7090
7090
  wrap
7091
7091
  } = props,
7092
- forwardedProps = _objectWithoutProperties(props, _excluded$12);
7092
+ forwardedProps = _objectWithoutProperties(props, _excluded$11);
7093
7093
  return /*#__PURE__*/React__default.createElement(Component, _extends({
7094
7094
  ref: ref
7095
7095
  }, forwardedProps, {
@@ -7105,7 +7105,7 @@ const FlexBox = /*#__PURE__*/forwardRef((props, ref) => {
7105
7105
  FlexBox.displayName = COMPONENT_NAME$Z;
7106
7106
  FlexBox.className = CLASSNAME$Z;
7107
7107
 
7108
- const _excluded$11 = ["className", "figure", "figureProps", "children", "actions", "actionsProps", "gap", "orientation", "contentProps"];
7108
+ const _excluded$10 = ["className", "figure", "figureProps", "children", "actions", "actionsProps", "gap", "orientation", "contentProps"];
7109
7109
  /**
7110
7110
  * Component display name.
7111
7111
  */
@@ -7154,7 +7154,7 @@ const BaseGenericBlock = /*#__PURE__*/forwardRef((props, ref) => {
7154
7154
  orientation,
7155
7155
  contentProps
7156
7156
  } = props,
7157
- forwardedProps = _objectWithoutProperties(props, _excluded$11);
7157
+ forwardedProps = _objectWithoutProperties(props, _excluded$10);
7158
7158
  const sections = React__default.useMemo(() => {
7159
7159
  // Split children by section type
7160
7160
  const [[figureChild], [contentChild], [actionsChild], ...otherChildren] = partitionMulti(Children.toArray(children), [isFigure, isContent, isActions]);
@@ -7253,7 +7253,7 @@ const useOverflowTooltipLabel = () => {
7253
7253
  };
7254
7254
  };
7255
7255
 
7256
- const _excluded$10 = ["as", "children", "className", "color", "colorVariant", "noWrap", "typography", "truncate", "whiteSpace", "style"];
7256
+ const _excluded$$ = ["as", "children", "className", "color", "colorVariant", "noWrap", "typography", "truncate", "whiteSpace", "style"];
7257
7257
 
7258
7258
  /**
7259
7259
  * Defines the props of the component.
@@ -7294,7 +7294,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
7294
7294
  whiteSpace,
7295
7295
  style
7296
7296
  } = props,
7297
- forwardedProps = _objectWithoutProperties(props, _excluded$10);
7297
+ forwardedProps = _objectWithoutProperties(props, _excluded$$);
7298
7298
  const colorClass = color && getFontColorClassName(color, colorVariant);
7299
7299
  const typographyClass = typography && getTypographyClassName(typography);
7300
7300
 
@@ -7372,7 +7372,7 @@ const useHeadingLevel = () => {
7372
7372
  };
7373
7373
  };
7374
7374
 
7375
- const _excluded$$ = ["children", "as", "className"];
7375
+ const _excluded$_ = ["children", "as", "className"];
7376
7376
 
7377
7377
  /**
7378
7378
  * Defines the props of the component.
@@ -7404,7 +7404,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
7404
7404
  as,
7405
7405
  className
7406
7406
  } = props,
7407
- forwardedProps = _objectWithoutProperties(props, _excluded$$);
7407
+ forwardedProps = _objectWithoutProperties(props, _excluded$_);
7408
7408
  const {
7409
7409
  headingElement
7410
7410
  } = useHeadingLevel();
@@ -7445,7 +7445,7 @@ const HeadingLevelProvider = _ref => {
7445
7445
  }, children);
7446
7446
  };
7447
7447
 
7448
- const _excluded$_ = ["children", "className", "gutter", "hAlign", "orientation", "vAlign", "wrap"];
7448
+ const _excluded$Z = ["children", "className", "gutter", "hAlign", "orientation", "vAlign", "wrap"];
7449
7449
 
7450
7450
  /**
7451
7451
  * Defines the props of the component.
@@ -7486,7 +7486,7 @@ const Grid = /*#__PURE__*/forwardRef((props, ref) => {
7486
7486
  vAlign,
7487
7487
  wrap
7488
7488
  } = props,
7489
- forwardedProps = _objectWithoutProperties(props, _excluded$_);
7489
+ forwardedProps = _objectWithoutProperties(props, _excluded$Z);
7490
7490
  return /*#__PURE__*/React__default.createElement("div", _extends({
7491
7491
  ref: ref
7492
7492
  }, forwardedProps, {
@@ -7506,7 +7506,7 @@ Grid.displayName = COMPONENT_NAME$V;
7506
7506
  Grid.className = CLASSNAME$V;
7507
7507
  Grid.defaultProps = DEFAULT_PROPS$I;
7508
7508
 
7509
- const _excluded$Z = ["children", "className", "width", "align", "order"];
7509
+ const _excluded$Y = ["children", "className", "width", "align", "order"];
7510
7510
 
7511
7511
  /**
7512
7512
  * Defines the props of the component.
@@ -7537,7 +7537,7 @@ const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
7537
7537
  align,
7538
7538
  order
7539
7539
  } = props,
7540
- forwardedProps = _objectWithoutProperties(props, _excluded$Z);
7540
+ forwardedProps = _objectWithoutProperties(props, _excluded$Y);
7541
7541
  return /*#__PURE__*/React__default.createElement("div", _extends({
7542
7542
  ref: ref
7543
7543
  }, forwardedProps, {
@@ -7552,7 +7552,7 @@ const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
7552
7552
  GridItem.displayName = COMPONENT_NAME$U;
7553
7553
  GridItem.className = CLASSNAME$U;
7554
7554
 
7555
- const _excluded$Y = ["as", "gap", "maxColumns", "itemMinWidth", "children", "className", "style"];
7555
+ const _excluded$X = ["as", "gap", "maxColumns", "itemMinWidth", "children", "className", "style"];
7556
7556
 
7557
7557
  /**
7558
7558
  * Defines the props of the component.
@@ -7592,7 +7592,7 @@ const GridColumn = /*#__PURE__*/forwardRef((props, ref) => {
7592
7592
  className,
7593
7593
  style = {}
7594
7594
  } = props,
7595
- forwardedProps = _objectWithoutProperties(props, _excluded$Y);
7595
+ forwardedProps = _objectWithoutProperties(props, _excluded$X);
7596
7596
  return /*#__PURE__*/React__default.createElement(Component, _extends({}, forwardedProps, {
7597
7597
  ref: ref,
7598
7598
  className: classnames(className, handleBasicClasses({
@@ -7609,7 +7609,7 @@ GridColumn.displayName = COMPONENT_NAME$T;
7609
7609
  GridColumn.className = CLASSNAME$T;
7610
7610
  GridColumn.defaultProps = DEFAULT_PROPS$H;
7611
7611
 
7612
- const _excluded$X = ["className", "color", "colorVariant", "hasShape", "icon", "size", "theme", "alt"];
7612
+ const _excluded$W = ["className", "color", "colorVariant", "hasShape", "icon", "size", "theme", "alt"];
7613
7613
 
7614
7614
  /**
7615
7615
  * Defines the props of the component.
@@ -7648,7 +7648,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
7648
7648
  theme,
7649
7649
  alt
7650
7650
  } = props,
7651
- forwardedProps = _objectWithoutProperties(props, _excluded$X);
7651
+ forwardedProps = _objectWithoutProperties(props, _excluded$W);
7652
7652
 
7653
7653
  // Color
7654
7654
  let iconColor = color;
@@ -7761,7 +7761,7 @@ const ImageCaption = props => {
7761
7761
  }, tags));
7762
7762
  };
7763
7763
 
7764
- const _excluded$W = ["actions", "align", "alt", "captionPosition", "captionStyle", "className", "description", "descriptionProps", "fillHeight", "image", "size", "tags", "theme", "thumbnailProps", "title", "titleProps"];
7764
+ const _excluded$V = ["actions", "align", "alt", "captionPosition", "captionStyle", "className", "description", "descriptionProps", "fillHeight", "image", "size", "tags", "theme", "thumbnailProps", "title", "titleProps"];
7765
7765
 
7766
7766
  /**
7767
7767
  * Image block variants.
@@ -7824,7 +7824,7 @@ const ImageBlock = /*#__PURE__*/forwardRef((props, ref) => {
7824
7824
  title,
7825
7825
  titleProps
7826
7826
  } = props,
7827
- forwardedProps = _objectWithoutProperties(props, _excluded$W);
7827
+ forwardedProps = _objectWithoutProperties(props, _excluded$V);
7828
7828
  return /*#__PURE__*/React__default.createElement("figure", _extends({
7829
7829
  ref: ref
7830
7830
  }, forwardedProps, {
@@ -8213,7 +8213,7 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
8213
8213
  }));
8214
8214
  }, isEqual);
8215
8215
 
8216
- const _excluded$V = ["image", "imgRef"];
8216
+ const _excluded$U = ["image", "imgRef"];
8217
8217
  /** Internal image slideshow component for ImageLightbox */
8218
8218
  const ImageSlideshow = _ref => {
8219
8219
  var _images$activeIndex, _images$activeIndex2, _images$activeIndex3;
@@ -8232,6 +8232,7 @@ const ImageSlideshow = _ref => {
8232
8232
  activeIndex,
8233
8233
  slideshowId,
8234
8234
  setSlideshow,
8235
+ slideshow,
8235
8236
  slideshowSlidesId,
8236
8237
  slidesCount,
8237
8238
  onNextClick,
@@ -8263,7 +8264,8 @@ const ImageSlideshow = _ref => {
8263
8264
  slidesCount: slidesCount,
8264
8265
  onNextClick: onNextClick,
8265
8266
  onPreviousClick: onPreviousClick,
8266
- onPaginationClick: onPaginationClick
8267
+ onPaginationClick: onPaginationClick,
8268
+ parentRef: slideshow
8267
8269
  }, slideshowControlsProps, {
8268
8270
  paginationItemProps: index => {
8269
8271
  var _slideshowControlsPro;
@@ -8330,7 +8332,7 @@ const ImageSlideshow = _ref => {
8330
8332
  image,
8331
8333
  imgRef
8332
8334
  } = _ref2,
8333
- imageProps = _objectWithoutProperties(_ref2, _excluded$V);
8335
+ imageProps = _objectWithoutProperties(_ref2, _excluded$U);
8334
8336
  const isActive = index === activeIndex;
8335
8337
  return /*#__PURE__*/React__default.createElement(ImageSlide, {
8336
8338
  isActive: isActive,
@@ -8541,7 +8543,7 @@ function useImageLightbox(props) {
8541
8543
  };
8542
8544
  }
8543
8545
 
8544
- const _excluded$U = ["className", "isOpen", "closeButtonProps", "onClose", "parentElement", "activeImageIndex", "slideshowControlsProps", "slideGroupLabel", "images", "zoomOutButtonProps", "zoomInButtonProps", "activeImageRef"];
8546
+ const _excluded$T = ["className", "isOpen", "closeButtonProps", "onClose", "parentElement", "activeImageIndex", "slideshowControlsProps", "slideGroupLabel", "images", "zoomOutButtonProps", "zoomInButtonProps", "activeImageRef"];
8545
8547
  const Inner = /*#__PURE__*/forwardRef((props, ref) => {
8546
8548
  const {
8547
8549
  className,
@@ -8557,7 +8559,7 @@ const Inner = /*#__PURE__*/forwardRef((props, ref) => {
8557
8559
  zoomInButtonProps,
8558
8560
  activeImageRef: propImageRef
8559
8561
  } = props,
8560
- forwardedProps = _objectWithoutProperties(props, _excluded$U);
8562
+ forwardedProps = _objectWithoutProperties(props, _excluded$T);
8561
8563
  const currentPaginationItemRef = React__default.useRef(null);
8562
8564
  const footerRef = React__default.useRef(null);
8563
8565
  const imageRef = React__default.useRef(null);
@@ -8610,7 +8612,7 @@ const ImageLightbox = Object.assign(Inner, {
8610
8612
  useImageLightbox
8611
8613
  });
8612
8614
 
8613
- const _excluded$T = ["className", "color", "colorVariant", "typography", "children", "wrap"];
8615
+ const _excluded$S = ["className", "color", "colorVariant", "typography", "children", "wrap"];
8614
8616
 
8615
8617
  /**
8616
8618
  * Defines the props of the component.
@@ -8647,7 +8649,7 @@ const InlineList = /*#__PURE__*/forwardRef((props, ref) => {
8647
8649
  children,
8648
8650
  wrap
8649
8651
  } = props,
8650
- forwardedProps = _objectWithoutProperties(props, _excluded$T);
8652
+ forwardedProps = _objectWithoutProperties(props, _excluded$S);
8651
8653
  const fontColorClassName = color && getFontColorClassName(color, colorVariant);
8652
8654
  const typographyClassName = typography && getTypographyClassName(typography);
8653
8655
  return (
@@ -8693,7 +8695,7 @@ const INPUT_HELPER_CONFIGURATION = {
8693
8695
  }
8694
8696
  };
8695
8697
 
8696
- const _excluded$S = ["children", "className", "kind", "theme"];
8698
+ const _excluded$R = ["children", "className", "kind", "theme"];
8697
8699
 
8698
8700
  /**
8699
8701
  * Defines the props of the component.
@@ -8731,7 +8733,7 @@ const InputHelper = /*#__PURE__*/forwardRef((props, ref) => {
8731
8733
  kind,
8732
8734
  theme
8733
8735
  } = props,
8734
- forwardedProps = _objectWithoutProperties(props, _excluded$S);
8736
+ forwardedProps = _objectWithoutProperties(props, _excluded$R);
8735
8737
  const {
8736
8738
  color
8737
8739
  } = INPUT_HELPER_CONFIGURATION[kind] || {};
@@ -8749,7 +8751,7 @@ InputHelper.displayName = COMPONENT_NAME$O;
8749
8751
  InputHelper.className = CLASSNAME$O;
8750
8752
  InputHelper.defaultProps = DEFAULT_PROPS$D;
8751
8753
 
8752
- const _excluded$R = ["children", "className", "htmlFor", "isRequired", "theme"];
8754
+ const _excluded$Q = ["children", "className", "htmlFor", "isRequired", "theme"];
8753
8755
 
8754
8756
  /**
8755
8757
  * Defines the props of the component.
@@ -8787,7 +8789,7 @@ const InputLabel = /*#__PURE__*/forwardRef((props, ref) => {
8787
8789
  isRequired,
8788
8790
  theme
8789
8791
  } = props,
8790
- forwardedProps = _objectWithoutProperties(props, _excluded$R);
8792
+ forwardedProps = _objectWithoutProperties(props, _excluded$Q);
8791
8793
  return /*#__PURE__*/React__default.createElement("label", _extends({
8792
8794
  ref: ref
8793
8795
  }, forwardedProps, {
@@ -8803,7 +8805,7 @@ InputLabel.displayName = COMPONENT_NAME$N;
8803
8805
  InputLabel.className = CLASSNAME$N;
8804
8806
  InputLabel.defaultProps = DEFAULT_PROPS$C;
8805
8807
 
8806
- const _excluded$Q = ["aria-labelledby", "ariaLabelledBy", "aria-label", "ariaLabel", "children", "className", "closeButtonProps", "isOpen", "onClose", "parentElement", "focusElement", "preventAutoClose", "theme", "zIndex"];
8808
+ const _excluded$P = ["aria-labelledby", "ariaLabelledBy", "aria-label", "ariaLabel", "children", "className", "closeButtonProps", "isOpen", "onClose", "parentElement", "focusElement", "preventAutoClose", "theme", "zIndex"];
8807
8809
 
8808
8810
  /**
8809
8811
  * Defines the props of the component.
@@ -8843,7 +8845,7 @@ const Lightbox = /*#__PURE__*/forwardRef((props, ref) => {
8843
8845
  theme,
8844
8846
  zIndex
8845
8847
  } = props,
8846
- forwardedProps = _objectWithoutProperties(props, _excluded$Q);
8848
+ forwardedProps = _objectWithoutProperties(props, _excluded$P);
8847
8849
  if (!DOCUMENT) {
8848
8850
  // Can't render in SSR.
8849
8851
  return null;
@@ -8934,7 +8936,7 @@ const Lightbox = /*#__PURE__*/forwardRef((props, ref) => {
8934
8936
  Lightbox.displayName = COMPONENT_NAME$M;
8935
8937
  Lightbox.className = CLASSNAME$M;
8936
8938
 
8937
- const _excluded$P = ["children", "className", "color", "colorVariant", "disabled", "isDisabled", "href", "leftIcon", "linkAs", "rightIcon", "target", "typography"];
8939
+ const _excluded$O = ["children", "className", "color", "colorVariant", "disabled", "isDisabled", "href", "leftIcon", "linkAs", "rightIcon", "target", "typography"];
8938
8940
 
8939
8941
  /**
8940
8942
  * Defines the props of the component.
@@ -8997,7 +8999,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
8997
8999
  target,
8998
9000
  typography
8999
9001
  } = props,
9000
- forwardedProps = _objectWithoutProperties(props, _excluded$P);
9002
+ forwardedProps = _objectWithoutProperties(props, _excluded$O);
9001
9003
  const renderedChildren = useMemo(() => /*#__PURE__*/React__default.createElement(React__default.Fragment, null, leftIcon && !isEmpty(leftIcon) && /*#__PURE__*/React__default.createElement(Icon, {
9002
9004
  icon: leftIcon,
9003
9005
  className: `${CLASSNAME$L}__left-icon`,
@@ -9045,7 +9047,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
9045
9047
  Link.displayName = COMPONENT_NAME$L;
9046
9048
  Link.className = CLASSNAME$L;
9047
9049
 
9048
- const _excluded$O = ["className", "description", "link", "linkAs", "linkProps", "size", "theme", "thumbnailProps", "title", "titleHeading"];
9050
+ const _excluded$N = ["className", "description", "link", "linkAs", "linkProps", "size", "theme", "thumbnailProps", "title", "titleHeading"];
9049
9051
 
9050
9052
  /**
9051
9053
  * Defines the props of the component.
@@ -9090,7 +9092,7 @@ const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
9090
9092
  title,
9091
9093
  titleHeading
9092
9094
  } = props,
9093
- forwardedProps = _objectWithoutProperties(props, _excluded$O);
9095
+ forwardedProps = _objectWithoutProperties(props, _excluded$N);
9094
9096
  // Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
9095
9097
  const TitleHeading = titleHeading;
9096
9098
  return /*#__PURE__*/React__default.createElement("article", _extends({
@@ -9145,7 +9147,7 @@ LinkPreview.displayName = COMPONENT_NAME$K;
9145
9147
  LinkPreview.className = CLASSNAME$K;
9146
9148
  LinkPreview.defaultProps = DEFAULT_PROPS$B;
9147
9149
 
9148
- const _excluded$N = ["className"];
9150
+ const _excluded$M = ["className"];
9149
9151
 
9150
9152
  /**
9151
9153
  * Defines the props of the component.
@@ -9172,7 +9174,7 @@ const ListDivider = /*#__PURE__*/forwardRef((props, ref) => {
9172
9174
  const {
9173
9175
  className
9174
9176
  } = props,
9175
- forwardedProps = _objectWithoutProperties(props, _excluded$N);
9177
+ forwardedProps = _objectWithoutProperties(props, _excluded$M);
9176
9178
  return /*#__PURE__*/React__default.createElement("li", _extends({
9177
9179
  ref: ref
9178
9180
  }, forwardedProps, {
@@ -9184,7 +9186,7 @@ const ListDivider = /*#__PURE__*/forwardRef((props, ref) => {
9184
9186
  ListDivider.displayName = COMPONENT_NAME$J;
9185
9187
  ListDivider.className = CLASSNAME$J;
9186
9188
 
9187
- const _excluded$M = ["children", "className"];
9189
+ const _excluded$L = ["children", "className"];
9188
9190
 
9189
9191
  /**
9190
9192
  * Defines the props of the component.
@@ -9212,7 +9214,7 @@ const ListSubheader = /*#__PURE__*/forwardRef((props, ref) => {
9212
9214
  children,
9213
9215
  className
9214
9216
  } = props,
9215
- forwardedProps = _objectWithoutProperties(props, _excluded$M);
9217
+ forwardedProps = _objectWithoutProperties(props, _excluded$L);
9216
9218
  return /*#__PURE__*/React__default.createElement("li", _extends({
9217
9219
  ref: ref
9218
9220
  }, forwardedProps, {
@@ -9224,7 +9226,7 @@ const ListSubheader = /*#__PURE__*/forwardRef((props, ref) => {
9224
9226
  ListSubheader.displayName = COMPONENT_NAME$I;
9225
9227
  ListSubheader.className = CLASSNAME$I;
9226
9228
 
9227
- const _excluded$L = ["children", "className", "hasBackground", "kind", "icon", "closeButtonProps"];
9229
+ const _excluded$K = ["children", "className", "hasBackground", "kind", "icon", "closeButtonProps"];
9228
9230
 
9229
9231
  /**
9230
9232
  * Defines the props of the component.
@@ -9278,7 +9280,7 @@ const Message = /*#__PURE__*/forwardRef((props, ref) => {
9278
9280
  icon: customIcon,
9279
9281
  closeButtonProps
9280
9282
  } = props,
9281
- forwardedProps = _objectWithoutProperties(props, _excluded$L);
9283
+ forwardedProps = _objectWithoutProperties(props, _excluded$K);
9282
9284
  const {
9283
9285
  color,
9284
9286
  icon
@@ -9313,7 +9315,7 @@ const Message = /*#__PURE__*/forwardRef((props, ref) => {
9313
9315
  Message.displayName = COMPONENT_NAME$H;
9314
9316
  Message.className = CLASSNAME$H;
9315
9317
 
9316
- const _excluded$K = ["className", "theme", "thumbnails", "onImageClick"],
9318
+ const _excluded$J = ["className", "theme", "thumbnails", "onImageClick"],
9317
9319
  _excluded2$2 = ["image", "onClick", "align"];
9318
9320
 
9319
9321
  /**
@@ -9351,7 +9353,7 @@ const Mosaic = /*#__PURE__*/forwardRef((props, ref) => {
9351
9353
  thumbnails,
9352
9354
  onImageClick
9353
9355
  } = props,
9354
- forwardedProps = _objectWithoutProperties(props, _excluded$K);
9356
+ forwardedProps = _objectWithoutProperties(props, _excluded$J);
9355
9357
  const handleImageClick = useMemo(() => {
9356
9358
  if (!onImageClick) return undefined;
9357
9359
  return (index, onClick) => event => {
@@ -9406,7 +9408,7 @@ function forwardRefPolymorphic(render) {
9406
9408
  return /*#__PURE__*/React__default.forwardRef(render);
9407
9409
  }
9408
9410
 
9409
- const _excluded$J = ["className", "icon", "label", "isCurrentPage", "as"];
9411
+ const _excluded$I = ["className", "icon", "label", "isCurrentPage", "as"];
9410
9412
 
9411
9413
  /** Make `href` required when `as` is `a` */
9412
9414
 
@@ -9431,7 +9433,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
9431
9433
  isCurrentPage,
9432
9434
  as: Element = 'a'
9433
9435
  } = props,
9434
- forwardedProps = _objectWithoutProperties(props, _excluded$J);
9436
+ forwardedProps = _objectWithoutProperties(props, _excluded$I);
9435
9437
  const theme = useContext(ThemeContext);
9436
9438
  const {
9437
9439
  tooltipLabel,
@@ -9475,7 +9477,7 @@ const NavigationContext = /*#__PURE__*/createContext({
9475
9477
  orientation: Orientation.vertical
9476
9478
  });
9477
9479
 
9478
- const _excluded$I = ["children", "className", "label", "icon"];
9480
+ const _excluded$H = ["children", "className", "label", "icon"];
9479
9481
  /**
9480
9482
  * Component display name.
9481
9483
  */
@@ -9492,7 +9494,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
9492
9494
  label,
9493
9495
  icon
9494
9496
  } = props,
9495
- forwardedProps = _objectWithoutProperties(props, _excluded$I);
9497
+ forwardedProps = _objectWithoutProperties(props, _excluded$H);
9496
9498
  const [isOpen, setIsOpen] = useState(false);
9497
9499
  const buttonRef = useRef(null);
9498
9500
  const sectionId = useId();
@@ -9557,7 +9559,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
9557
9559
  className: CLASSNAME$E
9558
9560
  });
9559
9561
 
9560
- const _excluded$H = ["children", "className", "theme", "orientation"];
9562
+ const _excluded$G = ["children", "className", "theme", "orientation"];
9561
9563
  /**
9562
9564
  * Component display name.
9563
9565
  */
@@ -9577,7 +9579,7 @@ forwardRef((props, ref) => {
9577
9579
  theme,
9578
9580
  orientation
9579
9581
  } = props,
9580
- forwardedProps = _objectWithoutProperties(props, _excluded$H);
9582
+ forwardedProps = _objectWithoutProperties(props, _excluded$G);
9581
9583
  return /*#__PURE__*/React__default.createElement(ThemeContext.Provider, {
9582
9584
  value: theme
9583
9585
  }, /*#__PURE__*/React__default.createElement("nav", _extends({
@@ -9628,7 +9630,7 @@ const NOTIFICATION_CONFIGURATION = {
9628
9630
  }
9629
9631
  };
9630
9632
 
9631
- const _excluded$G = ["actionLabel", "className", "content", "isOpen", "onActionClick", "onClick", "theme", "type", "zIndex", "usePortal", "style"];
9633
+ const _excluded$F = ["actionLabel", "className", "content", "isOpen", "onActionClick", "onClick", "theme", "type", "zIndex", "usePortal", "style"];
9632
9634
 
9633
9635
  /**
9634
9636
  * Defines the props of the component.
@@ -9675,7 +9677,7 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
9675
9677
  usePortal,
9676
9678
  style
9677
9679
  } = props,
9678
- forwardedProps = _objectWithoutProperties(props, _excluded$G);
9680
+ forwardedProps = _objectWithoutProperties(props, _excluded$F);
9679
9681
  if (!DOCUMENT) {
9680
9682
  // Can't render in SSR.
9681
9683
  return null;
@@ -9733,7 +9735,7 @@ Notification.displayName = COMPONENT_NAME$C;
9733
9735
  Notification.className = CLASSNAME$C;
9734
9736
  Notification.defaultProps = DEFAULT_PROPS$z;
9735
9737
 
9736
- const _excluded$F = ["children", "isOpen", "focusElement", "aria-label", "label", "className"];
9738
+ const _excluded$E = ["children", "isOpen", "focusElement", "aria-label", "label", "className"];
9737
9739
 
9738
9740
  /**
9739
9741
  * PopoverDialog props.
@@ -9771,7 +9773,7 @@ const PopoverDialog = /*#__PURE__*/forwardRef((props, ref) => {
9771
9773
  label = ariaLabel,
9772
9774
  className
9773
9775
  } = props,
9774
- forwardedProps = _objectWithoutProperties(props, _excluded$F);
9776
+ forwardedProps = _objectWithoutProperties(props, _excluded$E);
9775
9777
  return /*#__PURE__*/React__default.createElement(Popover, _extends({}, forwardedProps, {
9776
9778
  ref: ref,
9777
9779
  className: classnames(className, handleBasicClasses({
@@ -9795,7 +9797,7 @@ PopoverDialog.displayName = COMPONENT_NAME$B;
9795
9797
  PopoverDialog.className = CLASSNAME$B;
9796
9798
  PopoverDialog.defaultProps = DEFAULT_PROPS$y;
9797
9799
 
9798
- const _excluded$E = ["actions", "attachments", "author", "className", "meta", "onClick", "orientation", "tags", "text", "theme", "thumbnailProps", "title"];
9800
+ const _excluded$D = ["actions", "attachments", "author", "className", "meta", "onClick", "orientation", "tags", "text", "theme", "thumbnailProps", "title"];
9799
9801
 
9800
9802
  /**
9801
9803
  * Defines the props of the component.
@@ -9841,7 +9843,7 @@ const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
9841
9843
  thumbnailProps,
9842
9844
  title
9843
9845
  } = props,
9844
- forwardedProps = _objectWithoutProperties(props, _excluded$E);
9846
+ forwardedProps = _objectWithoutProperties(props, _excluded$D);
9845
9847
  return /*#__PURE__*/React__default.createElement("div", _extends({
9846
9848
  ref: ref,
9847
9849
  className: classnames(className, handleBasicClasses({
@@ -9886,7 +9888,7 @@ PostBlock.displayName = COMPONENT_NAME$A;
9886
9888
  PostBlock.className = CLASSNAME$A;
9887
9889
  PostBlock.defaultProps = DEFAULT_PROPS$x;
9888
9890
 
9889
- const _excluded$D = ["className", "theme"];
9891
+ const _excluded$C = ["className", "theme"];
9890
9892
  /**
9891
9893
  * Component display name.
9892
9894
  */
@@ -9916,7 +9918,7 @@ const ProgressLinear = /*#__PURE__*/forwardRef((props, ref) => {
9916
9918
  className,
9917
9919
  theme
9918
9920
  } = props,
9919
- forwardedProps = _objectWithoutProperties(props, _excluded$D);
9921
+ forwardedProps = _objectWithoutProperties(props, _excluded$C);
9920
9922
  return /*#__PURE__*/React__default.createElement("div", _extends({
9921
9923
  ref: ref
9922
9924
  }, forwardedProps, {
@@ -9934,7 +9936,7 @@ ProgressLinear.displayName = COMPONENT_NAME$z;
9934
9936
  ProgressLinear.className = CLASSNAME$z;
9935
9937
  ProgressLinear.defaultProps = DEFAULT_PROPS$w;
9936
9938
 
9937
- const _excluded$C = ["className", "theme", "size"];
9939
+ const _excluded$B = ["className", "theme", "size"];
9938
9940
 
9939
9941
  /**
9940
9942
  * Progress sizes.
@@ -9975,7 +9977,7 @@ const ProgressCircular = /*#__PURE__*/forwardRef((props, ref) => {
9975
9977
  theme,
9976
9978
  size
9977
9979
  } = props,
9978
- forwardedProps = _objectWithoutProperties(props, _excluded$C);
9980
+ forwardedProps = _objectWithoutProperties(props, _excluded$B);
9979
9981
  return /*#__PURE__*/React__default.createElement("div", _extends({
9980
9982
  ref: ref
9981
9983
  }, forwardedProps, {
@@ -10004,7 +10006,7 @@ ProgressCircular.displayName = COMPONENT_NAME$y;
10004
10006
  ProgressCircular.className = CLASSNAME$y;
10005
10007
  ProgressCircular.defaultProps = DEFAULT_PROPS$v;
10006
10008
 
10007
- const _excluded$B = ["className", "theme", "variant"];
10009
+ const _excluded$A = ["className", "theme", "variant"];
10008
10010
 
10009
10011
  /**
10010
10012
  * Progress variants.
@@ -10050,7 +10052,7 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
10050
10052
  theme,
10051
10053
  variant
10052
10054
  } = props,
10053
- forwardedProps = _objectWithoutProperties(props, _excluded$B);
10055
+ forwardedProps = _objectWithoutProperties(props, _excluded$A);
10054
10056
  return /*#__PURE__*/React__default.createElement("div", _extends({
10055
10057
  ref: ref
10056
10058
  }, forwardedProps, {
@@ -10187,7 +10189,7 @@ const useTabProviderContextState = () => {
10187
10189
  return context === null || context === void 0 ? void 0 : context[0];
10188
10190
  };
10189
10191
 
10190
- const _excluded$A = ["children", "onChange"];
10192
+ const _excluded$z = ["children", "onChange"];
10191
10193
  const DEFAULT_PROPS$t = {
10192
10194
  isLazy: INIT_STATE.isLazy,
10193
10195
  shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
@@ -10209,7 +10211,7 @@ const ProgressTrackerProvider = props => {
10209
10211
  children,
10210
10212
  onChange
10211
10213
  } = props,
10212
- propState = _objectWithoutProperties(props, _excluded$A);
10214
+ propState = _objectWithoutProperties(props, _excluded$z);
10213
10215
  const [state, dispatch] = useReducer(reducer, INIT_STATE);
10214
10216
 
10215
10217
  // On prop state change => dispatch update.
@@ -10313,7 +10315,7 @@ const useRovingTabIndex = _ref => {
10313
10315
  [parentRef, ...extraDependencies]);
10314
10316
  };
10315
10317
 
10316
- const _excluded$z = ["aria-label", "children", "className"];
10318
+ const _excluded$y = ["aria-label", "children", "className"];
10317
10319
 
10318
10320
  /**
10319
10321
  * Defines the props of the component.
@@ -10350,7 +10352,7 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
10350
10352
  children,
10351
10353
  className
10352
10354
  } = props,
10353
- forwardedProps = _objectWithoutProperties(props, _excluded$z);
10355
+ forwardedProps = _objectWithoutProperties(props, _excluded$y);
10354
10356
  const stepListRef = React__default.useRef(null);
10355
10357
  useRovingTabIndex({
10356
10358
  parentRef: stepListRef,
@@ -10391,7 +10393,7 @@ ProgressTracker.displayName = COMPONENT_NAME$w;
10391
10393
  ProgressTracker.className = CLASSNAME$w;
10392
10394
  ProgressTracker.defaultProps = DEFAULT_PROPS$s;
10393
10395
 
10394
- const _excluded$y = ["className", "disabled", "hasError", "helper", "id", "isActive", "isComplete", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
10396
+ const _excluded$x = ["className", "disabled", "hasError", "helper", "id", "isActive", "isComplete", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
10395
10397
 
10396
10398
  /**
10397
10399
  * Defines the props of the component.
@@ -10436,7 +10438,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
10436
10438
  onKeyPress,
10437
10439
  tabIndex = -1
10438
10440
  } = props,
10439
- forwardedProps = _objectWithoutProperties(props, _excluded$y);
10441
+ forwardedProps = _objectWithoutProperties(props, _excluded$x);
10440
10442
  const state = useTabProviderContext('tab', id);
10441
10443
  const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
10442
10444
  const changeToCurrentTab = useCallback(() => {
@@ -10503,7 +10505,7 @@ ProgressTrackerStep.displayName = COMPONENT_NAME$v;
10503
10505
  ProgressTrackerStep.className = CLASSNAME$v;
10504
10506
  ProgressTrackerStep.defaultProps = DEFAULT_PROPS$r;
10505
10507
 
10506
- const _excluded$x = ["children", "id", "className", "isActive"];
10508
+ const _excluded$w = ["children", "id", "className", "isActive"];
10507
10509
 
10508
10510
  /**
10509
10511
  * Defines the props of the component.
@@ -10540,7 +10542,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
10540
10542
  className,
10541
10543
  isActive: propIsActive
10542
10544
  } = props,
10543
- forwardedProps = _objectWithoutProperties(props, _excluded$x);
10545
+ forwardedProps = _objectWithoutProperties(props, _excluded$w);
10544
10546
  const state = useTabProviderContext('tabPanel', id);
10545
10547
  const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
10546
10548
  return /*#__PURE__*/React__default.createElement("div", _extends({
@@ -10560,7 +10562,7 @@ ProgressTrackerStepPanel.displayName = COMPONENT_NAME$u;
10560
10562
  ProgressTrackerStepPanel.className = CLASSNAME$u;
10561
10563
  ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$q;
10562
10564
 
10563
- const _excluded$w = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
10565
+ const _excluded$v = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
10564
10566
 
10565
10567
  /**
10566
10568
  * Defines the props of the component.
@@ -10607,7 +10609,7 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
10607
10609
  value,
10608
10610
  inputProps
10609
10611
  } = props,
10610
- forwardedProps = _objectWithoutProperties(props, _excluded$w);
10612
+ forwardedProps = _objectWithoutProperties(props, _excluded$v);
10611
10613
  const generatedInputId = useId();
10612
10614
  const inputId = id || generatedInputId;
10613
10615
  const handleChange = event => {
@@ -10661,7 +10663,7 @@ RadioButton.displayName = COMPONENT_NAME$t;
10661
10663
  RadioButton.className = CLASSNAME$t;
10662
10664
  RadioButton.defaultProps = DEFAULT_PROPS$p;
10663
10665
 
10664
- const _excluded$v = ["children", "className"];
10666
+ const _excluded$u = ["children", "className"];
10665
10667
 
10666
10668
  /**
10667
10669
  * Defines the props of the component.
@@ -10689,7 +10691,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
10689
10691
  children,
10690
10692
  className
10691
10693
  } = props,
10692
- forwardedProps = _objectWithoutProperties(props, _excluded$v);
10694
+ forwardedProps = _objectWithoutProperties(props, _excluded$u);
10693
10695
  return /*#__PURE__*/React__default.createElement("div", _extends({
10694
10696
  ref: ref
10695
10697
  }, forwardedProps, {
@@ -10733,7 +10735,7 @@ const SelectVariant = {
10733
10735
  chip: 'chip'
10734
10736
  };
10735
10737
 
10736
- const _excluded$u = ["children", "className", "focusElement", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"];
10738
+ const _excluded$t = ["children", "className", "focusElement", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"];
10737
10739
 
10738
10740
  /** The display name of the component. */
10739
10741
  const COMPONENT_NAME$r = 'Select';
@@ -10773,7 +10775,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
10773
10775
  value,
10774
10776
  variant = DEFAULT_PROPS$o.variant
10775
10777
  } = _ref,
10776
- forwardedProps = _objectWithoutProperties(_ref, _excluded$u);
10778
+ forwardedProps = _objectWithoutProperties(_ref, _excluded$t);
10777
10779
  const generatedSelectId = useId();
10778
10780
  const selectId = id || generatedSelectId;
10779
10781
  const anchorRef = useRef(null);
@@ -10848,7 +10850,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
10848
10850
  }, helper));
10849
10851
  };
10850
10852
 
10851
- const _excluded$t = ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
10853
+ const _excluded$s = ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
10852
10854
 
10853
10855
  /** The display name of the component. */
10854
10856
  const COMPONENT_NAME$q = 'Select';
@@ -10888,7 +10890,7 @@ const SelectField = _ref => {
10888
10890
  variant,
10889
10891
  selectElementRef
10890
10892
  } = _ref,
10891
- forwardedProps = _objectWithoutProperties(_ref, _excluded$t);
10893
+ forwardedProps = _objectWithoutProperties(_ref, _excluded$s);
10892
10894
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement("div", {
10893
10895
  className: `${CLASSNAME$q}__header`
10894
10896
  }, /*#__PURE__*/React__default.createElement(InputLabel, {
@@ -10968,7 +10970,7 @@ Select.className = CLASSNAME$q;
10968
10970
  Select.defaultProps = DEFAULT_PROPS$n;
10969
10971
  Select.className = CLASSNAME$q;
10970
10972
 
10971
- const _excluded$s = ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
10973
+ const _excluded$r = ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
10972
10974
 
10973
10975
  /** Defines the props of the component. */
10974
10976
 
@@ -11019,7 +11021,7 @@ const SelectMultipleField = _ref => {
11019
11021
  variant,
11020
11022
  selectElementRef
11021
11023
  } = _ref,
11022
- forwardedProps = _objectWithoutProperties(_ref, _excluded$s);
11024
+ forwardedProps = _objectWithoutProperties(_ref, _excluded$r);
11023
11025
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label && /*#__PURE__*/React__default.createElement("div", {
11024
11026
  className: `${CLASSNAME$p}__header`
11025
11027
  }, /*#__PURE__*/React__default.createElement(InputLabel, {
@@ -11089,7 +11091,7 @@ SelectMultiple.displayName = COMPONENT_NAME$p;
11089
11091
  SelectMultiple.className = CLASSNAME$p;
11090
11092
  SelectMultiple.defaultProps = DEFAULT_PROPS$m;
11091
11093
 
11092
- const _excluded$r = ["children", "className", "theme"];
11094
+ const _excluded$q = ["children", "className", "theme"];
11093
11095
 
11094
11096
  /**
11095
11097
  * Defines the props of the component.
@@ -11118,7 +11120,7 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
11118
11120
  className,
11119
11121
  theme
11120
11122
  } = props,
11121
- forwardedProps = _objectWithoutProperties(props, _excluded$r);
11123
+ forwardedProps = _objectWithoutProperties(props, _excluded$q);
11122
11124
  const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
11123
11125
  return /*#__PURE__*/React__default.createElement("ul", _extends({
11124
11126
  ref: ref
@@ -11131,7 +11133,7 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
11131
11133
  SideNavigation.displayName = COMPONENT_NAME$o;
11132
11134
  SideNavigation.className = CLASSNAME$o;
11133
11135
 
11134
- const _excluded$q = ["linkAs", "href"];
11136
+ const _excluded$p = ["linkAs", "href"];
11135
11137
  /**
11136
11138
  * Render <button> HTML component, fallbacks to `<a>` when a `href` is provided or a custom component with `linkAs`.
11137
11139
  */
@@ -11140,7 +11142,7 @@ const renderButtonOrLink = function (props) {
11140
11142
  linkAs,
11141
11143
  href
11142
11144
  } = props,
11143
- forwardedProps = _objectWithoutProperties(props, _excluded$q);
11145
+ forwardedProps = _objectWithoutProperties(props, _excluded$p);
11144
11146
  for (var _len = arguments.length, children = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
11145
11147
  children[_key - 1] = arguments[_key];
11146
11148
  }
@@ -11150,7 +11152,7 @@ const renderButtonOrLink = function (props) {
11150
11152
  }, forwardedProps), ...children);
11151
11153
  };
11152
11154
 
11153
- const _excluded$p = ["children", "className", "emphasis", "icon", "isOpen", "isSelected", "label", "linkAs", "linkProps", "onActionClick", "onClick", "toggleButtonProps", "closeMode"];
11155
+ const _excluded$o = ["children", "className", "emphasis", "icon", "isOpen", "isSelected", "label", "linkAs", "linkProps", "onActionClick", "onClick", "toggleButtonProps", "closeMode"];
11154
11156
 
11155
11157
  /**
11156
11158
  * Defines the props of the component.
@@ -11197,7 +11199,7 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
11197
11199
  toggleButtonProps,
11198
11200
  closeMode = 'unmount'
11199
11201
  } = props,
11200
- forwardedProps = _objectWithoutProperties(props, _excluded$p);
11202
+ forwardedProps = _objectWithoutProperties(props, _excluded$o);
11201
11203
  const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
11202
11204
  const hasContent = !isEmpty(content);
11203
11205
  const shouldSplitActions = Boolean(onActionClick);
@@ -11259,7 +11261,7 @@ SideNavigationItem.displayName = COMPONENT_NAME$n;
11259
11261
  SideNavigationItem.className = CLASSNAME$n;
11260
11262
  SideNavigationItem.defaultProps = DEFAULT_PROPS$l;
11261
11263
 
11262
- const _excluded$o = ["className", "size", "color", "theme"];
11264
+ const _excluded$n = ["className", "size", "color", "theme"];
11263
11265
 
11264
11266
  /**
11265
11267
  * Defines the props of the component.
@@ -11293,7 +11295,7 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
11293
11295
  color,
11294
11296
  theme
11295
11297
  } = props,
11296
- forwardedProps = _objectWithoutProperties(props, _excluded$o);
11298
+ forwardedProps = _objectWithoutProperties(props, _excluded$n);
11297
11299
  return /*#__PURE__*/React__default.createElement("div", _extends({
11298
11300
  ref: ref
11299
11301
  }, forwardedProps, {
@@ -11309,7 +11311,7 @@ SkeletonCircle.displayName = COMPONENT_NAME$m;
11309
11311
  SkeletonCircle.defaultProps = DEFAULT_PROPS$k;
11310
11312
  SkeletonCircle.className = CLASSNAME$m;
11311
11313
 
11312
- const _excluded$n = ["aspectRatio", "className", "height", "theme", "variant", "width", "color"];
11314
+ const _excluded$m = ["aspectRatio", "className", "height", "theme", "variant", "width", "color"];
11313
11315
 
11314
11316
  /**
11315
11317
  * Skeleton variants.
@@ -11356,7 +11358,7 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
11356
11358
  width,
11357
11359
  color
11358
11360
  } = props,
11359
- forwardedProps = _objectWithoutProperties(props, _excluded$n);
11361
+ forwardedProps = _objectWithoutProperties(props, _excluded$m);
11360
11362
  return /*#__PURE__*/React__default.createElement("div", _extends({
11361
11363
  ref: ref
11362
11364
  }, forwardedProps, {
@@ -11377,7 +11379,7 @@ SkeletonRectangle.displayName = COMPONENT_NAME$l;
11377
11379
  SkeletonRectangle.className = CLASSNAME$l;
11378
11380
  SkeletonRectangle.defaultProps = DEFAULT_PROPS$j;
11379
11381
 
11380
- const _excluded$m = ["className", "theme", "typography", "width", "color"];
11382
+ const _excluded$l = ["className", "theme", "typography", "width", "color"];
11381
11383
 
11382
11384
  /**
11383
11385
  * Defines the props of the component.
@@ -11412,7 +11414,7 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
11412
11414
  width,
11413
11415
  color
11414
11416
  } = props,
11415
- forwardedProps = _objectWithoutProperties(props, _excluded$m);
11417
+ forwardedProps = _objectWithoutProperties(props, _excluded$l);
11416
11418
  return /*#__PURE__*/React__default.createElement("div", _extends({
11417
11419
  ref: ref
11418
11420
  }, forwardedProps, {
@@ -11467,7 +11469,7 @@ const clamp = (value, min, max) => {
11467
11469
  return value;
11468
11470
  };
11469
11471
 
11470
- const _excluded$l = ["className", "disabled", "helper", "hideMinMaxLabel", "id", "isDisabled", "label", "max", "min", "name", "onChange", "onMouseDown", "precision", "steps", "theme", "value"];
11472
+ const _excluded$k = ["className", "disabled", "helper", "hideMinMaxLabel", "id", "isDisabled", "label", "max", "min", "name", "onChange", "onMouseDown", "precision", "steps", "theme", "value"];
11471
11473
 
11472
11474
  /**
11473
11475
  * Defines the props of the component.
@@ -11542,7 +11544,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
11542
11544
  theme,
11543
11545
  value
11544
11546
  } = props,
11545
- forwardedProps = _objectWithoutProperties(props, _excluded$l);
11547
+ forwardedProps = _objectWithoutProperties(props, _excluded$k);
11546
11548
  const generatedId = useId();
11547
11549
  const sliderId = id || generatedId;
11548
11550
  const sliderLabelId = useMemo(() => `label-${sliderId}`, [sliderId]);
@@ -11731,6 +11733,31 @@ Slider.displayName = COMPONENT_NAME$j;
11731
11733
  Slider.className = CLASSNAME$j;
11732
11734
  Slider.defaultProps = DEFAULT_PROPS$h;
11733
11735
 
11736
+ /**
11737
+ * Hook that allows to control when there is a focus event within a given element, meaning
11738
+ * that any element within the given target will trigger the focus in and focus out events.
11739
+ * @param options - UseFocusWithinOptions
11740
+ */
11741
+ const useFocusWithin = _ref => {
11742
+ let {
11743
+ element,
11744
+ onFocusIn,
11745
+ onFocusOut
11746
+ } = _ref;
11747
+ useEffect(() => {
11748
+ if (element) {
11749
+ element.addEventListener('focusin', onFocusIn);
11750
+ element.addEventListener('focusout', onFocusOut);
11751
+ }
11752
+ return () => {
11753
+ if (element) {
11754
+ element.removeEventListener('focusin', onFocusIn);
11755
+ element.removeEventListener('focusout', onFocusOut);
11756
+ }
11757
+ };
11758
+ }, [onFocusIn, element, onFocusOut]);
11759
+ };
11760
+
11734
11761
  /**
11735
11762
  * Making setInterval Declarative with React Hooks.
11736
11763
  * Credits: https://overreacted.io/making-setinterval-declarative-with-react-hooks/
@@ -11804,87 +11831,80 @@ const useSlideshowControls = _ref => {
11804
11831
  // Number of slides when using groupBy prop.
11805
11832
  const slidesCount = Math.ceil(itemsCount / Math.min(groupBy, itemsCount));
11806
11833
 
11807
- // Change current index to display next slide.
11808
- const goToNextSlide = useCallback(function () {
11809
- let loopback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
11810
- setCurrentIndex(index => {
11811
- if (loopback && index === slidesCount - 1) {
11812
- // Loopback to the start.
11813
- return 0;
11834
+ // Set current active index (& if is user activated)
11835
+ const setActiveIndex = useCallback((setStateAction, isUser) => {
11836
+ // Store on element a boolean value when the slide change was not from a user action.
11837
+ const elementDataset = element === null || element === void 0 ? void 0 : element.dataset;
11838
+ if (elementDataset) {
11839
+ if (isUser) elementDataset.lumxUserActivated = true;else delete elementDataset.lumxUserActivated;
11840
+ }
11841
+ setCurrentIndex(setStateAction);
11842
+ }, [element]);
11843
+
11844
+ // Change slide given delta (-1/+1) with or without loop back.
11845
+ const goTo = useCallback(function () {
11846
+ let delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
11847
+ let loopBack = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
11848
+ let isUser = arguments.length > 2 ? arguments[2] : undefined;
11849
+ setActiveIndex(index => {
11850
+ if (loopBack) {
11851
+ const newIndex = (index + delta) % slidesCount;
11852
+ if (newIndex < 0) return slidesCount + newIndex;
11853
+ return newIndex;
11814
11854
  }
11815
- if (index < slidesCount - 1) {
11816
- // Next slide.
11817
- return index + 1;
11818
- }
11819
- return index;
11820
- });
11821
- }, [slidesCount, setCurrentIndex]);
11822
-
11823
- // Change current index to display previous slide.
11824
- const goToPreviousSlide = useCallback(function () {
11825
- let loopback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
11826
- setCurrentIndex(index => {
11827
- if (loopback && index === 0) {
11828
- // Loopback to the end.
11829
- return slidesCount - 1;
11830
- }
11831
- if (index > 0) {
11832
- // Previous slide.
11833
- return index - 1;
11834
- }
11835
- return index;
11836
- });
11837
- }, [slidesCount, setCurrentIndex]);
11855
+ return clamp(index + delta, 0, slidesCount - 1);
11856
+ }, isUser);
11857
+ }, [slidesCount, setActiveIndex]);
11838
11858
 
11839
11859
  // Auto play
11840
11860
  const [isAutoPlaying, setIsAutoPlaying] = useState(Boolean(autoPlay));
11841
11861
  const [isForcePaused, setIsForcePaused] = useState(false);
11842
11862
  const isSlideshowAutoPlaying = isForcePaused ? false : isAutoPlaying;
11843
11863
  // Start
11844
- useInterval(goToNextSlide, isSlideshowAutoPlaying && slidesCount > 1 ? interval : null);
11864
+ useInterval(goTo, isSlideshowAutoPlaying && slidesCount > 1 ? interval : null);
11845
11865
 
11846
- // Reset current index if it become invalid.
11866
+ // Reset current index if it becomes invalid.
11847
11867
  useEffect(() => {
11848
11868
  if (currentIndex > slidesCount - 1) {
11849
- setCurrentIndex(defaultActiveIndex);
11869
+ setActiveIndex(defaultActiveIndex);
11850
11870
  }
11851
- }, [currentIndex, slidesCount, defaultActiveIndex]);
11852
- const startAutoPlay = () => {
11871
+ }, [currentIndex, slidesCount, defaultActiveIndex, setActiveIndex]);
11872
+ const startAutoPlay = useCallback(() => {
11853
11873
  setIsAutoPlaying(Boolean(autoPlay));
11854
- };
11855
- const stopAutoPlay = () => {
11874
+ }, [autoPlay]);
11875
+ const stopAutoPlay = useCallback(() => {
11856
11876
  setIsAutoPlaying(false);
11857
- };
11877
+ }, []);
11858
11878
 
11859
11879
  // Handle click on a bullet to go to a specific slide.
11860
11880
  const onPaginationClick = useCallback(index => {
11861
11881
  stopAutoPlay();
11862
11882
  setIsForcePaused(true);
11863
11883
  if (index >= 0 && index < slidesCount) {
11864
- setCurrentIndex(index);
11884
+ setActiveIndex(index, true);
11865
11885
  }
11866
- }, [slidesCount, setCurrentIndex]);
11886
+ }, [stopAutoPlay, slidesCount, setActiveIndex]);
11867
11887
 
11868
11888
  // Handle click or keyboard event to go to next slide.
11869
11889
  const onNextClick = useCallback(function () {
11870
- let loopback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
11890
+ let loopBack = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
11871
11891
  stopAutoPlay();
11872
11892
  setIsForcePaused(true);
11873
- goToNextSlide(loopback);
11874
- }, [goToNextSlide]);
11893
+ goTo(1, loopBack, true);
11894
+ }, [goTo, stopAutoPlay]);
11875
11895
 
11876
11896
  // Handle click or keyboard event to go to previous slide.
11877
11897
  const onPreviousClick = useCallback(function () {
11878
- let loopback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
11898
+ let loopBack = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
11879
11899
  stopAutoPlay();
11880
11900
  setIsForcePaused(true);
11881
- goToPreviousSlide(loopback);
11882
- }, [goToPreviousSlide]);
11901
+ goTo(-1, loopBack, true);
11902
+ }, [goTo, stopAutoPlay]);
11883
11903
 
11884
11904
  // If the activeIndex props changes, update the current slide
11885
11905
  useEffect(() => {
11886
- setCurrentIndex(activeIndex);
11887
- }, [activeIndex]);
11906
+ setActiveIndex(activeIndex);
11907
+ }, [activeIndex, setActiveIndex]);
11888
11908
 
11889
11909
  // If the slide changes, with autoplay for example, trigger "onChange"
11890
11910
  useEffect(() => {
@@ -11895,14 +11915,14 @@ const useSlideshowControls = _ref => {
11895
11915
  const slideshowId = id || generatedSlideshowId;
11896
11916
  const generatedSlidesId = useId();
11897
11917
  const slideshowSlidesId = slidesId || generatedSlidesId;
11898
- const toggleAutoPlay = () => {
11918
+ const toggleAutoPlay = useCallback(() => {
11899
11919
  if (isSlideshowAutoPlaying) {
11900
11920
  stopAutoPlay();
11901
11921
  } else {
11902
11922
  startAutoPlay();
11903
11923
  }
11904
- };
11905
- const toggleForcePause = () => {
11924
+ }, [isSlideshowAutoPlaying, startAutoPlay, stopAutoPlay]);
11925
+ const toggleForcePause = useCallback(() => {
11906
11926
  const shouldBePaused = !isForcePaused;
11907
11927
  setIsForcePaused(shouldBePaused);
11908
11928
  if (!shouldBePaused) {
@@ -11910,7 +11930,7 @@ const useSlideshowControls = _ref => {
11910
11930
  } else {
11911
11931
  stopAutoPlay();
11912
11932
  }
11913
- };
11933
+ }, [isForcePaused, startAutoPlay, stopAutoPlay]);
11914
11934
 
11915
11935
  // Start index and end index of visible slides.
11916
11936
  const startIndexVisible = currentIndex * groupBy;
@@ -11929,7 +11949,7 @@ const useSlideshowControls = _ref => {
11929
11949
  toggleAutoPlay,
11930
11950
  activeIndex: currentIndex,
11931
11951
  slidesCount,
11932
- setActiveIndex: setCurrentIndex,
11952
+ setActiveIndex,
11933
11953
  startAutoPlay,
11934
11954
  stopAutoPlay,
11935
11955
  isForcePaused,
@@ -11937,171 +11957,6 @@ const useSlideshowControls = _ref => {
11937
11957
  };
11938
11958
  };
11939
11959
 
11940
- /**
11941
- * Hook that allows to control when there is a focus event within a given element, meaning
11942
- * that any element within the given target will trigger the focus in and focus out events.
11943
- * @param options - UseFocusWithinOptions
11944
- */
11945
- const useFocusWithin = _ref => {
11946
- let {
11947
- element,
11948
- onFocusIn,
11949
- onFocusOut
11950
- } = _ref;
11951
- useEffect(() => {
11952
- if (element) {
11953
- element.addEventListener('focusin', onFocusIn);
11954
- element.addEventListener('focusout', onFocusOut);
11955
- }
11956
- return () => {
11957
- if (element) {
11958
- element.removeEventListener('focusin', onFocusIn);
11959
- element.removeEventListener('focusout', onFocusOut);
11960
- }
11961
- };
11962
- }, [onFocusIn, element, onFocusOut]);
11963
- };
11964
-
11965
- /**
11966
- * Classname set on elements whose focus was blocked.
11967
- * This is to easily find elements that have been tempered with,
11968
- * and not elements whose focus was already initially blocked.
11969
- * */
11970
- const BLOCKED_FOCUS_CLASSNAME = 'focus-blocked';
11971
-
11972
- /**
11973
- * Manage how slides must behave when visible or not.
11974
- * When not visible, they should be hidden from screen readers and not focusable.
11975
- */
11976
- const useSlideFocusManagement = _ref => {
11977
- let {
11978
- isSlideDisplayed,
11979
- slideRef
11980
- } = _ref;
11981
- useEffect(() => {
11982
- const element = slideRef === null || slideRef === void 0 ? void 0 : slideRef.current;
11983
- if (!element) {
11984
- return undefined;
11985
- }
11986
-
11987
- /**
11988
- * Display given slide to screen readers and, if focus was blocked, restore focus on elements.
11989
- */
11990
- const enableSlide = () => {
11991
- // Hide from screen readers
11992
- element.setAttribute('aria-hidden', 'false');
11993
- // Find elements we have blocked focus on
11994
- element.querySelectorAll(`.${BLOCKED_FOCUS_CLASSNAME}`).forEach(focusableElement => {
11995
- focusableElement.removeAttribute('tabindex');
11996
- focusableElement.classList.remove(BLOCKED_FOCUS_CLASSNAME);
11997
- });
11998
- };
11999
-
12000
- /**
12001
- * Hide given slide from screen readers and block focus on all focusable elements within.
12002
- */
12003
- const blockSlide = () => {
12004
- element.setAttribute('aria-hidden', 'true');
12005
- getFocusableElements(element).forEach(focusableElement => {
12006
- focusableElement.setAttribute('tabindex', '-1');
12007
- focusableElement.classList.add(BLOCKED_FOCUS_CLASSNAME);
12008
- });
12009
- };
12010
- const handleDisplay = () => {
12011
- if (!element) {
12012
- return;
12013
- }
12014
- if (isSlideDisplayed) {
12015
- enableSlide();
12016
- } else {
12017
- blockSlide();
12018
- }
12019
- };
12020
-
12021
- // Callback function to execute when mutations are observed
12022
- const callback = mutationsList => {
12023
- if (element) {
12024
- for (const mutation of mutationsList) {
12025
- if (mutation.type === 'childList') {
12026
- handleDisplay();
12027
- }
12028
- }
12029
- }
12030
- };
12031
-
12032
- // Create an observer instance linked to the callback function
12033
- const observer = new MutationObserver(callback);
12034
- if (element) {
12035
- handleDisplay();
12036
-
12037
- /** If slide is hidden, start observing for elements to block focus */
12038
- if (!isSlideDisplayed) {
12039
- observer.observe(element, {
12040
- attributes: true,
12041
- childList: true,
12042
- subtree: true
12043
- });
12044
- }
12045
- }
12046
- return () => {
12047
- if (!isSlideDisplayed) {
12048
- observer.disconnect();
12049
- }
12050
- };
12051
- }, [isSlideDisplayed, slideRef]);
12052
- };
12053
-
12054
- const _excluded$k = ["className", "children", "role", "label", "isDisplayed"];
12055
-
12056
- /**
12057
- * Defines the props of the component.
12058
- */
12059
-
12060
- /**
12061
- * Component display name.
12062
- */
12063
- const COMPONENT_NAME$i = 'SlideshowItemGroup';
12064
-
12065
- /**
12066
- * Component default class name and class prefix.
12067
- */
12068
- const CLASSNAME$i = getRootClassName(COMPONENT_NAME$i);
12069
- const buildSlideShowGroupId = (slidesId, index) => `${slidesId}-slide-${index}`;
12070
-
12071
- /**
12072
- * SlideshowItemGroup component.
12073
- *
12074
- * @param props Component props.
12075
- * @param ref Component ref.
12076
- * @return React element.
12077
- */
12078
- const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
12079
- const {
12080
- className,
12081
- children,
12082
- role = 'group',
12083
- label,
12084
- isDisplayed
12085
- } = props,
12086
- forwardedProps = _objectWithoutProperties(props, _excluded$k);
12087
- const groupRef = React__default.useRef(null);
12088
- useSlideFocusManagement({
12089
- isSlideDisplayed: isDisplayed,
12090
- slideRef: groupRef
12091
- });
12092
- return /*#__PURE__*/React__default.createElement("div", _extends({
12093
- ref: mergeRefs(groupRef, ref),
12094
- role: role,
12095
- className: classnames(className, handleBasicClasses({
12096
- prefix: CLASSNAME$i
12097
- })),
12098
- "aria-roledescription": "slide",
12099
- "aria-label": label
12100
- }, forwardedProps), children);
12101
- });
12102
- SlideshowItemGroup.displayName = COMPONENT_NAME$i;
12103
- SlideshowItemGroup.className = CLASSNAME$i;
12104
-
12105
11960
  const _excluded$j = ["activeIndex", "autoPlay", "children", "className", "fillHeight", "groupBy", "interval", "onChange", "slideshowControlsProps", "theme", "id", "slidesId", "slideGroupLabel"];
12106
11961
 
12107
11962
  /**
@@ -12198,22 +12053,9 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
12198
12053
  parentRef: slideshow,
12199
12054
  theme: theme,
12200
12055
  isAutoPlaying: isAutoPlaying,
12201
- nextButtonProps: _objectSpread2({
12202
- 'aria-controls': slideshowSlidesId
12203
- }, slideshowControlsProps.nextButtonProps),
12204
- previousButtonProps: _objectSpread2({
12205
- 'aria-controls': slideshowSlidesId
12206
- }, slideshowControlsProps.previousButtonProps),
12207
12056
  playButtonProps: autoPlay ? _objectSpread2({
12208
- 'aria-controls': slideshowSlidesId,
12209
12057
  onClick: toggleForcePause
12210
- }, slideshowControlsProps.playButtonProps) : undefined,
12211
- paginationItemProps: index => {
12212
- var _slideshowControlsPro;
12213
- return _objectSpread2({
12214
- 'aria-controls': buildSlideShowGroupId(slideshowSlidesId, index)
12215
- }, (_slideshowControlsPro = slideshowControlsProps.paginationItemProps) === null || _slideshowControlsPro === void 0 ? void 0 : _slideshowControlsPro.call(slideshowControlsProps, index));
12216
- }
12058
+ }, slideshowControlsProps.playButtonProps) : undefined
12217
12059
  }))) : undefined
12218
12060
  }, forwardedProps), children);
12219
12061
  });
@@ -12229,12 +12071,12 @@ const _excluded$i = ["className", "children"];
12229
12071
  /**
12230
12072
  * Component display name.
12231
12073
  */
12232
- const COMPONENT_NAME$h = 'SlideshowItem';
12074
+ const COMPONENT_NAME$i = 'SlideshowItem';
12233
12075
 
12234
12076
  /**
12235
12077
  * Component default class name and class prefix.
12236
12078
  */
12237
- const CLASSNAME$h = getRootClassName(COMPONENT_NAME$h);
12079
+ const CLASSNAME$i = getRootClassName(COMPONENT_NAME$i);
12238
12080
 
12239
12081
  /**
12240
12082
  * SlideshowItem component.
@@ -12251,13 +12093,179 @@ const SlideshowItem = /*#__PURE__*/forwardRef((props, ref) => {
12251
12093
  forwardedProps = _objectWithoutProperties(props, _excluded$i);
12252
12094
  return /*#__PURE__*/React__default.createElement("div", _extends({
12253
12095
  ref: ref,
12254
- className: classnames(className, handleBasicClasses({
12255
- prefix: CLASSNAME$h
12256
- }))
12096
+ className: classnames(className, CLASSNAME$i)
12257
12097
  }, forwardedProps), children);
12258
12098
  });
12259
- SlideshowItem.displayName = COMPONENT_NAME$h;
12260
- SlideshowItem.className = CLASSNAME$h;
12099
+ SlideshowItem.displayName = COMPONENT_NAME$i;
12100
+ SlideshowItem.className = CLASSNAME$i;
12101
+
12102
+ /**
12103
+ * Listen keyboard to navigate left and right.
12104
+ */
12105
+ function useKeyNavigate(element, onNext, onPrevious) {
12106
+ useEffect(() => {
12107
+ if (!element) return undefined;
12108
+ const onKeyNavigate = evt => {
12109
+ let callback;
12110
+ if ((evt === null || evt === void 0 ? void 0 : evt.key) === 'ArrowRight') {
12111
+ callback = onNext;
12112
+ } else if ((evt === null || evt === void 0 ? void 0 : evt.key) === 'ArrowLeft') {
12113
+ callback = onPrevious;
12114
+ }
12115
+ if (!callback) return;
12116
+ callback();
12117
+ evt.preventDefault();
12118
+ evt.stopPropagation();
12119
+ };
12120
+ element.addEventListener('keydown', onKeyNavigate);
12121
+ return () => {
12122
+ element.removeEventListener('keydown', onKeyNavigate);
12123
+ };
12124
+ }, [onPrevious, onNext, element]);
12125
+ }
12126
+
12127
+ /**
12128
+ * Data attribute set on elements whose focus was blocked.
12129
+ * This is to easily find elements that have been tempered with,
12130
+ * and not elements whose focus was already initially blocked.
12131
+ */
12132
+ const BLOCKED_FOCUS = 'data-focus-blocked';
12133
+
12134
+ /**
12135
+ * Manage how slides must behave when visible or not.
12136
+ * When not visible, they should be hidden from screen readers and not focusable.
12137
+ */
12138
+ const useSlideFocusManagement = _ref => {
12139
+ let {
12140
+ isSlideDisplayed,
12141
+ slidesRef
12142
+ } = _ref;
12143
+ const [slide, setSlide] = React__default.useState(null);
12144
+ const [focusableElementSet, setFocusableElementSet] = React__default.useState();
12145
+ React__default.useEffect(() => {
12146
+ if (!slide) {
12147
+ return undefined;
12148
+ }
12149
+ // Update the slide's focusable element list (including the blocked elements)
12150
+ const updateFocusableElements = () => setFocusableElementSet(function () {
12151
+ let set = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Set();
12152
+ // TODO: remove when `inert` gets sufficient browser support
12153
+ const focusedBlocked = Array.from(slide.querySelectorAll(`[${BLOCKED_FOCUS}]`));
12154
+ for (const element of focusedBlocked) {
12155
+ set.add(element);
12156
+ }
12157
+ for (const element of getFocusableElements(slide)) {
12158
+ set.add(element);
12159
+ }
12160
+ return set;
12161
+ });
12162
+
12163
+ // Observe changes in the content of the slide
12164
+ const observer = new MutationObserver(mutationsList => {
12165
+ if (mutationsList.some(mutation => mutation.type === 'childList')) {
12166
+ updateFocusableElements();
12167
+ }
12168
+ });
12169
+ updateFocusableElements();
12170
+ observer.observe(slide, {
12171
+ attributes: true,
12172
+ childList: true,
12173
+ subtree: true
12174
+ });
12175
+ return observer.disconnect();
12176
+ }, [slide]);
12177
+ useEffect(() => {
12178
+ if (!slide || !focusableElementSet) {
12179
+ return;
12180
+ }
12181
+ const focusableElements = Array.from(focusableElementSet);
12182
+ if (!isSlideDisplayed) {
12183
+ /* Block slide */
12184
+ slide.setAttribute('inert', '');
12185
+ slide.setAttribute('aria-hidden', 'true');
12186
+
12187
+ // TODO: remove when `inert` gets sufficient browser support
12188
+ for (const focusableElement of focusableElements) {
12189
+ focusableElement.setAttribute('tabindex', '-1');
12190
+ focusableElement.setAttribute(BLOCKED_FOCUS, '');
12191
+ }
12192
+ } else {
12193
+ var _slidesRef$current;
12194
+ /* Un-block slide */
12195
+ slide.removeAttribute('inert');
12196
+ slide.removeAttribute('aria-hidden');
12197
+
12198
+ // TODO: remove when `inert` gets sufficient browser support
12199
+ for (const focusableElement of focusableElements) {
12200
+ focusableElement.removeAttribute('tabindex');
12201
+ focusableElement.removeAttribute(BLOCKED_FOCUS);
12202
+ }
12203
+
12204
+ // Change focus on slide displayed
12205
+ const isUserActivated = (slidesRef === null || slidesRef === void 0 ? void 0 : (_slidesRef$current = slidesRef.current) === null || _slidesRef$current === void 0 ? void 0 : _slidesRef$current.dataset.lumxUserActivated) === 'true';
12206
+ if (isUserActivated) {
12207
+ var _elementToFocus;
12208
+ let elementToFocus = slide;
12209
+
12210
+ // We have exactly one focusable element => focus it
12211
+ if (focusableElementSet.size === 1) {
12212
+ // eslint-disable-next-line prefer-destructuring
12213
+ elementToFocus = focusableElements[0];
12214
+ }
12215
+
12216
+ // We have not focusable element => focus the pagination item
12217
+ if (focusableElementSet.size === 0) {
12218
+ elementToFocus = document.querySelector(`[aria-controls="${slide === null || slide === void 0 ? void 0 : slide.id}"]`);
12219
+ }
12220
+ (_elementToFocus = elementToFocus) === null || _elementToFocus === void 0 ? void 0 : _elementToFocus.focus({
12221
+ preventScroll: true
12222
+ });
12223
+ }
12224
+ }
12225
+ }, [focusableElementSet, isSlideDisplayed, slide, slidesRef]);
12226
+ return setSlide;
12227
+ };
12228
+
12229
+ /**
12230
+ * Defines the props of the component.
12231
+ */
12232
+
12233
+ /**
12234
+ * Component display name.
12235
+ */
12236
+ const COMPONENT_NAME$h = 'SlideshowItemGroup';
12237
+
12238
+ /**
12239
+ * Component default class name and class prefix.
12240
+ */
12241
+ const CLASSNAME$h = getRootClassName(COMPONENT_NAME$h);
12242
+ const buildSlideShowGroupId = (slidesId, index) => slidesId && `${slidesId}-slide-${index}`;
12243
+
12244
+ /**
12245
+ * Internal slideshow item group component.
12246
+ */
12247
+ const SlideshowItemGroup = props => {
12248
+ const {
12249
+ id,
12250
+ children,
12251
+ label,
12252
+ isDisplayed,
12253
+ slidesRef
12254
+ } = props;
12255
+ const groupRef = useSlideFocusManagement({
12256
+ isSlideDisplayed: isDisplayed,
12257
+ slidesRef
12258
+ });
12259
+ return /*#__PURE__*/React__default.createElement("div", {
12260
+ id: id,
12261
+ ref: groupRef,
12262
+ role: "group",
12263
+ className: CLASSNAME$h,
12264
+ "aria-label": label,
12265
+ tabIndex: -1
12266
+ }, children);
12267
+ };
12268
+ SlideshowItemGroup.displayName = COMPONENT_NAME$h;
12261
12269
 
12262
12270
  const isTouchDevice = () => 'ontouchstart' in window;
12263
12271
 
@@ -12375,32 +12383,29 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
12375
12383
  const paginationRef = React__default.useRef(null);
12376
12384
  // Listen to touch swipe navigate left & right.
12377
12385
  useSwipeNavigate(parent,
12378
- // Go next without loopback.
12386
+ // Go next without loop back.
12379
12387
  useCallback(() => onNextClick === null || onNextClick === void 0 ? void 0 : onNextClick(false), [onNextClick]),
12380
- // Go previous without loopback.
12388
+ // Go previous without loop back.
12381
12389
  useCallback(() => onPreviousClick === null || onPreviousClick === void 0 ? void 0 : onPreviousClick(false), [onPreviousClick]));
12382
-
12383
- /**
12384
- * Add roving tab index pattern to pagination items and activate slide on focus.
12385
- */
12386
- useRovingTabIndex({
12387
- parentRef: paginationRef,
12388
- elementSelector: 'button',
12389
- keepTabIndex: true,
12390
- onElementFocus: element => {
12391
- element.click();
12392
- }
12393
- });
12390
+ const [focusedIndex, setFocusedIndex] = useState(null);
12391
+ const onButtonFocus = useCallback(index => () => setFocusedIndex(index), [setFocusedIndex]);
12392
+ const onFocusOut = useCallback(() => setFocusedIndex(null), [setFocusedIndex]);
12394
12393
 
12395
12394
  // Pagination "bullet" range.
12396
- const visibleRange = usePaginationVisibleRange(activeIndex, slidesCount);
12395
+ const visibleRange = usePaginationVisibleRange(focusedIndex !== null && focusedIndex !== void 0 ? focusedIndex : activeIndex, slidesCount);
12397
12396
 
12398
12397
  // Inline style of wrapper element.
12399
12398
  const wrapperStyle = {
12400
12399
  transform: `translateX(-${PAGINATION_ITEM_SIZE * visibleRange.min}px)`
12401
12400
  };
12401
+ const controlsRef = React__default.useRef(null);
12402
+ useKeyNavigate(controlsRef.current, onNextClick, onPreviousClick);
12403
+ const slideshowSlidesId = React__default.useMemo(() => {
12404
+ var _parent, _parent$querySelector;
12405
+ return (_parent = parent) === null || _parent === void 0 ? void 0 : (_parent$querySelector = _parent.querySelector(`.${Slides.className}__slides`)) === null || _parent$querySelector === void 0 ? void 0 : _parent$querySelector.id;
12406
+ }, [parent]);
12402
12407
  return /*#__PURE__*/React__default.createElement("div", _extends({
12403
- ref: ref
12408
+ ref: useMergeRefs(ref, controlsRef)
12404
12409
  }, forwardedProps, {
12405
12410
  className: classnames(className, handleBasicClasses({
12406
12411
  prefix: CLASSNAME$g,
@@ -12413,15 +12418,17 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
12413
12418
  className: `${CLASSNAME$g}__navigation`,
12414
12419
  color: theme === Theme.dark ? 'light' : 'dark',
12415
12420
  emphasis: Emphasis.low,
12416
- onClick: onPreviousClick
12421
+ onClick: onPreviousClick,
12422
+ "aria-controls": slideshowSlidesId
12417
12423
  })), /*#__PURE__*/React__default.createElement("div", {
12418
12424
  ref: paginationRef,
12419
12425
  className: `${CLASSNAME$g}__pagination`
12420
12426
  }, /*#__PURE__*/React__default.createElement("div", _extends({
12421
12427
  className: `${CLASSNAME$g}__pagination-items`,
12422
- style: wrapperStyle,
12423
- role: "tablist"
12424
- }, paginationProps), useMemo(() => range(slidesCount).map(index => {
12428
+ style: wrapperStyle
12429
+ }, paginationProps, {
12430
+ onBlur: onFocusOut
12431
+ }), range(slidesCount).map(index => {
12425
12432
  const isOnEdge = index !== 0 && index !== slidesCount - 1 && (index === visibleRange.min || index === visibleRange.max);
12426
12433
  const isActive = activeIndex === index;
12427
12434
  const isOutRange = index < visibleRange.min || index > visibleRange.max;
@@ -12441,23 +12448,25 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
12441
12448
  }), itemClassName),
12442
12449
  key: index,
12443
12450
  type: "button",
12444
- tabIndex: isActive ? undefined : -1,
12445
- role: "tab",
12446
- "aria-selected": isActive,
12451
+ "aria-current": isActive || undefined,
12452
+ "aria-controls": buildSlideShowGroupId(slideshowSlidesId, index),
12447
12453
  onClick: () => onPaginationClick === null || onPaginationClick === void 0 ? void 0 : onPaginationClick(index),
12454
+ onFocus: onButtonFocus(index),
12448
12455
  "aria-label": ariaLabel
12449
12456
  }, itemProps));
12450
- }), [slidesCount, visibleRange.min, visibleRange.max, activeIndex, paginationItemProps, paginationItemLabel, onPaginationClick]))), playButtonProps ? /*#__PURE__*/React__default.createElement(IconButton, _extends({}, playButtonProps, {
12457
+ }))), playButtonProps ? /*#__PURE__*/React__default.createElement(IconButton, _extends({}, playButtonProps, {
12451
12458
  icon: isAutoPlaying ? mdiPauseCircleOutline : mdiPlayCircleOutline,
12452
12459
  className: `${CLASSNAME$g}__play`,
12453
12460
  color: theme === Theme.dark ? 'light' : 'dark',
12454
- emphasis: Emphasis.low
12461
+ emphasis: Emphasis.low,
12462
+ "aria-controls": slideshowSlidesId
12455
12463
  })) : null, /*#__PURE__*/React__default.createElement(IconButton, _extends({}, nextButtonProps, {
12456
12464
  icon: mdiChevronRight,
12457
12465
  className: `${CLASSNAME$g}__navigation`,
12458
12466
  color: theme === Theme.dark ? 'light' : 'dark',
12459
12467
  emphasis: Emphasis.low,
12460
- onClick: onNextClick
12468
+ onClick: onNextClick,
12469
+ "aria-controls": slideshowSlidesId
12461
12470
  })));
12462
12471
  });
12463
12472
  InternalSlideshowControls.displayName = COMPONENT_NAME$g;
@@ -12503,7 +12512,6 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
12503
12512
  slideGroupLabel
12504
12513
  } = props,
12505
12514
  forwardedProps = _objectWithoutProperties(props, _excluded$g);
12506
- const wrapperRef = React__default.useRef(null);
12507
12515
  const startIndexVisible = activeIndex;
12508
12516
  const endIndexVisible = startIndexVisible + 1;
12509
12517
 
@@ -12515,9 +12523,10 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
12515
12523
  const childrenArray = Children.toArray(children);
12516
12524
  return groupBy && groupBy > 1 ? chunk(childrenArray, groupBy) : childrenArray;
12517
12525
  }, [children, groupBy]);
12526
+ const slidesRef = React__default.useRef(null);
12518
12527
  return /*#__PURE__*/React__default.createElement("section", _extends({
12519
12528
  id: id,
12520
- ref: ref
12529
+ ref: useMergeRefs(slidesRef, ref)
12521
12530
  }, forwardedProps, {
12522
12531
  className: classnames(className, handleBasicClasses({
12523
12532
  prefix: CLASSNAME$f,
@@ -12534,15 +12543,14 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
12534
12543
  onMouseLeave: toggleAutoPlay,
12535
12544
  "aria-live": isAutoPlaying ? 'off' : 'polite'
12536
12545
  }, /*#__PURE__*/React__default.createElement("div", {
12537
- ref: wrapperRef,
12538
12546
  className: `${CLASSNAME$f}__wrapper`,
12539
12547
  style: wrapperStyle
12540
12548
  }, groups.map((group, index) => /*#__PURE__*/React__default.createElement(SlideshowItemGroup, {
12541
12549
  key: index,
12542
12550
  id: slidesId && buildSlideShowGroupId(slidesId, index),
12543
- role: hasControls ? 'tabpanel' : 'group',
12544
12551
  label: slideGroupLabel ? slideGroupLabel(index + 1, groups.length) : undefined,
12545
- isDisplayed: index >= startIndexVisible && index < endIndexVisible
12552
+ isDisplayed: index >= startIndexVisible && index < endIndexVisible,
12553
+ slidesRef: slidesRef
12546
12554
  }, group)))), afterSlides);
12547
12555
  });
12548
12556
  Slides.displayName = COMPONENT_NAME$f;