@lumx/react 4.3.2-alpha.8 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/DpdvhbTO.js +1 -1
- package/index.d.ts +266 -148
- package/index.js +511 -432
- package/index.js.map +1 -1
- package/package.json +11 -6
- package/utils/index.d.ts +1 -2
- package/utils/index.js +7 -7
package/index.js
CHANGED
|
@@ -9,48 +9,48 @@ import { mdiCheckCircle } from '@lumx/icons/esm/check-circle.js';
|
|
|
9
9
|
import { mdiInformation } from '@lumx/icons/esm/information.js';
|
|
10
10
|
import { classNames, onEnterPressed, onEscapePressed, onButtonPressed, detectHorizontalSwipe } from '@lumx/core/js/utils';
|
|
11
11
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
12
|
-
import last from 'lodash/last';
|
|
13
|
-
import pull from 'lodash/pull';
|
|
14
|
-
import get from 'lodash/get';
|
|
15
|
-
import concat from 'lodash/concat';
|
|
16
|
-
import dropRight from 'lodash/dropRight';
|
|
17
|
-
import partition from 'lodash/partition';
|
|
18
|
-
import reduce from 'lodash/reduce';
|
|
12
|
+
import last from 'lodash/last.js';
|
|
13
|
+
import pull from 'lodash/pull.js';
|
|
14
|
+
import get from 'lodash/get.js';
|
|
15
|
+
import concat from 'lodash/concat.js';
|
|
16
|
+
import dropRight from 'lodash/dropRight.js';
|
|
17
|
+
import partition from 'lodash/partition.js';
|
|
18
|
+
import reduce from 'lodash/reduce.js';
|
|
19
19
|
import { u as useDisabledStateContext, P as Portal, C as ClickAwayProvider } from './_internal/DpdvhbTO.js';
|
|
20
|
-
import isEmpty from 'lodash/isEmpty';
|
|
20
|
+
import isEmpty from 'lodash/isEmpty.js';
|
|
21
21
|
import { getDisabledState } from '@lumx/core/js/utils/disabledState';
|
|
22
22
|
import { mdiCloseCircle } from '@lumx/icons/esm/close-circle.js';
|
|
23
|
-
import memoize from 'lodash/memoize';
|
|
23
|
+
import memoize from 'lodash/memoize.js';
|
|
24
24
|
import { mdiClose } from '@lumx/icons/esm/close.js';
|
|
25
|
-
import isFunction from 'lodash/isFunction';
|
|
25
|
+
import isFunction from 'lodash/isFunction.js';
|
|
26
26
|
import { mdiImageBroken } from '@lumx/icons/esm/image-broken.js';
|
|
27
27
|
import { mdiCheck } from '@lumx/icons/esm/check.js';
|
|
28
28
|
import { mdiMinus } from '@lumx/icons/esm/minus.js';
|
|
29
29
|
import { mdiChevronLeft } from '@lumx/icons/esm/chevron-left.js';
|
|
30
30
|
import { mdiChevronRight } from '@lumx/icons/esm/chevron-right.js';
|
|
31
|
-
import castArray from 'lodash/castArray';
|
|
31
|
+
import castArray from 'lodash/castArray.js';
|
|
32
32
|
import { mdiDragVertical } from '@lumx/icons/esm/drag-vertical.js';
|
|
33
33
|
import { mdiChevronDown } from '@lumx/icons/esm/chevron-down.js';
|
|
34
34
|
import { mdiChevronUp } from '@lumx/icons/esm/chevron-up.js';
|
|
35
|
-
import noop from 'lodash/noop';
|
|
36
|
-
import pick from 'lodash/pick';
|
|
37
|
-
import isInteger from 'lodash/isInteger';
|
|
35
|
+
import noop from 'lodash/noop.js';
|
|
36
|
+
import pick from 'lodash/pick.js';
|
|
37
|
+
import isInteger from 'lodash/isInteger.js';
|
|
38
38
|
import { mdiMagnifyMinusOutline } from '@lumx/icons/esm/magnify-minus-outline.js';
|
|
39
39
|
import { mdiMagnifyPlusOutline } from '@lumx/icons/esm/magnify-plus-outline.js';
|
|
40
|
-
import throttle from 'lodash/throttle';
|
|
41
|
-
import range from 'lodash/range';
|
|
40
|
+
import throttle from 'lodash/throttle.js';
|
|
41
|
+
import range from 'lodash/range.js';
|
|
42
42
|
import { mdiPlayCircleOutline } from '@lumx/icons/esm/play-circle-outline.js';
|
|
43
43
|
import { mdiPauseCircleOutline } from '@lumx/icons/esm/pause-circle-outline.js';
|
|
44
|
-
import chunk from 'lodash/chunk';
|
|
44
|
+
import chunk from 'lodash/chunk.js';
|
|
45
45
|
import ReactDOM from 'react-dom';
|
|
46
|
-
import take from 'lodash/take';
|
|
46
|
+
import take from 'lodash/take.js';
|
|
47
47
|
import { mdiRadioboxBlank } from '@lumx/icons/esm/radiobox-blank.js';
|
|
48
48
|
import { mdiRadioboxMarked } from '@lumx/icons/esm/radiobox-marked.js';
|
|
49
49
|
import { mdiMenuDown } from '@lumx/icons/esm/menu-down.js';
|
|
50
|
-
import { getWithSelector } from '@lumx/core/js/utils/selectors
|
|
50
|
+
import { getWithSelector } from '@lumx/core/js/utils/selectors';
|
|
51
51
|
import { mdiArrowDown } from '@lumx/icons/esm/arrow-down.js';
|
|
52
52
|
import { mdiArrowUp } from '@lumx/icons/esm/arrow-up.js';
|
|
53
|
-
import set from 'lodash/set';
|
|
53
|
+
import set from 'lodash/set.js';
|
|
54
54
|
|
|
55
55
|
let i = 0;
|
|
56
56
|
|
|
@@ -96,7 +96,7 @@ const CONFIG$1 = {
|
|
|
96
96
|
/**
|
|
97
97
|
* Component display name.
|
|
98
98
|
*/
|
|
99
|
-
const COMPONENT_NAME$
|
|
99
|
+
const COMPONENT_NAME$1k = 'AlertDialog';
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Component default class name and class prefix.
|
|
@@ -217,7 +217,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
217
217
|
})]
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
220
|
+
AlertDialog.displayName = COMPONENT_NAME$1k;
|
|
221
221
|
AlertDialog.className = CLASSNAME$1j;
|
|
222
222
|
AlertDialog.defaultProps = DEFAULT_PROPS$1a;
|
|
223
223
|
|
|
@@ -311,7 +311,7 @@ function useDisableStateProps(props) {
|
|
|
311
311
|
/**
|
|
312
312
|
* Component display name.
|
|
313
313
|
*/
|
|
314
|
-
const COMPONENT_NAME$
|
|
314
|
+
const COMPONENT_NAME$1j = 'Autocomplete';
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
317
|
* Component default class name and class prefix.
|
|
@@ -423,14 +423,14 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
423
423
|
})]
|
|
424
424
|
});
|
|
425
425
|
});
|
|
426
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
426
|
+
Autocomplete.displayName = COMPONENT_NAME$1j;
|
|
427
427
|
Autocomplete.className = CLASSNAME$1i;
|
|
428
428
|
Autocomplete.defaultProps = DEFAULT_PROPS$19;
|
|
429
429
|
|
|
430
430
|
/**
|
|
431
431
|
* Component display name.
|
|
432
432
|
*/
|
|
433
|
-
const COMPONENT_NAME$
|
|
433
|
+
const COMPONENT_NAME$1i = 'AutocompleteMultiple';
|
|
434
434
|
|
|
435
435
|
/**
|
|
436
436
|
* Component default class name and class prefix.
|
|
@@ -548,14 +548,14 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
548
548
|
children: children
|
|
549
549
|
});
|
|
550
550
|
});
|
|
551
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
551
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1i;
|
|
552
552
|
AutocompleteMultiple.className = CLASSNAME$1h;
|
|
553
553
|
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$18;
|
|
554
554
|
|
|
555
555
|
/**
|
|
556
556
|
* Component display name.
|
|
557
557
|
*/
|
|
558
|
-
const COMPONENT_NAME$
|
|
558
|
+
const COMPONENT_NAME$1h = 'Avatar';
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
561
|
* Component default class name and class prefix.
|
|
@@ -625,7 +625,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
625
625
|
})]
|
|
626
626
|
});
|
|
627
627
|
});
|
|
628
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
628
|
+
Avatar.displayName = COMPONENT_NAME$1h;
|
|
629
629
|
Avatar.className = CLASSNAME$1g;
|
|
630
630
|
Avatar.defaultProps = DEFAULT_PROPS$17;
|
|
631
631
|
|
|
@@ -695,8 +695,6 @@ const ColorPalette = {
|
|
|
695
695
|
red: 'red',
|
|
696
696
|
light: 'light'};
|
|
697
697
|
|
|
698
|
-
/** ColorPalette with all possible color variant combination */
|
|
699
|
-
|
|
700
698
|
function getDefaultExportFromCjs (x) {
|
|
701
699
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
702
700
|
}
|
|
@@ -925,7 +923,7 @@ function bem(baseName) {
|
|
|
925
923
|
/**
|
|
926
924
|
* Component display name.
|
|
927
925
|
*/
|
|
928
|
-
const COMPONENT_NAME$
|
|
926
|
+
const COMPONENT_NAME$1g = 'Badge';
|
|
929
927
|
|
|
930
928
|
/**
|
|
931
929
|
* Component default class name and class prefix.
|
|
@@ -965,7 +963,7 @@ const Badge$1 = props => {
|
|
|
965
963
|
children: children
|
|
966
964
|
});
|
|
967
965
|
};
|
|
968
|
-
Badge$1.displayName = COMPONENT_NAME$
|
|
966
|
+
Badge$1.displayName = COMPONENT_NAME$1g;
|
|
969
967
|
Badge$1.className = CLASSNAME$1f;
|
|
970
968
|
Badge$1.defaultProps = DEFAULT_PROPS$16;
|
|
971
969
|
|
|
@@ -990,7 +988,7 @@ Badge.displayName = Badge$1.displayName;
|
|
|
990
988
|
Badge.className = Badge$1.className;
|
|
991
989
|
Badge.defaultProps = Badge$1.defaultProps;
|
|
992
990
|
|
|
993
|
-
const COMPONENT_NAME$
|
|
991
|
+
const COMPONENT_NAME$1f = 'BadgeWrapper';
|
|
994
992
|
const CLASSNAME$1e = 'lumx-badge-wrapper';
|
|
995
993
|
const {
|
|
996
994
|
block: block$10,
|
|
@@ -1021,17 +1019,18 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
1021
1019
|
ref
|
|
1022
1020
|
});
|
|
1023
1021
|
});
|
|
1024
|
-
BadgeWrapper.displayName = COMPONENT_NAME$
|
|
1022
|
+
BadgeWrapper.displayName = COMPONENT_NAME$1f;
|
|
1025
1023
|
BadgeWrapper.className = CLASSNAME$1e;
|
|
1026
1024
|
|
|
1027
1025
|
/**
|
|
1028
1026
|
* Render clickable element (link, button or custom element)
|
|
1029
1027
|
* (also does some basic disabled state handling)
|
|
1030
1028
|
*/
|
|
1031
|
-
const RawClickable
|
|
1029
|
+
const RawClickable = props => {
|
|
1032
1030
|
const {
|
|
1033
1031
|
children,
|
|
1034
|
-
|
|
1032
|
+
handleClick,
|
|
1033
|
+
handleKeyPress,
|
|
1035
1034
|
disabled,
|
|
1036
1035
|
isDisabled = disabled,
|
|
1037
1036
|
'aria-disabled': ariaDisabled,
|
|
@@ -1055,13 +1054,14 @@ const RawClickable$1 = props => {
|
|
|
1055
1054
|
"aria-disabled": isAnyDisabled || undefined,
|
|
1056
1055
|
...forwardedProps,
|
|
1057
1056
|
...clickableProps,
|
|
1057
|
+
onKeyPress: handleKeyPress,
|
|
1058
1058
|
onClick: event => {
|
|
1059
1059
|
if (isAnyDisabled) {
|
|
1060
1060
|
event.stopPropagation();
|
|
1061
1061
|
event.preventDefault();
|
|
1062
1062
|
return;
|
|
1063
1063
|
}
|
|
1064
|
-
|
|
1064
|
+
handleClick?.(event);
|
|
1065
1065
|
},
|
|
1066
1066
|
children: children
|
|
1067
1067
|
});
|
|
@@ -1070,7 +1070,7 @@ const RawClickable$1 = props => {
|
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Component display name.
|
|
1072
1072
|
*/
|
|
1073
|
-
const COMPONENT_NAME$
|
|
1073
|
+
const COMPONENT_NAME$1e = 'ButtonRoot';
|
|
1074
1074
|
const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
|
|
1075
1075
|
const {
|
|
1076
1076
|
block: buttonWrapperBlock
|
|
@@ -1158,7 +1158,7 @@ const ButtonRoot = props => {
|
|
|
1158
1158
|
[`variant-${variant}`]: Boolean(variant),
|
|
1159
1159
|
'is-full-width': fullWidth
|
|
1160
1160
|
}));
|
|
1161
|
-
return RawClickable
|
|
1161
|
+
return RawClickable({
|
|
1162
1162
|
as: linkAs || (forwardedProps.href ? 'a' : 'button'),
|
|
1163
1163
|
...forwardedProps,
|
|
1164
1164
|
'aria-disabled': ariaDisabled,
|
|
@@ -1168,7 +1168,7 @@ const ButtonRoot = props => {
|
|
|
1168
1168
|
children
|
|
1169
1169
|
});
|
|
1170
1170
|
};
|
|
1171
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
1171
|
+
ButtonRoot.displayName = COMPONENT_NAME$1e;
|
|
1172
1172
|
ButtonRoot.defaultProps = {};
|
|
1173
1173
|
|
|
1174
1174
|
/**
|
|
@@ -1178,7 +1178,7 @@ ButtonRoot.defaultProps = {};
|
|
|
1178
1178
|
/**
|
|
1179
1179
|
* Component display name.
|
|
1180
1180
|
*/
|
|
1181
|
-
const COMPONENT_NAME$
|
|
1181
|
+
const COMPONENT_NAME$1d = 'Button';
|
|
1182
1182
|
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Component default class name and class prefix.
|
|
@@ -1223,7 +1223,7 @@ const Button$1 = props => {
|
|
|
1223
1223
|
variant: 'button'
|
|
1224
1224
|
});
|
|
1225
1225
|
};
|
|
1226
|
-
Button$1.displayName = COMPONENT_NAME$
|
|
1226
|
+
Button$1.displayName = COMPONENT_NAME$1d;
|
|
1227
1227
|
Button$1.className = CLASSNAME$1d;
|
|
1228
1228
|
Button$1.defaultProps = DEFAULT_PROPS$15;
|
|
1229
1229
|
|
|
@@ -1257,6 +1257,11 @@ const Button = forwardRef((props, ref) => {
|
|
|
1257
1257
|
disabledStateProps,
|
|
1258
1258
|
otherProps
|
|
1259
1259
|
} = useDisableStateProps(props);
|
|
1260
|
+
const {
|
|
1261
|
+
onClick,
|
|
1262
|
+
onKeyPress,
|
|
1263
|
+
...restOfOtherProps
|
|
1264
|
+
} = otherProps;
|
|
1260
1265
|
const {
|
|
1261
1266
|
leftIcon,
|
|
1262
1267
|
rightIcon,
|
|
@@ -1266,8 +1271,10 @@ const Button = forwardRef((props, ref) => {
|
|
|
1266
1271
|
ref,
|
|
1267
1272
|
theme: defaultTheme,
|
|
1268
1273
|
...disabledStateProps,
|
|
1269
|
-
...
|
|
1274
|
+
...restOfOtherProps,
|
|
1270
1275
|
'aria-disabled': isAnyDisabled,
|
|
1276
|
+
handleClick: onClick,
|
|
1277
|
+
handleKeyPress: onKeyPress,
|
|
1271
1278
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
1272
1279
|
children: [leftIcon && !isEmpty(leftIcon) &&
|
|
1273
1280
|
/*#__PURE__*/
|
|
@@ -1291,11 +1298,11 @@ const Button = forwardRef((props, ref) => {
|
|
|
1291
1298
|
})
|
|
1292
1299
|
});
|
|
1293
1300
|
});
|
|
1294
|
-
Button.displayName = COMPONENT_NAME$
|
|
1301
|
+
Button.displayName = COMPONENT_NAME$1d;
|
|
1295
1302
|
Button.className = CLASSNAME$1d;
|
|
1296
1303
|
Button.defaultProps = DEFAULT_PROPS$15;
|
|
1297
1304
|
|
|
1298
|
-
const COMPONENT_NAME$
|
|
1305
|
+
const COMPONENT_NAME$1c = 'Icon';
|
|
1299
1306
|
const IconClassName = 'lumx-icon';
|
|
1300
1307
|
|
|
1301
1308
|
/**
|
|
@@ -1388,14 +1395,14 @@ const Icon$1 = props => {
|
|
|
1388
1395
|
})
|
|
1389
1396
|
});
|
|
1390
1397
|
};
|
|
1391
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1398
|
+
Icon$1.displayName = COMPONENT_NAME$1c;
|
|
1392
1399
|
Icon$1.className = CLASSNAME$1c;
|
|
1393
1400
|
Icon$1.defaultProps = DEFAULT_PROPS$14;
|
|
1394
1401
|
|
|
1395
1402
|
/**
|
|
1396
1403
|
* Component display name.
|
|
1397
1404
|
*/
|
|
1398
|
-
const COMPONENT_NAME$
|
|
1405
|
+
const COMPONENT_NAME$1b = 'IconButton';
|
|
1399
1406
|
|
|
1400
1407
|
/**
|
|
1401
1408
|
* Component default class name and class prefix.
|
|
@@ -1441,7 +1448,7 @@ const IconButton$1 = props => {
|
|
|
1441
1448
|
children: defaultChildren
|
|
1442
1449
|
});
|
|
1443
1450
|
};
|
|
1444
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1451
|
+
IconButton$1.displayName = COMPONENT_NAME$1b;
|
|
1445
1452
|
IconButton$1.className = CLASSNAME$1b;
|
|
1446
1453
|
IconButton$1.defaultProps = DEFAULT_PROPS$13;
|
|
1447
1454
|
|
|
@@ -1465,6 +1472,11 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1465
1472
|
disabledStateProps,
|
|
1466
1473
|
otherProps
|
|
1467
1474
|
} = useDisableStateProps(forwardedProps);
|
|
1475
|
+
const {
|
|
1476
|
+
onClick,
|
|
1477
|
+
onKeyPress,
|
|
1478
|
+
...restOfOtherProps
|
|
1479
|
+
} = otherProps;
|
|
1468
1480
|
return /*#__PURE__*/jsx(Tooltip, {
|
|
1469
1481
|
label: hideTooltip ? '' : label,
|
|
1470
1482
|
...tooltipProps,
|
|
@@ -1472,20 +1484,22 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1472
1484
|
ref,
|
|
1473
1485
|
theme: defaultTheme,
|
|
1474
1486
|
...disabledStateProps,
|
|
1475
|
-
...
|
|
1487
|
+
...restOfOtherProps,
|
|
1488
|
+
handleClick: onClick,
|
|
1489
|
+
handleKeyPress: onKeyPress,
|
|
1476
1490
|
'aria-disabled': isAnyDisabled,
|
|
1477
1491
|
label
|
|
1478
1492
|
})
|
|
1479
1493
|
});
|
|
1480
1494
|
});
|
|
1481
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1495
|
+
IconButton.displayName = COMPONENT_NAME$1b;
|
|
1482
1496
|
IconButton.className = CLASSNAME$1b;
|
|
1483
1497
|
IconButton.defaultProps = DEFAULT_PROPS$13;
|
|
1484
1498
|
|
|
1485
1499
|
/**
|
|
1486
1500
|
* Component display name.
|
|
1487
1501
|
*/
|
|
1488
|
-
const COMPONENT_NAME$
|
|
1502
|
+
const COMPONENT_NAME$1a = 'ButtonGroup';
|
|
1489
1503
|
|
|
1490
1504
|
/**
|
|
1491
1505
|
* Component default class name and class prefix.
|
|
@@ -1515,7 +1529,7 @@ const ButtonGroup$1 = props => {
|
|
|
1515
1529
|
children: children
|
|
1516
1530
|
});
|
|
1517
1531
|
};
|
|
1518
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1532
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1a;
|
|
1519
1533
|
ButtonGroup$1.className = CLASSNAME$1a;
|
|
1520
1534
|
ButtonGroup$1.defaultProps = DEFAULT_PROPS$12;
|
|
1521
1535
|
|
|
@@ -1532,11 +1546,11 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1532
1546
|
...props
|
|
1533
1547
|
});
|
|
1534
1548
|
});
|
|
1535
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1549
|
+
ButtonGroup.displayName = COMPONENT_NAME$1a;
|
|
1536
1550
|
ButtonGroup.className = CLASSNAME$1a;
|
|
1537
1551
|
ButtonGroup.defaultProps = DEFAULT_PROPS$12;
|
|
1538
1552
|
|
|
1539
|
-
const COMPONENT_NAME$
|
|
1553
|
+
const COMPONENT_NAME$19 = 'InputLabel';
|
|
1540
1554
|
const InputLabelClassName = 'lumx-input-label';
|
|
1541
1555
|
const CLASSNAME$19 = InputLabelClassName;
|
|
1542
1556
|
const {
|
|
@@ -1570,7 +1584,7 @@ function InputLabel$1(props) {
|
|
|
1570
1584
|
children: children
|
|
1571
1585
|
});
|
|
1572
1586
|
}
|
|
1573
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1587
|
+
InputLabel$1.displayName = COMPONENT_NAME$19;
|
|
1574
1588
|
InputLabel$1.className = CLASSNAME$19;
|
|
1575
1589
|
InputLabel$1.defaultProps = DEFAULT_PROPS$11;
|
|
1576
1590
|
|
|
@@ -1586,7 +1600,7 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1586
1600
|
}
|
|
1587
1601
|
};
|
|
1588
1602
|
|
|
1589
|
-
const COMPONENT_NAME$
|
|
1603
|
+
const COMPONENT_NAME$18 = 'InputHelper';
|
|
1590
1604
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1591
1605
|
|
|
1592
1606
|
/**
|
|
@@ -1630,7 +1644,7 @@ function InputHelper$1(props) {
|
|
|
1630
1644
|
children: children
|
|
1631
1645
|
});
|
|
1632
1646
|
}
|
|
1633
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1647
|
+
InputHelper$1.displayName = COMPONENT_NAME$18;
|
|
1634
1648
|
InputHelper$1.className = CLASSNAME$18;
|
|
1635
1649
|
InputHelper$1.defaultProps = DEFAULT_PROPS$10;
|
|
1636
1650
|
|
|
@@ -1643,7 +1657,7 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1643
1657
|
/**
|
|
1644
1658
|
* Component display name.
|
|
1645
1659
|
*/
|
|
1646
|
-
const COMPONENT_NAME$
|
|
1660
|
+
const COMPONENT_NAME$17 = 'Checkbox';
|
|
1647
1661
|
|
|
1648
1662
|
/**
|
|
1649
1663
|
* Component default class name and class prefix.
|
|
@@ -1671,7 +1685,7 @@ const Checkbox$1 = props => {
|
|
|
1671
1685
|
label,
|
|
1672
1686
|
name,
|
|
1673
1687
|
ref,
|
|
1674
|
-
|
|
1688
|
+
handleChange,
|
|
1675
1689
|
theme,
|
|
1676
1690
|
value,
|
|
1677
1691
|
inputProps = {},
|
|
@@ -1680,9 +1694,9 @@ const Checkbox$1 = props => {
|
|
|
1680
1694
|
...forwardedProps
|
|
1681
1695
|
} = props;
|
|
1682
1696
|
const intermediateState = isChecked === INTERMEDIATE_STATE;
|
|
1683
|
-
const
|
|
1684
|
-
if (
|
|
1685
|
-
|
|
1697
|
+
const handleOnChange = event => {
|
|
1698
|
+
if (handleChange) {
|
|
1699
|
+
handleChange(!isChecked, value, name, event);
|
|
1686
1700
|
}
|
|
1687
1701
|
};
|
|
1688
1702
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -1705,7 +1719,7 @@ const Checkbox$1 = props => {
|
|
|
1705
1719
|
name: name,
|
|
1706
1720
|
value: value,
|
|
1707
1721
|
checked: isChecked,
|
|
1708
|
-
onChange:
|
|
1722
|
+
onChange: handleOnChange,
|
|
1709
1723
|
"aria-describedby": helper ? `${inputId}-helper` : undefined,
|
|
1710
1724
|
"aria-checked": intermediateState ? 'mixed' : Boolean(isChecked),
|
|
1711
1725
|
...(inputProps?.readOnly ? {
|
|
@@ -1794,7 +1808,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1794
1808
|
isChecked,
|
|
1795
1809
|
label,
|
|
1796
1810
|
name,
|
|
1797
|
-
onChange,
|
|
1811
|
+
handleChange: onChange,
|
|
1798
1812
|
theme,
|
|
1799
1813
|
value,
|
|
1800
1814
|
inputProps: {
|
|
@@ -1807,7 +1821,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1807
1821
|
inputId
|
|
1808
1822
|
});
|
|
1809
1823
|
});
|
|
1810
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
1824
|
+
Checkbox.displayName = COMPONENT_NAME$17;
|
|
1811
1825
|
Checkbox.className = CLASSNAME$17;
|
|
1812
1826
|
Checkbox.defaultProps = DEFAULT_PROPS$$;
|
|
1813
1827
|
|
|
@@ -1830,7 +1844,7 @@ function useStopPropagation(handler) {
|
|
|
1830
1844
|
/**
|
|
1831
1845
|
* Component display name.
|
|
1832
1846
|
*/
|
|
1833
|
-
const COMPONENT_NAME$
|
|
1847
|
+
const COMPONENT_NAME$16 = 'Chip';
|
|
1834
1848
|
|
|
1835
1849
|
/**
|
|
1836
1850
|
* Component default class name and class prefix.
|
|
@@ -1944,7 +1958,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1944
1958
|
})
|
|
1945
1959
|
);
|
|
1946
1960
|
});
|
|
1947
|
-
Chip.displayName = COMPONENT_NAME$
|
|
1961
|
+
Chip.displayName = COMPONENT_NAME$16;
|
|
1948
1962
|
Chip.className = CLASSNAME$16;
|
|
1949
1963
|
Chip.defaultProps = DEFAULT_PROPS$_;
|
|
1950
1964
|
|
|
@@ -2007,7 +2021,7 @@ const DEFAULT_PROPS$Z = {};
|
|
|
2007
2021
|
/**
|
|
2008
2022
|
* Component display name.
|
|
2009
2023
|
*/
|
|
2010
|
-
const COMPONENT_NAME$
|
|
2024
|
+
const COMPONENT_NAME$15 = 'ChipGroup';
|
|
2011
2025
|
|
|
2012
2026
|
/**
|
|
2013
2027
|
* Component default class name and class prefix.
|
|
@@ -2035,7 +2049,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2035
2049
|
children: children
|
|
2036
2050
|
});
|
|
2037
2051
|
});
|
|
2038
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2052
|
+
InternalChipGroup.displayName = COMPONENT_NAME$15;
|
|
2039
2053
|
InternalChipGroup.className = CLASSNAME$15;
|
|
2040
2054
|
InternalChipGroup.defaultProps = DEFAULT_PROPS$Z;
|
|
2041
2055
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
@@ -2235,7 +2249,7 @@ const CommentBlockVariant = {
|
|
|
2235
2249
|
/**
|
|
2236
2250
|
* Component display name.
|
|
2237
2251
|
*/
|
|
2238
|
-
const COMPONENT_NAME$
|
|
2252
|
+
const COMPONENT_NAME$14 = 'CommentBlock';
|
|
2239
2253
|
|
|
2240
2254
|
/**
|
|
2241
2255
|
* Component default class name and class prefix.
|
|
@@ -2346,7 +2360,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2346
2360
|
})]
|
|
2347
2361
|
});
|
|
2348
2362
|
});
|
|
2349
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
2363
|
+
CommentBlock.displayName = COMPONENT_NAME$14;
|
|
2350
2364
|
CommentBlock.className = CLASSNAME$13;
|
|
2351
2365
|
CommentBlock.defaultProps = DEFAULT_PROPS$Y;
|
|
2352
2366
|
|
|
@@ -2368,7 +2382,7 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
2368
2382
|
/**
|
|
2369
2383
|
* Component display name.
|
|
2370
2384
|
*/
|
|
2371
|
-
const COMPONENT_NAME$
|
|
2385
|
+
const COMPONENT_NAME$13 = 'DatePicker';
|
|
2372
2386
|
|
|
2373
2387
|
/**
|
|
2374
2388
|
* Component default class name and class prefix.
|
|
@@ -2602,7 +2616,7 @@ const {
|
|
|
2602
2616
|
/**
|
|
2603
2617
|
* Component display name.
|
|
2604
2618
|
*/
|
|
2605
|
-
const COMPONENT_NAME$
|
|
2619
|
+
const COMPONENT_NAME$12 = 'DatePickerControlled';
|
|
2606
2620
|
|
|
2607
2621
|
/**
|
|
2608
2622
|
* DatePickerControlled component.
|
|
@@ -2792,7 +2806,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2792
2806
|
})]
|
|
2793
2807
|
});
|
|
2794
2808
|
});
|
|
2795
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
2809
|
+
DatePickerControlled.displayName = COMPONENT_NAME$12;
|
|
2796
2810
|
DatePickerControlled.className = CLASSNAME$12;
|
|
2797
2811
|
|
|
2798
2812
|
/**
|
|
@@ -2835,7 +2849,7 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
2835
2849
|
onMonthChange: setSelectedMonth
|
|
2836
2850
|
});
|
|
2837
2851
|
});
|
|
2838
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
2852
|
+
DatePicker.displayName = COMPONENT_NAME$13;
|
|
2839
2853
|
DatePicker.className = CLASSNAME$12;
|
|
2840
2854
|
|
|
2841
2855
|
const useBooleanState = defaultValue => {
|
|
@@ -2849,7 +2863,7 @@ const useBooleanState = defaultValue => {
|
|
|
2849
2863
|
/**
|
|
2850
2864
|
* Component display name.
|
|
2851
2865
|
*/
|
|
2852
|
-
const COMPONENT_NAME$
|
|
2866
|
+
const COMPONENT_NAME$11 = 'DatePickerField';
|
|
2853
2867
|
|
|
2854
2868
|
/**
|
|
2855
2869
|
* DatePickerField component.
|
|
@@ -2938,7 +2952,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
2938
2952
|
}) : null]
|
|
2939
2953
|
});
|
|
2940
2954
|
});
|
|
2941
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
2955
|
+
DatePickerField.displayName = COMPONENT_NAME$11;
|
|
2942
2956
|
|
|
2943
2957
|
/**
|
|
2944
2958
|
* Optional global `window` instance (not defined when running SSR).
|
|
@@ -3439,7 +3453,7 @@ const isFooter$1 = isComponent('footer');
|
|
|
3439
3453
|
/**
|
|
3440
3454
|
* Component display name.
|
|
3441
3455
|
*/
|
|
3442
|
-
const COMPONENT_NAME$
|
|
3456
|
+
const COMPONENT_NAME$10 = 'Dialog';
|
|
3443
3457
|
|
|
3444
3458
|
/**
|
|
3445
3459
|
* Component default class name and class prefix.
|
|
@@ -3626,14 +3640,14 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3626
3640
|
})
|
|
3627
3641
|
}) : null;
|
|
3628
3642
|
});
|
|
3629
|
-
Dialog.displayName = COMPONENT_NAME$
|
|
3643
|
+
Dialog.displayName = COMPONENT_NAME$10;
|
|
3630
3644
|
Dialog.className = CLASSNAME$11;
|
|
3631
3645
|
Dialog.defaultProps = DEFAULT_PROPS$X;
|
|
3632
3646
|
|
|
3633
3647
|
/**
|
|
3634
3648
|
* Component display name.
|
|
3635
3649
|
*/
|
|
3636
|
-
const COMPONENT_NAME
|
|
3650
|
+
const COMPONENT_NAME$$ = 'Divider';
|
|
3637
3651
|
|
|
3638
3652
|
/**
|
|
3639
3653
|
* Component default class name and class prefix.
|
|
@@ -3693,14 +3707,14 @@ const Divider = forwardRef((props, ref) => {
|
|
|
3693
3707
|
...otherProps
|
|
3694
3708
|
});
|
|
3695
3709
|
});
|
|
3696
|
-
Divider.displayName = COMPONENT_NAME
|
|
3710
|
+
Divider.displayName = COMPONENT_NAME$$;
|
|
3697
3711
|
Divider.className = CLASSNAME$10;
|
|
3698
3712
|
Divider.defaultProps = DEFAULT_PROPS$W;
|
|
3699
3713
|
|
|
3700
3714
|
/**
|
|
3701
3715
|
* Component display name.
|
|
3702
3716
|
*/
|
|
3703
|
-
const COMPONENT_NAME
|
|
3717
|
+
const COMPONENT_NAME$_ = 'DragHandle';
|
|
3704
3718
|
|
|
3705
3719
|
/**
|
|
3706
3720
|
* Component default class name and class prefix.
|
|
@@ -3737,7 +3751,7 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
3737
3751
|
})
|
|
3738
3752
|
});
|
|
3739
3753
|
});
|
|
3740
|
-
DragHandle.displayName = COMPONENT_NAME
|
|
3754
|
+
DragHandle.displayName = COMPONENT_NAME$_;
|
|
3741
3755
|
DragHandle.className = CLASSNAME$$;
|
|
3742
3756
|
|
|
3743
3757
|
const INITIAL_INDEX = -1;
|
|
@@ -3907,7 +3921,7 @@ const useKeyboardListNavigation = (items, ref, onListItemSelected, onListItemNav
|
|
|
3907
3921
|
/**
|
|
3908
3922
|
* Component display name.
|
|
3909
3923
|
*/
|
|
3910
|
-
const COMPONENT_NAME$
|
|
3924
|
+
const COMPONENT_NAME$Z = 'List';
|
|
3911
3925
|
|
|
3912
3926
|
/**
|
|
3913
3927
|
* Component default class name and class prefix.
|
|
@@ -3953,7 +3967,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3953
3967
|
children: children
|
|
3954
3968
|
});
|
|
3955
3969
|
});
|
|
3956
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
3970
|
+
InternalList.displayName = COMPONENT_NAME$Z;
|
|
3957
3971
|
InternalList.className = CLASSNAME$_;
|
|
3958
3972
|
InternalList.defaultProps = DEFAULT_PROPS$V;
|
|
3959
3973
|
const List = Object.assign(InternalList, {
|
|
@@ -6386,7 +6400,7 @@ function usePopoverStyle({
|
|
|
6386
6400
|
/**
|
|
6387
6401
|
* Component display name.
|
|
6388
6402
|
*/
|
|
6389
|
-
const COMPONENT_NAME$
|
|
6403
|
+
const COMPONENT_NAME$Y = 'Popover';
|
|
6390
6404
|
|
|
6391
6405
|
/**
|
|
6392
6406
|
* Component default class name and class prefix.
|
|
@@ -6506,7 +6520,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6506
6520
|
})
|
|
6507
6521
|
}) : null;
|
|
6508
6522
|
});
|
|
6509
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
6523
|
+
_InnerPopover.displayName = COMPONENT_NAME$Y;
|
|
6510
6524
|
|
|
6511
6525
|
/**
|
|
6512
6526
|
* Popover component.
|
|
@@ -6518,7 +6532,7 @@ _InnerPopover.displayName = COMPONENT_NAME$Z;
|
|
|
6518
6532
|
const Popover = skipRender(
|
|
6519
6533
|
// Skip render in SSR
|
|
6520
6534
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
6521
|
-
Popover.displayName = COMPONENT_NAME$
|
|
6535
|
+
Popover.displayName = COMPONENT_NAME$Y;
|
|
6522
6536
|
Popover.className = CLASSNAME$Z;
|
|
6523
6537
|
Popover.defaultProps = DEFAULT_PROPS$U;
|
|
6524
6538
|
|
|
@@ -6566,7 +6580,7 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
|
|
|
6566
6580
|
/**
|
|
6567
6581
|
* Component display name.
|
|
6568
6582
|
*/
|
|
6569
|
-
const COMPONENT_NAME$
|
|
6583
|
+
const COMPONENT_NAME$X = 'Dropdown';
|
|
6570
6584
|
|
|
6571
6585
|
/**
|
|
6572
6586
|
* Component default class name and class prefix.
|
|
@@ -6658,14 +6672,14 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6658
6672
|
})
|
|
6659
6673
|
}) : null;
|
|
6660
6674
|
});
|
|
6661
|
-
Dropdown.displayName = COMPONENT_NAME$
|
|
6675
|
+
Dropdown.displayName = COMPONENT_NAME$X;
|
|
6662
6676
|
Dropdown.className = CLASSNAME$Y;
|
|
6663
6677
|
Dropdown.defaultProps = DEFAULT_PROPS$T;
|
|
6664
6678
|
|
|
6665
6679
|
/**
|
|
6666
6680
|
* Component display name.
|
|
6667
6681
|
*/
|
|
6668
|
-
const COMPONENT_NAME$
|
|
6682
|
+
const COMPONENT_NAME$W = 'ExpansionPanel';
|
|
6669
6683
|
|
|
6670
6684
|
/**
|
|
6671
6685
|
* Component default class name and class prefix.
|
|
@@ -6812,11 +6826,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6812
6826
|
})]
|
|
6813
6827
|
});
|
|
6814
6828
|
});
|
|
6815
|
-
ExpansionPanel.displayName = COMPONENT_NAME$
|
|
6829
|
+
ExpansionPanel.displayName = COMPONENT_NAME$W;
|
|
6816
6830
|
ExpansionPanel.className = CLASSNAME$X;
|
|
6817
6831
|
ExpansionPanel.defaultProps = DEFAULT_PROPS$S;
|
|
6818
6832
|
|
|
6819
|
-
const COMPONENT_NAME$
|
|
6833
|
+
const COMPONENT_NAME$V = 'Flag';
|
|
6820
6834
|
const CLASSNAME$W = 'lumx-flag';
|
|
6821
6835
|
const DEFAULT_PROPS$R = {};
|
|
6822
6836
|
const {
|
|
@@ -6880,7 +6894,7 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6880
6894
|
Text
|
|
6881
6895
|
});
|
|
6882
6896
|
});
|
|
6883
|
-
Flag.displayName = COMPONENT_NAME$
|
|
6897
|
+
Flag.displayName = COMPONENT_NAME$V;
|
|
6884
6898
|
Flag.className = CLASSNAME$W;
|
|
6885
6899
|
Flag.defaultProps = DEFAULT_PROPS$R;
|
|
6886
6900
|
|
|
@@ -6891,7 +6905,7 @@ Flag.defaultProps = DEFAULT_PROPS$R;
|
|
|
6891
6905
|
/**
|
|
6892
6906
|
* Component display name.
|
|
6893
6907
|
*/
|
|
6894
|
-
const COMPONENT_NAME$
|
|
6908
|
+
const COMPONENT_NAME$U = 'FlexBox';
|
|
6895
6909
|
|
|
6896
6910
|
/**
|
|
6897
6911
|
* Component default class name and class prefix.
|
|
@@ -6955,13 +6969,13 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
6955
6969
|
children: children
|
|
6956
6970
|
});
|
|
6957
6971
|
});
|
|
6958
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
6972
|
+
FlexBox.displayName = COMPONENT_NAME$U;
|
|
6959
6973
|
FlexBox.className = CLASSNAME$V;
|
|
6960
6974
|
|
|
6961
6975
|
/**
|
|
6962
6976
|
* Component display name.
|
|
6963
6977
|
*/
|
|
6964
|
-
const COMPONENT_NAME$
|
|
6978
|
+
const COMPONENT_NAME$T = 'GenericBlock';
|
|
6965
6979
|
|
|
6966
6980
|
/**
|
|
6967
6981
|
* Component default class name and class prefix.
|
|
@@ -7058,7 +7072,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7058
7072
|
})]
|
|
7059
7073
|
});
|
|
7060
7074
|
});
|
|
7061
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
7075
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$T;
|
|
7062
7076
|
BaseGenericBlock.className = CLASSNAME$U;
|
|
7063
7077
|
BaseGenericBlock.defaultProps = DEFAULT_PROPS$Q;
|
|
7064
7078
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
@@ -7098,7 +7112,7 @@ const defaultContext = {
|
|
|
7098
7112
|
/**
|
|
7099
7113
|
* Component display name.
|
|
7100
7114
|
*/
|
|
7101
|
-
const COMPONENT_NAME$
|
|
7115
|
+
const COMPONENT_NAME$S = 'Heading';
|
|
7102
7116
|
|
|
7103
7117
|
/**
|
|
7104
7118
|
* Component default class name and class prefix.
|
|
@@ -7196,7 +7210,7 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
7196
7210
|
/**
|
|
7197
7211
|
* Component display name.
|
|
7198
7212
|
*/
|
|
7199
|
-
const COMPONENT_NAME$
|
|
7213
|
+
const COMPONENT_NAME$R = 'Text';
|
|
7200
7214
|
|
|
7201
7215
|
/**
|
|
7202
7216
|
* Component default class name and class prefix.
|
|
@@ -7294,7 +7308,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
7294
7308
|
children: wrapChildrenIconWithSpaces(children)
|
|
7295
7309
|
});
|
|
7296
7310
|
});
|
|
7297
|
-
Text.displayName = COMPONENT_NAME$
|
|
7311
|
+
Text.displayName = COMPONENT_NAME$R;
|
|
7298
7312
|
Text.className = CLASSNAME$S;
|
|
7299
7313
|
Text.defaultProps = DEFAULT_PROPS$O;
|
|
7300
7314
|
|
|
@@ -7331,7 +7345,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
7331
7345
|
children: children
|
|
7332
7346
|
});
|
|
7333
7347
|
});
|
|
7334
|
-
Heading.displayName = COMPONENT_NAME$
|
|
7348
|
+
Heading.displayName = COMPONENT_NAME$S;
|
|
7335
7349
|
Heading.className = CLASSNAME$T;
|
|
7336
7350
|
Heading.defaultProps = DEFAULT_PROPS$P;
|
|
7337
7351
|
|
|
@@ -7371,7 +7385,7 @@ const HeadingLevelProvider = ({
|
|
|
7371
7385
|
/**
|
|
7372
7386
|
* Component display name.
|
|
7373
7387
|
*/
|
|
7374
|
-
const COMPONENT_NAME$
|
|
7388
|
+
const COMPONENT_NAME$Q = 'Grid';
|
|
7375
7389
|
|
|
7376
7390
|
/**
|
|
7377
7391
|
* Component default class name and class prefix.
|
|
@@ -7420,14 +7434,14 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7420
7434
|
children: children
|
|
7421
7435
|
});
|
|
7422
7436
|
});
|
|
7423
|
-
Grid.displayName = COMPONENT_NAME$
|
|
7437
|
+
Grid.displayName = COMPONENT_NAME$Q;
|
|
7424
7438
|
Grid.className = CLASSNAME$R;
|
|
7425
7439
|
Grid.defaultProps = DEFAULT_PROPS$N;
|
|
7426
7440
|
|
|
7427
7441
|
/**
|
|
7428
7442
|
* Component display name.
|
|
7429
7443
|
*/
|
|
7430
|
-
const COMPONENT_NAME$
|
|
7444
|
+
const COMPONENT_NAME$P = 'GridItem';
|
|
7431
7445
|
|
|
7432
7446
|
/**
|
|
7433
7447
|
* Component default class name and class prefix.
|
|
@@ -7464,13 +7478,13 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
7464
7478
|
children: children
|
|
7465
7479
|
});
|
|
7466
7480
|
});
|
|
7467
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
7481
|
+
GridItem.displayName = COMPONENT_NAME$P;
|
|
7468
7482
|
GridItem.className = CLASSNAME$Q;
|
|
7469
7483
|
|
|
7470
7484
|
/**
|
|
7471
7485
|
* Component display name.
|
|
7472
7486
|
*/
|
|
7473
|
-
const COMPONENT_NAME$
|
|
7487
|
+
const COMPONENT_NAME$O = 'GridColumn';
|
|
7474
7488
|
|
|
7475
7489
|
/**
|
|
7476
7490
|
* Component default class name and class prefix.
|
|
@@ -7488,10 +7502,9 @@ const DEFAULT_PROPS$M = {};
|
|
|
7488
7502
|
* with a number of column that reduce when there is not enough space for each item.
|
|
7489
7503
|
*
|
|
7490
7504
|
* @param props Component props.
|
|
7491
|
-
* @
|
|
7492
|
-
* @return React element.
|
|
7505
|
+
* @return JSX element.
|
|
7493
7506
|
*/
|
|
7494
|
-
const GridColumn =
|
|
7507
|
+
const GridColumn$1 = props => {
|
|
7495
7508
|
const {
|
|
7496
7509
|
as: Component = 'div',
|
|
7497
7510
|
gap,
|
|
@@ -7500,12 +7513,13 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7500
7513
|
children,
|
|
7501
7514
|
className,
|
|
7502
7515
|
style = {},
|
|
7516
|
+
ref,
|
|
7503
7517
|
...forwardedProps
|
|
7504
7518
|
} = props;
|
|
7505
7519
|
return /*#__PURE__*/jsx(Component, {
|
|
7506
7520
|
...forwardedProps,
|
|
7507
7521
|
ref: ref,
|
|
7508
|
-
className:
|
|
7522
|
+
className: classnames(className, CLASSNAME$P),
|
|
7509
7523
|
style: {
|
|
7510
7524
|
...style,
|
|
7511
7525
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -7514,10 +7528,40 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7514
7528
|
},
|
|
7515
7529
|
children: children
|
|
7516
7530
|
});
|
|
7531
|
+
};
|
|
7532
|
+
GridColumn$1.displayName = COMPONENT_NAME$O;
|
|
7533
|
+
GridColumn$1.className = CLASSNAME$P;
|
|
7534
|
+
GridColumn$1.defaultProps = DEFAULT_PROPS$M;
|
|
7535
|
+
|
|
7536
|
+
/**
|
|
7537
|
+
* Defines the props of the component.
|
|
7538
|
+
*/
|
|
7539
|
+
|
|
7540
|
+
// Re-export types for backward compatibility
|
|
7541
|
+
|
|
7542
|
+
/**
|
|
7543
|
+
* Component default props.
|
|
7544
|
+
*/
|
|
7545
|
+
const DEFAULT_PROPS$L = {};
|
|
7546
|
+
|
|
7547
|
+
/**
|
|
7548
|
+
* The GridColumn is a layout component that can display children in a grid
|
|
7549
|
+
* with custom display properties. It also comes with a responsive design,
|
|
7550
|
+
* with a number of column that reduce when there is not enough space for each item.
|
|
7551
|
+
*
|
|
7552
|
+
* @param props Component props.
|
|
7553
|
+
* @param ref Component ref.
|
|
7554
|
+
* @return React element.
|
|
7555
|
+
*/
|
|
7556
|
+
const GridColumn = forwardRef((props, ref) => {
|
|
7557
|
+
return GridColumn$1({
|
|
7558
|
+
ref,
|
|
7559
|
+
...props
|
|
7560
|
+
});
|
|
7517
7561
|
});
|
|
7518
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
7562
|
+
GridColumn.displayName = COMPONENT_NAME$O;
|
|
7519
7563
|
GridColumn.className = CLASSNAME$P;
|
|
7520
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
7564
|
+
GridColumn.defaultProps = DEFAULT_PROPS$L;
|
|
7521
7565
|
|
|
7522
7566
|
/**
|
|
7523
7567
|
* Icon component.
|
|
@@ -7621,7 +7665,7 @@ const ImageBlockCaptionPosition = {
|
|
|
7621
7665
|
/**
|
|
7622
7666
|
* Component display name.
|
|
7623
7667
|
*/
|
|
7624
|
-
const COMPONENT_NAME$
|
|
7668
|
+
const COMPONENT_NAME$N = 'ImageBlock';
|
|
7625
7669
|
|
|
7626
7670
|
/**
|
|
7627
7671
|
* Component default class name and class prefix.
|
|
@@ -7635,7 +7679,7 @@ const {
|
|
|
7635
7679
|
/**
|
|
7636
7680
|
* Component default props.
|
|
7637
7681
|
*/
|
|
7638
|
-
const DEFAULT_PROPS$
|
|
7682
|
+
const DEFAULT_PROPS$K = {
|
|
7639
7683
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
7640
7684
|
align: Alignment.left
|
|
7641
7685
|
};
|
|
@@ -7651,9 +7695,9 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7651
7695
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
7652
7696
|
const {
|
|
7653
7697
|
actions,
|
|
7654
|
-
align = DEFAULT_PROPS$
|
|
7698
|
+
align = DEFAULT_PROPS$K.align,
|
|
7655
7699
|
alt,
|
|
7656
|
-
captionPosition = DEFAULT_PROPS$
|
|
7700
|
+
captionPosition = DEFAULT_PROPS$K.captionPosition,
|
|
7657
7701
|
captionStyle,
|
|
7658
7702
|
className,
|
|
7659
7703
|
description,
|
|
@@ -7705,14 +7749,14 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7705
7749
|
})]
|
|
7706
7750
|
});
|
|
7707
7751
|
});
|
|
7708
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
7752
|
+
ImageBlock.displayName = COMPONENT_NAME$N;
|
|
7709
7753
|
ImageBlock.className = CLASSNAME$O;
|
|
7710
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
7754
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$K;
|
|
7711
7755
|
|
|
7712
7756
|
/**
|
|
7713
7757
|
* Component display name.
|
|
7714
7758
|
*/
|
|
7715
|
-
const COMPONENT_NAME$
|
|
7759
|
+
const COMPONENT_NAME$M = 'ImageLightbox';
|
|
7716
7760
|
|
|
7717
7761
|
/**
|
|
7718
7762
|
* Component default class name and class prefix.
|
|
@@ -8367,7 +8411,7 @@ function useImageLightbox(props) {
|
|
|
8367
8411
|
}
|
|
8368
8412
|
},
|
|
8369
8413
|
onClick(e) {
|
|
8370
|
-
open(e
|
|
8414
|
+
open(e?.target, options);
|
|
8371
8415
|
}
|
|
8372
8416
|
}));
|
|
8373
8417
|
}, []);
|
|
@@ -8436,7 +8480,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
8436
8480
|
})
|
|
8437
8481
|
});
|
|
8438
8482
|
});
|
|
8439
|
-
Inner.displayName = COMPONENT_NAME$
|
|
8483
|
+
Inner.displayName = COMPONENT_NAME$M;
|
|
8440
8484
|
Inner.className = CLASSNAME$N;
|
|
8441
8485
|
|
|
8442
8486
|
/**
|
|
@@ -8453,7 +8497,7 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
8453
8497
|
/**
|
|
8454
8498
|
* Component display name.
|
|
8455
8499
|
*/
|
|
8456
|
-
const COMPONENT_NAME$
|
|
8500
|
+
const COMPONENT_NAME$L = 'InlineList';
|
|
8457
8501
|
|
|
8458
8502
|
/**
|
|
8459
8503
|
* Component default class name and class prefix.
|
|
@@ -8467,7 +8511,7 @@ const {
|
|
|
8467
8511
|
/**
|
|
8468
8512
|
* Component default props.
|
|
8469
8513
|
*/
|
|
8470
|
-
const DEFAULT_PROPS$
|
|
8514
|
+
const DEFAULT_PROPS$J = {};
|
|
8471
8515
|
|
|
8472
8516
|
/**
|
|
8473
8517
|
* InlineList component.
|
|
@@ -8518,9 +8562,9 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
8518
8562
|
})
|
|
8519
8563
|
);
|
|
8520
8564
|
});
|
|
8521
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
8565
|
+
InlineList.displayName = COMPONENT_NAME$L;
|
|
8522
8566
|
InlineList.className = CLASSNAME$M;
|
|
8523
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
8567
|
+
InlineList.defaultProps = DEFAULT_PROPS$J;
|
|
8524
8568
|
|
|
8525
8569
|
/**
|
|
8526
8570
|
* InputHelper component.
|
|
@@ -8563,7 +8607,7 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
|
|
|
8563
8607
|
/**
|
|
8564
8608
|
* Component display name.
|
|
8565
8609
|
*/
|
|
8566
|
-
const COMPONENT_NAME$
|
|
8610
|
+
const COMPONENT_NAME$K = 'Lightbox';
|
|
8567
8611
|
|
|
8568
8612
|
/**
|
|
8569
8613
|
* Component default class name and class prefix.
|
|
@@ -8695,116 +8739,68 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
8695
8739
|
})
|
|
8696
8740
|
});
|
|
8697
8741
|
});
|
|
8698
|
-
Lightbox.displayName = COMPONENT_NAME$
|
|
8742
|
+
Lightbox.displayName = COMPONENT_NAME$K;
|
|
8699
8743
|
Lightbox.className = CLASSNAME$L;
|
|
8700
8744
|
|
|
8745
|
+
/**
|
|
8746
|
+
* Defines the props of the component.
|
|
8747
|
+
*/
|
|
8748
|
+
|
|
8701
8749
|
/**
|
|
8702
8750
|
* Component display name.
|
|
8703
8751
|
*/
|
|
8704
|
-
const COMPONENT_NAME$
|
|
8752
|
+
const COMPONENT_NAME$J = 'Link';
|
|
8705
8753
|
|
|
8706
8754
|
/**
|
|
8707
8755
|
* Component default class name and class prefix.
|
|
8708
8756
|
*/
|
|
8709
8757
|
const CLASSNAME$K = 'lumx-link';
|
|
8710
8758
|
const {
|
|
8711
|
-
block: block$E
|
|
8712
|
-
element: element$u
|
|
8759
|
+
block: block$E
|
|
8713
8760
|
} = bem(CLASSNAME$K);
|
|
8714
8761
|
|
|
8715
8762
|
/**
|
|
8716
|
-
* Link component
|
|
8763
|
+
* Link component.
|
|
8717
8764
|
*
|
|
8718
8765
|
* @param props Component props.
|
|
8719
8766
|
* @return JSX element.
|
|
8720
8767
|
*/
|
|
8721
8768
|
const Link$1 = props => {
|
|
8722
8769
|
const {
|
|
8723
|
-
|
|
8770
|
+
children,
|
|
8724
8771
|
className,
|
|
8725
8772
|
color: propColor,
|
|
8726
8773
|
colorVariant: propColorVariant,
|
|
8727
|
-
leftIcon,
|
|
8728
|
-
rightIcon,
|
|
8729
8774
|
typography: typography$1,
|
|
8730
|
-
|
|
8775
|
+
linkAs,
|
|
8776
|
+
handleClick,
|
|
8731
8777
|
ref,
|
|
8732
|
-
isDisabled,
|
|
8733
|
-
theme,
|
|
8734
8778
|
href,
|
|
8735
|
-
target,
|
|
8736
|
-
onClick,
|
|
8737
8779
|
...forwardedProps
|
|
8738
8780
|
} = props;
|
|
8739
8781
|
const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
|
|
8740
|
-
|
|
8741
|
-
// Determine element type
|
|
8742
|
-
const ElementType = as || (href ? 'a' : 'button');
|
|
8743
|
-
|
|
8744
|
-
// Build disabled props
|
|
8745
|
-
const disabledProps = {};
|
|
8746
|
-
if (isDisabled) {
|
|
8747
|
-
if (ElementType === 'button' || !href && !as) {
|
|
8748
|
-
disabledProps.disabled = true;
|
|
8749
|
-
} else {
|
|
8750
|
-
disabledProps['aria-disabled'] = true;
|
|
8751
|
-
disabledProps.tabIndex = -1;
|
|
8752
|
-
}
|
|
8753
|
-
}
|
|
8754
|
-
|
|
8755
|
-
// Build class name
|
|
8756
|
-
const combinedClassName = classnames(className, block$E({
|
|
8757
|
-
[`color-${color}`]: Boolean(color),
|
|
8758
|
-
[`color-variant-${colorVariant}`]: Boolean(colorVariant),
|
|
8759
|
-
'has-typography': !!typography$1
|
|
8760
|
-
}), typography$1 && typography(typography$1));
|
|
8761
|
-
|
|
8762
|
-
// Build content with proper spacing for icons
|
|
8763
|
-
const content = /*#__PURE__*/jsxs(Fragment, {
|
|
8764
|
-
children: [leftIcon && /*#__PURE__*/jsxs(Fragment, {
|
|
8765
|
-
children: [" ", Icon$1({
|
|
8766
|
-
icon: leftIcon,
|
|
8767
|
-
className: element$u('left-icon')
|
|
8768
|
-
}), " "]
|
|
8769
|
-
}), label && /*#__PURE__*/jsx("span", {
|
|
8770
|
-
className: element$u('content'),
|
|
8771
|
-
children: label
|
|
8772
|
-
}), rightIcon && /*#__PURE__*/jsxs(Fragment, {
|
|
8773
|
-
children: [" ", Icon$1({
|
|
8774
|
-
icon: rightIcon,
|
|
8775
|
-
className: element$u('right-icon')
|
|
8776
|
-
}), " "]
|
|
8777
|
-
})]
|
|
8778
|
-
});
|
|
8779
|
-
|
|
8780
|
-
// Build element props
|
|
8781
|
-
const elementProps = {
|
|
8782
|
+
return RawClickable({
|
|
8782
8783
|
ref,
|
|
8783
|
-
|
|
8784
|
-
|
|
8784
|
+
as: linkAs || (href ? 'a' : 'button'),
|
|
8785
|
+
href,
|
|
8785
8786
|
...forwardedProps,
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
}
|
|
8794
|
-
return /*#__PURE__*/jsx(ElementType, {
|
|
8795
|
-
...elementProps,
|
|
8796
|
-
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))
|
|
8797
8794
|
});
|
|
8798
8795
|
};
|
|
8799
8796
|
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8797
|
+
const {
|
|
8798
|
+
element: element$u
|
|
8799
|
+
} = classNames.bem(CLASSNAME$K);
|
|
8803
8800
|
|
|
8804
8801
|
/**
|
|
8805
|
-
*
|
|
8802
|
+
* Defines the props of the component.
|
|
8806
8803
|
*/
|
|
8807
|
-
const DEFAULT_PROPS$J = {};
|
|
8808
8804
|
|
|
8809
8805
|
/**
|
|
8810
8806
|
* Link component.
|
|
@@ -8815,47 +8811,44 @@ const DEFAULT_PROPS$J = {};
|
|
|
8815
8811
|
*/
|
|
8816
8812
|
const Link = forwardRef((props, ref) => {
|
|
8817
8813
|
const {
|
|
8818
|
-
isAnyDisabled,
|
|
8819
8814
|
disabledStateProps,
|
|
8820
8815
|
otherProps
|
|
8821
8816
|
} = useDisableStateProps(props);
|
|
8822
8817
|
const {
|
|
8823
8818
|
children,
|
|
8824
|
-
className,
|
|
8825
|
-
color,
|
|
8826
|
-
colorVariant,
|
|
8827
8819
|
leftIcon,
|
|
8828
8820
|
rightIcon,
|
|
8829
|
-
typography,
|
|
8830
8821
|
linkAs,
|
|
8822
|
+
onClick,
|
|
8831
8823
|
...forwardedProps
|
|
8832
8824
|
} = otherProps;
|
|
8833
|
-
|
|
8834
|
-
// Wrap children with spaces if they contain icons
|
|
8835
|
-
const label = wrapChildrenIconWithSpaces(children);
|
|
8836
8825
|
return Link$1({
|
|
8837
8826
|
ref,
|
|
8838
|
-
label,
|
|
8839
|
-
className,
|
|
8840
|
-
color,
|
|
8841
|
-
colorVariant,
|
|
8842
|
-
leftIcon,
|
|
8843
|
-
rightIcon,
|
|
8844
|
-
typography,
|
|
8845
|
-
as: linkAs,
|
|
8846
|
-
...forwardedProps,
|
|
8847
8827
|
...disabledStateProps,
|
|
8848
|
-
|
|
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
|
+
}))
|
|
8849
8843
|
});
|
|
8850
8844
|
});
|
|
8851
|
-
Link.displayName = COMPONENT_NAME$
|
|
8845
|
+
Link.displayName = COMPONENT_NAME$J;
|
|
8852
8846
|
Link.className = CLASSNAME$K;
|
|
8853
|
-
Link.defaultProps = DEFAULT_PROPS$J;
|
|
8854
8847
|
|
|
8855
8848
|
/**
|
|
8856
8849
|
* Component display name.
|
|
8857
8850
|
*/
|
|
8858
|
-
const COMPONENT_NAME$
|
|
8851
|
+
const COMPONENT_NAME$I = 'LinkPreview';
|
|
8859
8852
|
|
|
8860
8853
|
/**
|
|
8861
8854
|
* Component default class name and class prefix.
|
|
@@ -8959,7 +8952,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8959
8952
|
})
|
|
8960
8953
|
});
|
|
8961
8954
|
});
|
|
8962
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
8955
|
+
LinkPreview.displayName = COMPONENT_NAME$I;
|
|
8963
8956
|
LinkPreview.className = CLASSNAME$J;
|
|
8964
8957
|
LinkPreview.defaultProps = DEFAULT_PROPS$I;
|
|
8965
8958
|
|
|
@@ -8980,7 +8973,7 @@ const renderLink = ({
|
|
|
8980
8973
|
/**
|
|
8981
8974
|
* Component display name.
|
|
8982
8975
|
*/
|
|
8983
|
-
const COMPONENT_NAME$
|
|
8976
|
+
const COMPONENT_NAME$H = 'ListItem';
|
|
8984
8977
|
|
|
8985
8978
|
/**
|
|
8986
8979
|
* Component default class name and class prefix.
|
|
@@ -9088,14 +9081,14 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
9088
9081
|
})
|
|
9089
9082
|
});
|
|
9090
9083
|
});
|
|
9091
|
-
ListItem.displayName = COMPONENT_NAME$
|
|
9084
|
+
ListItem.displayName = COMPONENT_NAME$H;
|
|
9092
9085
|
ListItem.className = CLASSNAME$I;
|
|
9093
9086
|
ListItem.defaultProps = DEFAULT_PROPS$H;
|
|
9094
9087
|
|
|
9095
9088
|
/**
|
|
9096
9089
|
* Component display name.
|
|
9097
9090
|
*/
|
|
9098
|
-
const COMPONENT_NAME$
|
|
9091
|
+
const COMPONENT_NAME$G = 'ListDivider';
|
|
9099
9092
|
|
|
9100
9093
|
/**
|
|
9101
9094
|
* Component default class name and class prefix.
|
|
@@ -9120,13 +9113,13 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
9120
9113
|
className: classNames.join(className, CLASSNAME$H)
|
|
9121
9114
|
});
|
|
9122
9115
|
});
|
|
9123
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
9116
|
+
ListDivider.displayName = COMPONENT_NAME$G;
|
|
9124
9117
|
ListDivider.className = CLASSNAME$H;
|
|
9125
9118
|
|
|
9126
9119
|
/**
|
|
9127
9120
|
* Component display name.
|
|
9128
9121
|
*/
|
|
9129
|
-
const COMPONENT_NAME$
|
|
9122
|
+
const COMPONENT_NAME$F = 'ListSubheader';
|
|
9130
9123
|
|
|
9131
9124
|
/**
|
|
9132
9125
|
* Component default class name and class prefix.
|
|
@@ -9153,13 +9146,13 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
9153
9146
|
children: children
|
|
9154
9147
|
});
|
|
9155
9148
|
});
|
|
9156
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
9149
|
+
ListSubheader.displayName = COMPONENT_NAME$F;
|
|
9157
9150
|
ListSubheader.className = CLASSNAME$G;
|
|
9158
9151
|
|
|
9159
9152
|
/**
|
|
9160
9153
|
* Component display name.
|
|
9161
9154
|
*/
|
|
9162
|
-
const COMPONENT_NAME$
|
|
9155
|
+
const COMPONENT_NAME$E = 'Message';
|
|
9163
9156
|
|
|
9164
9157
|
/**
|
|
9165
9158
|
* Component default class name and class prefix.
|
|
@@ -9236,13 +9229,13 @@ const Message$1 = props => {
|
|
|
9236
9229
|
}), isCloseButtonDisplayed && IconButton$1({
|
|
9237
9230
|
className: element$r('close-button'),
|
|
9238
9231
|
icon: mdiClose,
|
|
9239
|
-
onClick,
|
|
9232
|
+
handleClick: onClick,
|
|
9240
9233
|
label: closeButtonLabel,
|
|
9241
9234
|
emphasis: Emphasis.low
|
|
9242
9235
|
})]
|
|
9243
9236
|
});
|
|
9244
9237
|
};
|
|
9245
|
-
Message$1.displayName = COMPONENT_NAME$
|
|
9238
|
+
Message$1.displayName = COMPONENT_NAME$E;
|
|
9246
9239
|
Message$1.className = CLASSNAME$F;
|
|
9247
9240
|
|
|
9248
9241
|
/**
|
|
@@ -9258,13 +9251,13 @@ const Message = forwardRef((props, ref) => {
|
|
|
9258
9251
|
ref
|
|
9259
9252
|
});
|
|
9260
9253
|
});
|
|
9261
|
-
Message.displayName = COMPONENT_NAME$
|
|
9254
|
+
Message.displayName = COMPONENT_NAME$E;
|
|
9262
9255
|
Message.className = CLASSNAME$F;
|
|
9263
9256
|
|
|
9264
9257
|
/**
|
|
9265
9258
|
* Component display name.
|
|
9266
9259
|
*/
|
|
9267
|
-
const COMPONENT_NAME$
|
|
9260
|
+
const COMPONENT_NAME$D = 'Mosaic';
|
|
9268
9261
|
|
|
9269
9262
|
/**
|
|
9270
9263
|
* Component default class name and class prefix.
|
|
@@ -9343,24 +9336,10 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
9343
9336
|
})
|
|
9344
9337
|
});
|
|
9345
9338
|
});
|
|
9346
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
9339
|
+
Mosaic.displayName = COMPONENT_NAME$D;
|
|
9347
9340
|
Mosaic.className = CLASSNAME$E;
|
|
9348
9341
|
Mosaic.defaultProps = DEFAULT_PROPS$G;
|
|
9349
9342
|
|
|
9350
|
-
/** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
|
|
9351
|
-
const forwardRefPolymorphic = React__default.forwardRef;
|
|
9352
|
-
|
|
9353
|
-
/**
|
|
9354
|
-
* Render clickable element (link, button or custom element)
|
|
9355
|
-
* (also does some basic disabled state handling)
|
|
9356
|
-
*/
|
|
9357
|
-
const RawClickable = forwardRefPolymorphic((props, ref) => {
|
|
9358
|
-
return RawClickable$1({
|
|
9359
|
-
ref,
|
|
9360
|
-
...props
|
|
9361
|
-
});
|
|
9362
|
-
});
|
|
9363
|
-
|
|
9364
9343
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
9365
9344
|
orientation: Orientation$1.vertical
|
|
9366
9345
|
});
|
|
@@ -9378,7 +9357,7 @@ const ITEM_CLASSNAME = 'lumx-navigation-item';
|
|
|
9378
9357
|
/**
|
|
9379
9358
|
* Component display name.
|
|
9380
9359
|
*/
|
|
9381
|
-
const COMPONENT_NAME$
|
|
9360
|
+
const COMPONENT_NAME$C = 'NavigationSection';
|
|
9382
9361
|
|
|
9383
9362
|
/**
|
|
9384
9363
|
* Component default class name and class prefix.
|
|
@@ -9413,31 +9392,34 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9413
9392
|
[`theme-${theme}`]: Boolean(theme)
|
|
9414
9393
|
})),
|
|
9415
9394
|
ref: ref,
|
|
9416
|
-
children: [
|
|
9417
|
-
as:
|
|
9395
|
+
children: [RawClickable({
|
|
9396
|
+
as: 'button',
|
|
9418
9397
|
...forwardedProps,
|
|
9419
|
-
|
|
9420
|
-
|
|
9398
|
+
'aria-controls': sectionId,
|
|
9399
|
+
'aria-expanded': isOpen,
|
|
9421
9400
|
className: itemElement('link'),
|
|
9422
9401
|
ref: buttonRef,
|
|
9423
|
-
|
|
9402
|
+
handleClick: event => {
|
|
9424
9403
|
setIsOpen(!isOpen);
|
|
9425
9404
|
event.stopPropagation();
|
|
9426
9405
|
},
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9406
|
+
handleKeyPress: forwardedProps.onKeyPress,
|
|
9407
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
9408
|
+
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
9409
|
+
className: itemElement('icon'),
|
|
9410
|
+
icon: icon,
|
|
9411
|
+
size: Size$1.xs
|
|
9412
|
+
}) : null, /*#__PURE__*/jsx(Text, {
|
|
9413
|
+
as: "span",
|
|
9414
|
+
truncate: true,
|
|
9415
|
+
className: itemElement('label'),
|
|
9416
|
+
ref: ref,
|
|
9417
|
+
children: label
|
|
9418
|
+
}), /*#__PURE__*/jsx(Icon, {
|
|
9419
|
+
className: classNames.join(itemElement('icon'), sectionElement('chevron')),
|
|
9420
|
+
icon: isOpen ? mdiChevronUp : mdiChevronDown
|
|
9421
|
+
})]
|
|
9422
|
+
})
|
|
9441
9423
|
}), isOpen && (isDropdown ? /*#__PURE__*/jsx(Popover, {
|
|
9442
9424
|
anchorRef: buttonRef,
|
|
9443
9425
|
isOpen: isOpen,
|
|
@@ -9470,9 +9452,12 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9470
9452
|
}))]
|
|
9471
9453
|
});
|
|
9472
9454
|
});
|
|
9473
|
-
NavigationSection.displayName = COMPONENT_NAME$
|
|
9455
|
+
NavigationSection.displayName = COMPONENT_NAME$C;
|
|
9474
9456
|
NavigationSection.className = CLASSNAME$D;
|
|
9475
9457
|
|
|
9458
|
+
/** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
|
|
9459
|
+
const forwardRefPolymorphic = React__default.forwardRef;
|
|
9460
|
+
|
|
9476
9461
|
const {
|
|
9477
9462
|
block: block$z,
|
|
9478
9463
|
element: element$p
|
|
@@ -9489,6 +9474,8 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9489
9474
|
label,
|
|
9490
9475
|
isCurrentPage,
|
|
9491
9476
|
as: Element = 'a',
|
|
9477
|
+
onClick,
|
|
9478
|
+
onKeyPress,
|
|
9492
9479
|
...forwardedProps
|
|
9493
9480
|
} = props;
|
|
9494
9481
|
const theme = useTheme();
|
|
@@ -9503,26 +9490,30 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9503
9490
|
children: /*#__PURE__*/jsx(Tooltip, {
|
|
9504
9491
|
label: tooltipLabel,
|
|
9505
9492
|
placement: Placement.TOP,
|
|
9506
|
-
children:
|
|
9493
|
+
children: RawClickable({
|
|
9507
9494
|
as: Element,
|
|
9508
9495
|
className: element$p('link', {
|
|
9509
9496
|
'is-selected': isCurrentPage
|
|
9510
9497
|
}),
|
|
9511
|
-
ref
|
|
9512
|
-
|
|
9498
|
+
ref,
|
|
9499
|
+
'aria-current': isCurrentPage ? 'page' : undefined,
|
|
9513
9500
|
...forwardedProps,
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9501
|
+
handleClick: onClick,
|
|
9502
|
+
handleKeyPress: onKeyPress,
|
|
9503
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
9504
|
+
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
9505
|
+
className: element$p('icon'),
|
|
9506
|
+
icon: icon,
|
|
9507
|
+
size: Size$1.xs,
|
|
9508
|
+
theme: theme
|
|
9509
|
+
}) : null, /*#__PURE__*/jsx(Text, {
|
|
9510
|
+
as: "span",
|
|
9511
|
+
truncate: true,
|
|
9512
|
+
className: element$p('label'),
|
|
9513
|
+
ref: labelRef,
|
|
9514
|
+
children: label
|
|
9515
|
+
})]
|
|
9516
|
+
})
|
|
9526
9517
|
})
|
|
9527
9518
|
})
|
|
9528
9519
|
});
|
|
@@ -9534,7 +9525,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9534
9525
|
/**
|
|
9535
9526
|
* Component display name.
|
|
9536
9527
|
*/
|
|
9537
|
-
const COMPONENT_NAME$
|
|
9528
|
+
const COMPONENT_NAME$B = 'Navigation';
|
|
9538
9529
|
|
|
9539
9530
|
/**
|
|
9540
9531
|
* Component default class name and class prefix.
|
|
@@ -9581,7 +9572,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
9581
9572
|
})
|
|
9582
9573
|
});
|
|
9583
9574
|
});
|
|
9584
|
-
Navigation.displayName = COMPONENT_NAME$
|
|
9575
|
+
Navigation.displayName = COMPONENT_NAME$B;
|
|
9585
9576
|
Navigation.className = CLASSNAME$C;
|
|
9586
9577
|
Navigation.defaultProps = DEFAULT_PROPS$F;
|
|
9587
9578
|
|
|
@@ -9614,7 +9605,7 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
9614
9605
|
/**
|
|
9615
9606
|
* Component display name.
|
|
9616
9607
|
*/
|
|
9617
|
-
const COMPONENT_NAME$
|
|
9608
|
+
const COMPONENT_NAME$A = 'Notification';
|
|
9618
9609
|
|
|
9619
9610
|
/**
|
|
9620
9611
|
* Component default class name and class prefix.
|
|
@@ -9672,7 +9663,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9672
9663
|
if (isFunction(onActionClick)) {
|
|
9673
9664
|
onActionClick();
|
|
9674
9665
|
}
|
|
9675
|
-
evt
|
|
9666
|
+
evt?.stopPropagation();
|
|
9676
9667
|
};
|
|
9677
9668
|
if (!type || !isVisible) {
|
|
9678
9669
|
return null;
|
|
@@ -9716,14 +9707,14 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9716
9707
|
})
|
|
9717
9708
|
});
|
|
9718
9709
|
});
|
|
9719
|
-
Notification.displayName = COMPONENT_NAME$
|
|
9710
|
+
Notification.displayName = COMPONENT_NAME$A;
|
|
9720
9711
|
Notification.className = CLASSNAME$B;
|
|
9721
9712
|
Notification.defaultProps = DEFAULT_PROPS$E;
|
|
9722
9713
|
|
|
9723
9714
|
/**
|
|
9724
9715
|
* Component display name.
|
|
9725
9716
|
*/
|
|
9726
|
-
const COMPONENT_NAME$
|
|
9717
|
+
const COMPONENT_NAME$z = 'PopoverDialog';
|
|
9727
9718
|
|
|
9728
9719
|
/**
|
|
9729
9720
|
* Component default class name and class prefix.
|
|
@@ -9774,14 +9765,14 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
9774
9765
|
})
|
|
9775
9766
|
});
|
|
9776
9767
|
});
|
|
9777
|
-
PopoverDialog.displayName = COMPONENT_NAME$
|
|
9768
|
+
PopoverDialog.displayName = COMPONENT_NAME$z;
|
|
9778
9769
|
PopoverDialog.className = CLASSNAME$A;
|
|
9779
9770
|
PopoverDialog.defaultProps = DEFAULT_PROPS$D;
|
|
9780
9771
|
|
|
9781
9772
|
/**
|
|
9782
9773
|
* Component display name.
|
|
9783
9774
|
*/
|
|
9784
|
-
const COMPONENT_NAME$
|
|
9775
|
+
const COMPONENT_NAME$y = 'PostBlock';
|
|
9785
9776
|
|
|
9786
9777
|
/**
|
|
9787
9778
|
* Component default class name and class prefix.
|
|
@@ -9875,14 +9866,14 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
9875
9866
|
})]
|
|
9876
9867
|
});
|
|
9877
9868
|
});
|
|
9878
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
9869
|
+
PostBlock.displayName = COMPONENT_NAME$y;
|
|
9879
9870
|
PostBlock.className = CLASSNAME$z;
|
|
9880
9871
|
PostBlock.defaultProps = DEFAULT_PROPS$C;
|
|
9881
9872
|
|
|
9882
9873
|
/**
|
|
9883
9874
|
* Component display name.
|
|
9884
9875
|
*/
|
|
9885
|
-
const COMPONENT_NAME$
|
|
9876
|
+
const COMPONENT_NAME$x = 'ProgressLinear';
|
|
9886
9877
|
|
|
9887
9878
|
/**
|
|
9888
9879
|
* Component default class name and class prefix.
|
|
@@ -9891,7 +9882,7 @@ const CLASSNAME$y = 'lumx-progress-linear';
|
|
|
9891
9882
|
const {
|
|
9892
9883
|
block: block$v,
|
|
9893
9884
|
element: element$l
|
|
9894
|
-
} =
|
|
9885
|
+
} = bem(CLASSNAME$y);
|
|
9895
9886
|
|
|
9896
9887
|
/**
|
|
9897
9888
|
* Component default props.
|
|
@@ -9902,20 +9893,19 @@ const DEFAULT_PROPS$B = {};
|
|
|
9902
9893
|
* ProgressLinear component.
|
|
9903
9894
|
*
|
|
9904
9895
|
* @param props Component props.
|
|
9905
|
-
* @
|
|
9906
|
-
* @return React element.
|
|
9896
|
+
* @return JSX element.
|
|
9907
9897
|
*/
|
|
9908
|
-
const ProgressLinear =
|
|
9909
|
-
const defaultTheme = useTheme() || Theme$1.light;
|
|
9898
|
+
const ProgressLinear$1 = props => {
|
|
9910
9899
|
const {
|
|
9911
9900
|
className,
|
|
9912
|
-
theme
|
|
9901
|
+
theme,
|
|
9902
|
+
ref,
|
|
9913
9903
|
...forwardedProps
|
|
9914
9904
|
} = props;
|
|
9915
9905
|
return /*#__PURE__*/jsxs("div", {
|
|
9916
9906
|
ref: ref,
|
|
9917
9907
|
...forwardedProps,
|
|
9918
|
-
className:
|
|
9908
|
+
className: classnames(className, block$v({
|
|
9919
9909
|
[`theme-${theme}`]: Boolean(theme)
|
|
9920
9910
|
})),
|
|
9921
9911
|
children: [/*#__PURE__*/jsx("div", {
|
|
@@ -9924,15 +9914,41 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9924
9914
|
className: element$l('line2')
|
|
9925
9915
|
})]
|
|
9926
9916
|
});
|
|
9917
|
+
};
|
|
9918
|
+
|
|
9919
|
+
/**
|
|
9920
|
+
* Defines the props of the component.
|
|
9921
|
+
*/
|
|
9922
|
+
|
|
9923
|
+
/**
|
|
9924
|
+
* ProgressLinear component.
|
|
9925
|
+
*
|
|
9926
|
+
* @param props Component props.
|
|
9927
|
+
* @param ref Component ref.
|
|
9928
|
+
* @return React element.
|
|
9929
|
+
*/
|
|
9930
|
+
const ProgressLinear = forwardRef((props, ref) => {
|
|
9931
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
9932
|
+
const {
|
|
9933
|
+
theme = defaultTheme,
|
|
9934
|
+
...otherProps
|
|
9935
|
+
} = props;
|
|
9936
|
+
return ProgressLinear$1({
|
|
9937
|
+
ref,
|
|
9938
|
+
theme,
|
|
9939
|
+
...otherProps
|
|
9940
|
+
});
|
|
9927
9941
|
});
|
|
9928
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
9942
|
+
ProgressLinear.displayName = COMPONENT_NAME$x;
|
|
9929
9943
|
ProgressLinear.className = CLASSNAME$y;
|
|
9930
9944
|
ProgressLinear.defaultProps = DEFAULT_PROPS$B;
|
|
9931
9945
|
|
|
9946
|
+
/* eslint-disable react/no-unknown-property */
|
|
9947
|
+
|
|
9932
9948
|
/**
|
|
9933
9949
|
* Component display name.
|
|
9934
9950
|
*/
|
|
9935
|
-
const COMPONENT_NAME$
|
|
9951
|
+
const COMPONENT_NAME$w = 'ProgressCircular';
|
|
9936
9952
|
|
|
9937
9953
|
/**
|
|
9938
9954
|
* Component default class name and class prefix.
|
|
@@ -9941,37 +9957,38 @@ const CLASSNAME$x = 'lumx-progress-circular';
|
|
|
9941
9957
|
const {
|
|
9942
9958
|
block: block$u,
|
|
9943
9959
|
element: element$k
|
|
9944
|
-
} =
|
|
9960
|
+
} = bem(CLASSNAME$x);
|
|
9945
9961
|
|
|
9946
9962
|
/**
|
|
9947
9963
|
* Component default props.
|
|
9948
9964
|
*/
|
|
9949
9965
|
const DEFAULT_PROPS$A = {
|
|
9950
|
-
size: Size
|
|
9966
|
+
size: Size.m,
|
|
9951
9967
|
display: 'block'
|
|
9952
9968
|
};
|
|
9953
9969
|
|
|
9954
9970
|
/**
|
|
9955
|
-
*
|
|
9971
|
+
* ProgressCircular component.
|
|
9956
9972
|
*
|
|
9957
9973
|
* @param props Component props.
|
|
9958
|
-
* @
|
|
9959
|
-
* @return React element.
|
|
9974
|
+
* @return JSX element.
|
|
9960
9975
|
*/
|
|
9961
|
-
const ProgressCircular =
|
|
9962
|
-
const defaultTheme = useTheme() || Theme$1.light;
|
|
9976
|
+
const ProgressCircular$1 = props => {
|
|
9963
9977
|
const {
|
|
9964
9978
|
className,
|
|
9965
|
-
theme
|
|
9979
|
+
theme,
|
|
9966
9980
|
size = DEFAULT_PROPS$A.size,
|
|
9967
9981
|
display = DEFAULT_PROPS$A.display,
|
|
9982
|
+
ref,
|
|
9983
|
+
circleProps,
|
|
9984
|
+
svgProps,
|
|
9968
9985
|
...forwardedProps
|
|
9969
9986
|
} = props;
|
|
9970
9987
|
const Element = display === 'block' ? 'div' : 'span';
|
|
9971
9988
|
return /*#__PURE__*/jsxs(Element, {
|
|
9972
9989
|
ref: ref,
|
|
9973
9990
|
...forwardedProps,
|
|
9974
|
-
className:
|
|
9991
|
+
className: classnames(className, block$u({
|
|
9975
9992
|
[`theme-${theme}`]: Boolean(theme),
|
|
9976
9993
|
[`size-${size}`]: Boolean(size),
|
|
9977
9994
|
[`display-${display}`]: Boolean(display)
|
|
@@ -9981,20 +9998,50 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9981
9998
|
}), /*#__PURE__*/jsx(Element, {
|
|
9982
9999
|
className: element$k('double-bounce2')
|
|
9983
10000
|
}), /*#__PURE__*/jsx("svg", {
|
|
9984
|
-
|
|
10001
|
+
...svgProps,
|
|
9985
10002
|
viewBox: "25 25 50 50",
|
|
9986
10003
|
children: /*#__PURE__*/jsx("circle", {
|
|
9987
|
-
|
|
10004
|
+
...circleProps,
|
|
9988
10005
|
cx: "50",
|
|
9989
10006
|
cy: "50",
|
|
9990
10007
|
r: "20",
|
|
9991
|
-
fill: "none"
|
|
9992
|
-
strokeWidth: "5"
|
|
10008
|
+
fill: "none"
|
|
9993
10009
|
})
|
|
9994
10010
|
})]
|
|
9995
10011
|
});
|
|
10012
|
+
};
|
|
10013
|
+
|
|
10014
|
+
/**
|
|
10015
|
+
* Defines the props of the component.
|
|
10016
|
+
*/
|
|
10017
|
+
|
|
10018
|
+
/**
|
|
10019
|
+
* ProgressCircular component.
|
|
10020
|
+
*
|
|
10021
|
+
* @param props Component props.
|
|
10022
|
+
* @param ref Component ref.
|
|
10023
|
+
* @return React element.
|
|
10024
|
+
*/
|
|
10025
|
+
const ProgressCircular = forwardRef((props, ref) => {
|
|
10026
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
10027
|
+
const {
|
|
10028
|
+
theme = defaultTheme,
|
|
10029
|
+
...otherProps
|
|
10030
|
+
} = props;
|
|
10031
|
+
return ProgressCircular$1({
|
|
10032
|
+
ref,
|
|
10033
|
+
theme,
|
|
10034
|
+
...otherProps,
|
|
10035
|
+
circleProps: {
|
|
10036
|
+
className: element$k('path'),
|
|
10037
|
+
strokeWidth: '5'
|
|
10038
|
+
},
|
|
10039
|
+
svgProps: {
|
|
10040
|
+
className: element$k('svg')
|
|
10041
|
+
}
|
|
10042
|
+
});
|
|
9996
10043
|
});
|
|
9997
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
10044
|
+
ProgressCircular.displayName = COMPONENT_NAME$w;
|
|
9998
10045
|
ProgressCircular.className = CLASSNAME$x;
|
|
9999
10046
|
ProgressCircular.defaultProps = DEFAULT_PROPS$A;
|
|
10000
10047
|
|
|
@@ -10010,7 +10057,7 @@ const ProgressVariant = {
|
|
|
10010
10057
|
/**
|
|
10011
10058
|
* Component display name.
|
|
10012
10059
|
*/
|
|
10013
|
-
const COMPONENT_NAME$
|
|
10060
|
+
const COMPONENT_NAME$v = 'Progress';
|
|
10014
10061
|
|
|
10015
10062
|
/**
|
|
10016
10063
|
* Component default class name and class prefix.
|
|
@@ -10057,7 +10104,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
10057
10104
|
})]
|
|
10058
10105
|
});
|
|
10059
10106
|
});
|
|
10060
|
-
Progress.displayName = COMPONENT_NAME$
|
|
10107
|
+
Progress.displayName = COMPONENT_NAME$v;
|
|
10061
10108
|
Progress.className = CLASSNAME$w;
|
|
10062
10109
|
Progress.defaultProps = DEFAULT_PROPS$z;
|
|
10063
10110
|
|
|
@@ -10316,7 +10363,7 @@ const useRovingTabIndex = ({
|
|
|
10316
10363
|
/**
|
|
10317
10364
|
* Component display name.
|
|
10318
10365
|
*/
|
|
10319
|
-
const COMPONENT_NAME$
|
|
10366
|
+
const COMPONENT_NAME$u = 'ProgressTracker';
|
|
10320
10367
|
|
|
10321
10368
|
/**
|
|
10322
10369
|
* Component default class name and class prefix.
|
|
@@ -10384,14 +10431,14 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
10384
10431
|
})]
|
|
10385
10432
|
});
|
|
10386
10433
|
});
|
|
10387
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
10434
|
+
ProgressTracker.displayName = COMPONENT_NAME$u;
|
|
10388
10435
|
ProgressTracker.className = CLASSNAME$v;
|
|
10389
10436
|
ProgressTracker.defaultProps = DEFAULT_PROPS$x;
|
|
10390
10437
|
|
|
10391
10438
|
/**
|
|
10392
10439
|
* Component display name.
|
|
10393
10440
|
*/
|
|
10394
|
-
const COMPONENT_NAME$
|
|
10441
|
+
const COMPONENT_NAME$t = 'ProgressTrackerStep';
|
|
10395
10442
|
|
|
10396
10443
|
/**
|
|
10397
10444
|
* Component default class name and class prefix.
|
|
@@ -10498,14 +10545,14 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
10498
10545
|
})]
|
|
10499
10546
|
});
|
|
10500
10547
|
});
|
|
10501
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
10548
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$t;
|
|
10502
10549
|
ProgressTrackerStep.className = CLASSNAME$u;
|
|
10503
10550
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$w;
|
|
10504
10551
|
|
|
10505
10552
|
/**
|
|
10506
10553
|
* Component display name.
|
|
10507
10554
|
*/
|
|
10508
|
-
const COMPONENT_NAME$
|
|
10555
|
+
const COMPONENT_NAME$s = 'ProgressTrackerStepPanel';
|
|
10509
10556
|
|
|
10510
10557
|
/**
|
|
10511
10558
|
* Component default class name and class prefix.
|
|
@@ -10552,14 +10599,14 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
10552
10599
|
children: (!state?.isLazy || isActive) && children
|
|
10553
10600
|
});
|
|
10554
10601
|
});
|
|
10555
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
10602
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$s;
|
|
10556
10603
|
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
10557
10604
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$v;
|
|
10558
10605
|
|
|
10559
10606
|
/**
|
|
10560
10607
|
* Component display name.
|
|
10561
10608
|
*/
|
|
10562
|
-
const COMPONENT_NAME$
|
|
10609
|
+
const COMPONENT_NAME$r = 'RadioButton';
|
|
10563
10610
|
|
|
10564
10611
|
/**
|
|
10565
10612
|
* Component default class name and class prefix.
|
|
@@ -10587,7 +10634,7 @@ const RadioButton$1 = props => {
|
|
|
10587
10634
|
label,
|
|
10588
10635
|
name,
|
|
10589
10636
|
ref,
|
|
10590
|
-
|
|
10637
|
+
handleChange,
|
|
10591
10638
|
theme,
|
|
10592
10639
|
value,
|
|
10593
10640
|
inputProps = {},
|
|
@@ -10595,9 +10642,9 @@ const RadioButton$1 = props => {
|
|
|
10595
10642
|
inputId,
|
|
10596
10643
|
...forwardedProps
|
|
10597
10644
|
} = props;
|
|
10598
|
-
const
|
|
10599
|
-
if (
|
|
10600
|
-
|
|
10645
|
+
const handleOnChange = event => {
|
|
10646
|
+
if (handleChange) {
|
|
10647
|
+
handleChange(value, name, event);
|
|
10601
10648
|
}
|
|
10602
10649
|
};
|
|
10603
10650
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -10619,7 +10666,7 @@ const RadioButton$1 = props => {
|
|
|
10619
10666
|
name: name,
|
|
10620
10667
|
value: value,
|
|
10621
10668
|
checked: isChecked,
|
|
10622
|
-
onChange:
|
|
10669
|
+
onChange: handleOnChange,
|
|
10623
10670
|
"aria-describedby": helper ? `${inputId}-helper` : undefined,
|
|
10624
10671
|
...(inputProps?.readOnly ? {
|
|
10625
10672
|
readOnly: inputProps.readOnly
|
|
@@ -10698,7 +10745,7 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10698
10745
|
isChecked,
|
|
10699
10746
|
label,
|
|
10700
10747
|
name,
|
|
10701
|
-
onChange,
|
|
10748
|
+
handleChange: onChange,
|
|
10702
10749
|
theme,
|
|
10703
10750
|
value,
|
|
10704
10751
|
inputProps: {
|
|
@@ -10711,14 +10758,14 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10711
10758
|
inputId
|
|
10712
10759
|
});
|
|
10713
10760
|
});
|
|
10714
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
10761
|
+
RadioButton.displayName = COMPONENT_NAME$r;
|
|
10715
10762
|
RadioButton.className = CLASSNAME$s;
|
|
10716
10763
|
RadioButton.defaultProps = DEFAULT_PROPS$u;
|
|
10717
10764
|
|
|
10718
10765
|
/**
|
|
10719
10766
|
* Component display name.
|
|
10720
10767
|
*/
|
|
10721
|
-
const COMPONENT_NAME$
|
|
10768
|
+
const COMPONENT_NAME$q = 'RadioGroup';
|
|
10722
10769
|
|
|
10723
10770
|
/**
|
|
10724
10771
|
* Component default class name and class prefix.
|
|
@@ -10750,7 +10797,7 @@ const RadioGroup$1 = props => {
|
|
|
10750
10797
|
children: children
|
|
10751
10798
|
});
|
|
10752
10799
|
};
|
|
10753
|
-
RadioGroup$1.displayName = COMPONENT_NAME$
|
|
10800
|
+
RadioGroup$1.displayName = COMPONENT_NAME$q;
|
|
10754
10801
|
RadioGroup$1.className = CLASSNAME$r;
|
|
10755
10802
|
RadioGroup$1.defaultProps = DEFAULT_PROPS$t;
|
|
10756
10803
|
|
|
@@ -10778,7 +10825,7 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
10778
10825
|
...forwardedProps
|
|
10779
10826
|
});
|
|
10780
10827
|
});
|
|
10781
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
10828
|
+
RadioGroup.displayName = COMPONENT_NAME$q;
|
|
10782
10829
|
RadioGroup.className = CLASSNAME$r;
|
|
10783
10830
|
|
|
10784
10831
|
/**
|
|
@@ -10926,7 +10973,7 @@ const SelectVariant = {
|
|
|
10926
10973
|
};
|
|
10927
10974
|
|
|
10928
10975
|
/** The display name of the component. */
|
|
10929
|
-
const COMPONENT_NAME$
|
|
10976
|
+
const COMPONENT_NAME$p = 'Select';
|
|
10930
10977
|
|
|
10931
10978
|
/** The default class name and classes prefix for this component. */
|
|
10932
10979
|
const CLASSNAME$p = 'lumx-select';
|
|
@@ -11069,13 +11116,13 @@ const Select = forwardRef((props, ref) => {
|
|
|
11069
11116
|
isEmpty: isEmpty$1
|
|
11070
11117
|
}, ref);
|
|
11071
11118
|
});
|
|
11072
|
-
Select.displayName = COMPONENT_NAME$
|
|
11119
|
+
Select.displayName = COMPONENT_NAME$p;
|
|
11073
11120
|
Select.className = CLASSNAME$p;
|
|
11074
11121
|
Select.defaultProps = DEFAULT_PROPS$s;
|
|
11075
11122
|
Select.className = CLASSNAME$p;
|
|
11076
11123
|
|
|
11077
11124
|
/** The display name of the component. */
|
|
11078
|
-
const COMPONENT_NAME$
|
|
11125
|
+
const COMPONENT_NAME$o = 'Select';
|
|
11079
11126
|
|
|
11080
11127
|
/** The default class name and classes prefix for this component. */
|
|
11081
11128
|
const CLASSNAME$o = 'lumx-select';
|
|
@@ -11222,14 +11269,14 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
11222
11269
|
isMultiple: true
|
|
11223
11270
|
}, ref);
|
|
11224
11271
|
});
|
|
11225
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
11272
|
+
SelectMultiple.displayName = COMPONENT_NAME$o;
|
|
11226
11273
|
SelectMultiple.className = CLASSNAME$o;
|
|
11227
11274
|
SelectMultiple.defaultProps = DEFAULT_PROPS$r;
|
|
11228
11275
|
|
|
11229
11276
|
/**
|
|
11230
11277
|
* Component display name.
|
|
11231
11278
|
*/
|
|
11232
|
-
const COMPONENT_NAME$
|
|
11279
|
+
const COMPONENT_NAME$n = 'SideNavigation';
|
|
11233
11280
|
|
|
11234
11281
|
/**
|
|
11235
11282
|
* Component default class name and class prefix.
|
|
@@ -11259,13 +11306,13 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
11259
11306
|
children: content
|
|
11260
11307
|
});
|
|
11261
11308
|
});
|
|
11262
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
11309
|
+
SideNavigation.displayName = COMPONENT_NAME$n;
|
|
11263
11310
|
SideNavigation.className = CLASSNAME$n;
|
|
11264
11311
|
|
|
11265
11312
|
/**
|
|
11266
11313
|
* Component display name.
|
|
11267
11314
|
*/
|
|
11268
|
-
const COMPONENT_NAME$
|
|
11315
|
+
const COMPONENT_NAME$m = 'SideNavigationItem';
|
|
11269
11316
|
|
|
11270
11317
|
/**
|
|
11271
11318
|
* Component default class name and class prefix.
|
|
@@ -11329,18 +11376,21 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11329
11376
|
})),
|
|
11330
11377
|
children: [shouldSplitActions ? /*#__PURE__*/jsxs("div", {
|
|
11331
11378
|
className: element$d('wrapper'),
|
|
11332
|
-
children: [
|
|
11379
|
+
children: [RawClickable({
|
|
11333
11380
|
as: linkAs || (linkProps?.href ? 'a' : 'button'),
|
|
11334
11381
|
...linkProps,
|
|
11335
11382
|
className: element$d('link'),
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11383
|
+
handleClick: onClick,
|
|
11384
|
+
handleKeyPress: linkProps?.onKeyPress,
|
|
11385
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
11386
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
11387
|
+
className: element$d('icon'),
|
|
11388
|
+
icon: icon,
|
|
11389
|
+
size: Size$1.xs
|
|
11390
|
+
}), /*#__PURE__*/jsx("span", {
|
|
11391
|
+
children: label
|
|
11392
|
+
})]
|
|
11393
|
+
})
|
|
11344
11394
|
}), /*#__PURE__*/jsx(IconButton, {
|
|
11345
11395
|
...toggleButtonProps,
|
|
11346
11396
|
className: element$d('toggle'),
|
|
@@ -11350,23 +11400,26 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11350
11400
|
onClick: onActionClick,
|
|
11351
11401
|
...ariaProps
|
|
11352
11402
|
})]
|
|
11353
|
-
}) :
|
|
11403
|
+
}) : RawClickable({
|
|
11354
11404
|
as: linkAs || (linkProps?.href ? 'a' : 'button'),
|
|
11355
11405
|
...linkProps,
|
|
11356
11406
|
className: element$d('link'),
|
|
11357
|
-
|
|
11407
|
+
handleClick: onClick,
|
|
11408
|
+
handleKeyPress: linkProps?.onKeyPress,
|
|
11358
11409
|
...ariaProps,
|
|
11359
|
-
children:
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11410
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
11411
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
11412
|
+
className: element$d('icon'),
|
|
11413
|
+
icon: icon,
|
|
11414
|
+
size: Size$1.xs
|
|
11415
|
+
}), /*#__PURE__*/jsx("span", {
|
|
11416
|
+
children: label
|
|
11417
|
+
}), hasContent && /*#__PURE__*/jsx(Icon, {
|
|
11418
|
+
className: element$d('chevron'),
|
|
11419
|
+
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
11420
|
+
size: Size$1.xs
|
|
11421
|
+
})]
|
|
11422
|
+
})
|
|
11370
11423
|
}), (closeMode === 'hide' || showChildren) && /*#__PURE__*/jsx("ul", {
|
|
11371
11424
|
className: element$d('children'),
|
|
11372
11425
|
id: contentId,
|
|
@@ -11374,14 +11427,14 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11374
11427
|
})]
|
|
11375
11428
|
});
|
|
11376
11429
|
});
|
|
11377
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
11430
|
+
SideNavigationItem.displayName = COMPONENT_NAME$m;
|
|
11378
11431
|
SideNavigationItem.className = CLASSNAME$m;
|
|
11379
11432
|
SideNavigationItem.defaultProps = DEFAULT_PROPS$q;
|
|
11380
11433
|
|
|
11381
11434
|
/**
|
|
11382
11435
|
* Component display name.
|
|
11383
11436
|
*/
|
|
11384
|
-
const COMPONENT_NAME$
|
|
11437
|
+
const COMPONENT_NAME$l = 'SkeletonCircle';
|
|
11385
11438
|
|
|
11386
11439
|
/**
|
|
11387
11440
|
* Component default class name and class prefix.
|
|
@@ -11433,7 +11486,7 @@ const SkeletonRectangleVariant = {
|
|
|
11433
11486
|
/**
|
|
11434
11487
|
* Component display name.
|
|
11435
11488
|
*/
|
|
11436
|
-
const COMPONENT_NAME$
|
|
11489
|
+
const COMPONENT_NAME$k = 'SkeletonRectangle';
|
|
11437
11490
|
|
|
11438
11491
|
/**
|
|
11439
11492
|
* Component default class name and class prefix.
|
|
@@ -11489,7 +11542,7 @@ const SkeletonRectangle$1 = props => {
|
|
|
11489
11542
|
/**
|
|
11490
11543
|
* Component display name.
|
|
11491
11544
|
*/
|
|
11492
|
-
const COMPONENT_NAME$
|
|
11545
|
+
const COMPONENT_NAME$j = 'SkeletonTypography';
|
|
11493
11546
|
|
|
11494
11547
|
/**
|
|
11495
11548
|
* Component default class name and class prefix.
|
|
@@ -11565,7 +11618,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
11565
11618
|
...forwardedProps
|
|
11566
11619
|
});
|
|
11567
11620
|
});
|
|
11568
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
11621
|
+
SkeletonCircle.displayName = COMPONENT_NAME$l;
|
|
11569
11622
|
SkeletonCircle.defaultProps = DEFAULT_PROPS$o;
|
|
11570
11623
|
SkeletonCircle.className = CLASSNAME$l;
|
|
11571
11624
|
|
|
@@ -11606,7 +11659,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
11606
11659
|
...forwardedProps
|
|
11607
11660
|
});
|
|
11608
11661
|
});
|
|
11609
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
11662
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$k;
|
|
11610
11663
|
SkeletonRectangle.className = CLASSNAME$k;
|
|
11611
11664
|
SkeletonRectangle.defaultProps = DEFAULT_PROPS$n;
|
|
11612
11665
|
|
|
@@ -11643,7 +11696,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
11643
11696
|
...forwardedProps
|
|
11644
11697
|
});
|
|
11645
11698
|
});
|
|
11646
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
11699
|
+
SkeletonTypography.displayName = COMPONENT_NAME$j;
|
|
11647
11700
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$m;
|
|
11648
11701
|
SkeletonTypography.className = CLASSNAME$j;
|
|
11649
11702
|
|
|
@@ -11685,7 +11738,7 @@ const clamp = (value, min, max) => {
|
|
|
11685
11738
|
/**
|
|
11686
11739
|
* Component display name.
|
|
11687
11740
|
*/
|
|
11688
|
-
const COMPONENT_NAME$
|
|
11741
|
+
const COMPONENT_NAME$i = 'Slider';
|
|
11689
11742
|
|
|
11690
11743
|
/**
|
|
11691
11744
|
* Component default class name and class prefix.
|
|
@@ -11952,7 +12005,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
11952
12005
|
})]
|
|
11953
12006
|
});
|
|
11954
12007
|
});
|
|
11955
|
-
Slider.displayName = COMPONENT_NAME$
|
|
12008
|
+
Slider.displayName = COMPONENT_NAME$i;
|
|
11956
12009
|
Slider.className = CLASSNAME$i;
|
|
11957
12010
|
Slider.defaultProps = DEFAULT_PROPS$l;
|
|
11958
12011
|
|
|
@@ -12287,7 +12340,7 @@ const useSlideFocusManagement = ({
|
|
|
12287
12340
|
/**
|
|
12288
12341
|
* Component display name.
|
|
12289
12342
|
*/
|
|
12290
|
-
const COMPONENT_NAME$
|
|
12343
|
+
const COMPONENT_NAME$h = 'SlideshowItemGroup';
|
|
12291
12344
|
|
|
12292
12345
|
/**
|
|
12293
12346
|
* Component default class name and class prefix.
|
|
@@ -12326,7 +12379,7 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
12326
12379
|
children: children
|
|
12327
12380
|
});
|
|
12328
12381
|
});
|
|
12329
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
12382
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$h;
|
|
12330
12383
|
SlideshowItemGroup.className = CLASSNAME$h;
|
|
12331
12384
|
|
|
12332
12385
|
/**
|
|
@@ -12457,7 +12510,7 @@ Slideshow.defaultProps = DEFAULT_PROPS$k;
|
|
|
12457
12510
|
/**
|
|
12458
12511
|
* Component display name.
|
|
12459
12512
|
*/
|
|
12460
|
-
const COMPONENT_NAME$
|
|
12513
|
+
const COMPONENT_NAME$g = 'SlideshowItem';
|
|
12461
12514
|
|
|
12462
12515
|
/**
|
|
12463
12516
|
* Component default class name and class prefix.
|
|
@@ -12484,7 +12537,7 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
12484
12537
|
children: children
|
|
12485
12538
|
});
|
|
12486
12539
|
});
|
|
12487
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
12540
|
+
SlideshowItem.displayName = COMPONENT_NAME$g;
|
|
12488
12541
|
SlideshowItem.className = CLASSNAME$g;
|
|
12489
12542
|
|
|
12490
12543
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
@@ -12547,7 +12600,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
12547
12600
|
/**
|
|
12548
12601
|
* Component display name.
|
|
12549
12602
|
*/
|
|
12550
|
-
const COMPONENT_NAME$
|
|
12603
|
+
const COMPONENT_NAME$f = 'SlideshowControls';
|
|
12551
12604
|
|
|
12552
12605
|
/**
|
|
12553
12606
|
* Component default class name and class prefix.
|
|
@@ -12637,7 +12690,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
12637
12690
|
className: element$9('navigation'),
|
|
12638
12691
|
color: theme === Theme$1.dark ? 'light' : 'dark',
|
|
12639
12692
|
emphasis: Emphasis$1.low,
|
|
12640
|
-
onClick: onPreviousClick
|
|
12693
|
+
onClick: () => onPreviousClick?.()
|
|
12641
12694
|
}), /*#__PURE__*/jsx("div", {
|
|
12642
12695
|
ref: paginationRef,
|
|
12643
12696
|
className: element$9('pagination'),
|
|
@@ -12684,11 +12737,11 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
12684
12737
|
className: element$9('navigation'),
|
|
12685
12738
|
color: theme === Theme$1.dark ? 'light' : 'dark',
|
|
12686
12739
|
emphasis: Emphasis$1.low,
|
|
12687
|
-
onClick: onNextClick
|
|
12740
|
+
onClick: () => onNextClick?.()
|
|
12688
12741
|
})]
|
|
12689
12742
|
});
|
|
12690
12743
|
});
|
|
12691
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
12744
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$f;
|
|
12692
12745
|
InternalSlideshowControls.className = CLASSNAME$f;
|
|
12693
12746
|
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$j;
|
|
12694
12747
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
@@ -12808,7 +12861,7 @@ const useSlideScroll = ({
|
|
|
12808
12861
|
/**
|
|
12809
12862
|
* Component display name.
|
|
12810
12863
|
*/
|
|
12811
|
-
const COMPONENT_NAME$
|
|
12864
|
+
const COMPONENT_NAME$e = 'Slideshow';
|
|
12812
12865
|
|
|
12813
12866
|
/**
|
|
12814
12867
|
* Component default class name and class prefix.
|
|
@@ -12916,13 +12969,13 @@ const Slides = forwardRef((props, ref) => {
|
|
|
12916
12969
|
}), afterSlides]
|
|
12917
12970
|
});
|
|
12918
12971
|
});
|
|
12919
|
-
Slides.displayName = COMPONENT_NAME$
|
|
12972
|
+
Slides.displayName = COMPONENT_NAME$e;
|
|
12920
12973
|
Slides.className = CLASSNAME$e;
|
|
12921
12974
|
|
|
12922
12975
|
/**
|
|
12923
12976
|
* Component display name.
|
|
12924
12977
|
*/
|
|
12925
|
-
const COMPONENT_NAME$
|
|
12978
|
+
const COMPONENT_NAME$d = 'Switch';
|
|
12926
12979
|
|
|
12927
12980
|
/**
|
|
12928
12981
|
* Component default class name and class prefix.
|
|
@@ -12957,7 +13010,7 @@ const Switch$1 = props => {
|
|
|
12957
13010
|
label,
|
|
12958
13011
|
name,
|
|
12959
13012
|
ref,
|
|
12960
|
-
|
|
13013
|
+
handleChange,
|
|
12961
13014
|
theme,
|
|
12962
13015
|
value,
|
|
12963
13016
|
inputProps = {},
|
|
@@ -12966,9 +13019,9 @@ const Switch$1 = props => {
|
|
|
12966
13019
|
position = DEFAULT_PROPS$h.position,
|
|
12967
13020
|
...forwardedProps
|
|
12968
13021
|
} = props;
|
|
12969
|
-
const
|
|
12970
|
-
if (
|
|
12971
|
-
|
|
13022
|
+
const handleOnChange = event => {
|
|
13023
|
+
if (handleChange) {
|
|
13024
|
+
handleChange(!isChecked, value, name, event);
|
|
12972
13025
|
}
|
|
12973
13026
|
};
|
|
12974
13027
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -12992,7 +13045,7 @@ const Switch$1 = props => {
|
|
|
12992
13045
|
name: name,
|
|
12993
13046
|
value: value,
|
|
12994
13047
|
checked: Boolean(isChecked),
|
|
12995
|
-
onChange:
|
|
13048
|
+
onChange: handleOnChange,
|
|
12996
13049
|
"aria-describedby": helper ? `${inputId}-helper` : undefined,
|
|
12997
13050
|
"aria-checked": Boolean(isChecked),
|
|
12998
13051
|
...(inputProps?.readOnly ? {
|
|
@@ -13076,7 +13129,7 @@ const Switch = forwardRef((props, ref) => {
|
|
|
13076
13129
|
isChecked,
|
|
13077
13130
|
label: children,
|
|
13078
13131
|
name,
|
|
13079
|
-
onChange,
|
|
13132
|
+
handleChange: onChange,
|
|
13080
13133
|
position,
|
|
13081
13134
|
theme,
|
|
13082
13135
|
value,
|
|
@@ -13090,14 +13143,14 @@ const Switch = forwardRef((props, ref) => {
|
|
|
13090
13143
|
inputId
|
|
13091
13144
|
});
|
|
13092
13145
|
});
|
|
13093
|
-
Switch.displayName = COMPONENT_NAME$
|
|
13146
|
+
Switch.displayName = COMPONENT_NAME$d;
|
|
13094
13147
|
Switch.className = CLASSNAME$d;
|
|
13095
13148
|
Switch.defaultProps = DEFAULT_PROPS$g;
|
|
13096
13149
|
|
|
13097
13150
|
/**
|
|
13098
13151
|
* Component display name.
|
|
13099
13152
|
*/
|
|
13100
|
-
const COMPONENT_NAME$
|
|
13153
|
+
const COMPONENT_NAME$c = 'Table';
|
|
13101
13154
|
|
|
13102
13155
|
/**
|
|
13103
13156
|
* Component default class name and class prefix.
|
|
@@ -13170,14 +13223,14 @@ const Table = forwardRef((props, ref) => {
|
|
|
13170
13223
|
...otherProps
|
|
13171
13224
|
});
|
|
13172
13225
|
});
|
|
13173
|
-
Table.displayName = COMPONENT_NAME$
|
|
13226
|
+
Table.displayName = COMPONENT_NAME$c;
|
|
13174
13227
|
Table.className = CLASSNAME$c;
|
|
13175
13228
|
Table.defaultProps = DEFAULT_PROPS$f;
|
|
13176
13229
|
|
|
13177
13230
|
/**
|
|
13178
13231
|
* Component display name.
|
|
13179
13232
|
*/
|
|
13180
|
-
const COMPONENT_NAME$
|
|
13233
|
+
const COMPONENT_NAME$b = 'TableBody';
|
|
13181
13234
|
|
|
13182
13235
|
/**
|
|
13183
13236
|
* Component default class name and class prefix.
|
|
@@ -13227,7 +13280,7 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
13227
13280
|
...otherProps
|
|
13228
13281
|
});
|
|
13229
13282
|
});
|
|
13230
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
13283
|
+
TableBody.displayName = COMPONENT_NAME$b;
|
|
13231
13284
|
TableBody.className = CLASSNAME$b;
|
|
13232
13285
|
|
|
13233
13286
|
const ThOrder = {
|
|
@@ -13249,7 +13302,7 @@ const TableCellVariant = {
|
|
|
13249
13302
|
/**
|
|
13250
13303
|
* Component display name.
|
|
13251
13304
|
*/
|
|
13252
|
-
const COMPONENT_NAME$
|
|
13305
|
+
const COMPONENT_NAME$a = 'TableCell';
|
|
13253
13306
|
|
|
13254
13307
|
/**
|
|
13255
13308
|
* Component default class name and class prefix.
|
|
@@ -13278,7 +13331,7 @@ const TableCell$1 = props => {
|
|
|
13278
13331
|
className,
|
|
13279
13332
|
icon,
|
|
13280
13333
|
isSortable,
|
|
13281
|
-
|
|
13334
|
+
handleClick,
|
|
13282
13335
|
ref,
|
|
13283
13336
|
sortOrder,
|
|
13284
13337
|
variant = DEFAULT_PROPS$e.variant,
|
|
@@ -13286,10 +13339,10 @@ const TableCell$1 = props => {
|
|
|
13286
13339
|
} = props;
|
|
13287
13340
|
|
|
13288
13341
|
// Use button if clickable
|
|
13289
|
-
const Wrapper =
|
|
13342
|
+
const Wrapper = handleClick ? 'button' : 'div';
|
|
13290
13343
|
const wrapperProps = Wrapper === 'button' ? {
|
|
13291
13344
|
type: 'button',
|
|
13292
|
-
onClick:
|
|
13345
|
+
onClick: handleClick
|
|
13293
13346
|
} : undefined;
|
|
13294
13347
|
|
|
13295
13348
|
// ARIA sort
|
|
@@ -13356,23 +13409,23 @@ const TableCell$1 = props => {
|
|
|
13356
13409
|
*/
|
|
13357
13410
|
const TableCell = forwardRef((props, ref) => {
|
|
13358
13411
|
const {
|
|
13359
|
-
|
|
13412
|
+
onHeaderClick,
|
|
13360
13413
|
...otherProps
|
|
13361
13414
|
} = props;
|
|
13362
13415
|
return TableCell$1({
|
|
13363
13416
|
ref,
|
|
13364
|
-
|
|
13365
|
-
|
|
13417
|
+
...otherProps,
|
|
13418
|
+
handleClick: onHeaderClick
|
|
13366
13419
|
});
|
|
13367
13420
|
});
|
|
13368
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
13421
|
+
TableCell.displayName = COMPONENT_NAME$a;
|
|
13369
13422
|
TableCell.className = CLASSNAME$a;
|
|
13370
13423
|
TableCell.defaultProps = DEFAULT_PROPS$e;
|
|
13371
13424
|
|
|
13372
13425
|
/**
|
|
13373
13426
|
* Component display name.
|
|
13374
13427
|
*/
|
|
13375
|
-
const COMPONENT_NAME$
|
|
13428
|
+
const COMPONENT_NAME$9 = 'TableHeader';
|
|
13376
13429
|
|
|
13377
13430
|
/**
|
|
13378
13431
|
* Component default class name and class prefix.
|
|
@@ -13427,14 +13480,14 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
13427
13480
|
...otherProps
|
|
13428
13481
|
});
|
|
13429
13482
|
});
|
|
13430
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
13483
|
+
TableHeader.displayName = COMPONENT_NAME$9;
|
|
13431
13484
|
TableHeader.className = CLASSNAME$9;
|
|
13432
13485
|
TableHeader.defaultProps = DEFAULT_PROPS$d;
|
|
13433
13486
|
|
|
13434
13487
|
/**
|
|
13435
13488
|
* Component display name.
|
|
13436
13489
|
*/
|
|
13437
|
-
const COMPONENT_NAME$
|
|
13490
|
+
const COMPONENT_NAME$8 = 'TableRow';
|
|
13438
13491
|
|
|
13439
13492
|
/**
|
|
13440
13493
|
* Component default class name and class prefix.
|
|
@@ -13517,7 +13570,7 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
13517
13570
|
...forwardedProps
|
|
13518
13571
|
});
|
|
13519
13572
|
});
|
|
13520
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
13573
|
+
TableRow.displayName = COMPONENT_NAME$8;
|
|
13521
13574
|
TableRow.className = CLASSNAME$8;
|
|
13522
13575
|
TableRow.defaultProps = DEFAULT_PROPS$c;
|
|
13523
13576
|
|
|
@@ -13601,7 +13654,7 @@ let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
|
13601
13654
|
/**
|
|
13602
13655
|
* Component display name.
|
|
13603
13656
|
*/
|
|
13604
|
-
const COMPONENT_NAME$
|
|
13657
|
+
const COMPONENT_NAME$7 = 'TabList';
|
|
13605
13658
|
|
|
13606
13659
|
/**
|
|
13607
13660
|
* Component default props.
|
|
@@ -13654,14 +13707,14 @@ const TabList = forwardRef((props, ref) => {
|
|
|
13654
13707
|
})
|
|
13655
13708
|
});
|
|
13656
13709
|
});
|
|
13657
|
-
TabList.displayName = COMPONENT_NAME$
|
|
13710
|
+
TabList.displayName = COMPONENT_NAME$7;
|
|
13658
13711
|
TabList.className = TABS_CLASSNAME;
|
|
13659
13712
|
TabList.defaultProps = DEFAULT_PROPS$a;
|
|
13660
13713
|
|
|
13661
13714
|
/**
|
|
13662
13715
|
* Component display name.
|
|
13663
13716
|
*/
|
|
13664
|
-
const COMPONENT_NAME$
|
|
13717
|
+
const COMPONENT_NAME$6 = 'Tab';
|
|
13665
13718
|
|
|
13666
13719
|
/**
|
|
13667
13720
|
* Component default class name and class prefix.
|
|
@@ -13751,14 +13804,14 @@ const Tab = forwardRef((props, ref) => {
|
|
|
13751
13804
|
})]
|
|
13752
13805
|
});
|
|
13753
13806
|
});
|
|
13754
|
-
Tab.displayName = COMPONENT_NAME$
|
|
13807
|
+
Tab.displayName = COMPONENT_NAME$6;
|
|
13755
13808
|
Tab.className = CLASSNAME$7;
|
|
13756
13809
|
Tab.defaultProps = DEFAULT_PROPS$9;
|
|
13757
13810
|
|
|
13758
13811
|
/**
|
|
13759
13812
|
* Component display name.
|
|
13760
13813
|
*/
|
|
13761
|
-
const COMPONENT_NAME$
|
|
13814
|
+
const COMPONENT_NAME$5 = 'TabPanel';
|
|
13762
13815
|
|
|
13763
13816
|
/**
|
|
13764
13817
|
* Component default class name and class prefix.
|
|
@@ -13805,14 +13858,14 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
13805
13858
|
children: (!state?.isLazy || isActive) && children
|
|
13806
13859
|
});
|
|
13807
13860
|
});
|
|
13808
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
13861
|
+
TabPanel.displayName = COMPONENT_NAME$5;
|
|
13809
13862
|
TabPanel.className = CLASSNAME$6;
|
|
13810
13863
|
TabPanel.defaultProps = DEFAULT_PROPS$8;
|
|
13811
13864
|
|
|
13812
13865
|
/**
|
|
13813
13866
|
* Component display name.
|
|
13814
13867
|
*/
|
|
13815
|
-
const COMPONENT_NAME$
|
|
13868
|
+
const COMPONENT_NAME$4 = 'TextField';
|
|
13816
13869
|
|
|
13817
13870
|
/**
|
|
13818
13871
|
* Component default class name and class prefix.
|
|
@@ -14050,9 +14103,9 @@ const TextField = forwardRef((props, ref) => {
|
|
|
14050
14103
|
* @param evt On clear event.
|
|
14051
14104
|
*/
|
|
14052
14105
|
const handleClear = evt => {
|
|
14053
|
-
evt
|
|
14054
|
-
evt
|
|
14055
|
-
evt
|
|
14106
|
+
evt?.nativeEvent.preventDefault();
|
|
14107
|
+
evt?.nativeEvent.stopPropagation();
|
|
14108
|
+
(evt?.currentTarget).blur();
|
|
14056
14109
|
onChange('');
|
|
14057
14110
|
if (onClear) {
|
|
14058
14111
|
onClear(evt);
|
|
@@ -14176,7 +14229,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
14176
14229
|
})]
|
|
14177
14230
|
});
|
|
14178
14231
|
});
|
|
14179
|
-
TextField.displayName = COMPONENT_NAME$
|
|
14232
|
+
TextField.displayName = COMPONENT_NAME$4;
|
|
14180
14233
|
TextField.className = CLASSNAME$5;
|
|
14181
14234
|
TextField.defaultProps = DEFAULT_PROPS$5;
|
|
14182
14235
|
|
|
@@ -14327,7 +14380,7 @@ function calculateFocusPointStyle({
|
|
|
14327
14380
|
/**
|
|
14328
14381
|
* Component display name.
|
|
14329
14382
|
*/
|
|
14330
|
-
const COMPONENT_NAME$
|
|
14383
|
+
const COMPONENT_NAME$3 = 'Thumbnail';
|
|
14331
14384
|
|
|
14332
14385
|
/**
|
|
14333
14386
|
* Component default class name and class prefix.
|
|
@@ -14380,6 +14433,8 @@ const Thumbnail$1 = props => {
|
|
|
14380
14433
|
variant,
|
|
14381
14434
|
linkProps,
|
|
14382
14435
|
linkAs,
|
|
14436
|
+
handleClick,
|
|
14437
|
+
handleKeyPress,
|
|
14383
14438
|
...forwardedProps
|
|
14384
14439
|
} = props;
|
|
14385
14440
|
const isLoading = isLoadingProp || loadingState === 'isLoading';
|
|
@@ -14395,7 +14450,7 @@ const Thumbnail$1 = props => {
|
|
|
14395
14450
|
imageErrorStyle.display = 'none';
|
|
14396
14451
|
}
|
|
14397
14452
|
const isLink = Boolean(linkProps?.href || linkAs);
|
|
14398
|
-
const isClickable = !isAnyDisabled && Boolean(isLink || !!
|
|
14453
|
+
const isClickable = !isAnyDisabled && Boolean(isLink || !!handleClick || !!handleKeyPress);
|
|
14399
14454
|
const wrapperProps = {
|
|
14400
14455
|
...forwardedProps
|
|
14401
14456
|
};
|
|
@@ -14473,11 +14528,13 @@ const Thumbnail$1 = props => {
|
|
|
14473
14528
|
|
|
14474
14529
|
/** Render `RawClickable` as a function since it is a core component which needs to be treated as such */
|
|
14475
14530
|
if (isClickable) {
|
|
14476
|
-
return RawClickable
|
|
14531
|
+
return RawClickable({
|
|
14477
14532
|
ref,
|
|
14478
14533
|
...wrapperProps,
|
|
14479
14534
|
className: wrapperClassName,
|
|
14480
|
-
children: innerImage
|
|
14535
|
+
children: innerImage,
|
|
14536
|
+
handleClick,
|
|
14537
|
+
handleKeyPress
|
|
14481
14538
|
});
|
|
14482
14539
|
}
|
|
14483
14540
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -14584,6 +14641,8 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
14584
14641
|
focusPoint,
|
|
14585
14642
|
image,
|
|
14586
14643
|
imgRef: propImgRef,
|
|
14644
|
+
onClick,
|
|
14645
|
+
onKeyPress,
|
|
14587
14646
|
...forwardedProps
|
|
14588
14647
|
} = otherProps;
|
|
14589
14648
|
const [imgElement, setImgElement] = useState();
|
|
@@ -14603,13 +14662,15 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
14603
14662
|
focusPointStyle,
|
|
14604
14663
|
loadingState,
|
|
14605
14664
|
imgRef: useMergeRefs(setImgElement, propImgRef),
|
|
14665
|
+
handleClick: onClick,
|
|
14666
|
+
handleKeyPress: onKeyPress,
|
|
14606
14667
|
image,
|
|
14607
14668
|
badge: badge && /*#__PURE__*/React__default.cloneElement(badge, {
|
|
14608
14669
|
className: classNames.join(element$4('badge'), badge.props.className)
|
|
14609
14670
|
})
|
|
14610
14671
|
});
|
|
14611
14672
|
});
|
|
14612
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
14673
|
+
Thumbnail.displayName = COMPONENT_NAME$3;
|
|
14613
14674
|
Thumbnail.className = CLASSNAME$4;
|
|
14614
14675
|
Thumbnail.defaultProps = DEFAULT_PROPS$4;
|
|
14615
14676
|
|
|
@@ -14653,7 +14714,7 @@ const ThumbnailObjectFit = {
|
|
|
14653
14714
|
/**
|
|
14654
14715
|
* Component display name.
|
|
14655
14716
|
*/
|
|
14656
|
-
const
|
|
14717
|
+
const TOOLBAR_NAME = 'Toolbar';
|
|
14657
14718
|
|
|
14658
14719
|
/**
|
|
14659
14720
|
* Component default class name and class prefix.
|
|
@@ -14662,7 +14723,7 @@ const CLASSNAME$3 = 'lumx-toolbar';
|
|
|
14662
14723
|
const {
|
|
14663
14724
|
block: block$3,
|
|
14664
14725
|
element: element$3
|
|
14665
|
-
} =
|
|
14726
|
+
} = bem(CLASSNAME$3);
|
|
14666
14727
|
|
|
14667
14728
|
/**
|
|
14668
14729
|
* Component default props.
|
|
@@ -14673,21 +14734,21 @@ const DEFAULT_PROPS$3 = {};
|
|
|
14673
14734
|
* Toolbar component.
|
|
14674
14735
|
*
|
|
14675
14736
|
* @param props Component props.
|
|
14676
|
-
* @
|
|
14677
|
-
* @return React element.
|
|
14737
|
+
* @return JSX element.
|
|
14678
14738
|
*/
|
|
14679
|
-
const Toolbar =
|
|
14739
|
+
const Toolbar$1 = props => {
|
|
14680
14740
|
const {
|
|
14681
14741
|
after,
|
|
14682
14742
|
before,
|
|
14683
14743
|
className,
|
|
14684
14744
|
label,
|
|
14745
|
+
ref,
|
|
14685
14746
|
...forwardedProps
|
|
14686
14747
|
} = props;
|
|
14687
14748
|
return /*#__PURE__*/jsxs("div", {
|
|
14688
14749
|
ref: ref,
|
|
14689
14750
|
...forwardedProps,
|
|
14690
|
-
className:
|
|
14751
|
+
className: classnames(className, block$3({
|
|
14691
14752
|
'has-after': Boolean(after),
|
|
14692
14753
|
'has-before': Boolean(before),
|
|
14693
14754
|
'has-label': Boolean(label)
|
|
@@ -14703,8 +14764,26 @@ const Toolbar = forwardRef((props, ref) => {
|
|
|
14703
14764
|
children: after
|
|
14704
14765
|
})]
|
|
14705
14766
|
});
|
|
14767
|
+
};
|
|
14768
|
+
|
|
14769
|
+
/**
|
|
14770
|
+
* Defines the props of the component.
|
|
14771
|
+
*/
|
|
14772
|
+
|
|
14773
|
+
/**
|
|
14774
|
+
* Toolbar component.
|
|
14775
|
+
*
|
|
14776
|
+
* @param props Component props.
|
|
14777
|
+
* @param ref Component ref.
|
|
14778
|
+
* @return React element.
|
|
14779
|
+
*/
|
|
14780
|
+
const Toolbar = forwardRef((props, ref) => {
|
|
14781
|
+
return Toolbar$1({
|
|
14782
|
+
ref,
|
|
14783
|
+
...props
|
|
14784
|
+
});
|
|
14706
14785
|
});
|
|
14707
|
-
Toolbar.displayName =
|
|
14786
|
+
Toolbar.displayName = TOOLBAR_NAME;
|
|
14708
14787
|
Toolbar.className = CLASSNAME$3;
|
|
14709
14788
|
Toolbar.defaultProps = DEFAULT_PROPS$3;
|
|
14710
14789
|
|
|
@@ -15304,5 +15383,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
15304
15383
|
UserBlock.className = CLASSNAME;
|
|
15305
15384
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
15306
15385
|
|
|
15307
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$
|
|
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 };
|
|
15308
15387
|
//# sourceMappingURL=index.js.map
|