@lumx/react 3.1.4 → 3.2.0
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/types.d.ts +16 -5
- package/index.d.ts +51 -4
- package/index.js +621 -417
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/alert-dialog/AlertDialog.stories.tsx +96 -165
- package/src/components/alert-dialog/AlertDialog.test.tsx +15 -23
- package/src/components/avatar/Avatar.stories.tsx +91 -62
- package/src/components/avatar/Avatar.test.tsx +9 -24
- package/src/components/badge/Badge.stories.tsx +63 -38
- package/src/components/button/Button.stories.tsx +147 -139
- package/src/components/button/IconButton.stories.tsx +45 -0
- package/src/components/checkbox/Checkbox.stories.tsx +37 -30
- package/src/components/chip/Chip.stories.tsx +77 -15
- package/src/components/comment-block/CommentBlock.stories.tsx +90 -25
- package/src/components/comment-block/CommentBlock.test.tsx +12 -17
- package/src/components/date-picker/DatePickerField.stories.tsx +52 -83
- package/src/components/dialog/Dialog.stories.tsx +132 -240
- package/src/components/dialog/Dialog.test.tsx +6 -30
- package/src/components/dialog/Dialog.tsx +17 -3
- package/src/components/dropdown/Dropdown.stories.tsx +1 -186
- package/src/components/flag/Flag.stories.tsx +33 -18
- package/src/components/flag/Flag.test.tsx +1 -8
- package/src/components/flex-box/FlexBox.stories.tsx +151 -238
- package/src/components/flex-box/FlexBox.test.tsx +9 -49
- package/src/components/generic-block/GenericBlock.stories.jsx +1 -1
- package/src/components/grid-column/GridColumn.stories.tsx +46 -0
- package/src/components/heading/Heading.stories.tsx +57 -95
- package/src/components/icon/Icon.stories.tsx +67 -70
- package/src/components/image-block/ImageBlock.stories.tsx +103 -47
- package/src/components/image-block/ImageBlock.test.tsx +12 -17
- package/src/components/inline-list/InlineList.stories.tsx +45 -29
- package/src/components/input-helper/InputHelper.stories.tsx +31 -25
- package/src/components/input-label/InputLabel.stories.tsx +33 -10
- package/src/components/lightbox/Lightbox.stories.tsx +39 -77
- package/src/components/lightbox/Lightbox.test.tsx +12 -17
- package/src/components/link/Link.stories.tsx +98 -128
- package/src/components/link-preview/LinkPreview.stories.tsx +48 -75
- package/src/components/list/List.stories.tsx +59 -84
- package/src/components/list/List.test.tsx +8 -17
- package/src/components/list/ListDivider.stories.tsx +9 -4
- package/src/components/list/ListDivider.test.tsx +12 -17
- package/src/components/list/ListItem.stories.tsx +97 -59
- package/src/components/list/ListItem.test.tsx +12 -17
- package/src/components/list/ListSubheader.stories.tsx +8 -5
- package/src/components/list/ListSubheader.test.tsx +12 -18
- package/src/components/message/Message.stories.tsx +51 -22
- package/src/components/mosaic/Mosaic.stories.tsx +78 -74
- package/src/components/mosaic/Mosaic.test.tsx +0 -31
- package/src/components/navigation/Navigation.stories.tsx +67 -0
- package/src/components/navigation/Navigation.test.tsx +58 -0
- package/src/components/navigation/Navigation.tsx +62 -0
- package/src/components/navigation/NavigationItem.test.tsx +37 -0
- package/src/components/navigation/NavigationItem.tsx +89 -0
- package/src/components/navigation/NavigationSection.test.tsx +126 -0
- package/src/components/navigation/NavigationSection.tsx +109 -0
- package/src/components/navigation/context.tsx +6 -0
- package/src/components/navigation/index.ts +1 -0
- package/src/components/notification/Notifications.stories.tsx +52 -47
- package/src/components/popover/Popover.stories.tsx +68 -201
- package/src/components/popover-dialog/PopoverDialog.stories.tsx +26 -65
- package/src/components/post-block/PostBlock.test.tsx +12 -17
- package/src/components/progress/ProgressCircular.stories.tsx +24 -12
- package/src/components/progress/ProgressLinear.stories.tsx +6 -2
- package/src/components/radio-button/RadioButton.stories.tsx +35 -24
- package/src/components/select/Select.stories.tsx +19 -23
- package/src/components/skeleton/SkeletonCircle.stories.tsx +37 -21
- package/src/components/skeleton/SkeletonCircle.test.tsx +12 -17
- package/src/components/skeleton/SkeletonRectangle.stories.tsx +74 -99
- package/src/components/skeleton/SkeletonRectangle.test.tsx +12 -17
- package/src/components/skeleton/SkeletonTypography.test.tsx +12 -17
- package/src/components/slider/Slider.stories.tsx +41 -25
- package/src/components/slider/Slider.test.tsx +12 -18
- package/src/components/slideshow/Slideshow.stories.tsx +31 -61
- package/src/components/slideshow/Slideshow.test.tsx +15 -23
- package/src/components/slideshow/SlideshowControls.stories.tsx +4 -6
- package/src/components/switch/Switch.stories.tsx +35 -32
- package/src/components/table/Table.test.tsx +12 -17
- package/src/components/tabs/Tabs.stories.tsx +4 -3
- package/src/components/text/Text.stories.tsx +130 -0
- package/src/components/text-field/TextField.stories.tsx +114 -148
- package/src/components/thumbnail/Thumbnail.stories.tsx +106 -255
- package/src/components/thumbnail/Thumbnail.test.tsx +12 -35
- package/src/components/tooltip/Tooltip.stories.tsx +51 -136
- package/src/components/user-block/UserBlock.stories.tsx +67 -56
- package/src/components/user-block/UserBlock.test.tsx +1 -5
- package/src/index.ts +1 -0
- package/src/stories/controls/color.ts +6 -0
- package/src/stories/controls/element.ts +6 -0
- package/src/stories/controls/focusPoint.ts +1 -0
- package/src/stories/controls/icons.ts +6 -0
- package/src/stories/{knobs → controls}/image.ts +6 -16
- package/src/stories/controls/selectArgType.ts +4 -0
- package/src/stories/controls/theme.ts +3 -0
- package/src/stories/controls/typography.ts +5 -0
- package/src/stories/controls/withUndefined.ts +1 -0
- package/src/stories/decorators/withChromaticForceScreenSize.tsx +8 -0
- package/src/stories/decorators/withCombinations.tsx +99 -0
- package/src/stories/decorators/withNestedProps.tsx +23 -0
- package/src/stories/{withResizableBox.tsx → decorators/withResizableBox.tsx} +6 -10
- package/src/stories/decorators/withValueOnChange.tsx +18 -0
- package/src/stories/decorators/withWrapper.tsx +19 -0
- package/src/stories/utils/CustomLink.tsx +8 -2
- package/src/stories/{knobs → utils}/lorem.ts +9 -9
- package/src/testing/utils/commonTestsSuiteRTL.ts +2 -3
- package/src/testing/utils/index.ts +0 -2
- package/src/untypped-modules.d.ts +0 -2
- package/src/utils/MaterialThemeSwitcher/MaterialThemeSwitcher.tsx +1 -1
- package/src/utils/ThemeContext.ts +4 -0
- package/src/utils/forwardRefPolymorphic.ts +9 -0
- package/src/utils/type.ts +28 -4
- package/src/components/alert-dialog/__snapshots__/AlertDialog.test.tsx.snap +0 -551
- package/src/components/avatar/__snapshots__/Avatar.test.tsx.snap +0 -681
- package/src/components/comment-block/__snapshots__/CommentBlock.test.tsx.snap +0 -92
- package/src/components/dialog/__snapshots__/Dialog.test.tsx.snap +0 -960
- package/src/components/expansion-panel/ExpansionPanel.stories.tsx +0 -65
- package/src/components/flag/__snapshots__/Flag.test.tsx.snap +0 -133
- package/src/components/flex-box/__snapshots__/FlexBox.test.tsx.snap +0 -492
- package/src/components/grid-column/GridColumn.stories.jsx +0 -56
- package/src/components/image-block/__snapshots__/ImageBlock.test.tsx.snap +0 -64
- package/src/components/lightbox/__snapshots__/Lightbox.test.tsx.snap +0 -194
- package/src/components/list/__snapshots__/List.test.tsx.snap +0 -360
- package/src/components/list/__snapshots__/ListDivider.test.tsx.snap +0 -7
- package/src/components/list/__snapshots__/ListItem.test.tsx.snap +0 -160
- package/src/components/list/__snapshots__/ListSubheader.test.tsx.snap +0 -9
- package/src/components/mosaic/__snapshots__/Mosaic.test.tsx.snap +0 -357
- package/src/components/post-block/__snapshots__/PostBlock.test.tsx.snap +0 -139
- package/src/components/skeleton/__snapshots__/SkeletonCircle.test.tsx.snap +0 -54
- package/src/components/skeleton/__snapshots__/SkeletonRectangle.test.tsx.snap +0 -177
- package/src/components/skeleton/__snapshots__/SkeletonTypography.test.tsx.snap +0 -174
- package/src/components/slider/__snapshots__/Slider.test.tsx.snap +0 -122
- package/src/components/slideshow/__snapshots__/Slideshow.test.tsx.snap +0 -157
- package/src/components/table/__snapshots__/Table.test.tsx.snap +0 -263
- package/src/components/text/Text.stories.jsx +0 -75
- package/src/components/thumbnail/__snapshots__/Thumbnail.test.tsx.snap +0 -130
- package/src/components/user-block/__snapshots__/UserBlock.test.tsx.snap +0 -362
- package/src/stories/chromaticForceScreenSize.tsx +0 -7
- package/src/stories/knobs/buttonKnob.ts +0 -9
- package/src/stories/knobs/emphasisKnob.ts +0 -8
- package/src/stories/knobs/enumKnob.ts +0 -14
- package/src/stories/knobs/focusKnob.ts +0 -3
- package/src/stories/knobs/sizeKnob.ts +0 -5
- package/src/stories/knobs/thumbnailsKnob.ts +0 -9
- package/src/testing/utils/itShouldRenderStories.tsx +0 -103
package/index.js
CHANGED
|
@@ -2732,7 +2732,7 @@ const useTransitionVisibility = (ref, isComponentVisible, onVisibilityChange) =>
|
|
|
2732
2732
|
return isVisible || isComponentVisible;
|
|
2733
2733
|
};
|
|
2734
2734
|
|
|
2735
|
-
const _excluded$h = ["children", "className", "header", "focusElement", "forceFooterDivider", "forceHeaderDivider", "footer", "isLoading", "isOpen", "onClose", "parentElement", "contentRef", "preventAutoClose", "size", "zIndex", "dialogProps", "onVisibilityChange"];
|
|
2735
|
+
const _excluded$h = ["children", "className", "header", "focusElement", "forceFooterDivider", "forceHeaderDivider", "footer", "isLoading", "isOpen", "onClose", "parentElement", "contentRef", "preventAutoClose", "size", "zIndex", "dialogProps", "onVisibilityChange", "disableBodyScroll", "preventCloseOnClick", "preventCloseOnEscape"];
|
|
2736
2736
|
|
|
2737
2737
|
/**
|
|
2738
2738
|
* Defines the props of the component.
|
|
@@ -2755,7 +2755,8 @@ const CLASSNAME$d = getRootClassName(COMPONENT_NAME$g);
|
|
|
2755
2755
|
* Component default props.
|
|
2756
2756
|
*/
|
|
2757
2757
|
const DEFAULT_PROPS$c = {
|
|
2758
|
-
size: Size.big
|
|
2758
|
+
size: Size.big,
|
|
2759
|
+
disableBodyScroll: true
|
|
2759
2760
|
};
|
|
2760
2761
|
|
|
2761
2762
|
/**
|
|
@@ -2788,7 +2789,10 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2788
2789
|
size,
|
|
2789
2790
|
zIndex,
|
|
2790
2791
|
dialogProps,
|
|
2791
|
-
onVisibilityChange
|
|
2792
|
+
onVisibilityChange,
|
|
2793
|
+
disableBodyScroll,
|
|
2794
|
+
preventCloseOnClick,
|
|
2795
|
+
preventCloseOnEscape
|
|
2792
2796
|
} = props,
|
|
2793
2797
|
forwardedProps = _objectWithoutProperties(props, _excluded$h);
|
|
2794
2798
|
|
|
@@ -2805,9 +2809,10 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2805
2809
|
}
|
|
2806
2810
|
}
|
|
2807
2811
|
}, [isOpen, parentElement]);
|
|
2812
|
+
const shouldPreventCloseOnEscape = preventAutoClose || preventCloseOnEscape;
|
|
2808
2813
|
|
|
2809
2814
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2810
|
-
useCallbackOnEscape(onClose, isOpen && !
|
|
2815
|
+
useCallbackOnEscape(onClose, isOpen && !shouldPreventCloseOnEscape);
|
|
2811
2816
|
|
|
2812
2817
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2813
2818
|
const wrapperRef = useRef(null);
|
|
@@ -2822,7 +2827,7 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2822
2827
|
useFocusTrap(isOpen && wrapperRef.current, focusElement === null || focusElement === void 0 ? void 0 : focusElement.current);
|
|
2823
2828
|
|
|
2824
2829
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2825
|
-
useDisableBodyScroll(isOpen && localContentRef.current);
|
|
2830
|
+
useDisableBodyScroll(disableBodyScroll && isOpen && localContentRef.current);
|
|
2826
2831
|
|
|
2827
2832
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2828
2833
|
const [sentinelTop, setSentinelTop] = useState(null);
|
|
@@ -2851,6 +2856,7 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2851
2856
|
|
|
2852
2857
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2853
2858
|
const isVisible = useTransitionVisibility(rootRef, Boolean(isOpen), onVisibilityChange);
|
|
2859
|
+
const shouldPreventCloseOnClickAway = preventAutoClose || preventCloseOnClick;
|
|
2854
2860
|
return isOpen || isVisible ? /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement("div", _extends({
|
|
2855
2861
|
ref: mergeRefs(rootRef, ref)
|
|
2856
2862
|
}, forwardedProps, {
|
|
@@ -2871,7 +2877,7 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2871
2877
|
role: "dialog",
|
|
2872
2878
|
"aria-modal": "true"
|
|
2873
2879
|
}, dialogProps), /*#__PURE__*/React.createElement(ClickAwayProvider, {
|
|
2874
|
-
callback: !
|
|
2880
|
+
callback: !shouldPreventCloseOnClickAway && onClose,
|
|
2875
2881
|
childrenRefs: clickAwayRefs,
|
|
2876
2882
|
parentRef: rootRef
|
|
2877
2883
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -7977,6 +7983,204 @@ Mosaic.displayName = COMPONENT_NAME$H;
|
|
|
7977
7983
|
Mosaic.className = CLASSNAME$E;
|
|
7978
7984
|
Mosaic.defaultProps = DEFAULT_PROPS$v;
|
|
7979
7985
|
|
|
7986
|
+
const ThemeContext = /*#__PURE__*/createContext(undefined);
|
|
7987
|
+
|
|
7988
|
+
/** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
|
|
7989
|
+
function forwardRefPolymorphic(render) {
|
|
7990
|
+
return /*#__PURE__*/React.forwardRef(render);
|
|
7991
|
+
}
|
|
7992
|
+
|
|
7993
|
+
const _excluded$J = ["className", "icon", "label", "isCurrentPage", "as"];
|
|
7994
|
+
/**
|
|
7995
|
+
* Component display name.
|
|
7996
|
+
*/
|
|
7997
|
+
const COMPONENT_NAME$I = 'NavigationItem';
|
|
7998
|
+
|
|
7999
|
+
/**
|
|
8000
|
+
* Component default class name and class prefix.
|
|
8001
|
+
*/
|
|
8002
|
+
const CLASSNAME$F = getRootClassName(COMPONENT_NAME$I);
|
|
8003
|
+
const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
8004
|
+
const {
|
|
8005
|
+
className,
|
|
8006
|
+
icon,
|
|
8007
|
+
label,
|
|
8008
|
+
isCurrentPage,
|
|
8009
|
+
as: Element = 'a'
|
|
8010
|
+
} = props,
|
|
8011
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$J);
|
|
8012
|
+
const theme = useContext(ThemeContext);
|
|
8013
|
+
const [labelElement, setLabelElement] = useState(null);
|
|
8014
|
+
const tooltipLabel = typeof label === 'string' && labelElement && labelElement.offsetWidth < labelElement.scrollWidth ? label : null;
|
|
8015
|
+
const buttonProps = Element === 'button' ? {
|
|
8016
|
+
type: 'button'
|
|
8017
|
+
} : {};
|
|
8018
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8019
|
+
className: classnames(className, handleBasicClasses({
|
|
8020
|
+
prefix: CLASSNAME$F,
|
|
8021
|
+
theme
|
|
8022
|
+
}))
|
|
8023
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
8024
|
+
label: tooltipLabel,
|
|
8025
|
+
placement: Placement.TOP
|
|
8026
|
+
}, /*#__PURE__*/React.createElement(Element, _extends({
|
|
8027
|
+
className: handleBasicClasses({
|
|
8028
|
+
prefix: `${CLASSNAME$F}__link`,
|
|
8029
|
+
isSelected: isCurrentPage
|
|
8030
|
+
}),
|
|
8031
|
+
ref: ref,
|
|
8032
|
+
"aria-current": isCurrentPage ? 'page' : undefined
|
|
8033
|
+
}, buttonProps, forwardedProps), icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
8034
|
+
className: `${CLASSNAME$F}__icon`,
|
|
8035
|
+
icon: icon,
|
|
8036
|
+
size: Size.xs,
|
|
8037
|
+
theme: theme
|
|
8038
|
+
}) : null, /*#__PURE__*/React.createElement(Text, {
|
|
8039
|
+
as: "span",
|
|
8040
|
+
truncate: true,
|
|
8041
|
+
className: `${CLASSNAME$F}__label`,
|
|
8042
|
+
ref: setLabelElement
|
|
8043
|
+
}, label))));
|
|
8044
|
+
}), {
|
|
8045
|
+
displayName: COMPONENT_NAME$I,
|
|
8046
|
+
className: CLASSNAME$F
|
|
8047
|
+
});
|
|
8048
|
+
|
|
8049
|
+
const NavigationContext = /*#__PURE__*/createContext({
|
|
8050
|
+
orientation: Orientation.vertical
|
|
8051
|
+
});
|
|
8052
|
+
|
|
8053
|
+
const _excluded$K = ["children", "className", "label", "icon"];
|
|
8054
|
+
/**
|
|
8055
|
+
* Component display name.
|
|
8056
|
+
*/
|
|
8057
|
+
const COMPONENT_NAME$J = 'NavigationSection';
|
|
8058
|
+
|
|
8059
|
+
/**
|
|
8060
|
+
* Component default class name and class prefix.
|
|
8061
|
+
*/
|
|
8062
|
+
const CLASSNAME$G = getRootClassName(COMPONENT_NAME$J);
|
|
8063
|
+
const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) => {
|
|
8064
|
+
const {
|
|
8065
|
+
children,
|
|
8066
|
+
className,
|
|
8067
|
+
label,
|
|
8068
|
+
icon
|
|
8069
|
+
} = props,
|
|
8070
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$K);
|
|
8071
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
8072
|
+
const buttonRef = useRef(null);
|
|
8073
|
+
const sectionId = useMemo(() => uniqueId('section'), []);
|
|
8074
|
+
const {
|
|
8075
|
+
orientation
|
|
8076
|
+
} = useContext(NavigationContext) || {};
|
|
8077
|
+
const theme = useContext(ThemeContext);
|
|
8078
|
+
const isDropdown = orientation === Orientation.horizontal;
|
|
8079
|
+
return /*#__PURE__*/React.createElement("li", _extends({
|
|
8080
|
+
className: classnames(className, CLASSNAME$G, CLASSNAME$F, handleBasicClasses({
|
|
8081
|
+
prefix: CLASSNAME$F,
|
|
8082
|
+
theme
|
|
8083
|
+
})),
|
|
8084
|
+
ref: ref
|
|
8085
|
+
}, forwardedProps), /*#__PURE__*/React.createElement("button", {
|
|
8086
|
+
"aria-controls": sectionId,
|
|
8087
|
+
"aria-expanded": isOpen,
|
|
8088
|
+
className: classnames(`${CLASSNAME$F}__link`),
|
|
8089
|
+
ref: buttonRef,
|
|
8090
|
+
onClick: event => {
|
|
8091
|
+
setIsOpen(!isOpen);
|
|
8092
|
+
event.stopPropagation();
|
|
8093
|
+
},
|
|
8094
|
+
type: "button"
|
|
8095
|
+
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
8096
|
+
className: `${CLASSNAME$F}__icon`,
|
|
8097
|
+
icon: icon,
|
|
8098
|
+
size: Size.xs
|
|
8099
|
+
}) : null, /*#__PURE__*/React.createElement(Text, {
|
|
8100
|
+
as: "span",
|
|
8101
|
+
truncate: true,
|
|
8102
|
+
className: `${CLASSNAME$F}__label`,
|
|
8103
|
+
ref: ref
|
|
8104
|
+
}, label), /*#__PURE__*/React.createElement(Icon, {
|
|
8105
|
+
className: classnames(`${CLASSNAME$F}__icon`, `${CLASSNAME$G}__chevron`),
|
|
8106
|
+
icon: isOpen ? mdiChevronUp : mdiChevronDown
|
|
8107
|
+
})), isOpen && (isDropdown ? /*#__PURE__*/React.createElement(Popover, {
|
|
8108
|
+
anchorRef: buttonRef,
|
|
8109
|
+
isOpen: isOpen,
|
|
8110
|
+
placement: Placement.BOTTOM_START,
|
|
8111
|
+
usePortal: false,
|
|
8112
|
+
closeOnClickAway: true,
|
|
8113
|
+
closeOnEscape: true,
|
|
8114
|
+
onClick: () => setIsOpen(false),
|
|
8115
|
+
onClose: () => setIsOpen(false),
|
|
8116
|
+
zIndex: 996
|
|
8117
|
+
}, /*#__PURE__*/React.createElement(ThemeContext.Provider, {
|
|
8118
|
+
value: Theme.light
|
|
8119
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
8120
|
+
className: `${CLASSNAME$G}__drawer--popover`,
|
|
8121
|
+
id: sectionId
|
|
8122
|
+
}, /*#__PURE__*/React.createElement(NavigationContext.Provider, {
|
|
8123
|
+
value: {
|
|
8124
|
+
orientation: Orientation.vertical
|
|
8125
|
+
}
|
|
8126
|
+
}, children)))) : /*#__PURE__*/React.createElement("ul", {
|
|
8127
|
+
className: `${CLASSNAME$G}__drawer`,
|
|
8128
|
+
id: sectionId
|
|
8129
|
+
}, children)));
|
|
8130
|
+
}), {
|
|
8131
|
+
displayName: COMPONENT_NAME$J,
|
|
8132
|
+
className: CLASSNAME$G
|
|
8133
|
+
});
|
|
8134
|
+
|
|
8135
|
+
const _excluded$L = ["children", "className", "theme", "orientation"];
|
|
8136
|
+
/**
|
|
8137
|
+
* Component display name.
|
|
8138
|
+
*/
|
|
8139
|
+
const COMPONENT_NAME$K = 'Navigation';
|
|
8140
|
+
|
|
8141
|
+
/**
|
|
8142
|
+
* Component default class name and class prefix.
|
|
8143
|
+
*/
|
|
8144
|
+
const CLASSNAME$H = getRootClassName(COMPONENT_NAME$K);
|
|
8145
|
+
const Navigation = Object.assign(
|
|
8146
|
+
/*#__PURE__*/
|
|
8147
|
+
// eslint-disable-next-line react/display-name
|
|
8148
|
+
forwardRef((props, ref) => {
|
|
8149
|
+
const {
|
|
8150
|
+
children,
|
|
8151
|
+
className,
|
|
8152
|
+
theme,
|
|
8153
|
+
orientation
|
|
8154
|
+
} = props,
|
|
8155
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$L);
|
|
8156
|
+
return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
|
|
8157
|
+
value: theme
|
|
8158
|
+
}, /*#__PURE__*/React.createElement("nav", _extends({
|
|
8159
|
+
className: classnames(className, handleBasicClasses({
|
|
8160
|
+
prefix: CLASSNAME$H,
|
|
8161
|
+
theme,
|
|
8162
|
+
orientation
|
|
8163
|
+
})),
|
|
8164
|
+
ref: ref
|
|
8165
|
+
}, forwardedProps), /*#__PURE__*/React.createElement(NavigationContext.Provider, {
|
|
8166
|
+
value: {
|
|
8167
|
+
orientation
|
|
8168
|
+
}
|
|
8169
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
8170
|
+
className: `${CLASSNAME$H}__list`
|
|
8171
|
+
}, children))));
|
|
8172
|
+
}), {
|
|
8173
|
+
displayName: COMPONENT_NAME$K,
|
|
8174
|
+
className: CLASSNAME$H,
|
|
8175
|
+
defaultProps: {
|
|
8176
|
+
theme: Theme.light,
|
|
8177
|
+
orientation: Orientation.vertical
|
|
8178
|
+
},
|
|
8179
|
+
// Sub components
|
|
8180
|
+
Section: NavigationSection,
|
|
8181
|
+
Item: NavigationItem
|
|
8182
|
+
});
|
|
8183
|
+
|
|
7980
8184
|
/**
|
|
7981
8185
|
* Notification icon and colors according to their type.
|
|
7982
8186
|
*/
|
|
@@ -7999,7 +8203,7 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
7999
8203
|
}
|
|
8000
8204
|
};
|
|
8001
8205
|
|
|
8002
|
-
const _excluded$
|
|
8206
|
+
const _excluded$M = ["actionLabel", "className", "content", "isOpen", "onActionClick", "onClick", "theme", "type", "zIndex"];
|
|
8003
8207
|
|
|
8004
8208
|
/**
|
|
8005
8209
|
* Defines the props of the component.
|
|
@@ -8008,12 +8212,12 @@ const _excluded$J = ["actionLabel", "className", "content", "isOpen", "onActionC
|
|
|
8008
8212
|
/**
|
|
8009
8213
|
* Component display name.
|
|
8010
8214
|
*/
|
|
8011
|
-
const COMPONENT_NAME$
|
|
8215
|
+
const COMPONENT_NAME$L = 'Notification';
|
|
8012
8216
|
|
|
8013
8217
|
/**
|
|
8014
8218
|
* Component default class name and class prefix.
|
|
8015
8219
|
*/
|
|
8016
|
-
const CLASSNAME$
|
|
8220
|
+
const CLASSNAME$I = getRootClassName(COMPONENT_NAME$L);
|
|
8017
8221
|
|
|
8018
8222
|
/**
|
|
8019
8223
|
* Component default props.
|
|
@@ -8043,7 +8247,7 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8043
8247
|
type,
|
|
8044
8248
|
zIndex
|
|
8045
8249
|
} = props,
|
|
8046
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8250
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$M);
|
|
8047
8251
|
if (!DOCUMENT) {
|
|
8048
8252
|
// Can't render in SSR.
|
|
8049
8253
|
return null;
|
|
@@ -8072,32 +8276,32 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8072
8276
|
color,
|
|
8073
8277
|
hasAction,
|
|
8074
8278
|
isHidden: !isOpen,
|
|
8075
|
-
prefix: CLASSNAME$
|
|
8279
|
+
prefix: CLASSNAME$I
|
|
8076
8280
|
})),
|
|
8077
8281
|
onClick: onClick,
|
|
8078
8282
|
style: {
|
|
8079
8283
|
zIndex
|
|
8080
8284
|
}
|
|
8081
8285
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8082
|
-
className: `${CLASSNAME$
|
|
8286
|
+
className: `${CLASSNAME$I}__icon`
|
|
8083
8287
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8084
8288
|
icon: icon,
|
|
8085
8289
|
size: Size.s
|
|
8086
8290
|
})), /*#__PURE__*/React.createElement("div", {
|
|
8087
|
-
className: `${CLASSNAME$
|
|
8291
|
+
className: `${CLASSNAME$I}__content`
|
|
8088
8292
|
}, content), hasAction && /*#__PURE__*/React.createElement("div", {
|
|
8089
|
-
className: `${CLASSNAME$
|
|
8293
|
+
className: `${CLASSNAME$I}__action`
|
|
8090
8294
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
8091
8295
|
emphasis: Emphasis.medium,
|
|
8092
8296
|
theme: theme,
|
|
8093
8297
|
onClick: handleCallback
|
|
8094
8298
|
}, /*#__PURE__*/React.createElement("span", null, actionLabel)))), document.body) : null;
|
|
8095
8299
|
});
|
|
8096
|
-
Notification.displayName = COMPONENT_NAME$
|
|
8097
|
-
Notification.className = CLASSNAME$
|
|
8300
|
+
Notification.displayName = COMPONENT_NAME$L;
|
|
8301
|
+
Notification.className = CLASSNAME$I;
|
|
8098
8302
|
Notification.defaultProps = DEFAULT_PROPS$w;
|
|
8099
8303
|
|
|
8100
|
-
const _excluded$
|
|
8304
|
+
const _excluded$N = ["children", "isOpen", "focusElement", "label", "className"];
|
|
8101
8305
|
|
|
8102
8306
|
/**
|
|
8103
8307
|
* PopoverDialog props.
|
|
@@ -8107,12 +8311,12 @@ const _excluded$K = ["children", "isOpen", "focusElement", "label", "className"]
|
|
|
8107
8311
|
/**
|
|
8108
8312
|
* Component display name.
|
|
8109
8313
|
*/
|
|
8110
|
-
const COMPONENT_NAME$
|
|
8314
|
+
const COMPONENT_NAME$M = 'PopoverDialog';
|
|
8111
8315
|
|
|
8112
8316
|
/**
|
|
8113
8317
|
* Component default class name and class prefix.
|
|
8114
8318
|
*/
|
|
8115
|
-
const CLASSNAME$
|
|
8319
|
+
const CLASSNAME$J = getRootClassName(COMPONENT_NAME$M);
|
|
8116
8320
|
|
|
8117
8321
|
/**
|
|
8118
8322
|
* Component default props.
|
|
@@ -8134,11 +8338,11 @@ const PopoverDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8134
8338
|
label,
|
|
8135
8339
|
className
|
|
8136
8340
|
} = props,
|
|
8137
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8341
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$N);
|
|
8138
8342
|
return /*#__PURE__*/React.createElement(Popover, _extends({}, forwardedProps, {
|
|
8139
8343
|
ref: ref,
|
|
8140
8344
|
className: classnames(className, handleBasicClasses({
|
|
8141
|
-
prefix: CLASSNAME$
|
|
8345
|
+
prefix: CLASSNAME$J
|
|
8142
8346
|
})),
|
|
8143
8347
|
role: "dialog",
|
|
8144
8348
|
"aria-modal": "true"
|
|
@@ -8154,11 +8358,11 @@ const PopoverDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8154
8358
|
withFocusTrap: true
|
|
8155
8359
|
}), children);
|
|
8156
8360
|
});
|
|
8157
|
-
PopoverDialog.displayName = COMPONENT_NAME$
|
|
8158
|
-
PopoverDialog.className = CLASSNAME$
|
|
8361
|
+
PopoverDialog.displayName = COMPONENT_NAME$M;
|
|
8362
|
+
PopoverDialog.className = CLASSNAME$J;
|
|
8159
8363
|
PopoverDialog.defaultProps = DEFAULT_PROPS$x;
|
|
8160
8364
|
|
|
8161
|
-
const _excluded$
|
|
8365
|
+
const _excluded$O = ["actions", "attachments", "author", "className", "meta", "onClick", "orientation", "tags", "text", "theme", "thumbnailProps", "title"];
|
|
8162
8366
|
|
|
8163
8367
|
/**
|
|
8164
8368
|
* Defines the props of the component.
|
|
@@ -8167,12 +8371,12 @@ const _excluded$L = ["actions", "attachments", "author", "className", "meta", "o
|
|
|
8167
8371
|
/**
|
|
8168
8372
|
* Component display name.
|
|
8169
8373
|
*/
|
|
8170
|
-
const COMPONENT_NAME$
|
|
8374
|
+
const COMPONENT_NAME$N = 'PostBlock';
|
|
8171
8375
|
|
|
8172
8376
|
/**
|
|
8173
8377
|
* Component default class name and class prefix.
|
|
8174
8378
|
*/
|
|
8175
|
-
const CLASSNAME$
|
|
8379
|
+
const CLASSNAME$K = getRootClassName(COMPONENT_NAME$N);
|
|
8176
8380
|
|
|
8177
8381
|
/**
|
|
8178
8382
|
* Component default props.
|
|
@@ -8204,61 +8408,61 @@ const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8204
8408
|
thumbnailProps,
|
|
8205
8409
|
title
|
|
8206
8410
|
} = props,
|
|
8207
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8411
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$O);
|
|
8208
8412
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8209
8413
|
ref: ref,
|
|
8210
8414
|
className: classnames(className, handleBasicClasses({
|
|
8211
|
-
prefix: CLASSNAME$
|
|
8415
|
+
prefix: CLASSNAME$K,
|
|
8212
8416
|
orientation,
|
|
8213
8417
|
theme
|
|
8214
8418
|
}))
|
|
8215
8419
|
}, forwardedProps), thumbnailProps && /*#__PURE__*/React.createElement("div", {
|
|
8216
|
-
className: `${CLASSNAME$
|
|
8420
|
+
className: `${CLASSNAME$K}__thumbnail`
|
|
8217
8421
|
}, /*#__PURE__*/React.createElement(Thumbnail, _extends({}, thumbnailProps, {
|
|
8218
8422
|
theme: theme,
|
|
8219
8423
|
variant: ThumbnailVariant.rounded
|
|
8220
8424
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
8221
|
-
className: `${CLASSNAME$
|
|
8425
|
+
className: `${CLASSNAME$K}__wrapper`
|
|
8222
8426
|
}, author && /*#__PURE__*/React.createElement("div", {
|
|
8223
|
-
className: `${CLASSNAME$
|
|
8427
|
+
className: `${CLASSNAME$K}__author`
|
|
8224
8428
|
}, author), title && /*#__PURE__*/React.createElement("button", {
|
|
8225
8429
|
type: "button",
|
|
8226
|
-
className: `${CLASSNAME$
|
|
8430
|
+
className: `${CLASSNAME$K}__title`,
|
|
8227
8431
|
onClick: onClick
|
|
8228
8432
|
}, title), meta && /*#__PURE__*/React.createElement("span", {
|
|
8229
|
-
className: `${CLASSNAME$
|
|
8433
|
+
className: `${CLASSNAME$K}__meta`
|
|
8230
8434
|
}, meta), isObject(text) && text.__html ?
|
|
8231
8435
|
/*#__PURE__*/
|
|
8232
8436
|
// eslint-disable-next-line react/no-danger
|
|
8233
8437
|
React.createElement("p", {
|
|
8234
8438
|
dangerouslySetInnerHTML: text,
|
|
8235
|
-
className: `${CLASSNAME$
|
|
8439
|
+
className: `${CLASSNAME$K}__text`
|
|
8236
8440
|
}) : /*#__PURE__*/React.createElement("p", {
|
|
8237
|
-
className: `${CLASSNAME$
|
|
8441
|
+
className: `${CLASSNAME$K}__text`
|
|
8238
8442
|
}, text), attachments && /*#__PURE__*/React.createElement("div", {
|
|
8239
|
-
className: `${CLASSNAME$
|
|
8443
|
+
className: `${CLASSNAME$K}__attachments`
|
|
8240
8444
|
}, attachments), (tags || actions) && /*#__PURE__*/React.createElement("div", {
|
|
8241
|
-
className: `${CLASSNAME$
|
|
8445
|
+
className: `${CLASSNAME$K}__toolbar`
|
|
8242
8446
|
}, tags && /*#__PURE__*/React.createElement("div", {
|
|
8243
|
-
className: `${CLASSNAME$
|
|
8447
|
+
className: `${CLASSNAME$K}__tags`
|
|
8244
8448
|
}, tags), actions && /*#__PURE__*/React.createElement("div", {
|
|
8245
|
-
className: `${CLASSNAME$
|
|
8449
|
+
className: `${CLASSNAME$K}__actions`
|
|
8246
8450
|
}, actions))));
|
|
8247
8451
|
});
|
|
8248
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
8249
|
-
PostBlock.className = CLASSNAME$
|
|
8452
|
+
PostBlock.displayName = COMPONENT_NAME$N;
|
|
8453
|
+
PostBlock.className = CLASSNAME$K;
|
|
8250
8454
|
PostBlock.defaultProps = DEFAULT_PROPS$y;
|
|
8251
8455
|
|
|
8252
|
-
const _excluded$
|
|
8456
|
+
const _excluded$P = ["className", "theme"];
|
|
8253
8457
|
/**
|
|
8254
8458
|
* Component display name.
|
|
8255
8459
|
*/
|
|
8256
|
-
const COMPONENT_NAME$
|
|
8460
|
+
const COMPONENT_NAME$O = 'ProgressLinear';
|
|
8257
8461
|
|
|
8258
8462
|
/**
|
|
8259
8463
|
* Component default class name and class prefix.
|
|
8260
8464
|
*/
|
|
8261
|
-
const CLASSNAME$
|
|
8465
|
+
const CLASSNAME$L = getRootClassName(COMPONENT_NAME$O);
|
|
8262
8466
|
|
|
8263
8467
|
/**
|
|
8264
8468
|
* Component default props.
|
|
@@ -8279,12 +8483,12 @@ const ProgressLinear = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8279
8483
|
className,
|
|
8280
8484
|
theme
|
|
8281
8485
|
} = props,
|
|
8282
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8486
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$P);
|
|
8283
8487
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8284
8488
|
ref: ref
|
|
8285
8489
|
}, forwardedProps, {
|
|
8286
8490
|
className: classnames(className, handleBasicClasses({
|
|
8287
|
-
prefix: CLASSNAME$
|
|
8491
|
+
prefix: CLASSNAME$L,
|
|
8288
8492
|
theme
|
|
8289
8493
|
}))
|
|
8290
8494
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -8293,11 +8497,11 @@ const ProgressLinear = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8293
8497
|
className: "lumx-progress-linear__line2"
|
|
8294
8498
|
}));
|
|
8295
8499
|
});
|
|
8296
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
8297
|
-
ProgressLinear.className = CLASSNAME$
|
|
8500
|
+
ProgressLinear.displayName = COMPONENT_NAME$O;
|
|
8501
|
+
ProgressLinear.className = CLASSNAME$L;
|
|
8298
8502
|
ProgressLinear.defaultProps = DEFAULT_PROPS$z;
|
|
8299
8503
|
|
|
8300
|
-
const _excluded$
|
|
8504
|
+
const _excluded$Q = ["className", "theme", "size"];
|
|
8301
8505
|
|
|
8302
8506
|
/**
|
|
8303
8507
|
* Progress sizes.
|
|
@@ -8306,12 +8510,12 @@ const _excluded$N = ["className", "theme", "size"];
|
|
|
8306
8510
|
/**
|
|
8307
8511
|
* Component display name.
|
|
8308
8512
|
*/
|
|
8309
|
-
const COMPONENT_NAME$
|
|
8513
|
+
const COMPONENT_NAME$P = 'ProgressCircular';
|
|
8310
8514
|
|
|
8311
8515
|
/**
|
|
8312
8516
|
* Component default class name and class prefix.
|
|
8313
8517
|
*/
|
|
8314
|
-
const CLASSNAME$
|
|
8518
|
+
const CLASSNAME$M = getRootClassName(COMPONENT_NAME$P);
|
|
8315
8519
|
|
|
8316
8520
|
/**
|
|
8317
8521
|
* Component default props.
|
|
@@ -8334,12 +8538,12 @@ const ProgressCircular = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8334
8538
|
theme,
|
|
8335
8539
|
size
|
|
8336
8540
|
} = props,
|
|
8337
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8541
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$Q);
|
|
8338
8542
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8339
8543
|
ref: ref
|
|
8340
8544
|
}, forwardedProps, {
|
|
8341
8545
|
className: classnames(className, handleBasicClasses({
|
|
8342
|
-
prefix: CLASSNAME$
|
|
8546
|
+
prefix: CLASSNAME$M,
|
|
8343
8547
|
theme,
|
|
8344
8548
|
size
|
|
8345
8549
|
}))
|
|
@@ -8359,11 +8563,11 @@ const ProgressCircular = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8359
8563
|
strokeWidth: "5"
|
|
8360
8564
|
})));
|
|
8361
8565
|
});
|
|
8362
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
8363
|
-
ProgressCircular.className = CLASSNAME$
|
|
8566
|
+
ProgressCircular.displayName = COMPONENT_NAME$P;
|
|
8567
|
+
ProgressCircular.className = CLASSNAME$M;
|
|
8364
8568
|
ProgressCircular.defaultProps = DEFAULT_PROPS$A;
|
|
8365
8569
|
|
|
8366
|
-
const _excluded$
|
|
8570
|
+
const _excluded$R = ["className", "theme", "variant"];
|
|
8367
8571
|
|
|
8368
8572
|
/**
|
|
8369
8573
|
* Progress variants.
|
|
@@ -8375,12 +8579,12 @@ const ProgressVariant = {
|
|
|
8375
8579
|
/**
|
|
8376
8580
|
* Component display name.
|
|
8377
8581
|
*/
|
|
8378
|
-
const COMPONENT_NAME$
|
|
8582
|
+
const COMPONENT_NAME$Q = 'Progress';
|
|
8379
8583
|
|
|
8380
8584
|
/**
|
|
8381
8585
|
* Component default class name and class prefix.
|
|
8382
8586
|
*/
|
|
8383
|
-
const CLASSNAME$
|
|
8587
|
+
const CLASSNAME$N = getRootClassName(COMPONENT_NAME$Q);
|
|
8384
8588
|
|
|
8385
8589
|
/**
|
|
8386
8590
|
* Component default props.
|
|
@@ -8404,12 +8608,12 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8404
8608
|
theme,
|
|
8405
8609
|
variant
|
|
8406
8610
|
} = props,
|
|
8407
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8611
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$R);
|
|
8408
8612
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8409
8613
|
ref: ref
|
|
8410
8614
|
}, forwardedProps, {
|
|
8411
8615
|
className: classnames(className, handleBasicClasses({
|
|
8412
|
-
prefix: CLASSNAME$
|
|
8616
|
+
prefix: CLASSNAME$N,
|
|
8413
8617
|
theme,
|
|
8414
8618
|
variant
|
|
8415
8619
|
}))
|
|
@@ -8419,8 +8623,8 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8419
8623
|
theme: theme
|
|
8420
8624
|
}));
|
|
8421
8625
|
});
|
|
8422
|
-
Progress.displayName = COMPONENT_NAME$
|
|
8423
|
-
Progress.className = CLASSNAME$
|
|
8626
|
+
Progress.displayName = COMPONENT_NAME$Q;
|
|
8627
|
+
Progress.className = CLASSNAME$N;
|
|
8424
8628
|
Progress.defaultProps = DEFAULT_PROPS$B;
|
|
8425
8629
|
|
|
8426
8630
|
const INIT_STATE = {
|
|
@@ -8542,7 +8746,7 @@ const useTabProviderContextState = () => {
|
|
|
8542
8746
|
return context === null || context === void 0 ? void 0 : context[0];
|
|
8543
8747
|
};
|
|
8544
8748
|
|
|
8545
|
-
const _excluded$
|
|
8749
|
+
const _excluded$S = ["children", "onChange"];
|
|
8546
8750
|
const DEFAULT_PROPS$C = {
|
|
8547
8751
|
isLazy: INIT_STATE.isLazy,
|
|
8548
8752
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
@@ -8564,7 +8768,7 @@ const ProgressTrackerProvider = props => {
|
|
|
8564
8768
|
children,
|
|
8565
8769
|
onChange
|
|
8566
8770
|
} = props,
|
|
8567
|
-
propState = _objectWithoutProperties(props, _excluded$
|
|
8771
|
+
propState = _objectWithoutProperties(props, _excluded$S);
|
|
8568
8772
|
const [state, dispatch] = useReducer(reducer, INIT_STATE);
|
|
8569
8773
|
|
|
8570
8774
|
// On prop state change => dispatch update.
|
|
@@ -8668,7 +8872,7 @@ const useRovingTabIndex = _ref => {
|
|
|
8668
8872
|
[parentRef, ...extraDependencies]);
|
|
8669
8873
|
};
|
|
8670
8874
|
|
|
8671
|
-
const _excluded$
|
|
8875
|
+
const _excluded$T = ["aria-label", "children", "className"];
|
|
8672
8876
|
|
|
8673
8877
|
/**
|
|
8674
8878
|
* Defines the props of the component.
|
|
@@ -8677,12 +8881,12 @@ const _excluded$Q = ["aria-label", "children", "className"];
|
|
|
8677
8881
|
/**
|
|
8678
8882
|
* Component display name.
|
|
8679
8883
|
*/
|
|
8680
|
-
const COMPONENT_NAME$
|
|
8884
|
+
const COMPONENT_NAME$R = 'ProgressTracker';
|
|
8681
8885
|
|
|
8682
8886
|
/**
|
|
8683
8887
|
* Component default class name and class prefix.
|
|
8684
8888
|
*/
|
|
8685
|
-
const CLASSNAME$
|
|
8889
|
+
const CLASSNAME$O = getRootClassName(COMPONENT_NAME$R);
|
|
8686
8890
|
|
|
8687
8891
|
/**
|
|
8688
8892
|
* Component default props.
|
|
@@ -8705,7 +8909,7 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8705
8909
|
children,
|
|
8706
8910
|
className
|
|
8707
8911
|
} = props,
|
|
8708
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8912
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$T);
|
|
8709
8913
|
const stepListRef = React.useRef(null);
|
|
8710
8914
|
useRovingTabIndex({
|
|
8711
8915
|
parentRef: stepListRef,
|
|
@@ -8721,20 +8925,20 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8721
8925
|
ref: mergeRefs(ref, stepListRef)
|
|
8722
8926
|
}, forwardedProps, {
|
|
8723
8927
|
className: classnames(className, handleBasicClasses({
|
|
8724
|
-
prefix: CLASSNAME$
|
|
8928
|
+
prefix: CLASSNAME$O
|
|
8725
8929
|
}))
|
|
8726
8930
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8727
|
-
className: `${CLASSNAME$
|
|
8931
|
+
className: `${CLASSNAME$O}__steps`,
|
|
8728
8932
|
role: "tablist",
|
|
8729
8933
|
"aria-label": ariaLabel
|
|
8730
8934
|
}, children), /*#__PURE__*/React.createElement("div", {
|
|
8731
|
-
className: `${CLASSNAME$
|
|
8935
|
+
className: `${CLASSNAME$O}__background-bar`,
|
|
8732
8936
|
style: {
|
|
8733
8937
|
left: `${backgroundPosition}%`,
|
|
8734
8938
|
right: `${backgroundPosition}%`
|
|
8735
8939
|
}
|
|
8736
8940
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8737
|
-
className: `${CLASSNAME$
|
|
8941
|
+
className: `${CLASSNAME$O}__foreground-bar`,
|
|
8738
8942
|
style: {
|
|
8739
8943
|
left: `${backgroundPosition}%`,
|
|
8740
8944
|
right: `${backgroundPosition}%`,
|
|
@@ -8742,11 +8946,11 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8742
8946
|
}
|
|
8743
8947
|
}));
|
|
8744
8948
|
});
|
|
8745
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
8746
|
-
ProgressTracker.className = CLASSNAME$
|
|
8949
|
+
ProgressTracker.displayName = COMPONENT_NAME$R;
|
|
8950
|
+
ProgressTracker.className = CLASSNAME$O;
|
|
8747
8951
|
ProgressTracker.defaultProps = DEFAULT_PROPS$D;
|
|
8748
8952
|
|
|
8749
|
-
const _excluded$
|
|
8953
|
+
const _excluded$U = ["className", "disabled", "hasError", "helper", "id", "isActive", "isComplete", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
|
|
8750
8954
|
|
|
8751
8955
|
/**
|
|
8752
8956
|
* Defines the props of the component.
|
|
@@ -8755,12 +8959,12 @@ const _excluded$R = ["className", "disabled", "hasError", "helper", "id", "isAct
|
|
|
8755
8959
|
/**
|
|
8756
8960
|
* Component display name.
|
|
8757
8961
|
*/
|
|
8758
|
-
const COMPONENT_NAME$
|
|
8962
|
+
const COMPONENT_NAME$S = 'ProgressTrackerStep';
|
|
8759
8963
|
|
|
8760
8964
|
/**
|
|
8761
8965
|
* Component default class name and class prefix.
|
|
8762
8966
|
*/
|
|
8763
|
-
const CLASSNAME$
|
|
8967
|
+
const CLASSNAME$P = getRootClassName(COMPONENT_NAME$S);
|
|
8764
8968
|
|
|
8765
8969
|
/**
|
|
8766
8970
|
* Component default props.
|
|
@@ -8791,7 +8995,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8791
8995
|
onKeyPress,
|
|
8792
8996
|
tabIndex = -1
|
|
8793
8997
|
} = props,
|
|
8794
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8998
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$U);
|
|
8795
8999
|
const state = useTabProviderContext('tab', id);
|
|
8796
9000
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
8797
9001
|
const changeToCurrentTab = useCallback(() => {
|
|
@@ -8828,7 +9032,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8828
9032
|
type: "button",
|
|
8829
9033
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
8830
9034
|
className: classnames(className, handleBasicClasses({
|
|
8831
|
-
prefix: CLASSNAME$
|
|
9035
|
+
prefix: CLASSNAME$P,
|
|
8832
9036
|
hasError,
|
|
8833
9037
|
isActive,
|
|
8834
9038
|
isClickable: state && !isDisabled,
|
|
@@ -8843,22 +9047,22 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8843
9047
|
"aria-selected": isActive,
|
|
8844
9048
|
"aria-controls": state === null || state === void 0 ? void 0 : state.tabPanelId
|
|
8845
9049
|
}), /*#__PURE__*/React.createElement(Icon, {
|
|
8846
|
-
className: `${CLASSNAME$
|
|
9050
|
+
className: `${CLASSNAME$P}__state`,
|
|
8847
9051
|
icon: getIcon(),
|
|
8848
9052
|
size: Size.s
|
|
8849
9053
|
}), /*#__PURE__*/React.createElement(InputLabel, {
|
|
8850
9054
|
htmlFor: (state === null || state === void 0 ? void 0 : state.tabId) || '',
|
|
8851
|
-
className: `${CLASSNAME$
|
|
9055
|
+
className: `${CLASSNAME$P}__label`
|
|
8852
9056
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
8853
9057
|
kind: hasError ? Kind.error : Kind.info,
|
|
8854
|
-
className: `${CLASSNAME$
|
|
9058
|
+
className: `${CLASSNAME$P}__helper`
|
|
8855
9059
|
}, helper));
|
|
8856
9060
|
});
|
|
8857
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
8858
|
-
ProgressTrackerStep.className = CLASSNAME$
|
|
9061
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$S;
|
|
9062
|
+
ProgressTrackerStep.className = CLASSNAME$P;
|
|
8859
9063
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$E;
|
|
8860
9064
|
|
|
8861
|
-
const _excluded$
|
|
9065
|
+
const _excluded$V = ["children", "id", "className", "isActive"];
|
|
8862
9066
|
|
|
8863
9067
|
/**
|
|
8864
9068
|
* Defines the props of the component.
|
|
@@ -8867,12 +9071,12 @@ const _excluded$S = ["children", "id", "className", "isActive"];
|
|
|
8867
9071
|
/**
|
|
8868
9072
|
* Component display name.
|
|
8869
9073
|
*/
|
|
8870
|
-
const COMPONENT_NAME$
|
|
9074
|
+
const COMPONENT_NAME$T = 'ProgressTrackerStepPanel';
|
|
8871
9075
|
|
|
8872
9076
|
/**
|
|
8873
9077
|
* Component default class name and class prefix.
|
|
8874
9078
|
*/
|
|
8875
|
-
const CLASSNAME$
|
|
9079
|
+
const CLASSNAME$Q = `${CSS_PREFIX}-step-panel`;
|
|
8876
9080
|
|
|
8877
9081
|
/**
|
|
8878
9082
|
* Component default props.
|
|
@@ -8895,7 +9099,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8895
9099
|
className,
|
|
8896
9100
|
isActive: propIsActive
|
|
8897
9101
|
} = props,
|
|
8898
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9102
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$V);
|
|
8899
9103
|
const state = useTabProviderContext('tabPanel', id);
|
|
8900
9104
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
8901
9105
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -8903,7 +9107,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8903
9107
|
}, forwardedProps, {
|
|
8904
9108
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
8905
9109
|
className: classnames(className, handleBasicClasses({
|
|
8906
|
-
prefix: CLASSNAME$
|
|
9110
|
+
prefix: CLASSNAME$Q,
|
|
8907
9111
|
isActive
|
|
8908
9112
|
})),
|
|
8909
9113
|
role: "tabpanel",
|
|
@@ -8911,11 +9115,11 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8911
9115
|
"aria-labelledby": state === null || state === void 0 ? void 0 : state.tabId
|
|
8912
9116
|
}), (!(state !== null && state !== void 0 && state.isLazy) || isActive) && children);
|
|
8913
9117
|
});
|
|
8914
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
8915
|
-
ProgressTrackerStepPanel.className = CLASSNAME$
|
|
9118
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$T;
|
|
9119
|
+
ProgressTrackerStepPanel.className = CLASSNAME$Q;
|
|
8916
9120
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$F;
|
|
8917
9121
|
|
|
8918
|
-
const _excluded$
|
|
9122
|
+
const _excluded$W = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
|
|
8919
9123
|
|
|
8920
9124
|
/**
|
|
8921
9125
|
* Defines the props of the component.
|
|
@@ -8924,12 +9128,12 @@ const _excluded$T = ["checked", "className", "disabled", "helper", "id", "inputR
|
|
|
8924
9128
|
/**
|
|
8925
9129
|
* Component display name.
|
|
8926
9130
|
*/
|
|
8927
|
-
const COMPONENT_NAME$
|
|
9131
|
+
const COMPONENT_NAME$U = 'RadioButton';
|
|
8928
9132
|
|
|
8929
9133
|
/**
|
|
8930
9134
|
* Component default class name and class prefix.
|
|
8931
9135
|
*/
|
|
8932
|
-
const CLASSNAME$
|
|
9136
|
+
const CLASSNAME$R = getRootClassName(COMPONENT_NAME$U);
|
|
8933
9137
|
|
|
8934
9138
|
/**
|
|
8935
9139
|
* Component default props.
|
|
@@ -8962,8 +9166,8 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8962
9166
|
value,
|
|
8963
9167
|
inputProps
|
|
8964
9168
|
} = props,
|
|
8965
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8966
|
-
const inputId = useMemo(() => id || `${CLASSNAME$
|
|
9169
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$W);
|
|
9170
|
+
const inputId = useMemo(() => id || `${CLASSNAME$R.toLowerCase()}-${uid()}`, [id]);
|
|
8967
9171
|
const handleChange = event => {
|
|
8968
9172
|
if (onChange) {
|
|
8969
9173
|
onChange(value, name, event);
|
|
@@ -8976,14 +9180,14 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8976
9180
|
isChecked,
|
|
8977
9181
|
isDisabled,
|
|
8978
9182
|
isUnchecked: !isChecked,
|
|
8979
|
-
prefix: CLASSNAME$
|
|
9183
|
+
prefix: CLASSNAME$R,
|
|
8980
9184
|
theme
|
|
8981
9185
|
}))
|
|
8982
9186
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8983
|
-
className: `${CLASSNAME$
|
|
9187
|
+
className: `${CLASSNAME$R}__input-wrapper`
|
|
8984
9188
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
8985
9189
|
ref: inputRef,
|
|
8986
|
-
className: `${CLASSNAME$
|
|
9190
|
+
className: `${CLASSNAME$R}__input-native`,
|
|
8987
9191
|
disabled: isDisabled,
|
|
8988
9192
|
id: inputId,
|
|
8989
9193
|
tabIndex: isDisabled ? -1 : 0,
|
|
@@ -8994,28 +9198,28 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8994
9198
|
onChange: handleChange,
|
|
8995
9199
|
"aria-describedby": helper ? `${inputId}-helper` : undefined
|
|
8996
9200
|
}, inputProps)), /*#__PURE__*/React.createElement("div", {
|
|
8997
|
-
className: `${CLASSNAME$
|
|
9201
|
+
className: `${CLASSNAME$R}__input-placeholder`
|
|
8998
9202
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8999
|
-
className: `${CLASSNAME$
|
|
9203
|
+
className: `${CLASSNAME$R}__input-background`
|
|
9000
9204
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9001
|
-
className: `${CLASSNAME$
|
|
9205
|
+
className: `${CLASSNAME$R}__input-indicator`
|
|
9002
9206
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
9003
|
-
className: `${CLASSNAME$
|
|
9207
|
+
className: `${CLASSNAME$R}__content`
|
|
9004
9208
|
}, label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
9005
9209
|
htmlFor: inputId,
|
|
9006
9210
|
theme: theme,
|
|
9007
|
-
className: `${CLASSNAME$
|
|
9211
|
+
className: `${CLASSNAME$R}__label`
|
|
9008
9212
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
9009
9213
|
id: `${inputId}-helper`,
|
|
9010
9214
|
theme: theme,
|
|
9011
|
-
className: `${CLASSNAME$
|
|
9215
|
+
className: `${CLASSNAME$R}__helper`
|
|
9012
9216
|
}, helper)));
|
|
9013
9217
|
});
|
|
9014
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
9015
|
-
RadioButton.className = CLASSNAME$
|
|
9218
|
+
RadioButton.displayName = COMPONENT_NAME$U;
|
|
9219
|
+
RadioButton.className = CLASSNAME$R;
|
|
9016
9220
|
RadioButton.defaultProps = DEFAULT_PROPS$G;
|
|
9017
9221
|
|
|
9018
|
-
const _excluded$
|
|
9222
|
+
const _excluded$X = ["children", "className"];
|
|
9019
9223
|
|
|
9020
9224
|
/**
|
|
9021
9225
|
* Defines the props of the component.
|
|
@@ -9024,12 +9228,12 @@ const _excluded$U = ["children", "className"];
|
|
|
9024
9228
|
/**
|
|
9025
9229
|
* Component display name.
|
|
9026
9230
|
*/
|
|
9027
|
-
const COMPONENT_NAME$
|
|
9231
|
+
const COMPONENT_NAME$V = 'RadioGroup';
|
|
9028
9232
|
|
|
9029
9233
|
/**
|
|
9030
9234
|
* Component default class name and class prefix.
|
|
9031
9235
|
*/
|
|
9032
|
-
const CLASSNAME$
|
|
9236
|
+
const CLASSNAME$S = getRootClassName(COMPONENT_NAME$V);
|
|
9033
9237
|
|
|
9034
9238
|
/**
|
|
9035
9239
|
* RadioGroup component.
|
|
@@ -9043,17 +9247,17 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9043
9247
|
children,
|
|
9044
9248
|
className
|
|
9045
9249
|
} = props,
|
|
9046
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9250
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$X);
|
|
9047
9251
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9048
9252
|
ref: ref
|
|
9049
9253
|
}, forwardedProps, {
|
|
9050
9254
|
className: classnames(className, handleBasicClasses({
|
|
9051
|
-
prefix: CLASSNAME$
|
|
9255
|
+
prefix: CLASSNAME$S
|
|
9052
9256
|
}))
|
|
9053
9257
|
}), children);
|
|
9054
9258
|
});
|
|
9055
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
9056
|
-
RadioGroup.className = CLASSNAME$
|
|
9259
|
+
RadioGroup.displayName = COMPONENT_NAME$V;
|
|
9260
|
+
RadioGroup.className = CLASSNAME$S;
|
|
9057
9261
|
|
|
9058
9262
|
/**
|
|
9059
9263
|
* Listen on element focus to store the focus status.
|
|
@@ -9087,13 +9291,13 @@ const SelectVariant = {
|
|
|
9087
9291
|
chip: 'chip'
|
|
9088
9292
|
};
|
|
9089
9293
|
|
|
9090
|
-
const _excluded$
|
|
9294
|
+
const _excluded$Y = ["children", "className", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"];
|
|
9091
9295
|
|
|
9092
9296
|
/** The display name of the component. */
|
|
9093
|
-
const COMPONENT_NAME$
|
|
9297
|
+
const COMPONENT_NAME$W = 'Select';
|
|
9094
9298
|
|
|
9095
9299
|
/** The default class name and classes prefix for this component. */
|
|
9096
|
-
const CLASSNAME$
|
|
9300
|
+
const CLASSNAME$T = getRootClassName(COMPONENT_NAME$W);
|
|
9097
9301
|
|
|
9098
9302
|
/** The default value of props. */
|
|
9099
9303
|
const DEFAULT_PROPS$H = {
|
|
@@ -9126,7 +9330,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
9126
9330
|
value,
|
|
9127
9331
|
variant = DEFAULT_PROPS$H.variant
|
|
9128
9332
|
} = _ref,
|
|
9129
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
9333
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$Y);
|
|
9130
9334
|
const selectId = useMemo(() => id || `select-${uid()}`, [id]);
|
|
9131
9335
|
const anchorRef = useRef(null);
|
|
9132
9336
|
const selectRef = useRef(null);
|
|
@@ -9156,7 +9360,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
9156
9360
|
isFocus,
|
|
9157
9361
|
isOpen,
|
|
9158
9362
|
isValid,
|
|
9159
|
-
prefix: CLASSNAME$
|
|
9363
|
+
prefix: CLASSNAME$T,
|
|
9160
9364
|
theme: theme === Theme.light ? Theme.light : Theme.dark
|
|
9161
9365
|
}))
|
|
9162
9366
|
}, /*#__PURE__*/React.createElement(SelectElement, _extends({}, forwardedProps, {
|
|
@@ -9186,22 +9390,22 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
9186
9390
|
onClose: onClose,
|
|
9187
9391
|
onInfiniteScroll: onInfiniteScroll
|
|
9188
9392
|
}, children), hasError && error && /*#__PURE__*/React.createElement(InputHelper, {
|
|
9189
|
-
className: `${CLASSNAME$
|
|
9393
|
+
className: `${CLASSNAME$T}__helper`,
|
|
9190
9394
|
kind: Kind.error,
|
|
9191
9395
|
theme: theme
|
|
9192
9396
|
}, error), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
9193
|
-
className: `${CLASSNAME$
|
|
9397
|
+
className: `${CLASSNAME$T}__helper`,
|
|
9194
9398
|
theme: theme
|
|
9195
9399
|
}, helper));
|
|
9196
9400
|
};
|
|
9197
9401
|
|
|
9198
|
-
const _excluded$
|
|
9402
|
+
const _excluded$Z = ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant"];
|
|
9199
9403
|
|
|
9200
9404
|
/** The display name of the component. */
|
|
9201
|
-
const COMPONENT_NAME$
|
|
9405
|
+
const COMPONENT_NAME$X = 'Select';
|
|
9202
9406
|
|
|
9203
9407
|
/** The default class name and classes prefix for this component. */
|
|
9204
|
-
const CLASSNAME$
|
|
9408
|
+
const CLASSNAME$U = getRootClassName(COMPONENT_NAME$X);
|
|
9205
9409
|
|
|
9206
9410
|
/** The default value of props. */
|
|
9207
9411
|
const DEFAULT_PROPS$I = {
|
|
@@ -9234,36 +9438,36 @@ const SelectField = _ref => {
|
|
|
9234
9438
|
value,
|
|
9235
9439
|
variant
|
|
9236
9440
|
} = _ref,
|
|
9237
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
9441
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$Z);
|
|
9238
9442
|
return /*#__PURE__*/React.createElement(React.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement("div", {
|
|
9239
|
-
className: `${CLASSNAME$
|
|
9443
|
+
className: `${CLASSNAME$U}__header`
|
|
9240
9444
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
9241
9445
|
htmlFor: id,
|
|
9242
|
-
className: `${CLASSNAME$
|
|
9446
|
+
className: `${CLASSNAME$U}__label`,
|
|
9243
9447
|
isRequired: isRequired,
|
|
9244
9448
|
theme: theme
|
|
9245
9449
|
}, label)), /*#__PURE__*/React.createElement("div", _extends({
|
|
9246
9450
|
ref: anchorRef,
|
|
9247
9451
|
id: id,
|
|
9248
|
-
className: `${CLASSNAME$
|
|
9452
|
+
className: `${CLASSNAME$U}__wrapper`,
|
|
9249
9453
|
onClick: onInputClick,
|
|
9250
9454
|
onKeyDown: handleKeyboardNav,
|
|
9251
9455
|
tabIndex: isDisabled ? undefined : 0,
|
|
9252
9456
|
"aria-disabled": isDisabled || undefined
|
|
9253
9457
|
}, forwardedProps), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9254
|
-
className: `${CLASSNAME$
|
|
9458
|
+
className: `${CLASSNAME$U}__input-icon`,
|
|
9255
9459
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
9256
9460
|
icon: icon,
|
|
9257
9461
|
size: Size.xs
|
|
9258
9462
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9259
|
-
className: classnames([`${CLASSNAME$
|
|
9463
|
+
className: classnames([`${CLASSNAME$U}__input-native`, isEmpty && placeholder && `${CLASSNAME$U}__input-native--placeholder`])
|
|
9260
9464
|
}, !isEmpty && /*#__PURE__*/React.createElement("span", null, selectedValueRender === null || selectedValueRender === void 0 ? void 0 : selectedValueRender(value)), isEmpty && placeholder && /*#__PURE__*/React.createElement("span", null, placeholder)), (isValid || hasError) && /*#__PURE__*/React.createElement("div", {
|
|
9261
|
-
className: `${CLASSNAME$
|
|
9465
|
+
className: `${CLASSNAME$U}__input-validity`
|
|
9262
9466
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9263
9467
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
9264
9468
|
size: Size.xxs
|
|
9265
9469
|
})), hasInputClear && clearButtonProps && /*#__PURE__*/React.createElement(IconButton, _extends({}, clearButtonProps, {
|
|
9266
|
-
className: `${CLASSNAME$
|
|
9470
|
+
className: `${CLASSNAME$U}__input-clear`,
|
|
9267
9471
|
icon: mdiCloseCircle,
|
|
9268
9472
|
emphasis: Emphasis.low,
|
|
9269
9473
|
size: Size.s,
|
|
@@ -9271,7 +9475,7 @@ const SelectField = _ref => {
|
|
|
9271
9475
|
onClick: onClear,
|
|
9272
9476
|
onKeyDown: stopPropagation
|
|
9273
9477
|
})), /*#__PURE__*/React.createElement("div", {
|
|
9274
|
-
className: `${CLASSNAME$
|
|
9478
|
+
className: `${CLASSNAME$U}__input-indicator`
|
|
9275
9479
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9276
9480
|
icon: mdiMenuDown,
|
|
9277
9481
|
size: Size.s
|
|
@@ -9303,26 +9507,26 @@ const Select = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9303
9507
|
className: classnames(props.className, handleBasicClasses({
|
|
9304
9508
|
hasInputClear,
|
|
9305
9509
|
hasUnique: !props.isEmpty,
|
|
9306
|
-
prefix: CLASSNAME$
|
|
9510
|
+
prefix: CLASSNAME$U
|
|
9307
9511
|
})),
|
|
9308
9512
|
hasInputClear,
|
|
9309
9513
|
isEmpty: isEmpty$1
|
|
9310
9514
|
}), ref);
|
|
9311
9515
|
});
|
|
9312
|
-
Select.displayName = COMPONENT_NAME$
|
|
9313
|
-
Select.className = CLASSNAME$
|
|
9516
|
+
Select.displayName = COMPONENT_NAME$X;
|
|
9517
|
+
Select.className = CLASSNAME$U;
|
|
9314
9518
|
Select.defaultProps = DEFAULT_PROPS$I;
|
|
9315
|
-
Select.className = CLASSNAME$
|
|
9519
|
+
Select.className = CLASSNAME$U;
|
|
9316
9520
|
|
|
9317
|
-
const _excluded$
|
|
9521
|
+
const _excluded$_ = ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant"];
|
|
9318
9522
|
|
|
9319
9523
|
/** Defines the props of the component. */
|
|
9320
9524
|
|
|
9321
9525
|
/** The display name of the component. */
|
|
9322
|
-
const COMPONENT_NAME$
|
|
9526
|
+
const COMPONENT_NAME$Y = 'Select';
|
|
9323
9527
|
|
|
9324
9528
|
/** The default class name and classes prefix for this component. */
|
|
9325
|
-
const CLASSNAME$
|
|
9529
|
+
const CLASSNAME$V = getRootClassName(COMPONENT_NAME$Y);
|
|
9326
9530
|
|
|
9327
9531
|
/** The default value of props. */
|
|
9328
9532
|
const DEFAULT_PROPS$J = {
|
|
@@ -9364,38 +9568,38 @@ const SelectMultipleField = _ref => {
|
|
|
9364
9568
|
value,
|
|
9365
9569
|
variant
|
|
9366
9570
|
} = _ref,
|
|
9367
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
9571
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$_);
|
|
9368
9572
|
return /*#__PURE__*/React.createElement(React.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement("div", {
|
|
9369
|
-
className: `${CLASSNAME$
|
|
9573
|
+
className: `${CLASSNAME$V}__header`
|
|
9370
9574
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
9371
9575
|
htmlFor: id,
|
|
9372
|
-
className: `${CLASSNAME$
|
|
9576
|
+
className: `${CLASSNAME$V}__label`,
|
|
9373
9577
|
isRequired: isRequired,
|
|
9374
9578
|
theme: theme
|
|
9375
9579
|
}, label)), /*#__PURE__*/React.createElement("div", _extends({
|
|
9376
9580
|
ref: anchorRef,
|
|
9377
9581
|
id: id,
|
|
9378
|
-
className: `${CLASSNAME$
|
|
9582
|
+
className: `${CLASSNAME$V}__wrapper`,
|
|
9379
9583
|
onClick: onInputClick,
|
|
9380
9584
|
onKeyDown: handleKeyboardNav,
|
|
9381
9585
|
tabIndex: isDisabled ? undefined : 0,
|
|
9382
9586
|
"aria-disabled": isDisabled || undefined
|
|
9383
9587
|
}, forwardedProps), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9384
|
-
className: `${CLASSNAME$
|
|
9588
|
+
className: `${CLASSNAME$V}__input-icon`,
|
|
9385
9589
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
9386
9590
|
icon: icon,
|
|
9387
9591
|
size: Size.xs
|
|
9388
9592
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9389
|
-
className: `${CLASSNAME$
|
|
9593
|
+
className: `${CLASSNAME$V}__chips`
|
|
9390
9594
|
}, !isEmpty && value.map((val, index) => selectedChipRender === null || selectedChipRender === void 0 ? void 0 : selectedChipRender(val, index, onClear, isDisabled, theme))), isEmpty && placeholder && /*#__PURE__*/React.createElement("div", {
|
|
9391
|
-
className: classnames([`${CLASSNAME$
|
|
9595
|
+
className: classnames([`${CLASSNAME$V}__input-native`, `${CLASSNAME$V}__input-native--placeholder`])
|
|
9392
9596
|
}, /*#__PURE__*/React.createElement("span", null, placeholder)), (isValid || hasError) && /*#__PURE__*/React.createElement("div", {
|
|
9393
|
-
className: `${CLASSNAME$
|
|
9597
|
+
className: `${CLASSNAME$V}__input-validity`
|
|
9394
9598
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9395
9599
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
9396
9600
|
size: Size.xxs
|
|
9397
9601
|
})), /*#__PURE__*/React.createElement("div", {
|
|
9398
|
-
className: `${CLASSNAME$
|
|
9602
|
+
className: `${CLASSNAME$V}__input-indicator`
|
|
9399
9603
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9400
9604
|
icon: mdiMenuDown,
|
|
9401
9605
|
size: Size.s
|
|
@@ -9424,17 +9628,17 @@ const SelectMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9424
9628
|
return WithSelectContext(SelectMultipleField, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9425
9629
|
className: classnames(props.className, handleBasicClasses({
|
|
9426
9630
|
hasMultiple: !props.isEmpty,
|
|
9427
|
-
prefix: CLASSNAME$
|
|
9631
|
+
prefix: CLASSNAME$V
|
|
9428
9632
|
})),
|
|
9429
9633
|
isEmpty: props.value.length === 0,
|
|
9430
9634
|
isMultiple: true
|
|
9431
9635
|
}), ref);
|
|
9432
9636
|
});
|
|
9433
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
9434
|
-
SelectMultiple.className = CLASSNAME$
|
|
9637
|
+
SelectMultiple.displayName = COMPONENT_NAME$Y;
|
|
9638
|
+
SelectMultiple.className = CLASSNAME$V;
|
|
9435
9639
|
SelectMultiple.defaultProps = DEFAULT_PROPS$J;
|
|
9436
9640
|
|
|
9437
|
-
const _excluded
|
|
9641
|
+
const _excluded$$ = ["children", "className", "theme"];
|
|
9438
9642
|
|
|
9439
9643
|
/**
|
|
9440
9644
|
* Defines the props of the component.
|
|
@@ -9443,12 +9647,12 @@ const _excluded$Y = ["children", "className", "theme"];
|
|
|
9443
9647
|
/**
|
|
9444
9648
|
* Component display name.
|
|
9445
9649
|
*/
|
|
9446
|
-
const COMPONENT_NAME$
|
|
9650
|
+
const COMPONENT_NAME$Z = 'SideNavigation';
|
|
9447
9651
|
|
|
9448
9652
|
/**
|
|
9449
9653
|
* Component default class name and class prefix.
|
|
9450
9654
|
*/
|
|
9451
|
-
const CLASSNAME$
|
|
9655
|
+
const CLASSNAME$W = getRootClassName(COMPONENT_NAME$Z);
|
|
9452
9656
|
|
|
9453
9657
|
/**
|
|
9454
9658
|
* SideNavigation component.
|
|
@@ -9463,20 +9667,20 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9463
9667
|
className,
|
|
9464
9668
|
theme
|
|
9465
9669
|
} = props,
|
|
9466
|
-
forwardedProps = _objectWithoutProperties(props, _excluded
|
|
9670
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$$);
|
|
9467
9671
|
const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
9468
9672
|
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
9469
9673
|
ref: ref
|
|
9470
9674
|
}, forwardedProps, {
|
|
9471
9675
|
className: classnames(className, theme === Theme.dark && 'lumx-color-font-light-N', handleBasicClasses({
|
|
9472
|
-
prefix: CLASSNAME$
|
|
9676
|
+
prefix: CLASSNAME$W
|
|
9473
9677
|
}))
|
|
9474
9678
|
}), content);
|
|
9475
9679
|
});
|
|
9476
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
9477
|
-
SideNavigation.className = CLASSNAME$
|
|
9680
|
+
SideNavigation.displayName = COMPONENT_NAME$Z;
|
|
9681
|
+
SideNavigation.className = CLASSNAME$W;
|
|
9478
9682
|
|
|
9479
|
-
const _excluded$
|
|
9683
|
+
const _excluded$10 = ["children", "className", "emphasis", "icon", "isOpen", "isSelected", "label", "linkAs", "linkProps", "onActionClick", "onClick", "toggleButtonProps", "closeMode"];
|
|
9480
9684
|
|
|
9481
9685
|
/**
|
|
9482
9686
|
* Defines the props of the component.
|
|
@@ -9485,12 +9689,12 @@ const _excluded$Z = ["children", "className", "emphasis", "icon", "isOpen", "isS
|
|
|
9485
9689
|
/**
|
|
9486
9690
|
* Component display name.
|
|
9487
9691
|
*/
|
|
9488
|
-
const COMPONENT_NAME$
|
|
9692
|
+
const COMPONENT_NAME$_ = 'SideNavigationItem';
|
|
9489
9693
|
|
|
9490
9694
|
/**
|
|
9491
9695
|
* Component default class name and class prefix.
|
|
9492
9696
|
*/
|
|
9493
|
-
const CLASSNAME$
|
|
9697
|
+
const CLASSNAME$X = getRootClassName(COMPONENT_NAME$_);
|
|
9494
9698
|
|
|
9495
9699
|
/**
|
|
9496
9700
|
* Component default props.
|
|
@@ -9523,7 +9727,7 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9523
9727
|
toggleButtonProps,
|
|
9524
9728
|
closeMode = 'unmount'
|
|
9525
9729
|
} = props,
|
|
9526
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9730
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$10);
|
|
9527
9731
|
const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
9528
9732
|
const hasContent = !isEmpty(content);
|
|
9529
9733
|
const shouldSplitActions = Boolean(onActionClick);
|
|
@@ -9535,22 +9739,22 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9535
9739
|
emphasis,
|
|
9536
9740
|
isOpen: showChildren,
|
|
9537
9741
|
isSelected,
|
|
9538
|
-
prefix: CLASSNAME$
|
|
9742
|
+
prefix: CLASSNAME$X
|
|
9539
9743
|
}))
|
|
9540
9744
|
}), shouldSplitActions ? /*#__PURE__*/React.createElement("div", {
|
|
9541
|
-
className: `${CLASSNAME$
|
|
9745
|
+
className: `${CLASSNAME$X}__wrapper`
|
|
9542
9746
|
}, renderLink(_objectSpread2(_objectSpread2({
|
|
9543
9747
|
linkAs
|
|
9544
9748
|
}, linkProps), {}, {
|
|
9545
|
-
className: `${CLASSNAME$
|
|
9749
|
+
className: `${CLASSNAME$X}__link`,
|
|
9546
9750
|
onClick,
|
|
9547
9751
|
tabIndex: 0
|
|
9548
9752
|
}), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9549
|
-
className: `${CLASSNAME$
|
|
9753
|
+
className: `${CLASSNAME$X}__icon`,
|
|
9550
9754
|
icon: icon,
|
|
9551
9755
|
size: Size.xs
|
|
9552
9756
|
}), /*#__PURE__*/React.createElement("span", null, label)), /*#__PURE__*/React.createElement(IconButton, _extends({}, toggleButtonProps, {
|
|
9553
|
-
className: `${CLASSNAME$
|
|
9757
|
+
className: `${CLASSNAME$X}__toggle`,
|
|
9554
9758
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
9555
9759
|
size: Size.m,
|
|
9556
9760
|
emphasis: Emphasis.low,
|
|
@@ -9558,27 +9762,27 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9558
9762
|
}))) : renderLink(_objectSpread2(_objectSpread2({
|
|
9559
9763
|
linkAs
|
|
9560
9764
|
}, linkProps), {}, {
|
|
9561
|
-
className: `${CLASSNAME$
|
|
9765
|
+
className: `${CLASSNAME$X}__link`,
|
|
9562
9766
|
tabIndex: 0,
|
|
9563
9767
|
onClick,
|
|
9564
9768
|
onKeyDown: onClick ? onEnterPressed(onClick) : undefined
|
|
9565
9769
|
}), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9566
|
-
className: `${CLASSNAME$
|
|
9770
|
+
className: `${CLASSNAME$X}__icon`,
|
|
9567
9771
|
icon: icon,
|
|
9568
9772
|
size: Size.xs
|
|
9569
9773
|
}), /*#__PURE__*/React.createElement("span", null, label), hasContent && /*#__PURE__*/React.createElement(Icon, {
|
|
9570
|
-
className: `${CLASSNAME$
|
|
9774
|
+
className: `${CLASSNAME$X}__chevron`,
|
|
9571
9775
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
9572
9776
|
size: Size.xs
|
|
9573
9777
|
})), (closeMode === 'hide' || showChildren) && /*#__PURE__*/React.createElement("ul", {
|
|
9574
|
-
className: `${CLASSNAME$
|
|
9778
|
+
className: `${CLASSNAME$X}__children`
|
|
9575
9779
|
}, content));
|
|
9576
9780
|
});
|
|
9577
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
9578
|
-
SideNavigationItem.className = CLASSNAME$
|
|
9781
|
+
SideNavigationItem.displayName = COMPONENT_NAME$_;
|
|
9782
|
+
SideNavigationItem.className = CLASSNAME$X;
|
|
9579
9783
|
SideNavigationItem.defaultProps = DEFAULT_PROPS$K;
|
|
9580
9784
|
|
|
9581
|
-
const _excluded$
|
|
9785
|
+
const _excluded$11 = ["className", "size", "color", "theme"];
|
|
9582
9786
|
|
|
9583
9787
|
/**
|
|
9584
9788
|
* Defines the props of the component.
|
|
@@ -9591,12 +9795,12 @@ const DEFAULT_PROPS$L = {
|
|
|
9591
9795
|
/**
|
|
9592
9796
|
* Component display name.
|
|
9593
9797
|
*/
|
|
9594
|
-
const COMPONENT_NAME
|
|
9798
|
+
const COMPONENT_NAME$$ = 'SkeletonCircle';
|
|
9595
9799
|
|
|
9596
9800
|
/**
|
|
9597
9801
|
* Component default class name and class prefix.
|
|
9598
9802
|
*/
|
|
9599
|
-
const CLASSNAME$
|
|
9803
|
+
const CLASSNAME$Y = getRootClassName(COMPONENT_NAME$$);
|
|
9600
9804
|
|
|
9601
9805
|
/**
|
|
9602
9806
|
* SkeletonCircle component.
|
|
@@ -9612,23 +9816,23 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9612
9816
|
color,
|
|
9613
9817
|
theme
|
|
9614
9818
|
} = props,
|
|
9615
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9819
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$11);
|
|
9616
9820
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9617
9821
|
ref: ref
|
|
9618
9822
|
}, forwardedProps, {
|
|
9619
9823
|
className: classnames(className, handleBasicClasses({
|
|
9620
|
-
prefix: CLASSNAME$
|
|
9824
|
+
prefix: CLASSNAME$Y,
|
|
9621
9825
|
size,
|
|
9622
9826
|
color,
|
|
9623
9827
|
theme
|
|
9624
9828
|
}))
|
|
9625
9829
|
}));
|
|
9626
9830
|
});
|
|
9627
|
-
SkeletonCircle.displayName = COMPONENT_NAME
|
|
9831
|
+
SkeletonCircle.displayName = COMPONENT_NAME$$;
|
|
9628
9832
|
SkeletonCircle.defaultProps = DEFAULT_PROPS$L;
|
|
9629
|
-
SkeletonCircle.className = CLASSNAME$
|
|
9833
|
+
SkeletonCircle.className = CLASSNAME$Y;
|
|
9630
9834
|
|
|
9631
|
-
const _excluded
|
|
9835
|
+
const _excluded$12 = ["aspectRatio", "className", "height", "theme", "variant", "width", "color"];
|
|
9632
9836
|
|
|
9633
9837
|
/**
|
|
9634
9838
|
* Skeleton variants.
|
|
@@ -9646,12 +9850,12 @@ const DEFAULT_PROPS$M = {
|
|
|
9646
9850
|
/**
|
|
9647
9851
|
* Component display name.
|
|
9648
9852
|
*/
|
|
9649
|
-
const COMPONENT_NAME$
|
|
9853
|
+
const COMPONENT_NAME$10 = 'SkeletonRectangle';
|
|
9650
9854
|
|
|
9651
9855
|
/**
|
|
9652
9856
|
* Component default class name and class prefix.
|
|
9653
9857
|
*/
|
|
9654
|
-
const CLASSNAME$
|
|
9858
|
+
const CLASSNAME$Z = getRootClassName(COMPONENT_NAME$10);
|
|
9655
9859
|
|
|
9656
9860
|
/**
|
|
9657
9861
|
* SkeletonRectangle component.
|
|
@@ -9670,12 +9874,12 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9670
9874
|
width,
|
|
9671
9875
|
color
|
|
9672
9876
|
} = props,
|
|
9673
|
-
forwardedProps = _objectWithoutProperties(props, _excluded
|
|
9877
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$12);
|
|
9674
9878
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9675
9879
|
ref: ref
|
|
9676
9880
|
}, forwardedProps, {
|
|
9677
9881
|
className: classnames(className, handleBasicClasses({
|
|
9678
|
-
prefix: CLASSNAME$
|
|
9882
|
+
prefix: CLASSNAME$Z,
|
|
9679
9883
|
aspectRatio,
|
|
9680
9884
|
height: aspectRatio ? undefined : height,
|
|
9681
9885
|
theme,
|
|
@@ -9684,14 +9888,14 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9684
9888
|
color
|
|
9685
9889
|
}))
|
|
9686
9890
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9687
|
-
className: `${CLASSNAME$
|
|
9891
|
+
className: `${CLASSNAME$Z}__inner`
|
|
9688
9892
|
}));
|
|
9689
9893
|
});
|
|
9690
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
9691
|
-
SkeletonRectangle.className = CLASSNAME$
|
|
9894
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$10;
|
|
9895
|
+
SkeletonRectangle.className = CLASSNAME$Z;
|
|
9692
9896
|
SkeletonRectangle.defaultProps = DEFAULT_PROPS$M;
|
|
9693
9897
|
|
|
9694
|
-
const _excluded$
|
|
9898
|
+
const _excluded$13 = ["className", "theme", "typography", "width", "color"];
|
|
9695
9899
|
|
|
9696
9900
|
/**
|
|
9697
9901
|
* Defines the props of the component.
|
|
@@ -9704,12 +9908,12 @@ const DEFAULT_PROPS$N = {
|
|
|
9704
9908
|
/**
|
|
9705
9909
|
* Component display name.
|
|
9706
9910
|
*/
|
|
9707
|
-
const COMPONENT_NAME$
|
|
9911
|
+
const COMPONENT_NAME$11 = 'SkeletonTypography';
|
|
9708
9912
|
|
|
9709
9913
|
/**
|
|
9710
9914
|
* Component default class name and class prefix.
|
|
9711
9915
|
*/
|
|
9712
|
-
const CLASSNAME$
|
|
9916
|
+
const CLASSNAME$_ = getRootClassName(COMPONENT_NAME$11);
|
|
9713
9917
|
|
|
9714
9918
|
/**
|
|
9715
9919
|
* SkeletonTypography component.
|
|
@@ -9726,12 +9930,12 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9726
9930
|
width,
|
|
9727
9931
|
color
|
|
9728
9932
|
} = props,
|
|
9729
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9933
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$13);
|
|
9730
9934
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9731
9935
|
ref: ref
|
|
9732
9936
|
}, forwardedProps, {
|
|
9733
9937
|
className: classnames(className, handleBasicClasses({
|
|
9734
|
-
prefix: CLASSNAME$
|
|
9938
|
+
prefix: CLASSNAME$_,
|
|
9735
9939
|
theme,
|
|
9736
9940
|
typography,
|
|
9737
9941
|
color
|
|
@@ -9740,12 +9944,12 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9740
9944
|
width
|
|
9741
9945
|
})
|
|
9742
9946
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9743
|
-
className: `${CLASSNAME$
|
|
9947
|
+
className: `${CLASSNAME$_}__inner`
|
|
9744
9948
|
}));
|
|
9745
9949
|
});
|
|
9746
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
9950
|
+
SkeletonTypography.displayName = COMPONENT_NAME$11;
|
|
9747
9951
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$N;
|
|
9748
|
-
SkeletonTypography.className = CLASSNAME$
|
|
9952
|
+
SkeletonTypography.className = CLASSNAME$_;
|
|
9749
9953
|
|
|
9750
9954
|
const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
9751
9955
|
|
|
@@ -9781,7 +9985,7 @@ const clamp = (value, min, max) => {
|
|
|
9781
9985
|
return value;
|
|
9782
9986
|
};
|
|
9783
9987
|
|
|
9784
|
-
const _excluded$
|
|
9988
|
+
const _excluded$14 = ["className", "disabled", "helper", "hideMinMaxLabel", "id", "isDisabled", "label", "max", "min", "name", "onChange", "onMouseDown", "precision", "steps", "theme", "value"];
|
|
9785
9989
|
|
|
9786
9990
|
/**
|
|
9787
9991
|
* Defines the props of the component.
|
|
@@ -9790,12 +9994,12 @@ const _excluded$11 = ["className", "disabled", "helper", "hideMinMaxLabel", "id"
|
|
|
9790
9994
|
/**
|
|
9791
9995
|
* Component display name.
|
|
9792
9996
|
*/
|
|
9793
|
-
const COMPONENT_NAME
|
|
9997
|
+
const COMPONENT_NAME$12 = 'Slider';
|
|
9794
9998
|
|
|
9795
9999
|
/**
|
|
9796
10000
|
* Component default class name and class prefix.
|
|
9797
10001
|
*/
|
|
9798
|
-
const CLASSNAME
|
|
10002
|
+
const CLASSNAME$$ = getRootClassName(COMPONENT_NAME$12);
|
|
9799
10003
|
|
|
9800
10004
|
/**
|
|
9801
10005
|
* Component default props.
|
|
@@ -9856,7 +10060,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9856
10060
|
theme,
|
|
9857
10061
|
value
|
|
9858
10062
|
} = props,
|
|
9859
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10063
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$14);
|
|
9860
10064
|
const sliderId = useMemo(() => id || `slider-${uid()}`, [id]);
|
|
9861
10065
|
const sliderLabelId = useMemo(() => `label-${sliderId}`, [sliderId]);
|
|
9862
10066
|
const sliderRef = useRef(null);
|
|
@@ -9989,7 +10193,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9989
10193
|
ref: ref
|
|
9990
10194
|
}, forwardedProps, {
|
|
9991
10195
|
className: classnames(className, handleBasicClasses({
|
|
9992
|
-
prefix: CLASSNAME
|
|
10196
|
+
prefix: CLASSNAME$$,
|
|
9993
10197
|
theme,
|
|
9994
10198
|
hasLabel: Boolean(label)
|
|
9995
10199
|
})),
|
|
@@ -9998,30 +10202,30 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9998
10202
|
}), label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
9999
10203
|
id: sliderLabelId,
|
|
10000
10204
|
htmlFor: sliderId,
|
|
10001
|
-
className: `${CLASSNAME
|
|
10205
|
+
className: `${CLASSNAME$$}__label`,
|
|
10002
10206
|
theme: theme
|
|
10003
10207
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
10004
|
-
className: `${CLASSNAME
|
|
10208
|
+
className: `${CLASSNAME$$}__helper`,
|
|
10005
10209
|
theme: theme
|
|
10006
10210
|
}, helper), /*#__PURE__*/React.createElement("div", {
|
|
10007
|
-
className: `${CLASSNAME
|
|
10211
|
+
className: `${CLASSNAME$$}__ui-wrapper`
|
|
10008
10212
|
}, !hideMinMaxLabel && /*#__PURE__*/React.createElement("span", {
|
|
10009
|
-
className: `${CLASSNAME
|
|
10213
|
+
className: `${CLASSNAME$$}__value-label ${CLASSNAME$$}__value-label--min`
|
|
10010
10214
|
}, min), /*#__PURE__*/React.createElement("div", {
|
|
10011
|
-
className: `${CLASSNAME
|
|
10215
|
+
className: `${CLASSNAME$$}__wrapper`,
|
|
10012
10216
|
ref: sliderRef
|
|
10013
10217
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10014
|
-
className: `${CLASSNAME
|
|
10218
|
+
className: `${CLASSNAME$$}__track ${CLASSNAME$$}__track--background`
|
|
10015
10219
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10016
|
-
className: `${CLASSNAME
|
|
10220
|
+
className: `${CLASSNAME$$}__track ${CLASSNAME$$}__track--active`,
|
|
10017
10221
|
style: {
|
|
10018
10222
|
width: percentString
|
|
10019
10223
|
}
|
|
10020
10224
|
}), steps ? /*#__PURE__*/React.createElement("div", {
|
|
10021
|
-
className: `${CLASSNAME
|
|
10225
|
+
className: `${CLASSNAME$$}__ticks`
|
|
10022
10226
|
}, availableSteps.map((step, idx) => /*#__PURE__*/React.createElement("div", {
|
|
10023
10227
|
key: `tick_${idx}`,
|
|
10024
|
-
className: `${CLASSNAME
|
|
10228
|
+
className: `${CLASSNAME$$}__tick`,
|
|
10025
10229
|
style: {
|
|
10026
10230
|
left: `${step * 100}%`
|
|
10027
10231
|
}
|
|
@@ -10030,18 +10234,18 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10030
10234
|
"aria-labelledby": sliderLabelId,
|
|
10031
10235
|
name: name,
|
|
10032
10236
|
id: sliderId,
|
|
10033
|
-
className: `${CLASSNAME
|
|
10237
|
+
className: `${CLASSNAME$$}__handle`,
|
|
10034
10238
|
style: {
|
|
10035
10239
|
left: percentString
|
|
10036
10240
|
},
|
|
10037
10241
|
onKeyDown: handleKeyDown,
|
|
10038
10242
|
disabled: isDisabled
|
|
10039
10243
|
})), !hideMinMaxLabel && /*#__PURE__*/React.createElement("span", {
|
|
10040
|
-
className: `${CLASSNAME
|
|
10244
|
+
className: `${CLASSNAME$$}__value-label ${CLASSNAME$$}__value-label--max`
|
|
10041
10245
|
}, max)));
|
|
10042
10246
|
});
|
|
10043
|
-
Slider.displayName = COMPONENT_NAME
|
|
10044
|
-
Slider.className = CLASSNAME
|
|
10247
|
+
Slider.displayName = COMPONENT_NAME$12;
|
|
10248
|
+
Slider.className = CLASSNAME$$;
|
|
10045
10249
|
Slider.defaultProps = DEFAULT_PROPS$O;
|
|
10046
10250
|
|
|
10047
10251
|
/**
|
|
@@ -10337,7 +10541,7 @@ const useSlideFocusManagement = _ref => {
|
|
|
10337
10541
|
}, [isSlideDisplayed, slideRef]);
|
|
10338
10542
|
};
|
|
10339
10543
|
|
|
10340
|
-
const _excluded$
|
|
10544
|
+
const _excluded$15 = ["className", "children", "role", "label", "isDisplayed"];
|
|
10341
10545
|
|
|
10342
10546
|
/**
|
|
10343
10547
|
* Defines the props of the component.
|
|
@@ -10346,12 +10550,12 @@ const _excluded$12 = ["className", "children", "role", "label", "isDisplayed"];
|
|
|
10346
10550
|
/**
|
|
10347
10551
|
* Component display name.
|
|
10348
10552
|
*/
|
|
10349
|
-
const COMPONENT_NAME$
|
|
10553
|
+
const COMPONENT_NAME$13 = 'SlideshowItemGroup';
|
|
10350
10554
|
|
|
10351
10555
|
/**
|
|
10352
10556
|
* Component default class name and class prefix.
|
|
10353
10557
|
*/
|
|
10354
|
-
const CLASSNAME$
|
|
10558
|
+
const CLASSNAME$10 = getRootClassName(COMPONENT_NAME$13);
|
|
10355
10559
|
const buildSlideShowGroupId = (slidesId, index) => `${slidesId}-slide-${index}`;
|
|
10356
10560
|
|
|
10357
10561
|
/**
|
|
@@ -10369,7 +10573,7 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10369
10573
|
label,
|
|
10370
10574
|
isDisplayed
|
|
10371
10575
|
} = props,
|
|
10372
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10576
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$15);
|
|
10373
10577
|
const groupRef = React.useRef(null);
|
|
10374
10578
|
useSlideFocusManagement({
|
|
10375
10579
|
isSlideDisplayed: isDisplayed,
|
|
@@ -10379,16 +10583,16 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10379
10583
|
ref: mergeRefs(groupRef, ref),
|
|
10380
10584
|
role: role,
|
|
10381
10585
|
className: classnames(className, handleBasicClasses({
|
|
10382
|
-
prefix: CLASSNAME$
|
|
10586
|
+
prefix: CLASSNAME$10
|
|
10383
10587
|
})),
|
|
10384
10588
|
"aria-roledescription": "slide",
|
|
10385
10589
|
"aria-label": label
|
|
10386
10590
|
}, forwardedProps), children);
|
|
10387
10591
|
});
|
|
10388
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
10389
|
-
SlideshowItemGroup.className = CLASSNAME$
|
|
10592
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$13;
|
|
10593
|
+
SlideshowItemGroup.className = CLASSNAME$10;
|
|
10390
10594
|
|
|
10391
|
-
const _excluded$
|
|
10595
|
+
const _excluded$16 = ["activeIndex", "autoPlay", "children", "className", "fillHeight", "groupBy", "interval", "onChange", "slideshowControlsProps", "theme", "id", "slidesId", "slideGroupLabel"];
|
|
10392
10596
|
|
|
10393
10597
|
/**
|
|
10394
10598
|
* Defines the props of the component.
|
|
@@ -10424,7 +10628,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10424
10628
|
slidesId,
|
|
10425
10629
|
slideGroupLabel
|
|
10426
10630
|
} = props,
|
|
10427
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10631
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$16);
|
|
10428
10632
|
// Number of slideshow items.
|
|
10429
10633
|
const itemsCount = React.Children.count(children);
|
|
10430
10634
|
const {
|
|
@@ -10506,7 +10710,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10506
10710
|
Slideshow.displayName = 'Slideshow';
|
|
10507
10711
|
Slideshow.defaultProps = DEFAULT_PROPS$P;
|
|
10508
10712
|
|
|
10509
|
-
const _excluded$
|
|
10713
|
+
const _excluded$17 = ["className", "children"];
|
|
10510
10714
|
|
|
10511
10715
|
/**
|
|
10512
10716
|
* Defines the props of the component.
|
|
@@ -10515,12 +10719,12 @@ const _excluded$14 = ["className", "children"];
|
|
|
10515
10719
|
/**
|
|
10516
10720
|
* Component display name.
|
|
10517
10721
|
*/
|
|
10518
|
-
const COMPONENT_NAME$
|
|
10722
|
+
const COMPONENT_NAME$14 = 'SlideshowItem';
|
|
10519
10723
|
|
|
10520
10724
|
/**
|
|
10521
10725
|
* Component default class name and class prefix.
|
|
10522
10726
|
*/
|
|
10523
|
-
const CLASSNAME$
|
|
10727
|
+
const CLASSNAME$11 = getRootClassName(COMPONENT_NAME$14);
|
|
10524
10728
|
|
|
10525
10729
|
/**
|
|
10526
10730
|
* SlideshowItem component.
|
|
@@ -10534,16 +10738,16 @@ const SlideshowItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10534
10738
|
className,
|
|
10535
10739
|
children
|
|
10536
10740
|
} = props,
|
|
10537
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10741
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$17);
|
|
10538
10742
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
10539
10743
|
ref: ref,
|
|
10540
10744
|
className: classnames(className, handleBasicClasses({
|
|
10541
|
-
prefix: CLASSNAME$
|
|
10745
|
+
prefix: CLASSNAME$11
|
|
10542
10746
|
}))
|
|
10543
10747
|
}, forwardedProps), children);
|
|
10544
10748
|
});
|
|
10545
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
10546
|
-
SlideshowItem.className = CLASSNAME$
|
|
10749
|
+
SlideshowItem.displayName = COMPONENT_NAME$14;
|
|
10750
|
+
SlideshowItem.className = CLASSNAME$11;
|
|
10547
10751
|
|
|
10548
10752
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
10549
10753
|
|
|
@@ -10602,7 +10806,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
10602
10806
|
}, [activeIndex, slideCount]);
|
|
10603
10807
|
}
|
|
10604
10808
|
|
|
10605
|
-
const _excluded$
|
|
10809
|
+
const _excluded$18 = ["activeIndex", "className", "nextButtonProps", "onNextClick", "onPaginationClick", "onPreviousClick", "parentRef", "previousButtonProps", "paginationProps", "slidesCount", "theme", "isAutoPlaying", "playButtonProps", "paginationItemLabel", "paginationItemProps"],
|
|
10606
10810
|
_excluded2$2 = ["className", "label"];
|
|
10607
10811
|
|
|
10608
10812
|
/**
|
|
@@ -10612,12 +10816,12 @@ const _excluded$15 = ["activeIndex", "className", "nextButtonProps", "onNextClic
|
|
|
10612
10816
|
/**
|
|
10613
10817
|
* Component display name.
|
|
10614
10818
|
*/
|
|
10615
|
-
const COMPONENT_NAME$
|
|
10819
|
+
const COMPONENT_NAME$15 = 'SlideshowControls';
|
|
10616
10820
|
|
|
10617
10821
|
/**
|
|
10618
10822
|
* Component default class name and class prefix.
|
|
10619
10823
|
*/
|
|
10620
|
-
const CLASSNAME
|
|
10824
|
+
const CLASSNAME$12 = getRootClassName(COMPONENT_NAME$15);
|
|
10621
10825
|
|
|
10622
10826
|
/**
|
|
10623
10827
|
* Component default props.
|
|
@@ -10652,7 +10856,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10652
10856
|
paginationItemLabel,
|
|
10653
10857
|
paginationItemProps
|
|
10654
10858
|
} = props,
|
|
10655
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10859
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$18);
|
|
10656
10860
|
let parent;
|
|
10657
10861
|
if (WINDOW) {
|
|
10658
10862
|
// Checking window object to avoid errors in SSR.
|
|
@@ -10689,22 +10893,22 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10689
10893
|
ref: ref
|
|
10690
10894
|
}, forwardedProps, {
|
|
10691
10895
|
className: classnames(className, handleBasicClasses({
|
|
10692
|
-
prefix: CLASSNAME
|
|
10896
|
+
prefix: CLASSNAME$12,
|
|
10693
10897
|
theme
|
|
10694
10898
|
}), {
|
|
10695
|
-
[`${CLASSNAME
|
|
10899
|
+
[`${CLASSNAME$12}--has-infinite-pagination`]: slidesCount > PAGINATION_ITEMS_MAX
|
|
10696
10900
|
})
|
|
10697
10901
|
}), /*#__PURE__*/React.createElement(IconButton, _extends({}, previousButtonProps, {
|
|
10698
10902
|
icon: mdiChevronLeft,
|
|
10699
|
-
className: `${CLASSNAME
|
|
10903
|
+
className: `${CLASSNAME$12}__navigation`,
|
|
10700
10904
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10701
10905
|
emphasis: Emphasis.low,
|
|
10702
10906
|
onClick: onPreviousClick
|
|
10703
10907
|
})), /*#__PURE__*/React.createElement("div", {
|
|
10704
10908
|
ref: paginationRef,
|
|
10705
|
-
className: `${CLASSNAME
|
|
10909
|
+
className: `${CLASSNAME$12}__pagination`
|
|
10706
10910
|
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
10707
|
-
className: `${CLASSNAME
|
|
10911
|
+
className: `${CLASSNAME$12}__pagination-items`,
|
|
10708
10912
|
style: wrapperStyle,
|
|
10709
10913
|
role: "tablist"
|
|
10710
10914
|
}, paginationProps), useMemo(() => range(slidesCount).map(index => {
|
|
@@ -10720,7 +10924,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10720
10924
|
const ariaLabel = label || (paginationItemLabel === null || paginationItemLabel === void 0 ? void 0 : paginationItemLabel(index)) || `${index + 1} / ${slidesCount}`;
|
|
10721
10925
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
10722
10926
|
className: classnames(handleBasicClasses({
|
|
10723
|
-
prefix: `${CLASSNAME
|
|
10927
|
+
prefix: `${CLASSNAME$12}__pagination-item`,
|
|
10724
10928
|
isActive,
|
|
10725
10929
|
isOnEdge,
|
|
10726
10930
|
isOutRange
|
|
@@ -10735,35 +10939,35 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10735
10939
|
}, itemProps));
|
|
10736
10940
|
}), [slidesCount, visibleRange.min, visibleRange.max, activeIndex, paginationItemProps, paginationItemLabel, onPaginationClick]))), playButtonProps ? /*#__PURE__*/React.createElement(IconButton, _extends({}, playButtonProps, {
|
|
10737
10941
|
icon: isAutoPlaying ? mdiPauseCircleOutline : mdiPlayCircleOutline,
|
|
10738
|
-
className: `${CLASSNAME
|
|
10942
|
+
className: `${CLASSNAME$12}__play`,
|
|
10739
10943
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10740
10944
|
emphasis: Emphasis.low
|
|
10741
10945
|
})) : null, /*#__PURE__*/React.createElement(IconButton, _extends({}, nextButtonProps, {
|
|
10742
10946
|
icon: mdiChevronRight,
|
|
10743
|
-
className: `${CLASSNAME
|
|
10947
|
+
className: `${CLASSNAME$12}__navigation`,
|
|
10744
10948
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10745
10949
|
emphasis: Emphasis.low,
|
|
10746
10950
|
onClick: onNextClick
|
|
10747
10951
|
})));
|
|
10748
10952
|
});
|
|
10749
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
10750
|
-
InternalSlideshowControls.className = CLASSNAME
|
|
10953
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$15;
|
|
10954
|
+
InternalSlideshowControls.className = CLASSNAME$12;
|
|
10751
10955
|
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$Q;
|
|
10752
10956
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
10753
10957
|
useSlideshowControls,
|
|
10754
10958
|
useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS$1
|
|
10755
10959
|
});
|
|
10756
10960
|
|
|
10757
|
-
const _excluded$
|
|
10961
|
+
const _excluded$19 = ["activeIndex", "id", "className", "theme", "fillHeight", "groupBy", "isAutoPlaying", "toggleAutoPlay", "slidesId", "children", "afterSlides", "hasControls", "slideGroupLabel"];
|
|
10758
10962
|
/**
|
|
10759
10963
|
* Component display name.
|
|
10760
10964
|
*/
|
|
10761
|
-
const COMPONENT_NAME$
|
|
10965
|
+
const COMPONENT_NAME$16 = 'Slideshow';
|
|
10762
10966
|
|
|
10763
10967
|
/**
|
|
10764
10968
|
* Component default class name and class prefix.
|
|
10765
10969
|
*/
|
|
10766
|
-
const CLASSNAME$
|
|
10970
|
+
const CLASSNAME$13 = getRootClassName(COMPONENT_NAME$16);
|
|
10767
10971
|
|
|
10768
10972
|
/**
|
|
10769
10973
|
* Slides component.
|
|
@@ -10788,7 +10992,7 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10788
10992
|
hasControls,
|
|
10789
10993
|
slideGroupLabel
|
|
10790
10994
|
} = props,
|
|
10791
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10995
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$19);
|
|
10792
10996
|
const wrapperRef = React.useRef(null);
|
|
10793
10997
|
const startIndexVisible = activeIndex;
|
|
10794
10998
|
const endIndexVisible = startIndexVisible + 1;
|
|
@@ -10806,22 +11010,22 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10806
11010
|
ref: ref
|
|
10807
11011
|
}, forwardedProps, {
|
|
10808
11012
|
className: classnames(className, handleBasicClasses({
|
|
10809
|
-
prefix: CLASSNAME$
|
|
11013
|
+
prefix: CLASSNAME$13,
|
|
10810
11014
|
theme
|
|
10811
11015
|
}), {
|
|
10812
|
-
[`${CLASSNAME$
|
|
10813
|
-
[`${CLASSNAME$
|
|
11016
|
+
[`${CLASSNAME$13}--fill-height`]: fillHeight,
|
|
11017
|
+
[`${CLASSNAME$13}--group-by-${groupBy}`]: Boolean(groupBy)
|
|
10814
11018
|
}),
|
|
10815
11019
|
"aria-roledescription": "carousel"
|
|
10816
11020
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10817
11021
|
id: slidesId,
|
|
10818
|
-
className: `${CLASSNAME$
|
|
11022
|
+
className: `${CLASSNAME$13}__slides`,
|
|
10819
11023
|
onMouseEnter: toggleAutoPlay,
|
|
10820
11024
|
onMouseLeave: toggleAutoPlay,
|
|
10821
11025
|
"aria-live": isAutoPlaying ? 'off' : 'polite'
|
|
10822
11026
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10823
11027
|
ref: wrapperRef,
|
|
10824
|
-
className: `${CLASSNAME$
|
|
11028
|
+
className: `${CLASSNAME$13}__wrapper`,
|
|
10825
11029
|
style: wrapperStyle
|
|
10826
11030
|
}, groups.map((group, index) => /*#__PURE__*/React.createElement(SlideshowItemGroup, {
|
|
10827
11031
|
key: index,
|
|
@@ -10831,10 +11035,10 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10831
11035
|
isDisplayed: index >= startIndexVisible && index < endIndexVisible
|
|
10832
11036
|
}, group)))), afterSlides);
|
|
10833
11037
|
});
|
|
10834
|
-
Slides.displayName = COMPONENT_NAME$
|
|
10835
|
-
Slides.className = CLASSNAME$
|
|
11038
|
+
Slides.displayName = COMPONENT_NAME$16;
|
|
11039
|
+
Slides.className = CLASSNAME$13;
|
|
10836
11040
|
|
|
10837
|
-
const _excluded$
|
|
11041
|
+
const _excluded$1a = ["checked", "children", "className", "disabled", "helper", "id", "isChecked", "isDisabled", "name", "onChange", "position", "theme", "value", "inputProps"];
|
|
10838
11042
|
|
|
10839
11043
|
/**
|
|
10840
11044
|
* Defines the props of the component.
|
|
@@ -10843,12 +11047,12 @@ const _excluded$17 = ["checked", "children", "className", "disabled", "helper",
|
|
|
10843
11047
|
/**
|
|
10844
11048
|
* Component display name.
|
|
10845
11049
|
*/
|
|
10846
|
-
const COMPONENT_NAME$
|
|
11050
|
+
const COMPONENT_NAME$17 = 'Switch';
|
|
10847
11051
|
|
|
10848
11052
|
/**
|
|
10849
11053
|
* Component default class name and class prefix.
|
|
10850
11054
|
*/
|
|
10851
|
-
const CLASSNAME$
|
|
11055
|
+
const CLASSNAME$14 = getRootClassName(COMPONENT_NAME$17);
|
|
10852
11056
|
|
|
10853
11057
|
/**
|
|
10854
11058
|
* Component default props.
|
|
@@ -10882,7 +11086,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10882
11086
|
value,
|
|
10883
11087
|
inputProps = {}
|
|
10884
11088
|
} = props,
|
|
10885
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11089
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1a);
|
|
10886
11090
|
const inputId = useMemo(() => id || `switch-${uid()}`, [id]);
|
|
10887
11091
|
const handleChange = event => {
|
|
10888
11092
|
if (onChange) {
|
|
@@ -10893,7 +11097,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10893
11097
|
ref: ref
|
|
10894
11098
|
}, forwardedProps, {
|
|
10895
11099
|
className: classnames(className, handleBasicClasses({
|
|
10896
|
-
prefix: CLASSNAME$
|
|
11100
|
+
prefix: CLASSNAME$14,
|
|
10897
11101
|
isChecked,
|
|
10898
11102
|
isDisabled,
|
|
10899
11103
|
position,
|
|
@@ -10902,12 +11106,12 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10902
11106
|
})),
|
|
10903
11107
|
"aria-disabled": isDisabled
|
|
10904
11108
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10905
|
-
className: `${CLASSNAME$
|
|
11109
|
+
className: `${CLASSNAME$14}__input-wrapper`
|
|
10906
11110
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
10907
11111
|
type: "checkbox",
|
|
10908
11112
|
role: "switch",
|
|
10909
11113
|
id: inputId,
|
|
10910
|
-
className: `${CLASSNAME$
|
|
11114
|
+
className: `${CLASSNAME$14}__input-native`,
|
|
10911
11115
|
name: name,
|
|
10912
11116
|
value: value,
|
|
10913
11117
|
disabled: isDisabled,
|
|
@@ -10916,28 +11120,28 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10916
11120
|
onChange: handleChange,
|
|
10917
11121
|
"aria-describedby": helper ? `${inputId}-helper` : undefined
|
|
10918
11122
|
}, inputProps)), /*#__PURE__*/React.createElement("div", {
|
|
10919
|
-
className: `${CLASSNAME$
|
|
11123
|
+
className: `${CLASSNAME$14}__input-placeholder`
|
|
10920
11124
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10921
|
-
className: `${CLASSNAME$
|
|
11125
|
+
className: `${CLASSNAME$14}__input-background`
|
|
10922
11126
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10923
|
-
className: `${CLASSNAME$
|
|
11127
|
+
className: `${CLASSNAME$14}__input-indicator`
|
|
10924
11128
|
}))), Children.count(children) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
10925
|
-
className: `${CLASSNAME$
|
|
11129
|
+
className: `${CLASSNAME$14}__content`
|
|
10926
11130
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
10927
11131
|
htmlFor: inputId,
|
|
10928
11132
|
theme: theme,
|
|
10929
|
-
className: `${CLASSNAME$
|
|
11133
|
+
className: `${CLASSNAME$14}__label`
|
|
10930
11134
|
}, children), !isEmpty(helper) && /*#__PURE__*/React.createElement(InputHelper, {
|
|
10931
11135
|
id: `${inputId}-helper`,
|
|
10932
11136
|
theme: theme,
|
|
10933
|
-
className: `${CLASSNAME$
|
|
11137
|
+
className: `${CLASSNAME$14}__helper`
|
|
10934
11138
|
}, helper)));
|
|
10935
11139
|
});
|
|
10936
|
-
Switch.displayName = COMPONENT_NAME$
|
|
10937
|
-
Switch.className = CLASSNAME$
|
|
11140
|
+
Switch.displayName = COMPONENT_NAME$17;
|
|
11141
|
+
Switch.className = CLASSNAME$14;
|
|
10938
11142
|
Switch.defaultProps = DEFAULT_PROPS$R;
|
|
10939
11143
|
|
|
10940
|
-
const _excluded$
|
|
11144
|
+
const _excluded$1b = ["children", "className", "hasBefore", "hasDividers", "theme"];
|
|
10941
11145
|
|
|
10942
11146
|
/**
|
|
10943
11147
|
* Defines the props of the component.
|
|
@@ -10946,12 +11150,12 @@ const _excluded$18 = ["children", "className", "hasBefore", "hasDividers", "them
|
|
|
10946
11150
|
/**
|
|
10947
11151
|
* Component display name.
|
|
10948
11152
|
*/
|
|
10949
|
-
const COMPONENT_NAME$
|
|
11153
|
+
const COMPONENT_NAME$18 = 'Table';
|
|
10950
11154
|
|
|
10951
11155
|
/**
|
|
10952
11156
|
* Component default class name and class prefix.
|
|
10953
11157
|
*/
|
|
10954
|
-
const CLASSNAME$
|
|
11158
|
+
const CLASSNAME$15 = getRootClassName(COMPONENT_NAME$18);
|
|
10955
11159
|
|
|
10956
11160
|
/**
|
|
10957
11161
|
* Component default props.
|
|
@@ -10975,23 +11179,23 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10975
11179
|
hasDividers,
|
|
10976
11180
|
theme
|
|
10977
11181
|
} = props,
|
|
10978
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11182
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1b);
|
|
10979
11183
|
return /*#__PURE__*/React.createElement("table", _extends({
|
|
10980
11184
|
ref: ref
|
|
10981
11185
|
}, forwardedProps, {
|
|
10982
11186
|
className: classnames(className, handleBasicClasses({
|
|
10983
|
-
prefix: CLASSNAME$
|
|
11187
|
+
prefix: CLASSNAME$15,
|
|
10984
11188
|
hasBefore,
|
|
10985
11189
|
hasDividers,
|
|
10986
11190
|
theme
|
|
10987
11191
|
}))
|
|
10988
11192
|
}), children);
|
|
10989
11193
|
});
|
|
10990
|
-
Table.displayName = COMPONENT_NAME$
|
|
10991
|
-
Table.className = CLASSNAME$
|
|
11194
|
+
Table.displayName = COMPONENT_NAME$18;
|
|
11195
|
+
Table.className = CLASSNAME$15;
|
|
10992
11196
|
Table.defaultProps = DEFAULT_PROPS$S;
|
|
10993
11197
|
|
|
10994
|
-
const _excluded$
|
|
11198
|
+
const _excluded$1c = ["children", "className"];
|
|
10995
11199
|
|
|
10996
11200
|
/**
|
|
10997
11201
|
* Defines the props of the component.
|
|
@@ -11000,12 +11204,12 @@ const _excluded$19 = ["children", "className"];
|
|
|
11000
11204
|
/**
|
|
11001
11205
|
* Component display name.
|
|
11002
11206
|
*/
|
|
11003
|
-
const COMPONENT_NAME$
|
|
11207
|
+
const COMPONENT_NAME$19 = 'TableBody';
|
|
11004
11208
|
|
|
11005
11209
|
/**
|
|
11006
11210
|
* Component default class name and class prefix.
|
|
11007
11211
|
*/
|
|
11008
|
-
const CLASSNAME$
|
|
11212
|
+
const CLASSNAME$16 = getRootClassName(COMPONENT_NAME$19, true);
|
|
11009
11213
|
|
|
11010
11214
|
/**
|
|
11011
11215
|
* TableBody component.
|
|
@@ -11019,19 +11223,19 @@ const TableBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11019
11223
|
children,
|
|
11020
11224
|
className
|
|
11021
11225
|
} = props,
|
|
11022
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11226
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1c);
|
|
11023
11227
|
return /*#__PURE__*/React.createElement("tbody", _extends({
|
|
11024
11228
|
ref: ref
|
|
11025
11229
|
}, forwardedProps, {
|
|
11026
11230
|
className: classnames(className, handleBasicClasses({
|
|
11027
|
-
prefix: CLASSNAME$
|
|
11231
|
+
prefix: CLASSNAME$16
|
|
11028
11232
|
}))
|
|
11029
11233
|
}), children);
|
|
11030
11234
|
});
|
|
11031
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
11032
|
-
TableBody.className = CLASSNAME$
|
|
11235
|
+
TableBody.displayName = COMPONENT_NAME$19;
|
|
11236
|
+
TableBody.className = CLASSNAME$16;
|
|
11033
11237
|
|
|
11034
|
-
const _excluded$
|
|
11238
|
+
const _excluded$1d = ["children", "className", "icon", "isSortable", "onHeaderClick", "sortOrder", "variant"];
|
|
11035
11239
|
|
|
11036
11240
|
/**
|
|
11037
11241
|
* Table head cell sort order.
|
|
@@ -11050,12 +11254,12 @@ const TableCellVariant = {
|
|
|
11050
11254
|
/**
|
|
11051
11255
|
* Component display name.
|
|
11052
11256
|
*/
|
|
11053
|
-
const COMPONENT_NAME$
|
|
11257
|
+
const COMPONENT_NAME$1a = 'TableCell';
|
|
11054
11258
|
|
|
11055
11259
|
/**
|
|
11056
11260
|
* Component default class name and class prefix.
|
|
11057
11261
|
*/
|
|
11058
|
-
const CLASSNAME$
|
|
11262
|
+
const CLASSNAME$17 = getRootClassName(COMPONENT_NAME$1a, true);
|
|
11059
11263
|
|
|
11060
11264
|
/**
|
|
11061
11265
|
* Component default props.
|
|
@@ -11081,7 +11285,7 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11081
11285
|
sortOrder,
|
|
11082
11286
|
variant
|
|
11083
11287
|
} = props,
|
|
11084
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11288
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1d);
|
|
11085
11289
|
|
|
11086
11290
|
/**
|
|
11087
11291
|
* Handle click on the ordered thead.
|
|
@@ -11095,43 +11299,43 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11095
11299
|
ref: ref
|
|
11096
11300
|
}, forwardedProps, {
|
|
11097
11301
|
className: classnames(handleBasicClasses({
|
|
11098
|
-
prefix: CLASSNAME$
|
|
11302
|
+
prefix: CLASSNAME$17,
|
|
11099
11303
|
isSortable
|
|
11100
|
-
}), className, `${CLASSNAME$
|
|
11101
|
-
[`${CLASSNAME$
|
|
11304
|
+
}), className, `${CLASSNAME$17}--head`, {
|
|
11305
|
+
[`${CLASSNAME$17}--is-sorted`]: isSortable && sortOrder
|
|
11102
11306
|
}),
|
|
11103
11307
|
tabIndex: isSortable && isFunction(onHeaderClick) ? 0 : -1,
|
|
11104
11308
|
onClick: handleOnHeaderClick,
|
|
11105
11309
|
onKeyDown: onEnterPressed(handleOnHeaderClick)
|
|
11106
11310
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11107
|
-
className: `${CLASSNAME$
|
|
11311
|
+
className: `${CLASSNAME$17}-wrapper`
|
|
11108
11312
|
}, icon && !isSortable && /*#__PURE__*/React.createElement(Icon, {
|
|
11109
|
-
className: `${CLASSNAME$
|
|
11313
|
+
className: `${CLASSNAME$17}-icon`,
|
|
11110
11314
|
icon: icon,
|
|
11111
11315
|
size: Size.xxs
|
|
11112
11316
|
}), isSortable && sortOrder === ThOrder.asc && /*#__PURE__*/React.createElement(Icon, {
|
|
11113
|
-
className: `${CLASSNAME$
|
|
11317
|
+
className: `${CLASSNAME$17}-icon`,
|
|
11114
11318
|
icon: mdiArrowUp,
|
|
11115
11319
|
size: Size.xxs
|
|
11116
11320
|
}), isSortable && sortOrder === ThOrder.desc && /*#__PURE__*/React.createElement(Icon, {
|
|
11117
|
-
className: `${CLASSNAME$
|
|
11321
|
+
className: `${CLASSNAME$17}-icon`,
|
|
11118
11322
|
icon: mdiArrowDown,
|
|
11119
11323
|
size: Size.xxs
|
|
11120
11324
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11121
|
-
className: `${CLASSNAME$
|
|
11325
|
+
className: `${CLASSNAME$17}-content`
|
|
11122
11326
|
}, children))), variant === TableCellVariant.body && /*#__PURE__*/React.createElement("td", _extends({}, forwardedProps, {
|
|
11123
11327
|
className: classnames(className, handleBasicClasses({
|
|
11124
|
-
prefix: CLASSNAME$
|
|
11125
|
-
}), `${CLASSNAME$
|
|
11328
|
+
prefix: CLASSNAME$17
|
|
11329
|
+
}), `${CLASSNAME$17}--body`)
|
|
11126
11330
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11127
|
-
className: `${CLASSNAME$
|
|
11331
|
+
className: `${CLASSNAME$17}-content`
|
|
11128
11332
|
}, children)));
|
|
11129
11333
|
});
|
|
11130
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
11131
|
-
TableCell.className = CLASSNAME$
|
|
11334
|
+
TableCell.displayName = COMPONENT_NAME$1a;
|
|
11335
|
+
TableCell.className = CLASSNAME$17;
|
|
11132
11336
|
TableCell.defaultProps = DEFAULT_PROPS$T;
|
|
11133
11337
|
|
|
11134
|
-
const _excluded$
|
|
11338
|
+
const _excluded$1e = ["children", "className"];
|
|
11135
11339
|
|
|
11136
11340
|
/**
|
|
11137
11341
|
* Defines the props of the component.
|
|
@@ -11140,12 +11344,12 @@ const _excluded$1b = ["children", "className"];
|
|
|
11140
11344
|
/**
|
|
11141
11345
|
* Component display name.
|
|
11142
11346
|
*/
|
|
11143
|
-
const COMPONENT_NAME$
|
|
11347
|
+
const COMPONENT_NAME$1b = 'TableHeader';
|
|
11144
11348
|
|
|
11145
11349
|
/**
|
|
11146
11350
|
* Component default class name and class prefix.
|
|
11147
11351
|
*/
|
|
11148
|
-
const CLASSNAME$
|
|
11352
|
+
const CLASSNAME$18 = getRootClassName(COMPONENT_NAME$1b, true);
|
|
11149
11353
|
|
|
11150
11354
|
/**
|
|
11151
11355
|
* Component default props.
|
|
@@ -11164,20 +11368,20 @@ const TableHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11164
11368
|
children,
|
|
11165
11369
|
className
|
|
11166
11370
|
} = props,
|
|
11167
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11371
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1e);
|
|
11168
11372
|
return /*#__PURE__*/React.createElement("thead", _extends({
|
|
11169
11373
|
ref: ref
|
|
11170
11374
|
}, forwardedProps, {
|
|
11171
11375
|
className: classnames(className, handleBasicClasses({
|
|
11172
|
-
prefix: CLASSNAME$
|
|
11376
|
+
prefix: CLASSNAME$18
|
|
11173
11377
|
}))
|
|
11174
11378
|
}), children);
|
|
11175
11379
|
});
|
|
11176
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
11177
|
-
TableHeader.className = CLASSNAME$
|
|
11380
|
+
TableHeader.displayName = COMPONENT_NAME$1b;
|
|
11381
|
+
TableHeader.className = CLASSNAME$18;
|
|
11178
11382
|
TableHeader.defaultProps = DEFAULT_PROPS$U;
|
|
11179
11383
|
|
|
11180
|
-
const _excluded$
|
|
11384
|
+
const _excluded$1f = ["children", "className", "disabled", "isClickable", "isDisabled", "isSelected"];
|
|
11181
11385
|
|
|
11182
11386
|
/**
|
|
11183
11387
|
* Defines the props of the component.
|
|
@@ -11186,12 +11390,12 @@ const _excluded$1c = ["children", "className", "disabled", "isClickable", "isDis
|
|
|
11186
11390
|
/**
|
|
11187
11391
|
* Component display name.
|
|
11188
11392
|
*/
|
|
11189
|
-
const COMPONENT_NAME$
|
|
11393
|
+
const COMPONENT_NAME$1c = 'TableRow';
|
|
11190
11394
|
|
|
11191
11395
|
/**
|
|
11192
11396
|
* Component default class name and class prefix.
|
|
11193
11397
|
*/
|
|
11194
|
-
const CLASSNAME$
|
|
11398
|
+
const CLASSNAME$19 = getRootClassName(COMPONENT_NAME$1c, true);
|
|
11195
11399
|
|
|
11196
11400
|
/**
|
|
11197
11401
|
* Component default props.
|
|
@@ -11214,7 +11418,7 @@ const TableRow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11214
11418
|
isDisabled = disabled,
|
|
11215
11419
|
isSelected
|
|
11216
11420
|
} = props,
|
|
11217
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11421
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1f);
|
|
11218
11422
|
return /*#__PURE__*/React.createElement("tr", _extends({
|
|
11219
11423
|
ref: ref,
|
|
11220
11424
|
tabIndex: isClickable && !isDisabled ? 0 : -1
|
|
@@ -11223,16 +11427,16 @@ const TableRow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11223
11427
|
isClickable: isClickable && !isDisabled,
|
|
11224
11428
|
isDisabled,
|
|
11225
11429
|
isSelected: isSelected && !isDisabled,
|
|
11226
|
-
prefix: CLASSNAME$
|
|
11430
|
+
prefix: CLASSNAME$19
|
|
11227
11431
|
})),
|
|
11228
11432
|
"aria-disabled": isDisabled
|
|
11229
11433
|
}), children);
|
|
11230
11434
|
});
|
|
11231
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
11232
|
-
TableRow.className = CLASSNAME$
|
|
11435
|
+
TableRow.displayName = COMPONENT_NAME$1c;
|
|
11436
|
+
TableRow.className = CLASSNAME$19;
|
|
11233
11437
|
TableRow.defaultProps = DEFAULT_PROPS$V;
|
|
11234
11438
|
|
|
11235
|
-
const _excluded$
|
|
11439
|
+
const _excluded$1g = ["children", "onChange"];
|
|
11236
11440
|
const DEFAULT_PROPS$W = {
|
|
11237
11441
|
isLazy: INIT_STATE.isLazy,
|
|
11238
11442
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
@@ -11252,7 +11456,7 @@ const TabProvider = props => {
|
|
|
11252
11456
|
children,
|
|
11253
11457
|
onChange
|
|
11254
11458
|
} = props,
|
|
11255
|
-
propState = _objectWithoutProperties(props, _excluded$
|
|
11459
|
+
propState = _objectWithoutProperties(props, _excluded$1g);
|
|
11256
11460
|
const [state, dispatch] = useReducer(reducer, INIT_STATE);
|
|
11257
11461
|
|
|
11258
11462
|
// On prop state change => dispatch update.
|
|
@@ -11280,7 +11484,7 @@ const TabProvider = props => {
|
|
|
11280
11484
|
};
|
|
11281
11485
|
TabProvider.defaultProps = DEFAULT_PROPS$W;
|
|
11282
11486
|
|
|
11283
|
-
const _excluded$
|
|
11487
|
+
const _excluded$1h = ["aria-label", "children", "className", "layout", "position", "theme"];
|
|
11284
11488
|
let TabListLayout;
|
|
11285
11489
|
|
|
11286
11490
|
/**
|
|
@@ -11293,12 +11497,12 @@ let TabListLayout;
|
|
|
11293
11497
|
/**
|
|
11294
11498
|
* Component display name.
|
|
11295
11499
|
*/
|
|
11296
|
-
const COMPONENT_NAME$
|
|
11500
|
+
const COMPONENT_NAME$1d = 'TabList';
|
|
11297
11501
|
|
|
11298
11502
|
/**
|
|
11299
11503
|
* Component default class name and class prefix.
|
|
11300
11504
|
*/
|
|
11301
|
-
const CLASSNAME$
|
|
11505
|
+
const CLASSNAME$1a = `${CSS_PREFIX}-tabs`;
|
|
11302
11506
|
|
|
11303
11507
|
/**
|
|
11304
11508
|
* Component default props.
|
|
@@ -11327,7 +11531,7 @@ const TabList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11327
11531
|
position,
|
|
11328
11532
|
theme
|
|
11329
11533
|
} = props,
|
|
11330
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11534
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1h);
|
|
11331
11535
|
const tabListRef = React.useRef(null);
|
|
11332
11536
|
useRovingTabIndex({
|
|
11333
11537
|
parentRef: tabListRef,
|
|
@@ -11339,22 +11543,22 @@ const TabList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11339
11543
|
ref: mergeRefs(ref, tabListRef)
|
|
11340
11544
|
}, forwardedProps, {
|
|
11341
11545
|
className: classnames(className, handleBasicClasses({
|
|
11342
|
-
prefix: CLASSNAME$
|
|
11546
|
+
prefix: CLASSNAME$1a,
|
|
11343
11547
|
layout,
|
|
11344
11548
|
position,
|
|
11345
11549
|
theme
|
|
11346
11550
|
}))
|
|
11347
11551
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11348
|
-
className: `${CLASSNAME$
|
|
11552
|
+
className: `${CLASSNAME$1a}__links`,
|
|
11349
11553
|
role: "tablist",
|
|
11350
11554
|
"aria-label": ariaLabel
|
|
11351
11555
|
}, children));
|
|
11352
11556
|
});
|
|
11353
|
-
TabList.displayName = COMPONENT_NAME$
|
|
11354
|
-
TabList.className = CLASSNAME$
|
|
11557
|
+
TabList.displayName = COMPONENT_NAME$1d;
|
|
11558
|
+
TabList.className = CLASSNAME$1a;
|
|
11355
11559
|
TabList.defaultProps = DEFAULT_PROPS$X;
|
|
11356
11560
|
|
|
11357
|
-
const _excluded$
|
|
11561
|
+
const _excluded$1i = ["className", "disabled", "icon", "id", "isActive", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
|
|
11358
11562
|
|
|
11359
11563
|
/**
|
|
11360
11564
|
* Defines the props of the component.
|
|
@@ -11363,12 +11567,12 @@ const _excluded$1f = ["className", "disabled", "icon", "id", "isActive", "isDisa
|
|
|
11363
11567
|
/**
|
|
11364
11568
|
* Component display name.
|
|
11365
11569
|
*/
|
|
11366
|
-
const COMPONENT_NAME$
|
|
11570
|
+
const COMPONENT_NAME$1e = 'Tab';
|
|
11367
11571
|
|
|
11368
11572
|
/**
|
|
11369
11573
|
* Component default class name and class prefix.
|
|
11370
11574
|
*/
|
|
11371
|
-
const CLASSNAME$
|
|
11575
|
+
const CLASSNAME$1b = `${CSS_PREFIX}-tabs__link`;
|
|
11372
11576
|
|
|
11373
11577
|
/**
|
|
11374
11578
|
* Component default props.
|
|
@@ -11397,7 +11601,7 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11397
11601
|
onKeyPress,
|
|
11398
11602
|
tabIndex = -1
|
|
11399
11603
|
} = props,
|
|
11400
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11604
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1i);
|
|
11401
11605
|
const state = useTabProviderContext('tab', id);
|
|
11402
11606
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
11403
11607
|
const changeToCurrentTab = useCallback(() => {
|
|
@@ -11425,7 +11629,7 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11425
11629
|
type: "button",
|
|
11426
11630
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
11427
11631
|
className: classnames(className, handleBasicClasses({
|
|
11428
|
-
prefix: CLASSNAME$
|
|
11632
|
+
prefix: CLASSNAME$1b,
|
|
11429
11633
|
isActive,
|
|
11430
11634
|
isDisabled
|
|
11431
11635
|
})),
|
|
@@ -11442,11 +11646,11 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11442
11646
|
size: Size.xs
|
|
11443
11647
|
}), label && /*#__PURE__*/React.createElement("span", null, label));
|
|
11444
11648
|
});
|
|
11445
|
-
Tab.displayName = COMPONENT_NAME$
|
|
11446
|
-
Tab.className = CLASSNAME$
|
|
11649
|
+
Tab.displayName = COMPONENT_NAME$1e;
|
|
11650
|
+
Tab.className = CLASSNAME$1b;
|
|
11447
11651
|
Tab.defaultProps = DEFAULT_PROPS$Y;
|
|
11448
11652
|
|
|
11449
|
-
const _excluded$
|
|
11653
|
+
const _excluded$1j = ["children", "id", "className", "isActive"];
|
|
11450
11654
|
|
|
11451
11655
|
/**
|
|
11452
11656
|
* Defines the props of the component.
|
|
@@ -11455,12 +11659,12 @@ const _excluded$1g = ["children", "id", "className", "isActive"];
|
|
|
11455
11659
|
/**
|
|
11456
11660
|
* Component display name.
|
|
11457
11661
|
*/
|
|
11458
|
-
const COMPONENT_NAME$
|
|
11662
|
+
const COMPONENT_NAME$1f = 'TabPanel';
|
|
11459
11663
|
|
|
11460
11664
|
/**
|
|
11461
11665
|
* Component default class name and class prefix.
|
|
11462
11666
|
*/
|
|
11463
|
-
const CLASSNAME$
|
|
11667
|
+
const CLASSNAME$1c = `${CSS_PREFIX}-tab-panel`;
|
|
11464
11668
|
|
|
11465
11669
|
/**
|
|
11466
11670
|
* Component default props.
|
|
@@ -11483,7 +11687,7 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11483
11687
|
className,
|
|
11484
11688
|
isActive: propIsActive
|
|
11485
11689
|
} = props,
|
|
11486
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11690
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1j);
|
|
11487
11691
|
const state = useTabProviderContext('tabPanel', id);
|
|
11488
11692
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
11489
11693
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -11491,7 +11695,7 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11491
11695
|
}, forwardedProps, {
|
|
11492
11696
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
11493
11697
|
className: classnames(className, handleBasicClasses({
|
|
11494
|
-
prefix: CLASSNAME$
|
|
11698
|
+
prefix: CLASSNAME$1c,
|
|
11495
11699
|
isActive
|
|
11496
11700
|
})),
|
|
11497
11701
|
role: "tabpanel",
|
|
@@ -11499,11 +11703,11 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11499
11703
|
"aria-labelledby": state === null || state === void 0 ? void 0 : state.tabId
|
|
11500
11704
|
}), (!(state !== null && state !== void 0 && state.isLazy) || isActive) && children);
|
|
11501
11705
|
});
|
|
11502
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
11503
|
-
TabPanel.className = CLASSNAME$
|
|
11706
|
+
TabPanel.displayName = COMPONENT_NAME$1f;
|
|
11707
|
+
TabPanel.className = CLASSNAME$1c;
|
|
11504
11708
|
TabPanel.defaultProps = DEFAULT_PROPS$Z;
|
|
11505
11709
|
|
|
11506
|
-
const _excluded$
|
|
11710
|
+
const _excluded$1k = ["id", "isDisabled", "isRequired", "placeholder", "multiline", "value", "setFocus", "onChange", "onFocus", "onBlur", "inputRef", "rows", "recomputeNumberOfRows", "type", "name"],
|
|
11507
11711
|
_excluded2$3 = ["chips", "className", "clearButtonProps", "disabled", "error", "forceFocusStyle", "hasError", "helper", "icon", "id", "inputRef", "isDisabled", "isRequired", "isValid", "label", "maxLength", "minimumRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "textFieldRef", "theme", "type", "value", "afterElement"];
|
|
11508
11712
|
|
|
11509
11713
|
/**
|
|
@@ -11513,12 +11717,12 @@ const _excluded$1h = ["id", "isDisabled", "isRequired", "placeholder", "multilin
|
|
|
11513
11717
|
/**
|
|
11514
11718
|
* Component display name.
|
|
11515
11719
|
*/
|
|
11516
|
-
const COMPONENT_NAME$
|
|
11720
|
+
const COMPONENT_NAME$1g = 'TextField';
|
|
11517
11721
|
|
|
11518
11722
|
/**
|
|
11519
11723
|
* Component default class name and class prefix.
|
|
11520
11724
|
*/
|
|
11521
|
-
const CLASSNAME$
|
|
11725
|
+
const CLASSNAME$1d = getRootClassName(COMPONENT_NAME$1g);
|
|
11522
11726
|
|
|
11523
11727
|
/**
|
|
11524
11728
|
* Default minimum number of rows in the multiline mode.
|
|
@@ -11586,7 +11790,7 @@ const renderInputNative = props => {
|
|
|
11586
11790
|
type,
|
|
11587
11791
|
name
|
|
11588
11792
|
} = props,
|
|
11589
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11793
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1k);
|
|
11590
11794
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11591
11795
|
const ref = useRef(null);
|
|
11592
11796
|
|
|
@@ -11611,7 +11815,7 @@ const renderInputNative = props => {
|
|
|
11611
11815
|
const Component = multiline ? 'textarea' : 'input';
|
|
11612
11816
|
const inputProps = _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
11613
11817
|
id,
|
|
11614
|
-
className: multiline ? `${CLASSNAME$
|
|
11818
|
+
className: multiline ? `${CLASSNAME$1d}__input-native ${CLASSNAME$1d}__input-native--textarea` : `${CLASSNAME$1d}__input-native ${CLASSNAME$1d}__input-native--text`,
|
|
11615
11819
|
placeholder,
|
|
11616
11820
|
value,
|
|
11617
11821
|
name,
|
|
@@ -11705,31 +11909,31 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11705
11909
|
isDisabled,
|
|
11706
11910
|
isFocus: isFocus || forceFocusStyle,
|
|
11707
11911
|
isValid,
|
|
11708
|
-
prefix: CLASSNAME$
|
|
11912
|
+
prefix: CLASSNAME$1d,
|
|
11709
11913
|
theme
|
|
11710
11914
|
}))
|
|
11711
11915
|
}, (label || maxLength) && /*#__PURE__*/React.createElement("div", {
|
|
11712
|
-
className: `${CLASSNAME$
|
|
11916
|
+
className: `${CLASSNAME$1d}__header`
|
|
11713
11917
|
}, label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
11714
11918
|
htmlFor: textFieldId,
|
|
11715
|
-
className: `${CLASSNAME$
|
|
11919
|
+
className: `${CLASSNAME$1d}__label`,
|
|
11716
11920
|
isRequired: isRequired,
|
|
11717
11921
|
theme: theme
|
|
11718
11922
|
}, label), maxLength && /*#__PURE__*/React.createElement("div", {
|
|
11719
|
-
className: `${CLASSNAME$
|
|
11923
|
+
className: `${CLASSNAME$1d}__char-counter`
|
|
11720
11924
|
}, /*#__PURE__*/React.createElement("span", null, maxLength - valueLength), maxLength - valueLength === 0 && /*#__PURE__*/React.createElement(Icon, {
|
|
11721
11925
|
icon: mdiAlertCircle,
|
|
11722
11926
|
size: Size.xxs
|
|
11723
11927
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
11724
|
-
className: `${CLASSNAME$
|
|
11928
|
+
className: `${CLASSNAME$1d}__wrapper`,
|
|
11725
11929
|
ref: textFieldRef
|
|
11726
11930
|
}, icon && /*#__PURE__*/React.createElement(Icon, {
|
|
11727
|
-
className: `${CLASSNAME$
|
|
11931
|
+
className: `${CLASSNAME$1d}__input-icon`,
|
|
11728
11932
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11729
11933
|
icon: icon,
|
|
11730
11934
|
size: Size.xs
|
|
11731
11935
|
}), chips && /*#__PURE__*/React.createElement("div", {
|
|
11732
|
-
className: `${CLASSNAME$
|
|
11936
|
+
className: `${CLASSNAME$1d}__chips`
|
|
11733
11937
|
}, chips, renderInputNative(_objectSpread2({
|
|
11734
11938
|
id: textFieldId,
|
|
11735
11939
|
inputRef,
|
|
@@ -11748,7 +11952,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11748
11952
|
value,
|
|
11749
11953
|
name
|
|
11750
11954
|
}, forwardedProps))), !chips && /*#__PURE__*/React.createElement("div", {
|
|
11751
|
-
className: `${CLASSNAME$
|
|
11955
|
+
className: `${CLASSNAME$1d}__input-wrapper`
|
|
11752
11956
|
}, renderInputNative(_objectSpread2({
|
|
11753
11957
|
id: textFieldId,
|
|
11754
11958
|
inputRef,
|
|
@@ -11767,12 +11971,12 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11767
11971
|
value,
|
|
11768
11972
|
name
|
|
11769
11973
|
}, forwardedProps))), (isValid || hasError) && /*#__PURE__*/React.createElement(Icon, {
|
|
11770
|
-
className: `${CLASSNAME$
|
|
11974
|
+
className: `${CLASSNAME$1d}__input-validity`,
|
|
11771
11975
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11772
11976
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
11773
11977
|
size: Size.xxs
|
|
11774
11978
|
}), clearButtonProps && isNotEmpty && /*#__PURE__*/React.createElement(IconButton, _extends({}, clearButtonProps, {
|
|
11775
|
-
className: `${CLASSNAME$
|
|
11979
|
+
className: `${CLASSNAME$1d}__input-clear`,
|
|
11776
11980
|
icon: mdiCloseCircle,
|
|
11777
11981
|
emphasis: Emphasis.low,
|
|
11778
11982
|
size: Size.s,
|
|
@@ -11780,18 +11984,18 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11780
11984
|
onClick: onClear,
|
|
11781
11985
|
type: "button"
|
|
11782
11986
|
})), afterElement && /*#__PURE__*/React.createElement("div", {
|
|
11783
|
-
className: `${CLASSNAME$
|
|
11987
|
+
className: `${CLASSNAME$1d}__after-element`
|
|
11784
11988
|
}, afterElement)), hasError && error && /*#__PURE__*/React.createElement(InputHelper, {
|
|
11785
|
-
className: `${CLASSNAME$
|
|
11989
|
+
className: `${CLASSNAME$1d}__helper`,
|
|
11786
11990
|
kind: Kind.error,
|
|
11787
11991
|
theme: theme
|
|
11788
11992
|
}, error), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
11789
|
-
className: `${CLASSNAME$
|
|
11993
|
+
className: `${CLASSNAME$1d}__helper`,
|
|
11790
11994
|
theme: theme
|
|
11791
11995
|
}, helper));
|
|
11792
11996
|
});
|
|
11793
|
-
TextField.displayName = COMPONENT_NAME$
|
|
11794
|
-
TextField.className = CLASSNAME$
|
|
11997
|
+
TextField.displayName = COMPONENT_NAME$1g;
|
|
11998
|
+
TextField.className = CLASSNAME$1d;
|
|
11795
11999
|
TextField.defaultProps = DEFAULT_PROPS$_;
|
|
11796
12000
|
|
|
11797
12001
|
function getState(img, event) {
|
|
@@ -11936,16 +12140,16 @@ const useFocusPointStyle = (_ref2, element, isLoaded) => {
|
|
|
11936
12140
|
return style;
|
|
11937
12141
|
};
|
|
11938
12142
|
|
|
11939
|
-
const _excluded$
|
|
12143
|
+
const _excluded$1l = ["align", "alt", "aspectRatio", "badge", "className", "crossOrigin", "fallback", "fillHeight", "focusPoint", "image", "imgProps", "imgRef", "isLoading", "loading", "size", "theme", "variant", "linkProps", "linkAs"];
|
|
11940
12144
|
/**
|
|
11941
12145
|
* Component display name.
|
|
11942
12146
|
*/
|
|
11943
|
-
const COMPONENT_NAME$
|
|
12147
|
+
const COMPONENT_NAME$1h = 'Thumbnail';
|
|
11944
12148
|
|
|
11945
12149
|
/**
|
|
11946
12150
|
* Component default class name and class prefix.
|
|
11947
12151
|
*/
|
|
11948
|
-
const CLASSNAME$
|
|
12152
|
+
const CLASSNAME$1e = getRootClassName(COMPONENT_NAME$1h);
|
|
11949
12153
|
|
|
11950
12154
|
/**
|
|
11951
12155
|
* Component default props.
|
|
@@ -11987,7 +12191,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11987
12191
|
linkProps,
|
|
11988
12192
|
linkAs
|
|
11989
12193
|
} = props,
|
|
11990
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12194
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1l);
|
|
11991
12195
|
const [imgElement, setImgElement] = useState();
|
|
11992
12196
|
|
|
11993
12197
|
// Image loading state.
|
|
@@ -12026,7 +12230,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12026
12230
|
className: classnames(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, className, handleBasicClasses({
|
|
12027
12231
|
align,
|
|
12028
12232
|
aspectRatio,
|
|
12029
|
-
prefix: CLASSNAME$
|
|
12233
|
+
prefix: CLASSNAME$1e,
|
|
12030
12234
|
size,
|
|
12031
12235
|
theme,
|
|
12032
12236
|
variant,
|
|
@@ -12036,14 +12240,14 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12036
12240
|
hasCustomErrorFallback,
|
|
12037
12241
|
isLoading,
|
|
12038
12242
|
hasBadge: !!badge
|
|
12039
|
-
}), fillHeight && `${CLASSNAME$
|
|
12243
|
+
}), fillHeight && `${CLASSNAME$1e}--fill-height`)
|
|
12040
12244
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12041
|
-
className: `${CLASSNAME$
|
|
12245
|
+
className: `${CLASSNAME$1e}__background`
|
|
12042
12246
|
}, /*#__PURE__*/React.createElement("img", _extends({}, imgProps, {
|
|
12043
12247
|
style: _objectSpread2(_objectSpread2(_objectSpread2({}, imgProps === null || imgProps === void 0 ? void 0 : imgProps.style), imageErrorStyle), focusPointStyle),
|
|
12044
12248
|
ref: mergeRefs(setImgElement, propImgRef),
|
|
12045
12249
|
className: classnames(handleBasicClasses({
|
|
12046
|
-
prefix: `${CLASSNAME$
|
|
12250
|
+
prefix: `${CLASSNAME$1e}__image`,
|
|
12047
12251
|
isLoading,
|
|
12048
12252
|
hasDefinedSize: Boolean((imgProps === null || imgProps === void 0 ? void 0 : imgProps.height) && imgProps.width)
|
|
12049
12253
|
}), imgProps === null || imgProps === void 0 ? void 0 : imgProps.className),
|
|
@@ -12052,17 +12256,17 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12052
12256
|
alt: alt,
|
|
12053
12257
|
loading: loading
|
|
12054
12258
|
})), !isLoading && hasError && /*#__PURE__*/React.createElement("div", {
|
|
12055
|
-
className: `${CLASSNAME$
|
|
12259
|
+
className: `${CLASSNAME$1e}__fallback`
|
|
12056
12260
|
}, hasIconErrorFallback ? /*#__PURE__*/React.createElement(Icon, {
|
|
12057
12261
|
icon: fallback,
|
|
12058
12262
|
size: Size.xxs,
|
|
12059
12263
|
theme: theme
|
|
12060
12264
|
}) : fallback)), badge && /*#__PURE__*/React.cloneElement(badge, {
|
|
12061
|
-
className: classnames(`${CLASSNAME$
|
|
12265
|
+
className: classnames(`${CLASSNAME$1e}__badge`, badge.props.className)
|
|
12062
12266
|
}));
|
|
12063
12267
|
});
|
|
12064
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
12065
|
-
Thumbnail.className = CLASSNAME$
|
|
12268
|
+
Thumbnail.displayName = COMPONENT_NAME$1h;
|
|
12269
|
+
Thumbnail.className = CLASSNAME$1e;
|
|
12066
12270
|
Thumbnail.defaultProps = DEFAULT_PROPS$$;
|
|
12067
12271
|
|
|
12068
12272
|
/**
|
|
@@ -12083,7 +12287,7 @@ const ThumbnailVariant = {
|
|
|
12083
12287
|
rounded: 'rounded'
|
|
12084
12288
|
};
|
|
12085
12289
|
|
|
12086
|
-
const _excluded$
|
|
12290
|
+
const _excluded$1m = ["after", "before", "className", "label"];
|
|
12087
12291
|
|
|
12088
12292
|
/**
|
|
12089
12293
|
* Defines the props of the component.
|
|
@@ -12092,12 +12296,12 @@ const _excluded$1j = ["after", "before", "className", "label"];
|
|
|
12092
12296
|
/**
|
|
12093
12297
|
* Component display name.
|
|
12094
12298
|
*/
|
|
12095
|
-
const COMPONENT_NAME$
|
|
12299
|
+
const COMPONENT_NAME$1i = 'Toolbar';
|
|
12096
12300
|
|
|
12097
12301
|
/**
|
|
12098
12302
|
* Component default class name and class prefix.
|
|
12099
12303
|
*/
|
|
12100
|
-
const CLASSNAME$
|
|
12304
|
+
const CLASSNAME$1f = getRootClassName(COMPONENT_NAME$1i);
|
|
12101
12305
|
|
|
12102
12306
|
/**
|
|
12103
12307
|
* Component default props.
|
|
@@ -12118,7 +12322,7 @@ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12118
12322
|
className,
|
|
12119
12323
|
label
|
|
12120
12324
|
} = props,
|
|
12121
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12325
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1m);
|
|
12122
12326
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12123
12327
|
ref: ref
|
|
12124
12328
|
}, forwardedProps, {
|
|
@@ -12126,18 +12330,18 @@ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12126
12330
|
hasAfter: Boolean(after),
|
|
12127
12331
|
hasBefore: Boolean(before),
|
|
12128
12332
|
hasLabel: Boolean(label),
|
|
12129
|
-
prefix: CLASSNAME$
|
|
12333
|
+
prefix: CLASSNAME$1f
|
|
12130
12334
|
}))
|
|
12131
12335
|
}), before && /*#__PURE__*/React.createElement("div", {
|
|
12132
|
-
className: `${CLASSNAME$
|
|
12336
|
+
className: `${CLASSNAME$1f}__before`
|
|
12133
12337
|
}, before), label && /*#__PURE__*/React.createElement("div", {
|
|
12134
|
-
className: `${CLASSNAME$
|
|
12338
|
+
className: `${CLASSNAME$1f}__label`
|
|
12135
12339
|
}, label), after && /*#__PURE__*/React.createElement("div", {
|
|
12136
|
-
className: `${CLASSNAME$
|
|
12340
|
+
className: `${CLASSNAME$1f}__after`
|
|
12137
12341
|
}, after));
|
|
12138
12342
|
});
|
|
12139
|
-
Toolbar.displayName = COMPONENT_NAME$
|
|
12140
|
-
Toolbar.className = CLASSNAME$
|
|
12343
|
+
Toolbar.displayName = COMPONENT_NAME$1i;
|
|
12344
|
+
Toolbar.className = CLASSNAME$1f;
|
|
12141
12345
|
Toolbar.defaultProps = DEFAULT_PROPS$10;
|
|
12142
12346
|
|
|
12143
12347
|
/**
|
|
@@ -12272,19 +12476,19 @@ function useTooltipOpen(delay, anchorElement) {
|
|
|
12272
12476
|
return isOpen;
|
|
12273
12477
|
}
|
|
12274
12478
|
|
|
12275
|
-
const _excluded$
|
|
12479
|
+
const _excluded$1n = ["label", "children", "className", "delay", "placement", "forceOpen"];
|
|
12276
12480
|
|
|
12277
12481
|
/** Position of the tooltip relative to the anchor element. */
|
|
12278
12482
|
|
|
12279
12483
|
/**
|
|
12280
12484
|
* Component display name.
|
|
12281
12485
|
*/
|
|
12282
|
-
const COMPONENT_NAME$
|
|
12486
|
+
const COMPONENT_NAME$1j = 'Tooltip';
|
|
12283
12487
|
|
|
12284
12488
|
/**
|
|
12285
12489
|
* Component default class name and class prefix.
|
|
12286
12490
|
*/
|
|
12287
|
-
const CLASSNAME$
|
|
12491
|
+
const CLASSNAME$1g = getRootClassName(COMPONENT_NAME$1j);
|
|
12288
12492
|
|
|
12289
12493
|
/**
|
|
12290
12494
|
* Component default props.
|
|
@@ -12315,7 +12519,7 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12315
12519
|
placement,
|
|
12316
12520
|
forceOpen
|
|
12317
12521
|
} = props,
|
|
12318
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12522
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1n);
|
|
12319
12523
|
// Disable in SSR or without a label.
|
|
12320
12524
|
if (!DOCUMENT || !label) {
|
|
12321
12525
|
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
@@ -12345,23 +12549,23 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12345
12549
|
role: "tooltip",
|
|
12346
12550
|
"aria-label": label,
|
|
12347
12551
|
className: classnames(className, handleBasicClasses({
|
|
12348
|
-
prefix: CLASSNAME$
|
|
12552
|
+
prefix: CLASSNAME$1g,
|
|
12349
12553
|
position
|
|
12350
12554
|
})),
|
|
12351
12555
|
style: styles.popper
|
|
12352
12556
|
}, attributes.popper), /*#__PURE__*/React.createElement("div", {
|
|
12353
|
-
className: `${CLASSNAME$
|
|
12557
|
+
className: `${CLASSNAME$1g}__arrow`
|
|
12354
12558
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12355
|
-
className: `${CLASSNAME$
|
|
12559
|
+
className: `${CLASSNAME$1g}__inner`
|
|
12356
12560
|
}, label.indexOf('\n') !== -1 ? label.split('\n').map(sentence => /*#__PURE__*/React.createElement("p", {
|
|
12357
12561
|
key: sentence
|
|
12358
12562
|
}, sentence)) : label)), document.body));
|
|
12359
12563
|
});
|
|
12360
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
12361
|
-
Tooltip.className = CLASSNAME$
|
|
12564
|
+
Tooltip.displayName = COMPONENT_NAME$1j;
|
|
12565
|
+
Tooltip.className = CLASSNAME$1g;
|
|
12362
12566
|
Tooltip.defaultProps = DEFAULT_PROPS$11;
|
|
12363
12567
|
|
|
12364
|
-
const _excluded$
|
|
12568
|
+
const _excluded$1o = ["aspectRatio", "className", "label", "icon", "size", "theme", "variant"];
|
|
12365
12569
|
|
|
12366
12570
|
/**
|
|
12367
12571
|
* Uploader variants.
|
|
@@ -12374,12 +12578,12 @@ const UploaderVariant = {
|
|
|
12374
12578
|
/**
|
|
12375
12579
|
* Component display name.
|
|
12376
12580
|
*/
|
|
12377
|
-
const COMPONENT_NAME$
|
|
12581
|
+
const COMPONENT_NAME$1k = 'Uploader';
|
|
12378
12582
|
|
|
12379
12583
|
/**
|
|
12380
12584
|
* Component default class name and class prefix.
|
|
12381
12585
|
*/
|
|
12382
|
-
const CLASSNAME$
|
|
12586
|
+
const CLASSNAME$1h = getRootClassName(COMPONENT_NAME$1k);
|
|
12383
12587
|
|
|
12384
12588
|
/**
|
|
12385
12589
|
* Component default props.
|
|
@@ -12408,7 +12612,7 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12408
12612
|
theme,
|
|
12409
12613
|
variant
|
|
12410
12614
|
} = props,
|
|
12411
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12615
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1o);
|
|
12412
12616
|
// Adjust to square aspect ratio when using circle variants.
|
|
12413
12617
|
const adjustedAspectRatio = variant === UploaderVariant.circle ? AspectRatio.square : aspectRatio;
|
|
12414
12618
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -12416,38 +12620,38 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12416
12620
|
}, forwardedProps, {
|
|
12417
12621
|
className: classnames(className, handleBasicClasses({
|
|
12418
12622
|
aspectRatio: adjustedAspectRatio,
|
|
12419
|
-
prefix: CLASSNAME$
|
|
12623
|
+
prefix: CLASSNAME$1h,
|
|
12420
12624
|
size,
|
|
12421
12625
|
theme,
|
|
12422
12626
|
variant
|
|
12423
12627
|
}))
|
|
12424
12628
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12425
|
-
className: `${CLASSNAME$
|
|
12629
|
+
className: `${CLASSNAME$1h}__background`
|
|
12426
12630
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12427
|
-
className: `${CLASSNAME$
|
|
12631
|
+
className: `${CLASSNAME$1h}__wrapper`
|
|
12428
12632
|
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
12429
|
-
className: `${CLASSNAME$
|
|
12633
|
+
className: `${CLASSNAME$1h}__icon`
|
|
12430
12634
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
12431
12635
|
icon: icon,
|
|
12432
12636
|
size: Size.s
|
|
12433
12637
|
})), label && /*#__PURE__*/React.createElement("span", {
|
|
12434
|
-
className: `${CLASSNAME$
|
|
12638
|
+
className: `${CLASSNAME$1h}__label`
|
|
12435
12639
|
}, label)));
|
|
12436
12640
|
});
|
|
12437
|
-
Uploader.displayName = COMPONENT_NAME$
|
|
12438
|
-
Uploader.className = CLASSNAME$
|
|
12641
|
+
Uploader.displayName = COMPONENT_NAME$1k;
|
|
12642
|
+
Uploader.className = CLASSNAME$1h;
|
|
12439
12643
|
Uploader.defaultProps = DEFAULT_PROPS$12;
|
|
12440
12644
|
|
|
12441
|
-
const _excluded$
|
|
12645
|
+
const _excluded$1p = ["avatarProps", "className", "fields", "linkProps", "linkAs", "multipleActions", "name", "nameProps", "onClick", "onMouseEnter", "onMouseLeave", "orientation", "simpleAction", "size", "theme"];
|
|
12442
12646
|
/**
|
|
12443
12647
|
* Component display name.
|
|
12444
12648
|
*/
|
|
12445
|
-
const COMPONENT_NAME$
|
|
12649
|
+
const COMPONENT_NAME$1l = 'UserBlock';
|
|
12446
12650
|
|
|
12447
12651
|
/**
|
|
12448
12652
|
* Component default class name and class prefix.
|
|
12449
12653
|
*/
|
|
12450
|
-
const CLASSNAME$
|
|
12654
|
+
const CLASSNAME$1i = getRootClassName(COMPONENT_NAME$1l);
|
|
12451
12655
|
|
|
12452
12656
|
/**
|
|
12453
12657
|
* Component default props.
|
|
@@ -12483,7 +12687,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12483
12687
|
size,
|
|
12484
12688
|
theme
|
|
12485
12689
|
} = props,
|
|
12486
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12690
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1p);
|
|
12487
12691
|
let componentSize = size;
|
|
12488
12692
|
|
|
12489
12693
|
// Special case - When using vertical orientation force the size to be Sizes.l.
|
|
@@ -12499,7 +12703,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12499
12703
|
}
|
|
12500
12704
|
let NameComponent = 'span';
|
|
12501
12705
|
const nProps = _objectSpread2(_objectSpread2({}, nameProps), {}, {
|
|
12502
|
-
className: classnames(`${CLASSNAME$
|
|
12706
|
+
className: classnames(`${CLASSNAME$1i}__name`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, nameProps === null || nameProps === void 0 ? void 0 : nameProps.className)
|
|
12503
12707
|
});
|
|
12504
12708
|
if (isClickable) {
|
|
12505
12709
|
NameComponent = Link;
|
|
@@ -12516,16 +12720,16 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12516
12720
|
return /*#__PURE__*/React.createElement(NameComponent, nProps, name);
|
|
12517
12721
|
}, [avatarProps, isClickable, linkAs, linkProps, name, nameProps, onClick]);
|
|
12518
12722
|
const fieldsBlock = fields && componentSize !== Size.s && /*#__PURE__*/React.createElement("div", {
|
|
12519
|
-
className: `${CLASSNAME$
|
|
12723
|
+
className: `${CLASSNAME$1i}__fields`
|
|
12520
12724
|
}, fields.map((field, idx) => /*#__PURE__*/React.createElement("span", {
|
|
12521
12725
|
key: idx,
|
|
12522
|
-
className: `${CLASSNAME$
|
|
12726
|
+
className: `${CLASSNAME$1i}__field`
|
|
12523
12727
|
}, field)));
|
|
12524
12728
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12525
12729
|
ref: ref
|
|
12526
12730
|
}, forwardedProps, {
|
|
12527
12731
|
className: classnames(className, handleBasicClasses({
|
|
12528
|
-
prefix: CLASSNAME$
|
|
12732
|
+
prefix: CLASSNAME$1i,
|
|
12529
12733
|
orientation,
|
|
12530
12734
|
size: componentSize,
|
|
12531
12735
|
theme,
|
|
@@ -12538,21 +12742,21 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12538
12742
|
linkProps: linkProps,
|
|
12539
12743
|
alt: ""
|
|
12540
12744
|
}, avatarProps, {
|
|
12541
|
-
className: classnames(`${CLASSNAME$
|
|
12745
|
+
className: classnames(`${CLASSNAME$1i}__avatar`, avatarProps.className),
|
|
12542
12746
|
size: componentSize,
|
|
12543
12747
|
onClick: onClick,
|
|
12544
12748
|
theme: theme
|
|
12545
12749
|
})), (fields || name) && /*#__PURE__*/React.createElement("div", {
|
|
12546
|
-
className: `${CLASSNAME$
|
|
12750
|
+
className: `${CLASSNAME$1i}__wrapper`
|
|
12547
12751
|
}, nameBlock, fieldsBlock), shouldDisplayActions && simpleAction && /*#__PURE__*/React.createElement("div", {
|
|
12548
|
-
className: `${CLASSNAME$
|
|
12752
|
+
className: `${CLASSNAME$1i}__action`
|
|
12549
12753
|
}, simpleAction), shouldDisplayActions && multipleActions && /*#__PURE__*/React.createElement("div", {
|
|
12550
|
-
className: `${CLASSNAME$
|
|
12754
|
+
className: `${CLASSNAME$1i}__actions`
|
|
12551
12755
|
}, multipleActions));
|
|
12552
12756
|
});
|
|
12553
|
-
UserBlock.displayName = COMPONENT_NAME$
|
|
12554
|
-
UserBlock.className = CLASSNAME$
|
|
12757
|
+
UserBlock.displayName = COMPONENT_NAME$1l;
|
|
12758
|
+
UserBlock.className = CLASSNAME$1i;
|
|
12555
12759
|
UserBlock.defaultProps = DEFAULT_PROPS$13;
|
|
12556
12760
|
|
|
12557
|
-
export { AlertDialog, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, Avatar, Badge, Button, ButtonEmphasis, ButtonGroup, Checkbox, Chip, ChipGroup, ColorPalette, ColorVariant, CommentBlock, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, Emphasis, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, InlineList, InputHelper, InputLabel, Kind, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Notification, Orientation, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, Select, SelectMultiple, SelectMultipleField, SelectVariant, SideNavigation, SideNavigationItem, Size, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, Theme, Thumbnail, ThumbnailAspectRatio, ThumbnailVariant, Toolbar, Tooltip, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel };
|
|
12761
|
+
export { AlertDialog, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, Avatar, Badge, Button, ButtonEmphasis, ButtonGroup, Checkbox, Chip, ChipGroup, ColorPalette, ColorVariant, CommentBlock, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, Emphasis, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, InlineList, InputHelper, InputLabel, Kind, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Navigation, Notification, Orientation, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, Select, SelectMultiple, SelectMultipleField, SelectVariant, SideNavigation, SideNavigationItem, Size, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, Theme, Thumbnail, ThumbnailAspectRatio, ThumbnailVariant, Toolbar, Tooltip, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel };
|
|
12558
12762
|
//# sourceMappingURL=index.js.map
|