@lumx/react 3.21.2-alpha.0 → 3.21.2-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/index.d.ts +0 -3
- package/index.js +190 -220
- package/index.js.map +1 -1
- package/package.json +4 -3
package/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Kind, Size, ColorPalette, Emphasis, Theme, AspectRatio, DIALOG_TRANSITION_DURATION, Orientation, Typography, Alignment, ColorVariant, NOTIFICATION_TRANSITION_DURATION, TOOLTIP_LONG_PRESS_DELAY, TOOLTIP_HOVER_DELAY } from '@lumx/core/js/constants';
|
|
1
|
+
import { Kind, Size, ColorPalette, Emphasis, Theme, AspectRatio, DIALOG_TRANSITION_DURATION, Orientation, Typography, Alignment, ColorVariant as ColorVariant$1, NOTIFICATION_TRANSITION_DURATION, TOOLTIP_LONG_PRESS_DELAY, TOOLTIP_HOVER_DELAY } from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/constants';
|
|
3
3
|
export * from '@lumx/core/js/types';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { useState, useEffect, useMemo, useRef, useCallback, Children, useLayoutEffect, cloneElement, createContext, isValidElement, useContext, useReducer } from 'react';
|
|
6
|
+
import classNames from 'classnames';
|
|
6
7
|
import { mdiAlert } from '@lumx/icons/esm/alert';
|
|
7
8
|
import { mdiAlertCircle } from '@lumx/icons/esm/alert-circle';
|
|
8
9
|
import { mdiCheckCircle } from '@lumx/icons/esm/check-circle';
|
|
@@ -10,8 +11,8 @@ import { mdiInformation } from '@lumx/icons/esm/information';
|
|
|
10
11
|
import isBoolean from 'lodash/isBoolean';
|
|
11
12
|
import isEmpty from 'lodash/isEmpty';
|
|
12
13
|
import kebabCase from 'lodash/kebabCase';
|
|
13
|
-
import { classNames as classNames$1, onEnterPressed, onEscapePressed, onButtonPressed, detectHorizontalSwipe } from '@lumx/core/js/utils';
|
|
14
14
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
15
|
+
import { onEnterPressed, onEscapePressed, onButtonPressed, detectHorizontalSwipe } from '@lumx/core/js/utils';
|
|
15
16
|
import last from 'lodash/last';
|
|
16
17
|
import pull from 'lodash/pull';
|
|
17
18
|
import get from 'lodash/get';
|
|
@@ -53,79 +54,6 @@ import { mdiArrowDown } from '@lumx/icons/esm/arrow-down';
|
|
|
53
54
|
import { mdiArrowUp } from '@lumx/icons/esm/arrow-up';
|
|
54
55
|
import set from 'lodash/set';
|
|
55
56
|
|
|
56
|
-
function getDefaultExportFromCjs (x) {
|
|
57
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
var classnames = {exports: {}};
|
|
61
|
-
|
|
62
|
-
/*!
|
|
63
|
-
Copyright (c) 2018 Jed Watson.
|
|
64
|
-
Licensed under the MIT License (MIT), see
|
|
65
|
-
http://jedwatson.github.io/classnames
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
var hasRequiredClassnames;
|
|
69
|
-
|
|
70
|
-
function requireClassnames () {
|
|
71
|
-
if (hasRequiredClassnames) return classnames.exports;
|
|
72
|
-
hasRequiredClassnames = 1;
|
|
73
|
-
(function (module) {
|
|
74
|
-
/* global define */
|
|
75
|
-
|
|
76
|
-
(function () {
|
|
77
|
-
|
|
78
|
-
var hasOwn = {}.hasOwnProperty;
|
|
79
|
-
|
|
80
|
-
function classNames() {
|
|
81
|
-
var classes = [];
|
|
82
|
-
|
|
83
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
84
|
-
var arg = arguments[i];
|
|
85
|
-
if (!arg) continue;
|
|
86
|
-
|
|
87
|
-
var argType = typeof arg;
|
|
88
|
-
|
|
89
|
-
if (argType === 'string' || argType === 'number') {
|
|
90
|
-
classes.push(arg);
|
|
91
|
-
} else if (Array.isArray(arg)) {
|
|
92
|
-
if (arg.length) {
|
|
93
|
-
var inner = classNames.apply(null, arg);
|
|
94
|
-
if (inner) {
|
|
95
|
-
classes.push(inner);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
} else if (argType === 'object') {
|
|
99
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
100
|
-
classes.push(arg.toString());
|
|
101
|
-
continue;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
for (var key in arg) {
|
|
105
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
106
|
-
classes.push(key);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return classes.join(' ');
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (module.exports) {
|
|
116
|
-
classNames.default = classNames;
|
|
117
|
-
module.exports = classNames;
|
|
118
|
-
} else {
|
|
119
|
-
window.classNames = classNames;
|
|
120
|
-
}
|
|
121
|
-
}());
|
|
122
|
-
} (classnames));
|
|
123
|
-
return classnames.exports;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
var classnamesExports = requireClassnames();
|
|
127
|
-
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
128
|
-
|
|
129
57
|
/**
|
|
130
58
|
* Get the basic CSS class for the given type.
|
|
131
59
|
*
|
|
@@ -194,6 +122,43 @@ function handleBasicClasses({
|
|
|
194
122
|
return classNames(prefix, otherClasses);
|
|
195
123
|
}
|
|
196
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Returns the classname associated to the given typography.
|
|
127
|
+
* For example, for `Typography.title` it returns `lumx-typography-title`
|
|
128
|
+
*/
|
|
129
|
+
const getTypographyClassName = typography => {
|
|
130
|
+
return `lumx-typography-${typography}`;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Alignments.
|
|
135
|
+
*/
|
|
136
|
+
/**
|
|
137
|
+
* See SCSS variable $lumx-color-variants
|
|
138
|
+
*/
|
|
139
|
+
const ColorVariant = {
|
|
140
|
+
N: 'N'
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/** ColorPalette with all possible color variant combination */
|
|
144
|
+
|
|
145
|
+
/** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
|
|
146
|
+
function resolveColorWithVariants(colorWithVariants, colorVariant) {
|
|
147
|
+
if (!colorWithVariants) return [undefined, colorVariant];
|
|
148
|
+
const [color, baseColorVariant] = colorWithVariants.split('-');
|
|
149
|
+
return [color, colorVariant || baseColorVariant];
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Returns the classname associated to the given color and variant.
|
|
154
|
+
* For example, for 'dark' and 'L2' it returns `lumx-color-font-dark-L2`
|
|
155
|
+
*/
|
|
156
|
+
function fontColorClass(propColor, propColorVariant) {
|
|
157
|
+
if (!propColor) return undefined;
|
|
158
|
+
const [color, colorVariant = ColorVariant.N] = resolveColorWithVariants(propColor, propColorVariant);
|
|
159
|
+
return `lumx-color-font-${color}-${colorVariant}`;
|
|
160
|
+
}
|
|
161
|
+
|
|
197
162
|
let i = 0;
|
|
198
163
|
|
|
199
164
|
/**
|
|
@@ -311,7 +276,7 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
311
276
|
'aria-describedby': descriptionId,
|
|
312
277
|
...dialogProps
|
|
313
278
|
},
|
|
314
|
-
className: classNames
|
|
279
|
+
className: classNames(className, handleBasicClasses({
|
|
315
280
|
kind,
|
|
316
281
|
prefix: CLASSNAME$1i
|
|
317
282
|
})),
|
|
@@ -522,7 +487,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
522
487
|
return /*#__PURE__*/jsxs("div", {
|
|
523
488
|
ref: ref,
|
|
524
489
|
...forwardedProps,
|
|
525
|
-
className: classNames
|
|
490
|
+
className: classNames(className, CLASSNAME$1h),
|
|
526
491
|
children: [/*#__PURE__*/jsx(TextField, {
|
|
527
492
|
...textFieldProps,
|
|
528
493
|
chips: chips,
|
|
@@ -654,7 +619,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
654
619
|
ref: ref,
|
|
655
620
|
...forwardedProps,
|
|
656
621
|
anchorToInput: anchorToInput,
|
|
657
|
-
className: classNames
|
|
622
|
+
className: classNames(className, CLASSNAME$1g),
|
|
658
623
|
name: name,
|
|
659
624
|
value: value,
|
|
660
625
|
onChange: onChange,
|
|
@@ -735,7 +700,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
735
700
|
return /*#__PURE__*/jsxs("div", {
|
|
736
701
|
ref: ref,
|
|
737
702
|
...forwardedProps,
|
|
738
|
-
className: classNames
|
|
703
|
+
className: classNames(className, handleBasicClasses({
|
|
739
704
|
prefix: CLASSNAME$1f,
|
|
740
705
|
size,
|
|
741
706
|
theme
|
|
@@ -799,7 +764,7 @@ const Badge = forwardRef((props, ref) => {
|
|
|
799
764
|
return /*#__PURE__*/jsx("div", {
|
|
800
765
|
ref: ref,
|
|
801
766
|
...forwardedProps,
|
|
802
|
-
className: classNames
|
|
767
|
+
className: classNames(className, handleBasicClasses({
|
|
803
768
|
prefix: CLASSNAME$1e,
|
|
804
769
|
color
|
|
805
770
|
})),
|
|
@@ -824,7 +789,7 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
824
789
|
return /*#__PURE__*/jsxs("div", {
|
|
825
790
|
ref: ref,
|
|
826
791
|
...forwardedProps,
|
|
827
|
-
className: classNames
|
|
792
|
+
className: classNames(className, CLASSNAME$1d),
|
|
828
793
|
children: [children, badge && /*#__PURE__*/jsx("div", {
|
|
829
794
|
className: `${CLASSNAME$1d}__badge`,
|
|
830
795
|
children: badge
|
|
@@ -923,7 +888,7 @@ const renderButtonWrapper = props => {
|
|
|
923
888
|
fullWidth
|
|
924
889
|
} = props;
|
|
925
890
|
const adaptedColor = emphasis === Emphasis.low && (color === ColorPalette.light ? ColorPalette.dark : ColorPalette.light);
|
|
926
|
-
const wrapperClassName = classNames
|
|
891
|
+
const wrapperClassName = classNames(handleBasicClasses({
|
|
927
892
|
color: adaptedColor,
|
|
928
893
|
prefix: BUTTON_WRAPPER_CLASSNAME,
|
|
929
894
|
variant,
|
|
@@ -981,7 +946,7 @@ const ButtonRoot = forwardRef((props, ref) => {
|
|
|
981
946
|
color: adaptedColor
|
|
982
947
|
});
|
|
983
948
|
}
|
|
984
|
-
const buttonClassName = classNames
|
|
949
|
+
const buttonClassName = classNames(className, handleBasicClasses({
|
|
985
950
|
color: adaptedColor,
|
|
986
951
|
emphasis,
|
|
987
952
|
isSelected,
|
|
@@ -1052,7 +1017,7 @@ const Button = forwardRef((props, ref) => {
|
|
|
1052
1017
|
theme = defaultTheme,
|
|
1053
1018
|
...forwardedProps
|
|
1054
1019
|
} = props;
|
|
1055
|
-
const buttonClassName = classNames
|
|
1020
|
+
const buttonClassName = classNames(className, getBasicClass({
|
|
1056
1021
|
prefix: CLASSNAME$1c,
|
|
1057
1022
|
type: 'hasLeftIcon',
|
|
1058
1023
|
value: !isEmpty(leftIcon)
|
|
@@ -1191,7 +1156,7 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1191
1156
|
return /*#__PURE__*/jsx("div", {
|
|
1192
1157
|
ref: ref,
|
|
1193
1158
|
...forwardedProps,
|
|
1194
|
-
className: classNames
|
|
1159
|
+
className: classNames(className, CLASSNAME$1a),
|
|
1195
1160
|
children: children
|
|
1196
1161
|
});
|
|
1197
1162
|
});
|
|
@@ -1268,7 +1233,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
1268
1233
|
return /*#__PURE__*/jsxs("div", {
|
|
1269
1234
|
ref: ref,
|
|
1270
1235
|
...forwardedProps,
|
|
1271
|
-
className: classNames
|
|
1236
|
+
className: classNames(className, handleBasicClasses({
|
|
1272
1237
|
// Whether state is intermediate class name will "-checked"
|
|
1273
1238
|
isChecked: intermediateState ? true : isChecked,
|
|
1274
1239
|
isDisabled: isAnyDisabled,
|
|
@@ -1413,7 +1378,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1413
1378
|
...forwardedProps,
|
|
1414
1379
|
href: !disabledStateProps.disabled ? href : undefined,
|
|
1415
1380
|
ref: ref,
|
|
1416
|
-
className: classNames
|
|
1381
|
+
className: classNames(className, handleBasicClasses({
|
|
1417
1382
|
clickable: isClickable,
|
|
1418
1383
|
color: chipColor,
|
|
1419
1384
|
isDisabled: isAnyDisabled,
|
|
@@ -1432,7 +1397,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1432
1397
|
/*#__PURE__*/
|
|
1433
1398
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
1434
1399
|
jsx("div", {
|
|
1435
|
-
className: classNames
|
|
1400
|
+
className: classNames(`${CLASSNAME$18}__before`, {
|
|
1436
1401
|
[`${CLASSNAME$18}__before--is-clickable`]: hasBeforeClick
|
|
1437
1402
|
}),
|
|
1438
1403
|
onClick: handleOnBeforeClick,
|
|
@@ -1444,7 +1409,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
1444
1409
|
/*#__PURE__*/
|
|
1445
1410
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
1446
1411
|
jsx("div", {
|
|
1447
|
-
className: classNames
|
|
1412
|
+
className: classNames(`${CLASSNAME$18}__after`, {
|
|
1448
1413
|
[`${CLASSNAME$18}__after--is-clickable`]: hasAfterClick
|
|
1449
1414
|
}),
|
|
1450
1415
|
onClick: handleOnAfterClick,
|
|
@@ -1540,7 +1505,7 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
1540
1505
|
return /*#__PURE__*/jsx("div", {
|
|
1541
1506
|
ref: ref,
|
|
1542
1507
|
...forwardedProps,
|
|
1543
|
-
className: classNames
|
|
1508
|
+
className: classNames(className, CLASSNAME$17),
|
|
1544
1509
|
children: children
|
|
1545
1510
|
});
|
|
1546
1511
|
});
|
|
@@ -1612,7 +1577,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
1612
1577
|
const hasChildren = Children.count(children) > 0;
|
|
1613
1578
|
return /*#__PURE__*/jsxs("div", {
|
|
1614
1579
|
ref: ref,
|
|
1615
|
-
className: classNames
|
|
1580
|
+
className: classNames(className, handleBasicClasses({
|
|
1616
1581
|
hasChildren: hasChildren && isOpen,
|
|
1617
1582
|
hasIndentedChildren: hasChildren && variant === CommentBlockVariant.indented,
|
|
1618
1583
|
hasLinearChildren: hasChildren && variant === CommentBlockVariant.linear,
|
|
@@ -1919,6 +1884,26 @@ function formatDayNumber(locale, date) {
|
|
|
1919
1884
|
return formattedDate;
|
|
1920
1885
|
}
|
|
1921
1886
|
|
|
1887
|
+
/**
|
|
1888
|
+
* Optional global `window` instance (not defined when running SSR).
|
|
1889
|
+
*/
|
|
1890
|
+
const WINDOW = typeof window !== 'undefined' ? window : undefined;
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* Optional global `document` instance (not defined when running SSR).
|
|
1894
|
+
*/
|
|
1895
|
+
const DOCUMENT = typeof document !== 'undefined' ? document : undefined;
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* Check if we are running in a true browser
|
|
1899
|
+
*/
|
|
1900
|
+
const IS_BROWSER = typeof navigator !== 'undefined' && !navigator.userAgent.includes('jsdom');
|
|
1901
|
+
|
|
1902
|
+
/**
|
|
1903
|
+
* Visually hidden a11y utility class name
|
|
1904
|
+
*/
|
|
1905
|
+
const VISUALLY_HIDDEN = 'visually-hidden';
|
|
1906
|
+
|
|
1922
1907
|
/**
|
|
1923
1908
|
* Component display name.
|
|
1924
1909
|
*/
|
|
@@ -2026,7 +2011,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2026
2011
|
label: /*#__PURE__*/jsxs(Fragment, {
|
|
2027
2012
|
children: [/*#__PURE__*/jsx("span", {
|
|
2028
2013
|
"aria-live": labelAriaLive,
|
|
2029
|
-
className: onMonthChange ?
|
|
2014
|
+
className: onMonthChange ? VISUALLY_HIDDEN : '',
|
|
2030
2015
|
dir: "auto",
|
|
2031
2016
|
children: monthYear
|
|
2032
2017
|
}), onMonthChange && /*#__PURE__*/jsx(FlexBox, {
|
|
@@ -2086,7 +2071,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2086
2071
|
className: `${CLASSNAME$15}__day-wrapper`,
|
|
2087
2072
|
children: date && /*#__PURE__*/jsxs(Button, {
|
|
2088
2073
|
ref: isSelected || !value && isToday ? todayOrSelectedDateRef : null,
|
|
2089
|
-
className: classNames
|
|
2074
|
+
className: classNames(`${CLASSNAME$15}__month-day`, {
|
|
2090
2075
|
[`${CLASSNAME$15}__month-day--is-today`]: isToday
|
|
2091
2076
|
}),
|
|
2092
2077
|
disabled: isOutOfRange,
|
|
@@ -2097,7 +2082,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
2097
2082
|
"aria-hidden": true,
|
|
2098
2083
|
children: formatDayNumber(locale, date)
|
|
2099
2084
|
}), /*#__PURE__*/jsx("span", {
|
|
2100
|
-
className:
|
|
2085
|
+
className: VISUALLY_HIDDEN,
|
|
2101
2086
|
children: date.toLocaleDateString(locale, {
|
|
2102
2087
|
day: 'numeric',
|
|
2103
2088
|
month: 'long',
|
|
@@ -2260,21 +2245,6 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
2260
2245
|
});
|
|
2261
2246
|
DatePickerField.displayName = COMPONENT_NAME$15;
|
|
2262
2247
|
|
|
2263
|
-
/**
|
|
2264
|
-
* Optional global `window` instance (not defined when running SSR).
|
|
2265
|
-
*/
|
|
2266
|
-
const WINDOW = typeof window !== 'undefined' ? window : undefined;
|
|
2267
|
-
|
|
2268
|
-
/**
|
|
2269
|
-
* Optional global `document` instance (not defined when running SSR).
|
|
2270
|
-
*/
|
|
2271
|
-
const DOCUMENT = typeof document !== 'undefined' ? document : undefined;
|
|
2272
|
-
|
|
2273
|
-
/**
|
|
2274
|
-
* Check if we are running in a true browser
|
|
2275
|
-
*/
|
|
2276
|
-
const IS_BROWSER = typeof navigator !== 'undefined' && !navigator.userAgent.includes('jsdom');
|
|
2277
|
-
|
|
2278
2248
|
/**
|
|
2279
2249
|
* Keep track of listeners, only the last registered listener gets activated at any point (previously registered
|
|
2280
2250
|
* listener are disabled).
|
|
@@ -2875,7 +2845,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
2875
2845
|
children: /*#__PURE__*/jsxs("div", {
|
|
2876
2846
|
ref: mergeRefs(rootRef, ref),
|
|
2877
2847
|
...forwardedProps,
|
|
2878
|
-
className: classNames
|
|
2848
|
+
className: classNames(className, handleBasicClasses({
|
|
2879
2849
|
isHidden: !isOpen,
|
|
2880
2850
|
isLoading,
|
|
2881
2851
|
isShown: isOpen || isVisible,
|
|
@@ -2905,7 +2875,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
2905
2875
|
ref: wrapperRef,
|
|
2906
2876
|
children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
|
|
2907
2877
|
...headerChildProps,
|
|
2908
|
-
className: classNames
|
|
2878
|
+
className: classNames(`${CLASSNAME$14}__header`, (forceHeaderDivider || hasTopIntersection) && `${CLASSNAME$14}__header--has-divider`, headerChildProps?.className),
|
|
2909
2879
|
children: [header, headerChildContent]
|
|
2910
2880
|
}), /*#__PURE__*/jsxs("div", {
|
|
2911
2881
|
ref: mergeRefs(contentRef, localContentRef),
|
|
@@ -2919,7 +2889,7 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
2919
2889
|
})]
|
|
2920
2890
|
}), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
|
|
2921
2891
|
...footerChildProps,
|
|
2922
|
-
className: classNames
|
|
2892
|
+
className: classNames(`${CLASSNAME$14}__footer`, (forceFooterDivider || hasBottomIntersection) && `${CLASSNAME$14}__footer--has-divider`, footerChildProps?.className),
|
|
2923
2893
|
children: [footer, footerChildContent]
|
|
2924
2894
|
}), isLoading && /*#__PURE__*/jsx("div", {
|
|
2925
2895
|
className: `${CLASSNAME$14}__progress-overlay`,
|
|
@@ -2971,7 +2941,7 @@ const Divider = forwardRef((props, ref) => {
|
|
|
2971
2941
|
return /*#__PURE__*/jsx("hr", {
|
|
2972
2942
|
ref: ref,
|
|
2973
2943
|
...forwardedProps,
|
|
2974
|
-
className: classNames
|
|
2944
|
+
className: classNames(className, handleBasicClasses({
|
|
2975
2945
|
prefix: CLASSNAME$13,
|
|
2976
2946
|
theme
|
|
2977
2947
|
}))
|
|
@@ -3008,7 +2978,7 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
3008
2978
|
return /*#__PURE__*/jsx("div", {
|
|
3009
2979
|
ref: ref,
|
|
3010
2980
|
...forwardedProps,
|
|
3011
|
-
className: classNames
|
|
2981
|
+
className: classNames(className, handleBasicClasses({
|
|
3012
2982
|
prefix: CLASSNAME$12,
|
|
3013
2983
|
theme
|
|
3014
2984
|
})),
|
|
@@ -3223,7 +3193,7 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
3223
3193
|
} = props;
|
|
3224
3194
|
return /*#__PURE__*/jsx("ul", {
|
|
3225
3195
|
...forwardedProps,
|
|
3226
|
-
className: classNames
|
|
3196
|
+
className: classNames(className, handleBasicClasses({
|
|
3227
3197
|
prefix: CLASSNAME$11,
|
|
3228
3198
|
itemPadding: itemPadding ?? (isClickable ? Size.big : undefined)
|
|
3229
3199
|
})),
|
|
@@ -5171,6 +5141,10 @@ var fromEntries = function fromEntries(entries) {
|
|
|
5171
5141
|
|
|
5172
5142
|
var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? React.useLayoutEffect : React.useEffect;
|
|
5173
5143
|
|
|
5144
|
+
function getDefaultExportFromCjs (x) {
|
|
5145
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5146
|
+
}
|
|
5147
|
+
|
|
5174
5148
|
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
5175
5149
|
|
|
5176
5150
|
var reactFastCompare;
|
|
@@ -5750,7 +5724,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
5750
5724
|
children: /*#__PURE__*/jsxs(Component, {
|
|
5751
5725
|
...forwardedProps,
|
|
5752
5726
|
ref: mergedRefs,
|
|
5753
|
-
className: classNames
|
|
5727
|
+
className: classNames(className, handleBasicClasses({
|
|
5754
5728
|
prefix: CLASSNAME$10,
|
|
5755
5729
|
theme,
|
|
5756
5730
|
elevation: Math.min(elevation || 0, 5),
|
|
@@ -5910,7 +5884,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
5910
5884
|
...forwardedProps,
|
|
5911
5885
|
focusAnchorOnClose: focusAnchorOnClose,
|
|
5912
5886
|
anchorRef: anchorRef,
|
|
5913
|
-
className: classNames
|
|
5887
|
+
className: classNames(className, CLASSNAME$$),
|
|
5914
5888
|
elevation: 0,
|
|
5915
5889
|
closeOnClickAway: closeOnClickAway,
|
|
5916
5890
|
closeOnEscape: closeOnEscape,
|
|
@@ -6001,7 +5975,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
6001
5975
|
}
|
|
6002
5976
|
};
|
|
6003
5977
|
const color = theme === Theme.dark ? ColorPalette.light : ColorPalette.dark;
|
|
6004
|
-
const rootClassName = classNames
|
|
5978
|
+
const rootClassName = classNames(className, handleBasicClasses({
|
|
6005
5979
|
hasBackground,
|
|
6006
5980
|
hasHeader: Boolean(!isEmpty(headerProps.children)),
|
|
6007
5981
|
hasHeaderDivider,
|
|
@@ -6110,7 +6084,7 @@ const Flag = forwardRef((props, ref) => {
|
|
|
6110
6084
|
const isTruncated = !!truncate;
|
|
6111
6085
|
return /*#__PURE__*/jsxs("div", {
|
|
6112
6086
|
...forwardedProps,
|
|
6113
|
-
className: classNames
|
|
6087
|
+
className: classNames(className, handleBasicClasses({
|
|
6114
6088
|
prefix: CLASSNAME$Z,
|
|
6115
6089
|
color: flagColor,
|
|
6116
6090
|
isTruncated
|
|
@@ -6168,7 +6142,7 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
6168
6142
|
return /*#__PURE__*/jsx(Component, {
|
|
6169
6143
|
ref: ref,
|
|
6170
6144
|
...forwardedProps,
|
|
6171
|
-
className: classNames
|
|
6145
|
+
className: classNames(className, handleBasicClasses({
|
|
6172
6146
|
prefix: CLASSNAME$Y,
|
|
6173
6147
|
orientation: orientation ?? (wrap || hAlign || vAlign ? Orientation.horizontal : null),
|
|
6174
6148
|
vAlign,
|
|
@@ -6244,7 +6218,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6244
6218
|
}, [children]);
|
|
6245
6219
|
return /*#__PURE__*/jsxs(FlexBox, {
|
|
6246
6220
|
ref: ref,
|
|
6247
|
-
className: classNames
|
|
6221
|
+
className: classNames(className, CLASSNAME$X),
|
|
6248
6222
|
gap: gap,
|
|
6249
6223
|
orientation: orientation,
|
|
6250
6224
|
...forwardedProps,
|
|
@@ -6254,7 +6228,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6254
6228
|
hAlign: forwardedProps.hAlign,
|
|
6255
6229
|
...figureProps,
|
|
6256
6230
|
...sections.figureChildProps,
|
|
6257
|
-
className: classNames
|
|
6231
|
+
className: classNames(figureProps?.className, sections.figureChildProps?.className, `${CLASSNAME$X}__figure`),
|
|
6258
6232
|
children: [figure, sections.figureChildProps?.children]
|
|
6259
6233
|
}), (sections.contentChildProps?.children || sections.otherChildren.length > 0) && /*#__PURE__*/jsxs(FlexBox, {
|
|
6260
6234
|
ref: sections.contentChild?.ref,
|
|
@@ -6264,7 +6238,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6264
6238
|
hAlign: forwardedProps.hAlign,
|
|
6265
6239
|
...contentProps,
|
|
6266
6240
|
...sections.contentChildProps,
|
|
6267
|
-
className: classNames
|
|
6241
|
+
className: classNames(contentProps?.className, sections.contentChildProps?.className, `${CLASSNAME$X}__content`),
|
|
6268
6242
|
children: [sections.contentChildProps?.children, sections.otherChildren]
|
|
6269
6243
|
}), (actions || sections.actionsChildProps?.children) && /*#__PURE__*/jsxs(FlexBox, {
|
|
6270
6244
|
ref: sections.actionsChild?.ref,
|
|
@@ -6272,7 +6246,7 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
6272
6246
|
hAlign: forwardedProps.hAlign,
|
|
6273
6247
|
...actionsProps,
|
|
6274
6248
|
...sections.actionsChildProps,
|
|
6275
|
-
className: classNames
|
|
6249
|
+
className: classNames(actionsProps?.className, sections.actionsChildProps?.className, `${CLASSNAME$X}__actions`),
|
|
6276
6250
|
children: [actions, sections.actionsChildProps?.children]
|
|
6277
6251
|
})]
|
|
6278
6252
|
});
|
|
@@ -6318,7 +6292,7 @@ const useOverflowTooltipLabel = content => {
|
|
|
6318
6292
|
// Not inside a tooltip
|
|
6319
6293
|
!parentTooltip && labelElement &&
|
|
6320
6294
|
// Not inside a visually hidden
|
|
6321
|
-
!labelElement?.closest(`.${
|
|
6295
|
+
!labelElement?.closest(`.${VISUALLY_HIDDEN}`) &&
|
|
6322
6296
|
// Text overflows
|
|
6323
6297
|
labelElement.offsetWidth < labelElement.scrollWidth) {
|
|
6324
6298
|
// Set tooltip label
|
|
@@ -6383,6 +6357,7 @@ const Text = forwardRef((props, ref) => {
|
|
|
6383
6357
|
style,
|
|
6384
6358
|
...forwardedProps
|
|
6385
6359
|
} = props;
|
|
6360
|
+
const typographyClass = typography && getTypographyClassName(typography);
|
|
6386
6361
|
|
|
6387
6362
|
// Truncate mode
|
|
6388
6363
|
const truncateLinesStyle = typeof truncate === 'object' && truncate.lines > 1 && {
|
|
@@ -6405,11 +6380,11 @@ const Text = forwardRef((props, ref) => {
|
|
|
6405
6380
|
} = useOverflowTooltipLabel(children);
|
|
6406
6381
|
return /*#__PURE__*/jsx(Component, {
|
|
6407
6382
|
ref: useMergeRefs(ref, labelRef),
|
|
6408
|
-
className: classNames
|
|
6383
|
+
className: classNames(className, handleBasicClasses({
|
|
6409
6384
|
prefix: CLASSNAME$W,
|
|
6410
6385
|
isTruncated: isTruncated && !isTruncatedMultiline,
|
|
6411
6386
|
isTruncatedMultiline
|
|
6412
|
-
}),
|
|
6387
|
+
}), typographyClass, fontColorClass(color, colorVariant), noWrap && `${CLASSNAME$W}--no-wrap`),
|
|
6413
6388
|
title: tooltipLabel,
|
|
6414
6389
|
style: {
|
|
6415
6390
|
...truncateLinesStyle,
|
|
@@ -6489,7 +6464,7 @@ const Heading = forwardRef((props, ref) => {
|
|
|
6489
6464
|
const computedHeadingElement = as || headingElement;
|
|
6490
6465
|
return /*#__PURE__*/jsx(Text, {
|
|
6491
6466
|
ref: ref,
|
|
6492
|
-
className: classNames
|
|
6467
|
+
className: classNames(className, CLASSNAME$V),
|
|
6493
6468
|
as: computedHeadingElement,
|
|
6494
6469
|
typography: DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement],
|
|
6495
6470
|
...forwardedProps,
|
|
@@ -6562,7 +6537,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
6562
6537
|
return /*#__PURE__*/jsx("div", {
|
|
6563
6538
|
ref: ref,
|
|
6564
6539
|
...forwardedProps,
|
|
6565
|
-
className: classNames
|
|
6540
|
+
className: classNames(className, `${CLASSNAME$U}-container`, {
|
|
6566
6541
|
[`${CLASSNAME$U}--h-align-${hAlign}`]: hAlign
|
|
6567
6542
|
}, {
|
|
6568
6543
|
[`${CLASSNAME$U}--v-align-${vAlign}`]: vAlign
|
|
@@ -6608,7 +6583,7 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
6608
6583
|
return /*#__PURE__*/jsx("div", {
|
|
6609
6584
|
ref: ref,
|
|
6610
6585
|
...forwardedProps,
|
|
6611
|
-
className: classNames
|
|
6586
|
+
className: classNames(className, handleBasicClasses({
|
|
6612
6587
|
prefix: CLASSNAME$T,
|
|
6613
6588
|
width,
|
|
6614
6589
|
order,
|
|
@@ -6658,7 +6633,7 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
6658
6633
|
return /*#__PURE__*/jsx(Component, {
|
|
6659
6634
|
...forwardedProps,
|
|
6660
6635
|
ref: ref,
|
|
6661
|
-
className: classNames
|
|
6636
|
+
className: classNames(className, CLASSNAME$S),
|
|
6662
6637
|
style: {
|
|
6663
6638
|
...style,
|
|
6664
6639
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -6672,13 +6647,6 @@ GridColumn.displayName = COMPONENT_NAME$S;
|
|
|
6672
6647
|
GridColumn.className = CLASSNAME$S;
|
|
6673
6648
|
GridColumn.defaultProps = DEFAULT_PROPS$K;
|
|
6674
6649
|
|
|
6675
|
-
/** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
|
|
6676
|
-
function resolveColorWithVariants(colorWithVariants, colorVariant) {
|
|
6677
|
-
if (!colorWithVariants) return [undefined, colorVariant];
|
|
6678
|
-
const [color, baseColorVariant] = colorWithVariants.split('-');
|
|
6679
|
-
return [color, colorVariant || baseColorVariant];
|
|
6680
|
-
}
|
|
6681
|
-
|
|
6682
6650
|
/**
|
|
6683
6651
|
* Component display name.
|
|
6684
6652
|
*/
|
|
@@ -6742,7 +6710,7 @@ const Icon = forwardRef((props, ref) => {
|
|
|
6742
6710
|
return /*#__PURE__*/jsx("i", {
|
|
6743
6711
|
ref: ref,
|
|
6744
6712
|
...forwardedProps,
|
|
6745
|
-
className: classNames
|
|
6713
|
+
className: classNames(className, handleBasicClasses({
|
|
6746
6714
|
color: iconColor,
|
|
6747
6715
|
colorVariant: iconColorVariant,
|
|
6748
6716
|
hasShape,
|
|
@@ -6805,7 +6773,7 @@ const ImageCaption = props => {
|
|
|
6805
6773
|
};
|
|
6806
6774
|
return /*#__PURE__*/jsxs(FlexBox, {
|
|
6807
6775
|
as: as,
|
|
6808
|
-
className: classNames
|
|
6776
|
+
className: classNames(baseClassName && `${baseClassName}__wrapper`),
|
|
6809
6777
|
style: captionStyle,
|
|
6810
6778
|
orientation: "vertical",
|
|
6811
6779
|
vAlign: align,
|
|
@@ -6813,25 +6781,25 @@ const ImageCaption = props => {
|
|
|
6813
6781
|
gap: "regular",
|
|
6814
6782
|
children: [(title || description) && /*#__PURE__*/jsxs(Text, {
|
|
6815
6783
|
as: "p",
|
|
6816
|
-
className: classNames
|
|
6784
|
+
className: classNames(baseClassName && `${baseClassName}__caption`),
|
|
6817
6785
|
truncate: truncate,
|
|
6818
6786
|
...baseColor,
|
|
6819
6787
|
children: [title && /*#__PURE__*/jsx(Text, {
|
|
6820
6788
|
...titleProps,
|
|
6821
6789
|
as: "span",
|
|
6822
|
-
className: classNames
|
|
6790
|
+
className: classNames(titleProps?.className, baseClassName && `${baseClassName}__title`),
|
|
6823
6791
|
typography: "subtitle1",
|
|
6824
6792
|
...titleColor,
|
|
6825
6793
|
children: title
|
|
6826
6794
|
}), ' ', description && /*#__PURE__*/jsx(Text, {
|
|
6827
6795
|
...descriptionProps,
|
|
6828
6796
|
as: "span",
|
|
6829
|
-
className: classNames
|
|
6797
|
+
className: classNames(descriptionProps?.className, baseClassName && `${baseClassName}__description`),
|
|
6830
6798
|
typography: "body1",
|
|
6831
6799
|
...descriptionContent
|
|
6832
6800
|
})]
|
|
6833
6801
|
}), tags && /*#__PURE__*/jsx(FlexBox, {
|
|
6834
|
-
className: classNames
|
|
6802
|
+
className: classNames(baseClassName && `${baseClassName}__tags`),
|
|
6835
6803
|
orientation: "horizontal",
|
|
6836
6804
|
vAlign: align,
|
|
6837
6805
|
children: tags
|
|
@@ -6901,7 +6869,7 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
6901
6869
|
return /*#__PURE__*/jsxs("figure", {
|
|
6902
6870
|
ref: ref,
|
|
6903
6871
|
...forwardedProps,
|
|
6904
|
-
className: classNames
|
|
6872
|
+
className: classNames(className, handleBasicClasses({
|
|
6905
6873
|
prefix: CLASSNAME$Q,
|
|
6906
6874
|
captionPosition,
|
|
6907
6875
|
align,
|
|
@@ -6910,7 +6878,7 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
6910
6878
|
}), fillHeight && `${CLASSNAME$Q}--fill-height`),
|
|
6911
6879
|
children: [/*#__PURE__*/jsx(Thumbnail, {
|
|
6912
6880
|
...thumbnailProps,
|
|
6913
|
-
className: classNames
|
|
6881
|
+
className: classNames(`${CLASSNAME$Q}__image`, thumbnailProps?.className),
|
|
6914
6882
|
fillHeight: fillHeight,
|
|
6915
6883
|
align: align,
|
|
6916
6884
|
image: image,
|
|
@@ -7631,7 +7599,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
7631
7599
|
}, [onClose]);
|
|
7632
7600
|
return /*#__PURE__*/jsx(Lightbox, {
|
|
7633
7601
|
ref: ref,
|
|
7634
|
-
className: classNames
|
|
7602
|
+
className: classNames(className, CLASSNAME$P),
|
|
7635
7603
|
parentElement: parentElement,
|
|
7636
7604
|
isOpen: isOpen,
|
|
7637
7605
|
onClose: onClose,
|
|
@@ -7706,13 +7674,14 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
7706
7674
|
wrap,
|
|
7707
7675
|
...forwardedProps
|
|
7708
7676
|
} = props;
|
|
7677
|
+
const typographyClassName = typography && getTypographyClassName(typography);
|
|
7709
7678
|
return (
|
|
7710
7679
|
/*#__PURE__*/
|
|
7711
7680
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
7712
7681
|
jsx("ul", {
|
|
7713
7682
|
...forwardedProps,
|
|
7714
7683
|
ref: ref,
|
|
7715
|
-
className: classNames
|
|
7684
|
+
className: classNames(className, CLASSNAME$O, wrap && `${CLASSNAME$O}--wrap`, fontColorClass(color, colorVariant), typographyClassName)
|
|
7716
7685
|
// Lists with removed bullet style can lose their a11y list role on some browsers
|
|
7717
7686
|
,
|
|
7718
7687
|
role: "list",
|
|
@@ -7791,7 +7760,7 @@ const InputHelper = forwardRef((props, ref) => {
|
|
|
7791
7760
|
return /*#__PURE__*/jsx("p", {
|
|
7792
7761
|
ref: ref,
|
|
7793
7762
|
...forwardedProps,
|
|
7794
|
-
className: classNames
|
|
7763
|
+
className: classNames(className, handleBasicClasses({
|
|
7795
7764
|
prefix: CLASSNAME$N,
|
|
7796
7765
|
color,
|
|
7797
7766
|
theme
|
|
@@ -7836,16 +7805,17 @@ const InputLabel = forwardRef((props, ref) => {
|
|
|
7836
7805
|
typography,
|
|
7837
7806
|
...forwardedProps
|
|
7838
7807
|
} = props;
|
|
7808
|
+
const typographyClass = typography && getTypographyClassName(typography);
|
|
7839
7809
|
return /*#__PURE__*/jsx("label", {
|
|
7840
7810
|
ref: ref,
|
|
7841
7811
|
...forwardedProps,
|
|
7842
7812
|
htmlFor: htmlFor,
|
|
7843
|
-
className: classNames
|
|
7813
|
+
className: classNames(className, handleBasicClasses({
|
|
7844
7814
|
prefix: CLASSNAME$M,
|
|
7845
7815
|
isRequired,
|
|
7846
7816
|
theme,
|
|
7847
7817
|
hasCustomTypography: Boolean(typography)
|
|
7848
|
-
}),
|
|
7818
|
+
}), typographyClass),
|
|
7849
7819
|
children: children
|
|
7850
7820
|
});
|
|
7851
7821
|
});
|
|
@@ -7945,7 +7915,7 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
7945
7915
|
"aria-modal": "true",
|
|
7946
7916
|
role: "dialog",
|
|
7947
7917
|
tabIndex: -1,
|
|
7948
|
-
className: classNames
|
|
7918
|
+
className: classNames(className, handleBasicClasses({
|
|
7949
7919
|
prefix: CLASSNAME$L,
|
|
7950
7920
|
isHidden: !isOpen,
|
|
7951
7921
|
isShown: isOpen || isVisible,
|
|
@@ -8027,12 +7997,12 @@ const Link = forwardRef((props, ref) => {
|
|
|
8027
7997
|
as: linkAs || (forwardedProps.href ? 'a' : 'button'),
|
|
8028
7998
|
...forwardedProps,
|
|
8029
7999
|
...disabledStateProps,
|
|
8030
|
-
className: classNames
|
|
8000
|
+
className: classNames(className, handleBasicClasses({
|
|
8031
8001
|
prefix: CLASSNAME$K,
|
|
8032
8002
|
color,
|
|
8033
8003
|
colorVariant,
|
|
8034
8004
|
hasTypography: !!typography
|
|
8035
|
-
}), typography &&
|
|
8005
|
+
}), typography && getTypographyClassName(typography)),
|
|
8036
8006
|
children: wrapChildrenIconWithSpaces(/*#__PURE__*/jsxs(Fragment, {
|
|
8037
8007
|
children: [leftIcon && /*#__PURE__*/jsx(Icon, {
|
|
8038
8008
|
icon: leftIcon,
|
|
@@ -8095,7 +8065,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8095
8065
|
return /*#__PURE__*/jsx("article", {
|
|
8096
8066
|
ref: ref,
|
|
8097
8067
|
...forwardedProps,
|
|
8098
|
-
className: classNames
|
|
8068
|
+
className: classNames(className, handleBasicClasses({
|
|
8099
8069
|
prefix: CLASSNAME$J,
|
|
8100
8070
|
size: size === Size.big && thumbnailProps ? Size.big : Size.regular,
|
|
8101
8071
|
theme
|
|
@@ -8127,7 +8097,7 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8127
8097
|
target: "_blank",
|
|
8128
8098
|
href: link,
|
|
8129
8099
|
color: theme === Theme.light ? ColorPalette.dark : ColorPalette.light,
|
|
8130
|
-
colorVariant: ColorVariant.N,
|
|
8100
|
+
colorVariant: ColorVariant$1.N,
|
|
8131
8101
|
children: title
|
|
8132
8102
|
})
|
|
8133
8103
|
}), description && /*#__PURE__*/jsx("p", {
|
|
@@ -8138,11 +8108,11 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
8138
8108
|
children: /*#__PURE__*/jsx(Link, {
|
|
8139
8109
|
...linkProps,
|
|
8140
8110
|
linkAs: linkAs,
|
|
8141
|
-
className: classNames
|
|
8111
|
+
className: classNames(`${CLASSNAME$J}__link`, linkProps?.className),
|
|
8142
8112
|
target: "_blank",
|
|
8143
8113
|
href: link,
|
|
8144
8114
|
color: theme === Theme.light ? ColorPalette.primary : ColorPalette.light,
|
|
8145
|
-
colorVariant: ColorVariant.N
|
|
8115
|
+
colorVariant: ColorVariant$1.N
|
|
8146
8116
|
// Avoid redundant links in focus order
|
|
8147
8117
|
,
|
|
8148
8118
|
tabIndex: title ? '-1' : undefined,
|
|
@@ -8247,7 +8217,7 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
8247
8217
|
return /*#__PURE__*/jsx("li", {
|
|
8248
8218
|
ref: ref,
|
|
8249
8219
|
...forwardedProps,
|
|
8250
|
-
className: classNames
|
|
8220
|
+
className: classNames(className, handleBasicClasses({
|
|
8251
8221
|
prefix: CLASSNAME$I,
|
|
8252
8222
|
size
|
|
8253
8223
|
})),
|
|
@@ -8262,7 +8232,7 @@ const ListItem = forwardRef((props, ref) => {
|
|
|
8262
8232
|
'aria-disabled': isAnyDisabled,
|
|
8263
8233
|
...linkProps,
|
|
8264
8234
|
href: isAnyDisabled ? undefined : linkProps.href,
|
|
8265
|
-
className: classNames
|
|
8235
|
+
className: classNames(handleBasicClasses({
|
|
8266
8236
|
prefix: `${CLASSNAME$I}__link`,
|
|
8267
8237
|
isHighlighted,
|
|
8268
8238
|
isSelected,
|
|
@@ -8309,7 +8279,7 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
8309
8279
|
return /*#__PURE__*/jsx("li", {
|
|
8310
8280
|
ref: ref,
|
|
8311
8281
|
...forwardedProps,
|
|
8312
|
-
className: classNames
|
|
8282
|
+
className: classNames(className, CLASSNAME$H)
|
|
8313
8283
|
});
|
|
8314
8284
|
});
|
|
8315
8285
|
ListDivider.displayName = COMPONENT_NAME$H;
|
|
@@ -8341,7 +8311,7 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
8341
8311
|
return /*#__PURE__*/jsx("li", {
|
|
8342
8312
|
ref: ref,
|
|
8343
8313
|
...forwardedProps,
|
|
8344
|
-
className: classNames
|
|
8314
|
+
className: classNames(className, CLASSNAME$G),
|
|
8345
8315
|
children: children
|
|
8346
8316
|
});
|
|
8347
8317
|
});
|
|
@@ -8408,7 +8378,7 @@ const Message = forwardRef((props, ref) => {
|
|
|
8408
8378
|
const isCloseButtonDisplayed = hasBackground && kind === 'info' && onClick && closeButtonLabel;
|
|
8409
8379
|
return /*#__PURE__*/jsxs("div", {
|
|
8410
8380
|
ref: ref,
|
|
8411
|
-
className: classNames
|
|
8381
|
+
className: classNames(className, handleBasicClasses({
|
|
8412
8382
|
color,
|
|
8413
8383
|
hasBackground,
|
|
8414
8384
|
prefix: CLASSNAME$F
|
|
@@ -8475,7 +8445,7 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
8475
8445
|
return /*#__PURE__*/jsx("div", {
|
|
8476
8446
|
ref: ref,
|
|
8477
8447
|
...forwardedProps,
|
|
8478
|
-
className: classNames
|
|
8448
|
+
className: classNames(className, handleBasicClasses({
|
|
8479
8449
|
prefix: CLASSNAME$E,
|
|
8480
8450
|
theme
|
|
8481
8451
|
}), {
|
|
@@ -8558,7 +8528,7 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
8558
8528
|
const theme = useTheme();
|
|
8559
8529
|
const isDropdown = orientation === Orientation.horizontal;
|
|
8560
8530
|
return /*#__PURE__*/jsxs("li", {
|
|
8561
|
-
className: classNames
|
|
8531
|
+
className: classNames(className, CLASSNAME$D, ITEM_CLASSNAME, handleBasicClasses({
|
|
8562
8532
|
prefix: ITEM_CLASSNAME,
|
|
8563
8533
|
theme
|
|
8564
8534
|
})),
|
|
@@ -8568,7 +8538,7 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
8568
8538
|
...forwardedProps,
|
|
8569
8539
|
"aria-controls": sectionId,
|
|
8570
8540
|
"aria-expanded": isOpen,
|
|
8571
|
-
className: classNames
|
|
8541
|
+
className: classNames(`${ITEM_CLASSNAME}__link`),
|
|
8572
8542
|
ref: buttonRef,
|
|
8573
8543
|
onClick: event => {
|
|
8574
8544
|
setIsOpen(!isOpen);
|
|
@@ -8585,7 +8555,7 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
8585
8555
|
ref: ref,
|
|
8586
8556
|
children: label
|
|
8587
8557
|
}), /*#__PURE__*/jsx(Icon, {
|
|
8588
|
-
className: classNames
|
|
8558
|
+
className: classNames(`${ITEM_CLASSNAME}__icon`, `${CLASSNAME$D}__chevron`),
|
|
8589
8559
|
icon: isOpen ? mdiChevronUp : mdiChevronDown
|
|
8590
8560
|
})]
|
|
8591
8561
|
}), isOpen && (isDropdown ? /*#__PURE__*/jsx(Popover, {
|
|
@@ -8636,7 +8606,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
8636
8606
|
labelRef
|
|
8637
8607
|
} = useOverflowTooltipLabel(label);
|
|
8638
8608
|
return /*#__PURE__*/jsx("li", {
|
|
8639
|
-
className: classNames
|
|
8609
|
+
className: classNames(className, handleBasicClasses({
|
|
8640
8610
|
prefix: ITEM_CLASSNAME,
|
|
8641
8611
|
theme
|
|
8642
8612
|
})),
|
|
@@ -8700,7 +8670,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
8700
8670
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
8701
8671
|
value: theme,
|
|
8702
8672
|
children: /*#__PURE__*/jsx("nav", {
|
|
8703
|
-
className: classNames
|
|
8673
|
+
className: classNames(className, handleBasicClasses({
|
|
8704
8674
|
prefix: CLASSNAME$C,
|
|
8705
8675
|
theme,
|
|
8706
8676
|
orientation
|
|
@@ -8817,7 +8787,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
8817
8787
|
ref: mergeRefs(ref, rootRef),
|
|
8818
8788
|
role: "alert",
|
|
8819
8789
|
...forwardedProps,
|
|
8820
|
-
className: classNames
|
|
8790
|
+
className: classNames(className, handleBasicClasses({
|
|
8821
8791
|
color,
|
|
8822
8792
|
hasAction,
|
|
8823
8793
|
isHidden: !isOpen,
|
|
@@ -8890,7 +8860,7 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
8890
8860
|
return /*#__PURE__*/jsx(Popover, {
|
|
8891
8861
|
...forwardedProps,
|
|
8892
8862
|
ref: ref,
|
|
8893
|
-
className: classNames
|
|
8863
|
+
className: classNames(className, CLASSNAME$A),
|
|
8894
8864
|
role: "dialog",
|
|
8895
8865
|
"aria-modal": "true"
|
|
8896
8866
|
/**
|
|
@@ -8956,7 +8926,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
8956
8926
|
} = props;
|
|
8957
8927
|
return /*#__PURE__*/jsxs("div", {
|
|
8958
8928
|
ref: ref,
|
|
8959
|
-
className: classNames
|
|
8929
|
+
className: classNames(className, handleBasicClasses({
|
|
8960
8930
|
prefix: CLASSNAME$z,
|
|
8961
8931
|
orientation,
|
|
8962
8932
|
theme
|
|
@@ -9043,7 +9013,7 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
9043
9013
|
return /*#__PURE__*/jsxs("div", {
|
|
9044
9014
|
ref: ref,
|
|
9045
9015
|
...forwardedProps,
|
|
9046
|
-
className: classNames
|
|
9016
|
+
className: classNames(className, handleBasicClasses({
|
|
9047
9017
|
prefix: CLASSNAME$y,
|
|
9048
9018
|
theme
|
|
9049
9019
|
})),
|
|
@@ -9096,7 +9066,7 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
9096
9066
|
return /*#__PURE__*/jsxs(Element, {
|
|
9097
9067
|
ref: ref,
|
|
9098
9068
|
...forwardedProps,
|
|
9099
|
-
className: classNames
|
|
9069
|
+
className: classNames(className, handleBasicClasses({
|
|
9100
9070
|
prefix: CLASSNAME$x,
|
|
9101
9071
|
theme,
|
|
9102
9072
|
size,
|
|
@@ -9169,7 +9139,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
9169
9139
|
return /*#__PURE__*/jsxs("div", {
|
|
9170
9140
|
ref: ref,
|
|
9171
9141
|
...forwardedProps,
|
|
9172
|
-
className: classNames
|
|
9142
|
+
className: classNames(className, handleBasicClasses({
|
|
9173
9143
|
prefix: CLASSNAME$w,
|
|
9174
9144
|
theme,
|
|
9175
9145
|
variant
|
|
@@ -9482,7 +9452,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
9482
9452
|
return /*#__PURE__*/jsxs("div", {
|
|
9483
9453
|
ref: mergeRefs(ref, stepListRef),
|
|
9484
9454
|
...forwardedProps,
|
|
9485
|
-
className: classNames
|
|
9455
|
+
className: classNames(className, CLASSNAME$v),
|
|
9486
9456
|
children: [/*#__PURE__*/jsx("div", {
|
|
9487
9457
|
className: `${CLASSNAME$v}__steps`,
|
|
9488
9458
|
role: "tablist",
|
|
@@ -9585,7 +9555,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
9585
9555
|
...forwardedProps,
|
|
9586
9556
|
type: "button",
|
|
9587
9557
|
id: state?.tabId,
|
|
9588
|
-
className: classNames
|
|
9558
|
+
className: classNames(className, handleBasicClasses({
|
|
9589
9559
|
prefix: CLASSNAME$u,
|
|
9590
9560
|
hasError,
|
|
9591
9561
|
isActive,
|
|
@@ -9657,7 +9627,7 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
9657
9627
|
ref: ref,
|
|
9658
9628
|
...forwardedProps,
|
|
9659
9629
|
id: state?.tabPanelId,
|
|
9660
|
-
className: classNames
|
|
9630
|
+
className: classNames(className, handleBasicClasses({
|
|
9661
9631
|
prefix: CLASSNAME$t,
|
|
9662
9632
|
isActive
|
|
9663
9633
|
})),
|
|
@@ -9725,7 +9695,7 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
9725
9695
|
return /*#__PURE__*/jsxs("div", {
|
|
9726
9696
|
ref: ref,
|
|
9727
9697
|
...forwardedProps,
|
|
9728
|
-
className: classNames
|
|
9698
|
+
className: classNames(className, handleBasicClasses({
|
|
9729
9699
|
isChecked,
|
|
9730
9700
|
isDisabled: isAnyDisabled,
|
|
9731
9701
|
isUnchecked: !isChecked,
|
|
@@ -9801,7 +9771,7 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
9801
9771
|
return /*#__PURE__*/jsx("div", {
|
|
9802
9772
|
ref: ref,
|
|
9803
9773
|
...forwardedProps,
|
|
9804
|
-
className: classNames
|
|
9774
|
+
className: classNames(className, CLASSNAME$r),
|
|
9805
9775
|
children: children
|
|
9806
9776
|
});
|
|
9807
9777
|
});
|
|
@@ -9886,7 +9856,7 @@ const WithSelectContext = (SelectElement, props, ref) => {
|
|
|
9886
9856
|
useFocusTrap(isOpen && dropdownRef.current, focusElement?.current);
|
|
9887
9857
|
return /*#__PURE__*/jsxs("div", {
|
|
9888
9858
|
ref: mergeRefs(ref, selectRef),
|
|
9889
|
-
className: classNames
|
|
9859
|
+
className: classNames(className, handleBasicClasses({
|
|
9890
9860
|
hasError,
|
|
9891
9861
|
hasLabel: Boolean(label),
|
|
9892
9862
|
hasPlaceholder: Boolean(placeholder),
|
|
@@ -10016,7 +9986,7 @@ const SelectField = props => {
|
|
|
10016
9986
|
icon: icon,
|
|
10017
9987
|
size: Size.xs
|
|
10018
9988
|
}), /*#__PURE__*/jsxs("div", {
|
|
10019
|
-
className: classNames
|
|
9989
|
+
className: classNames([`${CLASSNAME$p}__input-native`, isEmpty && placeholder && `${CLASSNAME$p}__input-native--placeholder`]),
|
|
10020
9990
|
children: [!isEmpty && /*#__PURE__*/jsx("span", {
|
|
10021
9991
|
children: selectedValueRender?.(value)
|
|
10022
9992
|
}), isEmpty && placeholder && /*#__PURE__*/jsx("span", {
|
|
@@ -10079,7 +10049,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
10079
10049
|
return WithSelectContext(SelectField, {
|
|
10080
10050
|
...DEFAULT_PROPS$p,
|
|
10081
10051
|
...props,
|
|
10082
|
-
className: classNames
|
|
10052
|
+
className: classNames(props.className, handleBasicClasses({
|
|
10083
10053
|
hasInputClear,
|
|
10084
10054
|
hasUnique: !props.isEmpty,
|
|
10085
10055
|
prefix: CLASSNAME$p
|
|
@@ -10172,7 +10142,7 @@ const SelectMultipleField = props => {
|
|
|
10172
10142
|
className: `${CLASSNAME$o}__chips`,
|
|
10173
10143
|
children: !isEmpty && value.map((val, index) => selectedChipRender?.(val, index, onClear, isDisabled, theme))
|
|
10174
10144
|
}), isEmpty && placeholder && /*#__PURE__*/jsx("div", {
|
|
10175
|
-
className: classNames
|
|
10145
|
+
className: classNames([`${CLASSNAME$o}__input-native`, `${CLASSNAME$o}__input-native--placeholder`]),
|
|
10176
10146
|
children: /*#__PURE__*/jsx("span", {
|
|
10177
10147
|
children: placeholder
|
|
10178
10148
|
})
|
|
@@ -10226,7 +10196,7 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
10226
10196
|
return WithSelectContext(SelectMultipleField, {
|
|
10227
10197
|
...DEFAULT_PROPS$o,
|
|
10228
10198
|
...props,
|
|
10229
|
-
className: classNames
|
|
10199
|
+
className: classNames(props.className, handleBasicClasses({
|
|
10230
10200
|
hasMultiple: !props.isEmpty,
|
|
10231
10201
|
prefix: CLASSNAME$o
|
|
10232
10202
|
})),
|
|
@@ -10267,7 +10237,7 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
10267
10237
|
return /*#__PURE__*/jsx("ul", {
|
|
10268
10238
|
ref: ref,
|
|
10269
10239
|
...forwardedProps,
|
|
10270
|
-
className: classNames
|
|
10240
|
+
className: classNames(className, theme === Theme.dark && 'lumx-color-font-light-N', CLASSNAME$n),
|
|
10271
10241
|
children: content
|
|
10272
10242
|
});
|
|
10273
10243
|
});
|
|
@@ -10330,7 +10300,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
10330
10300
|
return /*#__PURE__*/jsxs("li", {
|
|
10331
10301
|
ref: ref,
|
|
10332
10302
|
...forwardedProps,
|
|
10333
|
-
className: classNames
|
|
10303
|
+
className: classNames(className, handleBasicClasses({
|
|
10334
10304
|
emphasis,
|
|
10335
10305
|
isOpen: showChildren,
|
|
10336
10306
|
isSelected,
|
|
@@ -10418,7 +10388,7 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
10418
10388
|
return /*#__PURE__*/jsx("div", {
|
|
10419
10389
|
ref: ref,
|
|
10420
10390
|
...forwardedProps,
|
|
10421
|
-
className: classNames
|
|
10391
|
+
className: classNames(className, handleBasicClasses({
|
|
10422
10392
|
prefix: CLASSNAME$l,
|
|
10423
10393
|
size,
|
|
10424
10394
|
color,
|
|
@@ -10476,7 +10446,7 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
10476
10446
|
return /*#__PURE__*/jsx("div", {
|
|
10477
10447
|
ref: ref,
|
|
10478
10448
|
...forwardedProps,
|
|
10479
|
-
className: classNames
|
|
10449
|
+
className: classNames(className, handleBasicClasses({
|
|
10480
10450
|
prefix: CLASSNAME$k,
|
|
10481
10451
|
aspectRatio,
|
|
10482
10452
|
height: aspectRatio ? undefined : height,
|
|
@@ -10526,7 +10496,7 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
10526
10496
|
return /*#__PURE__*/jsx("div", {
|
|
10527
10497
|
ref: ref,
|
|
10528
10498
|
...forwardedProps,
|
|
10529
|
-
className: classNames
|
|
10499
|
+
className: classNames(className, handleBasicClasses({
|
|
10530
10500
|
prefix: CLASSNAME$j,
|
|
10531
10501
|
theme,
|
|
10532
10502
|
typography,
|
|
@@ -10781,7 +10751,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
10781
10751
|
return /*#__PURE__*/jsxs("div", {
|
|
10782
10752
|
ref: ref,
|
|
10783
10753
|
...forwardedProps,
|
|
10784
|
-
className: classNames
|
|
10754
|
+
className: classNames(className, handleBasicClasses({
|
|
10785
10755
|
prefix: CLASSNAME$i,
|
|
10786
10756
|
theme,
|
|
10787
10757
|
hasLabel: Boolean(label)
|
|
@@ -11191,7 +11161,7 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
11191
11161
|
return /*#__PURE__*/jsx("div", {
|
|
11192
11162
|
ref: mergeRefs(groupRef, ref),
|
|
11193
11163
|
role: role,
|
|
11194
|
-
className: classNames
|
|
11164
|
+
className: classNames(className, CLASSNAME$h),
|
|
11195
11165
|
"aria-roledescription": "slide",
|
|
11196
11166
|
"aria-label": label,
|
|
11197
11167
|
...forwardedProps,
|
|
@@ -11342,7 +11312,7 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
11342
11312
|
} = props;
|
|
11343
11313
|
return /*#__PURE__*/jsx("div", {
|
|
11344
11314
|
ref: ref,
|
|
11345
|
-
className: classNames
|
|
11315
|
+
className: classNames(className, CLASSNAME$g),
|
|
11346
11316
|
...forwardedProps,
|
|
11347
11317
|
children: children
|
|
11348
11318
|
});
|
|
@@ -11486,7 +11456,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
11486
11456
|
return /*#__PURE__*/jsxs("div", {
|
|
11487
11457
|
ref: ref,
|
|
11488
11458
|
...forwardedProps,
|
|
11489
|
-
className: classNames
|
|
11459
|
+
className: classNames(className, handleBasicClasses({
|
|
11490
11460
|
prefix: CLASSNAME$f,
|
|
11491
11461
|
theme
|
|
11492
11462
|
}), {
|
|
@@ -11518,7 +11488,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
11518
11488
|
} = paginationItemProps ? paginationItemProps(index) : {};
|
|
11519
11489
|
const ariaLabel = label || paginationItemLabel?.(index) || `${index + 1} / ${slidesCount}`;
|
|
11520
11490
|
return /*#__PURE__*/jsx("button", {
|
|
11521
|
-
className: classNames
|
|
11491
|
+
className: classNames(handleBasicClasses({
|
|
11522
11492
|
prefix: `${CLASSNAME$f}__pagination-item`,
|
|
11523
11493
|
isActive,
|
|
11524
11494
|
isOnEdge,
|
|
@@ -11609,7 +11579,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
11609
11579
|
id: id,
|
|
11610
11580
|
ref: ref,
|
|
11611
11581
|
...forwardedProps,
|
|
11612
|
-
className: classNames
|
|
11582
|
+
className: classNames(className, handleBasicClasses({
|
|
11613
11583
|
prefix: CLASSNAME$e,
|
|
11614
11584
|
theme
|
|
11615
11585
|
}), {
|
|
@@ -11697,7 +11667,7 @@ const Switch = forwardRef((props, ref) => {
|
|
|
11697
11667
|
return /*#__PURE__*/jsxs("div", {
|
|
11698
11668
|
ref: ref,
|
|
11699
11669
|
...forwardedProps,
|
|
11700
|
-
className: classNames
|
|
11670
|
+
className: classNames(className, handleBasicClasses({
|
|
11701
11671
|
prefix: CLASSNAME$d,
|
|
11702
11672
|
isChecked,
|
|
11703
11673
|
isDisabled: isAnyDisabled,
|
|
@@ -11784,7 +11754,7 @@ const Table = forwardRef((props, ref) => {
|
|
|
11784
11754
|
return /*#__PURE__*/jsx("table", {
|
|
11785
11755
|
ref: ref,
|
|
11786
11756
|
...forwardedProps,
|
|
11787
|
-
className: classNames
|
|
11757
|
+
className: classNames(className, handleBasicClasses({
|
|
11788
11758
|
prefix: CLASSNAME$c,
|
|
11789
11759
|
hasBefore,
|
|
11790
11760
|
hasDividers,
|
|
@@ -11823,7 +11793,7 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
11823
11793
|
return /*#__PURE__*/jsx("tbody", {
|
|
11824
11794
|
ref: ref,
|
|
11825
11795
|
...forwardedProps,
|
|
11826
|
-
className: classNames
|
|
11796
|
+
className: classNames(className, CLASSNAME$b),
|
|
11827
11797
|
children: children
|
|
11828
11798
|
});
|
|
11829
11799
|
});
|
|
@@ -11900,7 +11870,7 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
11900
11870
|
children: [variant === TableCellVariant.head && /*#__PURE__*/jsx("th", {
|
|
11901
11871
|
ref: ref,
|
|
11902
11872
|
...forwardedProps,
|
|
11903
|
-
className: classNames
|
|
11873
|
+
className: classNames(handleBasicClasses({
|
|
11904
11874
|
prefix: CLASSNAME$a,
|
|
11905
11875
|
isSortable,
|
|
11906
11876
|
isSorted: isSortable && !!sortOrder
|
|
@@ -11928,7 +11898,7 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
11928
11898
|
})
|
|
11929
11899
|
}), variant === TableCellVariant.body && /*#__PURE__*/jsx("td", {
|
|
11930
11900
|
...forwardedProps,
|
|
11931
|
-
className: classNames
|
|
11901
|
+
className: classNames(className, CLASSNAME$a, `${CLASSNAME$a}--body`),
|
|
11932
11902
|
children: /*#__PURE__*/jsx("div", {
|
|
11933
11903
|
className: `${CLASSNAME$a}-content`,
|
|
11934
11904
|
children: children
|
|
@@ -11971,7 +11941,7 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
11971
11941
|
return /*#__PURE__*/jsx("thead", {
|
|
11972
11942
|
ref: ref,
|
|
11973
11943
|
...forwardedProps,
|
|
11974
|
-
className: classNames
|
|
11944
|
+
className: classNames(className, CLASSNAME$9),
|
|
11975
11945
|
children: children
|
|
11976
11946
|
});
|
|
11977
11947
|
});
|
|
@@ -12018,7 +11988,7 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
12018
11988
|
ref: ref,
|
|
12019
11989
|
tabIndex: isClickable && !disabledStateProps.disabled ? 0 : -1,
|
|
12020
11990
|
...forwardedProps,
|
|
12021
|
-
className: classNames
|
|
11991
|
+
className: classNames(className, handleBasicClasses({
|
|
12022
11992
|
isClickable: isClickable && !isAnyDisabled,
|
|
12023
11993
|
isDisabled: isAnyDisabled,
|
|
12024
11994
|
isSelected: isSelected && !isAnyDisabled,
|
|
@@ -12148,7 +12118,7 @@ const TabList = forwardRef((props, ref) => {
|
|
|
12148
12118
|
return /*#__PURE__*/jsx("div", {
|
|
12149
12119
|
ref: mergeRefs(ref, tabListRef),
|
|
12150
12120
|
...forwardedProps,
|
|
12151
|
-
className: classNames
|
|
12121
|
+
className: classNames(className, handleBasicClasses({
|
|
12152
12122
|
prefix: TABS_CLASSNAME,
|
|
12153
12123
|
layout,
|
|
12154
12124
|
position,
|
|
@@ -12233,7 +12203,7 @@ const Tab = forwardRef((props, ref) => {
|
|
|
12233
12203
|
...forwardedProps,
|
|
12234
12204
|
type: "button",
|
|
12235
12205
|
id: state?.tabId,
|
|
12236
|
-
className: classNames
|
|
12206
|
+
className: classNames(className, handleBasicClasses({
|
|
12237
12207
|
prefix: CLASSNAME$7,
|
|
12238
12208
|
isActive,
|
|
12239
12209
|
isDisabled: isAnyDisabled
|
|
@@ -12299,7 +12269,7 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
12299
12269
|
ref: ref,
|
|
12300
12270
|
...forwardedProps,
|
|
12301
12271
|
id: state?.tabPanelId,
|
|
12302
|
-
className: classNames
|
|
12272
|
+
className: classNames(className, handleBasicClasses({
|
|
12303
12273
|
prefix: CLASSNAME$6,
|
|
12304
12274
|
isActive
|
|
12305
12275
|
})),
|
|
@@ -12359,7 +12329,7 @@ const RawInputText = forwardRef((props, ref) => {
|
|
|
12359
12329
|
name: name,
|
|
12360
12330
|
type: type,
|
|
12361
12331
|
ref: useMergeRefs(ref, textareaRef),
|
|
12362
|
-
className: classNames
|
|
12332
|
+
className: classNames(className, handleBasicClasses({
|
|
12363
12333
|
prefix: INPUT_NATIVE_CLASSNAME,
|
|
12364
12334
|
theme
|
|
12365
12335
|
}), `${INPUT_NATIVE_CLASSNAME}--text`),
|
|
@@ -12439,7 +12409,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
12439
12409
|
return /*#__PURE__*/jsx("textarea", {
|
|
12440
12410
|
...forwardedProps,
|
|
12441
12411
|
name: name,
|
|
12442
|
-
className: classNames
|
|
12412
|
+
className: classNames(className, handleBasicClasses({
|
|
12443
12413
|
prefix: INPUT_NATIVE_CLASSNAME,
|
|
12444
12414
|
theme
|
|
12445
12415
|
}), `${INPUT_NATIVE_CLASSNAME}--textarea`),
|
|
@@ -12576,7 +12546,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
12576
12546
|
});
|
|
12577
12547
|
return /*#__PURE__*/jsxs("div", {
|
|
12578
12548
|
ref: ref,
|
|
12579
|
-
className: classNames
|
|
12549
|
+
className: classNames(className, handleBasicClasses({
|
|
12580
12550
|
hasChips: Boolean(chips),
|
|
12581
12551
|
hasError: !isValid && hasError,
|
|
12582
12552
|
hasIcon: Boolean(icon),
|
|
@@ -12902,7 +12872,7 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
12902
12872
|
return /*#__PURE__*/jsxs(Wrapper, {
|
|
12903
12873
|
...wrapperProps,
|
|
12904
12874
|
ref: ref,
|
|
12905
|
-
className: classNames
|
|
12875
|
+
className: classNames(linkProps?.className, className, handleBasicClasses({
|
|
12906
12876
|
align,
|
|
12907
12877
|
aspectRatio,
|
|
12908
12878
|
prefix: CLASSNAME$4,
|
|
@@ -12933,7 +12903,7 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
12933
12903
|
...loadingStyle
|
|
12934
12904
|
},
|
|
12935
12905
|
ref: useMergeRefs(setImgElement, propImgRef),
|
|
12936
|
-
className: classNames
|
|
12906
|
+
className: classNames(handleBasicClasses({
|
|
12937
12907
|
prefix: `${CLASSNAME$4}__image`,
|
|
12938
12908
|
isLoading,
|
|
12939
12909
|
hasDefinedSize: Boolean(imgProps?.height && imgProps.width)
|
|
@@ -12951,7 +12921,7 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
12951
12921
|
}) : fallback
|
|
12952
12922
|
})]
|
|
12953
12923
|
}), badge && /*#__PURE__*/React__default.cloneElement(badge, {
|
|
12954
|
-
className: classNames
|
|
12924
|
+
className: classNames(`${CLASSNAME$4}__badge`, badge.props.className)
|
|
12955
12925
|
})]
|
|
12956
12926
|
});
|
|
12957
12927
|
});
|
|
@@ -13029,7 +12999,7 @@ const Toolbar = forwardRef((props, ref) => {
|
|
|
13029
12999
|
return /*#__PURE__*/jsxs("div", {
|
|
13030
13000
|
ref: ref,
|
|
13031
13001
|
...forwardedProps,
|
|
13032
|
-
className: classNames
|
|
13002
|
+
className: classNames(className, handleBasicClasses({
|
|
13033
13003
|
hasAfter: Boolean(after),
|
|
13034
13004
|
hasBefore: Boolean(before),
|
|
13035
13005
|
hasLabel: Boolean(label),
|
|
@@ -13337,11 +13307,11 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
13337
13307
|
...forwardedProps,
|
|
13338
13308
|
id: id,
|
|
13339
13309
|
role: "tooltip",
|
|
13340
|
-
className: classNames
|
|
13310
|
+
className: classNames(className, handleBasicClasses({
|
|
13341
13311
|
prefix: CLASSNAME$2,
|
|
13342
13312
|
position,
|
|
13343
13313
|
isInitializing: !styles.popper?.transform
|
|
13344
|
-
}), isHidden &&
|
|
13314
|
+
}), isHidden && VISUALLY_HIDDEN),
|
|
13345
13315
|
style: {
|
|
13346
13316
|
...(isHidden ? undefined : styles.popper),
|
|
13347
13317
|
zIndex
|
|
@@ -13463,7 +13433,7 @@ const Uploader = forwardRef((props, ref) => {
|
|
|
13463
13433
|
...wrapper.props,
|
|
13464
13434
|
...forwardedProps,
|
|
13465
13435
|
onClick: handleClick,
|
|
13466
|
-
className: classNames
|
|
13436
|
+
className: classNames(className, handleBasicClasses({
|
|
13467
13437
|
aspectRatio: adjustedAspectRatio,
|
|
13468
13438
|
prefix: CLASSNAME$1,
|
|
13469
13439
|
size,
|
|
@@ -13487,7 +13457,7 @@ const Uploader = forwardRef((props, ref) => {
|
|
|
13487
13457
|
}), fileInputProps && /*#__PURE__*/jsx("input", {
|
|
13488
13458
|
type: "file",
|
|
13489
13459
|
id: inputId,
|
|
13490
|
-
className: `${CLASSNAME$1}__input ${
|
|
13460
|
+
className: `${CLASSNAME$1}__input ${VISUALLY_HIDDEN}`,
|
|
13491
13461
|
...disabledStateProps,
|
|
13492
13462
|
...fileInputProps,
|
|
13493
13463
|
readOnly: isAnyDisabled,
|
|
@@ -13566,7 +13536,7 @@ const UserBlock = forwardRef((props, ref) => {
|
|
|
13566
13536
|
let NameComponent = 'span';
|
|
13567
13537
|
const nProps = {
|
|
13568
13538
|
...nameProps,
|
|
13569
|
-
className: classNames
|
|
13539
|
+
className: classNames(`${CLASSNAME}__name`, linkProps?.className, nameProps?.className)
|
|
13570
13540
|
};
|
|
13571
13541
|
if (isClickable) {
|
|
13572
13542
|
NameComponent = Link;
|
|
@@ -13597,7 +13567,7 @@ const UserBlock = forwardRef((props, ref) => {
|
|
|
13597
13567
|
return /*#__PURE__*/jsxs("div", {
|
|
13598
13568
|
ref: ref,
|
|
13599
13569
|
...forwardedProps,
|
|
13600
|
-
className: classNames
|
|
13570
|
+
className: classNames(className, handleBasicClasses({
|
|
13601
13571
|
prefix: CLASSNAME,
|
|
13602
13572
|
orientation,
|
|
13603
13573
|
size: componentSize,
|
|
@@ -13611,7 +13581,7 @@ const UserBlock = forwardRef((props, ref) => {
|
|
|
13611
13581
|
linkProps: linkProps,
|
|
13612
13582
|
alt: "",
|
|
13613
13583
|
...avatarProps,
|
|
13614
|
-
className: classNames
|
|
13584
|
+
className: classNames(`${CLASSNAME}__avatar`, avatarProps.className),
|
|
13615
13585
|
size: componentSize,
|
|
13616
13586
|
onClick: onClick,
|
|
13617
13587
|
theme: theme
|