@lumx/react 4.3.2-alpha.17 → 4.3.2-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +20 -15
- package/index.js +156 -128
- package/index.js.map +1 -1
- package/package.json +3 -13
- package/utils/index.d.ts +1 -6
package/index.js
CHANGED
|
@@ -3,10 +3,10 @@ export * from '@lumx/core/js/constants';
|
|
|
3
3
|
export * from '@lumx/core/js/types';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useState, useEffect, useMemo, useRef, useCallback, Children, useLayoutEffect, cloneElement, createContext, isValidElement, useContext, useReducer } from 'react';
|
|
6
|
-
import { mdiAlert } from '@lumx/icons/esm/alert
|
|
7
|
-
import { mdiAlertCircle } from '@lumx/icons/esm/alert-circle
|
|
8
|
-
import { mdiCheckCircle } from '@lumx/icons/esm/check-circle
|
|
9
|
-
import { mdiInformation } from '@lumx/icons/esm/information
|
|
6
|
+
import { mdiAlert } from '@lumx/icons/esm/alert';
|
|
7
|
+
import { mdiAlertCircle } from '@lumx/icons/esm/alert-circle';
|
|
8
|
+
import { mdiCheckCircle } from '@lumx/icons/esm/check-circle';
|
|
9
|
+
import { mdiInformation } from '@lumx/icons/esm/information';
|
|
10
10
|
import { classNames, onEnterPressed, onEscapePressed, onButtonPressed, detectHorizontalSwipe } from '@lumx/core/js/utils';
|
|
11
11
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
12
12
|
import last from 'lodash/last';
|
|
@@ -19,37 +19,37 @@ import reduce from 'lodash/reduce';
|
|
|
19
19
|
import { u as useDisabledStateContext, P as Portal, C as ClickAwayProvider } from './_internal/DpdvhbTO.js';
|
|
20
20
|
import isEmpty from 'lodash/isEmpty';
|
|
21
21
|
import { getDisabledState } from '@lumx/core/js/utils/disabledState';
|
|
22
|
-
import { mdiCloseCircle } from '@lumx/icons/esm/close-circle
|
|
22
|
+
import { mdiCloseCircle } from '@lumx/icons/esm/close-circle';
|
|
23
23
|
import memoize from 'lodash/memoize';
|
|
24
|
-
import { mdiClose } from '@lumx/icons/esm/close
|
|
24
|
+
import { mdiClose } from '@lumx/icons/esm/close';
|
|
25
25
|
import isFunction from 'lodash/isFunction';
|
|
26
|
-
import { mdiImageBroken } from '@lumx/icons/esm/image-broken
|
|
27
|
-
import { mdiCheck } from '@lumx/icons/esm/check
|
|
28
|
-
import { mdiMinus } from '@lumx/icons/esm/minus
|
|
29
|
-
import { mdiChevronLeft } from '@lumx/icons/esm/chevron-left
|
|
30
|
-
import { mdiChevronRight } from '@lumx/icons/esm/chevron-right
|
|
26
|
+
import { mdiImageBroken } from '@lumx/icons/esm/image-broken';
|
|
27
|
+
import { mdiCheck } from '@lumx/icons/esm/check';
|
|
28
|
+
import { mdiMinus } from '@lumx/icons/esm/minus';
|
|
29
|
+
import { mdiChevronLeft } from '@lumx/icons/esm/chevron-left';
|
|
30
|
+
import { mdiChevronRight } from '@lumx/icons/esm/chevron-right';
|
|
31
31
|
import castArray from 'lodash/castArray';
|
|
32
|
-
import { mdiDragVertical } from '@lumx/icons/esm/drag-vertical
|
|
33
|
-
import { mdiChevronDown } from '@lumx/icons/esm/chevron-down
|
|
34
|
-
import { mdiChevronUp } from '@lumx/icons/esm/chevron-up
|
|
32
|
+
import { mdiDragVertical } from '@lumx/icons/esm/drag-vertical';
|
|
33
|
+
import { mdiChevronDown } from '@lumx/icons/esm/chevron-down';
|
|
34
|
+
import { mdiChevronUp } from '@lumx/icons/esm/chevron-up';
|
|
35
35
|
import noop from 'lodash/noop';
|
|
36
36
|
import pick from 'lodash/pick';
|
|
37
37
|
import isInteger from 'lodash/isInteger';
|
|
38
|
-
import { mdiMagnifyMinusOutline } from '@lumx/icons/esm/magnify-minus-outline
|
|
39
|
-
import { mdiMagnifyPlusOutline } from '@lumx/icons/esm/magnify-plus-outline
|
|
38
|
+
import { mdiMagnifyMinusOutline } from '@lumx/icons/esm/magnify-minus-outline';
|
|
39
|
+
import { mdiMagnifyPlusOutline } from '@lumx/icons/esm/magnify-plus-outline';
|
|
40
40
|
import throttle from 'lodash/throttle';
|
|
41
41
|
import range from 'lodash/range';
|
|
42
|
-
import { mdiPlayCircleOutline } from '@lumx/icons/esm/play-circle-outline
|
|
43
|
-
import { mdiPauseCircleOutline } from '@lumx/icons/esm/pause-circle-outline
|
|
42
|
+
import { mdiPlayCircleOutline } from '@lumx/icons/esm/play-circle-outline';
|
|
43
|
+
import { mdiPauseCircleOutline } from '@lumx/icons/esm/pause-circle-outline';
|
|
44
44
|
import chunk from 'lodash/chunk';
|
|
45
45
|
import ReactDOM from 'react-dom';
|
|
46
46
|
import take from 'lodash/take';
|
|
47
|
-
import { mdiRadioboxBlank } from '@lumx/icons/esm/radiobox-blank
|
|
48
|
-
import { mdiRadioboxMarked } from '@lumx/icons/esm/radiobox-marked
|
|
49
|
-
import { mdiMenuDown } from '@lumx/icons/esm/menu-down
|
|
50
|
-
import { getWithSelector } from '@lumx/core/js/utils/selectors';
|
|
51
|
-
import { mdiArrowDown } from '@lumx/icons/esm/arrow-down
|
|
52
|
-
import { mdiArrowUp } from '@lumx/icons/esm/arrow-up
|
|
47
|
+
import { mdiRadioboxBlank } from '@lumx/icons/esm/radiobox-blank';
|
|
48
|
+
import { mdiRadioboxMarked } from '@lumx/icons/esm/radiobox-marked';
|
|
49
|
+
import { mdiMenuDown } from '@lumx/icons/esm/menu-down';
|
|
50
|
+
import { getWithSelector } from '@lumx/core/js/utils/selectors/getWithSelector';
|
|
51
|
+
import { mdiArrowDown } from '@lumx/icons/esm/arrow-down';
|
|
52
|
+
import { mdiArrowUp } from '@lumx/icons/esm/arrow-up';
|
|
53
53
|
import set from 'lodash/set';
|
|
54
54
|
|
|
55
55
|
let i = 0;
|
|
@@ -109,7 +109,7 @@ const {
|
|
|
109
109
|
/**
|
|
110
110
|
* Component default props.
|
|
111
111
|
*/
|
|
112
|
-
const DEFAULT_PROPS$
|
|
112
|
+
const DEFAULT_PROPS$1b = {
|
|
113
113
|
size: Size$1.tiny,
|
|
114
114
|
kind: Kind$1.info
|
|
115
115
|
};
|
|
@@ -130,8 +130,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
130
130
|
className,
|
|
131
131
|
cancelProps,
|
|
132
132
|
confirmProps,
|
|
133
|
-
kind = DEFAULT_PROPS$
|
|
134
|
-
size = DEFAULT_PROPS$
|
|
133
|
+
kind = DEFAULT_PROPS$1b.kind,
|
|
134
|
+
size = DEFAULT_PROPS$1b.size,
|
|
135
135
|
dialogProps,
|
|
136
136
|
children,
|
|
137
137
|
...forwardedProps
|
|
@@ -219,7 +219,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
219
219
|
});
|
|
220
220
|
AlertDialog.displayName = COMPONENT_NAME$1l;
|
|
221
221
|
AlertDialog.className = CLASSNAME$1j;
|
|
222
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
222
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$1b;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -321,7 +321,7 @@ const CLASSNAME$1i = 'lumx-autocomplete';
|
|
|
321
321
|
/**
|
|
322
322
|
* Component default props.
|
|
323
323
|
*/
|
|
324
|
-
const DEFAULT_PROPS$
|
|
324
|
+
const DEFAULT_PROPS$1a = {
|
|
325
325
|
anchorToInput: false,
|
|
326
326
|
closeOnClick: false,
|
|
327
327
|
closeOnClickAway: true,
|
|
@@ -343,13 +343,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
343
343
|
otherProps
|
|
344
344
|
} = useDisableStateProps(props);
|
|
345
345
|
const {
|
|
346
|
-
anchorToInput = DEFAULT_PROPS$
|
|
346
|
+
anchorToInput = DEFAULT_PROPS$1a.anchorToInput,
|
|
347
347
|
children,
|
|
348
348
|
chips,
|
|
349
349
|
className,
|
|
350
|
-
closeOnClick = DEFAULT_PROPS$
|
|
351
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
352
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
350
|
+
closeOnClick = DEFAULT_PROPS$1a.closeOnClick,
|
|
351
|
+
closeOnClickAway = DEFAULT_PROPS$1a.closeOnClickAway,
|
|
352
|
+
closeOnEscape = DEFAULT_PROPS$1a.closeOnEscape,
|
|
353
353
|
error,
|
|
354
354
|
fitToAnchorWidth,
|
|
355
355
|
hasError,
|
|
@@ -370,7 +370,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
370
370
|
onInfiniteScroll,
|
|
371
371
|
placeholder,
|
|
372
372
|
placement,
|
|
373
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
373
|
+
shouldFocusOnClose = DEFAULT_PROPS$1a.shouldFocusOnClose,
|
|
374
374
|
theme = defaultTheme,
|
|
375
375
|
value,
|
|
376
376
|
textFieldProps = {},
|
|
@@ -425,7 +425,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
425
425
|
});
|
|
426
426
|
Autocomplete.displayName = COMPONENT_NAME$1k;
|
|
427
427
|
Autocomplete.className = CLASSNAME$1i;
|
|
428
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
428
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$1a;
|
|
429
429
|
|
|
430
430
|
/**
|
|
431
431
|
* Component display name.
|
|
@@ -440,7 +440,7 @@ const CLASSNAME$1h = 'lumx-autocomplete-multiple';
|
|
|
440
440
|
/**
|
|
441
441
|
* Component default props.
|
|
442
442
|
*/
|
|
443
|
-
const DEFAULT_PROPS$
|
|
443
|
+
const DEFAULT_PROPS$19 = {
|
|
444
444
|
closeOnClickAway: true,
|
|
445
445
|
closeOnEscape: true,
|
|
446
446
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -480,8 +480,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
480
480
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
481
481
|
chipsAlignment,
|
|
482
482
|
className,
|
|
483
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
484
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
483
|
+
closeOnClickAway = DEFAULT_PROPS$19.closeOnClickAway,
|
|
484
|
+
closeOnEscape = DEFAULT_PROPS$19.closeOnEscape,
|
|
485
485
|
fitToAnchorWidth,
|
|
486
486
|
hasError,
|
|
487
487
|
helper,
|
|
@@ -503,12 +503,12 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
503
503
|
onKeyDown,
|
|
504
504
|
placeholder,
|
|
505
505
|
placement,
|
|
506
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
506
|
+
selectedChipRender = DEFAULT_PROPS$19.selectedChipRender,
|
|
507
507
|
shouldFocusOnClose,
|
|
508
508
|
theme = defaultTheme,
|
|
509
509
|
type,
|
|
510
510
|
value,
|
|
511
|
-
values = DEFAULT_PROPS$
|
|
511
|
+
values = DEFAULT_PROPS$19.values,
|
|
512
512
|
...forwardedProps
|
|
513
513
|
} = otherProps;
|
|
514
514
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
@@ -550,7 +550,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
550
550
|
});
|
|
551
551
|
AutocompleteMultiple.displayName = COMPONENT_NAME$1j;
|
|
552
552
|
AutocompleteMultiple.className = CLASSNAME$1h;
|
|
553
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
553
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$19;
|
|
554
554
|
|
|
555
555
|
/**
|
|
556
556
|
* Component display name.
|
|
@@ -569,7 +569,7 @@ const {
|
|
|
569
569
|
/**
|
|
570
570
|
* Component default props.
|
|
571
571
|
*/
|
|
572
|
-
const DEFAULT_PROPS$
|
|
572
|
+
const DEFAULT_PROPS$18 = {
|
|
573
573
|
size: Size$1.m
|
|
574
574
|
};
|
|
575
575
|
|
|
@@ -592,7 +592,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
592
592
|
linkAs,
|
|
593
593
|
onClick,
|
|
594
594
|
onKeyPress,
|
|
595
|
-
size = DEFAULT_PROPS$
|
|
595
|
+
size = DEFAULT_PROPS$18.size,
|
|
596
596
|
theme = defaultTheme,
|
|
597
597
|
thumbnailProps,
|
|
598
598
|
...forwardedProps
|
|
@@ -627,7 +627,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
627
627
|
});
|
|
628
628
|
Avatar.displayName = COMPONENT_NAME$1i;
|
|
629
629
|
Avatar.className = CLASSNAME$1g;
|
|
630
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
630
|
+
Avatar.defaultProps = DEFAULT_PROPS$18;
|
|
631
631
|
|
|
632
632
|
/**
|
|
633
633
|
* Alignments.
|
|
@@ -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
|
}
|
|
@@ -938,7 +936,7 @@ const {
|
|
|
938
936
|
/**
|
|
939
937
|
* Component default props.
|
|
940
938
|
*/
|
|
941
|
-
const DEFAULT_PROPS$
|
|
939
|
+
const DEFAULT_PROPS$17 = {
|
|
942
940
|
color: ColorPalette.primary
|
|
943
941
|
};
|
|
944
942
|
|
|
@@ -952,7 +950,7 @@ const Badge$1 = props => {
|
|
|
952
950
|
const {
|
|
953
951
|
children,
|
|
954
952
|
className,
|
|
955
|
-
color = DEFAULT_PROPS$
|
|
953
|
+
color = DEFAULT_PROPS$17.color,
|
|
956
954
|
ref,
|
|
957
955
|
...forwardedProps
|
|
958
956
|
} = props;
|
|
@@ -967,7 +965,7 @@ const Badge$1 = props => {
|
|
|
967
965
|
};
|
|
968
966
|
Badge$1.displayName = COMPONENT_NAME$1h;
|
|
969
967
|
Badge$1.className = CLASSNAME$1f;
|
|
970
|
-
Badge$1.defaultProps = DEFAULT_PROPS$
|
|
968
|
+
Badge$1.defaultProps = DEFAULT_PROPS$17;
|
|
971
969
|
|
|
972
970
|
/**
|
|
973
971
|
* Defines the props of the component.
|
|
@@ -1191,7 +1189,7 @@ const {
|
|
|
1191
1189
|
/**
|
|
1192
1190
|
* Component default props.
|
|
1193
1191
|
*/
|
|
1194
|
-
const DEFAULT_PROPS$
|
|
1192
|
+
const DEFAULT_PROPS$16 = {
|
|
1195
1193
|
emphasis: Emphasis.high,
|
|
1196
1194
|
size: Size.m
|
|
1197
1195
|
};
|
|
@@ -1205,10 +1203,10 @@ const DEFAULT_PROPS$15 = {
|
|
|
1205
1203
|
const Button$1 = props => {
|
|
1206
1204
|
const {
|
|
1207
1205
|
className,
|
|
1208
|
-
emphasis = DEFAULT_PROPS$
|
|
1206
|
+
emphasis = DEFAULT_PROPS$16.emphasis,
|
|
1209
1207
|
leftIcon,
|
|
1210
1208
|
rightIcon,
|
|
1211
|
-
size = DEFAULT_PROPS$
|
|
1209
|
+
size = DEFAULT_PROPS$16.size,
|
|
1212
1210
|
...forwardedProps
|
|
1213
1211
|
} = props;
|
|
1214
1212
|
const buttonClassName = classnames(className, modifier({
|
|
@@ -1225,7 +1223,7 @@ const Button$1 = props => {
|
|
|
1225
1223
|
};
|
|
1226
1224
|
Button$1.displayName = COMPONENT_NAME$1e;
|
|
1227
1225
|
Button$1.className = CLASSNAME$1d;
|
|
1228
|
-
Button$1.defaultProps = DEFAULT_PROPS$
|
|
1226
|
+
Button$1.defaultProps = DEFAULT_PROPS$16;
|
|
1229
1227
|
|
|
1230
1228
|
/**
|
|
1231
1229
|
* Properties of a component to use to determine it's name.
|
|
@@ -1293,7 +1291,7 @@ const Button = forwardRef((props, ref) => {
|
|
|
1293
1291
|
});
|
|
1294
1292
|
Button.displayName = COMPONENT_NAME$1e;
|
|
1295
1293
|
Button.className = CLASSNAME$1d;
|
|
1296
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1294
|
+
Button.defaultProps = DEFAULT_PROPS$16;
|
|
1297
1295
|
|
|
1298
1296
|
const COMPONENT_NAME$1d = 'Icon';
|
|
1299
1297
|
const IconClassName = 'lumx-icon';
|
|
@@ -1310,7 +1308,7 @@ const {
|
|
|
1310
1308
|
/**
|
|
1311
1309
|
* Component default props.
|
|
1312
1310
|
*/
|
|
1313
|
-
const DEFAULT_PROPS$
|
|
1311
|
+
const DEFAULT_PROPS$15 = {};
|
|
1314
1312
|
|
|
1315
1313
|
/**
|
|
1316
1314
|
* Icon component.
|
|
@@ -1390,7 +1388,7 @@ const Icon$1 = props => {
|
|
|
1390
1388
|
};
|
|
1391
1389
|
Icon$1.displayName = COMPONENT_NAME$1d;
|
|
1392
1390
|
Icon$1.className = CLASSNAME$1c;
|
|
1393
|
-
Icon$1.defaultProps = DEFAULT_PROPS$
|
|
1391
|
+
Icon$1.defaultProps = DEFAULT_PROPS$15;
|
|
1394
1392
|
|
|
1395
1393
|
/**
|
|
1396
1394
|
* Component display name.
|
|
@@ -1405,7 +1403,7 @@ const CLASSNAME$1b = 'lumx-icon-button';
|
|
|
1405
1403
|
/**
|
|
1406
1404
|
* Component default props.
|
|
1407
1405
|
*/
|
|
1408
|
-
const DEFAULT_PROPS$
|
|
1406
|
+
const DEFAULT_PROPS$14 = {
|
|
1409
1407
|
emphasis: Emphasis.high,
|
|
1410
1408
|
size: Size.m
|
|
1411
1409
|
};
|
|
@@ -1418,11 +1416,11 @@ const DEFAULT_PROPS$13 = {
|
|
|
1418
1416
|
*/
|
|
1419
1417
|
const IconButton$1 = props => {
|
|
1420
1418
|
const {
|
|
1421
|
-
emphasis = DEFAULT_PROPS$
|
|
1419
|
+
emphasis = DEFAULT_PROPS$14.emphasis,
|
|
1422
1420
|
image,
|
|
1423
1421
|
icon,
|
|
1424
1422
|
label,
|
|
1425
|
-
size = DEFAULT_PROPS$
|
|
1423
|
+
size = DEFAULT_PROPS$14.size,
|
|
1426
1424
|
...forwardedProps
|
|
1427
1425
|
} = props;
|
|
1428
1426
|
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
@@ -1443,7 +1441,7 @@ const IconButton$1 = props => {
|
|
|
1443
1441
|
};
|
|
1444
1442
|
IconButton$1.displayName = COMPONENT_NAME$1c;
|
|
1445
1443
|
IconButton$1.className = CLASSNAME$1b;
|
|
1446
|
-
IconButton$1.defaultProps = DEFAULT_PROPS$
|
|
1444
|
+
IconButton$1.defaultProps = DEFAULT_PROPS$14;
|
|
1447
1445
|
|
|
1448
1446
|
/**
|
|
1449
1447
|
* IconButton component.
|
|
@@ -1480,7 +1478,7 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1480
1478
|
});
|
|
1481
1479
|
IconButton.displayName = COMPONENT_NAME$1c;
|
|
1482
1480
|
IconButton.className = CLASSNAME$1b;
|
|
1483
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1481
|
+
IconButton.defaultProps = DEFAULT_PROPS$14;
|
|
1484
1482
|
|
|
1485
1483
|
/**
|
|
1486
1484
|
* Component display name.
|
|
@@ -1495,7 +1493,7 @@ const CLASSNAME$1a = 'lumx-button-group';
|
|
|
1495
1493
|
/**
|
|
1496
1494
|
* Component default props.
|
|
1497
1495
|
*/
|
|
1498
|
-
const DEFAULT_PROPS$
|
|
1496
|
+
const DEFAULT_PROPS$13 = {};
|
|
1499
1497
|
|
|
1500
1498
|
/**
|
|
1501
1499
|
* ButtonGroup component.
|
|
@@ -1517,7 +1515,7 @@ const ButtonGroup$1 = props => {
|
|
|
1517
1515
|
};
|
|
1518
1516
|
ButtonGroup$1.displayName = COMPONENT_NAME$1b;
|
|
1519
1517
|
ButtonGroup$1.className = CLASSNAME$1a;
|
|
1520
|
-
ButtonGroup$1.defaultProps = DEFAULT_PROPS$
|
|
1518
|
+
ButtonGroup$1.defaultProps = DEFAULT_PROPS$13;
|
|
1521
1519
|
|
|
1522
1520
|
/**
|
|
1523
1521
|
* ButtonGroup component.
|
|
@@ -1534,7 +1532,7 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1534
1532
|
});
|
|
1535
1533
|
ButtonGroup.displayName = COMPONENT_NAME$1b;
|
|
1536
1534
|
ButtonGroup.className = CLASSNAME$1a;
|
|
1537
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1535
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$13;
|
|
1538
1536
|
|
|
1539
1537
|
const COMPONENT_NAME$1a = 'InputLabel';
|
|
1540
1538
|
const InputLabelClassName = 'lumx-input-label';
|
|
@@ -1542,7 +1540,7 @@ const CLASSNAME$19 = InputLabelClassName;
|
|
|
1542
1540
|
const {
|
|
1543
1541
|
block: block$_
|
|
1544
1542
|
} = bem(CLASSNAME$19);
|
|
1545
|
-
const DEFAULT_PROPS$
|
|
1543
|
+
const DEFAULT_PROPS$12 = {};
|
|
1546
1544
|
|
|
1547
1545
|
/**
|
|
1548
1546
|
* InputLabel component.
|
|
@@ -1572,7 +1570,7 @@ function InputLabel$1(props) {
|
|
|
1572
1570
|
}
|
|
1573
1571
|
InputLabel$1.displayName = COMPONENT_NAME$1a;
|
|
1574
1572
|
InputLabel$1.className = CLASSNAME$19;
|
|
1575
|
-
InputLabel$1.defaultProps = DEFAULT_PROPS$
|
|
1573
|
+
InputLabel$1.defaultProps = DEFAULT_PROPS$12;
|
|
1576
1574
|
|
|
1577
1575
|
const INPUT_HELPER_CONFIGURATION = {
|
|
1578
1576
|
[Kind.error]: {
|
|
@@ -1601,7 +1599,7 @@ const {
|
|
|
1601
1599
|
/**
|
|
1602
1600
|
* Component default props.
|
|
1603
1601
|
*/
|
|
1604
|
-
const DEFAULT_PROPS$
|
|
1602
|
+
const DEFAULT_PROPS$11 = {
|
|
1605
1603
|
kind: Kind.info
|
|
1606
1604
|
};
|
|
1607
1605
|
|
|
@@ -1612,7 +1610,7 @@ function InputHelper$1(props) {
|
|
|
1612
1610
|
const {
|
|
1613
1611
|
children,
|
|
1614
1612
|
className,
|
|
1615
|
-
kind = DEFAULT_PROPS$
|
|
1613
|
+
kind = DEFAULT_PROPS$11.kind,
|
|
1616
1614
|
theme,
|
|
1617
1615
|
ref,
|
|
1618
1616
|
...forwardedProps
|
|
@@ -1632,7 +1630,7 @@ function InputHelper$1(props) {
|
|
|
1632
1630
|
}
|
|
1633
1631
|
InputHelper$1.displayName = COMPONENT_NAME$19;
|
|
1634
1632
|
InputHelper$1.className = CLASSNAME$18;
|
|
1635
|
-
InputHelper$1.defaultProps = DEFAULT_PROPS$
|
|
1633
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$11;
|
|
1636
1634
|
|
|
1637
1635
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1638
1636
|
|
|
@@ -1747,7 +1745,7 @@ const Checkbox$1 = props => {
|
|
|
1747
1745
|
/**
|
|
1748
1746
|
* Component default props.
|
|
1749
1747
|
*/
|
|
1750
|
-
const DEFAULT_PROPS
|
|
1748
|
+
const DEFAULT_PROPS$10 = {};
|
|
1751
1749
|
|
|
1752
1750
|
/**
|
|
1753
1751
|
* Checkbox component.
|
|
@@ -1809,7 +1807,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1809
1807
|
});
|
|
1810
1808
|
Checkbox.displayName = COMPONENT_NAME$18;
|
|
1811
1809
|
Checkbox.className = CLASSNAME$17;
|
|
1812
|
-
Checkbox.defaultProps = DEFAULT_PROPS
|
|
1810
|
+
Checkbox.defaultProps = DEFAULT_PROPS$10;
|
|
1813
1811
|
|
|
1814
1812
|
/**
|
|
1815
1813
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -1844,7 +1842,7 @@ const {
|
|
|
1844
1842
|
/**
|
|
1845
1843
|
* Component default props.
|
|
1846
1844
|
*/
|
|
1847
|
-
const DEFAULT_PROPS
|
|
1845
|
+
const DEFAULT_PROPS$$ = {
|
|
1848
1846
|
size: Size$1.m
|
|
1849
1847
|
};
|
|
1850
1848
|
|
|
@@ -1874,7 +1872,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1874
1872
|
onAfterClick,
|
|
1875
1873
|
onBeforeClick,
|
|
1876
1874
|
onClick,
|
|
1877
|
-
size = DEFAULT_PROPS
|
|
1875
|
+
size = DEFAULT_PROPS$$.size,
|
|
1878
1876
|
theme = defaultTheme,
|
|
1879
1877
|
href,
|
|
1880
1878
|
onKeyDown,
|
|
@@ -1946,7 +1944,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1946
1944
|
});
|
|
1947
1945
|
Chip.displayName = COMPONENT_NAME$17;
|
|
1948
1946
|
Chip.className = CLASSNAME$16;
|
|
1949
|
-
Chip.defaultProps = DEFAULT_PROPS
|
|
1947
|
+
Chip.defaultProps = DEFAULT_PROPS$$;
|
|
1950
1948
|
|
|
1951
1949
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
1952
1950
|
|
|
@@ -2002,7 +2000,7 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
|
|
|
2002
2000
|
/**
|
|
2003
2001
|
* Component default props.
|
|
2004
2002
|
*/
|
|
2005
|
-
const DEFAULT_PROPS$
|
|
2003
|
+
const DEFAULT_PROPS$_ = {};
|
|
2006
2004
|
|
|
2007
2005
|
/**
|
|
2008
2006
|
* Component display name.
|
|
@@ -2037,7 +2035,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2037
2035
|
});
|
|
2038
2036
|
InternalChipGroup.displayName = COMPONENT_NAME$16;
|
|
2039
2037
|
InternalChipGroup.className = CLASSNAME$15;
|
|
2040
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2038
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$_;
|
|
2041
2039
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2042
2040
|
useChipGroupNavigation
|
|
2043
2041
|
});
|
|
@@ -2249,7 +2247,7 @@ const {
|
|
|
2249
2247
|
/**
|
|
2250
2248
|
* Component default props.
|
|
2251
2249
|
*/
|
|
2252
|
-
const DEFAULT_PROPS$
|
|
2250
|
+
const DEFAULT_PROPS$Z = {
|
|
2253
2251
|
variant: CommentBlockVariant.indented
|
|
2254
2252
|
};
|
|
2255
2253
|
|
|
@@ -2279,7 +2277,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2279
2277
|
onMouseLeave,
|
|
2280
2278
|
text,
|
|
2281
2279
|
theme = defaultTheme,
|
|
2282
|
-
variant = DEFAULT_PROPS$
|
|
2280
|
+
variant = DEFAULT_PROPS$Z.variant,
|
|
2283
2281
|
...forwardedProps
|
|
2284
2282
|
} = props;
|
|
2285
2283
|
const hasChildren = Children.count(children) > 0;
|
|
@@ -2348,7 +2346,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2348
2346
|
});
|
|
2349
2347
|
CommentBlock.displayName = COMPONENT_NAME$15;
|
|
2350
2348
|
CommentBlock.className = CLASSNAME$13;
|
|
2351
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
2349
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$Z;
|
|
2352
2350
|
|
|
2353
2351
|
/**
|
|
2354
2352
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -3453,7 +3451,7 @@ const {
|
|
|
3453
3451
|
/**
|
|
3454
3452
|
* Component default props.
|
|
3455
3453
|
*/
|
|
3456
|
-
const DEFAULT_PROPS$
|
|
3454
|
+
const DEFAULT_PROPS$Y = {
|
|
3457
3455
|
size: Size$1.big,
|
|
3458
3456
|
disableBodyScroll: true
|
|
3459
3457
|
};
|
|
@@ -3484,11 +3482,11 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3484
3482
|
parentElement,
|
|
3485
3483
|
contentRef,
|
|
3486
3484
|
preventAutoClose,
|
|
3487
|
-
size = DEFAULT_PROPS$
|
|
3485
|
+
size = DEFAULT_PROPS$Y.size,
|
|
3488
3486
|
zIndex,
|
|
3489
3487
|
dialogProps,
|
|
3490
3488
|
onVisibilityChange,
|
|
3491
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
3489
|
+
disableBodyScroll = DEFAULT_PROPS$Y.disableBodyScroll,
|
|
3492
3490
|
preventCloseOnClick,
|
|
3493
3491
|
preventCloseOnEscape,
|
|
3494
3492
|
...forwardedProps
|
|
@@ -3628,7 +3626,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3628
3626
|
});
|
|
3629
3627
|
Dialog.displayName = COMPONENT_NAME$11;
|
|
3630
3628
|
Dialog.className = CLASSNAME$11;
|
|
3631
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
3629
|
+
Dialog.defaultProps = DEFAULT_PROPS$Y;
|
|
3632
3630
|
|
|
3633
3631
|
/**
|
|
3634
3632
|
* Component display name.
|
|
@@ -3672,7 +3670,7 @@ const Divider$1 = props => {
|
|
|
3672
3670
|
/**
|
|
3673
3671
|
* Component default props.
|
|
3674
3672
|
*/
|
|
3675
|
-
const DEFAULT_PROPS$
|
|
3673
|
+
const DEFAULT_PROPS$X = {};
|
|
3676
3674
|
|
|
3677
3675
|
/**
|
|
3678
3676
|
* Divider component.
|
|
@@ -3695,7 +3693,7 @@ const Divider = forwardRef((props, ref) => {
|
|
|
3695
3693
|
});
|
|
3696
3694
|
Divider.displayName = COMPONENT_NAME$10;
|
|
3697
3695
|
Divider.className = CLASSNAME$10;
|
|
3698
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
3696
|
+
Divider.defaultProps = DEFAULT_PROPS$X;
|
|
3699
3697
|
|
|
3700
3698
|
/**
|
|
3701
3699
|
* Component display name.
|
|
@@ -3920,7 +3918,7 @@ const {
|
|
|
3920
3918
|
/**
|
|
3921
3919
|
* Component default props.
|
|
3922
3920
|
*/
|
|
3923
|
-
const DEFAULT_PROPS$
|
|
3921
|
+
const DEFAULT_PROPS$W = {
|
|
3924
3922
|
tabIndex: -1
|
|
3925
3923
|
};
|
|
3926
3924
|
|
|
@@ -3939,7 +3937,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3939
3937
|
isClickable,
|
|
3940
3938
|
itemPadding,
|
|
3941
3939
|
onListItemSelected,
|
|
3942
|
-
tabIndex = DEFAULT_PROPS$
|
|
3940
|
+
tabIndex = DEFAULT_PROPS$W.tabIndex,
|
|
3943
3941
|
...forwardedProps
|
|
3944
3942
|
} = props;
|
|
3945
3943
|
const adjustedItemPadding = itemPadding ?? (isClickable ? Size$1.big : undefined);
|
|
@@ -3955,7 +3953,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3955
3953
|
});
|
|
3956
3954
|
InternalList.displayName = COMPONENT_NAME$_;
|
|
3957
3955
|
InternalList.className = CLASSNAME$_;
|
|
3958
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
3956
|
+
InternalList.defaultProps = DEFAULT_PROPS$W;
|
|
3959
3957
|
const List = Object.assign(InternalList, {
|
|
3960
3958
|
useKeyboardListNavigation
|
|
3961
3959
|
});
|
|
@@ -6400,7 +6398,7 @@ const {
|
|
|
6400
6398
|
/**
|
|
6401
6399
|
* Component default props.
|
|
6402
6400
|
*/
|
|
6403
|
-
const DEFAULT_PROPS$
|
|
6401
|
+
const DEFAULT_PROPS$V = {
|
|
6404
6402
|
elevation: 3,
|
|
6405
6403
|
placement: Placement.AUTO,
|
|
6406
6404
|
focusAnchorOnClose: true,
|
|
@@ -6417,24 +6415,24 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6417
6415
|
className,
|
|
6418
6416
|
closeOnClickAway,
|
|
6419
6417
|
closeOnEscape,
|
|
6420
|
-
elevation = DEFAULT_PROPS$
|
|
6418
|
+
elevation = DEFAULT_PROPS$V.elevation,
|
|
6421
6419
|
focusElement,
|
|
6422
6420
|
hasArrow,
|
|
6423
6421
|
isOpen,
|
|
6424
6422
|
onClose,
|
|
6425
6423
|
parentElement,
|
|
6426
|
-
usePortal = DEFAULT_PROPS$
|
|
6427
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6424
|
+
usePortal = DEFAULT_PROPS$V.usePortal,
|
|
6425
|
+
focusAnchorOnClose = DEFAULT_PROPS$V.focusAnchorOnClose,
|
|
6428
6426
|
withFocusTrap,
|
|
6429
6427
|
boundaryRef,
|
|
6430
6428
|
fitToAnchorWidth,
|
|
6431
6429
|
fitWithinViewportHeight,
|
|
6432
6430
|
focusTrapZoneElement,
|
|
6433
6431
|
offset,
|
|
6434
|
-
placement = DEFAULT_PROPS$
|
|
6432
|
+
placement = DEFAULT_PROPS$V.placement,
|
|
6435
6433
|
style,
|
|
6436
6434
|
theme,
|
|
6437
|
-
zIndex = DEFAULT_PROPS$
|
|
6435
|
+
zIndex = DEFAULT_PROPS$V.zIndex,
|
|
6438
6436
|
...forwardedProps
|
|
6439
6437
|
} = props;
|
|
6440
6438
|
const popoverRef = useRef(null);
|
|
@@ -6520,7 +6518,7 @@ const Popover = skipRender(
|
|
|
6520
6518
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
6521
6519
|
Popover.displayName = COMPONENT_NAME$Z;
|
|
6522
6520
|
Popover.className = CLASSNAME$Z;
|
|
6523
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
6521
|
+
Popover.defaultProps = DEFAULT_PROPS$V;
|
|
6524
6522
|
|
|
6525
6523
|
// The error margin in px we want to have for triggering infinite scroll
|
|
6526
6524
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -6580,7 +6578,7 @@ const {
|
|
|
6580
6578
|
/**
|
|
6581
6579
|
* Component default props.
|
|
6582
6580
|
*/
|
|
6583
|
-
const DEFAULT_PROPS$
|
|
6581
|
+
const DEFAULT_PROPS$U = {
|
|
6584
6582
|
closeOnClick: true,
|
|
6585
6583
|
closeOnClickAway: true,
|
|
6586
6584
|
closeOnEscape: true,
|
|
@@ -6603,18 +6601,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6603
6601
|
anchorRef,
|
|
6604
6602
|
children,
|
|
6605
6603
|
className,
|
|
6606
|
-
closeOnClick = DEFAULT_PROPS$
|
|
6607
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
6608
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
6609
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
6610
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
6604
|
+
closeOnClick = DEFAULT_PROPS$U.closeOnClick,
|
|
6605
|
+
closeOnClickAway = DEFAULT_PROPS$U.closeOnClickAway,
|
|
6606
|
+
closeOnEscape = DEFAULT_PROPS$U.closeOnEscape,
|
|
6607
|
+
fitToAnchorWidth = DEFAULT_PROPS$U.fitToAnchorWidth,
|
|
6608
|
+
fitWithinViewportHeight = DEFAULT_PROPS$U.fitWithinViewportHeight,
|
|
6611
6609
|
isOpen,
|
|
6612
6610
|
offset,
|
|
6613
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6611
|
+
focusAnchorOnClose = DEFAULT_PROPS$U.focusAnchorOnClose,
|
|
6614
6612
|
onClose,
|
|
6615
6613
|
onInfiniteScroll,
|
|
6616
|
-
placement = DEFAULT_PROPS$
|
|
6617
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
6614
|
+
placement = DEFAULT_PROPS$U.placement,
|
|
6615
|
+
shouldFocusOnOpen = DEFAULT_PROPS$U.shouldFocusOnOpen,
|
|
6618
6616
|
zIndex,
|
|
6619
6617
|
...forwardedProps
|
|
6620
6618
|
} = props;
|
|
@@ -6660,7 +6658,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6660
6658
|
});
|
|
6661
6659
|
Dropdown.displayName = COMPONENT_NAME$Y;
|
|
6662
6660
|
Dropdown.className = CLASSNAME$Y;
|
|
6663
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
6661
|
+
Dropdown.defaultProps = DEFAULT_PROPS$U;
|
|
6664
6662
|
|
|
6665
6663
|
/**
|
|
6666
6664
|
* Component display name.
|
|
@@ -6679,7 +6677,7 @@ const {
|
|
|
6679
6677
|
/**
|
|
6680
6678
|
* Component default props.
|
|
6681
6679
|
*/
|
|
6682
|
-
const DEFAULT_PROPS$
|
|
6680
|
+
const DEFAULT_PROPS$T = {
|
|
6683
6681
|
closeMode: 'unmount'
|
|
6684
6682
|
};
|
|
6685
6683
|
const isDragHandle = isComponent(DragHandle);
|
|
@@ -6697,7 +6695,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6697
6695
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
6698
6696
|
const {
|
|
6699
6697
|
className,
|
|
6700
|
-
closeMode = DEFAULT_PROPS$
|
|
6698
|
+
closeMode = DEFAULT_PROPS$T.closeMode,
|
|
6701
6699
|
children: anyChildren,
|
|
6702
6700
|
hasBackground,
|
|
6703
6701
|
hasHeaderDivider,
|
|
@@ -6814,11 +6812,11 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6814
6812
|
});
|
|
6815
6813
|
ExpansionPanel.displayName = COMPONENT_NAME$X;
|
|
6816
6814
|
ExpansionPanel.className = CLASSNAME$X;
|
|
6817
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
6815
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$T;
|
|
6818
6816
|
|
|
6819
6817
|
const COMPONENT_NAME$W = 'Flag';
|
|
6820
6818
|
const CLASSNAME$W = 'lumx-flag';
|
|
6821
|
-
const DEFAULT_PROPS$
|
|
6819
|
+
const DEFAULT_PROPS$S = {};
|
|
6822
6820
|
const {
|
|
6823
6821
|
block: block$N,
|
|
6824
6822
|
element: element$B
|
|
@@ -6882,7 +6880,7 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6882
6880
|
});
|
|
6883
6881
|
Flag.displayName = COMPONENT_NAME$W;
|
|
6884
6882
|
Flag.className = CLASSNAME$W;
|
|
6885
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
6883
|
+
Flag.defaultProps = DEFAULT_PROPS$S;
|
|
6886
6884
|
|
|
6887
6885
|
/**
|
|
6888
6886
|
* Defines the props of the component.
|
|
@@ -6975,7 +6973,7 @@ const {
|
|
|
6975
6973
|
/**
|
|
6976
6974
|
* Component default props.
|
|
6977
6975
|
*/
|
|
6978
|
-
const DEFAULT_PROPS$
|
|
6976
|
+
const DEFAULT_PROPS$R = {
|
|
6979
6977
|
gap: Size$1.big,
|
|
6980
6978
|
orientation: Orientation$1.horizontal
|
|
6981
6979
|
};
|
|
@@ -7005,8 +7003,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7005
7003
|
children,
|
|
7006
7004
|
actions,
|
|
7007
7005
|
actionsProps,
|
|
7008
|
-
gap = DEFAULT_PROPS$
|
|
7009
|
-
orientation = DEFAULT_PROPS$
|
|
7006
|
+
gap = DEFAULT_PROPS$R.gap,
|
|
7007
|
+
orientation = DEFAULT_PROPS$R.orientation,
|
|
7010
7008
|
contentProps,
|
|
7011
7009
|
...forwardedProps
|
|
7012
7010
|
} = props;
|
|
@@ -7060,7 +7058,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7060
7058
|
});
|
|
7061
7059
|
BaseGenericBlock.displayName = COMPONENT_NAME$U;
|
|
7062
7060
|
BaseGenericBlock.className = CLASSNAME$U;
|
|
7063
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
7061
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$R;
|
|
7064
7062
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
7065
7063
|
Figure,
|
|
7066
7064
|
Content,
|
|
@@ -7108,7 +7106,7 @@ const CLASSNAME$T = 'lumx-heading';
|
|
|
7108
7106
|
/**
|
|
7109
7107
|
* Component default props.
|
|
7110
7108
|
*/
|
|
7111
|
-
const DEFAULT_PROPS$
|
|
7109
|
+
const DEFAULT_PROPS$Q = {};
|
|
7112
7110
|
|
|
7113
7111
|
/**
|
|
7114
7112
|
* Get Heading component common props
|
|
@@ -7209,7 +7207,7 @@ const {
|
|
|
7209
7207
|
/**
|
|
7210
7208
|
* Component default props.
|
|
7211
7209
|
*/
|
|
7212
|
-
const DEFAULT_PROPS$
|
|
7210
|
+
const DEFAULT_PROPS$P = {};
|
|
7213
7211
|
|
|
7214
7212
|
/**
|
|
7215
7213
|
* Text component common props
|
|
@@ -7296,7 +7294,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
7296
7294
|
});
|
|
7297
7295
|
Text.displayName = COMPONENT_NAME$S;
|
|
7298
7296
|
Text.className = CLASSNAME$S;
|
|
7299
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
7297
|
+
Text.defaultProps = DEFAULT_PROPS$P;
|
|
7300
7298
|
|
|
7301
7299
|
const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
|
|
7302
7300
|
|
|
@@ -7333,7 +7331,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
7333
7331
|
});
|
|
7334
7332
|
Heading.displayName = COMPONENT_NAME$T;
|
|
7335
7333
|
Heading.className = CLASSNAME$T;
|
|
7336
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
7334
|
+
Heading.defaultProps = DEFAULT_PROPS$Q;
|
|
7337
7335
|
|
|
7338
7336
|
/**
|
|
7339
7337
|
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
@@ -7384,7 +7382,7 @@ const {
|
|
|
7384
7382
|
/**
|
|
7385
7383
|
* Component default props.
|
|
7386
7384
|
*/
|
|
7387
|
-
const DEFAULT_PROPS$
|
|
7385
|
+
const DEFAULT_PROPS$O = {
|
|
7388
7386
|
orientation: Orientation$1.horizontal,
|
|
7389
7387
|
wrap: 'nowrap'
|
|
7390
7388
|
};
|
|
@@ -7402,9 +7400,9 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7402
7400
|
className,
|
|
7403
7401
|
gutter,
|
|
7404
7402
|
hAlign,
|
|
7405
|
-
orientation = DEFAULT_PROPS$
|
|
7403
|
+
orientation = DEFAULT_PROPS$O.orientation,
|
|
7406
7404
|
vAlign,
|
|
7407
|
-
wrap = DEFAULT_PROPS$
|
|
7405
|
+
wrap = DEFAULT_PROPS$O.wrap,
|
|
7408
7406
|
...forwardedProps
|
|
7409
7407
|
} = props;
|
|
7410
7408
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -7422,7 +7420,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7422
7420
|
});
|
|
7423
7421
|
Grid.displayName = COMPONENT_NAME$R;
|
|
7424
7422
|
Grid.className = CLASSNAME$R;
|
|
7425
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
7423
|
+
Grid.defaultProps = DEFAULT_PROPS$O;
|
|
7426
7424
|
|
|
7427
7425
|
/**
|
|
7428
7426
|
* Component display name.
|
|
@@ -7480,7 +7478,7 @@ const CLASSNAME$P = 'lumx-grid-column';
|
|
|
7480
7478
|
/**
|
|
7481
7479
|
* Component default props.
|
|
7482
7480
|
*/
|
|
7483
|
-
const DEFAULT_PROPS$
|
|
7481
|
+
const DEFAULT_PROPS$N = {};
|
|
7484
7482
|
|
|
7485
7483
|
/**
|
|
7486
7484
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7488,10 +7486,9 @@ const DEFAULT_PROPS$M = {};
|
|
|
7488
7486
|
* with a number of column that reduce when there is not enough space for each item.
|
|
7489
7487
|
*
|
|
7490
7488
|
* @param props Component props.
|
|
7491
|
-
* @
|
|
7492
|
-
* @return React element.
|
|
7489
|
+
* @return JSX element.
|
|
7493
7490
|
*/
|
|
7494
|
-
const GridColumn =
|
|
7491
|
+
const GridColumn$1 = props => {
|
|
7495
7492
|
const {
|
|
7496
7493
|
as: Component = 'div',
|
|
7497
7494
|
gap,
|
|
@@ -7500,12 +7497,13 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7500
7497
|
children,
|
|
7501
7498
|
className,
|
|
7502
7499
|
style = {},
|
|
7500
|
+
ref,
|
|
7503
7501
|
...forwardedProps
|
|
7504
7502
|
} = props;
|
|
7505
7503
|
return /*#__PURE__*/jsx(Component, {
|
|
7506
7504
|
...forwardedProps,
|
|
7507
7505
|
ref: ref,
|
|
7508
|
-
className:
|
|
7506
|
+
className: classnames(className, CLASSNAME$P),
|
|
7509
7507
|
style: {
|
|
7510
7508
|
...style,
|
|
7511
7509
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -7514,6 +7512,36 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7514
7512
|
},
|
|
7515
7513
|
children: children
|
|
7516
7514
|
});
|
|
7515
|
+
};
|
|
7516
|
+
GridColumn$1.displayName = COMPONENT_NAME$P;
|
|
7517
|
+
GridColumn$1.className = CLASSNAME$P;
|
|
7518
|
+
GridColumn$1.defaultProps = DEFAULT_PROPS$N;
|
|
7519
|
+
|
|
7520
|
+
/**
|
|
7521
|
+
* Defines the props of the component.
|
|
7522
|
+
*/
|
|
7523
|
+
|
|
7524
|
+
// Re-export types for backward compatibility
|
|
7525
|
+
|
|
7526
|
+
/**
|
|
7527
|
+
* Component default props.
|
|
7528
|
+
*/
|
|
7529
|
+
const DEFAULT_PROPS$M = {};
|
|
7530
|
+
|
|
7531
|
+
/**
|
|
7532
|
+
* The GridColumn is a layout component that can display children in a grid
|
|
7533
|
+
* with custom display properties. It also comes with a responsive design,
|
|
7534
|
+
* with a number of column that reduce when there is not enough space for each item.
|
|
7535
|
+
*
|
|
7536
|
+
* @param props Component props.
|
|
7537
|
+
* @param ref Component ref.
|
|
7538
|
+
* @return React element.
|
|
7539
|
+
*/
|
|
7540
|
+
const GridColumn = forwardRef((props, ref) => {
|
|
7541
|
+
return GridColumn$1({
|
|
7542
|
+
ref,
|
|
7543
|
+
...props
|
|
7544
|
+
});
|
|
7517
7545
|
});
|
|
7518
7546
|
GridColumn.displayName = COMPONENT_NAME$P;
|
|
7519
7547
|
GridColumn.className = CLASSNAME$P;
|
|
@@ -15304,5 +15332,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
15304
15332
|
UserBlock.className = CLASSNAME;
|
|
15305
15333
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
15306
15334
|
|
|
15307
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1e as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$
|
|
15335
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$1e as COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$16 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
15336
|
//# sourceMappingURL=index.js.map
|