@lumx/react 4.17.0-next.1 → 4.17.0-next.3

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 +34 -37
  2. package/index.js +227 -191
  3. package/index.js.map +1 -1
  4. package/package.json +3 -3
package/index.js CHANGED
@@ -46,6 +46,7 @@ import range from 'lodash/range.js';
46
46
  import { mdiPlayCircleOutline } from '@lumx/icons/esm/play-circle-outline.js';
47
47
  import { mdiPauseCircleOutline } from '@lumx/icons/esm/pause-circle-outline.js';
48
48
  import chunk from 'lodash/chunk.js';
49
+ import { mdiDotsVertical } from '@lumx/icons/esm/dots-vertical.js';
49
50
  import take from 'lodash/take.js';
50
51
  import { mdiRadioboxBlank } from '@lumx/icons/esm/radiobox-blank.js';
51
52
  import { mdiRadioboxMarked } from '@lumx/icons/esm/radiobox-marked.js';
@@ -570,7 +571,7 @@ const {
570
571
  /**
571
572
  * Component default props.
572
573
  */
573
- const DEFAULT_PROPS$1h = {
574
+ const DEFAULT_PROPS$1i = {
574
575
  size: Size.tiny,
575
576
  kind: Kind.info
576
577
  };
@@ -592,8 +593,8 @@ const AlertDialog$1 = props => {
592
593
  cancelProps,
593
594
  confirmProps,
594
595
  ref,
595
- kind = DEFAULT_PROPS$1h.kind,
596
- size = DEFAULT_PROPS$1h.size,
596
+ kind = DEFAULT_PROPS$1i.kind,
597
+ size = DEFAULT_PROPS$1i.size,
597
598
  dialogProps,
598
599
  children,
599
600
  DescriptionElement,
@@ -733,7 +734,7 @@ const AlertDialog = forwardRef((props, ref) => {
733
734
  });
734
735
  AlertDialog.displayName = COMPONENT_NAME$1F;
735
736
  AlertDialog.className = CLASSNAME$1C;
736
- AlertDialog.defaultProps = DEFAULT_PROPS$1h;
737
+ AlertDialog.defaultProps = DEFAULT_PROPS$1i;
737
738
 
738
739
  /**
739
740
  * Hook focusing an element when defined and `focus` boolean `true`.
@@ -835,7 +836,7 @@ const CLASSNAME$1B = 'lumx-autocomplete';
835
836
  /**
836
837
  * Component default props.
837
838
  */
838
- const DEFAULT_PROPS$1g = {
839
+ const DEFAULT_PROPS$1h = {
839
840
  anchorToInput: false,
840
841
  closeOnClick: false,
841
842
  closeOnClickAway: true,
@@ -858,13 +859,13 @@ const Autocomplete = forwardRef((props, ref) => {
858
859
  otherProps
859
860
  } = useDisableStateProps(props);
860
861
  const {
861
- anchorToInput = DEFAULT_PROPS$1g.anchorToInput,
862
+ anchorToInput = DEFAULT_PROPS$1h.anchorToInput,
862
863
  children,
863
864
  chips,
864
865
  className,
865
- closeOnClick = DEFAULT_PROPS$1g.closeOnClick,
866
- closeOnClickAway = DEFAULT_PROPS$1g.closeOnClickAway,
867
- closeOnEscape = DEFAULT_PROPS$1g.closeOnEscape,
866
+ closeOnClick = DEFAULT_PROPS$1h.closeOnClick,
867
+ closeOnClickAway = DEFAULT_PROPS$1h.closeOnClickAway,
868
+ closeOnEscape = DEFAULT_PROPS$1h.closeOnEscape,
868
869
  error,
869
870
  fitToAnchorWidth,
870
871
  hasError,
@@ -885,7 +886,7 @@ const Autocomplete = forwardRef((props, ref) => {
885
886
  onInfiniteScroll,
886
887
  placeholder,
887
888
  placement,
888
- shouldFocusOnClose = DEFAULT_PROPS$1g.shouldFocusOnClose,
889
+ shouldFocusOnClose = DEFAULT_PROPS$1h.shouldFocusOnClose,
889
890
  theme = defaultTheme,
890
891
  value,
891
892
  textFieldProps = {},
@@ -940,7 +941,7 @@ const Autocomplete = forwardRef((props, ref) => {
940
941
  });
941
942
  Autocomplete.displayName = COMPONENT_NAME$1E;
942
943
  Autocomplete.className = CLASSNAME$1B;
943
- Autocomplete.defaultProps = DEFAULT_PROPS$1g;
944
+ Autocomplete.defaultProps = DEFAULT_PROPS$1h;
944
945
 
945
946
  /**
946
947
  * Component display name.
@@ -955,7 +956,7 @@ const CLASSNAME$1A = 'lumx-autocomplete-multiple';
955
956
  /**
956
957
  * Component default props.
957
958
  */
958
- const DEFAULT_PROPS$1f = {
959
+ const DEFAULT_PROPS$1g = {
959
960
  closeOnClickAway: true,
960
961
  closeOnEscape: true,
961
962
  selectedChipRender(choice, index, onClear, isDisabled) {
@@ -996,8 +997,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
996
997
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
997
998
  chipsAlignment,
998
999
  className,
999
- closeOnClickAway = DEFAULT_PROPS$1f.closeOnClickAway,
1000
- closeOnEscape = DEFAULT_PROPS$1f.closeOnEscape,
1000
+ closeOnClickAway = DEFAULT_PROPS$1g.closeOnClickAway,
1001
+ closeOnEscape = DEFAULT_PROPS$1g.closeOnEscape,
1001
1002
  fitToAnchorWidth,
1002
1003
  hasError,
1003
1004
  helper,
@@ -1019,12 +1020,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
1019
1020
  onKeyDown,
1020
1021
  placeholder,
1021
1022
  placement,
1022
- selectedChipRender = DEFAULT_PROPS$1f.selectedChipRender,
1023
+ selectedChipRender = DEFAULT_PROPS$1g.selectedChipRender,
1023
1024
  shouldFocusOnClose,
1024
1025
  theme = defaultTheme,
1025
1026
  type,
1026
1027
  value,
1027
- values = DEFAULT_PROPS$1f.values,
1028
+ values = DEFAULT_PROPS$1g.values,
1028
1029
  ...forwardedProps
1029
1030
  } = otherProps;
1030
1031
  return /*#__PURE__*/jsx(Autocomplete, {
@@ -1066,7 +1067,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
1066
1067
  });
1067
1068
  AutocompleteMultiple.displayName = COMPONENT_NAME$1D;
1068
1069
  AutocompleteMultiple.className = CLASSNAME$1A;
1069
- AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1f;
1070
+ AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1g;
1070
1071
 
1071
1072
  /**
1072
1073
  * Component display name.
@@ -1085,7 +1086,7 @@ const {
1085
1086
  /**
1086
1087
  * Component default props.
1087
1088
  */
1088
- const DEFAULT_PROPS$1e = {
1089
+ const DEFAULT_PROPS$1f = {
1089
1090
  size: Size.m
1090
1091
  };
1091
1092
 
@@ -1102,7 +1103,7 @@ const Avatar$1 = props => {
1102
1103
  badge,
1103
1104
  className,
1104
1105
  image,
1105
- size = DEFAULT_PROPS$1e.size,
1106
+ size = DEFAULT_PROPS$1f.size,
1106
1107
  theme,
1107
1108
  ref,
1108
1109
  ...forwardedProps
@@ -1143,7 +1144,7 @@ const Avatar = forwardRef((props, ref) => {
1143
1144
  linkAs,
1144
1145
  onClick,
1145
1146
  onKeyPress,
1146
- size = DEFAULT_PROPS$1e.size,
1147
+ size = DEFAULT_PROPS$1f.size,
1147
1148
  theme = defaultTheme,
1148
1149
  thumbnailProps,
1149
1150
  ...forwardedProps
@@ -1173,7 +1174,7 @@ const Avatar = forwardRef((props, ref) => {
1173
1174
  });
1174
1175
  Avatar.displayName = COMPONENT_NAME$1C;
1175
1176
  Avatar.className = CLASSNAME$1z;
1176
- Avatar.defaultProps = DEFAULT_PROPS$1e;
1177
+ Avatar.defaultProps = DEFAULT_PROPS$1f;
1177
1178
 
1178
1179
  /**
1179
1180
  * Component display name.
@@ -1191,7 +1192,7 @@ const {
1191
1192
  /**
1192
1193
  * Component default props.
1193
1194
  */
1194
- const DEFAULT_PROPS$1d = {
1195
+ const DEFAULT_PROPS$1e = {
1195
1196
  color: ColorPalette.primary
1196
1197
  };
1197
1198
 
@@ -1205,7 +1206,7 @@ const Badge$1 = props => {
1205
1206
  const {
1206
1207
  children,
1207
1208
  className,
1208
- color = DEFAULT_PROPS$1d.color,
1209
+ color = DEFAULT_PROPS$1e.color,
1209
1210
  ref,
1210
1211
  ...forwardedProps
1211
1212
  } = props;
@@ -1220,7 +1221,7 @@ const Badge$1 = props => {
1220
1221
  };
1221
1222
  Badge$1.displayName = COMPONENT_NAME$1B;
1222
1223
  Badge$1.className = CLASSNAME$1y;
1223
- Badge$1.defaultProps = DEFAULT_PROPS$1d;
1224
+ Badge$1.defaultProps = DEFAULT_PROPS$1e;
1224
1225
 
1225
1226
  /**
1226
1227
  * Defines the props of the component.
@@ -1446,7 +1447,7 @@ const {
1446
1447
  /**
1447
1448
  * Component default props.
1448
1449
  */
1449
- const DEFAULT_PROPS$1c = {
1450
+ const DEFAULT_PROPS$1d = {
1450
1451
  emphasis: Emphasis.high,
1451
1452
  size: Size.m
1452
1453
  };
@@ -1460,10 +1461,10 @@ const DEFAULT_PROPS$1c = {
1460
1461
  const Button$1 = props => {
1461
1462
  const {
1462
1463
  className,
1463
- emphasis = DEFAULT_PROPS$1c.emphasis,
1464
+ emphasis = DEFAULT_PROPS$1d.emphasis,
1464
1465
  leftIcon,
1465
1466
  rightIcon,
1466
- size = DEFAULT_PROPS$1c.size,
1467
+ size = DEFAULT_PROPS$1d.size,
1467
1468
  ...forwardedProps
1468
1469
  } = props;
1469
1470
  const buttonClassName = classnames(className, modifier({
@@ -1480,7 +1481,7 @@ const Button$1 = props => {
1480
1481
  };
1481
1482
  Button$1.displayName = COMPONENT_NAME$1y;
1482
1483
  Button$1.className = CLASSNAME$1w;
1483
- Button$1.defaultProps = DEFAULT_PROPS$1c;
1484
+ Button$1.defaultProps = DEFAULT_PROPS$1d;
1484
1485
 
1485
1486
  /**
1486
1487
  * Properties of a component to use to determine it's name.
@@ -1555,7 +1556,7 @@ const Button = forwardRef((props, ref) => {
1555
1556
  });
1556
1557
  Button.displayName = COMPONENT_NAME$1y;
1557
1558
  Button.className = CLASSNAME$1w;
1558
- Button.defaultProps = DEFAULT_PROPS$1c;
1559
+ Button.defaultProps = DEFAULT_PROPS$1d;
1559
1560
 
1560
1561
  const COMPONENT_NAME$1x = 'Icon';
1561
1562
  const IconClassName = 'lumx-icon';
@@ -1572,7 +1573,7 @@ const {
1572
1573
  /**
1573
1574
  * Component default props.
1574
1575
  */
1575
- const DEFAULT_PROPS$1b = {};
1576
+ const DEFAULT_PROPS$1c = {};
1576
1577
 
1577
1578
  /**
1578
1579
  * Icon component.
@@ -1652,7 +1653,7 @@ const Icon$1 = props => {
1652
1653
  };
1653
1654
  Icon$1.displayName = COMPONENT_NAME$1x;
1654
1655
  Icon$1.className = CLASSNAME$1v;
1655
- Icon$1.defaultProps = DEFAULT_PROPS$1b;
1656
+ Icon$1.defaultProps = DEFAULT_PROPS$1c;
1656
1657
 
1657
1658
  /**
1658
1659
  * Component display name.
@@ -1667,7 +1668,7 @@ const CLASSNAME$1u = 'lumx-icon-button';
1667
1668
  /**
1668
1669
  * Component default props.
1669
1670
  */
1670
- const DEFAULT_PROPS$1a = {
1671
+ const DEFAULT_PROPS$1b = {
1671
1672
  emphasis: Emphasis.high,
1672
1673
  size: Size.m
1673
1674
  };
@@ -1680,11 +1681,11 @@ const DEFAULT_PROPS$1a = {
1680
1681
  */
1681
1682
  const IconButton$1 = props => {
1682
1683
  const {
1683
- emphasis = DEFAULT_PROPS$1a.emphasis,
1684
+ emphasis = DEFAULT_PROPS$1b.emphasis,
1684
1685
  image,
1685
1686
  icon,
1686
1687
  label,
1687
- size = DEFAULT_PROPS$1a.size,
1688
+ size = DEFAULT_PROPS$1b.size,
1688
1689
  ...forwardedProps
1689
1690
  } = props;
1690
1691
  const defaultChildren = image ? /*#__PURE__*/jsx("img", {
@@ -1705,7 +1706,7 @@ const IconButton$1 = props => {
1705
1706
  };
1706
1707
  IconButton$1.displayName = COMPONENT_NAME$1w;
1707
1708
  IconButton$1.className = CLASSNAME$1u;
1708
- IconButton$1.defaultProps = DEFAULT_PROPS$1a;
1709
+ IconButton$1.defaultProps = DEFAULT_PROPS$1b;
1709
1710
 
1710
1711
  /**
1711
1712
  * IconButton component.
@@ -1750,7 +1751,7 @@ const IconButton = forwardRef((props, ref) => {
1750
1751
  });
1751
1752
  IconButton.displayName = COMPONENT_NAME$1w;
1752
1753
  IconButton.className = CLASSNAME$1u;
1753
- IconButton.defaultProps = DEFAULT_PROPS$1a;
1754
+ IconButton.defaultProps = DEFAULT_PROPS$1b;
1754
1755
 
1755
1756
  /**
1756
1757
  * Component display name.
@@ -1765,7 +1766,7 @@ const CLASSNAME$1t = 'lumx-button-group';
1765
1766
  /**
1766
1767
  * Component default props.
1767
1768
  */
1768
- const DEFAULT_PROPS$19 = {};
1769
+ const DEFAULT_PROPS$1a = {};
1769
1770
 
1770
1771
  /**
1771
1772
  * ButtonGroup component.
@@ -1787,7 +1788,7 @@ const ButtonGroup$1 = props => {
1787
1788
  };
1788
1789
  ButtonGroup$1.displayName = COMPONENT_NAME$1v;
1789
1790
  ButtonGroup$1.className = CLASSNAME$1t;
1790
- ButtonGroup$1.defaultProps = DEFAULT_PROPS$19;
1791
+ ButtonGroup$1.defaultProps = DEFAULT_PROPS$1a;
1791
1792
 
1792
1793
  /**
1793
1794
  * ButtonGroup component.
@@ -1804,7 +1805,7 @@ const ButtonGroup = forwardRef((props, ref) => {
1804
1805
  });
1805
1806
  ButtonGroup.displayName = COMPONENT_NAME$1v;
1806
1807
  ButtonGroup.className = CLASSNAME$1t;
1807
- ButtonGroup.defaultProps = DEFAULT_PROPS$19;
1808
+ ButtonGroup.defaultProps = DEFAULT_PROPS$1a;
1808
1809
 
1809
1810
  const COMPONENT_NAME$1u = 'InputLabel';
1810
1811
  const InputLabelClassName = 'lumx-input-label';
@@ -1812,7 +1813,7 @@ const CLASSNAME$1s = InputLabelClassName;
1812
1813
  const {
1813
1814
  block: block$16
1814
1815
  } = bem(CLASSNAME$1s);
1815
- const DEFAULT_PROPS$18 = {};
1816
+ const DEFAULT_PROPS$19 = {};
1816
1817
 
1817
1818
  /**
1818
1819
  * InputLabel component.
@@ -1844,7 +1845,7 @@ function InputLabel$1(props) {
1844
1845
  }
1845
1846
  InputLabel$1.displayName = COMPONENT_NAME$1u;
1846
1847
  InputLabel$1.className = CLASSNAME$1s;
1847
- InputLabel$1.defaultProps = DEFAULT_PROPS$18;
1848
+ InputLabel$1.defaultProps = DEFAULT_PROPS$19;
1848
1849
 
1849
1850
  const INPUT_HELPER_CONFIGURATION = {
1850
1851
  [Kind.error]: {
@@ -1873,7 +1874,7 @@ const {
1873
1874
  /**
1874
1875
  * Component default props.
1875
1876
  */
1876
- const DEFAULT_PROPS$17 = {
1877
+ const DEFAULT_PROPS$18 = {
1877
1878
  kind: Kind.info
1878
1879
  };
1879
1880
 
@@ -1884,7 +1885,7 @@ function InputHelper$1(props) {
1884
1885
  const {
1885
1886
  children,
1886
1887
  className,
1887
- kind = DEFAULT_PROPS$17.kind,
1888
+ kind = DEFAULT_PROPS$18.kind,
1888
1889
  theme,
1889
1890
  ref,
1890
1891
  ...forwardedProps
@@ -1904,7 +1905,7 @@ function InputHelper$1(props) {
1904
1905
  }
1905
1906
  InputHelper$1.displayName = COMPONENT_NAME$1t;
1906
1907
  InputHelper$1.className = CLASSNAME$1r;
1907
- InputHelper$1.defaultProps = DEFAULT_PROPS$17;
1908
+ InputHelper$1.defaultProps = DEFAULT_PROPS$18;
1908
1909
 
1909
1910
  const INTERMEDIATE_STATE = 'intermediate';
1910
1911
 
@@ -2019,7 +2020,7 @@ const Checkbox$1 = props => {
2019
2020
  /**
2020
2021
  * Component default props.
2021
2022
  */
2022
- const DEFAULT_PROPS$16 = {};
2023
+ const DEFAULT_PROPS$17 = {};
2023
2024
 
2024
2025
  /**
2025
2026
  * Checkbox component.
@@ -2081,7 +2082,7 @@ const Checkbox = forwardRef((props, ref) => {
2081
2082
  });
2082
2083
  Checkbox.displayName = COMPONENT_NAME$1s;
2083
2084
  Checkbox.className = CLASSNAME$1q;
2084
- Checkbox.defaultProps = DEFAULT_PROPS$16;
2085
+ Checkbox.defaultProps = DEFAULT_PROPS$17;
2085
2086
 
2086
2087
  /**
2087
2088
  * Wrap mouse event handler to stop event propagation.
@@ -2116,7 +2117,7 @@ const {
2116
2117
  /**
2117
2118
  * Component default props.
2118
2119
  */
2119
- const DEFAULT_PROPS$15 = {
2120
+ const DEFAULT_PROPS$16 = {
2120
2121
  size: Size.m
2121
2122
  };
2122
2123
 
@@ -2143,7 +2144,7 @@ const Chip$1 = props => {
2143
2144
  hasAfterClick,
2144
2145
  hasBeforeClick,
2145
2146
  hasOnClick,
2146
- size = DEFAULT_PROPS$15.size,
2147
+ size = DEFAULT_PROPS$16.size,
2147
2148
  theme,
2148
2149
  ref,
2149
2150
  href,
@@ -2265,7 +2266,7 @@ const Chip = forwardRef((props, ref) => {
2265
2266
  });
2266
2267
  Chip.displayName = COMPONENT_NAME$1r;
2267
2268
  Chip.className = CLASSNAME$1p;
2268
- Chip.defaultProps = DEFAULT_PROPS$15;
2269
+ Chip.defaultProps = DEFAULT_PROPS$16;
2269
2270
 
2270
2271
  /**
2271
2272
  * Component display name.
@@ -2280,7 +2281,7 @@ const CLASSNAME$1o = 'lumx-chip-group';
2280
2281
  /**
2281
2282
  * Component default props.
2282
2283
  */
2283
- const DEFAULT_PROPS$14 = {};
2284
+ const DEFAULT_PROPS$15 = {};
2284
2285
 
2285
2286
  /**
2286
2287
  * ChipGroup component.
@@ -2378,7 +2379,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
2378
2379
  });
2379
2380
  InternalChipGroup.displayName = COMPONENT_NAME$1q;
2380
2381
  InternalChipGroup.className = CLASSNAME$1o;
2381
- InternalChipGroup.defaultProps = DEFAULT_PROPS$14;
2382
+ InternalChipGroup.defaultProps = DEFAULT_PROPS$15;
2382
2383
  const ChipGroup = Object.assign(InternalChipGroup, {
2383
2384
  useChipGroupNavigation
2384
2385
  });
@@ -2721,7 +2722,7 @@ const {
2721
2722
  /**
2722
2723
  * Component default props.
2723
2724
  */
2724
- const DEFAULT_PROPS$13 = {};
2725
+ const DEFAULT_PROPS$14 = {};
2725
2726
 
2726
2727
  /**
2727
2728
  * Text component common props
@@ -2808,7 +2809,7 @@ const Text = forwardRef((props, ref) => {
2808
2809
  });
2809
2810
  Text.displayName = COMPONENT_NAME$1o;
2810
2811
  Text.className = CLASSNAME$1m;
2811
- Text.defaultProps = DEFAULT_PROPS$13;
2812
+ Text.defaultProps = DEFAULT_PROPS$14;
2812
2813
 
2813
2814
  /**
2814
2815
  * Custom positioning reference element.
@@ -4890,7 +4891,7 @@ const TOOLTIP_ZINDEX = 10000;
4890
4891
  /**
4891
4892
  * Component default props.
4892
4893
  */
4893
- const DEFAULT_PROPS$12 = {
4894
+ const DEFAULT_PROPS$13 = {
4894
4895
  placement: 'bottom',
4895
4896
  closeMode: 'unmount',
4896
4897
  ariaLinkMode: 'aria-describedby',
@@ -5254,11 +5255,11 @@ const Tooltip = forwardRef((props, ref) => {
5254
5255
  children,
5255
5256
  className,
5256
5257
  delay,
5257
- placement = DEFAULT_PROPS$12.placement,
5258
+ placement = DEFAULT_PROPS$13.placement,
5258
5259
  forceOpen,
5259
- closeMode = DEFAULT_PROPS$12.closeMode,
5260
- ariaLinkMode = DEFAULT_PROPS$12.ariaLinkMode,
5261
- zIndex = DEFAULT_PROPS$12.zIndex,
5260
+ closeMode = DEFAULT_PROPS$13.closeMode,
5261
+ ariaLinkMode = DEFAULT_PROPS$13.ariaLinkMode,
5262
+ zIndex = DEFAULT_PROPS$13.zIndex,
5262
5263
  ...forwardedProps
5263
5264
  } = props;
5264
5265
  // Disable in SSR.
@@ -5323,7 +5324,7 @@ const Tooltip = forwardRef((props, ref) => {
5323
5324
  });
5324
5325
  Tooltip.displayName = COMPONENT_NAME$1n;
5325
5326
  Tooltip.className = CLASSNAME$1l;
5326
- Tooltip.defaultProps = DEFAULT_PROPS$12;
5327
+ Tooltip.defaultProps = DEFAULT_PROPS$13;
5327
5328
 
5328
5329
  /** Create a pending navigation store; discards intent on abort. */
5329
5330
  function createPendingNavigation(signal) {
@@ -7730,7 +7731,7 @@ const {
7730
7731
  /**
7731
7732
  * Component default props.
7732
7733
  */
7733
- const DEFAULT_PROPS$11 = {
7734
+ const DEFAULT_PROPS$12 = {
7734
7735
  type: 'text'
7735
7736
  };
7736
7737
 
@@ -7747,7 +7748,7 @@ const RawInputText$1 = props => {
7747
7748
  handleInput,
7748
7749
  handleFocus,
7749
7750
  handleBlur,
7750
- type = DEFAULT_PROPS$11.type,
7751
+ type = DEFAULT_PROPS$12.type,
7751
7752
  name,
7752
7753
  ref,
7753
7754
  ...forwardedProps
@@ -7809,7 +7810,7 @@ const {
7809
7810
  /**
7810
7811
  * Component default props.
7811
7812
  */
7812
- const DEFAULT_PROPS$10 = {
7813
+ const DEFAULT_PROPS$11 = {
7813
7814
  rows: 2
7814
7815
  };
7815
7816
 
@@ -7826,7 +7827,7 @@ const RawInputTextarea$1 = props => {
7826
7827
  handleInput,
7827
7828
  handleFocus,
7828
7829
  handleBlur,
7829
- rows = DEFAULT_PROPS$10.rows,
7830
+ rows = DEFAULT_PROPS$11.rows,
7830
7831
  name,
7831
7832
  ref,
7832
7833
  ...forwardedProps
@@ -7902,8 +7903,8 @@ function useFitRowsToContent(minimumRows, textareaRef, value) {
7902
7903
  /**
7903
7904
  * Component default props.
7904
7905
  */
7905
- const DEFAULT_PROPS$$ = {
7906
- minimumRows: DEFAULT_PROPS$10.rows
7906
+ const DEFAULT_PROPS$10 = {
7907
+ minimumRows: DEFAULT_PROPS$11.rows
7907
7908
  };
7908
7909
 
7909
7910
  /**
@@ -7914,7 +7915,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
7914
7915
  const defaultTheme = useTheme() || Theme$1.light;
7915
7916
  const {
7916
7917
  theme = defaultTheme,
7917
- minimumRows = DEFAULT_PROPS$$.minimumRows,
7918
+ minimumRows = DEFAULT_PROPS$10.minimumRows,
7918
7919
  value,
7919
7920
  onChange,
7920
7921
  onFocus,
@@ -7938,7 +7939,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
7938
7939
  /**
7939
7940
  * Component default props.
7940
7941
  */
7941
- const DEFAULT_PROPS$_ = {
7942
+ const DEFAULT_PROPS$$ = {
7942
7943
  type: 'text'
7943
7944
  };
7944
7945
 
@@ -7982,7 +7983,7 @@ const TextField = forwardRef((props, ref) => {
7982
7983
  placeholder,
7983
7984
  textFieldRef,
7984
7985
  theme = defaultTheme,
7985
- type = DEFAULT_PROPS$_.type,
7986
+ type = DEFAULT_PROPS$$.type,
7986
7987
  value,
7987
7988
  afterElement,
7988
7989
  ...forwardedProps
@@ -8089,7 +8090,7 @@ const TextField = forwardRef((props, ref) => {
8089
8090
  });
8090
8091
  TextField.displayName = COMPONENT_NAME$1k;
8091
8092
  TextField.className = CLASSNAME$1i;
8092
- TextField.defaultProps = DEFAULT_PROPS$_;
8093
+ TextField.defaultProps = DEFAULT_PROPS$$;
8093
8094
 
8094
8095
  /**
8095
8096
  * Props for Combobox.Input component.
@@ -8189,7 +8190,7 @@ const {
8189
8190
  /**
8190
8191
  * Component default props.
8191
8192
  */
8192
- const DEFAULT_PROPS$Z = {};
8193
+ const DEFAULT_PROPS$_ = {};
8193
8194
 
8194
8195
  /**
8195
8196
  * List component.
@@ -8216,7 +8217,7 @@ const List$1 = props => {
8216
8217
  };
8217
8218
  List$1.displayName = COMPONENT_NAME$1j;
8218
8219
  List$1.className = CLASSNAME$1h;
8219
- List$1.defaultProps = DEFAULT_PROPS$Z;
8220
+ List$1.defaultProps = DEFAULT_PROPS$_;
8220
8221
 
8221
8222
  /**
8222
8223
  * Popup type for the combobox listbox.
@@ -8368,7 +8369,7 @@ const {
8368
8369
  /**
8369
8370
  * Component default props.
8370
8371
  */
8371
- const DEFAULT_PROPS$Y = {
8372
+ const DEFAULT_PROPS$Z = {
8372
8373
  size: Size.regular
8373
8374
  };
8374
8375
 
@@ -8392,7 +8393,7 @@ const ListItem$1 = props => {
8392
8393
  linkProps = {},
8393
8394
  linkRef,
8394
8395
  handleClick,
8395
- size = DEFAULT_PROPS$Y.size,
8396
+ size = DEFAULT_PROPS$Z.size,
8396
8397
  ref,
8397
8398
  ...forwardedProps
8398
8399
  } = props;
@@ -8432,7 +8433,7 @@ const ListItem$1 = props => {
8432
8433
  };
8433
8434
  ListItem$1.displayName = COMPONENT_NAME$1h;
8434
8435
  ListItem$1.className = CLASSNAME$1f;
8435
- ListItem$1.defaultProps = DEFAULT_PROPS$Y;
8436
+ ListItem$1.defaultProps = DEFAULT_PROPS$Z;
8436
8437
 
8437
8438
  /**
8438
8439
  * ListItemAction props.
@@ -8447,7 +8448,7 @@ const COMPONENT_NAME$1g = 'ListItemAction';
8447
8448
  * Component classname (used by action area CSS pattern).
8448
8449
  */
8449
8450
  const CLASSNAME$1e = 'lumx-action-area__action';
8450
- const DEFAULT_PROPS$X = {};
8451
+ const DEFAULT_PROPS$Y = {};
8451
8452
 
8452
8453
  /**
8453
8454
  * ListItemAction component.
@@ -9108,7 +9109,7 @@ const {
9108
9109
  /**
9109
9110
  * Component default props (used by framework wrappers).
9110
9111
  */
9111
- const DEFAULT_PROPS$W = {
9112
+ const DEFAULT_PROPS$X = {
9112
9113
  closeMode: 'unmount',
9113
9114
  elevation: 3,
9114
9115
  placement: Placement.AUTO,
@@ -9132,8 +9133,8 @@ const Popover$1 = (props, {
9132
9133
  as: asTag = 'div',
9133
9134
  children,
9134
9135
  className,
9135
- closeMode = DEFAULT_PROPS$W.closeMode,
9136
- elevation = DEFAULT_PROPS$W.elevation,
9136
+ closeMode = DEFAULT_PROPS$X.closeMode,
9137
+ elevation = DEFAULT_PROPS$X.elevation,
9137
9138
  hasArrow,
9138
9139
  isOpen,
9139
9140
  position,
@@ -9143,7 +9144,7 @@ const Popover$1 = (props, {
9143
9144
  // Framework-specific
9144
9145
  ref,
9145
9146
  arrowRef,
9146
- usePortal = DEFAULT_PROPS$W.usePortal,
9147
+ usePortal = DEFAULT_PROPS$X.usePortal,
9147
9148
  clickAwayCallback,
9148
9149
  clickAwayRefs,
9149
9150
  unmountSentinel,
@@ -9482,27 +9483,27 @@ const _InnerPopover = forwardRef((props, ref) => {
9482
9483
  as,
9483
9484
  children,
9484
9485
  className,
9485
- closeMode = DEFAULT_PROPS$W.closeMode,
9486
+ closeMode = DEFAULT_PROPS$X.closeMode,
9486
9487
  closeOnClickAway,
9487
9488
  closeOnEscape,
9488
- elevation = DEFAULT_PROPS$W.elevation,
9489
+ elevation = DEFAULT_PROPS$X.elevation,
9489
9490
  focusElement,
9490
9491
  hasArrow,
9491
9492
  isOpen,
9492
9493
  onClose,
9493
9494
  parentElement,
9494
- usePortal = DEFAULT_PROPS$W.usePortal,
9495
- focusAnchorOnClose = DEFAULT_PROPS$W.focusAnchorOnClose,
9495
+ usePortal = DEFAULT_PROPS$X.usePortal,
9496
+ focusAnchorOnClose = DEFAULT_PROPS$X.focusAnchorOnClose,
9496
9497
  withFocusTrap,
9497
9498
  boundaryRef,
9498
9499
  fitToAnchorWidth,
9499
9500
  fitWithinViewportHeight,
9500
9501
  focusTrapZoneElement,
9501
9502
  offset,
9502
- placement = DEFAULT_PROPS$W.placement,
9503
+ placement = DEFAULT_PROPS$X.placement,
9503
9504
  style,
9504
9505
  theme,
9505
- zIndex = DEFAULT_PROPS$W.zIndex,
9506
+ zIndex = DEFAULT_PROPS$X.zIndex,
9506
9507
  ...forwardedProps
9507
9508
  } = props;
9508
9509
  const popoverRef = useRef(null);
@@ -9576,7 +9577,7 @@ const Popover = skipRender(
9576
9577
  () => Boolean(DOCUMENT), _InnerPopover);
9577
9578
  Popover.displayName = COMPONENT_NAME$1c;
9578
9579
  Popover.className = CLASSNAME$1a;
9579
- Popover.defaultProps = DEFAULT_PROPS$W;
9580
+ Popover.defaultProps = DEFAULT_PROPS$X;
9580
9581
 
9581
9582
  /**
9582
9583
  * Props for Combobox.OptionMoreInfo component.
@@ -10059,7 +10060,7 @@ const {
10059
10060
  /**
10060
10061
  * Component default props.
10061
10062
  */
10062
- const DEFAULT_PROPS$V = {};
10063
+ const DEFAULT_PROPS$W = {};
10063
10064
 
10064
10065
  /**
10065
10066
  * ListSection component.
@@ -10103,7 +10104,7 @@ const ListSection$1 = props => {
10103
10104
  };
10104
10105
  ListSection$1.displayName = COMPONENT_NAME$16;
10105
10106
  ListSection$1.className = CLASSNAME$14;
10106
- ListSection$1.defaultProps = DEFAULT_PROPS$V;
10107
+ ListSection$1.defaultProps = DEFAULT_PROPS$W;
10107
10108
 
10108
10109
  /**
10109
10110
  * Defines the props of the component.
@@ -10127,7 +10128,7 @@ const ListSection = forwardRef((props, ref) => {
10127
10128
  });
10128
10129
  ListSection.displayName = COMPONENT_NAME$16;
10129
10130
  ListSection.className = CLASSNAME$14;
10130
- ListSection.defaultProps = DEFAULT_PROPS$V;
10131
+ ListSection.defaultProps = DEFAULT_PROPS$W;
10131
10132
 
10132
10133
  /**
10133
10134
  * Props for Combobox.Section component.
@@ -10376,7 +10377,7 @@ const {
10376
10377
  /**
10377
10378
  * Component default props.
10378
10379
  */
10379
- const DEFAULT_PROPS$U = {
10380
+ const DEFAULT_PROPS$V = {
10380
10381
  gap: Size.big,
10381
10382
  orientation: Orientation.horizontal
10382
10383
  };
@@ -10400,10 +10401,10 @@ const GenericBlock$1 = props => {
10400
10401
  children,
10401
10402
  actions,
10402
10403
  actionsProps,
10403
- gap = DEFAULT_PROPS$U.gap,
10404
+ gap = DEFAULT_PROPS$V.gap,
10404
10405
  ref,
10405
10406
  content,
10406
- orientation = DEFAULT_PROPS$U.orientation,
10407
+ orientation = DEFAULT_PROPS$V.orientation,
10407
10408
  contentProps,
10408
10409
  FlexBox,
10409
10410
  ...forwardedProps
@@ -10515,7 +10516,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
10515
10516
  });
10516
10517
  BaseGenericBlock.displayName = COMPONENT_NAME$14;
10517
10518
  BaseGenericBlock.className = CLASSNAME$12;
10518
- BaseGenericBlock.defaultProps = DEFAULT_PROPS$U;
10519
+ BaseGenericBlock.defaultProps = DEFAULT_PROPS$V;
10519
10520
  const GenericBlock = Object.assign(BaseGenericBlock, {
10520
10521
  Figure,
10521
10522
  Content,
@@ -10609,7 +10610,7 @@ const CLASSNAME$11 = 'lumx-list-divider';
10609
10610
  /**
10610
10611
  * Component default props.
10611
10612
  */
10612
- const DEFAULT_PROPS$T = {};
10613
+ const DEFAULT_PROPS$U = {};
10613
10614
 
10614
10615
  /**
10615
10616
  * ListDivider component.
@@ -10633,7 +10634,7 @@ const ListDivider$1 = props => {
10633
10634
  };
10634
10635
  ListDivider$1.displayName = COMPONENT_NAME$13;
10635
10636
  ListDivider$1.className = CLASSNAME$11;
10636
- ListDivider$1.defaultProps = DEFAULT_PROPS$T;
10637
+ ListDivider$1.defaultProps = DEFAULT_PROPS$U;
10637
10638
 
10638
10639
  /**
10639
10640
  * Defines the props of the component.
@@ -10655,7 +10656,7 @@ const ListDivider = forwardRef((props, ref) => {
10655
10656
  });
10656
10657
  ListDivider.displayName = COMPONENT_NAME$13;
10657
10658
  ListDivider.className = CLASSNAME$11;
10658
- ListDivider.defaultProps = DEFAULT_PROPS$T;
10659
+ ListDivider.defaultProps = DEFAULT_PROPS$U;
10659
10660
 
10660
10661
  /**
10661
10662
  * Combobox compound component namespace.
@@ -10718,7 +10719,7 @@ const {
10718
10719
  /**
10719
10720
  * Component default props.
10720
10721
  */
10721
- const DEFAULT_PROPS$S = {
10722
+ const DEFAULT_PROPS$T = {
10722
10723
  variant: CommentBlockVariant.indented
10723
10724
  };
10724
10725
 
@@ -10748,7 +10749,7 @@ const CommentBlock = forwardRef((props, ref) => {
10748
10749
  onMouseLeave,
10749
10750
  text,
10750
10751
  theme = defaultTheme,
10751
- variant = DEFAULT_PROPS$S.variant,
10752
+ variant = DEFAULT_PROPS$T.variant,
10752
10753
  ...forwardedProps
10753
10754
  } = props;
10754
10755
  const hasChildren = Children.count(children) > 0;
@@ -10817,7 +10818,7 @@ const CommentBlock = forwardRef((props, ref) => {
10817
10818
  });
10818
10819
  CommentBlock.displayName = COMPONENT_NAME$12;
10819
10820
  CommentBlock.className = CLASSNAME$10;
10820
- CommentBlock.defaultProps = DEFAULT_PROPS$S;
10821
+ CommentBlock.defaultProps = DEFAULT_PROPS$T;
10821
10822
 
10822
10823
  /**
10823
10824
  * Add a number of months from a date while resetting the day to prevent month length mismatches.
@@ -11720,7 +11721,7 @@ const {
11720
11721
  /**
11721
11722
  * Component default props.
11722
11723
  */
11723
- const DEFAULT_PROPS$R = {
11724
+ const DEFAULT_PROPS$S = {
11724
11725
  size: Size.big
11725
11726
  };
11726
11727
 
@@ -11743,7 +11744,7 @@ const Dialog$1 = props => {
11743
11744
  isOpen,
11744
11745
  handleClose,
11745
11746
  contentRef,
11746
- size = DEFAULT_PROPS$R.size,
11747
+ size = DEFAULT_PROPS$S.size,
11747
11748
  zIndex,
11748
11749
  dialogProps,
11749
11750
  headerChildContent,
@@ -11847,7 +11848,7 @@ const isFooter$1 = isComponent('footer');
11847
11848
  /**
11848
11849
  * Component default props.
11849
11850
  */
11850
- const DEFAULT_PROPS$Q = {
11851
+ const DEFAULT_PROPS$R = {
11851
11852
  closeMode: 'unmount',
11852
11853
  size: Size$1.big,
11853
11854
  disableBodyScroll: true
@@ -11868,7 +11869,7 @@ const Dialog = forwardRef((props, ref) => {
11868
11869
  const {
11869
11870
  children,
11870
11871
  className,
11871
- closeMode = DEFAULT_PROPS$Q.closeMode,
11872
+ closeMode = DEFAULT_PROPS$R.closeMode,
11872
11873
  header,
11873
11874
  focusElement,
11874
11875
  forceFooterDivider,
@@ -11880,11 +11881,11 @@ const Dialog = forwardRef((props, ref) => {
11880
11881
  parentElement,
11881
11882
  contentRef,
11882
11883
  preventAutoClose,
11883
- size = DEFAULT_PROPS$Q.size,
11884
+ size = DEFAULT_PROPS$R.size,
11884
11885
  zIndex,
11885
11886
  dialogProps,
11886
11887
  onVisibilityChange,
11887
- disableBodyScroll = DEFAULT_PROPS$Q.disableBodyScroll,
11888
+ disableBodyScroll = DEFAULT_PROPS$R.disableBodyScroll,
11888
11889
  preventCloseOnClick,
11889
11890
  preventCloseOnEscape,
11890
11891
  ...forwardedProps
@@ -11990,7 +11991,7 @@ const Dialog = forwardRef((props, ref) => {
11990
11991
  });
11991
11992
  Dialog.displayName = COMPONENT_NAME$_;
11992
11993
  Dialog.className = CLASSNAME$_;
11993
- Dialog.defaultProps = DEFAULT_PROPS$Q;
11994
+ Dialog.defaultProps = DEFAULT_PROPS$R;
11994
11995
 
11995
11996
  /**
11996
11997
  * Component display name.
@@ -12034,7 +12035,7 @@ const Divider$1 = props => {
12034
12035
  /**
12035
12036
  * Component default props.
12036
12037
  */
12037
- const DEFAULT_PROPS$P = {};
12038
+ const DEFAULT_PROPS$Q = {};
12038
12039
 
12039
12040
  /**
12040
12041
  * Divider component.
@@ -12057,7 +12058,7 @@ const Divider = forwardRef((props, ref) => {
12057
12058
  });
12058
12059
  Divider.displayName = COMPONENT_NAME$Z;
12059
12060
  Divider.className = CLASSNAME$Z;
12060
- Divider.defaultProps = DEFAULT_PROPS$P;
12061
+ Divider.defaultProps = DEFAULT_PROPS$Q;
12061
12062
 
12062
12063
  /**
12063
12064
  * Component display name.
@@ -12106,7 +12107,7 @@ const DragHandle$1 = props => {
12106
12107
  /**
12107
12108
  * Component default props.
12108
12109
  */
12109
- const DEFAULT_PROPS$O = {};
12110
+ const DEFAULT_PROPS$P = {};
12110
12111
 
12111
12112
  /**
12112
12113
  * DragHandle component.
@@ -12129,7 +12130,7 @@ const DragHandle = forwardRef((props, ref) => {
12129
12130
  });
12130
12131
  DragHandle.displayName = COMPONENT_NAME$Y;
12131
12132
  DragHandle.className = CLASSNAME$Y;
12132
- DragHandle.defaultProps = DEFAULT_PROPS$O;
12133
+ DragHandle.defaultProps = DEFAULT_PROPS$P;
12133
12134
 
12134
12135
  const INITIAL_INDEX = -1;
12135
12136
 
@@ -12325,7 +12326,7 @@ const InternalList = forwardRef((props, ref) => {
12325
12326
  });
12326
12327
  InternalList.displayName = COMPONENT_NAME$1j;
12327
12328
  InternalList.className = CLASSNAME$1h;
12328
- InternalList.defaultProps = DEFAULT_PROPS$Z;
12329
+ InternalList.defaultProps = DEFAULT_PROPS$_;
12329
12330
  const List = Object.assign(InternalList, {
12330
12331
  useKeyboardListNavigation
12331
12332
  });
@@ -12388,7 +12389,7 @@ const {
12388
12389
  /**
12389
12390
  * Component default props.
12390
12391
  */
12391
- const DEFAULT_PROPS$N = {
12392
+ const DEFAULT_PROPS$O = {
12392
12393
  closeOnClick: true,
12393
12394
  closeOnClickAway: true,
12394
12395
  closeOnEscape: true,
@@ -12411,18 +12412,18 @@ const Dropdown = forwardRef((props, ref) => {
12411
12412
  anchorRef,
12412
12413
  children,
12413
12414
  className,
12414
- closeOnClick = DEFAULT_PROPS$N.closeOnClick,
12415
- closeOnClickAway = DEFAULT_PROPS$N.closeOnClickAway,
12416
- closeOnEscape = DEFAULT_PROPS$N.closeOnEscape,
12417
- fitToAnchorWidth = DEFAULT_PROPS$N.fitToAnchorWidth,
12418
- fitWithinViewportHeight = DEFAULT_PROPS$N.fitWithinViewportHeight,
12415
+ closeOnClick = DEFAULT_PROPS$O.closeOnClick,
12416
+ closeOnClickAway = DEFAULT_PROPS$O.closeOnClickAway,
12417
+ closeOnEscape = DEFAULT_PROPS$O.closeOnEscape,
12418
+ fitToAnchorWidth = DEFAULT_PROPS$O.fitToAnchorWidth,
12419
+ fitWithinViewportHeight = DEFAULT_PROPS$O.fitWithinViewportHeight,
12419
12420
  isOpen,
12420
12421
  offset,
12421
- focusAnchorOnClose = DEFAULT_PROPS$N.focusAnchorOnClose,
12422
+ focusAnchorOnClose = DEFAULT_PROPS$O.focusAnchorOnClose,
12422
12423
  onClose,
12423
12424
  onInfiniteScroll,
12424
- placement = DEFAULT_PROPS$N.placement,
12425
- shouldFocusOnOpen = DEFAULT_PROPS$N.shouldFocusOnOpen,
12425
+ placement = DEFAULT_PROPS$O.placement,
12426
+ shouldFocusOnOpen = DEFAULT_PROPS$O.shouldFocusOnOpen,
12426
12427
  zIndex,
12427
12428
  ...forwardedProps
12428
12429
  } = props;
@@ -12468,7 +12469,7 @@ const Dropdown = forwardRef((props, ref) => {
12468
12469
  });
12469
12470
  Dropdown.displayName = COMPONENT_NAME$X;
12470
12471
  Dropdown.className = CLASSNAME$X;
12471
- Dropdown.defaultProps = DEFAULT_PROPS$N;
12472
+ Dropdown.defaultProps = DEFAULT_PROPS$O;
12472
12473
 
12473
12474
  /**
12474
12475
  * Component display name.
@@ -12487,7 +12488,7 @@ const {
12487
12488
  /**
12488
12489
  * Component default props.
12489
12490
  */
12490
- const DEFAULT_PROPS$M = {
12491
+ const DEFAULT_PROPS$N = {
12491
12492
  closeMode: 'unmount'
12492
12493
  };
12493
12494
 
@@ -12600,7 +12601,7 @@ const isFooter = isComponent('footer');
12600
12601
  const ExpansionPanel = forwardRef((props, ref) => {
12601
12602
  const defaultTheme = useTheme() || Theme$1.light;
12602
12603
  const {
12603
- closeMode = DEFAULT_PROPS$M.closeMode,
12604
+ closeMode = DEFAULT_PROPS$N.closeMode,
12604
12605
  children: anyChildren,
12605
12606
  isOpen,
12606
12607
  label,
@@ -12673,11 +12674,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
12673
12674
  });
12674
12675
  ExpansionPanel.displayName = COMPONENT_NAME$W;
12675
12676
  ExpansionPanel.className = CLASSNAME$W;
12676
- ExpansionPanel.defaultProps = DEFAULT_PROPS$M;
12677
+ ExpansionPanel.defaultProps = DEFAULT_PROPS$N;
12677
12678
 
12678
12679
  const COMPONENT_NAME$V = 'Flag';
12679
12680
  const CLASSNAME$V = 'lumx-flag';
12680
- const DEFAULT_PROPS$L = {};
12681
+ const DEFAULT_PROPS$M = {};
12681
12682
  const {
12682
12683
  block: block$H,
12683
12684
  element: element$y
@@ -12741,7 +12742,7 @@ const Flag = forwardRef((props, ref) => {
12741
12742
  });
12742
12743
  Flag.displayName = COMPONENT_NAME$V;
12743
12744
  Flag.className = CLASSNAME$V;
12744
- Flag.defaultProps = DEFAULT_PROPS$L;
12745
+ Flag.defaultProps = DEFAULT_PROPS$M;
12745
12746
 
12746
12747
  /** The maximum authorized heading level. */
12747
12748
  const MAX_HEADING_LEVEL = 6;
@@ -12779,7 +12780,7 @@ const CLASSNAME$U = 'lumx-heading';
12779
12780
  /**
12780
12781
  * Component default props.
12781
12782
  */
12782
- const DEFAULT_PROPS$K = {};
12783
+ const DEFAULT_PROPS$L = {};
12783
12784
 
12784
12785
  /**
12785
12786
  * Get Heading component common props
@@ -12839,7 +12840,7 @@ const Heading = forwardRef((props, ref) => {
12839
12840
  });
12840
12841
  Heading.displayName = COMPONENT_NAME$U;
12841
12842
  Heading.className = CLASSNAME$U;
12842
- Heading.defaultProps = DEFAULT_PROPS$K;
12843
+ Heading.defaultProps = DEFAULT_PROPS$L;
12843
12844
 
12844
12845
  /**
12845
12846
  * Computes the next heading level based on the optional prop level or the parent context level.
@@ -12890,7 +12891,7 @@ const {
12890
12891
  /**
12891
12892
  * Component default props.
12892
12893
  */
12893
- const DEFAULT_PROPS$J = {
12894
+ const DEFAULT_PROPS$K = {
12894
12895
  orientation: Orientation$1.horizontal,
12895
12896
  wrap: 'nowrap'
12896
12897
  };
@@ -12908,9 +12909,9 @@ const Grid = forwardRef((props, ref) => {
12908
12909
  className,
12909
12910
  gutter,
12910
12911
  hAlign,
12911
- orientation = DEFAULT_PROPS$J.orientation,
12912
+ orientation = DEFAULT_PROPS$K.orientation,
12912
12913
  vAlign,
12913
- wrap = DEFAULT_PROPS$J.wrap,
12914
+ wrap = DEFAULT_PROPS$K.wrap,
12914
12915
  ...forwardedProps
12915
12916
  } = props;
12916
12917
  return /*#__PURE__*/jsx("div", {
@@ -12928,7 +12929,7 @@ const Grid = forwardRef((props, ref) => {
12928
12929
  });
12929
12930
  Grid.displayName = COMPONENT_NAME$T;
12930
12931
  Grid.className = CLASSNAME$T;
12931
- Grid.defaultProps = DEFAULT_PROPS$J;
12932
+ Grid.defaultProps = DEFAULT_PROPS$K;
12932
12933
 
12933
12934
  /**
12934
12935
  * Component display name.
@@ -12986,7 +12987,7 @@ const CLASSNAME$R = 'lumx-grid-column';
12986
12987
  /**
12987
12988
  * Component default props.
12988
12989
  */
12989
- const DEFAULT_PROPS$I = {};
12990
+ const DEFAULT_PROPS$J = {};
12990
12991
 
12991
12992
  /**
12992
12993
  * The GridColumn is a layout component that can display children in a grid
@@ -13023,7 +13024,7 @@ const GridColumn$1 = props => {
13023
13024
  };
13024
13025
  GridColumn$1.displayName = COMPONENT_NAME$R;
13025
13026
  GridColumn$1.className = CLASSNAME$R;
13026
- GridColumn$1.defaultProps = DEFAULT_PROPS$I;
13027
+ GridColumn$1.defaultProps = DEFAULT_PROPS$J;
13027
13028
 
13028
13029
  /**
13029
13030
  * Defines the props of the component.
@@ -13034,7 +13035,7 @@ GridColumn$1.defaultProps = DEFAULT_PROPS$I;
13034
13035
  /**
13035
13036
  * Component default props.
13036
13037
  */
13037
- const DEFAULT_PROPS$H = {};
13038
+ const DEFAULT_PROPS$I = {};
13038
13039
 
13039
13040
  /**
13040
13041
  * The GridColumn is a layout component that can display children in a grid
@@ -13053,7 +13054,7 @@ const GridColumn = forwardRef((props, ref) => {
13053
13054
  });
13054
13055
  GridColumn.displayName = COMPONENT_NAME$R;
13055
13056
  GridColumn.className = CLASSNAME$R;
13056
- GridColumn.defaultProps = DEFAULT_PROPS$H;
13057
+ GridColumn.defaultProps = DEFAULT_PROPS$I;
13057
13058
 
13058
13059
  /**
13059
13060
  * Image block variants.
@@ -13088,7 +13089,7 @@ const {
13088
13089
  /**
13089
13090
  * Component default props.
13090
13091
  */
13091
- const DEFAULT_PROPS$G = {
13092
+ const DEFAULT_PROPS$H = {
13092
13093
  captionPosition: ImageBlockCaptionPosition.below,
13093
13094
  align: Alignment.left
13094
13095
  };
@@ -13103,9 +13104,9 @@ const DEFAULT_PROPS$G = {
13103
13104
  const ImageBlock$1 = props => {
13104
13105
  const {
13105
13106
  actions,
13106
- align = DEFAULT_PROPS$G.align,
13107
+ align = DEFAULT_PROPS$H.align,
13107
13108
  alt,
13108
- captionPosition = DEFAULT_PROPS$G.captionPosition,
13109
+ captionPosition = DEFAULT_PROPS$H.captionPosition,
13109
13110
  captionStyle,
13110
13111
  className,
13111
13112
  description,
@@ -13277,7 +13278,7 @@ const ImageBlock = forwardRef((props, ref) => {
13277
13278
  });
13278
13279
  ImageBlock.displayName = COMPONENT_NAME$Q;
13279
13280
  ImageBlock.className = CLASSNAME$Q;
13280
- ImageBlock.defaultProps = DEFAULT_PROPS$G;
13281
+ ImageBlock.defaultProps = DEFAULT_PROPS$H;
13281
13282
 
13282
13283
  /**
13283
13284
  * Component display name.
@@ -14031,7 +14032,7 @@ const {
14031
14032
  /**
14032
14033
  * Component default props.
14033
14034
  */
14034
- const DEFAULT_PROPS$F = {};
14035
+ const DEFAULT_PROPS$G = {};
14035
14036
 
14036
14037
  /**
14037
14038
  * InlineList component.
@@ -14080,7 +14081,7 @@ const InlineList$1 = props => {
14080
14081
  };
14081
14082
  InlineList$1.displayName = COMPONENT_NAME$O;
14082
14083
  InlineList$1.className = CLASSNAME$O;
14083
- InlineList$1.defaultProps = DEFAULT_PROPS$F;
14084
+ InlineList$1.defaultProps = DEFAULT_PROPS$G;
14084
14085
 
14085
14086
  /**
14086
14087
  * Defines the props of the component.
@@ -14106,7 +14107,7 @@ const InlineList = forwardRef((props, ref) => {
14106
14107
  });
14107
14108
  InlineList.displayName = COMPONENT_NAME$O;
14108
14109
  InlineList.className = CLASSNAME$O;
14109
- InlineList.defaultProps = DEFAULT_PROPS$F;
14110
+ InlineList.defaultProps = DEFAULT_PROPS$G;
14110
14111
 
14111
14112
  /**
14112
14113
  * InputHelper component.
@@ -14465,7 +14466,7 @@ const {
14465
14466
  /**
14466
14467
  * Component default props.
14467
14468
  */
14468
- const DEFAULT_PROPS$E = {
14469
+ const DEFAULT_PROPS$F = {
14469
14470
  size: Size.regular,
14470
14471
  titleHeading: 'h2'
14471
14472
  };
@@ -14484,7 +14485,7 @@ const LinkPreview$1 = props => {
14484
14485
  link,
14485
14486
  linkAs,
14486
14487
  linkProps,
14487
- size = DEFAULT_PROPS$E.size,
14488
+ size = DEFAULT_PROPS$F.size,
14488
14489
  theme,
14489
14490
  thumbnailProps,
14490
14491
  ref,
@@ -14572,7 +14573,7 @@ const LinkPreview = forwardRef((props, ref) => {
14572
14573
  const defaultTheme = useTheme() || Theme$1.light;
14573
14574
  const {
14574
14575
  theme = defaultTheme,
14575
- titleHeading = DEFAULT_PROPS$E.titleHeading,
14576
+ titleHeading = DEFAULT_PROPS$F.titleHeading,
14576
14577
  ...forwardedProps
14577
14578
  } = props;
14578
14579
  // Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
@@ -14588,7 +14589,7 @@ const LinkPreview = forwardRef((props, ref) => {
14588
14589
  });
14589
14590
  LinkPreview.displayName = COMPONENT_NAME$L;
14590
14591
  LinkPreview.className = CLASSNAME$L;
14591
- LinkPreview.defaultProps = DEFAULT_PROPS$E;
14592
+ LinkPreview.defaultProps = DEFAULT_PROPS$F;
14592
14593
 
14593
14594
  /**
14594
14595
  * ListItem.Action props.
@@ -14621,7 +14622,7 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
14621
14622
  }), {
14622
14623
  displayName: COMPONENT_NAME$1g,
14623
14624
  className: CLASSNAME$1e,
14624
- defaultProps: DEFAULT_PROPS$X
14625
+ defaultProps: DEFAULT_PROPS$Y
14625
14626
  });
14626
14627
 
14627
14628
  /**
@@ -14661,7 +14662,7 @@ const _ListItem = forwardRef((props, ref) => {
14661
14662
  });
14662
14663
  _ListItem.displayName = COMPONENT_NAME$1h;
14663
14664
  _ListItem.className = CLASSNAME$1f;
14664
- _ListItem.defaultProps = DEFAULT_PROPS$Y;
14665
+ _ListItem.defaultProps = DEFAULT_PROPS$Z;
14665
14666
 
14666
14667
  /**
14667
14668
  * ListItem component with Action sub-component.
@@ -14705,27 +14706,59 @@ const ListSubheader = forwardRef((props, ref) => {
14705
14706
  ListSubheader.displayName = COMPONENT_NAME$K;
14706
14707
  ListSubheader.className = CLASSNAME$K;
14707
14708
 
14709
+ const DEFAULT_PROPS$E = {
14710
+ variant: 'button'
14711
+ };
14712
+
14713
+ /** ARIA keys set by MenuButton on the trigger — omitted from variant component props. */
14714
+
14715
+ /** Per-variant keys internally managed by MenuButton — omitted from variant component props. */
14716
+
14717
+ /** Discriminated union of MenuButton props across all trigger variants. */
14718
+
14708
14719
  const COMPONENT_NAME$J = 'MenuButton';
14709
14720
 
14710
14721
  /** Menu button core template (composition of menu provider, trigger, popover and list) */
14711
14722
  const MenuButton$1 = (props, {
14712
- Menu
14723
+ MenuProvider,
14724
+ MenuTrigger,
14725
+ MenuPopover,
14726
+ MenuList
14713
14727
  }) => {
14714
14728
  const {
14715
14729
  label,
14716
14730
  children,
14717
14731
  triggerProps,
14718
14732
  popoverProps,
14719
- onOpen
14733
+ onOpen,
14734
+ variant
14720
14735
  } = props;
14721
- return /*#__PURE__*/jsxs(Menu.Provider, {
14736
+ const extraTriggerProps = {};
14737
+ if (variant === 'chip') {
14738
+ // Chip render as clickable (since the component cannot detect this automatically)
14739
+ extraTriggerProps.isClickable = true;
14740
+ }
14741
+ let triggerChildren;
14742
+ if (variant === 'icon-button') {
14743
+ // Label as prop (renders as tooltip label)
14744
+ extraTriggerProps.label = label;
14745
+ // Default icon
14746
+ if (!triggerProps?.icon) {
14747
+ extraTriggerProps.icon = mdiDotsVertical;
14748
+ }
14749
+ } else {
14750
+ // Only set the label as children when we are not displaying an icon-button
14751
+ triggerChildren = label;
14752
+ }
14753
+ return /*#__PURE__*/jsxs(MenuProvider, {
14722
14754
  onOpen: onOpen,
14723
- children: [/*#__PURE__*/jsx(Menu.Trigger, {
14755
+ children: [/*#__PURE__*/jsx(MenuTrigger, {
14724
14756
  ...triggerProps,
14725
- children: label
14726
- }), /*#__PURE__*/jsx(Menu.Popover, {
14757
+ ...extraTriggerProps,
14758
+ children: triggerChildren
14759
+ }), /*#__PURE__*/jsx(MenuPopover, {
14727
14760
  ...popoverProps,
14728
- children: /*#__PURE__*/jsx(Menu.List, {
14761
+ children: /*#__PURE__*/jsx(MenuList, {
14729
14762
  children: children
14730
14763
  })
14731
14764
  })]
@@ -15060,11 +15093,11 @@ function setupMenu(options = {}) {
15060
15093
 
15061
15094
  const MenuContext = /*#__PURE__*/createContext(undefined);
15062
15095
 
15063
- /** Use Menu context. @throws if used outside `Menu.Provider`. */
15096
+ /** Use Menu context. @throws if used outside `MenuProvider`. */
15064
15097
  function useMenuContext() {
15065
15098
  const context = useContext(MenuContext);
15066
15099
  if (!context) {
15067
- throw new Error('Menu sub-components must be used within a Menu.Provider');
15100
+ throw new Error('Menu sub-components must be used within a MenuProvider');
15068
15101
  }
15069
15102
  return context;
15070
15103
  }
@@ -15235,10 +15268,6 @@ const MenuPopover$1 = (props, {
15235
15268
  placement = 'bottom-start',
15236
15269
  anchorRef,
15237
15270
  handleClose,
15238
- closeOnClickAway = true,
15239
- closeOnEscape = true,
15240
- usePortal = false,
15241
- focusAnchorOnClose = true,
15242
15271
  ...forwardedProps
15243
15272
  } = props;
15244
15273
  return /*#__PURE__*/jsx(Popover, {
@@ -15247,10 +15276,10 @@ const MenuPopover$1 = (props, {
15247
15276
  anchorRef: anchorRef,
15248
15277
  isOpen: isOpen,
15249
15278
  onClose: handleClose,
15250
- closeOnClickAway: closeOnClickAway,
15251
- closeOnEscape: closeOnEscape,
15252
- usePortal: usePortal,
15253
- focusAnchorOnClose: focusAnchorOnClose,
15279
+ closeOnClickAway: true,
15280
+ closeOnEscape: true,
15281
+ usePortal: false,
15282
+ focusAnchorOnClose: true,
15254
15283
  withFocusTrap: false,
15255
15284
  closeMode: "hide",
15256
15285
  fitToAnchorWidth: false,
@@ -15364,18 +15393,17 @@ const MenuList = forwardRef((props, ref) => {
15364
15393
  MenuList.displayName = COMPONENT_NAME$G;
15365
15394
  MenuList.className = CLASSNAME$H;
15366
15395
 
15367
- const Menu = {
15368
- Provider: MenuProvider,
15369
- Trigger: MenuTrigger,
15370
- Popover: MenuPopover,
15371
- List: MenuList
15372
- };
15396
+ /** Props that MenuButton explicitly declares. */
15373
15397
 
15374
- /** Keys managed by MenuButton omitted from the polymorphic trigger props. */
15398
+ /** MenuButton props discriminated union over the variant to inherit the target component's props. */
15375
15399
 
15376
- /** Polymorphic trigger props with index signature stripped and managed keys removed. */
15377
-
15378
- /** Menu button props */
15400
+ /** Menu trigger button component by variant */
15401
+ const TRIGGER_COMPONENTS = {
15402
+ button: Button,
15403
+ 'icon-button': IconButton,
15404
+ chip: Chip,
15405
+ link: Link
15406
+ };
15379
15407
 
15380
15408
  /**
15381
15409
  * MenuButton component.
@@ -15383,37 +15411,35 @@ const Menu = {
15383
15411
  * @param props Component props.
15384
15412
  * @return React element.
15385
15413
  */
15386
- const MenuButton = Object.assign(forwardRefPolymorphic((props, ref) => {
15414
+ const MenuButton = forwardRef((props, ref) => {
15387
15415
  const {
15388
15416
  label,
15389
15417
  children,
15390
15418
  popoverProps,
15391
15419
  onOpen,
15392
- as,
15420
+ variant = DEFAULT_PROPS$E.variant,
15393
15421
  ...triggerProps
15394
15422
  } = props;
15395
- const isIconButton = as === IconButton;
15396
- const triggerLabel = isIconButton ? undefined : label;
15397
- const extraTriggerProps = isIconButton ? {
15398
- label
15399
- } : {};
15400
15423
  return MenuButton$1({
15401
- label: triggerLabel,
15424
+ label,
15402
15425
  children,
15403
15426
  popoverProps,
15404
15427
  onOpen,
15428
+ variant,
15405
15429
  triggerProps: {
15406
15430
  ...triggerProps,
15407
- ...extraTriggerProps,
15408
- as,
15431
+ as: TRIGGER_COMPONENTS[variant],
15409
15432
  ref
15410
15433
  }
15411
15434
  }, {
15412
- Menu
15435
+ MenuProvider,
15436
+ MenuTrigger,
15437
+ MenuPopover,
15438
+ MenuList
15413
15439
  });
15414
- }), {
15415
- displayName: COMPONENT_NAME$J
15416
15440
  });
15441
+ MenuButton.displayName = COMPONENT_NAME$J;
15442
+ MenuButton.defaultProps = DEFAULT_PROPS$E;
15417
15443
 
15418
15444
  /** MenuItem props. */
15419
15445
 
@@ -15475,6 +15501,7 @@ const MenuItem = forwardRef((props, ref) => {
15475
15501
  const {
15476
15502
  children,
15477
15503
  icon,
15504
+ afterIcon,
15478
15505
  color,
15479
15506
  before,
15480
15507
  after,
@@ -15509,12 +15536,21 @@ const MenuItem = forwardRef((props, ref) => {
15509
15536
  color: color
15510
15537
  }), before]
15511
15538
  }) : before;
15539
+
15540
+ // Append the optional `afterIcon` to the `after` slot.
15541
+ const mergedAfter = afterIcon ? /*#__PURE__*/jsxs(Fragment, {
15542
+ children: [after, /*#__PURE__*/jsx(Icon, {
15543
+ icon: afterIcon,
15544
+ size: "xs",
15545
+ color: color
15546
+ })]
15547
+ }) : after;
15512
15548
  return MenuItem$1({
15513
15549
  ...rest,
15514
15550
  ref: mergedRef,
15515
15551
  actionRef,
15516
15552
  before: mergedBefore,
15517
- after,
15553
+ after: mergedAfter,
15518
15554
  children: /*#__PURE__*/jsx(Text, {
15519
15555
  as: "span",
15520
15556
  color: color,
@@ -22314,5 +22350,5 @@ UserBlock.displayName = COMPONENT_NAME;
22314
22350
  UserBlock.className = CLASSNAME;
22315
22351
  UserBlock.defaultProps = DEFAULT_PROPS;
22316
22352
 
22317
- 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$1c 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 };
22353
+ 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$1d 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 };
22318
22354
  //# sourceMappingURL=index.js.map