@lumx/react 3.8.2-alpha.2 → 3.9.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/index.d.ts +3 -3
  2. package/index.js +191 -176
  3. package/index.js.map +1 -1
  4. package/package.json +4 -5
  5. package/src/components/alert-dialog/AlertDialog.test.tsx +1 -1
  6. package/src/components/alert-dialog/AlertDialog.tsx +3 -2
  7. package/src/components/checkbox/Checkbox.tsx +4 -3
  8. package/src/components/date-picker/DatePickerControlled.tsx +2 -3
  9. package/src/components/image-lightbox/internal/ImageSlideshow.tsx +1 -1
  10. package/src/components/image-lightbox/useImageLightbox.tsx +14 -10
  11. package/src/components/message/Message.tsx +1 -1
  12. package/src/components/navigation/NavigationSection.tsx +4 -3
  13. package/src/components/notification/constants.ts +1 -1
  14. package/src/components/radio-button/RadioButton.tsx +4 -3
  15. package/src/components/select/Select.test.tsx +1 -1
  16. package/src/components/select/SelectMultiple.test.tsx +1 -1
  17. package/src/components/select/WithSelectContext.tsx +4 -3
  18. package/src/components/side-navigation/SideNavigationItem.test.tsx +1 -1
  19. package/src/components/side-navigation/SideNavigationItem.tsx +2 -2
  20. package/src/components/slider/Slider.test.tsx +1 -1
  21. package/src/components/slider/Slider.tsx +3 -2
  22. package/src/components/switch/Switch.test.tsx +1 -1
  23. package/src/components/switch/Switch.tsx +4 -3
  24. package/src/components/tabs/state.ts +4 -6
  25. package/src/components/text-field/TextField.tsx +6 -15
  26. package/src/components/tooltip/Tooltip.test.tsx +1 -1
  27. package/src/components/tooltip/Tooltip.tsx +8 -8
  28. package/src/components/tooltip/useInjectTooltipRef.tsx +3 -1
  29. package/src/components/uploader/Uploader.tsx +3 -2
  30. package/src/components/user-block/UserBlock.stories.tsx +1 -1
  31. package/src/components/user-block/UserBlock.tsx +2 -2
  32. package/src/hooks/useId.test.tsx +23 -0
  33. package/src/hooks/useId.ts +15 -0
  34. package/src/hooks/useSlideshowControls.ts +7 -4
  35. package/src/stories/generated/UserBlock/Demos.stories.tsx +1 -0
  36. package/src/utils/date/formatDayNumber.test.ts +12 -0
  37. package/src/utils/date/formatDayNumber.ts +5 -0
package/index.js CHANGED
@@ -19,7 +19,6 @@ import pick from 'lodash/pick';
19
19
  import isInteger from 'lodash/isInteger';
20
20
  import throttle from 'lodash/throttle';
21
21
  import take from 'lodash/take';
22
- import uniqueId from 'lodash/uniqueId';
23
22
  import isObject from 'lodash/isObject';
24
23
  import range from 'lodash/range';
25
24
  import chunk from 'lodash/chunk';
@@ -344,20 +343,6 @@ var classnames = createCommonjsModule(function (module) {
344
343
 
345
344
  const mdiAlert='M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2z';const mdiAlertCircle='M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2';const mdiArrowDown='M11 4h2v12l5.5-5.5 1.42 1.42L12 19.84l-7.92-7.92L5.5 10.5 11 16z';const mdiArrowUp='M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8z';const mdiCheck='M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59z';const mdiCheckCircle='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z';const mdiChevronDown='M7.41 8.58 12 13.17l4.59-4.59L18 10l-6 6-6-6z';const mdiChevronLeft='M15.41 16.58 10.83 12l4.58-4.59L14 6l-6 6 6 6z';const mdiChevronRight='M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6z';const mdiChevronUp='M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z';const mdiClose='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z';const mdiCloseCircle='M12 2a10 10 0 1 1 0 20 10 10 0 1 1 0-20m3.59 5L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z';const mdiDragVertical='M9 3h2v2H9zm4 0h2v2h-2zM9 7h2v2H9zm4 0h2v2h-2zm-4 4h2v2H9zm4 0h2v2h-2zm-4 4h2v2H9zm4 0h2v2h-2zm-4 4h2v2H9zm4 0h2v2h-2z';const mdiImageBroken='M19 3a2 2 0 0 1 2 2v6h-2v2h-2v2h-2v2h-2v2h-2v2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm2 12v4a2 2 0 0 1-2 2h-4v-2h2v-2h2v-2zm-2-6.5a.5.5 0 0 0-.5-.5h-13a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5H11v-1h2v-2h2v-2h2V9h2z';const mdiInformation='M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2';const mdiMagnifyMinusOutline='M15.5 14h-.79l-.28-.27A6.5 6.5 0 0 0 16 9.5 6.5 6.5 0 0 0 9.5 3 6.5 6.5 0 0 0 3 9.5 6.5 6.5 0 0 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5zm-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7z';const mdiMagnifyPlusOutline='m15.5 14 5 5-1.5 1.5-5-5v-.79l-.27-.28A6.5 6.5 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3 6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27zm-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2z';const mdiMenuDown='m7 10 5 5 5-5z';const mdiMinus='M19 13H5v-2h14z';const mdiPauseCircleOutline='M13 16V8h2v8zm-4 0V8h2v8zm3-14a10 10 0 0 1 10 10 10 10 0 0 1-10 10A10 10 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8 8 8 0 0 0-8-8';const mdiPlayCircleOutline='M12 20a8.01 8.01 0 0 1 0-16 8.01 8.01 0 0 1 0 16m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-2 14.5 6-4.5-6-4.5z';const mdiRadioboxBlank='M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2';const mdiRadioboxMarked='M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 5a5 5 0 0 0-5 5 5 5 0 0 0 5 5 5 5 0 0 0 5-5 5 5 0 0 0-5-5';
346
345
 
347
- var IDX=256, HEX=[], SIZE=256, BUFFER;
348
- while (IDX--) HEX[IDX] = (IDX + 256).toString(16).substring(1);
349
-
350
- function uid(len) {
351
- var i=0, tmp=(len || 11);
352
- if (!BUFFER || ((IDX + tmp) > SIZE*2)) {
353
- for (BUFFER='',IDX=0; i < SIZE; i++) {
354
- BUFFER += HEX[Math.random() * 256 | 0];
355
- }
356
- }
357
-
358
- return BUFFER.substring(IDX, IDX++ + tmp);
359
- }
360
-
361
346
  /**
362
347
  * The prefix to use for the CSS classes.
363
348
  */
@@ -633,6 +618,20 @@ const getTypographyClassName = typography => {
633
618
  return `lumx-typography-${typography}`;
634
619
  };
635
620
 
621
+ let i = 0;
622
+
623
+ /**
624
+ * Generate a unique id (for use in a11y or other id based DOM linking).
625
+ *
626
+ * (Tries to emulate React 18 useId hook, to remove once we upgrade React)
627
+ */
628
+ function useId() {
629
+ return React.useMemo(() => {
630
+ i += 1;
631
+ return `:lumx${i}:`;
632
+ }, []);
633
+ }
634
+
636
635
  const _excluded$1 = ["id", "title", "className", "cancelProps", "confirmProps", "kind", "size", "dialogProps", "children"],
637
636
  _excluded2 = ["label", "onClick"],
638
637
  _excluded3 = ["label", "onClick"];
@@ -706,7 +705,8 @@ const AlertDialog = /*#__PURE__*/forwardRef((props, ref) => {
706
705
  } = CONFIG[kind] || {};
707
706
 
708
707
  // Define a unique ID to target title and description for aria attributes.
709
- const uniqueId = React.useMemo(() => id || uid(), [id]);
708
+ const generatedId = useId();
709
+ const uniqueId = id || generatedId;
710
710
  const titleId = `${uniqueId}-title`;
711
711
  const descriptionId = `${uniqueId}-description`;
712
712
 
@@ -1654,7 +1654,8 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
1654
1654
  } = props,
1655
1655
  forwardedProps = _objectWithoutProperties(props, _excluded$b);
1656
1656
  const localInputRef = React.useRef(null);
1657
- const inputId = useMemo(() => id || `${CLASSNAME$8.toLowerCase()}-${uid()}`, [id]);
1657
+ const generatedInputId = useId();
1658
+ const inputId = id || generatedInputId;
1658
1659
  const handleChange = event => {
1659
1660
  if (onChange) {
1660
1661
  onChange(!isChecked, value, name, event);
@@ -2299,6 +2300,14 @@ const getYearDisplayName = locale => {
2299
2300
  return label;
2300
2301
  };
2301
2302
 
2303
+ function formatDayNumber(locale, date) {
2304
+ const formattedDate = date.toLocaleDateString(locale, {
2305
+ day: 'numeric'
2306
+ });
2307
+ if (formattedDate.match(/\d/)) return formattedDate.replace(/\D*(\d+)\D*/g, '$1');
2308
+ return formattedDate;
2309
+ }
2310
+
2302
2311
  /**
2303
2312
  * Defines the props of the component.
2304
2313
  */
@@ -2463,9 +2472,7 @@ const DatePickerControlled = /*#__PURE__*/forwardRef((props, ref) => {
2463
2472
  onClick: () => onChange(date)
2464
2473
  }, /*#__PURE__*/React.createElement("span", {
2465
2474
  "aria-hidden": true
2466
- }, date.toLocaleDateString(locale, {
2467
- day: 'numeric'
2468
- })), /*#__PURE__*/React.createElement("span", {
2475
+ }, formatDayNumber(locale, date)), /*#__PURE__*/React.createElement("span", {
2469
2476
  className: "visually-hidden"
2470
2477
  }, date.toLocaleDateString(locale, {
2471
2478
  day: 'numeric',
@@ -8256,7 +8263,7 @@ const ImageSlideshow = _ref => {
8256
8263
  const zoomOut = React.useCallback(() => onScaleChange === null || onScaleChange === void 0 ? void 0 : onScaleChange(0.5), [onScaleChange]);
8257
8264
  React.useEffect(() => {
8258
8265
  // Reset scale on slide change
8259
- if (activeIndex) setScale(undefined);
8266
+ if (typeof activeIndex === 'number') setScale(undefined);
8260
8267
  }, [activeIndex]);
8261
8268
  const zoomControls = zoomEnabled && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconButton, _extends({}, zoomInButtonProps, {
8262
8269
  theme: "dark",
@@ -8374,8 +8381,6 @@ async function startViewTransition(_ref) {
8374
8381
  /** Find image in element including the element */
8375
8382
  const findImage = element => element !== null && element !== void 0 && element.matches('img') ? element : (element === null || element === void 0 ? void 0 : element.querySelector('img')) || null;
8376
8383
 
8377
- const _excluded$A = ["images"];
8378
-
8379
8384
  /** Subset of the ImageLightboxProps managed by the useImageLightbox hook */
8380
8385
 
8381
8386
  const EMPTY_PROPS = {
@@ -8390,29 +8395,30 @@ const EMPTY_PROPS = {
8390
8395
  * - Associate a trigger with an image to display on open
8391
8396
  * - Automatically provide a view transition between an image trigger and the displayed image on open & close
8392
8397
  *
8393
- * @param initialProps Images to display in the image lightbox
8398
+ * @param props Images to display in the image lightbox
8394
8399
  */
8395
- function useImageLightbox(initialProps) {
8396
- const {
8397
- images = []
8398
- } = initialProps,
8399
- otherProps = _objectWithoutProperties(initialProps, _excluded$A);
8400
- const imagesPropsRef = React.useRef(images);
8400
+ function useImageLightbox(props) {
8401
+ const propsRef = React.useRef(props);
8401
8402
  React.useEffect(() => {
8402
- imagesPropsRef.current = images.map(props => _objectSpread2({
8403
- imgRef: /*#__PURE__*/React.createRef()
8404
- }, props));
8405
- }, [images]);
8403
+ const newProps = _objectSpread2({}, props);
8404
+ if (newProps !== null && newProps !== void 0 && newProps.images) {
8405
+ newProps.images = newProps.images.map(image => _objectSpread2({
8406
+ imgRef: /*#__PURE__*/React.createRef()
8407
+ }, image));
8408
+ }
8409
+ propsRef.current = newProps;
8410
+ }, [props]);
8406
8411
  const currentImageRef = React.useRef(null);
8407
- const [imageLightboxProps, setImageLightboxProps] = React.useState(() => _objectSpread2(_objectSpread2({}, EMPTY_PROPS), otherProps));
8412
+ const [imageLightboxProps, setImageLightboxProps] = React.useState(() => _objectSpread2(_objectSpread2({}, EMPTY_PROPS), props));
8408
8413
  const getTriggerProps = React.useMemo(() => {
8409
8414
  const triggerImageRefs = {};
8410
8415
  async function close() {
8416
+ var _propsRef$current, _propsRef$current$ima;
8411
8417
  const currentImage = currentImageRef.current;
8412
8418
  if (!currentImage) {
8413
8419
  return;
8414
8420
  }
8415
- const currentIndex = imagesPropsRef.current.findIndex(_ref => {
8421
+ const currentIndex = (_propsRef$current = propsRef.current) === null || _propsRef$current === void 0 ? void 0 : (_propsRef$current$ima = _propsRef$current.images) === null || _propsRef$current$ima === void 0 ? void 0 : _propsRef$current$ima.findIndex(_ref => {
8416
8422
  let {
8417
8423
  imgRef
8418
8424
  } = _ref;
@@ -8434,7 +8440,7 @@ function useImageLightbox(initialProps) {
8434
8440
  });
8435
8441
  }
8436
8442
  async function open(triggerElement) {
8437
- var _triggerImageRefs;
8443
+ var _triggerImageRefs, _propsRef$current2, _propsRef$current2$im;
8438
8444
  let {
8439
8445
  activeImageIndex
8440
8446
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -8442,7 +8448,7 @@ function useImageLightbox(initialProps) {
8442
8448
  const triggerImage = ((_triggerImageRefs = triggerImageRefs[activeImageIndex]) === null || _triggerImageRefs === void 0 ? void 0 : _triggerImageRefs.current) || findImage(triggerElement);
8443
8449
 
8444
8450
  // Inject the trigger image as loading placeholder for better loading state
8445
- const imagesWithFallbackSize = imagesPropsRef.current.map((image, idx) => {
8451
+ const imagesWithFallbackSize = (_propsRef$current2 = propsRef.current) === null || _propsRef$current2 === void 0 ? void 0 : (_propsRef$current2$im = _propsRef$current2.images) === null || _propsRef$current2$im === void 0 ? void 0 : _propsRef$current2$im.map((image, idx) => {
8446
8452
  if (triggerImage && idx === activeImageIndex && !image.loadingPlaceholderImageRef) {
8447
8453
  return _objectSpread2(_objectSpread2({}, image), {}, {
8448
8454
  loadingPlaceholderImageRef: {
@@ -8455,7 +8461,7 @@ function useImageLightbox(initialProps) {
8455
8461
  await startViewTransition({
8456
8462
  changes: () => {
8457
8463
  // Open lightbox with setup props
8458
- setImageLightboxProps(prevProps => _objectSpread2(_objectSpread2({}, prevProps), {}, {
8464
+ setImageLightboxProps(prevProps => _objectSpread2(_objectSpread2(_objectSpread2({}, prevProps), propsRef.current), {}, {
8459
8465
  activeImageRef: currentImageRef,
8460
8466
  parentElement: {
8461
8467
  current: triggerElement
@@ -8498,7 +8504,7 @@ function useImageLightbox(initialProps) {
8498
8504
  };
8499
8505
  }
8500
8506
 
8501
- const _excluded$B = ["className", "isOpen", "closeButtonProps", "onClose", "parentElement", "activeImageIndex", "slideshowControlsProps", "slideGroupLabel", "images", "zoomOutButtonProps", "zoomInButtonProps", "activeImageRef"];
8507
+ const _excluded$A = ["className", "isOpen", "closeButtonProps", "onClose", "parentElement", "activeImageIndex", "slideshowControlsProps", "slideGroupLabel", "images", "zoomOutButtonProps", "zoomInButtonProps", "activeImageRef"];
8502
8508
  const Inner = /*#__PURE__*/forwardRef((props, ref) => {
8503
8509
  const {
8504
8510
  className,
@@ -8514,7 +8520,7 @@ const Inner = /*#__PURE__*/forwardRef((props, ref) => {
8514
8520
  zoomInButtonProps,
8515
8521
  activeImageRef: propImageRef
8516
8522
  } = props,
8517
- forwardedProps = _objectWithoutProperties(props, _excluded$B);
8523
+ forwardedProps = _objectWithoutProperties(props, _excluded$A);
8518
8524
  const currentPaginationItemRef = React.useRef(null);
8519
8525
  const footerRef = React.useRef(null);
8520
8526
  const imageRef = React.useRef(null);
@@ -8564,7 +8570,7 @@ const ImageLightbox = Object.assign(Inner, {
8564
8570
  useImageLightbox
8565
8571
  });
8566
8572
 
8567
- const _excluded$C = ["className", "color", "colorVariant", "typography", "children", "wrap"];
8573
+ const _excluded$B = ["className", "color", "colorVariant", "typography", "children", "wrap"];
8568
8574
 
8569
8575
  /**
8570
8576
  * Defines the props of the component.
@@ -8601,7 +8607,7 @@ const InlineList = /*#__PURE__*/forwardRef((props, ref) => {
8601
8607
  children,
8602
8608
  wrap
8603
8609
  } = props,
8604
- forwardedProps = _objectWithoutProperties(props, _excluded$C);
8610
+ forwardedProps = _objectWithoutProperties(props, _excluded$B);
8605
8611
  const fontColorClassName = color && getFontColorClassName(color, colorVariant);
8606
8612
  const typographyClassName = typography && getTypographyClassName(typography);
8607
8613
  return (
@@ -8647,7 +8653,7 @@ const INPUT_HELPER_CONFIGURATION = {
8647
8653
  }
8648
8654
  };
8649
8655
 
8650
- const _excluded$D = ["children", "className", "kind", "theme"];
8656
+ const _excluded$C = ["children", "className", "kind", "theme"];
8651
8657
 
8652
8658
  /**
8653
8659
  * Defines the props of the component.
@@ -8685,7 +8691,7 @@ const InputHelper = /*#__PURE__*/forwardRef((props, ref) => {
8685
8691
  kind,
8686
8692
  theme
8687
8693
  } = props,
8688
- forwardedProps = _objectWithoutProperties(props, _excluded$D);
8694
+ forwardedProps = _objectWithoutProperties(props, _excluded$C);
8689
8695
  const {
8690
8696
  color
8691
8697
  } = INPUT_HELPER_CONFIGURATION[kind] || {};
@@ -8703,7 +8709,7 @@ InputHelper.displayName = COMPONENT_NAME$A;
8703
8709
  InputHelper.className = CLASSNAME$x;
8704
8710
  InputHelper.defaultProps = DEFAULT_PROPS$s;
8705
8711
 
8706
- const _excluded$E = ["children", "className", "htmlFor", "isRequired", "theme"];
8712
+ const _excluded$D = ["children", "className", "htmlFor", "isRequired", "theme"];
8707
8713
 
8708
8714
  /**
8709
8715
  * Defines the props of the component.
@@ -8741,7 +8747,7 @@ const InputLabel = /*#__PURE__*/forwardRef((props, ref) => {
8741
8747
  isRequired,
8742
8748
  theme
8743
8749
  } = props,
8744
- forwardedProps = _objectWithoutProperties(props, _excluded$E);
8750
+ forwardedProps = _objectWithoutProperties(props, _excluded$D);
8745
8751
  return /*#__PURE__*/React.createElement("label", _extends({
8746
8752
  ref: ref
8747
8753
  }, forwardedProps, {
@@ -8757,7 +8763,7 @@ InputLabel.displayName = COMPONENT_NAME$B;
8757
8763
  InputLabel.className = CLASSNAME$y;
8758
8764
  InputLabel.defaultProps = DEFAULT_PROPS$t;
8759
8765
 
8760
- const _excluded$F = ["aria-labelledby", "ariaLabelledBy", "aria-label", "ariaLabel", "children", "className", "closeButtonProps", "isOpen", "onClose", "parentElement", "focusElement", "preventAutoClose", "theme", "zIndex"];
8766
+ const _excluded$E = ["aria-labelledby", "ariaLabelledBy", "aria-label", "ariaLabel", "children", "className", "closeButtonProps", "isOpen", "onClose", "parentElement", "focusElement", "preventAutoClose", "theme", "zIndex"];
8761
8767
 
8762
8768
  /**
8763
8769
  * Defines the props of the component.
@@ -8797,7 +8803,7 @@ const Lightbox = /*#__PURE__*/forwardRef((props, ref) => {
8797
8803
  theme,
8798
8804
  zIndex
8799
8805
  } = props,
8800
- forwardedProps = _objectWithoutProperties(props, _excluded$F);
8806
+ forwardedProps = _objectWithoutProperties(props, _excluded$E);
8801
8807
  if (!DOCUMENT) {
8802
8808
  // Can't render in SSR.
8803
8809
  return null;
@@ -8888,7 +8894,7 @@ const Lightbox = /*#__PURE__*/forwardRef((props, ref) => {
8888
8894
  Lightbox.displayName = COMPONENT_NAME$C;
8889
8895
  Lightbox.className = CLASSNAME$z;
8890
8896
 
8891
- const _excluded$G = ["children", "className", "color", "colorVariant", "disabled", "isDisabled", "href", "leftIcon", "linkAs", "rightIcon", "target", "typography"];
8897
+ const _excluded$F = ["children", "className", "color", "colorVariant", "disabled", "isDisabled", "href", "leftIcon", "linkAs", "rightIcon", "target", "typography"];
8892
8898
 
8893
8899
  /**
8894
8900
  * Defines the props of the component.
@@ -8951,7 +8957,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
8951
8957
  target,
8952
8958
  typography
8953
8959
  } = props,
8954
- forwardedProps = _objectWithoutProperties(props, _excluded$G);
8960
+ forwardedProps = _objectWithoutProperties(props, _excluded$F);
8955
8961
  const renderedChildren = useMemo(() => /*#__PURE__*/React.createElement(React.Fragment, null, leftIcon && !isEmpty(leftIcon) && /*#__PURE__*/React.createElement(Icon, {
8956
8962
  icon: leftIcon,
8957
8963
  className: `${CLASSNAME$A}__left-icon`,
@@ -8999,7 +9005,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
8999
9005
  Link.displayName = COMPONENT_NAME$D;
9000
9006
  Link.className = CLASSNAME$A;
9001
9007
 
9002
- const _excluded$H = ["className", "description", "link", "linkAs", "linkProps", "size", "theme", "thumbnailProps", "title", "titleHeading"];
9008
+ const _excluded$G = ["className", "description", "link", "linkAs", "linkProps", "size", "theme", "thumbnailProps", "title", "titleHeading"];
9003
9009
 
9004
9010
  /**
9005
9011
  * Defines the props of the component.
@@ -9044,7 +9050,7 @@ const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
9044
9050
  title,
9045
9051
  titleHeading
9046
9052
  } = props,
9047
- forwardedProps = _objectWithoutProperties(props, _excluded$H);
9053
+ forwardedProps = _objectWithoutProperties(props, _excluded$G);
9048
9054
  // Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
9049
9055
  const TitleHeading = titleHeading;
9050
9056
  return /*#__PURE__*/React.createElement("article", _extends({
@@ -9099,7 +9105,7 @@ LinkPreview.displayName = COMPONENT_NAME$E;
9099
9105
  LinkPreview.className = CLASSNAME$B;
9100
9106
  LinkPreview.defaultProps = DEFAULT_PROPS$u;
9101
9107
 
9102
- const _excluded$I = ["className"];
9108
+ const _excluded$H = ["className"];
9103
9109
 
9104
9110
  /**
9105
9111
  * Defines the props of the component.
@@ -9126,7 +9132,7 @@ const ListDivider = /*#__PURE__*/forwardRef((props, ref) => {
9126
9132
  const {
9127
9133
  className
9128
9134
  } = props,
9129
- forwardedProps = _objectWithoutProperties(props, _excluded$I);
9135
+ forwardedProps = _objectWithoutProperties(props, _excluded$H);
9130
9136
  return /*#__PURE__*/React.createElement("li", _extends({
9131
9137
  ref: ref
9132
9138
  }, forwardedProps, {
@@ -9138,7 +9144,7 @@ const ListDivider = /*#__PURE__*/forwardRef((props, ref) => {
9138
9144
  ListDivider.displayName = COMPONENT_NAME$F;
9139
9145
  ListDivider.className = CLASSNAME$C;
9140
9146
 
9141
- const _excluded$J = ["children", "className"];
9147
+ const _excluded$I = ["children", "className"];
9142
9148
 
9143
9149
  /**
9144
9150
  * Defines the props of the component.
@@ -9166,7 +9172,7 @@ const ListSubheader = /*#__PURE__*/forwardRef((props, ref) => {
9166
9172
  children,
9167
9173
  className
9168
9174
  } = props,
9169
- forwardedProps = _objectWithoutProperties(props, _excluded$J);
9175
+ forwardedProps = _objectWithoutProperties(props, _excluded$I);
9170
9176
  return /*#__PURE__*/React.createElement("li", _extends({
9171
9177
  ref: ref
9172
9178
  }, forwardedProps, {
@@ -9178,7 +9184,7 @@ const ListSubheader = /*#__PURE__*/forwardRef((props, ref) => {
9178
9184
  ListSubheader.displayName = COMPONENT_NAME$G;
9179
9185
  ListSubheader.className = CLASSNAME$D;
9180
9186
 
9181
- const _excluded$K = ["children", "className", "hasBackground", "kind", "icon", "closeButtonProps"];
9187
+ const _excluded$J = ["children", "className", "hasBackground", "kind", "icon", "closeButtonProps"];
9182
9188
 
9183
9189
  /**
9184
9190
  * Defines the props of the component.
@@ -9203,7 +9209,7 @@ const CONFIG$1 = {
9203
9209
  icon: mdiAlert
9204
9210
  },
9205
9211
  [Kind.info]: {
9206
- color: ColorPalette.dark,
9212
+ color: ColorPalette.blue,
9207
9213
  icon: mdiInformation
9208
9214
  },
9209
9215
  [Kind.success]: {
@@ -9232,7 +9238,7 @@ const Message = /*#__PURE__*/forwardRef((props, ref) => {
9232
9238
  icon: customIcon,
9233
9239
  closeButtonProps
9234
9240
  } = props,
9235
- forwardedProps = _objectWithoutProperties(props, _excluded$K);
9241
+ forwardedProps = _objectWithoutProperties(props, _excluded$J);
9236
9242
  const {
9237
9243
  color,
9238
9244
  icon
@@ -9267,7 +9273,7 @@ const Message = /*#__PURE__*/forwardRef((props, ref) => {
9267
9273
  Message.displayName = COMPONENT_NAME$H;
9268
9274
  Message.className = CLASSNAME$E;
9269
9275
 
9270
- const _excluded$L = ["className", "theme", "thumbnails", "onImageClick"],
9276
+ const _excluded$K = ["className", "theme", "thumbnails", "onImageClick"],
9271
9277
  _excluded2$1 = ["image", "onClick", "align"];
9272
9278
 
9273
9279
  /**
@@ -9305,7 +9311,7 @@ const Mosaic = /*#__PURE__*/forwardRef((props, ref) => {
9305
9311
  thumbnails,
9306
9312
  onImageClick
9307
9313
  } = props,
9308
- forwardedProps = _objectWithoutProperties(props, _excluded$L);
9314
+ forwardedProps = _objectWithoutProperties(props, _excluded$K);
9309
9315
  const handleImageClick = useMemo(() => {
9310
9316
  if (!onImageClick) return undefined;
9311
9317
  return (index, onClick) => event => {
@@ -9360,7 +9366,7 @@ function forwardRefPolymorphic(render) {
9360
9366
  return /*#__PURE__*/React.forwardRef(render);
9361
9367
  }
9362
9368
 
9363
- const _excluded$M = ["className", "icon", "label", "isCurrentPage", "as"];
9369
+ const _excluded$L = ["className", "icon", "label", "isCurrentPage", "as"];
9364
9370
 
9365
9371
  /** Make `href` required when `as` is `a` */
9366
9372
 
@@ -9385,7 +9391,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
9385
9391
  isCurrentPage,
9386
9392
  as: Element = 'a'
9387
9393
  } = props,
9388
- forwardedProps = _objectWithoutProperties(props, _excluded$M);
9394
+ forwardedProps = _objectWithoutProperties(props, _excluded$L);
9389
9395
  const theme = useContext(ThemeContext);
9390
9396
  const {
9391
9397
  tooltipLabel,
@@ -9429,7 +9435,7 @@ const NavigationContext = /*#__PURE__*/createContext({
9429
9435
  orientation: Orientation.vertical
9430
9436
  });
9431
9437
 
9432
- const _excluded$N = ["children", "className", "label", "icon"];
9438
+ const _excluded$M = ["children", "className", "label", "icon"];
9433
9439
  /**
9434
9440
  * Component display name.
9435
9441
  */
@@ -9446,10 +9452,10 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
9446
9452
  label,
9447
9453
  icon
9448
9454
  } = props,
9449
- forwardedProps = _objectWithoutProperties(props, _excluded$N);
9455
+ forwardedProps = _objectWithoutProperties(props, _excluded$M);
9450
9456
  const [isOpen, setIsOpen] = useState(false);
9451
9457
  const buttonRef = useRef(null);
9452
- const sectionId = useMemo(() => uniqueId('section'), []);
9458
+ const sectionId = useId();
9453
9459
  const {
9454
9460
  orientation
9455
9461
  } = useContext(NavigationContext) || {};
@@ -9511,7 +9517,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
9511
9517
  className: CLASSNAME$H
9512
9518
  });
9513
9519
 
9514
- const _excluded$O = ["children", "className", "theme", "orientation"];
9520
+ const _excluded$N = ["children", "className", "theme", "orientation"];
9515
9521
  /**
9516
9522
  * Component display name.
9517
9523
  */
@@ -9531,7 +9537,7 @@ forwardRef((props, ref) => {
9531
9537
  theme,
9532
9538
  orientation
9533
9539
  } = props,
9534
- forwardedProps = _objectWithoutProperties(props, _excluded$O);
9540
+ forwardedProps = _objectWithoutProperties(props, _excluded$N);
9535
9541
  return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
9536
9542
  value: theme
9537
9543
  }, /*#__PURE__*/React.createElement("nav", _extends({
@@ -9569,7 +9575,7 @@ const NOTIFICATION_CONFIGURATION = {
9569
9575
  icon: mdiAlert
9570
9576
  },
9571
9577
  info: {
9572
- color: 'dark',
9578
+ color: 'blue',
9573
9579
  icon: mdiInformation
9574
9580
  },
9575
9581
  success: {
@@ -9582,7 +9588,7 @@ const NOTIFICATION_CONFIGURATION = {
9582
9588
  }
9583
9589
  };
9584
9590
 
9585
- const _excluded$P = ["actionLabel", "className", "content", "isOpen", "onActionClick", "onClick", "theme", "type", "zIndex", "usePortal", "style"];
9591
+ const _excluded$O = ["actionLabel", "className", "content", "isOpen", "onActionClick", "onClick", "theme", "type", "zIndex", "usePortal", "style"];
9586
9592
 
9587
9593
  /**
9588
9594
  * Defines the props of the component.
@@ -9629,7 +9635,7 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
9629
9635
  usePortal,
9630
9636
  style
9631
9637
  } = props,
9632
- forwardedProps = _objectWithoutProperties(props, _excluded$P);
9638
+ forwardedProps = _objectWithoutProperties(props, _excluded$O);
9633
9639
  if (!DOCUMENT) {
9634
9640
  // Can't render in SSR.
9635
9641
  return null;
@@ -9687,7 +9693,7 @@ Notification.displayName = COMPONENT_NAME$M;
9687
9693
  Notification.className = CLASSNAME$J;
9688
9694
  Notification.defaultProps = DEFAULT_PROPS$w;
9689
9695
 
9690
- const _excluded$Q = ["children", "isOpen", "focusElement", "aria-label", "label", "className"];
9696
+ const _excluded$P = ["children", "isOpen", "focusElement", "aria-label", "label", "className"];
9691
9697
 
9692
9698
  /**
9693
9699
  * PopoverDialog props.
@@ -9725,7 +9731,7 @@ const PopoverDialog = /*#__PURE__*/forwardRef((props, ref) => {
9725
9731
  label = ariaLabel,
9726
9732
  className
9727
9733
  } = props,
9728
- forwardedProps = _objectWithoutProperties(props, _excluded$Q);
9734
+ forwardedProps = _objectWithoutProperties(props, _excluded$P);
9729
9735
  return /*#__PURE__*/React.createElement(Popover, _extends({}, forwardedProps, {
9730
9736
  ref: ref,
9731
9737
  className: classnames(className, handleBasicClasses({
@@ -9749,7 +9755,7 @@ PopoverDialog.displayName = COMPONENT_NAME$N;
9749
9755
  PopoverDialog.className = CLASSNAME$K;
9750
9756
  PopoverDialog.defaultProps = DEFAULT_PROPS$x;
9751
9757
 
9752
- const _excluded$R = ["actions", "attachments", "author", "className", "meta", "onClick", "orientation", "tags", "text", "theme", "thumbnailProps", "title"];
9758
+ const _excluded$Q = ["actions", "attachments", "author", "className", "meta", "onClick", "orientation", "tags", "text", "theme", "thumbnailProps", "title"];
9753
9759
 
9754
9760
  /**
9755
9761
  * Defines the props of the component.
@@ -9795,7 +9801,7 @@ const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
9795
9801
  thumbnailProps,
9796
9802
  title
9797
9803
  } = props,
9798
- forwardedProps = _objectWithoutProperties(props, _excluded$R);
9804
+ forwardedProps = _objectWithoutProperties(props, _excluded$Q);
9799
9805
  return /*#__PURE__*/React.createElement("div", _extends({
9800
9806
  ref: ref,
9801
9807
  className: classnames(className, handleBasicClasses({
@@ -9840,7 +9846,7 @@ PostBlock.displayName = COMPONENT_NAME$O;
9840
9846
  PostBlock.className = CLASSNAME$L;
9841
9847
  PostBlock.defaultProps = DEFAULT_PROPS$y;
9842
9848
 
9843
- const _excluded$S = ["className", "theme"];
9849
+ const _excluded$R = ["className", "theme"];
9844
9850
  /**
9845
9851
  * Component display name.
9846
9852
  */
@@ -9870,7 +9876,7 @@ const ProgressLinear = /*#__PURE__*/forwardRef((props, ref) => {
9870
9876
  className,
9871
9877
  theme
9872
9878
  } = props,
9873
- forwardedProps = _objectWithoutProperties(props, _excluded$S);
9879
+ forwardedProps = _objectWithoutProperties(props, _excluded$R);
9874
9880
  return /*#__PURE__*/React.createElement("div", _extends({
9875
9881
  ref: ref
9876
9882
  }, forwardedProps, {
@@ -9888,7 +9894,7 @@ ProgressLinear.displayName = COMPONENT_NAME$P;
9888
9894
  ProgressLinear.className = CLASSNAME$M;
9889
9895
  ProgressLinear.defaultProps = DEFAULT_PROPS$z;
9890
9896
 
9891
- const _excluded$T = ["className", "theme", "size"];
9897
+ const _excluded$S = ["className", "theme", "size"];
9892
9898
 
9893
9899
  /**
9894
9900
  * Progress sizes.
@@ -9929,7 +9935,7 @@ const ProgressCircular = /*#__PURE__*/forwardRef((props, ref) => {
9929
9935
  theme,
9930
9936
  size
9931
9937
  } = props,
9932
- forwardedProps = _objectWithoutProperties(props, _excluded$T);
9938
+ forwardedProps = _objectWithoutProperties(props, _excluded$S);
9933
9939
  return /*#__PURE__*/React.createElement("div", _extends({
9934
9940
  ref: ref
9935
9941
  }, forwardedProps, {
@@ -9958,7 +9964,7 @@ ProgressCircular.displayName = COMPONENT_NAME$Q;
9958
9964
  ProgressCircular.className = CLASSNAME$N;
9959
9965
  ProgressCircular.defaultProps = DEFAULT_PROPS$A;
9960
9966
 
9961
- const _excluded$U = ["className", "theme", "variant"];
9967
+ const _excluded$T = ["className", "theme", "variant"];
9962
9968
 
9963
9969
  /**
9964
9970
  * Progress variants.
@@ -10004,7 +10010,7 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
10004
10010
  theme,
10005
10011
  variant
10006
10012
  } = props,
10007
- forwardedProps = _objectWithoutProperties(props, _excluded$U);
10013
+ forwardedProps = _objectWithoutProperties(props, _excluded$T);
10008
10014
  return /*#__PURE__*/React.createElement("div", _extends({
10009
10015
  ref: ref
10010
10016
  }, forwardedProps, {
@@ -10093,9 +10099,8 @@ const useTabProviderContext = (type, originalId) => {
10093
10099
  const [state, dispatch] = context;
10094
10100
 
10095
10101
  // Current tab or tab panel id.
10096
- const id = useMemo(() => originalId || `${type}-${uid()}`,
10097
- // eslint-disable-next-line react-hooks/exhaustive-deps
10098
- []);
10102
+ const generatedId = useId();
10103
+ const id = originalId || generatedId;
10099
10104
  useEffect(() => {
10100
10105
  // On mount: register tab or tab panel id.
10101
10106
  dispatch({
@@ -10142,7 +10147,7 @@ const useTabProviderContextState = () => {
10142
10147
  return context === null || context === void 0 ? void 0 : context[0];
10143
10148
  };
10144
10149
 
10145
- const _excluded$V = ["children", "onChange"];
10150
+ const _excluded$U = ["children", "onChange"];
10146
10151
  const DEFAULT_PROPS$C = {
10147
10152
  isLazy: INIT_STATE.isLazy,
10148
10153
  shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
@@ -10164,7 +10169,7 @@ const ProgressTrackerProvider = props => {
10164
10169
  children,
10165
10170
  onChange
10166
10171
  } = props,
10167
- propState = _objectWithoutProperties(props, _excluded$V);
10172
+ propState = _objectWithoutProperties(props, _excluded$U);
10168
10173
  const [state, dispatch] = useReducer(reducer, INIT_STATE);
10169
10174
 
10170
10175
  // On prop state change => dispatch update.
@@ -10268,7 +10273,7 @@ const useRovingTabIndex = _ref => {
10268
10273
  [parentRef, ...extraDependencies]);
10269
10274
  };
10270
10275
 
10271
- const _excluded$W = ["aria-label", "children", "className"];
10276
+ const _excluded$V = ["aria-label", "children", "className"];
10272
10277
 
10273
10278
  /**
10274
10279
  * Defines the props of the component.
@@ -10305,7 +10310,7 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
10305
10310
  children,
10306
10311
  className
10307
10312
  } = props,
10308
- forwardedProps = _objectWithoutProperties(props, _excluded$W);
10313
+ forwardedProps = _objectWithoutProperties(props, _excluded$V);
10309
10314
  const stepListRef = React.useRef(null);
10310
10315
  useRovingTabIndex({
10311
10316
  parentRef: stepListRef,
@@ -10346,7 +10351,7 @@ ProgressTracker.displayName = COMPONENT_NAME$S;
10346
10351
  ProgressTracker.className = CLASSNAME$P;
10347
10352
  ProgressTracker.defaultProps = DEFAULT_PROPS$D;
10348
10353
 
10349
- const _excluded$X = ["className", "disabled", "hasError", "helper", "id", "isActive", "isComplete", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
10354
+ const _excluded$W = ["className", "disabled", "hasError", "helper", "id", "isActive", "isComplete", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
10350
10355
 
10351
10356
  /**
10352
10357
  * Defines the props of the component.
@@ -10391,7 +10396,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
10391
10396
  onKeyPress,
10392
10397
  tabIndex = -1
10393
10398
  } = props,
10394
- forwardedProps = _objectWithoutProperties(props, _excluded$X);
10399
+ forwardedProps = _objectWithoutProperties(props, _excluded$W);
10395
10400
  const state = useTabProviderContext('tab', id);
10396
10401
  const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
10397
10402
  const changeToCurrentTab = useCallback(() => {
@@ -10458,7 +10463,7 @@ ProgressTrackerStep.displayName = COMPONENT_NAME$T;
10458
10463
  ProgressTrackerStep.className = CLASSNAME$Q;
10459
10464
  ProgressTrackerStep.defaultProps = DEFAULT_PROPS$E;
10460
10465
 
10461
- const _excluded$Y = ["children", "id", "className", "isActive"];
10466
+ const _excluded$X = ["children", "id", "className", "isActive"];
10462
10467
 
10463
10468
  /**
10464
10469
  * Defines the props of the component.
@@ -10495,7 +10500,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
10495
10500
  className,
10496
10501
  isActive: propIsActive
10497
10502
  } = props,
10498
- forwardedProps = _objectWithoutProperties(props, _excluded$Y);
10503
+ forwardedProps = _objectWithoutProperties(props, _excluded$X);
10499
10504
  const state = useTabProviderContext('tabPanel', id);
10500
10505
  const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
10501
10506
  return /*#__PURE__*/React.createElement("div", _extends({
@@ -10515,7 +10520,7 @@ ProgressTrackerStepPanel.displayName = COMPONENT_NAME$U;
10515
10520
  ProgressTrackerStepPanel.className = CLASSNAME$R;
10516
10521
  ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$F;
10517
10522
 
10518
- const _excluded$Z = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
10523
+ const _excluded$Y = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
10519
10524
 
10520
10525
  /**
10521
10526
  * Defines the props of the component.
@@ -10562,8 +10567,9 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
10562
10567
  value,
10563
10568
  inputProps
10564
10569
  } = props,
10565
- forwardedProps = _objectWithoutProperties(props, _excluded$Z);
10566
- const inputId = useMemo(() => id || `${CLASSNAME$S.toLowerCase()}-${uid()}`, [id]);
10570
+ forwardedProps = _objectWithoutProperties(props, _excluded$Y);
10571
+ const generatedInputId = useId();
10572
+ const inputId = id || generatedInputId;
10567
10573
  const handleChange = event => {
10568
10574
  if (onChange) {
10569
10575
  onChange(value, name, event);
@@ -10615,7 +10621,7 @@ RadioButton.displayName = COMPONENT_NAME$V;
10615
10621
  RadioButton.className = CLASSNAME$S;
10616
10622
  RadioButton.defaultProps = DEFAULT_PROPS$G;
10617
10623
 
10618
- const _excluded$_ = ["children", "className"];
10624
+ const _excluded$Z = ["children", "className"];
10619
10625
 
10620
10626
  /**
10621
10627
  * Defines the props of the component.
@@ -10643,7 +10649,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
10643
10649
  children,
10644
10650
  className
10645
10651
  } = props,
10646
- forwardedProps = _objectWithoutProperties(props, _excluded$_);
10652
+ forwardedProps = _objectWithoutProperties(props, _excluded$Z);
10647
10653
  return /*#__PURE__*/React.createElement("div", _extends({
10648
10654
  ref: ref
10649
10655
  }, forwardedProps, {
@@ -10687,7 +10693,7 @@ const SelectVariant = {
10687
10693
  chip: 'chip'
10688
10694
  };
10689
10695
 
10690
- const _excluded$$ = ["children", "className", "focusElement", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"];
10696
+ const _excluded$_ = ["children", "className", "focusElement", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"];
10691
10697
 
10692
10698
  /** The display name of the component. */
10693
10699
  const COMPONENT_NAME$X = 'Select';
@@ -10727,8 +10733,9 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
10727
10733
  value,
10728
10734
  variant = DEFAULT_PROPS$H.variant
10729
10735
  } = _ref,
10730
- forwardedProps = _objectWithoutProperties(_ref, _excluded$$);
10731
- const selectId = useMemo(() => id || `select-${uid()}`, [id]);
10736
+ forwardedProps = _objectWithoutProperties(_ref, _excluded$_);
10737
+ const generatedSelectId = useId();
10738
+ const selectId = id || generatedSelectId;
10732
10739
  const anchorRef = useRef(null);
10733
10740
  const selectRef = useRef(null);
10734
10741
  const dropdownRef = useRef(null);
@@ -10801,7 +10808,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
10801
10808
  }, helper));
10802
10809
  };
10803
10810
 
10804
- const _excluded$10 = ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
10811
+ const _excluded$$ = ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
10805
10812
 
10806
10813
  /** The display name of the component. */
10807
10814
  const COMPONENT_NAME$Y = 'Select';
@@ -10841,7 +10848,7 @@ const SelectField = _ref => {
10841
10848
  variant,
10842
10849
  selectElementRef
10843
10850
  } = _ref,
10844
- forwardedProps = _objectWithoutProperties(_ref, _excluded$10);
10851
+ forwardedProps = _objectWithoutProperties(_ref, _excluded$$);
10845
10852
  return /*#__PURE__*/React.createElement(React.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement("div", {
10846
10853
  className: `${CLASSNAME$V}__header`
10847
10854
  }, /*#__PURE__*/React.createElement(InputLabel, {
@@ -10921,7 +10928,7 @@ Select.className = CLASSNAME$V;
10921
10928
  Select.defaultProps = DEFAULT_PROPS$I;
10922
10929
  Select.className = CLASSNAME$V;
10923
10930
 
10924
- const _excluded$11 = ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
10931
+ const _excluded$10 = ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
10925
10932
 
10926
10933
  /** Defines the props of the component. */
10927
10934
 
@@ -10972,7 +10979,7 @@ const SelectMultipleField = _ref => {
10972
10979
  variant,
10973
10980
  selectElementRef
10974
10981
  } = _ref,
10975
- forwardedProps = _objectWithoutProperties(_ref, _excluded$11);
10982
+ forwardedProps = _objectWithoutProperties(_ref, _excluded$10);
10976
10983
  return /*#__PURE__*/React.createElement(React.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement("div", {
10977
10984
  className: `${CLASSNAME$W}__header`
10978
10985
  }, /*#__PURE__*/React.createElement(InputLabel, {
@@ -11042,7 +11049,7 @@ SelectMultiple.displayName = COMPONENT_NAME$Z;
11042
11049
  SelectMultiple.className = CLASSNAME$W;
11043
11050
  SelectMultiple.defaultProps = DEFAULT_PROPS$J;
11044
11051
 
11045
- const _excluded$12 = ["children", "className", "theme"];
11052
+ const _excluded$11 = ["children", "className", "theme"];
11046
11053
 
11047
11054
  /**
11048
11055
  * Defines the props of the component.
@@ -11071,7 +11078,7 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
11071
11078
  className,
11072
11079
  theme
11073
11080
  } = props,
11074
- forwardedProps = _objectWithoutProperties(props, _excluded$12);
11081
+ forwardedProps = _objectWithoutProperties(props, _excluded$11);
11075
11082
  const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
11076
11083
  return /*#__PURE__*/React.createElement("ul", _extends({
11077
11084
  ref: ref
@@ -11084,7 +11091,7 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
11084
11091
  SideNavigation.displayName = COMPONENT_NAME$_;
11085
11092
  SideNavigation.className = CLASSNAME$X;
11086
11093
 
11087
- const _excluded$13 = ["linkAs", "href"];
11094
+ const _excluded$12 = ["linkAs", "href"];
11088
11095
  /**
11089
11096
  * Render <button> HTML component, fallbacks to `<a>` when a `href` is provided or a custom component with `linkAs`.
11090
11097
  */
@@ -11093,7 +11100,7 @@ const renderButtonOrLink = function (props) {
11093
11100
  linkAs,
11094
11101
  href
11095
11102
  } = props,
11096
- forwardedProps = _objectWithoutProperties(props, _excluded$13);
11103
+ forwardedProps = _objectWithoutProperties(props, _excluded$12);
11097
11104
  for (var _len = arguments.length, children = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
11098
11105
  children[_key - 1] = arguments[_key];
11099
11106
  }
@@ -11103,7 +11110,7 @@ const renderButtonOrLink = function (props) {
11103
11110
  }, forwardedProps), ...children);
11104
11111
  };
11105
11112
 
11106
- const _excluded$14 = ["children", "className", "emphasis", "icon", "isOpen", "isSelected", "label", "linkAs", "linkProps", "onActionClick", "onClick", "toggleButtonProps", "closeMode"];
11113
+ const _excluded$13 = ["children", "className", "emphasis", "icon", "isOpen", "isSelected", "label", "linkAs", "linkProps", "onActionClick", "onClick", "toggleButtonProps", "closeMode"];
11107
11114
 
11108
11115
  /**
11109
11116
  * Defines the props of the component.
@@ -11150,12 +11157,12 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
11150
11157
  toggleButtonProps,
11151
11158
  closeMode = 'unmount'
11152
11159
  } = props,
11153
- forwardedProps = _objectWithoutProperties(props, _excluded$14);
11160
+ forwardedProps = _objectWithoutProperties(props, _excluded$13);
11154
11161
  const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
11155
11162
  const hasContent = !isEmpty(content);
11156
11163
  const shouldSplitActions = Boolean(onActionClick);
11157
11164
  const showChildren = hasContent && isOpen;
11158
- const contentId = React.useMemo(uid, []);
11165
+ const contentId = useId();
11159
11166
  const ariaProps = {};
11160
11167
  if (hasContent) {
11161
11168
  ariaProps['aria-expanded'] = !!showChildren;
@@ -11212,7 +11219,7 @@ SideNavigationItem.displayName = COMPONENT_NAME$$;
11212
11219
  SideNavigationItem.className = CLASSNAME$Y;
11213
11220
  SideNavigationItem.defaultProps = DEFAULT_PROPS$K;
11214
11221
 
11215
- const _excluded$15 = ["className", "size", "color", "theme"];
11222
+ const _excluded$14 = ["className", "size", "color", "theme"];
11216
11223
 
11217
11224
  /**
11218
11225
  * Defines the props of the component.
@@ -11246,7 +11253,7 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
11246
11253
  color,
11247
11254
  theme
11248
11255
  } = props,
11249
- forwardedProps = _objectWithoutProperties(props, _excluded$15);
11256
+ forwardedProps = _objectWithoutProperties(props, _excluded$14);
11250
11257
  return /*#__PURE__*/React.createElement("div", _extends({
11251
11258
  ref: ref
11252
11259
  }, forwardedProps, {
@@ -11262,7 +11269,7 @@ SkeletonCircle.displayName = COMPONENT_NAME$10;
11262
11269
  SkeletonCircle.defaultProps = DEFAULT_PROPS$L;
11263
11270
  SkeletonCircle.className = CLASSNAME$Z;
11264
11271
 
11265
- const _excluded$16 = ["aspectRatio", "className", "height", "theme", "variant", "width", "color"];
11272
+ const _excluded$15 = ["aspectRatio", "className", "height", "theme", "variant", "width", "color"];
11266
11273
 
11267
11274
  /**
11268
11275
  * Skeleton variants.
@@ -11309,7 +11316,7 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
11309
11316
  width,
11310
11317
  color
11311
11318
  } = props,
11312
- forwardedProps = _objectWithoutProperties(props, _excluded$16);
11319
+ forwardedProps = _objectWithoutProperties(props, _excluded$15);
11313
11320
  return /*#__PURE__*/React.createElement("div", _extends({
11314
11321
  ref: ref
11315
11322
  }, forwardedProps, {
@@ -11330,7 +11337,7 @@ SkeletonRectangle.displayName = COMPONENT_NAME$11;
11330
11337
  SkeletonRectangle.className = CLASSNAME$_;
11331
11338
  SkeletonRectangle.defaultProps = DEFAULT_PROPS$M;
11332
11339
 
11333
- const _excluded$17 = ["className", "theme", "typography", "width", "color"];
11340
+ const _excluded$16 = ["className", "theme", "typography", "width", "color"];
11334
11341
 
11335
11342
  /**
11336
11343
  * Defines the props of the component.
@@ -11365,7 +11372,7 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
11365
11372
  width,
11366
11373
  color
11367
11374
  } = props,
11368
- forwardedProps = _objectWithoutProperties(props, _excluded$17);
11375
+ forwardedProps = _objectWithoutProperties(props, _excluded$16);
11369
11376
  return /*#__PURE__*/React.createElement("div", _extends({
11370
11377
  ref: ref
11371
11378
  }, forwardedProps, {
@@ -11420,7 +11427,7 @@ const clamp = (value, min, max) => {
11420
11427
  return value;
11421
11428
  };
11422
11429
 
11423
- const _excluded$18 = ["className", "disabled", "helper", "hideMinMaxLabel", "id", "isDisabled", "label", "max", "min", "name", "onChange", "onMouseDown", "precision", "steps", "theme", "value"];
11430
+ const _excluded$17 = ["className", "disabled", "helper", "hideMinMaxLabel", "id", "isDisabled", "label", "max", "min", "name", "onChange", "onMouseDown", "precision", "steps", "theme", "value"];
11424
11431
 
11425
11432
  /**
11426
11433
  * Defines the props of the component.
@@ -11495,8 +11502,9 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
11495
11502
  theme,
11496
11503
  value
11497
11504
  } = props,
11498
- forwardedProps = _objectWithoutProperties(props, _excluded$18);
11499
- const sliderId = useMemo(() => id || `slider-${uid()}`, [id]);
11505
+ forwardedProps = _objectWithoutProperties(props, _excluded$17);
11506
+ const generatedId = useId();
11507
+ const sliderId = id || generatedId;
11500
11508
  const sliderLabelId = useMemo(() => `label-${sliderId}`, [sliderId]);
11501
11509
  const sliderRef = useRef(null);
11502
11510
 
@@ -11843,8 +11851,10 @@ const useSlideshowControls = _ref => {
11843
11851
  if (!onChange) return;
11844
11852
  onChange(currentIndex);
11845
11853
  }, [currentIndex, onChange]);
11846
- const slideshowId = useMemo(() => id || uniqueId('slideshow'), [id]);
11847
- const slideshowSlidesId = useMemo(() => slidesId || uniqueId('slideshow-slides'), [slidesId]);
11854
+ const generatedSlideshowId = useId();
11855
+ const slideshowId = id || generatedSlideshowId;
11856
+ const generatedSlidesId = useId();
11857
+ const slideshowSlidesId = slidesId || generatedSlidesId;
11848
11858
  const toggleAutoPlay = () => {
11849
11859
  if (isSlideshowAutoPlaying) {
11850
11860
  stopAutoPlay();
@@ -12001,7 +12011,7 @@ const useSlideFocusManagement = _ref => {
12001
12011
  }, [isSlideDisplayed, slideRef]);
12002
12012
  };
12003
12013
 
12004
- const _excluded$19 = ["className", "children", "role", "label", "isDisplayed"];
12014
+ const _excluded$18 = ["className", "children", "role", "label", "isDisplayed"];
12005
12015
 
12006
12016
  /**
12007
12017
  * Defines the props of the component.
@@ -12033,7 +12043,7 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
12033
12043
  label,
12034
12044
  isDisplayed
12035
12045
  } = props,
12036
- forwardedProps = _objectWithoutProperties(props, _excluded$19);
12046
+ forwardedProps = _objectWithoutProperties(props, _excluded$18);
12037
12047
  const groupRef = React.useRef(null);
12038
12048
  useSlideFocusManagement({
12039
12049
  isSlideDisplayed: isDisplayed,
@@ -12052,7 +12062,7 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
12052
12062
  SlideshowItemGroup.displayName = COMPONENT_NAME$14;
12053
12063
  SlideshowItemGroup.className = CLASSNAME$11;
12054
12064
 
12055
- const _excluded$1a = ["activeIndex", "autoPlay", "children", "className", "fillHeight", "groupBy", "interval", "onChange", "slideshowControlsProps", "theme", "id", "slidesId", "slideGroupLabel"];
12065
+ const _excluded$19 = ["activeIndex", "autoPlay", "children", "className", "fillHeight", "groupBy", "interval", "onChange", "slideshowControlsProps", "theme", "id", "slidesId", "slideGroupLabel"];
12056
12066
 
12057
12067
  /**
12058
12068
  * Defines the props of the component.
@@ -12088,7 +12098,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
12088
12098
  slidesId,
12089
12099
  slideGroupLabel
12090
12100
  } = props,
12091
- forwardedProps = _objectWithoutProperties(props, _excluded$1a);
12101
+ forwardedProps = _objectWithoutProperties(props, _excluded$19);
12092
12102
  // Number of slideshow items.
12093
12103
  const itemsCount = React.Children.count(children);
12094
12104
  const {
@@ -12170,7 +12180,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
12170
12180
  Slideshow.displayName = 'Slideshow';
12171
12181
  Slideshow.defaultProps = DEFAULT_PROPS$P;
12172
12182
 
12173
- const _excluded$1b = ["className", "children"];
12183
+ const _excluded$1a = ["className", "children"];
12174
12184
 
12175
12185
  /**
12176
12186
  * Defines the props of the component.
@@ -12198,7 +12208,7 @@ const SlideshowItem = /*#__PURE__*/forwardRef((props, ref) => {
12198
12208
  className,
12199
12209
  children
12200
12210
  } = props,
12201
- forwardedProps = _objectWithoutProperties(props, _excluded$1b);
12211
+ forwardedProps = _objectWithoutProperties(props, _excluded$1a);
12202
12212
  return /*#__PURE__*/React.createElement("div", _extends({
12203
12213
  ref: ref,
12204
12214
  className: classnames(className, handleBasicClasses({
@@ -12266,7 +12276,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
12266
12276
  }, [activeIndex, slideCount]);
12267
12277
  }
12268
12278
 
12269
- const _excluded$1c = ["activeIndex", "className", "nextButtonProps", "onNextClick", "onPaginationClick", "onPreviousClick", "parentRef", "previousButtonProps", "paginationProps", "slidesCount", "theme", "isAutoPlaying", "playButtonProps", "paginationItemLabel", "paginationItemProps"],
12279
+ const _excluded$1b = ["activeIndex", "className", "nextButtonProps", "onNextClick", "onPaginationClick", "onPreviousClick", "parentRef", "previousButtonProps", "paginationProps", "slidesCount", "theme", "isAutoPlaying", "playButtonProps", "paginationItemLabel", "paginationItemProps"],
12270
12280
  _excluded2$2 = ["className", "label"];
12271
12281
 
12272
12282
  /**
@@ -12316,7 +12326,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
12316
12326
  paginationItemLabel,
12317
12327
  paginationItemProps
12318
12328
  } = props,
12319
- forwardedProps = _objectWithoutProperties(props, _excluded$1c);
12329
+ forwardedProps = _objectWithoutProperties(props, _excluded$1b);
12320
12330
  let parent;
12321
12331
  if (WINDOW) {
12322
12332
  // Checking window object to avoid errors in SSR.
@@ -12418,7 +12428,7 @@ const SlideshowControls = Object.assign(InternalSlideshowControls, {
12418
12428
  useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS$1
12419
12429
  });
12420
12430
 
12421
- const _excluded$1d = ["activeIndex", "id", "className", "theme", "fillHeight", "groupBy", "isAutoPlaying", "toggleAutoPlay", "slidesId", "children", "afterSlides", "hasControls", "slideGroupLabel"];
12431
+ const _excluded$1c = ["activeIndex", "id", "className", "theme", "fillHeight", "groupBy", "isAutoPlaying", "toggleAutoPlay", "slidesId", "children", "afterSlides", "hasControls", "slideGroupLabel"];
12422
12432
  /**
12423
12433
  * Component display name.
12424
12434
  */
@@ -12452,7 +12462,7 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
12452
12462
  hasControls,
12453
12463
  slideGroupLabel
12454
12464
  } = props,
12455
- forwardedProps = _objectWithoutProperties(props, _excluded$1d);
12465
+ forwardedProps = _objectWithoutProperties(props, _excluded$1c);
12456
12466
  const wrapperRef = React.useRef(null);
12457
12467
  const startIndexVisible = activeIndex;
12458
12468
  const endIndexVisible = startIndexVisible + 1;
@@ -12498,7 +12508,7 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
12498
12508
  Slides.displayName = COMPONENT_NAME$17;
12499
12509
  Slides.className = CLASSNAME$14;
12500
12510
 
12501
- const _excluded$1e = ["checked", "children", "className", "disabled", "helper", "id", "isChecked", "isDisabled", "name", "onChange", "position", "theme", "value", "inputProps"];
12511
+ const _excluded$1d = ["checked", "children", "className", "disabled", "helper", "id", "isChecked", "isDisabled", "name", "onChange", "position", "theme", "value", "inputProps"];
12502
12512
 
12503
12513
  /**
12504
12514
  * Defines the props of the component.
@@ -12546,8 +12556,9 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
12546
12556
  value,
12547
12557
  inputProps = {}
12548
12558
  } = props,
12549
- forwardedProps = _objectWithoutProperties(props, _excluded$1e);
12550
- const inputId = useMemo(() => id || `switch-${uid()}`, [id]);
12559
+ forwardedProps = _objectWithoutProperties(props, _excluded$1d);
12560
+ const generatedInputId = useId();
12561
+ const inputId = id || generatedInputId;
12551
12562
  const handleChange = event => {
12552
12563
  if (onChange) {
12553
12564
  onChange(!isChecked, value, name, event);
@@ -12601,7 +12612,7 @@ Switch.displayName = COMPONENT_NAME$18;
12601
12612
  Switch.className = CLASSNAME$15;
12602
12613
  Switch.defaultProps = DEFAULT_PROPS$R;
12603
12614
 
12604
- const _excluded$1f = ["children", "className", "hasBefore", "hasDividers", "theme"];
12615
+ const _excluded$1e = ["children", "className", "hasBefore", "hasDividers", "theme"];
12605
12616
 
12606
12617
  /**
12607
12618
  * Defines the props of the component.
@@ -12639,7 +12650,7 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
12639
12650
  hasDividers,
12640
12651
  theme
12641
12652
  } = props,
12642
- forwardedProps = _objectWithoutProperties(props, _excluded$1f);
12653
+ forwardedProps = _objectWithoutProperties(props, _excluded$1e);
12643
12654
  return /*#__PURE__*/React.createElement("table", _extends({
12644
12655
  ref: ref
12645
12656
  }, forwardedProps, {
@@ -12655,7 +12666,7 @@ Table.displayName = COMPONENT_NAME$19;
12655
12666
  Table.className = CLASSNAME$16;
12656
12667
  Table.defaultProps = DEFAULT_PROPS$S;
12657
12668
 
12658
- const _excluded$1g = ["children", "className"];
12669
+ const _excluded$1f = ["children", "className"];
12659
12670
 
12660
12671
  /**
12661
12672
  * Defines the props of the component.
@@ -12683,7 +12694,7 @@ const TableBody = /*#__PURE__*/forwardRef((props, ref) => {
12683
12694
  children,
12684
12695
  className
12685
12696
  } = props,
12686
- forwardedProps = _objectWithoutProperties(props, _excluded$1g);
12697
+ forwardedProps = _objectWithoutProperties(props, _excluded$1f);
12687
12698
  return /*#__PURE__*/React.createElement("tbody", _extends({
12688
12699
  ref: ref
12689
12700
  }, forwardedProps, {
@@ -12695,7 +12706,7 @@ const TableBody = /*#__PURE__*/forwardRef((props, ref) => {
12695
12706
  TableBody.displayName = COMPONENT_NAME$1a;
12696
12707
  TableBody.className = CLASSNAME$17;
12697
12708
 
12698
- const _excluded$1h = ["children", "className", "icon", "isSortable", "onHeaderClick", "sortOrder", "variant"];
12709
+ const _excluded$1g = ["children", "className", "icon", "isSortable", "onHeaderClick", "sortOrder", "variant"];
12699
12710
 
12700
12711
  /**
12701
12712
  * Table head cell sort order.
@@ -12750,7 +12761,7 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
12750
12761
  sortOrder,
12751
12762
  variant
12752
12763
  } = props,
12753
- forwardedProps = _objectWithoutProperties(props, _excluded$1h);
12764
+ forwardedProps = _objectWithoutProperties(props, _excluded$1g);
12754
12765
 
12755
12766
  // Use button if clickable
12756
12767
  const Wrapper = onHeaderClick ? 'button' : 'div';
@@ -12803,7 +12814,7 @@ TableCell.displayName = COMPONENT_NAME$1b;
12803
12814
  TableCell.className = CLASSNAME$18;
12804
12815
  TableCell.defaultProps = DEFAULT_PROPS$T;
12805
12816
 
12806
- const _excluded$1i = ["children", "className"];
12817
+ const _excluded$1h = ["children", "className"];
12807
12818
 
12808
12819
  /**
12809
12820
  * Defines the props of the component.
@@ -12836,7 +12847,7 @@ const TableHeader = /*#__PURE__*/forwardRef((props, ref) => {
12836
12847
  children,
12837
12848
  className
12838
12849
  } = props,
12839
- forwardedProps = _objectWithoutProperties(props, _excluded$1i);
12850
+ forwardedProps = _objectWithoutProperties(props, _excluded$1h);
12840
12851
  return /*#__PURE__*/React.createElement("thead", _extends({
12841
12852
  ref: ref
12842
12853
  }, forwardedProps, {
@@ -12849,7 +12860,7 @@ TableHeader.displayName = COMPONENT_NAME$1c;
12849
12860
  TableHeader.className = CLASSNAME$19;
12850
12861
  TableHeader.defaultProps = DEFAULT_PROPS$U;
12851
12862
 
12852
- const _excluded$1j = ["children", "className", "disabled", "isClickable", "isDisabled", "isSelected"];
12863
+ const _excluded$1i = ["children", "className", "disabled", "isClickable", "isDisabled", "isSelected"];
12853
12864
 
12854
12865
  /**
12855
12866
  * Defines the props of the component.
@@ -12886,7 +12897,7 @@ const TableRow = /*#__PURE__*/forwardRef((props, ref) => {
12886
12897
  isDisabled = disabled,
12887
12898
  isSelected
12888
12899
  } = props,
12889
- forwardedProps = _objectWithoutProperties(props, _excluded$1j);
12900
+ forwardedProps = _objectWithoutProperties(props, _excluded$1i);
12890
12901
  return /*#__PURE__*/React.createElement("tr", _extends({
12891
12902
  ref: ref,
12892
12903
  tabIndex: isClickable && !isDisabled ? 0 : -1
@@ -12904,7 +12915,7 @@ TableRow.displayName = COMPONENT_NAME$1d;
12904
12915
  TableRow.className = CLASSNAME$1a;
12905
12916
  TableRow.defaultProps = DEFAULT_PROPS$V;
12906
12917
 
12907
- const _excluded$1k = ["children", "onChange"];
12918
+ const _excluded$1j = ["children", "onChange"];
12908
12919
  const DEFAULT_PROPS$W = {
12909
12920
  isLazy: INIT_STATE.isLazy,
12910
12921
  shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
@@ -12924,7 +12935,7 @@ const TabProvider = props => {
12924
12935
  children,
12925
12936
  onChange
12926
12937
  } = props,
12927
- propState = _objectWithoutProperties(props, _excluded$1k);
12938
+ propState = _objectWithoutProperties(props, _excluded$1j);
12928
12939
  const [state, dispatch] = useReducer(reducer, INIT_STATE);
12929
12940
 
12930
12941
  // On prop state change => dispatch update.
@@ -12952,7 +12963,7 @@ const TabProvider = props => {
12952
12963
  };
12953
12964
  TabProvider.defaultProps = DEFAULT_PROPS$W;
12954
12965
 
12955
- const _excluded$1l = ["aria-label", "children", "className", "layout", "position", "theme"];
12966
+ const _excluded$1k = ["aria-label", "children", "className", "layout", "position", "theme"];
12956
12967
  let TabListLayout = /*#__PURE__*/function (TabListLayout) {
12957
12968
  TabListLayout["clustered"] = "clustered";
12958
12969
  TabListLayout["fixed"] = "fixed";
@@ -13000,7 +13011,7 @@ const TabList = /*#__PURE__*/forwardRef((props, ref) => {
13000
13011
  position,
13001
13012
  theme
13002
13013
  } = props,
13003
- forwardedProps = _objectWithoutProperties(props, _excluded$1l);
13014
+ forwardedProps = _objectWithoutProperties(props, _excluded$1k);
13004
13015
  const tabListRef = React.useRef(null);
13005
13016
  useRovingTabIndex({
13006
13017
  parentRef: tabListRef,
@@ -13027,7 +13038,7 @@ TabList.displayName = COMPONENT_NAME$1e;
13027
13038
  TabList.className = CLASSNAME$1b;
13028
13039
  TabList.defaultProps = DEFAULT_PROPS$X;
13029
13040
 
13030
- const _excluded$1m = ["className", "disabled", "icon", "iconProps", "id", "isActive", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
13041
+ const _excluded$1l = ["className", "disabled", "icon", "iconProps", "id", "isActive", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
13031
13042
 
13032
13043
  /**
13033
13044
  * Defines the props of the component.
@@ -13071,7 +13082,7 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
13071
13082
  onKeyPress,
13072
13083
  tabIndex = -1
13073
13084
  } = props,
13074
- forwardedProps = _objectWithoutProperties(props, _excluded$1m);
13085
+ forwardedProps = _objectWithoutProperties(props, _excluded$1l);
13075
13086
  const state = useTabProviderContext('tab', id);
13076
13087
  const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
13077
13088
  const changeToCurrentTab = useCallback(() => {
@@ -13120,7 +13131,7 @@ Tab.displayName = COMPONENT_NAME$1f;
13120
13131
  Tab.className = CLASSNAME$1c;
13121
13132
  Tab.defaultProps = DEFAULT_PROPS$Y;
13122
13133
 
13123
- const _excluded$1n = ["children", "id", "className", "isActive"];
13134
+ const _excluded$1m = ["children", "id", "className", "isActive"];
13124
13135
 
13125
13136
  /**
13126
13137
  * Defines the props of the component.
@@ -13157,7 +13168,7 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
13157
13168
  className,
13158
13169
  isActive: propIsActive
13159
13170
  } = props,
13160
- forwardedProps = _objectWithoutProperties(props, _excluded$1n);
13171
+ forwardedProps = _objectWithoutProperties(props, _excluded$1m);
13161
13172
  const state = useTabProviderContext('tabPanel', id);
13162
13173
  const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
13163
13174
  return /*#__PURE__*/React.createElement("div", _extends({
@@ -13177,7 +13188,7 @@ TabPanel.displayName = COMPONENT_NAME$1g;
13177
13188
  TabPanel.className = CLASSNAME$1d;
13178
13189
  TabPanel.defaultProps = DEFAULT_PROPS$Z;
13179
13190
 
13180
- const _excluded$1o = ["id", "isDisabled", "isRequired", "placeholder", "multiline", "value", "setFocus", "onChange", "onFocus", "onBlur", "inputRef", "rows", "recomputeNumberOfRows", "type", "name", "hasError", "describedById"],
13191
+ const _excluded$1n = ["id", "isDisabled", "isRequired", "placeholder", "multiline", "value", "setFocus", "onChange", "onFocus", "onBlur", "inputRef", "rows", "recomputeNumberOfRows", "type", "name", "hasError", "describedById"],
13181
13192
  _excluded2$3 = ["chips", "className", "clearButtonProps", "disabled", "error", "forceFocusStyle", "hasError", "helper", "icon", "id", "inputRef", "isDisabled", "isRequired", "isValid", "label", "labelProps", "maxLength", "minimumRows", "multiline", "name", "onBlur", "onChange", "onClear", "onFocus", "placeholder", "textFieldRef", "theme", "type", "value", "afterElement"];
13182
13193
 
13183
13194
  /**
@@ -13262,7 +13273,7 @@ const renderInputNative = props => {
13262
13273
  hasError,
13263
13274
  describedById
13264
13275
  } = props,
13265
- forwardedProps = _objectWithoutProperties(props, _excluded$1o);
13276
+ forwardedProps = _objectWithoutProperties(props, _excluded$1n);
13266
13277
  // eslint-disable-next-line react-hooks/rules-of-hooks
13267
13278
  const ref = useRef(null);
13268
13279
 
@@ -13349,7 +13360,8 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
13349
13360
  afterElement
13350
13361
  } = props,
13351
13362
  forwardedProps = _objectWithoutProperties(props, _excluded2$3);
13352
- const textFieldId = useMemo(() => id || `text-field-${uid()}`, [id]);
13363
+ const generatedTextFieldId = useId();
13364
+ const textFieldId = id || generatedTextFieldId;
13353
13365
  /** Keep a clean local input ref to manage focus */
13354
13366
  const localInputRef = useRef(null);
13355
13367
  /** Merge prop input ref and local input ref */
@@ -13360,8 +13372,8 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
13360
13372
  * we want to first use the most important one, which is the errorId. That way, screen readers will read first
13361
13373
  * the error and then the helper
13362
13374
  */
13363
- const helperId = helper ? `text-field-helper-${uid()}` : undefined;
13364
- const errorId = error ? `text-field-error-${uid()}` : undefined;
13375
+ const helperId = helper ? `text-field-helper-${generatedTextFieldId}` : undefined;
13376
+ const errorId = error ? `text-field-error-${generatedTextFieldId}` : undefined;
13365
13377
  const describedByIds = [errorId, helperId, forwardedProps['aria-describedby']].filter(Boolean);
13366
13378
  const describedById = describedByIds.length === 0 ? undefined : describedByIds.join(' ');
13367
13379
  const [isFocus, setFocus] = useState(false);
@@ -13646,7 +13658,7 @@ const useFocusPointStyle = (_ref2, element, isLoaded) => {
13646
13658
  return style;
13647
13659
  };
13648
13660
 
13649
- const _excluded$1p = ["align", "alt", "aspectRatio", "badge", "className", "crossOrigin", "fallback", "fillHeight", "focusPoint", "image", "imgProps", "imgRef", "isLoading", "objectFit", "loading", "loadingPlaceholderImageRef", "size", "theme", "variant", "linkProps", "linkAs"];
13661
+ const _excluded$1o = ["align", "alt", "aspectRatio", "badge", "className", "crossOrigin", "fallback", "fillHeight", "focusPoint", "image", "imgProps", "imgRef", "isLoading", "objectFit", "loading", "loadingPlaceholderImageRef", "size", "theme", "variant", "linkProps", "linkAs"];
13650
13662
 
13651
13663
  /**
13652
13664
  * Defines the props of the component.
@@ -13705,7 +13717,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
13705
13717
  linkProps,
13706
13718
  linkAs
13707
13719
  } = props,
13708
- forwardedProps = _objectWithoutProperties(props, _excluded$1p);
13720
+ forwardedProps = _objectWithoutProperties(props, _excluded$1o);
13709
13721
  const [imgElement, setImgElement] = useState();
13710
13722
 
13711
13723
  // Image loading state.
@@ -13834,7 +13846,7 @@ const ThumbnailObjectFit = {
13834
13846
  contain: 'contain'
13835
13847
  };
13836
13848
 
13837
- const _excluded$1q = ["after", "before", "className", "label"];
13849
+ const _excluded$1p = ["after", "before", "className", "label"];
13838
13850
 
13839
13851
  /**
13840
13852
  * Defines the props of the component.
@@ -13869,7 +13881,7 @@ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
13869
13881
  className,
13870
13882
  label
13871
13883
  } = props,
13872
- forwardedProps = _objectWithoutProperties(props, _excluded$1q);
13884
+ forwardedProps = _objectWithoutProperties(props, _excluded$1p);
13873
13885
  return /*#__PURE__*/React.createElement("div", _extends({
13874
13886
  ref: ref
13875
13887
  }, forwardedProps, {
@@ -13907,6 +13919,8 @@ const useInjectTooltipRef = (children, setAnchorElement, isOpen, id, label) => {
13907
13919
  // Only add description when open
13908
13920
  const describedBy = isOpen ? id : undefined;
13909
13921
  return useMemo(() => {
13922
+ if (!label) return children;
13923
+
13910
13924
  // Non-disabled element
13911
13925
  if ( /*#__PURE__*/React.isValidElement(children) && children.props.disabled !== true && children.props.isDisabled !== true) {
13912
13926
  const ref = mergeRefs(children.ref, setAnchorElement);
@@ -14066,7 +14080,7 @@ function useTooltipOpen(delay, anchorElement) {
14066
14080
  };
14067
14081
  }
14068
14082
 
14069
- const _excluded$1r = ["label", "children", "className", "delay", "placement", "forceOpen"];
14083
+ const _excluded$1q = ["label", "children", "className", "delay", "placement", "forceOpen"];
14070
14084
 
14071
14085
  /** Position of the tooltip relative to the anchor element. */
14072
14086
 
@@ -14113,12 +14127,12 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
14113
14127
  placement,
14114
14128
  forceOpen
14115
14129
  } = props,
14116
- forwardedProps = _objectWithoutProperties(props, _excluded$1r);
14117
- // Disable in SSR or without a label.
14118
- if (!DOCUMENT || !label) {
14119
- return /*#__PURE__*/React.createElement(TooltipContextProvider, null, children);
14130
+ forwardedProps = _objectWithoutProperties(props, _excluded$1q);
14131
+ // Disable in SSR.
14132
+ if (!DOCUMENT) {
14133
+ return /*#__PURE__*/React.createElement(React.Fragment, null, children);
14120
14134
  }
14121
- const id = useMemo(() => `tooltip-${uid()}`, []);
14135
+ const id = useId();
14122
14136
  const [popperElement, setPopperElement] = useState(null);
14123
14137
  const [anchorElement, setAnchorElement] = useState(null);
14124
14138
  const {
@@ -14138,7 +14152,7 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
14138
14152
  isOpen: isActivated,
14139
14153
  onPopperMount
14140
14154
  } = useTooltipOpen(delay, anchorElement);
14141
- const isOpen = isActivated || forceOpen;
14155
+ const isOpen = (isActivated || forceOpen) && !!label;
14142
14156
  const wrappedChildren = useInjectTooltipRef(children, setAnchorElement, isOpen, id, label);
14143
14157
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TooltipContextProvider, null, wrappedChildren), isOpen && /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement("div", _extends({
14144
14158
  ref: mergeRefs(ref, setPopperElement, onPopperMount)
@@ -14163,7 +14177,7 @@ Tooltip.displayName = COMPONENT_NAME$1k;
14163
14177
  Tooltip.className = CLASSNAME$1h;
14164
14178
  Tooltip.defaultProps = DEFAULT_PROPS$11;
14165
14179
 
14166
- const _excluded$1s = ["aspectRatio", "className", "label", "icon", "size", "theme", "variant", "fileInputProps"];
14180
+ const _excluded$1r = ["aspectRatio", "className", "label", "icon", "size", "theme", "variant", "fileInputProps"];
14167
14181
 
14168
14182
  /**
14169
14183
  * Uploader variants.
@@ -14224,10 +14238,11 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
14224
14238
  variant,
14225
14239
  fileInputProps
14226
14240
  } = props,
14227
- forwardedProps = _objectWithoutProperties(props, _excluded$1s);
14241
+ forwardedProps = _objectWithoutProperties(props, _excluded$1r);
14228
14242
  // Adjust to square aspect ratio when using circle variants.
14229
14243
  const adjustedAspectRatio = variant === UploaderVariant.circle ? AspectRatio.square : aspectRatio;
14230
- const inputId = React.useMemo(() => (fileInputProps === null || fileInputProps === void 0 ? void 0 : fileInputProps.id) || uniqueId('uploader-input-'), [fileInputProps === null || fileInputProps === void 0 ? void 0 : fileInputProps.id]);
14244
+ const generatedInputId = useId();
14245
+ const inputId = (fileInputProps === null || fileInputProps === void 0 ? void 0 : fileInputProps.id) || generatedInputId;
14231
14246
  const [isDragHovering, unsetDragHovering, setDragHovering] = useBooleanState(false);
14232
14247
  const wrapper = fileInputProps ? {
14233
14248
  Component: 'label',
@@ -14284,7 +14299,7 @@ Uploader.displayName = COMPONENT_NAME$1l;
14284
14299
  Uploader.className = CLASSNAME$1i;
14285
14300
  Uploader.defaultProps = DEFAULT_PROPS$12;
14286
14301
 
14287
- const _excluded$1t = ["avatarProps", "className", "fields", "linkProps", "linkAs", "multipleActions", "name", "nameProps", "onClick", "onMouseEnter", "onMouseLeave", "orientation", "simpleAction", "size", "theme"];
14302
+ const _excluded$1s = ["avatarProps", "className", "fields", "linkProps", "linkAs", "multipleActions", "name", "nameProps", "onClick", "onMouseEnter", "onMouseLeave", "orientation", "simpleAction", "size", "theme"];
14288
14303
 
14289
14304
  /**
14290
14305
  * User block sizes.
@@ -14338,7 +14353,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
14338
14353
  size,
14339
14354
  theme
14340
14355
  } = props,
14341
- forwardedProps = _objectWithoutProperties(props, _excluded$1t);
14356
+ forwardedProps = _objectWithoutProperties(props, _excluded$1s);
14342
14357
  let componentSize = size;
14343
14358
 
14344
14359
  // Special case - When using vertical orientation force the size to be Sizes.l.
@@ -14370,7 +14385,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
14370
14385
  }
14371
14386
  return /*#__PURE__*/React.createElement(NameComponent, nProps, name);
14372
14387
  }, [avatarProps, isClickable, linkAs, linkProps, name, nameProps, onClick]);
14373
- const fieldsBlock = fields && componentSize !== Size.s && /*#__PURE__*/React.createElement("div", {
14388
+ const fieldsBlock = fields && componentSize !== Size.s && componentSize !== Size.xs && /*#__PURE__*/React.createElement("div", {
14374
14389
  className: `${CLASSNAME$1j}__fields`
14375
14390
  }, fields.map((field, idx) => /*#__PURE__*/React.createElement("span", {
14376
14391
  key: idx,