@lumx/react 4.7.1 → 4.8.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -110,7 +110,7 @@ const {
110
110
  /**
111
111
  * Component default props.
112
112
  */
113
- const DEFAULT_PROPS$1d = {
113
+ const DEFAULT_PROPS$1f = {
114
114
  size: Size$1.tiny,
115
115
  kind: Kind$1.info
116
116
  };
@@ -131,8 +131,8 @@ const AlertDialog = forwardRef((props, ref) => {
131
131
  className,
132
132
  cancelProps,
133
133
  confirmProps,
134
- kind = DEFAULT_PROPS$1d.kind,
135
- size = DEFAULT_PROPS$1d.size,
134
+ kind = DEFAULT_PROPS$1f.kind,
135
+ size = DEFAULT_PROPS$1f.size,
136
136
  dialogProps,
137
137
  children,
138
138
  ...forwardedProps
@@ -220,7 +220,7 @@ const AlertDialog = forwardRef((props, ref) => {
220
220
  });
221
221
  AlertDialog.displayName = COMPONENT_NAME$1m;
222
222
  AlertDialog.className = CLASSNAME$1l;
223
- AlertDialog.defaultProps = DEFAULT_PROPS$1d;
223
+ AlertDialog.defaultProps = DEFAULT_PROPS$1f;
224
224
 
225
225
  /**
226
226
  * Hook focusing an element when defined and `focus` boolean `true`.
@@ -322,7 +322,7 @@ const CLASSNAME$1k = 'lumx-autocomplete';
322
322
  /**
323
323
  * Component default props.
324
324
  */
325
- const DEFAULT_PROPS$1c = {
325
+ const DEFAULT_PROPS$1e = {
326
326
  anchorToInput: false,
327
327
  closeOnClick: false,
328
328
  closeOnClickAway: true,
@@ -344,13 +344,13 @@ const Autocomplete = forwardRef((props, ref) => {
344
344
  otherProps
345
345
  } = useDisableStateProps(props);
346
346
  const {
347
- anchorToInput = DEFAULT_PROPS$1c.anchorToInput,
347
+ anchorToInput = DEFAULT_PROPS$1e.anchorToInput,
348
348
  children,
349
349
  chips,
350
350
  className,
351
- closeOnClick = DEFAULT_PROPS$1c.closeOnClick,
352
- closeOnClickAway = DEFAULT_PROPS$1c.closeOnClickAway,
353
- closeOnEscape = DEFAULT_PROPS$1c.closeOnEscape,
351
+ closeOnClick = DEFAULT_PROPS$1e.closeOnClick,
352
+ closeOnClickAway = DEFAULT_PROPS$1e.closeOnClickAway,
353
+ closeOnEscape = DEFAULT_PROPS$1e.closeOnEscape,
354
354
  error,
355
355
  fitToAnchorWidth,
356
356
  hasError,
@@ -371,7 +371,7 @@ const Autocomplete = forwardRef((props, ref) => {
371
371
  onInfiniteScroll,
372
372
  placeholder,
373
373
  placement,
374
- shouldFocusOnClose = DEFAULT_PROPS$1c.shouldFocusOnClose,
374
+ shouldFocusOnClose = DEFAULT_PROPS$1e.shouldFocusOnClose,
375
375
  theme = defaultTheme,
376
376
  value,
377
377
  textFieldProps = {},
@@ -426,7 +426,7 @@ const Autocomplete = forwardRef((props, ref) => {
426
426
  });
427
427
  Autocomplete.displayName = COMPONENT_NAME$1l;
428
428
  Autocomplete.className = CLASSNAME$1k;
429
- Autocomplete.defaultProps = DEFAULT_PROPS$1c;
429
+ Autocomplete.defaultProps = DEFAULT_PROPS$1e;
430
430
 
431
431
  /**
432
432
  * Component display name.
@@ -441,7 +441,7 @@ const CLASSNAME$1j = 'lumx-autocomplete-multiple';
441
441
  /**
442
442
  * Component default props.
443
443
  */
444
- const DEFAULT_PROPS$1b = {
444
+ const DEFAULT_PROPS$1d = {
445
445
  closeOnClickAway: true,
446
446
  closeOnEscape: true,
447
447
  selectedChipRender(choice, index, onClear, isDisabled) {
@@ -481,8 +481,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
481
481
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
482
482
  chipsAlignment,
483
483
  className,
484
- closeOnClickAway = DEFAULT_PROPS$1b.closeOnClickAway,
485
- closeOnEscape = DEFAULT_PROPS$1b.closeOnEscape,
484
+ closeOnClickAway = DEFAULT_PROPS$1d.closeOnClickAway,
485
+ closeOnEscape = DEFAULT_PROPS$1d.closeOnEscape,
486
486
  fitToAnchorWidth,
487
487
  hasError,
488
488
  helper,
@@ -504,12 +504,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
504
504
  onKeyDown,
505
505
  placeholder,
506
506
  placement,
507
- selectedChipRender = DEFAULT_PROPS$1b.selectedChipRender,
507
+ selectedChipRender = DEFAULT_PROPS$1d.selectedChipRender,
508
508
  shouldFocusOnClose,
509
509
  theme = defaultTheme,
510
510
  type,
511
511
  value,
512
- values = DEFAULT_PROPS$1b.values,
512
+ values = DEFAULT_PROPS$1d.values,
513
513
  ...forwardedProps
514
514
  } = otherProps;
515
515
  return /*#__PURE__*/jsx(Autocomplete, {
@@ -551,7 +551,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
551
551
  });
552
552
  AutocompleteMultiple.displayName = COMPONENT_NAME$1k;
553
553
  AutocompleteMultiple.className = CLASSNAME$1j;
554
- AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1b;
554
+ AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1d;
555
555
 
556
556
  function getDefaultExportFromCjs (x) {
557
557
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -851,10 +851,19 @@ const Size = {
851
851
  xs: 'xs',
852
852
  s: 's',
853
853
  m: 'm',
854
+ l: 'l',
854
855
  xl: 'xl',
855
- xxl: 'xxl'};
856
+ xxl: 'xxl',
857
+ tiny: 'tiny',
858
+ regular: 'regular',
859
+ medium: 'medium',
860
+ big: 'big',
861
+ huge: 'huge'
862
+ };
856
863
  const Orientation = {
857
- horizontal: 'horizontal'};
864
+ horizontal: 'horizontal',
865
+ vertical: 'vertical'
866
+ };
858
867
  const Emphasis = {
859
868
  low: 'low',
860
869
  high: 'high'
@@ -883,7 +892,11 @@ const Typography = {
883
892
  */
884
893
  const AspectRatio = {
885
894
  /** Intrinsic content ratio. */
886
- original: 'original'};
895
+ original: 'original',
896
+ /** Ratio 3:2 */
897
+ horizontal: 'horizontal',
898
+ /** Ratio 1:1 */
899
+ square: 'square'};
887
900
  /**
888
901
  * Semantic info about the purpose of the component
889
902
  */
@@ -905,6 +918,18 @@ const ColorPalette = {
905
918
  red: 'red',
906
919
  light: 'light'};
907
920
 
921
+ /** ColorPalette with all possible color variant combination */
922
+
923
+ ({
924
+ [Size.xxs]: 14,
925
+ [Size.xs]: 20,
926
+ [Size.s]: 24,
927
+ [Size.m]: 36,
928
+ [Size.l]: 64,
929
+ [Size.xl]: 128,
930
+ [Size.xxl]: 256
931
+ });
932
+
908
933
  /**
909
934
  * Check if we are running in a true browser (not SSR and not jsdom test environment).
910
935
  */
@@ -927,7 +952,7 @@ const {
927
952
  /**
928
953
  * Component default props.
929
954
  */
930
- const DEFAULT_PROPS$1a = {
955
+ const DEFAULT_PROPS$1c = {
931
956
  size: Size.m
932
957
  };
933
958
 
@@ -944,7 +969,7 @@ const Avatar$1 = props => {
944
969
  badge,
945
970
  className,
946
971
  image,
947
- size = DEFAULT_PROPS$1a.size,
972
+ size = DEFAULT_PROPS$1c.size,
948
973
  theme,
949
974
  ref,
950
975
  ...forwardedProps
@@ -985,7 +1010,7 @@ const Avatar = forwardRef((props, ref) => {
985
1010
  linkAs,
986
1011
  onClick,
987
1012
  onKeyPress,
988
- size = DEFAULT_PROPS$1a.size,
1013
+ size = DEFAULT_PROPS$1c.size,
989
1014
  theme = defaultTheme,
990
1015
  thumbnailProps,
991
1016
  ...forwardedProps
@@ -1015,7 +1040,7 @@ const Avatar = forwardRef((props, ref) => {
1015
1040
  });
1016
1041
  Avatar.displayName = COMPONENT_NAME$1j;
1017
1042
  Avatar.className = CLASSNAME$1i;
1018
- Avatar.defaultProps = DEFAULT_PROPS$1a;
1043
+ Avatar.defaultProps = DEFAULT_PROPS$1c;
1019
1044
 
1020
1045
  /**
1021
1046
  * Component display name.
@@ -1033,7 +1058,7 @@ const {
1033
1058
  /**
1034
1059
  * Component default props.
1035
1060
  */
1036
- const DEFAULT_PROPS$19 = {
1061
+ const DEFAULT_PROPS$1b = {
1037
1062
  color: ColorPalette.primary
1038
1063
  };
1039
1064
 
@@ -1047,7 +1072,7 @@ const Badge$1 = props => {
1047
1072
  const {
1048
1073
  children,
1049
1074
  className,
1050
- color = DEFAULT_PROPS$19.color,
1075
+ color = DEFAULT_PROPS$1b.color,
1051
1076
  ref,
1052
1077
  ...forwardedProps
1053
1078
  } = props;
@@ -1062,7 +1087,7 @@ const Badge$1 = props => {
1062
1087
  };
1063
1088
  Badge$1.displayName = COMPONENT_NAME$1i;
1064
1089
  Badge$1.className = CLASSNAME$1h;
1065
- Badge$1.defaultProps = DEFAULT_PROPS$19;
1090
+ Badge$1.defaultProps = DEFAULT_PROPS$1b;
1066
1091
 
1067
1092
  /**
1068
1093
  * Defines the props of the component.
@@ -1288,7 +1313,7 @@ const {
1288
1313
  /**
1289
1314
  * Component default props.
1290
1315
  */
1291
- const DEFAULT_PROPS$18 = {
1316
+ const DEFAULT_PROPS$1a = {
1292
1317
  emphasis: Emphasis.high,
1293
1318
  size: Size.m
1294
1319
  };
@@ -1302,10 +1327,10 @@ const DEFAULT_PROPS$18 = {
1302
1327
  const Button$1 = props => {
1303
1328
  const {
1304
1329
  className,
1305
- emphasis = DEFAULT_PROPS$18.emphasis,
1330
+ emphasis = DEFAULT_PROPS$1a.emphasis,
1306
1331
  leftIcon,
1307
1332
  rightIcon,
1308
- size = DEFAULT_PROPS$18.size,
1333
+ size = DEFAULT_PROPS$1a.size,
1309
1334
  ...forwardedProps
1310
1335
  } = props;
1311
1336
  const buttonClassName = classnames(className, modifier({
@@ -1322,7 +1347,7 @@ const Button$1 = props => {
1322
1347
  };
1323
1348
  Button$1.displayName = COMPONENT_NAME$1f;
1324
1349
  Button$1.className = CLASSNAME$1f;
1325
- Button$1.defaultProps = DEFAULT_PROPS$18;
1350
+ Button$1.defaultProps = DEFAULT_PROPS$1a;
1326
1351
 
1327
1352
  /**
1328
1353
  * Properties of a component to use to determine it's name.
@@ -1397,7 +1422,7 @@ const Button = forwardRef((props, ref) => {
1397
1422
  });
1398
1423
  Button.displayName = COMPONENT_NAME$1f;
1399
1424
  Button.className = CLASSNAME$1f;
1400
- Button.defaultProps = DEFAULT_PROPS$18;
1425
+ Button.defaultProps = DEFAULT_PROPS$1a;
1401
1426
 
1402
1427
  const COMPONENT_NAME$1e = 'Icon';
1403
1428
  const IconClassName = 'lumx-icon';
@@ -1414,7 +1439,7 @@ const {
1414
1439
  /**
1415
1440
  * Component default props.
1416
1441
  */
1417
- const DEFAULT_PROPS$17 = {};
1442
+ const DEFAULT_PROPS$19 = {};
1418
1443
 
1419
1444
  /**
1420
1445
  * Icon component.
@@ -1494,7 +1519,7 @@ const Icon$1 = props => {
1494
1519
  };
1495
1520
  Icon$1.displayName = COMPONENT_NAME$1e;
1496
1521
  Icon$1.className = CLASSNAME$1e;
1497
- Icon$1.defaultProps = DEFAULT_PROPS$17;
1522
+ Icon$1.defaultProps = DEFAULT_PROPS$19;
1498
1523
 
1499
1524
  /**
1500
1525
  * Component display name.
@@ -1509,7 +1534,7 @@ const CLASSNAME$1d = 'lumx-icon-button';
1509
1534
  /**
1510
1535
  * Component default props.
1511
1536
  */
1512
- const DEFAULT_PROPS$16 = {
1537
+ const DEFAULT_PROPS$18 = {
1513
1538
  emphasis: Emphasis.high,
1514
1539
  size: Size.m
1515
1540
  };
@@ -1522,11 +1547,11 @@ const DEFAULT_PROPS$16 = {
1522
1547
  */
1523
1548
  const IconButton$1 = props => {
1524
1549
  const {
1525
- emphasis = DEFAULT_PROPS$16.emphasis,
1550
+ emphasis = DEFAULT_PROPS$18.emphasis,
1526
1551
  image,
1527
1552
  icon,
1528
1553
  label,
1529
- size = DEFAULT_PROPS$16.size,
1554
+ size = DEFAULT_PROPS$18.size,
1530
1555
  ...forwardedProps
1531
1556
  } = props;
1532
1557
  const defaultChildren = image ? /*#__PURE__*/jsx("img", {
@@ -1547,7 +1572,7 @@ const IconButton$1 = props => {
1547
1572
  };
1548
1573
  IconButton$1.displayName = COMPONENT_NAME$1d;
1549
1574
  IconButton$1.className = CLASSNAME$1d;
1550
- IconButton$1.defaultProps = DEFAULT_PROPS$16;
1575
+ IconButton$1.defaultProps = DEFAULT_PROPS$18;
1551
1576
 
1552
1577
  /**
1553
1578
  * IconButton component.
@@ -1591,7 +1616,7 @@ const IconButton = forwardRef((props, ref) => {
1591
1616
  });
1592
1617
  IconButton.displayName = COMPONENT_NAME$1d;
1593
1618
  IconButton.className = CLASSNAME$1d;
1594
- IconButton.defaultProps = DEFAULT_PROPS$16;
1619
+ IconButton.defaultProps = DEFAULT_PROPS$18;
1595
1620
 
1596
1621
  /**
1597
1622
  * Component display name.
@@ -1606,7 +1631,7 @@ const CLASSNAME$1c = 'lumx-button-group';
1606
1631
  /**
1607
1632
  * Component default props.
1608
1633
  */
1609
- const DEFAULT_PROPS$15 = {};
1634
+ const DEFAULT_PROPS$17 = {};
1610
1635
 
1611
1636
  /**
1612
1637
  * ButtonGroup component.
@@ -1628,7 +1653,7 @@ const ButtonGroup$1 = props => {
1628
1653
  };
1629
1654
  ButtonGroup$1.displayName = COMPONENT_NAME$1c;
1630
1655
  ButtonGroup$1.className = CLASSNAME$1c;
1631
- ButtonGroup$1.defaultProps = DEFAULT_PROPS$15;
1656
+ ButtonGroup$1.defaultProps = DEFAULT_PROPS$17;
1632
1657
 
1633
1658
  /**
1634
1659
  * ButtonGroup component.
@@ -1645,7 +1670,7 @@ const ButtonGroup = forwardRef((props, ref) => {
1645
1670
  });
1646
1671
  ButtonGroup.displayName = COMPONENT_NAME$1c;
1647
1672
  ButtonGroup.className = CLASSNAME$1c;
1648
- ButtonGroup.defaultProps = DEFAULT_PROPS$15;
1673
+ ButtonGroup.defaultProps = DEFAULT_PROPS$17;
1649
1674
 
1650
1675
  const COMPONENT_NAME$1b = 'InputLabel';
1651
1676
  const InputLabelClassName = 'lumx-input-label';
@@ -1653,7 +1678,7 @@ const CLASSNAME$1b = InputLabelClassName;
1653
1678
  const {
1654
1679
  block: block$$
1655
1680
  } = bem(CLASSNAME$1b);
1656
- const DEFAULT_PROPS$14 = {};
1681
+ const DEFAULT_PROPS$16 = {};
1657
1682
 
1658
1683
  /**
1659
1684
  * InputLabel component.
@@ -1683,7 +1708,7 @@ function InputLabel$1(props) {
1683
1708
  }
1684
1709
  InputLabel$1.displayName = COMPONENT_NAME$1b;
1685
1710
  InputLabel$1.className = CLASSNAME$1b;
1686
- InputLabel$1.defaultProps = DEFAULT_PROPS$14;
1711
+ InputLabel$1.defaultProps = DEFAULT_PROPS$16;
1687
1712
 
1688
1713
  const INPUT_HELPER_CONFIGURATION = {
1689
1714
  [Kind.error]: {
@@ -1712,7 +1737,7 @@ const {
1712
1737
  /**
1713
1738
  * Component default props.
1714
1739
  */
1715
- const DEFAULT_PROPS$13 = {
1740
+ const DEFAULT_PROPS$15 = {
1716
1741
  kind: Kind.info
1717
1742
  };
1718
1743
 
@@ -1723,7 +1748,7 @@ function InputHelper$1(props) {
1723
1748
  const {
1724
1749
  children,
1725
1750
  className,
1726
- kind = DEFAULT_PROPS$13.kind,
1751
+ kind = DEFAULT_PROPS$15.kind,
1727
1752
  theme,
1728
1753
  ref,
1729
1754
  ...forwardedProps
@@ -1743,7 +1768,7 @@ function InputHelper$1(props) {
1743
1768
  }
1744
1769
  InputHelper$1.displayName = COMPONENT_NAME$1a;
1745
1770
  InputHelper$1.className = CLASSNAME$1a;
1746
- InputHelper$1.defaultProps = DEFAULT_PROPS$13;
1771
+ InputHelper$1.defaultProps = DEFAULT_PROPS$15;
1747
1772
 
1748
1773
  const INTERMEDIATE_STATE = 'intermediate';
1749
1774
 
@@ -1858,7 +1883,7 @@ const Checkbox$1 = props => {
1858
1883
  /**
1859
1884
  * Component default props.
1860
1885
  */
1861
- const DEFAULT_PROPS$12 = {};
1886
+ const DEFAULT_PROPS$14 = {};
1862
1887
 
1863
1888
  /**
1864
1889
  * Checkbox component.
@@ -1920,7 +1945,7 @@ const Checkbox = forwardRef((props, ref) => {
1920
1945
  });
1921
1946
  Checkbox.displayName = COMPONENT_NAME$19;
1922
1947
  Checkbox.className = CLASSNAME$19;
1923
- Checkbox.defaultProps = DEFAULT_PROPS$12;
1948
+ Checkbox.defaultProps = DEFAULT_PROPS$14;
1924
1949
 
1925
1950
  /**
1926
1951
  * Wrap mouse event handler to stop event propagation.
@@ -1955,7 +1980,7 @@ const {
1955
1980
  /**
1956
1981
  * Component default props.
1957
1982
  */
1958
- const DEFAULT_PROPS$11 = {
1983
+ const DEFAULT_PROPS$13 = {
1959
1984
  size: Size.m
1960
1985
  };
1961
1986
 
@@ -1982,7 +2007,7 @@ const Chip$1 = props => {
1982
2007
  hasAfterClick,
1983
2008
  hasBeforeClick,
1984
2009
  hasOnClick,
1985
- size = DEFAULT_PROPS$11.size,
2010
+ size = DEFAULT_PROPS$13.size,
1986
2011
  theme,
1987
2012
  ref,
1988
2013
  href,
@@ -2104,7 +2129,7 @@ const Chip = forwardRef((props, ref) => {
2104
2129
  });
2105
2130
  Chip.displayName = COMPONENT_NAME$18;
2106
2131
  Chip.className = CLASSNAME$18;
2107
- Chip.defaultProps = DEFAULT_PROPS$11;
2132
+ Chip.defaultProps = DEFAULT_PROPS$13;
2108
2133
 
2109
2134
  /**
2110
2135
  * Component display name.
@@ -2119,7 +2144,7 @@ const CLASSNAME$17 = 'lumx-chip-group';
2119
2144
  /**
2120
2145
  * Component default props.
2121
2146
  */
2122
- const DEFAULT_PROPS$10 = {};
2147
+ const DEFAULT_PROPS$12 = {};
2123
2148
 
2124
2149
  /**
2125
2150
  * ChipGroup component.
@@ -2217,7 +2242,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
2217
2242
  });
2218
2243
  InternalChipGroup.displayName = COMPONENT_NAME$17;
2219
2244
  InternalChipGroup.className = CLASSNAME$17;
2220
- InternalChipGroup.defaultProps = DEFAULT_PROPS$10;
2245
+ InternalChipGroup.defaultProps = DEFAULT_PROPS$12;
2221
2246
  const ChipGroup = Object.assign(InternalChipGroup, {
2222
2247
  useChipGroupNavigation
2223
2248
  });
@@ -2429,7 +2454,7 @@ const {
2429
2454
  /**
2430
2455
  * Component default props.
2431
2456
  */
2432
- const DEFAULT_PROPS$$ = {
2457
+ const DEFAULT_PROPS$11 = {
2433
2458
  variant: CommentBlockVariant.indented
2434
2459
  };
2435
2460
 
@@ -2459,7 +2484,7 @@ const CommentBlock = forwardRef((props, ref) => {
2459
2484
  onMouseLeave,
2460
2485
  text,
2461
2486
  theme = defaultTheme,
2462
- variant = DEFAULT_PROPS$$.variant,
2487
+ variant = DEFAULT_PROPS$11.variant,
2463
2488
  ...forwardedProps
2464
2489
  } = props;
2465
2490
  const hasChildren = Children.count(children) > 0;
@@ -2528,7 +2553,7 @@ const CommentBlock = forwardRef((props, ref) => {
2528
2553
  });
2529
2554
  CommentBlock.displayName = COMPONENT_NAME$16;
2530
2555
  CommentBlock.className = CLASSNAME$15;
2531
- CommentBlock.defaultProps = DEFAULT_PROPS$$;
2556
+ CommentBlock.defaultProps = DEFAULT_PROPS$11;
2532
2557
 
2533
2558
  /**
2534
2559
  * Add a number of months from a date while resetting the day to prevent month length mismatches.
@@ -3618,7 +3643,7 @@ const {
3618
3643
  /**
3619
3644
  * Component default props.
3620
3645
  */
3621
- const DEFAULT_PROPS$_ = {
3646
+ const DEFAULT_PROPS$10 = {
3622
3647
  closeMode: 'unmount',
3623
3648
  size: Size$1.big,
3624
3649
  disableBodyScroll: true
@@ -3639,7 +3664,7 @@ const Dialog = forwardRef((props, ref) => {
3639
3664
  const {
3640
3665
  children,
3641
3666
  className,
3642
- closeMode = DEFAULT_PROPS$_.closeMode,
3667
+ closeMode = DEFAULT_PROPS$10.closeMode,
3643
3668
  header,
3644
3669
  focusElement,
3645
3670
  forceFooterDivider,
@@ -3651,11 +3676,11 @@ const Dialog = forwardRef((props, ref) => {
3651
3676
  parentElement,
3652
3677
  contentRef,
3653
3678
  preventAutoClose,
3654
- size = DEFAULT_PROPS$_.size,
3679
+ size = DEFAULT_PROPS$10.size,
3655
3680
  zIndex,
3656
3681
  dialogProps,
3657
3682
  onVisibilityChange,
3658
- disableBodyScroll = DEFAULT_PROPS$_.disableBodyScroll,
3683
+ disableBodyScroll = DEFAULT_PROPS$10.disableBodyScroll,
3659
3684
  preventCloseOnClick,
3660
3685
  preventCloseOnEscape,
3661
3686
  ...forwardedProps
@@ -3796,7 +3821,7 @@ const Dialog = forwardRef((props, ref) => {
3796
3821
  });
3797
3822
  Dialog.displayName = COMPONENT_NAME$12;
3798
3823
  Dialog.className = CLASSNAME$13;
3799
- Dialog.defaultProps = DEFAULT_PROPS$_;
3824
+ Dialog.defaultProps = DEFAULT_PROPS$10;
3800
3825
 
3801
3826
  /**
3802
3827
  * Component display name.
@@ -3840,7 +3865,7 @@ const Divider$1 = props => {
3840
3865
  /**
3841
3866
  * Component default props.
3842
3867
  */
3843
- const DEFAULT_PROPS$Z = {};
3868
+ const DEFAULT_PROPS$$ = {};
3844
3869
 
3845
3870
  /**
3846
3871
  * Divider component.
@@ -3863,7 +3888,7 @@ const Divider = forwardRef((props, ref) => {
3863
3888
  });
3864
3889
  Divider.displayName = COMPONENT_NAME$11;
3865
3890
  Divider.className = CLASSNAME$12;
3866
- Divider.defaultProps = DEFAULT_PROPS$Z;
3891
+ Divider.defaultProps = DEFAULT_PROPS$$;
3867
3892
 
3868
3893
  /**
3869
3894
  * Component display name.
@@ -3876,37 +3901,66 @@ const COMPONENT_NAME$10 = 'DragHandle';
3876
3901
  const CLASSNAME$11 = 'lumx-drag-handle';
3877
3902
  const {
3878
3903
  block: block$T
3879
- } = classNames.bem(CLASSNAME$11);
3904
+ } = bem(CLASSNAME$11);
3880
3905
 
3881
3906
  /**
3882
3907
  * DragHandle component.
3883
3908
  *
3884
3909
  * @param props Component props.
3885
- * @param ref Component ref.
3886
- * @return React element.
3910
+ * @return JSX element.
3887
3911
  */
3888
- const DragHandle = forwardRef((props, ref) => {
3889
- const defaultTheme = useTheme();
3912
+ const DragHandle$1 = props => {
3890
3913
  const {
3891
3914
  className,
3892
- theme = defaultTheme,
3915
+ theme,
3916
+ ref,
3893
3917
  ...forwardedProps
3894
3918
  } = props;
3895
3919
  return /*#__PURE__*/jsx("div", {
3896
3920
  ref: ref,
3897
3921
  ...forwardedProps,
3898
- className: classNames.join(className, block$T({
3922
+ className: classnames(className, block$T({
3899
3923
  [`theme-${theme}`]: Boolean(theme)
3900
3924
  })),
3901
- children: /*#__PURE__*/jsx(Icon, {
3925
+ children: Icon$1({
3902
3926
  icon: mdiDragVertical,
3903
- color: theme === Theme$1.dark ? ColorPalette$1.light : ColorPalette$1.dark,
3904
- size: Size$1.xs
3927
+ color: theme === Theme.dark ? ColorPalette.light : ColorPalette.dark,
3928
+ size: Size.xs
3905
3929
  })
3906
3930
  });
3931
+ };
3932
+
3933
+ /**
3934
+ * Defines the props of the component.
3935
+ */
3936
+
3937
+ /**
3938
+ * Component default props.
3939
+ */
3940
+ const DEFAULT_PROPS$_ = {};
3941
+
3942
+ /**
3943
+ * DragHandle component.
3944
+ *
3945
+ * @param props Component props.
3946
+ * @param ref Component ref.
3947
+ * @return React element.
3948
+ */
3949
+ const DragHandle = forwardRef((props, ref) => {
3950
+ const defaultTheme = useTheme();
3951
+ const {
3952
+ theme = defaultTheme,
3953
+ ...otherProps
3954
+ } = props;
3955
+ return DragHandle$1({
3956
+ ref,
3957
+ theme,
3958
+ ...otherProps
3959
+ });
3907
3960
  });
3908
3961
  DragHandle.displayName = COMPONENT_NAME$10;
3909
3962
  DragHandle.className = CLASSNAME$11;
3963
+ DragHandle.defaultProps = DEFAULT_PROPS$_;
3910
3964
 
3911
3965
  const INITIAL_INDEX = -1;
3912
3966
 
@@ -4083,12 +4137,43 @@ const COMPONENT_NAME$$ = 'List';
4083
4137
  const CLASSNAME$10 = 'lumx-list';
4084
4138
  const {
4085
4139
  block: block$S
4086
- } = classNames.bem(CLASSNAME$10);
4140
+ } = bem(CLASSNAME$10);
4087
4141
 
4088
4142
  /**
4089
4143
  * Component default props.
4090
4144
  */
4091
- const DEFAULT_PROPS$Y = {};
4145
+ const DEFAULT_PROPS$Z = {};
4146
+
4147
+ /**
4148
+ * List component.
4149
+ *
4150
+ * @param props Component props.
4151
+ * @return JSX element.
4152
+ */
4153
+ const List$1 = props => {
4154
+ const {
4155
+ children,
4156
+ className,
4157
+ itemPadding,
4158
+ ref,
4159
+ ...forwardedProps
4160
+ } = props;
4161
+ return /*#__PURE__*/jsx("ul", {
4162
+ ...forwardedProps,
4163
+ className: classnames(className, block$S({
4164
+ [`item-padding-${itemPadding}`]: Boolean(itemPadding)
4165
+ })),
4166
+ ref: ref,
4167
+ children: children
4168
+ });
4169
+ };
4170
+ List$1.displayName = COMPONENT_NAME$$;
4171
+ List$1.className = CLASSNAME$10;
4172
+ List$1.defaultProps = DEFAULT_PROPS$Z;
4173
+
4174
+ /**
4175
+ * Defines the props of the component.
4176
+ */
4092
4177
 
4093
4178
  /* eslint-disable jsx-a11y/no-noninteractive-tabindex */
4094
4179
  /**
@@ -4101,25 +4186,22 @@ const DEFAULT_PROPS$Y = {};
4101
4186
  const InternalList = forwardRef((props, ref) => {
4102
4187
  const {
4103
4188
  children,
4104
- className,
4105
4189
  isClickable,
4106
- itemPadding,
4107
4190
  onListItemSelected,
4191
+ itemPadding,
4108
4192
  ...forwardedProps
4109
4193
  } = props;
4110
4194
  const adjustedItemPadding = itemPadding ?? (isClickable ? Size$1.big : undefined);
4111
- return /*#__PURE__*/jsx("ul", {
4195
+ return List$1({
4112
4196
  ...forwardedProps,
4113
- className: classNames.join(className, block$S({
4114
- [`item-padding-${adjustedItemPadding}`]: Boolean(adjustedItemPadding)
4115
- })),
4116
- ref: ref,
4117
- children: children
4197
+ ref,
4198
+ children,
4199
+ itemPadding: adjustedItemPadding
4118
4200
  });
4119
4201
  });
4120
4202
  InternalList.displayName = COMPONENT_NAME$$;
4121
4203
  InternalList.className = CLASSNAME$10;
4122
- InternalList.defaultProps = DEFAULT_PROPS$Y;
4204
+ InternalList.defaultProps = DEFAULT_PROPS$Z;
4123
4205
  const List = Object.assign(InternalList, {
4124
4206
  useKeyboardListNavigation
4125
4207
  });
@@ -4203,7 +4285,7 @@ const {
4203
4285
  /**
4204
4286
  * Component default props (used by framework wrappers).
4205
4287
  */
4206
- const DEFAULT_PROPS$X = {
4288
+ const DEFAULT_PROPS$Y = {
4207
4289
  closeMode: 'unmount',
4208
4290
  elevation: 3,
4209
4291
  placement: Placement.AUTO,
@@ -4227,8 +4309,8 @@ const Popover$1 = (props, {
4227
4309
  as: asTag = 'div',
4228
4310
  children,
4229
4311
  className,
4230
- closeMode = DEFAULT_PROPS$X.closeMode,
4231
- elevation = DEFAULT_PROPS$X.elevation,
4312
+ closeMode = DEFAULT_PROPS$Y.closeMode,
4313
+ elevation = DEFAULT_PROPS$Y.elevation,
4232
4314
  hasArrow,
4233
4315
  isOpen,
4234
4316
  position,
@@ -4238,7 +4320,7 @@ const Popover$1 = (props, {
4238
4320
  // Framework-specific
4239
4321
  ref,
4240
4322
  arrowRef,
4241
- usePortal = DEFAULT_PROPS$X.usePortal,
4323
+ usePortal = DEFAULT_PROPS$Y.usePortal,
4242
4324
  clickAwayCallback,
4243
4325
  clickAwayRefs,
4244
4326
  unmountSentinel,
@@ -6636,27 +6718,27 @@ const _InnerPopover = forwardRef((props, ref) => {
6636
6718
  as,
6637
6719
  children,
6638
6720
  className,
6639
- closeMode = DEFAULT_PROPS$X.closeMode,
6721
+ closeMode = DEFAULT_PROPS$Y.closeMode,
6640
6722
  closeOnClickAway,
6641
6723
  closeOnEscape,
6642
- elevation = DEFAULT_PROPS$X.elevation,
6724
+ elevation = DEFAULT_PROPS$Y.elevation,
6643
6725
  focusElement,
6644
6726
  hasArrow,
6645
6727
  isOpen,
6646
6728
  onClose,
6647
6729
  parentElement,
6648
- usePortal = DEFAULT_PROPS$X.usePortal,
6649
- focusAnchorOnClose = DEFAULT_PROPS$X.focusAnchorOnClose,
6730
+ usePortal = DEFAULT_PROPS$Y.usePortal,
6731
+ focusAnchorOnClose = DEFAULT_PROPS$Y.focusAnchorOnClose,
6650
6732
  withFocusTrap,
6651
6733
  boundaryRef,
6652
6734
  fitToAnchorWidth,
6653
6735
  fitWithinViewportHeight,
6654
6736
  focusTrapZoneElement,
6655
6737
  offset,
6656
- placement = DEFAULT_PROPS$X.placement,
6738
+ placement = DEFAULT_PROPS$Y.placement,
6657
6739
  style,
6658
6740
  theme,
6659
- zIndex = DEFAULT_PROPS$X.zIndex,
6741
+ zIndex = DEFAULT_PROPS$Y.zIndex,
6660
6742
  ...forwardedProps
6661
6743
  } = props;
6662
6744
  const popoverRef = useRef(null);
@@ -6730,7 +6812,7 @@ const Popover = skipRender(
6730
6812
  () => Boolean(DOCUMENT), _InnerPopover);
6731
6813
  Popover.displayName = COMPONENT_NAME$_;
6732
6814
  Popover.className = CLASSNAME$$;
6733
- Popover.defaultProps = DEFAULT_PROPS$X;
6815
+ Popover.defaultProps = DEFAULT_PROPS$Y;
6734
6816
 
6735
6817
  // The error margin in px we want to have for triggering infinite scroll
6736
6818
  const SCROLL_TRIGGER_MARGIN = 5;
@@ -6790,7 +6872,7 @@ const {
6790
6872
  /**
6791
6873
  * Component default props.
6792
6874
  */
6793
- const DEFAULT_PROPS$W = {
6875
+ const DEFAULT_PROPS$X = {
6794
6876
  closeOnClick: true,
6795
6877
  closeOnClickAway: true,
6796
6878
  closeOnEscape: true,
@@ -6813,18 +6895,18 @@ const Dropdown = forwardRef((props, ref) => {
6813
6895
  anchorRef,
6814
6896
  children,
6815
6897
  className,
6816
- closeOnClick = DEFAULT_PROPS$W.closeOnClick,
6817
- closeOnClickAway = DEFAULT_PROPS$W.closeOnClickAway,
6818
- closeOnEscape = DEFAULT_PROPS$W.closeOnEscape,
6819
- fitToAnchorWidth = DEFAULT_PROPS$W.fitToAnchorWidth,
6820
- fitWithinViewportHeight = DEFAULT_PROPS$W.fitWithinViewportHeight,
6898
+ closeOnClick = DEFAULT_PROPS$X.closeOnClick,
6899
+ closeOnClickAway = DEFAULT_PROPS$X.closeOnClickAway,
6900
+ closeOnEscape = DEFAULT_PROPS$X.closeOnEscape,
6901
+ fitToAnchorWidth = DEFAULT_PROPS$X.fitToAnchorWidth,
6902
+ fitWithinViewportHeight = DEFAULT_PROPS$X.fitWithinViewportHeight,
6821
6903
  isOpen,
6822
6904
  offset,
6823
- focusAnchorOnClose = DEFAULT_PROPS$W.focusAnchorOnClose,
6905
+ focusAnchorOnClose = DEFAULT_PROPS$X.focusAnchorOnClose,
6824
6906
  onClose,
6825
6907
  onInfiniteScroll,
6826
- placement = DEFAULT_PROPS$W.placement,
6827
- shouldFocusOnOpen = DEFAULT_PROPS$W.shouldFocusOnOpen,
6908
+ placement = DEFAULT_PROPS$X.placement,
6909
+ shouldFocusOnOpen = DEFAULT_PROPS$X.shouldFocusOnOpen,
6828
6910
  zIndex,
6829
6911
  ...forwardedProps
6830
6912
  } = props;
@@ -6870,7 +6952,7 @@ const Dropdown = forwardRef((props, ref) => {
6870
6952
  });
6871
6953
  Dropdown.displayName = COMPONENT_NAME$Z;
6872
6954
  Dropdown.className = CLASSNAME$_;
6873
- Dropdown.defaultProps = DEFAULT_PROPS$W;
6955
+ Dropdown.defaultProps = DEFAULT_PROPS$X;
6874
6956
 
6875
6957
  /**
6876
6958
  * Component display name.
@@ -6889,7 +6971,7 @@ const {
6889
6971
  /**
6890
6972
  * Component default props.
6891
6973
  */
6892
- const DEFAULT_PROPS$V = {
6974
+ const DEFAULT_PROPS$W = {
6893
6975
  closeMode: 'unmount'
6894
6976
  };
6895
6977
  const isDragHandle = isComponent(DragHandle);
@@ -6907,7 +6989,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
6907
6989
  const defaultTheme = useTheme() || Theme$1.light;
6908
6990
  const {
6909
6991
  className,
6910
- closeMode = DEFAULT_PROPS$V.closeMode,
6992
+ closeMode = DEFAULT_PROPS$W.closeMode,
6911
6993
  children: anyChildren,
6912
6994
  hasBackground,
6913
6995
  hasHeaderDivider,
@@ -7024,11 +7106,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
7024
7106
  });
7025
7107
  ExpansionPanel.displayName = COMPONENT_NAME$Y;
7026
7108
  ExpansionPanel.className = CLASSNAME$Z;
7027
- ExpansionPanel.defaultProps = DEFAULT_PROPS$V;
7109
+ ExpansionPanel.defaultProps = DEFAULT_PROPS$W;
7028
7110
 
7029
7111
  const COMPONENT_NAME$X = 'Flag';
7030
7112
  const CLASSNAME$Y = 'lumx-flag';
7031
- const DEFAULT_PROPS$U = {};
7113
+ const DEFAULT_PROPS$V = {};
7032
7114
  const {
7033
7115
  block: block$O,
7034
7116
  element: element$C
@@ -7092,7 +7174,7 @@ const Flag = forwardRef((props, ref) => {
7092
7174
  });
7093
7175
  Flag.displayName = COMPONENT_NAME$X;
7094
7176
  Flag.className = CLASSNAME$Y;
7095
- Flag.defaultProps = DEFAULT_PROPS$U;
7177
+ Flag.defaultProps = DEFAULT_PROPS$V;
7096
7178
 
7097
7179
  /**
7098
7180
  * Defines the props of the component.
@@ -7180,15 +7262,67 @@ const CLASSNAME$W = 'lumx-generic-block';
7180
7262
  const {
7181
7263
  block: block$M,
7182
7264
  element: element$B
7183
- } = classNames.bem(CLASSNAME$W);
7265
+ } = bem(CLASSNAME$W);
7184
7266
 
7185
7267
  /**
7186
7268
  * Component default props.
7187
7269
  */
7188
- const DEFAULT_PROPS$T = {
7189
- gap: Size$1.big,
7190
- orientation: Orientation$1.horizontal
7270
+ const DEFAULT_PROPS$U = {
7271
+ gap: Size.big,
7272
+ orientation: Orientation.horizontal
7191
7273
  };
7274
+
7275
+ /**
7276
+ * The GenericBlock is a layout component made of 3 sections that can be
7277
+ * displayed either horizontally of vertically with the same gap between each section.
7278
+ *
7279
+ * The sections are:
7280
+ * - `Figure` => A visual element to display before the main content.
7281
+ * - `Content` => The main content displayed
7282
+ * - `Actions` => One or more actions to set after the element.
7283
+ *
7284
+ * @see https://www.figma.com/file/lzzrQmsfaXRaOyRfoEogPZ/DS%3A-playground?node-id=1%3A4076
7285
+ */
7286
+ const GenericBlock$1 = props => {
7287
+ const {
7288
+ className,
7289
+ figure,
7290
+ figureProps,
7291
+ children,
7292
+ actions,
7293
+ actionsProps,
7294
+ gap = DEFAULT_PROPS$U.gap,
7295
+ ref,
7296
+ content,
7297
+ orientation = DEFAULT_PROPS$U.orientation,
7298
+ contentProps,
7299
+ FlexBox,
7300
+ ...forwardedProps
7301
+ } = props;
7302
+ return /*#__PURE__*/jsxs(FlexBox, {
7303
+ ref: ref,
7304
+ className: classnames(className, block$M()),
7305
+ gap: gap,
7306
+ orientation: orientation,
7307
+ ...forwardedProps,
7308
+ children: [figure && /*#__PURE__*/jsx(FlexBox, {
7309
+ ...figureProps,
7310
+ className: classnames(figureProps?.className, element$B('figure')),
7311
+ children: figure
7312
+ }), content && /*#__PURE__*/jsx(FlexBox, {
7313
+ orientation: Orientation.vertical,
7314
+ fillSpace: true,
7315
+ ...contentProps,
7316
+ className: classnames(contentProps?.className, element$B('content')),
7317
+ children: content
7318
+ }), actions && /*#__PURE__*/jsx(FlexBox, {
7319
+ ...actionsProps,
7320
+ className: classnames(actionsProps?.className, element$B('actions')),
7321
+ children: actions
7322
+ })]
7323
+ });
7324
+ };
7325
+
7192
7326
  const Figure = noop$1.bind({});
7193
7327
  const isFigure = isComponentType(Figure);
7194
7328
  const Content = noop$1.bind({});
@@ -7209,14 +7343,11 @@ const isActions = isComponentType(Actions);
7209
7343
  */
7210
7344
  const BaseGenericBlock = forwardRef((props, ref) => {
7211
7345
  const {
7212
- className,
7213
7346
  figure,
7214
7347
  figureProps,
7215
7348
  children,
7216
7349
  actions,
7217
7350
  actionsProps,
7218
- gap = DEFAULT_PROPS$T.gap,
7219
- orientation = DEFAULT_PROPS$T.orientation,
7220
7351
  contentProps,
7221
7352
  ...forwardedProps
7222
7353
  } = props;
@@ -7233,44 +7364,49 @@ const BaseGenericBlock = forwardRef((props, ref) => {
7233
7364
  otherChildren: otherChildren.filter(child => !isEmpty(child))
7234
7365
  };
7235
7366
  }, [children]);
7236
- return /*#__PURE__*/jsxs(FlexBox, {
7237
- ref: ref,
7238
- className: classNames.join(className, block$M()),
7239
- gap: gap,
7240
- orientation: orientation,
7367
+ const alignProps = {
7368
+ vAlign: forwardedProps.vAlign,
7369
+ hAlign: forwardedProps.hAlign
7370
+ };
7371
+ return GenericBlock$1({
7241
7372
  ...forwardedProps,
7242
- children: [(figure || sections.figureChildProps?.children) && /*#__PURE__*/jsxs(FlexBox, {
7243
- ref: sections.figureChild?.ref,
7244
- vAlign: forwardedProps.vAlign,
7245
- hAlign: forwardedProps.hAlign,
7246
- ...figureProps,
7247
- ...sections.figureChildProps,
7248
- className: classNames.join(figureProps?.className, sections.figureChildProps?.className, element$B('figure')),
7249
- children: [figure, sections.figureChildProps?.children]
7250
- }), (sections.contentChildProps?.children || sections.otherChildren.length > 0) && /*#__PURE__*/jsxs(FlexBox, {
7251
- ref: sections.contentChild?.ref,
7252
- orientation: Orientation$1.vertical,
7253
- fillSpace: true,
7254
- vAlign: forwardedProps.vAlign,
7255
- hAlign: forwardedProps.hAlign,
7256
- ...contentProps,
7257
- ...sections.contentChildProps,
7258
- className: classNames.join(contentProps?.className, sections.contentChildProps?.className, element$B('content')),
7259
- children: [sections.contentChildProps?.children, sections.otherChildren]
7260
- }), (actions || sections.actionsChildProps?.children) && /*#__PURE__*/jsxs(FlexBox, {
7373
+ ref,
7374
+ FlexBox,
7375
+ actionsProps: {
7261
7376
  ref: sections.actionsChild?.ref,
7262
- vAlign: forwardedProps.vAlign,
7263
- hAlign: forwardedProps.hAlign,
7377
+ ...alignProps,
7264
7378
  ...actionsProps,
7265
7379
  ...sections.actionsChildProps,
7266
- className: classNames.join(actionsProps?.className, sections.actionsChildProps?.className, element$B('actions')),
7380
+ className: classNames.join(actionsProps?.className, sections.actionsChildProps?.className)
7381
+ },
7382
+ actions: actions || sections.actionsChildProps?.children ? /*#__PURE__*/jsxs(Fragment, {
7267
7383
  children: [actions, sections.actionsChildProps?.children]
7268
- })]
7384
+ }) : undefined,
7385
+ contentProps: {
7386
+ ref: sections.contentChild?.ref,
7387
+ ...alignProps,
7388
+ ...contentProps,
7389
+ ...sections.contentChildProps,
7390
+ className: classNames.join(contentProps?.className, sections.contentChildProps?.className)
7391
+ },
7392
+ content: sections.contentChildProps?.children || sections.otherChildren.length > 0 ? /*#__PURE__*/jsxs(Fragment, {
7393
+ children: [sections.contentChildProps?.children, sections.otherChildren]
7394
+ }) : undefined,
7395
+ figureProps: {
7396
+ ref: sections.figureChild?.ref,
7397
+ ...alignProps,
7398
+ ...figureProps,
7399
+ ...sections.figureChildProps,
7400
+ className: classNames.join(figureProps?.className, sections.figureChildProps?.className)
7401
+ },
7402
+ figure: figure || sections.figureChildProps?.children ? /*#__PURE__*/jsxs(Fragment, {
7403
+ children: [figure, sections.figureChildProps?.children]
7404
+ }) : undefined
7269
7405
  });
7270
7406
  });
7271
7407
  BaseGenericBlock.displayName = COMPONENT_NAME$V;
7272
7408
  BaseGenericBlock.className = CLASSNAME$W;
7273
- BaseGenericBlock.defaultProps = DEFAULT_PROPS$T;
7409
+ BaseGenericBlock.defaultProps = DEFAULT_PROPS$U;
7274
7410
  const GenericBlock = Object.assign(BaseGenericBlock, {
7275
7411
  Figure,
7276
7412
  Content,
@@ -7280,7 +7416,7 @@ const GenericBlock = Object.assign(BaseGenericBlock, {
7280
7416
  /**
7281
7417
  * Accepted gap sizes for the generic block.
7282
7418
  */
7283
- const GenericBlockGapSize = pick(Size$1, ['tiny', 'regular', 'medium', 'big', 'huge']);
7419
+ const GenericBlockGapSize = pick(Size, ['tiny', 'regular', 'medium', 'big', 'huge']);
7284
7420
 
7285
7421
  /** The maximum authorized heading level. */
7286
7422
  const MAX_HEADING_LEVEL = 6;
@@ -7318,7 +7454,7 @@ const CLASSNAME$V = 'lumx-heading';
7318
7454
  /**
7319
7455
  * Component default props.
7320
7456
  */
7321
- const DEFAULT_PROPS$S = {};
7457
+ const DEFAULT_PROPS$T = {};
7322
7458
 
7323
7459
  /**
7324
7460
  * Get Heading component common props
@@ -7419,7 +7555,7 @@ const {
7419
7555
  /**
7420
7556
  * Component default props.
7421
7557
  */
7422
- const DEFAULT_PROPS$R = {};
7558
+ const DEFAULT_PROPS$S = {};
7423
7559
 
7424
7560
  /**
7425
7561
  * Text component common props
@@ -7506,7 +7642,7 @@ const Text = forwardRef((props, ref) => {
7506
7642
  });
7507
7643
  Text.displayName = COMPONENT_NAME$T;
7508
7644
  Text.className = CLASSNAME$U;
7509
- Text.defaultProps = DEFAULT_PROPS$R;
7645
+ Text.defaultProps = DEFAULT_PROPS$S;
7510
7646
 
7511
7647
  const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
7512
7648
 
@@ -7543,7 +7679,7 @@ const Heading = forwardRef((props, ref) => {
7543
7679
  });
7544
7680
  Heading.displayName = COMPONENT_NAME$U;
7545
7681
  Heading.className = CLASSNAME$V;
7546
- Heading.defaultProps = DEFAULT_PROPS$S;
7682
+ Heading.defaultProps = DEFAULT_PROPS$T;
7547
7683
 
7548
7684
  /**
7549
7685
  * Computes the next heading level based on the optional prop level or the parent context level.
@@ -7594,7 +7730,7 @@ const {
7594
7730
  /**
7595
7731
  * Component default props.
7596
7732
  */
7597
- const DEFAULT_PROPS$Q = {
7733
+ const DEFAULT_PROPS$R = {
7598
7734
  orientation: Orientation$1.horizontal,
7599
7735
  wrap: 'nowrap'
7600
7736
  };
@@ -7612,9 +7748,9 @@ const Grid = forwardRef((props, ref) => {
7612
7748
  className,
7613
7749
  gutter,
7614
7750
  hAlign,
7615
- orientation = DEFAULT_PROPS$Q.orientation,
7751
+ orientation = DEFAULT_PROPS$R.orientation,
7616
7752
  vAlign,
7617
- wrap = DEFAULT_PROPS$Q.wrap,
7753
+ wrap = DEFAULT_PROPS$R.wrap,
7618
7754
  ...forwardedProps
7619
7755
  } = props;
7620
7756
  return /*#__PURE__*/jsx("div", {
@@ -7632,7 +7768,7 @@ const Grid = forwardRef((props, ref) => {
7632
7768
  });
7633
7769
  Grid.displayName = COMPONENT_NAME$S;
7634
7770
  Grid.className = CLASSNAME$T;
7635
- Grid.defaultProps = DEFAULT_PROPS$Q;
7771
+ Grid.defaultProps = DEFAULT_PROPS$R;
7636
7772
 
7637
7773
  /**
7638
7774
  * Component display name.
@@ -7690,7 +7826,7 @@ const CLASSNAME$R = 'lumx-grid-column';
7690
7826
  /**
7691
7827
  * Component default props.
7692
7828
  */
7693
- const DEFAULT_PROPS$P = {};
7829
+ const DEFAULT_PROPS$Q = {};
7694
7830
 
7695
7831
  /**
7696
7832
  * The GridColumn is a layout component that can display children in a grid
@@ -7727,7 +7863,7 @@ const GridColumn$1 = props => {
7727
7863
  };
7728
7864
  GridColumn$1.displayName = COMPONENT_NAME$Q;
7729
7865
  GridColumn$1.className = CLASSNAME$R;
7730
- GridColumn$1.defaultProps = DEFAULT_PROPS$P;
7866
+ GridColumn$1.defaultProps = DEFAULT_PROPS$Q;
7731
7867
 
7732
7868
  /**
7733
7869
  * Defines the props of the component.
@@ -7738,7 +7874,7 @@ GridColumn$1.defaultProps = DEFAULT_PROPS$P;
7738
7874
  /**
7739
7875
  * Component default props.
7740
7876
  */
7741
- const DEFAULT_PROPS$O = {};
7877
+ const DEFAULT_PROPS$P = {};
7742
7878
 
7743
7879
  /**
7744
7880
  * The GridColumn is a layout component that can display children in a grid
@@ -7757,7 +7893,7 @@ const GridColumn = forwardRef((props, ref) => {
7757
7893
  });
7758
7894
  GridColumn.displayName = COMPONENT_NAME$Q;
7759
7895
  GridColumn.className = CLASSNAME$R;
7760
- GridColumn.defaultProps = DEFAULT_PROPS$O;
7896
+ GridColumn.defaultProps = DEFAULT_PROPS$P;
7761
7897
 
7762
7898
  /**
7763
7899
  * Icon component.
@@ -7875,7 +8011,7 @@ const {
7875
8011
  /**
7876
8012
  * Component default props.
7877
8013
  */
7878
- const DEFAULT_PROPS$N = {
8014
+ const DEFAULT_PROPS$O = {
7879
8015
  captionPosition: ImageBlockCaptionPosition.below,
7880
8016
  align: Alignment.left
7881
8017
  };
@@ -7891,9 +8027,9 @@ const ImageBlock = forwardRef((props, ref) => {
7891
8027
  const defaultTheme = useTheme() || Theme$1.light;
7892
8028
  const {
7893
8029
  actions,
7894
- align = DEFAULT_PROPS$N.align,
8030
+ align = DEFAULT_PROPS$O.align,
7895
8031
  alt,
7896
- captionPosition = DEFAULT_PROPS$N.captionPosition,
8032
+ captionPosition = DEFAULT_PROPS$O.captionPosition,
7897
8033
  captionStyle,
7898
8034
  className,
7899
8035
  description,
@@ -7947,7 +8083,7 @@ const ImageBlock = forwardRef((props, ref) => {
7947
8083
  });
7948
8084
  ImageBlock.displayName = COMPONENT_NAME$P;
7949
8085
  ImageBlock.className = CLASSNAME$Q;
7950
- ImageBlock.defaultProps = DEFAULT_PROPS$N;
8086
+ ImageBlock.defaultProps = DEFAULT_PROPS$O;
7951
8087
 
7952
8088
  /**
7953
8089
  * Component display name.
@@ -8707,7 +8843,7 @@ const {
8707
8843
  /**
8708
8844
  * Component default props.
8709
8845
  */
8710
- const DEFAULT_PROPS$M = {};
8846
+ const DEFAULT_PROPS$N = {};
8711
8847
 
8712
8848
  /**
8713
8849
  * InlineList component.
@@ -8760,7 +8896,7 @@ const InlineList = forwardRef((props, ref) => {
8760
8896
  });
8761
8897
  InlineList.displayName = COMPONENT_NAME$N;
8762
8898
  InlineList.className = CLASSNAME$O;
8763
- InlineList.defaultProps = DEFAULT_PROPS$M;
8899
+ InlineList.defaultProps = DEFAULT_PROPS$N;
8764
8900
 
8765
8901
  /**
8766
8902
  * InputHelper component.
@@ -9058,7 +9194,7 @@ const {
9058
9194
  /**
9059
9195
  * Component default props.
9060
9196
  */
9061
- const DEFAULT_PROPS$L = {
9197
+ const DEFAULT_PROPS$M = {
9062
9198
  size: Size$1.regular,
9063
9199
  titleHeading: 'h2'
9064
9200
  };
@@ -9078,11 +9214,11 @@ const LinkPreview = forwardRef((props, ref) => {
9078
9214
  link,
9079
9215
  linkAs,
9080
9216
  linkProps,
9081
- size = DEFAULT_PROPS$L.size,
9217
+ size = DEFAULT_PROPS$M.size,
9082
9218
  theme = defaultTheme,
9083
9219
  thumbnailProps,
9084
9220
  title,
9085
- titleHeading = DEFAULT_PROPS$L.titleHeading,
9221
+ titleHeading = DEFAULT_PROPS$M.titleHeading,
9086
9222
  ...forwardedProps
9087
9223
  } = props;
9088
9224
  // Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
@@ -9150,7 +9286,90 @@ const LinkPreview = forwardRef((props, ref) => {
9150
9286
  });
9151
9287
  LinkPreview.displayName = COMPONENT_NAME$K;
9152
9288
  LinkPreview.className = CLASSNAME$L;
9153
- LinkPreview.defaultProps = DEFAULT_PROPS$L;
9289
+ LinkPreview.defaultProps = DEFAULT_PROPS$M;
9290
+
9291
+ /**
9292
+ * Component display name.
9293
+ */
9294
+ const COMPONENT_NAME$J = 'ListItem';
9295
+
9296
+ /**
9297
+ * Component default class name and class prefix.
9298
+ */
9299
+ const CLASSNAME$K = 'lumx-list-item';
9300
+ const {
9301
+ block: block$D,
9302
+ element: element$t
9303
+ } = bem(CLASSNAME$K);
9304
+
9305
+ /**
9306
+ * Component default props.
9307
+ */
9308
+ const DEFAULT_PROPS$L = {
9309
+ size: Size.regular
9310
+ };
9311
+
9312
+ /**
9313
+ * ListItem component.
9314
+ *
9315
+ * @param props Component props.
9316
+ * @return JSX element.
9317
+ */
9318
+ const ListItem$1 = props => {
9319
+ const {
9320
+ after,
9321
+ before,
9322
+ children,
9323
+ className,
9324
+ isHighlighted,
9325
+ isSelected,
9326
+ isDisabled,
9327
+ 'aria-disabled': ariaDisabled,
9328
+ linkAs,
9329
+ linkProps = {},
9330
+ linkRef,
9331
+ handleClick,
9332
+ size = DEFAULT_PROPS$L.size,
9333
+ ref,
9334
+ ...forwardedProps
9335
+ } = props;
9336
+ const clickable = !!linkAs || linkProps?.href || handleClick;
9337
+ return /*#__PURE__*/jsx("li", {
9338
+ ref: ref,
9339
+ ...forwardedProps,
9340
+ className: classnames(className, block$D({
9341
+ [`size-${size}`]: Boolean(size)
9342
+ })),
9343
+ children: RawClickable({
9344
+ as: clickable ? linkAs || (linkProps.href ? 'a' : 'button') : 'div',
9345
+ isDisabled,
9346
+ 'aria-disabled': ariaDisabled,
9347
+ ...linkProps,
9348
+ className: element$t(clickable ? 'link' : 'wrapper', {
9349
+ 'is-highlighted': isHighlighted,
9350
+ 'is-selected': isSelected,
9351
+ 'is-disabled': isDisabled || ariaDisabled === 'true'
9352
+ }),
9353
+ handleClick,
9354
+ ref: linkRef,
9355
+ children: /*#__PURE__*/jsxs(Fragment, {
9356
+ children: [before && /*#__PURE__*/jsx("div", {
9357
+ className: element$t('before'),
9358
+ children: before
9359
+ }), /*#__PURE__*/jsx("div", {
9360
+ className: element$t('content'),
9361
+ children: children
9362
+ }), after && /*#__PURE__*/jsx("div", {
9363
+ className: element$t('after'),
9364
+ children: after
9365
+ })]
9366
+ })
9367
+ })
9368
+ });
9369
+ };
9370
+ ListItem$1.displayName = COMPONENT_NAME$J;
9371
+ ListItem$1.className = CLASSNAME$K;
9372
+ ListItem$1.defaultProps = DEFAULT_PROPS$L;
9154
9373
 
9155
9374
  /**
9156
9375
  * ListItemAction props.
@@ -9159,12 +9378,12 @@ LinkPreview.defaultProps = DEFAULT_PROPS$L;
9159
9378
  /**
9160
9379
  * Component display name.
9161
9380
  */
9162
- const COMPONENT_NAME$J = 'ListItemAction';
9381
+ const COMPONENT_NAME$I = 'ListItemAction';
9163
9382
 
9164
9383
  /**
9165
9384
  * Component classname (used by action area CSS pattern).
9166
9385
  */
9167
- const CLASSNAME$K = 'lumx-action-area__action';
9386
+ const CLASSNAME$J = 'lumx-action-area__action';
9168
9387
  const DEFAULT_PROPS$K = {};
9169
9388
 
9170
9389
  /**
@@ -9227,43 +9446,14 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
9227
9446
  children
9228
9447
  });
9229
9448
  }), {
9230
- displayName: COMPONENT_NAME$J,
9231
- className: CLASSNAME$K,
9449
+ displayName: COMPONENT_NAME$I,
9450
+ className: CLASSNAME$J,
9232
9451
  defaultProps: DEFAULT_PROPS$K
9233
9452
  });
9234
9453
 
9235
9454
  /**
9236
- * Component display name.
9237
- */
9238
- const COMPONENT_NAME$I = 'ListItem';
9239
-
9240
- /**
9241
- * Component default class name and class prefix.
9242
- */
9243
- const CLASSNAME$J = 'lumx-list-item';
9244
- const {
9245
- block: block$D,
9246
- element: element$t
9247
- } = classNames.bem(CLASSNAME$J);
9248
-
9249
- /**
9250
- * Component default props.
9251
- */
9252
- const DEFAULT_PROPS$J = {
9253
- size: Size$1.regular
9254
- };
9255
-
9256
- /**
9257
- * Check if the list item is clickable.
9258
- * @return `true` if the list item is clickable; `false` otherwise.
9455
+ * Defines the props of the component.
9259
9456
  */
9260
- function isClickable({
9261
- linkAs,
9262
- linkProps,
9263
- onItemSelected
9264
- }) {
9265
- return !!linkAs || !isEmpty(linkProps?.href) || !!onItemSelected;
9266
- }
9267
9457
 
9268
9458
  /**
9269
9459
  * ListItem component.
@@ -9274,68 +9464,31 @@ function isClickable({
9274
9464
  */
9275
9465
  const _ListItem = forwardRef((props, ref) => {
9276
9466
  const {
9277
- isAnyDisabled,
9278
9467
  disabledStateProps,
9279
9468
  otherProps
9280
9469
  } = useDisableStateProps(props);
9281
9470
  const {
9282
- after,
9283
- before,
9284
- children,
9285
- className,
9286
- isHighlighted,
9287
- isSelected,
9288
- linkAs,
9289
- linkProps = {},
9290
- linkRef,
9291
9471
  onItemSelected,
9292
9472
  onClick,
9293
- size = DEFAULT_PROPS$J.size,
9473
+ linkRef,
9294
9474
  ...forwardedProps
9295
9475
  } = otherProps;
9296
- const clickable = isClickable({
9297
- linkAs,
9298
- linkProps,
9299
- onItemSelected: onItemSelected || onClick
9300
- });
9301
- return /*#__PURE__*/jsx("li", {
9302
- ref: ref,
9476
+ const handleClick = event => {
9477
+ onItemSelected?.(event);
9478
+ onClick?.(event);
9479
+ };
9480
+ return ListItem$1({
9303
9481
  ...forwardedProps,
9304
- className: classNames.join(className, block$D({
9305
- [`size-${size}`]: Boolean(size)
9306
- })),
9307
- children: RawClickable({
9308
- as: clickable ? linkAs || (linkProps.href ? 'a' : 'button') : 'div',
9309
- ...disabledStateProps,
9310
- ...linkProps,
9311
- className: classNames.join(element$t(clickable ? 'link' : 'wrapper', {
9312
- 'is-highlighted': isHighlighted,
9313
- 'is-selected': isSelected,
9314
- 'is-disabled': isAnyDisabled
9315
- })),
9316
- handleClick(event) {
9317
- onItemSelected?.(event);
9318
- onClick?.(event);
9319
- },
9320
- ref: linkRef,
9321
- children: /*#__PURE__*/jsxs(Fragment, {
9322
- children: [before && /*#__PURE__*/jsx("div", {
9323
- className: element$t('before'),
9324
- children: before
9325
- }), /*#__PURE__*/jsx("div", {
9326
- className: element$t('content'),
9327
- children: children
9328
- }), after && /*#__PURE__*/jsx("div", {
9329
- className: element$t('after'),
9330
- children: after
9331
- })]
9332
- })
9333
- })
9482
+ isDisabled: disabledStateProps.disabled,
9483
+ 'aria-disabled': disabledStateProps['aria-disabled'],
9484
+ ref,
9485
+ linkRef,
9486
+ handleClick: onItemSelected || props.onClick ? handleClick : undefined
9334
9487
  });
9335
9488
  });
9336
- _ListItem.displayName = COMPONENT_NAME$I;
9337
- _ListItem.className = CLASSNAME$J;
9338
- _ListItem.defaultProps = DEFAULT_PROPS$J;
9489
+ _ListItem.displayName = COMPONENT_NAME$J;
9490
+ _ListItem.className = CLASSNAME$K;
9491
+ _ListItem.defaultProps = DEFAULT_PROPS$L;
9339
9492
 
9340
9493
  /**
9341
9494
  * ListItem component with Action sub-component.
@@ -9355,28 +9508,56 @@ const COMPONENT_NAME$H = 'ListDivider';
9355
9508
  */
9356
9509
  const CLASSNAME$I = 'lumx-list-divider';
9357
9510
 
9511
+ /**
9512
+ * Component default props.
9513
+ */
9514
+ const DEFAULT_PROPS$J = {};
9515
+
9358
9516
  /**
9359
9517
  * ListDivider component.
9360
9518
  * Purely decorative, consider a `ListSection` with label for a better list structure.
9361
9519
  *
9362
9520
  * @param props Component props.
9363
- * @param ref Component ref.
9364
- * @return React element.
9521
+ * @return JSX element.
9365
9522
  */
9366
- const ListDivider = forwardRef((props, ref) => {
9523
+ const ListDivider$1 = props => {
9367
9524
  const {
9368
9525
  className,
9526
+ ref,
9369
9527
  ...forwardedProps
9370
9528
  } = props;
9371
9529
  return /*#__PURE__*/jsx("li", {
9372
9530
  ref: ref,
9373
9531
  role: "none",
9374
9532
  ...forwardedProps,
9375
- className: classNames.join(className, CLASSNAME$I)
9533
+ className: classnames(className, CLASSNAME$I)
9534
+ });
9535
+ };
9536
+ ListDivider$1.displayName = COMPONENT_NAME$H;
9537
+ ListDivider$1.className = CLASSNAME$I;
9538
+ ListDivider$1.defaultProps = DEFAULT_PROPS$J;
9539
+
9540
+ /**
9541
+ * Defines the props of the component.
9542
+ */
9543
+
9544
+ /**
9545
+ * ListDivider component.
9546
+ * Purely decorative, consider a `ListSection` with label for a better list structure.
9547
+ *
9548
+ * @param props Component props.
9549
+ * @param ref Component ref.
9550
+ * @return React element.
9551
+ */
9552
+ const ListDivider = forwardRef((props, ref) => {
9553
+ return ListDivider$1({
9554
+ ...props,
9555
+ ref
9376
9556
  });
9377
9557
  });
9378
9558
  ListDivider.displayName = COMPONENT_NAME$H;
9379
9559
  ListDivider.className = CLASSNAME$I;
9560
+ ListDivider.defaultProps = DEFAULT_PROPS$J;
9380
9561
 
9381
9562
  /**
9382
9563
  * Component display name.
@@ -15680,7 +15861,7 @@ const UploaderVariant = {
15680
15861
  */
15681
15862
 
15682
15863
  /**
15683
- * Extend native HTML input props with specialized `onChange` providing the a `File` array.
15864
+ * Native input file props (framework-agnostic subset).
15684
15865
  */
15685
15866
 
15686
15867
  /**
@@ -15699,17 +15880,83 @@ const CLASSNAME$1 = 'lumx-uploader';
15699
15880
  const {
15700
15881
  block: block$1,
15701
15882
  element: element$1
15702
- } = classNames.bem(CLASSNAME$1);
15883
+ } = bem(CLASSNAME$1);
15703
15884
 
15704
15885
  /**
15705
15886
  * Component default props.
15706
15887
  */
15707
15888
  const DEFAULT_PROPS$1 = {
15708
- aspectRatio: AspectRatio$1.horizontal,
15709
- size: Size$1.xl,
15889
+ aspectRatio: AspectRatio.horizontal,
15890
+ size: Size.xl,
15710
15891
  variant: UploaderVariant.square
15711
15892
  };
15712
15893
 
15894
+ /**
15895
+ * Uploader component.
15896
+ *
15897
+ * @param props Component props.
15898
+ * @param ref Component ref.
15899
+ * @return React element.
15900
+ */
15901
+ const Uploader$1 = props => {
15902
+ const {
15903
+ aspectRatio = DEFAULT_PROPS$1.aspectRatio,
15904
+ className,
15905
+ label,
15906
+ icon,
15907
+ size = DEFAULT_PROPS$1.size,
15908
+ theme,
15909
+ variant = DEFAULT_PROPS$1.variant,
15910
+ isAnyDisabled,
15911
+ fileInputProps,
15912
+ inputId,
15913
+ isDragHovering,
15914
+ handleClick,
15915
+ handleChange,
15916
+ Component = 'label',
15917
+ ref,
15918
+ ...forwardedProps
15919
+ } = props;
15920
+ // Adjust to square aspect ratio when using circle variants.
15921
+ const adjustedAspectRatio = variant === UploaderVariant.circle ? AspectRatio.square : aspectRatio;
15922
+ return /*#__PURE__*/jsxs(Component, {
15923
+ ref: ref,
15924
+ ...forwardedProps,
15925
+ onClick: handleClick,
15926
+ className: classnames(className, block$1({
15927
+ [`aspect-ratio-${adjustedAspectRatio}`]: Boolean(adjustedAspectRatio),
15928
+ [`size-${size}`]: Boolean(size),
15929
+ [`theme-${theme}`]: Boolean(theme),
15930
+ [`variant-${variant}`]: Boolean(variant),
15931
+ 'is-drag-hovering': isDragHovering,
15932
+ 'is-disabled': isAnyDisabled
15933
+ })),
15934
+ children: [/*#__PURE__*/jsx("span", {
15935
+ className: element$1('background')
15936
+ }), /*#__PURE__*/jsxs("span", {
15937
+ className: element$1('wrapper'),
15938
+ children: [icon && Icon$1({
15939
+ className: element$1('icon'),
15940
+ icon,
15941
+ size: Size.s
15942
+ }), label && /*#__PURE__*/jsx("span", {
15943
+ className: element$1('label'),
15944
+ children: label
15945
+ })]
15946
+ }), fileInputProps && /*#__PURE__*/jsx("input", {
15947
+ type: "file",
15948
+ id: inputId,
15949
+ className: classnames(element$1('input'), visuallyHidden()),
15950
+ ...fileInputProps,
15951
+ onChange: handleChange
15952
+ })]
15953
+ });
15954
+ };
15955
+
15956
+ /**
15957
+ * Defines the props of the component.
15958
+ */
15959
+
15713
15960
  /**
15714
15961
  * Uploader component.
15715
15962
  *
@@ -15725,19 +15972,11 @@ const Uploader = forwardRef((props, ref) => {
15725
15972
  } = useDisableStateProps(props);
15726
15973
  const defaultTheme = useTheme() || Theme$1.light;
15727
15974
  const {
15728
- aspectRatio = DEFAULT_PROPS$1.aspectRatio,
15729
- className,
15730
- label,
15731
- icon,
15732
- size = DEFAULT_PROPS$1.size,
15733
15975
  theme = defaultTheme,
15734
- variant = DEFAULT_PROPS$1.variant,
15735
15976
  fileInputProps,
15736
15977
  onClick,
15737
15978
  ...forwardedProps
15738
15979
  } = otherProps;
15739
- // Adjust to square aspect ratio when using circle variants.
15740
- const adjustedAspectRatio = variant === UploaderVariant.circle ? AspectRatio$1.square : aspectRatio;
15741
15980
  const handleClick = React__default.useCallback(evt => {
15742
15981
  if (isAnyDisabled) {
15743
15982
  evt.preventDefault();
@@ -15765,46 +16004,28 @@ const Uploader = forwardRef((props, ref) => {
15765
16004
  return evt => {
15766
16005
  const fileList = evt.target.files;
15767
16006
  const files = fileList ? Array.from(fileList) : [];
15768
- fileInputProps.onChange(files, evt);
16007
+ fileInputProps.onChange?.(files, evt);
15769
16008
  };
15770
16009
  }, [isAnyDisabled, fileInputProps]);
15771
- return /*#__PURE__*/jsxs(wrapper.Component, {
15772
- ref: ref,
15773
- ...wrapper.props,
15774
- ...forwardedProps,
15775
- onClick: handleClick,
15776
- className: classNames.join(className, block$1({
15777
- [`aspect-ratio-${adjustedAspectRatio}`]: Boolean(adjustedAspectRatio),
15778
- [`size-${size}`]: Boolean(size),
15779
- [`theme-${theme}`]: Boolean(theme),
15780
- [`variant-${variant}`]: Boolean(variant),
15781
- 'is-drag-hovering': isDragHovering,
15782
- 'is-disabled': isAnyDisabled
15783
- })),
15784
- children: [/*#__PURE__*/jsx("span", {
15785
- className: element$1('background')
15786
- }), /*#__PURE__*/jsxs("span", {
15787
- className: element$1('wrapper'),
15788
- children: [icon && /*#__PURE__*/jsx(Icon, {
15789
- className: element$1('icon'),
15790
- icon: icon,
15791
- size: Size$1.s
15792
- }), label && /*#__PURE__*/jsx("span", {
15793
- className: element$1('label'),
15794
- children: label
15795
- })]
15796
- }), fileInputProps && /*#__PURE__*/jsx("input", {
15797
- type: "file",
15798
- id: inputId,
15799
- className: classNames.join(element$1('input'), classNames.visuallyHidden()),
15800
- ...disabledStateProps,
16010
+ return Uploader$1({
16011
+ Component: wrapper.Component,
16012
+ ref,
16013
+ inputId,
16014
+ handleClick,
16015
+ handleChange: onChange,
16016
+ isAnyDisabled,
16017
+ isDragHovering,
16018
+ theme,
16019
+ fileInputProps: {
15801
16020
  ...fileInputProps,
16021
+ ...disabledStateProps,
15802
16022
  readOnly: isAnyDisabled,
15803
- onChange: onChange,
15804
16023
  onDragEnter: setDragHovering,
15805
16024
  onDragLeave: unsetDragHovering,
15806
16025
  onDrop: unsetDragHovering
15807
- })]
16026
+ },
16027
+ ...wrapper.props,
16028
+ ...forwardedProps
15808
16029
  });
15809
16030
  });
15810
16031
  Uploader.displayName = COMPONENT_NAME$1;
@@ -15950,5 +16171,5 @@ UserBlock.displayName = COMPONENT_NAME;
15950
16171
  UserBlock.className = CLASSNAME;
15951
16172
  UserBlock.defaultProps = DEFAULT_PROPS;
15952
16173
 
15953
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1f as CLASSNAME, COMPONENT_NAME$1f as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$18 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, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
16174
+ export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1f as CLASSNAME, COMPONENT_NAME$1f as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1a 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, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
15954
16175
  //# sourceMappingURL=index.js.map