@lumx/react 3.0.2-alpha-react-utils.3 → 3.0.3-alpha.1
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 +3 -1
- package/index.d.ts +68 -9
- package/index.js +553 -459
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/generic-block/GenericBlock.tsx +15 -3
- package/src/components/generic-block/constants.ts +9 -0
- package/src/components/generic-block/index.ts +1 -0
- package/src/components/inline-list/InlineList.stories.tsx +40 -0
- package/src/components/inline-list/InlineList.test.tsx +41 -0
- package/src/components/inline-list/InlineList.tsx +80 -0
- package/src/components/inline-list/index.ts +1 -0
- package/src/components/text/{Text.stories.tsx → Text.stories.jsx} +23 -28
- package/src/components/text/Text.test.tsx +15 -1
- package/src/components/text/Text.tsx +38 -13
- package/src/index.ts +1 -0
- package/src/stories/generated/GenericBlock/Demos.stories.tsx +3 -1
- package/src/stories/generated/Heading/Demos.stories.tsx +6 -0
- package/src/stories/withResizableBox.tsx +18 -0
- package/src/utils/className.ts +17 -0
- package/src/utils/type.ts +3 -0
- package/types.d.ts +65 -6
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _objectSpread2, a as _objectWithoutProperties, b as _slicedToArray, c as _defineProperty, d as _extends, e as _toConsumableArray$1, C as ClickAwayProvider, f as _toArray, g as _typeof } from './_internal/ClickAwayProvider.js';
|
|
2
|
-
import React, { forwardRef, useState, useEffect, useRef, useMemo, useCallback, Children, isValidElement, cloneElement, useLayoutEffect, createContext, useContext, useReducer } from 'react';
|
|
2
|
+
import React, { forwardRef, useState, useEffect, useRef, useMemo, useCallback, Children, isValidElement, cloneElement, useLayoutEffect, Fragment as Fragment$1, createContext, useContext, useReducer } from 'react';
|
|
3
3
|
import kebabCase from 'lodash/kebabCase';
|
|
4
4
|
import isBoolean from 'lodash/isBoolean';
|
|
5
5
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -17,6 +17,7 @@ import dropRight from 'lodash/dropRight';
|
|
|
17
17
|
import partition from 'lodash/partition';
|
|
18
18
|
import reduce from 'lodash/reduce';
|
|
19
19
|
import castArray from 'lodash/castArray';
|
|
20
|
+
import pick from 'lodash/pick';
|
|
20
21
|
import isObject from 'lodash/isObject';
|
|
21
22
|
import take from 'lodash/take';
|
|
22
23
|
import uniqueId from 'lodash/uniqueId';
|
|
@@ -559,6 +560,23 @@ function getRootClassName(componentName, subComponent) {
|
|
|
559
560
|
|
|
560
561
|
return formattedClassName;
|
|
561
562
|
}
|
|
563
|
+
/**
|
|
564
|
+
* Returns the classname associated to the given color and variant.
|
|
565
|
+
* For example, for 'dark' and 'L2' it returns `lumx-color-font-dark-l2`
|
|
566
|
+
*/
|
|
567
|
+
|
|
568
|
+
var getFontColorClassName = function getFontColorClassName(color) {
|
|
569
|
+
var colorVariant = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ColorVariant.N;
|
|
570
|
+
return "lumx-color-font-".concat(color, "-").concat(colorVariant);
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* Returns the classname associated to the given typography.
|
|
574
|
+
* For example, for `Typography.title` it returns `lumx-typography-title`
|
|
575
|
+
*/
|
|
576
|
+
|
|
577
|
+
var getTypographyClassName = function getTypographyClassName(typography) {
|
|
578
|
+
return "lumx-typography-".concat(typography);
|
|
579
|
+
};
|
|
562
580
|
|
|
563
581
|
var _CONFIG;
|
|
564
582
|
|
|
@@ -6747,6 +6765,15 @@ var GenericBlock = Object.assign(BaseGenericBlock, {
|
|
|
6747
6765
|
Actions: Actions
|
|
6748
6766
|
});
|
|
6749
6767
|
|
|
6768
|
+
/**
|
|
6769
|
+
* Accepted gap sizes for the generic block.
|
|
6770
|
+
*/
|
|
6771
|
+
var GenericBlockGapSize = pick(Size, ['tiny', 'regular', 'medium', 'big', 'huge']);
|
|
6772
|
+
|
|
6773
|
+
/**
|
|
6774
|
+
* Defines the props of the component.
|
|
6775
|
+
*/
|
|
6776
|
+
|
|
6750
6777
|
/**
|
|
6751
6778
|
* Component display name.
|
|
6752
6779
|
*/
|
|
@@ -6770,19 +6797,19 @@ var DEFAULT_PROPS$l = {};
|
|
|
6770
6797
|
*/
|
|
6771
6798
|
|
|
6772
6799
|
var Text = forwardRef(function (props, ref) {
|
|
6773
|
-
var
|
|
6800
|
+
var Component = props.as,
|
|
6774
6801
|
children = props.children,
|
|
6775
6802
|
className = props.className,
|
|
6776
6803
|
color = props.color,
|
|
6777
6804
|
colorVariant = props.colorVariant,
|
|
6805
|
+
noWrap = props.noWrap,
|
|
6778
6806
|
typography = props.typography,
|
|
6779
6807
|
truncate = props.truncate,
|
|
6780
6808
|
style = props.style,
|
|
6781
|
-
forwardedProps = _objectWithoutProperties(props, ["as", "children", "className", "color", "colorVariant", "typography", "truncate", "style"]);
|
|
6809
|
+
forwardedProps = _objectWithoutProperties(props, ["as", "children", "className", "color", "colorVariant", "noWrap", "typography", "truncate", "style"]);
|
|
6782
6810
|
|
|
6783
|
-
var
|
|
6784
|
-
var
|
|
6785
|
-
var typographyClass = typography && "lumx-typography-".concat(typography); // Truncate mode
|
|
6811
|
+
var colorClass = color && getFontColorClassName(color, colorVariant);
|
|
6812
|
+
var typographyClass = typography && getTypographyClassName(typography); // Truncate mode
|
|
6786
6813
|
|
|
6787
6814
|
var truncateLinesStyle = _typeof(truncate) === 'object' && truncate.lines > 1 && {
|
|
6788
6815
|
'--lumx-text-truncate-lines': truncate.lines
|
|
@@ -6795,9 +6822,18 @@ var Text = forwardRef(function (props, ref) {
|
|
|
6795
6822
|
prefix: CLASSNAME$o,
|
|
6796
6823
|
isTruncated: isTruncated && !isTruncatedMultiline,
|
|
6797
6824
|
isTruncatedMultiline: isTruncatedMultiline
|
|
6798
|
-
}), typographyClass, colorClass),
|
|
6825
|
+
}), typographyClass, colorClass, noWrap && "".concat(CLASSNAME$o, "--no-wrap")),
|
|
6799
6826
|
style: _objectSpread2({}, truncateLinesStyle, {}, style)
|
|
6800
|
-
}, forwardedProps), children)
|
|
6827
|
+
}, forwardedProps), Children.toArray(children).map(function (child, index) {
|
|
6828
|
+
// Force wrap spaces around icons to make sure they are never stuck against text.
|
|
6829
|
+
if (isComponent(Icon)(child)) {
|
|
6830
|
+
return React.createElement(Fragment$1, {
|
|
6831
|
+
key: child.key || index
|
|
6832
|
+
}, " ", child, " ");
|
|
6833
|
+
}
|
|
6834
|
+
|
|
6835
|
+
return child;
|
|
6836
|
+
}));
|
|
6801
6837
|
});
|
|
6802
6838
|
Text.displayName = COMPONENT_NAME$r;
|
|
6803
6839
|
Text.className = CLASSNAME$o;
|
|
@@ -7179,6 +7215,64 @@ ImageBlock.displayName = COMPONENT_NAME$w;
|
|
|
7179
7215
|
ImageBlock.className = CLASSNAME$t;
|
|
7180
7216
|
ImageBlock.defaultProps = DEFAULT_PROPS$p;
|
|
7181
7217
|
|
|
7218
|
+
/**
|
|
7219
|
+
* Defines the props of the component.
|
|
7220
|
+
*/
|
|
7221
|
+
|
|
7222
|
+
/**
|
|
7223
|
+
* Component display name.
|
|
7224
|
+
*/
|
|
7225
|
+
var COMPONENT_NAME$x = 'InlineList';
|
|
7226
|
+
/**
|
|
7227
|
+
* Component default class name and class prefix.
|
|
7228
|
+
*/
|
|
7229
|
+
|
|
7230
|
+
var CLASSNAME$u = getRootClassName(COMPONENT_NAME$x);
|
|
7231
|
+
/**
|
|
7232
|
+
* Component default props.
|
|
7233
|
+
*/
|
|
7234
|
+
|
|
7235
|
+
var DEFAULT_PROPS$q = {};
|
|
7236
|
+
/**
|
|
7237
|
+
* InlineList component.
|
|
7238
|
+
*
|
|
7239
|
+
* @param props Component props.
|
|
7240
|
+
* @param ref Component ref.
|
|
7241
|
+
* @return React element.
|
|
7242
|
+
*/
|
|
7243
|
+
|
|
7244
|
+
var InlineList = forwardRef(function (props, ref) {
|
|
7245
|
+
var className = props.className,
|
|
7246
|
+
color = props.color,
|
|
7247
|
+
colorVariant = props.colorVariant,
|
|
7248
|
+
typography = props.typography,
|
|
7249
|
+
children = props.children,
|
|
7250
|
+
forwardedProps = _objectWithoutProperties(props, ["className", "color", "colorVariant", "typography", "children"]);
|
|
7251
|
+
|
|
7252
|
+
var fontColorClassName = color && getFontColorClassName(color, colorVariant);
|
|
7253
|
+
var typographyClassName = typography && getTypographyClassName(typography);
|
|
7254
|
+
return (// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
7255
|
+
React.createElement("ul", _extends({}, forwardedProps, {
|
|
7256
|
+
ref: ref,
|
|
7257
|
+
className: classnames(className, CLASSNAME$u, fontColorClassName, typographyClassName) // Lists with removed bullet style can lose their a11y list role on some browsers
|
|
7258
|
+
,
|
|
7259
|
+
role: "list"
|
|
7260
|
+
}), Children.toArray(children).map(function (child, index) {
|
|
7261
|
+
var key = isValidElement(child) && child.key || index;
|
|
7262
|
+
return React.createElement("li", {
|
|
7263
|
+
key: key,
|
|
7264
|
+
className: "".concat(CLASSNAME$u, "__item")
|
|
7265
|
+
}, index !== 0 && React.createElement("span", {
|
|
7266
|
+
className: "".concat(CLASSNAME$u, "__item-separator"),
|
|
7267
|
+
"aria-hidden": "true"
|
|
7268
|
+
}, "\xA0\u2022\xA0"), child);
|
|
7269
|
+
}))
|
|
7270
|
+
);
|
|
7271
|
+
});
|
|
7272
|
+
InlineList.displayName = COMPONENT_NAME$x;
|
|
7273
|
+
InlineList.className = CLASSNAME$u;
|
|
7274
|
+
InlineList.defaultProps = DEFAULT_PROPS$q;
|
|
7275
|
+
|
|
7182
7276
|
var INPUT_HELPER_CONFIGURATION = {
|
|
7183
7277
|
error: {
|
|
7184
7278
|
color: 'red'
|
|
@@ -7198,17 +7292,17 @@ var INPUT_HELPER_CONFIGURATION = {
|
|
|
7198
7292
|
/**
|
|
7199
7293
|
* Component display name.
|
|
7200
7294
|
*/
|
|
7201
|
-
var COMPONENT_NAME$
|
|
7295
|
+
var COMPONENT_NAME$y = 'InputHelper';
|
|
7202
7296
|
/**
|
|
7203
7297
|
* Component default class name and class prefix.
|
|
7204
7298
|
*/
|
|
7205
7299
|
|
|
7206
|
-
var CLASSNAME$
|
|
7300
|
+
var CLASSNAME$v = getRootClassName(COMPONENT_NAME$y);
|
|
7207
7301
|
/**
|
|
7208
7302
|
* Component default props.
|
|
7209
7303
|
*/
|
|
7210
7304
|
|
|
7211
|
-
var DEFAULT_PROPS$
|
|
7305
|
+
var DEFAULT_PROPS$r = {
|
|
7212
7306
|
kind: Kind.info,
|
|
7213
7307
|
theme: Theme.light
|
|
7214
7308
|
};
|
|
@@ -7234,15 +7328,15 @@ var InputHelper = forwardRef(function (props, ref) {
|
|
|
7234
7328
|
ref: ref
|
|
7235
7329
|
}, forwardedProps, {
|
|
7236
7330
|
className: classnames(className, handleBasicClasses({
|
|
7237
|
-
prefix: CLASSNAME$
|
|
7331
|
+
prefix: CLASSNAME$v,
|
|
7238
7332
|
color: color,
|
|
7239
7333
|
theme: theme
|
|
7240
7334
|
}))
|
|
7241
7335
|
}), children);
|
|
7242
7336
|
});
|
|
7243
|
-
InputHelper.displayName = COMPONENT_NAME$
|
|
7244
|
-
InputHelper.className = CLASSNAME$
|
|
7245
|
-
InputHelper.defaultProps = DEFAULT_PROPS$
|
|
7337
|
+
InputHelper.displayName = COMPONENT_NAME$y;
|
|
7338
|
+
InputHelper.className = CLASSNAME$v;
|
|
7339
|
+
InputHelper.defaultProps = DEFAULT_PROPS$r;
|
|
7246
7340
|
|
|
7247
7341
|
/**
|
|
7248
7342
|
* Defines the props of the component.
|
|
@@ -7251,17 +7345,17 @@ InputHelper.defaultProps = DEFAULT_PROPS$q;
|
|
|
7251
7345
|
/**
|
|
7252
7346
|
* Component display name.
|
|
7253
7347
|
*/
|
|
7254
|
-
var COMPONENT_NAME$
|
|
7348
|
+
var COMPONENT_NAME$z = 'InputLabel';
|
|
7255
7349
|
/**
|
|
7256
7350
|
* Component default class name and class prefix.
|
|
7257
7351
|
*/
|
|
7258
7352
|
|
|
7259
|
-
var CLASSNAME$
|
|
7353
|
+
var CLASSNAME$w = getRootClassName(COMPONENT_NAME$z);
|
|
7260
7354
|
/**
|
|
7261
7355
|
* Component default props.
|
|
7262
7356
|
*/
|
|
7263
7357
|
|
|
7264
|
-
var DEFAULT_PROPS$
|
|
7358
|
+
var DEFAULT_PROPS$s = {
|
|
7265
7359
|
theme: Theme.light
|
|
7266
7360
|
};
|
|
7267
7361
|
/**
|
|
@@ -7285,15 +7379,15 @@ var InputLabel = forwardRef(function (props, ref) {
|
|
|
7285
7379
|
}, forwardedProps, {
|
|
7286
7380
|
htmlFor: htmlFor,
|
|
7287
7381
|
className: classnames(className, handleBasicClasses({
|
|
7288
|
-
prefix: CLASSNAME$
|
|
7382
|
+
prefix: CLASSNAME$w,
|
|
7289
7383
|
isRequired: isRequired,
|
|
7290
7384
|
theme: theme
|
|
7291
7385
|
}))
|
|
7292
7386
|
}), children);
|
|
7293
7387
|
});
|
|
7294
|
-
InputLabel.displayName = COMPONENT_NAME$
|
|
7295
|
-
InputLabel.className = CLASSNAME$
|
|
7296
|
-
InputLabel.defaultProps = DEFAULT_PROPS$
|
|
7388
|
+
InputLabel.displayName = COMPONENT_NAME$z;
|
|
7389
|
+
InputLabel.className = CLASSNAME$w;
|
|
7390
|
+
InputLabel.defaultProps = DEFAULT_PROPS$s;
|
|
7297
7391
|
|
|
7298
7392
|
var LIGHTBOX_TRANSITION_DURATION = 400;
|
|
7299
7393
|
/**
|
|
@@ -7303,12 +7397,12 @@ var LIGHTBOX_TRANSITION_DURATION = 400;
|
|
|
7303
7397
|
/**
|
|
7304
7398
|
* Component display name.
|
|
7305
7399
|
*/
|
|
7306
|
-
var COMPONENT_NAME$
|
|
7400
|
+
var COMPONENT_NAME$A = 'Lightbox';
|
|
7307
7401
|
/**
|
|
7308
7402
|
* Component default class name and class prefix.
|
|
7309
7403
|
*/
|
|
7310
7404
|
|
|
7311
|
-
var CLASSNAME$
|
|
7405
|
+
var CLASSNAME$x = getRootClassName(COMPONENT_NAME$A);
|
|
7312
7406
|
/**
|
|
7313
7407
|
* Lightbox component.
|
|
7314
7408
|
*
|
|
@@ -7374,7 +7468,7 @@ var Lightbox = forwardRef(function (props, ref) {
|
|
|
7374
7468
|
"aria-label": ariaLabel,
|
|
7375
7469
|
"aria-modal": "true",
|
|
7376
7470
|
className: classnames(className, handleBasicClasses({
|
|
7377
|
-
prefix: CLASSNAME$
|
|
7471
|
+
prefix: CLASSNAME$x,
|
|
7378
7472
|
isHidden: !isOpen,
|
|
7379
7473
|
isShown: isOpen || isVisible,
|
|
7380
7474
|
theme: theme
|
|
@@ -7383,7 +7477,7 @@ var Lightbox = forwardRef(function (props, ref) {
|
|
|
7383
7477
|
zIndex: zIndex
|
|
7384
7478
|
}
|
|
7385
7479
|
}), closeButtonProps && React.createElement(IconButton, _extends({}, closeButtonProps, {
|
|
7386
|
-
className: "".concat(CLASSNAME$
|
|
7480
|
+
className: "".concat(CLASSNAME$x, "__close"),
|
|
7387
7481
|
color: ColorPalette.light,
|
|
7388
7482
|
emphasis: Emphasis.low,
|
|
7389
7483
|
icon: mdiClose,
|
|
@@ -7395,22 +7489,22 @@ var Lightbox = forwardRef(function (props, ref) {
|
|
|
7395
7489
|
childrenRefs: clickAwayRefs
|
|
7396
7490
|
}, React.createElement("div", {
|
|
7397
7491
|
ref: childrenRef,
|
|
7398
|
-
className: "".concat(CLASSNAME$
|
|
7492
|
+
className: "".concat(CLASSNAME$x, "__wrapper"),
|
|
7399
7493
|
role: "presentation"
|
|
7400
7494
|
}, children))), document.body);
|
|
7401
7495
|
});
|
|
7402
|
-
Lightbox.displayName = COMPONENT_NAME$
|
|
7403
|
-
Lightbox.className = CLASSNAME$
|
|
7496
|
+
Lightbox.displayName = COMPONENT_NAME$A;
|
|
7497
|
+
Lightbox.className = CLASSNAME$x;
|
|
7404
7498
|
|
|
7405
7499
|
/**
|
|
7406
7500
|
* Component display name.
|
|
7407
7501
|
*/
|
|
7408
|
-
var COMPONENT_NAME$
|
|
7502
|
+
var COMPONENT_NAME$B = 'Link';
|
|
7409
7503
|
/**
|
|
7410
7504
|
* Component default class name and class prefix.
|
|
7411
7505
|
*/
|
|
7412
7506
|
|
|
7413
|
-
var CLASSNAME$
|
|
7507
|
+
var CLASSNAME$y = getRootClassName(COMPONENT_NAME$B);
|
|
7414
7508
|
|
|
7415
7509
|
var getIconSize = function getIconSize(typography) {
|
|
7416
7510
|
switch (typography) {
|
|
@@ -7469,13 +7563,13 @@ var Link = forwardRef(function (props, ref) {
|
|
|
7469
7563
|
var renderedChildren = useMemo(function () {
|
|
7470
7564
|
return React.createElement(React.Fragment, null, leftIcon && !isEmpty(leftIcon) && React.createElement(Icon, {
|
|
7471
7565
|
icon: leftIcon,
|
|
7472
|
-
className: "".concat(CLASSNAME$
|
|
7566
|
+
className: "".concat(CLASSNAME$y, "__left-icon"),
|
|
7473
7567
|
size: getIconSize(typography)
|
|
7474
7568
|
}), children && React.createElement("span", {
|
|
7475
|
-
className: classnames("".concat(CLASSNAME$
|
|
7569
|
+
className: classnames("".concat(CLASSNAME$y, "__content"), _defineProperty({}, "lumx-typography-".concat(typography), typography))
|
|
7476
7570
|
}, children), rightIcon && !isEmpty(rightIcon) && React.createElement(Icon, {
|
|
7477
7571
|
icon: rightIcon,
|
|
7478
|
-
className: "".concat(CLASSNAME$
|
|
7572
|
+
className: "".concat(CLASSNAME$y, "__right-icon"),
|
|
7479
7573
|
size: getIconSize(typography)
|
|
7480
7574
|
}));
|
|
7481
7575
|
}, [leftIcon, typography, children, rightIcon]);
|
|
@@ -7491,7 +7585,7 @@ var Link = forwardRef(function (props, ref) {
|
|
|
7491
7585
|
ref: ref,
|
|
7492
7586
|
disabled: isDisabled,
|
|
7493
7587
|
className: classnames(className, handleBasicClasses({
|
|
7494
|
-
prefix: CLASSNAME$
|
|
7588
|
+
prefix: CLASSNAME$y,
|
|
7495
7589
|
color: color,
|
|
7496
7590
|
colorVariant: colorVariant
|
|
7497
7591
|
}))
|
|
@@ -7504,15 +7598,15 @@ var Link = forwardRef(function (props, ref) {
|
|
|
7504
7598
|
href: href,
|
|
7505
7599
|
target: target,
|
|
7506
7600
|
className: classnames(className, handleBasicClasses({
|
|
7507
|
-
prefix: CLASSNAME$
|
|
7601
|
+
prefix: CLASSNAME$y,
|
|
7508
7602
|
color: color,
|
|
7509
7603
|
colorVariant: colorVariant
|
|
7510
7604
|
})),
|
|
7511
7605
|
ref: ref
|
|
7512
7606
|
}), renderedChildren);
|
|
7513
7607
|
});
|
|
7514
|
-
Link.displayName = COMPONENT_NAME$
|
|
7515
|
-
Link.className = CLASSNAME$
|
|
7608
|
+
Link.displayName = COMPONENT_NAME$B;
|
|
7609
|
+
Link.className = CLASSNAME$y;
|
|
7516
7610
|
|
|
7517
7611
|
/**
|
|
7518
7612
|
* Defines the props of the component.
|
|
@@ -7521,17 +7615,17 @@ Link.className = CLASSNAME$x;
|
|
|
7521
7615
|
/**
|
|
7522
7616
|
* Component display name.
|
|
7523
7617
|
*/
|
|
7524
|
-
var COMPONENT_NAME$
|
|
7618
|
+
var COMPONENT_NAME$C = 'LinkPreview';
|
|
7525
7619
|
/**
|
|
7526
7620
|
* Component default class name and class prefix.
|
|
7527
7621
|
*/
|
|
7528
7622
|
|
|
7529
|
-
var CLASSNAME$
|
|
7623
|
+
var CLASSNAME$z = getRootClassName(COMPONENT_NAME$C);
|
|
7530
7624
|
/**
|
|
7531
7625
|
* Component default props.
|
|
7532
7626
|
*/
|
|
7533
7627
|
|
|
7534
|
-
var DEFAULT_PROPS$
|
|
7628
|
+
var DEFAULT_PROPS$t = {
|
|
7535
7629
|
size: Size.regular,
|
|
7536
7630
|
theme: Theme.light,
|
|
7537
7631
|
titleHeading: 'h2'
|
|
@@ -7563,14 +7657,14 @@ var LinkPreview = forwardRef(function (props, ref) {
|
|
|
7563
7657
|
ref: ref
|
|
7564
7658
|
}, forwardedProps, {
|
|
7565
7659
|
className: classnames(className, handleBasicClasses({
|
|
7566
|
-
prefix: CLASSNAME$
|
|
7660
|
+
prefix: CLASSNAME$z,
|
|
7567
7661
|
size: size === Size.big && thumbnailProps ? Size.big : Size.regular,
|
|
7568
7662
|
theme: theme
|
|
7569
7663
|
}))
|
|
7570
7664
|
}), React.createElement("div", {
|
|
7571
|
-
className: "".concat(CLASSNAME$
|
|
7665
|
+
className: "".concat(CLASSNAME$z, "__wrapper")
|
|
7572
7666
|
}, thumbnailProps && React.createElement("div", {
|
|
7573
|
-
className: "".concat(CLASSNAME$
|
|
7667
|
+
className: "".concat(CLASSNAME$z, "__thumbnail")
|
|
7574
7668
|
}, React.createElement(Thumbnail, _extends({}, thumbnailProps, {
|
|
7575
7669
|
linkAs: linkAs,
|
|
7576
7670
|
linkProps: _objectSpread2({}, linkProps, {
|
|
@@ -7582,9 +7676,9 @@ var LinkPreview = forwardRef(function (props, ref) {
|
|
|
7582
7676
|
aspectRatio: AspectRatio.free,
|
|
7583
7677
|
fillHeight: true
|
|
7584
7678
|
}))), React.createElement("div", {
|
|
7585
|
-
className: "".concat(CLASSNAME$
|
|
7679
|
+
className: "".concat(CLASSNAME$z, "__container")
|
|
7586
7680
|
}, title && React.createElement(TitleHeading, {
|
|
7587
|
-
className: "".concat(CLASSNAME$
|
|
7681
|
+
className: "".concat(CLASSNAME$z, "__title")
|
|
7588
7682
|
}, React.createElement(Link, _extends({}, linkProps, {
|
|
7589
7683
|
linkAs: linkAs,
|
|
7590
7684
|
target: "_blank",
|
|
@@ -7592,12 +7686,12 @@ var LinkPreview = forwardRef(function (props, ref) {
|
|
|
7592
7686
|
color: theme === Theme.light ? ColorPalette.dark : ColorPalette.light,
|
|
7593
7687
|
colorVariant: ColorVariant.N
|
|
7594
7688
|
}), title)), description && React.createElement("p", {
|
|
7595
|
-
className: "".concat(CLASSNAME$
|
|
7689
|
+
className: "".concat(CLASSNAME$z, "__description")
|
|
7596
7690
|
}, description), React.createElement("div", {
|
|
7597
|
-
className: "".concat(CLASSNAME$
|
|
7691
|
+
className: "".concat(CLASSNAME$z, "__link")
|
|
7598
7692
|
}, React.createElement(Link, _extends({}, linkProps, {
|
|
7599
7693
|
linkAs: linkAs,
|
|
7600
|
-
className: classnames("".concat(CLASSNAME$
|
|
7694
|
+
className: classnames("".concat(CLASSNAME$z, "__link"), linkProps === null || linkProps === void 0 ? void 0 : linkProps.className),
|
|
7601
7695
|
target: "_blank",
|
|
7602
7696
|
href: link,
|
|
7603
7697
|
color: theme === Theme.light ? ColorPalette.primary : ColorPalette.light,
|
|
@@ -7606,9 +7700,9 @@ var LinkPreview = forwardRef(function (props, ref) {
|
|
|
7606
7700
|
tabIndex: title ? '-1' : undefined
|
|
7607
7701
|
}), link)))));
|
|
7608
7702
|
});
|
|
7609
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
7610
|
-
LinkPreview.className = CLASSNAME$
|
|
7611
|
-
LinkPreview.defaultProps = DEFAULT_PROPS$
|
|
7703
|
+
LinkPreview.displayName = COMPONENT_NAME$C;
|
|
7704
|
+
LinkPreview.className = CLASSNAME$z;
|
|
7705
|
+
LinkPreview.defaultProps = DEFAULT_PROPS$t;
|
|
7612
7706
|
|
|
7613
7707
|
/**
|
|
7614
7708
|
* Defines the props of the component.
|
|
@@ -7617,12 +7711,12 @@ LinkPreview.defaultProps = DEFAULT_PROPS$s;
|
|
|
7617
7711
|
/**
|
|
7618
7712
|
* Component display name.
|
|
7619
7713
|
*/
|
|
7620
|
-
var COMPONENT_NAME$
|
|
7714
|
+
var COMPONENT_NAME$D = 'ListDivider';
|
|
7621
7715
|
/**
|
|
7622
7716
|
* Component default class name and class prefix.
|
|
7623
7717
|
*/
|
|
7624
7718
|
|
|
7625
|
-
var CLASSNAME$
|
|
7719
|
+
var CLASSNAME$A = getRootClassName(COMPONENT_NAME$D);
|
|
7626
7720
|
/**
|
|
7627
7721
|
* ListDivider component.
|
|
7628
7722
|
*
|
|
@@ -7639,12 +7733,12 @@ var ListDivider = forwardRef(function (props, ref) {
|
|
|
7639
7733
|
ref: ref
|
|
7640
7734
|
}, forwardedProps, {
|
|
7641
7735
|
className: classnames(className, handleBasicClasses({
|
|
7642
|
-
prefix: CLASSNAME$
|
|
7736
|
+
prefix: CLASSNAME$A
|
|
7643
7737
|
}))
|
|
7644
7738
|
}));
|
|
7645
7739
|
});
|
|
7646
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
7647
|
-
ListDivider.className = CLASSNAME$
|
|
7740
|
+
ListDivider.displayName = COMPONENT_NAME$D;
|
|
7741
|
+
ListDivider.className = CLASSNAME$A;
|
|
7648
7742
|
|
|
7649
7743
|
/**
|
|
7650
7744
|
* Defines the props of the component.
|
|
@@ -7653,12 +7747,12 @@ ListDivider.className = CLASSNAME$z;
|
|
|
7653
7747
|
/**
|
|
7654
7748
|
* Component display name.
|
|
7655
7749
|
*/
|
|
7656
|
-
var COMPONENT_NAME$
|
|
7750
|
+
var COMPONENT_NAME$E = 'ListSubheader';
|
|
7657
7751
|
/**
|
|
7658
7752
|
* Component default class name and class prefix.
|
|
7659
7753
|
*/
|
|
7660
7754
|
|
|
7661
|
-
var CLASSNAME$
|
|
7755
|
+
var CLASSNAME$B = getRootClassName(COMPONENT_NAME$E);
|
|
7662
7756
|
/**
|
|
7663
7757
|
* ListSubheader component.
|
|
7664
7758
|
*
|
|
@@ -7676,12 +7770,12 @@ var ListSubheader = forwardRef(function (props, ref) {
|
|
|
7676
7770
|
ref: ref
|
|
7677
7771
|
}, forwardedProps, {
|
|
7678
7772
|
className: classnames(className, handleBasicClasses({
|
|
7679
|
-
prefix: CLASSNAME$
|
|
7773
|
+
prefix: CLASSNAME$B
|
|
7680
7774
|
}))
|
|
7681
7775
|
}), children);
|
|
7682
7776
|
});
|
|
7683
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
7684
|
-
ListSubheader.className = CLASSNAME$
|
|
7777
|
+
ListSubheader.displayName = COMPONENT_NAME$E;
|
|
7778
|
+
ListSubheader.className = CLASSNAME$B;
|
|
7685
7779
|
|
|
7686
7780
|
var _CONFIG$1;
|
|
7687
7781
|
/**
|
|
@@ -7691,12 +7785,12 @@ var _CONFIG$1;
|
|
|
7691
7785
|
/**
|
|
7692
7786
|
* Component display name.
|
|
7693
7787
|
*/
|
|
7694
|
-
var COMPONENT_NAME$
|
|
7788
|
+
var COMPONENT_NAME$F = 'Message';
|
|
7695
7789
|
/**
|
|
7696
7790
|
* Component default class name and class prefix.
|
|
7697
7791
|
*/
|
|
7698
7792
|
|
|
7699
|
-
var CLASSNAME$
|
|
7793
|
+
var CLASSNAME$C = getRootClassName(COMPONENT_NAME$F);
|
|
7700
7794
|
/**
|
|
7701
7795
|
* Associative map from message kind to color and icon.
|
|
7702
7796
|
*/
|
|
@@ -7739,19 +7833,19 @@ var Message = forwardRef(function (props, ref) {
|
|
|
7739
7833
|
className: classnames(className, handleBasicClasses({
|
|
7740
7834
|
color: color,
|
|
7741
7835
|
hasBackground: hasBackground,
|
|
7742
|
-
prefix: CLASSNAME$
|
|
7836
|
+
prefix: CLASSNAME$C
|
|
7743
7837
|
}))
|
|
7744
7838
|
}, forwardedProps), (customIcon || icon) && React.createElement(Icon, {
|
|
7745
|
-
className: "".concat(CLASSNAME$
|
|
7839
|
+
className: "".concat(CLASSNAME$C, "__icon"),
|
|
7746
7840
|
icon: customIcon || icon,
|
|
7747
7841
|
size: Size.xs,
|
|
7748
7842
|
color: color
|
|
7749
7843
|
}), React.createElement("div", {
|
|
7750
|
-
className: "".concat(CLASSNAME$
|
|
7844
|
+
className: "".concat(CLASSNAME$C, "__text")
|
|
7751
7845
|
}, children));
|
|
7752
7846
|
});
|
|
7753
|
-
Message.displayName = COMPONENT_NAME$
|
|
7754
|
-
Message.className = CLASSNAME$
|
|
7847
|
+
Message.displayName = COMPONENT_NAME$F;
|
|
7848
|
+
Message.className = CLASSNAME$C;
|
|
7755
7849
|
|
|
7756
7850
|
/**
|
|
7757
7851
|
* Defines the props of the component.
|
|
@@ -7760,17 +7854,17 @@ Message.className = CLASSNAME$B;
|
|
|
7760
7854
|
/**
|
|
7761
7855
|
* Component display name.
|
|
7762
7856
|
*/
|
|
7763
|
-
var COMPONENT_NAME$
|
|
7857
|
+
var COMPONENT_NAME$G = 'Mosaic';
|
|
7764
7858
|
/**
|
|
7765
7859
|
* Component default class name and class prefix.
|
|
7766
7860
|
*/
|
|
7767
7861
|
|
|
7768
|
-
var CLASSNAME$
|
|
7862
|
+
var CLASSNAME$D = getRootClassName(COMPONENT_NAME$G);
|
|
7769
7863
|
/**
|
|
7770
7864
|
* Component default props.
|
|
7771
7865
|
*/
|
|
7772
7866
|
|
|
7773
|
-
var DEFAULT_PROPS$
|
|
7867
|
+
var DEFAULT_PROPS$u = {
|
|
7774
7868
|
theme: Theme.light
|
|
7775
7869
|
};
|
|
7776
7870
|
/**
|
|
@@ -7803,11 +7897,11 @@ var Mosaic = forwardRef(function (props, ref) {
|
|
|
7803
7897
|
ref: ref
|
|
7804
7898
|
}, forwardedProps, {
|
|
7805
7899
|
className: classnames(className, handleBasicClasses({
|
|
7806
|
-
prefix: CLASSNAME$
|
|
7900
|
+
prefix: CLASSNAME$D,
|
|
7807
7901
|
theme: theme
|
|
7808
|
-
}), (_classNames = {}, _defineProperty(_classNames, "".concat(CLASSNAME$
|
|
7902
|
+
}), (_classNames = {}, _defineProperty(_classNames, "".concat(CLASSNAME$D, "--has-1-thumbnail"), (thumbnails === null || thumbnails === void 0 ? void 0 : thumbnails.length) === 1), _defineProperty(_classNames, "".concat(CLASSNAME$D, "--has-2-thumbnails"), (thumbnails === null || thumbnails === void 0 ? void 0 : thumbnails.length) === 2), _defineProperty(_classNames, "".concat(CLASSNAME$D, "--has-3-thumbnails"), (thumbnails === null || thumbnails === void 0 ? void 0 : thumbnails.length) === 3), _defineProperty(_classNames, "".concat(CLASSNAME$D, "--has-4-thumbnails"), (thumbnails === null || thumbnails === void 0 ? void 0 : thumbnails.length) >= 4), _classNames))
|
|
7809
7903
|
}), React.createElement("div", {
|
|
7810
|
-
className: "".concat(CLASSNAME$
|
|
7904
|
+
className: "".concat(CLASSNAME$D, "__wrapper")
|
|
7811
7905
|
}, take(thumbnails, 4).map(function (thumbnail, index) {
|
|
7812
7906
|
var image = thumbnail.image,
|
|
7813
7907
|
onClick = thumbnail.onClick,
|
|
@@ -7816,7 +7910,7 @@ var Mosaic = forwardRef(function (props, ref) {
|
|
|
7816
7910
|
|
|
7817
7911
|
return React.createElement("div", {
|
|
7818
7912
|
key: index,
|
|
7819
|
-
className: "".concat(CLASSNAME$
|
|
7913
|
+
className: "".concat(CLASSNAME$D, "__thumbnail")
|
|
7820
7914
|
}, React.createElement(Thumbnail, _extends({}, thumbnailProps, {
|
|
7821
7915
|
align: align || Alignment.left,
|
|
7822
7916
|
image: image,
|
|
@@ -7825,13 +7919,13 @@ var Mosaic = forwardRef(function (props, ref) {
|
|
|
7825
7919
|
fillHeight: true,
|
|
7826
7920
|
onClick: (handleImageClick === null || handleImageClick === void 0 ? void 0 : handleImageClick(index, onClick)) || onClick
|
|
7827
7921
|
})), thumbnails.length > 4 && index === 3 && React.createElement("div", {
|
|
7828
|
-
className: "".concat(CLASSNAME$
|
|
7922
|
+
className: "".concat(CLASSNAME$D, "__overlay")
|
|
7829
7923
|
}, React.createElement("span", null, "+", thumbnails.length - 4)));
|
|
7830
7924
|
})));
|
|
7831
7925
|
});
|
|
7832
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
7833
|
-
Mosaic.className = CLASSNAME$
|
|
7834
|
-
Mosaic.defaultProps = DEFAULT_PROPS$
|
|
7926
|
+
Mosaic.displayName = COMPONENT_NAME$G;
|
|
7927
|
+
Mosaic.className = CLASSNAME$D;
|
|
7928
|
+
Mosaic.defaultProps = DEFAULT_PROPS$u;
|
|
7835
7929
|
|
|
7836
7930
|
/**
|
|
7837
7931
|
* Notification icon and colors according to their type.
|
|
@@ -7863,17 +7957,17 @@ var NOTIFICATION_CONFIGURATION = {
|
|
|
7863
7957
|
/**
|
|
7864
7958
|
* Component display name.
|
|
7865
7959
|
*/
|
|
7866
|
-
var COMPONENT_NAME$
|
|
7960
|
+
var COMPONENT_NAME$H = 'Notification';
|
|
7867
7961
|
/**
|
|
7868
7962
|
* Component default class name and class prefix.
|
|
7869
7963
|
*/
|
|
7870
7964
|
|
|
7871
|
-
var CLASSNAME$
|
|
7965
|
+
var CLASSNAME$E = getRootClassName(COMPONENT_NAME$H);
|
|
7872
7966
|
/**
|
|
7873
7967
|
* Component default props.
|
|
7874
7968
|
*/
|
|
7875
7969
|
|
|
7876
|
-
var DEFAULT_PROPS$
|
|
7970
|
+
var DEFAULT_PROPS$v = {
|
|
7877
7971
|
theme: Theme.light,
|
|
7878
7972
|
zIndex: 9999
|
|
7879
7973
|
};
|
|
@@ -7928,30 +8022,30 @@ var Notification = forwardRef(function (props, ref) {
|
|
|
7928
8022
|
color: color,
|
|
7929
8023
|
hasAction: hasAction,
|
|
7930
8024
|
isHidden: !isOpen,
|
|
7931
|
-
prefix: CLASSNAME$
|
|
8025
|
+
prefix: CLASSNAME$E
|
|
7932
8026
|
})),
|
|
7933
8027
|
onClick: onClick,
|
|
7934
8028
|
style: {
|
|
7935
8029
|
zIndex: zIndex
|
|
7936
8030
|
}
|
|
7937
8031
|
}), React.createElement("div", {
|
|
7938
|
-
className: "".concat(CLASSNAME$
|
|
8032
|
+
className: "".concat(CLASSNAME$E, "__icon")
|
|
7939
8033
|
}, React.createElement(Icon, {
|
|
7940
8034
|
icon: icon,
|
|
7941
8035
|
size: Size.s
|
|
7942
8036
|
})), React.createElement("div", {
|
|
7943
|
-
className: "".concat(CLASSNAME$
|
|
8037
|
+
className: "".concat(CLASSNAME$E, "__content")
|
|
7944
8038
|
}, content), hasAction && React.createElement("div", {
|
|
7945
|
-
className: "".concat(CLASSNAME$
|
|
8039
|
+
className: "".concat(CLASSNAME$E, "__action")
|
|
7946
8040
|
}, React.createElement(Button, {
|
|
7947
8041
|
emphasis: Emphasis.medium,
|
|
7948
8042
|
theme: theme,
|
|
7949
8043
|
onClick: handleCallback
|
|
7950
8044
|
}, React.createElement("span", null, actionLabel)))), document.body) : null;
|
|
7951
8045
|
});
|
|
7952
|
-
Notification.displayName = COMPONENT_NAME$
|
|
7953
|
-
Notification.className = CLASSNAME$
|
|
7954
|
-
Notification.defaultProps = DEFAULT_PROPS$
|
|
8046
|
+
Notification.displayName = COMPONENT_NAME$H;
|
|
8047
|
+
Notification.className = CLASSNAME$E;
|
|
8048
|
+
Notification.defaultProps = DEFAULT_PROPS$v;
|
|
7955
8049
|
|
|
7956
8050
|
/**
|
|
7957
8051
|
* Defines the props of the component.
|
|
@@ -7960,17 +8054,17 @@ Notification.defaultProps = DEFAULT_PROPS$u;
|
|
|
7960
8054
|
/**
|
|
7961
8055
|
* Component display name.
|
|
7962
8056
|
*/
|
|
7963
|
-
var COMPONENT_NAME$
|
|
8057
|
+
var COMPONENT_NAME$I = 'PostBlock';
|
|
7964
8058
|
/**
|
|
7965
8059
|
* Component default class name and class prefix.
|
|
7966
8060
|
*/
|
|
7967
8061
|
|
|
7968
|
-
var CLASSNAME$
|
|
8062
|
+
var CLASSNAME$F = getRootClassName(COMPONENT_NAME$I);
|
|
7969
8063
|
/**
|
|
7970
8064
|
* Component default props.
|
|
7971
8065
|
*/
|
|
7972
8066
|
|
|
7973
|
-
var DEFAULT_PROPS$
|
|
8067
|
+
var DEFAULT_PROPS$w = {
|
|
7974
8068
|
orientation: Orientation.horizontal,
|
|
7975
8069
|
theme: Theme.light
|
|
7976
8070
|
};
|
|
@@ -8000,44 +8094,44 @@ var PostBlock = forwardRef(function (props, ref) {
|
|
|
8000
8094
|
return React.createElement("div", _extends({
|
|
8001
8095
|
ref: ref,
|
|
8002
8096
|
className: classnames(className, handleBasicClasses({
|
|
8003
|
-
prefix: CLASSNAME$
|
|
8097
|
+
prefix: CLASSNAME$F,
|
|
8004
8098
|
orientation: orientation,
|
|
8005
8099
|
theme: theme
|
|
8006
8100
|
}))
|
|
8007
8101
|
}, forwardedProps), thumbnailProps && React.createElement("div", {
|
|
8008
|
-
className: "".concat(CLASSNAME$
|
|
8102
|
+
className: "".concat(CLASSNAME$F, "__thumbnail")
|
|
8009
8103
|
}, React.createElement(Thumbnail, _extends({}, thumbnailProps, {
|
|
8010
8104
|
theme: theme,
|
|
8011
8105
|
variant: ThumbnailVariant.rounded
|
|
8012
8106
|
}))), React.createElement("div", {
|
|
8013
|
-
className: "".concat(CLASSNAME$
|
|
8107
|
+
className: "".concat(CLASSNAME$F, "__wrapper")
|
|
8014
8108
|
}, author && React.createElement("div", {
|
|
8015
|
-
className: "".concat(CLASSNAME$
|
|
8109
|
+
className: "".concat(CLASSNAME$F, "__author")
|
|
8016
8110
|
}, author), title && React.createElement("button", {
|
|
8017
8111
|
type: "button",
|
|
8018
|
-
className: "".concat(CLASSNAME$
|
|
8112
|
+
className: "".concat(CLASSNAME$F, "__title"),
|
|
8019
8113
|
onClick: onClick
|
|
8020
8114
|
}, title), meta && React.createElement("span", {
|
|
8021
|
-
className: "".concat(CLASSNAME$
|
|
8115
|
+
className: "".concat(CLASSNAME$F, "__meta")
|
|
8022
8116
|
}, meta), isObject(text) && text.__html ? // eslint-disable-next-line react/no-danger
|
|
8023
8117
|
React.createElement("p", {
|
|
8024
8118
|
dangerouslySetInnerHTML: text,
|
|
8025
|
-
className: "".concat(CLASSNAME$
|
|
8119
|
+
className: "".concat(CLASSNAME$F, "__text")
|
|
8026
8120
|
}) : React.createElement("p", {
|
|
8027
|
-
className: "".concat(CLASSNAME$
|
|
8121
|
+
className: "".concat(CLASSNAME$F, "__text")
|
|
8028
8122
|
}, text), attachments && React.createElement("div", {
|
|
8029
|
-
className: "".concat(CLASSNAME$
|
|
8123
|
+
className: "".concat(CLASSNAME$F, "__attachments")
|
|
8030
8124
|
}, attachments), (tags || actions) && React.createElement("div", {
|
|
8031
|
-
className: "".concat(CLASSNAME$
|
|
8125
|
+
className: "".concat(CLASSNAME$F, "__toolbar")
|
|
8032
8126
|
}, tags && React.createElement("div", {
|
|
8033
|
-
className: "".concat(CLASSNAME$
|
|
8127
|
+
className: "".concat(CLASSNAME$F, "__tags")
|
|
8034
8128
|
}, tags), actions && React.createElement("div", {
|
|
8035
|
-
className: "".concat(CLASSNAME$
|
|
8129
|
+
className: "".concat(CLASSNAME$F, "__actions")
|
|
8036
8130
|
}, actions))));
|
|
8037
8131
|
});
|
|
8038
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
8039
|
-
PostBlock.className = CLASSNAME$
|
|
8040
|
-
PostBlock.defaultProps = DEFAULT_PROPS$
|
|
8132
|
+
PostBlock.displayName = COMPONENT_NAME$I;
|
|
8133
|
+
PostBlock.className = CLASSNAME$F;
|
|
8134
|
+
PostBlock.defaultProps = DEFAULT_PROPS$w;
|
|
8041
8135
|
|
|
8042
8136
|
/**
|
|
8043
8137
|
* Progress variants.
|
|
@@ -8051,17 +8145,17 @@ var ProgressVariant = {
|
|
|
8051
8145
|
/**
|
|
8052
8146
|
* Component display name.
|
|
8053
8147
|
*/
|
|
8054
|
-
var COMPONENT_NAME$
|
|
8148
|
+
var COMPONENT_NAME$J = 'Progress';
|
|
8055
8149
|
/**
|
|
8056
8150
|
* Component default class name and class prefix.
|
|
8057
8151
|
*/
|
|
8058
8152
|
|
|
8059
|
-
var CLASSNAME$
|
|
8153
|
+
var CLASSNAME$G = getRootClassName(COMPONENT_NAME$J);
|
|
8060
8154
|
/**
|
|
8061
8155
|
* Component default props.
|
|
8062
8156
|
*/
|
|
8063
8157
|
|
|
8064
|
-
var DEFAULT_PROPS$
|
|
8158
|
+
var DEFAULT_PROPS$x = {
|
|
8065
8159
|
theme: Theme.light,
|
|
8066
8160
|
variant: ProgressVariant.circular
|
|
8067
8161
|
};
|
|
@@ -8083,12 +8177,12 @@ var Progress = forwardRef(function (props, ref) {
|
|
|
8083
8177
|
ref: ref
|
|
8084
8178
|
}, forwardedProps, {
|
|
8085
8179
|
className: classnames(className, handleBasicClasses({
|
|
8086
|
-
prefix: CLASSNAME$
|
|
8180
|
+
prefix: CLASSNAME$G,
|
|
8087
8181
|
theme: theme,
|
|
8088
8182
|
variant: variant
|
|
8089
8183
|
}))
|
|
8090
8184
|
}), React.createElement("div", {
|
|
8091
|
-
className: classnames("".concat(CLASSNAME$
|
|
8185
|
+
className: classnames("".concat(CLASSNAME$G, "-").concat(variant))
|
|
8092
8186
|
}, variant === ProgressVariant.circular && React.createElement(React.Fragment, null, React.createElement("div", {
|
|
8093
8187
|
className: "lumx-progress-circular__double-bounce1"
|
|
8094
8188
|
}), React.createElement("div", {
|
|
@@ -8109,9 +8203,9 @@ var Progress = forwardRef(function (props, ref) {
|
|
|
8109
8203
|
className: "lumx-progress-linear__line2"
|
|
8110
8204
|
}))));
|
|
8111
8205
|
});
|
|
8112
|
-
Progress.displayName = COMPONENT_NAME$
|
|
8113
|
-
Progress.className = CLASSNAME$
|
|
8114
|
-
Progress.defaultProps = DEFAULT_PROPS$
|
|
8206
|
+
Progress.displayName = COMPONENT_NAME$J;
|
|
8207
|
+
Progress.className = CLASSNAME$G;
|
|
8208
|
+
Progress.defaultProps = DEFAULT_PROPS$x;
|
|
8115
8209
|
|
|
8116
8210
|
var INIT_STATE = {
|
|
8117
8211
|
isLazy: true,
|
|
@@ -8252,7 +8346,7 @@ var useTabProviderContextState = function useTabProviderContextState() {
|
|
|
8252
8346
|
return context === null || context === void 0 ? void 0 : context[0];
|
|
8253
8347
|
};
|
|
8254
8348
|
|
|
8255
|
-
var DEFAULT_PROPS$
|
|
8349
|
+
var DEFAULT_PROPS$y = {
|
|
8256
8350
|
isLazy: INIT_STATE.isLazy,
|
|
8257
8351
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
8258
8352
|
};
|
|
@@ -8301,7 +8395,7 @@ var ProgressTrackerProvider = function ProgressTrackerProvider(props) {
|
|
|
8301
8395
|
value: [state, dispatch]
|
|
8302
8396
|
}, children);
|
|
8303
8397
|
};
|
|
8304
|
-
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$
|
|
8398
|
+
ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$y;
|
|
8305
8399
|
|
|
8306
8400
|
var useRovingTabIndex = function useRovingTabIndex(_ref) {
|
|
8307
8401
|
var parentRef = _ref.parentRef,
|
|
@@ -8392,17 +8486,17 @@ var useRovingTabIndex = function useRovingTabIndex(_ref) {
|
|
|
8392
8486
|
/**
|
|
8393
8487
|
* Component display name.
|
|
8394
8488
|
*/
|
|
8395
|
-
var COMPONENT_NAME$
|
|
8489
|
+
var COMPONENT_NAME$K = 'ProgressTracker';
|
|
8396
8490
|
/**
|
|
8397
8491
|
* Component default class name and class prefix.
|
|
8398
8492
|
*/
|
|
8399
8493
|
|
|
8400
|
-
var CLASSNAME$
|
|
8494
|
+
var CLASSNAME$H = getRootClassName(COMPONENT_NAME$K);
|
|
8401
8495
|
/**
|
|
8402
8496
|
* Component default props.
|
|
8403
8497
|
*/
|
|
8404
8498
|
|
|
8405
|
-
var DEFAULT_PROPS$
|
|
8499
|
+
var DEFAULT_PROPS$z = {};
|
|
8406
8500
|
/**
|
|
8407
8501
|
* ProgressTracker component.
|
|
8408
8502
|
*
|
|
@@ -8436,20 +8530,20 @@ var ProgressTracker = forwardRef(function (props, ref) {
|
|
|
8436
8530
|
ref: mergeRefs(ref, stepListRef)
|
|
8437
8531
|
}, forwardedProps, {
|
|
8438
8532
|
className: classnames(className, handleBasicClasses({
|
|
8439
|
-
prefix: CLASSNAME$
|
|
8533
|
+
prefix: CLASSNAME$H
|
|
8440
8534
|
}))
|
|
8441
8535
|
}), React.createElement("div", {
|
|
8442
|
-
className: "".concat(CLASSNAME$
|
|
8536
|
+
className: "".concat(CLASSNAME$H, "__steps"),
|
|
8443
8537
|
role: "tablist",
|
|
8444
8538
|
"aria-label": ariaLabel
|
|
8445
8539
|
}, children), React.createElement("div", {
|
|
8446
|
-
className: "".concat(CLASSNAME$
|
|
8540
|
+
className: "".concat(CLASSNAME$H, "__background-bar"),
|
|
8447
8541
|
style: {
|
|
8448
8542
|
left: "".concat(backgroundPosition, "%"),
|
|
8449
8543
|
right: "".concat(backgroundPosition, "%")
|
|
8450
8544
|
}
|
|
8451
8545
|
}), React.createElement("div", {
|
|
8452
|
-
className: "".concat(CLASSNAME$
|
|
8546
|
+
className: "".concat(CLASSNAME$H, "__foreground-bar"),
|
|
8453
8547
|
style: {
|
|
8454
8548
|
left: "".concat(backgroundPosition, "%"),
|
|
8455
8549
|
right: "".concat(backgroundPosition, "%"),
|
|
@@ -8457,9 +8551,9 @@ var ProgressTracker = forwardRef(function (props, ref) {
|
|
|
8457
8551
|
}
|
|
8458
8552
|
}));
|
|
8459
8553
|
});
|
|
8460
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
8461
|
-
ProgressTracker.className = CLASSNAME$
|
|
8462
|
-
ProgressTracker.defaultProps = DEFAULT_PROPS$
|
|
8554
|
+
ProgressTracker.displayName = COMPONENT_NAME$K;
|
|
8555
|
+
ProgressTracker.className = CLASSNAME$H;
|
|
8556
|
+
ProgressTracker.defaultProps = DEFAULT_PROPS$z;
|
|
8463
8557
|
|
|
8464
8558
|
/**
|
|
8465
8559
|
* Defines the props of the component.
|
|
@@ -8468,17 +8562,17 @@ ProgressTracker.defaultProps = DEFAULT_PROPS$y;
|
|
|
8468
8562
|
/**
|
|
8469
8563
|
* Component display name.
|
|
8470
8564
|
*/
|
|
8471
|
-
var COMPONENT_NAME$
|
|
8565
|
+
var COMPONENT_NAME$L = 'ProgressTrackerStep';
|
|
8472
8566
|
/**
|
|
8473
8567
|
* Component default class name and class prefix.
|
|
8474
8568
|
*/
|
|
8475
8569
|
|
|
8476
|
-
var CLASSNAME$
|
|
8570
|
+
var CLASSNAME$I = getRootClassName(COMPONENT_NAME$L);
|
|
8477
8571
|
/**
|
|
8478
8572
|
* Component default props.
|
|
8479
8573
|
*/
|
|
8480
8574
|
|
|
8481
|
-
var DEFAULT_PROPS$
|
|
8575
|
+
var DEFAULT_PROPS$A = {};
|
|
8482
8576
|
/**
|
|
8483
8577
|
* ProgressTrackerStep component.
|
|
8484
8578
|
*
|
|
@@ -8550,7 +8644,7 @@ var ProgressTrackerStep = forwardRef(function (props, ref) {
|
|
|
8550
8644
|
type: "button",
|
|
8551
8645
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
8552
8646
|
className: classnames(className, handleBasicClasses({
|
|
8553
|
-
prefix: CLASSNAME$
|
|
8647
|
+
prefix: CLASSNAME$I,
|
|
8554
8648
|
hasError: hasError,
|
|
8555
8649
|
isActive: isActive,
|
|
8556
8650
|
isClickable: state && !isDisabled,
|
|
@@ -8565,20 +8659,20 @@ var ProgressTrackerStep = forwardRef(function (props, ref) {
|
|
|
8565
8659
|
"aria-selected": isActive,
|
|
8566
8660
|
"aria-controls": state === null || state === void 0 ? void 0 : state.tabPanelId
|
|
8567
8661
|
}), React.createElement(Icon, {
|
|
8568
|
-
className: "".concat(CLASSNAME$
|
|
8662
|
+
className: "".concat(CLASSNAME$I, "__state"),
|
|
8569
8663
|
icon: getIcon(),
|
|
8570
8664
|
size: Size.s
|
|
8571
8665
|
}), React.createElement(InputLabel, {
|
|
8572
8666
|
htmlFor: (state === null || state === void 0 ? void 0 : state.tabId) || '',
|
|
8573
|
-
className: "".concat(CLASSNAME$
|
|
8667
|
+
className: "".concat(CLASSNAME$I, "__label")
|
|
8574
8668
|
}, label), helper && React.createElement(InputHelper, {
|
|
8575
8669
|
kind: hasError ? Kind.error : Kind.info,
|
|
8576
|
-
className: "".concat(CLASSNAME$
|
|
8670
|
+
className: "".concat(CLASSNAME$I, "__helper")
|
|
8577
8671
|
}, helper));
|
|
8578
8672
|
});
|
|
8579
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
8580
|
-
ProgressTrackerStep.className = CLASSNAME$
|
|
8581
|
-
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$
|
|
8673
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$L;
|
|
8674
|
+
ProgressTrackerStep.className = CLASSNAME$I;
|
|
8675
|
+
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$A;
|
|
8582
8676
|
|
|
8583
8677
|
/**
|
|
8584
8678
|
* Defines the props of the component.
|
|
@@ -8587,17 +8681,17 @@ ProgressTrackerStep.defaultProps = DEFAULT_PROPS$z;
|
|
|
8587
8681
|
/**
|
|
8588
8682
|
* Component display name.
|
|
8589
8683
|
*/
|
|
8590
|
-
var COMPONENT_NAME$
|
|
8684
|
+
var COMPONENT_NAME$M = 'ProgressTrackerStepPanel';
|
|
8591
8685
|
/**
|
|
8592
8686
|
* Component default class name and class prefix.
|
|
8593
8687
|
*/
|
|
8594
8688
|
|
|
8595
|
-
var CLASSNAME$
|
|
8689
|
+
var CLASSNAME$J = "".concat(CSS_PREFIX, "-step-panel");
|
|
8596
8690
|
/**
|
|
8597
8691
|
* Component default props.
|
|
8598
8692
|
*/
|
|
8599
8693
|
|
|
8600
|
-
var DEFAULT_PROPS$
|
|
8694
|
+
var DEFAULT_PROPS$B = {};
|
|
8601
8695
|
/**
|
|
8602
8696
|
* ProgressTrackerStepPanel component.
|
|
8603
8697
|
*
|
|
@@ -8622,7 +8716,7 @@ var ProgressTrackerStepPanel = forwardRef(function (props, ref) {
|
|
|
8622
8716
|
}, forwardedProps, {
|
|
8623
8717
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
8624
8718
|
className: classnames(className, handleBasicClasses({
|
|
8625
|
-
prefix: CLASSNAME$
|
|
8719
|
+
prefix: CLASSNAME$J,
|
|
8626
8720
|
isActive: isActive
|
|
8627
8721
|
})),
|
|
8628
8722
|
role: "tabpanel",
|
|
@@ -8630,9 +8724,9 @@ var ProgressTrackerStepPanel = forwardRef(function (props, ref) {
|
|
|
8630
8724
|
"aria-labelledby": state === null || state === void 0 ? void 0 : state.tabId
|
|
8631
8725
|
}), (!(state === null || state === void 0 ? void 0 : state.isLazy) || isActive) && children);
|
|
8632
8726
|
});
|
|
8633
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
8634
|
-
ProgressTrackerStepPanel.className = CLASSNAME$
|
|
8635
|
-
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$
|
|
8727
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$M;
|
|
8728
|
+
ProgressTrackerStepPanel.className = CLASSNAME$J;
|
|
8729
|
+
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$B;
|
|
8636
8730
|
|
|
8637
8731
|
/**
|
|
8638
8732
|
* Defines the props of the component.
|
|
@@ -8641,17 +8735,17 @@ ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$A;
|
|
|
8641
8735
|
/**
|
|
8642
8736
|
* Component display name.
|
|
8643
8737
|
*/
|
|
8644
|
-
var COMPONENT_NAME$
|
|
8738
|
+
var COMPONENT_NAME$N = 'RadioButton';
|
|
8645
8739
|
/**
|
|
8646
8740
|
* Component default class name and class prefix.
|
|
8647
8741
|
*/
|
|
8648
8742
|
|
|
8649
|
-
var CLASSNAME$
|
|
8743
|
+
var CLASSNAME$K = getRootClassName(COMPONENT_NAME$N);
|
|
8650
8744
|
/**
|
|
8651
8745
|
* Component default props.
|
|
8652
8746
|
*/
|
|
8653
8747
|
|
|
8654
|
-
var DEFAULT_PROPS$
|
|
8748
|
+
var DEFAULT_PROPS$C = {
|
|
8655
8749
|
theme: Theme.light
|
|
8656
8750
|
};
|
|
8657
8751
|
/**
|
|
@@ -8681,7 +8775,7 @@ var RadioButton = forwardRef(function (props, ref) {
|
|
|
8681
8775
|
forwardedProps = _objectWithoutProperties(props, ["checked", "className", "disabled", "helper", "id", "inputRef", "isChecked", "isDisabled", "label", "name", "onChange", "theme", "value"]);
|
|
8682
8776
|
|
|
8683
8777
|
var radioButtonId = useMemo(function () {
|
|
8684
|
-
return id || "".concat(CLASSNAME$
|
|
8778
|
+
return id || "".concat(CLASSNAME$K.toLowerCase(), "-").concat(uid());
|
|
8685
8779
|
}, [id]);
|
|
8686
8780
|
|
|
8687
8781
|
var handleChange = function handleChange(event) {
|
|
@@ -8697,14 +8791,14 @@ var RadioButton = forwardRef(function (props, ref) {
|
|
|
8697
8791
|
isChecked: isChecked,
|
|
8698
8792
|
isDisabled: isDisabled,
|
|
8699
8793
|
isUnchecked: !isChecked,
|
|
8700
|
-
prefix: CLASSNAME$
|
|
8794
|
+
prefix: CLASSNAME$K,
|
|
8701
8795
|
theme: theme
|
|
8702
8796
|
}))
|
|
8703
8797
|
}), React.createElement("div", {
|
|
8704
|
-
className: "".concat(CLASSNAME$
|
|
8798
|
+
className: "".concat(CLASSNAME$K, "__input-wrapper")
|
|
8705
8799
|
}, React.createElement("input", {
|
|
8706
8800
|
ref: inputRef,
|
|
8707
|
-
className: "".concat(CLASSNAME$
|
|
8801
|
+
className: "".concat(CLASSNAME$K, "__input-native"),
|
|
8708
8802
|
disabled: isDisabled,
|
|
8709
8803
|
id: radioButtonId,
|
|
8710
8804
|
tabIndex: isDisabled ? -1 : 0,
|
|
@@ -8714,25 +8808,25 @@ var RadioButton = forwardRef(function (props, ref) {
|
|
|
8714
8808
|
checked: isChecked,
|
|
8715
8809
|
onChange: handleChange
|
|
8716
8810
|
}), React.createElement("div", {
|
|
8717
|
-
className: "".concat(CLASSNAME$
|
|
8811
|
+
className: "".concat(CLASSNAME$K, "__input-placeholder")
|
|
8718
8812
|
}, React.createElement("div", {
|
|
8719
|
-
className: "".concat(CLASSNAME$
|
|
8813
|
+
className: "".concat(CLASSNAME$K, "__input-background")
|
|
8720
8814
|
}), React.createElement("div", {
|
|
8721
|
-
className: "".concat(CLASSNAME$
|
|
8815
|
+
className: "".concat(CLASSNAME$K, "__input-indicator")
|
|
8722
8816
|
}))), React.createElement("div", {
|
|
8723
|
-
className: "".concat(CLASSNAME$
|
|
8817
|
+
className: "".concat(CLASSNAME$K, "__content")
|
|
8724
8818
|
}, label && React.createElement(InputLabel, {
|
|
8725
8819
|
htmlFor: radioButtonId,
|
|
8726
8820
|
theme: theme,
|
|
8727
|
-
className: "".concat(CLASSNAME$
|
|
8821
|
+
className: "".concat(CLASSNAME$K, "__label")
|
|
8728
8822
|
}, label), helper && React.createElement(InputHelper, {
|
|
8729
8823
|
theme: theme,
|
|
8730
|
-
className: "".concat(CLASSNAME$
|
|
8824
|
+
className: "".concat(CLASSNAME$K, "__helper")
|
|
8731
8825
|
}, helper)));
|
|
8732
8826
|
});
|
|
8733
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
8734
|
-
RadioButton.className = CLASSNAME$
|
|
8735
|
-
RadioButton.defaultProps = DEFAULT_PROPS$
|
|
8827
|
+
RadioButton.displayName = COMPONENT_NAME$N;
|
|
8828
|
+
RadioButton.className = CLASSNAME$K;
|
|
8829
|
+
RadioButton.defaultProps = DEFAULT_PROPS$C;
|
|
8736
8830
|
|
|
8737
8831
|
/**
|
|
8738
8832
|
* Defines the props of the component.
|
|
@@ -8741,12 +8835,12 @@ RadioButton.defaultProps = DEFAULT_PROPS$B;
|
|
|
8741
8835
|
/**
|
|
8742
8836
|
* Component display name.
|
|
8743
8837
|
*/
|
|
8744
|
-
var COMPONENT_NAME$
|
|
8838
|
+
var COMPONENT_NAME$O = 'RadioGroup';
|
|
8745
8839
|
/**
|
|
8746
8840
|
* Component default class name and class prefix.
|
|
8747
8841
|
*/
|
|
8748
8842
|
|
|
8749
|
-
var CLASSNAME$
|
|
8843
|
+
var CLASSNAME$L = getRootClassName(COMPONENT_NAME$O);
|
|
8750
8844
|
/**
|
|
8751
8845
|
* RadioGroup component.
|
|
8752
8846
|
*
|
|
@@ -8764,12 +8858,12 @@ var RadioGroup = forwardRef(function (props, ref) {
|
|
|
8764
8858
|
ref: ref
|
|
8765
8859
|
}, forwardedProps, {
|
|
8766
8860
|
className: classnames(className, handleBasicClasses({
|
|
8767
|
-
prefix: CLASSNAME$
|
|
8861
|
+
prefix: CLASSNAME$L
|
|
8768
8862
|
}))
|
|
8769
8863
|
}), children);
|
|
8770
8864
|
});
|
|
8771
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
8772
|
-
RadioGroup.className = CLASSNAME$
|
|
8865
|
+
RadioGroup.displayName = COMPONENT_NAME$O;
|
|
8866
|
+
RadioGroup.className = CLASSNAME$L;
|
|
8773
8867
|
|
|
8774
8868
|
/**
|
|
8775
8869
|
* Listen on element focus to store the focus status.
|
|
@@ -8816,13 +8910,13 @@ var SelectVariant = {
|
|
|
8816
8910
|
|
|
8817
8911
|
/** The display name of the component. */
|
|
8818
8912
|
|
|
8819
|
-
var COMPONENT_NAME$
|
|
8913
|
+
var COMPONENT_NAME$P = 'Select';
|
|
8820
8914
|
/** The default class name and classes prefix for this component. */
|
|
8821
8915
|
|
|
8822
|
-
var CLASSNAME$
|
|
8916
|
+
var CLASSNAME$M = getRootClassName(COMPONENT_NAME$P);
|
|
8823
8917
|
/** The default value of props. */
|
|
8824
8918
|
|
|
8825
|
-
var DEFAULT_PROPS$
|
|
8919
|
+
var DEFAULT_PROPS$D = {
|
|
8826
8920
|
theme: Theme.light,
|
|
8827
8921
|
variant: SelectVariant.input
|
|
8828
8922
|
};
|
|
@@ -8850,10 +8944,10 @@ var WithSelectContext = function WithSelectContext(SelectElement, _ref, ref) {
|
|
|
8850
8944
|
onInputClick = _ref.onInputClick,
|
|
8851
8945
|
placeholder = _ref.placeholder,
|
|
8852
8946
|
_ref$theme = _ref.theme,
|
|
8853
|
-
theme = _ref$theme === void 0 ? DEFAULT_PROPS$
|
|
8947
|
+
theme = _ref$theme === void 0 ? DEFAULT_PROPS$D.theme : _ref$theme,
|
|
8854
8948
|
value = _ref.value,
|
|
8855
8949
|
_ref$variant = _ref.variant,
|
|
8856
|
-
variant = _ref$variant === void 0 ? DEFAULT_PROPS$
|
|
8950
|
+
variant = _ref$variant === void 0 ? DEFAULT_PROPS$D.variant : _ref$variant,
|
|
8857
8951
|
forwardedProps = _objectWithoutProperties(_ref, ["children", "className", "isMultiple", "closeOnClick", "disabled", "error", "hasError", "helper", "id", "isDisabled", "isEmpty", "isOpen", "isRequired", "isValid", "label", "onClear", "onDropdownClose", "onInfiniteScroll", "onInputClick", "placeholder", "theme", "value", "variant"]);
|
|
8858
8952
|
|
|
8859
8953
|
var selectId = useMemo(function () {
|
|
@@ -8891,7 +8985,7 @@ var WithSelectContext = function WithSelectContext(SelectElement, _ref, ref) {
|
|
|
8891
8985
|
isFocus: isFocus,
|
|
8892
8986
|
isOpen: isOpen,
|
|
8893
8987
|
isValid: isValid,
|
|
8894
|
-
prefix: CLASSNAME$
|
|
8988
|
+
prefix: CLASSNAME$M,
|
|
8895
8989
|
theme: theme === Theme.light ? Theme.light : Theme.dark
|
|
8896
8990
|
}))
|
|
8897
8991
|
}, React.createElement(SelectElement, _extends({}, forwardedProps, {
|
|
@@ -8921,24 +9015,24 @@ var WithSelectContext = function WithSelectContext(SelectElement, _ref, ref) {
|
|
|
8921
9015
|
onClose: onClose,
|
|
8922
9016
|
onInfiniteScroll: onInfiniteScroll
|
|
8923
9017
|
}, children), hasError && error && React.createElement(InputHelper, {
|
|
8924
|
-
className: "".concat(CLASSNAME$
|
|
9018
|
+
className: "".concat(CLASSNAME$M, "__helper"),
|
|
8925
9019
|
kind: Kind.error,
|
|
8926
9020
|
theme: theme
|
|
8927
9021
|
}, error), helper && React.createElement(InputHelper, {
|
|
8928
|
-
className: "".concat(CLASSNAME$
|
|
9022
|
+
className: "".concat(CLASSNAME$M, "__helper"),
|
|
8929
9023
|
theme: theme
|
|
8930
9024
|
}, helper));
|
|
8931
9025
|
};
|
|
8932
9026
|
|
|
8933
9027
|
/** The display name of the component. */
|
|
8934
9028
|
|
|
8935
|
-
var COMPONENT_NAME$
|
|
9029
|
+
var COMPONENT_NAME$Q = 'Select';
|
|
8936
9030
|
/** The default class name and classes prefix for this component. */
|
|
8937
9031
|
|
|
8938
|
-
var CLASSNAME$
|
|
9032
|
+
var CLASSNAME$N = getRootClassName(COMPONENT_NAME$Q);
|
|
8939
9033
|
/** The default value of props. */
|
|
8940
9034
|
|
|
8941
|
-
var DEFAULT_PROPS$
|
|
9035
|
+
var DEFAULT_PROPS$E = {
|
|
8942
9036
|
selectedValueRender: function selectedValueRender(choice) {
|
|
8943
9037
|
return choice;
|
|
8944
9038
|
}
|
|
@@ -8975,34 +9069,34 @@ var SelectField = function SelectField(_ref) {
|
|
|
8975
9069
|
forwardedProps = _objectWithoutProperties(_ref, ["anchorRef", "clearButtonProps", "handleKeyboardNav", "hasError", "hasInputClear", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedValueRender", "theme", "value", "variant"]);
|
|
8976
9070
|
|
|
8977
9071
|
return React.createElement(React.Fragment, null, variant === SelectVariant.input && React.createElement(React.Fragment, null, label && React.createElement("div", {
|
|
8978
|
-
className: "".concat(CLASSNAME$
|
|
9072
|
+
className: "".concat(CLASSNAME$N, "__header")
|
|
8979
9073
|
}, React.createElement(InputLabel, {
|
|
8980
9074
|
htmlFor: id,
|
|
8981
|
-
className: "".concat(CLASSNAME$
|
|
9075
|
+
className: "".concat(CLASSNAME$N, "__label"),
|
|
8982
9076
|
isRequired: isRequired,
|
|
8983
9077
|
theme: theme
|
|
8984
9078
|
}, label)), React.createElement("div", _extends({
|
|
8985
9079
|
ref: anchorRef,
|
|
8986
9080
|
id: id,
|
|
8987
|
-
className: "".concat(CLASSNAME$
|
|
9081
|
+
className: "".concat(CLASSNAME$N, "__wrapper"),
|
|
8988
9082
|
onClick: onInputClick,
|
|
8989
9083
|
onKeyDown: handleKeyboardNav,
|
|
8990
9084
|
tabIndex: isDisabled ? undefined : 0,
|
|
8991
9085
|
"aria-disabled": isDisabled || undefined
|
|
8992
9086
|
}, forwardedProps), icon && React.createElement(Icon, {
|
|
8993
|
-
className: "".concat(CLASSNAME$
|
|
9087
|
+
className: "".concat(CLASSNAME$N, "__input-icon"),
|
|
8994
9088
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
8995
9089
|
icon: icon,
|
|
8996
9090
|
size: Size.xs
|
|
8997
9091
|
}), React.createElement("div", {
|
|
8998
|
-
className: classnames(["".concat(CLASSNAME$
|
|
9092
|
+
className: classnames(["".concat(CLASSNAME$N, "__input-native"), isEmpty && placeholder && "".concat(CLASSNAME$N, "__input-native--placeholder")])
|
|
8999
9093
|
}, !isEmpty && React.createElement("span", null, selectedValueRender === null || selectedValueRender === void 0 ? void 0 : selectedValueRender(value)), isEmpty && placeholder && React.createElement("span", null, placeholder)), (isValid || hasError) && React.createElement("div", {
|
|
9000
|
-
className: "".concat(CLASSNAME$
|
|
9094
|
+
className: "".concat(CLASSNAME$N, "__input-validity")
|
|
9001
9095
|
}, React.createElement(Icon, {
|
|
9002
9096
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
9003
9097
|
size: Size.xxs
|
|
9004
9098
|
})), hasInputClear && clearButtonProps && React.createElement(IconButton, _extends({}, clearButtonProps, {
|
|
9005
|
-
className: "".concat(CLASSNAME$
|
|
9099
|
+
className: "".concat(CLASSNAME$N, "__input-clear"),
|
|
9006
9100
|
icon: mdiCloseCircle,
|
|
9007
9101
|
emphasis: Emphasis.low,
|
|
9008
9102
|
size: Size.s,
|
|
@@ -9010,7 +9104,7 @@ var SelectField = function SelectField(_ref) {
|
|
|
9010
9104
|
onClick: onClear,
|
|
9011
9105
|
onKeyDown: stopPropagation
|
|
9012
9106
|
})), React.createElement("div", {
|
|
9013
|
-
className: "".concat(CLASSNAME$
|
|
9107
|
+
className: "".concat(CLASSNAME$N, "__input-indicator")
|
|
9014
9108
|
}, React.createElement(Icon, {
|
|
9015
9109
|
icon: mdiMenuDown,
|
|
9016
9110
|
size: Size.s
|
|
@@ -9043,27 +9137,27 @@ var Select = forwardRef(function (props, ref) {
|
|
|
9043
9137
|
className: classnames(props.className, handleBasicClasses({
|
|
9044
9138
|
hasInputClear: hasInputClear,
|
|
9045
9139
|
hasUnique: !props.isEmpty,
|
|
9046
|
-
prefix: CLASSNAME$
|
|
9140
|
+
prefix: CLASSNAME$N
|
|
9047
9141
|
})),
|
|
9048
9142
|
hasInputClear: hasInputClear,
|
|
9049
9143
|
isEmpty: isEmpty$1
|
|
9050
9144
|
}), ref);
|
|
9051
9145
|
});
|
|
9052
|
-
Select.displayName = COMPONENT_NAME$
|
|
9053
|
-
Select.className = CLASSNAME$
|
|
9054
|
-
Select.defaultProps = DEFAULT_PROPS$
|
|
9055
|
-
Select.className = CLASSNAME$
|
|
9146
|
+
Select.displayName = COMPONENT_NAME$Q;
|
|
9147
|
+
Select.className = CLASSNAME$N;
|
|
9148
|
+
Select.defaultProps = DEFAULT_PROPS$E;
|
|
9149
|
+
Select.className = CLASSNAME$N;
|
|
9056
9150
|
|
|
9057
9151
|
/** Defines the props of the component. */
|
|
9058
9152
|
|
|
9059
9153
|
/** The display name of the component. */
|
|
9060
|
-
var COMPONENT_NAME$
|
|
9154
|
+
var COMPONENT_NAME$R = 'Select';
|
|
9061
9155
|
/** The default class name and classes prefix for this component. */
|
|
9062
9156
|
|
|
9063
|
-
var CLASSNAME$
|
|
9157
|
+
var CLASSNAME$O = getRootClassName(COMPONENT_NAME$R);
|
|
9064
9158
|
/** The default value of props. */
|
|
9065
9159
|
|
|
9066
|
-
var DEFAULT_PROPS$
|
|
9160
|
+
var DEFAULT_PROPS$F = {
|
|
9067
9161
|
selectedChipRender: function selectedChipRender(choice, index, onClear, isDisabled, theme) {
|
|
9068
9162
|
var onClick = function onClick(event) {
|
|
9069
9163
|
return onClear && onClear(event, choice);
|
|
@@ -9108,38 +9202,38 @@ var SelectMultipleField = function SelectMultipleField(_ref) {
|
|
|
9108
9202
|
forwardedProps = _objectWithoutProperties(_ref, ["anchorRef", "handleKeyboardNav", "hasError", "icon", "id", "isDisabled", "isEmpty", "isRequired", "isValid", "label", "onClear", "onInputClick", "placeholder", "selectedChipRender", "selectedValueRender", "theme", "value", "variant"]);
|
|
9109
9203
|
|
|
9110
9204
|
return React.createElement(React.Fragment, null, variant === SelectVariant.input && React.createElement(React.Fragment, null, label && React.createElement("div", {
|
|
9111
|
-
className: "".concat(CLASSNAME$
|
|
9205
|
+
className: "".concat(CLASSNAME$O, "__header")
|
|
9112
9206
|
}, React.createElement(InputLabel, {
|
|
9113
9207
|
htmlFor: id,
|
|
9114
|
-
className: "".concat(CLASSNAME$
|
|
9208
|
+
className: "".concat(CLASSNAME$O, "__label"),
|
|
9115
9209
|
isRequired: isRequired,
|
|
9116
9210
|
theme: theme
|
|
9117
9211
|
}, label)), React.createElement("div", _extends({
|
|
9118
9212
|
ref: anchorRef,
|
|
9119
9213
|
id: id,
|
|
9120
|
-
className: "".concat(CLASSNAME$
|
|
9214
|
+
className: "".concat(CLASSNAME$O, "__wrapper"),
|
|
9121
9215
|
onClick: onInputClick,
|
|
9122
9216
|
onKeyDown: handleKeyboardNav,
|
|
9123
9217
|
tabIndex: isDisabled ? undefined : 0,
|
|
9124
9218
|
"aria-disabled": isDisabled || undefined
|
|
9125
9219
|
}, forwardedProps), icon && React.createElement(Icon, {
|
|
9126
|
-
className: "".concat(CLASSNAME$
|
|
9220
|
+
className: "".concat(CLASSNAME$O, "__input-icon"),
|
|
9127
9221
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
9128
9222
|
icon: icon,
|
|
9129
9223
|
size: Size.xs
|
|
9130
9224
|
}), React.createElement("div", {
|
|
9131
|
-
className: "".concat(CLASSNAME$
|
|
9225
|
+
className: "".concat(CLASSNAME$O, "__chips")
|
|
9132
9226
|
}, !isEmpty && value.map(function (val, index) {
|
|
9133
9227
|
return selectedChipRender === null || selectedChipRender === void 0 ? void 0 : selectedChipRender(val, index, onClear, isDisabled, theme);
|
|
9134
9228
|
})), isEmpty && placeholder && React.createElement("div", {
|
|
9135
|
-
className: classnames(["".concat(CLASSNAME$
|
|
9229
|
+
className: classnames(["".concat(CLASSNAME$O, "__input-native"), "".concat(CLASSNAME$O, "__input-native--placeholder")])
|
|
9136
9230
|
}, React.createElement("span", null, placeholder)), (isValid || hasError) && React.createElement("div", {
|
|
9137
|
-
className: "".concat(CLASSNAME$
|
|
9231
|
+
className: "".concat(CLASSNAME$O, "__input-validity")
|
|
9138
9232
|
}, React.createElement(Icon, {
|
|
9139
9233
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
9140
9234
|
size: Size.xxs
|
|
9141
9235
|
})), React.createElement("div", {
|
|
9142
|
-
className: "".concat(CLASSNAME$
|
|
9236
|
+
className: "".concat(CLASSNAME$O, "__input-indicator")
|
|
9143
9237
|
}, React.createElement(Icon, {
|
|
9144
9238
|
icon: mdiMenuDown,
|
|
9145
9239
|
size: Size.s
|
|
@@ -9168,15 +9262,15 @@ var SelectMultiple = forwardRef(function (props, ref) {
|
|
|
9168
9262
|
return WithSelectContext(SelectMultipleField, _objectSpread2({}, props, {
|
|
9169
9263
|
className: classnames(props.className, handleBasicClasses({
|
|
9170
9264
|
hasMultiple: !props.isEmpty,
|
|
9171
|
-
prefix: CLASSNAME$
|
|
9265
|
+
prefix: CLASSNAME$O
|
|
9172
9266
|
})),
|
|
9173
9267
|
isEmpty: props.value.length === 0,
|
|
9174
9268
|
isMultiple: true
|
|
9175
9269
|
}), ref);
|
|
9176
9270
|
});
|
|
9177
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
9178
|
-
SelectMultiple.className = CLASSNAME$
|
|
9179
|
-
SelectMultiple.defaultProps = DEFAULT_PROPS$
|
|
9271
|
+
SelectMultiple.displayName = COMPONENT_NAME$R;
|
|
9272
|
+
SelectMultiple.className = CLASSNAME$O;
|
|
9273
|
+
SelectMultiple.defaultProps = DEFAULT_PROPS$F;
|
|
9180
9274
|
|
|
9181
9275
|
/**
|
|
9182
9276
|
* Defines the props of the component.
|
|
@@ -9185,12 +9279,12 @@ SelectMultiple.defaultProps = DEFAULT_PROPS$E;
|
|
|
9185
9279
|
/**
|
|
9186
9280
|
* Component display name.
|
|
9187
9281
|
*/
|
|
9188
|
-
var COMPONENT_NAME$
|
|
9282
|
+
var COMPONENT_NAME$S = 'SideNavigation';
|
|
9189
9283
|
/**
|
|
9190
9284
|
* Component default class name and class prefix.
|
|
9191
9285
|
*/
|
|
9192
9286
|
|
|
9193
|
-
var CLASSNAME$
|
|
9287
|
+
var CLASSNAME$P = getRootClassName(COMPONENT_NAME$S);
|
|
9194
9288
|
/**
|
|
9195
9289
|
* SideNavigation component.
|
|
9196
9290
|
*
|
|
@@ -9210,12 +9304,12 @@ var SideNavigation = forwardRef(function (props, ref) {
|
|
|
9210
9304
|
ref: ref
|
|
9211
9305
|
}, forwardedProps, {
|
|
9212
9306
|
className: classnames(className, theme === Theme.dark && 'lumx-color-font-light-N', handleBasicClasses({
|
|
9213
|
-
prefix: CLASSNAME$
|
|
9307
|
+
prefix: CLASSNAME$P
|
|
9214
9308
|
}))
|
|
9215
9309
|
}), content);
|
|
9216
9310
|
});
|
|
9217
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
9218
|
-
SideNavigation.className = CLASSNAME$
|
|
9311
|
+
SideNavigation.displayName = COMPONENT_NAME$S;
|
|
9312
|
+
SideNavigation.className = CLASSNAME$P;
|
|
9219
9313
|
|
|
9220
9314
|
/**
|
|
9221
9315
|
* Defines the props of the component.
|
|
@@ -9224,17 +9318,17 @@ SideNavigation.className = CLASSNAME$O;
|
|
|
9224
9318
|
/**
|
|
9225
9319
|
* Component display name.
|
|
9226
9320
|
*/
|
|
9227
|
-
var COMPONENT_NAME$
|
|
9321
|
+
var COMPONENT_NAME$T = 'SideNavigationItem';
|
|
9228
9322
|
/**
|
|
9229
9323
|
* Component default class name and class prefix.
|
|
9230
9324
|
*/
|
|
9231
9325
|
|
|
9232
|
-
var CLASSNAME$
|
|
9326
|
+
var CLASSNAME$Q = getRootClassName(COMPONENT_NAME$T);
|
|
9233
9327
|
/**
|
|
9234
9328
|
* Component default props.
|
|
9235
9329
|
*/
|
|
9236
9330
|
|
|
9237
|
-
var DEFAULT_PROPS$
|
|
9331
|
+
var DEFAULT_PROPS$G = {
|
|
9238
9332
|
emphasis: Emphasis.high,
|
|
9239
9333
|
closeMode: 'unmount'
|
|
9240
9334
|
};
|
|
@@ -9274,22 +9368,22 @@ var SideNavigationItem = forwardRef(function (props, ref) {
|
|
|
9274
9368
|
emphasis: emphasis,
|
|
9275
9369
|
isOpen: showChildren,
|
|
9276
9370
|
isSelected: isSelected,
|
|
9277
|
-
prefix: CLASSNAME$
|
|
9371
|
+
prefix: CLASSNAME$Q
|
|
9278
9372
|
}))
|
|
9279
9373
|
}), shouldSplitActions ? React.createElement("div", {
|
|
9280
|
-
className: "".concat(CLASSNAME$
|
|
9374
|
+
className: "".concat(CLASSNAME$Q, "__wrapper")
|
|
9281
9375
|
}, renderLink(_objectSpread2({
|
|
9282
9376
|
linkAs: linkAs
|
|
9283
9377
|
}, linkProps, {
|
|
9284
|
-
className: "".concat(CLASSNAME$
|
|
9378
|
+
className: "".concat(CLASSNAME$Q, "__link"),
|
|
9285
9379
|
onClick: onClick,
|
|
9286
9380
|
tabIndex: 0
|
|
9287
9381
|
}), icon && React.createElement(Icon, {
|
|
9288
|
-
className: "".concat(CLASSNAME$
|
|
9382
|
+
className: "".concat(CLASSNAME$Q, "__icon"),
|
|
9289
9383
|
icon: icon,
|
|
9290
9384
|
size: Size.xs
|
|
9291
9385
|
}), React.createElement("span", null, label)), React.createElement(IconButton, _extends({}, toggleButtonProps, {
|
|
9292
|
-
className: "".concat(CLASSNAME$
|
|
9386
|
+
className: "".concat(CLASSNAME$Q, "__toggle"),
|
|
9293
9387
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
9294
9388
|
size: Size.m,
|
|
9295
9389
|
emphasis: Emphasis.low,
|
|
@@ -9297,43 +9391,43 @@ var SideNavigationItem = forwardRef(function (props, ref) {
|
|
|
9297
9391
|
}))) : renderLink(_objectSpread2({
|
|
9298
9392
|
linkAs: linkAs
|
|
9299
9393
|
}, linkProps, {
|
|
9300
|
-
className: "".concat(CLASSNAME$
|
|
9394
|
+
className: "".concat(CLASSNAME$Q, "__link"),
|
|
9301
9395
|
tabIndex: 0,
|
|
9302
9396
|
onClick: onClick,
|
|
9303
9397
|
onKeyDown: onClick ? onEnterPressed(onClick) : undefined
|
|
9304
9398
|
}), icon && React.createElement(Icon, {
|
|
9305
|
-
className: "".concat(CLASSNAME$
|
|
9399
|
+
className: "".concat(CLASSNAME$Q, "__icon"),
|
|
9306
9400
|
icon: icon,
|
|
9307
9401
|
size: Size.xs
|
|
9308
9402
|
}), React.createElement("span", null, label), hasContent && React.createElement(Icon, {
|
|
9309
|
-
className: "".concat(CLASSNAME$
|
|
9403
|
+
className: "".concat(CLASSNAME$Q, "__chevron"),
|
|
9310
9404
|
icon: isOpen ? mdiChevronUp : mdiChevronDown,
|
|
9311
9405
|
size: Size.xs
|
|
9312
9406
|
})), (closeMode === 'hide' || showChildren) && React.createElement("ul", {
|
|
9313
|
-
className: "".concat(CLASSNAME$
|
|
9407
|
+
className: "".concat(CLASSNAME$Q, "__children")
|
|
9314
9408
|
}, content));
|
|
9315
9409
|
});
|
|
9316
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
9317
|
-
SideNavigationItem.className = CLASSNAME$
|
|
9318
|
-
SideNavigationItem.defaultProps = DEFAULT_PROPS$
|
|
9410
|
+
SideNavigationItem.displayName = COMPONENT_NAME$T;
|
|
9411
|
+
SideNavigationItem.className = CLASSNAME$Q;
|
|
9412
|
+
SideNavigationItem.defaultProps = DEFAULT_PROPS$G;
|
|
9319
9413
|
|
|
9320
9414
|
/**
|
|
9321
9415
|
* Defines the props of the component.
|
|
9322
9416
|
*/
|
|
9323
9417
|
|
|
9324
|
-
var DEFAULT_PROPS$
|
|
9418
|
+
var DEFAULT_PROPS$H = {
|
|
9325
9419
|
theme: Theme.light
|
|
9326
9420
|
};
|
|
9327
9421
|
/**
|
|
9328
9422
|
* Component display name.
|
|
9329
9423
|
*/
|
|
9330
9424
|
|
|
9331
|
-
var COMPONENT_NAME$
|
|
9425
|
+
var COMPONENT_NAME$U = 'SkeletonCircle';
|
|
9332
9426
|
/**
|
|
9333
9427
|
* Component default class name and class prefix.
|
|
9334
9428
|
*/
|
|
9335
9429
|
|
|
9336
|
-
var CLASSNAME$
|
|
9430
|
+
var CLASSNAME$R = getRootClassName(COMPONENT_NAME$U);
|
|
9337
9431
|
/**
|
|
9338
9432
|
* SkeletonCircle component.
|
|
9339
9433
|
*
|
|
@@ -9353,16 +9447,16 @@ var SkeletonCircle = forwardRef(function (props, ref) {
|
|
|
9353
9447
|
ref: ref
|
|
9354
9448
|
}, forwardedProps, {
|
|
9355
9449
|
className: classnames(className, handleBasicClasses({
|
|
9356
|
-
prefix: CLASSNAME$
|
|
9450
|
+
prefix: CLASSNAME$R,
|
|
9357
9451
|
size: size,
|
|
9358
9452
|
color: color,
|
|
9359
9453
|
theme: theme
|
|
9360
9454
|
}))
|
|
9361
9455
|
}));
|
|
9362
9456
|
});
|
|
9363
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
9364
|
-
SkeletonCircle.defaultProps = DEFAULT_PROPS$
|
|
9365
|
-
SkeletonCircle.className = CLASSNAME$
|
|
9457
|
+
SkeletonCircle.displayName = COMPONENT_NAME$U;
|
|
9458
|
+
SkeletonCircle.defaultProps = DEFAULT_PROPS$H;
|
|
9459
|
+
SkeletonCircle.className = CLASSNAME$R;
|
|
9366
9460
|
|
|
9367
9461
|
/**
|
|
9368
9462
|
* Skeleton variants.
|
|
@@ -9373,7 +9467,7 @@ var SkeletonRectangleVariant = {
|
|
|
9373
9467
|
rounded: 'rounded',
|
|
9374
9468
|
pill: 'pill'
|
|
9375
9469
|
};
|
|
9376
|
-
var DEFAULT_PROPS$
|
|
9470
|
+
var DEFAULT_PROPS$I = {
|
|
9377
9471
|
theme: Theme.light,
|
|
9378
9472
|
variant: SkeletonRectangleVariant.squared
|
|
9379
9473
|
};
|
|
@@ -9381,12 +9475,12 @@ var DEFAULT_PROPS$H = {
|
|
|
9381
9475
|
* Component display name.
|
|
9382
9476
|
*/
|
|
9383
9477
|
|
|
9384
|
-
var COMPONENT_NAME$
|
|
9478
|
+
var COMPONENT_NAME$V = 'SkeletonRectangle';
|
|
9385
9479
|
/**
|
|
9386
9480
|
* Component default class name and class prefix.
|
|
9387
9481
|
*/
|
|
9388
9482
|
|
|
9389
|
-
var CLASSNAME$
|
|
9483
|
+
var CLASSNAME$S = getRootClassName(COMPONENT_NAME$V);
|
|
9390
9484
|
/**
|
|
9391
9485
|
* SkeletonRectangle component.
|
|
9392
9486
|
*
|
|
@@ -9409,7 +9503,7 @@ var SkeletonRectangle = forwardRef(function (props, ref) {
|
|
|
9409
9503
|
ref: ref
|
|
9410
9504
|
}, forwardedProps, {
|
|
9411
9505
|
className: classnames(className, handleBasicClasses({
|
|
9412
|
-
prefix: CLASSNAME$
|
|
9506
|
+
prefix: CLASSNAME$S,
|
|
9413
9507
|
aspectRatio: aspectRatio,
|
|
9414
9508
|
height: aspectRatio ? undefined : height,
|
|
9415
9509
|
theme: theme,
|
|
@@ -9418,30 +9512,30 @@ var SkeletonRectangle = forwardRef(function (props, ref) {
|
|
|
9418
9512
|
color: color
|
|
9419
9513
|
}))
|
|
9420
9514
|
}), React.createElement("div", {
|
|
9421
|
-
className: "".concat(CLASSNAME$
|
|
9515
|
+
className: "".concat(CLASSNAME$S, "__inner")
|
|
9422
9516
|
}));
|
|
9423
9517
|
});
|
|
9424
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
9425
|
-
SkeletonRectangle.className = CLASSNAME$
|
|
9426
|
-
SkeletonRectangle.defaultProps = DEFAULT_PROPS$
|
|
9518
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$V;
|
|
9519
|
+
SkeletonRectangle.className = CLASSNAME$S;
|
|
9520
|
+
SkeletonRectangle.defaultProps = DEFAULT_PROPS$I;
|
|
9427
9521
|
|
|
9428
9522
|
/**
|
|
9429
9523
|
* Defines the props of the component.
|
|
9430
9524
|
*/
|
|
9431
9525
|
|
|
9432
|
-
var DEFAULT_PROPS$
|
|
9526
|
+
var DEFAULT_PROPS$J = {
|
|
9433
9527
|
theme: Theme.light
|
|
9434
9528
|
};
|
|
9435
9529
|
/**
|
|
9436
9530
|
* Component display name.
|
|
9437
9531
|
*/
|
|
9438
9532
|
|
|
9439
|
-
var COMPONENT_NAME$
|
|
9533
|
+
var COMPONENT_NAME$W = 'SkeletonTypography';
|
|
9440
9534
|
/**
|
|
9441
9535
|
* Component default class name and class prefix.
|
|
9442
9536
|
*/
|
|
9443
9537
|
|
|
9444
|
-
var CLASSNAME$
|
|
9538
|
+
var CLASSNAME$T = getRootClassName(COMPONENT_NAME$W);
|
|
9445
9539
|
/**
|
|
9446
9540
|
* SkeletonTypography component.
|
|
9447
9541
|
*
|
|
@@ -9462,7 +9556,7 @@ var SkeletonTypography = forwardRef(function (props, ref) {
|
|
|
9462
9556
|
ref: ref
|
|
9463
9557
|
}, forwardedProps, {
|
|
9464
9558
|
className: classnames(className, handleBasicClasses({
|
|
9465
|
-
prefix: CLASSNAME$
|
|
9559
|
+
prefix: CLASSNAME$T,
|
|
9466
9560
|
theme: theme,
|
|
9467
9561
|
typography: typography,
|
|
9468
9562
|
color: color
|
|
@@ -9471,12 +9565,12 @@ var SkeletonTypography = forwardRef(function (props, ref) {
|
|
|
9471
9565
|
width: width
|
|
9472
9566
|
})
|
|
9473
9567
|
}), React.createElement("div", {
|
|
9474
|
-
className: "".concat(CLASSNAME$
|
|
9568
|
+
className: "".concat(CLASSNAME$T, "__inner")
|
|
9475
9569
|
}));
|
|
9476
9570
|
});
|
|
9477
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
9478
|
-
SkeletonTypography.defaultProps = DEFAULT_PROPS$
|
|
9479
|
-
SkeletonTypography.className = CLASSNAME$
|
|
9571
|
+
SkeletonTypography.displayName = COMPONENT_NAME$W;
|
|
9572
|
+
SkeletonTypography.defaultProps = DEFAULT_PROPS$J;
|
|
9573
|
+
SkeletonTypography.className = CLASSNAME$T;
|
|
9480
9574
|
|
|
9481
9575
|
var useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
9482
9576
|
/**
|
|
@@ -9523,17 +9617,17 @@ var clamp = function clamp(value, min, max) {
|
|
|
9523
9617
|
/**
|
|
9524
9618
|
* Component display name.
|
|
9525
9619
|
*/
|
|
9526
|
-
var COMPONENT_NAME$
|
|
9620
|
+
var COMPONENT_NAME$X = 'Slider';
|
|
9527
9621
|
/**
|
|
9528
9622
|
* Component default class name and class prefix.
|
|
9529
9623
|
*/
|
|
9530
9624
|
|
|
9531
|
-
var CLASSNAME$
|
|
9625
|
+
var CLASSNAME$U = getRootClassName(COMPONENT_NAME$X);
|
|
9532
9626
|
/**
|
|
9533
9627
|
* Component default props.
|
|
9534
9628
|
*/
|
|
9535
9629
|
|
|
9536
|
-
var DEFAULT_PROPS$
|
|
9630
|
+
var DEFAULT_PROPS$K = {
|
|
9537
9631
|
precision: 0,
|
|
9538
9632
|
steps: 0,
|
|
9539
9633
|
theme: Theme.light
|
|
@@ -9738,7 +9832,7 @@ var Slider = forwardRef(function (props, ref) {
|
|
|
9738
9832
|
ref: ref
|
|
9739
9833
|
}, forwardedProps, {
|
|
9740
9834
|
className: classnames(className, handleBasicClasses({
|
|
9741
|
-
prefix: CLASSNAME$
|
|
9835
|
+
prefix: CLASSNAME$U,
|
|
9742
9836
|
theme: theme,
|
|
9743
9837
|
hasLabel: Boolean(label)
|
|
9744
9838
|
})),
|
|
@@ -9747,31 +9841,31 @@ var Slider = forwardRef(function (props, ref) {
|
|
|
9747
9841
|
}), label && React.createElement(InputLabel, {
|
|
9748
9842
|
id: sliderLabelId,
|
|
9749
9843
|
htmlFor: sliderId,
|
|
9750
|
-
className: "".concat(CLASSNAME$
|
|
9844
|
+
className: "".concat(CLASSNAME$U, "__label"),
|
|
9751
9845
|
theme: theme
|
|
9752
9846
|
}, label), helper && React.createElement(InputHelper, {
|
|
9753
|
-
className: "".concat(CLASSNAME$
|
|
9847
|
+
className: "".concat(CLASSNAME$U, "__helper"),
|
|
9754
9848
|
theme: theme
|
|
9755
9849
|
}, helper), React.createElement("div", {
|
|
9756
|
-
className: "".concat(CLASSNAME$
|
|
9850
|
+
className: "".concat(CLASSNAME$U, "__ui-wrapper")
|
|
9757
9851
|
}, !hideMinMaxLabel && React.createElement("span", {
|
|
9758
|
-
className: "".concat(CLASSNAME$
|
|
9852
|
+
className: "".concat(CLASSNAME$U, "__value-label ").concat(CLASSNAME$U, "__value-label--min")
|
|
9759
9853
|
}, min), React.createElement("div", {
|
|
9760
|
-
className: "".concat(CLASSNAME$
|
|
9854
|
+
className: "".concat(CLASSNAME$U, "__wrapper"),
|
|
9761
9855
|
ref: sliderRef
|
|
9762
9856
|
}, React.createElement("div", {
|
|
9763
|
-
className: "".concat(CLASSNAME$
|
|
9857
|
+
className: "".concat(CLASSNAME$U, "__track ").concat(CLASSNAME$U, "__track--background")
|
|
9764
9858
|
}), React.createElement("div", {
|
|
9765
|
-
className: "".concat(CLASSNAME$
|
|
9859
|
+
className: "".concat(CLASSNAME$U, "__track ").concat(CLASSNAME$U, "__track--active"),
|
|
9766
9860
|
style: {
|
|
9767
9861
|
width: percentString
|
|
9768
9862
|
}
|
|
9769
9863
|
}), steps ? React.createElement("div", {
|
|
9770
|
-
className: "".concat(CLASSNAME$
|
|
9864
|
+
className: "".concat(CLASSNAME$U, "__ticks")
|
|
9771
9865
|
}, availableSteps.map(function (step, idx) {
|
|
9772
9866
|
return React.createElement("div", {
|
|
9773
9867
|
key: "tick_".concat(idx),
|
|
9774
|
-
className: "".concat(CLASSNAME$
|
|
9868
|
+
className: "".concat(CLASSNAME$U, "__tick"),
|
|
9775
9869
|
style: {
|
|
9776
9870
|
left: "".concat(step * 100, "%")
|
|
9777
9871
|
}
|
|
@@ -9781,19 +9875,19 @@ var Slider = forwardRef(function (props, ref) {
|
|
|
9781
9875
|
"aria-labelledby": sliderLabelId,
|
|
9782
9876
|
name: name,
|
|
9783
9877
|
id: sliderId,
|
|
9784
|
-
className: "".concat(CLASSNAME$
|
|
9878
|
+
className: "".concat(CLASSNAME$U, "__handle"),
|
|
9785
9879
|
style: {
|
|
9786
9880
|
left: percentString
|
|
9787
9881
|
},
|
|
9788
9882
|
onKeyDown: handleKeyDown,
|
|
9789
9883
|
disabled: isDisabled
|
|
9790
9884
|
})), !hideMinMaxLabel && React.createElement("span", {
|
|
9791
|
-
className: "".concat(CLASSNAME$
|
|
9885
|
+
className: "".concat(CLASSNAME$U, "__value-label ").concat(CLASSNAME$U, "__value-label--max")
|
|
9792
9886
|
}, max)));
|
|
9793
9887
|
});
|
|
9794
|
-
Slider.displayName = COMPONENT_NAME$
|
|
9795
|
-
Slider.className = CLASSNAME$
|
|
9796
|
-
Slider.defaultProps = DEFAULT_PROPS$
|
|
9888
|
+
Slider.displayName = COMPONENT_NAME$X;
|
|
9889
|
+
Slider.className = CLASSNAME$U;
|
|
9890
|
+
Slider.defaultProps = DEFAULT_PROPS$K;
|
|
9797
9891
|
|
|
9798
9892
|
/**
|
|
9799
9893
|
* Making setInterval Declarative with React Hooks.
|
|
@@ -10148,12 +10242,12 @@ var useSlideFocusManagement = function useSlideFocusManagement(_ref) {
|
|
|
10148
10242
|
/**
|
|
10149
10243
|
* Component display name.
|
|
10150
10244
|
*/
|
|
10151
|
-
var COMPONENT_NAME$
|
|
10245
|
+
var COMPONENT_NAME$Y = 'SlideshowItemGroup';
|
|
10152
10246
|
/**
|
|
10153
10247
|
* Component default class name and class prefix.
|
|
10154
10248
|
*/
|
|
10155
10249
|
|
|
10156
|
-
var CLASSNAME$
|
|
10250
|
+
var CLASSNAME$V = getRootClassName(COMPONENT_NAME$Y);
|
|
10157
10251
|
var buildSlideShowGroupId = function buildSlideShowGroupId(slidesId, index) {
|
|
10158
10252
|
return "".concat(slidesId, "-slide-").concat(index);
|
|
10159
10253
|
};
|
|
@@ -10183,14 +10277,14 @@ var SlideshowItemGroup = forwardRef(function (props, ref) {
|
|
|
10183
10277
|
ref: mergeRefs(groupRef, ref),
|
|
10184
10278
|
role: role,
|
|
10185
10279
|
className: classnames(className, handleBasicClasses({
|
|
10186
|
-
prefix: CLASSNAME$
|
|
10280
|
+
prefix: CLASSNAME$V
|
|
10187
10281
|
})),
|
|
10188
10282
|
"aria-roledescription": "slide",
|
|
10189
10283
|
"aria-label": label
|
|
10190
10284
|
}, forwardedProps), children);
|
|
10191
10285
|
});
|
|
10192
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
10193
|
-
SlideshowItemGroup.className = CLASSNAME$
|
|
10286
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$Y;
|
|
10287
|
+
SlideshowItemGroup.className = CLASSNAME$V;
|
|
10194
10288
|
|
|
10195
10289
|
/**
|
|
10196
10290
|
* Defines the props of the component.
|
|
@@ -10199,7 +10293,7 @@ SlideshowItemGroup.className = CLASSNAME$U;
|
|
|
10199
10293
|
/**
|
|
10200
10294
|
* Component default props.
|
|
10201
10295
|
*/
|
|
10202
|
-
var DEFAULT_PROPS$
|
|
10296
|
+
var DEFAULT_PROPS$L = _objectSpread2({}, DEFAULT_OPTIONS$1, {
|
|
10203
10297
|
theme: Theme.light
|
|
10204
10298
|
});
|
|
10205
10299
|
/**
|
|
@@ -10232,7 +10326,7 @@ var Slideshow = forwardRef(function (props, ref) {
|
|
|
10232
10326
|
|
|
10233
10327
|
var _SlideshowControls$us = SlideshowControls.useSlideshowControls({
|
|
10234
10328
|
activeIndex: activeIndex,
|
|
10235
|
-
defaultActiveIndex: DEFAULT_PROPS$
|
|
10329
|
+
defaultActiveIndex: DEFAULT_PROPS$L.activeIndex,
|
|
10236
10330
|
autoPlay: Boolean(autoPlay),
|
|
10237
10331
|
itemsCount: itemsCount,
|
|
10238
10332
|
groupBy: groupBy,
|
|
@@ -10308,7 +10402,7 @@ var Slideshow = forwardRef(function (props, ref) {
|
|
|
10308
10402
|
}, forwardedProps), children);
|
|
10309
10403
|
});
|
|
10310
10404
|
Slideshow.displayName = 'Slideshow';
|
|
10311
|
-
Slideshow.defaultProps = DEFAULT_PROPS$
|
|
10405
|
+
Slideshow.defaultProps = DEFAULT_PROPS$L;
|
|
10312
10406
|
|
|
10313
10407
|
/**
|
|
10314
10408
|
* Defines the props of the component.
|
|
@@ -10317,12 +10411,12 @@ Slideshow.defaultProps = DEFAULT_PROPS$K;
|
|
|
10317
10411
|
/**
|
|
10318
10412
|
* Component display name.
|
|
10319
10413
|
*/
|
|
10320
|
-
var COMPONENT_NAME$
|
|
10414
|
+
var COMPONENT_NAME$Z = 'SlideshowItem';
|
|
10321
10415
|
/**
|
|
10322
10416
|
* Component default class name and class prefix.
|
|
10323
10417
|
*/
|
|
10324
10418
|
|
|
10325
|
-
var CLASSNAME$
|
|
10419
|
+
var CLASSNAME$W = getRootClassName(COMPONENT_NAME$Z);
|
|
10326
10420
|
/**
|
|
10327
10421
|
* SlideshowItem component.
|
|
10328
10422
|
*
|
|
@@ -10339,12 +10433,12 @@ var SlideshowItem = forwardRef(function (props, ref) {
|
|
|
10339
10433
|
return React.createElement("div", _extends({
|
|
10340
10434
|
ref: ref,
|
|
10341
10435
|
className: classnames(className, handleBasicClasses({
|
|
10342
|
-
prefix: CLASSNAME$
|
|
10436
|
+
prefix: CLASSNAME$W
|
|
10343
10437
|
}))
|
|
10344
10438
|
}, forwardedProps), children);
|
|
10345
10439
|
});
|
|
10346
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
10347
|
-
SlideshowItem.className = CLASSNAME$
|
|
10440
|
+
SlideshowItem.displayName = COMPONENT_NAME$Z;
|
|
10441
|
+
SlideshowItem.className = CLASSNAME$W;
|
|
10348
10442
|
|
|
10349
10443
|
var isTouchDevice = function isTouchDevice() {
|
|
10350
10444
|
return 'ontouchstart' in window;
|
|
@@ -10415,17 +10509,17 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
10415
10509
|
/**
|
|
10416
10510
|
* Component display name.
|
|
10417
10511
|
*/
|
|
10418
|
-
var COMPONENT_NAME$
|
|
10512
|
+
var COMPONENT_NAME$_ = 'SlideshowControls';
|
|
10419
10513
|
/**
|
|
10420
10514
|
* Component default class name and class prefix.
|
|
10421
10515
|
*/
|
|
10422
10516
|
|
|
10423
|
-
var CLASSNAME$
|
|
10517
|
+
var CLASSNAME$X = getRootClassName(COMPONENT_NAME$_);
|
|
10424
10518
|
/**
|
|
10425
10519
|
* Component default props.
|
|
10426
10520
|
*/
|
|
10427
10521
|
|
|
10428
|
-
var DEFAULT_PROPS$
|
|
10522
|
+
var DEFAULT_PROPS$M = {
|
|
10429
10523
|
activeIndex: 0,
|
|
10430
10524
|
theme: Theme.light
|
|
10431
10525
|
};
|
|
@@ -10494,20 +10588,20 @@ var InternalSlideshowControls = forwardRef(function (props, ref) {
|
|
|
10494
10588
|
ref: ref
|
|
10495
10589
|
}, forwardedProps, {
|
|
10496
10590
|
className: classnames(className, handleBasicClasses({
|
|
10497
|
-
prefix: CLASSNAME$
|
|
10591
|
+
prefix: CLASSNAME$X,
|
|
10498
10592
|
theme: theme
|
|
10499
|
-
}), _defineProperty({}, "".concat(CLASSNAME$
|
|
10593
|
+
}), _defineProperty({}, "".concat(CLASSNAME$X, "--has-infinite-pagination"), slidesCount > PAGINATION_ITEMS_MAX))
|
|
10500
10594
|
}), React.createElement(IconButton, _extends({}, previousButtonProps, {
|
|
10501
10595
|
icon: mdiChevronLeft,
|
|
10502
|
-
className: "".concat(CLASSNAME$
|
|
10596
|
+
className: "".concat(CLASSNAME$X, "__navigation"),
|
|
10503
10597
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10504
10598
|
emphasis: Emphasis.low,
|
|
10505
10599
|
onClick: onPreviousClick
|
|
10506
10600
|
})), React.createElement("div", {
|
|
10507
10601
|
ref: paginationRef,
|
|
10508
|
-
className: "".concat(CLASSNAME$
|
|
10602
|
+
className: "".concat(CLASSNAME$X, "__pagination")
|
|
10509
10603
|
}, React.createElement("div", _extends({
|
|
10510
|
-
className: "".concat(CLASSNAME$
|
|
10604
|
+
className: "".concat(CLASSNAME$X, "__pagination-items"),
|
|
10511
10605
|
style: wrapperStyle,
|
|
10512
10606
|
role: "tablist"
|
|
10513
10607
|
}, paginationProps), useMemo(function () {
|
|
@@ -10526,7 +10620,7 @@ var InternalSlideshowControls = forwardRef(function (props, ref) {
|
|
|
10526
10620
|
var ariaLabel = label || (paginationItemLabel === null || paginationItemLabel === void 0 ? void 0 : paginationItemLabel(index)) || "".concat(index + 1, " / ").concat(slidesCount);
|
|
10527
10621
|
return React.createElement("button", _extends({
|
|
10528
10622
|
className: classnames(handleBasicClasses({
|
|
10529
|
-
prefix: "".concat(CLASSNAME$
|
|
10623
|
+
prefix: "".concat(CLASSNAME$X, "__pagination-item"),
|
|
10530
10624
|
isActive: isActive,
|
|
10531
10625
|
isOnEdge: isOnEdge,
|
|
10532
10626
|
isOutRange: isOutRange
|
|
@@ -10544,20 +10638,20 @@ var InternalSlideshowControls = forwardRef(function (props, ref) {
|
|
|
10544
10638
|
});
|
|
10545
10639
|
}, [slidesCount, visibleRange.min, visibleRange.max, activeIndex, paginationItemProps, paginationItemLabel, onPaginationClick]))), playButtonProps ? React.createElement(IconButton, _extends({}, playButtonProps, {
|
|
10546
10640
|
icon: isAutoPlaying ? mdiPauseCircleOutline : mdiPlayCircleOutline,
|
|
10547
|
-
className: "".concat(CLASSNAME$
|
|
10641
|
+
className: "".concat(CLASSNAME$X, "__play"),
|
|
10548
10642
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10549
10643
|
emphasis: Emphasis.low
|
|
10550
10644
|
})) : null, React.createElement(IconButton, _extends({}, nextButtonProps, {
|
|
10551
10645
|
icon: mdiChevronRight,
|
|
10552
|
-
className: "".concat(CLASSNAME$
|
|
10646
|
+
className: "".concat(CLASSNAME$X, "__navigation"),
|
|
10553
10647
|
color: theme === Theme.dark ? 'light' : 'dark',
|
|
10554
10648
|
emphasis: Emphasis.low,
|
|
10555
10649
|
onClick: onNextClick
|
|
10556
10650
|
})));
|
|
10557
10651
|
});
|
|
10558
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
10559
|
-
InternalSlideshowControls.className = CLASSNAME$
|
|
10560
|
-
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$
|
|
10652
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$_;
|
|
10653
|
+
InternalSlideshowControls.className = CLASSNAME$X;
|
|
10654
|
+
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$M;
|
|
10561
10655
|
var SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
10562
10656
|
useSlideshowControls: useSlideshowControls,
|
|
10563
10657
|
useSlideshowControlsDefaultOptions: DEFAULT_OPTIONS$1
|
|
@@ -10566,12 +10660,12 @@ var SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
|
10566
10660
|
/**
|
|
10567
10661
|
* Component display name.
|
|
10568
10662
|
*/
|
|
10569
|
-
var COMPONENT_NAME
|
|
10663
|
+
var COMPONENT_NAME$$ = 'Slideshow';
|
|
10570
10664
|
/**
|
|
10571
10665
|
* Component default class name and class prefix.
|
|
10572
10666
|
*/
|
|
10573
10667
|
|
|
10574
|
-
var CLASSNAME$
|
|
10668
|
+
var CLASSNAME$Y = getRootClassName(COMPONENT_NAME$$);
|
|
10575
10669
|
/**
|
|
10576
10670
|
* Slides component.
|
|
10577
10671
|
*
|
|
@@ -10614,19 +10708,19 @@ var Slides = forwardRef(function (props, ref) {
|
|
|
10614
10708
|
ref: ref
|
|
10615
10709
|
}, forwardedProps, {
|
|
10616
10710
|
className: classnames(className, handleBasicClasses({
|
|
10617
|
-
prefix: CLASSNAME$
|
|
10711
|
+
prefix: CLASSNAME$Y,
|
|
10618
10712
|
theme: theme
|
|
10619
|
-
}), (_classNames = {}, _defineProperty(_classNames, "".concat(CLASSNAME$
|
|
10713
|
+
}), (_classNames = {}, _defineProperty(_classNames, "".concat(CLASSNAME$Y, "--fill-height"), fillHeight), _defineProperty(_classNames, "".concat(CLASSNAME$Y, "--group-by-").concat(groupBy), Boolean(groupBy)), _classNames)),
|
|
10620
10714
|
"aria-roledescription": "carousel"
|
|
10621
10715
|
}), React.createElement("div", {
|
|
10622
10716
|
id: slidesId,
|
|
10623
|
-
className: "".concat(CLASSNAME$
|
|
10717
|
+
className: "".concat(CLASSNAME$Y, "__slides"),
|
|
10624
10718
|
onMouseEnter: toggleAutoPlay,
|
|
10625
10719
|
onMouseLeave: toggleAutoPlay,
|
|
10626
10720
|
"aria-live": isAutoPlaying ? 'off' : 'polite'
|
|
10627
10721
|
}, React.createElement("div", {
|
|
10628
10722
|
ref: wrapperRef,
|
|
10629
|
-
className: "".concat(CLASSNAME$
|
|
10723
|
+
className: "".concat(CLASSNAME$Y, "__wrapper"),
|
|
10630
10724
|
style: wrapperStyle
|
|
10631
10725
|
}, groups.map(function (group, index) {
|
|
10632
10726
|
return React.createElement(SlideshowItemGroup, {
|
|
@@ -10638,8 +10732,8 @@ var Slides = forwardRef(function (props, ref) {
|
|
|
10638
10732
|
}, group);
|
|
10639
10733
|
}))), afterSlides);
|
|
10640
10734
|
});
|
|
10641
|
-
Slides.displayName = COMPONENT_NAME
|
|
10642
|
-
Slides.className = CLASSNAME$
|
|
10735
|
+
Slides.displayName = COMPONENT_NAME$$;
|
|
10736
|
+
Slides.className = CLASSNAME$Y;
|
|
10643
10737
|
|
|
10644
10738
|
/**
|
|
10645
10739
|
* Defines the props of the component.
|
|
@@ -10648,17 +10742,17 @@ Slides.className = CLASSNAME$X;
|
|
|
10648
10742
|
/**
|
|
10649
10743
|
* Component display name.
|
|
10650
10744
|
*/
|
|
10651
|
-
var COMPONENT_NAME
|
|
10745
|
+
var COMPONENT_NAME$10 = 'Switch';
|
|
10652
10746
|
/**
|
|
10653
10747
|
* Component default class name and class prefix.
|
|
10654
10748
|
*/
|
|
10655
10749
|
|
|
10656
|
-
var CLASSNAME$
|
|
10750
|
+
var CLASSNAME$Z = getRootClassName(COMPONENT_NAME$10);
|
|
10657
10751
|
/**
|
|
10658
10752
|
* Component default props.
|
|
10659
10753
|
*/
|
|
10660
10754
|
|
|
10661
|
-
var DEFAULT_PROPS$
|
|
10755
|
+
var DEFAULT_PROPS$N = {
|
|
10662
10756
|
position: Alignment.left,
|
|
10663
10757
|
theme: Theme.light
|
|
10664
10758
|
};
|
|
@@ -10704,7 +10798,7 @@ var Switch = forwardRef(function (props, ref) {
|
|
|
10704
10798
|
ref: ref
|
|
10705
10799
|
}, forwardedProps, {
|
|
10706
10800
|
className: classnames(className, handleBasicClasses({
|
|
10707
|
-
prefix: CLASSNAME$
|
|
10801
|
+
prefix: CLASSNAME$Z,
|
|
10708
10802
|
isChecked: isChecked,
|
|
10709
10803
|
isDisabled: isDisabled,
|
|
10710
10804
|
position: position,
|
|
@@ -10713,12 +10807,12 @@ var Switch = forwardRef(function (props, ref) {
|
|
|
10713
10807
|
})),
|
|
10714
10808
|
"aria-disabled": isDisabled
|
|
10715
10809
|
}), React.createElement("div", {
|
|
10716
|
-
className: "".concat(CLASSNAME$
|
|
10810
|
+
className: "".concat(CLASSNAME$Z, "__input-wrapper")
|
|
10717
10811
|
}, React.createElement("input", _extends({
|
|
10718
10812
|
type: "checkbox",
|
|
10719
10813
|
role: "switch",
|
|
10720
10814
|
id: switchId,
|
|
10721
|
-
className: "".concat(CLASSNAME$
|
|
10815
|
+
className: "".concat(CLASSNAME$Z, "__input-native"),
|
|
10722
10816
|
name: name,
|
|
10723
10817
|
value: value,
|
|
10724
10818
|
disabled: isDisabled,
|
|
@@ -10726,25 +10820,25 @@ var Switch = forwardRef(function (props, ref) {
|
|
|
10726
10820
|
"aria-checked": Boolean(isChecked),
|
|
10727
10821
|
onChange: handleChange
|
|
10728
10822
|
}, inputProps)), React.createElement("div", {
|
|
10729
|
-
className: "".concat(CLASSNAME$
|
|
10823
|
+
className: "".concat(CLASSNAME$Z, "__input-placeholder")
|
|
10730
10824
|
}, React.createElement("div", {
|
|
10731
|
-
className: "".concat(CLASSNAME$
|
|
10825
|
+
className: "".concat(CLASSNAME$Z, "__input-background")
|
|
10732
10826
|
}), React.createElement("div", {
|
|
10733
|
-
className: "".concat(CLASSNAME$
|
|
10827
|
+
className: "".concat(CLASSNAME$Z, "__input-indicator")
|
|
10734
10828
|
}))), Children.count(children) > 0 && React.createElement("div", {
|
|
10735
|
-
className: "".concat(CLASSNAME$
|
|
10829
|
+
className: "".concat(CLASSNAME$Z, "__content")
|
|
10736
10830
|
}, React.createElement(InputLabel, {
|
|
10737
10831
|
htmlFor: switchId,
|
|
10738
10832
|
theme: theme,
|
|
10739
|
-
className: "".concat(CLASSNAME$
|
|
10833
|
+
className: "".concat(CLASSNAME$Z, "__label")
|
|
10740
10834
|
}, children), !isEmpty(helper) && React.createElement(InputHelper, {
|
|
10741
10835
|
theme: theme,
|
|
10742
|
-
className: "".concat(CLASSNAME$
|
|
10836
|
+
className: "".concat(CLASSNAME$Z, "__helper")
|
|
10743
10837
|
}, helper)));
|
|
10744
10838
|
});
|
|
10745
|
-
Switch.displayName = COMPONENT_NAME
|
|
10746
|
-
Switch.className = CLASSNAME$
|
|
10747
|
-
Switch.defaultProps = DEFAULT_PROPS$
|
|
10839
|
+
Switch.displayName = COMPONENT_NAME$10;
|
|
10840
|
+
Switch.className = CLASSNAME$Z;
|
|
10841
|
+
Switch.defaultProps = DEFAULT_PROPS$N;
|
|
10748
10842
|
|
|
10749
10843
|
/**
|
|
10750
10844
|
* Defines the props of the component.
|
|
@@ -10753,17 +10847,17 @@ Switch.defaultProps = DEFAULT_PROPS$M;
|
|
|
10753
10847
|
/**
|
|
10754
10848
|
* Component display name.
|
|
10755
10849
|
*/
|
|
10756
|
-
var COMPONENT_NAME$
|
|
10850
|
+
var COMPONENT_NAME$11 = 'Table';
|
|
10757
10851
|
/**
|
|
10758
10852
|
* Component default class name and class prefix.
|
|
10759
10853
|
*/
|
|
10760
10854
|
|
|
10761
|
-
var CLASSNAME$
|
|
10855
|
+
var CLASSNAME$_ = getRootClassName(COMPONENT_NAME$11);
|
|
10762
10856
|
/**
|
|
10763
10857
|
* Component default props.
|
|
10764
10858
|
*/
|
|
10765
10859
|
|
|
10766
|
-
var DEFAULT_PROPS$
|
|
10860
|
+
var DEFAULT_PROPS$O = {
|
|
10767
10861
|
theme: Theme.light
|
|
10768
10862
|
};
|
|
10769
10863
|
/**
|
|
@@ -10786,16 +10880,16 @@ var Table = forwardRef(function (props, ref) {
|
|
|
10786
10880
|
ref: ref
|
|
10787
10881
|
}, forwardedProps, {
|
|
10788
10882
|
className: classnames(className, handleBasicClasses({
|
|
10789
|
-
prefix: CLASSNAME$
|
|
10883
|
+
prefix: CLASSNAME$_,
|
|
10790
10884
|
hasBefore: hasBefore,
|
|
10791
10885
|
hasDividers: hasDividers,
|
|
10792
10886
|
theme: theme
|
|
10793
10887
|
}))
|
|
10794
10888
|
}), children);
|
|
10795
10889
|
});
|
|
10796
|
-
Table.displayName = COMPONENT_NAME$
|
|
10797
|
-
Table.className = CLASSNAME$
|
|
10798
|
-
Table.defaultProps = DEFAULT_PROPS$
|
|
10890
|
+
Table.displayName = COMPONENT_NAME$11;
|
|
10891
|
+
Table.className = CLASSNAME$_;
|
|
10892
|
+
Table.defaultProps = DEFAULT_PROPS$O;
|
|
10799
10893
|
|
|
10800
10894
|
/**
|
|
10801
10895
|
* Defines the props of the component.
|
|
@@ -10804,12 +10898,12 @@ Table.defaultProps = DEFAULT_PROPS$N;
|
|
|
10804
10898
|
/**
|
|
10805
10899
|
* Component display name.
|
|
10806
10900
|
*/
|
|
10807
|
-
var COMPONENT_NAME$
|
|
10901
|
+
var COMPONENT_NAME$12 = 'TableBody';
|
|
10808
10902
|
/**
|
|
10809
10903
|
* Component default class name and class prefix.
|
|
10810
10904
|
*/
|
|
10811
10905
|
|
|
10812
|
-
var CLASSNAME
|
|
10906
|
+
var CLASSNAME$$ = getRootClassName(COMPONENT_NAME$12, true);
|
|
10813
10907
|
/**
|
|
10814
10908
|
* TableBody component.
|
|
10815
10909
|
*
|
|
@@ -10827,12 +10921,12 @@ var TableBody = forwardRef(function (props, ref) {
|
|
|
10827
10921
|
ref: ref
|
|
10828
10922
|
}, forwardedProps, {
|
|
10829
10923
|
className: classnames(className, handleBasicClasses({
|
|
10830
|
-
prefix: CLASSNAME
|
|
10924
|
+
prefix: CLASSNAME$$
|
|
10831
10925
|
}))
|
|
10832
10926
|
}), children);
|
|
10833
10927
|
});
|
|
10834
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
10835
|
-
TableBody.className = CLASSNAME
|
|
10928
|
+
TableBody.displayName = COMPONENT_NAME$12;
|
|
10929
|
+
TableBody.className = CLASSNAME$$;
|
|
10836
10930
|
|
|
10837
10931
|
/**
|
|
10838
10932
|
* Table head cell sort order.
|
|
@@ -10854,17 +10948,17 @@ var TableCellVariant = {
|
|
|
10854
10948
|
/**
|
|
10855
10949
|
* Component display name.
|
|
10856
10950
|
*/
|
|
10857
|
-
var COMPONENT_NAME$
|
|
10951
|
+
var COMPONENT_NAME$13 = 'TableCell';
|
|
10858
10952
|
/**
|
|
10859
10953
|
* Component default class name and class prefix.
|
|
10860
10954
|
*/
|
|
10861
10955
|
|
|
10862
|
-
var CLASSNAME
|
|
10956
|
+
var CLASSNAME$10 = getRootClassName(COMPONENT_NAME$13, true);
|
|
10863
10957
|
/**
|
|
10864
10958
|
* Component default props.
|
|
10865
10959
|
*/
|
|
10866
10960
|
|
|
10867
|
-
var DEFAULT_PROPS$
|
|
10961
|
+
var DEFAULT_PROPS$P = {
|
|
10868
10962
|
variant: TableCellVariant.body
|
|
10869
10963
|
};
|
|
10870
10964
|
/**
|
|
@@ -10898,39 +10992,39 @@ var TableCell = forwardRef(function (props, ref) {
|
|
|
10898
10992
|
ref: ref
|
|
10899
10993
|
}, forwardedProps, {
|
|
10900
10994
|
className: classnames(handleBasicClasses({
|
|
10901
|
-
prefix: CLASSNAME
|
|
10995
|
+
prefix: CLASSNAME$10,
|
|
10902
10996
|
isSortable: isSortable
|
|
10903
|
-
}), className, "".concat(CLASSNAME
|
|
10997
|
+
}), className, "".concat(CLASSNAME$10, "--head"), _defineProperty({}, "".concat(CLASSNAME$10, "--is-sorted"), isSortable && sortOrder)),
|
|
10904
10998
|
tabIndex: isSortable && isFunction(onHeaderClick) ? 0 : -1,
|
|
10905
10999
|
onClick: handleOnHeaderClick,
|
|
10906
11000
|
onKeyDown: onEnterPressed(handleOnHeaderClick)
|
|
10907
11001
|
}), React.createElement("div", {
|
|
10908
|
-
className: "".concat(CLASSNAME
|
|
11002
|
+
className: "".concat(CLASSNAME$10, "-wrapper")
|
|
10909
11003
|
}, icon && !isSortable && React.createElement(Icon, {
|
|
10910
|
-
className: "".concat(CLASSNAME
|
|
11004
|
+
className: "".concat(CLASSNAME$10, "-icon"),
|
|
10911
11005
|
icon: icon,
|
|
10912
11006
|
size: Size.xxs
|
|
10913
11007
|
}), isSortable && sortOrder === ThOrder.asc && React.createElement(Icon, {
|
|
10914
|
-
className: "".concat(CLASSNAME
|
|
11008
|
+
className: "".concat(CLASSNAME$10, "-icon"),
|
|
10915
11009
|
icon: mdiArrowUp,
|
|
10916
11010
|
size: Size.xxs
|
|
10917
11011
|
}), isSortable && sortOrder === ThOrder.desc && React.createElement(Icon, {
|
|
10918
|
-
className: "".concat(CLASSNAME
|
|
11012
|
+
className: "".concat(CLASSNAME$10, "-icon"),
|
|
10919
11013
|
icon: mdiArrowDown,
|
|
10920
11014
|
size: Size.xxs
|
|
10921
11015
|
}), React.createElement("div", {
|
|
10922
|
-
className: "".concat(CLASSNAME
|
|
11016
|
+
className: "".concat(CLASSNAME$10, "-content")
|
|
10923
11017
|
}, children))), variant === TableCellVariant.body && React.createElement("td", _extends({}, forwardedProps, {
|
|
10924
11018
|
className: classnames(className, handleBasicClasses({
|
|
10925
|
-
prefix: CLASSNAME
|
|
10926
|
-
}), "".concat(CLASSNAME
|
|
11019
|
+
prefix: CLASSNAME$10
|
|
11020
|
+
}), "".concat(CLASSNAME$10, "--body"))
|
|
10927
11021
|
}), React.createElement("div", {
|
|
10928
|
-
className: "".concat(CLASSNAME
|
|
11022
|
+
className: "".concat(CLASSNAME$10, "-content")
|
|
10929
11023
|
}, children)));
|
|
10930
11024
|
});
|
|
10931
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
10932
|
-
TableCell.className = CLASSNAME
|
|
10933
|
-
TableCell.defaultProps = DEFAULT_PROPS$
|
|
11025
|
+
TableCell.displayName = COMPONENT_NAME$13;
|
|
11026
|
+
TableCell.className = CLASSNAME$10;
|
|
11027
|
+
TableCell.defaultProps = DEFAULT_PROPS$P;
|
|
10934
11028
|
|
|
10935
11029
|
/**
|
|
10936
11030
|
* Defines the props of the component.
|
|
@@ -10939,17 +11033,17 @@ TableCell.defaultProps = DEFAULT_PROPS$O;
|
|
|
10939
11033
|
/**
|
|
10940
11034
|
* Component display name.
|
|
10941
11035
|
*/
|
|
10942
|
-
var COMPONENT_NAME$
|
|
11036
|
+
var COMPONENT_NAME$14 = 'TableHeader';
|
|
10943
11037
|
/**
|
|
10944
11038
|
* Component default class name and class prefix.
|
|
10945
11039
|
*/
|
|
10946
11040
|
|
|
10947
|
-
var CLASSNAME$
|
|
11041
|
+
var CLASSNAME$11 = getRootClassName(COMPONENT_NAME$14, true);
|
|
10948
11042
|
/**
|
|
10949
11043
|
* Component default props.
|
|
10950
11044
|
*/
|
|
10951
11045
|
|
|
10952
|
-
var DEFAULT_PROPS$
|
|
11046
|
+
var DEFAULT_PROPS$Q = {};
|
|
10953
11047
|
/**
|
|
10954
11048
|
* TableHeader component.
|
|
10955
11049
|
*
|
|
@@ -10967,13 +11061,13 @@ var TableHeader = forwardRef(function (props, ref) {
|
|
|
10967
11061
|
ref: ref
|
|
10968
11062
|
}, forwardedProps, {
|
|
10969
11063
|
className: classnames(className, handleBasicClasses({
|
|
10970
|
-
prefix: CLASSNAME$
|
|
11064
|
+
prefix: CLASSNAME$11
|
|
10971
11065
|
}))
|
|
10972
11066
|
}), children);
|
|
10973
11067
|
});
|
|
10974
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
10975
|
-
TableHeader.className = CLASSNAME$
|
|
10976
|
-
TableHeader.defaultProps = DEFAULT_PROPS$
|
|
11068
|
+
TableHeader.displayName = COMPONENT_NAME$14;
|
|
11069
|
+
TableHeader.className = CLASSNAME$11;
|
|
11070
|
+
TableHeader.defaultProps = DEFAULT_PROPS$Q;
|
|
10977
11071
|
|
|
10978
11072
|
/**
|
|
10979
11073
|
* Defines the props of the component.
|
|
@@ -10982,17 +11076,17 @@ TableHeader.defaultProps = DEFAULT_PROPS$P;
|
|
|
10982
11076
|
/**
|
|
10983
11077
|
* Component display name.
|
|
10984
11078
|
*/
|
|
10985
|
-
var COMPONENT_NAME$
|
|
11079
|
+
var COMPONENT_NAME$15 = 'TableRow';
|
|
10986
11080
|
/**
|
|
10987
11081
|
* Component default class name and class prefix.
|
|
10988
11082
|
*/
|
|
10989
11083
|
|
|
10990
|
-
var CLASSNAME$
|
|
11084
|
+
var CLASSNAME$12 = getRootClassName(COMPONENT_NAME$15, true);
|
|
10991
11085
|
/**
|
|
10992
11086
|
* Component default props.
|
|
10993
11087
|
*/
|
|
10994
11088
|
|
|
10995
|
-
var DEFAULT_PROPS$
|
|
11089
|
+
var DEFAULT_PROPS$R = {};
|
|
10996
11090
|
/**
|
|
10997
11091
|
* TableRow component.
|
|
10998
11092
|
*
|
|
@@ -11019,16 +11113,16 @@ var TableRow = forwardRef(function (props, ref) {
|
|
|
11019
11113
|
isClickable: isClickable && !isDisabled,
|
|
11020
11114
|
isDisabled: isDisabled,
|
|
11021
11115
|
isSelected: isSelected && !isDisabled,
|
|
11022
|
-
prefix: CLASSNAME$
|
|
11116
|
+
prefix: CLASSNAME$12
|
|
11023
11117
|
})),
|
|
11024
11118
|
"aria-disabled": isDisabled
|
|
11025
11119
|
}), children);
|
|
11026
11120
|
});
|
|
11027
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
11028
|
-
TableRow.className = CLASSNAME$
|
|
11029
|
-
TableRow.defaultProps = DEFAULT_PROPS$
|
|
11121
|
+
TableRow.displayName = COMPONENT_NAME$15;
|
|
11122
|
+
TableRow.className = CLASSNAME$12;
|
|
11123
|
+
TableRow.defaultProps = DEFAULT_PROPS$R;
|
|
11030
11124
|
|
|
11031
|
-
var DEFAULT_PROPS$
|
|
11125
|
+
var DEFAULT_PROPS$S = {
|
|
11032
11126
|
isLazy: INIT_STATE.isLazy,
|
|
11033
11127
|
shouldActivateOnFocus: INIT_STATE.shouldActivateOnFocus
|
|
11034
11128
|
};
|
|
@@ -11073,7 +11167,7 @@ var TabProvider = function TabProvider(props) {
|
|
|
11073
11167
|
value: [state, dispatch]
|
|
11074
11168
|
}, children);
|
|
11075
11169
|
};
|
|
11076
|
-
TabProvider.defaultProps = DEFAULT_PROPS$
|
|
11170
|
+
TabProvider.defaultProps = DEFAULT_PROPS$S;
|
|
11077
11171
|
|
|
11078
11172
|
var TabListLayout;
|
|
11079
11173
|
/**
|
|
@@ -11088,17 +11182,17 @@ var TabListLayout;
|
|
|
11088
11182
|
/**
|
|
11089
11183
|
* Component display name.
|
|
11090
11184
|
*/
|
|
11091
|
-
var COMPONENT_NAME$
|
|
11185
|
+
var COMPONENT_NAME$16 = 'TabList';
|
|
11092
11186
|
/**
|
|
11093
11187
|
* Component default class name and class prefix.
|
|
11094
11188
|
*/
|
|
11095
11189
|
|
|
11096
|
-
var CLASSNAME$
|
|
11190
|
+
var CLASSNAME$13 = "".concat(CSS_PREFIX, "-tabs");
|
|
11097
11191
|
/**
|
|
11098
11192
|
* Component default props.
|
|
11099
11193
|
*/
|
|
11100
11194
|
|
|
11101
|
-
var DEFAULT_PROPS$
|
|
11195
|
+
var DEFAULT_PROPS$T = {
|
|
11102
11196
|
layout: TabListLayout.fixed,
|
|
11103
11197
|
position: Alignment.left,
|
|
11104
11198
|
theme: Theme.light
|
|
@@ -11133,20 +11227,20 @@ var TabList = forwardRef(function (props, ref) {
|
|
|
11133
11227
|
ref: mergeRefs(ref, tabListRef)
|
|
11134
11228
|
}, forwardedProps, {
|
|
11135
11229
|
className: classnames(className, handleBasicClasses({
|
|
11136
|
-
prefix: CLASSNAME$
|
|
11230
|
+
prefix: CLASSNAME$13,
|
|
11137
11231
|
layout: layout,
|
|
11138
11232
|
position: position,
|
|
11139
11233
|
theme: theme
|
|
11140
11234
|
}))
|
|
11141
11235
|
}), React.createElement("div", {
|
|
11142
|
-
className: "".concat(CLASSNAME$
|
|
11236
|
+
className: "".concat(CLASSNAME$13, "__links"),
|
|
11143
11237
|
role: "tablist",
|
|
11144
11238
|
"aria-label": ariaLabel
|
|
11145
11239
|
}, children));
|
|
11146
11240
|
});
|
|
11147
|
-
TabList.displayName = COMPONENT_NAME$
|
|
11148
|
-
TabList.className = CLASSNAME$
|
|
11149
|
-
TabList.defaultProps = DEFAULT_PROPS$
|
|
11241
|
+
TabList.displayName = COMPONENT_NAME$16;
|
|
11242
|
+
TabList.className = CLASSNAME$13;
|
|
11243
|
+
TabList.defaultProps = DEFAULT_PROPS$T;
|
|
11150
11244
|
|
|
11151
11245
|
/**
|
|
11152
11246
|
* Defines the props of the component.
|
|
@@ -11155,17 +11249,17 @@ TabList.defaultProps = DEFAULT_PROPS$S;
|
|
|
11155
11249
|
/**
|
|
11156
11250
|
* Component display name.
|
|
11157
11251
|
*/
|
|
11158
|
-
var COMPONENT_NAME$
|
|
11252
|
+
var COMPONENT_NAME$17 = 'Tab';
|
|
11159
11253
|
/**
|
|
11160
11254
|
* Component default class name and class prefix.
|
|
11161
11255
|
*/
|
|
11162
11256
|
|
|
11163
|
-
var CLASSNAME$
|
|
11257
|
+
var CLASSNAME$14 = "".concat(CSS_PREFIX, "-tabs__link");
|
|
11164
11258
|
/**
|
|
11165
11259
|
* Component default props.
|
|
11166
11260
|
*/
|
|
11167
11261
|
|
|
11168
|
-
var DEFAULT_PROPS$
|
|
11262
|
+
var DEFAULT_PROPS$U = {};
|
|
11169
11263
|
/**
|
|
11170
11264
|
* Tab component.
|
|
11171
11265
|
*
|
|
@@ -11222,7 +11316,7 @@ var Tab = forwardRef(function (props, ref) {
|
|
|
11222
11316
|
type: "button",
|
|
11223
11317
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
11224
11318
|
className: classnames(className, handleBasicClasses({
|
|
11225
|
-
prefix: CLASSNAME$
|
|
11319
|
+
prefix: CLASSNAME$14,
|
|
11226
11320
|
isActive: isActive,
|
|
11227
11321
|
isDisabled: isDisabled
|
|
11228
11322
|
})),
|
|
@@ -11239,9 +11333,9 @@ var Tab = forwardRef(function (props, ref) {
|
|
|
11239
11333
|
size: Size.xs
|
|
11240
11334
|
}), label && React.createElement("span", null, label));
|
|
11241
11335
|
});
|
|
11242
|
-
Tab.displayName = COMPONENT_NAME$
|
|
11243
|
-
Tab.className = CLASSNAME$
|
|
11244
|
-
Tab.defaultProps = DEFAULT_PROPS$
|
|
11336
|
+
Tab.displayName = COMPONENT_NAME$17;
|
|
11337
|
+
Tab.className = CLASSNAME$14;
|
|
11338
|
+
Tab.defaultProps = DEFAULT_PROPS$U;
|
|
11245
11339
|
|
|
11246
11340
|
/**
|
|
11247
11341
|
* Defines the props of the component.
|
|
@@ -11250,17 +11344,17 @@ Tab.defaultProps = DEFAULT_PROPS$T;
|
|
|
11250
11344
|
/**
|
|
11251
11345
|
* Component display name.
|
|
11252
11346
|
*/
|
|
11253
|
-
var COMPONENT_NAME$
|
|
11347
|
+
var COMPONENT_NAME$18 = 'TabPanel';
|
|
11254
11348
|
/**
|
|
11255
11349
|
* Component default class name and class prefix.
|
|
11256
11350
|
*/
|
|
11257
11351
|
|
|
11258
|
-
var CLASSNAME$
|
|
11352
|
+
var CLASSNAME$15 = "".concat(CSS_PREFIX, "-tab-panel");
|
|
11259
11353
|
/**
|
|
11260
11354
|
* Component default props.
|
|
11261
11355
|
*/
|
|
11262
11356
|
|
|
11263
|
-
var DEFAULT_PROPS$
|
|
11357
|
+
var DEFAULT_PROPS$V = {};
|
|
11264
11358
|
/**
|
|
11265
11359
|
* TabPanel component.
|
|
11266
11360
|
*
|
|
@@ -11285,7 +11379,7 @@ var TabPanel = forwardRef(function (props, ref) {
|
|
|
11285
11379
|
}, forwardedProps, {
|
|
11286
11380
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
11287
11381
|
className: classnames(className, handleBasicClasses({
|
|
11288
|
-
prefix: CLASSNAME$
|
|
11382
|
+
prefix: CLASSNAME$15,
|
|
11289
11383
|
isActive: isActive
|
|
11290
11384
|
})),
|
|
11291
11385
|
role: "tabpanel",
|
|
@@ -11293,9 +11387,9 @@ var TabPanel = forwardRef(function (props, ref) {
|
|
|
11293
11387
|
"aria-labelledby": state === null || state === void 0 ? void 0 : state.tabId
|
|
11294
11388
|
}), (!(state === null || state === void 0 ? void 0 : state.isLazy) || isActive) && children);
|
|
11295
11389
|
});
|
|
11296
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
11297
|
-
TabPanel.className = CLASSNAME$
|
|
11298
|
-
TabPanel.defaultProps = DEFAULT_PROPS$
|
|
11390
|
+
TabPanel.displayName = COMPONENT_NAME$18;
|
|
11391
|
+
TabPanel.className = CLASSNAME$15;
|
|
11392
|
+
TabPanel.defaultProps = DEFAULT_PROPS$V;
|
|
11299
11393
|
|
|
11300
11394
|
/**
|
|
11301
11395
|
* Defines the props of the component.
|
|
@@ -11304,12 +11398,12 @@ TabPanel.defaultProps = DEFAULT_PROPS$U;
|
|
|
11304
11398
|
/**
|
|
11305
11399
|
* Component display name.
|
|
11306
11400
|
*/
|
|
11307
|
-
var COMPONENT_NAME$
|
|
11401
|
+
var COMPONENT_NAME$19 = 'TextField';
|
|
11308
11402
|
/**
|
|
11309
11403
|
* Component default class name and class prefix.
|
|
11310
11404
|
*/
|
|
11311
11405
|
|
|
11312
|
-
var CLASSNAME$
|
|
11406
|
+
var CLASSNAME$16 = getRootClassName(COMPONENT_NAME$19);
|
|
11313
11407
|
/**
|
|
11314
11408
|
* Default minimum number of rows in the multiline mode.
|
|
11315
11409
|
*/
|
|
@@ -11319,7 +11413,7 @@ var DEFAULT_MIN_ROWS = 2;
|
|
|
11319
11413
|
* Component default props.
|
|
11320
11414
|
*/
|
|
11321
11415
|
|
|
11322
|
-
var DEFAULT_PROPS$
|
|
11416
|
+
var DEFAULT_PROPS$W = {
|
|
11323
11417
|
theme: Theme.light,
|
|
11324
11418
|
type: 'text'
|
|
11325
11419
|
};
|
|
@@ -11411,7 +11505,7 @@ var renderInputNative = function renderInputNative(props) {
|
|
|
11411
11505
|
|
|
11412
11506
|
var inputProps = _objectSpread2({}, forwardedProps, {
|
|
11413
11507
|
id: id,
|
|
11414
|
-
className: multiline ? "".concat(CLASSNAME$
|
|
11508
|
+
className: multiline ? "".concat(CLASSNAME$16, "__input-native ").concat(CLASSNAME$16, "__input-native--textarea") : "".concat(CLASSNAME$16, "__input-native ").concat(CLASSNAME$16, "__input-native--text"),
|
|
11415
11509
|
placeholder: placeholder,
|
|
11416
11510
|
value: value,
|
|
11417
11511
|
name: name,
|
|
@@ -11516,31 +11610,31 @@ var TextField = forwardRef(function (props, ref) {
|
|
|
11516
11610
|
isDisabled: isDisabled,
|
|
11517
11611
|
isFocus: isFocus || forceFocusStyle,
|
|
11518
11612
|
isValid: isValid,
|
|
11519
|
-
prefix: CLASSNAME$
|
|
11613
|
+
prefix: CLASSNAME$16,
|
|
11520
11614
|
theme: theme
|
|
11521
11615
|
}))
|
|
11522
11616
|
}, (label || maxLength) && React.createElement("div", {
|
|
11523
|
-
className: "".concat(CLASSNAME$
|
|
11617
|
+
className: "".concat(CLASSNAME$16, "__header")
|
|
11524
11618
|
}, label && React.createElement(InputLabel, {
|
|
11525
11619
|
htmlFor: textFieldId,
|
|
11526
|
-
className: "".concat(CLASSNAME$
|
|
11620
|
+
className: "".concat(CLASSNAME$16, "__label"),
|
|
11527
11621
|
isRequired: isRequired,
|
|
11528
11622
|
theme: theme
|
|
11529
11623
|
}, label), maxLength && React.createElement("div", {
|
|
11530
|
-
className: "".concat(CLASSNAME$
|
|
11624
|
+
className: "".concat(CLASSNAME$16, "__char-counter")
|
|
11531
11625
|
}, React.createElement("span", null, maxLength - valueLength), maxLength - valueLength === 0 && React.createElement(Icon, {
|
|
11532
11626
|
icon: mdiAlertCircle,
|
|
11533
11627
|
size: Size.xxs
|
|
11534
11628
|
}))), React.createElement("div", {
|
|
11535
|
-
className: "".concat(CLASSNAME$
|
|
11629
|
+
className: "".concat(CLASSNAME$16, "__wrapper"),
|
|
11536
11630
|
ref: textFieldRef
|
|
11537
11631
|
}, icon && React.createElement(Icon, {
|
|
11538
|
-
className: "".concat(CLASSNAME$
|
|
11632
|
+
className: "".concat(CLASSNAME$16, "__input-icon"),
|
|
11539
11633
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11540
11634
|
icon: icon,
|
|
11541
11635
|
size: Size.xs
|
|
11542
11636
|
}), chips && React.createElement("div", {
|
|
11543
|
-
className: "".concat(CLASSNAME$
|
|
11637
|
+
className: "".concat(CLASSNAME$16, "__chips")
|
|
11544
11638
|
}, chips, renderInputNative(_objectSpread2({
|
|
11545
11639
|
id: textFieldId,
|
|
11546
11640
|
inputRef: inputRef,
|
|
@@ -11559,7 +11653,7 @@ var TextField = forwardRef(function (props, ref) {
|
|
|
11559
11653
|
value: value,
|
|
11560
11654
|
name: name
|
|
11561
11655
|
}, forwardedProps))), !chips && React.createElement("div", {
|
|
11562
|
-
className: "".concat(CLASSNAME$
|
|
11656
|
+
className: "".concat(CLASSNAME$16, "__input-wrapper")
|
|
11563
11657
|
}, renderInputNative(_objectSpread2({
|
|
11564
11658
|
id: textFieldId,
|
|
11565
11659
|
inputRef: inputRef,
|
|
@@ -11578,12 +11672,12 @@ var TextField = forwardRef(function (props, ref) {
|
|
|
11578
11672
|
value: value,
|
|
11579
11673
|
name: name
|
|
11580
11674
|
}, forwardedProps))), (isValid || hasError) && React.createElement(Icon, {
|
|
11581
|
-
className: "".concat(CLASSNAME$
|
|
11675
|
+
className: "".concat(CLASSNAME$16, "__input-validity"),
|
|
11582
11676
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11583
11677
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
11584
11678
|
size: Size.xxs
|
|
11585
11679
|
}), clearButtonProps && isNotEmpty && React.createElement(IconButton, _extends({}, clearButtonProps, {
|
|
11586
|
-
className: "".concat(CLASSNAME$
|
|
11680
|
+
className: "".concat(CLASSNAME$16, "__input-clear"),
|
|
11587
11681
|
icon: mdiCloseCircle,
|
|
11588
11682
|
emphasis: Emphasis.low,
|
|
11589
11683
|
size: Size.s,
|
|
@@ -11591,19 +11685,19 @@ var TextField = forwardRef(function (props, ref) {
|
|
|
11591
11685
|
onClick: onClear,
|
|
11592
11686
|
type: "button"
|
|
11593
11687
|
})), afterElement && React.createElement("div", {
|
|
11594
|
-
className: "".concat(CLASSNAME$
|
|
11688
|
+
className: "".concat(CLASSNAME$16, "__after-element")
|
|
11595
11689
|
}, afterElement)), hasError && error && React.createElement(InputHelper, {
|
|
11596
|
-
className: "".concat(CLASSNAME$
|
|
11690
|
+
className: "".concat(CLASSNAME$16, "__helper"),
|
|
11597
11691
|
kind: Kind.error,
|
|
11598
11692
|
theme: theme
|
|
11599
11693
|
}, error), helper && React.createElement(InputHelper, {
|
|
11600
|
-
className: "".concat(CLASSNAME$
|
|
11694
|
+
className: "".concat(CLASSNAME$16, "__helper"),
|
|
11601
11695
|
theme: theme
|
|
11602
11696
|
}, helper));
|
|
11603
11697
|
});
|
|
11604
|
-
TextField.displayName = COMPONENT_NAME$
|
|
11605
|
-
TextField.className = CLASSNAME$
|
|
11606
|
-
TextField.defaultProps = DEFAULT_PROPS$
|
|
11698
|
+
TextField.displayName = COMPONENT_NAME$19;
|
|
11699
|
+
TextField.className = CLASSNAME$16;
|
|
11700
|
+
TextField.defaultProps = DEFAULT_PROPS$W;
|
|
11607
11701
|
|
|
11608
11702
|
function getState(img, event) {
|
|
11609
11703
|
// Error event occurred or image loaded empty.
|
|
@@ -11767,17 +11861,17 @@ var useFocusPointStyle = function useFocusPointStyle(_ref2, element, isLoaded) {
|
|
|
11767
11861
|
/**
|
|
11768
11862
|
* Component display name.
|
|
11769
11863
|
*/
|
|
11770
|
-
var COMPONENT_NAME$
|
|
11864
|
+
var COMPONENT_NAME$1a = 'Thumbnail';
|
|
11771
11865
|
/**
|
|
11772
11866
|
* Component default class name and class prefix.
|
|
11773
11867
|
*/
|
|
11774
11868
|
|
|
11775
|
-
var CLASSNAME$
|
|
11869
|
+
var CLASSNAME$17 = getRootClassName(COMPONENT_NAME$1a);
|
|
11776
11870
|
/**
|
|
11777
11871
|
* Component default props.
|
|
11778
11872
|
*/
|
|
11779
11873
|
|
|
11780
|
-
var DEFAULT_PROPS$
|
|
11874
|
+
var DEFAULT_PROPS$X = {
|
|
11781
11875
|
fallback: mdiImageBroken,
|
|
11782
11876
|
loading: 'lazy',
|
|
11783
11877
|
theme: Theme.light
|
|
@@ -11858,7 +11952,7 @@ var Thumbnail = forwardRef(function (props, ref) {
|
|
|
11858
11952
|
className: classnames(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, className, handleBasicClasses({
|
|
11859
11953
|
align: align,
|
|
11860
11954
|
aspectRatio: aspectRatio,
|
|
11861
|
-
prefix: CLASSNAME$
|
|
11955
|
+
prefix: CLASSNAME$17,
|
|
11862
11956
|
size: size,
|
|
11863
11957
|
theme: theme,
|
|
11864
11958
|
variant: variant,
|
|
@@ -11868,14 +11962,14 @@ var Thumbnail = forwardRef(function (props, ref) {
|
|
|
11868
11962
|
hasCustomErrorFallback: hasCustomErrorFallback,
|
|
11869
11963
|
isLoading: isLoading,
|
|
11870
11964
|
hasBadge: !!badge
|
|
11871
|
-
}), fillHeight && "".concat(CLASSNAME$
|
|
11965
|
+
}), fillHeight && "".concat(CLASSNAME$17, "--fill-height"))
|
|
11872
11966
|
}), React.createElement("div", {
|
|
11873
|
-
className: "".concat(CLASSNAME$
|
|
11967
|
+
className: "".concat(CLASSNAME$17, "__background")
|
|
11874
11968
|
}, React.createElement("img", _extends({}, imgProps, {
|
|
11875
11969
|
style: _objectSpread2({}, imgProps === null || imgProps === void 0 ? void 0 : imgProps.style, {}, imageErrorStyle, {}, focusPointStyle),
|
|
11876
11970
|
ref: mergeRefs(setImgElement, propImgRef),
|
|
11877
11971
|
className: classnames(handleBasicClasses({
|
|
11878
|
-
prefix: "".concat(CLASSNAME$
|
|
11972
|
+
prefix: "".concat(CLASSNAME$17, "__image"),
|
|
11879
11973
|
isLoading: isLoading,
|
|
11880
11974
|
hasDefinedSize: Boolean((imgProps === null || imgProps === void 0 ? void 0 : imgProps.height) && imgProps.width)
|
|
11881
11975
|
}), imgProps === null || imgProps === void 0 ? void 0 : imgProps.className),
|
|
@@ -11884,18 +11978,18 @@ var Thumbnail = forwardRef(function (props, ref) {
|
|
|
11884
11978
|
alt: alt,
|
|
11885
11979
|
loading: loading
|
|
11886
11980
|
})), !isLoading && hasError && React.createElement("div", {
|
|
11887
|
-
className: "".concat(CLASSNAME$
|
|
11981
|
+
className: "".concat(CLASSNAME$17, "__fallback")
|
|
11888
11982
|
}, hasIconErrorFallback ? React.createElement(Icon, {
|
|
11889
11983
|
icon: fallback,
|
|
11890
11984
|
size: Size.xxs,
|
|
11891
11985
|
theme: theme
|
|
11892
11986
|
}) : fallback)), badge && React.cloneElement(badge, {
|
|
11893
|
-
className: classnames("".concat(CLASSNAME$
|
|
11987
|
+
className: classnames("".concat(CLASSNAME$17, "__badge"), badge.props.className)
|
|
11894
11988
|
}));
|
|
11895
11989
|
});
|
|
11896
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
11897
|
-
Thumbnail.className = CLASSNAME$
|
|
11898
|
-
Thumbnail.defaultProps = DEFAULT_PROPS$
|
|
11990
|
+
Thumbnail.displayName = COMPONENT_NAME$1a;
|
|
11991
|
+
Thumbnail.className = CLASSNAME$17;
|
|
11992
|
+
Thumbnail.defaultProps = DEFAULT_PROPS$X;
|
|
11899
11993
|
|
|
11900
11994
|
/**
|
|
11901
11995
|
* All available aspect ratios.
|
|
@@ -11921,17 +12015,17 @@ var ThumbnailVariant = {
|
|
|
11921
12015
|
/**
|
|
11922
12016
|
* Component display name.
|
|
11923
12017
|
*/
|
|
11924
|
-
var COMPONENT_NAME$
|
|
12018
|
+
var COMPONENT_NAME$1b = 'Toolbar';
|
|
11925
12019
|
/**
|
|
11926
12020
|
* Component default class name and class prefix.
|
|
11927
12021
|
*/
|
|
11928
12022
|
|
|
11929
|
-
var CLASSNAME$
|
|
12023
|
+
var CLASSNAME$18 = getRootClassName(COMPONENT_NAME$1b);
|
|
11930
12024
|
/**
|
|
11931
12025
|
* Component default props.
|
|
11932
12026
|
*/
|
|
11933
12027
|
|
|
11934
|
-
var DEFAULT_PROPS$
|
|
12028
|
+
var DEFAULT_PROPS$Y = {};
|
|
11935
12029
|
/**
|
|
11936
12030
|
* Toolbar component.
|
|
11937
12031
|
*
|
|
@@ -11954,19 +12048,19 @@ var Toolbar = forwardRef(function (props, ref) {
|
|
|
11954
12048
|
hasAfter: Boolean(after),
|
|
11955
12049
|
hasBefore: Boolean(before),
|
|
11956
12050
|
hasLabel: Boolean(label),
|
|
11957
|
-
prefix: CLASSNAME$
|
|
12051
|
+
prefix: CLASSNAME$18
|
|
11958
12052
|
}))
|
|
11959
12053
|
}), before && React.createElement("div", {
|
|
11960
|
-
className: "".concat(CLASSNAME$
|
|
12054
|
+
className: "".concat(CLASSNAME$18, "__before")
|
|
11961
12055
|
}, before), label && React.createElement("div", {
|
|
11962
|
-
className: "".concat(CLASSNAME$
|
|
12056
|
+
className: "".concat(CLASSNAME$18, "__label")
|
|
11963
12057
|
}, label), after && React.createElement("div", {
|
|
11964
|
-
className: "".concat(CLASSNAME$
|
|
12058
|
+
className: "".concat(CLASSNAME$18, "__after")
|
|
11965
12059
|
}, after));
|
|
11966
12060
|
});
|
|
11967
|
-
Toolbar.displayName = COMPONENT_NAME$
|
|
11968
|
-
Toolbar.className = CLASSNAME$
|
|
11969
|
-
Toolbar.defaultProps = DEFAULT_PROPS$
|
|
12061
|
+
Toolbar.displayName = COMPONENT_NAME$1b;
|
|
12062
|
+
Toolbar.className = CLASSNAME$18;
|
|
12063
|
+
Toolbar.defaultProps = DEFAULT_PROPS$Y;
|
|
11970
12064
|
|
|
11971
12065
|
/**
|
|
11972
12066
|
* Add ref and ARIA attribute(s) in tooltip children or wrapped children.
|
|
@@ -12142,17 +12236,17 @@ function useTooltipOpen(delay, anchorElement) {
|
|
|
12142
12236
|
/**
|
|
12143
12237
|
* Component display name.
|
|
12144
12238
|
*/
|
|
12145
|
-
var COMPONENT_NAME$
|
|
12239
|
+
var COMPONENT_NAME$1c = 'Tooltip';
|
|
12146
12240
|
/**
|
|
12147
12241
|
* Component default class name and class prefix.
|
|
12148
12242
|
*/
|
|
12149
12243
|
|
|
12150
|
-
var CLASSNAME$
|
|
12244
|
+
var CLASSNAME$19 = getRootClassName(COMPONENT_NAME$1c);
|
|
12151
12245
|
/**
|
|
12152
12246
|
* Component default props.
|
|
12153
12247
|
*/
|
|
12154
12248
|
|
|
12155
|
-
var DEFAULT_PROPS$
|
|
12249
|
+
var DEFAULT_PROPS$Z = {
|
|
12156
12250
|
placement: Placement.BOTTOM
|
|
12157
12251
|
};
|
|
12158
12252
|
/**
|
|
@@ -12220,23 +12314,23 @@ var Tooltip = forwardRef(function (props, ref) {
|
|
|
12220
12314
|
role: "tooltip",
|
|
12221
12315
|
"aria-label": label,
|
|
12222
12316
|
className: classnames(className, handleBasicClasses({
|
|
12223
|
-
prefix: CLASSNAME$
|
|
12317
|
+
prefix: CLASSNAME$19,
|
|
12224
12318
|
position: position
|
|
12225
12319
|
})),
|
|
12226
12320
|
style: styles.popper
|
|
12227
12321
|
}, attributes.popper), React.createElement("div", {
|
|
12228
|
-
className: "".concat(CLASSNAME$
|
|
12322
|
+
className: "".concat(CLASSNAME$19, "__arrow")
|
|
12229
12323
|
}), React.createElement("div", {
|
|
12230
|
-
className: "".concat(CLASSNAME$
|
|
12324
|
+
className: "".concat(CLASSNAME$19, "__inner")
|
|
12231
12325
|
}, label.indexOf('\n') !== -1 ? label.split('\n').map(function (sentence) {
|
|
12232
12326
|
return React.createElement("p", {
|
|
12233
12327
|
key: sentence
|
|
12234
12328
|
}, sentence);
|
|
12235
12329
|
}) : label)), document.body));
|
|
12236
12330
|
});
|
|
12237
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
12238
|
-
Tooltip.className = CLASSNAME$
|
|
12239
|
-
Tooltip.defaultProps = DEFAULT_PROPS$
|
|
12331
|
+
Tooltip.displayName = COMPONENT_NAME$1c;
|
|
12332
|
+
Tooltip.className = CLASSNAME$19;
|
|
12333
|
+
Tooltip.defaultProps = DEFAULT_PROPS$Z;
|
|
12240
12334
|
|
|
12241
12335
|
/**
|
|
12242
12336
|
* Uploader variants.
|
|
@@ -12251,17 +12345,17 @@ var UploaderVariant = {
|
|
|
12251
12345
|
/**
|
|
12252
12346
|
* Component display name.
|
|
12253
12347
|
*/
|
|
12254
|
-
var COMPONENT_NAME$
|
|
12348
|
+
var COMPONENT_NAME$1d = 'Uploader';
|
|
12255
12349
|
/**
|
|
12256
12350
|
* Component default class name and class prefix.
|
|
12257
12351
|
*/
|
|
12258
12352
|
|
|
12259
|
-
var CLASSNAME$
|
|
12353
|
+
var CLASSNAME$1a = getRootClassName(COMPONENT_NAME$1d);
|
|
12260
12354
|
/**
|
|
12261
12355
|
* Component default props.
|
|
12262
12356
|
*/
|
|
12263
12357
|
|
|
12264
|
-
var DEFAULT_PROPS$
|
|
12358
|
+
var DEFAULT_PROPS$_ = {
|
|
12265
12359
|
aspectRatio: AspectRatio.horizontal,
|
|
12266
12360
|
size: Size.xl,
|
|
12267
12361
|
theme: Theme.light,
|
|
@@ -12292,42 +12386,42 @@ var Uploader = forwardRef(function (props, ref) {
|
|
|
12292
12386
|
}, forwardedProps, {
|
|
12293
12387
|
className: classnames(className, handleBasicClasses({
|
|
12294
12388
|
aspectRatio: adjustedAspectRatio,
|
|
12295
|
-
prefix: CLASSNAME$
|
|
12389
|
+
prefix: CLASSNAME$1a,
|
|
12296
12390
|
size: size,
|
|
12297
12391
|
theme: theme,
|
|
12298
12392
|
variant: variant
|
|
12299
12393
|
}))
|
|
12300
12394
|
}), React.createElement("div", {
|
|
12301
|
-
className: "".concat(CLASSNAME$
|
|
12395
|
+
className: "".concat(CLASSNAME$1a, "__background")
|
|
12302
12396
|
}), React.createElement("div", {
|
|
12303
|
-
className: "".concat(CLASSNAME$
|
|
12397
|
+
className: "".concat(CLASSNAME$1a, "__wrapper")
|
|
12304
12398
|
}, icon && React.createElement("div", {
|
|
12305
|
-
className: "".concat(CLASSNAME$
|
|
12399
|
+
className: "".concat(CLASSNAME$1a, "__icon")
|
|
12306
12400
|
}, React.createElement(Icon, {
|
|
12307
12401
|
icon: icon,
|
|
12308
12402
|
size: Size.s
|
|
12309
12403
|
})), label && React.createElement("span", {
|
|
12310
|
-
className: "".concat(CLASSNAME$
|
|
12404
|
+
className: "".concat(CLASSNAME$1a, "__label")
|
|
12311
12405
|
}, label)));
|
|
12312
12406
|
});
|
|
12313
|
-
Uploader.displayName = COMPONENT_NAME$
|
|
12314
|
-
Uploader.className = CLASSNAME$
|
|
12315
|
-
Uploader.defaultProps = DEFAULT_PROPS$
|
|
12407
|
+
Uploader.displayName = COMPONENT_NAME$1d;
|
|
12408
|
+
Uploader.className = CLASSNAME$1a;
|
|
12409
|
+
Uploader.defaultProps = DEFAULT_PROPS$_;
|
|
12316
12410
|
|
|
12317
12411
|
/**
|
|
12318
12412
|
* Component display name.
|
|
12319
12413
|
*/
|
|
12320
|
-
var COMPONENT_NAME$
|
|
12414
|
+
var COMPONENT_NAME$1e = 'UserBlock';
|
|
12321
12415
|
/**
|
|
12322
12416
|
* Component default class name and class prefix.
|
|
12323
12417
|
*/
|
|
12324
12418
|
|
|
12325
|
-
var CLASSNAME$
|
|
12419
|
+
var CLASSNAME$1b = getRootClassName(COMPONENT_NAME$1e);
|
|
12326
12420
|
/**
|
|
12327
12421
|
* Component default props.
|
|
12328
12422
|
*/
|
|
12329
12423
|
|
|
12330
|
-
var DEFAULT_PROPS
|
|
12424
|
+
var DEFAULT_PROPS$$ = {
|
|
12331
12425
|
orientation: Orientation.horizontal,
|
|
12332
12426
|
size: Size.m,
|
|
12333
12427
|
theme: Theme.light
|
|
@@ -12375,7 +12469,7 @@ var UserBlock = forwardRef(function (props, ref) {
|
|
|
12375
12469
|
var NameComponent = 'span';
|
|
12376
12470
|
|
|
12377
12471
|
var nProps = _objectSpread2({}, nameProps, {
|
|
12378
|
-
className: classnames("".concat(CLASSNAME$
|
|
12472
|
+
className: classnames("".concat(CLASSNAME$1b, "__name"), linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, nameProps === null || nameProps === void 0 ? void 0 : nameProps.className)
|
|
12379
12473
|
});
|
|
12380
12474
|
|
|
12381
12475
|
if (isClickable) {
|
|
@@ -12395,18 +12489,18 @@ var UserBlock = forwardRef(function (props, ref) {
|
|
|
12395
12489
|
return React.createElement(NameComponent, nProps, name);
|
|
12396
12490
|
}, [avatarProps, isClickable, linkAs, linkProps, name, nameProps, onClick]);
|
|
12397
12491
|
var fieldsBlock = fields && componentSize !== Size.s && React.createElement("div", {
|
|
12398
|
-
className: "".concat(CLASSNAME$
|
|
12492
|
+
className: "".concat(CLASSNAME$1b, "__fields")
|
|
12399
12493
|
}, fields.map(function (field, idx) {
|
|
12400
12494
|
return React.createElement("span", {
|
|
12401
12495
|
key: idx,
|
|
12402
|
-
className: "".concat(CLASSNAME$
|
|
12496
|
+
className: "".concat(CLASSNAME$1b, "__field")
|
|
12403
12497
|
}, field);
|
|
12404
12498
|
}));
|
|
12405
12499
|
return React.createElement("div", _extends({
|
|
12406
12500
|
ref: ref
|
|
12407
12501
|
}, forwardedProps, {
|
|
12408
12502
|
className: classnames(className, handleBasicClasses({
|
|
12409
|
-
prefix: CLASSNAME$
|
|
12503
|
+
prefix: CLASSNAME$1b,
|
|
12410
12504
|
orientation: orientation,
|
|
12411
12505
|
size: componentSize,
|
|
12412
12506
|
theme: theme,
|
|
@@ -12419,21 +12513,21 @@ var UserBlock = forwardRef(function (props, ref) {
|
|
|
12419
12513
|
linkProps: linkProps,
|
|
12420
12514
|
alt: ""
|
|
12421
12515
|
}, avatarProps, {
|
|
12422
|
-
className: classnames("".concat(CLASSNAME$
|
|
12516
|
+
className: classnames("".concat(CLASSNAME$1b, "__avatar"), avatarProps.className),
|
|
12423
12517
|
size: componentSize,
|
|
12424
12518
|
onClick: onClick,
|
|
12425
12519
|
theme: theme
|
|
12426
12520
|
})), (fields || name) && React.createElement("div", {
|
|
12427
|
-
className: "".concat(CLASSNAME$
|
|
12521
|
+
className: "".concat(CLASSNAME$1b, "__wrapper")
|
|
12428
12522
|
}, nameBlock, fieldsBlock), shouldDisplayActions && simpleAction && React.createElement("div", {
|
|
12429
|
-
className: "".concat(CLASSNAME$
|
|
12523
|
+
className: "".concat(CLASSNAME$1b, "__action")
|
|
12430
12524
|
}, simpleAction), shouldDisplayActions && multipleActions && React.createElement("div", {
|
|
12431
|
-
className: "".concat(CLASSNAME$
|
|
12525
|
+
className: "".concat(CLASSNAME$1b, "__actions")
|
|
12432
12526
|
}, multipleActions));
|
|
12433
12527
|
});
|
|
12434
|
-
UserBlock.displayName = COMPONENT_NAME$
|
|
12435
|
-
UserBlock.className = CLASSNAME$
|
|
12436
|
-
UserBlock.defaultProps = DEFAULT_PROPS
|
|
12528
|
+
UserBlock.displayName = COMPONENT_NAME$1e;
|
|
12529
|
+
UserBlock.className = CLASSNAME$1b;
|
|
12530
|
+
UserBlock.defaultProps = DEFAULT_PROPS$$;
|
|
12437
12531
|
|
|
12438
|
-
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, Grid, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, 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 };
|
|
12532
|
+
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 };
|
|
12439
12533
|
//# sourceMappingURL=index.js.map
|