@lumx/react 4.3.2-alpha.45 → 4.3.2-alpha.46
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 +28 -33
- package/index.js +146 -197
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -109,7 +109,7 @@ const {
|
|
|
109
109
|
/**
|
|
110
110
|
* Component default props.
|
|
111
111
|
*/
|
|
112
|
-
const DEFAULT_PROPS$
|
|
112
|
+
const DEFAULT_PROPS$1a = {
|
|
113
113
|
size: Size$1.tiny,
|
|
114
114
|
kind: Kind$1.info
|
|
115
115
|
};
|
|
@@ -130,8 +130,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
130
130
|
className,
|
|
131
131
|
cancelProps,
|
|
132
132
|
confirmProps,
|
|
133
|
-
kind = DEFAULT_PROPS$
|
|
134
|
-
size = DEFAULT_PROPS$
|
|
133
|
+
kind = DEFAULT_PROPS$1a.kind,
|
|
134
|
+
size = DEFAULT_PROPS$1a.size,
|
|
135
135
|
dialogProps,
|
|
136
136
|
children,
|
|
137
137
|
...forwardedProps
|
|
@@ -219,7 +219,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
219
219
|
});
|
|
220
220
|
AlertDialog.displayName = COMPONENT_NAME$1k;
|
|
221
221
|
AlertDialog.className = CLASSNAME$1j;
|
|
222
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
222
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$1a;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -321,7 +321,7 @@ const CLASSNAME$1i = 'lumx-autocomplete';
|
|
|
321
321
|
/**
|
|
322
322
|
* Component default props.
|
|
323
323
|
*/
|
|
324
|
-
const DEFAULT_PROPS$
|
|
324
|
+
const DEFAULT_PROPS$19 = {
|
|
325
325
|
anchorToInput: false,
|
|
326
326
|
closeOnClick: false,
|
|
327
327
|
closeOnClickAway: true,
|
|
@@ -343,13 +343,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
343
343
|
otherProps
|
|
344
344
|
} = useDisableStateProps(props);
|
|
345
345
|
const {
|
|
346
|
-
anchorToInput = DEFAULT_PROPS$
|
|
346
|
+
anchorToInput = DEFAULT_PROPS$19.anchorToInput,
|
|
347
347
|
children,
|
|
348
348
|
chips,
|
|
349
349
|
className,
|
|
350
|
-
closeOnClick = DEFAULT_PROPS$
|
|
351
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
352
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
350
|
+
closeOnClick = DEFAULT_PROPS$19.closeOnClick,
|
|
351
|
+
closeOnClickAway = DEFAULT_PROPS$19.closeOnClickAway,
|
|
352
|
+
closeOnEscape = DEFAULT_PROPS$19.closeOnEscape,
|
|
353
353
|
error,
|
|
354
354
|
fitToAnchorWidth,
|
|
355
355
|
hasError,
|
|
@@ -370,7 +370,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
370
370
|
onInfiniteScroll,
|
|
371
371
|
placeholder,
|
|
372
372
|
placement,
|
|
373
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
373
|
+
shouldFocusOnClose = DEFAULT_PROPS$19.shouldFocusOnClose,
|
|
374
374
|
theme = defaultTheme,
|
|
375
375
|
value,
|
|
376
376
|
textFieldProps = {},
|
|
@@ -425,7 +425,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
425
425
|
});
|
|
426
426
|
Autocomplete.displayName = COMPONENT_NAME$1j;
|
|
427
427
|
Autocomplete.className = CLASSNAME$1i;
|
|
428
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
428
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$19;
|
|
429
429
|
|
|
430
430
|
/**
|
|
431
431
|
* Component display name.
|
|
@@ -440,7 +440,7 @@ const CLASSNAME$1h = 'lumx-autocomplete-multiple';
|
|
|
440
440
|
/**
|
|
441
441
|
* Component default props.
|
|
442
442
|
*/
|
|
443
|
-
const DEFAULT_PROPS$
|
|
443
|
+
const DEFAULT_PROPS$18 = {
|
|
444
444
|
closeOnClickAway: true,
|
|
445
445
|
closeOnEscape: true,
|
|
446
446
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -480,8 +480,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
480
480
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
481
481
|
chipsAlignment,
|
|
482
482
|
className,
|
|
483
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
484
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
483
|
+
closeOnClickAway = DEFAULT_PROPS$18.closeOnClickAway,
|
|
484
|
+
closeOnEscape = DEFAULT_PROPS$18.closeOnEscape,
|
|
485
485
|
fitToAnchorWidth,
|
|
486
486
|
hasError,
|
|
487
487
|
helper,
|
|
@@ -503,12 +503,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
503
503
|
onKeyDown,
|
|
504
504
|
placeholder,
|
|
505
505
|
placement,
|
|
506
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
506
|
+
selectedChipRender = DEFAULT_PROPS$18.selectedChipRender,
|
|
507
507
|
shouldFocusOnClose,
|
|
508
508
|
theme = defaultTheme,
|
|
509
509
|
type,
|
|
510
510
|
value,
|
|
511
|
-
values = DEFAULT_PROPS$
|
|
511
|
+
values = DEFAULT_PROPS$18.values,
|
|
512
512
|
...forwardedProps
|
|
513
513
|
} = otherProps;
|
|
514
514
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
@@ -550,7 +550,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
550
550
|
});
|
|
551
551
|
AutocompleteMultiple.displayName = COMPONENT_NAME$1i;
|
|
552
552
|
AutocompleteMultiple.className = CLASSNAME$1h;
|
|
553
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
553
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$18;
|
|
554
554
|
|
|
555
555
|
/**
|
|
556
556
|
* Component display name.
|
|
@@ -569,7 +569,7 @@ const {
|
|
|
569
569
|
/**
|
|
570
570
|
* Component default props.
|
|
571
571
|
*/
|
|
572
|
-
const DEFAULT_PROPS$
|
|
572
|
+
const DEFAULT_PROPS$17 = {
|
|
573
573
|
size: Size$1.m
|
|
574
574
|
};
|
|
575
575
|
|
|
@@ -592,7 +592,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
592
592
|
linkAs,
|
|
593
593
|
onClick,
|
|
594
594
|
onKeyPress,
|
|
595
|
-
size = DEFAULT_PROPS$
|
|
595
|
+
size = DEFAULT_PROPS$17.size,
|
|
596
596
|
theme = defaultTheme,
|
|
597
597
|
thumbnailProps,
|
|
598
598
|
...forwardedProps
|
|
@@ -627,7 +627,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
627
627
|
});
|
|
628
628
|
Avatar.displayName = COMPONENT_NAME$1h;
|
|
629
629
|
Avatar.className = CLASSNAME$1g;
|
|
630
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
630
|
+
Avatar.defaultProps = DEFAULT_PROPS$17;
|
|
631
631
|
|
|
632
632
|
/**
|
|
633
633
|
* Alignments.
|
|
@@ -936,7 +936,7 @@ const {
|
|
|
936
936
|
/**
|
|
937
937
|
* Component default props.
|
|
938
938
|
*/
|
|
939
|
-
const DEFAULT_PROPS$
|
|
939
|
+
const DEFAULT_PROPS$16 = {
|
|
940
940
|
color: ColorPalette.primary
|
|
941
941
|
};
|
|
942
942
|
|
|
@@ -950,7 +950,7 @@ const Badge$1 = props => {
|
|
|
950
950
|
const {
|
|
951
951
|
children,
|
|
952
952
|
className,
|
|
953
|
-
color = DEFAULT_PROPS$
|
|
953
|
+
color = DEFAULT_PROPS$16.color,
|
|
954
954
|
ref,
|
|
955
955
|
...forwardedProps
|
|
956
956
|
} = props;
|
|
@@ -965,7 +965,7 @@ const Badge$1 = props => {
|
|
|
965
965
|
};
|
|
966
966
|
Badge$1.displayName = COMPONENT_NAME$1g;
|
|
967
967
|
Badge$1.className = CLASSNAME$1f;
|
|
968
|
-
Badge$1.defaultProps = DEFAULT_PROPS$
|
|
968
|
+
Badge$1.defaultProps = DEFAULT_PROPS$16;
|
|
969
969
|
|
|
970
970
|
/**
|
|
971
971
|
* Defines the props of the component.
|
|
@@ -1191,7 +1191,7 @@ const {
|
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Component default props.
|
|
1193
1193
|
*/
|
|
1194
|
-
const DEFAULT_PROPS$
|
|
1194
|
+
const DEFAULT_PROPS$15 = {
|
|
1195
1195
|
emphasis: Emphasis.high,
|
|
1196
1196
|
size: Size.m
|
|
1197
1197
|
};
|
|
@@ -1205,10 +1205,10 @@ const DEFAULT_PROPS$16 = {
|
|
|
1205
1205
|
const Button$1 = props => {
|
|
1206
1206
|
const {
|
|
1207
1207
|
className,
|
|
1208
|
-
emphasis = DEFAULT_PROPS$
|
|
1208
|
+
emphasis = DEFAULT_PROPS$15.emphasis,
|
|
1209
1209
|
leftIcon,
|
|
1210
1210
|
rightIcon,
|
|
1211
|
-
size = DEFAULT_PROPS$
|
|
1211
|
+
size = DEFAULT_PROPS$15.size,
|
|
1212
1212
|
...forwardedProps
|
|
1213
1213
|
} = props;
|
|
1214
1214
|
const buttonClassName = classnames(className, modifier({
|
|
@@ -1225,7 +1225,7 @@ const Button$1 = props => {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
Button$1.displayName = COMPONENT_NAME$1d;
|
|
1227
1227
|
Button$1.className = CLASSNAME$1d;
|
|
1228
|
-
Button$1.defaultProps = DEFAULT_PROPS$
|
|
1228
|
+
Button$1.defaultProps = DEFAULT_PROPS$15;
|
|
1229
1229
|
|
|
1230
1230
|
/**
|
|
1231
1231
|
* Properties of a component to use to determine it's name.
|
|
@@ -1300,7 +1300,7 @@ const Button = forwardRef((props, ref) => {
|
|
|
1300
1300
|
});
|
|
1301
1301
|
Button.displayName = COMPONENT_NAME$1d;
|
|
1302
1302
|
Button.className = CLASSNAME$1d;
|
|
1303
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1303
|
+
Button.defaultProps = DEFAULT_PROPS$15;
|
|
1304
1304
|
|
|
1305
1305
|
const COMPONENT_NAME$1c = 'Icon';
|
|
1306
1306
|
const IconClassName = 'lumx-icon';
|
|
@@ -1317,7 +1317,7 @@ const {
|
|
|
1317
1317
|
/**
|
|
1318
1318
|
* Component default props.
|
|
1319
1319
|
*/
|
|
1320
|
-
const DEFAULT_PROPS$
|
|
1320
|
+
const DEFAULT_PROPS$14 = {};
|
|
1321
1321
|
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Icon component.
|
|
@@ -1397,7 +1397,7 @@ const Icon$1 = props => {
|
|
|
1397
1397
|
};
|
|
1398
1398
|
Icon$1.displayName = COMPONENT_NAME$1c;
|
|
1399
1399
|
Icon$1.className = CLASSNAME$1c;
|
|
1400
|
-
Icon$1.defaultProps = DEFAULT_PROPS$
|
|
1400
|
+
Icon$1.defaultProps = DEFAULT_PROPS$14;
|
|
1401
1401
|
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Component display name.
|
|
@@ -1412,7 +1412,7 @@ const CLASSNAME$1b = 'lumx-icon-button';
|
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Component default props.
|
|
1414
1414
|
*/
|
|
1415
|
-
const DEFAULT_PROPS$
|
|
1415
|
+
const DEFAULT_PROPS$13 = {
|
|
1416
1416
|
emphasis: Emphasis.high,
|
|
1417
1417
|
size: Size.m
|
|
1418
1418
|
};
|
|
@@ -1425,11 +1425,11 @@ const DEFAULT_PROPS$14 = {
|
|
|
1425
1425
|
*/
|
|
1426
1426
|
const IconButton$1 = props => {
|
|
1427
1427
|
const {
|
|
1428
|
-
emphasis = DEFAULT_PROPS$
|
|
1428
|
+
emphasis = DEFAULT_PROPS$13.emphasis,
|
|
1429
1429
|
image,
|
|
1430
1430
|
icon,
|
|
1431
1431
|
label,
|
|
1432
|
-
size = DEFAULT_PROPS$
|
|
1432
|
+
size = DEFAULT_PROPS$13.size,
|
|
1433
1433
|
...forwardedProps
|
|
1434
1434
|
} = props;
|
|
1435
1435
|
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
@@ -1450,7 +1450,7 @@ const IconButton$1 = props => {
|
|
|
1450
1450
|
};
|
|
1451
1451
|
IconButton$1.displayName = COMPONENT_NAME$1b;
|
|
1452
1452
|
IconButton$1.className = CLASSNAME$1b;
|
|
1453
|
-
IconButton$1.defaultProps = DEFAULT_PROPS$
|
|
1453
|
+
IconButton$1.defaultProps = DEFAULT_PROPS$13;
|
|
1454
1454
|
|
|
1455
1455
|
/**
|
|
1456
1456
|
* IconButton component.
|
|
@@ -1494,7 +1494,7 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1494
1494
|
});
|
|
1495
1495
|
IconButton.displayName = COMPONENT_NAME$1b;
|
|
1496
1496
|
IconButton.className = CLASSNAME$1b;
|
|
1497
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1497
|
+
IconButton.defaultProps = DEFAULT_PROPS$13;
|
|
1498
1498
|
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Component display name.
|
|
@@ -1509,7 +1509,7 @@ const CLASSNAME$1a = 'lumx-button-group';
|
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Component default props.
|
|
1511
1511
|
*/
|
|
1512
|
-
const DEFAULT_PROPS$
|
|
1512
|
+
const DEFAULT_PROPS$12 = {};
|
|
1513
1513
|
|
|
1514
1514
|
/**
|
|
1515
1515
|
* ButtonGroup component.
|
|
@@ -1531,7 +1531,7 @@ const ButtonGroup$1 = props => {
|
|
|
1531
1531
|
};
|
|
1532
1532
|
ButtonGroup$1.displayName = COMPONENT_NAME$1a;
|
|
1533
1533
|
ButtonGroup$1.className = CLASSNAME$1a;
|
|
1534
|
-
ButtonGroup$1.defaultProps = DEFAULT_PROPS$
|
|
1534
|
+
ButtonGroup$1.defaultProps = DEFAULT_PROPS$12;
|
|
1535
1535
|
|
|
1536
1536
|
/**
|
|
1537
1537
|
* ButtonGroup component.
|
|
@@ -1548,7 +1548,7 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1548
1548
|
});
|
|
1549
1549
|
ButtonGroup.displayName = COMPONENT_NAME$1a;
|
|
1550
1550
|
ButtonGroup.className = CLASSNAME$1a;
|
|
1551
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1551
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$12;
|
|
1552
1552
|
|
|
1553
1553
|
const COMPONENT_NAME$19 = 'InputLabel';
|
|
1554
1554
|
const InputLabelClassName = 'lumx-input-label';
|
|
@@ -1556,7 +1556,7 @@ const CLASSNAME$19 = InputLabelClassName;
|
|
|
1556
1556
|
const {
|
|
1557
1557
|
block: block$_
|
|
1558
1558
|
} = bem(CLASSNAME$19);
|
|
1559
|
-
const DEFAULT_PROPS$
|
|
1559
|
+
const DEFAULT_PROPS$11 = {};
|
|
1560
1560
|
|
|
1561
1561
|
/**
|
|
1562
1562
|
* InputLabel component.
|
|
@@ -1586,7 +1586,7 @@ function InputLabel$1(props) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
InputLabel$1.displayName = COMPONENT_NAME$19;
|
|
1588
1588
|
InputLabel$1.className = CLASSNAME$19;
|
|
1589
|
-
InputLabel$1.defaultProps = DEFAULT_PROPS$
|
|
1589
|
+
InputLabel$1.defaultProps = DEFAULT_PROPS$11;
|
|
1590
1590
|
|
|
1591
1591
|
const INPUT_HELPER_CONFIGURATION = {
|
|
1592
1592
|
[Kind.error]: {
|
|
@@ -1615,7 +1615,7 @@ const {
|
|
|
1615
1615
|
/**
|
|
1616
1616
|
* Component default props.
|
|
1617
1617
|
*/
|
|
1618
|
-
const DEFAULT_PROPS$
|
|
1618
|
+
const DEFAULT_PROPS$10 = {
|
|
1619
1619
|
kind: Kind.info
|
|
1620
1620
|
};
|
|
1621
1621
|
|
|
@@ -1626,7 +1626,7 @@ function InputHelper$1(props) {
|
|
|
1626
1626
|
const {
|
|
1627
1627
|
children,
|
|
1628
1628
|
className,
|
|
1629
|
-
kind = DEFAULT_PROPS$
|
|
1629
|
+
kind = DEFAULT_PROPS$10.kind,
|
|
1630
1630
|
theme,
|
|
1631
1631
|
ref,
|
|
1632
1632
|
...forwardedProps
|
|
@@ -1646,7 +1646,7 @@ function InputHelper$1(props) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
InputHelper$1.displayName = COMPONENT_NAME$18;
|
|
1648
1648
|
InputHelper$1.className = CLASSNAME$18;
|
|
1649
|
-
InputHelper$1.defaultProps = DEFAULT_PROPS$
|
|
1649
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$10;
|
|
1650
1650
|
|
|
1651
1651
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1652
1652
|
|
|
@@ -1761,7 +1761,7 @@ const Checkbox$1 = props => {
|
|
|
1761
1761
|
/**
|
|
1762
1762
|
* Component default props.
|
|
1763
1763
|
*/
|
|
1764
|
-
const DEFAULT_PROPS
|
|
1764
|
+
const DEFAULT_PROPS$$ = {};
|
|
1765
1765
|
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Checkbox component.
|
|
@@ -1823,7 +1823,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1823
1823
|
});
|
|
1824
1824
|
Checkbox.displayName = COMPONENT_NAME$17;
|
|
1825
1825
|
Checkbox.className = CLASSNAME$17;
|
|
1826
|
-
Checkbox.defaultProps = DEFAULT_PROPS
|
|
1826
|
+
Checkbox.defaultProps = DEFAULT_PROPS$$;
|
|
1827
1827
|
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -1858,7 +1858,7 @@ const {
|
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Component default props.
|
|
1860
1860
|
*/
|
|
1861
|
-
const DEFAULT_PROPS
|
|
1861
|
+
const DEFAULT_PROPS$_ = {
|
|
1862
1862
|
size: Size$1.m
|
|
1863
1863
|
};
|
|
1864
1864
|
|
|
@@ -1888,7 +1888,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1888
1888
|
onAfterClick,
|
|
1889
1889
|
onBeforeClick,
|
|
1890
1890
|
onClick,
|
|
1891
|
-
size = DEFAULT_PROPS
|
|
1891
|
+
size = DEFAULT_PROPS$_.size,
|
|
1892
1892
|
theme = defaultTheme,
|
|
1893
1893
|
href,
|
|
1894
1894
|
onKeyDown,
|
|
@@ -1960,7 +1960,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1960
1960
|
});
|
|
1961
1961
|
Chip.displayName = COMPONENT_NAME$16;
|
|
1962
1962
|
Chip.className = CLASSNAME$16;
|
|
1963
|
-
Chip.defaultProps = DEFAULT_PROPS
|
|
1963
|
+
Chip.defaultProps = DEFAULT_PROPS$_;
|
|
1964
1964
|
|
|
1965
1965
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
1966
1966
|
|
|
@@ -2016,7 +2016,7 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
|
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Component default props.
|
|
2018
2018
|
*/
|
|
2019
|
-
const DEFAULT_PROPS$
|
|
2019
|
+
const DEFAULT_PROPS$Z = {};
|
|
2020
2020
|
|
|
2021
2021
|
/**
|
|
2022
2022
|
* Component display name.
|
|
@@ -2051,7 +2051,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2051
2051
|
});
|
|
2052
2052
|
InternalChipGroup.displayName = COMPONENT_NAME$15;
|
|
2053
2053
|
InternalChipGroup.className = CLASSNAME$15;
|
|
2054
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2054
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$Z;
|
|
2055
2055
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2056
2056
|
useChipGroupNavigation
|
|
2057
2057
|
});
|
|
@@ -2263,7 +2263,7 @@ const {
|
|
|
2263
2263
|
/**
|
|
2264
2264
|
* Component default props.
|
|
2265
2265
|
*/
|
|
2266
|
-
const DEFAULT_PROPS$
|
|
2266
|
+
const DEFAULT_PROPS$Y = {
|
|
2267
2267
|
variant: CommentBlockVariant.indented
|
|
2268
2268
|
};
|
|
2269
2269
|
|
|
@@ -2293,7 +2293,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2293
2293
|
onMouseLeave,
|
|
2294
2294
|
text,
|
|
2295
2295
|
theme = defaultTheme,
|
|
2296
|
-
variant = DEFAULT_PROPS$
|
|
2296
|
+
variant = DEFAULT_PROPS$Y.variant,
|
|
2297
2297
|
...forwardedProps
|
|
2298
2298
|
} = props;
|
|
2299
2299
|
const hasChildren = Children.count(children) > 0;
|
|
@@ -2362,7 +2362,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2362
2362
|
});
|
|
2363
2363
|
CommentBlock.displayName = COMPONENT_NAME$14;
|
|
2364
2364
|
CommentBlock.className = CLASSNAME$13;
|
|
2365
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
2365
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$Y;
|
|
2366
2366
|
|
|
2367
2367
|
/**
|
|
2368
2368
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -3467,7 +3467,7 @@ const {
|
|
|
3467
3467
|
/**
|
|
3468
3468
|
* Component default props.
|
|
3469
3469
|
*/
|
|
3470
|
-
const DEFAULT_PROPS$
|
|
3470
|
+
const DEFAULT_PROPS$X = {
|
|
3471
3471
|
size: Size$1.big,
|
|
3472
3472
|
disableBodyScroll: true
|
|
3473
3473
|
};
|
|
@@ -3498,11 +3498,11 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3498
3498
|
parentElement,
|
|
3499
3499
|
contentRef,
|
|
3500
3500
|
preventAutoClose,
|
|
3501
|
-
size = DEFAULT_PROPS$
|
|
3501
|
+
size = DEFAULT_PROPS$X.size,
|
|
3502
3502
|
zIndex,
|
|
3503
3503
|
dialogProps,
|
|
3504
3504
|
onVisibilityChange,
|
|
3505
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
3505
|
+
disableBodyScroll = DEFAULT_PROPS$X.disableBodyScroll,
|
|
3506
3506
|
preventCloseOnClick,
|
|
3507
3507
|
preventCloseOnEscape,
|
|
3508
3508
|
...forwardedProps
|
|
@@ -3642,7 +3642,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3642
3642
|
});
|
|
3643
3643
|
Dialog.displayName = COMPONENT_NAME$10;
|
|
3644
3644
|
Dialog.className = CLASSNAME$11;
|
|
3645
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
3645
|
+
Dialog.defaultProps = DEFAULT_PROPS$X;
|
|
3646
3646
|
|
|
3647
3647
|
/**
|
|
3648
3648
|
* Component display name.
|
|
@@ -3686,7 +3686,7 @@ const Divider$1 = props => {
|
|
|
3686
3686
|
/**
|
|
3687
3687
|
* Component default props.
|
|
3688
3688
|
*/
|
|
3689
|
-
const DEFAULT_PROPS$
|
|
3689
|
+
const DEFAULT_PROPS$W = {};
|
|
3690
3690
|
|
|
3691
3691
|
/**
|
|
3692
3692
|
* Divider component.
|
|
@@ -3709,7 +3709,7 @@ const Divider = forwardRef((props, ref) => {
|
|
|
3709
3709
|
});
|
|
3710
3710
|
Divider.displayName = COMPONENT_NAME$$;
|
|
3711
3711
|
Divider.className = CLASSNAME$10;
|
|
3712
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
3712
|
+
Divider.defaultProps = DEFAULT_PROPS$W;
|
|
3713
3713
|
|
|
3714
3714
|
/**
|
|
3715
3715
|
* Component display name.
|
|
@@ -3934,7 +3934,7 @@ const {
|
|
|
3934
3934
|
/**
|
|
3935
3935
|
* Component default props.
|
|
3936
3936
|
*/
|
|
3937
|
-
const DEFAULT_PROPS$
|
|
3937
|
+
const DEFAULT_PROPS$V = {
|
|
3938
3938
|
tabIndex: -1
|
|
3939
3939
|
};
|
|
3940
3940
|
|
|
@@ -3953,7 +3953,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3953
3953
|
isClickable,
|
|
3954
3954
|
itemPadding,
|
|
3955
3955
|
onListItemSelected,
|
|
3956
|
-
tabIndex = DEFAULT_PROPS$
|
|
3956
|
+
tabIndex = DEFAULT_PROPS$V.tabIndex,
|
|
3957
3957
|
...forwardedProps
|
|
3958
3958
|
} = props;
|
|
3959
3959
|
const adjustedItemPadding = itemPadding ?? (isClickable ? Size$1.big : undefined);
|
|
@@ -3969,7 +3969,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3969
3969
|
});
|
|
3970
3970
|
InternalList.displayName = COMPONENT_NAME$Z;
|
|
3971
3971
|
InternalList.className = CLASSNAME$_;
|
|
3972
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
3972
|
+
InternalList.defaultProps = DEFAULT_PROPS$V;
|
|
3973
3973
|
const List = Object.assign(InternalList, {
|
|
3974
3974
|
useKeyboardListNavigation
|
|
3975
3975
|
});
|
|
@@ -6414,7 +6414,7 @@ const {
|
|
|
6414
6414
|
/**
|
|
6415
6415
|
* Component default props.
|
|
6416
6416
|
*/
|
|
6417
|
-
const DEFAULT_PROPS$
|
|
6417
|
+
const DEFAULT_PROPS$U = {
|
|
6418
6418
|
elevation: 3,
|
|
6419
6419
|
placement: Placement.AUTO,
|
|
6420
6420
|
focusAnchorOnClose: true,
|
|
@@ -6431,24 +6431,24 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6431
6431
|
className,
|
|
6432
6432
|
closeOnClickAway,
|
|
6433
6433
|
closeOnEscape,
|
|
6434
|
-
elevation = DEFAULT_PROPS$
|
|
6434
|
+
elevation = DEFAULT_PROPS$U.elevation,
|
|
6435
6435
|
focusElement,
|
|
6436
6436
|
hasArrow,
|
|
6437
6437
|
isOpen,
|
|
6438
6438
|
onClose,
|
|
6439
6439
|
parentElement,
|
|
6440
|
-
usePortal = DEFAULT_PROPS$
|
|
6441
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6440
|
+
usePortal = DEFAULT_PROPS$U.usePortal,
|
|
6441
|
+
focusAnchorOnClose = DEFAULT_PROPS$U.focusAnchorOnClose,
|
|
6442
6442
|
withFocusTrap,
|
|
6443
6443
|
boundaryRef,
|
|
6444
6444
|
fitToAnchorWidth,
|
|
6445
6445
|
fitWithinViewportHeight,
|
|
6446
6446
|
focusTrapZoneElement,
|
|
6447
6447
|
offset,
|
|
6448
|
-
placement = DEFAULT_PROPS$
|
|
6448
|
+
placement = DEFAULT_PROPS$U.placement,
|
|
6449
6449
|
style,
|
|
6450
6450
|
theme,
|
|
6451
|
-
zIndex = DEFAULT_PROPS$
|
|
6451
|
+
zIndex = DEFAULT_PROPS$U.zIndex,
|
|
6452
6452
|
...forwardedProps
|
|
6453
6453
|
} = props;
|
|
6454
6454
|
const popoverRef = useRef(null);
|
|
@@ -6534,7 +6534,7 @@ const Popover = skipRender(
|
|
|
6534
6534
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
6535
6535
|
Popover.displayName = COMPONENT_NAME$Y;
|
|
6536
6536
|
Popover.className = CLASSNAME$Z;
|
|
6537
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
6537
|
+
Popover.defaultProps = DEFAULT_PROPS$U;
|
|
6538
6538
|
|
|
6539
6539
|
// The error margin in px we want to have for triggering infinite scroll
|
|
6540
6540
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -6594,7 +6594,7 @@ const {
|
|
|
6594
6594
|
/**
|
|
6595
6595
|
* Component default props.
|
|
6596
6596
|
*/
|
|
6597
|
-
const DEFAULT_PROPS$
|
|
6597
|
+
const DEFAULT_PROPS$T = {
|
|
6598
6598
|
closeOnClick: true,
|
|
6599
6599
|
closeOnClickAway: true,
|
|
6600
6600
|
closeOnEscape: true,
|
|
@@ -6617,18 +6617,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6617
6617
|
anchorRef,
|
|
6618
6618
|
children,
|
|
6619
6619
|
className,
|
|
6620
|
-
closeOnClick = DEFAULT_PROPS$
|
|
6621
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
6622
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
6623
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
6624
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
6620
|
+
closeOnClick = DEFAULT_PROPS$T.closeOnClick,
|
|
6621
|
+
closeOnClickAway = DEFAULT_PROPS$T.closeOnClickAway,
|
|
6622
|
+
closeOnEscape = DEFAULT_PROPS$T.closeOnEscape,
|
|
6623
|
+
fitToAnchorWidth = DEFAULT_PROPS$T.fitToAnchorWidth,
|
|
6624
|
+
fitWithinViewportHeight = DEFAULT_PROPS$T.fitWithinViewportHeight,
|
|
6625
6625
|
isOpen,
|
|
6626
6626
|
offset,
|
|
6627
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6627
|
+
focusAnchorOnClose = DEFAULT_PROPS$T.focusAnchorOnClose,
|
|
6628
6628
|
onClose,
|
|
6629
6629
|
onInfiniteScroll,
|
|
6630
|
-
placement = DEFAULT_PROPS$
|
|
6631
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
6630
|
+
placement = DEFAULT_PROPS$T.placement,
|
|
6631
|
+
shouldFocusOnOpen = DEFAULT_PROPS$T.shouldFocusOnOpen,
|
|
6632
6632
|
zIndex,
|
|
6633
6633
|
...forwardedProps
|
|
6634
6634
|
} = props;
|
|
@@ -6674,7 +6674,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6674
6674
|
});
|
|
6675
6675
|
Dropdown.displayName = COMPONENT_NAME$X;
|
|
6676
6676
|
Dropdown.className = CLASSNAME$Y;
|
|
6677
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
6677
|
+
Dropdown.defaultProps = DEFAULT_PROPS$T;
|
|
6678
6678
|
|
|
6679
6679
|
/**
|
|
6680
6680
|
* Component display name.
|
|
@@ -6693,7 +6693,7 @@ const {
|
|
|
6693
6693
|
/**
|
|
6694
6694
|
* Component default props.
|
|
6695
6695
|
*/
|
|
6696
|
-
const DEFAULT_PROPS$
|
|
6696
|
+
const DEFAULT_PROPS$S = {
|
|
6697
6697
|
closeMode: 'unmount'
|
|
6698
6698
|
};
|
|
6699
6699
|
const isDragHandle = isComponent(DragHandle);
|
|
@@ -6711,7 +6711,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6711
6711
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
6712
6712
|
const {
|
|
6713
6713
|
className,
|
|
6714
|
-
closeMode = DEFAULT_PROPS$
|
|
6714
|
+
closeMode = DEFAULT_PROPS$S.closeMode,
|
|
6715
6715
|
children: anyChildren,
|
|
6716
6716
|
hasBackground,
|
|
6717
6717
|
hasHeaderDivider,
|
|
@@ -6828,11 +6828,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6828
6828
|
});
|
|
6829
6829
|
ExpansionPanel.displayName = COMPONENT_NAME$W;
|
|
6830
6830
|
ExpansionPanel.className = CLASSNAME$X;
|
|
6831
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
6831
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$S;
|
|
6832
6832
|
|
|
6833
6833
|
const COMPONENT_NAME$V = 'Flag';
|
|
6834
6834
|
const CLASSNAME$W = 'lumx-flag';
|
|
6835
|
-
const DEFAULT_PROPS$
|
|
6835
|
+
const DEFAULT_PROPS$R = {};
|
|
6836
6836
|
const {
|
|
6837
6837
|
block: block$N,
|
|
6838
6838
|
element: element$B
|
|
@@ -6896,7 +6896,7 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6896
6896
|
});
|
|
6897
6897
|
Flag.displayName = COMPONENT_NAME$V;
|
|
6898
6898
|
Flag.className = CLASSNAME$W;
|
|
6899
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
6899
|
+
Flag.defaultProps = DEFAULT_PROPS$R;
|
|
6900
6900
|
|
|
6901
6901
|
/**
|
|
6902
6902
|
* Defines the props of the component.
|
|
@@ -6989,7 +6989,7 @@ const {
|
|
|
6989
6989
|
/**
|
|
6990
6990
|
* Component default props.
|
|
6991
6991
|
*/
|
|
6992
|
-
const DEFAULT_PROPS$
|
|
6992
|
+
const DEFAULT_PROPS$Q = {
|
|
6993
6993
|
gap: Size$1.big,
|
|
6994
6994
|
orientation: Orientation$1.horizontal
|
|
6995
6995
|
};
|
|
@@ -7019,8 +7019,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7019
7019
|
children,
|
|
7020
7020
|
actions,
|
|
7021
7021
|
actionsProps,
|
|
7022
|
-
gap = DEFAULT_PROPS$
|
|
7023
|
-
orientation = DEFAULT_PROPS$
|
|
7022
|
+
gap = DEFAULT_PROPS$Q.gap,
|
|
7023
|
+
orientation = DEFAULT_PROPS$Q.orientation,
|
|
7024
7024
|
contentProps,
|
|
7025
7025
|
...forwardedProps
|
|
7026
7026
|
} = props;
|
|
@@ -7074,7 +7074,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7074
7074
|
});
|
|
7075
7075
|
BaseGenericBlock.displayName = COMPONENT_NAME$T;
|
|
7076
7076
|
BaseGenericBlock.className = CLASSNAME$U;
|
|
7077
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
7077
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$Q;
|
|
7078
7078
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
7079
7079
|
Figure,
|
|
7080
7080
|
Content,
|
|
@@ -7122,7 +7122,7 @@ const CLASSNAME$T = 'lumx-heading';
|
|
|
7122
7122
|
/**
|
|
7123
7123
|
* Component default props.
|
|
7124
7124
|
*/
|
|
7125
|
-
const DEFAULT_PROPS$
|
|
7125
|
+
const DEFAULT_PROPS$P = {};
|
|
7126
7126
|
|
|
7127
7127
|
/**
|
|
7128
7128
|
* Get Heading component common props
|
|
@@ -7223,7 +7223,7 @@ const {
|
|
|
7223
7223
|
/**
|
|
7224
7224
|
* Component default props.
|
|
7225
7225
|
*/
|
|
7226
|
-
const DEFAULT_PROPS$
|
|
7226
|
+
const DEFAULT_PROPS$O = {};
|
|
7227
7227
|
|
|
7228
7228
|
/**
|
|
7229
7229
|
* Text component common props
|
|
@@ -7310,7 +7310,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
7310
7310
|
});
|
|
7311
7311
|
Text.displayName = COMPONENT_NAME$R;
|
|
7312
7312
|
Text.className = CLASSNAME$S;
|
|
7313
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
7313
|
+
Text.defaultProps = DEFAULT_PROPS$O;
|
|
7314
7314
|
|
|
7315
7315
|
const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
|
|
7316
7316
|
|
|
@@ -7347,7 +7347,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
7347
7347
|
});
|
|
7348
7348
|
Heading.displayName = COMPONENT_NAME$S;
|
|
7349
7349
|
Heading.className = CLASSNAME$T;
|
|
7350
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
7350
|
+
Heading.defaultProps = DEFAULT_PROPS$P;
|
|
7351
7351
|
|
|
7352
7352
|
/**
|
|
7353
7353
|
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
@@ -7398,7 +7398,7 @@ const {
|
|
|
7398
7398
|
/**
|
|
7399
7399
|
* Component default props.
|
|
7400
7400
|
*/
|
|
7401
|
-
const DEFAULT_PROPS$
|
|
7401
|
+
const DEFAULT_PROPS$N = {
|
|
7402
7402
|
orientation: Orientation$1.horizontal,
|
|
7403
7403
|
wrap: 'nowrap'
|
|
7404
7404
|
};
|
|
@@ -7416,9 +7416,9 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7416
7416
|
className,
|
|
7417
7417
|
gutter,
|
|
7418
7418
|
hAlign,
|
|
7419
|
-
orientation = DEFAULT_PROPS$
|
|
7419
|
+
orientation = DEFAULT_PROPS$N.orientation,
|
|
7420
7420
|
vAlign,
|
|
7421
|
-
wrap = DEFAULT_PROPS$
|
|
7421
|
+
wrap = DEFAULT_PROPS$N.wrap,
|
|
7422
7422
|
...forwardedProps
|
|
7423
7423
|
} = props;
|
|
7424
7424
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -7436,7 +7436,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7436
7436
|
});
|
|
7437
7437
|
Grid.displayName = COMPONENT_NAME$Q;
|
|
7438
7438
|
Grid.className = CLASSNAME$R;
|
|
7439
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
7439
|
+
Grid.defaultProps = DEFAULT_PROPS$N;
|
|
7440
7440
|
|
|
7441
7441
|
/**
|
|
7442
7442
|
* Component display name.
|
|
@@ -7494,7 +7494,7 @@ const CLASSNAME$P = 'lumx-grid-column';
|
|
|
7494
7494
|
/**
|
|
7495
7495
|
* Component default props.
|
|
7496
7496
|
*/
|
|
7497
|
-
const DEFAULT_PROPS$
|
|
7497
|
+
const DEFAULT_PROPS$M = {};
|
|
7498
7498
|
|
|
7499
7499
|
/**
|
|
7500
7500
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7531,7 +7531,7 @@ const GridColumn$1 = props => {
|
|
|
7531
7531
|
};
|
|
7532
7532
|
GridColumn$1.displayName = COMPONENT_NAME$O;
|
|
7533
7533
|
GridColumn$1.className = CLASSNAME$P;
|
|
7534
|
-
GridColumn$1.defaultProps = DEFAULT_PROPS$
|
|
7534
|
+
GridColumn$1.defaultProps = DEFAULT_PROPS$M;
|
|
7535
7535
|
|
|
7536
7536
|
/**
|
|
7537
7537
|
* Defines the props of the component.
|
|
@@ -7542,7 +7542,7 @@ GridColumn$1.defaultProps = DEFAULT_PROPS$N;
|
|
|
7542
7542
|
/**
|
|
7543
7543
|
* Component default props.
|
|
7544
7544
|
*/
|
|
7545
|
-
const DEFAULT_PROPS$
|
|
7545
|
+
const DEFAULT_PROPS$L = {};
|
|
7546
7546
|
|
|
7547
7547
|
/**
|
|
7548
7548
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7561,7 +7561,7 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7561
7561
|
});
|
|
7562
7562
|
GridColumn.displayName = COMPONENT_NAME$O;
|
|
7563
7563
|
GridColumn.className = CLASSNAME$P;
|
|
7564
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
7564
|
+
GridColumn.defaultProps = DEFAULT_PROPS$L;
|
|
7565
7565
|
|
|
7566
7566
|
/**
|
|
7567
7567
|
* Icon component.
|
|
@@ -7679,7 +7679,7 @@ const {
|
|
|
7679
7679
|
/**
|
|
7680
7680
|
* Component default props.
|
|
7681
7681
|
*/
|
|
7682
|
-
const DEFAULT_PROPS$
|
|
7682
|
+
const DEFAULT_PROPS$K = {
|
|
7683
7683
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
7684
7684
|
align: Alignment.left
|
|
7685
7685
|
};
|
|
@@ -7695,9 +7695,9 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7695
7695
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
7696
7696
|
const {
|
|
7697
7697
|
actions,
|
|
7698
|
-
align = DEFAULT_PROPS$
|
|
7698
|
+
align = DEFAULT_PROPS$K.align,
|
|
7699
7699
|
alt,
|
|
7700
|
-
captionPosition = DEFAULT_PROPS$
|
|
7700
|
+
captionPosition = DEFAULT_PROPS$K.captionPosition,
|
|
7701
7701
|
captionStyle,
|
|
7702
7702
|
className,
|
|
7703
7703
|
description,
|
|
@@ -7751,7 +7751,7 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7751
7751
|
});
|
|
7752
7752
|
ImageBlock.displayName = COMPONENT_NAME$N;
|
|
7753
7753
|
ImageBlock.className = CLASSNAME$O;
|
|
7754
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
7754
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$K;
|
|
7755
7755
|
|
|
7756
7756
|
/**
|
|
7757
7757
|
* Component display name.
|
|
@@ -8511,7 +8511,7 @@ const {
|
|
|
8511
8511
|
/**
|
|
8512
8512
|
* Component default props.
|
|
8513
8513
|
*/
|
|
8514
|
-
const DEFAULT_PROPS$
|
|
8514
|
+
const DEFAULT_PROPS$J = {};
|
|
8515
8515
|
|
|
8516
8516
|
/**
|
|
8517
8517
|
* InlineList component.
|
|
@@ -8564,7 +8564,7 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
8564
8564
|
});
|
|
8565
8565
|
InlineList.displayName = COMPONENT_NAME$L;
|
|
8566
8566
|
InlineList.className = CLASSNAME$M;
|
|
8567
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
8567
|
+
InlineList.defaultProps = DEFAULT_PROPS$J;
|
|
8568
8568
|
|
|
8569
8569
|
/**
|
|
8570
8570
|
* InputHelper component.
|
|
@@ -8742,6 +8742,10 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
8742
8742
|
Lightbox.displayName = COMPONENT_NAME$K;
|
|
8743
8743
|
Lightbox.className = CLASSNAME$L;
|
|
8744
8744
|
|
|
8745
|
+
/**
|
|
8746
|
+
* Defines the props of the component.
|
|
8747
|
+
*/
|
|
8748
|
+
|
|
8745
8749
|
/**
|
|
8746
8750
|
* Component display name.
|
|
8747
8751
|
*/
|
|
@@ -8752,104 +8756,52 @@ const COMPONENT_NAME$J = 'Link';
|
|
|
8752
8756
|
*/
|
|
8753
8757
|
const CLASSNAME$K = 'lumx-link';
|
|
8754
8758
|
const {
|
|
8755
|
-
block: block$E
|
|
8756
|
-
element: element$u
|
|
8759
|
+
block: block$E
|
|
8757
8760
|
} = bem(CLASSNAME$K);
|
|
8758
8761
|
|
|
8759
8762
|
/**
|
|
8760
|
-
* Link component
|
|
8763
|
+
* Link component.
|
|
8761
8764
|
*
|
|
8762
8765
|
* @param props Component props.
|
|
8763
8766
|
* @return JSX element.
|
|
8764
8767
|
*/
|
|
8765
8768
|
const Link$1 = props => {
|
|
8766
8769
|
const {
|
|
8767
|
-
|
|
8770
|
+
children,
|
|
8768
8771
|
className,
|
|
8769
8772
|
color: propColor,
|
|
8770
8773
|
colorVariant: propColorVariant,
|
|
8771
|
-
leftIcon,
|
|
8772
|
-
rightIcon,
|
|
8773
8774
|
typography: typography$1,
|
|
8774
|
-
|
|
8775
|
+
linkAs,
|
|
8776
|
+
handleClick,
|
|
8775
8777
|
ref,
|
|
8776
|
-
isDisabled,
|
|
8777
|
-
theme,
|
|
8778
8778
|
href,
|
|
8779
|
-
target,
|
|
8780
|
-
handleClick,
|
|
8781
8779
|
...forwardedProps
|
|
8782
8780
|
} = props;
|
|
8783
8781
|
const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
|
|
8784
|
-
|
|
8785
|
-
// Determine element type
|
|
8786
|
-
const ElementType = as || (href ? 'a' : 'button');
|
|
8787
|
-
|
|
8788
|
-
// Build disabled props
|
|
8789
|
-
const disabledProps = {};
|
|
8790
|
-
if (isDisabled) {
|
|
8791
|
-
if (ElementType === 'button' || !href && !as) {
|
|
8792
|
-
disabledProps.disabled = true;
|
|
8793
|
-
} else {
|
|
8794
|
-
disabledProps['aria-disabled'] = true;
|
|
8795
|
-
disabledProps.tabIndex = -1;
|
|
8796
|
-
}
|
|
8797
|
-
}
|
|
8798
|
-
|
|
8799
|
-
// Build class name
|
|
8800
|
-
const combinedClassName = classnames(className, block$E({
|
|
8801
|
-
[`color-${color}`]: Boolean(color),
|
|
8802
|
-
[`color-variant-${colorVariant}`]: Boolean(colorVariant),
|
|
8803
|
-
'has-typography': !!typography$1
|
|
8804
|
-
}), typography$1 && typography(typography$1));
|
|
8805
|
-
|
|
8806
|
-
// Build content with proper spacing for icons
|
|
8807
|
-
const content = /*#__PURE__*/jsxs(Fragment, {
|
|
8808
|
-
children: [leftIcon && /*#__PURE__*/jsxs(Fragment, {
|
|
8809
|
-
children: [" ", Icon$1({
|
|
8810
|
-
icon: leftIcon,
|
|
8811
|
-
className: element$u('left-icon')
|
|
8812
|
-
}), " "]
|
|
8813
|
-
}), label && /*#__PURE__*/jsx("span", {
|
|
8814
|
-
className: element$u('content'),
|
|
8815
|
-
children: label
|
|
8816
|
-
}), rightIcon && /*#__PURE__*/jsxs(Fragment, {
|
|
8817
|
-
children: [" ", Icon$1({
|
|
8818
|
-
icon: rightIcon,
|
|
8819
|
-
className: element$u('right-icon')
|
|
8820
|
-
}), " "]
|
|
8821
|
-
})]
|
|
8822
|
-
});
|
|
8823
|
-
|
|
8824
|
-
// Build element props
|
|
8825
|
-
const elementProps = {
|
|
8782
|
+
return RawClickable({
|
|
8826
8783
|
ref,
|
|
8827
|
-
|
|
8828
|
-
|
|
8784
|
+
as: linkAs || (href ? 'a' : 'button'),
|
|
8785
|
+
href,
|
|
8829
8786
|
...forwardedProps,
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
}
|
|
8838
|
-
return /*#__PURE__*/jsx(ElementType, {
|
|
8839
|
-
...elementProps,
|
|
8840
|
-
children: content
|
|
8787
|
+
handleClick,
|
|
8788
|
+
children,
|
|
8789
|
+
className: classnames(className, block$E({
|
|
8790
|
+
[`color-${color}`]: Boolean(color),
|
|
8791
|
+
[`color-variant-${colorVariant}`]: Boolean(colorVariant),
|
|
8792
|
+
'has-typography': !!typography$1
|
|
8793
|
+
}), typography$1 && typography(typography$1))
|
|
8841
8794
|
});
|
|
8842
8795
|
};
|
|
8843
8796
|
|
|
8797
|
+
const {
|
|
8798
|
+
element: element$u
|
|
8799
|
+
} = classNames.bem(CLASSNAME$K);
|
|
8800
|
+
|
|
8844
8801
|
/**
|
|
8845
8802
|
* Defines the props of the component.
|
|
8846
8803
|
*/
|
|
8847
8804
|
|
|
8848
|
-
/**
|
|
8849
|
-
* Component default props.
|
|
8850
|
-
*/
|
|
8851
|
-
const DEFAULT_PROPS$J = {};
|
|
8852
|
-
|
|
8853
8805
|
/**
|
|
8854
8806
|
* Link component.
|
|
8855
8807
|
*
|
|
@@ -8859,42 +8811,39 @@ const DEFAULT_PROPS$J = {};
|
|
|
8859
8811
|
*/
|
|
8860
8812
|
const Link = forwardRef((props, ref) => {
|
|
8861
8813
|
const {
|
|
8862
|
-
isAnyDisabled,
|
|
8863
8814
|
disabledStateProps,
|
|
8864
8815
|
otherProps
|
|
8865
8816
|
} = useDisableStateProps(props);
|
|
8866
8817
|
const {
|
|
8867
8818
|
children,
|
|
8868
|
-
className,
|
|
8869
|
-
color,
|
|
8870
|
-
colorVariant,
|
|
8871
8819
|
leftIcon,
|
|
8872
8820
|
rightIcon,
|
|
8873
|
-
typography,
|
|
8874
8821
|
linkAs,
|
|
8822
|
+
onClick,
|
|
8875
8823
|
...forwardedProps
|
|
8876
8824
|
} = otherProps;
|
|
8877
|
-
|
|
8878
|
-
// Wrap children with spaces if they contain icons
|
|
8879
|
-
const label = wrapChildrenIconWithSpaces(children);
|
|
8880
8825
|
return Link$1({
|
|
8881
8826
|
ref,
|
|
8882
|
-
label,
|
|
8883
|
-
className,
|
|
8884
|
-
color,
|
|
8885
|
-
colorVariant,
|
|
8886
|
-
leftIcon,
|
|
8887
|
-
rightIcon,
|
|
8888
|
-
typography,
|
|
8889
|
-
as: linkAs,
|
|
8890
|
-
...forwardedProps,
|
|
8891
8827
|
...disabledStateProps,
|
|
8892
|
-
|
|
8828
|
+
...forwardedProps,
|
|
8829
|
+
linkAs,
|
|
8830
|
+
handleClick: onClick,
|
|
8831
|
+
children: wrapChildrenIconWithSpaces(/*#__PURE__*/jsxs(Fragment, {
|
|
8832
|
+
children: [leftIcon && /*#__PURE__*/jsx(Icon, {
|
|
8833
|
+
icon: leftIcon,
|
|
8834
|
+
className: element$u('left-icon')
|
|
8835
|
+
}), children && /*#__PURE__*/jsx("span", {
|
|
8836
|
+
className: element$u('content'),
|
|
8837
|
+
children: children
|
|
8838
|
+
}), rightIcon && /*#__PURE__*/jsx(Icon, {
|
|
8839
|
+
icon: rightIcon,
|
|
8840
|
+
className: element$u('right-icon')
|
|
8841
|
+
})]
|
|
8842
|
+
}))
|
|
8893
8843
|
});
|
|
8894
8844
|
});
|
|
8895
8845
|
Link.displayName = COMPONENT_NAME$J;
|
|
8896
8846
|
Link.className = CLASSNAME$K;
|
|
8897
|
-
Link.defaultProps = DEFAULT_PROPS$J;
|
|
8898
8847
|
|
|
8899
8848
|
/**
|
|
8900
8849
|
* Component display name.
|
|
@@ -15434,5 +15383,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
15434
15383
|
UserBlock.className = CLASSNAME;
|
|
15435
15384
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
15436
15385
|
|
|
15437
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1d as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$
|
|
15386
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1d as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$15 as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
15438
15387
|
//# sourceMappingURL=index.js.map
|