@lumx/react 4.3.2-alpha.1 → 4.3.2-alpha.2

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
@@ -96,7 +96,7 @@ const CONFIG$1 = {
96
96
  /**
97
97
  * Component display name.
98
98
  */
99
- const COMPONENT_NAME$1l = 'AlertDialog';
99
+ const COMPONENT_NAME$1k = 'AlertDialog';
100
100
 
101
101
  /**
102
102
  * Component default class name and class prefix.
@@ -109,7 +109,7 @@ const {
109
109
  /**
110
110
  * Component default props.
111
111
  */
112
- const DEFAULT_PROPS$19 = {
112
+ const DEFAULT_PROPS$1a = {
113
113
  size: Size$1.tiny,
114
114
  kind: Kind$1.info
115
115
  };
@@ -130,8 +130,8 @@ const AlertDialog = forwardRef((props, ref) => {
130
130
  className,
131
131
  cancelProps,
132
132
  confirmProps,
133
- kind = DEFAULT_PROPS$19.kind,
134
- size = DEFAULT_PROPS$19.size,
133
+ kind = DEFAULT_PROPS$1a.kind,
134
+ size = DEFAULT_PROPS$1a.size,
135
135
  dialogProps,
136
136
  children,
137
137
  ...forwardedProps
@@ -217,9 +217,9 @@ const AlertDialog = forwardRef((props, ref) => {
217
217
  })]
218
218
  });
219
219
  });
220
- AlertDialog.displayName = COMPONENT_NAME$1l;
220
+ AlertDialog.displayName = COMPONENT_NAME$1k;
221
221
  AlertDialog.className = CLASSNAME$1j;
222
- AlertDialog.defaultProps = DEFAULT_PROPS$19;
222
+ AlertDialog.defaultProps = DEFAULT_PROPS$1a;
223
223
 
224
224
  /**
225
225
  * Hook focusing an element when defined and `focus` boolean `true`.
@@ -311,7 +311,7 @@ function useDisableStateProps(props) {
311
311
  /**
312
312
  * Component display name.
313
313
  */
314
- const COMPONENT_NAME$1k = 'Autocomplete';
314
+ const COMPONENT_NAME$1j = 'Autocomplete';
315
315
 
316
316
  /**
317
317
  * Component default class name and class prefix.
@@ -321,7 +321,7 @@ const CLASSNAME$1i = 'lumx-autocomplete';
321
321
  /**
322
322
  * Component default props.
323
323
  */
324
- const DEFAULT_PROPS$18 = {
324
+ const DEFAULT_PROPS$19 = {
325
325
  anchorToInput: false,
326
326
  closeOnClick: false,
327
327
  closeOnClickAway: true,
@@ -343,13 +343,13 @@ const Autocomplete = forwardRef((props, ref) => {
343
343
  otherProps
344
344
  } = useDisableStateProps(props);
345
345
  const {
346
- anchorToInput = DEFAULT_PROPS$18.anchorToInput,
346
+ anchorToInput = DEFAULT_PROPS$19.anchorToInput,
347
347
  children,
348
348
  chips,
349
349
  className,
350
- closeOnClick = DEFAULT_PROPS$18.closeOnClick,
351
- closeOnClickAway = DEFAULT_PROPS$18.closeOnClickAway,
352
- closeOnEscape = DEFAULT_PROPS$18.closeOnEscape,
350
+ closeOnClick = DEFAULT_PROPS$19.closeOnClick,
351
+ closeOnClickAway = DEFAULT_PROPS$19.closeOnClickAway,
352
+ closeOnEscape = DEFAULT_PROPS$19.closeOnEscape,
353
353
  error,
354
354
  fitToAnchorWidth,
355
355
  hasError,
@@ -370,7 +370,7 @@ const Autocomplete = forwardRef((props, ref) => {
370
370
  onInfiniteScroll,
371
371
  placeholder,
372
372
  placement,
373
- shouldFocusOnClose = DEFAULT_PROPS$18.shouldFocusOnClose,
373
+ shouldFocusOnClose = DEFAULT_PROPS$19.shouldFocusOnClose,
374
374
  theme = defaultTheme,
375
375
  value,
376
376
  textFieldProps = {},
@@ -423,14 +423,14 @@ const Autocomplete = forwardRef((props, ref) => {
423
423
  })]
424
424
  });
425
425
  });
426
- Autocomplete.displayName = COMPONENT_NAME$1k;
426
+ Autocomplete.displayName = COMPONENT_NAME$1j;
427
427
  Autocomplete.className = CLASSNAME$1i;
428
- Autocomplete.defaultProps = DEFAULT_PROPS$18;
428
+ Autocomplete.defaultProps = DEFAULT_PROPS$19;
429
429
 
430
430
  /**
431
431
  * Component display name.
432
432
  */
433
- const COMPONENT_NAME$1j = 'AutocompleteMultiple';
433
+ const COMPONENT_NAME$1i = 'AutocompleteMultiple';
434
434
 
435
435
  /**
436
436
  * Component default class name and class prefix.
@@ -440,7 +440,7 @@ const CLASSNAME$1h = 'lumx-autocomplete-multiple';
440
440
  /**
441
441
  * Component default props.
442
442
  */
443
- const DEFAULT_PROPS$17 = {
443
+ const DEFAULT_PROPS$18 = {
444
444
  closeOnClickAway: true,
445
445
  closeOnEscape: true,
446
446
  selectedChipRender(choice, index, onClear, isDisabled) {
@@ -480,8 +480,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
480
480
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
481
481
  chipsAlignment,
482
482
  className,
483
- closeOnClickAway = DEFAULT_PROPS$17.closeOnClickAway,
484
- closeOnEscape = DEFAULT_PROPS$17.closeOnEscape,
483
+ closeOnClickAway = DEFAULT_PROPS$18.closeOnClickAway,
484
+ closeOnEscape = DEFAULT_PROPS$18.closeOnEscape,
485
485
  fitToAnchorWidth,
486
486
  hasError,
487
487
  helper,
@@ -503,12 +503,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
503
503
  onKeyDown,
504
504
  placeholder,
505
505
  placement,
506
- selectedChipRender = DEFAULT_PROPS$17.selectedChipRender,
506
+ selectedChipRender = DEFAULT_PROPS$18.selectedChipRender,
507
507
  shouldFocusOnClose,
508
508
  theme = defaultTheme,
509
509
  type,
510
510
  value,
511
- values = DEFAULT_PROPS$17.values,
511
+ values = DEFAULT_PROPS$18.values,
512
512
  ...forwardedProps
513
513
  } = otherProps;
514
514
  return /*#__PURE__*/jsx(Autocomplete, {
@@ -548,14 +548,14 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
548
548
  children: children
549
549
  });
550
550
  });
551
- AutocompleteMultiple.displayName = COMPONENT_NAME$1j;
551
+ AutocompleteMultiple.displayName = COMPONENT_NAME$1i;
552
552
  AutocompleteMultiple.className = CLASSNAME$1h;
553
- AutocompleteMultiple.defaultProps = DEFAULT_PROPS$17;
553
+ AutocompleteMultiple.defaultProps = DEFAULT_PROPS$18;
554
554
 
555
555
  /**
556
556
  * Component display name.
557
557
  */
558
- const COMPONENT_NAME$1i = 'Avatar';
558
+ const COMPONENT_NAME$1h = 'Avatar';
559
559
 
560
560
  /**
561
561
  * Component default class name and class prefix.
@@ -569,7 +569,7 @@ const {
569
569
  /**
570
570
  * Component default props.
571
571
  */
572
- const DEFAULT_PROPS$16 = {
572
+ const DEFAULT_PROPS$17 = {
573
573
  size: Size$1.m
574
574
  };
575
575
 
@@ -592,7 +592,7 @@ const Avatar = forwardRef((props, ref) => {
592
592
  linkAs,
593
593
  onClick,
594
594
  onKeyPress,
595
- size = DEFAULT_PROPS$16.size,
595
+ size = DEFAULT_PROPS$17.size,
596
596
  theme = defaultTheme,
597
597
  thumbnailProps,
598
598
  ...forwardedProps
@@ -625,9 +625,84 @@ const Avatar = forwardRef((props, ref) => {
625
625
  })]
626
626
  });
627
627
  });
628
- Avatar.displayName = COMPONENT_NAME$1i;
628
+ Avatar.displayName = COMPONENT_NAME$1h;
629
629
  Avatar.className = CLASSNAME$1g;
630
- Avatar.defaultProps = DEFAULT_PROPS$16;
630
+ Avatar.defaultProps = DEFAULT_PROPS$17;
631
+
632
+ /**
633
+ * Component display name.
634
+ */
635
+ const COMPONENT_NAME$1g = 'Badge';
636
+
637
+ /**
638
+ * Component default class name and class prefix.
639
+ */
640
+ const CLASSNAME$1f = 'lumx-badge';
641
+ const {
642
+ block: block$12
643
+ } = classNames.bem(CLASSNAME$1f);
644
+
645
+ /**
646
+ * Component default props.
647
+ */
648
+ const DEFAULT_PROPS$16 = {
649
+ color: ColorPalette$1.primary
650
+ };
651
+
652
+ /**
653
+ * Badge component.
654
+ *
655
+ * @param props Component props.
656
+ * @param ref Component ref.
657
+ * @return React element.
658
+ */
659
+ const Badge = forwardRef((props, ref) => {
660
+ const {
661
+ children,
662
+ className,
663
+ color = DEFAULT_PROPS$16.color,
664
+ ...forwardedProps
665
+ } = props;
666
+ return /*#__PURE__*/jsx("div", {
667
+ ref: ref,
668
+ ...forwardedProps,
669
+ className: classNames.join(className, block$12({
670
+ [`color-${color}`]: Boolean(color)
671
+ })),
672
+ children: children
673
+ });
674
+ });
675
+ Badge.displayName = COMPONENT_NAME$1g;
676
+ Badge.className = CLASSNAME$1f;
677
+ Badge.defaultProps = DEFAULT_PROPS$16;
678
+
679
+ /**
680
+ * Component default class name and class prefix.
681
+ */
682
+ const CLASSNAME$1e = 'lumx-badge-wrapper';
683
+ const {
684
+ block: block$11,
685
+ element: element$M
686
+ } = classNames.bem(CLASSNAME$1e);
687
+ const BadgeWrapper = forwardRef((props, ref) => {
688
+ const {
689
+ badge,
690
+ children,
691
+ className,
692
+ ...forwardedProps
693
+ } = props;
694
+ return /*#__PURE__*/jsxs("div", {
695
+ ref: ref,
696
+ ...forwardedProps,
697
+ className: classNames.join(className, block$11()),
698
+ children: [children, badge && /*#__PURE__*/jsx("div", {
699
+ className: element$M('badge'),
700
+ children: badge
701
+ })]
702
+ });
703
+ });
704
+ BadgeWrapper.displayName = 'BadgeWrapper';
705
+ BadgeWrapper.className = CLASSNAME$1e;
631
706
 
632
707
  /**
633
708
  * Alignments.
@@ -851,7 +926,7 @@ function modifier$1(baseName, modifiers) {
851
926
  * block('button', { active: true, disabled: false }); // 'button button--active'
852
927
  */
853
928
 
854
- function block$12(baseName, modifiersOrAdditionalClasses, additionalClasses) {
929
+ function block$10(baseName, modifiersOrAdditionalClasses, additionalClasses) {
855
930
  let modifiers;
856
931
  let classes;
857
932
  if (Array.isArray(modifiersOrAdditionalClasses)) {
@@ -886,11 +961,11 @@ function block$12(baseName, modifiersOrAdditionalClasses, additionalClasses) {
886
961
  * element('my-button', 'icon', { active: true }); // 'my-button__icon my-button__icon--active'
887
962
  */
888
963
 
889
- function element$M(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
964
+ function element$L(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
890
965
  if (Array.isArray(modifiersOrAdditionalClasses)) {
891
- return block$12(`${baseClass}__${elem}`, modifiersOrAdditionalClasses);
966
+ return block$10(`${baseClass}__${elem}`, modifiersOrAdditionalClasses);
892
967
  }
893
- return block$12(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
968
+ return block$10(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
894
969
  }
895
970
 
896
971
  /**
@@ -899,15 +974,15 @@ function element$M(baseClass, elem, modifiersOrAdditionalClasses, additionalClas
899
974
  function bem(baseName) {
900
975
  function blockFn(modifiersOrAdditionalClasses, additionalClasses) {
901
976
  if (Array.isArray(modifiersOrAdditionalClasses)) {
902
- return block$12(baseName, modifiersOrAdditionalClasses);
977
+ return block$10(baseName, modifiersOrAdditionalClasses);
903
978
  }
904
- return block$12(baseName, modifiersOrAdditionalClasses, additionalClasses);
979
+ return block$10(baseName, modifiersOrAdditionalClasses, additionalClasses);
905
980
  }
906
981
  function elementFn(elem, modifiersOrAdditionalClasses, additionalClasses) {
907
982
  if (Array.isArray(modifiersOrAdditionalClasses)) {
908
- return element$M(baseName, elem, modifiersOrAdditionalClasses);
983
+ return element$L(baseName, elem, modifiersOrAdditionalClasses);
909
984
  }
910
- return element$M(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
985
+ return element$L(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
911
986
  }
912
987
  return {
913
988
  block: blockFn,
@@ -916,108 +991,6 @@ function bem(baseName) {
916
991
  };
917
992
  }
918
993
 
919
- /**
920
- * Component display name.
921
- */
922
- const COMPONENT_NAME$1h = 'Badge';
923
-
924
- /**
925
- * Component default class name and class prefix.
926
- */
927
- const CLASSNAME$1f = 'lumx-badge';
928
- const {
929
- block: block$11
930
- } = bem(CLASSNAME$1f);
931
-
932
- /**
933
- * Component default props.
934
- */
935
- const DEFAULT_PROPS$15 = {
936
- color: ColorPalette.primary
937
- };
938
-
939
- /**
940
- * Badge component.
941
- *
942
- * @param props Component props.
943
- * @return JSX element.
944
- */
945
- const Badge$1 = props => {
946
- const {
947
- children,
948
- className,
949
- color = DEFAULT_PROPS$15.color,
950
- ref,
951
- ...forwardedProps
952
- } = props;
953
- return /*#__PURE__*/jsx("div", {
954
- ref: ref,
955
- ...forwardedProps,
956
- className: classnames(className, block$11({
957
- [`color-${color}`]: Boolean(color)
958
- })),
959
- children: children
960
- });
961
- };
962
- Badge$1.displayName = COMPONENT_NAME$1h;
963
- Badge$1.className = CLASSNAME$1f;
964
- Badge$1.defaultProps = DEFAULT_PROPS$15;
965
-
966
- /**
967
- * Defines the props of the component.
968
- */
969
-
970
- /**
971
- * Badge component.
972
- *
973
- * @param props Component props.
974
- * @param ref Component ref.
975
- * @return React element.
976
- */
977
- const Badge = forwardRef((props, ref) => {
978
- return Badge$1({
979
- ...props,
980
- ref
981
- });
982
- });
983
- Badge.displayName = Badge$1.displayName;
984
- Badge.className = Badge$1.className;
985
- Badge.defaultProps = Badge$1.defaultProps;
986
-
987
- const COMPONENT_NAME$1g = 'BadgeWrapper';
988
- const CLASSNAME$1e = 'lumx-badge-wrapper';
989
- const {
990
- block: block$10,
991
- element: element$L
992
- } = bem(CLASSNAME$1e);
993
- const BadgeWrapper$1 = props => {
994
- const {
995
- badge,
996
- children,
997
- className,
998
- ref,
999
- ...forwardedProps
1000
- } = props;
1001
- return /*#__PURE__*/jsxs("div", {
1002
- ref: ref,
1003
- ...forwardedProps,
1004
- className: classnames(className, block$10()),
1005
- children: [children, badge && /*#__PURE__*/jsx("div", {
1006
- className: element$L('badge'),
1007
- children: badge
1008
- })]
1009
- });
1010
- };
1011
-
1012
- const BadgeWrapper = forwardRef((props, ref) => {
1013
- return BadgeWrapper$1({
1014
- ...props,
1015
- ref
1016
- });
1017
- });
1018
- BadgeWrapper.displayName = COMPONENT_NAME$1g;
1019
- BadgeWrapper.className = CLASSNAME$1e;
1020
-
1021
994
  /**
1022
995
  * Render clickable element (link, button or custom element)
1023
996
  * (also does some basic disabled state handling)
@@ -1185,7 +1158,7 @@ const {
1185
1158
  /**
1186
1159
  * Component default props.
1187
1160
  */
1188
- const DEFAULT_PROPS$14 = {
1161
+ const DEFAULT_PROPS$15 = {
1189
1162
  emphasis: Emphasis.high,
1190
1163
  size: Size.m
1191
1164
  };
@@ -1199,10 +1172,10 @@ const DEFAULT_PROPS$14 = {
1199
1172
  const Button$1 = props => {
1200
1173
  const {
1201
1174
  className,
1202
- emphasis = DEFAULT_PROPS$14.emphasis,
1175
+ emphasis = DEFAULT_PROPS$15.emphasis,
1203
1176
  leftIcon,
1204
1177
  rightIcon,
1205
- size = DEFAULT_PROPS$14.size,
1178
+ size = DEFAULT_PROPS$15.size,
1206
1179
  ...forwardedProps
1207
1180
  } = props;
1208
1181
  const buttonClassName = classnames(className, modifier({
@@ -1219,7 +1192,7 @@ const Button$1 = props => {
1219
1192
  };
1220
1193
  Button$1.displayName = COMPONENT_NAME$1e;
1221
1194
  Button$1.className = CLASSNAME$1d;
1222
- Button$1.defaultProps = DEFAULT_PROPS$14;
1195
+ Button$1.defaultProps = DEFAULT_PROPS$15;
1223
1196
 
1224
1197
  /**
1225
1198
  * Properties of a component to use to determine it's name.
@@ -1287,7 +1260,7 @@ const Button = forwardRef((props, ref) => {
1287
1260
  });
1288
1261
  Button.displayName = COMPONENT_NAME$1e;
1289
1262
  Button.className = CLASSNAME$1d;
1290
- Button.defaultProps = DEFAULT_PROPS$14;
1263
+ Button.defaultProps = DEFAULT_PROPS$15;
1291
1264
 
1292
1265
  const COMPONENT_NAME$1d = 'Icon';
1293
1266
  const IconClassName = 'lumx-icon';
@@ -1304,7 +1277,7 @@ const {
1304
1277
  /**
1305
1278
  * Component default props.
1306
1279
  */
1307
- const DEFAULT_PROPS$13 = {};
1280
+ const DEFAULT_PROPS$14 = {};
1308
1281
 
1309
1282
  /**
1310
1283
  * Icon component.
@@ -1384,7 +1357,7 @@ const Icon$1 = props => {
1384
1357
  };
1385
1358
  Icon$1.displayName = COMPONENT_NAME$1d;
1386
1359
  Icon$1.className = CLASSNAME$1c;
1387
- Icon$1.defaultProps = DEFAULT_PROPS$13;
1360
+ Icon$1.defaultProps = DEFAULT_PROPS$14;
1388
1361
 
1389
1362
  /**
1390
1363
  * Component display name.
@@ -1399,7 +1372,7 @@ const CLASSNAME$1b = 'lumx-icon-button';
1399
1372
  /**
1400
1373
  * Component default props.
1401
1374
  */
1402
- const DEFAULT_PROPS$12 = {
1375
+ const DEFAULT_PROPS$13 = {
1403
1376
  emphasis: Emphasis.high,
1404
1377
  size: Size.m
1405
1378
  };
@@ -1412,11 +1385,11 @@ const DEFAULT_PROPS$12 = {
1412
1385
  */
1413
1386
  const IconButton$1 = props => {
1414
1387
  const {
1415
- emphasis = DEFAULT_PROPS$12.emphasis,
1388
+ emphasis = DEFAULT_PROPS$13.emphasis,
1416
1389
  image,
1417
1390
  icon,
1418
1391
  label,
1419
- size = DEFAULT_PROPS$12.size,
1392
+ size = DEFAULT_PROPS$13.size,
1420
1393
  ...forwardedProps
1421
1394
  } = props;
1422
1395
  const defaultChildren = image ? /*#__PURE__*/jsx("img", {
@@ -1437,7 +1410,7 @@ const IconButton$1 = props => {
1437
1410
  };
1438
1411
  IconButton$1.displayName = COMPONENT_NAME$1c;
1439
1412
  IconButton$1.className = CLASSNAME$1b;
1440
- IconButton$1.defaultProps = DEFAULT_PROPS$12;
1413
+ IconButton$1.defaultProps = DEFAULT_PROPS$13;
1441
1414
 
1442
1415
  /**
1443
1416
  * IconButton component.
@@ -1474,7 +1447,7 @@ const IconButton = forwardRef((props, ref) => {
1474
1447
  });
1475
1448
  IconButton.displayName = COMPONENT_NAME$1c;
1476
1449
  IconButton.className = CLASSNAME$1b;
1477
- IconButton.defaultProps = DEFAULT_PROPS$12;
1450
+ IconButton.defaultProps = DEFAULT_PROPS$13;
1478
1451
 
1479
1452
  /**
1480
1453
  * Component display name.
@@ -1489,7 +1462,7 @@ const CLASSNAME$1a = 'lumx-button-group';
1489
1462
  /**
1490
1463
  * Component default props.
1491
1464
  */
1492
- const DEFAULT_PROPS$11 = {};
1465
+ const DEFAULT_PROPS$12 = {};
1493
1466
 
1494
1467
  /**
1495
1468
  * ButtonGroup component.
@@ -1511,7 +1484,7 @@ const ButtonGroup$1 = props => {
1511
1484
  };
1512
1485
  ButtonGroup$1.displayName = COMPONENT_NAME$1b;
1513
1486
  ButtonGroup$1.className = CLASSNAME$1a;
1514
- ButtonGroup$1.defaultProps = DEFAULT_PROPS$11;
1487
+ ButtonGroup$1.defaultProps = DEFAULT_PROPS$12;
1515
1488
 
1516
1489
  /**
1517
1490
  * ButtonGroup component.
@@ -1528,7 +1501,7 @@ const ButtonGroup = forwardRef((props, ref) => {
1528
1501
  });
1529
1502
  ButtonGroup.displayName = COMPONENT_NAME$1b;
1530
1503
  ButtonGroup.className = CLASSNAME$1a;
1531
- ButtonGroup.defaultProps = DEFAULT_PROPS$11;
1504
+ ButtonGroup.defaultProps = DEFAULT_PROPS$12;
1532
1505
 
1533
1506
  const COMPONENT_NAME$1a = 'InputLabel';
1534
1507
  const InputLabelClassName = 'lumx-input-label';
@@ -1536,7 +1509,7 @@ const CLASSNAME$19 = InputLabelClassName;
1536
1509
  const {
1537
1510
  block: block$_
1538
1511
  } = bem(CLASSNAME$19);
1539
- const DEFAULT_PROPS$10 = {};
1512
+ const DEFAULT_PROPS$11 = {};
1540
1513
 
1541
1514
  /**
1542
1515
  * InputLabel component.
@@ -1566,7 +1539,7 @@ function InputLabel$1(props) {
1566
1539
  }
1567
1540
  InputLabel$1.displayName = COMPONENT_NAME$1a;
1568
1541
  InputLabel$1.className = CLASSNAME$19;
1569
- InputLabel$1.defaultProps = DEFAULT_PROPS$10;
1542
+ InputLabel$1.defaultProps = DEFAULT_PROPS$11;
1570
1543
 
1571
1544
  const INPUT_HELPER_CONFIGURATION = {
1572
1545
  [Kind.error]: {
@@ -1595,7 +1568,7 @@ const {
1595
1568
  /**
1596
1569
  * Component default props.
1597
1570
  */
1598
- const DEFAULT_PROPS$$ = {
1571
+ const DEFAULT_PROPS$10 = {
1599
1572
  kind: Kind.info
1600
1573
  };
1601
1574
 
@@ -1606,7 +1579,7 @@ function InputHelper$1(props) {
1606
1579
  const {
1607
1580
  children,
1608
1581
  className,
1609
- kind = DEFAULT_PROPS$$.kind,
1582
+ kind = DEFAULT_PROPS$10.kind,
1610
1583
  theme,
1611
1584
  ref,
1612
1585
  ...forwardedProps
@@ -1626,7 +1599,7 @@ function InputHelper$1(props) {
1626
1599
  }
1627
1600
  InputHelper$1.displayName = COMPONENT_NAME$19;
1628
1601
  InputHelper$1.className = CLASSNAME$18;
1629
- InputHelper$1.defaultProps = DEFAULT_PROPS$$;
1602
+ InputHelper$1.defaultProps = DEFAULT_PROPS$10;
1630
1603
 
1631
1604
  const INTERMEDIATE_STATE = 'intermediate';
1632
1605
 
@@ -1741,7 +1714,7 @@ const Checkbox$1 = props => {
1741
1714
  /**
1742
1715
  * Component default props.
1743
1716
  */
1744
- const DEFAULT_PROPS$_ = {};
1717
+ const DEFAULT_PROPS$$ = {};
1745
1718
 
1746
1719
  /**
1747
1720
  * Checkbox component.
@@ -1803,7 +1776,7 @@ const Checkbox = forwardRef((props, ref) => {
1803
1776
  });
1804
1777
  Checkbox.displayName = COMPONENT_NAME$18;
1805
1778
  Checkbox.className = CLASSNAME$17;
1806
- Checkbox.defaultProps = DEFAULT_PROPS$_;
1779
+ Checkbox.defaultProps = DEFAULT_PROPS$$;
1807
1780
 
1808
1781
  /**
1809
1782
  * Wrap mouse event handler to stop event propagation.
@@ -1838,7 +1811,7 @@ const {
1838
1811
  /**
1839
1812
  * Component default props.
1840
1813
  */
1841
- const DEFAULT_PROPS$Z = {
1814
+ const DEFAULT_PROPS$_ = {
1842
1815
  size: Size$1.m
1843
1816
  };
1844
1817
 
@@ -1868,7 +1841,7 @@ const Chip = forwardRef((props, ref) => {
1868
1841
  onAfterClick,
1869
1842
  onBeforeClick,
1870
1843
  onClick,
1871
- size = DEFAULT_PROPS$Z.size,
1844
+ size = DEFAULT_PROPS$_.size,
1872
1845
  theme = defaultTheme,
1873
1846
  href,
1874
1847
  onKeyDown,
@@ -1940,7 +1913,7 @@ const Chip = forwardRef((props, ref) => {
1940
1913
  });
1941
1914
  Chip.displayName = COMPONENT_NAME$17;
1942
1915
  Chip.className = CLASSNAME$16;
1943
- Chip.defaultProps = DEFAULT_PROPS$Z;
1916
+ Chip.defaultProps = DEFAULT_PROPS$_;
1944
1917
 
1945
1918
  const INITIAL_STATE_ACTIVE_CHIP = -1;
1946
1919
 
@@ -1996,7 +1969,7 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
1996
1969
  /**
1997
1970
  * Component default props.
1998
1971
  */
1999
- const DEFAULT_PROPS$Y = {};
1972
+ const DEFAULT_PROPS$Z = {};
2000
1973
 
2001
1974
  /**
2002
1975
  * Component display name.
@@ -2031,7 +2004,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
2031
2004
  });
2032
2005
  InternalChipGroup.displayName = COMPONENT_NAME$16;
2033
2006
  InternalChipGroup.className = CLASSNAME$15;
2034
- InternalChipGroup.defaultProps = DEFAULT_PROPS$Y;
2007
+ InternalChipGroup.defaultProps = DEFAULT_PROPS$Z;
2035
2008
  const ChipGroup = Object.assign(InternalChipGroup, {
2036
2009
  useChipGroupNavigation
2037
2010
  });
@@ -2243,7 +2216,7 @@ const {
2243
2216
  /**
2244
2217
  * Component default props.
2245
2218
  */
2246
- const DEFAULT_PROPS$X = {
2219
+ const DEFAULT_PROPS$Y = {
2247
2220
  variant: CommentBlockVariant.indented
2248
2221
  };
2249
2222
 
@@ -2273,7 +2246,7 @@ const CommentBlock = forwardRef((props, ref) => {
2273
2246
  onMouseLeave,
2274
2247
  text,
2275
2248
  theme = defaultTheme,
2276
- variant = DEFAULT_PROPS$X.variant,
2249
+ variant = DEFAULT_PROPS$Y.variant,
2277
2250
  ...forwardedProps
2278
2251
  } = props;
2279
2252
  const hasChildren = Children.count(children) > 0;
@@ -2342,7 +2315,7 @@ const CommentBlock = forwardRef((props, ref) => {
2342
2315
  });
2343
2316
  CommentBlock.displayName = COMPONENT_NAME$15;
2344
2317
  CommentBlock.className = CLASSNAME$13;
2345
- CommentBlock.defaultProps = DEFAULT_PROPS$X;
2318
+ CommentBlock.defaultProps = DEFAULT_PROPS$Y;
2346
2319
 
2347
2320
  /**
2348
2321
  * Add a number of months from a date while resetting the day to prevent month length mismatches.
@@ -3447,7 +3420,7 @@ const {
3447
3420
  /**
3448
3421
  * Component default props.
3449
3422
  */
3450
- const DEFAULT_PROPS$W = {
3423
+ const DEFAULT_PROPS$X = {
3451
3424
  size: Size$1.big,
3452
3425
  disableBodyScroll: true
3453
3426
  };
@@ -3478,11 +3451,11 @@ const Dialog = forwardRef((props, ref) => {
3478
3451
  parentElement,
3479
3452
  contentRef,
3480
3453
  preventAutoClose,
3481
- size = DEFAULT_PROPS$W.size,
3454
+ size = DEFAULT_PROPS$X.size,
3482
3455
  zIndex,
3483
3456
  dialogProps,
3484
3457
  onVisibilityChange,
3485
- disableBodyScroll = DEFAULT_PROPS$W.disableBodyScroll,
3458
+ disableBodyScroll = DEFAULT_PROPS$X.disableBodyScroll,
3486
3459
  preventCloseOnClick,
3487
3460
  preventCloseOnEscape,
3488
3461
  ...forwardedProps
@@ -3622,7 +3595,7 @@ const Dialog = forwardRef((props, ref) => {
3622
3595
  });
3623
3596
  Dialog.displayName = COMPONENT_NAME$11;
3624
3597
  Dialog.className = CLASSNAME$11;
3625
- Dialog.defaultProps = DEFAULT_PROPS$W;
3598
+ Dialog.defaultProps = DEFAULT_PROPS$X;
3626
3599
 
3627
3600
  /**
3628
3601
  * Component display name.
@@ -3666,7 +3639,7 @@ const Divider$1 = props => {
3666
3639
  /**
3667
3640
  * Component default props.
3668
3641
  */
3669
- const DEFAULT_PROPS$V = {};
3642
+ const DEFAULT_PROPS$W = {};
3670
3643
 
3671
3644
  /**
3672
3645
  * Divider component.
@@ -3689,7 +3662,7 @@ const Divider = forwardRef((props, ref) => {
3689
3662
  });
3690
3663
  Divider.displayName = COMPONENT_NAME$10;
3691
3664
  Divider.className = CLASSNAME$10;
3692
- Divider.defaultProps = DEFAULT_PROPS$V;
3665
+ Divider.defaultProps = DEFAULT_PROPS$W;
3693
3666
 
3694
3667
  /**
3695
3668
  * Component display name.
@@ -3914,7 +3887,7 @@ const {
3914
3887
  /**
3915
3888
  * Component default props.
3916
3889
  */
3917
- const DEFAULT_PROPS$U = {
3890
+ const DEFAULT_PROPS$V = {
3918
3891
  tabIndex: -1
3919
3892
  };
3920
3893
 
@@ -3933,7 +3906,7 @@ const InternalList = forwardRef((props, ref) => {
3933
3906
  isClickable,
3934
3907
  itemPadding,
3935
3908
  onListItemSelected,
3936
- tabIndex = DEFAULT_PROPS$U.tabIndex,
3909
+ tabIndex = DEFAULT_PROPS$V.tabIndex,
3937
3910
  ...forwardedProps
3938
3911
  } = props;
3939
3912
  const adjustedItemPadding = itemPadding ?? (isClickable ? Size$1.big : undefined);
@@ -3949,7 +3922,7 @@ const InternalList = forwardRef((props, ref) => {
3949
3922
  });
3950
3923
  InternalList.displayName = COMPONENT_NAME$_;
3951
3924
  InternalList.className = CLASSNAME$_;
3952
- InternalList.defaultProps = DEFAULT_PROPS$U;
3925
+ InternalList.defaultProps = DEFAULT_PROPS$V;
3953
3926
  const List = Object.assign(InternalList, {
3954
3927
  useKeyboardListNavigation
3955
3928
  });
@@ -6394,7 +6367,7 @@ const {
6394
6367
  /**
6395
6368
  * Component default props.
6396
6369
  */
6397
- const DEFAULT_PROPS$T = {
6370
+ const DEFAULT_PROPS$U = {
6398
6371
  elevation: 3,
6399
6372
  placement: Placement.AUTO,
6400
6373
  focusAnchorOnClose: true,
@@ -6411,24 +6384,24 @@ const _InnerPopover = forwardRef((props, ref) => {
6411
6384
  className,
6412
6385
  closeOnClickAway,
6413
6386
  closeOnEscape,
6414
- elevation = DEFAULT_PROPS$T.elevation,
6387
+ elevation = DEFAULT_PROPS$U.elevation,
6415
6388
  focusElement,
6416
6389
  hasArrow,
6417
6390
  isOpen,
6418
6391
  onClose,
6419
6392
  parentElement,
6420
- usePortal = DEFAULT_PROPS$T.usePortal,
6421
- focusAnchorOnClose = DEFAULT_PROPS$T.focusAnchorOnClose,
6393
+ usePortal = DEFAULT_PROPS$U.usePortal,
6394
+ focusAnchorOnClose = DEFAULT_PROPS$U.focusAnchorOnClose,
6422
6395
  withFocusTrap,
6423
6396
  boundaryRef,
6424
6397
  fitToAnchorWidth,
6425
6398
  fitWithinViewportHeight,
6426
6399
  focusTrapZoneElement,
6427
6400
  offset,
6428
- placement = DEFAULT_PROPS$T.placement,
6401
+ placement = DEFAULT_PROPS$U.placement,
6429
6402
  style,
6430
6403
  theme,
6431
- zIndex = DEFAULT_PROPS$T.zIndex,
6404
+ zIndex = DEFAULT_PROPS$U.zIndex,
6432
6405
  ...forwardedProps
6433
6406
  } = props;
6434
6407
  const popoverRef = useRef(null);
@@ -6514,7 +6487,7 @@ const Popover = skipRender(
6514
6487
  () => Boolean(DOCUMENT), _InnerPopover);
6515
6488
  Popover.displayName = COMPONENT_NAME$Z;
6516
6489
  Popover.className = CLASSNAME$Z;
6517
- Popover.defaultProps = DEFAULT_PROPS$T;
6490
+ Popover.defaultProps = DEFAULT_PROPS$U;
6518
6491
 
6519
6492
  // The error margin in px we want to have for triggering infinite scroll
6520
6493
  const SCROLL_TRIGGER_MARGIN = 5;
@@ -6574,7 +6547,7 @@ const {
6574
6547
  /**
6575
6548
  * Component default props.
6576
6549
  */
6577
- const DEFAULT_PROPS$S = {
6550
+ const DEFAULT_PROPS$T = {
6578
6551
  closeOnClick: true,
6579
6552
  closeOnClickAway: true,
6580
6553
  closeOnEscape: true,
@@ -6597,18 +6570,18 @@ const Dropdown = forwardRef((props, ref) => {
6597
6570
  anchorRef,
6598
6571
  children,
6599
6572
  className,
6600
- closeOnClick = DEFAULT_PROPS$S.closeOnClick,
6601
- closeOnClickAway = DEFAULT_PROPS$S.closeOnClickAway,
6602
- closeOnEscape = DEFAULT_PROPS$S.closeOnEscape,
6603
- fitToAnchorWidth = DEFAULT_PROPS$S.fitToAnchorWidth,
6604
- fitWithinViewportHeight = DEFAULT_PROPS$S.fitWithinViewportHeight,
6573
+ closeOnClick = DEFAULT_PROPS$T.closeOnClick,
6574
+ closeOnClickAway = DEFAULT_PROPS$T.closeOnClickAway,
6575
+ closeOnEscape = DEFAULT_PROPS$T.closeOnEscape,
6576
+ fitToAnchorWidth = DEFAULT_PROPS$T.fitToAnchorWidth,
6577
+ fitWithinViewportHeight = DEFAULT_PROPS$T.fitWithinViewportHeight,
6605
6578
  isOpen,
6606
6579
  offset,
6607
- focusAnchorOnClose = DEFAULT_PROPS$S.focusAnchorOnClose,
6580
+ focusAnchorOnClose = DEFAULT_PROPS$T.focusAnchorOnClose,
6608
6581
  onClose,
6609
6582
  onInfiniteScroll,
6610
- placement = DEFAULT_PROPS$S.placement,
6611
- shouldFocusOnOpen = DEFAULT_PROPS$S.shouldFocusOnOpen,
6583
+ placement = DEFAULT_PROPS$T.placement,
6584
+ shouldFocusOnOpen = DEFAULT_PROPS$T.shouldFocusOnOpen,
6612
6585
  zIndex,
6613
6586
  ...forwardedProps
6614
6587
  } = props;
@@ -6654,7 +6627,7 @@ const Dropdown = forwardRef((props, ref) => {
6654
6627
  });
6655
6628
  Dropdown.displayName = COMPONENT_NAME$Y;
6656
6629
  Dropdown.className = CLASSNAME$Y;
6657
- Dropdown.defaultProps = DEFAULT_PROPS$S;
6630
+ Dropdown.defaultProps = DEFAULT_PROPS$T;
6658
6631
 
6659
6632
  /**
6660
6633
  * Component display name.
@@ -6673,7 +6646,7 @@ const {
6673
6646
  /**
6674
6647
  * Component default props.
6675
6648
  */
6676
- const DEFAULT_PROPS$R = {
6649
+ const DEFAULT_PROPS$S = {
6677
6650
  closeMode: 'unmount'
6678
6651
  };
6679
6652
  const isDragHandle = isComponent(DragHandle);
@@ -6691,7 +6664,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
6691
6664
  const defaultTheme = useTheme() || Theme$1.light;
6692
6665
  const {
6693
6666
  className,
6694
- closeMode = DEFAULT_PROPS$R.closeMode,
6667
+ closeMode = DEFAULT_PROPS$S.closeMode,
6695
6668
  children: anyChildren,
6696
6669
  hasBackground,
6697
6670
  hasHeaderDivider,
@@ -6808,11 +6781,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
6808
6781
  });
6809
6782
  ExpansionPanel.displayName = COMPONENT_NAME$X;
6810
6783
  ExpansionPanel.className = CLASSNAME$X;
6811
- ExpansionPanel.defaultProps = DEFAULT_PROPS$R;
6784
+ ExpansionPanel.defaultProps = DEFAULT_PROPS$S;
6812
6785
 
6813
6786
  const COMPONENT_NAME$W = 'Flag';
6814
6787
  const CLASSNAME$W = 'lumx-flag';
6815
- const DEFAULT_PROPS$Q = {};
6788
+ const DEFAULT_PROPS$R = {};
6816
6789
  const {
6817
6790
  block: block$N,
6818
6791
  element: element$B
@@ -6876,7 +6849,7 @@ const Flag = forwardRef((props, ref) => {
6876
6849
  });
6877
6850
  Flag.displayName = COMPONENT_NAME$W;
6878
6851
  Flag.className = CLASSNAME$W;
6879
- Flag.defaultProps = DEFAULT_PROPS$Q;
6852
+ Flag.defaultProps = DEFAULT_PROPS$R;
6880
6853
 
6881
6854
  /**
6882
6855
  * Defines the props of the component.
@@ -6969,7 +6942,7 @@ const {
6969
6942
  /**
6970
6943
  * Component default props.
6971
6944
  */
6972
- const DEFAULT_PROPS$P = {
6945
+ const DEFAULT_PROPS$Q = {
6973
6946
  gap: Size$1.big,
6974
6947
  orientation: Orientation$1.horizontal
6975
6948
  };
@@ -6999,8 +6972,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
6999
6972
  children,
7000
6973
  actions,
7001
6974
  actionsProps,
7002
- gap = DEFAULT_PROPS$P.gap,
7003
- orientation = DEFAULT_PROPS$P.orientation,
6975
+ gap = DEFAULT_PROPS$Q.gap,
6976
+ orientation = DEFAULT_PROPS$Q.orientation,
7004
6977
  contentProps,
7005
6978
  ...forwardedProps
7006
6979
  } = props;
@@ -7054,7 +7027,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
7054
7027
  });
7055
7028
  BaseGenericBlock.displayName = COMPONENT_NAME$U;
7056
7029
  BaseGenericBlock.className = CLASSNAME$U;
7057
- BaseGenericBlock.defaultProps = DEFAULT_PROPS$P;
7030
+ BaseGenericBlock.defaultProps = DEFAULT_PROPS$Q;
7058
7031
  const GenericBlock = Object.assign(BaseGenericBlock, {
7059
7032
  Figure,
7060
7033
  Content,
@@ -7102,7 +7075,7 @@ const CLASSNAME$T = 'lumx-heading';
7102
7075
  /**
7103
7076
  * Component default props.
7104
7077
  */
7105
- const DEFAULT_PROPS$O = {};
7078
+ const DEFAULT_PROPS$P = {};
7106
7079
 
7107
7080
  /**
7108
7081
  * Get Heading component common props
@@ -7203,7 +7176,7 @@ const {
7203
7176
  /**
7204
7177
  * Component default props.
7205
7178
  */
7206
- const DEFAULT_PROPS$N = {};
7179
+ const DEFAULT_PROPS$O = {};
7207
7180
 
7208
7181
  /**
7209
7182
  * Text component common props
@@ -7290,7 +7263,7 @@ const Text = forwardRef((props, ref) => {
7290
7263
  });
7291
7264
  Text.displayName = COMPONENT_NAME$S;
7292
7265
  Text.className = CLASSNAME$S;
7293
- Text.defaultProps = DEFAULT_PROPS$N;
7266
+ Text.defaultProps = DEFAULT_PROPS$O;
7294
7267
 
7295
7268
  const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
7296
7269
 
@@ -7327,7 +7300,7 @@ const Heading = forwardRef((props, ref) => {
7327
7300
  });
7328
7301
  Heading.displayName = COMPONENT_NAME$T;
7329
7302
  Heading.className = CLASSNAME$T;
7330
- Heading.defaultProps = DEFAULT_PROPS$O;
7303
+ Heading.defaultProps = DEFAULT_PROPS$P;
7331
7304
 
7332
7305
  /**
7333
7306
  * Computes the next heading level based on the optional prop level or the parent context level.
@@ -7378,7 +7351,7 @@ const {
7378
7351
  /**
7379
7352
  * Component default props.
7380
7353
  */
7381
- const DEFAULT_PROPS$M = {
7354
+ const DEFAULT_PROPS$N = {
7382
7355
  orientation: Orientation$1.horizontal,
7383
7356
  wrap: 'nowrap'
7384
7357
  };
@@ -7396,9 +7369,9 @@ const Grid = forwardRef((props, ref) => {
7396
7369
  className,
7397
7370
  gutter,
7398
7371
  hAlign,
7399
- orientation = DEFAULT_PROPS$M.orientation,
7372
+ orientation = DEFAULT_PROPS$N.orientation,
7400
7373
  vAlign,
7401
- wrap = DEFAULT_PROPS$M.wrap,
7374
+ wrap = DEFAULT_PROPS$N.wrap,
7402
7375
  ...forwardedProps
7403
7376
  } = props;
7404
7377
  return /*#__PURE__*/jsx("div", {
@@ -7416,7 +7389,7 @@ const Grid = forwardRef((props, ref) => {
7416
7389
  });
7417
7390
  Grid.displayName = COMPONENT_NAME$R;
7418
7391
  Grid.className = CLASSNAME$R;
7419
- Grid.defaultProps = DEFAULT_PROPS$M;
7392
+ Grid.defaultProps = DEFAULT_PROPS$N;
7420
7393
 
7421
7394
  /**
7422
7395
  * Component display name.
@@ -7474,7 +7447,7 @@ const CLASSNAME$P = 'lumx-grid-column';
7474
7447
  /**
7475
7448
  * Component default props.
7476
7449
  */
7477
- const DEFAULT_PROPS$L = {};
7450
+ const DEFAULT_PROPS$M = {};
7478
7451
 
7479
7452
  /**
7480
7453
  * The GridColumn is a layout component that can display children in a grid
@@ -7511,7 +7484,7 @@ const GridColumn = forwardRef((props, ref) => {
7511
7484
  });
7512
7485
  GridColumn.displayName = COMPONENT_NAME$P;
7513
7486
  GridColumn.className = CLASSNAME$P;
7514
- GridColumn.defaultProps = DEFAULT_PROPS$L;
7487
+ GridColumn.defaultProps = DEFAULT_PROPS$M;
7515
7488
 
7516
7489
  /**
7517
7490
  * Icon component.
@@ -7629,7 +7602,7 @@ const {
7629
7602
  /**
7630
7603
  * Component default props.
7631
7604
  */
7632
- const DEFAULT_PROPS$K = {
7605
+ const DEFAULT_PROPS$L = {
7633
7606
  captionPosition: ImageBlockCaptionPosition.below,
7634
7607
  align: Alignment.left
7635
7608
  };
@@ -7645,9 +7618,9 @@ const ImageBlock = forwardRef((props, ref) => {
7645
7618
  const defaultTheme = useTheme() || Theme$1.light;
7646
7619
  const {
7647
7620
  actions,
7648
- align = DEFAULT_PROPS$K.align,
7621
+ align = DEFAULT_PROPS$L.align,
7649
7622
  alt,
7650
- captionPosition = DEFAULT_PROPS$K.captionPosition,
7623
+ captionPosition = DEFAULT_PROPS$L.captionPosition,
7651
7624
  captionStyle,
7652
7625
  className,
7653
7626
  description,
@@ -7701,7 +7674,7 @@ const ImageBlock = forwardRef((props, ref) => {
7701
7674
  });
7702
7675
  ImageBlock.displayName = COMPONENT_NAME$O;
7703
7676
  ImageBlock.className = CLASSNAME$O;
7704
- ImageBlock.defaultProps = DEFAULT_PROPS$K;
7677
+ ImageBlock.defaultProps = DEFAULT_PROPS$L;
7705
7678
 
7706
7679
  /**
7707
7680
  * Component display name.
@@ -8461,7 +8434,7 @@ const {
8461
8434
  /**
8462
8435
  * Component default props.
8463
8436
  */
8464
- const DEFAULT_PROPS$J = {};
8437
+ const DEFAULT_PROPS$K = {};
8465
8438
 
8466
8439
  /**
8467
8440
  * InlineList component.
@@ -8514,7 +8487,7 @@ const InlineList = forwardRef((props, ref) => {
8514
8487
  });
8515
8488
  InlineList.displayName = COMPONENT_NAME$M;
8516
8489
  InlineList.className = CLASSNAME$M;
8517
- InlineList.defaultProps = DEFAULT_PROPS$J;
8490
+ InlineList.defaultProps = DEFAULT_PROPS$K;
8518
8491
 
8519
8492
  /**
8520
8493
  * InputHelper component.
@@ -8692,20 +8665,6 @@ const Lightbox = forwardRef((props, ref) => {
8692
8665
  Lightbox.displayName = COMPONENT_NAME$L;
8693
8666
  Lightbox.className = CLASSNAME$L;
8694
8667
 
8695
- /** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
8696
- const forwardRefPolymorphic = React__default.forwardRef;
8697
-
8698
- /**
8699
- * Render clickable element (link, button or custom element)
8700
- * (also does some basic disabled state handling)
8701
- */
8702
- const RawClickable = forwardRefPolymorphic((props, ref) => {
8703
- return RawClickable$1({
8704
- ref,
8705
- ...props
8706
- });
8707
- });
8708
-
8709
8668
  /**
8710
8669
  * Component display name.
8711
8670
  */
@@ -8718,7 +8677,101 @@ const CLASSNAME$K = 'lumx-link';
8718
8677
  const {
8719
8678
  block: block$E,
8720
8679
  element: element$u
8721
- } = classNames.bem(CLASSNAME$K);
8680
+ } = bem(CLASSNAME$K);
8681
+
8682
+ /**
8683
+ * Link component (Core UI).
8684
+ *
8685
+ * @param props Component props.
8686
+ * @return JSX element.
8687
+ */
8688
+ const Link$1 = props => {
8689
+ const {
8690
+ label,
8691
+ className,
8692
+ color: propColor,
8693
+ colorVariant: propColorVariant,
8694
+ leftIcon,
8695
+ rightIcon,
8696
+ typography: typography$1,
8697
+ as,
8698
+ ref,
8699
+ isDisabled,
8700
+ theme,
8701
+ href,
8702
+ target,
8703
+ onClick,
8704
+ ...forwardedProps
8705
+ } = props;
8706
+ const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
8707
+
8708
+ // Determine element type
8709
+ const ElementType = as || (href ? 'a' : 'button');
8710
+
8711
+ // Build disabled props
8712
+ const disabledProps = {};
8713
+ if (isDisabled) {
8714
+ if (ElementType === 'button' || !href && !as) {
8715
+ disabledProps.disabled = true;
8716
+ } else {
8717
+ disabledProps['aria-disabled'] = true;
8718
+ disabledProps.tabIndex = -1;
8719
+ }
8720
+ }
8721
+
8722
+ // Build class name
8723
+ const combinedClassName = classnames(className, block$E({
8724
+ [`color-${color}`]: Boolean(color),
8725
+ [`color-variant-${colorVariant}`]: Boolean(colorVariant),
8726
+ 'has-typography': !!typography$1
8727
+ }), typography$1 && typography(typography$1));
8728
+
8729
+ // Build content with proper spacing for icons
8730
+ const content = /*#__PURE__*/jsxs(Fragment, {
8731
+ children: [leftIcon && /*#__PURE__*/jsxs(Fragment, {
8732
+ children: [" ", Icon$1({
8733
+ icon: leftIcon,
8734
+ className: element$u('left-icon')
8735
+ }), " "]
8736
+ }), label && /*#__PURE__*/jsx("span", {
8737
+ className: element$u('content'),
8738
+ children: label
8739
+ }), rightIcon && /*#__PURE__*/jsxs(Fragment, {
8740
+ children: [" ", Icon$1({
8741
+ icon: rightIcon,
8742
+ className: element$u('right-icon')
8743
+ }), " "]
8744
+ })]
8745
+ });
8746
+
8747
+ // Build element props
8748
+ const elementProps = {
8749
+ ref,
8750
+ className: combinedClassName,
8751
+ onClick: isDisabled ? undefined : onClick,
8752
+ ...forwardedProps,
8753
+ ...disabledProps
8754
+ };
8755
+ if (href) {
8756
+ elementProps.href = href;
8757
+ }
8758
+ if (target) {
8759
+ elementProps.target = target;
8760
+ }
8761
+ return /*#__PURE__*/jsx(ElementType, {
8762
+ ...elementProps,
8763
+ children: content
8764
+ });
8765
+ };
8766
+
8767
+ /**
8768
+ * Defines the props of the component.
8769
+ */
8770
+
8771
+ /**
8772
+ * Component default props.
8773
+ */
8774
+ const DEFAULT_PROPS$J = {};
8722
8775
 
8723
8776
  /**
8724
8777
  * Link component.
@@ -8729,47 +8782,42 @@ const {
8729
8782
  */
8730
8783
  const Link = forwardRef((props, ref) => {
8731
8784
  const {
8785
+ isAnyDisabled,
8732
8786
  disabledStateProps,
8733
8787
  otherProps
8734
8788
  } = useDisableStateProps(props);
8735
8789
  const {
8736
8790
  children,
8737
8791
  className,
8738
- color: propColor,
8739
- colorVariant: propColorVariant,
8792
+ color,
8793
+ colorVariant,
8740
8794
  leftIcon,
8741
8795
  rightIcon,
8742
8796
  typography,
8743
8797
  linkAs,
8744
8798
  ...forwardedProps
8745
8799
  } = otherProps;
8746
- const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
8747
- return /*#__PURE__*/jsx(RawClickable, {
8748
- ref: ref,
8749
- as: linkAs || (forwardedProps.href ? 'a' : 'button'),
8800
+
8801
+ // Wrap children with spaces if they contain icons
8802
+ const label = wrapChildrenIconWithSpaces(children);
8803
+ return Link$1({
8804
+ ref,
8805
+ label,
8806
+ className,
8807
+ color,
8808
+ colorVariant,
8809
+ leftIcon,
8810
+ rightIcon,
8811
+ typography,
8812
+ as: linkAs,
8750
8813
  ...forwardedProps,
8751
8814
  ...disabledStateProps,
8752
- className: classNames.join(className, block$E({
8753
- [`color-${color}`]: Boolean(color),
8754
- [`color-variant-${colorVariant}`]: Boolean(colorVariant),
8755
- 'has-typography': !!typography
8756
- }), typography && classNames.typography(typography)),
8757
- children: wrapChildrenIconWithSpaces(/*#__PURE__*/jsxs(Fragment, {
8758
- children: [leftIcon && /*#__PURE__*/jsx(Icon, {
8759
- icon: leftIcon,
8760
- className: element$u('left-icon')
8761
- }), children && /*#__PURE__*/jsx("span", {
8762
- className: element$u('content'),
8763
- children: children
8764
- }), rightIcon && /*#__PURE__*/jsx(Icon, {
8765
- icon: rightIcon,
8766
- className: element$u('right-icon')
8767
- })]
8768
- }))
8815
+ isDisabled: isAnyDisabled
8769
8816
  });
8770
8817
  });
8771
8818
  Link.displayName = COMPONENT_NAME$K;
8772
8819
  Link.className = CLASSNAME$K;
8820
+ Link.defaultProps = DEFAULT_PROPS$J;
8773
8821
 
8774
8822
  /**
8775
8823
  * Component display name.
@@ -9266,6 +9314,20 @@ Mosaic.displayName = COMPONENT_NAME$E;
9266
9314
  Mosaic.className = CLASSNAME$E;
9267
9315
  Mosaic.defaultProps = DEFAULT_PROPS$G;
9268
9316
 
9317
+ /** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
9318
+ const forwardRefPolymorphic = React__default.forwardRef;
9319
+
9320
+ /**
9321
+ * Render clickable element (link, button or custom element)
9322
+ * (also does some basic disabled state handling)
9323
+ */
9324
+ const RawClickable = forwardRefPolymorphic((props, ref) => {
9325
+ return RawClickable$1({
9326
+ ref,
9327
+ ...props
9328
+ });
9329
+ });
9330
+
9269
9331
  const NavigationContext = /*#__PURE__*/createContext({
9270
9332
  orientation: Orientation$1.vertical
9271
9333
  });
@@ -14946,5 +15008,5 @@ UserBlock.displayName = COMPONENT_NAME;
14946
15008
  UserBlock.className = CLASSNAME;
14947
15009
  UserBlock.defaultProps = DEFAULT_PROPS;
14948
15010
 
14949
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1e as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$14 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, 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 };
15011
+ export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1e as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$15 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, 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 };
14950
15012
  //# sourceMappingURL=index.js.map