@lumx/react 3.9.7-alpha.3 → 3.9.7
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 → index.d.ts} +1 -44
- package/index.d.ts +46 -3
- package/index.js +174 -204
- package/index.js.map +1 -1
- package/package.json +11 -12
- package/src/components/tabs/Tabs.stories.tsx +147 -85
- package/src/stories/utils/concatPath.tsx +17 -0
- package/src/stories/utils/toFlattenProps.ts +28 -0
- package/src/stories/utils/withCategory.ts +12 -0
- package/utils/index.d.ts +1 -1
- package/utils/index.js +96 -1
- package/utils/index.js.map +1 -1
- package/_internal/ClickAwayProvider.js +0 -97
- package/_internal/ClickAwayProvider.js.map +0 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { forwardRef, useState, useEffect, useMemo, useRef, Children, isValidElement, cloneElement, useLayoutEffect, useCallback, Fragment
|
|
2
|
+
import React__default, { forwardRef, useState, useEffect, useMemo, useRef, Children, isValidElement, cloneElement, useLayoutEffect, useCallback, Fragment, 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';
|
|
@@ -12,7 +12,7 @@ import concat from 'lodash/concat';
|
|
|
12
12
|
import dropRight from 'lodash/dropRight';
|
|
13
13
|
import partition from 'lodash/partition';
|
|
14
14
|
import reduce from 'lodash/reduce';
|
|
15
|
-
import {
|
|
15
|
+
import { ClickAwayProvider } from './utils/index.js';
|
|
16
16
|
import memoize from 'lodash/memoize';
|
|
17
17
|
import isFunction from 'lodash/isFunction';
|
|
18
18
|
import castArray from 'lodash/castArray';
|
|
@@ -272,26 +272,15 @@ const WhiteSpace = {
|
|
|
272
272
|
* Re-exporting some utils types.
|
|
273
273
|
*/
|
|
274
274
|
|
|
275
|
-
|
|
276
|
-
return module = {
|
|
277
|
-
path: basedir,
|
|
278
|
-
exports: {},
|
|
279
|
-
require: function (path, base) {
|
|
280
|
-
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
281
|
-
}
|
|
282
|
-
}, fn(module, module.exports), module.exports;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
function commonjsRequire () {
|
|
286
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
287
|
-
}
|
|
275
|
+
var classnames = {exports: {}};
|
|
288
276
|
|
|
289
|
-
var classnames = createCommonjsModule(function (module) {
|
|
290
277
|
/*!
|
|
291
278
|
Copyright (c) 2018 Jed Watson.
|
|
292
279
|
Licensed under the MIT License (MIT), see
|
|
293
280
|
http://jedwatson.github.io/classnames
|
|
294
281
|
*/
|
|
282
|
+
|
|
283
|
+
(function (module) {
|
|
295
284
|
/* global define */
|
|
296
285
|
|
|
297
286
|
(function () {
|
|
@@ -340,7 +329,9 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
340
329
|
window.classNames = classNames;
|
|
341
330
|
}
|
|
342
331
|
}());
|
|
343
|
-
});
|
|
332
|
+
}(classnames));
|
|
333
|
+
|
|
334
|
+
var classNames = classnames.exports;
|
|
344
335
|
|
|
345
336
|
const mdiAlert='M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2z';const mdiAlertCircle='M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2';const mdiArrowDown='M11 4h2v12l5.5-5.5 1.42 1.42L12 19.84l-7.92-7.92L5.5 10.5 11 16z';const mdiArrowUp='M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8z';const mdiCheck='M21 7 9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59z';const mdiCheckCircle='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z';const mdiChevronDown='M7.41 8.58 12 13.17l4.59-4.59L18 10l-6 6-6-6z';const mdiChevronLeft='M15.41 16.58 10.83 12l4.58-4.59L14 6l-6 6 6 6z';const mdiChevronRight='M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6z';const mdiChevronUp='M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z';const mdiClose='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z';const mdiCloseCircle='M12 2a10 10 0 1 1 0 20 10 10 0 1 1 0-20m3.59 5L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z';const mdiDragVertical='M9 3h2v2H9zm4 0h2v2h-2zM9 7h2v2H9zm4 0h2v2h-2zm-4 4h2v2H9zm4 0h2v2h-2zm-4 4h2v2H9zm4 0h2v2h-2zm-4 4h2v2H9zm4 0h2v2h-2z';const mdiImageBroken='M19 3a2 2 0 0 1 2 2v6h-2v2h-2v2h-2v2h-2v2h-2v2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm2 12v4a2 2 0 0 1-2 2h-4v-2h2v-2h2v-2zm-2-6.5a.5.5 0 0 0-.5-.5h-13a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5H11v-1h2v-2h2v-2h2V9h2z';const mdiInformation='M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2';const mdiMagnifyMinusOutline='M15.5 14h-.79l-.28-.27A6.5 6.5 0 0 0 16 9.5 6.5 6.5 0 0 0 9.5 3 6.5 6.5 0 0 0 3 9.5 6.5 6.5 0 0 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5zm-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7z';const mdiMagnifyPlusOutline='m15.5 14 5 5-1.5 1.5-5-5v-.79l-.27-.28A6.5 6.5 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3 6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27zm-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2z';const mdiMenuDown='m7 10 5 5 5-5z';const mdiMinus='M19 13H5v-2h14z';const mdiPauseCircleOutline='M13 16V8h2v8zm-4 0V8h2v8zm3-14a10 10 0 0 1 10 10 10 10 0 0 1-10 10A10 10 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8 8 8 0 0 0-8-8';const mdiPlayCircleOutline='M12 20a8.01 8.01 0 0 1 0-16 8.01 8.01 0 0 1 0 16m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-2 14.5 6-4.5-6-4.5z';const mdiRadioboxBlank='M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2';const mdiRadioboxMarked='M12 20a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 5a5 5 0 0 0-5 5 5 5 0 0 0 5 5 5 5 0 0 0 5-5 5 5 0 0 0-5-5';
|
|
346
337
|
|
|
@@ -464,7 +455,7 @@ function handleBasicClasses(_ref2) {
|
|
|
464
455
|
})] = isBoolean(props[prop]) ? props[prop] : !_isEmpty(props[prop]);
|
|
465
456
|
});
|
|
466
457
|
}
|
|
467
|
-
return
|
|
458
|
+
return classNames(prefix, otherClasses);
|
|
468
459
|
}
|
|
469
460
|
|
|
470
461
|
/**
|
|
@@ -745,7 +736,7 @@ const AlertDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
745
736
|
'aria-labelledby': titleId,
|
|
746
737
|
'aria-describedby': descriptionId
|
|
747
738
|
}, dialogProps),
|
|
748
|
-
className:
|
|
739
|
+
className: classNames(className, handleBasicClasses({
|
|
749
740
|
kind,
|
|
750
741
|
prefix: CLASSNAME$1k
|
|
751
742
|
}))
|
|
@@ -910,7 +901,7 @@ const Autocomplete = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
910
901
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
911
902
|
ref: ref
|
|
912
903
|
}, forwardedProps, {
|
|
913
|
-
className:
|
|
904
|
+
className: classNames(className, handleBasicClasses({
|
|
914
905
|
prefix: CLASSNAME$1j
|
|
915
906
|
}))
|
|
916
907
|
}), /*#__PURE__*/React__default.createElement(TextField, _extends({}, textFieldProps, {
|
|
@@ -1043,7 +1034,7 @@ const AutocompleteMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1043
1034
|
ref: ref
|
|
1044
1035
|
}, forwardedProps, {
|
|
1045
1036
|
anchorToInput: anchorToInput,
|
|
1046
|
-
className:
|
|
1037
|
+
className: classNames(className, handleBasicClasses({
|
|
1047
1038
|
prefix: CLASSNAME$1i
|
|
1048
1039
|
})),
|
|
1049
1040
|
name: name,
|
|
@@ -1135,7 +1126,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1135
1126
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1136
1127
|
ref: ref
|
|
1137
1128
|
}, forwardedProps, {
|
|
1138
|
-
className:
|
|
1129
|
+
className: classNames(className, handleBasicClasses({
|
|
1139
1130
|
prefix: CLASSNAME$1h,
|
|
1140
1131
|
size,
|
|
1141
1132
|
theme
|
|
@@ -1202,7 +1193,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1202
1193
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1203
1194
|
ref: ref
|
|
1204
1195
|
}, forwardedProps, {
|
|
1205
|
-
className:
|
|
1196
|
+
className: classNames(className, handleBasicClasses({
|
|
1206
1197
|
prefix: CLASSNAME$1g,
|
|
1207
1198
|
color
|
|
1208
1199
|
}))
|
|
@@ -1474,7 +1465,7 @@ const ListItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1474
1465
|
return /*#__PURE__*/React__default.createElement("li", _extends({
|
|
1475
1466
|
ref: ref
|
|
1476
1467
|
}, forwardedProps, {
|
|
1477
|
-
className:
|
|
1468
|
+
className: classNames(className, handleBasicClasses({
|
|
1478
1469
|
prefix: CLASSNAME$1f,
|
|
1479
1470
|
size
|
|
1480
1471
|
}))
|
|
@@ -1489,7 +1480,7 @@ const ListItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1489
1480
|
'aria-disabled': isDisabled
|
|
1490
1481
|
}, linkProps), {}, {
|
|
1491
1482
|
href: isDisabled ? undefined : linkProps.href,
|
|
1492
|
-
className:
|
|
1483
|
+
className: classNames(handleBasicClasses({
|
|
1493
1484
|
prefix: `${CLASSNAME$1f}__link`,
|
|
1494
1485
|
isHighlighted,
|
|
1495
1486
|
isSelected,
|
|
@@ -1577,6 +1568,10 @@ const isComponentType = type => node => /*#__PURE__*/React__default.isValidEleme
|
|
|
1577
1568
|
* A point coordinate in 2D space
|
|
1578
1569
|
*/
|
|
1579
1570
|
|
|
1571
|
+
var reactIs = {exports: {}};
|
|
1572
|
+
|
|
1573
|
+
var reactIs_production_min = {};
|
|
1574
|
+
|
|
1580
1575
|
/**
|
|
1581
1576
|
* @license React
|
|
1582
1577
|
* react-is.production.min.js
|
|
@@ -1587,43 +1582,22 @@ const isComponentType = type => node => /*#__PURE__*/React__default.isValidEleme
|
|
|
1587
1582
|
* LICENSE file in the root directory of this source tree.
|
|
1588
1583
|
*/
|
|
1589
1584
|
var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
|
|
1590
|
-
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
var
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
Suspense: Suspense,
|
|
1607
|
-
SuspenseList: SuspenseList,
|
|
1608
|
-
isAsyncMode: isAsyncMode,
|
|
1609
|
-
isConcurrentMode: isConcurrentMode,
|
|
1610
|
-
isContextConsumer: isContextConsumer,
|
|
1611
|
-
isContextProvider: isContextProvider,
|
|
1612
|
-
isElement: isElement$1,
|
|
1613
|
-
isForwardRef: isForwardRef,
|
|
1614
|
-
isFragment: isFragment,
|
|
1615
|
-
isLazy: isLazy,
|
|
1616
|
-
isMemo: isMemo,
|
|
1617
|
-
isPortal: isPortal,
|
|
1618
|
-
isProfiler: isProfiler,
|
|
1619
|
-
isStrictMode: isStrictMode,
|
|
1620
|
-
isSuspense: isSuspense,
|
|
1621
|
-
isSuspenseList: isSuspenseList,
|
|
1622
|
-
isValidElementType: isValidElementType,
|
|
1623
|
-
typeOf: typeOf
|
|
1624
|
-
};
|
|
1625
|
-
|
|
1626
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
1585
|
+
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
|
1586
|
+
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
|
1587
|
+
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
|
1588
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v;
|
|
1589
|
+
|
|
1590
|
+
var reactIs_development = {};
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* @license React
|
|
1594
|
+
* react-is.development.js
|
|
1595
|
+
*
|
|
1596
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1597
|
+
*
|
|
1598
|
+
* This source code is licensed under the MIT license found in the
|
|
1599
|
+
* LICENSE file in the root directory of this source tree.
|
|
1600
|
+
*/
|
|
1627
1601
|
|
|
1628
1602
|
if (process.env.NODE_ENV !== "production") {
|
|
1629
1603
|
(function() {
|
|
@@ -1803,46 +1777,42 @@ function isSuspenseList(object) {
|
|
|
1803
1777
|
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
1804
1778
|
}
|
|
1805
1779
|
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1780
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
1781
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
1782
|
+
reactIs_development.Element = Element;
|
|
1783
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
1784
|
+
reactIs_development.Fragment = Fragment;
|
|
1785
|
+
reactIs_development.Lazy = Lazy;
|
|
1786
|
+
reactIs_development.Memo = Memo;
|
|
1787
|
+
reactIs_development.Portal = Portal;
|
|
1788
|
+
reactIs_development.Profiler = Profiler;
|
|
1789
|
+
reactIs_development.StrictMode = StrictMode;
|
|
1790
|
+
reactIs_development.Suspense = Suspense;
|
|
1791
|
+
reactIs_development.SuspenseList = SuspenseList;
|
|
1792
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
1793
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
1794
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
1795
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
1796
|
+
reactIs_development.isElement = isElement;
|
|
1797
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
1798
|
+
reactIs_development.isFragment = isFragment;
|
|
1799
|
+
reactIs_development.isLazy = isLazy;
|
|
1800
|
+
reactIs_development.isMemo = isMemo;
|
|
1801
|
+
reactIs_development.isPortal = isPortal;
|
|
1802
|
+
reactIs_development.isProfiler = isProfiler;
|
|
1803
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
1804
|
+
reactIs_development.isSuspense = isSuspense;
|
|
1805
|
+
reactIs_development.isSuspenseList = isSuspenseList;
|
|
1806
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
1807
|
+
reactIs_development.typeOf = typeOf;
|
|
1834
1808
|
})();
|
|
1835
1809
|
}
|
|
1836
|
-
});
|
|
1837
|
-
|
|
1838
|
-
var reactIs = createCommonjsModule(function (module) {
|
|
1839
1810
|
|
|
1840
1811
|
if (process.env.NODE_ENV === 'production') {
|
|
1841
|
-
|
|
1812
|
+
reactIs.exports = reactIs_production_min;
|
|
1842
1813
|
} else {
|
|
1843
|
-
|
|
1814
|
+
reactIs.exports = reactIs_development;
|
|
1844
1815
|
}
|
|
1845
|
-
});
|
|
1846
1816
|
|
|
1847
1817
|
/**
|
|
1848
1818
|
* Flatten list of react nodes removing fragments and adding keys.
|
|
@@ -1862,7 +1832,7 @@ function flattenChildren(children) {
|
|
|
1862
1832
|
return Children.toArray(nodes).reduce((acc, node, index) => {
|
|
1863
1833
|
var _get;
|
|
1864
1834
|
const nodeKeys = keys.concat((_get = get(node, 'key')) !== null && _get !== void 0 ? _get : index);
|
|
1865
|
-
if (reactIs.isFragment(node)) {
|
|
1835
|
+
if (reactIs.exports.isFragment(node)) {
|
|
1866
1836
|
acc.push(...recur(node.props.children, nodeKeys));
|
|
1867
1837
|
} else if ( /*#__PURE__*/isValidElement(node)) {
|
|
1868
1838
|
acc.push( /*#__PURE__*/cloneElement(node, {
|
|
@@ -2080,7 +2050,7 @@ const InternalList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
2080
2050
|
});
|
|
2081
2051
|
const clickable = hasClickableItem || isClickable;
|
|
2082
2052
|
return /*#__PURE__*/React__default.createElement("ul", _extends({}, forwardedProps, {
|
|
2083
|
-
className:
|
|
2053
|
+
className: classNames(className, handleBasicClasses({
|
|
2084
2054
|
prefix: CLASSNAME$1e,
|
|
2085
2055
|
itemPadding: itemPadding !== null && itemPadding !== void 0 ? itemPadding : clickable ? Size.big : undefined
|
|
2086
2056
|
})),
|
|
@@ -4764,7 +4734,7 @@ const _InnerPopover = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4764
4734
|
const mergedRefs = useMergeRefs(setPopperElement, ref, popoverRef);
|
|
4765
4735
|
return isOpen ? renderPopover( /*#__PURE__*/React__default.createElement(Component, _extends({}, forwardedProps, {
|
|
4766
4736
|
ref: mergedRefs,
|
|
4767
|
-
className:
|
|
4737
|
+
className: classNames(className, handleBasicClasses({
|
|
4768
4738
|
prefix: CLASSNAME$1d,
|
|
4769
4739
|
theme,
|
|
4770
4740
|
elevation: Math.min(elevation || 0, 5),
|
|
@@ -4922,7 +4892,7 @@ const Dropdown = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4922
4892
|
}, forwardedProps, {
|
|
4923
4893
|
focusAnchorOnClose: focusAnchorOnClose,
|
|
4924
4894
|
anchorRef: anchorRef,
|
|
4925
|
-
className:
|
|
4895
|
+
className: classNames(className, handleBasicClasses({
|
|
4926
4896
|
prefix: CLASSNAME$1c
|
|
4927
4897
|
})),
|
|
4928
4898
|
elevation: 0,
|
|
@@ -5002,7 +4972,7 @@ const InputHelper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5002
4972
|
return /*#__PURE__*/React__default.createElement("p", _extends({
|
|
5003
4973
|
ref: ref
|
|
5004
4974
|
}, forwardedProps, {
|
|
5005
|
-
className:
|
|
4975
|
+
className: classNames(className, handleBasicClasses({
|
|
5006
4976
|
prefix: CLASSNAME$1b,
|
|
5007
4977
|
color,
|
|
5008
4978
|
theme
|
|
@@ -5110,7 +5080,7 @@ const WithSelectContext = (SelectElement, _ref, ref) => {
|
|
|
5110
5080
|
useFocusTrap(isOpen && dropdownRef.current, focusElement === null || focusElement === void 0 ? void 0 : focusElement.current);
|
|
5111
5081
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5112
5082
|
ref: mergeRefs(ref, selectRef),
|
|
5113
|
-
className:
|
|
5083
|
+
className: classNames(className, handleBasicClasses({
|
|
5114
5084
|
hasError,
|
|
5115
5085
|
hasLabel: Boolean(label),
|
|
5116
5086
|
hasPlaceholder: Boolean(placeholder),
|
|
@@ -5180,7 +5150,7 @@ const BadgeWrapper = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5180
5150
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
5181
5151
|
ref: ref
|
|
5182
5152
|
}, forwardedProps, {
|
|
5183
|
-
className:
|
|
5153
|
+
className: classNames(className, handleBasicClasses({
|
|
5184
5154
|
prefix: CLASSNAME$19
|
|
5185
5155
|
}))
|
|
5186
5156
|
}), children, badge && /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -5218,7 +5188,7 @@ const renderButtonWrapper = props => {
|
|
|
5218
5188
|
fullWidth
|
|
5219
5189
|
} = props;
|
|
5220
5190
|
const adaptedColor = emphasis === Emphasis.low && (color === ColorPalette.light ? ColorPalette.dark : ColorPalette.light);
|
|
5221
|
-
const wrapperClassName =
|
|
5191
|
+
const wrapperClassName = classNames(handleBasicClasses({
|
|
5222
5192
|
color: adaptedColor,
|
|
5223
5193
|
prefix: BUTTON_WRAPPER_CLASSNAME,
|
|
5224
5194
|
variant,
|
|
@@ -5272,7 +5242,7 @@ const ButtonRoot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5272
5242
|
color: adaptedColor
|
|
5273
5243
|
}));
|
|
5274
5244
|
}
|
|
5275
|
-
const buttonClassName =
|
|
5245
|
+
const buttonClassName = classNames(className, handleBasicClasses({
|
|
5276
5246
|
color: adaptedColor,
|
|
5277
5247
|
emphasis,
|
|
5278
5248
|
isSelected,
|
|
@@ -5368,7 +5338,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5368
5338
|
theme
|
|
5369
5339
|
} = props,
|
|
5370
5340
|
forwardedProps = _objectWithoutProperties(props, _excluded$1e);
|
|
5371
|
-
const buttonClassName =
|
|
5341
|
+
const buttonClassName = classNames(className, getBasicClass({
|
|
5372
5342
|
prefix: CLASSNAME$18,
|
|
5373
5343
|
type: 'hasLeftIcon',
|
|
5374
5344
|
value: !isEmpty(leftIcon)
|
|
@@ -5495,7 +5465,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5495
5465
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
5496
5466
|
ref: ref
|
|
5497
5467
|
}, forwardedProps, {
|
|
5498
|
-
className:
|
|
5468
|
+
className: classNames(className, CLASSNAME$16)
|
|
5499
5469
|
}), children);
|
|
5500
5470
|
});
|
|
5501
5471
|
ButtonGroup.displayName = COMPONENT_NAME$18;
|
|
@@ -5571,7 +5541,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5571
5541
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
5572
5542
|
ref: ref
|
|
5573
5543
|
}, forwardedProps, {
|
|
5574
|
-
className:
|
|
5544
|
+
className: classNames(className, handleBasicClasses({
|
|
5575
5545
|
// Whether state is intermediate class name will "-checked"
|
|
5576
5546
|
isChecked: intermediateState ? true : isChecked,
|
|
5577
5547
|
isDisabled,
|
|
@@ -5715,7 +5685,7 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5715
5685
|
}, forwardedProps, {
|
|
5716
5686
|
href: href,
|
|
5717
5687
|
ref: ref,
|
|
5718
|
-
className:
|
|
5688
|
+
className: classNames(className, handleBasicClasses({
|
|
5719
5689
|
clickable: isClickable,
|
|
5720
5690
|
color: chipColor,
|
|
5721
5691
|
isDisabled,
|
|
@@ -5734,7 +5704,7 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5734
5704
|
/*#__PURE__*/
|
|
5735
5705
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
5736
5706
|
React__default.createElement("div", {
|
|
5737
|
-
className:
|
|
5707
|
+
className: classNames(`${CLASSNAME$14}__before`, {
|
|
5738
5708
|
[`${CLASSNAME$14}__before--is-clickable`]: hasBeforeClick
|
|
5739
5709
|
}),
|
|
5740
5710
|
onClick: handleOnBeforeClick
|
|
@@ -5744,7 +5714,7 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5744
5714
|
/*#__PURE__*/
|
|
5745
5715
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
5746
5716
|
React__default.createElement("div", {
|
|
5747
|
-
className:
|
|
5717
|
+
className: classNames(`${CLASSNAME$14}__after`, {
|
|
5748
5718
|
[`${CLASSNAME$14}__after--is-clickable`]: hasAfterClick
|
|
5749
5719
|
}),
|
|
5750
5720
|
onClick: handleOnAfterClick
|
|
@@ -5848,7 +5818,7 @@ const InternalChipGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5848
5818
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
5849
5819
|
ref: ref
|
|
5850
5820
|
}, forwardedProps, {
|
|
5851
|
-
className:
|
|
5821
|
+
className: classNames(className, chipGroupClassName)
|
|
5852
5822
|
}), children);
|
|
5853
5823
|
});
|
|
5854
5824
|
InternalChipGroup.displayName = COMPONENT_NAME$15;
|
|
@@ -5920,7 +5890,7 @@ const CommentBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5920
5890
|
const hasChildren = Children.count(children) > 0;
|
|
5921
5891
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
5922
5892
|
ref: ref,
|
|
5923
|
-
className:
|
|
5893
|
+
className: classNames(className, handleBasicClasses({
|
|
5924
5894
|
hasChildren: hasChildren && isOpen,
|
|
5925
5895
|
hasIndentedChildren: hasChildren && variant === CommentBlockVariant.indented,
|
|
5926
5896
|
hasLinearChildren: hasChildren && variant === CommentBlockVariant.linear,
|
|
@@ -6382,7 +6352,7 @@ const DatePickerControlled = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6382
6352
|
className: `${CLASSNAME$11}__day-wrapper`
|
|
6383
6353
|
}, date && /*#__PURE__*/React__default.createElement(Button, {
|
|
6384
6354
|
ref: isSelected || !value && isToday ? todayOrSelectedDateRef : null,
|
|
6385
|
-
className:
|
|
6355
|
+
className: classNames(`${CLASSNAME$11}__month-day`, {
|
|
6386
6356
|
[`${CLASSNAME$11}__month-day--is-today`]: isToday
|
|
6387
6357
|
}),
|
|
6388
6358
|
disabled: isOutOfRange,
|
|
@@ -6990,7 +6960,7 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6990
6960
|
return isOpen || isVisible ? /*#__PURE__*/createPortal( /*#__PURE__*/React__default.createElement("div", _extends({
|
|
6991
6961
|
ref: mergeRefs(rootRef, ref)
|
|
6992
6962
|
}, forwardedProps, {
|
|
6993
|
-
className:
|
|
6963
|
+
className: classNames(className, handleBasicClasses({
|
|
6994
6964
|
isHidden: !isOpen,
|
|
6995
6965
|
isLoading,
|
|
6996
6966
|
isShown: isOpen || isVisible,
|
|
@@ -7014,7 +6984,7 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7014
6984
|
className: `${CLASSNAME$10}__wrapper`,
|
|
7015
6985
|
ref: wrapperRef
|
|
7016
6986
|
}, (header || headerChildContent) && /*#__PURE__*/React__default.createElement("header", _extends({}, headerChildProps, {
|
|
7017
|
-
className:
|
|
6987
|
+
className: classNames(`${CLASSNAME$10}__header`, (forceHeaderDivider || hasTopIntersection) && `${CLASSNAME$10}__header--has-divider`, headerChildProps === null || headerChildProps === void 0 ? void 0 : headerChildProps.className)
|
|
7018
6988
|
}), header, headerChildContent), /*#__PURE__*/React__default.createElement("div", {
|
|
7019
6989
|
ref: mergeRefs(contentRef, localContentRef),
|
|
7020
6990
|
className: `${CLASSNAME$10}__content`
|
|
@@ -7025,7 +6995,7 @@ const Dialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7025
6995
|
className: `${CLASSNAME$10}__sentinel ${CLASSNAME$10}__sentinel--bottom`,
|
|
7026
6996
|
ref: setSentinelBottom
|
|
7027
6997
|
})), (footer || footerChildContent) && /*#__PURE__*/React__default.createElement("footer", _extends({}, footerChildProps, {
|
|
7028
|
-
className:
|
|
6998
|
+
className: classNames(`${CLASSNAME$10}__footer`, (forceFooterDivider || hasBottomIntersection) && `${CLASSNAME$10}__footer--has-divider`, footerChildProps === null || footerChildProps === void 0 ? void 0 : footerChildProps.className)
|
|
7029
6999
|
}), footer, footerChildContent), isLoading && /*#__PURE__*/React__default.createElement("div", {
|
|
7030
7000
|
className: `${CLASSNAME$10}__progress-overlay`
|
|
7031
7001
|
}, /*#__PURE__*/React__default.createElement(Progress, {
|
|
@@ -7075,7 +7045,7 @@ const Divider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7075
7045
|
return /*#__PURE__*/React__default.createElement("hr", _extends({
|
|
7076
7046
|
ref: ref
|
|
7077
7047
|
}, forwardedProps, {
|
|
7078
|
-
className:
|
|
7048
|
+
className: classNames(className, handleBasicClasses({
|
|
7079
7049
|
prefix: CLASSNAME$$,
|
|
7080
7050
|
theme
|
|
7081
7051
|
}))
|
|
@@ -7117,7 +7087,7 @@ const DragHandle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7117
7087
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7118
7088
|
ref: ref
|
|
7119
7089
|
}, forwardedProps, {
|
|
7120
|
-
className:
|
|
7090
|
+
className: classNames(className, handleBasicClasses({
|
|
7121
7091
|
prefix: CLASSNAME$_,
|
|
7122
7092
|
theme
|
|
7123
7093
|
}))
|
|
@@ -7201,7 +7171,7 @@ const ExpansionPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7201
7171
|
}
|
|
7202
7172
|
};
|
|
7203
7173
|
const color = theme === Theme.dark ? ColorPalette.light : ColorPalette.dark;
|
|
7204
|
-
const rootClassName =
|
|
7174
|
+
const rootClassName = classNames(className, handleBasicClasses({
|
|
7205
7175
|
hasBackground,
|
|
7206
7176
|
hasHeader: Boolean(!isEmpty(headerProps.children)),
|
|
7207
7177
|
hasHeaderDivider,
|
|
@@ -7285,7 +7255,7 @@ const Flag = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7285
7255
|
const flagColor = color || (theme === Theme.light ? ColorPalette.dark : ColorPalette.light);
|
|
7286
7256
|
const isTruncated = !!truncate;
|
|
7287
7257
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, forwardedProps, {
|
|
7288
|
-
className:
|
|
7258
|
+
className: classNames(className, handleBasicClasses({
|
|
7289
7259
|
prefix: CLASSNAME$Y,
|
|
7290
7260
|
color: flagColor,
|
|
7291
7261
|
isTruncated
|
|
@@ -7347,7 +7317,7 @@ const FlexBox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7347
7317
|
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
7348
7318
|
ref: ref
|
|
7349
7319
|
}, forwardedProps, {
|
|
7350
|
-
className:
|
|
7320
|
+
className: classNames(className, handleBasicClasses({
|
|
7351
7321
|
prefix: CLASSNAME$X,
|
|
7352
7322
|
orientation: orientation !== null && orientation !== void 0 ? orientation : wrap || hAlign || vAlign ? Orientation.horizontal : null,
|
|
7353
7323
|
vAlign,
|
|
@@ -7424,7 +7394,7 @@ const BaseGenericBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7424
7394
|
}, [children]);
|
|
7425
7395
|
return /*#__PURE__*/React__default.createElement(FlexBox, _extends({
|
|
7426
7396
|
ref: ref,
|
|
7427
|
-
className:
|
|
7397
|
+
className: classNames(className, CLASSNAME$W),
|
|
7428
7398
|
gap: gap,
|
|
7429
7399
|
orientation: orientation
|
|
7430
7400
|
}, forwardedProps), (figure || ((_sections$figureChild = sections.figureChildProps) === null || _sections$figureChild === void 0 ? void 0 : _sections$figureChild.children)) && /*#__PURE__*/React__default.createElement(FlexBox, _extends({
|
|
@@ -7432,7 +7402,7 @@ const BaseGenericBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7432
7402
|
vAlign: forwardedProps.vAlign,
|
|
7433
7403
|
hAlign: forwardedProps.hAlign
|
|
7434
7404
|
}, figureProps, sections.figureChildProps, {
|
|
7435
|
-
className:
|
|
7405
|
+
className: classNames(figureProps === null || figureProps === void 0 ? void 0 : figureProps.className, (_sections$figureChild3 = sections.figureChildProps) === null || _sections$figureChild3 === void 0 ? void 0 : _sections$figureChild3.className, `${CLASSNAME$W}__figure`)
|
|
7436
7406
|
}), figure, (_sections$figureChild4 = sections.figureChildProps) === null || _sections$figureChild4 === void 0 ? void 0 : _sections$figureChild4.children), (((_sections$contentChil = sections.contentChildProps) === null || _sections$contentChil === void 0 ? void 0 : _sections$contentChil.children) || sections.otherChildren.length > 0) && /*#__PURE__*/React__default.createElement(FlexBox, _extends({
|
|
7437
7407
|
ref: (_sections$contentChil2 = sections.contentChild) === null || _sections$contentChil2 === void 0 ? void 0 : _sections$contentChil2.ref,
|
|
7438
7408
|
orientation: Orientation.vertical,
|
|
@@ -7440,13 +7410,13 @@ const BaseGenericBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7440
7410
|
vAlign: forwardedProps.vAlign,
|
|
7441
7411
|
hAlign: forwardedProps.hAlign
|
|
7442
7412
|
}, contentProps, sections.contentChildProps, {
|
|
7443
|
-
className:
|
|
7413
|
+
className: classNames(contentProps === null || contentProps === void 0 ? void 0 : contentProps.className, (_sections$contentChil3 = sections.contentChildProps) === null || _sections$contentChil3 === void 0 ? void 0 : _sections$contentChil3.className, `${CLASSNAME$W}__content`)
|
|
7444
7414
|
}), (_sections$contentChil4 = sections.contentChildProps) === null || _sections$contentChil4 === void 0 ? void 0 : _sections$contentChil4.children, sections.otherChildren), (actions || ((_sections$actionsChil = sections.actionsChildProps) === null || _sections$actionsChil === void 0 ? void 0 : _sections$actionsChil.children)) && /*#__PURE__*/React__default.createElement(FlexBox, _extends({
|
|
7445
7415
|
ref: (_sections$actionsChil2 = sections.actionsChild) === null || _sections$actionsChil2 === void 0 ? void 0 : _sections$actionsChil2.ref,
|
|
7446
7416
|
vAlign: forwardedProps.vAlign,
|
|
7447
7417
|
hAlign: forwardedProps.hAlign
|
|
7448
7418
|
}, actionsProps, sections.actionsChildProps, {
|
|
7449
|
-
className:
|
|
7419
|
+
className: classNames(actionsProps === null || actionsProps === void 0 ? void 0 : actionsProps.className, (_sections$actionsChil3 = sections.actionsChildProps) === null || _sections$actionsChil3 === void 0 ? void 0 : _sections$actionsChil3.className, `${CLASSNAME$W}__actions`)
|
|
7450
7420
|
}), actions, (_sections$actionsChil4 = sections.actionsChildProps) === null || _sections$actionsChil4 === void 0 ? void 0 : _sections$actionsChil4.children));
|
|
7451
7421
|
});
|
|
7452
7422
|
BaseGenericBlock.displayName = COMPONENT_NAME$W;
|
|
@@ -7573,7 +7543,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7573
7543
|
} = useOverflowTooltipLabel();
|
|
7574
7544
|
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
7575
7545
|
ref: useMergeRefs(ref, labelRef),
|
|
7576
|
-
className:
|
|
7546
|
+
className: classNames(className, handleBasicClasses({
|
|
7577
7547
|
prefix: CLASSNAME$V,
|
|
7578
7548
|
isTruncated: isTruncated && !isTruncatedMultiline,
|
|
7579
7549
|
isTruncatedMultiline
|
|
@@ -7583,7 +7553,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7583
7553
|
}, forwardedProps), children && Children.toArray(children).map((child, index) => {
|
|
7584
7554
|
// Force wrap spaces around icons to make sure they are never stuck against text.
|
|
7585
7555
|
if (isComponent(Icon)(child)) {
|
|
7586
|
-
return /*#__PURE__*/React__default.createElement(Fragment
|
|
7556
|
+
return /*#__PURE__*/React__default.createElement(Fragment, {
|
|
7587
7557
|
key: child.key || index
|
|
7588
7558
|
}, " ", child, " ");
|
|
7589
7559
|
}
|
|
@@ -7665,7 +7635,7 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7665
7635
|
const computedHeadingElement = as || headingElement;
|
|
7666
7636
|
return /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
7667
7637
|
ref: ref,
|
|
7668
|
-
className:
|
|
7638
|
+
className: classNames(className, handleBasicClasses({
|
|
7669
7639
|
prefix: CLASSNAME$U
|
|
7670
7640
|
})),
|
|
7671
7641
|
as: computedHeadingElement,
|
|
@@ -7744,7 +7714,7 @@ const Grid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7744
7714
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7745
7715
|
ref: ref
|
|
7746
7716
|
}, forwardedProps, {
|
|
7747
|
-
className:
|
|
7717
|
+
className: classNames(className, `${CLASSNAME$T}-container`, {
|
|
7748
7718
|
[`${CLASSNAME$T}--h-align-${hAlign}`]: hAlign
|
|
7749
7719
|
}, {
|
|
7750
7720
|
[`${CLASSNAME$T}--v-align-${vAlign}`]: vAlign
|
|
@@ -7795,7 +7765,7 @@ const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7795
7765
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7796
7766
|
ref: ref
|
|
7797
7767
|
}, forwardedProps, {
|
|
7798
|
-
className:
|
|
7768
|
+
className: classNames(className, handleBasicClasses({
|
|
7799
7769
|
prefix: CLASSNAME$S,
|
|
7800
7770
|
width,
|
|
7801
7771
|
order,
|
|
@@ -7849,7 +7819,7 @@ const GridColumn = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7849
7819
|
forwardedProps = _objectWithoutProperties(props, _excluded$W);
|
|
7850
7820
|
return /*#__PURE__*/React__default.createElement(Component, _extends({}, forwardedProps, {
|
|
7851
7821
|
ref: ref,
|
|
7852
|
-
className:
|
|
7822
|
+
className: classNames(className, handleBasicClasses({
|
|
7853
7823
|
prefix: CLASSNAME$R
|
|
7854
7824
|
})),
|
|
7855
7825
|
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
|
@@ -7930,7 +7900,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7930
7900
|
return /*#__PURE__*/React__default.createElement("i", _extends({
|
|
7931
7901
|
ref: ref
|
|
7932
7902
|
}, forwardedProps, {
|
|
7933
|
-
className:
|
|
7903
|
+
className: classNames(className, handleBasicClasses({
|
|
7934
7904
|
color: iconColor,
|
|
7935
7905
|
colorVariant: iconColorVariant,
|
|
7936
7906
|
hasShape,
|
|
@@ -7990,7 +7960,7 @@ const ImageCaption = props => {
|
|
|
7990
7960
|
};
|
|
7991
7961
|
return /*#__PURE__*/React__default.createElement(FlexBox, {
|
|
7992
7962
|
as: as,
|
|
7993
|
-
className:
|
|
7963
|
+
className: classNames(baseClassName && `${baseClassName}__wrapper`),
|
|
7994
7964
|
style: captionStyle,
|
|
7995
7965
|
orientation: "vertical",
|
|
7996
7966
|
vAlign: align,
|
|
@@ -7998,18 +7968,18 @@ const ImageCaption = props => {
|
|
|
7998
7968
|
gap: "regular"
|
|
7999
7969
|
}, (title || description) && /*#__PURE__*/React__default.createElement(Text, _extends({
|
|
8000
7970
|
as: "p",
|
|
8001
|
-
className:
|
|
7971
|
+
className: classNames(baseClassName && `${baseClassName}__caption`),
|
|
8002
7972
|
truncate: truncate
|
|
8003
7973
|
}, baseColor), title && /*#__PURE__*/React__default.createElement(Text, _extends({}, titleProps, {
|
|
8004
7974
|
as: "span",
|
|
8005
|
-
className:
|
|
7975
|
+
className: classNames(titleProps === null || titleProps === void 0 ? void 0 : titleProps.className, baseClassName && `${baseClassName}__title`),
|
|
8006
7976
|
typography: "subtitle1"
|
|
8007
7977
|
}, titleColor), title), ' ', description && /*#__PURE__*/React__default.createElement(Text, _extends({}, descriptionProps, {
|
|
8008
7978
|
as: "span",
|
|
8009
|
-
className:
|
|
7979
|
+
className: classNames(descriptionProps === null || descriptionProps === void 0 ? void 0 : descriptionProps.className, baseClassName && `${baseClassName}__description`),
|
|
8010
7980
|
typography: "body1"
|
|
8011
7981
|
}, descriptionContent))), tags && /*#__PURE__*/React__default.createElement(FlexBox, {
|
|
8012
|
-
className:
|
|
7982
|
+
className: classNames(baseClassName && `${baseClassName}__tags`),
|
|
8013
7983
|
orientation: "horizontal",
|
|
8014
7984
|
vAlign: align
|
|
8015
7985
|
}, tags));
|
|
@@ -8082,7 +8052,7 @@ const ImageBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8082
8052
|
return /*#__PURE__*/React__default.createElement("figure", _extends({
|
|
8083
8053
|
ref: ref
|
|
8084
8054
|
}, forwardedProps, {
|
|
8085
|
-
className:
|
|
8055
|
+
className: classNames(className, handleBasicClasses({
|
|
8086
8056
|
prefix: CLASSNAME$P,
|
|
8087
8057
|
captionPosition,
|
|
8088
8058
|
align,
|
|
@@ -8090,7 +8060,7 @@ const ImageBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8090
8060
|
theme
|
|
8091
8061
|
}), fillHeight && `${CLASSNAME$P}--fill-height`)
|
|
8092
8062
|
}), /*#__PURE__*/React__default.createElement(Thumbnail, _extends({}, thumbnailProps, {
|
|
8093
|
-
className:
|
|
8063
|
+
className: classNames(`${CLASSNAME$P}__image`, thumbnailProps === null || thumbnailProps === void 0 ? void 0 : thumbnailProps.className),
|
|
8094
8064
|
fillHeight: fillHeight,
|
|
8095
8065
|
align: align,
|
|
8096
8066
|
image: image,
|
|
@@ -8827,7 +8797,7 @@ const Inner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8827
8797
|
}, [onClose]);
|
|
8828
8798
|
return /*#__PURE__*/React__default.createElement(Lightbox, _extends({
|
|
8829
8799
|
ref: ref,
|
|
8830
|
-
className:
|
|
8800
|
+
className: classNames(className, CLASSNAME$O),
|
|
8831
8801
|
parentElement: parentElement,
|
|
8832
8802
|
isOpen: isOpen,
|
|
8833
8803
|
onClose: onClose,
|
|
@@ -8910,7 +8880,7 @@ const InlineList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8910
8880
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
8911
8881
|
React__default.createElement("ul", _extends({}, forwardedProps, {
|
|
8912
8882
|
ref: ref,
|
|
8913
|
-
className:
|
|
8883
|
+
className: classNames(className, CLASSNAME$N, wrap && `${CLASSNAME$N}--wrap`, fontColorClassName, typographyClassName)
|
|
8914
8884
|
// Lists with removed bullet style can lose their a11y list role on some browsers
|
|
8915
8885
|
,
|
|
8916
8886
|
role: "list"
|
|
@@ -8979,7 +8949,7 @@ const InputLabel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8979
8949
|
ref: ref
|
|
8980
8950
|
}, forwardedProps, {
|
|
8981
8951
|
htmlFor: htmlFor,
|
|
8982
|
-
className:
|
|
8952
|
+
className: classNames(className, handleBasicClasses({
|
|
8983
8953
|
prefix: CLASSNAME$M,
|
|
8984
8954
|
isRequired,
|
|
8985
8955
|
theme
|
|
@@ -9090,7 +9060,7 @@ const Lightbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9090
9060
|
"aria-modal": "true",
|
|
9091
9061
|
role: "dialog",
|
|
9092
9062
|
tabIndex: -1,
|
|
9093
|
-
className:
|
|
9063
|
+
className: classNames(className, handleBasicClasses({
|
|
9094
9064
|
prefix: CLASSNAME$L,
|
|
9095
9065
|
isHidden: !isOpen,
|
|
9096
9066
|
isShown: isOpen || isVisible,
|
|
@@ -9190,7 +9160,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9190
9160
|
className: `${CLASSNAME$K}__left-icon`,
|
|
9191
9161
|
size: getIconSize(typography)
|
|
9192
9162
|
}), children && /*#__PURE__*/React__default.createElement("span", {
|
|
9193
|
-
className:
|
|
9163
|
+
className: classNames(`${CLASSNAME$K}__content`, {
|
|
9194
9164
|
[`lumx-typography-${typography}`]: typography
|
|
9195
9165
|
})
|
|
9196
9166
|
}, children), rightIcon && !isEmpty(rightIcon) && /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -9209,7 +9179,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9209
9179
|
}, forwardedProps, {
|
|
9210
9180
|
ref: ref,
|
|
9211
9181
|
disabled: isDisabled,
|
|
9212
|
-
className:
|
|
9182
|
+
className: classNames(className, handleBasicClasses({
|
|
9213
9183
|
prefix: CLASSNAME$K,
|
|
9214
9184
|
color,
|
|
9215
9185
|
colorVariant
|
|
@@ -9221,7 +9191,7 @@ const Link = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9221
9191
|
}, forwardedProps), {}, {
|
|
9222
9192
|
href,
|
|
9223
9193
|
target,
|
|
9224
|
-
className:
|
|
9194
|
+
className: classNames(className, handleBasicClasses({
|
|
9225
9195
|
prefix: CLASSNAME$K,
|
|
9226
9196
|
color,
|
|
9227
9197
|
colorVariant
|
|
@@ -9283,7 +9253,7 @@ const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9283
9253
|
return /*#__PURE__*/React__default.createElement("article", _extends({
|
|
9284
9254
|
ref: ref
|
|
9285
9255
|
}, forwardedProps, {
|
|
9286
|
-
className:
|
|
9256
|
+
className: classNames(className, handleBasicClasses({
|
|
9287
9257
|
prefix: CLASSNAME$J,
|
|
9288
9258
|
size: size === Size.big && thumbnailProps ? Size.big : Size.regular,
|
|
9289
9259
|
theme
|
|
@@ -9318,7 +9288,7 @@ const LinkPreview = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9318
9288
|
className: `${CLASSNAME$J}__link`
|
|
9319
9289
|
}, /*#__PURE__*/React__default.createElement(Link, _extends({}, linkProps, {
|
|
9320
9290
|
linkAs: linkAs,
|
|
9321
|
-
className:
|
|
9291
|
+
className: classNames(`${CLASSNAME$J}__link`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className),
|
|
9322
9292
|
target: "_blank",
|
|
9323
9293
|
href: link,
|
|
9324
9294
|
color: theme === Theme.light ? ColorPalette.primary : ColorPalette.light,
|
|
@@ -9363,7 +9333,7 @@ const ListDivider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9363
9333
|
return /*#__PURE__*/React__default.createElement("li", _extends({
|
|
9364
9334
|
ref: ref
|
|
9365
9335
|
}, forwardedProps, {
|
|
9366
|
-
className:
|
|
9336
|
+
className: classNames(className, handleBasicClasses({
|
|
9367
9337
|
prefix: CLASSNAME$I
|
|
9368
9338
|
}))
|
|
9369
9339
|
}));
|
|
@@ -9403,7 +9373,7 @@ const ListSubheader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9403
9373
|
return /*#__PURE__*/React__default.createElement("li", _extends({
|
|
9404
9374
|
ref: ref
|
|
9405
9375
|
}, forwardedProps, {
|
|
9406
|
-
className:
|
|
9376
|
+
className: classNames(className, handleBasicClasses({
|
|
9407
9377
|
prefix: CLASSNAME$H
|
|
9408
9378
|
}))
|
|
9409
9379
|
}), children);
|
|
@@ -9477,7 +9447,7 @@ const Message = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9477
9447
|
const isCloseButtonDisplayed = hasBackground && kind === 'info' && onClick && closeButtonLabel;
|
|
9478
9448
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9479
9449
|
ref: ref,
|
|
9480
|
-
className:
|
|
9450
|
+
className: classNames(className, handleBasicClasses({
|
|
9481
9451
|
color,
|
|
9482
9452
|
hasBackground,
|
|
9483
9453
|
prefix: CLASSNAME$G
|
|
@@ -9549,7 +9519,7 @@ const Mosaic = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9549
9519
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9550
9520
|
ref: ref
|
|
9551
9521
|
}, forwardedProps, {
|
|
9552
|
-
className:
|
|
9522
|
+
className: classNames(className, handleBasicClasses({
|
|
9553
9523
|
prefix: CLASSNAME$F,
|
|
9554
9524
|
theme
|
|
9555
9525
|
}), {
|
|
@@ -9628,7 +9598,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
9628
9598
|
type: 'button'
|
|
9629
9599
|
} : {};
|
|
9630
9600
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
9631
|
-
className:
|
|
9601
|
+
className: classNames(className, handleBasicClasses({
|
|
9632
9602
|
prefix: CLASSNAME$E,
|
|
9633
9603
|
theme
|
|
9634
9604
|
}))
|
|
@@ -9689,7 +9659,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
|
|
|
9689
9659
|
const theme = useContext(ThemeContext);
|
|
9690
9660
|
const isDropdown = orientation === Orientation.horizontal;
|
|
9691
9661
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
9692
|
-
className:
|
|
9662
|
+
className: classNames(className, CLASSNAME$D, CLASSNAME$E, handleBasicClasses({
|
|
9693
9663
|
prefix: CLASSNAME$E,
|
|
9694
9664
|
theme
|
|
9695
9665
|
})),
|
|
@@ -9697,7 +9667,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
|
|
|
9697
9667
|
}, /*#__PURE__*/React__default.createElement("button", _extends({}, forwardedProps, {
|
|
9698
9668
|
"aria-controls": sectionId,
|
|
9699
9669
|
"aria-expanded": isOpen,
|
|
9700
|
-
className:
|
|
9670
|
+
className: classNames(`${CLASSNAME$E}__link`),
|
|
9701
9671
|
ref: buttonRef,
|
|
9702
9672
|
onClick: event => {
|
|
9703
9673
|
setIsOpen(!isOpen);
|
|
@@ -9714,7 +9684,7 @@ const NavigationSection = Object.assign( /*#__PURE__*/forwardRef((props, ref) =>
|
|
|
9714
9684
|
className: `${CLASSNAME$E}__label`,
|
|
9715
9685
|
ref: ref
|
|
9716
9686
|
}, label), /*#__PURE__*/React__default.createElement(Icon, {
|
|
9717
|
-
className:
|
|
9687
|
+
className: classNames(`${CLASSNAME$E}__icon`, `${CLASSNAME$D}__chevron`),
|
|
9718
9688
|
icon: isOpen ? mdiChevronUp : mdiChevronDown
|
|
9719
9689
|
})), isOpen && (isDropdown ? /*#__PURE__*/React__default.createElement(Popover, {
|
|
9720
9690
|
anchorRef: buttonRef,
|
|
@@ -9768,7 +9738,7 @@ forwardRef((props, ref) => {
|
|
|
9768
9738
|
return /*#__PURE__*/React__default.createElement(ThemeContext.Provider, {
|
|
9769
9739
|
value: theme
|
|
9770
9740
|
}, /*#__PURE__*/React__default.createElement("nav", _extends({
|
|
9771
|
-
className:
|
|
9741
|
+
className: classNames(className, handleBasicClasses({
|
|
9772
9742
|
prefix: CLASSNAME$C,
|
|
9773
9743
|
theme,
|
|
9774
9744
|
orientation
|
|
@@ -9890,7 +9860,7 @@ const Notification = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9890
9860
|
ref: mergeRefs(ref, rootRef),
|
|
9891
9861
|
role: "alert"
|
|
9892
9862
|
}, forwardedProps, {
|
|
9893
|
-
className:
|
|
9863
|
+
className: classNames(className, handleBasicClasses({
|
|
9894
9864
|
color,
|
|
9895
9865
|
hasAction,
|
|
9896
9866
|
isHidden: !isOpen,
|
|
@@ -9961,7 +9931,7 @@ const PopoverDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9961
9931
|
forwardedProps = _objectWithoutProperties(props, _excluded$E);
|
|
9962
9932
|
return /*#__PURE__*/React__default.createElement(Popover, _extends({}, forwardedProps, {
|
|
9963
9933
|
ref: ref,
|
|
9964
|
-
className:
|
|
9934
|
+
className: classNames(className, handleBasicClasses({
|
|
9965
9935
|
prefix: CLASSNAME$A
|
|
9966
9936
|
})),
|
|
9967
9937
|
role: "dialog",
|
|
@@ -10031,7 +10001,7 @@ const PostBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10031
10001
|
forwardedProps = _objectWithoutProperties(props, _excluded$D);
|
|
10032
10002
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
10033
10003
|
ref: ref,
|
|
10034
|
-
className:
|
|
10004
|
+
className: classNames(className, handleBasicClasses({
|
|
10035
10005
|
prefix: CLASSNAME$z,
|
|
10036
10006
|
orientation,
|
|
10037
10007
|
theme
|
|
@@ -10107,7 +10077,7 @@ const ProgressLinear = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10107
10077
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
10108
10078
|
ref: ref
|
|
10109
10079
|
}, forwardedProps, {
|
|
10110
|
-
className:
|
|
10080
|
+
className: classNames(className, handleBasicClasses({
|
|
10111
10081
|
prefix: CLASSNAME$y,
|
|
10112
10082
|
theme
|
|
10113
10083
|
}))
|
|
@@ -10166,7 +10136,7 @@ const ProgressCircular = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10166
10136
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
10167
10137
|
ref: ref
|
|
10168
10138
|
}, forwardedProps, {
|
|
10169
|
-
className:
|
|
10139
|
+
className: classNames(className, handleBasicClasses({
|
|
10170
10140
|
prefix: CLASSNAME$x,
|
|
10171
10141
|
theme,
|
|
10172
10142
|
size
|
|
@@ -10241,7 +10211,7 @@ const Progress = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10241
10211
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
10242
10212
|
ref: ref
|
|
10243
10213
|
}, forwardedProps, {
|
|
10244
|
-
className:
|
|
10214
|
+
className: classNames(className, handleBasicClasses({
|
|
10245
10215
|
prefix: CLASSNAME$w,
|
|
10246
10216
|
theme,
|
|
10247
10217
|
variant
|
|
@@ -10552,7 +10522,7 @@ const ProgressTracker = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10552
10522
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
10553
10523
|
ref: mergeRefs(ref, stepListRef)
|
|
10554
10524
|
}, forwardedProps, {
|
|
10555
|
-
className:
|
|
10525
|
+
className: classNames(className, handleBasicClasses({
|
|
10556
10526
|
prefix: CLASSNAME$v
|
|
10557
10527
|
}))
|
|
10558
10528
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10659,7 +10629,7 @@ const ProgressTrackerStep = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10659
10629
|
}, forwardedProps, {
|
|
10660
10630
|
type: "button",
|
|
10661
10631
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
10662
|
-
className:
|
|
10632
|
+
className: classNames(className, handleBasicClasses({
|
|
10663
10633
|
prefix: CLASSNAME$u,
|
|
10664
10634
|
hasError,
|
|
10665
10635
|
isActive,
|
|
@@ -10734,7 +10704,7 @@ const ProgressTrackerStepPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10734
10704
|
ref: ref
|
|
10735
10705
|
}, forwardedProps, {
|
|
10736
10706
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
10737
|
-
className:
|
|
10707
|
+
className: classNames(className, handleBasicClasses({
|
|
10738
10708
|
prefix: CLASSNAME$t,
|
|
10739
10709
|
isActive
|
|
10740
10710
|
})),
|
|
@@ -10805,7 +10775,7 @@ const RadioButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10805
10775
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
10806
10776
|
ref: ref
|
|
10807
10777
|
}, forwardedProps, {
|
|
10808
|
-
className:
|
|
10778
|
+
className: classNames(className, handleBasicClasses({
|
|
10809
10779
|
isChecked,
|
|
10810
10780
|
isDisabled,
|
|
10811
10781
|
isUnchecked: !isChecked,
|
|
@@ -10880,7 +10850,7 @@ const RadioGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10880
10850
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
10881
10851
|
ref: ref
|
|
10882
10852
|
}, forwardedProps, {
|
|
10883
|
-
className:
|
|
10853
|
+
className: classNames(className, handleBasicClasses({
|
|
10884
10854
|
prefix: CLASSNAME$r
|
|
10885
10855
|
}))
|
|
10886
10856
|
}), children);
|
|
@@ -10950,7 +10920,7 @@ const SelectField = _ref => {
|
|
|
10950
10920
|
icon: icon,
|
|
10951
10921
|
size: Size.xs
|
|
10952
10922
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
10953
|
-
className:
|
|
10923
|
+
className: classNames([`${CLASSNAME$q}__input-native`, isEmpty && placeholder && `${CLASSNAME$q}__input-native--placeholder`])
|
|
10954
10924
|
}, !isEmpty && /*#__PURE__*/React__default.createElement("span", null, selectedValueRender === null || selectedValueRender === void 0 ? void 0 : selectedValueRender(value)), isEmpty && placeholder && /*#__PURE__*/React__default.createElement("span", null, placeholder)), (isValid || hasError) && /*#__PURE__*/React__default.createElement("div", {
|
|
10955
10925
|
className: `${CLASSNAME$q}__input-validity`
|
|
10956
10926
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -10994,7 +10964,7 @@ const Select = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10994
10964
|
const isEmpty$1 = isEmpty(props.value);
|
|
10995
10965
|
const hasInputClear = props.onClear && props.clearButtonProps && !isEmpty$1;
|
|
10996
10966
|
return WithSelectContext(SelectField, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10997
|
-
className:
|
|
10967
|
+
className: classNames(props.className, handleBasicClasses({
|
|
10998
10968
|
hasInputClear,
|
|
10999
10969
|
hasUnique: !props.isEmpty,
|
|
11000
10970
|
prefix: CLASSNAME$q
|
|
@@ -11083,7 +11053,7 @@ const SelectMultipleField = _ref => {
|
|
|
11083
11053
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11084
11054
|
className: `${CLASSNAME$p}__chips`
|
|
11085
11055
|
}, !isEmpty && value.map((val, index) => selectedChipRender === null || selectedChipRender === void 0 ? void 0 : selectedChipRender(val, index, onClear, isDisabled, theme))), isEmpty && placeholder && /*#__PURE__*/React__default.createElement("div", {
|
|
11086
|
-
className:
|
|
11056
|
+
className: classNames([`${CLASSNAME$p}__input-native`, `${CLASSNAME$p}__input-native--placeholder`])
|
|
11087
11057
|
}, /*#__PURE__*/React__default.createElement("span", null, placeholder)), (isValid || hasError) && /*#__PURE__*/React__default.createElement("div", {
|
|
11088
11058
|
className: `${CLASSNAME$p}__input-validity`
|
|
11089
11059
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -11117,7 +11087,7 @@ const SelectMultipleField = _ref => {
|
|
|
11117
11087
|
*/
|
|
11118
11088
|
const SelectMultiple = /*#__PURE__*/forwardRef((props, ref) => {
|
|
11119
11089
|
return WithSelectContext(SelectMultipleField, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
11120
|
-
className:
|
|
11090
|
+
className: classNames(props.className, handleBasicClasses({
|
|
11121
11091
|
hasMultiple: !props.isEmpty,
|
|
11122
11092
|
prefix: CLASSNAME$p
|
|
11123
11093
|
})),
|
|
@@ -11163,7 +11133,7 @@ const SideNavigation = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11163
11133
|
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
11164
11134
|
ref: ref
|
|
11165
11135
|
}, forwardedProps, {
|
|
11166
|
-
className:
|
|
11136
|
+
className: classNames(className, theme === Theme.dark && 'lumx-color-font-light-N', handleBasicClasses({
|
|
11167
11137
|
prefix: CLASSNAME$o
|
|
11168
11138
|
}))
|
|
11169
11139
|
}), content);
|
|
@@ -11252,7 +11222,7 @@ const SideNavigationItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11252
11222
|
return /*#__PURE__*/React__default.createElement("li", _extends({
|
|
11253
11223
|
ref: ref
|
|
11254
11224
|
}, forwardedProps, {
|
|
11255
|
-
className:
|
|
11225
|
+
className: classNames(className, handleBasicClasses({
|
|
11256
11226
|
emphasis,
|
|
11257
11227
|
isOpen: showChildren,
|
|
11258
11228
|
isSelected,
|
|
@@ -11337,7 +11307,7 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11337
11307
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
11338
11308
|
ref: ref
|
|
11339
11309
|
}, forwardedProps, {
|
|
11340
|
-
className:
|
|
11310
|
+
className: classNames(className, handleBasicClasses({
|
|
11341
11311
|
prefix: CLASSNAME$m,
|
|
11342
11312
|
size,
|
|
11343
11313
|
color,
|
|
@@ -11400,7 +11370,7 @@ const SkeletonRectangle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11400
11370
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
11401
11371
|
ref: ref
|
|
11402
11372
|
}, forwardedProps, {
|
|
11403
|
-
className:
|
|
11373
|
+
className: classNames(className, handleBasicClasses({
|
|
11404
11374
|
prefix: CLASSNAME$l,
|
|
11405
11375
|
aspectRatio,
|
|
11406
11376
|
height: aspectRatio ? undefined : height,
|
|
@@ -11456,7 +11426,7 @@ const SkeletonTypography = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11456
11426
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
11457
11427
|
ref: ref
|
|
11458
11428
|
}, forwardedProps, {
|
|
11459
|
-
className:
|
|
11429
|
+
className: classNames(className, handleBasicClasses({
|
|
11460
11430
|
prefix: CLASSNAME$k,
|
|
11461
11431
|
theme,
|
|
11462
11432
|
typography,
|
|
@@ -11715,7 +11685,7 @@ const Slider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11715
11685
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
11716
11686
|
ref: ref
|
|
11717
11687
|
}, forwardedProps, {
|
|
11718
|
-
className:
|
|
11688
|
+
className: classNames(className, handleBasicClasses({
|
|
11719
11689
|
prefix: CLASSNAME$j,
|
|
11720
11690
|
theme,
|
|
11721
11691
|
hasLabel: Boolean(label)
|
|
@@ -12132,7 +12102,7 @@ const SlideshowItemGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12132
12102
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
12133
12103
|
ref: mergeRefs(groupRef, ref),
|
|
12134
12104
|
role: role,
|
|
12135
|
-
className:
|
|
12105
|
+
className: classNames(className, handleBasicClasses({
|
|
12136
12106
|
prefix: CLASSNAME$i
|
|
12137
12107
|
})),
|
|
12138
12108
|
"aria-roledescription": "slide",
|
|
@@ -12291,7 +12261,7 @@ const SlideshowItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12291
12261
|
forwardedProps = _objectWithoutProperties(props, _excluded$i);
|
|
12292
12262
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
12293
12263
|
ref: ref,
|
|
12294
|
-
className:
|
|
12264
|
+
className: classNames(className, handleBasicClasses({
|
|
12295
12265
|
prefix: CLASSNAME$h
|
|
12296
12266
|
}))
|
|
12297
12267
|
}, forwardedProps), children);
|
|
@@ -12442,7 +12412,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12442
12412
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
12443
12413
|
ref: ref
|
|
12444
12414
|
}, forwardedProps, {
|
|
12445
|
-
className:
|
|
12415
|
+
className: classNames(className, handleBasicClasses({
|
|
12446
12416
|
prefix: CLASSNAME$g,
|
|
12447
12417
|
theme
|
|
12448
12418
|
}), {
|
|
@@ -12473,7 +12443,7 @@ const InternalSlideshowControls = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12473
12443
|
itemProps = _objectWithoutProperties(_ref, _excluded2$1);
|
|
12474
12444
|
const ariaLabel = label || (paginationItemLabel === null || paginationItemLabel === void 0 ? void 0 : paginationItemLabel(index)) || `${index + 1} / ${slidesCount}`;
|
|
12475
12445
|
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
12476
|
-
className:
|
|
12446
|
+
className: classNames(handleBasicClasses({
|
|
12477
12447
|
prefix: `${CLASSNAME$g}__pagination-item`,
|
|
12478
12448
|
isActive,
|
|
12479
12449
|
isOnEdge,
|
|
@@ -12559,7 +12529,7 @@ const Slides = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12559
12529
|
id: id,
|
|
12560
12530
|
ref: ref
|
|
12561
12531
|
}, forwardedProps, {
|
|
12562
|
-
className:
|
|
12532
|
+
className: classNames(className, handleBasicClasses({
|
|
12563
12533
|
prefix: CLASSNAME$f,
|
|
12564
12534
|
theme
|
|
12565
12535
|
}), {
|
|
@@ -12647,7 +12617,7 @@ const Switch = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12647
12617
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
12648
12618
|
ref: ref
|
|
12649
12619
|
}, forwardedProps, {
|
|
12650
|
-
className:
|
|
12620
|
+
className: classNames(className, handleBasicClasses({
|
|
12651
12621
|
prefix: CLASSNAME$e,
|
|
12652
12622
|
isChecked,
|
|
12653
12623
|
isDisabled,
|
|
@@ -12734,7 +12704,7 @@ const Table = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12734
12704
|
return /*#__PURE__*/React__default.createElement("table", _extends({
|
|
12735
12705
|
ref: ref
|
|
12736
12706
|
}, forwardedProps, {
|
|
12737
|
-
className:
|
|
12707
|
+
className: classNames(className, handleBasicClasses({
|
|
12738
12708
|
prefix: CLASSNAME$d,
|
|
12739
12709
|
hasBefore,
|
|
12740
12710
|
hasDividers,
|
|
@@ -12778,7 +12748,7 @@ const TableBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12778
12748
|
return /*#__PURE__*/React__default.createElement("tbody", _extends({
|
|
12779
12749
|
ref: ref
|
|
12780
12750
|
}, forwardedProps, {
|
|
12781
|
-
className:
|
|
12751
|
+
className: classNames(className, handleBasicClasses({
|
|
12782
12752
|
prefix: CLASSNAME$c
|
|
12783
12753
|
}))
|
|
12784
12754
|
}), children);
|
|
@@ -12860,7 +12830,7 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12860
12830
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, variant === TableCellVariant.head && /*#__PURE__*/React__default.createElement("th", _extends({
|
|
12861
12831
|
ref: ref
|
|
12862
12832
|
}, forwardedProps, {
|
|
12863
|
-
className:
|
|
12833
|
+
className: classNames(handleBasicClasses({
|
|
12864
12834
|
prefix: CLASSNAME$b,
|
|
12865
12835
|
isSortable,
|
|
12866
12836
|
isSorted: isSortable && !!sortOrder
|
|
@@ -12883,7 +12853,7 @@ const TableCell = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12883
12853
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
12884
12854
|
className: `${CLASSNAME$b}-content`
|
|
12885
12855
|
}, children))), variant === TableCellVariant.body && /*#__PURE__*/React__default.createElement("td", _extends({}, forwardedProps, {
|
|
12886
|
-
className:
|
|
12856
|
+
className: classNames(className, handleBasicClasses({
|
|
12887
12857
|
prefix: CLASSNAME$b
|
|
12888
12858
|
}), `${CLASSNAME$b}--body`)
|
|
12889
12859
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -12931,7 +12901,7 @@ const TableHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12931
12901
|
return /*#__PURE__*/React__default.createElement("thead", _extends({
|
|
12932
12902
|
ref: ref
|
|
12933
12903
|
}, forwardedProps, {
|
|
12934
|
-
className:
|
|
12904
|
+
className: classNames(className, handleBasicClasses({
|
|
12935
12905
|
prefix: CLASSNAME$a
|
|
12936
12906
|
}))
|
|
12937
12907
|
}), children);
|
|
@@ -12982,7 +12952,7 @@ const TableRow = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
12982
12952
|
ref: ref,
|
|
12983
12953
|
tabIndex: isClickable && !isDisabled ? 0 : -1
|
|
12984
12954
|
}, forwardedProps, {
|
|
12985
|
-
className:
|
|
12955
|
+
className: classNames(className, handleBasicClasses({
|
|
12986
12956
|
isClickable: isClickable && !isDisabled,
|
|
12987
12957
|
isDisabled,
|
|
12988
12958
|
isSelected: isSelected && !isDisabled,
|
|
@@ -13102,7 +13072,7 @@ const TabList = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13102
13072
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
13103
13073
|
ref: mergeRefs(ref, tabListRef)
|
|
13104
13074
|
}, forwardedProps, {
|
|
13105
|
-
className:
|
|
13075
|
+
className: classNames(className, handleBasicClasses({
|
|
13106
13076
|
prefix: CLASSNAME$8,
|
|
13107
13077
|
layout,
|
|
13108
13078
|
position,
|
|
@@ -13189,7 +13159,7 @@ const Tab = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13189
13159
|
}, forwardedProps, {
|
|
13190
13160
|
type: "button",
|
|
13191
13161
|
id: state === null || state === void 0 ? void 0 : state.tabId,
|
|
13192
|
-
className:
|
|
13162
|
+
className: classNames(className, handleBasicClasses({
|
|
13193
13163
|
prefix: CLASSNAME$7,
|
|
13194
13164
|
isActive,
|
|
13195
13165
|
isDisabled
|
|
@@ -13258,7 +13228,7 @@ const TabPanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13258
13228
|
ref: ref
|
|
13259
13229
|
}, forwardedProps, {
|
|
13260
13230
|
id: state === null || state === void 0 ? void 0 : state.tabPanelId,
|
|
13261
|
-
className:
|
|
13231
|
+
className: classNames(className, handleBasicClasses({
|
|
13262
13232
|
prefix: CLASSNAME$6,
|
|
13263
13233
|
isActive
|
|
13264
13234
|
})),
|
|
@@ -13490,7 +13460,7 @@ const TextField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13490
13460
|
};
|
|
13491
13461
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13492
13462
|
ref: ref,
|
|
13493
|
-
className:
|
|
13463
|
+
className: classNames(className, handleBasicClasses({
|
|
13494
13464
|
hasChips: Boolean(chips),
|
|
13495
13465
|
hasError: !isValid && hasError,
|
|
13496
13466
|
hasIcon: Boolean(icon),
|
|
@@ -13844,7 +13814,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13844
13814
|
} : undefined;
|
|
13845
13815
|
return /*#__PURE__*/React__default.createElement(Wrapper, _extends({}, wrapperProps, {
|
|
13846
13816
|
ref: ref,
|
|
13847
|
-
className:
|
|
13817
|
+
className: classNames(linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, className, handleBasicClasses({
|
|
13848
13818
|
align,
|
|
13849
13819
|
aspectRatio,
|
|
13850
13820
|
prefix: CLASSNAME$4,
|
|
@@ -13871,7 +13841,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13871
13841
|
width: isLoading ? (imgProps === null || imgProps === void 0 ? void 0 : imgProps.width) || (loadingPlaceholderImage === null || loadingPlaceholderImage === void 0 ? void 0 : loadingPlaceholderImage.naturalWidth) : undefined
|
|
13872
13842
|
}, imgProps === null || imgProps === void 0 ? void 0 : imgProps.style), imageErrorStyle), focusPointStyle), loadingStyle),
|
|
13873
13843
|
ref: useMergeRefs(setImgElement, propImgRef),
|
|
13874
|
-
className:
|
|
13844
|
+
className: classNames(handleBasicClasses({
|
|
13875
13845
|
prefix: `${CLASSNAME$4}__image`,
|
|
13876
13846
|
isLoading,
|
|
13877
13847
|
hasDefinedSize: Boolean((imgProps === null || imgProps === void 0 ? void 0 : imgProps.height) && imgProps.width)
|
|
@@ -13887,7 +13857,7 @@ const Thumbnail = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13887
13857
|
size: Size.xxs,
|
|
13888
13858
|
theme: theme
|
|
13889
13859
|
}) : fallback)), badge && /*#__PURE__*/React__default.cloneElement(badge, {
|
|
13890
|
-
className:
|
|
13860
|
+
className: classNames(`${CLASSNAME$4}__badge`, badge.props.className)
|
|
13891
13861
|
}));
|
|
13892
13862
|
});
|
|
13893
13863
|
Thumbnail.displayName = COMPONENT_NAME$4;
|
|
@@ -13968,7 +13938,7 @@ const Toolbar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
13968
13938
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
13969
13939
|
ref: ref
|
|
13970
13940
|
}, forwardedProps, {
|
|
13971
|
-
className:
|
|
13941
|
+
className: classNames(className, handleBasicClasses({
|
|
13972
13942
|
hasAfter: Boolean(after),
|
|
13973
13943
|
hasBefore: Boolean(before),
|
|
13974
13944
|
hasLabel: Boolean(label),
|
|
@@ -14277,7 +14247,7 @@ const Tooltip = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
14277
14247
|
id: id,
|
|
14278
14248
|
role: "tooltip",
|
|
14279
14249
|
"aria-label": label || '',
|
|
14280
|
-
className:
|
|
14250
|
+
className: classNames(className, handleBasicClasses({
|
|
14281
14251
|
prefix: CLASSNAME$2,
|
|
14282
14252
|
position
|
|
14283
14253
|
}), isHidden && VISUALLY_HIDDEN),
|
|
@@ -14385,7 +14355,7 @@ const Uploader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
14385
14355
|
return /*#__PURE__*/React__default.createElement(wrapper.Component, _extends({
|
|
14386
14356
|
ref: ref
|
|
14387
14357
|
}, wrapper.props, forwardedProps, {
|
|
14388
|
-
className:
|
|
14358
|
+
className: classNames(className, handleBasicClasses({
|
|
14389
14359
|
aspectRatio: adjustedAspectRatio,
|
|
14390
14360
|
prefix: CLASSNAME$1,
|
|
14391
14361
|
size,
|
|
@@ -14488,7 +14458,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
14488
14458
|
}
|
|
14489
14459
|
let NameComponent = 'span';
|
|
14490
14460
|
const nProps = _objectSpread2(_objectSpread2({}, nameProps), {}, {
|
|
14491
|
-
className:
|
|
14461
|
+
className: classNames(`${CLASSNAME}__name`, linkProps === null || linkProps === void 0 ? void 0 : linkProps.className, nameProps === null || nameProps === void 0 ? void 0 : nameProps.className)
|
|
14492
14462
|
});
|
|
14493
14463
|
if (isClickable) {
|
|
14494
14464
|
NameComponent = Link;
|
|
@@ -14513,7 +14483,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
14513
14483
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
14514
14484
|
ref: ref
|
|
14515
14485
|
}, forwardedProps, {
|
|
14516
|
-
className:
|
|
14486
|
+
className: classNames(className, handleBasicClasses({
|
|
14517
14487
|
prefix: CLASSNAME,
|
|
14518
14488
|
orientation,
|
|
14519
14489
|
size: componentSize,
|
|
@@ -14527,7 +14497,7 @@ const UserBlock = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
14527
14497
|
linkProps: linkProps,
|
|
14528
14498
|
alt: ""
|
|
14529
14499
|
}, avatarProps, {
|
|
14530
|
-
className:
|
|
14500
|
+
className: classNames(`${CLASSNAME}__avatar`, avatarProps.className),
|
|
14531
14501
|
size: componentSize,
|
|
14532
14502
|
onClick: onClick,
|
|
14533
14503
|
theme: theme
|