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