@lumx/react 3.20.1-alpha.4 → 3.20.1-alpha.6
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/index.js.map +1 -1
- package/index.d.ts +35 -34
- package/index.js +778 -651
- package/index.js.map +1 -1
- package/package.json +13 -12
- package/src/components/alert-dialog/AlertDialog.stories.tsx +1 -1
- package/src/components/alert-dialog/AlertDialog.test.tsx +3 -4
- package/src/components/autocomplete/Autocomplete.stories.tsx +1 -1
- package/src/components/autocomplete/Autocomplete.test.tsx +3 -5
- package/src/components/autocomplete/Autocomplete.tsx +1 -1
- package/src/components/autocomplete/AutocompleteMultiple.stories.tsx +1 -1
- package/src/components/autocomplete/AutocompleteMultiple.test.tsx +0 -2
- package/src/components/autocomplete/AutocompleteMultiple.tsx +1 -1
- package/src/components/avatar/Avatar.stories.tsx +0 -2
- package/src/components/avatar/Avatar.test.tsx +0 -2
- package/src/components/avatar/Avatar.tsx +1 -1
- package/src/components/badge/Badge.stories.tsx +0 -1
- package/src/components/badge/Badge.test.tsx +0 -2
- package/src/components/badge/Badge.tsx +1 -1
- package/src/components/badge/BadgeWrapper.stories.tsx +0 -1
- package/src/components/badge/BadgeWrapper.test.tsx +0 -2
- package/src/components/badge/BadgeWrapper.tsx +1 -1
- package/src/components/button/Button.stories.tsx +0 -1
- package/src/components/button/Button.test.tsx +9 -11
- package/src/components/button/Button.tsx +0 -2
- package/src/components/button/ButtonGroup.stories.tsx +0 -2
- package/src/components/button/ButtonGroup.test.tsx +0 -2
- package/src/components/button/ButtonGroup.tsx +0 -2
- package/src/components/button/ButtonRoot.tsx +7 -37
- package/src/components/button/IconButton.test.tsx +0 -2
- package/src/components/button/IconButton.tsx +0 -2
- package/src/components/checkbox/Checkbox.test.tsx +3 -5
- package/src/components/chip/Chip.stories.tsx +0 -2
- package/src/components/chip/Chip.test.tsx +19 -19
- package/src/components/chip/Chip.tsx +1 -1
- package/src/components/chip/ChipGroup.stories.tsx +0 -2
- package/src/components/chip/ChipGroup.test.tsx +0 -2
- package/src/components/chip/ChipGroup.tsx +1 -1
- package/src/components/comment-block/CommentBlock.stories.tsx +0 -1
- package/src/components/comment-block/CommentBlock.test.tsx +0 -1
- package/src/components/comment-block/CommentBlock.tsx +1 -1
- package/src/components/date-picker/DatePicker.test.tsx +3 -5
- package/src/components/date-picker/DatePicker.tsx +1 -1
- package/src/components/date-picker/DatePickerControlled.test.tsx +6 -8
- package/src/components/date-picker/DatePickerField.test.tsx +3 -5
- package/src/components/dialog/Dialog.test.tsx +4 -6
- package/src/components/divider/Divider.test.tsx +0 -2
- package/src/components/divider/Divider.tsx +0 -2
- package/src/components/drag-handle/DragHandle.test.tsx +0 -2
- package/src/components/drag-handle/DragHandle.tsx +0 -2
- package/src/components/dropdown/Dropdown.stories.tsx +1 -1
- package/src/components/dropdown/Dropdown.test.tsx +3 -3
- package/src/components/dropdown/Dropdown.tsx +1 -1
- package/src/components/expansion-panel/ExpansionPanel.test.tsx +6 -7
- package/src/components/flag/Flag.test.tsx +0 -2
- package/src/components/flag/Flag.tsx +0 -2
- package/src/components/flex-box/FlexBox.stories.tsx +0 -2
- package/src/components/flex-box/FlexBox.test.tsx +0 -1
- package/src/components/flex-box/FlexBox.tsx +1 -1
- package/src/components/generic-block/GenericBlock.test.tsx +1 -1
- package/src/components/grid/Grid.tsx +0 -2
- package/src/components/grid/GridItem.tsx +0 -2
- package/src/components/grid-column/GridColumn.stories.tsx +0 -1
- package/src/components/grid-column/GridColumn.test.jsx +0 -2
- package/src/components/grid-column/GridColumn.tsx +1 -1
- package/src/components/heading/Heading.stories.tsx +0 -1
- package/src/components/heading/Heading.test.tsx +0 -2
- package/src/components/heading/Heading.tsx +0 -2
- package/src/components/heading/HeadingLevelProvider.tsx +1 -1
- package/src/components/icon/Icon.stories.tsx +30 -4
- package/src/components/icon/Icon.test.tsx +85 -4
- package/src/components/icon/Icon.tsx +0 -2
- package/src/components/image-block/ImageBlock.stories.tsx +0 -2
- package/src/components/image-block/ImageBlock.test.tsx +0 -1
- package/src/components/image-block/ImageBlock.tsx +1 -1
- package/src/components/image-block/ImageCaption.tsx +1 -1
- package/src/components/image-lightbox/ImageLightbox.stories.tsx +0 -1
- package/src/components/image-lightbox/ImageLightbox.test.tsx +11 -9
- package/src/components/image-lightbox/types.ts +0 -2
- package/src/components/inline-list/InlineList.stories.tsx +0 -1
- package/src/components/inline-list/InlineList.test.tsx +0 -2
- package/src/components/inline-list/InlineList.tsx +1 -1
- package/src/components/input-helper/InputHelper.test.tsx +0 -2
- package/src/components/input-helper/InputHelper.tsx +1 -1
- package/src/components/input-label/InputLabel.stories.tsx +0 -2
- package/src/components/input-label/InputLabel.test.tsx +0 -2
- package/src/components/input-label/InputLabel.tsx +1 -1
- package/src/components/lightbox/Lightbox.test.tsx +0 -2
- package/src/components/lightbox/Lightbox.tsx +1 -1
- package/src/components/link/Link.stories.tsx +0 -1
- package/src/components/link/Link.test.tsx +13 -13
- package/src/components/link/Link.tsx +9 -22
- package/src/components/link-preview/LinkPreview.test.tsx +0 -2
- package/src/components/link-preview/LinkPreview.tsx +0 -2
- package/src/components/list/List.stories.tsx +1 -1
- package/src/components/list/List.test.tsx +0 -2
- package/src/components/list/List.tsx +1 -1
- package/src/components/list/ListDivider.test.tsx +0 -2
- package/src/components/list/ListDivider.tsx +0 -2
- package/src/components/list/ListItem.test.tsx +5 -7
- package/src/components/list/ListItem.tsx +1 -1
- package/src/components/list/ListSubheader.test.tsx +0 -2
- package/src/components/list/ListSubheader.tsx +1 -1
- package/src/components/message/Message.test.tsx +1 -2
- package/src/components/message/Message.tsx +1 -1
- package/src/components/mosaic/Mosaic.test.tsx +3 -5
- package/src/components/mosaic/Mosaic.tsx +1 -1
- package/src/components/navigation/Navigation.stories.tsx +0 -2
- package/src/components/navigation/Navigation.test.tsx +0 -2
- package/src/components/navigation/Navigation.tsx +0 -2
- package/src/components/navigation/NavigationItem.test.tsx +0 -2
- package/src/components/navigation/NavigationItem.tsx +7 -11
- package/src/components/navigation/NavigationSection.test.tsx +0 -2
- package/src/components/navigation/NavigationSection.tsx +5 -4
- package/src/components/notification/Notification.test.tsx +4 -5
- package/src/components/notification/Notification.tsx +1 -1
- package/src/components/popover/Popover.test.tsx +0 -2
- package/src/components/popover/Popover.tsx +1 -1
- package/src/components/popover/usePopoverStyle.tsx +1 -1
- package/src/components/popover-dialog/PopoverDialog.test.tsx +1 -2
- package/src/components/popover-dialog/PopoverDialog.tsx +0 -2
- package/src/components/post-block/PostBlock.test.tsx +0 -2
- package/src/components/post-block/PostBlock.tsx +1 -1
- package/src/components/progress/Progress.tsx +0 -2
- package/src/components/progress/ProgressCircular.stories.tsx +0 -1
- package/src/components/progress/ProgressCircular.test.tsx +0 -2
- package/src/components/progress/ProgressCircular.tsx +0 -2
- package/src/components/progress/ProgressLinear.test.tsx +0 -2
- package/src/components/progress/ProgressLinear.tsx +0 -2
- package/src/components/progress-tracker/ProgressTracker.stories.tsx +1 -1
- package/src/components/progress-tracker/ProgressTracker.test.tsx +0 -2
- package/src/components/progress-tracker/ProgressTrackerProvider.test.tsx +0 -2
- package/src/components/progress-tracker/ProgressTrackerProvider.tsx +1 -1
- package/src/components/progress-tracker/ProgressTrackerStep.test.tsx +0 -2
- package/src/components/progress-tracker/ProgressTrackerStep.tsx +1 -1
- package/src/components/progress-tracker/ProgressTrackerStepPanel.test.tsx +0 -2
- package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +0 -2
- package/src/components/radio-button/RadioButton.test.tsx +3 -5
- package/src/components/radio-button/RadioButton.tsx +1 -1
- package/src/components/radio-button/RadioGroup.stories.tsx +1 -1
- package/src/components/radio-button/RadioGroup.test.tsx +0 -2
- package/src/components/radio-button/RadioGroup.tsx +1 -1
- package/src/components/select/Select.stories.tsx +1 -1
- package/src/components/select/Select.test.tsx +8 -9
- package/src/components/select/Select.tsx +1 -1
- package/src/components/select/SelectMultiple.stories.tsx +1 -1
- package/src/components/select/SelectMultiple.test.tsx +5 -7
- package/src/components/select/SelectMultiple.tsx +1 -1
- package/src/components/select/WithSelectContext.tsx +1 -1
- package/src/components/select/constants.ts +1 -1
- package/src/components/side-navigation/SideNavigation.test.tsx +0 -2
- package/src/components/side-navigation/SideNavigation.tsx +1 -1
- package/src/components/side-navigation/SideNavigationItem.test.tsx +2 -4
- package/src/components/side-navigation/SideNavigationItem.tsx +23 -28
- package/src/components/skeleton/SkeletonCircle.test.tsx +0 -2
- package/src/components/skeleton/SkeletonCircle.tsx +0 -2
- package/src/components/skeleton/SkeletonRectangle.test.tsx +0 -2
- package/src/components/skeleton/SkeletonRectangle.tsx +0 -2
- package/src/components/skeleton/SkeletonTypography.stories.tsx +0 -2
- package/src/components/skeleton/SkeletonTypography.test.tsx +0 -2
- package/src/components/skeleton/SkeletonTypography.tsx +1 -1
- package/src/components/slider/Slider.test.tsx +1 -3
- package/src/components/slider/Slider.tsx +1 -1
- package/src/components/slideshow/Slideshow.stories.tsx +0 -1
- package/src/components/slideshow/Slideshow.test.tsx +0 -2
- package/src/components/slideshow/SlideshowControls.stories.tsx +0 -2
- package/src/components/slideshow/SlideshowItem.tsx +0 -2
- package/src/components/slideshow/useSlideFocusManagement.tsx +1 -1
- package/src/components/switch/Switch.test.tsx +5 -7
- package/src/components/switch/Switch.tsx +1 -1
- package/src/components/table/Table.test.tsx +0 -2
- package/src/components/table/Table.tsx +0 -2
- package/src/components/table/TableBody.test.tsx +0 -2
- package/src/components/table/TableBody.tsx +0 -2
- package/src/components/table/TableCell.test.tsx +1 -3
- package/src/components/table/TableCell.tsx +0 -2
- package/src/components/table/TableHeader.test.tsx +0 -2
- package/src/components/table/TableHeader.tsx +0 -2
- package/src/components/table/TableRow.test.tsx +0 -2
- package/src/components/table/TableRow.tsx +0 -2
- package/src/components/tabs/Tab.test.tsx +0 -2
- package/src/components/tabs/Tab.tsx +1 -1
- package/src/components/tabs/TabList.test.tsx +0 -2
- package/src/components/tabs/TabPanel.test.tsx +0 -2
- package/src/components/tabs/TabPanel.tsx +0 -2
- package/src/components/tabs/TabProvider.test.tsx +0 -2
- package/src/components/tabs/TabProvider.tsx +1 -1
- package/src/components/tabs/Tabs.stories.tsx +1 -1
- package/src/components/text/Text.stories.tsx +1 -1
- package/src/components/text/Text.test.tsx +0 -2
- package/src/components/text/Text.tsx +0 -2
- package/src/components/text-field/TextField.test.tsx +9 -10
- package/src/components/text-field/TextField.tsx +1 -1
- package/src/components/thumbnail/Thumbnail.test.tsx +29 -7
- package/src/components/thumbnail/Thumbnail.tsx +11 -11
- package/src/components/toolbar/Toolbar.tsx +1 -1
- package/src/components/tooltip/Tooltip.stories.tsx +2 -1
- package/src/components/tooltip/Tooltip.test.tsx +14 -8
- package/src/components/uploader/Uploader.test.tsx +2 -4
- package/src/components/user-block/UserBlock.stories.tsx +0 -2
- package/src/components/user-block/UserBlock.test.tsx +1 -3
- package/src/hooks/useId.test.tsx +0 -1
- package/src/hooks/useInfiniteScroll.tsx +1 -1
- package/src/hooks/usePreviousValue.ts +0 -1
- package/src/stories/decorators/withChromaticForceScreenSize.tsx +0 -1
- package/src/stories/decorators/withNestedProps.tsx +0 -1
- package/src/stories/decorators/withThemedBackground.tsx +0 -2
- package/src/stories/decorators/withWrapper.tsx +0 -2
- package/src/stories/utils/CustomLink.tsx +0 -1
- package/src/testing/utils/ThemeSentinel.tsx +0 -1
- package/src/untypped-modules.d.ts +4 -0
- package/src/utils/ClickAwayProvider/ClickAwayProvider.stories.jsx +1 -1
- package/src/utils/ClickAwayProvider/ClickAwayProvider.tsx +1 -1
- package/src/utils/MaterialThemeSwitcher/MaterialThemeSwitcher.tsx +1 -1
- package/src/utils/Portal/Portal.test.tsx +0 -1
- package/src/utils/Portal/PortalProvider.stories.jsx +0 -1
- package/src/utils/Portal/PortalProvider.test.tsx +1 -2
- package/src/utils/date/getYearDisplayName.test.ts +1 -1
- package/src/utils/disabled/DisabledStateProvider.stories.tsx +0 -2
- package/src/utils/disabled/useDisableStateProps.test.tsx +2 -2
- package/src/utils/react/OnBeforeUnmount.tsx +1 -1
- package/src/utils/react/RawClickable.test.tsx +153 -0
- package/src/utils/react/RawClickable.tsx +65 -0
- package/src/utils/react/skipRender.tsx +2 -2
- package/src/utils/react/wrapChildrenIconWithSpaces.test.tsx +1 -1
- package/src/utils/type/HasPolymorphicAs.ts +0 -2
- package/src/utils/type/HasRequiredLinkHref.ts +1 -0
- package/src/utils/type/index.ts +1 -0
- package/utils/index.d.ts +6 -6
- package/src/utils/react/renderButtonOrLink.tsx +0 -16
package/index.js
CHANGED
|
@@ -257,7 +257,7 @@ const ColorVariant = {
|
|
|
257
257
|
|
|
258
258
|
/** ColorPalette with all possible color variant combination */
|
|
259
259
|
|
|
260
|
-
var classnames = {exports: {}};
|
|
260
|
+
var classnames$1 = {exports: {}};
|
|
261
261
|
|
|
262
262
|
/*!
|
|
263
263
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -314,9 +314,9 @@ var classnames = {exports: {}};
|
|
|
314
314
|
window.classNames = classNames;
|
|
315
315
|
}
|
|
316
316
|
}());
|
|
317
|
-
}(classnames));
|
|
317
|
+
}(classnames$1));
|
|
318
318
|
|
|
319
|
-
var classNames = classnames.exports;
|
|
319
|
+
var classNames$1 = classnames$1.exports;
|
|
320
320
|
|
|
321
321
|
const mdiAlert = 'M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2z';
|
|
322
322
|
|
|
@@ -364,6 +364,67 @@ const mdiRadioboxBlank = 'M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0
|
|
|
364
364
|
|
|
365
365
|
const mdiRadioboxMarked = 'M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 5a5 5 0 0 0-5 5 5 5 0 0 0 5 5 5 5 0 0 0 5-5 5 5 0 0 0-5-5';
|
|
366
366
|
|
|
367
|
+
var classnames = {exports: {}};
|
|
368
|
+
|
|
369
|
+
/*!
|
|
370
|
+
Copyright (c) 2018 Jed Watson.
|
|
371
|
+
Licensed under the MIT License (MIT), see
|
|
372
|
+
http://jedwatson.github.io/classnames
|
|
373
|
+
*/
|
|
374
|
+
|
|
375
|
+
(function (module) {
|
|
376
|
+
/* global define */
|
|
377
|
+
|
|
378
|
+
(function () {
|
|
379
|
+
|
|
380
|
+
var hasOwn = {}.hasOwnProperty;
|
|
381
|
+
|
|
382
|
+
function classNames() {
|
|
383
|
+
var classes = [];
|
|
384
|
+
|
|
385
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
386
|
+
var arg = arguments[i];
|
|
387
|
+
if (!arg) continue;
|
|
388
|
+
|
|
389
|
+
var argType = typeof arg;
|
|
390
|
+
|
|
391
|
+
if (argType === 'string' || argType === 'number') {
|
|
392
|
+
classes.push(arg);
|
|
393
|
+
} else if (Array.isArray(arg)) {
|
|
394
|
+
if (arg.length) {
|
|
395
|
+
var inner = classNames.apply(null, arg);
|
|
396
|
+
if (inner) {
|
|
397
|
+
classes.push(inner);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
} else if (argType === 'object') {
|
|
401
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
402
|
+
classes.push(arg.toString());
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
for (var key in arg) {
|
|
407
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
408
|
+
classes.push(key);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
return classes.join(' ');
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (module.exports) {
|
|
418
|
+
classNames.default = classNames;
|
|
419
|
+
module.exports = classNames;
|
|
420
|
+
} else {
|
|
421
|
+
window.classNames = classNames;
|
|
422
|
+
}
|
|
423
|
+
}());
|
|
424
|
+
}(classnames));
|
|
425
|
+
|
|
426
|
+
var classNames = classnames.exports;
|
|
427
|
+
|
|
367
428
|
/**
|
|
368
429
|
* Get the basic CSS class for the given type.
|
|
369
430
|
*
|
|
@@ -391,7 +452,7 @@ function getBasicClass({
|
|
|
391
452
|
return `${prefix}--${kebabCase(type)}-${value}`;
|
|
392
453
|
}
|
|
393
454
|
|
|
394
|
-
const _excluded$
|
|
455
|
+
const _excluded$1v = ["prefix"];
|
|
395
456
|
|
|
396
457
|
/**
|
|
397
458
|
* Enhance isEmpty method to also works with numbers.
|
|
@@ -421,7 +482,7 @@ function handleBasicClasses(_ref) {
|
|
|
421
482
|
let {
|
|
422
483
|
prefix
|
|
423
484
|
} = _ref,
|
|
424
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
485
|
+
props = _objectWithoutProperties(_ref, _excluded$1v);
|
|
425
486
|
const otherClasses = {};
|
|
426
487
|
if (!isEmpty(props)) {
|
|
427
488
|
Object.keys(props).forEach(prop => {
|
|
@@ -500,7 +561,7 @@ function useId() {
|
|
|
500
561
|
*/
|
|
501
562
|
const forwardRef = React__default.forwardRef;
|
|
502
563
|
|
|
503
|
-
const _excluded$
|
|
564
|
+
const _excluded$1u = ["id", "title", "className", "cancelProps", "confirmProps", "kind", "size", "dialogProps", "children"],
|
|
504
565
|
_excluded2$3 = ["label", "onClick"],
|
|
505
566
|
_excluded3 = ["label", "onClick"];
|
|
506
567
|
/**
|
|
@@ -528,17 +589,17 @@ const CONFIG$1 = {
|
|
|
528
589
|
/**
|
|
529
590
|
* Component display name.
|
|
530
591
|
*/
|
|
531
|
-
const COMPONENT_NAME$
|
|
592
|
+
const COMPONENT_NAME$1o = 'AlertDialog';
|
|
532
593
|
|
|
533
594
|
/**
|
|
534
595
|
* Component default class name and class prefix.
|
|
535
596
|
*/
|
|
536
|
-
const CLASSNAME$
|
|
597
|
+
const CLASSNAME$1l = getRootClassName(COMPONENT_NAME$1o);
|
|
537
598
|
|
|
538
599
|
/**
|
|
539
600
|
* Component default props.
|
|
540
601
|
*/
|
|
541
|
-
const DEFAULT_PROPS$
|
|
602
|
+
const DEFAULT_PROPS$14 = {
|
|
542
603
|
size: Size.tiny,
|
|
543
604
|
kind: Kind.info
|
|
544
605
|
};
|
|
@@ -559,12 +620,12 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
559
620
|
className,
|
|
560
621
|
cancelProps,
|
|
561
622
|
confirmProps,
|
|
562
|
-
kind = DEFAULT_PROPS$
|
|
563
|
-
size = DEFAULT_PROPS$
|
|
623
|
+
kind = DEFAULT_PROPS$14.kind,
|
|
624
|
+
size = DEFAULT_PROPS$14.size,
|
|
564
625
|
dialogProps,
|
|
565
626
|
children
|
|
566
627
|
} = props,
|
|
567
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
628
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1u);
|
|
568
629
|
const cancelButtonRef = React__default.useRef(null);
|
|
569
630
|
const confirmationButtonRef = React__default.useRef(null);
|
|
570
631
|
const {
|
|
@@ -601,9 +662,9 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
601
662
|
'aria-labelledby': titleId,
|
|
602
663
|
'aria-describedby': descriptionId
|
|
603
664
|
}, dialogProps),
|
|
604
|
-
className: classNames(className, handleBasicClasses({
|
|
665
|
+
className: classNames$1(className, handleBasicClasses({
|
|
605
666
|
kind,
|
|
606
|
-
prefix: CLASSNAME$
|
|
667
|
+
prefix: CLASSNAME$1l
|
|
607
668
|
}))
|
|
608
669
|
}, forwardedProps), {}, {
|
|
609
670
|
children: [/*#__PURE__*/jsx("header", {
|
|
@@ -645,9 +706,9 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
645
706
|
})]
|
|
646
707
|
}));
|
|
647
708
|
});
|
|
648
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
649
|
-
AlertDialog.className = CLASSNAME$
|
|
650
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
709
|
+
AlertDialog.displayName = COMPONENT_NAME$1o;
|
|
710
|
+
AlertDialog.className = CLASSNAME$1l;
|
|
711
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$14;
|
|
651
712
|
|
|
652
713
|
/**
|
|
653
714
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -703,7 +764,7 @@ function useTheme() {
|
|
|
703
764
|
return React__default.useContext(ThemeContext);
|
|
704
765
|
}
|
|
705
766
|
|
|
706
|
-
const _excluded$
|
|
767
|
+
const _excluded$1t = ["disabled", "isDisabled", "aria-disabled", "onClick", "onChange"];
|
|
707
768
|
/**
|
|
708
769
|
* Resolve disabled state from props.
|
|
709
770
|
* (handles `disabled`, `isDisabled` and `aria-disabled`)
|
|
@@ -718,7 +779,7 @@ function useDisableStateProps(props) {
|
|
|
718
779
|
onClick,
|
|
719
780
|
onChange
|
|
720
781
|
} = props,
|
|
721
|
-
otherProps = _objectWithoutProperties(props, _excluded$
|
|
782
|
+
otherProps = _objectWithoutProperties(props, _excluded$1t);
|
|
722
783
|
const disabledStateContext = useDisabledStateContext();
|
|
723
784
|
const disabledStateProps = {
|
|
724
785
|
disabled: (disabledStateContext === null || disabledStateContext === void 0 ? void 0 : disabledStateContext.state) === 'disabled' || isDisabled,
|
|
@@ -736,21 +797,21 @@ function useDisableStateProps(props) {
|
|
|
736
797
|
};
|
|
737
798
|
}
|
|
738
799
|
|
|
739
|
-
const _excluded$
|
|
800
|
+
const _excluded$1s = ["anchorToInput", "children", "chips", "className", "closeOnClick", "closeOnClickAway", "closeOnEscape", "error", "fitToAnchorWidth", "hasError", "helper", "icon", "inputRef", "clearButtonProps", "isRequired", "isOpen", "isValid", "label", "name", "offset", "onBlur", "onChange", "onClose", "onFocus", "onInfiniteScroll", "placeholder", "placement", "shouldFocusOnClose", "theme", "value", "textFieldProps", "focusAnchorOnClose"];
|
|
740
801
|
/**
|
|
741
802
|
* Component display name.
|
|
742
803
|
*/
|
|
743
|
-
const COMPONENT_NAME$
|
|
804
|
+
const COMPONENT_NAME$1n = 'Autocomplete';
|
|
744
805
|
|
|
745
806
|
/**
|
|
746
807
|
* Component default class name and class prefix.
|
|
747
808
|
*/
|
|
748
|
-
const CLASSNAME$
|
|
809
|
+
const CLASSNAME$1k = getRootClassName(COMPONENT_NAME$1n);
|
|
749
810
|
|
|
750
811
|
/**
|
|
751
812
|
* Component default props.
|
|
752
813
|
*/
|
|
753
|
-
const DEFAULT_PROPS$
|
|
814
|
+
const DEFAULT_PROPS$13 = {
|
|
754
815
|
anchorToInput: false,
|
|
755
816
|
closeOnClick: false,
|
|
756
817
|
closeOnClickAway: true,
|
|
@@ -772,13 +833,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
772
833
|
otherProps
|
|
773
834
|
} = useDisableStateProps(props);
|
|
774
835
|
const {
|
|
775
|
-
anchorToInput = DEFAULT_PROPS$
|
|
836
|
+
anchorToInput = DEFAULT_PROPS$13.anchorToInput,
|
|
776
837
|
children,
|
|
777
838
|
chips,
|
|
778
839
|
className,
|
|
779
|
-
closeOnClick = DEFAULT_PROPS$
|
|
780
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
781
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
840
|
+
closeOnClick = DEFAULT_PROPS$13.closeOnClick,
|
|
841
|
+
closeOnClickAway = DEFAULT_PROPS$13.closeOnClickAway,
|
|
842
|
+
closeOnEscape = DEFAULT_PROPS$13.closeOnEscape,
|
|
782
843
|
error,
|
|
783
844
|
fitToAnchorWidth,
|
|
784
845
|
hasError,
|
|
@@ -799,20 +860,20 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
799
860
|
onInfiniteScroll,
|
|
800
861
|
placeholder,
|
|
801
862
|
placement,
|
|
802
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
863
|
+
shouldFocusOnClose = DEFAULT_PROPS$13.shouldFocusOnClose,
|
|
803
864
|
theme = defaultTheme,
|
|
804
865
|
value,
|
|
805
866
|
textFieldProps = {},
|
|
806
867
|
focusAnchorOnClose
|
|
807
868
|
} = otherProps,
|
|
808
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
869
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$1s);
|
|
809
870
|
const inputAnchorRef = useRef(null);
|
|
810
871
|
const textFieldRef = useRef(null);
|
|
811
872
|
useFocus(inputAnchorRef.current, !isOpen && shouldFocusOnClose);
|
|
812
873
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
813
874
|
ref: ref
|
|
814
875
|
}, forwardedProps), {}, {
|
|
815
|
-
className: classNames(className, CLASSNAME$
|
|
876
|
+
className: classNames$1(className, CLASSNAME$1k),
|
|
816
877
|
children: [/*#__PURE__*/jsx(TextField, _objectSpread2(_objectSpread2(_objectSpread2({}, textFieldProps), {}, {
|
|
817
878
|
chips: chips,
|
|
818
879
|
error: error,
|
|
@@ -851,25 +912,25 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
851
912
|
})]
|
|
852
913
|
}));
|
|
853
914
|
});
|
|
854
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
855
|
-
Autocomplete.className = CLASSNAME$
|
|
856
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
915
|
+
Autocomplete.displayName = COMPONENT_NAME$1n;
|
|
916
|
+
Autocomplete.className = CLASSNAME$1k;
|
|
917
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$13;
|
|
857
918
|
|
|
858
|
-
const _excluded$
|
|
919
|
+
const _excluded$1r = ["anchorToInput", "children", "chipsAlignment", "className", "closeOnClickAway", "closeOnEscape", "fitToAnchorWidth", "hasError", "helper", "icon", "inputRef", "clearButtonProps", "isRequired", "isOpen", "isValid", "label", "name", "offset", "onBlur", "onChange", "onClear", "onClose", "onFocus", "onInfiniteScroll", "onKeyDown", "placeholder", "placement", "selectedChipRender", "shouldFocusOnClose", "theme", "type", "value", "values"];
|
|
859
920
|
/**
|
|
860
921
|
* Component display name.
|
|
861
922
|
*/
|
|
862
|
-
const COMPONENT_NAME$
|
|
923
|
+
const COMPONENT_NAME$1m = 'AutocompleteMultiple';
|
|
863
924
|
|
|
864
925
|
/**
|
|
865
926
|
* Component default class name and class prefix.
|
|
866
927
|
*/
|
|
867
|
-
const CLASSNAME$
|
|
928
|
+
const CLASSNAME$1j = getRootClassName(COMPONENT_NAME$1m);
|
|
868
929
|
|
|
869
930
|
/**
|
|
870
931
|
* Component default props.
|
|
871
932
|
*/
|
|
872
|
-
const DEFAULT_PROPS$
|
|
933
|
+
const DEFAULT_PROPS$12 = {
|
|
873
934
|
closeOnClickAway: true,
|
|
874
935
|
closeOnEscape: true,
|
|
875
936
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -909,8 +970,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
909
970
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
910
971
|
chipsAlignment,
|
|
911
972
|
className,
|
|
912
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
913
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
973
|
+
closeOnClickAway = DEFAULT_PROPS$12.closeOnClickAway,
|
|
974
|
+
closeOnEscape = DEFAULT_PROPS$12.closeOnEscape,
|
|
914
975
|
fitToAnchorWidth,
|
|
915
976
|
hasError,
|
|
916
977
|
helper,
|
|
@@ -932,19 +993,19 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
932
993
|
onKeyDown,
|
|
933
994
|
placeholder,
|
|
934
995
|
placement,
|
|
935
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
996
|
+
selectedChipRender = DEFAULT_PROPS$12.selectedChipRender,
|
|
936
997
|
shouldFocusOnClose,
|
|
937
998
|
theme = defaultTheme,
|
|
938
999
|
type,
|
|
939
1000
|
value,
|
|
940
|
-
values = DEFAULT_PROPS$
|
|
1001
|
+
values = DEFAULT_PROPS$12.values
|
|
941
1002
|
} = otherProps,
|
|
942
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
1003
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$1r);
|
|
943
1004
|
return /*#__PURE__*/jsx(Autocomplete, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
944
1005
|
ref: ref
|
|
945
1006
|
}, forwardedProps), {}, {
|
|
946
1007
|
anchorToInput: anchorToInput,
|
|
947
|
-
className: classNames(className, CLASSNAME$
|
|
1008
|
+
className: classNames$1(className, CLASSNAME$1j),
|
|
948
1009
|
name: name,
|
|
949
1010
|
value: value,
|
|
950
1011
|
onChange: onChange,
|
|
@@ -977,25 +1038,25 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
977
1038
|
children: children
|
|
978
1039
|
}));
|
|
979
1040
|
});
|
|
980
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
981
|
-
AutocompleteMultiple.className = CLASSNAME$
|
|
982
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
1041
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1m;
|
|
1042
|
+
AutocompleteMultiple.className = CLASSNAME$1j;
|
|
1043
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$12;
|
|
983
1044
|
|
|
984
|
-
const _excluded$
|
|
1045
|
+
const _excluded$1q = ["actions", "alt", "badge", "className", "image", "linkProps", "linkAs", "onClick", "onKeyPress", "size", "theme", "thumbnailProps"];
|
|
985
1046
|
/**
|
|
986
1047
|
* Component display name.
|
|
987
1048
|
*/
|
|
988
|
-
const COMPONENT_NAME$
|
|
1049
|
+
const COMPONENT_NAME$1l = 'Avatar';
|
|
989
1050
|
|
|
990
1051
|
/**
|
|
991
1052
|
* Component default class name and class prefix.
|
|
992
1053
|
*/
|
|
993
|
-
const CLASSNAME$
|
|
1054
|
+
const CLASSNAME$1i = getRootClassName(COMPONENT_NAME$1l);
|
|
994
1055
|
|
|
995
1056
|
/**
|
|
996
1057
|
* Component default props.
|
|
997
1058
|
*/
|
|
998
|
-
const DEFAULT_PROPS$
|
|
1059
|
+
const DEFAULT_PROPS$11 = {
|
|
999
1060
|
size: Size.m
|
|
1000
1061
|
};
|
|
1001
1062
|
|
|
@@ -1018,23 +1079,23 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1018
1079
|
linkAs,
|
|
1019
1080
|
onClick,
|
|
1020
1081
|
onKeyPress,
|
|
1021
|
-
size = DEFAULT_PROPS$
|
|
1082
|
+
size = DEFAULT_PROPS$11.size,
|
|
1022
1083
|
theme = defaultTheme,
|
|
1023
1084
|
thumbnailProps
|
|
1024
1085
|
} = props,
|
|
1025
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1086
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1q);
|
|
1026
1087
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
1027
1088
|
ref: ref
|
|
1028
1089
|
}, forwardedProps), {}, {
|
|
1029
|
-
className: classNames(className, handleBasicClasses({
|
|
1030
|
-
prefix: CLASSNAME$
|
|
1090
|
+
className: classNames$1(className, handleBasicClasses({
|
|
1091
|
+
prefix: CLASSNAME$1i,
|
|
1031
1092
|
size,
|
|
1032
1093
|
theme
|
|
1033
1094
|
})),
|
|
1034
1095
|
children: [/*#__PURE__*/jsx(Thumbnail, _objectSpread2(_objectSpread2({
|
|
1035
1096
|
linkProps: linkProps,
|
|
1036
1097
|
linkAs: linkAs,
|
|
1037
|
-
className: `${CLASSNAME$
|
|
1098
|
+
className: `${CLASSNAME$1i}__thumbnail`,
|
|
1038
1099
|
onClick: onClick,
|
|
1039
1100
|
onKeyPress: onKeyPress
|
|
1040
1101
|
}, thumbnailProps), {}, {
|
|
@@ -1044,33 +1105,33 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1044
1105
|
alt: alt,
|
|
1045
1106
|
theme: theme
|
|
1046
1107
|
})), actions && /*#__PURE__*/jsx("div", {
|
|
1047
|
-
className: `${CLASSNAME$
|
|
1108
|
+
className: `${CLASSNAME$1i}__actions`,
|
|
1048
1109
|
children: actions
|
|
1049
1110
|
}), badge && /*#__PURE__*/jsx("div", {
|
|
1050
|
-
className: `${CLASSNAME$
|
|
1111
|
+
className: `${CLASSNAME$1i}__badge`,
|
|
1051
1112
|
children: badge
|
|
1052
1113
|
})]
|
|
1053
1114
|
}));
|
|
1054
1115
|
});
|
|
1055
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
1056
|
-
Avatar.className = CLASSNAME$
|
|
1057
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
1116
|
+
Avatar.displayName = COMPONENT_NAME$1l;
|
|
1117
|
+
Avatar.className = CLASSNAME$1i;
|
|
1118
|
+
Avatar.defaultProps = DEFAULT_PROPS$11;
|
|
1058
1119
|
|
|
1059
|
-
const _excluded$
|
|
1120
|
+
const _excluded$1p = ["children", "className", "color"];
|
|
1060
1121
|
/**
|
|
1061
1122
|
* Component display name.
|
|
1062
1123
|
*/
|
|
1063
|
-
const COMPONENT_NAME$
|
|
1124
|
+
const COMPONENT_NAME$1k = 'Badge';
|
|
1064
1125
|
|
|
1065
1126
|
/**
|
|
1066
1127
|
* Component default class name and class prefix.
|
|
1067
1128
|
*/
|
|
1068
|
-
const CLASSNAME$
|
|
1129
|
+
const CLASSNAME$1h = getRootClassName(COMPONENT_NAME$1k);
|
|
1069
1130
|
|
|
1070
1131
|
/**
|
|
1071
1132
|
* Component default props.
|
|
1072
1133
|
*/
|
|
1073
|
-
const DEFAULT_PROPS
|
|
1134
|
+
const DEFAULT_PROPS$10 = {
|
|
1074
1135
|
color: ColorPalette.primary
|
|
1075
1136
|
};
|
|
1076
1137
|
|
|
@@ -1085,52 +1146,52 @@ const Badge = forwardRef((props, ref) => {
|
|
|
1085
1146
|
const {
|
|
1086
1147
|
children,
|
|
1087
1148
|
className,
|
|
1088
|
-
color = DEFAULT_PROPS
|
|
1149
|
+
color = DEFAULT_PROPS$10.color
|
|
1089
1150
|
} = props,
|
|
1090
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1151
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1p);
|
|
1091
1152
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
1092
1153
|
ref: ref
|
|
1093
1154
|
}, forwardedProps), {}, {
|
|
1094
|
-
className: classNames(className, handleBasicClasses({
|
|
1095
|
-
prefix: CLASSNAME$
|
|
1155
|
+
className: classNames$1(className, handleBasicClasses({
|
|
1156
|
+
prefix: CLASSNAME$1h,
|
|
1096
1157
|
color
|
|
1097
1158
|
})),
|
|
1098
1159
|
children: children
|
|
1099
1160
|
}));
|
|
1100
1161
|
});
|
|
1101
|
-
Badge.displayName = COMPONENT_NAME$
|
|
1102
|
-
Badge.className = CLASSNAME$
|
|
1103
|
-
Badge.defaultProps = DEFAULT_PROPS
|
|
1162
|
+
Badge.displayName = COMPONENT_NAME$1k;
|
|
1163
|
+
Badge.className = CLASSNAME$1h;
|
|
1164
|
+
Badge.defaultProps = DEFAULT_PROPS$10;
|
|
1104
1165
|
|
|
1105
|
-
const _excluded$
|
|
1166
|
+
const _excluded$1o = ["badge", "children", "className"];
|
|
1106
1167
|
/**
|
|
1107
1168
|
* Component display name.
|
|
1108
1169
|
*/
|
|
1109
|
-
const COMPONENT_NAME$
|
|
1170
|
+
const COMPONENT_NAME$1j = 'BadgeWrapper';
|
|
1110
1171
|
|
|
1111
1172
|
/**
|
|
1112
1173
|
* Component default class name and class prefix.
|
|
1113
1174
|
*/
|
|
1114
|
-
const CLASSNAME$
|
|
1175
|
+
const CLASSNAME$1g = getRootClassName(COMPONENT_NAME$1j);
|
|
1115
1176
|
const BadgeWrapper = forwardRef((props, ref) => {
|
|
1116
1177
|
const {
|
|
1117
1178
|
badge,
|
|
1118
1179
|
children,
|
|
1119
1180
|
className
|
|
1120
1181
|
} = props,
|
|
1121
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1182
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1o);
|
|
1122
1183
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
1123
1184
|
ref: ref
|
|
1124
1185
|
}, forwardedProps), {}, {
|
|
1125
|
-
className: classNames(className, CLASSNAME$
|
|
1186
|
+
className: classNames$1(className, CLASSNAME$1g),
|
|
1126
1187
|
children: [children, badge && /*#__PURE__*/jsx("div", {
|
|
1127
|
-
className: `${CLASSNAME$
|
|
1188
|
+
className: `${CLASSNAME$1g}__badge`,
|
|
1128
1189
|
children: badge
|
|
1129
1190
|
})]
|
|
1130
1191
|
}));
|
|
1131
1192
|
});
|
|
1132
1193
|
BadgeWrapper.displayName = 'BadgeWrapper';
|
|
1133
|
-
BadgeWrapper.className = CLASSNAME$
|
|
1194
|
+
BadgeWrapper.className = CLASSNAME$1g;
|
|
1134
1195
|
|
|
1135
1196
|
/**
|
|
1136
1197
|
* Properties of a component to use to determine it's name.
|
|
@@ -1173,29 +1234,58 @@ const IS_BROWSER = typeof navigator !== 'undefined' && !navigator.userAgent.incl
|
|
|
1173
1234
|
*/
|
|
1174
1235
|
const VISUALLY_HIDDEN = 'visually-hidden';
|
|
1175
1236
|
|
|
1176
|
-
|
|
1237
|
+
/** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
|
|
1238
|
+
const forwardRefPolymorphic = React__default.forwardRef;
|
|
1239
|
+
|
|
1240
|
+
const _excluded$1n = ["children", "onClick", "disabled", "isDisabled", "aria-disabled", "as"];
|
|
1177
1241
|
/**
|
|
1178
|
-
* Render
|
|
1179
|
-
*
|
|
1180
|
-
* Can be used to inject the `Link` component from `react-router` and provide better a11y on LumX components.
|
|
1181
|
-
*
|
|
1182
|
-
* @param linkAs Custom link component.
|
|
1183
|
-
* @param children Link children.
|
|
1184
|
-
* @return A link.
|
|
1242
|
+
* Render clickable element (link, button or custom element)
|
|
1243
|
+
* (also does some basic disabled state handling)
|
|
1185
1244
|
*/
|
|
1186
|
-
const
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1245
|
+
const RawClickable = forwardRefPolymorphic((props, ref) => {
|
|
1246
|
+
const {
|
|
1247
|
+
children,
|
|
1248
|
+
onClick,
|
|
1249
|
+
disabled,
|
|
1250
|
+
isDisabled = disabled,
|
|
1251
|
+
'aria-disabled': ariaDisabled,
|
|
1252
|
+
as
|
|
1253
|
+
} = props,
|
|
1254
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1n);
|
|
1255
|
+
const isAnyDisabled = isDisabled || ariaDisabled === 'true' || ariaDisabled === true;
|
|
1256
|
+
const Component = as;
|
|
1257
|
+
let clickableProps;
|
|
1258
|
+
if (Component === 'button') {
|
|
1259
|
+
clickableProps = {
|
|
1260
|
+
type: forwardedProps.type || 'button',
|
|
1261
|
+
disabled: isDisabled
|
|
1262
|
+
};
|
|
1263
|
+
} else {
|
|
1264
|
+
clickableProps = {
|
|
1265
|
+
tabIndex: isDisabled ? '-1' : forwardedProps.tabIndex
|
|
1266
|
+
};
|
|
1267
|
+
}
|
|
1268
|
+
return /*#__PURE__*/jsx(Component, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
1269
|
+
ref: ref,
|
|
1270
|
+
"aria-disabled": isAnyDisabled || undefined
|
|
1271
|
+
}, forwardedProps), clickableProps), {}, {
|
|
1272
|
+
onClick: event => {
|
|
1273
|
+
if (isAnyDisabled) {
|
|
1274
|
+
event.stopPropagation();
|
|
1275
|
+
event.preventDefault();
|
|
1276
|
+
return;
|
|
1277
|
+
}
|
|
1278
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
1279
|
+
},
|
|
1280
|
+
children: children
|
|
1281
|
+
}));
|
|
1282
|
+
});
|
|
1193
1283
|
|
|
1194
|
-
const _excluded$
|
|
1284
|
+
const _excluded$1m = ["aria-label", "children", "className", "color", "emphasis", "hasBackground", "isSelected", "isActive", "isFocused", "isHovered", "linkAs", "size", "theme", "variant", "fullWidth"];
|
|
1195
1285
|
/**
|
|
1196
1286
|
* Component display name.
|
|
1197
1287
|
*/
|
|
1198
|
-
const COMPONENT_NAME$
|
|
1288
|
+
const COMPONENT_NAME$1i = 'ButtonRoot';
|
|
1199
1289
|
const BUTTON_WRAPPER_CLASSNAME = `${CSS_PREFIX}-button-wrapper`;
|
|
1200
1290
|
const BUTTON_CLASSNAME = `${CSS_PREFIX}-button`;
|
|
1201
1291
|
|
|
@@ -1213,7 +1303,7 @@ const renderButtonWrapper = props => {
|
|
|
1213
1303
|
fullWidth
|
|
1214
1304
|
} = props;
|
|
1215
1305
|
const adaptedColor = emphasis === Emphasis.low && (color === ColorPalette.light ? ColorPalette.dark : ColorPalette.light);
|
|
1216
|
-
const wrapperClassName = classNames(handleBasicClasses({
|
|
1306
|
+
const wrapperClassName = classNames$1(handleBasicClasses({
|
|
1217
1307
|
color: adaptedColor,
|
|
1218
1308
|
prefix: BUTTON_WRAPPER_CLASSNAME,
|
|
1219
1309
|
variant,
|
|
@@ -1248,21 +1338,17 @@ const ButtonRoot = forwardRef((props, ref) => {
|
|
|
1248
1338
|
color,
|
|
1249
1339
|
emphasis,
|
|
1250
1340
|
hasBackground,
|
|
1251
|
-
href,
|
|
1252
1341
|
isSelected,
|
|
1253
1342
|
isActive,
|
|
1254
1343
|
isFocused,
|
|
1255
1344
|
isHovered,
|
|
1256
1345
|
linkAs,
|
|
1257
|
-
name,
|
|
1258
1346
|
size,
|
|
1259
|
-
target,
|
|
1260
1347
|
theme,
|
|
1261
1348
|
variant,
|
|
1262
|
-
type = 'button',
|
|
1263
1349
|
fullWidth
|
|
1264
1350
|
} = otherProps,
|
|
1265
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
1351
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$1m);
|
|
1266
1352
|
const adaptedColor = color || emphasis !== Emphasis.high && theme === Theme.dark && ColorPalette.light || emphasis === Emphasis.high && ColorPalette.primary || ColorPalette.dark;
|
|
1267
1353
|
if (hasBackground) {
|
|
1268
1354
|
return renderButtonWrapper(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -1271,11 +1357,11 @@ const ButtonRoot = forwardRef((props, ref) => {
|
|
|
1271
1357
|
color: adaptedColor
|
|
1272
1358
|
}));
|
|
1273
1359
|
}
|
|
1274
|
-
const buttonClassName = classNames(className, handleBasicClasses({
|
|
1360
|
+
const buttonClassName = classNames$1(className, handleBasicClasses({
|
|
1275
1361
|
color: adaptedColor,
|
|
1276
1362
|
emphasis,
|
|
1277
1363
|
isSelected,
|
|
1278
|
-
isDisabled:
|
|
1364
|
+
isDisabled: props.isDisabled || props['aria-disabled'],
|
|
1279
1365
|
isActive,
|
|
1280
1366
|
isFocused,
|
|
1281
1367
|
isHovered,
|
|
@@ -1285,40 +1371,20 @@ const ButtonRoot = forwardRef((props, ref) => {
|
|
|
1285
1371
|
variant,
|
|
1286
1372
|
fullWidth
|
|
1287
1373
|
}));
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
* If there is an href attribute, we display an <a> instead of a <button>.
|
|
1292
|
-
*
|
|
1293
|
-
* However, in any case, if the component is disabled, we returned a <button> since disabled is not compatible with <a>.
|
|
1294
|
-
*/
|
|
1295
|
-
if ((linkAs || !isEmpty(props.href)) && !isAnyDisabled) {
|
|
1296
|
-
return renderLink(_objectSpread2(_objectSpread2({
|
|
1297
|
-
linkAs
|
|
1298
|
-
}, forwardedProps), {}, {
|
|
1299
|
-
'aria-label': ariaLabel,
|
|
1300
|
-
href,
|
|
1301
|
-
target,
|
|
1302
|
-
className: buttonClassName,
|
|
1303
|
-
ref: ref
|
|
1304
|
-
}), children);
|
|
1305
|
-
}
|
|
1306
|
-
return /*#__PURE__*/jsx("button", _objectSpread2(_objectSpread2(_objectSpread2({}, forwardedProps), disabledStateProps), {}, {
|
|
1374
|
+
return /*#__PURE__*/jsx(RawClickable, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
1375
|
+
as: linkAs || (forwardedProps.href ? 'a' : 'button')
|
|
1376
|
+
}, forwardedProps), disabledStateProps), {}, {
|
|
1307
1377
|
"aria-disabled": isAnyDisabled,
|
|
1308
1378
|
"aria-label": ariaLabel,
|
|
1309
1379
|
ref: ref,
|
|
1310
1380
|
className: buttonClassName,
|
|
1311
|
-
name: name,
|
|
1312
|
-
type:
|
|
1313
|
-
// eslint-disable-next-line react/button-has-type
|
|
1314
|
-
type,
|
|
1315
1381
|
children: children
|
|
1316
1382
|
}));
|
|
1317
1383
|
});
|
|
1318
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
1384
|
+
ButtonRoot.displayName = COMPONENT_NAME$1i;
|
|
1319
1385
|
ButtonRoot.defaultProps = {};
|
|
1320
1386
|
|
|
1321
|
-
const _excluded$
|
|
1387
|
+
const _excluded$1l = ["children", "className", "emphasis", "leftIcon", "rightIcon", "size", "theme"];
|
|
1322
1388
|
const ButtonEmphasis = Emphasis;
|
|
1323
1389
|
|
|
1324
1390
|
/**
|
|
@@ -1328,17 +1394,17 @@ const ButtonEmphasis = Emphasis;
|
|
|
1328
1394
|
/**
|
|
1329
1395
|
* Component display name.
|
|
1330
1396
|
*/
|
|
1331
|
-
const COMPONENT_NAME$
|
|
1397
|
+
const COMPONENT_NAME$1h = 'Button';
|
|
1332
1398
|
|
|
1333
1399
|
/**
|
|
1334
1400
|
* Component default class name and class prefix.
|
|
1335
1401
|
*/
|
|
1336
|
-
const CLASSNAME$
|
|
1402
|
+
const CLASSNAME$1f = getRootClassName(COMPONENT_NAME$1h);
|
|
1337
1403
|
|
|
1338
1404
|
/**
|
|
1339
1405
|
* Component default props.
|
|
1340
1406
|
*/
|
|
1341
|
-
const DEFAULT_PROPS
|
|
1407
|
+
const DEFAULT_PROPS$$ = {
|
|
1342
1408
|
emphasis: Emphasis.high,
|
|
1343
1409
|
size: Size.m
|
|
1344
1410
|
};
|
|
@@ -1355,19 +1421,19 @@ const Button = forwardRef((props, ref) => {
|
|
|
1355
1421
|
const {
|
|
1356
1422
|
children,
|
|
1357
1423
|
className,
|
|
1358
|
-
emphasis = DEFAULT_PROPS
|
|
1424
|
+
emphasis = DEFAULT_PROPS$$.emphasis,
|
|
1359
1425
|
leftIcon,
|
|
1360
1426
|
rightIcon,
|
|
1361
|
-
size = DEFAULT_PROPS
|
|
1427
|
+
size = DEFAULT_PROPS$$.size,
|
|
1362
1428
|
theme = defaultTheme
|
|
1363
1429
|
} = props,
|
|
1364
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1365
|
-
const buttonClassName = classNames(className, getBasicClass({
|
|
1366
|
-
prefix: CLASSNAME$
|
|
1430
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1l);
|
|
1431
|
+
const buttonClassName = classNames$1(className, getBasicClass({
|
|
1432
|
+
prefix: CLASSNAME$1f,
|
|
1367
1433
|
type: 'hasLeftIcon',
|
|
1368
1434
|
value: !isEmpty(leftIcon)
|
|
1369
1435
|
}), getBasicClass({
|
|
1370
|
-
prefix: CLASSNAME$
|
|
1436
|
+
prefix: CLASSNAME$1f,
|
|
1371
1437
|
type: 'hasRightIcon',
|
|
1372
1438
|
value: !isEmpty(rightIcon)
|
|
1373
1439
|
}));
|
|
@@ -1401,25 +1467,25 @@ const Button = forwardRef((props, ref) => {
|
|
|
1401
1467
|
})]
|
|
1402
1468
|
}));
|
|
1403
1469
|
});
|
|
1404
|
-
Button.displayName = COMPONENT_NAME$
|
|
1405
|
-
Button.className = CLASSNAME$
|
|
1406
|
-
Button.defaultProps = DEFAULT_PROPS
|
|
1470
|
+
Button.displayName = COMPONENT_NAME$1h;
|
|
1471
|
+
Button.className = CLASSNAME$1f;
|
|
1472
|
+
Button.defaultProps = DEFAULT_PROPS$$;
|
|
1407
1473
|
|
|
1408
|
-
const _excluded$
|
|
1474
|
+
const _excluded$1k = ["emphasis", "image", "icon", "label", "size", "theme", "tooltipProps", "hideTooltip"];
|
|
1409
1475
|
/**
|
|
1410
1476
|
* Component display name.
|
|
1411
1477
|
*/
|
|
1412
|
-
const COMPONENT_NAME$
|
|
1478
|
+
const COMPONENT_NAME$1g = 'IconButton';
|
|
1413
1479
|
|
|
1414
1480
|
/**
|
|
1415
1481
|
* Component default class name and class prefix.
|
|
1416
1482
|
*/
|
|
1417
|
-
const CLASSNAME$
|
|
1483
|
+
const CLASSNAME$1e = getRootClassName(COMPONENT_NAME$1g);
|
|
1418
1484
|
|
|
1419
1485
|
/**
|
|
1420
1486
|
* Component default props.
|
|
1421
1487
|
*/
|
|
1422
|
-
const DEFAULT_PROPS$
|
|
1488
|
+
const DEFAULT_PROPS$_ = {
|
|
1423
1489
|
emphasis: Emphasis.high,
|
|
1424
1490
|
size: Size.m
|
|
1425
1491
|
};
|
|
@@ -1434,16 +1500,16 @@ const DEFAULT_PROPS$Z = {
|
|
|
1434
1500
|
const IconButton = forwardRef((props, ref) => {
|
|
1435
1501
|
const defaultTheme = useTheme() || Theme.light;
|
|
1436
1502
|
const {
|
|
1437
|
-
emphasis = DEFAULT_PROPS$
|
|
1503
|
+
emphasis = DEFAULT_PROPS$_.emphasis,
|
|
1438
1504
|
image,
|
|
1439
1505
|
icon,
|
|
1440
1506
|
label,
|
|
1441
|
-
size = DEFAULT_PROPS$
|
|
1507
|
+
size = DEFAULT_PROPS$_.size,
|
|
1442
1508
|
theme = defaultTheme,
|
|
1443
1509
|
tooltipProps,
|
|
1444
1510
|
hideTooltip
|
|
1445
1511
|
} = props,
|
|
1446
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1512
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1k);
|
|
1447
1513
|
return /*#__PURE__*/jsx(Tooltip, _objectSpread2(_objectSpread2({
|
|
1448
1514
|
label: hideTooltip ? '' : label
|
|
1449
1515
|
}, tooltipProps), {}, {
|
|
@@ -1469,25 +1535,25 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1469
1535
|
}))
|
|
1470
1536
|
}));
|
|
1471
1537
|
});
|
|
1472
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1473
|
-
IconButton.className = CLASSNAME$
|
|
1474
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1538
|
+
IconButton.displayName = COMPONENT_NAME$1g;
|
|
1539
|
+
IconButton.className = CLASSNAME$1e;
|
|
1540
|
+
IconButton.defaultProps = DEFAULT_PROPS$_;
|
|
1475
1541
|
|
|
1476
|
-
const _excluded$
|
|
1542
|
+
const _excluded$1j = ["children", "className"];
|
|
1477
1543
|
/**
|
|
1478
1544
|
* Component display name.
|
|
1479
1545
|
*/
|
|
1480
|
-
const COMPONENT_NAME$
|
|
1546
|
+
const COMPONENT_NAME$1f = 'ButtonGroup';
|
|
1481
1547
|
|
|
1482
1548
|
/**
|
|
1483
1549
|
* Component default class name and class prefix.
|
|
1484
1550
|
*/
|
|
1485
|
-
const CLASSNAME$
|
|
1551
|
+
const CLASSNAME$1d = getRootClassName(COMPONENT_NAME$1f);
|
|
1486
1552
|
|
|
1487
1553
|
/**
|
|
1488
1554
|
* Component default props.
|
|
1489
1555
|
*/
|
|
1490
|
-
const DEFAULT_PROPS$
|
|
1556
|
+
const DEFAULT_PROPS$Z = {};
|
|
1491
1557
|
|
|
1492
1558
|
/**
|
|
1493
1559
|
* ButtonGroup component.
|
|
@@ -1501,19 +1567,19 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1501
1567
|
children,
|
|
1502
1568
|
className
|
|
1503
1569
|
} = props,
|
|
1504
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
1570
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1j);
|
|
1505
1571
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
1506
1572
|
ref: ref
|
|
1507
1573
|
}, forwardedProps), {}, {
|
|
1508
|
-
className: classNames(className, CLASSNAME$
|
|
1574
|
+
className: classNames$1(className, CLASSNAME$1d),
|
|
1509
1575
|
children: children
|
|
1510
1576
|
}));
|
|
1511
1577
|
});
|
|
1512
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1513
|
-
ButtonGroup.className = CLASSNAME$
|
|
1514
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1578
|
+
ButtonGroup.displayName = COMPONENT_NAME$1f;
|
|
1579
|
+
ButtonGroup.className = CLASSNAME$1d;
|
|
1580
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$Z;
|
|
1515
1581
|
|
|
1516
|
-
const _excluded$
|
|
1582
|
+
const _excluded$1i = ["checked", "className", "helper", "id", "inputRef", "isChecked", "label", "name", "onChange", "theme", "value", "inputProps"];
|
|
1517
1583
|
/**
|
|
1518
1584
|
* Intermediate state of checkbox.
|
|
1519
1585
|
*/
|
|
@@ -1526,17 +1592,17 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1526
1592
|
/**
|
|
1527
1593
|
* Component display name.
|
|
1528
1594
|
*/
|
|
1529
|
-
const COMPONENT_NAME$
|
|
1595
|
+
const COMPONENT_NAME$1e = 'Checkbox';
|
|
1530
1596
|
|
|
1531
1597
|
/**
|
|
1532
1598
|
* Component default class name and class prefix.
|
|
1533
1599
|
*/
|
|
1534
|
-
const CLASSNAME$
|
|
1600
|
+
const CLASSNAME$1c = getRootClassName(COMPONENT_NAME$1e);
|
|
1535
1601
|
|
|
1536
1602
|
/**
|
|
1537
1603
|
* Component default props.
|
|
1538
1604
|
*/
|
|
1539
|
-
const DEFAULT_PROPS$
|
|
1605
|
+
const DEFAULT_PROPS$Y = {};
|
|
1540
1606
|
|
|
1541
1607
|
/**
|
|
1542
1608
|
* Checkbox component.
|
|
@@ -1566,7 +1632,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1566
1632
|
value,
|
|
1567
1633
|
inputProps = {}
|
|
1568
1634
|
} = otherProps,
|
|
1569
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
1635
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$1i);
|
|
1570
1636
|
const localInputRef = React__default.useRef(null);
|
|
1571
1637
|
const generatedInputId = useId();
|
|
1572
1638
|
const inputId = id || generatedInputId;
|
|
@@ -1583,21 +1649,21 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1583
1649
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
1584
1650
|
ref: ref
|
|
1585
1651
|
}, forwardedProps), {}, {
|
|
1586
|
-
className: classNames(className, handleBasicClasses({
|
|
1652
|
+
className: classNames$1(className, handleBasicClasses({
|
|
1587
1653
|
// Whether state is intermediate class name will "-checked"
|
|
1588
1654
|
isChecked: intermediateState ? true : isChecked,
|
|
1589
1655
|
isDisabled: isAnyDisabled,
|
|
1590
1656
|
isUnchecked: !isChecked,
|
|
1591
|
-
prefix: CLASSNAME$
|
|
1657
|
+
prefix: CLASSNAME$1c,
|
|
1592
1658
|
theme
|
|
1593
1659
|
})),
|
|
1594
1660
|
children: [/*#__PURE__*/jsxs("div", {
|
|
1595
|
-
className: `${CLASSNAME$
|
|
1661
|
+
className: `${CLASSNAME$1c}__input-wrapper`,
|
|
1596
1662
|
children: [/*#__PURE__*/jsx("input", _objectSpread2(_objectSpread2({
|
|
1597
1663
|
ref: useMergeRefs(inputRef, localInputRef),
|
|
1598
1664
|
type: "checkbox",
|
|
1599
1665
|
id: inputId,
|
|
1600
|
-
className: `${CLASSNAME$
|
|
1666
|
+
className: `${CLASSNAME$1c}__input-native`
|
|
1601
1667
|
}, disabledStateProps), {}, {
|
|
1602
1668
|
name: name,
|
|
1603
1669
|
value: value,
|
|
@@ -1607,35 +1673,35 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1607
1673
|
"aria-checked": intermediateState ? 'mixed' : Boolean(isChecked),
|
|
1608
1674
|
readOnly: inputProps.readOnly || disabledStateProps['aria-disabled']
|
|
1609
1675
|
}, inputProps)), /*#__PURE__*/jsxs("div", {
|
|
1610
|
-
className: `${CLASSNAME$
|
|
1676
|
+
className: `${CLASSNAME$1c}__input-placeholder`,
|
|
1611
1677
|
children: [/*#__PURE__*/jsx("div", {
|
|
1612
|
-
className: `${CLASSNAME$
|
|
1678
|
+
className: `${CLASSNAME$1c}__input-background`
|
|
1613
1679
|
}), /*#__PURE__*/jsx("div", {
|
|
1614
|
-
className: `${CLASSNAME$
|
|
1680
|
+
className: `${CLASSNAME$1c}__input-indicator`,
|
|
1615
1681
|
children: /*#__PURE__*/jsx(Icon, {
|
|
1616
1682
|
icon: intermediateState ? mdiMinus : mdiCheck
|
|
1617
1683
|
})
|
|
1618
1684
|
})]
|
|
1619
1685
|
})]
|
|
1620
1686
|
}), /*#__PURE__*/jsxs("div", {
|
|
1621
|
-
className: `${CLASSNAME$
|
|
1687
|
+
className: `${CLASSNAME$1c}__content`,
|
|
1622
1688
|
children: [label && /*#__PURE__*/jsx(InputLabel, {
|
|
1623
1689
|
htmlFor: inputId,
|
|
1624
|
-
className: `${CLASSNAME$
|
|
1690
|
+
className: `${CLASSNAME$1c}__label`,
|
|
1625
1691
|
theme: theme,
|
|
1626
1692
|
children: label
|
|
1627
1693
|
}), helper && /*#__PURE__*/jsx(InputHelper, {
|
|
1628
1694
|
id: `${inputId}-helper`,
|
|
1629
|
-
className: `${CLASSNAME$
|
|
1695
|
+
className: `${CLASSNAME$1c}__helper`,
|
|
1630
1696
|
theme: theme,
|
|
1631
1697
|
children: helper
|
|
1632
1698
|
})]
|
|
1633
1699
|
})]
|
|
1634
1700
|
}));
|
|
1635
1701
|
});
|
|
1636
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
1637
|
-
Checkbox.className = CLASSNAME$
|
|
1638
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
1702
|
+
Checkbox.displayName = COMPONENT_NAME$1e;
|
|
1703
|
+
Checkbox.className = CLASSNAME$1c;
|
|
1704
|
+
Checkbox.defaultProps = DEFAULT_PROPS$Y;
|
|
1639
1705
|
|
|
1640
1706
|
/**
|
|
1641
1707
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -1779,21 +1845,21 @@ function detectHorizontalSwipe(touchSurface, handleSwipe) {
|
|
|
1779
1845
|
};
|
|
1780
1846
|
}
|
|
1781
1847
|
|
|
1782
|
-
const _excluded$
|
|
1848
|
+
const _excluded$1h = ["after", "before", "children", "className", "color", "isClickable", "isHighlighted", "isSelected", "onAfterClick", "onBeforeClick", "onClick", "size", "theme", "href", "onKeyDown"];
|
|
1783
1849
|
/**
|
|
1784
1850
|
* Component display name.
|
|
1785
1851
|
*/
|
|
1786
|
-
const COMPONENT_NAME$
|
|
1852
|
+
const COMPONENT_NAME$1d = 'Chip';
|
|
1787
1853
|
|
|
1788
1854
|
/**
|
|
1789
1855
|
* Component default class name and class prefix.
|
|
1790
1856
|
*/
|
|
1791
|
-
const CLASSNAME$
|
|
1857
|
+
const CLASSNAME$1b = getRootClassName(COMPONENT_NAME$1d);
|
|
1792
1858
|
|
|
1793
1859
|
/**
|
|
1794
1860
|
* Component default props.
|
|
1795
1861
|
*/
|
|
1796
|
-
const DEFAULT_PROPS$
|
|
1862
|
+
const DEFAULT_PROPS$X = {
|
|
1797
1863
|
size: Size.m
|
|
1798
1864
|
};
|
|
1799
1865
|
|
|
@@ -1823,12 +1889,12 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1823
1889
|
onAfterClick,
|
|
1824
1890
|
onBeforeClick,
|
|
1825
1891
|
onClick,
|
|
1826
|
-
size = DEFAULT_PROPS$
|
|
1892
|
+
size = DEFAULT_PROPS$X.size,
|
|
1827
1893
|
theme = defaultTheme,
|
|
1828
1894
|
href,
|
|
1829
1895
|
onKeyDown
|
|
1830
1896
|
} = otherProps,
|
|
1831
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
1897
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$1h);
|
|
1832
1898
|
const hasAfterClick = isFunction(onAfterClick);
|
|
1833
1899
|
const hasBeforeClick = isFunction(onBeforeClick);
|
|
1834
1900
|
const hasOnClick = isFunction(props.onClick);
|
|
@@ -1854,14 +1920,14 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1854
1920
|
}, forwardedProps), {}, {
|
|
1855
1921
|
href: !disabledStateProps.disabled ? href : undefined,
|
|
1856
1922
|
ref: ref,
|
|
1857
|
-
className: classNames(className, handleBasicClasses({
|
|
1923
|
+
className: classNames$1(className, handleBasicClasses({
|
|
1858
1924
|
clickable: isClickable,
|
|
1859
1925
|
color: chipColor,
|
|
1860
1926
|
isDisabled: isAnyDisabled,
|
|
1861
1927
|
hasAfter: Boolean(after),
|
|
1862
1928
|
hasBefore: Boolean(before),
|
|
1863
1929
|
highlighted: Boolean(isHighlighted),
|
|
1864
|
-
prefix: CLASSNAME$
|
|
1930
|
+
prefix: CLASSNAME$1b,
|
|
1865
1931
|
selected: Boolean(isSelected),
|
|
1866
1932
|
size,
|
|
1867
1933
|
unselected: Boolean(!isSelected)
|
|
@@ -1873,20 +1939,20 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1873
1939
|
/*#__PURE__*/
|
|
1874
1940
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
1875
1941
|
jsx("div", {
|
|
1876
|
-
className: classNames(`${CLASSNAME$
|
|
1877
|
-
[`${CLASSNAME$
|
|
1942
|
+
className: classNames$1(`${CLASSNAME$1b}__before`, {
|
|
1943
|
+
[`${CLASSNAME$1b}__before--is-clickable`]: hasBeforeClick
|
|
1878
1944
|
}),
|
|
1879
1945
|
onClick: handleOnBeforeClick,
|
|
1880
1946
|
children: before
|
|
1881
1947
|
}), /*#__PURE__*/jsx("div", {
|
|
1882
|
-
className: `${CLASSNAME$
|
|
1948
|
+
className: `${CLASSNAME$1b}__label`,
|
|
1883
1949
|
children: children
|
|
1884
1950
|
}), after &&
|
|
1885
1951
|
/*#__PURE__*/
|
|
1886
1952
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
1887
1953
|
jsx("div", {
|
|
1888
|
-
className: classNames(`${CLASSNAME$
|
|
1889
|
-
[`${CLASSNAME$
|
|
1954
|
+
className: classNames$1(`${CLASSNAME$1b}__after`, {
|
|
1955
|
+
[`${CLASSNAME$1b}__after--is-clickable`]: hasAfterClick
|
|
1890
1956
|
}),
|
|
1891
1957
|
onClick: handleOnAfterClick,
|
|
1892
1958
|
children: after
|
|
@@ -1894,9 +1960,9 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1894
1960
|
}))
|
|
1895
1961
|
);
|
|
1896
1962
|
});
|
|
1897
|
-
Chip.displayName = COMPONENT_NAME$
|
|
1898
|
-
Chip.className = CLASSNAME$
|
|
1899
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
1963
|
+
Chip.displayName = COMPONENT_NAME$1d;
|
|
1964
|
+
Chip.className = CLASSNAME$1b;
|
|
1965
|
+
Chip.defaultProps = DEFAULT_PROPS$X;
|
|
1900
1966
|
|
|
1901
1967
|
const INITIAL_STATE_ACTIVE_CHIP = -1;
|
|
1902
1968
|
|
|
@@ -1949,21 +2015,21 @@ const useChipGroupNavigation = (chips, onChipDeleted, initialActiveChip = INITIA
|
|
|
1949
2015
|
};
|
|
1950
2016
|
};
|
|
1951
2017
|
|
|
1952
|
-
const _excluded$
|
|
2018
|
+
const _excluded$1g = ["align", "children", "className"];
|
|
1953
2019
|
/**
|
|
1954
2020
|
* Component default props.
|
|
1955
2021
|
*/
|
|
1956
|
-
const DEFAULT_PROPS$
|
|
2022
|
+
const DEFAULT_PROPS$W = {};
|
|
1957
2023
|
|
|
1958
2024
|
/**
|
|
1959
2025
|
* Component display name.
|
|
1960
2026
|
*/
|
|
1961
|
-
const COMPONENT_NAME$
|
|
2027
|
+
const COMPONENT_NAME$1c = 'ChipGroup';
|
|
1962
2028
|
|
|
1963
2029
|
/**
|
|
1964
2030
|
* Component default class name and class prefix.
|
|
1965
2031
|
*/
|
|
1966
|
-
const CLASSNAME$
|
|
2032
|
+
const CLASSNAME$1a = getRootClassName(COMPONENT_NAME$1c);
|
|
1967
2033
|
|
|
1968
2034
|
/**
|
|
1969
2035
|
* ChipGroup component.
|
|
@@ -1978,22 +2044,22 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
1978
2044
|
children,
|
|
1979
2045
|
className
|
|
1980
2046
|
} = props,
|
|
1981
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2047
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1g);
|
|
1982
2048
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
1983
2049
|
ref: ref
|
|
1984
2050
|
}, forwardedProps), {}, {
|
|
1985
|
-
className: classNames(className, CLASSNAME$
|
|
2051
|
+
className: classNames$1(className, CLASSNAME$1a),
|
|
1986
2052
|
children: children
|
|
1987
2053
|
}));
|
|
1988
2054
|
});
|
|
1989
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
1990
|
-
InternalChipGroup.className = CLASSNAME$
|
|
1991
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2055
|
+
InternalChipGroup.displayName = COMPONENT_NAME$1c;
|
|
2056
|
+
InternalChipGroup.className = CLASSNAME$1a;
|
|
2057
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$W;
|
|
1992
2058
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
1993
2059
|
useChipGroupNavigation
|
|
1994
2060
|
});
|
|
1995
2061
|
|
|
1996
|
-
const _excluded$
|
|
2062
|
+
const _excluded$1f = ["actions", "avatarProps", "children", "className", "date", "fullDate", "hasActions", "headerActions", "isOpen", "isRelevant", "name", "onClick", "onMouseEnter", "onMouseLeave", "text", "theme", "variant"];
|
|
1997
2063
|
/**
|
|
1998
2064
|
* Comment block variants.
|
|
1999
2065
|
*/
|
|
@@ -2009,17 +2075,17 @@ const CommentBlockVariant = {
|
|
|
2009
2075
|
/**
|
|
2010
2076
|
* Component display name.
|
|
2011
2077
|
*/
|
|
2012
|
-
const COMPONENT_NAME$
|
|
2078
|
+
const COMPONENT_NAME$1b = 'CommentBlock';
|
|
2013
2079
|
|
|
2014
2080
|
/**
|
|
2015
2081
|
* Component default class name and class prefix.
|
|
2016
2082
|
*/
|
|
2017
|
-
const CLASSNAME$
|
|
2083
|
+
const CLASSNAME$19 = getRootClassName(COMPONENT_NAME$1b);
|
|
2018
2084
|
|
|
2019
2085
|
/**
|
|
2020
2086
|
* Component default props.
|
|
2021
2087
|
*/
|
|
2022
|
-
const DEFAULT_PROPS$
|
|
2088
|
+
const DEFAULT_PROPS$V = {
|
|
2023
2089
|
variant: CommentBlockVariant.indented
|
|
2024
2090
|
};
|
|
2025
2091
|
|
|
@@ -2049,76 +2115,76 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
2049
2115
|
onMouseLeave,
|
|
2050
2116
|
text,
|
|
2051
2117
|
theme = defaultTheme,
|
|
2052
|
-
variant = DEFAULT_PROPS$
|
|
2118
|
+
variant = DEFAULT_PROPS$V.variant
|
|
2053
2119
|
} = props,
|
|
2054
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2120
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1f);
|
|
2055
2121
|
const hasChildren = Children.count(children) > 0;
|
|
2056
2122
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
2057
2123
|
ref: ref,
|
|
2058
|
-
className: classNames(className, handleBasicClasses({
|
|
2124
|
+
className: classNames$1(className, handleBasicClasses({
|
|
2059
2125
|
hasChildren: hasChildren && isOpen,
|
|
2060
2126
|
hasIndentedChildren: hasChildren && variant === CommentBlockVariant.indented,
|
|
2061
2127
|
hasLinearChildren: hasChildren && variant === CommentBlockVariant.linear,
|
|
2062
2128
|
isRelevant,
|
|
2063
|
-
prefix: CLASSNAME$
|
|
2129
|
+
prefix: CLASSNAME$19,
|
|
2064
2130
|
theme
|
|
2065
2131
|
}))
|
|
2066
2132
|
}, forwardedProps), {}, {
|
|
2067
2133
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2068
|
-
className: `${CLASSNAME$
|
|
2134
|
+
className: `${CLASSNAME$19}__wrapper`,
|
|
2069
2135
|
children: [/*#__PURE__*/jsx("div", {
|
|
2070
|
-
className: `${CLASSNAME$
|
|
2136
|
+
className: `${CLASSNAME$19}__avatar`,
|
|
2071
2137
|
children: /*#__PURE__*/jsx(Avatar, _objectSpread2(_objectSpread2({}, avatarProps), {}, {
|
|
2072
2138
|
size: Size.m,
|
|
2073
2139
|
onClick: onClick
|
|
2074
2140
|
}))
|
|
2075
2141
|
}), /*#__PURE__*/jsxs("div", {
|
|
2076
|
-
className: `${CLASSNAME$
|
|
2142
|
+
className: `${CLASSNAME$19}__container`,
|
|
2077
2143
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2078
|
-
className: `${CLASSNAME$
|
|
2144
|
+
className: `${CLASSNAME$19}__content`,
|
|
2079
2145
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2080
|
-
className: `${CLASSNAME$
|
|
2146
|
+
className: `${CLASSNAME$19}__meta`,
|
|
2081
2147
|
children: [name &&
|
|
2082
2148
|
/*#__PURE__*/
|
|
2083
2149
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
2084
2150
|
jsx("span", {
|
|
2085
|
-
className: `${CLASSNAME$
|
|
2151
|
+
className: `${CLASSNAME$19}__name`,
|
|
2086
2152
|
onClick: onClick,
|
|
2087
2153
|
onMouseEnter: onMouseEnter,
|
|
2088
2154
|
onMouseLeave: onMouseLeave,
|
|
2089
2155
|
children: name
|
|
2090
2156
|
}), headerActions && /*#__PURE__*/jsx("span", {
|
|
2091
|
-
className: `${CLASSNAME$
|
|
2157
|
+
className: `${CLASSNAME$19}__header-actions`,
|
|
2092
2158
|
children: headerActions
|
|
2093
2159
|
})]
|
|
2094
2160
|
}), /*#__PURE__*/jsx("div", {
|
|
2095
|
-
className: `${CLASSNAME$
|
|
2161
|
+
className: `${CLASSNAME$19}__text`,
|
|
2096
2162
|
children: text
|
|
2097
2163
|
}), date && (fullDate ? /*#__PURE__*/jsx(Tooltip, {
|
|
2098
2164
|
label: fullDate,
|
|
2099
2165
|
placement: "top",
|
|
2100
2166
|
children: /*#__PURE__*/jsx("span", {
|
|
2101
|
-
className: `${CLASSNAME$
|
|
2167
|
+
className: `${CLASSNAME$19}__date`,
|
|
2102
2168
|
children: date
|
|
2103
2169
|
})
|
|
2104
2170
|
}) : /*#__PURE__*/jsx("span", {
|
|
2105
|
-
className: `${CLASSNAME$
|
|
2171
|
+
className: `${CLASSNAME$19}__date`,
|
|
2106
2172
|
children: date
|
|
2107
2173
|
}))]
|
|
2108
2174
|
}), hasActions && /*#__PURE__*/jsx("div", {
|
|
2109
|
-
className: `${CLASSNAME$
|
|
2175
|
+
className: `${CLASSNAME$19}__actions`,
|
|
2110
2176
|
children: actions
|
|
2111
2177
|
})]
|
|
2112
2178
|
})]
|
|
2113
2179
|
}), hasChildren && isOpen && /*#__PURE__*/jsx("div", {
|
|
2114
|
-
className: `${CLASSNAME$
|
|
2180
|
+
className: `${CLASSNAME$19}__children`,
|
|
2115
2181
|
children: children
|
|
2116
2182
|
})]
|
|
2117
2183
|
}));
|
|
2118
2184
|
});
|
|
2119
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
2120
|
-
CommentBlock.className = CLASSNAME$
|
|
2121
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
2185
|
+
CommentBlock.displayName = COMPONENT_NAME$1b;
|
|
2186
|
+
CommentBlock.className = CLASSNAME$19;
|
|
2187
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$V;
|
|
2122
2188
|
|
|
2123
2189
|
/**
|
|
2124
2190
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -2138,12 +2204,12 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
2138
2204
|
/**
|
|
2139
2205
|
* Component display name.
|
|
2140
2206
|
*/
|
|
2141
|
-
const COMPONENT_NAME$
|
|
2207
|
+
const COMPONENT_NAME$1a = 'DatePicker';
|
|
2142
2208
|
|
|
2143
2209
|
/**
|
|
2144
2210
|
* Component default class name and class prefix.
|
|
2145
2211
|
*/
|
|
2146
|
-
const CLASSNAME$
|
|
2212
|
+
const CLASSNAME$18 = getRootClassName(COMPONENT_NAME$1a);
|
|
2147
2213
|
|
|
2148
2214
|
/** Get first day of week for locale from the browser API */
|
|
2149
2215
|
const getFromBrowser = locale => {
|
|
@@ -2369,7 +2435,7 @@ function formatDayNumber(locale, date) {
|
|
|
2369
2435
|
/**
|
|
2370
2436
|
* Component display name.
|
|
2371
2437
|
*/
|
|
2372
|
-
const COMPONENT_NAME$
|
|
2438
|
+
const COMPONENT_NAME$19 = 'DatePickerControlled';
|
|
2373
2439
|
|
|
2374
2440
|
/**
|
|
2375
2441
|
* DatePickerControlled component.
|
|
@@ -2456,10 +2522,10 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2456
2522
|
const yearLabel = getYearDisplayName(locale);
|
|
2457
2523
|
return /*#__PURE__*/jsxs("div", {
|
|
2458
2524
|
ref: ref,
|
|
2459
|
-
className: `${CLASSNAME$
|
|
2525
|
+
className: `${CLASSNAME$18}`,
|
|
2460
2526
|
style: style,
|
|
2461
2527
|
children: [/*#__PURE__*/jsx(Toolbar, {
|
|
2462
|
-
className: `${CLASSNAME$
|
|
2528
|
+
className: `${CLASSNAME$18}__toolbar`,
|
|
2463
2529
|
after: /*#__PURE__*/jsx(IconButton, _objectSpread2(_objectSpread2({}, nextButtonProps), {}, {
|
|
2464
2530
|
emphasis: Emphasis.low,
|
|
2465
2531
|
icon: mdiChevronRight,
|
|
@@ -2477,7 +2543,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2477
2543
|
dir: "auto",
|
|
2478
2544
|
children: monthYear
|
|
2479
2545
|
}), onMonthChange && /*#__PURE__*/jsx(FlexBox, {
|
|
2480
|
-
className: `${CLASSNAME$
|
|
2546
|
+
className: `${CLASSNAME$18}__month`,
|
|
2481
2547
|
orientation: "horizontal",
|
|
2482
2548
|
hAlign: "center",
|
|
2483
2549
|
gap: "regular",
|
|
@@ -2492,7 +2558,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2492
2558
|
min: 0,
|
|
2493
2559
|
onBlur: updateYear,
|
|
2494
2560
|
onKeyPress: updateYearOnEnterPressed,
|
|
2495
|
-
className: `${CLASSNAME$
|
|
2561
|
+
className: `${CLASSNAME$18}__year`
|
|
2496
2562
|
}, "year") : /*#__PURE__*/jsx(Text, {
|
|
2497
2563
|
as: "p",
|
|
2498
2564
|
children: part
|
|
@@ -2500,17 +2566,17 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2500
2566
|
})]
|
|
2501
2567
|
})
|
|
2502
2568
|
}), /*#__PURE__*/jsxs("div", {
|
|
2503
|
-
className: `${CLASSNAME$
|
|
2569
|
+
className: `${CLASSNAME$18}__calendar`,
|
|
2504
2570
|
children: [/*#__PURE__*/jsx("div", {
|
|
2505
|
-
className: `${CLASSNAME$
|
|
2571
|
+
className: `${CLASSNAME$18}__week-days ${CLASSNAME$18}__days-wrapper`,
|
|
2506
2572
|
children: weekDays.map(({
|
|
2507
2573
|
letter,
|
|
2508
2574
|
number,
|
|
2509
2575
|
long
|
|
2510
2576
|
}) => /*#__PURE__*/jsxs("div", {
|
|
2511
|
-
className: `${CLASSNAME$
|
|
2577
|
+
className: `${CLASSNAME$18}__day-wrapper`,
|
|
2512
2578
|
children: [/*#__PURE__*/jsx("span", {
|
|
2513
|
-
className: `${CLASSNAME$
|
|
2579
|
+
className: `${CLASSNAME$18}__week-day`,
|
|
2514
2580
|
"aria-hidden": true,
|
|
2515
2581
|
children: letter.toLocaleUpperCase()
|
|
2516
2582
|
}), /*#__PURE__*/jsx("span", {
|
|
@@ -2519,7 +2585,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2519
2585
|
})]
|
|
2520
2586
|
}, number))
|
|
2521
2587
|
}), /*#__PURE__*/jsx("div", {
|
|
2522
|
-
className: `${CLASSNAME$
|
|
2588
|
+
className: `${CLASSNAME$18}__month-days ${CLASSNAME$18}__days-wrapper`,
|
|
2523
2589
|
children: weeks.flatMap((week, weekIndex) => {
|
|
2524
2590
|
return weekDays.map((weekDay, dayIndex) => {
|
|
2525
2591
|
const {
|
|
@@ -2530,11 +2596,11 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2530
2596
|
const isToday = !isOutOfRange && date && isSameDay(date, new Date());
|
|
2531
2597
|
const isSelected = date && value && isSameDay(value, date);
|
|
2532
2598
|
return /*#__PURE__*/jsx("div", {
|
|
2533
|
-
className: `${CLASSNAME$
|
|
2599
|
+
className: `${CLASSNAME$18}__day-wrapper`,
|
|
2534
2600
|
children: date && /*#__PURE__*/jsxs(Button, {
|
|
2535
2601
|
ref: isSelected || !value && isToday ? todayOrSelectedDateRef : null,
|
|
2536
|
-
className: classNames(`${CLASSNAME$
|
|
2537
|
-
[`${CLASSNAME$
|
|
2602
|
+
className: classNames$1(`${CLASSNAME$18}__month-day`, {
|
|
2603
|
+
[`${CLASSNAME$18}__month-day--is-today`]: isToday
|
|
2538
2604
|
}),
|
|
2539
2605
|
disabled: isOutOfRange,
|
|
2540
2606
|
isSelected: isSelected,
|
|
@@ -2559,10 +2625,10 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2559
2625
|
})]
|
|
2560
2626
|
});
|
|
2561
2627
|
});
|
|
2562
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
2563
|
-
DatePickerControlled.className = CLASSNAME$
|
|
2628
|
+
DatePickerControlled.displayName = COMPONENT_NAME$19;
|
|
2629
|
+
DatePickerControlled.className = CLASSNAME$18;
|
|
2564
2630
|
|
|
2565
|
-
const _excluded$
|
|
2631
|
+
const _excluded$1e = ["defaultMonth", "locale", "value", "onChange"];
|
|
2566
2632
|
/**
|
|
2567
2633
|
* DatePicker component.
|
|
2568
2634
|
*
|
|
@@ -2577,7 +2643,7 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
2577
2643
|
value,
|
|
2578
2644
|
onChange
|
|
2579
2645
|
} = props,
|
|
2580
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
2646
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1e);
|
|
2581
2647
|
let referenceDate = value || defaultMonth || new Date();
|
|
2582
2648
|
if (!isDateValid(referenceDate)) {
|
|
2583
2649
|
// eslint-disable-next-line no-console
|
|
@@ -2603,8 +2669,8 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
2603
2669
|
onMonthChange: setSelectedMonth
|
|
2604
2670
|
}));
|
|
2605
2671
|
});
|
|
2606
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
2607
|
-
DatePicker.className = CLASSNAME$
|
|
2672
|
+
DatePicker.displayName = COMPONENT_NAME$1a;
|
|
2673
|
+
DatePicker.className = CLASSNAME$18;
|
|
2608
2674
|
|
|
2609
2675
|
const useBooleanState = defaultValue => {
|
|
2610
2676
|
const [booleanValue, setBoolean] = useState(defaultValue);
|
|
@@ -2614,11 +2680,11 @@ const useBooleanState = defaultValue => {
|
|
|
2614
2680
|
return [booleanValue, setToFalse, setToTrue, toggleBoolean];
|
|
2615
2681
|
};
|
|
2616
2682
|
|
|
2617
|
-
const _excluded$
|
|
2683
|
+
const _excluded$1d = ["defaultMonth", "locale", "maxDate", "minDate", "name", "nextButtonProps", "onChange", "previousButtonProps", "value"];
|
|
2618
2684
|
/**
|
|
2619
2685
|
* Component display name.
|
|
2620
2686
|
*/
|
|
2621
|
-
const COMPONENT_NAME$
|
|
2687
|
+
const COMPONENT_NAME$18 = 'DatePickerField';
|
|
2622
2688
|
|
|
2623
2689
|
/**
|
|
2624
2690
|
* DatePickerField component.
|
|
@@ -2643,7 +2709,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
2643
2709
|
previousButtonProps,
|
|
2644
2710
|
value
|
|
2645
2711
|
} = otherProps,
|
|
2646
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
2712
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$1d);
|
|
2647
2713
|
const anchorRef = useRef(null);
|
|
2648
2714
|
const [isOpen, close,, toggleOpen] = useBooleanState(false);
|
|
2649
2715
|
const handleKeyboardNav = useCallback(evt => {
|
|
@@ -2707,7 +2773,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
2707
2773
|
}) : null]
|
|
2708
2774
|
});
|
|
2709
2775
|
});
|
|
2710
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
2776
|
+
DatePickerField.displayName = COMPONENT_NAME$18;
|
|
2711
2777
|
|
|
2712
2778
|
/**
|
|
2713
2779
|
* Keep track of listeners, only the last registered listener gets activated at any point (previously registered
|
|
@@ -3191,24 +3257,24 @@ const useTransitionVisibility = (ref, isComponentVisible, timeout, onVisibilityC
|
|
|
3191
3257
|
return isVisible || isComponentVisible;
|
|
3192
3258
|
};
|
|
3193
3259
|
|
|
3194
|
-
const _excluded$
|
|
3260
|
+
const _excluded$1c = ["children", "className", "header", "focusElement", "forceFooterDivider", "forceHeaderDivider", "footer", "isLoading", "isOpen", "onClose", "parentElement", "contentRef", "preventAutoClose", "size", "zIndex", "dialogProps", "onVisibilityChange", "disableBodyScroll", "preventCloseOnClick", "preventCloseOnEscape"];
|
|
3195
3261
|
const isHeader$1 = isComponent('header');
|
|
3196
3262
|
const isFooter$1 = isComponent('footer');
|
|
3197
3263
|
|
|
3198
3264
|
/**
|
|
3199
3265
|
* Component display name.
|
|
3200
3266
|
*/
|
|
3201
|
-
const COMPONENT_NAME$
|
|
3267
|
+
const COMPONENT_NAME$17 = 'Dialog';
|
|
3202
3268
|
|
|
3203
3269
|
/**
|
|
3204
3270
|
* Component default class name and class prefix.
|
|
3205
3271
|
*/
|
|
3206
|
-
const CLASSNAME$
|
|
3272
|
+
const CLASSNAME$17 = getRootClassName(COMPONENT_NAME$17);
|
|
3207
3273
|
|
|
3208
3274
|
/**
|
|
3209
3275
|
* Component default props.
|
|
3210
3276
|
*/
|
|
3211
|
-
const DEFAULT_PROPS$
|
|
3277
|
+
const DEFAULT_PROPS$U = {
|
|
3212
3278
|
size: Size.big,
|
|
3213
3279
|
disableBodyScroll: true
|
|
3214
3280
|
};
|
|
@@ -3240,15 +3306,15 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3240
3306
|
parentElement,
|
|
3241
3307
|
contentRef,
|
|
3242
3308
|
preventAutoClose,
|
|
3243
|
-
size = DEFAULT_PROPS$
|
|
3309
|
+
size = DEFAULT_PROPS$U.size,
|
|
3244
3310
|
zIndex,
|
|
3245
3311
|
dialogProps,
|
|
3246
3312
|
onVisibilityChange,
|
|
3247
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
3313
|
+
disableBodyScroll = DEFAULT_PROPS$U.disableBodyScroll,
|
|
3248
3314
|
preventCloseOnClick,
|
|
3249
3315
|
preventCloseOnEscape
|
|
3250
3316
|
} = props,
|
|
3251
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3317
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1c);
|
|
3252
3318
|
|
|
3253
3319
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
3254
3320
|
const previousOpen = React__default.useRef(isOpen);
|
|
@@ -3315,24 +3381,24 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3315
3381
|
children: /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
3316
3382
|
ref: mergeRefs(rootRef, ref)
|
|
3317
3383
|
}, forwardedProps), {}, {
|
|
3318
|
-
className: classNames(className, handleBasicClasses({
|
|
3384
|
+
className: classNames$1(className, handleBasicClasses({
|
|
3319
3385
|
isHidden: !isOpen,
|
|
3320
3386
|
isLoading,
|
|
3321
3387
|
isShown: isOpen || isVisible,
|
|
3322
|
-
prefix: CLASSNAME$
|
|
3388
|
+
prefix: CLASSNAME$17,
|
|
3323
3389
|
size
|
|
3324
3390
|
})),
|
|
3325
3391
|
style: {
|
|
3326
3392
|
zIndex
|
|
3327
3393
|
},
|
|
3328
3394
|
children: [/*#__PURE__*/jsx("div", {
|
|
3329
|
-
className: `${CLASSNAME$
|
|
3395
|
+
className: `${CLASSNAME$17}__overlay`
|
|
3330
3396
|
}), /*#__PURE__*/jsx(HeadingLevelProvider, {
|
|
3331
3397
|
level: 2,
|
|
3332
3398
|
children: /*#__PURE__*/jsx(ThemeProvider, {
|
|
3333
3399
|
value: undefined,
|
|
3334
3400
|
children: /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
3335
|
-
className: `${CLASSNAME$
|
|
3401
|
+
className: `${CLASSNAME$17}__container`,
|
|
3336
3402
|
role: "dialog",
|
|
3337
3403
|
"aria-modal": "true"
|
|
3338
3404
|
}, dialogProps), {}, {
|
|
@@ -3341,26 +3407,26 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3341
3407
|
childrenRefs: clickAwayRefs,
|
|
3342
3408
|
parentRef: rootRef,
|
|
3343
3409
|
children: /*#__PURE__*/jsxs("section", {
|
|
3344
|
-
className: `${CLASSNAME$
|
|
3410
|
+
className: `${CLASSNAME$17}__wrapper`,
|
|
3345
3411
|
ref: wrapperRef,
|
|
3346
3412
|
children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", _objectSpread2(_objectSpread2({}, headerChildProps), {}, {
|
|
3347
|
-
className: classNames(`${CLASSNAME$
|
|
3413
|
+
className: classNames$1(`${CLASSNAME$17}__header`, (forceHeaderDivider || hasTopIntersection) && `${CLASSNAME$17}__header--has-divider`, headerChildProps === null || headerChildProps === void 0 ? void 0 : headerChildProps.className),
|
|
3348
3414
|
children: [header, headerChildContent]
|
|
3349
3415
|
})), /*#__PURE__*/jsxs("div", {
|
|
3350
3416
|
ref: mergeRefs(contentRef, localContentRef),
|
|
3351
|
-
className: `${CLASSNAME$
|
|
3417
|
+
className: `${CLASSNAME$17}__content`,
|
|
3352
3418
|
children: [/*#__PURE__*/jsx("div", {
|
|
3353
|
-
className: `${CLASSNAME$
|
|
3419
|
+
className: `${CLASSNAME$17}__sentinel ${CLASSNAME$17}__sentinel--top`,
|
|
3354
3420
|
ref: setSentinelTop
|
|
3355
3421
|
}), content, /*#__PURE__*/jsx("div", {
|
|
3356
|
-
className: `${CLASSNAME$
|
|
3422
|
+
className: `${CLASSNAME$17}__sentinel ${CLASSNAME$17}__sentinel--bottom`,
|
|
3357
3423
|
ref: setSentinelBottom
|
|
3358
3424
|
})]
|
|
3359
3425
|
}), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", _objectSpread2(_objectSpread2({}, footerChildProps), {}, {
|
|
3360
|
-
className: classNames(`${CLASSNAME$
|
|
3426
|
+
className: classNames$1(`${CLASSNAME$17}__footer`, (forceFooterDivider || hasBottomIntersection) && `${CLASSNAME$17}__footer--has-divider`, footerChildProps === null || footerChildProps === void 0 ? void 0 : footerChildProps.className),
|
|
3361
3427
|
children: [footer, footerChildContent]
|
|
3362
3428
|
})), isLoading && /*#__PURE__*/jsx("div", {
|
|
3363
|
-
className: `${CLASSNAME$
|
|
3429
|
+
className: `${CLASSNAME$17}__progress-overlay`,
|
|
3364
3430
|
children: /*#__PURE__*/jsx(Progress, {
|
|
3365
3431
|
variant: ProgressVariant.circular
|
|
3366
3432
|
})
|
|
@@ -3373,25 +3439,25 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
3373
3439
|
}))
|
|
3374
3440
|
}) : null;
|
|
3375
3441
|
});
|
|
3376
|
-
Dialog.displayName = COMPONENT_NAME$
|
|
3377
|
-
Dialog.className = CLASSNAME$
|
|
3378
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
3442
|
+
Dialog.displayName = COMPONENT_NAME$17;
|
|
3443
|
+
Dialog.className = CLASSNAME$17;
|
|
3444
|
+
Dialog.defaultProps = DEFAULT_PROPS$U;
|
|
3379
3445
|
|
|
3380
|
-
const _excluded$
|
|
3446
|
+
const _excluded$1b = ["className", "theme"];
|
|
3381
3447
|
/**
|
|
3382
3448
|
* Component display name.
|
|
3383
3449
|
*/
|
|
3384
|
-
const COMPONENT_NAME$
|
|
3450
|
+
const COMPONENT_NAME$16 = 'Divider';
|
|
3385
3451
|
|
|
3386
3452
|
/**
|
|
3387
3453
|
* Component default class name and class prefix.
|
|
3388
3454
|
*/
|
|
3389
|
-
const CLASSNAME$
|
|
3455
|
+
const CLASSNAME$16 = getRootClassName(COMPONENT_NAME$16);
|
|
3390
3456
|
|
|
3391
3457
|
/**
|
|
3392
3458
|
* Component default props.
|
|
3393
3459
|
*/
|
|
3394
|
-
const DEFAULT_PROPS$
|
|
3460
|
+
const DEFAULT_PROPS$T = {};
|
|
3395
3461
|
|
|
3396
3462
|
/**
|
|
3397
3463
|
* Divider component.
|
|
@@ -3406,30 +3472,30 @@ const Divider = forwardRef((props, ref) => {
|
|
|
3406
3472
|
className,
|
|
3407
3473
|
theme = defaultTheme
|
|
3408
3474
|
} = props,
|
|
3409
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3475
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1b);
|
|
3410
3476
|
return /*#__PURE__*/jsx("hr", _objectSpread2(_objectSpread2({
|
|
3411
3477
|
ref: ref
|
|
3412
3478
|
}, forwardedProps), {}, {
|
|
3413
|
-
className: classNames(className, handleBasicClasses({
|
|
3414
|
-
prefix: CLASSNAME$
|
|
3479
|
+
className: classNames$1(className, handleBasicClasses({
|
|
3480
|
+
prefix: CLASSNAME$16,
|
|
3415
3481
|
theme
|
|
3416
3482
|
}))
|
|
3417
3483
|
}));
|
|
3418
3484
|
});
|
|
3419
|
-
Divider.displayName = COMPONENT_NAME$
|
|
3420
|
-
Divider.className = CLASSNAME$
|
|
3421
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
3485
|
+
Divider.displayName = COMPONENT_NAME$16;
|
|
3486
|
+
Divider.className = CLASSNAME$16;
|
|
3487
|
+
Divider.defaultProps = DEFAULT_PROPS$T;
|
|
3422
3488
|
|
|
3423
|
-
const _excluded$
|
|
3489
|
+
const _excluded$1a = ["className", "theme"];
|
|
3424
3490
|
/**
|
|
3425
3491
|
* Component display name.
|
|
3426
3492
|
*/
|
|
3427
|
-
const COMPONENT_NAME$
|
|
3493
|
+
const COMPONENT_NAME$15 = 'DragHandle';
|
|
3428
3494
|
|
|
3429
3495
|
/**
|
|
3430
3496
|
* Component default class name and class prefix.
|
|
3431
3497
|
*/
|
|
3432
|
-
const CLASSNAME$
|
|
3498
|
+
const CLASSNAME$15 = getRootClassName(COMPONENT_NAME$15);
|
|
3433
3499
|
|
|
3434
3500
|
/**
|
|
3435
3501
|
* DragHandle component.
|
|
@@ -3444,12 +3510,12 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
3444
3510
|
className,
|
|
3445
3511
|
theme = defaultTheme
|
|
3446
3512
|
} = props,
|
|
3447
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3513
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1a);
|
|
3448
3514
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
3449
3515
|
ref: ref
|
|
3450
3516
|
}, forwardedProps), {}, {
|
|
3451
|
-
className: classNames(className, handleBasicClasses({
|
|
3452
|
-
prefix: CLASSNAME$
|
|
3517
|
+
className: classNames$1(className, handleBasicClasses({
|
|
3518
|
+
prefix: CLASSNAME$15,
|
|
3453
3519
|
theme
|
|
3454
3520
|
})),
|
|
3455
3521
|
children: /*#__PURE__*/jsx(Icon, {
|
|
@@ -3459,8 +3525,8 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
3459
3525
|
})
|
|
3460
3526
|
}));
|
|
3461
3527
|
});
|
|
3462
|
-
DragHandle.displayName = COMPONENT_NAME$
|
|
3463
|
-
DragHandle.className = CLASSNAME$
|
|
3528
|
+
DragHandle.displayName = COMPONENT_NAME$15;
|
|
3529
|
+
DragHandle.className = CLASSNAME$15;
|
|
3464
3530
|
|
|
3465
3531
|
const INITIAL_INDEX$1 = -1;
|
|
3466
3532
|
|
|
@@ -3626,21 +3692,39 @@ const useKeyboardListNavigation = (items, ref, onListItemSelected, onListItemNav
|
|
|
3626
3692
|
};
|
|
3627
3693
|
};
|
|
3628
3694
|
|
|
3695
|
+
const _excluded$19 = ["linkAs"];
|
|
3696
|
+
/**
|
|
3697
|
+
* Render link with default <a> HTML component or a custom one provided by `linkAs`.
|
|
3698
|
+
*
|
|
3699
|
+
* Can be used to inject the `Link` component from `react-router` and provide better a11y on LumX components.
|
|
3700
|
+
*
|
|
3701
|
+
* @param linkAs Custom link component.
|
|
3702
|
+
* @param children Link children.
|
|
3703
|
+
* @return A link.
|
|
3704
|
+
*/
|
|
3705
|
+
const renderLink = (_ref, ...children) => {
|
|
3706
|
+
let {
|
|
3707
|
+
linkAs
|
|
3708
|
+
} = _ref,
|
|
3709
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$19);
|
|
3710
|
+
return /*#__PURE__*/React__default.createElement(linkAs || 'a', forwardedProps, ...children);
|
|
3711
|
+
};
|
|
3712
|
+
|
|
3629
3713
|
const _excluded$18 = ["after", "before", "children", "className", "isHighlighted", "isSelected", "linkAs", "linkProps", "linkRef", "onItemSelected", "size"];
|
|
3630
3714
|
/**
|
|
3631
3715
|
* Component display name.
|
|
3632
3716
|
*/
|
|
3633
|
-
const COMPONENT_NAME$
|
|
3717
|
+
const COMPONENT_NAME$14 = 'ListItem';
|
|
3634
3718
|
|
|
3635
3719
|
/**
|
|
3636
3720
|
* Component default class name and class prefix.
|
|
3637
3721
|
*/
|
|
3638
|
-
const CLASSNAME$
|
|
3722
|
+
const CLASSNAME$14 = getRootClassName(COMPONENT_NAME$14);
|
|
3639
3723
|
|
|
3640
3724
|
/**
|
|
3641
3725
|
* Component default props.
|
|
3642
3726
|
*/
|
|
3643
|
-
const DEFAULT_PROPS$
|
|
3727
|
+
const DEFAULT_PROPS$S = {
|
|
3644
3728
|
size: Size.regular
|
|
3645
3729
|
};
|
|
3646
3730
|
|
|
@@ -3679,7 +3763,7 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
3679
3763
|
linkProps = {},
|
|
3680
3764
|
linkRef,
|
|
3681
3765
|
onItemSelected,
|
|
3682
|
-
size = DEFAULT_PROPS$
|
|
3766
|
+
size = DEFAULT_PROPS$S.size
|
|
3683
3767
|
} = otherProps,
|
|
3684
3768
|
forwardedProps = _objectWithoutProperties(otherProps, _excluded$18);
|
|
3685
3769
|
const role = linkAs || linkProps.href ? 'link' : 'button';
|
|
@@ -3690,21 +3774,21 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
3690
3774
|
}, [role, onItemSelected]);
|
|
3691
3775
|
const content = /*#__PURE__*/jsxs(Fragment, {
|
|
3692
3776
|
children: [before && /*#__PURE__*/jsx("div", {
|
|
3693
|
-
className: `${CLASSNAME$
|
|
3777
|
+
className: `${CLASSNAME$14}__before`,
|
|
3694
3778
|
children: before
|
|
3695
3779
|
}), /*#__PURE__*/jsx("div", {
|
|
3696
|
-
className: `${CLASSNAME$
|
|
3780
|
+
className: `${CLASSNAME$14}__content`,
|
|
3697
3781
|
children: children
|
|
3698
3782
|
}), after && /*#__PURE__*/jsx("div", {
|
|
3699
|
-
className: `${CLASSNAME$
|
|
3783
|
+
className: `${CLASSNAME$14}__after`,
|
|
3700
3784
|
children: after
|
|
3701
3785
|
})]
|
|
3702
3786
|
});
|
|
3703
3787
|
return /*#__PURE__*/jsx("li", _objectSpread2(_objectSpread2({
|
|
3704
3788
|
ref: ref
|
|
3705
3789
|
}, forwardedProps), {}, {
|
|
3706
|
-
className: classNames(className, handleBasicClasses({
|
|
3707
|
-
prefix: CLASSNAME$
|
|
3790
|
+
className: classNames$1(className, handleBasicClasses({
|
|
3791
|
+
prefix: CLASSNAME$14,
|
|
3708
3792
|
size
|
|
3709
3793
|
})),
|
|
3710
3794
|
children: isClickable({
|
|
@@ -3718,8 +3802,8 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
3718
3802
|
'aria-disabled': isAnyDisabled
|
|
3719
3803
|
}, linkProps), {}, {
|
|
3720
3804
|
href: isAnyDisabled ? undefined : linkProps.href,
|
|
3721
|
-
className: classNames(handleBasicClasses({
|
|
3722
|
-
prefix: `${CLASSNAME$
|
|
3805
|
+
className: classNames$1(handleBasicClasses({
|
|
3806
|
+
prefix: `${CLASSNAME$14}__link`,
|
|
3723
3807
|
isHighlighted,
|
|
3724
3808
|
isSelected,
|
|
3725
3809
|
isDisabled: isAnyDisabled
|
|
@@ -3731,14 +3815,14 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
3731
3815
|
/*#__PURE__*/
|
|
3732
3816
|
/* Non clickable list item */
|
|
3733
3817
|
jsx("div", {
|
|
3734
|
-
className: `${CLASSNAME$
|
|
3818
|
+
className: `${CLASSNAME$14}__wrapper`,
|
|
3735
3819
|
children: content
|
|
3736
3820
|
})
|
|
3737
3821
|
}));
|
|
3738
3822
|
});
|
|
3739
|
-
ListItem.displayName = COMPONENT_NAME$
|
|
3740
|
-
ListItem.className = CLASSNAME$
|
|
3741
|
-
ListItem.defaultProps = DEFAULT_PROPS$
|
|
3823
|
+
ListItem.displayName = COMPONENT_NAME$14;
|
|
3824
|
+
ListItem.className = CLASSNAME$14;
|
|
3825
|
+
ListItem.defaultProps = DEFAULT_PROPS$S;
|
|
3742
3826
|
|
|
3743
3827
|
var reactIs = {exports: {}};
|
|
3744
3828
|
|
|
@@ -4173,17 +4257,17 @@ const _excluded$17 = ["children", "className", "isClickable", "itemPadding", "on
|
|
|
4173
4257
|
/**
|
|
4174
4258
|
* Component display name.
|
|
4175
4259
|
*/
|
|
4176
|
-
const COMPONENT_NAME$
|
|
4260
|
+
const COMPONENT_NAME$13 = 'List';
|
|
4177
4261
|
|
|
4178
4262
|
/**
|
|
4179
4263
|
* Component default class name and class prefix.
|
|
4180
4264
|
*/
|
|
4181
|
-
const CLASSNAME$
|
|
4265
|
+
const CLASSNAME$13 = getRootClassName(COMPONENT_NAME$13);
|
|
4182
4266
|
|
|
4183
4267
|
/**
|
|
4184
4268
|
* Component default props.
|
|
4185
4269
|
*/
|
|
4186
|
-
const DEFAULT_PROPS$
|
|
4270
|
+
const DEFAULT_PROPS$R = {
|
|
4187
4271
|
tabIndex: -1
|
|
4188
4272
|
};
|
|
4189
4273
|
|
|
@@ -4202,7 +4286,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
4202
4286
|
isClickable,
|
|
4203
4287
|
itemPadding,
|
|
4204
4288
|
onListItemSelected,
|
|
4205
|
-
tabIndex = DEFAULT_PROPS$
|
|
4289
|
+
tabIndex = DEFAULT_PROPS$R.tabIndex
|
|
4206
4290
|
} = props,
|
|
4207
4291
|
forwardedProps = _objectWithoutProperties(props, _excluded$17);
|
|
4208
4292
|
const listElementRef = useRef(null);
|
|
@@ -4216,8 +4300,8 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
4216
4300
|
});
|
|
4217
4301
|
const clickable = hasClickableItem || isClickable;
|
|
4218
4302
|
return /*#__PURE__*/jsx("ul", _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
4219
|
-
className: classNames(className, handleBasicClasses({
|
|
4220
|
-
prefix: CLASSNAME$
|
|
4303
|
+
className: classNames$1(className, handleBasicClasses({
|
|
4304
|
+
prefix: CLASSNAME$13,
|
|
4221
4305
|
itemPadding: itemPadding !== null && itemPadding !== void 0 ? itemPadding : clickable ? Size.big : undefined
|
|
4222
4306
|
})),
|
|
4223
4307
|
tabIndex: tabIndex,
|
|
@@ -4225,13 +4309,16 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
4225
4309
|
children: items
|
|
4226
4310
|
}));
|
|
4227
4311
|
});
|
|
4228
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
4229
|
-
InternalList.className = CLASSNAME$
|
|
4230
|
-
InternalList.defaultProps = DEFAULT_PROPS$
|
|
4312
|
+
InternalList.displayName = COMPONENT_NAME$13;
|
|
4313
|
+
InternalList.className = CLASSNAME$13;
|
|
4314
|
+
InternalList.defaultProps = DEFAULT_PROPS$R;
|
|
4231
4315
|
const List = Object.assign(InternalList, {
|
|
4232
4316
|
useKeyboardListNavigation
|
|
4233
4317
|
});
|
|
4234
4318
|
|
|
4319
|
+
/**
|
|
4320
|
+
* HOC component wrapping a component to skip render if predicate return falsy
|
|
4321
|
+
*/
|
|
4235
4322
|
const skipRender = (predicate, Component) => {
|
|
4236
4323
|
const Wrapper = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
4237
4324
|
if (!DOCUMENT) {
|
|
@@ -6648,17 +6735,17 @@ const _excluded$16 = ["anchorRef", "as", "children", "className", "closeOnClickA
|
|
|
6648
6735
|
/**
|
|
6649
6736
|
* Component display name.
|
|
6650
6737
|
*/
|
|
6651
|
-
const COMPONENT_NAME$
|
|
6738
|
+
const COMPONENT_NAME$12 = 'Popover';
|
|
6652
6739
|
|
|
6653
6740
|
/**
|
|
6654
6741
|
* Component default class name and class prefix.
|
|
6655
6742
|
*/
|
|
6656
|
-
const CLASSNAME$
|
|
6743
|
+
const CLASSNAME$12 = getRootClassName(COMPONENT_NAME$12);
|
|
6657
6744
|
|
|
6658
6745
|
/**
|
|
6659
6746
|
* Component default props.
|
|
6660
6747
|
*/
|
|
6661
|
-
const DEFAULT_PROPS$
|
|
6748
|
+
const DEFAULT_PROPS$Q = {
|
|
6662
6749
|
elevation: 3,
|
|
6663
6750
|
placement: Placement.AUTO,
|
|
6664
6751
|
focusAnchorOnClose: true,
|
|
@@ -6676,24 +6763,24 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6676
6763
|
className,
|
|
6677
6764
|
closeOnClickAway,
|
|
6678
6765
|
closeOnEscape,
|
|
6679
|
-
elevation = DEFAULT_PROPS$
|
|
6766
|
+
elevation = DEFAULT_PROPS$Q.elevation,
|
|
6680
6767
|
focusElement,
|
|
6681
6768
|
hasArrow,
|
|
6682
6769
|
isOpen,
|
|
6683
6770
|
onClose,
|
|
6684
6771
|
parentElement,
|
|
6685
|
-
usePortal = DEFAULT_PROPS$
|
|
6686
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6772
|
+
usePortal = DEFAULT_PROPS$Q.usePortal,
|
|
6773
|
+
focusAnchorOnClose = DEFAULT_PROPS$Q.focusAnchorOnClose,
|
|
6687
6774
|
withFocusTrap,
|
|
6688
6775
|
boundaryRef,
|
|
6689
6776
|
fitToAnchorWidth,
|
|
6690
6777
|
fitWithinViewportHeight,
|
|
6691
6778
|
focusTrapZoneElement,
|
|
6692
6779
|
offset,
|
|
6693
|
-
placement = DEFAULT_PROPS$
|
|
6780
|
+
placement = DEFAULT_PROPS$Q.placement,
|
|
6694
6781
|
style,
|
|
6695
6782
|
theme,
|
|
6696
|
-
zIndex = DEFAULT_PROPS$
|
|
6783
|
+
zIndex = DEFAULT_PROPS$Q.zIndex
|
|
6697
6784
|
} = props,
|
|
6698
6785
|
forwardedProps = _objectWithoutProperties(props, _excluded$16);
|
|
6699
6786
|
const popoverRef = useRef(null);
|
|
@@ -6733,8 +6820,8 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6733
6820
|
enabled: usePortal,
|
|
6734
6821
|
children: /*#__PURE__*/jsxs(Component, _objectSpread2(_objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
6735
6822
|
ref: mergedRefs,
|
|
6736
|
-
className: classNames(className, handleBasicClasses({
|
|
6737
|
-
prefix: CLASSNAME$
|
|
6823
|
+
className: classNames$1(className, handleBasicClasses({
|
|
6824
|
+
prefix: CLASSNAME$12,
|
|
6738
6825
|
theme,
|
|
6739
6826
|
elevation: Math.min(elevation || 0, 5),
|
|
6740
6827
|
position,
|
|
@@ -6747,7 +6834,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6747
6834
|
childrenRefs: clickAwayRefs,
|
|
6748
6835
|
children: [hasArrow && /*#__PURE__*/jsx("div", {
|
|
6749
6836
|
ref: setArrowElement,
|
|
6750
|
-
className: `${CLASSNAME$
|
|
6837
|
+
className: `${CLASSNAME$12}__arrow`,
|
|
6751
6838
|
style: styles.arrow,
|
|
6752
6839
|
children: /*#__PURE__*/jsx("svg", {
|
|
6753
6840
|
viewBox: "0 0 14 14",
|
|
@@ -6764,7 +6851,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
6764
6851
|
}))
|
|
6765
6852
|
}) : null;
|
|
6766
6853
|
});
|
|
6767
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
6854
|
+
_InnerPopover.displayName = COMPONENT_NAME$12;
|
|
6768
6855
|
|
|
6769
6856
|
/**
|
|
6770
6857
|
* Popover component.
|
|
@@ -6776,9 +6863,9 @@ _InnerPopover.displayName = COMPONENT_NAME$11;
|
|
|
6776
6863
|
const Popover = skipRender(
|
|
6777
6864
|
// Skip render in SSR
|
|
6778
6865
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
6779
|
-
Popover.displayName = COMPONENT_NAME$
|
|
6780
|
-
Popover.className = CLASSNAME$
|
|
6781
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
6866
|
+
Popover.displayName = COMPONENT_NAME$12;
|
|
6867
|
+
Popover.className = CLASSNAME$12;
|
|
6868
|
+
Popover.defaultProps = DEFAULT_PROPS$Q;
|
|
6782
6869
|
|
|
6783
6870
|
// The error margin in px we want to have for triggering infinite scroll
|
|
6784
6871
|
const SCROLL_TRIGGER_MARGIN = 5;
|
|
@@ -6825,17 +6912,17 @@ const _excluded$15 = ["anchorRef", "children", "className", "closeOnClick", "clo
|
|
|
6825
6912
|
/**
|
|
6826
6913
|
* Component display name.
|
|
6827
6914
|
*/
|
|
6828
|
-
const COMPONENT_NAME$
|
|
6915
|
+
const COMPONENT_NAME$11 = 'Dropdown';
|
|
6829
6916
|
|
|
6830
6917
|
/**
|
|
6831
6918
|
* Component default class name and class prefix.
|
|
6832
6919
|
*/
|
|
6833
|
-
const CLASSNAME$
|
|
6920
|
+
const CLASSNAME$11 = getRootClassName(COMPONENT_NAME$11);
|
|
6834
6921
|
|
|
6835
6922
|
/**
|
|
6836
6923
|
* Component default props.
|
|
6837
6924
|
*/
|
|
6838
|
-
const DEFAULT_PROPS$
|
|
6925
|
+
const DEFAULT_PROPS$P = {
|
|
6839
6926
|
closeOnClick: true,
|
|
6840
6927
|
closeOnClickAway: true,
|
|
6841
6928
|
closeOnEscape: true,
|
|
@@ -6858,18 +6945,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6858
6945
|
anchorRef,
|
|
6859
6946
|
children,
|
|
6860
6947
|
className,
|
|
6861
|
-
closeOnClick = DEFAULT_PROPS$
|
|
6862
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
6863
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
6864
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
6865
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
6948
|
+
closeOnClick = DEFAULT_PROPS$P.closeOnClick,
|
|
6949
|
+
closeOnClickAway = DEFAULT_PROPS$P.closeOnClickAway,
|
|
6950
|
+
closeOnEscape = DEFAULT_PROPS$P.closeOnEscape,
|
|
6951
|
+
fitToAnchorWidth = DEFAULT_PROPS$P.fitToAnchorWidth,
|
|
6952
|
+
fitWithinViewportHeight = DEFAULT_PROPS$P.fitWithinViewportHeight,
|
|
6866
6953
|
isOpen,
|
|
6867
6954
|
offset,
|
|
6868
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
6955
|
+
focusAnchorOnClose = DEFAULT_PROPS$P.focusAnchorOnClose,
|
|
6869
6956
|
onClose,
|
|
6870
6957
|
onInfiniteScroll,
|
|
6871
|
-
placement = DEFAULT_PROPS$
|
|
6872
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
6958
|
+
placement = DEFAULT_PROPS$P.placement,
|
|
6959
|
+
shouldFocusOnOpen = DEFAULT_PROPS$P.shouldFocusOnOpen,
|
|
6873
6960
|
zIndex
|
|
6874
6961
|
} = props,
|
|
6875
6962
|
forwardedProps = _objectWithoutProperties(props, _excluded$15);
|
|
@@ -6894,7 +6981,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6894
6981
|
}, forwardedProps), {}, {
|
|
6895
6982
|
focusAnchorOnClose: focusAnchorOnClose,
|
|
6896
6983
|
anchorRef: anchorRef,
|
|
6897
|
-
className: classNames(className, CLASSNAME$
|
|
6984
|
+
className: classNames$1(className, CLASSNAME$11),
|
|
6898
6985
|
elevation: 0,
|
|
6899
6986
|
closeOnClickAway: closeOnClickAway,
|
|
6900
6987
|
closeOnEscape: closeOnEscape,
|
|
@@ -6907,31 +6994,31 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
6907
6994
|
placement: placement,
|
|
6908
6995
|
zIndex: zIndex,
|
|
6909
6996
|
children: /*#__PURE__*/jsx("div", {
|
|
6910
|
-
className: `${CLASSNAME$
|
|
6997
|
+
className: `${CLASSNAME$11}__menu`,
|
|
6911
6998
|
ref: innerRef,
|
|
6912
6999
|
children: popperElement
|
|
6913
7000
|
})
|
|
6914
7001
|
})) : null;
|
|
6915
7002
|
});
|
|
6916
|
-
Dropdown.displayName = COMPONENT_NAME$
|
|
6917
|
-
Dropdown.className = CLASSNAME$
|
|
6918
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
7003
|
+
Dropdown.displayName = COMPONENT_NAME$11;
|
|
7004
|
+
Dropdown.className = CLASSNAME$11;
|
|
7005
|
+
Dropdown.defaultProps = DEFAULT_PROPS$P;
|
|
6919
7006
|
|
|
6920
7007
|
const _excluded$14 = ["className", "closeMode", "children", "hasBackground", "hasHeaderDivider", "isOpen", "label", "onClose", "onOpen", "onToggleOpen", "theme", "toggleButtonProps"];
|
|
6921
7008
|
/**
|
|
6922
7009
|
* Component display name.
|
|
6923
7010
|
*/
|
|
6924
|
-
const COMPONENT_NAME
|
|
7011
|
+
const COMPONENT_NAME$10 = 'ExpansionPanel';
|
|
6925
7012
|
|
|
6926
7013
|
/**
|
|
6927
7014
|
* Component default class name and class prefix.
|
|
6928
7015
|
*/
|
|
6929
|
-
const CLASSNAME
|
|
7016
|
+
const CLASSNAME$10 = getRootClassName(COMPONENT_NAME$10);
|
|
6930
7017
|
|
|
6931
7018
|
/**
|
|
6932
7019
|
* Component default props.
|
|
6933
7020
|
*/
|
|
6934
|
-
const DEFAULT_PROPS$
|
|
7021
|
+
const DEFAULT_PROPS$O = {
|
|
6935
7022
|
closeMode: 'unmount'
|
|
6936
7023
|
};
|
|
6937
7024
|
const isDragHandle = isComponent(DragHandle);
|
|
@@ -6949,7 +7036,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6949
7036
|
const defaultTheme = useTheme() || Theme.light;
|
|
6950
7037
|
const {
|
|
6951
7038
|
className,
|
|
6952
|
-
closeMode = DEFAULT_PROPS$
|
|
7039
|
+
closeMode = DEFAULT_PROPS$O.closeMode,
|
|
6953
7040
|
children: anyChildren,
|
|
6954
7041
|
hasBackground,
|
|
6955
7042
|
hasHeaderDivider,
|
|
@@ -6970,7 +7057,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6970
7057
|
// Either take the header in children or create one with the label.
|
|
6971
7058
|
const headerProps = /*#__PURE__*/React__default.isValidElement(header) ? header.props : {};
|
|
6972
7059
|
const headerContent = !isEmpty(headerProps.children) ? headerProps.children : /*#__PURE__*/jsx("span", {
|
|
6973
|
-
className: `${CLASSNAME
|
|
7060
|
+
className: `${CLASSNAME$10}__label`,
|
|
6974
7061
|
children: label
|
|
6975
7062
|
});
|
|
6976
7063
|
const toggleOpen = event => {
|
|
@@ -6986,14 +7073,14 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6986
7073
|
}
|
|
6987
7074
|
};
|
|
6988
7075
|
const color = theme === Theme.dark ? ColorPalette.light : ColorPalette.dark;
|
|
6989
|
-
const rootClassName = classNames(className, handleBasicClasses({
|
|
7076
|
+
const rootClassName = classNames$1(className, handleBasicClasses({
|
|
6990
7077
|
hasBackground,
|
|
6991
7078
|
hasHeader: Boolean(!isEmpty(headerProps.children)),
|
|
6992
7079
|
hasHeaderDivider,
|
|
6993
7080
|
isClose: !isOpen,
|
|
6994
7081
|
isDraggable: Boolean(dragHandle),
|
|
6995
7082
|
isOpen,
|
|
6996
|
-
prefix: CLASSNAME
|
|
7083
|
+
prefix: CLASSNAME$10,
|
|
6997
7084
|
theme
|
|
6998
7085
|
}));
|
|
6999
7086
|
const wrapperRef = useRef(null);
|
|
@@ -7030,16 +7117,16 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
7030
7117
|
}, forwardedProps), {}, {
|
|
7031
7118
|
className: rootClassName,
|
|
7032
7119
|
children: [/*#__PURE__*/jsxs("header", {
|
|
7033
|
-
className: `${CLASSNAME
|
|
7120
|
+
className: `${CLASSNAME$10}__header`,
|
|
7034
7121
|
onClick: toggleOpen,
|
|
7035
7122
|
children: [dragHandle && /*#__PURE__*/jsx("div", {
|
|
7036
|
-
className: `${CLASSNAME
|
|
7123
|
+
className: `${CLASSNAME$10}__header-drag`,
|
|
7037
7124
|
children: dragHandle
|
|
7038
7125
|
}), /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, headerProps), {}, {
|
|
7039
|
-
className: `${CLASSNAME
|
|
7126
|
+
className: `${CLASSNAME$10}__header-content`,
|
|
7040
7127
|
children: headerContent
|
|
7041
7128
|
})), /*#__PURE__*/jsx("div", {
|
|
7042
|
-
className: `${CLASSNAME
|
|
7129
|
+
className: `${CLASSNAME$10}__header-toggle`,
|
|
7043
7130
|
children: /*#__PURE__*/jsx(IconButton, _objectSpread2(_objectSpread2({}, toggleButtonProps), {}, {
|
|
7044
7131
|
color: color,
|
|
7045
7132
|
emphasis: Emphasis.low,
|
|
@@ -7048,29 +7135,29 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
7048
7135
|
}))
|
|
7049
7136
|
})]
|
|
7050
7137
|
}), /*#__PURE__*/jsx("div", {
|
|
7051
|
-
className: `${CLASSNAME
|
|
7138
|
+
className: `${CLASSNAME$10}__wrapper`,
|
|
7052
7139
|
ref: wrapperRef,
|
|
7053
7140
|
children: (isOpen || isChildrenVisible) && /*#__PURE__*/jsxs("div", {
|
|
7054
|
-
className: `${CLASSNAME
|
|
7141
|
+
className: `${CLASSNAME$10}__container`,
|
|
7055
7142
|
children: [/*#__PURE__*/jsx("div", {
|
|
7056
|
-
className: `${CLASSNAME
|
|
7143
|
+
className: `${CLASSNAME$10}__content`,
|
|
7057
7144
|
children: content
|
|
7058
7145
|
}), footer && /*#__PURE__*/jsx("div", {
|
|
7059
|
-
className: `${CLASSNAME
|
|
7146
|
+
className: `${CLASSNAME$10}__footer`,
|
|
7060
7147
|
children: footer
|
|
7061
7148
|
})]
|
|
7062
7149
|
})
|
|
7063
7150
|
})]
|
|
7064
7151
|
}));
|
|
7065
7152
|
});
|
|
7066
|
-
ExpansionPanel.displayName = COMPONENT_NAME
|
|
7067
|
-
ExpansionPanel.className = CLASSNAME
|
|
7068
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
7153
|
+
ExpansionPanel.displayName = COMPONENT_NAME$10;
|
|
7154
|
+
ExpansionPanel.className = CLASSNAME$10;
|
|
7155
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$O;
|
|
7069
7156
|
|
|
7070
7157
|
const _excluded$13 = ["label", "icon", "color", "className", "theme", "truncate"];
|
|
7071
|
-
const COMPONENT_NAME
|
|
7072
|
-
const CLASSNAME
|
|
7073
|
-
const DEFAULT_PROPS$
|
|
7158
|
+
const COMPONENT_NAME$$ = 'Flag';
|
|
7159
|
+
const CLASSNAME$$ = getRootClassName(COMPONENT_NAME$$);
|
|
7160
|
+
const DEFAULT_PROPS$N = {};
|
|
7074
7161
|
|
|
7075
7162
|
/**
|
|
7076
7163
|
* Flag component.
|
|
@@ -7093,8 +7180,8 @@ const Flag = forwardRef((props, ref) => {
|
|
|
7093
7180
|
const flagColor = color || (theme === Theme.light ? ColorPalette.dark : ColorPalette.light);
|
|
7094
7181
|
const isTruncated = !!truncate;
|
|
7095
7182
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
7096
|
-
className: classNames(className, handleBasicClasses({
|
|
7097
|
-
prefix: CLASSNAME
|
|
7183
|
+
className: classNames$1(className, handleBasicClasses({
|
|
7184
|
+
prefix: CLASSNAME$$,
|
|
7098
7185
|
color: flagColor,
|
|
7099
7186
|
isTruncated
|
|
7100
7187
|
})),
|
|
@@ -7102,30 +7189,30 @@ const Flag = forwardRef((props, ref) => {
|
|
|
7102
7189
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
7103
7190
|
icon: icon,
|
|
7104
7191
|
size: Size.xxs,
|
|
7105
|
-
className: `${CLASSNAME
|
|
7192
|
+
className: `${CLASSNAME$$}__icon`
|
|
7106
7193
|
}), /*#__PURE__*/jsx(Text, {
|
|
7107
7194
|
as: "span",
|
|
7108
7195
|
truncate: isTruncated,
|
|
7109
7196
|
typography: "overline",
|
|
7110
|
-
className: `${CLASSNAME
|
|
7197
|
+
className: `${CLASSNAME$$}__label`,
|
|
7111
7198
|
children: label
|
|
7112
7199
|
})]
|
|
7113
7200
|
}));
|
|
7114
7201
|
});
|
|
7115
|
-
Flag.displayName = COMPONENT_NAME
|
|
7116
|
-
Flag.className = CLASSNAME
|
|
7117
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
7202
|
+
Flag.displayName = COMPONENT_NAME$$;
|
|
7203
|
+
Flag.className = CLASSNAME$$;
|
|
7204
|
+
Flag.defaultProps = DEFAULT_PROPS$N;
|
|
7118
7205
|
|
|
7119
7206
|
const _excluded$12 = ["as", "children", "className", "fillSpace", "gap", "hAlign", "marginAuto", "noShrink", "orientation", "vAlign", "wrap"];
|
|
7120
7207
|
/**
|
|
7121
7208
|
* Component display name.
|
|
7122
7209
|
*/
|
|
7123
|
-
const COMPONENT_NAME$
|
|
7210
|
+
const COMPONENT_NAME$_ = 'FlexBox';
|
|
7124
7211
|
|
|
7125
7212
|
/**
|
|
7126
7213
|
* Component default class name and class prefix.
|
|
7127
7214
|
*/
|
|
7128
|
-
const CLASSNAME$
|
|
7215
|
+
const CLASSNAME$_ = getRootClassName(COMPONENT_NAME$_);
|
|
7129
7216
|
|
|
7130
7217
|
/**
|
|
7131
7218
|
* FlexBox component.
|
|
@@ -7152,34 +7239,34 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
7152
7239
|
return /*#__PURE__*/jsx(Component, _objectSpread2(_objectSpread2({
|
|
7153
7240
|
ref: ref
|
|
7154
7241
|
}, forwardedProps), {}, {
|
|
7155
|
-
className: classNames(className, handleBasicClasses({
|
|
7156
|
-
prefix: CLASSNAME$
|
|
7242
|
+
className: classNames$1(className, handleBasicClasses({
|
|
7243
|
+
prefix: CLASSNAME$_,
|
|
7157
7244
|
orientation: orientation !== null && orientation !== void 0 ? orientation : wrap || hAlign || vAlign ? Orientation.horizontal : null,
|
|
7158
7245
|
vAlign,
|
|
7159
7246
|
hAlign,
|
|
7160
7247
|
gap
|
|
7161
|
-
}), wrap && `${CLASSNAME$
|
|
7248
|
+
}), wrap && `${CLASSNAME$_}--wrap`, fillSpace && `${CLASSNAME$_}--fill-space`, noShrink && `${CLASSNAME$_}--no-shrink`, marginAuto && castArray(marginAuto).map(align => `${CLASSNAME$_}--margin-auto-${align}`)),
|
|
7162
7249
|
children: children
|
|
7163
7250
|
}));
|
|
7164
7251
|
});
|
|
7165
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
7166
|
-
FlexBox.className = CLASSNAME$
|
|
7252
|
+
FlexBox.displayName = COMPONENT_NAME$_;
|
|
7253
|
+
FlexBox.className = CLASSNAME$_;
|
|
7167
7254
|
|
|
7168
7255
|
const _excluded$11 = ["className", "figure", "figureProps", "children", "actions", "actionsProps", "gap", "orientation", "contentProps"];
|
|
7169
7256
|
/**
|
|
7170
7257
|
* Component display name.
|
|
7171
7258
|
*/
|
|
7172
|
-
const COMPONENT_NAME$
|
|
7259
|
+
const COMPONENT_NAME$Z = 'GenericBlock';
|
|
7173
7260
|
|
|
7174
7261
|
/**
|
|
7175
7262
|
* Component default class name and class prefix.
|
|
7176
7263
|
*/
|
|
7177
|
-
const CLASSNAME$
|
|
7264
|
+
const CLASSNAME$Z = getRootClassName(COMPONENT_NAME$Z);
|
|
7178
7265
|
|
|
7179
7266
|
/**
|
|
7180
7267
|
* Component default props.
|
|
7181
7268
|
*/
|
|
7182
|
-
const DEFAULT_PROPS$
|
|
7269
|
+
const DEFAULT_PROPS$M = {
|
|
7183
7270
|
gap: Size.big,
|
|
7184
7271
|
orientation: Orientation.horizontal
|
|
7185
7272
|
};
|
|
@@ -7210,8 +7297,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7210
7297
|
children,
|
|
7211
7298
|
actions,
|
|
7212
7299
|
actionsProps,
|
|
7213
|
-
gap = DEFAULT_PROPS$
|
|
7214
|
-
orientation = DEFAULT_PROPS$
|
|
7300
|
+
gap = DEFAULT_PROPS$M.gap,
|
|
7301
|
+
orientation = DEFAULT_PROPS$M.orientation,
|
|
7215
7302
|
contentProps
|
|
7216
7303
|
} = props,
|
|
7217
7304
|
forwardedProps = _objectWithoutProperties(props, _excluded$11);
|
|
@@ -7230,7 +7317,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7230
7317
|
}, [children]);
|
|
7231
7318
|
return /*#__PURE__*/jsxs(FlexBox, _objectSpread2(_objectSpread2({
|
|
7232
7319
|
ref: ref,
|
|
7233
|
-
className: classNames(className, CLASSNAME$
|
|
7320
|
+
className: classNames$1(className, CLASSNAME$Z),
|
|
7234
7321
|
gap: gap,
|
|
7235
7322
|
orientation: orientation
|
|
7236
7323
|
}, forwardedProps), {}, {
|
|
@@ -7239,7 +7326,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7239
7326
|
vAlign: forwardedProps.vAlign,
|
|
7240
7327
|
hAlign: forwardedProps.hAlign
|
|
7241
7328
|
}, figureProps), sections.figureChildProps), {}, {
|
|
7242
|
-
className: classNames(figureProps === null || figureProps === void 0 ? void 0 : figureProps.className, (_sections$figureChild3 = sections.figureChildProps) === null || _sections$figureChild3 === void 0 ? void 0 : _sections$figureChild3.className, `${CLASSNAME$
|
|
7329
|
+
className: classNames$1(figureProps === null || figureProps === void 0 ? void 0 : figureProps.className, (_sections$figureChild3 = sections.figureChildProps) === null || _sections$figureChild3 === void 0 ? void 0 : _sections$figureChild3.className, `${CLASSNAME$Z}__figure`),
|
|
7243
7330
|
children: [figure, (_sections$figureChild4 = sections.figureChildProps) === null || _sections$figureChild4 === void 0 ? void 0 : _sections$figureChild4.children]
|
|
7244
7331
|
})), (((_sections$contentChil = sections.contentChildProps) === null || _sections$contentChil === void 0 ? void 0 : _sections$contentChil.children) || sections.otherChildren.length > 0) && /*#__PURE__*/jsxs(FlexBox, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
7245
7332
|
ref: (_sections$contentChil2 = sections.contentChild) === null || _sections$contentChil2 === void 0 ? void 0 : _sections$contentChil2.ref,
|
|
@@ -7248,21 +7335,21 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
7248
7335
|
vAlign: forwardedProps.vAlign,
|
|
7249
7336
|
hAlign: forwardedProps.hAlign
|
|
7250
7337
|
}, contentProps), sections.contentChildProps), {}, {
|
|
7251
|
-
className: classNames(contentProps === null || contentProps === void 0 ? void 0 : contentProps.className, (_sections$contentChil3 = sections.contentChildProps) === null || _sections$contentChil3 === void 0 ? void 0 : _sections$contentChil3.className, `${CLASSNAME$
|
|
7338
|
+
className: classNames$1(contentProps === null || contentProps === void 0 ? void 0 : contentProps.className, (_sections$contentChil3 = sections.contentChildProps) === null || _sections$contentChil3 === void 0 ? void 0 : _sections$contentChil3.className, `${CLASSNAME$Z}__content`),
|
|
7252
7339
|
children: [(_sections$contentChil4 = sections.contentChildProps) === null || _sections$contentChil4 === void 0 ? void 0 : _sections$contentChil4.children, sections.otherChildren]
|
|
7253
7340
|
})), (actions || ((_sections$actionsChil = sections.actionsChildProps) === null || _sections$actionsChil === void 0 ? void 0 : _sections$actionsChil.children)) && /*#__PURE__*/jsxs(FlexBox, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
7254
7341
|
ref: (_sections$actionsChil2 = sections.actionsChild) === null || _sections$actionsChil2 === void 0 ? void 0 : _sections$actionsChil2.ref,
|
|
7255
7342
|
vAlign: forwardedProps.vAlign,
|
|
7256
7343
|
hAlign: forwardedProps.hAlign
|
|
7257
7344
|
}, actionsProps), sections.actionsChildProps), {}, {
|
|
7258
|
-
className: classNames(actionsProps === null || actionsProps === void 0 ? void 0 : actionsProps.className, (_sections$actionsChil3 = sections.actionsChildProps) === null || _sections$actionsChil3 === void 0 ? void 0 : _sections$actionsChil3.className, `${CLASSNAME$
|
|
7345
|
+
className: classNames$1(actionsProps === null || actionsProps === void 0 ? void 0 : actionsProps.className, (_sections$actionsChil3 = sections.actionsChildProps) === null || _sections$actionsChil3 === void 0 ? void 0 : _sections$actionsChil3.className, `${CLASSNAME$Z}__actions`),
|
|
7259
7346
|
children: [actions, (_sections$actionsChil4 = sections.actionsChildProps) === null || _sections$actionsChil4 === void 0 ? void 0 : _sections$actionsChil4.children]
|
|
7260
7347
|
}))]
|
|
7261
7348
|
}));
|
|
7262
7349
|
});
|
|
7263
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
7264
|
-
BaseGenericBlock.className = CLASSNAME$
|
|
7265
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
7350
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$Z;
|
|
7351
|
+
BaseGenericBlock.className = CLASSNAME$Z;
|
|
7352
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$M;
|
|
7266
7353
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
7267
7354
|
Figure,
|
|
7268
7355
|
Content,
|
|
@@ -7334,17 +7421,17 @@ const _excluded$10 = ["as", "children", "className", "color", "colorVariant", "n
|
|
|
7334
7421
|
/**
|
|
7335
7422
|
* Component display name.
|
|
7336
7423
|
*/
|
|
7337
|
-
const COMPONENT_NAME$
|
|
7424
|
+
const COMPONENT_NAME$Y = 'Text';
|
|
7338
7425
|
|
|
7339
7426
|
/**
|
|
7340
7427
|
* Component default class name and class prefix.
|
|
7341
7428
|
*/
|
|
7342
|
-
const CLASSNAME$
|
|
7429
|
+
const CLASSNAME$Y = getRootClassName(COMPONENT_NAME$Y);
|
|
7343
7430
|
|
|
7344
7431
|
/**
|
|
7345
7432
|
* Component default props.
|
|
7346
7433
|
*/
|
|
7347
|
-
const DEFAULT_PROPS$
|
|
7434
|
+
const DEFAULT_PROPS$L = {};
|
|
7348
7435
|
|
|
7349
7436
|
/**
|
|
7350
7437
|
* Text component.
|
|
@@ -7390,20 +7477,20 @@ const Text = forwardRef((props, ref) => {
|
|
|
7390
7477
|
} = useOverflowTooltipLabel(children);
|
|
7391
7478
|
return /*#__PURE__*/jsx(Component, _objectSpread2(_objectSpread2({
|
|
7392
7479
|
ref: useMergeRefs(ref, labelRef),
|
|
7393
|
-
className: classNames(className, handleBasicClasses({
|
|
7394
|
-
prefix: CLASSNAME$
|
|
7480
|
+
className: classNames$1(className, handleBasicClasses({
|
|
7481
|
+
prefix: CLASSNAME$Y,
|
|
7395
7482
|
isTruncated: isTruncated && !isTruncatedMultiline,
|
|
7396
7483
|
isTruncatedMultiline
|
|
7397
|
-
}), typographyClass, fontColorClass(color, colorVariant), noWrap && `${CLASSNAME$
|
|
7484
|
+
}), typographyClass, fontColorClass(color, colorVariant), noWrap && `${CLASSNAME$Y}--no-wrap`),
|
|
7398
7485
|
title: tooltipLabel,
|
|
7399
7486
|
style: _objectSpread2(_objectSpread2(_objectSpread2({}, truncateLinesStyle), whiteSpaceStyle), style)
|
|
7400
7487
|
}, forwardedProps), {}, {
|
|
7401
7488
|
children: wrapChildrenIconWithSpaces(children)
|
|
7402
7489
|
}));
|
|
7403
7490
|
});
|
|
7404
|
-
Text.displayName = COMPONENT_NAME$
|
|
7405
|
-
Text.className = CLASSNAME$
|
|
7406
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
7491
|
+
Text.displayName = COMPONENT_NAME$Y;
|
|
7492
|
+
Text.className = CLASSNAME$Y;
|
|
7493
|
+
Text.defaultProps = DEFAULT_PROPS$L;
|
|
7407
7494
|
|
|
7408
7495
|
/** The maximum authorized heading level. */
|
|
7409
7496
|
const MAX_HEADING_LEVEL = 6;
|
|
@@ -7441,17 +7528,17 @@ const _excluded$$ = ["children", "as", "className"];
|
|
|
7441
7528
|
/**
|
|
7442
7529
|
* Component display name.
|
|
7443
7530
|
*/
|
|
7444
|
-
const COMPONENT_NAME$
|
|
7531
|
+
const COMPONENT_NAME$X = 'Heading';
|
|
7445
7532
|
|
|
7446
7533
|
/**
|
|
7447
7534
|
* Component default class name and class prefix.
|
|
7448
7535
|
*/
|
|
7449
|
-
const CLASSNAME$
|
|
7536
|
+
const CLASSNAME$X = getRootClassName(COMPONENT_NAME$X);
|
|
7450
7537
|
|
|
7451
7538
|
/**
|
|
7452
7539
|
* Component default props.
|
|
7453
7540
|
*/
|
|
7454
|
-
const DEFAULT_PROPS$
|
|
7541
|
+
const DEFAULT_PROPS$K = {};
|
|
7455
7542
|
|
|
7456
7543
|
/**
|
|
7457
7544
|
* Renders a heading component.
|
|
@@ -7471,16 +7558,16 @@ const Heading = forwardRef((props, ref) => {
|
|
|
7471
7558
|
const computedHeadingElement = as || headingElement;
|
|
7472
7559
|
return /*#__PURE__*/jsx(Text, _objectSpread2(_objectSpread2({
|
|
7473
7560
|
ref: ref,
|
|
7474
|
-
className: classNames(className, CLASSNAME$
|
|
7561
|
+
className: classNames$1(className, CLASSNAME$X),
|
|
7475
7562
|
as: computedHeadingElement,
|
|
7476
7563
|
typography: DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
|
|
7477
7564
|
}, forwardedProps), {}, {
|
|
7478
7565
|
children: children
|
|
7479
7566
|
}));
|
|
7480
7567
|
});
|
|
7481
|
-
Heading.displayName = COMPONENT_NAME$
|
|
7482
|
-
Heading.className = CLASSNAME$
|
|
7483
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
7568
|
+
Heading.displayName = COMPONENT_NAME$X;
|
|
7569
|
+
Heading.className = CLASSNAME$X;
|
|
7570
|
+
Heading.defaultProps = DEFAULT_PROPS$K;
|
|
7484
7571
|
|
|
7485
7572
|
/**
|
|
7486
7573
|
* Provide a new heading level context.
|
|
@@ -7509,17 +7596,17 @@ const _excluded$_ = ["children", "className", "gutter", "hAlign", "orientation",
|
|
|
7509
7596
|
/**
|
|
7510
7597
|
* Component display name.
|
|
7511
7598
|
*/
|
|
7512
|
-
const COMPONENT_NAME$
|
|
7599
|
+
const COMPONENT_NAME$W = 'Grid';
|
|
7513
7600
|
|
|
7514
7601
|
/**
|
|
7515
7602
|
* Component default class name and class prefix.
|
|
7516
7603
|
*/
|
|
7517
|
-
const CLASSNAME$
|
|
7604
|
+
const CLASSNAME$W = getRootClassName(COMPONENT_NAME$W);
|
|
7518
7605
|
|
|
7519
7606
|
/**
|
|
7520
7607
|
* Component default props.
|
|
7521
7608
|
*/
|
|
7522
|
-
const DEFAULT_PROPS$
|
|
7609
|
+
const DEFAULT_PROPS$J = {
|
|
7523
7610
|
orientation: Orientation.horizontal,
|
|
7524
7611
|
wrap: 'nowrap'
|
|
7525
7612
|
};
|
|
@@ -7537,20 +7624,20 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7537
7624
|
className,
|
|
7538
7625
|
gutter,
|
|
7539
7626
|
hAlign,
|
|
7540
|
-
orientation = DEFAULT_PROPS$
|
|
7627
|
+
orientation = DEFAULT_PROPS$J.orientation,
|
|
7541
7628
|
vAlign,
|
|
7542
|
-
wrap = DEFAULT_PROPS$
|
|
7629
|
+
wrap = DEFAULT_PROPS$J.wrap
|
|
7543
7630
|
} = props,
|
|
7544
7631
|
forwardedProps = _objectWithoutProperties(props, _excluded$_);
|
|
7545
7632
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
7546
7633
|
ref: ref
|
|
7547
7634
|
}, forwardedProps), {}, {
|
|
7548
|
-
className: classNames(className, `${CLASSNAME$
|
|
7549
|
-
[`${CLASSNAME$
|
|
7635
|
+
className: classNames$1(className, `${CLASSNAME$W}-container`, {
|
|
7636
|
+
[`${CLASSNAME$W}--h-align-${hAlign}`]: hAlign
|
|
7550
7637
|
}, {
|
|
7551
|
-
[`${CLASSNAME$
|
|
7638
|
+
[`${CLASSNAME$W}--v-align-${vAlign}`]: vAlign
|
|
7552
7639
|
}, handleBasicClasses({
|
|
7553
|
-
prefix: CLASSNAME$
|
|
7640
|
+
prefix: CLASSNAME$W,
|
|
7554
7641
|
orientation,
|
|
7555
7642
|
wrap,
|
|
7556
7643
|
gutter
|
|
@@ -7558,20 +7645,20 @@ const Grid = forwardRef((props, ref) => {
|
|
|
7558
7645
|
children: children
|
|
7559
7646
|
}));
|
|
7560
7647
|
});
|
|
7561
|
-
Grid.displayName = COMPONENT_NAME$
|
|
7562
|
-
Grid.className = CLASSNAME$
|
|
7563
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
7648
|
+
Grid.displayName = COMPONENT_NAME$W;
|
|
7649
|
+
Grid.className = CLASSNAME$W;
|
|
7650
|
+
Grid.defaultProps = DEFAULT_PROPS$J;
|
|
7564
7651
|
|
|
7565
7652
|
const _excluded$Z = ["children", "className", "width", "align", "order"];
|
|
7566
7653
|
/**
|
|
7567
7654
|
* Component display name.
|
|
7568
7655
|
*/
|
|
7569
|
-
const COMPONENT_NAME$
|
|
7656
|
+
const COMPONENT_NAME$V = 'GridItem';
|
|
7570
7657
|
|
|
7571
7658
|
/**
|
|
7572
7659
|
* Component default class name and class prefix.
|
|
7573
7660
|
*/
|
|
7574
|
-
const CLASSNAME$
|
|
7661
|
+
const CLASSNAME$V = getRootClassName(COMPONENT_NAME$V);
|
|
7575
7662
|
|
|
7576
7663
|
/**
|
|
7577
7664
|
* GridItem component.
|
|
@@ -7592,8 +7679,8 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
7592
7679
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
7593
7680
|
ref: ref
|
|
7594
7681
|
}, forwardedProps), {}, {
|
|
7595
|
-
className: classNames(className, handleBasicClasses({
|
|
7596
|
-
prefix: CLASSNAME$
|
|
7682
|
+
className: classNames$1(className, handleBasicClasses({
|
|
7683
|
+
prefix: CLASSNAME$V,
|
|
7597
7684
|
width,
|
|
7598
7685
|
order,
|
|
7599
7686
|
align
|
|
@@ -7601,24 +7688,24 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
7601
7688
|
children: children
|
|
7602
7689
|
}));
|
|
7603
7690
|
});
|
|
7604
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
7605
|
-
GridItem.className = CLASSNAME$
|
|
7691
|
+
GridItem.displayName = COMPONENT_NAME$V;
|
|
7692
|
+
GridItem.className = CLASSNAME$V;
|
|
7606
7693
|
|
|
7607
7694
|
const _excluded$Y = ["as", "gap", "maxColumns", "itemMinWidth", "children", "className", "style"];
|
|
7608
7695
|
/**
|
|
7609
7696
|
* Component display name.
|
|
7610
7697
|
*/
|
|
7611
|
-
const COMPONENT_NAME$
|
|
7698
|
+
const COMPONENT_NAME$U = 'GridColumn';
|
|
7612
7699
|
|
|
7613
7700
|
/**
|
|
7614
7701
|
* Component default class name and class prefix.
|
|
7615
7702
|
*/
|
|
7616
|
-
const CLASSNAME$
|
|
7703
|
+
const CLASSNAME$U = getRootClassName(COMPONENT_NAME$U);
|
|
7617
7704
|
|
|
7618
7705
|
/**
|
|
7619
7706
|
* Component default props.
|
|
7620
7707
|
*/
|
|
7621
|
-
const DEFAULT_PROPS$
|
|
7708
|
+
const DEFAULT_PROPS$I = {};
|
|
7622
7709
|
|
|
7623
7710
|
/**
|
|
7624
7711
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -7642,7 +7729,7 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7642
7729
|
forwardedProps = _objectWithoutProperties(props, _excluded$Y);
|
|
7643
7730
|
return /*#__PURE__*/jsx(Component, _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
7644
7731
|
ref: ref,
|
|
7645
|
-
className: classNames(className, CLASSNAME$
|
|
7732
|
+
className: classNames$1(className, CLASSNAME$U),
|
|
7646
7733
|
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
7647
7734
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
7648
7735
|
['--lumx-grid-column-columns']: maxColumns,
|
|
@@ -7651,11 +7738,77 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
7651
7738
|
children: children
|
|
7652
7739
|
}));
|
|
7653
7740
|
});
|
|
7654
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
7655
|
-
GridColumn.className = CLASSNAME$
|
|
7656
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
7741
|
+
GridColumn.displayName = COMPONENT_NAME$U;
|
|
7742
|
+
GridColumn.className = CLASSNAME$U;
|
|
7743
|
+
GridColumn.defaultProps = DEFAULT_PROPS$I;
|
|
7744
|
+
|
|
7745
|
+
const _excluded$X = ["className", "kind", "theme"];
|
|
7746
|
+
const INPUT_HELPER_CONFIGURATION$1 = {
|
|
7747
|
+
error: {
|
|
7748
|
+
color: 'red'
|
|
7749
|
+
},
|
|
7750
|
+
success: {
|
|
7751
|
+
color: 'green'
|
|
7752
|
+
},
|
|
7753
|
+
warning: {
|
|
7754
|
+
color: 'yellow'
|
|
7755
|
+
}
|
|
7756
|
+
};
|
|
7757
|
+
|
|
7758
|
+
/**
|
|
7759
|
+
* Defines the props of the component.
|
|
7760
|
+
*/
|
|
7761
|
+
|
|
7762
|
+
/**
|
|
7763
|
+
* Component display name.
|
|
7764
|
+
*/
|
|
7765
|
+
const COMPONENT_NAME$T = 'InputHelper';
|
|
7766
|
+
|
|
7767
|
+
/**
|
|
7768
|
+
* Component default class name and class prefix.
|
|
7769
|
+
*/
|
|
7770
|
+
const CLASSNAME$T = getRootClassName(COMPONENT_NAME$T);
|
|
7771
|
+
|
|
7772
|
+
/**
|
|
7773
|
+
* Component default props.
|
|
7774
|
+
*/
|
|
7775
|
+
const DEFAULT_PROPS$H = {
|
|
7776
|
+
kind: Kind.info
|
|
7777
|
+
};
|
|
7778
|
+
|
|
7779
|
+
/**
|
|
7780
|
+
* InputHelper component.
|
|
7781
|
+
*
|
|
7782
|
+
* @param props Component props.
|
|
7783
|
+
* @param ref Component ref.
|
|
7784
|
+
* @return React element.
|
|
7785
|
+
*/
|
|
7786
|
+
const InputHelper$1 = (props, options) => {
|
|
7787
|
+
const defaultTheme = Theme.light;
|
|
7788
|
+
const {
|
|
7789
|
+
className,
|
|
7790
|
+
kind = DEFAULT_PROPS$H.kind,
|
|
7791
|
+
theme = defaultTheme
|
|
7792
|
+
} = props,
|
|
7793
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$X);
|
|
7794
|
+
const childrenToRender = options && options.slots && options.slots.default ? options.slots.default() : props.children;
|
|
7795
|
+
const {
|
|
7796
|
+
color
|
|
7797
|
+
} = INPUT_HELPER_CONFIGURATION$1[kind] || {};
|
|
7798
|
+
return /*#__PURE__*/jsx("p", _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
7799
|
+
className: classNames(className, handleBasicClasses({
|
|
7800
|
+
prefix: CLASSNAME$T,
|
|
7801
|
+
color,
|
|
7802
|
+
theme
|
|
7803
|
+
})),
|
|
7804
|
+
children: childrenToRender
|
|
7805
|
+
}));
|
|
7806
|
+
};
|
|
7807
|
+
InputHelper$1.displayName = COMPONENT_NAME$T;
|
|
7808
|
+
InputHelper$1.className = CLASSNAME$T;
|
|
7809
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$H;
|
|
7657
7810
|
|
|
7658
|
-
const _excluded$
|
|
7811
|
+
const _excluded$W = ["className", "color", "colorVariant", "hasShape", "icon", "size", "theme", "alt", "ref"];
|
|
7659
7812
|
/**
|
|
7660
7813
|
* Component display name.
|
|
7661
7814
|
*/
|
|
@@ -7679,6 +7832,7 @@ const DEFAULT_PROPS$G = {};
|
|
|
7679
7832
|
* @return React element.
|
|
7680
7833
|
*/
|
|
7681
7834
|
const Icon$1 = props => {
|
|
7835
|
+
console.log(props);
|
|
7682
7836
|
const {
|
|
7683
7837
|
className,
|
|
7684
7838
|
color: propColor,
|
|
@@ -7690,7 +7844,7 @@ const Icon$1 = props => {
|
|
|
7690
7844
|
alt,
|
|
7691
7845
|
ref
|
|
7692
7846
|
} = props,
|
|
7693
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
7847
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$W);
|
|
7694
7848
|
const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
|
|
7695
7849
|
|
|
7696
7850
|
// Color
|
|
@@ -7716,7 +7870,7 @@ const Icon$1 = props => {
|
|
|
7716
7870
|
} else if (hasShape) {
|
|
7717
7871
|
iconSize = Size.m;
|
|
7718
7872
|
}
|
|
7719
|
-
return /*#__PURE__*/
|
|
7873
|
+
return /*#__PURE__*/jsxs("i", _objectSpread2(_objectSpread2({
|
|
7720
7874
|
ref: ref
|
|
7721
7875
|
}, forwardedProps), {}, {
|
|
7722
7876
|
className: classNames(className, handleBasicClasses({
|
|
@@ -7727,7 +7881,9 @@ const Icon$1 = props => {
|
|
|
7727
7881
|
theme,
|
|
7728
7882
|
size: iconSize
|
|
7729
7883
|
}), !hasShape && `${CLASSNAME$S}--no-shape`, !hasShape && iconColor === ColorPalette.yellow && icon === mdiAlertCircle && `${CLASSNAME$S}--has-dark-layer`, `${CLASSNAME$S}--path`),
|
|
7730
|
-
children: /*#__PURE__*/jsx(
|
|
7884
|
+
children: [/*#__PURE__*/jsx(InputHelper$1, {
|
|
7885
|
+
children: "test"
|
|
7886
|
+
}), /*#__PURE__*/jsx("svg", {
|
|
7731
7887
|
"aria-hidden": alt ? undefined : 'true',
|
|
7732
7888
|
role: alt ? 'img' : undefined,
|
|
7733
7889
|
"aria-label": alt,
|
|
@@ -7742,7 +7898,7 @@ const Icon$1 = props => {
|
|
|
7742
7898
|
d: icon,
|
|
7743
7899
|
fill: "currentColor"
|
|
7744
7900
|
})
|
|
7745
|
-
})
|
|
7901
|
+
})]
|
|
7746
7902
|
}));
|
|
7747
7903
|
};
|
|
7748
7904
|
Icon$1.displayName = COMPONENT_NAME$S;
|
|
@@ -7801,7 +7957,7 @@ const ImageCaption = props => {
|
|
|
7801
7957
|
};
|
|
7802
7958
|
return /*#__PURE__*/jsxs(FlexBox, {
|
|
7803
7959
|
as: as,
|
|
7804
|
-
className: classNames(baseClassName && `${baseClassName}__wrapper`),
|
|
7960
|
+
className: classNames$1(baseClassName && `${baseClassName}__wrapper`),
|
|
7805
7961
|
style: captionStyle,
|
|
7806
7962
|
orientation: "vertical",
|
|
7807
7963
|
vAlign: align,
|
|
@@ -7809,22 +7965,22 @@ const ImageCaption = props => {
|
|
|
7809
7965
|
gap: "regular",
|
|
7810
7966
|
children: [(title || description) && /*#__PURE__*/jsxs(Text, _objectSpread2(_objectSpread2({
|
|
7811
7967
|
as: "p",
|
|
7812
|
-
className: classNames(baseClassName && `${baseClassName}__caption`),
|
|
7968
|
+
className: classNames$1(baseClassName && `${baseClassName}__caption`),
|
|
7813
7969
|
truncate: truncate
|
|
7814
7970
|
}, baseColor), {}, {
|
|
7815
7971
|
children: [title && /*#__PURE__*/jsx(Text, _objectSpread2(_objectSpread2(_objectSpread2({}, titleProps), {}, {
|
|
7816
7972
|
as: "span",
|
|
7817
|
-
className: classNames(titleProps === null || titleProps === void 0 ? void 0 : titleProps.className, baseClassName && `${baseClassName}__title`),
|
|
7973
|
+
className: classNames$1(titleProps === null || titleProps === void 0 ? void 0 : titleProps.className, baseClassName && `${baseClassName}__title`),
|
|
7818
7974
|
typography: "subtitle1"
|
|
7819
7975
|
}, titleColor), {}, {
|
|
7820
7976
|
children: title
|
|
7821
7977
|
})), ' ', description && /*#__PURE__*/jsx(Text, _objectSpread2(_objectSpread2({}, descriptionProps), {}, {
|
|
7822
7978
|
as: "span",
|
|
7823
|
-
className: classNames(descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.className, baseClassName && `${baseClassName}__description`),
|
|
7979
|
+
className: classNames$1(descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.className, baseClassName && `${baseClassName}__description`),
|
|
7824
7980
|
typography: "body1"
|
|
7825
7981
|
}, descriptionContent))]
|
|
7826
7982
|
})), tags && /*#__PURE__*/jsx(FlexBox, {
|
|
7827
|
-
className: classNames(baseClassName && `${baseClassName}__tags`),
|
|
7983
|
+
className: classNames$1(baseClassName && `${baseClassName}__tags`),
|
|
7828
7984
|
orientation: "horizontal",
|
|
7829
7985
|
vAlign: align,
|
|
7830
7986
|
children: tags
|
|
@@ -7832,7 +7988,7 @@ const ImageCaption = props => {
|
|
|
7832
7988
|
});
|
|
7833
7989
|
};
|
|
7834
7990
|
|
|
7835
|
-
const _excluded$
|
|
7991
|
+
const _excluded$V = ["actions", "align", "alt", "captionPosition", "captionStyle", "className", "description", "descriptionProps", "fillHeight", "image", "size", "tags", "theme", "thumbnailProps", "title", "titleProps"];
|
|
7836
7992
|
const ImageBlockCaptionPosition = {
|
|
7837
7993
|
below: 'below',
|
|
7838
7994
|
over: 'over'
|
|
@@ -7891,11 +8047,11 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7891
8047
|
title,
|
|
7892
8048
|
titleProps
|
|
7893
8049
|
} = props,
|
|
7894
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8050
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$V);
|
|
7895
8051
|
return /*#__PURE__*/jsxs("figure", _objectSpread2(_objectSpread2({
|
|
7896
8052
|
ref: ref
|
|
7897
8053
|
}, forwardedProps), {}, {
|
|
7898
|
-
className: classNames(className, handleBasicClasses({
|
|
8054
|
+
className: classNames$1(className, handleBasicClasses({
|
|
7899
8055
|
prefix: CLASSNAME$R,
|
|
7900
8056
|
captionPosition,
|
|
7901
8057
|
align,
|
|
@@ -7903,7 +8059,7 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
7903
8059
|
theme
|
|
7904
8060
|
}), fillHeight && `${CLASSNAME$R}--fill-height`),
|
|
7905
8061
|
children: [/*#__PURE__*/jsx(Thumbnail, _objectSpread2(_objectSpread2({}, thumbnailProps), {}, {
|
|
7906
|
-
className: classNames(`${CLASSNAME$R}__image`, thumbnailProps === null || thumbnailProps === void 0 ? void 0 : thumbnailProps.className),
|
|
8062
|
+
className: classNames$1(`${CLASSNAME$R}__image`, thumbnailProps === null || thumbnailProps === void 0 ? void 0 : thumbnailProps.className),
|
|
7907
8063
|
fillHeight: fillHeight,
|
|
7908
8064
|
align: align,
|
|
7909
8065
|
image: image,
|
|
@@ -8272,7 +8428,7 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
8272
8428
|
});
|
|
8273
8429
|
}, isEqual);
|
|
8274
8430
|
|
|
8275
|
-
const _excluded$
|
|
8431
|
+
const _excluded$U = ["image", "imgRef"];
|
|
8276
8432
|
/** Internal image slideshow component for ImageLightbox */
|
|
8277
8433
|
const ImageSlideshow = ({
|
|
8278
8434
|
activeImageIndex,
|
|
@@ -8378,7 +8534,7 @@ const ImageSlideshow = ({
|
|
|
8378
8534
|
image,
|
|
8379
8535
|
imgRef
|
|
8380
8536
|
} = _ref,
|
|
8381
|
-
imageProps = _objectWithoutProperties(_ref, _excluded$
|
|
8537
|
+
imageProps = _objectWithoutProperties(_ref, _excluded$U);
|
|
8382
8538
|
const isActive = index === activeIndex;
|
|
8383
8539
|
return /*#__PURE__*/jsx(ImageSlide, {
|
|
8384
8540
|
isActive: isActive,
|
|
@@ -8590,7 +8746,7 @@ function useImageLightbox(props) {
|
|
|
8590
8746
|
};
|
|
8591
8747
|
}
|
|
8592
8748
|
|
|
8593
|
-
const _excluded$
|
|
8749
|
+
const _excluded$T = ["className", "isOpen", "closeButtonProps", "onClose", "parentElement", "activeImageIndex", "slideshowControlsProps", "slideGroupLabel", "images", "zoomOutButtonProps", "zoomInButtonProps", "activeImageRef"];
|
|
8594
8750
|
const Inner = forwardRef((props, ref) => {
|
|
8595
8751
|
const {
|
|
8596
8752
|
className,
|
|
@@ -8606,7 +8762,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
8606
8762
|
zoomInButtonProps,
|
|
8607
8763
|
activeImageRef: propImageRef
|
|
8608
8764
|
} = props,
|
|
8609
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8765
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$T);
|
|
8610
8766
|
const currentPaginationItemRef = React__default.useRef(null);
|
|
8611
8767
|
const footerRef = React__default.useRef(null);
|
|
8612
8768
|
const imageRef = React__default.useRef(null);
|
|
@@ -8621,7 +8777,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
8621
8777
|
}, [onClose]);
|
|
8622
8778
|
return /*#__PURE__*/jsx(Lightbox, _objectSpread2(_objectSpread2({
|
|
8623
8779
|
ref: ref,
|
|
8624
|
-
className: classNames(className, CLASSNAME$Q),
|
|
8780
|
+
className: classNames$1(className, CLASSNAME$Q),
|
|
8625
8781
|
parentElement: parentElement,
|
|
8626
8782
|
isOpen: isOpen,
|
|
8627
8783
|
onClose: onClose,
|
|
@@ -8664,7 +8820,7 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
8664
8820
|
useImageLightbox
|
|
8665
8821
|
});
|
|
8666
8822
|
|
|
8667
|
-
const _excluded$
|
|
8823
|
+
const _excluded$S = ["className", "color", "colorVariant", "typography", "children", "wrap"];
|
|
8668
8824
|
/**
|
|
8669
8825
|
* Component display name.
|
|
8670
8826
|
*/
|
|
@@ -8696,14 +8852,14 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
8696
8852
|
children,
|
|
8697
8853
|
wrap
|
|
8698
8854
|
} = props,
|
|
8699
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8855
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$S);
|
|
8700
8856
|
const typographyClassName = typography && getTypographyClassName(typography);
|
|
8701
8857
|
return (
|
|
8702
8858
|
/*#__PURE__*/
|
|
8703
8859
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
8704
8860
|
jsx("ul", _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
8705
8861
|
ref: ref,
|
|
8706
|
-
className: classNames(className, CLASSNAME$P, wrap && `${CLASSNAME$P}--wrap`, fontColorClass(color, colorVariant), typographyClassName)
|
|
8862
|
+
className: classNames$1(className, CLASSNAME$P, wrap && `${CLASSNAME$P}--wrap`, fontColorClass(color, colorVariant), typographyClassName)
|
|
8707
8863
|
// Lists with removed bullet style can lose their a11y list role on some browsers
|
|
8708
8864
|
,
|
|
8709
8865
|
role: "list",
|
|
@@ -8743,7 +8899,7 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
8743
8899
|
}
|
|
8744
8900
|
};
|
|
8745
8901
|
|
|
8746
|
-
const _excluded$
|
|
8902
|
+
const _excluded$R = ["children", "className", "kind", "theme"];
|
|
8747
8903
|
/**
|
|
8748
8904
|
* Component display name.
|
|
8749
8905
|
*/
|
|
@@ -8776,14 +8932,14 @@ const InputHelper = forwardRef((props, ref) => {
|
|
|
8776
8932
|
kind = DEFAULT_PROPS$D.kind,
|
|
8777
8933
|
theme = defaultTheme
|
|
8778
8934
|
} = props,
|
|
8779
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8935
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$R);
|
|
8780
8936
|
const {
|
|
8781
8937
|
color
|
|
8782
8938
|
} = INPUT_HELPER_CONFIGURATION[kind] || {};
|
|
8783
8939
|
return /*#__PURE__*/jsx("p", _objectSpread2(_objectSpread2({
|
|
8784
8940
|
ref: ref
|
|
8785
8941
|
}, forwardedProps), {}, {
|
|
8786
|
-
className: classNames(className, handleBasicClasses({
|
|
8942
|
+
className: classNames$1(className, handleBasicClasses({
|
|
8787
8943
|
prefix: CLASSNAME$O,
|
|
8788
8944
|
color,
|
|
8789
8945
|
theme
|
|
@@ -8795,7 +8951,7 @@ InputHelper.displayName = COMPONENT_NAME$O;
|
|
|
8795
8951
|
InputHelper.className = CLASSNAME$O;
|
|
8796
8952
|
InputHelper.defaultProps = DEFAULT_PROPS$D;
|
|
8797
8953
|
|
|
8798
|
-
const _excluded$
|
|
8954
|
+
const _excluded$Q = ["children", "className", "htmlFor", "isRequired", "theme", "typography"];
|
|
8799
8955
|
/**
|
|
8800
8956
|
* Component display name.
|
|
8801
8957
|
*/
|
|
@@ -8828,13 +8984,13 @@ const InputLabel = forwardRef((props, ref) => {
|
|
|
8828
8984
|
theme = defaultTheme,
|
|
8829
8985
|
typography
|
|
8830
8986
|
} = props,
|
|
8831
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8987
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$Q);
|
|
8832
8988
|
const typographyClass = typography && getTypographyClassName(typography);
|
|
8833
8989
|
return /*#__PURE__*/jsx("label", _objectSpread2(_objectSpread2({
|
|
8834
8990
|
ref: ref
|
|
8835
8991
|
}, forwardedProps), {}, {
|
|
8836
8992
|
htmlFor: htmlFor,
|
|
8837
|
-
className: classNames(className, handleBasicClasses({
|
|
8993
|
+
className: classNames$1(className, handleBasicClasses({
|
|
8838
8994
|
prefix: CLASSNAME$N,
|
|
8839
8995
|
isRequired,
|
|
8840
8996
|
theme,
|
|
@@ -8847,7 +9003,7 @@ InputLabel.displayName = COMPONENT_NAME$N;
|
|
|
8847
9003
|
InputLabel.className = CLASSNAME$N;
|
|
8848
9004
|
InputLabel.defaultProps = DEFAULT_PROPS$C;
|
|
8849
9005
|
|
|
8850
|
-
const _excluded$
|
|
9006
|
+
const _excluded$P = ["aria-labelledby", "ariaLabelledBy", "aria-label", "ariaLabel", "children", "className", "closeButtonProps", "isOpen", "onClose", "parentElement", "focusElement", "preventAutoClose", "theme", "zIndex"];
|
|
8851
9007
|
/**
|
|
8852
9008
|
* Component display name.
|
|
8853
9009
|
*/
|
|
@@ -8882,7 +9038,7 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
8882
9038
|
theme,
|
|
8883
9039
|
zIndex
|
|
8884
9040
|
} = props,
|
|
8885
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9041
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$P);
|
|
8886
9042
|
if (!DOCUMENT) {
|
|
8887
9043
|
// Can't render in SSR.
|
|
8888
9044
|
return null;
|
|
@@ -8940,7 +9096,7 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
8940
9096
|
"aria-modal": "true",
|
|
8941
9097
|
role: "dialog",
|
|
8942
9098
|
tabIndex: -1,
|
|
8943
|
-
className: classNames(className, handleBasicClasses({
|
|
9099
|
+
className: classNames$1(className, handleBasicClasses({
|
|
8944
9100
|
prefix: CLASSNAME$M,
|
|
8945
9101
|
isHidden: !isOpen,
|
|
8946
9102
|
isShown: isOpen || isVisible,
|
|
@@ -8982,7 +9138,7 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
8982
9138
|
Lightbox.displayName = COMPONENT_NAME$M;
|
|
8983
9139
|
Lightbox.className = CLASSNAME$M;
|
|
8984
9140
|
|
|
8985
|
-
const _excluded$
|
|
9141
|
+
const _excluded$O = ["children", "className", "color", "colorVariant", "leftIcon", "rightIcon", "typography", "linkAs"];
|
|
8986
9142
|
/**
|
|
8987
9143
|
* Component display name.
|
|
8988
9144
|
*/
|
|
@@ -9002,7 +9158,6 @@ const CLASSNAME$L = getRootClassName(COMPONENT_NAME$L);
|
|
|
9002
9158
|
*/
|
|
9003
9159
|
const Link = forwardRef((props, ref) => {
|
|
9004
9160
|
const {
|
|
9005
|
-
isAnyDisabled,
|
|
9006
9161
|
disabledStateProps,
|
|
9007
9162
|
otherProps
|
|
9008
9163
|
} = useDisableStateProps(props);
|
|
@@ -9011,29 +9166,18 @@ const Link = forwardRef((props, ref) => {
|
|
|
9011
9166
|
className,
|
|
9012
9167
|
color: propColor,
|
|
9013
9168
|
colorVariant: propColorVariant,
|
|
9014
|
-
href,
|
|
9015
9169
|
leftIcon,
|
|
9016
|
-
linkAs,
|
|
9017
9170
|
rightIcon,
|
|
9018
|
-
|
|
9019
|
-
|
|
9171
|
+
typography,
|
|
9172
|
+
linkAs
|
|
9020
9173
|
} = otherProps,
|
|
9021
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
9174
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$O);
|
|
9022
9175
|
const [color, colorVariant] = resolveColorWithVariants(propColor, propColorVariant);
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
Object.assign(baseProps, disabledStateProps);
|
|
9029
|
-
} else if (isLink) {
|
|
9030
|
-
baseProps.href = href;
|
|
9031
|
-
baseProps.target = target;
|
|
9032
|
-
}
|
|
9033
|
-
return /*#__PURE__*/jsx(Component, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
9034
|
-
ref: ref
|
|
9035
|
-
}, forwardedProps), baseProps), {}, {
|
|
9036
|
-
className: classNames(className, handleBasicClasses({
|
|
9176
|
+
return /*#__PURE__*/jsx(RawClickable, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
9177
|
+
ref: ref,
|
|
9178
|
+
as: linkAs || (forwardedProps.href ? 'a' : 'button')
|
|
9179
|
+
}, forwardedProps), disabledStateProps), {}, {
|
|
9180
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9037
9181
|
prefix: CLASSNAME$L,
|
|
9038
9182
|
color,
|
|
9039
9183
|
colorVariant,
|
|
@@ -9056,7 +9200,7 @@ const Link = forwardRef((props, ref) => {
|
|
|
9056
9200
|
Link.displayName = COMPONENT_NAME$L;
|
|
9057
9201
|
Link.className = CLASSNAME$L;
|
|
9058
9202
|
|
|
9059
|
-
const _excluded$
|
|
9203
|
+
const _excluded$N = ["className", "description", "link", "linkAs", "linkProps", "size", "theme", "thumbnailProps", "title", "titleHeading"];
|
|
9060
9204
|
/**
|
|
9061
9205
|
* Component display name.
|
|
9062
9206
|
*/
|
|
@@ -9096,13 +9240,13 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
9096
9240
|
title,
|
|
9097
9241
|
titleHeading = DEFAULT_PROPS$B.titleHeading
|
|
9098
9242
|
} = props,
|
|
9099
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9243
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$N);
|
|
9100
9244
|
// Use title heading as title wrapper (see DEFAULT_PROPS for the default value).
|
|
9101
9245
|
const TitleHeading = titleHeading;
|
|
9102
9246
|
return /*#__PURE__*/jsx("article", _objectSpread2(_objectSpread2({
|
|
9103
9247
|
ref: ref
|
|
9104
9248
|
}, forwardedProps), {}, {
|
|
9105
|
-
className: classNames(className, handleBasicClasses({
|
|
9249
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9106
9250
|
prefix: CLASSNAME$K,
|
|
9107
9251
|
size: size === Size.big && thumbnailProps ? Size.big : Size.regular,
|
|
9108
9252
|
theme
|
|
@@ -9141,7 +9285,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
9141
9285
|
className: `${CLASSNAME$K}__link`,
|
|
9142
9286
|
children: /*#__PURE__*/jsx(Link, _objectSpread2(_objectSpread2({}, linkProps), {}, {
|
|
9143
9287
|
linkAs: linkAs,
|
|
9144
|
-
className: classNames(`${CLASSNAME$K}__link`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className),
|
|
9288
|
+
className: classNames$1(`${CLASSNAME$K}__link`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className),
|
|
9145
9289
|
target: "_blank",
|
|
9146
9290
|
href: link,
|
|
9147
9291
|
color: theme === Theme.light ? ColorPalette.primary : ColorPalette.light,
|
|
@@ -9160,7 +9304,7 @@ LinkPreview.displayName = COMPONENT_NAME$K;
|
|
|
9160
9304
|
LinkPreview.className = CLASSNAME$K;
|
|
9161
9305
|
LinkPreview.defaultProps = DEFAULT_PROPS$B;
|
|
9162
9306
|
|
|
9163
|
-
const _excluded$
|
|
9307
|
+
const _excluded$M = ["className"];
|
|
9164
9308
|
/**
|
|
9165
9309
|
* Component display name.
|
|
9166
9310
|
*/
|
|
@@ -9182,17 +9326,17 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
9182
9326
|
const {
|
|
9183
9327
|
className
|
|
9184
9328
|
} = props,
|
|
9185
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9329
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$M);
|
|
9186
9330
|
return /*#__PURE__*/jsx("li", _objectSpread2(_objectSpread2({
|
|
9187
9331
|
ref: ref
|
|
9188
9332
|
}, forwardedProps), {}, {
|
|
9189
|
-
className: classNames(className, CLASSNAME$J)
|
|
9333
|
+
className: classNames$1(className, CLASSNAME$J)
|
|
9190
9334
|
}));
|
|
9191
9335
|
});
|
|
9192
9336
|
ListDivider.displayName = COMPONENT_NAME$J;
|
|
9193
9337
|
ListDivider.className = CLASSNAME$J;
|
|
9194
9338
|
|
|
9195
|
-
const _excluded$
|
|
9339
|
+
const _excluded$L = ["children", "className"];
|
|
9196
9340
|
/**
|
|
9197
9341
|
* Component display name.
|
|
9198
9342
|
*/
|
|
@@ -9215,18 +9359,18 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
9215
9359
|
children,
|
|
9216
9360
|
className
|
|
9217
9361
|
} = props,
|
|
9218
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9362
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$L);
|
|
9219
9363
|
return /*#__PURE__*/jsx("li", _objectSpread2(_objectSpread2({
|
|
9220
9364
|
ref: ref
|
|
9221
9365
|
}, forwardedProps), {}, {
|
|
9222
|
-
className: classNames(className, CLASSNAME$I),
|
|
9366
|
+
className: classNames$1(className, CLASSNAME$I),
|
|
9223
9367
|
children: children
|
|
9224
9368
|
}));
|
|
9225
9369
|
});
|
|
9226
9370
|
ListSubheader.displayName = COMPONENT_NAME$I;
|
|
9227
9371
|
ListSubheader.className = CLASSNAME$I;
|
|
9228
9372
|
|
|
9229
|
-
const _excluded$
|
|
9373
|
+
const _excluded$K = ["children", "className", "hasBackground", "kind", "icon", "closeButtonProps"];
|
|
9230
9374
|
/**
|
|
9231
9375
|
* Component display name.
|
|
9232
9376
|
*/
|
|
@@ -9275,7 +9419,7 @@ const Message = forwardRef((props, ref) => {
|
|
|
9275
9419
|
icon: customIcon,
|
|
9276
9420
|
closeButtonProps
|
|
9277
9421
|
} = props,
|
|
9278
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9422
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$K);
|
|
9279
9423
|
const {
|
|
9280
9424
|
color,
|
|
9281
9425
|
icon
|
|
@@ -9287,7 +9431,7 @@ const Message = forwardRef((props, ref) => {
|
|
|
9287
9431
|
const isCloseButtonDisplayed = hasBackground && kind === 'info' && onClick && closeButtonLabel;
|
|
9288
9432
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
9289
9433
|
ref: ref,
|
|
9290
|
-
className: classNames(className, handleBasicClasses({
|
|
9434
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9291
9435
|
color,
|
|
9292
9436
|
hasBackground,
|
|
9293
9437
|
prefix: CLASSNAME$H
|
|
@@ -9313,7 +9457,7 @@ const Message = forwardRef((props, ref) => {
|
|
|
9313
9457
|
Message.displayName = COMPONENT_NAME$H;
|
|
9314
9458
|
Message.className = CLASSNAME$H;
|
|
9315
9459
|
|
|
9316
|
-
const _excluded$
|
|
9460
|
+
const _excluded$J = ["className", "theme", "thumbnails", "onImageClick"],
|
|
9317
9461
|
_excluded2$2 = ["image", "onClick", "align"];
|
|
9318
9462
|
/**
|
|
9319
9463
|
* Component display name.
|
|
@@ -9345,7 +9489,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
9345
9489
|
thumbnails,
|
|
9346
9490
|
onImageClick
|
|
9347
9491
|
} = props,
|
|
9348
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9492
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$J);
|
|
9349
9493
|
const handleImageClick = useMemo(() => {
|
|
9350
9494
|
if (!onImageClick) return undefined;
|
|
9351
9495
|
return (index, onClick) => event => {
|
|
@@ -9356,7 +9500,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
9356
9500
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
9357
9501
|
ref: ref
|
|
9358
9502
|
}, forwardedProps), {}, {
|
|
9359
|
-
className: classNames(className, handleBasicClasses({
|
|
9503
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9360
9504
|
prefix: CLASSNAME$G,
|
|
9361
9505
|
theme
|
|
9362
9506
|
}), {
|
|
@@ -9398,10 +9542,7 @@ Mosaic.displayName = COMPONENT_NAME$G;
|
|
|
9398
9542
|
Mosaic.className = CLASSNAME$G;
|
|
9399
9543
|
Mosaic.defaultProps = DEFAULT_PROPS$A;
|
|
9400
9544
|
|
|
9401
|
-
|
|
9402
|
-
const forwardRefPolymorphic = React__default.forwardRef;
|
|
9403
|
-
|
|
9404
|
-
const _excluded$J = ["className", "icon", "label", "isCurrentPage", "as"];
|
|
9545
|
+
const _excluded$I = ["className", "icon", "label", "isCurrentPage", "as"];
|
|
9405
9546
|
/**
|
|
9406
9547
|
* Component display name.
|
|
9407
9548
|
*/
|
|
@@ -9419,31 +9560,29 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9419
9560
|
isCurrentPage,
|
|
9420
9561
|
as: Element = 'a'
|
|
9421
9562
|
} = props,
|
|
9422
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9563
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$I);
|
|
9423
9564
|
const theme = useTheme();
|
|
9424
9565
|
const {
|
|
9425
9566
|
tooltipLabel,
|
|
9426
9567
|
labelRef
|
|
9427
9568
|
} = useOverflowTooltipLabel(label);
|
|
9428
|
-
const buttonProps = Element === 'button' ? {
|
|
9429
|
-
type: 'button'
|
|
9430
|
-
} : {};
|
|
9431
9569
|
return /*#__PURE__*/jsx("li", {
|
|
9432
|
-
className: classNames(className, handleBasicClasses({
|
|
9570
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9433
9571
|
prefix: CLASSNAME$F,
|
|
9434
9572
|
theme
|
|
9435
9573
|
})),
|
|
9436
9574
|
children: /*#__PURE__*/jsx(Tooltip, {
|
|
9437
9575
|
label: tooltipLabel,
|
|
9438
9576
|
placement: Placement.TOP,
|
|
9439
|
-
children: /*#__PURE__*/jsxs(
|
|
9577
|
+
children: /*#__PURE__*/jsxs(RawClickable, _objectSpread2(_objectSpread2({
|
|
9578
|
+
as: Element,
|
|
9440
9579
|
className: handleBasicClasses({
|
|
9441
9580
|
prefix: `${CLASSNAME$F}__link`,
|
|
9442
9581
|
isSelected: isCurrentPage
|
|
9443
9582
|
}),
|
|
9444
9583
|
ref: ref,
|
|
9445
9584
|
"aria-current": isCurrentPage ? 'page' : undefined
|
|
9446
|
-
},
|
|
9585
|
+
}, forwardedProps), {}, {
|
|
9447
9586
|
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
9448
9587
|
className: `${CLASSNAME$F}__icon`,
|
|
9449
9588
|
icon: icon,
|
|
@@ -9468,7 +9607,7 @@ const NavigationContext = /*#__PURE__*/createContext({
|
|
|
9468
9607
|
orientation: Orientation.vertical
|
|
9469
9608
|
});
|
|
9470
9609
|
|
|
9471
|
-
const _excluded$
|
|
9610
|
+
const _excluded$H = ["children", "className", "label", "icon"];
|
|
9472
9611
|
/**
|
|
9473
9612
|
* Component display name.
|
|
9474
9613
|
*/
|
|
@@ -9485,7 +9624,7 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9485
9624
|
label,
|
|
9486
9625
|
icon
|
|
9487
9626
|
} = props,
|
|
9488
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9627
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$H);
|
|
9489
9628
|
const [isOpen, setIsOpen] = useState(false);
|
|
9490
9629
|
const buttonRef = useRef(null);
|
|
9491
9630
|
const sectionId = useId();
|
|
@@ -9495,21 +9634,22 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9495
9634
|
const theme = useTheme();
|
|
9496
9635
|
const isDropdown = orientation === Orientation.horizontal;
|
|
9497
9636
|
return /*#__PURE__*/jsxs("li", {
|
|
9498
|
-
className: classNames(className, CLASSNAME$E, CLASSNAME$F, handleBasicClasses({
|
|
9637
|
+
className: classNames$1(className, CLASSNAME$E, CLASSNAME$F, handleBasicClasses({
|
|
9499
9638
|
prefix: CLASSNAME$F,
|
|
9500
9639
|
theme
|
|
9501
9640
|
})),
|
|
9502
9641
|
ref: ref,
|
|
9503
|
-
children: [/*#__PURE__*/jsxs(
|
|
9642
|
+
children: [/*#__PURE__*/jsxs(RawClickable, _objectSpread2(_objectSpread2({
|
|
9643
|
+
as: "button"
|
|
9644
|
+
}, forwardedProps), {}, {
|
|
9504
9645
|
"aria-controls": sectionId,
|
|
9505
9646
|
"aria-expanded": isOpen,
|
|
9506
|
-
className: classNames(`${CLASSNAME$F}__link`),
|
|
9647
|
+
className: classNames$1(`${CLASSNAME$F}__link`),
|
|
9507
9648
|
ref: buttonRef,
|
|
9508
9649
|
onClick: event => {
|
|
9509
9650
|
setIsOpen(!isOpen);
|
|
9510
9651
|
event.stopPropagation();
|
|
9511
9652
|
},
|
|
9512
|
-
type: "button",
|
|
9513
9653
|
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
9514
9654
|
className: `${CLASSNAME$F}__icon`,
|
|
9515
9655
|
icon: icon,
|
|
@@ -9521,7 +9661,7 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9521
9661
|
ref: ref,
|
|
9522
9662
|
children: label
|
|
9523
9663
|
}), /*#__PURE__*/jsx(Icon, {
|
|
9524
|
-
className: classNames(`${CLASSNAME$F}__icon`, `${CLASSNAME$E}__chevron`),
|
|
9664
|
+
className: classNames$1(`${CLASSNAME$F}__icon`, `${CLASSNAME$E}__chevron`),
|
|
9525
9665
|
icon: isOpen ? mdiChevronUp : mdiChevronDown
|
|
9526
9666
|
})]
|
|
9527
9667
|
})), isOpen && (isDropdown ? /*#__PURE__*/jsx(Popover, {
|
|
@@ -9557,7 +9697,7 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
9557
9697
|
NavigationSection.displayName = COMPONENT_NAME$E;
|
|
9558
9698
|
NavigationSection.className = CLASSNAME$E;
|
|
9559
9699
|
|
|
9560
|
-
const _excluded$
|
|
9700
|
+
const _excluded$G = ["children", "className", "theme", "orientation"];
|
|
9561
9701
|
/**
|
|
9562
9702
|
* Component display name.
|
|
9563
9703
|
*/
|
|
@@ -9582,11 +9722,11 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
9582
9722
|
theme = defaultTheme,
|
|
9583
9723
|
orientation = DEFAULT_PROPS$z.orientation
|
|
9584
9724
|
} = props,
|
|
9585
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9725
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
9586
9726
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
9587
9727
|
value: theme,
|
|
9588
9728
|
children: /*#__PURE__*/jsx("nav", _objectSpread2(_objectSpread2({
|
|
9589
|
-
className: classNames(className, handleBasicClasses({
|
|
9729
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9590
9730
|
prefix: CLASSNAME$D,
|
|
9591
9731
|
theme,
|
|
9592
9732
|
orientation
|
|
@@ -9635,7 +9775,7 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
9635
9775
|
}
|
|
9636
9776
|
};
|
|
9637
9777
|
|
|
9638
|
-
const _excluded$
|
|
9778
|
+
const _excluded$F = ["actionLabel", "className", "content", "isOpen", "onActionClick", "onClick", "theme", "type", "zIndex", "usePortal", "style"];
|
|
9639
9779
|
/**
|
|
9640
9780
|
* Component display name.
|
|
9641
9781
|
*/
|
|
@@ -9677,7 +9817,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9677
9817
|
usePortal = DEFAULT_PROPS$y.usePortal,
|
|
9678
9818
|
style
|
|
9679
9819
|
} = props,
|
|
9680
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9820
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$F);
|
|
9681
9821
|
if (!DOCUMENT) {
|
|
9682
9822
|
// Can't render in SSR.
|
|
9683
9823
|
return null;
|
|
@@ -9704,7 +9844,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
9704
9844
|
ref: mergeRefs(ref, rootRef),
|
|
9705
9845
|
role: "alert"
|
|
9706
9846
|
}, forwardedProps), {}, {
|
|
9707
|
-
className: classNames(className, handleBasicClasses({
|
|
9847
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9708
9848
|
color,
|
|
9709
9849
|
hasAction,
|
|
9710
9850
|
isHidden: !isOpen,
|
|
@@ -9741,7 +9881,7 @@ Notification.displayName = COMPONENT_NAME$C;
|
|
|
9741
9881
|
Notification.className = CLASSNAME$C;
|
|
9742
9882
|
Notification.defaultProps = DEFAULT_PROPS$y;
|
|
9743
9883
|
|
|
9744
|
-
const _excluded$
|
|
9884
|
+
const _excluded$E = ["children", "isOpen", "focusElement", "aria-label", "label", "className"];
|
|
9745
9885
|
/**
|
|
9746
9886
|
* Component display name.
|
|
9747
9887
|
*/
|
|
@@ -9773,10 +9913,10 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
9773
9913
|
label = ariaLabel,
|
|
9774
9914
|
className
|
|
9775
9915
|
} = props,
|
|
9776
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9916
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$E);
|
|
9777
9917
|
return /*#__PURE__*/jsx(Popover, _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
9778
9918
|
ref: ref,
|
|
9779
|
-
className: classNames(className, CLASSNAME$B),
|
|
9919
|
+
className: classNames$1(className, CLASSNAME$B),
|
|
9780
9920
|
role: "dialog",
|
|
9781
9921
|
"aria-modal": "true"
|
|
9782
9922
|
/**
|
|
@@ -9799,7 +9939,7 @@ PopoverDialog.displayName = COMPONENT_NAME$B;
|
|
|
9799
9939
|
PopoverDialog.className = CLASSNAME$B;
|
|
9800
9940
|
PopoverDialog.defaultProps = DEFAULT_PROPS$x;
|
|
9801
9941
|
|
|
9802
|
-
const _excluded$
|
|
9942
|
+
const _excluded$D = ["actions", "attachments", "author", "className", "meta", "onClick", "orientation", "tags", "text", "theme", "thumbnailProps", "title"];
|
|
9803
9943
|
/**
|
|
9804
9944
|
* Component display name.
|
|
9805
9945
|
*/
|
|
@@ -9840,10 +9980,10 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
9840
9980
|
thumbnailProps,
|
|
9841
9981
|
title
|
|
9842
9982
|
} = props,
|
|
9843
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9983
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$D);
|
|
9844
9984
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
9845
9985
|
ref: ref,
|
|
9846
|
-
className: classNames(className, handleBasicClasses({
|
|
9986
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9847
9987
|
prefix: CLASSNAME$A,
|
|
9848
9988
|
orientation,
|
|
9849
9989
|
theme
|
|
@@ -9897,7 +10037,7 @@ PostBlock.displayName = COMPONENT_NAME$A;
|
|
|
9897
10037
|
PostBlock.className = CLASSNAME$A;
|
|
9898
10038
|
PostBlock.defaultProps = DEFAULT_PROPS$w;
|
|
9899
10039
|
|
|
9900
|
-
const _excluded$
|
|
10040
|
+
const _excluded$C = ["className", "theme"];
|
|
9901
10041
|
/**
|
|
9902
10042
|
* Component display name.
|
|
9903
10043
|
*/
|
|
@@ -9926,11 +10066,11 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9926
10066
|
className,
|
|
9927
10067
|
theme = defaultTheme
|
|
9928
10068
|
} = props,
|
|
9929
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10069
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
9930
10070
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
9931
10071
|
ref: ref
|
|
9932
10072
|
}, forwardedProps), {}, {
|
|
9933
|
-
className: classNames(className, handleBasicClasses({
|
|
10073
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9934
10074
|
prefix: CLASSNAME$z,
|
|
9935
10075
|
theme
|
|
9936
10076
|
})),
|
|
@@ -9945,7 +10085,7 @@ ProgressLinear.displayName = COMPONENT_NAME$z;
|
|
|
9945
10085
|
ProgressLinear.className = CLASSNAME$z;
|
|
9946
10086
|
ProgressLinear.defaultProps = DEFAULT_PROPS$v;
|
|
9947
10087
|
|
|
9948
|
-
const _excluded$
|
|
10088
|
+
const _excluded$B = ["className", "theme", "size", "display"];
|
|
9949
10089
|
/**
|
|
9950
10090
|
* Component display name.
|
|
9951
10091
|
*/
|
|
@@ -9979,12 +10119,12 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9979
10119
|
size = DEFAULT_PROPS$u.size,
|
|
9980
10120
|
display = DEFAULT_PROPS$u.display
|
|
9981
10121
|
} = props,
|
|
9982
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10122
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
9983
10123
|
const Element = display === 'block' ? 'div' : 'span';
|
|
9984
10124
|
return /*#__PURE__*/jsxs(Element, _objectSpread2(_objectSpread2({
|
|
9985
10125
|
ref: ref
|
|
9986
10126
|
}, forwardedProps), {}, {
|
|
9987
|
-
className: classNames(className, handleBasicClasses({
|
|
10127
|
+
className: classNames$1(className, handleBasicClasses({
|
|
9988
10128
|
prefix: CLASSNAME$y,
|
|
9989
10129
|
theme,
|
|
9990
10130
|
size,
|
|
@@ -10012,7 +10152,7 @@ ProgressCircular.displayName = COMPONENT_NAME$y;
|
|
|
10012
10152
|
ProgressCircular.className = CLASSNAME$y;
|
|
10013
10153
|
ProgressCircular.defaultProps = DEFAULT_PROPS$u;
|
|
10014
10154
|
|
|
10015
|
-
const _excluded$
|
|
10155
|
+
const _excluded$A = ["className", "theme", "variant"];
|
|
10016
10156
|
const ProgressVariant = {
|
|
10017
10157
|
linear: 'linear',
|
|
10018
10158
|
circular: 'circular'
|
|
@@ -10054,11 +10194,11 @@ const Progress = forwardRef((props, ref) => {
|
|
|
10054
10194
|
theme = defaultTheme,
|
|
10055
10195
|
variant = DEFAULT_PROPS$t.variant
|
|
10056
10196
|
} = props,
|
|
10057
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10197
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$A);
|
|
10058
10198
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
10059
10199
|
ref: ref
|
|
10060
10200
|
}, forwardedProps), {}, {
|
|
10061
|
-
className: classNames(className, handleBasicClasses({
|
|
10201
|
+
className: classNames$1(className, handleBasicClasses({
|
|
10062
10202
|
prefix: CLASSNAME$x,
|
|
10063
10203
|
theme,
|
|
10064
10204
|
variant
|
|
@@ -10192,7 +10332,7 @@ const useTabProviderContextState = () => {
|
|
|
10192
10332
|
return context === null || context === void 0 ? void 0 : context[0];
|
|
10193
10333
|
};
|
|
10194
10334
|
|
|
10195
|
-
const _excluded$
|
|
10335
|
+
const _excluded$z = ["children", "onChange"];
|
|
10196
10336
|
const DEFAULT_PROPS$s = {
|
|
10197
10337
|
isLazy: INIT_STATE.isLazy,
|
|
10198
10338
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
@@ -10214,7 +10354,7 @@ const ProgressTrackerProvider = props => {
|
|
|
10214
10354
|
children,
|
|
10215
10355
|
onChange
|
|
10216
10356
|
} = props,
|
|
10217
|
-
propState = _objectWithoutProperties(props, _excluded$
|
|
10357
|
+
propState = _objectWithoutProperties(props, _excluded$z);
|
|
10218
10358
|
const [state, dispatch] = useReducer(reducer, INIT_STATE);
|
|
10219
10359
|
|
|
10220
10360
|
// On prop state change => dispatch update.
|
|
@@ -10318,7 +10458,7 @@ const useRovingTabIndex = ({
|
|
|
10318
10458
|
[parentRef, ...extraDependencies]);
|
|
10319
10459
|
};
|
|
10320
10460
|
|
|
10321
|
-
const _excluded$
|
|
10461
|
+
const _excluded$y = ["aria-label", "children", "className"];
|
|
10322
10462
|
/**
|
|
10323
10463
|
* Component display name.
|
|
10324
10464
|
*/
|
|
@@ -10350,7 +10490,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
10350
10490
|
children,
|
|
10351
10491
|
className
|
|
10352
10492
|
} = props,
|
|
10353
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10493
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$y);
|
|
10354
10494
|
const stepListRef = React__default.useRef(null);
|
|
10355
10495
|
useRovingTabIndex({
|
|
10356
10496
|
parentRef: stepListRef,
|
|
@@ -10365,7 +10505,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
10365
10505
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
10366
10506
|
ref: mergeRefs(ref, stepListRef)
|
|
10367
10507
|
}, forwardedProps), {}, {
|
|
10368
|
-
className: classNames(className, CLASSNAME$w),
|
|
10508
|
+
className: classNames$1(className, CLASSNAME$w),
|
|
10369
10509
|
children: [/*#__PURE__*/jsx("div", {
|
|
10370
10510
|
className: `${CLASSNAME$w}__steps`,
|
|
10371
10511
|
role: "tablist",
|
|
@@ -10391,7 +10531,7 @@ ProgressTracker.displayName = COMPONENT_NAME$w;
|
|
|
10391
10531
|
ProgressTracker.className = CLASSNAME$w;
|
|
10392
10532
|
ProgressTracker.defaultProps = DEFAULT_PROPS$r;
|
|
10393
10533
|
|
|
10394
|
-
const _excluded$
|
|
10534
|
+
const _excluded$x = ["className", "hasError", "helper", "id", "isActive", "isComplete", "label", "onFocus", "onKeyPress", "tabIndex"];
|
|
10395
10535
|
/**
|
|
10396
10536
|
* Component display name.
|
|
10397
10537
|
*/
|
|
@@ -10433,7 +10573,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
10433
10573
|
onKeyPress,
|
|
10434
10574
|
tabIndex = -1
|
|
10435
10575
|
} = otherProps,
|
|
10436
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
10576
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$x);
|
|
10437
10577
|
const state = useTabProviderContext('tab', id);
|
|
10438
10578
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
10439
10579
|
const changeToCurrentTab = useCallback(() => {
|
|
@@ -10469,7 +10609,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
10469
10609
|
}, forwardedProps), {}, {
|
|
10470
10610
|
type: "button",
|
|
10471
10611
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
10472
|
-
className: classNames(className, handleBasicClasses({
|
|
10612
|
+
className: classNames$1(className, handleBasicClasses({
|
|
10473
10613
|
prefix: CLASSNAME$v,
|
|
10474
10614
|
hasError,
|
|
10475
10615
|
isActive,
|
|
@@ -10503,7 +10643,7 @@ ProgressTrackerStep.displayName = COMPONENT_NAME$v;
|
|
|
10503
10643
|
ProgressTrackerStep.className = CLASSNAME$v;
|
|
10504
10644
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$q;
|
|
10505
10645
|
|
|
10506
|
-
const _excluded$
|
|
10646
|
+
const _excluded$w = ["children", "id", "className", "isActive"];
|
|
10507
10647
|
/**
|
|
10508
10648
|
* Component display name.
|
|
10509
10649
|
*/
|
|
@@ -10535,14 +10675,14 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
10535
10675
|
className,
|
|
10536
10676
|
isActive: propIsActive
|
|
10537
10677
|
} = props,
|
|
10538
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10678
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$w);
|
|
10539
10679
|
const state = useTabProviderContext('tabPanel', id);
|
|
10540
10680
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
10541
10681
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
10542
10682
|
ref: ref
|
|
10543
10683
|
}, forwardedProps), {}, {
|
|
10544
10684
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
10545
|
-
className: classNames(className, handleBasicClasses({
|
|
10685
|
+
className: classNames$1(className, handleBasicClasses({
|
|
10546
10686
|
prefix: CLASSNAME$u,
|
|
10547
10687
|
isActive
|
|
10548
10688
|
})),
|
|
@@ -10556,7 +10696,7 @@ ProgressTrackerStepPanel.displayName = COMPONENT_NAME$u;
|
|
|
10556
10696
|
ProgressTrackerStepPanel.className = CLASSNAME$u;
|
|
10557
10697
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$p;
|
|
10558
10698
|
|
|
10559
|
-
const _excluded$
|
|
10699
|
+
const _excluded$v = ["checked", "className", "helper", "id", "inputRef", "isChecked", "label", "name", "onChange", "theme", "value", "inputProps"];
|
|
10560
10700
|
/**
|
|
10561
10701
|
* Component display name.
|
|
10562
10702
|
*/
|
|
@@ -10600,7 +10740,7 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10600
10740
|
value,
|
|
10601
10741
|
inputProps
|
|
10602
10742
|
} = otherProps,
|
|
10603
|
-
forwardedProps = _objectWithoutProperties(otherProps, _excluded$
|
|
10743
|
+
forwardedProps = _objectWithoutProperties(otherProps, _excluded$v);
|
|
10604
10744
|
const generatedInputId = useId();
|
|
10605
10745
|
const inputId = id || generatedInputId;
|
|
10606
10746
|
const handleChange = event => {
|
|
@@ -10611,7 +10751,7 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
10611
10751
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
10612
10752
|
ref: ref
|
|
10613
10753
|
}, forwardedProps), {}, {
|
|
10614
|
-
className: classNames(className, handleBasicClasses({
|
|
10754
|
+
className: classNames$1(className, handleBasicClasses({
|
|
10615
10755
|
isChecked,
|
|
10616
10756
|
isDisabled: isAnyDisabled,
|
|
10617
10757
|
isUnchecked: !isChecked,
|
|
@@ -10660,7 +10800,7 @@ RadioButton.displayName = COMPONENT_NAME$t;
|
|
|
10660
10800
|
RadioButton.className = CLASSNAME$t;
|
|
10661
10801
|
RadioButton.defaultProps = DEFAULT_PROPS$o;
|
|
10662
10802
|
|
|
10663
|
-
const _excluded$
|
|
10803
|
+
const _excluded$u = ["children", "className"];
|
|
10664
10804
|
/**
|
|
10665
10805
|
* Component display name.
|
|
10666
10806
|
*/
|
|
@@ -10683,11 +10823,11 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
10683
10823
|
children,
|
|
10684
10824
|
className
|
|
10685
10825
|
} = props,
|
|
10686
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10826
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$u);
|
|
10687
10827
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
10688
10828
|
ref: ref
|
|
10689
10829
|
}, forwardedProps), {}, {
|
|
10690
|
-
className: classNames(className, CLASSNAME$s),
|
|
10830
|
+
className: classNames$1(className, CLASSNAME$s),
|
|
10691
10831
|
children: children
|
|
10692
10832
|
}));
|
|
10693
10833
|
});
|
|
@@ -10718,7 +10858,7 @@ function useListenFocus(ref) {
|
|
|
10718
10858
|
return isFocus;
|
|
10719
10859
|
}
|
|
10720
10860
|
|
|
10721
|
-
const _excluded$
|
|
10861
|
+
const _excluded$t = ["children", "className", "focusElement", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"];
|
|
10722
10862
|
/** The display name of the component. */
|
|
10723
10863
|
const COMPONENT_NAME$r = 'Select';
|
|
10724
10864
|
|
|
@@ -10752,7 +10892,7 @@ const WithSelectContext = (SelectElement, props, ref) => {
|
|
|
10752
10892
|
value,
|
|
10753
10893
|
variant
|
|
10754
10894
|
} = props,
|
|
10755
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10895
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$t);
|
|
10756
10896
|
const generatedSelectId = useId();
|
|
10757
10897
|
const selectId = id || generatedSelectId;
|
|
10758
10898
|
const anchorRef = useRef(null);
|
|
@@ -10777,7 +10917,7 @@ const WithSelectContext = (SelectElement, props, ref) => {
|
|
|
10777
10917
|
useFocusTrap(isOpen && dropdownRef.current, focusElement === null || focusElement === void 0 ? void 0 : focusElement.current);
|
|
10778
10918
|
return /*#__PURE__*/jsxs("div", {
|
|
10779
10919
|
ref: mergeRefs(ref, selectRef),
|
|
10780
|
-
className: classNames(className, handleBasicClasses({
|
|
10920
|
+
className: classNames$1(className, handleBasicClasses({
|
|
10781
10921
|
hasError,
|
|
10782
10922
|
hasLabel: Boolean(label),
|
|
10783
10923
|
hasPlaceholder: Boolean(placeholder),
|
|
@@ -10839,7 +10979,7 @@ const SelectVariant = {
|
|
|
10839
10979
|
chip: 'chip'
|
|
10840
10980
|
};
|
|
10841
10981
|
|
|
10842
|
-
const _excluded$
|
|
10982
|
+
const _excluded$s = ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
|
|
10843
10983
|
|
|
10844
10984
|
/** The display name of the component. */
|
|
10845
10985
|
const COMPONENT_NAME$q = 'Select';
|
|
@@ -10881,7 +11021,7 @@ const SelectField = props => {
|
|
|
10881
11021
|
variant,
|
|
10882
11022
|
selectElementRef
|
|
10883
11023
|
} = props,
|
|
10884
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11024
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$s);
|
|
10885
11025
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
10886
11026
|
children: [variant === SelectVariant.input && /*#__PURE__*/jsxs(Fragment, {
|
|
10887
11027
|
children: [label && /*#__PURE__*/jsx("div", {
|
|
@@ -10908,7 +11048,7 @@ const SelectField = props => {
|
|
|
10908
11048
|
icon: icon,
|
|
10909
11049
|
size: Size.xs
|
|
10910
11050
|
}), /*#__PURE__*/jsxs("div", {
|
|
10911
|
-
className: classNames([`${CLASSNAME$q}__input-native`, isEmpty && placeholder && `${CLASSNAME$q}__input-native--placeholder`]),
|
|
11051
|
+
className: classNames$1([`${CLASSNAME$q}__input-native`, isEmpty && placeholder && `${CLASSNAME$q}__input-native--placeholder`]),
|
|
10912
11052
|
children: [!isEmpty && /*#__PURE__*/jsx("span", {
|
|
10913
11053
|
children: selectedValueRender === null || selectedValueRender === void 0 ? void 0 : selectedValueRender(value)
|
|
10914
11054
|
}), isEmpty && placeholder && /*#__PURE__*/jsx("span", {
|
|
@@ -10968,7 +11108,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
10968
11108
|
const isEmpty$1 = isEmpty(props.value);
|
|
10969
11109
|
const hasInputClear = props.onClear && props.clearButtonProps && !isEmpty$1;
|
|
10970
11110
|
return WithSelectContext(SelectField, _objectSpread2(_objectSpread2(_objectSpread2({}, DEFAULT_PROPS$n), props), {}, {
|
|
10971
|
-
className: classNames(props.className, handleBasicClasses({
|
|
11111
|
+
className: classNames$1(props.className, handleBasicClasses({
|
|
10972
11112
|
hasInputClear,
|
|
10973
11113
|
hasUnique: !props.isEmpty,
|
|
10974
11114
|
prefix: CLASSNAME$q
|
|
@@ -10982,7 +11122,7 @@ Select.className = CLASSNAME$q;
|
|
|
10982
11122
|
Select.defaultProps = DEFAULT_PROPS$n;
|
|
10983
11123
|
Select.className = CLASSNAME$q;
|
|
10984
11124
|
|
|
10985
|
-
const _excluded$
|
|
11125
|
+
const _excluded$r = ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant", "selectElementRef"];
|
|
10986
11126
|
/** The display name of the component. */
|
|
10987
11127
|
const COMPONENT_NAME$p = 'Select';
|
|
10988
11128
|
|
|
@@ -11032,7 +11172,7 @@ const SelectMultipleField = props => {
|
|
|
11032
11172
|
variant,
|
|
11033
11173
|
selectElementRef
|
|
11034
11174
|
} = props,
|
|
11035
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11175
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$r);
|
|
11036
11176
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
11037
11177
|
children: [variant === SelectVariant.input && /*#__PURE__*/jsxs(Fragment, {
|
|
11038
11178
|
children: [label && /*#__PURE__*/jsx("div", {
|
|
@@ -11062,7 +11202,7 @@ const SelectMultipleField = props => {
|
|
|
11062
11202
|
className: `${CLASSNAME$p}__chips`,
|
|
11063
11203
|
children: !isEmpty && value.map((val, index) => selectedChipRender === null || selectedChipRender === void 0 ? void 0 : selectedChipRender(val, index, onClear, isDisabled, theme))
|
|
11064
11204
|
}), isEmpty && placeholder && /*#__PURE__*/jsx("div", {
|
|
11065
|
-
className: classNames([`${CLASSNAME$p}__input-native`, `${CLASSNAME$p}__input-native--placeholder`]),
|
|
11205
|
+
className: classNames$1([`${CLASSNAME$p}__input-native`, `${CLASSNAME$p}__input-native--placeholder`]),
|
|
11066
11206
|
children: /*#__PURE__*/jsx("span", {
|
|
11067
11207
|
children: placeholder
|
|
11068
11208
|
})
|
|
@@ -11114,7 +11254,7 @@ const SelectMultipleField = props => {
|
|
|
11114
11254
|
*/
|
|
11115
11255
|
const SelectMultiple = forwardRef((props, ref) => {
|
|
11116
11256
|
return WithSelectContext(SelectMultipleField, _objectSpread2(_objectSpread2(_objectSpread2({}, DEFAULT_PROPS$m), props), {}, {
|
|
11117
|
-
className: classNames(props.className, handleBasicClasses({
|
|
11257
|
+
className: classNames$1(props.className, handleBasicClasses({
|
|
11118
11258
|
hasMultiple: !props.isEmpty,
|
|
11119
11259
|
prefix: CLASSNAME$p
|
|
11120
11260
|
})),
|
|
@@ -11126,7 +11266,7 @@ SelectMultiple.displayName = COMPONENT_NAME$p;
|
|
|
11126
11266
|
SelectMultiple.className = CLASSNAME$p;
|
|
11127
11267
|
SelectMultiple.defaultProps = DEFAULT_PROPS$m;
|
|
11128
11268
|
|
|
11129
|
-
const _excluded$
|
|
11269
|
+
const _excluded$q = ["children", "className", "theme"];
|
|
11130
11270
|
/**
|
|
11131
11271
|
* Component display name.
|
|
11132
11272
|
*/
|
|
@@ -11151,34 +11291,18 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
11151
11291
|
className,
|
|
11152
11292
|
theme = defaultTheme
|
|
11153
11293
|
} = props,
|
|
11154
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11294
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$q);
|
|
11155
11295
|
const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
11156
11296
|
return /*#__PURE__*/jsx("ul", _objectSpread2(_objectSpread2({
|
|
11157
11297
|
ref: ref
|
|
11158
11298
|
}, forwardedProps), {}, {
|
|
11159
|
-
className: classNames(className, theme === Theme.dark && 'lumx-color-font-light-N', CLASSNAME$o),
|
|
11299
|
+
className: classNames$1(className, theme === Theme.dark && 'lumx-color-font-light-N', CLASSNAME$o),
|
|
11160
11300
|
children: content
|
|
11161
11301
|
}));
|
|
11162
11302
|
});
|
|
11163
11303
|
SideNavigation.displayName = COMPONENT_NAME$o;
|
|
11164
11304
|
SideNavigation.className = CLASSNAME$o;
|
|
11165
11305
|
|
|
11166
|
-
const _excluded$q = ["linkAs", "href"];
|
|
11167
|
-
/**
|
|
11168
|
-
* Render <button> HTML component, fallbacks to `<a>` when a `href` is provided or a custom component with `linkAs`.
|
|
11169
|
-
*/
|
|
11170
|
-
const renderButtonOrLink = (props, ...children) => {
|
|
11171
|
-
const {
|
|
11172
|
-
linkAs,
|
|
11173
|
-
href
|
|
11174
|
-
} = props,
|
|
11175
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$q);
|
|
11176
|
-
if (linkAs || href) return renderLink(props, ...children);
|
|
11177
|
-
return /*#__PURE__*/React__default.createElement('button', _objectSpread2({
|
|
11178
|
-
type: 'button'
|
|
11179
|
-
}, forwardedProps), ...children);
|
|
11180
|
-
};
|
|
11181
|
-
|
|
11182
11306
|
const _excluded$p = ["children", "className", "emphasis", "icon", "isOpen", "isSelected", "label", "linkAs", "linkProps", "onActionClick", "onClick", "toggleButtonProps", "closeMode"];
|
|
11183
11307
|
/**
|
|
11184
11308
|
* Component display name.
|
|
@@ -11236,7 +11360,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11236
11360
|
return /*#__PURE__*/jsxs("li", _objectSpread2(_objectSpread2({
|
|
11237
11361
|
ref: ref
|
|
11238
11362
|
}, forwardedProps), {}, {
|
|
11239
|
-
className: classNames(className, handleBasicClasses({
|
|
11363
|
+
className: classNames$1(className, handleBasicClasses({
|
|
11240
11364
|
emphasis,
|
|
11241
11365
|
isOpen: showChildren,
|
|
11242
11366
|
isSelected,
|
|
@@ -11244,18 +11368,18 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11244
11368
|
})),
|
|
11245
11369
|
children: [shouldSplitActions ? /*#__PURE__*/jsxs("div", {
|
|
11246
11370
|
className: `${CLASSNAME$n}__wrapper`,
|
|
11247
|
-
children: [
|
|
11248
|
-
linkAs
|
|
11371
|
+
children: [/*#__PURE__*/jsxs(RawClickable, _objectSpread2(_objectSpread2({
|
|
11372
|
+
as: linkAs || (linkProps !== null && linkProps !== void 0 && linkProps.href ? 'a' : 'button')
|
|
11249
11373
|
}, linkProps), {}, {
|
|
11250
11374
|
className: `${CLASSNAME$n}__link`,
|
|
11251
|
-
onClick,
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
|
|
11258
|
-
|
|
11375
|
+
onClick: onClick,
|
|
11376
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
11377
|
+
className: `${CLASSNAME$n}__icon`,
|
|
11378
|
+
icon: icon,
|
|
11379
|
+
size: Size.xs
|
|
11380
|
+
}), /*#__PURE__*/jsx("span", {
|
|
11381
|
+
children: label
|
|
11382
|
+
})]
|
|
11259
11383
|
})), /*#__PURE__*/jsx(IconButton, _objectSpread2(_objectSpread2({}, toggleButtonProps), {}, {
|
|
11260
11384
|
className: `${CLASSNAME$n}__toggle`,
|
|
11261
11385
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
@@ -11263,22 +11387,23 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
11263
11387
|
emphasis: Emphasis.low,
|
|
11264
11388
|
onClick: onActionClick
|
|
11265
11389
|
}, ariaProps))]
|
|
11266
|
-
}) :
|
|
11267
|
-
linkAs
|
|
11390
|
+
}) : /*#__PURE__*/jsxs(RawClickable, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
11391
|
+
as: linkAs || (linkProps !== null && linkProps !== void 0 && linkProps.href ? 'a' : 'button')
|
|
11268
11392
|
}, linkProps), {}, {
|
|
11269
11393
|
className: `${CLASSNAME$n}__link`,
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
11394
|
+
onClick: onClick
|
|
11395
|
+
}, ariaProps), {}, {
|
|
11396
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
11397
|
+
className: `${CLASSNAME$n}__icon`,
|
|
11398
|
+
icon: icon,
|
|
11399
|
+
size: Size.xs
|
|
11400
|
+
}), /*#__PURE__*/jsx("span", {
|
|
11401
|
+
children: label
|
|
11402
|
+
}), hasContent && /*#__PURE__*/jsx(Icon, {
|
|
11403
|
+
className: `${CLASSNAME$n}__chevron`,
|
|
11404
|
+
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
11405
|
+
size: Size.xs
|
|
11406
|
+
})]
|
|
11282
11407
|
})), (closeMode === 'hide' || showChildren) && /*#__PURE__*/jsx("ul", {
|
|
11283
11408
|
className: `${CLASSNAME$n}__children`,
|
|
11284
11409
|
id: contentId,
|
|
@@ -11322,7 +11447,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
11322
11447
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
11323
11448
|
ref: ref
|
|
11324
11449
|
}, forwardedProps), {}, {
|
|
11325
|
-
className: classNames(className, handleBasicClasses({
|
|
11450
|
+
className: classNames$1(className, handleBasicClasses({
|
|
11326
11451
|
prefix: CLASSNAME$m,
|
|
11327
11452
|
size,
|
|
11328
11453
|
color,
|
|
@@ -11381,7 +11506,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
11381
11506
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
11382
11507
|
ref: ref
|
|
11383
11508
|
}, forwardedProps), {}, {
|
|
11384
|
-
className: classNames(className, handleBasicClasses({
|
|
11509
|
+
className: classNames$1(className, handleBasicClasses({
|
|
11385
11510
|
prefix: CLASSNAME$l,
|
|
11386
11511
|
aspectRatio,
|
|
11387
11512
|
height: aspectRatio ? undefined : height,
|
|
@@ -11432,7 +11557,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
11432
11557
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
11433
11558
|
ref: ref
|
|
11434
11559
|
}, forwardedProps), {}, {
|
|
11435
|
-
className: classNames(className, handleBasicClasses({
|
|
11560
|
+
className: classNames$1(className, handleBasicClasses({
|
|
11436
11561
|
prefix: CLASSNAME$k,
|
|
11437
11562
|
theme,
|
|
11438
11563
|
typography,
|
|
@@ -11686,7 +11811,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
11686
11811
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
11687
11812
|
ref: ref
|
|
11688
11813
|
}, forwardedProps), {}, {
|
|
11689
|
-
className: classNames(className, handleBasicClasses({
|
|
11814
|
+
className: classNames$1(className, handleBasicClasses({
|
|
11690
11815
|
prefix: CLASSNAME$j,
|
|
11691
11816
|
theme,
|
|
11692
11817
|
hasLabel: Boolean(label)
|
|
@@ -12096,7 +12221,7 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
12096
12221
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
12097
12222
|
ref: mergeRefs(groupRef, ref),
|
|
12098
12223
|
role: role,
|
|
12099
|
-
className: classNames(className, CLASSNAME$i),
|
|
12224
|
+
className: classNames$1(className, CLASSNAME$i),
|
|
12100
12225
|
"aria-roledescription": "slide",
|
|
12101
12226
|
"aria-label": label
|
|
12102
12227
|
}, forwardedProps), {}, {
|
|
@@ -12247,7 +12372,7 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
12247
12372
|
forwardedProps = _objectWithoutProperties(props, _excluded$i);
|
|
12248
12373
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
12249
12374
|
ref: ref,
|
|
12250
|
-
className: classNames(className, CLASSNAME$h)
|
|
12375
|
+
className: classNames$1(className, CLASSNAME$h)
|
|
12251
12376
|
}, forwardedProps), {}, {
|
|
12252
12377
|
children: children
|
|
12253
12378
|
}));
|
|
@@ -12393,7 +12518,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
12393
12518
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
12394
12519
|
ref: ref
|
|
12395
12520
|
}, forwardedProps), {}, {
|
|
12396
|
-
className: classNames(className, handleBasicClasses({
|
|
12521
|
+
className: classNames$1(className, handleBasicClasses({
|
|
12397
12522
|
prefix: CLASSNAME$g,
|
|
12398
12523
|
theme
|
|
12399
12524
|
}), {
|
|
@@ -12425,7 +12550,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
12425
12550
|
itemProps = _objectWithoutProperties(_ref, _excluded2$1);
|
|
12426
12551
|
const ariaLabel = label || (paginationItemLabel === null || paginationItemLabel === void 0 ? void 0 : paginationItemLabel(index)) || `${index + 1} / ${slidesCount}`;
|
|
12427
12552
|
return /*#__PURE__*/jsx("button", _objectSpread2({
|
|
12428
|
-
className: classNames(handleBasicClasses({
|
|
12553
|
+
className: classNames$1(handleBasicClasses({
|
|
12429
12554
|
prefix: `${CLASSNAME$g}__pagination-item`,
|
|
12430
12555
|
isActive,
|
|
12431
12556
|
isOnEdge,
|
|
@@ -12514,7 +12639,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
12514
12639
|
id: id,
|
|
12515
12640
|
ref: ref
|
|
12516
12641
|
}, forwardedProps), {}, {
|
|
12517
|
-
className: classNames(className, handleBasicClasses({
|
|
12642
|
+
className: classNames$1(className, handleBasicClasses({
|
|
12518
12643
|
prefix: CLASSNAME$f,
|
|
12519
12644
|
theme
|
|
12520
12645
|
}), {
|
|
@@ -12603,7 +12728,7 @@ const Switch = forwardRef((props, ref) => {
|
|
|
12603
12728
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
12604
12729
|
ref: ref
|
|
12605
12730
|
}, forwardedProps), {}, {
|
|
12606
|
-
className: classNames(className, handleBasicClasses({
|
|
12731
|
+
className: classNames$1(className, handleBasicClasses({
|
|
12607
12732
|
prefix: CLASSNAME$e,
|
|
12608
12733
|
isChecked,
|
|
12609
12734
|
isDisabled: isAnyDisabled,
|
|
@@ -12690,7 +12815,7 @@ const Table = forwardRef((props, ref) => {
|
|
|
12690
12815
|
return /*#__PURE__*/jsx("table", _objectSpread2(_objectSpread2({
|
|
12691
12816
|
ref: ref
|
|
12692
12817
|
}, forwardedProps), {}, {
|
|
12693
|
-
className: classNames(className, handleBasicClasses({
|
|
12818
|
+
className: classNames$1(className, handleBasicClasses({
|
|
12694
12819
|
prefix: CLASSNAME$d,
|
|
12695
12820
|
hasBefore,
|
|
12696
12821
|
hasDividers,
|
|
@@ -12730,7 +12855,7 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
12730
12855
|
return /*#__PURE__*/jsx("tbody", _objectSpread2(_objectSpread2({
|
|
12731
12856
|
ref: ref
|
|
12732
12857
|
}, forwardedProps), {}, {
|
|
12733
|
-
className: classNames(className, CLASSNAME$c),
|
|
12858
|
+
className: classNames$1(className, CLASSNAME$c),
|
|
12734
12859
|
children: children
|
|
12735
12860
|
}));
|
|
12736
12861
|
});
|
|
@@ -12808,7 +12933,7 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
12808
12933
|
children: [variant === TableCellVariant.head && /*#__PURE__*/jsx("th", _objectSpread2(_objectSpread2({
|
|
12809
12934
|
ref: ref
|
|
12810
12935
|
}, forwardedProps), {}, {
|
|
12811
|
-
className: classNames(handleBasicClasses({
|
|
12936
|
+
className: classNames$1(handleBasicClasses({
|
|
12812
12937
|
prefix: CLASSNAME$b,
|
|
12813
12938
|
isSortable,
|
|
12814
12939
|
isSorted: isSortable && !!sortOrder
|
|
@@ -12835,7 +12960,7 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
12835
12960
|
})]
|
|
12836
12961
|
}))
|
|
12837
12962
|
})), variant === TableCellVariant.body && /*#__PURE__*/jsx("td", _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
12838
|
-
className: classNames(className, CLASSNAME$b, `${CLASSNAME$b}--body`),
|
|
12963
|
+
className: classNames$1(className, CLASSNAME$b, `${CLASSNAME$b}--body`),
|
|
12839
12964
|
children: /*#__PURE__*/jsx("div", {
|
|
12840
12965
|
className: `${CLASSNAME$b}-content`,
|
|
12841
12966
|
children: children
|
|
@@ -12879,7 +13004,7 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
12879
13004
|
return /*#__PURE__*/jsx("thead", _objectSpread2(_objectSpread2({
|
|
12880
13005
|
ref: ref
|
|
12881
13006
|
}, forwardedProps), {}, {
|
|
12882
|
-
className: classNames(className, CLASSNAME$a),
|
|
13007
|
+
className: classNames$1(className, CLASSNAME$a),
|
|
12883
13008
|
children: children
|
|
12884
13009
|
}));
|
|
12885
13010
|
});
|
|
@@ -12927,7 +13052,7 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
12927
13052
|
ref: ref,
|
|
12928
13053
|
tabIndex: isClickable && !disabledStateProps.disabled ? 0 : -1
|
|
12929
13054
|
}, forwardedProps), {}, {
|
|
12930
|
-
className: classNames(className, handleBasicClasses({
|
|
13055
|
+
className: classNames$1(className, handleBasicClasses({
|
|
12931
13056
|
isClickable: isClickable && !isAnyDisabled,
|
|
12932
13057
|
isDisabled: isAnyDisabled,
|
|
12933
13058
|
isSelected: isSelected && !isAnyDisabled,
|
|
@@ -13056,7 +13181,7 @@ const TabList = forwardRef((props, ref) => {
|
|
|
13056
13181
|
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({
|
|
13057
13182
|
ref: mergeRefs(ref, tabListRef)
|
|
13058
13183
|
}, forwardedProps), {}, {
|
|
13059
|
-
className: classNames(className, handleBasicClasses({
|
|
13184
|
+
className: classNames$1(className, handleBasicClasses({
|
|
13060
13185
|
prefix: CLASSNAME$8,
|
|
13061
13186
|
layout,
|
|
13062
13187
|
position,
|
|
@@ -13142,7 +13267,7 @@ const Tab = forwardRef((props, ref) => {
|
|
|
13142
13267
|
}, forwardedProps), {}, {
|
|
13143
13268
|
type: "button",
|
|
13144
13269
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
13145
|
-
className: classNames(className, handleBasicClasses({
|
|
13270
|
+
className: classNames$1(className, handleBasicClasses({
|
|
13146
13271
|
prefix: CLASSNAME$7,
|
|
13147
13272
|
isActive,
|
|
13148
13273
|
isDisabled: isAnyDisabled
|
|
@@ -13208,7 +13333,7 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
13208
13333
|
ref: ref
|
|
13209
13334
|
}, forwardedProps), {}, {
|
|
13210
13335
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
13211
|
-
className: classNames(className, handleBasicClasses({
|
|
13336
|
+
className: classNames$1(className, handleBasicClasses({
|
|
13212
13337
|
prefix: CLASSNAME$6,
|
|
13213
13338
|
isActive
|
|
13214
13339
|
})),
|
|
@@ -13438,7 +13563,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
13438
13563
|
};
|
|
13439
13564
|
return /*#__PURE__*/jsxs("div", {
|
|
13440
13565
|
ref: ref,
|
|
13441
|
-
className: classNames(className, handleBasicClasses({
|
|
13566
|
+
className: classNames$1(className, handleBasicClasses({
|
|
13442
13567
|
hasChips: Boolean(chips),
|
|
13443
13568
|
hasError: !isValid && hasError,
|
|
13444
13569
|
hasIcon: Boolean(icon),
|
|
@@ -13725,7 +13850,8 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
13725
13850
|
var _loadingPlaceholderIm;
|
|
13726
13851
|
const {
|
|
13727
13852
|
isAnyDisabled,
|
|
13728
|
-
otherProps
|
|
13853
|
+
otherProps,
|
|
13854
|
+
disabledStateProps
|
|
13729
13855
|
} = useDisableStateProps(props);
|
|
13730
13856
|
const defaultTheme = useTheme() || Theme.light;
|
|
13731
13857
|
const {
|
|
@@ -13775,17 +13901,18 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
13775
13901
|
imageErrorStyle.display = 'none';
|
|
13776
13902
|
}
|
|
13777
13903
|
const isLink = Boolean((linkProps === null || linkProps === void 0 ? void 0 : linkProps.href) || linkAs);
|
|
13778
|
-
const
|
|
13779
|
-
const
|
|
13780
|
-
let Wrapper = 'div';
|
|
13904
|
+
const isClickable = !isAnyDisabled && Boolean(isLink || !!forwardedProps.onClick);
|
|
13905
|
+
const Wrapper = isClickable ? RawClickable : 'div';
|
|
13781
13906
|
const wrapperProps = _objectSpread2({}, forwardedProps);
|
|
13782
|
-
if (
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13788
|
-
|
|
13907
|
+
if (isClickable) {
|
|
13908
|
+
Object.assign(wrapperProps, {
|
|
13909
|
+
as: linkAs || (linkProps !== null && linkProps !== void 0 && linkProps.href ? 'a' : 'button')
|
|
13910
|
+
}, disabledStateProps);
|
|
13911
|
+
if (isLink) {
|
|
13912
|
+
Object.assign(wrapperProps, linkProps);
|
|
13913
|
+
} else {
|
|
13914
|
+
wrapperProps['aria-label'] = forwardedProps['aria-label'] || alt;
|
|
13915
|
+
}
|
|
13789
13916
|
}
|
|
13790
13917
|
|
|
13791
13918
|
// If we have a loading placeholder image that is really loaded (complete)
|
|
@@ -13797,7 +13924,7 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
13797
13924
|
} : undefined;
|
|
13798
13925
|
return /*#__PURE__*/jsxs(Wrapper, _objectSpread2(_objectSpread2({}, wrapperProps), {}, {
|
|
13799
13926
|
ref: ref,
|
|
13800
|
-
className: classNames(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, className, handleBasicClasses({
|
|
13927
|
+
className: classNames$1(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, className, handleBasicClasses({
|
|
13801
13928
|
align,
|
|
13802
13929
|
aspectRatio,
|
|
13803
13930
|
prefix: CLASSNAME$4,
|
|
@@ -13824,7 +13951,7 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
13824
13951
|
width: isLoading ? (imgProps === null || imgProps === void 0 ? void 0 : imgProps.width) || (loadingPlaceholderImage === null || loadingPlaceholderImage === void 0 ? void 0 : loadingPlaceholderImage.naturalWidth) : undefined
|
|
13825
13952
|
}, imgProps === null || imgProps === void 0 ? void 0 : imgProps.style), imageErrorStyle), focusPointStyle), loadingStyle),
|
|
13826
13953
|
ref: useMergeRefs(setImgElement, propImgRef),
|
|
13827
|
-
className: classNames(handleBasicClasses({
|
|
13954
|
+
className: classNames$1(handleBasicClasses({
|
|
13828
13955
|
prefix: `${CLASSNAME$4}__image`,
|
|
13829
13956
|
isLoading,
|
|
13830
13957
|
hasDefinedSize: Boolean((imgProps === null || imgProps === void 0 ? void 0 : imgProps.height) && imgProps.width)
|
|
@@ -13842,7 +13969,7 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
13842
13969
|
}) : fallback
|
|
13843
13970
|
})]
|
|
13844
13971
|
}), badge && /*#__PURE__*/React__default.cloneElement(badge, {
|
|
13845
|
-
className: classNames(`${CLASSNAME$4}__badge`, badge.props.className)
|
|
13972
|
+
className: classNames$1(`${CLASSNAME$4}__badge`, badge.props.className)
|
|
13846
13973
|
})]
|
|
13847
13974
|
}));
|
|
13848
13975
|
});
|
|
@@ -13919,7 +14046,7 @@ const Toolbar = forwardRef((props, ref) => {
|
|
|
13919
14046
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
13920
14047
|
ref: ref
|
|
13921
14048
|
}, forwardedProps), {}, {
|
|
13922
|
-
className: classNames(className, handleBasicClasses({
|
|
14049
|
+
className: classNames$1(className, handleBasicClasses({
|
|
13923
14050
|
hasAfter: Boolean(after),
|
|
13924
14051
|
hasBefore: Boolean(before),
|
|
13925
14052
|
hasLabel: Boolean(label),
|
|
@@ -14231,7 +14358,7 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
14231
14358
|
}, forwardedProps), {}, {
|
|
14232
14359
|
id: id,
|
|
14233
14360
|
role: "tooltip",
|
|
14234
|
-
className: classNames(className, handleBasicClasses({
|
|
14361
|
+
className: classNames$1(className, handleBasicClasses({
|
|
14235
14362
|
prefix: CLASSNAME$2,
|
|
14236
14363
|
position,
|
|
14237
14364
|
isInitializing: !((_styles$popper = styles.popper) !== null && _styles$popper !== void 0 && _styles$popper.transform)
|
|
@@ -14355,7 +14482,7 @@ const Uploader = forwardRef((props, ref) => {
|
|
|
14355
14482
|
ref: ref
|
|
14356
14483
|
}, wrapper.props), forwardedProps), {}, {
|
|
14357
14484
|
onClick: handleClick,
|
|
14358
|
-
className: classNames(className, handleBasicClasses({
|
|
14485
|
+
className: classNames$1(className, handleBasicClasses({
|
|
14359
14486
|
aspectRatio: adjustedAspectRatio,
|
|
14360
14487
|
prefix: CLASSNAME$1,
|
|
14361
14488
|
size,
|
|
@@ -14457,7 +14584,7 @@ const UserBlock = forwardRef((props, ref) => {
|
|
|
14457
14584
|
}
|
|
14458
14585
|
let NameComponent = 'span';
|
|
14459
14586
|
const nProps = _objectSpread2(_objectSpread2({}, nameProps), {}, {
|
|
14460
|
-
className: classNames(`${CLASSNAME}__name`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, nameProps === null || nameProps === void 0 ? void 0 : nameProps.className)
|
|
14587
|
+
className: classNames$1(`${CLASSNAME}__name`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, nameProps === null || nameProps === void 0 ? void 0 : nameProps.className)
|
|
14461
14588
|
});
|
|
14462
14589
|
if (isClickable) {
|
|
14463
14590
|
NameComponent = Link;
|
|
@@ -14486,7 +14613,7 @@ const UserBlock = forwardRef((props, ref) => {
|
|
|
14486
14613
|
return /*#__PURE__*/jsxs("div", _objectSpread2(_objectSpread2({
|
|
14487
14614
|
ref: ref
|
|
14488
14615
|
}, forwardedProps), {}, {
|
|
14489
|
-
className: classNames(className, handleBasicClasses({
|
|
14616
|
+
className: classNames$1(className, handleBasicClasses({
|
|
14490
14617
|
prefix: CLASSNAME,
|
|
14491
14618
|
orientation,
|
|
14492
14619
|
size: componentSize,
|
|
@@ -14500,7 +14627,7 @@ const UserBlock = forwardRef((props, ref) => {
|
|
|
14500
14627
|
linkProps: linkProps,
|
|
14501
14628
|
alt: ""
|
|
14502
14629
|
}, avatarProps), {}, {
|
|
14503
|
-
className: classNames(`${CLASSNAME}__avatar`, avatarProps.className),
|
|
14630
|
+
className: classNames$1(`${CLASSNAME}__avatar`, avatarProps.className),
|
|
14504
14631
|
size: componentSize,
|
|
14505
14632
|
onClick: onClick,
|
|
14506
14633
|
theme: theme
|