@lumx/react 4.26.1-alpha.0 → 4.27.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +29 -11
- package/index.js +743 -626
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -311,7 +311,7 @@ function modifier$1(baseName, modifiers) {
|
|
|
311
311
|
* block('button', { active: true, disabled: false }); // 'button button--active'
|
|
312
312
|
*/
|
|
313
313
|
|
|
314
|
-
function block$
|
|
314
|
+
function block$1f(baseName, modifiersOrAdditionalClasses, additionalClasses) {
|
|
315
315
|
let modifiers;
|
|
316
316
|
let classes;
|
|
317
317
|
if (typeof modifiersOrAdditionalClasses === 'string' || Array.isArray(modifiersOrAdditionalClasses)) {
|
|
@@ -346,7 +346,7 @@ const ACTION_ELEMENT = `${PREFIX}__action`;
|
|
|
346
346
|
const actionArea = Object.assign(/** Action area container class. Sets `position: relative`. */
|
|
347
347
|
() => PREFIX, {
|
|
348
348
|
/** Action element class. Adds a `::before` pseudo-element with `position: absolute; inset: 0` to expand the click area. */
|
|
349
|
-
action: modifiers => block$
|
|
349
|
+
action: modifiers => block$1f(ACTION_ELEMENT, modifiers)
|
|
350
350
|
});
|
|
351
351
|
|
|
352
352
|
/** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
|
|
@@ -468,8 +468,8 @@ const visuallyHidden = () => VISUALLY_HIDDEN;
|
|
|
468
468
|
* element('my-button', 'icon', { active: true }); // 'my-button__icon my-button__icon--active'
|
|
469
469
|
*/
|
|
470
470
|
|
|
471
|
-
function element$
|
|
472
|
-
return block$
|
|
471
|
+
function element$V(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
472
|
+
return block$1f(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
/**
|
|
@@ -477,10 +477,10 @@ function element$U(baseClass, elem, modifiersOrAdditionalClasses, additionalClas
|
|
|
477
477
|
*/
|
|
478
478
|
function bem(baseName) {
|
|
479
479
|
function blockFn(modifiersOrAdditionalClasses, additionalClasses) {
|
|
480
|
-
return block$
|
|
480
|
+
return block$1f(baseName, modifiersOrAdditionalClasses, additionalClasses);
|
|
481
481
|
}
|
|
482
482
|
function elementFn(elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
483
|
-
return element$
|
|
483
|
+
return element$V(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
|
|
484
484
|
}
|
|
485
485
|
return {
|
|
486
486
|
block: blockFn,
|
|
@@ -560,15 +560,15 @@ const CONFIG$1 = {
|
|
|
560
560
|
/**
|
|
561
561
|
* Component display name.
|
|
562
562
|
*/
|
|
563
|
-
const COMPONENT_NAME$
|
|
563
|
+
const COMPONENT_NAME$1J = 'AlertDialog';
|
|
564
564
|
|
|
565
565
|
/**
|
|
566
566
|
* Component default class name and class prefix.
|
|
567
567
|
*/
|
|
568
|
-
const CLASSNAME$
|
|
568
|
+
const CLASSNAME$1F = 'lumx-alert-dialog';
|
|
569
569
|
const {
|
|
570
|
-
block: block$
|
|
571
|
-
} = bem(CLASSNAME$
|
|
570
|
+
block: block$1e
|
|
571
|
+
} = bem(CLASSNAME$1F);
|
|
572
572
|
|
|
573
573
|
/**
|
|
574
574
|
* Component default props.
|
|
@@ -636,7 +636,7 @@ const AlertDialog$1 = props => {
|
|
|
636
636
|
'aria-describedby': descriptionId,
|
|
637
637
|
...dialogProps
|
|
638
638
|
},
|
|
639
|
-
className: classnames(className, block$
|
|
639
|
+
className: classnames(className, block$1e({
|
|
640
640
|
[`kind-${kind}`]: Boolean(kind)
|
|
641
641
|
})),
|
|
642
642
|
...forwardedProps,
|
|
@@ -734,8 +734,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
734
734
|
...forwardedProps
|
|
735
735
|
});
|
|
736
736
|
});
|
|
737
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
738
|
-
AlertDialog.className = CLASSNAME$
|
|
737
|
+
AlertDialog.displayName = COMPONENT_NAME$1J;
|
|
738
|
+
AlertDialog.className = CLASSNAME$1F;
|
|
739
739
|
AlertDialog.defaultProps = DEFAULT_PROPS$1l;
|
|
740
740
|
|
|
741
741
|
/**
|
|
@@ -828,12 +828,12 @@ function useDisableStateProps(props) {
|
|
|
828
828
|
/**
|
|
829
829
|
* Component display name.
|
|
830
830
|
*/
|
|
831
|
-
const COMPONENT_NAME$
|
|
831
|
+
const COMPONENT_NAME$1I = 'Autocomplete';
|
|
832
832
|
|
|
833
833
|
/**
|
|
834
834
|
* Component default class name and class prefix.
|
|
835
835
|
*/
|
|
836
|
-
const CLASSNAME$
|
|
836
|
+
const CLASSNAME$1E = 'lumx-autocomplete';
|
|
837
837
|
|
|
838
838
|
/**
|
|
839
839
|
* Component default props.
|
|
@@ -901,7 +901,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
901
901
|
return /*#__PURE__*/jsxs("div", {
|
|
902
902
|
ref: ref,
|
|
903
903
|
...forwardedProps,
|
|
904
|
-
className: classNames.join(className, CLASSNAME$
|
|
904
|
+
className: classNames.join(className, CLASSNAME$1E),
|
|
905
905
|
children: [/*#__PURE__*/jsx(TextField, {
|
|
906
906
|
...textFieldProps,
|
|
907
907
|
chips: chips,
|
|
@@ -941,19 +941,19 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
941
941
|
})]
|
|
942
942
|
});
|
|
943
943
|
});
|
|
944
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
945
|
-
Autocomplete.className = CLASSNAME$
|
|
944
|
+
Autocomplete.displayName = COMPONENT_NAME$1I;
|
|
945
|
+
Autocomplete.className = CLASSNAME$1E;
|
|
946
946
|
Autocomplete.defaultProps = DEFAULT_PROPS$1k;
|
|
947
947
|
|
|
948
948
|
/**
|
|
949
949
|
* Component display name.
|
|
950
950
|
*/
|
|
951
|
-
const COMPONENT_NAME$
|
|
951
|
+
const COMPONENT_NAME$1H = 'AutocompleteMultiple';
|
|
952
952
|
|
|
953
953
|
/**
|
|
954
954
|
* Component default class name and class prefix.
|
|
955
955
|
*/
|
|
956
|
-
const CLASSNAME$
|
|
956
|
+
const CLASSNAME$1D = 'lumx-autocomplete-multiple';
|
|
957
957
|
|
|
958
958
|
/**
|
|
959
959
|
* Component default props.
|
|
@@ -1034,7 +1034,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1034
1034
|
ref: ref,
|
|
1035
1035
|
...forwardedProps,
|
|
1036
1036
|
anchorToInput: anchorToInput,
|
|
1037
|
-
className: classNames.join(className, CLASSNAME$
|
|
1037
|
+
className: classNames.join(className, CLASSNAME$1D),
|
|
1038
1038
|
name: name,
|
|
1039
1039
|
value: value,
|
|
1040
1040
|
onChange: onChange,
|
|
@@ -1067,23 +1067,23 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1067
1067
|
children: children
|
|
1068
1068
|
});
|
|
1069
1069
|
});
|
|
1070
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
1071
|
-
AutocompleteMultiple.className = CLASSNAME$
|
|
1070
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1H;
|
|
1071
|
+
AutocompleteMultiple.className = CLASSNAME$1D;
|
|
1072
1072
|
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1j;
|
|
1073
1073
|
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Component display name.
|
|
1076
1076
|
*/
|
|
1077
|
-
const COMPONENT_NAME$
|
|
1077
|
+
const COMPONENT_NAME$1G = 'Avatar';
|
|
1078
1078
|
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Component default class name and class prefix.
|
|
1081
1081
|
*/
|
|
1082
|
-
const CLASSNAME$
|
|
1082
|
+
const CLASSNAME$1C = 'lumx-avatar';
|
|
1083
1083
|
const {
|
|
1084
|
-
block: block$
|
|
1085
|
-
element: element$
|
|
1086
|
-
} = bem(CLASSNAME$
|
|
1084
|
+
block: block$1d,
|
|
1085
|
+
element: element$U
|
|
1086
|
+
} = bem(CLASSNAME$1C);
|
|
1087
1087
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Component default props.
|
|
@@ -1113,15 +1113,15 @@ const Avatar$1 = props => {
|
|
|
1113
1113
|
return /*#__PURE__*/jsxs("div", {
|
|
1114
1114
|
ref: ref,
|
|
1115
1115
|
...forwardedProps,
|
|
1116
|
-
className: classnames(className, block$
|
|
1116
|
+
className: classnames(className, block$1d({
|
|
1117
1117
|
[`size-${size}`]: Boolean(size),
|
|
1118
1118
|
[`theme-${theme}`]: Boolean(theme)
|
|
1119
1119
|
})),
|
|
1120
1120
|
children: [image, actions && /*#__PURE__*/jsx("div", {
|
|
1121
|
-
className: element$
|
|
1121
|
+
className: element$U('actions'),
|
|
1122
1122
|
children: actions
|
|
1123
1123
|
}), badge && /*#__PURE__*/jsx("div", {
|
|
1124
|
-
className: element$
|
|
1124
|
+
className: element$U('badge'),
|
|
1125
1125
|
children: badge
|
|
1126
1126
|
})]
|
|
1127
1127
|
});
|
|
@@ -1162,7 +1162,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1162
1162
|
image: /*#__PURE__*/jsx(Thumbnail, {
|
|
1163
1163
|
linkProps: linkProps,
|
|
1164
1164
|
linkAs: linkAs,
|
|
1165
|
-
className: element$
|
|
1165
|
+
className: element$U('thumbnail'),
|
|
1166
1166
|
onClick: onClick,
|
|
1167
1167
|
onKeyPress: onKeyPress,
|
|
1168
1168
|
...thumbnailProps,
|
|
@@ -1174,22 +1174,22 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1174
1174
|
})
|
|
1175
1175
|
});
|
|
1176
1176
|
});
|
|
1177
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
1178
|
-
Avatar.className = CLASSNAME$
|
|
1177
|
+
Avatar.displayName = COMPONENT_NAME$1G;
|
|
1178
|
+
Avatar.className = CLASSNAME$1C;
|
|
1179
1179
|
Avatar.defaultProps = DEFAULT_PROPS$1i;
|
|
1180
1180
|
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Component display name.
|
|
1183
1183
|
*/
|
|
1184
|
-
const COMPONENT_NAME$
|
|
1184
|
+
const COMPONENT_NAME$1F = 'Badge';
|
|
1185
1185
|
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Component default class name and class prefix.
|
|
1188
1188
|
*/
|
|
1189
|
-
const CLASSNAME$
|
|
1189
|
+
const CLASSNAME$1B = 'lumx-badge';
|
|
1190
1190
|
const {
|
|
1191
|
-
block: block$
|
|
1192
|
-
} = bem(CLASSNAME$
|
|
1191
|
+
block: block$1c
|
|
1192
|
+
} = bem(CLASSNAME$1B);
|
|
1193
1193
|
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Component default props.
|
|
@@ -1215,14 +1215,14 @@ const Badge$1 = props => {
|
|
|
1215
1215
|
return /*#__PURE__*/jsx("div", {
|
|
1216
1216
|
ref: ref,
|
|
1217
1217
|
...forwardedProps,
|
|
1218
|
-
className: classnames(className, block$
|
|
1218
|
+
className: classnames(className, block$1c({
|
|
1219
1219
|
[`color-${color}`]: Boolean(color)
|
|
1220
1220
|
})),
|
|
1221
1221
|
children: children
|
|
1222
1222
|
});
|
|
1223
1223
|
};
|
|
1224
|
-
Badge$1.displayName = COMPONENT_NAME$
|
|
1225
|
-
Badge$1.className = CLASSNAME$
|
|
1224
|
+
Badge$1.displayName = COMPONENT_NAME$1F;
|
|
1225
|
+
Badge$1.className = CLASSNAME$1B;
|
|
1226
1226
|
Badge$1.defaultProps = DEFAULT_PROPS$1h;
|
|
1227
1227
|
|
|
1228
1228
|
/**
|
|
@@ -1246,12 +1246,12 @@ Badge.displayName = Badge$1.displayName;
|
|
|
1246
1246
|
Badge.className = Badge$1.className;
|
|
1247
1247
|
Badge.defaultProps = Badge$1.defaultProps;
|
|
1248
1248
|
|
|
1249
|
-
const COMPONENT_NAME$
|
|
1250
|
-
const CLASSNAME$
|
|
1249
|
+
const COMPONENT_NAME$1E = 'BadgeWrapper';
|
|
1250
|
+
const CLASSNAME$1A = 'lumx-badge-wrapper';
|
|
1251
1251
|
const {
|
|
1252
|
-
block: block$
|
|
1253
|
-
element: element$
|
|
1254
|
-
} = bem(CLASSNAME$
|
|
1252
|
+
block: block$1b,
|
|
1253
|
+
element: element$T
|
|
1254
|
+
} = bem(CLASSNAME$1A);
|
|
1255
1255
|
const BadgeWrapper$1 = props => {
|
|
1256
1256
|
const {
|
|
1257
1257
|
badge,
|
|
@@ -1263,9 +1263,9 @@ const BadgeWrapper$1 = props => {
|
|
|
1263
1263
|
return /*#__PURE__*/jsxs("div", {
|
|
1264
1264
|
ref: ref,
|
|
1265
1265
|
...forwardedProps,
|
|
1266
|
-
className: classnames(className, block$
|
|
1266
|
+
className: classnames(className, block$1b()),
|
|
1267
1267
|
children: [children, badge && /*#__PURE__*/jsx("div", {
|
|
1268
|
-
className: element$
|
|
1268
|
+
className: element$T('badge'),
|
|
1269
1269
|
children: badge
|
|
1270
1270
|
})]
|
|
1271
1271
|
});
|
|
@@ -1277,8 +1277,8 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
1277
1277
|
ref
|
|
1278
1278
|
});
|
|
1279
1279
|
});
|
|
1280
|
-
BadgeWrapper.displayName = COMPONENT_NAME$
|
|
1281
|
-
BadgeWrapper.className = CLASSNAME$
|
|
1280
|
+
BadgeWrapper.displayName = COMPONENT_NAME$1E;
|
|
1281
|
+
BadgeWrapper.className = CLASSNAME$1A;
|
|
1282
1282
|
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Render clickable element (link, button or custom element)
|
|
@@ -1328,7 +1328,7 @@ const RawClickable = props => {
|
|
|
1328
1328
|
/**
|
|
1329
1329
|
* Component display name.
|
|
1330
1330
|
*/
|
|
1331
|
-
const COMPONENT_NAME$
|
|
1331
|
+
const COMPONENT_NAME$1D = 'ButtonRoot';
|
|
1332
1332
|
const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
|
|
1333
1333
|
const {
|
|
1334
1334
|
block: buttonWrapperBlock
|
|
@@ -1426,7 +1426,7 @@ const ButtonRoot = props => {
|
|
|
1426
1426
|
children
|
|
1427
1427
|
});
|
|
1428
1428
|
};
|
|
1429
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
1429
|
+
ButtonRoot.displayName = COMPONENT_NAME$1D;
|
|
1430
1430
|
ButtonRoot.defaultProps = {};
|
|
1431
1431
|
|
|
1432
1432
|
/**
|
|
@@ -1436,15 +1436,15 @@ ButtonRoot.defaultProps = {};
|
|
|
1436
1436
|
/**
|
|
1437
1437
|
* Component display name.
|
|
1438
1438
|
*/
|
|
1439
|
-
const COMPONENT_NAME$
|
|
1439
|
+
const COMPONENT_NAME$1C = 'Button';
|
|
1440
1440
|
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Component default class name and class prefix.
|
|
1443
1443
|
*/
|
|
1444
|
-
const CLASSNAME$
|
|
1444
|
+
const CLASSNAME$1z = 'lumx-button';
|
|
1445
1445
|
const {
|
|
1446
1446
|
modifier
|
|
1447
|
-
} = bem(CLASSNAME$
|
|
1447
|
+
} = bem(CLASSNAME$1z);
|
|
1448
1448
|
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Component default props.
|
|
@@ -1481,8 +1481,8 @@ const Button$1 = props => {
|
|
|
1481
1481
|
variant: 'button'
|
|
1482
1482
|
});
|
|
1483
1483
|
};
|
|
1484
|
-
Button$1.displayName = COMPONENT_NAME$
|
|
1485
|
-
Button$1.className = CLASSNAME$
|
|
1484
|
+
Button$1.displayName = COMPONENT_NAME$1C;
|
|
1485
|
+
Button$1.className = CLASSNAME$1z;
|
|
1486
1486
|
Button$1.defaultProps = DEFAULT_PROPS$1g;
|
|
1487
1487
|
|
|
1488
1488
|
/**
|
|
@@ -1556,21 +1556,21 @@ const Button = forwardRef((props, ref) => {
|
|
|
1556
1556
|
})
|
|
1557
1557
|
});
|
|
1558
1558
|
});
|
|
1559
|
-
Button.displayName = COMPONENT_NAME$
|
|
1560
|
-
Button.className = CLASSNAME$
|
|
1559
|
+
Button.displayName = COMPONENT_NAME$1C;
|
|
1560
|
+
Button.className = CLASSNAME$1z;
|
|
1561
1561
|
Button.defaultProps = DEFAULT_PROPS$1g;
|
|
1562
1562
|
|
|
1563
|
-
const COMPONENT_NAME$
|
|
1563
|
+
const COMPONENT_NAME$1B = 'Icon';
|
|
1564
1564
|
const IconClassName = 'lumx-icon';
|
|
1565
1565
|
|
|
1566
1566
|
/**
|
|
1567
1567
|
* Defines the props of the component.
|
|
1568
1568
|
*/
|
|
1569
1569
|
|
|
1570
|
-
const CLASSNAME$
|
|
1570
|
+
const CLASSNAME$1y = IconClassName;
|
|
1571
1571
|
const {
|
|
1572
|
-
block: block$
|
|
1573
|
-
} = bem(CLASSNAME$
|
|
1572
|
+
block: block$1a
|
|
1573
|
+
} = bem(CLASSNAME$1y);
|
|
1574
1574
|
|
|
1575
1575
|
/**
|
|
1576
1576
|
* Component default props.
|
|
@@ -1624,7 +1624,7 @@ const Icon$1 = props => {
|
|
|
1624
1624
|
return /*#__PURE__*/jsx("i", {
|
|
1625
1625
|
ref: ref,
|
|
1626
1626
|
...forwardedProps,
|
|
1627
|
-
className: classnames(className, block$
|
|
1627
|
+
className: classnames(className, block$1a({
|
|
1628
1628
|
[`color-${iconColor}`]: Boolean(iconColor),
|
|
1629
1629
|
[`color-variant-${iconColorVariant}`]: Boolean(iconColorVariant),
|
|
1630
1630
|
'has-shape': hasShape,
|
|
@@ -1653,19 +1653,19 @@ const Icon$1 = props => {
|
|
|
1653
1653
|
})
|
|
1654
1654
|
});
|
|
1655
1655
|
};
|
|
1656
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1657
|
-
Icon$1.className = CLASSNAME$
|
|
1656
|
+
Icon$1.displayName = COMPONENT_NAME$1B;
|
|
1657
|
+
Icon$1.className = CLASSNAME$1y;
|
|
1658
1658
|
Icon$1.defaultProps = DEFAULT_PROPS$1f;
|
|
1659
1659
|
|
|
1660
1660
|
/**
|
|
1661
1661
|
* Component display name.
|
|
1662
1662
|
*/
|
|
1663
|
-
const COMPONENT_NAME$
|
|
1663
|
+
const COMPONENT_NAME$1A = 'IconButton';
|
|
1664
1664
|
|
|
1665
1665
|
/**
|
|
1666
1666
|
* Component default class name and class prefix.
|
|
1667
1667
|
*/
|
|
1668
|
-
const CLASSNAME$
|
|
1668
|
+
const CLASSNAME$1x = 'lumx-icon-button';
|
|
1669
1669
|
|
|
1670
1670
|
/**
|
|
1671
1671
|
* Component default props.
|
|
@@ -1706,8 +1706,8 @@ const IconButton$1 = props => {
|
|
|
1706
1706
|
children: defaultChildren
|
|
1707
1707
|
});
|
|
1708
1708
|
};
|
|
1709
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1710
|
-
IconButton$1.className = CLASSNAME$
|
|
1709
|
+
IconButton$1.displayName = COMPONENT_NAME$1A;
|
|
1710
|
+
IconButton$1.className = CLASSNAME$1x;
|
|
1711
1711
|
IconButton$1.defaultProps = DEFAULT_PROPS$1e;
|
|
1712
1712
|
|
|
1713
1713
|
/**
|
|
@@ -1751,19 +1751,19 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1751
1751
|
})
|
|
1752
1752
|
});
|
|
1753
1753
|
});
|
|
1754
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1755
|
-
IconButton.className = CLASSNAME$
|
|
1754
|
+
IconButton.displayName = COMPONENT_NAME$1A;
|
|
1755
|
+
IconButton.className = CLASSNAME$1x;
|
|
1756
1756
|
IconButton.defaultProps = DEFAULT_PROPS$1e;
|
|
1757
1757
|
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Component display name.
|
|
1760
1760
|
*/
|
|
1761
|
-
const COMPONENT_NAME$
|
|
1761
|
+
const COMPONENT_NAME$1z = 'ButtonGroup';
|
|
1762
1762
|
|
|
1763
1763
|
/**
|
|
1764
1764
|
* Component default class name and class prefix.
|
|
1765
1765
|
*/
|
|
1766
|
-
const CLASSNAME$
|
|
1766
|
+
const CLASSNAME$1w = 'lumx-button-group';
|
|
1767
1767
|
|
|
1768
1768
|
/**
|
|
1769
1769
|
* Component default props.
|
|
@@ -1784,12 +1784,12 @@ const ButtonGroup$1 = props => {
|
|
|
1784
1784
|
} = props;
|
|
1785
1785
|
return /*#__PURE__*/jsx("div", {
|
|
1786
1786
|
...forwardedProps,
|
|
1787
|
-
className: classnames(className, CLASSNAME$
|
|
1787
|
+
className: classnames(className, CLASSNAME$1w),
|
|
1788
1788
|
children: children
|
|
1789
1789
|
});
|
|
1790
1790
|
};
|
|
1791
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1792
|
-
ButtonGroup$1.className = CLASSNAME$
|
|
1791
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1z;
|
|
1792
|
+
ButtonGroup$1.className = CLASSNAME$1w;
|
|
1793
1793
|
ButtonGroup$1.defaultProps = DEFAULT_PROPS$1d;
|
|
1794
1794
|
|
|
1795
1795
|
/**
|
|
@@ -1805,22 +1805,22 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1805
1805
|
...props
|
|
1806
1806
|
});
|
|
1807
1807
|
});
|
|
1808
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1809
|
-
ButtonGroup.className = CLASSNAME$
|
|
1808
|
+
ButtonGroup.displayName = COMPONENT_NAME$1z;
|
|
1809
|
+
ButtonGroup.className = CLASSNAME$1w;
|
|
1810
1810
|
ButtonGroup.defaultProps = DEFAULT_PROPS$1d;
|
|
1811
1811
|
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Component display name.
|
|
1814
1814
|
*/
|
|
1815
|
-
const COMPONENT_NAME$
|
|
1815
|
+
const COMPONENT_NAME$1y = 'Card';
|
|
1816
1816
|
|
|
1817
1817
|
/**
|
|
1818
1818
|
* Component default class name and class prefix.
|
|
1819
1819
|
*/
|
|
1820
|
-
const CLASSNAME$
|
|
1820
|
+
const CLASSNAME$1v = 'lumx-card';
|
|
1821
1821
|
const {
|
|
1822
|
-
block: block$
|
|
1823
|
-
} = bem(CLASSNAME$
|
|
1822
|
+
block: block$19
|
|
1823
|
+
} = bem(CLASSNAME$1v);
|
|
1824
1824
|
|
|
1825
1825
|
/**
|
|
1826
1826
|
* Component default props.
|
|
@@ -1849,7 +1849,7 @@ const Card$1 = props => {
|
|
|
1849
1849
|
return /*#__PURE__*/jsx(Element, {
|
|
1850
1850
|
ref: ref,
|
|
1851
1851
|
...forwardedProps,
|
|
1852
|
-
className: classnames(className, block$
|
|
1852
|
+
className: classnames(className, block$19({
|
|
1853
1853
|
[`elevation-${elevation}`]: Boolean(elevation)
|
|
1854
1854
|
})),
|
|
1855
1855
|
children: children
|
|
@@ -1876,17 +1876,17 @@ const Card = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
1876
1876
|
ref
|
|
1877
1877
|
});
|
|
1878
1878
|
}), {
|
|
1879
|
-
displayName: COMPONENT_NAME$
|
|
1880
|
-
className: CLASSNAME$
|
|
1879
|
+
displayName: COMPONENT_NAME$1y,
|
|
1880
|
+
className: CLASSNAME$1v,
|
|
1881
1881
|
defaultProps: DEFAULT_PROPS$1c
|
|
1882
1882
|
});
|
|
1883
1883
|
|
|
1884
|
-
const COMPONENT_NAME$
|
|
1884
|
+
const COMPONENT_NAME$1x = 'InputLabel';
|
|
1885
1885
|
const InputLabelClassName = 'lumx-input-label';
|
|
1886
|
-
const CLASSNAME$
|
|
1886
|
+
const CLASSNAME$1u = InputLabelClassName;
|
|
1887
1887
|
const {
|
|
1888
|
-
block: block$
|
|
1889
|
-
} = bem(CLASSNAME$
|
|
1888
|
+
block: block$18
|
|
1889
|
+
} = bem(CLASSNAME$1u);
|
|
1890
1890
|
const DEFAULT_PROPS$1b = {};
|
|
1891
1891
|
|
|
1892
1892
|
/**
|
|
@@ -1909,7 +1909,7 @@ function InputLabel$1(props) {
|
|
|
1909
1909
|
ref: ref,
|
|
1910
1910
|
...forwardedProps,
|
|
1911
1911
|
htmlFor: htmlFor,
|
|
1912
|
-
className: classnames(className, block$
|
|
1912
|
+
className: classnames(className, block$18({
|
|
1913
1913
|
'is-required': isRequired,
|
|
1914
1914
|
[`theme-${theme}`]: Boolean(theme),
|
|
1915
1915
|
'has-custom-typography': Boolean(typography$1)
|
|
@@ -1917,8 +1917,8 @@ function InputLabel$1(props) {
|
|
|
1917
1917
|
children: children
|
|
1918
1918
|
});
|
|
1919
1919
|
}
|
|
1920
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1921
|
-
InputLabel$1.className = CLASSNAME$
|
|
1920
|
+
InputLabel$1.displayName = COMPONENT_NAME$1x;
|
|
1921
|
+
InputLabel$1.className = CLASSNAME$1u;
|
|
1922
1922
|
InputLabel$1.defaultProps = DEFAULT_PROPS$1b;
|
|
1923
1923
|
|
|
1924
1924
|
const INPUT_HELPER_CONFIGURATION = {
|
|
@@ -1933,17 +1933,17 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
};
|
|
1935
1935
|
|
|
1936
|
-
const COMPONENT_NAME$
|
|
1936
|
+
const COMPONENT_NAME$1w = 'InputHelper';
|
|
1937
1937
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1938
1938
|
|
|
1939
1939
|
/**
|
|
1940
1940
|
* Defines the props of the component.
|
|
1941
1941
|
*/
|
|
1942
1942
|
|
|
1943
|
-
const CLASSNAME$
|
|
1943
|
+
const CLASSNAME$1t = InputHelperClassName;
|
|
1944
1944
|
const {
|
|
1945
|
-
block: block$
|
|
1946
|
-
} = bem(CLASSNAME$
|
|
1945
|
+
block: block$17
|
|
1946
|
+
} = bem(CLASSNAME$1t);
|
|
1947
1947
|
|
|
1948
1948
|
/**
|
|
1949
1949
|
* Component default props.
|
|
@@ -1970,15 +1970,15 @@ function InputHelper$1(props) {
|
|
|
1970
1970
|
return /*#__PURE__*/jsx("p", {
|
|
1971
1971
|
ref: ref,
|
|
1972
1972
|
...forwardedProps,
|
|
1973
|
-
className: classnames(className, block$
|
|
1973
|
+
className: classnames(className, block$17({
|
|
1974
1974
|
[`color-${color}`]: Boolean(color),
|
|
1975
1975
|
[`theme-${theme}`]: Boolean(theme)
|
|
1976
1976
|
})),
|
|
1977
1977
|
children: children
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1981
|
-
InputHelper$1.className = CLASSNAME$
|
|
1980
|
+
InputHelper$1.displayName = COMPONENT_NAME$1w;
|
|
1981
|
+
InputHelper$1.className = CLASSNAME$1t;
|
|
1982
1982
|
InputHelper$1.defaultProps = DEFAULT_PROPS$1a;
|
|
1983
1983
|
|
|
1984
1984
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
@@ -1990,16 +1990,16 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Component display name.
|
|
1992
1992
|
*/
|
|
1993
|
-
const COMPONENT_NAME$
|
|
1993
|
+
const COMPONENT_NAME$1v = 'Checkbox';
|
|
1994
1994
|
|
|
1995
1995
|
/**
|
|
1996
1996
|
* Component default class name and class prefix.
|
|
1997
1997
|
*/
|
|
1998
|
-
const CLASSNAME$
|
|
1998
|
+
const CLASSNAME$1s = 'lumx-checkbox';
|
|
1999
1999
|
const {
|
|
2000
|
-
block: block$
|
|
2001
|
-
element: element$
|
|
2002
|
-
} = bem(CLASSNAME$
|
|
2000
|
+
block: block$16,
|
|
2001
|
+
element: element$S
|
|
2002
|
+
} = bem(CLASSNAME$1s);
|
|
2003
2003
|
|
|
2004
2004
|
/**
|
|
2005
2005
|
* Checkbox component.
|
|
@@ -2035,7 +2035,7 @@ const Checkbox$1 = props => {
|
|
|
2035
2035
|
return /*#__PURE__*/jsxs("div", {
|
|
2036
2036
|
ref: ref,
|
|
2037
2037
|
...forwardedProps,
|
|
2038
|
-
className: classnames(className, block$
|
|
2038
|
+
className: classnames(className, block$16({
|
|
2039
2039
|
// Whether state is intermediate class name will "-checked"
|
|
2040
2040
|
'is-checked': intermediateState ? true : isChecked,
|
|
2041
2041
|
'is-disabled': isDisabled,
|
|
@@ -2043,12 +2043,12 @@ const Checkbox$1 = props => {
|
|
|
2043
2043
|
[`theme-${theme}`]: Boolean(theme)
|
|
2044
2044
|
})),
|
|
2045
2045
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2046
|
-
className: element$
|
|
2046
|
+
className: element$S('input-wrapper'),
|
|
2047
2047
|
children: [/*#__PURE__*/jsx("input", {
|
|
2048
2048
|
ref: inputRef,
|
|
2049
2049
|
type: "checkbox",
|
|
2050
2050
|
id: inputId,
|
|
2051
|
-
className: element$
|
|
2051
|
+
className: element$S('input-native'),
|
|
2052
2052
|
name: name,
|
|
2053
2053
|
value: value,
|
|
2054
2054
|
checked: isChecked,
|
|
@@ -2060,26 +2060,26 @@ const Checkbox$1 = props => {
|
|
|
2060
2060
|
} : {}),
|
|
2061
2061
|
...inputProps
|
|
2062
2062
|
}), /*#__PURE__*/jsxs("div", {
|
|
2063
|
-
className: element$
|
|
2063
|
+
className: element$S('input-placeholder'),
|
|
2064
2064
|
children: [/*#__PURE__*/jsx("div", {
|
|
2065
|
-
className: element$
|
|
2065
|
+
className: element$S('input-background')
|
|
2066
2066
|
}), /*#__PURE__*/jsx("div", {
|
|
2067
|
-
className: element$
|
|
2067
|
+
className: element$S('input-indicator'),
|
|
2068
2068
|
children: Icon$1({
|
|
2069
2069
|
icon: intermediateState ? mdiMinus : mdiCheck
|
|
2070
2070
|
})
|
|
2071
2071
|
})]
|
|
2072
2072
|
})]
|
|
2073
2073
|
}), /*#__PURE__*/jsxs("div", {
|
|
2074
|
-
className: element$
|
|
2074
|
+
className: element$S('content'),
|
|
2075
2075
|
children: [label && InputLabel$1({
|
|
2076
2076
|
htmlFor: inputId,
|
|
2077
|
-
className: element$
|
|
2077
|
+
className: element$S('label'),
|
|
2078
2078
|
theme,
|
|
2079
2079
|
children: label
|
|
2080
2080
|
}), helper && InputHelper$1({
|
|
2081
2081
|
id: `${inputId}-helper`,
|
|
2082
|
-
className: element$
|
|
2082
|
+
className: element$S('helper'),
|
|
2083
2083
|
theme,
|
|
2084
2084
|
children: helper
|
|
2085
2085
|
})]
|
|
@@ -2154,8 +2154,8 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
2154
2154
|
inputId
|
|
2155
2155
|
});
|
|
2156
2156
|
});
|
|
2157
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
2158
|
-
Checkbox.className = CLASSNAME$
|
|
2157
|
+
Checkbox.displayName = COMPONENT_NAME$1v;
|
|
2158
|
+
Checkbox.className = CLASSNAME$1s;
|
|
2159
2159
|
Checkbox.defaultProps = DEFAULT_PROPS$19;
|
|
2160
2160
|
|
|
2161
2161
|
/**
|
|
@@ -2177,16 +2177,16 @@ function useStopPropagation(handler) {
|
|
|
2177
2177
|
/**
|
|
2178
2178
|
* Component display name.
|
|
2179
2179
|
*/
|
|
2180
|
-
const COMPONENT_NAME$
|
|
2180
|
+
const COMPONENT_NAME$1u = 'Chip';
|
|
2181
2181
|
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Component default class name and class prefix.
|
|
2184
2184
|
*/
|
|
2185
|
-
const CLASSNAME$
|
|
2185
|
+
const CLASSNAME$1r = 'lumx-chip';
|
|
2186
2186
|
const {
|
|
2187
|
-
block: block$
|
|
2188
|
-
element: element$
|
|
2189
|
-
} = bem(CLASSNAME$
|
|
2187
|
+
block: block$15,
|
|
2188
|
+
element: element$R
|
|
2189
|
+
} = bem(CLASSNAME$1r);
|
|
2190
2190
|
|
|
2191
2191
|
/**
|
|
2192
2192
|
* Component default props.
|
|
@@ -2253,7 +2253,7 @@ const Chip$1 = props => {
|
|
|
2253
2253
|
...forwardedProps,
|
|
2254
2254
|
href: !disabledStateProps.disabled ? href : undefined,
|
|
2255
2255
|
ref: ref,
|
|
2256
|
-
className: classnames(className, block$
|
|
2256
|
+
className: classnames(className, block$15({
|
|
2257
2257
|
'is-clickable': isClickable,
|
|
2258
2258
|
[`color-${chipColor}`]: Boolean(chipColor),
|
|
2259
2259
|
'is-disabled': isAnyDisabled,
|
|
@@ -2270,19 +2270,19 @@ const Chip$1 = props => {
|
|
|
2270
2270
|
/*#__PURE__*/
|
|
2271
2271
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
2272
2272
|
jsx("div", {
|
|
2273
|
-
className: element$
|
|
2273
|
+
className: element$R('before', {
|
|
2274
2274
|
'is-clickable': hasBeforeClick
|
|
2275
2275
|
}),
|
|
2276
2276
|
onClick: handleBeforeClick,
|
|
2277
2277
|
children: before
|
|
2278
2278
|
}), /*#__PURE__*/jsx("div", {
|
|
2279
|
-
className: element$
|
|
2279
|
+
className: element$R('label'),
|
|
2280
2280
|
children: children
|
|
2281
2281
|
}), after &&
|
|
2282
2282
|
/*#__PURE__*/
|
|
2283
2283
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
2284
2284
|
jsx("div", {
|
|
2285
|
-
className: element$
|
|
2285
|
+
className: element$R('after', {
|
|
2286
2286
|
'is-clickable': hasAfterClick
|
|
2287
2287
|
}),
|
|
2288
2288
|
onClick: handleAfterClick,
|
|
@@ -2338,19 +2338,19 @@ const Chip = forwardRef((props, ref) => {
|
|
|
2338
2338
|
...forwardedProps
|
|
2339
2339
|
});
|
|
2340
2340
|
});
|
|
2341
|
-
Chip.displayName = COMPONENT_NAME$
|
|
2342
|
-
Chip.className = CLASSNAME$
|
|
2341
|
+
Chip.displayName = COMPONENT_NAME$1u;
|
|
2342
|
+
Chip.className = CLASSNAME$1r;
|
|
2343
2343
|
Chip.defaultProps = DEFAULT_PROPS$18;
|
|
2344
2344
|
|
|
2345
2345
|
/**
|
|
2346
2346
|
* Component display name.
|
|
2347
2347
|
*/
|
|
2348
|
-
const COMPONENT_NAME$
|
|
2348
|
+
const COMPONENT_NAME$1t = 'ChipGroup';
|
|
2349
2349
|
|
|
2350
2350
|
/**
|
|
2351
2351
|
* Component default class name and class prefix.
|
|
2352
2352
|
*/
|
|
2353
|
-
const CLASSNAME$
|
|
2353
|
+
const CLASSNAME$1q = 'lumx-chip-group';
|
|
2354
2354
|
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Component default props.
|
|
@@ -2373,7 +2373,7 @@ const ChipGroup$1 = props => {
|
|
|
2373
2373
|
return /*#__PURE__*/jsx("div", {
|
|
2374
2374
|
ref: ref,
|
|
2375
2375
|
...forwardedProps,
|
|
2376
|
-
className: classnames(className, CLASSNAME$
|
|
2376
|
+
className: classnames(className, CLASSNAME$1q),
|
|
2377
2377
|
children: children
|
|
2378
2378
|
});
|
|
2379
2379
|
};
|
|
@@ -2451,8 +2451,8 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2451
2451
|
...forwardedProps
|
|
2452
2452
|
});
|
|
2453
2453
|
});
|
|
2454
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2455
|
-
InternalChipGroup.className = CLASSNAME$
|
|
2454
|
+
InternalChipGroup.displayName = COMPONENT_NAME$1t;
|
|
2455
|
+
InternalChipGroup.className = CLASSNAME$1q;
|
|
2456
2456
|
InternalChipGroup.defaultProps = DEFAULT_PROPS$17;
|
|
2457
2457
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2458
2458
|
useChipGroupNavigation
|
|
@@ -2461,16 +2461,16 @@ const ChipGroup = Object.assign(InternalChipGroup, {
|
|
|
2461
2461
|
/**
|
|
2462
2462
|
* Component display name.
|
|
2463
2463
|
*/
|
|
2464
|
-
const COMPONENT_NAME$
|
|
2464
|
+
const COMPONENT_NAME$1s = 'SelectionChipGroup';
|
|
2465
2465
|
|
|
2466
2466
|
/**
|
|
2467
2467
|
* Component default class name and class prefix.
|
|
2468
2468
|
*/
|
|
2469
|
-
const CLASSNAME$
|
|
2469
|
+
const CLASSNAME$1p = 'lumx-selection-chip-group';
|
|
2470
2470
|
const {
|
|
2471
|
-
block: block$
|
|
2472
|
-
element: element$
|
|
2473
|
-
} = bem(CLASSNAME$
|
|
2471
|
+
block: block$14,
|
|
2472
|
+
element: element$Q
|
|
2473
|
+
} = bem(CLASSNAME$1p);
|
|
2474
2474
|
|
|
2475
2475
|
/**
|
|
2476
2476
|
* SelectionChipGroup component.
|
|
@@ -2508,7 +2508,7 @@ const SelectionChipGroup$1 = (props, {
|
|
|
2508
2508
|
"aria-label": label,
|
|
2509
2509
|
"aria-multiselectable": "true",
|
|
2510
2510
|
"aria-orientation": "horizontal",
|
|
2511
|
-
className: block$
|
|
2511
|
+
className: block$14([className]),
|
|
2512
2512
|
children: value.map(v => {
|
|
2513
2513
|
const name = getOptionName && getWithSelector(getOptionName, v) || getWithSelector(getOptionId, v);
|
|
2514
2514
|
const id = getWithSelector(getOptionId, v);
|
|
@@ -2527,7 +2527,7 @@ const SelectionChipGroup$1 = (props, {
|
|
|
2527
2527
|
after: /*#__PURE__*/jsx(Icon, {
|
|
2528
2528
|
icon: mdiClose
|
|
2529
2529
|
}),
|
|
2530
|
-
className: element$
|
|
2530
|
+
className: element$Q('chip', [customProps.className]),
|
|
2531
2531
|
"data-option-id": id,
|
|
2532
2532
|
isClickable: true,
|
|
2533
2533
|
role: "option",
|
|
@@ -2566,10 +2566,10 @@ function createSelectorTreeWalker(container, selector) {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
|
|
2568
2568
|
/** CSS selector for enabled chips (not aria-disabled). */
|
|
2569
|
-
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$
|
|
2569
|
+
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$1r}:not([aria-disabled="true"])`;
|
|
2570
2570
|
|
|
2571
2571
|
/** Find the closest chip element from an event target. */
|
|
2572
|
-
const getChip = target => target?.closest?.(`.${CLASSNAME$
|
|
2572
|
+
const getChip = target => target?.closest?.(`.${CLASSNAME$1r}`) || null;
|
|
2573
2573
|
|
|
2574
2574
|
/** Whether the chip is marked as disabled via aria-disabled. */
|
|
2575
2575
|
const isChipDisabled = chip => chip?.getAttribute('aria-disabled') === 'true';
|
|
@@ -2810,15 +2810,15 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
2810
2810
|
/**
|
|
2811
2811
|
* Component display name.
|
|
2812
2812
|
*/
|
|
2813
|
-
const COMPONENT_NAME$
|
|
2813
|
+
const COMPONENT_NAME$1r = 'Text';
|
|
2814
2814
|
|
|
2815
2815
|
/**
|
|
2816
2816
|
* Component default class name and class prefix.
|
|
2817
2817
|
*/
|
|
2818
|
-
const CLASSNAME$
|
|
2818
|
+
const CLASSNAME$1o = 'lumx-text';
|
|
2819
2819
|
const {
|
|
2820
|
-
block: block$
|
|
2821
|
-
} = bem(CLASSNAME$
|
|
2820
|
+
block: block$13
|
|
2821
|
+
} = bem(CLASSNAME$1o);
|
|
2822
2822
|
|
|
2823
2823
|
/**
|
|
2824
2824
|
* Component default props.
|
|
@@ -2859,7 +2859,7 @@ const getTextProps = props => {
|
|
|
2859
2859
|
'--lumx-text-white-space': whiteSpace
|
|
2860
2860
|
};
|
|
2861
2861
|
return {
|
|
2862
|
-
className: classnames(className, block$
|
|
2862
|
+
className: classnames(className, block$13({
|
|
2863
2863
|
'is-truncated': isTruncated && !isTruncatedMultiline,
|
|
2864
2864
|
'is-truncated-multiline': isTruncatedMultiline,
|
|
2865
2865
|
'no-wrap': noWrap
|
|
@@ -2908,8 +2908,8 @@ const Text = forwardRef((props, ref) => {
|
|
|
2908
2908
|
children: wrapChildrenIconWithSpaces(children)
|
|
2909
2909
|
});
|
|
2910
2910
|
});
|
|
2911
|
-
Text.displayName = COMPONENT_NAME$
|
|
2912
|
-
Text.className = CLASSNAME$
|
|
2911
|
+
Text.displayName = COMPONENT_NAME$1r;
|
|
2912
|
+
Text.className = CLASSNAME$1o;
|
|
2913
2913
|
Text.defaultProps = DEFAULT_PROPS$16;
|
|
2914
2914
|
|
|
2915
2915
|
/**
|
|
@@ -5002,16 +5002,16 @@ const DEFAULT_PROPS$15 = {
|
|
|
5002
5002
|
/**
|
|
5003
5003
|
* Component display name.
|
|
5004
5004
|
*/
|
|
5005
|
-
const COMPONENT_NAME$
|
|
5005
|
+
const COMPONENT_NAME$1q = 'Tooltip';
|
|
5006
5006
|
|
|
5007
5007
|
/**
|
|
5008
5008
|
* Component default class name and class prefix.
|
|
5009
5009
|
*/
|
|
5010
|
-
const CLASSNAME$
|
|
5010
|
+
const CLASSNAME$1n = 'lumx-tooltip';
|
|
5011
5011
|
const {
|
|
5012
|
-
block: block$
|
|
5013
|
-
element: element$
|
|
5014
|
-
} = bem(CLASSNAME$
|
|
5012
|
+
block: block$12,
|
|
5013
|
+
element: element$P
|
|
5014
|
+
} = bem(CLASSNAME$1n);
|
|
5015
5015
|
|
|
5016
5016
|
/**
|
|
5017
5017
|
* Props for the TooltipPopup rendering component.
|
|
@@ -5042,7 +5042,7 @@ const TooltipPopup = props => {
|
|
|
5042
5042
|
...forwardedProps,
|
|
5043
5043
|
id: id,
|
|
5044
5044
|
role: "tooltip",
|
|
5045
|
-
className: classnames(className, block$
|
|
5045
|
+
className: classnames(className, block$12({
|
|
5046
5046
|
[`position-${position}`]: Boolean(position)
|
|
5047
5047
|
}), isHidden && visuallyHidden()),
|
|
5048
5048
|
style: {
|
|
@@ -5051,17 +5051,17 @@ const TooltipPopup = props => {
|
|
|
5051
5051
|
},
|
|
5052
5052
|
"data-popper-placement": position,
|
|
5053
5053
|
children: [/*#__PURE__*/jsx("div", {
|
|
5054
|
-
className: element$
|
|
5054
|
+
className: element$P('arrow')
|
|
5055
5055
|
}), /*#__PURE__*/jsx("div", {
|
|
5056
|
-
className: element$
|
|
5056
|
+
className: element$P('inner'),
|
|
5057
5057
|
children: labelLines.map((line, index) => /*#__PURE__*/jsx("p", {
|
|
5058
5058
|
children: line
|
|
5059
5059
|
}, index))
|
|
5060
5060
|
})]
|
|
5061
5061
|
});
|
|
5062
5062
|
};
|
|
5063
|
-
TooltipPopup.displayName = COMPONENT_NAME$
|
|
5064
|
-
TooltipPopup.className = CLASSNAME$
|
|
5063
|
+
TooltipPopup.displayName = COMPONENT_NAME$1q;
|
|
5064
|
+
TooltipPopup.className = CLASSNAME$1n;
|
|
5065
5065
|
|
|
5066
5066
|
/**
|
|
5067
5067
|
* Add ref and ARIA attribute(s) in tooltip children or wrapped children.
|
|
@@ -5423,8 +5423,8 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5423
5423
|
})]
|
|
5424
5424
|
});
|
|
5425
5425
|
});
|
|
5426
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
5427
|
-
Tooltip.className = CLASSNAME$
|
|
5426
|
+
Tooltip.displayName = COMPONENT_NAME$1q;
|
|
5427
|
+
Tooltip.className = CLASSNAME$1n;
|
|
5428
5428
|
Tooltip.defaultProps = DEFAULT_PROPS$15;
|
|
5429
5429
|
|
|
5430
5430
|
/** Create a pending navigation store; discards intent on abort. */
|
|
@@ -6294,8 +6294,8 @@ const SelectionChipGroup = ({
|
|
|
6294
6294
|
}, [container, inputRef, getOptionId]);
|
|
6295
6295
|
useRovingTabIndexContainer({
|
|
6296
6296
|
containerRef: container,
|
|
6297
|
-
itemSelector: `.${CLASSNAME$
|
|
6298
|
-
itemDisabledSelector: `.${CLASSNAME$
|
|
6297
|
+
itemSelector: `.${CLASSNAME$1r}`,
|
|
6298
|
+
itemDisabledSelector: `.${CLASSNAME$1r}[aria-disabled="true"]`
|
|
6299
6299
|
});
|
|
6300
6300
|
|
|
6301
6301
|
// Merge getChipProps and renderChip: getChipProps provides base props, renderChip overrides them,
|
|
@@ -6335,18 +6335,18 @@ const SelectionChipGroup = ({
|
|
|
6335
6335
|
Tooltip
|
|
6336
6336
|
});
|
|
6337
6337
|
};
|
|
6338
|
-
SelectionChipGroup.displayName = COMPONENT_NAME$
|
|
6339
|
-
SelectionChipGroup.className = CLASSNAME$
|
|
6338
|
+
SelectionChipGroup.displayName = COMPONENT_NAME$1s;
|
|
6339
|
+
SelectionChipGroup.className = CLASSNAME$1p;
|
|
6340
6340
|
|
|
6341
6341
|
/**
|
|
6342
6342
|
* Component display name.
|
|
6343
6343
|
*/
|
|
6344
|
-
const COMPONENT_NAME$
|
|
6344
|
+
const COMPONENT_NAME$1p = 'ListDivider';
|
|
6345
6345
|
|
|
6346
6346
|
/**
|
|
6347
6347
|
* Component default class name and class prefix.
|
|
6348
6348
|
*/
|
|
6349
|
-
const CLASSNAME$
|
|
6349
|
+
const CLASSNAME$1m = 'lumx-list-divider';
|
|
6350
6350
|
|
|
6351
6351
|
/**
|
|
6352
6352
|
* Component default props.
|
|
@@ -6370,11 +6370,11 @@ const ListDivider$1 = props => {
|
|
|
6370
6370
|
ref: ref,
|
|
6371
6371
|
role: "none",
|
|
6372
6372
|
...forwardedProps,
|
|
6373
|
-
className: classnames(className, CLASSNAME$
|
|
6373
|
+
className: classnames(className, CLASSNAME$1m)
|
|
6374
6374
|
});
|
|
6375
6375
|
};
|
|
6376
|
-
ListDivider$1.displayName = COMPONENT_NAME$
|
|
6377
|
-
ListDivider$1.className = CLASSNAME$
|
|
6376
|
+
ListDivider$1.displayName = COMPONENT_NAME$1p;
|
|
6377
|
+
ListDivider$1.className = CLASSNAME$1m;
|
|
6378
6378
|
ListDivider$1.defaultProps = DEFAULT_PROPS$14;
|
|
6379
6379
|
|
|
6380
6380
|
/**
|
|
@@ -6395,22 +6395,22 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
6395
6395
|
ref
|
|
6396
6396
|
});
|
|
6397
6397
|
});
|
|
6398
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
6399
|
-
ListDivider.className = CLASSNAME$
|
|
6398
|
+
ListDivider.displayName = COMPONENT_NAME$1p;
|
|
6399
|
+
ListDivider.className = CLASSNAME$1m;
|
|
6400
6400
|
ListDivider.defaultProps = DEFAULT_PROPS$14;
|
|
6401
6401
|
|
|
6402
6402
|
/**
|
|
6403
6403
|
* Component display name.
|
|
6404
6404
|
*/
|
|
6405
|
-
const COMPONENT_NAME$
|
|
6405
|
+
const COMPONENT_NAME$1o = 'List';
|
|
6406
6406
|
|
|
6407
6407
|
/**
|
|
6408
6408
|
* Component default class name and class prefix.
|
|
6409
6409
|
*/
|
|
6410
|
-
const CLASSNAME$
|
|
6410
|
+
const CLASSNAME$1l = 'lumx-list';
|
|
6411
6411
|
const {
|
|
6412
|
-
block: block$
|
|
6413
|
-
} = bem(CLASSNAME$
|
|
6412
|
+
block: block$11
|
|
6413
|
+
} = bem(CLASSNAME$1l);
|
|
6414
6414
|
|
|
6415
6415
|
/**
|
|
6416
6416
|
* Component default props.
|
|
@@ -6433,15 +6433,15 @@ const List$1 = props => {
|
|
|
6433
6433
|
} = props;
|
|
6434
6434
|
return /*#__PURE__*/jsx("ul", {
|
|
6435
6435
|
...forwardedProps,
|
|
6436
|
-
className: classnames(className, block$
|
|
6436
|
+
className: classnames(className, block$11({
|
|
6437
6437
|
[`item-padding-${itemPadding}`]: Boolean(itemPadding)
|
|
6438
6438
|
})),
|
|
6439
6439
|
ref: ref,
|
|
6440
6440
|
children: children
|
|
6441
6441
|
});
|
|
6442
6442
|
};
|
|
6443
|
-
List$1.displayName = COMPONENT_NAME$
|
|
6444
|
-
List$1.className = CLASSNAME$
|
|
6443
|
+
List$1.displayName = COMPONENT_NAME$1o;
|
|
6444
|
+
List$1.className = CLASSNAME$1l;
|
|
6445
6445
|
List$1.defaultProps = DEFAULT_PROPS$13;
|
|
6446
6446
|
|
|
6447
6447
|
/**
|
|
@@ -6457,12 +6457,12 @@ List$1.defaultProps = DEFAULT_PROPS$13;
|
|
|
6457
6457
|
/**
|
|
6458
6458
|
* Component display name.
|
|
6459
6459
|
*/
|
|
6460
|
-
const COMPONENT_NAME$
|
|
6460
|
+
const COMPONENT_NAME$1n = 'ListboxList';
|
|
6461
6461
|
|
|
6462
6462
|
/**
|
|
6463
6463
|
* Component default class name and class prefix.
|
|
6464
6464
|
*/
|
|
6465
|
-
const CLASSNAME$
|
|
6465
|
+
const CLASSNAME$1k = 'lumx-listbox-list';
|
|
6466
6466
|
/**
|
|
6467
6467
|
* Legacy class name, emitted next to `CLASSNAME` for backward compatibility.
|
|
6468
6468
|
*
|
|
@@ -6490,7 +6490,7 @@ const ListboxList$1 = props => {
|
|
|
6490
6490
|
} = props;
|
|
6491
6491
|
return List$1({
|
|
6492
6492
|
...forwardedProps,
|
|
6493
|
-
className: classnames(className, CLASSNAME$
|
|
6493
|
+
className: classnames(className, CLASSNAME$1k, LEGACY_CLASSNAME$6),
|
|
6494
6494
|
ref,
|
|
6495
6495
|
itemPadding: 'big',
|
|
6496
6496
|
id,
|
|
@@ -6816,22 +6816,22 @@ const ListboxList = forwardRef((props, ref) => {
|
|
|
6816
6816
|
})
|
|
6817
6817
|
});
|
|
6818
6818
|
});
|
|
6819
|
-
ListboxList.displayName = COMPONENT_NAME$
|
|
6820
|
-
ListboxList.className = CLASSNAME$
|
|
6819
|
+
ListboxList.displayName = COMPONENT_NAME$1n;
|
|
6820
|
+
ListboxList.className = CLASSNAME$1k;
|
|
6821
6821
|
|
|
6822
6822
|
/**
|
|
6823
6823
|
* Component display name.
|
|
6824
6824
|
*/
|
|
6825
|
-
const COMPONENT_NAME$
|
|
6825
|
+
const COMPONENT_NAME$1m = 'ListItem';
|
|
6826
6826
|
|
|
6827
6827
|
/**
|
|
6828
6828
|
* Component default class name and class prefix.
|
|
6829
6829
|
*/
|
|
6830
|
-
const CLASSNAME$
|
|
6830
|
+
const CLASSNAME$1j = 'lumx-list-item';
|
|
6831
6831
|
const {
|
|
6832
|
-
block: block
|
|
6833
|
-
element: element$
|
|
6834
|
-
} = bem(CLASSNAME$
|
|
6832
|
+
block: block$10,
|
|
6833
|
+
element: element$O
|
|
6834
|
+
} = bem(CLASSNAME$1j);
|
|
6835
6835
|
|
|
6836
6836
|
/**
|
|
6837
6837
|
* Component default props.
|
|
@@ -6868,7 +6868,7 @@ const ListItem$1 = props => {
|
|
|
6868
6868
|
return /*#__PURE__*/jsx("li", {
|
|
6869
6869
|
ref: ref,
|
|
6870
6870
|
...forwardedProps,
|
|
6871
|
-
className: classnames(className, block
|
|
6871
|
+
className: classnames(className, block$10({
|
|
6872
6872
|
[`size-${size}`]: Boolean(size)
|
|
6873
6873
|
})),
|
|
6874
6874
|
children: RawClickable({
|
|
@@ -6876,7 +6876,7 @@ const ListItem$1 = props => {
|
|
|
6876
6876
|
isDisabled,
|
|
6877
6877
|
'aria-disabled': ariaDisabled,
|
|
6878
6878
|
...linkProps,
|
|
6879
|
-
className: element$
|
|
6879
|
+
className: element$O(clickable ? 'link' : 'wrapper', {
|
|
6880
6880
|
'is-highlighted': isHighlighted,
|
|
6881
6881
|
'is-selected': isSelected,
|
|
6882
6882
|
'is-disabled': isDisabled || ariaDisabled === 'true'
|
|
@@ -6885,21 +6885,21 @@ const ListItem$1 = props => {
|
|
|
6885
6885
|
ref: linkRef,
|
|
6886
6886
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
6887
6887
|
children: [before && /*#__PURE__*/jsx("div", {
|
|
6888
|
-
className: element$
|
|
6888
|
+
className: element$O('before'),
|
|
6889
6889
|
children: before
|
|
6890
6890
|
}), /*#__PURE__*/jsx("div", {
|
|
6891
|
-
className: element$
|
|
6891
|
+
className: element$O('content'),
|
|
6892
6892
|
children: children
|
|
6893
6893
|
}), after && /*#__PURE__*/jsx("div", {
|
|
6894
|
-
className: element$
|
|
6894
|
+
className: element$O('after'),
|
|
6895
6895
|
children: after
|
|
6896
6896
|
})]
|
|
6897
6897
|
})
|
|
6898
6898
|
})
|
|
6899
6899
|
});
|
|
6900
6900
|
};
|
|
6901
|
-
ListItem$1.displayName = COMPONENT_NAME$
|
|
6902
|
-
ListItem$1.className = CLASSNAME$
|
|
6901
|
+
ListItem$1.displayName = COMPONENT_NAME$1m;
|
|
6902
|
+
ListItem$1.className = CLASSNAME$1j;
|
|
6903
6903
|
ListItem$1.defaultProps = DEFAULT_PROPS$12;
|
|
6904
6904
|
|
|
6905
6905
|
/**
|
|
@@ -6909,12 +6909,12 @@ ListItem$1.defaultProps = DEFAULT_PROPS$12;
|
|
|
6909
6909
|
/**
|
|
6910
6910
|
* Component display name.
|
|
6911
6911
|
*/
|
|
6912
|
-
const COMPONENT_NAME$
|
|
6912
|
+
const COMPONENT_NAME$1l = 'ListItemAction';
|
|
6913
6913
|
|
|
6914
6914
|
/**
|
|
6915
6915
|
* Component classname (used by action area CSS pattern).
|
|
6916
6916
|
*/
|
|
6917
|
-
const CLASSNAME$
|
|
6917
|
+
const CLASSNAME$1i = 'lumx-action-area__action';
|
|
6918
6918
|
const DEFAULT_PROPS$11 = {};
|
|
6919
6919
|
|
|
6920
6920
|
/**
|
|
@@ -6948,12 +6948,12 @@ const ListItemAction$1 = props => {
|
|
|
6948
6948
|
/**
|
|
6949
6949
|
* Component display name.
|
|
6950
6950
|
*/
|
|
6951
|
-
const COMPONENT_NAME$
|
|
6951
|
+
const COMPONENT_NAME$1k = 'ListboxOption';
|
|
6952
6952
|
|
|
6953
6953
|
/**
|
|
6954
6954
|
* Component default class name and class prefix.
|
|
6955
6955
|
*/
|
|
6956
|
-
const CLASSNAME$
|
|
6956
|
+
const CLASSNAME$1h = 'lumx-listbox-option';
|
|
6957
6957
|
/**
|
|
6958
6958
|
* Legacy class name, emitted next to `CLASSNAME` for backward compatibility.
|
|
6959
6959
|
*
|
|
@@ -6961,9 +6961,9 @@ const CLASSNAME$1g = 'lumx-listbox-option';
|
|
|
6961
6961
|
*/
|
|
6962
6962
|
const LEGACY_CLASSNAME$5 = 'lumx-combobox-option';
|
|
6963
6963
|
const {
|
|
6964
|
-
block: block
|
|
6965
|
-
element: element$
|
|
6966
|
-
} = bem(CLASSNAME$
|
|
6964
|
+
block: block$$,
|
|
6965
|
+
element: element$N
|
|
6966
|
+
} = bem(CLASSNAME$1h);
|
|
6967
6967
|
const legacy$1 = bem(LEGACY_CLASSNAME$5);
|
|
6968
6968
|
|
|
6969
6969
|
/**
|
|
@@ -7010,7 +7010,7 @@ const ListboxOption$1 = (props, {
|
|
|
7010
7010
|
// Focus stays on the focus owner (combobox trigger or standalone listbox), never on the option.
|
|
7011
7011
|
tabIndex: -1,
|
|
7012
7012
|
id,
|
|
7013
|
-
className: classnames(element$
|
|
7013
|
+
className: classnames(element$N('action'), legacy$1.element('action')),
|
|
7014
7014
|
handleClick,
|
|
7015
7015
|
'aria-selected': isSelected ? 'true' : 'false',
|
|
7016
7016
|
'data-value': value,
|
|
@@ -7028,7 +7028,7 @@ const ListboxOption$1 = (props, {
|
|
|
7028
7028
|
size: 'tiny',
|
|
7029
7029
|
...forwardedProps,
|
|
7030
7030
|
hidden,
|
|
7031
|
-
className: !hidden ? classnames(className, block
|
|
7031
|
+
className: !hidden ? classnames(className, block$$(), legacy$1.block()) : undefined,
|
|
7032
7032
|
before,
|
|
7033
7033
|
after,
|
|
7034
7034
|
role: itemRole,
|
|
@@ -7036,7 +7036,7 @@ const ListboxOption$1 = (props, {
|
|
|
7036
7036
|
children: [wrappedAction, description && /*#__PURE__*/jsx("p", {
|
|
7037
7037
|
id: descriptionId,
|
|
7038
7038
|
...getTextProps({
|
|
7039
|
-
className: classnames(element$
|
|
7039
|
+
className: classnames(element$N('description'), legacy$1.element('description')),
|
|
7040
7040
|
typography: 'caption',
|
|
7041
7041
|
color: 'dark-L2'
|
|
7042
7042
|
}),
|
|
@@ -7159,8 +7159,8 @@ const ListboxOption = forwardRef((props, ref) => {
|
|
|
7159
7159
|
Tooltip
|
|
7160
7160
|
});
|
|
7161
7161
|
});
|
|
7162
|
-
ListboxOption.displayName = COMPONENT_NAME$
|
|
7163
|
-
ListboxOption.className = CLASSNAME$
|
|
7162
|
+
ListboxOption.displayName = COMPONENT_NAME$1k;
|
|
7163
|
+
ListboxOption.className = CLASSNAME$1h;
|
|
7164
7164
|
|
|
7165
7165
|
/**
|
|
7166
7166
|
* Defines the props for the core ListboxOptionAction template.
|
|
@@ -7169,12 +7169,12 @@ ListboxOption.className = CLASSNAME$1g;
|
|
|
7169
7169
|
/**
|
|
7170
7170
|
* Component display name.
|
|
7171
7171
|
*/
|
|
7172
|
-
const COMPONENT_NAME$
|
|
7172
|
+
const COMPONENT_NAME$1j = 'ListboxOptionAction';
|
|
7173
7173
|
|
|
7174
7174
|
/**
|
|
7175
7175
|
* Component default class name and class prefix.
|
|
7176
7176
|
*/
|
|
7177
|
-
const CLASSNAME$
|
|
7177
|
+
const CLASSNAME$1g = 'lumx-listbox-option-action';
|
|
7178
7178
|
/**
|
|
7179
7179
|
* Legacy class name, emitted next to `CLASSNAME` for backward compatibility.
|
|
7180
7180
|
*
|
|
@@ -7203,7 +7203,7 @@ const ListboxOptionAction$1 = props => {
|
|
|
7203
7203
|
as: Element,
|
|
7204
7204
|
...forwardedProps,
|
|
7205
7205
|
role: 'gridcell',
|
|
7206
|
-
className: classnames(className, CLASSNAME$
|
|
7206
|
+
className: classnames(className, CLASSNAME$1g, LEGACY_CLASSNAME$4),
|
|
7207
7207
|
handleClick,
|
|
7208
7208
|
children
|
|
7209
7209
|
});
|
|
@@ -7251,7 +7251,7 @@ const ListboxOptionAction = Object.assign(forwardRefPolymorphic((props, ref) =>
|
|
|
7251
7251
|
const isGrid = type === 'grid';
|
|
7252
7252
|
useEffect(() => {
|
|
7253
7253
|
if (!isGrid) {
|
|
7254
|
-
console.warn(`[@lumx/react/${COMPONENT_NAME$
|
|
7254
|
+
console.warn(`[@lumx/react/${COMPONENT_NAME$1j}] Option actions are only supported in grid mode (set type="grid" on the parent list); the action is not rendered.`);
|
|
7255
7255
|
}
|
|
7256
7256
|
}, [isGrid]);
|
|
7257
7257
|
if (!isGrid) return null;
|
|
@@ -7266,19 +7266,19 @@ const ListboxOptionAction = Object.assign(forwardRefPolymorphic((props, ref) =>
|
|
|
7266
7266
|
children
|
|
7267
7267
|
});
|
|
7268
7268
|
}), {
|
|
7269
|
-
displayName: COMPONENT_NAME$
|
|
7270
|
-
className: CLASSNAME$
|
|
7269
|
+
displayName: COMPONENT_NAME$1j,
|
|
7270
|
+
className: CLASSNAME$1g
|
|
7271
7271
|
});
|
|
7272
7272
|
|
|
7273
7273
|
/**
|
|
7274
7274
|
* Component display name.
|
|
7275
7275
|
*/
|
|
7276
|
-
const COMPONENT_NAME$
|
|
7276
|
+
const COMPONENT_NAME$1i = 'ListboxOptionMoreInfo';
|
|
7277
7277
|
|
|
7278
7278
|
/**
|
|
7279
7279
|
* Component default class name and class prefix.
|
|
7280
7280
|
*/
|
|
7281
|
-
const CLASSNAME$
|
|
7281
|
+
const CLASSNAME$1f = 'lumx-listbox-option-more-info';
|
|
7282
7282
|
/**
|
|
7283
7283
|
* Legacy class name, emitted next to `CLASSNAME` for backward compatibility.
|
|
7284
7284
|
*
|
|
@@ -7286,9 +7286,9 @@ const CLASSNAME$1e = 'lumx-listbox-option-more-info';
|
|
|
7286
7286
|
*/
|
|
7287
7287
|
const LEGACY_CLASSNAME$3 = 'lumx-combobox-option-more-info';
|
|
7288
7288
|
const {
|
|
7289
|
-
block: block$
|
|
7290
|
-
element: element$
|
|
7291
|
-
} = bem(CLASSNAME$
|
|
7289
|
+
block: block$_,
|
|
7290
|
+
element: element$M
|
|
7291
|
+
} = bem(CLASSNAME$1f);
|
|
7292
7292
|
const legacy = bem(LEGACY_CLASSNAME$3);
|
|
7293
7293
|
|
|
7294
7294
|
/**
|
|
@@ -7323,7 +7323,7 @@ const ListboxOptionMoreInfo$1 = (props, {
|
|
|
7323
7323
|
icon: mdiInformationOutline,
|
|
7324
7324
|
size: "s",
|
|
7325
7325
|
...buttonProps,
|
|
7326
|
-
className: block$
|
|
7326
|
+
className: block$_([className, buttonProps?.className, LEGACY_CLASSNAME$3]),
|
|
7327
7327
|
emphasis: "low",
|
|
7328
7328
|
onMouseEnter: onMouseEnter,
|
|
7329
7329
|
onMouseLeave: onMouseLeave
|
|
@@ -7334,7 +7334,7 @@ const ListboxOptionMoreInfo$1 = (props, {
|
|
|
7334
7334
|
label: ""
|
|
7335
7335
|
}), /*#__PURE__*/jsx(Popover, {
|
|
7336
7336
|
id: popoverId,
|
|
7337
|
-
className: classnames(element$
|
|
7337
|
+
className: classnames(element$M('popover'), legacy.element('popover')),
|
|
7338
7338
|
anchorRef: ref,
|
|
7339
7339
|
isOpen: isOpen,
|
|
7340
7340
|
closeMode: "unmount",
|
|
@@ -7618,16 +7618,16 @@ const POPOVER_ZINDEX = 9999;
|
|
|
7618
7618
|
/**
|
|
7619
7619
|
* Component display name.
|
|
7620
7620
|
*/
|
|
7621
|
-
const COMPONENT_NAME$
|
|
7621
|
+
const COMPONENT_NAME$1h = 'Popover';
|
|
7622
7622
|
|
|
7623
7623
|
/**
|
|
7624
7624
|
* Component default class name and class prefix.
|
|
7625
7625
|
*/
|
|
7626
|
-
const CLASSNAME$
|
|
7626
|
+
const CLASSNAME$1e = 'lumx-popover';
|
|
7627
7627
|
const {
|
|
7628
|
-
block: block$
|
|
7629
|
-
element: element$
|
|
7630
|
-
} = bem(CLASSNAME$
|
|
7628
|
+
block: block$Z,
|
|
7629
|
+
element: element$L
|
|
7630
|
+
} = bem(CLASSNAME$1e);
|
|
7631
7631
|
|
|
7632
7632
|
/**
|
|
7633
7633
|
* Component default props (used by framework wrappers).
|
|
@@ -7689,7 +7689,7 @@ const Popover$1 = (props, {
|
|
|
7689
7689
|
children: /*#__PURE__*/jsxs(Component, {
|
|
7690
7690
|
...forwardedProps,
|
|
7691
7691
|
ref: ref,
|
|
7692
|
-
className: classnames(className, block$
|
|
7692
|
+
className: classnames(className, block$Z({
|
|
7693
7693
|
[`theme-${theme}`]: Boolean(theme),
|
|
7694
7694
|
[`elevation-${adjustedElevation}`]: Boolean(adjustedElevation),
|
|
7695
7695
|
[`position-${position}`]: Boolean(position),
|
|
@@ -7703,7 +7703,7 @@ const Popover$1 = (props, {
|
|
|
7703
7703
|
childrenRefs: clickAwayRefs,
|
|
7704
7704
|
children: [hasArrow && /*#__PURE__*/jsx("div", {
|
|
7705
7705
|
ref: arrowRef,
|
|
7706
|
-
className: element$
|
|
7706
|
+
className: element$L('arrow'),
|
|
7707
7707
|
style: isHidden ? undefined : arrowStyle,
|
|
7708
7708
|
children: /*#__PURE__*/jsx("svg", {
|
|
7709
7709
|
viewBox: "0 0 14 14",
|
|
@@ -8153,7 +8153,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
8153
8153
|
ThemeProvider
|
|
8154
8154
|
});
|
|
8155
8155
|
});
|
|
8156
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
8156
|
+
_InnerPopover.displayName = COMPONENT_NAME$1h;
|
|
8157
8157
|
|
|
8158
8158
|
/**
|
|
8159
8159
|
* Popover component.
|
|
@@ -8165,8 +8165,8 @@ _InnerPopover.displayName = COMPONENT_NAME$1g;
|
|
|
8165
8165
|
const Popover = skipRender(
|
|
8166
8166
|
// Skip render in SSR
|
|
8167
8167
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
8168
|
-
Popover.displayName = COMPONENT_NAME$
|
|
8169
|
-
Popover.className = CLASSNAME$
|
|
8168
|
+
Popover.displayName = COMPONENT_NAME$1h;
|
|
8169
|
+
Popover.className = CLASSNAME$1e;
|
|
8170
8170
|
Popover.defaultProps = DEFAULT_PROPS$10;
|
|
8171
8171
|
|
|
8172
8172
|
/**
|
|
@@ -8233,22 +8233,22 @@ const ListboxOptionMoreInfo = props => {
|
|
|
8233
8233
|
Popover
|
|
8234
8234
|
});
|
|
8235
8235
|
};
|
|
8236
|
-
ListboxOptionMoreInfo.displayName = COMPONENT_NAME$
|
|
8237
|
-
ListboxOptionMoreInfo.className = CLASSNAME$
|
|
8236
|
+
ListboxOptionMoreInfo.displayName = COMPONENT_NAME$1i;
|
|
8237
|
+
ListboxOptionMoreInfo.className = CLASSNAME$1f;
|
|
8238
8238
|
|
|
8239
8239
|
/**
|
|
8240
8240
|
* Component display name.
|
|
8241
8241
|
*/
|
|
8242
|
-
const COMPONENT_NAME$
|
|
8242
|
+
const COMPONENT_NAME$1g = 'SkeletonTypography';
|
|
8243
8243
|
|
|
8244
8244
|
/**
|
|
8245
8245
|
* Component default class name and class prefix.
|
|
8246
8246
|
*/
|
|
8247
|
-
const CLASSNAME$
|
|
8247
|
+
const CLASSNAME$1d = 'lumx-skeleton-typography';
|
|
8248
8248
|
const {
|
|
8249
|
-
block: block$
|
|
8250
|
-
element: element$
|
|
8251
|
-
} = bem(CLASSNAME$
|
|
8249
|
+
block: block$Y,
|
|
8250
|
+
element: element$K
|
|
8251
|
+
} = bem(CLASSNAME$1d);
|
|
8252
8252
|
|
|
8253
8253
|
/**
|
|
8254
8254
|
* SkeletonTypography component.
|
|
@@ -8269,7 +8269,7 @@ const SkeletonTypography$1 = props => {
|
|
|
8269
8269
|
return /*#__PURE__*/jsx("div", {
|
|
8270
8270
|
ref: ref,
|
|
8271
8271
|
...forwardedProps,
|
|
8272
|
-
className: classnames(className, block$
|
|
8272
|
+
className: classnames(className, block$Y({
|
|
8273
8273
|
[`theme-${theme}`]: Boolean(theme),
|
|
8274
8274
|
[`typography-${typography}`]: Boolean(typography),
|
|
8275
8275
|
[`color-${color}`]: Boolean(color)
|
|
@@ -8279,7 +8279,7 @@ const SkeletonTypography$1 = props => {
|
|
|
8279
8279
|
width
|
|
8280
8280
|
},
|
|
8281
8281
|
children: /*#__PURE__*/jsx("div", {
|
|
8282
|
-
className: element$
|
|
8282
|
+
className: element$K('inner')
|
|
8283
8283
|
})
|
|
8284
8284
|
});
|
|
8285
8285
|
};
|
|
@@ -8287,12 +8287,12 @@ const SkeletonTypography$1 = props => {
|
|
|
8287
8287
|
/**
|
|
8288
8288
|
* Component display name.
|
|
8289
8289
|
*/
|
|
8290
|
-
const COMPONENT_NAME$
|
|
8290
|
+
const COMPONENT_NAME$1f = 'ListboxOptionSkeleton';
|
|
8291
8291
|
|
|
8292
8292
|
/**
|
|
8293
8293
|
* Component default class name and class prefix.
|
|
8294
8294
|
*/
|
|
8295
|
-
const CLASSNAME$
|
|
8295
|
+
const CLASSNAME$1c = 'lumx-listbox-option-skeleton';
|
|
8296
8296
|
/**
|
|
8297
8297
|
* Legacy class name, emitted next to `CLASSNAME` for backward compatibility.
|
|
8298
8298
|
*
|
|
@@ -8325,7 +8325,7 @@ const ListboxOptionSkeleton$1 = props => {
|
|
|
8325
8325
|
size: 'tiny',
|
|
8326
8326
|
role: 'none',
|
|
8327
8327
|
...forwardedProps,
|
|
8328
|
-
className: classnames(className, CLASSNAME$
|
|
8328
|
+
className: classnames(className, CLASSNAME$1c, LEGACY_CLASSNAME$2),
|
|
8329
8329
|
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
8330
8330
|
children: [/*#__PURE__*/jsx(SkeletonTypography$1, {
|
|
8331
8331
|
typography: "body1",
|
|
@@ -8378,8 +8378,8 @@ const ListboxOptionSkeleton = props => {
|
|
|
8378
8378
|
...props
|
|
8379
8379
|
});
|
|
8380
8380
|
};
|
|
8381
|
-
ListboxOptionSkeleton.displayName = COMPONENT_NAME$
|
|
8382
|
-
ListboxOptionSkeleton.className = CLASSNAME$
|
|
8381
|
+
ListboxOptionSkeleton.displayName = COMPONENT_NAME$1f;
|
|
8382
|
+
ListboxOptionSkeleton.className = CLASSNAME$1c;
|
|
8383
8383
|
|
|
8384
8384
|
/**
|
|
8385
8385
|
* Selection state icon of an option. The icon is always rendered after the label.
|
|
@@ -8423,12 +8423,12 @@ ListboxOptionSelectionIcon.displayName = 'ComboboxSelectionIcon';
|
|
|
8423
8423
|
/**
|
|
8424
8424
|
* Component display name.
|
|
8425
8425
|
*/
|
|
8426
|
-
const COMPONENT_NAME$
|
|
8426
|
+
const COMPONENT_NAME$1e = 'ListboxSection';
|
|
8427
8427
|
|
|
8428
8428
|
/**
|
|
8429
8429
|
* Component default class name and class prefix.
|
|
8430
8430
|
*/
|
|
8431
|
-
const CLASSNAME$
|
|
8431
|
+
const CLASSNAME$1b = 'lumx-listbox-section';
|
|
8432
8432
|
/**
|
|
8433
8433
|
* Legacy class name, emitted next to `CLASSNAME` for backward compatibility.
|
|
8434
8434
|
*
|
|
@@ -8461,7 +8461,7 @@ const ListboxSection$1 = (props, {
|
|
|
8461
8461
|
...forwardedProps,
|
|
8462
8462
|
hidden: hidden,
|
|
8463
8463
|
"aria-hidden": ariaHidden || undefined,
|
|
8464
|
-
className: !hidden ? classnames(className, CLASSNAME$
|
|
8464
|
+
className: !hidden ? classnames(className, CLASSNAME$1b, LEGACY_CLASSNAME$1) : undefined,
|
|
8465
8465
|
role: !ariaHidden ? 'none' : undefined,
|
|
8466
8466
|
itemsWrapperProps: {
|
|
8467
8467
|
role: 'group'
|
|
@@ -8473,16 +8473,16 @@ const ListboxSection$1 = (props, {
|
|
|
8473
8473
|
/**
|
|
8474
8474
|
* Component display name.
|
|
8475
8475
|
*/
|
|
8476
|
-
const COMPONENT_NAME$
|
|
8476
|
+
const COMPONENT_NAME$1d = 'ListSection';
|
|
8477
8477
|
|
|
8478
8478
|
/**
|
|
8479
8479
|
* Component default class name and class prefix.
|
|
8480
8480
|
*/
|
|
8481
|
-
const CLASSNAME$
|
|
8481
|
+
const CLASSNAME$1a = 'lumx-list-section';
|
|
8482
8482
|
const {
|
|
8483
|
-
block: block$
|
|
8484
|
-
element: element$
|
|
8485
|
-
} = bem(CLASSNAME$
|
|
8483
|
+
block: block$X,
|
|
8484
|
+
element: element$J
|
|
8485
|
+
} = bem(CLASSNAME$1a);
|
|
8486
8486
|
|
|
8487
8487
|
/**
|
|
8488
8488
|
* Component default props.
|
|
@@ -8512,25 +8512,25 @@ const ListSection$1 = props => {
|
|
|
8512
8512
|
return /*#__PURE__*/jsxs("li", {
|
|
8513
8513
|
ref: ref,
|
|
8514
8514
|
...forwardedProps,
|
|
8515
|
-
className: classnames(className, block$
|
|
8515
|
+
className: classnames(className, block$X()),
|
|
8516
8516
|
children: [hasHeader && /*#__PURE__*/jsxs(Text, {
|
|
8517
8517
|
as: "p",
|
|
8518
8518
|
typography: "overline",
|
|
8519
|
-
className: element$
|
|
8519
|
+
className: element$J('title'),
|
|
8520
8520
|
id: labelId,
|
|
8521
8521
|
children: [icon && Icon$1({
|
|
8522
8522
|
icon
|
|
8523
8523
|
}), label]
|
|
8524
8524
|
}), /*#__PURE__*/jsx("ul", {
|
|
8525
8525
|
...itemsWrapperProps,
|
|
8526
|
-
className: element$
|
|
8526
|
+
className: element$J('items'),
|
|
8527
8527
|
"aria-labelledby": hasHeader ? labelId : undefined,
|
|
8528
8528
|
children: children
|
|
8529
8529
|
})]
|
|
8530
8530
|
});
|
|
8531
8531
|
};
|
|
8532
|
-
ListSection$1.displayName = COMPONENT_NAME$
|
|
8533
|
-
ListSection$1.className = CLASSNAME$
|
|
8532
|
+
ListSection$1.displayName = COMPONENT_NAME$1d;
|
|
8533
|
+
ListSection$1.className = CLASSNAME$1a;
|
|
8534
8534
|
ListSection$1.defaultProps = DEFAULT_PROPS$$;
|
|
8535
8535
|
|
|
8536
8536
|
/**
|
|
@@ -8553,8 +8553,8 @@ const ListSection = forwardRef((props, ref) => {
|
|
|
8553
8553
|
Text
|
|
8554
8554
|
});
|
|
8555
8555
|
});
|
|
8556
|
-
ListSection.displayName = COMPONENT_NAME$
|
|
8557
|
-
ListSection.className = CLASSNAME$
|
|
8556
|
+
ListSection.displayName = COMPONENT_NAME$1d;
|
|
8557
|
+
ListSection.className = CLASSNAME$1a;
|
|
8558
8558
|
ListSection.defaultProps = DEFAULT_PROPS$$;
|
|
8559
8559
|
|
|
8560
8560
|
/**
|
|
@@ -8603,18 +8603,18 @@ const ListboxSection = forwardRef((props, ref) => {
|
|
|
8603
8603
|
ListSection
|
|
8604
8604
|
});
|
|
8605
8605
|
});
|
|
8606
|
-
ListboxSection.displayName = COMPONENT_NAME$
|
|
8607
|
-
ListboxSection.className = CLASSNAME$
|
|
8606
|
+
ListboxSection.displayName = COMPONENT_NAME$1e;
|
|
8607
|
+
ListboxSection.className = CLASSNAME$1b;
|
|
8608
8608
|
|
|
8609
8609
|
/**
|
|
8610
8610
|
* Component display name.
|
|
8611
8611
|
*/
|
|
8612
|
-
const COMPONENT_NAME$
|
|
8612
|
+
const COMPONENT_NAME$1c = 'ListboxState';
|
|
8613
8613
|
|
|
8614
8614
|
/**
|
|
8615
8615
|
* Component default class name and class prefix.
|
|
8616
8616
|
*/
|
|
8617
|
-
const CLASSNAME$
|
|
8617
|
+
const CLASSNAME$19 = 'lumx-listbox-state';
|
|
8618
8618
|
/**
|
|
8619
8619
|
* Legacy class name, emitted next to `CLASSNAME` for backward compatibility.
|
|
8620
8620
|
*
|
|
@@ -8622,8 +8622,8 @@ const CLASSNAME$18 = 'lumx-listbox-state';
|
|
|
8622
8622
|
*/
|
|
8623
8623
|
const LEGACY_CLASSNAME = 'lumx-combobox-state';
|
|
8624
8624
|
const {
|
|
8625
|
-
block: block$
|
|
8626
|
-
} = bem(CLASSNAME$
|
|
8625
|
+
block: block$W
|
|
8626
|
+
} = bem(CLASSNAME$19);
|
|
8627
8627
|
|
|
8628
8628
|
/**
|
|
8629
8629
|
* Defines the props for the core ListboxState template.
|
|
@@ -8684,7 +8684,7 @@ const ListboxState$1 = (props, {
|
|
|
8684
8684
|
// the popover's closeMode="hide") and revealing it doesn't trigger announcements.
|
|
8685
8685
|
const renderContent = isOpen;
|
|
8686
8686
|
return /*#__PURE__*/jsxs(GenericBlock, {
|
|
8687
|
-
className: classnames(!show && visuallyHidden(), block$
|
|
8687
|
+
className: classnames(!show && visuallyHidden(), block$W(), LEGACY_CLASSNAME, padding('regular')),
|
|
8688
8688
|
orientation: "vertical",
|
|
8689
8689
|
...alignProps,
|
|
8690
8690
|
role: "status",
|
|
@@ -8806,16 +8806,16 @@ function partitionMulti(elements, predicates) {
|
|
|
8806
8806
|
/**
|
|
8807
8807
|
* Component display name.
|
|
8808
8808
|
*/
|
|
8809
|
-
const COMPONENT_NAME$
|
|
8809
|
+
const COMPONENT_NAME$1b = 'GenericBlock';
|
|
8810
8810
|
|
|
8811
8811
|
/**
|
|
8812
8812
|
* Component default class name and class prefix.
|
|
8813
8813
|
*/
|
|
8814
|
-
const CLASSNAME$
|
|
8814
|
+
const CLASSNAME$18 = 'lumx-generic-block';
|
|
8815
8815
|
const {
|
|
8816
|
-
block: block$
|
|
8817
|
-
element: element$
|
|
8818
|
-
} = bem(CLASSNAME$
|
|
8816
|
+
block: block$V,
|
|
8817
|
+
element: element$I
|
|
8818
|
+
} = bem(CLASSNAME$18);
|
|
8819
8819
|
|
|
8820
8820
|
/**
|
|
8821
8821
|
* Component default props.
|
|
@@ -8854,23 +8854,23 @@ const GenericBlock$1 = props => {
|
|
|
8854
8854
|
} = props;
|
|
8855
8855
|
return /*#__PURE__*/jsxs(FlexBox, {
|
|
8856
8856
|
ref: ref,
|
|
8857
|
-
className: classnames(className, block$
|
|
8857
|
+
className: classnames(className, block$V()),
|
|
8858
8858
|
gap: gap,
|
|
8859
8859
|
orientation: orientation,
|
|
8860
8860
|
...forwardedProps,
|
|
8861
8861
|
children: [figure && /*#__PURE__*/jsx(FlexBox, {
|
|
8862
8862
|
...figureProps,
|
|
8863
|
-
className: classnames(figureProps?.className, element$
|
|
8863
|
+
className: classnames(figureProps?.className, element$I('figure')),
|
|
8864
8864
|
children: figure
|
|
8865
8865
|
}), content && /*#__PURE__*/jsx(FlexBox, {
|
|
8866
8866
|
orientation: Orientation.vertical,
|
|
8867
8867
|
fillSpace: true,
|
|
8868
8868
|
...contentProps,
|
|
8869
|
-
className: classnames(contentProps?.className, element$
|
|
8869
|
+
className: classnames(contentProps?.className, element$I('content')),
|
|
8870
8870
|
children: content
|
|
8871
8871
|
}), actions && /*#__PURE__*/jsx(FlexBox, {
|
|
8872
8872
|
...actionsProps,
|
|
8873
|
-
className: classnames(actionsProps?.className, element$
|
|
8873
|
+
className: classnames(actionsProps?.className, element$I('actions')),
|
|
8874
8874
|
children: actions
|
|
8875
8875
|
})]
|
|
8876
8876
|
});
|
|
@@ -8957,8 +8957,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
8957
8957
|
}) : undefined
|
|
8958
8958
|
});
|
|
8959
8959
|
});
|
|
8960
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
8961
|
-
BaseGenericBlock.className = CLASSNAME$
|
|
8960
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$1b;
|
|
8961
|
+
BaseGenericBlock.className = CLASSNAME$18;
|
|
8962
8962
|
BaseGenericBlock.defaultProps = DEFAULT_PROPS$_;
|
|
8963
8963
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
8964
8964
|
Figure,
|
|
@@ -9037,8 +9037,8 @@ const ListboxState = props => {
|
|
|
9037
9037
|
Text
|
|
9038
9038
|
});
|
|
9039
9039
|
};
|
|
9040
|
-
ListboxState.displayName = COMPONENT_NAME$
|
|
9041
|
-
ListboxState.className = CLASSNAME$
|
|
9040
|
+
ListboxState.displayName = COMPONENT_NAME$1c;
|
|
9041
|
+
ListboxState.className = CLASSNAME$19;
|
|
9042
9042
|
|
|
9043
9043
|
/**
|
|
9044
9044
|
* Get the value for an option element.
|
|
@@ -9809,6 +9809,11 @@ function setupListbox(options = {}) {
|
|
|
9809
9809
|
return handle;
|
|
9810
9810
|
}
|
|
9811
9811
|
|
|
9812
|
+
const DEFAULT_COMBOBOX_POPOVER_MAX_HEIGHT = '80vh';
|
|
9813
|
+
|
|
9814
|
+
/** Class name of the `Combobox.Popover` (a listbox outside of it is inline, always open). */
|
|
9815
|
+
const COMBOBOX_POPOVER_CLASSNAME = 'lumx-combobox-popover';
|
|
9816
|
+
|
|
9812
9817
|
/** Options for configuring the shared combobox behavior. */
|
|
9813
9818
|
|
|
9814
9819
|
/**
|
|
@@ -9833,12 +9838,27 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
9833
9838
|
} = options ?? {};
|
|
9834
9839
|
let trigger = null;
|
|
9835
9840
|
|
|
9841
|
+
/** When true, the listbox stays open (inline listbox, no popup to open or close). */
|
|
9842
|
+
let alwaysOpen = false;
|
|
9843
|
+
/** Whether the mounted listbox is inline (not in a `Combobox.Popover`). */
|
|
9844
|
+
let isInline = false;
|
|
9845
|
+
/** Forced `alwaysOpen` value (`undefined`: from the listbox placement, see {@link isInline}). */
|
|
9846
|
+
let alwaysOpenOverride;
|
|
9847
|
+
|
|
9836
9848
|
/** AbortController for all trigger event listeners. */
|
|
9837
9849
|
let abortController = null;
|
|
9838
9850
|
|
|
9839
9851
|
// Forward-declared so internal helpers can reference `handle` before it is constructed (via closure).
|
|
9840
9852
|
let handle;
|
|
9841
9853
|
|
|
9854
|
+
/** Apply the `alwaysOpen` value (override, or else the listbox placement). */
|
|
9855
|
+
function syncAlwaysOpen() {
|
|
9856
|
+
const value = alwaysOpenOverride ?? isInline;
|
|
9857
|
+
if (alwaysOpen === value) return;
|
|
9858
|
+
alwaysOpen = value;
|
|
9859
|
+
handle.setIsOpen(value);
|
|
9860
|
+
}
|
|
9861
|
+
|
|
9842
9862
|
/** Set `aria-haspopup="grid"` on the trigger when the listbox is a grid. */
|
|
9843
9863
|
function syncHasPopup(listbox) {
|
|
9844
9864
|
if (trigger && listbox?.getAttribute('role') === 'grid') trigger.setAttribute('aria-haspopup', 'grid');
|
|
@@ -9864,7 +9884,12 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
9864
9884
|
focusOwner: {
|
|
9865
9885
|
getFocusOwner: () => trigger,
|
|
9866
9886
|
getInputValue: () => trigger?.value ?? '',
|
|
9867
|
-
onMount: listbox =>
|
|
9887
|
+
onMount: listbox => {
|
|
9888
|
+
syncHasPopup(listbox);
|
|
9889
|
+
// No `Combobox.Popover` around the listbox: inline listbox, always open.
|
|
9890
|
+
isInline = !listbox.closest(`.${COMBOBOX_POPOVER_CLASSNAME}`);
|
|
9891
|
+
syncAlwaysOpen();
|
|
9892
|
+
}
|
|
9868
9893
|
}
|
|
9869
9894
|
});
|
|
9870
9895
|
|
|
@@ -9948,9 +9973,15 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
9948
9973
|
break;
|
|
9949
9974
|
case 'Escape':
|
|
9950
9975
|
// 2-tier: close if open, otherwise clear the input value.
|
|
9976
|
+
// Always open: only clear the active option (never the selected value, which stays visible).
|
|
9951
9977
|
// When there is nothing to close or clear, let Escape propagate
|
|
9952
9978
|
// (ex: so a surrounding dialog can close).
|
|
9953
|
-
if (
|
|
9979
|
+
if (alwaysOpen) {
|
|
9980
|
+
if (nav?.selectors.activeItem) {
|
|
9981
|
+
nav.clear();
|
|
9982
|
+
flag = true;
|
|
9983
|
+
}
|
|
9984
|
+
} else if (handle.isOpen) {
|
|
9954
9985
|
handle.setIsOpen(false);
|
|
9955
9986
|
flag = true;
|
|
9956
9987
|
} else if (triggerEl.tagName === 'INPUT' && triggerEl.value) {
|
|
@@ -10014,7 +10045,15 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
10014
10045
|
get isOpen() {
|
|
10015
10046
|
return list.isOpen;
|
|
10016
10047
|
},
|
|
10048
|
+
get alwaysOpen() {
|
|
10049
|
+
return alwaysOpen;
|
|
10050
|
+
},
|
|
10017
10051
|
setIsOpen(isOpen) {
|
|
10052
|
+
// Always open: a close request only clears the active option.
|
|
10053
|
+
if (alwaysOpen && !isOpen) {
|
|
10054
|
+
list.focusNav?.clear();
|
|
10055
|
+
return;
|
|
10056
|
+
}
|
|
10018
10057
|
if (list.isOpen === isOpen) return;
|
|
10019
10058
|
if (!isOpen) list.focusNav?.clear();
|
|
10020
10059
|
// Update aria-expanded on trigger (false when no visible options or skeletons)
|
|
@@ -10022,6 +10061,10 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
10022
10061
|
// Last: the listbox dispatches `open` to the subscribers, which must see the trigger in its final state.
|
|
10023
10062
|
list.setOpen(isOpen);
|
|
10024
10063
|
},
|
|
10064
|
+
setAlwaysOpen(value) {
|
|
10065
|
+
alwaysOpenOverride = value;
|
|
10066
|
+
syncAlwaysOpen();
|
|
10067
|
+
},
|
|
10025
10068
|
registerTrigger(newTrigger) {
|
|
10026
10069
|
// If replacing a trigger, detach first
|
|
10027
10070
|
if (trigger && trigger !== newTrigger) {
|
|
@@ -10124,12 +10167,12 @@ function setupComboboxButton(button, callbacks) {
|
|
|
10124
10167
|
/**
|
|
10125
10168
|
* Component display name.
|
|
10126
10169
|
*/
|
|
10127
|
-
const COMPONENT_NAME$
|
|
10170
|
+
const COMPONENT_NAME$1a = 'ComboboxButton';
|
|
10128
10171
|
|
|
10129
10172
|
/**
|
|
10130
10173
|
* Component default class name and class prefix.
|
|
10131
10174
|
*/
|
|
10132
|
-
const CLASSNAME$
|
|
10175
|
+
const CLASSNAME$17 = 'lumx-combobox-button';
|
|
10133
10176
|
|
|
10134
10177
|
/**
|
|
10135
10178
|
* ComboboxButton core template.
|
|
@@ -10169,7 +10212,7 @@ const ComboboxButton$1 = (props, {
|
|
|
10169
10212
|
const componentProps = {
|
|
10170
10213
|
ref,
|
|
10171
10214
|
...forwardedProps,
|
|
10172
|
-
className: classnames(className, CLASSNAME$
|
|
10215
|
+
className: classnames(className, CLASSNAME$17),
|
|
10173
10216
|
role: 'combobox',
|
|
10174
10217
|
'aria-controls': listboxId,
|
|
10175
10218
|
'aria-haspopup': 'listbox',
|
|
@@ -10311,8 +10354,8 @@ const ComboboxButton = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
10311
10354
|
Tooltip
|
|
10312
10355
|
});
|
|
10313
10356
|
}), {
|
|
10314
|
-
displayName: COMPONENT_NAME$
|
|
10315
|
-
className: CLASSNAME$
|
|
10357
|
+
displayName: COMPONENT_NAME$1a,
|
|
10358
|
+
className: CLASSNAME$17
|
|
10316
10359
|
});
|
|
10317
10360
|
|
|
10318
10361
|
/** Options for configuring the input-mode combobox controller. */
|
|
@@ -10414,6 +10457,16 @@ function setupComboboxInput(input, options) {
|
|
|
10414
10457
|
signal
|
|
10415
10458
|
});
|
|
10416
10459
|
|
|
10460
|
+
// Always open: the input loses focus with no close, so reset the typing state and the filter here
|
|
10461
|
+
// (the framework wrapper resets the search text on blur).
|
|
10462
|
+
input.addEventListener('focusout', () => {
|
|
10463
|
+
if (!combobox.alwaysOpen) return;
|
|
10464
|
+
userHasTyped = false;
|
|
10465
|
+
if (autoFilter) combobox.list.setFilter('');
|
|
10466
|
+
}, {
|
|
10467
|
+
signal
|
|
10468
|
+
});
|
|
10469
|
+
|
|
10417
10470
|
// Re-apply filter when the combobox opens, but only if the current
|
|
10418
10471
|
// input value came from user typing. After a programmatic change
|
|
10419
10472
|
// (select, clear), all options should remain visible.
|
|
@@ -10473,12 +10526,12 @@ function getDisabledState(context, props) {
|
|
|
10473
10526
|
/**
|
|
10474
10527
|
* Component display name.
|
|
10475
10528
|
*/
|
|
10476
|
-
const COMPONENT_NAME$
|
|
10529
|
+
const COMPONENT_NAME$19 = 'ComboboxInput';
|
|
10477
10530
|
|
|
10478
10531
|
/**
|
|
10479
10532
|
* Component default class name and class prefix.
|
|
10480
10533
|
*/
|
|
10481
|
-
const CLASSNAME$
|
|
10534
|
+
const CLASSNAME$16 = 'lumx-combobox-input';
|
|
10482
10535
|
|
|
10483
10536
|
/**
|
|
10484
10537
|
* ComboboxInput core template.
|
|
@@ -10548,22 +10601,22 @@ const ComboboxInput$1 = (props, {
|
|
|
10548
10601
|
/**
|
|
10549
10602
|
* Component display name.
|
|
10550
10603
|
*/
|
|
10551
|
-
const COMPONENT_NAME$
|
|
10604
|
+
const COMPONENT_NAME$18 = 'TextField';
|
|
10552
10605
|
|
|
10553
10606
|
/**
|
|
10554
10607
|
* Component default class name and class prefix.
|
|
10555
10608
|
*/
|
|
10556
|
-
const CLASSNAME$
|
|
10609
|
+
const CLASSNAME$15 = 'lumx-text-field';
|
|
10557
10610
|
|
|
10558
10611
|
/**
|
|
10559
10612
|
* Input native element class name.
|
|
10560
10613
|
*/
|
|
10561
|
-
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$
|
|
10614
|
+
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$15}__input-native`;
|
|
10562
10615
|
|
|
10563
10616
|
const {
|
|
10564
|
-
block: block$
|
|
10565
|
-
element: element$
|
|
10566
|
-
} = bem(CLASSNAME$
|
|
10617
|
+
block: block$U,
|
|
10618
|
+
element: element$H
|
|
10619
|
+
} = bem(CLASSNAME$15);
|
|
10567
10620
|
|
|
10568
10621
|
/**
|
|
10569
10622
|
* Defines the props of the component.
|
|
@@ -10636,7 +10689,7 @@ const TextField$1 = props => {
|
|
|
10636
10689
|
const isNotEmpty = valueLength > 0;
|
|
10637
10690
|
const remaining = maxLength ? maxLength - valueLength : 0;
|
|
10638
10691
|
const charCounter = maxLength ? /*#__PURE__*/jsxs("span", {
|
|
10639
|
-
className: element$
|
|
10692
|
+
className: element$H('char-counter'),
|
|
10640
10693
|
role: "status",
|
|
10641
10694
|
children: [charCounterMessage ? charCounterMessage(remaining) : remaining, remaining === 0 && Icon$1({
|
|
10642
10695
|
icon: mdiAlertCircle,
|
|
@@ -10645,7 +10698,7 @@ const TextField$1 = props => {
|
|
|
10645
10698
|
}) : undefined;
|
|
10646
10699
|
return /*#__PURE__*/jsxs("div", {
|
|
10647
10700
|
ref: ref,
|
|
10648
|
-
className: classnames(className, block$
|
|
10701
|
+
className: classnames(className, block$U({
|
|
10649
10702
|
'has-chips': Boolean(chips),
|
|
10650
10703
|
'has-error': !isValid && hasError,
|
|
10651
10704
|
'has-icon': Boolean(icon),
|
|
@@ -10661,56 +10714,56 @@ const TextField$1 = props => {
|
|
|
10661
10714
|
[`theme-${theme}`]: Boolean(theme)
|
|
10662
10715
|
})),
|
|
10663
10716
|
children: [(label || maxLength) && /*#__PURE__*/jsx("div", {
|
|
10664
|
-
className: element$
|
|
10717
|
+
className: element$H('header'),
|
|
10665
10718
|
children: InputLabel$1({
|
|
10666
10719
|
...labelProps,
|
|
10667
10720
|
id: labelId,
|
|
10668
10721
|
htmlFor: textFieldId,
|
|
10669
|
-
className: classnames(labelProps?.className, element$
|
|
10722
|
+
className: classnames(labelProps?.className, element$H('label')),
|
|
10670
10723
|
isRequired,
|
|
10671
10724
|
theme,
|
|
10672
10725
|
children: [label, charCounter]
|
|
10673
10726
|
})
|
|
10674
10727
|
}), /*#__PURE__*/jsxs("div", {
|
|
10675
|
-
className: element$
|
|
10728
|
+
className: element$H('wrapper'),
|
|
10676
10729
|
ref: textFieldRef,
|
|
10677
10730
|
children: [icon && Icon$1({
|
|
10678
|
-
className: element$
|
|
10731
|
+
className: element$H('input-icon'),
|
|
10679
10732
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
10680
10733
|
icon,
|
|
10681
10734
|
size: Size.xs
|
|
10682
10735
|
}), chips ? /*#__PURE__*/jsxs("div", {
|
|
10683
|
-
className: element$
|
|
10736
|
+
className: element$H('chips'),
|
|
10684
10737
|
children: [chips, input]
|
|
10685
10738
|
}) : /*#__PURE__*/jsx("div", {
|
|
10686
|
-
className: element$
|
|
10739
|
+
className: element$H('input-wrapper'),
|
|
10687
10740
|
children: input
|
|
10688
10741
|
}), (isValid || hasError) && Icon$1({
|
|
10689
|
-
className: element$
|
|
10742
|
+
className: element$H('input-validity'),
|
|
10690
10743
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
10691
10744
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
10692
10745
|
size: Size.xxs
|
|
10693
10746
|
}), clearButtonProps && isNotEmpty && !isAnyDisabled && /*#__PURE__*/jsx(IconButton, {
|
|
10694
10747
|
"aria-describedby": labelId,
|
|
10695
10748
|
...clearButtonProps,
|
|
10696
|
-
className: element$
|
|
10749
|
+
className: element$H('input-clear'),
|
|
10697
10750
|
icon: mdiCloseCircle,
|
|
10698
10751
|
emphasis: Emphasis.low,
|
|
10699
10752
|
size: Size.s,
|
|
10700
10753
|
theme: theme,
|
|
10701
10754
|
type: "button"
|
|
10702
10755
|
}), afterElement && /*#__PURE__*/jsx("div", {
|
|
10703
|
-
className: element$
|
|
10756
|
+
className: element$H('after-element'),
|
|
10704
10757
|
children: afterElement
|
|
10705
10758
|
})]
|
|
10706
10759
|
}), hasError && error && InputHelper$1({
|
|
10707
10760
|
children: error,
|
|
10708
|
-
className: element$
|
|
10761
|
+
className: element$H('helper'),
|
|
10709
10762
|
kind: Kind.error,
|
|
10710
10763
|
theme,
|
|
10711
10764
|
id: errorId
|
|
10712
10765
|
}), helper && InputHelper$1({
|
|
10713
|
-
className: element$
|
|
10766
|
+
className: element$H('helper'),
|
|
10714
10767
|
theme,
|
|
10715
10768
|
id: helperId,
|
|
10716
10769
|
children: helper
|
|
@@ -10719,7 +10772,7 @@ const TextField$1 = props => {
|
|
|
10719
10772
|
};
|
|
10720
10773
|
|
|
10721
10774
|
const {
|
|
10722
|
-
block: block$
|
|
10775
|
+
block: block$T
|
|
10723
10776
|
} = bem(INPUT_NATIVE_CLASSNAME);
|
|
10724
10777
|
|
|
10725
10778
|
/**
|
|
@@ -10762,7 +10815,7 @@ const RawInputText$1 = props => {
|
|
|
10762
10815
|
name: name,
|
|
10763
10816
|
type: type,
|
|
10764
10817
|
ref: ref,
|
|
10765
|
-
className: classnames(className, block$
|
|
10818
|
+
className: classnames(className, block$T({
|
|
10766
10819
|
[`theme-${theme}`]: Boolean(theme),
|
|
10767
10820
|
text: true
|
|
10768
10821
|
})),
|
|
@@ -10798,7 +10851,7 @@ const RawInputText = forwardRef((props, ref) => {
|
|
|
10798
10851
|
});
|
|
10799
10852
|
|
|
10800
10853
|
const {
|
|
10801
|
-
block: block$
|
|
10854
|
+
block: block$S
|
|
10802
10855
|
} = bem(INPUT_NATIVE_CLASSNAME);
|
|
10803
10856
|
|
|
10804
10857
|
/**
|
|
@@ -10840,7 +10893,7 @@ const RawInputTextarea$1 = props => {
|
|
|
10840
10893
|
...forwardedProps,
|
|
10841
10894
|
name: name,
|
|
10842
10895
|
ref: ref,
|
|
10843
|
-
className: classnames(className, block$
|
|
10896
|
+
className: classnames(className, block$S({
|
|
10844
10897
|
[`theme-${theme}`]: Boolean(theme),
|
|
10845
10898
|
textarea: true
|
|
10846
10899
|
})),
|
|
@@ -11089,8 +11142,8 @@ const TextField = forwardRef((props, ref) => {
|
|
|
11089
11142
|
} : undefined
|
|
11090
11143
|
});
|
|
11091
11144
|
});
|
|
11092
|
-
TextField.displayName = COMPONENT_NAME$
|
|
11093
|
-
TextField.className = CLASSNAME$
|
|
11145
|
+
TextField.displayName = COMPONENT_NAME$18;
|
|
11146
|
+
TextField.className = CLASSNAME$15;
|
|
11094
11147
|
TextField.defaultProps = DEFAULT_PROPS$W;
|
|
11095
11148
|
|
|
11096
11149
|
/**
|
|
@@ -11181,77 +11234,8 @@ const ComboboxInput = forwardRef((props, ref) => {
|
|
|
11181
11234
|
IconButton
|
|
11182
11235
|
});
|
|
11183
11236
|
});
|
|
11184
|
-
ComboboxInput.displayName = COMPONENT_NAME$
|
|
11185
|
-
ComboboxInput.className = CLASSNAME$
|
|
11186
|
-
|
|
11187
|
-
const DEFAULT_COMBOBOX_POPOVER_MAX_HEIGHT = '80vh';
|
|
11188
|
-
|
|
11189
|
-
const COMPONENT_NAME$16 = 'ComboboxPopover';
|
|
11190
|
-
|
|
11191
|
-
/**
|
|
11192
|
-
* Component default class name.
|
|
11193
|
-
*/
|
|
11194
|
-
const CLASSNAME$13 = 'lumx-combobox-popover';
|
|
11195
|
-
const {
|
|
11196
|
-
block: block$Q,
|
|
11197
|
-
element: element$F
|
|
11198
|
-
} = bem(CLASSNAME$13);
|
|
11199
|
-
|
|
11200
|
-
/**
|
|
11201
|
-
* Defines the props for the core ComboboxPopover template.
|
|
11202
|
-
*/
|
|
11203
|
-
|
|
11204
|
-
/**
|
|
11205
|
-
* Injected framework-specific components for ComboboxPopover rendering.
|
|
11206
|
-
*/
|
|
11207
|
-
|
|
11208
|
-
/**
|
|
11209
|
-
* ComboboxPopover core template.
|
|
11210
|
-
* Renders a Popover with combobox-specific defaults (className, closeMode, closeOnClickAway, closeOnEscape).
|
|
11211
|
-
*
|
|
11212
|
-
* Framework-specific components (Popover) are passed as a second argument
|
|
11213
|
-
* by the React/Vue wrappers.
|
|
11214
|
-
*
|
|
11215
|
-
* @param props Component props.
|
|
11216
|
-
* @param components Injected framework-specific components.
|
|
11217
|
-
* @return JSX element.
|
|
11218
|
-
*/
|
|
11219
|
-
const ComboboxPopover$1 = (props, {
|
|
11220
|
-
Popover,
|
|
11221
|
-
FlexBox
|
|
11222
|
-
}) => {
|
|
11223
|
-
const {
|
|
11224
|
-
children,
|
|
11225
|
-
className,
|
|
11226
|
-
closeOnClickAway = true,
|
|
11227
|
-
closeOnEscape = false,
|
|
11228
|
-
fitToAnchorWidth = true,
|
|
11229
|
-
isOpen,
|
|
11230
|
-
maxHeight = DEFAULT_COMBOBOX_POPOVER_MAX_HEIGHT,
|
|
11231
|
-
placement = 'bottom-start',
|
|
11232
|
-
anchorRef,
|
|
11233
|
-
handleClose,
|
|
11234
|
-
...forwardedProps
|
|
11235
|
-
} = props;
|
|
11236
|
-
return /*#__PURE__*/jsx(Popover, {
|
|
11237
|
-
...forwardedProps,
|
|
11238
|
-
placement: placement,
|
|
11239
|
-
fitToAnchorWidth: fitToAnchorWidth,
|
|
11240
|
-
maxHeight: maxHeight,
|
|
11241
|
-
className: block$Q([className]),
|
|
11242
|
-
anchorRef: anchorRef,
|
|
11243
|
-
isOpen: isOpen,
|
|
11244
|
-
onClose: handleClose,
|
|
11245
|
-
closeOnClickAway: closeOnClickAway,
|
|
11246
|
-
closeOnEscape: closeOnEscape,
|
|
11247
|
-
closeMode: "hide",
|
|
11248
|
-
children: /*#__PURE__*/jsx(FlexBox, {
|
|
11249
|
-
orientation: "vertical",
|
|
11250
|
-
className: element$F('scroll'),
|
|
11251
|
-
children: children
|
|
11252
|
-
})
|
|
11253
|
-
});
|
|
11254
|
-
};
|
|
11237
|
+
ComboboxInput.displayName = COMPONENT_NAME$19;
|
|
11238
|
+
ComboboxInput.className = CLASSNAME$16;
|
|
11255
11239
|
|
|
11256
11240
|
/**
|
|
11257
11241
|
* Defines the props of the component.
|
|
@@ -11260,15 +11244,15 @@ const ComboboxPopover$1 = (props, {
|
|
|
11260
11244
|
/**
|
|
11261
11245
|
* Component display name.
|
|
11262
11246
|
*/
|
|
11263
|
-
const COMPONENT_NAME$
|
|
11247
|
+
const COMPONENT_NAME$17 = 'FlexBox';
|
|
11264
11248
|
|
|
11265
11249
|
/**
|
|
11266
11250
|
* Component default class name and class prefix.
|
|
11267
11251
|
*/
|
|
11268
|
-
const CLASSNAME$
|
|
11252
|
+
const CLASSNAME$14 = 'lumx-flex-box';
|
|
11269
11253
|
const {
|
|
11270
|
-
block: block$
|
|
11271
|
-
} = bem(CLASSNAME$
|
|
11254
|
+
block: block$R
|
|
11255
|
+
} = bem(CLASSNAME$14);
|
|
11272
11256
|
|
|
11273
11257
|
/**
|
|
11274
11258
|
* Get FlexBox component props (className computation).
|
|
@@ -11292,7 +11276,7 @@ function getFlexBoxProps(props) {
|
|
|
11292
11276
|
const adjustedOrientation = orientation ?? (wrap || hAlign || vAlign ? Orientation.horizontal : null);
|
|
11293
11277
|
return {
|
|
11294
11278
|
...forwardedProps,
|
|
11295
|
-
className: classnames(className, block$
|
|
11279
|
+
className: classnames(className, block$R({
|
|
11296
11280
|
[`orientation-${adjustedOrientation}`]: Boolean(adjustedOrientation),
|
|
11297
11281
|
[`v-align-${vAlign}`]: Boolean(vAlign),
|
|
11298
11282
|
[`h-align-${hAlign}`]: Boolean(hAlign),
|
|
@@ -11306,26 +11290,114 @@ function getFlexBoxProps(props) {
|
|
|
11306
11290
|
}
|
|
11307
11291
|
|
|
11308
11292
|
/**
|
|
11309
|
-
*
|
|
11293
|
+
* Component display name.
|
|
11294
|
+
*/
|
|
11295
|
+
const COMPONENT_NAME$16 = 'ScrollBox';
|
|
11296
|
+
|
|
11297
|
+
/**
|
|
11298
|
+
* Component default class name.
|
|
11299
|
+
*/
|
|
11300
|
+
const CLASSNAME$13 = 'lumx-scroll-box';
|
|
11301
|
+
const {
|
|
11302
|
+
block: block$Q
|
|
11303
|
+
} = bem(CLASSNAME$13);
|
|
11304
|
+
|
|
11305
|
+
/**
|
|
11306
|
+
* ScrollBox core template (internal).
|
|
11307
|
+
* Renders a vertical flex box whose content scrolls on the y axis.
|
|
11310
11308
|
*
|
|
11311
|
-
* @param
|
|
11312
|
-
* @
|
|
11313
|
-
* @return React element.
|
|
11309
|
+
* @param props Component props.
|
|
11310
|
+
* @return JSX element.
|
|
11314
11311
|
*/
|
|
11315
|
-
const
|
|
11312
|
+
const ScrollBox = props => {
|
|
11316
11313
|
const {
|
|
11317
|
-
as: Component = 'div',
|
|
11318
11314
|
children,
|
|
11315
|
+
className,
|
|
11316
|
+
scrollSnap,
|
|
11317
|
+
style,
|
|
11318
|
+
ref,
|
|
11319
11319
|
...forwardedProps
|
|
11320
11320
|
} = props;
|
|
11321
|
-
return /*#__PURE__*/jsx(
|
|
11321
|
+
return /*#__PURE__*/jsx("div", {
|
|
11322
11322
|
ref: ref,
|
|
11323
|
-
...getFlexBoxProps(
|
|
11323
|
+
...getFlexBoxProps({
|
|
11324
|
+
...forwardedProps,
|
|
11325
|
+
orientation: Orientation.vertical,
|
|
11326
|
+
className: block$Q({
|
|
11327
|
+
'scroll-snap': scrollSnap
|
|
11328
|
+
}, className)
|
|
11329
|
+
}),
|
|
11324
11330
|
children: children
|
|
11325
11331
|
});
|
|
11326
|
-
}
|
|
11327
|
-
|
|
11328
|
-
|
|
11332
|
+
};
|
|
11333
|
+
ScrollBox.displayName = COMPONENT_NAME$16;
|
|
11334
|
+
ScrollBox.className = CLASSNAME$13;
|
|
11335
|
+
|
|
11336
|
+
const COMPONENT_NAME$15 = 'ComboboxPopover';
|
|
11337
|
+
|
|
11338
|
+
/**
|
|
11339
|
+
* Component default class name.
|
|
11340
|
+
*/
|
|
11341
|
+
const CLASSNAME$12 = COMBOBOX_POPOVER_CLASSNAME;
|
|
11342
|
+
const {
|
|
11343
|
+
block: block$P,
|
|
11344
|
+
element: element$G
|
|
11345
|
+
} = bem(CLASSNAME$12);
|
|
11346
|
+
|
|
11347
|
+
/**
|
|
11348
|
+
* Defines the props for the core ComboboxPopover template.
|
|
11349
|
+
*/
|
|
11350
|
+
|
|
11351
|
+
/**
|
|
11352
|
+
* Injected framework-specific components for ComboboxPopover rendering.
|
|
11353
|
+
*/
|
|
11354
|
+
|
|
11355
|
+
/**
|
|
11356
|
+
* ComboboxPopover core template.
|
|
11357
|
+
* Renders a Popover with combobox-specific defaults (className, closeMode, closeOnClickAway, closeOnEscape).
|
|
11358
|
+
*
|
|
11359
|
+
* Framework-specific components (Popover) are passed as a second argument
|
|
11360
|
+
* by the React/Vue wrappers.
|
|
11361
|
+
*
|
|
11362
|
+
* @param props Component props.
|
|
11363
|
+
* @param components Injected framework-specific components.
|
|
11364
|
+
* @return JSX element.
|
|
11365
|
+
*/
|
|
11366
|
+
const ComboboxPopover$1 = (props, {
|
|
11367
|
+
Popover
|
|
11368
|
+
}) => {
|
|
11369
|
+
const {
|
|
11370
|
+
children,
|
|
11371
|
+
className,
|
|
11372
|
+
closeOnClickAway = true,
|
|
11373
|
+
closeOnEscape = false,
|
|
11374
|
+
fitToAnchorWidth = true,
|
|
11375
|
+
isOpen,
|
|
11376
|
+
maxHeight = DEFAULT_COMBOBOX_POPOVER_MAX_HEIGHT,
|
|
11377
|
+
placement = 'bottom-start',
|
|
11378
|
+
anchorRef,
|
|
11379
|
+
handleClose,
|
|
11380
|
+
...forwardedProps
|
|
11381
|
+
} = props;
|
|
11382
|
+
return /*#__PURE__*/jsx(Popover, {
|
|
11383
|
+
...forwardedProps,
|
|
11384
|
+
placement: placement,
|
|
11385
|
+
fitToAnchorWidth: fitToAnchorWidth,
|
|
11386
|
+
maxHeight: maxHeight,
|
|
11387
|
+
className: block$P([className]),
|
|
11388
|
+
anchorRef: anchorRef,
|
|
11389
|
+
isOpen: isOpen,
|
|
11390
|
+
onClose: handleClose,
|
|
11391
|
+
closeOnClickAway: closeOnClickAway,
|
|
11392
|
+
closeOnEscape: closeOnEscape,
|
|
11393
|
+
closeMode: "hide",
|
|
11394
|
+
children: ScrollBox({
|
|
11395
|
+
className: element$G('scroll'),
|
|
11396
|
+
scrollSnap: true,
|
|
11397
|
+
children
|
|
11398
|
+
})
|
|
11399
|
+
});
|
|
11400
|
+
};
|
|
11329
11401
|
|
|
11330
11402
|
/**
|
|
11331
11403
|
* Props for Popover that can be passed to Combobox.Popover.
|
|
@@ -11359,12 +11431,11 @@ const ComboboxPopover = props => {
|
|
|
11359
11431
|
anchorRef: anchorRef,
|
|
11360
11432
|
handleClose: () => setIsOpen(false)
|
|
11361
11433
|
}, {
|
|
11362
|
-
Popover
|
|
11363
|
-
FlexBox
|
|
11434
|
+
Popover
|
|
11364
11435
|
});
|
|
11365
11436
|
};
|
|
11366
|
-
ComboboxPopover.displayName = COMPONENT_NAME$
|
|
11367
|
-
ComboboxPopover.className = CLASSNAME$
|
|
11437
|
+
ComboboxPopover.displayName = COMPONENT_NAME$15;
|
|
11438
|
+
ComboboxPopover.className = CLASSNAME$12;
|
|
11368
11439
|
|
|
11369
11440
|
/**
|
|
11370
11441
|
* Combobox.Provider component.
|
|
@@ -11378,7 +11449,8 @@ ComboboxPopover.className = CLASSNAME$13;
|
|
|
11378
11449
|
function ComboboxProvider(props) {
|
|
11379
11450
|
const {
|
|
11380
11451
|
children,
|
|
11381
|
-
onOpen
|
|
11452
|
+
onOpen,
|
|
11453
|
+
alwaysOpen
|
|
11382
11454
|
} = props;
|
|
11383
11455
|
const listboxId = useId();
|
|
11384
11456
|
const anchorRef = useRef(null);
|
|
@@ -11396,6 +11468,11 @@ function ComboboxProvider(props) {
|
|
|
11396
11468
|
type: 'listbox'
|
|
11397
11469
|
}), [handle, listboxId]);
|
|
11398
11470
|
|
|
11471
|
+
// Force the always open state (`undefined`: the core detects the inline listbox).
|
|
11472
|
+
useEffect(() => {
|
|
11473
|
+
handle?.setAlwaysOpen(alwaysOpen);
|
|
11474
|
+
}, [handle, alwaysOpen]);
|
|
11475
|
+
|
|
11399
11476
|
// Subscribe to the open event and forward to the onOpen callback.
|
|
11400
11477
|
const onOpenRef = useRef(onOpen);
|
|
11401
11478
|
onOpenRef.current = onOpen;
|
|
@@ -11474,7 +11551,7 @@ const COMPONENT_NAME$14 = 'CommentBlock';
|
|
|
11474
11551
|
const CLASSNAME$11 = 'lumx-comment-block';
|
|
11475
11552
|
const {
|
|
11476
11553
|
block: block$O,
|
|
11477
|
-
element: element$
|
|
11554
|
+
element: element$F
|
|
11478
11555
|
} = classNames.bem(CLASSNAME$11);
|
|
11479
11556
|
|
|
11480
11557
|
/**
|
|
@@ -11525,54 +11602,54 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
11525
11602
|
})),
|
|
11526
11603
|
...forwardedProps,
|
|
11527
11604
|
children: [/*#__PURE__*/jsxs("div", {
|
|
11528
|
-
className: element$
|
|
11605
|
+
className: element$F('wrapper'),
|
|
11529
11606
|
children: [/*#__PURE__*/jsx("div", {
|
|
11530
|
-
className: element$
|
|
11607
|
+
className: element$F('avatar'),
|
|
11531
11608
|
children: /*#__PURE__*/jsx(Avatar, {
|
|
11532
11609
|
...avatarProps,
|
|
11533
11610
|
size: Size$1.m,
|
|
11534
11611
|
onClick: onClick
|
|
11535
11612
|
})
|
|
11536
11613
|
}), /*#__PURE__*/jsxs("div", {
|
|
11537
|
-
className: element$
|
|
11614
|
+
className: element$F('container'),
|
|
11538
11615
|
children: [/*#__PURE__*/jsxs("div", {
|
|
11539
|
-
className: element$
|
|
11616
|
+
className: element$F('content'),
|
|
11540
11617
|
children: [/*#__PURE__*/jsxs("div", {
|
|
11541
|
-
className: element$
|
|
11618
|
+
className: element$F('meta'),
|
|
11542
11619
|
children: [name &&
|
|
11543
11620
|
/*#__PURE__*/
|
|
11544
11621
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
11545
11622
|
jsx("span", {
|
|
11546
|
-
className: element$
|
|
11623
|
+
className: element$F('name'),
|
|
11547
11624
|
onClick: onClick,
|
|
11548
11625
|
onMouseEnter: onMouseEnter,
|
|
11549
11626
|
onMouseLeave: onMouseLeave,
|
|
11550
11627
|
children: name
|
|
11551
11628
|
}), headerActions && /*#__PURE__*/jsx("span", {
|
|
11552
|
-
className: element$
|
|
11629
|
+
className: element$F('header-actions'),
|
|
11553
11630
|
children: headerActions
|
|
11554
11631
|
})]
|
|
11555
11632
|
}), /*#__PURE__*/jsx("div", {
|
|
11556
|
-
className: element$
|
|
11633
|
+
className: element$F('text'),
|
|
11557
11634
|
children: text
|
|
11558
11635
|
}), date && (fullDate ? /*#__PURE__*/jsx(Tooltip, {
|
|
11559
11636
|
label: fullDate,
|
|
11560
11637
|
placement: "top",
|
|
11561
11638
|
children: /*#__PURE__*/jsx("span", {
|
|
11562
|
-
className: element$
|
|
11639
|
+
className: element$F('date'),
|
|
11563
11640
|
children: date
|
|
11564
11641
|
})
|
|
11565
11642
|
}) : /*#__PURE__*/jsx("span", {
|
|
11566
|
-
className: element$
|
|
11643
|
+
className: element$F('date'),
|
|
11567
11644
|
children: date
|
|
11568
11645
|
}))]
|
|
11569
11646
|
}), hasActions && /*#__PURE__*/jsx("div", {
|
|
11570
|
-
className: element$
|
|
11647
|
+
className: element$F('actions'),
|
|
11571
11648
|
children: actions
|
|
11572
11649
|
})]
|
|
11573
11650
|
})]
|
|
11574
11651
|
}), hasChildren && isOpen && /*#__PURE__*/jsx("div", {
|
|
11575
|
-
className: element$
|
|
11652
|
+
className: element$F('children'),
|
|
11576
11653
|
children: children
|
|
11577
11654
|
})]
|
|
11578
11655
|
});
|
|
@@ -11826,7 +11903,7 @@ function formatDayNumber(locale, date) {
|
|
|
11826
11903
|
}
|
|
11827
11904
|
|
|
11828
11905
|
const {
|
|
11829
|
-
element: element$
|
|
11906
|
+
element: element$E
|
|
11830
11907
|
} = classNames.bem(CLASSNAME$10);
|
|
11831
11908
|
|
|
11832
11909
|
/**
|
|
@@ -11924,7 +12001,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11924
12001
|
className: `${CLASSNAME$10}`,
|
|
11925
12002
|
style: style,
|
|
11926
12003
|
children: [/*#__PURE__*/jsx(Toolbar, {
|
|
11927
|
-
className: element$
|
|
12004
|
+
className: element$E('toolbar'),
|
|
11928
12005
|
after: /*#__PURE__*/jsx(IconButton, {
|
|
11929
12006
|
...nextButtonProps,
|
|
11930
12007
|
emphasis: Emphasis$1.low,
|
|
@@ -11944,7 +12021,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11944
12021
|
dir: "auto",
|
|
11945
12022
|
children: monthYear
|
|
11946
12023
|
}), onMonthChange && /*#__PURE__*/jsx(FlexBox, {
|
|
11947
|
-
className: element$
|
|
12024
|
+
className: element$E('month'),
|
|
11948
12025
|
orientation: "horizontal",
|
|
11949
12026
|
hAlign: "center",
|
|
11950
12027
|
gap: "regular",
|
|
@@ -11959,7 +12036,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11959
12036
|
min: 0,
|
|
11960
12037
|
onBlur: updateYear,
|
|
11961
12038
|
onKeyPress: updateYearOnEnterPressed,
|
|
11962
|
-
className: element$
|
|
12039
|
+
className: element$E('year')
|
|
11963
12040
|
}, "year") : /*#__PURE__*/jsx(Text, {
|
|
11964
12041
|
as: "p",
|
|
11965
12042
|
children: part
|
|
@@ -11967,17 +12044,17 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11967
12044
|
})]
|
|
11968
12045
|
})
|
|
11969
12046
|
}), /*#__PURE__*/jsxs("div", {
|
|
11970
|
-
className: element$
|
|
12047
|
+
className: element$E('calendar'),
|
|
11971
12048
|
children: [/*#__PURE__*/jsx("div", {
|
|
11972
|
-
className: classNames.join(element$
|
|
12049
|
+
className: classNames.join(element$E('week-days'), element$E('days-wrapper')),
|
|
11973
12050
|
children: weekDays.map(({
|
|
11974
12051
|
letter,
|
|
11975
12052
|
number,
|
|
11976
12053
|
long
|
|
11977
12054
|
}) => /*#__PURE__*/jsxs("div", {
|
|
11978
|
-
className: element$
|
|
12055
|
+
className: element$E('day-wrapper'),
|
|
11979
12056
|
children: [/*#__PURE__*/jsx("span", {
|
|
11980
|
-
className: element$
|
|
12057
|
+
className: element$E('week-day'),
|
|
11981
12058
|
"aria-hidden": true,
|
|
11982
12059
|
children: letter.toLocaleUpperCase()
|
|
11983
12060
|
}), /*#__PURE__*/jsx("span", {
|
|
@@ -11986,7 +12063,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11986
12063
|
})]
|
|
11987
12064
|
}, number))
|
|
11988
12065
|
}), /*#__PURE__*/jsx("div", {
|
|
11989
|
-
className: classNames.join(element$
|
|
12066
|
+
className: classNames.join(element$E('month-days'), element$E('days-wrapper')),
|
|
11990
12067
|
children: weeks.flatMap((week, weekIndex) => {
|
|
11991
12068
|
return weekDays.map((weekDay, dayIndex) => {
|
|
11992
12069
|
const {
|
|
@@ -11997,10 +12074,10 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11997
12074
|
const isToday = !isOutOfRange && date && isSameDay(date, new Date());
|
|
11998
12075
|
const isSelected = date && value && isSameDay(value, date);
|
|
11999
12076
|
return /*#__PURE__*/jsx("div", {
|
|
12000
|
-
className: element$
|
|
12077
|
+
className: element$E('day-wrapper'),
|
|
12001
12078
|
children: date && /*#__PURE__*/jsxs(Button, {
|
|
12002
12079
|
ref: isSelected || !value && isToday ? todayOrSelectedDateRef : null,
|
|
12003
|
-
className: element$
|
|
12080
|
+
className: element$E('month-day', {
|
|
12004
12081
|
'is-today': isToday
|
|
12005
12082
|
}),
|
|
12006
12083
|
disabled: isOutOfRange,
|
|
@@ -12503,7 +12580,7 @@ const DIALOG_HEADING_COMPONENT_NAME = 'DialogHeading';
|
|
|
12503
12580
|
const CLASSNAME$$ = 'lumx-dialog';
|
|
12504
12581
|
const {
|
|
12505
12582
|
block: block$N,
|
|
12506
|
-
element: element$
|
|
12583
|
+
element: element$D
|
|
12507
12584
|
} = bem(CLASSNAME$$);
|
|
12508
12585
|
|
|
12509
12586
|
/**
|
|
@@ -12552,7 +12629,7 @@ const DialogShell = props => {
|
|
|
12552
12629
|
zIndex
|
|
12553
12630
|
},
|
|
12554
12631
|
children: [isModal && /*#__PURE__*/jsx("div", {
|
|
12555
|
-
className: element$
|
|
12632
|
+
className: element$D('overlay')
|
|
12556
12633
|
}), /*#__PURE__*/jsx(HeadingLevelProvider, {
|
|
12557
12634
|
level: 2,
|
|
12558
12635
|
children: /*#__PURE__*/jsx(ThemeProvider, {
|
|
@@ -12640,7 +12717,7 @@ const DialogContent$1 = props => {
|
|
|
12640
12717
|
} = dialogProps ?? {};
|
|
12641
12718
|
const isModal = isDialogModal(restDialogProps);
|
|
12642
12719
|
return /*#__PURE__*/jsx("div", {
|
|
12643
|
-
className: element$
|
|
12720
|
+
className: element$D('container'),
|
|
12644
12721
|
role: "dialog",
|
|
12645
12722
|
"aria-modal": "true",
|
|
12646
12723
|
...restDialogProps,
|
|
@@ -12652,36 +12729,36 @@ const DialogContent$1 = props => {
|
|
|
12652
12729
|
childrenRefs: clickAwayRefs,
|
|
12653
12730
|
parentRef: rootRef,
|
|
12654
12731
|
children: /*#__PURE__*/jsxs("section", {
|
|
12655
|
-
className: element$
|
|
12732
|
+
className: element$D('wrapper'),
|
|
12656
12733
|
ref: wrapperRef,
|
|
12657
12734
|
children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
|
|
12658
12735
|
...headerChildProps,
|
|
12659
|
-
className: classnames(element$
|
|
12736
|
+
className: classnames(element$D('header', {
|
|
12660
12737
|
'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
|
|
12661
12738
|
}), headerChildProps?.className),
|
|
12662
12739
|
children: [header, headerChildContent]
|
|
12663
12740
|
}), /*#__PURE__*/jsxs("div", {
|
|
12664
12741
|
ref: contentRef,
|
|
12665
|
-
className: element$
|
|
12742
|
+
className: element$D('content'),
|
|
12666
12743
|
children: [/*#__PURE__*/jsx("div", {
|
|
12667
|
-
className: element$
|
|
12744
|
+
className: element$D('sentinel', {
|
|
12668
12745
|
top: true
|
|
12669
12746
|
}),
|
|
12670
12747
|
ref: setSentinelTop
|
|
12671
12748
|
}), content, /*#__PURE__*/jsx("div", {
|
|
12672
|
-
className: element$
|
|
12749
|
+
className: element$D('sentinel', {
|
|
12673
12750
|
bottom: true
|
|
12674
12751
|
}),
|
|
12675
12752
|
ref: setSentinelBottom
|
|
12676
12753
|
})]
|
|
12677
12754
|
}), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
|
|
12678
12755
|
...footerChildProps,
|
|
12679
|
-
className: classnames(element$
|
|
12756
|
+
className: classnames(element$D('footer', {
|
|
12680
12757
|
'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
|
|
12681
12758
|
}), footerChildProps?.className),
|
|
12682
12759
|
children: [footer, footerChildContent]
|
|
12683
12760
|
}), isLoading && /*#__PURE__*/jsx("div", {
|
|
12684
|
-
className: element$
|
|
12761
|
+
className: element$D('progress-overlay'),
|
|
12685
12762
|
children: /*#__PURE__*/jsx(ProgressCircular, {})
|
|
12686
12763
|
})]
|
|
12687
12764
|
})
|
|
@@ -13494,8 +13571,8 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
13494
13571
|
itemPadding: adjustedItemPadding
|
|
13495
13572
|
});
|
|
13496
13573
|
});
|
|
13497
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
13498
|
-
InternalList.className = CLASSNAME$
|
|
13574
|
+
InternalList.displayName = COMPONENT_NAME$1o;
|
|
13575
|
+
InternalList.className = CLASSNAME$1l;
|
|
13499
13576
|
InternalList.defaultProps = DEFAULT_PROPS$13;
|
|
13500
13577
|
const List = Object.assign(InternalList, {
|
|
13501
13578
|
useKeyboardListNavigation
|
|
@@ -13553,7 +13630,7 @@ const COMPONENT_NAME$Y = 'Dropdown';
|
|
|
13553
13630
|
const CLASSNAME$X = 'lumx-dropdown';
|
|
13554
13631
|
const {
|
|
13555
13632
|
block: block$K,
|
|
13556
|
-
element: element$
|
|
13633
|
+
element: element$C
|
|
13557
13634
|
} = classNames.bem(CLASSNAME$X);
|
|
13558
13635
|
|
|
13559
13636
|
/**
|
|
@@ -13632,7 +13709,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
13632
13709
|
placement: placement,
|
|
13633
13710
|
zIndex: zIndex,
|
|
13634
13711
|
children: /*#__PURE__*/jsx("div", {
|
|
13635
|
-
className: element$
|
|
13712
|
+
className: element$C('menu'),
|
|
13636
13713
|
ref: innerRef,
|
|
13637
13714
|
children: popperElement
|
|
13638
13715
|
})
|
|
@@ -13653,7 +13730,7 @@ const COMPONENT_NAME$X = 'ExpansionPanel';
|
|
|
13653
13730
|
const CLASSNAME$W = 'lumx-expansion-panel';
|
|
13654
13731
|
const {
|
|
13655
13732
|
block: block$J,
|
|
13656
|
-
element: element$
|
|
13733
|
+
element: element$B
|
|
13657
13734
|
} = bem(CLASSNAME$W);
|
|
13658
13735
|
|
|
13659
13736
|
/**
|
|
@@ -13722,17 +13799,17 @@ const ExpansionPanel$1 = props => {
|
|
|
13722
13799
|
...forwardedProps,
|
|
13723
13800
|
className: rootClassName,
|
|
13724
13801
|
children: [/*#__PURE__*/jsxs("header", {
|
|
13725
|
-
className: element$
|
|
13802
|
+
className: element$B('header'),
|
|
13726
13803
|
onClick: toggleOpen,
|
|
13727
13804
|
children: [dragHandle && /*#__PURE__*/jsx("div", {
|
|
13728
|
-
className: element$
|
|
13805
|
+
className: element$B('header-drag'),
|
|
13729
13806
|
children: dragHandle
|
|
13730
13807
|
}), /*#__PURE__*/jsx("div", {
|
|
13731
13808
|
...headerProps,
|
|
13732
|
-
className: element$
|
|
13809
|
+
className: element$B('header-content'),
|
|
13733
13810
|
children: headerContent
|
|
13734
13811
|
}), /*#__PURE__*/jsx("div", {
|
|
13735
|
-
className: element$
|
|
13812
|
+
className: element$B('header-toggle'),
|
|
13736
13813
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
13737
13814
|
...toggleButtonProps,
|
|
13738
13815
|
color: color,
|
|
@@ -13742,15 +13819,15 @@ const ExpansionPanel$1 = props => {
|
|
|
13742
13819
|
})
|
|
13743
13820
|
})]
|
|
13744
13821
|
}), /*#__PURE__*/jsx("div", {
|
|
13745
|
-
className: element$
|
|
13822
|
+
className: element$B('wrapper'),
|
|
13746
13823
|
ref: wrapperRef,
|
|
13747
13824
|
children: (isOpen || isChildrenVisible) && /*#__PURE__*/jsxs("div", {
|
|
13748
|
-
className: element$
|
|
13825
|
+
className: element$B('container'),
|
|
13749
13826
|
children: [/*#__PURE__*/jsx("div", {
|
|
13750
|
-
className: element$
|
|
13827
|
+
className: element$B('content'),
|
|
13751
13828
|
children: content
|
|
13752
13829
|
}), footer && /*#__PURE__*/jsx("div", {
|
|
13753
|
-
className: element$
|
|
13830
|
+
className: element$B('footer'),
|
|
13754
13831
|
children: footer
|
|
13755
13832
|
})]
|
|
13756
13833
|
})
|
|
@@ -13790,7 +13867,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
13790
13867
|
// Either take the header in children or create one with the label.
|
|
13791
13868
|
const headerProps = /*#__PURE__*/React__default.isValidElement(header) ? header.props : {};
|
|
13792
13869
|
const headerContent = !isEmpty(headerProps.children) ? headerProps.children : /*#__PURE__*/jsx("span", {
|
|
13793
|
-
className: element$
|
|
13870
|
+
className: element$B('label'),
|
|
13794
13871
|
children: label
|
|
13795
13872
|
});
|
|
13796
13873
|
const wrapperRef = useRef(null);
|
|
@@ -13852,7 +13929,7 @@ const CLASSNAME$V = 'lumx-flag';
|
|
|
13852
13929
|
const DEFAULT_PROPS$N = {};
|
|
13853
13930
|
const {
|
|
13854
13931
|
block: block$I,
|
|
13855
|
-
element: element$
|
|
13932
|
+
element: element$A
|
|
13856
13933
|
} = bem(CLASSNAME$V);
|
|
13857
13934
|
|
|
13858
13935
|
/**
|
|
@@ -13883,12 +13960,12 @@ const Flag$1 = props => {
|
|
|
13883
13960
|
children: [icon && Icon$1({
|
|
13884
13961
|
icon,
|
|
13885
13962
|
size: Size.xxs,
|
|
13886
|
-
className: element$
|
|
13963
|
+
className: element$A('icon')
|
|
13887
13964
|
}), /*#__PURE__*/jsx(Text, {
|
|
13888
13965
|
as: "span",
|
|
13889
13966
|
truncate: !!truncate,
|
|
13890
13967
|
typography: "overline",
|
|
13891
|
-
className: element$
|
|
13968
|
+
className: element$A('label'),
|
|
13892
13969
|
children: children
|
|
13893
13970
|
})]
|
|
13894
13971
|
});
|
|
@@ -13915,6 +13992,28 @@ Flag.displayName = COMPONENT_NAME$W;
|
|
|
13915
13992
|
Flag.className = CLASSNAME$V;
|
|
13916
13993
|
Flag.defaultProps = DEFAULT_PROPS$N;
|
|
13917
13994
|
|
|
13995
|
+
/**
|
|
13996
|
+
* FlexBox component.
|
|
13997
|
+
*
|
|
13998
|
+
* @param props Component props.
|
|
13999
|
+
* @param ref Component ref.
|
|
14000
|
+
* @return React element.
|
|
14001
|
+
*/
|
|
14002
|
+
const FlexBox = forwardRef((props, ref) => {
|
|
14003
|
+
const {
|
|
14004
|
+
as: Component = 'div',
|
|
14005
|
+
children,
|
|
14006
|
+
...forwardedProps
|
|
14007
|
+
} = props;
|
|
14008
|
+
return /*#__PURE__*/jsx(Component, {
|
|
14009
|
+
ref: ref,
|
|
14010
|
+
...getFlexBoxProps(forwardedProps),
|
|
14011
|
+
children: children
|
|
14012
|
+
});
|
|
14013
|
+
});
|
|
14014
|
+
FlexBox.displayName = COMPONENT_NAME$17;
|
|
14015
|
+
FlexBox.className = CLASSNAME$14;
|
|
14016
|
+
|
|
13918
14017
|
/**
|
|
13919
14018
|
* Component display name.
|
|
13920
14019
|
*/
|
|
@@ -14123,7 +14222,7 @@ const COMPONENT_NAME$S = 'ImageBlock';
|
|
|
14123
14222
|
const CLASSNAME$R = 'lumx-image-block';
|
|
14124
14223
|
const {
|
|
14125
14224
|
block: block$F,
|
|
14126
|
-
element: element$
|
|
14225
|
+
element: element$z
|
|
14127
14226
|
} = bem(CLASSNAME$R);
|
|
14128
14227
|
|
|
14129
14228
|
/**
|
|
@@ -14176,7 +14275,7 @@ const ImageBlock$1 = props => {
|
|
|
14176
14275
|
})),
|
|
14177
14276
|
children: [/*#__PURE__*/jsx(Thumbnail, {
|
|
14178
14277
|
...thumbnailProps,
|
|
14179
|
-
className: classnames(element$
|
|
14278
|
+
className: classnames(element$z('image'), thumbnailProps?.className),
|
|
14180
14279
|
fillHeight: fillHeight,
|
|
14181
14280
|
align: align,
|
|
14182
14281
|
image: image,
|
|
@@ -14196,7 +14295,7 @@ const ImageBlock$1 = props => {
|
|
|
14196
14295
|
align: align,
|
|
14197
14296
|
truncate: captionPosition === 'over'
|
|
14198
14297
|
}), actions && /*#__PURE__*/jsx("div", {
|
|
14199
|
-
className: element$
|
|
14298
|
+
className: element$z('actions'),
|
|
14200
14299
|
children: actions
|
|
14201
14300
|
})]
|
|
14202
14301
|
});
|
|
@@ -14573,7 +14672,7 @@ function useAnimateScroll(scrollAreaRef) {
|
|
|
14573
14672
|
}
|
|
14574
14673
|
|
|
14575
14674
|
const {
|
|
14576
|
-
element: element$
|
|
14675
|
+
element: element$y
|
|
14577
14676
|
} = classNames.bem(CLASSNAME$Q);
|
|
14578
14677
|
/** Internal image slide component for ImageLightbox */
|
|
14579
14678
|
const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
@@ -14641,12 +14740,12 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
14641
14740
|
// Make it accessible to keyboard nav when the zone is scrollable
|
|
14642
14741
|
,
|
|
14643
14742
|
tabIndex: isScrollable ? 0 : undefined,
|
|
14644
|
-
className: element$
|
|
14743
|
+
className: element$y('image-slide'),
|
|
14645
14744
|
children: /*#__PURE__*/jsx(Thumbnail, {
|
|
14646
14745
|
imgRef: useMergeRefs(imgRef, propImgRef),
|
|
14647
14746
|
image: image,
|
|
14648
14747
|
alt: alt,
|
|
14649
|
-
className: element$
|
|
14748
|
+
className: element$y('thumbnail'),
|
|
14650
14749
|
imgProps: {
|
|
14651
14750
|
...imgProps,
|
|
14652
14751
|
style: {
|
|
@@ -14665,7 +14764,7 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
14665
14764
|
}, isEqual);
|
|
14666
14765
|
|
|
14667
14766
|
const {
|
|
14668
|
-
element: element$
|
|
14767
|
+
element: element$x
|
|
14669
14768
|
} = classNames.bem(CLASSNAME$Q);
|
|
14670
14769
|
/** Internal image slideshow component for ImageLightbox */
|
|
14671
14770
|
const ImageSlideshow = ({
|
|
@@ -14787,12 +14886,12 @@ const ImageSlideshow = ({
|
|
|
14787
14886
|
})
|
|
14788
14887
|
}), (metadata || slideShowControls || zoomControls) && /*#__PURE__*/jsxs(FlexBox, {
|
|
14789
14888
|
ref: footerRef,
|
|
14790
|
-
className: element$
|
|
14889
|
+
className: element$x('footer'),
|
|
14791
14890
|
orientation: "vertical",
|
|
14792
14891
|
vAlign: "center",
|
|
14793
14892
|
gap: "big",
|
|
14794
14893
|
children: [metadata, /*#__PURE__*/jsxs(FlexBox, {
|
|
14795
|
-
className: element$
|
|
14894
|
+
className: element$x('footer-actions'),
|
|
14796
14895
|
orientation: "horizontal",
|
|
14797
14896
|
gap: "regular",
|
|
14798
14897
|
children: [slideShowControls, zoomControls]
|
|
@@ -15067,7 +15166,7 @@ const COMPONENT_NAME$Q = 'InlineList';
|
|
|
15067
15166
|
const CLASSNAME$P = 'lumx-inline-list';
|
|
15068
15167
|
const {
|
|
15069
15168
|
block: block$E,
|
|
15070
|
-
element: element$
|
|
15169
|
+
element: element$w
|
|
15071
15170
|
} = bem(CLASSNAME$P);
|
|
15072
15171
|
|
|
15073
15172
|
/**
|
|
@@ -15110,9 +15209,9 @@ const InlineList$1 = props => {
|
|
|
15110
15209
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
15111
15210
|
jsxs("li", {
|
|
15112
15211
|
role: "listitem",
|
|
15113
|
-
className: element$
|
|
15212
|
+
className: element$w('item'),
|
|
15114
15213
|
children: [index !== 0 && /*#__PURE__*/jsx("span", {
|
|
15115
|
-
className: element$
|
|
15214
|
+
className: element$w('item-separator'),
|
|
15116
15215
|
"aria-hidden": "true",
|
|
15117
15216
|
children: '\u00A0•\u00A0'
|
|
15118
15217
|
}), item]
|
|
@@ -15198,7 +15297,7 @@ const InputRequiredLegendClassName = 'lumx-input-required-legend';
|
|
|
15198
15297
|
const CLASSNAME$O = InputRequiredLegendClassName;
|
|
15199
15298
|
const {
|
|
15200
15299
|
block: block$D,
|
|
15201
|
-
element: element$
|
|
15300
|
+
element: element$v
|
|
15202
15301
|
} = bem(CLASSNAME$O);
|
|
15203
15302
|
|
|
15204
15303
|
/**
|
|
@@ -15227,7 +15326,7 @@ function InputRequiredLegend$1(props) {
|
|
|
15227
15326
|
[`theme-${theme}`]: Boolean(theme)
|
|
15228
15327
|
})),
|
|
15229
15328
|
children: [/*#__PURE__*/jsx("span", {
|
|
15230
|
-
className: element$
|
|
15329
|
+
className: element$v('marker'),
|
|
15231
15330
|
children: "*"
|
|
15232
15331
|
}), label]
|
|
15233
15332
|
});
|
|
@@ -15266,7 +15365,7 @@ const COMPONENT_NAME$O = 'Lightbox';
|
|
|
15266
15365
|
const CLASSNAME$N = 'lumx-lightbox';
|
|
15267
15366
|
const {
|
|
15268
15367
|
block: block$C,
|
|
15269
|
-
element: element$
|
|
15368
|
+
element: element$u
|
|
15270
15369
|
} = bem(CLASSNAME$N);
|
|
15271
15370
|
|
|
15272
15371
|
/**
|
|
@@ -15324,7 +15423,7 @@ const Lightbox$1 = props => {
|
|
|
15324
15423
|
zIndex
|
|
15325
15424
|
},
|
|
15326
15425
|
children: [closeButtonProps && /*#__PURE__*/jsx("div", {
|
|
15327
|
-
className: element$
|
|
15426
|
+
className: element$u('close'),
|
|
15328
15427
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
15329
15428
|
...closeButtonProps,
|
|
15330
15429
|
ref: closeButtonRef,
|
|
@@ -15344,7 +15443,7 @@ const Lightbox$1 = props => {
|
|
|
15344
15443
|
childrenRefs: clickAwayRefs,
|
|
15345
15444
|
children: /*#__PURE__*/jsx("div", {
|
|
15346
15445
|
ref: childrenRef,
|
|
15347
|
-
className: element$
|
|
15446
|
+
className: element$u('wrapper'),
|
|
15348
15447
|
role: "presentation",
|
|
15349
15448
|
children: children
|
|
15350
15449
|
})
|
|
@@ -15510,7 +15609,7 @@ const Link$1 = props => {
|
|
|
15510
15609
|
};
|
|
15511
15610
|
|
|
15512
15611
|
const {
|
|
15513
|
-
element: element$
|
|
15612
|
+
element: element$t
|
|
15514
15613
|
} = classNames.bem(CLASSNAME$M);
|
|
15515
15614
|
|
|
15516
15615
|
/**
|
|
@@ -15546,13 +15645,13 @@ const Link = forwardRef((props, ref) => {
|
|
|
15546
15645
|
children: wrapChildrenIconWithSpaces(/*#__PURE__*/jsxs(Fragment, {
|
|
15547
15646
|
children: [leftIcon && /*#__PURE__*/jsx(Icon, {
|
|
15548
15647
|
icon: leftIcon,
|
|
15549
|
-
className: element$
|
|
15648
|
+
className: element$t('left-icon')
|
|
15550
15649
|
}), children && /*#__PURE__*/jsx("span", {
|
|
15551
|
-
className: element$
|
|
15650
|
+
className: element$t('content'),
|
|
15552
15651
|
children: children
|
|
15553
15652
|
}), rightIcon && /*#__PURE__*/jsx(Icon, {
|
|
15554
15653
|
icon: rightIcon,
|
|
15555
|
-
className: element$
|
|
15654
|
+
className: element$t('right-icon')
|
|
15556
15655
|
})]
|
|
15557
15656
|
}))
|
|
15558
15657
|
});
|
|
@@ -15571,7 +15670,7 @@ const COMPONENT_NAME$M = 'LinkPreview';
|
|
|
15571
15670
|
const CLASSNAME$L = 'lumx-link-preview';
|
|
15572
15671
|
const {
|
|
15573
15672
|
block: block$A,
|
|
15574
|
-
element: element$
|
|
15673
|
+
element: element$s
|
|
15575
15674
|
} = bem(CLASSNAME$L);
|
|
15576
15675
|
|
|
15577
15676
|
/**
|
|
@@ -15616,9 +15715,9 @@ const LinkPreview$1 = props => {
|
|
|
15616
15715
|
[`theme-${theme}`]: Boolean(theme)
|
|
15617
15716
|
})),
|
|
15618
15717
|
children: /*#__PURE__*/jsxs("div", {
|
|
15619
|
-
className: element$
|
|
15718
|
+
className: element$s('wrapper'),
|
|
15620
15719
|
children: [thumbnailProps && /*#__PURE__*/jsx("div", {
|
|
15621
|
-
className: element$
|
|
15720
|
+
className: element$s('thumbnail'),
|
|
15622
15721
|
children: /*#__PURE__*/jsx(Thumbnail, {
|
|
15623
15722
|
...thumbnailProps,
|
|
15624
15723
|
linkAs: linkAs,
|
|
@@ -15633,9 +15732,9 @@ const LinkPreview$1 = props => {
|
|
|
15633
15732
|
fillHeight: true
|
|
15634
15733
|
})
|
|
15635
15734
|
}), /*#__PURE__*/jsxs("div", {
|
|
15636
|
-
className: element$
|
|
15735
|
+
className: element$s('container'),
|
|
15637
15736
|
children: [title && /*#__PURE__*/jsx(TitleHeading, {
|
|
15638
|
-
className: element$
|
|
15737
|
+
className: element$s('title'),
|
|
15639
15738
|
children: /*#__PURE__*/jsx(Link, {
|
|
15640
15739
|
...linkProps,
|
|
15641
15740
|
linkAs: linkAs,
|
|
@@ -15646,14 +15745,14 @@ const LinkPreview$1 = props => {
|
|
|
15646
15745
|
children: title
|
|
15647
15746
|
})
|
|
15648
15747
|
}), description && /*#__PURE__*/jsx("p", {
|
|
15649
|
-
className: element$
|
|
15748
|
+
className: element$s('description'),
|
|
15650
15749
|
children: description
|
|
15651
15750
|
}), /*#__PURE__*/jsx("div", {
|
|
15652
|
-
className: element$
|
|
15751
|
+
className: element$s('link'),
|
|
15653
15752
|
children: /*#__PURE__*/jsx(Link, {
|
|
15654
15753
|
...linkProps,
|
|
15655
15754
|
linkAs: linkAs,
|
|
15656
|
-
className: classnames(element$
|
|
15755
|
+
className: classnames(element$s('link'), linkProps?.className),
|
|
15657
15756
|
target: "_blank",
|
|
15658
15757
|
href: link,
|
|
15659
15758
|
color: theme === Theme.light ? ColorPalette.primary : ColorPalette.light,
|
|
@@ -15731,8 +15830,8 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
15731
15830
|
children
|
|
15732
15831
|
});
|
|
15733
15832
|
}), {
|
|
15734
|
-
displayName: COMPONENT_NAME$
|
|
15735
|
-
className: CLASSNAME$
|
|
15833
|
+
displayName: COMPONENT_NAME$1l,
|
|
15834
|
+
className: CLASSNAME$1i,
|
|
15736
15835
|
defaultProps: DEFAULT_PROPS$11
|
|
15737
15836
|
});
|
|
15738
15837
|
|
|
@@ -15771,8 +15870,8 @@ const _ListItem = forwardRef((props, ref) => {
|
|
|
15771
15870
|
handleClick: onItemSelected || props.onClick ? handleClick : undefined
|
|
15772
15871
|
});
|
|
15773
15872
|
});
|
|
15774
|
-
_ListItem.displayName = COMPONENT_NAME$
|
|
15775
|
-
_ListItem.className = CLASSNAME$
|
|
15873
|
+
_ListItem.displayName = COMPONENT_NAME$1m;
|
|
15874
|
+
_ListItem.className = CLASSNAME$1j;
|
|
15776
15875
|
_ListItem.defaultProps = DEFAULT_PROPS$12;
|
|
15777
15876
|
|
|
15778
15877
|
/**
|
|
@@ -16364,13 +16463,12 @@ const COMPONENT_NAME$I = 'MenuPopover';
|
|
|
16364
16463
|
const CLASSNAME$I = 'lumx-menu-popover';
|
|
16365
16464
|
const {
|
|
16366
16465
|
block: block$z,
|
|
16367
|
-
element: element$
|
|
16466
|
+
element: element$r
|
|
16368
16467
|
} = bem(CLASSNAME$I);
|
|
16369
16468
|
|
|
16370
16469
|
/** MenuPopover core template. Renders a `Popover` with menu-friendly defaults. */
|
|
16371
16470
|
const MenuPopover$1 = (props, {
|
|
16372
|
-
Popover
|
|
16373
|
-
FlexBox
|
|
16471
|
+
Popover
|
|
16374
16472
|
}) => {
|
|
16375
16473
|
const {
|
|
16376
16474
|
children,
|
|
@@ -16396,10 +16494,9 @@ const MenuPopover$1 = (props, {
|
|
|
16396
16494
|
closeMode: "hide",
|
|
16397
16495
|
fitToAnchorWidth: fitToAnchorWidth,
|
|
16398
16496
|
className: block$z([className]),
|
|
16399
|
-
children:
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
children: children
|
|
16497
|
+
children: ScrollBox({
|
|
16498
|
+
className: element$r('scroll'),
|
|
16499
|
+
children
|
|
16403
16500
|
})
|
|
16404
16501
|
});
|
|
16405
16502
|
};
|
|
@@ -16430,8 +16527,7 @@ const MenuPopover = props => {
|
|
|
16430
16527
|
anchorRef,
|
|
16431
16528
|
handleClose: () => setIsOpen(false)
|
|
16432
16529
|
}, {
|
|
16433
|
-
Popover
|
|
16434
|
-
FlexBox
|
|
16530
|
+
Popover
|
|
16435
16531
|
});
|
|
16436
16532
|
};
|
|
16437
16533
|
MenuPopover.displayName = COMPONENT_NAME$I;
|
|
@@ -16561,7 +16657,7 @@ const COMPONENT_NAME$G = 'MenuItem';
|
|
|
16561
16657
|
const CLASSNAME$G = 'lumx-menu-item';
|
|
16562
16658
|
const {
|
|
16563
16659
|
block: block$y,
|
|
16564
|
-
element: element$
|
|
16660
|
+
element: element$q
|
|
16565
16661
|
} = bem(CLASSNAME$G);
|
|
16566
16662
|
|
|
16567
16663
|
/** MenuItem core template. Renders a `ListItem` with a `ListItemAction`. */
|
|
@@ -16583,7 +16679,7 @@ const MenuItem$1 = props => {
|
|
|
16583
16679
|
type: 'button',
|
|
16584
16680
|
...actionProps,
|
|
16585
16681
|
ref: actionRef,
|
|
16586
|
-
className: element$
|
|
16682
|
+
className: element$q('action'),
|
|
16587
16683
|
handleClick,
|
|
16588
16684
|
'data-menu-item': '',
|
|
16589
16685
|
'aria-disabled': isDisabled ? 'true' : undefined,
|
|
@@ -16687,7 +16783,7 @@ const COMPONENT_NAME$F = 'Message';
|
|
|
16687
16783
|
const CLASSNAME$F = 'lumx-message';
|
|
16688
16784
|
const {
|
|
16689
16785
|
block: block$x,
|
|
16690
|
-
element: element$
|
|
16786
|
+
element: element$p
|
|
16691
16787
|
} = bem(CLASSNAME$F);
|
|
16692
16788
|
|
|
16693
16789
|
/**
|
|
@@ -16746,15 +16842,15 @@ const Message$1 = props => {
|
|
|
16746
16842
|
'has-background': hasBackground
|
|
16747
16843
|
})),
|
|
16748
16844
|
children: [(customIcon || icon) && Icon$1({
|
|
16749
|
-
className: element$
|
|
16845
|
+
className: element$p('icon'),
|
|
16750
16846
|
icon: customIcon || icon,
|
|
16751
16847
|
size: Size.xs,
|
|
16752
16848
|
color
|
|
16753
16849
|
}), /*#__PURE__*/jsx("div", {
|
|
16754
|
-
className: element$
|
|
16850
|
+
className: element$p('text'),
|
|
16755
16851
|
children: children
|
|
16756
16852
|
}), isCloseButtonDisplayed && IconButton$1({
|
|
16757
|
-
className: element$
|
|
16853
|
+
className: element$p('close-button'),
|
|
16758
16854
|
icon: mdiClose,
|
|
16759
16855
|
handleClick: onClick,
|
|
16760
16856
|
label: closeButtonLabel,
|
|
@@ -16792,7 +16888,7 @@ const COMPONENT_NAME$E = 'Mosaic';
|
|
|
16792
16888
|
const CLASSNAME$E = 'lumx-mosaic';
|
|
16793
16889
|
const {
|
|
16794
16890
|
block: block$w,
|
|
16795
|
-
element: element$
|
|
16891
|
+
element: element$o
|
|
16796
16892
|
} = bem(CLASSNAME$E);
|
|
16797
16893
|
|
|
16798
16894
|
/**
|
|
@@ -16835,7 +16931,7 @@ const Mosaic$1 = props => {
|
|
|
16835
16931
|
'has-4-thumbnails': thumbnails?.length >= 4
|
|
16836
16932
|
})),
|
|
16837
16933
|
children: /*#__PURE__*/jsx("div", {
|
|
16838
|
-
className: element$
|
|
16934
|
+
className: element$o('wrapper'),
|
|
16839
16935
|
children: take(thumbnails, 4).map((thumbnail, index) => {
|
|
16840
16936
|
const {
|
|
16841
16937
|
image,
|
|
@@ -16844,7 +16940,7 @@ const Mosaic$1 = props => {
|
|
|
16844
16940
|
...thumbnailProps
|
|
16845
16941
|
} = thumbnail;
|
|
16846
16942
|
return /*#__PURE__*/jsxs("div", {
|
|
16847
|
-
className: element$
|
|
16943
|
+
className: element$o('thumbnail'),
|
|
16848
16944
|
children: [/*#__PURE__*/jsx(Thumbnail, {
|
|
16849
16945
|
...thumbnailProps,
|
|
16850
16946
|
align: align || Alignment.left,
|
|
@@ -16854,7 +16950,7 @@ const Mosaic$1 = props => {
|
|
|
16854
16950
|
fillHeight: true,
|
|
16855
16951
|
onClick: onImageClick()?.(index, onClick) || onClick
|
|
16856
16952
|
}), thumbnails.length > 4 && index === 3 && /*#__PURE__*/jsx("div", {
|
|
16857
|
-
className: element$
|
|
16953
|
+
className: element$o('overlay'),
|
|
16858
16954
|
children: /*#__PURE__*/jsxs("span", {
|
|
16859
16955
|
children: ["+", thumbnails.length - 4]
|
|
16860
16956
|
})
|
|
@@ -17012,7 +17108,7 @@ NavigationSection.className = CLASSNAME$D;
|
|
|
17012
17108
|
|
|
17013
17109
|
const {
|
|
17014
17110
|
block: block$v,
|
|
17015
|
-
element: element$
|
|
17111
|
+
element: element$n
|
|
17016
17112
|
} = classNames.bem(ITEM_CLASSNAME);
|
|
17017
17113
|
|
|
17018
17114
|
/**
|
|
@@ -17044,7 +17140,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
17044
17140
|
placement: Placement.TOP,
|
|
17045
17141
|
children: RawClickable({
|
|
17046
17142
|
as: Element,
|
|
17047
|
-
className: element$
|
|
17143
|
+
className: element$n('link', {
|
|
17048
17144
|
'is-selected': isCurrentPage
|
|
17049
17145
|
}),
|
|
17050
17146
|
ref,
|
|
@@ -17054,14 +17150,14 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
17054
17150
|
handleKeyPress: onKeyPress,
|
|
17055
17151
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
17056
17152
|
children: [icon ? /*#__PURE__*/jsx(Icon, {
|
|
17057
|
-
className: element$
|
|
17153
|
+
className: element$n('icon'),
|
|
17058
17154
|
icon: icon,
|
|
17059
17155
|
size: Size$1.xs,
|
|
17060
17156
|
theme: theme
|
|
17061
17157
|
}) : null, /*#__PURE__*/jsx(Text, {
|
|
17062
17158
|
as: "span",
|
|
17063
17159
|
truncate: true,
|
|
17064
|
-
className: element$
|
|
17160
|
+
className: element$n('label'),
|
|
17065
17161
|
ref: labelRef,
|
|
17066
17162
|
children: label
|
|
17067
17163
|
})]
|
|
@@ -17085,7 +17181,7 @@ const COMPONENT_NAME$C = 'Navigation';
|
|
|
17085
17181
|
const CLASSNAME$C = 'lumx-navigation';
|
|
17086
17182
|
const {
|
|
17087
17183
|
block: block$u,
|
|
17088
|
-
element: element$
|
|
17184
|
+
element: element$m
|
|
17089
17185
|
} = classNames.bem(CLASSNAME$C);
|
|
17090
17186
|
|
|
17091
17187
|
/**
|
|
@@ -17117,7 +17213,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
17117
17213
|
orientation
|
|
17118
17214
|
},
|
|
17119
17215
|
children: /*#__PURE__*/jsx("ul", {
|
|
17120
|
-
className: element$
|
|
17216
|
+
className: element$m('list'),
|
|
17121
17217
|
children: children
|
|
17122
17218
|
})
|
|
17123
17219
|
})
|
|
@@ -17165,7 +17261,7 @@ const COMPONENT_NAME$B = 'Notification';
|
|
|
17165
17261
|
const CLASSNAME$B = 'lumx-notification';
|
|
17166
17262
|
const {
|
|
17167
17263
|
block: block$t,
|
|
17168
|
-
element: element$
|
|
17264
|
+
element: element$l
|
|
17169
17265
|
} = classNames.bem(CLASSNAME$B);
|
|
17170
17266
|
|
|
17171
17267
|
/**
|
|
@@ -17237,16 +17333,16 @@ const Notification = forwardRef((props, ref) => {
|
|
|
17237
17333
|
zIndex
|
|
17238
17334
|
},
|
|
17239
17335
|
children: [/*#__PURE__*/jsx("div", {
|
|
17240
|
-
className: element$
|
|
17336
|
+
className: element$l('icon'),
|
|
17241
17337
|
children: /*#__PURE__*/jsx(Icon, {
|
|
17242
17338
|
icon: icon,
|
|
17243
17339
|
size: Size$1.s
|
|
17244
17340
|
})
|
|
17245
17341
|
}), /*#__PURE__*/jsx("div", {
|
|
17246
|
-
className: element$
|
|
17342
|
+
className: element$l('content'),
|
|
17247
17343
|
children: content
|
|
17248
17344
|
}), hasAction && /*#__PURE__*/jsx("div", {
|
|
17249
|
-
className: element$
|
|
17345
|
+
className: element$l('action'),
|
|
17250
17346
|
children: /*#__PURE__*/jsx(Button, {
|
|
17251
17347
|
emphasis: Emphasis$1.medium,
|
|
17252
17348
|
theme: theme,
|
|
@@ -17354,7 +17450,7 @@ const COMPONENT_NAME$z = 'PostBlock';
|
|
|
17354
17450
|
const CLASSNAME$z = 'lumx-post-block';
|
|
17355
17451
|
const {
|
|
17356
17452
|
block: block$s,
|
|
17357
|
-
element: element$
|
|
17453
|
+
element: element$k
|
|
17358
17454
|
} = classNames.bem(CLASSNAME$z);
|
|
17359
17455
|
|
|
17360
17456
|
/**
|
|
@@ -17396,44 +17492,44 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
17396
17492
|
})),
|
|
17397
17493
|
...forwardedProps,
|
|
17398
17494
|
children: [thumbnailProps && /*#__PURE__*/jsx("div", {
|
|
17399
|
-
className: element$
|
|
17495
|
+
className: element$k('thumbnail'),
|
|
17400
17496
|
children: /*#__PURE__*/jsx(Thumbnail, {
|
|
17401
17497
|
...thumbnailProps,
|
|
17402
17498
|
theme: theme,
|
|
17403
17499
|
variant: ThumbnailVariant.rounded
|
|
17404
17500
|
})
|
|
17405
17501
|
}), /*#__PURE__*/jsxs("div", {
|
|
17406
|
-
className: element$
|
|
17502
|
+
className: element$k('wrapper'),
|
|
17407
17503
|
children: [author && /*#__PURE__*/jsx("div", {
|
|
17408
|
-
className: element$
|
|
17504
|
+
className: element$k('author'),
|
|
17409
17505
|
children: author
|
|
17410
17506
|
}), title && /*#__PURE__*/jsx("button", {
|
|
17411
17507
|
type: "button",
|
|
17412
|
-
className: element$
|
|
17508
|
+
className: element$k('title'),
|
|
17413
17509
|
onClick: onClick,
|
|
17414
17510
|
children: title
|
|
17415
17511
|
}), meta && /*#__PURE__*/jsx("span", {
|
|
17416
|
-
className: element$
|
|
17512
|
+
className: element$k('meta'),
|
|
17417
17513
|
children: meta
|
|
17418
17514
|
}), typeof text === 'string' ? /*#__PURE__*/jsx("p", {
|
|
17419
|
-
className: element$
|
|
17515
|
+
className: element$k('text'),
|
|
17420
17516
|
children: text
|
|
17421
17517
|
}) :
|
|
17422
17518
|
/*#__PURE__*/
|
|
17423
17519
|
// eslint-disable-next-line react/no-danger
|
|
17424
17520
|
jsx("p", {
|
|
17425
17521
|
dangerouslySetInnerHTML: text,
|
|
17426
|
-
className: element$
|
|
17522
|
+
className: element$k('text')
|
|
17427
17523
|
}), attachments && /*#__PURE__*/jsx("div", {
|
|
17428
|
-
className: element$
|
|
17524
|
+
className: element$k('attachments'),
|
|
17429
17525
|
children: attachments
|
|
17430
17526
|
}), (tags || actions) && /*#__PURE__*/jsxs("div", {
|
|
17431
|
-
className: element$
|
|
17527
|
+
className: element$k('toolbar'),
|
|
17432
17528
|
children: [tags && /*#__PURE__*/jsx("div", {
|
|
17433
|
-
className: element$
|
|
17529
|
+
className: element$k('tags'),
|
|
17434
17530
|
children: tags
|
|
17435
17531
|
}), actions && /*#__PURE__*/jsx("div", {
|
|
17436
|
-
className: element$
|
|
17532
|
+
className: element$k('actions'),
|
|
17437
17533
|
children: actions
|
|
17438
17534
|
})]
|
|
17439
17535
|
})]
|
|
@@ -17455,7 +17551,7 @@ const COMPONENT_NAME$y = 'ProgressLinear';
|
|
|
17455
17551
|
const CLASSNAME$y = 'lumx-progress-linear';
|
|
17456
17552
|
const {
|
|
17457
17553
|
block: block$r,
|
|
17458
|
-
element: element$
|
|
17554
|
+
element: element$j
|
|
17459
17555
|
} = bem(CLASSNAME$y);
|
|
17460
17556
|
|
|
17461
17557
|
/**
|
|
@@ -17483,9 +17579,9 @@ const ProgressLinear$1 = props => {
|
|
|
17483
17579
|
[`theme-${theme}`]: Boolean(theme)
|
|
17484
17580
|
})),
|
|
17485
17581
|
children: [/*#__PURE__*/jsx("div", {
|
|
17486
|
-
className: element$
|
|
17582
|
+
className: element$j('line1')
|
|
17487
17583
|
}), /*#__PURE__*/jsx("div", {
|
|
17488
|
-
className: element$
|
|
17584
|
+
className: element$j('line2')
|
|
17489
17585
|
})]
|
|
17490
17586
|
});
|
|
17491
17587
|
};
|
|
@@ -17530,7 +17626,7 @@ const COMPONENT_NAME$x = 'ProgressCircular';
|
|
|
17530
17626
|
const CLASSNAME$x = 'lumx-progress-circular';
|
|
17531
17627
|
const {
|
|
17532
17628
|
block: block$q,
|
|
17533
|
-
element: element$
|
|
17629
|
+
element: element$i
|
|
17534
17630
|
} = bem(CLASSNAME$x);
|
|
17535
17631
|
|
|
17536
17632
|
/**
|
|
@@ -17568,9 +17664,9 @@ const ProgressCircular$1 = props => {
|
|
|
17568
17664
|
[`display-${display}`]: Boolean(display)
|
|
17569
17665
|
})),
|
|
17570
17666
|
children: [/*#__PURE__*/jsx(Element, {
|
|
17571
|
-
className: element$
|
|
17667
|
+
className: element$i('double-bounce1')
|
|
17572
17668
|
}), /*#__PURE__*/jsx(Element, {
|
|
17573
|
-
className: element$
|
|
17669
|
+
className: element$i('double-bounce2')
|
|
17574
17670
|
}), /*#__PURE__*/jsx("svg", {
|
|
17575
17671
|
...svgProps,
|
|
17576
17672
|
viewBox: "25 25 50 50",
|
|
@@ -17607,11 +17703,11 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
17607
17703
|
theme,
|
|
17608
17704
|
...otherProps,
|
|
17609
17705
|
circleProps: {
|
|
17610
|
-
className: element$
|
|
17706
|
+
className: element$i('path'),
|
|
17611
17707
|
strokeWidth: '5'
|
|
17612
17708
|
},
|
|
17613
17709
|
svgProps: {
|
|
17614
|
-
className: element$
|
|
17710
|
+
className: element$i('svg')
|
|
17615
17711
|
}
|
|
17616
17712
|
});
|
|
17617
17713
|
});
|
|
@@ -17871,7 +17967,7 @@ const COMPONENT_NAME$v = 'ProgressTracker';
|
|
|
17871
17967
|
const CLASSNAME$v = 'lumx-progress-tracker';
|
|
17872
17968
|
const {
|
|
17873
17969
|
block: block$o,
|
|
17874
|
-
element: element$
|
|
17970
|
+
element: element$h
|
|
17875
17971
|
} = classNames.bem(CLASSNAME$v);
|
|
17876
17972
|
|
|
17877
17973
|
/**
|
|
@@ -17909,18 +18005,18 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
17909
18005
|
...forwardedProps,
|
|
17910
18006
|
className: classNames.join(className, block$o()),
|
|
17911
18007
|
children: [/*#__PURE__*/jsx("div", {
|
|
17912
|
-
className: element$
|
|
18008
|
+
className: element$h('steps'),
|
|
17913
18009
|
role: "tablist",
|
|
17914
18010
|
"aria-label": ariaLabel,
|
|
17915
18011
|
children: children
|
|
17916
18012
|
}), /*#__PURE__*/jsx("div", {
|
|
17917
|
-
className: element$
|
|
18013
|
+
className: element$h('background-bar'),
|
|
17918
18014
|
style: {
|
|
17919
18015
|
left: `${backgroundPosition}%`,
|
|
17920
18016
|
right: `${backgroundPosition}%`
|
|
17921
18017
|
}
|
|
17922
18018
|
}), /*#__PURE__*/jsx("div", {
|
|
17923
|
-
className: element$
|
|
18019
|
+
className: element$h('foreground-bar'),
|
|
17924
18020
|
style: {
|
|
17925
18021
|
left: `${backgroundPosition}%`,
|
|
17926
18022
|
right: `${backgroundPosition}%`,
|
|
@@ -17944,7 +18040,7 @@ const COMPONENT_NAME$u = 'ProgressTrackerStep';
|
|
|
17944
18040
|
const CLASSNAME$u = 'lumx-progress-tracker-step';
|
|
17945
18041
|
const {
|
|
17946
18042
|
block: block$n,
|
|
17947
|
-
element: element$
|
|
18043
|
+
element: element$g
|
|
17948
18044
|
} = classNames.bem(CLASSNAME$u);
|
|
17949
18045
|
|
|
17950
18046
|
/**
|
|
@@ -18029,16 +18125,16 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
18029
18125
|
"aria-selected": isActive,
|
|
18030
18126
|
"aria-controls": state?.tabPanelId,
|
|
18031
18127
|
children: [/*#__PURE__*/jsx(Icon, {
|
|
18032
|
-
className: element$
|
|
18128
|
+
className: element$g('state'),
|
|
18033
18129
|
icon: getIcon(),
|
|
18034
18130
|
size: Size$1.s
|
|
18035
18131
|
}), /*#__PURE__*/jsx(InputLabel, {
|
|
18036
18132
|
htmlFor: state?.tabId || '',
|
|
18037
|
-
className: element$
|
|
18133
|
+
className: element$g('label'),
|
|
18038
18134
|
children: label
|
|
18039
18135
|
}), helper && /*#__PURE__*/jsx(InputHelper, {
|
|
18040
18136
|
kind: hasError ? Kind$1.error : Kind$1.info,
|
|
18041
|
-
className: element$
|
|
18137
|
+
className: element$g('helper'),
|
|
18042
18138
|
children: helper
|
|
18043
18139
|
})]
|
|
18044
18140
|
});
|
|
@@ -18112,7 +18208,7 @@ const COMPONENT_NAME$s = 'RadioButton';
|
|
|
18112
18208
|
const CLASSNAME$s = 'lumx-radio-button';
|
|
18113
18209
|
const {
|
|
18114
18210
|
block: block$l,
|
|
18115
|
-
element: element$
|
|
18211
|
+
element: element$f
|
|
18116
18212
|
} = bem(CLASSNAME$s);
|
|
18117
18213
|
|
|
18118
18214
|
/**
|
|
@@ -18155,10 +18251,10 @@ const RadioButton$1 = props => {
|
|
|
18155
18251
|
[`theme-${theme}`]: Boolean(theme)
|
|
18156
18252
|
})),
|
|
18157
18253
|
children: [/*#__PURE__*/jsxs("div", {
|
|
18158
|
-
className: element$
|
|
18254
|
+
className: element$f('input-wrapper'),
|
|
18159
18255
|
children: [/*#__PURE__*/jsx("input", {
|
|
18160
18256
|
ref: inputRef,
|
|
18161
|
-
className: element$
|
|
18257
|
+
className: element$f('input-native'),
|
|
18162
18258
|
id: inputId,
|
|
18163
18259
|
type: "radio",
|
|
18164
18260
|
name: name,
|
|
@@ -18171,23 +18267,23 @@ const RadioButton$1 = props => {
|
|
|
18171
18267
|
} : {}),
|
|
18172
18268
|
...inputProps
|
|
18173
18269
|
}), /*#__PURE__*/jsxs("div", {
|
|
18174
|
-
className: element$
|
|
18270
|
+
className: element$f('input-placeholder'),
|
|
18175
18271
|
children: [/*#__PURE__*/jsx("div", {
|
|
18176
|
-
className: element$
|
|
18272
|
+
className: element$f('input-background')
|
|
18177
18273
|
}), /*#__PURE__*/jsx("div", {
|
|
18178
|
-
className: element$
|
|
18274
|
+
className: element$f('input-indicator')
|
|
18179
18275
|
})]
|
|
18180
18276
|
})]
|
|
18181
18277
|
}), /*#__PURE__*/jsxs("div", {
|
|
18182
|
-
className: element$
|
|
18278
|
+
className: element$f('content'),
|
|
18183
18279
|
children: [label && InputLabel$1({
|
|
18184
18280
|
htmlFor: inputId,
|
|
18185
|
-
className: element$
|
|
18281
|
+
className: element$f('label'),
|
|
18186
18282
|
theme,
|
|
18187
18283
|
children: label
|
|
18188
18284
|
}), helper && InputHelper$1({
|
|
18189
18285
|
id: `${inputId}-helper`,
|
|
18190
|
-
className: element$
|
|
18286
|
+
className: element$f('helper'),
|
|
18191
18287
|
theme,
|
|
18192
18288
|
children: helper
|
|
18193
18289
|
})]
|
|
@@ -18354,7 +18450,7 @@ function useListenFocus(ref) {
|
|
|
18354
18450
|
const CLASSNAME$q = 'lumx-select';
|
|
18355
18451
|
const {
|
|
18356
18452
|
block: block$k,
|
|
18357
|
-
element: element$
|
|
18453
|
+
element: element$e
|
|
18358
18454
|
} = classNames.bem(CLASSNAME$q);
|
|
18359
18455
|
const WithSelectContext = (SelectElement, props, ref) => {
|
|
18360
18456
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
@@ -18450,12 +18546,12 @@ const WithSelectContext = (SelectElement, props, ref) => {
|
|
|
18450
18546
|
ref: dropdownRef,
|
|
18451
18547
|
children: children
|
|
18452
18548
|
}), hasError && error && /*#__PURE__*/jsx(InputHelper, {
|
|
18453
|
-
className: element$
|
|
18549
|
+
className: element$e('helper'),
|
|
18454
18550
|
kind: Kind$1.error,
|
|
18455
18551
|
theme: theme,
|
|
18456
18552
|
children: error
|
|
18457
18553
|
}), helper && /*#__PURE__*/jsx(InputHelper, {
|
|
18458
|
-
className: element$
|
|
18554
|
+
className: element$e('helper'),
|
|
18459
18555
|
theme: theme,
|
|
18460
18556
|
children: helper
|
|
18461
18557
|
})]
|
|
@@ -18477,7 +18573,7 @@ const COMPONENT_NAME$q = 'Select';
|
|
|
18477
18573
|
const CLASSNAME$p = 'lumx-select';
|
|
18478
18574
|
const {
|
|
18479
18575
|
block: block$j,
|
|
18480
|
-
element: element$
|
|
18576
|
+
element: element$d
|
|
18481
18577
|
} = classNames.bem(CLASSNAME$p);
|
|
18482
18578
|
|
|
18483
18579
|
/** The default value of props. */
|
|
@@ -18518,10 +18614,10 @@ const SelectField = props => {
|
|
|
18518
18614
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
18519
18615
|
children: [variant === SelectVariant.input && /*#__PURE__*/jsxs(Fragment, {
|
|
18520
18616
|
children: [label && /*#__PURE__*/jsx("div", {
|
|
18521
|
-
className: element$
|
|
18617
|
+
className: element$d('header'),
|
|
18522
18618
|
children: /*#__PURE__*/jsx(InputLabel, {
|
|
18523
18619
|
htmlFor: id,
|
|
18524
|
-
className: element$
|
|
18620
|
+
className: element$d('label'),
|
|
18525
18621
|
isRequired: isRequired,
|
|
18526
18622
|
theme: theme,
|
|
18527
18623
|
children: label
|
|
@@ -18529,19 +18625,19 @@ const SelectField = props => {
|
|
|
18529
18625
|
}), /*#__PURE__*/jsxs("div", {
|
|
18530
18626
|
ref: mergeRefs(anchorRef, selectElementRef),
|
|
18531
18627
|
id: id,
|
|
18532
|
-
className: element$
|
|
18628
|
+
className: element$d('wrapper'),
|
|
18533
18629
|
onClick: onInputClick,
|
|
18534
18630
|
onKeyDown: handleKeyboardNav,
|
|
18535
18631
|
tabIndex: isDisabled ? undefined : 0,
|
|
18536
18632
|
"aria-disabled": isDisabled || undefined,
|
|
18537
18633
|
...forwardedProps,
|
|
18538
18634
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
18539
|
-
className: element$
|
|
18635
|
+
className: element$d('input-icon'),
|
|
18540
18636
|
color: theme === Theme$1.dark ? 'light' : undefined,
|
|
18541
18637
|
icon: icon,
|
|
18542
18638
|
size: Size$1.xs
|
|
18543
18639
|
}), /*#__PURE__*/jsxs("div", {
|
|
18544
|
-
className: element$
|
|
18640
|
+
className: element$d('input-native', {
|
|
18545
18641
|
placeholder: isEmpty && placeholder
|
|
18546
18642
|
}),
|
|
18547
18643
|
children: [!isEmpty && /*#__PURE__*/jsx("span", {
|
|
@@ -18550,14 +18646,14 @@ const SelectField = props => {
|
|
|
18550
18646
|
children: placeholder
|
|
18551
18647
|
})]
|
|
18552
18648
|
}), (isValid || hasError) && /*#__PURE__*/jsx("div", {
|
|
18553
|
-
className: element$
|
|
18649
|
+
className: element$d('input-validity'),
|
|
18554
18650
|
children: /*#__PURE__*/jsx(Icon, {
|
|
18555
18651
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
18556
18652
|
size: Size$1.xxs
|
|
18557
18653
|
})
|
|
18558
18654
|
}), hasInputClear && clearButtonProps && /*#__PURE__*/jsx(IconButton, {
|
|
18559
18655
|
...clearButtonProps,
|
|
18560
|
-
className: element$
|
|
18656
|
+
className: element$d('input-clear'),
|
|
18561
18657
|
icon: mdiCloseCircle,
|
|
18562
18658
|
emphasis: Emphasis$1.low,
|
|
18563
18659
|
size: Size$1.s,
|
|
@@ -18565,7 +18661,7 @@ const SelectField = props => {
|
|
|
18565
18661
|
onClick: onClear,
|
|
18566
18662
|
onKeyDown: stopPropagation
|
|
18567
18663
|
}), /*#__PURE__*/jsx("div", {
|
|
18568
|
-
className: element$
|
|
18664
|
+
className: element$d('input-indicator'),
|
|
18569
18665
|
children: /*#__PURE__*/jsx(Icon, {
|
|
18570
18666
|
icon: mdiMenuDown,
|
|
18571
18667
|
size: Size$1.s
|
|
@@ -18627,7 +18723,7 @@ const COMPONENT_NAME$p = 'Select';
|
|
|
18627
18723
|
const CLASSNAME$o = 'lumx-select';
|
|
18628
18724
|
const {
|
|
18629
18725
|
block: block$i,
|
|
18630
|
-
element: element$
|
|
18726
|
+
element: element$c
|
|
18631
18727
|
} = classNames.bem(CLASSNAME$o);
|
|
18632
18728
|
|
|
18633
18729
|
/** The default value of props. */
|
|
@@ -18679,10 +18775,10 @@ const SelectMultipleField = props => {
|
|
|
18679
18775
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
18680
18776
|
children: [variant === SelectVariant.input && /*#__PURE__*/jsxs(Fragment, {
|
|
18681
18777
|
children: [label && /*#__PURE__*/jsx("div", {
|
|
18682
|
-
className: element$
|
|
18778
|
+
className: element$c('header'),
|
|
18683
18779
|
children: /*#__PURE__*/jsx(InputLabel, {
|
|
18684
18780
|
htmlFor: id,
|
|
18685
|
-
className: element$
|
|
18781
|
+
className: element$c('label'),
|
|
18686
18782
|
isRequired: isRequired,
|
|
18687
18783
|
theme: theme,
|
|
18688
18784
|
children: label
|
|
@@ -18690,22 +18786,22 @@ const SelectMultipleField = props => {
|
|
|
18690
18786
|
}), /*#__PURE__*/jsxs("div", {
|
|
18691
18787
|
ref: mergeRefs(anchorRef, selectElementRef),
|
|
18692
18788
|
id: id,
|
|
18693
|
-
className: element$
|
|
18789
|
+
className: element$c('wrapper'),
|
|
18694
18790
|
onClick: onInputClick,
|
|
18695
18791
|
onKeyDown: handleKeyboardNav,
|
|
18696
18792
|
tabIndex: isDisabled ? undefined : 0,
|
|
18697
18793
|
"aria-disabled": isDisabled || undefined,
|
|
18698
18794
|
...forwardedProps,
|
|
18699
18795
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
18700
|
-
className: element$
|
|
18796
|
+
className: element$c('input-icon'),
|
|
18701
18797
|
color: theme === Theme$1.dark ? 'light' : undefined,
|
|
18702
18798
|
icon: icon,
|
|
18703
18799
|
size: Size$1.xs
|
|
18704
18800
|
}), /*#__PURE__*/jsx("div", {
|
|
18705
|
-
className: element$
|
|
18801
|
+
className: element$c('chips'),
|
|
18706
18802
|
children: !isEmpty && value.map((val, index) => selectedChipRender?.(val, index, onClear, isDisabled, theme))
|
|
18707
18803
|
}), isEmpty && placeholder && /*#__PURE__*/jsx("div", {
|
|
18708
|
-
className: element$
|
|
18804
|
+
className: element$c('input-native', {
|
|
18709
18805
|
placeholder: true
|
|
18710
18806
|
}),
|
|
18711
18807
|
children: /*#__PURE__*/jsx("span", {
|
|
@@ -18897,7 +18993,6 @@ function renderSelectOptions(props, components) {
|
|
|
18897
18993
|
const name = getWithSelector(getOptionName || getOptionId, item) || id;
|
|
18898
18994
|
const description = getOptionDescription && getWithSelector(getOptionDescription, item);
|
|
18899
18995
|
const isSelected = selectedIds?.has(id) ?? false;
|
|
18900
|
-
const after = /*#__PURE__*/jsx(Combobox.SelectionIcon, {});
|
|
18901
18996
|
|
|
18902
18997
|
// Delegate to the consumer's render function when provided.
|
|
18903
18998
|
// The consumer receives core-computed context and is responsible for rendering
|
|
@@ -18908,15 +19003,13 @@ function renderSelectOptions(props, components) {
|
|
|
18908
19003
|
value: id,
|
|
18909
19004
|
name,
|
|
18910
19005
|
isSelected,
|
|
18911
|
-
description
|
|
18912
|
-
after
|
|
19006
|
+
description
|
|
18913
19007
|
});
|
|
18914
19008
|
}
|
|
18915
19009
|
return /*#__PURE__*/jsx(Combobox.Option, {
|
|
18916
19010
|
value: id,
|
|
18917
19011
|
description: description,
|
|
18918
19012
|
isSelected: isSelected,
|
|
18919
|
-
after: after,
|
|
18920
19013
|
children: name
|
|
18921
19014
|
}, id);
|
|
18922
19015
|
});
|
|
@@ -19048,7 +19141,6 @@ SelectButton$2.className = CLASSNAME$n;
|
|
|
19048
19141
|
* - If the consumer returns a `<Combobox.Option>`, its props/children are merged with the
|
|
19049
19142
|
* core-computed `value` / `isSelected` / `description` / `key`.
|
|
19050
19143
|
* When the consumer's `<Combobox.Option>` has no children, falls back to the option `name`.
|
|
19051
|
-
* The core-computed selection icons are kept: `after` is appended to the custom `after`.
|
|
19052
19144
|
* - If the consumer returns anything else, returns `null` (skips the option).
|
|
19053
19145
|
*
|
|
19054
19146
|
* @param renderOption Consumer-provided render function.
|
|
@@ -19061,8 +19153,7 @@ function wrapRenderOption(renderOption) {
|
|
|
19061
19153
|
value: optionValue,
|
|
19062
19154
|
isSelected,
|
|
19063
19155
|
description,
|
|
19064
|
-
name
|
|
19065
|
-
after
|
|
19156
|
+
name
|
|
19066
19157
|
}) => {
|
|
19067
19158
|
const node = renderOption(option, index);
|
|
19068
19159
|
if (!isComponentType(ListboxOption)(node)) {
|
|
@@ -19070,7 +19161,6 @@ function wrapRenderOption(renderOption) {
|
|
|
19070
19161
|
}
|
|
19071
19162
|
const {
|
|
19072
19163
|
children = name,
|
|
19073
|
-
after: customAfter,
|
|
19074
19164
|
...customProps
|
|
19075
19165
|
} = node.props;
|
|
19076
19166
|
return /*#__PURE__*/jsx(ListboxOption, {
|
|
@@ -19078,9 +19168,6 @@ function wrapRenderOption(renderOption) {
|
|
|
19078
19168
|
value: optionValue,
|
|
19079
19169
|
isSelected: isSelected,
|
|
19080
19170
|
description: description,
|
|
19081
|
-
after: /*#__PURE__*/jsxs(Fragment, {
|
|
19082
|
-
children: [customAfter, after]
|
|
19083
|
-
}),
|
|
19084
19171
|
children: children
|
|
19085
19172
|
}, optionValue);
|
|
19086
19173
|
};
|
|
@@ -19169,12 +19256,12 @@ const SelectButton$1 = React__default.forwardRef((props, ref) => {
|
|
|
19169
19256
|
as,
|
|
19170
19257
|
...buttonProps
|
|
19171
19258
|
} = props;
|
|
19172
|
-
// The list itself doesn't scroll — its ancestor `
|
|
19259
|
+
// The list itself doesn't scroll — its ancestor `ScrollBox` does. The
|
|
19173
19260
|
// IntersectionObserver root must be the actual scrolling/clipping element, or the
|
|
19174
19261
|
// sentinel is trivially always "intersecting" its non-clipping `<ul>` parent.
|
|
19175
19262
|
const [scrollContainer, setScrollContainer] = useState(null);
|
|
19176
19263
|
const setListElement = useCallback(listElement => {
|
|
19177
|
-
setScrollContainer(listElement?.closest(`.${CLASSNAME$13}
|
|
19264
|
+
setScrollContainer(listElement?.closest(`.${CLASSNAME$13}`) ?? null);
|
|
19178
19265
|
}, []);
|
|
19179
19266
|
const isMultiple = selectionType === 'multiple';
|
|
19180
19267
|
|
|
@@ -19243,6 +19330,9 @@ const COMPONENT_NAME$n = 'SelectTextField';
|
|
|
19243
19330
|
* Component default class name.
|
|
19244
19331
|
*/
|
|
19245
19332
|
const CLASSNAME$m = 'lumx-select-text-field';
|
|
19333
|
+
const {
|
|
19334
|
+
element: element$b
|
|
19335
|
+
} = bem(CLASSNAME$m);
|
|
19246
19336
|
|
|
19247
19337
|
/**
|
|
19248
19338
|
* SelectTextField core template.
|
|
@@ -19271,6 +19361,8 @@ const SelectTextField$2 = (props, {
|
|
|
19271
19361
|
label,
|
|
19272
19362
|
isMultiselectable,
|
|
19273
19363
|
inputProps,
|
|
19364
|
+
'aria-label': ariaLabel = inputProps?.['aria-label'],
|
|
19365
|
+
'aria-labelledby': ariaLabelledBy = inputProps?.['aria-labelledby'],
|
|
19274
19366
|
popoverProps,
|
|
19275
19367
|
listProps,
|
|
19276
19368
|
listStatus = 'idle',
|
|
@@ -19291,48 +19383,70 @@ const SelectTextField$2 = (props, {
|
|
|
19291
19383
|
const isError = listStatus === 'error';
|
|
19292
19384
|
// Prevent firing during loading or error states to avoid duplicate fetches.
|
|
19293
19385
|
const isInfiniteScrollEnabled = !listStatus || listStatus === 'idle';
|
|
19386
|
+
// No popover: the list is inline (the combobox detects it and keeps the list always open).
|
|
19387
|
+
const isInline = popoverProps === false;
|
|
19388
|
+
const listContent = /*#__PURE__*/jsxs(Fragment, {
|
|
19389
|
+
children: [/*#__PURE__*/jsxs(Combobox.List, {
|
|
19390
|
+
...listProps,
|
|
19391
|
+
"aria-label": label || undefined
|
|
19392
|
+
// No label: name the listbox like the input (ex: labelled by an external element).
|
|
19393
|
+
,
|
|
19394
|
+
"aria-labelledby": label ? undefined : ariaLabelledBy,
|
|
19395
|
+
"aria-multiselectable": isMultiselectable || undefined,
|
|
19396
|
+
children: [beforeOptions, isFullLoading ? /*#__PURE__*/jsx(Combobox.OptionSkeleton, {
|
|
19397
|
+
count: 3
|
|
19398
|
+
}) : renderSelectOptions({
|
|
19399
|
+
options,
|
|
19400
|
+
getOptionId,
|
|
19401
|
+
getOptionName,
|
|
19402
|
+
getOptionDescription,
|
|
19403
|
+
renderOption,
|
|
19404
|
+
getSectionId,
|
|
19405
|
+
renderSectionTitle,
|
|
19406
|
+
selected
|
|
19407
|
+
}, {
|
|
19408
|
+
Combobox
|
|
19409
|
+
}), afterOptions, onLoadMore && InfiniteScroll && /*#__PURE__*/jsx(InfiniteScroll, {
|
|
19410
|
+
callback: isInfiniteScrollEnabled ? onLoadMore : undefined,
|
|
19411
|
+
options: infiniteScrollOptions
|
|
19412
|
+
}), isLoadingMore && /*#__PURE__*/jsx(Combobox.OptionSkeleton, {
|
|
19413
|
+
count: 1
|
|
19414
|
+
})]
|
|
19415
|
+
}), /*#__PURE__*/jsx(Combobox.State, {
|
|
19416
|
+
loadingMessage: loadingMessage,
|
|
19417
|
+
emptyMessage: emptyMessage,
|
|
19418
|
+
nbOptionMessage: nbOptionMessage,
|
|
19419
|
+
errorMessage: isError ? errorMessage : undefined,
|
|
19420
|
+
errorTryReloadMessage: isError ? errorTryReloadMessage : undefined
|
|
19421
|
+
})]
|
|
19422
|
+
});
|
|
19294
19423
|
return /*#__PURE__*/jsxs(Combobox.Provider, {
|
|
19295
|
-
onOpen: onOpen,
|
|
19424
|
+
onOpen: isInline ? undefined : onOpen,
|
|
19296
19425
|
children: [/*#__PURE__*/jsx(Combobox.Input, {
|
|
19297
19426
|
label: label,
|
|
19298
19427
|
...inputProps,
|
|
19428
|
+
"aria-label": ariaLabel,
|
|
19429
|
+
"aria-labelledby": ariaLabelledBy
|
|
19430
|
+
// No popup to toggle when inline.
|
|
19431
|
+
,
|
|
19432
|
+
toggleButtonProps: isInline ? undefined : inputProps?.toggleButtonProps,
|
|
19299
19433
|
selectionMode: "keep",
|
|
19300
19434
|
chips: chips
|
|
19301
|
-
}),
|
|
19435
|
+
}), isInline ?
|
|
19436
|
+
// Fill the remaining space of a flex column parent (the list scrolls in it).
|
|
19437
|
+
// Not a tab stop: the input owns the focus (some browsers make a scroll container focusable).
|
|
19438
|
+
ScrollBox({
|
|
19439
|
+
className: element$b('scroll'),
|
|
19440
|
+
scrollSnap: true,
|
|
19441
|
+
fillSpace: true,
|
|
19442
|
+
tabIndex: -1,
|
|
19443
|
+
children: listContent
|
|
19444
|
+
}) : /*#__PURE__*/jsx(Combobox.Popover, {
|
|
19302
19445
|
fitToAnchorWidth: "minWidth",
|
|
19303
19446
|
fitWithinViewportHeight: true,
|
|
19304
19447
|
placement: "bottom-start",
|
|
19305
19448
|
...popoverProps,
|
|
19306
|
-
children:
|
|
19307
|
-
...listProps,
|
|
19308
|
-
"aria-label": label,
|
|
19309
|
-
"aria-multiselectable": isMultiselectable || undefined,
|
|
19310
|
-
children: [beforeOptions, isFullLoading ? /*#__PURE__*/jsx(Combobox.OptionSkeleton, {
|
|
19311
|
-
count: 3
|
|
19312
|
-
}) : renderSelectOptions({
|
|
19313
|
-
options,
|
|
19314
|
-
getOptionId,
|
|
19315
|
-
getOptionName,
|
|
19316
|
-
getOptionDescription,
|
|
19317
|
-
renderOption,
|
|
19318
|
-
getSectionId,
|
|
19319
|
-
renderSectionTitle,
|
|
19320
|
-
selected
|
|
19321
|
-
}, {
|
|
19322
|
-
Combobox
|
|
19323
|
-
}), afterOptions, onLoadMore && InfiniteScroll && /*#__PURE__*/jsx(InfiniteScroll, {
|
|
19324
|
-
callback: isInfiniteScrollEnabled ? onLoadMore : undefined,
|
|
19325
|
-
options: infiniteScrollOptions
|
|
19326
|
-
}), isLoadingMore && /*#__PURE__*/jsx(Combobox.OptionSkeleton, {
|
|
19327
|
-
count: 1
|
|
19328
|
-
})]
|
|
19329
|
-
}), /*#__PURE__*/jsx(Combobox.State, {
|
|
19330
|
-
loadingMessage: loadingMessage,
|
|
19331
|
-
emptyMessage: emptyMessage,
|
|
19332
|
-
nbOptionMessage: nbOptionMessage,
|
|
19333
|
-
errorMessage: isError ? errorMessage : undefined,
|
|
19334
|
-
errorTryReloadMessage: isError ? errorTryReloadMessage : undefined
|
|
19335
|
-
})]
|
|
19449
|
+
children: listContent
|
|
19336
19450
|
})]
|
|
19337
19451
|
});
|
|
19338
19452
|
};
|
|
@@ -19382,7 +19496,9 @@ const SelectTextField$1 = props => {
|
|
|
19382
19496
|
name,
|
|
19383
19497
|
isValid,
|
|
19384
19498
|
maxLength,
|
|
19385
|
-
ariaLabel,
|
|
19499
|
+
ariaLabel: deprecatedAriaLabel,
|
|
19500
|
+
'aria-label': ariaLabel = deprecatedAriaLabel,
|
|
19501
|
+
'aria-labelledby': ariaLabelledBy,
|
|
19386
19502
|
inputRef: externalInputRef,
|
|
19387
19503
|
// Event callbacks
|
|
19388
19504
|
onBlur: externalOnBlur,
|
|
@@ -19411,12 +19527,12 @@ const SelectTextField$1 = props => {
|
|
|
19411
19527
|
// (`value`, `isSelected`, `description`, `key`) into the returned <Combobox.Option>.
|
|
19412
19528
|
const wrappedRenderOption = wrapRenderOption(renderOption);
|
|
19413
19529
|
|
|
19414
|
-
// The list itself doesn't scroll — its ancestor `
|
|
19530
|
+
// The list itself doesn't scroll — its ancestor `ScrollBox` does. The
|
|
19415
19531
|
// IntersectionObserver root must be the actual scrolling/clipping element, or the
|
|
19416
19532
|
// sentinel is trivially always "intersecting" its non-clipping `<ul>` parent.
|
|
19417
19533
|
const [scrollContainer, setScrollContainer] = useState(null);
|
|
19418
19534
|
const setListElement = useCallback(listElement => {
|
|
19419
|
-
setScrollContainer(listElement?.closest(`.${CLASSNAME$13}
|
|
19535
|
+
setScrollContainer(listElement?.closest(`.${CLASSNAME$13}`) ?? null);
|
|
19420
19536
|
}, []);
|
|
19421
19537
|
const localInputRef = useRef(null);
|
|
19422
19538
|
const mergedInputRef = useMergeRefs(localInputRef, externalInputRef);
|
|
@@ -19517,6 +19633,8 @@ const SelectTextField$1 = props => {
|
|
|
19517
19633
|
renderSectionTitle: renderSectionTitle,
|
|
19518
19634
|
selected: value,
|
|
19519
19635
|
label,
|
|
19636
|
+
'aria-label': ariaLabel,
|
|
19637
|
+
'aria-labelledby': ariaLabelledBy,
|
|
19520
19638
|
isMultiselectable: isMultiple,
|
|
19521
19639
|
listStatus,
|
|
19522
19640
|
onOpen,
|
|
@@ -19547,7 +19665,6 @@ const SelectTextField$1 = props => {
|
|
|
19547
19665
|
name,
|
|
19548
19666
|
isValid,
|
|
19549
19667
|
maxLength,
|
|
19550
|
-
'aria-label': ariaLabel,
|
|
19551
19668
|
clearButtonProps: showClear ? {
|
|
19552
19669
|
label: translations.clearLabel
|
|
19553
19670
|
} : undefined,
|
|
@@ -19973,9 +20090,9 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
19973
20090
|
...forwardedProps
|
|
19974
20091
|
});
|
|
19975
20092
|
});
|
|
19976
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
20093
|
+
SkeletonTypography.displayName = COMPONENT_NAME$1g;
|
|
19977
20094
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$j;
|
|
19978
|
-
SkeletonTypography.className = CLASSNAME$
|
|
20095
|
+
SkeletonTypography.className = CLASSNAME$1d;
|
|
19979
20096
|
|
|
19980
20097
|
/**
|
|
19981
20098
|
* Clamp value in range.
|
|
@@ -23668,5 +23785,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
23668
23785
|
UserBlock.className = CLASSNAME;
|
|
23669
23786
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
23670
23787
|
|
|
23671
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$
|
|
23788
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1z as CLASSNAME, COMPONENT_NAME$1C as COMPONENT_NAME, Card, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1g as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, DialogHeading, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, InputRequiredLegend, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, 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$3 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 };
|
|
23672
23789
|
//# sourceMappingURL=index.js.map
|