@lumx/react 3.20.1-alpha.44 → 3.20.1-alpha.45
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/useClassnames.js.map +1 -1
- package/index.d.ts +33 -12
- package/index.js +791 -777
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kind, Size, ColorPalette, Emphasis, Theme, AspectRatio,
|
|
1
|
+
import { Kind, Size, ColorPalette, Emphasis, Theme, AspectRatio, DIALOG_TRANSITION_DURATION, Orientation, Typography, Alignment, ColorVariant, 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';
|
|
@@ -127,17 +127,17 @@ const CONFIG$1 = {
|
|
|
127
127
|
/**
|
|
128
128
|
* Component display name.
|
|
129
129
|
*/
|
|
130
|
-
const COMPONENT_NAME$
|
|
130
|
+
const COMPONENT_NAME$1k = 'AlertDialog';
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Component default class name and class prefix.
|
|
134
134
|
*/
|
|
135
|
-
const CLASSNAME$
|
|
135
|
+
const CLASSNAME$1i = 'lumx-alert-dialog';
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* Component default props.
|
|
139
139
|
*/
|
|
140
|
-
const DEFAULT_PROPS$
|
|
140
|
+
const DEFAULT_PROPS$15 = {
|
|
141
141
|
size: Size.tiny,
|
|
142
142
|
kind: Kind.info
|
|
143
143
|
};
|
|
@@ -158,8 +158,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
158
158
|
className,
|
|
159
159
|
cancelProps,
|
|
160
160
|
confirmProps,
|
|
161
|
-
kind = DEFAULT_PROPS$
|
|
162
|
-
size = DEFAULT_PROPS$
|
|
161
|
+
kind = DEFAULT_PROPS$15.kind,
|
|
162
|
+
size = DEFAULT_PROPS$15.size,
|
|
163
163
|
dialogProps,
|
|
164
164
|
children,
|
|
165
165
|
...forwardedProps
|
|
@@ -172,7 +172,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
172
172
|
} = CONFIG$1[kind] || {};
|
|
173
173
|
const {
|
|
174
174
|
block
|
|
175
|
-
} = useClassnames(CLASSNAME$
|
|
175
|
+
} = useClassnames(CLASSNAME$1i);
|
|
176
176
|
|
|
177
177
|
// Define a unique ID to target title and description for aria attributes.
|
|
178
178
|
const generatedId = useId();
|
|
@@ -248,9 +248,9 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
248
248
|
})]
|
|
249
249
|
});
|
|
250
250
|
});
|
|
251
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
252
|
-
AlertDialog.className = CLASSNAME$
|
|
253
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
251
|
+
AlertDialog.displayName = COMPONENT_NAME$1k;
|
|
252
|
+
AlertDialog.className = CLASSNAME$1i;
|
|
253
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$15;
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
256
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -309,17 +309,17 @@ function useTheme() {
|
|
|
309
309
|
/**
|
|
310
310
|
* Component display name.
|
|
311
311
|
*/
|
|
312
|
-
const COMPONENT_NAME$
|
|
312
|
+
const COMPONENT_NAME$1j = 'Autocomplete';
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
315
|
* Component default class name and class prefix.
|
|
316
316
|
*/
|
|
317
|
-
const CLASSNAME$
|
|
317
|
+
const CLASSNAME$1h = 'lumx-autocomplete';
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
320
|
* Component default props.
|
|
321
321
|
*/
|
|
322
|
-
const DEFAULT_PROPS$
|
|
322
|
+
const DEFAULT_PROPS$14 = {
|
|
323
323
|
anchorToInput: false,
|
|
324
324
|
closeOnClick: false,
|
|
325
325
|
closeOnClickAway: true,
|
|
@@ -341,13 +341,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
341
341
|
otherProps
|
|
342
342
|
} = useDisableStateProps(props);
|
|
343
343
|
const {
|
|
344
|
-
anchorToInput = DEFAULT_PROPS$
|
|
344
|
+
anchorToInput = DEFAULT_PROPS$14.anchorToInput,
|
|
345
345
|
children,
|
|
346
346
|
chips,
|
|
347
347
|
className,
|
|
348
|
-
closeOnClick = DEFAULT_PROPS$
|
|
349
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
350
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
348
|
+
closeOnClick = DEFAULT_PROPS$14.closeOnClick,
|
|
349
|
+
closeOnClickAway = DEFAULT_PROPS$14.closeOnClickAway,
|
|
350
|
+
closeOnEscape = DEFAULT_PROPS$14.closeOnEscape,
|
|
351
351
|
error,
|
|
352
352
|
fitToAnchorWidth,
|
|
353
353
|
hasError,
|
|
@@ -368,7 +368,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
368
368
|
onInfiniteScroll,
|
|
369
369
|
placeholder,
|
|
370
370
|
placement,
|
|
371
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
371
|
+
shouldFocusOnClose = DEFAULT_PROPS$14.shouldFocusOnClose,
|
|
372
372
|
theme = defaultTheme,
|
|
373
373
|
value,
|
|
374
374
|
textFieldProps = {},
|
|
@@ -377,7 +377,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
377
377
|
} = otherProps;
|
|
378
378
|
const {
|
|
379
379
|
block
|
|
380
|
-
} = useClassnames(CLASSNAME$
|
|
380
|
+
} = useClassnames(CLASSNAME$1h);
|
|
381
381
|
const inputAnchorRef = useRef(null);
|
|
382
382
|
const textFieldRef = useRef(null);
|
|
383
383
|
useFocus(inputAnchorRef.current, !isOpen && shouldFocusOnClose);
|
|
@@ -424,24 +424,24 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
424
424
|
})]
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
428
|
-
Autocomplete.className = CLASSNAME$
|
|
429
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
427
|
+
Autocomplete.displayName = COMPONENT_NAME$1j;
|
|
428
|
+
Autocomplete.className = CLASSNAME$1h;
|
|
429
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$14;
|
|
430
430
|
|
|
431
431
|
/**
|
|
432
432
|
* Component display name.
|
|
433
433
|
*/
|
|
434
|
-
const COMPONENT_NAME$
|
|
434
|
+
const COMPONENT_NAME$1i = 'AutocompleteMultiple';
|
|
435
435
|
|
|
436
436
|
/**
|
|
437
437
|
* Component default class name and class prefix.
|
|
438
438
|
*/
|
|
439
|
-
const CLASSNAME$
|
|
439
|
+
const CLASSNAME$1g = 'lumx-autocomplete-multiple';
|
|
440
440
|
|
|
441
441
|
/**
|
|
442
442
|
* Component default props.
|
|
443
443
|
*/
|
|
444
|
-
const DEFAULT_PROPS$
|
|
444
|
+
const DEFAULT_PROPS$13 = {
|
|
445
445
|
closeOnClickAway: true,
|
|
446
446
|
closeOnEscape: true,
|
|
447
447
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -481,8 +481,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
481
481
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
482
482
|
chipsAlignment,
|
|
483
483
|
className,
|
|
484
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
485
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
484
|
+
closeOnClickAway = DEFAULT_PROPS$13.closeOnClickAway,
|
|
485
|
+
closeOnEscape = DEFAULT_PROPS$13.closeOnEscape,
|
|
486
486
|
fitToAnchorWidth,
|
|
487
487
|
hasError,
|
|
488
488
|
helper,
|
|
@@ -504,17 +504,17 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
504
504
|
onKeyDown,
|
|
505
505
|
placeholder,
|
|
506
506
|
placement,
|
|
507
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
507
|
+
selectedChipRender = DEFAULT_PROPS$13.selectedChipRender,
|
|
508
508
|
shouldFocusOnClose,
|
|
509
509
|
theme = defaultTheme,
|
|
510
510
|
type,
|
|
511
511
|
value,
|
|
512
|
-
values = DEFAULT_PROPS$
|
|
512
|
+
values = DEFAULT_PROPS$13.values,
|
|
513
513
|
...forwardedProps
|
|
514
514
|
} = otherProps;
|
|
515
515
|
const {
|
|
516
516
|
block
|
|
517
|
-
} = useClassnames(CLASSNAME$
|
|
517
|
+
} = useClassnames(CLASSNAME$1g);
|
|
518
518
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
519
519
|
ref: ref,
|
|
520
520
|
...forwardedProps,
|
|
@@ -552,24 +552,24 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
552
552
|
children: children
|
|
553
553
|
});
|
|
554
554
|
});
|
|
555
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
556
|
-
AutocompleteMultiple.className = CLASSNAME$
|
|
557
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
555
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1i;
|
|
556
|
+
AutocompleteMultiple.className = CLASSNAME$1g;
|
|
557
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$13;
|
|
558
558
|
|
|
559
559
|
/**
|
|
560
560
|
* Component display name.
|
|
561
561
|
*/
|
|
562
|
-
const COMPONENT_NAME$
|
|
562
|
+
const COMPONENT_NAME$1h = 'Avatar';
|
|
563
563
|
|
|
564
564
|
/**
|
|
565
565
|
* Component default class name and class prefix.
|
|
566
566
|
*/
|
|
567
|
-
const CLASSNAME$
|
|
567
|
+
const CLASSNAME$1f = 'lumx-avatar';
|
|
568
568
|
|
|
569
569
|
/**
|
|
570
570
|
* Component default props.
|
|
571
571
|
*/
|
|
572
|
-
const DEFAULT_PROPS$
|
|
572
|
+
const DEFAULT_PROPS$12 = {
|
|
573
573
|
size: Size.m
|
|
574
574
|
};
|
|
575
575
|
|
|
@@ -592,7 +592,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
592
592
|
linkAs,
|
|
593
593
|
onClick,
|
|
594
594
|
onKeyPress,
|
|
595
|
-
size = DEFAULT_PROPS$
|
|
595
|
+
size = DEFAULT_PROPS$12.size,
|
|
596
596
|
theme = defaultTheme,
|
|
597
597
|
thumbnailProps,
|
|
598
598
|
...forwardedProps
|
|
@@ -600,7 +600,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
600
600
|
const {
|
|
601
601
|
block,
|
|
602
602
|
element
|
|
603
|
-
} = useClassnames(CLASSNAME$
|
|
603
|
+
} = useClassnames(CLASSNAME$1f);
|
|
604
604
|
return /*#__PURE__*/jsxs("div", {
|
|
605
605
|
ref: ref,
|
|
606
606
|
...forwardedProps,
|
|
@@ -629,24 +629,24 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
629
629
|
})]
|
|
630
630
|
});
|
|
631
631
|
});
|
|
632
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
633
|
-
Avatar.className = CLASSNAME$
|
|
634
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
632
|
+
Avatar.displayName = COMPONENT_NAME$1h;
|
|
633
|
+
Avatar.className = CLASSNAME$1f;
|
|
634
|
+
Avatar.defaultProps = DEFAULT_PROPS$12;
|
|
635
635
|
|
|
636
636
|
/**
|
|
637
637
|
* Component display name.
|
|
638
638
|
*/
|
|
639
|
-
const COMPONENT_NAME$
|
|
639
|
+
const COMPONENT_NAME$1g = 'Badge';
|
|
640
640
|
|
|
641
641
|
/**
|
|
642
642
|
* Component default class name and class prefix.
|
|
643
643
|
*/
|
|
644
|
-
const CLASSNAME$
|
|
644
|
+
const CLASSNAME$1e = 'lumx-badge';
|
|
645
645
|
|
|
646
646
|
/**
|
|
647
647
|
* Component default props.
|
|
648
648
|
*/
|
|
649
|
-
const DEFAULT_PROPS
|
|
649
|
+
const DEFAULT_PROPS$11 = {
|
|
650
650
|
color: ColorPalette.primary
|
|
651
651
|
};
|
|
652
652
|
|
|
@@ -661,12 +661,12 @@ const Badge = forwardRef((props, ref) => {
|
|
|
661
661
|
const {
|
|
662
662
|
children,
|
|
663
663
|
className,
|
|
664
|
-
color = DEFAULT_PROPS
|
|
664
|
+
color = DEFAULT_PROPS$11.color,
|
|
665
665
|
...forwardedProps
|
|
666
666
|
} = props;
|
|
667
667
|
const {
|
|
668
668
|
block
|
|
669
|
-
} = useClassnames(CLASSNAME$
|
|
669
|
+
} = useClassnames(CLASSNAME$1e);
|
|
670
670
|
return /*#__PURE__*/jsx("div", {
|
|
671
671
|
ref: ref,
|
|
672
672
|
...forwardedProps,
|
|
@@ -676,14 +676,14 @@ const Badge = forwardRef((props, ref) => {
|
|
|
676
676
|
children: children
|
|
677
677
|
});
|
|
678
678
|
});
|
|
679
|
-
Badge.displayName = COMPONENT_NAME$
|
|
680
|
-
Badge.className = CLASSNAME$
|
|
681
|
-
Badge.defaultProps = DEFAULT_PROPS
|
|
679
|
+
Badge.displayName = COMPONENT_NAME$1g;
|
|
680
|
+
Badge.className = CLASSNAME$1e;
|
|
681
|
+
Badge.defaultProps = DEFAULT_PROPS$11;
|
|
682
682
|
|
|
683
683
|
/**
|
|
684
684
|
* Component default class name and class prefix.
|
|
685
685
|
*/
|
|
686
|
-
const CLASSNAME$
|
|
686
|
+
const CLASSNAME$1d = 'lumx-badge-wrapper';
|
|
687
687
|
const BadgeWrapper = forwardRef((props, ref) => {
|
|
688
688
|
const {
|
|
689
689
|
badge,
|
|
@@ -694,7 +694,7 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
694
694
|
const {
|
|
695
695
|
block,
|
|
696
696
|
element
|
|
697
|
-
} = useClassnames(CLASSNAME$
|
|
697
|
+
} = useClassnames(CLASSNAME$1d);
|
|
698
698
|
return /*#__PURE__*/jsxs("div", {
|
|
699
699
|
ref: ref,
|
|
700
700
|
...forwardedProps,
|
|
@@ -706,7 +706,7 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
706
706
|
});
|
|
707
707
|
});
|
|
708
708
|
BadgeWrapper.displayName = 'BadgeWrapper';
|
|
709
|
-
BadgeWrapper.className = CLASSNAME$
|
|
709
|
+
BadgeWrapper.className = CLASSNAME$1d;
|
|
710
710
|
|
|
711
711
|
/**
|
|
712
712
|
* Properties of a component to use to determine it's name.
|
|
@@ -779,7 +779,7 @@ const RawClickable = forwardRefPolymorphic((props, ref) => {
|
|
|
779
779
|
/**
|
|
780
780
|
* Component display name.
|
|
781
781
|
*/
|
|
782
|
-
const COMPONENT_NAME$
|
|
782
|
+
const COMPONENT_NAME$1f = 'ButtonRoot';
|
|
783
783
|
const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
|
|
784
784
|
const BUTTON_CLASSNAME = `lumx-button`;
|
|
785
785
|
const wrapperBlock = cls.bem.block(BUTTON_WRAPPER_CLASSNAME);
|
|
@@ -882,7 +882,7 @@ const ButtonRoot = forwardRef((props, ref) => {
|
|
|
882
882
|
children: children
|
|
883
883
|
});
|
|
884
884
|
});
|
|
885
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
885
|
+
ButtonRoot.displayName = COMPONENT_NAME$1f;
|
|
886
886
|
ButtonRoot.defaultProps = {};
|
|
887
887
|
|
|
888
888
|
const ButtonEmphasis = Emphasis;
|
|
@@ -894,17 +894,17 @@ const ButtonEmphasis = Emphasis;
|
|
|
894
894
|
/**
|
|
895
895
|
* Component display name.
|
|
896
896
|
*/
|
|
897
|
-
const COMPONENT_NAME$
|
|
897
|
+
const COMPONENT_NAME$1e = 'Button';
|
|
898
898
|
|
|
899
899
|
/**
|
|
900
900
|
* Component default class name and class prefix.
|
|
901
901
|
*/
|
|
902
|
-
const CLASSNAME$
|
|
902
|
+
const CLASSNAME$1c = 'lumx-button';
|
|
903
903
|
|
|
904
904
|
/**
|
|
905
905
|
* Component default props.
|
|
906
906
|
*/
|
|
907
|
-
const DEFAULT_PROPS$
|
|
907
|
+
const DEFAULT_PROPS$10 = {
|
|
908
908
|
emphasis: Emphasis.high,
|
|
909
909
|
size: Size.m
|
|
910
910
|
};
|
|
@@ -921,16 +921,16 @@ const Button = forwardRef((props, ref) => {
|
|
|
921
921
|
const {
|
|
922
922
|
children,
|
|
923
923
|
className,
|
|
924
|
-
emphasis = DEFAULT_PROPS$
|
|
924
|
+
emphasis = DEFAULT_PROPS$10.emphasis,
|
|
925
925
|
leftIcon,
|
|
926
926
|
rightIcon,
|
|
927
|
-
size = DEFAULT_PROPS$
|
|
927
|
+
size = DEFAULT_PROPS$10.size,
|
|
928
928
|
theme = defaultTheme,
|
|
929
929
|
...forwardedProps
|
|
930
930
|
} = props;
|
|
931
931
|
const {
|
|
932
932
|
block
|
|
933
|
-
} = useClassnames(CLASSNAME$
|
|
933
|
+
} = useClassnames(CLASSNAME$1c);
|
|
934
934
|
const buttonClassName = block({
|
|
935
935
|
'has-left-icon': Boolean(leftIcon),
|
|
936
936
|
'has-right-icon': Boolean(rightIcon)
|
|
@@ -964,24 +964,24 @@ const Button = forwardRef((props, ref) => {
|
|
|
964
964
|
})]
|
|
965
965
|
});
|
|
966
966
|
});
|
|
967
|
-
Button.displayName = COMPONENT_NAME$
|
|
968
|
-
Button.className = CLASSNAME$
|
|
969
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
967
|
+
Button.displayName = COMPONENT_NAME$1e;
|
|
968
|
+
Button.className = CLASSNAME$1c;
|
|
969
|
+
Button.defaultProps = DEFAULT_PROPS$10;
|
|
970
970
|
|
|
971
971
|
/**
|
|
972
972
|
* Component display name.
|
|
973
973
|
*/
|
|
974
|
-
const COMPONENT_NAME$
|
|
974
|
+
const COMPONENT_NAME$1d = 'IconButton';
|
|
975
975
|
|
|
976
976
|
/**
|
|
977
977
|
* Component default class name and class prefix.
|
|
978
978
|
*/
|
|
979
|
-
const CLASSNAME$
|
|
979
|
+
const CLASSNAME$1b = 'lumx-icon-button';
|
|
980
980
|
|
|
981
981
|
/**
|
|
982
982
|
* Component default props.
|
|
983
983
|
*/
|
|
984
|
-
const DEFAULT_PROPS
|
|
984
|
+
const DEFAULT_PROPS$$ = {
|
|
985
985
|
emphasis: Emphasis.high,
|
|
986
986
|
size: Size.m
|
|
987
987
|
};
|
|
@@ -996,11 +996,11 @@ const DEFAULT_PROPS$Z = {
|
|
|
996
996
|
const IconButton = forwardRef((props, ref) => {
|
|
997
997
|
const defaultTheme = useTheme() || Theme.light;
|
|
998
998
|
const {
|
|
999
|
-
emphasis = DEFAULT_PROPS
|
|
999
|
+
emphasis = DEFAULT_PROPS$$.emphasis,
|
|
1000
1000
|
image,
|
|
1001
1001
|
icon,
|
|
1002
1002
|
label,
|
|
1003
|
-
size = DEFAULT_PROPS
|
|
1003
|
+
size = DEFAULT_PROPS$$.size,
|
|
1004
1004
|
theme = defaultTheme,
|
|
1005
1005
|
tooltipProps,
|
|
1006
1006
|
hideTooltip,
|
|
@@ -1030,24 +1030,24 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1030
1030
|
})
|
|
1031
1031
|
});
|
|
1032
1032
|
});
|
|
1033
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1034
|
-
IconButton.className = CLASSNAME$
|
|
1035
|
-
IconButton.defaultProps = DEFAULT_PROPS
|
|
1033
|
+
IconButton.displayName = COMPONENT_NAME$1d;
|
|
1034
|
+
IconButton.className = CLASSNAME$1b;
|
|
1035
|
+
IconButton.defaultProps = DEFAULT_PROPS$$;
|
|
1036
1036
|
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Component display name.
|
|
1039
1039
|
*/
|
|
1040
|
-
const COMPONENT_NAME$
|
|
1040
|
+
const COMPONENT_NAME$1c = 'ButtonGroup';
|
|
1041
1041
|
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Component default class name and class prefix.
|
|
1044
1044
|
*/
|
|
1045
|
-
const CLASSNAME$
|
|
1045
|
+
const CLASSNAME$1a = 'lumx-button-group';
|
|
1046
1046
|
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Component default props.
|
|
1049
1049
|
*/
|
|
1050
|
-
const DEFAULT_PROPS$
|
|
1050
|
+
const DEFAULT_PROPS$_ = {};
|
|
1051
1051
|
|
|
1052
1052
|
/**
|
|
1053
1053
|
* ButtonGroup component.
|
|
@@ -1064,7 +1064,7 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1064
1064
|
} = props;
|
|
1065
1065
|
const {
|
|
1066
1066
|
block
|
|
1067
|
-
} = useClassnames(CLASSNAME$
|
|
1067
|
+
} = useClassnames(CLASSNAME$1a);
|
|
1068
1068
|
return /*#__PURE__*/jsx("div", {
|
|
1069
1069
|
ref: ref,
|
|
1070
1070
|
...forwardedProps,
|
|
@@ -1072,9 +1072,9 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1072
1072
|
children: children
|
|
1073
1073
|
});
|
|
1074
1074
|
});
|
|
1075
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1076
|
-
ButtonGroup.className = CLASSNAME$
|
|
1077
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1075
|
+
ButtonGroup.displayName = COMPONENT_NAME$1c;
|
|
1076
|
+
ButtonGroup.className = CLASSNAME$1a;
|
|
1077
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$_;
|
|
1078
1078
|
|
|
1079
1079
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1080
1080
|
|
|
@@ -1085,17 +1085,17 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Component display name.
|
|
1087
1087
|
*/
|
|
1088
|
-
const COMPONENT_NAME$
|
|
1088
|
+
const COMPONENT_NAME$1b = 'Checkbox';
|
|
1089
1089
|
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Component default class name and class prefix.
|
|
1092
1092
|
*/
|
|
1093
|
-
const CLASSNAME$
|
|
1093
|
+
const CLASSNAME$19 = 'lumx-checkbox';
|
|
1094
1094
|
|
|
1095
1095
|
/**
|
|
1096
1096
|
* Component default props.
|
|
1097
1097
|
*/
|
|
1098
|
-
const DEFAULT_PROPS$
|
|
1098
|
+
const DEFAULT_PROPS$Z = {};
|
|
1099
1099
|
|
|
1100
1100
|
/**
|
|
1101
1101
|
* Checkbox component.
|
|
@@ -1129,7 +1129,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1129
1129
|
const {
|
|
1130
1130
|
block,
|
|
1131
1131
|
element
|
|
1132
|
-
} = useClassnames(CLASSNAME$
|
|
1132
|
+
} = useClassnames(CLASSNAME$19);
|
|
1133
1133
|
const localInputRef = React__default.useRef(null);
|
|
1134
1134
|
const generatedInputId = useId();
|
|
1135
1135
|
const inputId = id || generatedInputId;
|
|
@@ -1196,9 +1196,9 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1196
1196
|
})]
|
|
1197
1197
|
});
|
|
1198
1198
|
});
|
|
1199
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
1200
|
-
Checkbox.className = CLASSNAME$
|
|
1201
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
1199
|
+
Checkbox.displayName = COMPONENT_NAME$1b;
|
|
1200
|
+
Checkbox.className = CLASSNAME$19;
|
|
1201
|
+
Checkbox.defaultProps = DEFAULT_PROPS$Z;
|
|
1202
1202
|
|
|
1203
1203
|
/**
|
|
1204
1204
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -1219,17 +1219,17 @@ function useStopPropagation(handler) {
|
|
|
1219
1219
|
/**
|
|
1220
1220
|
* Component display name.
|
|
1221
1221
|
*/
|
|
1222
|
-
const COMPONENT_NAME$
|
|
1222
|
+
const COMPONENT_NAME$1a = 'Chip';
|
|
1223
1223
|
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Component default class name and class prefix.
|
|
1226
1226
|
*/
|
|
1227
|
-
const CLASSNAME$
|
|
1227
|
+
const CLASSNAME$18 = 'lumx-chip';
|
|
1228
1228
|
|
|
1229
1229
|
/**
|
|
1230
1230
|
* Component default props.
|
|
1231
1231
|
*/
|
|
1232
|
-
const DEFAULT_PROPS$
|
|
1232
|
+
const DEFAULT_PROPS$Y = {
|
|
1233
1233
|
size: Size.m
|
|
1234
1234
|
};
|
|
1235
1235
|
|
|
@@ -1259,7 +1259,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1259
1259
|
onAfterClick,
|
|
1260
1260
|
onBeforeClick,
|
|
1261
1261
|
onClick,
|
|
1262
|
-
size = DEFAULT_PROPS$
|
|
1262
|
+
size = DEFAULT_PROPS$Y.size,
|
|
1263
1263
|
theme = defaultTheme,
|
|
1264
1264
|
href,
|
|
1265
1265
|
onKeyDown,
|
|
@@ -1268,7 +1268,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1268
1268
|
const {
|
|
1269
1269
|
block,
|
|
1270
1270
|
element
|
|
1271
|
-
} = useClassnames(CLASSNAME$
|
|
1271
|
+
} = useClassnames(CLASSNAME$18);
|
|
1272
1272
|
const hasAfterClick = isFunction(onAfterClick);
|
|
1273
1273
|
const hasBeforeClick = isFunction(onBeforeClick);
|
|
1274
1274
|
const hasOnClick = isFunction(props.onClick);
|
|
@@ -1333,9 +1333,9 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1333
1333
|
})
|
|
1334
1334
|
);
|
|
1335
1335
|
});
|
|
1336
|
-
Chip.displayName = COMPONENT_NAME$
|
|
1337
|
-
Chip.className = CLASSNAME$
|
|
1338
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
1336
|
+
Chip.displayName = COMPONENT_NAME$1a;
|
|
1337
|
+
Chip.className = CLASSNAME$18;
|
|
1338
|
+
Chip.defaultProps = DEFAULT_PROPS$Y;
|
|
1339
1339
|
|
|
1340
1340
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
1341
1341
|
|
|
@@ -1391,17 +1391,17 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
|
|
|
1391
1391
|
/**
|
|
1392
1392
|
* Component default props.
|
|
1393
1393
|
*/
|
|
1394
|
-
const DEFAULT_PROPS$
|
|
1394
|
+
const DEFAULT_PROPS$X = {};
|
|
1395
1395
|
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Component display name.
|
|
1398
1398
|
*/
|
|
1399
|
-
const COMPONENT_NAME$
|
|
1399
|
+
const COMPONENT_NAME$19 = 'ChipGroup';
|
|
1400
1400
|
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Component default class name and class prefix.
|
|
1403
1403
|
*/
|
|
1404
|
-
const CLASSNAME$
|
|
1404
|
+
const CLASSNAME$17 = 'lumx-chip-group';
|
|
1405
1405
|
|
|
1406
1406
|
/**
|
|
1407
1407
|
* ChipGroup component.
|
|
@@ -1419,7 +1419,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
1419
1419
|
} = props;
|
|
1420
1420
|
const {
|
|
1421
1421
|
block
|
|
1422
|
-
} = useClassnames(CLASSNAME$
|
|
1422
|
+
} = useClassnames(CLASSNAME$17);
|
|
1423
1423
|
return /*#__PURE__*/jsx("div", {
|
|
1424
1424
|
ref: ref,
|
|
1425
1425
|
...forwardedProps,
|
|
@@ -1427,9 +1427,9 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
1427
1427
|
children: children
|
|
1428
1428
|
});
|
|
1429
1429
|
});
|
|
1430
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
1431
|
-
InternalChipGroup.className = CLASSNAME$
|
|
1432
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
1430
|
+
InternalChipGroup.displayName = COMPONENT_NAME$19;
|
|
1431
|
+
InternalChipGroup.className = CLASSNAME$17;
|
|
1432
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$X;
|
|
1433
1433
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
1434
1434
|
useChipGroupNavigation
|
|
1435
1435
|
});
|
|
@@ -1449,17 +1449,17 @@ const CommentBlockVariant = {
|
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Component display name.
|
|
1451
1451
|
*/
|
|
1452
|
-
const COMPONENT_NAME$
|
|
1452
|
+
const COMPONENT_NAME$18 = 'CommentBlock';
|
|
1453
1453
|
|
|
1454
1454
|
/**
|
|
1455
1455
|
* Component default class name and class prefix.
|
|
1456
1456
|
*/
|
|
1457
|
-
const CLASSNAME$
|
|
1457
|
+
const CLASSNAME$16 = 'lumx-comment-block';
|
|
1458
1458
|
|
|
1459
1459
|
/**
|
|
1460
1460
|
* Component default props.
|
|
1461
1461
|
*/
|
|
1462
|
-
const DEFAULT_PROPS$
|
|
1462
|
+
const DEFAULT_PROPS$W = {
|
|
1463
1463
|
variant: CommentBlockVariant.indented
|
|
1464
1464
|
};
|
|
1465
1465
|
|
|
@@ -1489,14 +1489,14 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
1489
1489
|
onMouseLeave,
|
|
1490
1490
|
text,
|
|
1491
1491
|
theme = defaultTheme,
|
|
1492
|
-
variant = DEFAULT_PROPS$
|
|
1492
|
+
variant = DEFAULT_PROPS$W.variant,
|
|
1493
1493
|
...forwardedProps
|
|
1494
1494
|
} = props;
|
|
1495
1495
|
const hasChildren = Children.count(children) > 0;
|
|
1496
1496
|
const {
|
|
1497
1497
|
block,
|
|
1498
1498
|
element
|
|
1499
|
-
} = useClassnames(CLASSNAME$
|
|
1499
|
+
} = useClassnames(CLASSNAME$16);
|
|
1500
1500
|
return /*#__PURE__*/jsxs("div", {
|
|
1501
1501
|
ref: ref,
|
|
1502
1502
|
className: block({
|
|
@@ -1560,9 +1560,9 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
1560
1560
|
})]
|
|
1561
1561
|
});
|
|
1562
1562
|
});
|
|
1563
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
1564
|
-
CommentBlock.className = CLASSNAME$
|
|
1565
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
1563
|
+
CommentBlock.displayName = COMPONENT_NAME$18;
|
|
1564
|
+
CommentBlock.className = CLASSNAME$16;
|
|
1565
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$W;
|
|
1566
1566
|
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -1582,12 +1582,12 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Component display name.
|
|
1584
1584
|
*/
|
|
1585
|
-
const COMPONENT_NAME$
|
|
1585
|
+
const COMPONENT_NAME$17 = 'DatePicker';
|
|
1586
1586
|
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Component default class name and class prefix.
|
|
1589
1589
|
*/
|
|
1590
|
-
const CLASSNAME$
|
|
1590
|
+
const CLASSNAME$15 = 'lumx-date-picker';
|
|
1591
1591
|
|
|
1592
1592
|
/** Get first day of week for locale from the browser API */
|
|
1593
1593
|
const getFromBrowser = locale => {
|
|
@@ -1805,25 +1805,10 @@ function formatDayNumber(locale, date) {
|
|
|
1805
1805
|
return formattedDate;
|
|
1806
1806
|
}
|
|
1807
1807
|
|
|
1808
|
-
/**
|
|
1809
|
-
* Optional global `window` instance (not defined when running SSR).
|
|
1810
|
-
*/
|
|
1811
|
-
const WINDOW = typeof window !== 'undefined' ? window : undefined;
|
|
1812
|
-
|
|
1813
|
-
/**
|
|
1814
|
-
* Optional global `document` instance (not defined when running SSR).
|
|
1815
|
-
*/
|
|
1816
|
-
const DOCUMENT = typeof document !== 'undefined' ? document : undefined;
|
|
1817
|
-
|
|
1818
|
-
/**
|
|
1819
|
-
* Check if we are running in a true browser
|
|
1820
|
-
*/
|
|
1821
|
-
const IS_BROWSER = typeof navigator !== 'undefined' && !navigator.userAgent.includes('jsdom');
|
|
1822
|
-
|
|
1823
1808
|
/**
|
|
1824
1809
|
* Component display name.
|
|
1825
1810
|
*/
|
|
1826
|
-
const COMPONENT_NAME$
|
|
1811
|
+
const COMPONENT_NAME$16 = 'DatePickerControlled';
|
|
1827
1812
|
|
|
1828
1813
|
/**
|
|
1829
1814
|
* DatePickerControlled component.
|
|
@@ -1858,7 +1843,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
1858
1843
|
const {
|
|
1859
1844
|
block,
|
|
1860
1845
|
element
|
|
1861
|
-
} = useClassnames(CLASSNAME$
|
|
1846
|
+
} = useClassnames(CLASSNAME$15);
|
|
1862
1847
|
const selectedYear = selectedMonth.getFullYear();
|
|
1863
1848
|
const formattedYear = selectedMonth.toLocaleDateString(locale, {
|
|
1864
1849
|
year: 'numeric'
|
|
@@ -1931,7 +1916,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
1931
1916
|
label: /*#__PURE__*/jsxs(Fragment, {
|
|
1932
1917
|
children: [/*#__PURE__*/jsx("span", {
|
|
1933
1918
|
"aria-live": labelAriaLive,
|
|
1934
|
-
className: onMonthChange ?
|
|
1919
|
+
className: onMonthChange ? cls.visuallyHidden() : undefined,
|
|
1935
1920
|
dir: "auto",
|
|
1936
1921
|
children: monthYear
|
|
1937
1922
|
}), onMonthChange && /*#__PURE__*/jsx(FlexBox, {
|
|
@@ -1988,7 +1973,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
1988
1973
|
const isToday = !isOutOfRange && date && isSameDay(date, new Date());
|
|
1989
1974
|
const isSelected = date && value && isSameDay(value, date);
|
|
1990
1975
|
return /*#__PURE__*/jsx("div", {
|
|
1991
|
-
className: element(`
|
|
1976
|
+
className: element(`day-wrapper`),
|
|
1992
1977
|
children: date && /*#__PURE__*/jsxs(Button, {
|
|
1993
1978
|
ref: isSelected || !value && isToday ? todayOrSelectedDateRef : null,
|
|
1994
1979
|
className: element(`month-day`, {
|
|
@@ -2002,7 +1987,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2002
1987
|
"aria-hidden": true,
|
|
2003
1988
|
children: formatDayNumber(locale, date)
|
|
2004
1989
|
}), /*#__PURE__*/jsx("span", {
|
|
2005
|
-
className:
|
|
1990
|
+
className: cls.visuallyHidden(),
|
|
2006
1991
|
children: date.toLocaleDateString(locale, {
|
|
2007
1992
|
day: 'numeric',
|
|
2008
1993
|
month: 'long',
|
|
@@ -2017,8 +2002,8 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2017
2002
|
})]
|
|
2018
2003
|
});
|
|
2019
2004
|
});
|
|
2020
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
2021
|
-
DatePickerControlled.className = CLASSNAME$
|
|
2005
|
+
DatePickerControlled.displayName = COMPONENT_NAME$16;
|
|
2006
|
+
DatePickerControlled.className = CLASSNAME$15;
|
|
2022
2007
|
|
|
2023
2008
|
/**
|
|
2024
2009
|
* DatePicker component.
|
|
@@ -2060,8 +2045,8 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
2060
2045
|
onMonthChange: setSelectedMonth
|
|
2061
2046
|
});
|
|
2062
2047
|
});
|
|
2063
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
2064
|
-
DatePicker.className = CLASSNAME$
|
|
2048
|
+
DatePicker.displayName = COMPONENT_NAME$17;
|
|
2049
|
+
DatePicker.className = CLASSNAME$15;
|
|
2065
2050
|
|
|
2066
2051
|
const useBooleanState = defaultValue => {
|
|
2067
2052
|
const [booleanValue, setBoolean] = useState(defaultValue);
|
|
@@ -2074,7 +2059,7 @@ const useBooleanState = defaultValue => {
|
|
|
2074
2059
|
/**
|
|
2075
2060
|
* Component display name.
|
|
2076
2061
|
*/
|
|
2077
|
-
const COMPONENT_NAME$
|
|
2062
|
+
const COMPONENT_NAME$15 = 'DatePickerField';
|
|
2078
2063
|
|
|
2079
2064
|
/**
|
|
2080
2065
|
* DatePickerField component.
|
|
@@ -2163,7 +2148,22 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
2163
2148
|
}) : null]
|
|
2164
2149
|
});
|
|
2165
2150
|
});
|
|
2166
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
2151
|
+
DatePickerField.displayName = COMPONENT_NAME$15;
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
* Optional global `window` instance (not defined when running SSR).
|
|
2155
|
+
*/
|
|
2156
|
+
const WINDOW = typeof window !== 'undefined' ? window : undefined;
|
|
2157
|
+
|
|
2158
|
+
/**
|
|
2159
|
+
* Optional global `document` instance (not defined when running SSR).
|
|
2160
|
+
*/
|
|
2161
|
+
const DOCUMENT = typeof document !== 'undefined' ? document : undefined;
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Check if we are running in a true browser
|
|
2165
|
+
*/
|
|
2166
|
+
const IS_BROWSER = typeof navigator !== 'undefined' && !navigator.userAgent.includes('jsdom');
|
|
2167
2167
|
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Keep track of listeners, only the last registered listener gets activated at any point (previously registered
|
|
@@ -2649,17 +2649,17 @@ const isFooter$1 = isComponent('footer');
|
|
|
2649
2649
|
/**
|
|
2650
2650
|
* Component display name.
|
|
2651
2651
|
*/
|
|
2652
|
-
const COMPONENT_NAME$
|
|
2652
|
+
const COMPONENT_NAME$14 = 'Dialog';
|
|
2653
2653
|
|
|
2654
2654
|
/**
|
|
2655
2655
|
* Component default class name and class prefix.
|
|
2656
2656
|
*/
|
|
2657
|
-
const CLASSNAME$
|
|
2657
|
+
const CLASSNAME$14 = 'lumx-dialog';
|
|
2658
2658
|
|
|
2659
2659
|
/**
|
|
2660
2660
|
* Component default props.
|
|
2661
2661
|
*/
|
|
2662
|
-
const DEFAULT_PROPS$
|
|
2662
|
+
const DEFAULT_PROPS$V = {
|
|
2663
2663
|
size: Size.big,
|
|
2664
2664
|
disableBodyScroll: true
|
|
2665
2665
|
};
|
|
@@ -2690,11 +2690,11 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
2690
2690
|
parentElement,
|
|
2691
2691
|
contentRef,
|
|
2692
2692
|
preventAutoClose,
|
|
2693
|
-
size = DEFAULT_PROPS$
|
|
2693
|
+
size = DEFAULT_PROPS$V.size,
|
|
2694
2694
|
zIndex,
|
|
2695
2695
|
dialogProps,
|
|
2696
2696
|
onVisibilityChange,
|
|
2697
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
2697
|
+
disableBodyScroll = DEFAULT_PROPS$V.disableBodyScroll,
|
|
2698
2698
|
preventCloseOnClick,
|
|
2699
2699
|
preventCloseOnEscape,
|
|
2700
2700
|
...forwardedProps
|
|
@@ -2703,7 +2703,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
2703
2703
|
const {
|
|
2704
2704
|
block,
|
|
2705
2705
|
element
|
|
2706
|
-
} = useClassnames(CLASSNAME$
|
|
2706
|
+
} = useClassnames(CLASSNAME$14);
|
|
2707
2707
|
|
|
2708
2708
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2709
2709
|
const previousOpen = React__default.useRef(isOpen);
|
|
@@ -2833,24 +2833,24 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
2833
2833
|
})
|
|
2834
2834
|
}) : null;
|
|
2835
2835
|
});
|
|
2836
|
-
Dialog.displayName = COMPONENT_NAME$
|
|
2837
|
-
Dialog.className = CLASSNAME$
|
|
2838
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
2836
|
+
Dialog.displayName = COMPONENT_NAME$14;
|
|
2837
|
+
Dialog.className = CLASSNAME$14;
|
|
2838
|
+
Dialog.defaultProps = DEFAULT_PROPS$V;
|
|
2839
2839
|
|
|
2840
2840
|
/**
|
|
2841
2841
|
* Component display name.
|
|
2842
2842
|
*/
|
|
2843
|
-
const COMPONENT_NAME$
|
|
2843
|
+
const COMPONENT_NAME$13 = 'Divider';
|
|
2844
2844
|
|
|
2845
2845
|
/**
|
|
2846
2846
|
* Component default class name and class prefix.
|
|
2847
2847
|
*/
|
|
2848
|
-
const CLASSNAME$
|
|
2848
|
+
const CLASSNAME$13 = 'lumx-divider';
|
|
2849
2849
|
|
|
2850
2850
|
/**
|
|
2851
2851
|
* Component default props.
|
|
2852
2852
|
*/
|
|
2853
|
-
const DEFAULT_PROPS$
|
|
2853
|
+
const DEFAULT_PROPS$U = {};
|
|
2854
2854
|
|
|
2855
2855
|
/**
|
|
2856
2856
|
* Divider component.
|
|
@@ -2868,7 +2868,7 @@ const Divider = forwardRef((props, ref) => {
|
|
|
2868
2868
|
} = props;
|
|
2869
2869
|
const {
|
|
2870
2870
|
block
|
|
2871
|
-
} = useClassnames(CLASSNAME$
|
|
2871
|
+
} = useClassnames(CLASSNAME$13);
|
|
2872
2872
|
return /*#__PURE__*/jsx("hr", {
|
|
2873
2873
|
ref: ref,
|
|
2874
2874
|
...forwardedProps,
|
|
@@ -2877,19 +2877,19 @@ const Divider = forwardRef((props, ref) => {
|
|
|
2877
2877
|
}, className)
|
|
2878
2878
|
});
|
|
2879
2879
|
});
|
|
2880
|
-
Divider.displayName = COMPONENT_NAME$
|
|
2881
|
-
Divider.className = CLASSNAME$
|
|
2882
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
2880
|
+
Divider.displayName = COMPONENT_NAME$13;
|
|
2881
|
+
Divider.className = CLASSNAME$13;
|
|
2882
|
+
Divider.defaultProps = DEFAULT_PROPS$U;
|
|
2883
2883
|
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Component display name.
|
|
2886
2886
|
*/
|
|
2887
|
-
const COMPONENT_NAME$
|
|
2887
|
+
const COMPONENT_NAME$12 = 'DragHandle';
|
|
2888
2888
|
|
|
2889
2889
|
/**
|
|
2890
2890
|
* Component default class name and class prefix.
|
|
2891
2891
|
*/
|
|
2892
|
-
const CLASSNAME$
|
|
2892
|
+
const CLASSNAME$12 = 'lumx-drag-handle';
|
|
2893
2893
|
|
|
2894
2894
|
/**
|
|
2895
2895
|
* DragHandle component.
|
|
@@ -2907,7 +2907,7 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
2907
2907
|
} = props;
|
|
2908
2908
|
const {
|
|
2909
2909
|
block
|
|
2910
|
-
} = useClassnames(CLASSNAME$
|
|
2910
|
+
} = useClassnames(CLASSNAME$12);
|
|
2911
2911
|
return /*#__PURE__*/jsx("div", {
|
|
2912
2912
|
ref: ref,
|
|
2913
2913
|
...forwardedProps,
|
|
@@ -2921,8 +2921,8 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
2921
2921
|
})
|
|
2922
2922
|
});
|
|
2923
2923
|
});
|
|
2924
|
-
DragHandle.displayName = COMPONENT_NAME$
|
|
2925
|
-
DragHandle.className = CLASSNAME$
|
|
2924
|
+
DragHandle.displayName = COMPONENT_NAME$12;
|
|
2925
|
+
DragHandle.className = CLASSNAME$12;
|
|
2926
2926
|
|
|
2927
2927
|
const INITIAL_INDEX = -1;
|
|
2928
2928
|
|
|
@@ -3091,17 +3091,17 @@ const useKeyboardListNavigation = (items, ref, onListItemSelected, onListItemNav
|
|
|
3091
3091
|
/**
|
|
3092
3092
|
* Component display name.
|
|
3093
3093
|
*/
|
|
3094
|
-
const COMPONENT_NAME$
|
|
3094
|
+
const COMPONENT_NAME$11 = 'List';
|
|
3095
3095
|
|
|
3096
3096
|
/**
|
|
3097
3097
|
* Component default class name and class prefix.
|
|
3098
3098
|
*/
|
|
3099
|
-
const CLASSNAME$
|
|
3099
|
+
const CLASSNAME$11 = 'lumx-list';
|
|
3100
3100
|
|
|
3101
3101
|
/**
|
|
3102
3102
|
* Component default props.
|
|
3103
3103
|
*/
|
|
3104
|
-
const DEFAULT_PROPS$
|
|
3104
|
+
const DEFAULT_PROPS$T = {
|
|
3105
3105
|
tabIndex: -1
|
|
3106
3106
|
};
|
|
3107
3107
|
|
|
@@ -3120,12 +3120,12 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3120
3120
|
isClickable,
|
|
3121
3121
|
itemPadding,
|
|
3122
3122
|
onListItemSelected,
|
|
3123
|
-
tabIndex = DEFAULT_PROPS$
|
|
3123
|
+
tabIndex = DEFAULT_PROPS$T.tabIndex,
|
|
3124
3124
|
...forwardedProps
|
|
3125
3125
|
} = props;
|
|
3126
3126
|
const {
|
|
3127
3127
|
block
|
|
3128
|
-
} = useClassnames(CLASSNAME$
|
|
3128
|
+
} = useClassnames(CLASSNAME$11);
|
|
3129
3129
|
const padding = itemPadding ?? (isClickable ? Size.big : undefined);
|
|
3130
3130
|
return /*#__PURE__*/jsx("ul", {
|
|
3131
3131
|
...forwardedProps,
|
|
@@ -3137,9 +3137,9 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3137
3137
|
children: children
|
|
3138
3138
|
});
|
|
3139
3139
|
});
|
|
3140
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
3141
|
-
InternalList.className = CLASSNAME$
|
|
3142
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
3140
|
+
InternalList.displayName = COMPONENT_NAME$11;
|
|
3141
|
+
InternalList.className = CLASSNAME$11;
|
|
3142
|
+
InternalList.defaultProps = DEFAULT_PROPS$T;
|
|
3143
3143
|
const List = Object.assign(InternalList, {
|
|
3144
3144
|
useKeyboardListNavigation
|
|
3145
3145
|
});
|
|
@@ -5574,17 +5574,17 @@ function usePopoverStyle({
|
|
|
5574
5574
|
/**
|
|
5575
5575
|
* Component display name.
|
|
5576
5576
|
*/
|
|
5577
|
-
const COMPONENT_NAME$
|
|
5577
|
+
const COMPONENT_NAME$10 = 'Popover';
|
|
5578
5578
|
|
|
5579
5579
|
/**
|
|
5580
5580
|
* Component default class name and class prefix.
|
|
5581
5581
|
*/
|
|
5582
|
-
const CLASSNAME$
|
|
5582
|
+
const CLASSNAME$10 = 'lumx-popover';
|
|
5583
5583
|
|
|
5584
5584
|
/**
|
|
5585
5585
|
* Component default props.
|
|
5586
5586
|
*/
|
|
5587
|
-
const DEFAULT_PROPS$
|
|
5587
|
+
const DEFAULT_PROPS$S = {
|
|
5588
5588
|
elevation: 3,
|
|
5589
5589
|
placement: Placement.AUTO,
|
|
5590
5590
|
focusAnchorOnClose: true,
|
|
@@ -5597,7 +5597,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
5597
5597
|
const {
|
|
5598
5598
|
block,
|
|
5599
5599
|
element
|
|
5600
|
-
} = useClassnames(CLASSNAME$
|
|
5600
|
+
} = useClassnames(CLASSNAME$10);
|
|
5601
5601
|
const {
|
|
5602
5602
|
anchorRef,
|
|
5603
5603
|
as: Component = 'div',
|
|
@@ -5605,24 +5605,24 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
5605
5605
|
className,
|
|
5606
5606
|
closeOnClickAway,
|
|
5607
5607
|
closeOnEscape,
|
|
5608
|
-
elevation = DEFAULT_PROPS$
|
|
5608
|
+
elevation = DEFAULT_PROPS$S.elevation,
|
|
5609
5609
|
focusElement,
|
|
5610
5610
|
hasArrow,
|
|
5611
5611
|
isOpen,
|
|
5612
5612
|
onClose,
|
|
5613
5613
|
parentElement,
|
|
5614
|
-
usePortal = DEFAULT_PROPS$
|
|
5615
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
5614
|
+
usePortal = DEFAULT_PROPS$S.usePortal,
|
|
5615
|
+
focusAnchorOnClose = DEFAULT_PROPS$S.focusAnchorOnClose,
|
|
5616
5616
|
withFocusTrap,
|
|
5617
5617
|
boundaryRef,
|
|
5618
5618
|
fitToAnchorWidth,
|
|
5619
5619
|
fitWithinViewportHeight,
|
|
5620
5620
|
focusTrapZoneElement,
|
|
5621
5621
|
offset,
|
|
5622
|
-
placement = DEFAULT_PROPS$
|
|
5622
|
+
placement = DEFAULT_PROPS$S.placement,
|
|
5623
5623
|
style,
|
|
5624
5624
|
theme,
|
|
5625
|
-
zIndex = DEFAULT_PROPS$
|
|
5625
|
+
zIndex = DEFAULT_PROPS$S.zIndex,
|
|
5626
5626
|
...forwardedProps
|
|
5627
5627
|
} = props;
|
|
5628
5628
|
const popoverRef = useRef(null);
|
|
@@ -5693,7 +5693,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
5693
5693
|
})
|
|
5694
5694
|
}) : null;
|
|
5695
5695
|
});
|
|
5696
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
5696
|
+
_InnerPopover.displayName = COMPONENT_NAME$10;
|
|
5697
5697
|
|
|
5698
5698
|
/**
|
|
5699
5699
|
* Popover component.
|
|
@@ -5705,9 +5705,9 @@ _InnerPopover.displayName = COMPONENT_NAME$11;
|
|
|
5705
5705
|
const Popover = skipRender(
|
|
5706
5706
|
// Skip render in SSR
|
|
5707
5707
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
5708
|
-
Popover.displayName = COMPONENT_NAME$
|
|
5709
|
-
Popover.className = CLASSNAME$
|
|
5710
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
5708
|
+
Popover.displayName = COMPONENT_NAME$10;
|
|
5709
|
+
Popover.className = CLASSNAME$10;
|
|
5710
|
+
Popover.defaultProps = DEFAULT_PROPS$S;
|
|
5711
5711
|
|
|
5712
5712
|
// The error margin in px we want to have for triggering infinite scroll
|
|
5713
5713
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -5753,17 +5753,17 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
|
|
|
5753
5753
|
/**
|
|
5754
5754
|
* Component display name.
|
|
5755
5755
|
*/
|
|
5756
|
-
const COMPONENT_NAME
|
|
5756
|
+
const COMPONENT_NAME$$ = 'Dropdown';
|
|
5757
5757
|
|
|
5758
5758
|
/**
|
|
5759
5759
|
* Component default class name and class prefix.
|
|
5760
5760
|
*/
|
|
5761
|
-
const CLASSNAME
|
|
5761
|
+
const CLASSNAME$$ = 'lumx-dropdown';
|
|
5762
5762
|
|
|
5763
5763
|
/**
|
|
5764
5764
|
* Component default props.
|
|
5765
5765
|
*/
|
|
5766
|
-
const DEFAULT_PROPS$
|
|
5766
|
+
const DEFAULT_PROPS$R = {
|
|
5767
5767
|
closeOnClick: true,
|
|
5768
5768
|
closeOnClickAway: true,
|
|
5769
5769
|
closeOnEscape: true,
|
|
@@ -5786,18 +5786,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
5786
5786
|
anchorRef,
|
|
5787
5787
|
children,
|
|
5788
5788
|
className,
|
|
5789
|
-
closeOnClick = DEFAULT_PROPS$
|
|
5790
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
5791
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
5792
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
5793
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
5789
|
+
closeOnClick = DEFAULT_PROPS$R.closeOnClick,
|
|
5790
|
+
closeOnClickAway = DEFAULT_PROPS$R.closeOnClickAway,
|
|
5791
|
+
closeOnEscape = DEFAULT_PROPS$R.closeOnEscape,
|
|
5792
|
+
fitToAnchorWidth = DEFAULT_PROPS$R.fitToAnchorWidth,
|
|
5793
|
+
fitWithinViewportHeight = DEFAULT_PROPS$R.fitWithinViewportHeight,
|
|
5794
5794
|
isOpen,
|
|
5795
5795
|
offset,
|
|
5796
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
5796
|
+
focusAnchorOnClose = DEFAULT_PROPS$R.focusAnchorOnClose,
|
|
5797
5797
|
onClose,
|
|
5798
5798
|
onInfiniteScroll,
|
|
5799
|
-
placement = DEFAULT_PROPS$
|
|
5800
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
5799
|
+
placement = DEFAULT_PROPS$R.placement,
|
|
5800
|
+
shouldFocusOnOpen = DEFAULT_PROPS$R.shouldFocusOnOpen,
|
|
5801
5801
|
zIndex,
|
|
5802
5802
|
...forwardedProps
|
|
5803
5803
|
} = props;
|
|
@@ -5806,7 +5806,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
5806
5806
|
const {
|
|
5807
5807
|
block,
|
|
5808
5808
|
element
|
|
5809
|
-
} = useClassnames(CLASSNAME
|
|
5809
|
+
} = useClassnames(CLASSNAME$$);
|
|
5810
5810
|
useInfiniteScroll(innerRef, onInfiniteScroll);
|
|
5811
5811
|
const popperElement = useMemo(() => {
|
|
5812
5812
|
return !Array.isArray(children) && isComponent(List)(children) ? /*#__PURE__*/cloneElement(children, {
|
|
@@ -5845,24 +5845,24 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
5845
5845
|
})
|
|
5846
5846
|
}) : null;
|
|
5847
5847
|
});
|
|
5848
|
-
Dropdown.displayName = COMPONENT_NAME
|
|
5849
|
-
Dropdown.className = CLASSNAME
|
|
5850
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
5848
|
+
Dropdown.displayName = COMPONENT_NAME$$;
|
|
5849
|
+
Dropdown.className = CLASSNAME$$;
|
|
5850
|
+
Dropdown.defaultProps = DEFAULT_PROPS$R;
|
|
5851
5851
|
|
|
5852
5852
|
/**
|
|
5853
5853
|
* Component display name.
|
|
5854
5854
|
*/
|
|
5855
|
-
const COMPONENT_NAME
|
|
5855
|
+
const COMPONENT_NAME$_ = 'ExpansionPanel';
|
|
5856
5856
|
|
|
5857
5857
|
/**
|
|
5858
5858
|
* Component default class name and class prefix.
|
|
5859
5859
|
*/
|
|
5860
|
-
const CLASSNAME$
|
|
5860
|
+
const CLASSNAME$_ = 'lumx-expansion-panel';
|
|
5861
5861
|
|
|
5862
5862
|
/**
|
|
5863
5863
|
* Component default props.
|
|
5864
5864
|
*/
|
|
5865
|
-
const DEFAULT_PROPS$
|
|
5865
|
+
const DEFAULT_PROPS$Q = {
|
|
5866
5866
|
closeMode: 'unmount'
|
|
5867
5867
|
};
|
|
5868
5868
|
const isDragHandle = isComponent(DragHandle);
|
|
@@ -5880,7 +5880,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
5880
5880
|
const defaultTheme = useTheme() || Theme.light;
|
|
5881
5881
|
const {
|
|
5882
5882
|
className,
|
|
5883
|
-
closeMode = DEFAULT_PROPS$
|
|
5883
|
+
closeMode = DEFAULT_PROPS$Q.closeMode,
|
|
5884
5884
|
children: anyChildren,
|
|
5885
5885
|
hasBackground,
|
|
5886
5886
|
hasHeaderDivider,
|
|
@@ -5896,7 +5896,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
5896
5896
|
const {
|
|
5897
5897
|
block,
|
|
5898
5898
|
element
|
|
5899
|
-
} = useClassnames(CLASSNAME$
|
|
5899
|
+
} = useClassnames(CLASSNAME$_);
|
|
5900
5900
|
const children = Children.toArray(anyChildren);
|
|
5901
5901
|
|
|
5902
5902
|
// Partition children by types.
|
|
@@ -6000,13 +6000,13 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6000
6000
|
})]
|
|
6001
6001
|
});
|
|
6002
6002
|
});
|
|
6003
|
-
ExpansionPanel.displayName = COMPONENT_NAME
|
|
6004
|
-
ExpansionPanel.className = CLASSNAME$
|
|
6005
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
6003
|
+
ExpansionPanel.displayName = COMPONENT_NAME$_;
|
|
6004
|
+
ExpansionPanel.className = CLASSNAME$_;
|
|
6005
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$Q;
|
|
6006
6006
|
|
|
6007
|
-
const COMPONENT_NAME$
|
|
6008
|
-
const CLASSNAME
|
|
6009
|
-
const DEFAULT_PROPS$
|
|
6007
|
+
const COMPONENT_NAME$Z = 'Flag';
|
|
6008
|
+
const CLASSNAME$Z = 'lumx-flag';
|
|
6009
|
+
const DEFAULT_PROPS$P = {};
|
|
6010
6010
|
|
|
6011
6011
|
/**
|
|
6012
6012
|
* Flag component.
|
|
@@ -6031,7 +6031,7 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6031
6031
|
const {
|
|
6032
6032
|
block,
|
|
6033
6033
|
element
|
|
6034
|
-
} = useClassnames(CLASSNAME
|
|
6034
|
+
} = useClassnames(CLASSNAME$Z);
|
|
6035
6035
|
return /*#__PURE__*/jsxs("div", {
|
|
6036
6036
|
...forwardedProps,
|
|
6037
6037
|
className: block({
|
|
@@ -6052,19 +6052,19 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6052
6052
|
})]
|
|
6053
6053
|
});
|
|
6054
6054
|
});
|
|
6055
|
-
Flag.displayName = COMPONENT_NAME$
|
|
6056
|
-
Flag.className = CLASSNAME
|
|
6057
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
6055
|
+
Flag.displayName = COMPONENT_NAME$Z;
|
|
6056
|
+
Flag.className = CLASSNAME$Z;
|
|
6057
|
+
Flag.defaultProps = DEFAULT_PROPS$P;
|
|
6058
6058
|
|
|
6059
6059
|
/**
|
|
6060
6060
|
* Component display name.
|
|
6061
6061
|
*/
|
|
6062
|
-
const COMPONENT_NAME$
|
|
6062
|
+
const COMPONENT_NAME$Y = 'FlexBox';
|
|
6063
6063
|
|
|
6064
6064
|
/**
|
|
6065
6065
|
* Component default class name and class prefix.
|
|
6066
6066
|
*/
|
|
6067
|
-
const CLASSNAME$
|
|
6067
|
+
const CLASSNAME$Y = 'lumx-flex-box';
|
|
6068
6068
|
|
|
6069
6069
|
/**
|
|
6070
6070
|
* FlexBox component.
|
|
@@ -6090,7 +6090,7 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
6090
6090
|
} = props;
|
|
6091
6091
|
const {
|
|
6092
6092
|
block
|
|
6093
|
-
} = useClassnames(CLASSNAME$
|
|
6093
|
+
} = useClassnames(CLASSNAME$Y);
|
|
6094
6094
|
const computedOrientation = orientation ?? (wrap || hAlign || vAlign ? Orientation.horizontal : null);
|
|
6095
6095
|
const marginAutoModifiers = marginAuto && castArray(marginAuto).reduce((acc, align) => ({
|
|
6096
6096
|
...acc,
|
|
@@ -6112,23 +6112,23 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
6112
6112
|
children: children
|
|
6113
6113
|
});
|
|
6114
6114
|
});
|
|
6115
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
6116
|
-
FlexBox.className = CLASSNAME$
|
|
6115
|
+
FlexBox.displayName = COMPONENT_NAME$Y;
|
|
6116
|
+
FlexBox.className = CLASSNAME$Y;
|
|
6117
6117
|
|
|
6118
6118
|
/**
|
|
6119
6119
|
* Component display name.
|
|
6120
6120
|
*/
|
|
6121
|
-
const COMPONENT_NAME$
|
|
6121
|
+
const COMPONENT_NAME$X = 'GenericBlock';
|
|
6122
6122
|
|
|
6123
6123
|
/**
|
|
6124
6124
|
* Component default class name and class prefix.
|
|
6125
6125
|
*/
|
|
6126
|
-
const CLASSNAME$
|
|
6126
|
+
const CLASSNAME$X = 'lumx-generic-block';
|
|
6127
6127
|
|
|
6128
6128
|
/**
|
|
6129
6129
|
* Component default props.
|
|
6130
6130
|
*/
|
|
6131
|
-
const DEFAULT_PROPS$
|
|
6131
|
+
const DEFAULT_PROPS$O = {
|
|
6132
6132
|
gap: Size.big,
|
|
6133
6133
|
orientation: Orientation.horizontal
|
|
6134
6134
|
};
|
|
@@ -6158,15 +6158,15 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6158
6158
|
children,
|
|
6159
6159
|
actions,
|
|
6160
6160
|
actionsProps,
|
|
6161
|
-
gap = DEFAULT_PROPS$
|
|
6162
|
-
orientation = DEFAULT_PROPS$
|
|
6161
|
+
gap = DEFAULT_PROPS$O.gap,
|
|
6162
|
+
orientation = DEFAULT_PROPS$O.orientation,
|
|
6163
6163
|
contentProps,
|
|
6164
6164
|
...forwardedProps
|
|
6165
6165
|
} = props;
|
|
6166
6166
|
const {
|
|
6167
6167
|
block,
|
|
6168
6168
|
element
|
|
6169
|
-
} = useClassnames(CLASSNAME$
|
|
6169
|
+
} = useClassnames(CLASSNAME$X);
|
|
6170
6170
|
const sections = React__default.useMemo(() => {
|
|
6171
6171
|
// Split children by section type
|
|
6172
6172
|
const [[figureChild], [contentChild], [actionsChild], ...otherChildren] = partitionMulti(Children.toArray(children), [isFigure, isContent, isActions]);
|
|
@@ -6215,9 +6215,9 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6215
6215
|
})]
|
|
6216
6216
|
});
|
|
6217
6217
|
});
|
|
6218
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
6219
|
-
BaseGenericBlock.className = CLASSNAME$
|
|
6220
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
6218
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$X;
|
|
6219
|
+
BaseGenericBlock.className = CLASSNAME$X;
|
|
6220
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$O;
|
|
6221
6221
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
6222
6222
|
Figure,
|
|
6223
6223
|
Content,
|
|
@@ -6256,7 +6256,7 @@ const useOverflowTooltipLabel = content => {
|
|
|
6256
6256
|
// Not inside a tooltip
|
|
6257
6257
|
!parentTooltip && labelElement &&
|
|
6258
6258
|
// Not inside a visually hidden
|
|
6259
|
-
!labelElement?.closest(`.${
|
|
6259
|
+
!labelElement?.closest(`.${cls.visuallyHidden()}`) &&
|
|
6260
6260
|
// Text overflows
|
|
6261
6261
|
labelElement.offsetWidth < labelElement.scrollWidth) {
|
|
6262
6262
|
// Set tooltip label
|
|
@@ -6288,17 +6288,17 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
6288
6288
|
/**
|
|
6289
6289
|
* Component display name.
|
|
6290
6290
|
*/
|
|
6291
|
-
const COMPONENT_NAME$
|
|
6291
|
+
const COMPONENT_NAME$W = 'Text';
|
|
6292
6292
|
|
|
6293
6293
|
/**
|
|
6294
6294
|
* Component default class name and class prefix.
|
|
6295
6295
|
*/
|
|
6296
|
-
const CLASSNAME$
|
|
6296
|
+
const CLASSNAME$W = 'lumx-text';
|
|
6297
6297
|
|
|
6298
6298
|
/**
|
|
6299
6299
|
* Component default props.
|
|
6300
6300
|
*/
|
|
6301
|
-
const DEFAULT_PROPS$
|
|
6301
|
+
const DEFAULT_PROPS$N = {};
|
|
6302
6302
|
|
|
6303
6303
|
/**
|
|
6304
6304
|
* Text component.
|
|
@@ -6323,7 +6323,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
6323
6323
|
} = props;
|
|
6324
6324
|
const {
|
|
6325
6325
|
block
|
|
6326
|
-
} = useClassnames(CLASSNAME$
|
|
6326
|
+
} = useClassnames(CLASSNAME$W);
|
|
6327
6327
|
|
|
6328
6328
|
// Truncate mode
|
|
6329
6329
|
const truncateLinesStyle = typeof truncate === 'object' && truncate.lines > 1 && {
|
|
@@ -6361,9 +6361,9 @@ const Text = forwardRef((props, ref) => {
|
|
|
6361
6361
|
children: wrapChildrenIconWithSpaces(children)
|
|
6362
6362
|
});
|
|
6363
6363
|
});
|
|
6364
|
-
Text.displayName = COMPONENT_NAME$
|
|
6365
|
-
Text.className = CLASSNAME$
|
|
6366
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
6364
|
+
Text.displayName = COMPONENT_NAME$W;
|
|
6365
|
+
Text.className = CLASSNAME$W;
|
|
6366
|
+
Text.defaultProps = DEFAULT_PROPS$N;
|
|
6367
6367
|
|
|
6368
6368
|
/** The maximum authorized heading level. */
|
|
6369
6369
|
const MAX_HEADING_LEVEL = 6;
|
|
@@ -6400,17 +6400,17 @@ const useHeadingLevel = () => {
|
|
|
6400
6400
|
/**
|
|
6401
6401
|
* Component display name.
|
|
6402
6402
|
*/
|
|
6403
|
-
const COMPONENT_NAME$
|
|
6403
|
+
const COMPONENT_NAME$V = 'Heading';
|
|
6404
6404
|
|
|
6405
6405
|
/**
|
|
6406
6406
|
* Component default class name and class prefix.
|
|
6407
6407
|
*/
|
|
6408
|
-
const CLASSNAME$
|
|
6408
|
+
const CLASSNAME$V = 'lumx-heading';
|
|
6409
6409
|
|
|
6410
6410
|
/**
|
|
6411
6411
|
* Component default props.
|
|
6412
6412
|
*/
|
|
6413
|
-
const DEFAULT_PROPS$
|
|
6413
|
+
const DEFAULT_PROPS$M = {};
|
|
6414
6414
|
|
|
6415
6415
|
/**
|
|
6416
6416
|
* Renders a heading component.
|
|
@@ -6429,7 +6429,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
6429
6429
|
} = useHeadingLevel();
|
|
6430
6430
|
const {
|
|
6431
6431
|
block
|
|
6432
|
-
} = useClassnames(CLASSNAME$
|
|
6432
|
+
} = useClassnames(CLASSNAME$V);
|
|
6433
6433
|
const computedHeadingElement = as || headingElement;
|
|
6434
6434
|
return /*#__PURE__*/jsx(Text, {
|
|
6435
6435
|
ref: ref,
|
|
@@ -6440,9 +6440,9 @@ const Heading = forwardRef((props, ref) => {
|
|
|
6440
6440
|
children: children
|
|
6441
6441
|
});
|
|
6442
6442
|
});
|
|
6443
|
-
Heading.displayName = COMPONENT_NAME$
|
|
6444
|
-
Heading.className = CLASSNAME$
|
|
6445
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
6443
|
+
Heading.displayName = COMPONENT_NAME$V;
|
|
6444
|
+
Heading.className = CLASSNAME$V;
|
|
6445
|
+
Heading.defaultProps = DEFAULT_PROPS$M;
|
|
6446
6446
|
|
|
6447
6447
|
/**
|
|
6448
6448
|
* Provide a new heading level context.
|
|
@@ -6470,17 +6470,17 @@ const HeadingLevelProvider = ({
|
|
|
6470
6470
|
/**
|
|
6471
6471
|
* Component display name.
|
|
6472
6472
|
*/
|
|
6473
|
-
const COMPONENT_NAME$
|
|
6473
|
+
const COMPONENT_NAME$U = 'Grid';
|
|
6474
6474
|
|
|
6475
6475
|
/**
|
|
6476
6476
|
* Component default class name and class prefix.
|
|
6477
6477
|
*/
|
|
6478
|
-
const CLASSNAME$
|
|
6478
|
+
const CLASSNAME$U = 'lumx-grid';
|
|
6479
6479
|
|
|
6480
6480
|
/**
|
|
6481
6481
|
* Component default props.
|
|
6482
6482
|
*/
|
|
6483
|
-
const DEFAULT_PROPS$
|
|
6483
|
+
const DEFAULT_PROPS$L = {
|
|
6484
6484
|
orientation: Orientation.horizontal,
|
|
6485
6485
|
wrap: 'nowrap'
|
|
6486
6486
|
};
|
|
@@ -6498,14 +6498,14 @@ const Grid = forwardRef((props, ref) => {
|
|
|
6498
6498
|
className,
|
|
6499
6499
|
gutter,
|
|
6500
6500
|
hAlign,
|
|
6501
|
-
orientation = DEFAULT_PROPS$
|
|
6501
|
+
orientation = DEFAULT_PROPS$L.orientation,
|
|
6502
6502
|
vAlign,
|
|
6503
|
-
wrap = DEFAULT_PROPS$
|
|
6503
|
+
wrap = DEFAULT_PROPS$L.wrap,
|
|
6504
6504
|
...forwardedProps
|
|
6505
6505
|
} = props;
|
|
6506
6506
|
const {
|
|
6507
6507
|
block
|
|
6508
|
-
} = useClassnames(CLASSNAME$
|
|
6508
|
+
} = useClassnames(CLASSNAME$U);
|
|
6509
6509
|
return /*#__PURE__*/jsx("div", {
|
|
6510
6510
|
ref: ref,
|
|
6511
6511
|
...forwardedProps,
|
|
@@ -6520,19 +6520,19 @@ const Grid = forwardRef((props, ref) => {
|
|
|
6520
6520
|
children: children
|
|
6521
6521
|
});
|
|
6522
6522
|
});
|
|
6523
|
-
Grid.displayName = COMPONENT_NAME$
|
|
6524
|
-
Grid.className = CLASSNAME$
|
|
6525
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
6523
|
+
Grid.displayName = COMPONENT_NAME$U;
|
|
6524
|
+
Grid.className = CLASSNAME$U;
|
|
6525
|
+
Grid.defaultProps = DEFAULT_PROPS$L;
|
|
6526
6526
|
|
|
6527
6527
|
/**
|
|
6528
6528
|
* Component display name.
|
|
6529
6529
|
*/
|
|
6530
|
-
const COMPONENT_NAME$
|
|
6530
|
+
const COMPONENT_NAME$T = 'GridItem';
|
|
6531
6531
|
|
|
6532
6532
|
/**
|
|
6533
6533
|
* Component default class name and class prefix.
|
|
6534
6534
|
*/
|
|
6535
|
-
const CLASSNAME$
|
|
6535
|
+
const CLASSNAME$T = 'lumx-grid-item';
|
|
6536
6536
|
|
|
6537
6537
|
/**
|
|
6538
6538
|
* GridItem component.
|
|
@@ -6552,7 +6552,7 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
6552
6552
|
} = props;
|
|
6553
6553
|
const {
|
|
6554
6554
|
block
|
|
6555
|
-
} = useClassnames(CLASSNAME$
|
|
6555
|
+
} = useClassnames(CLASSNAME$T);
|
|
6556
6556
|
return /*#__PURE__*/jsx("div", {
|
|
6557
6557
|
ref: ref,
|
|
6558
6558
|
...forwardedProps,
|
|
@@ -6564,23 +6564,23 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
6564
6564
|
children: children
|
|
6565
6565
|
});
|
|
6566
6566
|
});
|
|
6567
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
6568
|
-
GridItem.className = CLASSNAME$
|
|
6567
|
+
GridItem.displayName = COMPONENT_NAME$T;
|
|
6568
|
+
GridItem.className = CLASSNAME$T;
|
|
6569
6569
|
|
|
6570
6570
|
/**
|
|
6571
6571
|
* Component display name.
|
|
6572
6572
|
*/
|
|
6573
|
-
const COMPONENT_NAME$
|
|
6573
|
+
const COMPONENT_NAME$S = 'GridColumn';
|
|
6574
6574
|
|
|
6575
6575
|
/**
|
|
6576
6576
|
* Component default class name and class prefix.
|
|
6577
6577
|
*/
|
|
6578
|
-
const CLASSNAME$
|
|
6578
|
+
const CLASSNAME$S = 'lumx-grid-column';
|
|
6579
6579
|
|
|
6580
6580
|
/**
|
|
6581
6581
|
* Component default props.
|
|
6582
6582
|
*/
|
|
6583
|
-
const DEFAULT_PROPS$
|
|
6583
|
+
const DEFAULT_PROPS$K = {};
|
|
6584
6584
|
|
|
6585
6585
|
/**
|
|
6586
6586
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -6604,7 +6604,7 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
6604
6604
|
} = props;
|
|
6605
6605
|
const {
|
|
6606
6606
|
block
|
|
6607
|
-
} = useClassnames(CLASSNAME$
|
|
6607
|
+
} = useClassnames(CLASSNAME$S);
|
|
6608
6608
|
return /*#__PURE__*/jsx(Component, {
|
|
6609
6609
|
...forwardedProps,
|
|
6610
6610
|
ref: ref,
|
|
@@ -6618,24 +6618,24 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
6618
6618
|
children: children
|
|
6619
6619
|
});
|
|
6620
6620
|
});
|
|
6621
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
6622
|
-
GridColumn.className = CLASSNAME$
|
|
6623
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
6621
|
+
GridColumn.displayName = COMPONENT_NAME$S;
|
|
6622
|
+
GridColumn.className = CLASSNAME$S;
|
|
6623
|
+
GridColumn.defaultProps = DEFAULT_PROPS$K;
|
|
6624
6624
|
|
|
6625
6625
|
/**
|
|
6626
6626
|
* Component display name.
|
|
6627
6627
|
*/
|
|
6628
|
-
const COMPONENT_NAME$
|
|
6628
|
+
const COMPONENT_NAME$R = 'Icon';
|
|
6629
6629
|
|
|
6630
6630
|
/**
|
|
6631
6631
|
* Component default class name and class prefix.
|
|
6632
6632
|
*/
|
|
6633
|
-
const CLASSNAME$
|
|
6633
|
+
const CLASSNAME$R = 'lumx-icon';
|
|
6634
6634
|
|
|
6635
6635
|
/**
|
|
6636
6636
|
* Component default props.
|
|
6637
6637
|
*/
|
|
6638
|
-
const DEFAULT_PROPS$
|
|
6638
|
+
const DEFAULT_PROPS$J = {};
|
|
6639
6639
|
|
|
6640
6640
|
/**
|
|
6641
6641
|
* Icon component.
|
|
@@ -6659,7 +6659,7 @@ const Icon = forwardRef((props, ref) => {
|
|
|
6659
6659
|
} = props;
|
|
6660
6660
|
const {
|
|
6661
6661
|
block
|
|
6662
|
-
} = useClassnames(CLASSNAME$
|
|
6662
|
+
} = useClassnames(CLASSNAME$R);
|
|
6663
6663
|
const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
|
|
6664
6664
|
|
|
6665
6665
|
// Color
|
|
@@ -6716,15 +6716,15 @@ const Icon = forwardRef((props, ref) => {
|
|
|
6716
6716
|
})
|
|
6717
6717
|
});
|
|
6718
6718
|
});
|
|
6719
|
-
Icon.displayName = COMPONENT_NAME$
|
|
6720
|
-
Icon.className = CLASSNAME$
|
|
6721
|
-
Icon.defaultProps = DEFAULT_PROPS$
|
|
6719
|
+
Icon.displayName = COMPONENT_NAME$R;
|
|
6720
|
+
Icon.className = CLASSNAME$R;
|
|
6721
|
+
Icon.defaultProps = DEFAULT_PROPS$J;
|
|
6722
6722
|
|
|
6723
6723
|
/** Internal component used to render image captions */
|
|
6724
6724
|
const ImageCaption = props => {
|
|
6725
6725
|
const defaultTheme = useTheme();
|
|
6726
6726
|
const {
|
|
6727
|
-
|
|
6727
|
+
className,
|
|
6728
6728
|
theme = defaultTheme,
|
|
6729
6729
|
as = 'figcaption',
|
|
6730
6730
|
title,
|
|
@@ -6732,7 +6732,9 @@ const ImageCaption = props => {
|
|
|
6732
6732
|
description,
|
|
6733
6733
|
descriptionProps,
|
|
6734
6734
|
tags,
|
|
6735
|
+
tagsProps,
|
|
6735
6736
|
captionStyle,
|
|
6737
|
+
captionProps,
|
|
6736
6738
|
align,
|
|
6737
6739
|
truncate
|
|
6738
6740
|
} = props;
|
|
@@ -6751,12 +6753,9 @@ const ImageCaption = props => {
|
|
|
6751
6753
|
} : {
|
|
6752
6754
|
dangerouslySetInnerHTML: description
|
|
6753
6755
|
};
|
|
6754
|
-
|
|
6755
|
-
// Create element class name generator if baseClassName is provided
|
|
6756
|
-
const element = baseClassName ? cls.bem.element(baseClassName) : undefined;
|
|
6757
6756
|
return /*#__PURE__*/jsxs(FlexBox, {
|
|
6758
6757
|
as: as,
|
|
6759
|
-
className:
|
|
6758
|
+
className: className,
|
|
6760
6759
|
style: captionStyle,
|
|
6761
6760
|
orientation: "vertical",
|
|
6762
6761
|
vAlign: align,
|
|
@@ -6764,25 +6763,23 @@ const ImageCaption = props => {
|
|
|
6764
6763
|
gap: "regular",
|
|
6765
6764
|
children: [(title || description) && /*#__PURE__*/jsxs(Text, {
|
|
6766
6765
|
as: "p",
|
|
6767
|
-
|
|
6766
|
+
...captionProps,
|
|
6768
6767
|
truncate: truncate,
|
|
6769
6768
|
...baseColor,
|
|
6770
6769
|
children: [title && /*#__PURE__*/jsx(Text, {
|
|
6771
6770
|
...titleProps,
|
|
6772
6771
|
as: "span",
|
|
6773
|
-
className: element?.('title', undefined, titleProps?.className),
|
|
6774
6772
|
typography: "subtitle1",
|
|
6775
6773
|
...titleColor,
|
|
6776
6774
|
children: title
|
|
6777
6775
|
}), ' ', description && /*#__PURE__*/jsx(Text, {
|
|
6778
6776
|
...descriptionProps,
|
|
6779
6777
|
as: "span",
|
|
6780
|
-
className: element?.('description', undefined, descriptionProps?.className),
|
|
6781
6778
|
typography: "body1",
|
|
6782
6779
|
...descriptionContent
|
|
6783
6780
|
})]
|
|
6784
6781
|
}), tags && /*#__PURE__*/jsx(FlexBox, {
|
|
6785
|
-
|
|
6782
|
+
...tagsProps,
|
|
6786
6783
|
orientation: "horizontal",
|
|
6787
6784
|
vAlign: align,
|
|
6788
6785
|
children: tags
|
|
@@ -6806,17 +6803,17 @@ const ImageBlockCaptionPosition = {
|
|
|
6806
6803
|
/**
|
|
6807
6804
|
* Component display name.
|
|
6808
6805
|
*/
|
|
6809
|
-
const COMPONENT_NAME$
|
|
6806
|
+
const COMPONENT_NAME$Q = 'ImageBlock';
|
|
6810
6807
|
|
|
6811
6808
|
/**
|
|
6812
6809
|
* Component default class name and class prefix.
|
|
6813
6810
|
*/
|
|
6814
|
-
const CLASSNAME$
|
|
6811
|
+
const CLASSNAME$Q = 'lumx-image-block';
|
|
6815
6812
|
|
|
6816
6813
|
/**
|
|
6817
6814
|
* Component default props.
|
|
6818
6815
|
*/
|
|
6819
|
-
const DEFAULT_PROPS$
|
|
6816
|
+
const DEFAULT_PROPS$I = {
|
|
6820
6817
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
6821
6818
|
align: Alignment.left
|
|
6822
6819
|
};
|
|
@@ -6832,9 +6829,9 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
6832
6829
|
const defaultTheme = useTheme() || Theme.light;
|
|
6833
6830
|
const {
|
|
6834
6831
|
actions,
|
|
6835
|
-
align = DEFAULT_PROPS$
|
|
6832
|
+
align = DEFAULT_PROPS$I.align,
|
|
6836
6833
|
alt,
|
|
6837
|
-
captionPosition = DEFAULT_PROPS$
|
|
6834
|
+
captionPosition = DEFAULT_PROPS$I.captionPosition,
|
|
6838
6835
|
captionStyle,
|
|
6839
6836
|
className,
|
|
6840
6837
|
description,
|
|
@@ -6852,7 +6849,7 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
6852
6849
|
const {
|
|
6853
6850
|
block,
|
|
6854
6851
|
element
|
|
6855
|
-
} = useClassnames(CLASSNAME$
|
|
6852
|
+
} = useClassnames(CLASSNAME$Q);
|
|
6856
6853
|
return /*#__PURE__*/jsxs("figure", {
|
|
6857
6854
|
ref: ref,
|
|
6858
6855
|
...forwardedProps,
|
|
@@ -6874,14 +6871,26 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
6874
6871
|
alt: alt || title
|
|
6875
6872
|
}), /*#__PURE__*/jsx(ImageCaption, {
|
|
6876
6873
|
as: "figcaption",
|
|
6877
|
-
|
|
6874
|
+
className: element('wrapper'),
|
|
6878
6875
|
theme: theme,
|
|
6879
6876
|
title: title,
|
|
6880
|
-
titleProps:
|
|
6877
|
+
titleProps: {
|
|
6878
|
+
...titleProps,
|
|
6879
|
+
className: element('title', [titleProps?.className])
|
|
6880
|
+
},
|
|
6881
6881
|
description: description,
|
|
6882
|
-
descriptionProps:
|
|
6882
|
+
descriptionProps: {
|
|
6883
|
+
...descriptionProps,
|
|
6884
|
+
className: element('description', [descriptionProps?.className])
|
|
6885
|
+
},
|
|
6883
6886
|
tags: tags,
|
|
6887
|
+
tagsProps: {
|
|
6888
|
+
className: element('tags')
|
|
6889
|
+
},
|
|
6884
6890
|
captionStyle: captionStyle,
|
|
6891
|
+
captionProps: {
|
|
6892
|
+
className: element('caption')
|
|
6893
|
+
},
|
|
6885
6894
|
align: align,
|
|
6886
6895
|
truncate: captionPosition === 'over'
|
|
6887
6896
|
}), actions && /*#__PURE__*/jsx("div", {
|
|
@@ -6890,19 +6899,19 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
6890
6899
|
})]
|
|
6891
6900
|
});
|
|
6892
6901
|
});
|
|
6893
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
6894
|
-
ImageBlock.className = CLASSNAME$
|
|
6895
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
6902
|
+
ImageBlock.displayName = COMPONENT_NAME$Q;
|
|
6903
|
+
ImageBlock.className = CLASSNAME$Q;
|
|
6904
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$I;
|
|
6896
6905
|
|
|
6897
6906
|
/**
|
|
6898
6907
|
* Component display name.
|
|
6899
6908
|
*/
|
|
6900
|
-
const COMPONENT_NAME$
|
|
6909
|
+
const COMPONENT_NAME$P = 'ImageLightbox';
|
|
6901
6910
|
|
|
6902
6911
|
/**
|
|
6903
6912
|
* Component default class name and class prefix.
|
|
6904
6913
|
*/
|
|
6905
|
-
const CLASSNAME$
|
|
6914
|
+
const CLASSNAME$P = 'lumx-image-lightbox';
|
|
6906
6915
|
|
|
6907
6916
|
/**
|
|
6908
6917
|
* Observe element size (only works if it's size depends on the window size).
|
|
@@ -7162,7 +7171,7 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
7162
7171
|
} = props;
|
|
7163
7172
|
const {
|
|
7164
7173
|
element
|
|
7165
|
-
} = useClassnames(CLASSNAME$
|
|
7174
|
+
} = useClassnames(CLASSNAME$P);
|
|
7166
7175
|
|
|
7167
7176
|
// Get scroll area size
|
|
7168
7177
|
const scrollAreaRef = React__default.useRef(null);
|
|
@@ -7266,7 +7275,7 @@ const ImageSlideshow = ({
|
|
|
7266
7275
|
});
|
|
7267
7276
|
const {
|
|
7268
7277
|
element
|
|
7269
|
-
} = useClassnames(CLASSNAME$
|
|
7278
|
+
} = useClassnames(CLASSNAME$P);
|
|
7270
7279
|
|
|
7271
7280
|
// Image metadata (caption)
|
|
7272
7281
|
const title = images[activeIndex]?.title;
|
|
@@ -7486,7 +7495,7 @@ function useImageLightbox(props) {
|
|
|
7486
7495
|
viewTransitionName: {
|
|
7487
7496
|
source: currentImageRef,
|
|
7488
7497
|
target: triggerImageRefs[currentIndex],
|
|
7489
|
-
name: CLASSNAME$
|
|
7498
|
+
name: CLASSNAME$P
|
|
7490
7499
|
}
|
|
7491
7500
|
});
|
|
7492
7501
|
}
|
|
@@ -7538,7 +7547,7 @@ function useImageLightbox(props) {
|
|
|
7538
7547
|
viewTransitionName: {
|
|
7539
7548
|
source: triggerImage,
|
|
7540
7549
|
target: currentImageRef,
|
|
7541
|
-
name: CLASSNAME$
|
|
7550
|
+
name: CLASSNAME$P
|
|
7542
7551
|
}
|
|
7543
7552
|
});
|
|
7544
7553
|
}
|
|
@@ -7580,7 +7589,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
7580
7589
|
} = props;
|
|
7581
7590
|
const {
|
|
7582
7591
|
block
|
|
7583
|
-
} = useClassnames(CLASSNAME$
|
|
7592
|
+
} = useClassnames(CLASSNAME$P);
|
|
7584
7593
|
const currentPaginationItemRef = React__default.useRef(null);
|
|
7585
7594
|
const footerRef = React__default.useRef(null);
|
|
7586
7595
|
const imageRef = React__default.useRef(null);
|
|
@@ -7624,8 +7633,8 @@ const Inner = forwardRef((props, ref) => {
|
|
|
7624
7633
|
})
|
|
7625
7634
|
});
|
|
7626
7635
|
});
|
|
7627
|
-
Inner.displayName = COMPONENT_NAME$
|
|
7628
|
-
Inner.className = CLASSNAME$
|
|
7636
|
+
Inner.displayName = COMPONENT_NAME$P;
|
|
7637
|
+
Inner.className = CLASSNAME$P;
|
|
7629
7638
|
|
|
7630
7639
|
/**
|
|
7631
7640
|
* ImageLightbox component.
|
|
@@ -7641,17 +7650,17 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
7641
7650
|
/**
|
|
7642
7651
|
* Component display name.
|
|
7643
7652
|
*/
|
|
7644
|
-
const COMPONENT_NAME$
|
|
7653
|
+
const COMPONENT_NAME$O = 'InlineList';
|
|
7645
7654
|
|
|
7646
7655
|
/**
|
|
7647
7656
|
* Component default class name and class prefix.
|
|
7648
7657
|
*/
|
|
7649
|
-
const CLASSNAME$
|
|
7658
|
+
const CLASSNAME$O = 'lumx-inline-list';
|
|
7650
7659
|
|
|
7651
7660
|
/**
|
|
7652
7661
|
* Component default props.
|
|
7653
7662
|
*/
|
|
7654
|
-
const DEFAULT_PROPS$
|
|
7663
|
+
const DEFAULT_PROPS$H = {};
|
|
7655
7664
|
|
|
7656
7665
|
/**
|
|
7657
7666
|
* InlineList component.
|
|
@@ -7673,7 +7682,7 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
7673
7682
|
const {
|
|
7674
7683
|
block,
|
|
7675
7684
|
element
|
|
7676
|
-
} = useClassnames(CLASSNAME$
|
|
7685
|
+
} = useClassnames(CLASSNAME$O);
|
|
7677
7686
|
return (
|
|
7678
7687
|
/*#__PURE__*/
|
|
7679
7688
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
@@ -7706,9 +7715,9 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
7706
7715
|
})
|
|
7707
7716
|
);
|
|
7708
7717
|
});
|
|
7709
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
7710
|
-
InlineList.className = CLASSNAME$
|
|
7711
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
7718
|
+
InlineList.displayName = COMPONENT_NAME$O;
|
|
7719
|
+
InlineList.className = CLASSNAME$O;
|
|
7720
|
+
InlineList.defaultProps = DEFAULT_PROPS$H;
|
|
7712
7721
|
|
|
7713
7722
|
const INPUT_HELPER_CONFIGURATION = {
|
|
7714
7723
|
error: {
|
|
@@ -7725,17 +7734,17 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
7725
7734
|
/**
|
|
7726
7735
|
* Component display name.
|
|
7727
7736
|
*/
|
|
7728
|
-
const COMPONENT_NAME$
|
|
7737
|
+
const COMPONENT_NAME$N = 'InputHelper';
|
|
7729
7738
|
|
|
7730
7739
|
/**
|
|
7731
7740
|
* Component default class name and class prefix.
|
|
7732
7741
|
*/
|
|
7733
|
-
const CLASSNAME$
|
|
7742
|
+
const CLASSNAME$N = 'lumx-input-helper';
|
|
7734
7743
|
|
|
7735
7744
|
/**
|
|
7736
7745
|
* Component default props.
|
|
7737
7746
|
*/
|
|
7738
|
-
const DEFAULT_PROPS$
|
|
7747
|
+
const DEFAULT_PROPS$G = {
|
|
7739
7748
|
kind: Kind.info
|
|
7740
7749
|
};
|
|
7741
7750
|
|
|
@@ -7751,7 +7760,7 @@ const InputHelper = forwardRef((props, ref) => {
|
|
|
7751
7760
|
const {
|
|
7752
7761
|
children,
|
|
7753
7762
|
className,
|
|
7754
|
-
kind = DEFAULT_PROPS$
|
|
7763
|
+
kind = DEFAULT_PROPS$G.kind,
|
|
7755
7764
|
theme = defaultTheme,
|
|
7756
7765
|
...forwardedProps
|
|
7757
7766
|
} = props;
|
|
@@ -7760,7 +7769,7 @@ const InputHelper = forwardRef((props, ref) => {
|
|
|
7760
7769
|
} = INPUT_HELPER_CONFIGURATION[kind] || {};
|
|
7761
7770
|
const {
|
|
7762
7771
|
block
|
|
7763
|
-
} = useClassnames(CLASSNAME$
|
|
7772
|
+
} = useClassnames(CLASSNAME$N);
|
|
7764
7773
|
return /*#__PURE__*/jsx("p", {
|
|
7765
7774
|
ref: ref,
|
|
7766
7775
|
...forwardedProps,
|
|
@@ -7771,24 +7780,24 @@ const InputHelper = forwardRef((props, ref) => {
|
|
|
7771
7780
|
children: children
|
|
7772
7781
|
});
|
|
7773
7782
|
});
|
|
7774
|
-
InputHelper.displayName = COMPONENT_NAME$
|
|
7775
|
-
InputHelper.className = CLASSNAME$
|
|
7776
|
-
InputHelper.defaultProps = DEFAULT_PROPS$
|
|
7783
|
+
InputHelper.displayName = COMPONENT_NAME$N;
|
|
7784
|
+
InputHelper.className = CLASSNAME$N;
|
|
7785
|
+
InputHelper.defaultProps = DEFAULT_PROPS$G;
|
|
7777
7786
|
|
|
7778
7787
|
/**
|
|
7779
7788
|
* Component display name.
|
|
7780
7789
|
*/
|
|
7781
|
-
const COMPONENT_NAME$
|
|
7790
|
+
const COMPONENT_NAME$M = 'InputLabel';
|
|
7782
7791
|
|
|
7783
7792
|
/**
|
|
7784
7793
|
* Component default class name and class prefix.
|
|
7785
7794
|
*/
|
|
7786
|
-
const CLASSNAME$
|
|
7795
|
+
const CLASSNAME$M = 'lumx-input-label';
|
|
7787
7796
|
|
|
7788
7797
|
/**
|
|
7789
7798
|
* Component default props.
|
|
7790
7799
|
*/
|
|
7791
|
-
const DEFAULT_PROPS$
|
|
7800
|
+
const DEFAULT_PROPS$F = {};
|
|
7792
7801
|
|
|
7793
7802
|
/**
|
|
7794
7803
|
* InputLabel component.
|
|
@@ -7810,7 +7819,7 @@ const InputLabel = forwardRef((props, ref) => {
|
|
|
7810
7819
|
} = props;
|
|
7811
7820
|
const {
|
|
7812
7821
|
block
|
|
7813
|
-
} = useClassnames(CLASSNAME$
|
|
7822
|
+
} = useClassnames(CLASSNAME$M);
|
|
7814
7823
|
return /*#__PURE__*/jsx("label", {
|
|
7815
7824
|
ref: ref,
|
|
7816
7825
|
...forwardedProps,
|
|
@@ -7823,19 +7832,19 @@ const InputLabel = forwardRef((props, ref) => {
|
|
|
7823
7832
|
children: children
|
|
7824
7833
|
});
|
|
7825
7834
|
});
|
|
7826
|
-
InputLabel.displayName = COMPONENT_NAME$
|
|
7827
|
-
InputLabel.className = CLASSNAME$
|
|
7828
|
-
InputLabel.defaultProps = DEFAULT_PROPS$
|
|
7835
|
+
InputLabel.displayName = COMPONENT_NAME$M;
|
|
7836
|
+
InputLabel.className = CLASSNAME$M;
|
|
7837
|
+
InputLabel.defaultProps = DEFAULT_PROPS$F;
|
|
7829
7838
|
|
|
7830
7839
|
/**
|
|
7831
7840
|
* Component display name.
|
|
7832
7841
|
*/
|
|
7833
|
-
const COMPONENT_NAME$
|
|
7842
|
+
const COMPONENT_NAME$L = 'Lightbox';
|
|
7834
7843
|
|
|
7835
7844
|
/**
|
|
7836
7845
|
* Component default class name and class prefix.
|
|
7837
7846
|
*/
|
|
7838
|
-
const CLASSNAME$
|
|
7847
|
+
const CLASSNAME$L = 'lumx-lightbox';
|
|
7839
7848
|
|
|
7840
7849
|
/**
|
|
7841
7850
|
* Lightbox component.
|
|
@@ -7871,7 +7880,7 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
7871
7880
|
const {
|
|
7872
7881
|
block,
|
|
7873
7882
|
element
|
|
7874
|
-
} = useClassnames(CLASSNAME$
|
|
7883
|
+
} = useClassnames(CLASSNAME$L);
|
|
7875
7884
|
|
|
7876
7885
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
7877
7886
|
const childrenRef = useRef(null);
|
|
@@ -7964,18 +7973,18 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
7964
7973
|
})
|
|
7965
7974
|
});
|
|
7966
7975
|
});
|
|
7967
|
-
Lightbox.displayName = COMPONENT_NAME$
|
|
7968
|
-
Lightbox.className = CLASSNAME$
|
|
7976
|
+
Lightbox.displayName = COMPONENT_NAME$L;
|
|
7977
|
+
Lightbox.className = CLASSNAME$L;
|
|
7969
7978
|
|
|
7970
7979
|
/**
|
|
7971
7980
|
* Component display name.
|
|
7972
7981
|
*/
|
|
7973
|
-
const COMPONENT_NAME$
|
|
7982
|
+
const COMPONENT_NAME$K = 'Link';
|
|
7974
7983
|
|
|
7975
7984
|
/**
|
|
7976
7985
|
* Component default class name and class prefix.
|
|
7977
7986
|
*/
|
|
7978
|
-
const CLASSNAME$
|
|
7987
|
+
const CLASSNAME$K = 'lumx-link';
|
|
7979
7988
|
|
|
7980
7989
|
/**
|
|
7981
7990
|
* Link component.
|
|
@@ -8004,7 +8013,7 @@ const Link = forwardRef((props, ref) => {
|
|
|
8004
8013
|
const {
|
|
8005
8014
|
block,
|
|
8006
8015
|
element
|
|
8007
|
-
} = useClassnames(CLASSNAME$
|
|
8016
|
+
} = useClassnames(CLASSNAME$K);
|
|
8008
8017
|
return /*#__PURE__*/jsx(RawClickable, {
|
|
8009
8018
|
ref: ref,
|
|
8010
8019
|
as: linkAs || (forwardedProps.href ? 'a' : 'button'),
|
|
@@ -8029,23 +8038,23 @@ const Link = forwardRef((props, ref) => {
|
|
|
8029
8038
|
}))
|
|
8030
8039
|
});
|
|
8031
8040
|
});
|
|
8032
|
-
Link.displayName = COMPONENT_NAME$
|
|
8033
|
-
Link.className = CLASSNAME$
|
|
8041
|
+
Link.displayName = COMPONENT_NAME$K;
|
|
8042
|
+
Link.className = CLASSNAME$K;
|
|
8034
8043
|
|
|
8035
8044
|
/**
|
|
8036
8045
|
* Component display name.
|
|
8037
8046
|
*/
|
|
8038
|
-
const COMPONENT_NAME$
|
|
8047
|
+
const COMPONENT_NAME$J = 'LinkPreview';
|
|
8039
8048
|
|
|
8040
8049
|
/**
|
|
8041
8050
|
* Component default class name and class prefix.
|
|
8042
8051
|
*/
|
|
8043
|
-
const CLASSNAME$
|
|
8052
|
+
const CLASSNAME$J = 'lumx-link-preview';
|
|
8044
8053
|
|
|
8045
8054
|
/**
|
|
8046
8055
|
* Component default props.
|
|
8047
8056
|
*/
|
|
8048
|
-
const DEFAULT_PROPS$
|
|
8057
|
+
const DEFAULT_PROPS$E = {
|
|
8049
8058
|
size: Size.regular,
|
|
8050
8059
|
titleHeading: 'h2'
|
|
8051
8060
|
};
|
|
@@ -8065,11 +8074,11 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8065
8074
|
link,
|
|
8066
8075
|
linkAs,
|
|
8067
8076
|
linkProps,
|
|
8068
|
-
size = DEFAULT_PROPS$
|
|
8077
|
+
size = DEFAULT_PROPS$E.size,
|
|
8069
8078
|
theme = defaultTheme,
|
|
8070
8079
|
thumbnailProps,
|
|
8071
8080
|
title,
|
|
8072
|
-
titleHeading = DEFAULT_PROPS$
|
|
8081
|
+
titleHeading = DEFAULT_PROPS$E.titleHeading,
|
|
8073
8082
|
...forwardedProps
|
|
8074
8083
|
} = props;
|
|
8075
8084
|
// Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
|
|
@@ -8077,7 +8086,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8077
8086
|
const {
|
|
8078
8087
|
block,
|
|
8079
8088
|
element
|
|
8080
|
-
} = useClassnames(CLASSNAME$
|
|
8089
|
+
} = useClassnames(CLASSNAME$J);
|
|
8081
8090
|
return /*#__PURE__*/jsx("article", {
|
|
8082
8091
|
ref: ref,
|
|
8083
8092
|
...forwardedProps,
|
|
@@ -8138,9 +8147,9 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8138
8147
|
})
|
|
8139
8148
|
});
|
|
8140
8149
|
});
|
|
8141
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
8142
|
-
LinkPreview.className = CLASSNAME$
|
|
8143
|
-
LinkPreview.defaultProps = DEFAULT_PROPS$
|
|
8150
|
+
LinkPreview.displayName = COMPONENT_NAME$J;
|
|
8151
|
+
LinkPreview.className = CLASSNAME$J;
|
|
8152
|
+
LinkPreview.defaultProps = DEFAULT_PROPS$E;
|
|
8144
8153
|
|
|
8145
8154
|
/**
|
|
8146
8155
|
* Render link with default <a> HTML component or a custom one provided by `linkAs`.
|
|
@@ -8159,17 +8168,17 @@ const renderLink = ({
|
|
|
8159
8168
|
/**
|
|
8160
8169
|
* Component display name.
|
|
8161
8170
|
*/
|
|
8162
|
-
const COMPONENT_NAME$
|
|
8171
|
+
const COMPONENT_NAME$I = 'ListItem';
|
|
8163
8172
|
|
|
8164
8173
|
/**
|
|
8165
8174
|
* Component default class name and class prefix.
|
|
8166
8175
|
*/
|
|
8167
|
-
const CLASSNAME$
|
|
8176
|
+
const CLASSNAME$I = 'lumx-list-item';
|
|
8168
8177
|
|
|
8169
8178
|
/**
|
|
8170
8179
|
* Component default props.
|
|
8171
8180
|
*/
|
|
8172
|
-
const DEFAULT_PROPS$
|
|
8181
|
+
const DEFAULT_PROPS$D = {
|
|
8173
8182
|
size: Size.regular
|
|
8174
8183
|
};
|
|
8175
8184
|
|
|
@@ -8208,13 +8217,13 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
8208
8217
|
linkProps = {},
|
|
8209
8218
|
linkRef,
|
|
8210
8219
|
onItemSelected,
|
|
8211
|
-
size = DEFAULT_PROPS$
|
|
8220
|
+
size = DEFAULT_PROPS$D.size,
|
|
8212
8221
|
...forwardedProps
|
|
8213
8222
|
} = otherProps;
|
|
8214
8223
|
const {
|
|
8215
8224
|
block,
|
|
8216
8225
|
element
|
|
8217
|
-
} = useClassnames(CLASSNAME$
|
|
8226
|
+
} = useClassnames(CLASSNAME$I);
|
|
8218
8227
|
const role = linkAs || linkProps.href ? 'link' : 'button';
|
|
8219
8228
|
const onKeyDown = useMemo(() => {
|
|
8220
8229
|
if (onItemSelected && role === 'link') return onEnterPressed(onItemSelected);
|
|
@@ -8267,19 +8276,19 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
8267
8276
|
})
|
|
8268
8277
|
});
|
|
8269
8278
|
});
|
|
8270
|
-
ListItem.displayName = COMPONENT_NAME$
|
|
8271
|
-
ListItem.className = CLASSNAME$
|
|
8272
|
-
ListItem.defaultProps = DEFAULT_PROPS$
|
|
8279
|
+
ListItem.displayName = COMPONENT_NAME$I;
|
|
8280
|
+
ListItem.className = CLASSNAME$I;
|
|
8281
|
+
ListItem.defaultProps = DEFAULT_PROPS$D;
|
|
8273
8282
|
|
|
8274
8283
|
/**
|
|
8275
8284
|
* Component display name.
|
|
8276
8285
|
*/
|
|
8277
|
-
const COMPONENT_NAME$
|
|
8286
|
+
const COMPONENT_NAME$H = 'ListDivider';
|
|
8278
8287
|
|
|
8279
8288
|
/**
|
|
8280
8289
|
* Component default class name and class prefix.
|
|
8281
8290
|
*/
|
|
8282
|
-
const CLASSNAME$
|
|
8291
|
+
const CLASSNAME$H = 'lumx-list-divider';
|
|
8283
8292
|
|
|
8284
8293
|
/**
|
|
8285
8294
|
* ListDivider component.
|
|
@@ -8295,25 +8304,25 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
8295
8304
|
} = props;
|
|
8296
8305
|
const {
|
|
8297
8306
|
block
|
|
8298
|
-
} = useClassnames(CLASSNAME$
|
|
8307
|
+
} = useClassnames(CLASSNAME$H);
|
|
8299
8308
|
return /*#__PURE__*/jsx("li", {
|
|
8300
8309
|
ref: ref,
|
|
8301
8310
|
...forwardedProps,
|
|
8302
8311
|
className: block([className])
|
|
8303
8312
|
});
|
|
8304
8313
|
});
|
|
8305
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
8306
|
-
ListDivider.className = CLASSNAME$
|
|
8314
|
+
ListDivider.displayName = COMPONENT_NAME$H;
|
|
8315
|
+
ListDivider.className = CLASSNAME$H;
|
|
8307
8316
|
|
|
8308
8317
|
/**
|
|
8309
8318
|
* Component display name.
|
|
8310
8319
|
*/
|
|
8311
|
-
const COMPONENT_NAME$
|
|
8320
|
+
const COMPONENT_NAME$G = 'ListSubheader';
|
|
8312
8321
|
|
|
8313
8322
|
/**
|
|
8314
8323
|
* Component default class name and class prefix.
|
|
8315
8324
|
*/
|
|
8316
|
-
const CLASSNAME$
|
|
8325
|
+
const CLASSNAME$G = 'lumx-list-subheader';
|
|
8317
8326
|
|
|
8318
8327
|
/**
|
|
8319
8328
|
* ListSubheader component.
|
|
@@ -8330,7 +8339,7 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
8330
8339
|
} = props;
|
|
8331
8340
|
const {
|
|
8332
8341
|
block
|
|
8333
|
-
} = useClassnames(CLASSNAME$
|
|
8342
|
+
} = useClassnames(CLASSNAME$G);
|
|
8334
8343
|
return /*#__PURE__*/jsx("li", {
|
|
8335
8344
|
ref: ref,
|
|
8336
8345
|
...forwardedProps,
|
|
@@ -8338,18 +8347,18 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
8338
8347
|
children: children
|
|
8339
8348
|
});
|
|
8340
8349
|
});
|
|
8341
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
8342
|
-
ListSubheader.className = CLASSNAME$
|
|
8350
|
+
ListSubheader.displayName = COMPONENT_NAME$G;
|
|
8351
|
+
ListSubheader.className = CLASSNAME$G;
|
|
8343
8352
|
|
|
8344
8353
|
/**
|
|
8345
8354
|
* Component display name.
|
|
8346
8355
|
*/
|
|
8347
|
-
const COMPONENT_NAME$
|
|
8356
|
+
const COMPONENT_NAME$F = 'Message';
|
|
8348
8357
|
|
|
8349
8358
|
/**
|
|
8350
8359
|
* Component default class name and class prefix.
|
|
8351
8360
|
*/
|
|
8352
|
-
const CLASSNAME$
|
|
8361
|
+
const CLASSNAME$F = 'lumx-message';
|
|
8353
8362
|
|
|
8354
8363
|
/**
|
|
8355
8364
|
* Associative map from message kind to color and icon.
|
|
@@ -8384,7 +8393,7 @@ const Message = forwardRef((props, ref) => {
|
|
|
8384
8393
|
const {
|
|
8385
8394
|
block,
|
|
8386
8395
|
element
|
|
8387
|
-
} = useClassnames(CLASSNAME$
|
|
8396
|
+
} = useClassnames(CLASSNAME$F);
|
|
8388
8397
|
const {
|
|
8389
8398
|
children,
|
|
8390
8399
|
className,
|
|
@@ -8427,23 +8436,23 @@ const Message = forwardRef((props, ref) => {
|
|
|
8427
8436
|
})]
|
|
8428
8437
|
});
|
|
8429
8438
|
});
|
|
8430
|
-
Message.displayName = COMPONENT_NAME$
|
|
8431
|
-
Message.className = CLASSNAME$
|
|
8439
|
+
Message.displayName = COMPONENT_NAME$F;
|
|
8440
|
+
Message.className = CLASSNAME$F;
|
|
8432
8441
|
|
|
8433
8442
|
/**
|
|
8434
8443
|
* Component display name.
|
|
8435
8444
|
*/
|
|
8436
|
-
const COMPONENT_NAME$
|
|
8445
|
+
const COMPONENT_NAME$E = 'Mosaic';
|
|
8437
8446
|
|
|
8438
8447
|
/**
|
|
8439
8448
|
* Component default class name and class prefix.
|
|
8440
8449
|
*/
|
|
8441
|
-
const CLASSNAME$
|
|
8450
|
+
const CLASSNAME$E = 'lumx-mosaic';
|
|
8442
8451
|
|
|
8443
8452
|
/**
|
|
8444
8453
|
* Component default props.
|
|
8445
8454
|
*/
|
|
8446
|
-
const DEFAULT_PROPS$
|
|
8455
|
+
const DEFAULT_PROPS$C = {};
|
|
8447
8456
|
|
|
8448
8457
|
/**
|
|
8449
8458
|
* Mosaic component.
|
|
@@ -8464,7 +8473,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
8464
8473
|
const {
|
|
8465
8474
|
block,
|
|
8466
8475
|
element
|
|
8467
|
-
} = useClassnames(CLASSNAME$
|
|
8476
|
+
} = useClassnames(CLASSNAME$E);
|
|
8468
8477
|
const handleImageClick = useMemo(() => {
|
|
8469
8478
|
if (!onImageClick) return undefined;
|
|
8470
8479
|
return (index, onClick) => event => {
|
|
@@ -8512,75 +8521,23 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
8512
8521
|
})
|
|
8513
8522
|
});
|
|
8514
8523
|
});
|
|
8515
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
8516
|
-
Mosaic.className = CLASSNAME$
|
|
8517
|
-
Mosaic.defaultProps = DEFAULT_PROPS$
|
|
8524
|
+
Mosaic.displayName = COMPONENT_NAME$E;
|
|
8525
|
+
Mosaic.className = CLASSNAME$E;
|
|
8526
|
+
Mosaic.defaultProps = DEFAULT_PROPS$C;
|
|
8527
|
+
|
|
8528
|
+
const NavigationContext = /*#__PURE__*/createContext({
|
|
8529
|
+
orientation: Orientation.vertical
|
|
8530
|
+
});
|
|
8518
8531
|
|
|
8519
8532
|
/**
|
|
8520
8533
|
* Component display name.
|
|
8521
8534
|
*/
|
|
8522
|
-
const
|
|
8535
|
+
const ITEM_COMPONENT_NAME = 'NavigationItem';
|
|
8523
8536
|
|
|
8524
8537
|
/**
|
|
8525
8538
|
* Component default class name and class prefix.
|
|
8526
8539
|
*/
|
|
8527
|
-
const
|
|
8528
|
-
const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
8529
|
-
const {
|
|
8530
|
-
className,
|
|
8531
|
-
icon,
|
|
8532
|
-
label,
|
|
8533
|
-
isCurrentPage,
|
|
8534
|
-
as: Element = 'a',
|
|
8535
|
-
...forwardedProps
|
|
8536
|
-
} = props;
|
|
8537
|
-
const theme = useTheme();
|
|
8538
|
-
const {
|
|
8539
|
-
tooltipLabel,
|
|
8540
|
-
labelRef
|
|
8541
|
-
} = useOverflowTooltipLabel(label);
|
|
8542
|
-
const {
|
|
8543
|
-
block,
|
|
8544
|
-
element
|
|
8545
|
-
} = useClassnames(CLASSNAME$F);
|
|
8546
|
-
return /*#__PURE__*/jsx("li", {
|
|
8547
|
-
className: block({
|
|
8548
|
-
[`theme-${theme}`]: Boolean(theme)
|
|
8549
|
-
}, className),
|
|
8550
|
-
children: /*#__PURE__*/jsx(Tooltip, {
|
|
8551
|
-
label: tooltipLabel,
|
|
8552
|
-
placement: Placement.TOP,
|
|
8553
|
-
children: /*#__PURE__*/jsxs(RawClickable, {
|
|
8554
|
-
as: Element,
|
|
8555
|
-
className: element('link', {
|
|
8556
|
-
'is-selected': isCurrentPage
|
|
8557
|
-
}),
|
|
8558
|
-
ref: ref,
|
|
8559
|
-
"aria-current": isCurrentPage ? 'page' : undefined,
|
|
8560
|
-
...forwardedProps,
|
|
8561
|
-
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
8562
|
-
className: element('icon'),
|
|
8563
|
-
icon: icon,
|
|
8564
|
-
size: Size.xs,
|
|
8565
|
-
theme: theme
|
|
8566
|
-
}) : null, /*#__PURE__*/jsx(Text, {
|
|
8567
|
-
as: "span",
|
|
8568
|
-
truncate: true,
|
|
8569
|
-
className: element('label'),
|
|
8570
|
-
ref: labelRef,
|
|
8571
|
-
children: label
|
|
8572
|
-
})]
|
|
8573
|
-
})
|
|
8574
|
-
})
|
|
8575
|
-
});
|
|
8576
|
-
}), {
|
|
8577
|
-
displayName: COMPONENT_NAME$E,
|
|
8578
|
-
className: CLASSNAME$F
|
|
8579
|
-
});
|
|
8580
|
-
|
|
8581
|
-
const NavigationContext = /*#__PURE__*/createContext({
|
|
8582
|
-
orientation: Orientation.vertical
|
|
8583
|
-
});
|
|
8540
|
+
const ITEM_CLASSNAME = 'lumx-navigation-item';
|
|
8584
8541
|
|
|
8585
8542
|
/**
|
|
8586
8543
|
* Component display name.
|
|
@@ -8590,7 +8547,7 @@ const COMPONENT_NAME$D = 'NavigationSection';
|
|
|
8590
8547
|
/**
|
|
8591
8548
|
* Component default class name and class prefix.
|
|
8592
8549
|
*/
|
|
8593
|
-
const CLASSNAME$
|
|
8550
|
+
const CLASSNAME$D = 'lumx-navigation-section';
|
|
8594
8551
|
const NavigationSection = forwardRef((props, ref) => {
|
|
8595
8552
|
const {
|
|
8596
8553
|
children,
|
|
@@ -8607,16 +8564,13 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
8607
8564
|
} = useContext(NavigationContext) || {};
|
|
8608
8565
|
const theme = useTheme();
|
|
8609
8566
|
const isDropdown = orientation === Orientation.horizontal;
|
|
8610
|
-
const
|
|
8611
|
-
block: itemBlock,
|
|
8612
|
-
element: itemElement
|
|
8613
|
-
} = useClassnames(CLASSNAME$F);
|
|
8567
|
+
const item = useClassnames(ITEM_CLASSNAME);
|
|
8614
8568
|
const {
|
|
8615
8569
|
block,
|
|
8616
8570
|
element
|
|
8617
|
-
} = useClassnames(CLASSNAME$
|
|
8571
|
+
} = useClassnames(CLASSNAME$D);
|
|
8618
8572
|
return /*#__PURE__*/jsxs("li", {
|
|
8619
|
-
className: block([className,
|
|
8573
|
+
className: block([className, item.block({
|
|
8620
8574
|
[`theme-${theme}`]: Boolean(theme)
|
|
8621
8575
|
})]),
|
|
8622
8576
|
ref: ref,
|
|
@@ -8625,24 +8579,24 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
8625
8579
|
...forwardedProps,
|
|
8626
8580
|
"aria-controls": sectionId,
|
|
8627
8581
|
"aria-expanded": isOpen,
|
|
8628
|
-
className:
|
|
8582
|
+
className: item.element('link'),
|
|
8629
8583
|
ref: buttonRef,
|
|
8630
8584
|
onClick: event => {
|
|
8631
8585
|
setIsOpen(!isOpen);
|
|
8632
8586
|
event.stopPropagation();
|
|
8633
8587
|
},
|
|
8634
8588
|
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
8635
|
-
className:
|
|
8589
|
+
className: item.element('icon'),
|
|
8636
8590
|
icon: icon,
|
|
8637
8591
|
size: Size.xs
|
|
8638
8592
|
}) : null, /*#__PURE__*/jsx(Text, {
|
|
8639
8593
|
as: "span",
|
|
8640
8594
|
truncate: true,
|
|
8641
|
-
className:
|
|
8595
|
+
className: item.element('label'),
|
|
8642
8596
|
ref: ref,
|
|
8643
8597
|
children: label
|
|
8644
8598
|
}), /*#__PURE__*/jsx(Icon, {
|
|
8645
|
-
className: element('chevron', [
|
|
8599
|
+
className: element('chevron', [item.element('icon')]),
|
|
8646
8600
|
icon: isOpen ? mdiChevronUp : mdiChevronDown
|
|
8647
8601
|
})]
|
|
8648
8602
|
}), isOpen && (isDropdown ? /*#__PURE__*/jsx(Popover, {
|
|
@@ -8678,7 +8632,60 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
8678
8632
|
});
|
|
8679
8633
|
});
|
|
8680
8634
|
NavigationSection.displayName = COMPONENT_NAME$D;
|
|
8681
|
-
NavigationSection.className = CLASSNAME$
|
|
8635
|
+
NavigationSection.className = CLASSNAME$D;
|
|
8636
|
+
|
|
8637
|
+
const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
8638
|
+
const {
|
|
8639
|
+
className,
|
|
8640
|
+
icon,
|
|
8641
|
+
label,
|
|
8642
|
+
isCurrentPage,
|
|
8643
|
+
as: Element = 'a',
|
|
8644
|
+
...forwardedProps
|
|
8645
|
+
} = props;
|
|
8646
|
+
const theme = useTheme();
|
|
8647
|
+
const {
|
|
8648
|
+
tooltipLabel,
|
|
8649
|
+
labelRef
|
|
8650
|
+
} = useOverflowTooltipLabel(label);
|
|
8651
|
+
const {
|
|
8652
|
+
block,
|
|
8653
|
+
element
|
|
8654
|
+
} = useClassnames(ITEM_CLASSNAME);
|
|
8655
|
+
return /*#__PURE__*/jsx("li", {
|
|
8656
|
+
className: block({
|
|
8657
|
+
[`theme-${theme}`]: Boolean(theme)
|
|
8658
|
+
}, className),
|
|
8659
|
+
children: /*#__PURE__*/jsx(Tooltip, {
|
|
8660
|
+
label: tooltipLabel,
|
|
8661
|
+
placement: Placement.TOP,
|
|
8662
|
+
children: /*#__PURE__*/jsxs(RawClickable, {
|
|
8663
|
+
as: Element,
|
|
8664
|
+
className: element('link', {
|
|
8665
|
+
'is-selected': isCurrentPage
|
|
8666
|
+
}),
|
|
8667
|
+
ref: ref,
|
|
8668
|
+
"aria-current": isCurrentPage ? 'page' : undefined,
|
|
8669
|
+
...forwardedProps,
|
|
8670
|
+
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
8671
|
+
className: element('icon'),
|
|
8672
|
+
icon: icon,
|
|
8673
|
+
size: Size.xs,
|
|
8674
|
+
theme: theme
|
|
8675
|
+
}) : null, /*#__PURE__*/jsx(Text, {
|
|
8676
|
+
as: "span",
|
|
8677
|
+
truncate: true,
|
|
8678
|
+
className: element('label'),
|
|
8679
|
+
ref: labelRef,
|
|
8680
|
+
children: label
|
|
8681
|
+
})]
|
|
8682
|
+
})
|
|
8683
|
+
})
|
|
8684
|
+
});
|
|
8685
|
+
}), {
|
|
8686
|
+
displayName: ITEM_COMPONENT_NAME,
|
|
8687
|
+
className: ITEM_CLASSNAME
|
|
8688
|
+
});
|
|
8682
8689
|
|
|
8683
8690
|
/**
|
|
8684
8691
|
* Component display name.
|
|
@@ -8688,12 +8695,12 @@ const COMPONENT_NAME$C = 'Navigation';
|
|
|
8688
8695
|
/**
|
|
8689
8696
|
* Component default class name and class prefix.
|
|
8690
8697
|
*/
|
|
8691
|
-
const CLASSNAME$
|
|
8698
|
+
const CLASSNAME$C = 'lumx-navigation';
|
|
8692
8699
|
|
|
8693
8700
|
/**
|
|
8694
8701
|
* Component default props
|
|
8695
8702
|
*/
|
|
8696
|
-
const DEFAULT_PROPS$
|
|
8703
|
+
const DEFAULT_PROPS$B = {
|
|
8697
8704
|
orientation: Orientation.vertical
|
|
8698
8705
|
};
|
|
8699
8706
|
const Navigation = forwardRef((props, ref) => {
|
|
@@ -8702,13 +8709,13 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
8702
8709
|
children,
|
|
8703
8710
|
className,
|
|
8704
8711
|
theme = defaultTheme,
|
|
8705
|
-
orientation = DEFAULT_PROPS$
|
|
8712
|
+
orientation = DEFAULT_PROPS$B.orientation,
|
|
8706
8713
|
...forwardedProps
|
|
8707
8714
|
} = props;
|
|
8708
8715
|
const {
|
|
8709
8716
|
block,
|
|
8710
8717
|
element
|
|
8711
|
-
} = useClassnames(CLASSNAME$
|
|
8718
|
+
} = useClassnames(CLASSNAME$C);
|
|
8712
8719
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
8713
8720
|
value: theme,
|
|
8714
8721
|
children: /*#__PURE__*/jsx("nav", {
|
|
@@ -8731,8 +8738,8 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
8731
8738
|
});
|
|
8732
8739
|
});
|
|
8733
8740
|
Navigation.displayName = COMPONENT_NAME$C;
|
|
8734
|
-
Navigation.className = CLASSNAME$
|
|
8735
|
-
Navigation.defaultProps = DEFAULT_PROPS$
|
|
8741
|
+
Navigation.className = CLASSNAME$C;
|
|
8742
|
+
Navigation.defaultProps = DEFAULT_PROPS$B;
|
|
8736
8743
|
|
|
8737
8744
|
// Sub components
|
|
8738
8745
|
Navigation.Section = NavigationSection;
|
|
@@ -8768,12 +8775,12 @@ const COMPONENT_NAME$B = 'Notification';
|
|
|
8768
8775
|
/**
|
|
8769
8776
|
* Component default class name and class prefix.
|
|
8770
8777
|
*/
|
|
8771
|
-
const CLASSNAME$
|
|
8778
|
+
const CLASSNAME$B = 'lumx-notification';
|
|
8772
8779
|
|
|
8773
8780
|
/**
|
|
8774
8781
|
* Component default props.
|
|
8775
8782
|
*/
|
|
8776
|
-
const DEFAULT_PROPS$
|
|
8783
|
+
const DEFAULT_PROPS$A = {
|
|
8777
8784
|
zIndex: 9999,
|
|
8778
8785
|
usePortal: true
|
|
8779
8786
|
};
|
|
@@ -8797,8 +8804,8 @@ const Notification = forwardRef((props, ref) => {
|
|
|
8797
8804
|
onClick,
|
|
8798
8805
|
theme = defaultTheme,
|
|
8799
8806
|
type,
|
|
8800
|
-
zIndex = DEFAULT_PROPS$
|
|
8801
|
-
usePortal = DEFAULT_PROPS$
|
|
8807
|
+
zIndex = DEFAULT_PROPS$A.zIndex,
|
|
8808
|
+
usePortal = DEFAULT_PROPS$A.usePortal,
|
|
8802
8809
|
style,
|
|
8803
8810
|
...forwardedProps
|
|
8804
8811
|
} = props;
|
|
@@ -8816,7 +8823,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
8816
8823
|
const {
|
|
8817
8824
|
block,
|
|
8818
8825
|
element
|
|
8819
|
-
} = useClassnames(CLASSNAME$
|
|
8826
|
+
} = useClassnames(CLASSNAME$B);
|
|
8820
8827
|
const handleCallback = evt => {
|
|
8821
8828
|
if (isFunction(onActionClick)) {
|
|
8822
8829
|
onActionClick();
|
|
@@ -8866,8 +8873,8 @@ const Notification = forwardRef((props, ref) => {
|
|
|
8866
8873
|
});
|
|
8867
8874
|
});
|
|
8868
8875
|
Notification.displayName = COMPONENT_NAME$B;
|
|
8869
|
-
Notification.className = CLASSNAME$
|
|
8870
|
-
Notification.defaultProps = DEFAULT_PROPS$
|
|
8876
|
+
Notification.className = CLASSNAME$B;
|
|
8877
|
+
Notification.defaultProps = DEFAULT_PROPS$A;
|
|
8871
8878
|
|
|
8872
8879
|
/**
|
|
8873
8880
|
* Component display name.
|
|
@@ -8877,12 +8884,12 @@ const COMPONENT_NAME$A = 'PopoverDialog';
|
|
|
8877
8884
|
/**
|
|
8878
8885
|
* Component default class name and class prefix.
|
|
8879
8886
|
*/
|
|
8880
|
-
const CLASSNAME$
|
|
8887
|
+
const CLASSNAME$A = 'lumx-popover-dialog';
|
|
8881
8888
|
|
|
8882
8889
|
/**
|
|
8883
8890
|
* Component default props.
|
|
8884
8891
|
*/
|
|
8885
|
-
const DEFAULT_PROPS$
|
|
8892
|
+
const DEFAULT_PROPS$z = {};
|
|
8886
8893
|
|
|
8887
8894
|
/**
|
|
8888
8895
|
* PopoverDialog component.
|
|
@@ -8903,7 +8910,7 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
8903
8910
|
} = props;
|
|
8904
8911
|
const {
|
|
8905
8912
|
block
|
|
8906
|
-
} = useClassnames(CLASSNAME$
|
|
8913
|
+
} = useClassnames(CLASSNAME$A);
|
|
8907
8914
|
return /*#__PURE__*/jsx(Popover, {
|
|
8908
8915
|
...forwardedProps,
|
|
8909
8916
|
ref: ref,
|
|
@@ -8927,8 +8934,8 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
8927
8934
|
});
|
|
8928
8935
|
});
|
|
8929
8936
|
PopoverDialog.displayName = COMPONENT_NAME$A;
|
|
8930
|
-
PopoverDialog.className = CLASSNAME$
|
|
8931
|
-
PopoverDialog.defaultProps = DEFAULT_PROPS$
|
|
8937
|
+
PopoverDialog.className = CLASSNAME$A;
|
|
8938
|
+
PopoverDialog.defaultProps = DEFAULT_PROPS$z;
|
|
8932
8939
|
|
|
8933
8940
|
/**
|
|
8934
8941
|
* Component display name.
|
|
@@ -8938,12 +8945,12 @@ const COMPONENT_NAME$z = 'PostBlock';
|
|
|
8938
8945
|
/**
|
|
8939
8946
|
* Component default class name and class prefix.
|
|
8940
8947
|
*/
|
|
8941
|
-
const CLASSNAME$
|
|
8948
|
+
const CLASSNAME$z = 'lumx-post-block';
|
|
8942
8949
|
|
|
8943
8950
|
/**
|
|
8944
8951
|
* Component default props.
|
|
8945
8952
|
*/
|
|
8946
|
-
const DEFAULT_PROPS$
|
|
8953
|
+
const DEFAULT_PROPS$y = {
|
|
8947
8954
|
orientation: Orientation.horizontal
|
|
8948
8955
|
};
|
|
8949
8956
|
|
|
@@ -8963,7 +8970,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
8963
8970
|
className,
|
|
8964
8971
|
meta,
|
|
8965
8972
|
onClick,
|
|
8966
|
-
orientation = DEFAULT_PROPS$
|
|
8973
|
+
orientation = DEFAULT_PROPS$y.orientation,
|
|
8967
8974
|
tags,
|
|
8968
8975
|
text,
|
|
8969
8976
|
theme = defaultTheme,
|
|
@@ -8974,7 +8981,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
8974
8981
|
const {
|
|
8975
8982
|
block,
|
|
8976
8983
|
element
|
|
8977
|
-
} = useClassnames(CLASSNAME$
|
|
8984
|
+
} = useClassnames(CLASSNAME$z);
|
|
8978
8985
|
return /*#__PURE__*/jsxs("div", {
|
|
8979
8986
|
ref: ref,
|
|
8980
8987
|
className: block({
|
|
@@ -9028,8 +9035,8 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
9028
9035
|
});
|
|
9029
9036
|
});
|
|
9030
9037
|
PostBlock.displayName = COMPONENT_NAME$z;
|
|
9031
|
-
PostBlock.className = CLASSNAME$
|
|
9032
|
-
PostBlock.defaultProps = DEFAULT_PROPS$
|
|
9038
|
+
PostBlock.className = CLASSNAME$z;
|
|
9039
|
+
PostBlock.defaultProps = DEFAULT_PROPS$y;
|
|
9033
9040
|
|
|
9034
9041
|
/**
|
|
9035
9042
|
* Component display name.
|
|
@@ -9039,12 +9046,12 @@ const COMPONENT_NAME$y = 'ProgressLinear';
|
|
|
9039
9046
|
/**
|
|
9040
9047
|
* Component default class name and class prefix.
|
|
9041
9048
|
*/
|
|
9042
|
-
const CLASSNAME$
|
|
9049
|
+
const CLASSNAME$y = 'lumx-progress-linear';
|
|
9043
9050
|
|
|
9044
9051
|
/**
|
|
9045
9052
|
* Component default props.
|
|
9046
9053
|
*/
|
|
9047
|
-
const DEFAULT_PROPS$
|
|
9054
|
+
const DEFAULT_PROPS$x = {};
|
|
9048
9055
|
|
|
9049
9056
|
/**
|
|
9050
9057
|
* ProgressLinear component.
|
|
@@ -9063,7 +9070,7 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9063
9070
|
const {
|
|
9064
9071
|
block,
|
|
9065
9072
|
element
|
|
9066
|
-
} = useClassnames(CLASSNAME$
|
|
9073
|
+
} = useClassnames(CLASSNAME$y);
|
|
9067
9074
|
return /*#__PURE__*/jsxs("div", {
|
|
9068
9075
|
ref: ref,
|
|
9069
9076
|
...forwardedProps,
|
|
@@ -9078,8 +9085,8 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9078
9085
|
});
|
|
9079
9086
|
});
|
|
9080
9087
|
ProgressLinear.displayName = COMPONENT_NAME$y;
|
|
9081
|
-
ProgressLinear.className = CLASSNAME$
|
|
9082
|
-
ProgressLinear.defaultProps = DEFAULT_PROPS$
|
|
9088
|
+
ProgressLinear.className = CLASSNAME$y;
|
|
9089
|
+
ProgressLinear.defaultProps = DEFAULT_PROPS$x;
|
|
9083
9090
|
|
|
9084
9091
|
/**
|
|
9085
9092
|
* Component display name.
|
|
@@ -9089,12 +9096,12 @@ const COMPONENT_NAME$x = 'ProgressCircular';
|
|
|
9089
9096
|
/**
|
|
9090
9097
|
* Component default class name and class prefix.
|
|
9091
9098
|
*/
|
|
9092
|
-
const CLASSNAME$
|
|
9099
|
+
const CLASSNAME$x = 'lumx-progress-circular';
|
|
9093
9100
|
|
|
9094
9101
|
/**
|
|
9095
9102
|
* Component default props.
|
|
9096
9103
|
*/
|
|
9097
|
-
const DEFAULT_PROPS$
|
|
9104
|
+
const DEFAULT_PROPS$w = {
|
|
9098
9105
|
size: Size.m,
|
|
9099
9106
|
display: 'block'
|
|
9100
9107
|
};
|
|
@@ -9111,15 +9118,15 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9111
9118
|
const {
|
|
9112
9119
|
className,
|
|
9113
9120
|
theme = defaultTheme,
|
|
9114
|
-
size = DEFAULT_PROPS$
|
|
9115
|
-
display = DEFAULT_PROPS$
|
|
9121
|
+
size = DEFAULT_PROPS$w.size,
|
|
9122
|
+
display = DEFAULT_PROPS$w.display,
|
|
9116
9123
|
...forwardedProps
|
|
9117
9124
|
} = props;
|
|
9118
9125
|
const Element = display === 'block' ? 'div' : 'span';
|
|
9119
9126
|
const {
|
|
9120
9127
|
block,
|
|
9121
9128
|
element
|
|
9122
|
-
} = useClassnames(CLASSNAME$
|
|
9129
|
+
} = useClassnames(CLASSNAME$x);
|
|
9123
9130
|
return /*#__PURE__*/jsxs(Element, {
|
|
9124
9131
|
ref: ref,
|
|
9125
9132
|
...forwardedProps,
|
|
@@ -9147,8 +9154,8 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9147
9154
|
});
|
|
9148
9155
|
});
|
|
9149
9156
|
ProgressCircular.displayName = COMPONENT_NAME$x;
|
|
9150
|
-
ProgressCircular.className = CLASSNAME$
|
|
9151
|
-
ProgressCircular.defaultProps = DEFAULT_PROPS$
|
|
9157
|
+
ProgressCircular.className = CLASSNAME$x;
|
|
9158
|
+
ProgressCircular.defaultProps = DEFAULT_PROPS$w;
|
|
9152
9159
|
|
|
9153
9160
|
const ProgressVariant = {
|
|
9154
9161
|
linear: 'linear',
|
|
@@ -9167,12 +9174,12 @@ const COMPONENT_NAME$w = 'Progress';
|
|
|
9167
9174
|
/**
|
|
9168
9175
|
* Component default class name and class prefix.
|
|
9169
9176
|
*/
|
|
9170
|
-
const CLASSNAME$
|
|
9177
|
+
const CLASSNAME$w = 'lumx-progress';
|
|
9171
9178
|
|
|
9172
9179
|
/**
|
|
9173
9180
|
* Component default props.
|
|
9174
9181
|
*/
|
|
9175
|
-
const DEFAULT_PROPS$
|
|
9182
|
+
const DEFAULT_PROPS$v = {
|
|
9176
9183
|
variant: ProgressVariant.circular
|
|
9177
9184
|
};
|
|
9178
9185
|
|
|
@@ -9189,12 +9196,12 @@ const Progress = forwardRef((props, ref) => {
|
|
|
9189
9196
|
const {
|
|
9190
9197
|
className,
|
|
9191
9198
|
theme = defaultTheme,
|
|
9192
|
-
variant = DEFAULT_PROPS$
|
|
9199
|
+
variant = DEFAULT_PROPS$v.variant,
|
|
9193
9200
|
...forwardedProps
|
|
9194
9201
|
} = props;
|
|
9195
9202
|
const {
|
|
9196
9203
|
block
|
|
9197
|
-
} = useClassnames(CLASSNAME$
|
|
9204
|
+
} = useClassnames(CLASSNAME$w);
|
|
9198
9205
|
return /*#__PURE__*/jsxs("div", {
|
|
9199
9206
|
ref: ref,
|
|
9200
9207
|
...forwardedProps,
|
|
@@ -9210,8 +9217,8 @@ const Progress = forwardRef((props, ref) => {
|
|
|
9210
9217
|
});
|
|
9211
9218
|
});
|
|
9212
9219
|
Progress.displayName = COMPONENT_NAME$w;
|
|
9213
|
-
Progress.className = CLASSNAME$
|
|
9214
|
-
Progress.defaultProps = DEFAULT_PROPS$
|
|
9220
|
+
Progress.className = CLASSNAME$w;
|
|
9221
|
+
Progress.defaultProps = DEFAULT_PROPS$v;
|
|
9215
9222
|
|
|
9216
9223
|
const INIT_STATE = {
|
|
9217
9224
|
isLazy: true,
|
|
@@ -9338,7 +9345,7 @@ const useTabProviderContextState = () => {
|
|
|
9338
9345
|
return context?.[0];
|
|
9339
9346
|
};
|
|
9340
9347
|
|
|
9341
|
-
const DEFAULT_PROPS$
|
|
9348
|
+
const DEFAULT_PROPS$u = {
|
|
9342
9349
|
isLazy: INIT_STATE.isLazy,
|
|
9343
9350
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
9344
9351
|
};
|
|
@@ -9367,7 +9374,7 @@ const ProgressTrackerProvider = props => {
|
|
|
9367
9374
|
dispatch({
|
|
9368
9375
|
type: 'update',
|
|
9369
9376
|
payload: {
|
|
9370
|
-
...DEFAULT_PROPS$
|
|
9377
|
+
...DEFAULT_PROPS$u,
|
|
9371
9378
|
...propState,
|
|
9372
9379
|
activeTabIndex: propState.activeStepIndex || INIT_STATE.activeTabIndex
|
|
9373
9380
|
}
|
|
@@ -9390,7 +9397,7 @@ const ProgressTrackerProvider = props => {
|
|
|
9390
9397
|
children: children
|
|
9391
9398
|
});
|
|
9392
9399
|
};
|
|
9393
|
-
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$
|
|
9400
|
+
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$u;
|
|
9394
9401
|
|
|
9395
9402
|
const useRovingTabIndex = ({
|
|
9396
9403
|
parentRef,
|
|
@@ -9473,12 +9480,12 @@ const COMPONENT_NAME$v = 'ProgressTracker';
|
|
|
9473
9480
|
/**
|
|
9474
9481
|
* Component default class name and class prefix.
|
|
9475
9482
|
*/
|
|
9476
|
-
const CLASSNAME$
|
|
9483
|
+
const CLASSNAME$v = 'lumx-progress-tracker';
|
|
9477
9484
|
|
|
9478
9485
|
/**
|
|
9479
9486
|
* Component default props.
|
|
9480
9487
|
*/
|
|
9481
|
-
const DEFAULT_PROPS$
|
|
9488
|
+
const DEFAULT_PROPS$t = {};
|
|
9482
9489
|
|
|
9483
9490
|
/**
|
|
9484
9491
|
* ProgressTracker component.
|
|
@@ -9499,7 +9506,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
9499
9506
|
const {
|
|
9500
9507
|
block,
|
|
9501
9508
|
element
|
|
9502
|
-
} = useClassnames(CLASSNAME$
|
|
9509
|
+
} = useClassnames(CLASSNAME$v);
|
|
9503
9510
|
const stepListRef = React__default.useRef(null);
|
|
9504
9511
|
useRovingTabIndex({
|
|
9505
9512
|
parentRef: stepListRef,
|
|
@@ -9537,8 +9544,8 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
9537
9544
|
});
|
|
9538
9545
|
});
|
|
9539
9546
|
ProgressTracker.displayName = COMPONENT_NAME$v;
|
|
9540
|
-
ProgressTracker.className = CLASSNAME$
|
|
9541
|
-
ProgressTracker.defaultProps = DEFAULT_PROPS$
|
|
9547
|
+
ProgressTracker.className = CLASSNAME$v;
|
|
9548
|
+
ProgressTracker.defaultProps = DEFAULT_PROPS$t;
|
|
9542
9549
|
|
|
9543
9550
|
/**
|
|
9544
9551
|
* Component display name.
|
|
@@ -9548,12 +9555,12 @@ const COMPONENT_NAME$u = 'ProgressTrackerStep';
|
|
|
9548
9555
|
/**
|
|
9549
9556
|
* Component default class name and class prefix.
|
|
9550
9557
|
*/
|
|
9551
|
-
const CLASSNAME$
|
|
9558
|
+
const CLASSNAME$u = 'lumx-progress-tracker-step';
|
|
9552
9559
|
|
|
9553
9560
|
/**
|
|
9554
9561
|
* Component default props.
|
|
9555
9562
|
*/
|
|
9556
|
-
const DEFAULT_PROPS$
|
|
9563
|
+
const DEFAULT_PROPS$s = {};
|
|
9557
9564
|
|
|
9558
9565
|
/**
|
|
9559
9566
|
* ProgressTrackerStep component.
|
|
@@ -9587,7 +9594,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
9587
9594
|
const {
|
|
9588
9595
|
block,
|
|
9589
9596
|
element
|
|
9590
|
-
} = useClassnames(CLASSNAME$
|
|
9597
|
+
} = useClassnames(CLASSNAME$u);
|
|
9591
9598
|
const changeToCurrentTab = useCallback(() => {
|
|
9592
9599
|
if (isAnyDisabled) {
|
|
9593
9600
|
return;
|
|
@@ -9651,8 +9658,8 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
9651
9658
|
});
|
|
9652
9659
|
});
|
|
9653
9660
|
ProgressTrackerStep.displayName = COMPONENT_NAME$u;
|
|
9654
|
-
ProgressTrackerStep.className = CLASSNAME$
|
|
9655
|
-
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$
|
|
9661
|
+
ProgressTrackerStep.className = CLASSNAME$u;
|
|
9662
|
+
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$s;
|
|
9656
9663
|
|
|
9657
9664
|
/**
|
|
9658
9665
|
* Component display name.
|
|
@@ -9662,12 +9669,12 @@ const COMPONENT_NAME$t = 'ProgressTrackerStepPanel';
|
|
|
9662
9669
|
/**
|
|
9663
9670
|
* Component default class name and class prefix.
|
|
9664
9671
|
*/
|
|
9665
|
-
const CLASSNAME$
|
|
9672
|
+
const CLASSNAME$t = `lumx-step-panel`;
|
|
9666
9673
|
|
|
9667
9674
|
/**
|
|
9668
9675
|
* Component default props.
|
|
9669
9676
|
*/
|
|
9670
|
-
const DEFAULT_PROPS$
|
|
9677
|
+
const DEFAULT_PROPS$r = {};
|
|
9671
9678
|
|
|
9672
9679
|
/**
|
|
9673
9680
|
* ProgressTrackerStepPanel component.
|
|
@@ -9690,7 +9697,7 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
9690
9697
|
const isActive = propIsActive || state?.isActive;
|
|
9691
9698
|
const {
|
|
9692
9699
|
block
|
|
9693
|
-
} = useClassnames(CLASSNAME$
|
|
9700
|
+
} = useClassnames(CLASSNAME$t);
|
|
9694
9701
|
return /*#__PURE__*/jsx("div", {
|
|
9695
9702
|
ref: ref,
|
|
9696
9703
|
...forwardedProps,
|
|
@@ -9705,8 +9712,8 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
9705
9712
|
});
|
|
9706
9713
|
});
|
|
9707
9714
|
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$t;
|
|
9708
|
-
ProgressTrackerStepPanel.className = CLASSNAME$
|
|
9709
|
-
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$
|
|
9715
|
+
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
9716
|
+
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$r;
|
|
9710
9717
|
|
|
9711
9718
|
/**
|
|
9712
9719
|
* Component display name.
|
|
@@ -9716,12 +9723,12 @@ const COMPONENT_NAME$s = 'RadioButton';
|
|
|
9716
9723
|
/**
|
|
9717
9724
|
* Component default class name and class prefix.
|
|
9718
9725
|
*/
|
|
9719
|
-
const CLASSNAME$
|
|
9726
|
+
const CLASSNAME$s = 'lumx-radio-button';
|
|
9720
9727
|
|
|
9721
9728
|
/**
|
|
9722
9729
|
* Component default props.
|
|
9723
9730
|
*/
|
|
9724
|
-
const DEFAULT_PROPS$
|
|
9731
|
+
const DEFAULT_PROPS$q = {};
|
|
9725
9732
|
|
|
9726
9733
|
/**
|
|
9727
9734
|
* RadioButton component.
|
|
@@ -9755,7 +9762,7 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
9755
9762
|
const {
|
|
9756
9763
|
block,
|
|
9757
9764
|
element
|
|
9758
|
-
} = useClassnames(CLASSNAME$
|
|
9765
|
+
} = useClassnames(CLASSNAME$s);
|
|
9759
9766
|
const generatedInputId = useId();
|
|
9760
9767
|
const inputId = id || generatedInputId;
|
|
9761
9768
|
const handleChange = event => {
|
|
@@ -9812,8 +9819,8 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
9812
9819
|
});
|
|
9813
9820
|
});
|
|
9814
9821
|
RadioButton.displayName = COMPONENT_NAME$s;
|
|
9815
|
-
RadioButton.className = CLASSNAME$
|
|
9816
|
-
RadioButton.defaultProps = DEFAULT_PROPS$
|
|
9822
|
+
RadioButton.className = CLASSNAME$s;
|
|
9823
|
+
RadioButton.defaultProps = DEFAULT_PROPS$q;
|
|
9817
9824
|
|
|
9818
9825
|
/**
|
|
9819
9826
|
* Component display name.
|
|
@@ -9823,7 +9830,7 @@ const COMPONENT_NAME$r = 'RadioGroup';
|
|
|
9823
9830
|
/**
|
|
9824
9831
|
* Component default class name and class prefix.
|
|
9825
9832
|
*/
|
|
9826
|
-
const CLASSNAME$
|
|
9833
|
+
const CLASSNAME$r = 'lumx-radio-group';
|
|
9827
9834
|
|
|
9828
9835
|
/**
|
|
9829
9836
|
* RadioGroup component.
|
|
@@ -9840,7 +9847,7 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
9840
9847
|
} = props;
|
|
9841
9848
|
const {
|
|
9842
9849
|
block
|
|
9843
|
-
} = useClassnames(CLASSNAME$
|
|
9850
|
+
} = useClassnames(CLASSNAME$r);
|
|
9844
9851
|
return /*#__PURE__*/jsx("div", {
|
|
9845
9852
|
ref: ref,
|
|
9846
9853
|
...forwardedProps,
|
|
@@ -9849,7 +9856,7 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
9849
9856
|
});
|
|
9850
9857
|
});
|
|
9851
9858
|
RadioGroup.displayName = COMPONENT_NAME$r;
|
|
9852
|
-
RadioGroup.className = CLASSNAME$
|
|
9859
|
+
RadioGroup.className = CLASSNAME$r;
|
|
9853
9860
|
|
|
9854
9861
|
/**
|
|
9855
9862
|
* Listen on element focus to store the focus status.
|
|
@@ -9876,13 +9883,13 @@ function useListenFocus(ref) {
|
|
|
9876
9883
|
}
|
|
9877
9884
|
|
|
9878
9885
|
/** The default class name and classes prefix for this component. */
|
|
9879
|
-
const CLASSNAME$
|
|
9886
|
+
const CLASSNAME$q = 'lumx-select';
|
|
9880
9887
|
const WithSelectContext = (SelectElement, props, ref) => {
|
|
9881
9888
|
const defaultTheme = useTheme() || Theme.light;
|
|
9882
9889
|
const {
|
|
9883
9890
|
block,
|
|
9884
9891
|
element
|
|
9885
|
-
} = useClassnames(CLASSNAME$
|
|
9892
|
+
} = useClassnames(CLASSNAME$q);
|
|
9886
9893
|
const {
|
|
9887
9894
|
children,
|
|
9888
9895
|
className,
|
|
@@ -9999,10 +10006,10 @@ const SelectVariant = {
|
|
|
9999
10006
|
const COMPONENT_NAME$q = 'Select';
|
|
10000
10007
|
|
|
10001
10008
|
/** The default class name and classes prefix for this component. */
|
|
10002
|
-
const CLASSNAME$
|
|
10009
|
+
const CLASSNAME$p = 'lumx-select';
|
|
10003
10010
|
|
|
10004
10011
|
/** The default value of props. */
|
|
10005
|
-
const DEFAULT_PROPS$
|
|
10012
|
+
const DEFAULT_PROPS$p = {
|
|
10006
10013
|
selectedValueRender: choice => choice,
|
|
10007
10014
|
variant: SelectVariant.input
|
|
10008
10015
|
};
|
|
@@ -10038,7 +10045,7 @@ const SelectField = props => {
|
|
|
10038
10045
|
} = props;
|
|
10039
10046
|
const {
|
|
10040
10047
|
element
|
|
10041
|
-
} = useClassnames(CLASSNAME$
|
|
10048
|
+
} = useClassnames(CLASSNAME$p);
|
|
10042
10049
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
10043
10050
|
children: [variant === SelectVariant.input && /*#__PURE__*/jsxs(Fragment, {
|
|
10044
10051
|
children: [label && /*#__PURE__*/jsx("div", {
|
|
@@ -10065,7 +10072,9 @@ const SelectField = props => {
|
|
|
10065
10072
|
icon: icon,
|
|
10066
10073
|
size: Size.xs
|
|
10067
10074
|
}), /*#__PURE__*/jsxs("div", {
|
|
10068
|
-
className: element('input-native',
|
|
10075
|
+
className: element('input-native', {
|
|
10076
|
+
placeholder: isEmpty && placeholder
|
|
10077
|
+
}),
|
|
10069
10078
|
children: [!isEmpty && /*#__PURE__*/jsx("span", {
|
|
10070
10079
|
children: selectedValueRender?.(value)
|
|
10071
10080
|
}), isEmpty && placeholder && /*#__PURE__*/jsx("span", {
|
|
@@ -10125,9 +10134,11 @@ const SelectField = props => {
|
|
|
10125
10134
|
const Select = forwardRef((props, ref) => {
|
|
10126
10135
|
const isEmpty$1 = isEmpty(props.value);
|
|
10127
10136
|
const hasInputClear = props.onClear && props.clearButtonProps && !isEmpty$1;
|
|
10128
|
-
const
|
|
10137
|
+
const {
|
|
10138
|
+
block
|
|
10139
|
+
} = useClassnames(CLASSNAME$p);
|
|
10129
10140
|
return WithSelectContext(SelectField, {
|
|
10130
|
-
...DEFAULT_PROPS$
|
|
10141
|
+
...DEFAULT_PROPS$p,
|
|
10131
10142
|
...props,
|
|
10132
10143
|
className: block({
|
|
10133
10144
|
'has-input-clear': hasInputClear,
|
|
@@ -10138,18 +10149,18 @@ const Select = forwardRef((props, ref) => {
|
|
|
10138
10149
|
}, ref);
|
|
10139
10150
|
});
|
|
10140
10151
|
Select.displayName = COMPONENT_NAME$q;
|
|
10141
|
-
Select.className = CLASSNAME$
|
|
10142
|
-
Select.defaultProps = DEFAULT_PROPS$
|
|
10143
|
-
Select.className = CLASSNAME$
|
|
10152
|
+
Select.className = CLASSNAME$p;
|
|
10153
|
+
Select.defaultProps = DEFAULT_PROPS$p;
|
|
10154
|
+
Select.className = CLASSNAME$p;
|
|
10144
10155
|
|
|
10145
10156
|
/** The display name of the component. */
|
|
10146
10157
|
const COMPONENT_NAME$p = 'Select';
|
|
10147
10158
|
|
|
10148
10159
|
/** The default class name and classes prefix for this component. */
|
|
10149
|
-
const CLASSNAME$
|
|
10160
|
+
const CLASSNAME$o = 'lumx-select';
|
|
10150
10161
|
|
|
10151
10162
|
/** The default value of props. */
|
|
10152
|
-
const DEFAULT_PROPS$
|
|
10163
|
+
const DEFAULT_PROPS$o = {
|
|
10153
10164
|
selectedChipRender(choice, index, onClear, isDisabled, theme) {
|
|
10154
10165
|
const onClick = event => onClear && onClear(event, choice);
|
|
10155
10166
|
return /*#__PURE__*/jsx(Chip, {
|
|
@@ -10172,7 +10183,7 @@ const SelectMultipleField = props => {
|
|
|
10172
10183
|
const defaultTheme = useTheme();
|
|
10173
10184
|
const {
|
|
10174
10185
|
element
|
|
10175
|
-
} = useClassnames(CLASSNAME$
|
|
10186
|
+
} = useClassnames(CLASSNAME$o);
|
|
10176
10187
|
const {
|
|
10177
10188
|
anchorRef,
|
|
10178
10189
|
handleKeyboardNav,
|
|
@@ -10279,9 +10290,9 @@ const SelectMultipleField = props => {
|
|
|
10279
10290
|
const SelectMultiple = forwardRef((props, ref) => {
|
|
10280
10291
|
const {
|
|
10281
10292
|
block
|
|
10282
|
-
} = useClassnames(CLASSNAME$
|
|
10293
|
+
} = useClassnames(CLASSNAME$o);
|
|
10283
10294
|
return WithSelectContext(SelectMultipleField, {
|
|
10284
|
-
...DEFAULT_PROPS$
|
|
10295
|
+
...DEFAULT_PROPS$o,
|
|
10285
10296
|
...props,
|
|
10286
10297
|
className: block({
|
|
10287
10298
|
'has-multiple': !props.isEmpty
|
|
@@ -10291,8 +10302,8 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
10291
10302
|
}, ref);
|
|
10292
10303
|
});
|
|
10293
10304
|
SelectMultiple.displayName = COMPONENT_NAME$p;
|
|
10294
|
-
SelectMultiple.className = CLASSNAME$
|
|
10295
|
-
SelectMultiple.defaultProps = DEFAULT_PROPS$
|
|
10305
|
+
SelectMultiple.className = CLASSNAME$o;
|
|
10306
|
+
SelectMultiple.defaultProps = DEFAULT_PROPS$o;
|
|
10296
10307
|
|
|
10297
10308
|
/**
|
|
10298
10309
|
* Component display name.
|
|
@@ -10302,7 +10313,7 @@ const COMPONENT_NAME$o = 'SideNavigation';
|
|
|
10302
10313
|
/**
|
|
10303
10314
|
* Component default class name and class prefix.
|
|
10304
10315
|
*/
|
|
10305
|
-
const CLASSNAME$
|
|
10316
|
+
const CLASSNAME$n = 'lumx-side-navigation';
|
|
10306
10317
|
|
|
10307
10318
|
/**
|
|
10308
10319
|
* SideNavigation component.
|
|
@@ -10321,7 +10332,7 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
10321
10332
|
} = props;
|
|
10322
10333
|
const {
|
|
10323
10334
|
block
|
|
10324
|
-
} = useClassnames(CLASSNAME$
|
|
10335
|
+
} = useClassnames(CLASSNAME$n);
|
|
10325
10336
|
const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
10326
10337
|
return /*#__PURE__*/jsx("ul", {
|
|
10327
10338
|
ref: ref,
|
|
@@ -10331,7 +10342,7 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
10331
10342
|
});
|
|
10332
10343
|
});
|
|
10333
10344
|
SideNavigation.displayName = COMPONENT_NAME$o;
|
|
10334
|
-
SideNavigation.className = CLASSNAME$
|
|
10345
|
+
SideNavigation.className = CLASSNAME$n;
|
|
10335
10346
|
|
|
10336
10347
|
/**
|
|
10337
10348
|
* Component display name.
|
|
@@ -10341,12 +10352,12 @@ const COMPONENT_NAME$n = 'SideNavigationItem';
|
|
|
10341
10352
|
/**
|
|
10342
10353
|
* Component default class name and class prefix.
|
|
10343
10354
|
*/
|
|
10344
|
-
const CLASSNAME$
|
|
10355
|
+
const CLASSNAME$m = 'lumx-side-navigation-item';
|
|
10345
10356
|
|
|
10346
10357
|
/**
|
|
10347
10358
|
* Component default props.
|
|
10348
10359
|
*/
|
|
10349
|
-
const DEFAULT_PROPS$
|
|
10360
|
+
const DEFAULT_PROPS$n = {
|
|
10350
10361
|
emphasis: Emphasis.high,
|
|
10351
10362
|
closeMode: 'unmount'
|
|
10352
10363
|
};
|
|
@@ -10362,7 +10373,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
10362
10373
|
const {
|
|
10363
10374
|
children,
|
|
10364
10375
|
className,
|
|
10365
|
-
emphasis = DEFAULT_PROPS$
|
|
10376
|
+
emphasis = DEFAULT_PROPS$n.emphasis,
|
|
10366
10377
|
icon,
|
|
10367
10378
|
isOpen,
|
|
10368
10379
|
isSelected,
|
|
@@ -10372,7 +10383,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
10372
10383
|
onActionClick,
|
|
10373
10384
|
onClick,
|
|
10374
10385
|
toggleButtonProps,
|
|
10375
|
-
closeMode = DEFAULT_PROPS$
|
|
10386
|
+
closeMode = DEFAULT_PROPS$n.closeMode,
|
|
10376
10387
|
...forwardedProps
|
|
10377
10388
|
} = props;
|
|
10378
10389
|
const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
@@ -10382,7 +10393,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
10382
10393
|
const {
|
|
10383
10394
|
block,
|
|
10384
10395
|
element
|
|
10385
|
-
} = useClassnames(CLASSNAME$
|
|
10396
|
+
} = useClassnames(CLASSNAME$m);
|
|
10386
10397
|
const contentId = useId();
|
|
10387
10398
|
const ariaProps = {};
|
|
10388
10399
|
if (hasContent) {
|
|
@@ -10446,10 +10457,10 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
10446
10457
|
});
|
|
10447
10458
|
});
|
|
10448
10459
|
SideNavigationItem.displayName = COMPONENT_NAME$n;
|
|
10449
|
-
SideNavigationItem.className = CLASSNAME$
|
|
10450
|
-
SideNavigationItem.defaultProps = DEFAULT_PROPS$
|
|
10460
|
+
SideNavigationItem.className = CLASSNAME$m;
|
|
10461
|
+
SideNavigationItem.defaultProps = DEFAULT_PROPS$n;
|
|
10451
10462
|
|
|
10452
|
-
const DEFAULT_PROPS$
|
|
10463
|
+
const DEFAULT_PROPS$m = {};
|
|
10453
10464
|
|
|
10454
10465
|
/**
|
|
10455
10466
|
* Component display name.
|
|
@@ -10459,7 +10470,7 @@ const COMPONENT_NAME$m = 'SkeletonCircle';
|
|
|
10459
10470
|
/**
|
|
10460
10471
|
* Component default class name and class prefix.
|
|
10461
10472
|
*/
|
|
10462
|
-
const CLASSNAME$
|
|
10473
|
+
const CLASSNAME$l = 'lumx-skeleton-circle';
|
|
10463
10474
|
|
|
10464
10475
|
/**
|
|
10465
10476
|
* SkeletonCircle component.
|
|
@@ -10479,7 +10490,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
10479
10490
|
} = props;
|
|
10480
10491
|
const {
|
|
10481
10492
|
block
|
|
10482
|
-
} = useClassnames(CLASSNAME$
|
|
10493
|
+
} = useClassnames(CLASSNAME$l);
|
|
10483
10494
|
return /*#__PURE__*/jsx("div", {
|
|
10484
10495
|
ref: ref,
|
|
10485
10496
|
...forwardedProps,
|
|
@@ -10491,8 +10502,8 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
10491
10502
|
});
|
|
10492
10503
|
});
|
|
10493
10504
|
SkeletonCircle.displayName = COMPONENT_NAME$m;
|
|
10494
|
-
SkeletonCircle.defaultProps = DEFAULT_PROPS$
|
|
10495
|
-
SkeletonCircle.className = CLASSNAME$
|
|
10505
|
+
SkeletonCircle.defaultProps = DEFAULT_PROPS$m;
|
|
10506
|
+
SkeletonCircle.className = CLASSNAME$l;
|
|
10496
10507
|
|
|
10497
10508
|
const SkeletonRectangleVariant = {
|
|
10498
10509
|
squared: 'squared',
|
|
@@ -10504,7 +10515,7 @@ const SkeletonRectangleVariant = {
|
|
|
10504
10515
|
* Defines the props of the component.
|
|
10505
10516
|
*/
|
|
10506
10517
|
|
|
10507
|
-
const DEFAULT_PROPS$
|
|
10518
|
+
const DEFAULT_PROPS$l = {
|
|
10508
10519
|
variant: SkeletonRectangleVariant.squared
|
|
10509
10520
|
};
|
|
10510
10521
|
|
|
@@ -10516,7 +10527,7 @@ const COMPONENT_NAME$l = 'SkeletonRectangle';
|
|
|
10516
10527
|
/**
|
|
10517
10528
|
* Component default class name and class prefix.
|
|
10518
10529
|
*/
|
|
10519
|
-
const CLASSNAME$
|
|
10530
|
+
const CLASSNAME$k = 'lumx-skeleton-rectangle';
|
|
10520
10531
|
|
|
10521
10532
|
/**
|
|
10522
10533
|
* SkeletonRectangle component.
|
|
@@ -10532,7 +10543,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
10532
10543
|
className,
|
|
10533
10544
|
height,
|
|
10534
10545
|
theme = defaultTheme,
|
|
10535
|
-
variant = DEFAULT_PROPS$
|
|
10546
|
+
variant = DEFAULT_PROPS$l.variant,
|
|
10536
10547
|
width,
|
|
10537
10548
|
color,
|
|
10538
10549
|
...forwardedProps
|
|
@@ -10540,7 +10551,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
10540
10551
|
const {
|
|
10541
10552
|
block,
|
|
10542
10553
|
element
|
|
10543
|
-
} = useClassnames(CLASSNAME$
|
|
10554
|
+
} = useClassnames(CLASSNAME$k);
|
|
10544
10555
|
return /*#__PURE__*/jsx("div", {
|
|
10545
10556
|
ref: ref,
|
|
10546
10557
|
...forwardedProps,
|
|
@@ -10558,10 +10569,10 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
10558
10569
|
});
|
|
10559
10570
|
});
|
|
10560
10571
|
SkeletonRectangle.displayName = COMPONENT_NAME$l;
|
|
10561
|
-
SkeletonRectangle.className = CLASSNAME$
|
|
10562
|
-
SkeletonRectangle.defaultProps = DEFAULT_PROPS$
|
|
10572
|
+
SkeletonRectangle.className = CLASSNAME$k;
|
|
10573
|
+
SkeletonRectangle.defaultProps = DEFAULT_PROPS$l;
|
|
10563
10574
|
|
|
10564
|
-
const DEFAULT_PROPS$
|
|
10575
|
+
const DEFAULT_PROPS$k = {};
|
|
10565
10576
|
|
|
10566
10577
|
/**
|
|
10567
10578
|
* Component display name.
|
|
@@ -10571,7 +10582,7 @@ const COMPONENT_NAME$k = 'SkeletonTypography';
|
|
|
10571
10582
|
/**
|
|
10572
10583
|
* Component default class name and class prefix.
|
|
10573
10584
|
*/
|
|
10574
|
-
const CLASSNAME$
|
|
10585
|
+
const CLASSNAME$j = 'lumx-skeleton-typography';
|
|
10575
10586
|
|
|
10576
10587
|
/**
|
|
10577
10588
|
* SkeletonTypography component.
|
|
@@ -10593,7 +10604,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
10593
10604
|
const {
|
|
10594
10605
|
block,
|
|
10595
10606
|
element
|
|
10596
|
-
} = useClassnames(CLASSNAME$
|
|
10607
|
+
} = useClassnames(CLASSNAME$j);
|
|
10597
10608
|
return /*#__PURE__*/jsx("div", {
|
|
10598
10609
|
ref: ref,
|
|
10599
10610
|
...forwardedProps,
|
|
@@ -10612,8 +10623,8 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
10612
10623
|
});
|
|
10613
10624
|
});
|
|
10614
10625
|
SkeletonTypography.displayName = COMPONENT_NAME$k;
|
|
10615
|
-
SkeletonTypography.defaultProps = DEFAULT_PROPS$
|
|
10616
|
-
SkeletonTypography.className = CLASSNAME$
|
|
10626
|
+
SkeletonTypography.defaultProps = DEFAULT_PROPS$k;
|
|
10627
|
+
SkeletonTypography.className = CLASSNAME$j;
|
|
10617
10628
|
|
|
10618
10629
|
const useEnhancedEffect = typeof window !== 'undefined' ? React__default.useLayoutEffect : React__default.useEffect;
|
|
10619
10630
|
|
|
@@ -10658,12 +10669,12 @@ const COMPONENT_NAME$j = 'Slider';
|
|
|
10658
10669
|
/**
|
|
10659
10670
|
* Component default class name and class prefix.
|
|
10660
10671
|
*/
|
|
10661
|
-
const CLASSNAME$
|
|
10672
|
+
const CLASSNAME$i = 'lumx-slider';
|
|
10662
10673
|
|
|
10663
10674
|
/**
|
|
10664
10675
|
* Component default props.
|
|
10665
10676
|
*/
|
|
10666
|
-
const DEFAULT_PROPS$
|
|
10677
|
+
const DEFAULT_PROPS$j = {
|
|
10667
10678
|
precision: 0,
|
|
10668
10679
|
steps: 0
|
|
10669
10680
|
};
|
|
@@ -10714,8 +10725,8 @@ const Slider = forwardRef((props, ref) => {
|
|
|
10714
10725
|
name,
|
|
10715
10726
|
onChange,
|
|
10716
10727
|
onMouseDown,
|
|
10717
|
-
precision = DEFAULT_PROPS$
|
|
10718
|
-
steps = DEFAULT_PROPS$
|
|
10728
|
+
precision = DEFAULT_PROPS$j.precision,
|
|
10729
|
+
steps = DEFAULT_PROPS$j.steps,
|
|
10719
10730
|
theme = defaultTheme,
|
|
10720
10731
|
value,
|
|
10721
10732
|
...forwardedProps
|
|
@@ -10723,7 +10734,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
10723
10734
|
const {
|
|
10724
10735
|
block,
|
|
10725
10736
|
element
|
|
10726
|
-
} = useClassnames(CLASSNAME$
|
|
10737
|
+
} = useClassnames(CLASSNAME$i);
|
|
10727
10738
|
const generatedId = useId();
|
|
10728
10739
|
const sliderId = id || generatedId;
|
|
10729
10740
|
const sliderLabelId = useMemo(() => `label-${sliderId}`, [sliderId]);
|
|
@@ -10913,8 +10924,8 @@ const Slider = forwardRef((props, ref) => {
|
|
|
10913
10924
|
});
|
|
10914
10925
|
});
|
|
10915
10926
|
Slider.displayName = COMPONENT_NAME$j;
|
|
10916
|
-
Slider.className = CLASSNAME$
|
|
10917
|
-
Slider.defaultProps = DEFAULT_PROPS$
|
|
10927
|
+
Slider.className = CLASSNAME$i;
|
|
10928
|
+
Slider.defaultProps = DEFAULT_PROPS$j;
|
|
10918
10929
|
|
|
10919
10930
|
/**
|
|
10920
10931
|
* Making setInterval Declarative with React Hooks.
|
|
@@ -11237,7 +11248,7 @@ const COMPONENT_NAME$i = 'SlideshowItemGroup';
|
|
|
11237
11248
|
/**
|
|
11238
11249
|
* Component default class name and class prefix.
|
|
11239
11250
|
*/
|
|
11240
|
-
const CLASSNAME$
|
|
11251
|
+
const CLASSNAME$h = 'lumx-slideshow-item-group';
|
|
11241
11252
|
const buildSlideShowGroupId = (slidesId, index) => `${slidesId}-slide-${index}`;
|
|
11242
11253
|
|
|
11243
11254
|
/**
|
|
@@ -11258,7 +11269,7 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
11258
11269
|
} = props;
|
|
11259
11270
|
const {
|
|
11260
11271
|
block
|
|
11261
|
-
} = useClassnames(CLASSNAME$
|
|
11272
|
+
} = useClassnames(CLASSNAME$h);
|
|
11262
11273
|
const groupRef = React__default.useRef(null);
|
|
11263
11274
|
useSlideFocusManagement({
|
|
11264
11275
|
isSlideDisplayed: isDisplayed,
|
|
@@ -11275,12 +11286,12 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
11275
11286
|
});
|
|
11276
11287
|
});
|
|
11277
11288
|
SlideshowItemGroup.displayName = COMPONENT_NAME$i;
|
|
11278
|
-
SlideshowItemGroup.className = CLASSNAME$
|
|
11289
|
+
SlideshowItemGroup.className = CLASSNAME$h;
|
|
11279
11290
|
|
|
11280
11291
|
/**
|
|
11281
11292
|
* Component default props.
|
|
11282
11293
|
*/
|
|
11283
|
-
const DEFAULT_PROPS$
|
|
11294
|
+
const DEFAULT_PROPS$i = DEFAULT_OPTIONS;
|
|
11284
11295
|
|
|
11285
11296
|
/**
|
|
11286
11297
|
* Slideshow component.
|
|
@@ -11293,12 +11304,12 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
11293
11304
|
const defaultTheme = useTheme() || Theme.light;
|
|
11294
11305
|
const {
|
|
11295
11306
|
activeIndex,
|
|
11296
|
-
autoPlay = DEFAULT_PROPS$
|
|
11307
|
+
autoPlay = DEFAULT_PROPS$i.autoPlay,
|
|
11297
11308
|
children,
|
|
11298
11309
|
className,
|
|
11299
11310
|
fillHeight,
|
|
11300
11311
|
groupBy = DEFAULT_OPTIONS.groupBy,
|
|
11301
|
-
interval = DEFAULT_PROPS$
|
|
11312
|
+
interval = DEFAULT_PROPS$i.interval,
|
|
11302
11313
|
onChange,
|
|
11303
11314
|
slideshowControlsProps,
|
|
11304
11315
|
theme = defaultTheme,
|
|
@@ -11326,7 +11337,7 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
11326
11337
|
toggleForcePause
|
|
11327
11338
|
} = SlideshowControls.useSlideshowControls({
|
|
11328
11339
|
activeIndex,
|
|
11329
|
-
defaultActiveIndex: DEFAULT_PROPS$
|
|
11340
|
+
defaultActiveIndex: DEFAULT_PROPS$i.activeIndex,
|
|
11330
11341
|
autoPlay: Boolean(autoPlay),
|
|
11331
11342
|
itemsCount,
|
|
11332
11343
|
groupBy,
|
|
@@ -11391,7 +11402,7 @@ const Slideshow = forwardRef((props, ref) => {
|
|
|
11391
11402
|
});
|
|
11392
11403
|
});
|
|
11393
11404
|
Slideshow.displayName = 'Slideshow';
|
|
11394
|
-
Slideshow.defaultProps = DEFAULT_PROPS$
|
|
11405
|
+
Slideshow.defaultProps = DEFAULT_PROPS$i;
|
|
11395
11406
|
|
|
11396
11407
|
/**
|
|
11397
11408
|
* Component display name.
|
|
@@ -11401,7 +11412,7 @@ const COMPONENT_NAME$h = 'SlideshowItem';
|
|
|
11401
11412
|
/**
|
|
11402
11413
|
* Component default class name and class prefix.
|
|
11403
11414
|
*/
|
|
11404
|
-
const CLASSNAME$
|
|
11415
|
+
const CLASSNAME$g = 'lumx-slideshow-item';
|
|
11405
11416
|
|
|
11406
11417
|
/**
|
|
11407
11418
|
* SlideshowItem component.
|
|
@@ -11418,7 +11429,7 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
11418
11429
|
} = props;
|
|
11419
11430
|
const {
|
|
11420
11431
|
block
|
|
11421
|
-
} = useClassnames(CLASSNAME$
|
|
11432
|
+
} = useClassnames(CLASSNAME$g);
|
|
11422
11433
|
return /*#__PURE__*/jsx("div", {
|
|
11423
11434
|
ref: ref,
|
|
11424
11435
|
className: block([className]),
|
|
@@ -11427,7 +11438,7 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
11427
11438
|
});
|
|
11428
11439
|
});
|
|
11429
11440
|
SlideshowItem.displayName = COMPONENT_NAME$h;
|
|
11430
|
-
SlideshowItem.className = CLASSNAME$
|
|
11441
|
+
SlideshowItem.className = CLASSNAME$g;
|
|
11431
11442
|
|
|
11432
11443
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
11433
11444
|
|
|
@@ -11494,12 +11505,12 @@ const COMPONENT_NAME$g = 'SlideshowControls';
|
|
|
11494
11505
|
/**
|
|
11495
11506
|
* Component default class name and class prefix.
|
|
11496
11507
|
*/
|
|
11497
|
-
const CLASSNAME$
|
|
11508
|
+
const CLASSNAME$f = 'lumx-slideshow-controls';
|
|
11498
11509
|
|
|
11499
11510
|
/**
|
|
11500
11511
|
* Component default props.
|
|
11501
11512
|
*/
|
|
11502
|
-
const DEFAULT_PROPS$
|
|
11513
|
+
const DEFAULT_PROPS$h = {
|
|
11503
11514
|
activeIndex: 0
|
|
11504
11515
|
};
|
|
11505
11516
|
|
|
@@ -11513,7 +11524,7 @@ const DEFAULT_PROPS$f = {
|
|
|
11513
11524
|
const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
11514
11525
|
const defaultTheme = useTheme() || Theme.light;
|
|
11515
11526
|
const {
|
|
11516
|
-
activeIndex = DEFAULT_PROPS$
|
|
11527
|
+
activeIndex = DEFAULT_PROPS$h.activeIndex,
|
|
11517
11528
|
className,
|
|
11518
11529
|
nextButtonProps,
|
|
11519
11530
|
onNextClick,
|
|
@@ -11539,7 +11550,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
11539
11550
|
const {
|
|
11540
11551
|
block,
|
|
11541
11552
|
element
|
|
11542
|
-
} = useClassnames(CLASSNAME$
|
|
11553
|
+
} = useClassnames(CLASSNAME$f);
|
|
11543
11554
|
// Listen to touch swipe navigate left & right.
|
|
11544
11555
|
useSwipeNavigate(parent,
|
|
11545
11556
|
// Go next without loopback.
|
|
@@ -11631,8 +11642,8 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
11631
11642
|
});
|
|
11632
11643
|
});
|
|
11633
11644
|
InternalSlideshowControls.displayName = COMPONENT_NAME$g;
|
|
11634
|
-
InternalSlideshowControls.className = CLASSNAME$
|
|
11635
|
-
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$
|
|
11645
|
+
InternalSlideshowControls.className = CLASSNAME$f;
|
|
11646
|
+
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$h;
|
|
11636
11647
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
11637
11648
|
useSlideshowControls,
|
|
11638
11649
|
useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS
|
|
@@ -11646,7 +11657,7 @@ const COMPONENT_NAME$f = 'Slideshow';
|
|
|
11646
11657
|
/**
|
|
11647
11658
|
* Component default class name and class prefix.
|
|
11648
11659
|
*/
|
|
11649
|
-
const CLASSNAME$
|
|
11660
|
+
const CLASSNAME$e = 'lumx-slideshow';
|
|
11650
11661
|
|
|
11651
11662
|
/**
|
|
11652
11663
|
* Slides component.
|
|
@@ -11679,7 +11690,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
11679
11690
|
const {
|
|
11680
11691
|
block,
|
|
11681
11692
|
element
|
|
11682
|
-
} = useClassnames(CLASSNAME$
|
|
11693
|
+
} = useClassnames(CLASSNAME$e);
|
|
11683
11694
|
|
|
11684
11695
|
// Inline style of wrapper element.
|
|
11685
11696
|
const wrapperStyle = {
|
|
@@ -11721,7 +11732,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
11721
11732
|
});
|
|
11722
11733
|
});
|
|
11723
11734
|
Slides.displayName = COMPONENT_NAME$f;
|
|
11724
|
-
Slides.className = CLASSNAME$
|
|
11735
|
+
Slides.className = CLASSNAME$e;
|
|
11725
11736
|
|
|
11726
11737
|
/**
|
|
11727
11738
|
* Component display name.
|
|
@@ -11731,12 +11742,12 @@ const COMPONENT_NAME$e = 'Switch';
|
|
|
11731
11742
|
/**
|
|
11732
11743
|
* Component default class name and class prefix.
|
|
11733
11744
|
*/
|
|
11734
|
-
const CLASSNAME$
|
|
11745
|
+
const CLASSNAME$d = 'lumx-switch';
|
|
11735
11746
|
|
|
11736
11747
|
/**
|
|
11737
11748
|
* Component default props.
|
|
11738
11749
|
*/
|
|
11739
|
-
const DEFAULT_PROPS$
|
|
11750
|
+
const DEFAULT_PROPS$g = {
|
|
11740
11751
|
position: Alignment.left
|
|
11741
11752
|
};
|
|
11742
11753
|
|
|
@@ -11763,7 +11774,7 @@ const Switch = forwardRef((props, ref) => {
|
|
|
11763
11774
|
isChecked = checked,
|
|
11764
11775
|
name,
|
|
11765
11776
|
onChange,
|
|
11766
|
-
position = DEFAULT_PROPS$
|
|
11777
|
+
position = DEFAULT_PROPS$g.position,
|
|
11767
11778
|
theme = defaultTheme,
|
|
11768
11779
|
value,
|
|
11769
11780
|
inputProps = {},
|
|
@@ -11772,7 +11783,7 @@ const Switch = forwardRef((props, ref) => {
|
|
|
11772
11783
|
const {
|
|
11773
11784
|
block,
|
|
11774
11785
|
element
|
|
11775
|
-
} = useClassnames(CLASSNAME$
|
|
11786
|
+
} = useClassnames(CLASSNAME$d);
|
|
11776
11787
|
const generatedInputId = useId();
|
|
11777
11788
|
const inputId = id || generatedInputId;
|
|
11778
11789
|
const handleChange = event => {
|
|
@@ -11831,8 +11842,8 @@ const Switch = forwardRef((props, ref) => {
|
|
|
11831
11842
|
});
|
|
11832
11843
|
});
|
|
11833
11844
|
Switch.displayName = COMPONENT_NAME$e;
|
|
11834
|
-
Switch.className = CLASSNAME$
|
|
11835
|
-
Switch.defaultProps = DEFAULT_PROPS$
|
|
11845
|
+
Switch.className = CLASSNAME$d;
|
|
11846
|
+
Switch.defaultProps = DEFAULT_PROPS$g;
|
|
11836
11847
|
|
|
11837
11848
|
/**
|
|
11838
11849
|
* Component display name.
|
|
@@ -11842,12 +11853,12 @@ const COMPONENT_NAME$d = 'Table';
|
|
|
11842
11853
|
/**
|
|
11843
11854
|
* Component default class name and class prefix.
|
|
11844
11855
|
*/
|
|
11845
|
-
const CLASSNAME$
|
|
11856
|
+
const CLASSNAME$c = 'lumx-table';
|
|
11846
11857
|
|
|
11847
11858
|
/**
|
|
11848
11859
|
* Component default props.
|
|
11849
11860
|
*/
|
|
11850
|
-
const DEFAULT_PROPS$
|
|
11861
|
+
const DEFAULT_PROPS$f = {};
|
|
11851
11862
|
|
|
11852
11863
|
/**
|
|
11853
11864
|
* Table component.
|
|
@@ -11868,7 +11879,7 @@ const Table = forwardRef((props, ref) => {
|
|
|
11868
11879
|
} = props;
|
|
11869
11880
|
const {
|
|
11870
11881
|
block
|
|
11871
|
-
} = useClassnames(CLASSNAME$
|
|
11882
|
+
} = useClassnames(CLASSNAME$c);
|
|
11872
11883
|
return /*#__PURE__*/jsx("table", {
|
|
11873
11884
|
ref: ref,
|
|
11874
11885
|
...forwardedProps,
|
|
@@ -11881,8 +11892,8 @@ const Table = forwardRef((props, ref) => {
|
|
|
11881
11892
|
});
|
|
11882
11893
|
});
|
|
11883
11894
|
Table.displayName = COMPONENT_NAME$d;
|
|
11884
|
-
Table.className = CLASSNAME$
|
|
11885
|
-
Table.defaultProps = DEFAULT_PROPS$
|
|
11895
|
+
Table.className = CLASSNAME$c;
|
|
11896
|
+
Table.defaultProps = DEFAULT_PROPS$f;
|
|
11886
11897
|
|
|
11887
11898
|
/**
|
|
11888
11899
|
* Component display name.
|
|
@@ -11892,7 +11903,7 @@ const COMPONENT_NAME$c = 'TableBody';
|
|
|
11892
11903
|
/**
|
|
11893
11904
|
* Component default class name and class prefix.
|
|
11894
11905
|
*/
|
|
11895
|
-
const CLASSNAME$
|
|
11906
|
+
const CLASSNAME$b = `${CLASSNAME$c}__body`;
|
|
11896
11907
|
|
|
11897
11908
|
/**
|
|
11898
11909
|
* TableBody component.
|
|
@@ -11909,7 +11920,7 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
11909
11920
|
} = props;
|
|
11910
11921
|
const {
|
|
11911
11922
|
block
|
|
11912
|
-
} = useClassnames(CLASSNAME$
|
|
11923
|
+
} = useClassnames(CLASSNAME$b);
|
|
11913
11924
|
return /*#__PURE__*/jsx("tbody", {
|
|
11914
11925
|
ref: ref,
|
|
11915
11926
|
...forwardedProps,
|
|
@@ -11918,7 +11929,7 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
11918
11929
|
});
|
|
11919
11930
|
});
|
|
11920
11931
|
TableBody.displayName = COMPONENT_NAME$c;
|
|
11921
|
-
TableBody.className = CLASSNAME$
|
|
11932
|
+
TableBody.className = CLASSNAME$b;
|
|
11922
11933
|
|
|
11923
11934
|
const ThOrder = {
|
|
11924
11935
|
asc: 'asc',
|
|
@@ -11944,12 +11955,12 @@ const COMPONENT_NAME$b = 'TableCell';
|
|
|
11944
11955
|
/**
|
|
11945
11956
|
* Component default class name and class prefix.
|
|
11946
11957
|
*/
|
|
11947
|
-
const CLASSNAME$
|
|
11958
|
+
const CLASSNAME$a = `${CLASSNAME$c}__cell`;
|
|
11948
11959
|
|
|
11949
11960
|
/**
|
|
11950
11961
|
* Component default props.
|
|
11951
11962
|
*/
|
|
11952
|
-
const DEFAULT_PROPS$
|
|
11963
|
+
const DEFAULT_PROPS$e = {
|
|
11953
11964
|
variant: TableCellVariant.body
|
|
11954
11965
|
};
|
|
11955
11966
|
|
|
@@ -11968,12 +11979,12 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
11968
11979
|
isSortable,
|
|
11969
11980
|
onHeaderClick,
|
|
11970
11981
|
sortOrder,
|
|
11971
|
-
variant = DEFAULT_PROPS$
|
|
11982
|
+
variant = DEFAULT_PROPS$e.variant,
|
|
11972
11983
|
...forwardedProps
|
|
11973
11984
|
} = props;
|
|
11974
11985
|
const {
|
|
11975
11986
|
block
|
|
11976
|
-
} = useClassnames(CLASSNAME$
|
|
11987
|
+
} = useClassnames(CLASSNAME$a);
|
|
11977
11988
|
|
|
11978
11989
|
// Use button if clickable
|
|
11979
11990
|
const Wrapper = onHeaderClick ? 'button' : 'div';
|
|
@@ -12000,22 +12011,22 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
12000
12011
|
}, [className]),
|
|
12001
12012
|
"aria-sort": ariaSort,
|
|
12002
12013
|
children: /*#__PURE__*/jsxs(Wrapper, {
|
|
12003
|
-
className: `${CLASSNAME$
|
|
12014
|
+
className: `${CLASSNAME$a}-wrapper`,
|
|
12004
12015
|
...wrapperProps,
|
|
12005
12016
|
children: [icon && !isSortable && /*#__PURE__*/jsx(Icon, {
|
|
12006
|
-
className: `${CLASSNAME$
|
|
12017
|
+
className: `${CLASSNAME$a}-icon`,
|
|
12007
12018
|
icon: icon,
|
|
12008
12019
|
size: Size.xxs
|
|
12009
12020
|
}), isSortable && sortOrder === ThOrder.asc && /*#__PURE__*/jsx(Icon, {
|
|
12010
|
-
className: `${CLASSNAME$
|
|
12021
|
+
className: `${CLASSNAME$a}-icon`,
|
|
12011
12022
|
icon: mdiArrowUp,
|
|
12012
12023
|
size: Size.xxs
|
|
12013
12024
|
}), isSortable && sortOrder === ThOrder.desc && /*#__PURE__*/jsx(Icon, {
|
|
12014
|
-
className: `${CLASSNAME$
|
|
12025
|
+
className: `${CLASSNAME$a}-icon`,
|
|
12015
12026
|
icon: mdiArrowDown,
|
|
12016
12027
|
size: Size.xxs
|
|
12017
12028
|
}), /*#__PURE__*/jsx("div", {
|
|
12018
|
-
className: `${CLASSNAME$
|
|
12029
|
+
className: `${CLASSNAME$a}-content`,
|
|
12019
12030
|
children: children
|
|
12020
12031
|
})]
|
|
12021
12032
|
})
|
|
@@ -12025,15 +12036,15 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
12025
12036
|
body: true
|
|
12026
12037
|
}, [className]),
|
|
12027
12038
|
children: /*#__PURE__*/jsx("div", {
|
|
12028
|
-
className: `${CLASSNAME$
|
|
12039
|
+
className: `${CLASSNAME$a}-content`,
|
|
12029
12040
|
children: children
|
|
12030
12041
|
})
|
|
12031
12042
|
})]
|
|
12032
12043
|
});
|
|
12033
12044
|
});
|
|
12034
12045
|
TableCell.displayName = COMPONENT_NAME$b;
|
|
12035
|
-
TableCell.className = CLASSNAME$
|
|
12036
|
-
TableCell.defaultProps = DEFAULT_PROPS$
|
|
12046
|
+
TableCell.className = CLASSNAME$a;
|
|
12047
|
+
TableCell.defaultProps = DEFAULT_PROPS$e;
|
|
12037
12048
|
|
|
12038
12049
|
/**
|
|
12039
12050
|
* Component display name.
|
|
@@ -12043,12 +12054,12 @@ const COMPONENT_NAME$a = 'TableHeader';
|
|
|
12043
12054
|
/**
|
|
12044
12055
|
* Component default class name and class prefix.
|
|
12045
12056
|
*/
|
|
12046
|
-
const CLASSNAME$
|
|
12057
|
+
const CLASSNAME$9 = `${CLASSNAME$c}__header`;
|
|
12047
12058
|
|
|
12048
12059
|
/**
|
|
12049
12060
|
* Component default props.
|
|
12050
12061
|
*/
|
|
12051
|
-
const DEFAULT_PROPS$
|
|
12062
|
+
const DEFAULT_PROPS$d = {};
|
|
12052
12063
|
|
|
12053
12064
|
/**
|
|
12054
12065
|
* TableHeader component.
|
|
@@ -12065,7 +12076,7 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
12065
12076
|
} = props;
|
|
12066
12077
|
const {
|
|
12067
12078
|
block
|
|
12068
|
-
} = useClassnames(CLASSNAME$
|
|
12079
|
+
} = useClassnames(CLASSNAME$9);
|
|
12069
12080
|
return /*#__PURE__*/jsx("thead", {
|
|
12070
12081
|
ref: ref,
|
|
12071
12082
|
...forwardedProps,
|
|
@@ -12074,8 +12085,8 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
12074
12085
|
});
|
|
12075
12086
|
});
|
|
12076
12087
|
TableHeader.displayName = COMPONENT_NAME$a;
|
|
12077
|
-
TableHeader.className = CLASSNAME$
|
|
12078
|
-
TableHeader.defaultProps = DEFAULT_PROPS$
|
|
12088
|
+
TableHeader.className = CLASSNAME$9;
|
|
12089
|
+
TableHeader.defaultProps = DEFAULT_PROPS$d;
|
|
12079
12090
|
|
|
12080
12091
|
/**
|
|
12081
12092
|
* Component display name.
|
|
@@ -12085,12 +12096,12 @@ const COMPONENT_NAME$9 = 'TableRow';
|
|
|
12085
12096
|
/**
|
|
12086
12097
|
* Component default class name and class prefix.
|
|
12087
12098
|
*/
|
|
12088
|
-
const CLASSNAME$
|
|
12099
|
+
const CLASSNAME$8 = `${CLASSNAME$c}__row`;
|
|
12089
12100
|
|
|
12090
12101
|
/**
|
|
12091
12102
|
* Component default props.
|
|
12092
12103
|
*/
|
|
12093
|
-
const DEFAULT_PROPS$
|
|
12104
|
+
const DEFAULT_PROPS$c = {};
|
|
12094
12105
|
|
|
12095
12106
|
/**
|
|
12096
12107
|
* TableRow component.
|
|
@@ -12114,7 +12125,7 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
12114
12125
|
} = otherProps;
|
|
12115
12126
|
const {
|
|
12116
12127
|
element
|
|
12117
|
-
} = useClassnames(CLASSNAME$
|
|
12128
|
+
} = useClassnames(CLASSNAME$c);
|
|
12118
12129
|
return /*#__PURE__*/jsx("tr", {
|
|
12119
12130
|
ref: ref,
|
|
12120
12131
|
tabIndex: isClickable && !disabledStateProps.disabled ? 0 : -1,
|
|
@@ -12129,10 +12140,10 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
12129
12140
|
});
|
|
12130
12141
|
});
|
|
12131
12142
|
TableRow.displayName = COMPONENT_NAME$9;
|
|
12132
|
-
TableRow.className = CLASSNAME$
|
|
12133
|
-
TableRow.defaultProps = DEFAULT_PROPS$
|
|
12143
|
+
TableRow.className = CLASSNAME$8;
|
|
12144
|
+
TableRow.defaultProps = DEFAULT_PROPS$c;
|
|
12134
12145
|
|
|
12135
|
-
const DEFAULT_PROPS$
|
|
12146
|
+
const DEFAULT_PROPS$b = {
|
|
12136
12147
|
isLazy: INIT_STATE.isLazy,
|
|
12137
12148
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
12138
12149
|
};
|
|
@@ -12159,7 +12170,7 @@ const TabProvider = props => {
|
|
|
12159
12170
|
dispatch({
|
|
12160
12171
|
type: 'update',
|
|
12161
12172
|
payload: {
|
|
12162
|
-
...DEFAULT_PROPS$
|
|
12173
|
+
...DEFAULT_PROPS$b,
|
|
12163
12174
|
...propState
|
|
12164
12175
|
}
|
|
12165
12176
|
});
|
|
@@ -12188,7 +12199,12 @@ const TabProvider = props => {
|
|
|
12188
12199
|
children: children
|
|
12189
12200
|
});
|
|
12190
12201
|
};
|
|
12191
|
-
TabProvider.defaultProps = DEFAULT_PROPS$
|
|
12202
|
+
TabProvider.defaultProps = DEFAULT_PROPS$b;
|
|
12203
|
+
|
|
12204
|
+
/**
|
|
12205
|
+
* Component default class name and class prefix.
|
|
12206
|
+
*/
|
|
12207
|
+
const TABS_CLASSNAME = `lumx-tabs`;
|
|
12192
12208
|
|
|
12193
12209
|
let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
12194
12210
|
TabListLayout["clustered"] = "clustered";
|
|
@@ -12205,15 +12221,10 @@ let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
|
12205
12221
|
*/
|
|
12206
12222
|
const COMPONENT_NAME$8 = 'TabList';
|
|
12207
12223
|
|
|
12208
|
-
/**
|
|
12209
|
-
* Component default class name and class prefix.
|
|
12210
|
-
*/
|
|
12211
|
-
const CLASSNAME$8 = `lumx-tabs`;
|
|
12212
|
-
|
|
12213
12224
|
/**
|
|
12214
12225
|
* Component default props.
|
|
12215
12226
|
*/
|
|
12216
|
-
const DEFAULT_PROPS$
|
|
12227
|
+
const DEFAULT_PROPS$a = {
|
|
12217
12228
|
layout: TabListLayout.fixed,
|
|
12218
12229
|
position: Alignment.left
|
|
12219
12230
|
};
|
|
@@ -12233,8 +12244,8 @@ const TabList = forwardRef((props, ref) => {
|
|
|
12233
12244
|
'aria-label': ariaLabel,
|
|
12234
12245
|
children,
|
|
12235
12246
|
className,
|
|
12236
|
-
layout = DEFAULT_PROPS$
|
|
12237
|
-
position = DEFAULT_PROPS$
|
|
12247
|
+
layout = DEFAULT_PROPS$a.layout,
|
|
12248
|
+
position = DEFAULT_PROPS$a.position,
|
|
12238
12249
|
theme = defaultTheme,
|
|
12239
12250
|
...forwardedProps
|
|
12240
12251
|
} = props;
|
|
@@ -12242,7 +12253,7 @@ const TabList = forwardRef((props, ref) => {
|
|
|
12242
12253
|
const {
|
|
12243
12254
|
block,
|
|
12244
12255
|
element
|
|
12245
|
-
} = useClassnames(
|
|
12256
|
+
} = useClassnames(TABS_CLASSNAME);
|
|
12246
12257
|
useRovingTabIndex({
|
|
12247
12258
|
parentRef: tabListRef,
|
|
12248
12259
|
elementSelector: '[role="tab"]',
|
|
@@ -12266,8 +12277,8 @@ const TabList = forwardRef((props, ref) => {
|
|
|
12266
12277
|
});
|
|
12267
12278
|
});
|
|
12268
12279
|
TabList.displayName = COMPONENT_NAME$8;
|
|
12269
|
-
TabList.className =
|
|
12270
|
-
TabList.defaultProps = DEFAULT_PROPS$
|
|
12280
|
+
TabList.className = TABS_CLASSNAME;
|
|
12281
|
+
TabList.defaultProps = DEFAULT_PROPS$a;
|
|
12271
12282
|
|
|
12272
12283
|
/**
|
|
12273
12284
|
* Component display name.
|
|
@@ -12277,12 +12288,12 @@ const COMPONENT_NAME$7 = 'Tab';
|
|
|
12277
12288
|
/**
|
|
12278
12289
|
* Component default class name and class prefix.
|
|
12279
12290
|
*/
|
|
12280
|
-
const CLASSNAME$7 =
|
|
12291
|
+
const CLASSNAME$7 = `${TABS_CLASSNAME}__link`;
|
|
12281
12292
|
|
|
12282
12293
|
/**
|
|
12283
12294
|
* Component default props.
|
|
12284
12295
|
*/
|
|
12285
|
-
const DEFAULT_PROPS$
|
|
12296
|
+
const DEFAULT_PROPS$9 = {};
|
|
12286
12297
|
|
|
12287
12298
|
/**
|
|
12288
12299
|
* Tab component.
|
|
@@ -12364,7 +12375,7 @@ const Tab = forwardRef((props, ref) => {
|
|
|
12364
12375
|
});
|
|
12365
12376
|
Tab.displayName = COMPONENT_NAME$7;
|
|
12366
12377
|
Tab.className = CLASSNAME$7;
|
|
12367
|
-
Tab.defaultProps = DEFAULT_PROPS$
|
|
12378
|
+
Tab.defaultProps = DEFAULT_PROPS$9;
|
|
12368
12379
|
|
|
12369
12380
|
/**
|
|
12370
12381
|
* Component display name.
|
|
@@ -12379,7 +12390,7 @@ const CLASSNAME$6 = `lumx-tab-panel`;
|
|
|
12379
12390
|
/**
|
|
12380
12391
|
* Component default props.
|
|
12381
12392
|
*/
|
|
12382
|
-
const DEFAULT_PROPS$
|
|
12393
|
+
const DEFAULT_PROPS$8 = {};
|
|
12383
12394
|
|
|
12384
12395
|
/**
|
|
12385
12396
|
* TabPanel component.
|
|
@@ -12418,7 +12429,7 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
12418
12429
|
});
|
|
12419
12430
|
TabPanel.displayName = COMPONENT_NAME$6;
|
|
12420
12431
|
TabPanel.className = CLASSNAME$6;
|
|
12421
|
-
TabPanel.defaultProps = DEFAULT_PROPS$
|
|
12432
|
+
TabPanel.defaultProps = DEFAULT_PROPS$8;
|
|
12422
12433
|
|
|
12423
12434
|
/**
|
|
12424
12435
|
* Component display name.
|
|
@@ -12431,119 +12442,137 @@ const COMPONENT_NAME$5 = 'TextField';
|
|
|
12431
12442
|
const CLASSNAME$5 = 'lumx-text-field';
|
|
12432
12443
|
|
|
12433
12444
|
/**
|
|
12434
|
-
*
|
|
12445
|
+
* Input native element class name.
|
|
12435
12446
|
*/
|
|
12436
|
-
const
|
|
12447
|
+
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$5}__input-native`;
|
|
12437
12448
|
|
|
12438
12449
|
/**
|
|
12439
12450
|
* Component default props.
|
|
12440
12451
|
*/
|
|
12441
|
-
const DEFAULT_PROPS$
|
|
12452
|
+
const DEFAULT_PROPS$7 = {
|
|
12442
12453
|
type: 'text'
|
|
12443
12454
|
};
|
|
12444
12455
|
|
|
12445
12456
|
/**
|
|
12446
|
-
*
|
|
12447
|
-
*
|
|
12448
|
-
* @return rows to be used and a callback to recalculate
|
|
12457
|
+
* Raw input text component
|
|
12458
|
+
* (input element without any decoration)
|
|
12449
12459
|
*/
|
|
12450
|
-
const
|
|
12451
|
-
const
|
|
12452
|
-
const recompute = target => {
|
|
12453
|
-
/**
|
|
12454
|
-
* HEAD's UP! This part is a little bit tricky. The idea here is to only
|
|
12455
|
-
* display the necessary rows on the textarea. In order to dynamically adjust
|
|
12456
|
-
* the height on that field, we need to:
|
|
12457
|
-
* 1. Set the current amount of rows to the minimum. That will make the scroll appear.
|
|
12458
|
-
* 2. With that, we will have the `scrollHeight`, meaning the height of the container adjusted to the current content
|
|
12459
|
-
* 3. With the scroll height, we can figure out how many rows we need to use by dividing the scroll height
|
|
12460
|
-
* by the line height.
|
|
12461
|
-
* 4. With that number, we can readjust the number of rows on the text area. We need to do that here, if we leave that to
|
|
12462
|
-
* the state change through React, there are some scenarios (resize, hitting ENTER or BACKSPACE which add or remove lines)
|
|
12463
|
-
* when we will not see the update and the rows will be resized to the minimum.
|
|
12464
|
-
* 5. In case there is any other update on the component that changes the UI, we need to keep the number of rows
|
|
12465
|
-
* on the state in order to allow React to re-render. Therefore, we save them using `useState`
|
|
12466
|
-
*/
|
|
12467
|
-
// eslint-disable-next-line no-param-reassign
|
|
12468
|
-
target.rows = minimumRows;
|
|
12469
|
-
let currentRows = target.scrollHeight / (target.clientHeight / minimumRows);
|
|
12470
|
-
currentRows = currentRows >= minimumRows ? currentRows : minimumRows;
|
|
12471
|
-
// eslint-disable-next-line no-param-reassign
|
|
12472
|
-
target.rows = currentRows;
|
|
12473
|
-
setRows(currentRows);
|
|
12474
|
-
};
|
|
12475
|
-
return {
|
|
12476
|
-
recomputeNumberOfRows: recompute,
|
|
12477
|
-
rows
|
|
12478
|
-
};
|
|
12479
|
-
};
|
|
12480
|
-
const renderInputNative = props => {
|
|
12460
|
+
const RawInputText = forwardRef((props, ref) => {
|
|
12461
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12481
12462
|
const {
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
placeholder,
|
|
12485
|
-
multiline,
|
|
12463
|
+
className,
|
|
12464
|
+
theme = defaultTheme,
|
|
12486
12465
|
value,
|
|
12487
|
-
setFocus,
|
|
12488
12466
|
onChange,
|
|
12489
|
-
|
|
12490
|
-
onBlur,
|
|
12491
|
-
inputRef,
|
|
12492
|
-
rows,
|
|
12493
|
-
recomputeNumberOfRows,
|
|
12494
|
-
type,
|
|
12495
|
-
name,
|
|
12496
|
-
hasError,
|
|
12497
|
-
describedById,
|
|
12498
|
-
element,
|
|
12467
|
+
type = DEFAULT_PROPS$7.type,
|
|
12499
12468
|
...forwardedProps
|
|
12500
12469
|
} = props;
|
|
12501
|
-
|
|
12502
|
-
const
|
|
12470
|
+
const textareaRef = useRef(null);
|
|
12471
|
+
const {
|
|
12472
|
+
block
|
|
12473
|
+
} = useClassnames(INPUT_NATIVE_CLASSNAME);
|
|
12474
|
+
const handleChange = useCallback(evt => {
|
|
12475
|
+
onChange?.(evt.target.value, evt.target.name, evt);
|
|
12476
|
+
}, [onChange]);
|
|
12477
|
+
return /*#__PURE__*/jsx("input", {
|
|
12478
|
+
...forwardedProps,
|
|
12479
|
+
type: type,
|
|
12480
|
+
ref: useMergeRefs(ref, textareaRef),
|
|
12481
|
+
className: block({
|
|
12482
|
+
[`theme-${theme}`]: Boolean(theme)
|
|
12483
|
+
}, [className]),
|
|
12484
|
+
onChange: handleChange,
|
|
12485
|
+
value: value
|
|
12486
|
+
});
|
|
12487
|
+
});
|
|
12503
12488
|
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12489
|
+
/**
|
|
12490
|
+
* Fit textarea rows to its content
|
|
12491
|
+
*/
|
|
12492
|
+
function useFitRowsToContent(minimumRows, textareaRef, value) {
|
|
12493
|
+
const [rows, setRows] = useState(minimumRows);
|
|
12494
|
+
React__default.useLayoutEffect(() => {
|
|
12495
|
+
const {
|
|
12496
|
+
current: textarea
|
|
12497
|
+
} = textareaRef;
|
|
12498
|
+
if (!textarea) {
|
|
12499
|
+
return;
|
|
12509
12500
|
}
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12501
|
+
|
|
12502
|
+
// Save the current number of rows to restore it later and avoid a flicker.
|
|
12503
|
+
const previousRows = textarea.rows;
|
|
12504
|
+
|
|
12505
|
+
// Set the rows to the minimum to get a baseline for row height.
|
|
12506
|
+
// This is necessary to get a consistent row height calculation.
|
|
12507
|
+
textarea.rows = minimumRows;
|
|
12508
|
+
const rowHeight = textarea.clientHeight / minimumRows;
|
|
12509
|
+
|
|
12510
|
+
// Set rows to 1 to get the smallest possible textarea, which forces
|
|
12511
|
+
// scrollHeight to be the actual content height.
|
|
12512
|
+
textarea.rows = 1;
|
|
12513
|
+
const {
|
|
12514
|
+
scrollHeight
|
|
12515
|
+
} = textarea;
|
|
12516
|
+
|
|
12517
|
+
// Restore the rows to the previous value.
|
|
12518
|
+
textarea.rows = previousRows;
|
|
12519
|
+
|
|
12520
|
+
// Calculate the number of rows required to display the content.
|
|
12521
|
+
// Fallback to `minimumRows` if `rowHeight` is 0.
|
|
12522
|
+
const requiredRows = rowHeight > 0 ? Math.ceil(scrollHeight / rowHeight) : minimumRows;
|
|
12523
|
+
|
|
12524
|
+
// Update the rows state with the new calculated value.
|
|
12525
|
+
setRows(Math.max(requiredRows, minimumRows));
|
|
12526
|
+
}, [value, minimumRows, textareaRef]);
|
|
12527
|
+
return rows;
|
|
12528
|
+
}
|
|
12529
|
+
|
|
12530
|
+
/**
|
|
12531
|
+
* Component default props.
|
|
12532
|
+
*/
|
|
12533
|
+
const DEFAULT_PROPS$6 = {
|
|
12534
|
+
minimumRows: 2
|
|
12535
|
+
};
|
|
12536
|
+
|
|
12537
|
+
/**
|
|
12538
|
+
* Raw input text area component
|
|
12539
|
+
* (textarea element without any decoration)
|
|
12540
|
+
*/
|
|
12541
|
+
const RawInputTextarea = forwardRef((props, ref) => {
|
|
12542
|
+
const defaultTheme = useTheme() || Theme.light;
|
|
12543
|
+
const {
|
|
12544
|
+
className,
|
|
12545
|
+
theme = defaultTheme,
|
|
12546
|
+
minimumRows = DEFAULT_PROPS$6.minimumRows,
|
|
12528
12547
|
value,
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12548
|
+
onChange,
|
|
12549
|
+
...forwardedProps
|
|
12550
|
+
} = props;
|
|
12551
|
+
const textareaRef = useRef(null);
|
|
12552
|
+
const rows = useFitRowsToContent(minimumRows, textareaRef, value);
|
|
12553
|
+
const {
|
|
12554
|
+
block
|
|
12555
|
+
} = useClassnames(INPUT_NATIVE_CLASSNAME);
|
|
12556
|
+
const handleChange = useCallback(evt => {
|
|
12557
|
+
onChange?.(evt.target.value, evt.target.name, evt);
|
|
12558
|
+
}, [onChange]);
|
|
12559
|
+
return /*#__PURE__*/jsx("textarea", {
|
|
12560
|
+
className: block({
|
|
12561
|
+
[`theme-${theme}`]: Boolean(theme)
|
|
12562
|
+
}, [className]),
|
|
12563
|
+
ref: useMergeRefs(ref, textareaRef),
|
|
12564
|
+
...forwardedProps,
|
|
12533
12565
|
onChange: handleChange,
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
readOnly: forwardedProps.readOnly || forwardedProps['aria-disabled'],
|
|
12537
|
-
ref: mergeRefs(inputRef, ref)
|
|
12538
|
-
};
|
|
12539
|
-
if (multiline) {
|
|
12540
|
-
inputProps.rows = rows;
|
|
12541
|
-
} else {
|
|
12542
|
-
inputProps.type = type;
|
|
12543
|
-
}
|
|
12544
|
-
return /*#__PURE__*/jsx(Component, {
|
|
12545
|
-
...inputProps
|
|
12566
|
+
value: value,
|
|
12567
|
+
rows: rows
|
|
12546
12568
|
});
|
|
12569
|
+
});
|
|
12570
|
+
|
|
12571
|
+
/**
|
|
12572
|
+
* Component default props.
|
|
12573
|
+
*/
|
|
12574
|
+
const DEFAULT_PROPS$5 = {
|
|
12575
|
+
type: 'text'
|
|
12547
12576
|
};
|
|
12548
12577
|
|
|
12549
12578
|
/**
|
|
@@ -12612,10 +12641,6 @@ const TextField = forwardRef((props, ref) => {
|
|
|
12612
12641
|
const describedByIds = [errorId, helperId, forwardedProps['aria-describedby']].filter(Boolean);
|
|
12613
12642
|
const describedById = describedByIds.length === 0 ? undefined : describedByIds.join(' ');
|
|
12614
12643
|
const [isFocus, setFocus] = useState(false);
|
|
12615
|
-
const {
|
|
12616
|
-
rows,
|
|
12617
|
-
recomputeNumberOfRows
|
|
12618
|
-
} = useComputeNumberOfRows(multiline ? minimumRows || DEFAULT_MIN_ROWS : 0);
|
|
12619
12644
|
const valueLength = (value || '').length;
|
|
12620
12645
|
const isNotEmpty = valueLength > 0;
|
|
12621
12646
|
|
|
@@ -12640,6 +12665,37 @@ const TextField = forwardRef((props, ref) => {
|
|
|
12640
12665
|
inputElement.current.focus();
|
|
12641
12666
|
}
|
|
12642
12667
|
};
|
|
12668
|
+
const inputProps = {
|
|
12669
|
+
id: textFieldId,
|
|
12670
|
+
ref: inputRef,
|
|
12671
|
+
...disabledStateProps,
|
|
12672
|
+
...forwardedProps,
|
|
12673
|
+
required: isRequired,
|
|
12674
|
+
maxLength,
|
|
12675
|
+
onBlur(evt) {
|
|
12676
|
+
setFocus(false);
|
|
12677
|
+
onBlur?.(evt);
|
|
12678
|
+
},
|
|
12679
|
+
onFocus(evt) {
|
|
12680
|
+
setFocus(true);
|
|
12681
|
+
onFocus?.(evt);
|
|
12682
|
+
},
|
|
12683
|
+
placeholder,
|
|
12684
|
+
value,
|
|
12685
|
+
onChange,
|
|
12686
|
+
name,
|
|
12687
|
+
'aria-invalid': hasError || undefined,
|
|
12688
|
+
'aria-describedby': describedById,
|
|
12689
|
+
readOnly: forwardedProps.readOnly || disabledStateProps['aria-disabled'],
|
|
12690
|
+
theme
|
|
12691
|
+
};
|
|
12692
|
+
const input = multiline ? /*#__PURE__*/jsx(RawInputTextarea, {
|
|
12693
|
+
...inputProps,
|
|
12694
|
+
minimumRows: minimumRows
|
|
12695
|
+
}) : /*#__PURE__*/jsx(RawInputText, {
|
|
12696
|
+
type: type,
|
|
12697
|
+
...inputProps
|
|
12698
|
+
});
|
|
12643
12699
|
return /*#__PURE__*/jsxs("div", {
|
|
12644
12700
|
ref: ref,
|
|
12645
12701
|
className: block({
|
|
@@ -12683,54 +12739,12 @@ const TextField = forwardRef((props, ref) => {
|
|
|
12683
12739
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
12684
12740
|
icon: icon,
|
|
12685
12741
|
size: Size.xs
|
|
12686
|
-
}), chips
|
|
12742
|
+
}), chips ? /*#__PURE__*/jsxs("div", {
|
|
12687
12743
|
className: element('chips'),
|
|
12688
|
-
children: [chips,
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
isRequired,
|
|
12693
|
-
maxLength,
|
|
12694
|
-
multiline,
|
|
12695
|
-
onBlur,
|
|
12696
|
-
onChange,
|
|
12697
|
-
onFocus,
|
|
12698
|
-
placeholder,
|
|
12699
|
-
recomputeNumberOfRows,
|
|
12700
|
-
rows,
|
|
12701
|
-
setFocus,
|
|
12702
|
-
type,
|
|
12703
|
-
value,
|
|
12704
|
-
name,
|
|
12705
|
-
hasError,
|
|
12706
|
-
describedById,
|
|
12707
|
-
element,
|
|
12708
|
-
...forwardedProps
|
|
12709
|
-
})]
|
|
12710
|
-
}), !chips && /*#__PURE__*/jsx("div", {
|
|
12711
|
-
className: element('input-wrapper'),
|
|
12712
|
-
children: renderInputNative({
|
|
12713
|
-
id: textFieldId,
|
|
12714
|
-
inputRef,
|
|
12715
|
-
...disabledStateProps,
|
|
12716
|
-
isRequired,
|
|
12717
|
-
maxLength,
|
|
12718
|
-
multiline,
|
|
12719
|
-
onBlur,
|
|
12720
|
-
onChange,
|
|
12721
|
-
onFocus,
|
|
12722
|
-
placeholder,
|
|
12723
|
-
recomputeNumberOfRows,
|
|
12724
|
-
rows,
|
|
12725
|
-
setFocus,
|
|
12726
|
-
type,
|
|
12727
|
-
value,
|
|
12728
|
-
name,
|
|
12729
|
-
hasError,
|
|
12730
|
-
describedById,
|
|
12731
|
-
element,
|
|
12732
|
-
...forwardedProps
|
|
12733
|
-
})
|
|
12744
|
+
children: [chips, input]
|
|
12745
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
12746
|
+
className: element(`input-wrapper`),
|
|
12747
|
+
children: input
|
|
12734
12748
|
}), (isValid || hasError) && /*#__PURE__*/jsx(Icon, {
|
|
12735
12749
|
className: element('input-validity'),
|
|
12736
12750
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
@@ -13457,7 +13471,7 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
13457
13471
|
className: block({
|
|
13458
13472
|
[`position-${position}`]: Boolean(position),
|
|
13459
13473
|
'is-initializing': !styles.popper?.transform
|
|
13460
|
-
}, [className, isHidden &&
|
|
13474
|
+
}, [className, isHidden && cls.visuallyHidden()]),
|
|
13461
13475
|
style: {
|
|
13462
13476
|
...(isHidden ? undefined : styles.popper),
|
|
13463
13477
|
zIndex
|
|
@@ -13606,7 +13620,7 @@ const Uploader = forwardRef((props, ref) => {
|
|
|
13606
13620
|
}), fileInputProps && /*#__PURE__*/jsx("input", {
|
|
13607
13621
|
type: "file",
|
|
13608
13622
|
id: inputId,
|
|
13609
|
-
className:
|
|
13623
|
+
className: element('input', [cls.visuallyHidden()]),
|
|
13610
13624
|
...disabledStateProps,
|
|
13611
13625
|
...fileInputProps,
|
|
13612
13626
|
readOnly: isAnyDisabled,
|
|
@@ -13756,5 +13770,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
13756
13770
|
UserBlock.className = CLASSNAME;
|
|
13757
13771
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
13758
13772
|
|
|
13759
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup,
|
|
13773
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, 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 };
|
|
13760
13774
|
//# sourceMappingURL=index.js.map
|