@lumx/react 3.1.5 → 3.2.1-alpha.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 +45 -4
- package/index.js +632 -423
- 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 +131 -293
- package/src/components/dialog/Dialog.test.tsx +0 -32
- 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/Popover.tsx +7 -9
- 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/select/SelectMultiple.stories.tsx +105 -2
- package/src/components/select/WithSelectContext.tsx +10 -4
- 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/hooks/useFocusTrap.ts +2 -2
- 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 -558
- 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 -1133
- 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
|
@@ -2282,11 +2282,15 @@ function useFocusTrap(focusZoneElement, focusElement) {
|
|
|
2282
2282
|
// SETUP:
|
|
2283
2283
|
if (focusElement && focusZoneElement.contains(focusElement)) {
|
|
2284
2284
|
// Focus the given element.
|
|
2285
|
-
focusElement.focus(
|
|
2285
|
+
focusElement.focus({
|
|
2286
|
+
preventScroll: true
|
|
2287
|
+
});
|
|
2286
2288
|
} else {
|
|
2287
2289
|
var _getFirstAndLastFocus;
|
|
2288
2290
|
// Focus the first focusable element in the zone.
|
|
2289
|
-
(_getFirstAndLastFocus = getFirstAndLastFocusable(focusZoneElement).first) === null || _getFirstAndLastFocus === void 0 ? void 0 : _getFirstAndLastFocus.focus(
|
|
2291
|
+
(_getFirstAndLastFocus = getFirstAndLastFocusable(focusZoneElement).first) === null || _getFirstAndLastFocus === void 0 ? void 0 : _getFirstAndLastFocus.focus({
|
|
2292
|
+
preventScroll: true
|
|
2293
|
+
});
|
|
2290
2294
|
}
|
|
2291
2295
|
FOCUS_TRAPS.register(focusTrap);
|
|
2292
2296
|
|
|
@@ -6198,18 +6202,19 @@ const _InnerPopover = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6198
6202
|
* unless specifically requested not to.
|
|
6199
6203
|
*/
|
|
6200
6204
|
if (isFocusedWithin.current && focusAnchorOnClose) {
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
const firstFocusable = (anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current) && getFirstAndLastFocusable(anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current).first;
|
|
6205
|
-
if (firstFocusable) {
|
|
6205
|
+
var _elementToFocus;
|
|
6206
|
+
let elementToFocus = parentElement === null || parentElement === void 0 ? void 0 : parentElement.current;
|
|
6207
|
+
if (!elementToFocus && anchorRef !== null && anchorRef !== void 0 && anchorRef.current) {
|
|
6206
6208
|
// Focus the first focusable element in anchor.
|
|
6207
|
-
|
|
6208
|
-
}
|
|
6209
|
-
|
|
6209
|
+
elementToFocus = getFirstAndLastFocusable(anchorRef.current).first;
|
|
6210
|
+
}
|
|
6211
|
+
if (!elementToFocus) {
|
|
6210
6212
|
// Fallback on the anchor element.
|
|
6211
|
-
anchorRef === null || anchorRef === void 0 ? void 0 :
|
|
6213
|
+
elementToFocus = anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current;
|
|
6212
6214
|
}
|
|
6215
|
+
(_elementToFocus = elementToFocus) === null || _elementToFocus === void 0 ? void 0 : _elementToFocus.focus({
|
|
6216
|
+
preventScroll: true
|
|
6217
|
+
});
|
|
6213
6218
|
}
|
|
6214
6219
|
onClose();
|
|
6215
6220
|
}, [anchorRef, focusAnchorOnClose, onClose, parentElement]);
|
|
@@ -7983,6 +7988,204 @@ Mosaic.displayName = COMPONENT_NAME$H;
|
|
|
7983
7988
|
Mosaic.className = CLASSNAME$E;
|
|
7984
7989
|
Mosaic.defaultProps = DEFAULT_PROPS$v;
|
|
7985
7990
|
|
|
7991
|
+
const ThemeContext = /*#__PURE__*/createContext(undefined);
|
|
7992
|
+
|
|
7993
|
+
/** Same as `React.forwardRef` but inferring Ref type from the `as` prop. */
|
|
7994
|
+
function forwardRefPolymorphic(render) {
|
|
7995
|
+
return /*#__PURE__*/React.forwardRef(render);
|
|
7996
|
+
}
|
|
7997
|
+
|
|
7998
|
+
const _excluded$J = ["className", "icon", "label", "isCurrentPage", "as"];
|
|
7999
|
+
/**
|
|
8000
|
+
* Component display name.
|
|
8001
|
+
*/
|
|
8002
|
+
const COMPONENT_NAME$I = 'NavigationItem';
|
|
8003
|
+
|
|
8004
|
+
/**
|
|
8005
|
+
* Component default class name and class prefix.
|
|
8006
|
+
*/
|
|
8007
|
+
const CLASSNAME$F = getRootClassName(COMPONENT_NAME$I);
|
|
8008
|
+
const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
8009
|
+
const {
|
|
8010
|
+
className,
|
|
8011
|
+
icon,
|
|
8012
|
+
label,
|
|
8013
|
+
isCurrentPage,
|
|
8014
|
+
as: Element = 'a'
|
|
8015
|
+
} = props,
|
|
8016
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$J);
|
|
8017
|
+
const theme = useContext(ThemeContext);
|
|
8018
|
+
const [labelElement, setLabelElement] = useState(null);
|
|
8019
|
+
const tooltipLabel = typeof label === 'string' && labelElement && labelElement.offsetWidth < labelElement.scrollWidth ? label : null;
|
|
8020
|
+
const buttonProps = Element === 'button' ? {
|
|
8021
|
+
type: 'button'
|
|
8022
|
+
} : {};
|
|
8023
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8024
|
+
className: classnames(className, handleBasicClasses({
|
|
8025
|
+
prefix: CLASSNAME$F,
|
|
8026
|
+
theme
|
|
8027
|
+
}))
|
|
8028
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
8029
|
+
label: tooltipLabel,
|
|
8030
|
+
placement: Placement.TOP
|
|
8031
|
+
}, /*#__PURE__*/React.createElement(Element, _extends({
|
|
8032
|
+
className: handleBasicClasses({
|
|
8033
|
+
prefix: `${CLASSNAME$F}__link`,
|
|
8034
|
+
isSelected: isCurrentPage
|
|
8035
|
+
}),
|
|
8036
|
+
ref: ref,
|
|
8037
|
+
"aria-current": isCurrentPage ? 'page' : undefined
|
|
8038
|
+
}, buttonProps, forwardedProps), icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
8039
|
+
className: `${CLASSNAME$F}__icon`,
|
|
8040
|
+
icon: icon,
|
|
8041
|
+
size: Size.xs,
|
|
8042
|
+
theme: theme
|
|
8043
|
+
}) : null, /*#__PURE__*/React.createElement(Text, {
|
|
8044
|
+
as: "span",
|
|
8045
|
+
truncate: true,
|
|
8046
|
+
className: `${CLASSNAME$F}__label`,
|
|
8047
|
+
ref: setLabelElement
|
|
8048
|
+
}, label))));
|
|
8049
|
+
}), {
|
|
8050
|
+
displayName: COMPONENT_NAME$I,
|
|
8051
|
+
className: CLASSNAME$F
|
|
8052
|
+
});
|
|
8053
|
+
|
|
8054
|
+
const NavigationContext = /*#__PURE__*/createContext({
|
|
8055
|
+
orientation: Orientation.vertical
|
|
8056
|
+
});
|
|
8057
|
+
|
|
8058
|
+
const _excluded$K = ["children", "className", "label", "icon"];
|
|
8059
|
+
/**
|
|
8060
|
+
* Component display name.
|
|
8061
|
+
*/
|
|
8062
|
+
const COMPONENT_NAME$J = 'NavigationSection';
|
|
8063
|
+
|
|
8064
|
+
/**
|
|
8065
|
+
* Component default class name and class prefix.
|
|
8066
|
+
*/
|
|
8067
|
+
const CLASSNAME$G = getRootClassName(COMPONENT_NAME$J);
|
|
8068
|
+
const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) => {
|
|
8069
|
+
const {
|
|
8070
|
+
children,
|
|
8071
|
+
className,
|
|
8072
|
+
label,
|
|
8073
|
+
icon
|
|
8074
|
+
} = props,
|
|
8075
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$K);
|
|
8076
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
8077
|
+
const buttonRef = useRef(null);
|
|
8078
|
+
const sectionId = useMemo(() => uniqueId('section'), []);
|
|
8079
|
+
const {
|
|
8080
|
+
orientation
|
|
8081
|
+
} = useContext(NavigationContext) || {};
|
|
8082
|
+
const theme = useContext(ThemeContext);
|
|
8083
|
+
const isDropdown = orientation === Orientation.horizontal;
|
|
8084
|
+
return /*#__PURE__*/React.createElement("li", _extends({
|
|
8085
|
+
className: classnames(className, CLASSNAME$G, CLASSNAME$F, handleBasicClasses({
|
|
8086
|
+
prefix: CLASSNAME$F,
|
|
8087
|
+
theme
|
|
8088
|
+
})),
|
|
8089
|
+
ref: ref
|
|
8090
|
+
}, forwardedProps), /*#__PURE__*/React.createElement("button", {
|
|
8091
|
+
"aria-controls": sectionId,
|
|
8092
|
+
"aria-expanded": isOpen,
|
|
8093
|
+
className: classnames(`${CLASSNAME$F}__link`),
|
|
8094
|
+
ref: buttonRef,
|
|
8095
|
+
onClick: event => {
|
|
8096
|
+
setIsOpen(!isOpen);
|
|
8097
|
+
event.stopPropagation();
|
|
8098
|
+
},
|
|
8099
|
+
type: "button"
|
|
8100
|
+
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
8101
|
+
className: `${CLASSNAME$F}__icon`,
|
|
8102
|
+
icon: icon,
|
|
8103
|
+
size: Size.xs
|
|
8104
|
+
}) : null, /*#__PURE__*/React.createElement(Text, {
|
|
8105
|
+
as: "span",
|
|
8106
|
+
truncate: true,
|
|
8107
|
+
className: `${CLASSNAME$F}__label`,
|
|
8108
|
+
ref: ref
|
|
8109
|
+
}, label), /*#__PURE__*/React.createElement(Icon, {
|
|
8110
|
+
className: classnames(`${CLASSNAME$F}__icon`, `${CLASSNAME$G}__chevron`),
|
|
8111
|
+
icon: isOpen ? mdiChevronUp : mdiChevronDown
|
|
8112
|
+
})), isOpen && (isDropdown ? /*#__PURE__*/React.createElement(Popover, {
|
|
8113
|
+
anchorRef: buttonRef,
|
|
8114
|
+
isOpen: isOpen,
|
|
8115
|
+
placement: Placement.BOTTOM_START,
|
|
8116
|
+
usePortal: false,
|
|
8117
|
+
closeOnClickAway: true,
|
|
8118
|
+
closeOnEscape: true,
|
|
8119
|
+
onClick: () => setIsOpen(false),
|
|
8120
|
+
onClose: () => setIsOpen(false),
|
|
8121
|
+
zIndex: 996
|
|
8122
|
+
}, /*#__PURE__*/React.createElement(ThemeContext.Provider, {
|
|
8123
|
+
value: Theme.light
|
|
8124
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
8125
|
+
className: `${CLASSNAME$G}__drawer--popover`,
|
|
8126
|
+
id: sectionId
|
|
8127
|
+
}, /*#__PURE__*/React.createElement(NavigationContext.Provider, {
|
|
8128
|
+
value: {
|
|
8129
|
+
orientation: Orientation.vertical
|
|
8130
|
+
}
|
|
8131
|
+
}, children)))) : /*#__PURE__*/React.createElement("ul", {
|
|
8132
|
+
className: `${CLASSNAME$G}__drawer`,
|
|
8133
|
+
id: sectionId
|
|
8134
|
+
}, children)));
|
|
8135
|
+
}), {
|
|
8136
|
+
displayName: COMPONENT_NAME$J,
|
|
8137
|
+
className: CLASSNAME$G
|
|
8138
|
+
});
|
|
8139
|
+
|
|
8140
|
+
const _excluded$L = ["children", "className", "theme", "orientation"];
|
|
8141
|
+
/**
|
|
8142
|
+
* Component display name.
|
|
8143
|
+
*/
|
|
8144
|
+
const COMPONENT_NAME$K = 'Navigation';
|
|
8145
|
+
|
|
8146
|
+
/**
|
|
8147
|
+
* Component default class name and class prefix.
|
|
8148
|
+
*/
|
|
8149
|
+
const CLASSNAME$H = getRootClassName(COMPONENT_NAME$K);
|
|
8150
|
+
const Navigation = Object.assign(
|
|
8151
|
+
/*#__PURE__*/
|
|
8152
|
+
// eslint-disable-next-line react/display-name
|
|
8153
|
+
forwardRef((props, ref) => {
|
|
8154
|
+
const {
|
|
8155
|
+
children,
|
|
8156
|
+
className,
|
|
8157
|
+
theme,
|
|
8158
|
+
orientation
|
|
8159
|
+
} = props,
|
|
8160
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$L);
|
|
8161
|
+
return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
|
|
8162
|
+
value: theme
|
|
8163
|
+
}, /*#__PURE__*/React.createElement("nav", _extends({
|
|
8164
|
+
className: classnames(className, handleBasicClasses({
|
|
8165
|
+
prefix: CLASSNAME$H,
|
|
8166
|
+
theme,
|
|
8167
|
+
orientation
|
|
8168
|
+
})),
|
|
8169
|
+
ref: ref
|
|
8170
|
+
}, forwardedProps), /*#__PURE__*/React.createElement(NavigationContext.Provider, {
|
|
8171
|
+
value: {
|
|
8172
|
+
orientation
|
|
8173
|
+
}
|
|
8174
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
8175
|
+
className: `${CLASSNAME$H}__list`
|
|
8176
|
+
}, children))));
|
|
8177
|
+
}), {
|
|
8178
|
+
displayName: COMPONENT_NAME$K,
|
|
8179
|
+
className: CLASSNAME$H,
|
|
8180
|
+
defaultProps: {
|
|
8181
|
+
theme: Theme.light,
|
|
8182
|
+
orientation: Orientation.vertical
|
|
8183
|
+
},
|
|
8184
|
+
// Sub components
|
|
8185
|
+
Section: NavigationSection,
|
|
8186
|
+
Item: NavigationItem
|
|
8187
|
+
});
|
|
8188
|
+
|
|
7986
8189
|
/**
|
|
7987
8190
|
* Notification icon and colors according to their type.
|
|
7988
8191
|
*/
|
|
@@ -8005,7 +8208,7 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
8005
8208
|
}
|
|
8006
8209
|
};
|
|
8007
8210
|
|
|
8008
|
-
const _excluded$
|
|
8211
|
+
const _excluded$M = ["actionLabel", "className", "content", "isOpen", "onActionClick", "onClick", "theme", "type", "zIndex"];
|
|
8009
8212
|
|
|
8010
8213
|
/**
|
|
8011
8214
|
* Defines the props of the component.
|
|
@@ -8014,12 +8217,12 @@ const _excluded$J = ["actionLabel", "className", "content", "isOpen", "onActionC
|
|
|
8014
8217
|
/**
|
|
8015
8218
|
* Component display name.
|
|
8016
8219
|
*/
|
|
8017
|
-
const COMPONENT_NAME$
|
|
8220
|
+
const COMPONENT_NAME$L = 'Notification';
|
|
8018
8221
|
|
|
8019
8222
|
/**
|
|
8020
8223
|
* Component default class name and class prefix.
|
|
8021
8224
|
*/
|
|
8022
|
-
const CLASSNAME$
|
|
8225
|
+
const CLASSNAME$I = getRootClassName(COMPONENT_NAME$L);
|
|
8023
8226
|
|
|
8024
8227
|
/**
|
|
8025
8228
|
* Component default props.
|
|
@@ -8049,7 +8252,7 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8049
8252
|
type,
|
|
8050
8253
|
zIndex
|
|
8051
8254
|
} = props,
|
|
8052
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8255
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$M);
|
|
8053
8256
|
if (!DOCUMENT) {
|
|
8054
8257
|
// Can't render in SSR.
|
|
8055
8258
|
return null;
|
|
@@ -8078,32 +8281,32 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8078
8281
|
color,
|
|
8079
8282
|
hasAction,
|
|
8080
8283
|
isHidden: !isOpen,
|
|
8081
|
-
prefix: CLASSNAME$
|
|
8284
|
+
prefix: CLASSNAME$I
|
|
8082
8285
|
})),
|
|
8083
8286
|
onClick: onClick,
|
|
8084
8287
|
style: {
|
|
8085
8288
|
zIndex
|
|
8086
8289
|
}
|
|
8087
8290
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8088
|
-
className: `${CLASSNAME$
|
|
8291
|
+
className: `${CLASSNAME$I}__icon`
|
|
8089
8292
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8090
8293
|
icon: icon,
|
|
8091
8294
|
size: Size.s
|
|
8092
8295
|
})), /*#__PURE__*/React.createElement("div", {
|
|
8093
|
-
className: `${CLASSNAME$
|
|
8296
|
+
className: `${CLASSNAME$I}__content`
|
|
8094
8297
|
}, content), hasAction && /*#__PURE__*/React.createElement("div", {
|
|
8095
|
-
className: `${CLASSNAME$
|
|
8298
|
+
className: `${CLASSNAME$I}__action`
|
|
8096
8299
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
8097
8300
|
emphasis: Emphasis.medium,
|
|
8098
8301
|
theme: theme,
|
|
8099
8302
|
onClick: handleCallback
|
|
8100
8303
|
}, /*#__PURE__*/React.createElement("span", null, actionLabel)))), document.body) : null;
|
|
8101
8304
|
});
|
|
8102
|
-
Notification.displayName = COMPONENT_NAME$
|
|
8103
|
-
Notification.className = CLASSNAME$
|
|
8305
|
+
Notification.displayName = COMPONENT_NAME$L;
|
|
8306
|
+
Notification.className = CLASSNAME$I;
|
|
8104
8307
|
Notification.defaultProps = DEFAULT_PROPS$w;
|
|
8105
8308
|
|
|
8106
|
-
const _excluded$
|
|
8309
|
+
const _excluded$N = ["children", "isOpen", "focusElement", "label", "className"];
|
|
8107
8310
|
|
|
8108
8311
|
/**
|
|
8109
8312
|
* PopoverDialog props.
|
|
@@ -8113,12 +8316,12 @@ const _excluded$K = ["children", "isOpen", "focusElement", "label", "className"]
|
|
|
8113
8316
|
/**
|
|
8114
8317
|
* Component display name.
|
|
8115
8318
|
*/
|
|
8116
|
-
const COMPONENT_NAME$
|
|
8319
|
+
const COMPONENT_NAME$M = 'PopoverDialog';
|
|
8117
8320
|
|
|
8118
8321
|
/**
|
|
8119
8322
|
* Component default class name and class prefix.
|
|
8120
8323
|
*/
|
|
8121
|
-
const CLASSNAME$
|
|
8324
|
+
const CLASSNAME$J = getRootClassName(COMPONENT_NAME$M);
|
|
8122
8325
|
|
|
8123
8326
|
/**
|
|
8124
8327
|
* Component default props.
|
|
@@ -8140,11 +8343,11 @@ const PopoverDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8140
8343
|
label,
|
|
8141
8344
|
className
|
|
8142
8345
|
} = props,
|
|
8143
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8346
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$N);
|
|
8144
8347
|
return /*#__PURE__*/React.createElement(Popover, _extends({}, forwardedProps, {
|
|
8145
8348
|
ref: ref,
|
|
8146
8349
|
className: classnames(className, handleBasicClasses({
|
|
8147
|
-
prefix: CLASSNAME$
|
|
8350
|
+
prefix: CLASSNAME$J
|
|
8148
8351
|
})),
|
|
8149
8352
|
role: "dialog",
|
|
8150
8353
|
"aria-modal": "true"
|
|
@@ -8160,11 +8363,11 @@ const PopoverDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8160
8363
|
withFocusTrap: true
|
|
8161
8364
|
}), children);
|
|
8162
8365
|
});
|
|
8163
|
-
PopoverDialog.displayName = COMPONENT_NAME$
|
|
8164
|
-
PopoverDialog.className = CLASSNAME$
|
|
8366
|
+
PopoverDialog.displayName = COMPONENT_NAME$M;
|
|
8367
|
+
PopoverDialog.className = CLASSNAME$J;
|
|
8165
8368
|
PopoverDialog.defaultProps = DEFAULT_PROPS$x;
|
|
8166
8369
|
|
|
8167
|
-
const _excluded$
|
|
8370
|
+
const _excluded$O = ["actions", "attachments", "author", "className", "meta", "onClick", "orientation", "tags", "text", "theme", "thumbnailProps", "title"];
|
|
8168
8371
|
|
|
8169
8372
|
/**
|
|
8170
8373
|
* Defines the props of the component.
|
|
@@ -8173,12 +8376,12 @@ const _excluded$L = ["actions", "attachments", "author", "className", "meta", "o
|
|
|
8173
8376
|
/**
|
|
8174
8377
|
* Component display name.
|
|
8175
8378
|
*/
|
|
8176
|
-
const COMPONENT_NAME$
|
|
8379
|
+
const COMPONENT_NAME$N = 'PostBlock';
|
|
8177
8380
|
|
|
8178
8381
|
/**
|
|
8179
8382
|
* Component default class name and class prefix.
|
|
8180
8383
|
*/
|
|
8181
|
-
const CLASSNAME$
|
|
8384
|
+
const CLASSNAME$K = getRootClassName(COMPONENT_NAME$N);
|
|
8182
8385
|
|
|
8183
8386
|
/**
|
|
8184
8387
|
* Component default props.
|
|
@@ -8210,61 +8413,61 @@ const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8210
8413
|
thumbnailProps,
|
|
8211
8414
|
title
|
|
8212
8415
|
} = props,
|
|
8213
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8416
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$O);
|
|
8214
8417
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8215
8418
|
ref: ref,
|
|
8216
8419
|
className: classnames(className, handleBasicClasses({
|
|
8217
|
-
prefix: CLASSNAME$
|
|
8420
|
+
prefix: CLASSNAME$K,
|
|
8218
8421
|
orientation,
|
|
8219
8422
|
theme
|
|
8220
8423
|
}))
|
|
8221
8424
|
}, forwardedProps), thumbnailProps && /*#__PURE__*/React.createElement("div", {
|
|
8222
|
-
className: `${CLASSNAME$
|
|
8425
|
+
className: `${CLASSNAME$K}__thumbnail`
|
|
8223
8426
|
}, /*#__PURE__*/React.createElement(Thumbnail, _extends({}, thumbnailProps, {
|
|
8224
8427
|
theme: theme,
|
|
8225
8428
|
variant: ThumbnailVariant.rounded
|
|
8226
8429
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
8227
|
-
className: `${CLASSNAME$
|
|
8430
|
+
className: `${CLASSNAME$K}__wrapper`
|
|
8228
8431
|
}, author && /*#__PURE__*/React.createElement("div", {
|
|
8229
|
-
className: `${CLASSNAME$
|
|
8432
|
+
className: `${CLASSNAME$K}__author`
|
|
8230
8433
|
}, author), title && /*#__PURE__*/React.createElement("button", {
|
|
8231
8434
|
type: "button",
|
|
8232
|
-
className: `${CLASSNAME$
|
|
8435
|
+
className: `${CLASSNAME$K}__title`,
|
|
8233
8436
|
onClick: onClick
|
|
8234
8437
|
}, title), meta && /*#__PURE__*/React.createElement("span", {
|
|
8235
|
-
className: `${CLASSNAME$
|
|
8438
|
+
className: `${CLASSNAME$K}__meta`
|
|
8236
8439
|
}, meta), isObject(text) && text.__html ?
|
|
8237
8440
|
/*#__PURE__*/
|
|
8238
8441
|
// eslint-disable-next-line react/no-danger
|
|
8239
8442
|
React.createElement("p", {
|
|
8240
8443
|
dangerouslySetInnerHTML: text,
|
|
8241
|
-
className: `${CLASSNAME$
|
|
8444
|
+
className: `${CLASSNAME$K}__text`
|
|
8242
8445
|
}) : /*#__PURE__*/React.createElement("p", {
|
|
8243
|
-
className: `${CLASSNAME$
|
|
8446
|
+
className: `${CLASSNAME$K}__text`
|
|
8244
8447
|
}, text), attachments && /*#__PURE__*/React.createElement("div", {
|
|
8245
|
-
className: `${CLASSNAME$
|
|
8448
|
+
className: `${CLASSNAME$K}__attachments`
|
|
8246
8449
|
}, attachments), (tags || actions) && /*#__PURE__*/React.createElement("div", {
|
|
8247
|
-
className: `${CLASSNAME$
|
|
8450
|
+
className: `${CLASSNAME$K}__toolbar`
|
|
8248
8451
|
}, tags && /*#__PURE__*/React.createElement("div", {
|
|
8249
|
-
className: `${CLASSNAME$
|
|
8452
|
+
className: `${CLASSNAME$K}__tags`
|
|
8250
8453
|
}, tags), actions && /*#__PURE__*/React.createElement("div", {
|
|
8251
|
-
className: `${CLASSNAME$
|
|
8454
|
+
className: `${CLASSNAME$K}__actions`
|
|
8252
8455
|
}, actions))));
|
|
8253
8456
|
});
|
|
8254
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
8255
|
-
PostBlock.className = CLASSNAME$
|
|
8457
|
+
PostBlock.displayName = COMPONENT_NAME$N;
|
|
8458
|
+
PostBlock.className = CLASSNAME$K;
|
|
8256
8459
|
PostBlock.defaultProps = DEFAULT_PROPS$y;
|
|
8257
8460
|
|
|
8258
|
-
const _excluded$
|
|
8461
|
+
const _excluded$P = ["className", "theme"];
|
|
8259
8462
|
/**
|
|
8260
8463
|
* Component display name.
|
|
8261
8464
|
*/
|
|
8262
|
-
const COMPONENT_NAME$
|
|
8465
|
+
const COMPONENT_NAME$O = 'ProgressLinear';
|
|
8263
8466
|
|
|
8264
8467
|
/**
|
|
8265
8468
|
* Component default class name and class prefix.
|
|
8266
8469
|
*/
|
|
8267
|
-
const CLASSNAME$
|
|
8470
|
+
const CLASSNAME$L = getRootClassName(COMPONENT_NAME$O);
|
|
8268
8471
|
|
|
8269
8472
|
/**
|
|
8270
8473
|
* Component default props.
|
|
@@ -8285,12 +8488,12 @@ const ProgressLinear = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8285
8488
|
className,
|
|
8286
8489
|
theme
|
|
8287
8490
|
} = props,
|
|
8288
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8491
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$P);
|
|
8289
8492
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8290
8493
|
ref: ref
|
|
8291
8494
|
}, forwardedProps, {
|
|
8292
8495
|
className: classnames(className, handleBasicClasses({
|
|
8293
|
-
prefix: CLASSNAME$
|
|
8496
|
+
prefix: CLASSNAME$L,
|
|
8294
8497
|
theme
|
|
8295
8498
|
}))
|
|
8296
8499
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -8299,11 +8502,11 @@ const ProgressLinear = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8299
8502
|
className: "lumx-progress-linear__line2"
|
|
8300
8503
|
}));
|
|
8301
8504
|
});
|
|
8302
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
8303
|
-
ProgressLinear.className = CLASSNAME$
|
|
8505
|
+
ProgressLinear.displayName = COMPONENT_NAME$O;
|
|
8506
|
+
ProgressLinear.className = CLASSNAME$L;
|
|
8304
8507
|
ProgressLinear.defaultProps = DEFAULT_PROPS$z;
|
|
8305
8508
|
|
|
8306
|
-
const _excluded$
|
|
8509
|
+
const _excluded$Q = ["className", "theme", "size"];
|
|
8307
8510
|
|
|
8308
8511
|
/**
|
|
8309
8512
|
* Progress sizes.
|
|
@@ -8312,12 +8515,12 @@ const _excluded$N = ["className", "theme", "size"];
|
|
|
8312
8515
|
/**
|
|
8313
8516
|
* Component display name.
|
|
8314
8517
|
*/
|
|
8315
|
-
const COMPONENT_NAME$
|
|
8518
|
+
const COMPONENT_NAME$P = 'ProgressCircular';
|
|
8316
8519
|
|
|
8317
8520
|
/**
|
|
8318
8521
|
* Component default class name and class prefix.
|
|
8319
8522
|
*/
|
|
8320
|
-
const CLASSNAME$
|
|
8523
|
+
const CLASSNAME$M = getRootClassName(COMPONENT_NAME$P);
|
|
8321
8524
|
|
|
8322
8525
|
/**
|
|
8323
8526
|
* Component default props.
|
|
@@ -8340,12 +8543,12 @@ const ProgressCircular = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8340
8543
|
theme,
|
|
8341
8544
|
size
|
|
8342
8545
|
} = props,
|
|
8343
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8546
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$Q);
|
|
8344
8547
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8345
8548
|
ref: ref
|
|
8346
8549
|
}, forwardedProps, {
|
|
8347
8550
|
className: classnames(className, handleBasicClasses({
|
|
8348
|
-
prefix: CLASSNAME$
|
|
8551
|
+
prefix: CLASSNAME$M,
|
|
8349
8552
|
theme,
|
|
8350
8553
|
size
|
|
8351
8554
|
}))
|
|
@@ -8365,11 +8568,11 @@ const ProgressCircular = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8365
8568
|
strokeWidth: "5"
|
|
8366
8569
|
})));
|
|
8367
8570
|
});
|
|
8368
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
8369
|
-
ProgressCircular.className = CLASSNAME$
|
|
8571
|
+
ProgressCircular.displayName = COMPONENT_NAME$P;
|
|
8572
|
+
ProgressCircular.className = CLASSNAME$M;
|
|
8370
8573
|
ProgressCircular.defaultProps = DEFAULT_PROPS$A;
|
|
8371
8574
|
|
|
8372
|
-
const _excluded$
|
|
8575
|
+
const _excluded$R = ["className", "theme", "variant"];
|
|
8373
8576
|
|
|
8374
8577
|
/**
|
|
8375
8578
|
* Progress variants.
|
|
@@ -8381,12 +8584,12 @@ const ProgressVariant = {
|
|
|
8381
8584
|
/**
|
|
8382
8585
|
* Component display name.
|
|
8383
8586
|
*/
|
|
8384
|
-
const COMPONENT_NAME$
|
|
8587
|
+
const COMPONENT_NAME$Q = 'Progress';
|
|
8385
8588
|
|
|
8386
8589
|
/**
|
|
8387
8590
|
* Component default class name and class prefix.
|
|
8388
8591
|
*/
|
|
8389
|
-
const CLASSNAME$
|
|
8592
|
+
const CLASSNAME$N = getRootClassName(COMPONENT_NAME$Q);
|
|
8390
8593
|
|
|
8391
8594
|
/**
|
|
8392
8595
|
* Component default props.
|
|
@@ -8410,12 +8613,12 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8410
8613
|
theme,
|
|
8411
8614
|
variant
|
|
8412
8615
|
} = props,
|
|
8413
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8616
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$R);
|
|
8414
8617
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8415
8618
|
ref: ref
|
|
8416
8619
|
}, forwardedProps, {
|
|
8417
8620
|
className: classnames(className, handleBasicClasses({
|
|
8418
|
-
prefix: CLASSNAME$
|
|
8621
|
+
prefix: CLASSNAME$N,
|
|
8419
8622
|
theme,
|
|
8420
8623
|
variant
|
|
8421
8624
|
}))
|
|
@@ -8425,8 +8628,8 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8425
8628
|
theme: theme
|
|
8426
8629
|
}));
|
|
8427
8630
|
});
|
|
8428
|
-
Progress.displayName = COMPONENT_NAME$
|
|
8429
|
-
Progress.className = CLASSNAME$
|
|
8631
|
+
Progress.displayName = COMPONENT_NAME$Q;
|
|
8632
|
+
Progress.className = CLASSNAME$N;
|
|
8430
8633
|
Progress.defaultProps = DEFAULT_PROPS$B;
|
|
8431
8634
|
|
|
8432
8635
|
const INIT_STATE = {
|
|
@@ -8548,7 +8751,7 @@ const useTabProviderContextState = () => {
|
|
|
8548
8751
|
return context === null || context === void 0 ? void 0 : context[0];
|
|
8549
8752
|
};
|
|
8550
8753
|
|
|
8551
|
-
const _excluded$
|
|
8754
|
+
const _excluded$S = ["children", "onChange"];
|
|
8552
8755
|
const DEFAULT_PROPS$C = {
|
|
8553
8756
|
isLazy: INIT_STATE.isLazy,
|
|
8554
8757
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
@@ -8570,7 +8773,7 @@ const ProgressTrackerProvider = props => {
|
|
|
8570
8773
|
children,
|
|
8571
8774
|
onChange
|
|
8572
8775
|
} = props,
|
|
8573
|
-
propState = _objectWithoutProperties(props, _excluded$
|
|
8776
|
+
propState = _objectWithoutProperties(props, _excluded$S);
|
|
8574
8777
|
const [state, dispatch] = useReducer(reducer, INIT_STATE);
|
|
8575
8778
|
|
|
8576
8779
|
// On prop state change => dispatch update.
|
|
@@ -8674,7 +8877,7 @@ const useRovingTabIndex = _ref => {
|
|
|
8674
8877
|
[parentRef, ...extraDependencies]);
|
|
8675
8878
|
};
|
|
8676
8879
|
|
|
8677
|
-
const _excluded$
|
|
8880
|
+
const _excluded$T = ["aria-label", "children", "className"];
|
|
8678
8881
|
|
|
8679
8882
|
/**
|
|
8680
8883
|
* Defines the props of the component.
|
|
@@ -8683,12 +8886,12 @@ const _excluded$Q = ["aria-label", "children", "className"];
|
|
|
8683
8886
|
/**
|
|
8684
8887
|
* Component display name.
|
|
8685
8888
|
*/
|
|
8686
|
-
const COMPONENT_NAME$
|
|
8889
|
+
const COMPONENT_NAME$R = 'ProgressTracker';
|
|
8687
8890
|
|
|
8688
8891
|
/**
|
|
8689
8892
|
* Component default class name and class prefix.
|
|
8690
8893
|
*/
|
|
8691
|
-
const CLASSNAME$
|
|
8894
|
+
const CLASSNAME$O = getRootClassName(COMPONENT_NAME$R);
|
|
8692
8895
|
|
|
8693
8896
|
/**
|
|
8694
8897
|
* Component default props.
|
|
@@ -8711,7 +8914,7 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8711
8914
|
children,
|
|
8712
8915
|
className
|
|
8713
8916
|
} = props,
|
|
8714
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8917
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$T);
|
|
8715
8918
|
const stepListRef = React.useRef(null);
|
|
8716
8919
|
useRovingTabIndex({
|
|
8717
8920
|
parentRef: stepListRef,
|
|
@@ -8727,20 +8930,20 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8727
8930
|
ref: mergeRefs(ref, stepListRef)
|
|
8728
8931
|
}, forwardedProps, {
|
|
8729
8932
|
className: classnames(className, handleBasicClasses({
|
|
8730
|
-
prefix: CLASSNAME$
|
|
8933
|
+
prefix: CLASSNAME$O
|
|
8731
8934
|
}))
|
|
8732
8935
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8733
|
-
className: `${CLASSNAME$
|
|
8936
|
+
className: `${CLASSNAME$O}__steps`,
|
|
8734
8937
|
role: "tablist",
|
|
8735
8938
|
"aria-label": ariaLabel
|
|
8736
8939
|
}, children), /*#__PURE__*/React.createElement("div", {
|
|
8737
|
-
className: `${CLASSNAME$
|
|
8940
|
+
className: `${CLASSNAME$O}__background-bar`,
|
|
8738
8941
|
style: {
|
|
8739
8942
|
left: `${backgroundPosition}%`,
|
|
8740
8943
|
right: `${backgroundPosition}%`
|
|
8741
8944
|
}
|
|
8742
8945
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8743
|
-
className: `${CLASSNAME$
|
|
8946
|
+
className: `${CLASSNAME$O}__foreground-bar`,
|
|
8744
8947
|
style: {
|
|
8745
8948
|
left: `${backgroundPosition}%`,
|
|
8746
8949
|
right: `${backgroundPosition}%`,
|
|
@@ -8748,11 +8951,11 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8748
8951
|
}
|
|
8749
8952
|
}));
|
|
8750
8953
|
});
|
|
8751
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
8752
|
-
ProgressTracker.className = CLASSNAME$
|
|
8954
|
+
ProgressTracker.displayName = COMPONENT_NAME$R;
|
|
8955
|
+
ProgressTracker.className = CLASSNAME$O;
|
|
8753
8956
|
ProgressTracker.defaultProps = DEFAULT_PROPS$D;
|
|
8754
8957
|
|
|
8755
|
-
const _excluded$
|
|
8958
|
+
const _excluded$U = ["className", "disabled", "hasError", "helper", "id", "isActive", "isComplete", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
|
|
8756
8959
|
|
|
8757
8960
|
/**
|
|
8758
8961
|
* Defines the props of the component.
|
|
@@ -8761,12 +8964,12 @@ const _excluded$R = ["className", "disabled", "hasError", "helper", "id", "isAct
|
|
|
8761
8964
|
/**
|
|
8762
8965
|
* Component display name.
|
|
8763
8966
|
*/
|
|
8764
|
-
const COMPONENT_NAME$
|
|
8967
|
+
const COMPONENT_NAME$S = 'ProgressTrackerStep';
|
|
8765
8968
|
|
|
8766
8969
|
/**
|
|
8767
8970
|
* Component default class name and class prefix.
|
|
8768
8971
|
*/
|
|
8769
|
-
const CLASSNAME$
|
|
8972
|
+
const CLASSNAME$P = getRootClassName(COMPONENT_NAME$S);
|
|
8770
8973
|
|
|
8771
8974
|
/**
|
|
8772
8975
|
* Component default props.
|
|
@@ -8797,7 +9000,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8797
9000
|
onKeyPress,
|
|
8798
9001
|
tabIndex = -1
|
|
8799
9002
|
} = props,
|
|
8800
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9003
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$U);
|
|
8801
9004
|
const state = useTabProviderContext('tab', id);
|
|
8802
9005
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
8803
9006
|
const changeToCurrentTab = useCallback(() => {
|
|
@@ -8834,7 +9037,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8834
9037
|
type: "button",
|
|
8835
9038
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
8836
9039
|
className: classnames(className, handleBasicClasses({
|
|
8837
|
-
prefix: CLASSNAME$
|
|
9040
|
+
prefix: CLASSNAME$P,
|
|
8838
9041
|
hasError,
|
|
8839
9042
|
isActive,
|
|
8840
9043
|
isClickable: state && !isDisabled,
|
|
@@ -8849,22 +9052,22 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8849
9052
|
"aria-selected": isActive,
|
|
8850
9053
|
"aria-controls": state === null || state === void 0 ? void 0 : state.tabPanelId
|
|
8851
9054
|
}), /*#__PURE__*/React.createElement(Icon, {
|
|
8852
|
-
className: `${CLASSNAME$
|
|
9055
|
+
className: `${CLASSNAME$P}__state`,
|
|
8853
9056
|
icon: getIcon(),
|
|
8854
9057
|
size: Size.s
|
|
8855
9058
|
}), /*#__PURE__*/React.createElement(InputLabel, {
|
|
8856
9059
|
htmlFor: (state === null || state === void 0 ? void 0 : state.tabId) || '',
|
|
8857
|
-
className: `${CLASSNAME$
|
|
9060
|
+
className: `${CLASSNAME$P}__label`
|
|
8858
9061
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
8859
9062
|
kind: hasError ? Kind.error : Kind.info,
|
|
8860
|
-
className: `${CLASSNAME$
|
|
9063
|
+
className: `${CLASSNAME$P}__helper`
|
|
8861
9064
|
}, helper));
|
|
8862
9065
|
});
|
|
8863
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
8864
|
-
ProgressTrackerStep.className = CLASSNAME$
|
|
9066
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$S;
|
|
9067
|
+
ProgressTrackerStep.className = CLASSNAME$P;
|
|
8865
9068
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$E;
|
|
8866
9069
|
|
|
8867
|
-
const _excluded$
|
|
9070
|
+
const _excluded$V = ["children", "id", "className", "isActive"];
|
|
8868
9071
|
|
|
8869
9072
|
/**
|
|
8870
9073
|
* Defines the props of the component.
|
|
@@ -8873,12 +9076,12 @@ const _excluded$S = ["children", "id", "className", "isActive"];
|
|
|
8873
9076
|
/**
|
|
8874
9077
|
* Component display name.
|
|
8875
9078
|
*/
|
|
8876
|
-
const COMPONENT_NAME$
|
|
9079
|
+
const COMPONENT_NAME$T = 'ProgressTrackerStepPanel';
|
|
8877
9080
|
|
|
8878
9081
|
/**
|
|
8879
9082
|
* Component default class name and class prefix.
|
|
8880
9083
|
*/
|
|
8881
|
-
const CLASSNAME$
|
|
9084
|
+
const CLASSNAME$Q = `${CSS_PREFIX}-step-panel`;
|
|
8882
9085
|
|
|
8883
9086
|
/**
|
|
8884
9087
|
* Component default props.
|
|
@@ -8901,7 +9104,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8901
9104
|
className,
|
|
8902
9105
|
isActive: propIsActive
|
|
8903
9106
|
} = props,
|
|
8904
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9107
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$V);
|
|
8905
9108
|
const state = useTabProviderContext('tabPanel', id);
|
|
8906
9109
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
8907
9110
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -8909,7 +9112,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8909
9112
|
}, forwardedProps, {
|
|
8910
9113
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
8911
9114
|
className: classnames(className, handleBasicClasses({
|
|
8912
|
-
prefix: CLASSNAME$
|
|
9115
|
+
prefix: CLASSNAME$Q,
|
|
8913
9116
|
isActive
|
|
8914
9117
|
})),
|
|
8915
9118
|
role: "tabpanel",
|
|
@@ -8917,11 +9120,11 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8917
9120
|
"aria-labelledby": state === null || state === void 0 ? void 0 : state.tabId
|
|
8918
9121
|
}), (!(state !== null && state !== void 0 && state.isLazy) || isActive) && children);
|
|
8919
9122
|
});
|
|
8920
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
8921
|
-
ProgressTrackerStepPanel.className = CLASSNAME$
|
|
9123
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$T;
|
|
9124
|
+
ProgressTrackerStepPanel.className = CLASSNAME$Q;
|
|
8922
9125
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$F;
|
|
8923
9126
|
|
|
8924
|
-
const _excluded$
|
|
9127
|
+
const _excluded$W = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
|
|
8925
9128
|
|
|
8926
9129
|
/**
|
|
8927
9130
|
* Defines the props of the component.
|
|
@@ -8930,12 +9133,12 @@ const _excluded$T = ["checked", "className", "disabled", "helper", "id", "inputR
|
|
|
8930
9133
|
/**
|
|
8931
9134
|
* Component display name.
|
|
8932
9135
|
*/
|
|
8933
|
-
const COMPONENT_NAME$
|
|
9136
|
+
const COMPONENT_NAME$U = 'RadioButton';
|
|
8934
9137
|
|
|
8935
9138
|
/**
|
|
8936
9139
|
* Component default class name and class prefix.
|
|
8937
9140
|
*/
|
|
8938
|
-
const CLASSNAME$
|
|
9141
|
+
const CLASSNAME$R = getRootClassName(COMPONENT_NAME$U);
|
|
8939
9142
|
|
|
8940
9143
|
/**
|
|
8941
9144
|
* Component default props.
|
|
@@ -8968,8 +9171,8 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8968
9171
|
value,
|
|
8969
9172
|
inputProps
|
|
8970
9173
|
} = props,
|
|
8971
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8972
|
-
const inputId = useMemo(() => id || `${CLASSNAME$
|
|
9174
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$W);
|
|
9175
|
+
const inputId = useMemo(() => id || `${CLASSNAME$R.toLowerCase()}-${uid()}`, [id]);
|
|
8973
9176
|
const handleChange = event => {
|
|
8974
9177
|
if (onChange) {
|
|
8975
9178
|
onChange(value, name, event);
|
|
@@ -8982,14 +9185,14 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8982
9185
|
isChecked,
|
|
8983
9186
|
isDisabled,
|
|
8984
9187
|
isUnchecked: !isChecked,
|
|
8985
|
-
prefix: CLASSNAME$
|
|
9188
|
+
prefix: CLASSNAME$R,
|
|
8986
9189
|
theme
|
|
8987
9190
|
}))
|
|
8988
9191
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8989
|
-
className: `${CLASSNAME$
|
|
9192
|
+
className: `${CLASSNAME$R}__input-wrapper`
|
|
8990
9193
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
8991
9194
|
ref: inputRef,
|
|
8992
|
-
className: `${CLASSNAME$
|
|
9195
|
+
className: `${CLASSNAME$R}__input-native`,
|
|
8993
9196
|
disabled: isDisabled,
|
|
8994
9197
|
id: inputId,
|
|
8995
9198
|
tabIndex: isDisabled ? -1 : 0,
|
|
@@ -9000,28 +9203,28 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9000
9203
|
onChange: handleChange,
|
|
9001
9204
|
"aria-describedby": helper ? `${inputId}-helper` : undefined
|
|
9002
9205
|
}, inputProps)), /*#__PURE__*/React.createElement("div", {
|
|
9003
|
-
className: `${CLASSNAME$
|
|
9206
|
+
className: `${CLASSNAME$R}__input-placeholder`
|
|
9004
9207
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9005
|
-
className: `${CLASSNAME$
|
|
9208
|
+
className: `${CLASSNAME$R}__input-background`
|
|
9006
9209
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9007
|
-
className: `${CLASSNAME$
|
|
9210
|
+
className: `${CLASSNAME$R}__input-indicator`
|
|
9008
9211
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
9009
|
-
className: `${CLASSNAME$
|
|
9212
|
+
className: `${CLASSNAME$R}__content`
|
|
9010
9213
|
}, label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
9011
9214
|
htmlFor: inputId,
|
|
9012
9215
|
theme: theme,
|
|
9013
|
-
className: `${CLASSNAME$
|
|
9216
|
+
className: `${CLASSNAME$R}__label`
|
|
9014
9217
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
9015
9218
|
id: `${inputId}-helper`,
|
|
9016
9219
|
theme: theme,
|
|
9017
|
-
className: `${CLASSNAME$
|
|
9220
|
+
className: `${CLASSNAME$R}__helper`
|
|
9018
9221
|
}, helper)));
|
|
9019
9222
|
});
|
|
9020
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
9021
|
-
RadioButton.className = CLASSNAME$
|
|
9223
|
+
RadioButton.displayName = COMPONENT_NAME$U;
|
|
9224
|
+
RadioButton.className = CLASSNAME$R;
|
|
9022
9225
|
RadioButton.defaultProps = DEFAULT_PROPS$G;
|
|
9023
9226
|
|
|
9024
|
-
const _excluded$
|
|
9227
|
+
const _excluded$X = ["children", "className"];
|
|
9025
9228
|
|
|
9026
9229
|
/**
|
|
9027
9230
|
* Defines the props of the component.
|
|
@@ -9030,12 +9233,12 @@ const _excluded$U = ["children", "className"];
|
|
|
9030
9233
|
/**
|
|
9031
9234
|
* Component display name.
|
|
9032
9235
|
*/
|
|
9033
|
-
const COMPONENT_NAME$
|
|
9236
|
+
const COMPONENT_NAME$V = 'RadioGroup';
|
|
9034
9237
|
|
|
9035
9238
|
/**
|
|
9036
9239
|
* Component default class name and class prefix.
|
|
9037
9240
|
*/
|
|
9038
|
-
const CLASSNAME$
|
|
9241
|
+
const CLASSNAME$S = getRootClassName(COMPONENT_NAME$V);
|
|
9039
9242
|
|
|
9040
9243
|
/**
|
|
9041
9244
|
* RadioGroup component.
|
|
@@ -9049,17 +9252,17 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9049
9252
|
children,
|
|
9050
9253
|
className
|
|
9051
9254
|
} = props,
|
|
9052
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9255
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$X);
|
|
9053
9256
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9054
9257
|
ref: ref
|
|
9055
9258
|
}, forwardedProps, {
|
|
9056
9259
|
className: classnames(className, handleBasicClasses({
|
|
9057
|
-
prefix: CLASSNAME$
|
|
9260
|
+
prefix: CLASSNAME$S
|
|
9058
9261
|
}))
|
|
9059
9262
|
}), children);
|
|
9060
9263
|
});
|
|
9061
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
9062
|
-
RadioGroup.className = CLASSNAME$
|
|
9264
|
+
RadioGroup.displayName = COMPONENT_NAME$V;
|
|
9265
|
+
RadioGroup.className = CLASSNAME$S;
|
|
9063
9266
|
|
|
9064
9267
|
/**
|
|
9065
9268
|
* Listen on element focus to store the focus status.
|
|
@@ -9093,13 +9296,13 @@ const SelectVariant = {
|
|
|
9093
9296
|
chip: 'chip'
|
|
9094
9297
|
};
|
|
9095
9298
|
|
|
9096
|
-
const _excluded$
|
|
9299
|
+
const _excluded$Y = ["children", "className", "focusElement", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"];
|
|
9097
9300
|
|
|
9098
9301
|
/** The display name of the component. */
|
|
9099
|
-
const COMPONENT_NAME$
|
|
9302
|
+
const COMPONENT_NAME$W = 'Select';
|
|
9100
9303
|
|
|
9101
9304
|
/** The default class name and classes prefix for this component. */
|
|
9102
|
-
const CLASSNAME$
|
|
9305
|
+
const CLASSNAME$T = getRootClassName(COMPONENT_NAME$W);
|
|
9103
9306
|
|
|
9104
9307
|
/** The default value of props. */
|
|
9105
9308
|
const DEFAULT_PROPS$H = {
|
|
@@ -9110,6 +9313,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
9110
9313
|
let {
|
|
9111
9314
|
children,
|
|
9112
9315
|
className,
|
|
9316
|
+
focusElement,
|
|
9113
9317
|
isMultiple,
|
|
9114
9318
|
closeOnClick = !isMultiple,
|
|
9115
9319
|
disabled,
|
|
@@ -9132,10 +9336,11 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
9132
9336
|
value,
|
|
9133
9337
|
variant = DEFAULT_PROPS$H.variant
|
|
9134
9338
|
} = _ref,
|
|
9135
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
9339
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$Y);
|
|
9136
9340
|
const selectId = useMemo(() => id || `select-${uid()}`, [id]);
|
|
9137
9341
|
const anchorRef = useRef(null);
|
|
9138
9342
|
const selectRef = useRef(null);
|
|
9343
|
+
const dropdownRef = useRef(null);
|
|
9139
9344
|
const isFocus = useListenFocus(anchorRef);
|
|
9140
9345
|
const handleKeyboardNav = useCallback(evt => {
|
|
9141
9346
|
if ((evt.key === 'Enter' || evt.key === ' ' || evt.key === 'ArrowDown') && onInputClick) {
|
|
@@ -9150,6 +9355,9 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
9150
9355
|
}
|
|
9151
9356
|
anchorRef === null || anchorRef === void 0 ? void 0 : (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.blur();
|
|
9152
9357
|
};
|
|
9358
|
+
|
|
9359
|
+
// Handle focus trap.
|
|
9360
|
+
useFocusTrap(isOpen && dropdownRef.current, focusElement === null || focusElement === void 0 ? void 0 : focusElement.current);
|
|
9153
9361
|
return /*#__PURE__*/React.createElement("div", {
|
|
9154
9362
|
ref: mergeRefs(ref, selectRef),
|
|
9155
9363
|
className: classnames(className, handleBasicClasses({
|
|
@@ -9162,7 +9370,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
9162
9370
|
isFocus,
|
|
9163
9371
|
isOpen,
|
|
9164
9372
|
isValid,
|
|
9165
|
-
prefix: CLASSNAME$
|
|
9373
|
+
prefix: CLASSNAME$T,
|
|
9166
9374
|
theme: theme === Theme.light ? Theme.light : Theme.dark
|
|
9167
9375
|
}))
|
|
9168
9376
|
}, /*#__PURE__*/React.createElement(SelectElement, _extends({}, forwardedProps, {
|
|
@@ -9190,24 +9398,25 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
9190
9398
|
isOpen: !!isOpen,
|
|
9191
9399
|
placement: Placement.BOTTOM_START,
|
|
9192
9400
|
onClose: onClose,
|
|
9193
|
-
onInfiniteScroll: onInfiniteScroll
|
|
9401
|
+
onInfiniteScroll: onInfiniteScroll,
|
|
9402
|
+
ref: dropdownRef
|
|
9194
9403
|
}, children), hasError && error && /*#__PURE__*/React.createElement(InputHelper, {
|
|
9195
|
-
className: `${CLASSNAME$
|
|
9404
|
+
className: `${CLASSNAME$T}__helper`,
|
|
9196
9405
|
kind: Kind.error,
|
|
9197
9406
|
theme: theme
|
|
9198
9407
|
}, error), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
9199
|
-
className: `${CLASSNAME$
|
|
9408
|
+
className: `${CLASSNAME$T}__helper`,
|
|
9200
9409
|
theme: theme
|
|
9201
9410
|
}, helper));
|
|
9202
9411
|
};
|
|
9203
9412
|
|
|
9204
|
-
const _excluded$
|
|
9413
|
+
const _excluded$Z = ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant"];
|
|
9205
9414
|
|
|
9206
9415
|
/** The display name of the component. */
|
|
9207
|
-
const COMPONENT_NAME$
|
|
9416
|
+
const COMPONENT_NAME$X = 'Select';
|
|
9208
9417
|
|
|
9209
9418
|
/** The default class name and classes prefix for this component. */
|
|
9210
|
-
const CLASSNAME$
|
|
9419
|
+
const CLASSNAME$U = getRootClassName(COMPONENT_NAME$X);
|
|
9211
9420
|
|
|
9212
9421
|
/** The default value of props. */
|
|
9213
9422
|
const DEFAULT_PROPS$I = {
|
|
@@ -9240,36 +9449,36 @@ const SelectField = _ref => {
|
|
|
9240
9449
|
value,
|
|
9241
9450
|
variant
|
|
9242
9451
|
} = _ref,
|
|
9243
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
9452
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$Z);
|
|
9244
9453
|
return /*#__PURE__*/React.createElement(React.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement("div", {
|
|
9245
|
-
className: `${CLASSNAME$
|
|
9454
|
+
className: `${CLASSNAME$U}__header`
|
|
9246
9455
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
9247
9456
|
htmlFor: id,
|
|
9248
|
-
className: `${CLASSNAME$
|
|
9457
|
+
className: `${CLASSNAME$U}__label`,
|
|
9249
9458
|
isRequired: isRequired,
|
|
9250
9459
|
theme: theme
|
|
9251
9460
|
}, label)), /*#__PURE__*/React.createElement("div", _extends({
|
|
9252
9461
|
ref: anchorRef,
|
|
9253
9462
|
id: id,
|
|
9254
|
-
className: `${CLASSNAME$
|
|
9463
|
+
className: `${CLASSNAME$U}__wrapper`,
|
|
9255
9464
|
onClick: onInputClick,
|
|
9256
9465
|
onKeyDown: handleKeyboardNav,
|
|
9257
9466
|
tabIndex: isDisabled ? undefined : 0,
|
|
9258
9467
|
"aria-disabled": isDisabled || undefined
|
|
9259
9468
|
}, forwardedProps), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9260
|
-
className: `${CLASSNAME$
|
|
9469
|
+
className: `${CLASSNAME$U}__input-icon`,
|
|
9261
9470
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
9262
9471
|
icon: icon,
|
|
9263
9472
|
size: Size.xs
|
|
9264
9473
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9265
|
-
className: classnames([`${CLASSNAME$
|
|
9474
|
+
className: classnames([`${CLASSNAME$U}__input-native`, isEmpty && placeholder && `${CLASSNAME$U}__input-native--placeholder`])
|
|
9266
9475
|
}, !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", {
|
|
9267
|
-
className: `${CLASSNAME$
|
|
9476
|
+
className: `${CLASSNAME$U}__input-validity`
|
|
9268
9477
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9269
9478
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
9270
9479
|
size: Size.xxs
|
|
9271
9480
|
})), hasInputClear && clearButtonProps && /*#__PURE__*/React.createElement(IconButton, _extends({}, clearButtonProps, {
|
|
9272
|
-
className: `${CLASSNAME$
|
|
9481
|
+
className: `${CLASSNAME$U}__input-clear`,
|
|
9273
9482
|
icon: mdiCloseCircle,
|
|
9274
9483
|
emphasis: Emphasis.low,
|
|
9275
9484
|
size: Size.s,
|
|
@@ -9277,7 +9486,7 @@ const SelectField = _ref => {
|
|
|
9277
9486
|
onClick: onClear,
|
|
9278
9487
|
onKeyDown: stopPropagation
|
|
9279
9488
|
})), /*#__PURE__*/React.createElement("div", {
|
|
9280
|
-
className: `${CLASSNAME$
|
|
9489
|
+
className: `${CLASSNAME$U}__input-indicator`
|
|
9281
9490
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9282
9491
|
icon: mdiMenuDown,
|
|
9283
9492
|
size: Size.s
|
|
@@ -9309,26 +9518,26 @@ const Select = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9309
9518
|
className: classnames(props.className, handleBasicClasses({
|
|
9310
9519
|
hasInputClear,
|
|
9311
9520
|
hasUnique: !props.isEmpty,
|
|
9312
|
-
prefix: CLASSNAME$
|
|
9521
|
+
prefix: CLASSNAME$U
|
|
9313
9522
|
})),
|
|
9314
9523
|
hasInputClear,
|
|
9315
9524
|
isEmpty: isEmpty$1
|
|
9316
9525
|
}), ref);
|
|
9317
9526
|
});
|
|
9318
|
-
Select.displayName = COMPONENT_NAME$
|
|
9319
|
-
Select.className = CLASSNAME$
|
|
9527
|
+
Select.displayName = COMPONENT_NAME$X;
|
|
9528
|
+
Select.className = CLASSNAME$U;
|
|
9320
9529
|
Select.defaultProps = DEFAULT_PROPS$I;
|
|
9321
|
-
Select.className = CLASSNAME$
|
|
9530
|
+
Select.className = CLASSNAME$U;
|
|
9322
9531
|
|
|
9323
|
-
const _excluded$
|
|
9532
|
+
const _excluded$_ = ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant"];
|
|
9324
9533
|
|
|
9325
9534
|
/** Defines the props of the component. */
|
|
9326
9535
|
|
|
9327
9536
|
/** The display name of the component. */
|
|
9328
|
-
const COMPONENT_NAME$
|
|
9537
|
+
const COMPONENT_NAME$Y = 'Select';
|
|
9329
9538
|
|
|
9330
9539
|
/** The default class name and classes prefix for this component. */
|
|
9331
|
-
const CLASSNAME$
|
|
9540
|
+
const CLASSNAME$V = getRootClassName(COMPONENT_NAME$Y);
|
|
9332
9541
|
|
|
9333
9542
|
/** The default value of props. */
|
|
9334
9543
|
const DEFAULT_PROPS$J = {
|
|
@@ -9370,38 +9579,38 @@ const SelectMultipleField = _ref => {
|
|
|
9370
9579
|
value,
|
|
9371
9580
|
variant
|
|
9372
9581
|
} = _ref,
|
|
9373
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
9582
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$_);
|
|
9374
9583
|
return /*#__PURE__*/React.createElement(React.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement("div", {
|
|
9375
|
-
className: `${CLASSNAME$
|
|
9584
|
+
className: `${CLASSNAME$V}__header`
|
|
9376
9585
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
9377
9586
|
htmlFor: id,
|
|
9378
|
-
className: `${CLASSNAME$
|
|
9587
|
+
className: `${CLASSNAME$V}__label`,
|
|
9379
9588
|
isRequired: isRequired,
|
|
9380
9589
|
theme: theme
|
|
9381
9590
|
}, label)), /*#__PURE__*/React.createElement("div", _extends({
|
|
9382
9591
|
ref: anchorRef,
|
|
9383
9592
|
id: id,
|
|
9384
|
-
className: `${CLASSNAME$
|
|
9593
|
+
className: `${CLASSNAME$V}__wrapper`,
|
|
9385
9594
|
onClick: onInputClick,
|
|
9386
9595
|
onKeyDown: handleKeyboardNav,
|
|
9387
9596
|
tabIndex: isDisabled ? undefined : 0,
|
|
9388
9597
|
"aria-disabled": isDisabled || undefined
|
|
9389
9598
|
}, forwardedProps), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9390
|
-
className: `${CLASSNAME$
|
|
9599
|
+
className: `${CLASSNAME$V}__input-icon`,
|
|
9391
9600
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
9392
9601
|
icon: icon,
|
|
9393
9602
|
size: Size.xs
|
|
9394
9603
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9395
|
-
className: `${CLASSNAME$
|
|
9604
|
+
className: `${CLASSNAME$V}__chips`
|
|
9396
9605
|
}, !isEmpty && value.map((val, index) => selectedChipRender === null || selectedChipRender === void 0 ? void 0 : selectedChipRender(val, index, onClear, isDisabled, theme))), isEmpty && placeholder && /*#__PURE__*/React.createElement("div", {
|
|
9397
|
-
className: classnames([`${CLASSNAME$
|
|
9606
|
+
className: classnames([`${CLASSNAME$V}__input-native`, `${CLASSNAME$V}__input-native--placeholder`])
|
|
9398
9607
|
}, /*#__PURE__*/React.createElement("span", null, placeholder)), (isValid || hasError) && /*#__PURE__*/React.createElement("div", {
|
|
9399
|
-
className: `${CLASSNAME$
|
|
9608
|
+
className: `${CLASSNAME$V}__input-validity`
|
|
9400
9609
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9401
9610
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
9402
9611
|
size: Size.xxs
|
|
9403
9612
|
})), /*#__PURE__*/React.createElement("div", {
|
|
9404
|
-
className: `${CLASSNAME$
|
|
9613
|
+
className: `${CLASSNAME$V}__input-indicator`
|
|
9405
9614
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9406
9615
|
icon: mdiMenuDown,
|
|
9407
9616
|
size: Size.s
|
|
@@ -9430,17 +9639,17 @@ const SelectMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9430
9639
|
return WithSelectContext(SelectMultipleField, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9431
9640
|
className: classnames(props.className, handleBasicClasses({
|
|
9432
9641
|
hasMultiple: !props.isEmpty,
|
|
9433
|
-
prefix: CLASSNAME$
|
|
9642
|
+
prefix: CLASSNAME$V
|
|
9434
9643
|
})),
|
|
9435
9644
|
isEmpty: props.value.length === 0,
|
|
9436
9645
|
isMultiple: true
|
|
9437
9646
|
}), ref);
|
|
9438
9647
|
});
|
|
9439
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
9440
|
-
SelectMultiple.className = CLASSNAME$
|
|
9648
|
+
SelectMultiple.displayName = COMPONENT_NAME$Y;
|
|
9649
|
+
SelectMultiple.className = CLASSNAME$V;
|
|
9441
9650
|
SelectMultiple.defaultProps = DEFAULT_PROPS$J;
|
|
9442
9651
|
|
|
9443
|
-
const _excluded
|
|
9652
|
+
const _excluded$$ = ["children", "className", "theme"];
|
|
9444
9653
|
|
|
9445
9654
|
/**
|
|
9446
9655
|
* Defines the props of the component.
|
|
@@ -9449,12 +9658,12 @@ const _excluded$Y = ["children", "className", "theme"];
|
|
|
9449
9658
|
/**
|
|
9450
9659
|
* Component display name.
|
|
9451
9660
|
*/
|
|
9452
|
-
const COMPONENT_NAME$
|
|
9661
|
+
const COMPONENT_NAME$Z = 'SideNavigation';
|
|
9453
9662
|
|
|
9454
9663
|
/**
|
|
9455
9664
|
* Component default class name and class prefix.
|
|
9456
9665
|
*/
|
|
9457
|
-
const CLASSNAME$
|
|
9666
|
+
const CLASSNAME$W = getRootClassName(COMPONENT_NAME$Z);
|
|
9458
9667
|
|
|
9459
9668
|
/**
|
|
9460
9669
|
* SideNavigation component.
|
|
@@ -9469,20 +9678,20 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9469
9678
|
className,
|
|
9470
9679
|
theme
|
|
9471
9680
|
} = props,
|
|
9472
|
-
forwardedProps = _objectWithoutProperties(props, _excluded
|
|
9681
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$$);
|
|
9473
9682
|
const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
9474
9683
|
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
9475
9684
|
ref: ref
|
|
9476
9685
|
}, forwardedProps, {
|
|
9477
9686
|
className: classnames(className, theme === Theme.dark && 'lumx-color-font-light-N', handleBasicClasses({
|
|
9478
|
-
prefix: CLASSNAME$
|
|
9687
|
+
prefix: CLASSNAME$W
|
|
9479
9688
|
}))
|
|
9480
9689
|
}), content);
|
|
9481
9690
|
});
|
|
9482
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
9483
|
-
SideNavigation.className = CLASSNAME$
|
|
9691
|
+
SideNavigation.displayName = COMPONENT_NAME$Z;
|
|
9692
|
+
SideNavigation.className = CLASSNAME$W;
|
|
9484
9693
|
|
|
9485
|
-
const _excluded$
|
|
9694
|
+
const _excluded$10 = ["children", "className", "emphasis", "icon", "isOpen", "isSelected", "label", "linkAs", "linkProps", "onActionClick", "onClick", "toggleButtonProps", "closeMode"];
|
|
9486
9695
|
|
|
9487
9696
|
/**
|
|
9488
9697
|
* Defines the props of the component.
|
|
@@ -9491,12 +9700,12 @@ const _excluded$Z = ["children", "className", "emphasis", "icon", "isOpen", "isS
|
|
|
9491
9700
|
/**
|
|
9492
9701
|
* Component display name.
|
|
9493
9702
|
*/
|
|
9494
|
-
const COMPONENT_NAME$
|
|
9703
|
+
const COMPONENT_NAME$_ = 'SideNavigationItem';
|
|
9495
9704
|
|
|
9496
9705
|
/**
|
|
9497
9706
|
* Component default class name and class prefix.
|
|
9498
9707
|
*/
|
|
9499
|
-
const CLASSNAME$
|
|
9708
|
+
const CLASSNAME$X = getRootClassName(COMPONENT_NAME$_);
|
|
9500
9709
|
|
|
9501
9710
|
/**
|
|
9502
9711
|
* Component default props.
|
|
@@ -9529,7 +9738,7 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9529
9738
|
toggleButtonProps,
|
|
9530
9739
|
closeMode = 'unmount'
|
|
9531
9740
|
} = props,
|
|
9532
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9741
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$10);
|
|
9533
9742
|
const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
9534
9743
|
const hasContent = !isEmpty(content);
|
|
9535
9744
|
const shouldSplitActions = Boolean(onActionClick);
|
|
@@ -9541,22 +9750,22 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9541
9750
|
emphasis,
|
|
9542
9751
|
isOpen: showChildren,
|
|
9543
9752
|
isSelected,
|
|
9544
|
-
prefix: CLASSNAME$
|
|
9753
|
+
prefix: CLASSNAME$X
|
|
9545
9754
|
}))
|
|
9546
9755
|
}), shouldSplitActions ? /*#__PURE__*/React.createElement("div", {
|
|
9547
|
-
className: `${CLASSNAME$
|
|
9756
|
+
className: `${CLASSNAME$X}__wrapper`
|
|
9548
9757
|
}, renderLink(_objectSpread2(_objectSpread2({
|
|
9549
9758
|
linkAs
|
|
9550
9759
|
}, linkProps), {}, {
|
|
9551
|
-
className: `${CLASSNAME$
|
|
9760
|
+
className: `${CLASSNAME$X}__link`,
|
|
9552
9761
|
onClick,
|
|
9553
9762
|
tabIndex: 0
|
|
9554
9763
|
}), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9555
|
-
className: `${CLASSNAME$
|
|
9764
|
+
className: `${CLASSNAME$X}__icon`,
|
|
9556
9765
|
icon: icon,
|
|
9557
9766
|
size: Size.xs
|
|
9558
9767
|
}), /*#__PURE__*/React.createElement("span", null, label)), /*#__PURE__*/React.createElement(IconButton, _extends({}, toggleButtonProps, {
|
|
9559
|
-
className: `${CLASSNAME$
|
|
9768
|
+
className: `${CLASSNAME$X}__toggle`,
|
|
9560
9769
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
9561
9770
|
size: Size.m,
|
|
9562
9771
|
emphasis: Emphasis.low,
|
|
@@ -9564,27 +9773,27 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9564
9773
|
}))) : renderLink(_objectSpread2(_objectSpread2({
|
|
9565
9774
|
linkAs
|
|
9566
9775
|
}, linkProps), {}, {
|
|
9567
|
-
className: `${CLASSNAME$
|
|
9776
|
+
className: `${CLASSNAME$X}__link`,
|
|
9568
9777
|
tabIndex: 0,
|
|
9569
9778
|
onClick,
|
|
9570
9779
|
onKeyDown: onClick ? onEnterPressed(onClick) : undefined
|
|
9571
9780
|
}), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9572
|
-
className: `${CLASSNAME$
|
|
9781
|
+
className: `${CLASSNAME$X}__icon`,
|
|
9573
9782
|
icon: icon,
|
|
9574
9783
|
size: Size.xs
|
|
9575
9784
|
}), /*#__PURE__*/React.createElement("span", null, label), hasContent && /*#__PURE__*/React.createElement(Icon, {
|
|
9576
|
-
className: `${CLASSNAME$
|
|
9785
|
+
className: `${CLASSNAME$X}__chevron`,
|
|
9577
9786
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
9578
9787
|
size: Size.xs
|
|
9579
9788
|
})), (closeMode === 'hide' || showChildren) && /*#__PURE__*/React.createElement("ul", {
|
|
9580
|
-
className: `${CLASSNAME$
|
|
9789
|
+
className: `${CLASSNAME$X}__children`
|
|
9581
9790
|
}, content));
|
|
9582
9791
|
});
|
|
9583
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
9584
|
-
SideNavigationItem.className = CLASSNAME$
|
|
9792
|
+
SideNavigationItem.displayName = COMPONENT_NAME$_;
|
|
9793
|
+
SideNavigationItem.className = CLASSNAME$X;
|
|
9585
9794
|
SideNavigationItem.defaultProps = DEFAULT_PROPS$K;
|
|
9586
9795
|
|
|
9587
|
-
const _excluded$
|
|
9796
|
+
const _excluded$11 = ["className", "size", "color", "theme"];
|
|
9588
9797
|
|
|
9589
9798
|
/**
|
|
9590
9799
|
* Defines the props of the component.
|
|
@@ -9597,12 +9806,12 @@ const DEFAULT_PROPS$L = {
|
|
|
9597
9806
|
/**
|
|
9598
9807
|
* Component display name.
|
|
9599
9808
|
*/
|
|
9600
|
-
const COMPONENT_NAME
|
|
9809
|
+
const COMPONENT_NAME$$ = 'SkeletonCircle';
|
|
9601
9810
|
|
|
9602
9811
|
/**
|
|
9603
9812
|
* Component default class name and class prefix.
|
|
9604
9813
|
*/
|
|
9605
|
-
const CLASSNAME$
|
|
9814
|
+
const CLASSNAME$Y = getRootClassName(COMPONENT_NAME$$);
|
|
9606
9815
|
|
|
9607
9816
|
/**
|
|
9608
9817
|
* SkeletonCircle component.
|
|
@@ -9618,23 +9827,23 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9618
9827
|
color,
|
|
9619
9828
|
theme
|
|
9620
9829
|
} = props,
|
|
9621
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9830
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$11);
|
|
9622
9831
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9623
9832
|
ref: ref
|
|
9624
9833
|
}, forwardedProps, {
|
|
9625
9834
|
className: classnames(className, handleBasicClasses({
|
|
9626
|
-
prefix: CLASSNAME$
|
|
9835
|
+
prefix: CLASSNAME$Y,
|
|
9627
9836
|
size,
|
|
9628
9837
|
color,
|
|
9629
9838
|
theme
|
|
9630
9839
|
}))
|
|
9631
9840
|
}));
|
|
9632
9841
|
});
|
|
9633
|
-
SkeletonCircle.displayName = COMPONENT_NAME
|
|
9842
|
+
SkeletonCircle.displayName = COMPONENT_NAME$$;
|
|
9634
9843
|
SkeletonCircle.defaultProps = DEFAULT_PROPS$L;
|
|
9635
|
-
SkeletonCircle.className = CLASSNAME$
|
|
9844
|
+
SkeletonCircle.className = CLASSNAME$Y;
|
|
9636
9845
|
|
|
9637
|
-
const _excluded
|
|
9846
|
+
const _excluded$12 = ["aspectRatio", "className", "height", "theme", "variant", "width", "color"];
|
|
9638
9847
|
|
|
9639
9848
|
/**
|
|
9640
9849
|
* Skeleton variants.
|
|
@@ -9652,12 +9861,12 @@ const DEFAULT_PROPS$M = {
|
|
|
9652
9861
|
/**
|
|
9653
9862
|
* Component display name.
|
|
9654
9863
|
*/
|
|
9655
|
-
const COMPONENT_NAME$
|
|
9864
|
+
const COMPONENT_NAME$10 = 'SkeletonRectangle';
|
|
9656
9865
|
|
|
9657
9866
|
/**
|
|
9658
9867
|
* Component default class name and class prefix.
|
|
9659
9868
|
*/
|
|
9660
|
-
const CLASSNAME$
|
|
9869
|
+
const CLASSNAME$Z = getRootClassName(COMPONENT_NAME$10);
|
|
9661
9870
|
|
|
9662
9871
|
/**
|
|
9663
9872
|
* SkeletonRectangle component.
|
|
@@ -9676,12 +9885,12 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9676
9885
|
width,
|
|
9677
9886
|
color
|
|
9678
9887
|
} = props,
|
|
9679
|
-
forwardedProps = _objectWithoutProperties(props, _excluded
|
|
9888
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$12);
|
|
9680
9889
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9681
9890
|
ref: ref
|
|
9682
9891
|
}, forwardedProps, {
|
|
9683
9892
|
className: classnames(className, handleBasicClasses({
|
|
9684
|
-
prefix: CLASSNAME$
|
|
9893
|
+
prefix: CLASSNAME$Z,
|
|
9685
9894
|
aspectRatio,
|
|
9686
9895
|
height: aspectRatio ? undefined : height,
|
|
9687
9896
|
theme,
|
|
@@ -9690,14 +9899,14 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9690
9899
|
color
|
|
9691
9900
|
}))
|
|
9692
9901
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9693
|
-
className: `${CLASSNAME$
|
|
9902
|
+
className: `${CLASSNAME$Z}__inner`
|
|
9694
9903
|
}));
|
|
9695
9904
|
});
|
|
9696
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
9697
|
-
SkeletonRectangle.className = CLASSNAME$
|
|
9905
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$10;
|
|
9906
|
+
SkeletonRectangle.className = CLASSNAME$Z;
|
|
9698
9907
|
SkeletonRectangle.defaultProps = DEFAULT_PROPS$M;
|
|
9699
9908
|
|
|
9700
|
-
const _excluded$
|
|
9909
|
+
const _excluded$13 = ["className", "theme", "typography", "width", "color"];
|
|
9701
9910
|
|
|
9702
9911
|
/**
|
|
9703
9912
|
* Defines the props of the component.
|
|
@@ -9710,12 +9919,12 @@ const DEFAULT_PROPS$N = {
|
|
|
9710
9919
|
/**
|
|
9711
9920
|
* Component display name.
|
|
9712
9921
|
*/
|
|
9713
|
-
const COMPONENT_NAME$
|
|
9922
|
+
const COMPONENT_NAME$11 = 'SkeletonTypography';
|
|
9714
9923
|
|
|
9715
9924
|
/**
|
|
9716
9925
|
* Component default class name and class prefix.
|
|
9717
9926
|
*/
|
|
9718
|
-
const CLASSNAME$
|
|
9927
|
+
const CLASSNAME$_ = getRootClassName(COMPONENT_NAME$11);
|
|
9719
9928
|
|
|
9720
9929
|
/**
|
|
9721
9930
|
* SkeletonTypography component.
|
|
@@ -9732,12 +9941,12 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9732
9941
|
width,
|
|
9733
9942
|
color
|
|
9734
9943
|
} = props,
|
|
9735
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9944
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$13);
|
|
9736
9945
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9737
9946
|
ref: ref
|
|
9738
9947
|
}, forwardedProps, {
|
|
9739
9948
|
className: classnames(className, handleBasicClasses({
|
|
9740
|
-
prefix: CLASSNAME$
|
|
9949
|
+
prefix: CLASSNAME$_,
|
|
9741
9950
|
theme,
|
|
9742
9951
|
typography,
|
|
9743
9952
|
color
|
|
@@ -9746,12 +9955,12 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9746
9955
|
width
|
|
9747
9956
|
})
|
|
9748
9957
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9749
|
-
className: `${CLASSNAME$
|
|
9958
|
+
className: `${CLASSNAME$_}__inner`
|
|
9750
9959
|
}));
|
|
9751
9960
|
});
|
|
9752
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
9961
|
+
SkeletonTypography.displayName = COMPONENT_NAME$11;
|
|
9753
9962
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$N;
|
|
9754
|
-
SkeletonTypography.className = CLASSNAME$
|
|
9963
|
+
SkeletonTypography.className = CLASSNAME$_;
|
|
9755
9964
|
|
|
9756
9965
|
const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
9757
9966
|
|
|
@@ -9787,7 +9996,7 @@ const clamp = (value, min, max) => {
|
|
|
9787
9996
|
return value;
|
|
9788
9997
|
};
|
|
9789
9998
|
|
|
9790
|
-
const _excluded$
|
|
9999
|
+
const _excluded$14 = ["className", "disabled", "helper", "hideMinMaxLabel", "id", "isDisabled", "label", "max", "min", "name", "onChange", "onMouseDown", "precision", "steps", "theme", "value"];
|
|
9791
10000
|
|
|
9792
10001
|
/**
|
|
9793
10002
|
* Defines the props of the component.
|
|
@@ -9796,12 +10005,12 @@ const _excluded$11 = ["className", "disabled", "helper", "hideMinMaxLabel", "id"
|
|
|
9796
10005
|
/**
|
|
9797
10006
|
* Component display name.
|
|
9798
10007
|
*/
|
|
9799
|
-
const COMPONENT_NAME
|
|
10008
|
+
const COMPONENT_NAME$12 = 'Slider';
|
|
9800
10009
|
|
|
9801
10010
|
/**
|
|
9802
10011
|
* Component default class name and class prefix.
|
|
9803
10012
|
*/
|
|
9804
|
-
const CLASSNAME
|
|
10013
|
+
const CLASSNAME$$ = getRootClassName(COMPONENT_NAME$12);
|
|
9805
10014
|
|
|
9806
10015
|
/**
|
|
9807
10016
|
* Component default props.
|
|
@@ -9862,7 +10071,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9862
10071
|
theme,
|
|
9863
10072
|
value
|
|
9864
10073
|
} = props,
|
|
9865
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10074
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$14);
|
|
9866
10075
|
const sliderId = useMemo(() => id || `slider-${uid()}`, [id]);
|
|
9867
10076
|
const sliderLabelId = useMemo(() => `label-${sliderId}`, [sliderId]);
|
|
9868
10077
|
const sliderRef = useRef(null);
|
|
@@ -9995,7 +10204,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9995
10204
|
ref: ref
|
|
9996
10205
|
}, forwardedProps, {
|
|
9997
10206
|
className: classnames(className, handleBasicClasses({
|
|
9998
|
-
prefix: CLASSNAME
|
|
10207
|
+
prefix: CLASSNAME$$,
|
|
9999
10208
|
theme,
|
|
10000
10209
|
hasLabel: Boolean(label)
|
|
10001
10210
|
})),
|
|
@@ -10004,30 +10213,30 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10004
10213
|
}), label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
10005
10214
|
id: sliderLabelId,
|
|
10006
10215
|
htmlFor: sliderId,
|
|
10007
|
-
className: `${CLASSNAME
|
|
10216
|
+
className: `${CLASSNAME$$}__label`,
|
|
10008
10217
|
theme: theme
|
|
10009
10218
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
10010
|
-
className: `${CLASSNAME
|
|
10219
|
+
className: `${CLASSNAME$$}__helper`,
|
|
10011
10220
|
theme: theme
|
|
10012
10221
|
}, helper), /*#__PURE__*/React.createElement("div", {
|
|
10013
|
-
className: `${CLASSNAME
|
|
10222
|
+
className: `${CLASSNAME$$}__ui-wrapper`
|
|
10014
10223
|
}, !hideMinMaxLabel && /*#__PURE__*/React.createElement("span", {
|
|
10015
|
-
className: `${CLASSNAME
|
|
10224
|
+
className: `${CLASSNAME$$}__value-label ${CLASSNAME$$}__value-label--min`
|
|
10016
10225
|
}, min), /*#__PURE__*/React.createElement("div", {
|
|
10017
|
-
className: `${CLASSNAME
|
|
10226
|
+
className: `${CLASSNAME$$}__wrapper`,
|
|
10018
10227
|
ref: sliderRef
|
|
10019
10228
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10020
|
-
className: `${CLASSNAME
|
|
10229
|
+
className: `${CLASSNAME$$}__track ${CLASSNAME$$}__track--background`
|
|
10021
10230
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10022
|
-
className: `${CLASSNAME
|
|
10231
|
+
className: `${CLASSNAME$$}__track ${CLASSNAME$$}__track--active`,
|
|
10023
10232
|
style: {
|
|
10024
10233
|
width: percentString
|
|
10025
10234
|
}
|
|
10026
10235
|
}), steps ? /*#__PURE__*/React.createElement("div", {
|
|
10027
|
-
className: `${CLASSNAME
|
|
10236
|
+
className: `${CLASSNAME$$}__ticks`
|
|
10028
10237
|
}, availableSteps.map((step, idx) => /*#__PURE__*/React.createElement("div", {
|
|
10029
10238
|
key: `tick_${idx}`,
|
|
10030
|
-
className: `${CLASSNAME
|
|
10239
|
+
className: `${CLASSNAME$$}__tick`,
|
|
10031
10240
|
style: {
|
|
10032
10241
|
left: `${step * 100}%`
|
|
10033
10242
|
}
|
|
@@ -10036,18 +10245,18 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10036
10245
|
"aria-labelledby": sliderLabelId,
|
|
10037
10246
|
name: name,
|
|
10038
10247
|
id: sliderId,
|
|
10039
|
-
className: `${CLASSNAME
|
|
10248
|
+
className: `${CLASSNAME$$}__handle`,
|
|
10040
10249
|
style: {
|
|
10041
10250
|
left: percentString
|
|
10042
10251
|
},
|
|
10043
10252
|
onKeyDown: handleKeyDown,
|
|
10044
10253
|
disabled: isDisabled
|
|
10045
10254
|
})), !hideMinMaxLabel && /*#__PURE__*/React.createElement("span", {
|
|
10046
|
-
className: `${CLASSNAME
|
|
10255
|
+
className: `${CLASSNAME$$}__value-label ${CLASSNAME$$}__value-label--max`
|
|
10047
10256
|
}, max)));
|
|
10048
10257
|
});
|
|
10049
|
-
Slider.displayName = COMPONENT_NAME
|
|
10050
|
-
Slider.className = CLASSNAME
|
|
10258
|
+
Slider.displayName = COMPONENT_NAME$12;
|
|
10259
|
+
Slider.className = CLASSNAME$$;
|
|
10051
10260
|
Slider.defaultProps = DEFAULT_PROPS$O;
|
|
10052
10261
|
|
|
10053
10262
|
/**
|
|
@@ -10343,7 +10552,7 @@ const useSlideFocusManagement = _ref => {
|
|
|
10343
10552
|
}, [isSlideDisplayed, slideRef]);
|
|
10344
10553
|
};
|
|
10345
10554
|
|
|
10346
|
-
const _excluded$
|
|
10555
|
+
const _excluded$15 = ["className", "children", "role", "label", "isDisplayed"];
|
|
10347
10556
|
|
|
10348
10557
|
/**
|
|
10349
10558
|
* Defines the props of the component.
|
|
@@ -10352,12 +10561,12 @@ const _excluded$12 = ["className", "children", "role", "label", "isDisplayed"];
|
|
|
10352
10561
|
/**
|
|
10353
10562
|
* Component display name.
|
|
10354
10563
|
*/
|
|
10355
|
-
const COMPONENT_NAME$
|
|
10564
|
+
const COMPONENT_NAME$13 = 'SlideshowItemGroup';
|
|
10356
10565
|
|
|
10357
10566
|
/**
|
|
10358
10567
|
* Component default class name and class prefix.
|
|
10359
10568
|
*/
|
|
10360
|
-
const CLASSNAME$
|
|
10569
|
+
const CLASSNAME$10 = getRootClassName(COMPONENT_NAME$13);
|
|
10361
10570
|
const buildSlideShowGroupId = (slidesId, index) => `${slidesId}-slide-${index}`;
|
|
10362
10571
|
|
|
10363
10572
|
/**
|
|
@@ -10375,7 +10584,7 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10375
10584
|
label,
|
|
10376
10585
|
isDisplayed
|
|
10377
10586
|
} = props,
|
|
10378
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10587
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$15);
|
|
10379
10588
|
const groupRef = React.useRef(null);
|
|
10380
10589
|
useSlideFocusManagement({
|
|
10381
10590
|
isSlideDisplayed: isDisplayed,
|
|
@@ -10385,16 +10594,16 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10385
10594
|
ref: mergeRefs(groupRef, ref),
|
|
10386
10595
|
role: role,
|
|
10387
10596
|
className: classnames(className, handleBasicClasses({
|
|
10388
|
-
prefix: CLASSNAME$
|
|
10597
|
+
prefix: CLASSNAME$10
|
|
10389
10598
|
})),
|
|
10390
10599
|
"aria-roledescription": "slide",
|
|
10391
10600
|
"aria-label": label
|
|
10392
10601
|
}, forwardedProps), children);
|
|
10393
10602
|
});
|
|
10394
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
10395
|
-
SlideshowItemGroup.className = CLASSNAME$
|
|
10603
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$13;
|
|
10604
|
+
SlideshowItemGroup.className = CLASSNAME$10;
|
|
10396
10605
|
|
|
10397
|
-
const _excluded$
|
|
10606
|
+
const _excluded$16 = ["activeIndex", "autoPlay", "children", "className", "fillHeight", "groupBy", "interval", "onChange", "slideshowControlsProps", "theme", "id", "slidesId", "slideGroupLabel"];
|
|
10398
10607
|
|
|
10399
10608
|
/**
|
|
10400
10609
|
* Defines the props of the component.
|
|
@@ -10430,7 +10639,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10430
10639
|
slidesId,
|
|
10431
10640
|
slideGroupLabel
|
|
10432
10641
|
} = props,
|
|
10433
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10642
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$16);
|
|
10434
10643
|
// Number of slideshow items.
|
|
10435
10644
|
const itemsCount = React.Children.count(children);
|
|
10436
10645
|
const {
|
|
@@ -10512,7 +10721,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10512
10721
|
Slideshow.displayName = 'Slideshow';
|
|
10513
10722
|
Slideshow.defaultProps = DEFAULT_PROPS$P;
|
|
10514
10723
|
|
|
10515
|
-
const _excluded$
|
|
10724
|
+
const _excluded$17 = ["className", "children"];
|
|
10516
10725
|
|
|
10517
10726
|
/**
|
|
10518
10727
|
* Defines the props of the component.
|
|
@@ -10521,12 +10730,12 @@ const _excluded$14 = ["className", "children"];
|
|
|
10521
10730
|
/**
|
|
10522
10731
|
* Component display name.
|
|
10523
10732
|
*/
|
|
10524
|
-
const COMPONENT_NAME$
|
|
10733
|
+
const COMPONENT_NAME$14 = 'SlideshowItem';
|
|
10525
10734
|
|
|
10526
10735
|
/**
|
|
10527
10736
|
* Component default class name and class prefix.
|
|
10528
10737
|
*/
|
|
10529
|
-
const CLASSNAME$
|
|
10738
|
+
const CLASSNAME$11 = getRootClassName(COMPONENT_NAME$14);
|
|
10530
10739
|
|
|
10531
10740
|
/**
|
|
10532
10741
|
* SlideshowItem component.
|
|
@@ -10540,16 +10749,16 @@ const SlideshowItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10540
10749
|
className,
|
|
10541
10750
|
children
|
|
10542
10751
|
} = props,
|
|
10543
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10752
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$17);
|
|
10544
10753
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
10545
10754
|
ref: ref,
|
|
10546
10755
|
className: classnames(className, handleBasicClasses({
|
|
10547
|
-
prefix: CLASSNAME$
|
|
10756
|
+
prefix: CLASSNAME$11
|
|
10548
10757
|
}))
|
|
10549
10758
|
}, forwardedProps), children);
|
|
10550
10759
|
});
|
|
10551
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
10552
|
-
SlideshowItem.className = CLASSNAME$
|
|
10760
|
+
SlideshowItem.displayName = COMPONENT_NAME$14;
|
|
10761
|
+
SlideshowItem.className = CLASSNAME$11;
|
|
10553
10762
|
|
|
10554
10763
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
10555
10764
|
|
|
@@ -10608,7 +10817,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
10608
10817
|
}, [activeIndex, slideCount]);
|
|
10609
10818
|
}
|
|
10610
10819
|
|
|
10611
|
-
const _excluded$
|
|
10820
|
+
const _excluded$18 = ["activeIndex", "className", "nextButtonProps", "onNextClick", "onPaginationClick", "onPreviousClick", "parentRef", "previousButtonProps", "paginationProps", "slidesCount", "theme", "isAutoPlaying", "playButtonProps", "paginationItemLabel", "paginationItemProps"],
|
|
10612
10821
|
_excluded2$2 = ["className", "label"];
|
|
10613
10822
|
|
|
10614
10823
|
/**
|
|
@@ -10618,12 +10827,12 @@ const _excluded$15 = ["activeIndex", "className", "nextButtonProps", "onNextClic
|
|
|
10618
10827
|
/**
|
|
10619
10828
|
* Component display name.
|
|
10620
10829
|
*/
|
|
10621
|
-
const COMPONENT_NAME$
|
|
10830
|
+
const COMPONENT_NAME$15 = 'SlideshowControls';
|
|
10622
10831
|
|
|
10623
10832
|
/**
|
|
10624
10833
|
* Component default class name and class prefix.
|
|
10625
10834
|
*/
|
|
10626
|
-
const CLASSNAME
|
|
10835
|
+
const CLASSNAME$12 = getRootClassName(COMPONENT_NAME$15);
|
|
10627
10836
|
|
|
10628
10837
|
/**
|
|
10629
10838
|
* Component default props.
|
|
@@ -10658,7 +10867,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10658
10867
|
paginationItemLabel,
|
|
10659
10868
|
paginationItemProps
|
|
10660
10869
|
} = props,
|
|
10661
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10870
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$18);
|
|
10662
10871
|
let parent;
|
|
10663
10872
|
if (WINDOW) {
|
|
10664
10873
|
// Checking window object to avoid errors in SSR.
|
|
@@ -10695,22 +10904,22 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10695
10904
|
ref: ref
|
|
10696
10905
|
}, forwardedProps, {
|
|
10697
10906
|
className: classnames(className, handleBasicClasses({
|
|
10698
|
-
prefix: CLASSNAME
|
|
10907
|
+
prefix: CLASSNAME$12,
|
|
10699
10908
|
theme
|
|
10700
10909
|
}), {
|
|
10701
|
-
[`${CLASSNAME
|
|
10910
|
+
[`${CLASSNAME$12}--has-infinite-pagination`]: slidesCount > PAGINATION_ITEMS_MAX
|
|
10702
10911
|
})
|
|
10703
10912
|
}), /*#__PURE__*/React.createElement(IconButton, _extends({}, previousButtonProps, {
|
|
10704
10913
|
icon: mdiChevronLeft,
|
|
10705
|
-
className: `${CLASSNAME
|
|
10914
|
+
className: `${CLASSNAME$12}__navigation`,
|
|
10706
10915
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10707
10916
|
emphasis: Emphasis.low,
|
|
10708
10917
|
onClick: onPreviousClick
|
|
10709
10918
|
})), /*#__PURE__*/React.createElement("div", {
|
|
10710
10919
|
ref: paginationRef,
|
|
10711
|
-
className: `${CLASSNAME
|
|
10920
|
+
className: `${CLASSNAME$12}__pagination`
|
|
10712
10921
|
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
10713
|
-
className: `${CLASSNAME
|
|
10922
|
+
className: `${CLASSNAME$12}__pagination-items`,
|
|
10714
10923
|
style: wrapperStyle,
|
|
10715
10924
|
role: "tablist"
|
|
10716
10925
|
}, paginationProps), useMemo(() => range(slidesCount).map(index => {
|
|
@@ -10726,7 +10935,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10726
10935
|
const ariaLabel = label || (paginationItemLabel === null || paginationItemLabel === void 0 ? void 0 : paginationItemLabel(index)) || `${index + 1} / ${slidesCount}`;
|
|
10727
10936
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
10728
10937
|
className: classnames(handleBasicClasses({
|
|
10729
|
-
prefix: `${CLASSNAME
|
|
10938
|
+
prefix: `${CLASSNAME$12}__pagination-item`,
|
|
10730
10939
|
isActive,
|
|
10731
10940
|
isOnEdge,
|
|
10732
10941
|
isOutRange
|
|
@@ -10741,35 +10950,35 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10741
10950
|
}, itemProps));
|
|
10742
10951
|
}), [slidesCount, visibleRange.min, visibleRange.max, activeIndex, paginationItemProps, paginationItemLabel, onPaginationClick]))), playButtonProps ? /*#__PURE__*/React.createElement(IconButton, _extends({}, playButtonProps, {
|
|
10743
10952
|
icon: isAutoPlaying ? mdiPauseCircleOutline : mdiPlayCircleOutline,
|
|
10744
|
-
className: `${CLASSNAME
|
|
10953
|
+
className: `${CLASSNAME$12}__play`,
|
|
10745
10954
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10746
10955
|
emphasis: Emphasis.low
|
|
10747
10956
|
})) : null, /*#__PURE__*/React.createElement(IconButton, _extends({}, nextButtonProps, {
|
|
10748
10957
|
icon: mdiChevronRight,
|
|
10749
|
-
className: `${CLASSNAME
|
|
10958
|
+
className: `${CLASSNAME$12}__navigation`,
|
|
10750
10959
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10751
10960
|
emphasis: Emphasis.low,
|
|
10752
10961
|
onClick: onNextClick
|
|
10753
10962
|
})));
|
|
10754
10963
|
});
|
|
10755
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
10756
|
-
InternalSlideshowControls.className = CLASSNAME
|
|
10964
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$15;
|
|
10965
|
+
InternalSlideshowControls.className = CLASSNAME$12;
|
|
10757
10966
|
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$Q;
|
|
10758
10967
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
10759
10968
|
useSlideshowControls,
|
|
10760
10969
|
useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS$1
|
|
10761
10970
|
});
|
|
10762
10971
|
|
|
10763
|
-
const _excluded$
|
|
10972
|
+
const _excluded$19 = ["activeIndex", "id", "className", "theme", "fillHeight", "groupBy", "isAutoPlaying", "toggleAutoPlay", "slidesId", "children", "afterSlides", "hasControls", "slideGroupLabel"];
|
|
10764
10973
|
/**
|
|
10765
10974
|
* Component display name.
|
|
10766
10975
|
*/
|
|
10767
|
-
const COMPONENT_NAME$
|
|
10976
|
+
const COMPONENT_NAME$16 = 'Slideshow';
|
|
10768
10977
|
|
|
10769
10978
|
/**
|
|
10770
10979
|
* Component default class name and class prefix.
|
|
10771
10980
|
*/
|
|
10772
|
-
const CLASSNAME$
|
|
10981
|
+
const CLASSNAME$13 = getRootClassName(COMPONENT_NAME$16);
|
|
10773
10982
|
|
|
10774
10983
|
/**
|
|
10775
10984
|
* Slides component.
|
|
@@ -10794,7 +11003,7 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10794
11003
|
hasControls,
|
|
10795
11004
|
slideGroupLabel
|
|
10796
11005
|
} = props,
|
|
10797
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11006
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$19);
|
|
10798
11007
|
const wrapperRef = React.useRef(null);
|
|
10799
11008
|
const startIndexVisible = activeIndex;
|
|
10800
11009
|
const endIndexVisible = startIndexVisible + 1;
|
|
@@ -10812,22 +11021,22 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10812
11021
|
ref: ref
|
|
10813
11022
|
}, forwardedProps, {
|
|
10814
11023
|
className: classnames(className, handleBasicClasses({
|
|
10815
|
-
prefix: CLASSNAME$
|
|
11024
|
+
prefix: CLASSNAME$13,
|
|
10816
11025
|
theme
|
|
10817
11026
|
}), {
|
|
10818
|
-
[`${CLASSNAME$
|
|
10819
|
-
[`${CLASSNAME$
|
|
11027
|
+
[`${CLASSNAME$13}--fill-height`]: fillHeight,
|
|
11028
|
+
[`${CLASSNAME$13}--group-by-${groupBy}`]: Boolean(groupBy)
|
|
10820
11029
|
}),
|
|
10821
11030
|
"aria-roledescription": "carousel"
|
|
10822
11031
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10823
11032
|
id: slidesId,
|
|
10824
|
-
className: `${CLASSNAME$
|
|
11033
|
+
className: `${CLASSNAME$13}__slides`,
|
|
10825
11034
|
onMouseEnter: toggleAutoPlay,
|
|
10826
11035
|
onMouseLeave: toggleAutoPlay,
|
|
10827
11036
|
"aria-live": isAutoPlaying ? 'off' : 'polite'
|
|
10828
11037
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10829
11038
|
ref: wrapperRef,
|
|
10830
|
-
className: `${CLASSNAME$
|
|
11039
|
+
className: `${CLASSNAME$13}__wrapper`,
|
|
10831
11040
|
style: wrapperStyle
|
|
10832
11041
|
}, groups.map((group, index) => /*#__PURE__*/React.createElement(SlideshowItemGroup, {
|
|
10833
11042
|
key: index,
|
|
@@ -10837,10 +11046,10 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10837
11046
|
isDisplayed: index >= startIndexVisible && index < endIndexVisible
|
|
10838
11047
|
}, group)))), afterSlides);
|
|
10839
11048
|
});
|
|
10840
|
-
Slides.displayName = COMPONENT_NAME$
|
|
10841
|
-
Slides.className = CLASSNAME$
|
|
11049
|
+
Slides.displayName = COMPONENT_NAME$16;
|
|
11050
|
+
Slides.className = CLASSNAME$13;
|
|
10842
11051
|
|
|
10843
|
-
const _excluded$
|
|
11052
|
+
const _excluded$1a = ["checked", "children", "className", "disabled", "helper", "id", "isChecked", "isDisabled", "name", "onChange", "position", "theme", "value", "inputProps"];
|
|
10844
11053
|
|
|
10845
11054
|
/**
|
|
10846
11055
|
* Defines the props of the component.
|
|
@@ -10849,12 +11058,12 @@ const _excluded$17 = ["checked", "children", "className", "disabled", "helper",
|
|
|
10849
11058
|
/**
|
|
10850
11059
|
* Component display name.
|
|
10851
11060
|
*/
|
|
10852
|
-
const COMPONENT_NAME$
|
|
11061
|
+
const COMPONENT_NAME$17 = 'Switch';
|
|
10853
11062
|
|
|
10854
11063
|
/**
|
|
10855
11064
|
* Component default class name and class prefix.
|
|
10856
11065
|
*/
|
|
10857
|
-
const CLASSNAME$
|
|
11066
|
+
const CLASSNAME$14 = getRootClassName(COMPONENT_NAME$17);
|
|
10858
11067
|
|
|
10859
11068
|
/**
|
|
10860
11069
|
* Component default props.
|
|
@@ -10888,7 +11097,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10888
11097
|
value,
|
|
10889
11098
|
inputProps = {}
|
|
10890
11099
|
} = props,
|
|
10891
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11100
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1a);
|
|
10892
11101
|
const inputId = useMemo(() => id || `switch-${uid()}`, [id]);
|
|
10893
11102
|
const handleChange = event => {
|
|
10894
11103
|
if (onChange) {
|
|
@@ -10899,7 +11108,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10899
11108
|
ref: ref
|
|
10900
11109
|
}, forwardedProps, {
|
|
10901
11110
|
className: classnames(className, handleBasicClasses({
|
|
10902
|
-
prefix: CLASSNAME$
|
|
11111
|
+
prefix: CLASSNAME$14,
|
|
10903
11112
|
isChecked,
|
|
10904
11113
|
isDisabled,
|
|
10905
11114
|
position,
|
|
@@ -10908,12 +11117,12 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10908
11117
|
})),
|
|
10909
11118
|
"aria-disabled": isDisabled
|
|
10910
11119
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10911
|
-
className: `${CLASSNAME$
|
|
11120
|
+
className: `${CLASSNAME$14}__input-wrapper`
|
|
10912
11121
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
10913
11122
|
type: "checkbox",
|
|
10914
11123
|
role: "switch",
|
|
10915
11124
|
id: inputId,
|
|
10916
|
-
className: `${CLASSNAME$
|
|
11125
|
+
className: `${CLASSNAME$14}__input-native`,
|
|
10917
11126
|
name: name,
|
|
10918
11127
|
value: value,
|
|
10919
11128
|
disabled: isDisabled,
|
|
@@ -10922,28 +11131,28 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10922
11131
|
onChange: handleChange,
|
|
10923
11132
|
"aria-describedby": helper ? `${inputId}-helper` : undefined
|
|
10924
11133
|
}, inputProps)), /*#__PURE__*/React.createElement("div", {
|
|
10925
|
-
className: `${CLASSNAME$
|
|
11134
|
+
className: `${CLASSNAME$14}__input-placeholder`
|
|
10926
11135
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10927
|
-
className: `${CLASSNAME$
|
|
11136
|
+
className: `${CLASSNAME$14}__input-background`
|
|
10928
11137
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10929
|
-
className: `${CLASSNAME$
|
|
11138
|
+
className: `${CLASSNAME$14}__input-indicator`
|
|
10930
11139
|
}))), Children.count(children) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
10931
|
-
className: `${CLASSNAME$
|
|
11140
|
+
className: `${CLASSNAME$14}__content`
|
|
10932
11141
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
10933
11142
|
htmlFor: inputId,
|
|
10934
11143
|
theme: theme,
|
|
10935
|
-
className: `${CLASSNAME$
|
|
11144
|
+
className: `${CLASSNAME$14}__label`
|
|
10936
11145
|
}, children), !isEmpty(helper) && /*#__PURE__*/React.createElement(InputHelper, {
|
|
10937
11146
|
id: `${inputId}-helper`,
|
|
10938
11147
|
theme: theme,
|
|
10939
|
-
className: `${CLASSNAME$
|
|
11148
|
+
className: `${CLASSNAME$14}__helper`
|
|
10940
11149
|
}, helper)));
|
|
10941
11150
|
});
|
|
10942
|
-
Switch.displayName = COMPONENT_NAME$
|
|
10943
|
-
Switch.className = CLASSNAME$
|
|
11151
|
+
Switch.displayName = COMPONENT_NAME$17;
|
|
11152
|
+
Switch.className = CLASSNAME$14;
|
|
10944
11153
|
Switch.defaultProps = DEFAULT_PROPS$R;
|
|
10945
11154
|
|
|
10946
|
-
const _excluded$
|
|
11155
|
+
const _excluded$1b = ["children", "className", "hasBefore", "hasDividers", "theme"];
|
|
10947
11156
|
|
|
10948
11157
|
/**
|
|
10949
11158
|
* Defines the props of the component.
|
|
@@ -10952,12 +11161,12 @@ const _excluded$18 = ["children", "className", "hasBefore", "hasDividers", "them
|
|
|
10952
11161
|
/**
|
|
10953
11162
|
* Component display name.
|
|
10954
11163
|
*/
|
|
10955
|
-
const COMPONENT_NAME$
|
|
11164
|
+
const COMPONENT_NAME$18 = 'Table';
|
|
10956
11165
|
|
|
10957
11166
|
/**
|
|
10958
11167
|
* Component default class name and class prefix.
|
|
10959
11168
|
*/
|
|
10960
|
-
const CLASSNAME$
|
|
11169
|
+
const CLASSNAME$15 = getRootClassName(COMPONENT_NAME$18);
|
|
10961
11170
|
|
|
10962
11171
|
/**
|
|
10963
11172
|
* Component default props.
|
|
@@ -10981,23 +11190,23 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10981
11190
|
hasDividers,
|
|
10982
11191
|
theme
|
|
10983
11192
|
} = props,
|
|
10984
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11193
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1b);
|
|
10985
11194
|
return /*#__PURE__*/React.createElement("table", _extends({
|
|
10986
11195
|
ref: ref
|
|
10987
11196
|
}, forwardedProps, {
|
|
10988
11197
|
className: classnames(className, handleBasicClasses({
|
|
10989
|
-
prefix: CLASSNAME$
|
|
11198
|
+
prefix: CLASSNAME$15,
|
|
10990
11199
|
hasBefore,
|
|
10991
11200
|
hasDividers,
|
|
10992
11201
|
theme
|
|
10993
11202
|
}))
|
|
10994
11203
|
}), children);
|
|
10995
11204
|
});
|
|
10996
|
-
Table.displayName = COMPONENT_NAME$
|
|
10997
|
-
Table.className = CLASSNAME$
|
|
11205
|
+
Table.displayName = COMPONENT_NAME$18;
|
|
11206
|
+
Table.className = CLASSNAME$15;
|
|
10998
11207
|
Table.defaultProps = DEFAULT_PROPS$S;
|
|
10999
11208
|
|
|
11000
|
-
const _excluded$
|
|
11209
|
+
const _excluded$1c = ["children", "className"];
|
|
11001
11210
|
|
|
11002
11211
|
/**
|
|
11003
11212
|
* Defines the props of the component.
|
|
@@ -11006,12 +11215,12 @@ const _excluded$19 = ["children", "className"];
|
|
|
11006
11215
|
/**
|
|
11007
11216
|
* Component display name.
|
|
11008
11217
|
*/
|
|
11009
|
-
const COMPONENT_NAME$
|
|
11218
|
+
const COMPONENT_NAME$19 = 'TableBody';
|
|
11010
11219
|
|
|
11011
11220
|
/**
|
|
11012
11221
|
* Component default class name and class prefix.
|
|
11013
11222
|
*/
|
|
11014
|
-
const CLASSNAME$
|
|
11223
|
+
const CLASSNAME$16 = getRootClassName(COMPONENT_NAME$19, true);
|
|
11015
11224
|
|
|
11016
11225
|
/**
|
|
11017
11226
|
* TableBody component.
|
|
@@ -11025,19 +11234,19 @@ const TableBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11025
11234
|
children,
|
|
11026
11235
|
className
|
|
11027
11236
|
} = props,
|
|
11028
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11237
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1c);
|
|
11029
11238
|
return /*#__PURE__*/React.createElement("tbody", _extends({
|
|
11030
11239
|
ref: ref
|
|
11031
11240
|
}, forwardedProps, {
|
|
11032
11241
|
className: classnames(className, handleBasicClasses({
|
|
11033
|
-
prefix: CLASSNAME$
|
|
11242
|
+
prefix: CLASSNAME$16
|
|
11034
11243
|
}))
|
|
11035
11244
|
}), children);
|
|
11036
11245
|
});
|
|
11037
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
11038
|
-
TableBody.className = CLASSNAME$
|
|
11246
|
+
TableBody.displayName = COMPONENT_NAME$19;
|
|
11247
|
+
TableBody.className = CLASSNAME$16;
|
|
11039
11248
|
|
|
11040
|
-
const _excluded$
|
|
11249
|
+
const _excluded$1d = ["children", "className", "icon", "isSortable", "onHeaderClick", "sortOrder", "variant"];
|
|
11041
11250
|
|
|
11042
11251
|
/**
|
|
11043
11252
|
* Table head cell sort order.
|
|
@@ -11056,12 +11265,12 @@ const TableCellVariant = {
|
|
|
11056
11265
|
/**
|
|
11057
11266
|
* Component display name.
|
|
11058
11267
|
*/
|
|
11059
|
-
const COMPONENT_NAME$
|
|
11268
|
+
const COMPONENT_NAME$1a = 'TableCell';
|
|
11060
11269
|
|
|
11061
11270
|
/**
|
|
11062
11271
|
* Component default class name and class prefix.
|
|
11063
11272
|
*/
|
|
11064
|
-
const CLASSNAME$
|
|
11273
|
+
const CLASSNAME$17 = getRootClassName(COMPONENT_NAME$1a, true);
|
|
11065
11274
|
|
|
11066
11275
|
/**
|
|
11067
11276
|
* Component default props.
|
|
@@ -11087,7 +11296,7 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11087
11296
|
sortOrder,
|
|
11088
11297
|
variant
|
|
11089
11298
|
} = props,
|
|
11090
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11299
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1d);
|
|
11091
11300
|
|
|
11092
11301
|
/**
|
|
11093
11302
|
* Handle click on the ordered thead.
|
|
@@ -11101,43 +11310,43 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11101
11310
|
ref: ref
|
|
11102
11311
|
}, forwardedProps, {
|
|
11103
11312
|
className: classnames(handleBasicClasses({
|
|
11104
|
-
prefix: CLASSNAME$
|
|
11313
|
+
prefix: CLASSNAME$17,
|
|
11105
11314
|
isSortable
|
|
11106
|
-
}), className, `${CLASSNAME$
|
|
11107
|
-
[`${CLASSNAME$
|
|
11315
|
+
}), className, `${CLASSNAME$17}--head`, {
|
|
11316
|
+
[`${CLASSNAME$17}--is-sorted`]: isSortable && sortOrder
|
|
11108
11317
|
}),
|
|
11109
11318
|
tabIndex: isSortable && isFunction(onHeaderClick) ? 0 : -1,
|
|
11110
11319
|
onClick: handleOnHeaderClick,
|
|
11111
11320
|
onKeyDown: onEnterPressed(handleOnHeaderClick)
|
|
11112
11321
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11113
|
-
className: `${CLASSNAME$
|
|
11322
|
+
className: `${CLASSNAME$17}-wrapper`
|
|
11114
11323
|
}, icon && !isSortable && /*#__PURE__*/React.createElement(Icon, {
|
|
11115
|
-
className: `${CLASSNAME$
|
|
11324
|
+
className: `${CLASSNAME$17}-icon`,
|
|
11116
11325
|
icon: icon,
|
|
11117
11326
|
size: Size.xxs
|
|
11118
11327
|
}), isSortable && sortOrder === ThOrder.asc && /*#__PURE__*/React.createElement(Icon, {
|
|
11119
|
-
className: `${CLASSNAME$
|
|
11328
|
+
className: `${CLASSNAME$17}-icon`,
|
|
11120
11329
|
icon: mdiArrowUp,
|
|
11121
11330
|
size: Size.xxs
|
|
11122
11331
|
}), isSortable && sortOrder === ThOrder.desc && /*#__PURE__*/React.createElement(Icon, {
|
|
11123
|
-
className: `${CLASSNAME$
|
|
11332
|
+
className: `${CLASSNAME$17}-icon`,
|
|
11124
11333
|
icon: mdiArrowDown,
|
|
11125
11334
|
size: Size.xxs
|
|
11126
11335
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11127
|
-
className: `${CLASSNAME$
|
|
11336
|
+
className: `${CLASSNAME$17}-content`
|
|
11128
11337
|
}, children))), variant === TableCellVariant.body && /*#__PURE__*/React.createElement("td", _extends({}, forwardedProps, {
|
|
11129
11338
|
className: classnames(className, handleBasicClasses({
|
|
11130
|
-
prefix: CLASSNAME$
|
|
11131
|
-
}), `${CLASSNAME$
|
|
11339
|
+
prefix: CLASSNAME$17
|
|
11340
|
+
}), `${CLASSNAME$17}--body`)
|
|
11132
11341
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11133
|
-
className: `${CLASSNAME$
|
|
11342
|
+
className: `${CLASSNAME$17}-content`
|
|
11134
11343
|
}, children)));
|
|
11135
11344
|
});
|
|
11136
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
11137
|
-
TableCell.className = CLASSNAME$
|
|
11345
|
+
TableCell.displayName = COMPONENT_NAME$1a;
|
|
11346
|
+
TableCell.className = CLASSNAME$17;
|
|
11138
11347
|
TableCell.defaultProps = DEFAULT_PROPS$T;
|
|
11139
11348
|
|
|
11140
|
-
const _excluded$
|
|
11349
|
+
const _excluded$1e = ["children", "className"];
|
|
11141
11350
|
|
|
11142
11351
|
/**
|
|
11143
11352
|
* Defines the props of the component.
|
|
@@ -11146,12 +11355,12 @@ const _excluded$1b = ["children", "className"];
|
|
|
11146
11355
|
/**
|
|
11147
11356
|
* Component display name.
|
|
11148
11357
|
*/
|
|
11149
|
-
const COMPONENT_NAME$
|
|
11358
|
+
const COMPONENT_NAME$1b = 'TableHeader';
|
|
11150
11359
|
|
|
11151
11360
|
/**
|
|
11152
11361
|
* Component default class name and class prefix.
|
|
11153
11362
|
*/
|
|
11154
|
-
const CLASSNAME$
|
|
11363
|
+
const CLASSNAME$18 = getRootClassName(COMPONENT_NAME$1b, true);
|
|
11155
11364
|
|
|
11156
11365
|
/**
|
|
11157
11366
|
* Component default props.
|
|
@@ -11170,20 +11379,20 @@ const TableHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11170
11379
|
children,
|
|
11171
11380
|
className
|
|
11172
11381
|
} = props,
|
|
11173
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11382
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1e);
|
|
11174
11383
|
return /*#__PURE__*/React.createElement("thead", _extends({
|
|
11175
11384
|
ref: ref
|
|
11176
11385
|
}, forwardedProps, {
|
|
11177
11386
|
className: classnames(className, handleBasicClasses({
|
|
11178
|
-
prefix: CLASSNAME$
|
|
11387
|
+
prefix: CLASSNAME$18
|
|
11179
11388
|
}))
|
|
11180
11389
|
}), children);
|
|
11181
11390
|
});
|
|
11182
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
11183
|
-
TableHeader.className = CLASSNAME$
|
|
11391
|
+
TableHeader.displayName = COMPONENT_NAME$1b;
|
|
11392
|
+
TableHeader.className = CLASSNAME$18;
|
|
11184
11393
|
TableHeader.defaultProps = DEFAULT_PROPS$U;
|
|
11185
11394
|
|
|
11186
|
-
const _excluded$
|
|
11395
|
+
const _excluded$1f = ["children", "className", "disabled", "isClickable", "isDisabled", "isSelected"];
|
|
11187
11396
|
|
|
11188
11397
|
/**
|
|
11189
11398
|
* Defines the props of the component.
|
|
@@ -11192,12 +11401,12 @@ const _excluded$1c = ["children", "className", "disabled", "isClickable", "isDis
|
|
|
11192
11401
|
/**
|
|
11193
11402
|
* Component display name.
|
|
11194
11403
|
*/
|
|
11195
|
-
const COMPONENT_NAME$
|
|
11404
|
+
const COMPONENT_NAME$1c = 'TableRow';
|
|
11196
11405
|
|
|
11197
11406
|
/**
|
|
11198
11407
|
* Component default class name and class prefix.
|
|
11199
11408
|
*/
|
|
11200
|
-
const CLASSNAME$
|
|
11409
|
+
const CLASSNAME$19 = getRootClassName(COMPONENT_NAME$1c, true);
|
|
11201
11410
|
|
|
11202
11411
|
/**
|
|
11203
11412
|
* Component default props.
|
|
@@ -11220,7 +11429,7 @@ const TableRow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11220
11429
|
isDisabled = disabled,
|
|
11221
11430
|
isSelected
|
|
11222
11431
|
} = props,
|
|
11223
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11432
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1f);
|
|
11224
11433
|
return /*#__PURE__*/React.createElement("tr", _extends({
|
|
11225
11434
|
ref: ref,
|
|
11226
11435
|
tabIndex: isClickable && !isDisabled ? 0 : -1
|
|
@@ -11229,16 +11438,16 @@ const TableRow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11229
11438
|
isClickable: isClickable && !isDisabled,
|
|
11230
11439
|
isDisabled,
|
|
11231
11440
|
isSelected: isSelected && !isDisabled,
|
|
11232
|
-
prefix: CLASSNAME$
|
|
11441
|
+
prefix: CLASSNAME$19
|
|
11233
11442
|
})),
|
|
11234
11443
|
"aria-disabled": isDisabled
|
|
11235
11444
|
}), children);
|
|
11236
11445
|
});
|
|
11237
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
11238
|
-
TableRow.className = CLASSNAME$
|
|
11446
|
+
TableRow.displayName = COMPONENT_NAME$1c;
|
|
11447
|
+
TableRow.className = CLASSNAME$19;
|
|
11239
11448
|
TableRow.defaultProps = DEFAULT_PROPS$V;
|
|
11240
11449
|
|
|
11241
|
-
const _excluded$
|
|
11450
|
+
const _excluded$1g = ["children", "onChange"];
|
|
11242
11451
|
const DEFAULT_PROPS$W = {
|
|
11243
11452
|
isLazy: INIT_STATE.isLazy,
|
|
11244
11453
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
@@ -11258,7 +11467,7 @@ const TabProvider = props => {
|
|
|
11258
11467
|
children,
|
|
11259
11468
|
onChange
|
|
11260
11469
|
} = props,
|
|
11261
|
-
propState = _objectWithoutProperties(props, _excluded$
|
|
11470
|
+
propState = _objectWithoutProperties(props, _excluded$1g);
|
|
11262
11471
|
const [state, dispatch] = useReducer(reducer, INIT_STATE);
|
|
11263
11472
|
|
|
11264
11473
|
// On prop state change => dispatch update.
|
|
@@ -11286,7 +11495,7 @@ const TabProvider = props => {
|
|
|
11286
11495
|
};
|
|
11287
11496
|
TabProvider.defaultProps = DEFAULT_PROPS$W;
|
|
11288
11497
|
|
|
11289
|
-
const _excluded$
|
|
11498
|
+
const _excluded$1h = ["aria-label", "children", "className", "layout", "position", "theme"];
|
|
11290
11499
|
let TabListLayout;
|
|
11291
11500
|
|
|
11292
11501
|
/**
|
|
@@ -11299,12 +11508,12 @@ let TabListLayout;
|
|
|
11299
11508
|
/**
|
|
11300
11509
|
* Component display name.
|
|
11301
11510
|
*/
|
|
11302
|
-
const COMPONENT_NAME$
|
|
11511
|
+
const COMPONENT_NAME$1d = 'TabList';
|
|
11303
11512
|
|
|
11304
11513
|
/**
|
|
11305
11514
|
* Component default class name and class prefix.
|
|
11306
11515
|
*/
|
|
11307
|
-
const CLASSNAME$
|
|
11516
|
+
const CLASSNAME$1a = `${CSS_PREFIX}-tabs`;
|
|
11308
11517
|
|
|
11309
11518
|
/**
|
|
11310
11519
|
* Component default props.
|
|
@@ -11333,7 +11542,7 @@ const TabList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11333
11542
|
position,
|
|
11334
11543
|
theme
|
|
11335
11544
|
} = props,
|
|
11336
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11545
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1h);
|
|
11337
11546
|
const tabListRef = React.useRef(null);
|
|
11338
11547
|
useRovingTabIndex({
|
|
11339
11548
|
parentRef: tabListRef,
|
|
@@ -11345,22 +11554,22 @@ const TabList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11345
11554
|
ref: mergeRefs(ref, tabListRef)
|
|
11346
11555
|
}, forwardedProps, {
|
|
11347
11556
|
className: classnames(className, handleBasicClasses({
|
|
11348
|
-
prefix: CLASSNAME$
|
|
11557
|
+
prefix: CLASSNAME$1a,
|
|
11349
11558
|
layout,
|
|
11350
11559
|
position,
|
|
11351
11560
|
theme
|
|
11352
11561
|
}))
|
|
11353
11562
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11354
|
-
className: `${CLASSNAME$
|
|
11563
|
+
className: `${CLASSNAME$1a}__links`,
|
|
11355
11564
|
role: "tablist",
|
|
11356
11565
|
"aria-label": ariaLabel
|
|
11357
11566
|
}, children));
|
|
11358
11567
|
});
|
|
11359
|
-
TabList.displayName = COMPONENT_NAME$
|
|
11360
|
-
TabList.className = CLASSNAME$
|
|
11568
|
+
TabList.displayName = COMPONENT_NAME$1d;
|
|
11569
|
+
TabList.className = CLASSNAME$1a;
|
|
11361
11570
|
TabList.defaultProps = DEFAULT_PROPS$X;
|
|
11362
11571
|
|
|
11363
|
-
const _excluded$
|
|
11572
|
+
const _excluded$1i = ["className", "disabled", "icon", "id", "isActive", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
|
|
11364
11573
|
|
|
11365
11574
|
/**
|
|
11366
11575
|
* Defines the props of the component.
|
|
@@ -11369,12 +11578,12 @@ const _excluded$1f = ["className", "disabled", "icon", "id", "isActive", "isDisa
|
|
|
11369
11578
|
/**
|
|
11370
11579
|
* Component display name.
|
|
11371
11580
|
*/
|
|
11372
|
-
const COMPONENT_NAME$
|
|
11581
|
+
const COMPONENT_NAME$1e = 'Tab';
|
|
11373
11582
|
|
|
11374
11583
|
/**
|
|
11375
11584
|
* Component default class name and class prefix.
|
|
11376
11585
|
*/
|
|
11377
|
-
const CLASSNAME$
|
|
11586
|
+
const CLASSNAME$1b = `${CSS_PREFIX}-tabs__link`;
|
|
11378
11587
|
|
|
11379
11588
|
/**
|
|
11380
11589
|
* Component default props.
|
|
@@ -11403,7 +11612,7 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11403
11612
|
onKeyPress,
|
|
11404
11613
|
tabIndex = -1
|
|
11405
11614
|
} = props,
|
|
11406
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11615
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1i);
|
|
11407
11616
|
const state = useTabProviderContext('tab', id);
|
|
11408
11617
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
11409
11618
|
const changeToCurrentTab = useCallback(() => {
|
|
@@ -11431,7 +11640,7 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11431
11640
|
type: "button",
|
|
11432
11641
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
11433
11642
|
className: classnames(className, handleBasicClasses({
|
|
11434
|
-
prefix: CLASSNAME$
|
|
11643
|
+
prefix: CLASSNAME$1b,
|
|
11435
11644
|
isActive,
|
|
11436
11645
|
isDisabled
|
|
11437
11646
|
})),
|
|
@@ -11448,11 +11657,11 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11448
11657
|
size: Size.xs
|
|
11449
11658
|
}), label && /*#__PURE__*/React.createElement("span", null, label));
|
|
11450
11659
|
});
|
|
11451
|
-
Tab.displayName = COMPONENT_NAME$
|
|
11452
|
-
Tab.className = CLASSNAME$
|
|
11660
|
+
Tab.displayName = COMPONENT_NAME$1e;
|
|
11661
|
+
Tab.className = CLASSNAME$1b;
|
|
11453
11662
|
Tab.defaultProps = DEFAULT_PROPS$Y;
|
|
11454
11663
|
|
|
11455
|
-
const _excluded$
|
|
11664
|
+
const _excluded$1j = ["children", "id", "className", "isActive"];
|
|
11456
11665
|
|
|
11457
11666
|
/**
|
|
11458
11667
|
* Defines the props of the component.
|
|
@@ -11461,12 +11670,12 @@ const _excluded$1g = ["children", "id", "className", "isActive"];
|
|
|
11461
11670
|
/**
|
|
11462
11671
|
* Component display name.
|
|
11463
11672
|
*/
|
|
11464
|
-
const COMPONENT_NAME$
|
|
11673
|
+
const COMPONENT_NAME$1f = 'TabPanel';
|
|
11465
11674
|
|
|
11466
11675
|
/**
|
|
11467
11676
|
* Component default class name and class prefix.
|
|
11468
11677
|
*/
|
|
11469
|
-
const CLASSNAME$
|
|
11678
|
+
const CLASSNAME$1c = `${CSS_PREFIX}-tab-panel`;
|
|
11470
11679
|
|
|
11471
11680
|
/**
|
|
11472
11681
|
* Component default props.
|
|
@@ -11489,7 +11698,7 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11489
11698
|
className,
|
|
11490
11699
|
isActive: propIsActive
|
|
11491
11700
|
} = props,
|
|
11492
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11701
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1j);
|
|
11493
11702
|
const state = useTabProviderContext('tabPanel', id);
|
|
11494
11703
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
11495
11704
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -11497,7 +11706,7 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11497
11706
|
}, forwardedProps, {
|
|
11498
11707
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
11499
11708
|
className: classnames(className, handleBasicClasses({
|
|
11500
|
-
prefix: CLASSNAME$
|
|
11709
|
+
prefix: CLASSNAME$1c,
|
|
11501
11710
|
isActive
|
|
11502
11711
|
})),
|
|
11503
11712
|
role: "tabpanel",
|
|
@@ -11505,11 +11714,11 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11505
11714
|
"aria-labelledby": state === null || state === void 0 ? void 0 : state.tabId
|
|
11506
11715
|
}), (!(state !== null && state !== void 0 && state.isLazy) || isActive) && children);
|
|
11507
11716
|
});
|
|
11508
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
11509
|
-
TabPanel.className = CLASSNAME$
|
|
11717
|
+
TabPanel.displayName = COMPONENT_NAME$1f;
|
|
11718
|
+
TabPanel.className = CLASSNAME$1c;
|
|
11510
11719
|
TabPanel.defaultProps = DEFAULT_PROPS$Z;
|
|
11511
11720
|
|
|
11512
|
-
const _excluded$
|
|
11721
|
+
const _excluded$1k = ["id", "isDisabled", "isRequired", "placeholder", "multiline", "value", "setFocus", "onChange", "onFocus", "onBlur", "inputRef", "rows", "recomputeNumberOfRows", "type", "name"],
|
|
11513
11722
|
_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"];
|
|
11514
11723
|
|
|
11515
11724
|
/**
|
|
@@ -11519,12 +11728,12 @@ const _excluded$1h = ["id", "isDisabled", "isRequired", "placeholder", "multilin
|
|
|
11519
11728
|
/**
|
|
11520
11729
|
* Component display name.
|
|
11521
11730
|
*/
|
|
11522
|
-
const COMPONENT_NAME$
|
|
11731
|
+
const COMPONENT_NAME$1g = 'TextField';
|
|
11523
11732
|
|
|
11524
11733
|
/**
|
|
11525
11734
|
* Component default class name and class prefix.
|
|
11526
11735
|
*/
|
|
11527
|
-
const CLASSNAME$
|
|
11736
|
+
const CLASSNAME$1d = getRootClassName(COMPONENT_NAME$1g);
|
|
11528
11737
|
|
|
11529
11738
|
/**
|
|
11530
11739
|
* Default minimum number of rows in the multiline mode.
|
|
@@ -11592,7 +11801,7 @@ const renderInputNative = props => {
|
|
|
11592
11801
|
type,
|
|
11593
11802
|
name
|
|
11594
11803
|
} = props,
|
|
11595
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11804
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1k);
|
|
11596
11805
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11597
11806
|
const ref = useRef(null);
|
|
11598
11807
|
|
|
@@ -11617,7 +11826,7 @@ const renderInputNative = props => {
|
|
|
11617
11826
|
const Component = multiline ? 'textarea' : 'input';
|
|
11618
11827
|
const inputProps = _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
11619
11828
|
id,
|
|
11620
|
-
className: multiline ? `${CLASSNAME$
|
|
11829
|
+
className: multiline ? `${CLASSNAME$1d}__input-native ${CLASSNAME$1d}__input-native--textarea` : `${CLASSNAME$1d}__input-native ${CLASSNAME$1d}__input-native--text`,
|
|
11621
11830
|
placeholder,
|
|
11622
11831
|
value,
|
|
11623
11832
|
name,
|
|
@@ -11711,31 +11920,31 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11711
11920
|
isDisabled,
|
|
11712
11921
|
isFocus: isFocus || forceFocusStyle,
|
|
11713
11922
|
isValid,
|
|
11714
|
-
prefix: CLASSNAME$
|
|
11923
|
+
prefix: CLASSNAME$1d,
|
|
11715
11924
|
theme
|
|
11716
11925
|
}))
|
|
11717
11926
|
}, (label || maxLength) && /*#__PURE__*/React.createElement("div", {
|
|
11718
|
-
className: `${CLASSNAME$
|
|
11927
|
+
className: `${CLASSNAME$1d}__header`
|
|
11719
11928
|
}, label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
11720
11929
|
htmlFor: textFieldId,
|
|
11721
|
-
className: `${CLASSNAME$
|
|
11930
|
+
className: `${CLASSNAME$1d}__label`,
|
|
11722
11931
|
isRequired: isRequired,
|
|
11723
11932
|
theme: theme
|
|
11724
11933
|
}, label), maxLength && /*#__PURE__*/React.createElement("div", {
|
|
11725
|
-
className: `${CLASSNAME$
|
|
11934
|
+
className: `${CLASSNAME$1d}__char-counter`
|
|
11726
11935
|
}, /*#__PURE__*/React.createElement("span", null, maxLength - valueLength), maxLength - valueLength === 0 && /*#__PURE__*/React.createElement(Icon, {
|
|
11727
11936
|
icon: mdiAlertCircle,
|
|
11728
11937
|
size: Size.xxs
|
|
11729
11938
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
11730
|
-
className: `${CLASSNAME$
|
|
11939
|
+
className: `${CLASSNAME$1d}__wrapper`,
|
|
11731
11940
|
ref: textFieldRef
|
|
11732
11941
|
}, icon && /*#__PURE__*/React.createElement(Icon, {
|
|
11733
|
-
className: `${CLASSNAME$
|
|
11942
|
+
className: `${CLASSNAME$1d}__input-icon`,
|
|
11734
11943
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11735
11944
|
icon: icon,
|
|
11736
11945
|
size: Size.xs
|
|
11737
11946
|
}), chips && /*#__PURE__*/React.createElement("div", {
|
|
11738
|
-
className: `${CLASSNAME$
|
|
11947
|
+
className: `${CLASSNAME$1d}__chips`
|
|
11739
11948
|
}, chips, renderInputNative(_objectSpread2({
|
|
11740
11949
|
id: textFieldId,
|
|
11741
11950
|
inputRef,
|
|
@@ -11754,7 +11963,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11754
11963
|
value,
|
|
11755
11964
|
name
|
|
11756
11965
|
}, forwardedProps))), !chips && /*#__PURE__*/React.createElement("div", {
|
|
11757
|
-
className: `${CLASSNAME$
|
|
11966
|
+
className: `${CLASSNAME$1d}__input-wrapper`
|
|
11758
11967
|
}, renderInputNative(_objectSpread2({
|
|
11759
11968
|
id: textFieldId,
|
|
11760
11969
|
inputRef,
|
|
@@ -11773,12 +11982,12 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11773
11982
|
value,
|
|
11774
11983
|
name
|
|
11775
11984
|
}, forwardedProps))), (isValid || hasError) && /*#__PURE__*/React.createElement(Icon, {
|
|
11776
|
-
className: `${CLASSNAME$
|
|
11985
|
+
className: `${CLASSNAME$1d}__input-validity`,
|
|
11777
11986
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11778
11987
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
11779
11988
|
size: Size.xxs
|
|
11780
11989
|
}), clearButtonProps && isNotEmpty && /*#__PURE__*/React.createElement(IconButton, _extends({}, clearButtonProps, {
|
|
11781
|
-
className: `${CLASSNAME$
|
|
11990
|
+
className: `${CLASSNAME$1d}__input-clear`,
|
|
11782
11991
|
icon: mdiCloseCircle,
|
|
11783
11992
|
emphasis: Emphasis.low,
|
|
11784
11993
|
size: Size.s,
|
|
@@ -11786,18 +11995,18 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11786
11995
|
onClick: onClear,
|
|
11787
11996
|
type: "button"
|
|
11788
11997
|
})), afterElement && /*#__PURE__*/React.createElement("div", {
|
|
11789
|
-
className: `${CLASSNAME$
|
|
11998
|
+
className: `${CLASSNAME$1d}__after-element`
|
|
11790
11999
|
}, afterElement)), hasError && error && /*#__PURE__*/React.createElement(InputHelper, {
|
|
11791
|
-
className: `${CLASSNAME$
|
|
12000
|
+
className: `${CLASSNAME$1d}__helper`,
|
|
11792
12001
|
kind: Kind.error,
|
|
11793
12002
|
theme: theme
|
|
11794
12003
|
}, error), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
11795
|
-
className: `${CLASSNAME$
|
|
12004
|
+
className: `${CLASSNAME$1d}__helper`,
|
|
11796
12005
|
theme: theme
|
|
11797
12006
|
}, helper));
|
|
11798
12007
|
});
|
|
11799
|
-
TextField.displayName = COMPONENT_NAME$
|
|
11800
|
-
TextField.className = CLASSNAME$
|
|
12008
|
+
TextField.displayName = COMPONENT_NAME$1g;
|
|
12009
|
+
TextField.className = CLASSNAME$1d;
|
|
11801
12010
|
TextField.defaultProps = DEFAULT_PROPS$_;
|
|
11802
12011
|
|
|
11803
12012
|
function getState(img, event) {
|
|
@@ -11942,16 +12151,16 @@ const useFocusPointStyle = (_ref2, element, isLoaded) => {
|
|
|
11942
12151
|
return style;
|
|
11943
12152
|
};
|
|
11944
12153
|
|
|
11945
|
-
const _excluded$
|
|
12154
|
+
const _excluded$1l = ["align", "alt", "aspectRatio", "badge", "className", "crossOrigin", "fallback", "fillHeight", "focusPoint", "image", "imgProps", "imgRef", "isLoading", "loading", "size", "theme", "variant", "linkProps", "linkAs"];
|
|
11946
12155
|
/**
|
|
11947
12156
|
* Component display name.
|
|
11948
12157
|
*/
|
|
11949
|
-
const COMPONENT_NAME$
|
|
12158
|
+
const COMPONENT_NAME$1h = 'Thumbnail';
|
|
11950
12159
|
|
|
11951
12160
|
/**
|
|
11952
12161
|
* Component default class name and class prefix.
|
|
11953
12162
|
*/
|
|
11954
|
-
const CLASSNAME$
|
|
12163
|
+
const CLASSNAME$1e = getRootClassName(COMPONENT_NAME$1h);
|
|
11955
12164
|
|
|
11956
12165
|
/**
|
|
11957
12166
|
* Component default props.
|
|
@@ -11993,7 +12202,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11993
12202
|
linkProps,
|
|
11994
12203
|
linkAs
|
|
11995
12204
|
} = props,
|
|
11996
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12205
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1l);
|
|
11997
12206
|
const [imgElement, setImgElement] = useState();
|
|
11998
12207
|
|
|
11999
12208
|
// Image loading state.
|
|
@@ -12032,7 +12241,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12032
12241
|
className: classnames(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, className, handleBasicClasses({
|
|
12033
12242
|
align,
|
|
12034
12243
|
aspectRatio,
|
|
12035
|
-
prefix: CLASSNAME$
|
|
12244
|
+
prefix: CLASSNAME$1e,
|
|
12036
12245
|
size,
|
|
12037
12246
|
theme,
|
|
12038
12247
|
variant,
|
|
@@ -12042,14 +12251,14 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12042
12251
|
hasCustomErrorFallback,
|
|
12043
12252
|
isLoading,
|
|
12044
12253
|
hasBadge: !!badge
|
|
12045
|
-
}), fillHeight && `${CLASSNAME$
|
|
12254
|
+
}), fillHeight && `${CLASSNAME$1e}--fill-height`)
|
|
12046
12255
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12047
|
-
className: `${CLASSNAME$
|
|
12256
|
+
className: `${CLASSNAME$1e}__background`
|
|
12048
12257
|
}, /*#__PURE__*/React.createElement("img", _extends({}, imgProps, {
|
|
12049
12258
|
style: _objectSpread2(_objectSpread2(_objectSpread2({}, imgProps === null || imgProps === void 0 ? void 0 : imgProps.style), imageErrorStyle), focusPointStyle),
|
|
12050
12259
|
ref: mergeRefs(setImgElement, propImgRef),
|
|
12051
12260
|
className: classnames(handleBasicClasses({
|
|
12052
|
-
prefix: `${CLASSNAME$
|
|
12261
|
+
prefix: `${CLASSNAME$1e}__image`,
|
|
12053
12262
|
isLoading,
|
|
12054
12263
|
hasDefinedSize: Boolean((imgProps === null || imgProps === void 0 ? void 0 : imgProps.height) && imgProps.width)
|
|
12055
12264
|
}), imgProps === null || imgProps === void 0 ? void 0 : imgProps.className),
|
|
@@ -12058,17 +12267,17 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12058
12267
|
alt: alt,
|
|
12059
12268
|
loading: loading
|
|
12060
12269
|
})), !isLoading && hasError && /*#__PURE__*/React.createElement("div", {
|
|
12061
|
-
className: `${CLASSNAME$
|
|
12270
|
+
className: `${CLASSNAME$1e}__fallback`
|
|
12062
12271
|
}, hasIconErrorFallback ? /*#__PURE__*/React.createElement(Icon, {
|
|
12063
12272
|
icon: fallback,
|
|
12064
12273
|
size: Size.xxs,
|
|
12065
12274
|
theme: theme
|
|
12066
12275
|
}) : fallback)), badge && /*#__PURE__*/React.cloneElement(badge, {
|
|
12067
|
-
className: classnames(`${CLASSNAME$
|
|
12276
|
+
className: classnames(`${CLASSNAME$1e}__badge`, badge.props.className)
|
|
12068
12277
|
}));
|
|
12069
12278
|
});
|
|
12070
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
12071
|
-
Thumbnail.className = CLASSNAME$
|
|
12279
|
+
Thumbnail.displayName = COMPONENT_NAME$1h;
|
|
12280
|
+
Thumbnail.className = CLASSNAME$1e;
|
|
12072
12281
|
Thumbnail.defaultProps = DEFAULT_PROPS$$;
|
|
12073
12282
|
|
|
12074
12283
|
/**
|
|
@@ -12089,7 +12298,7 @@ const ThumbnailVariant = {
|
|
|
12089
12298
|
rounded: 'rounded'
|
|
12090
12299
|
};
|
|
12091
12300
|
|
|
12092
|
-
const _excluded$
|
|
12301
|
+
const _excluded$1m = ["after", "before", "className", "label"];
|
|
12093
12302
|
|
|
12094
12303
|
/**
|
|
12095
12304
|
* Defines the props of the component.
|
|
@@ -12098,12 +12307,12 @@ const _excluded$1j = ["after", "before", "className", "label"];
|
|
|
12098
12307
|
/**
|
|
12099
12308
|
* Component display name.
|
|
12100
12309
|
*/
|
|
12101
|
-
const COMPONENT_NAME$
|
|
12310
|
+
const COMPONENT_NAME$1i = 'Toolbar';
|
|
12102
12311
|
|
|
12103
12312
|
/**
|
|
12104
12313
|
* Component default class name and class prefix.
|
|
12105
12314
|
*/
|
|
12106
|
-
const CLASSNAME$
|
|
12315
|
+
const CLASSNAME$1f = getRootClassName(COMPONENT_NAME$1i);
|
|
12107
12316
|
|
|
12108
12317
|
/**
|
|
12109
12318
|
* Component default props.
|
|
@@ -12124,7 +12333,7 @@ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12124
12333
|
className,
|
|
12125
12334
|
label
|
|
12126
12335
|
} = props,
|
|
12127
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12336
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1m);
|
|
12128
12337
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12129
12338
|
ref: ref
|
|
12130
12339
|
}, forwardedProps, {
|
|
@@ -12132,18 +12341,18 @@ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12132
12341
|
hasAfter: Boolean(after),
|
|
12133
12342
|
hasBefore: Boolean(before),
|
|
12134
12343
|
hasLabel: Boolean(label),
|
|
12135
|
-
prefix: CLASSNAME$
|
|
12344
|
+
prefix: CLASSNAME$1f
|
|
12136
12345
|
}))
|
|
12137
12346
|
}), before && /*#__PURE__*/React.createElement("div", {
|
|
12138
|
-
className: `${CLASSNAME$
|
|
12347
|
+
className: `${CLASSNAME$1f}__before`
|
|
12139
12348
|
}, before), label && /*#__PURE__*/React.createElement("div", {
|
|
12140
|
-
className: `${CLASSNAME$
|
|
12349
|
+
className: `${CLASSNAME$1f}__label`
|
|
12141
12350
|
}, label), after && /*#__PURE__*/React.createElement("div", {
|
|
12142
|
-
className: `${CLASSNAME$
|
|
12351
|
+
className: `${CLASSNAME$1f}__after`
|
|
12143
12352
|
}, after));
|
|
12144
12353
|
});
|
|
12145
|
-
Toolbar.displayName = COMPONENT_NAME$
|
|
12146
|
-
Toolbar.className = CLASSNAME$
|
|
12354
|
+
Toolbar.displayName = COMPONENT_NAME$1i;
|
|
12355
|
+
Toolbar.className = CLASSNAME$1f;
|
|
12147
12356
|
Toolbar.defaultProps = DEFAULT_PROPS$10;
|
|
12148
12357
|
|
|
12149
12358
|
/**
|
|
@@ -12278,19 +12487,19 @@ function useTooltipOpen(delay, anchorElement) {
|
|
|
12278
12487
|
return isOpen;
|
|
12279
12488
|
}
|
|
12280
12489
|
|
|
12281
|
-
const _excluded$
|
|
12490
|
+
const _excluded$1n = ["label", "children", "className", "delay", "placement", "forceOpen"];
|
|
12282
12491
|
|
|
12283
12492
|
/** Position of the tooltip relative to the anchor element. */
|
|
12284
12493
|
|
|
12285
12494
|
/**
|
|
12286
12495
|
* Component display name.
|
|
12287
12496
|
*/
|
|
12288
|
-
const COMPONENT_NAME$
|
|
12497
|
+
const COMPONENT_NAME$1j = 'Tooltip';
|
|
12289
12498
|
|
|
12290
12499
|
/**
|
|
12291
12500
|
* Component default class name and class prefix.
|
|
12292
12501
|
*/
|
|
12293
|
-
const CLASSNAME$
|
|
12502
|
+
const CLASSNAME$1g = getRootClassName(COMPONENT_NAME$1j);
|
|
12294
12503
|
|
|
12295
12504
|
/**
|
|
12296
12505
|
* Component default props.
|
|
@@ -12321,7 +12530,7 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12321
12530
|
placement,
|
|
12322
12531
|
forceOpen
|
|
12323
12532
|
} = props,
|
|
12324
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12533
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1n);
|
|
12325
12534
|
// Disable in SSR or without a label.
|
|
12326
12535
|
if (!DOCUMENT || !label) {
|
|
12327
12536
|
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
@@ -12351,23 +12560,23 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12351
12560
|
role: "tooltip",
|
|
12352
12561
|
"aria-label": label,
|
|
12353
12562
|
className: classnames(className, handleBasicClasses({
|
|
12354
|
-
prefix: CLASSNAME$
|
|
12563
|
+
prefix: CLASSNAME$1g,
|
|
12355
12564
|
position
|
|
12356
12565
|
})),
|
|
12357
12566
|
style: styles.popper
|
|
12358
12567
|
}, attributes.popper), /*#__PURE__*/React.createElement("div", {
|
|
12359
|
-
className: `${CLASSNAME$
|
|
12568
|
+
className: `${CLASSNAME$1g}__arrow`
|
|
12360
12569
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12361
|
-
className: `${CLASSNAME$
|
|
12570
|
+
className: `${CLASSNAME$1g}__inner`
|
|
12362
12571
|
}, label.indexOf('\n') !== -1 ? label.split('\n').map(sentence => /*#__PURE__*/React.createElement("p", {
|
|
12363
12572
|
key: sentence
|
|
12364
12573
|
}, sentence)) : label)), document.body));
|
|
12365
12574
|
});
|
|
12366
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
12367
|
-
Tooltip.className = CLASSNAME$
|
|
12575
|
+
Tooltip.displayName = COMPONENT_NAME$1j;
|
|
12576
|
+
Tooltip.className = CLASSNAME$1g;
|
|
12368
12577
|
Tooltip.defaultProps = DEFAULT_PROPS$11;
|
|
12369
12578
|
|
|
12370
|
-
const _excluded$
|
|
12579
|
+
const _excluded$1o = ["aspectRatio", "className", "label", "icon", "size", "theme", "variant"];
|
|
12371
12580
|
|
|
12372
12581
|
/**
|
|
12373
12582
|
* Uploader variants.
|
|
@@ -12380,12 +12589,12 @@ const UploaderVariant = {
|
|
|
12380
12589
|
/**
|
|
12381
12590
|
* Component display name.
|
|
12382
12591
|
*/
|
|
12383
|
-
const COMPONENT_NAME$
|
|
12592
|
+
const COMPONENT_NAME$1k = 'Uploader';
|
|
12384
12593
|
|
|
12385
12594
|
/**
|
|
12386
12595
|
* Component default class name and class prefix.
|
|
12387
12596
|
*/
|
|
12388
|
-
const CLASSNAME$
|
|
12597
|
+
const CLASSNAME$1h = getRootClassName(COMPONENT_NAME$1k);
|
|
12389
12598
|
|
|
12390
12599
|
/**
|
|
12391
12600
|
* Component default props.
|
|
@@ -12414,7 +12623,7 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12414
12623
|
theme,
|
|
12415
12624
|
variant
|
|
12416
12625
|
} = props,
|
|
12417
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12626
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1o);
|
|
12418
12627
|
// Adjust to square aspect ratio when using circle variants.
|
|
12419
12628
|
const adjustedAspectRatio = variant === UploaderVariant.circle ? AspectRatio.square : aspectRatio;
|
|
12420
12629
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -12422,38 +12631,38 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12422
12631
|
}, forwardedProps, {
|
|
12423
12632
|
className: classnames(className, handleBasicClasses({
|
|
12424
12633
|
aspectRatio: adjustedAspectRatio,
|
|
12425
|
-
prefix: CLASSNAME$
|
|
12634
|
+
prefix: CLASSNAME$1h,
|
|
12426
12635
|
size,
|
|
12427
12636
|
theme,
|
|
12428
12637
|
variant
|
|
12429
12638
|
}))
|
|
12430
12639
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12431
|
-
className: `${CLASSNAME$
|
|
12640
|
+
className: `${CLASSNAME$1h}__background`
|
|
12432
12641
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12433
|
-
className: `${CLASSNAME$
|
|
12642
|
+
className: `${CLASSNAME$1h}__wrapper`
|
|
12434
12643
|
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
12435
|
-
className: `${CLASSNAME$
|
|
12644
|
+
className: `${CLASSNAME$1h}__icon`
|
|
12436
12645
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
12437
12646
|
icon: icon,
|
|
12438
12647
|
size: Size.s
|
|
12439
12648
|
})), label && /*#__PURE__*/React.createElement("span", {
|
|
12440
|
-
className: `${CLASSNAME$
|
|
12649
|
+
className: `${CLASSNAME$1h}__label`
|
|
12441
12650
|
}, label)));
|
|
12442
12651
|
});
|
|
12443
|
-
Uploader.displayName = COMPONENT_NAME$
|
|
12444
|
-
Uploader.className = CLASSNAME$
|
|
12652
|
+
Uploader.displayName = COMPONENT_NAME$1k;
|
|
12653
|
+
Uploader.className = CLASSNAME$1h;
|
|
12445
12654
|
Uploader.defaultProps = DEFAULT_PROPS$12;
|
|
12446
12655
|
|
|
12447
|
-
const _excluded$
|
|
12656
|
+
const _excluded$1p = ["avatarProps", "className", "fields", "linkProps", "linkAs", "multipleActions", "name", "nameProps", "onClick", "onMouseEnter", "onMouseLeave", "orientation", "simpleAction", "size", "theme"];
|
|
12448
12657
|
/**
|
|
12449
12658
|
* Component display name.
|
|
12450
12659
|
*/
|
|
12451
|
-
const COMPONENT_NAME$
|
|
12660
|
+
const COMPONENT_NAME$1l = 'UserBlock';
|
|
12452
12661
|
|
|
12453
12662
|
/**
|
|
12454
12663
|
* Component default class name and class prefix.
|
|
12455
12664
|
*/
|
|
12456
|
-
const CLASSNAME$
|
|
12665
|
+
const CLASSNAME$1i = getRootClassName(COMPONENT_NAME$1l);
|
|
12457
12666
|
|
|
12458
12667
|
/**
|
|
12459
12668
|
* Component default props.
|
|
@@ -12489,7 +12698,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12489
12698
|
size,
|
|
12490
12699
|
theme
|
|
12491
12700
|
} = props,
|
|
12492
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12701
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1p);
|
|
12493
12702
|
let componentSize = size;
|
|
12494
12703
|
|
|
12495
12704
|
// Special case - When using vertical orientation force the size to be Sizes.l.
|
|
@@ -12505,7 +12714,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12505
12714
|
}
|
|
12506
12715
|
let NameComponent = 'span';
|
|
12507
12716
|
const nProps = _objectSpread2(_objectSpread2({}, nameProps), {}, {
|
|
12508
|
-
className: classnames(`${CLASSNAME$
|
|
12717
|
+
className: classnames(`${CLASSNAME$1i}__name`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, nameProps === null || nameProps === void 0 ? void 0 : nameProps.className)
|
|
12509
12718
|
});
|
|
12510
12719
|
if (isClickable) {
|
|
12511
12720
|
NameComponent = Link;
|
|
@@ -12522,16 +12731,16 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12522
12731
|
return /*#__PURE__*/React.createElement(NameComponent, nProps, name);
|
|
12523
12732
|
}, [avatarProps, isClickable, linkAs, linkProps, name, nameProps, onClick]);
|
|
12524
12733
|
const fieldsBlock = fields && componentSize !== Size.s && /*#__PURE__*/React.createElement("div", {
|
|
12525
|
-
className: `${CLASSNAME$
|
|
12734
|
+
className: `${CLASSNAME$1i}__fields`
|
|
12526
12735
|
}, fields.map((field, idx) => /*#__PURE__*/React.createElement("span", {
|
|
12527
12736
|
key: idx,
|
|
12528
|
-
className: `${CLASSNAME$
|
|
12737
|
+
className: `${CLASSNAME$1i}__field`
|
|
12529
12738
|
}, field)));
|
|
12530
12739
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12531
12740
|
ref: ref
|
|
12532
12741
|
}, forwardedProps, {
|
|
12533
12742
|
className: classnames(className, handleBasicClasses({
|
|
12534
|
-
prefix: CLASSNAME$
|
|
12743
|
+
prefix: CLASSNAME$1i,
|
|
12535
12744
|
orientation,
|
|
12536
12745
|
size: componentSize,
|
|
12537
12746
|
theme,
|
|
@@ -12544,21 +12753,21 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12544
12753
|
linkProps: linkProps,
|
|
12545
12754
|
alt: ""
|
|
12546
12755
|
}, avatarProps, {
|
|
12547
|
-
className: classnames(`${CLASSNAME$
|
|
12756
|
+
className: classnames(`${CLASSNAME$1i}__avatar`, avatarProps.className),
|
|
12548
12757
|
size: componentSize,
|
|
12549
12758
|
onClick: onClick,
|
|
12550
12759
|
theme: theme
|
|
12551
12760
|
})), (fields || name) && /*#__PURE__*/React.createElement("div", {
|
|
12552
|
-
className: `${CLASSNAME$
|
|
12761
|
+
className: `${CLASSNAME$1i}__wrapper`
|
|
12553
12762
|
}, nameBlock, fieldsBlock), shouldDisplayActions && simpleAction && /*#__PURE__*/React.createElement("div", {
|
|
12554
|
-
className: `${CLASSNAME$
|
|
12763
|
+
className: `${CLASSNAME$1i}__action`
|
|
12555
12764
|
}, simpleAction), shouldDisplayActions && multipleActions && /*#__PURE__*/React.createElement("div", {
|
|
12556
|
-
className: `${CLASSNAME$
|
|
12765
|
+
className: `${CLASSNAME$1i}__actions`
|
|
12557
12766
|
}, multipleActions));
|
|
12558
12767
|
});
|
|
12559
|
-
UserBlock.displayName = COMPONENT_NAME$
|
|
12560
|
-
UserBlock.className = CLASSNAME$
|
|
12768
|
+
UserBlock.displayName = COMPONENT_NAME$1l;
|
|
12769
|
+
UserBlock.className = CLASSNAME$1i;
|
|
12561
12770
|
UserBlock.defaultProps = DEFAULT_PROPS$13;
|
|
12562
12771
|
|
|
12563
|
-
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 };
|
|
12772
|
+
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 };
|
|
12564
12773
|
//# sourceMappingURL=index.js.map
|