@lumx/react 4.19.1-alpha.5 → 4.19.1-alpha.6

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 (4) hide show
  1. package/index.d.ts +147 -82
  2. package/index.js +898 -603
  3. package/index.js.map +1 -1
  4. package/package.json +3 -3
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ColorVariant as ColorVariant$1, Size as Size$1, VISUALLY_HIDDEN, Theme as Theme$1, AspectRatio as AspectRatio$1, DOCUMENT, IS_BROWSER as IS_BROWSER$1, Emphasis as Emphasis$1, WINDOW, DIALOG_TRANSITION_DURATION, Orientation as Orientation$1, NOTIFICATION_TRANSITION_DURATION, Kind as Kind$1, Alignment as Alignment$1, ColorPalette as ColorPalette$1 } from '@lumx/core/js/constants';
1
+ import { ColorVariant as ColorVariant$1, Size as Size$1, VISUALLY_HIDDEN, Theme as Theme$1, AspectRatio as AspectRatio$1, DOCUMENT, IS_BROWSER as IS_BROWSER$1, Emphasis as Emphasis$1, WINDOW, DIALOG_TRANSITION_DURATION, Typography as Typography$1, Orientation as Orientation$1, NOTIFICATION_TRANSITION_DURATION, Kind as Kind$1, Alignment as Alignment$1, ColorPalette as ColorPalette$1 } from '@lumx/core/js/constants';
2
2
  export * from '@lumx/core/js/constants';
3
3
  export * from '@lumx/core/js/types';
4
4
  import * as React from 'react';
@@ -558,7 +558,7 @@ const CONFIG$1 = {
558
558
  /**
559
559
  * Component display name.
560
560
  */
561
- const COMPONENT_NAME$1F = 'AlertDialog';
561
+ const COMPONENT_NAME$1G = 'AlertDialog';
562
562
 
563
563
  /**
564
564
  * Component default class name and class prefix.
@@ -732,7 +732,7 @@ const AlertDialog = forwardRef((props, ref) => {
732
732
  ...forwardedProps
733
733
  });
734
734
  });
735
- AlertDialog.displayName = COMPONENT_NAME$1F;
735
+ AlertDialog.displayName = COMPONENT_NAME$1G;
736
736
  AlertDialog.className = CLASSNAME$1C;
737
737
  AlertDialog.defaultProps = DEFAULT_PROPS$1j;
738
738
 
@@ -826,7 +826,7 @@ function useDisableStateProps(props) {
826
826
  /**
827
827
  * Component display name.
828
828
  */
829
- const COMPONENT_NAME$1E = 'Autocomplete';
829
+ const COMPONENT_NAME$1F = 'Autocomplete';
830
830
 
831
831
  /**
832
832
  * Component default class name and class prefix.
@@ -939,14 +939,14 @@ const Autocomplete = forwardRef((props, ref) => {
939
939
  })]
940
940
  });
941
941
  });
942
- Autocomplete.displayName = COMPONENT_NAME$1E;
942
+ Autocomplete.displayName = COMPONENT_NAME$1F;
943
943
  Autocomplete.className = CLASSNAME$1B;
944
944
  Autocomplete.defaultProps = DEFAULT_PROPS$1i;
945
945
 
946
946
  /**
947
947
  * Component display name.
948
948
  */
949
- const COMPONENT_NAME$1D = 'AutocompleteMultiple';
949
+ const COMPONENT_NAME$1E = 'AutocompleteMultiple';
950
950
 
951
951
  /**
952
952
  * Component default class name and class prefix.
@@ -1065,14 +1065,14 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
1065
1065
  children: children
1066
1066
  });
1067
1067
  });
1068
- AutocompleteMultiple.displayName = COMPONENT_NAME$1D;
1068
+ AutocompleteMultiple.displayName = COMPONENT_NAME$1E;
1069
1069
  AutocompleteMultiple.className = CLASSNAME$1A;
1070
1070
  AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1h;
1071
1071
 
1072
1072
  /**
1073
1073
  * Component display name.
1074
1074
  */
1075
- const COMPONENT_NAME$1C = 'Avatar';
1075
+ const COMPONENT_NAME$1D = 'Avatar';
1076
1076
 
1077
1077
  /**
1078
1078
  * Component default class name and class prefix.
@@ -1172,14 +1172,14 @@ const Avatar = forwardRef((props, ref) => {
1172
1172
  })
1173
1173
  });
1174
1174
  });
1175
- Avatar.displayName = COMPONENT_NAME$1C;
1175
+ Avatar.displayName = COMPONENT_NAME$1D;
1176
1176
  Avatar.className = CLASSNAME$1z;
1177
1177
  Avatar.defaultProps = DEFAULT_PROPS$1g;
1178
1178
 
1179
1179
  /**
1180
1180
  * Component display name.
1181
1181
  */
1182
- const COMPONENT_NAME$1B = 'Badge';
1182
+ const COMPONENT_NAME$1C = 'Badge';
1183
1183
 
1184
1184
  /**
1185
1185
  * Component default class name and class prefix.
@@ -1219,7 +1219,7 @@ const Badge$1 = props => {
1219
1219
  children: children
1220
1220
  });
1221
1221
  };
1222
- Badge$1.displayName = COMPONENT_NAME$1B;
1222
+ Badge$1.displayName = COMPONENT_NAME$1C;
1223
1223
  Badge$1.className = CLASSNAME$1y;
1224
1224
  Badge$1.defaultProps = DEFAULT_PROPS$1f;
1225
1225
 
@@ -1244,7 +1244,7 @@ Badge.displayName = Badge$1.displayName;
1244
1244
  Badge.className = Badge$1.className;
1245
1245
  Badge.defaultProps = Badge$1.defaultProps;
1246
1246
 
1247
- const COMPONENT_NAME$1A = 'BadgeWrapper';
1247
+ const COMPONENT_NAME$1B = 'BadgeWrapper';
1248
1248
  const CLASSNAME$1x = 'lumx-badge-wrapper';
1249
1249
  const {
1250
1250
  block: block$18,
@@ -1275,7 +1275,7 @@ const BadgeWrapper = forwardRef((props, ref) => {
1275
1275
  ref
1276
1276
  });
1277
1277
  });
1278
- BadgeWrapper.displayName = COMPONENT_NAME$1A;
1278
+ BadgeWrapper.displayName = COMPONENT_NAME$1B;
1279
1279
  BadgeWrapper.className = CLASSNAME$1x;
1280
1280
 
1281
1281
  /**
@@ -1326,7 +1326,7 @@ const RawClickable = props => {
1326
1326
  /**
1327
1327
  * Component display name.
1328
1328
  */
1329
- const COMPONENT_NAME$1z = 'ButtonRoot';
1329
+ const COMPONENT_NAME$1A = 'ButtonRoot';
1330
1330
  const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
1331
1331
  const {
1332
1332
  block: buttonWrapperBlock
@@ -1424,7 +1424,7 @@ const ButtonRoot = props => {
1424
1424
  children
1425
1425
  });
1426
1426
  };
1427
- ButtonRoot.displayName = COMPONENT_NAME$1z;
1427
+ ButtonRoot.displayName = COMPONENT_NAME$1A;
1428
1428
  ButtonRoot.defaultProps = {};
1429
1429
 
1430
1430
  /**
@@ -1434,7 +1434,7 @@ ButtonRoot.defaultProps = {};
1434
1434
  /**
1435
1435
  * Component display name.
1436
1436
  */
1437
- const COMPONENT_NAME$1y = 'Button';
1437
+ const COMPONENT_NAME$1z = 'Button';
1438
1438
 
1439
1439
  /**
1440
1440
  * Component default class name and class prefix.
@@ -1479,7 +1479,7 @@ const Button$1 = props => {
1479
1479
  variant: 'button'
1480
1480
  });
1481
1481
  };
1482
- Button$1.displayName = COMPONENT_NAME$1y;
1482
+ Button$1.displayName = COMPONENT_NAME$1z;
1483
1483
  Button$1.className = CLASSNAME$1w;
1484
1484
  Button$1.defaultProps = DEFAULT_PROPS$1e;
1485
1485
 
@@ -1554,11 +1554,11 @@ const Button = forwardRef((props, ref) => {
1554
1554
  })
1555
1555
  });
1556
1556
  });
1557
- Button.displayName = COMPONENT_NAME$1y;
1557
+ Button.displayName = COMPONENT_NAME$1z;
1558
1558
  Button.className = CLASSNAME$1w;
1559
1559
  Button.defaultProps = DEFAULT_PROPS$1e;
1560
1560
 
1561
- const COMPONENT_NAME$1x = 'Icon';
1561
+ const COMPONENT_NAME$1y = 'Icon';
1562
1562
  const IconClassName = 'lumx-icon';
1563
1563
 
1564
1564
  /**
@@ -1651,14 +1651,14 @@ const Icon$1 = props => {
1651
1651
  })
1652
1652
  });
1653
1653
  };
1654
- Icon$1.displayName = COMPONENT_NAME$1x;
1654
+ Icon$1.displayName = COMPONENT_NAME$1y;
1655
1655
  Icon$1.className = CLASSNAME$1v;
1656
1656
  Icon$1.defaultProps = DEFAULT_PROPS$1d;
1657
1657
 
1658
1658
  /**
1659
1659
  * Component display name.
1660
1660
  */
1661
- const COMPONENT_NAME$1w = 'IconButton';
1661
+ const COMPONENT_NAME$1x = 'IconButton';
1662
1662
 
1663
1663
  /**
1664
1664
  * Component default class name and class prefix.
@@ -1704,7 +1704,7 @@ const IconButton$1 = props => {
1704
1704
  children: defaultChildren
1705
1705
  });
1706
1706
  };
1707
- IconButton$1.displayName = COMPONENT_NAME$1w;
1707
+ IconButton$1.displayName = COMPONENT_NAME$1x;
1708
1708
  IconButton$1.className = CLASSNAME$1u;
1709
1709
  IconButton$1.defaultProps = DEFAULT_PROPS$1c;
1710
1710
 
@@ -1749,14 +1749,14 @@ const IconButton = forwardRef((props, ref) => {
1749
1749
  })
1750
1750
  });
1751
1751
  });
1752
- IconButton.displayName = COMPONENT_NAME$1w;
1752
+ IconButton.displayName = COMPONENT_NAME$1x;
1753
1753
  IconButton.className = CLASSNAME$1u;
1754
1754
  IconButton.defaultProps = DEFAULT_PROPS$1c;
1755
1755
 
1756
1756
  /**
1757
1757
  * Component display name.
1758
1758
  */
1759
- const COMPONENT_NAME$1v = 'ButtonGroup';
1759
+ const COMPONENT_NAME$1w = 'ButtonGroup';
1760
1760
 
1761
1761
  /**
1762
1762
  * Component default class name and class prefix.
@@ -1786,7 +1786,7 @@ const ButtonGroup$1 = props => {
1786
1786
  children: children
1787
1787
  });
1788
1788
  };
1789
- ButtonGroup$1.displayName = COMPONENT_NAME$1v;
1789
+ ButtonGroup$1.displayName = COMPONENT_NAME$1w;
1790
1790
  ButtonGroup$1.className = CLASSNAME$1t;
1791
1791
  ButtonGroup$1.defaultProps = DEFAULT_PROPS$1b;
1792
1792
 
@@ -1803,11 +1803,11 @@ const ButtonGroup = forwardRef((props, ref) => {
1803
1803
  ...props
1804
1804
  });
1805
1805
  });
1806
- ButtonGroup.displayName = COMPONENT_NAME$1v;
1806
+ ButtonGroup.displayName = COMPONENT_NAME$1w;
1807
1807
  ButtonGroup.className = CLASSNAME$1t;
1808
1808
  ButtonGroup.defaultProps = DEFAULT_PROPS$1b;
1809
1809
 
1810
- const COMPONENT_NAME$1u = 'InputLabel';
1810
+ const COMPONENT_NAME$1v = 'InputLabel';
1811
1811
  const InputLabelClassName = 'lumx-input-label';
1812
1812
  const CLASSNAME$1s = InputLabelClassName;
1813
1813
  const {
@@ -1843,7 +1843,7 @@ function InputLabel$1(props) {
1843
1843
  children: children
1844
1844
  });
1845
1845
  }
1846
- InputLabel$1.displayName = COMPONENT_NAME$1u;
1846
+ InputLabel$1.displayName = COMPONENT_NAME$1v;
1847
1847
  InputLabel$1.className = CLASSNAME$1s;
1848
1848
  InputLabel$1.defaultProps = DEFAULT_PROPS$1a;
1849
1849
 
@@ -1859,7 +1859,7 @@ const INPUT_HELPER_CONFIGURATION = {
1859
1859
  }
1860
1860
  };
1861
1861
 
1862
- const COMPONENT_NAME$1t = 'InputHelper';
1862
+ const COMPONENT_NAME$1u = 'InputHelper';
1863
1863
  const InputHelperClassName = 'lumx-input-helper';
1864
1864
 
1865
1865
  /**
@@ -1903,7 +1903,7 @@ function InputHelper$1(props) {
1903
1903
  children: children
1904
1904
  });
1905
1905
  }
1906
- InputHelper$1.displayName = COMPONENT_NAME$1t;
1906
+ InputHelper$1.displayName = COMPONENT_NAME$1u;
1907
1907
  InputHelper$1.className = CLASSNAME$1r;
1908
1908
  InputHelper$1.defaultProps = DEFAULT_PROPS$19;
1909
1909
 
@@ -1916,7 +1916,7 @@ const INTERMEDIATE_STATE = 'intermediate';
1916
1916
  /**
1917
1917
  * Component display name.
1918
1918
  */
1919
- const COMPONENT_NAME$1s = 'Checkbox';
1919
+ const COMPONENT_NAME$1t = 'Checkbox';
1920
1920
 
1921
1921
  /**
1922
1922
  * Component default class name and class prefix.
@@ -2080,7 +2080,7 @@ const Checkbox = forwardRef((props, ref) => {
2080
2080
  inputId
2081
2081
  });
2082
2082
  });
2083
- Checkbox.displayName = COMPONENT_NAME$1s;
2083
+ Checkbox.displayName = COMPONENT_NAME$1t;
2084
2084
  Checkbox.className = CLASSNAME$1q;
2085
2085
  Checkbox.defaultProps = DEFAULT_PROPS$18;
2086
2086
 
@@ -2103,7 +2103,7 @@ function useStopPropagation(handler) {
2103
2103
  /**
2104
2104
  * Component display name.
2105
2105
  */
2106
- const COMPONENT_NAME$1r = 'Chip';
2106
+ const COMPONENT_NAME$1s = 'Chip';
2107
2107
 
2108
2108
  /**
2109
2109
  * Component default class name and class prefix.
@@ -2264,14 +2264,14 @@ const Chip = forwardRef((props, ref) => {
2264
2264
  ...forwardedProps
2265
2265
  });
2266
2266
  });
2267
- Chip.displayName = COMPONENT_NAME$1r;
2267
+ Chip.displayName = COMPONENT_NAME$1s;
2268
2268
  Chip.className = CLASSNAME$1p;
2269
2269
  Chip.defaultProps = DEFAULT_PROPS$17;
2270
2270
 
2271
2271
  /**
2272
2272
  * Component display name.
2273
2273
  */
2274
- const COMPONENT_NAME$1q = 'ChipGroup';
2274
+ const COMPONENT_NAME$1r = 'ChipGroup';
2275
2275
 
2276
2276
  /**
2277
2277
  * Component default class name and class prefix.
@@ -2377,7 +2377,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
2377
2377
  ...forwardedProps
2378
2378
  });
2379
2379
  });
2380
- InternalChipGroup.displayName = COMPONENT_NAME$1q;
2380
+ InternalChipGroup.displayName = COMPONENT_NAME$1r;
2381
2381
  InternalChipGroup.className = CLASSNAME$1o;
2382
2382
  InternalChipGroup.defaultProps = DEFAULT_PROPS$16;
2383
2383
  const ChipGroup = Object.assign(InternalChipGroup, {
@@ -2387,7 +2387,7 @@ const ChipGroup = Object.assign(InternalChipGroup, {
2387
2387
  /**
2388
2388
  * Component display name.
2389
2389
  */
2390
- const COMPONENT_NAME$1p = 'SelectionChipGroup';
2390
+ const COMPONENT_NAME$1q = 'SelectionChipGroup';
2391
2391
 
2392
2392
  /**
2393
2393
  * Component default class name and class prefix.
@@ -2709,7 +2709,7 @@ function wrapChildrenIconWithSpaces(children) {
2709
2709
  /**
2710
2710
  * Component display name.
2711
2711
  */
2712
- const COMPONENT_NAME$1o = 'Text';
2712
+ const COMPONENT_NAME$1p = 'Text';
2713
2713
 
2714
2714
  /**
2715
2715
  * Component default class name and class prefix.
@@ -2807,7 +2807,7 @@ const Text = forwardRef((props, ref) => {
2807
2807
  children: wrapChildrenIconWithSpaces(children)
2808
2808
  });
2809
2809
  });
2810
- Text.displayName = COMPONENT_NAME$1o;
2810
+ Text.displayName = COMPONENT_NAME$1p;
2811
2811
  Text.className = CLASSNAME$1m;
2812
2812
  Text.defaultProps = DEFAULT_PROPS$15;
2813
2813
 
@@ -4901,7 +4901,7 @@ const DEFAULT_PROPS$14 = {
4901
4901
  /**
4902
4902
  * Component display name.
4903
4903
  */
4904
- const COMPONENT_NAME$1n = 'Tooltip';
4904
+ const COMPONENT_NAME$1o = 'Tooltip';
4905
4905
 
4906
4906
  /**
4907
4907
  * Component default class name and class prefix.
@@ -4959,7 +4959,7 @@ const TooltipPopup = props => {
4959
4959
  })]
4960
4960
  });
4961
4961
  };
4962
- TooltipPopup.displayName = COMPONENT_NAME$1n;
4962
+ TooltipPopup.displayName = COMPONENT_NAME$1o;
4963
4963
  TooltipPopup.className = CLASSNAME$1l;
4964
4964
 
4965
4965
  /**
@@ -5322,7 +5322,7 @@ const Tooltip = forwardRef((props, ref) => {
5322
5322
  })]
5323
5323
  });
5324
5324
  });
5325
- Tooltip.displayName = COMPONENT_NAME$1n;
5325
+ Tooltip.displayName = COMPONENT_NAME$1o;
5326
5326
  Tooltip.className = CLASSNAME$1l;
5327
5327
  Tooltip.defaultProps = DEFAULT_PROPS$14;
5328
5328
 
@@ -6234,7 +6234,7 @@ const SelectionChipGroup = ({
6234
6234
  Tooltip
6235
6235
  });
6236
6236
  };
6237
- SelectionChipGroup.displayName = COMPONENT_NAME$1p;
6237
+ SelectionChipGroup.displayName = COMPONENT_NAME$1q;
6238
6238
  SelectionChipGroup.className = CLASSNAME$1n;
6239
6239
 
6240
6240
  /**
@@ -7199,7 +7199,7 @@ function setupComboboxButton(button, callbacks) {
7199
7199
  /**
7200
7200
  * Component display name.
7201
7201
  */
7202
- const COMPONENT_NAME$1m = 'ComboboxButton';
7202
+ const COMPONENT_NAME$1n = 'ComboboxButton';
7203
7203
 
7204
7204
  /**
7205
7205
  * Component default class name and class prefix.
@@ -7388,7 +7388,7 @@ const ComboboxButton = Object.assign(forwardRefPolymorphic((props, ref) => {
7388
7388
  Tooltip
7389
7389
  });
7390
7390
  }), {
7391
- displayName: COMPONENT_NAME$1m,
7391
+ displayName: COMPONENT_NAME$1n,
7392
7392
  className: CLASSNAME$1k
7393
7393
  });
7394
7394
 
@@ -7553,7 +7553,7 @@ function getDisabledState(context, props) {
7553
7553
  /**
7554
7554
  * Component display name.
7555
7555
  */
7556
- const COMPONENT_NAME$1l = 'ComboboxInput';
7556
+ const COMPONENT_NAME$1m = 'ComboboxInput';
7557
7557
 
7558
7558
  /**
7559
7559
  * Component default class name and class prefix.
@@ -7621,7 +7621,7 @@ const ComboboxInput$1 = (props, {
7621
7621
  /**
7622
7622
  * Component display name.
7623
7623
  */
7624
- const COMPONENT_NAME$1k = 'TextField';
7624
+ const COMPONENT_NAME$1l = 'TextField';
7625
7625
 
7626
7626
  /**
7627
7627
  * Component default class name and class prefix.
@@ -8161,7 +8161,7 @@ const TextField = forwardRef((props, ref) => {
8161
8161
  } : undefined
8162
8162
  });
8163
8163
  });
8164
- TextField.displayName = COMPONENT_NAME$1k;
8164
+ TextField.displayName = COMPONENT_NAME$1l;
8165
8165
  TextField.className = CLASSNAME$1i;
8166
8166
  TextField.defaultProps = DEFAULT_PROPS$10;
8167
8167
 
@@ -8250,13 +8250,13 @@ const ComboboxInput = forwardRef((props, ref) => {
8250
8250
  IconButton
8251
8251
  });
8252
8252
  });
8253
- ComboboxInput.displayName = COMPONENT_NAME$1l;
8253
+ ComboboxInput.displayName = COMPONENT_NAME$1m;
8254
8254
  ComboboxInput.className = CLASSNAME$1j;
8255
8255
 
8256
8256
  /**
8257
8257
  * Component display name.
8258
8258
  */
8259
- const COMPONENT_NAME$1j = 'List';
8259
+ const COMPONENT_NAME$1k = 'List';
8260
8260
 
8261
8261
  /**
8262
8262
  * Component default class name and class prefix.
@@ -8294,7 +8294,7 @@ const List$1 = props => {
8294
8294
  children: children
8295
8295
  });
8296
8296
  };
8297
- List$1.displayName = COMPONENT_NAME$1j;
8297
+ List$1.displayName = COMPONENT_NAME$1k;
8298
8298
  List$1.className = CLASSNAME$1h;
8299
8299
  List$1.defaultProps = DEFAULT_PROPS$$;
8300
8300
 
@@ -8311,7 +8311,7 @@ List$1.defaultProps = DEFAULT_PROPS$$;
8311
8311
  /**
8312
8312
  * Component display name.
8313
8313
  */
8314
- const COMPONENT_NAME$1i = 'ComboboxList';
8314
+ const COMPONENT_NAME$1j = 'ComboboxList';
8315
8315
 
8316
8316
  /**
8317
8317
  * Component default class name and class prefix.
@@ -8428,13 +8428,13 @@ const ComboboxList = forwardRef((props, ref) => {
8428
8428
  })
8429
8429
  });
8430
8430
  });
8431
- ComboboxList.displayName = COMPONENT_NAME$1i;
8431
+ ComboboxList.displayName = COMPONENT_NAME$1j;
8432
8432
  ComboboxList.className = CLASSNAME$1g;
8433
8433
 
8434
8434
  /**
8435
8435
  * Component display name.
8436
8436
  */
8437
- const COMPONENT_NAME$1h = 'ListItem';
8437
+ const COMPONENT_NAME$1i = 'ListItem';
8438
8438
 
8439
8439
  /**
8440
8440
  * Component default class name and class prefix.
@@ -8510,7 +8510,7 @@ const ListItem$1 = props => {
8510
8510
  })
8511
8511
  });
8512
8512
  };
8513
- ListItem$1.displayName = COMPONENT_NAME$1h;
8513
+ ListItem$1.displayName = COMPONENT_NAME$1i;
8514
8514
  ListItem$1.className = CLASSNAME$1f;
8515
8515
  ListItem$1.defaultProps = DEFAULT_PROPS$_;
8516
8516
 
@@ -8521,7 +8521,7 @@ ListItem$1.defaultProps = DEFAULT_PROPS$_;
8521
8521
  /**
8522
8522
  * Component display name.
8523
8523
  */
8524
- const COMPONENT_NAME$1g = 'ListItemAction';
8524
+ const COMPONENT_NAME$1h = 'ListItemAction';
8525
8525
 
8526
8526
  /**
8527
8527
  * Component classname (used by action area CSS pattern).
@@ -8560,7 +8560,7 @@ const ListItemAction$1 = props => {
8560
8560
  /**
8561
8561
  * Component display name.
8562
8562
  */
8563
- const COMPONENT_NAME$1f = 'ComboboxOption';
8563
+ const COMPONENT_NAME$1g = 'ComboboxOption';
8564
8564
 
8565
8565
  /**
8566
8566
  * Component default class name and class prefix.
@@ -8753,7 +8753,7 @@ const ComboboxOption = forwardRef((props, ref) => {
8753
8753
  Tooltip
8754
8754
  });
8755
8755
  });
8756
- ComboboxOption.displayName = COMPONENT_NAME$1f;
8756
+ ComboboxOption.displayName = COMPONENT_NAME$1g;
8757
8757
  ComboboxOption.className = CLASSNAME$1d;
8758
8758
 
8759
8759
  /**
@@ -8763,7 +8763,7 @@ ComboboxOption.className = CLASSNAME$1d;
8763
8763
  /**
8764
8764
  * Component display name.
8765
8765
  */
8766
- const COMPONENT_NAME$1e = 'ComboboxOptionAction';
8766
+ const COMPONENT_NAME$1f = 'ComboboxOptionAction';
8767
8767
 
8768
8768
  /**
8769
8769
  * Component default class name and class prefix.
@@ -8841,14 +8841,14 @@ const ComboboxOptionAction = Object.assign(forwardRefPolymorphic((props, ref) =>
8841
8841
  children
8842
8842
  });
8843
8843
  }), {
8844
- displayName: COMPONENT_NAME$1e,
8844
+ displayName: COMPONENT_NAME$1f,
8845
8845
  className: CLASSNAME$1c
8846
8846
  });
8847
8847
 
8848
8848
  /**
8849
8849
  * Component display name.
8850
8850
  */
8851
- const COMPONENT_NAME$1d = 'ComboboxOptionMoreInfo';
8851
+ const COMPONENT_NAME$1e = 'ComboboxOptionMoreInfo';
8852
8852
 
8853
8853
  /**
8854
8854
  * Component default class name and class prefix.
@@ -9170,7 +9170,7 @@ const POPOVER_ZINDEX = 9999;
9170
9170
  /**
9171
9171
  * Component display name.
9172
9172
  */
9173
- const COMPONENT_NAME$1c = 'Popover';
9173
+ const COMPONENT_NAME$1d = 'Popover';
9174
9174
 
9175
9175
  /**
9176
9176
  * Component default class name and class prefix.
@@ -9705,7 +9705,7 @@ const _InnerPopover = forwardRef((props, ref) => {
9705
9705
  ThemeProvider
9706
9706
  });
9707
9707
  });
9708
- _InnerPopover.displayName = COMPONENT_NAME$1c;
9708
+ _InnerPopover.displayName = COMPONENT_NAME$1d;
9709
9709
 
9710
9710
  /**
9711
9711
  * Popover component.
@@ -9717,7 +9717,7 @@ _InnerPopover.displayName = COMPONENT_NAME$1c;
9717
9717
  const Popover = skipRender(
9718
9718
  // Skip render in SSR
9719
9719
  () => Boolean(DOCUMENT), _InnerPopover);
9720
- Popover.displayName = COMPONENT_NAME$1c;
9720
+ Popover.displayName = COMPONENT_NAME$1d;
9721
9721
  Popover.className = CLASSNAME$1a;
9722
9722
  Popover.defaultProps = DEFAULT_PROPS$Y;
9723
9723
 
@@ -9781,13 +9781,13 @@ const ComboboxOptionMoreInfo = props => {
9781
9781
  Popover
9782
9782
  });
9783
9783
  };
9784
- ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$1d;
9784
+ ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$1e;
9785
9785
  ComboboxOptionMoreInfo.className = CLASSNAME$1b;
9786
9786
 
9787
9787
  /**
9788
9788
  * Component display name.
9789
9789
  */
9790
- const COMPONENT_NAME$1b = 'SkeletonTypography';
9790
+ const COMPONENT_NAME$1c = 'SkeletonTypography';
9791
9791
 
9792
9792
  /**
9793
9793
  * Component default class name and class prefix.
@@ -9835,7 +9835,7 @@ const SkeletonTypography$1 = props => {
9835
9835
  /**
9836
9836
  * Component display name.
9837
9837
  */
9838
- const COMPONENT_NAME$1a = 'ComboboxOptionSkeleton';
9838
+ const COMPONENT_NAME$1b = 'ComboboxOptionSkeleton';
9839
9839
 
9840
9840
  /**
9841
9841
  * Component default class name and class prefix.
@@ -9920,12 +9920,12 @@ const ComboboxOptionSkeleton = props => {
9920
9920
  ...props
9921
9921
  });
9922
9922
  };
9923
- ComboboxOptionSkeleton.displayName = COMPONENT_NAME$1a;
9923
+ ComboboxOptionSkeleton.displayName = COMPONENT_NAME$1b;
9924
9924
  ComboboxOptionSkeleton.className = CLASSNAME$18;
9925
9925
 
9926
9926
  const DEFAULT_COMBOBOX_POPOVER_MAX_HEIGHT = '80vh';
9927
9927
 
9928
- const COMPONENT_NAME$19 = 'ComboboxPopover';
9928
+ const COMPONENT_NAME$1a = 'ComboboxPopover';
9929
9929
 
9930
9930
  /**
9931
9931
  * Component default class name.
@@ -9999,7 +9999,7 @@ const ComboboxPopover$1 = (props, {
9999
9999
  /**
10000
10000
  * Component display name.
10001
10001
  */
10002
- const COMPONENT_NAME$18 = 'FlexBox';
10002
+ const COMPONENT_NAME$19 = 'FlexBox';
10003
10003
 
10004
10004
  /**
10005
10005
  * Component default class name and class prefix.
@@ -10063,7 +10063,7 @@ const FlexBox = forwardRef((props, ref) => {
10063
10063
  children: children
10064
10064
  });
10065
10065
  });
10066
- FlexBox.displayName = COMPONENT_NAME$18;
10066
+ FlexBox.displayName = COMPONENT_NAME$19;
10067
10067
  FlexBox.className = CLASSNAME$16;
10068
10068
 
10069
10069
  /**
@@ -10102,7 +10102,7 @@ const ComboboxPopover = props => {
10102
10102
  FlexBox
10103
10103
  });
10104
10104
  };
10105
- ComboboxPopover.displayName = COMPONENT_NAME$19;
10105
+ ComboboxPopover.displayName = COMPONENT_NAME$1a;
10106
10106
  ComboboxPopover.className = CLASSNAME$17;
10107
10107
 
10108
10108
  /**
@@ -10148,7 +10148,7 @@ ComboboxProvider.displayName = 'Combobox.Provider';
10148
10148
  /**
10149
10149
  * Component display name.
10150
10150
  */
10151
- const COMPONENT_NAME$17 = 'ComboboxSection';
10151
+ const COMPONENT_NAME$18 = 'ComboboxSection';
10152
10152
 
10153
10153
  /**
10154
10154
  * Component default class name and class prefix.
@@ -10192,7 +10192,7 @@ const ComboboxSection$1 = (props, {
10192
10192
  /**
10193
10193
  * Component display name.
10194
10194
  */
10195
- const COMPONENT_NAME$16 = 'ListSection';
10195
+ const COMPONENT_NAME$17 = 'ListSection';
10196
10196
 
10197
10197
  /**
10198
10198
  * Component default class name and class prefix.
@@ -10248,7 +10248,7 @@ const ListSection$1 = props => {
10248
10248
  })]
10249
10249
  });
10250
10250
  };
10251
- ListSection$1.displayName = COMPONENT_NAME$16;
10251
+ ListSection$1.displayName = COMPONENT_NAME$17;
10252
10252
  ListSection$1.className = CLASSNAME$14;
10253
10253
  ListSection$1.defaultProps = DEFAULT_PROPS$X;
10254
10254
 
@@ -10272,7 +10272,7 @@ const ListSection = forwardRef((props, ref) => {
10272
10272
  Text
10273
10273
  });
10274
10274
  });
10275
- ListSection.displayName = COMPONENT_NAME$16;
10275
+ ListSection.displayName = COMPONENT_NAME$17;
10276
10276
  ListSection.className = CLASSNAME$14;
10277
10277
  ListSection.defaultProps = DEFAULT_PROPS$X;
10278
10278
 
@@ -10322,13 +10322,13 @@ const ComboboxSection = forwardRef((props, ref) => {
10322
10322
  ListSection
10323
10323
  });
10324
10324
  });
10325
- ComboboxSection.displayName = COMPONENT_NAME$17;
10325
+ ComboboxSection.displayName = COMPONENT_NAME$18;
10326
10326
  ComboboxSection.className = CLASSNAME$15;
10327
10327
 
10328
10328
  /**
10329
10329
  * Component display name.
10330
10330
  */
10331
- const COMPONENT_NAME$15 = 'ComboboxState';
10331
+ const COMPONENT_NAME$16 = 'ComboboxState';
10332
10332
 
10333
10333
  /**
10334
10334
  * Component default class name and class prefix.
@@ -10509,7 +10509,7 @@ function partitionMulti(elements, predicates) {
10509
10509
  /**
10510
10510
  * Component display name.
10511
10511
  */
10512
- const COMPONENT_NAME$14 = 'GenericBlock';
10512
+ const COMPONENT_NAME$15 = 'GenericBlock';
10513
10513
 
10514
10514
  /**
10515
10515
  * Component default class name and class prefix.
@@ -10660,7 +10660,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
10660
10660
  }) : undefined
10661
10661
  });
10662
10662
  });
10663
- BaseGenericBlock.displayName = COMPONENT_NAME$14;
10663
+ BaseGenericBlock.displayName = COMPONENT_NAME$15;
10664
10664
  BaseGenericBlock.className = CLASSNAME$12;
10665
10665
  BaseGenericBlock.defaultProps = DEFAULT_PROPS$W;
10666
10666
  const GenericBlock = Object.assign(BaseGenericBlock, {
@@ -10740,13 +10740,13 @@ const ComboboxState = props => {
10740
10740
  Text
10741
10741
  });
10742
10742
  };
10743
- ComboboxState.displayName = COMPONENT_NAME$15;
10743
+ ComboboxState.displayName = COMPONENT_NAME$16;
10744
10744
  ComboboxState.className = CLASSNAME$13;
10745
10745
 
10746
10746
  /**
10747
10747
  * Component display name.
10748
10748
  */
10749
- const COMPONENT_NAME$13 = 'ListDivider';
10749
+ const COMPONENT_NAME$14 = 'ListDivider';
10750
10750
 
10751
10751
  /**
10752
10752
  * Component default class name and class prefix.
@@ -10778,7 +10778,7 @@ const ListDivider$1 = props => {
10778
10778
  className: classnames(className, CLASSNAME$11)
10779
10779
  });
10780
10780
  };
10781
- ListDivider$1.displayName = COMPONENT_NAME$13;
10781
+ ListDivider$1.displayName = COMPONENT_NAME$14;
10782
10782
  ListDivider$1.className = CLASSNAME$11;
10783
10783
  ListDivider$1.defaultProps = DEFAULT_PROPS$V;
10784
10784
 
@@ -10800,7 +10800,7 @@ const ListDivider = forwardRef((props, ref) => {
10800
10800
  ref
10801
10801
  });
10802
10802
  });
10803
- ListDivider.displayName = COMPONENT_NAME$13;
10803
+ ListDivider.displayName = COMPONENT_NAME$14;
10804
10804
  ListDivider.className = CLASSNAME$11;
10805
10805
  ListDivider.defaultProps = DEFAULT_PROPS$V;
10806
10806
 
@@ -10851,7 +10851,7 @@ const CommentBlockVariant = {
10851
10851
  /**
10852
10852
  * Component display name.
10853
10853
  */
10854
- const COMPONENT_NAME$12 = 'CommentBlock';
10854
+ const COMPONENT_NAME$13 = 'CommentBlock';
10855
10855
 
10856
10856
  /**
10857
10857
  * Component default class name and class prefix.
@@ -10962,7 +10962,7 @@ const CommentBlock = forwardRef((props, ref) => {
10962
10962
  })]
10963
10963
  });
10964
10964
  });
10965
- CommentBlock.displayName = COMPONENT_NAME$12;
10965
+ CommentBlock.displayName = COMPONENT_NAME$13;
10966
10966
  CommentBlock.className = CLASSNAME$10;
10967
10967
  CommentBlock.defaultProps = DEFAULT_PROPS$U;
10968
10968
 
@@ -10984,7 +10984,7 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
10984
10984
  /**
10985
10985
  * Component display name.
10986
10986
  */
10987
- const COMPONENT_NAME$11 = 'DatePicker';
10987
+ const COMPONENT_NAME$12 = 'DatePicker';
10988
10988
 
10989
10989
  /**
10990
10990
  * Component default class name and class prefix.
@@ -11221,7 +11221,7 @@ const {
11221
11221
  /**
11222
11222
  * Component display name.
11223
11223
  */
11224
- const COMPONENT_NAME$10 = 'DatePickerControlled';
11224
+ const COMPONENT_NAME$11 = 'DatePickerControlled';
11225
11225
 
11226
11226
  /**
11227
11227
  * DatePickerControlled component.
@@ -11411,7 +11411,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
11411
11411
  })]
11412
11412
  });
11413
11413
  });
11414
- DatePickerControlled.displayName = COMPONENT_NAME$10;
11414
+ DatePickerControlled.displayName = COMPONENT_NAME$11;
11415
11415
  DatePickerControlled.className = CLASSNAME$$;
11416
11416
 
11417
11417
  /**
@@ -11454,7 +11454,7 @@ const DatePicker = forwardRef((props, ref) => {
11454
11454
  onMonthChange: setSelectedMonth
11455
11455
  });
11456
11456
  });
11457
- DatePicker.displayName = COMPONENT_NAME$11;
11457
+ DatePicker.displayName = COMPONENT_NAME$12;
11458
11458
  DatePicker.className = CLASSNAME$$;
11459
11459
 
11460
11460
  const useBooleanState = defaultValue => {
@@ -11468,7 +11468,7 @@ const useBooleanState = defaultValue => {
11468
11468
  /**
11469
11469
  * Component display name.
11470
11470
  */
11471
- const COMPONENT_NAME$$ = 'DatePickerField';
11471
+ const COMPONENT_NAME$10 = 'DatePickerField';
11472
11472
 
11473
11473
  /**
11474
11474
  * DatePickerField component.
@@ -11557,7 +11557,7 @@ const DatePickerField = forwardRef((props, ref) => {
11557
11557
  }) : null]
11558
11558
  });
11559
11559
  });
11560
- DatePickerField.displayName = COMPONENT_NAME$$;
11560
+ DatePickerField.displayName = COMPONENT_NAME$10;
11561
11561
 
11562
11562
  /**
11563
11563
  * Convenient hook to create interaction observers.
@@ -11850,13 +11850,23 @@ const useTransitionVisibility = (ref, isComponentVisible, timeout, onVisibilityC
11850
11850
  return isVisible || isComponentVisible;
11851
11851
  };
11852
11852
 
11853
+ /**
11854
+ * Dialog label id key in IdsRegistry
11855
+ */
11856
+ const DIALOG_LABEL_KEY = 'dialog-label';
11857
+
11853
11858
  /**
11854
11859
  * Component display name.
11855
11860
  */
11856
- const COMPONENT_NAME$_ = 'Dialog';
11861
+ const COMPONENT_NAME$$ = 'Dialog';
11857
11862
 
11858
11863
  /**
11859
- * Component default class name and class prefix.
11864
+ * `DialogHeading` component display name.
11865
+ */
11866
+ const DIALOG_HEADING_COMPONENT_NAME = 'DialogHeading';
11867
+
11868
+ /**
11869
+ * Component default class name and class prefix. Shared by the shell and the container modules.
11860
11870
  */
11861
11871
  const CLASSNAME$_ = 'lumx-dialog';
11862
11872
  const {
@@ -11872,46 +11882,25 @@ const DEFAULT_PROPS$T = {
11872
11882
  };
11873
11883
 
11874
11884
  /**
11875
- * Dialog component.
11885
+ * Dialog shell: overlay + context providers (theme, heading level, ids registry).
11876
11886
  *
11877
11887
  * @param props Component props.
11878
- * @param ref Component ref.
11879
11888
  * @return React element.
11880
11889
  */
11881
- const Dialog$1 = props => {
11890
+ const DialogShell = props => {
11882
11891
  const {
11883
11892
  className,
11884
11893
  ref,
11885
- header,
11886
- forceFooterDivider,
11887
- forceHeaderDivider,
11888
- footer,
11889
- isLoading,
11890
11894
  isOpen,
11891
- handleClose,
11892
- contentRef,
11895
+ isLoading,
11896
+ isVisible,
11893
11897
  size = DEFAULT_PROPS$T.size,
11894
11898
  zIndex,
11895
- dialogProps,
11896
- headerChildContent,
11897
- isVisible,
11899
+ children,
11898
11900
  Portal,
11899
11901
  HeadingLevelProvider,
11900
11902
  ThemeProvider,
11901
- ClickAwayProvider,
11902
- shouldPreventCloseOnClickAway,
11903
- clickAwayRefs,
11904
- rootRef,
11905
- wrapperRef,
11906
- hasTopIntersection,
11907
- headerChildProps,
11908
- setSentinelTop,
11909
- content,
11910
- setSentinelBottom,
11911
- footerChildContent,
11912
- footerChildProps,
11913
- ProgressCircular,
11914
- hasBottomIntersection,
11903
+ IdsRegistryProvider,
11915
11904
  ...forwardedProps
11916
11905
  } = props;
11917
11906
  return /*#__PURE__*/jsx(Portal, {
@@ -11933,50 +11922,8 @@ const Dialog$1 = props => {
11933
11922
  level: 2,
11934
11923
  children: /*#__PURE__*/jsx(ThemeProvider, {
11935
11924
  value: undefined,
11936
- children: /*#__PURE__*/jsx("div", {
11937
- className: element$B('container'),
11938
- role: "dialog",
11939
- "aria-modal": "true",
11940
- ...dialogProps,
11941
- children: /*#__PURE__*/jsx(ClickAwayProvider, {
11942
- callback: !shouldPreventCloseOnClickAway && handleClose,
11943
- childrenRefs: clickAwayRefs,
11944
- parentRef: rootRef,
11945
- children: /*#__PURE__*/jsxs("section", {
11946
- className: element$B('wrapper'),
11947
- ref: wrapperRef,
11948
- children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
11949
- ...headerChildProps,
11950
- className: classnames(element$B('header', {
11951
- 'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
11952
- }), headerChildProps?.className),
11953
- children: [header, headerChildContent]
11954
- }), /*#__PURE__*/jsxs("div", {
11955
- ref: contentRef,
11956
- className: element$B('content'),
11957
- children: [/*#__PURE__*/jsx("div", {
11958
- className: element$B('sentinel', {
11959
- top: true
11960
- }),
11961
- ref: setSentinelTop
11962
- }), content, /*#__PURE__*/jsx("div", {
11963
- className: element$B('sentinel', {
11964
- bottom: true
11965
- }),
11966
- ref: setSentinelBottom
11967
- })]
11968
- }), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
11969
- ...footerChildProps,
11970
- className: classnames(element$B('footer', {
11971
- 'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
11972
- }), footerChildProps?.className),
11973
- children: [footer, footerChildContent]
11974
- }), isLoading && /*#__PURE__*/jsx("div", {
11975
- className: element$B('progress-overlay'),
11976
- children: /*#__PURE__*/jsx(ProgressCircular, {})
11977
- })]
11978
- })
11979
- })
11925
+ children: /*#__PURE__*/jsx(IdsRegistryProvider, {
11926
+ children: children
11980
11927
  })
11981
11928
  })
11982
11929
  })]
@@ -11985,9 +11932,257 @@ const Dialog$1 = props => {
11985
11932
  };
11986
11933
 
11987
11934
  /**
11988
- * Defines the props of the component.
11935
+ * Picks the accessible-name prop (`aria-label` or `aria-labelledby`).
11936
+ */
11937
+ function resolveAccessibleNameProps(ariaLabel, ariaLabelledBy) {
11938
+ if (ariaLabel) {
11939
+ return {
11940
+ 'aria-label': ariaLabel
11941
+ };
11942
+ }
11943
+ if (ariaLabelledBy) {
11944
+ return {
11945
+ 'aria-labelledby': ariaLabelledBy
11946
+ };
11947
+ }
11948
+ return undefined;
11949
+ }
11950
+
11951
+ /**
11952
+ * Props of the dialog content: the `role="dialog"` element (which carries `aria-labelledby`) and
11953
+ * everything inside it (header, body, footer). It is meant to be rendered by a framework component
11954
+ * that has resolved `labelId` from the ids registry.
11955
+ */
11956
+
11957
+ /**
11958
+ * Dialog content: the `role="dialog"` element + header/body/footer.
11959
+ *
11960
+ * @param props Component props.
11961
+ * @return React element.
11962
+ */
11963
+ const DialogContent$1 = props => {
11964
+ const {
11965
+ labelId,
11966
+ dialogProps,
11967
+ handleClose,
11968
+ shouldPreventCloseOnClickAway,
11969
+ clickAwayRefs,
11970
+ rootRef,
11971
+ wrapperRef,
11972
+ contentRef,
11973
+ header,
11974
+ headerChildProps,
11975
+ headerChildContent,
11976
+ forceHeaderDivider,
11977
+ hasTopIntersection,
11978
+ content,
11979
+ setSentinelTop,
11980
+ setSentinelBottom,
11981
+ footer,
11982
+ footerChildProps,
11983
+ footerChildContent,
11984
+ forceFooterDivider,
11985
+ hasBottomIntersection,
11986
+ isLoading,
11987
+ ProgressCircular,
11988
+ ClickAwayProvider
11989
+ } = props;
11990
+
11991
+ // Strip both out of `dialogProps` before spreading it: `resolveAccessibleNameProps` picks at most one, and
11992
+ // leaving the other in place would let it survive underneath the spread below.
11993
+ const {
11994
+ 'aria-label': dialogAriaLabel,
11995
+ 'aria-labelledby': dialogAriaLabelledBy,
11996
+ ...restDialogProps
11997
+ } = dialogProps ?? {};
11998
+ return /*#__PURE__*/jsx("div", {
11999
+ className: element$B('container'),
12000
+ role: "dialog",
12001
+ "aria-modal": "true",
12002
+ ...restDialogProps,
12003
+ ...resolveAccessibleNameProps(dialogAriaLabel, dialogAriaLabelledBy || labelId),
12004
+ children: /*#__PURE__*/jsx(ClickAwayProvider, {
12005
+ callback: !shouldPreventCloseOnClickAway && handleClose,
12006
+ childrenRefs: clickAwayRefs,
12007
+ parentRef: rootRef,
12008
+ children: /*#__PURE__*/jsxs("section", {
12009
+ className: element$B('wrapper'),
12010
+ ref: wrapperRef,
12011
+ children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
12012
+ ...headerChildProps,
12013
+ className: classnames(element$B('header', {
12014
+ 'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
12015
+ }), headerChildProps?.className),
12016
+ children: [header, headerChildContent]
12017
+ }), /*#__PURE__*/jsxs("div", {
12018
+ ref: contentRef,
12019
+ className: element$B('content'),
12020
+ children: [/*#__PURE__*/jsx("div", {
12021
+ className: element$B('sentinel', {
12022
+ top: true
12023
+ }),
12024
+ ref: setSentinelTop
12025
+ }), content, /*#__PURE__*/jsx("div", {
12026
+ className: element$B('sentinel', {
12027
+ bottom: true
12028
+ }),
12029
+ ref: setSentinelBottom
12030
+ })]
12031
+ }), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
12032
+ ...footerChildProps,
12033
+ className: classnames(element$B('footer', {
12034
+ 'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
12035
+ }), footerChildProps?.className),
12036
+ children: [footer, footerChildContent]
12037
+ }), isLoading && /*#__PURE__*/jsx("div", {
12038
+ className: element$B('progress-overlay'),
12039
+ children: /*#__PURE__*/jsx(ProgressCircular, {})
12040
+ })]
12041
+ })
12042
+ })
12043
+ });
12044
+ };
12045
+
12046
+ /**
12047
+ * Internal "ids registry" contract shared between framework wrappers (`@lumx/react`, `@lumx/vue`).
11989
12048
  */
11990
12049
 
12050
+ /**
12051
+ * Create a standalone ids registry.
12052
+ *
12053
+ * Can be used to store ids for 'aria-labelledby' or 'aria-describedby'. Registrations under the same key are
12054
+ * kept as a stack (most recently registered wins); a registrant clearing itself only affects the top of the
12055
+ * stack if it put itself there, so an older still-registered registrant is restored instead of the key going
12056
+ * empty.
12057
+ */
12058
+ function createIdsRegistry() {
12059
+ const stacks = new Map();
12060
+ const listeners = new Map();
12061
+ const topId = key => {
12062
+ const stack = stacks.get(key);
12063
+ return stack?.[stack.length - 1]?.id;
12064
+ };
12065
+ return {
12066
+ getId: topId,
12067
+ setId(key, token, id) {
12068
+ const previousTopId = topId(key);
12069
+ const stack = stacks.get(key) ?? [];
12070
+ const index = stack.findIndex(entry => entry.token === token);
12071
+ if (index !== -1) stack.splice(index, 1);
12072
+ if (id !== undefined) stack.push({
12073
+ token,
12074
+ id
12075
+ });
12076
+ if (stack.length) {
12077
+ stacks.set(key, stack);
12078
+ } else {
12079
+ stacks.delete(key);
12080
+ }
12081
+ if (topId(key) === previousTopId) return;
12082
+ const set = listeners.get(key);
12083
+ if (set) {
12084
+ // Copy: a listener may unsubscribe (e.g. on unmount) during this loop.
12085
+ const frozenListeners = [...set];
12086
+ for (const listener of frozenListeners) {
12087
+ listener(key);
12088
+ }
12089
+ }
12090
+ },
12091
+ subscribe(key, listener) {
12092
+ let set = listeners.get(key);
12093
+ if (!set) {
12094
+ set = new Set();
12095
+ listeners.set(key, set);
12096
+ }
12097
+ set.add(listener);
12098
+ return () => {
12099
+ set.delete(listener);
12100
+ if (set.size === 0) listeners.delete(key);
12101
+ };
12102
+ }
12103
+ };
12104
+ }
12105
+
12106
+ /**
12107
+ * Internal "ids registry" context.
12108
+ *
12109
+ * Not exported from the package barrel - lets a container expose ids registered by its descendants
12110
+ * under well-known names, without either side knowing about the other upfront (e.g. to wire up
12111
+ * `aria-labelledby`/`aria-describedby` between components that don't know about each other).
12112
+ *
12113
+ * `undefined` outside of any provider - `useRegisterId`/`useRegisteredId` are no-ops in that case.
12114
+ *
12115
+ * See `IdsRegistry` in `@lumx/core` for the shared contract.
12116
+ */
12117
+ const IdsRegistryContext = /*#__PURE__*/createContext(undefined);
12118
+
12119
+ /**
12120
+ * Provides a fresh ids registry to its subtree. The registry instance is stable for the lifetime of
12121
+ * the provider, so registering/reading an id never re-renders the whole subtree - only the
12122
+ * components subscribed (via `useRegisteredId`) to the name that changed.
12123
+ */
12124
+ const IdsRegistryProvider = ({
12125
+ children
12126
+ }) => {
12127
+ const [registry] = useState(createIdsRegistry);
12128
+ return /*#__PURE__*/jsx(IdsRegistryContext.Provider, {
12129
+ value: registry,
12130
+ children: children
12131
+ });
12132
+ };
12133
+
12134
+ /**
12135
+ * Register `id` under `key` in the enclosing ids registry on mount, and clear it on unmount.
12136
+ * Last registered wins; if another registrant is still mounted under the same key, clearing this
12137
+ * one falls back to it instead of leaving the key empty.
12138
+ *
12139
+ * @param key Registry key to store the id under.
12140
+ * @param id Id of the element to register.
12141
+ */
12142
+ function useRegisterId(key, id) {
12143
+ const registry = useContext(IdsRegistryContext);
12144
+ const token = useRef({}).current;
12145
+ useEffect(() => {
12146
+ registry?.setId(key, token, id);
12147
+ return () => registry?.setId(key, token, undefined);
12148
+ }, [registry, key, id, token]);
12149
+ }
12150
+
12151
+ /**
12152
+ * Subscribe to the id currently registered under `key` in the enclosing ids registry. Re-renders
12153
+ * the calling component only when that key's id changes.
12154
+ *
12155
+ * @param key Registry key to read.
12156
+ * @return The registered id, or `undefined` when none is registered / outside any provider.
12157
+ */
12158
+ function useRegisteredId(key) {
12159
+ const registry = useContext(IdsRegistryContext);
12160
+ const [id, setId] = useState(() => registry?.getId(key));
12161
+ useEffect(() => {
12162
+ if (!registry) return undefined;
12163
+ // Sync once in case the id was registered between render and this effect running.
12164
+ setId(registry.getId(key));
12165
+ return registry.subscribe(key, () => setId(registry.getId(key)));
12166
+ }, [registry, key]);
12167
+ return id;
12168
+ }
12169
+
12170
+ /**
12171
+ * Renders the core `DialogContent`, resolving its `aria-labelledby` from the ids registry.
12172
+ *
12173
+ * Must render as a descendant of the `IdsRegistryProvider` set up by the core `DialogShell` (which is
12174
+ * why it is its own component: the subscription hook needs to run below the provider). Internal to the
12175
+ * dialog family - not exported from the package barrel.
12176
+ */
12177
+ const DialogContent = props => {
12178
+ const labelId = useRegisteredId(DIALOG_LABEL_KEY);
12179
+ return DialogContent$1({
12180
+ ...props,
12181
+ labelId
12182
+ });
12183
+ };
12184
+ DialogContent.displayName = 'DialogContent';
12185
+
11991
12186
  const isHeader$1 = isComponent('header');
11992
12187
  const isFooter$1 = isComponent('footer');
11993
12188
 
@@ -12007,11 +12202,7 @@ const DEFAULT_PROPS$S = {
12007
12202
  * @param ref Component ref.
12008
12203
  * @return React element.
12009
12204
  */
12010
- const Dialog = forwardRef((props, ref) => {
12011
- if (!DOCUMENT) {
12012
- // Can't render in SSR.
12013
- return null;
12014
- }
12205
+ const DialogBody = forwardRef((props, ref) => {
12015
12206
  const {
12016
12207
  children,
12017
12208
  className,
@@ -12036,10 +12227,7 @@ const Dialog = forwardRef((props, ref) => {
12036
12227
  preventCloseOnEscape,
12037
12228
  ...forwardedProps
12038
12229
  } = props;
12039
-
12040
- // eslint-disable-next-line react-hooks/rules-of-hooks
12041
12230
  const previousOpen = React__default.useRef(isOpen);
12042
- // eslint-disable-next-line react-hooks/rules-of-hooks
12043
12231
  React__default.useEffect(() => {
12044
12232
  if (isOpen !== previousOpen.current) {
12045
12233
  previousOpen.current = isOpen;
@@ -12051,30 +12239,18 @@ const Dialog = forwardRef((props, ref) => {
12051
12239
  }
12052
12240
  }, [isOpen, parentElement]);
12053
12241
  const shouldPreventCloseOnEscape = preventAutoClose || preventCloseOnEscape;
12054
-
12055
- // eslint-disable-next-line react-hooks/rules-of-hooks
12056
12242
  useCallbackOnEscape(onClose, isOpen && !shouldPreventCloseOnEscape);
12057
-
12058
- // eslint-disable-next-line react-hooks/rules-of-hooks
12059
12243
  const wrapperRef = useRef(null);
12060
12244
  /**
12061
12245
  * Since the `contentRef` comes from the parent and is optional,
12062
12246
  * we need to create a stable contentRef that will always be available.
12063
12247
  */
12064
- // eslint-disable-next-line react-hooks/rules-of-hooks
12065
12248
  const localContentRef = useRef(null);
12066
12249
  // Handle focus trap.
12067
- // eslint-disable-next-line react-hooks/rules-of-hooks
12068
12250
  useFocusTrap(isOpen && wrapperRef.current, focusElement?.current);
12069
-
12070
- // eslint-disable-next-line react-hooks/rules-of-hooks
12071
12251
  useDisableBodyScroll(disableBodyScroll && isOpen && localContentRef.current);
12072
-
12073
- // eslint-disable-next-line react-hooks/rules-of-hooks
12074
12252
  const [sentinelTop, setSentinelTop] = useState(null);
12075
- // eslint-disable-next-line react-hooks/rules-of-hooks
12076
12253
  const [sentinelBottom, setSentinelBottom] = useState(null);
12077
- // eslint-disable-next-line react-hooks/rules-of-hooks
12078
12254
  const intersections = useIntersectionObserver([sentinelTop, sentinelBottom], {
12079
12255
  threshold: [0, 1]
12080
12256
  });
@@ -12082,63 +12258,240 @@ const Dialog = forwardRef((props, ref) => {
12082
12258
  const hasBottomIntersection = sentinelBottom && !(intersections.get(sentinelBottom)?.isIntersecting ?? true);
12083
12259
 
12084
12260
  // Separate header, footer and dialog content from children.
12085
- // eslint-disable-next-line react-hooks/rules-of-hooks
12086
12261
  const [[headerChild], [footerChild], content] = useMemo(() => partitionMulti(Children.toArray(children), [isHeader$1, isFooter$1]), [children]);
12087
12262
  const headerChildProps = headerChild?.props;
12088
12263
  const headerChildContent = headerChildProps?.children;
12089
12264
  const footerChildProps = footerChild?.props;
12090
12265
  const footerChildContent = footerChildProps?.children;
12091
-
12092
- // eslint-disable-next-line react-hooks/rules-of-hooks
12093
12266
  const clickAwayRefs = useRef([wrapperRef]);
12094
-
12095
- // eslint-disable-next-line react-hooks/rules-of-hooks
12096
12267
  const rootRef = useRef(null);
12097
-
12098
- // eslint-disable-next-line react-hooks/rules-of-hooks
12099
12268
  const isVisible = useTransitionVisibility(rootRef, Boolean(isOpen), DIALOG_TRANSITION_DURATION, onVisibilityChange);
12100
12269
  const shouldPreventCloseOnClickAway = preventAutoClose || preventCloseOnClick;
12101
12270
  const isMounted = isOpen || isVisible || closeMode === 'hide';
12102
- return isMounted ? Dialog$1({
12103
- ClickAwayProvider,
12104
- HeadingLevelProvider,
12271
+ if (!isMounted) return null;
12272
+ return DialogShell({
12105
12273
  Portal,
12274
+ HeadingLevelProvider,
12106
12275
  ThemeProvider,
12276
+ IdsRegistryProvider,
12107
12277
  className,
12108
- clickAwayRefs,
12109
- content,
12110
- contentRef: mergeRefs(localContentRef, contentRef),
12111
- dialogProps,
12112
- footer,
12113
- footerChildContent,
12114
- footerChildProps,
12115
- forceFooterDivider,
12116
- forceHeaderDivider,
12117
- handleClose: onClose,
12118
- hasBottomIntersection,
12119
- hasTopIntersection,
12120
- header,
12121
- headerChildContent,
12122
- ProgressCircular,
12123
- headerChildProps,
12124
12278
  isLoading,
12125
12279
  isOpen,
12126
12280
  isVisible,
12127
- ref: mergeRefs(rootRef, ref),
12128
- rootRef,
12129
- setSentinelBottom,
12130
- setSentinelTop,
12131
- shouldPreventCloseOnClickAway,
12132
12281
  size,
12133
- wrapperRef,
12134
12282
  zIndex,
12135
- ...forwardedProps
12136
- }) : null;
12283
+ ref: mergeRefs(rootRef, ref),
12284
+ ...forwardedProps,
12285
+ children: /*#__PURE__*/jsx(DialogContent, {
12286
+ ClickAwayProvider: ClickAwayProvider,
12287
+ ProgressCircular: ProgressCircular,
12288
+ clickAwayRefs: clickAwayRefs,
12289
+ content: content,
12290
+ contentRef: mergeRefs(localContentRef, contentRef),
12291
+ dialogProps: dialogProps,
12292
+ footer: footer,
12293
+ footerChildContent: footerChildContent,
12294
+ footerChildProps: footerChildProps,
12295
+ forceFooterDivider: forceFooterDivider,
12296
+ forceHeaderDivider: forceHeaderDivider,
12297
+ handleClose: onClose,
12298
+ hasBottomIntersection: hasBottomIntersection,
12299
+ hasTopIntersection: hasTopIntersection,
12300
+ header: header,
12301
+ headerChildContent: headerChildContent,
12302
+ headerChildProps: headerChildProps,
12303
+ isLoading: isLoading,
12304
+ rootRef: rootRef,
12305
+ setSentinelBottom: setSentinelBottom,
12306
+ setSentinelTop: setSentinelTop,
12307
+ shouldPreventCloseOnClickAway: shouldPreventCloseOnClickAway,
12308
+ wrapperRef: wrapperRef
12309
+ })
12310
+ });
12137
12311
  });
12138
- Dialog.displayName = COMPONENT_NAME$_;
12312
+ DialogBody.displayName = 'DialogBody';
12313
+ const Dialog = forwardRef((props, ref) => {
12314
+ if (!DOCUMENT) {
12315
+ // Can't render in SSR.
12316
+ return null;
12317
+ }
12318
+ return /*#__PURE__*/jsx(DialogBody, {
12319
+ ...props,
12320
+ ref: ref
12321
+ });
12322
+ });
12323
+ Dialog.displayName = COMPONENT_NAME$$;
12139
12324
  Dialog.className = CLASSNAME$_;
12140
12325
  Dialog.defaultProps = DEFAULT_PROPS$S;
12141
12326
 
12327
+ /** The maximum authorized heading level. */
12328
+ const MAX_HEADING_LEVEL = 6;
12329
+
12330
+ /**
12331
+ * Typography to use by default depending on the heading level.
12332
+ */
12333
+ const DEFAULT_TYPOGRAPHY_BY_LEVEL = {
12334
+ h1: Typography.display1,
12335
+ h2: Typography.headline,
12336
+ h3: Typography.title,
12337
+ h4: Typography.subtitle2,
12338
+ h5: Typography.subtitle1,
12339
+ h6: Typography.body2
12340
+ };
12341
+ const defaultContext = {
12342
+ level: 1,
12343
+ headingElement: 'h1'
12344
+ };
12345
+
12346
+ /**
12347
+ * Defines the props of the component.
12348
+ */
12349
+
12350
+ /**
12351
+ * Component display name.
12352
+ */
12353
+ const COMPONENT_NAME$_ = 'Heading';
12354
+
12355
+ /**
12356
+ * Component default class name and class prefix.
12357
+ */
12358
+ const CLASSNAME$Z = 'lumx-heading';
12359
+
12360
+ /**
12361
+ * Component default props.
12362
+ */
12363
+ const DEFAULT_PROPS$R = {};
12364
+
12365
+ /**
12366
+ * Get Heading component common props
12367
+ *
12368
+ * @param props Component props.
12369
+ * @param contextHeadingElement Heading element from context.
12370
+ * @return Common Props
12371
+ */
12372
+ const getHeadingProps = (props, contextHeadingElement) => {
12373
+ const {
12374
+ as,
12375
+ className,
12376
+ typography,
12377
+ ...otherProps
12378
+ } = props;
12379
+ const computedHeadingElement = as || contextHeadingElement || 'h1';
12380
+ return {
12381
+ ...otherProps,
12382
+ as: computedHeadingElement,
12383
+ className: classnames(className, CLASSNAME$Z),
12384
+ typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
12385
+ };
12386
+ };
12387
+
12388
+ const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
12389
+
12390
+ const useHeadingLevel = () => {
12391
+ const {
12392
+ level = 1,
12393
+ headingElement = 'h1'
12394
+ } = React__default.useContext(HeadingLevelContext);
12395
+ return {
12396
+ level,
12397
+ headingElement
12398
+ };
12399
+ };
12400
+
12401
+ /**
12402
+ * Renders a heading component.
12403
+ * Extends the `Text` Component with the heading level automatically computed based on
12404
+ * the current level provided by the context.
12405
+ */
12406
+ const Heading = forwardRef((props, ref) => {
12407
+ const {
12408
+ children,
12409
+ ...otherProps
12410
+ } = props;
12411
+ const {
12412
+ headingElement
12413
+ } = useHeadingLevel();
12414
+ const headingProps = getHeadingProps(otherProps, headingElement);
12415
+ return /*#__PURE__*/jsx(Text, {
12416
+ ref: ref,
12417
+ ...headingProps,
12418
+ children: children
12419
+ });
12420
+ });
12421
+ Heading.displayName = COMPONENT_NAME$_;
12422
+ Heading.className = CLASSNAME$Z;
12423
+ Heading.defaultProps = DEFAULT_PROPS$R;
12424
+
12425
+ /**
12426
+ * Computes the next heading level based on the optional prop level or the parent context level.
12427
+ *
12428
+ * @param levelProp - The explicit level provided via props (optional).
12429
+ * @param parentLevel - The level from the parent context.
12430
+ * @returns The calculated heading level, clamped to the maximum allowed level.
12431
+ */
12432
+ const computeHeadingLevel = (levelProp, parentLevel) => {
12433
+ const nextLevel = levelProp || parentLevel + 1;
12434
+ return nextLevel > MAX_HEADING_LEVEL ? MAX_HEADING_LEVEL : nextLevel;
12435
+ };
12436
+
12437
+ /**
12438
+ * Provide a new heading level context.
12439
+ */
12440
+ const HeadingLevelProvider = ({
12441
+ children,
12442
+ level
12443
+ }) => {
12444
+ const {
12445
+ level: contextLevel
12446
+ } = useHeadingLevel();
12447
+ const nextLevel = computeHeadingLevel(level, contextLevel);
12448
+ const headingElement = `h${nextLevel}`;
12449
+ return /*#__PURE__*/jsx(HeadingLevelContext.Provider, {
12450
+ value: {
12451
+ level: nextLevel,
12452
+ headingElement
12453
+ },
12454
+ children: children
12455
+ });
12456
+ };
12457
+
12458
+ /**
12459
+ * Names the enclosing dialog-like container (`Dialog`, `Lightbox`, `PopoverDialog`, ...).
12460
+ *
12461
+ * Thin wrapper over `Heading` that generates its own id (or uses the consumer-supplied `id`),
12462
+ * and registers it with the nearest ids registry on mount so the container can link itself to
12463
+ * this heading via `aria-labelledby`. Deregisters on unmount.
12464
+ *
12465
+ * Defaults its typography to `Typography.title` (overridable via the `typography` prop).
12466
+ *
12467
+ * If two `DialogHeading`s are rendered within the same container, the last one registered wins.
12468
+ *
12469
+ * @example
12470
+ * <Dialog isOpen={isOpen}>
12471
+ * <header>
12472
+ * <Toolbar label={<DialogHeading>My dialog</DialogHeading>} />
12473
+ * </header>
12474
+ * ...
12475
+ * </Dialog>
12476
+ */
12477
+ const DialogHeading = forwardRef((props, ref) => {
12478
+ const {
12479
+ id,
12480
+ typography = Typography$1.title,
12481
+ ...forwardedProps
12482
+ } = props;
12483
+ const generatedId = useId();
12484
+ const headingId = id || generatedId;
12485
+ useRegisterId(DIALOG_LABEL_KEY, headingId);
12486
+ return /*#__PURE__*/jsx(Heading, {
12487
+ ref: ref,
12488
+ id: headingId,
12489
+ typography: typography,
12490
+ ...forwardedProps
12491
+ });
12492
+ });
12493
+ DialogHeading.displayName = DIALOG_HEADING_COMPONENT_NAME;
12494
+
12142
12495
  /**
12143
12496
  * Component display name.
12144
12497
  */
@@ -12147,10 +12500,10 @@ const COMPONENT_NAME$Z = 'Divider';
12147
12500
  /**
12148
12501
  * Component default class name and class prefix.
12149
12502
  */
12150
- const CLASSNAME$Z = 'lumx-divider';
12503
+ const CLASSNAME$Y = 'lumx-divider';
12151
12504
  const {
12152
12505
  block: block$L
12153
- } = bem(CLASSNAME$Z);
12506
+ } = bem(CLASSNAME$Y);
12154
12507
 
12155
12508
  /**
12156
12509
  * Divider component.
@@ -12181,7 +12534,7 @@ const Divider$1 = props => {
12181
12534
  /**
12182
12535
  * Component default props.
12183
12536
  */
12184
- const DEFAULT_PROPS$R = {};
12537
+ const DEFAULT_PROPS$Q = {};
12185
12538
 
12186
12539
  /**
12187
12540
  * Divider component.
@@ -12203,8 +12556,8 @@ const Divider = forwardRef((props, ref) => {
12203
12556
  });
12204
12557
  });
12205
12558
  Divider.displayName = COMPONENT_NAME$Z;
12206
- Divider.className = CLASSNAME$Z;
12207
- Divider.defaultProps = DEFAULT_PROPS$R;
12559
+ Divider.className = CLASSNAME$Y;
12560
+ Divider.defaultProps = DEFAULT_PROPS$Q;
12208
12561
 
12209
12562
  /**
12210
12563
  * Component display name.
@@ -12214,10 +12567,10 @@ const COMPONENT_NAME$Y = 'DragHandle';
12214
12567
  /**
12215
12568
  * Component default class name and class prefix.
12216
12569
  */
12217
- const CLASSNAME$Y = 'lumx-drag-handle';
12570
+ const CLASSNAME$X = 'lumx-drag-handle';
12218
12571
  const {
12219
12572
  block: block$K
12220
- } = bem(CLASSNAME$Y);
12573
+ } = bem(CLASSNAME$X);
12221
12574
 
12222
12575
  /**
12223
12576
  * DragHandle component.
@@ -12253,7 +12606,7 @@ const DragHandle$1 = props => {
12253
12606
  /**
12254
12607
  * Component default props.
12255
12608
  */
12256
- const DEFAULT_PROPS$Q = {};
12609
+ const DEFAULT_PROPS$P = {};
12257
12610
 
12258
12611
  /**
12259
12612
  * DragHandle component.
@@ -12275,8 +12628,8 @@ const DragHandle = forwardRef((props, ref) => {
12275
12628
  });
12276
12629
  });
12277
12630
  DragHandle.displayName = COMPONENT_NAME$Y;
12278
- DragHandle.className = CLASSNAME$Y;
12279
- DragHandle.defaultProps = DEFAULT_PROPS$Q;
12631
+ DragHandle.className = CLASSNAME$X;
12632
+ DragHandle.defaultProps = DEFAULT_PROPS$P;
12280
12633
 
12281
12634
  const INITIAL_INDEX = -1;
12282
12635
 
@@ -12470,7 +12823,7 @@ const InternalList = forwardRef((props, ref) => {
12470
12823
  itemPadding: adjustedItemPadding
12471
12824
  });
12472
12825
  });
12473
- InternalList.displayName = COMPONENT_NAME$1j;
12826
+ InternalList.displayName = COMPONENT_NAME$1k;
12474
12827
  InternalList.className = CLASSNAME$1h;
12475
12828
  InternalList.defaultProps = DEFAULT_PROPS$$;
12476
12829
  const List = Object.assign(InternalList, {
@@ -12526,16 +12879,16 @@ const COMPONENT_NAME$X = 'Dropdown';
12526
12879
  /**
12527
12880
  * Component default class name and class prefix.
12528
12881
  */
12529
- const CLASSNAME$X = 'lumx-dropdown';
12882
+ const CLASSNAME$W = 'lumx-dropdown';
12530
12883
  const {
12531
12884
  block: block$J,
12532
12885
  element: element$A
12533
- } = classNames.bem(CLASSNAME$X);
12886
+ } = classNames.bem(CLASSNAME$W);
12534
12887
 
12535
12888
  /**
12536
12889
  * Component default props.
12537
12890
  */
12538
- const DEFAULT_PROPS$P = {
12891
+ const DEFAULT_PROPS$O = {
12539
12892
  closeOnClick: true,
12540
12893
  closeOnClickAway: true,
12541
12894
  closeOnEscape: true,
@@ -12559,18 +12912,18 @@ const Dropdown = forwardRef((props, ref) => {
12559
12912
  anchorRef,
12560
12913
  children,
12561
12914
  className,
12562
- closeOnClick = DEFAULT_PROPS$P.closeOnClick,
12563
- closeOnClickAway = DEFAULT_PROPS$P.closeOnClickAway,
12564
- closeOnEscape = DEFAULT_PROPS$P.closeOnEscape,
12565
- fitToAnchorWidth = DEFAULT_PROPS$P.fitToAnchorWidth,
12566
- fitWithinViewportHeight = DEFAULT_PROPS$P.fitWithinViewportHeight,
12915
+ closeOnClick = DEFAULT_PROPS$O.closeOnClick,
12916
+ closeOnClickAway = DEFAULT_PROPS$O.closeOnClickAway,
12917
+ closeOnEscape = DEFAULT_PROPS$O.closeOnEscape,
12918
+ fitToAnchorWidth = DEFAULT_PROPS$O.fitToAnchorWidth,
12919
+ fitWithinViewportHeight = DEFAULT_PROPS$O.fitWithinViewportHeight,
12567
12920
  isOpen,
12568
12921
  offset,
12569
- focusAnchorOnClose = DEFAULT_PROPS$P.focusAnchorOnClose,
12922
+ focusAnchorOnClose = DEFAULT_PROPS$O.focusAnchorOnClose,
12570
12923
  onClose,
12571
12924
  onInfiniteScroll,
12572
- placement = DEFAULT_PROPS$P.placement,
12573
- shouldFocusOnOpen = DEFAULT_PROPS$P.shouldFocusOnOpen,
12925
+ placement = DEFAULT_PROPS$O.placement,
12926
+ shouldFocusOnOpen = DEFAULT_PROPS$O.shouldFocusOnOpen,
12574
12927
  zIndex,
12575
12928
  ...forwardedProps
12576
12929
  } = props;
@@ -12615,8 +12968,8 @@ const Dropdown = forwardRef((props, ref) => {
12615
12968
  }) : null;
12616
12969
  });
12617
12970
  Dropdown.displayName = COMPONENT_NAME$X;
12618
- Dropdown.className = CLASSNAME$X;
12619
- Dropdown.defaultProps = DEFAULT_PROPS$P;
12971
+ Dropdown.className = CLASSNAME$W;
12972
+ Dropdown.defaultProps = DEFAULT_PROPS$O;
12620
12973
 
12621
12974
  /**
12622
12975
  * Component display name.
@@ -12626,16 +12979,16 @@ const COMPONENT_NAME$W = 'ExpansionPanel';
12626
12979
  /**
12627
12980
  * Component default class name and class prefix.
12628
12981
  */
12629
- const CLASSNAME$W = 'lumx-expansion-panel';
12982
+ const CLASSNAME$V = 'lumx-expansion-panel';
12630
12983
  const {
12631
12984
  block: block$I,
12632
12985
  element: element$z
12633
- } = bem(CLASSNAME$W);
12986
+ } = bem(CLASSNAME$V);
12634
12987
 
12635
12988
  /**
12636
12989
  * Component default props.
12637
12990
  */
12638
- const DEFAULT_PROPS$O = {
12991
+ const DEFAULT_PROPS$N = {
12639
12992
  closeMode: 'unmount'
12640
12993
  };
12641
12994
 
@@ -12748,7 +13101,7 @@ const isFooter = isComponent('footer');
12748
13101
  const ExpansionPanel = forwardRef((props, ref) => {
12749
13102
  const defaultTheme = useTheme() || Theme$1.light;
12750
13103
  const {
12751
- closeMode = DEFAULT_PROPS$O.closeMode,
13104
+ closeMode = DEFAULT_PROPS$N.closeMode,
12752
13105
  children: anyChildren,
12753
13106
  isOpen,
12754
13107
  label,
@@ -12820,16 +13173,16 @@ const ExpansionPanel = forwardRef((props, ref) => {
12820
13173
  });
12821
13174
  });
12822
13175
  ExpansionPanel.displayName = COMPONENT_NAME$W;
12823
- ExpansionPanel.className = CLASSNAME$W;
12824
- ExpansionPanel.defaultProps = DEFAULT_PROPS$O;
13176
+ ExpansionPanel.className = CLASSNAME$V;
13177
+ ExpansionPanel.defaultProps = DEFAULT_PROPS$N;
12825
13178
 
12826
13179
  const COMPONENT_NAME$V = 'Flag';
12827
- const CLASSNAME$V = 'lumx-flag';
12828
- const DEFAULT_PROPS$N = {};
13180
+ const CLASSNAME$U = 'lumx-flag';
13181
+ const DEFAULT_PROPS$M = {};
12829
13182
  const {
12830
13183
  block: block$H,
12831
13184
  element: element$y
12832
- } = bem(CLASSNAME$V);
13185
+ } = bem(CLASSNAME$U);
12833
13186
 
12834
13187
  /**
12835
13188
  * Flag component.
@@ -12888,144 +13241,13 @@ const Flag = forwardRef((props, ref) => {
12888
13241
  });
12889
13242
  });
12890
13243
  Flag.displayName = COMPONENT_NAME$V;
12891
- Flag.className = CLASSNAME$V;
12892
- Flag.defaultProps = DEFAULT_PROPS$N;
12893
-
12894
- /** The maximum authorized heading level. */
12895
- const MAX_HEADING_LEVEL = 6;
12896
-
12897
- /**
12898
- * Typography to use by default depending on the heading level.
12899
- */
12900
- const DEFAULT_TYPOGRAPHY_BY_LEVEL = {
12901
- h1: Typography.display1,
12902
- h2: Typography.headline,
12903
- h3: Typography.title,
12904
- h4: Typography.subtitle2,
12905
- h5: Typography.subtitle1,
12906
- h6: Typography.body2
12907
- };
12908
- const defaultContext = {
12909
- level: 1,
12910
- headingElement: 'h1'
12911
- };
12912
-
12913
- /**
12914
- * Defines the props of the component.
12915
- */
12916
-
12917
- /**
12918
- * Component display name.
12919
- */
12920
- const COMPONENT_NAME$U = 'Heading';
12921
-
12922
- /**
12923
- * Component default class name and class prefix.
12924
- */
12925
- const CLASSNAME$U = 'lumx-heading';
12926
-
12927
- /**
12928
- * Component default props.
12929
- */
12930
- const DEFAULT_PROPS$M = {};
12931
-
12932
- /**
12933
- * Get Heading component common props
12934
- *
12935
- * @param props Component props.
12936
- * @param contextHeadingElement Heading element from context.
12937
- * @return Common Props
12938
- */
12939
- const getHeadingProps = (props, contextHeadingElement) => {
12940
- const {
12941
- as,
12942
- className,
12943
- typography,
12944
- ...otherProps
12945
- } = props;
12946
- const computedHeadingElement = as || contextHeadingElement || 'h1';
12947
- return {
12948
- ...otherProps,
12949
- as: computedHeadingElement,
12950
- className: classnames(className, CLASSNAME$U),
12951
- typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
12952
- };
12953
- };
12954
-
12955
- const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
12956
-
12957
- const useHeadingLevel = () => {
12958
- const {
12959
- level = 1,
12960
- headingElement = 'h1'
12961
- } = React__default.useContext(HeadingLevelContext);
12962
- return {
12963
- level,
12964
- headingElement
12965
- };
12966
- };
12967
-
12968
- /**
12969
- * Renders a heading component.
12970
- * Extends the `Text` Component with the heading level automatically computed based on
12971
- * the current level provided by the context.
12972
- */
12973
- const Heading = forwardRef((props, ref) => {
12974
- const {
12975
- children,
12976
- ...otherProps
12977
- } = props;
12978
- const {
12979
- headingElement
12980
- } = useHeadingLevel();
12981
- const headingProps = getHeadingProps(otherProps, headingElement);
12982
- return /*#__PURE__*/jsx(Text, {
12983
- ref: ref,
12984
- ...headingProps,
12985
- children: children
12986
- });
12987
- });
12988
- Heading.displayName = COMPONENT_NAME$U;
12989
- Heading.className = CLASSNAME$U;
12990
- Heading.defaultProps = DEFAULT_PROPS$M;
12991
-
12992
- /**
12993
- * Computes the next heading level based on the optional prop level or the parent context level.
12994
- *
12995
- * @param levelProp - The explicit level provided via props (optional).
12996
- * @param parentLevel - The level from the parent context.
12997
- * @returns The calculated heading level, clamped to the maximum allowed level.
12998
- */
12999
- const computeHeadingLevel = (levelProp, parentLevel) => {
13000
- const nextLevel = levelProp || parentLevel + 1;
13001
- return nextLevel > MAX_HEADING_LEVEL ? MAX_HEADING_LEVEL : nextLevel;
13002
- };
13003
-
13004
- /**
13005
- * Provide a new heading level context.
13006
- */
13007
- const HeadingLevelProvider = ({
13008
- children,
13009
- level
13010
- }) => {
13011
- const {
13012
- level: contextLevel
13013
- } = useHeadingLevel();
13014
- const nextLevel = computeHeadingLevel(level, contextLevel);
13015
- const headingElement = `h${nextLevel}`;
13016
- return /*#__PURE__*/jsx(HeadingLevelContext.Provider, {
13017
- value: {
13018
- level: nextLevel,
13019
- headingElement
13020
- },
13021
- children: children
13022
- });
13023
- };
13244
+ Flag.className = CLASSNAME$U;
13245
+ Flag.defaultProps = DEFAULT_PROPS$M;
13024
13246
 
13025
13247
  /**
13026
13248
  * Component display name.
13027
13249
  */
13028
- const COMPONENT_NAME$T = 'Grid';
13250
+ const COMPONENT_NAME$U = 'Grid';
13029
13251
 
13030
13252
  /**
13031
13253
  * Component default class name and class prefix.
@@ -13074,14 +13296,14 @@ const Grid = forwardRef((props, ref) => {
13074
13296
  children: children
13075
13297
  });
13076
13298
  });
13077
- Grid.displayName = COMPONENT_NAME$T;
13299
+ Grid.displayName = COMPONENT_NAME$U;
13078
13300
  Grid.className = CLASSNAME$T;
13079
13301
  Grid.defaultProps = DEFAULT_PROPS$L;
13080
13302
 
13081
13303
  /**
13082
13304
  * Component display name.
13083
13305
  */
13084
- const COMPONENT_NAME$S = 'GridItem';
13306
+ const COMPONENT_NAME$T = 'GridItem';
13085
13307
 
13086
13308
  /**
13087
13309
  * Component default class name and class prefix.
@@ -13118,13 +13340,13 @@ const GridItem = forwardRef((props, ref) => {
13118
13340
  children: children
13119
13341
  });
13120
13342
  });
13121
- GridItem.displayName = COMPONENT_NAME$S;
13343
+ GridItem.displayName = COMPONENT_NAME$T;
13122
13344
  GridItem.className = CLASSNAME$S;
13123
13345
 
13124
13346
  /**
13125
13347
  * Component display name.
13126
13348
  */
13127
- const COMPONENT_NAME$R = 'GridColumn';
13349
+ const COMPONENT_NAME$S = 'GridColumn';
13128
13350
 
13129
13351
  /**
13130
13352
  * Component default class name and class prefix.
@@ -13169,7 +13391,7 @@ const GridColumn$1 = props => {
13169
13391
  children: children
13170
13392
  });
13171
13393
  };
13172
- GridColumn$1.displayName = COMPONENT_NAME$R;
13394
+ GridColumn$1.displayName = COMPONENT_NAME$S;
13173
13395
  GridColumn$1.className = CLASSNAME$R;
13174
13396
  GridColumn$1.defaultProps = DEFAULT_PROPS$K;
13175
13397
 
@@ -13199,7 +13421,7 @@ const GridColumn = forwardRef((props, ref) => {
13199
13421
  ...props
13200
13422
  });
13201
13423
  });
13202
- GridColumn.displayName = COMPONENT_NAME$R;
13424
+ GridColumn.displayName = COMPONENT_NAME$S;
13203
13425
  GridColumn.className = CLASSNAME$R;
13204
13426
  GridColumn.defaultProps = DEFAULT_PROPS$J;
13205
13427
 
@@ -13222,7 +13444,7 @@ const ImageBlockCaptionPosition = {
13222
13444
  /**
13223
13445
  * Component display name.
13224
13446
  */
13225
- const COMPONENT_NAME$Q = 'ImageBlock';
13447
+ const COMPONENT_NAME$R = 'ImageBlock';
13226
13448
 
13227
13449
  /**
13228
13450
  * Component default class name and class prefix.
@@ -13423,14 +13645,14 @@ const ImageBlock = forwardRef((props, ref) => {
13423
13645
  ImageCaption
13424
13646
  });
13425
13647
  });
13426
- ImageBlock.displayName = COMPONENT_NAME$Q;
13648
+ ImageBlock.displayName = COMPONENT_NAME$R;
13427
13649
  ImageBlock.className = CLASSNAME$Q;
13428
13650
  ImageBlock.defaultProps = DEFAULT_PROPS$I;
13429
13651
 
13430
13652
  /**
13431
13653
  * Component display name.
13432
13654
  */
13433
- const COMPONENT_NAME$P = 'ImageLightbox';
13655
+ const COMPONENT_NAME$Q = 'ImageLightbox';
13434
13656
 
13435
13657
  /**
13436
13658
  * Component default class name and class prefix.
@@ -14148,7 +14370,7 @@ const Inner = forwardRef((props, ref) => {
14148
14370
  })
14149
14371
  });
14150
14372
  });
14151
- Inner.displayName = COMPONENT_NAME$P;
14373
+ Inner.displayName = COMPONENT_NAME$Q;
14152
14374
  Inner.className = CLASSNAME$P;
14153
14375
 
14154
14376
  /**
@@ -14165,7 +14387,7 @@ const ImageLightbox = Object.assign(Inner, {
14165
14387
  /**
14166
14388
  * Component display name.
14167
14389
  */
14168
- const COMPONENT_NAME$O = 'InlineList';
14390
+ const COMPONENT_NAME$P = 'InlineList';
14169
14391
 
14170
14392
  /**
14171
14393
  * Component default class name and class prefix.
@@ -14226,7 +14448,7 @@ const InlineList$1 = props => {
14226
14448
  })
14227
14449
  );
14228
14450
  };
14229
- InlineList$1.displayName = COMPONENT_NAME$O;
14451
+ InlineList$1.displayName = COMPONENT_NAME$P;
14230
14452
  InlineList$1.className = CLASSNAME$O;
14231
14453
  InlineList$1.defaultProps = DEFAULT_PROPS$H;
14232
14454
 
@@ -14252,7 +14474,7 @@ const InlineList = forwardRef((props, ref) => {
14252
14474
  items: Children.toArray(children)
14253
14475
  });
14254
14476
  });
14255
- InlineList.displayName = COMPONENT_NAME$O;
14477
+ InlineList.displayName = COMPONENT_NAME$P;
14256
14478
  InlineList.className = CLASSNAME$O;
14257
14479
  InlineList.defaultProps = DEFAULT_PROPS$H;
14258
14480
 
@@ -14297,7 +14519,7 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
14297
14519
  /**
14298
14520
  * Component display name.
14299
14521
  */
14300
- const COMPONENT_NAME$N = 'Lightbox';
14522
+ const COMPONENT_NAME$O = 'Lightbox';
14301
14523
 
14302
14524
  /**
14303
14525
  * Component default class name and class prefix.
@@ -14328,6 +14550,7 @@ const Lightbox$1 = props => {
14328
14550
  handleClose,
14329
14551
  parentElement,
14330
14552
  focusElement,
14553
+ labelId,
14331
14554
  preventAutoClose,
14332
14555
  theme,
14333
14556
  zIndex,
@@ -14348,8 +14571,7 @@ const Lightbox$1 = props => {
14348
14571
  children: /*#__PURE__*/jsxs("div", {
14349
14572
  ref: ref,
14350
14573
  ...forwardedProps,
14351
- "aria-label": ariaLabel,
14352
- "aria-labelledby": ariaLabelledBy,
14574
+ ...resolveAccessibleNameProps(ariaLabel, ariaLabelledBy || labelId),
14353
14575
  "aria-modal": "true",
14354
14576
  role: "dialog",
14355
14577
  tabIndex: -1,
@@ -14398,13 +14620,13 @@ const Lightbox$1 = props => {
14398
14620
  */
14399
14621
 
14400
14622
  /**
14401
- * Lightbox component.
14623
+ * Renders the core Lightbox UI, resolving its `aria-labelledby` from the ids registry.
14402
14624
  *
14403
- * @param props Component props.
14404
- * @param ref Component ref.
14405
- * @return React element.
14625
+ * Must render as a descendant of the `IdsRegistryProvider` set up by `Lightbox` (which is why it is
14626
+ * its own component: the subscription hook needs to run below the provider). Internal to the
14627
+ * lightbox family - not exported from the package barrel.
14406
14628
  */
14407
- const Lightbox = forwardRef((props, ref) => {
14629
+ const LightboxContent = forwardRef((props, ref) => {
14408
14630
  const {
14409
14631
  children,
14410
14632
  className,
@@ -14418,36 +14640,19 @@ const Lightbox = forwardRef((props, ref) => {
14418
14640
  zIndex,
14419
14641
  ...forwardedProps
14420
14642
  } = props;
14421
- if (!DOCUMENT) {
14422
- // Can't render in SSR.
14423
- return null;
14424
- }
14425
-
14426
- // eslint-disable-next-line react-hooks/rules-of-hooks
14427
14643
  const childrenRef = useRef(null);
14428
- // eslint-disable-next-line react-hooks/rules-of-hooks
14429
14644
  const wrapperRef = useRef(null);
14430
- // eslint-disable-next-line react-hooks/rules-of-hooks
14431
14645
  const closeButtonRef = useRef(null);
14432
-
14433
- // eslint-disable-next-line react-hooks/rules-of-hooks
14434
14646
  useDisableBodyScroll(isOpen && wrapperRef.current);
14435
-
14436
- // eslint-disable-next-line react-hooks/rules-of-hooks
14437
14647
  const isVisible = useTransitionVisibility(wrapperRef, !!isOpen, DIALOG_TRANSITION_DURATION);
14438
14648
 
14439
14649
  // Handle focus trap.
14440
- // eslint-disable-next-line react-hooks/rules-of-hooks
14441
14650
  useFocusTrap(
14442
14651
  // Focus trap zone
14443
14652
  isOpen && wrapperRef.current,
14444
14653
  // Focus element (fallback on close button and then on the dialog)
14445
14654
  focusElement?.current || closeButtonRef.current || wrapperRef.current);
14446
-
14447
- // eslint-disable-next-line react-hooks/rules-of-hooks
14448
14655
  const previousOpen = useRef(isOpen);
14449
-
14450
- // eslint-disable-next-line react-hooks/rules-of-hooks
14451
14656
  useEffect(() => {
14452
14657
  if (isOpen !== previousOpen.current) {
14453
14658
  previousOpen.current = isOpen;
@@ -14460,11 +14665,9 @@ const Lightbox = forwardRef((props, ref) => {
14460
14665
  }, [isOpen, parentElement]);
14461
14666
 
14462
14667
  // Close lightbox on escape key pressed.
14463
- // eslint-disable-next-line react-hooks/rules-of-hooks
14464
- useCallbackOnEscape(onClose);
14465
-
14466
- // eslint-disable-next-line react-hooks/rules-of-hooks
14668
+ useCallbackOnEscape(onClose, isOpen && !preventAutoClose);
14467
14669
  const clickAwayRefs = useRef([wrapperRef]);
14670
+ const labelId = useRegisteredId(DIALOG_LABEL_KEY);
14468
14671
  if (!isOpen && !isVisible) return null;
14469
14672
  return Lightbox$1({
14470
14673
  ClickAwayProvider,
@@ -14482,6 +14685,7 @@ const Lightbox = forwardRef((props, ref) => {
14482
14685
  focusElement,
14483
14686
  isOpen,
14484
14687
  isVisible,
14688
+ labelId,
14485
14689
  ref: mergeRefs(ref, wrapperRef),
14486
14690
  theme,
14487
14691
  zIndex,
@@ -14490,7 +14694,27 @@ const Lightbox = forwardRef((props, ref) => {
14490
14694
  ...forwardedProps
14491
14695
  });
14492
14696
  });
14493
- Lightbox.displayName = COMPONENT_NAME$N;
14697
+
14698
+ /**
14699
+ * Lightbox component.
14700
+ *
14701
+ * @param props Component props.
14702
+ * @param ref Component ref.
14703
+ * @return React element.
14704
+ */
14705
+ const Lightbox = forwardRef((props, ref) => {
14706
+ if (!DOCUMENT) {
14707
+ // Can't render in SSR.
14708
+ return null;
14709
+ }
14710
+ return /*#__PURE__*/jsx(IdsRegistryProvider, {
14711
+ children: /*#__PURE__*/jsx(LightboxContent, {
14712
+ ...props,
14713
+ ref: ref
14714
+ })
14715
+ });
14716
+ });
14717
+ Lightbox.displayName = COMPONENT_NAME$O;
14494
14718
  Lightbox.className = CLASSNAME$N;
14495
14719
 
14496
14720
  /**
@@ -14500,7 +14724,7 @@ Lightbox.className = CLASSNAME$N;
14500
14724
  /**
14501
14725
  * Component display name.
14502
14726
  */
14503
- const COMPONENT_NAME$M = 'Link';
14727
+ const COMPONENT_NAME$N = 'Link';
14504
14728
 
14505
14729
  /**
14506
14730
  * Component default class name and class prefix.
@@ -14593,13 +14817,13 @@ const Link = forwardRef((props, ref) => {
14593
14817
  }))
14594
14818
  });
14595
14819
  });
14596
- Link.displayName = COMPONENT_NAME$M;
14820
+ Link.displayName = COMPONENT_NAME$N;
14597
14821
  Link.className = CLASSNAME$M;
14598
14822
 
14599
14823
  /**
14600
14824
  * Component display name.
14601
14825
  */
14602
- const COMPONENT_NAME$L = 'LinkPreview';
14826
+ const COMPONENT_NAME$M = 'LinkPreview';
14603
14827
 
14604
14828
  /**
14605
14829
  * Component default class name and class prefix.
@@ -14734,7 +14958,7 @@ const LinkPreview = forwardRef((props, ref) => {
14734
14958
  ...forwardedProps
14735
14959
  });
14736
14960
  });
14737
- LinkPreview.displayName = COMPONENT_NAME$L;
14961
+ LinkPreview.displayName = COMPONENT_NAME$M;
14738
14962
  LinkPreview.className = CLASSNAME$L;
14739
14963
  LinkPreview.defaultProps = DEFAULT_PROPS$G;
14740
14964
 
@@ -14767,7 +14991,7 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
14767
14991
  children
14768
14992
  });
14769
14993
  }), {
14770
- displayName: COMPONENT_NAME$1g,
14994
+ displayName: COMPONENT_NAME$1h,
14771
14995
  className: CLASSNAME$1e,
14772
14996
  defaultProps: DEFAULT_PROPS$Z
14773
14997
  });
@@ -14807,7 +15031,7 @@ const _ListItem = forwardRef((props, ref) => {
14807
15031
  handleClick: onItemSelected || props.onClick ? handleClick : undefined
14808
15032
  });
14809
15033
  });
14810
- _ListItem.displayName = COMPONENT_NAME$1h;
15034
+ _ListItem.displayName = COMPONENT_NAME$1i;
14811
15035
  _ListItem.className = CLASSNAME$1f;
14812
15036
  _ListItem.defaultProps = DEFAULT_PROPS$_;
14813
15037
 
@@ -14822,7 +15046,7 @@ const ListItem = Object.assign(_ListItem, {
14822
15046
  /**
14823
15047
  * Component display name.
14824
15048
  */
14825
- const COMPONENT_NAME$K = 'ListSubheader';
15049
+ const COMPONENT_NAME$L = 'ListSubheader';
14826
15050
 
14827
15051
  /**
14828
15052
  * Component default class name and class prefix.
@@ -14850,7 +15074,7 @@ const ListSubheader = forwardRef((props, ref) => {
14850
15074
  children: children
14851
15075
  });
14852
15076
  });
14853
- ListSubheader.displayName = COMPONENT_NAME$K;
15077
+ ListSubheader.displayName = COMPONENT_NAME$L;
14854
15078
  ListSubheader.className = CLASSNAME$K;
14855
15079
 
14856
15080
  const DEFAULT_PROPS$F = {
@@ -14863,7 +15087,7 @@ const DEFAULT_PROPS$F = {
14863
15087
 
14864
15088
  /** Discriminated union of MenuButton props across all trigger variants. */
14865
15089
 
14866
- const COMPONENT_NAME$J = 'MenuButton';
15090
+ const COMPONENT_NAME$K = 'MenuButton';
14867
15091
 
14868
15092
  /** Menu button core template (composition of menu provider, trigger, popover and list) */
14869
15093
  const MenuButton$1 = (props, {
@@ -15291,7 +15515,7 @@ function MenuProvider(props) {
15291
15515
  }
15292
15516
  MenuProvider.displayName = 'Menu.Provider';
15293
15517
 
15294
- const COMPONENT_NAME$I = 'MenuTrigger';
15518
+ const COMPONENT_NAME$J = 'MenuTrigger';
15295
15519
  const CLASSNAME$J = 'lumx-menu-trigger';
15296
15520
 
15297
15521
  /** MenuTrigger core template. Renders `Trigger` with disclosure ARIA attributes. */
@@ -15392,11 +15616,11 @@ const MenuTrigger = Object.assign(forwardRefPolymorphic((props, ref) => {
15392
15616
  Trigger: TriggerComp
15393
15617
  });
15394
15618
  }), {
15395
- displayName: COMPONENT_NAME$I,
15619
+ displayName: COMPONENT_NAME$J,
15396
15620
  className: CLASSNAME$J
15397
15621
  });
15398
15622
 
15399
- const COMPONENT_NAME$H = 'MenuPopover';
15623
+ const COMPONENT_NAME$I = 'MenuPopover';
15400
15624
  const CLASSNAME$I = 'lumx-menu-popover';
15401
15625
  const {
15402
15626
  block: block$z,
@@ -15469,12 +15693,12 @@ const MenuPopover = props => {
15469
15693
  FlexBox
15470
15694
  });
15471
15695
  };
15472
- MenuPopover.displayName = COMPONENT_NAME$H;
15696
+ MenuPopover.displayName = COMPONENT_NAME$I;
15473
15697
  MenuPopover.className = CLASSNAME$I;
15474
15698
 
15475
15699
  /** Menu list props. */
15476
15700
 
15477
- const COMPONENT_NAME$G = 'Menu';
15701
+ const COMPONENT_NAME$H = 'Menu';
15478
15702
  const CLASSNAME$H = 'lumx-menu';
15479
15703
 
15480
15704
  /** MenuList core template. Wraps `List` with menu-specific class and ARIA labelling. */
@@ -15537,7 +15761,7 @@ const MenuList = forwardRef((props, ref) => {
15537
15761
  children: isOpen ? children : null
15538
15762
  });
15539
15763
  });
15540
- MenuList.displayName = COMPONENT_NAME$G;
15764
+ MenuList.displayName = COMPONENT_NAME$H;
15541
15765
  MenuList.className = CLASSNAME$H;
15542
15766
 
15543
15767
  /** Props that MenuButton explicitly declares. */
@@ -15585,14 +15809,14 @@ const MenuButton = forwardRef((props, ref) => {
15585
15809
  MenuList
15586
15810
  });
15587
15811
  });
15588
- MenuButton.displayName = COMPONENT_NAME$J;
15812
+ MenuButton.displayName = COMPONENT_NAME$K;
15589
15813
  MenuButton.defaultProps = DEFAULT_PROPS$F;
15590
15814
 
15591
15815
  /** MenuItem props. */
15592
15816
 
15593
15817
  /** Props overridden by framework wrappers. */
15594
15818
 
15595
- const COMPONENT_NAME$F = 'MenuItem';
15819
+ const COMPONENT_NAME$G = 'MenuItem';
15596
15820
  const CLASSNAME$G = 'lumx-menu-item';
15597
15821
  const {
15598
15822
  block: block$y,
@@ -15708,13 +15932,13 @@ const MenuItem = forwardRef((props, ref) => {
15708
15932
  handleClick
15709
15933
  });
15710
15934
  });
15711
- MenuItem.displayName = COMPONENT_NAME$F;
15935
+ MenuItem.displayName = COMPONENT_NAME$G;
15712
15936
  MenuItem.className = CLASSNAME$G;
15713
15937
 
15714
15938
  /**
15715
15939
  * Component display name.
15716
15940
  */
15717
- const COMPONENT_NAME$E = 'Message';
15941
+ const COMPONENT_NAME$F = 'Message';
15718
15942
 
15719
15943
  /**
15720
15944
  * Component default class name and class prefix.
@@ -15797,7 +16021,7 @@ const Message$1 = props => {
15797
16021
  })]
15798
16022
  });
15799
16023
  };
15800
- Message$1.displayName = COMPONENT_NAME$E;
16024
+ Message$1.displayName = COMPONENT_NAME$F;
15801
16025
  Message$1.className = CLASSNAME$F;
15802
16026
 
15803
16027
  /**
@@ -15813,13 +16037,13 @@ const Message = forwardRef((props, ref) => {
15813
16037
  ref
15814
16038
  });
15815
16039
  });
15816
- Message.displayName = COMPONENT_NAME$E;
16040
+ Message.displayName = COMPONENT_NAME$F;
15817
16041
  Message.className = CLASSNAME$F;
15818
16042
 
15819
16043
  /**
15820
16044
  * Component display name.
15821
16045
  */
15822
- const COMPONENT_NAME$D = 'Mosaic';
16046
+ const COMPONENT_NAME$E = 'Mosaic';
15823
16047
 
15824
16048
  /**
15825
16049
  * Component default class name and class prefix.
@@ -15926,7 +16150,7 @@ const Mosaic = forwardRef((props, ref) => {
15926
16150
  ...forwardedProps
15927
16151
  });
15928
16152
  });
15929
- Mosaic.displayName = COMPONENT_NAME$D;
16153
+ Mosaic.displayName = COMPONENT_NAME$E;
15930
16154
  Mosaic.className = CLASSNAME$E;
15931
16155
  Mosaic.defaultProps = DEFAULT_PROPS$E;
15932
16156
 
@@ -15947,7 +16171,7 @@ const ITEM_CLASSNAME = 'lumx-navigation-item';
15947
16171
  /**
15948
16172
  * Component display name.
15949
16173
  */
15950
- const COMPONENT_NAME$C = 'NavigationSection';
16174
+ const COMPONENT_NAME$D = 'NavigationSection';
15951
16175
 
15952
16176
  /**
15953
16177
  * Component default class name and class prefix.
@@ -16042,7 +16266,7 @@ const NavigationSection = forwardRef((props, ref) => {
16042
16266
  }))]
16043
16267
  });
16044
16268
  });
16045
- NavigationSection.displayName = COMPONENT_NAME$C;
16269
+ NavigationSection.displayName = COMPONENT_NAME$D;
16046
16270
  NavigationSection.className = CLASSNAME$D;
16047
16271
 
16048
16272
  const {
@@ -16112,7 +16336,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
16112
16336
  /**
16113
16337
  * Component display name.
16114
16338
  */
16115
- const COMPONENT_NAME$B = 'Navigation';
16339
+ const COMPONENT_NAME$C = 'Navigation';
16116
16340
 
16117
16341
  /**
16118
16342
  * Component default class name and class prefix.
@@ -16159,7 +16383,7 @@ const Navigation = forwardRef((props, ref) => {
16159
16383
  })
16160
16384
  });
16161
16385
  });
16162
- Navigation.displayName = COMPONENT_NAME$B;
16386
+ Navigation.displayName = COMPONENT_NAME$C;
16163
16387
  Navigation.className = CLASSNAME$C;
16164
16388
  Navigation.defaultProps = DEFAULT_PROPS$D;
16165
16389
 
@@ -16192,7 +16416,7 @@ const NOTIFICATION_CONFIGURATION = {
16192
16416
  /**
16193
16417
  * Component display name.
16194
16418
  */
16195
- const COMPONENT_NAME$A = 'Notification';
16419
+ const COMPONENT_NAME$B = 'Notification';
16196
16420
 
16197
16421
  /**
16198
16422
  * Component default class name and class prefix.
@@ -16294,19 +16518,22 @@ const Notification = forwardRef((props, ref) => {
16294
16518
  })
16295
16519
  });
16296
16520
  });
16297
- Notification.displayName = COMPONENT_NAME$A;
16521
+ Notification.displayName = COMPONENT_NAME$B;
16298
16522
  Notification.className = CLASSNAME$B;
16299
16523
  Notification.defaultProps = DEFAULT_PROPS$C;
16300
16524
 
16301
16525
  /**
16302
16526
  * PopoverDialog props.
16303
- * The PopoverDialog has the same props as the Popover but requires an accessible label.
16527
+ * The PopoverDialog has the same props as the Popover, plus optional accessible-name props.
16528
+ * An accessible name can be provided via `label`, `aria-label`, `aria-labelledby`, or by
16529
+ * rendering a `DialogHeading` inside the dialog (which names it via the internal label
16530
+ * registry) - at least one of these should be used.
16304
16531
  */
16305
16532
 
16306
16533
  /**
16307
16534
  * Component display name.
16308
16535
  */
16309
- const COMPONENT_NAME$z = 'PopoverDialog';
16536
+ const COMPONENT_NAME$A = 'PopoverDialog';
16310
16537
 
16311
16538
  /**
16312
16539
  * Component default class name and class prefix.
@@ -16319,21 +16546,22 @@ const CLASSNAME$A = 'lumx-popover-dialog';
16319
16546
  const DEFAULT_PROPS$B = {};
16320
16547
 
16321
16548
  /**
16322
- * PopoverDialog component.
16323
- * Defines a popover that acts like a dialog:
16324
- * - Has a dialog aria role
16325
- * - Sets a focus trap within the popover
16326
- * - Closes on click away and escape
16327
- * - Resets heading level context to 2
16549
+ * Renders the core Popover as a dialog, resolving its `aria-labelledby` from the ids registry.
16550
+ *
16551
+ * Must render as a descendant of the `IdsRegistryProvider` set up by `PopoverDialog` (which is why it
16552
+ * is its own component: the subscription hook needs to run below the provider). Internal to the
16553
+ * popover-dialog family - not exported from the package barrel.
16328
16554
  */
16329
- const PopoverDialog = forwardRef((props, ref) => {
16555
+ const PopoverDialogContent = forwardRef((props, ref) => {
16330
16556
  const {
16331
16557
  children,
16332
- 'aria-label': ariaLabel,
16333
- label = ariaLabel,
16558
+ 'aria-label': ariaLabelAttr,
16559
+ 'aria-labelledby': ariaLabelledByAttr,
16560
+ label = ariaLabelAttr,
16334
16561
  className,
16335
16562
  ...forwardedProps
16336
16563
  } = props;
16564
+ const labelId = useRegisteredId(DIALOG_LABEL_KEY);
16337
16565
  return /*#__PURE__*/jsx(Popover, {
16338
16566
  ...forwardedProps,
16339
16567
  ref: ref,
@@ -16342,9 +16570,10 @@ const PopoverDialog = forwardRef((props, ref) => {
16342
16570
  "aria-modal": "true"
16343
16571
  /**
16344
16572
  * If a label is set, set as aria-label.
16345
- * If it is undefined, the label can be set using the `aria-label` and `aria-labelledby` props
16573
+ * If it is undefined, the label can be set using the `aria-label` and `aria-labelledby` props,
16574
+ * or by rendering a `DialogHeading` inside the dialog (linked via the internal ids registry).
16346
16575
  */,
16347
- "aria-label": label,
16576
+ ...resolveAccessibleNameProps(label, ariaLabelledByAttr || labelId),
16348
16577
  closeOnClickAway: true,
16349
16578
  closeOnEscape: true,
16350
16579
  withFocusTrap: true,
@@ -16354,14 +16583,29 @@ const PopoverDialog = forwardRef((props, ref) => {
16354
16583
  })
16355
16584
  });
16356
16585
  });
16357
- PopoverDialog.displayName = COMPONENT_NAME$z;
16586
+
16587
+ /**
16588
+ * PopoverDialog component.
16589
+ * Defines a popover that acts like a dialog:
16590
+ * - Has a dialog aria role
16591
+ * - Sets a focus trap within the popover
16592
+ * - Closes on click away and escape
16593
+ * - Resets heading level context to 2
16594
+ */
16595
+ const PopoverDialog = forwardRef((props, ref) => /*#__PURE__*/jsx(IdsRegistryProvider, {
16596
+ children: /*#__PURE__*/jsx(PopoverDialogContent, {
16597
+ ...props,
16598
+ ref: ref
16599
+ })
16600
+ }));
16601
+ PopoverDialog.displayName = COMPONENT_NAME$A;
16358
16602
  PopoverDialog.className = CLASSNAME$A;
16359
16603
  PopoverDialog.defaultProps = DEFAULT_PROPS$B;
16360
16604
 
16361
16605
  /**
16362
16606
  * Component display name.
16363
16607
  */
16364
- const COMPONENT_NAME$y = 'PostBlock';
16608
+ const COMPONENT_NAME$z = 'PostBlock';
16365
16609
 
16366
16610
  /**
16367
16611
  * Component default class name and class prefix.
@@ -16455,14 +16699,14 @@ const PostBlock = forwardRef((props, ref) => {
16455
16699
  })]
16456
16700
  });
16457
16701
  });
16458
- PostBlock.displayName = COMPONENT_NAME$y;
16702
+ PostBlock.displayName = COMPONENT_NAME$z;
16459
16703
  PostBlock.className = CLASSNAME$z;
16460
16704
  PostBlock.defaultProps = DEFAULT_PROPS$A;
16461
16705
 
16462
16706
  /**
16463
16707
  * Component display name.
16464
16708
  */
16465
- const COMPONENT_NAME$x = 'ProgressLinear';
16709
+ const COMPONENT_NAME$y = 'ProgressLinear';
16466
16710
 
16467
16711
  /**
16468
16712
  * Component default class name and class prefix.
@@ -16528,7 +16772,7 @@ const ProgressLinear = forwardRef((props, ref) => {
16528
16772
  ...otherProps
16529
16773
  });
16530
16774
  });
16531
- ProgressLinear.displayName = COMPONENT_NAME$x;
16775
+ ProgressLinear.displayName = COMPONENT_NAME$y;
16532
16776
  ProgressLinear.className = CLASSNAME$y;
16533
16777
  ProgressLinear.defaultProps = DEFAULT_PROPS$z;
16534
16778
 
@@ -16537,7 +16781,7 @@ ProgressLinear.defaultProps = DEFAULT_PROPS$z;
16537
16781
  /**
16538
16782
  * Component display name.
16539
16783
  */
16540
- const COMPONENT_NAME$w = 'ProgressCircular';
16784
+ const COMPONENT_NAME$x = 'ProgressCircular';
16541
16785
 
16542
16786
  /**
16543
16787
  * Component default class name and class prefix.
@@ -16630,7 +16874,7 @@ const ProgressCircular = forwardRef((props, ref) => {
16630
16874
  }
16631
16875
  });
16632
16876
  });
16633
- ProgressCircular.displayName = COMPONENT_NAME$w;
16877
+ ProgressCircular.displayName = COMPONENT_NAME$x;
16634
16878
  ProgressCircular.className = CLASSNAME$x;
16635
16879
  ProgressCircular.defaultProps = DEFAULT_PROPS$y;
16636
16880
 
@@ -16646,7 +16890,7 @@ const ProgressVariant = {
16646
16890
  /**
16647
16891
  * Component display name.
16648
16892
  */
16649
- const COMPONENT_NAME$v = 'Progress';
16893
+ const COMPONENT_NAME$w = 'Progress';
16650
16894
 
16651
16895
  /**
16652
16896
  * Component default class name and class prefix.
@@ -16693,7 +16937,7 @@ const Progress = forwardRef((props, ref) => {
16693
16937
  })]
16694
16938
  });
16695
16939
  });
16696
- Progress.displayName = COMPONENT_NAME$v;
16940
+ Progress.displayName = COMPONENT_NAME$w;
16697
16941
  Progress.className = CLASSNAME$w;
16698
16942
  Progress.defaultProps = DEFAULT_PROPS$x;
16699
16943
 
@@ -16878,7 +17122,7 @@ ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$w;
16878
17122
  /**
16879
17123
  * Component display name.
16880
17124
  */
16881
- const COMPONENT_NAME$u = 'ProgressTracker';
17125
+ const COMPONENT_NAME$v = 'ProgressTracker';
16882
17126
 
16883
17127
  /**
16884
17128
  * Component default class name and class prefix.
@@ -16944,14 +17188,14 @@ const ProgressTracker = forwardRef((props, ref) => {
16944
17188
  })]
16945
17189
  });
16946
17190
  });
16947
- ProgressTracker.displayName = COMPONENT_NAME$u;
17191
+ ProgressTracker.displayName = COMPONENT_NAME$v;
16948
17192
  ProgressTracker.className = CLASSNAME$v;
16949
17193
  ProgressTracker.defaultProps = DEFAULT_PROPS$v;
16950
17194
 
16951
17195
  /**
16952
17196
  * Component display name.
16953
17197
  */
16954
- const COMPONENT_NAME$t = 'ProgressTrackerStep';
17198
+ const COMPONENT_NAME$u = 'ProgressTrackerStep';
16955
17199
 
16956
17200
  /**
16957
17201
  * Component default class name and class prefix.
@@ -17058,14 +17302,14 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
17058
17302
  })]
17059
17303
  });
17060
17304
  });
17061
- ProgressTrackerStep.displayName = COMPONENT_NAME$t;
17305
+ ProgressTrackerStep.displayName = COMPONENT_NAME$u;
17062
17306
  ProgressTrackerStep.className = CLASSNAME$u;
17063
17307
  ProgressTrackerStep.defaultProps = DEFAULT_PROPS$u;
17064
17308
 
17065
17309
  /**
17066
17310
  * Component display name.
17067
17311
  */
17068
- const COMPONENT_NAME$s = 'ProgressTrackerStepPanel';
17312
+ const COMPONENT_NAME$t = 'ProgressTrackerStepPanel';
17069
17313
 
17070
17314
  /**
17071
17315
  * Component default class name and class prefix.
@@ -17112,14 +17356,14 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
17112
17356
  children: (!state?.isLazy || isActive) && children
17113
17357
  });
17114
17358
  });
17115
- ProgressTrackerStepPanel.displayName = COMPONENT_NAME$s;
17359
+ ProgressTrackerStepPanel.displayName = COMPONENT_NAME$t;
17116
17360
  ProgressTrackerStepPanel.className = CLASSNAME$t;
17117
17361
  ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$t;
17118
17362
 
17119
17363
  /**
17120
17364
  * Component display name.
17121
17365
  */
17122
- const COMPONENT_NAME$r = 'RadioButton';
17366
+ const COMPONENT_NAME$s = 'RadioButton';
17123
17367
 
17124
17368
  /**
17125
17369
  * Component default class name and class prefix.
@@ -17271,14 +17515,14 @@ const RadioButton = forwardRef((props, ref) => {
17271
17515
  inputId
17272
17516
  });
17273
17517
  });
17274
- RadioButton.displayName = COMPONENT_NAME$r;
17518
+ RadioButton.displayName = COMPONENT_NAME$s;
17275
17519
  RadioButton.className = CLASSNAME$s;
17276
17520
  RadioButton.defaultProps = DEFAULT_PROPS$s;
17277
17521
 
17278
17522
  /**
17279
17523
  * Component display name.
17280
17524
  */
17281
- const COMPONENT_NAME$q = 'RadioGroup';
17525
+ const COMPONENT_NAME$r = 'RadioGroup';
17282
17526
 
17283
17527
  /**
17284
17528
  * Component default class name and class prefix.
@@ -17310,7 +17554,7 @@ const RadioGroup$1 = props => {
17310
17554
  children: children
17311
17555
  });
17312
17556
  };
17313
- RadioGroup$1.displayName = COMPONENT_NAME$q;
17557
+ RadioGroup$1.displayName = COMPONENT_NAME$r;
17314
17558
  RadioGroup$1.className = CLASSNAME$r;
17315
17559
  RadioGroup$1.defaultProps = DEFAULT_PROPS$r;
17316
17560
 
@@ -17338,7 +17582,7 @@ const RadioGroup = forwardRef((props, ref) => {
17338
17582
  ...forwardedProps
17339
17583
  });
17340
17584
  });
17341
- RadioGroup.displayName = COMPONENT_NAME$q;
17585
+ RadioGroup.displayName = COMPONENT_NAME$r;
17342
17586
  RadioGroup.className = CLASSNAME$r;
17343
17587
 
17344
17588
  /**
@@ -17486,7 +17730,7 @@ const SelectVariant = {
17486
17730
  };
17487
17731
 
17488
17732
  /** The display name of the component. */
17489
- const COMPONENT_NAME$p = 'Select';
17733
+ const COMPONENT_NAME$q = 'Select';
17490
17734
 
17491
17735
  /** The default class name and classes prefix for this component. */
17492
17736
  const CLASSNAME$p = 'lumx-select';
@@ -17630,13 +17874,13 @@ const Select = forwardRef((props, ref) => {
17630
17874
  isEmpty: isEmpty$1
17631
17875
  }, ref);
17632
17876
  });
17633
- Select.displayName = COMPONENT_NAME$p;
17877
+ Select.displayName = COMPONENT_NAME$q;
17634
17878
  Select.className = CLASSNAME$p;
17635
17879
  Select.defaultProps = DEFAULT_PROPS$q;
17636
17880
  Select.className = CLASSNAME$p;
17637
17881
 
17638
17882
  /** The display name of the component. */
17639
- const COMPONENT_NAME$o = 'Select';
17883
+ const COMPONENT_NAME$p = 'Select';
17640
17884
 
17641
17885
  /** The default class name and classes prefix for this component. */
17642
17886
  const CLASSNAME$o = 'lumx-select';
@@ -17784,7 +18028,7 @@ const SelectMultiple = forwardRef((props, ref) => {
17784
18028
  isMultiple: true
17785
18029
  }, ref);
17786
18030
  });
17787
- SelectMultiple.displayName = COMPONENT_NAME$o;
18031
+ SelectMultiple.displayName = COMPONENT_NAME$p;
17788
18032
  SelectMultiple.className = CLASSNAME$o;
17789
18033
  SelectMultiple.defaultProps = DEFAULT_PROPS$p;
17790
18034
 
@@ -17937,7 +18181,7 @@ function renderSelectOptions(props, components) {
17937
18181
  /**
17938
18182
  * Component display name.
17939
18183
  */
17940
- const COMPONENT_NAME$n = 'SelectButton';
18184
+ const COMPONENT_NAME$o = 'SelectButton';
17941
18185
 
17942
18186
  /**
17943
18187
  * Component default class name.
@@ -18046,7 +18290,7 @@ const SelectButton$2 = (props, {
18046
18290
  })]
18047
18291
  });
18048
18292
  };
18049
- SelectButton$2.displayName = COMPONENT_NAME$n;
18293
+ SelectButton$2.displayName = COMPONENT_NAME$o;
18050
18294
  SelectButton$2.className = CLASSNAME$n;
18051
18295
 
18052
18296
  /**
@@ -18243,7 +18487,7 @@ const SelectButton = Object.assign(SelectButton$1, {
18243
18487
  /**
18244
18488
  * Component display name.
18245
18489
  */
18246
- const COMPONENT_NAME$m = 'SelectTextField';
18490
+ const COMPONENT_NAME$n = 'SelectTextField';
18247
18491
 
18248
18492
  /**
18249
18493
  * Component default class name.
@@ -18342,7 +18586,7 @@ const SelectTextField$2 = (props, {
18342
18586
  })]
18343
18587
  });
18344
18588
  };
18345
- SelectTextField$2.displayName = COMPONENT_NAME$m;
18589
+ SelectTextField$2.displayName = COMPONENT_NAME$n;
18346
18590
  SelectTextField$2.className = CLASSNAME$m;
18347
18591
 
18348
18592
  /**
@@ -18601,7 +18845,7 @@ const SelectTextField = Object.assign(SelectTextField$1, {
18601
18845
  /**
18602
18846
  * Component display name.
18603
18847
  */
18604
- const COMPONENT_NAME$l = 'SideNavigation';
18848
+ const COMPONENT_NAME$m = 'SideNavigation';
18605
18849
 
18606
18850
  /**
18607
18851
  * Component default class name and class prefix.
@@ -18631,13 +18875,13 @@ const SideNavigation = forwardRef((props, ref) => {
18631
18875
  children: content
18632
18876
  });
18633
18877
  });
18634
- SideNavigation.displayName = COMPONENT_NAME$l;
18878
+ SideNavigation.displayName = COMPONENT_NAME$m;
18635
18879
  SideNavigation.className = CLASSNAME$l;
18636
18880
 
18637
18881
  /**
18638
18882
  * Component display name.
18639
18883
  */
18640
- const COMPONENT_NAME$k = 'SideNavigationItem';
18884
+ const COMPONENT_NAME$l = 'SideNavigationItem';
18641
18885
 
18642
18886
  /**
18643
18887
  * Component default class name and class prefix.
@@ -18752,14 +18996,14 @@ const SideNavigationItem = forwardRef((props, ref) => {
18752
18996
  })]
18753
18997
  });
18754
18998
  });
18755
- SideNavigationItem.displayName = COMPONENT_NAME$k;
18999
+ SideNavigationItem.displayName = COMPONENT_NAME$l;
18756
19000
  SideNavigationItem.className = CLASSNAME$k;
18757
19001
  SideNavigationItem.defaultProps = DEFAULT_PROPS$n;
18758
19002
 
18759
19003
  /**
18760
19004
  * Component display name.
18761
19005
  */
18762
- const COMPONENT_NAME$j = 'SkeletonCircle';
19006
+ const COMPONENT_NAME$k = 'SkeletonCircle';
18763
19007
 
18764
19008
  /**
18765
19009
  * Component default class name and class prefix.
@@ -18811,7 +19055,7 @@ const SkeletonRectangleVariant = {
18811
19055
  /**
18812
19056
  * Component display name.
18813
19057
  */
18814
- const COMPONENT_NAME$i = 'SkeletonRectangle';
19058
+ const COMPONENT_NAME$j = 'SkeletonRectangle';
18815
19059
 
18816
19060
  /**
18817
19061
  * Component default class name and class prefix.
@@ -18895,7 +19139,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
18895
19139
  ...forwardedProps
18896
19140
  });
18897
19141
  });
18898
- SkeletonCircle.displayName = COMPONENT_NAME$j;
19142
+ SkeletonCircle.displayName = COMPONENT_NAME$k;
18899
19143
  SkeletonCircle.defaultProps = DEFAULT_PROPS$l;
18900
19144
  SkeletonCircle.className = CLASSNAME$j;
18901
19145
 
@@ -18936,7 +19180,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
18936
19180
  ...forwardedProps
18937
19181
  });
18938
19182
  });
18939
- SkeletonRectangle.displayName = COMPONENT_NAME$i;
19183
+ SkeletonRectangle.displayName = COMPONENT_NAME$j;
18940
19184
  SkeletonRectangle.className = CLASSNAME$i;
18941
19185
  SkeletonRectangle.defaultProps = DEFAULT_PROPS$k;
18942
19186
 
@@ -18973,7 +19217,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
18973
19217
  ...forwardedProps
18974
19218
  });
18975
19219
  });
18976
- SkeletonTypography.displayName = COMPONENT_NAME$1b;
19220
+ SkeletonTypography.displayName = COMPONENT_NAME$1c;
18977
19221
  SkeletonTypography.defaultProps = DEFAULT_PROPS$j;
18978
19222
  SkeletonTypography.className = CLASSNAME$19;
18979
19223
 
@@ -18999,7 +19243,7 @@ const clamp = (value, min, max) => {
18999
19243
  /**
19000
19244
  * Component display name.
19001
19245
  */
19002
- const COMPONENT_NAME$h = 'Slider';
19246
+ const COMPONENT_NAME$i = 'Slider';
19003
19247
 
19004
19248
  /**
19005
19249
  * Component default class name and class prefix.
@@ -19266,7 +19510,7 @@ const Slider = forwardRef((props, ref) => {
19266
19510
  })]
19267
19511
  });
19268
19512
  });
19269
- Slider.displayName = COMPONENT_NAME$h;
19513
+ Slider.displayName = COMPONENT_NAME$i;
19270
19514
  Slider.className = CLASSNAME$h;
19271
19515
  Slider.defaultProps = DEFAULT_PROPS$i;
19272
19516
 
@@ -19601,7 +19845,7 @@ const useSlideFocusManagement = ({
19601
19845
  /**
19602
19846
  * Component display name.
19603
19847
  */
19604
- const COMPONENT_NAME$g = 'SlideshowItemGroup';
19848
+ const COMPONENT_NAME$h = 'SlideshowItemGroup';
19605
19849
 
19606
19850
  /**
19607
19851
  * Component default class name and class prefix.
@@ -19640,7 +19884,7 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
19640
19884
  children: children
19641
19885
  });
19642
19886
  });
19643
- SlideshowItemGroup.displayName = COMPONENT_NAME$g;
19887
+ SlideshowItemGroup.displayName = COMPONENT_NAME$h;
19644
19888
  SlideshowItemGroup.className = CLASSNAME$g;
19645
19889
 
19646
19890
  /**
@@ -19771,7 +20015,7 @@ Slideshow.defaultProps = DEFAULT_PROPS$h;
19771
20015
  /**
19772
20016
  * Component display name.
19773
20017
  */
19774
- const COMPONENT_NAME$f = 'SlideshowItem';
20018
+ const COMPONENT_NAME$g = 'SlideshowItem';
19775
20019
 
19776
20020
  /**
19777
20021
  * Component default class name and class prefix.
@@ -19798,7 +20042,7 @@ const SlideshowItem = forwardRef((props, ref) => {
19798
20042
  children: children
19799
20043
  });
19800
20044
  });
19801
- SlideshowItem.displayName = COMPONENT_NAME$f;
20045
+ SlideshowItem.displayName = COMPONENT_NAME$g;
19802
20046
  SlideshowItem.className = CLASSNAME$f;
19803
20047
 
19804
20048
  const isTouchDevice = () => 'ontouchstart' in window;
@@ -19861,7 +20105,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
19861
20105
  /**
19862
20106
  * Component display name.
19863
20107
  */
19864
- const COMPONENT_NAME$e = 'SlideshowControls';
20108
+ const COMPONENT_NAME$f = 'SlideshowControls';
19865
20109
 
19866
20110
  /**
19867
20111
  * Component default class name and class prefix.
@@ -20001,7 +20245,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
20001
20245
  })]
20002
20246
  });
20003
20247
  });
20004
- InternalSlideshowControls.displayName = COMPONENT_NAME$e;
20248
+ InternalSlideshowControls.displayName = COMPONENT_NAME$f;
20005
20249
  InternalSlideshowControls.className = CLASSNAME$e;
20006
20250
  InternalSlideshowControls.defaultProps = DEFAULT_PROPS$g;
20007
20251
  const SlideshowControls = Object.assign(InternalSlideshowControls, {
@@ -20121,7 +20365,7 @@ const useSlideScroll = ({
20121
20365
  /**
20122
20366
  * Component display name.
20123
20367
  */
20124
- const COMPONENT_NAME$d = 'Slideshow';
20368
+ const COMPONENT_NAME$e = 'Slideshow';
20125
20369
 
20126
20370
  /**
20127
20371
  * Component default class name and class prefix.
@@ -20229,13 +20473,13 @@ const Slides = forwardRef((props, ref) => {
20229
20473
  }), afterSlides]
20230
20474
  });
20231
20475
  });
20232
- Slides.displayName = COMPONENT_NAME$d;
20476
+ Slides.displayName = COMPONENT_NAME$e;
20233
20477
  Slides.className = CLASSNAME$d;
20234
20478
 
20235
20479
  /**
20236
20480
  * Component display name.
20237
20481
  */
20238
- const COMPONENT_NAME$c = 'Switch';
20482
+ const COMPONENT_NAME$d = 'Switch';
20239
20483
 
20240
20484
  /**
20241
20485
  * Component default class name and class prefix.
@@ -20403,14 +20647,14 @@ const Switch = forwardRef((props, ref) => {
20403
20647
  inputId
20404
20648
  });
20405
20649
  });
20406
- Switch.displayName = COMPONENT_NAME$c;
20650
+ Switch.displayName = COMPONENT_NAME$d;
20407
20651
  Switch.className = CLASSNAME$c;
20408
20652
  Switch.defaultProps = DEFAULT_PROPS$d;
20409
20653
 
20410
20654
  /**
20411
20655
  * Component display name.
20412
20656
  */
20413
- const COMPONENT_NAME$b = 'Table';
20657
+ const COMPONENT_NAME$c = 'Table';
20414
20658
 
20415
20659
  /**
20416
20660
  * Component default class name and class prefix.
@@ -20483,14 +20727,14 @@ const Table = forwardRef((props, ref) => {
20483
20727
  ...otherProps
20484
20728
  });
20485
20729
  });
20486
- Table.displayName = COMPONENT_NAME$b;
20730
+ Table.displayName = COMPONENT_NAME$c;
20487
20731
  Table.className = CLASSNAME$b;
20488
20732
  Table.defaultProps = DEFAULT_PROPS$c;
20489
20733
 
20490
20734
  /**
20491
20735
  * Component display name.
20492
20736
  */
20493
- const COMPONENT_NAME$a = 'TableBody';
20737
+ const COMPONENT_NAME$b = 'TableBody';
20494
20738
 
20495
20739
  /**
20496
20740
  * Component default class name and class prefix.
@@ -20540,7 +20784,7 @@ const TableBody = forwardRef((props, ref) => {
20540
20784
  ...otherProps
20541
20785
  });
20542
20786
  });
20543
- TableBody.displayName = COMPONENT_NAME$a;
20787
+ TableBody.displayName = COMPONENT_NAME$b;
20544
20788
  TableBody.className = CLASSNAME$a;
20545
20789
 
20546
20790
  const ThOrder = {
@@ -20562,7 +20806,7 @@ const TableCellVariant = {
20562
20806
  /**
20563
20807
  * Component display name.
20564
20808
  */
20565
- const COMPONENT_NAME$9 = 'TableCell';
20809
+ const COMPONENT_NAME$a = 'TableCell';
20566
20810
 
20567
20811
  /**
20568
20812
  * Component default class name and class prefix.
@@ -20678,14 +20922,14 @@ const TableCell = forwardRef((props, ref) => {
20678
20922
  handleClick: onHeaderClick
20679
20923
  });
20680
20924
  });
20681
- TableCell.displayName = COMPONENT_NAME$9;
20925
+ TableCell.displayName = COMPONENT_NAME$a;
20682
20926
  TableCell.className = CLASSNAME$9;
20683
20927
  TableCell.defaultProps = DEFAULT_PROPS$b;
20684
20928
 
20685
20929
  /**
20686
20930
  * Component display name.
20687
20931
  */
20688
- const COMPONENT_NAME$8 = 'TableHeader';
20932
+ const COMPONENT_NAME$9 = 'TableHeader';
20689
20933
 
20690
20934
  /**
20691
20935
  * Component default class name and class prefix.
@@ -20740,14 +20984,14 @@ const TableHeader = forwardRef((props, ref) => {
20740
20984
  ...otherProps
20741
20985
  });
20742
20986
  });
20743
- TableHeader.displayName = COMPONENT_NAME$8;
20987
+ TableHeader.displayName = COMPONENT_NAME$9;
20744
20988
  TableHeader.className = CLASSNAME$8;
20745
20989
  TableHeader.defaultProps = DEFAULT_PROPS$a;
20746
20990
 
20747
20991
  /**
20748
20992
  * Component display name.
20749
20993
  */
20750
- const COMPONENT_NAME$7 = 'TableRow';
20994
+ const COMPONENT_NAME$8 = 'TableRow';
20751
20995
 
20752
20996
  /**
20753
20997
  * Component default class name and class prefix.
@@ -20830,7 +21074,7 @@ const TableRow = forwardRef((props, ref) => {
20830
21074
  ...forwardedProps
20831
21075
  });
20832
21076
  });
20833
- TableRow.displayName = COMPONENT_NAME$7;
21077
+ TableRow.displayName = COMPONENT_NAME$8;
20834
21078
  TableRow.className = CLASSNAME$7;
20835
21079
  TableRow.defaultProps = DEFAULT_PROPS$9;
20836
21080
 
@@ -20918,7 +21162,7 @@ let TabListLayout = /*#__PURE__*/function (TabListLayout) {
20918
21162
  /**
20919
21163
  * Component display name.
20920
21164
  */
20921
- const COMPONENT_NAME$6 = 'TabList';
21165
+ const COMPONENT_NAME$7 = 'TabList';
20922
21166
 
20923
21167
  /**
20924
21168
  * Component default props.
@@ -20944,10 +21188,12 @@ const TabList$1 = props => {
20944
21188
  className,
20945
21189
  layout = DEFAULT_PROPS$7.layout,
20946
21190
  position = DEFAULT_PROPS$7.position,
21191
+ role = 'tablist',
20947
21192
  theme,
20948
21193
  ref,
20949
21194
  ...forwardedProps
20950
21195
  } = props;
21196
+ const LinkWrapper = role === 'navigation' ? 'nav' : 'div';
20951
21197
  return /*#__PURE__*/jsx("div", {
20952
21198
  ref: ref,
20953
21199
  ...forwardedProps,
@@ -20956,9 +21202,9 @@ const TabList$1 = props => {
20956
21202
  [`position-${position}`]: Boolean(position),
20957
21203
  [`theme-${theme}`]: Boolean(theme)
20958
21204
  })),
20959
- children: /*#__PURE__*/jsx("div", {
21205
+ children: /*#__PURE__*/jsx(LinkWrapper, {
20960
21206
  className: element$4('links'),
20961
- role: "tablist",
21207
+ role: role,
20962
21208
  "aria-label": ariaLabel,
20963
21209
  children: children
20964
21210
  })
@@ -20970,6 +21216,8 @@ const TabList$1 = props => {
20970
21216
  *
20971
21217
  * Implements WAI-ARIA `tablist` role {@see https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html#rps_label}
20972
21218
  *
21219
+ * Renders a `role="navigation"` landmark instead when used outside a `TabProvider` (nav-link mode).
21220
+ *
20973
21221
  * @param props Component props.
20974
21222
  * @param ref Component ref.
20975
21223
  * @return React element.
@@ -20981,24 +21229,29 @@ const TabList = forwardRef((props, ref) => {
20981
21229
  ...forwardedProps
20982
21230
  } = props;
20983
21231
  const tabListRef = React__default.useRef(null);
21232
+ const role = useTabProviderContextState() === undefined ? 'navigation' : 'tablist';
21233
+
21234
+ // Classic roving tabindex (role="tab"). Disabled in nav-link mode: nav links keep their
21235
+ // native per-link Tab stops, so this path is never engaged there.
20984
21236
  useRovingTabIndexContainer({
20985
- containerRef: tabListRef,
21237
+ containerRef: role === 'navigation' ? null : tabListRef,
20986
21238
  itemSelector: '[role="tab"]'
20987
21239
  });
20988
21240
  return TabList$1({
21241
+ ...forwardedProps,
20989
21242
  theme,
20990
- ref: mergeRefs(ref, tabListRef),
20991
- ...forwardedProps
21243
+ role,
21244
+ ref: mergeRefs(ref, tabListRef)
20992
21245
  });
20993
21246
  });
20994
- TabList.displayName = COMPONENT_NAME$6;
21247
+ TabList.displayName = COMPONENT_NAME$7;
20995
21248
  TabList.className = TABS_CLASSNAME;
20996
21249
  TabList.defaultProps = DEFAULT_PROPS$7;
20997
21250
 
20998
21251
  /**
20999
21252
  * Component display name.
21000
21253
  */
21001
- const COMPONENT_NAME$5 = 'Tab';
21254
+ const COMPONENT_NAME$6 = 'Tab';
21002
21255
 
21003
21256
  /**
21004
21257
  * Component default props.
@@ -21014,9 +21267,11 @@ const {
21014
21267
  } = bem(CLASSNAME$6);
21015
21268
 
21016
21269
  /**
21017
- * Tab component.
21018
- *
21019
- * Implements WAI-ARIA `tab` role {@see https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html#rps_label}
21270
+ * Tab component. Two modes keyed on `TabProvider` presence (via the wrapper-resolved `role`):
21271
+ * tab mode (`role === 'tab'`, inside a provider) implements the WAI-ARIA `tab` role
21272
+ * {@see https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html#rps_label};
21273
+ * nav-link mode (no provider) renders plain link semantics (`aria-current`, no tab role/aria).
21274
+ * `as` only selects the rendered element and applies in both modes.
21020
21275
  *
21021
21276
  * @param props Component props.
21022
21277
  * @param ref Component ref.
@@ -21024,6 +21279,7 @@ const {
21024
21279
  */
21025
21280
  const Tab$1 = props => {
21026
21281
  const {
21282
+ as = 'button',
21027
21283
  className,
21028
21284
  icon,
21029
21285
  iconProps = {},
@@ -21031,6 +21287,7 @@ const Tab$1 = props => {
21031
21287
  isDisabled,
21032
21288
  id,
21033
21289
  isActive,
21290
+ role,
21034
21291
  label,
21035
21292
  handleFocus,
21036
21293
  handleKeyPress,
@@ -21040,112 +21297,150 @@ const Tab$1 = props => {
21040
21297
  changeToTab,
21041
21298
  tabPanelId,
21042
21299
  shouldActivateOnFocus,
21043
- tabId,
21044
21300
  Icon,
21045
21301
  Text,
21046
21302
  ref,
21047
21303
  ...forwardedProps
21048
21304
  } = props;
21049
- const changeToCurrentTab = () => {
21050
- if (isAnyDisabled) {
21051
- return;
21052
- }
21053
- changeToTab?.();
21054
- };
21055
- const onFocus = event => {
21056
- handleFocus?.(event);
21057
- if (shouldActivateOnFocus) {
21305
+ let rawClickableProps;
21306
+ if (role === 'tab') {
21307
+ // Mode: WAI-ARIA `tab` role (inside a TabProvider)
21308
+ const changeToCurrentTab = () => {
21309
+ if (isAnyDisabled) {
21310
+ return;
21311
+ }
21312
+ changeToTab?.();
21313
+ };
21314
+ const onFocus = event => {
21315
+ handleFocus?.(event);
21316
+ if (shouldActivateOnFocus) {
21317
+ changeToCurrentTab();
21318
+ }
21319
+ };
21320
+ const onKeyPress = event => {
21321
+ handleKeyPress?.(event);
21322
+ if (event.key !== 'Enter' || isAnyDisabled) {
21323
+ return;
21324
+ }
21058
21325
  changeToCurrentTab();
21059
- }
21060
- };
21061
- const onKeyPress = event => {
21062
- handleKeyPress?.(event);
21063
- if (event.key !== 'Enter' || isAnyDisabled) {
21064
- return;
21065
- }
21066
- changeToCurrentTab();
21067
- };
21068
- return /*#__PURE__*/jsxs("button", {
21069
- ref: ref,
21070
- ...forwardedProps,
21071
- type: "button",
21072
- id: tabId,
21326
+ };
21327
+ rawClickableProps = {
21328
+ ...forwardedProps,
21329
+ 'aria-disabled': isAnyDisabled ? 'true' : 'false',
21330
+ handleClick: changeToCurrentTab,
21331
+ onFocus,
21332
+ role: 'tab',
21333
+ 'aria-selected': isActive,
21334
+ 'aria-controls': tabPanelId,
21335
+ [keyPressProp]: onKeyPress,
21336
+ [tabIndexProp]: isActive ? 0 : tabIndex
21337
+ };
21338
+ } else {
21339
+ // Mode: nav link
21340
+ const {
21341
+ onClick,
21342
+ ...rest
21343
+ } = forwardedProps;
21344
+ rawClickableProps = {
21345
+ ...rest,
21346
+ isDisabled,
21347
+ handleClick: onClick,
21348
+ 'aria-current': isActive ? 'page' : undefined
21349
+ };
21350
+ }
21351
+ return RawClickable({
21352
+ ...rawClickableProps,
21353
+ as,
21354
+ id,
21073
21355
  className: classnames(className, block$6({
21074
21356
  'is-active': isActive,
21075
21357
  'is-disabled': isAnyDisabled
21076
21358
  })),
21077
- onClick: changeToCurrentTab,
21078
- [keyPressProp]: onKeyPress,
21079
- onFocus: onFocus,
21080
- role: "tab",
21081
- [tabIndexProp]: isActive ? 0 : tabIndex,
21082
- "aria-disabled": isAnyDisabled,
21083
- "aria-selected": isActive,
21084
- "aria-controls": tabPanelId,
21085
- children: [icon && /*#__PURE__*/jsx(Icon, {
21086
- icon: icon,
21087
- size: Size.xs,
21088
- ...iconProps
21089
- }), label && /*#__PURE__*/jsx(Text, {
21090
- as: "span",
21091
- truncate: true,
21092
- children: label
21093
- })]
21359
+ ref: ref,
21360
+ children: /*#__PURE__*/jsxs(Fragment, {
21361
+ children: [icon && /*#__PURE__*/jsx(Icon, {
21362
+ icon: icon,
21363
+ size: Size.xs,
21364
+ ...iconProps
21365
+ }), label && /*#__PURE__*/jsx(Text, {
21366
+ as: "span",
21367
+ truncate: true,
21368
+ children: label
21369
+ })]
21370
+ })
21094
21371
  });
21095
21372
  };
21096
21373
 
21097
21374
  /**
21098
- * Defines the props of the component.
21375
+ * Defines the props of the component. Polymorphic on `as` (element selection only): `as` picks the
21376
+ * rendered element (`as="a"` with required `href`, or `as={RouterLink}`), while the mode
21377
+ * (`role="tab"` vs nav-link) is driven by `TabProvider` presence. The forwarded ref type follows `as`.
21099
21378
  */
21100
21379
 
21101
21380
  /**
21102
21381
  * Tab component.
21103
21382
  *
21104
21383
  * Implements WAI-ARIA `tab` role {@see https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html#rps_label}
21384
+ * when rendered inside a `TabProvider`.
21385
+ *
21386
+ * Outside a `TabProvider` (nav-link mode): plain link, no `role="tab"`/roving tabindex/`changeToTab`
21387
+ * dispatch — only `aria-current` marks the active item.
21105
21388
  *
21106
21389
  * @param props Component props.
21107
- * @param ref Component ref.
21390
+ * @param ref Component ref (type follows `as`).
21108
21391
  * @return React element.
21109
21392
  */
21110
- const Tab = forwardRef((props, ref) => {
21393
+ const Tab = Object.assign(forwardRefPolymorphic((props, ref) => {
21111
21394
  const {
21112
21395
  isAnyDisabled,
21113
21396
  otherProps
21114
21397
  } = useDisableStateProps(props);
21115
21398
  const {
21399
+ as = 'button',
21116
21400
  isActive: propIsActive,
21117
21401
  id,
21118
21402
  onFocus,
21119
21403
  onKeyPress,
21120
21404
  ...forwardedProps
21121
21405
  } = otherProps;
21406
+
21407
+ // Register into the provider (if any) so it can track this tab's index / active state.
21122
21408
  const tabState = useTabProviderContext('tab', id);
21409
+ // In a provider => tab mode (role="tab"); outside => nav-link mode. Mirrors TabList's role.
21410
+ const inProvider = tabState !== undefined;
21123
21411
  const {
21124
21412
  isLazy: _isLazy,
21413
+ tabId,
21125
21414
  ...state
21126
21415
  } = tabState ?? {};
21416
+ // Without a provider there's no active index, so this collapses to the caller-provided value.
21127
21417
  const isActive = propIsActive || state?.isActive;
21128
21418
  return Tab$1({
21129
- id,
21419
+ ...forwardedProps,
21130
21420
  ...state,
21421
+ as,
21422
+ role: inProvider ? 'tab' : undefined,
21131
21423
  Icon,
21132
21424
  Text,
21133
21425
  ref,
21426
+ // Falls back to the caller-provided `id` when there's no TabProvider to generate one.
21427
+ id: tabId || id,
21134
21428
  isActive,
21135
21429
  isAnyDisabled,
21430
+ isDisabled: isAnyDisabled,
21136
21431
  handleFocus: onFocus,
21137
- handleKeyPress: onKeyPress,
21138
- ...forwardedProps
21432
+ handleKeyPress: onKeyPress
21139
21433
  });
21434
+ }), {
21435
+ displayName: COMPONENT_NAME$6,
21436
+ className: CLASSNAME$6,
21437
+ defaultProps: DEFAULT_PROPS$6
21140
21438
  });
21141
- Tab.displayName = COMPONENT_NAME$5;
21142
- Tab.className = CLASSNAME$6;
21143
- Tab.defaultProps = DEFAULT_PROPS$6;
21144
21439
 
21145
21440
  /**
21146
21441
  * Component display name.
21147
21442
  */
21148
- const COMPONENT_NAME$4 = 'TabPanel';
21443
+ const COMPONENT_NAME$5 = 'TabPanel';
21149
21444
 
21150
21445
  /**
21151
21446
  * Component default class name and class prefix.
@@ -21225,7 +21520,7 @@ const TabPanel = forwardRef((props, ref) => {
21225
21520
  ...forwardedProps
21226
21521
  });
21227
21522
  });
21228
- TabPanel.displayName = COMPONENT_NAME$4;
21523
+ TabPanel.displayName = COMPONENT_NAME$5;
21229
21524
  TabPanel.className = CLASSNAME$5;
21230
21525
  TabPanel.defaultProps = DEFAULT_PROPS$5;
21231
21526
 
@@ -21376,7 +21671,7 @@ function calculateFocusPointStyle({
21376
21671
  /**
21377
21672
  * Component display name.
21378
21673
  */
21379
- const COMPONENT_NAME$3 = 'Thumbnail';
21674
+ const COMPONENT_NAME$4 = 'Thumbnail';
21380
21675
 
21381
21676
  /**
21382
21677
  * Component default class name and class prefix.
@@ -21666,7 +21961,7 @@ const Thumbnail = forwardRef((props, ref) => {
21666
21961
  })
21667
21962
  });
21668
21963
  });
21669
- Thumbnail.displayName = COMPONENT_NAME$3;
21964
+ Thumbnail.displayName = COMPONENT_NAME$4;
21670
21965
  Thumbnail.className = CLASSNAME$4;
21671
21966
  Thumbnail.defaultProps = DEFAULT_PROPS$4;
21672
21967
 
@@ -21710,7 +22005,7 @@ const ThumbnailObjectFit = {
21710
22005
  /**
21711
22006
  * Component display name.
21712
22007
  */
21713
- const COMPONENT_NAME$2 = 'TimePickerField';
22008
+ const COMPONENT_NAME$3 = 'TimePickerField';
21714
22009
 
21715
22010
  /**
21716
22011
  * Component default class name (BEM root).
@@ -21811,7 +22106,7 @@ const TimePickerField$1 = (props, {
21811
22106
  translations: translations
21812
22107
  });
21813
22108
  };
21814
- TimePickerField$1.displayName = COMPONENT_NAME$2;
22109
+ TimePickerField$1.displayName = COMPONENT_NAME$3;
21815
22110
  TimePickerField$1.className = CLASSNAME$3;
21816
22111
 
21817
22112
  /**
@@ -22075,12 +22370,12 @@ const TimePickerField = props => {
22075
22370
  Option: SelectTextField.Option
22076
22371
  });
22077
22372
  };
22078
- TimePickerField.displayName = COMPONENT_NAME$2;
22373
+ TimePickerField.displayName = COMPONENT_NAME$3;
22079
22374
 
22080
22375
  /**
22081
22376
  * Component display name.
22082
22377
  */
22083
- const TOOLBAR_NAME = 'Toolbar';
22378
+ const COMPONENT_NAME$2 = 'Toolbar';
22084
22379
 
22085
22380
  /**
22086
22381
  * Component default class name and class prefix.
@@ -22149,7 +22444,7 @@ const Toolbar = forwardRef((props, ref) => {
22149
22444
  ...props
22150
22445
  });
22151
22446
  });
22152
- Toolbar.displayName = TOOLBAR_NAME;
22447
+ Toolbar.displayName = COMPONENT_NAME$2;
22153
22448
  Toolbar.className = CLASSNAME$2;
22154
22449
  Toolbar.defaultProps = DEFAULT_PROPS$2;
22155
22450
 
@@ -22548,5 +22843,5 @@ UserBlock.displayName = COMPONENT_NAME;
22548
22843
  UserBlock.className = CLASSNAME;
22549
22844
  UserBlock.defaultProps = DEFAULT_PROPS;
22550
22845
 
22551
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1w as CLASSNAME, COMPONENT_NAME$1y as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1e as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME$3 as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME$2 as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
22846
+ export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1w as CLASSNAME, COMPONENT_NAME$1z as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1e as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, DialogHeading, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME$3 as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME$3 as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
22552
22847
  //# sourceMappingURL=index.js.map