@lumx/react 4.0.0 → 4.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +12 -2
- package/index.js +246 -174
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -43,6 +43,7 @@ import range from 'lodash/range';
|
|
|
43
43
|
import { mdiPlayCircleOutline } from '@lumx/icons/esm/play-circle-outline';
|
|
44
44
|
import { mdiPauseCircleOutline } from '@lumx/icons/esm/pause-circle-outline';
|
|
45
45
|
import chunk from 'lodash/chunk';
|
|
46
|
+
import debounce$1 from 'lodash/debounce';
|
|
46
47
|
import ReactDOM from 'react-dom';
|
|
47
48
|
import take from 'lodash/take';
|
|
48
49
|
import isObject from 'lodash/isObject';
|
|
@@ -248,7 +249,7 @@ const CLASSNAME$1i = 'lumx-alert-dialog';
|
|
|
248
249
|
/**
|
|
249
250
|
* Component default props.
|
|
250
251
|
*/
|
|
251
|
-
const DEFAULT_PROPS$
|
|
252
|
+
const DEFAULT_PROPS$16 = {
|
|
252
253
|
size: Size.tiny,
|
|
253
254
|
kind: Kind.info
|
|
254
255
|
};
|
|
@@ -269,8 +270,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
269
270
|
className,
|
|
270
271
|
cancelProps,
|
|
271
272
|
confirmProps,
|
|
272
|
-
kind = DEFAULT_PROPS$
|
|
273
|
-
size = DEFAULT_PROPS$
|
|
273
|
+
kind = DEFAULT_PROPS$16.kind,
|
|
274
|
+
size = DEFAULT_PROPS$16.size,
|
|
274
275
|
dialogProps,
|
|
275
276
|
children,
|
|
276
277
|
...forwardedProps
|
|
@@ -359,7 +360,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
359
360
|
});
|
|
360
361
|
AlertDialog.displayName = COMPONENT_NAME$1k;
|
|
361
362
|
AlertDialog.className = CLASSNAME$1i;
|
|
362
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
363
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$16;
|
|
363
364
|
|
|
364
365
|
/**
|
|
365
366
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -460,7 +461,7 @@ const CLASSNAME$1h = 'lumx-autocomplete';
|
|
|
460
461
|
/**
|
|
461
462
|
* Component default props.
|
|
462
463
|
*/
|
|
463
|
-
const DEFAULT_PROPS$
|
|
464
|
+
const DEFAULT_PROPS$15 = {
|
|
464
465
|
anchorToInput: false,
|
|
465
466
|
closeOnClick: false,
|
|
466
467
|
closeOnClickAway: true,
|
|
@@ -482,13 +483,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
482
483
|
otherProps
|
|
483
484
|
} = useDisableStateProps(props);
|
|
484
485
|
const {
|
|
485
|
-
anchorToInput = DEFAULT_PROPS$
|
|
486
|
+
anchorToInput = DEFAULT_PROPS$15.anchorToInput,
|
|
486
487
|
children,
|
|
487
488
|
chips,
|
|
488
489
|
className,
|
|
489
|
-
closeOnClick = DEFAULT_PROPS$
|
|
490
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
491
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
490
|
+
closeOnClick = DEFAULT_PROPS$15.closeOnClick,
|
|
491
|
+
closeOnClickAway = DEFAULT_PROPS$15.closeOnClickAway,
|
|
492
|
+
closeOnEscape = DEFAULT_PROPS$15.closeOnEscape,
|
|
492
493
|
error,
|
|
493
494
|
fitToAnchorWidth,
|
|
494
495
|
hasError,
|
|
@@ -509,7 +510,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
509
510
|
onInfiniteScroll,
|
|
510
511
|
placeholder,
|
|
511
512
|
placement,
|
|
512
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
513
|
+
shouldFocusOnClose = DEFAULT_PROPS$15.shouldFocusOnClose,
|
|
513
514
|
theme = defaultTheme,
|
|
514
515
|
value,
|
|
515
516
|
textFieldProps = {},
|
|
@@ -564,7 +565,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
564
565
|
});
|
|
565
566
|
Autocomplete.displayName = COMPONENT_NAME$1j;
|
|
566
567
|
Autocomplete.className = CLASSNAME$1h;
|
|
567
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
568
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$15;
|
|
568
569
|
|
|
569
570
|
/**
|
|
570
571
|
* Component display name.
|
|
@@ -579,7 +580,7 @@ const CLASSNAME$1g = 'lumx-autocomplete-multiple';
|
|
|
579
580
|
/**
|
|
580
581
|
* Component default props.
|
|
581
582
|
*/
|
|
582
|
-
const DEFAULT_PROPS$
|
|
583
|
+
const DEFAULT_PROPS$14 = {
|
|
583
584
|
closeOnClickAway: true,
|
|
584
585
|
closeOnEscape: true,
|
|
585
586
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -619,8 +620,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
619
620
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
620
621
|
chipsAlignment,
|
|
621
622
|
className,
|
|
622
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
623
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
623
|
+
closeOnClickAway = DEFAULT_PROPS$14.closeOnClickAway,
|
|
624
|
+
closeOnEscape = DEFAULT_PROPS$14.closeOnEscape,
|
|
624
625
|
fitToAnchorWidth,
|
|
625
626
|
hasError,
|
|
626
627
|
helper,
|
|
@@ -642,12 +643,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
642
643
|
onKeyDown,
|
|
643
644
|
placeholder,
|
|
644
645
|
placement,
|
|
645
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
646
|
+
selectedChipRender = DEFAULT_PROPS$14.selectedChipRender,
|
|
646
647
|
shouldFocusOnClose,
|
|
647
648
|
theme = defaultTheme,
|
|
648
649
|
type,
|
|
649
650
|
value,
|
|
650
|
-
values = DEFAULT_PROPS$
|
|
651
|
+
values = DEFAULT_PROPS$14.values,
|
|
651
652
|
...forwardedProps
|
|
652
653
|
} = otherProps;
|
|
653
654
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
@@ -689,7 +690,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
689
690
|
});
|
|
690
691
|
AutocompleteMultiple.displayName = COMPONENT_NAME$1i;
|
|
691
692
|
AutocompleteMultiple.className = CLASSNAME$1g;
|
|
692
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
693
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$14;
|
|
693
694
|
|
|
694
695
|
/**
|
|
695
696
|
* Component display name.
|
|
@@ -704,7 +705,7 @@ const CLASSNAME$1f = 'lumx-avatar';
|
|
|
704
705
|
/**
|
|
705
706
|
* Component default props.
|
|
706
707
|
*/
|
|
707
|
-
const DEFAULT_PROPS$
|
|
708
|
+
const DEFAULT_PROPS$13 = {
|
|
708
709
|
size: Size.m
|
|
709
710
|
};
|
|
710
711
|
|
|
@@ -727,7 +728,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
727
728
|
linkAs,
|
|
728
729
|
onClick,
|
|
729
730
|
onKeyPress,
|
|
730
|
-
size = DEFAULT_PROPS$
|
|
731
|
+
size = DEFAULT_PROPS$13.size,
|
|
731
732
|
theme = defaultTheme,
|
|
732
733
|
thumbnailProps,
|
|
733
734
|
...forwardedProps
|
|
@@ -763,7 +764,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
763
764
|
});
|
|
764
765
|
Avatar.displayName = COMPONENT_NAME$1h;
|
|
765
766
|
Avatar.className = CLASSNAME$1f;
|
|
766
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
767
|
+
Avatar.defaultProps = DEFAULT_PROPS$13;
|
|
767
768
|
|
|
768
769
|
/**
|
|
769
770
|
* Component display name.
|
|
@@ -778,7 +779,7 @@ const CLASSNAME$1e = 'lumx-badge';
|
|
|
778
779
|
/**
|
|
779
780
|
* Component default props.
|
|
780
781
|
*/
|
|
781
|
-
const DEFAULT_PROPS$
|
|
782
|
+
const DEFAULT_PROPS$12 = {
|
|
782
783
|
color: ColorPalette.primary
|
|
783
784
|
};
|
|
784
785
|
|
|
@@ -793,7 +794,7 @@ const Badge = forwardRef((props, ref) => {
|
|
|
793
794
|
const {
|
|
794
795
|
children,
|
|
795
796
|
className,
|
|
796
|
-
color = DEFAULT_PROPS$
|
|
797
|
+
color = DEFAULT_PROPS$12.color,
|
|
797
798
|
...forwardedProps
|
|
798
799
|
} = props;
|
|
799
800
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -808,7 +809,7 @@ const Badge = forwardRef((props, ref) => {
|
|
|
808
809
|
});
|
|
809
810
|
Badge.displayName = COMPONENT_NAME$1g;
|
|
810
811
|
Badge.className = CLASSNAME$1e;
|
|
811
|
-
Badge.defaultProps = DEFAULT_PROPS$
|
|
812
|
+
Badge.defaultProps = DEFAULT_PROPS$12;
|
|
812
813
|
|
|
813
814
|
/**
|
|
814
815
|
* Component default class name and class prefix.
|
|
@@ -1028,7 +1029,7 @@ const CLASSNAME$1c = 'lumx-button';
|
|
|
1028
1029
|
/**
|
|
1029
1030
|
* Component default props.
|
|
1030
1031
|
*/
|
|
1031
|
-
const DEFAULT_PROPS$
|
|
1032
|
+
const DEFAULT_PROPS$11 = {
|
|
1032
1033
|
emphasis: Emphasis.high,
|
|
1033
1034
|
size: Size.m
|
|
1034
1035
|
};
|
|
@@ -1045,10 +1046,10 @@ const Button = forwardRef((props, ref) => {
|
|
|
1045
1046
|
const {
|
|
1046
1047
|
children,
|
|
1047
1048
|
className,
|
|
1048
|
-
emphasis = DEFAULT_PROPS$
|
|
1049
|
+
emphasis = DEFAULT_PROPS$11.emphasis,
|
|
1049
1050
|
leftIcon,
|
|
1050
1051
|
rightIcon,
|
|
1051
|
-
size = DEFAULT_PROPS$
|
|
1052
|
+
size = DEFAULT_PROPS$11.size,
|
|
1052
1053
|
theme = defaultTheme,
|
|
1053
1054
|
...forwardedProps
|
|
1054
1055
|
} = props;
|
|
@@ -1092,7 +1093,7 @@ const Button = forwardRef((props, ref) => {
|
|
|
1092
1093
|
});
|
|
1093
1094
|
Button.displayName = COMPONENT_NAME$1e;
|
|
1094
1095
|
Button.className = CLASSNAME$1c;
|
|
1095
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1096
|
+
Button.defaultProps = DEFAULT_PROPS$11;
|
|
1096
1097
|
|
|
1097
1098
|
/**
|
|
1098
1099
|
* Component display name.
|
|
@@ -1107,7 +1108,7 @@ const CLASSNAME$1b = 'lumx-icon-button';
|
|
|
1107
1108
|
/**
|
|
1108
1109
|
* Component default props.
|
|
1109
1110
|
*/
|
|
1110
|
-
const DEFAULT_PROPS
|
|
1111
|
+
const DEFAULT_PROPS$10 = {
|
|
1111
1112
|
emphasis: Emphasis.high,
|
|
1112
1113
|
size: Size.m
|
|
1113
1114
|
};
|
|
@@ -1122,11 +1123,11 @@ const DEFAULT_PROPS$$ = {
|
|
|
1122
1123
|
const IconButton = forwardRef((props, ref) => {
|
|
1123
1124
|
const defaultTheme = useTheme() || Theme.light;
|
|
1124
1125
|
const {
|
|
1125
|
-
emphasis = DEFAULT_PROPS
|
|
1126
|
+
emphasis = DEFAULT_PROPS$10.emphasis,
|
|
1126
1127
|
image,
|
|
1127
1128
|
icon,
|
|
1128
1129
|
label,
|
|
1129
|
-
size = DEFAULT_PROPS
|
|
1130
|
+
size = DEFAULT_PROPS$10.size,
|
|
1130
1131
|
theme = defaultTheme,
|
|
1131
1132
|
tooltipProps,
|
|
1132
1133
|
hideTooltip,
|
|
@@ -1158,7 +1159,7 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1158
1159
|
});
|
|
1159
1160
|
IconButton.displayName = COMPONENT_NAME$1d;
|
|
1160
1161
|
IconButton.className = CLASSNAME$1b;
|
|
1161
|
-
IconButton.defaultProps = DEFAULT_PROPS
|
|
1162
|
+
IconButton.defaultProps = DEFAULT_PROPS$10;
|
|
1162
1163
|
|
|
1163
1164
|
/**
|
|
1164
1165
|
* Component display name.
|
|
@@ -1173,7 +1174,7 @@ const CLASSNAME$1a = 'lumx-button-group';
|
|
|
1173
1174
|
/**
|
|
1174
1175
|
* Component default props.
|
|
1175
1176
|
*/
|
|
1176
|
-
const DEFAULT_PROPS
|
|
1177
|
+
const DEFAULT_PROPS$$ = {};
|
|
1177
1178
|
|
|
1178
1179
|
/**
|
|
1179
1180
|
* ButtonGroup component.
|
|
@@ -1197,7 +1198,7 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1197
1198
|
});
|
|
1198
1199
|
ButtonGroup.displayName = COMPONENT_NAME$1c;
|
|
1199
1200
|
ButtonGroup.className = CLASSNAME$1a;
|
|
1200
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS
|
|
1201
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$$;
|
|
1201
1202
|
|
|
1202
1203
|
/**
|
|
1203
1204
|
* Intermediate state of checkbox.
|
|
@@ -1221,7 +1222,7 @@ const CLASSNAME$19 = 'lumx-checkbox';
|
|
|
1221
1222
|
/**
|
|
1222
1223
|
* Component default props.
|
|
1223
1224
|
*/
|
|
1224
|
-
const DEFAULT_PROPS$
|
|
1225
|
+
const DEFAULT_PROPS$_ = {};
|
|
1225
1226
|
|
|
1226
1227
|
/**
|
|
1227
1228
|
* Checkbox component.
|
|
@@ -1321,7 +1322,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1321
1322
|
});
|
|
1322
1323
|
Checkbox.displayName = COMPONENT_NAME$1b;
|
|
1323
1324
|
Checkbox.className = CLASSNAME$19;
|
|
1324
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
1325
|
+
Checkbox.defaultProps = DEFAULT_PROPS$_;
|
|
1325
1326
|
|
|
1326
1327
|
/**
|
|
1327
1328
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -1352,7 +1353,7 @@ const CLASSNAME$18 = 'lumx-chip';
|
|
|
1352
1353
|
/**
|
|
1353
1354
|
* Component default props.
|
|
1354
1355
|
*/
|
|
1355
|
-
const DEFAULT_PROPS$
|
|
1356
|
+
const DEFAULT_PROPS$Z = {
|
|
1356
1357
|
size: Size.m
|
|
1357
1358
|
};
|
|
1358
1359
|
|
|
@@ -1382,7 +1383,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1382
1383
|
onAfterClick,
|
|
1383
1384
|
onBeforeClick,
|
|
1384
1385
|
onClick,
|
|
1385
|
-
size = DEFAULT_PROPS$
|
|
1386
|
+
size = DEFAULT_PROPS$Z.size,
|
|
1386
1387
|
theme = defaultTheme,
|
|
1387
1388
|
href,
|
|
1388
1389
|
onKeyDown,
|
|
@@ -1455,7 +1456,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1455
1456
|
});
|
|
1456
1457
|
Chip.displayName = COMPONENT_NAME$1a;
|
|
1457
1458
|
Chip.className = CLASSNAME$18;
|
|
1458
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
1459
|
+
Chip.defaultProps = DEFAULT_PROPS$Z;
|
|
1459
1460
|
|
|
1460
1461
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
1461
1462
|
|
|
@@ -1511,7 +1512,7 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
|
|
|
1511
1512
|
/**
|
|
1512
1513
|
* Component default props.
|
|
1513
1514
|
*/
|
|
1514
|
-
const DEFAULT_PROPS$
|
|
1515
|
+
const DEFAULT_PROPS$Y = {};
|
|
1515
1516
|
|
|
1516
1517
|
/**
|
|
1517
1518
|
* Component display name.
|
|
@@ -1546,7 +1547,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
1546
1547
|
});
|
|
1547
1548
|
InternalChipGroup.displayName = COMPONENT_NAME$19;
|
|
1548
1549
|
InternalChipGroup.className = CLASSNAME$17;
|
|
1549
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
1550
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$Y;
|
|
1550
1551
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
1551
1552
|
useChipGroupNavigation
|
|
1552
1553
|
});
|
|
@@ -1576,7 +1577,7 @@ const CLASSNAME$16 = 'lumx-comment-block';
|
|
|
1576
1577
|
/**
|
|
1577
1578
|
* Component default props.
|
|
1578
1579
|
*/
|
|
1579
|
-
const DEFAULT_PROPS$
|
|
1580
|
+
const DEFAULT_PROPS$X = {
|
|
1580
1581
|
variant: CommentBlockVariant.indented
|
|
1581
1582
|
};
|
|
1582
1583
|
|
|
@@ -1606,7 +1607,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
1606
1607
|
onMouseLeave,
|
|
1607
1608
|
text,
|
|
1608
1609
|
theme = defaultTheme,
|
|
1609
|
-
variant = DEFAULT_PROPS$
|
|
1610
|
+
variant = DEFAULT_PROPS$X.variant,
|
|
1610
1611
|
...forwardedProps
|
|
1611
1612
|
} = props;
|
|
1612
1613
|
const hasChildren = Children.count(children) > 0;
|
|
@@ -1676,7 +1677,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
1676
1677
|
});
|
|
1677
1678
|
CommentBlock.displayName = COMPONENT_NAME$18;
|
|
1678
1679
|
CommentBlock.className = CLASSNAME$16;
|
|
1679
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
1680
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$X;
|
|
1680
1681
|
|
|
1681
1682
|
/**
|
|
1682
1683
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -2769,7 +2770,7 @@ const CLASSNAME$14 = 'lumx-dialog';
|
|
|
2769
2770
|
/**
|
|
2770
2771
|
* Component default props.
|
|
2771
2772
|
*/
|
|
2772
|
-
const DEFAULT_PROPS$
|
|
2773
|
+
const DEFAULT_PROPS$W = {
|
|
2773
2774
|
size: Size.big,
|
|
2774
2775
|
disableBodyScroll: true
|
|
2775
2776
|
};
|
|
@@ -2800,11 +2801,11 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
2800
2801
|
parentElement,
|
|
2801
2802
|
contentRef,
|
|
2802
2803
|
preventAutoClose,
|
|
2803
|
-
size = DEFAULT_PROPS$
|
|
2804
|
+
size = DEFAULT_PROPS$W.size,
|
|
2804
2805
|
zIndex,
|
|
2805
2806
|
dialogProps,
|
|
2806
2807
|
onVisibilityChange,
|
|
2807
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
2808
|
+
disableBodyScroll = DEFAULT_PROPS$W.disableBodyScroll,
|
|
2808
2809
|
preventCloseOnClick,
|
|
2809
2810
|
preventCloseOnEscape,
|
|
2810
2811
|
...forwardedProps
|
|
@@ -2937,7 +2938,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
2937
2938
|
});
|
|
2938
2939
|
Dialog.displayName = COMPONENT_NAME$14;
|
|
2939
2940
|
Dialog.className = CLASSNAME$14;
|
|
2940
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
2941
|
+
Dialog.defaultProps = DEFAULT_PROPS$W;
|
|
2941
2942
|
|
|
2942
2943
|
/**
|
|
2943
2944
|
* Component display name.
|
|
@@ -2952,7 +2953,7 @@ const CLASSNAME$13 = 'lumx-divider';
|
|
|
2952
2953
|
/**
|
|
2953
2954
|
* Component default props.
|
|
2954
2955
|
*/
|
|
2955
|
-
const DEFAULT_PROPS$
|
|
2956
|
+
const DEFAULT_PROPS$V = {};
|
|
2956
2957
|
|
|
2957
2958
|
/**
|
|
2958
2959
|
* Divider component.
|
|
@@ -2979,7 +2980,7 @@ const Divider = forwardRef((props, ref) => {
|
|
|
2979
2980
|
});
|
|
2980
2981
|
Divider.displayName = COMPONENT_NAME$13;
|
|
2981
2982
|
Divider.className = CLASSNAME$13;
|
|
2982
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
2983
|
+
Divider.defaultProps = DEFAULT_PROPS$V;
|
|
2983
2984
|
|
|
2984
2985
|
/**
|
|
2985
2986
|
* Component display name.
|
|
@@ -3199,7 +3200,7 @@ const CLASSNAME$11 = 'lumx-list';
|
|
|
3199
3200
|
/**
|
|
3200
3201
|
* Component default props.
|
|
3201
3202
|
*/
|
|
3202
|
-
const DEFAULT_PROPS$
|
|
3203
|
+
const DEFAULT_PROPS$U = {
|
|
3203
3204
|
tabIndex: -1
|
|
3204
3205
|
};
|
|
3205
3206
|
|
|
@@ -3218,7 +3219,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3218
3219
|
isClickable,
|
|
3219
3220
|
itemPadding,
|
|
3220
3221
|
onListItemSelected,
|
|
3221
|
-
tabIndex = DEFAULT_PROPS$
|
|
3222
|
+
tabIndex = DEFAULT_PROPS$U.tabIndex,
|
|
3222
3223
|
...forwardedProps
|
|
3223
3224
|
} = props;
|
|
3224
3225
|
return /*#__PURE__*/jsx("ul", {
|
|
@@ -3234,7 +3235,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3234
3235
|
});
|
|
3235
3236
|
InternalList.displayName = COMPONENT_NAME$11;
|
|
3236
3237
|
InternalList.className = CLASSNAME$11;
|
|
3237
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
3238
|
+
InternalList.defaultProps = DEFAULT_PROPS$U;
|
|
3238
3239
|
const List = Object.assign(InternalList, {
|
|
3239
3240
|
useKeyboardListNavigation
|
|
3240
3241
|
});
|
|
@@ -5675,7 +5676,7 @@ const CLASSNAME$10 = 'lumx-popover';
|
|
|
5675
5676
|
/**
|
|
5676
5677
|
* Component default props.
|
|
5677
5678
|
*/
|
|
5678
|
-
const DEFAULT_PROPS$
|
|
5679
|
+
const DEFAULT_PROPS$T = {
|
|
5679
5680
|
elevation: 3,
|
|
5680
5681
|
placement: Placement.AUTO,
|
|
5681
5682
|
focusAnchorOnClose: true,
|
|
@@ -5692,24 +5693,24 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
5692
5693
|
className,
|
|
5693
5694
|
closeOnClickAway,
|
|
5694
5695
|
closeOnEscape,
|
|
5695
|
-
elevation = DEFAULT_PROPS$
|
|
5696
|
+
elevation = DEFAULT_PROPS$T.elevation,
|
|
5696
5697
|
focusElement,
|
|
5697
5698
|
hasArrow,
|
|
5698
5699
|
isOpen,
|
|
5699
5700
|
onClose,
|
|
5700
5701
|
parentElement,
|
|
5701
|
-
usePortal = DEFAULT_PROPS$
|
|
5702
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
5702
|
+
usePortal = DEFAULT_PROPS$T.usePortal,
|
|
5703
|
+
focusAnchorOnClose = DEFAULT_PROPS$T.focusAnchorOnClose,
|
|
5703
5704
|
withFocusTrap,
|
|
5704
5705
|
boundaryRef,
|
|
5705
5706
|
fitToAnchorWidth,
|
|
5706
5707
|
fitWithinViewportHeight,
|
|
5707
5708
|
focusTrapZoneElement,
|
|
5708
5709
|
offset,
|
|
5709
|
-
placement = DEFAULT_PROPS$
|
|
5710
|
+
placement = DEFAULT_PROPS$T.placement,
|
|
5710
5711
|
style,
|
|
5711
5712
|
theme,
|
|
5712
|
-
zIndex = DEFAULT_PROPS$
|
|
5713
|
+
zIndex = DEFAULT_PROPS$T.zIndex,
|
|
5713
5714
|
...forwardedProps
|
|
5714
5715
|
} = props;
|
|
5715
5716
|
const popoverRef = useRef(null);
|
|
@@ -5795,7 +5796,7 @@ const Popover = skipRender(
|
|
|
5795
5796
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
5796
5797
|
Popover.displayName = COMPONENT_NAME$10;
|
|
5797
5798
|
Popover.className = CLASSNAME$10;
|
|
5798
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
5799
|
+
Popover.defaultProps = DEFAULT_PROPS$T;
|
|
5799
5800
|
|
|
5800
5801
|
// The error margin in px we want to have for triggering infinite scroll
|
|
5801
5802
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -5851,7 +5852,7 @@ const CLASSNAME$$ = 'lumx-dropdown';
|
|
|
5851
5852
|
/**
|
|
5852
5853
|
* Component default props.
|
|
5853
5854
|
*/
|
|
5854
|
-
const DEFAULT_PROPS$
|
|
5855
|
+
const DEFAULT_PROPS$S = {
|
|
5855
5856
|
closeOnClick: true,
|
|
5856
5857
|
closeOnClickAway: true,
|
|
5857
5858
|
closeOnEscape: true,
|
|
@@ -5874,18 +5875,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
5874
5875
|
anchorRef,
|
|
5875
5876
|
children,
|
|
5876
5877
|
className,
|
|
5877
|
-
closeOnClick = DEFAULT_PROPS$
|
|
5878
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
5879
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
5880
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
5881
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
5878
|
+
closeOnClick = DEFAULT_PROPS$S.closeOnClick,
|
|
5879
|
+
closeOnClickAway = DEFAULT_PROPS$S.closeOnClickAway,
|
|
5880
|
+
closeOnEscape = DEFAULT_PROPS$S.closeOnEscape,
|
|
5881
|
+
fitToAnchorWidth = DEFAULT_PROPS$S.fitToAnchorWidth,
|
|
5882
|
+
fitWithinViewportHeight = DEFAULT_PROPS$S.fitWithinViewportHeight,
|
|
5882
5883
|
isOpen,
|
|
5883
5884
|
offset,
|
|
5884
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
5885
|
+
focusAnchorOnClose = DEFAULT_PROPS$S.focusAnchorOnClose,
|
|
5885
5886
|
onClose,
|
|
5886
5887
|
onInfiniteScroll,
|
|
5887
|
-
placement = DEFAULT_PROPS$
|
|
5888
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
5888
|
+
placement = DEFAULT_PROPS$S.placement,
|
|
5889
|
+
shouldFocusOnOpen = DEFAULT_PROPS$S.shouldFocusOnOpen,
|
|
5889
5890
|
zIndex,
|
|
5890
5891
|
...forwardedProps
|
|
5891
5892
|
} = props;
|
|
@@ -5931,7 +5932,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
5931
5932
|
});
|
|
5932
5933
|
Dropdown.displayName = COMPONENT_NAME$$;
|
|
5933
5934
|
Dropdown.className = CLASSNAME$$;
|
|
5934
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
5935
|
+
Dropdown.defaultProps = DEFAULT_PROPS$S;
|
|
5935
5936
|
|
|
5936
5937
|
/**
|
|
5937
5938
|
* Component display name.
|
|
@@ -5946,7 +5947,7 @@ const CLASSNAME$_ = 'lumx-expansion-panel';
|
|
|
5946
5947
|
/**
|
|
5947
5948
|
* Component default props.
|
|
5948
5949
|
*/
|
|
5949
|
-
const DEFAULT_PROPS$
|
|
5950
|
+
const DEFAULT_PROPS$R = {
|
|
5950
5951
|
closeMode: 'unmount'
|
|
5951
5952
|
};
|
|
5952
5953
|
const isDragHandle = isComponent(DragHandle);
|
|
@@ -5964,7 +5965,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
5964
5965
|
const defaultTheme = useTheme() || Theme.light;
|
|
5965
5966
|
const {
|
|
5966
5967
|
className,
|
|
5967
|
-
closeMode = DEFAULT_PROPS$
|
|
5968
|
+
closeMode = DEFAULT_PROPS$R.closeMode,
|
|
5968
5969
|
children: anyChildren,
|
|
5969
5970
|
hasBackground,
|
|
5970
5971
|
hasHeaderDivider,
|
|
@@ -6082,11 +6083,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6082
6083
|
});
|
|
6083
6084
|
ExpansionPanel.displayName = COMPONENT_NAME$_;
|
|
6084
6085
|
ExpansionPanel.className = CLASSNAME$_;
|
|
6085
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
6086
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$R;
|
|
6086
6087
|
|
|
6087
6088
|
const COMPONENT_NAME$Z = 'Flag';
|
|
6088
6089
|
const CLASSNAME$Z = 'lumx-flag';
|
|
6089
|
-
const DEFAULT_PROPS$
|
|
6090
|
+
const DEFAULT_PROPS$Q = {};
|
|
6090
6091
|
|
|
6091
6092
|
/**
|
|
6092
6093
|
* Flag component.
|
|
@@ -6131,7 +6132,7 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6131
6132
|
});
|
|
6132
6133
|
Flag.displayName = COMPONENT_NAME$Z;
|
|
6133
6134
|
Flag.className = CLASSNAME$Z;
|
|
6134
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
6135
|
+
Flag.defaultProps = DEFAULT_PROPS$Q;
|
|
6135
6136
|
|
|
6136
6137
|
/**
|
|
6137
6138
|
* Component display name.
|
|
@@ -6194,7 +6195,7 @@ const CLASSNAME$X = 'lumx-generic-block';
|
|
|
6194
6195
|
/**
|
|
6195
6196
|
* Component default props.
|
|
6196
6197
|
*/
|
|
6197
|
-
const DEFAULT_PROPS$
|
|
6198
|
+
const DEFAULT_PROPS$P = {
|
|
6198
6199
|
gap: Size.big,
|
|
6199
6200
|
orientation: Orientation.horizontal
|
|
6200
6201
|
};
|
|
@@ -6224,8 +6225,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6224
6225
|
children,
|
|
6225
6226
|
actions,
|
|
6226
6227
|
actionsProps,
|
|
6227
|
-
gap = DEFAULT_PROPS$
|
|
6228
|
-
orientation = DEFAULT_PROPS$
|
|
6228
|
+
gap = DEFAULT_PROPS$P.gap,
|
|
6229
|
+
orientation = DEFAULT_PROPS$P.orientation,
|
|
6229
6230
|
contentProps,
|
|
6230
6231
|
...forwardedProps
|
|
6231
6232
|
} = props;
|
|
@@ -6279,7 +6280,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6279
6280
|
});
|
|
6280
6281
|
BaseGenericBlock.displayName = COMPONENT_NAME$X;
|
|
6281
6282
|
BaseGenericBlock.className = CLASSNAME$X;
|
|
6282
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
6283
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$P;
|
|
6283
6284
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
6284
6285
|
Figure,
|
|
6285
6286
|
Content,
|
|
@@ -6360,7 +6361,7 @@ const CLASSNAME$W = 'lumx-text';
|
|
|
6360
6361
|
/**
|
|
6361
6362
|
* Component default props.
|
|
6362
6363
|
*/
|
|
6363
|
-
const DEFAULT_PROPS$
|
|
6364
|
+
const DEFAULT_PROPS$O = {};
|
|
6364
6365
|
|
|
6365
6366
|
/**
|
|
6366
6367
|
* Text component.
|
|
@@ -6422,7 +6423,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
6422
6423
|
});
|
|
6423
6424
|
Text.displayName = COMPONENT_NAME$W;
|
|
6424
6425
|
Text.className = CLASSNAME$W;
|
|
6425
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
6426
|
+
Text.defaultProps = DEFAULT_PROPS$O;
|
|
6426
6427
|
|
|
6427
6428
|
/** The maximum authorized heading level. */
|
|
6428
6429
|
const MAX_HEADING_LEVEL = 6;
|
|
@@ -6469,7 +6470,7 @@ const CLASSNAME$V = 'lumx-heading';
|
|
|
6469
6470
|
/**
|
|
6470
6471
|
* Component default props.
|
|
6471
6472
|
*/
|
|
6472
|
-
const DEFAULT_PROPS$
|
|
6473
|
+
const DEFAULT_PROPS$N = {};
|
|
6473
6474
|
|
|
6474
6475
|
/**
|
|
6475
6476
|
* Renders a heading component.
|
|
@@ -6498,7 +6499,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
6498
6499
|
});
|
|
6499
6500
|
Heading.displayName = COMPONENT_NAME$V;
|
|
6500
6501
|
Heading.className = CLASSNAME$V;
|
|
6501
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
6502
|
+
Heading.defaultProps = DEFAULT_PROPS$N;
|
|
6502
6503
|
|
|
6503
6504
|
/**
|
|
6504
6505
|
* Provide a new heading level context.
|
|
@@ -6536,7 +6537,7 @@ const CLASSNAME$U = 'lumx-grid';
|
|
|
6536
6537
|
/**
|
|
6537
6538
|
* Component default props.
|
|
6538
6539
|
*/
|
|
6539
|
-
const DEFAULT_PROPS$
|
|
6540
|
+
const DEFAULT_PROPS$M = {
|
|
6540
6541
|
orientation: Orientation.horizontal,
|
|
6541
6542
|
wrap: 'nowrap'
|
|
6542
6543
|
};
|
|
@@ -6554,9 +6555,9 @@ const Grid = forwardRef((props, ref) => {
|
|
|
6554
6555
|
className,
|
|
6555
6556
|
gutter,
|
|
6556
6557
|
hAlign,
|
|
6557
|
-
orientation = DEFAULT_PROPS$
|
|
6558
|
+
orientation = DEFAULT_PROPS$M.orientation,
|
|
6558
6559
|
vAlign,
|
|
6559
|
-
wrap = DEFAULT_PROPS$
|
|
6560
|
+
wrap = DEFAULT_PROPS$M.wrap,
|
|
6560
6561
|
...forwardedProps
|
|
6561
6562
|
} = props;
|
|
6562
6563
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -6577,7 +6578,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
6577
6578
|
});
|
|
6578
6579
|
Grid.displayName = COMPONENT_NAME$U;
|
|
6579
6580
|
Grid.className = CLASSNAME$U;
|
|
6580
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
6581
|
+
Grid.defaultProps = DEFAULT_PROPS$M;
|
|
6581
6582
|
|
|
6582
6583
|
/**
|
|
6583
6584
|
* Component display name.
|
|
@@ -6633,7 +6634,7 @@ const CLASSNAME$S = 'lumx-grid-column';
|
|
|
6633
6634
|
/**
|
|
6634
6635
|
* Component default props.
|
|
6635
6636
|
*/
|
|
6636
|
-
const DEFAULT_PROPS$
|
|
6637
|
+
const DEFAULT_PROPS$L = {};
|
|
6637
6638
|
|
|
6638
6639
|
/**
|
|
6639
6640
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -6670,7 +6671,7 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
6670
6671
|
});
|
|
6671
6672
|
GridColumn.displayName = COMPONENT_NAME$S;
|
|
6672
6673
|
GridColumn.className = CLASSNAME$S;
|
|
6673
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
6674
|
+
GridColumn.defaultProps = DEFAULT_PROPS$L;
|
|
6674
6675
|
|
|
6675
6676
|
/** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
|
|
6676
6677
|
function resolveColorWithVariants(colorWithVariants, colorVariant) {
|
|
@@ -6692,7 +6693,7 @@ const CLASSNAME$R = 'lumx-icon';
|
|
|
6692
6693
|
/**
|
|
6693
6694
|
* Component default props.
|
|
6694
6695
|
*/
|
|
6695
|
-
const DEFAULT_PROPS$
|
|
6696
|
+
const DEFAULT_PROPS$K = {};
|
|
6696
6697
|
|
|
6697
6698
|
/**
|
|
6698
6699
|
* Icon component.
|
|
@@ -6770,7 +6771,7 @@ const Icon = forwardRef((props, ref) => {
|
|
|
6770
6771
|
});
|
|
6771
6772
|
Icon.displayName = COMPONENT_NAME$R;
|
|
6772
6773
|
Icon.className = CLASSNAME$R;
|
|
6773
|
-
Icon.defaultProps = DEFAULT_PROPS$
|
|
6774
|
+
Icon.defaultProps = DEFAULT_PROPS$K;
|
|
6774
6775
|
|
|
6775
6776
|
/** Internal component used to render image captions */
|
|
6776
6777
|
const ImageCaption = props => {
|
|
@@ -6865,7 +6866,7 @@ const CLASSNAME$Q = 'lumx-image-block';
|
|
|
6865
6866
|
/**
|
|
6866
6867
|
* Component default props.
|
|
6867
6868
|
*/
|
|
6868
|
-
const DEFAULT_PROPS$
|
|
6869
|
+
const DEFAULT_PROPS$J = {
|
|
6869
6870
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
6870
6871
|
align: Alignment.left
|
|
6871
6872
|
};
|
|
@@ -6881,9 +6882,9 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
6881
6882
|
const defaultTheme = useTheme() || Theme.light;
|
|
6882
6883
|
const {
|
|
6883
6884
|
actions,
|
|
6884
|
-
align = DEFAULT_PROPS$
|
|
6885
|
+
align = DEFAULT_PROPS$J.align,
|
|
6885
6886
|
alt,
|
|
6886
|
-
captionPosition = DEFAULT_PROPS$
|
|
6887
|
+
captionPosition = DEFAULT_PROPS$J.captionPosition,
|
|
6887
6888
|
captionStyle,
|
|
6888
6889
|
className,
|
|
6889
6890
|
description,
|
|
@@ -6937,7 +6938,7 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
6937
6938
|
});
|
|
6938
6939
|
ImageBlock.displayName = COMPONENT_NAME$Q;
|
|
6939
6940
|
ImageBlock.className = CLASSNAME$Q;
|
|
6940
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
6941
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$J;
|
|
6941
6942
|
|
|
6942
6943
|
/**
|
|
6943
6944
|
* Component display name.
|
|
@@ -7687,7 +7688,7 @@ const CLASSNAME$O = 'lumx-inline-list';
|
|
|
7687
7688
|
/**
|
|
7688
7689
|
* Component default props.
|
|
7689
7690
|
*/
|
|
7690
|
-
const DEFAULT_PROPS$
|
|
7691
|
+
const DEFAULT_PROPS$I = {};
|
|
7691
7692
|
|
|
7692
7693
|
/**
|
|
7693
7694
|
* InlineList component.
|
|
@@ -7738,7 +7739,7 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
7738
7739
|
});
|
|
7739
7740
|
InlineList.displayName = COMPONENT_NAME$O;
|
|
7740
7741
|
InlineList.className = CLASSNAME$O;
|
|
7741
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
7742
|
+
InlineList.defaultProps = DEFAULT_PROPS$I;
|
|
7742
7743
|
|
|
7743
7744
|
const INPUT_HELPER_CONFIGURATION = {
|
|
7744
7745
|
error: {
|
|
@@ -7765,7 +7766,7 @@ const CLASSNAME$N = 'lumx-input-helper';
|
|
|
7765
7766
|
/**
|
|
7766
7767
|
* Component default props.
|
|
7767
7768
|
*/
|
|
7768
|
-
const DEFAULT_PROPS$
|
|
7769
|
+
const DEFAULT_PROPS$H = {
|
|
7769
7770
|
kind: Kind.info
|
|
7770
7771
|
};
|
|
7771
7772
|
|
|
@@ -7781,7 +7782,7 @@ const InputHelper = forwardRef((props, ref) => {
|
|
|
7781
7782
|
const {
|
|
7782
7783
|
children,
|
|
7783
7784
|
className,
|
|
7784
|
-
kind = DEFAULT_PROPS$
|
|
7785
|
+
kind = DEFAULT_PROPS$H.kind,
|
|
7785
7786
|
theme = defaultTheme,
|
|
7786
7787
|
...forwardedProps
|
|
7787
7788
|
} = props;
|
|
@@ -7801,7 +7802,7 @@ const InputHelper = forwardRef((props, ref) => {
|
|
|
7801
7802
|
});
|
|
7802
7803
|
InputHelper.displayName = COMPONENT_NAME$N;
|
|
7803
7804
|
InputHelper.className = CLASSNAME$N;
|
|
7804
|
-
InputHelper.defaultProps = DEFAULT_PROPS$
|
|
7805
|
+
InputHelper.defaultProps = DEFAULT_PROPS$H;
|
|
7805
7806
|
|
|
7806
7807
|
/**
|
|
7807
7808
|
* Component display name.
|
|
@@ -7816,7 +7817,7 @@ const CLASSNAME$M = 'lumx-input-label';
|
|
|
7816
7817
|
/**
|
|
7817
7818
|
* Component default props.
|
|
7818
7819
|
*/
|
|
7819
|
-
const DEFAULT_PROPS$
|
|
7820
|
+
const DEFAULT_PROPS$G = {};
|
|
7820
7821
|
|
|
7821
7822
|
/**
|
|
7822
7823
|
* InputLabel component.
|
|
@@ -7851,7 +7852,7 @@ const InputLabel = forwardRef((props, ref) => {
|
|
|
7851
7852
|
});
|
|
7852
7853
|
InputLabel.displayName = COMPONENT_NAME$M;
|
|
7853
7854
|
InputLabel.className = CLASSNAME$M;
|
|
7854
|
-
InputLabel.defaultProps = DEFAULT_PROPS$
|
|
7855
|
+
InputLabel.defaultProps = DEFAULT_PROPS$G;
|
|
7855
7856
|
|
|
7856
7857
|
/**
|
|
7857
7858
|
* Component display name.
|
|
@@ -8063,7 +8064,7 @@ const CLASSNAME$J = 'lumx-link-preview';
|
|
|
8063
8064
|
/**
|
|
8064
8065
|
* Component default props.
|
|
8065
8066
|
*/
|
|
8066
|
-
const DEFAULT_PROPS$
|
|
8067
|
+
const DEFAULT_PROPS$F = {
|
|
8067
8068
|
size: Size.regular,
|
|
8068
8069
|
titleHeading: 'h2'
|
|
8069
8070
|
};
|
|
@@ -8083,11 +8084,11 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8083
8084
|
link,
|
|
8084
8085
|
linkAs,
|
|
8085
8086
|
linkProps,
|
|
8086
|
-
size = DEFAULT_PROPS$
|
|
8087
|
+
size = DEFAULT_PROPS$F.size,
|
|
8087
8088
|
theme = defaultTheme,
|
|
8088
8089
|
thumbnailProps,
|
|
8089
8090
|
title,
|
|
8090
|
-
titleHeading = DEFAULT_PROPS$
|
|
8091
|
+
titleHeading = DEFAULT_PROPS$F.titleHeading,
|
|
8091
8092
|
...forwardedProps
|
|
8092
8093
|
} = props;
|
|
8093
8094
|
// Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
|
|
@@ -8155,7 +8156,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8155
8156
|
});
|
|
8156
8157
|
LinkPreview.displayName = COMPONENT_NAME$J;
|
|
8157
8158
|
LinkPreview.className = CLASSNAME$J;
|
|
8158
|
-
LinkPreview.defaultProps = DEFAULT_PROPS$
|
|
8159
|
+
LinkPreview.defaultProps = DEFAULT_PROPS$F;
|
|
8159
8160
|
|
|
8160
8161
|
/**
|
|
8161
8162
|
* Render link with default <a> HTML component or a custom one provided by `linkAs`.
|
|
@@ -8184,7 +8185,7 @@ const CLASSNAME$I = 'lumx-list-item';
|
|
|
8184
8185
|
/**
|
|
8185
8186
|
* Component default props.
|
|
8186
8187
|
*/
|
|
8187
|
-
const DEFAULT_PROPS$
|
|
8188
|
+
const DEFAULT_PROPS$E = {
|
|
8188
8189
|
size: Size.regular
|
|
8189
8190
|
};
|
|
8190
8191
|
|
|
@@ -8223,7 +8224,7 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
8223
8224
|
linkProps = {},
|
|
8224
8225
|
linkRef,
|
|
8225
8226
|
onItemSelected,
|
|
8226
|
-
size = DEFAULT_PROPS$
|
|
8227
|
+
size = DEFAULT_PROPS$E.size,
|
|
8227
8228
|
...forwardedProps
|
|
8228
8229
|
} = otherProps;
|
|
8229
8230
|
const role = linkAs || linkProps.href ? 'link' : 'button';
|
|
@@ -8282,7 +8283,7 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
8282
8283
|
});
|
|
8283
8284
|
ListItem.displayName = COMPONENT_NAME$I;
|
|
8284
8285
|
ListItem.className = CLASSNAME$I;
|
|
8285
|
-
ListItem.defaultProps = DEFAULT_PROPS$
|
|
8286
|
+
ListItem.defaultProps = DEFAULT_PROPS$E;
|
|
8286
8287
|
|
|
8287
8288
|
/**
|
|
8288
8289
|
* Component display name.
|
|
@@ -8447,7 +8448,7 @@ const CLASSNAME$E = 'lumx-mosaic';
|
|
|
8447
8448
|
/**
|
|
8448
8449
|
* Component default props.
|
|
8449
8450
|
*/
|
|
8450
|
-
const DEFAULT_PROPS$
|
|
8451
|
+
const DEFAULT_PROPS$D = {};
|
|
8451
8452
|
|
|
8452
8453
|
/**
|
|
8453
8454
|
* Mosaic component.
|
|
@@ -8516,7 +8517,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
8516
8517
|
});
|
|
8517
8518
|
Mosaic.displayName = COMPONENT_NAME$E;
|
|
8518
8519
|
Mosaic.className = CLASSNAME$E;
|
|
8519
|
-
Mosaic.defaultProps = DEFAULT_PROPS$
|
|
8520
|
+
Mosaic.defaultProps = DEFAULT_PROPS$D;
|
|
8520
8521
|
|
|
8521
8522
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
8522
8523
|
orientation: Orientation.vertical
|
|
@@ -8685,7 +8686,7 @@ const CLASSNAME$C = 'lumx-navigation';
|
|
|
8685
8686
|
/**
|
|
8686
8687
|
* Component default props
|
|
8687
8688
|
*/
|
|
8688
|
-
const DEFAULT_PROPS$
|
|
8689
|
+
const DEFAULT_PROPS$C = {
|
|
8689
8690
|
orientation: Orientation.vertical
|
|
8690
8691
|
};
|
|
8691
8692
|
const Navigation = forwardRef((props, ref) => {
|
|
@@ -8694,7 +8695,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
8694
8695
|
children,
|
|
8695
8696
|
className,
|
|
8696
8697
|
theme = defaultTheme,
|
|
8697
|
-
orientation = DEFAULT_PROPS$
|
|
8698
|
+
orientation = DEFAULT_PROPS$C.orientation,
|
|
8698
8699
|
...forwardedProps
|
|
8699
8700
|
} = props;
|
|
8700
8701
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
@@ -8721,7 +8722,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
8721
8722
|
});
|
|
8722
8723
|
Navigation.displayName = COMPONENT_NAME$C;
|
|
8723
8724
|
Navigation.className = CLASSNAME$C;
|
|
8724
|
-
Navigation.defaultProps = DEFAULT_PROPS$
|
|
8725
|
+
Navigation.defaultProps = DEFAULT_PROPS$C;
|
|
8725
8726
|
|
|
8726
8727
|
// Sub components
|
|
8727
8728
|
Navigation.Section = NavigationSection;
|
|
@@ -8762,7 +8763,7 @@ const CLASSNAME$B = 'lumx-notification';
|
|
|
8762
8763
|
/**
|
|
8763
8764
|
* Component default props.
|
|
8764
8765
|
*/
|
|
8765
|
-
const DEFAULT_PROPS$
|
|
8766
|
+
const DEFAULT_PROPS$B = {
|
|
8766
8767
|
zIndex: 9999,
|
|
8767
8768
|
usePortal: true
|
|
8768
8769
|
};
|
|
@@ -8786,8 +8787,8 @@ const Notification = forwardRef((props, ref) => {
|
|
|
8786
8787
|
onClick,
|
|
8787
8788
|
theme = defaultTheme,
|
|
8788
8789
|
type,
|
|
8789
|
-
zIndex = DEFAULT_PROPS$
|
|
8790
|
-
usePortal = DEFAULT_PROPS$
|
|
8790
|
+
zIndex = DEFAULT_PROPS$B.zIndex,
|
|
8791
|
+
usePortal = DEFAULT_PROPS$B.usePortal,
|
|
8791
8792
|
style,
|
|
8792
8793
|
...forwardedProps
|
|
8793
8794
|
} = props;
|
|
@@ -8853,7 +8854,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
8853
8854
|
});
|
|
8854
8855
|
Notification.displayName = COMPONENT_NAME$B;
|
|
8855
8856
|
Notification.className = CLASSNAME$B;
|
|
8856
|
-
Notification.defaultProps = DEFAULT_PROPS$
|
|
8857
|
+
Notification.defaultProps = DEFAULT_PROPS$B;
|
|
8857
8858
|
|
|
8858
8859
|
/**
|
|
8859
8860
|
* Component display name.
|
|
@@ -8868,7 +8869,7 @@ const CLASSNAME$A = 'lumx-popover-dialog';
|
|
|
8868
8869
|
/**
|
|
8869
8870
|
* Component default props.
|
|
8870
8871
|
*/
|
|
8871
|
-
const DEFAULT_PROPS$
|
|
8872
|
+
const DEFAULT_PROPS$A = {};
|
|
8872
8873
|
|
|
8873
8874
|
/**
|
|
8874
8875
|
* PopoverDialog component.
|
|
@@ -8911,7 +8912,7 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
8911
8912
|
});
|
|
8912
8913
|
PopoverDialog.displayName = COMPONENT_NAME$A;
|
|
8913
8914
|
PopoverDialog.className = CLASSNAME$A;
|
|
8914
|
-
PopoverDialog.defaultProps = DEFAULT_PROPS$
|
|
8915
|
+
PopoverDialog.defaultProps = DEFAULT_PROPS$A;
|
|
8915
8916
|
|
|
8916
8917
|
/**
|
|
8917
8918
|
* Component display name.
|
|
@@ -8926,7 +8927,7 @@ const CLASSNAME$z = 'lumx-post-block';
|
|
|
8926
8927
|
/**
|
|
8927
8928
|
* Component default props.
|
|
8928
8929
|
*/
|
|
8929
|
-
const DEFAULT_PROPS$
|
|
8930
|
+
const DEFAULT_PROPS$z = {
|
|
8930
8931
|
orientation: Orientation.horizontal
|
|
8931
8932
|
};
|
|
8932
8933
|
|
|
@@ -8946,7 +8947,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
8946
8947
|
className,
|
|
8947
8948
|
meta,
|
|
8948
8949
|
onClick,
|
|
8949
|
-
orientation = DEFAULT_PROPS$
|
|
8950
|
+
orientation = DEFAULT_PROPS$z.orientation,
|
|
8950
8951
|
tags,
|
|
8951
8952
|
text,
|
|
8952
8953
|
theme = defaultTheme,
|
|
@@ -9009,7 +9010,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
9009
9010
|
});
|
|
9010
9011
|
PostBlock.displayName = COMPONENT_NAME$z;
|
|
9011
9012
|
PostBlock.className = CLASSNAME$z;
|
|
9012
|
-
PostBlock.defaultProps = DEFAULT_PROPS$
|
|
9013
|
+
PostBlock.defaultProps = DEFAULT_PROPS$z;
|
|
9013
9014
|
|
|
9014
9015
|
/**
|
|
9015
9016
|
* Component display name.
|
|
@@ -9024,7 +9025,7 @@ const CLASSNAME$y = 'lumx-progress-linear';
|
|
|
9024
9025
|
/**
|
|
9025
9026
|
* Component default props.
|
|
9026
9027
|
*/
|
|
9027
|
-
const DEFAULT_PROPS$
|
|
9028
|
+
const DEFAULT_PROPS$y = {};
|
|
9028
9029
|
|
|
9029
9030
|
/**
|
|
9030
9031
|
* ProgressLinear component.
|
|
@@ -9056,7 +9057,7 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9056
9057
|
});
|
|
9057
9058
|
ProgressLinear.displayName = COMPONENT_NAME$y;
|
|
9058
9059
|
ProgressLinear.className = CLASSNAME$y;
|
|
9059
|
-
ProgressLinear.defaultProps = DEFAULT_PROPS$
|
|
9060
|
+
ProgressLinear.defaultProps = DEFAULT_PROPS$y;
|
|
9060
9061
|
|
|
9061
9062
|
/**
|
|
9062
9063
|
* Component display name.
|
|
@@ -9071,7 +9072,7 @@ const CLASSNAME$x = 'lumx-progress-circular';
|
|
|
9071
9072
|
/**
|
|
9072
9073
|
* Component default props.
|
|
9073
9074
|
*/
|
|
9074
|
-
const DEFAULT_PROPS$
|
|
9075
|
+
const DEFAULT_PROPS$x = {
|
|
9075
9076
|
size: Size.m,
|
|
9076
9077
|
display: 'block'
|
|
9077
9078
|
};
|
|
@@ -9088,8 +9089,8 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9088
9089
|
const {
|
|
9089
9090
|
className,
|
|
9090
9091
|
theme = defaultTheme,
|
|
9091
|
-
size = DEFAULT_PROPS$
|
|
9092
|
-
display = DEFAULT_PROPS$
|
|
9092
|
+
size = DEFAULT_PROPS$x.size,
|
|
9093
|
+
display = DEFAULT_PROPS$x.display,
|
|
9093
9094
|
...forwardedProps
|
|
9094
9095
|
} = props;
|
|
9095
9096
|
const Element = display === 'block' ? 'div' : 'span';
|
|
@@ -9122,7 +9123,7 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9122
9123
|
});
|
|
9123
9124
|
ProgressCircular.displayName = COMPONENT_NAME$x;
|
|
9124
9125
|
ProgressCircular.className = CLASSNAME$x;
|
|
9125
|
-
ProgressCircular.defaultProps = DEFAULT_PROPS$
|
|
9126
|
+
ProgressCircular.defaultProps = DEFAULT_PROPS$x;
|
|
9126
9127
|
|
|
9127
9128
|
const ProgressVariant = {
|
|
9128
9129
|
linear: 'linear',
|
|
@@ -9146,7 +9147,7 @@ const CLASSNAME$w = 'lumx-progress';
|
|
|
9146
9147
|
/**
|
|
9147
9148
|
* Component default props.
|
|
9148
9149
|
*/
|
|
9149
|
-
const DEFAULT_PROPS$
|
|
9150
|
+
const DEFAULT_PROPS$w = {
|
|
9150
9151
|
variant: ProgressVariant.circular
|
|
9151
9152
|
};
|
|
9152
9153
|
|
|
@@ -9163,7 +9164,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
9163
9164
|
const {
|
|
9164
9165
|
className,
|
|
9165
9166
|
theme = defaultTheme,
|
|
9166
|
-
variant = DEFAULT_PROPS$
|
|
9167
|
+
variant = DEFAULT_PROPS$w.variant,
|
|
9167
9168
|
...forwardedProps
|
|
9168
9169
|
} = props;
|
|
9169
9170
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -9183,7 +9184,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
9183
9184
|
});
|
|
9184
9185
|
Progress.displayName = COMPONENT_NAME$w;
|
|
9185
9186
|
Progress.className = CLASSNAME$w;
|
|
9186
|
-
Progress.defaultProps = DEFAULT_PROPS$
|
|
9187
|
+
Progress.defaultProps = DEFAULT_PROPS$w;
|
|
9187
9188
|
|
|
9188
9189
|
const INIT_STATE = {
|
|
9189
9190
|
isLazy: true,
|
|
@@ -9310,7 +9311,7 @@ const useTabProviderContextState = () => {
|
|
|
9310
9311
|
return context?.[0];
|
|
9311
9312
|
};
|
|
9312
9313
|
|
|
9313
|
-
const DEFAULT_PROPS$
|
|
9314
|
+
const DEFAULT_PROPS$v = {
|
|
9314
9315
|
isLazy: INIT_STATE.isLazy,
|
|
9315
9316
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
9316
9317
|
};
|
|
@@ -9339,7 +9340,7 @@ const ProgressTrackerProvider = props => {
|
|
|
9339
9340
|
dispatch({
|
|
9340
9341
|
type: 'update',
|
|
9341
9342
|
payload: {
|
|
9342
|
-
...DEFAULT_PROPS$
|
|
9343
|
+
...DEFAULT_PROPS$v,
|
|
9343
9344
|
...propState,
|
|
9344
9345
|
activeTabIndex: propState.activeStepIndex || INIT_STATE.activeTabIndex
|
|
9345
9346
|
}
|
|
@@ -9362,7 +9363,7 @@ const ProgressTrackerProvider = props => {
|
|
|
9362
9363
|
children: children
|
|
9363
9364
|
});
|
|
9364
9365
|
};
|
|
9365
|
-
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$
|
|
9366
|
+
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$v;
|
|
9366
9367
|
|
|
9367
9368
|
const useRovingTabIndex = ({
|
|
9368
9369
|
parentRef,
|
|
@@ -9450,7 +9451,7 @@ const CLASSNAME$v = 'lumx-progress-tracker';
|
|
|
9450
9451
|
/**
|
|
9451
9452
|
* Component default props.
|
|
9452
9453
|
*/
|
|
9453
|
-
const DEFAULT_PROPS$
|
|
9454
|
+
const DEFAULT_PROPS$u = {};
|
|
9454
9455
|
|
|
9455
9456
|
/**
|
|
9456
9457
|
* ProgressTracker component.
|
|
@@ -9506,7 +9507,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
9506
9507
|
});
|
|
9507
9508
|
ProgressTracker.displayName = COMPONENT_NAME$v;
|
|
9508
9509
|
ProgressTracker.className = CLASSNAME$v;
|
|
9509
|
-
ProgressTracker.defaultProps = DEFAULT_PROPS$
|
|
9510
|
+
ProgressTracker.defaultProps = DEFAULT_PROPS$u;
|
|
9510
9511
|
|
|
9511
9512
|
/**
|
|
9512
9513
|
* Component display name.
|
|
@@ -9521,7 +9522,7 @@ const CLASSNAME$u = 'lumx-progress-tracker-step';
|
|
|
9521
9522
|
/**
|
|
9522
9523
|
* Component default props.
|
|
9523
9524
|
*/
|
|
9524
|
-
const DEFAULT_PROPS$
|
|
9525
|
+
const DEFAULT_PROPS$t = {};
|
|
9525
9526
|
|
|
9526
9527
|
/**
|
|
9527
9528
|
* ProgressTrackerStep component.
|
|
@@ -9617,7 +9618,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
9617
9618
|
});
|
|
9618
9619
|
ProgressTrackerStep.displayName = COMPONENT_NAME$u;
|
|
9619
9620
|
ProgressTrackerStep.className = CLASSNAME$u;
|
|
9620
|
-
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$
|
|
9621
|
+
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$t;
|
|
9621
9622
|
|
|
9622
9623
|
/**
|
|
9623
9624
|
* Component display name.
|
|
@@ -9632,7 +9633,7 @@ const CLASSNAME$t = `lumx-step-panel`;
|
|
|
9632
9633
|
/**
|
|
9633
9634
|
* Component default props.
|
|
9634
9635
|
*/
|
|
9635
|
-
const DEFAULT_PROPS$
|
|
9636
|
+
const DEFAULT_PROPS$s = {};
|
|
9636
9637
|
|
|
9637
9638
|
/**
|
|
9638
9639
|
* ProgressTrackerStepPanel component.
|
|
@@ -9669,7 +9670,7 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
9669
9670
|
});
|
|
9670
9671
|
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$t;
|
|
9671
9672
|
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
9672
|
-
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$
|
|
9673
|
+
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$s;
|
|
9673
9674
|
|
|
9674
9675
|
/**
|
|
9675
9676
|
* Component display name.
|
|
@@ -9684,7 +9685,7 @@ const CLASSNAME$s = 'lumx-radio-button';
|
|
|
9684
9685
|
/**
|
|
9685
9686
|
* Component default props.
|
|
9686
9687
|
*/
|
|
9687
|
-
const DEFAULT_PROPS$
|
|
9688
|
+
const DEFAULT_PROPS$r = {};
|
|
9688
9689
|
|
|
9689
9690
|
/**
|
|
9690
9691
|
* RadioButton component.
|
|
@@ -9773,7 +9774,7 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
9773
9774
|
});
|
|
9774
9775
|
RadioButton.displayName = COMPONENT_NAME$s;
|
|
9775
9776
|
RadioButton.className = CLASSNAME$s;
|
|
9776
|
-
RadioButton.defaultProps = DEFAULT_PROPS$
|
|
9777
|
+
RadioButton.defaultProps = DEFAULT_PROPS$r;
|
|
9777
9778
|
|
|
9778
9779
|
/**
|
|
9779
9780
|
* Component display name.
|
|
@@ -9956,7 +9957,7 @@ const COMPONENT_NAME$q = 'Select';
|
|
|
9956
9957
|
const CLASSNAME$p = 'lumx-select';
|
|
9957
9958
|
|
|
9958
9959
|
/** The default value of props. */
|
|
9959
|
-
const DEFAULT_PROPS$
|
|
9960
|
+
const DEFAULT_PROPS$q = {
|
|
9960
9961
|
selectedValueRender: choice => choice,
|
|
9961
9962
|
variant: SelectVariant.input
|
|
9962
9963
|
};
|
|
@@ -10077,7 +10078,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
10077
10078
|
const isEmpty$1 = isEmpty(props.value);
|
|
10078
10079
|
const hasInputClear = props.onClear && props.clearButtonProps && !isEmpty$1;
|
|
10079
10080
|
return WithSelectContext(SelectField, {
|
|
10080
|
-
...DEFAULT_PROPS$
|
|
10081
|
+
...DEFAULT_PROPS$q,
|
|
10081
10082
|
...props,
|
|
10082
10083
|
className: classNames$1.join(props.className, handleBasicClasses({
|
|
10083
10084
|
hasInputClear,
|
|
@@ -10090,7 +10091,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
10090
10091
|
});
|
|
10091
10092
|
Select.displayName = COMPONENT_NAME$q;
|
|
10092
10093
|
Select.className = CLASSNAME$p;
|
|
10093
|
-
Select.defaultProps = DEFAULT_PROPS$
|
|
10094
|
+
Select.defaultProps = DEFAULT_PROPS$q;
|
|
10094
10095
|
Select.className = CLASSNAME$p;
|
|
10095
10096
|
|
|
10096
10097
|
/** The display name of the component. */
|
|
@@ -10100,7 +10101,7 @@ const COMPONENT_NAME$p = 'Select';
|
|
|
10100
10101
|
const CLASSNAME$o = 'lumx-select';
|
|
10101
10102
|
|
|
10102
10103
|
/** The default value of props. */
|
|
10103
|
-
const DEFAULT_PROPS$
|
|
10104
|
+
const DEFAULT_PROPS$p = {
|
|
10104
10105
|
selectedChipRender(choice, index, onClear, isDisabled, theme) {
|
|
10105
10106
|
const onClick = event => onClear && onClear(event, choice);
|
|
10106
10107
|
return /*#__PURE__*/jsx(Chip, {
|
|
@@ -10224,7 +10225,7 @@ const SelectMultipleField = props => {
|
|
|
10224
10225
|
*/
|
|
10225
10226
|
const SelectMultiple = forwardRef((props, ref) => {
|
|
10226
10227
|
return WithSelectContext(SelectMultipleField, {
|
|
10227
|
-
...DEFAULT_PROPS$
|
|
10228
|
+
...DEFAULT_PROPS$p,
|
|
10228
10229
|
...props,
|
|
10229
10230
|
className: classNames$1.join(props.className, handleBasicClasses({
|
|
10230
10231
|
hasMultiple: !props.isEmpty,
|
|
@@ -10236,7 +10237,7 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
10236
10237
|
});
|
|
10237
10238
|
SelectMultiple.displayName = COMPONENT_NAME$p;
|
|
10238
10239
|
SelectMultiple.className = CLASSNAME$o;
|
|
10239
|
-
SelectMultiple.defaultProps = DEFAULT_PROPS$
|
|
10240
|
+
SelectMultiple.defaultProps = DEFAULT_PROPS$p;
|
|
10240
10241
|
|
|
10241
10242
|
/**
|
|
10242
10243
|
* Component display name.
|
|
@@ -10287,7 +10288,7 @@ const CLASSNAME$m = 'lumx-side-navigation-item';
|
|
|
10287
10288
|
/**
|
|
10288
10289
|
* Component default props.
|
|
10289
10290
|
*/
|
|
10290
|
-
const DEFAULT_PROPS$
|
|
10291
|
+
const DEFAULT_PROPS$o = {
|
|
10291
10292
|
emphasis: Emphasis.high,
|
|
10292
10293
|
closeMode: 'unmount'
|
|
10293
10294
|
};
|
|
@@ -10303,7 +10304,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
10303
10304
|
const {
|
|
10304
10305
|
children,
|
|
10305
10306
|
className,
|
|
10306
|
-
emphasis = DEFAULT_PROPS$
|
|
10307
|
+
emphasis = DEFAULT_PROPS$o.emphasis,
|
|
10307
10308
|
icon,
|
|
10308
10309
|
isOpen,
|
|
10309
10310
|
isSelected,
|
|
@@ -10313,7 +10314,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
10313
10314
|
onActionClick,
|
|
10314
10315
|
onClick,
|
|
10315
10316
|
toggleButtonProps,
|
|
10316
|
-
closeMode = DEFAULT_PROPS$
|
|
10317
|
+
closeMode = DEFAULT_PROPS$o.closeMode,
|
|
10317
10318
|
...forwardedProps
|
|
10318
10319
|
} = props;
|
|
10319
10320
|
const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
@@ -10385,9 +10386,9 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
10385
10386
|
});
|
|
10386
10387
|
SideNavigationItem.displayName = COMPONENT_NAME$n;
|
|
10387
10388
|
SideNavigationItem.className = CLASSNAME$m;
|
|
10388
|
-
SideNavigationItem.defaultProps = DEFAULT_PROPS$
|
|
10389
|
+
SideNavigationItem.defaultProps = DEFAULT_PROPS$o;
|
|
10389
10390
|
|
|
10390
|
-
const DEFAULT_PROPS$
|
|
10391
|
+
const DEFAULT_PROPS$n = {};
|
|
10391
10392
|
|
|
10392
10393
|
/**
|
|
10393
10394
|
* Component display name.
|
|
@@ -10427,7 +10428,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
10427
10428
|
});
|
|
10428
10429
|
});
|
|
10429
10430
|
SkeletonCircle.displayName = COMPONENT_NAME$m;
|
|
10430
|
-
SkeletonCircle.defaultProps = DEFAULT_PROPS$
|
|
10431
|
+
SkeletonCircle.defaultProps = DEFAULT_PROPS$n;
|
|
10431
10432
|
SkeletonCircle.className = CLASSNAME$l;
|
|
10432
10433
|
|
|
10433
10434
|
const SkeletonRectangleVariant = {
|
|
@@ -10440,7 +10441,7 @@ const SkeletonRectangleVariant = {
|
|
|
10440
10441
|
* Defines the props of the component.
|
|
10441
10442
|
*/
|
|
10442
10443
|
|
|
10443
|
-
const DEFAULT_PROPS$
|
|
10444
|
+
const DEFAULT_PROPS$m = {
|
|
10444
10445
|
variant: SkeletonRectangleVariant.squared
|
|
10445
10446
|
};
|
|
10446
10447
|
|
|
@@ -10468,7 +10469,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
10468
10469
|
className,
|
|
10469
10470
|
height,
|
|
10470
10471
|
theme = defaultTheme,
|
|
10471
|
-
variant = DEFAULT_PROPS$
|
|
10472
|
+
variant = DEFAULT_PROPS$m.variant,
|
|
10472
10473
|
width,
|
|
10473
10474
|
color,
|
|
10474
10475
|
...forwardedProps
|
|
@@ -10492,9 +10493,9 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
10492
10493
|
});
|
|
10493
10494
|
SkeletonRectangle.displayName = COMPONENT_NAME$l;
|
|
10494
10495
|
SkeletonRectangle.className = CLASSNAME$k;
|
|
10495
|
-
SkeletonRectangle.defaultProps = DEFAULT_PROPS$
|
|
10496
|
+
SkeletonRectangle.defaultProps = DEFAULT_PROPS$m;
|
|
10496
10497
|
|
|
10497
|
-
const DEFAULT_PROPS$
|
|
10498
|
+
const DEFAULT_PROPS$l = {};
|
|
10498
10499
|
|
|
10499
10500
|
/**
|
|
10500
10501
|
* Component display name.
|
|
@@ -10542,7 +10543,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
10542
10543
|
});
|
|
10543
10544
|
});
|
|
10544
10545
|
SkeletonTypography.displayName = COMPONENT_NAME$k;
|
|
10545
|
-
SkeletonTypography.defaultProps = DEFAULT_PROPS$
|
|
10546
|
+
SkeletonTypography.defaultProps = DEFAULT_PROPS$l;
|
|
10546
10547
|
SkeletonTypography.className = CLASSNAME$j;
|
|
10547
10548
|
|
|
10548
10549
|
const useEnhancedEffect = typeof window !== 'undefined' ? React__default.useLayoutEffect : React__default.useEffect;
|
|
@@ -10593,7 +10594,7 @@ const CLASSNAME$i = 'lumx-slider';
|
|
|
10593
10594
|
/**
|
|
10594
10595
|
* Component default props.
|
|
10595
10596
|
*/
|
|
10596
|
-
const DEFAULT_PROPS$
|
|
10597
|
+
const DEFAULT_PROPS$k = {
|
|
10597
10598
|
precision: 0,
|
|
10598
10599
|
steps: 0
|
|
10599
10600
|
};
|
|
@@ -10644,8 +10645,8 @@ const Slider = forwardRef((props, ref) => {
|
|
|
10644
10645
|
name,
|
|
10645
10646
|
onChange,
|
|
10646
10647
|
onMouseDown,
|
|
10647
|
-
precision = DEFAULT_PROPS$
|
|
10648
|
-
steps = DEFAULT_PROPS$
|
|
10648
|
+
precision = DEFAULT_PROPS$k.precision,
|
|
10649
|
+
steps = DEFAULT_PROPS$k.steps,
|
|
10649
10650
|
theme = defaultTheme,
|
|
10650
10651
|
value,
|
|
10651
10652
|
...forwardedProps
|
|
@@ -10841,7 +10842,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
10841
10842
|
});
|
|
10842
10843
|
Slider.displayName = COMPONENT_NAME$j;
|
|
10843
10844
|
Slider.className = CLASSNAME$i;
|
|
10844
|
-
Slider.defaultProps = DEFAULT_PROPS$
|
|
10845
|
+
Slider.defaultProps = DEFAULT_PROPS$k;
|
|
10845
10846
|
|
|
10846
10847
|
/**
|
|
10847
10848
|
* Making setInterval Declarative with React Hooks.
|
|
@@ -11204,7 +11205,10 @@ SlideshowItemGroup.className = CLASSNAME$h;
|
|
|
11204
11205
|
/**
|
|
11205
11206
|
* Component default props.
|
|
11206
11207
|
*/
|
|
11207
|
-
const DEFAULT_PROPS$
|
|
11208
|
+
const DEFAULT_PROPS$j = {
|
|
11209
|
+
...DEFAULT_OPTIONS,
|
|
11210
|
+
mode: 'transform'
|
|
11211
|
+
};
|
|
11208
11212
|
|
|
11209
11213
|
/**
|
|
11210
11214
|
* Slideshow component.
|
|
@@ -11217,18 +11221,19 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
11217
11221
|
const defaultTheme = useTheme() || Theme.light;
|
|
11218
11222
|
const {
|
|
11219
11223
|
activeIndex,
|
|
11220
|
-
autoPlay = DEFAULT_PROPS$
|
|
11224
|
+
autoPlay = DEFAULT_PROPS$j.autoPlay,
|
|
11221
11225
|
children,
|
|
11222
11226
|
className,
|
|
11223
11227
|
fillHeight,
|
|
11224
11228
|
groupBy = DEFAULT_OPTIONS.groupBy,
|
|
11225
|
-
interval = DEFAULT_PROPS$
|
|
11229
|
+
interval = DEFAULT_PROPS$j.interval,
|
|
11226
11230
|
onChange,
|
|
11227
11231
|
slideshowControlsProps,
|
|
11228
11232
|
theme = defaultTheme,
|
|
11229
11233
|
id,
|
|
11230
11234
|
slidesId,
|
|
11231
11235
|
slideGroupLabel,
|
|
11236
|
+
mode = DEFAULT_PROPS$j.mode,
|
|
11232
11237
|
...forwardedProps
|
|
11233
11238
|
} = props;
|
|
11234
11239
|
// Number of slideshow items.
|
|
@@ -11250,7 +11255,7 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
11250
11255
|
toggleForcePause
|
|
11251
11256
|
} = SlideshowControls.useSlideshowControls({
|
|
11252
11257
|
activeIndex,
|
|
11253
|
-
defaultActiveIndex: DEFAULT_PROPS$
|
|
11258
|
+
defaultActiveIndex: DEFAULT_PROPS$j.activeIndex,
|
|
11254
11259
|
autoPlay: Boolean(autoPlay),
|
|
11255
11260
|
itemsCount,
|
|
11256
11261
|
groupBy,
|
|
@@ -11266,6 +11271,8 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
11266
11271
|
});
|
|
11267
11272
|
const showControls = slideshowControlsProps && slidesCount > 1;
|
|
11268
11273
|
return /*#__PURE__*/jsx(Slides, {
|
|
11274
|
+
mode: mode,
|
|
11275
|
+
onChange: mode === 'scroll-snap' ? onPaginationClick : undefined,
|
|
11269
11276
|
activeIndex: currentIndex,
|
|
11270
11277
|
id: slideshowId,
|
|
11271
11278
|
className: className,
|
|
@@ -11315,7 +11322,7 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
11315
11322
|
});
|
|
11316
11323
|
});
|
|
11317
11324
|
Slideshow.displayName = 'Slideshow';
|
|
11318
|
-
Slideshow.defaultProps = DEFAULT_PROPS$
|
|
11325
|
+
Slideshow.defaultProps = DEFAULT_PROPS$j;
|
|
11319
11326
|
|
|
11320
11327
|
/**
|
|
11321
11328
|
* Component display name.
|
|
@@ -11420,7 +11427,7 @@ const CLASSNAME$f = 'lumx-slideshow-controls';
|
|
|
11420
11427
|
/**
|
|
11421
11428
|
* Component default props.
|
|
11422
11429
|
*/
|
|
11423
|
-
const DEFAULT_PROPS$
|
|
11430
|
+
const DEFAULT_PROPS$i = {
|
|
11424
11431
|
activeIndex: 0
|
|
11425
11432
|
};
|
|
11426
11433
|
|
|
@@ -11434,7 +11441,7 @@ const DEFAULT_PROPS$h = {
|
|
|
11434
11441
|
const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
11435
11442
|
const defaultTheme = useTheme() || Theme.light;
|
|
11436
11443
|
const {
|
|
11437
|
-
activeIndex = DEFAULT_PROPS$
|
|
11444
|
+
activeIndex = DEFAULT_PROPS$i.activeIndex,
|
|
11438
11445
|
className,
|
|
11439
11446
|
nextButtonProps,
|
|
11440
11447
|
onNextClick,
|
|
@@ -11552,12 +11559,62 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
11552
11559
|
});
|
|
11553
11560
|
InternalSlideshowControls.displayName = COMPONENT_NAME$g;
|
|
11554
11561
|
InternalSlideshowControls.className = CLASSNAME$f;
|
|
11555
|
-
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$
|
|
11562
|
+
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$i;
|
|
11556
11563
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
11557
11564
|
useSlideshowControls,
|
|
11558
11565
|
useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS
|
|
11559
11566
|
});
|
|
11560
11567
|
|
|
11568
|
+
/**
|
|
11569
|
+
* Hook to handle scroll synchronization for the Slideshow component.
|
|
11570
|
+
* It syncs the scroll position with the active index and vice-versa.
|
|
11571
|
+
*/
|
|
11572
|
+
const useSlideScroll = ({
|
|
11573
|
+
enabled,
|
|
11574
|
+
activeIndex,
|
|
11575
|
+
wrapperRef,
|
|
11576
|
+
onChange
|
|
11577
|
+
}) => {
|
|
11578
|
+
const isAutoScrollRef = React__default.useRef(false);
|
|
11579
|
+
|
|
11580
|
+
// Sync State -> DOM (Programmatic Navigation)
|
|
11581
|
+
React__default.useEffect(() => {
|
|
11582
|
+
if (!enabled || !wrapperRef.current) return;
|
|
11583
|
+
const wrapper = wrapperRef.current;
|
|
11584
|
+
const targetElement = wrapper.children[activeIndex];
|
|
11585
|
+
if (!targetElement) return;
|
|
11586
|
+
isAutoScrollRef.current = true;
|
|
11587
|
+
wrapper.scrollTo({
|
|
11588
|
+
left: targetElement.offsetLeft,
|
|
11589
|
+
behavior: !isReducedMotion() ? 'smooth' : undefined
|
|
11590
|
+
});
|
|
11591
|
+
}, [activeIndex, enabled, wrapperRef]);
|
|
11592
|
+
|
|
11593
|
+
// Sync DOM -> State (User Interaction)
|
|
11594
|
+
React__default.useEffect(() => {
|
|
11595
|
+
if (!enabled || !wrapperRef.current) return undefined;
|
|
11596
|
+
const wrapper = wrapperRef.current;
|
|
11597
|
+
const handleScroll = debounce$1(() => {
|
|
11598
|
+
const {
|
|
11599
|
+
scrollLeft,
|
|
11600
|
+
clientWidth
|
|
11601
|
+
} = wrapper;
|
|
11602
|
+
const newIndex = Math.round(scrollLeft / clientWidth);
|
|
11603
|
+
|
|
11604
|
+
// Skip onChange when scroll triggered in previous useEffect
|
|
11605
|
+
if (!isAutoScrollRef.current) {
|
|
11606
|
+
onChange?.(newIndex);
|
|
11607
|
+
}
|
|
11608
|
+
isAutoScrollRef.current = false;
|
|
11609
|
+
}, 100);
|
|
11610
|
+
wrapper.addEventListener('scroll', handleScroll);
|
|
11611
|
+
return () => {
|
|
11612
|
+
wrapper.removeEventListener('scroll', handleScroll);
|
|
11613
|
+
handleScroll.cancel();
|
|
11614
|
+
};
|
|
11615
|
+
}, [enabled, onChange, wrapperRef, activeIndex]);
|
|
11616
|
+
};
|
|
11617
|
+
|
|
11561
11618
|
/**
|
|
11562
11619
|
* Component display name.
|
|
11563
11620
|
*/
|
|
@@ -11568,6 +11625,13 @@ const COMPONENT_NAME$f = 'Slideshow';
|
|
|
11568
11625
|
*/
|
|
11569
11626
|
const CLASSNAME$e = 'lumx-slideshow';
|
|
11570
11627
|
|
|
11628
|
+
/**
|
|
11629
|
+
* Component default props.
|
|
11630
|
+
*/
|
|
11631
|
+
const DEFAULT_PROPS$h = {
|
|
11632
|
+
mode: 'transform'
|
|
11633
|
+
};
|
|
11634
|
+
|
|
11571
11635
|
/**
|
|
11572
11636
|
* Slides component.
|
|
11573
11637
|
*
|
|
@@ -11591,16 +11655,24 @@ const Slides = forwardRef((props, ref) => {
|
|
|
11591
11655
|
afterSlides,
|
|
11592
11656
|
hasControls,
|
|
11593
11657
|
slideGroupLabel,
|
|
11658
|
+
mode = DEFAULT_PROPS$h.mode,
|
|
11659
|
+
onChange,
|
|
11594
11660
|
...forwardedProps
|
|
11595
11661
|
} = props;
|
|
11596
11662
|
const wrapperRef = React__default.useRef(null);
|
|
11597
11663
|
const startIndexVisible = activeIndex;
|
|
11598
11664
|
const endIndexVisible = startIndexVisible + 1;
|
|
11665
|
+
useSlideScroll({
|
|
11666
|
+
activeIndex,
|
|
11667
|
+
enabled: mode === 'scroll-snap',
|
|
11668
|
+
wrapperRef,
|
|
11669
|
+
onChange
|
|
11670
|
+
});
|
|
11599
11671
|
|
|
11600
11672
|
// Inline style of wrapper element.
|
|
11601
|
-
const wrapperStyle = {
|
|
11673
|
+
const wrapperStyle = mode === 'transform' ? {
|
|
11602
11674
|
transform: `translateX(-${FULL_WIDTH_PERCENT * activeIndex}%)`
|
|
11603
|
-
};
|
|
11675
|
+
} : undefined;
|
|
11604
11676
|
const groups = React__default.useMemo(() => {
|
|
11605
11677
|
const childrenArray = Children.toArray(children);
|
|
11606
11678
|
return groupBy && groupBy > 1 ? chunk(childrenArray, groupBy) : childrenArray;
|
|
@@ -11625,7 +11697,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
11625
11697
|
"aria-live": isAutoPlaying ? 'off' : 'polite',
|
|
11626
11698
|
children: /*#__PURE__*/jsx("div", {
|
|
11627
11699
|
ref: wrapperRef,
|
|
11628
|
-
className: `${CLASSNAME$e}__wrapper`,
|
|
11700
|
+
className: `${CLASSNAME$e}__wrapper ${CLASSNAME$e}__wrapper--mode-${mode}`,
|
|
11629
11701
|
style: wrapperStyle,
|
|
11630
11702
|
children: groups.map((group, index) => /*#__PURE__*/jsx(SlideshowItemGroup, {
|
|
11631
11703
|
id: slidesId && buildSlideShowGroupId(slidesId, index),
|