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