@lumx/react 4.14.0-next.1 → 4.14.0-next.3
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 +95 -4
- package/index.js +1021 -700
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorVariant as ColorVariant$1, Size as Size$1, VISUALLY_HIDDEN, Theme as Theme$1, AspectRatio as AspectRatio$1, DOCUMENT
|
|
1
|
+
import { ColorVariant as ColorVariant$1, Size as Size$1, VISUALLY_HIDDEN, Theme as Theme$1, AspectRatio as AspectRatio$1, DOCUMENT, IS_BROWSER as IS_BROWSER$1, Emphasis as Emphasis$1, WINDOW, DIALOG_TRANSITION_DURATION, Orientation as Orientation$1, NOTIFICATION_TRANSITION_DURATION, Kind as Kind$1, Alignment as Alignment$1, ColorPalette as ColorPalette$1 } 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';
|
|
@@ -203,11 +203,6 @@ const ColorVariant = {
|
|
|
203
203
|
*/
|
|
204
204
|
const IS_BROWSER = typeof window !== 'undefined' && !window.navigator.userAgent.includes('jsdom');
|
|
205
205
|
|
|
206
|
-
/**
|
|
207
|
-
* Optional global `document` instance (not defined when running SSR).
|
|
208
|
-
*/
|
|
209
|
-
const DOCUMENT = typeof document !== 'undefined' ? document : undefined;
|
|
210
|
-
|
|
211
206
|
function getDefaultExportFromCjs (x) {
|
|
212
207
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
213
208
|
}
|
|
@@ -313,7 +308,7 @@ function modifier$1(baseName, modifiers) {
|
|
|
313
308
|
* block('button', { active: true, disabled: false }); // 'button button--active'
|
|
314
309
|
*/
|
|
315
310
|
|
|
316
|
-
function block$
|
|
311
|
+
function block$1a(baseName, modifiersOrAdditionalClasses, additionalClasses) {
|
|
317
312
|
let modifiers;
|
|
318
313
|
let classes;
|
|
319
314
|
if (typeof modifiersOrAdditionalClasses === 'string' || Array.isArray(modifiersOrAdditionalClasses)) {
|
|
@@ -348,7 +343,7 @@ const ACTION_ELEMENT = `${PREFIX}__action`;
|
|
|
348
343
|
const actionArea = Object.assign(/** Action area container class. Sets `position: relative`. */
|
|
349
344
|
() => PREFIX, {
|
|
350
345
|
/** Action element class. Adds a `::before` pseudo-element with `position: absolute; inset: 0` to expand the click area. */
|
|
351
|
-
action: modifiers => block$
|
|
346
|
+
action: modifiers => block$1a(ACTION_ELEMENT, modifiers)
|
|
352
347
|
});
|
|
353
348
|
|
|
354
349
|
/** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
|
|
@@ -471,7 +466,7 @@ const visuallyHidden = () => VISUALLY_HIDDEN;
|
|
|
471
466
|
*/
|
|
472
467
|
|
|
473
468
|
function element$R(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
474
|
-
return block$
|
|
469
|
+
return block$1a(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
|
|
475
470
|
}
|
|
476
471
|
|
|
477
472
|
/**
|
|
@@ -479,7 +474,7 @@ function element$R(baseClass, elem, modifiersOrAdditionalClasses, additionalClas
|
|
|
479
474
|
*/
|
|
480
475
|
function bem(baseName) {
|
|
481
476
|
function blockFn(modifiersOrAdditionalClasses, additionalClasses) {
|
|
482
|
-
return block$
|
|
477
|
+
return block$1a(baseName, modifiersOrAdditionalClasses, additionalClasses);
|
|
483
478
|
}
|
|
484
479
|
function elementFn(elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
485
480
|
return element$R(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
|
|
@@ -562,15 +557,15 @@ const CONFIG$1 = {
|
|
|
562
557
|
/**
|
|
563
558
|
* Component display name.
|
|
564
559
|
*/
|
|
565
|
-
const COMPONENT_NAME$
|
|
560
|
+
const COMPONENT_NAME$1A = 'AlertDialog';
|
|
566
561
|
|
|
567
562
|
/**
|
|
568
563
|
* Component default class name and class prefix.
|
|
569
564
|
*/
|
|
570
|
-
const CLASSNAME$
|
|
565
|
+
const CLASSNAME$1y = 'lumx-alert-dialog';
|
|
571
566
|
const {
|
|
572
|
-
block: block$
|
|
573
|
-
} = bem(CLASSNAME$
|
|
567
|
+
block: block$19
|
|
568
|
+
} = bem(CLASSNAME$1y);
|
|
574
569
|
|
|
575
570
|
/**
|
|
576
571
|
* Component default props.
|
|
@@ -638,7 +633,7 @@ const AlertDialog$1 = props => {
|
|
|
638
633
|
'aria-describedby': descriptionId,
|
|
639
634
|
...dialogProps
|
|
640
635
|
},
|
|
641
|
-
className: classnames(className, block$
|
|
636
|
+
className: classnames(className, block$19({
|
|
642
637
|
[`kind-${kind}`]: Boolean(kind)
|
|
643
638
|
})),
|
|
644
639
|
...forwardedProps,
|
|
@@ -736,8 +731,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
736
731
|
...forwardedProps
|
|
737
732
|
});
|
|
738
733
|
});
|
|
739
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
740
|
-
AlertDialog.className = CLASSNAME$
|
|
734
|
+
AlertDialog.displayName = COMPONENT_NAME$1A;
|
|
735
|
+
AlertDialog.className = CLASSNAME$1y;
|
|
741
736
|
AlertDialog.defaultProps = DEFAULT_PROPS$1g;
|
|
742
737
|
|
|
743
738
|
/**
|
|
@@ -830,12 +825,12 @@ function useDisableStateProps(props) {
|
|
|
830
825
|
/**
|
|
831
826
|
* Component display name.
|
|
832
827
|
*/
|
|
833
|
-
const COMPONENT_NAME$
|
|
828
|
+
const COMPONENT_NAME$1z = 'Autocomplete';
|
|
834
829
|
|
|
835
830
|
/**
|
|
836
831
|
* Component default class name and class prefix.
|
|
837
832
|
*/
|
|
838
|
-
const CLASSNAME$
|
|
833
|
+
const CLASSNAME$1x = 'lumx-autocomplete';
|
|
839
834
|
|
|
840
835
|
/**
|
|
841
836
|
* Component default props.
|
|
@@ -903,7 +898,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
903
898
|
return /*#__PURE__*/jsxs("div", {
|
|
904
899
|
ref: ref,
|
|
905
900
|
...forwardedProps,
|
|
906
|
-
className: classNames.join(className, CLASSNAME$
|
|
901
|
+
className: classNames.join(className, CLASSNAME$1x),
|
|
907
902
|
children: [/*#__PURE__*/jsx(TextField, {
|
|
908
903
|
...textFieldProps,
|
|
909
904
|
chips: chips,
|
|
@@ -943,19 +938,19 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
943
938
|
})]
|
|
944
939
|
});
|
|
945
940
|
});
|
|
946
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
947
|
-
Autocomplete.className = CLASSNAME$
|
|
941
|
+
Autocomplete.displayName = COMPONENT_NAME$1z;
|
|
942
|
+
Autocomplete.className = CLASSNAME$1x;
|
|
948
943
|
Autocomplete.defaultProps = DEFAULT_PROPS$1f;
|
|
949
944
|
|
|
950
945
|
/**
|
|
951
946
|
* Component display name.
|
|
952
947
|
*/
|
|
953
|
-
const COMPONENT_NAME$
|
|
948
|
+
const COMPONENT_NAME$1y = 'AutocompleteMultiple';
|
|
954
949
|
|
|
955
950
|
/**
|
|
956
951
|
* Component default class name and class prefix.
|
|
957
952
|
*/
|
|
958
|
-
const CLASSNAME$
|
|
953
|
+
const CLASSNAME$1w = 'lumx-autocomplete-multiple';
|
|
959
954
|
|
|
960
955
|
/**
|
|
961
956
|
* Component default props.
|
|
@@ -1036,7 +1031,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1036
1031
|
ref: ref,
|
|
1037
1032
|
...forwardedProps,
|
|
1038
1033
|
anchorToInput: anchorToInput,
|
|
1039
|
-
className: classNames.join(className, CLASSNAME$
|
|
1034
|
+
className: classNames.join(className, CLASSNAME$1w),
|
|
1040
1035
|
name: name,
|
|
1041
1036
|
value: value,
|
|
1042
1037
|
onChange: onChange,
|
|
@@ -1069,23 +1064,23 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1069
1064
|
children: children
|
|
1070
1065
|
});
|
|
1071
1066
|
});
|
|
1072
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
1073
|
-
AutocompleteMultiple.className = CLASSNAME$
|
|
1067
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1y;
|
|
1068
|
+
AutocompleteMultiple.className = CLASSNAME$1w;
|
|
1074
1069
|
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1e;
|
|
1075
1070
|
|
|
1076
1071
|
/**
|
|
1077
1072
|
* Component display name.
|
|
1078
1073
|
*/
|
|
1079
|
-
const COMPONENT_NAME$
|
|
1074
|
+
const COMPONENT_NAME$1x = 'Avatar';
|
|
1080
1075
|
|
|
1081
1076
|
/**
|
|
1082
1077
|
* Component default class name and class prefix.
|
|
1083
1078
|
*/
|
|
1084
|
-
const CLASSNAME$
|
|
1079
|
+
const CLASSNAME$1v = 'lumx-avatar';
|
|
1085
1080
|
const {
|
|
1086
|
-
block: block$
|
|
1081
|
+
block: block$18,
|
|
1087
1082
|
element: element$Q
|
|
1088
|
-
} = bem(CLASSNAME$
|
|
1083
|
+
} = bem(CLASSNAME$1v);
|
|
1089
1084
|
|
|
1090
1085
|
/**
|
|
1091
1086
|
* Component default props.
|
|
@@ -1115,7 +1110,7 @@ const Avatar$1 = props => {
|
|
|
1115
1110
|
return /*#__PURE__*/jsxs("div", {
|
|
1116
1111
|
ref: ref,
|
|
1117
1112
|
...forwardedProps,
|
|
1118
|
-
className: classnames(className, block$
|
|
1113
|
+
className: classnames(className, block$18({
|
|
1119
1114
|
[`size-${size}`]: Boolean(size),
|
|
1120
1115
|
[`theme-${theme}`]: Boolean(theme)
|
|
1121
1116
|
})),
|
|
@@ -1176,22 +1171,22 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1176
1171
|
})
|
|
1177
1172
|
});
|
|
1178
1173
|
});
|
|
1179
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
1180
|
-
Avatar.className = CLASSNAME$
|
|
1174
|
+
Avatar.displayName = COMPONENT_NAME$1x;
|
|
1175
|
+
Avatar.className = CLASSNAME$1v;
|
|
1181
1176
|
Avatar.defaultProps = DEFAULT_PROPS$1d;
|
|
1182
1177
|
|
|
1183
1178
|
/**
|
|
1184
1179
|
* Component display name.
|
|
1185
1180
|
*/
|
|
1186
|
-
const COMPONENT_NAME$
|
|
1181
|
+
const COMPONENT_NAME$1w = 'Badge';
|
|
1187
1182
|
|
|
1188
1183
|
/**
|
|
1189
1184
|
* Component default class name and class prefix.
|
|
1190
1185
|
*/
|
|
1191
|
-
const CLASSNAME$
|
|
1186
|
+
const CLASSNAME$1u = 'lumx-badge';
|
|
1192
1187
|
const {
|
|
1193
|
-
block: block$
|
|
1194
|
-
} = bem(CLASSNAME$
|
|
1188
|
+
block: block$17
|
|
1189
|
+
} = bem(CLASSNAME$1u);
|
|
1195
1190
|
|
|
1196
1191
|
/**
|
|
1197
1192
|
* Component default props.
|
|
@@ -1217,14 +1212,14 @@ const Badge$1 = props => {
|
|
|
1217
1212
|
return /*#__PURE__*/jsx("div", {
|
|
1218
1213
|
ref: ref,
|
|
1219
1214
|
...forwardedProps,
|
|
1220
|
-
className: classnames(className, block$
|
|
1215
|
+
className: classnames(className, block$17({
|
|
1221
1216
|
[`color-${color}`]: Boolean(color)
|
|
1222
1217
|
})),
|
|
1223
1218
|
children: children
|
|
1224
1219
|
});
|
|
1225
1220
|
};
|
|
1226
|
-
Badge$1.displayName = COMPONENT_NAME$
|
|
1227
|
-
Badge$1.className = CLASSNAME$
|
|
1221
|
+
Badge$1.displayName = COMPONENT_NAME$1w;
|
|
1222
|
+
Badge$1.className = CLASSNAME$1u;
|
|
1228
1223
|
Badge$1.defaultProps = DEFAULT_PROPS$1c;
|
|
1229
1224
|
|
|
1230
1225
|
/**
|
|
@@ -1248,12 +1243,12 @@ Badge.displayName = Badge$1.displayName;
|
|
|
1248
1243
|
Badge.className = Badge$1.className;
|
|
1249
1244
|
Badge.defaultProps = Badge$1.defaultProps;
|
|
1250
1245
|
|
|
1251
|
-
const COMPONENT_NAME$
|
|
1252
|
-
const CLASSNAME$
|
|
1246
|
+
const COMPONENT_NAME$1v = 'BadgeWrapper';
|
|
1247
|
+
const CLASSNAME$1t = 'lumx-badge-wrapper';
|
|
1253
1248
|
const {
|
|
1254
|
-
block: block$
|
|
1249
|
+
block: block$16,
|
|
1255
1250
|
element: element$P
|
|
1256
|
-
} = bem(CLASSNAME$
|
|
1251
|
+
} = bem(CLASSNAME$1t);
|
|
1257
1252
|
const BadgeWrapper$1 = props => {
|
|
1258
1253
|
const {
|
|
1259
1254
|
badge,
|
|
@@ -1265,7 +1260,7 @@ const BadgeWrapper$1 = props => {
|
|
|
1265
1260
|
return /*#__PURE__*/jsxs("div", {
|
|
1266
1261
|
ref: ref,
|
|
1267
1262
|
...forwardedProps,
|
|
1268
|
-
className: classnames(className, block$
|
|
1263
|
+
className: classnames(className, block$16()),
|
|
1269
1264
|
children: [children, badge && /*#__PURE__*/jsx("div", {
|
|
1270
1265
|
className: element$P('badge'),
|
|
1271
1266
|
children: badge
|
|
@@ -1279,8 +1274,8 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
1279
1274
|
ref
|
|
1280
1275
|
});
|
|
1281
1276
|
});
|
|
1282
|
-
BadgeWrapper.displayName = COMPONENT_NAME$
|
|
1283
|
-
BadgeWrapper.className = CLASSNAME$
|
|
1277
|
+
BadgeWrapper.displayName = COMPONENT_NAME$1v;
|
|
1278
|
+
BadgeWrapper.className = CLASSNAME$1t;
|
|
1284
1279
|
|
|
1285
1280
|
/**
|
|
1286
1281
|
* Render clickable element (link, button or custom element)
|
|
@@ -1330,7 +1325,7 @@ const RawClickable = props => {
|
|
|
1330
1325
|
/**
|
|
1331
1326
|
* Component display name.
|
|
1332
1327
|
*/
|
|
1333
|
-
const COMPONENT_NAME$
|
|
1328
|
+
const COMPONENT_NAME$1u = 'ButtonRoot';
|
|
1334
1329
|
const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
|
|
1335
1330
|
const {
|
|
1336
1331
|
block: buttonWrapperBlock
|
|
@@ -1428,7 +1423,7 @@ const ButtonRoot = props => {
|
|
|
1428
1423
|
children
|
|
1429
1424
|
});
|
|
1430
1425
|
};
|
|
1431
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
1426
|
+
ButtonRoot.displayName = COMPONENT_NAME$1u;
|
|
1432
1427
|
ButtonRoot.defaultProps = {};
|
|
1433
1428
|
|
|
1434
1429
|
/**
|
|
@@ -1438,15 +1433,15 @@ ButtonRoot.defaultProps = {};
|
|
|
1438
1433
|
/**
|
|
1439
1434
|
* Component display name.
|
|
1440
1435
|
*/
|
|
1441
|
-
const COMPONENT_NAME$
|
|
1436
|
+
const COMPONENT_NAME$1t = 'Button';
|
|
1442
1437
|
|
|
1443
1438
|
/**
|
|
1444
1439
|
* Component default class name and class prefix.
|
|
1445
1440
|
*/
|
|
1446
|
-
const CLASSNAME$
|
|
1441
|
+
const CLASSNAME$1s = 'lumx-button';
|
|
1447
1442
|
const {
|
|
1448
1443
|
modifier
|
|
1449
|
-
} = bem(CLASSNAME$
|
|
1444
|
+
} = bem(CLASSNAME$1s);
|
|
1450
1445
|
|
|
1451
1446
|
/**
|
|
1452
1447
|
* Component default props.
|
|
@@ -1483,8 +1478,8 @@ const Button$1 = props => {
|
|
|
1483
1478
|
variant: 'button'
|
|
1484
1479
|
});
|
|
1485
1480
|
};
|
|
1486
|
-
Button$1.displayName = COMPONENT_NAME$
|
|
1487
|
-
Button$1.className = CLASSNAME$
|
|
1481
|
+
Button$1.displayName = COMPONENT_NAME$1t;
|
|
1482
|
+
Button$1.className = CLASSNAME$1s;
|
|
1488
1483
|
Button$1.defaultProps = DEFAULT_PROPS$1b;
|
|
1489
1484
|
|
|
1490
1485
|
/**
|
|
@@ -1558,21 +1553,21 @@ const Button = forwardRef((props, ref) => {
|
|
|
1558
1553
|
})
|
|
1559
1554
|
});
|
|
1560
1555
|
});
|
|
1561
|
-
Button.displayName = COMPONENT_NAME$
|
|
1562
|
-
Button.className = CLASSNAME$
|
|
1556
|
+
Button.displayName = COMPONENT_NAME$1t;
|
|
1557
|
+
Button.className = CLASSNAME$1s;
|
|
1563
1558
|
Button.defaultProps = DEFAULT_PROPS$1b;
|
|
1564
1559
|
|
|
1565
|
-
const COMPONENT_NAME$
|
|
1560
|
+
const COMPONENT_NAME$1s = 'Icon';
|
|
1566
1561
|
const IconClassName = 'lumx-icon';
|
|
1567
1562
|
|
|
1568
1563
|
/**
|
|
1569
1564
|
* Defines the props of the component.
|
|
1570
1565
|
*/
|
|
1571
1566
|
|
|
1572
|
-
const CLASSNAME$
|
|
1567
|
+
const CLASSNAME$1r = IconClassName;
|
|
1573
1568
|
const {
|
|
1574
|
-
block: block$
|
|
1575
|
-
} = bem(CLASSNAME$
|
|
1569
|
+
block: block$15
|
|
1570
|
+
} = bem(CLASSNAME$1r);
|
|
1576
1571
|
|
|
1577
1572
|
/**
|
|
1578
1573
|
* Component default props.
|
|
@@ -1626,7 +1621,7 @@ const Icon$1 = props => {
|
|
|
1626
1621
|
return /*#__PURE__*/jsx("i", {
|
|
1627
1622
|
ref: ref,
|
|
1628
1623
|
...forwardedProps,
|
|
1629
|
-
className: classnames(className, block$
|
|
1624
|
+
className: classnames(className, block$15({
|
|
1630
1625
|
[`color-${iconColor}`]: Boolean(iconColor),
|
|
1631
1626
|
[`color-variant-${iconColorVariant}`]: Boolean(iconColorVariant),
|
|
1632
1627
|
'has-shape': hasShape,
|
|
@@ -1655,19 +1650,19 @@ const Icon$1 = props => {
|
|
|
1655
1650
|
})
|
|
1656
1651
|
});
|
|
1657
1652
|
};
|
|
1658
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1659
|
-
Icon$1.className = CLASSNAME$
|
|
1653
|
+
Icon$1.displayName = COMPONENT_NAME$1s;
|
|
1654
|
+
Icon$1.className = CLASSNAME$1r;
|
|
1660
1655
|
Icon$1.defaultProps = DEFAULT_PROPS$1a;
|
|
1661
1656
|
|
|
1662
1657
|
/**
|
|
1663
1658
|
* Component display name.
|
|
1664
1659
|
*/
|
|
1665
|
-
const COMPONENT_NAME$
|
|
1660
|
+
const COMPONENT_NAME$1r = 'IconButton';
|
|
1666
1661
|
|
|
1667
1662
|
/**
|
|
1668
1663
|
* Component default class name and class prefix.
|
|
1669
1664
|
*/
|
|
1670
|
-
const CLASSNAME$
|
|
1665
|
+
const CLASSNAME$1q = 'lumx-icon-button';
|
|
1671
1666
|
|
|
1672
1667
|
/**
|
|
1673
1668
|
* Component default props.
|
|
@@ -1708,8 +1703,8 @@ const IconButton$1 = props => {
|
|
|
1708
1703
|
children: defaultChildren
|
|
1709
1704
|
});
|
|
1710
1705
|
};
|
|
1711
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1712
|
-
IconButton$1.className = CLASSNAME$
|
|
1706
|
+
IconButton$1.displayName = COMPONENT_NAME$1r;
|
|
1707
|
+
IconButton$1.className = CLASSNAME$1q;
|
|
1713
1708
|
IconButton$1.defaultProps = DEFAULT_PROPS$19;
|
|
1714
1709
|
|
|
1715
1710
|
/**
|
|
@@ -1753,19 +1748,19 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1753
1748
|
})
|
|
1754
1749
|
});
|
|
1755
1750
|
});
|
|
1756
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1757
|
-
IconButton.className = CLASSNAME$
|
|
1751
|
+
IconButton.displayName = COMPONENT_NAME$1r;
|
|
1752
|
+
IconButton.className = CLASSNAME$1q;
|
|
1758
1753
|
IconButton.defaultProps = DEFAULT_PROPS$19;
|
|
1759
1754
|
|
|
1760
1755
|
/**
|
|
1761
1756
|
* Component display name.
|
|
1762
1757
|
*/
|
|
1763
|
-
const COMPONENT_NAME$
|
|
1758
|
+
const COMPONENT_NAME$1q = 'ButtonGroup';
|
|
1764
1759
|
|
|
1765
1760
|
/**
|
|
1766
1761
|
* Component default class name and class prefix.
|
|
1767
1762
|
*/
|
|
1768
|
-
const CLASSNAME$
|
|
1763
|
+
const CLASSNAME$1p = 'lumx-button-group';
|
|
1769
1764
|
|
|
1770
1765
|
/**
|
|
1771
1766
|
* Component default props.
|
|
@@ -1786,12 +1781,12 @@ const ButtonGroup$1 = props => {
|
|
|
1786
1781
|
} = props;
|
|
1787
1782
|
return /*#__PURE__*/jsx("div", {
|
|
1788
1783
|
...forwardedProps,
|
|
1789
|
-
className: classnames(className, CLASSNAME$
|
|
1784
|
+
className: classnames(className, CLASSNAME$1p),
|
|
1790
1785
|
children: children
|
|
1791
1786
|
});
|
|
1792
1787
|
};
|
|
1793
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1794
|
-
ButtonGroup$1.className = CLASSNAME$
|
|
1788
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1q;
|
|
1789
|
+
ButtonGroup$1.className = CLASSNAME$1p;
|
|
1795
1790
|
ButtonGroup$1.defaultProps = DEFAULT_PROPS$18;
|
|
1796
1791
|
|
|
1797
1792
|
/**
|
|
@@ -1807,16 +1802,16 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1807
1802
|
...props
|
|
1808
1803
|
});
|
|
1809
1804
|
});
|
|
1810
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1811
|
-
ButtonGroup.className = CLASSNAME$
|
|
1805
|
+
ButtonGroup.displayName = COMPONENT_NAME$1q;
|
|
1806
|
+
ButtonGroup.className = CLASSNAME$1p;
|
|
1812
1807
|
ButtonGroup.defaultProps = DEFAULT_PROPS$18;
|
|
1813
1808
|
|
|
1814
|
-
const COMPONENT_NAME$
|
|
1809
|
+
const COMPONENT_NAME$1p = 'InputLabel';
|
|
1815
1810
|
const InputLabelClassName = 'lumx-input-label';
|
|
1816
|
-
const CLASSNAME$
|
|
1811
|
+
const CLASSNAME$1o = InputLabelClassName;
|
|
1817
1812
|
const {
|
|
1818
|
-
block: block$
|
|
1819
|
-
} = bem(CLASSNAME$
|
|
1813
|
+
block: block$14
|
|
1814
|
+
} = bem(CLASSNAME$1o);
|
|
1820
1815
|
const DEFAULT_PROPS$17 = {};
|
|
1821
1816
|
|
|
1822
1817
|
/**
|
|
@@ -1837,7 +1832,7 @@ function InputLabel$1(props) {
|
|
|
1837
1832
|
ref: ref,
|
|
1838
1833
|
...forwardedProps,
|
|
1839
1834
|
htmlFor: htmlFor,
|
|
1840
|
-
className: classnames(className, block$
|
|
1835
|
+
className: classnames(className, block$14({
|
|
1841
1836
|
'is-required': isRequired,
|
|
1842
1837
|
[`theme-${theme}`]: Boolean(theme),
|
|
1843
1838
|
'has-custom-typography': Boolean(typography$1)
|
|
@@ -1845,8 +1840,8 @@ function InputLabel$1(props) {
|
|
|
1845
1840
|
children: children
|
|
1846
1841
|
});
|
|
1847
1842
|
}
|
|
1848
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1849
|
-
InputLabel$1.className = CLASSNAME$
|
|
1843
|
+
InputLabel$1.displayName = COMPONENT_NAME$1p;
|
|
1844
|
+
InputLabel$1.className = CLASSNAME$1o;
|
|
1850
1845
|
InputLabel$1.defaultProps = DEFAULT_PROPS$17;
|
|
1851
1846
|
|
|
1852
1847
|
const INPUT_HELPER_CONFIGURATION = {
|
|
@@ -1861,17 +1856,17 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1861
1856
|
}
|
|
1862
1857
|
};
|
|
1863
1858
|
|
|
1864
|
-
const COMPONENT_NAME$
|
|
1859
|
+
const COMPONENT_NAME$1o = 'InputHelper';
|
|
1865
1860
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1866
1861
|
|
|
1867
1862
|
/**
|
|
1868
1863
|
* Defines the props of the component.
|
|
1869
1864
|
*/
|
|
1870
1865
|
|
|
1871
|
-
const CLASSNAME$
|
|
1866
|
+
const CLASSNAME$1n = InputHelperClassName;
|
|
1872
1867
|
const {
|
|
1873
|
-
block: block$
|
|
1874
|
-
} = bem(CLASSNAME$
|
|
1868
|
+
block: block$13
|
|
1869
|
+
} = bem(CLASSNAME$1n);
|
|
1875
1870
|
|
|
1876
1871
|
/**
|
|
1877
1872
|
* Component default props.
|
|
@@ -1898,15 +1893,15 @@ function InputHelper$1(props) {
|
|
|
1898
1893
|
return /*#__PURE__*/jsx("p", {
|
|
1899
1894
|
ref: ref,
|
|
1900
1895
|
...forwardedProps,
|
|
1901
|
-
className: classnames(className, block$
|
|
1896
|
+
className: classnames(className, block$13({
|
|
1902
1897
|
[`color-${color}`]: Boolean(color),
|
|
1903
1898
|
[`theme-${theme}`]: Boolean(theme)
|
|
1904
1899
|
})),
|
|
1905
1900
|
children: children
|
|
1906
1901
|
});
|
|
1907
1902
|
}
|
|
1908
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1909
|
-
InputHelper$1.className = CLASSNAME$
|
|
1903
|
+
InputHelper$1.displayName = COMPONENT_NAME$1o;
|
|
1904
|
+
InputHelper$1.className = CLASSNAME$1n;
|
|
1910
1905
|
InputHelper$1.defaultProps = DEFAULT_PROPS$16;
|
|
1911
1906
|
|
|
1912
1907
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
@@ -1918,16 +1913,16 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1918
1913
|
/**
|
|
1919
1914
|
* Component display name.
|
|
1920
1915
|
*/
|
|
1921
|
-
const COMPONENT_NAME$
|
|
1916
|
+
const COMPONENT_NAME$1n = 'Checkbox';
|
|
1922
1917
|
|
|
1923
1918
|
/**
|
|
1924
1919
|
* Component default class name and class prefix.
|
|
1925
1920
|
*/
|
|
1926
|
-
const CLASSNAME$
|
|
1921
|
+
const CLASSNAME$1m = 'lumx-checkbox';
|
|
1927
1922
|
const {
|
|
1928
|
-
block: block$
|
|
1923
|
+
block: block$12,
|
|
1929
1924
|
element: element$O
|
|
1930
|
-
} = bem(CLASSNAME$
|
|
1925
|
+
} = bem(CLASSNAME$1m);
|
|
1931
1926
|
|
|
1932
1927
|
/**
|
|
1933
1928
|
* Checkbox component.
|
|
@@ -1963,7 +1958,7 @@ const Checkbox$1 = props => {
|
|
|
1963
1958
|
return /*#__PURE__*/jsxs("div", {
|
|
1964
1959
|
ref: ref,
|
|
1965
1960
|
...forwardedProps,
|
|
1966
|
-
className: classnames(className, block$
|
|
1961
|
+
className: classnames(className, block$12({
|
|
1967
1962
|
// Whether state is intermediate class name will "-checked"
|
|
1968
1963
|
'is-checked': intermediateState ? true : isChecked,
|
|
1969
1964
|
'is-disabled': isDisabled,
|
|
@@ -2082,8 +2077,8 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
2082
2077
|
inputId
|
|
2083
2078
|
});
|
|
2084
2079
|
});
|
|
2085
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
2086
|
-
Checkbox.className = CLASSNAME$
|
|
2080
|
+
Checkbox.displayName = COMPONENT_NAME$1n;
|
|
2081
|
+
Checkbox.className = CLASSNAME$1m;
|
|
2087
2082
|
Checkbox.defaultProps = DEFAULT_PROPS$15;
|
|
2088
2083
|
|
|
2089
2084
|
/**
|
|
@@ -2105,16 +2100,16 @@ function useStopPropagation(handler) {
|
|
|
2105
2100
|
/**
|
|
2106
2101
|
* Component display name.
|
|
2107
2102
|
*/
|
|
2108
|
-
const COMPONENT_NAME$
|
|
2103
|
+
const COMPONENT_NAME$1m = 'Chip';
|
|
2109
2104
|
|
|
2110
2105
|
/**
|
|
2111
2106
|
* Component default class name and class prefix.
|
|
2112
2107
|
*/
|
|
2113
|
-
const CLASSNAME$
|
|
2108
|
+
const CLASSNAME$1l = 'lumx-chip';
|
|
2114
2109
|
const {
|
|
2115
|
-
block: block$
|
|
2110
|
+
block: block$11,
|
|
2116
2111
|
element: element$N
|
|
2117
|
-
} = bem(CLASSNAME$
|
|
2112
|
+
} = bem(CLASSNAME$1l);
|
|
2118
2113
|
|
|
2119
2114
|
/**
|
|
2120
2115
|
* Component default props.
|
|
@@ -2181,7 +2176,7 @@ const Chip$1 = props => {
|
|
|
2181
2176
|
...forwardedProps,
|
|
2182
2177
|
href: !disabledStateProps.disabled ? href : undefined,
|
|
2183
2178
|
ref: ref,
|
|
2184
|
-
className: classnames(className, block$
|
|
2179
|
+
className: classnames(className, block$11({
|
|
2185
2180
|
'is-clickable': isClickable,
|
|
2186
2181
|
[`color-${chipColor}`]: Boolean(chipColor),
|
|
2187
2182
|
'is-disabled': isAnyDisabled,
|
|
@@ -2266,19 +2261,19 @@ const Chip = forwardRef((props, ref) => {
|
|
|
2266
2261
|
...forwardedProps
|
|
2267
2262
|
});
|
|
2268
2263
|
});
|
|
2269
|
-
Chip.displayName = COMPONENT_NAME$
|
|
2270
|
-
Chip.className = CLASSNAME$
|
|
2264
|
+
Chip.displayName = COMPONENT_NAME$1m;
|
|
2265
|
+
Chip.className = CLASSNAME$1l;
|
|
2271
2266
|
Chip.defaultProps = DEFAULT_PROPS$14;
|
|
2272
2267
|
|
|
2273
2268
|
/**
|
|
2274
2269
|
* Component display name.
|
|
2275
2270
|
*/
|
|
2276
|
-
const COMPONENT_NAME$
|
|
2271
|
+
const COMPONENT_NAME$1l = 'ChipGroup';
|
|
2277
2272
|
|
|
2278
2273
|
/**
|
|
2279
2274
|
* Component default class name and class prefix.
|
|
2280
2275
|
*/
|
|
2281
|
-
const CLASSNAME$
|
|
2276
|
+
const CLASSNAME$1k = 'lumx-chip-group';
|
|
2282
2277
|
|
|
2283
2278
|
/**
|
|
2284
2279
|
* Component default props.
|
|
@@ -2301,7 +2296,7 @@ const ChipGroup$1 = props => {
|
|
|
2301
2296
|
return /*#__PURE__*/jsx("div", {
|
|
2302
2297
|
ref: ref,
|
|
2303
2298
|
...forwardedProps,
|
|
2304
|
-
className: classnames(className, CLASSNAME$
|
|
2299
|
+
className: classnames(className, CLASSNAME$1k),
|
|
2305
2300
|
children: children
|
|
2306
2301
|
});
|
|
2307
2302
|
};
|
|
@@ -2379,8 +2374,8 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2379
2374
|
...forwardedProps
|
|
2380
2375
|
});
|
|
2381
2376
|
});
|
|
2382
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2383
|
-
InternalChipGroup.className = CLASSNAME$
|
|
2377
|
+
InternalChipGroup.displayName = COMPONENT_NAME$1l;
|
|
2378
|
+
InternalChipGroup.className = CLASSNAME$1k;
|
|
2384
2379
|
InternalChipGroup.defaultProps = DEFAULT_PROPS$13;
|
|
2385
2380
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2386
2381
|
useChipGroupNavigation
|
|
@@ -2389,16 +2384,16 @@ const ChipGroup = Object.assign(InternalChipGroup, {
|
|
|
2389
2384
|
/**
|
|
2390
2385
|
* Component display name.
|
|
2391
2386
|
*/
|
|
2392
|
-
const COMPONENT_NAME$
|
|
2387
|
+
const COMPONENT_NAME$1k = 'SelectionChipGroup';
|
|
2393
2388
|
|
|
2394
2389
|
/**
|
|
2395
2390
|
* Component default class name and class prefix.
|
|
2396
2391
|
*/
|
|
2397
|
-
const CLASSNAME$
|
|
2392
|
+
const CLASSNAME$1j = 'lumx-selection-chip-group';
|
|
2398
2393
|
const {
|
|
2399
|
-
block: block
|
|
2394
|
+
block: block$10,
|
|
2400
2395
|
element: element$M
|
|
2401
|
-
} = bem(CLASSNAME$
|
|
2396
|
+
} = bem(CLASSNAME$1j);
|
|
2402
2397
|
|
|
2403
2398
|
/**
|
|
2404
2399
|
* SelectionChipGroup component.
|
|
@@ -2436,7 +2431,7 @@ const SelectionChipGroup$1 = (props, {
|
|
|
2436
2431
|
"aria-label": label,
|
|
2437
2432
|
"aria-multiselectable": "true",
|
|
2438
2433
|
"aria-orientation": "horizontal",
|
|
2439
|
-
className: block
|
|
2434
|
+
className: block$10([className]),
|
|
2440
2435
|
children: value.map(v => {
|
|
2441
2436
|
const name = getOptionName && getWithSelector(getOptionName, v) || getWithSelector(getOptionId, v);
|
|
2442
2437
|
const id = getWithSelector(getOptionId, v);
|
|
@@ -2494,10 +2489,10 @@ function createSelectorTreeWalker(container, selector) {
|
|
|
2494
2489
|
}
|
|
2495
2490
|
|
|
2496
2491
|
/** CSS selector for enabled chips (not aria-disabled). */
|
|
2497
|
-
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$
|
|
2492
|
+
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$1l}:not([aria-disabled="true"])`;
|
|
2498
2493
|
|
|
2499
2494
|
/** Find the closest chip element from an event target. */
|
|
2500
|
-
const getChip = target => target?.closest?.(`.${CLASSNAME$
|
|
2495
|
+
const getChip = target => target?.closest?.(`.${CLASSNAME$1l}`) || null;
|
|
2501
2496
|
|
|
2502
2497
|
/** Whether the chip is marked as disabled via aria-disabled. */
|
|
2503
2498
|
const isChipDisabled = chip => chip?.getAttribute('aria-disabled') === 'true';
|
|
@@ -2711,15 +2706,15 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
2711
2706
|
/**
|
|
2712
2707
|
* Component display name.
|
|
2713
2708
|
*/
|
|
2714
|
-
const COMPONENT_NAME$
|
|
2709
|
+
const COMPONENT_NAME$1j = 'Text';
|
|
2715
2710
|
|
|
2716
2711
|
/**
|
|
2717
2712
|
* Component default class name and class prefix.
|
|
2718
2713
|
*/
|
|
2719
|
-
const CLASSNAME$
|
|
2714
|
+
const CLASSNAME$1i = 'lumx-text';
|
|
2720
2715
|
const {
|
|
2721
|
-
block: block
|
|
2722
|
-
} = bem(CLASSNAME$
|
|
2716
|
+
block: block$$
|
|
2717
|
+
} = bem(CLASSNAME$1i);
|
|
2723
2718
|
|
|
2724
2719
|
/**
|
|
2725
2720
|
* Component default props.
|
|
@@ -2760,7 +2755,7 @@ const getTextProps = props => {
|
|
|
2760
2755
|
'--lumx-text-white-space': whiteSpace
|
|
2761
2756
|
};
|
|
2762
2757
|
return {
|
|
2763
|
-
className: classnames(className, block
|
|
2758
|
+
className: classnames(className, block$$({
|
|
2764
2759
|
'is-truncated': isTruncated && !isTruncatedMultiline,
|
|
2765
2760
|
'is-truncated-multiline': isTruncatedMultiline,
|
|
2766
2761
|
'no-wrap': noWrap
|
|
@@ -2809,8 +2804,8 @@ const Text = forwardRef((props, ref) => {
|
|
|
2809
2804
|
children: wrapChildrenIconWithSpaces(children)
|
|
2810
2805
|
});
|
|
2811
2806
|
});
|
|
2812
|
-
Text.displayName = COMPONENT_NAME$
|
|
2813
|
-
Text.className = CLASSNAME$
|
|
2807
|
+
Text.displayName = COMPONENT_NAME$1j;
|
|
2808
|
+
Text.className = CLASSNAME$1i;
|
|
2814
2809
|
Text.defaultProps = DEFAULT_PROPS$12;
|
|
2815
2810
|
|
|
2816
2811
|
/**
|
|
@@ -4903,16 +4898,16 @@ const DEFAULT_PROPS$11 = {
|
|
|
4903
4898
|
/**
|
|
4904
4899
|
* Component display name.
|
|
4905
4900
|
*/
|
|
4906
|
-
const COMPONENT_NAME$
|
|
4901
|
+
const COMPONENT_NAME$1i = 'Tooltip';
|
|
4907
4902
|
|
|
4908
4903
|
/**
|
|
4909
4904
|
* Component default class name and class prefix.
|
|
4910
4905
|
*/
|
|
4911
|
-
const CLASSNAME$
|
|
4906
|
+
const CLASSNAME$1h = 'lumx-tooltip';
|
|
4912
4907
|
const {
|
|
4913
|
-
block: block$
|
|
4908
|
+
block: block$_,
|
|
4914
4909
|
element: element$L
|
|
4915
|
-
} = bem(CLASSNAME$
|
|
4910
|
+
} = bem(CLASSNAME$1h);
|
|
4916
4911
|
|
|
4917
4912
|
/**
|
|
4918
4913
|
* Props for the TooltipPopup rendering component.
|
|
@@ -4943,7 +4938,7 @@ const TooltipPopup = props => {
|
|
|
4943
4938
|
...forwardedProps,
|
|
4944
4939
|
id: id,
|
|
4945
4940
|
role: "tooltip",
|
|
4946
|
-
className: classnames(className, block$
|
|
4941
|
+
className: classnames(className, block$_({
|
|
4947
4942
|
[`position-${position}`]: Boolean(position)
|
|
4948
4943
|
}), isHidden && visuallyHidden()),
|
|
4949
4944
|
style: {
|
|
@@ -4961,8 +4956,8 @@ const TooltipPopup = props => {
|
|
|
4961
4956
|
})]
|
|
4962
4957
|
});
|
|
4963
4958
|
};
|
|
4964
|
-
TooltipPopup.displayName = COMPONENT_NAME$
|
|
4965
|
-
TooltipPopup.className = CLASSNAME$
|
|
4959
|
+
TooltipPopup.displayName = COMPONENT_NAME$1i;
|
|
4960
|
+
TooltipPopup.className = CLASSNAME$1h;
|
|
4966
4961
|
|
|
4967
4962
|
/**
|
|
4968
4963
|
* Add ref and ARIA attribute(s) in tooltip children or wrapped children.
|
|
@@ -5050,7 +5045,7 @@ const LISTENERS = makeListenerTowerContext();
|
|
|
5050
5045
|
*/
|
|
5051
5046
|
function useCallbackOnEscape(callback, closeOnEscape = true) {
|
|
5052
5047
|
useEffect(() => {
|
|
5053
|
-
const rootElement = DOCUMENT
|
|
5048
|
+
const rootElement = DOCUMENT?.body;
|
|
5054
5049
|
if (!closeOnEscape || !callback || !rootElement) {
|
|
5055
5050
|
return undefined;
|
|
5056
5051
|
}
|
|
@@ -5265,7 +5260,7 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5265
5260
|
...forwardedProps
|
|
5266
5261
|
} = props;
|
|
5267
5262
|
// Disable in SSR.
|
|
5268
|
-
if (!DOCUMENT
|
|
5263
|
+
if (!DOCUMENT) {
|
|
5269
5264
|
return /*#__PURE__*/jsx(Fragment, {
|
|
5270
5265
|
children: children
|
|
5271
5266
|
});
|
|
@@ -5324,8 +5319,8 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5324
5319
|
})]
|
|
5325
5320
|
});
|
|
5326
5321
|
});
|
|
5327
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
5328
|
-
Tooltip.className = CLASSNAME$
|
|
5322
|
+
Tooltip.displayName = COMPONENT_NAME$1i;
|
|
5323
|
+
Tooltip.className = CLASSNAME$1h;
|
|
5329
5324
|
Tooltip.defaultProps = DEFAULT_PROPS$11;
|
|
5330
5325
|
|
|
5331
5326
|
/**
|
|
@@ -6204,8 +6199,8 @@ const SelectionChipGroup = ({
|
|
|
6204
6199
|
}, [container, inputRef, getOptionId]);
|
|
6205
6200
|
useRovingTabIndexContainer({
|
|
6206
6201
|
containerRef: container,
|
|
6207
|
-
itemSelector: `.${CLASSNAME$
|
|
6208
|
-
itemDisabledSelector: `.${CLASSNAME$
|
|
6202
|
+
itemSelector: `.${CLASSNAME$1l}`,
|
|
6203
|
+
itemDisabledSelector: `.${CLASSNAME$1l}[aria-disabled="true"]`
|
|
6209
6204
|
});
|
|
6210
6205
|
|
|
6211
6206
|
// Merge getChipProps and renderChip: getChipProps provides base props, renderChip overrides them,
|
|
@@ -6245,8 +6240,8 @@ const SelectionChipGroup = ({
|
|
|
6245
6240
|
Tooltip
|
|
6246
6241
|
});
|
|
6247
6242
|
};
|
|
6248
|
-
SelectionChipGroup.displayName = COMPONENT_NAME$
|
|
6249
|
-
SelectionChipGroup.className = CLASSNAME$
|
|
6243
|
+
SelectionChipGroup.displayName = COMPONENT_NAME$1k;
|
|
6244
|
+
SelectionChipGroup.className = CLASSNAME$1j;
|
|
6250
6245
|
|
|
6251
6246
|
/**
|
|
6252
6247
|
* Get the value for a combobox option element.
|
|
@@ -6610,9 +6605,9 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6610
6605
|
}
|
|
6611
6606
|
flag = true;
|
|
6612
6607
|
} else if (handle.isOpen && !handle.isMultiSelect) {
|
|
6613
|
-
// Open with no active item (single select) => close the popup
|
|
6608
|
+
// Open with no active item (single select) => close the popup,
|
|
6609
|
+
// but let Enter propagate so it can submit a surrounding form.
|
|
6614
6610
|
handle.setIsOpen(false);
|
|
6615
|
-
flag = true;
|
|
6616
6611
|
}
|
|
6617
6612
|
// Otherwise (closed popup, or multi-select with no active item),
|
|
6618
6613
|
// let Enter pass through so it can submit a surrounding form
|
|
@@ -7135,12 +7130,12 @@ function setupComboboxButton(button, callbacks) {
|
|
|
7135
7130
|
/**
|
|
7136
7131
|
* Component display name.
|
|
7137
7132
|
*/
|
|
7138
|
-
const COMPONENT_NAME$
|
|
7133
|
+
const COMPONENT_NAME$1h = 'ComboboxButton';
|
|
7139
7134
|
|
|
7140
7135
|
/**
|
|
7141
7136
|
* Component default class name and class prefix.
|
|
7142
7137
|
*/
|
|
7143
|
-
const CLASSNAME$
|
|
7138
|
+
const CLASSNAME$1g = 'lumx-combobox-button';
|
|
7144
7139
|
|
|
7145
7140
|
/**
|
|
7146
7141
|
* ComboboxButton core template.
|
|
@@ -7180,7 +7175,7 @@ const ComboboxButton$1 = (props, {
|
|
|
7180
7175
|
const componentProps = {
|
|
7181
7176
|
ref,
|
|
7182
7177
|
...forwardedProps,
|
|
7183
|
-
className: classnames(className, CLASSNAME$
|
|
7178
|
+
className: classnames(className, CLASSNAME$1g),
|
|
7184
7179
|
role: 'combobox',
|
|
7185
7180
|
'aria-controls': listboxId,
|
|
7186
7181
|
'aria-haspopup': 'listbox',
|
|
@@ -7320,8 +7315,8 @@ const ComboboxButton = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
7320
7315
|
Tooltip
|
|
7321
7316
|
});
|
|
7322
7317
|
}), {
|
|
7323
|
-
displayName: COMPONENT_NAME$
|
|
7324
|
-
className: CLASSNAME$
|
|
7318
|
+
displayName: COMPONENT_NAME$1h,
|
|
7319
|
+
className: CLASSNAME$1g
|
|
7325
7320
|
});
|
|
7326
7321
|
|
|
7327
7322
|
/** Options for configuring the input-mode combobox controller. */
|
|
@@ -7481,12 +7476,12 @@ function getDisabledState(context, props) {
|
|
|
7481
7476
|
/**
|
|
7482
7477
|
* Component display name.
|
|
7483
7478
|
*/
|
|
7484
|
-
const COMPONENT_NAME$
|
|
7479
|
+
const COMPONENT_NAME$1g = 'ComboboxInput';
|
|
7485
7480
|
|
|
7486
7481
|
/**
|
|
7487
7482
|
* Component default class name and class prefix.
|
|
7488
7483
|
*/
|
|
7489
|
-
const CLASSNAME$
|
|
7484
|
+
const CLASSNAME$1f = 'lumx-combobox-input';
|
|
7490
7485
|
|
|
7491
7486
|
/**
|
|
7492
7487
|
* ComboboxInput core template.
|
|
@@ -7549,22 +7544,22 @@ const ComboboxInput$1 = (props, {
|
|
|
7549
7544
|
/**
|
|
7550
7545
|
* Component display name.
|
|
7551
7546
|
*/
|
|
7552
|
-
const COMPONENT_NAME$
|
|
7547
|
+
const COMPONENT_NAME$1f = 'TextField';
|
|
7553
7548
|
|
|
7554
7549
|
/**
|
|
7555
7550
|
* Component default class name and class prefix.
|
|
7556
7551
|
*/
|
|
7557
|
-
const CLASSNAME$
|
|
7552
|
+
const CLASSNAME$1e = 'lumx-text-field';
|
|
7558
7553
|
|
|
7559
7554
|
/**
|
|
7560
7555
|
* Input native element class name.
|
|
7561
7556
|
*/
|
|
7562
|
-
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$
|
|
7557
|
+
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$1e}__input-native`;
|
|
7563
7558
|
|
|
7564
7559
|
const {
|
|
7565
|
-
block: block$
|
|
7560
|
+
block: block$Z,
|
|
7566
7561
|
element: element$K
|
|
7567
|
-
} = bem(CLASSNAME$
|
|
7562
|
+
} = bem(CLASSNAME$1e);
|
|
7568
7563
|
|
|
7569
7564
|
/**
|
|
7570
7565
|
* Defines the props of the component.
|
|
@@ -7636,7 +7631,7 @@ const TextField$1 = props => {
|
|
|
7636
7631
|
const isNotEmpty = valueLength > 0;
|
|
7637
7632
|
return /*#__PURE__*/jsxs("div", {
|
|
7638
7633
|
ref: ref,
|
|
7639
|
-
className: classnames(className, block$
|
|
7634
|
+
className: classnames(className, block$Z({
|
|
7640
7635
|
'has-chips': Boolean(chips),
|
|
7641
7636
|
'has-error': !isValid && hasError,
|
|
7642
7637
|
'has-icon': Boolean(icon),
|
|
@@ -7718,7 +7713,7 @@ const TextField$1 = props => {
|
|
|
7718
7713
|
};
|
|
7719
7714
|
|
|
7720
7715
|
const {
|
|
7721
|
-
block: block$
|
|
7716
|
+
block: block$Y
|
|
7722
7717
|
} = bem(INPUT_NATIVE_CLASSNAME);
|
|
7723
7718
|
|
|
7724
7719
|
/**
|
|
@@ -7759,7 +7754,7 @@ const RawInputText$1 = props => {
|
|
|
7759
7754
|
name: name,
|
|
7760
7755
|
type: type,
|
|
7761
7756
|
ref: ref,
|
|
7762
|
-
className: classnames(className, block$
|
|
7757
|
+
className: classnames(className, block$Y({
|
|
7763
7758
|
[`theme-${theme}`]: Boolean(theme),
|
|
7764
7759
|
text: true
|
|
7765
7760
|
})),
|
|
@@ -7789,7 +7784,7 @@ const RawInputText = forwardRef((props, ref) => {
|
|
|
7789
7784
|
});
|
|
7790
7785
|
|
|
7791
7786
|
const {
|
|
7792
|
-
block: block$
|
|
7787
|
+
block: block$X
|
|
7793
7788
|
} = bem(INPUT_NATIVE_CLASSNAME);
|
|
7794
7789
|
|
|
7795
7790
|
/**
|
|
@@ -7829,7 +7824,7 @@ const RawInputTextarea$1 = props => {
|
|
|
7829
7824
|
...forwardedProps,
|
|
7830
7825
|
name: name,
|
|
7831
7826
|
ref: ref,
|
|
7832
|
-
className: classnames(className, block$
|
|
7827
|
+
className: classnames(className, block$X({
|
|
7833
7828
|
[`theme-${theme}`]: Boolean(theme),
|
|
7834
7829
|
textarea: true
|
|
7835
7830
|
})),
|
|
@@ -8069,8 +8064,8 @@ const TextField = forwardRef((props, ref) => {
|
|
|
8069
8064
|
} : undefined
|
|
8070
8065
|
});
|
|
8071
8066
|
});
|
|
8072
|
-
TextField.displayName = COMPONENT_NAME$
|
|
8073
|
-
TextField.className = CLASSNAME$
|
|
8067
|
+
TextField.displayName = COMPONENT_NAME$1f;
|
|
8068
|
+
TextField.className = CLASSNAME$1e;
|
|
8074
8069
|
TextField.defaultProps = DEFAULT_PROPS$Z;
|
|
8075
8070
|
|
|
8076
8071
|
/**
|
|
@@ -8148,21 +8143,21 @@ const ComboboxInput = forwardRef((props, ref) => {
|
|
|
8148
8143
|
IconButton
|
|
8149
8144
|
});
|
|
8150
8145
|
});
|
|
8151
|
-
ComboboxInput.displayName = COMPONENT_NAME$
|
|
8152
|
-
ComboboxInput.className = CLASSNAME$
|
|
8146
|
+
ComboboxInput.displayName = COMPONENT_NAME$1g;
|
|
8147
|
+
ComboboxInput.className = CLASSNAME$1f;
|
|
8153
8148
|
|
|
8154
8149
|
/**
|
|
8155
8150
|
* Component display name.
|
|
8156
8151
|
*/
|
|
8157
|
-
const COMPONENT_NAME$
|
|
8152
|
+
const COMPONENT_NAME$1e = 'List';
|
|
8158
8153
|
|
|
8159
8154
|
/**
|
|
8160
8155
|
* Component default class name and class prefix.
|
|
8161
8156
|
*/
|
|
8162
|
-
const CLASSNAME$
|
|
8157
|
+
const CLASSNAME$1d = 'lumx-list';
|
|
8163
8158
|
const {
|
|
8164
|
-
block: block$
|
|
8165
|
-
} = bem(CLASSNAME$
|
|
8159
|
+
block: block$W
|
|
8160
|
+
} = bem(CLASSNAME$1d);
|
|
8166
8161
|
|
|
8167
8162
|
/**
|
|
8168
8163
|
* Component default props.
|
|
@@ -8185,15 +8180,15 @@ const List$1 = props => {
|
|
|
8185
8180
|
} = props;
|
|
8186
8181
|
return /*#__PURE__*/jsx("ul", {
|
|
8187
8182
|
...forwardedProps,
|
|
8188
|
-
className: classnames(className, block$
|
|
8183
|
+
className: classnames(className, block$W({
|
|
8189
8184
|
[`item-padding-${itemPadding}`]: Boolean(itemPadding)
|
|
8190
8185
|
})),
|
|
8191
8186
|
ref: ref,
|
|
8192
8187
|
children: children
|
|
8193
8188
|
});
|
|
8194
8189
|
};
|
|
8195
|
-
List$1.displayName = COMPONENT_NAME$
|
|
8196
|
-
List$1.className = CLASSNAME$
|
|
8190
|
+
List$1.displayName = COMPONENT_NAME$1e;
|
|
8191
|
+
List$1.className = CLASSNAME$1d;
|
|
8197
8192
|
List$1.defaultProps = DEFAULT_PROPS$Y;
|
|
8198
8193
|
|
|
8199
8194
|
/**
|
|
@@ -8209,12 +8204,12 @@ List$1.defaultProps = DEFAULT_PROPS$Y;
|
|
|
8209
8204
|
/**
|
|
8210
8205
|
* Component display name.
|
|
8211
8206
|
*/
|
|
8212
|
-
const COMPONENT_NAME$
|
|
8207
|
+
const COMPONENT_NAME$1d = 'ComboboxList';
|
|
8213
8208
|
|
|
8214
8209
|
/**
|
|
8215
8210
|
* Component default class name and class prefix.
|
|
8216
8211
|
*/
|
|
8217
|
-
const CLASSNAME$
|
|
8212
|
+
const CLASSNAME$1c = 'lumx-combobox-list';
|
|
8218
8213
|
|
|
8219
8214
|
/**
|
|
8220
8215
|
* ComboboxList core template.
|
|
@@ -8236,7 +8231,7 @@ const ComboboxList$1 = props => {
|
|
|
8236
8231
|
} = props;
|
|
8237
8232
|
return List$1({
|
|
8238
8233
|
...forwardedProps,
|
|
8239
|
-
className: classnames(className, CLASSNAME$
|
|
8234
|
+
className: classnames(className, CLASSNAME$1c),
|
|
8240
8235
|
ref,
|
|
8241
8236
|
itemPadding: 'big',
|
|
8242
8237
|
id,
|
|
@@ -8321,22 +8316,22 @@ const ComboboxList = forwardRef((props, ref) => {
|
|
|
8321
8316
|
})
|
|
8322
8317
|
});
|
|
8323
8318
|
});
|
|
8324
|
-
ComboboxList.displayName = COMPONENT_NAME$
|
|
8325
|
-
ComboboxList.className = CLASSNAME$
|
|
8319
|
+
ComboboxList.displayName = COMPONENT_NAME$1d;
|
|
8320
|
+
ComboboxList.className = CLASSNAME$1c;
|
|
8326
8321
|
|
|
8327
8322
|
/**
|
|
8328
8323
|
* Component display name.
|
|
8329
8324
|
*/
|
|
8330
|
-
const COMPONENT_NAME$
|
|
8325
|
+
const COMPONENT_NAME$1c = 'ListItem';
|
|
8331
8326
|
|
|
8332
8327
|
/**
|
|
8333
8328
|
* Component default class name and class prefix.
|
|
8334
8329
|
*/
|
|
8335
|
-
const CLASSNAME$
|
|
8330
|
+
const CLASSNAME$1b = 'lumx-list-item';
|
|
8336
8331
|
const {
|
|
8337
|
-
block: block$
|
|
8332
|
+
block: block$V,
|
|
8338
8333
|
element: element$J
|
|
8339
|
-
} = bem(CLASSNAME$
|
|
8334
|
+
} = bem(CLASSNAME$1b);
|
|
8340
8335
|
|
|
8341
8336
|
/**
|
|
8342
8337
|
* Component default props.
|
|
@@ -8373,7 +8368,7 @@ const ListItem$1 = props => {
|
|
|
8373
8368
|
return /*#__PURE__*/jsx("li", {
|
|
8374
8369
|
ref: ref,
|
|
8375
8370
|
...forwardedProps,
|
|
8376
|
-
className: classnames(className, block$
|
|
8371
|
+
className: classnames(className, block$V({
|
|
8377
8372
|
[`size-${size}`]: Boolean(size)
|
|
8378
8373
|
})),
|
|
8379
8374
|
children: RawClickable({
|
|
@@ -8403,8 +8398,8 @@ const ListItem$1 = props => {
|
|
|
8403
8398
|
})
|
|
8404
8399
|
});
|
|
8405
8400
|
};
|
|
8406
|
-
ListItem$1.displayName = COMPONENT_NAME$
|
|
8407
|
-
ListItem$1.className = CLASSNAME$
|
|
8401
|
+
ListItem$1.displayName = COMPONENT_NAME$1c;
|
|
8402
|
+
ListItem$1.className = CLASSNAME$1b;
|
|
8408
8403
|
ListItem$1.defaultProps = DEFAULT_PROPS$X;
|
|
8409
8404
|
|
|
8410
8405
|
/**
|
|
@@ -8414,12 +8409,12 @@ ListItem$1.defaultProps = DEFAULT_PROPS$X;
|
|
|
8414
8409
|
/**
|
|
8415
8410
|
* Component display name.
|
|
8416
8411
|
*/
|
|
8417
|
-
const COMPONENT_NAME$
|
|
8412
|
+
const COMPONENT_NAME$1b = 'ListItemAction';
|
|
8418
8413
|
|
|
8419
8414
|
/**
|
|
8420
8415
|
* Component classname (used by action area CSS pattern).
|
|
8421
8416
|
*/
|
|
8422
|
-
const CLASSNAME$
|
|
8417
|
+
const CLASSNAME$1a = 'lumx-action-area__action';
|
|
8423
8418
|
const DEFAULT_PROPS$W = {};
|
|
8424
8419
|
|
|
8425
8420
|
/**
|
|
@@ -8453,16 +8448,16 @@ const ListItemAction$1 = props => {
|
|
|
8453
8448
|
/**
|
|
8454
8449
|
* Component display name.
|
|
8455
8450
|
*/
|
|
8456
|
-
const COMPONENT_NAME$
|
|
8451
|
+
const COMPONENT_NAME$1a = 'ComboboxOption';
|
|
8457
8452
|
|
|
8458
8453
|
/**
|
|
8459
8454
|
* Component default class name and class prefix.
|
|
8460
8455
|
*/
|
|
8461
|
-
const CLASSNAME$
|
|
8456
|
+
const CLASSNAME$19 = 'lumx-combobox-option';
|
|
8462
8457
|
const {
|
|
8463
|
-
block: block$
|
|
8458
|
+
block: block$U,
|
|
8464
8459
|
element: element$I
|
|
8465
|
-
} = bem(CLASSNAME$
|
|
8460
|
+
} = bem(CLASSNAME$19);
|
|
8466
8461
|
|
|
8467
8462
|
/**
|
|
8468
8463
|
* ComboboxOption core template.
|
|
@@ -8524,7 +8519,7 @@ const ComboboxOption$1 = (props, {
|
|
|
8524
8519
|
size: 'tiny',
|
|
8525
8520
|
...forwardedProps,
|
|
8526
8521
|
hidden,
|
|
8527
|
-
className: !hidden ? classnames(className, block$
|
|
8522
|
+
className: !hidden ? classnames(className, block$U()) : undefined,
|
|
8528
8523
|
before,
|
|
8529
8524
|
after,
|
|
8530
8525
|
role: itemRole,
|
|
@@ -8646,8 +8641,8 @@ const ComboboxOption = forwardRef((props, ref) => {
|
|
|
8646
8641
|
Tooltip
|
|
8647
8642
|
});
|
|
8648
8643
|
});
|
|
8649
|
-
ComboboxOption.displayName = COMPONENT_NAME$
|
|
8650
|
-
ComboboxOption.className = CLASSNAME$
|
|
8644
|
+
ComboboxOption.displayName = COMPONENT_NAME$1a;
|
|
8645
|
+
ComboboxOption.className = CLASSNAME$19;
|
|
8651
8646
|
|
|
8652
8647
|
/**
|
|
8653
8648
|
* Defines the props for the core ComboboxOptionAction template.
|
|
@@ -8656,12 +8651,12 @@ ComboboxOption.className = CLASSNAME$18;
|
|
|
8656
8651
|
/**
|
|
8657
8652
|
* Component display name.
|
|
8658
8653
|
*/
|
|
8659
|
-
const COMPONENT_NAME$
|
|
8654
|
+
const COMPONENT_NAME$19 = 'ComboboxOptionAction';
|
|
8660
8655
|
|
|
8661
8656
|
/**
|
|
8662
8657
|
* Component default class name and class prefix.
|
|
8663
8658
|
*/
|
|
8664
|
-
const CLASSNAME$
|
|
8659
|
+
const CLASSNAME$18 = 'lumx-combobox-option-action';
|
|
8665
8660
|
|
|
8666
8661
|
/**
|
|
8667
8662
|
* ComboboxOptionAction core template.
|
|
@@ -8684,7 +8679,7 @@ const ComboboxOptionAction$1 = props => {
|
|
|
8684
8679
|
as: Element,
|
|
8685
8680
|
...forwardedProps,
|
|
8686
8681
|
role: 'gridcell',
|
|
8687
|
-
className: classnames(className, CLASSNAME$
|
|
8682
|
+
className: classnames(className, CLASSNAME$18),
|
|
8688
8683
|
handleClick,
|
|
8689
8684
|
children
|
|
8690
8685
|
});
|
|
@@ -8734,23 +8729,23 @@ const ComboboxOptionAction = Object.assign(forwardRefPolymorphic((props, ref) =>
|
|
|
8734
8729
|
children
|
|
8735
8730
|
});
|
|
8736
8731
|
}), {
|
|
8737
|
-
displayName: COMPONENT_NAME$
|
|
8738
|
-
className: CLASSNAME$
|
|
8732
|
+
displayName: COMPONENT_NAME$19,
|
|
8733
|
+
className: CLASSNAME$18
|
|
8739
8734
|
});
|
|
8740
8735
|
|
|
8741
8736
|
/**
|
|
8742
8737
|
* Component display name.
|
|
8743
8738
|
*/
|
|
8744
|
-
const COMPONENT_NAME$
|
|
8739
|
+
const COMPONENT_NAME$18 = 'ComboboxOptionMoreInfo';
|
|
8745
8740
|
|
|
8746
8741
|
/**
|
|
8747
8742
|
* Component default class name and class prefix.
|
|
8748
8743
|
*/
|
|
8749
|
-
const CLASSNAME$
|
|
8744
|
+
const CLASSNAME$17 = 'lumx-combobox-option-more-info';
|
|
8750
8745
|
const {
|
|
8751
|
-
block: block$
|
|
8746
|
+
block: block$T,
|
|
8752
8747
|
element: element$H
|
|
8753
|
-
} = bem(CLASSNAME$
|
|
8748
|
+
} = bem(CLASSNAME$17);
|
|
8754
8749
|
|
|
8755
8750
|
/**
|
|
8756
8751
|
* ComboboxOptionMoreInfo core template.
|
|
@@ -8784,7 +8779,7 @@ const ComboboxOptionMoreInfo$1 = (props, {
|
|
|
8784
8779
|
icon: mdiInformationOutline,
|
|
8785
8780
|
size: "s",
|
|
8786
8781
|
...buttonProps,
|
|
8787
|
-
className: block$
|
|
8782
|
+
className: block$T([className, buttonProps?.className]),
|
|
8788
8783
|
emphasis: "low",
|
|
8789
8784
|
onMouseEnter: onMouseEnter,
|
|
8790
8785
|
onMouseLeave: onMouseLeave
|
|
@@ -8877,15 +8872,12 @@ function setupFocusTrap(options, signal) {
|
|
|
8877
8872
|
focusZoneElement,
|
|
8878
8873
|
focusElement
|
|
8879
8874
|
} = options;
|
|
8880
|
-
|
|
8881
|
-
// Body element can be undefined in SSR context.
|
|
8882
|
-
const rootElement = DOCUMENT?.body;
|
|
8883
|
-
if (!rootElement || !focusZoneElement || signal.aborted) {
|
|
8875
|
+
if (!focusZoneElement || signal.aborted) {
|
|
8884
8876
|
return;
|
|
8885
8877
|
}
|
|
8886
8878
|
|
|
8887
|
-
//
|
|
8888
|
-
const
|
|
8879
|
+
// The root node is either the Document (regular DOM) or a ShadowRoot (shadow DOM portal).
|
|
8880
|
+
const rootNode = focusZoneElement.getRootNode();
|
|
8889
8881
|
|
|
8890
8882
|
// Track whether we added a `tabindex="-1"` so we can restore the original state on teardown.
|
|
8891
8883
|
let addedTabIndex = false;
|
|
@@ -8911,7 +8903,7 @@ function setupFocusTrap(options, signal) {
|
|
|
8911
8903
|
if (evt.key !== 'Tab') {
|
|
8912
8904
|
return;
|
|
8913
8905
|
}
|
|
8914
|
-
const focusable = getFirstAndLastFocusable(
|
|
8906
|
+
const focusable = getFirstAndLastFocusable(focusZoneElement);
|
|
8915
8907
|
|
|
8916
8908
|
// Prevent focus switch if no focusable available — pin focus on the zone itself.
|
|
8917
8909
|
if (!focusable.first) {
|
|
@@ -8919,14 +8911,16 @@ function setupFocusTrap(options, signal) {
|
|
|
8919
8911
|
focusZoneFallback();
|
|
8920
8912
|
return;
|
|
8921
8913
|
}
|
|
8922
|
-
const
|
|
8914
|
+
const {
|
|
8915
|
+
activeElement
|
|
8916
|
+
} = rootNode;
|
|
8923
8917
|
if (
|
|
8924
8918
|
// No previous focus.
|
|
8925
8919
|
!activeElement ||
|
|
8926
8920
|
// Previous focus is at the end of the focus zone.
|
|
8927
8921
|
!evt.shiftKey && activeElement === focusable.last ||
|
|
8928
8922
|
// Previous focus is outside the focus zone.
|
|
8929
|
-
!
|
|
8923
|
+
!focusZoneElement.contains(activeElement)) {
|
|
8930
8924
|
focusable.first.focus();
|
|
8931
8925
|
evt.preventDefault();
|
|
8932
8926
|
return;
|
|
@@ -8940,19 +8934,20 @@ function setupFocusTrap(options, signal) {
|
|
|
8940
8934
|
evt.preventDefault();
|
|
8941
8935
|
}
|
|
8942
8936
|
};
|
|
8937
|
+
const keydownHandler = trapTabFocusInFocusZone;
|
|
8943
8938
|
const focusTrap = {
|
|
8944
|
-
enable: () =>
|
|
8945
|
-
disable: () =>
|
|
8939
|
+
enable: () => rootNode.addEventListener('keydown', keydownHandler),
|
|
8940
|
+
disable: () => rootNode.removeEventListener('keydown', keydownHandler)
|
|
8946
8941
|
};
|
|
8947
8942
|
|
|
8948
8943
|
// SETUP: focus initial element.
|
|
8949
|
-
if (focusElement &&
|
|
8944
|
+
if (focusElement && focusZoneElement.contains(focusElement)) {
|
|
8950
8945
|
// Focus the given element.
|
|
8951
8946
|
focusElement.focus({
|
|
8952
8947
|
preventScroll: true
|
|
8953
8948
|
});
|
|
8954
8949
|
} else {
|
|
8955
|
-
const firstFocusable = getFirstAndLastFocusable(
|
|
8950
|
+
const firstFocusable = getFirstAndLastFocusable(focusZoneElement).first;
|
|
8956
8951
|
if (firstFocusable) {
|
|
8957
8952
|
// Focus the first focusable descendant.
|
|
8958
8953
|
firstFocusable.focus({
|
|
@@ -9067,16 +9062,16 @@ const POPOVER_ZINDEX = 9999;
|
|
|
9067
9062
|
/**
|
|
9068
9063
|
* Component display name.
|
|
9069
9064
|
*/
|
|
9070
|
-
const COMPONENT_NAME$
|
|
9065
|
+
const COMPONENT_NAME$17 = 'Popover';
|
|
9071
9066
|
|
|
9072
9067
|
/**
|
|
9073
9068
|
* Component default class name and class prefix.
|
|
9074
9069
|
*/
|
|
9075
|
-
const CLASSNAME$
|
|
9070
|
+
const CLASSNAME$16 = 'lumx-popover';
|
|
9076
9071
|
const {
|
|
9077
|
-
block: block$
|
|
9072
|
+
block: block$S,
|
|
9078
9073
|
element: element$G
|
|
9079
|
-
} = bem(CLASSNAME$
|
|
9074
|
+
} = bem(CLASSNAME$16);
|
|
9080
9075
|
|
|
9081
9076
|
/**
|
|
9082
9077
|
* Component default props (used by framework wrappers).
|
|
@@ -9138,7 +9133,7 @@ const Popover$1 = (props, {
|
|
|
9138
9133
|
children: /*#__PURE__*/jsxs(Component, {
|
|
9139
9134
|
...forwardedProps,
|
|
9140
9135
|
ref: ref,
|
|
9141
|
-
className: classnames(className, block$
|
|
9136
|
+
className: classnames(className, block$S({
|
|
9142
9137
|
[`theme-${theme}`]: Boolean(theme),
|
|
9143
9138
|
[`elevation-${adjustedElevation}`]: Boolean(adjustedElevation),
|
|
9144
9139
|
[`position-${position}`]: Boolean(position),
|
|
@@ -9528,7 +9523,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
9528
9523
|
ThemeProvider
|
|
9529
9524
|
});
|
|
9530
9525
|
});
|
|
9531
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
9526
|
+
_InnerPopover.displayName = COMPONENT_NAME$17;
|
|
9532
9527
|
|
|
9533
9528
|
/**
|
|
9534
9529
|
* Popover component.
|
|
@@ -9539,9 +9534,9 @@ _InnerPopover.displayName = COMPONENT_NAME$16;
|
|
|
9539
9534
|
*/
|
|
9540
9535
|
const Popover = skipRender(
|
|
9541
9536
|
// Skip render in SSR
|
|
9542
|
-
() => Boolean(DOCUMENT
|
|
9543
|
-
Popover.displayName = COMPONENT_NAME$
|
|
9544
|
-
Popover.className = CLASSNAME$
|
|
9537
|
+
() => Boolean(DOCUMENT), _InnerPopover);
|
|
9538
|
+
Popover.displayName = COMPONENT_NAME$17;
|
|
9539
|
+
Popover.className = CLASSNAME$16;
|
|
9545
9540
|
Popover.defaultProps = DEFAULT_PROPS$V;
|
|
9546
9541
|
|
|
9547
9542
|
/**
|
|
@@ -9604,22 +9599,22 @@ const ComboboxOptionMoreInfo = props => {
|
|
|
9604
9599
|
Popover
|
|
9605
9600
|
});
|
|
9606
9601
|
};
|
|
9607
|
-
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$
|
|
9608
|
-
ComboboxOptionMoreInfo.className = CLASSNAME$
|
|
9602
|
+
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$18;
|
|
9603
|
+
ComboboxOptionMoreInfo.className = CLASSNAME$17;
|
|
9609
9604
|
|
|
9610
9605
|
/**
|
|
9611
9606
|
* Component display name.
|
|
9612
9607
|
*/
|
|
9613
|
-
const COMPONENT_NAME$
|
|
9608
|
+
const COMPONENT_NAME$16 = 'SkeletonTypography';
|
|
9614
9609
|
|
|
9615
9610
|
/**
|
|
9616
9611
|
* Component default class name and class prefix.
|
|
9617
9612
|
*/
|
|
9618
|
-
const CLASSNAME$
|
|
9613
|
+
const CLASSNAME$15 = 'lumx-skeleton-typography';
|
|
9619
9614
|
const {
|
|
9620
|
-
block: block$
|
|
9615
|
+
block: block$R,
|
|
9621
9616
|
element: element$F
|
|
9622
|
-
} = bem(CLASSNAME$
|
|
9617
|
+
} = bem(CLASSNAME$15);
|
|
9623
9618
|
|
|
9624
9619
|
/**
|
|
9625
9620
|
* SkeletonTypography component.
|
|
@@ -9640,7 +9635,7 @@ const SkeletonTypography$1 = props => {
|
|
|
9640
9635
|
return /*#__PURE__*/jsx("div", {
|
|
9641
9636
|
ref: ref,
|
|
9642
9637
|
...forwardedProps,
|
|
9643
|
-
className: classnames(className, block$
|
|
9638
|
+
className: classnames(className, block$R({
|
|
9644
9639
|
[`theme-${theme}`]: Boolean(theme),
|
|
9645
9640
|
[`typography-${typography}`]: Boolean(typography),
|
|
9646
9641
|
[`color-${color}`]: Boolean(color)
|
|
@@ -9658,12 +9653,12 @@ const SkeletonTypography$1 = props => {
|
|
|
9658
9653
|
/**
|
|
9659
9654
|
* Component display name.
|
|
9660
9655
|
*/
|
|
9661
|
-
const COMPONENT_NAME$
|
|
9656
|
+
const COMPONENT_NAME$15 = 'ComboboxOptionSkeleton';
|
|
9662
9657
|
|
|
9663
9658
|
/**
|
|
9664
9659
|
* Component default class name and class prefix.
|
|
9665
9660
|
*/
|
|
9666
|
-
const CLASSNAME$
|
|
9661
|
+
const CLASSNAME$14 = 'lumx-combobox-option-skeleton';
|
|
9667
9662
|
|
|
9668
9663
|
/**
|
|
9669
9664
|
* ComboboxOptionSkeleton core template.
|
|
@@ -9690,7 +9685,7 @@ const ComboboxOptionSkeleton$1 = props => {
|
|
|
9690
9685
|
size: 'tiny',
|
|
9691
9686
|
role: 'none',
|
|
9692
9687
|
...forwardedProps,
|
|
9693
|
-
className: classnames(className, CLASSNAME$
|
|
9688
|
+
className: classnames(className, CLASSNAME$14),
|
|
9694
9689
|
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
9695
9690
|
children: [/*#__PURE__*/jsx(SkeletonTypography$1, {
|
|
9696
9691
|
typography: "body1",
|
|
@@ -9743,19 +9738,19 @@ const ComboboxOptionSkeleton = props => {
|
|
|
9743
9738
|
...props
|
|
9744
9739
|
});
|
|
9745
9740
|
};
|
|
9746
|
-
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$
|
|
9747
|
-
ComboboxOptionSkeleton.className = CLASSNAME$
|
|
9741
|
+
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$15;
|
|
9742
|
+
ComboboxOptionSkeleton.className = CLASSNAME$14;
|
|
9748
9743
|
|
|
9749
|
-
const COMPONENT_NAME$
|
|
9744
|
+
const COMPONENT_NAME$14 = 'ComboboxPopover';
|
|
9750
9745
|
|
|
9751
9746
|
/**
|
|
9752
9747
|
* Component default class name.
|
|
9753
9748
|
*/
|
|
9754
|
-
const CLASSNAME$
|
|
9749
|
+
const CLASSNAME$13 = 'lumx-combobox-popover';
|
|
9755
9750
|
const {
|
|
9756
|
-
block: block$
|
|
9751
|
+
block: block$Q,
|
|
9757
9752
|
element: element$E
|
|
9758
|
-
} = bem(CLASSNAME$
|
|
9753
|
+
} = bem(CLASSNAME$13);
|
|
9759
9754
|
|
|
9760
9755
|
/**
|
|
9761
9756
|
* Defines the props for the core ComboboxPopover template.
|
|
@@ -9796,7 +9791,7 @@ const ComboboxPopover$1 = (props, {
|
|
|
9796
9791
|
...forwardedProps,
|
|
9797
9792
|
placement: placement,
|
|
9798
9793
|
fitToAnchorWidth: fitToAnchorWidth,
|
|
9799
|
-
className: block$
|
|
9794
|
+
className: block$Q([className]),
|
|
9800
9795
|
anchorRef: anchorRef,
|
|
9801
9796
|
isOpen: isOpen,
|
|
9802
9797
|
onClose: handleClose,
|
|
@@ -9818,15 +9813,15 @@ const ComboboxPopover$1 = (props, {
|
|
|
9818
9813
|
/**
|
|
9819
9814
|
* Component display name.
|
|
9820
9815
|
*/
|
|
9821
|
-
const COMPONENT_NAME$
|
|
9816
|
+
const COMPONENT_NAME$13 = 'FlexBox';
|
|
9822
9817
|
|
|
9823
9818
|
/**
|
|
9824
9819
|
* Component default class name and class prefix.
|
|
9825
9820
|
*/
|
|
9826
|
-
const CLASSNAME$
|
|
9821
|
+
const CLASSNAME$12 = 'lumx-flex-box';
|
|
9827
9822
|
const {
|
|
9828
|
-
block: block$
|
|
9829
|
-
} = bem(CLASSNAME$
|
|
9823
|
+
block: block$P
|
|
9824
|
+
} = bem(CLASSNAME$12);
|
|
9830
9825
|
|
|
9831
9826
|
/**
|
|
9832
9827
|
* Get FlexBox component props (className computation).
|
|
@@ -9850,7 +9845,7 @@ function getFlexBoxProps(props) {
|
|
|
9850
9845
|
const adjustedOrientation = orientation ?? (wrap || hAlign || vAlign ? Orientation.horizontal : null);
|
|
9851
9846
|
return {
|
|
9852
9847
|
...forwardedProps,
|
|
9853
|
-
className: classnames(className, block$
|
|
9848
|
+
className: classnames(className, block$P({
|
|
9854
9849
|
[`orientation-${adjustedOrientation}`]: Boolean(adjustedOrientation),
|
|
9855
9850
|
[`v-align-${vAlign}`]: Boolean(vAlign),
|
|
9856
9851
|
[`h-align-${hAlign}`]: Boolean(hAlign),
|
|
@@ -9882,8 +9877,8 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
9882
9877
|
children: children
|
|
9883
9878
|
});
|
|
9884
9879
|
});
|
|
9885
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
9886
|
-
FlexBox.className = CLASSNAME$
|
|
9880
|
+
FlexBox.displayName = COMPONENT_NAME$13;
|
|
9881
|
+
FlexBox.className = CLASSNAME$12;
|
|
9887
9882
|
|
|
9888
9883
|
/**
|
|
9889
9884
|
* Props for Popover that can be passed to Combobox.Popover.
|
|
@@ -9921,8 +9916,8 @@ const ComboboxPopover = props => {
|
|
|
9921
9916
|
FlexBox
|
|
9922
9917
|
});
|
|
9923
9918
|
};
|
|
9924
|
-
ComboboxPopover.displayName = COMPONENT_NAME$
|
|
9925
|
-
ComboboxPopover.className = CLASSNAME$
|
|
9919
|
+
ComboboxPopover.displayName = COMPONENT_NAME$14;
|
|
9920
|
+
ComboboxPopover.className = CLASSNAME$13;
|
|
9926
9921
|
|
|
9927
9922
|
/**
|
|
9928
9923
|
* Combobox.Provider component.
|
|
@@ -9967,12 +9962,12 @@ ComboboxProvider.displayName = 'Combobox.Provider';
|
|
|
9967
9962
|
/**
|
|
9968
9963
|
* Component display name.
|
|
9969
9964
|
*/
|
|
9970
|
-
const COMPONENT_NAME$
|
|
9965
|
+
const COMPONENT_NAME$12 = 'ComboboxSection';
|
|
9971
9966
|
|
|
9972
9967
|
/**
|
|
9973
9968
|
* Component default class name and class prefix.
|
|
9974
9969
|
*/
|
|
9975
|
-
const CLASSNAME$
|
|
9970
|
+
const CLASSNAME$11 = 'lumx-combobox-section';
|
|
9976
9971
|
|
|
9977
9972
|
/**
|
|
9978
9973
|
* ComboboxSection core template.
|
|
@@ -9999,7 +9994,7 @@ const ComboboxSection$1 = (props, {
|
|
|
9999
9994
|
...forwardedProps,
|
|
10000
9995
|
hidden: hidden,
|
|
10001
9996
|
"aria-hidden": ariaHidden || undefined,
|
|
10002
|
-
className: !hidden ? classnames(className, CLASSNAME$
|
|
9997
|
+
className: !hidden ? classnames(className, CLASSNAME$11) : undefined,
|
|
10003
9998
|
role: !ariaHidden ? 'none' : undefined,
|
|
10004
9999
|
itemsWrapperProps: {
|
|
10005
10000
|
role: 'group'
|
|
@@ -10011,16 +10006,16 @@ const ComboboxSection$1 = (props, {
|
|
|
10011
10006
|
/**
|
|
10012
10007
|
* Component display name.
|
|
10013
10008
|
*/
|
|
10014
|
-
const COMPONENT_NAME$
|
|
10009
|
+
const COMPONENT_NAME$11 = 'ListSection';
|
|
10015
10010
|
|
|
10016
10011
|
/**
|
|
10017
10012
|
* Component default class name and class prefix.
|
|
10018
10013
|
*/
|
|
10019
|
-
const CLASSNAME
|
|
10014
|
+
const CLASSNAME$10 = 'lumx-list-section';
|
|
10020
10015
|
const {
|
|
10021
|
-
block: block$
|
|
10016
|
+
block: block$O,
|
|
10022
10017
|
element: element$D
|
|
10023
|
-
} = bem(CLASSNAME
|
|
10018
|
+
} = bem(CLASSNAME$10);
|
|
10024
10019
|
|
|
10025
10020
|
/**
|
|
10026
10021
|
* Component default props.
|
|
@@ -10050,7 +10045,7 @@ const ListSection$1 = props => {
|
|
|
10050
10045
|
return /*#__PURE__*/jsxs("li", {
|
|
10051
10046
|
ref: ref,
|
|
10052
10047
|
...forwardedProps,
|
|
10053
|
-
className: classnames(className, block$
|
|
10048
|
+
className: classnames(className, block$O()),
|
|
10054
10049
|
children: [hasHeader && /*#__PURE__*/jsxs(Text, {
|
|
10055
10050
|
as: "p",
|
|
10056
10051
|
typography: "overline",
|
|
@@ -10067,8 +10062,8 @@ const ListSection$1 = props => {
|
|
|
10067
10062
|
})]
|
|
10068
10063
|
});
|
|
10069
10064
|
};
|
|
10070
|
-
ListSection$1.displayName = COMPONENT_NAME$
|
|
10071
|
-
ListSection$1.className = CLASSNAME
|
|
10065
|
+
ListSection$1.displayName = COMPONENT_NAME$11;
|
|
10066
|
+
ListSection$1.className = CLASSNAME$10;
|
|
10072
10067
|
ListSection$1.defaultProps = DEFAULT_PROPS$U;
|
|
10073
10068
|
|
|
10074
10069
|
/**
|
|
@@ -10091,8 +10086,8 @@ const ListSection = forwardRef((props, ref) => {
|
|
|
10091
10086
|
Text
|
|
10092
10087
|
});
|
|
10093
10088
|
});
|
|
10094
|
-
ListSection.displayName = COMPONENT_NAME$
|
|
10095
|
-
ListSection.className = CLASSNAME
|
|
10089
|
+
ListSection.displayName = COMPONENT_NAME$11;
|
|
10090
|
+
ListSection.className = CLASSNAME$10;
|
|
10096
10091
|
ListSection.defaultProps = DEFAULT_PROPS$U;
|
|
10097
10092
|
|
|
10098
10093
|
/**
|
|
@@ -10141,21 +10136,21 @@ const ComboboxSection = forwardRef((props, ref) => {
|
|
|
10141
10136
|
ListSection
|
|
10142
10137
|
});
|
|
10143
10138
|
});
|
|
10144
|
-
ComboboxSection.displayName = COMPONENT_NAME$
|
|
10145
|
-
ComboboxSection.className = CLASSNAME$
|
|
10139
|
+
ComboboxSection.displayName = COMPONENT_NAME$12;
|
|
10140
|
+
ComboboxSection.className = CLASSNAME$11;
|
|
10146
10141
|
|
|
10147
10142
|
/**
|
|
10148
10143
|
* Component display name.
|
|
10149
10144
|
*/
|
|
10150
|
-
const COMPONENT_NAME
|
|
10145
|
+
const COMPONENT_NAME$10 = 'ComboboxState';
|
|
10151
10146
|
|
|
10152
10147
|
/**
|
|
10153
10148
|
* Component default class name and class prefix.
|
|
10154
10149
|
*/
|
|
10155
|
-
const CLASSNAME
|
|
10150
|
+
const CLASSNAME$$ = 'lumx-combobox-state';
|
|
10156
10151
|
const {
|
|
10157
|
-
block: block$
|
|
10158
|
-
} = bem(CLASSNAME
|
|
10152
|
+
block: block$N
|
|
10153
|
+
} = bem(CLASSNAME$$);
|
|
10159
10154
|
|
|
10160
10155
|
/**
|
|
10161
10156
|
* Defines the props for the core ComboboxState template.
|
|
@@ -10216,7 +10211,7 @@ const ComboboxState$1 = (props, {
|
|
|
10216
10211
|
// the popover's closeMode="hide") and revealing it doesn't trigger announcements.
|
|
10217
10212
|
const renderContent = isOpen;
|
|
10218
10213
|
return /*#__PURE__*/jsxs(GenericBlock, {
|
|
10219
|
-
className: classnames(!show && visuallyHidden(), block$
|
|
10214
|
+
className: classnames(!show && visuallyHidden(), block$N(), padding('regular')),
|
|
10220
10215
|
orientation: "vertical",
|
|
10221
10216
|
...alignProps,
|
|
10222
10217
|
role: "status",
|
|
@@ -10328,16 +10323,16 @@ function partitionMulti(elements, predicates) {
|
|
|
10328
10323
|
/**
|
|
10329
10324
|
* Component display name.
|
|
10330
10325
|
*/
|
|
10331
|
-
const COMPONENT_NAME
|
|
10326
|
+
const COMPONENT_NAME$$ = 'GenericBlock';
|
|
10332
10327
|
|
|
10333
10328
|
/**
|
|
10334
10329
|
* Component default class name and class prefix.
|
|
10335
10330
|
*/
|
|
10336
|
-
const CLASSNAME$
|
|
10331
|
+
const CLASSNAME$_ = 'lumx-generic-block';
|
|
10337
10332
|
const {
|
|
10338
|
-
block: block$
|
|
10333
|
+
block: block$M,
|
|
10339
10334
|
element: element$C
|
|
10340
|
-
} = bem(CLASSNAME$
|
|
10335
|
+
} = bem(CLASSNAME$_);
|
|
10341
10336
|
|
|
10342
10337
|
/**
|
|
10343
10338
|
* Component default props.
|
|
@@ -10376,7 +10371,7 @@ const GenericBlock$1 = props => {
|
|
|
10376
10371
|
} = props;
|
|
10377
10372
|
return /*#__PURE__*/jsxs(FlexBox, {
|
|
10378
10373
|
ref: ref,
|
|
10379
|
-
className: classnames(className, block$
|
|
10374
|
+
className: classnames(className, block$M()),
|
|
10380
10375
|
gap: gap,
|
|
10381
10376
|
orientation: orientation,
|
|
10382
10377
|
...forwardedProps,
|
|
@@ -10479,8 +10474,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
10479
10474
|
}) : undefined
|
|
10480
10475
|
});
|
|
10481
10476
|
});
|
|
10482
|
-
BaseGenericBlock.displayName = COMPONENT_NAME
|
|
10483
|
-
BaseGenericBlock.className = CLASSNAME$
|
|
10477
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$$;
|
|
10478
|
+
BaseGenericBlock.className = CLASSNAME$_;
|
|
10484
10479
|
BaseGenericBlock.defaultProps = DEFAULT_PROPS$T;
|
|
10485
10480
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
10486
10481
|
Figure,
|
|
@@ -10559,18 +10554,18 @@ const ComboboxState = props => {
|
|
|
10559
10554
|
Text
|
|
10560
10555
|
});
|
|
10561
10556
|
};
|
|
10562
|
-
ComboboxState.displayName = COMPONENT_NAME
|
|
10563
|
-
ComboboxState.className = CLASSNAME
|
|
10557
|
+
ComboboxState.displayName = COMPONENT_NAME$10;
|
|
10558
|
+
ComboboxState.className = CLASSNAME$$;
|
|
10564
10559
|
|
|
10565
10560
|
/**
|
|
10566
10561
|
* Component display name.
|
|
10567
10562
|
*/
|
|
10568
|
-
const COMPONENT_NAME$
|
|
10563
|
+
const COMPONENT_NAME$_ = 'ListDivider';
|
|
10569
10564
|
|
|
10570
10565
|
/**
|
|
10571
10566
|
* Component default class name and class prefix.
|
|
10572
10567
|
*/
|
|
10573
|
-
const CLASSNAME$
|
|
10568
|
+
const CLASSNAME$Z = 'lumx-list-divider';
|
|
10574
10569
|
|
|
10575
10570
|
/**
|
|
10576
10571
|
* Component default props.
|
|
@@ -10594,11 +10589,11 @@ const ListDivider$1 = props => {
|
|
|
10594
10589
|
ref: ref,
|
|
10595
10590
|
role: "none",
|
|
10596
10591
|
...forwardedProps,
|
|
10597
|
-
className: classnames(className, CLASSNAME$
|
|
10592
|
+
className: classnames(className, CLASSNAME$Z)
|
|
10598
10593
|
});
|
|
10599
10594
|
};
|
|
10600
|
-
ListDivider$1.displayName = COMPONENT_NAME$
|
|
10601
|
-
ListDivider$1.className = CLASSNAME$
|
|
10595
|
+
ListDivider$1.displayName = COMPONENT_NAME$_;
|
|
10596
|
+
ListDivider$1.className = CLASSNAME$Z;
|
|
10602
10597
|
ListDivider$1.defaultProps = DEFAULT_PROPS$S;
|
|
10603
10598
|
|
|
10604
10599
|
/**
|
|
@@ -10619,8 +10614,8 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
10619
10614
|
ref
|
|
10620
10615
|
});
|
|
10621
10616
|
});
|
|
10622
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
10623
|
-
ListDivider.className = CLASSNAME$
|
|
10617
|
+
ListDivider.displayName = COMPONENT_NAME$_;
|
|
10618
|
+
ListDivider.className = CLASSNAME$Z;
|
|
10624
10619
|
ListDivider.defaultProps = DEFAULT_PROPS$S;
|
|
10625
10620
|
|
|
10626
10621
|
/**
|
|
@@ -10670,16 +10665,16 @@ const CommentBlockVariant = {
|
|
|
10670
10665
|
/**
|
|
10671
10666
|
* Component display name.
|
|
10672
10667
|
*/
|
|
10673
|
-
const COMPONENT_NAME$
|
|
10668
|
+
const COMPONENT_NAME$Z = 'CommentBlock';
|
|
10674
10669
|
|
|
10675
10670
|
/**
|
|
10676
10671
|
* Component default class name and class prefix.
|
|
10677
10672
|
*/
|
|
10678
|
-
const CLASSNAME$
|
|
10673
|
+
const CLASSNAME$Y = 'lumx-comment-block';
|
|
10679
10674
|
const {
|
|
10680
|
-
block: block$
|
|
10675
|
+
block: block$L,
|
|
10681
10676
|
element: element$B
|
|
10682
|
-
} = classNames.bem(CLASSNAME$
|
|
10677
|
+
} = classNames.bem(CLASSNAME$Y);
|
|
10683
10678
|
|
|
10684
10679
|
/**
|
|
10685
10680
|
* Component default props.
|
|
@@ -10720,7 +10715,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10720
10715
|
const hasChildren = Children.count(children) > 0;
|
|
10721
10716
|
return /*#__PURE__*/jsxs("div", {
|
|
10722
10717
|
ref: ref,
|
|
10723
|
-
className: classNames.join(className, block$
|
|
10718
|
+
className: classNames.join(className, block$L({
|
|
10724
10719
|
'has-children': hasChildren && isOpen,
|
|
10725
10720
|
'has-indented-children': hasChildren && variant === CommentBlockVariant.indented,
|
|
10726
10721
|
'has-linear-children': hasChildren && variant === CommentBlockVariant.linear,
|
|
@@ -10781,8 +10776,8 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10781
10776
|
})]
|
|
10782
10777
|
});
|
|
10783
10778
|
});
|
|
10784
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
10785
|
-
CommentBlock.className = CLASSNAME$
|
|
10779
|
+
CommentBlock.displayName = COMPONENT_NAME$Z;
|
|
10780
|
+
CommentBlock.className = CLASSNAME$Y;
|
|
10786
10781
|
CommentBlock.defaultProps = DEFAULT_PROPS$R;
|
|
10787
10782
|
|
|
10788
10783
|
/**
|
|
@@ -10803,12 +10798,12 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
10803
10798
|
/**
|
|
10804
10799
|
* Component display name.
|
|
10805
10800
|
*/
|
|
10806
|
-
const COMPONENT_NAME$
|
|
10801
|
+
const COMPONENT_NAME$Y = 'DatePicker';
|
|
10807
10802
|
|
|
10808
10803
|
/**
|
|
10809
10804
|
* Component default class name and class prefix.
|
|
10810
10805
|
*/
|
|
10811
|
-
const CLASSNAME$
|
|
10806
|
+
const CLASSNAME$X = 'lumx-date-picker';
|
|
10812
10807
|
|
|
10813
10808
|
/** Get first day of week for locale from the browser API */
|
|
10814
10809
|
const getFromBrowser = locale => {
|
|
@@ -10961,7 +10956,10 @@ const getMonthCalendar = (locale, referenceDate = new Date(), rangeMinDate, rang
|
|
|
10961
10956
|
const isSameDay = (date1, date2) => isDateValid(date1) && isDateValid(date2) && date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
10962
10957
|
|
|
10963
10958
|
/**
|
|
10964
|
-
* Get current browser locale.
|
|
10959
|
+
* Get current browser locale (BCP-47 string).
|
|
10960
|
+
*
|
|
10961
|
+
* Reads `navigator.languages[0]` (the user's preferred language) with a
|
|
10962
|
+
* fallback to `navigator.language`.
|
|
10965
10963
|
*/
|
|
10966
10964
|
const getCurrentLocale = () => navigator.languages?.[0] || navigator.language;
|
|
10967
10965
|
|
|
@@ -11028,7 +11026,7 @@ function formatDayNumber(locale, date) {
|
|
|
11028
11026
|
|
|
11029
11027
|
const {
|
|
11030
11028
|
element: element$A
|
|
11031
|
-
} = classNames.bem(CLASSNAME$
|
|
11029
|
+
} = classNames.bem(CLASSNAME$X);
|
|
11032
11030
|
|
|
11033
11031
|
/**
|
|
11034
11032
|
* Defines the props of the component.
|
|
@@ -11037,7 +11035,7 @@ const {
|
|
|
11037
11035
|
/**
|
|
11038
11036
|
* Component display name.
|
|
11039
11037
|
*/
|
|
11040
|
-
const COMPONENT_NAME$
|
|
11038
|
+
const COMPONENT_NAME$X = 'DatePickerControlled';
|
|
11041
11039
|
|
|
11042
11040
|
/**
|
|
11043
11041
|
* DatePickerControlled component.
|
|
@@ -11122,7 +11120,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11122
11120
|
const yearLabel = getYearDisplayName(locale);
|
|
11123
11121
|
return /*#__PURE__*/jsxs("div", {
|
|
11124
11122
|
ref: ref,
|
|
11125
|
-
className: `${CLASSNAME$
|
|
11123
|
+
className: `${CLASSNAME$X}`,
|
|
11126
11124
|
style: style,
|
|
11127
11125
|
children: [/*#__PURE__*/jsx(Toolbar, {
|
|
11128
11126
|
className: element$A('toolbar'),
|
|
@@ -11227,8 +11225,8 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11227
11225
|
})]
|
|
11228
11226
|
});
|
|
11229
11227
|
});
|
|
11230
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
11231
|
-
DatePickerControlled.className = CLASSNAME$
|
|
11228
|
+
DatePickerControlled.displayName = COMPONENT_NAME$X;
|
|
11229
|
+
DatePickerControlled.className = CLASSNAME$X;
|
|
11232
11230
|
|
|
11233
11231
|
/**
|
|
11234
11232
|
* DatePicker component.
|
|
@@ -11270,8 +11268,8 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
11270
11268
|
onMonthChange: setSelectedMonth
|
|
11271
11269
|
});
|
|
11272
11270
|
});
|
|
11273
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
11274
|
-
DatePicker.className = CLASSNAME$
|
|
11271
|
+
DatePicker.displayName = COMPONENT_NAME$Y;
|
|
11272
|
+
DatePicker.className = CLASSNAME$X;
|
|
11275
11273
|
|
|
11276
11274
|
const useBooleanState = defaultValue => {
|
|
11277
11275
|
const [booleanValue, setBoolean] = useState(defaultValue);
|
|
@@ -11284,7 +11282,7 @@ const useBooleanState = defaultValue => {
|
|
|
11284
11282
|
/**
|
|
11285
11283
|
* Component display name.
|
|
11286
11284
|
*/
|
|
11287
|
-
const COMPONENT_NAME$
|
|
11285
|
+
const COMPONENT_NAME$W = 'DatePickerField';
|
|
11288
11286
|
|
|
11289
11287
|
/**
|
|
11290
11288
|
* DatePickerField component.
|
|
@@ -11373,7 +11371,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
11373
11371
|
}) : null]
|
|
11374
11372
|
});
|
|
11375
11373
|
});
|
|
11376
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
11374
|
+
DatePickerField.displayName = COMPONENT_NAME$W;
|
|
11377
11375
|
|
|
11378
11376
|
/**
|
|
11379
11377
|
* Convenient hook to create interaction observers.
|
|
@@ -11669,16 +11667,16 @@ const useTransitionVisibility = (ref, isComponentVisible, timeout, onVisibilityC
|
|
|
11669
11667
|
/**
|
|
11670
11668
|
* Component display name.
|
|
11671
11669
|
*/
|
|
11672
|
-
const COMPONENT_NAME$
|
|
11670
|
+
const COMPONENT_NAME$V = 'Dialog';
|
|
11673
11671
|
|
|
11674
11672
|
/**
|
|
11675
11673
|
* Component default class name and class prefix.
|
|
11676
11674
|
*/
|
|
11677
|
-
const CLASSNAME$
|
|
11675
|
+
const CLASSNAME$W = 'lumx-dialog';
|
|
11678
11676
|
const {
|
|
11679
|
-
block: block$
|
|
11677
|
+
block: block$K,
|
|
11680
11678
|
element: element$z
|
|
11681
|
-
} = bem(CLASSNAME$
|
|
11679
|
+
} = bem(CLASSNAME$W);
|
|
11682
11680
|
|
|
11683
11681
|
/**
|
|
11684
11682
|
* Component default props.
|
|
@@ -11734,7 +11732,7 @@ const Dialog$1 = props => {
|
|
|
11734
11732
|
children: /*#__PURE__*/jsxs("div", {
|
|
11735
11733
|
ref: ref,
|
|
11736
11734
|
...forwardedProps,
|
|
11737
|
-
className: classnames(className, block$
|
|
11735
|
+
className: classnames(className, block$K({
|
|
11738
11736
|
'is-hidden': !isOpen,
|
|
11739
11737
|
'is-loading': isLoading,
|
|
11740
11738
|
'is-shown': isOpen || isVisible,
|
|
@@ -11824,7 +11822,7 @@ const DEFAULT_PROPS$P = {
|
|
|
11824
11822
|
* @return React element.
|
|
11825
11823
|
*/
|
|
11826
11824
|
const Dialog = forwardRef((props, ref) => {
|
|
11827
|
-
if (!DOCUMENT
|
|
11825
|
+
if (!DOCUMENT) {
|
|
11828
11826
|
// Can't render in SSR.
|
|
11829
11827
|
return null;
|
|
11830
11828
|
}
|
|
@@ -11951,22 +11949,22 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
11951
11949
|
...forwardedProps
|
|
11952
11950
|
}) : null;
|
|
11953
11951
|
});
|
|
11954
|
-
Dialog.displayName = COMPONENT_NAME$
|
|
11955
|
-
Dialog.className = CLASSNAME$
|
|
11952
|
+
Dialog.displayName = COMPONENT_NAME$V;
|
|
11953
|
+
Dialog.className = CLASSNAME$W;
|
|
11956
11954
|
Dialog.defaultProps = DEFAULT_PROPS$P;
|
|
11957
11955
|
|
|
11958
11956
|
/**
|
|
11959
11957
|
* Component display name.
|
|
11960
11958
|
*/
|
|
11961
|
-
const COMPONENT_NAME$
|
|
11959
|
+
const COMPONENT_NAME$U = 'Divider';
|
|
11962
11960
|
|
|
11963
11961
|
/**
|
|
11964
11962
|
* Component default class name and class prefix.
|
|
11965
11963
|
*/
|
|
11966
|
-
const CLASSNAME$
|
|
11964
|
+
const CLASSNAME$V = 'lumx-divider';
|
|
11967
11965
|
const {
|
|
11968
|
-
block: block$
|
|
11969
|
-
} = bem(CLASSNAME$
|
|
11966
|
+
block: block$J
|
|
11967
|
+
} = bem(CLASSNAME$V);
|
|
11970
11968
|
|
|
11971
11969
|
/**
|
|
11972
11970
|
* Divider component.
|
|
@@ -11984,7 +11982,7 @@ const Divider$1 = props => {
|
|
|
11984
11982
|
return /*#__PURE__*/jsx("hr", {
|
|
11985
11983
|
ref: ref,
|
|
11986
11984
|
...forwardedProps,
|
|
11987
|
-
className: classnames(className, block$
|
|
11985
|
+
className: classnames(className, block$J({
|
|
11988
11986
|
[`theme-${theme}`]: Boolean(theme)
|
|
11989
11987
|
}))
|
|
11990
11988
|
});
|
|
@@ -12018,22 +12016,22 @@ const Divider = forwardRef((props, ref) => {
|
|
|
12018
12016
|
...otherProps
|
|
12019
12017
|
});
|
|
12020
12018
|
});
|
|
12021
|
-
Divider.displayName = COMPONENT_NAME$
|
|
12022
|
-
Divider.className = CLASSNAME$
|
|
12019
|
+
Divider.displayName = COMPONENT_NAME$U;
|
|
12020
|
+
Divider.className = CLASSNAME$V;
|
|
12023
12021
|
Divider.defaultProps = DEFAULT_PROPS$O;
|
|
12024
12022
|
|
|
12025
12023
|
/**
|
|
12026
12024
|
* Component display name.
|
|
12027
12025
|
*/
|
|
12028
|
-
const COMPONENT_NAME$
|
|
12026
|
+
const COMPONENT_NAME$T = 'DragHandle';
|
|
12029
12027
|
|
|
12030
12028
|
/**
|
|
12031
12029
|
* Component default class name and class prefix.
|
|
12032
12030
|
*/
|
|
12033
|
-
const CLASSNAME$
|
|
12031
|
+
const CLASSNAME$U = 'lumx-drag-handle';
|
|
12034
12032
|
const {
|
|
12035
|
-
block: block$
|
|
12036
|
-
} = bem(CLASSNAME$
|
|
12033
|
+
block: block$I
|
|
12034
|
+
} = bem(CLASSNAME$U);
|
|
12037
12035
|
|
|
12038
12036
|
/**
|
|
12039
12037
|
* DragHandle component.
|
|
@@ -12051,7 +12049,7 @@ const DragHandle$1 = props => {
|
|
|
12051
12049
|
return /*#__PURE__*/jsx("div", {
|
|
12052
12050
|
ref: ref,
|
|
12053
12051
|
...forwardedProps,
|
|
12054
|
-
className: classnames(className, block$
|
|
12052
|
+
className: classnames(className, block$I({
|
|
12055
12053
|
[`theme-${theme}`]: Boolean(theme)
|
|
12056
12054
|
})),
|
|
12057
12055
|
children: Icon$1({
|
|
@@ -12090,8 +12088,8 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
12090
12088
|
...otherProps
|
|
12091
12089
|
});
|
|
12092
12090
|
});
|
|
12093
|
-
DragHandle.displayName = COMPONENT_NAME$
|
|
12094
|
-
DragHandle.className = CLASSNAME$
|
|
12091
|
+
DragHandle.displayName = COMPONENT_NAME$T;
|
|
12092
|
+
DragHandle.className = CLASSNAME$U;
|
|
12095
12093
|
DragHandle.defaultProps = DEFAULT_PROPS$N;
|
|
12096
12094
|
|
|
12097
12095
|
const INITIAL_INDEX = -1;
|
|
@@ -12286,8 +12284,8 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
12286
12284
|
itemPadding: adjustedItemPadding
|
|
12287
12285
|
});
|
|
12288
12286
|
});
|
|
12289
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
12290
|
-
InternalList.className = CLASSNAME$
|
|
12287
|
+
InternalList.displayName = COMPONENT_NAME$1e;
|
|
12288
|
+
InternalList.className = CLASSNAME$1d;
|
|
12291
12289
|
InternalList.defaultProps = DEFAULT_PROPS$Y;
|
|
12292
12290
|
const List = Object.assign(InternalList, {
|
|
12293
12291
|
useKeyboardListNavigation
|
|
@@ -12337,16 +12335,16 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
|
|
|
12337
12335
|
/**
|
|
12338
12336
|
* Component display name.
|
|
12339
12337
|
*/
|
|
12340
|
-
const COMPONENT_NAME$
|
|
12338
|
+
const COMPONENT_NAME$S = 'Dropdown';
|
|
12341
12339
|
|
|
12342
12340
|
/**
|
|
12343
12341
|
* Component default class name and class prefix.
|
|
12344
12342
|
*/
|
|
12345
|
-
const CLASSNAME$
|
|
12343
|
+
const CLASSNAME$T = 'lumx-dropdown';
|
|
12346
12344
|
const {
|
|
12347
|
-
block: block$
|
|
12345
|
+
block: block$H,
|
|
12348
12346
|
element: element$y
|
|
12349
|
-
} = classNames.bem(CLASSNAME$
|
|
12347
|
+
} = classNames.bem(CLASSNAME$T);
|
|
12350
12348
|
|
|
12351
12349
|
/**
|
|
12352
12350
|
* Component default props.
|
|
@@ -12410,7 +12408,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12410
12408
|
...forwardedProps,
|
|
12411
12409
|
focusAnchorOnClose: focusAnchorOnClose,
|
|
12412
12410
|
anchorRef: anchorRef,
|
|
12413
|
-
className: classNames.join(className, block$
|
|
12411
|
+
className: classNames.join(className, block$H()),
|
|
12414
12412
|
elevation: 0,
|
|
12415
12413
|
closeOnClickAway: closeOnClickAway,
|
|
12416
12414
|
closeOnEscape: closeOnEscape,
|
|
@@ -12429,23 +12427,23 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12429
12427
|
})
|
|
12430
12428
|
}) : null;
|
|
12431
12429
|
});
|
|
12432
|
-
Dropdown.displayName = COMPONENT_NAME$
|
|
12433
|
-
Dropdown.className = CLASSNAME$
|
|
12430
|
+
Dropdown.displayName = COMPONENT_NAME$S;
|
|
12431
|
+
Dropdown.className = CLASSNAME$T;
|
|
12434
12432
|
Dropdown.defaultProps = DEFAULT_PROPS$M;
|
|
12435
12433
|
|
|
12436
12434
|
/**
|
|
12437
12435
|
* Component display name.
|
|
12438
12436
|
*/
|
|
12439
|
-
const COMPONENT_NAME$
|
|
12437
|
+
const COMPONENT_NAME$R = 'ExpansionPanel';
|
|
12440
12438
|
|
|
12441
12439
|
/**
|
|
12442
12440
|
* Component default class name and class prefix.
|
|
12443
12441
|
*/
|
|
12444
|
-
const CLASSNAME$
|
|
12442
|
+
const CLASSNAME$S = 'lumx-expansion-panel';
|
|
12445
12443
|
const {
|
|
12446
|
-
block: block$
|
|
12444
|
+
block: block$G,
|
|
12447
12445
|
element: element$x
|
|
12448
|
-
} = bem(CLASSNAME$
|
|
12446
|
+
} = bem(CLASSNAME$S);
|
|
12449
12447
|
|
|
12450
12448
|
/**
|
|
12451
12449
|
* Component default props.
|
|
@@ -12499,7 +12497,7 @@ const ExpansionPanel$1 = props => {
|
|
|
12499
12497
|
}
|
|
12500
12498
|
};
|
|
12501
12499
|
const color = theme === Theme.dark ? ColorPalette.light : ColorPalette.dark;
|
|
12502
|
-
const rootClassName = classnames(className, block$
|
|
12500
|
+
const rootClassName = classnames(className, block$G({
|
|
12503
12501
|
'has-background': hasBackground,
|
|
12504
12502
|
'has-header': Boolean(!isEmpty(headerProps.children)),
|
|
12505
12503
|
'has-header-divider': hasHeaderDivider,
|
|
@@ -12634,17 +12632,17 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
12634
12632
|
...forwardedProps
|
|
12635
12633
|
});
|
|
12636
12634
|
});
|
|
12637
|
-
ExpansionPanel.displayName = COMPONENT_NAME$
|
|
12638
|
-
ExpansionPanel.className = CLASSNAME$
|
|
12635
|
+
ExpansionPanel.displayName = COMPONENT_NAME$R;
|
|
12636
|
+
ExpansionPanel.className = CLASSNAME$S;
|
|
12639
12637
|
ExpansionPanel.defaultProps = DEFAULT_PROPS$L;
|
|
12640
12638
|
|
|
12641
|
-
const COMPONENT_NAME$
|
|
12642
|
-
const CLASSNAME$
|
|
12639
|
+
const COMPONENT_NAME$Q = 'Flag';
|
|
12640
|
+
const CLASSNAME$R = 'lumx-flag';
|
|
12643
12641
|
const DEFAULT_PROPS$K = {};
|
|
12644
12642
|
const {
|
|
12645
|
-
block: block$
|
|
12643
|
+
block: block$F,
|
|
12646
12644
|
element: element$w
|
|
12647
|
-
} = bem(CLASSNAME$
|
|
12645
|
+
} = bem(CLASSNAME$R);
|
|
12648
12646
|
|
|
12649
12647
|
/**
|
|
12650
12648
|
* Flag component.
|
|
@@ -12667,7 +12665,7 @@ const Flag$1 = props => {
|
|
|
12667
12665
|
const isTruncated = !!truncate;
|
|
12668
12666
|
return /*#__PURE__*/jsxs("div", {
|
|
12669
12667
|
...forwardedProps,
|
|
12670
|
-
className: classnames(className, block$
|
|
12668
|
+
className: classnames(className, block$F({
|
|
12671
12669
|
[`color-${flagColor}`]: Boolean(flagColor),
|
|
12672
12670
|
'is-truncated': isTruncated
|
|
12673
12671
|
})),
|
|
@@ -12702,8 +12700,8 @@ const Flag = forwardRef((props, ref) => {
|
|
|
12702
12700
|
Text
|
|
12703
12701
|
});
|
|
12704
12702
|
});
|
|
12705
|
-
Flag.displayName = COMPONENT_NAME$
|
|
12706
|
-
Flag.className = CLASSNAME$
|
|
12703
|
+
Flag.displayName = COMPONENT_NAME$Q;
|
|
12704
|
+
Flag.className = CLASSNAME$R;
|
|
12707
12705
|
Flag.defaultProps = DEFAULT_PROPS$K;
|
|
12708
12706
|
|
|
12709
12707
|
/** The maximum authorized heading level. */
|
|
@@ -12732,12 +12730,12 @@ const defaultContext = {
|
|
|
12732
12730
|
/**
|
|
12733
12731
|
* Component display name.
|
|
12734
12732
|
*/
|
|
12735
|
-
const COMPONENT_NAME$
|
|
12733
|
+
const COMPONENT_NAME$P = 'Heading';
|
|
12736
12734
|
|
|
12737
12735
|
/**
|
|
12738
12736
|
* Component default class name and class prefix.
|
|
12739
12737
|
*/
|
|
12740
|
-
const CLASSNAME$
|
|
12738
|
+
const CLASSNAME$Q = 'lumx-heading';
|
|
12741
12739
|
|
|
12742
12740
|
/**
|
|
12743
12741
|
* Component default props.
|
|
@@ -12762,7 +12760,7 @@ const getHeadingProps = (props, contextHeadingElement) => {
|
|
|
12762
12760
|
return {
|
|
12763
12761
|
...otherProps,
|
|
12764
12762
|
as: computedHeadingElement,
|
|
12765
|
-
className: classnames(className, CLASSNAME$
|
|
12763
|
+
className: classnames(className, CLASSNAME$Q),
|
|
12766
12764
|
typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
|
|
12767
12765
|
};
|
|
12768
12766
|
};
|
|
@@ -12800,8 +12798,8 @@ const Heading = forwardRef((props, ref) => {
|
|
|
12800
12798
|
children: children
|
|
12801
12799
|
});
|
|
12802
12800
|
});
|
|
12803
|
-
Heading.displayName = COMPONENT_NAME$
|
|
12804
|
-
Heading.className = CLASSNAME$
|
|
12801
|
+
Heading.displayName = COMPONENT_NAME$P;
|
|
12802
|
+
Heading.className = CLASSNAME$Q;
|
|
12805
12803
|
Heading.defaultProps = DEFAULT_PROPS$J;
|
|
12806
12804
|
|
|
12807
12805
|
/**
|
|
@@ -12840,15 +12838,15 @@ const HeadingLevelProvider = ({
|
|
|
12840
12838
|
/**
|
|
12841
12839
|
* Component display name.
|
|
12842
12840
|
*/
|
|
12843
|
-
const COMPONENT_NAME$
|
|
12841
|
+
const COMPONENT_NAME$O = 'Grid';
|
|
12844
12842
|
|
|
12845
12843
|
/**
|
|
12846
12844
|
* Component default class name and class prefix.
|
|
12847
12845
|
*/
|
|
12848
|
-
const CLASSNAME$
|
|
12846
|
+
const CLASSNAME$P = 'lumx-grid';
|
|
12849
12847
|
const {
|
|
12850
|
-
block: block$
|
|
12851
|
-
} = classNames.bem(CLASSNAME$
|
|
12848
|
+
block: block$E
|
|
12849
|
+
} = classNames.bem(CLASSNAME$P);
|
|
12852
12850
|
|
|
12853
12851
|
/**
|
|
12854
12852
|
* Component default props.
|
|
@@ -12879,7 +12877,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
12879
12877
|
return /*#__PURE__*/jsx("div", {
|
|
12880
12878
|
ref: ref,
|
|
12881
12879
|
...forwardedProps,
|
|
12882
|
-
className: classNames.join(className, classNames.bem(`${CLASSNAME$
|
|
12880
|
+
className: classNames.join(className, classNames.bem(`${CLASSNAME$P}-container`).block(), block$E({
|
|
12883
12881
|
[`h-align-${hAlign}`]: Boolean(hAlign),
|
|
12884
12882
|
[`v-align-${vAlign}`]: Boolean(vAlign),
|
|
12885
12883
|
[`orientation-${orientation}`]: Boolean(orientation),
|
|
@@ -12889,22 +12887,22 @@ const Grid = forwardRef((props, ref) => {
|
|
|
12889
12887
|
children: children
|
|
12890
12888
|
});
|
|
12891
12889
|
});
|
|
12892
|
-
Grid.displayName = COMPONENT_NAME$
|
|
12893
|
-
Grid.className = CLASSNAME$
|
|
12890
|
+
Grid.displayName = COMPONENT_NAME$O;
|
|
12891
|
+
Grid.className = CLASSNAME$P;
|
|
12894
12892
|
Grid.defaultProps = DEFAULT_PROPS$I;
|
|
12895
12893
|
|
|
12896
12894
|
/**
|
|
12897
12895
|
* Component display name.
|
|
12898
12896
|
*/
|
|
12899
|
-
const COMPONENT_NAME$
|
|
12897
|
+
const COMPONENT_NAME$N = 'GridItem';
|
|
12900
12898
|
|
|
12901
12899
|
/**
|
|
12902
12900
|
* Component default class name and class prefix.
|
|
12903
12901
|
*/
|
|
12904
|
-
const CLASSNAME$
|
|
12902
|
+
const CLASSNAME$O = 'lumx-grid-item';
|
|
12905
12903
|
const {
|
|
12906
|
-
block: block$
|
|
12907
|
-
} = classNames.bem(CLASSNAME$
|
|
12904
|
+
block: block$D
|
|
12905
|
+
} = classNames.bem(CLASSNAME$O);
|
|
12908
12906
|
|
|
12909
12907
|
/**
|
|
12910
12908
|
* GridItem component.
|
|
@@ -12925,7 +12923,7 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
12925
12923
|
return /*#__PURE__*/jsx("div", {
|
|
12926
12924
|
ref: ref,
|
|
12927
12925
|
...forwardedProps,
|
|
12928
|
-
className: classNames.join(className, block$
|
|
12926
|
+
className: classNames.join(className, block$D({
|
|
12929
12927
|
[`width-${width}`]: Boolean(width),
|
|
12930
12928
|
[`order-${order}`]: Boolean(order),
|
|
12931
12929
|
[`align-${align}`]: Boolean(align)
|
|
@@ -12933,18 +12931,18 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
12933
12931
|
children: children
|
|
12934
12932
|
});
|
|
12935
12933
|
});
|
|
12936
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
12937
|
-
GridItem.className = CLASSNAME$
|
|
12934
|
+
GridItem.displayName = COMPONENT_NAME$N;
|
|
12935
|
+
GridItem.className = CLASSNAME$O;
|
|
12938
12936
|
|
|
12939
12937
|
/**
|
|
12940
12938
|
* Component display name.
|
|
12941
12939
|
*/
|
|
12942
|
-
const COMPONENT_NAME$
|
|
12940
|
+
const COMPONENT_NAME$M = 'GridColumn';
|
|
12943
12941
|
|
|
12944
12942
|
/**
|
|
12945
12943
|
* Component default class name and class prefix.
|
|
12946
12944
|
*/
|
|
12947
|
-
const CLASSNAME$
|
|
12945
|
+
const CLASSNAME$N = 'lumx-grid-column';
|
|
12948
12946
|
|
|
12949
12947
|
/**
|
|
12950
12948
|
* Component default props.
|
|
@@ -12974,7 +12972,7 @@ const GridColumn$1 = props => {
|
|
|
12974
12972
|
return /*#__PURE__*/jsx(Component, {
|
|
12975
12973
|
...forwardedProps,
|
|
12976
12974
|
ref: ref,
|
|
12977
|
-
className: classnames(className, CLASSNAME$
|
|
12975
|
+
className: classnames(className, CLASSNAME$N),
|
|
12978
12976
|
style: {
|
|
12979
12977
|
...style,
|
|
12980
12978
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -12984,8 +12982,8 @@ const GridColumn$1 = props => {
|
|
|
12984
12982
|
children: children
|
|
12985
12983
|
});
|
|
12986
12984
|
};
|
|
12987
|
-
GridColumn$1.displayName = COMPONENT_NAME$
|
|
12988
|
-
GridColumn$1.className = CLASSNAME$
|
|
12985
|
+
GridColumn$1.displayName = COMPONENT_NAME$M;
|
|
12986
|
+
GridColumn$1.className = CLASSNAME$N;
|
|
12989
12987
|
GridColumn$1.defaultProps = DEFAULT_PROPS$H;
|
|
12990
12988
|
|
|
12991
12989
|
/**
|
|
@@ -13014,8 +13012,8 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
13014
13012
|
...props
|
|
13015
13013
|
});
|
|
13016
13014
|
});
|
|
13017
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
13018
|
-
GridColumn.className = CLASSNAME$
|
|
13015
|
+
GridColumn.displayName = COMPONENT_NAME$M;
|
|
13016
|
+
GridColumn.className = CLASSNAME$N;
|
|
13019
13017
|
GridColumn.defaultProps = DEFAULT_PROPS$G;
|
|
13020
13018
|
|
|
13021
13019
|
/**
|
|
@@ -13037,16 +13035,16 @@ const ImageBlockCaptionPosition = {
|
|
|
13037
13035
|
/**
|
|
13038
13036
|
* Component display name.
|
|
13039
13037
|
*/
|
|
13040
|
-
const COMPONENT_NAME$
|
|
13038
|
+
const COMPONENT_NAME$L = 'ImageBlock';
|
|
13041
13039
|
|
|
13042
13040
|
/**
|
|
13043
13041
|
* Component default class name and class prefix.
|
|
13044
13042
|
*/
|
|
13045
|
-
const CLASSNAME$
|
|
13043
|
+
const CLASSNAME$M = 'lumx-image-block';
|
|
13046
13044
|
const {
|
|
13047
|
-
block: block$
|
|
13045
|
+
block: block$C,
|
|
13048
13046
|
element: element$v
|
|
13049
|
-
} = bem(CLASSNAME$
|
|
13047
|
+
} = bem(CLASSNAME$M);
|
|
13050
13048
|
|
|
13051
13049
|
/**
|
|
13052
13050
|
* Component default props.
|
|
@@ -13089,7 +13087,7 @@ const ImageBlock$1 = props => {
|
|
|
13089
13087
|
return /*#__PURE__*/jsxs("figure", {
|
|
13090
13088
|
ref: ref,
|
|
13091
13089
|
...forwardedProps,
|
|
13092
|
-
className: classnames(className, block$
|
|
13090
|
+
className: classnames(className, block$C({
|
|
13093
13091
|
[`caption-position-${captionPosition}`]: Boolean(captionPosition),
|
|
13094
13092
|
[`align-${align}`]: Boolean(align),
|
|
13095
13093
|
[`size-${size}`]: Boolean(size),
|
|
@@ -13107,7 +13105,7 @@ const ImageBlock$1 = props => {
|
|
|
13107
13105
|
alt: alt || title
|
|
13108
13106
|
}), /*#__PURE__*/jsx(ImageCaption, {
|
|
13109
13107
|
as: "figcaption",
|
|
13110
|
-
baseClassName: CLASSNAME$
|
|
13108
|
+
baseClassName: CLASSNAME$M,
|
|
13111
13109
|
theme: theme,
|
|
13112
13110
|
title: title,
|
|
13113
13111
|
titleProps: titleProps,
|
|
@@ -13238,19 +13236,19 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
13238
13236
|
ImageCaption
|
|
13239
13237
|
});
|
|
13240
13238
|
});
|
|
13241
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
13242
|
-
ImageBlock.className = CLASSNAME$
|
|
13239
|
+
ImageBlock.displayName = COMPONENT_NAME$L;
|
|
13240
|
+
ImageBlock.className = CLASSNAME$M;
|
|
13243
13241
|
ImageBlock.defaultProps = DEFAULT_PROPS$F;
|
|
13244
13242
|
|
|
13245
13243
|
/**
|
|
13246
13244
|
* Component display name.
|
|
13247
13245
|
*/
|
|
13248
|
-
const COMPONENT_NAME$
|
|
13246
|
+
const COMPONENT_NAME$K = 'ImageLightbox';
|
|
13249
13247
|
|
|
13250
13248
|
/**
|
|
13251
13249
|
* Component default class name and class prefix.
|
|
13252
13250
|
*/
|
|
13253
|
-
const CLASSNAME$
|
|
13251
|
+
const CLASSNAME$L = 'lumx-image-lightbox';
|
|
13254
13252
|
|
|
13255
13253
|
/**
|
|
13256
13254
|
* Observe element size (only works if it's size depends on the window size).
|
|
@@ -13496,7 +13494,7 @@ function useAnimateScroll(scrollAreaRef) {
|
|
|
13496
13494
|
|
|
13497
13495
|
const {
|
|
13498
13496
|
element: element$u
|
|
13499
|
-
} = classNames.bem(CLASSNAME$
|
|
13497
|
+
} = classNames.bem(CLASSNAME$L);
|
|
13500
13498
|
/** Internal image slide component for ImageLightbox */
|
|
13501
13499
|
const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
13502
13500
|
const {
|
|
@@ -13588,7 +13586,7 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
13588
13586
|
|
|
13589
13587
|
const {
|
|
13590
13588
|
element: element$t
|
|
13591
|
-
} = classNames.bem(CLASSNAME$
|
|
13589
|
+
} = classNames.bem(CLASSNAME$L);
|
|
13592
13590
|
/** Internal image slideshow component for ImageLightbox */
|
|
13593
13591
|
const ImageSlideshow = ({
|
|
13594
13592
|
activeImageIndex,
|
|
@@ -13828,7 +13826,7 @@ function useImageLightbox(props) {
|
|
|
13828
13826
|
viewTransitionName: {
|
|
13829
13827
|
source: currentImageRef,
|
|
13830
13828
|
target: triggerImageRefs[currentIndex],
|
|
13831
|
-
name: CLASSNAME$
|
|
13829
|
+
name: CLASSNAME$L
|
|
13832
13830
|
}
|
|
13833
13831
|
});
|
|
13834
13832
|
}
|
|
@@ -13880,7 +13878,7 @@ function useImageLightbox(props) {
|
|
|
13880
13878
|
viewTransitionName: {
|
|
13881
13879
|
source: triggerImage,
|
|
13882
13880
|
target: currentImageRef,
|
|
13883
|
-
name: CLASSNAME$
|
|
13881
|
+
name: CLASSNAME$L
|
|
13884
13882
|
}
|
|
13885
13883
|
});
|
|
13886
13884
|
}
|
|
@@ -13934,7 +13932,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
13934
13932
|
}, [onClose]);
|
|
13935
13933
|
return /*#__PURE__*/jsx(Lightbox, {
|
|
13936
13934
|
ref: ref,
|
|
13937
|
-
className: classNames.join(className, CLASSNAME$
|
|
13935
|
+
className: classNames.join(className, CLASSNAME$L),
|
|
13938
13936
|
parentElement: parentElement,
|
|
13939
13937
|
isOpen: isOpen,
|
|
13940
13938
|
onClose: onClose,
|
|
@@ -13963,8 +13961,8 @@ const Inner = forwardRef((props, ref) => {
|
|
|
13963
13961
|
})
|
|
13964
13962
|
});
|
|
13965
13963
|
});
|
|
13966
|
-
Inner.displayName = COMPONENT_NAME$
|
|
13967
|
-
Inner.className = CLASSNAME$
|
|
13964
|
+
Inner.displayName = COMPONENT_NAME$K;
|
|
13965
|
+
Inner.className = CLASSNAME$L;
|
|
13968
13966
|
|
|
13969
13967
|
/**
|
|
13970
13968
|
* ImageLightbox component.
|
|
@@ -13980,16 +13978,16 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
13980
13978
|
/**
|
|
13981
13979
|
* Component display name.
|
|
13982
13980
|
*/
|
|
13983
|
-
const COMPONENT_NAME$
|
|
13981
|
+
const COMPONENT_NAME$J = 'InlineList';
|
|
13984
13982
|
|
|
13985
13983
|
/**
|
|
13986
13984
|
* Component default class name and class prefix.
|
|
13987
13985
|
*/
|
|
13988
|
-
const CLASSNAME$
|
|
13986
|
+
const CLASSNAME$K = 'lumx-inline-list';
|
|
13989
13987
|
const {
|
|
13990
|
-
block: block$
|
|
13988
|
+
block: block$B,
|
|
13991
13989
|
element: element$s
|
|
13992
|
-
} = bem(CLASSNAME$
|
|
13990
|
+
} = bem(CLASSNAME$K);
|
|
13993
13991
|
|
|
13994
13992
|
/**
|
|
13995
13993
|
* Component default props.
|
|
@@ -14019,7 +14017,7 @@ const InlineList$1 = props => {
|
|
|
14019
14017
|
jsx("ul", {
|
|
14020
14018
|
...forwardedProps,
|
|
14021
14019
|
ref: ref,
|
|
14022
|
-
className: classnames(className, block$
|
|
14020
|
+
className: classnames(className, block$B({
|
|
14023
14021
|
wrap: Boolean(wrap)
|
|
14024
14022
|
}), color && font(color, colorVariant), typography$1 && typography(typography$1))
|
|
14025
14023
|
// Lists with removed bullet style can lose their a11y list role on some browsers
|
|
@@ -14041,8 +14039,8 @@ const InlineList$1 = props => {
|
|
|
14041
14039
|
})
|
|
14042
14040
|
);
|
|
14043
14041
|
};
|
|
14044
|
-
InlineList$1.displayName = COMPONENT_NAME$
|
|
14045
|
-
InlineList$1.className = CLASSNAME$
|
|
14042
|
+
InlineList$1.displayName = COMPONENT_NAME$J;
|
|
14043
|
+
InlineList$1.className = CLASSNAME$K;
|
|
14046
14044
|
InlineList$1.defaultProps = DEFAULT_PROPS$E;
|
|
14047
14045
|
|
|
14048
14046
|
/**
|
|
@@ -14067,8 +14065,8 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
14067
14065
|
items: Children.toArray(children)
|
|
14068
14066
|
});
|
|
14069
14067
|
});
|
|
14070
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
14071
|
-
InlineList.className = CLASSNAME$
|
|
14068
|
+
InlineList.displayName = COMPONENT_NAME$J;
|
|
14069
|
+
InlineList.className = CLASSNAME$K;
|
|
14072
14070
|
InlineList.defaultProps = DEFAULT_PROPS$E;
|
|
14073
14071
|
|
|
14074
14072
|
/**
|
|
@@ -14112,16 +14110,16 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
|
|
|
14112
14110
|
/**
|
|
14113
14111
|
* Component display name.
|
|
14114
14112
|
*/
|
|
14115
|
-
const COMPONENT_NAME$
|
|
14113
|
+
const COMPONENT_NAME$I = 'Lightbox';
|
|
14116
14114
|
|
|
14117
14115
|
/**
|
|
14118
14116
|
* Component default class name and class prefix.
|
|
14119
14117
|
*/
|
|
14120
|
-
const CLASSNAME$
|
|
14118
|
+
const CLASSNAME$J = 'lumx-lightbox';
|
|
14121
14119
|
const {
|
|
14122
|
-
block: block$
|
|
14120
|
+
block: block$A,
|
|
14123
14121
|
element: element$r
|
|
14124
|
-
} = bem(CLASSNAME$
|
|
14122
|
+
} = bem(CLASSNAME$J);
|
|
14125
14123
|
|
|
14126
14124
|
/**
|
|
14127
14125
|
* Lightbox component.
|
|
@@ -14168,7 +14166,7 @@ const Lightbox$1 = props => {
|
|
|
14168
14166
|
"aria-modal": "true",
|
|
14169
14167
|
role: "dialog",
|
|
14170
14168
|
tabIndex: -1,
|
|
14171
|
-
className: classnames(className, block$
|
|
14169
|
+
className: classnames(className, block$A({
|
|
14172
14170
|
'is-hidden': !isOpen,
|
|
14173
14171
|
'is-shown': isOpen || isVisible,
|
|
14174
14172
|
[`theme-${theme}`]: Boolean(theme)
|
|
@@ -14233,7 +14231,7 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
14233
14231
|
zIndex,
|
|
14234
14232
|
...forwardedProps
|
|
14235
14233
|
} = props;
|
|
14236
|
-
if (!DOCUMENT
|
|
14234
|
+
if (!DOCUMENT) {
|
|
14237
14235
|
// Can't render in SSR.
|
|
14238
14236
|
return null;
|
|
14239
14237
|
}
|
|
@@ -14305,8 +14303,8 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
14305
14303
|
...forwardedProps
|
|
14306
14304
|
});
|
|
14307
14305
|
});
|
|
14308
|
-
Lightbox.displayName = COMPONENT_NAME$
|
|
14309
|
-
Lightbox.className = CLASSNAME$
|
|
14306
|
+
Lightbox.displayName = COMPONENT_NAME$I;
|
|
14307
|
+
Lightbox.className = CLASSNAME$J;
|
|
14310
14308
|
|
|
14311
14309
|
/**
|
|
14312
14310
|
* Defines the props of the component.
|
|
@@ -14315,15 +14313,15 @@ Lightbox.className = CLASSNAME$I;
|
|
|
14315
14313
|
/**
|
|
14316
14314
|
* Component display name.
|
|
14317
14315
|
*/
|
|
14318
|
-
const COMPONENT_NAME$
|
|
14316
|
+
const COMPONENT_NAME$H = 'Link';
|
|
14319
14317
|
|
|
14320
14318
|
/**
|
|
14321
14319
|
* Component default class name and class prefix.
|
|
14322
14320
|
*/
|
|
14323
|
-
const CLASSNAME$
|
|
14321
|
+
const CLASSNAME$I = 'lumx-link';
|
|
14324
14322
|
const {
|
|
14325
|
-
block: block$
|
|
14326
|
-
} = bem(CLASSNAME$
|
|
14323
|
+
block: block$z
|
|
14324
|
+
} = bem(CLASSNAME$I);
|
|
14327
14325
|
|
|
14328
14326
|
/**
|
|
14329
14327
|
* Link component.
|
|
@@ -14352,7 +14350,7 @@ const Link$1 = props => {
|
|
|
14352
14350
|
...forwardedProps,
|
|
14353
14351
|
handleClick,
|
|
14354
14352
|
children,
|
|
14355
|
-
className: classnames(className, block$
|
|
14353
|
+
className: classnames(className, block$z({
|
|
14356
14354
|
[`color-${color}`]: Boolean(color),
|
|
14357
14355
|
[`color-variant-${colorVariant}`]: Boolean(colorVariant),
|
|
14358
14356
|
'has-typography': !!typography$1
|
|
@@ -14362,7 +14360,7 @@ const Link$1 = props => {
|
|
|
14362
14360
|
|
|
14363
14361
|
const {
|
|
14364
14362
|
element: element$q
|
|
14365
|
-
} = classNames.bem(CLASSNAME$
|
|
14363
|
+
} = classNames.bem(CLASSNAME$I);
|
|
14366
14364
|
|
|
14367
14365
|
/**
|
|
14368
14366
|
* Defines the props of the component.
|
|
@@ -14408,22 +14406,22 @@ const Link = forwardRef((props, ref) => {
|
|
|
14408
14406
|
}))
|
|
14409
14407
|
});
|
|
14410
14408
|
});
|
|
14411
|
-
Link.displayName = COMPONENT_NAME$
|
|
14412
|
-
Link.className = CLASSNAME$
|
|
14409
|
+
Link.displayName = COMPONENT_NAME$H;
|
|
14410
|
+
Link.className = CLASSNAME$I;
|
|
14413
14411
|
|
|
14414
14412
|
/**
|
|
14415
14413
|
* Component display name.
|
|
14416
14414
|
*/
|
|
14417
|
-
const COMPONENT_NAME$
|
|
14415
|
+
const COMPONENT_NAME$G = 'LinkPreview';
|
|
14418
14416
|
|
|
14419
14417
|
/**
|
|
14420
14418
|
* Component default class name and class prefix.
|
|
14421
14419
|
*/
|
|
14422
|
-
const CLASSNAME$
|
|
14420
|
+
const CLASSNAME$H = 'lumx-link-preview';
|
|
14423
14421
|
const {
|
|
14424
|
-
block: block$
|
|
14422
|
+
block: block$y,
|
|
14425
14423
|
element: element$p
|
|
14426
|
-
} = bem(CLASSNAME$
|
|
14424
|
+
} = bem(CLASSNAME$H);
|
|
14427
14425
|
|
|
14428
14426
|
/**
|
|
14429
14427
|
* Component default props.
|
|
@@ -14462,7 +14460,7 @@ const LinkPreview$1 = props => {
|
|
|
14462
14460
|
return /*#__PURE__*/jsx("article", {
|
|
14463
14461
|
ref: ref,
|
|
14464
14462
|
...forwardedProps,
|
|
14465
|
-
className: classnames(className, block$
|
|
14463
|
+
className: classnames(className, block$y({
|
|
14466
14464
|
[`size-${adjustedSize}`]: Boolean(adjustedSize),
|
|
14467
14465
|
[`theme-${theme}`]: Boolean(theme)
|
|
14468
14466
|
})),
|
|
@@ -14549,8 +14547,8 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
14549
14547
|
...forwardedProps
|
|
14550
14548
|
});
|
|
14551
14549
|
});
|
|
14552
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
14553
|
-
LinkPreview.className = CLASSNAME$
|
|
14550
|
+
LinkPreview.displayName = COMPONENT_NAME$G;
|
|
14551
|
+
LinkPreview.className = CLASSNAME$H;
|
|
14554
14552
|
LinkPreview.defaultProps = DEFAULT_PROPS$D;
|
|
14555
14553
|
|
|
14556
14554
|
/**
|
|
@@ -14582,8 +14580,8 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
14582
14580
|
children
|
|
14583
14581
|
});
|
|
14584
14582
|
}), {
|
|
14585
|
-
displayName: COMPONENT_NAME$
|
|
14586
|
-
className: CLASSNAME$
|
|
14583
|
+
displayName: COMPONENT_NAME$1b,
|
|
14584
|
+
className: CLASSNAME$1a,
|
|
14587
14585
|
defaultProps: DEFAULT_PROPS$W
|
|
14588
14586
|
});
|
|
14589
14587
|
|
|
@@ -14622,8 +14620,8 @@ const _ListItem = forwardRef((props, ref) => {
|
|
|
14622
14620
|
handleClick: onItemSelected || props.onClick ? handleClick : undefined
|
|
14623
14621
|
});
|
|
14624
14622
|
});
|
|
14625
|
-
_ListItem.displayName = COMPONENT_NAME$
|
|
14626
|
-
_ListItem.className = CLASSNAME$
|
|
14623
|
+
_ListItem.displayName = COMPONENT_NAME$1c;
|
|
14624
|
+
_ListItem.className = CLASSNAME$1b;
|
|
14627
14625
|
_ListItem.defaultProps = DEFAULT_PROPS$X;
|
|
14628
14626
|
|
|
14629
14627
|
/**
|
|
@@ -14637,12 +14635,12 @@ const ListItem = Object.assign(_ListItem, {
|
|
|
14637
14635
|
/**
|
|
14638
14636
|
* Component display name.
|
|
14639
14637
|
*/
|
|
14640
|
-
const COMPONENT_NAME$
|
|
14638
|
+
const COMPONENT_NAME$F = 'ListSubheader';
|
|
14641
14639
|
|
|
14642
14640
|
/**
|
|
14643
14641
|
* Component default class name and class prefix.
|
|
14644
14642
|
*/
|
|
14645
|
-
const CLASSNAME$
|
|
14643
|
+
const CLASSNAME$G = 'lumx-list-subheader';
|
|
14646
14644
|
|
|
14647
14645
|
/**
|
|
14648
14646
|
* ListSubheader component.
|
|
@@ -14661,26 +14659,26 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
14661
14659
|
return /*#__PURE__*/jsx("li", {
|
|
14662
14660
|
ref: ref,
|
|
14663
14661
|
...forwardedProps,
|
|
14664
|
-
className: classNames.join(className, CLASSNAME$
|
|
14662
|
+
className: classNames.join(className, CLASSNAME$G),
|
|
14665
14663
|
children: children
|
|
14666
14664
|
});
|
|
14667
14665
|
});
|
|
14668
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
14669
|
-
ListSubheader.className = CLASSNAME$
|
|
14666
|
+
ListSubheader.displayName = COMPONENT_NAME$F;
|
|
14667
|
+
ListSubheader.className = CLASSNAME$G;
|
|
14670
14668
|
|
|
14671
14669
|
/**
|
|
14672
14670
|
* Component display name.
|
|
14673
14671
|
*/
|
|
14674
|
-
const COMPONENT_NAME$
|
|
14672
|
+
const COMPONENT_NAME$E = 'Message';
|
|
14675
14673
|
|
|
14676
14674
|
/**
|
|
14677
14675
|
* Component default class name and class prefix.
|
|
14678
14676
|
*/
|
|
14679
|
-
const CLASSNAME$
|
|
14677
|
+
const CLASSNAME$F = 'lumx-message';
|
|
14680
14678
|
const {
|
|
14681
|
-
block: block$
|
|
14679
|
+
block: block$x,
|
|
14682
14680
|
element: element$o
|
|
14683
|
-
} = bem(CLASSNAME$
|
|
14681
|
+
} = bem(CLASSNAME$F);
|
|
14684
14682
|
|
|
14685
14683
|
/**
|
|
14686
14684
|
* Associative map from message kind to color and icon.
|
|
@@ -14733,7 +14731,7 @@ const Message$1 = props => {
|
|
|
14733
14731
|
return /*#__PURE__*/jsxs("div", {
|
|
14734
14732
|
...forwardedProps,
|
|
14735
14733
|
ref: ref,
|
|
14736
|
-
className: classnames(className, block$
|
|
14734
|
+
className: classnames(className, block$x({
|
|
14737
14735
|
[`color-${color}`]: Boolean(color),
|
|
14738
14736
|
'has-background': hasBackground
|
|
14739
14737
|
})),
|
|
@@ -14754,8 +14752,8 @@ const Message$1 = props => {
|
|
|
14754
14752
|
})]
|
|
14755
14753
|
});
|
|
14756
14754
|
};
|
|
14757
|
-
Message$1.displayName = COMPONENT_NAME$
|
|
14758
|
-
Message$1.className = CLASSNAME$
|
|
14755
|
+
Message$1.displayName = COMPONENT_NAME$E;
|
|
14756
|
+
Message$1.className = CLASSNAME$F;
|
|
14759
14757
|
|
|
14760
14758
|
/**
|
|
14761
14759
|
* Message component.
|
|
@@ -14770,22 +14768,22 @@ const Message = forwardRef((props, ref) => {
|
|
|
14770
14768
|
ref
|
|
14771
14769
|
});
|
|
14772
14770
|
});
|
|
14773
|
-
Message.displayName = COMPONENT_NAME$
|
|
14774
|
-
Message.className = CLASSNAME$
|
|
14771
|
+
Message.displayName = COMPONENT_NAME$E;
|
|
14772
|
+
Message.className = CLASSNAME$F;
|
|
14775
14773
|
|
|
14776
14774
|
/**
|
|
14777
14775
|
* Component display name.
|
|
14778
14776
|
*/
|
|
14779
|
-
const COMPONENT_NAME$
|
|
14777
|
+
const COMPONENT_NAME$D = 'Mosaic';
|
|
14780
14778
|
|
|
14781
14779
|
/**
|
|
14782
14780
|
* Component default class name and class prefix.
|
|
14783
14781
|
*/
|
|
14784
|
-
const CLASSNAME$
|
|
14782
|
+
const CLASSNAME$E = 'lumx-mosaic';
|
|
14785
14783
|
const {
|
|
14786
|
-
block: block$
|
|
14784
|
+
block: block$w,
|
|
14787
14785
|
element: element$n
|
|
14788
|
-
} = bem(CLASSNAME$
|
|
14786
|
+
} = bem(CLASSNAME$E);
|
|
14789
14787
|
|
|
14790
14788
|
/**
|
|
14791
14789
|
* Component default props.
|
|
@@ -14819,7 +14817,7 @@ const Mosaic$1 = props => {
|
|
|
14819
14817
|
return /*#__PURE__*/jsx("div", {
|
|
14820
14818
|
ref: ref,
|
|
14821
14819
|
...forwardedProps,
|
|
14822
|
-
className: classnames(className, block$
|
|
14820
|
+
className: classnames(className, block$w({
|
|
14823
14821
|
[`theme-${theme}`]: Boolean(theme),
|
|
14824
14822
|
'has-1-thumbnail': thumbnails?.length === 1,
|
|
14825
14823
|
'has-2-thumbnails': thumbnails?.length === 2,
|
|
@@ -14883,8 +14881,8 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
14883
14881
|
...forwardedProps
|
|
14884
14882
|
});
|
|
14885
14883
|
});
|
|
14886
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
14887
|
-
Mosaic.className = CLASSNAME$
|
|
14884
|
+
Mosaic.displayName = COMPONENT_NAME$D;
|
|
14885
|
+
Mosaic.className = CLASSNAME$E;
|
|
14888
14886
|
Mosaic.defaultProps = DEFAULT_PROPS$C;
|
|
14889
14887
|
|
|
14890
14888
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
@@ -14904,16 +14902,16 @@ const ITEM_CLASSNAME = 'lumx-navigation-item';
|
|
|
14904
14902
|
/**
|
|
14905
14903
|
* Component display name.
|
|
14906
14904
|
*/
|
|
14907
|
-
const COMPONENT_NAME$
|
|
14905
|
+
const COMPONENT_NAME$C = 'NavigationSection';
|
|
14908
14906
|
|
|
14909
14907
|
/**
|
|
14910
14908
|
* Component default class name and class prefix.
|
|
14911
14909
|
*/
|
|
14912
|
-
const CLASSNAME$
|
|
14910
|
+
const CLASSNAME$D = 'lumx-navigation-section';
|
|
14913
14911
|
const {
|
|
14914
14912
|
block: sectionBlock,
|
|
14915
14913
|
element: sectionElement
|
|
14916
|
-
} = classNames.bem(CLASSNAME$
|
|
14914
|
+
} = classNames.bem(CLASSNAME$D);
|
|
14917
14915
|
const {
|
|
14918
14916
|
block: itemBlock,
|
|
14919
14917
|
element: itemElement
|
|
@@ -14999,11 +14997,11 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
14999
14997
|
}))]
|
|
15000
14998
|
});
|
|
15001
14999
|
});
|
|
15002
|
-
NavigationSection.displayName = COMPONENT_NAME$
|
|
15003
|
-
NavigationSection.className = CLASSNAME$
|
|
15000
|
+
NavigationSection.displayName = COMPONENT_NAME$C;
|
|
15001
|
+
NavigationSection.className = CLASSNAME$D;
|
|
15004
15002
|
|
|
15005
15003
|
const {
|
|
15006
|
-
block: block$
|
|
15004
|
+
block: block$v,
|
|
15007
15005
|
element: element$m
|
|
15008
15006
|
} = classNames.bem(ITEM_CLASSNAME);
|
|
15009
15007
|
|
|
@@ -15028,7 +15026,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
15028
15026
|
labelRef
|
|
15029
15027
|
} = useOverflowTooltipLabel(label);
|
|
15030
15028
|
return /*#__PURE__*/jsx("li", {
|
|
15031
|
-
className: classNames.join(className, block$
|
|
15029
|
+
className: classNames.join(className, block$v({
|
|
15032
15030
|
[`theme-${theme}`]: Boolean(theme)
|
|
15033
15031
|
})),
|
|
15034
15032
|
children: /*#__PURE__*/jsx(Tooltip, {
|
|
@@ -15069,16 +15067,16 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
15069
15067
|
/**
|
|
15070
15068
|
* Component display name.
|
|
15071
15069
|
*/
|
|
15072
|
-
const COMPONENT_NAME$
|
|
15070
|
+
const COMPONENT_NAME$B = 'Navigation';
|
|
15073
15071
|
|
|
15074
15072
|
/**
|
|
15075
15073
|
* Component default class name and class prefix.
|
|
15076
15074
|
*/
|
|
15077
|
-
const CLASSNAME$
|
|
15075
|
+
const CLASSNAME$C = 'lumx-navigation';
|
|
15078
15076
|
const {
|
|
15079
|
-
block: block$
|
|
15077
|
+
block: block$u,
|
|
15080
15078
|
element: element$l
|
|
15081
|
-
} = classNames.bem(CLASSNAME$
|
|
15079
|
+
} = classNames.bem(CLASSNAME$C);
|
|
15082
15080
|
|
|
15083
15081
|
/**
|
|
15084
15082
|
* Component default props
|
|
@@ -15098,7 +15096,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
15098
15096
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
15099
15097
|
value: theme,
|
|
15100
15098
|
children: /*#__PURE__*/jsx("nav", {
|
|
15101
|
-
className: classNames.join(className, block$
|
|
15099
|
+
className: classNames.join(className, block$u({
|
|
15102
15100
|
[`theme-${theme}`]: Boolean(theme),
|
|
15103
15101
|
[`orientation-${orientation}`]: Boolean(orientation)
|
|
15104
15102
|
})),
|
|
@@ -15116,8 +15114,8 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
15116
15114
|
})
|
|
15117
15115
|
});
|
|
15118
15116
|
});
|
|
15119
|
-
Navigation.displayName = COMPONENT_NAME$
|
|
15120
|
-
Navigation.className = CLASSNAME$
|
|
15117
|
+
Navigation.displayName = COMPONENT_NAME$B;
|
|
15118
|
+
Navigation.className = CLASSNAME$C;
|
|
15121
15119
|
Navigation.defaultProps = DEFAULT_PROPS$B;
|
|
15122
15120
|
|
|
15123
15121
|
// Sub components
|
|
@@ -15149,16 +15147,16 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
15149
15147
|
/**
|
|
15150
15148
|
* Component display name.
|
|
15151
15149
|
*/
|
|
15152
|
-
const COMPONENT_NAME$
|
|
15150
|
+
const COMPONENT_NAME$A = 'Notification';
|
|
15153
15151
|
|
|
15154
15152
|
/**
|
|
15155
15153
|
* Component default class name and class prefix.
|
|
15156
15154
|
*/
|
|
15157
|
-
const CLASSNAME$
|
|
15155
|
+
const CLASSNAME$B = 'lumx-notification';
|
|
15158
15156
|
const {
|
|
15159
|
-
block: block$
|
|
15157
|
+
block: block$t,
|
|
15160
15158
|
element: element$k
|
|
15161
|
-
} = classNames.bem(CLASSNAME$
|
|
15159
|
+
} = classNames.bem(CLASSNAME$B);
|
|
15162
15160
|
|
|
15163
15161
|
/**
|
|
15164
15162
|
* Component default props.
|
|
@@ -15192,7 +15190,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
15192
15190
|
style,
|
|
15193
15191
|
...forwardedProps
|
|
15194
15192
|
} = props;
|
|
15195
|
-
if (!DOCUMENT
|
|
15193
|
+
if (!DOCUMENT) {
|
|
15196
15194
|
// Can't render in SSR.
|
|
15197
15195
|
return null;
|
|
15198
15196
|
}
|
|
@@ -15218,7 +15216,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
15218
15216
|
ref: mergeRefs(ref, rootRef),
|
|
15219
15217
|
role: "alert",
|
|
15220
15218
|
...forwardedProps,
|
|
15221
|
-
className: classNames.join(className, block$
|
|
15219
|
+
className: classNames.join(className, block$t({
|
|
15222
15220
|
[`color-${color}`]: Boolean(color),
|
|
15223
15221
|
'has-action': hasAction,
|
|
15224
15222
|
'is-hidden': !isOpen
|
|
@@ -15251,8 +15249,8 @@ const Notification = forwardRef((props, ref) => {
|
|
|
15251
15249
|
})
|
|
15252
15250
|
});
|
|
15253
15251
|
});
|
|
15254
|
-
Notification.displayName = COMPONENT_NAME$
|
|
15255
|
-
Notification.className = CLASSNAME$
|
|
15252
|
+
Notification.displayName = COMPONENT_NAME$A;
|
|
15253
|
+
Notification.className = CLASSNAME$B;
|
|
15256
15254
|
Notification.defaultProps = DEFAULT_PROPS$A;
|
|
15257
15255
|
|
|
15258
15256
|
/**
|
|
@@ -15263,12 +15261,12 @@ Notification.defaultProps = DEFAULT_PROPS$A;
|
|
|
15263
15261
|
/**
|
|
15264
15262
|
* Component display name.
|
|
15265
15263
|
*/
|
|
15266
|
-
const COMPONENT_NAME$
|
|
15264
|
+
const COMPONENT_NAME$z = 'PopoverDialog';
|
|
15267
15265
|
|
|
15268
15266
|
/**
|
|
15269
15267
|
* Component default class name and class prefix.
|
|
15270
15268
|
*/
|
|
15271
|
-
const CLASSNAME$
|
|
15269
|
+
const CLASSNAME$A = 'lumx-popover-dialog';
|
|
15272
15270
|
|
|
15273
15271
|
/**
|
|
15274
15272
|
* Component default props.
|
|
@@ -15294,7 +15292,7 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
15294
15292
|
return /*#__PURE__*/jsx(Popover, {
|
|
15295
15293
|
...forwardedProps,
|
|
15296
15294
|
ref: ref,
|
|
15297
|
-
className: classNames.join(className, CLASSNAME$
|
|
15295
|
+
className: classNames.join(className, CLASSNAME$A),
|
|
15298
15296
|
role: "dialog",
|
|
15299
15297
|
"aria-modal": "true"
|
|
15300
15298
|
/**
|
|
@@ -15311,23 +15309,23 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
15311
15309
|
})
|
|
15312
15310
|
});
|
|
15313
15311
|
});
|
|
15314
|
-
PopoverDialog.displayName = COMPONENT_NAME$
|
|
15315
|
-
PopoverDialog.className = CLASSNAME$
|
|
15312
|
+
PopoverDialog.displayName = COMPONENT_NAME$z;
|
|
15313
|
+
PopoverDialog.className = CLASSNAME$A;
|
|
15316
15314
|
PopoverDialog.defaultProps = DEFAULT_PROPS$z;
|
|
15317
15315
|
|
|
15318
15316
|
/**
|
|
15319
15317
|
* Component display name.
|
|
15320
15318
|
*/
|
|
15321
|
-
const COMPONENT_NAME$
|
|
15319
|
+
const COMPONENT_NAME$y = 'PostBlock';
|
|
15322
15320
|
|
|
15323
15321
|
/**
|
|
15324
15322
|
* Component default class name and class prefix.
|
|
15325
15323
|
*/
|
|
15326
|
-
const CLASSNAME$
|
|
15324
|
+
const CLASSNAME$z = 'lumx-post-block';
|
|
15327
15325
|
const {
|
|
15328
|
-
block: block$
|
|
15326
|
+
block: block$s,
|
|
15329
15327
|
element: element$j
|
|
15330
|
-
} = classNames.bem(CLASSNAME$
|
|
15328
|
+
} = classNames.bem(CLASSNAME$z);
|
|
15331
15329
|
|
|
15332
15330
|
/**
|
|
15333
15331
|
* Component default props.
|
|
@@ -15362,7 +15360,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
15362
15360
|
} = props;
|
|
15363
15361
|
return /*#__PURE__*/jsxs("div", {
|
|
15364
15362
|
ref: ref,
|
|
15365
|
-
className: classNames.join(className, block$
|
|
15363
|
+
className: classNames.join(className, block$s({
|
|
15366
15364
|
[`orientation-${orientation}`]: Boolean(orientation),
|
|
15367
15365
|
[`theme-${theme}`]: Boolean(theme)
|
|
15368
15366
|
})),
|
|
@@ -15412,23 +15410,23 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
15412
15410
|
})]
|
|
15413
15411
|
});
|
|
15414
15412
|
});
|
|
15415
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
15416
|
-
PostBlock.className = CLASSNAME$
|
|
15413
|
+
PostBlock.displayName = COMPONENT_NAME$y;
|
|
15414
|
+
PostBlock.className = CLASSNAME$z;
|
|
15417
15415
|
PostBlock.defaultProps = DEFAULT_PROPS$y;
|
|
15418
15416
|
|
|
15419
15417
|
/**
|
|
15420
15418
|
* Component display name.
|
|
15421
15419
|
*/
|
|
15422
|
-
const COMPONENT_NAME$
|
|
15420
|
+
const COMPONENT_NAME$x = 'ProgressLinear';
|
|
15423
15421
|
|
|
15424
15422
|
/**
|
|
15425
15423
|
* Component default class name and class prefix.
|
|
15426
15424
|
*/
|
|
15427
|
-
const CLASSNAME$
|
|
15425
|
+
const CLASSNAME$y = 'lumx-progress-linear';
|
|
15428
15426
|
const {
|
|
15429
|
-
block: block$
|
|
15427
|
+
block: block$r,
|
|
15430
15428
|
element: element$i
|
|
15431
|
-
} = bem(CLASSNAME$
|
|
15429
|
+
} = bem(CLASSNAME$y);
|
|
15432
15430
|
|
|
15433
15431
|
/**
|
|
15434
15432
|
* Component default props.
|
|
@@ -15451,7 +15449,7 @@ const ProgressLinear$1 = props => {
|
|
|
15451
15449
|
return /*#__PURE__*/jsxs("div", {
|
|
15452
15450
|
ref: ref,
|
|
15453
15451
|
...forwardedProps,
|
|
15454
|
-
className: classnames(className, block$
|
|
15452
|
+
className: classnames(className, block$r({
|
|
15455
15453
|
[`theme-${theme}`]: Boolean(theme)
|
|
15456
15454
|
})),
|
|
15457
15455
|
children: [/*#__PURE__*/jsx("div", {
|
|
@@ -15485,8 +15483,8 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
15485
15483
|
...otherProps
|
|
15486
15484
|
});
|
|
15487
15485
|
});
|
|
15488
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
15489
|
-
ProgressLinear.className = CLASSNAME$
|
|
15486
|
+
ProgressLinear.displayName = COMPONENT_NAME$x;
|
|
15487
|
+
ProgressLinear.className = CLASSNAME$y;
|
|
15490
15488
|
ProgressLinear.defaultProps = DEFAULT_PROPS$x;
|
|
15491
15489
|
|
|
15492
15490
|
/* eslint-disable react/no-unknown-property */
|
|
@@ -15494,16 +15492,16 @@ ProgressLinear.defaultProps = DEFAULT_PROPS$x;
|
|
|
15494
15492
|
/**
|
|
15495
15493
|
* Component display name.
|
|
15496
15494
|
*/
|
|
15497
|
-
const COMPONENT_NAME$
|
|
15495
|
+
const COMPONENT_NAME$w = 'ProgressCircular';
|
|
15498
15496
|
|
|
15499
15497
|
/**
|
|
15500
15498
|
* Component default class name and class prefix.
|
|
15501
15499
|
*/
|
|
15502
|
-
const CLASSNAME$
|
|
15500
|
+
const CLASSNAME$x = 'lumx-progress-circular';
|
|
15503
15501
|
const {
|
|
15504
|
-
block: block$
|
|
15502
|
+
block: block$q,
|
|
15505
15503
|
element: element$h
|
|
15506
|
-
} = bem(CLASSNAME$
|
|
15504
|
+
} = bem(CLASSNAME$x);
|
|
15507
15505
|
|
|
15508
15506
|
/**
|
|
15509
15507
|
* Component default props.
|
|
@@ -15534,7 +15532,7 @@ const ProgressCircular$1 = props => {
|
|
|
15534
15532
|
return /*#__PURE__*/jsxs(Element, {
|
|
15535
15533
|
ref: ref,
|
|
15536
15534
|
...forwardedProps,
|
|
15537
|
-
className: classnames(className, block$
|
|
15535
|
+
className: classnames(className, block$q({
|
|
15538
15536
|
[`theme-${theme}`]: Boolean(theme),
|
|
15539
15537
|
[`size-${size}`]: Boolean(size),
|
|
15540
15538
|
[`display-${display}`]: Boolean(display)
|
|
@@ -15587,8 +15585,8 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
15587
15585
|
}
|
|
15588
15586
|
});
|
|
15589
15587
|
});
|
|
15590
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
15591
|
-
ProgressCircular.className = CLASSNAME$
|
|
15588
|
+
ProgressCircular.displayName = COMPONENT_NAME$w;
|
|
15589
|
+
ProgressCircular.className = CLASSNAME$x;
|
|
15592
15590
|
ProgressCircular.defaultProps = DEFAULT_PROPS$w;
|
|
15593
15591
|
|
|
15594
15592
|
const ProgressVariant = {
|
|
@@ -15603,15 +15601,15 @@ const ProgressVariant = {
|
|
|
15603
15601
|
/**
|
|
15604
15602
|
* Component display name.
|
|
15605
15603
|
*/
|
|
15606
|
-
const COMPONENT_NAME$
|
|
15604
|
+
const COMPONENT_NAME$v = 'Progress';
|
|
15607
15605
|
|
|
15608
15606
|
/**
|
|
15609
15607
|
* Component default class name and class prefix.
|
|
15610
15608
|
*/
|
|
15611
|
-
const CLASSNAME$
|
|
15609
|
+
const CLASSNAME$w = 'lumx-progress';
|
|
15612
15610
|
const {
|
|
15613
|
-
block: block$
|
|
15614
|
-
} = classNames.bem(CLASSNAME$
|
|
15611
|
+
block: block$p
|
|
15612
|
+
} = classNames.bem(CLASSNAME$w);
|
|
15615
15613
|
|
|
15616
15614
|
/**
|
|
15617
15615
|
* Component default props.
|
|
@@ -15639,7 +15637,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
15639
15637
|
return /*#__PURE__*/jsxs("div", {
|
|
15640
15638
|
ref: ref,
|
|
15641
15639
|
...forwardedProps,
|
|
15642
|
-
className: classNames.join(className, block$
|
|
15640
|
+
className: classNames.join(className, block$p({
|
|
15643
15641
|
[`theme-${theme}`]: Boolean(theme),
|
|
15644
15642
|
[`variant-${variant}`]: Boolean(variant)
|
|
15645
15643
|
})),
|
|
@@ -15650,8 +15648,8 @@ const Progress = forwardRef((props, ref) => {
|
|
|
15650
15648
|
})]
|
|
15651
15649
|
});
|
|
15652
15650
|
});
|
|
15653
|
-
Progress.displayName = COMPONENT_NAME$
|
|
15654
|
-
Progress.className = CLASSNAME$
|
|
15651
|
+
Progress.displayName = COMPONENT_NAME$v;
|
|
15652
|
+
Progress.className = CLASSNAME$w;
|
|
15655
15653
|
Progress.defaultProps = DEFAULT_PROPS$v;
|
|
15656
15654
|
|
|
15657
15655
|
const INIT_STATE = {
|
|
@@ -15835,16 +15833,16 @@ ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$u;
|
|
|
15835
15833
|
/**
|
|
15836
15834
|
* Component display name.
|
|
15837
15835
|
*/
|
|
15838
|
-
const COMPONENT_NAME$
|
|
15836
|
+
const COMPONENT_NAME$u = 'ProgressTracker';
|
|
15839
15837
|
|
|
15840
15838
|
/**
|
|
15841
15839
|
* Component default class name and class prefix.
|
|
15842
15840
|
*/
|
|
15843
|
-
const CLASSNAME$
|
|
15841
|
+
const CLASSNAME$v = 'lumx-progress-tracker';
|
|
15844
15842
|
const {
|
|
15845
|
-
block: block$
|
|
15843
|
+
block: block$o,
|
|
15846
15844
|
element: element$g
|
|
15847
|
-
} = classNames.bem(CLASSNAME$
|
|
15845
|
+
} = classNames.bem(CLASSNAME$v);
|
|
15848
15846
|
|
|
15849
15847
|
/**
|
|
15850
15848
|
* Component default props.
|
|
@@ -15879,7 +15877,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
15879
15877
|
return /*#__PURE__*/jsxs("div", {
|
|
15880
15878
|
ref: mergeRefs(ref, stepListRef),
|
|
15881
15879
|
...forwardedProps,
|
|
15882
|
-
className: classNames.join(className, block$
|
|
15880
|
+
className: classNames.join(className, block$o()),
|
|
15883
15881
|
children: [/*#__PURE__*/jsx("div", {
|
|
15884
15882
|
className: element$g('steps'),
|
|
15885
15883
|
role: "tablist",
|
|
@@ -15901,23 +15899,23 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
15901
15899
|
})]
|
|
15902
15900
|
});
|
|
15903
15901
|
});
|
|
15904
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
15905
|
-
ProgressTracker.className = CLASSNAME$
|
|
15902
|
+
ProgressTracker.displayName = COMPONENT_NAME$u;
|
|
15903
|
+
ProgressTracker.className = CLASSNAME$v;
|
|
15906
15904
|
ProgressTracker.defaultProps = DEFAULT_PROPS$t;
|
|
15907
15905
|
|
|
15908
15906
|
/**
|
|
15909
15907
|
* Component display name.
|
|
15910
15908
|
*/
|
|
15911
|
-
const COMPONENT_NAME$
|
|
15909
|
+
const COMPONENT_NAME$t = 'ProgressTrackerStep';
|
|
15912
15910
|
|
|
15913
15911
|
/**
|
|
15914
15912
|
* Component default class name and class prefix.
|
|
15915
15913
|
*/
|
|
15916
|
-
const CLASSNAME$
|
|
15914
|
+
const CLASSNAME$u = 'lumx-progress-tracker-step';
|
|
15917
15915
|
const {
|
|
15918
|
-
block: block$
|
|
15916
|
+
block: block$n,
|
|
15919
15917
|
element: element$f
|
|
15920
|
-
} = classNames.bem(CLASSNAME$
|
|
15918
|
+
} = classNames.bem(CLASSNAME$u);
|
|
15921
15919
|
|
|
15922
15920
|
/**
|
|
15923
15921
|
* Component default props.
|
|
@@ -15986,7 +15984,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
15986
15984
|
...forwardedProps,
|
|
15987
15985
|
type: "button",
|
|
15988
15986
|
id: state?.tabId,
|
|
15989
|
-
className: classNames.join(className, block$
|
|
15987
|
+
className: classNames.join(className, block$n({
|
|
15990
15988
|
'has-error': hasError,
|
|
15991
15989
|
'is-active': isActive,
|
|
15992
15990
|
'is-clickable': state && !isAnyDisabled,
|
|
@@ -16015,22 +16013,22 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
16015
16013
|
})]
|
|
16016
16014
|
});
|
|
16017
16015
|
});
|
|
16018
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
16019
|
-
ProgressTrackerStep.className = CLASSNAME$
|
|
16016
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$t;
|
|
16017
|
+
ProgressTrackerStep.className = CLASSNAME$u;
|
|
16020
16018
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$s;
|
|
16021
16019
|
|
|
16022
16020
|
/**
|
|
16023
16021
|
* Component display name.
|
|
16024
16022
|
*/
|
|
16025
|
-
const COMPONENT_NAME$
|
|
16023
|
+
const COMPONENT_NAME$s = 'ProgressTrackerStepPanel';
|
|
16026
16024
|
|
|
16027
16025
|
/**
|
|
16028
16026
|
* Component default class name and class prefix.
|
|
16029
16027
|
*/
|
|
16030
|
-
const CLASSNAME$
|
|
16028
|
+
const CLASSNAME$t = `lumx-step-panel`;
|
|
16031
16029
|
const {
|
|
16032
|
-
block: block$
|
|
16033
|
-
} = classNames.bem(CLASSNAME$
|
|
16030
|
+
block: block$m
|
|
16031
|
+
} = classNames.bem(CLASSNAME$t);
|
|
16034
16032
|
|
|
16035
16033
|
/**
|
|
16036
16034
|
* Component default props.
|
|
@@ -16060,7 +16058,7 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
16060
16058
|
ref: ref,
|
|
16061
16059
|
...forwardedProps,
|
|
16062
16060
|
id: state?.tabPanelId,
|
|
16063
|
-
className: classNames.join(className, block$
|
|
16061
|
+
className: classNames.join(className, block$m({
|
|
16064
16062
|
'is-active': isActive
|
|
16065
16063
|
})),
|
|
16066
16064
|
role: "tabpanel",
|
|
@@ -16069,23 +16067,23 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
16069
16067
|
children: (!state?.isLazy || isActive) && children
|
|
16070
16068
|
});
|
|
16071
16069
|
});
|
|
16072
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
16073
|
-
ProgressTrackerStepPanel.className = CLASSNAME$
|
|
16070
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$s;
|
|
16071
|
+
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
16074
16072
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$r;
|
|
16075
16073
|
|
|
16076
16074
|
/**
|
|
16077
16075
|
* Component display name.
|
|
16078
16076
|
*/
|
|
16079
|
-
const COMPONENT_NAME$
|
|
16077
|
+
const COMPONENT_NAME$r = 'RadioButton';
|
|
16080
16078
|
|
|
16081
16079
|
/**
|
|
16082
16080
|
* Component default class name and class prefix.
|
|
16083
16081
|
*/
|
|
16084
|
-
const CLASSNAME$
|
|
16082
|
+
const CLASSNAME$s = 'lumx-radio-button';
|
|
16085
16083
|
const {
|
|
16086
|
-
block: block$
|
|
16084
|
+
block: block$l,
|
|
16087
16085
|
element: element$e
|
|
16088
|
-
} = bem(CLASSNAME$
|
|
16086
|
+
} = bem(CLASSNAME$s);
|
|
16089
16087
|
|
|
16090
16088
|
/**
|
|
16091
16089
|
* RadioButton component.
|
|
@@ -16120,7 +16118,7 @@ const RadioButton$1 = props => {
|
|
|
16120
16118
|
return /*#__PURE__*/jsxs("div", {
|
|
16121
16119
|
ref: ref,
|
|
16122
16120
|
...forwardedProps,
|
|
16123
|
-
className: classnames(className, block$
|
|
16121
|
+
className: classnames(className, block$l({
|
|
16124
16122
|
'is-checked': isChecked,
|
|
16125
16123
|
'is-disabled': isDisabled,
|
|
16126
16124
|
'is-unchecked': !isChecked,
|
|
@@ -16228,19 +16226,19 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
16228
16226
|
inputId
|
|
16229
16227
|
});
|
|
16230
16228
|
});
|
|
16231
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
16232
|
-
RadioButton.className = CLASSNAME$
|
|
16229
|
+
RadioButton.displayName = COMPONENT_NAME$r;
|
|
16230
|
+
RadioButton.className = CLASSNAME$s;
|
|
16233
16231
|
RadioButton.defaultProps = DEFAULT_PROPS$q;
|
|
16234
16232
|
|
|
16235
16233
|
/**
|
|
16236
16234
|
* Component display name.
|
|
16237
16235
|
*/
|
|
16238
|
-
const COMPONENT_NAME$
|
|
16236
|
+
const COMPONENT_NAME$q = 'RadioGroup';
|
|
16239
16237
|
|
|
16240
16238
|
/**
|
|
16241
16239
|
* Component default class name and class prefix.
|
|
16242
16240
|
*/
|
|
16243
|
-
const CLASSNAME$
|
|
16241
|
+
const CLASSNAME$r = 'lumx-radio-group';
|
|
16244
16242
|
|
|
16245
16243
|
/**
|
|
16246
16244
|
* Component default props.
|
|
@@ -16263,12 +16261,12 @@ const RadioGroup$1 = props => {
|
|
|
16263
16261
|
return /*#__PURE__*/jsx("div", {
|
|
16264
16262
|
ref: ref,
|
|
16265
16263
|
...forwardedProps,
|
|
16266
|
-
className: classnames(className, CLASSNAME$
|
|
16264
|
+
className: classnames(className, CLASSNAME$r),
|
|
16267
16265
|
children: children
|
|
16268
16266
|
});
|
|
16269
16267
|
};
|
|
16270
|
-
RadioGroup$1.displayName = COMPONENT_NAME$
|
|
16271
|
-
RadioGroup$1.className = CLASSNAME$
|
|
16268
|
+
RadioGroup$1.displayName = COMPONENT_NAME$q;
|
|
16269
|
+
RadioGroup$1.className = CLASSNAME$r;
|
|
16272
16270
|
RadioGroup$1.defaultProps = DEFAULT_PROPS$p;
|
|
16273
16271
|
|
|
16274
16272
|
/**
|
|
@@ -16295,8 +16293,8 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
16295
16293
|
...forwardedProps
|
|
16296
16294
|
});
|
|
16297
16295
|
});
|
|
16298
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
16299
|
-
RadioGroup.className = CLASSNAME$
|
|
16296
|
+
RadioGroup.displayName = COMPONENT_NAME$q;
|
|
16297
|
+
RadioGroup.className = CLASSNAME$r;
|
|
16300
16298
|
|
|
16301
16299
|
/**
|
|
16302
16300
|
* Listen on element focus to store the focus status.
|
|
@@ -16323,11 +16321,11 @@ function useListenFocus(ref) {
|
|
|
16323
16321
|
}
|
|
16324
16322
|
|
|
16325
16323
|
/** The default class name and classes prefix for this component. */
|
|
16326
|
-
const CLASSNAME$
|
|
16324
|
+
const CLASSNAME$q = 'lumx-select';
|
|
16327
16325
|
const {
|
|
16328
|
-
block: block$
|
|
16326
|
+
block: block$k,
|
|
16329
16327
|
element: element$d
|
|
16330
|
-
} = classNames.bem(CLASSNAME$
|
|
16328
|
+
} = classNames.bem(CLASSNAME$q);
|
|
16331
16329
|
const WithSelectContext = (SelectElement, props, ref) => {
|
|
16332
16330
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
16333
16331
|
const {
|
|
@@ -16380,7 +16378,7 @@ const WithSelectContext = (SelectElement, props, ref) => {
|
|
|
16380
16378
|
useFocusTrap(isOpen && dropdownRef.current, focusElement?.current);
|
|
16381
16379
|
return /*#__PURE__*/jsxs("div", {
|
|
16382
16380
|
ref: mergeRefs(ref, selectRef),
|
|
16383
|
-
className: classNames.join(className, block$
|
|
16381
|
+
className: classNames.join(className, block$k({
|
|
16384
16382
|
'has-error': hasError,
|
|
16385
16383
|
'has-label': Boolean(label),
|
|
16386
16384
|
'has-placeholder': Boolean(placeholder),
|
|
@@ -16443,14 +16441,14 @@ const SelectVariant = {
|
|
|
16443
16441
|
};
|
|
16444
16442
|
|
|
16445
16443
|
/** The display name of the component. */
|
|
16446
|
-
const COMPONENT_NAME$
|
|
16444
|
+
const COMPONENT_NAME$p = 'Select';
|
|
16447
16445
|
|
|
16448
16446
|
/** The default class name and classes prefix for this component. */
|
|
16449
|
-
const CLASSNAME$
|
|
16447
|
+
const CLASSNAME$p = 'lumx-select';
|
|
16450
16448
|
const {
|
|
16451
|
-
block: block$
|
|
16449
|
+
block: block$j,
|
|
16452
16450
|
element: element$c
|
|
16453
|
-
} = classNames.bem(CLASSNAME$
|
|
16451
|
+
} = classNames.bem(CLASSNAME$p);
|
|
16454
16452
|
|
|
16455
16453
|
/** The default value of props. */
|
|
16456
16454
|
const DEFAULT_PROPS$o = {
|
|
@@ -16579,7 +16577,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
16579
16577
|
return WithSelectContext(SelectField, {
|
|
16580
16578
|
...DEFAULT_PROPS$o,
|
|
16581
16579
|
...props,
|
|
16582
|
-
className: classNames.join(props.className, block$
|
|
16580
|
+
className: classNames.join(props.className, block$j({
|
|
16583
16581
|
'has-input-clear': hasInputClear,
|
|
16584
16582
|
'has-unique': !props.isEmpty
|
|
16585
16583
|
})),
|
|
@@ -16587,20 +16585,20 @@ const Select = forwardRef((props, ref) => {
|
|
|
16587
16585
|
isEmpty: isEmpty$1
|
|
16588
16586
|
}, ref);
|
|
16589
16587
|
});
|
|
16590
|
-
Select.displayName = COMPONENT_NAME$
|
|
16591
|
-
Select.className = CLASSNAME$
|
|
16588
|
+
Select.displayName = COMPONENT_NAME$p;
|
|
16589
|
+
Select.className = CLASSNAME$p;
|
|
16592
16590
|
Select.defaultProps = DEFAULT_PROPS$o;
|
|
16593
|
-
Select.className = CLASSNAME$
|
|
16591
|
+
Select.className = CLASSNAME$p;
|
|
16594
16592
|
|
|
16595
16593
|
/** The display name of the component. */
|
|
16596
|
-
const COMPONENT_NAME$
|
|
16594
|
+
const COMPONENT_NAME$o = 'Select';
|
|
16597
16595
|
|
|
16598
16596
|
/** The default class name and classes prefix for this component. */
|
|
16599
|
-
const CLASSNAME$
|
|
16597
|
+
const CLASSNAME$o = 'lumx-select';
|
|
16600
16598
|
const {
|
|
16601
|
-
block: block$
|
|
16599
|
+
block: block$i,
|
|
16602
16600
|
element: element$b
|
|
16603
|
-
} = classNames.bem(CLASSNAME$
|
|
16601
|
+
} = classNames.bem(CLASSNAME$o);
|
|
16604
16602
|
|
|
16605
16603
|
/** The default value of props. */
|
|
16606
16604
|
const DEFAULT_PROPS$n = {
|
|
@@ -16684,13 +16682,13 @@ const SelectMultipleField = props => {
|
|
|
16684
16682
|
children: placeholder
|
|
16685
16683
|
})
|
|
16686
16684
|
}), (isValid || hasError) && /*#__PURE__*/jsx("div", {
|
|
16687
|
-
className: `${CLASSNAME$
|
|
16685
|
+
className: `${CLASSNAME$o}__input-validity`,
|
|
16688
16686
|
children: /*#__PURE__*/jsx(Icon, {
|
|
16689
16687
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
16690
16688
|
size: Size$1.xxs
|
|
16691
16689
|
})
|
|
16692
16690
|
}), /*#__PURE__*/jsx("div", {
|
|
16693
|
-
className: `${CLASSNAME$
|
|
16691
|
+
className: `${CLASSNAME$o}__input-indicator`,
|
|
16694
16692
|
children: /*#__PURE__*/jsx(Icon, {
|
|
16695
16693
|
icon: mdiMenuDown,
|
|
16696
16694
|
size: Size$1.s
|
|
@@ -16734,15 +16732,15 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
16734
16732
|
return WithSelectContext(SelectMultipleField, {
|
|
16735
16733
|
...DEFAULT_PROPS$n,
|
|
16736
16734
|
...props,
|
|
16737
|
-
className: classNames.join(props.className, block$
|
|
16735
|
+
className: classNames.join(props.className, block$i({
|
|
16738
16736
|
'has-multiple': !props.isEmpty
|
|
16739
16737
|
})),
|
|
16740
16738
|
isEmpty: props.value.length === 0,
|
|
16741
16739
|
isMultiple: true
|
|
16742
16740
|
}, ref);
|
|
16743
16741
|
});
|
|
16744
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
16745
|
-
SelectMultiple.className = CLASSNAME$
|
|
16742
|
+
SelectMultiple.displayName = COMPONENT_NAME$o;
|
|
16743
|
+
SelectMultiple.className = CLASSNAME$o;
|
|
16746
16744
|
SelectMultiple.defaultProps = DEFAULT_PROPS$n;
|
|
16747
16745
|
|
|
16748
16746
|
/**
|
|
@@ -16876,12 +16874,12 @@ function renderSelectOptions(props, components) {
|
|
|
16876
16874
|
/**
|
|
16877
16875
|
* Component display name.
|
|
16878
16876
|
*/
|
|
16879
|
-
const COMPONENT_NAME$
|
|
16877
|
+
const COMPONENT_NAME$n = 'SelectButton';
|
|
16880
16878
|
|
|
16881
16879
|
/**
|
|
16882
16880
|
* Component default class name.
|
|
16883
16881
|
*/
|
|
16884
|
-
const CLASSNAME$
|
|
16882
|
+
const CLASSNAME$n = 'lumx-select-button';
|
|
16885
16883
|
|
|
16886
16884
|
/**
|
|
16887
16885
|
* SelectButton core template.
|
|
@@ -16979,8 +16977,8 @@ const SelectButton$2 = (props, {
|
|
|
16979
16977
|
})]
|
|
16980
16978
|
});
|
|
16981
16979
|
};
|
|
16982
|
-
SelectButton$2.displayName = COMPONENT_NAME$
|
|
16983
|
-
SelectButton$2.className = CLASSNAME$
|
|
16980
|
+
SelectButton$2.displayName = COMPONENT_NAME$n;
|
|
16981
|
+
SelectButton$2.className = CLASSNAME$n;
|
|
16984
16982
|
|
|
16985
16983
|
/**
|
|
16986
16984
|
* Adapts a React `renderOption` callback returning a `<Combobox.Option>` into the
|
|
@@ -17185,12 +17183,12 @@ function getOptionDisplayName(value, getOptionName, getOptionId) {
|
|
|
17185
17183
|
/**
|
|
17186
17184
|
* Component display name.
|
|
17187
17185
|
*/
|
|
17188
|
-
const COMPONENT_NAME$
|
|
17186
|
+
const COMPONENT_NAME$m = 'SelectTextField';
|
|
17189
17187
|
|
|
17190
17188
|
/**
|
|
17191
17189
|
* Component default class name.
|
|
17192
17190
|
*/
|
|
17193
|
-
const CLASSNAME$
|
|
17191
|
+
const CLASSNAME$m = 'lumx-select-text-field';
|
|
17194
17192
|
|
|
17195
17193
|
/**
|
|
17196
17194
|
* SelectTextField core template.
|
|
@@ -17285,8 +17283,8 @@ const SelectTextField$2 = (props, {
|
|
|
17285
17283
|
})]
|
|
17286
17284
|
});
|
|
17287
17285
|
};
|
|
17288
|
-
SelectTextField$2.displayName = COMPONENT_NAME$
|
|
17289
|
-
SelectTextField$2.className = CLASSNAME$
|
|
17286
|
+
SelectTextField$2.displayName = COMPONENT_NAME$m;
|
|
17287
|
+
SelectTextField$2.className = CLASSNAME$m;
|
|
17290
17288
|
|
|
17291
17289
|
/**
|
|
17292
17290
|
* A text field with a select dropdown to choose between a list of options.
|
|
@@ -17420,13 +17418,18 @@ const SelectTextField$1 = props => {
|
|
|
17420
17418
|
externalOnClear?.(event);
|
|
17421
17419
|
}, [onChange, onSearch, externalOnClear]);
|
|
17422
17420
|
|
|
17423
|
-
// Handle blur:
|
|
17421
|
+
// Handle blur: notify consumer, then reset search state.
|
|
17424
17422
|
const handleBlur = useCallback(event => {
|
|
17425
|
-
setIsSearching(false);
|
|
17426
|
-
setSearchText('');
|
|
17427
17423
|
onSearch?.('');
|
|
17428
17424
|
externalOnBlur?.(event);
|
|
17429
|
-
|
|
17425
|
+
if (externalSearchValue) {
|
|
17426
|
+
setSearchText(externalSearchValue);
|
|
17427
|
+
setIsSearching(true);
|
|
17428
|
+
} else {
|
|
17429
|
+
setSearchText('');
|
|
17430
|
+
setIsSearching(false);
|
|
17431
|
+
}
|
|
17432
|
+
}, [externalOnBlur, externalSearchValue, onSearch]);
|
|
17430
17433
|
const showClear = !isMultiple && !isAnyDisabled && hasClearButton && value !== undefined && value !== null;
|
|
17431
17434
|
const chips = isMultiple ? /*#__PURE__*/jsx(SelectionChipGroup, {
|
|
17432
17435
|
value: value,
|
|
@@ -17532,12 +17535,12 @@ const SelectTextField = Object.assign(SelectTextField$1, {
|
|
|
17532
17535
|
/**
|
|
17533
17536
|
* Component display name.
|
|
17534
17537
|
*/
|
|
17535
|
-
const COMPONENT_NAME$
|
|
17538
|
+
const COMPONENT_NAME$l = 'SideNavigation';
|
|
17536
17539
|
|
|
17537
17540
|
/**
|
|
17538
17541
|
* Component default class name and class prefix.
|
|
17539
17542
|
*/
|
|
17540
|
-
const CLASSNAME$
|
|
17543
|
+
const CLASSNAME$l = 'lumx-side-navigation';
|
|
17541
17544
|
|
|
17542
17545
|
/**
|
|
17543
17546
|
* SideNavigation component.
|
|
@@ -17558,26 +17561,26 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
17558
17561
|
return /*#__PURE__*/jsx("ul", {
|
|
17559
17562
|
ref: ref,
|
|
17560
17563
|
...forwardedProps,
|
|
17561
|
-
className: classNames.join(className, theme === Theme$1.dark && 'lumx-color-font-light-N', CLASSNAME$
|
|
17564
|
+
className: classNames.join(className, theme === Theme$1.dark && 'lumx-color-font-light-N', CLASSNAME$l),
|
|
17562
17565
|
children: content
|
|
17563
17566
|
});
|
|
17564
17567
|
});
|
|
17565
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
17566
|
-
SideNavigation.className = CLASSNAME$
|
|
17568
|
+
SideNavigation.displayName = COMPONENT_NAME$l;
|
|
17569
|
+
SideNavigation.className = CLASSNAME$l;
|
|
17567
17570
|
|
|
17568
17571
|
/**
|
|
17569
17572
|
* Component display name.
|
|
17570
17573
|
*/
|
|
17571
|
-
const COMPONENT_NAME$
|
|
17574
|
+
const COMPONENT_NAME$k = 'SideNavigationItem';
|
|
17572
17575
|
|
|
17573
17576
|
/**
|
|
17574
17577
|
* Component default class name and class prefix.
|
|
17575
17578
|
*/
|
|
17576
|
-
const CLASSNAME$
|
|
17579
|
+
const CLASSNAME$k = 'lumx-side-navigation-item';
|
|
17577
17580
|
const {
|
|
17578
|
-
block: block$
|
|
17581
|
+
block: block$h,
|
|
17579
17582
|
element: element$a
|
|
17580
|
-
} = classNames.bem(CLASSNAME$
|
|
17583
|
+
} = classNames.bem(CLASSNAME$k);
|
|
17581
17584
|
|
|
17582
17585
|
/**
|
|
17583
17586
|
* Component default props.
|
|
@@ -17625,7 +17628,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
17625
17628
|
return /*#__PURE__*/jsxs("li", {
|
|
17626
17629
|
ref: ref,
|
|
17627
17630
|
...forwardedProps,
|
|
17628
|
-
className: classNames.join(className, block$
|
|
17631
|
+
className: classNames.join(className, block$h({
|
|
17629
17632
|
[`emphasis-${emphasis}`]: Boolean(emphasis),
|
|
17630
17633
|
'is-open': showChildren,
|
|
17631
17634
|
'is-selected': isSelected
|
|
@@ -17683,22 +17686,22 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
17683
17686
|
})]
|
|
17684
17687
|
});
|
|
17685
17688
|
});
|
|
17686
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
17687
|
-
SideNavigationItem.className = CLASSNAME$
|
|
17689
|
+
SideNavigationItem.displayName = COMPONENT_NAME$k;
|
|
17690
|
+
SideNavigationItem.className = CLASSNAME$k;
|
|
17688
17691
|
SideNavigationItem.defaultProps = DEFAULT_PROPS$m;
|
|
17689
17692
|
|
|
17690
17693
|
/**
|
|
17691
17694
|
* Component display name.
|
|
17692
17695
|
*/
|
|
17693
|
-
const COMPONENT_NAME$
|
|
17696
|
+
const COMPONENT_NAME$j = 'SkeletonCircle';
|
|
17694
17697
|
|
|
17695
17698
|
/**
|
|
17696
17699
|
* Component default class name and class prefix.
|
|
17697
17700
|
*/
|
|
17698
|
-
const CLASSNAME$
|
|
17701
|
+
const CLASSNAME$j = 'lumx-skeleton-circle';
|
|
17699
17702
|
const {
|
|
17700
|
-
block: block$
|
|
17701
|
-
} = bem(CLASSNAME$
|
|
17703
|
+
block: block$g
|
|
17704
|
+
} = bem(CLASSNAME$j);
|
|
17702
17705
|
|
|
17703
17706
|
/**
|
|
17704
17707
|
* SkeletonCircle component.
|
|
@@ -17718,7 +17721,7 @@ const SkeletonCircle$1 = props => {
|
|
|
17718
17721
|
return /*#__PURE__*/jsx("div", {
|
|
17719
17722
|
ref: ref,
|
|
17720
17723
|
...forwardedProps,
|
|
17721
|
-
className: classnames(className, block$
|
|
17724
|
+
className: classnames(className, block$g({
|
|
17722
17725
|
[`size-${size}`]: Boolean(size),
|
|
17723
17726
|
[`color-${color}`]: Boolean(color),
|
|
17724
17727
|
[`theme-${theme}`]: Boolean(theme)
|
|
@@ -17742,16 +17745,16 @@ const SkeletonRectangleVariant = {
|
|
|
17742
17745
|
/**
|
|
17743
17746
|
* Component display name.
|
|
17744
17747
|
*/
|
|
17745
|
-
const COMPONENT_NAME$
|
|
17748
|
+
const COMPONENT_NAME$i = 'SkeletonRectangle';
|
|
17746
17749
|
|
|
17747
17750
|
/**
|
|
17748
17751
|
* Component default class name and class prefix.
|
|
17749
17752
|
*/
|
|
17750
|
-
const CLASSNAME$
|
|
17753
|
+
const CLASSNAME$i = 'lumx-skeleton-rectangle';
|
|
17751
17754
|
const {
|
|
17752
|
-
block: block$
|
|
17755
|
+
block: block$f,
|
|
17753
17756
|
element: element$9
|
|
17754
|
-
} = bem(CLASSNAME$
|
|
17757
|
+
} = bem(CLASSNAME$i);
|
|
17755
17758
|
|
|
17756
17759
|
/**
|
|
17757
17760
|
* Component default props.
|
|
@@ -17781,7 +17784,7 @@ const SkeletonRectangle$1 = props => {
|
|
|
17781
17784
|
return /*#__PURE__*/jsx("div", {
|
|
17782
17785
|
ref: ref,
|
|
17783
17786
|
...forwardedProps,
|
|
17784
|
-
className: classnames(className, block$
|
|
17787
|
+
className: classnames(className, block$f({
|
|
17785
17788
|
[`aspect-ratio-${aspectRatio}`]: Boolean(aspectRatio),
|
|
17786
17789
|
[`height-${height}`]: Boolean(aspectRatio ? undefined : height),
|
|
17787
17790
|
[`theme-${theme}`]: Boolean(theme),
|
|
@@ -17826,9 +17829,9 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
17826
17829
|
...forwardedProps
|
|
17827
17830
|
});
|
|
17828
17831
|
});
|
|
17829
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
17832
|
+
SkeletonCircle.displayName = COMPONENT_NAME$j;
|
|
17830
17833
|
SkeletonCircle.defaultProps = DEFAULT_PROPS$k;
|
|
17831
|
-
SkeletonCircle.className = CLASSNAME$
|
|
17834
|
+
SkeletonCircle.className = CLASSNAME$j;
|
|
17832
17835
|
|
|
17833
17836
|
/**
|
|
17834
17837
|
* Defines the props of the component.
|
|
@@ -17867,8 +17870,8 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
17867
17870
|
...forwardedProps
|
|
17868
17871
|
});
|
|
17869
17872
|
});
|
|
17870
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
17871
|
-
SkeletonRectangle.className = CLASSNAME$
|
|
17873
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$i;
|
|
17874
|
+
SkeletonRectangle.className = CLASSNAME$i;
|
|
17872
17875
|
SkeletonRectangle.defaultProps = DEFAULT_PROPS$j;
|
|
17873
17876
|
|
|
17874
17877
|
/**
|
|
@@ -17904,9 +17907,9 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
17904
17907
|
...forwardedProps
|
|
17905
17908
|
});
|
|
17906
17909
|
});
|
|
17907
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
17910
|
+
SkeletonTypography.displayName = COMPONENT_NAME$16;
|
|
17908
17911
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$i;
|
|
17909
|
-
SkeletonTypography.className = CLASSNAME$
|
|
17912
|
+
SkeletonTypography.className = CLASSNAME$15;
|
|
17910
17913
|
|
|
17911
17914
|
/**
|
|
17912
17915
|
* Clamp value in range.
|
|
@@ -17930,16 +17933,16 @@ const clamp = (value, min, max) => {
|
|
|
17930
17933
|
/**
|
|
17931
17934
|
* Component display name.
|
|
17932
17935
|
*/
|
|
17933
|
-
const COMPONENT_NAME$
|
|
17936
|
+
const COMPONENT_NAME$h = 'Slider';
|
|
17934
17937
|
|
|
17935
17938
|
/**
|
|
17936
17939
|
* Component default class name and class prefix.
|
|
17937
17940
|
*/
|
|
17938
|
-
const CLASSNAME$
|
|
17941
|
+
const CLASSNAME$h = 'lumx-slider';
|
|
17939
17942
|
const {
|
|
17940
|
-
block: block$
|
|
17943
|
+
block: block$e,
|
|
17941
17944
|
element: element$8
|
|
17942
|
-
} = classNames.bem(CLASSNAME$
|
|
17945
|
+
} = classNames.bem(CLASSNAME$h);
|
|
17943
17946
|
|
|
17944
17947
|
/**
|
|
17945
17948
|
* Component default props.
|
|
@@ -18132,7 +18135,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
18132
18135
|
return /*#__PURE__*/jsxs("div", {
|
|
18133
18136
|
ref: ref,
|
|
18134
18137
|
...forwardedProps,
|
|
18135
|
-
className: classNames.join(className, block$
|
|
18138
|
+
className: classNames.join(className, block$e({
|
|
18136
18139
|
[`theme-${theme}`]: Boolean(theme),
|
|
18137
18140
|
'has-label': Boolean(label)
|
|
18138
18141
|
})),
|
|
@@ -18197,8 +18200,8 @@ const Slider = forwardRef((props, ref) => {
|
|
|
18197
18200
|
})]
|
|
18198
18201
|
});
|
|
18199
18202
|
});
|
|
18200
|
-
Slider.displayName = COMPONENT_NAME$
|
|
18201
|
-
Slider.className = CLASSNAME$
|
|
18203
|
+
Slider.displayName = COMPONENT_NAME$h;
|
|
18204
|
+
Slider.className = CLASSNAME$h;
|
|
18202
18205
|
Slider.defaultProps = DEFAULT_PROPS$h;
|
|
18203
18206
|
|
|
18204
18207
|
/**
|
|
@@ -18532,12 +18535,12 @@ const useSlideFocusManagement = ({
|
|
|
18532
18535
|
/**
|
|
18533
18536
|
* Component display name.
|
|
18534
18537
|
*/
|
|
18535
|
-
const COMPONENT_NAME$
|
|
18538
|
+
const COMPONENT_NAME$g = 'SlideshowItemGroup';
|
|
18536
18539
|
|
|
18537
18540
|
/**
|
|
18538
18541
|
* Component default class name and class prefix.
|
|
18539
18542
|
*/
|
|
18540
|
-
const CLASSNAME$
|
|
18543
|
+
const CLASSNAME$g = 'lumx-slideshow-item-group';
|
|
18541
18544
|
const buildSlideShowGroupId = (slidesId, index) => `${slidesId}-slide-${index}`;
|
|
18542
18545
|
|
|
18543
18546
|
/**
|
|
@@ -18564,15 +18567,15 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
18564
18567
|
return /*#__PURE__*/jsx("div", {
|
|
18565
18568
|
ref: mergeRefs(groupRef, ref),
|
|
18566
18569
|
role: role,
|
|
18567
|
-
className: classNames.join(className, CLASSNAME$
|
|
18570
|
+
className: classNames.join(className, CLASSNAME$g),
|
|
18568
18571
|
"aria-roledescription": "slide",
|
|
18569
18572
|
"aria-label": label,
|
|
18570
18573
|
...forwardedProps,
|
|
18571
18574
|
children: children
|
|
18572
18575
|
});
|
|
18573
18576
|
});
|
|
18574
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
18575
|
-
SlideshowItemGroup.className = CLASSNAME$
|
|
18577
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$g;
|
|
18578
|
+
SlideshowItemGroup.className = CLASSNAME$g;
|
|
18576
18579
|
|
|
18577
18580
|
/**
|
|
18578
18581
|
* Component default props.
|
|
@@ -18702,12 +18705,12 @@ Slideshow.defaultProps = DEFAULT_PROPS$g;
|
|
|
18702
18705
|
/**
|
|
18703
18706
|
* Component display name.
|
|
18704
18707
|
*/
|
|
18705
|
-
const COMPONENT_NAME$
|
|
18708
|
+
const COMPONENT_NAME$f = 'SlideshowItem';
|
|
18706
18709
|
|
|
18707
18710
|
/**
|
|
18708
18711
|
* Component default class name and class prefix.
|
|
18709
18712
|
*/
|
|
18710
|
-
const CLASSNAME$
|
|
18713
|
+
const CLASSNAME$f = 'lumx-slideshow-item';
|
|
18711
18714
|
|
|
18712
18715
|
/**
|
|
18713
18716
|
* SlideshowItem component.
|
|
@@ -18724,13 +18727,13 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
18724
18727
|
} = props;
|
|
18725
18728
|
return /*#__PURE__*/jsx("div", {
|
|
18726
18729
|
ref: ref,
|
|
18727
|
-
className: classNames.join(className, CLASSNAME$
|
|
18730
|
+
className: classNames.join(className, CLASSNAME$f),
|
|
18728
18731
|
...forwardedProps,
|
|
18729
18732
|
children: children
|
|
18730
18733
|
});
|
|
18731
18734
|
});
|
|
18732
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
18733
|
-
SlideshowItem.className = CLASSNAME$
|
|
18735
|
+
SlideshowItem.displayName = COMPONENT_NAME$f;
|
|
18736
|
+
SlideshowItem.className = CLASSNAME$f;
|
|
18734
18737
|
|
|
18735
18738
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
18736
18739
|
|
|
@@ -18792,16 +18795,16 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
18792
18795
|
/**
|
|
18793
18796
|
* Component display name.
|
|
18794
18797
|
*/
|
|
18795
|
-
const COMPONENT_NAME$
|
|
18798
|
+
const COMPONENT_NAME$e = 'SlideshowControls';
|
|
18796
18799
|
|
|
18797
18800
|
/**
|
|
18798
18801
|
* Component default class name and class prefix.
|
|
18799
18802
|
*/
|
|
18800
|
-
const CLASSNAME$
|
|
18803
|
+
const CLASSNAME$e = 'lumx-slideshow-controls';
|
|
18801
18804
|
const {
|
|
18802
|
-
block: block$
|
|
18805
|
+
block: block$d,
|
|
18803
18806
|
element: element$7
|
|
18804
|
-
} = classNames.bem(CLASSNAME$
|
|
18807
|
+
} = classNames.bem(CLASSNAME$e);
|
|
18805
18808
|
|
|
18806
18809
|
/**
|
|
18807
18810
|
* Component default props.
|
|
@@ -18871,7 +18874,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
18871
18874
|
return /*#__PURE__*/jsxs("div", {
|
|
18872
18875
|
ref: ref,
|
|
18873
18876
|
...forwardedProps,
|
|
18874
|
-
className: classNames.join(className, block$
|
|
18877
|
+
className: classNames.join(className, block$d({
|
|
18875
18878
|
[`theme-${theme}`]: Boolean(theme),
|
|
18876
18879
|
'has-infinite-pagination': slidesCount > PAGINATION_ITEMS_MAX
|
|
18877
18880
|
})),
|
|
@@ -18932,8 +18935,8 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
18932
18935
|
})]
|
|
18933
18936
|
});
|
|
18934
18937
|
});
|
|
18935
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
18936
|
-
InternalSlideshowControls.className = CLASSNAME$
|
|
18938
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$e;
|
|
18939
|
+
InternalSlideshowControls.className = CLASSNAME$e;
|
|
18937
18940
|
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$f;
|
|
18938
18941
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
18939
18942
|
useSlideshowControls,
|
|
@@ -19052,16 +19055,16 @@ const useSlideScroll = ({
|
|
|
19052
19055
|
/**
|
|
19053
19056
|
* Component display name.
|
|
19054
19057
|
*/
|
|
19055
|
-
const COMPONENT_NAME$
|
|
19058
|
+
const COMPONENT_NAME$d = 'Slideshow';
|
|
19056
19059
|
|
|
19057
19060
|
/**
|
|
19058
19061
|
* Component default class name and class prefix.
|
|
19059
19062
|
*/
|
|
19060
|
-
const CLASSNAME$
|
|
19063
|
+
const CLASSNAME$d = 'lumx-slideshow';
|
|
19061
19064
|
const {
|
|
19062
|
-
block: block$
|
|
19065
|
+
block: block$c,
|
|
19063
19066
|
element: element$6
|
|
19064
|
-
} = classNames.bem(CLASSNAME$
|
|
19067
|
+
} = classNames.bem(CLASSNAME$d);
|
|
19065
19068
|
|
|
19066
19069
|
/**
|
|
19067
19070
|
* Component default props.
|
|
@@ -19131,7 +19134,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
19131
19134
|
id: id,
|
|
19132
19135
|
ref: ref,
|
|
19133
19136
|
...forwardedProps,
|
|
19134
|
-
className: classNames.join(className, block$
|
|
19137
|
+
className: classNames.join(className, block$c({
|
|
19135
19138
|
[`theme-${theme}`]: Boolean(theme),
|
|
19136
19139
|
'fill-height': fillHeight,
|
|
19137
19140
|
[`group-by-${groupBy}`]: Boolean(groupBy)
|
|
@@ -19160,22 +19163,22 @@ const Slides = forwardRef((props, ref) => {
|
|
|
19160
19163
|
}), afterSlides]
|
|
19161
19164
|
});
|
|
19162
19165
|
});
|
|
19163
|
-
Slides.displayName = COMPONENT_NAME$
|
|
19164
|
-
Slides.className = CLASSNAME$
|
|
19166
|
+
Slides.displayName = COMPONENT_NAME$d;
|
|
19167
|
+
Slides.className = CLASSNAME$d;
|
|
19165
19168
|
|
|
19166
19169
|
/**
|
|
19167
19170
|
* Component display name.
|
|
19168
19171
|
*/
|
|
19169
|
-
const COMPONENT_NAME$
|
|
19172
|
+
const COMPONENT_NAME$c = 'Switch';
|
|
19170
19173
|
|
|
19171
19174
|
/**
|
|
19172
19175
|
* Component default class name and class prefix.
|
|
19173
19176
|
*/
|
|
19174
|
-
const CLASSNAME$
|
|
19177
|
+
const CLASSNAME$c = 'lumx-switch';
|
|
19175
19178
|
const {
|
|
19176
|
-
block: block$
|
|
19179
|
+
block: block$b,
|
|
19177
19180
|
element: element$5
|
|
19178
|
-
} = bem(CLASSNAME$
|
|
19181
|
+
} = bem(CLASSNAME$c);
|
|
19179
19182
|
|
|
19180
19183
|
/**
|
|
19181
19184
|
* Component default props.
|
|
@@ -19218,7 +19221,7 @@ const Switch$1 = props => {
|
|
|
19218
19221
|
return /*#__PURE__*/jsxs("div", {
|
|
19219
19222
|
ref: ref,
|
|
19220
19223
|
...forwardedProps,
|
|
19221
|
-
className: classnames(className, block$
|
|
19224
|
+
className: classnames(className, block$b({
|
|
19222
19225
|
'is-checked': isChecked,
|
|
19223
19226
|
'is-disabled': isDisabled,
|
|
19224
19227
|
'is-unchecked': !isChecked,
|
|
@@ -19334,23 +19337,23 @@ const Switch = forwardRef((props, ref) => {
|
|
|
19334
19337
|
inputId
|
|
19335
19338
|
});
|
|
19336
19339
|
});
|
|
19337
|
-
Switch.displayName = COMPONENT_NAME$
|
|
19338
|
-
Switch.className = CLASSNAME$
|
|
19340
|
+
Switch.displayName = COMPONENT_NAME$c;
|
|
19341
|
+
Switch.className = CLASSNAME$c;
|
|
19339
19342
|
Switch.defaultProps = DEFAULT_PROPS$c;
|
|
19340
19343
|
|
|
19341
19344
|
/**
|
|
19342
19345
|
* Component display name.
|
|
19343
19346
|
*/
|
|
19344
|
-
const COMPONENT_NAME$
|
|
19347
|
+
const COMPONENT_NAME$b = 'Table';
|
|
19345
19348
|
|
|
19346
19349
|
/**
|
|
19347
19350
|
* Component default class name and class prefix.
|
|
19348
19351
|
*/
|
|
19349
|
-
const CLASSNAME$
|
|
19352
|
+
const CLASSNAME$b = 'lumx-table';
|
|
19350
19353
|
|
|
19351
19354
|
const {
|
|
19352
|
-
block: block$
|
|
19353
|
-
} = bem(CLASSNAME$
|
|
19355
|
+
block: block$a
|
|
19356
|
+
} = bem(CLASSNAME$b);
|
|
19354
19357
|
|
|
19355
19358
|
/**
|
|
19356
19359
|
* Defines the props of the component.
|
|
@@ -19380,7 +19383,7 @@ const Table$1 = props => {
|
|
|
19380
19383
|
return /*#__PURE__*/jsx("table", {
|
|
19381
19384
|
ref: ref,
|
|
19382
19385
|
...forwardedProps,
|
|
19383
|
-
className: classnames(className, block$
|
|
19386
|
+
className: classnames(className, block$a({
|
|
19384
19387
|
'has-before': hasBefore,
|
|
19385
19388
|
'has-dividers': hasDividers,
|
|
19386
19389
|
[`theme-${theme}`]: Boolean(theme)
|
|
@@ -19414,19 +19417,19 @@ const Table = forwardRef((props, ref) => {
|
|
|
19414
19417
|
...otherProps
|
|
19415
19418
|
});
|
|
19416
19419
|
});
|
|
19417
|
-
Table.displayName = COMPONENT_NAME$
|
|
19418
|
-
Table.className = CLASSNAME$
|
|
19420
|
+
Table.displayName = COMPONENT_NAME$b;
|
|
19421
|
+
Table.className = CLASSNAME$b;
|
|
19419
19422
|
Table.defaultProps = DEFAULT_PROPS$b;
|
|
19420
19423
|
|
|
19421
19424
|
/**
|
|
19422
19425
|
* Component display name.
|
|
19423
19426
|
*/
|
|
19424
|
-
const COMPONENT_NAME$
|
|
19427
|
+
const COMPONENT_NAME$a = 'TableBody';
|
|
19425
19428
|
|
|
19426
19429
|
/**
|
|
19427
19430
|
* Component default class name and class prefix.
|
|
19428
19431
|
*/
|
|
19429
|
-
const CLASSNAME$
|
|
19432
|
+
const CLASSNAME$a = `${CLASSNAME$b}__body`;
|
|
19430
19433
|
|
|
19431
19434
|
/**
|
|
19432
19435
|
* TableBody component.
|
|
@@ -19444,7 +19447,7 @@ const TableBody$1 = props => {
|
|
|
19444
19447
|
return /*#__PURE__*/jsx("tbody", {
|
|
19445
19448
|
ref: ref,
|
|
19446
19449
|
...forwardedProps,
|
|
19447
|
-
className: classnames(className, CLASSNAME$
|
|
19450
|
+
className: classnames(className, CLASSNAME$a),
|
|
19448
19451
|
children: children
|
|
19449
19452
|
});
|
|
19450
19453
|
};
|
|
@@ -19471,8 +19474,8 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
19471
19474
|
...otherProps
|
|
19472
19475
|
});
|
|
19473
19476
|
});
|
|
19474
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
19475
|
-
TableBody.className = CLASSNAME$
|
|
19477
|
+
TableBody.displayName = COMPONENT_NAME$a;
|
|
19478
|
+
TableBody.className = CLASSNAME$a;
|
|
19476
19479
|
|
|
19477
19480
|
const ThOrder = {
|
|
19478
19481
|
asc: 'asc',
|
|
@@ -19493,15 +19496,15 @@ const TableCellVariant = {
|
|
|
19493
19496
|
/**
|
|
19494
19497
|
* Component display name.
|
|
19495
19498
|
*/
|
|
19496
|
-
const COMPONENT_NAME$
|
|
19499
|
+
const COMPONENT_NAME$9 = 'TableCell';
|
|
19497
19500
|
|
|
19498
19501
|
/**
|
|
19499
19502
|
* Component default class name and class prefix.
|
|
19500
19503
|
*/
|
|
19501
|
-
const CLASSNAME$
|
|
19504
|
+
const CLASSNAME$9 = `${CLASSNAME$b}__cell`;
|
|
19502
19505
|
const {
|
|
19503
|
-
block: block$
|
|
19504
|
-
} = bem(CLASSNAME$
|
|
19506
|
+
block: block$9
|
|
19507
|
+
} = bem(CLASSNAME$9);
|
|
19505
19508
|
|
|
19506
19509
|
/**
|
|
19507
19510
|
* Component default props.
|
|
@@ -19547,40 +19550,40 @@ const TableCell$1 = props => {
|
|
|
19547
19550
|
children: [variant === TableCellVariant.head && /*#__PURE__*/jsx("th", {
|
|
19548
19551
|
ref: ref,
|
|
19549
19552
|
...forwardedProps,
|
|
19550
|
-
className: classnames(className, block$
|
|
19553
|
+
className: classnames(className, block$9({
|
|
19551
19554
|
'is-sortable': isSortable,
|
|
19552
19555
|
'is-sorted': isSortable && !!sortOrder,
|
|
19553
19556
|
head: true
|
|
19554
19557
|
})),
|
|
19555
19558
|
"aria-sort": ariaSort,
|
|
19556
19559
|
children: /*#__PURE__*/jsxs(Wrapper, {
|
|
19557
|
-
className: `${CLASSNAME$
|
|
19560
|
+
className: `${CLASSNAME$9}-wrapper`,
|
|
19558
19561
|
...wrapperProps,
|
|
19559
19562
|
children: [icon && !isSortable && Icon$1({
|
|
19560
|
-
className: `${CLASSNAME$
|
|
19563
|
+
className: `${CLASSNAME$9}-icon`,
|
|
19561
19564
|
icon,
|
|
19562
19565
|
size: Size.xxs
|
|
19563
19566
|
}), isSortable && sortOrder === ThOrder.asc && Icon$1({
|
|
19564
|
-
className: `${CLASSNAME$
|
|
19567
|
+
className: `${CLASSNAME$9}-icon`,
|
|
19565
19568
|
icon: mdiArrowUp,
|
|
19566
19569
|
size: Size.xxs
|
|
19567
19570
|
}), isSortable && sortOrder === ThOrder.desc && Icon$1({
|
|
19568
|
-
className: `${CLASSNAME$
|
|
19571
|
+
className: `${CLASSNAME$9}-icon`,
|
|
19569
19572
|
icon: mdiArrowDown,
|
|
19570
19573
|
size: Size.xxs
|
|
19571
19574
|
}), /*#__PURE__*/jsx("div", {
|
|
19572
|
-
className: `${CLASSNAME$
|
|
19575
|
+
className: `${CLASSNAME$9}-content`,
|
|
19573
19576
|
children: children
|
|
19574
19577
|
})]
|
|
19575
19578
|
})
|
|
19576
19579
|
}), variant === TableCellVariant.body && /*#__PURE__*/jsx("td", {
|
|
19577
19580
|
ref: ref,
|
|
19578
19581
|
...forwardedProps,
|
|
19579
|
-
className: classnames(className, block$
|
|
19582
|
+
className: classnames(className, block$9({
|
|
19580
19583
|
body: true
|
|
19581
19584
|
})),
|
|
19582
19585
|
children: /*#__PURE__*/jsx("div", {
|
|
19583
|
-
className: `${CLASSNAME$
|
|
19586
|
+
className: `${CLASSNAME$9}-content`,
|
|
19584
19587
|
children: children
|
|
19585
19588
|
})
|
|
19586
19589
|
})]
|
|
@@ -19609,19 +19612,19 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
19609
19612
|
handleClick: onHeaderClick
|
|
19610
19613
|
});
|
|
19611
19614
|
});
|
|
19612
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
19613
|
-
TableCell.className = CLASSNAME$
|
|
19615
|
+
TableCell.displayName = COMPONENT_NAME$9;
|
|
19616
|
+
TableCell.className = CLASSNAME$9;
|
|
19614
19617
|
TableCell.defaultProps = DEFAULT_PROPS$a;
|
|
19615
19618
|
|
|
19616
19619
|
/**
|
|
19617
19620
|
* Component display name.
|
|
19618
19621
|
*/
|
|
19619
|
-
const COMPONENT_NAME$
|
|
19622
|
+
const COMPONENT_NAME$8 = 'TableHeader';
|
|
19620
19623
|
|
|
19621
19624
|
/**
|
|
19622
19625
|
* Component default class name and class prefix.
|
|
19623
19626
|
*/
|
|
19624
|
-
const CLASSNAME$
|
|
19627
|
+
const CLASSNAME$8 = `${CLASSNAME$b}__header`;
|
|
19625
19628
|
|
|
19626
19629
|
/**
|
|
19627
19630
|
* Component default props.
|
|
@@ -19644,7 +19647,7 @@ const TableHeader$1 = props => {
|
|
|
19644
19647
|
return /*#__PURE__*/jsx("thead", {
|
|
19645
19648
|
ref: ref,
|
|
19646
19649
|
...forwardedProps,
|
|
19647
|
-
className: classnames(className, CLASSNAME$
|
|
19650
|
+
className: classnames(className, CLASSNAME$8),
|
|
19648
19651
|
children: children
|
|
19649
19652
|
});
|
|
19650
19653
|
};
|
|
@@ -19671,22 +19674,22 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
19671
19674
|
...otherProps
|
|
19672
19675
|
});
|
|
19673
19676
|
});
|
|
19674
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
19675
|
-
TableHeader.className = CLASSNAME$
|
|
19677
|
+
TableHeader.displayName = COMPONENT_NAME$8;
|
|
19678
|
+
TableHeader.className = CLASSNAME$8;
|
|
19676
19679
|
TableHeader.defaultProps = DEFAULT_PROPS$9;
|
|
19677
19680
|
|
|
19678
19681
|
/**
|
|
19679
19682
|
* Component display name.
|
|
19680
19683
|
*/
|
|
19681
|
-
const COMPONENT_NAME$
|
|
19684
|
+
const COMPONENT_NAME$7 = 'TableRow';
|
|
19682
19685
|
|
|
19683
19686
|
/**
|
|
19684
19687
|
* Component default class name and class prefix.
|
|
19685
19688
|
*/
|
|
19686
|
-
const CLASSNAME$
|
|
19689
|
+
const CLASSNAME$7 = `${CLASSNAME$b}__row`;
|
|
19687
19690
|
const {
|
|
19688
|
-
block: block$
|
|
19689
|
-
} = bem(CLASSNAME$
|
|
19691
|
+
block: block$8
|
|
19692
|
+
} = bem(CLASSNAME$7);
|
|
19690
19693
|
|
|
19691
19694
|
/**
|
|
19692
19695
|
* Component default props.
|
|
@@ -19721,7 +19724,7 @@ const TableRow$1 = props => {
|
|
|
19721
19724
|
"aria-disabled": ariaDisabled,
|
|
19722
19725
|
...tabIndexProps,
|
|
19723
19726
|
...forwardedProps,
|
|
19724
|
-
className: classnames(className, block$
|
|
19727
|
+
className: classnames(className, block$8({
|
|
19725
19728
|
'is-clickable': isClickable && !isDisabled,
|
|
19726
19729
|
'is-disabled': isDisabled,
|
|
19727
19730
|
'is-selected': isSelected && !isDisabled
|
|
@@ -19761,8 +19764,8 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
19761
19764
|
...forwardedProps
|
|
19762
19765
|
});
|
|
19763
19766
|
});
|
|
19764
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
19765
|
-
TableRow.className = CLASSNAME$
|
|
19767
|
+
TableRow.displayName = COMPONENT_NAME$7;
|
|
19768
|
+
TableRow.className = CLASSNAME$7;
|
|
19766
19769
|
TableRow.defaultProps = DEFAULT_PROPS$8;
|
|
19767
19770
|
|
|
19768
19771
|
const DEFAULT_PROPS$7 = {
|
|
@@ -19833,7 +19836,7 @@ TabProvider.defaultProps = DEFAULT_PROPS$7;
|
|
|
19833
19836
|
const TABS_CLASSNAME = `lumx-tabs`;
|
|
19834
19837
|
|
|
19835
19838
|
const {
|
|
19836
|
-
block: block$
|
|
19839
|
+
block: block$7,
|
|
19837
19840
|
element: element$4
|
|
19838
19841
|
} = bem(TABS_CLASSNAME);
|
|
19839
19842
|
let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
@@ -19849,7 +19852,7 @@ let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
|
19849
19852
|
/**
|
|
19850
19853
|
* Component display name.
|
|
19851
19854
|
*/
|
|
19852
|
-
const COMPONENT_NAME$
|
|
19855
|
+
const COMPONENT_NAME$6 = 'TabList';
|
|
19853
19856
|
|
|
19854
19857
|
/**
|
|
19855
19858
|
* Component default props.
|
|
@@ -19882,7 +19885,7 @@ const TabList$1 = props => {
|
|
|
19882
19885
|
return /*#__PURE__*/jsx("div", {
|
|
19883
19886
|
ref: ref,
|
|
19884
19887
|
...forwardedProps,
|
|
19885
|
-
className: classnames(className, block$
|
|
19888
|
+
className: classnames(className, block$7({
|
|
19886
19889
|
[`layout-${layout}`]: Boolean(layout),
|
|
19887
19890
|
[`position-${position}`]: Boolean(position),
|
|
19888
19891
|
[`theme-${theme}`]: Boolean(theme)
|
|
@@ -19922,14 +19925,14 @@ const TabList = forwardRef((props, ref) => {
|
|
|
19922
19925
|
...forwardedProps
|
|
19923
19926
|
});
|
|
19924
19927
|
});
|
|
19925
|
-
TabList.displayName = COMPONENT_NAME$
|
|
19928
|
+
TabList.displayName = COMPONENT_NAME$6;
|
|
19926
19929
|
TabList.className = TABS_CLASSNAME;
|
|
19927
19930
|
TabList.defaultProps = DEFAULT_PROPS$6;
|
|
19928
19931
|
|
|
19929
19932
|
/**
|
|
19930
19933
|
* Component display name.
|
|
19931
19934
|
*/
|
|
19932
|
-
const COMPONENT_NAME$
|
|
19935
|
+
const COMPONENT_NAME$5 = 'Tab';
|
|
19933
19936
|
|
|
19934
19937
|
/**
|
|
19935
19938
|
* Component default props.
|
|
@@ -19939,10 +19942,10 @@ const DEFAULT_PROPS$5 = {};
|
|
|
19939
19942
|
/**
|
|
19940
19943
|
* Component default class name and class prefix.
|
|
19941
19944
|
*/
|
|
19942
|
-
const CLASSNAME$
|
|
19945
|
+
const CLASSNAME$6 = `${TABS_CLASSNAME}__link`;
|
|
19943
19946
|
const {
|
|
19944
|
-
block: block$
|
|
19945
|
-
} = bem(CLASSNAME$
|
|
19947
|
+
block: block$6
|
|
19948
|
+
} = bem(CLASSNAME$6);
|
|
19946
19949
|
|
|
19947
19950
|
/**
|
|
19948
19951
|
* Tab component.
|
|
@@ -20001,7 +20004,7 @@ const Tab$1 = props => {
|
|
|
20001
20004
|
...forwardedProps,
|
|
20002
20005
|
type: "button",
|
|
20003
20006
|
id: tabId,
|
|
20004
|
-
className: classnames(className, block$
|
|
20007
|
+
className: classnames(className, block$6({
|
|
20005
20008
|
'is-active': isActive,
|
|
20006
20009
|
'is-disabled': isAnyDisabled
|
|
20007
20010
|
})),
|
|
@@ -20069,22 +20072,22 @@ const Tab = forwardRef((props, ref) => {
|
|
|
20069
20072
|
...forwardedProps
|
|
20070
20073
|
});
|
|
20071
20074
|
});
|
|
20072
|
-
Tab.displayName = COMPONENT_NAME$
|
|
20073
|
-
Tab.className = CLASSNAME$
|
|
20075
|
+
Tab.displayName = COMPONENT_NAME$5;
|
|
20076
|
+
Tab.className = CLASSNAME$6;
|
|
20074
20077
|
Tab.defaultProps = DEFAULT_PROPS$5;
|
|
20075
20078
|
|
|
20076
20079
|
/**
|
|
20077
20080
|
* Component display name.
|
|
20078
20081
|
*/
|
|
20079
|
-
const COMPONENT_NAME$
|
|
20082
|
+
const COMPONENT_NAME$4 = 'TabPanel';
|
|
20080
20083
|
|
|
20081
20084
|
/**
|
|
20082
20085
|
* Component default class name and class prefix.
|
|
20083
20086
|
*/
|
|
20084
|
-
const CLASSNAME$
|
|
20087
|
+
const CLASSNAME$5 = `lumx-tab-panel`;
|
|
20085
20088
|
const {
|
|
20086
|
-
block: block$
|
|
20087
|
-
} = bem(CLASSNAME$
|
|
20089
|
+
block: block$5
|
|
20090
|
+
} = bem(CLASSNAME$5);
|
|
20088
20091
|
|
|
20089
20092
|
/**
|
|
20090
20093
|
* Component default props.
|
|
@@ -20116,7 +20119,7 @@ const TabPanel$1 = props => {
|
|
|
20116
20119
|
ref: ref,
|
|
20117
20120
|
...forwardedProps,
|
|
20118
20121
|
id: id,
|
|
20119
|
-
className: classnames(className, block$
|
|
20122
|
+
className: classnames(className, block$5({
|
|
20120
20123
|
'is-active': isActive
|
|
20121
20124
|
})),
|
|
20122
20125
|
role: "tabpanel",
|
|
@@ -20156,8 +20159,8 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
20156
20159
|
...forwardedProps
|
|
20157
20160
|
});
|
|
20158
20161
|
});
|
|
20159
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
20160
|
-
TabPanel.className = CLASSNAME$
|
|
20162
|
+
TabPanel.displayName = COMPONENT_NAME$4;
|
|
20163
|
+
TabPanel.className = CLASSNAME$5;
|
|
20161
20164
|
TabPanel.defaultProps = DEFAULT_PROPS$4;
|
|
20162
20165
|
|
|
20163
20166
|
/**
|
|
@@ -20307,16 +20310,16 @@ function calculateFocusPointStyle({
|
|
|
20307
20310
|
/**
|
|
20308
20311
|
* Component display name.
|
|
20309
20312
|
*/
|
|
20310
|
-
const COMPONENT_NAME$
|
|
20313
|
+
const COMPONENT_NAME$3 = 'Thumbnail';
|
|
20311
20314
|
|
|
20312
20315
|
/**
|
|
20313
20316
|
* Component default class name and class prefix.
|
|
20314
20317
|
*/
|
|
20315
|
-
const CLASSNAME$
|
|
20318
|
+
const CLASSNAME$4 = 'lumx-thumbnail';
|
|
20316
20319
|
const {
|
|
20317
|
-
block: block$
|
|
20320
|
+
block: block$4,
|
|
20318
20321
|
element: element$3
|
|
20319
|
-
} = classNames.bem(CLASSNAME$
|
|
20322
|
+
} = classNames.bem(CLASSNAME$4);
|
|
20320
20323
|
|
|
20321
20324
|
/**
|
|
20322
20325
|
* Component default props.
|
|
@@ -20391,7 +20394,7 @@ const Thumbnail$1 = props => {
|
|
|
20391
20394
|
wrapperProps['aria-label'] = forwardedProps['aria-label'] || alt;
|
|
20392
20395
|
}
|
|
20393
20396
|
}
|
|
20394
|
-
const wrapperClassName = classNames.join(linkProps?.className, className, block$
|
|
20397
|
+
const wrapperClassName = classNames.join(linkProps?.className, className, block$4({
|
|
20395
20398
|
[`align-${align}`]: Boolean(align),
|
|
20396
20399
|
[`aspect-ratio-${aspectRatio}`]: Boolean(aspectRatio),
|
|
20397
20400
|
[`size-${size}`]: Boolean(size),
|
|
@@ -20597,8 +20600,8 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
20597
20600
|
})
|
|
20598
20601
|
});
|
|
20599
20602
|
});
|
|
20600
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
20601
|
-
Thumbnail.className = CLASSNAME$
|
|
20603
|
+
Thumbnail.displayName = COMPONENT_NAME$3;
|
|
20604
|
+
Thumbnail.className = CLASSNAME$4;
|
|
20602
20605
|
Thumbnail.defaultProps = DEFAULT_PROPS$3;
|
|
20603
20606
|
|
|
20604
20607
|
/**
|
|
@@ -20638,6 +20641,324 @@ const ThumbnailObjectFit = {
|
|
|
20638
20641
|
contain: 'contain'
|
|
20639
20642
|
};
|
|
20640
20643
|
|
|
20644
|
+
/**
|
|
20645
|
+
* Component display name.
|
|
20646
|
+
*/
|
|
20647
|
+
const COMPONENT_NAME$2 = 'TimePickerField';
|
|
20648
|
+
|
|
20649
|
+
/**
|
|
20650
|
+
* Component default class name (BEM root).
|
|
20651
|
+
*/
|
|
20652
|
+
const CLASSNAME$3 = 'lumx-time-picker-field';
|
|
20653
|
+
const {
|
|
20654
|
+
block: block$3
|
|
20655
|
+
} = bem(CLASSNAME$3);
|
|
20656
|
+
|
|
20657
|
+
/**
|
|
20658
|
+
* Translations consumed by `TimePickerField` (forwarded as-is to the underlying
|
|
20659
|
+
* `SelectTextField`).
|
|
20660
|
+
*/
|
|
20661
|
+
|
|
20662
|
+
/**
|
|
20663
|
+
* Core props for the `TimePickerField` template.
|
|
20664
|
+
*/
|
|
20665
|
+
|
|
20666
|
+
/**
|
|
20667
|
+
* Injected framework-specific components for TimePickerField rendering.
|
|
20668
|
+
*/
|
|
20669
|
+
|
|
20670
|
+
/**
|
|
20671
|
+
* `TimePickerField` core template.
|
|
20672
|
+
*
|
|
20673
|
+
* Renders a `SelectTextField<TimeOfDay>` with an option list built from
|
|
20674
|
+
* `buildTimeList`. Out-of-range options (strictly before `minTime` / after
|
|
20675
|
+
* `maxTime`) remain visible in the dropdown but are rendered as disabled.
|
|
20676
|
+
*
|
|
20677
|
+
* Framework-specific components are passed as a second argument by the
|
|
20678
|
+
* React/Vue wrappers.
|
|
20679
|
+
*
|
|
20680
|
+
* @param props Component props.
|
|
20681
|
+
* @param components Injected framework-specific components.
|
|
20682
|
+
* @return JSX element.
|
|
20683
|
+
*/
|
|
20684
|
+
const TimePickerField$1 = (props, {
|
|
20685
|
+
SelectTextField,
|
|
20686
|
+
Option
|
|
20687
|
+
}) => {
|
|
20688
|
+
const {
|
|
20689
|
+
options,
|
|
20690
|
+
translations,
|
|
20691
|
+
className,
|
|
20692
|
+
handleChange,
|
|
20693
|
+
handleSearch,
|
|
20694
|
+
handleBlur,
|
|
20695
|
+
...fowardedProps
|
|
20696
|
+
} = props;
|
|
20697
|
+
return /*#__PURE__*/jsx(SelectTextField, {
|
|
20698
|
+
...fowardedProps,
|
|
20699
|
+
className: block$3([className]),
|
|
20700
|
+
selectionType: "single",
|
|
20701
|
+
options: options,
|
|
20702
|
+
getOptionId: "name",
|
|
20703
|
+
renderOption: entry => /*#__PURE__*/jsx(Option, {
|
|
20704
|
+
isDisabled: entry.outOfRange
|
|
20705
|
+
}),
|
|
20706
|
+
onChange: handleChange,
|
|
20707
|
+
onSearch: handleSearch,
|
|
20708
|
+
onBlur: handleBlur,
|
|
20709
|
+
filter: "auto",
|
|
20710
|
+
translations: translations
|
|
20711
|
+
});
|
|
20712
|
+
};
|
|
20713
|
+
TimePickerField$1.displayName = COMPONENT_NAME$2;
|
|
20714
|
+
TimePickerField$1.className = CLASSNAME$3;
|
|
20715
|
+
|
|
20716
|
+
/**
|
|
20717
|
+
* Format a time-of-day as a locale-aware short time (e.g. `'10:30 AM'`,
|
|
20718
|
+
* `'10:30'`). Hour is `numeric` (not `'2-digit'`); some locales insert a
|
|
20719
|
+
* narrow no-break space (U+202F) before AM/PM.
|
|
20720
|
+
*/
|
|
20721
|
+
function formatTime(date, locale) {
|
|
20722
|
+
return date.toLocaleTimeString(locale, {
|
|
20723
|
+
hour: 'numeric',
|
|
20724
|
+
minute: '2-digit'
|
|
20725
|
+
});
|
|
20726
|
+
}
|
|
20727
|
+
|
|
20728
|
+
/**
|
|
20729
|
+
* Build a new `Date` with the given time-of-day, inheriting the date part of
|
|
20730
|
+
* `reference` (or today). Seconds/ms zeroed; `reference` is not mutated.
|
|
20731
|
+
*/
|
|
20732
|
+
function getDateAtTime({
|
|
20733
|
+
hour,
|
|
20734
|
+
minute
|
|
20735
|
+
}, reference) {
|
|
20736
|
+
const next = reference ? new Date(reference) : new Date();
|
|
20737
|
+
next.setHours(hour, minute, 0, 0);
|
|
20738
|
+
return next;
|
|
20739
|
+
}
|
|
20740
|
+
|
|
20741
|
+
/**
|
|
20742
|
+
* Return the time-of-day of `date` in minutes since 00:00 (date part ignored).
|
|
20743
|
+
*/
|
|
20744
|
+
function timeOfDayMinutes(date) {
|
|
20745
|
+
return date.getHours() * 60 + date.getMinutes();
|
|
20746
|
+
}
|
|
20747
|
+
|
|
20748
|
+
/**
|
|
20749
|
+
* A time-of-day (24h), independent of any date or time zone. Canonical
|
|
20750
|
+
* exchange shape for the time utilities and `TimePickerField`.
|
|
20751
|
+
*/
|
|
20752
|
+
|
|
20753
|
+
/** Options for `buildTimeList`. */
|
|
20754
|
+
|
|
20755
|
+
const MINUTES_IN_HOUR = 60;
|
|
20756
|
+
const MINUTES_IN_DAY = 24 * MINUTES_IN_HOUR;
|
|
20757
|
+
|
|
20758
|
+
/**
|
|
20759
|
+
* Build a full-day list of `TimeOfDay` entries spaced `step` minutes apart.
|
|
20760
|
+
* Out-of-bounds entries are kept (with `outOfRange: true`) so consumers can
|
|
20761
|
+
* render them as visible-but-unselectable. Returns `[]` for invalid `step`.
|
|
20762
|
+
*/
|
|
20763
|
+
function buildTimeList(options = {}) {
|
|
20764
|
+
const {
|
|
20765
|
+
step = 30,
|
|
20766
|
+
minTime,
|
|
20767
|
+
maxTime,
|
|
20768
|
+
locale
|
|
20769
|
+
} = options;
|
|
20770
|
+
if (!Number.isInteger(step) || step <= 0) {
|
|
20771
|
+
return [];
|
|
20772
|
+
}
|
|
20773
|
+
const minMinutes = minTime ? timeOfDayMinutes(minTime) : undefined;
|
|
20774
|
+
const maxMinutes = maxTime ? timeOfDayMinutes(maxTime) : undefined;
|
|
20775
|
+
const list = [];
|
|
20776
|
+
for (let minutes = 0; minutes < MINUTES_IN_DAY; minutes += step) {
|
|
20777
|
+
const hour = Math.floor(minutes / MINUTES_IN_HOUR);
|
|
20778
|
+
const minute = minutes % MINUTES_IN_HOUR;
|
|
20779
|
+
const outOfRange = minMinutes !== undefined && minutes < minMinutes || maxMinutes !== undefined && minutes > maxMinutes || undefined;
|
|
20780
|
+
const name = locale ? formatTime(getDateAtTime({
|
|
20781
|
+
hour,
|
|
20782
|
+
minute
|
|
20783
|
+
}), locale) : undefined;
|
|
20784
|
+
list.push({
|
|
20785
|
+
hour,
|
|
20786
|
+
minute,
|
|
20787
|
+
name,
|
|
20788
|
+
outOfRange
|
|
20789
|
+
});
|
|
20790
|
+
}
|
|
20791
|
+
return list;
|
|
20792
|
+
}
|
|
20793
|
+
|
|
20794
|
+
/**
|
|
20795
|
+
* Match a free-form time. Supports:
|
|
20796
|
+
* - 12h with am/pm suffix (`a`, `am`, `p`, `pm`, `a.m.`, `p.m.`), optional whitespace
|
|
20797
|
+
* - 24h with colon (`15:45`), dot (`15.45`), `h` (`15h45`) or no separator (`1545`)
|
|
20798
|
+
* - Optional seconds segment (ignored): `15:45:00`, `15.45.00`
|
|
20799
|
+
* - Optional ISO `T` prefix and trailing `Z` (UTC marker)
|
|
20800
|
+
*
|
|
20801
|
+
* Capture groups:
|
|
20802
|
+
* 1: hour, 2: minutes (optional), 3: am/pm marker (optional)
|
|
20803
|
+
*/
|
|
20804
|
+
const RE_TIME = /^T?(\d{1,2})(?:[:.h]?([0-5]\d)(?:[:.]?[0-5]\d)?)?\s*(a\.?m?\.?|p\.?m?\.?)?Z?$/i;
|
|
20805
|
+
|
|
20806
|
+
/**
|
|
20807
|
+
* Parse a free-form user time input into a 24h `TimeOfDay`. Accepts a wide
|
|
20808
|
+
* range of formats:
|
|
20809
|
+
*
|
|
20810
|
+
* - 12h AM/PM: `'2pm'`, `'2 PM'`, `'2:30pm'`, `'3.45 PM'`, `'3:45 p.m.'`
|
|
20811
|
+
* - 24h colon: `'10:30'`, `'15:45'`
|
|
20812
|
+
* - 24h dot (DE/FR/IT): `'15.45'`
|
|
20813
|
+
* - 24h French: `'15h45'`
|
|
20814
|
+
* - Military / no separator: `'1545'`, `'1030pm'`
|
|
20815
|
+
* - With seconds (ignored): `'15:45:00'`
|
|
20816
|
+
* - ISO 8601: `'T15:45'`, `'15:45Z'`
|
|
20817
|
+
*
|
|
20818
|
+
* Whitespace is trimmed. Returns `undefined` if no format matches.
|
|
20819
|
+
*/
|
|
20820
|
+
function parseTimeInput(raw) {
|
|
20821
|
+
if (typeof raw !== 'string') return undefined;
|
|
20822
|
+
const match = raw.trim().match(RE_TIME);
|
|
20823
|
+
if (!match) return undefined;
|
|
20824
|
+
const [, rawHour, rawMinute, ampm] = match;
|
|
20825
|
+
let hour = Number(rawHour);
|
|
20826
|
+
const minute = rawMinute ? Number(rawMinute) : 0;
|
|
20827
|
+
if (ampm) {
|
|
20828
|
+
// 12h: hour must be 1..12; convert to 24h (12am→0, 12pm→12).
|
|
20829
|
+
if (hour < 1 || hour > 12) return undefined;
|
|
20830
|
+
const isPm = ampm[0].toLowerCase() === 'p';
|
|
20831
|
+
if (hour === 12) hour = isPm ? 12 : 0;else if (isPm) hour += 12;
|
|
20832
|
+
} else if (hour > 23) {
|
|
20833
|
+
// 24h: hour must be 0..23.
|
|
20834
|
+
return undefined;
|
|
20835
|
+
}
|
|
20836
|
+
return {
|
|
20837
|
+
hour,
|
|
20838
|
+
minute
|
|
20839
|
+
};
|
|
20840
|
+
}
|
|
20841
|
+
|
|
20842
|
+
/**
|
|
20843
|
+
* Clamp `time` to `[minTime, maxTime]`. Inputs strictly before `minTime` snap
|
|
20844
|
+
* up; inputs strictly after `maxTime` snap down; otherwise returned unchanged.
|
|
20845
|
+
* Only the time-of-day of `minTime`/`maxTime` is used.
|
|
20846
|
+
*/
|
|
20847
|
+
function snapTimeToBounds(time, minTime, maxTime) {
|
|
20848
|
+
const totalMinutes = time.hour * 60 + time.minute;
|
|
20849
|
+
if (minTime && totalMinutes < timeOfDayMinutes(minTime)) {
|
|
20850
|
+
return {
|
|
20851
|
+
hour: minTime.getHours(),
|
|
20852
|
+
minute: minTime.getMinutes()
|
|
20853
|
+
};
|
|
20854
|
+
}
|
|
20855
|
+
if (maxTime && totalMinutes > timeOfDayMinutes(maxTime)) {
|
|
20856
|
+
return {
|
|
20857
|
+
hour: maxTime.getHours(),
|
|
20858
|
+
minute: maxTime.getMinutes()
|
|
20859
|
+
};
|
|
20860
|
+
}
|
|
20861
|
+
return time;
|
|
20862
|
+
}
|
|
20863
|
+
|
|
20864
|
+
/**
|
|
20865
|
+
* Returns `true` when the time-of-day of `date` matches `time` (hour and
|
|
20866
|
+
* minute). Seconds and milliseconds are ignored.
|
|
20867
|
+
*/
|
|
20868
|
+
function isDateOnTime(date, time) {
|
|
20869
|
+
return date.getHours() === time.hour && date.getMinutes() === time.minute;
|
|
20870
|
+
}
|
|
20871
|
+
|
|
20872
|
+
/**
|
|
20873
|
+
* Inherited SelectTextField props (less the parts owned by TimePickerField).
|
|
20874
|
+
*/
|
|
20875
|
+
|
|
20876
|
+
/**
|
|
20877
|
+
* `TimePickerField` props.
|
|
20878
|
+
*/
|
|
20879
|
+
|
|
20880
|
+
/**
|
|
20881
|
+
* A select-style picker for choosing a time of day. Wraps `SelectTextField`
|
|
20882
|
+
* with a generated list of times built from `step`, `minTime`, and `maxTime`.
|
|
20883
|
+
*
|
|
20884
|
+
* Out-of-range options (strictly before `minTime` or after `maxTime`) remain
|
|
20885
|
+
* visible in the dropdown but are rendered as disabled.
|
|
20886
|
+
*
|
|
20887
|
+
* Free-form typed input (e.g. `"10:30 PM"`, `"14"`, `"930"`) is parsed on blur.
|
|
20888
|
+
*
|
|
20889
|
+
* @param props Component props.
|
|
20890
|
+
* @return React element.
|
|
20891
|
+
*/
|
|
20892
|
+
const TimePickerField = props => {
|
|
20893
|
+
const {
|
|
20894
|
+
value,
|
|
20895
|
+
onChange,
|
|
20896
|
+
locale = getCurrentLocale(),
|
|
20897
|
+
step = 30,
|
|
20898
|
+
minTime,
|
|
20899
|
+
maxTime,
|
|
20900
|
+
className,
|
|
20901
|
+
theme,
|
|
20902
|
+
translations,
|
|
20903
|
+
...forwardedProps
|
|
20904
|
+
} = props;
|
|
20905
|
+
|
|
20906
|
+
// Build the option list — re-computed only when bounds/step/locale change.
|
|
20907
|
+
const timeList = useMemo(() => buildTimeList({
|
|
20908
|
+
step,
|
|
20909
|
+
minTime,
|
|
20910
|
+
maxTime,
|
|
20911
|
+
locale
|
|
20912
|
+
}), [step, minTime, maxTime, locale]);
|
|
20913
|
+
|
|
20914
|
+
// Track the user's typed input separately from the SelectTextField's internal search state,
|
|
20915
|
+
// so blur can convert it to a Date.
|
|
20916
|
+
const [searchValue, handleSearch] = useState('');
|
|
20917
|
+
|
|
20918
|
+
// Resolve the option that matches the current value (by time-of-day).
|
|
20919
|
+
const selectedOption = useMemo(() => {
|
|
20920
|
+
if (!value) return undefined;
|
|
20921
|
+
return {
|
|
20922
|
+
hour: value.getHours(),
|
|
20923
|
+
minute: value.getMinutes(),
|
|
20924
|
+
name: formatTime(value, locale)
|
|
20925
|
+
};
|
|
20926
|
+
}, [value, locale]);
|
|
20927
|
+
const handleChange = useCallback(next => {
|
|
20928
|
+
const date = next ? getDateAtTime(next, value) : undefined;
|
|
20929
|
+
onChange(date, forwardedProps.name);
|
|
20930
|
+
}, [forwardedProps.name, onChange, value]);
|
|
20931
|
+
const handleBlur = useCallback(() => {
|
|
20932
|
+
if (!searchValue) return;
|
|
20933
|
+
const parsed = parseTimeInput(searchValue);
|
|
20934
|
+
// Reset our local typed-value tracking; SelectTextField clears its own internal copy.
|
|
20935
|
+
handleSearch('');
|
|
20936
|
+
if (!parsed) return;
|
|
20937
|
+
|
|
20938
|
+
// Snap to bounds if needed, then dedup against the current value.
|
|
20939
|
+
const time = snapTimeToBounds(parsed, minTime, maxTime);
|
|
20940
|
+
if (value && isDateOnTime(value, time)) return;
|
|
20941
|
+
onChange(getDateAtTime(time, value), forwardedProps.name);
|
|
20942
|
+
}, [maxTime, minTime, forwardedProps.name, onChange, searchValue, value]);
|
|
20943
|
+
const searchInputValue = value ? formatTime(value, locale) : undefined;
|
|
20944
|
+
return TimePickerField$1({
|
|
20945
|
+
...forwardedProps,
|
|
20946
|
+
value: selectedOption,
|
|
20947
|
+
options: timeList,
|
|
20948
|
+
translations,
|
|
20949
|
+
className,
|
|
20950
|
+
theme,
|
|
20951
|
+
handleChange,
|
|
20952
|
+
handleSearch,
|
|
20953
|
+
handleBlur,
|
|
20954
|
+
searchInputValue
|
|
20955
|
+
}, {
|
|
20956
|
+
SelectTextField,
|
|
20957
|
+
Option: SelectTextField.Option
|
|
20958
|
+
});
|
|
20959
|
+
};
|
|
20960
|
+
TimePickerField.displayName = COMPONENT_NAME$2;
|
|
20961
|
+
|
|
20641
20962
|
/**
|
|
20642
20963
|
* Component display name.
|
|
20643
20964
|
*/
|
|
@@ -21109,5 +21430,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
21109
21430
|
UserBlock.className = CLASSNAME;
|
|
21110
21431
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
21111
21432
|
|
|
21112
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$
|
|
21433
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1s as CLASSNAME, COMPONENT_NAME$1t as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1b as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME$3 as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME$2 as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
21113
21434
|
//# sourceMappingURL=index.js.map
|