@lumx/react 3.0.5-alpha.2 → 3.0.6-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/types.d.ts +18 -2
- package/index.d.ts +48 -15
- package/index.js +562 -492
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/autocomplete/Autocomplete.tsx +7 -4
- package/src/components/badge/Badge.tsx +2 -2
- package/src/components/button/Button.stories.tsx +27 -1
- package/src/components/button/Button.tsx +3 -3
- package/src/components/button/ButtonRoot.tsx +2 -2
- package/src/components/chip/Chip.tsx +2 -2
- package/src/components/dropdown/Dropdown.tsx +5 -2
- package/src/components/icon/Icon.tsx +2 -2
- package/src/components/index.ts +0 -1
- package/src/components/link/Link.tsx +2 -2
- package/src/components/popover/Popover.stories.tsx +70 -0
- package/src/components/popover/Popover.tsx +34 -9
- package/src/components/popover-dialog/PopoverDialog.stories.tsx +75 -0
- package/src/components/popover-dialog/PopoverDialog.test.tsx +65 -0
- package/src/components/popover-dialog/PopoverDialog.tsx +65 -0
- package/src/components/popover-dialog/index.tsx +1 -0
- package/src/index.ts +1 -0
- package/src/stories/generated/PopoverDialog/Demos.stories.tsx +6 -0
- package/src/utils/type.ts +20 -0
package/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import kebabCase from 'lodash/kebabCase';
|
|
|
3
3
|
import isBoolean from 'lodash/isBoolean';
|
|
4
4
|
import isEmpty from 'lodash/isEmpty';
|
|
5
5
|
import noop from 'lodash/noop';
|
|
6
|
+
import get from 'lodash/get';
|
|
6
7
|
import isFunction from 'lodash/isFunction';
|
|
7
8
|
import moment$1 from 'moment';
|
|
8
9
|
import range from 'lodash/range';
|
|
@@ -10,12 +11,12 @@ import { extendMoment } from 'moment-range';
|
|
|
10
11
|
import last from 'lodash/last';
|
|
11
12
|
import pull from 'lodash/pull';
|
|
12
13
|
import { createPortal } from 'react-dom';
|
|
13
|
-
import get from 'lodash/get';
|
|
14
14
|
import concat from 'lodash/concat';
|
|
15
15
|
import dropRight from 'lodash/dropRight';
|
|
16
16
|
import partition from 'lodash/partition';
|
|
17
17
|
import reduce from 'lodash/reduce';
|
|
18
18
|
import { C as ClickAwayProvider } from './_internal/ClickAwayProvider.js';
|
|
19
|
+
import memoize from 'lodash/memoize';
|
|
19
20
|
import castArray from 'lodash/castArray';
|
|
20
21
|
import pick from 'lodash/pick';
|
|
21
22
|
import isObject from 'lodash/isObject';
|
|
@@ -1155,6 +1156,35 @@ Badge.displayName = COMPONENT_NAME$4;
|
|
|
1155
1156
|
Badge.className = CLASSNAME$4;
|
|
1156
1157
|
Badge.defaultProps = DEFAULT_PROPS$4;
|
|
1157
1158
|
|
|
1159
|
+
/**
|
|
1160
|
+
* Properties of a component to use to determine it's name.
|
|
1161
|
+
* In the order of preference.
|
|
1162
|
+
*/
|
|
1163
|
+
const NAME_PROPERTIES = ['type', 'type.displayName', 'displayName', 'name', 'type.name', 'props.mdxType', '_reactInternalFiber.elementType.name'];
|
|
1164
|
+
|
|
1165
|
+
/** LumX Component Type. */
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Create a predicate function that checks if a ReactNode is a react element from the given component.
|
|
1169
|
+
*
|
|
1170
|
+
* @param component React function component or the component name
|
|
1171
|
+
* @return predicate returning true if value is instance of the component
|
|
1172
|
+
*/
|
|
1173
|
+
const isComponent = component => instance => {
|
|
1174
|
+
const componentName = typeof component === 'string' ? component : component.displayName;
|
|
1175
|
+
return !!get(instance, '$$typeof') && NAME_PROPERTIES.some(nameProperty => get(instance, nameProperty) === componentName);
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Similar to `isComponent` but more precise as it's not based on the component `displayName` but on the component function reference.
|
|
1180
|
+
*/
|
|
1181
|
+
const isComponentType = type => node => /*#__PURE__*/React.isValidElement(node) && node.type === type;
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* JS falsy values.
|
|
1185
|
+
* (excluding `NaN` as it can't be distinguished from `number`)
|
|
1186
|
+
*/
|
|
1187
|
+
|
|
1158
1188
|
const _excluded$6 = ["linkAs"];
|
|
1159
1189
|
/**
|
|
1160
1190
|
* Render link with default <a> HTML component or a custom one provided by `linkAs`.
|
|
@@ -1368,7 +1398,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1368
1398
|
variant: "button"
|
|
1369
1399
|
}), leftIcon && !isEmpty(leftIcon) && /*#__PURE__*/React.createElement(Icon, {
|
|
1370
1400
|
icon: leftIcon
|
|
1371
|
-
}), children && /*#__PURE__*/React.createElement("span", null, children), rightIcon && !isEmpty(rightIcon) && /*#__PURE__*/React.createElement(Icon, {
|
|
1401
|
+
}), children && (isComponent(Text)(children) ? children : /*#__PURE__*/React.createElement("span", null, children)), rightIcon && !isEmpty(rightIcon) && /*#__PURE__*/React.createElement(Icon, {
|
|
1372
1402
|
icon: rightIcon
|
|
1373
1403
|
}));
|
|
1374
1404
|
});
|
|
@@ -2412,35 +2442,6 @@ function useIntersectionObserver(elements, options) {
|
|
|
2412
2442
|
return intersections;
|
|
2413
2443
|
}
|
|
2414
2444
|
|
|
2415
|
-
/**
|
|
2416
|
-
* Properties of a component to use to determine it's name.
|
|
2417
|
-
* In the order of preference.
|
|
2418
|
-
*/
|
|
2419
|
-
const NAME_PROPERTIES = ['type', 'type.displayName', 'displayName', 'name', 'type.name', 'props.mdxType', '_reactInternalFiber.elementType.name'];
|
|
2420
|
-
|
|
2421
|
-
/** LumX Component Type. */
|
|
2422
|
-
|
|
2423
|
-
/**
|
|
2424
|
-
* Create a predicate function that checks if a ReactNode is a react element from the given component.
|
|
2425
|
-
*
|
|
2426
|
-
* @param component React function component or the component name
|
|
2427
|
-
* @return predicate returning true if value is instance of the component
|
|
2428
|
-
*/
|
|
2429
|
-
const isComponent = component => instance => {
|
|
2430
|
-
const componentName = typeof component === 'string' ? component : component.displayName;
|
|
2431
|
-
return !!get(instance, '$$typeof') && NAME_PROPERTIES.some(nameProperty => get(instance, nameProperty) === componentName);
|
|
2432
|
-
};
|
|
2433
|
-
|
|
2434
|
-
/**
|
|
2435
|
-
* Similar to `isComponent` but more precise as it's not based on the component `displayName` but on the component function reference.
|
|
2436
|
-
*/
|
|
2437
|
-
const isComponentType = type => node => /*#__PURE__*/React.isValidElement(node) && node.type === type;
|
|
2438
|
-
|
|
2439
|
-
/**
|
|
2440
|
-
* JS falsy values.
|
|
2441
|
-
* (excluding `NaN` as it can't be distinguished from `number`)
|
|
2442
|
-
*/
|
|
2443
|
-
|
|
2444
2445
|
/**
|
|
2445
2446
|
* Similar to lodash `partition` function but working with multiple predicates.
|
|
2446
2447
|
*
|
|
@@ -5845,7 +5846,7 @@ const useFocusWithin = _ref => {
|
|
|
5845
5846
|
}, [onFocusIn, element, onFocusOut]);
|
|
5846
5847
|
};
|
|
5847
5848
|
|
|
5848
|
-
const _excluded$m = ["anchorRef", "boundaryRef", "children", "className", "closeOnClickAway", "closeOnEscape", "elevation", "fitToAnchorWidth", "fitWithinViewportHeight", "focusElement", "hasArrow", "isOpen", "offset", "onClose", "parentElement", "placement", "style", "usePortal", "zIndex", "focusAnchorOnClose"];
|
|
5849
|
+
const _excluded$m = ["anchorRef", "boundaryRef", "children", "className", "closeOnClickAway", "closeOnEscape", "elevation", "fitToAnchorWidth", "fitWithinViewportHeight", "focusElement", "hasArrow", "isOpen", "offset", "onClose", "parentElement", "placement", "style", "usePortal", "zIndex", "focusAnchorOnClose", "withFocusTrap"];
|
|
5849
5850
|
|
|
5850
5851
|
/**
|
|
5851
5852
|
* Different possible placements for the popover.
|
|
@@ -5871,11 +5872,11 @@ const Placement = {
|
|
|
5871
5872
|
* Arrow size (in pixel).
|
|
5872
5873
|
*/
|
|
5873
5874
|
const ARROW_SIZE = 8;
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5875
|
+
const AnchorWidthOptions = {
|
|
5876
|
+
MAX_WIDTH: 'maxWidth',
|
|
5877
|
+
MIN_WIDTH: 'minWidth',
|
|
5878
|
+
WIDTH: 'width'
|
|
5879
|
+
};
|
|
5879
5880
|
/**
|
|
5880
5881
|
* Component display name.
|
|
5881
5882
|
*/
|
|
@@ -5899,7 +5900,7 @@ const DEFAULT_PROPS$g = {
|
|
|
5899
5900
|
/**
|
|
5900
5901
|
* Popper js modifier to fit popover min width to the anchor width.
|
|
5901
5902
|
*/
|
|
5902
|
-
const sameWidth = {
|
|
5903
|
+
const sameWidth = memoize(anchorWidthOption => ({
|
|
5903
5904
|
name: 'sameWidth',
|
|
5904
5905
|
enabled: true,
|
|
5905
5906
|
phase: 'beforeWrite',
|
|
@@ -5909,16 +5910,16 @@ const sameWidth = {
|
|
|
5909
5910
|
state
|
|
5910
5911
|
} = _ref;
|
|
5911
5912
|
// eslint-disable-next-line no-param-reassign
|
|
5912
|
-
state.styles.popper
|
|
5913
|
+
state.styles.popper[anchorWidthOption] = `${state.rects.reference.width}px`;
|
|
5913
5914
|
},
|
|
5914
5915
|
effect(_ref2) {
|
|
5915
5916
|
let {
|
|
5916
5917
|
state
|
|
5917
5918
|
} = _ref2;
|
|
5918
5919
|
// eslint-disable-next-line no-param-reassign
|
|
5919
|
-
state.elements.popper.style
|
|
5920
|
+
state.elements.popper.style[anchorWidthOption] = `${state.elements.reference.offsetWidth}px`;
|
|
5920
5921
|
}
|
|
5921
|
-
};
|
|
5922
|
+
}));
|
|
5922
5923
|
|
|
5923
5924
|
/**
|
|
5924
5925
|
* Popper js modifier to compute max size of the popover.
|
|
@@ -6012,7 +6013,8 @@ const Popover = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6012
6013
|
style,
|
|
6013
6014
|
usePortal,
|
|
6014
6015
|
zIndex,
|
|
6015
|
-
focusAnchorOnClose = true
|
|
6016
|
+
focusAnchorOnClose = true,
|
|
6017
|
+
withFocusTrap
|
|
6016
6018
|
} = props,
|
|
6017
6019
|
forwardedProps = _objectWithoutProperties(props, _excluded$m);
|
|
6018
6020
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -6021,6 +6023,8 @@ const Popover = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6021
6023
|
const [arrowElement, setArrowElement] = useState(null);
|
|
6022
6024
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
6023
6025
|
const clickAwayRef = useRef(null);
|
|
6026
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
6027
|
+
const contentRef = useRef(null);
|
|
6024
6028
|
|
|
6025
6029
|
/**
|
|
6026
6030
|
* Track whether the focus is currently set in the
|
|
@@ -6086,7 +6090,8 @@ const Popover = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6086
6090
|
});
|
|
6087
6091
|
}
|
|
6088
6092
|
if (fitToAnchorWidth) {
|
|
6089
|
-
|
|
6093
|
+
const anchorWidthOption = typeof fitToAnchorWidth === 'string' ? fitToAnchorWidth : AnchorWidthOptions.MIN_WIDTH;
|
|
6094
|
+
modifiers.push(sameWidth(anchorWidthOption));
|
|
6090
6095
|
}
|
|
6091
6096
|
if (fitWithinViewportHeight) {
|
|
6092
6097
|
modifiers.push(_objectSpread2(_objectSpread2({}, maxSize), {}, {
|
|
@@ -6139,13 +6144,17 @@ const Popover = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6139
6144
|
|
|
6140
6145
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
6141
6146
|
useCallbackOnEscape(handleClose, isOpen && closeOnEscape);
|
|
6147
|
+
|
|
6148
|
+
/** Only set focus within if the focus trap is disabled as they interfere with one another. */
|
|
6142
6149
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
6143
|
-
useFocus(focusElement === null || focusElement === void 0 ? void 0 : focusElement.current, isOpen && ((_state$rects$popper$y = state === null || state === void 0 ? void 0 : (_state$rects = state.rects) === null || _state$rects === void 0 ? void 0 : (_state$rects$popper = _state$rects.popper) === null || _state$rects$popper === void 0 ? void 0 : _state$rects$popper.y) !== null && _state$rects$popper$y !== void 0 ? _state$rects$popper$y : -1) >= 0);
|
|
6150
|
+
useFocus(focusElement === null || focusElement === void 0 ? void 0 : focusElement.current, !withFocusTrap && isOpen && ((_state$rects$popper$y = state === null || state === void 0 ? void 0 : (_state$rects = state.rects) === null || _state$rects === void 0 ? void 0 : (_state$rects$popper = _state$rects.popper) === null || _state$rects$popper === void 0 ? void 0 : _state$rects$popper.y) !== null && _state$rects$popper$y !== void 0 ? _state$rects$popper$y : -1) >= 0);
|
|
6151
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
6152
|
+
useFocusTrap(withFocusTrap && isOpen && (contentRef === null || contentRef === void 0 ? void 0 : contentRef.current), focusElement === null || focusElement === void 0 ? void 0 : focusElement.current);
|
|
6144
6153
|
|
|
6145
6154
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
6146
6155
|
const clickAwayRefs = useRef([clickAwayRef, anchorRef]);
|
|
6147
6156
|
return isOpen ? renderPopover( /*#__PURE__*/React.createElement("div", _extends({}, forwardedProps, {
|
|
6148
|
-
ref: mergeRefs(setPopperElement, ref, clickAwayRef),
|
|
6157
|
+
ref: mergeRefs(setPopperElement, ref, clickAwayRef, contentRef),
|
|
6149
6158
|
className: classnames(className, handleBasicClasses({
|
|
6150
6159
|
prefix: CLASSNAME$i,
|
|
6151
6160
|
elevation: Math.min(elevation || 0, 5),
|
|
@@ -7964,16 +7973,17 @@ Notification.displayName = COMPONENT_NAME$H;
|
|
|
7964
7973
|
Notification.className = CLASSNAME$E;
|
|
7965
7974
|
Notification.defaultProps = DEFAULT_PROPS$v;
|
|
7966
7975
|
|
|
7967
|
-
const _excluded$J = ["
|
|
7976
|
+
const _excluded$J = ["children", "isOpen", "focusElement", "label", "className"];
|
|
7968
7977
|
|
|
7969
7978
|
/**
|
|
7970
|
-
*
|
|
7979
|
+
* PopoverDialog props.
|
|
7980
|
+
* The PopoverDialog has the same props as the Popover but requires an accessible label.
|
|
7971
7981
|
*/
|
|
7972
7982
|
|
|
7973
7983
|
/**
|
|
7974
7984
|
* Component display name.
|
|
7975
7985
|
*/
|
|
7976
|
-
const COMPONENT_NAME$I = '
|
|
7986
|
+
const COMPONENT_NAME$I = 'PopoverDialog';
|
|
7977
7987
|
|
|
7978
7988
|
/**
|
|
7979
7989
|
* Component default class name and class prefix.
|
|
@@ -7983,7 +7993,67 @@ const CLASSNAME$F = getRootClassName(COMPONENT_NAME$I);
|
|
|
7983
7993
|
/**
|
|
7984
7994
|
* Component default props.
|
|
7985
7995
|
*/
|
|
7986
|
-
const DEFAULT_PROPS$w = {
|
|
7996
|
+
const DEFAULT_PROPS$w = {};
|
|
7997
|
+
|
|
7998
|
+
/**
|
|
7999
|
+
* PopoverDialog component.
|
|
8000
|
+
* Defines a popover that acts like a dialog
|
|
8001
|
+
* * Has a dialog aria role
|
|
8002
|
+
* * Sets a focus trap within the popover
|
|
8003
|
+
* * Closes on click away and escape.
|
|
8004
|
+
*/
|
|
8005
|
+
const PopoverDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
8006
|
+
const {
|
|
8007
|
+
children,
|
|
8008
|
+
isOpen,
|
|
8009
|
+
focusElement,
|
|
8010
|
+
label,
|
|
8011
|
+
className
|
|
8012
|
+
} = props,
|
|
8013
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$J);
|
|
8014
|
+
return /*#__PURE__*/React.createElement(Popover, _extends({}, forwardedProps, {
|
|
8015
|
+
ref: ref,
|
|
8016
|
+
className: classnames(className, handleBasicClasses({
|
|
8017
|
+
prefix: CLASSNAME$F
|
|
8018
|
+
})),
|
|
8019
|
+
role: "dialog",
|
|
8020
|
+
"aria-modal": "true"
|
|
8021
|
+
/**
|
|
8022
|
+
* If a label is set, set as aria-label.
|
|
8023
|
+
* If it is undefined, the label can be set using the `aria-label` and `aria-labelledby` props
|
|
8024
|
+
*/,
|
|
8025
|
+
"aria-label": label,
|
|
8026
|
+
isOpen: isOpen,
|
|
8027
|
+
focusElement: focusElement,
|
|
8028
|
+
closeOnClickAway: true,
|
|
8029
|
+
closeOnEscape: true,
|
|
8030
|
+
withFocusTrap: true
|
|
8031
|
+
}), children);
|
|
8032
|
+
});
|
|
8033
|
+
PopoverDialog.displayName = COMPONENT_NAME$I;
|
|
8034
|
+
PopoverDialog.className = CLASSNAME$F;
|
|
8035
|
+
PopoverDialog.defaultProps = DEFAULT_PROPS$w;
|
|
8036
|
+
|
|
8037
|
+
const _excluded$K = ["actions", "attachments", "author", "className", "meta", "onClick", "orientation", "tags", "text", "theme", "thumbnailProps", "title"];
|
|
8038
|
+
|
|
8039
|
+
/**
|
|
8040
|
+
* Defines the props of the component.
|
|
8041
|
+
*/
|
|
8042
|
+
|
|
8043
|
+
/**
|
|
8044
|
+
* Component display name.
|
|
8045
|
+
*/
|
|
8046
|
+
const COMPONENT_NAME$J = 'PostBlock';
|
|
8047
|
+
|
|
8048
|
+
/**
|
|
8049
|
+
* Component default class name and class prefix.
|
|
8050
|
+
*/
|
|
8051
|
+
const CLASSNAME$G = getRootClassName(COMPONENT_NAME$J);
|
|
8052
|
+
|
|
8053
|
+
/**
|
|
8054
|
+
* Component default props.
|
|
8055
|
+
*/
|
|
8056
|
+
const DEFAULT_PROPS$x = {
|
|
7987
8057
|
orientation: Orientation.horizontal,
|
|
7988
8058
|
theme: Theme.light
|
|
7989
8059
|
};
|
|
@@ -8010,52 +8080,52 @@ const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8010
8080
|
thumbnailProps,
|
|
8011
8081
|
title
|
|
8012
8082
|
} = props,
|
|
8013
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8083
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$K);
|
|
8014
8084
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8015
8085
|
ref: ref,
|
|
8016
8086
|
className: classnames(className, handleBasicClasses({
|
|
8017
|
-
prefix: CLASSNAME$
|
|
8087
|
+
prefix: CLASSNAME$G,
|
|
8018
8088
|
orientation,
|
|
8019
8089
|
theme
|
|
8020
8090
|
}))
|
|
8021
8091
|
}, forwardedProps), thumbnailProps && /*#__PURE__*/React.createElement("div", {
|
|
8022
|
-
className: `${CLASSNAME$
|
|
8092
|
+
className: `${CLASSNAME$G}__thumbnail`
|
|
8023
8093
|
}, /*#__PURE__*/React.createElement(Thumbnail, _extends({}, thumbnailProps, {
|
|
8024
8094
|
theme: theme,
|
|
8025
8095
|
variant: ThumbnailVariant.rounded
|
|
8026
8096
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
8027
|
-
className: `${CLASSNAME$
|
|
8097
|
+
className: `${CLASSNAME$G}__wrapper`
|
|
8028
8098
|
}, author && /*#__PURE__*/React.createElement("div", {
|
|
8029
|
-
className: `${CLASSNAME$
|
|
8099
|
+
className: `${CLASSNAME$G}__author`
|
|
8030
8100
|
}, author), title && /*#__PURE__*/React.createElement("button", {
|
|
8031
8101
|
type: "button",
|
|
8032
|
-
className: `${CLASSNAME$
|
|
8102
|
+
className: `${CLASSNAME$G}__title`,
|
|
8033
8103
|
onClick: onClick
|
|
8034
8104
|
}, title), meta && /*#__PURE__*/React.createElement("span", {
|
|
8035
|
-
className: `${CLASSNAME$
|
|
8105
|
+
className: `${CLASSNAME$G}__meta`
|
|
8036
8106
|
}, meta), isObject(text) && text.__html ?
|
|
8037
8107
|
/*#__PURE__*/
|
|
8038
8108
|
// eslint-disable-next-line react/no-danger
|
|
8039
8109
|
React.createElement("p", {
|
|
8040
8110
|
dangerouslySetInnerHTML: text,
|
|
8041
|
-
className: `${CLASSNAME$
|
|
8111
|
+
className: `${CLASSNAME$G}__text`
|
|
8042
8112
|
}) : /*#__PURE__*/React.createElement("p", {
|
|
8043
|
-
className: `${CLASSNAME$
|
|
8113
|
+
className: `${CLASSNAME$G}__text`
|
|
8044
8114
|
}, text), attachments && /*#__PURE__*/React.createElement("div", {
|
|
8045
|
-
className: `${CLASSNAME$
|
|
8115
|
+
className: `${CLASSNAME$G}__attachments`
|
|
8046
8116
|
}, attachments), (tags || actions) && /*#__PURE__*/React.createElement("div", {
|
|
8047
|
-
className: `${CLASSNAME$
|
|
8117
|
+
className: `${CLASSNAME$G}__toolbar`
|
|
8048
8118
|
}, tags && /*#__PURE__*/React.createElement("div", {
|
|
8049
|
-
className: `${CLASSNAME$
|
|
8119
|
+
className: `${CLASSNAME$G}__tags`
|
|
8050
8120
|
}, tags), actions && /*#__PURE__*/React.createElement("div", {
|
|
8051
|
-
className: `${CLASSNAME$
|
|
8121
|
+
className: `${CLASSNAME$G}__actions`
|
|
8052
8122
|
}, actions))));
|
|
8053
8123
|
});
|
|
8054
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
8055
|
-
PostBlock.className = CLASSNAME$
|
|
8056
|
-
PostBlock.defaultProps = DEFAULT_PROPS$
|
|
8124
|
+
PostBlock.displayName = COMPONENT_NAME$J;
|
|
8125
|
+
PostBlock.className = CLASSNAME$G;
|
|
8126
|
+
PostBlock.defaultProps = DEFAULT_PROPS$x;
|
|
8057
8127
|
|
|
8058
|
-
const _excluded$
|
|
8128
|
+
const _excluded$L = ["className", "theme", "variant"];
|
|
8059
8129
|
|
|
8060
8130
|
/**
|
|
8061
8131
|
* Progress variants.
|
|
@@ -8067,17 +8137,17 @@ const ProgressVariant = {
|
|
|
8067
8137
|
/**
|
|
8068
8138
|
* Component display name.
|
|
8069
8139
|
*/
|
|
8070
|
-
const COMPONENT_NAME$
|
|
8140
|
+
const COMPONENT_NAME$K = 'Progress';
|
|
8071
8141
|
|
|
8072
8142
|
/**
|
|
8073
8143
|
* Component default class name and class prefix.
|
|
8074
8144
|
*/
|
|
8075
|
-
const CLASSNAME$
|
|
8145
|
+
const CLASSNAME$H = getRootClassName(COMPONENT_NAME$K);
|
|
8076
8146
|
|
|
8077
8147
|
/**
|
|
8078
8148
|
* Component default props.
|
|
8079
8149
|
*/
|
|
8080
|
-
const DEFAULT_PROPS$
|
|
8150
|
+
const DEFAULT_PROPS$y = {
|
|
8081
8151
|
theme: Theme.light,
|
|
8082
8152
|
variant: ProgressVariant.circular
|
|
8083
8153
|
};
|
|
@@ -8094,17 +8164,17 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8094
8164
|
theme,
|
|
8095
8165
|
variant
|
|
8096
8166
|
} = props,
|
|
8097
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8167
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$L);
|
|
8098
8168
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8099
8169
|
ref: ref
|
|
8100
8170
|
}, forwardedProps, {
|
|
8101
8171
|
className: classnames(className, handleBasicClasses({
|
|
8102
|
-
prefix: CLASSNAME$
|
|
8172
|
+
prefix: CLASSNAME$H,
|
|
8103
8173
|
theme,
|
|
8104
8174
|
variant
|
|
8105
8175
|
}))
|
|
8106
8176
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8107
|
-
className: classnames(`${CLASSNAME$
|
|
8177
|
+
className: classnames(`${CLASSNAME$H}-${variant}`)
|
|
8108
8178
|
}, variant === ProgressVariant.circular && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
8109
8179
|
className: "lumx-progress-circular__double-bounce1"
|
|
8110
8180
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -8125,9 +8195,9 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8125
8195
|
className: "lumx-progress-linear__line2"
|
|
8126
8196
|
}))));
|
|
8127
8197
|
});
|
|
8128
|
-
Progress.displayName = COMPONENT_NAME$
|
|
8129
|
-
Progress.className = CLASSNAME$
|
|
8130
|
-
Progress.defaultProps = DEFAULT_PROPS$
|
|
8198
|
+
Progress.displayName = COMPONENT_NAME$K;
|
|
8199
|
+
Progress.className = CLASSNAME$H;
|
|
8200
|
+
Progress.defaultProps = DEFAULT_PROPS$y;
|
|
8131
8201
|
|
|
8132
8202
|
const INIT_STATE = {
|
|
8133
8203
|
isLazy: true,
|
|
@@ -8248,8 +8318,8 @@ const useTabProviderContextState = () => {
|
|
|
8248
8318
|
return context === null || context === void 0 ? void 0 : context[0];
|
|
8249
8319
|
};
|
|
8250
8320
|
|
|
8251
|
-
const _excluded$
|
|
8252
|
-
const DEFAULT_PROPS$
|
|
8321
|
+
const _excluded$M = ["children", "onChange"];
|
|
8322
|
+
const DEFAULT_PROPS$z = {
|
|
8253
8323
|
isLazy: INIT_STATE.isLazy,
|
|
8254
8324
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
8255
8325
|
};
|
|
@@ -8270,7 +8340,7 @@ const ProgressTrackerProvider = props => {
|
|
|
8270
8340
|
children,
|
|
8271
8341
|
onChange
|
|
8272
8342
|
} = props,
|
|
8273
|
-
propState = _objectWithoutProperties(props, _excluded$
|
|
8343
|
+
propState = _objectWithoutProperties(props, _excluded$M);
|
|
8274
8344
|
const [state, dispatch] = useReducer(reducer, INIT_STATE);
|
|
8275
8345
|
|
|
8276
8346
|
// On prop state change => dispatch update.
|
|
@@ -8298,7 +8368,7 @@ const ProgressTrackerProvider = props => {
|
|
|
8298
8368
|
value: [state, dispatch]
|
|
8299
8369
|
}, children);
|
|
8300
8370
|
};
|
|
8301
|
-
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$
|
|
8371
|
+
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$z;
|
|
8302
8372
|
|
|
8303
8373
|
const useRovingTabIndex = _ref => {
|
|
8304
8374
|
let {
|
|
@@ -8374,7 +8444,7 @@ const useRovingTabIndex = _ref => {
|
|
|
8374
8444
|
[parentRef, ...extraDependencies]);
|
|
8375
8445
|
};
|
|
8376
8446
|
|
|
8377
|
-
const _excluded$
|
|
8447
|
+
const _excluded$N = ["aria-label", "children", "className"];
|
|
8378
8448
|
|
|
8379
8449
|
/**
|
|
8380
8450
|
* Defines the props of the component.
|
|
@@ -8383,17 +8453,17 @@ const _excluded$M = ["aria-label", "children", "className"];
|
|
|
8383
8453
|
/**
|
|
8384
8454
|
* Component display name.
|
|
8385
8455
|
*/
|
|
8386
|
-
const COMPONENT_NAME$
|
|
8456
|
+
const COMPONENT_NAME$L = 'ProgressTracker';
|
|
8387
8457
|
|
|
8388
8458
|
/**
|
|
8389
8459
|
* Component default class name and class prefix.
|
|
8390
8460
|
*/
|
|
8391
|
-
const CLASSNAME$
|
|
8461
|
+
const CLASSNAME$I = getRootClassName(COMPONENT_NAME$L);
|
|
8392
8462
|
|
|
8393
8463
|
/**
|
|
8394
8464
|
* Component default props.
|
|
8395
8465
|
*/
|
|
8396
|
-
const DEFAULT_PROPS$
|
|
8466
|
+
const DEFAULT_PROPS$A = {};
|
|
8397
8467
|
|
|
8398
8468
|
/**
|
|
8399
8469
|
* ProgressTracker component.
|
|
@@ -8411,7 +8481,7 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8411
8481
|
children,
|
|
8412
8482
|
className
|
|
8413
8483
|
} = props,
|
|
8414
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8484
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$N);
|
|
8415
8485
|
const stepListRef = React.useRef(null);
|
|
8416
8486
|
useRovingTabIndex({
|
|
8417
8487
|
parentRef: stepListRef,
|
|
@@ -8427,20 +8497,20 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8427
8497
|
ref: mergeRefs(ref, stepListRef)
|
|
8428
8498
|
}, forwardedProps, {
|
|
8429
8499
|
className: classnames(className, handleBasicClasses({
|
|
8430
|
-
prefix: CLASSNAME$
|
|
8500
|
+
prefix: CLASSNAME$I
|
|
8431
8501
|
}))
|
|
8432
8502
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8433
|
-
className: `${CLASSNAME$
|
|
8503
|
+
className: `${CLASSNAME$I}__steps`,
|
|
8434
8504
|
role: "tablist",
|
|
8435
8505
|
"aria-label": ariaLabel
|
|
8436
8506
|
}, children), /*#__PURE__*/React.createElement("div", {
|
|
8437
|
-
className: `${CLASSNAME$
|
|
8507
|
+
className: `${CLASSNAME$I}__background-bar`,
|
|
8438
8508
|
style: {
|
|
8439
8509
|
left: `${backgroundPosition}%`,
|
|
8440
8510
|
right: `${backgroundPosition}%`
|
|
8441
8511
|
}
|
|
8442
8512
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8443
|
-
className: `${CLASSNAME$
|
|
8513
|
+
className: `${CLASSNAME$I}__foreground-bar`,
|
|
8444
8514
|
style: {
|
|
8445
8515
|
left: `${backgroundPosition}%`,
|
|
8446
8516
|
right: `${backgroundPosition}%`,
|
|
@@ -8448,11 +8518,11 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8448
8518
|
}
|
|
8449
8519
|
}));
|
|
8450
8520
|
});
|
|
8451
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
8452
|
-
ProgressTracker.className = CLASSNAME$
|
|
8453
|
-
ProgressTracker.defaultProps = DEFAULT_PROPS$
|
|
8521
|
+
ProgressTracker.displayName = COMPONENT_NAME$L;
|
|
8522
|
+
ProgressTracker.className = CLASSNAME$I;
|
|
8523
|
+
ProgressTracker.defaultProps = DEFAULT_PROPS$A;
|
|
8454
8524
|
|
|
8455
|
-
const _excluded$
|
|
8525
|
+
const _excluded$O = ["className", "disabled", "hasError", "helper", "id", "isActive", "isComplete", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
|
|
8456
8526
|
|
|
8457
8527
|
/**
|
|
8458
8528
|
* Defines the props of the component.
|
|
@@ -8461,17 +8531,17 @@ const _excluded$N = ["className", "disabled", "hasError", "helper", "id", "isAct
|
|
|
8461
8531
|
/**
|
|
8462
8532
|
* Component display name.
|
|
8463
8533
|
*/
|
|
8464
|
-
const COMPONENT_NAME$
|
|
8534
|
+
const COMPONENT_NAME$M = 'ProgressTrackerStep';
|
|
8465
8535
|
|
|
8466
8536
|
/**
|
|
8467
8537
|
* Component default class name and class prefix.
|
|
8468
8538
|
*/
|
|
8469
|
-
const CLASSNAME$
|
|
8539
|
+
const CLASSNAME$J = getRootClassName(COMPONENT_NAME$M);
|
|
8470
8540
|
|
|
8471
8541
|
/**
|
|
8472
8542
|
* Component default props.
|
|
8473
8543
|
*/
|
|
8474
|
-
const DEFAULT_PROPS$
|
|
8544
|
+
const DEFAULT_PROPS$B = {};
|
|
8475
8545
|
|
|
8476
8546
|
/**
|
|
8477
8547
|
* ProgressTrackerStep component.
|
|
@@ -8497,7 +8567,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8497
8567
|
onKeyPress,
|
|
8498
8568
|
tabIndex = -1
|
|
8499
8569
|
} = props,
|
|
8500
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8570
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$O);
|
|
8501
8571
|
const state = useTabProviderContext('tab', id);
|
|
8502
8572
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
8503
8573
|
const changeToCurrentTab = useCallback(() => {
|
|
@@ -8534,7 +8604,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8534
8604
|
type: "button",
|
|
8535
8605
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
8536
8606
|
className: classnames(className, handleBasicClasses({
|
|
8537
|
-
prefix: CLASSNAME$
|
|
8607
|
+
prefix: CLASSNAME$J,
|
|
8538
8608
|
hasError,
|
|
8539
8609
|
isActive,
|
|
8540
8610
|
isClickable: state && !isDisabled,
|
|
@@ -8549,22 +8619,22 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8549
8619
|
"aria-selected": isActive,
|
|
8550
8620
|
"aria-controls": state === null || state === void 0 ? void 0 : state.tabPanelId
|
|
8551
8621
|
}), /*#__PURE__*/React.createElement(Icon, {
|
|
8552
|
-
className: `${CLASSNAME$
|
|
8622
|
+
className: `${CLASSNAME$J}__state`,
|
|
8553
8623
|
icon: getIcon(),
|
|
8554
8624
|
size: Size.s
|
|
8555
8625
|
}), /*#__PURE__*/React.createElement(InputLabel, {
|
|
8556
8626
|
htmlFor: (state === null || state === void 0 ? void 0 : state.tabId) || '',
|
|
8557
|
-
className: `${CLASSNAME$
|
|
8627
|
+
className: `${CLASSNAME$J}__label`
|
|
8558
8628
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
8559
8629
|
kind: hasError ? Kind.error : Kind.info,
|
|
8560
|
-
className: `${CLASSNAME$
|
|
8630
|
+
className: `${CLASSNAME$J}__helper`
|
|
8561
8631
|
}, helper));
|
|
8562
8632
|
});
|
|
8563
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
8564
|
-
ProgressTrackerStep.className = CLASSNAME$
|
|
8565
|
-
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$
|
|
8633
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$M;
|
|
8634
|
+
ProgressTrackerStep.className = CLASSNAME$J;
|
|
8635
|
+
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$B;
|
|
8566
8636
|
|
|
8567
|
-
const _excluded$
|
|
8637
|
+
const _excluded$P = ["children", "id", "className", "isActive"];
|
|
8568
8638
|
|
|
8569
8639
|
/**
|
|
8570
8640
|
* Defines the props of the component.
|
|
@@ -8573,17 +8643,17 @@ const _excluded$O = ["children", "id", "className", "isActive"];
|
|
|
8573
8643
|
/**
|
|
8574
8644
|
* Component display name.
|
|
8575
8645
|
*/
|
|
8576
|
-
const COMPONENT_NAME$
|
|
8646
|
+
const COMPONENT_NAME$N = 'ProgressTrackerStepPanel';
|
|
8577
8647
|
|
|
8578
8648
|
/**
|
|
8579
8649
|
* Component default class name and class prefix.
|
|
8580
8650
|
*/
|
|
8581
|
-
const CLASSNAME$
|
|
8651
|
+
const CLASSNAME$K = `${CSS_PREFIX}-step-panel`;
|
|
8582
8652
|
|
|
8583
8653
|
/**
|
|
8584
8654
|
* Component default props.
|
|
8585
8655
|
*/
|
|
8586
|
-
const DEFAULT_PROPS$
|
|
8656
|
+
const DEFAULT_PROPS$C = {};
|
|
8587
8657
|
|
|
8588
8658
|
/**
|
|
8589
8659
|
* ProgressTrackerStepPanel component.
|
|
@@ -8601,7 +8671,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8601
8671
|
className,
|
|
8602
8672
|
isActive: propIsActive
|
|
8603
8673
|
} = props,
|
|
8604
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8674
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$P);
|
|
8605
8675
|
const state = useTabProviderContext('tabPanel', id);
|
|
8606
8676
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
8607
8677
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -8609,7 +8679,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8609
8679
|
}, forwardedProps, {
|
|
8610
8680
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
8611
8681
|
className: classnames(className, handleBasicClasses({
|
|
8612
|
-
prefix: CLASSNAME$
|
|
8682
|
+
prefix: CLASSNAME$K,
|
|
8613
8683
|
isActive
|
|
8614
8684
|
})),
|
|
8615
8685
|
role: "tabpanel",
|
|
@@ -8617,11 +8687,11 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8617
8687
|
"aria-labelledby": state === null || state === void 0 ? void 0 : state.tabId
|
|
8618
8688
|
}), (!(state !== null && state !== void 0 && state.isLazy) || isActive) && children);
|
|
8619
8689
|
});
|
|
8620
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
8621
|
-
ProgressTrackerStepPanel.className = CLASSNAME$
|
|
8622
|
-
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$
|
|
8690
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$N;
|
|
8691
|
+
ProgressTrackerStepPanel.className = CLASSNAME$K;
|
|
8692
|
+
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$C;
|
|
8623
8693
|
|
|
8624
|
-
const _excluded$
|
|
8694
|
+
const _excluded$Q = ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value", "inputProps"];
|
|
8625
8695
|
|
|
8626
8696
|
/**
|
|
8627
8697
|
* Defines the props of the component.
|
|
@@ -8630,17 +8700,17 @@ const _excluded$P = ["checked", "className", "disabled", "helper", "id", "inputR
|
|
|
8630
8700
|
/**
|
|
8631
8701
|
* Component display name.
|
|
8632
8702
|
*/
|
|
8633
|
-
const COMPONENT_NAME$
|
|
8703
|
+
const COMPONENT_NAME$O = 'RadioButton';
|
|
8634
8704
|
|
|
8635
8705
|
/**
|
|
8636
8706
|
* Component default class name and class prefix.
|
|
8637
8707
|
*/
|
|
8638
|
-
const CLASSNAME$
|
|
8708
|
+
const CLASSNAME$L = getRootClassName(COMPONENT_NAME$O);
|
|
8639
8709
|
|
|
8640
8710
|
/**
|
|
8641
8711
|
* Component default props.
|
|
8642
8712
|
*/
|
|
8643
|
-
const DEFAULT_PROPS$
|
|
8713
|
+
const DEFAULT_PROPS$D = {
|
|
8644
8714
|
theme: Theme.light
|
|
8645
8715
|
};
|
|
8646
8716
|
|
|
@@ -8668,8 +8738,8 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8668
8738
|
value,
|
|
8669
8739
|
inputProps
|
|
8670
8740
|
} = props,
|
|
8671
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8672
|
-
const inputId = useMemo(() => id || `${CLASSNAME$
|
|
8741
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$Q);
|
|
8742
|
+
const inputId = useMemo(() => id || `${CLASSNAME$L.toLowerCase()}-${uid()}`, [id]);
|
|
8673
8743
|
const handleChange = event => {
|
|
8674
8744
|
if (onChange) {
|
|
8675
8745
|
onChange(value, name, event);
|
|
@@ -8682,14 +8752,14 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8682
8752
|
isChecked,
|
|
8683
8753
|
isDisabled,
|
|
8684
8754
|
isUnchecked: !isChecked,
|
|
8685
|
-
prefix: CLASSNAME$
|
|
8755
|
+
prefix: CLASSNAME$L,
|
|
8686
8756
|
theme
|
|
8687
8757
|
}))
|
|
8688
8758
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8689
|
-
className: `${CLASSNAME$
|
|
8759
|
+
className: `${CLASSNAME$L}__input-wrapper`
|
|
8690
8760
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
8691
8761
|
ref: inputRef,
|
|
8692
|
-
className: `${CLASSNAME$
|
|
8762
|
+
className: `${CLASSNAME$L}__input-native`,
|
|
8693
8763
|
disabled: isDisabled,
|
|
8694
8764
|
id: inputId,
|
|
8695
8765
|
tabIndex: isDisabled ? -1 : 0,
|
|
@@ -8700,28 +8770,28 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8700
8770
|
onChange: handleChange,
|
|
8701
8771
|
"aria-describedby": helper ? `${inputId}-helper` : undefined
|
|
8702
8772
|
}, inputProps)), /*#__PURE__*/React.createElement("div", {
|
|
8703
|
-
className: `${CLASSNAME$
|
|
8773
|
+
className: `${CLASSNAME$L}__input-placeholder`
|
|
8704
8774
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8705
|
-
className: `${CLASSNAME$
|
|
8775
|
+
className: `${CLASSNAME$L}__input-background`
|
|
8706
8776
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8707
|
-
className: `${CLASSNAME$
|
|
8777
|
+
className: `${CLASSNAME$L}__input-indicator`
|
|
8708
8778
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
8709
|
-
className: `${CLASSNAME$
|
|
8779
|
+
className: `${CLASSNAME$L}__content`
|
|
8710
8780
|
}, label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
8711
8781
|
htmlFor: inputId,
|
|
8712
8782
|
theme: theme,
|
|
8713
|
-
className: `${CLASSNAME$
|
|
8783
|
+
className: `${CLASSNAME$L}__label`
|
|
8714
8784
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
8715
8785
|
id: `${inputId}-helper`,
|
|
8716
8786
|
theme: theme,
|
|
8717
|
-
className: `${CLASSNAME$
|
|
8787
|
+
className: `${CLASSNAME$L}__helper`
|
|
8718
8788
|
}, helper)));
|
|
8719
8789
|
});
|
|
8720
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
8721
|
-
RadioButton.className = CLASSNAME$
|
|
8722
|
-
RadioButton.defaultProps = DEFAULT_PROPS$
|
|
8790
|
+
RadioButton.displayName = COMPONENT_NAME$O;
|
|
8791
|
+
RadioButton.className = CLASSNAME$L;
|
|
8792
|
+
RadioButton.defaultProps = DEFAULT_PROPS$D;
|
|
8723
8793
|
|
|
8724
|
-
const _excluded$
|
|
8794
|
+
const _excluded$R = ["children", "className"];
|
|
8725
8795
|
|
|
8726
8796
|
/**
|
|
8727
8797
|
* Defines the props of the component.
|
|
@@ -8730,12 +8800,12 @@ const _excluded$Q = ["children", "className"];
|
|
|
8730
8800
|
/**
|
|
8731
8801
|
* Component display name.
|
|
8732
8802
|
*/
|
|
8733
|
-
const COMPONENT_NAME$
|
|
8803
|
+
const COMPONENT_NAME$P = 'RadioGroup';
|
|
8734
8804
|
|
|
8735
8805
|
/**
|
|
8736
8806
|
* Component default class name and class prefix.
|
|
8737
8807
|
*/
|
|
8738
|
-
const CLASSNAME$
|
|
8808
|
+
const CLASSNAME$M = getRootClassName(COMPONENT_NAME$P);
|
|
8739
8809
|
|
|
8740
8810
|
/**
|
|
8741
8811
|
* RadioGroup component.
|
|
@@ -8749,17 +8819,17 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8749
8819
|
children,
|
|
8750
8820
|
className
|
|
8751
8821
|
} = props,
|
|
8752
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8822
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$R);
|
|
8753
8823
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8754
8824
|
ref: ref
|
|
8755
8825
|
}, forwardedProps, {
|
|
8756
8826
|
className: classnames(className, handleBasicClasses({
|
|
8757
|
-
prefix: CLASSNAME$
|
|
8827
|
+
prefix: CLASSNAME$M
|
|
8758
8828
|
}))
|
|
8759
8829
|
}), children);
|
|
8760
8830
|
});
|
|
8761
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
8762
|
-
RadioGroup.className = CLASSNAME$
|
|
8831
|
+
RadioGroup.displayName = COMPONENT_NAME$P;
|
|
8832
|
+
RadioGroup.className = CLASSNAME$M;
|
|
8763
8833
|
|
|
8764
8834
|
/**
|
|
8765
8835
|
* Listen on element focus to store the focus status.
|
|
@@ -8793,16 +8863,16 @@ const SelectVariant = {
|
|
|
8793
8863
|
chip: 'chip'
|
|
8794
8864
|
};
|
|
8795
8865
|
|
|
8796
|
-
const _excluded$
|
|
8866
|
+
const _excluded$S = ["children", "className", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"];
|
|
8797
8867
|
|
|
8798
8868
|
/** The display name of the component. */
|
|
8799
|
-
const COMPONENT_NAME$
|
|
8869
|
+
const COMPONENT_NAME$Q = 'Select';
|
|
8800
8870
|
|
|
8801
8871
|
/** The default class name and classes prefix for this component. */
|
|
8802
|
-
const CLASSNAME$
|
|
8872
|
+
const CLASSNAME$N = getRootClassName(COMPONENT_NAME$Q);
|
|
8803
8873
|
|
|
8804
8874
|
/** The default value of props. */
|
|
8805
|
-
const DEFAULT_PROPS$
|
|
8875
|
+
const DEFAULT_PROPS$E = {
|
|
8806
8876
|
theme: Theme.light,
|
|
8807
8877
|
variant: SelectVariant.input
|
|
8808
8878
|
};
|
|
@@ -8828,11 +8898,11 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
8828
8898
|
onInfiniteScroll,
|
|
8829
8899
|
onInputClick,
|
|
8830
8900
|
placeholder,
|
|
8831
|
-
theme = DEFAULT_PROPS$
|
|
8901
|
+
theme = DEFAULT_PROPS$E.theme,
|
|
8832
8902
|
value,
|
|
8833
|
-
variant = DEFAULT_PROPS$
|
|
8903
|
+
variant = DEFAULT_PROPS$E.variant
|
|
8834
8904
|
} = _ref,
|
|
8835
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
8905
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$S);
|
|
8836
8906
|
const selectId = useMemo(() => id || `select-${uid()}`, [id]);
|
|
8837
8907
|
const anchorRef = useRef(null);
|
|
8838
8908
|
const selectRef = useRef(null);
|
|
@@ -8862,7 +8932,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
8862
8932
|
isFocus,
|
|
8863
8933
|
isOpen,
|
|
8864
8934
|
isValid,
|
|
8865
|
-
prefix: CLASSNAME$
|
|
8935
|
+
prefix: CLASSNAME$N,
|
|
8866
8936
|
theme: theme === Theme.light ? Theme.light : Theme.dark
|
|
8867
8937
|
}))
|
|
8868
8938
|
}, /*#__PURE__*/React.createElement(SelectElement, _extends({}, forwardedProps, {
|
|
@@ -8892,25 +8962,25 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
8892
8962
|
onClose: onClose,
|
|
8893
8963
|
onInfiniteScroll: onInfiniteScroll
|
|
8894
8964
|
}, children), hasError && error && /*#__PURE__*/React.createElement(InputHelper, {
|
|
8895
|
-
className: `${CLASSNAME$
|
|
8965
|
+
className: `${CLASSNAME$N}__helper`,
|
|
8896
8966
|
kind: Kind.error,
|
|
8897
8967
|
theme: theme
|
|
8898
8968
|
}, error), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
8899
|
-
className: `${CLASSNAME$
|
|
8969
|
+
className: `${CLASSNAME$N}__helper`,
|
|
8900
8970
|
theme: theme
|
|
8901
8971
|
}, helper));
|
|
8902
8972
|
};
|
|
8903
8973
|
|
|
8904
|
-
const _excluded$
|
|
8974
|
+
const _excluded$T = ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant"];
|
|
8905
8975
|
|
|
8906
8976
|
/** The display name of the component. */
|
|
8907
|
-
const COMPONENT_NAME$
|
|
8977
|
+
const COMPONENT_NAME$R = 'Select';
|
|
8908
8978
|
|
|
8909
8979
|
/** The default class name and classes prefix for this component. */
|
|
8910
|
-
const CLASSNAME$
|
|
8980
|
+
const CLASSNAME$O = getRootClassName(COMPONENT_NAME$R);
|
|
8911
8981
|
|
|
8912
8982
|
/** The default value of props. */
|
|
8913
|
-
const DEFAULT_PROPS$
|
|
8983
|
+
const DEFAULT_PROPS$F = {
|
|
8914
8984
|
selectedValueRender: choice => choice
|
|
8915
8985
|
};
|
|
8916
8986
|
const stopPropagation = evt => evt.stopPropagation();
|
|
@@ -8940,36 +9010,36 @@ const SelectField = _ref => {
|
|
|
8940
9010
|
value,
|
|
8941
9011
|
variant
|
|
8942
9012
|
} = _ref,
|
|
8943
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
9013
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$T);
|
|
8944
9014
|
return /*#__PURE__*/React.createElement(React.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement("div", {
|
|
8945
|
-
className: `${CLASSNAME$
|
|
9015
|
+
className: `${CLASSNAME$O}__header`
|
|
8946
9016
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
8947
9017
|
htmlFor: id,
|
|
8948
|
-
className: `${CLASSNAME$
|
|
9018
|
+
className: `${CLASSNAME$O}__label`,
|
|
8949
9019
|
isRequired: isRequired,
|
|
8950
9020
|
theme: theme
|
|
8951
9021
|
}, label)), /*#__PURE__*/React.createElement("div", _extends({
|
|
8952
9022
|
ref: anchorRef,
|
|
8953
9023
|
id: id,
|
|
8954
|
-
className: `${CLASSNAME$
|
|
9024
|
+
className: `${CLASSNAME$O}__wrapper`,
|
|
8955
9025
|
onClick: onInputClick,
|
|
8956
9026
|
onKeyDown: handleKeyboardNav,
|
|
8957
9027
|
tabIndex: isDisabled ? undefined : 0,
|
|
8958
9028
|
"aria-disabled": isDisabled || undefined
|
|
8959
9029
|
}, forwardedProps), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
8960
|
-
className: `${CLASSNAME$
|
|
9030
|
+
className: `${CLASSNAME$O}__input-icon`,
|
|
8961
9031
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
8962
9032
|
icon: icon,
|
|
8963
9033
|
size: Size.xs
|
|
8964
9034
|
}), /*#__PURE__*/React.createElement("div", {
|
|
8965
|
-
className: classnames([`${CLASSNAME$
|
|
9035
|
+
className: classnames([`${CLASSNAME$O}__input-native`, isEmpty && placeholder && `${CLASSNAME$O}__input-native--placeholder`])
|
|
8966
9036
|
}, !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", {
|
|
8967
|
-
className: `${CLASSNAME$
|
|
9037
|
+
className: `${CLASSNAME$O}__input-validity`
|
|
8968
9038
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8969
9039
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
8970
9040
|
size: Size.xxs
|
|
8971
9041
|
})), hasInputClear && clearButtonProps && /*#__PURE__*/React.createElement(IconButton, _extends({}, clearButtonProps, {
|
|
8972
|
-
className: `${CLASSNAME$
|
|
9042
|
+
className: `${CLASSNAME$O}__input-clear`,
|
|
8973
9043
|
icon: mdiCloseCircle,
|
|
8974
9044
|
emphasis: Emphasis.low,
|
|
8975
9045
|
size: Size.s,
|
|
@@ -8977,7 +9047,7 @@ const SelectField = _ref => {
|
|
|
8977
9047
|
onClick: onClear,
|
|
8978
9048
|
onKeyDown: stopPropagation
|
|
8979
9049
|
})), /*#__PURE__*/React.createElement("div", {
|
|
8980
|
-
className: `${CLASSNAME$
|
|
9050
|
+
className: `${CLASSNAME$O}__input-indicator`
|
|
8981
9051
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
8982
9052
|
icon: mdiMenuDown,
|
|
8983
9053
|
size: Size.s
|
|
@@ -9009,29 +9079,29 @@ const Select = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9009
9079
|
className: classnames(props.className, handleBasicClasses({
|
|
9010
9080
|
hasInputClear,
|
|
9011
9081
|
hasUnique: !props.isEmpty,
|
|
9012
|
-
prefix: CLASSNAME$
|
|
9082
|
+
prefix: CLASSNAME$O
|
|
9013
9083
|
})),
|
|
9014
9084
|
hasInputClear,
|
|
9015
9085
|
isEmpty: isEmpty$1
|
|
9016
9086
|
}), ref);
|
|
9017
9087
|
});
|
|
9018
|
-
Select.displayName = COMPONENT_NAME$
|
|
9019
|
-
Select.className = CLASSNAME$
|
|
9020
|
-
Select.defaultProps = DEFAULT_PROPS$
|
|
9021
|
-
Select.className = CLASSNAME$
|
|
9088
|
+
Select.displayName = COMPONENT_NAME$R;
|
|
9089
|
+
Select.className = CLASSNAME$O;
|
|
9090
|
+
Select.defaultProps = DEFAULT_PROPS$F;
|
|
9091
|
+
Select.className = CLASSNAME$O;
|
|
9022
9092
|
|
|
9023
|
-
const _excluded$
|
|
9093
|
+
const _excluded$U = ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant"];
|
|
9024
9094
|
|
|
9025
9095
|
/** Defines the props of the component. */
|
|
9026
9096
|
|
|
9027
9097
|
/** The display name of the component. */
|
|
9028
|
-
const COMPONENT_NAME$
|
|
9098
|
+
const COMPONENT_NAME$S = 'Select';
|
|
9029
9099
|
|
|
9030
9100
|
/** The default class name and classes prefix for this component. */
|
|
9031
|
-
const CLASSNAME$
|
|
9101
|
+
const CLASSNAME$P = getRootClassName(COMPONENT_NAME$S);
|
|
9032
9102
|
|
|
9033
9103
|
/** The default value of props. */
|
|
9034
|
-
const DEFAULT_PROPS$
|
|
9104
|
+
const DEFAULT_PROPS$G = {
|
|
9035
9105
|
selectedChipRender(choice, index, onClear, isDisabled, theme) {
|
|
9036
9106
|
const onClick = event => onClear && onClear(event, choice);
|
|
9037
9107
|
return /*#__PURE__*/React.createElement(Chip, {
|
|
@@ -9070,38 +9140,38 @@ const SelectMultipleField = _ref => {
|
|
|
9070
9140
|
value,
|
|
9071
9141
|
variant
|
|
9072
9142
|
} = _ref,
|
|
9073
|
-
forwardedProps = _objectWithoutProperties(_ref, _excluded$
|
|
9143
|
+
forwardedProps = _objectWithoutProperties(_ref, _excluded$U);
|
|
9074
9144
|
return /*#__PURE__*/React.createElement(React.Fragment, null, variant === SelectVariant.input && /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement("div", {
|
|
9075
|
-
className: `${CLASSNAME$
|
|
9145
|
+
className: `${CLASSNAME$P}__header`
|
|
9076
9146
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
9077
9147
|
htmlFor: id,
|
|
9078
|
-
className: `${CLASSNAME$
|
|
9148
|
+
className: `${CLASSNAME$P}__label`,
|
|
9079
9149
|
isRequired: isRequired,
|
|
9080
9150
|
theme: theme
|
|
9081
9151
|
}, label)), /*#__PURE__*/React.createElement("div", _extends({
|
|
9082
9152
|
ref: anchorRef,
|
|
9083
9153
|
id: id,
|
|
9084
|
-
className: `${CLASSNAME$
|
|
9154
|
+
className: `${CLASSNAME$P}__wrapper`,
|
|
9085
9155
|
onClick: onInputClick,
|
|
9086
9156
|
onKeyDown: handleKeyboardNav,
|
|
9087
9157
|
tabIndex: isDisabled ? undefined : 0,
|
|
9088
9158
|
"aria-disabled": isDisabled || undefined
|
|
9089
9159
|
}, forwardedProps), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9090
|
-
className: `${CLASSNAME$
|
|
9160
|
+
className: `${CLASSNAME$P}__input-icon`,
|
|
9091
9161
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
9092
9162
|
icon: icon,
|
|
9093
9163
|
size: Size.xs
|
|
9094
9164
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9095
|
-
className: `${CLASSNAME$
|
|
9165
|
+
className: `${CLASSNAME$P}__chips`
|
|
9096
9166
|
}, !isEmpty && value.map((val, index) => selectedChipRender === null || selectedChipRender === void 0 ? void 0 : selectedChipRender(val, index, onClear, isDisabled, theme))), isEmpty && placeholder && /*#__PURE__*/React.createElement("div", {
|
|
9097
|
-
className: classnames([`${CLASSNAME$
|
|
9167
|
+
className: classnames([`${CLASSNAME$P}__input-native`, `${CLASSNAME$P}__input-native--placeholder`])
|
|
9098
9168
|
}, /*#__PURE__*/React.createElement("span", null, placeholder)), (isValid || hasError) && /*#__PURE__*/React.createElement("div", {
|
|
9099
|
-
className: `${CLASSNAME$
|
|
9169
|
+
className: `${CLASSNAME$P}__input-validity`
|
|
9100
9170
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9101
9171
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
9102
9172
|
size: Size.xxs
|
|
9103
9173
|
})), /*#__PURE__*/React.createElement("div", {
|
|
9104
|
-
className: `${CLASSNAME$
|
|
9174
|
+
className: `${CLASSNAME$P}__input-indicator`
|
|
9105
9175
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
9106
9176
|
icon: mdiMenuDown,
|
|
9107
9177
|
size: Size.s
|
|
@@ -9130,17 +9200,17 @@ const SelectMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9130
9200
|
return WithSelectContext(SelectMultipleField, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9131
9201
|
className: classnames(props.className, handleBasicClasses({
|
|
9132
9202
|
hasMultiple: !props.isEmpty,
|
|
9133
|
-
prefix: CLASSNAME$
|
|
9203
|
+
prefix: CLASSNAME$P
|
|
9134
9204
|
})),
|
|
9135
9205
|
isEmpty: props.value.length === 0,
|
|
9136
9206
|
isMultiple: true
|
|
9137
9207
|
}), ref);
|
|
9138
9208
|
});
|
|
9139
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
9140
|
-
SelectMultiple.className = CLASSNAME$
|
|
9141
|
-
SelectMultiple.defaultProps = DEFAULT_PROPS$
|
|
9209
|
+
SelectMultiple.displayName = COMPONENT_NAME$S;
|
|
9210
|
+
SelectMultiple.className = CLASSNAME$P;
|
|
9211
|
+
SelectMultiple.defaultProps = DEFAULT_PROPS$G;
|
|
9142
9212
|
|
|
9143
|
-
const _excluded$
|
|
9213
|
+
const _excluded$V = ["children", "className", "theme"];
|
|
9144
9214
|
|
|
9145
9215
|
/**
|
|
9146
9216
|
* Defines the props of the component.
|
|
@@ -9149,12 +9219,12 @@ const _excluded$U = ["children", "className", "theme"];
|
|
|
9149
9219
|
/**
|
|
9150
9220
|
* Component display name.
|
|
9151
9221
|
*/
|
|
9152
|
-
const COMPONENT_NAME$
|
|
9222
|
+
const COMPONENT_NAME$T = 'SideNavigation';
|
|
9153
9223
|
|
|
9154
9224
|
/**
|
|
9155
9225
|
* Component default class name and class prefix.
|
|
9156
9226
|
*/
|
|
9157
|
-
const CLASSNAME$
|
|
9227
|
+
const CLASSNAME$Q = getRootClassName(COMPONENT_NAME$T);
|
|
9158
9228
|
|
|
9159
9229
|
/**
|
|
9160
9230
|
* SideNavigation component.
|
|
@@ -9169,20 +9239,20 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9169
9239
|
className,
|
|
9170
9240
|
theme
|
|
9171
9241
|
} = props,
|
|
9172
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9242
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$V);
|
|
9173
9243
|
const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
9174
9244
|
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
9175
9245
|
ref: ref
|
|
9176
9246
|
}, forwardedProps, {
|
|
9177
9247
|
className: classnames(className, theme === Theme.dark && 'lumx-color-font-light-N', handleBasicClasses({
|
|
9178
|
-
prefix: CLASSNAME$
|
|
9248
|
+
prefix: CLASSNAME$Q
|
|
9179
9249
|
}))
|
|
9180
9250
|
}), content);
|
|
9181
9251
|
});
|
|
9182
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
9183
|
-
SideNavigation.className = CLASSNAME$
|
|
9252
|
+
SideNavigation.displayName = COMPONENT_NAME$T;
|
|
9253
|
+
SideNavigation.className = CLASSNAME$Q;
|
|
9184
9254
|
|
|
9185
|
-
const _excluded$
|
|
9255
|
+
const _excluded$W = ["children", "className", "emphasis", "icon", "isOpen", "isSelected", "label", "linkAs", "linkProps", "onActionClick", "onClick", "toggleButtonProps", "closeMode"];
|
|
9186
9256
|
|
|
9187
9257
|
/**
|
|
9188
9258
|
* Defines the props of the component.
|
|
@@ -9191,17 +9261,17 @@ const _excluded$V = ["children", "className", "emphasis", "icon", "isOpen", "isS
|
|
|
9191
9261
|
/**
|
|
9192
9262
|
* Component display name.
|
|
9193
9263
|
*/
|
|
9194
|
-
const COMPONENT_NAME$
|
|
9264
|
+
const COMPONENT_NAME$U = 'SideNavigationItem';
|
|
9195
9265
|
|
|
9196
9266
|
/**
|
|
9197
9267
|
* Component default class name and class prefix.
|
|
9198
9268
|
*/
|
|
9199
|
-
const CLASSNAME$
|
|
9269
|
+
const CLASSNAME$R = getRootClassName(COMPONENT_NAME$U);
|
|
9200
9270
|
|
|
9201
9271
|
/**
|
|
9202
9272
|
* Component default props.
|
|
9203
9273
|
*/
|
|
9204
|
-
const DEFAULT_PROPS$
|
|
9274
|
+
const DEFAULT_PROPS$H = {
|
|
9205
9275
|
emphasis: Emphasis.high,
|
|
9206
9276
|
closeMode: 'unmount'
|
|
9207
9277
|
};
|
|
@@ -9229,7 +9299,7 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9229
9299
|
toggleButtonProps,
|
|
9230
9300
|
closeMode = 'unmount'
|
|
9231
9301
|
} = props,
|
|
9232
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9302
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$W);
|
|
9233
9303
|
const content = children && Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
9234
9304
|
const hasContent = !isEmpty(content);
|
|
9235
9305
|
const shouldSplitActions = Boolean(onActionClick);
|
|
@@ -9241,22 +9311,22 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9241
9311
|
emphasis,
|
|
9242
9312
|
isOpen: showChildren,
|
|
9243
9313
|
isSelected,
|
|
9244
|
-
prefix: CLASSNAME$
|
|
9314
|
+
prefix: CLASSNAME$R
|
|
9245
9315
|
}))
|
|
9246
9316
|
}), shouldSplitActions ? /*#__PURE__*/React.createElement("div", {
|
|
9247
|
-
className: `${CLASSNAME$
|
|
9317
|
+
className: `${CLASSNAME$R}__wrapper`
|
|
9248
9318
|
}, renderLink(_objectSpread2(_objectSpread2({
|
|
9249
9319
|
linkAs
|
|
9250
9320
|
}, linkProps), {}, {
|
|
9251
|
-
className: `${CLASSNAME$
|
|
9321
|
+
className: `${CLASSNAME$R}__link`,
|
|
9252
9322
|
onClick,
|
|
9253
9323
|
tabIndex: 0
|
|
9254
9324
|
}), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9255
|
-
className: `${CLASSNAME$
|
|
9325
|
+
className: `${CLASSNAME$R}__icon`,
|
|
9256
9326
|
icon: icon,
|
|
9257
9327
|
size: Size.xs
|
|
9258
9328
|
}), /*#__PURE__*/React.createElement("span", null, label)), /*#__PURE__*/React.createElement(IconButton, _extends({}, toggleButtonProps, {
|
|
9259
|
-
className: `${CLASSNAME$
|
|
9329
|
+
className: `${CLASSNAME$R}__toggle`,
|
|
9260
9330
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
9261
9331
|
size: Size.m,
|
|
9262
9332
|
emphasis: Emphasis.low,
|
|
@@ -9264,45 +9334,45 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9264
9334
|
}))) : renderLink(_objectSpread2(_objectSpread2({
|
|
9265
9335
|
linkAs
|
|
9266
9336
|
}, linkProps), {}, {
|
|
9267
|
-
className: `${CLASSNAME$
|
|
9337
|
+
className: `${CLASSNAME$R}__link`,
|
|
9268
9338
|
tabIndex: 0,
|
|
9269
9339
|
onClick,
|
|
9270
9340
|
onKeyDown: onClick ? onEnterPressed(onClick) : undefined
|
|
9271
9341
|
}), icon && /*#__PURE__*/React.createElement(Icon, {
|
|
9272
|
-
className: `${CLASSNAME$
|
|
9342
|
+
className: `${CLASSNAME$R}__icon`,
|
|
9273
9343
|
icon: icon,
|
|
9274
9344
|
size: Size.xs
|
|
9275
9345
|
}), /*#__PURE__*/React.createElement("span", null, label), hasContent && /*#__PURE__*/React.createElement(Icon, {
|
|
9276
|
-
className: `${CLASSNAME$
|
|
9346
|
+
className: `${CLASSNAME$R}__chevron`,
|
|
9277
9347
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
9278
9348
|
size: Size.xs
|
|
9279
9349
|
})), (closeMode === 'hide' || showChildren) && /*#__PURE__*/React.createElement("ul", {
|
|
9280
|
-
className: `${CLASSNAME$
|
|
9350
|
+
className: `${CLASSNAME$R}__children`
|
|
9281
9351
|
}, content));
|
|
9282
9352
|
});
|
|
9283
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
9284
|
-
SideNavigationItem.className = CLASSNAME$
|
|
9285
|
-
SideNavigationItem.defaultProps = DEFAULT_PROPS$
|
|
9353
|
+
SideNavigationItem.displayName = COMPONENT_NAME$U;
|
|
9354
|
+
SideNavigationItem.className = CLASSNAME$R;
|
|
9355
|
+
SideNavigationItem.defaultProps = DEFAULT_PROPS$H;
|
|
9286
9356
|
|
|
9287
|
-
const _excluded$
|
|
9357
|
+
const _excluded$X = ["className", "size", "color", "theme"];
|
|
9288
9358
|
|
|
9289
9359
|
/**
|
|
9290
9360
|
* Defines the props of the component.
|
|
9291
9361
|
*/
|
|
9292
9362
|
|
|
9293
|
-
const DEFAULT_PROPS$
|
|
9363
|
+
const DEFAULT_PROPS$I = {
|
|
9294
9364
|
theme: Theme.light
|
|
9295
9365
|
};
|
|
9296
9366
|
|
|
9297
9367
|
/**
|
|
9298
9368
|
* Component display name.
|
|
9299
9369
|
*/
|
|
9300
|
-
const COMPONENT_NAME$
|
|
9370
|
+
const COMPONENT_NAME$V = 'SkeletonCircle';
|
|
9301
9371
|
|
|
9302
9372
|
/**
|
|
9303
9373
|
* Component default class name and class prefix.
|
|
9304
9374
|
*/
|
|
9305
|
-
const CLASSNAME$
|
|
9375
|
+
const CLASSNAME$S = getRootClassName(COMPONENT_NAME$V);
|
|
9306
9376
|
|
|
9307
9377
|
/**
|
|
9308
9378
|
* SkeletonCircle component.
|
|
@@ -9318,23 +9388,23 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9318
9388
|
color,
|
|
9319
9389
|
theme
|
|
9320
9390
|
} = props,
|
|
9321
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9391
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$X);
|
|
9322
9392
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9323
9393
|
ref: ref
|
|
9324
9394
|
}, forwardedProps, {
|
|
9325
9395
|
className: classnames(className, handleBasicClasses({
|
|
9326
|
-
prefix: CLASSNAME$
|
|
9396
|
+
prefix: CLASSNAME$S,
|
|
9327
9397
|
size,
|
|
9328
9398
|
color,
|
|
9329
9399
|
theme
|
|
9330
9400
|
}))
|
|
9331
9401
|
}));
|
|
9332
9402
|
});
|
|
9333
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
9334
|
-
SkeletonCircle.defaultProps = DEFAULT_PROPS$
|
|
9335
|
-
SkeletonCircle.className = CLASSNAME$
|
|
9403
|
+
SkeletonCircle.displayName = COMPONENT_NAME$V;
|
|
9404
|
+
SkeletonCircle.defaultProps = DEFAULT_PROPS$I;
|
|
9405
|
+
SkeletonCircle.className = CLASSNAME$S;
|
|
9336
9406
|
|
|
9337
|
-
const _excluded$
|
|
9407
|
+
const _excluded$Y = ["aspectRatio", "className", "height", "theme", "variant", "width", "color"];
|
|
9338
9408
|
|
|
9339
9409
|
/**
|
|
9340
9410
|
* Skeleton variants.
|
|
@@ -9344,7 +9414,7 @@ const SkeletonRectangleVariant = {
|
|
|
9344
9414
|
rounded: 'rounded',
|
|
9345
9415
|
pill: 'pill'
|
|
9346
9416
|
};
|
|
9347
|
-
const DEFAULT_PROPS$
|
|
9417
|
+
const DEFAULT_PROPS$J = {
|
|
9348
9418
|
theme: Theme.light,
|
|
9349
9419
|
variant: SkeletonRectangleVariant.squared
|
|
9350
9420
|
};
|
|
@@ -9352,12 +9422,12 @@ const DEFAULT_PROPS$I = {
|
|
|
9352
9422
|
/**
|
|
9353
9423
|
* Component display name.
|
|
9354
9424
|
*/
|
|
9355
|
-
const COMPONENT_NAME$
|
|
9425
|
+
const COMPONENT_NAME$W = 'SkeletonRectangle';
|
|
9356
9426
|
|
|
9357
9427
|
/**
|
|
9358
9428
|
* Component default class name and class prefix.
|
|
9359
9429
|
*/
|
|
9360
|
-
const CLASSNAME$
|
|
9430
|
+
const CLASSNAME$T = getRootClassName(COMPONENT_NAME$W);
|
|
9361
9431
|
|
|
9362
9432
|
/**
|
|
9363
9433
|
* SkeletonRectangle component.
|
|
@@ -9376,12 +9446,12 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9376
9446
|
width,
|
|
9377
9447
|
color
|
|
9378
9448
|
} = props,
|
|
9379
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9449
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$Y);
|
|
9380
9450
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9381
9451
|
ref: ref
|
|
9382
9452
|
}, forwardedProps, {
|
|
9383
9453
|
className: classnames(className, handleBasicClasses({
|
|
9384
|
-
prefix: CLASSNAME$
|
|
9454
|
+
prefix: CLASSNAME$T,
|
|
9385
9455
|
aspectRatio,
|
|
9386
9456
|
height: aspectRatio ? undefined : height,
|
|
9387
9457
|
theme,
|
|
@@ -9390,32 +9460,32 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9390
9460
|
color
|
|
9391
9461
|
}))
|
|
9392
9462
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9393
|
-
className: `${CLASSNAME$
|
|
9463
|
+
className: `${CLASSNAME$T}__inner`
|
|
9394
9464
|
}));
|
|
9395
9465
|
});
|
|
9396
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
9397
|
-
SkeletonRectangle.className = CLASSNAME$
|
|
9398
|
-
SkeletonRectangle.defaultProps = DEFAULT_PROPS$
|
|
9466
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$W;
|
|
9467
|
+
SkeletonRectangle.className = CLASSNAME$T;
|
|
9468
|
+
SkeletonRectangle.defaultProps = DEFAULT_PROPS$J;
|
|
9399
9469
|
|
|
9400
|
-
const _excluded$
|
|
9470
|
+
const _excluded$Z = ["className", "theme", "typography", "width", "color"];
|
|
9401
9471
|
|
|
9402
9472
|
/**
|
|
9403
9473
|
* Defines the props of the component.
|
|
9404
9474
|
*/
|
|
9405
9475
|
|
|
9406
|
-
const DEFAULT_PROPS$
|
|
9476
|
+
const DEFAULT_PROPS$K = {
|
|
9407
9477
|
theme: Theme.light
|
|
9408
9478
|
};
|
|
9409
9479
|
|
|
9410
9480
|
/**
|
|
9411
9481
|
* Component display name.
|
|
9412
9482
|
*/
|
|
9413
|
-
const COMPONENT_NAME$
|
|
9483
|
+
const COMPONENT_NAME$X = 'SkeletonTypography';
|
|
9414
9484
|
|
|
9415
9485
|
/**
|
|
9416
9486
|
* Component default class name and class prefix.
|
|
9417
9487
|
*/
|
|
9418
|
-
const CLASSNAME$
|
|
9488
|
+
const CLASSNAME$U = getRootClassName(COMPONENT_NAME$X);
|
|
9419
9489
|
|
|
9420
9490
|
/**
|
|
9421
9491
|
* SkeletonTypography component.
|
|
@@ -9432,12 +9502,12 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9432
9502
|
width,
|
|
9433
9503
|
color
|
|
9434
9504
|
} = props,
|
|
9435
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9505
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$Z);
|
|
9436
9506
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9437
9507
|
ref: ref
|
|
9438
9508
|
}, forwardedProps, {
|
|
9439
9509
|
className: classnames(className, handleBasicClasses({
|
|
9440
|
-
prefix: CLASSNAME$
|
|
9510
|
+
prefix: CLASSNAME$U,
|
|
9441
9511
|
theme,
|
|
9442
9512
|
typography,
|
|
9443
9513
|
color
|
|
@@ -9446,12 +9516,12 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9446
9516
|
width
|
|
9447
9517
|
})
|
|
9448
9518
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9449
|
-
className: `${CLASSNAME$
|
|
9519
|
+
className: `${CLASSNAME$U}__inner`
|
|
9450
9520
|
}));
|
|
9451
9521
|
});
|
|
9452
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
9453
|
-
SkeletonTypography.defaultProps = DEFAULT_PROPS$
|
|
9454
|
-
SkeletonTypography.className = CLASSNAME$
|
|
9522
|
+
SkeletonTypography.displayName = COMPONENT_NAME$X;
|
|
9523
|
+
SkeletonTypography.defaultProps = DEFAULT_PROPS$K;
|
|
9524
|
+
SkeletonTypography.className = CLASSNAME$U;
|
|
9455
9525
|
|
|
9456
9526
|
const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
9457
9527
|
|
|
@@ -9487,7 +9557,7 @@ const clamp = (value, min, max) => {
|
|
|
9487
9557
|
return value;
|
|
9488
9558
|
};
|
|
9489
9559
|
|
|
9490
|
-
const _excluded$
|
|
9560
|
+
const _excluded$_ = ["className", "disabled", "helper", "hideMinMaxLabel", "id", "isDisabled", "label", "max", "min", "name", "onChange", "onMouseDown", "precision", "steps", "theme", "value"];
|
|
9491
9561
|
|
|
9492
9562
|
/**
|
|
9493
9563
|
* Defines the props of the component.
|
|
@@ -9496,17 +9566,17 @@ const _excluded$Z = ["className", "disabled", "helper", "hideMinMaxLabel", "id",
|
|
|
9496
9566
|
/**
|
|
9497
9567
|
* Component display name.
|
|
9498
9568
|
*/
|
|
9499
|
-
const COMPONENT_NAME$
|
|
9569
|
+
const COMPONENT_NAME$Y = 'Slider';
|
|
9500
9570
|
|
|
9501
9571
|
/**
|
|
9502
9572
|
* Component default class name and class prefix.
|
|
9503
9573
|
*/
|
|
9504
|
-
const CLASSNAME$
|
|
9574
|
+
const CLASSNAME$V = getRootClassName(COMPONENT_NAME$Y);
|
|
9505
9575
|
|
|
9506
9576
|
/**
|
|
9507
9577
|
* Component default props.
|
|
9508
9578
|
*/
|
|
9509
|
-
const DEFAULT_PROPS$
|
|
9579
|
+
const DEFAULT_PROPS$L = {
|
|
9510
9580
|
precision: 0,
|
|
9511
9581
|
steps: 0,
|
|
9512
9582
|
theme: Theme.light
|
|
@@ -9562,7 +9632,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9562
9632
|
theme,
|
|
9563
9633
|
value
|
|
9564
9634
|
} = props,
|
|
9565
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9635
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$_);
|
|
9566
9636
|
const sliderId = useMemo(() => id || `slider-${uid()}`, [id]);
|
|
9567
9637
|
const sliderLabelId = useMemo(() => `label-${sliderId}`, [sliderId]);
|
|
9568
9638
|
const sliderRef = useRef(null);
|
|
@@ -9695,7 +9765,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9695
9765
|
ref: ref
|
|
9696
9766
|
}, forwardedProps, {
|
|
9697
9767
|
className: classnames(className, handleBasicClasses({
|
|
9698
|
-
prefix: CLASSNAME$
|
|
9768
|
+
prefix: CLASSNAME$V,
|
|
9699
9769
|
theme,
|
|
9700
9770
|
hasLabel: Boolean(label)
|
|
9701
9771
|
})),
|
|
@@ -9704,30 +9774,30 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9704
9774
|
}), label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
9705
9775
|
id: sliderLabelId,
|
|
9706
9776
|
htmlFor: sliderId,
|
|
9707
|
-
className: `${CLASSNAME$
|
|
9777
|
+
className: `${CLASSNAME$V}__label`,
|
|
9708
9778
|
theme: theme
|
|
9709
9779
|
}, label), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
9710
|
-
className: `${CLASSNAME$
|
|
9780
|
+
className: `${CLASSNAME$V}__helper`,
|
|
9711
9781
|
theme: theme
|
|
9712
9782
|
}, helper), /*#__PURE__*/React.createElement("div", {
|
|
9713
|
-
className: `${CLASSNAME$
|
|
9783
|
+
className: `${CLASSNAME$V}__ui-wrapper`
|
|
9714
9784
|
}, !hideMinMaxLabel && /*#__PURE__*/React.createElement("span", {
|
|
9715
|
-
className: `${CLASSNAME$
|
|
9785
|
+
className: `${CLASSNAME$V}__value-label ${CLASSNAME$V}__value-label--min`
|
|
9716
9786
|
}, min), /*#__PURE__*/React.createElement("div", {
|
|
9717
|
-
className: `${CLASSNAME$
|
|
9787
|
+
className: `${CLASSNAME$V}__wrapper`,
|
|
9718
9788
|
ref: sliderRef
|
|
9719
9789
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9720
|
-
className: `${CLASSNAME$
|
|
9790
|
+
className: `${CLASSNAME$V}__track ${CLASSNAME$V}__track--background`
|
|
9721
9791
|
}), /*#__PURE__*/React.createElement("div", {
|
|
9722
|
-
className: `${CLASSNAME$
|
|
9792
|
+
className: `${CLASSNAME$V}__track ${CLASSNAME$V}__track--active`,
|
|
9723
9793
|
style: {
|
|
9724
9794
|
width: percentString
|
|
9725
9795
|
}
|
|
9726
9796
|
}), steps ? /*#__PURE__*/React.createElement("div", {
|
|
9727
|
-
className: `${CLASSNAME$
|
|
9797
|
+
className: `${CLASSNAME$V}__ticks`
|
|
9728
9798
|
}, availableSteps.map((step, idx) => /*#__PURE__*/React.createElement("div", {
|
|
9729
9799
|
key: `tick_${idx}`,
|
|
9730
|
-
className: `${CLASSNAME$
|
|
9800
|
+
className: `${CLASSNAME$V}__tick`,
|
|
9731
9801
|
style: {
|
|
9732
9802
|
left: `${step * 100}%`
|
|
9733
9803
|
}
|
|
@@ -9736,19 +9806,19 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9736
9806
|
"aria-labelledby": sliderLabelId,
|
|
9737
9807
|
name: name,
|
|
9738
9808
|
id: sliderId,
|
|
9739
|
-
className: `${CLASSNAME$
|
|
9809
|
+
className: `${CLASSNAME$V}__handle`,
|
|
9740
9810
|
style: {
|
|
9741
9811
|
left: percentString
|
|
9742
9812
|
},
|
|
9743
9813
|
onKeyDown: handleKeyDown,
|
|
9744
9814
|
disabled: isDisabled
|
|
9745
9815
|
})), !hideMinMaxLabel && /*#__PURE__*/React.createElement("span", {
|
|
9746
|
-
className: `${CLASSNAME$
|
|
9816
|
+
className: `${CLASSNAME$V}__value-label ${CLASSNAME$V}__value-label--max`
|
|
9747
9817
|
}, max)));
|
|
9748
9818
|
});
|
|
9749
|
-
Slider.displayName = COMPONENT_NAME$
|
|
9750
|
-
Slider.className = CLASSNAME$
|
|
9751
|
-
Slider.defaultProps = DEFAULT_PROPS$
|
|
9819
|
+
Slider.displayName = COMPONENT_NAME$Y;
|
|
9820
|
+
Slider.className = CLASSNAME$V;
|
|
9821
|
+
Slider.defaultProps = DEFAULT_PROPS$L;
|
|
9752
9822
|
|
|
9753
9823
|
/**
|
|
9754
9824
|
* Making setInterval Declarative with React Hooks.
|
|
@@ -10043,7 +10113,7 @@ const useSlideFocusManagement = _ref => {
|
|
|
10043
10113
|
}, [isSlideDisplayed, slideRef]);
|
|
10044
10114
|
};
|
|
10045
10115
|
|
|
10046
|
-
const _excluded
|
|
10116
|
+
const _excluded$$ = ["className", "children", "role", "label", "isDisplayed"];
|
|
10047
10117
|
|
|
10048
10118
|
/**
|
|
10049
10119
|
* Defines the props of the component.
|
|
@@ -10052,12 +10122,12 @@ const _excluded$_ = ["className", "children", "role", "label", "isDisplayed"];
|
|
|
10052
10122
|
/**
|
|
10053
10123
|
* Component display name.
|
|
10054
10124
|
*/
|
|
10055
|
-
const COMPONENT_NAME$
|
|
10125
|
+
const COMPONENT_NAME$Z = 'SlideshowItemGroup';
|
|
10056
10126
|
|
|
10057
10127
|
/**
|
|
10058
10128
|
* Component default class name and class prefix.
|
|
10059
10129
|
*/
|
|
10060
|
-
const CLASSNAME$
|
|
10130
|
+
const CLASSNAME$W = getRootClassName(COMPONENT_NAME$Z);
|
|
10061
10131
|
const buildSlideShowGroupId = (slidesId, index) => `${slidesId}-slide-${index}`;
|
|
10062
10132
|
|
|
10063
10133
|
/**
|
|
@@ -10075,7 +10145,7 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10075
10145
|
label,
|
|
10076
10146
|
isDisplayed
|
|
10077
10147
|
} = props,
|
|
10078
|
-
forwardedProps = _objectWithoutProperties(props, _excluded
|
|
10148
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$$);
|
|
10079
10149
|
const groupRef = React.useRef(null);
|
|
10080
10150
|
useSlideFocusManagement({
|
|
10081
10151
|
isSlideDisplayed: isDisplayed,
|
|
@@ -10085,16 +10155,16 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10085
10155
|
ref: mergeRefs(groupRef, ref),
|
|
10086
10156
|
role: role,
|
|
10087
10157
|
className: classnames(className, handleBasicClasses({
|
|
10088
|
-
prefix: CLASSNAME$
|
|
10158
|
+
prefix: CLASSNAME$W
|
|
10089
10159
|
})),
|
|
10090
10160
|
"aria-roledescription": "slide",
|
|
10091
10161
|
"aria-label": label
|
|
10092
10162
|
}, forwardedProps), children);
|
|
10093
10163
|
});
|
|
10094
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
10095
|
-
SlideshowItemGroup.className = CLASSNAME$
|
|
10164
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$Z;
|
|
10165
|
+
SlideshowItemGroup.className = CLASSNAME$W;
|
|
10096
10166
|
|
|
10097
|
-
const _excluded
|
|
10167
|
+
const _excluded$10 = ["activeIndex", "autoPlay", "children", "className", "fillHeight", "groupBy", "interval", "onChange", "slideshowControlsProps", "theme", "id", "slidesId", "slideGroupLabel"];
|
|
10098
10168
|
|
|
10099
10169
|
/**
|
|
10100
10170
|
* Defines the props of the component.
|
|
@@ -10103,7 +10173,7 @@ const _excluded$$ = ["activeIndex", "autoPlay", "children", "className", "fillHe
|
|
|
10103
10173
|
/**
|
|
10104
10174
|
* Component default props.
|
|
10105
10175
|
*/
|
|
10106
|
-
const DEFAULT_PROPS$
|
|
10176
|
+
const DEFAULT_PROPS$M = _objectSpread2(_objectSpread2({}, DEFAULT_OPTIONS$1), {}, {
|
|
10107
10177
|
theme: Theme.light
|
|
10108
10178
|
});
|
|
10109
10179
|
|
|
@@ -10130,7 +10200,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10130
10200
|
slidesId,
|
|
10131
10201
|
slideGroupLabel
|
|
10132
10202
|
} = props,
|
|
10133
|
-
forwardedProps = _objectWithoutProperties(props, _excluded
|
|
10203
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$10);
|
|
10134
10204
|
// Number of slideshow items.
|
|
10135
10205
|
const itemsCount = React.Children.count(children);
|
|
10136
10206
|
const {
|
|
@@ -10150,7 +10220,7 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10150
10220
|
toggleForcePause
|
|
10151
10221
|
} = SlideshowControls.useSlideshowControls({
|
|
10152
10222
|
activeIndex,
|
|
10153
|
-
defaultActiveIndex: DEFAULT_PROPS$
|
|
10223
|
+
defaultActiveIndex: DEFAULT_PROPS$M.activeIndex,
|
|
10154
10224
|
autoPlay: Boolean(autoPlay),
|
|
10155
10225
|
itemsCount,
|
|
10156
10226
|
groupBy,
|
|
@@ -10210,9 +10280,9 @@ const Slideshow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10210
10280
|
}, forwardedProps), children);
|
|
10211
10281
|
});
|
|
10212
10282
|
Slideshow.displayName = 'Slideshow';
|
|
10213
|
-
Slideshow.defaultProps = DEFAULT_PROPS$
|
|
10283
|
+
Slideshow.defaultProps = DEFAULT_PROPS$M;
|
|
10214
10284
|
|
|
10215
|
-
const _excluded$
|
|
10285
|
+
const _excluded$11 = ["className", "children"];
|
|
10216
10286
|
|
|
10217
10287
|
/**
|
|
10218
10288
|
* Defines the props of the component.
|
|
@@ -10221,12 +10291,12 @@ const _excluded$10 = ["className", "children"];
|
|
|
10221
10291
|
/**
|
|
10222
10292
|
* Component display name.
|
|
10223
10293
|
*/
|
|
10224
|
-
const COMPONENT_NAME$
|
|
10294
|
+
const COMPONENT_NAME$_ = 'SlideshowItem';
|
|
10225
10295
|
|
|
10226
10296
|
/**
|
|
10227
10297
|
* Component default class name and class prefix.
|
|
10228
10298
|
*/
|
|
10229
|
-
const CLASSNAME$
|
|
10299
|
+
const CLASSNAME$X = getRootClassName(COMPONENT_NAME$_);
|
|
10230
10300
|
|
|
10231
10301
|
/**
|
|
10232
10302
|
* SlideshowItem component.
|
|
@@ -10240,16 +10310,16 @@ const SlideshowItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10240
10310
|
className,
|
|
10241
10311
|
children
|
|
10242
10312
|
} = props,
|
|
10243
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10313
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$11);
|
|
10244
10314
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
10245
10315
|
ref: ref,
|
|
10246
10316
|
className: classnames(className, handleBasicClasses({
|
|
10247
|
-
prefix: CLASSNAME$
|
|
10317
|
+
prefix: CLASSNAME$X
|
|
10248
10318
|
}))
|
|
10249
10319
|
}, forwardedProps), children);
|
|
10250
10320
|
});
|
|
10251
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
10252
|
-
SlideshowItem.className = CLASSNAME$
|
|
10321
|
+
SlideshowItem.displayName = COMPONENT_NAME$_;
|
|
10322
|
+
SlideshowItem.className = CLASSNAME$X;
|
|
10253
10323
|
|
|
10254
10324
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
10255
10325
|
|
|
@@ -10308,7 +10378,7 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
10308
10378
|
}, [activeIndex, slideCount]);
|
|
10309
10379
|
}
|
|
10310
10380
|
|
|
10311
|
-
const _excluded$
|
|
10381
|
+
const _excluded$12 = ["activeIndex", "className", "nextButtonProps", "onNextClick", "onPaginationClick", "onPreviousClick", "parentRef", "previousButtonProps", "paginationProps", "slidesCount", "theme", "isAutoPlaying", "playButtonProps", "paginationItemLabel", "paginationItemProps"],
|
|
10312
10382
|
_excluded2$2 = ["className", "label"];
|
|
10313
10383
|
|
|
10314
10384
|
/**
|
|
@@ -10318,17 +10388,17 @@ const _excluded$11 = ["activeIndex", "className", "nextButtonProps", "onNextClic
|
|
|
10318
10388
|
/**
|
|
10319
10389
|
* Component display name.
|
|
10320
10390
|
*/
|
|
10321
|
-
const COMPONENT_NAME
|
|
10391
|
+
const COMPONENT_NAME$$ = 'SlideshowControls';
|
|
10322
10392
|
|
|
10323
10393
|
/**
|
|
10324
10394
|
* Component default class name and class prefix.
|
|
10325
10395
|
*/
|
|
10326
|
-
const CLASSNAME$
|
|
10396
|
+
const CLASSNAME$Y = getRootClassName(COMPONENT_NAME$$);
|
|
10327
10397
|
|
|
10328
10398
|
/**
|
|
10329
10399
|
* Component default props.
|
|
10330
10400
|
*/
|
|
10331
|
-
const DEFAULT_PROPS$
|
|
10401
|
+
const DEFAULT_PROPS$N = {
|
|
10332
10402
|
activeIndex: 0,
|
|
10333
10403
|
theme: Theme.light
|
|
10334
10404
|
};
|
|
@@ -10358,7 +10428,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10358
10428
|
paginationItemLabel,
|
|
10359
10429
|
paginationItemProps
|
|
10360
10430
|
} = props,
|
|
10361
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10431
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$12);
|
|
10362
10432
|
let parent;
|
|
10363
10433
|
if (WINDOW) {
|
|
10364
10434
|
// Checking window object to avoid errors in SSR.
|
|
@@ -10395,22 +10465,22 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10395
10465
|
ref: ref
|
|
10396
10466
|
}, forwardedProps, {
|
|
10397
10467
|
className: classnames(className, handleBasicClasses({
|
|
10398
|
-
prefix: CLASSNAME$
|
|
10468
|
+
prefix: CLASSNAME$Y,
|
|
10399
10469
|
theme
|
|
10400
10470
|
}), {
|
|
10401
|
-
[`${CLASSNAME$
|
|
10471
|
+
[`${CLASSNAME$Y}--has-infinite-pagination`]: slidesCount > PAGINATION_ITEMS_MAX
|
|
10402
10472
|
})
|
|
10403
10473
|
}), /*#__PURE__*/React.createElement(IconButton, _extends({}, previousButtonProps, {
|
|
10404
10474
|
icon: mdiChevronLeft,
|
|
10405
|
-
className: `${CLASSNAME$
|
|
10475
|
+
className: `${CLASSNAME$Y}__navigation`,
|
|
10406
10476
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10407
10477
|
emphasis: Emphasis.low,
|
|
10408
10478
|
onClick: onPreviousClick
|
|
10409
10479
|
})), /*#__PURE__*/React.createElement("div", {
|
|
10410
10480
|
ref: paginationRef,
|
|
10411
|
-
className: `${CLASSNAME$
|
|
10481
|
+
className: `${CLASSNAME$Y}__pagination`
|
|
10412
10482
|
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
10413
|
-
className: `${CLASSNAME$
|
|
10483
|
+
className: `${CLASSNAME$Y}__pagination-items`,
|
|
10414
10484
|
style: wrapperStyle,
|
|
10415
10485
|
role: "tablist"
|
|
10416
10486
|
}, paginationProps), useMemo(() => range(slidesCount).map(index => {
|
|
@@ -10426,7 +10496,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10426
10496
|
const ariaLabel = label || (paginationItemLabel === null || paginationItemLabel === void 0 ? void 0 : paginationItemLabel(index)) || `${index + 1} / ${slidesCount}`;
|
|
10427
10497
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
10428
10498
|
className: classnames(handleBasicClasses({
|
|
10429
|
-
prefix: `${CLASSNAME$
|
|
10499
|
+
prefix: `${CLASSNAME$Y}__pagination-item`,
|
|
10430
10500
|
isActive,
|
|
10431
10501
|
isOnEdge,
|
|
10432
10502
|
isOutRange
|
|
@@ -10441,35 +10511,35 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10441
10511
|
}, itemProps));
|
|
10442
10512
|
}), [slidesCount, visibleRange.min, visibleRange.max, activeIndex, paginationItemProps, paginationItemLabel, onPaginationClick]))), playButtonProps ? /*#__PURE__*/React.createElement(IconButton, _extends({}, playButtonProps, {
|
|
10443
10513
|
icon: isAutoPlaying ? mdiPauseCircleOutline : mdiPlayCircleOutline,
|
|
10444
|
-
className: `${CLASSNAME$
|
|
10514
|
+
className: `${CLASSNAME$Y}__play`,
|
|
10445
10515
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10446
10516
|
emphasis: Emphasis.low
|
|
10447
10517
|
})) : null, /*#__PURE__*/React.createElement(IconButton, _extends({}, nextButtonProps, {
|
|
10448
10518
|
icon: mdiChevronRight,
|
|
10449
|
-
className: `${CLASSNAME$
|
|
10519
|
+
className: `${CLASSNAME$Y}__navigation`,
|
|
10450
10520
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10451
10521
|
emphasis: Emphasis.low,
|
|
10452
10522
|
onClick: onNextClick
|
|
10453
10523
|
})));
|
|
10454
10524
|
});
|
|
10455
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME
|
|
10456
|
-
InternalSlideshowControls.className = CLASSNAME$
|
|
10457
|
-
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$
|
|
10525
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$$;
|
|
10526
|
+
InternalSlideshowControls.className = CLASSNAME$Y;
|
|
10527
|
+
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$N;
|
|
10458
10528
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
10459
10529
|
useSlideshowControls,
|
|
10460
10530
|
useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS$1
|
|
10461
10531
|
});
|
|
10462
10532
|
|
|
10463
|
-
const _excluded$
|
|
10533
|
+
const _excluded$13 = ["activeIndex", "id", "className", "theme", "fillHeight", "groupBy", "isAutoPlaying", "toggleAutoPlay", "slidesId", "children", "afterSlides", "hasControls", "slideGroupLabel"];
|
|
10464
10534
|
/**
|
|
10465
10535
|
* Component display name.
|
|
10466
10536
|
*/
|
|
10467
|
-
const COMPONENT_NAME
|
|
10537
|
+
const COMPONENT_NAME$10 = 'Slideshow';
|
|
10468
10538
|
|
|
10469
10539
|
/**
|
|
10470
10540
|
* Component default class name and class prefix.
|
|
10471
10541
|
*/
|
|
10472
|
-
const CLASSNAME$
|
|
10542
|
+
const CLASSNAME$Z = getRootClassName(COMPONENT_NAME$10);
|
|
10473
10543
|
|
|
10474
10544
|
/**
|
|
10475
10545
|
* Slides component.
|
|
@@ -10494,7 +10564,7 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10494
10564
|
hasControls,
|
|
10495
10565
|
slideGroupLabel
|
|
10496
10566
|
} = props,
|
|
10497
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10567
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$13);
|
|
10498
10568
|
const wrapperRef = React.useRef(null);
|
|
10499
10569
|
const startIndexVisible = activeIndex;
|
|
10500
10570
|
const endIndexVisible = startIndexVisible + 1;
|
|
@@ -10512,22 +10582,22 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10512
10582
|
ref: ref
|
|
10513
10583
|
}, forwardedProps, {
|
|
10514
10584
|
className: classnames(className, handleBasicClasses({
|
|
10515
|
-
prefix: CLASSNAME$
|
|
10585
|
+
prefix: CLASSNAME$Z,
|
|
10516
10586
|
theme
|
|
10517
10587
|
}), {
|
|
10518
|
-
[`${CLASSNAME$
|
|
10519
|
-
[`${CLASSNAME$
|
|
10588
|
+
[`${CLASSNAME$Z}--fill-height`]: fillHeight,
|
|
10589
|
+
[`${CLASSNAME$Z}--group-by-${groupBy}`]: Boolean(groupBy)
|
|
10520
10590
|
}),
|
|
10521
10591
|
"aria-roledescription": "carousel"
|
|
10522
10592
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10523
10593
|
id: slidesId,
|
|
10524
|
-
className: `${CLASSNAME$
|
|
10594
|
+
className: `${CLASSNAME$Z}__slides`,
|
|
10525
10595
|
onMouseEnter: toggleAutoPlay,
|
|
10526
10596
|
onMouseLeave: toggleAutoPlay,
|
|
10527
10597
|
"aria-live": isAutoPlaying ? 'off' : 'polite'
|
|
10528
10598
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10529
10599
|
ref: wrapperRef,
|
|
10530
|
-
className: `${CLASSNAME$
|
|
10600
|
+
className: `${CLASSNAME$Z}__wrapper`,
|
|
10531
10601
|
style: wrapperStyle
|
|
10532
10602
|
}, groups.map((group, index) => /*#__PURE__*/React.createElement(SlideshowItemGroup, {
|
|
10533
10603
|
key: index,
|
|
@@ -10537,10 +10607,10 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10537
10607
|
isDisplayed: index >= startIndexVisible && index < endIndexVisible
|
|
10538
10608
|
}, group)))), afterSlides);
|
|
10539
10609
|
});
|
|
10540
|
-
Slides.displayName = COMPONENT_NAME
|
|
10541
|
-
Slides.className = CLASSNAME$
|
|
10610
|
+
Slides.displayName = COMPONENT_NAME$10;
|
|
10611
|
+
Slides.className = CLASSNAME$Z;
|
|
10542
10612
|
|
|
10543
|
-
const _excluded$
|
|
10613
|
+
const _excluded$14 = ["checked", "children", "className", "disabled", "helper", "id", "isChecked", "isDisabled", "name", "onChange", "position", "theme", "value", "inputProps"];
|
|
10544
10614
|
|
|
10545
10615
|
/**
|
|
10546
10616
|
* Defines the props of the component.
|
|
@@ -10549,17 +10619,17 @@ const _excluded$13 = ["checked", "children", "className", "disabled", "helper",
|
|
|
10549
10619
|
/**
|
|
10550
10620
|
* Component display name.
|
|
10551
10621
|
*/
|
|
10552
|
-
const COMPONENT_NAME$
|
|
10622
|
+
const COMPONENT_NAME$11 = 'Switch';
|
|
10553
10623
|
|
|
10554
10624
|
/**
|
|
10555
10625
|
* Component default class name and class prefix.
|
|
10556
10626
|
*/
|
|
10557
|
-
const CLASSNAME$
|
|
10627
|
+
const CLASSNAME$_ = getRootClassName(COMPONENT_NAME$11);
|
|
10558
10628
|
|
|
10559
10629
|
/**
|
|
10560
10630
|
* Component default props.
|
|
10561
10631
|
*/
|
|
10562
|
-
const DEFAULT_PROPS$
|
|
10632
|
+
const DEFAULT_PROPS$O = {
|
|
10563
10633
|
position: Alignment.left,
|
|
10564
10634
|
theme: Theme.light
|
|
10565
10635
|
};
|
|
@@ -10588,7 +10658,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10588
10658
|
value,
|
|
10589
10659
|
inputProps = {}
|
|
10590
10660
|
} = props,
|
|
10591
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10661
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$14);
|
|
10592
10662
|
const inputId = useMemo(() => id || `switch-${uid()}`, [id]);
|
|
10593
10663
|
const handleChange = event => {
|
|
10594
10664
|
if (onChange) {
|
|
@@ -10599,7 +10669,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10599
10669
|
ref: ref
|
|
10600
10670
|
}, forwardedProps, {
|
|
10601
10671
|
className: classnames(className, handleBasicClasses({
|
|
10602
|
-
prefix: CLASSNAME$
|
|
10672
|
+
prefix: CLASSNAME$_,
|
|
10603
10673
|
isChecked,
|
|
10604
10674
|
isDisabled,
|
|
10605
10675
|
position,
|
|
@@ -10608,12 +10678,12 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10608
10678
|
})),
|
|
10609
10679
|
"aria-disabled": isDisabled
|
|
10610
10680
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10611
|
-
className: `${CLASSNAME$
|
|
10681
|
+
className: `${CLASSNAME$_}__input-wrapper`
|
|
10612
10682
|
}, /*#__PURE__*/React.createElement("input", _extends({
|
|
10613
10683
|
type: "checkbox",
|
|
10614
10684
|
role: "switch",
|
|
10615
10685
|
id: inputId,
|
|
10616
|
-
className: `${CLASSNAME$
|
|
10686
|
+
className: `${CLASSNAME$_}__input-native`,
|
|
10617
10687
|
name: name,
|
|
10618
10688
|
value: value,
|
|
10619
10689
|
disabled: isDisabled,
|
|
@@ -10622,28 +10692,28 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10622
10692
|
onChange: handleChange,
|
|
10623
10693
|
"aria-describedby": helper ? `${inputId}-helper` : undefined
|
|
10624
10694
|
}, inputProps)), /*#__PURE__*/React.createElement("div", {
|
|
10625
|
-
className: `${CLASSNAME$
|
|
10695
|
+
className: `${CLASSNAME$_}__input-placeholder`
|
|
10626
10696
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10627
|
-
className: `${CLASSNAME$
|
|
10697
|
+
className: `${CLASSNAME$_}__input-background`
|
|
10628
10698
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10629
|
-
className: `${CLASSNAME$
|
|
10699
|
+
className: `${CLASSNAME$_}__input-indicator`
|
|
10630
10700
|
}))), Children.count(children) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
10631
|
-
className: `${CLASSNAME$
|
|
10701
|
+
className: `${CLASSNAME$_}__content`
|
|
10632
10702
|
}, /*#__PURE__*/React.createElement(InputLabel, {
|
|
10633
10703
|
htmlFor: inputId,
|
|
10634
10704
|
theme: theme,
|
|
10635
|
-
className: `${CLASSNAME$
|
|
10705
|
+
className: `${CLASSNAME$_}__label`
|
|
10636
10706
|
}, children), !isEmpty(helper) && /*#__PURE__*/React.createElement(InputHelper, {
|
|
10637
10707
|
id: `${inputId}-helper`,
|
|
10638
10708
|
theme: theme,
|
|
10639
|
-
className: `${CLASSNAME$
|
|
10709
|
+
className: `${CLASSNAME$_}__helper`
|
|
10640
10710
|
}, helper)));
|
|
10641
10711
|
});
|
|
10642
|
-
Switch.displayName = COMPONENT_NAME$
|
|
10643
|
-
Switch.className = CLASSNAME$
|
|
10644
|
-
Switch.defaultProps = DEFAULT_PROPS$
|
|
10712
|
+
Switch.displayName = COMPONENT_NAME$11;
|
|
10713
|
+
Switch.className = CLASSNAME$_;
|
|
10714
|
+
Switch.defaultProps = DEFAULT_PROPS$O;
|
|
10645
10715
|
|
|
10646
|
-
const _excluded$
|
|
10716
|
+
const _excluded$15 = ["children", "className", "hasBefore", "hasDividers", "theme"];
|
|
10647
10717
|
|
|
10648
10718
|
/**
|
|
10649
10719
|
* Defines the props of the component.
|
|
@@ -10652,17 +10722,17 @@ const _excluded$14 = ["children", "className", "hasBefore", "hasDividers", "them
|
|
|
10652
10722
|
/**
|
|
10653
10723
|
* Component display name.
|
|
10654
10724
|
*/
|
|
10655
|
-
const COMPONENT_NAME$
|
|
10725
|
+
const COMPONENT_NAME$12 = 'Table';
|
|
10656
10726
|
|
|
10657
10727
|
/**
|
|
10658
10728
|
* Component default class name and class prefix.
|
|
10659
10729
|
*/
|
|
10660
|
-
const CLASSNAME
|
|
10730
|
+
const CLASSNAME$$ = getRootClassName(COMPONENT_NAME$12);
|
|
10661
10731
|
|
|
10662
10732
|
/**
|
|
10663
10733
|
* Component default props.
|
|
10664
10734
|
*/
|
|
10665
|
-
const DEFAULT_PROPS$
|
|
10735
|
+
const DEFAULT_PROPS$P = {
|
|
10666
10736
|
theme: Theme.light
|
|
10667
10737
|
};
|
|
10668
10738
|
|
|
@@ -10681,23 +10751,23 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10681
10751
|
hasDividers,
|
|
10682
10752
|
theme
|
|
10683
10753
|
} = props,
|
|
10684
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10754
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$15);
|
|
10685
10755
|
return /*#__PURE__*/React.createElement("table", _extends({
|
|
10686
10756
|
ref: ref
|
|
10687
10757
|
}, forwardedProps, {
|
|
10688
10758
|
className: classnames(className, handleBasicClasses({
|
|
10689
|
-
prefix: CLASSNAME
|
|
10759
|
+
prefix: CLASSNAME$$,
|
|
10690
10760
|
hasBefore,
|
|
10691
10761
|
hasDividers,
|
|
10692
10762
|
theme
|
|
10693
10763
|
}))
|
|
10694
10764
|
}), children);
|
|
10695
10765
|
});
|
|
10696
|
-
Table.displayName = COMPONENT_NAME$
|
|
10697
|
-
Table.className = CLASSNAME
|
|
10698
|
-
Table.defaultProps = DEFAULT_PROPS$
|
|
10766
|
+
Table.displayName = COMPONENT_NAME$12;
|
|
10767
|
+
Table.className = CLASSNAME$$;
|
|
10768
|
+
Table.defaultProps = DEFAULT_PROPS$P;
|
|
10699
10769
|
|
|
10700
|
-
const _excluded$
|
|
10770
|
+
const _excluded$16 = ["children", "className"];
|
|
10701
10771
|
|
|
10702
10772
|
/**
|
|
10703
10773
|
* Defines the props of the component.
|
|
@@ -10706,12 +10776,12 @@ const _excluded$15 = ["children", "className"];
|
|
|
10706
10776
|
/**
|
|
10707
10777
|
* Component display name.
|
|
10708
10778
|
*/
|
|
10709
|
-
const COMPONENT_NAME$
|
|
10779
|
+
const COMPONENT_NAME$13 = 'TableBody';
|
|
10710
10780
|
|
|
10711
10781
|
/**
|
|
10712
10782
|
* Component default class name and class prefix.
|
|
10713
10783
|
*/
|
|
10714
|
-
const CLASSNAME
|
|
10784
|
+
const CLASSNAME$10 = getRootClassName(COMPONENT_NAME$13, true);
|
|
10715
10785
|
|
|
10716
10786
|
/**
|
|
10717
10787
|
* TableBody component.
|
|
@@ -10725,19 +10795,19 @@ const TableBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10725
10795
|
children,
|
|
10726
10796
|
className
|
|
10727
10797
|
} = props,
|
|
10728
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10798
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$16);
|
|
10729
10799
|
return /*#__PURE__*/React.createElement("tbody", _extends({
|
|
10730
10800
|
ref: ref
|
|
10731
10801
|
}, forwardedProps, {
|
|
10732
10802
|
className: classnames(className, handleBasicClasses({
|
|
10733
|
-
prefix: CLASSNAME
|
|
10803
|
+
prefix: CLASSNAME$10
|
|
10734
10804
|
}))
|
|
10735
10805
|
}), children);
|
|
10736
10806
|
});
|
|
10737
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
10738
|
-
TableBody.className = CLASSNAME
|
|
10807
|
+
TableBody.displayName = COMPONENT_NAME$13;
|
|
10808
|
+
TableBody.className = CLASSNAME$10;
|
|
10739
10809
|
|
|
10740
|
-
const _excluded$
|
|
10810
|
+
const _excluded$17 = ["children", "className", "icon", "isSortable", "onHeaderClick", "sortOrder", "variant"];
|
|
10741
10811
|
|
|
10742
10812
|
/**
|
|
10743
10813
|
* Table head cell sort order.
|
|
@@ -10756,17 +10826,17 @@ const TableCellVariant = {
|
|
|
10756
10826
|
/**
|
|
10757
10827
|
* Component display name.
|
|
10758
10828
|
*/
|
|
10759
|
-
const COMPONENT_NAME$
|
|
10829
|
+
const COMPONENT_NAME$14 = 'TableCell';
|
|
10760
10830
|
|
|
10761
10831
|
/**
|
|
10762
10832
|
* Component default class name and class prefix.
|
|
10763
10833
|
*/
|
|
10764
|
-
const CLASSNAME$
|
|
10834
|
+
const CLASSNAME$11 = getRootClassName(COMPONENT_NAME$14, true);
|
|
10765
10835
|
|
|
10766
10836
|
/**
|
|
10767
10837
|
* Component default props.
|
|
10768
10838
|
*/
|
|
10769
|
-
const DEFAULT_PROPS$
|
|
10839
|
+
const DEFAULT_PROPS$Q = {
|
|
10770
10840
|
variant: TableCellVariant.body
|
|
10771
10841
|
};
|
|
10772
10842
|
|
|
@@ -10787,7 +10857,7 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10787
10857
|
sortOrder,
|
|
10788
10858
|
variant
|
|
10789
10859
|
} = props,
|
|
10790
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10860
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$17);
|
|
10791
10861
|
|
|
10792
10862
|
/**
|
|
10793
10863
|
* Handle click on the ordered thead.
|
|
@@ -10801,43 +10871,43 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10801
10871
|
ref: ref
|
|
10802
10872
|
}, forwardedProps, {
|
|
10803
10873
|
className: classnames(handleBasicClasses({
|
|
10804
|
-
prefix: CLASSNAME$
|
|
10874
|
+
prefix: CLASSNAME$11,
|
|
10805
10875
|
isSortable
|
|
10806
|
-
}), className, `${CLASSNAME$
|
|
10807
|
-
[`${CLASSNAME$
|
|
10876
|
+
}), className, `${CLASSNAME$11}--head`, {
|
|
10877
|
+
[`${CLASSNAME$11}--is-sorted`]: isSortable && sortOrder
|
|
10808
10878
|
}),
|
|
10809
10879
|
tabIndex: isSortable && isFunction(onHeaderClick) ? 0 : -1,
|
|
10810
10880
|
onClick: handleOnHeaderClick,
|
|
10811
10881
|
onKeyDown: onEnterPressed(handleOnHeaderClick)
|
|
10812
10882
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10813
|
-
className: `${CLASSNAME$
|
|
10883
|
+
className: `${CLASSNAME$11}-wrapper`
|
|
10814
10884
|
}, icon && !isSortable && /*#__PURE__*/React.createElement(Icon, {
|
|
10815
|
-
className: `${CLASSNAME$
|
|
10885
|
+
className: `${CLASSNAME$11}-icon`,
|
|
10816
10886
|
icon: icon,
|
|
10817
10887
|
size: Size.xxs
|
|
10818
10888
|
}), isSortable && sortOrder === ThOrder.asc && /*#__PURE__*/React.createElement(Icon, {
|
|
10819
|
-
className: `${CLASSNAME$
|
|
10889
|
+
className: `${CLASSNAME$11}-icon`,
|
|
10820
10890
|
icon: mdiArrowUp,
|
|
10821
10891
|
size: Size.xxs
|
|
10822
10892
|
}), isSortable && sortOrder === ThOrder.desc && /*#__PURE__*/React.createElement(Icon, {
|
|
10823
|
-
className: `${CLASSNAME$
|
|
10893
|
+
className: `${CLASSNAME$11}-icon`,
|
|
10824
10894
|
icon: mdiArrowDown,
|
|
10825
10895
|
size: Size.xxs
|
|
10826
10896
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10827
|
-
className: `${CLASSNAME$
|
|
10897
|
+
className: `${CLASSNAME$11}-content`
|
|
10828
10898
|
}, children))), variant === TableCellVariant.body && /*#__PURE__*/React.createElement("td", _extends({}, forwardedProps, {
|
|
10829
10899
|
className: classnames(className, handleBasicClasses({
|
|
10830
|
-
prefix: CLASSNAME$
|
|
10831
|
-
}), `${CLASSNAME$
|
|
10900
|
+
prefix: CLASSNAME$11
|
|
10901
|
+
}), `${CLASSNAME$11}--body`)
|
|
10832
10902
|
}), /*#__PURE__*/React.createElement("div", {
|
|
10833
|
-
className: `${CLASSNAME$
|
|
10903
|
+
className: `${CLASSNAME$11}-content`
|
|
10834
10904
|
}, children)));
|
|
10835
10905
|
});
|
|
10836
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
10837
|
-
TableCell.className = CLASSNAME$
|
|
10838
|
-
TableCell.defaultProps = DEFAULT_PROPS$
|
|
10906
|
+
TableCell.displayName = COMPONENT_NAME$14;
|
|
10907
|
+
TableCell.className = CLASSNAME$11;
|
|
10908
|
+
TableCell.defaultProps = DEFAULT_PROPS$Q;
|
|
10839
10909
|
|
|
10840
|
-
const _excluded$
|
|
10910
|
+
const _excluded$18 = ["children", "className"];
|
|
10841
10911
|
|
|
10842
10912
|
/**
|
|
10843
10913
|
* Defines the props of the component.
|
|
@@ -10846,17 +10916,17 @@ const _excluded$17 = ["children", "className"];
|
|
|
10846
10916
|
/**
|
|
10847
10917
|
* Component display name.
|
|
10848
10918
|
*/
|
|
10849
|
-
const COMPONENT_NAME$
|
|
10919
|
+
const COMPONENT_NAME$15 = 'TableHeader';
|
|
10850
10920
|
|
|
10851
10921
|
/**
|
|
10852
10922
|
* Component default class name and class prefix.
|
|
10853
10923
|
*/
|
|
10854
|
-
const CLASSNAME$
|
|
10924
|
+
const CLASSNAME$12 = getRootClassName(COMPONENT_NAME$15, true);
|
|
10855
10925
|
|
|
10856
10926
|
/**
|
|
10857
10927
|
* Component default props.
|
|
10858
10928
|
*/
|
|
10859
|
-
const DEFAULT_PROPS$
|
|
10929
|
+
const DEFAULT_PROPS$R = {};
|
|
10860
10930
|
|
|
10861
10931
|
/**
|
|
10862
10932
|
* TableHeader component.
|
|
@@ -10870,20 +10940,20 @@ const TableHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10870
10940
|
children,
|
|
10871
10941
|
className
|
|
10872
10942
|
} = props,
|
|
10873
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10943
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$18);
|
|
10874
10944
|
return /*#__PURE__*/React.createElement("thead", _extends({
|
|
10875
10945
|
ref: ref
|
|
10876
10946
|
}, forwardedProps, {
|
|
10877
10947
|
className: classnames(className, handleBasicClasses({
|
|
10878
|
-
prefix: CLASSNAME$
|
|
10948
|
+
prefix: CLASSNAME$12
|
|
10879
10949
|
}))
|
|
10880
10950
|
}), children);
|
|
10881
10951
|
});
|
|
10882
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
10883
|
-
TableHeader.className = CLASSNAME$
|
|
10884
|
-
TableHeader.defaultProps = DEFAULT_PROPS$
|
|
10952
|
+
TableHeader.displayName = COMPONENT_NAME$15;
|
|
10953
|
+
TableHeader.className = CLASSNAME$12;
|
|
10954
|
+
TableHeader.defaultProps = DEFAULT_PROPS$R;
|
|
10885
10955
|
|
|
10886
|
-
const _excluded$
|
|
10956
|
+
const _excluded$19 = ["children", "className", "disabled", "isClickable", "isDisabled", "isSelected"];
|
|
10887
10957
|
|
|
10888
10958
|
/**
|
|
10889
10959
|
* Defines the props of the component.
|
|
@@ -10892,17 +10962,17 @@ const _excluded$18 = ["children", "className", "disabled", "isClickable", "isDis
|
|
|
10892
10962
|
/**
|
|
10893
10963
|
* Component display name.
|
|
10894
10964
|
*/
|
|
10895
|
-
const COMPONENT_NAME$
|
|
10965
|
+
const COMPONENT_NAME$16 = 'TableRow';
|
|
10896
10966
|
|
|
10897
10967
|
/**
|
|
10898
10968
|
* Component default class name and class prefix.
|
|
10899
10969
|
*/
|
|
10900
|
-
const CLASSNAME$
|
|
10970
|
+
const CLASSNAME$13 = getRootClassName(COMPONENT_NAME$16, true);
|
|
10901
10971
|
|
|
10902
10972
|
/**
|
|
10903
10973
|
* Component default props.
|
|
10904
10974
|
*/
|
|
10905
|
-
const DEFAULT_PROPS$
|
|
10975
|
+
const DEFAULT_PROPS$S = {};
|
|
10906
10976
|
|
|
10907
10977
|
/**
|
|
10908
10978
|
* TableRow component.
|
|
@@ -10920,7 +10990,7 @@ const TableRow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10920
10990
|
isDisabled = disabled,
|
|
10921
10991
|
isSelected
|
|
10922
10992
|
} = props,
|
|
10923
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10993
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$19);
|
|
10924
10994
|
return /*#__PURE__*/React.createElement("tr", _extends({
|
|
10925
10995
|
ref: ref,
|
|
10926
10996
|
tabIndex: isClickable && !isDisabled ? 0 : -1
|
|
@@ -10929,17 +10999,17 @@ const TableRow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10929
10999
|
isClickable: isClickable && !isDisabled,
|
|
10930
11000
|
isDisabled,
|
|
10931
11001
|
isSelected: isSelected && !isDisabled,
|
|
10932
|
-
prefix: CLASSNAME$
|
|
11002
|
+
prefix: CLASSNAME$13
|
|
10933
11003
|
})),
|
|
10934
11004
|
"aria-disabled": isDisabled
|
|
10935
11005
|
}), children);
|
|
10936
11006
|
});
|
|
10937
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
10938
|
-
TableRow.className = CLASSNAME$
|
|
10939
|
-
TableRow.defaultProps = DEFAULT_PROPS$
|
|
11007
|
+
TableRow.displayName = COMPONENT_NAME$16;
|
|
11008
|
+
TableRow.className = CLASSNAME$13;
|
|
11009
|
+
TableRow.defaultProps = DEFAULT_PROPS$S;
|
|
10940
11010
|
|
|
10941
|
-
const _excluded$
|
|
10942
|
-
const DEFAULT_PROPS$
|
|
11011
|
+
const _excluded$1a = ["children", "onChange"];
|
|
11012
|
+
const DEFAULT_PROPS$T = {
|
|
10943
11013
|
isLazy: INIT_STATE.isLazy,
|
|
10944
11014
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
10945
11015
|
};
|
|
@@ -10958,7 +11028,7 @@ const TabProvider = props => {
|
|
|
10958
11028
|
children,
|
|
10959
11029
|
onChange
|
|
10960
11030
|
} = props,
|
|
10961
|
-
propState = _objectWithoutProperties(props, _excluded$
|
|
11031
|
+
propState = _objectWithoutProperties(props, _excluded$1a);
|
|
10962
11032
|
const [state, dispatch] = useReducer(reducer, INIT_STATE);
|
|
10963
11033
|
|
|
10964
11034
|
// On prop state change => dispatch update.
|
|
@@ -10984,9 +11054,9 @@ const TabProvider = props => {
|
|
|
10984
11054
|
value: [state, dispatch]
|
|
10985
11055
|
}, children);
|
|
10986
11056
|
};
|
|
10987
|
-
TabProvider.defaultProps = DEFAULT_PROPS$
|
|
11057
|
+
TabProvider.defaultProps = DEFAULT_PROPS$T;
|
|
10988
11058
|
|
|
10989
|
-
const _excluded$
|
|
11059
|
+
const _excluded$1b = ["aria-label", "children", "className", "layout", "position", "theme"];
|
|
10990
11060
|
let TabListLayout;
|
|
10991
11061
|
|
|
10992
11062
|
/**
|
|
@@ -10999,17 +11069,17 @@ let TabListLayout;
|
|
|
10999
11069
|
/**
|
|
11000
11070
|
* Component display name.
|
|
11001
11071
|
*/
|
|
11002
|
-
const COMPONENT_NAME$
|
|
11072
|
+
const COMPONENT_NAME$17 = 'TabList';
|
|
11003
11073
|
|
|
11004
11074
|
/**
|
|
11005
11075
|
* Component default class name and class prefix.
|
|
11006
11076
|
*/
|
|
11007
|
-
const CLASSNAME$
|
|
11077
|
+
const CLASSNAME$14 = `${CSS_PREFIX}-tabs`;
|
|
11008
11078
|
|
|
11009
11079
|
/**
|
|
11010
11080
|
* Component default props.
|
|
11011
11081
|
*/
|
|
11012
|
-
const DEFAULT_PROPS$
|
|
11082
|
+
const DEFAULT_PROPS$U = {
|
|
11013
11083
|
layout: TabListLayout.fixed,
|
|
11014
11084
|
position: Alignment.left,
|
|
11015
11085
|
theme: Theme.light
|
|
@@ -11033,7 +11103,7 @@ const TabList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11033
11103
|
position,
|
|
11034
11104
|
theme
|
|
11035
11105
|
} = props,
|
|
11036
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11106
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1b);
|
|
11037
11107
|
const tabListRef = React.useRef(null);
|
|
11038
11108
|
useRovingTabIndex({
|
|
11039
11109
|
parentRef: tabListRef,
|
|
@@ -11045,22 +11115,22 @@ const TabList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11045
11115
|
ref: mergeRefs(ref, tabListRef)
|
|
11046
11116
|
}, forwardedProps, {
|
|
11047
11117
|
className: classnames(className, handleBasicClasses({
|
|
11048
|
-
prefix: CLASSNAME$
|
|
11118
|
+
prefix: CLASSNAME$14,
|
|
11049
11119
|
layout,
|
|
11050
11120
|
position,
|
|
11051
11121
|
theme
|
|
11052
11122
|
}))
|
|
11053
11123
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11054
|
-
className: `${CLASSNAME$
|
|
11124
|
+
className: `${CLASSNAME$14}__links`,
|
|
11055
11125
|
role: "tablist",
|
|
11056
11126
|
"aria-label": ariaLabel
|
|
11057
11127
|
}, children));
|
|
11058
11128
|
});
|
|
11059
|
-
TabList.displayName = COMPONENT_NAME$
|
|
11060
|
-
TabList.className = CLASSNAME$
|
|
11061
|
-
TabList.defaultProps = DEFAULT_PROPS$
|
|
11129
|
+
TabList.displayName = COMPONENT_NAME$17;
|
|
11130
|
+
TabList.className = CLASSNAME$14;
|
|
11131
|
+
TabList.defaultProps = DEFAULT_PROPS$U;
|
|
11062
11132
|
|
|
11063
|
-
const _excluded$
|
|
11133
|
+
const _excluded$1c = ["className", "disabled", "icon", "id", "isActive", "isDisabled", "label", "onFocus", "onKeyPress", "tabIndex"];
|
|
11064
11134
|
|
|
11065
11135
|
/**
|
|
11066
11136
|
* Defines the props of the component.
|
|
@@ -11069,17 +11139,17 @@ const _excluded$1b = ["className", "disabled", "icon", "id", "isActive", "isDisa
|
|
|
11069
11139
|
/**
|
|
11070
11140
|
* Component display name.
|
|
11071
11141
|
*/
|
|
11072
|
-
const COMPONENT_NAME$
|
|
11142
|
+
const COMPONENT_NAME$18 = 'Tab';
|
|
11073
11143
|
|
|
11074
11144
|
/**
|
|
11075
11145
|
* Component default class name and class prefix.
|
|
11076
11146
|
*/
|
|
11077
|
-
const CLASSNAME$
|
|
11147
|
+
const CLASSNAME$15 = `${CSS_PREFIX}-tabs__link`;
|
|
11078
11148
|
|
|
11079
11149
|
/**
|
|
11080
11150
|
* Component default props.
|
|
11081
11151
|
*/
|
|
11082
|
-
const DEFAULT_PROPS$
|
|
11152
|
+
const DEFAULT_PROPS$V = {};
|
|
11083
11153
|
|
|
11084
11154
|
/**
|
|
11085
11155
|
* Tab component.
|
|
@@ -11103,7 +11173,7 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11103
11173
|
onKeyPress,
|
|
11104
11174
|
tabIndex = -1
|
|
11105
11175
|
} = props,
|
|
11106
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11176
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1c);
|
|
11107
11177
|
const state = useTabProviderContext('tab', id);
|
|
11108
11178
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
11109
11179
|
const changeToCurrentTab = useCallback(() => {
|
|
@@ -11131,7 +11201,7 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11131
11201
|
type: "button",
|
|
11132
11202
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
11133
11203
|
className: classnames(className, handleBasicClasses({
|
|
11134
|
-
prefix: CLASSNAME$
|
|
11204
|
+
prefix: CLASSNAME$15,
|
|
11135
11205
|
isActive,
|
|
11136
11206
|
isDisabled
|
|
11137
11207
|
})),
|
|
@@ -11148,11 +11218,11 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11148
11218
|
size: Size.xs
|
|
11149
11219
|
}), label && /*#__PURE__*/React.createElement("span", null, label));
|
|
11150
11220
|
});
|
|
11151
|
-
Tab.displayName = COMPONENT_NAME$
|
|
11152
|
-
Tab.className = CLASSNAME$
|
|
11153
|
-
Tab.defaultProps = DEFAULT_PROPS$
|
|
11221
|
+
Tab.displayName = COMPONENT_NAME$18;
|
|
11222
|
+
Tab.className = CLASSNAME$15;
|
|
11223
|
+
Tab.defaultProps = DEFAULT_PROPS$V;
|
|
11154
11224
|
|
|
11155
|
-
const _excluded$
|
|
11225
|
+
const _excluded$1d = ["children", "id", "className", "isActive"];
|
|
11156
11226
|
|
|
11157
11227
|
/**
|
|
11158
11228
|
* Defines the props of the component.
|
|
@@ -11161,17 +11231,17 @@ const _excluded$1c = ["children", "id", "className", "isActive"];
|
|
|
11161
11231
|
/**
|
|
11162
11232
|
* Component display name.
|
|
11163
11233
|
*/
|
|
11164
|
-
const COMPONENT_NAME$
|
|
11234
|
+
const COMPONENT_NAME$19 = 'TabPanel';
|
|
11165
11235
|
|
|
11166
11236
|
/**
|
|
11167
11237
|
* Component default class name and class prefix.
|
|
11168
11238
|
*/
|
|
11169
|
-
const CLASSNAME$
|
|
11239
|
+
const CLASSNAME$16 = `${CSS_PREFIX}-tab-panel`;
|
|
11170
11240
|
|
|
11171
11241
|
/**
|
|
11172
11242
|
* Component default props.
|
|
11173
11243
|
*/
|
|
11174
|
-
const DEFAULT_PROPS$
|
|
11244
|
+
const DEFAULT_PROPS$W = {};
|
|
11175
11245
|
|
|
11176
11246
|
/**
|
|
11177
11247
|
* TabPanel component.
|
|
@@ -11189,7 +11259,7 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11189
11259
|
className,
|
|
11190
11260
|
isActive: propIsActive
|
|
11191
11261
|
} = props,
|
|
11192
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11262
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1d);
|
|
11193
11263
|
const state = useTabProviderContext('tabPanel', id);
|
|
11194
11264
|
const isActive = propIsActive || (state === null || state === void 0 ? void 0 : state.isActive);
|
|
11195
11265
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -11197,7 +11267,7 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11197
11267
|
}, forwardedProps, {
|
|
11198
11268
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
11199
11269
|
className: classnames(className, handleBasicClasses({
|
|
11200
|
-
prefix: CLASSNAME$
|
|
11270
|
+
prefix: CLASSNAME$16,
|
|
11201
11271
|
isActive
|
|
11202
11272
|
})),
|
|
11203
11273
|
role: "tabpanel",
|
|
@@ -11205,11 +11275,11 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11205
11275
|
"aria-labelledby": state === null || state === void 0 ? void 0 : state.tabId
|
|
11206
11276
|
}), (!(state !== null && state !== void 0 && state.isLazy) || isActive) && children);
|
|
11207
11277
|
});
|
|
11208
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
11209
|
-
TabPanel.className = CLASSNAME$
|
|
11210
|
-
TabPanel.defaultProps = DEFAULT_PROPS$
|
|
11278
|
+
TabPanel.displayName = COMPONENT_NAME$19;
|
|
11279
|
+
TabPanel.className = CLASSNAME$16;
|
|
11280
|
+
TabPanel.defaultProps = DEFAULT_PROPS$W;
|
|
11211
11281
|
|
|
11212
|
-
const _excluded$
|
|
11282
|
+
const _excluded$1e = ["id", "isDisabled", "isRequired", "placeholder", "multiline", "value", "setFocus", "onChange", "onFocus", "onBlur", "inputRef", "rows", "recomputeNumberOfRows", "type", "name"],
|
|
11213
11283
|
_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"];
|
|
11214
11284
|
|
|
11215
11285
|
/**
|
|
@@ -11219,12 +11289,12 @@ const _excluded$1d = ["id", "isDisabled", "isRequired", "placeholder", "multilin
|
|
|
11219
11289
|
/**
|
|
11220
11290
|
* Component display name.
|
|
11221
11291
|
*/
|
|
11222
|
-
const COMPONENT_NAME$
|
|
11292
|
+
const COMPONENT_NAME$1a = 'TextField';
|
|
11223
11293
|
|
|
11224
11294
|
/**
|
|
11225
11295
|
* Component default class name and class prefix.
|
|
11226
11296
|
*/
|
|
11227
|
-
const CLASSNAME$
|
|
11297
|
+
const CLASSNAME$17 = getRootClassName(COMPONENT_NAME$1a);
|
|
11228
11298
|
|
|
11229
11299
|
/**
|
|
11230
11300
|
* Default minimum number of rows in the multiline mode.
|
|
@@ -11234,7 +11304,7 @@ const DEFAULT_MIN_ROWS = 2;
|
|
|
11234
11304
|
/**
|
|
11235
11305
|
* Component default props.
|
|
11236
11306
|
*/
|
|
11237
|
-
const DEFAULT_PROPS$
|
|
11307
|
+
const DEFAULT_PROPS$X = {
|
|
11238
11308
|
theme: Theme.light,
|
|
11239
11309
|
type: 'text'
|
|
11240
11310
|
};
|
|
@@ -11292,7 +11362,7 @@ const renderInputNative = props => {
|
|
|
11292
11362
|
type,
|
|
11293
11363
|
name
|
|
11294
11364
|
} = props,
|
|
11295
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11365
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1e);
|
|
11296
11366
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11297
11367
|
const ref = useRef(null);
|
|
11298
11368
|
|
|
@@ -11317,7 +11387,7 @@ const renderInputNative = props => {
|
|
|
11317
11387
|
const Component = multiline ? 'textarea' : 'input';
|
|
11318
11388
|
const inputProps = _objectSpread2(_objectSpread2({}, forwardedProps), {}, {
|
|
11319
11389
|
id,
|
|
11320
|
-
className: multiline ? `${CLASSNAME$
|
|
11390
|
+
className: multiline ? `${CLASSNAME$17}__input-native ${CLASSNAME$17}__input-native--textarea` : `${CLASSNAME$17}__input-native ${CLASSNAME$17}__input-native--text`,
|
|
11321
11391
|
placeholder,
|
|
11322
11392
|
value,
|
|
11323
11393
|
name,
|
|
@@ -11411,31 +11481,31 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11411
11481
|
isDisabled,
|
|
11412
11482
|
isFocus: isFocus || forceFocusStyle,
|
|
11413
11483
|
isValid,
|
|
11414
|
-
prefix: CLASSNAME$
|
|
11484
|
+
prefix: CLASSNAME$17,
|
|
11415
11485
|
theme
|
|
11416
11486
|
}))
|
|
11417
11487
|
}, (label || maxLength) && /*#__PURE__*/React.createElement("div", {
|
|
11418
|
-
className: `${CLASSNAME$
|
|
11488
|
+
className: `${CLASSNAME$17}__header`
|
|
11419
11489
|
}, label && /*#__PURE__*/React.createElement(InputLabel, {
|
|
11420
11490
|
htmlFor: textFieldId,
|
|
11421
|
-
className: `${CLASSNAME$
|
|
11491
|
+
className: `${CLASSNAME$17}__label`,
|
|
11422
11492
|
isRequired: isRequired,
|
|
11423
11493
|
theme: theme
|
|
11424
11494
|
}, label), maxLength && /*#__PURE__*/React.createElement("div", {
|
|
11425
|
-
className: `${CLASSNAME$
|
|
11495
|
+
className: `${CLASSNAME$17}__char-counter`
|
|
11426
11496
|
}, /*#__PURE__*/React.createElement("span", null, maxLength - valueLength), maxLength - valueLength === 0 && /*#__PURE__*/React.createElement(Icon, {
|
|
11427
11497
|
icon: mdiAlertCircle,
|
|
11428
11498
|
size: Size.xxs
|
|
11429
11499
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
11430
|
-
className: `${CLASSNAME$
|
|
11500
|
+
className: `${CLASSNAME$17}__wrapper`,
|
|
11431
11501
|
ref: textFieldRef
|
|
11432
11502
|
}, icon && /*#__PURE__*/React.createElement(Icon, {
|
|
11433
|
-
className: `${CLASSNAME$
|
|
11503
|
+
className: `${CLASSNAME$17}__input-icon`,
|
|
11434
11504
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11435
11505
|
icon: icon,
|
|
11436
11506
|
size: Size.xs
|
|
11437
11507
|
}), chips && /*#__PURE__*/React.createElement("div", {
|
|
11438
|
-
className: `${CLASSNAME$
|
|
11508
|
+
className: `${CLASSNAME$17}__chips`
|
|
11439
11509
|
}, chips, renderInputNative(_objectSpread2({
|
|
11440
11510
|
id: textFieldId,
|
|
11441
11511
|
inputRef,
|
|
@@ -11454,7 +11524,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11454
11524
|
value,
|
|
11455
11525
|
name
|
|
11456
11526
|
}, forwardedProps))), !chips && /*#__PURE__*/React.createElement("div", {
|
|
11457
|
-
className: `${CLASSNAME$
|
|
11527
|
+
className: `${CLASSNAME$17}__input-wrapper`
|
|
11458
11528
|
}, renderInputNative(_objectSpread2({
|
|
11459
11529
|
id: textFieldId,
|
|
11460
11530
|
inputRef,
|
|
@@ -11473,12 +11543,12 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11473
11543
|
value,
|
|
11474
11544
|
name
|
|
11475
11545
|
}, forwardedProps))), (isValid || hasError) && /*#__PURE__*/React.createElement(Icon, {
|
|
11476
|
-
className: `${CLASSNAME$
|
|
11546
|
+
className: `${CLASSNAME$17}__input-validity`,
|
|
11477
11547
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11478
11548
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
11479
11549
|
size: Size.xxs
|
|
11480
11550
|
}), clearButtonProps && isNotEmpty && /*#__PURE__*/React.createElement(IconButton, _extends({}, clearButtonProps, {
|
|
11481
|
-
className: `${CLASSNAME$
|
|
11551
|
+
className: `${CLASSNAME$17}__input-clear`,
|
|
11482
11552
|
icon: mdiCloseCircle,
|
|
11483
11553
|
emphasis: Emphasis.low,
|
|
11484
11554
|
size: Size.s,
|
|
@@ -11486,19 +11556,19 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11486
11556
|
onClick: onClear,
|
|
11487
11557
|
type: "button"
|
|
11488
11558
|
})), afterElement && /*#__PURE__*/React.createElement("div", {
|
|
11489
|
-
className: `${CLASSNAME$
|
|
11559
|
+
className: `${CLASSNAME$17}__after-element`
|
|
11490
11560
|
}, afterElement)), hasError && error && /*#__PURE__*/React.createElement(InputHelper, {
|
|
11491
|
-
className: `${CLASSNAME$
|
|
11561
|
+
className: `${CLASSNAME$17}__helper`,
|
|
11492
11562
|
kind: Kind.error,
|
|
11493
11563
|
theme: theme
|
|
11494
11564
|
}, error), helper && /*#__PURE__*/React.createElement(InputHelper, {
|
|
11495
|
-
className: `${CLASSNAME$
|
|
11565
|
+
className: `${CLASSNAME$17}__helper`,
|
|
11496
11566
|
theme: theme
|
|
11497
11567
|
}, helper));
|
|
11498
11568
|
});
|
|
11499
|
-
TextField.displayName = COMPONENT_NAME$
|
|
11500
|
-
TextField.className = CLASSNAME$
|
|
11501
|
-
TextField.defaultProps = DEFAULT_PROPS$
|
|
11569
|
+
TextField.displayName = COMPONENT_NAME$1a;
|
|
11570
|
+
TextField.className = CLASSNAME$17;
|
|
11571
|
+
TextField.defaultProps = DEFAULT_PROPS$X;
|
|
11502
11572
|
|
|
11503
11573
|
function getState(img, event) {
|
|
11504
11574
|
// Error event occurred or image loaded empty.
|
|
@@ -11642,21 +11712,21 @@ const useFocusPointStyle = (_ref2, element, isLoaded) => {
|
|
|
11642
11712
|
return style;
|
|
11643
11713
|
};
|
|
11644
11714
|
|
|
11645
|
-
const _excluded$
|
|
11715
|
+
const _excluded$1f = ["align", "alt", "aspectRatio", "badge", "className", "crossOrigin", "fallback", "fillHeight", "focusPoint", "image", "imgProps", "imgRef", "isLoading", "loading", "size", "theme", "variant", "linkProps", "linkAs"];
|
|
11646
11716
|
/**
|
|
11647
11717
|
* Component display name.
|
|
11648
11718
|
*/
|
|
11649
|
-
const COMPONENT_NAME$
|
|
11719
|
+
const COMPONENT_NAME$1b = 'Thumbnail';
|
|
11650
11720
|
|
|
11651
11721
|
/**
|
|
11652
11722
|
* Component default class name and class prefix.
|
|
11653
11723
|
*/
|
|
11654
|
-
const CLASSNAME$
|
|
11724
|
+
const CLASSNAME$18 = getRootClassName(COMPONENT_NAME$1b);
|
|
11655
11725
|
|
|
11656
11726
|
/**
|
|
11657
11727
|
* Component default props.
|
|
11658
11728
|
*/
|
|
11659
|
-
const DEFAULT_PROPS$
|
|
11729
|
+
const DEFAULT_PROPS$Y = {
|
|
11660
11730
|
fallback: mdiImageBroken,
|
|
11661
11731
|
loading: 'lazy',
|
|
11662
11732
|
theme: Theme.light
|
|
@@ -11693,7 +11763,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11693
11763
|
linkProps,
|
|
11694
11764
|
linkAs
|
|
11695
11765
|
} = props,
|
|
11696
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11766
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1f);
|
|
11697
11767
|
const [imgElement, setImgElement] = useState();
|
|
11698
11768
|
|
|
11699
11769
|
// Image loading state.
|
|
@@ -11732,7 +11802,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11732
11802
|
className: classnames(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, className, handleBasicClasses({
|
|
11733
11803
|
align,
|
|
11734
11804
|
aspectRatio,
|
|
11735
|
-
prefix: CLASSNAME$
|
|
11805
|
+
prefix: CLASSNAME$18,
|
|
11736
11806
|
size,
|
|
11737
11807
|
theme,
|
|
11738
11808
|
variant,
|
|
@@ -11742,14 +11812,14 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11742
11812
|
hasCustomErrorFallback,
|
|
11743
11813
|
isLoading,
|
|
11744
11814
|
hasBadge: !!badge
|
|
11745
|
-
}), fillHeight && `${CLASSNAME$
|
|
11815
|
+
}), fillHeight && `${CLASSNAME$18}--fill-height`)
|
|
11746
11816
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11747
|
-
className: `${CLASSNAME$
|
|
11817
|
+
className: `${CLASSNAME$18}__background`
|
|
11748
11818
|
}, /*#__PURE__*/React.createElement("img", _extends({}, imgProps, {
|
|
11749
11819
|
style: _objectSpread2(_objectSpread2(_objectSpread2({}, imgProps === null || imgProps === void 0 ? void 0 : imgProps.style), imageErrorStyle), focusPointStyle),
|
|
11750
11820
|
ref: mergeRefs(setImgElement, propImgRef),
|
|
11751
11821
|
className: classnames(handleBasicClasses({
|
|
11752
|
-
prefix: `${CLASSNAME$
|
|
11822
|
+
prefix: `${CLASSNAME$18}__image`,
|
|
11753
11823
|
isLoading,
|
|
11754
11824
|
hasDefinedSize: Boolean((imgProps === null || imgProps === void 0 ? void 0 : imgProps.height) && imgProps.width)
|
|
11755
11825
|
}), imgProps === null || imgProps === void 0 ? void 0 : imgProps.className),
|
|
@@ -11758,18 +11828,18 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11758
11828
|
alt: alt,
|
|
11759
11829
|
loading: loading
|
|
11760
11830
|
})), !isLoading && hasError && /*#__PURE__*/React.createElement("div", {
|
|
11761
|
-
className: `${CLASSNAME$
|
|
11831
|
+
className: `${CLASSNAME$18}__fallback`
|
|
11762
11832
|
}, hasIconErrorFallback ? /*#__PURE__*/React.createElement(Icon, {
|
|
11763
11833
|
icon: fallback,
|
|
11764
11834
|
size: Size.xxs,
|
|
11765
11835
|
theme: theme
|
|
11766
11836
|
}) : fallback)), badge && /*#__PURE__*/React.cloneElement(badge, {
|
|
11767
|
-
className: classnames(`${CLASSNAME$
|
|
11837
|
+
className: classnames(`${CLASSNAME$18}__badge`, badge.props.className)
|
|
11768
11838
|
}));
|
|
11769
11839
|
});
|
|
11770
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
11771
|
-
Thumbnail.className = CLASSNAME$
|
|
11772
|
-
Thumbnail.defaultProps = DEFAULT_PROPS$
|
|
11840
|
+
Thumbnail.displayName = COMPONENT_NAME$1b;
|
|
11841
|
+
Thumbnail.className = CLASSNAME$18;
|
|
11842
|
+
Thumbnail.defaultProps = DEFAULT_PROPS$Y;
|
|
11773
11843
|
|
|
11774
11844
|
/**
|
|
11775
11845
|
* All available aspect ratios.
|
|
@@ -11789,7 +11859,7 @@ const ThumbnailVariant = {
|
|
|
11789
11859
|
rounded: 'rounded'
|
|
11790
11860
|
};
|
|
11791
11861
|
|
|
11792
|
-
const _excluded$
|
|
11862
|
+
const _excluded$1g = ["after", "before", "className", "label"];
|
|
11793
11863
|
|
|
11794
11864
|
/**
|
|
11795
11865
|
* Defines the props of the component.
|
|
@@ -11798,17 +11868,17 @@ const _excluded$1f = ["after", "before", "className", "label"];
|
|
|
11798
11868
|
/**
|
|
11799
11869
|
* Component display name.
|
|
11800
11870
|
*/
|
|
11801
|
-
const COMPONENT_NAME$
|
|
11871
|
+
const COMPONENT_NAME$1c = 'Toolbar';
|
|
11802
11872
|
|
|
11803
11873
|
/**
|
|
11804
11874
|
* Component default class name and class prefix.
|
|
11805
11875
|
*/
|
|
11806
|
-
const CLASSNAME$
|
|
11876
|
+
const CLASSNAME$19 = getRootClassName(COMPONENT_NAME$1c);
|
|
11807
11877
|
|
|
11808
11878
|
/**
|
|
11809
11879
|
* Component default props.
|
|
11810
11880
|
*/
|
|
11811
|
-
const DEFAULT_PROPS$
|
|
11881
|
+
const DEFAULT_PROPS$Z = {};
|
|
11812
11882
|
|
|
11813
11883
|
/**
|
|
11814
11884
|
* Toolbar component.
|
|
@@ -11824,7 +11894,7 @@ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11824
11894
|
className,
|
|
11825
11895
|
label
|
|
11826
11896
|
} = props,
|
|
11827
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11897
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1g);
|
|
11828
11898
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
11829
11899
|
ref: ref
|
|
11830
11900
|
}, forwardedProps, {
|
|
@@ -11832,19 +11902,19 @@ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11832
11902
|
hasAfter: Boolean(after),
|
|
11833
11903
|
hasBefore: Boolean(before),
|
|
11834
11904
|
hasLabel: Boolean(label),
|
|
11835
|
-
prefix: CLASSNAME$
|
|
11905
|
+
prefix: CLASSNAME$19
|
|
11836
11906
|
}))
|
|
11837
11907
|
}), before && /*#__PURE__*/React.createElement("div", {
|
|
11838
|
-
className: `${CLASSNAME$
|
|
11908
|
+
className: `${CLASSNAME$19}__before`
|
|
11839
11909
|
}, before), label && /*#__PURE__*/React.createElement("div", {
|
|
11840
|
-
className: `${CLASSNAME$
|
|
11910
|
+
className: `${CLASSNAME$19}__label`
|
|
11841
11911
|
}, label), after && /*#__PURE__*/React.createElement("div", {
|
|
11842
|
-
className: `${CLASSNAME$
|
|
11912
|
+
className: `${CLASSNAME$19}__after`
|
|
11843
11913
|
}, after));
|
|
11844
11914
|
});
|
|
11845
|
-
Toolbar.displayName = COMPONENT_NAME$
|
|
11846
|
-
Toolbar.className = CLASSNAME$
|
|
11847
|
-
Toolbar.defaultProps = DEFAULT_PROPS$
|
|
11915
|
+
Toolbar.displayName = COMPONENT_NAME$1c;
|
|
11916
|
+
Toolbar.className = CLASSNAME$19;
|
|
11917
|
+
Toolbar.defaultProps = DEFAULT_PROPS$Z;
|
|
11848
11918
|
|
|
11849
11919
|
/**
|
|
11850
11920
|
* Add ref and ARIA attribute(s) in tooltip children or wrapped children.
|
|
@@ -11978,24 +12048,24 @@ function useTooltipOpen(delay, anchorElement) {
|
|
|
11978
12048
|
return isOpen;
|
|
11979
12049
|
}
|
|
11980
12050
|
|
|
11981
|
-
const _excluded$
|
|
12051
|
+
const _excluded$1h = ["label", "children", "className", "delay", "placement", "forceOpen"];
|
|
11982
12052
|
|
|
11983
12053
|
/** Position of the tooltip relative to the anchor element. */
|
|
11984
12054
|
|
|
11985
12055
|
/**
|
|
11986
12056
|
* Component display name.
|
|
11987
12057
|
*/
|
|
11988
|
-
const COMPONENT_NAME$
|
|
12058
|
+
const COMPONENT_NAME$1d = 'Tooltip';
|
|
11989
12059
|
|
|
11990
12060
|
/**
|
|
11991
12061
|
* Component default class name and class prefix.
|
|
11992
12062
|
*/
|
|
11993
|
-
const CLASSNAME$
|
|
12063
|
+
const CLASSNAME$1a = getRootClassName(COMPONENT_NAME$1d);
|
|
11994
12064
|
|
|
11995
12065
|
/**
|
|
11996
12066
|
* Component default props.
|
|
11997
12067
|
*/
|
|
11998
|
-
const DEFAULT_PROPS$
|
|
12068
|
+
const DEFAULT_PROPS$_ = {
|
|
11999
12069
|
placement: Placement.BOTTOM
|
|
12000
12070
|
};
|
|
12001
12071
|
|
|
@@ -12021,7 +12091,7 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12021
12091
|
placement,
|
|
12022
12092
|
forceOpen
|
|
12023
12093
|
} = props,
|
|
12024
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12094
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1h);
|
|
12025
12095
|
// Disable in SSR or without a label.
|
|
12026
12096
|
if (!DOCUMENT || !label) {
|
|
12027
12097
|
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
@@ -12051,23 +12121,23 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12051
12121
|
role: "tooltip",
|
|
12052
12122
|
"aria-label": label,
|
|
12053
12123
|
className: classnames(className, handleBasicClasses({
|
|
12054
|
-
prefix: CLASSNAME$
|
|
12124
|
+
prefix: CLASSNAME$1a,
|
|
12055
12125
|
position
|
|
12056
12126
|
})),
|
|
12057
12127
|
style: styles.popper
|
|
12058
12128
|
}, attributes.popper), /*#__PURE__*/React.createElement("div", {
|
|
12059
|
-
className: `${CLASSNAME$
|
|
12129
|
+
className: `${CLASSNAME$1a}__arrow`
|
|
12060
12130
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12061
|
-
className: `${CLASSNAME$
|
|
12131
|
+
className: `${CLASSNAME$1a}__inner`
|
|
12062
12132
|
}, label.indexOf('\n') !== -1 ? label.split('\n').map(sentence => /*#__PURE__*/React.createElement("p", {
|
|
12063
12133
|
key: sentence
|
|
12064
12134
|
}, sentence)) : label)), document.body));
|
|
12065
12135
|
});
|
|
12066
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
12067
|
-
Tooltip.className = CLASSNAME$
|
|
12068
|
-
Tooltip.defaultProps = DEFAULT_PROPS$
|
|
12136
|
+
Tooltip.displayName = COMPONENT_NAME$1d;
|
|
12137
|
+
Tooltip.className = CLASSNAME$1a;
|
|
12138
|
+
Tooltip.defaultProps = DEFAULT_PROPS$_;
|
|
12069
12139
|
|
|
12070
|
-
const _excluded$
|
|
12140
|
+
const _excluded$1i = ["aspectRatio", "className", "label", "icon", "size", "theme", "variant"];
|
|
12071
12141
|
|
|
12072
12142
|
/**
|
|
12073
12143
|
* Uploader variants.
|
|
@@ -12080,17 +12150,17 @@ const UploaderVariant = {
|
|
|
12080
12150
|
/**
|
|
12081
12151
|
* Component display name.
|
|
12082
12152
|
*/
|
|
12083
|
-
const COMPONENT_NAME$
|
|
12153
|
+
const COMPONENT_NAME$1e = 'Uploader';
|
|
12084
12154
|
|
|
12085
12155
|
/**
|
|
12086
12156
|
* Component default class name and class prefix.
|
|
12087
12157
|
*/
|
|
12088
|
-
const CLASSNAME$
|
|
12158
|
+
const CLASSNAME$1b = getRootClassName(COMPONENT_NAME$1e);
|
|
12089
12159
|
|
|
12090
12160
|
/**
|
|
12091
12161
|
* Component default props.
|
|
12092
12162
|
*/
|
|
12093
|
-
const DEFAULT_PROPS
|
|
12163
|
+
const DEFAULT_PROPS$$ = {
|
|
12094
12164
|
aspectRatio: AspectRatio.horizontal,
|
|
12095
12165
|
size: Size.xl,
|
|
12096
12166
|
theme: Theme.light,
|
|
@@ -12114,7 +12184,7 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12114
12184
|
theme,
|
|
12115
12185
|
variant
|
|
12116
12186
|
} = props,
|
|
12117
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12187
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1i);
|
|
12118
12188
|
// Adjust to square aspect ratio when using circle variants.
|
|
12119
12189
|
const adjustedAspectRatio = variant === UploaderVariant.circle ? AspectRatio.square : aspectRatio;
|
|
12120
12190
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -12122,43 +12192,43 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12122
12192
|
}, forwardedProps, {
|
|
12123
12193
|
className: classnames(className, handleBasicClasses({
|
|
12124
12194
|
aspectRatio: adjustedAspectRatio,
|
|
12125
|
-
prefix: CLASSNAME$
|
|
12195
|
+
prefix: CLASSNAME$1b,
|
|
12126
12196
|
size,
|
|
12127
12197
|
theme,
|
|
12128
12198
|
variant
|
|
12129
12199
|
}))
|
|
12130
12200
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12131
|
-
className: `${CLASSNAME$
|
|
12201
|
+
className: `${CLASSNAME$1b}__background`
|
|
12132
12202
|
}), /*#__PURE__*/React.createElement("div", {
|
|
12133
|
-
className: `${CLASSNAME$
|
|
12203
|
+
className: `${CLASSNAME$1b}__wrapper`
|
|
12134
12204
|
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
12135
|
-
className: `${CLASSNAME$
|
|
12205
|
+
className: `${CLASSNAME$1b}__icon`
|
|
12136
12206
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
12137
12207
|
icon: icon,
|
|
12138
12208
|
size: Size.s
|
|
12139
12209
|
})), label && /*#__PURE__*/React.createElement("span", {
|
|
12140
|
-
className: `${CLASSNAME$
|
|
12210
|
+
className: `${CLASSNAME$1b}__label`
|
|
12141
12211
|
}, label)));
|
|
12142
12212
|
});
|
|
12143
|
-
Uploader.displayName = COMPONENT_NAME$
|
|
12144
|
-
Uploader.className = CLASSNAME$
|
|
12145
|
-
Uploader.defaultProps = DEFAULT_PROPS
|
|
12213
|
+
Uploader.displayName = COMPONENT_NAME$1e;
|
|
12214
|
+
Uploader.className = CLASSNAME$1b;
|
|
12215
|
+
Uploader.defaultProps = DEFAULT_PROPS$$;
|
|
12146
12216
|
|
|
12147
|
-
const _excluded$
|
|
12217
|
+
const _excluded$1j = ["avatarProps", "className", "fields", "linkProps", "linkAs", "multipleActions", "name", "nameProps", "onClick", "onMouseEnter", "onMouseLeave", "orientation", "simpleAction", "size", "theme"];
|
|
12148
12218
|
/**
|
|
12149
12219
|
* Component display name.
|
|
12150
12220
|
*/
|
|
12151
|
-
const COMPONENT_NAME$
|
|
12221
|
+
const COMPONENT_NAME$1f = 'UserBlock';
|
|
12152
12222
|
|
|
12153
12223
|
/**
|
|
12154
12224
|
* Component default class name and class prefix.
|
|
12155
12225
|
*/
|
|
12156
|
-
const CLASSNAME$
|
|
12226
|
+
const CLASSNAME$1c = getRootClassName(COMPONENT_NAME$1f);
|
|
12157
12227
|
|
|
12158
12228
|
/**
|
|
12159
12229
|
* Component default props.
|
|
12160
12230
|
*/
|
|
12161
|
-
const DEFAULT_PROPS
|
|
12231
|
+
const DEFAULT_PROPS$10 = {
|
|
12162
12232
|
orientation: Orientation.horizontal,
|
|
12163
12233
|
size: Size.m,
|
|
12164
12234
|
theme: Theme.light
|
|
@@ -12189,7 +12259,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12189
12259
|
size,
|
|
12190
12260
|
theme
|
|
12191
12261
|
} = props,
|
|
12192
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
12262
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$1j);
|
|
12193
12263
|
let componentSize = size;
|
|
12194
12264
|
|
|
12195
12265
|
// Special case - When using vertical orientation force the size to be Sizes.l.
|
|
@@ -12205,7 +12275,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12205
12275
|
}
|
|
12206
12276
|
let NameComponent = 'span';
|
|
12207
12277
|
const nProps = _objectSpread2(_objectSpread2({}, nameProps), {}, {
|
|
12208
|
-
className: classnames(`${CLASSNAME$
|
|
12278
|
+
className: classnames(`${CLASSNAME$1c}__name`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, nameProps === null || nameProps === void 0 ? void 0 : nameProps.className)
|
|
12209
12279
|
});
|
|
12210
12280
|
if (isClickable) {
|
|
12211
12281
|
NameComponent = Link;
|
|
@@ -12222,16 +12292,16 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12222
12292
|
return /*#__PURE__*/React.createElement(NameComponent, nProps, name);
|
|
12223
12293
|
}, [avatarProps, isClickable, linkAs, linkProps, name, nameProps, onClick]);
|
|
12224
12294
|
const fieldsBlock = fields && componentSize !== Size.s && /*#__PURE__*/React.createElement("div", {
|
|
12225
|
-
className: `${CLASSNAME$
|
|
12295
|
+
className: `${CLASSNAME$1c}__fields`
|
|
12226
12296
|
}, fields.map((field, idx) => /*#__PURE__*/React.createElement("span", {
|
|
12227
12297
|
key: idx,
|
|
12228
|
-
className: `${CLASSNAME$
|
|
12298
|
+
className: `${CLASSNAME$1c}__field`
|
|
12229
12299
|
}, field)));
|
|
12230
12300
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12231
12301
|
ref: ref
|
|
12232
12302
|
}, forwardedProps, {
|
|
12233
12303
|
className: classnames(className, handleBasicClasses({
|
|
12234
|
-
prefix: CLASSNAME$
|
|
12304
|
+
prefix: CLASSNAME$1c,
|
|
12235
12305
|
orientation,
|
|
12236
12306
|
size: componentSize,
|
|
12237
12307
|
theme,
|
|
@@ -12244,21 +12314,21 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12244
12314
|
linkProps: linkProps,
|
|
12245
12315
|
alt: ""
|
|
12246
12316
|
}, avatarProps, {
|
|
12247
|
-
className: classnames(`${CLASSNAME$
|
|
12317
|
+
className: classnames(`${CLASSNAME$1c}__avatar`, avatarProps.className),
|
|
12248
12318
|
size: componentSize,
|
|
12249
12319
|
onClick: onClick,
|
|
12250
12320
|
theme: theme
|
|
12251
12321
|
})), (fields || name) && /*#__PURE__*/React.createElement("div", {
|
|
12252
|
-
className: `${CLASSNAME$
|
|
12322
|
+
className: `${CLASSNAME$1c}__wrapper`
|
|
12253
12323
|
}, nameBlock, fieldsBlock), shouldDisplayActions && simpleAction && /*#__PURE__*/React.createElement("div", {
|
|
12254
|
-
className: `${CLASSNAME$
|
|
12324
|
+
className: `${CLASSNAME$1c}__action`
|
|
12255
12325
|
}, simpleAction), shouldDisplayActions && multipleActions && /*#__PURE__*/React.createElement("div", {
|
|
12256
|
-
className: `${CLASSNAME$
|
|
12326
|
+
className: `${CLASSNAME$1c}__actions`
|
|
12257
12327
|
}, multipleActions));
|
|
12258
12328
|
});
|
|
12259
|
-
UserBlock.displayName = COMPONENT_NAME$
|
|
12260
|
-
UserBlock.className = CLASSNAME$
|
|
12261
|
-
UserBlock.defaultProps = DEFAULT_PROPS
|
|
12329
|
+
UserBlock.displayName = COMPONENT_NAME$1f;
|
|
12330
|
+
UserBlock.className = CLASSNAME$1c;
|
|
12331
|
+
UserBlock.defaultProps = DEFAULT_PROPS$10;
|
|
12262
12332
|
|
|
12263
|
-
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, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, InlineList, InputHelper, InputLabel, Kind, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSubheader, Message, Mosaic, Notification, Orientation, Placement, Popover, PostBlock, Progress, 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 };
|
|
12333
|
+
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, 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, 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 };
|
|
12264
12334
|
//# sourceMappingURL=index.js.map
|