@lumx/react 4.3.2-alpha.20 → 4.3.2-alpha.21
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/CzTdCnO5.js +1375 -0
- package/_internal/CzTdCnO5.js.map +1 -0
- package/index.d.ts +459 -13
- package/index.js +1080 -392
- package/index.js.map +1 -1
- package/package.json +7 -7
- package/utils/index.d.ts +1 -7
- package/utils/index.js +3 -1217
- package/utils/index.js.map +1 -1
- package/_internal/DpdvhbTO.js +0 -159
- package/_internal/DpdvhbTO.js.map +0 -1
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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';
|
|
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, REAL_SIZE_FOR_LUMX_SIZE, DIALOG_TRANSITION_DURATION, Orientation as Orientation$1, Alignment, NOTIFICATION_TRANSITION_DURATION, TOOLTIP_LONG_PRESS_DELAY, TOOLTIP_HOVER_DELAY } from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/constants';
|
|
3
3
|
export * from '@lumx/core/js/types';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import React__default, { useState, useEffect, useMemo, useRef, useCallback, Children, useLayoutEffect, cloneElement,
|
|
5
|
+
import React__default, { useState, useEffect, useMemo, useRef, useCallback, useContext, createContext, Children, useLayoutEffect, cloneElement, isValidElement, 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';
|
|
@@ -16,7 +16,7 @@ import concat from 'lodash/concat.js';
|
|
|
16
16
|
import dropRight from 'lodash/dropRight.js';
|
|
17
17
|
import partition from 'lodash/partition.js';
|
|
18
18
|
import reduce from 'lodash/reduce.js';
|
|
19
|
-
import { u as useDisabledStateContext, P as Portal, C as ClickAwayProvider } from './_internal/
|
|
19
|
+
import { u as useDisabledStateContext, M as MovingFocusContext, a as useVirtualFocus, A as A11YLiveMessage, P as Portal, C as ClickAwayProvider } from './_internal/CzTdCnO5.js';
|
|
20
20
|
import isEmpty from 'lodash/isEmpty.js';
|
|
21
21
|
import { getDisabledState } from '@lumx/core/js/utils/disabledState';
|
|
22
22
|
import { mdiCloseCircle } from '@lumx/icons/esm/close-circle.js';
|
|
@@ -24,15 +24,17 @@ import memoize from 'lodash/memoize.js';
|
|
|
24
24
|
import { mdiClose } from '@lumx/icons/esm/close.js';
|
|
25
25
|
import isFunction from 'lodash/isFunction.js';
|
|
26
26
|
import { mdiImageBroken } from '@lumx/icons/esm/image-broken.js';
|
|
27
|
+
import noop from 'lodash/noop.js';
|
|
28
|
+
import uniqueId from 'lodash/uniqueId.js';
|
|
29
|
+
import castArray from 'lodash/castArray.js';
|
|
27
30
|
import { mdiCheck } from '@lumx/icons/esm/check.js';
|
|
28
31
|
import { mdiMinus } from '@lumx/icons/esm/minus.js';
|
|
32
|
+
import { mdiInformationOutline } from '@lumx/icons/esm/information-outline.js';
|
|
29
33
|
import { mdiChevronLeft } from '@lumx/icons/esm/chevron-left.js';
|
|
30
34
|
import { mdiChevronRight } from '@lumx/icons/esm/chevron-right.js';
|
|
31
|
-
import castArray from 'lodash/castArray.js';
|
|
32
35
|
import { mdiDragVertical } from '@lumx/icons/esm/drag-vertical.js';
|
|
33
36
|
import { mdiChevronDown } from '@lumx/icons/esm/chevron-down.js';
|
|
34
37
|
import { mdiChevronUp } from '@lumx/icons/esm/chevron-up.js';
|
|
35
|
-
import noop from 'lodash/noop.js';
|
|
36
38
|
import pick from 'lodash/pick.js';
|
|
37
39
|
import isInteger from 'lodash/isInteger.js';
|
|
38
40
|
import { mdiMagnifyMinusOutline } from '@lumx/icons/esm/magnify-minus-outline.js';
|
|
@@ -96,20 +98,20 @@ const CONFIG$1 = {
|
|
|
96
98
|
/**
|
|
97
99
|
* Component display name.
|
|
98
100
|
*/
|
|
99
|
-
const COMPONENT_NAME$
|
|
101
|
+
const COMPONENT_NAME$1k = 'AlertDialog';
|
|
100
102
|
|
|
101
103
|
/**
|
|
102
104
|
* Component default class name and class prefix.
|
|
103
105
|
*/
|
|
104
|
-
const CLASSNAME$
|
|
106
|
+
const CLASSNAME$1k = 'lumx-alert-dialog';
|
|
105
107
|
const {
|
|
106
|
-
block: block$
|
|
107
|
-
} = classNames.bem(CLASSNAME$
|
|
108
|
+
block: block$17
|
|
109
|
+
} = classNames.bem(CLASSNAME$1k);
|
|
108
110
|
|
|
109
111
|
/**
|
|
110
112
|
* Component default props.
|
|
111
113
|
*/
|
|
112
|
-
const DEFAULT_PROPS$
|
|
114
|
+
const DEFAULT_PROPS$1b = {
|
|
113
115
|
size: Size$1.tiny,
|
|
114
116
|
kind: Kind$1.info
|
|
115
117
|
};
|
|
@@ -130,8 +132,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
130
132
|
className,
|
|
131
133
|
cancelProps,
|
|
132
134
|
confirmProps,
|
|
133
|
-
kind = DEFAULT_PROPS$
|
|
134
|
-
size = DEFAULT_PROPS$
|
|
135
|
+
kind = DEFAULT_PROPS$1b.kind,
|
|
136
|
+
size = DEFAULT_PROPS$1b.size,
|
|
135
137
|
dialogProps,
|
|
136
138
|
children,
|
|
137
139
|
...forwardedProps
|
|
@@ -172,7 +174,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
172
174
|
'aria-describedby': descriptionId,
|
|
173
175
|
...dialogProps
|
|
174
176
|
},
|
|
175
|
-
className: classNames.join(className, block$
|
|
177
|
+
className: classNames.join(className, block$17({
|
|
176
178
|
[`kind-${kind}`]: Boolean(kind)
|
|
177
179
|
})),
|
|
178
180
|
...forwardedProps,
|
|
@@ -217,9 +219,9 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
217
219
|
})]
|
|
218
220
|
});
|
|
219
221
|
});
|
|
220
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
221
|
-
AlertDialog.className = CLASSNAME$
|
|
222
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
222
|
+
AlertDialog.displayName = COMPONENT_NAME$1k;
|
|
223
|
+
AlertDialog.className = CLASSNAME$1k;
|
|
224
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$1b;
|
|
223
225
|
|
|
224
226
|
/**
|
|
225
227
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -311,17 +313,17 @@ function useDisableStateProps(props) {
|
|
|
311
313
|
/**
|
|
312
314
|
* Component display name.
|
|
313
315
|
*/
|
|
314
|
-
const COMPONENT_NAME$
|
|
316
|
+
const COMPONENT_NAME$1j = 'Autocomplete';
|
|
315
317
|
|
|
316
318
|
/**
|
|
317
319
|
* Component default class name and class prefix.
|
|
318
320
|
*/
|
|
319
|
-
const CLASSNAME$
|
|
321
|
+
const CLASSNAME$1j = 'lumx-autocomplete';
|
|
320
322
|
|
|
321
323
|
/**
|
|
322
324
|
* Component default props.
|
|
323
325
|
*/
|
|
324
|
-
const DEFAULT_PROPS$
|
|
326
|
+
const DEFAULT_PROPS$1a = {
|
|
325
327
|
anchorToInput: false,
|
|
326
328
|
closeOnClick: false,
|
|
327
329
|
closeOnClickAway: true,
|
|
@@ -343,13 +345,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
343
345
|
otherProps
|
|
344
346
|
} = useDisableStateProps(props);
|
|
345
347
|
const {
|
|
346
|
-
anchorToInput = DEFAULT_PROPS$
|
|
348
|
+
anchorToInput = DEFAULT_PROPS$1a.anchorToInput,
|
|
347
349
|
children,
|
|
348
350
|
chips,
|
|
349
351
|
className,
|
|
350
|
-
closeOnClick = DEFAULT_PROPS$
|
|
351
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
352
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
352
|
+
closeOnClick = DEFAULT_PROPS$1a.closeOnClick,
|
|
353
|
+
closeOnClickAway = DEFAULT_PROPS$1a.closeOnClickAway,
|
|
354
|
+
closeOnEscape = DEFAULT_PROPS$1a.closeOnEscape,
|
|
353
355
|
error,
|
|
354
356
|
fitToAnchorWidth,
|
|
355
357
|
hasError,
|
|
@@ -370,7 +372,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
370
372
|
onInfiniteScroll,
|
|
371
373
|
placeholder,
|
|
372
374
|
placement,
|
|
373
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
375
|
+
shouldFocusOnClose = DEFAULT_PROPS$1a.shouldFocusOnClose,
|
|
374
376
|
theme = defaultTheme,
|
|
375
377
|
value,
|
|
376
378
|
textFieldProps = {},
|
|
@@ -383,7 +385,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
383
385
|
return /*#__PURE__*/jsxs("div", {
|
|
384
386
|
ref: ref,
|
|
385
387
|
...forwardedProps,
|
|
386
|
-
className: classNames.join(className, CLASSNAME$
|
|
388
|
+
className: classNames.join(className, CLASSNAME$1j),
|
|
387
389
|
children: [/*#__PURE__*/jsx(TextField, {
|
|
388
390
|
...textFieldProps,
|
|
389
391
|
chips: chips,
|
|
@@ -423,24 +425,24 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
423
425
|
})]
|
|
424
426
|
});
|
|
425
427
|
});
|
|
426
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
427
|
-
Autocomplete.className = CLASSNAME$
|
|
428
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
428
|
+
Autocomplete.displayName = COMPONENT_NAME$1j;
|
|
429
|
+
Autocomplete.className = CLASSNAME$1j;
|
|
430
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$1a;
|
|
429
431
|
|
|
430
432
|
/**
|
|
431
433
|
* Component display name.
|
|
432
434
|
*/
|
|
433
|
-
const COMPONENT_NAME$
|
|
435
|
+
const COMPONENT_NAME$1i = 'AutocompleteMultiple';
|
|
434
436
|
|
|
435
437
|
/**
|
|
436
438
|
* Component default class name and class prefix.
|
|
437
439
|
*/
|
|
438
|
-
const CLASSNAME$
|
|
440
|
+
const CLASSNAME$1i = 'lumx-autocomplete-multiple';
|
|
439
441
|
|
|
440
442
|
/**
|
|
441
443
|
* Component default props.
|
|
442
444
|
*/
|
|
443
|
-
const DEFAULT_PROPS$
|
|
445
|
+
const DEFAULT_PROPS$19 = {
|
|
444
446
|
closeOnClickAway: true,
|
|
445
447
|
closeOnEscape: true,
|
|
446
448
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -480,8 +482,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
480
482
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
481
483
|
chipsAlignment,
|
|
482
484
|
className,
|
|
483
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
484
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
485
|
+
closeOnClickAway = DEFAULT_PROPS$19.closeOnClickAway,
|
|
486
|
+
closeOnEscape = DEFAULT_PROPS$19.closeOnEscape,
|
|
485
487
|
fitToAnchorWidth,
|
|
486
488
|
hasError,
|
|
487
489
|
helper,
|
|
@@ -503,19 +505,19 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
503
505
|
onKeyDown,
|
|
504
506
|
placeholder,
|
|
505
507
|
placement,
|
|
506
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
508
|
+
selectedChipRender = DEFAULT_PROPS$19.selectedChipRender,
|
|
507
509
|
shouldFocusOnClose,
|
|
508
510
|
theme = defaultTheme,
|
|
509
511
|
type,
|
|
510
512
|
value,
|
|
511
|
-
values = DEFAULT_PROPS$
|
|
513
|
+
values = DEFAULT_PROPS$19.values,
|
|
512
514
|
...forwardedProps
|
|
513
515
|
} = otherProps;
|
|
514
516
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
515
517
|
ref: ref,
|
|
516
518
|
...forwardedProps,
|
|
517
519
|
anchorToInput: anchorToInput,
|
|
518
|
-
className: classNames.join(className, CLASSNAME$
|
|
520
|
+
className: classNames.join(className, CLASSNAME$1i),
|
|
519
521
|
name: name,
|
|
520
522
|
value: value,
|
|
521
523
|
onChange: onChange,
|
|
@@ -548,28 +550,28 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
548
550
|
children: children
|
|
549
551
|
});
|
|
550
552
|
});
|
|
551
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
552
|
-
AutocompleteMultiple.className = CLASSNAME$
|
|
553
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
553
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1i;
|
|
554
|
+
AutocompleteMultiple.className = CLASSNAME$1i;
|
|
555
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$19;
|
|
554
556
|
|
|
555
557
|
/**
|
|
556
558
|
* Component display name.
|
|
557
559
|
*/
|
|
558
|
-
const COMPONENT_NAME$
|
|
560
|
+
const COMPONENT_NAME$1h = 'Avatar';
|
|
559
561
|
|
|
560
562
|
/**
|
|
561
563
|
* Component default class name and class prefix.
|
|
562
564
|
*/
|
|
563
|
-
const CLASSNAME$
|
|
565
|
+
const CLASSNAME$1h = 'lumx-avatar';
|
|
564
566
|
const {
|
|
565
|
-
block: block$
|
|
566
|
-
element: element$
|
|
567
|
-
} = classNames.bem(CLASSNAME$
|
|
567
|
+
block: block$16,
|
|
568
|
+
element: element$Q
|
|
569
|
+
} = classNames.bem(CLASSNAME$1h);
|
|
568
570
|
|
|
569
571
|
/**
|
|
570
572
|
* Component default props.
|
|
571
573
|
*/
|
|
572
|
-
const DEFAULT_PROPS$
|
|
574
|
+
const DEFAULT_PROPS$18 = {
|
|
573
575
|
size: Size$1.m
|
|
574
576
|
};
|
|
575
577
|
|
|
@@ -592,7 +594,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
592
594
|
linkAs,
|
|
593
595
|
onClick,
|
|
594
596
|
onKeyPress,
|
|
595
|
-
size = DEFAULT_PROPS$
|
|
597
|
+
size = DEFAULT_PROPS$18.size,
|
|
596
598
|
theme = defaultTheme,
|
|
597
599
|
thumbnailProps,
|
|
598
600
|
...forwardedProps
|
|
@@ -600,14 +602,14 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
600
602
|
return /*#__PURE__*/jsxs("div", {
|
|
601
603
|
ref: ref,
|
|
602
604
|
...forwardedProps,
|
|
603
|
-
className: classNames.join(className, block$
|
|
605
|
+
className: classNames.join(className, block$16({
|
|
604
606
|
[`size-${size}`]: Boolean(size),
|
|
605
607
|
[`theme-${theme}`]: Boolean(theme)
|
|
606
608
|
})),
|
|
607
609
|
children: [/*#__PURE__*/jsx(Thumbnail, {
|
|
608
610
|
linkProps: linkProps,
|
|
609
611
|
linkAs: linkAs,
|
|
610
|
-
className: element$
|
|
612
|
+
className: element$Q('thumbnail'),
|
|
611
613
|
onClick: onClick,
|
|
612
614
|
onKeyPress: onKeyPress,
|
|
613
615
|
...thumbnailProps,
|
|
@@ -617,17 +619,17 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
617
619
|
alt: alt,
|
|
618
620
|
theme: theme
|
|
619
621
|
}), actions && /*#__PURE__*/jsx("div", {
|
|
620
|
-
className: element$
|
|
622
|
+
className: element$Q('actions'),
|
|
621
623
|
children: actions
|
|
622
624
|
}), badge && /*#__PURE__*/jsx("div", {
|
|
623
|
-
className: element$
|
|
625
|
+
className: element$Q('badge'),
|
|
624
626
|
children: badge
|
|
625
627
|
})]
|
|
626
628
|
});
|
|
627
629
|
});
|
|
628
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
629
|
-
Avatar.className = CLASSNAME$
|
|
630
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
630
|
+
Avatar.displayName = COMPONENT_NAME$1h;
|
|
631
|
+
Avatar.className = CLASSNAME$1h;
|
|
632
|
+
Avatar.defaultProps = DEFAULT_PROPS$18;
|
|
631
633
|
|
|
632
634
|
/**
|
|
633
635
|
* Alignments.
|
|
@@ -695,8 +697,6 @@ const ColorPalette = {
|
|
|
695
697
|
red: 'red',
|
|
696
698
|
light: 'light'};
|
|
697
699
|
|
|
698
|
-
/** ColorPalette with all possible color variant combination */
|
|
699
|
-
|
|
700
700
|
function getDefaultExportFromCjs (x) {
|
|
701
701
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
702
702
|
}
|
|
@@ -857,7 +857,7 @@ function modifier$1(baseName, modifiers) {
|
|
|
857
857
|
* block('button', { active: true, disabled: false }); // 'button button--active'
|
|
858
858
|
*/
|
|
859
859
|
|
|
860
|
-
function block$
|
|
860
|
+
function block$15(baseName, modifiersOrAdditionalClasses, additionalClasses) {
|
|
861
861
|
let modifiers;
|
|
862
862
|
let classes;
|
|
863
863
|
if (Array.isArray(modifiersOrAdditionalClasses)) {
|
|
@@ -892,11 +892,11 @@ function block$12(baseName, modifiersOrAdditionalClasses, additionalClasses) {
|
|
|
892
892
|
* element('my-button', 'icon', { active: true }); // 'my-button__icon my-button__icon--active'
|
|
893
893
|
*/
|
|
894
894
|
|
|
895
|
-
function element$
|
|
895
|
+
function element$P(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
896
896
|
if (Array.isArray(modifiersOrAdditionalClasses)) {
|
|
897
|
-
return block$
|
|
897
|
+
return block$15(`${baseClass}__${elem}`, modifiersOrAdditionalClasses);
|
|
898
898
|
}
|
|
899
|
-
return block$
|
|
899
|
+
return block$15(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
/**
|
|
@@ -905,15 +905,15 @@ function element$M(baseClass, elem, modifiersOrAdditionalClasses, additionalClas
|
|
|
905
905
|
function bem(baseName) {
|
|
906
906
|
function blockFn(modifiersOrAdditionalClasses, additionalClasses) {
|
|
907
907
|
if (Array.isArray(modifiersOrAdditionalClasses)) {
|
|
908
|
-
return block$
|
|
908
|
+
return block$15(baseName, modifiersOrAdditionalClasses);
|
|
909
909
|
}
|
|
910
|
-
return block$
|
|
910
|
+
return block$15(baseName, modifiersOrAdditionalClasses, additionalClasses);
|
|
911
911
|
}
|
|
912
912
|
function elementFn(elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
913
913
|
if (Array.isArray(modifiersOrAdditionalClasses)) {
|
|
914
|
-
return element$
|
|
914
|
+
return element$P(baseName, elem, modifiersOrAdditionalClasses);
|
|
915
915
|
}
|
|
916
|
-
return element$
|
|
916
|
+
return element$P(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
|
|
917
917
|
}
|
|
918
918
|
return {
|
|
919
919
|
block: blockFn,
|
|
@@ -925,20 +925,20 @@ function bem(baseName) {
|
|
|
925
925
|
/**
|
|
926
926
|
* Component display name.
|
|
927
927
|
*/
|
|
928
|
-
const COMPONENT_NAME$
|
|
928
|
+
const COMPONENT_NAME$1g = 'Badge';
|
|
929
929
|
|
|
930
930
|
/**
|
|
931
931
|
* Component default class name and class prefix.
|
|
932
932
|
*/
|
|
933
|
-
const CLASSNAME$
|
|
933
|
+
const CLASSNAME$1g = 'lumx-badge';
|
|
934
934
|
const {
|
|
935
|
-
block: block$
|
|
936
|
-
} = bem(CLASSNAME$
|
|
935
|
+
block: block$14
|
|
936
|
+
} = bem(CLASSNAME$1g);
|
|
937
937
|
|
|
938
938
|
/**
|
|
939
939
|
* Component default props.
|
|
940
940
|
*/
|
|
941
|
-
const DEFAULT_PROPS$
|
|
941
|
+
const DEFAULT_PROPS$17 = {
|
|
942
942
|
color: ColorPalette.primary
|
|
943
943
|
};
|
|
944
944
|
|
|
@@ -952,22 +952,22 @@ const Badge$1 = props => {
|
|
|
952
952
|
const {
|
|
953
953
|
children,
|
|
954
954
|
className,
|
|
955
|
-
color = DEFAULT_PROPS$
|
|
955
|
+
color = DEFAULT_PROPS$17.color,
|
|
956
956
|
ref,
|
|
957
957
|
...forwardedProps
|
|
958
958
|
} = props;
|
|
959
959
|
return /*#__PURE__*/jsx("div", {
|
|
960
960
|
ref: ref,
|
|
961
961
|
...forwardedProps,
|
|
962
|
-
className: classnames(className, block$
|
|
962
|
+
className: classnames(className, block$14({
|
|
963
963
|
[`color-${color}`]: Boolean(color)
|
|
964
964
|
})),
|
|
965
965
|
children: children
|
|
966
966
|
});
|
|
967
967
|
};
|
|
968
|
-
Badge$1.displayName = COMPONENT_NAME$
|
|
969
|
-
Badge$1.className = CLASSNAME$
|
|
970
|
-
Badge$1.defaultProps = DEFAULT_PROPS$
|
|
968
|
+
Badge$1.displayName = COMPONENT_NAME$1g;
|
|
969
|
+
Badge$1.className = CLASSNAME$1g;
|
|
970
|
+
Badge$1.defaultProps = DEFAULT_PROPS$17;
|
|
971
971
|
|
|
972
972
|
/**
|
|
973
973
|
* Defines the props of the component.
|
|
@@ -990,12 +990,12 @@ Badge.displayName = Badge$1.displayName;
|
|
|
990
990
|
Badge.className = Badge$1.className;
|
|
991
991
|
Badge.defaultProps = Badge$1.defaultProps;
|
|
992
992
|
|
|
993
|
-
const COMPONENT_NAME$
|
|
994
|
-
const CLASSNAME$
|
|
993
|
+
const COMPONENT_NAME$1f = 'BadgeWrapper';
|
|
994
|
+
const CLASSNAME$1f = 'lumx-badge-wrapper';
|
|
995
995
|
const {
|
|
996
|
-
block: block$
|
|
997
|
-
element: element$
|
|
998
|
-
} = bem(CLASSNAME$
|
|
996
|
+
block: block$13,
|
|
997
|
+
element: element$O
|
|
998
|
+
} = bem(CLASSNAME$1f);
|
|
999
999
|
const BadgeWrapper$1 = props => {
|
|
1000
1000
|
const {
|
|
1001
1001
|
badge,
|
|
@@ -1007,9 +1007,9 @@ const BadgeWrapper$1 = props => {
|
|
|
1007
1007
|
return /*#__PURE__*/jsxs("div", {
|
|
1008
1008
|
ref: ref,
|
|
1009
1009
|
...forwardedProps,
|
|
1010
|
-
className: classnames(className, block$
|
|
1010
|
+
className: classnames(className, block$13()),
|
|
1011
1011
|
children: [children, badge && /*#__PURE__*/jsx("div", {
|
|
1012
|
-
className: element$
|
|
1012
|
+
className: element$O('badge'),
|
|
1013
1013
|
children: badge
|
|
1014
1014
|
})]
|
|
1015
1015
|
});
|
|
@@ -1021,8 +1021,8 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
1021
1021
|
ref
|
|
1022
1022
|
});
|
|
1023
1023
|
});
|
|
1024
|
-
BadgeWrapper.displayName = COMPONENT_NAME$
|
|
1025
|
-
BadgeWrapper.className = CLASSNAME$
|
|
1024
|
+
BadgeWrapper.displayName = COMPONENT_NAME$1f;
|
|
1025
|
+
BadgeWrapper.className = CLASSNAME$1f;
|
|
1026
1026
|
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Render clickable element (link, button or custom element)
|
|
@@ -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
|
|
@@ -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,20 +1178,20 @@ 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.
|
|
1185
1185
|
*/
|
|
1186
|
-
const CLASSNAME$
|
|
1186
|
+
const CLASSNAME$1e = 'lumx-button';
|
|
1187
1187
|
const {
|
|
1188
1188
|
modifier
|
|
1189
|
-
} = bem(CLASSNAME$
|
|
1189
|
+
} = bem(CLASSNAME$1e);
|
|
1190
1190
|
|
|
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$
|
|
1227
|
-
Button$1.className = CLASSNAME$
|
|
1228
|
-
Button$1.defaultProps = DEFAULT_PROPS$
|
|
1226
|
+
Button$1.displayName = COMPONENT_NAME$1d;
|
|
1227
|
+
Button$1.className = CLASSNAME$1e;
|
|
1228
|
+
Button$1.defaultProps = DEFAULT_PROPS$16;
|
|
1229
1229
|
|
|
1230
1230
|
/**
|
|
1231
1231
|
* Properties of a component to use to determine it's name.
|
|
@@ -1291,26 +1291,26 @@ const Button = forwardRef((props, ref) => {
|
|
|
1291
1291
|
})
|
|
1292
1292
|
});
|
|
1293
1293
|
});
|
|
1294
|
-
Button.displayName = COMPONENT_NAME$
|
|
1295
|
-
Button.className = CLASSNAME$
|
|
1296
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1294
|
+
Button.displayName = COMPONENT_NAME$1d;
|
|
1295
|
+
Button.className = CLASSNAME$1e;
|
|
1296
|
+
Button.defaultProps = DEFAULT_PROPS$16;
|
|
1297
1297
|
|
|
1298
|
-
const COMPONENT_NAME$
|
|
1298
|
+
const COMPONENT_NAME$1c = 'Icon';
|
|
1299
1299
|
const IconClassName = 'lumx-icon';
|
|
1300
1300
|
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Defines the props of the component.
|
|
1303
1303
|
*/
|
|
1304
1304
|
|
|
1305
|
-
const CLASSNAME$
|
|
1305
|
+
const CLASSNAME$1d = IconClassName;
|
|
1306
1306
|
const {
|
|
1307
|
-
block: block
|
|
1308
|
-
} = bem(CLASSNAME$
|
|
1307
|
+
block: block$12
|
|
1308
|
+
} = bem(CLASSNAME$1d);
|
|
1309
1309
|
|
|
1310
1310
|
/**
|
|
1311
1311
|
* Component default props.
|
|
1312
1312
|
*/
|
|
1313
|
-
const DEFAULT_PROPS$
|
|
1313
|
+
const DEFAULT_PROPS$15 = {};
|
|
1314
1314
|
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Icon component.
|
|
@@ -1359,7 +1359,7 @@ const Icon$1 = props => {
|
|
|
1359
1359
|
return /*#__PURE__*/jsx("i", {
|
|
1360
1360
|
ref: ref,
|
|
1361
1361
|
...forwardedProps,
|
|
1362
|
-
className: classnames(className, block
|
|
1362
|
+
className: classnames(className, block$12({
|
|
1363
1363
|
[`color-${iconColor}`]: Boolean(iconColor),
|
|
1364
1364
|
[`color-variant-${iconColorVariant}`]: Boolean(iconColorVariant),
|
|
1365
1365
|
'has-shape': hasShape,
|
|
@@ -1388,24 +1388,24 @@ const Icon$1 = props => {
|
|
|
1388
1388
|
})
|
|
1389
1389
|
});
|
|
1390
1390
|
};
|
|
1391
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1392
|
-
Icon$1.className = CLASSNAME$
|
|
1393
|
-
Icon$1.defaultProps = DEFAULT_PROPS$
|
|
1391
|
+
Icon$1.displayName = COMPONENT_NAME$1c;
|
|
1392
|
+
Icon$1.className = CLASSNAME$1d;
|
|
1393
|
+
Icon$1.defaultProps = DEFAULT_PROPS$15;
|
|
1394
1394
|
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Component display name.
|
|
1397
1397
|
*/
|
|
1398
|
-
const COMPONENT_NAME$
|
|
1398
|
+
const COMPONENT_NAME$1b = 'IconButton';
|
|
1399
1399
|
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Component default class name and class prefix.
|
|
1402
1402
|
*/
|
|
1403
|
-
const CLASSNAME$
|
|
1403
|
+
const CLASSNAME$1c = 'lumx-icon-button';
|
|
1404
1404
|
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Component default props.
|
|
1407
1407
|
*/
|
|
1408
|
-
const DEFAULT_PROPS$
|
|
1408
|
+
const DEFAULT_PROPS$14 = {
|
|
1409
1409
|
emphasis: Emphasis.high,
|
|
1410
1410
|
size: Size.m
|
|
1411
1411
|
};
|
|
@@ -1418,11 +1418,11 @@ const DEFAULT_PROPS$13 = {
|
|
|
1418
1418
|
*/
|
|
1419
1419
|
const IconButton$1 = props => {
|
|
1420
1420
|
const {
|
|
1421
|
-
emphasis = DEFAULT_PROPS$
|
|
1421
|
+
emphasis = DEFAULT_PROPS$14.emphasis,
|
|
1422
1422
|
image,
|
|
1423
1423
|
icon,
|
|
1424
1424
|
label,
|
|
1425
|
-
size = DEFAULT_PROPS$
|
|
1425
|
+
size = DEFAULT_PROPS$14.size,
|
|
1426
1426
|
...forwardedProps
|
|
1427
1427
|
} = props;
|
|
1428
1428
|
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
@@ -1441,9 +1441,9 @@ const IconButton$1 = props => {
|
|
|
1441
1441
|
children: defaultChildren
|
|
1442
1442
|
});
|
|
1443
1443
|
};
|
|
1444
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1445
|
-
IconButton$1.className = CLASSNAME$
|
|
1446
|
-
IconButton$1.defaultProps = DEFAULT_PROPS$
|
|
1444
|
+
IconButton$1.displayName = COMPONENT_NAME$1b;
|
|
1445
|
+
IconButton$1.className = CLASSNAME$1c;
|
|
1446
|
+
IconButton$1.defaultProps = DEFAULT_PROPS$14;
|
|
1447
1447
|
|
|
1448
1448
|
/**
|
|
1449
1449
|
* IconButton component.
|
|
@@ -1478,24 +1478,24 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1478
1478
|
})
|
|
1479
1479
|
});
|
|
1480
1480
|
});
|
|
1481
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1482
|
-
IconButton.className = CLASSNAME$
|
|
1483
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1481
|
+
IconButton.displayName = COMPONENT_NAME$1b;
|
|
1482
|
+
IconButton.className = CLASSNAME$1c;
|
|
1483
|
+
IconButton.defaultProps = DEFAULT_PROPS$14;
|
|
1484
1484
|
|
|
1485
1485
|
/**
|
|
1486
1486
|
* Component display name.
|
|
1487
1487
|
*/
|
|
1488
|
-
const COMPONENT_NAME$
|
|
1488
|
+
const COMPONENT_NAME$1a = 'ButtonGroup';
|
|
1489
1489
|
|
|
1490
1490
|
/**
|
|
1491
1491
|
* Component default class name and class prefix.
|
|
1492
1492
|
*/
|
|
1493
|
-
const CLASSNAME$
|
|
1493
|
+
const CLASSNAME$1b = 'lumx-button-group';
|
|
1494
1494
|
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Component default props.
|
|
1497
1497
|
*/
|
|
1498
|
-
const DEFAULT_PROPS$
|
|
1498
|
+
const DEFAULT_PROPS$13 = {};
|
|
1499
1499
|
|
|
1500
1500
|
/**
|
|
1501
1501
|
* ButtonGroup component.
|
|
@@ -1511,13 +1511,13 @@ const ButtonGroup$1 = props => {
|
|
|
1511
1511
|
} = props;
|
|
1512
1512
|
return /*#__PURE__*/jsx("div", {
|
|
1513
1513
|
...forwardedProps,
|
|
1514
|
-
className: classnames(className, CLASSNAME$
|
|
1514
|
+
className: classnames(className, CLASSNAME$1b),
|
|
1515
1515
|
children: children
|
|
1516
1516
|
});
|
|
1517
1517
|
};
|
|
1518
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1519
|
-
ButtonGroup$1.className = CLASSNAME$
|
|
1520
|
-
ButtonGroup$1.defaultProps = DEFAULT_PROPS$
|
|
1518
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1a;
|
|
1519
|
+
ButtonGroup$1.className = CLASSNAME$1b;
|
|
1520
|
+
ButtonGroup$1.defaultProps = DEFAULT_PROPS$13;
|
|
1521
1521
|
|
|
1522
1522
|
/**
|
|
1523
1523
|
* ButtonGroup component.
|
|
@@ -1532,17 +1532,17 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1532
1532
|
...props
|
|
1533
1533
|
});
|
|
1534
1534
|
});
|
|
1535
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1536
|
-
ButtonGroup.className = CLASSNAME$
|
|
1537
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1535
|
+
ButtonGroup.displayName = COMPONENT_NAME$1a;
|
|
1536
|
+
ButtonGroup.className = CLASSNAME$1b;
|
|
1537
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$13;
|
|
1538
1538
|
|
|
1539
|
-
const COMPONENT_NAME$
|
|
1539
|
+
const COMPONENT_NAME$19 = 'InputLabel';
|
|
1540
1540
|
const InputLabelClassName = 'lumx-input-label';
|
|
1541
|
-
const CLASSNAME$
|
|
1541
|
+
const CLASSNAME$1a = InputLabelClassName;
|
|
1542
1542
|
const {
|
|
1543
|
-
block: block$
|
|
1544
|
-
} = bem(CLASSNAME$
|
|
1545
|
-
const DEFAULT_PROPS$
|
|
1543
|
+
block: block$11
|
|
1544
|
+
} = bem(CLASSNAME$1a);
|
|
1545
|
+
const DEFAULT_PROPS$12 = {};
|
|
1546
1546
|
|
|
1547
1547
|
/**
|
|
1548
1548
|
* InputLabel component.
|
|
@@ -1562,7 +1562,7 @@ function InputLabel$1(props) {
|
|
|
1562
1562
|
ref: ref,
|
|
1563
1563
|
...forwardedProps,
|
|
1564
1564
|
htmlFor: htmlFor,
|
|
1565
|
-
className: classnames(className, block$
|
|
1565
|
+
className: classnames(className, block$11({
|
|
1566
1566
|
'is-required': isRequired,
|
|
1567
1567
|
[`theme-${theme}`]: Boolean(theme),
|
|
1568
1568
|
'has-custom-typography': Boolean(typography$1)
|
|
@@ -1570,9 +1570,9 @@ function InputLabel$1(props) {
|
|
|
1570
1570
|
children: children
|
|
1571
1571
|
});
|
|
1572
1572
|
}
|
|
1573
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1574
|
-
InputLabel$1.className = CLASSNAME$
|
|
1575
|
-
InputLabel$1.defaultProps = DEFAULT_PROPS$
|
|
1573
|
+
InputLabel$1.displayName = COMPONENT_NAME$19;
|
|
1574
|
+
InputLabel$1.className = CLASSNAME$1a;
|
|
1575
|
+
InputLabel$1.defaultProps = DEFAULT_PROPS$12;
|
|
1576
1576
|
|
|
1577
1577
|
const INPUT_HELPER_CONFIGURATION = {
|
|
1578
1578
|
[Kind.error]: {
|
|
@@ -1586,22 +1586,22 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
};
|
|
1588
1588
|
|
|
1589
|
-
const COMPONENT_NAME$
|
|
1589
|
+
const COMPONENT_NAME$18 = 'InputHelper';
|
|
1590
1590
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1591
1591
|
|
|
1592
1592
|
/**
|
|
1593
1593
|
* Defines the props of the component.
|
|
1594
1594
|
*/
|
|
1595
1595
|
|
|
1596
|
-
const CLASSNAME$
|
|
1596
|
+
const CLASSNAME$19 = InputHelperClassName;
|
|
1597
1597
|
const {
|
|
1598
|
-
block: block$
|
|
1599
|
-
} = bem(CLASSNAME$
|
|
1598
|
+
block: block$10
|
|
1599
|
+
} = bem(CLASSNAME$19);
|
|
1600
1600
|
|
|
1601
1601
|
/**
|
|
1602
1602
|
* Component default props.
|
|
1603
1603
|
*/
|
|
1604
|
-
const DEFAULT_PROPS$
|
|
1604
|
+
const DEFAULT_PROPS$11 = {
|
|
1605
1605
|
kind: Kind.info
|
|
1606
1606
|
};
|
|
1607
1607
|
|
|
@@ -1612,7 +1612,7 @@ function InputHelper$1(props) {
|
|
|
1612
1612
|
const {
|
|
1613
1613
|
children,
|
|
1614
1614
|
className,
|
|
1615
|
-
kind = DEFAULT_PROPS$
|
|
1615
|
+
kind = DEFAULT_PROPS$11.kind,
|
|
1616
1616
|
theme,
|
|
1617
1617
|
ref,
|
|
1618
1618
|
...forwardedProps
|
|
@@ -1623,16 +1623,16 @@ function InputHelper$1(props) {
|
|
|
1623
1623
|
return /*#__PURE__*/jsx("p", {
|
|
1624
1624
|
ref: ref,
|
|
1625
1625
|
...forwardedProps,
|
|
1626
|
-
className: classnames(className, block$
|
|
1626
|
+
className: classnames(className, block$10({
|
|
1627
1627
|
[`color-${color}`]: Boolean(color),
|
|
1628
1628
|
[`theme-${theme}`]: Boolean(theme)
|
|
1629
1629
|
})),
|
|
1630
1630
|
children: children
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1634
|
-
InputHelper$1.className = CLASSNAME$
|
|
1635
|
-
InputHelper$1.defaultProps = DEFAULT_PROPS$
|
|
1633
|
+
InputHelper$1.displayName = COMPONENT_NAME$18;
|
|
1634
|
+
InputHelper$1.className = CLASSNAME$19;
|
|
1635
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$11;
|
|
1636
1636
|
|
|
1637
1637
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1638
1638
|
|
|
@@ -1643,16 +1643,16 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1643
1643
|
/**
|
|
1644
1644
|
* Component display name.
|
|
1645
1645
|
*/
|
|
1646
|
-
const COMPONENT_NAME$
|
|
1646
|
+
const COMPONENT_NAME$17 = 'Checkbox';
|
|
1647
1647
|
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Component default class name and class prefix.
|
|
1650
1650
|
*/
|
|
1651
|
-
const CLASSNAME$
|
|
1651
|
+
const CLASSNAME$18 = 'lumx-checkbox';
|
|
1652
1652
|
const {
|
|
1653
|
-
block: block
|
|
1654
|
-
element: element$
|
|
1655
|
-
} = bem(CLASSNAME$
|
|
1653
|
+
block: block$$,
|
|
1654
|
+
element: element$N
|
|
1655
|
+
} = bem(CLASSNAME$18);
|
|
1656
1656
|
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Checkbox component.
|
|
@@ -1688,7 +1688,7 @@ const Checkbox$1 = props => {
|
|
|
1688
1688
|
return /*#__PURE__*/jsxs("div", {
|
|
1689
1689
|
ref: ref,
|
|
1690
1690
|
...forwardedProps,
|
|
1691
|
-
className: classnames(className, block
|
|
1691
|
+
className: classnames(className, block$$({
|
|
1692
1692
|
// Whether state is intermediate class name will "-checked"
|
|
1693
1693
|
'is-checked': intermediateState ? true : isChecked,
|
|
1694
1694
|
'is-disabled': isDisabled,
|
|
@@ -1696,12 +1696,12 @@ const Checkbox$1 = props => {
|
|
|
1696
1696
|
[`theme-${theme}`]: Boolean(theme)
|
|
1697
1697
|
})),
|
|
1698
1698
|
children: [/*#__PURE__*/jsxs("div", {
|
|
1699
|
-
className: element$
|
|
1699
|
+
className: element$N('input-wrapper'),
|
|
1700
1700
|
children: [/*#__PURE__*/jsx("input", {
|
|
1701
1701
|
ref: inputRef,
|
|
1702
1702
|
type: "checkbox",
|
|
1703
1703
|
id: inputId,
|
|
1704
|
-
className: element$
|
|
1704
|
+
className: element$N('input-native'),
|
|
1705
1705
|
name: name,
|
|
1706
1706
|
value: value,
|
|
1707
1707
|
checked: isChecked,
|
|
@@ -1713,26 +1713,26 @@ const Checkbox$1 = props => {
|
|
|
1713
1713
|
} : {}),
|
|
1714
1714
|
...inputProps
|
|
1715
1715
|
}), /*#__PURE__*/jsxs("div", {
|
|
1716
|
-
className: element$
|
|
1716
|
+
className: element$N('input-placeholder'),
|
|
1717
1717
|
children: [/*#__PURE__*/jsx("div", {
|
|
1718
|
-
className: element$
|
|
1718
|
+
className: element$N('input-background')
|
|
1719
1719
|
}), /*#__PURE__*/jsx("div", {
|
|
1720
|
-
className: element$
|
|
1720
|
+
className: element$N('input-indicator'),
|
|
1721
1721
|
children: Icon$1({
|
|
1722
1722
|
icon: intermediateState ? mdiMinus : mdiCheck
|
|
1723
1723
|
})
|
|
1724
1724
|
})]
|
|
1725
1725
|
})]
|
|
1726
1726
|
}), /*#__PURE__*/jsxs("div", {
|
|
1727
|
-
className: element$
|
|
1727
|
+
className: element$N('content'),
|
|
1728
1728
|
children: [label && InputLabel$1({
|
|
1729
1729
|
htmlFor: inputId,
|
|
1730
|
-
className: element$
|
|
1730
|
+
className: element$N('label'),
|
|
1731
1731
|
theme,
|
|
1732
1732
|
children: label
|
|
1733
1733
|
}), helper && InputHelper$1({
|
|
1734
1734
|
id: `${inputId}-helper`,
|
|
1735
|
-
className: element$
|
|
1735
|
+
className: element$N('helper'),
|
|
1736
1736
|
theme,
|
|
1737
1737
|
children: helper
|
|
1738
1738
|
})]
|
|
@@ -1747,7 +1747,7 @@ const Checkbox$1 = props => {
|
|
|
1747
1747
|
/**
|
|
1748
1748
|
* Component default props.
|
|
1749
1749
|
*/
|
|
1750
|
-
const DEFAULT_PROPS
|
|
1750
|
+
const DEFAULT_PROPS$10 = {};
|
|
1751
1751
|
|
|
1752
1752
|
/**
|
|
1753
1753
|
* Checkbox component.
|
|
@@ -1807,9 +1807,9 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1807
1807
|
inputId
|
|
1808
1808
|
});
|
|
1809
1809
|
});
|
|
1810
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
1811
|
-
Checkbox.className = CLASSNAME$
|
|
1812
|
-
Checkbox.defaultProps = DEFAULT_PROPS
|
|
1810
|
+
Checkbox.displayName = COMPONENT_NAME$17;
|
|
1811
|
+
Checkbox.className = CLASSNAME$18;
|
|
1812
|
+
Checkbox.defaultProps = DEFAULT_PROPS$10;
|
|
1813
1813
|
|
|
1814
1814
|
/**
|
|
1815
1815
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -1830,21 +1830,21 @@ function useStopPropagation(handler) {
|
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Component display name.
|
|
1832
1832
|
*/
|
|
1833
|
-
const COMPONENT_NAME$
|
|
1833
|
+
const COMPONENT_NAME$16 = 'Chip';
|
|
1834
1834
|
|
|
1835
1835
|
/**
|
|
1836
1836
|
* Component default class name and class prefix.
|
|
1837
1837
|
*/
|
|
1838
|
-
const CLASSNAME$
|
|
1838
|
+
const CLASSNAME$17 = 'lumx-chip';
|
|
1839
1839
|
const {
|
|
1840
|
-
block: block$
|
|
1841
|
-
element: element$
|
|
1842
|
-
} = classNames.bem(CLASSNAME$
|
|
1840
|
+
block: block$_,
|
|
1841
|
+
element: element$M
|
|
1842
|
+
} = classNames.bem(CLASSNAME$17);
|
|
1843
1843
|
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Component default props.
|
|
1846
1846
|
*/
|
|
1847
|
-
const DEFAULT_PROPS
|
|
1847
|
+
const DEFAULT_PROPS$$ = {
|
|
1848
1848
|
size: Size$1.m
|
|
1849
1849
|
};
|
|
1850
1850
|
|
|
@@ -1874,7 +1874,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1874
1874
|
onAfterClick,
|
|
1875
1875
|
onBeforeClick,
|
|
1876
1876
|
onClick,
|
|
1877
|
-
size = DEFAULT_PROPS
|
|
1877
|
+
size = DEFAULT_PROPS$$.size,
|
|
1878
1878
|
theme = defaultTheme,
|
|
1879
1879
|
href,
|
|
1880
1880
|
onKeyDown,
|
|
@@ -1905,7 +1905,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1905
1905
|
...forwardedProps,
|
|
1906
1906
|
href: !disabledStateProps.disabled ? href : undefined,
|
|
1907
1907
|
ref: ref,
|
|
1908
|
-
className: classNames.join(className, block$
|
|
1908
|
+
className: classNames.join(className, block$_({
|
|
1909
1909
|
'is-clickable': isClickable,
|
|
1910
1910
|
[`color-${chipColor}`]: Boolean(chipColor),
|
|
1911
1911
|
'is-disabled': isAnyDisabled,
|
|
@@ -1923,19 +1923,19 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1923
1923
|
/*#__PURE__*/
|
|
1924
1924
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
1925
1925
|
jsx("div", {
|
|
1926
|
-
className: element$
|
|
1926
|
+
className: element$M('before', {
|
|
1927
1927
|
'is-clickable': hasBeforeClick
|
|
1928
1928
|
}),
|
|
1929
1929
|
onClick: handleOnBeforeClick,
|
|
1930
1930
|
children: before
|
|
1931
1931
|
}), /*#__PURE__*/jsx("div", {
|
|
1932
|
-
className: element$
|
|
1932
|
+
className: element$M('label'),
|
|
1933
1933
|
children: children
|
|
1934
1934
|
}), after &&
|
|
1935
1935
|
/*#__PURE__*/
|
|
1936
1936
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
1937
1937
|
jsx("div", {
|
|
1938
|
-
className: element$
|
|
1938
|
+
className: element$M('after', {
|
|
1939
1939
|
'is-clickable': hasAfterClick
|
|
1940
1940
|
}),
|
|
1941
1941
|
onClick: handleOnAfterClick,
|
|
@@ -1944,9 +1944,9 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1944
1944
|
})
|
|
1945
1945
|
);
|
|
1946
1946
|
});
|
|
1947
|
-
Chip.displayName = COMPONENT_NAME$
|
|
1948
|
-
Chip.className = CLASSNAME$
|
|
1949
|
-
Chip.defaultProps = DEFAULT_PROPS
|
|
1947
|
+
Chip.displayName = COMPONENT_NAME$16;
|
|
1948
|
+
Chip.className = CLASSNAME$17;
|
|
1949
|
+
Chip.defaultProps = DEFAULT_PROPS$$;
|
|
1950
1950
|
|
|
1951
1951
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
1952
1952
|
|
|
@@ -2002,17 +2002,17 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
|
|
|
2002
2002
|
/**
|
|
2003
2003
|
* Component default props.
|
|
2004
2004
|
*/
|
|
2005
|
-
const DEFAULT_PROPS$
|
|
2005
|
+
const DEFAULT_PROPS$_ = {};
|
|
2006
2006
|
|
|
2007
2007
|
/**
|
|
2008
2008
|
* Component display name.
|
|
2009
2009
|
*/
|
|
2010
|
-
const COMPONENT_NAME$
|
|
2010
|
+
const COMPONENT_NAME$15 = 'ChipGroup';
|
|
2011
2011
|
|
|
2012
2012
|
/**
|
|
2013
2013
|
* Component default class name and class prefix.
|
|
2014
2014
|
*/
|
|
2015
|
-
const CLASSNAME$
|
|
2015
|
+
const CLASSNAME$16 = 'lumx-chip-group';
|
|
2016
2016
|
|
|
2017
2017
|
/**
|
|
2018
2018
|
* ChipGroup component.
|
|
@@ -2031,13 +2031,13 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2031
2031
|
return /*#__PURE__*/jsx("div", {
|
|
2032
2032
|
ref: ref,
|
|
2033
2033
|
...forwardedProps,
|
|
2034
|
-
className: classNames.join(className, CLASSNAME$
|
|
2034
|
+
className: classNames.join(className, CLASSNAME$16),
|
|
2035
2035
|
children: children
|
|
2036
2036
|
});
|
|
2037
2037
|
});
|
|
2038
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2039
|
-
InternalChipGroup.className = CLASSNAME$
|
|
2040
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2038
|
+
InternalChipGroup.displayName = COMPONENT_NAME$15;
|
|
2039
|
+
InternalChipGroup.className = CLASSNAME$16;
|
|
2040
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$_;
|
|
2041
2041
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2042
2042
|
useChipGroupNavigation
|
|
2043
2043
|
});
|
|
@@ -2127,11 +2127,11 @@ function useFocusLastChipOnBackspace(chipRefs, inputRef) {
|
|
|
2127
2127
|
/**
|
|
2128
2128
|
* Component default class name and class prefix.
|
|
2129
2129
|
*/
|
|
2130
|
-
const CLASSNAME$
|
|
2130
|
+
const CLASSNAME$15 = 'lumx-selection-chip-group';
|
|
2131
2131
|
const {
|
|
2132
|
-
block: block$
|
|
2133
|
-
element: element$
|
|
2134
|
-
} = classNames.bem(CLASSNAME$
|
|
2132
|
+
block: block$Z,
|
|
2133
|
+
element: element$L
|
|
2134
|
+
} = classNames.bem(CLASSNAME$15);
|
|
2135
2135
|
|
|
2136
2136
|
/**
|
|
2137
2137
|
* SelectionChipGroup component.
|
|
@@ -2161,7 +2161,7 @@ const SelectionChipGroup = ({
|
|
|
2161
2161
|
return /*#__PURE__*/jsx(ChipGroup, {
|
|
2162
2162
|
role: "group",
|
|
2163
2163
|
"aria-label": label,
|
|
2164
|
-
className: block$
|
|
2164
|
+
className: block$Z(),
|
|
2165
2165
|
...forwardedProps,
|
|
2166
2166
|
children: value?.map((v, index) => {
|
|
2167
2167
|
const name = getWithSelector(getOptionName, v);
|
|
@@ -2205,7 +2205,7 @@ const SelectionChipGroup = ({
|
|
|
2205
2205
|
after: /*#__PURE__*/jsx(Icon, {
|
|
2206
2206
|
icon: mdiClose
|
|
2207
2207
|
}),
|
|
2208
|
-
className: element$
|
|
2208
|
+
className: element$L('chip', [props?.className]),
|
|
2209
2209
|
size: "s",
|
|
2210
2210
|
ref: ref,
|
|
2211
2211
|
onClick: onClick,
|
|
@@ -2220,6 +2220,654 @@ const SelectionChipGroup = ({
|
|
|
2220
2220
|
});
|
|
2221
2221
|
};
|
|
2222
2222
|
|
|
2223
|
+
const ComboboxOptionContext = /*#__PURE__*/createContext({});
|
|
2224
|
+
/** Context Provider to store the current combobox option id. */
|
|
2225
|
+
const ComboboxOptionContextProvider = ({
|
|
2226
|
+
optionId,
|
|
2227
|
+
isKeyboardHighlighted,
|
|
2228
|
+
children
|
|
2229
|
+
}) => {
|
|
2230
|
+
const value = React__default.useMemo(() => ({
|
|
2231
|
+
optionId,
|
|
2232
|
+
isKeyboardHighlighted
|
|
2233
|
+
}), [optionId, isKeyboardHighlighted]);
|
|
2234
|
+
return /*#__PURE__*/jsx(ComboboxOptionContext.Provider, {
|
|
2235
|
+
value: value,
|
|
2236
|
+
children: children
|
|
2237
|
+
});
|
|
2238
|
+
};
|
|
2239
|
+
|
|
2240
|
+
/**
|
|
2241
|
+
* Retrieve the current combobox option id.
|
|
2242
|
+
* Must be used within a ComboboxOptionIdProvider
|
|
2243
|
+
*/
|
|
2244
|
+
const useComboboxOptionContext = () => {
|
|
2245
|
+
const comboboxOption = useContext(ComboboxOptionContext);
|
|
2246
|
+
if (!comboboxOption?.optionId) {
|
|
2247
|
+
throw new Error('This hook must be used within a ComboboxOptionIdProvider');
|
|
2248
|
+
}
|
|
2249
|
+
return comboboxOption;
|
|
2250
|
+
};
|
|
2251
|
+
|
|
2252
|
+
/** Generate the combobox option id from the combobox id and the given id */
|
|
2253
|
+
const generateOptionId = (comboboxId, optionId) => `${comboboxId}-option-${optionId}`;
|
|
2254
|
+
|
|
2255
|
+
/** Verifies that the combobox registered option is an action */
|
|
2256
|
+
const isComboboxAction = option => Boolean(option?.isAction);
|
|
2257
|
+
|
|
2258
|
+
/** Verifies that the combobox registered option is the option's value */
|
|
2259
|
+
const isComboboxValue = option => {
|
|
2260
|
+
return !isComboboxAction(option);
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
const comboboxId = `combobox-${uniqueId()}`;
|
|
2264
|
+
const initialState = {
|
|
2265
|
+
comboboxId,
|
|
2266
|
+
listboxId: `${comboboxId}-popover`,
|
|
2267
|
+
status: 'idle',
|
|
2268
|
+
isOpen: false,
|
|
2269
|
+
inputValue: '',
|
|
2270
|
+
showAll: true,
|
|
2271
|
+
options: {},
|
|
2272
|
+
type: 'listbox',
|
|
2273
|
+
optionsLength: 0
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2276
|
+
/** Dispatch for the combobox component */
|
|
2277
|
+
|
|
2278
|
+
/** Context for the Combobox component */
|
|
2279
|
+
const ComboboxContext = /*#__PURE__*/React__default.createContext({
|
|
2280
|
+
...initialState,
|
|
2281
|
+
openOnFocus: false,
|
|
2282
|
+
openOnClick: false,
|
|
2283
|
+
selectionType: 'single',
|
|
2284
|
+
optionsLength: 0,
|
|
2285
|
+
onSelect: noop,
|
|
2286
|
+
onInputChange: noop,
|
|
2287
|
+
onOpen: noop,
|
|
2288
|
+
dispatch: noop,
|
|
2289
|
+
translations: {
|
|
2290
|
+
clearLabel: '',
|
|
2291
|
+
tryReloadLabel: '',
|
|
2292
|
+
showSuggestionsLabel: '',
|
|
2293
|
+
noResultsForInputLabel: input => input || '',
|
|
2294
|
+
loadingLabel: '',
|
|
2295
|
+
serviceUnavailableLabel: '',
|
|
2296
|
+
nbOptionsLabel: options => `${options}`
|
|
2297
|
+
}
|
|
2298
|
+
});
|
|
2299
|
+
|
|
2300
|
+
/** Context for a combobox section to store its unique id */
|
|
2301
|
+
const SectionContext = /*#__PURE__*/React__default.createContext({
|
|
2302
|
+
sectionId: ''
|
|
2303
|
+
});
|
|
2304
|
+
|
|
2305
|
+
/** Context to store the refs of the combobox elements */
|
|
2306
|
+
const ComboboxRefsContext = /*#__PURE__*/createContext({
|
|
2307
|
+
triggerRef: {
|
|
2308
|
+
current: null
|
|
2309
|
+
},
|
|
2310
|
+
anchorRef: {
|
|
2311
|
+
current: null
|
|
2312
|
+
}
|
|
2313
|
+
});
|
|
2314
|
+
|
|
2315
|
+
/** Retrieves the combobox elements references from context */
|
|
2316
|
+
const useComboboxRefs = () => {
|
|
2317
|
+
const refs = useContext(ComboboxRefsContext);
|
|
2318
|
+
if (!refs) {
|
|
2319
|
+
throw new Error('The useComboboxRefs hook must be called within a ComboboxRefsProvider');
|
|
2320
|
+
}
|
|
2321
|
+
return refs;
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
/** Retrieve the current combobox state and actions */
|
|
2325
|
+
const useCombobox = () => {
|
|
2326
|
+
const comboboxContext = React__default.useContext(ComboboxContext);
|
|
2327
|
+
const {
|
|
2328
|
+
dispatch: movingFocusDispatch
|
|
2329
|
+
} = React__default.useContext(MovingFocusContext);
|
|
2330
|
+
const {
|
|
2331
|
+
onSelect,
|
|
2332
|
+
onInputChange,
|
|
2333
|
+
onOpen,
|
|
2334
|
+
dispatch,
|
|
2335
|
+
inputValue,
|
|
2336
|
+
...contextValues
|
|
2337
|
+
} = comboboxContext;
|
|
2338
|
+
const {
|
|
2339
|
+
triggerRef
|
|
2340
|
+
} = useComboboxRefs();
|
|
2341
|
+
|
|
2342
|
+
/** Action triggered when the listBox is closed without selecting any option */
|
|
2343
|
+
const handleClose = React__default.useCallback(() => {
|
|
2344
|
+
dispatch({
|
|
2345
|
+
type: 'CLOSE_COMBOBOX'
|
|
2346
|
+
});
|
|
2347
|
+
// Reset visual focus
|
|
2348
|
+
movingFocusDispatch({
|
|
2349
|
+
type: 'RESET_SELECTED_TAB_STOP'
|
|
2350
|
+
});
|
|
2351
|
+
}, [dispatch, movingFocusDispatch]);
|
|
2352
|
+
|
|
2353
|
+
// Handle callbacks on options mounted
|
|
2354
|
+
const [optionsMountedCallbacks, setOptionsMountedCallback] = React__default.useState();
|
|
2355
|
+
React__default.useEffect(() => {
|
|
2356
|
+
if (comboboxContext.optionsLength > 0 && optionsMountedCallbacks?.length) {
|
|
2357
|
+
const optionsArray = Object.values(comboboxContext.options);
|
|
2358
|
+
// Execute callbacks
|
|
2359
|
+
for (const callback of optionsMountedCallbacks) {
|
|
2360
|
+
callback(optionsArray);
|
|
2361
|
+
}
|
|
2362
|
+
setOptionsMountedCallback(undefined);
|
|
2363
|
+
}
|
|
2364
|
+
}, [comboboxContext.options, comboboxContext.optionsLength, optionsMountedCallbacks]);
|
|
2365
|
+
|
|
2366
|
+
/** Callback for when an option is selected */
|
|
2367
|
+
const handleSelected = React__default.useCallback((option, source) => {
|
|
2368
|
+
if (option?.isDisabled) {
|
|
2369
|
+
return;
|
|
2370
|
+
}
|
|
2371
|
+
if (isComboboxValue(option)) {
|
|
2372
|
+
/**
|
|
2373
|
+
* We only close the list if the selection type is single.
|
|
2374
|
+
* If it is multiple, we want to allow the user to continue
|
|
2375
|
+
* selecting multiple options.
|
|
2376
|
+
*/
|
|
2377
|
+
if (comboboxContext.selectionType !== 'multiple') {
|
|
2378
|
+
handleClose();
|
|
2379
|
+
}
|
|
2380
|
+
/** Call parent onSelect callback */
|
|
2381
|
+
if (onSelect) {
|
|
2382
|
+
onSelect(option);
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
/** If the option itself has a custom action, also call it */
|
|
2387
|
+
if (option?.onSelect) {
|
|
2388
|
+
option.onSelect(option, source);
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
/** Reset focus on input */
|
|
2392
|
+
if (triggerRef?.current) {
|
|
2393
|
+
triggerRef.current?.focus();
|
|
2394
|
+
}
|
|
2395
|
+
}, [comboboxContext.selectionType, handleClose, onSelect, triggerRef]);
|
|
2396
|
+
|
|
2397
|
+
/** Callback for when the input must be updated */
|
|
2398
|
+
const handleInputChange = React__default.useCallback((value, ...args) => {
|
|
2399
|
+
// Update the local state
|
|
2400
|
+
dispatch({
|
|
2401
|
+
type: 'SET_INPUT_VALUE',
|
|
2402
|
+
payload: value
|
|
2403
|
+
});
|
|
2404
|
+
// If a callback if given, call it with the value
|
|
2405
|
+
if (onInputChange) {
|
|
2406
|
+
onInputChange(value, ...args);
|
|
2407
|
+
}
|
|
2408
|
+
// Reset visual focus
|
|
2409
|
+
movingFocusDispatch({
|
|
2410
|
+
type: 'RESET_SELECTED_TAB_STOP'
|
|
2411
|
+
});
|
|
2412
|
+
}, [dispatch, movingFocusDispatch, onInputChange]);
|
|
2413
|
+
|
|
2414
|
+
/**
|
|
2415
|
+
* Open the popover
|
|
2416
|
+
*
|
|
2417
|
+
* @returns a promise with the updated context once all options are mounted
|
|
2418
|
+
*/
|
|
2419
|
+
const handleOpen = React__default.useCallback(params => {
|
|
2420
|
+
/** update the local state */
|
|
2421
|
+
dispatch({
|
|
2422
|
+
type: 'OPEN_COMBOBOX',
|
|
2423
|
+
payload: params
|
|
2424
|
+
});
|
|
2425
|
+
/** If a parent callback was given, trigger it with state information */
|
|
2426
|
+
if (onOpen) {
|
|
2427
|
+
onOpen({
|
|
2428
|
+
currentValue: inputValue,
|
|
2429
|
+
manual: Boolean(params?.manual)
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
// Promise resolving options on mount
|
|
2434
|
+
return new Promise(resolve => {
|
|
2435
|
+
// Append to the list of callback on options mounted
|
|
2436
|
+
setOptionsMountedCallback((callbacks = []) => {
|
|
2437
|
+
callbacks.push(resolve);
|
|
2438
|
+
return callbacks;
|
|
2439
|
+
});
|
|
2440
|
+
});
|
|
2441
|
+
}, [dispatch, inputValue, onOpen]);
|
|
2442
|
+
return React__default.useMemo(() => ({
|
|
2443
|
+
handleClose,
|
|
2444
|
+
handleOpen,
|
|
2445
|
+
handleInputChange,
|
|
2446
|
+
handleSelected,
|
|
2447
|
+
dispatch,
|
|
2448
|
+
inputValue,
|
|
2449
|
+
...contextValues
|
|
2450
|
+
}), [contextValues, dispatch, handleClose, handleInputChange, handleOpen, handleSelected, inputValue]);
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
/** Retrieve the current combobox section id */
|
|
2454
|
+
const useComboboxSectionId = () => {
|
|
2455
|
+
return useContext(SectionContext);
|
|
2456
|
+
};
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* Register the given option to the context
|
|
2460
|
+
*/
|
|
2461
|
+
const useRegisterOption = (registerId, option, shouldRegister) => {
|
|
2462
|
+
const {
|
|
2463
|
+
dispatch
|
|
2464
|
+
} = useCombobox();
|
|
2465
|
+
|
|
2466
|
+
/** Register the given options */
|
|
2467
|
+
React__default.useEffect(() => {
|
|
2468
|
+
if (option && shouldRegister) {
|
|
2469
|
+
dispatch({
|
|
2470
|
+
type: 'ADD_OPTION',
|
|
2471
|
+
payload: {
|
|
2472
|
+
id: registerId,
|
|
2473
|
+
option
|
|
2474
|
+
}
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
// Unregister ids if/when the component unmounts or if option changes
|
|
2479
|
+
return () => {
|
|
2480
|
+
if (option) {
|
|
2481
|
+
dispatch({
|
|
2482
|
+
type: 'REMOVE_OPTION',
|
|
2483
|
+
payload: {
|
|
2484
|
+
id: registerId
|
|
2485
|
+
}
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
2489
|
+
}, [dispatch, option, registerId, shouldRegister]);
|
|
2490
|
+
};
|
|
2491
|
+
|
|
2492
|
+
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
2493
|
+
const COMBOBOX_OPTION_CLASSNAME = 'lumx-combobox-option';
|
|
2494
|
+
const LUMX_CLASSNAME = 'lumx-list-item';
|
|
2495
|
+
const {
|
|
2496
|
+
block: block$Y,
|
|
2497
|
+
element: element$K
|
|
2498
|
+
} = classNames.bem(COMBOBOX_OPTION_CLASSNAME);
|
|
2499
|
+
const lumxListItem = classNames.bem(LUMX_CLASSNAME);
|
|
2500
|
+
|
|
2501
|
+
/**
|
|
2502
|
+
* Content of the option.
|
|
2503
|
+
* This should only be rendered if the option is shown.
|
|
2504
|
+
*/
|
|
2505
|
+
const OptionContent = forwardRef((props, ref) => {
|
|
2506
|
+
const {
|
|
2507
|
+
id,
|
|
2508
|
+
onSelect,
|
|
2509
|
+
isSelected,
|
|
2510
|
+
isDisabled,
|
|
2511
|
+
children,
|
|
2512
|
+
className,
|
|
2513
|
+
before,
|
|
2514
|
+
after,
|
|
2515
|
+
as,
|
|
2516
|
+
size = Size$1.tiny,
|
|
2517
|
+
comboboxType,
|
|
2518
|
+
tooltipProps,
|
|
2519
|
+
description,
|
|
2520
|
+
'aria-hidden': ariaHidden,
|
|
2521
|
+
autofocus,
|
|
2522
|
+
...forwardedProps
|
|
2523
|
+
} = props;
|
|
2524
|
+
const itemRef = React__default.useRef(null);
|
|
2525
|
+
const {
|
|
2526
|
+
state
|
|
2527
|
+
} = React__default.useContext(MovingFocusContext);
|
|
2528
|
+
const {
|
|
2529
|
+
selectedIds
|
|
2530
|
+
} = useCombobox();
|
|
2531
|
+
const hasSelection = selectedIds !== undefined;
|
|
2532
|
+
const isHighlighted = useVirtualFocus(id, itemRef, false, comboboxType === 'grid' ? id : undefined, autofocus);
|
|
2533
|
+
const Element = as || 'span';
|
|
2534
|
+
const ariaSelected = isSelected ? 'true' : 'false';
|
|
2535
|
+
const ariaDescriptionId = description ? `${id}-description` : undefined;
|
|
2536
|
+
const isKeyboardHighlighted = state.isUsingKeyboard && isHighlighted;
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* The DS `ListItem` component has a lot of behavior / default props we do not want here.
|
|
2540
|
+
* Notably the before/after items are within the interactive element, which we do not want.
|
|
2541
|
+
* So we use a native li tag.
|
|
2542
|
+
*/
|
|
2543
|
+
return /*#__PURE__*/jsx("li", {
|
|
2544
|
+
className: block$Y(undefined, [className ?? '', lumxListItem.block({
|
|
2545
|
+
[`size-${size}`]: !!size
|
|
2546
|
+
})]),
|
|
2547
|
+
role: "presentation",
|
|
2548
|
+
ref: itemRef,
|
|
2549
|
+
"aria-hidden": ariaHidden,
|
|
2550
|
+
style: {
|
|
2551
|
+
display: ariaHidden ? 'none' : undefined
|
|
2552
|
+
},
|
|
2553
|
+
...forwardedProps,
|
|
2554
|
+
children: /*#__PURE__*/jsxs(GenericBlock, {
|
|
2555
|
+
as: "div",
|
|
2556
|
+
role: comboboxType === 'grid' ? 'row' : 'presentation',
|
|
2557
|
+
className: element$K('content', {
|
|
2558
|
+
// Not using the lumx list item disabled style as it blocks pointer events
|
|
2559
|
+
'is-disabled': !!isDisabled
|
|
2560
|
+
},
|
|
2561
|
+
// TODO: migrate away from using lumx-list-item styles https://lumapps.atlassian.net/browse/DSW-288
|
|
2562
|
+
[lumxListItem.element('link', {
|
|
2563
|
+
'is-selected': Boolean(isSelected),
|
|
2564
|
+
'is-highlighted': Boolean(isHighlighted)
|
|
2565
|
+
})]),
|
|
2566
|
+
"data-focus-visible-added": isKeyboardHighlighted ? 'true' : undefined,
|
|
2567
|
+
children: [before && /*#__PURE__*/jsx(GenericBlock.Figure, {
|
|
2568
|
+
as: "span",
|
|
2569
|
+
role: "presentation",
|
|
2570
|
+
className: element$K('before', undefined, [lumxListItem.element('before')]),
|
|
2571
|
+
children: before
|
|
2572
|
+
}), /*#__PURE__*/jsxs(GenericBlock.Content, {
|
|
2573
|
+
as: "span",
|
|
2574
|
+
role: "presentation",
|
|
2575
|
+
className: lumxListItem.element('content'),
|
|
2576
|
+
children: [/*#__PURE__*/jsx(Tooltip, {
|
|
2577
|
+
forceOpen: isKeyboardHighlighted,
|
|
2578
|
+
closeMode: "hide",
|
|
2579
|
+
...tooltipProps,
|
|
2580
|
+
children: /*#__PURE__*/jsx(Element, {
|
|
2581
|
+
id: id,
|
|
2582
|
+
className: element$K('trigger'),
|
|
2583
|
+
role: comboboxType === 'grid' ? 'gridcell' : 'option',
|
|
2584
|
+
"aria-selected": hasSelection ? ariaSelected : undefined,
|
|
2585
|
+
"aria-disabled": isDisabled,
|
|
2586
|
+
"aria-describedby": ariaDescriptionId,
|
|
2587
|
+
onClick: onSelect
|
|
2588
|
+
// Prevent mouse down to avoid blur before the click is activated
|
|
2589
|
+
,
|
|
2590
|
+
onMouseDown: event => event.preventDefault(),
|
|
2591
|
+
ref: ref,
|
|
2592
|
+
...forwardedProps,
|
|
2593
|
+
children: children
|
|
2594
|
+
})
|
|
2595
|
+
}), description && /*#__PURE__*/jsx(Text, {
|
|
2596
|
+
as: "span",
|
|
2597
|
+
id: ariaDescriptionId,
|
|
2598
|
+
role: "presentation",
|
|
2599
|
+
className: element$K('description'),
|
|
2600
|
+
typography: "caption",
|
|
2601
|
+
color: "dark",
|
|
2602
|
+
colorVariant: "L2",
|
|
2603
|
+
children: description
|
|
2604
|
+
})]
|
|
2605
|
+
}), after && /*#__PURE__*/jsx(GenericBlock.Actions, {
|
|
2606
|
+
as: "span",
|
|
2607
|
+
role: "presentation",
|
|
2608
|
+
className: element$K('after', undefined, [lumxListItem.element('after')]),
|
|
2609
|
+
children: /*#__PURE__*/jsx(ComboboxOptionContextProvider, {
|
|
2610
|
+
optionId: id,
|
|
2611
|
+
isKeyboardHighlighted: isKeyboardHighlighted,
|
|
2612
|
+
children: after
|
|
2613
|
+
})
|
|
2614
|
+
})]
|
|
2615
|
+
})
|
|
2616
|
+
});
|
|
2617
|
+
});
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* Props for ComboboxOption with additional generic properties.
|
|
2621
|
+
*/
|
|
2622
|
+
|
|
2623
|
+
/**
|
|
2624
|
+
* Option to set within a combobox list.
|
|
2625
|
+
*
|
|
2626
|
+
* @family Combobox
|
|
2627
|
+
* @param ComboboxOptionProps
|
|
2628
|
+
* @returns ComboboxOption
|
|
2629
|
+
*/
|
|
2630
|
+
const ComboboxOption = forwardRef((props, ref) => {
|
|
2631
|
+
const {
|
|
2632
|
+
children,
|
|
2633
|
+
id,
|
|
2634
|
+
textValue,
|
|
2635
|
+
data,
|
|
2636
|
+
filterFromInput = true,
|
|
2637
|
+
onSelect: onOptionSelect,
|
|
2638
|
+
isDisabled,
|
|
2639
|
+
as = 'span',
|
|
2640
|
+
...optionProps
|
|
2641
|
+
} = props;
|
|
2642
|
+
|
|
2643
|
+
// Get the id of the current group, if any.
|
|
2644
|
+
const section = useComboboxSectionId();
|
|
2645
|
+
const {
|
|
2646
|
+
comboboxId,
|
|
2647
|
+
selectedIds,
|
|
2648
|
+
showAll,
|
|
2649
|
+
inputValue,
|
|
2650
|
+
handleSelected,
|
|
2651
|
+
type
|
|
2652
|
+
} = useCombobox();
|
|
2653
|
+
// Generate a unique id for this option.
|
|
2654
|
+
const generatedId = generateOptionId(comboboxId, id);
|
|
2655
|
+
const isSelected = selectedIds?.includes(generatedId);
|
|
2656
|
+
|
|
2657
|
+
// If no text value is set and the direct child is a simple string, use it as value.
|
|
2658
|
+
const isStringChild = typeof children === 'string' || typeof children === 'number';
|
|
2659
|
+
const value = children && !textValue && isStringChild ? children.toString() : textValue;
|
|
2660
|
+
const showOption = !filterFromInput || showAll || value?.toString()?.toLowerCase().includes(inputValue?.toLowerCase());
|
|
2661
|
+
const registeredOption = React__default.useMemo(() => ({
|
|
2662
|
+
id,
|
|
2663
|
+
generatedId,
|
|
2664
|
+
textValue: value,
|
|
2665
|
+
data,
|
|
2666
|
+
filter: filterFromInput,
|
|
2667
|
+
isDisabled: isDisabled || !showOption,
|
|
2668
|
+
sectionId: section.sectionId,
|
|
2669
|
+
onSelect: onOptionSelect
|
|
2670
|
+
}), [data, filterFromInput, generatedId, section.sectionId, id, isDisabled, onOptionSelect, showOption, value]);
|
|
2671
|
+
|
|
2672
|
+
// Register the option
|
|
2673
|
+
useRegisterOption(generatedId, registeredOption, showOption);
|
|
2674
|
+
const handleSelect = React__default.useCallback(() => handleSelected(registeredOption, 'click'), [handleSelected, registeredOption]);
|
|
2675
|
+
if (!id || !showOption) {
|
|
2676
|
+
return null;
|
|
2677
|
+
}
|
|
2678
|
+
return /*#__PURE__*/jsx(OptionContent, {
|
|
2679
|
+
id: generatedId,
|
|
2680
|
+
onSelect: handleSelect,
|
|
2681
|
+
isSelected: isSelected,
|
|
2682
|
+
isDisabled: isDisabled,
|
|
2683
|
+
as: as,
|
|
2684
|
+
ref: ref,
|
|
2685
|
+
comboboxType: type,
|
|
2686
|
+
"aria-hidden": section.isLoading,
|
|
2687
|
+
...optionProps,
|
|
2688
|
+
children: children || textValue
|
|
2689
|
+
});
|
|
2690
|
+
});
|
|
2691
|
+
|
|
2692
|
+
// Default widths the skeletons must have
|
|
2693
|
+
const defaultWidths = [REAL_SIZE_FOR_LUMX_SIZE.xxl, REAL_SIZE_FOR_LUMX_SIZE.xl, REAL_SIZE_FOR_LUMX_SIZE.l];
|
|
2694
|
+
const {
|
|
2695
|
+
block: block$X,
|
|
2696
|
+
element: element$J
|
|
2697
|
+
} = classNames.bem(COMBOBOX_OPTION_CLASSNAME);
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* Skeleton for a combobox option.
|
|
2701
|
+
* A typography skeleton is rendered by default but can be overridden by passing children.
|
|
2702
|
+
*/
|
|
2703
|
+
const ComboboxOptionSkeleton = ({
|
|
2704
|
+
className,
|
|
2705
|
+
index,
|
|
2706
|
+
before,
|
|
2707
|
+
after,
|
|
2708
|
+
size = Size$1.tiny,
|
|
2709
|
+
children
|
|
2710
|
+
}) => {
|
|
2711
|
+
const renderedChildren = typeof children === 'function' ? children({
|
|
2712
|
+
index
|
|
2713
|
+
}) : children;
|
|
2714
|
+
const content = renderedChildren || /*#__PURE__*/jsx(SkeletonTypography, {
|
|
2715
|
+
typography: "body1",
|
|
2716
|
+
width: index !== undefined && defaultWidths[index] ? defaultWidths[index] : REAL_SIZE_FOR_LUMX_SIZE.xl
|
|
2717
|
+
});
|
|
2718
|
+
return /*#__PURE__*/jsxs("li", {
|
|
2719
|
+
role: "presentation",
|
|
2720
|
+
className: block$X({
|
|
2721
|
+
skeleton: true
|
|
2722
|
+
}, ['lumx-list-item', `lumx-list-item--size-${size}`, className]),
|
|
2723
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
2724
|
+
role: "presentation",
|
|
2725
|
+
className: element$J('content', ['lumx-list-item__wrapper']),
|
|
2726
|
+
children: [before && /*#__PURE__*/jsx(Text, {
|
|
2727
|
+
as: "span",
|
|
2728
|
+
role: "presentation",
|
|
2729
|
+
className: element$J('before', ['lumx-list-item__before']),
|
|
2730
|
+
children: before
|
|
2731
|
+
}), content]
|
|
2732
|
+
}), after && /*#__PURE__*/jsx("div", {
|
|
2733
|
+
role: "presentation",
|
|
2734
|
+
className: element$J('after', ['lumx-list-item__after']),
|
|
2735
|
+
children: after
|
|
2736
|
+
})]
|
|
2737
|
+
});
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* Action to set on a Combobox Option.
|
|
2742
|
+
* Allows to add an interactive element that
|
|
2743
|
+
* can be navigated to and triggered using the keyboard.
|
|
2744
|
+
*
|
|
2745
|
+
* Defaults as "button"
|
|
2746
|
+
*
|
|
2747
|
+
* @family Combobox
|
|
2748
|
+
* @param ComboboxOptionActionProps
|
|
2749
|
+
* @returns ComboboxOptionAction
|
|
2750
|
+
*/
|
|
2751
|
+
const ComboboxOptionAction = props => {
|
|
2752
|
+
const {
|
|
2753
|
+
as,
|
|
2754
|
+
isDisabled,
|
|
2755
|
+
onClick,
|
|
2756
|
+
id: originalId,
|
|
2757
|
+
...forwardedProps
|
|
2758
|
+
} = props;
|
|
2759
|
+
const {
|
|
2760
|
+
optionId
|
|
2761
|
+
} = useComboboxOptionContext();
|
|
2762
|
+
const {
|
|
2763
|
+
triggerRef
|
|
2764
|
+
} = useComboboxRefs();
|
|
2765
|
+
const itemRef = React__default.useRef(null);
|
|
2766
|
+
const generatedId = useId();
|
|
2767
|
+
const id = originalId || generatedId;
|
|
2768
|
+
const isHighlighted = useVirtualFocus(id, itemRef, isDisabled, optionId);
|
|
2769
|
+
const {
|
|
2770
|
+
state
|
|
2771
|
+
} = React__default.useContext(MovingFocusContext);
|
|
2772
|
+
const Component = as || 'button';
|
|
2773
|
+
const registeredActionOption = React__default.useMemo(() => ({
|
|
2774
|
+
id,
|
|
2775
|
+
generatedId: id,
|
|
2776
|
+
isAction: true,
|
|
2777
|
+
isDisabled,
|
|
2778
|
+
onSelect: () => {
|
|
2779
|
+
itemRef.current?.click();
|
|
2780
|
+
}
|
|
2781
|
+
}), [id, isDisabled]);
|
|
2782
|
+
|
|
2783
|
+
// Register the option
|
|
2784
|
+
useRegisterOption(id, registeredActionOption, !isDisabled);
|
|
2785
|
+
const handleActionClick = React__default.useCallback(() => {
|
|
2786
|
+
if (onClick) {
|
|
2787
|
+
onClick();
|
|
2788
|
+
}
|
|
2789
|
+
if (triggerRef?.current) {
|
|
2790
|
+
triggerRef.current?.focus();
|
|
2791
|
+
}
|
|
2792
|
+
}, [triggerRef, onClick]);
|
|
2793
|
+
return /*#__PURE__*/jsx(Component, {
|
|
2794
|
+
...forwardedProps,
|
|
2795
|
+
isDisabled: isDisabled,
|
|
2796
|
+
id: id,
|
|
2797
|
+
role: "gridcell",
|
|
2798
|
+
ref: itemRef,
|
|
2799
|
+
"data-focus-visible-added": state.isUsingKeyboard && isHighlighted ? 'true' : undefined,
|
|
2800
|
+
"aria-disabled": isDisabled,
|
|
2801
|
+
onClick: handleActionClick
|
|
2802
|
+
});
|
|
2803
|
+
};
|
|
2804
|
+
|
|
2805
|
+
const useBooleanState = defaultValue => {
|
|
2806
|
+
const [booleanValue, setBoolean] = useState(defaultValue);
|
|
2807
|
+
const setToFalse = useCallback(() => setBoolean(false), []);
|
|
2808
|
+
const setToTrue = useCallback(() => setBoolean(true), []);
|
|
2809
|
+
const toggleBoolean = useCallback(() => setBoolean(previousValue => !previousValue), []);
|
|
2810
|
+
return [booleanValue, setToFalse, setToTrue, toggleBoolean];
|
|
2811
|
+
};
|
|
2812
|
+
|
|
2813
|
+
const CLASSNAME$14 = 'lumx-combobox-option-more-info';
|
|
2814
|
+
const {
|
|
2815
|
+
block: block$W,
|
|
2816
|
+
element: element$I
|
|
2817
|
+
} = classNames.bem(CLASSNAME$14);
|
|
2818
|
+
|
|
2819
|
+
/**
|
|
2820
|
+
* Display more info on the option as a popover opening on mouse hover or keyboard nav
|
|
2821
|
+
* Please consider using a simpler option description instead for better UX and a11y.
|
|
2822
|
+
*
|
|
2823
|
+
* @family Combobox
|
|
2824
|
+
*/
|
|
2825
|
+
const ComboboxOptionMoreInfo = ({
|
|
2826
|
+
buttonProps,
|
|
2827
|
+
popoverProps,
|
|
2828
|
+
onToggle,
|
|
2829
|
+
children
|
|
2830
|
+
}) => {
|
|
2831
|
+
const ref = React__default.useRef(null);
|
|
2832
|
+
const [isHovered,, onMouseLeave, onMouseEnter] = useBooleanState(false);
|
|
2833
|
+
const comboboxOption = useComboboxOptionContext();
|
|
2834
|
+
|
|
2835
|
+
// Open on mouse hover or key nav
|
|
2836
|
+
const isOpen = isHovered || comboboxOption.isKeyboardHighlighted;
|
|
2837
|
+
React__default.useEffect(() => {
|
|
2838
|
+
onToggle?.(isOpen);
|
|
2839
|
+
}, [isOpen, onToggle]);
|
|
2840
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
2841
|
+
children: [/*#__PURE__*/jsx(IconButton, {
|
|
2842
|
+
...buttonProps,
|
|
2843
|
+
ref: ref,
|
|
2844
|
+
className: block$W([buttonProps?.className]),
|
|
2845
|
+
icon: mdiInformationOutline,
|
|
2846
|
+
size: "s",
|
|
2847
|
+
emphasis: "low",
|
|
2848
|
+
onMouseEnter: onMouseEnter,
|
|
2849
|
+
onMouseLeave: onMouseLeave
|
|
2850
|
+
// Button actually plays no role here other than a target for the mouse hover
|
|
2851
|
+
// Keyboard accessibility is handled via combobox keyboard highlighting
|
|
2852
|
+
,
|
|
2853
|
+
"aria-hidden": true,
|
|
2854
|
+
label: ""
|
|
2855
|
+
}), /*#__PURE__*/jsx(Popover, {
|
|
2856
|
+
...popoverProps,
|
|
2857
|
+
className: element$I('popover', [popoverProps?.className]),
|
|
2858
|
+
anchorRef: ref,
|
|
2859
|
+
isOpen: isOpen,
|
|
2860
|
+
closeOnEscape: true,
|
|
2861
|
+
closeOnClickAway: true,
|
|
2862
|
+
placement: "bottom-start",
|
|
2863
|
+
children: children
|
|
2864
|
+
}), /*#__PURE__*/jsx(A11YLiveMessage, {
|
|
2865
|
+
hidden: true,
|
|
2866
|
+
children: isOpen ? children : undefined
|
|
2867
|
+
})]
|
|
2868
|
+
});
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2223
2871
|
/**
|
|
2224
2872
|
* Comment block variants.
|
|
2225
2873
|
*/
|
|
@@ -2235,7 +2883,7 @@ const CommentBlockVariant = {
|
|
|
2235
2883
|
/**
|
|
2236
2884
|
* Component display name.
|
|
2237
2885
|
*/
|
|
2238
|
-
const COMPONENT_NAME$
|
|
2886
|
+
const COMPONENT_NAME$14 = 'CommentBlock';
|
|
2239
2887
|
|
|
2240
2888
|
/**
|
|
2241
2889
|
* Component default class name and class prefix.
|
|
@@ -2249,7 +2897,7 @@ const {
|
|
|
2249
2897
|
/**
|
|
2250
2898
|
* Component default props.
|
|
2251
2899
|
*/
|
|
2252
|
-
const DEFAULT_PROPS$
|
|
2900
|
+
const DEFAULT_PROPS$Z = {
|
|
2253
2901
|
variant: CommentBlockVariant.indented
|
|
2254
2902
|
};
|
|
2255
2903
|
|
|
@@ -2279,7 +2927,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2279
2927
|
onMouseLeave,
|
|
2280
2928
|
text,
|
|
2281
2929
|
theme = defaultTheme,
|
|
2282
|
-
variant = DEFAULT_PROPS$
|
|
2930
|
+
variant = DEFAULT_PROPS$Z.variant,
|
|
2283
2931
|
...forwardedProps
|
|
2284
2932
|
} = props;
|
|
2285
2933
|
const hasChildren = Children.count(children) > 0;
|
|
@@ -2346,9 +2994,9 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2346
2994
|
})]
|
|
2347
2995
|
});
|
|
2348
2996
|
});
|
|
2349
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
2997
|
+
CommentBlock.displayName = COMPONENT_NAME$14;
|
|
2350
2998
|
CommentBlock.className = CLASSNAME$13;
|
|
2351
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
2999
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$Z;
|
|
2352
3000
|
|
|
2353
3001
|
/**
|
|
2354
3002
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -2368,7 +3016,7 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
2368
3016
|
/**
|
|
2369
3017
|
* Component display name.
|
|
2370
3018
|
*/
|
|
2371
|
-
const COMPONENT_NAME$
|
|
3019
|
+
const COMPONENT_NAME$13 = 'DatePicker';
|
|
2372
3020
|
|
|
2373
3021
|
/**
|
|
2374
3022
|
* Component default class name and class prefix.
|
|
@@ -2602,7 +3250,7 @@ const {
|
|
|
2602
3250
|
/**
|
|
2603
3251
|
* Component display name.
|
|
2604
3252
|
*/
|
|
2605
|
-
const COMPONENT_NAME$
|
|
3253
|
+
const COMPONENT_NAME$12 = 'DatePickerControlled';
|
|
2606
3254
|
|
|
2607
3255
|
/**
|
|
2608
3256
|
* DatePickerControlled component.
|
|
@@ -2792,7 +3440,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2792
3440
|
})]
|
|
2793
3441
|
});
|
|
2794
3442
|
});
|
|
2795
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
3443
|
+
DatePickerControlled.displayName = COMPONENT_NAME$12;
|
|
2796
3444
|
DatePickerControlled.className = CLASSNAME$12;
|
|
2797
3445
|
|
|
2798
3446
|
/**
|
|
@@ -2835,21 +3483,13 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
2835
3483
|
onMonthChange: setSelectedMonth
|
|
2836
3484
|
});
|
|
2837
3485
|
});
|
|
2838
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
3486
|
+
DatePicker.displayName = COMPONENT_NAME$13;
|
|
2839
3487
|
DatePicker.className = CLASSNAME$12;
|
|
2840
3488
|
|
|
2841
|
-
const useBooleanState = defaultValue => {
|
|
2842
|
-
const [booleanValue, setBoolean] = useState(defaultValue);
|
|
2843
|
-
const setToFalse = useCallback(() => setBoolean(false), []);
|
|
2844
|
-
const setToTrue = useCallback(() => setBoolean(true), []);
|
|
2845
|
-
const toggleBoolean = useCallback(() => setBoolean(previousValue => !previousValue), []);
|
|
2846
|
-
return [booleanValue, setToFalse, setToTrue, toggleBoolean];
|
|
2847
|
-
};
|
|
2848
|
-
|
|
2849
3489
|
/**
|
|
2850
3490
|
* Component display name.
|
|
2851
3491
|
*/
|
|
2852
|
-
const COMPONENT_NAME$
|
|
3492
|
+
const COMPONENT_NAME$11 = 'DatePickerField';
|
|
2853
3493
|
|
|
2854
3494
|
/**
|
|
2855
3495
|
* DatePickerField component.
|
|
@@ -2938,7 +3578,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
2938
3578
|
}) : null]
|
|
2939
3579
|
});
|
|
2940
3580
|
});
|
|
2941
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
3581
|
+
DatePickerField.displayName = COMPONENT_NAME$11;
|
|
2942
3582
|
|
|
2943
3583
|
/**
|
|
2944
3584
|
* Optional global `window` instance (not defined when running SSR).
|
|
@@ -3439,7 +4079,7 @@ const isFooter$1 = isComponent('footer');
|
|
|
3439
4079
|
/**
|
|
3440
4080
|
* Component display name.
|
|
3441
4081
|
*/
|
|
3442
|
-
const COMPONENT_NAME$
|
|
4082
|
+
const COMPONENT_NAME$10 = 'Dialog';
|
|
3443
4083
|
|
|
3444
4084
|
/**
|
|
3445
4085
|
* Component default class name and class prefix.
|
|
@@ -3453,7 +4093,7 @@ const {
|
|
|
3453
4093
|
/**
|
|
3454
4094
|
* Component default props.
|
|
3455
4095
|
*/
|
|
3456
|
-
const DEFAULT_PROPS$
|
|
4096
|
+
const DEFAULT_PROPS$Y = {
|
|
3457
4097
|
size: Size$1.big,
|
|
3458
4098
|
disableBodyScroll: true
|
|
3459
4099
|
};
|
|
@@ -3484,11 +4124,11 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3484
4124
|
parentElement,
|
|
3485
4125
|
contentRef,
|
|
3486
4126
|
preventAutoClose,
|
|
3487
|
-
size = DEFAULT_PROPS$
|
|
4127
|
+
size = DEFAULT_PROPS$Y.size,
|
|
3488
4128
|
zIndex,
|
|
3489
4129
|
dialogProps,
|
|
3490
4130
|
onVisibilityChange,
|
|
3491
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
4131
|
+
disableBodyScroll = DEFAULT_PROPS$Y.disableBodyScroll,
|
|
3492
4132
|
preventCloseOnClick,
|
|
3493
4133
|
preventCloseOnEscape,
|
|
3494
4134
|
...forwardedProps
|
|
@@ -3626,14 +4266,14 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3626
4266
|
})
|
|
3627
4267
|
}) : null;
|
|
3628
4268
|
});
|
|
3629
|
-
Dialog.displayName = COMPONENT_NAME$
|
|
4269
|
+
Dialog.displayName = COMPONENT_NAME$10;
|
|
3630
4270
|
Dialog.className = CLASSNAME$11;
|
|
3631
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
4271
|
+
Dialog.defaultProps = DEFAULT_PROPS$Y;
|
|
3632
4272
|
|
|
3633
4273
|
/**
|
|
3634
4274
|
* Component display name.
|
|
3635
4275
|
*/
|
|
3636
|
-
const COMPONENT_NAME
|
|
4276
|
+
const COMPONENT_NAME$$ = 'Divider';
|
|
3637
4277
|
|
|
3638
4278
|
/**
|
|
3639
4279
|
* Component default class name and class prefix.
|
|
@@ -3672,7 +4312,7 @@ const Divider$1 = props => {
|
|
|
3672
4312
|
/**
|
|
3673
4313
|
* Component default props.
|
|
3674
4314
|
*/
|
|
3675
|
-
const DEFAULT_PROPS$
|
|
4315
|
+
const DEFAULT_PROPS$X = {};
|
|
3676
4316
|
|
|
3677
4317
|
/**
|
|
3678
4318
|
* Divider component.
|
|
@@ -3693,14 +4333,14 @@ const Divider = forwardRef((props, ref) => {
|
|
|
3693
4333
|
...otherProps
|
|
3694
4334
|
});
|
|
3695
4335
|
});
|
|
3696
|
-
Divider.displayName = COMPONENT_NAME
|
|
4336
|
+
Divider.displayName = COMPONENT_NAME$$;
|
|
3697
4337
|
Divider.className = CLASSNAME$10;
|
|
3698
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
4338
|
+
Divider.defaultProps = DEFAULT_PROPS$X;
|
|
3699
4339
|
|
|
3700
4340
|
/**
|
|
3701
4341
|
* Component display name.
|
|
3702
4342
|
*/
|
|
3703
|
-
const COMPONENT_NAME
|
|
4343
|
+
const COMPONENT_NAME$_ = 'DragHandle';
|
|
3704
4344
|
|
|
3705
4345
|
/**
|
|
3706
4346
|
* Component default class name and class prefix.
|
|
@@ -3737,7 +4377,7 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
3737
4377
|
})
|
|
3738
4378
|
});
|
|
3739
4379
|
});
|
|
3740
|
-
DragHandle.displayName = COMPONENT_NAME
|
|
4380
|
+
DragHandle.displayName = COMPONENT_NAME$_;
|
|
3741
4381
|
DragHandle.className = CLASSNAME$$;
|
|
3742
4382
|
|
|
3743
4383
|
const INITIAL_INDEX = -1;
|
|
@@ -3907,7 +4547,7 @@ const useKeyboardListNavigation = (items, ref, onListItemSelected, onListItemNav
|
|
|
3907
4547
|
/**
|
|
3908
4548
|
* Component display name.
|
|
3909
4549
|
*/
|
|
3910
|
-
const COMPONENT_NAME$
|
|
4550
|
+
const COMPONENT_NAME$Z = 'List';
|
|
3911
4551
|
|
|
3912
4552
|
/**
|
|
3913
4553
|
* Component default class name and class prefix.
|
|
@@ -3920,7 +4560,7 @@ const {
|
|
|
3920
4560
|
/**
|
|
3921
4561
|
* Component default props.
|
|
3922
4562
|
*/
|
|
3923
|
-
const DEFAULT_PROPS$
|
|
4563
|
+
const DEFAULT_PROPS$W = {
|
|
3924
4564
|
tabIndex: -1
|
|
3925
4565
|
};
|
|
3926
4566
|
|
|
@@ -3939,7 +4579,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3939
4579
|
isClickable,
|
|
3940
4580
|
itemPadding,
|
|
3941
4581
|
onListItemSelected,
|
|
3942
|
-
tabIndex = DEFAULT_PROPS$
|
|
4582
|
+
tabIndex = DEFAULT_PROPS$W.tabIndex,
|
|
3943
4583
|
...forwardedProps
|
|
3944
4584
|
} = props;
|
|
3945
4585
|
const adjustedItemPadding = itemPadding ?? (isClickable ? Size$1.big : undefined);
|
|
@@ -3953,9 +4593,9 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3953
4593
|
children: children
|
|
3954
4594
|
});
|
|
3955
4595
|
});
|
|
3956
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
4596
|
+
InternalList.displayName = COMPONENT_NAME$Z;
|
|
3957
4597
|
InternalList.className = CLASSNAME$_;
|
|
3958
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
4598
|
+
InternalList.defaultProps = DEFAULT_PROPS$W;
|
|
3959
4599
|
const List = Object.assign(InternalList, {
|
|
3960
4600
|
useKeyboardListNavigation
|
|
3961
4601
|
});
|
|
@@ -6386,7 +7026,7 @@ function usePopoverStyle({
|
|
|
6386
7026
|
/**
|
|
6387
7027
|
* Component display name.
|
|
6388
7028
|
*/
|
|
6389
|
-
const COMPONENT_NAME$
|
|
7029
|
+
const COMPONENT_NAME$Y = 'Popover';
|
|
6390
7030
|
|
|
6391
7031
|
/**
|
|
6392
7032
|
* Component default class name and class prefix.
|
|
@@ -6400,7 +7040,7 @@ const {
|
|
|
6400
7040
|
/**
|
|
6401
7041
|
* Component default props.
|
|
6402
7042
|
*/
|
|
6403
|
-
const DEFAULT_PROPS$
|
|
7043
|
+
const DEFAULT_PROPS$V = {
|
|
6404
7044
|
elevation: 3,
|
|
6405
7045
|
placement: Placement.AUTO,
|
|
6406
7046
|
focusAnchorOnClose: true,
|
|
@@ -6417,24 +7057,24 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6417
7057
|
className,
|
|
6418
7058
|
closeOnClickAway,
|
|
6419
7059
|
closeOnEscape,
|
|
6420
|
-
elevation = DEFAULT_PROPS$
|
|
7060
|
+
elevation = DEFAULT_PROPS$V.elevation,
|
|
6421
7061
|
focusElement,
|
|
6422
7062
|
hasArrow,
|
|
6423
7063
|
isOpen,
|
|
6424
7064
|
onClose,
|
|
6425
7065
|
parentElement,
|
|
6426
|
-
usePortal = DEFAULT_PROPS$
|
|
6427
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
7066
|
+
usePortal = DEFAULT_PROPS$V.usePortal,
|
|
7067
|
+
focusAnchorOnClose = DEFAULT_PROPS$V.focusAnchorOnClose,
|
|
6428
7068
|
withFocusTrap,
|
|
6429
7069
|
boundaryRef,
|
|
6430
7070
|
fitToAnchorWidth,
|
|
6431
7071
|
fitWithinViewportHeight,
|
|
6432
7072
|
focusTrapZoneElement,
|
|
6433
7073
|
offset,
|
|
6434
|
-
placement = DEFAULT_PROPS$
|
|
7074
|
+
placement = DEFAULT_PROPS$V.placement,
|
|
6435
7075
|
style,
|
|
6436
7076
|
theme,
|
|
6437
|
-
zIndex = DEFAULT_PROPS$
|
|
7077
|
+
zIndex = DEFAULT_PROPS$V.zIndex,
|
|
6438
7078
|
...forwardedProps
|
|
6439
7079
|
} = props;
|
|
6440
7080
|
const popoverRef = useRef(null);
|
|
@@ -6506,7 +7146,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6506
7146
|
})
|
|
6507
7147
|
}) : null;
|
|
6508
7148
|
});
|
|
6509
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
7149
|
+
_InnerPopover.displayName = COMPONENT_NAME$Y;
|
|
6510
7150
|
|
|
6511
7151
|
/**
|
|
6512
7152
|
* Popover component.
|
|
@@ -6518,9 +7158,9 @@ _InnerPopover.displayName = COMPONENT_NAME$Z;
|
|
|
6518
7158
|
const Popover = skipRender(
|
|
6519
7159
|
// Skip render in SSR
|
|
6520
7160
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
6521
|
-
Popover.displayName = COMPONENT_NAME$
|
|
7161
|
+
Popover.displayName = COMPONENT_NAME$Y;
|
|
6522
7162
|
Popover.className = CLASSNAME$Z;
|
|
6523
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
7163
|
+
Popover.defaultProps = DEFAULT_PROPS$V;
|
|
6524
7164
|
|
|
6525
7165
|
// The error margin in px we want to have for triggering infinite scroll
|
|
6526
7166
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -6566,7 +7206,7 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
|
|
|
6566
7206
|
/**
|
|
6567
7207
|
* Component display name.
|
|
6568
7208
|
*/
|
|
6569
|
-
const COMPONENT_NAME$
|
|
7209
|
+
const COMPONENT_NAME$X = 'Dropdown';
|
|
6570
7210
|
|
|
6571
7211
|
/**
|
|
6572
7212
|
* Component default class name and class prefix.
|
|
@@ -6580,7 +7220,7 @@ const {
|
|
|
6580
7220
|
/**
|
|
6581
7221
|
* Component default props.
|
|
6582
7222
|
*/
|
|
6583
|
-
const DEFAULT_PROPS$
|
|
7223
|
+
const DEFAULT_PROPS$U = {
|
|
6584
7224
|
closeOnClick: true,
|
|
6585
7225
|
closeOnClickAway: true,
|
|
6586
7226
|
closeOnEscape: true,
|
|
@@ -6603,18 +7243,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6603
7243
|
anchorRef,
|
|
6604
7244
|
children,
|
|
6605
7245
|
className,
|
|
6606
|
-
closeOnClick = DEFAULT_PROPS$
|
|
6607
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
6608
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
6609
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
6610
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
7246
|
+
closeOnClick = DEFAULT_PROPS$U.closeOnClick,
|
|
7247
|
+
closeOnClickAway = DEFAULT_PROPS$U.closeOnClickAway,
|
|
7248
|
+
closeOnEscape = DEFAULT_PROPS$U.closeOnEscape,
|
|
7249
|
+
fitToAnchorWidth = DEFAULT_PROPS$U.fitToAnchorWidth,
|
|
7250
|
+
fitWithinViewportHeight = DEFAULT_PROPS$U.fitWithinViewportHeight,
|
|
6611
7251
|
isOpen,
|
|
6612
7252
|
offset,
|
|
6613
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
7253
|
+
focusAnchorOnClose = DEFAULT_PROPS$U.focusAnchorOnClose,
|
|
6614
7254
|
onClose,
|
|
6615
7255
|
onInfiniteScroll,
|
|
6616
|
-
placement = DEFAULT_PROPS$
|
|
6617
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
7256
|
+
placement = DEFAULT_PROPS$U.placement,
|
|
7257
|
+
shouldFocusOnOpen = DEFAULT_PROPS$U.shouldFocusOnOpen,
|
|
6618
7258
|
zIndex,
|
|
6619
7259
|
...forwardedProps
|
|
6620
7260
|
} = props;
|
|
@@ -6658,14 +7298,14 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6658
7298
|
})
|
|
6659
7299
|
}) : null;
|
|
6660
7300
|
});
|
|
6661
|
-
Dropdown.displayName = COMPONENT_NAME$
|
|
7301
|
+
Dropdown.displayName = COMPONENT_NAME$X;
|
|
6662
7302
|
Dropdown.className = CLASSNAME$Y;
|
|
6663
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
7303
|
+
Dropdown.defaultProps = DEFAULT_PROPS$U;
|
|
6664
7304
|
|
|
6665
7305
|
/**
|
|
6666
7306
|
* Component display name.
|
|
6667
7307
|
*/
|
|
6668
|
-
const COMPONENT_NAME$
|
|
7308
|
+
const COMPONENT_NAME$W = 'ExpansionPanel';
|
|
6669
7309
|
|
|
6670
7310
|
/**
|
|
6671
7311
|
* Component default class name and class prefix.
|
|
@@ -6679,7 +7319,7 @@ const {
|
|
|
6679
7319
|
/**
|
|
6680
7320
|
* Component default props.
|
|
6681
7321
|
*/
|
|
6682
|
-
const DEFAULT_PROPS$
|
|
7322
|
+
const DEFAULT_PROPS$T = {
|
|
6683
7323
|
closeMode: 'unmount'
|
|
6684
7324
|
};
|
|
6685
7325
|
const isDragHandle = isComponent(DragHandle);
|
|
@@ -6697,7 +7337,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6697
7337
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
6698
7338
|
const {
|
|
6699
7339
|
className,
|
|
6700
|
-
closeMode = DEFAULT_PROPS$
|
|
7340
|
+
closeMode = DEFAULT_PROPS$T.closeMode,
|
|
6701
7341
|
children: anyChildren,
|
|
6702
7342
|
hasBackground,
|
|
6703
7343
|
hasHeaderDivider,
|
|
@@ -6812,13 +7452,13 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6812
7452
|
})]
|
|
6813
7453
|
});
|
|
6814
7454
|
});
|
|
6815
|
-
ExpansionPanel.displayName = COMPONENT_NAME$
|
|
7455
|
+
ExpansionPanel.displayName = COMPONENT_NAME$W;
|
|
6816
7456
|
ExpansionPanel.className = CLASSNAME$X;
|
|
6817
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
7457
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$T;
|
|
6818
7458
|
|
|
6819
|
-
const COMPONENT_NAME$
|
|
7459
|
+
const COMPONENT_NAME$V = 'Flag';
|
|
6820
7460
|
const CLASSNAME$W = 'lumx-flag';
|
|
6821
|
-
const DEFAULT_PROPS$
|
|
7461
|
+
const DEFAULT_PROPS$S = {};
|
|
6822
7462
|
const {
|
|
6823
7463
|
block: block$N,
|
|
6824
7464
|
element: element$B
|
|
@@ -6880,9 +7520,9 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6880
7520
|
Text
|
|
6881
7521
|
});
|
|
6882
7522
|
});
|
|
6883
|
-
Flag.displayName = COMPONENT_NAME$
|
|
7523
|
+
Flag.displayName = COMPONENT_NAME$V;
|
|
6884
7524
|
Flag.className = CLASSNAME$W;
|
|
6885
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
7525
|
+
Flag.defaultProps = DEFAULT_PROPS$S;
|
|
6886
7526
|
|
|
6887
7527
|
/**
|
|
6888
7528
|
* Defines the props of the component.
|
|
@@ -6891,7 +7531,7 @@ Flag.defaultProps = DEFAULT_PROPS$R;
|
|
|
6891
7531
|
/**
|
|
6892
7532
|
* Component display name.
|
|
6893
7533
|
*/
|
|
6894
|
-
const COMPONENT_NAME$
|
|
7534
|
+
const COMPONENT_NAME$U = 'FlexBox';
|
|
6895
7535
|
|
|
6896
7536
|
/**
|
|
6897
7537
|
* Component default class name and class prefix.
|
|
@@ -6955,13 +7595,13 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
6955
7595
|
children: children
|
|
6956
7596
|
});
|
|
6957
7597
|
});
|
|
6958
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
7598
|
+
FlexBox.displayName = COMPONENT_NAME$U;
|
|
6959
7599
|
FlexBox.className = CLASSNAME$V;
|
|
6960
7600
|
|
|
6961
7601
|
/**
|
|
6962
7602
|
* Component display name.
|
|
6963
7603
|
*/
|
|
6964
|
-
const COMPONENT_NAME$
|
|
7604
|
+
const COMPONENT_NAME$T = 'GenericBlock';
|
|
6965
7605
|
|
|
6966
7606
|
/**
|
|
6967
7607
|
* Component default class name and class prefix.
|
|
@@ -6975,7 +7615,7 @@ const {
|
|
|
6975
7615
|
/**
|
|
6976
7616
|
* Component default props.
|
|
6977
7617
|
*/
|
|
6978
|
-
const DEFAULT_PROPS$
|
|
7618
|
+
const DEFAULT_PROPS$R = {
|
|
6979
7619
|
gap: Size$1.big,
|
|
6980
7620
|
orientation: Orientation$1.horizontal
|
|
6981
7621
|
};
|
|
@@ -7005,8 +7645,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7005
7645
|
children,
|
|
7006
7646
|
actions,
|
|
7007
7647
|
actionsProps,
|
|
7008
|
-
gap = DEFAULT_PROPS$
|
|
7009
|
-
orientation = DEFAULT_PROPS$
|
|
7648
|
+
gap = DEFAULT_PROPS$R.gap,
|
|
7649
|
+
orientation = DEFAULT_PROPS$R.orientation,
|
|
7010
7650
|
contentProps,
|
|
7011
7651
|
...forwardedProps
|
|
7012
7652
|
} = props;
|
|
@@ -7058,9 +7698,9 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7058
7698
|
})]
|
|
7059
7699
|
});
|
|
7060
7700
|
});
|
|
7061
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
7701
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$T;
|
|
7062
7702
|
BaseGenericBlock.className = CLASSNAME$U;
|
|
7063
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
7703
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$R;
|
|
7064
7704
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
7065
7705
|
Figure,
|
|
7066
7706
|
Content,
|
|
@@ -7098,7 +7738,7 @@ const defaultContext = {
|
|
|
7098
7738
|
/**
|
|
7099
7739
|
* Component display name.
|
|
7100
7740
|
*/
|
|
7101
|
-
const COMPONENT_NAME$
|
|
7741
|
+
const COMPONENT_NAME$S = 'Heading';
|
|
7102
7742
|
|
|
7103
7743
|
/**
|
|
7104
7744
|
* Component default class name and class prefix.
|
|
@@ -7108,7 +7748,7 @@ const CLASSNAME$T = 'lumx-heading';
|
|
|
7108
7748
|
/**
|
|
7109
7749
|
* Component default props.
|
|
7110
7750
|
*/
|
|
7111
|
-
const DEFAULT_PROPS$
|
|
7751
|
+
const DEFAULT_PROPS$Q = {};
|
|
7112
7752
|
|
|
7113
7753
|
/**
|
|
7114
7754
|
* Get Heading component common props
|
|
@@ -7196,7 +7836,7 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
7196
7836
|
/**
|
|
7197
7837
|
* Component display name.
|
|
7198
7838
|
*/
|
|
7199
|
-
const COMPONENT_NAME$
|
|
7839
|
+
const COMPONENT_NAME$R = 'Text';
|
|
7200
7840
|
|
|
7201
7841
|
/**
|
|
7202
7842
|
* Component default class name and class prefix.
|
|
@@ -7209,7 +7849,7 @@ const {
|
|
|
7209
7849
|
/**
|
|
7210
7850
|
* Component default props.
|
|
7211
7851
|
*/
|
|
7212
|
-
const DEFAULT_PROPS$
|
|
7852
|
+
const DEFAULT_PROPS$P = {};
|
|
7213
7853
|
|
|
7214
7854
|
/**
|
|
7215
7855
|
* Text component common props
|
|
@@ -7294,9 +7934,9 @@ const Text = forwardRef((props, ref) => {
|
|
|
7294
7934
|
children: wrapChildrenIconWithSpaces(children)
|
|
7295
7935
|
});
|
|
7296
7936
|
});
|
|
7297
|
-
Text.displayName = COMPONENT_NAME$
|
|
7937
|
+
Text.displayName = COMPONENT_NAME$R;
|
|
7298
7938
|
Text.className = CLASSNAME$S;
|
|
7299
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
7939
|
+
Text.defaultProps = DEFAULT_PROPS$P;
|
|
7300
7940
|
|
|
7301
7941
|
const HeadingLevelContext = /*#__PURE__*/createContext(defaultContext);
|
|
7302
7942
|
|
|
@@ -7331,9 +7971,9 @@ const Heading = forwardRef((props, ref) => {
|
|
|
7331
7971
|
children: children
|
|
7332
7972
|
});
|
|
7333
7973
|
});
|
|
7334
|
-
Heading.displayName = COMPONENT_NAME$
|
|
7974
|
+
Heading.displayName = COMPONENT_NAME$S;
|
|
7335
7975
|
Heading.className = CLASSNAME$T;
|
|
7336
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
7976
|
+
Heading.defaultProps = DEFAULT_PROPS$Q;
|
|
7337
7977
|
|
|
7338
7978
|
/**
|
|
7339
7979
|
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
@@ -7371,7 +8011,7 @@ const HeadingLevelProvider = ({
|
|
|
7371
8011
|
/**
|
|
7372
8012
|
* Component display name.
|
|
7373
8013
|
*/
|
|
7374
|
-
const COMPONENT_NAME$
|
|
8014
|
+
const COMPONENT_NAME$Q = 'Grid';
|
|
7375
8015
|
|
|
7376
8016
|
/**
|
|
7377
8017
|
* Component default class name and class prefix.
|
|
@@ -7384,7 +8024,7 @@ const {
|
|
|
7384
8024
|
/**
|
|
7385
8025
|
* Component default props.
|
|
7386
8026
|
*/
|
|
7387
|
-
const DEFAULT_PROPS$
|
|
8027
|
+
const DEFAULT_PROPS$O = {
|
|
7388
8028
|
orientation: Orientation$1.horizontal,
|
|
7389
8029
|
wrap: 'nowrap'
|
|
7390
8030
|
};
|
|
@@ -7402,9 +8042,9 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7402
8042
|
className,
|
|
7403
8043
|
gutter,
|
|
7404
8044
|
hAlign,
|
|
7405
|
-
orientation = DEFAULT_PROPS$
|
|
8045
|
+
orientation = DEFAULT_PROPS$O.orientation,
|
|
7406
8046
|
vAlign,
|
|
7407
|
-
wrap = DEFAULT_PROPS$
|
|
8047
|
+
wrap = DEFAULT_PROPS$O.wrap,
|
|
7408
8048
|
...forwardedProps
|
|
7409
8049
|
} = props;
|
|
7410
8050
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -7420,14 +8060,14 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7420
8060
|
children: children
|
|
7421
8061
|
});
|
|
7422
8062
|
});
|
|
7423
|
-
Grid.displayName = COMPONENT_NAME$
|
|
8063
|
+
Grid.displayName = COMPONENT_NAME$Q;
|
|
7424
8064
|
Grid.className = CLASSNAME$R;
|
|
7425
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
8065
|
+
Grid.defaultProps = DEFAULT_PROPS$O;
|
|
7426
8066
|
|
|
7427
8067
|
/**
|
|
7428
8068
|
* Component display name.
|
|
7429
8069
|
*/
|
|
7430
|
-
const COMPONENT_NAME$
|
|
8070
|
+
const COMPONENT_NAME$P = 'GridItem';
|
|
7431
8071
|
|
|
7432
8072
|
/**
|
|
7433
8073
|
* Component default class name and class prefix.
|
|
@@ -7464,13 +8104,13 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
7464
8104
|
children: children
|
|
7465
8105
|
});
|
|
7466
8106
|
});
|
|
7467
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
8107
|
+
GridItem.displayName = COMPONENT_NAME$P;
|
|
7468
8108
|
GridItem.className = CLASSNAME$Q;
|
|
7469
8109
|
|
|
7470
8110
|
/**
|
|
7471
8111
|
* Component display name.
|
|
7472
8112
|
*/
|
|
7473
|
-
const COMPONENT_NAME$
|
|
8113
|
+
const COMPONENT_NAME$O = 'GridColumn';
|
|
7474
8114
|
|
|
7475
8115
|
/**
|
|
7476
8116
|
* Component default class name and class prefix.
|
|
@@ -7480,7 +8120,7 @@ const CLASSNAME$P = 'lumx-grid-column';
|
|
|
7480
8120
|
/**
|
|
7481
8121
|
* Component default props.
|
|
7482
8122
|
*/
|
|
7483
|
-
const DEFAULT_PROPS$
|
|
8123
|
+
const DEFAULT_PROPS$N = {};
|
|
7484
8124
|
|
|
7485
8125
|
/**
|
|
7486
8126
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7488,10 +8128,9 @@ const DEFAULT_PROPS$M = {};
|
|
|
7488
8128
|
* with a number of column that reduce when there is not enough space for each item.
|
|
7489
8129
|
*
|
|
7490
8130
|
* @param props Component props.
|
|
7491
|
-
* @
|
|
7492
|
-
* @return React element.
|
|
8131
|
+
* @return JSX element.
|
|
7493
8132
|
*/
|
|
7494
|
-
const GridColumn =
|
|
8133
|
+
const GridColumn$1 = props => {
|
|
7495
8134
|
const {
|
|
7496
8135
|
as: Component = 'div',
|
|
7497
8136
|
gap,
|
|
@@ -7500,12 +8139,13 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7500
8139
|
children,
|
|
7501
8140
|
className,
|
|
7502
8141
|
style = {},
|
|
8142
|
+
ref,
|
|
7503
8143
|
...forwardedProps
|
|
7504
8144
|
} = props;
|
|
7505
8145
|
return /*#__PURE__*/jsx(Component, {
|
|
7506
8146
|
...forwardedProps,
|
|
7507
8147
|
ref: ref,
|
|
7508
|
-
className:
|
|
8148
|
+
className: classnames(className, CLASSNAME$P),
|
|
7509
8149
|
style: {
|
|
7510
8150
|
...style,
|
|
7511
8151
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -7514,8 +8154,38 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7514
8154
|
},
|
|
7515
8155
|
children: children
|
|
7516
8156
|
});
|
|
8157
|
+
};
|
|
8158
|
+
GridColumn$1.displayName = COMPONENT_NAME$O;
|
|
8159
|
+
GridColumn$1.className = CLASSNAME$P;
|
|
8160
|
+
GridColumn$1.defaultProps = DEFAULT_PROPS$N;
|
|
8161
|
+
|
|
8162
|
+
/**
|
|
8163
|
+
* Defines the props of the component.
|
|
8164
|
+
*/
|
|
8165
|
+
|
|
8166
|
+
// Re-export types for backward compatibility
|
|
8167
|
+
|
|
8168
|
+
/**
|
|
8169
|
+
* Component default props.
|
|
8170
|
+
*/
|
|
8171
|
+
const DEFAULT_PROPS$M = {};
|
|
8172
|
+
|
|
8173
|
+
/**
|
|
8174
|
+
* The GridColumn is a layout component that can display children in a grid
|
|
8175
|
+
* with custom display properties. It also comes with a responsive design,
|
|
8176
|
+
* with a number of column that reduce when there is not enough space for each item.
|
|
8177
|
+
*
|
|
8178
|
+
* @param props Component props.
|
|
8179
|
+
* @param ref Component ref.
|
|
8180
|
+
* @return React element.
|
|
8181
|
+
*/
|
|
8182
|
+
const GridColumn = forwardRef((props, ref) => {
|
|
8183
|
+
return GridColumn$1({
|
|
8184
|
+
ref,
|
|
8185
|
+
...props
|
|
8186
|
+
});
|
|
7517
8187
|
});
|
|
7518
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
8188
|
+
GridColumn.displayName = COMPONENT_NAME$O;
|
|
7519
8189
|
GridColumn.className = CLASSNAME$P;
|
|
7520
8190
|
GridColumn.defaultProps = DEFAULT_PROPS$M;
|
|
7521
8191
|
|
|
@@ -7621,7 +8291,7 @@ const ImageBlockCaptionPosition = {
|
|
|
7621
8291
|
/**
|
|
7622
8292
|
* Component display name.
|
|
7623
8293
|
*/
|
|
7624
|
-
const COMPONENT_NAME$
|
|
8294
|
+
const COMPONENT_NAME$N = 'ImageBlock';
|
|
7625
8295
|
|
|
7626
8296
|
/**
|
|
7627
8297
|
* Component default class name and class prefix.
|
|
@@ -7705,14 +8375,14 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7705
8375
|
})]
|
|
7706
8376
|
});
|
|
7707
8377
|
});
|
|
7708
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
8378
|
+
ImageBlock.displayName = COMPONENT_NAME$N;
|
|
7709
8379
|
ImageBlock.className = CLASSNAME$O;
|
|
7710
8380
|
ImageBlock.defaultProps = DEFAULT_PROPS$L;
|
|
7711
8381
|
|
|
7712
8382
|
/**
|
|
7713
8383
|
* Component display name.
|
|
7714
8384
|
*/
|
|
7715
|
-
const COMPONENT_NAME$
|
|
8385
|
+
const COMPONENT_NAME$M = 'ImageLightbox';
|
|
7716
8386
|
|
|
7717
8387
|
/**
|
|
7718
8388
|
* Component default class name and class prefix.
|
|
@@ -8436,7 +9106,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
8436
9106
|
})
|
|
8437
9107
|
});
|
|
8438
9108
|
});
|
|
8439
|
-
Inner.displayName = COMPONENT_NAME$
|
|
9109
|
+
Inner.displayName = COMPONENT_NAME$M;
|
|
8440
9110
|
Inner.className = CLASSNAME$N;
|
|
8441
9111
|
|
|
8442
9112
|
/**
|
|
@@ -8453,7 +9123,7 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
8453
9123
|
/**
|
|
8454
9124
|
* Component display name.
|
|
8455
9125
|
*/
|
|
8456
|
-
const COMPONENT_NAME$
|
|
9126
|
+
const COMPONENT_NAME$L = 'InlineList';
|
|
8457
9127
|
|
|
8458
9128
|
/**
|
|
8459
9129
|
* Component default class name and class prefix.
|
|
@@ -8518,7 +9188,7 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
8518
9188
|
})
|
|
8519
9189
|
);
|
|
8520
9190
|
});
|
|
8521
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
9191
|
+
InlineList.displayName = COMPONENT_NAME$L;
|
|
8522
9192
|
InlineList.className = CLASSNAME$M;
|
|
8523
9193
|
InlineList.defaultProps = DEFAULT_PROPS$K;
|
|
8524
9194
|
|
|
@@ -8563,7 +9233,7 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
|
|
|
8563
9233
|
/**
|
|
8564
9234
|
* Component display name.
|
|
8565
9235
|
*/
|
|
8566
|
-
const COMPONENT_NAME$
|
|
9236
|
+
const COMPONENT_NAME$K = 'Lightbox';
|
|
8567
9237
|
|
|
8568
9238
|
/**
|
|
8569
9239
|
* Component default class name and class prefix.
|
|
@@ -8695,13 +9365,13 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
8695
9365
|
})
|
|
8696
9366
|
});
|
|
8697
9367
|
});
|
|
8698
|
-
Lightbox.displayName = COMPONENT_NAME$
|
|
9368
|
+
Lightbox.displayName = COMPONENT_NAME$K;
|
|
8699
9369
|
Lightbox.className = CLASSNAME$L;
|
|
8700
9370
|
|
|
8701
9371
|
/**
|
|
8702
9372
|
* Component display name.
|
|
8703
9373
|
*/
|
|
8704
|
-
const COMPONENT_NAME$
|
|
9374
|
+
const COMPONENT_NAME$J = 'Link';
|
|
8705
9375
|
|
|
8706
9376
|
/**
|
|
8707
9377
|
* Component default class name and class prefix.
|
|
@@ -8848,14 +9518,14 @@ const Link = forwardRef((props, ref) => {
|
|
|
8848
9518
|
isDisabled: isAnyDisabled
|
|
8849
9519
|
});
|
|
8850
9520
|
});
|
|
8851
|
-
Link.displayName = COMPONENT_NAME$
|
|
9521
|
+
Link.displayName = COMPONENT_NAME$J;
|
|
8852
9522
|
Link.className = CLASSNAME$K;
|
|
8853
9523
|
Link.defaultProps = DEFAULT_PROPS$J;
|
|
8854
9524
|
|
|
8855
9525
|
/**
|
|
8856
9526
|
* Component display name.
|
|
8857
9527
|
*/
|
|
8858
|
-
const COMPONENT_NAME$
|
|
9528
|
+
const COMPONENT_NAME$I = 'LinkPreview';
|
|
8859
9529
|
|
|
8860
9530
|
/**
|
|
8861
9531
|
* Component default class name and class prefix.
|
|
@@ -8959,7 +9629,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8959
9629
|
})
|
|
8960
9630
|
});
|
|
8961
9631
|
});
|
|
8962
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
9632
|
+
LinkPreview.displayName = COMPONENT_NAME$I;
|
|
8963
9633
|
LinkPreview.className = CLASSNAME$J;
|
|
8964
9634
|
LinkPreview.defaultProps = DEFAULT_PROPS$I;
|
|
8965
9635
|
|
|
@@ -8980,7 +9650,7 @@ const renderLink = ({
|
|
|
8980
9650
|
/**
|
|
8981
9651
|
* Component display name.
|
|
8982
9652
|
*/
|
|
8983
|
-
const COMPONENT_NAME$
|
|
9653
|
+
const COMPONENT_NAME$H = 'ListItem';
|
|
8984
9654
|
|
|
8985
9655
|
/**
|
|
8986
9656
|
* Component default class name and class prefix.
|
|
@@ -9088,14 +9758,14 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
9088
9758
|
})
|
|
9089
9759
|
});
|
|
9090
9760
|
});
|
|
9091
|
-
ListItem.displayName = COMPONENT_NAME$
|
|
9761
|
+
ListItem.displayName = COMPONENT_NAME$H;
|
|
9092
9762
|
ListItem.className = CLASSNAME$I;
|
|
9093
9763
|
ListItem.defaultProps = DEFAULT_PROPS$H;
|
|
9094
9764
|
|
|
9095
9765
|
/**
|
|
9096
9766
|
* Component display name.
|
|
9097
9767
|
*/
|
|
9098
|
-
const COMPONENT_NAME$
|
|
9768
|
+
const COMPONENT_NAME$G = 'ListDivider';
|
|
9099
9769
|
|
|
9100
9770
|
/**
|
|
9101
9771
|
* Component default class name and class prefix.
|
|
@@ -9120,13 +9790,13 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
9120
9790
|
className: classNames.join(className, CLASSNAME$H)
|
|
9121
9791
|
});
|
|
9122
9792
|
});
|
|
9123
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
9793
|
+
ListDivider.displayName = COMPONENT_NAME$G;
|
|
9124
9794
|
ListDivider.className = CLASSNAME$H;
|
|
9125
9795
|
|
|
9126
9796
|
/**
|
|
9127
9797
|
* Component display name.
|
|
9128
9798
|
*/
|
|
9129
|
-
const COMPONENT_NAME$
|
|
9799
|
+
const COMPONENT_NAME$F = 'ListSubheader';
|
|
9130
9800
|
|
|
9131
9801
|
/**
|
|
9132
9802
|
* Component default class name and class prefix.
|
|
@@ -9153,13 +9823,13 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
9153
9823
|
children: children
|
|
9154
9824
|
});
|
|
9155
9825
|
});
|
|
9156
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
9826
|
+
ListSubheader.displayName = COMPONENT_NAME$F;
|
|
9157
9827
|
ListSubheader.className = CLASSNAME$G;
|
|
9158
9828
|
|
|
9159
9829
|
/**
|
|
9160
9830
|
* Component display name.
|
|
9161
9831
|
*/
|
|
9162
|
-
const COMPONENT_NAME$
|
|
9832
|
+
const COMPONENT_NAME$E = 'Message';
|
|
9163
9833
|
|
|
9164
9834
|
/**
|
|
9165
9835
|
* Component default class name and class prefix.
|
|
@@ -9242,7 +9912,7 @@ const Message$1 = props => {
|
|
|
9242
9912
|
})]
|
|
9243
9913
|
});
|
|
9244
9914
|
};
|
|
9245
|
-
Message$1.displayName = COMPONENT_NAME$
|
|
9915
|
+
Message$1.displayName = COMPONENT_NAME$E;
|
|
9246
9916
|
Message$1.className = CLASSNAME$F;
|
|
9247
9917
|
|
|
9248
9918
|
/**
|
|
@@ -9258,13 +9928,13 @@ const Message = forwardRef((props, ref) => {
|
|
|
9258
9928
|
ref
|
|
9259
9929
|
});
|
|
9260
9930
|
});
|
|
9261
|
-
Message.displayName = COMPONENT_NAME$
|
|
9931
|
+
Message.displayName = COMPONENT_NAME$E;
|
|
9262
9932
|
Message.className = CLASSNAME$F;
|
|
9263
9933
|
|
|
9264
9934
|
/**
|
|
9265
9935
|
* Component display name.
|
|
9266
9936
|
*/
|
|
9267
|
-
const COMPONENT_NAME$
|
|
9937
|
+
const COMPONENT_NAME$D = 'Mosaic';
|
|
9268
9938
|
|
|
9269
9939
|
/**
|
|
9270
9940
|
* Component default class name and class prefix.
|
|
@@ -9343,7 +10013,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
9343
10013
|
})
|
|
9344
10014
|
});
|
|
9345
10015
|
});
|
|
9346
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
10016
|
+
Mosaic.displayName = COMPONENT_NAME$D;
|
|
9347
10017
|
Mosaic.className = CLASSNAME$E;
|
|
9348
10018
|
Mosaic.defaultProps = DEFAULT_PROPS$G;
|
|
9349
10019
|
|
|
@@ -9378,7 +10048,7 @@ const ITEM_CLASSNAME = 'lumx-navigation-item';
|
|
|
9378
10048
|
/**
|
|
9379
10049
|
* Component display name.
|
|
9380
10050
|
*/
|
|
9381
|
-
const COMPONENT_NAME$
|
|
10051
|
+
const COMPONENT_NAME$C = 'NavigationSection';
|
|
9382
10052
|
|
|
9383
10053
|
/**
|
|
9384
10054
|
* Component default class name and class prefix.
|
|
@@ -9470,7 +10140,7 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9470
10140
|
}))]
|
|
9471
10141
|
});
|
|
9472
10142
|
});
|
|
9473
|
-
NavigationSection.displayName = COMPONENT_NAME$
|
|
10143
|
+
NavigationSection.displayName = COMPONENT_NAME$C;
|
|
9474
10144
|
NavigationSection.className = CLASSNAME$D;
|
|
9475
10145
|
|
|
9476
10146
|
const {
|
|
@@ -9534,7 +10204,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9534
10204
|
/**
|
|
9535
10205
|
* Component display name.
|
|
9536
10206
|
*/
|
|
9537
|
-
const COMPONENT_NAME$
|
|
10207
|
+
const COMPONENT_NAME$B = 'Navigation';
|
|
9538
10208
|
|
|
9539
10209
|
/**
|
|
9540
10210
|
* Component default class name and class prefix.
|
|
@@ -9581,7 +10251,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
9581
10251
|
})
|
|
9582
10252
|
});
|
|
9583
10253
|
});
|
|
9584
|
-
Navigation.displayName = COMPONENT_NAME$
|
|
10254
|
+
Navigation.displayName = COMPONENT_NAME$B;
|
|
9585
10255
|
Navigation.className = CLASSNAME$C;
|
|
9586
10256
|
Navigation.defaultProps = DEFAULT_PROPS$F;
|
|
9587
10257
|
|
|
@@ -9614,7 +10284,7 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
9614
10284
|
/**
|
|
9615
10285
|
* Component display name.
|
|
9616
10286
|
*/
|
|
9617
|
-
const COMPONENT_NAME$
|
|
10287
|
+
const COMPONENT_NAME$A = 'Notification';
|
|
9618
10288
|
|
|
9619
10289
|
/**
|
|
9620
10290
|
* Component default class name and class prefix.
|
|
@@ -9716,14 +10386,14 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9716
10386
|
})
|
|
9717
10387
|
});
|
|
9718
10388
|
});
|
|
9719
|
-
Notification.displayName = COMPONENT_NAME$
|
|
10389
|
+
Notification.displayName = COMPONENT_NAME$A;
|
|
9720
10390
|
Notification.className = CLASSNAME$B;
|
|
9721
10391
|
Notification.defaultProps = DEFAULT_PROPS$E;
|
|
9722
10392
|
|
|
9723
10393
|
/**
|
|
9724
10394
|
* Component display name.
|
|
9725
10395
|
*/
|
|
9726
|
-
const COMPONENT_NAME$
|
|
10396
|
+
const COMPONENT_NAME$z = 'PopoverDialog';
|
|
9727
10397
|
|
|
9728
10398
|
/**
|
|
9729
10399
|
* Component default class name and class prefix.
|
|
@@ -9774,14 +10444,14 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
9774
10444
|
})
|
|
9775
10445
|
});
|
|
9776
10446
|
});
|
|
9777
|
-
PopoverDialog.displayName = COMPONENT_NAME$
|
|
10447
|
+
PopoverDialog.displayName = COMPONENT_NAME$z;
|
|
9778
10448
|
PopoverDialog.className = CLASSNAME$A;
|
|
9779
10449
|
PopoverDialog.defaultProps = DEFAULT_PROPS$D;
|
|
9780
10450
|
|
|
9781
10451
|
/**
|
|
9782
10452
|
* Component display name.
|
|
9783
10453
|
*/
|
|
9784
|
-
const COMPONENT_NAME$
|
|
10454
|
+
const COMPONENT_NAME$y = 'PostBlock';
|
|
9785
10455
|
|
|
9786
10456
|
/**
|
|
9787
10457
|
* Component default class name and class prefix.
|
|
@@ -9875,14 +10545,14 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
9875
10545
|
})]
|
|
9876
10546
|
});
|
|
9877
10547
|
});
|
|
9878
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
10548
|
+
PostBlock.displayName = COMPONENT_NAME$y;
|
|
9879
10549
|
PostBlock.className = CLASSNAME$z;
|
|
9880
10550
|
PostBlock.defaultProps = DEFAULT_PROPS$C;
|
|
9881
10551
|
|
|
9882
10552
|
/**
|
|
9883
10553
|
* Component display name.
|
|
9884
10554
|
*/
|
|
9885
|
-
const COMPONENT_NAME$
|
|
10555
|
+
const COMPONENT_NAME$x = 'ProgressLinear';
|
|
9886
10556
|
|
|
9887
10557
|
/**
|
|
9888
10558
|
* Component default class name and class prefix.
|
|
@@ -9925,14 +10595,14 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9925
10595
|
})]
|
|
9926
10596
|
});
|
|
9927
10597
|
});
|
|
9928
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
10598
|
+
ProgressLinear.displayName = COMPONENT_NAME$x;
|
|
9929
10599
|
ProgressLinear.className = CLASSNAME$y;
|
|
9930
10600
|
ProgressLinear.defaultProps = DEFAULT_PROPS$B;
|
|
9931
10601
|
|
|
9932
10602
|
/**
|
|
9933
10603
|
* Component display name.
|
|
9934
10604
|
*/
|
|
9935
|
-
const COMPONENT_NAME$
|
|
10605
|
+
const COMPONENT_NAME$w = 'ProgressCircular';
|
|
9936
10606
|
|
|
9937
10607
|
/**
|
|
9938
10608
|
* Component default class name and class prefix.
|
|
@@ -9994,7 +10664,7 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9994
10664
|
})]
|
|
9995
10665
|
});
|
|
9996
10666
|
});
|
|
9997
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
10667
|
+
ProgressCircular.displayName = COMPONENT_NAME$w;
|
|
9998
10668
|
ProgressCircular.className = CLASSNAME$x;
|
|
9999
10669
|
ProgressCircular.defaultProps = DEFAULT_PROPS$A;
|
|
10000
10670
|
|
|
@@ -10010,7 +10680,7 @@ const ProgressVariant = {
|
|
|
10010
10680
|
/**
|
|
10011
10681
|
* Component display name.
|
|
10012
10682
|
*/
|
|
10013
|
-
const COMPONENT_NAME$
|
|
10683
|
+
const COMPONENT_NAME$v = 'Progress';
|
|
10014
10684
|
|
|
10015
10685
|
/**
|
|
10016
10686
|
* Component default class name and class prefix.
|
|
@@ -10057,7 +10727,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
10057
10727
|
})]
|
|
10058
10728
|
});
|
|
10059
10729
|
});
|
|
10060
|
-
Progress.displayName = COMPONENT_NAME$
|
|
10730
|
+
Progress.displayName = COMPONENT_NAME$v;
|
|
10061
10731
|
Progress.className = CLASSNAME$w;
|
|
10062
10732
|
Progress.defaultProps = DEFAULT_PROPS$z;
|
|
10063
10733
|
|
|
@@ -10316,7 +10986,7 @@ const useRovingTabIndex = ({
|
|
|
10316
10986
|
/**
|
|
10317
10987
|
* Component display name.
|
|
10318
10988
|
*/
|
|
10319
|
-
const COMPONENT_NAME$
|
|
10989
|
+
const COMPONENT_NAME$u = 'ProgressTracker';
|
|
10320
10990
|
|
|
10321
10991
|
/**
|
|
10322
10992
|
* Component default class name and class prefix.
|
|
@@ -10384,14 +11054,14 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
10384
11054
|
})]
|
|
10385
11055
|
});
|
|
10386
11056
|
});
|
|
10387
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
11057
|
+
ProgressTracker.displayName = COMPONENT_NAME$u;
|
|
10388
11058
|
ProgressTracker.className = CLASSNAME$v;
|
|
10389
11059
|
ProgressTracker.defaultProps = DEFAULT_PROPS$x;
|
|
10390
11060
|
|
|
10391
11061
|
/**
|
|
10392
11062
|
* Component display name.
|
|
10393
11063
|
*/
|
|
10394
|
-
const COMPONENT_NAME$
|
|
11064
|
+
const COMPONENT_NAME$t = 'ProgressTrackerStep';
|
|
10395
11065
|
|
|
10396
11066
|
/**
|
|
10397
11067
|
* Component default class name and class prefix.
|
|
@@ -10498,14 +11168,14 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
10498
11168
|
})]
|
|
10499
11169
|
});
|
|
10500
11170
|
});
|
|
10501
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
11171
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$t;
|
|
10502
11172
|
ProgressTrackerStep.className = CLASSNAME$u;
|
|
10503
11173
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$w;
|
|
10504
11174
|
|
|
10505
11175
|
/**
|
|
10506
11176
|
* Component display name.
|
|
10507
11177
|
*/
|
|
10508
|
-
const COMPONENT_NAME$
|
|
11178
|
+
const COMPONENT_NAME$s = 'ProgressTrackerStepPanel';
|
|
10509
11179
|
|
|
10510
11180
|
/**
|
|
10511
11181
|
* Component default class name and class prefix.
|
|
@@ -10552,14 +11222,14 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
10552
11222
|
children: (!state?.isLazy || isActive) && children
|
|
10553
11223
|
});
|
|
10554
11224
|
});
|
|
10555
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
11225
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$s;
|
|
10556
11226
|
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
10557
11227
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$v;
|
|
10558
11228
|
|
|
10559
11229
|
/**
|
|
10560
11230
|
* Component display name.
|
|
10561
11231
|
*/
|
|
10562
|
-
const COMPONENT_NAME$
|
|
11232
|
+
const COMPONENT_NAME$r = 'RadioButton';
|
|
10563
11233
|
|
|
10564
11234
|
/**
|
|
10565
11235
|
* Component default class name and class prefix.
|
|
@@ -10711,14 +11381,14 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10711
11381
|
inputId
|
|
10712
11382
|
});
|
|
10713
11383
|
});
|
|
10714
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
11384
|
+
RadioButton.displayName = COMPONENT_NAME$r;
|
|
10715
11385
|
RadioButton.className = CLASSNAME$s;
|
|
10716
11386
|
RadioButton.defaultProps = DEFAULT_PROPS$u;
|
|
10717
11387
|
|
|
10718
11388
|
/**
|
|
10719
11389
|
* Component display name.
|
|
10720
11390
|
*/
|
|
10721
|
-
const COMPONENT_NAME$
|
|
11391
|
+
const COMPONENT_NAME$q = 'RadioGroup';
|
|
10722
11392
|
|
|
10723
11393
|
/**
|
|
10724
11394
|
* Component default class name and class prefix.
|
|
@@ -10750,7 +11420,7 @@ const RadioGroup$1 = props => {
|
|
|
10750
11420
|
children: children
|
|
10751
11421
|
});
|
|
10752
11422
|
};
|
|
10753
|
-
RadioGroup$1.displayName = COMPONENT_NAME$
|
|
11423
|
+
RadioGroup$1.displayName = COMPONENT_NAME$q;
|
|
10754
11424
|
RadioGroup$1.className = CLASSNAME$r;
|
|
10755
11425
|
RadioGroup$1.defaultProps = DEFAULT_PROPS$t;
|
|
10756
11426
|
|
|
@@ -10778,7 +11448,7 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
10778
11448
|
...forwardedProps
|
|
10779
11449
|
});
|
|
10780
11450
|
});
|
|
10781
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
11451
|
+
RadioGroup.displayName = COMPONENT_NAME$q;
|
|
10782
11452
|
RadioGroup.className = CLASSNAME$r;
|
|
10783
11453
|
|
|
10784
11454
|
/**
|
|
@@ -10926,7 +11596,7 @@ const SelectVariant = {
|
|
|
10926
11596
|
};
|
|
10927
11597
|
|
|
10928
11598
|
/** The display name of the component. */
|
|
10929
|
-
const COMPONENT_NAME$
|
|
11599
|
+
const COMPONENT_NAME$p = 'Select';
|
|
10930
11600
|
|
|
10931
11601
|
/** The default class name and classes prefix for this component. */
|
|
10932
11602
|
const CLASSNAME$p = 'lumx-select';
|
|
@@ -11069,13 +11739,13 @@ const Select = forwardRef((props, ref) => {
|
|
|
11069
11739
|
isEmpty: isEmpty$1
|
|
11070
11740
|
}, ref);
|
|
11071
11741
|
});
|
|
11072
|
-
Select.displayName = COMPONENT_NAME$
|
|
11742
|
+
Select.displayName = COMPONENT_NAME$p;
|
|
11073
11743
|
Select.className = CLASSNAME$p;
|
|
11074
11744
|
Select.defaultProps = DEFAULT_PROPS$s;
|
|
11075
11745
|
Select.className = CLASSNAME$p;
|
|
11076
11746
|
|
|
11077
11747
|
/** The display name of the component. */
|
|
11078
|
-
const COMPONENT_NAME$
|
|
11748
|
+
const COMPONENT_NAME$o = 'Select';
|
|
11079
11749
|
|
|
11080
11750
|
/** The default class name and classes prefix for this component. */
|
|
11081
11751
|
const CLASSNAME$o = 'lumx-select';
|
|
@@ -11222,14 +11892,14 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
11222
11892
|
isMultiple: true
|
|
11223
11893
|
}, ref);
|
|
11224
11894
|
});
|
|
11225
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
11895
|
+
SelectMultiple.displayName = COMPONENT_NAME$o;
|
|
11226
11896
|
SelectMultiple.className = CLASSNAME$o;
|
|
11227
11897
|
SelectMultiple.defaultProps = DEFAULT_PROPS$r;
|
|
11228
11898
|
|
|
11229
11899
|
/**
|
|
11230
11900
|
* Component display name.
|
|
11231
11901
|
*/
|
|
11232
|
-
const COMPONENT_NAME$
|
|
11902
|
+
const COMPONENT_NAME$n = 'SideNavigation';
|
|
11233
11903
|
|
|
11234
11904
|
/**
|
|
11235
11905
|
* Component default class name and class prefix.
|
|
@@ -11259,13 +11929,13 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
11259
11929
|
children: content
|
|
11260
11930
|
});
|
|
11261
11931
|
});
|
|
11262
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
11932
|
+
SideNavigation.displayName = COMPONENT_NAME$n;
|
|
11263
11933
|
SideNavigation.className = CLASSNAME$n;
|
|
11264
11934
|
|
|
11265
11935
|
/**
|
|
11266
11936
|
* Component display name.
|
|
11267
11937
|
*/
|
|
11268
|
-
const COMPONENT_NAME$
|
|
11938
|
+
const COMPONENT_NAME$m = 'SideNavigationItem';
|
|
11269
11939
|
|
|
11270
11940
|
/**
|
|
11271
11941
|
* Component default class name and class prefix.
|
|
@@ -11374,14 +12044,14 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11374
12044
|
})]
|
|
11375
12045
|
});
|
|
11376
12046
|
});
|
|
11377
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
12047
|
+
SideNavigationItem.displayName = COMPONENT_NAME$m;
|
|
11378
12048
|
SideNavigationItem.className = CLASSNAME$m;
|
|
11379
12049
|
SideNavigationItem.defaultProps = DEFAULT_PROPS$q;
|
|
11380
12050
|
|
|
11381
12051
|
/**
|
|
11382
12052
|
* Component display name.
|
|
11383
12053
|
*/
|
|
11384
|
-
const COMPONENT_NAME$
|
|
12054
|
+
const COMPONENT_NAME$l = 'SkeletonCircle';
|
|
11385
12055
|
|
|
11386
12056
|
/**
|
|
11387
12057
|
* Component default class name and class prefix.
|
|
@@ -11433,7 +12103,7 @@ const SkeletonRectangleVariant = {
|
|
|
11433
12103
|
/**
|
|
11434
12104
|
* Component display name.
|
|
11435
12105
|
*/
|
|
11436
|
-
const COMPONENT_NAME$
|
|
12106
|
+
const COMPONENT_NAME$k = 'SkeletonRectangle';
|
|
11437
12107
|
|
|
11438
12108
|
/**
|
|
11439
12109
|
* Component default class name and class prefix.
|
|
@@ -11489,7 +12159,7 @@ const SkeletonRectangle$1 = props => {
|
|
|
11489
12159
|
/**
|
|
11490
12160
|
* Component display name.
|
|
11491
12161
|
*/
|
|
11492
|
-
const COMPONENT_NAME$
|
|
12162
|
+
const COMPONENT_NAME$j = 'SkeletonTypography';
|
|
11493
12163
|
|
|
11494
12164
|
/**
|
|
11495
12165
|
* Component default class name and class prefix.
|
|
@@ -11565,7 +12235,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
11565
12235
|
...forwardedProps
|
|
11566
12236
|
});
|
|
11567
12237
|
});
|
|
11568
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
12238
|
+
SkeletonCircle.displayName = COMPONENT_NAME$l;
|
|
11569
12239
|
SkeletonCircle.defaultProps = DEFAULT_PROPS$o;
|
|
11570
12240
|
SkeletonCircle.className = CLASSNAME$l;
|
|
11571
12241
|
|
|
@@ -11606,7 +12276,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
11606
12276
|
...forwardedProps
|
|
11607
12277
|
});
|
|
11608
12278
|
});
|
|
11609
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
12279
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$k;
|
|
11610
12280
|
SkeletonRectangle.className = CLASSNAME$k;
|
|
11611
12281
|
SkeletonRectangle.defaultProps = DEFAULT_PROPS$n;
|
|
11612
12282
|
|
|
@@ -11643,7 +12313,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
11643
12313
|
...forwardedProps
|
|
11644
12314
|
});
|
|
11645
12315
|
});
|
|
11646
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
12316
|
+
SkeletonTypography.displayName = COMPONENT_NAME$j;
|
|
11647
12317
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$m;
|
|
11648
12318
|
SkeletonTypography.className = CLASSNAME$j;
|
|
11649
12319
|
|
|
@@ -11685,7 +12355,7 @@ const clamp = (value, min, max) => {
|
|
|
11685
12355
|
/**
|
|
11686
12356
|
* Component display name.
|
|
11687
12357
|
*/
|
|
11688
|
-
const COMPONENT_NAME$
|
|
12358
|
+
const COMPONENT_NAME$i = 'Slider';
|
|
11689
12359
|
|
|
11690
12360
|
/**
|
|
11691
12361
|
* Component default class name and class prefix.
|
|
@@ -11952,7 +12622,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
11952
12622
|
})]
|
|
11953
12623
|
});
|
|
11954
12624
|
});
|
|
11955
|
-
Slider.displayName = COMPONENT_NAME$
|
|
12625
|
+
Slider.displayName = COMPONENT_NAME$i;
|
|
11956
12626
|
Slider.className = CLASSNAME$i;
|
|
11957
12627
|
Slider.defaultProps = DEFAULT_PROPS$l;
|
|
11958
12628
|
|
|
@@ -12287,7 +12957,7 @@ const useSlideFocusManagement = ({
|
|
|
12287
12957
|
/**
|
|
12288
12958
|
* Component display name.
|
|
12289
12959
|
*/
|
|
12290
|
-
const COMPONENT_NAME$
|
|
12960
|
+
const COMPONENT_NAME$h = 'SlideshowItemGroup';
|
|
12291
12961
|
|
|
12292
12962
|
/**
|
|
12293
12963
|
* Component default class name and class prefix.
|
|
@@ -12326,7 +12996,7 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
12326
12996
|
children: children
|
|
12327
12997
|
});
|
|
12328
12998
|
});
|
|
12329
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
12999
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$h;
|
|
12330
13000
|
SlideshowItemGroup.className = CLASSNAME$h;
|
|
12331
13001
|
|
|
12332
13002
|
/**
|
|
@@ -12457,7 +13127,7 @@ Slideshow.defaultProps = DEFAULT_PROPS$k;
|
|
|
12457
13127
|
/**
|
|
12458
13128
|
* Component display name.
|
|
12459
13129
|
*/
|
|
12460
|
-
const COMPONENT_NAME$
|
|
13130
|
+
const COMPONENT_NAME$g = 'SlideshowItem';
|
|
12461
13131
|
|
|
12462
13132
|
/**
|
|
12463
13133
|
* Component default class name and class prefix.
|
|
@@ -12484,7 +13154,7 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
12484
13154
|
children: children
|
|
12485
13155
|
});
|
|
12486
13156
|
});
|
|
12487
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
13157
|
+
SlideshowItem.displayName = COMPONENT_NAME$g;
|
|
12488
13158
|
SlideshowItem.className = CLASSNAME$g;
|
|
12489
13159
|
|
|
12490
13160
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
@@ -12547,7 +13217,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
12547
13217
|
/**
|
|
12548
13218
|
* Component display name.
|
|
12549
13219
|
*/
|
|
12550
|
-
const COMPONENT_NAME$
|
|
13220
|
+
const COMPONENT_NAME$f = 'SlideshowControls';
|
|
12551
13221
|
|
|
12552
13222
|
/**
|
|
12553
13223
|
* Component default class name and class prefix.
|
|
@@ -12688,7 +13358,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
12688
13358
|
})]
|
|
12689
13359
|
});
|
|
12690
13360
|
});
|
|
12691
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
13361
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$f;
|
|
12692
13362
|
InternalSlideshowControls.className = CLASSNAME$f;
|
|
12693
13363
|
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$j;
|
|
12694
13364
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
@@ -12808,7 +13478,7 @@ const useSlideScroll = ({
|
|
|
12808
13478
|
/**
|
|
12809
13479
|
* Component display name.
|
|
12810
13480
|
*/
|
|
12811
|
-
const COMPONENT_NAME$
|
|
13481
|
+
const COMPONENT_NAME$e = 'Slideshow';
|
|
12812
13482
|
|
|
12813
13483
|
/**
|
|
12814
13484
|
* Component default class name and class prefix.
|
|
@@ -12916,13 +13586,13 @@ const Slides = forwardRef((props, ref) => {
|
|
|
12916
13586
|
}), afterSlides]
|
|
12917
13587
|
});
|
|
12918
13588
|
});
|
|
12919
|
-
Slides.displayName = COMPONENT_NAME$
|
|
13589
|
+
Slides.displayName = COMPONENT_NAME$e;
|
|
12920
13590
|
Slides.className = CLASSNAME$e;
|
|
12921
13591
|
|
|
12922
13592
|
/**
|
|
12923
13593
|
* Component display name.
|
|
12924
13594
|
*/
|
|
12925
|
-
const COMPONENT_NAME$
|
|
13595
|
+
const COMPONENT_NAME$d = 'Switch';
|
|
12926
13596
|
|
|
12927
13597
|
/**
|
|
12928
13598
|
* Component default class name and class prefix.
|
|
@@ -13090,14 +13760,14 @@ const Switch = forwardRef((props, ref) => {
|
|
|
13090
13760
|
inputId
|
|
13091
13761
|
});
|
|
13092
13762
|
});
|
|
13093
|
-
Switch.displayName = COMPONENT_NAME$
|
|
13763
|
+
Switch.displayName = COMPONENT_NAME$d;
|
|
13094
13764
|
Switch.className = CLASSNAME$d;
|
|
13095
13765
|
Switch.defaultProps = DEFAULT_PROPS$g;
|
|
13096
13766
|
|
|
13097
13767
|
/**
|
|
13098
13768
|
* Component display name.
|
|
13099
13769
|
*/
|
|
13100
|
-
const COMPONENT_NAME$
|
|
13770
|
+
const COMPONENT_NAME$c = 'Table';
|
|
13101
13771
|
|
|
13102
13772
|
/**
|
|
13103
13773
|
* Component default class name and class prefix.
|
|
@@ -13170,14 +13840,14 @@ const Table = forwardRef((props, ref) => {
|
|
|
13170
13840
|
...otherProps
|
|
13171
13841
|
});
|
|
13172
13842
|
});
|
|
13173
|
-
Table.displayName = COMPONENT_NAME$
|
|
13843
|
+
Table.displayName = COMPONENT_NAME$c;
|
|
13174
13844
|
Table.className = CLASSNAME$c;
|
|
13175
13845
|
Table.defaultProps = DEFAULT_PROPS$f;
|
|
13176
13846
|
|
|
13177
13847
|
/**
|
|
13178
13848
|
* Component display name.
|
|
13179
13849
|
*/
|
|
13180
|
-
const COMPONENT_NAME$
|
|
13850
|
+
const COMPONENT_NAME$b = 'TableBody';
|
|
13181
13851
|
|
|
13182
13852
|
/**
|
|
13183
13853
|
* Component default class name and class prefix.
|
|
@@ -13227,7 +13897,7 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
13227
13897
|
...otherProps
|
|
13228
13898
|
});
|
|
13229
13899
|
});
|
|
13230
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
13900
|
+
TableBody.displayName = COMPONENT_NAME$b;
|
|
13231
13901
|
TableBody.className = CLASSNAME$b;
|
|
13232
13902
|
|
|
13233
13903
|
const ThOrder = {
|
|
@@ -13249,7 +13919,7 @@ const TableCellVariant = {
|
|
|
13249
13919
|
/**
|
|
13250
13920
|
* Component display name.
|
|
13251
13921
|
*/
|
|
13252
|
-
const COMPONENT_NAME$
|
|
13922
|
+
const COMPONENT_NAME$a = 'TableCell';
|
|
13253
13923
|
|
|
13254
13924
|
/**
|
|
13255
13925
|
* Component default class name and class prefix.
|
|
@@ -13365,14 +14035,14 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
13365
14035
|
...otherProps
|
|
13366
14036
|
});
|
|
13367
14037
|
});
|
|
13368
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
14038
|
+
TableCell.displayName = COMPONENT_NAME$a;
|
|
13369
14039
|
TableCell.className = CLASSNAME$a;
|
|
13370
14040
|
TableCell.defaultProps = DEFAULT_PROPS$e;
|
|
13371
14041
|
|
|
13372
14042
|
/**
|
|
13373
14043
|
* Component display name.
|
|
13374
14044
|
*/
|
|
13375
|
-
const COMPONENT_NAME$
|
|
14045
|
+
const COMPONENT_NAME$9 = 'TableHeader';
|
|
13376
14046
|
|
|
13377
14047
|
/**
|
|
13378
14048
|
* Component default class name and class prefix.
|
|
@@ -13427,14 +14097,14 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
13427
14097
|
...otherProps
|
|
13428
14098
|
});
|
|
13429
14099
|
});
|
|
13430
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
14100
|
+
TableHeader.displayName = COMPONENT_NAME$9;
|
|
13431
14101
|
TableHeader.className = CLASSNAME$9;
|
|
13432
14102
|
TableHeader.defaultProps = DEFAULT_PROPS$d;
|
|
13433
14103
|
|
|
13434
14104
|
/**
|
|
13435
14105
|
* Component display name.
|
|
13436
14106
|
*/
|
|
13437
|
-
const COMPONENT_NAME$
|
|
14107
|
+
const COMPONENT_NAME$8 = 'TableRow';
|
|
13438
14108
|
|
|
13439
14109
|
/**
|
|
13440
14110
|
* Component default class name and class prefix.
|
|
@@ -13517,7 +14187,7 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
13517
14187
|
...forwardedProps
|
|
13518
14188
|
});
|
|
13519
14189
|
});
|
|
13520
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
14190
|
+
TableRow.displayName = COMPONENT_NAME$8;
|
|
13521
14191
|
TableRow.className = CLASSNAME$8;
|
|
13522
14192
|
TableRow.defaultProps = DEFAULT_PROPS$c;
|
|
13523
14193
|
|
|
@@ -13601,7 +14271,7 @@ let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
|
13601
14271
|
/**
|
|
13602
14272
|
* Component display name.
|
|
13603
14273
|
*/
|
|
13604
|
-
const COMPONENT_NAME$
|
|
14274
|
+
const COMPONENT_NAME$7 = 'TabList';
|
|
13605
14275
|
|
|
13606
14276
|
/**
|
|
13607
14277
|
* Component default props.
|
|
@@ -13654,14 +14324,14 @@ const TabList = forwardRef((props, ref) => {
|
|
|
13654
14324
|
})
|
|
13655
14325
|
});
|
|
13656
14326
|
});
|
|
13657
|
-
TabList.displayName = COMPONENT_NAME$
|
|
14327
|
+
TabList.displayName = COMPONENT_NAME$7;
|
|
13658
14328
|
TabList.className = TABS_CLASSNAME;
|
|
13659
14329
|
TabList.defaultProps = DEFAULT_PROPS$a;
|
|
13660
14330
|
|
|
13661
14331
|
/**
|
|
13662
14332
|
* Component display name.
|
|
13663
14333
|
*/
|
|
13664
|
-
const COMPONENT_NAME$
|
|
14334
|
+
const COMPONENT_NAME$6 = 'Tab';
|
|
13665
14335
|
|
|
13666
14336
|
/**
|
|
13667
14337
|
* Component default class name and class prefix.
|
|
@@ -13751,14 +14421,14 @@ const Tab = forwardRef((props, ref) => {
|
|
|
13751
14421
|
})]
|
|
13752
14422
|
});
|
|
13753
14423
|
});
|
|
13754
|
-
Tab.displayName = COMPONENT_NAME$
|
|
14424
|
+
Tab.displayName = COMPONENT_NAME$6;
|
|
13755
14425
|
Tab.className = CLASSNAME$7;
|
|
13756
14426
|
Tab.defaultProps = DEFAULT_PROPS$9;
|
|
13757
14427
|
|
|
13758
14428
|
/**
|
|
13759
14429
|
* Component display name.
|
|
13760
14430
|
*/
|
|
13761
|
-
const COMPONENT_NAME$
|
|
14431
|
+
const COMPONENT_NAME$5 = 'TabPanel';
|
|
13762
14432
|
|
|
13763
14433
|
/**
|
|
13764
14434
|
* Component default class name and class prefix.
|
|
@@ -13805,14 +14475,14 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
13805
14475
|
children: (!state?.isLazy || isActive) && children
|
|
13806
14476
|
});
|
|
13807
14477
|
});
|
|
13808
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
14478
|
+
TabPanel.displayName = COMPONENT_NAME$5;
|
|
13809
14479
|
TabPanel.className = CLASSNAME$6;
|
|
13810
14480
|
TabPanel.defaultProps = DEFAULT_PROPS$8;
|
|
13811
14481
|
|
|
13812
14482
|
/**
|
|
13813
14483
|
* Component display name.
|
|
13814
14484
|
*/
|
|
13815
|
-
const COMPONENT_NAME$
|
|
14485
|
+
const COMPONENT_NAME$4 = 'TextField';
|
|
13816
14486
|
|
|
13817
14487
|
/**
|
|
13818
14488
|
* Component default class name and class prefix.
|
|
@@ -14176,7 +14846,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
14176
14846
|
})]
|
|
14177
14847
|
});
|
|
14178
14848
|
});
|
|
14179
|
-
TextField.displayName = COMPONENT_NAME$
|
|
14849
|
+
TextField.displayName = COMPONENT_NAME$4;
|
|
14180
14850
|
TextField.className = CLASSNAME$5;
|
|
14181
14851
|
TextField.defaultProps = DEFAULT_PROPS$5;
|
|
14182
14852
|
|
|
@@ -14327,7 +14997,7 @@ function calculateFocusPointStyle({
|
|
|
14327
14997
|
/**
|
|
14328
14998
|
* Component display name.
|
|
14329
14999
|
*/
|
|
14330
|
-
const COMPONENT_NAME$
|
|
15000
|
+
const COMPONENT_NAME$3 = 'Thumbnail';
|
|
14331
15001
|
|
|
14332
15002
|
/**
|
|
14333
15003
|
* Component default class name and class prefix.
|
|
@@ -14609,7 +15279,7 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
14609
15279
|
})
|
|
14610
15280
|
});
|
|
14611
15281
|
});
|
|
14612
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
15282
|
+
Thumbnail.displayName = COMPONENT_NAME$3;
|
|
14613
15283
|
Thumbnail.className = CLASSNAME$4;
|
|
14614
15284
|
Thumbnail.defaultProps = DEFAULT_PROPS$4;
|
|
14615
15285
|
|
|
@@ -14653,7 +15323,7 @@ const ThumbnailObjectFit = {
|
|
|
14653
15323
|
/**
|
|
14654
15324
|
* Component display name.
|
|
14655
15325
|
*/
|
|
14656
|
-
const
|
|
15326
|
+
const TOOLBAR_NAME = 'Toolbar';
|
|
14657
15327
|
|
|
14658
15328
|
/**
|
|
14659
15329
|
* Component default class name and class prefix.
|
|
@@ -14662,7 +15332,7 @@ const CLASSNAME$3 = 'lumx-toolbar';
|
|
|
14662
15332
|
const {
|
|
14663
15333
|
block: block$3,
|
|
14664
15334
|
element: element$3
|
|
14665
|
-
} =
|
|
15335
|
+
} = bem(CLASSNAME$3);
|
|
14666
15336
|
|
|
14667
15337
|
/**
|
|
14668
15338
|
* Component default props.
|
|
@@ -14673,21 +15343,21 @@ const DEFAULT_PROPS$3 = {};
|
|
|
14673
15343
|
* Toolbar component.
|
|
14674
15344
|
*
|
|
14675
15345
|
* @param props Component props.
|
|
14676
|
-
* @
|
|
14677
|
-
* @return React element.
|
|
15346
|
+
* @return JSX element.
|
|
14678
15347
|
*/
|
|
14679
|
-
const Toolbar =
|
|
15348
|
+
const Toolbar$1 = props => {
|
|
14680
15349
|
const {
|
|
14681
15350
|
after,
|
|
14682
15351
|
before,
|
|
14683
15352
|
className,
|
|
14684
15353
|
label,
|
|
15354
|
+
ref,
|
|
14685
15355
|
...forwardedProps
|
|
14686
15356
|
} = props;
|
|
14687
15357
|
return /*#__PURE__*/jsxs("div", {
|
|
14688
15358
|
ref: ref,
|
|
14689
15359
|
...forwardedProps,
|
|
14690
|
-
className:
|
|
15360
|
+
className: classnames(className, block$3({
|
|
14691
15361
|
'has-after': Boolean(after),
|
|
14692
15362
|
'has-before': Boolean(before),
|
|
14693
15363
|
'has-label': Boolean(label)
|
|
@@ -14703,8 +15373,26 @@ const Toolbar = forwardRef((props, ref) => {
|
|
|
14703
15373
|
children: after
|
|
14704
15374
|
})]
|
|
14705
15375
|
});
|
|
15376
|
+
};
|
|
15377
|
+
|
|
15378
|
+
/**
|
|
15379
|
+
* Defines the props of the component.
|
|
15380
|
+
*/
|
|
15381
|
+
|
|
15382
|
+
/**
|
|
15383
|
+
* Toolbar component.
|
|
15384
|
+
*
|
|
15385
|
+
* @param props Component props.
|
|
15386
|
+
* @param ref Component ref.
|
|
15387
|
+
* @return React element.
|
|
15388
|
+
*/
|
|
15389
|
+
const Toolbar = forwardRef((props, ref) => {
|
|
15390
|
+
return Toolbar$1({
|
|
15391
|
+
ref,
|
|
15392
|
+
...props
|
|
15393
|
+
});
|
|
14706
15394
|
});
|
|
14707
|
-
Toolbar.displayName =
|
|
15395
|
+
Toolbar.displayName = TOOLBAR_NAME;
|
|
14708
15396
|
Toolbar.className = CLASSNAME$3;
|
|
14709
15397
|
Toolbar.defaultProps = DEFAULT_PROPS$3;
|
|
14710
15398
|
|
|
@@ -15304,5 +15992,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
15304
15992
|
UserBlock.className = CLASSNAME;
|
|
15305
15993
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
15306
15994
|
|
|
15307
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$
|
|
15995
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1e as CLASSNAME, COMBOBOX_OPTION_CLASSNAME, COMPONENT_NAME$1d as COMPONENT_NAME, Checkbox, Chip, ChipGroup, ComboboxOption, ComboboxOptionAction, ComboboxOptionMoreInfo, ComboboxOptionSkeleton, 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, LUMX_CLASSNAME, 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
15996
|
//# sourceMappingURL=index.js.map
|