@lumx/react 4.3.2-alpha.4 → 4.3.2-alpha.41
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 +239 -120
- package/index.js +561 -440
- package/index.js.map +1 -1
- package/package.json +13 -3
- package/utils/index.d.ts +1 -2
- package/utils/index.js +8 -8
package/index.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { Kind as Kind$1, Size as Size$1, ColorPalette as ColorPalette$1, Emphasis as Emphasis$1, Theme as Theme$1, AspectRatio as AspectRatio$1, ColorVariant, DIALOG_TRANSITION_DURATION, Orientation as Orientation$1, Alignment, NOTIFICATION_TRANSITION_DURATION, TOOLTIP_LONG_PRESS_DELAY, TOOLTIP_HOVER_DELAY } from '@lumx/core/js/constants
|
|
2
|
-
export * from '@lumx/core/js/constants
|
|
3
|
-
export * from '@lumx/core/js/types
|
|
1
|
+
import { Kind as Kind$1, Size as Size$1, ColorPalette as ColorPalette$1, Emphasis as Emphasis$1, Theme as Theme$1, AspectRatio as AspectRatio$1, ColorVariant, DIALOG_TRANSITION_DURATION, Orientation as Orientation$1, Alignment, NOTIFICATION_TRANSITION_DURATION, TOOLTIP_LONG_PRESS_DELAY, TOOLTIP_HOVER_DELAY } from '@lumx/core/js/constants';
|
|
2
|
+
export * from '@lumx/core/js/constants';
|
|
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
6
|
import { mdiAlert } from '@lumx/icons/esm/alert.js';
|
|
7
7
|
import { mdiAlertCircle } from '@lumx/icons/esm/alert-circle.js';
|
|
8
8
|
import { mdiCheckCircle } from '@lumx/icons/esm/check-circle.js';
|
|
9
9
|
import { mdiInformation } from '@lumx/icons/esm/information.js';
|
|
10
|
-
import { classNames, onEnterPressed, onEscapePressed, onButtonPressed, detectHorizontalSwipe } from '@lumx/core/js/utils
|
|
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';
|
|
21
|
-
import { getDisabledState } from '@lumx/core/js/utils/disabledState
|
|
20
|
+
import isEmpty from 'lodash/isEmpty.js';
|
|
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.
|
|
@@ -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
|
|
@@ -217,9 +217,9 @@ 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
|
-
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`.
|
|
@@ -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.
|
|
@@ -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 = {},
|
|
@@ -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
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
428
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$1a;
|
|
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.
|
|
@@ -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, {
|
|
@@ -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
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
553
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$19;
|
|
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.
|
|
@@ -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
|
|
@@ -625,9 +625,9 @@ 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
|
-
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
|
}
|
|
@@ -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.
|
|
@@ -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;
|
|
@@ -965,9 +963,9 @@ 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
|
-
Badge$1.defaultProps = DEFAULT_PROPS$
|
|
968
|
+
Badge$1.defaultProps = DEFAULT_PROPS$17;
|
|
971
969
|
|
|
972
970
|
/**
|
|
973
971
|
* Defines the props of the component.
|
|
@@ -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.
|
|
@@ -1191,7 +1191,7 @@ const {
|
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Component default props.
|
|
1193
1193
|
*/
|
|
1194
|
-
const DEFAULT_PROPS$
|
|
1194
|
+
const DEFAULT_PROPS$16 = {
|
|
1195
1195
|
emphasis: Emphasis.high,
|
|
1196
1196
|
size: Size.m
|
|
1197
1197
|
};
|
|
@@ -1205,10 +1205,10 @@ const DEFAULT_PROPS$15 = {
|
|
|
1205
1205
|
const Button$1 = props => {
|
|
1206
1206
|
const {
|
|
1207
1207
|
className,
|
|
1208
|
-
emphasis = DEFAULT_PROPS$
|
|
1208
|
+
emphasis = DEFAULT_PROPS$16.emphasis,
|
|
1209
1209
|
leftIcon,
|
|
1210
1210
|
rightIcon,
|
|
1211
|
-
size = DEFAULT_PROPS$
|
|
1211
|
+
size = DEFAULT_PROPS$16.size,
|
|
1212
1212
|
...forwardedProps
|
|
1213
1213
|
} = props;
|
|
1214
1214
|
const buttonClassName = classnames(className, modifier({
|
|
@@ -1223,9 +1223,9 @@ 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
|
-
Button$1.defaultProps = DEFAULT_PROPS$
|
|
1228
|
+
Button$1.defaultProps = DEFAULT_PROPS$16;
|
|
1229
1229
|
|
|
1230
1230
|
/**
|
|
1231
1231
|
* Properties of a component to use to determine it's name.
|
|
@@ -1257,6 +1257,10 @@ const Button = forwardRef((props, ref) => {
|
|
|
1257
1257
|
disabledStateProps,
|
|
1258
1258
|
otherProps
|
|
1259
1259
|
} = useDisableStateProps(props);
|
|
1260
|
+
const {
|
|
1261
|
+
onClick,
|
|
1262
|
+
...restOfOtherProps
|
|
1263
|
+
} = otherProps;
|
|
1260
1264
|
const {
|
|
1261
1265
|
leftIcon,
|
|
1262
1266
|
rightIcon,
|
|
@@ -1266,8 +1270,9 @@ const Button = forwardRef((props, ref) => {
|
|
|
1266
1270
|
ref,
|
|
1267
1271
|
theme: defaultTheme,
|
|
1268
1272
|
...disabledStateProps,
|
|
1269
|
-
...
|
|
1273
|
+
...restOfOtherProps,
|
|
1270
1274
|
'aria-disabled': isAnyDisabled,
|
|
1275
|
+
handleClick: onClick,
|
|
1271
1276
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
1272
1277
|
children: [leftIcon && !isEmpty(leftIcon) &&
|
|
1273
1278
|
/*#__PURE__*/
|
|
@@ -1291,11 +1296,11 @@ const Button = forwardRef((props, ref) => {
|
|
|
1291
1296
|
})
|
|
1292
1297
|
});
|
|
1293
1298
|
});
|
|
1294
|
-
Button.displayName = COMPONENT_NAME$
|
|
1299
|
+
Button.displayName = COMPONENT_NAME$1d;
|
|
1295
1300
|
Button.className = CLASSNAME$1d;
|
|
1296
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1301
|
+
Button.defaultProps = DEFAULT_PROPS$16;
|
|
1297
1302
|
|
|
1298
|
-
const COMPONENT_NAME$
|
|
1303
|
+
const COMPONENT_NAME$1c = 'Icon';
|
|
1299
1304
|
const IconClassName = 'lumx-icon';
|
|
1300
1305
|
|
|
1301
1306
|
/**
|
|
@@ -1310,7 +1315,7 @@ const {
|
|
|
1310
1315
|
/**
|
|
1311
1316
|
* Component default props.
|
|
1312
1317
|
*/
|
|
1313
|
-
const DEFAULT_PROPS$
|
|
1318
|
+
const DEFAULT_PROPS$15 = {};
|
|
1314
1319
|
|
|
1315
1320
|
/**
|
|
1316
1321
|
* Icon component.
|
|
@@ -1388,14 +1393,14 @@ const Icon$1 = props => {
|
|
|
1388
1393
|
})
|
|
1389
1394
|
});
|
|
1390
1395
|
};
|
|
1391
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1396
|
+
Icon$1.displayName = COMPONENT_NAME$1c;
|
|
1392
1397
|
Icon$1.className = CLASSNAME$1c;
|
|
1393
|
-
Icon$1.defaultProps = DEFAULT_PROPS$
|
|
1398
|
+
Icon$1.defaultProps = DEFAULT_PROPS$15;
|
|
1394
1399
|
|
|
1395
1400
|
/**
|
|
1396
1401
|
* Component display name.
|
|
1397
1402
|
*/
|
|
1398
|
-
const COMPONENT_NAME$
|
|
1403
|
+
const COMPONENT_NAME$1b = 'IconButton';
|
|
1399
1404
|
|
|
1400
1405
|
/**
|
|
1401
1406
|
* Component default class name and class prefix.
|
|
@@ -1405,7 +1410,7 @@ const CLASSNAME$1b = 'lumx-icon-button';
|
|
|
1405
1410
|
/**
|
|
1406
1411
|
* Component default props.
|
|
1407
1412
|
*/
|
|
1408
|
-
const DEFAULT_PROPS$
|
|
1413
|
+
const DEFAULT_PROPS$14 = {
|
|
1409
1414
|
emphasis: Emphasis.high,
|
|
1410
1415
|
size: Size.m
|
|
1411
1416
|
};
|
|
@@ -1418,11 +1423,11 @@ const DEFAULT_PROPS$13 = {
|
|
|
1418
1423
|
*/
|
|
1419
1424
|
const IconButton$1 = props => {
|
|
1420
1425
|
const {
|
|
1421
|
-
emphasis = DEFAULT_PROPS$
|
|
1426
|
+
emphasis = DEFAULT_PROPS$14.emphasis,
|
|
1422
1427
|
image,
|
|
1423
1428
|
icon,
|
|
1424
1429
|
label,
|
|
1425
|
-
size = DEFAULT_PROPS$
|
|
1430
|
+
size = DEFAULT_PROPS$14.size,
|
|
1426
1431
|
...forwardedProps
|
|
1427
1432
|
} = props;
|
|
1428
1433
|
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
@@ -1441,9 +1446,9 @@ const IconButton$1 = props => {
|
|
|
1441
1446
|
children: defaultChildren
|
|
1442
1447
|
});
|
|
1443
1448
|
};
|
|
1444
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1449
|
+
IconButton$1.displayName = COMPONENT_NAME$1b;
|
|
1445
1450
|
IconButton$1.className = CLASSNAME$1b;
|
|
1446
|
-
IconButton$1.defaultProps = DEFAULT_PROPS$
|
|
1451
|
+
IconButton$1.defaultProps = DEFAULT_PROPS$14;
|
|
1447
1452
|
|
|
1448
1453
|
/**
|
|
1449
1454
|
* IconButton component.
|
|
@@ -1465,6 +1470,10 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1465
1470
|
disabledStateProps,
|
|
1466
1471
|
otherProps
|
|
1467
1472
|
} = useDisableStateProps(forwardedProps);
|
|
1473
|
+
const {
|
|
1474
|
+
onClick,
|
|
1475
|
+
...restOfOtherProps
|
|
1476
|
+
} = otherProps;
|
|
1468
1477
|
return /*#__PURE__*/jsx(Tooltip, {
|
|
1469
1478
|
label: hideTooltip ? '' : label,
|
|
1470
1479
|
...tooltipProps,
|
|
@@ -1472,20 +1481,21 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1472
1481
|
ref,
|
|
1473
1482
|
theme: defaultTheme,
|
|
1474
1483
|
...disabledStateProps,
|
|
1475
|
-
...
|
|
1484
|
+
...restOfOtherProps,
|
|
1485
|
+
handleClick: onClick,
|
|
1476
1486
|
'aria-disabled': isAnyDisabled,
|
|
1477
1487
|
label
|
|
1478
1488
|
})
|
|
1479
1489
|
});
|
|
1480
1490
|
});
|
|
1481
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1491
|
+
IconButton.displayName = COMPONENT_NAME$1b;
|
|
1482
1492
|
IconButton.className = CLASSNAME$1b;
|
|
1483
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1493
|
+
IconButton.defaultProps = DEFAULT_PROPS$14;
|
|
1484
1494
|
|
|
1485
1495
|
/**
|
|
1486
1496
|
* Component display name.
|
|
1487
1497
|
*/
|
|
1488
|
-
const COMPONENT_NAME$
|
|
1498
|
+
const COMPONENT_NAME$1a = 'ButtonGroup';
|
|
1489
1499
|
|
|
1490
1500
|
/**
|
|
1491
1501
|
* Component default class name and class prefix.
|
|
@@ -1495,7 +1505,7 @@ const CLASSNAME$1a = 'lumx-button-group';
|
|
|
1495
1505
|
/**
|
|
1496
1506
|
* Component default props.
|
|
1497
1507
|
*/
|
|
1498
|
-
const DEFAULT_PROPS$
|
|
1508
|
+
const DEFAULT_PROPS$13 = {};
|
|
1499
1509
|
|
|
1500
1510
|
/**
|
|
1501
1511
|
* ButtonGroup component.
|
|
@@ -1515,9 +1525,9 @@ const ButtonGroup$1 = props => {
|
|
|
1515
1525
|
children: children
|
|
1516
1526
|
});
|
|
1517
1527
|
};
|
|
1518
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1528
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1a;
|
|
1519
1529
|
ButtonGroup$1.className = CLASSNAME$1a;
|
|
1520
|
-
ButtonGroup$1.defaultProps = DEFAULT_PROPS$
|
|
1530
|
+
ButtonGroup$1.defaultProps = DEFAULT_PROPS$13;
|
|
1521
1531
|
|
|
1522
1532
|
/**
|
|
1523
1533
|
* ButtonGroup component.
|
|
@@ -1532,17 +1542,17 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1532
1542
|
...props
|
|
1533
1543
|
});
|
|
1534
1544
|
});
|
|
1535
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1545
|
+
ButtonGroup.displayName = COMPONENT_NAME$1a;
|
|
1536
1546
|
ButtonGroup.className = CLASSNAME$1a;
|
|
1537
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1547
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$13;
|
|
1538
1548
|
|
|
1539
|
-
const COMPONENT_NAME$
|
|
1549
|
+
const COMPONENT_NAME$19 = 'InputLabel';
|
|
1540
1550
|
const InputLabelClassName = 'lumx-input-label';
|
|
1541
1551
|
const CLASSNAME$19 = InputLabelClassName;
|
|
1542
1552
|
const {
|
|
1543
1553
|
block: block$_
|
|
1544
1554
|
} = bem(CLASSNAME$19);
|
|
1545
|
-
const DEFAULT_PROPS$
|
|
1555
|
+
const DEFAULT_PROPS$12 = {};
|
|
1546
1556
|
|
|
1547
1557
|
/**
|
|
1548
1558
|
* InputLabel component.
|
|
@@ -1570,9 +1580,9 @@ function InputLabel$1(props) {
|
|
|
1570
1580
|
children: children
|
|
1571
1581
|
});
|
|
1572
1582
|
}
|
|
1573
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1583
|
+
InputLabel$1.displayName = COMPONENT_NAME$19;
|
|
1574
1584
|
InputLabel$1.className = CLASSNAME$19;
|
|
1575
|
-
InputLabel$1.defaultProps = DEFAULT_PROPS$
|
|
1585
|
+
InputLabel$1.defaultProps = DEFAULT_PROPS$12;
|
|
1576
1586
|
|
|
1577
1587
|
const INPUT_HELPER_CONFIGURATION = {
|
|
1578
1588
|
[Kind.error]: {
|
|
@@ -1586,7 +1596,7 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1586
1596
|
}
|
|
1587
1597
|
};
|
|
1588
1598
|
|
|
1589
|
-
const COMPONENT_NAME$
|
|
1599
|
+
const COMPONENT_NAME$18 = 'InputHelper';
|
|
1590
1600
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1591
1601
|
|
|
1592
1602
|
/**
|
|
@@ -1601,7 +1611,7 @@ const {
|
|
|
1601
1611
|
/**
|
|
1602
1612
|
* Component default props.
|
|
1603
1613
|
*/
|
|
1604
|
-
const DEFAULT_PROPS$
|
|
1614
|
+
const DEFAULT_PROPS$11 = {
|
|
1605
1615
|
kind: Kind.info
|
|
1606
1616
|
};
|
|
1607
1617
|
|
|
@@ -1612,7 +1622,7 @@ function InputHelper$1(props) {
|
|
|
1612
1622
|
const {
|
|
1613
1623
|
children,
|
|
1614
1624
|
className,
|
|
1615
|
-
kind = DEFAULT_PROPS$
|
|
1625
|
+
kind = DEFAULT_PROPS$11.kind,
|
|
1616
1626
|
theme,
|
|
1617
1627
|
ref,
|
|
1618
1628
|
...forwardedProps
|
|
@@ -1630,9 +1640,9 @@ function InputHelper$1(props) {
|
|
|
1630
1640
|
children: children
|
|
1631
1641
|
});
|
|
1632
1642
|
}
|
|
1633
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1643
|
+
InputHelper$1.displayName = COMPONENT_NAME$18;
|
|
1634
1644
|
InputHelper$1.className = CLASSNAME$18;
|
|
1635
|
-
InputHelper$1.defaultProps = DEFAULT_PROPS$
|
|
1645
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$11;
|
|
1636
1646
|
|
|
1637
1647
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1638
1648
|
|
|
@@ -1643,7 +1653,7 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1643
1653
|
/**
|
|
1644
1654
|
* Component display name.
|
|
1645
1655
|
*/
|
|
1646
|
-
const COMPONENT_NAME$
|
|
1656
|
+
const COMPONENT_NAME$17 = 'Checkbox';
|
|
1647
1657
|
|
|
1648
1658
|
/**
|
|
1649
1659
|
* Component default class name and class prefix.
|
|
@@ -1671,7 +1681,7 @@ const Checkbox$1 = props => {
|
|
|
1671
1681
|
label,
|
|
1672
1682
|
name,
|
|
1673
1683
|
ref,
|
|
1674
|
-
|
|
1684
|
+
handleChange,
|
|
1675
1685
|
theme,
|
|
1676
1686
|
value,
|
|
1677
1687
|
inputProps = {},
|
|
@@ -1680,9 +1690,9 @@ const Checkbox$1 = props => {
|
|
|
1680
1690
|
...forwardedProps
|
|
1681
1691
|
} = props;
|
|
1682
1692
|
const intermediateState = isChecked === INTERMEDIATE_STATE;
|
|
1683
|
-
const
|
|
1684
|
-
if (
|
|
1685
|
-
|
|
1693
|
+
const handleOnChange = event => {
|
|
1694
|
+
if (handleChange) {
|
|
1695
|
+
handleChange(!isChecked, value, name, event);
|
|
1686
1696
|
}
|
|
1687
1697
|
};
|
|
1688
1698
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -1705,7 +1715,7 @@ const Checkbox$1 = props => {
|
|
|
1705
1715
|
name: name,
|
|
1706
1716
|
value: value,
|
|
1707
1717
|
checked: isChecked,
|
|
1708
|
-
onChange:
|
|
1718
|
+
onChange: handleOnChange,
|
|
1709
1719
|
"aria-describedby": helper ? `${inputId}-helper` : undefined,
|
|
1710
1720
|
"aria-checked": intermediateState ? 'mixed' : Boolean(isChecked),
|
|
1711
1721
|
...(inputProps?.readOnly ? {
|
|
@@ -1747,7 +1757,7 @@ const Checkbox$1 = props => {
|
|
|
1747
1757
|
/**
|
|
1748
1758
|
* Component default props.
|
|
1749
1759
|
*/
|
|
1750
|
-
const DEFAULT_PROPS
|
|
1760
|
+
const DEFAULT_PROPS$10 = {};
|
|
1751
1761
|
|
|
1752
1762
|
/**
|
|
1753
1763
|
* Checkbox component.
|
|
@@ -1794,7 +1804,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1794
1804
|
isChecked,
|
|
1795
1805
|
label,
|
|
1796
1806
|
name,
|
|
1797
|
-
onChange,
|
|
1807
|
+
handleChange: onChange,
|
|
1798
1808
|
theme,
|
|
1799
1809
|
value,
|
|
1800
1810
|
inputProps: {
|
|
@@ -1807,9 +1817,9 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1807
1817
|
inputId
|
|
1808
1818
|
});
|
|
1809
1819
|
});
|
|
1810
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
1820
|
+
Checkbox.displayName = COMPONENT_NAME$17;
|
|
1811
1821
|
Checkbox.className = CLASSNAME$17;
|
|
1812
|
-
Checkbox.defaultProps = DEFAULT_PROPS
|
|
1822
|
+
Checkbox.defaultProps = DEFAULT_PROPS$10;
|
|
1813
1823
|
|
|
1814
1824
|
/**
|
|
1815
1825
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -1830,7 +1840,7 @@ function useStopPropagation(handler) {
|
|
|
1830
1840
|
/**
|
|
1831
1841
|
* Component display name.
|
|
1832
1842
|
*/
|
|
1833
|
-
const COMPONENT_NAME$
|
|
1843
|
+
const COMPONENT_NAME$16 = 'Chip';
|
|
1834
1844
|
|
|
1835
1845
|
/**
|
|
1836
1846
|
* Component default class name and class prefix.
|
|
@@ -1844,7 +1854,7 @@ const {
|
|
|
1844
1854
|
/**
|
|
1845
1855
|
* Component default props.
|
|
1846
1856
|
*/
|
|
1847
|
-
const DEFAULT_PROPS
|
|
1857
|
+
const DEFAULT_PROPS$$ = {
|
|
1848
1858
|
size: Size$1.m
|
|
1849
1859
|
};
|
|
1850
1860
|
|
|
@@ -1874,7 +1884,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1874
1884
|
onAfterClick,
|
|
1875
1885
|
onBeforeClick,
|
|
1876
1886
|
onClick,
|
|
1877
|
-
size = DEFAULT_PROPS
|
|
1887
|
+
size = DEFAULT_PROPS$$.size,
|
|
1878
1888
|
theme = defaultTheme,
|
|
1879
1889
|
href,
|
|
1880
1890
|
onKeyDown,
|
|
@@ -1944,9 +1954,9 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1944
1954
|
})
|
|
1945
1955
|
);
|
|
1946
1956
|
});
|
|
1947
|
-
Chip.displayName = COMPONENT_NAME$
|
|
1957
|
+
Chip.displayName = COMPONENT_NAME$16;
|
|
1948
1958
|
Chip.className = CLASSNAME$16;
|
|
1949
|
-
Chip.defaultProps = DEFAULT_PROPS
|
|
1959
|
+
Chip.defaultProps = DEFAULT_PROPS$$;
|
|
1950
1960
|
|
|
1951
1961
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
1952
1962
|
|
|
@@ -2002,12 +2012,12 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
|
|
|
2002
2012
|
/**
|
|
2003
2013
|
* Component default props.
|
|
2004
2014
|
*/
|
|
2005
|
-
const DEFAULT_PROPS$
|
|
2015
|
+
const DEFAULT_PROPS$_ = {};
|
|
2006
2016
|
|
|
2007
2017
|
/**
|
|
2008
2018
|
* Component display name.
|
|
2009
2019
|
*/
|
|
2010
|
-
const COMPONENT_NAME$
|
|
2020
|
+
const COMPONENT_NAME$15 = 'ChipGroup';
|
|
2011
2021
|
|
|
2012
2022
|
/**
|
|
2013
2023
|
* Component default class name and class prefix.
|
|
@@ -2035,9 +2045,9 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2035
2045
|
children: children
|
|
2036
2046
|
});
|
|
2037
2047
|
});
|
|
2038
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2048
|
+
InternalChipGroup.displayName = COMPONENT_NAME$15;
|
|
2039
2049
|
InternalChipGroup.className = CLASSNAME$15;
|
|
2040
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2050
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$_;
|
|
2041
2051
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2042
2052
|
useChipGroupNavigation
|
|
2043
2053
|
});
|
|
@@ -2235,7 +2245,7 @@ const CommentBlockVariant = {
|
|
|
2235
2245
|
/**
|
|
2236
2246
|
* Component display name.
|
|
2237
2247
|
*/
|
|
2238
|
-
const COMPONENT_NAME$
|
|
2248
|
+
const COMPONENT_NAME$14 = 'CommentBlock';
|
|
2239
2249
|
|
|
2240
2250
|
/**
|
|
2241
2251
|
* Component default class name and class prefix.
|
|
@@ -2249,7 +2259,7 @@ const {
|
|
|
2249
2259
|
/**
|
|
2250
2260
|
* Component default props.
|
|
2251
2261
|
*/
|
|
2252
|
-
const DEFAULT_PROPS$
|
|
2262
|
+
const DEFAULT_PROPS$Z = {
|
|
2253
2263
|
variant: CommentBlockVariant.indented
|
|
2254
2264
|
};
|
|
2255
2265
|
|
|
@@ -2279,7 +2289,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2279
2289
|
onMouseLeave,
|
|
2280
2290
|
text,
|
|
2281
2291
|
theme = defaultTheme,
|
|
2282
|
-
variant = DEFAULT_PROPS$
|
|
2292
|
+
variant = DEFAULT_PROPS$Z.variant,
|
|
2283
2293
|
...forwardedProps
|
|
2284
2294
|
} = props;
|
|
2285
2295
|
const hasChildren = Children.count(children) > 0;
|
|
@@ -2346,9 +2356,9 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2346
2356
|
})]
|
|
2347
2357
|
});
|
|
2348
2358
|
});
|
|
2349
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
2359
|
+
CommentBlock.displayName = COMPONENT_NAME$14;
|
|
2350
2360
|
CommentBlock.className = CLASSNAME$13;
|
|
2351
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
2361
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$Z;
|
|
2352
2362
|
|
|
2353
2363
|
/**
|
|
2354
2364
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -2368,7 +2378,7 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
2368
2378
|
/**
|
|
2369
2379
|
* Component display name.
|
|
2370
2380
|
*/
|
|
2371
|
-
const COMPONENT_NAME$
|
|
2381
|
+
const COMPONENT_NAME$13 = 'DatePicker';
|
|
2372
2382
|
|
|
2373
2383
|
/**
|
|
2374
2384
|
* Component default class name and class prefix.
|
|
@@ -2602,7 +2612,7 @@ const {
|
|
|
2602
2612
|
/**
|
|
2603
2613
|
* Component display name.
|
|
2604
2614
|
*/
|
|
2605
|
-
const COMPONENT_NAME$
|
|
2615
|
+
const COMPONENT_NAME$12 = 'DatePickerControlled';
|
|
2606
2616
|
|
|
2607
2617
|
/**
|
|
2608
2618
|
* DatePickerControlled component.
|
|
@@ -2792,7 +2802,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2792
2802
|
})]
|
|
2793
2803
|
});
|
|
2794
2804
|
});
|
|
2795
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
2805
|
+
DatePickerControlled.displayName = COMPONENT_NAME$12;
|
|
2796
2806
|
DatePickerControlled.className = CLASSNAME$12;
|
|
2797
2807
|
|
|
2798
2808
|
/**
|
|
@@ -2835,7 +2845,7 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
2835
2845
|
onMonthChange: setSelectedMonth
|
|
2836
2846
|
});
|
|
2837
2847
|
});
|
|
2838
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
2848
|
+
DatePicker.displayName = COMPONENT_NAME$13;
|
|
2839
2849
|
DatePicker.className = CLASSNAME$12;
|
|
2840
2850
|
|
|
2841
2851
|
const useBooleanState = defaultValue => {
|
|
@@ -2849,7 +2859,7 @@ const useBooleanState = defaultValue => {
|
|
|
2849
2859
|
/**
|
|
2850
2860
|
* Component display name.
|
|
2851
2861
|
*/
|
|
2852
|
-
const COMPONENT_NAME$
|
|
2862
|
+
const COMPONENT_NAME$11 = 'DatePickerField';
|
|
2853
2863
|
|
|
2854
2864
|
/**
|
|
2855
2865
|
* DatePickerField component.
|
|
@@ -2938,7 +2948,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
2938
2948
|
}) : null]
|
|
2939
2949
|
});
|
|
2940
2950
|
});
|
|
2941
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
2951
|
+
DatePickerField.displayName = COMPONENT_NAME$11;
|
|
2942
2952
|
|
|
2943
2953
|
/**
|
|
2944
2954
|
* Optional global `window` instance (not defined when running SSR).
|
|
@@ -3439,7 +3449,7 @@ const isFooter$1 = isComponent('footer');
|
|
|
3439
3449
|
/**
|
|
3440
3450
|
* Component display name.
|
|
3441
3451
|
*/
|
|
3442
|
-
const COMPONENT_NAME$
|
|
3452
|
+
const COMPONENT_NAME$10 = 'Dialog';
|
|
3443
3453
|
|
|
3444
3454
|
/**
|
|
3445
3455
|
* Component default class name and class prefix.
|
|
@@ -3453,7 +3463,7 @@ const {
|
|
|
3453
3463
|
/**
|
|
3454
3464
|
* Component default props.
|
|
3455
3465
|
*/
|
|
3456
|
-
const DEFAULT_PROPS$
|
|
3466
|
+
const DEFAULT_PROPS$Y = {
|
|
3457
3467
|
size: Size$1.big,
|
|
3458
3468
|
disableBodyScroll: true
|
|
3459
3469
|
};
|
|
@@ -3484,11 +3494,11 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3484
3494
|
parentElement,
|
|
3485
3495
|
contentRef,
|
|
3486
3496
|
preventAutoClose,
|
|
3487
|
-
size = DEFAULT_PROPS$
|
|
3497
|
+
size = DEFAULT_PROPS$Y.size,
|
|
3488
3498
|
zIndex,
|
|
3489
3499
|
dialogProps,
|
|
3490
3500
|
onVisibilityChange,
|
|
3491
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
3501
|
+
disableBodyScroll = DEFAULT_PROPS$Y.disableBodyScroll,
|
|
3492
3502
|
preventCloseOnClick,
|
|
3493
3503
|
preventCloseOnEscape,
|
|
3494
3504
|
...forwardedProps
|
|
@@ -3626,14 +3636,14 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3626
3636
|
})
|
|
3627
3637
|
}) : null;
|
|
3628
3638
|
});
|
|
3629
|
-
Dialog.displayName = COMPONENT_NAME$
|
|
3639
|
+
Dialog.displayName = COMPONENT_NAME$10;
|
|
3630
3640
|
Dialog.className = CLASSNAME$11;
|
|
3631
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
3641
|
+
Dialog.defaultProps = DEFAULT_PROPS$Y;
|
|
3632
3642
|
|
|
3633
3643
|
/**
|
|
3634
3644
|
* Component display name.
|
|
3635
3645
|
*/
|
|
3636
|
-
const COMPONENT_NAME
|
|
3646
|
+
const COMPONENT_NAME$$ = 'Divider';
|
|
3637
3647
|
|
|
3638
3648
|
/**
|
|
3639
3649
|
* Component default class name and class prefix.
|
|
@@ -3672,7 +3682,7 @@ const Divider$1 = props => {
|
|
|
3672
3682
|
/**
|
|
3673
3683
|
* Component default props.
|
|
3674
3684
|
*/
|
|
3675
|
-
const DEFAULT_PROPS$
|
|
3685
|
+
const DEFAULT_PROPS$X = {};
|
|
3676
3686
|
|
|
3677
3687
|
/**
|
|
3678
3688
|
* Divider component.
|
|
@@ -3693,14 +3703,14 @@ const Divider = forwardRef((props, ref) => {
|
|
|
3693
3703
|
...otherProps
|
|
3694
3704
|
});
|
|
3695
3705
|
});
|
|
3696
|
-
Divider.displayName = COMPONENT_NAME
|
|
3706
|
+
Divider.displayName = COMPONENT_NAME$$;
|
|
3697
3707
|
Divider.className = CLASSNAME$10;
|
|
3698
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
3708
|
+
Divider.defaultProps = DEFAULT_PROPS$X;
|
|
3699
3709
|
|
|
3700
3710
|
/**
|
|
3701
3711
|
* Component display name.
|
|
3702
3712
|
*/
|
|
3703
|
-
const COMPONENT_NAME
|
|
3713
|
+
const COMPONENT_NAME$_ = 'DragHandle';
|
|
3704
3714
|
|
|
3705
3715
|
/**
|
|
3706
3716
|
* Component default class name and class prefix.
|
|
@@ -3737,7 +3747,7 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
3737
3747
|
})
|
|
3738
3748
|
});
|
|
3739
3749
|
});
|
|
3740
|
-
DragHandle.displayName = COMPONENT_NAME
|
|
3750
|
+
DragHandle.displayName = COMPONENT_NAME$_;
|
|
3741
3751
|
DragHandle.className = CLASSNAME$$;
|
|
3742
3752
|
|
|
3743
3753
|
const INITIAL_INDEX = -1;
|
|
@@ -3907,7 +3917,7 @@ const useKeyboardListNavigation = (items, ref, onListItemSelected, onListItemNav
|
|
|
3907
3917
|
/**
|
|
3908
3918
|
* Component display name.
|
|
3909
3919
|
*/
|
|
3910
|
-
const COMPONENT_NAME$
|
|
3920
|
+
const COMPONENT_NAME$Z = 'List';
|
|
3911
3921
|
|
|
3912
3922
|
/**
|
|
3913
3923
|
* Component default class name and class prefix.
|
|
@@ -3920,7 +3930,7 @@ const {
|
|
|
3920
3930
|
/**
|
|
3921
3931
|
* Component default props.
|
|
3922
3932
|
*/
|
|
3923
|
-
const DEFAULT_PROPS$
|
|
3933
|
+
const DEFAULT_PROPS$W = {
|
|
3924
3934
|
tabIndex: -1
|
|
3925
3935
|
};
|
|
3926
3936
|
|
|
@@ -3939,7 +3949,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3939
3949
|
isClickable,
|
|
3940
3950
|
itemPadding,
|
|
3941
3951
|
onListItemSelected,
|
|
3942
|
-
tabIndex = DEFAULT_PROPS$
|
|
3952
|
+
tabIndex = DEFAULT_PROPS$W.tabIndex,
|
|
3943
3953
|
...forwardedProps
|
|
3944
3954
|
} = props;
|
|
3945
3955
|
const adjustedItemPadding = itemPadding ?? (isClickable ? Size$1.big : undefined);
|
|
@@ -3953,9 +3963,9 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3953
3963
|
children: children
|
|
3954
3964
|
});
|
|
3955
3965
|
});
|
|
3956
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
3966
|
+
InternalList.displayName = COMPONENT_NAME$Z;
|
|
3957
3967
|
InternalList.className = CLASSNAME$_;
|
|
3958
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
3968
|
+
InternalList.defaultProps = DEFAULT_PROPS$W;
|
|
3959
3969
|
const List = Object.assign(InternalList, {
|
|
3960
3970
|
useKeyboardListNavigation
|
|
3961
3971
|
});
|
|
@@ -4074,7 +4084,7 @@ function getNodeName(element) {
|
|
|
4074
4084
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
4075
4085
|
}
|
|
4076
4086
|
|
|
4077
|
-
/*:: import type { Window } from '../types
|
|
4087
|
+
/*:: import type { Window } from '../types'; */
|
|
4078
4088
|
|
|
4079
4089
|
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
4080
4090
|
function getWindow(node) {
|
|
@@ -6386,7 +6396,7 @@ function usePopoverStyle({
|
|
|
6386
6396
|
/**
|
|
6387
6397
|
* Component display name.
|
|
6388
6398
|
*/
|
|
6389
|
-
const COMPONENT_NAME$
|
|
6399
|
+
const COMPONENT_NAME$Y = 'Popover';
|
|
6390
6400
|
|
|
6391
6401
|
/**
|
|
6392
6402
|
* Component default class name and class prefix.
|
|
@@ -6400,7 +6410,7 @@ const {
|
|
|
6400
6410
|
/**
|
|
6401
6411
|
* Component default props.
|
|
6402
6412
|
*/
|
|
6403
|
-
const DEFAULT_PROPS$
|
|
6413
|
+
const DEFAULT_PROPS$V = {
|
|
6404
6414
|
elevation: 3,
|
|
6405
6415
|
placement: Placement.AUTO,
|
|
6406
6416
|
focusAnchorOnClose: true,
|
|
@@ -6417,24 +6427,24 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6417
6427
|
className,
|
|
6418
6428
|
closeOnClickAway,
|
|
6419
6429
|
closeOnEscape,
|
|
6420
|
-
elevation = DEFAULT_PROPS$
|
|
6430
|
+
elevation = DEFAULT_PROPS$V.elevation,
|
|
6421
6431
|
focusElement,
|
|
6422
6432
|
hasArrow,
|
|
6423
6433
|
isOpen,
|
|
6424
6434
|
onClose,
|
|
6425
6435
|
parentElement,
|
|
6426
|
-
usePortal = DEFAULT_PROPS$
|
|
6427
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6436
|
+
usePortal = DEFAULT_PROPS$V.usePortal,
|
|
6437
|
+
focusAnchorOnClose = DEFAULT_PROPS$V.focusAnchorOnClose,
|
|
6428
6438
|
withFocusTrap,
|
|
6429
6439
|
boundaryRef,
|
|
6430
6440
|
fitToAnchorWidth,
|
|
6431
6441
|
fitWithinViewportHeight,
|
|
6432
6442
|
focusTrapZoneElement,
|
|
6433
6443
|
offset,
|
|
6434
|
-
placement = DEFAULT_PROPS$
|
|
6444
|
+
placement = DEFAULT_PROPS$V.placement,
|
|
6435
6445
|
style,
|
|
6436
6446
|
theme,
|
|
6437
|
-
zIndex = DEFAULT_PROPS$
|
|
6447
|
+
zIndex = DEFAULT_PROPS$V.zIndex,
|
|
6438
6448
|
...forwardedProps
|
|
6439
6449
|
} = props;
|
|
6440
6450
|
const popoverRef = useRef(null);
|
|
@@ -6506,7 +6516,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6506
6516
|
})
|
|
6507
6517
|
}) : null;
|
|
6508
6518
|
});
|
|
6509
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
6519
|
+
_InnerPopover.displayName = COMPONENT_NAME$Y;
|
|
6510
6520
|
|
|
6511
6521
|
/**
|
|
6512
6522
|
* Popover component.
|
|
@@ -6518,9 +6528,9 @@ _InnerPopover.displayName = COMPONENT_NAME$Z;
|
|
|
6518
6528
|
const Popover = skipRender(
|
|
6519
6529
|
// Skip render in SSR
|
|
6520
6530
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
6521
|
-
Popover.displayName = COMPONENT_NAME$
|
|
6531
|
+
Popover.displayName = COMPONENT_NAME$Y;
|
|
6522
6532
|
Popover.className = CLASSNAME$Z;
|
|
6523
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
6533
|
+
Popover.defaultProps = DEFAULT_PROPS$V;
|
|
6524
6534
|
|
|
6525
6535
|
// The error margin in px we want to have for triggering infinite scroll
|
|
6526
6536
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -6566,7 +6576,7 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
|
|
|
6566
6576
|
/**
|
|
6567
6577
|
* Component display name.
|
|
6568
6578
|
*/
|
|
6569
|
-
const COMPONENT_NAME$
|
|
6579
|
+
const COMPONENT_NAME$X = 'Dropdown';
|
|
6570
6580
|
|
|
6571
6581
|
/**
|
|
6572
6582
|
* Component default class name and class prefix.
|
|
@@ -6580,7 +6590,7 @@ const {
|
|
|
6580
6590
|
/**
|
|
6581
6591
|
* Component default props.
|
|
6582
6592
|
*/
|
|
6583
|
-
const DEFAULT_PROPS$
|
|
6593
|
+
const DEFAULT_PROPS$U = {
|
|
6584
6594
|
closeOnClick: true,
|
|
6585
6595
|
closeOnClickAway: true,
|
|
6586
6596
|
closeOnEscape: true,
|
|
@@ -6603,18 +6613,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6603
6613
|
anchorRef,
|
|
6604
6614
|
children,
|
|
6605
6615
|
className,
|
|
6606
|
-
closeOnClick = DEFAULT_PROPS$
|
|
6607
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
6608
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
6609
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
6610
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
6616
|
+
closeOnClick = DEFAULT_PROPS$U.closeOnClick,
|
|
6617
|
+
closeOnClickAway = DEFAULT_PROPS$U.closeOnClickAway,
|
|
6618
|
+
closeOnEscape = DEFAULT_PROPS$U.closeOnEscape,
|
|
6619
|
+
fitToAnchorWidth = DEFAULT_PROPS$U.fitToAnchorWidth,
|
|
6620
|
+
fitWithinViewportHeight = DEFAULT_PROPS$U.fitWithinViewportHeight,
|
|
6611
6621
|
isOpen,
|
|
6612
6622
|
offset,
|
|
6613
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6623
|
+
focusAnchorOnClose = DEFAULT_PROPS$U.focusAnchorOnClose,
|
|
6614
6624
|
onClose,
|
|
6615
6625
|
onInfiniteScroll,
|
|
6616
|
-
placement = DEFAULT_PROPS$
|
|
6617
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
6626
|
+
placement = DEFAULT_PROPS$U.placement,
|
|
6627
|
+
shouldFocusOnOpen = DEFAULT_PROPS$U.shouldFocusOnOpen,
|
|
6618
6628
|
zIndex,
|
|
6619
6629
|
...forwardedProps
|
|
6620
6630
|
} = props;
|
|
@@ -6658,14 +6668,14 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6658
6668
|
})
|
|
6659
6669
|
}) : null;
|
|
6660
6670
|
});
|
|
6661
|
-
Dropdown.displayName = COMPONENT_NAME$
|
|
6671
|
+
Dropdown.displayName = COMPONENT_NAME$X;
|
|
6662
6672
|
Dropdown.className = CLASSNAME$Y;
|
|
6663
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
6673
|
+
Dropdown.defaultProps = DEFAULT_PROPS$U;
|
|
6664
6674
|
|
|
6665
6675
|
/**
|
|
6666
6676
|
* Component display name.
|
|
6667
6677
|
*/
|
|
6668
|
-
const COMPONENT_NAME$
|
|
6678
|
+
const COMPONENT_NAME$W = 'ExpansionPanel';
|
|
6669
6679
|
|
|
6670
6680
|
/**
|
|
6671
6681
|
* Component default class name and class prefix.
|
|
@@ -6679,7 +6689,7 @@ const {
|
|
|
6679
6689
|
/**
|
|
6680
6690
|
* Component default props.
|
|
6681
6691
|
*/
|
|
6682
|
-
const DEFAULT_PROPS$
|
|
6692
|
+
const DEFAULT_PROPS$T = {
|
|
6683
6693
|
closeMode: 'unmount'
|
|
6684
6694
|
};
|
|
6685
6695
|
const isDragHandle = isComponent(DragHandle);
|
|
@@ -6697,7 +6707,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6697
6707
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
6698
6708
|
const {
|
|
6699
6709
|
className,
|
|
6700
|
-
closeMode = DEFAULT_PROPS$
|
|
6710
|
+
closeMode = DEFAULT_PROPS$T.closeMode,
|
|
6701
6711
|
children: anyChildren,
|
|
6702
6712
|
hasBackground,
|
|
6703
6713
|
hasHeaderDivider,
|
|
@@ -6812,13 +6822,13 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6812
6822
|
})]
|
|
6813
6823
|
});
|
|
6814
6824
|
});
|
|
6815
|
-
ExpansionPanel.displayName = COMPONENT_NAME$
|
|
6825
|
+
ExpansionPanel.displayName = COMPONENT_NAME$W;
|
|
6816
6826
|
ExpansionPanel.className = CLASSNAME$X;
|
|
6817
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
6827
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$T;
|
|
6818
6828
|
|
|
6819
|
-
const COMPONENT_NAME$
|
|
6829
|
+
const COMPONENT_NAME$V = 'Flag';
|
|
6820
6830
|
const CLASSNAME$W = 'lumx-flag';
|
|
6821
|
-
const DEFAULT_PROPS$
|
|
6831
|
+
const DEFAULT_PROPS$S = {};
|
|
6822
6832
|
const {
|
|
6823
6833
|
block: block$N,
|
|
6824
6834
|
element: element$B
|
|
@@ -6880,9 +6890,9 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6880
6890
|
Text
|
|
6881
6891
|
});
|
|
6882
6892
|
});
|
|
6883
|
-
Flag.displayName = COMPONENT_NAME$
|
|
6893
|
+
Flag.displayName = COMPONENT_NAME$V;
|
|
6884
6894
|
Flag.className = CLASSNAME$W;
|
|
6885
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
6895
|
+
Flag.defaultProps = DEFAULT_PROPS$S;
|
|
6886
6896
|
|
|
6887
6897
|
/**
|
|
6888
6898
|
* Defines the props of the component.
|
|
@@ -6891,7 +6901,7 @@ Flag.defaultProps = DEFAULT_PROPS$R;
|
|
|
6891
6901
|
/**
|
|
6892
6902
|
* Component display name.
|
|
6893
6903
|
*/
|
|
6894
|
-
const COMPONENT_NAME$
|
|
6904
|
+
const COMPONENT_NAME$U = 'FlexBox';
|
|
6895
6905
|
|
|
6896
6906
|
/**
|
|
6897
6907
|
* Component default class name and class prefix.
|
|
@@ -6955,13 +6965,13 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
6955
6965
|
children: children
|
|
6956
6966
|
});
|
|
6957
6967
|
});
|
|
6958
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
6968
|
+
FlexBox.displayName = COMPONENT_NAME$U;
|
|
6959
6969
|
FlexBox.className = CLASSNAME$V;
|
|
6960
6970
|
|
|
6961
6971
|
/**
|
|
6962
6972
|
* Component display name.
|
|
6963
6973
|
*/
|
|
6964
|
-
const COMPONENT_NAME$
|
|
6974
|
+
const COMPONENT_NAME$T = 'GenericBlock';
|
|
6965
6975
|
|
|
6966
6976
|
/**
|
|
6967
6977
|
* Component default class name and class prefix.
|
|
@@ -6975,7 +6985,7 @@ const {
|
|
|
6975
6985
|
/**
|
|
6976
6986
|
* Component default props.
|
|
6977
6987
|
*/
|
|
6978
|
-
const DEFAULT_PROPS$
|
|
6988
|
+
const DEFAULT_PROPS$R = {
|
|
6979
6989
|
gap: Size$1.big,
|
|
6980
6990
|
orientation: Orientation$1.horizontal
|
|
6981
6991
|
};
|
|
@@ -7005,8 +7015,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7005
7015
|
children,
|
|
7006
7016
|
actions,
|
|
7007
7017
|
actionsProps,
|
|
7008
|
-
gap = DEFAULT_PROPS$
|
|
7009
|
-
orientation = DEFAULT_PROPS$
|
|
7018
|
+
gap = DEFAULT_PROPS$R.gap,
|
|
7019
|
+
orientation = DEFAULT_PROPS$R.orientation,
|
|
7010
7020
|
contentProps,
|
|
7011
7021
|
...forwardedProps
|
|
7012
7022
|
} = props;
|
|
@@ -7058,9 +7068,9 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7058
7068
|
})]
|
|
7059
7069
|
});
|
|
7060
7070
|
});
|
|
7061
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
7071
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$T;
|
|
7062
7072
|
BaseGenericBlock.className = CLASSNAME$U;
|
|
7063
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
7073
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$R;
|
|
7064
7074
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
7065
7075
|
Figure,
|
|
7066
7076
|
Content,
|
|
@@ -7098,7 +7108,7 @@ const defaultContext = {
|
|
|
7098
7108
|
/**
|
|
7099
7109
|
* Component display name.
|
|
7100
7110
|
*/
|
|
7101
|
-
const COMPONENT_NAME$
|
|
7111
|
+
const COMPONENT_NAME$S = 'Heading';
|
|
7102
7112
|
|
|
7103
7113
|
/**
|
|
7104
7114
|
* Component default class name and class prefix.
|
|
@@ -7108,7 +7118,7 @@ const CLASSNAME$T = 'lumx-heading';
|
|
|
7108
7118
|
/**
|
|
7109
7119
|
* Component default props.
|
|
7110
7120
|
*/
|
|
7111
|
-
const DEFAULT_PROPS$
|
|
7121
|
+
const DEFAULT_PROPS$Q = {};
|
|
7112
7122
|
|
|
7113
7123
|
/**
|
|
7114
7124
|
* Get Heading component common props
|
|
@@ -7196,7 +7206,7 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
7196
7206
|
/**
|
|
7197
7207
|
* Component display name.
|
|
7198
7208
|
*/
|
|
7199
|
-
const COMPONENT_NAME$
|
|
7209
|
+
const COMPONENT_NAME$R = 'Text';
|
|
7200
7210
|
|
|
7201
7211
|
/**
|
|
7202
7212
|
* Component default class name and class prefix.
|
|
@@ -7209,7 +7219,7 @@ const {
|
|
|
7209
7219
|
/**
|
|
7210
7220
|
* Component default props.
|
|
7211
7221
|
*/
|
|
7212
|
-
const DEFAULT_PROPS$
|
|
7222
|
+
const DEFAULT_PROPS$P = {};
|
|
7213
7223
|
|
|
7214
7224
|
/**
|
|
7215
7225
|
* Text component common props
|
|
@@ -7294,9 +7304,9 @@ const Text = forwardRef((props, ref) => {
|
|
|
7294
7304
|
children: wrapChildrenIconWithSpaces(children)
|
|
7295
7305
|
});
|
|
7296
7306
|
});
|
|
7297
|
-
Text.displayName = COMPONENT_NAME$
|
|
7307
|
+
Text.displayName = COMPONENT_NAME$R;
|
|
7298
7308
|
Text.className = CLASSNAME$S;
|
|
7299
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
7309
|
+
Text.defaultProps = DEFAULT_PROPS$P;
|
|
7300
7310
|
|
|
7301
7311
|
const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
|
|
7302
7312
|
|
|
@@ -7331,9 +7341,9 @@ const Heading = forwardRef((props, ref) => {
|
|
|
7331
7341
|
children: children
|
|
7332
7342
|
});
|
|
7333
7343
|
});
|
|
7334
|
-
Heading.displayName = COMPONENT_NAME$
|
|
7344
|
+
Heading.displayName = COMPONENT_NAME$S;
|
|
7335
7345
|
Heading.className = CLASSNAME$T;
|
|
7336
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
7346
|
+
Heading.defaultProps = DEFAULT_PROPS$Q;
|
|
7337
7347
|
|
|
7338
7348
|
/**
|
|
7339
7349
|
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
@@ -7371,7 +7381,7 @@ const HeadingLevelProvider = ({
|
|
|
7371
7381
|
/**
|
|
7372
7382
|
* Component display name.
|
|
7373
7383
|
*/
|
|
7374
|
-
const COMPONENT_NAME$
|
|
7384
|
+
const COMPONENT_NAME$Q = 'Grid';
|
|
7375
7385
|
|
|
7376
7386
|
/**
|
|
7377
7387
|
* Component default class name and class prefix.
|
|
@@ -7384,7 +7394,7 @@ const {
|
|
|
7384
7394
|
/**
|
|
7385
7395
|
* Component default props.
|
|
7386
7396
|
*/
|
|
7387
|
-
const DEFAULT_PROPS$
|
|
7397
|
+
const DEFAULT_PROPS$O = {
|
|
7388
7398
|
orientation: Orientation$1.horizontal,
|
|
7389
7399
|
wrap: 'nowrap'
|
|
7390
7400
|
};
|
|
@@ -7402,9 +7412,9 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7402
7412
|
className,
|
|
7403
7413
|
gutter,
|
|
7404
7414
|
hAlign,
|
|
7405
|
-
orientation = DEFAULT_PROPS$
|
|
7415
|
+
orientation = DEFAULT_PROPS$O.orientation,
|
|
7406
7416
|
vAlign,
|
|
7407
|
-
wrap = DEFAULT_PROPS$
|
|
7417
|
+
wrap = DEFAULT_PROPS$O.wrap,
|
|
7408
7418
|
...forwardedProps
|
|
7409
7419
|
} = props;
|
|
7410
7420
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -7420,14 +7430,14 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7420
7430
|
children: children
|
|
7421
7431
|
});
|
|
7422
7432
|
});
|
|
7423
|
-
Grid.displayName = COMPONENT_NAME$
|
|
7433
|
+
Grid.displayName = COMPONENT_NAME$Q;
|
|
7424
7434
|
Grid.className = CLASSNAME$R;
|
|
7425
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
7435
|
+
Grid.defaultProps = DEFAULT_PROPS$O;
|
|
7426
7436
|
|
|
7427
7437
|
/**
|
|
7428
7438
|
* Component display name.
|
|
7429
7439
|
*/
|
|
7430
|
-
const COMPONENT_NAME$
|
|
7440
|
+
const COMPONENT_NAME$P = 'GridItem';
|
|
7431
7441
|
|
|
7432
7442
|
/**
|
|
7433
7443
|
* Component default class name and class prefix.
|
|
@@ -7464,13 +7474,13 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
7464
7474
|
children: children
|
|
7465
7475
|
});
|
|
7466
7476
|
});
|
|
7467
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
7477
|
+
GridItem.displayName = COMPONENT_NAME$P;
|
|
7468
7478
|
GridItem.className = CLASSNAME$Q;
|
|
7469
7479
|
|
|
7470
7480
|
/**
|
|
7471
7481
|
* Component display name.
|
|
7472
7482
|
*/
|
|
7473
|
-
const COMPONENT_NAME$
|
|
7483
|
+
const COMPONENT_NAME$O = 'GridColumn';
|
|
7474
7484
|
|
|
7475
7485
|
/**
|
|
7476
7486
|
* Component default class name and class prefix.
|
|
@@ -7480,7 +7490,7 @@ const CLASSNAME$P = 'lumx-grid-column';
|
|
|
7480
7490
|
/**
|
|
7481
7491
|
* Component default props.
|
|
7482
7492
|
*/
|
|
7483
|
-
const DEFAULT_PROPS$
|
|
7493
|
+
const DEFAULT_PROPS$N = {};
|
|
7484
7494
|
|
|
7485
7495
|
/**
|
|
7486
7496
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7488,10 +7498,9 @@ const DEFAULT_PROPS$M = {};
|
|
|
7488
7498
|
* with a number of column that reduce when there is not enough space for each item.
|
|
7489
7499
|
*
|
|
7490
7500
|
* @param props Component props.
|
|
7491
|
-
* @
|
|
7492
|
-
* @return React element.
|
|
7501
|
+
* @return JSX element.
|
|
7493
7502
|
*/
|
|
7494
|
-
const GridColumn =
|
|
7503
|
+
const GridColumn$1 = props => {
|
|
7495
7504
|
const {
|
|
7496
7505
|
as: Component = 'div',
|
|
7497
7506
|
gap,
|
|
@@ -7500,12 +7509,13 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7500
7509
|
children,
|
|
7501
7510
|
className,
|
|
7502
7511
|
style = {},
|
|
7512
|
+
ref,
|
|
7503
7513
|
...forwardedProps
|
|
7504
7514
|
} = props;
|
|
7505
7515
|
return /*#__PURE__*/jsx(Component, {
|
|
7506
7516
|
...forwardedProps,
|
|
7507
7517
|
ref: ref,
|
|
7508
|
-
className:
|
|
7518
|
+
className: classnames(className, CLASSNAME$P),
|
|
7509
7519
|
style: {
|
|
7510
7520
|
...style,
|
|
7511
7521
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -7514,8 +7524,38 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7514
7524
|
},
|
|
7515
7525
|
children: children
|
|
7516
7526
|
});
|
|
7527
|
+
};
|
|
7528
|
+
GridColumn$1.displayName = COMPONENT_NAME$O;
|
|
7529
|
+
GridColumn$1.className = CLASSNAME$P;
|
|
7530
|
+
GridColumn$1.defaultProps = DEFAULT_PROPS$N;
|
|
7531
|
+
|
|
7532
|
+
/**
|
|
7533
|
+
* Defines the props of the component.
|
|
7534
|
+
*/
|
|
7535
|
+
|
|
7536
|
+
// Re-export types for backward compatibility
|
|
7537
|
+
|
|
7538
|
+
/**
|
|
7539
|
+
* Component default props.
|
|
7540
|
+
*/
|
|
7541
|
+
const DEFAULT_PROPS$M = {};
|
|
7542
|
+
|
|
7543
|
+
/**
|
|
7544
|
+
* The GridColumn is a layout component that can display children in a grid
|
|
7545
|
+
* with custom display properties. It also comes with a responsive design,
|
|
7546
|
+
* with a number of column that reduce when there is not enough space for each item.
|
|
7547
|
+
*
|
|
7548
|
+
* @param props Component props.
|
|
7549
|
+
* @param ref Component ref.
|
|
7550
|
+
* @return React element.
|
|
7551
|
+
*/
|
|
7552
|
+
const GridColumn = forwardRef((props, ref) => {
|
|
7553
|
+
return GridColumn$1({
|
|
7554
|
+
ref,
|
|
7555
|
+
...props
|
|
7556
|
+
});
|
|
7517
7557
|
});
|
|
7518
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
7558
|
+
GridColumn.displayName = COMPONENT_NAME$O;
|
|
7519
7559
|
GridColumn.className = CLASSNAME$P;
|
|
7520
7560
|
GridColumn.defaultProps = DEFAULT_PROPS$M;
|
|
7521
7561
|
|
|
@@ -7621,7 +7661,7 @@ const ImageBlockCaptionPosition = {
|
|
|
7621
7661
|
/**
|
|
7622
7662
|
* Component display name.
|
|
7623
7663
|
*/
|
|
7624
|
-
const COMPONENT_NAME$
|
|
7664
|
+
const COMPONENT_NAME$N = 'ImageBlock';
|
|
7625
7665
|
|
|
7626
7666
|
/**
|
|
7627
7667
|
* Component default class name and class prefix.
|
|
@@ -7705,14 +7745,14 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7705
7745
|
})]
|
|
7706
7746
|
});
|
|
7707
7747
|
});
|
|
7708
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
7748
|
+
ImageBlock.displayName = COMPONENT_NAME$N;
|
|
7709
7749
|
ImageBlock.className = CLASSNAME$O;
|
|
7710
7750
|
ImageBlock.defaultProps = DEFAULT_PROPS$L;
|
|
7711
7751
|
|
|
7712
7752
|
/**
|
|
7713
7753
|
* Component display name.
|
|
7714
7754
|
*/
|
|
7715
|
-
const COMPONENT_NAME$
|
|
7755
|
+
const COMPONENT_NAME$M = 'ImageLightbox';
|
|
7716
7756
|
|
|
7717
7757
|
/**
|
|
7718
7758
|
* Component default class name and class prefix.
|
|
@@ -8367,7 +8407,7 @@ function useImageLightbox(props) {
|
|
|
8367
8407
|
}
|
|
8368
8408
|
},
|
|
8369
8409
|
onClick(e) {
|
|
8370
|
-
open(e
|
|
8410
|
+
open(e?.target, options);
|
|
8371
8411
|
}
|
|
8372
8412
|
}));
|
|
8373
8413
|
}, []);
|
|
@@ -8436,7 +8476,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
8436
8476
|
})
|
|
8437
8477
|
});
|
|
8438
8478
|
});
|
|
8439
|
-
Inner.displayName = COMPONENT_NAME$
|
|
8479
|
+
Inner.displayName = COMPONENT_NAME$M;
|
|
8440
8480
|
Inner.className = CLASSNAME$N;
|
|
8441
8481
|
|
|
8442
8482
|
/**
|
|
@@ -8453,7 +8493,7 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
8453
8493
|
/**
|
|
8454
8494
|
* Component display name.
|
|
8455
8495
|
*/
|
|
8456
|
-
const COMPONENT_NAME$
|
|
8496
|
+
const COMPONENT_NAME$L = 'InlineList';
|
|
8457
8497
|
|
|
8458
8498
|
/**
|
|
8459
8499
|
* Component default class name and class prefix.
|
|
@@ -8518,7 +8558,7 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
8518
8558
|
})
|
|
8519
8559
|
);
|
|
8520
8560
|
});
|
|
8521
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
8561
|
+
InlineList.displayName = COMPONENT_NAME$L;
|
|
8522
8562
|
InlineList.className = CLASSNAME$M;
|
|
8523
8563
|
InlineList.defaultProps = DEFAULT_PROPS$K;
|
|
8524
8564
|
|
|
@@ -8563,7 +8603,7 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
|
|
|
8563
8603
|
/**
|
|
8564
8604
|
* Component display name.
|
|
8565
8605
|
*/
|
|
8566
|
-
const COMPONENT_NAME$
|
|
8606
|
+
const COMPONENT_NAME$K = 'Lightbox';
|
|
8567
8607
|
|
|
8568
8608
|
/**
|
|
8569
8609
|
* Component default class name and class prefix.
|
|
@@ -8695,13 +8735,13 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
8695
8735
|
})
|
|
8696
8736
|
});
|
|
8697
8737
|
});
|
|
8698
|
-
Lightbox.displayName = COMPONENT_NAME$
|
|
8738
|
+
Lightbox.displayName = COMPONENT_NAME$K;
|
|
8699
8739
|
Lightbox.className = CLASSNAME$L;
|
|
8700
8740
|
|
|
8701
8741
|
/**
|
|
8702
8742
|
* Component display name.
|
|
8703
8743
|
*/
|
|
8704
|
-
const COMPONENT_NAME$
|
|
8744
|
+
const COMPONENT_NAME$J = 'Link';
|
|
8705
8745
|
|
|
8706
8746
|
/**
|
|
8707
8747
|
* Component default class name and class prefix.
|
|
@@ -8733,7 +8773,7 @@ const Link$1 = props => {
|
|
|
8733
8773
|
theme,
|
|
8734
8774
|
href,
|
|
8735
8775
|
target,
|
|
8736
|
-
|
|
8776
|
+
handleClick,
|
|
8737
8777
|
...forwardedProps
|
|
8738
8778
|
} = props;
|
|
8739
8779
|
const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
|
|
@@ -8781,7 +8821,7 @@ const Link$1 = props => {
|
|
|
8781
8821
|
const elementProps = {
|
|
8782
8822
|
ref,
|
|
8783
8823
|
className: combinedClassName,
|
|
8784
|
-
onClick: isDisabled ? undefined :
|
|
8824
|
+
onClick: isDisabled ? undefined : handleClick,
|
|
8785
8825
|
...forwardedProps,
|
|
8786
8826
|
...disabledProps
|
|
8787
8827
|
};
|
|
@@ -8848,14 +8888,14 @@ const Link = forwardRef((props, ref) => {
|
|
|
8848
8888
|
isDisabled: isAnyDisabled
|
|
8849
8889
|
});
|
|
8850
8890
|
});
|
|
8851
|
-
Link.displayName = COMPONENT_NAME$
|
|
8891
|
+
Link.displayName = COMPONENT_NAME$J;
|
|
8852
8892
|
Link.className = CLASSNAME$K;
|
|
8853
8893
|
Link.defaultProps = DEFAULT_PROPS$J;
|
|
8854
8894
|
|
|
8855
8895
|
/**
|
|
8856
8896
|
* Component display name.
|
|
8857
8897
|
*/
|
|
8858
|
-
const COMPONENT_NAME$
|
|
8898
|
+
const COMPONENT_NAME$I = 'LinkPreview';
|
|
8859
8899
|
|
|
8860
8900
|
/**
|
|
8861
8901
|
* Component default class name and class prefix.
|
|
@@ -8959,7 +8999,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8959
8999
|
})
|
|
8960
9000
|
});
|
|
8961
9001
|
});
|
|
8962
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
9002
|
+
LinkPreview.displayName = COMPONENT_NAME$I;
|
|
8963
9003
|
LinkPreview.className = CLASSNAME$J;
|
|
8964
9004
|
LinkPreview.defaultProps = DEFAULT_PROPS$I;
|
|
8965
9005
|
|
|
@@ -8980,7 +9020,7 @@ const renderLink = ({
|
|
|
8980
9020
|
/**
|
|
8981
9021
|
* Component display name.
|
|
8982
9022
|
*/
|
|
8983
|
-
const COMPONENT_NAME$
|
|
9023
|
+
const COMPONENT_NAME$H = 'ListItem';
|
|
8984
9024
|
|
|
8985
9025
|
/**
|
|
8986
9026
|
* Component default class name and class prefix.
|
|
@@ -9088,14 +9128,14 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
9088
9128
|
})
|
|
9089
9129
|
});
|
|
9090
9130
|
});
|
|
9091
|
-
ListItem.displayName = COMPONENT_NAME$
|
|
9131
|
+
ListItem.displayName = COMPONENT_NAME$H;
|
|
9092
9132
|
ListItem.className = CLASSNAME$I;
|
|
9093
9133
|
ListItem.defaultProps = DEFAULT_PROPS$H;
|
|
9094
9134
|
|
|
9095
9135
|
/**
|
|
9096
9136
|
* Component display name.
|
|
9097
9137
|
*/
|
|
9098
|
-
const COMPONENT_NAME$
|
|
9138
|
+
const COMPONENT_NAME$G = 'ListDivider';
|
|
9099
9139
|
|
|
9100
9140
|
/**
|
|
9101
9141
|
* Component default class name and class prefix.
|
|
@@ -9120,13 +9160,13 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
9120
9160
|
className: classNames.join(className, CLASSNAME$H)
|
|
9121
9161
|
});
|
|
9122
9162
|
});
|
|
9123
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
9163
|
+
ListDivider.displayName = COMPONENT_NAME$G;
|
|
9124
9164
|
ListDivider.className = CLASSNAME$H;
|
|
9125
9165
|
|
|
9126
9166
|
/**
|
|
9127
9167
|
* Component display name.
|
|
9128
9168
|
*/
|
|
9129
|
-
const COMPONENT_NAME$
|
|
9169
|
+
const COMPONENT_NAME$F = 'ListSubheader';
|
|
9130
9170
|
|
|
9131
9171
|
/**
|
|
9132
9172
|
* Component default class name and class prefix.
|
|
@@ -9153,13 +9193,13 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
9153
9193
|
children: children
|
|
9154
9194
|
});
|
|
9155
9195
|
});
|
|
9156
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
9196
|
+
ListSubheader.displayName = COMPONENT_NAME$F;
|
|
9157
9197
|
ListSubheader.className = CLASSNAME$G;
|
|
9158
9198
|
|
|
9159
9199
|
/**
|
|
9160
9200
|
* Component display name.
|
|
9161
9201
|
*/
|
|
9162
|
-
const COMPONENT_NAME$
|
|
9202
|
+
const COMPONENT_NAME$E = 'Message';
|
|
9163
9203
|
|
|
9164
9204
|
/**
|
|
9165
9205
|
* Component default class name and class prefix.
|
|
@@ -9236,13 +9276,13 @@ const Message$1 = props => {
|
|
|
9236
9276
|
}), isCloseButtonDisplayed && IconButton$1({
|
|
9237
9277
|
className: element$r('close-button'),
|
|
9238
9278
|
icon: mdiClose,
|
|
9239
|
-
onClick,
|
|
9279
|
+
handleClick: onClick,
|
|
9240
9280
|
label: closeButtonLabel,
|
|
9241
9281
|
emphasis: Emphasis.low
|
|
9242
9282
|
})]
|
|
9243
9283
|
});
|
|
9244
9284
|
};
|
|
9245
|
-
Message$1.displayName = COMPONENT_NAME$
|
|
9285
|
+
Message$1.displayName = COMPONENT_NAME$E;
|
|
9246
9286
|
Message$1.className = CLASSNAME$F;
|
|
9247
9287
|
|
|
9248
9288
|
/**
|
|
@@ -9258,13 +9298,13 @@ const Message = forwardRef((props, ref) => {
|
|
|
9258
9298
|
ref
|
|
9259
9299
|
});
|
|
9260
9300
|
});
|
|
9261
|
-
Message.displayName = COMPONENT_NAME$
|
|
9301
|
+
Message.displayName = COMPONENT_NAME$E;
|
|
9262
9302
|
Message.className = CLASSNAME$F;
|
|
9263
9303
|
|
|
9264
9304
|
/**
|
|
9265
9305
|
* Component display name.
|
|
9266
9306
|
*/
|
|
9267
|
-
const COMPONENT_NAME$
|
|
9307
|
+
const COMPONENT_NAME$D = 'Mosaic';
|
|
9268
9308
|
|
|
9269
9309
|
/**
|
|
9270
9310
|
* Component default class name and class prefix.
|
|
@@ -9343,24 +9383,10 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
9343
9383
|
})
|
|
9344
9384
|
});
|
|
9345
9385
|
});
|
|
9346
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
9386
|
+
Mosaic.displayName = COMPONENT_NAME$D;
|
|
9347
9387
|
Mosaic.className = CLASSNAME$E;
|
|
9348
9388
|
Mosaic.defaultProps = DEFAULT_PROPS$G;
|
|
9349
9389
|
|
|
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
9390
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
9365
9391
|
orientation: Orientation$1.vertical
|
|
9366
9392
|
});
|
|
@@ -9378,7 +9404,7 @@ const ITEM_CLASSNAME = 'lumx-navigation-item';
|
|
|
9378
9404
|
/**
|
|
9379
9405
|
* Component display name.
|
|
9380
9406
|
*/
|
|
9381
|
-
const COMPONENT_NAME$
|
|
9407
|
+
const COMPONENT_NAME$C = 'NavigationSection';
|
|
9382
9408
|
|
|
9383
9409
|
/**
|
|
9384
9410
|
* Component default class name and class prefix.
|
|
@@ -9413,31 +9439,33 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9413
9439
|
[`theme-${theme}`]: Boolean(theme)
|
|
9414
9440
|
})),
|
|
9415
9441
|
ref: ref,
|
|
9416
|
-
children: [
|
|
9417
|
-
as:
|
|
9442
|
+
children: [RawClickable({
|
|
9443
|
+
as: 'button',
|
|
9418
9444
|
...forwardedProps,
|
|
9419
|
-
|
|
9420
|
-
|
|
9445
|
+
'aria-controls': sectionId,
|
|
9446
|
+
'aria-expanded': isOpen,
|
|
9421
9447
|
className: itemElement('link'),
|
|
9422
9448
|
ref: buttonRef,
|
|
9423
|
-
|
|
9449
|
+
handleClick: event => {
|
|
9424
9450
|
setIsOpen(!isOpen);
|
|
9425
9451
|
event.stopPropagation();
|
|
9426
9452
|
},
|
|
9427
|
-
children:
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9453
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
9454
|
+
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
9455
|
+
className: itemElement('icon'),
|
|
9456
|
+
icon: icon,
|
|
9457
|
+
size: Size$1.xs
|
|
9458
|
+
}) : null, /*#__PURE__*/jsx(Text, {
|
|
9459
|
+
as: "span",
|
|
9460
|
+
truncate: true,
|
|
9461
|
+
className: itemElement('label'),
|
|
9462
|
+
ref: ref,
|
|
9463
|
+
children: label
|
|
9464
|
+
}), /*#__PURE__*/jsx(Icon, {
|
|
9465
|
+
className: classNames.join(itemElement('icon'), sectionElement('chevron')),
|
|
9466
|
+
icon: isOpen ? mdiChevronUp : mdiChevronDown
|
|
9467
|
+
})]
|
|
9468
|
+
})
|
|
9441
9469
|
}), isOpen && (isDropdown ? /*#__PURE__*/jsx(Popover, {
|
|
9442
9470
|
anchorRef: buttonRef,
|
|
9443
9471
|
isOpen: isOpen,
|
|
@@ -9470,9 +9498,12 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9470
9498
|
}))]
|
|
9471
9499
|
});
|
|
9472
9500
|
});
|
|
9473
|
-
NavigationSection.displayName = COMPONENT_NAME$
|
|
9501
|
+
NavigationSection.displayName = COMPONENT_NAME$C;
|
|
9474
9502
|
NavigationSection.className = CLASSNAME$D;
|
|
9475
9503
|
|
|
9504
|
+
/** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
|
|
9505
|
+
const forwardRefPolymorphic = React__default.forwardRef;
|
|
9506
|
+
|
|
9476
9507
|
const {
|
|
9477
9508
|
block: block$z,
|
|
9478
9509
|
element: element$p
|
|
@@ -9489,6 +9520,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9489
9520
|
label,
|
|
9490
9521
|
isCurrentPage,
|
|
9491
9522
|
as: Element = 'a',
|
|
9523
|
+
onClick,
|
|
9492
9524
|
...forwardedProps
|
|
9493
9525
|
} = props;
|
|
9494
9526
|
const theme = useTheme();
|
|
@@ -9503,26 +9535,29 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9503
9535
|
children: /*#__PURE__*/jsx(Tooltip, {
|
|
9504
9536
|
label: tooltipLabel,
|
|
9505
9537
|
placement: Placement.TOP,
|
|
9506
|
-
children:
|
|
9538
|
+
children: RawClickable({
|
|
9507
9539
|
as: Element,
|
|
9508
9540
|
className: element$p('link', {
|
|
9509
9541
|
'is-selected': isCurrentPage
|
|
9510
9542
|
}),
|
|
9511
|
-
ref
|
|
9512
|
-
|
|
9543
|
+
ref,
|
|
9544
|
+
'aria-current': isCurrentPage ? 'page' : undefined,
|
|
9513
9545
|
...forwardedProps,
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9546
|
+
handleClick: onClick,
|
|
9547
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
9548
|
+
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
9549
|
+
className: element$p('icon'),
|
|
9550
|
+
icon: icon,
|
|
9551
|
+
size: Size$1.xs,
|
|
9552
|
+
theme: theme
|
|
9553
|
+
}) : null, /*#__PURE__*/jsx(Text, {
|
|
9554
|
+
as: "span",
|
|
9555
|
+
truncate: true,
|
|
9556
|
+
className: element$p('label'),
|
|
9557
|
+
ref: labelRef,
|
|
9558
|
+
children: label
|
|
9559
|
+
})]
|
|
9560
|
+
})
|
|
9526
9561
|
})
|
|
9527
9562
|
})
|
|
9528
9563
|
});
|
|
@@ -9534,7 +9569,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9534
9569
|
/**
|
|
9535
9570
|
* Component display name.
|
|
9536
9571
|
*/
|
|
9537
|
-
const COMPONENT_NAME$
|
|
9572
|
+
const COMPONENT_NAME$B = 'Navigation';
|
|
9538
9573
|
|
|
9539
9574
|
/**
|
|
9540
9575
|
* Component default class name and class prefix.
|
|
@@ -9581,7 +9616,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
9581
9616
|
})
|
|
9582
9617
|
});
|
|
9583
9618
|
});
|
|
9584
|
-
Navigation.displayName = COMPONENT_NAME$
|
|
9619
|
+
Navigation.displayName = COMPONENT_NAME$B;
|
|
9585
9620
|
Navigation.className = CLASSNAME$C;
|
|
9586
9621
|
Navigation.defaultProps = DEFAULT_PROPS$F;
|
|
9587
9622
|
|
|
@@ -9614,7 +9649,7 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
9614
9649
|
/**
|
|
9615
9650
|
* Component display name.
|
|
9616
9651
|
*/
|
|
9617
|
-
const COMPONENT_NAME$
|
|
9652
|
+
const COMPONENT_NAME$A = 'Notification';
|
|
9618
9653
|
|
|
9619
9654
|
/**
|
|
9620
9655
|
* Component default class name and class prefix.
|
|
@@ -9672,7 +9707,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9672
9707
|
if (isFunction(onActionClick)) {
|
|
9673
9708
|
onActionClick();
|
|
9674
9709
|
}
|
|
9675
|
-
evt
|
|
9710
|
+
evt?.stopPropagation();
|
|
9676
9711
|
};
|
|
9677
9712
|
if (!type || !isVisible) {
|
|
9678
9713
|
return null;
|
|
@@ -9716,14 +9751,14 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9716
9751
|
})
|
|
9717
9752
|
});
|
|
9718
9753
|
});
|
|
9719
|
-
Notification.displayName = COMPONENT_NAME$
|
|
9754
|
+
Notification.displayName = COMPONENT_NAME$A;
|
|
9720
9755
|
Notification.className = CLASSNAME$B;
|
|
9721
9756
|
Notification.defaultProps = DEFAULT_PROPS$E;
|
|
9722
9757
|
|
|
9723
9758
|
/**
|
|
9724
9759
|
* Component display name.
|
|
9725
9760
|
*/
|
|
9726
|
-
const COMPONENT_NAME$
|
|
9761
|
+
const COMPONENT_NAME$z = 'PopoverDialog';
|
|
9727
9762
|
|
|
9728
9763
|
/**
|
|
9729
9764
|
* Component default class name and class prefix.
|
|
@@ -9774,14 +9809,14 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
9774
9809
|
})
|
|
9775
9810
|
});
|
|
9776
9811
|
});
|
|
9777
|
-
PopoverDialog.displayName = COMPONENT_NAME$
|
|
9812
|
+
PopoverDialog.displayName = COMPONENT_NAME$z;
|
|
9778
9813
|
PopoverDialog.className = CLASSNAME$A;
|
|
9779
9814
|
PopoverDialog.defaultProps = DEFAULT_PROPS$D;
|
|
9780
9815
|
|
|
9781
9816
|
/**
|
|
9782
9817
|
* Component display name.
|
|
9783
9818
|
*/
|
|
9784
|
-
const COMPONENT_NAME$
|
|
9819
|
+
const COMPONENT_NAME$y = 'PostBlock';
|
|
9785
9820
|
|
|
9786
9821
|
/**
|
|
9787
9822
|
* Component default class name and class prefix.
|
|
@@ -9875,14 +9910,14 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
9875
9910
|
})]
|
|
9876
9911
|
});
|
|
9877
9912
|
});
|
|
9878
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
9913
|
+
PostBlock.displayName = COMPONENT_NAME$y;
|
|
9879
9914
|
PostBlock.className = CLASSNAME$z;
|
|
9880
9915
|
PostBlock.defaultProps = DEFAULT_PROPS$C;
|
|
9881
9916
|
|
|
9882
9917
|
/**
|
|
9883
9918
|
* Component display name.
|
|
9884
9919
|
*/
|
|
9885
|
-
const COMPONENT_NAME$
|
|
9920
|
+
const COMPONENT_NAME$x = 'ProgressLinear';
|
|
9886
9921
|
|
|
9887
9922
|
/**
|
|
9888
9923
|
* Component default class name and class prefix.
|
|
@@ -9891,7 +9926,7 @@ const CLASSNAME$y = 'lumx-progress-linear';
|
|
|
9891
9926
|
const {
|
|
9892
9927
|
block: block$v,
|
|
9893
9928
|
element: element$l
|
|
9894
|
-
} =
|
|
9929
|
+
} = bem(CLASSNAME$y);
|
|
9895
9930
|
|
|
9896
9931
|
/**
|
|
9897
9932
|
* Component default props.
|
|
@@ -9902,20 +9937,19 @@ const DEFAULT_PROPS$B = {};
|
|
|
9902
9937
|
* ProgressLinear component.
|
|
9903
9938
|
*
|
|
9904
9939
|
* @param props Component props.
|
|
9905
|
-
* @
|
|
9906
|
-
* @return React element.
|
|
9940
|
+
* @return JSX element.
|
|
9907
9941
|
*/
|
|
9908
|
-
const ProgressLinear =
|
|
9909
|
-
const defaultTheme = useTheme() || Theme$1.light;
|
|
9942
|
+
const ProgressLinear$1 = props => {
|
|
9910
9943
|
const {
|
|
9911
9944
|
className,
|
|
9912
|
-
theme
|
|
9945
|
+
theme,
|
|
9946
|
+
ref,
|
|
9913
9947
|
...forwardedProps
|
|
9914
9948
|
} = props;
|
|
9915
9949
|
return /*#__PURE__*/jsxs("div", {
|
|
9916
9950
|
ref: ref,
|
|
9917
9951
|
...forwardedProps,
|
|
9918
|
-
className:
|
|
9952
|
+
className: classnames(className, block$v({
|
|
9919
9953
|
[`theme-${theme}`]: Boolean(theme)
|
|
9920
9954
|
})),
|
|
9921
9955
|
children: [/*#__PURE__*/jsx("div", {
|
|
@@ -9924,15 +9958,41 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9924
9958
|
className: element$l('line2')
|
|
9925
9959
|
})]
|
|
9926
9960
|
});
|
|
9961
|
+
};
|
|
9962
|
+
|
|
9963
|
+
/**
|
|
9964
|
+
* Defines the props of the component.
|
|
9965
|
+
*/
|
|
9966
|
+
|
|
9967
|
+
/**
|
|
9968
|
+
* ProgressLinear component.
|
|
9969
|
+
*
|
|
9970
|
+
* @param props Component props.
|
|
9971
|
+
* @param ref Component ref.
|
|
9972
|
+
* @return React element.
|
|
9973
|
+
*/
|
|
9974
|
+
const ProgressLinear = forwardRef((props, ref) => {
|
|
9975
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
9976
|
+
const {
|
|
9977
|
+
theme = defaultTheme,
|
|
9978
|
+
...otherProps
|
|
9979
|
+
} = props;
|
|
9980
|
+
return ProgressLinear$1({
|
|
9981
|
+
ref,
|
|
9982
|
+
theme,
|
|
9983
|
+
...otherProps
|
|
9984
|
+
});
|
|
9927
9985
|
});
|
|
9928
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
9986
|
+
ProgressLinear.displayName = COMPONENT_NAME$x;
|
|
9929
9987
|
ProgressLinear.className = CLASSNAME$y;
|
|
9930
9988
|
ProgressLinear.defaultProps = DEFAULT_PROPS$B;
|
|
9931
9989
|
|
|
9990
|
+
/* eslint-disable react/no-unknown-property */
|
|
9991
|
+
|
|
9932
9992
|
/**
|
|
9933
9993
|
* Component display name.
|
|
9934
9994
|
*/
|
|
9935
|
-
const COMPONENT_NAME$
|
|
9995
|
+
const COMPONENT_NAME$w = 'ProgressCircular';
|
|
9936
9996
|
|
|
9937
9997
|
/**
|
|
9938
9998
|
* Component default class name and class prefix.
|
|
@@ -9941,37 +10001,38 @@ const CLASSNAME$x = 'lumx-progress-circular';
|
|
|
9941
10001
|
const {
|
|
9942
10002
|
block: block$u,
|
|
9943
10003
|
element: element$k
|
|
9944
|
-
} =
|
|
10004
|
+
} = bem(CLASSNAME$x);
|
|
9945
10005
|
|
|
9946
10006
|
/**
|
|
9947
10007
|
* Component default props.
|
|
9948
10008
|
*/
|
|
9949
10009
|
const DEFAULT_PROPS$A = {
|
|
9950
|
-
size: Size
|
|
10010
|
+
size: Size.m,
|
|
9951
10011
|
display: 'block'
|
|
9952
10012
|
};
|
|
9953
10013
|
|
|
9954
10014
|
/**
|
|
9955
|
-
*
|
|
10015
|
+
* ProgressCircular component.
|
|
9956
10016
|
*
|
|
9957
10017
|
* @param props Component props.
|
|
9958
|
-
* @
|
|
9959
|
-
* @return React element.
|
|
10018
|
+
* @return JSX element.
|
|
9960
10019
|
*/
|
|
9961
|
-
const ProgressCircular =
|
|
9962
|
-
const defaultTheme = useTheme() || Theme$1.light;
|
|
10020
|
+
const ProgressCircular$1 = props => {
|
|
9963
10021
|
const {
|
|
9964
10022
|
className,
|
|
9965
|
-
theme
|
|
10023
|
+
theme,
|
|
9966
10024
|
size = DEFAULT_PROPS$A.size,
|
|
9967
10025
|
display = DEFAULT_PROPS$A.display,
|
|
10026
|
+
ref,
|
|
10027
|
+
circleProps,
|
|
10028
|
+
svgProps,
|
|
9968
10029
|
...forwardedProps
|
|
9969
10030
|
} = props;
|
|
9970
10031
|
const Element = display === 'block' ? 'div' : 'span';
|
|
9971
10032
|
return /*#__PURE__*/jsxs(Element, {
|
|
9972
10033
|
ref: ref,
|
|
9973
10034
|
...forwardedProps,
|
|
9974
|
-
className:
|
|
10035
|
+
className: classnames(className, block$u({
|
|
9975
10036
|
[`theme-${theme}`]: Boolean(theme),
|
|
9976
10037
|
[`size-${size}`]: Boolean(size),
|
|
9977
10038
|
[`display-${display}`]: Boolean(display)
|
|
@@ -9981,20 +10042,50 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9981
10042
|
}), /*#__PURE__*/jsx(Element, {
|
|
9982
10043
|
className: element$k('double-bounce2')
|
|
9983
10044
|
}), /*#__PURE__*/jsx("svg", {
|
|
9984
|
-
|
|
10045
|
+
...svgProps,
|
|
9985
10046
|
viewBox: "25 25 50 50",
|
|
9986
10047
|
children: /*#__PURE__*/jsx("circle", {
|
|
9987
|
-
|
|
10048
|
+
...circleProps,
|
|
9988
10049
|
cx: "50",
|
|
9989
10050
|
cy: "50",
|
|
9990
10051
|
r: "20",
|
|
9991
|
-
fill: "none"
|
|
9992
|
-
strokeWidth: "5"
|
|
10052
|
+
fill: "none"
|
|
9993
10053
|
})
|
|
9994
10054
|
})]
|
|
9995
10055
|
});
|
|
10056
|
+
};
|
|
10057
|
+
|
|
10058
|
+
/**
|
|
10059
|
+
* Defines the props of the component.
|
|
10060
|
+
*/
|
|
10061
|
+
|
|
10062
|
+
/**
|
|
10063
|
+
* ProgressCircular component.
|
|
10064
|
+
*
|
|
10065
|
+
* @param props Component props.
|
|
10066
|
+
* @param ref Component ref.
|
|
10067
|
+
* @return React element.
|
|
10068
|
+
*/
|
|
10069
|
+
const ProgressCircular = forwardRef((props, ref) => {
|
|
10070
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
10071
|
+
const {
|
|
10072
|
+
theme = defaultTheme,
|
|
10073
|
+
...otherProps
|
|
10074
|
+
} = props;
|
|
10075
|
+
return ProgressCircular$1({
|
|
10076
|
+
ref,
|
|
10077
|
+
theme,
|
|
10078
|
+
...otherProps,
|
|
10079
|
+
circleProps: {
|
|
10080
|
+
className: element$k('path'),
|
|
10081
|
+
strokeWidth: '5'
|
|
10082
|
+
},
|
|
10083
|
+
svgProps: {
|
|
10084
|
+
className: element$k('svg')
|
|
10085
|
+
}
|
|
10086
|
+
});
|
|
9996
10087
|
});
|
|
9997
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
10088
|
+
ProgressCircular.displayName = COMPONENT_NAME$w;
|
|
9998
10089
|
ProgressCircular.className = CLASSNAME$x;
|
|
9999
10090
|
ProgressCircular.defaultProps = DEFAULT_PROPS$A;
|
|
10000
10091
|
|
|
@@ -10010,7 +10101,7 @@ const ProgressVariant = {
|
|
|
10010
10101
|
/**
|
|
10011
10102
|
* Component display name.
|
|
10012
10103
|
*/
|
|
10013
|
-
const COMPONENT_NAME$
|
|
10104
|
+
const COMPONENT_NAME$v = 'Progress';
|
|
10014
10105
|
|
|
10015
10106
|
/**
|
|
10016
10107
|
* Component default class name and class prefix.
|
|
@@ -10057,7 +10148,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
10057
10148
|
})]
|
|
10058
10149
|
});
|
|
10059
10150
|
});
|
|
10060
|
-
Progress.displayName = COMPONENT_NAME$
|
|
10151
|
+
Progress.displayName = COMPONENT_NAME$v;
|
|
10061
10152
|
Progress.className = CLASSNAME$w;
|
|
10062
10153
|
Progress.defaultProps = DEFAULT_PROPS$z;
|
|
10063
10154
|
|
|
@@ -10316,7 +10407,7 @@ const useRovingTabIndex = ({
|
|
|
10316
10407
|
/**
|
|
10317
10408
|
* Component display name.
|
|
10318
10409
|
*/
|
|
10319
|
-
const COMPONENT_NAME$
|
|
10410
|
+
const COMPONENT_NAME$u = 'ProgressTracker';
|
|
10320
10411
|
|
|
10321
10412
|
/**
|
|
10322
10413
|
* Component default class name and class prefix.
|
|
@@ -10384,14 +10475,14 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
10384
10475
|
})]
|
|
10385
10476
|
});
|
|
10386
10477
|
});
|
|
10387
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
10478
|
+
ProgressTracker.displayName = COMPONENT_NAME$u;
|
|
10388
10479
|
ProgressTracker.className = CLASSNAME$v;
|
|
10389
10480
|
ProgressTracker.defaultProps = DEFAULT_PROPS$x;
|
|
10390
10481
|
|
|
10391
10482
|
/**
|
|
10392
10483
|
* Component display name.
|
|
10393
10484
|
*/
|
|
10394
|
-
const COMPONENT_NAME$
|
|
10485
|
+
const COMPONENT_NAME$t = 'ProgressTrackerStep';
|
|
10395
10486
|
|
|
10396
10487
|
/**
|
|
10397
10488
|
* Component default class name and class prefix.
|
|
@@ -10498,14 +10589,14 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
10498
10589
|
})]
|
|
10499
10590
|
});
|
|
10500
10591
|
});
|
|
10501
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
10592
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$t;
|
|
10502
10593
|
ProgressTrackerStep.className = CLASSNAME$u;
|
|
10503
10594
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$w;
|
|
10504
10595
|
|
|
10505
10596
|
/**
|
|
10506
10597
|
* Component display name.
|
|
10507
10598
|
*/
|
|
10508
|
-
const COMPONENT_NAME$
|
|
10599
|
+
const COMPONENT_NAME$s = 'ProgressTrackerStepPanel';
|
|
10509
10600
|
|
|
10510
10601
|
/**
|
|
10511
10602
|
* Component default class name and class prefix.
|
|
@@ -10552,14 +10643,14 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
10552
10643
|
children: (!state?.isLazy || isActive) && children
|
|
10553
10644
|
});
|
|
10554
10645
|
});
|
|
10555
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
10646
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$s;
|
|
10556
10647
|
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
10557
10648
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$v;
|
|
10558
10649
|
|
|
10559
10650
|
/**
|
|
10560
10651
|
* Component display name.
|
|
10561
10652
|
*/
|
|
10562
|
-
const COMPONENT_NAME$
|
|
10653
|
+
const COMPONENT_NAME$r = 'RadioButton';
|
|
10563
10654
|
|
|
10564
10655
|
/**
|
|
10565
10656
|
* Component default class name and class prefix.
|
|
@@ -10587,7 +10678,7 @@ const RadioButton$1 = props => {
|
|
|
10587
10678
|
label,
|
|
10588
10679
|
name,
|
|
10589
10680
|
ref,
|
|
10590
|
-
|
|
10681
|
+
handleChange,
|
|
10591
10682
|
theme,
|
|
10592
10683
|
value,
|
|
10593
10684
|
inputProps = {},
|
|
@@ -10595,9 +10686,9 @@ const RadioButton$1 = props => {
|
|
|
10595
10686
|
inputId,
|
|
10596
10687
|
...forwardedProps
|
|
10597
10688
|
} = props;
|
|
10598
|
-
const
|
|
10599
|
-
if (
|
|
10600
|
-
|
|
10689
|
+
const handleOnChange = event => {
|
|
10690
|
+
if (handleChange) {
|
|
10691
|
+
handleChange(value, name, event);
|
|
10601
10692
|
}
|
|
10602
10693
|
};
|
|
10603
10694
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -10619,7 +10710,7 @@ const RadioButton$1 = props => {
|
|
|
10619
10710
|
name: name,
|
|
10620
10711
|
value: value,
|
|
10621
10712
|
checked: isChecked,
|
|
10622
|
-
onChange:
|
|
10713
|
+
onChange: handleOnChange,
|
|
10623
10714
|
"aria-describedby": helper ? `${inputId}-helper` : undefined,
|
|
10624
10715
|
...(inputProps?.readOnly ? {
|
|
10625
10716
|
readOnly: inputProps.readOnly
|
|
@@ -10698,7 +10789,7 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10698
10789
|
isChecked,
|
|
10699
10790
|
label,
|
|
10700
10791
|
name,
|
|
10701
|
-
onChange,
|
|
10792
|
+
handleChange: onChange,
|
|
10702
10793
|
theme,
|
|
10703
10794
|
value,
|
|
10704
10795
|
inputProps: {
|
|
@@ -10711,14 +10802,14 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10711
10802
|
inputId
|
|
10712
10803
|
});
|
|
10713
10804
|
});
|
|
10714
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
10805
|
+
RadioButton.displayName = COMPONENT_NAME$r;
|
|
10715
10806
|
RadioButton.className = CLASSNAME$s;
|
|
10716
10807
|
RadioButton.defaultProps = DEFAULT_PROPS$u;
|
|
10717
10808
|
|
|
10718
10809
|
/**
|
|
10719
10810
|
* Component display name.
|
|
10720
10811
|
*/
|
|
10721
|
-
const COMPONENT_NAME$
|
|
10812
|
+
const COMPONENT_NAME$q = 'RadioGroup';
|
|
10722
10813
|
|
|
10723
10814
|
/**
|
|
10724
10815
|
* Component default class name and class prefix.
|
|
@@ -10750,7 +10841,7 @@ const RadioGroup$1 = props => {
|
|
|
10750
10841
|
children: children
|
|
10751
10842
|
});
|
|
10752
10843
|
};
|
|
10753
|
-
RadioGroup$1.displayName = COMPONENT_NAME$
|
|
10844
|
+
RadioGroup$1.displayName = COMPONENT_NAME$q;
|
|
10754
10845
|
RadioGroup$1.className = CLASSNAME$r;
|
|
10755
10846
|
RadioGroup$1.defaultProps = DEFAULT_PROPS$t;
|
|
10756
10847
|
|
|
@@ -10778,7 +10869,7 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
10778
10869
|
...forwardedProps
|
|
10779
10870
|
});
|
|
10780
10871
|
});
|
|
10781
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
10872
|
+
RadioGroup.displayName = COMPONENT_NAME$q;
|
|
10782
10873
|
RadioGroup.className = CLASSNAME$r;
|
|
10783
10874
|
|
|
10784
10875
|
/**
|
|
@@ -10926,7 +11017,7 @@ const SelectVariant = {
|
|
|
10926
11017
|
};
|
|
10927
11018
|
|
|
10928
11019
|
/** The display name of the component. */
|
|
10929
|
-
const COMPONENT_NAME$
|
|
11020
|
+
const COMPONENT_NAME$p = 'Select';
|
|
10930
11021
|
|
|
10931
11022
|
/** The default class name and classes prefix for this component. */
|
|
10932
11023
|
const CLASSNAME$p = 'lumx-select';
|
|
@@ -11069,13 +11160,13 @@ const Select = forwardRef((props, ref) => {
|
|
|
11069
11160
|
isEmpty: isEmpty$1
|
|
11070
11161
|
}, ref);
|
|
11071
11162
|
});
|
|
11072
|
-
Select.displayName = COMPONENT_NAME$
|
|
11163
|
+
Select.displayName = COMPONENT_NAME$p;
|
|
11073
11164
|
Select.className = CLASSNAME$p;
|
|
11074
11165
|
Select.defaultProps = DEFAULT_PROPS$s;
|
|
11075
11166
|
Select.className = CLASSNAME$p;
|
|
11076
11167
|
|
|
11077
11168
|
/** The display name of the component. */
|
|
11078
|
-
const COMPONENT_NAME$
|
|
11169
|
+
const COMPONENT_NAME$o = 'Select';
|
|
11079
11170
|
|
|
11080
11171
|
/** The default class name and classes prefix for this component. */
|
|
11081
11172
|
const CLASSNAME$o = 'lumx-select';
|
|
@@ -11222,14 +11313,14 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
11222
11313
|
isMultiple: true
|
|
11223
11314
|
}, ref);
|
|
11224
11315
|
});
|
|
11225
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
11316
|
+
SelectMultiple.displayName = COMPONENT_NAME$o;
|
|
11226
11317
|
SelectMultiple.className = CLASSNAME$o;
|
|
11227
11318
|
SelectMultiple.defaultProps = DEFAULT_PROPS$r;
|
|
11228
11319
|
|
|
11229
11320
|
/**
|
|
11230
11321
|
* Component display name.
|
|
11231
11322
|
*/
|
|
11232
|
-
const COMPONENT_NAME$
|
|
11323
|
+
const COMPONENT_NAME$n = 'SideNavigation';
|
|
11233
11324
|
|
|
11234
11325
|
/**
|
|
11235
11326
|
* Component default class name and class prefix.
|
|
@@ -11259,13 +11350,13 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
11259
11350
|
children: content
|
|
11260
11351
|
});
|
|
11261
11352
|
});
|
|
11262
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
11353
|
+
SideNavigation.displayName = COMPONENT_NAME$n;
|
|
11263
11354
|
SideNavigation.className = CLASSNAME$n;
|
|
11264
11355
|
|
|
11265
11356
|
/**
|
|
11266
11357
|
* Component display name.
|
|
11267
11358
|
*/
|
|
11268
|
-
const COMPONENT_NAME$
|
|
11359
|
+
const COMPONENT_NAME$m = 'SideNavigationItem';
|
|
11269
11360
|
|
|
11270
11361
|
/**
|
|
11271
11362
|
* Component default class name and class prefix.
|
|
@@ -11329,18 +11420,20 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11329
11420
|
})),
|
|
11330
11421
|
children: [shouldSplitActions ? /*#__PURE__*/jsxs("div", {
|
|
11331
11422
|
className: element$d('wrapper'),
|
|
11332
|
-
children: [
|
|
11423
|
+
children: [RawClickable({
|
|
11333
11424
|
as: linkAs || (linkProps?.href ? 'a' : 'button'),
|
|
11334
11425
|
...linkProps,
|
|
11335
11426
|
className: element$d('link'),
|
|
11336
|
-
|
|
11337
|
-
children:
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11427
|
+
handleClick: onClick,
|
|
11428
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
11429
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
11430
|
+
className: element$d('icon'),
|
|
11431
|
+
icon: icon,
|
|
11432
|
+
size: Size$1.xs
|
|
11433
|
+
}), /*#__PURE__*/jsx("span", {
|
|
11434
|
+
children: label
|
|
11435
|
+
})]
|
|
11436
|
+
})
|
|
11344
11437
|
}), /*#__PURE__*/jsx(IconButton, {
|
|
11345
11438
|
...toggleButtonProps,
|
|
11346
11439
|
className: element$d('toggle'),
|
|
@@ -11350,23 +11443,25 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11350
11443
|
onClick: onActionClick,
|
|
11351
11444
|
...ariaProps
|
|
11352
11445
|
})]
|
|
11353
|
-
}) :
|
|
11446
|
+
}) : RawClickable({
|
|
11354
11447
|
as: linkAs || (linkProps?.href ? 'a' : 'button'),
|
|
11355
11448
|
...linkProps,
|
|
11356
11449
|
className: element$d('link'),
|
|
11357
|
-
|
|
11450
|
+
handleClick: onClick,
|
|
11358
11451
|
...ariaProps,
|
|
11359
|
-
children:
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11452
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
11453
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
11454
|
+
className: element$d('icon'),
|
|
11455
|
+
icon: icon,
|
|
11456
|
+
size: Size$1.xs
|
|
11457
|
+
}), /*#__PURE__*/jsx("span", {
|
|
11458
|
+
children: label
|
|
11459
|
+
}), hasContent && /*#__PURE__*/jsx(Icon, {
|
|
11460
|
+
className: element$d('chevron'),
|
|
11461
|
+
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
11462
|
+
size: Size$1.xs
|
|
11463
|
+
})]
|
|
11464
|
+
})
|
|
11370
11465
|
}), (closeMode === 'hide' || showChildren) && /*#__PURE__*/jsx("ul", {
|
|
11371
11466
|
className: element$d('children'),
|
|
11372
11467
|
id: contentId,
|
|
@@ -11374,14 +11469,14 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11374
11469
|
})]
|
|
11375
11470
|
});
|
|
11376
11471
|
});
|
|
11377
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
11472
|
+
SideNavigationItem.displayName = COMPONENT_NAME$m;
|
|
11378
11473
|
SideNavigationItem.className = CLASSNAME$m;
|
|
11379
11474
|
SideNavigationItem.defaultProps = DEFAULT_PROPS$q;
|
|
11380
11475
|
|
|
11381
11476
|
/**
|
|
11382
11477
|
* Component display name.
|
|
11383
11478
|
*/
|
|
11384
|
-
const COMPONENT_NAME$
|
|
11479
|
+
const COMPONENT_NAME$l = 'SkeletonCircle';
|
|
11385
11480
|
|
|
11386
11481
|
/**
|
|
11387
11482
|
* Component default class name and class prefix.
|
|
@@ -11433,7 +11528,7 @@ const SkeletonRectangleVariant = {
|
|
|
11433
11528
|
/**
|
|
11434
11529
|
* Component display name.
|
|
11435
11530
|
*/
|
|
11436
|
-
const COMPONENT_NAME$
|
|
11531
|
+
const COMPONENT_NAME$k = 'SkeletonRectangle';
|
|
11437
11532
|
|
|
11438
11533
|
/**
|
|
11439
11534
|
* Component default class name and class prefix.
|
|
@@ -11489,7 +11584,7 @@ const SkeletonRectangle$1 = props => {
|
|
|
11489
11584
|
/**
|
|
11490
11585
|
* Component display name.
|
|
11491
11586
|
*/
|
|
11492
|
-
const COMPONENT_NAME$
|
|
11587
|
+
const COMPONENT_NAME$j = 'SkeletonTypography';
|
|
11493
11588
|
|
|
11494
11589
|
/**
|
|
11495
11590
|
* Component default class name and class prefix.
|
|
@@ -11565,7 +11660,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
11565
11660
|
...forwardedProps
|
|
11566
11661
|
});
|
|
11567
11662
|
});
|
|
11568
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
11663
|
+
SkeletonCircle.displayName = COMPONENT_NAME$l;
|
|
11569
11664
|
SkeletonCircle.defaultProps = DEFAULT_PROPS$o;
|
|
11570
11665
|
SkeletonCircle.className = CLASSNAME$l;
|
|
11571
11666
|
|
|
@@ -11606,7 +11701,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
11606
11701
|
...forwardedProps
|
|
11607
11702
|
});
|
|
11608
11703
|
});
|
|
11609
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
11704
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$k;
|
|
11610
11705
|
SkeletonRectangle.className = CLASSNAME$k;
|
|
11611
11706
|
SkeletonRectangle.defaultProps = DEFAULT_PROPS$n;
|
|
11612
11707
|
|
|
@@ -11643,7 +11738,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
11643
11738
|
...forwardedProps
|
|
11644
11739
|
});
|
|
11645
11740
|
});
|
|
11646
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
11741
|
+
SkeletonTypography.displayName = COMPONENT_NAME$j;
|
|
11647
11742
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$m;
|
|
11648
11743
|
SkeletonTypography.className = CLASSNAME$j;
|
|
11649
11744
|
|
|
@@ -11685,7 +11780,7 @@ const clamp = (value, min, max) => {
|
|
|
11685
11780
|
/**
|
|
11686
11781
|
* Component display name.
|
|
11687
11782
|
*/
|
|
11688
|
-
const COMPONENT_NAME$
|
|
11783
|
+
const COMPONENT_NAME$i = 'Slider';
|
|
11689
11784
|
|
|
11690
11785
|
/**
|
|
11691
11786
|
* Component default class name and class prefix.
|
|
@@ -11952,7 +12047,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
11952
12047
|
})]
|
|
11953
12048
|
});
|
|
11954
12049
|
});
|
|
11955
|
-
Slider.displayName = COMPONENT_NAME$
|
|
12050
|
+
Slider.displayName = COMPONENT_NAME$i;
|
|
11956
12051
|
Slider.className = CLASSNAME$i;
|
|
11957
12052
|
Slider.defaultProps = DEFAULT_PROPS$l;
|
|
11958
12053
|
|
|
@@ -12287,7 +12382,7 @@ const useSlideFocusManagement = ({
|
|
|
12287
12382
|
/**
|
|
12288
12383
|
* Component display name.
|
|
12289
12384
|
*/
|
|
12290
|
-
const COMPONENT_NAME$
|
|
12385
|
+
const COMPONENT_NAME$h = 'SlideshowItemGroup';
|
|
12291
12386
|
|
|
12292
12387
|
/**
|
|
12293
12388
|
* Component default class name and class prefix.
|
|
@@ -12326,7 +12421,7 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
12326
12421
|
children: children
|
|
12327
12422
|
});
|
|
12328
12423
|
});
|
|
12329
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
12424
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$h;
|
|
12330
12425
|
SlideshowItemGroup.className = CLASSNAME$h;
|
|
12331
12426
|
|
|
12332
12427
|
/**
|
|
@@ -12457,7 +12552,7 @@ Slideshow.defaultProps = DEFAULT_PROPS$k;
|
|
|
12457
12552
|
/**
|
|
12458
12553
|
* Component display name.
|
|
12459
12554
|
*/
|
|
12460
|
-
const COMPONENT_NAME$
|
|
12555
|
+
const COMPONENT_NAME$g = 'SlideshowItem';
|
|
12461
12556
|
|
|
12462
12557
|
/**
|
|
12463
12558
|
* Component default class name and class prefix.
|
|
@@ -12484,7 +12579,7 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
12484
12579
|
children: children
|
|
12485
12580
|
});
|
|
12486
12581
|
});
|
|
12487
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
12582
|
+
SlideshowItem.displayName = COMPONENT_NAME$g;
|
|
12488
12583
|
SlideshowItem.className = CLASSNAME$g;
|
|
12489
12584
|
|
|
12490
12585
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
@@ -12547,7 +12642,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
12547
12642
|
/**
|
|
12548
12643
|
* Component display name.
|
|
12549
12644
|
*/
|
|
12550
|
-
const COMPONENT_NAME$
|
|
12645
|
+
const COMPONENT_NAME$f = 'SlideshowControls';
|
|
12551
12646
|
|
|
12552
12647
|
/**
|
|
12553
12648
|
* Component default class name and class prefix.
|
|
@@ -12637,7 +12732,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
12637
12732
|
className: element$9('navigation'),
|
|
12638
12733
|
color: theme === Theme$1.dark ? 'light' : 'dark',
|
|
12639
12734
|
emphasis: Emphasis$1.low,
|
|
12640
|
-
onClick: onPreviousClick
|
|
12735
|
+
onClick: () => onPreviousClick?.()
|
|
12641
12736
|
}), /*#__PURE__*/jsx("div", {
|
|
12642
12737
|
ref: paginationRef,
|
|
12643
12738
|
className: element$9('pagination'),
|
|
@@ -12684,11 +12779,11 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
12684
12779
|
className: element$9('navigation'),
|
|
12685
12780
|
color: theme === Theme$1.dark ? 'light' : 'dark',
|
|
12686
12781
|
emphasis: Emphasis$1.low,
|
|
12687
|
-
onClick: onNextClick
|
|
12782
|
+
onClick: () => onNextClick?.()
|
|
12688
12783
|
})]
|
|
12689
12784
|
});
|
|
12690
12785
|
});
|
|
12691
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
12786
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$f;
|
|
12692
12787
|
InternalSlideshowControls.className = CLASSNAME$f;
|
|
12693
12788
|
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$j;
|
|
12694
12789
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
@@ -12808,7 +12903,7 @@ const useSlideScroll = ({
|
|
|
12808
12903
|
/**
|
|
12809
12904
|
* Component display name.
|
|
12810
12905
|
*/
|
|
12811
|
-
const COMPONENT_NAME$
|
|
12906
|
+
const COMPONENT_NAME$e = 'Slideshow';
|
|
12812
12907
|
|
|
12813
12908
|
/**
|
|
12814
12909
|
* Component default class name and class prefix.
|
|
@@ -12916,13 +13011,13 @@ const Slides = forwardRef((props, ref) => {
|
|
|
12916
13011
|
}), afterSlides]
|
|
12917
13012
|
});
|
|
12918
13013
|
});
|
|
12919
|
-
Slides.displayName = COMPONENT_NAME$
|
|
13014
|
+
Slides.displayName = COMPONENT_NAME$e;
|
|
12920
13015
|
Slides.className = CLASSNAME$e;
|
|
12921
13016
|
|
|
12922
13017
|
/**
|
|
12923
13018
|
* Component display name.
|
|
12924
13019
|
*/
|
|
12925
|
-
const COMPONENT_NAME$
|
|
13020
|
+
const COMPONENT_NAME$d = 'Switch';
|
|
12926
13021
|
|
|
12927
13022
|
/**
|
|
12928
13023
|
* Component default class name and class prefix.
|
|
@@ -12957,7 +13052,7 @@ const Switch$1 = props => {
|
|
|
12957
13052
|
label,
|
|
12958
13053
|
name,
|
|
12959
13054
|
ref,
|
|
12960
|
-
|
|
13055
|
+
handleChange,
|
|
12961
13056
|
theme,
|
|
12962
13057
|
value,
|
|
12963
13058
|
inputProps = {},
|
|
@@ -12966,9 +13061,9 @@ const Switch$1 = props => {
|
|
|
12966
13061
|
position = DEFAULT_PROPS$h.position,
|
|
12967
13062
|
...forwardedProps
|
|
12968
13063
|
} = props;
|
|
12969
|
-
const
|
|
12970
|
-
if (
|
|
12971
|
-
|
|
13064
|
+
const handleOnChange = event => {
|
|
13065
|
+
if (handleChange) {
|
|
13066
|
+
handleChange(!isChecked, value, name, event);
|
|
12972
13067
|
}
|
|
12973
13068
|
};
|
|
12974
13069
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -12992,7 +13087,7 @@ const Switch$1 = props => {
|
|
|
12992
13087
|
name: name,
|
|
12993
13088
|
value: value,
|
|
12994
13089
|
checked: Boolean(isChecked),
|
|
12995
|
-
onChange:
|
|
13090
|
+
onChange: handleOnChange,
|
|
12996
13091
|
"aria-describedby": helper ? `${inputId}-helper` : undefined,
|
|
12997
13092
|
"aria-checked": Boolean(isChecked),
|
|
12998
13093
|
...(inputProps?.readOnly ? {
|
|
@@ -13076,7 +13171,7 @@ const Switch = forwardRef((props, ref) => {
|
|
|
13076
13171
|
isChecked,
|
|
13077
13172
|
label: children,
|
|
13078
13173
|
name,
|
|
13079
|
-
onChange,
|
|
13174
|
+
handleChange: onChange,
|
|
13080
13175
|
position,
|
|
13081
13176
|
theme,
|
|
13082
13177
|
value,
|
|
@@ -13090,14 +13185,14 @@ const Switch = forwardRef((props, ref) => {
|
|
|
13090
13185
|
inputId
|
|
13091
13186
|
});
|
|
13092
13187
|
});
|
|
13093
|
-
Switch.displayName = COMPONENT_NAME$
|
|
13188
|
+
Switch.displayName = COMPONENT_NAME$d;
|
|
13094
13189
|
Switch.className = CLASSNAME$d;
|
|
13095
13190
|
Switch.defaultProps = DEFAULT_PROPS$g;
|
|
13096
13191
|
|
|
13097
13192
|
/**
|
|
13098
13193
|
* Component display name.
|
|
13099
13194
|
*/
|
|
13100
|
-
const COMPONENT_NAME$
|
|
13195
|
+
const COMPONENT_NAME$c = 'Table';
|
|
13101
13196
|
|
|
13102
13197
|
/**
|
|
13103
13198
|
* Component default class name and class prefix.
|
|
@@ -13170,14 +13265,14 @@ const Table = forwardRef((props, ref) => {
|
|
|
13170
13265
|
...otherProps
|
|
13171
13266
|
});
|
|
13172
13267
|
});
|
|
13173
|
-
Table.displayName = COMPONENT_NAME$
|
|
13268
|
+
Table.displayName = COMPONENT_NAME$c;
|
|
13174
13269
|
Table.className = CLASSNAME$c;
|
|
13175
13270
|
Table.defaultProps = DEFAULT_PROPS$f;
|
|
13176
13271
|
|
|
13177
13272
|
/**
|
|
13178
13273
|
* Component display name.
|
|
13179
13274
|
*/
|
|
13180
|
-
const COMPONENT_NAME$
|
|
13275
|
+
const COMPONENT_NAME$b = 'TableBody';
|
|
13181
13276
|
|
|
13182
13277
|
/**
|
|
13183
13278
|
* Component default class name and class prefix.
|
|
@@ -13227,7 +13322,7 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
13227
13322
|
...otherProps
|
|
13228
13323
|
});
|
|
13229
13324
|
});
|
|
13230
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
13325
|
+
TableBody.displayName = COMPONENT_NAME$b;
|
|
13231
13326
|
TableBody.className = CLASSNAME$b;
|
|
13232
13327
|
|
|
13233
13328
|
const ThOrder = {
|
|
@@ -13249,7 +13344,7 @@ const TableCellVariant = {
|
|
|
13249
13344
|
/**
|
|
13250
13345
|
* Component display name.
|
|
13251
13346
|
*/
|
|
13252
|
-
const COMPONENT_NAME$
|
|
13347
|
+
const COMPONENT_NAME$a = 'TableCell';
|
|
13253
13348
|
|
|
13254
13349
|
/**
|
|
13255
13350
|
* Component default class name and class prefix.
|
|
@@ -13278,7 +13373,7 @@ const TableCell$1 = props => {
|
|
|
13278
13373
|
className,
|
|
13279
13374
|
icon,
|
|
13280
13375
|
isSortable,
|
|
13281
|
-
|
|
13376
|
+
handleClick,
|
|
13282
13377
|
ref,
|
|
13283
13378
|
sortOrder,
|
|
13284
13379
|
variant = DEFAULT_PROPS$e.variant,
|
|
@@ -13286,10 +13381,10 @@ const TableCell$1 = props => {
|
|
|
13286
13381
|
} = props;
|
|
13287
13382
|
|
|
13288
13383
|
// Use button if clickable
|
|
13289
|
-
const Wrapper =
|
|
13384
|
+
const Wrapper = handleClick ? 'button' : 'div';
|
|
13290
13385
|
const wrapperProps = Wrapper === 'button' ? {
|
|
13291
13386
|
type: 'button',
|
|
13292
|
-
onClick:
|
|
13387
|
+
onClick: handleClick
|
|
13293
13388
|
} : undefined;
|
|
13294
13389
|
|
|
13295
13390
|
// ARIA sort
|
|
@@ -13356,23 +13451,23 @@ const TableCell$1 = props => {
|
|
|
13356
13451
|
*/
|
|
13357
13452
|
const TableCell = forwardRef((props, ref) => {
|
|
13358
13453
|
const {
|
|
13359
|
-
|
|
13454
|
+
onHeaderClick,
|
|
13360
13455
|
...otherProps
|
|
13361
13456
|
} = props;
|
|
13362
13457
|
return TableCell$1({
|
|
13363
13458
|
ref,
|
|
13364
|
-
|
|
13365
|
-
|
|
13459
|
+
...otherProps,
|
|
13460
|
+
handleClick: onHeaderClick
|
|
13366
13461
|
});
|
|
13367
13462
|
});
|
|
13368
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
13463
|
+
TableCell.displayName = COMPONENT_NAME$a;
|
|
13369
13464
|
TableCell.className = CLASSNAME$a;
|
|
13370
13465
|
TableCell.defaultProps = DEFAULT_PROPS$e;
|
|
13371
13466
|
|
|
13372
13467
|
/**
|
|
13373
13468
|
* Component display name.
|
|
13374
13469
|
*/
|
|
13375
|
-
const COMPONENT_NAME$
|
|
13470
|
+
const COMPONENT_NAME$9 = 'TableHeader';
|
|
13376
13471
|
|
|
13377
13472
|
/**
|
|
13378
13473
|
* Component default class name and class prefix.
|
|
@@ -13427,14 +13522,14 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
13427
13522
|
...otherProps
|
|
13428
13523
|
});
|
|
13429
13524
|
});
|
|
13430
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
13525
|
+
TableHeader.displayName = COMPONENT_NAME$9;
|
|
13431
13526
|
TableHeader.className = CLASSNAME$9;
|
|
13432
13527
|
TableHeader.defaultProps = DEFAULT_PROPS$d;
|
|
13433
13528
|
|
|
13434
13529
|
/**
|
|
13435
13530
|
* Component display name.
|
|
13436
13531
|
*/
|
|
13437
|
-
const COMPONENT_NAME$
|
|
13532
|
+
const COMPONENT_NAME$8 = 'TableRow';
|
|
13438
13533
|
|
|
13439
13534
|
/**
|
|
13440
13535
|
* Component default class name and class prefix.
|
|
@@ -13517,7 +13612,7 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
13517
13612
|
...forwardedProps
|
|
13518
13613
|
});
|
|
13519
13614
|
});
|
|
13520
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
13615
|
+
TableRow.displayName = COMPONENT_NAME$8;
|
|
13521
13616
|
TableRow.className = CLASSNAME$8;
|
|
13522
13617
|
TableRow.defaultProps = DEFAULT_PROPS$c;
|
|
13523
13618
|
|
|
@@ -13601,7 +13696,7 @@ let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
|
13601
13696
|
/**
|
|
13602
13697
|
* Component display name.
|
|
13603
13698
|
*/
|
|
13604
|
-
const COMPONENT_NAME$
|
|
13699
|
+
const COMPONENT_NAME$7 = 'TabList';
|
|
13605
13700
|
|
|
13606
13701
|
/**
|
|
13607
13702
|
* Component default props.
|
|
@@ -13654,14 +13749,14 @@ const TabList = forwardRef((props, ref) => {
|
|
|
13654
13749
|
})
|
|
13655
13750
|
});
|
|
13656
13751
|
});
|
|
13657
|
-
TabList.displayName = COMPONENT_NAME$
|
|
13752
|
+
TabList.displayName = COMPONENT_NAME$7;
|
|
13658
13753
|
TabList.className = TABS_CLASSNAME;
|
|
13659
13754
|
TabList.defaultProps = DEFAULT_PROPS$a;
|
|
13660
13755
|
|
|
13661
13756
|
/**
|
|
13662
13757
|
* Component display name.
|
|
13663
13758
|
*/
|
|
13664
|
-
const COMPONENT_NAME$
|
|
13759
|
+
const COMPONENT_NAME$6 = 'Tab';
|
|
13665
13760
|
|
|
13666
13761
|
/**
|
|
13667
13762
|
* Component default class name and class prefix.
|
|
@@ -13751,14 +13846,14 @@ const Tab = forwardRef((props, ref) => {
|
|
|
13751
13846
|
})]
|
|
13752
13847
|
});
|
|
13753
13848
|
});
|
|
13754
|
-
Tab.displayName = COMPONENT_NAME$
|
|
13849
|
+
Tab.displayName = COMPONENT_NAME$6;
|
|
13755
13850
|
Tab.className = CLASSNAME$7;
|
|
13756
13851
|
Tab.defaultProps = DEFAULT_PROPS$9;
|
|
13757
13852
|
|
|
13758
13853
|
/**
|
|
13759
13854
|
* Component display name.
|
|
13760
13855
|
*/
|
|
13761
|
-
const COMPONENT_NAME$
|
|
13856
|
+
const COMPONENT_NAME$5 = 'TabPanel';
|
|
13762
13857
|
|
|
13763
13858
|
/**
|
|
13764
13859
|
* Component default class name and class prefix.
|
|
@@ -13805,14 +13900,14 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
13805
13900
|
children: (!state?.isLazy || isActive) && children
|
|
13806
13901
|
});
|
|
13807
13902
|
});
|
|
13808
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
13903
|
+
TabPanel.displayName = COMPONENT_NAME$5;
|
|
13809
13904
|
TabPanel.className = CLASSNAME$6;
|
|
13810
13905
|
TabPanel.defaultProps = DEFAULT_PROPS$8;
|
|
13811
13906
|
|
|
13812
13907
|
/**
|
|
13813
13908
|
* Component display name.
|
|
13814
13909
|
*/
|
|
13815
|
-
const COMPONENT_NAME$
|
|
13910
|
+
const COMPONENT_NAME$4 = 'TextField';
|
|
13816
13911
|
|
|
13817
13912
|
/**
|
|
13818
13913
|
* Component default class name and class prefix.
|
|
@@ -14050,9 +14145,9 @@ const TextField = forwardRef((props, ref) => {
|
|
|
14050
14145
|
* @param evt On clear event.
|
|
14051
14146
|
*/
|
|
14052
14147
|
const handleClear = evt => {
|
|
14053
|
-
evt
|
|
14054
|
-
evt
|
|
14055
|
-
evt
|
|
14148
|
+
evt?.nativeEvent.preventDefault();
|
|
14149
|
+
evt?.nativeEvent.stopPropagation();
|
|
14150
|
+
(evt?.currentTarget).blur();
|
|
14056
14151
|
onChange('');
|
|
14057
14152
|
if (onClear) {
|
|
14058
14153
|
onClear(evt);
|
|
@@ -14176,7 +14271,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
14176
14271
|
})]
|
|
14177
14272
|
});
|
|
14178
14273
|
});
|
|
14179
|
-
TextField.displayName = COMPONENT_NAME$
|
|
14274
|
+
TextField.displayName = COMPONENT_NAME$4;
|
|
14180
14275
|
TextField.className = CLASSNAME$5;
|
|
14181
14276
|
TextField.defaultProps = DEFAULT_PROPS$5;
|
|
14182
14277
|
|
|
@@ -14327,7 +14422,7 @@ function calculateFocusPointStyle({
|
|
|
14327
14422
|
/**
|
|
14328
14423
|
* Component display name.
|
|
14329
14424
|
*/
|
|
14330
|
-
const COMPONENT_NAME$
|
|
14425
|
+
const COMPONENT_NAME$3 = 'Thumbnail';
|
|
14331
14426
|
|
|
14332
14427
|
/**
|
|
14333
14428
|
* Component default class name and class prefix.
|
|
@@ -14380,6 +14475,8 @@ const Thumbnail$1 = props => {
|
|
|
14380
14475
|
variant,
|
|
14381
14476
|
linkProps,
|
|
14382
14477
|
linkAs,
|
|
14478
|
+
handleClick,
|
|
14479
|
+
handleKeyPress,
|
|
14383
14480
|
...forwardedProps
|
|
14384
14481
|
} = props;
|
|
14385
14482
|
const isLoading = isLoadingProp || loadingState === 'isLoading';
|
|
@@ -14395,7 +14492,7 @@ const Thumbnail$1 = props => {
|
|
|
14395
14492
|
imageErrorStyle.display = 'none';
|
|
14396
14493
|
}
|
|
14397
14494
|
const isLink = Boolean(linkProps?.href || linkAs);
|
|
14398
|
-
const isClickable = !isAnyDisabled && Boolean(isLink || !!
|
|
14495
|
+
const isClickable = !isAnyDisabled && Boolean(isLink || !!handleClick || !!handleKeyPress);
|
|
14399
14496
|
const wrapperProps = {
|
|
14400
14497
|
...forwardedProps
|
|
14401
14498
|
};
|
|
@@ -14473,11 +14570,13 @@ const Thumbnail$1 = props => {
|
|
|
14473
14570
|
|
|
14474
14571
|
/** Render `RawClickable` as a function since it is a core component which needs to be treated as such */
|
|
14475
14572
|
if (isClickable) {
|
|
14476
|
-
return RawClickable
|
|
14573
|
+
return RawClickable({
|
|
14477
14574
|
ref,
|
|
14478
14575
|
...wrapperProps,
|
|
14479
14576
|
className: wrapperClassName,
|
|
14480
|
-
children: innerImage
|
|
14577
|
+
children: innerImage,
|
|
14578
|
+
handleClick,
|
|
14579
|
+
handleKeyPress
|
|
14481
14580
|
});
|
|
14482
14581
|
}
|
|
14483
14582
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -14584,6 +14683,8 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
14584
14683
|
focusPoint,
|
|
14585
14684
|
image,
|
|
14586
14685
|
imgRef: propImgRef,
|
|
14686
|
+
onClick,
|
|
14687
|
+
onKeyPress,
|
|
14587
14688
|
...forwardedProps
|
|
14588
14689
|
} = otherProps;
|
|
14589
14690
|
const [imgElement, setImgElement] = useState();
|
|
@@ -14603,13 +14704,15 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
14603
14704
|
focusPointStyle,
|
|
14604
14705
|
loadingState,
|
|
14605
14706
|
imgRef: useMergeRefs(setImgElement, propImgRef),
|
|
14707
|
+
handleClick: onClick,
|
|
14708
|
+
handleKeyPress: onKeyPress,
|
|
14606
14709
|
image,
|
|
14607
14710
|
badge: badge && /*#__PURE__*/React__default.cloneElement(badge, {
|
|
14608
14711
|
className: classNames.join(element$4('badge'), badge.props.className)
|
|
14609
14712
|
})
|
|
14610
14713
|
});
|
|
14611
14714
|
});
|
|
14612
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
14715
|
+
Thumbnail.displayName = COMPONENT_NAME$3;
|
|
14613
14716
|
Thumbnail.className = CLASSNAME$4;
|
|
14614
14717
|
Thumbnail.defaultProps = DEFAULT_PROPS$4;
|
|
14615
14718
|
|
|
@@ -14653,7 +14756,7 @@ const ThumbnailObjectFit = {
|
|
|
14653
14756
|
/**
|
|
14654
14757
|
* Component display name.
|
|
14655
14758
|
*/
|
|
14656
|
-
const
|
|
14759
|
+
const TOOLBAR_NAME = 'Toolbar';
|
|
14657
14760
|
|
|
14658
14761
|
/**
|
|
14659
14762
|
* Component default class name and class prefix.
|
|
@@ -14662,7 +14765,7 @@ const CLASSNAME$3 = 'lumx-toolbar';
|
|
|
14662
14765
|
const {
|
|
14663
14766
|
block: block$3,
|
|
14664
14767
|
element: element$3
|
|
14665
|
-
} =
|
|
14768
|
+
} = bem(CLASSNAME$3);
|
|
14666
14769
|
|
|
14667
14770
|
/**
|
|
14668
14771
|
* Component default props.
|
|
@@ -14673,21 +14776,21 @@ const DEFAULT_PROPS$3 = {};
|
|
|
14673
14776
|
* Toolbar component.
|
|
14674
14777
|
*
|
|
14675
14778
|
* @param props Component props.
|
|
14676
|
-
* @
|
|
14677
|
-
* @return React element.
|
|
14779
|
+
* @return JSX element.
|
|
14678
14780
|
*/
|
|
14679
|
-
const Toolbar =
|
|
14781
|
+
const Toolbar$1 = props => {
|
|
14680
14782
|
const {
|
|
14681
14783
|
after,
|
|
14682
14784
|
before,
|
|
14683
14785
|
className,
|
|
14684
14786
|
label,
|
|
14787
|
+
ref,
|
|
14685
14788
|
...forwardedProps
|
|
14686
14789
|
} = props;
|
|
14687
14790
|
return /*#__PURE__*/jsxs("div", {
|
|
14688
14791
|
ref: ref,
|
|
14689
14792
|
...forwardedProps,
|
|
14690
|
-
className:
|
|
14793
|
+
className: classnames(className, block$3({
|
|
14691
14794
|
'has-after': Boolean(after),
|
|
14692
14795
|
'has-before': Boolean(before),
|
|
14693
14796
|
'has-label': Boolean(label)
|
|
@@ -14703,8 +14806,26 @@ const Toolbar = forwardRef((props, ref) => {
|
|
|
14703
14806
|
children: after
|
|
14704
14807
|
})]
|
|
14705
14808
|
});
|
|
14809
|
+
};
|
|
14810
|
+
|
|
14811
|
+
/**
|
|
14812
|
+
* Defines the props of the component.
|
|
14813
|
+
*/
|
|
14814
|
+
|
|
14815
|
+
/**
|
|
14816
|
+
* Toolbar component.
|
|
14817
|
+
*
|
|
14818
|
+
* @param props Component props.
|
|
14819
|
+
* @param ref Component ref.
|
|
14820
|
+
* @return React element.
|
|
14821
|
+
*/
|
|
14822
|
+
const Toolbar = forwardRef((props, ref) => {
|
|
14823
|
+
return Toolbar$1({
|
|
14824
|
+
ref,
|
|
14825
|
+
...props
|
|
14826
|
+
});
|
|
14706
14827
|
});
|
|
14707
|
-
Toolbar.displayName =
|
|
14828
|
+
Toolbar.displayName = TOOLBAR_NAME;
|
|
14708
14829
|
Toolbar.className = CLASSNAME$3;
|
|
14709
14830
|
Toolbar.defaultProps = DEFAULT_PROPS$3;
|
|
14710
14831
|
|
|
@@ -15304,5 +15425,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
15304
15425
|
UserBlock.className = CLASSNAME;
|
|
15305
15426
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
15306
15427
|
|
|
15307
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1d as CLASSNAME, COMPONENT_NAME$
|
|
15428
|
+
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$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
15429
|
//# sourceMappingURL=index.js.map
|