@lumx/react 4.12.0-next.0 → 4.12.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/{Dpulze-1.js → BvaFEHZn.js} +69 -2
- package/_internal/BvaFEHZn.js.map +1 -0
- package/index.d.ts +295 -20
- package/index.js +974 -443
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/index.js +2 -69
- package/utils/index.js.map +1 -1
- package/_internal/Dpulze-1.js.map +0 -1
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import ReactDOM__default from 'react-dom';
|
|
|
9
9
|
import { classNames, onEscapePressed, onEnterPressed as onEnterPressed$1, detectHorizontalSwipe } from '@lumx/core/js/utils';
|
|
10
10
|
import last from 'lodash/last.js';
|
|
11
11
|
import pull from 'lodash/pull.js';
|
|
12
|
-
import { u as useDisabledStateContext, P as Portal, C as ClickAwayProvider } from './_internal/
|
|
12
|
+
import { u as useDisabledStateContext, P as Portal, C as ClickAwayProvider, I as InfiniteScroll } from './_internal/BvaFEHZn.js';
|
|
13
13
|
import isEmpty from 'lodash/isEmpty.js';
|
|
14
14
|
import get from 'lodash/get.js';
|
|
15
15
|
import { getDisabledState as getDisabledState$1 } from '@lumx/core/js/utils/disabledState';
|
|
@@ -25,10 +25,11 @@ import concat from 'lodash/concat.js';
|
|
|
25
25
|
import dropRight from 'lodash/dropRight.js';
|
|
26
26
|
import partition from 'lodash/partition.js';
|
|
27
27
|
import reduce from 'lodash/reduce.js';
|
|
28
|
-
import {
|
|
29
|
-
import { mdiInformation } from '@lumx/icons/esm/information.js';
|
|
28
|
+
import { getWithSelector as getWithSelector$1 } from '@lumx/core/js/utils/selectors';
|
|
30
29
|
import { mdiClose } from '@lumx/icons/esm/close.js';
|
|
31
30
|
import isFunction from 'lodash/isFunction.js';
|
|
31
|
+
import { mdiAlert } from '@lumx/icons/esm/alert.js';
|
|
32
|
+
import { mdiInformation } from '@lumx/icons/esm/information.js';
|
|
32
33
|
import { mdiImageBroken } from '@lumx/icons/esm/image-broken.js';
|
|
33
34
|
import { mdiCheck } from '@lumx/icons/esm/check.js';
|
|
34
35
|
import { mdiMinus } from '@lumx/icons/esm/minus.js';
|
|
@@ -528,6 +529,24 @@ const getWithSelector = (selector, object) => {
|
|
|
528
529
|
return String(object);
|
|
529
530
|
};
|
|
530
531
|
|
|
532
|
+
/**
|
|
533
|
+
* Equivalent to `lodash/groupBy` but returns a `Map` of groups items (instead of an object)
|
|
534
|
+
* (has the major advantage to not forcing the keys to be string!)
|
|
535
|
+
*/
|
|
536
|
+
function groupBySelector(array, selector) {
|
|
537
|
+
const groups = new Map();
|
|
538
|
+
for (const item of array) {
|
|
539
|
+
const key = getWithSelector(selector, item);
|
|
540
|
+
let group = groups.get(key);
|
|
541
|
+
if (!group) {
|
|
542
|
+
group = [];
|
|
543
|
+
groups.set(key, group);
|
|
544
|
+
}
|
|
545
|
+
group.push(item);
|
|
546
|
+
}
|
|
547
|
+
return groups;
|
|
548
|
+
}
|
|
549
|
+
|
|
531
550
|
/**
|
|
532
551
|
* Associative map from message kind to color and icon.
|
|
533
552
|
*/
|
|
@@ -553,15 +572,15 @@ const CONFIG$1 = {
|
|
|
553
572
|
/**
|
|
554
573
|
* Component display name.
|
|
555
574
|
*/
|
|
556
|
-
const COMPONENT_NAME$
|
|
575
|
+
const COMPONENT_NAME$1y = 'AlertDialog';
|
|
557
576
|
|
|
558
577
|
/**
|
|
559
578
|
* Component default class name and class prefix.
|
|
560
579
|
*/
|
|
561
|
-
const CLASSNAME$
|
|
580
|
+
const CLASSNAME$1w = 'lumx-alert-dialog';
|
|
562
581
|
const {
|
|
563
582
|
block: block$18
|
|
564
|
-
} = bem(CLASSNAME$
|
|
583
|
+
} = bem(CLASSNAME$1w);
|
|
565
584
|
|
|
566
585
|
/**
|
|
567
586
|
* Component default props.
|
|
@@ -727,8 +746,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
727
746
|
...forwardedProps
|
|
728
747
|
});
|
|
729
748
|
});
|
|
730
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
731
|
-
AlertDialog.className = CLASSNAME$
|
|
749
|
+
AlertDialog.displayName = COMPONENT_NAME$1y;
|
|
750
|
+
AlertDialog.className = CLASSNAME$1w;
|
|
732
751
|
AlertDialog.defaultProps = DEFAULT_PROPS$1g;
|
|
733
752
|
|
|
734
753
|
/**
|
|
@@ -821,12 +840,12 @@ function useDisableStateProps(props) {
|
|
|
821
840
|
/**
|
|
822
841
|
* Component display name.
|
|
823
842
|
*/
|
|
824
|
-
const COMPONENT_NAME$
|
|
843
|
+
const COMPONENT_NAME$1x = 'Autocomplete';
|
|
825
844
|
|
|
826
845
|
/**
|
|
827
846
|
* Component default class name and class prefix.
|
|
828
847
|
*/
|
|
829
|
-
const CLASSNAME$
|
|
848
|
+
const CLASSNAME$1v = 'lumx-autocomplete';
|
|
830
849
|
|
|
831
850
|
/**
|
|
832
851
|
* Component default props.
|
|
@@ -893,7 +912,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
893
912
|
return /*#__PURE__*/jsxs("div", {
|
|
894
913
|
ref: ref,
|
|
895
914
|
...forwardedProps,
|
|
896
|
-
className: classNames.join(className, CLASSNAME$
|
|
915
|
+
className: classNames.join(className, CLASSNAME$1v),
|
|
897
916
|
children: [/*#__PURE__*/jsx(TextField, {
|
|
898
917
|
...textFieldProps,
|
|
899
918
|
chips: chips,
|
|
@@ -933,19 +952,19 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
933
952
|
})]
|
|
934
953
|
});
|
|
935
954
|
});
|
|
936
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
937
|
-
Autocomplete.className = CLASSNAME$
|
|
955
|
+
Autocomplete.displayName = COMPONENT_NAME$1x;
|
|
956
|
+
Autocomplete.className = CLASSNAME$1v;
|
|
938
957
|
Autocomplete.defaultProps = DEFAULT_PROPS$1f;
|
|
939
958
|
|
|
940
959
|
/**
|
|
941
960
|
* Component display name.
|
|
942
961
|
*/
|
|
943
|
-
const COMPONENT_NAME$
|
|
962
|
+
const COMPONENT_NAME$1w = 'AutocompleteMultiple';
|
|
944
963
|
|
|
945
964
|
/**
|
|
946
965
|
* Component default class name and class prefix.
|
|
947
966
|
*/
|
|
948
|
-
const CLASSNAME$
|
|
967
|
+
const CLASSNAME$1u = 'lumx-autocomplete-multiple';
|
|
949
968
|
|
|
950
969
|
/**
|
|
951
970
|
* Component default props.
|
|
@@ -1025,7 +1044,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1025
1044
|
ref: ref,
|
|
1026
1045
|
...forwardedProps,
|
|
1027
1046
|
anchorToInput: anchorToInput,
|
|
1028
|
-
className: classNames.join(className, CLASSNAME$
|
|
1047
|
+
className: classNames.join(className, CLASSNAME$1u),
|
|
1029
1048
|
name: name,
|
|
1030
1049
|
value: value,
|
|
1031
1050
|
onChange: onChange,
|
|
@@ -1058,23 +1077,23 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1058
1077
|
children: children
|
|
1059
1078
|
});
|
|
1060
1079
|
});
|
|
1061
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
1062
|
-
AutocompleteMultiple.className = CLASSNAME$
|
|
1080
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1w;
|
|
1081
|
+
AutocompleteMultiple.className = CLASSNAME$1u;
|
|
1063
1082
|
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1e;
|
|
1064
1083
|
|
|
1065
1084
|
/**
|
|
1066
1085
|
* Component display name.
|
|
1067
1086
|
*/
|
|
1068
|
-
const COMPONENT_NAME$
|
|
1087
|
+
const COMPONENT_NAME$1v = 'Avatar';
|
|
1069
1088
|
|
|
1070
1089
|
/**
|
|
1071
1090
|
* Component default class name and class prefix.
|
|
1072
1091
|
*/
|
|
1073
|
-
const CLASSNAME$
|
|
1092
|
+
const CLASSNAME$1t = 'lumx-avatar';
|
|
1074
1093
|
const {
|
|
1075
1094
|
block: block$17,
|
|
1076
1095
|
element: element$Q
|
|
1077
|
-
} = bem(CLASSNAME$
|
|
1096
|
+
} = bem(CLASSNAME$1t);
|
|
1078
1097
|
|
|
1079
1098
|
/**
|
|
1080
1099
|
* Component default props.
|
|
@@ -1165,22 +1184,22 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1165
1184
|
})
|
|
1166
1185
|
});
|
|
1167
1186
|
});
|
|
1168
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
1169
|
-
Avatar.className = CLASSNAME$
|
|
1187
|
+
Avatar.displayName = COMPONENT_NAME$1v;
|
|
1188
|
+
Avatar.className = CLASSNAME$1t;
|
|
1170
1189
|
Avatar.defaultProps = DEFAULT_PROPS$1d;
|
|
1171
1190
|
|
|
1172
1191
|
/**
|
|
1173
1192
|
* Component display name.
|
|
1174
1193
|
*/
|
|
1175
|
-
const COMPONENT_NAME$
|
|
1194
|
+
const COMPONENT_NAME$1u = 'Badge';
|
|
1176
1195
|
|
|
1177
1196
|
/**
|
|
1178
1197
|
* Component default class name and class prefix.
|
|
1179
1198
|
*/
|
|
1180
|
-
const CLASSNAME$
|
|
1199
|
+
const CLASSNAME$1s = 'lumx-badge';
|
|
1181
1200
|
const {
|
|
1182
1201
|
block: block$16
|
|
1183
|
-
} = bem(CLASSNAME$
|
|
1202
|
+
} = bem(CLASSNAME$1s);
|
|
1184
1203
|
|
|
1185
1204
|
/**
|
|
1186
1205
|
* Component default props.
|
|
@@ -1212,8 +1231,8 @@ const Badge$1 = props => {
|
|
|
1212
1231
|
children: children
|
|
1213
1232
|
});
|
|
1214
1233
|
};
|
|
1215
|
-
Badge$1.displayName = COMPONENT_NAME$
|
|
1216
|
-
Badge$1.className = CLASSNAME$
|
|
1234
|
+
Badge$1.displayName = COMPONENT_NAME$1u;
|
|
1235
|
+
Badge$1.className = CLASSNAME$1s;
|
|
1217
1236
|
Badge$1.defaultProps = DEFAULT_PROPS$1c;
|
|
1218
1237
|
|
|
1219
1238
|
/**
|
|
@@ -1237,12 +1256,12 @@ Badge.displayName = Badge$1.displayName;
|
|
|
1237
1256
|
Badge.className = Badge$1.className;
|
|
1238
1257
|
Badge.defaultProps = Badge$1.defaultProps;
|
|
1239
1258
|
|
|
1240
|
-
const COMPONENT_NAME$
|
|
1241
|
-
const CLASSNAME$
|
|
1259
|
+
const COMPONENT_NAME$1t = 'BadgeWrapper';
|
|
1260
|
+
const CLASSNAME$1r = 'lumx-badge-wrapper';
|
|
1242
1261
|
const {
|
|
1243
1262
|
block: block$15,
|
|
1244
1263
|
element: element$P
|
|
1245
|
-
} = bem(CLASSNAME$
|
|
1264
|
+
} = bem(CLASSNAME$1r);
|
|
1246
1265
|
const BadgeWrapper$1 = props => {
|
|
1247
1266
|
const {
|
|
1248
1267
|
badge,
|
|
@@ -1268,8 +1287,8 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
1268
1287
|
ref
|
|
1269
1288
|
});
|
|
1270
1289
|
});
|
|
1271
|
-
BadgeWrapper.displayName = COMPONENT_NAME$
|
|
1272
|
-
BadgeWrapper.className = CLASSNAME$
|
|
1290
|
+
BadgeWrapper.displayName = COMPONENT_NAME$1t;
|
|
1291
|
+
BadgeWrapper.className = CLASSNAME$1r;
|
|
1273
1292
|
|
|
1274
1293
|
/**
|
|
1275
1294
|
* Render clickable element (link, button or custom element)
|
|
@@ -1319,7 +1338,7 @@ const RawClickable = props => {
|
|
|
1319
1338
|
/**
|
|
1320
1339
|
* Component display name.
|
|
1321
1340
|
*/
|
|
1322
|
-
const COMPONENT_NAME$
|
|
1341
|
+
const COMPONENT_NAME$1s = 'ButtonRoot';
|
|
1323
1342
|
const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
|
|
1324
1343
|
const {
|
|
1325
1344
|
block: buttonWrapperBlock
|
|
@@ -1417,7 +1436,7 @@ const ButtonRoot = props => {
|
|
|
1417
1436
|
children
|
|
1418
1437
|
});
|
|
1419
1438
|
};
|
|
1420
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
1439
|
+
ButtonRoot.displayName = COMPONENT_NAME$1s;
|
|
1421
1440
|
ButtonRoot.defaultProps = {};
|
|
1422
1441
|
|
|
1423
1442
|
/**
|
|
@@ -1427,15 +1446,15 @@ ButtonRoot.defaultProps = {};
|
|
|
1427
1446
|
/**
|
|
1428
1447
|
* Component display name.
|
|
1429
1448
|
*/
|
|
1430
|
-
const COMPONENT_NAME$
|
|
1449
|
+
const COMPONENT_NAME$1r = 'Button';
|
|
1431
1450
|
|
|
1432
1451
|
/**
|
|
1433
1452
|
* Component default class name and class prefix.
|
|
1434
1453
|
*/
|
|
1435
|
-
const CLASSNAME$
|
|
1454
|
+
const CLASSNAME$1q = 'lumx-button';
|
|
1436
1455
|
const {
|
|
1437
1456
|
modifier
|
|
1438
|
-
} = bem(CLASSNAME$
|
|
1457
|
+
} = bem(CLASSNAME$1q);
|
|
1439
1458
|
|
|
1440
1459
|
/**
|
|
1441
1460
|
* Component default props.
|
|
@@ -1472,8 +1491,8 @@ const Button$1 = props => {
|
|
|
1472
1491
|
variant: 'button'
|
|
1473
1492
|
});
|
|
1474
1493
|
};
|
|
1475
|
-
Button$1.displayName = COMPONENT_NAME$
|
|
1476
|
-
Button$1.className = CLASSNAME$
|
|
1494
|
+
Button$1.displayName = COMPONENT_NAME$1r;
|
|
1495
|
+
Button$1.className = CLASSNAME$1q;
|
|
1477
1496
|
Button$1.defaultProps = DEFAULT_PROPS$1b;
|
|
1478
1497
|
|
|
1479
1498
|
/**
|
|
@@ -1547,21 +1566,21 @@ const Button = forwardRef((props, ref) => {
|
|
|
1547
1566
|
})
|
|
1548
1567
|
});
|
|
1549
1568
|
});
|
|
1550
|
-
Button.displayName = COMPONENT_NAME$
|
|
1551
|
-
Button.className = CLASSNAME$
|
|
1569
|
+
Button.displayName = COMPONENT_NAME$1r;
|
|
1570
|
+
Button.className = CLASSNAME$1q;
|
|
1552
1571
|
Button.defaultProps = DEFAULT_PROPS$1b;
|
|
1553
1572
|
|
|
1554
|
-
const COMPONENT_NAME$
|
|
1573
|
+
const COMPONENT_NAME$1q = 'Icon';
|
|
1555
1574
|
const IconClassName = 'lumx-icon';
|
|
1556
1575
|
|
|
1557
1576
|
/**
|
|
1558
1577
|
* Defines the props of the component.
|
|
1559
1578
|
*/
|
|
1560
1579
|
|
|
1561
|
-
const CLASSNAME$
|
|
1580
|
+
const CLASSNAME$1p = IconClassName;
|
|
1562
1581
|
const {
|
|
1563
1582
|
block: block$14
|
|
1564
|
-
} = bem(CLASSNAME$
|
|
1583
|
+
} = bem(CLASSNAME$1p);
|
|
1565
1584
|
|
|
1566
1585
|
/**
|
|
1567
1586
|
* Component default props.
|
|
@@ -1644,19 +1663,19 @@ const Icon$1 = props => {
|
|
|
1644
1663
|
})
|
|
1645
1664
|
});
|
|
1646
1665
|
};
|
|
1647
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1648
|
-
Icon$1.className = CLASSNAME$
|
|
1666
|
+
Icon$1.displayName = COMPONENT_NAME$1q;
|
|
1667
|
+
Icon$1.className = CLASSNAME$1p;
|
|
1649
1668
|
Icon$1.defaultProps = DEFAULT_PROPS$1a;
|
|
1650
1669
|
|
|
1651
1670
|
/**
|
|
1652
1671
|
* Component display name.
|
|
1653
1672
|
*/
|
|
1654
|
-
const COMPONENT_NAME$
|
|
1673
|
+
const COMPONENT_NAME$1p = 'IconButton';
|
|
1655
1674
|
|
|
1656
1675
|
/**
|
|
1657
1676
|
* Component default class name and class prefix.
|
|
1658
1677
|
*/
|
|
1659
|
-
const CLASSNAME$
|
|
1678
|
+
const CLASSNAME$1o = 'lumx-icon-button';
|
|
1660
1679
|
|
|
1661
1680
|
/**
|
|
1662
1681
|
* Component default props.
|
|
@@ -1697,8 +1716,8 @@ const IconButton$1 = props => {
|
|
|
1697
1716
|
children: defaultChildren
|
|
1698
1717
|
});
|
|
1699
1718
|
};
|
|
1700
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1701
|
-
IconButton$1.className = CLASSNAME$
|
|
1719
|
+
IconButton$1.displayName = COMPONENT_NAME$1p;
|
|
1720
|
+
IconButton$1.className = CLASSNAME$1o;
|
|
1702
1721
|
IconButton$1.defaultProps = DEFAULT_PROPS$19;
|
|
1703
1722
|
|
|
1704
1723
|
/**
|
|
@@ -1742,19 +1761,19 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1742
1761
|
})
|
|
1743
1762
|
});
|
|
1744
1763
|
});
|
|
1745
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1746
|
-
IconButton.className = CLASSNAME$
|
|
1764
|
+
IconButton.displayName = COMPONENT_NAME$1p;
|
|
1765
|
+
IconButton.className = CLASSNAME$1o;
|
|
1747
1766
|
IconButton.defaultProps = DEFAULT_PROPS$19;
|
|
1748
1767
|
|
|
1749
1768
|
/**
|
|
1750
1769
|
* Component display name.
|
|
1751
1770
|
*/
|
|
1752
|
-
const COMPONENT_NAME$
|
|
1771
|
+
const COMPONENT_NAME$1o = 'ButtonGroup';
|
|
1753
1772
|
|
|
1754
1773
|
/**
|
|
1755
1774
|
* Component default class name and class prefix.
|
|
1756
1775
|
*/
|
|
1757
|
-
const CLASSNAME$
|
|
1776
|
+
const CLASSNAME$1n = 'lumx-button-group';
|
|
1758
1777
|
|
|
1759
1778
|
/**
|
|
1760
1779
|
* Component default props.
|
|
@@ -1775,12 +1794,12 @@ const ButtonGroup$1 = props => {
|
|
|
1775
1794
|
} = props;
|
|
1776
1795
|
return /*#__PURE__*/jsx("div", {
|
|
1777
1796
|
...forwardedProps,
|
|
1778
|
-
className: classnames(className, CLASSNAME$
|
|
1797
|
+
className: classnames(className, CLASSNAME$1n),
|
|
1779
1798
|
children: children
|
|
1780
1799
|
});
|
|
1781
1800
|
};
|
|
1782
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1783
|
-
ButtonGroup$1.className = CLASSNAME$
|
|
1801
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1o;
|
|
1802
|
+
ButtonGroup$1.className = CLASSNAME$1n;
|
|
1784
1803
|
ButtonGroup$1.defaultProps = DEFAULT_PROPS$18;
|
|
1785
1804
|
|
|
1786
1805
|
/**
|
|
@@ -1796,16 +1815,16 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1796
1815
|
...props
|
|
1797
1816
|
});
|
|
1798
1817
|
});
|
|
1799
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1800
|
-
ButtonGroup.className = CLASSNAME$
|
|
1818
|
+
ButtonGroup.displayName = COMPONENT_NAME$1o;
|
|
1819
|
+
ButtonGroup.className = CLASSNAME$1n;
|
|
1801
1820
|
ButtonGroup.defaultProps = DEFAULT_PROPS$18;
|
|
1802
1821
|
|
|
1803
|
-
const COMPONENT_NAME$
|
|
1822
|
+
const COMPONENT_NAME$1n = 'InputLabel';
|
|
1804
1823
|
const InputLabelClassName = 'lumx-input-label';
|
|
1805
|
-
const CLASSNAME$
|
|
1824
|
+
const CLASSNAME$1m = InputLabelClassName;
|
|
1806
1825
|
const {
|
|
1807
1826
|
block: block$13
|
|
1808
|
-
} = bem(CLASSNAME$
|
|
1827
|
+
} = bem(CLASSNAME$1m);
|
|
1809
1828
|
const DEFAULT_PROPS$17 = {};
|
|
1810
1829
|
|
|
1811
1830
|
/**
|
|
@@ -1834,8 +1853,8 @@ function InputLabel$1(props) {
|
|
|
1834
1853
|
children: children
|
|
1835
1854
|
});
|
|
1836
1855
|
}
|
|
1837
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1838
|
-
InputLabel$1.className = CLASSNAME$
|
|
1856
|
+
InputLabel$1.displayName = COMPONENT_NAME$1n;
|
|
1857
|
+
InputLabel$1.className = CLASSNAME$1m;
|
|
1839
1858
|
InputLabel$1.defaultProps = DEFAULT_PROPS$17;
|
|
1840
1859
|
|
|
1841
1860
|
const INPUT_HELPER_CONFIGURATION = {
|
|
@@ -1850,17 +1869,17 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1850
1869
|
}
|
|
1851
1870
|
};
|
|
1852
1871
|
|
|
1853
|
-
const COMPONENT_NAME$
|
|
1872
|
+
const COMPONENT_NAME$1m = 'InputHelper';
|
|
1854
1873
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1855
1874
|
|
|
1856
1875
|
/**
|
|
1857
1876
|
* Defines the props of the component.
|
|
1858
1877
|
*/
|
|
1859
1878
|
|
|
1860
|
-
const CLASSNAME$
|
|
1879
|
+
const CLASSNAME$1l = InputHelperClassName;
|
|
1861
1880
|
const {
|
|
1862
1881
|
block: block$12
|
|
1863
|
-
} = bem(CLASSNAME$
|
|
1882
|
+
} = bem(CLASSNAME$1l);
|
|
1864
1883
|
|
|
1865
1884
|
/**
|
|
1866
1885
|
* Component default props.
|
|
@@ -1894,8 +1913,8 @@ function InputHelper$1(props) {
|
|
|
1894
1913
|
children: children
|
|
1895
1914
|
});
|
|
1896
1915
|
}
|
|
1897
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1898
|
-
InputHelper$1.className = CLASSNAME$
|
|
1916
|
+
InputHelper$1.displayName = COMPONENT_NAME$1m;
|
|
1917
|
+
InputHelper$1.className = CLASSNAME$1l;
|
|
1899
1918
|
InputHelper$1.defaultProps = DEFAULT_PROPS$16;
|
|
1900
1919
|
|
|
1901
1920
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
@@ -1907,16 +1926,16 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1907
1926
|
/**
|
|
1908
1927
|
* Component display name.
|
|
1909
1928
|
*/
|
|
1910
|
-
const COMPONENT_NAME$
|
|
1929
|
+
const COMPONENT_NAME$1l = 'Checkbox';
|
|
1911
1930
|
|
|
1912
1931
|
/**
|
|
1913
1932
|
* Component default class name and class prefix.
|
|
1914
1933
|
*/
|
|
1915
|
-
const CLASSNAME$
|
|
1934
|
+
const CLASSNAME$1k = 'lumx-checkbox';
|
|
1916
1935
|
const {
|
|
1917
1936
|
block: block$11,
|
|
1918
1937
|
element: element$O
|
|
1919
|
-
} = bem(CLASSNAME$
|
|
1938
|
+
} = bem(CLASSNAME$1k);
|
|
1920
1939
|
|
|
1921
1940
|
/**
|
|
1922
1941
|
* Checkbox component.
|
|
@@ -2071,8 +2090,8 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
2071
2090
|
inputId
|
|
2072
2091
|
});
|
|
2073
2092
|
});
|
|
2074
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
2075
|
-
Checkbox.className = CLASSNAME$
|
|
2093
|
+
Checkbox.displayName = COMPONENT_NAME$1l;
|
|
2094
|
+
Checkbox.className = CLASSNAME$1k;
|
|
2076
2095
|
Checkbox.defaultProps = DEFAULT_PROPS$15;
|
|
2077
2096
|
|
|
2078
2097
|
/**
|
|
@@ -2094,16 +2113,16 @@ function useStopPropagation(handler) {
|
|
|
2094
2113
|
/**
|
|
2095
2114
|
* Component display name.
|
|
2096
2115
|
*/
|
|
2097
|
-
const COMPONENT_NAME$
|
|
2116
|
+
const COMPONENT_NAME$1k = 'Chip';
|
|
2098
2117
|
|
|
2099
2118
|
/**
|
|
2100
2119
|
* Component default class name and class prefix.
|
|
2101
2120
|
*/
|
|
2102
|
-
const CLASSNAME$
|
|
2121
|
+
const CLASSNAME$1j = 'lumx-chip';
|
|
2103
2122
|
const {
|
|
2104
2123
|
block: block$10,
|
|
2105
2124
|
element: element$N
|
|
2106
|
-
} = bem(CLASSNAME$
|
|
2125
|
+
} = bem(CLASSNAME$1j);
|
|
2107
2126
|
|
|
2108
2127
|
/**
|
|
2109
2128
|
* Component default props.
|
|
@@ -2255,19 +2274,19 @@ const Chip = forwardRef((props, ref) => {
|
|
|
2255
2274
|
...forwardedProps
|
|
2256
2275
|
});
|
|
2257
2276
|
});
|
|
2258
|
-
Chip.displayName = COMPONENT_NAME$
|
|
2259
|
-
Chip.className = CLASSNAME$
|
|
2277
|
+
Chip.displayName = COMPONENT_NAME$1k;
|
|
2278
|
+
Chip.className = CLASSNAME$1j;
|
|
2260
2279
|
Chip.defaultProps = DEFAULT_PROPS$14;
|
|
2261
2280
|
|
|
2262
2281
|
/**
|
|
2263
2282
|
* Component display name.
|
|
2264
2283
|
*/
|
|
2265
|
-
const COMPONENT_NAME$
|
|
2284
|
+
const COMPONENT_NAME$1j = 'ChipGroup';
|
|
2266
2285
|
|
|
2267
2286
|
/**
|
|
2268
2287
|
* Component default class name and class prefix.
|
|
2269
2288
|
*/
|
|
2270
|
-
const CLASSNAME$
|
|
2289
|
+
const CLASSNAME$1i = 'lumx-chip-group';
|
|
2271
2290
|
|
|
2272
2291
|
/**
|
|
2273
2292
|
* Component default props.
|
|
@@ -2290,7 +2309,7 @@ const ChipGroup$1 = props => {
|
|
|
2290
2309
|
return /*#__PURE__*/jsx("div", {
|
|
2291
2310
|
ref: ref,
|
|
2292
2311
|
...forwardedProps,
|
|
2293
|
-
className: classnames(className, CLASSNAME$
|
|
2312
|
+
className: classnames(className, CLASSNAME$1i),
|
|
2294
2313
|
children: children
|
|
2295
2314
|
});
|
|
2296
2315
|
};
|
|
@@ -2368,8 +2387,8 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2368
2387
|
...forwardedProps
|
|
2369
2388
|
});
|
|
2370
2389
|
});
|
|
2371
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2372
|
-
InternalChipGroup.className = CLASSNAME$
|
|
2390
|
+
InternalChipGroup.displayName = COMPONENT_NAME$1j;
|
|
2391
|
+
InternalChipGroup.className = CLASSNAME$1i;
|
|
2373
2392
|
InternalChipGroup.defaultProps = DEFAULT_PROPS$13;
|
|
2374
2393
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2375
2394
|
useChipGroupNavigation
|
|
@@ -2378,16 +2397,16 @@ const ChipGroup = Object.assign(InternalChipGroup, {
|
|
|
2378
2397
|
/**
|
|
2379
2398
|
* Component display name.
|
|
2380
2399
|
*/
|
|
2381
|
-
const COMPONENT_NAME$
|
|
2400
|
+
const COMPONENT_NAME$1i = 'SelectionChipGroup';
|
|
2382
2401
|
|
|
2383
2402
|
/**
|
|
2384
2403
|
* Component default class name and class prefix.
|
|
2385
2404
|
*/
|
|
2386
|
-
const CLASSNAME$
|
|
2405
|
+
const CLASSNAME$1h = 'lumx-selection-chip-group';
|
|
2387
2406
|
const {
|
|
2388
2407
|
block: block$$,
|
|
2389
2408
|
element: element$M
|
|
2390
|
-
} = bem(CLASSNAME$
|
|
2409
|
+
} = bem(CLASSNAME$1h);
|
|
2391
2410
|
|
|
2392
2411
|
/**
|
|
2393
2412
|
* SelectionChipGroup component.
|
|
@@ -2483,10 +2502,10 @@ function createSelectorTreeWalker(container, selector) {
|
|
|
2483
2502
|
}
|
|
2484
2503
|
|
|
2485
2504
|
/** CSS selector for enabled chips (not aria-disabled). */
|
|
2486
|
-
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$
|
|
2505
|
+
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$1j}:not([aria-disabled="true"])`;
|
|
2487
2506
|
|
|
2488
2507
|
/** Find the closest chip element from an event target. */
|
|
2489
|
-
const getChip = target => target?.closest?.(`.${CLASSNAME$
|
|
2508
|
+
const getChip = target => target?.closest?.(`.${CLASSNAME$1j}`) || null;
|
|
2490
2509
|
|
|
2491
2510
|
/**
|
|
2492
2511
|
* Options for setting up selection chip group event handlers.
|
|
@@ -2684,15 +2703,15 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
2684
2703
|
/**
|
|
2685
2704
|
* Component display name.
|
|
2686
2705
|
*/
|
|
2687
|
-
const COMPONENT_NAME$
|
|
2706
|
+
const COMPONENT_NAME$1h = 'Text';
|
|
2688
2707
|
|
|
2689
2708
|
/**
|
|
2690
2709
|
* Component default class name and class prefix.
|
|
2691
2710
|
*/
|
|
2692
|
-
const CLASSNAME$
|
|
2711
|
+
const CLASSNAME$1g = 'lumx-text';
|
|
2693
2712
|
const {
|
|
2694
2713
|
block: block$_
|
|
2695
|
-
} = bem(CLASSNAME$
|
|
2714
|
+
} = bem(CLASSNAME$1g);
|
|
2696
2715
|
|
|
2697
2716
|
/**
|
|
2698
2717
|
* Component default props.
|
|
@@ -2782,8 +2801,8 @@ const Text = forwardRef((props, ref) => {
|
|
|
2782
2801
|
children: wrapChildrenIconWithSpaces(children)
|
|
2783
2802
|
});
|
|
2784
2803
|
});
|
|
2785
|
-
Text.displayName = COMPONENT_NAME$
|
|
2786
|
-
Text.className = CLASSNAME$
|
|
2804
|
+
Text.displayName = COMPONENT_NAME$1h;
|
|
2805
|
+
Text.className = CLASSNAME$1g;
|
|
2787
2806
|
Text.defaultProps = DEFAULT_PROPS$12;
|
|
2788
2807
|
|
|
2789
2808
|
/**
|
|
@@ -4876,16 +4895,16 @@ const DEFAULT_PROPS$11 = {
|
|
|
4876
4895
|
/**
|
|
4877
4896
|
* Component display name.
|
|
4878
4897
|
*/
|
|
4879
|
-
const COMPONENT_NAME$
|
|
4898
|
+
const COMPONENT_NAME$1g = 'Tooltip';
|
|
4880
4899
|
|
|
4881
4900
|
/**
|
|
4882
4901
|
* Component default class name and class prefix.
|
|
4883
4902
|
*/
|
|
4884
|
-
const CLASSNAME$
|
|
4903
|
+
const CLASSNAME$1f = 'lumx-tooltip';
|
|
4885
4904
|
const {
|
|
4886
4905
|
block: block$Z,
|
|
4887
4906
|
element: element$L
|
|
4888
|
-
} = bem(CLASSNAME$
|
|
4907
|
+
} = bem(CLASSNAME$1f);
|
|
4889
4908
|
|
|
4890
4909
|
/**
|
|
4891
4910
|
* Props for the TooltipPopup rendering component.
|
|
@@ -4934,8 +4953,8 @@ const TooltipPopup = props => {
|
|
|
4934
4953
|
})]
|
|
4935
4954
|
});
|
|
4936
4955
|
};
|
|
4937
|
-
TooltipPopup.displayName = COMPONENT_NAME$
|
|
4938
|
-
TooltipPopup.className = CLASSNAME$
|
|
4956
|
+
TooltipPopup.displayName = COMPONENT_NAME$1g;
|
|
4957
|
+
TooltipPopup.className = CLASSNAME$1f;
|
|
4939
4958
|
|
|
4940
4959
|
/**
|
|
4941
4960
|
* Add ref and ARIA attribute(s) in tooltip children or wrapped children.
|
|
@@ -5297,8 +5316,8 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5297
5316
|
})]
|
|
5298
5317
|
});
|
|
5299
5318
|
});
|
|
5300
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
5301
|
-
Tooltip.className = CLASSNAME$
|
|
5319
|
+
Tooltip.displayName = COMPONENT_NAME$1g;
|
|
5320
|
+
Tooltip.className = CLASSNAME$1f;
|
|
5302
5321
|
Tooltip.defaultProps = DEFAULT_PROPS$11;
|
|
5303
5322
|
|
|
5304
5323
|
/**
|
|
@@ -6177,8 +6196,8 @@ const SelectionChipGroup = ({
|
|
|
6177
6196
|
}, [container, inputRef, getOptionId]);
|
|
6178
6197
|
useRovingTabIndexContainer({
|
|
6179
6198
|
containerRef: container,
|
|
6180
|
-
itemSelector: `.${CLASSNAME$
|
|
6181
|
-
itemDisabledSelector: `.${CLASSNAME$
|
|
6199
|
+
itemSelector: `.${CLASSNAME$1j}`,
|
|
6200
|
+
itemDisabledSelector: `.${CLASSNAME$1j}[aria-disabled="true"]`
|
|
6182
6201
|
});
|
|
6183
6202
|
|
|
6184
6203
|
// Merge getChipProps and renderChip: getChipProps provides base props, renderChip overrides them,
|
|
@@ -6218,8 +6237,8 @@ const SelectionChipGroup = ({
|
|
|
6218
6237
|
Tooltip
|
|
6219
6238
|
});
|
|
6220
6239
|
};
|
|
6221
|
-
SelectionChipGroup.displayName = COMPONENT_NAME$
|
|
6222
|
-
SelectionChipGroup.className = CLASSNAME$
|
|
6240
|
+
SelectionChipGroup.displayName = COMPONENT_NAME$1i;
|
|
6241
|
+
SelectionChipGroup.className = CLASSNAME$1h;
|
|
6223
6242
|
|
|
6224
6243
|
/**
|
|
6225
6244
|
* Get the value for a combobox option element.
|
|
@@ -6442,17 +6461,17 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6442
6461
|
/** AbortController for all structural event listeners. */
|
|
6443
6462
|
let abortController = null;
|
|
6444
6463
|
|
|
6445
|
-
/** Last notified
|
|
6446
|
-
let
|
|
6464
|
+
/** Last notified visible option count, to avoid redundant `optionsChange` notifications. */
|
|
6465
|
+
let lastOptionsLength = 0;
|
|
6447
6466
|
|
|
6448
|
-
/** Last notified input value, to re-fire `
|
|
6467
|
+
/** Last notified input value, to re-fire `optionsChange` when the user keeps typing while empty. */
|
|
6449
6468
|
let lastInputValue = '';
|
|
6450
6469
|
|
|
6451
6470
|
/** Event subscribers managed by the handle. */
|
|
6452
6471
|
const subscribers = {
|
|
6453
6472
|
open: new Set(),
|
|
6454
6473
|
activeDescendantChange: new Set(),
|
|
6455
|
-
|
|
6474
|
+
optionsChange: new Set(),
|
|
6456
6475
|
loadingChange: new Set(),
|
|
6457
6476
|
loadingAnnouncement: new Set()
|
|
6458
6477
|
};
|
|
@@ -6463,7 +6482,7 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6463
6482
|
}
|
|
6464
6483
|
|
|
6465
6484
|
/**
|
|
6466
|
-
* Notify all registered sections and fire `
|
|
6485
|
+
* Notify all registered sections and fire `optionsChange` if the visible option count changed
|
|
6467
6486
|
* or if the input value changed while the list is empty (so `emptyMessage` callbacks get
|
|
6468
6487
|
* the updated query string).
|
|
6469
6488
|
* Called whenever the set of visible options may have changed (option register/unregister, filter change).
|
|
@@ -6476,13 +6495,13 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6476
6495
|
for (const reg of optionRegistrations.values()) {
|
|
6477
6496
|
if (!reg.lastFiltered) visibleCount += 1;
|
|
6478
6497
|
}
|
|
6479
|
-
const isEmpty = visibleCount === 0;
|
|
6480
6498
|
const inputValue = trigger?.value ?? '';
|
|
6481
|
-
|
|
6482
|
-
|
|
6499
|
+
const isEmpty = visibleCount === 0;
|
|
6500
|
+
if (visibleCount !== lastOptionsLength || isEmpty && inputValue !== lastInputValue) {
|
|
6501
|
+
lastOptionsLength = visibleCount;
|
|
6483
6502
|
lastInputValue = inputValue;
|
|
6484
|
-
notify('
|
|
6485
|
-
|
|
6503
|
+
notify('optionsChange', {
|
|
6504
|
+
optionsLength: visibleCount,
|
|
6486
6505
|
inputValue
|
|
6487
6506
|
});
|
|
6488
6507
|
}
|
|
@@ -6730,15 +6749,15 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6730
6749
|
trigger?.setAttribute('aria-expanded', String(isOpen));
|
|
6731
6750
|
notify('open', isOpen);
|
|
6732
6751
|
|
|
6733
|
-
// When opening, always notify the current
|
|
6752
|
+
// When opening, always notify the current options state so that
|
|
6734
6753
|
// subscribers (ComboboxState) get the correct initial value.
|
|
6735
|
-
// Without this, a list that starts empty never fires `
|
|
6736
|
-
// because `
|
|
6754
|
+
// Without this, a list that starts empty never fires `optionsChange`
|
|
6755
|
+
// because `lastOptionsLength` is initialized to `0` and `notifyVisibilityChange`
|
|
6737
6756
|
// only fires on *changes*.
|
|
6738
6757
|
if (isOpen) {
|
|
6739
6758
|
const inputValue = trigger?.value ?? '';
|
|
6740
|
-
notify('
|
|
6741
|
-
|
|
6759
|
+
notify('optionsChange', {
|
|
6760
|
+
optionsLength: lastOptionsLength,
|
|
6742
6761
|
inputValue
|
|
6743
6762
|
});
|
|
6744
6763
|
}
|
|
@@ -6778,6 +6797,18 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6778
6797
|
}
|
|
6779
6798
|
notifyVisibilityChange();
|
|
6780
6799
|
},
|
|
6800
|
+
refilterOption(element) {
|
|
6801
|
+
const reg = optionRegistrations.get(element);
|
|
6802
|
+
if (!reg) return;
|
|
6803
|
+
const filterLower = filterValue.toLowerCase();
|
|
6804
|
+
const text = getOptionValue(element).toLowerCase();
|
|
6805
|
+
const isFiltered = filterLower.length > 0 && !text.includes(filterLower);
|
|
6806
|
+
if (isFiltered !== reg.lastFiltered) {
|
|
6807
|
+
reg.lastFiltered = isFiltered;
|
|
6808
|
+
reg.callback(isFiltered);
|
|
6809
|
+
notifyVisibilityChange();
|
|
6810
|
+
}
|
|
6811
|
+
},
|
|
6781
6812
|
registerSection(element, callback) {
|
|
6782
6813
|
sectionRegistrations.set(element, {
|
|
6783
6814
|
callback,
|
|
@@ -6857,7 +6888,7 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6857
6888
|
trigger = null;
|
|
6858
6889
|
listbox = null;
|
|
6859
6890
|
filterValue = '';
|
|
6860
|
-
|
|
6891
|
+
lastOptionsLength = 0;
|
|
6861
6892
|
lastInputValue = '';
|
|
6862
6893
|
optionRegistrations.clear();
|
|
6863
6894
|
sectionRegistrations.clear();
|
|
@@ -7095,12 +7126,12 @@ function setupComboboxButton(button, callbacks) {
|
|
|
7095
7126
|
/**
|
|
7096
7127
|
* Component display name.
|
|
7097
7128
|
*/
|
|
7098
|
-
const COMPONENT_NAME$
|
|
7129
|
+
const COMPONENT_NAME$1f = 'ComboboxButton';
|
|
7099
7130
|
|
|
7100
7131
|
/**
|
|
7101
7132
|
* Component default class name and class prefix.
|
|
7102
7133
|
*/
|
|
7103
|
-
const CLASSNAME$
|
|
7134
|
+
const CLASSNAME$1e = 'lumx-combobox-button';
|
|
7104
7135
|
|
|
7105
7136
|
/**
|
|
7106
7137
|
* ComboboxButton core template.
|
|
@@ -7144,7 +7175,7 @@ const ComboboxButton$1 = (props, {
|
|
|
7144
7175
|
children: /*#__PURE__*/jsx(Button, {
|
|
7145
7176
|
ref: ref,
|
|
7146
7177
|
...forwardedProps,
|
|
7147
|
-
className: classnames(className, CLASSNAME$
|
|
7178
|
+
className: classnames(className, CLASSNAME$1e),
|
|
7148
7179
|
role: "combobox",
|
|
7149
7180
|
"aria-controls": listboxId,
|
|
7150
7181
|
"aria-haspopup": "listbox",
|
|
@@ -7275,8 +7306,8 @@ const ComboboxButton = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
7275
7306
|
Tooltip
|
|
7276
7307
|
});
|
|
7277
7308
|
}), {
|
|
7278
|
-
displayName: COMPONENT_NAME$
|
|
7279
|
-
className: CLASSNAME$
|
|
7309
|
+
displayName: COMPONENT_NAME$1f,
|
|
7310
|
+
className: CLASSNAME$1e
|
|
7280
7311
|
});
|
|
7281
7312
|
|
|
7282
7313
|
/** Options for configuring the input-mode combobox controller. */
|
|
@@ -7435,12 +7466,12 @@ function getDisabledState(context, props) {
|
|
|
7435
7466
|
/**
|
|
7436
7467
|
* Component display name.
|
|
7437
7468
|
*/
|
|
7438
|
-
const COMPONENT_NAME$
|
|
7469
|
+
const COMPONENT_NAME$1e = 'ComboboxInput';
|
|
7439
7470
|
|
|
7440
7471
|
/**
|
|
7441
7472
|
* Component default class name and class prefix.
|
|
7442
7473
|
*/
|
|
7443
|
-
const CLASSNAME$
|
|
7474
|
+
const CLASSNAME$1d = 'lumx-combobox-input';
|
|
7444
7475
|
|
|
7445
7476
|
/**
|
|
7446
7477
|
* ComboboxInput core template.
|
|
@@ -7503,22 +7534,22 @@ const ComboboxInput$1 = (props, {
|
|
|
7503
7534
|
/**
|
|
7504
7535
|
* Component display name.
|
|
7505
7536
|
*/
|
|
7506
|
-
const COMPONENT_NAME$
|
|
7537
|
+
const COMPONENT_NAME$1d = 'TextField';
|
|
7507
7538
|
|
|
7508
7539
|
/**
|
|
7509
7540
|
* Component default class name and class prefix.
|
|
7510
7541
|
*/
|
|
7511
|
-
const CLASSNAME$
|
|
7542
|
+
const CLASSNAME$1c = 'lumx-text-field';
|
|
7512
7543
|
|
|
7513
7544
|
/**
|
|
7514
7545
|
* Input native element class name.
|
|
7515
7546
|
*/
|
|
7516
|
-
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$
|
|
7547
|
+
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$1c}__input-native`;
|
|
7517
7548
|
|
|
7518
7549
|
const {
|
|
7519
7550
|
block: block$Y,
|
|
7520
7551
|
element: element$K
|
|
7521
|
-
} = bem(CLASSNAME$
|
|
7552
|
+
} = bem(CLASSNAME$1c);
|
|
7522
7553
|
|
|
7523
7554
|
/**
|
|
7524
7555
|
* Defines the props of the component.
|
|
@@ -8023,8 +8054,8 @@ const TextField = forwardRef((props, ref) => {
|
|
|
8023
8054
|
} : undefined
|
|
8024
8055
|
});
|
|
8025
8056
|
});
|
|
8026
|
-
TextField.displayName = COMPONENT_NAME$
|
|
8027
|
-
TextField.className = CLASSNAME$
|
|
8057
|
+
TextField.displayName = COMPONENT_NAME$1d;
|
|
8058
|
+
TextField.className = CLASSNAME$1c;
|
|
8028
8059
|
TextField.defaultProps = DEFAULT_PROPS$Z;
|
|
8029
8060
|
|
|
8030
8061
|
/**
|
|
@@ -8102,21 +8133,21 @@ const ComboboxInput = forwardRef((props, ref) => {
|
|
|
8102
8133
|
IconButton
|
|
8103
8134
|
});
|
|
8104
8135
|
});
|
|
8105
|
-
ComboboxInput.displayName = COMPONENT_NAME$
|
|
8106
|
-
ComboboxInput.className = CLASSNAME$
|
|
8136
|
+
ComboboxInput.displayName = COMPONENT_NAME$1e;
|
|
8137
|
+
ComboboxInput.className = CLASSNAME$1d;
|
|
8107
8138
|
|
|
8108
8139
|
/**
|
|
8109
8140
|
* Component display name.
|
|
8110
8141
|
*/
|
|
8111
|
-
const COMPONENT_NAME$
|
|
8142
|
+
const COMPONENT_NAME$1c = 'List';
|
|
8112
8143
|
|
|
8113
8144
|
/**
|
|
8114
8145
|
* Component default class name and class prefix.
|
|
8115
8146
|
*/
|
|
8116
|
-
const CLASSNAME$
|
|
8147
|
+
const CLASSNAME$1b = 'lumx-list';
|
|
8117
8148
|
const {
|
|
8118
8149
|
block: block$V
|
|
8119
|
-
} = bem(CLASSNAME$
|
|
8150
|
+
} = bem(CLASSNAME$1b);
|
|
8120
8151
|
|
|
8121
8152
|
/**
|
|
8122
8153
|
* Component default props.
|
|
@@ -8146,8 +8177,8 @@ const List$1 = props => {
|
|
|
8146
8177
|
children: children
|
|
8147
8178
|
});
|
|
8148
8179
|
};
|
|
8149
|
-
List$1.displayName = COMPONENT_NAME$
|
|
8150
|
-
List$1.className = CLASSNAME$
|
|
8180
|
+
List$1.displayName = COMPONENT_NAME$1c;
|
|
8181
|
+
List$1.className = CLASSNAME$1b;
|
|
8151
8182
|
List$1.defaultProps = DEFAULT_PROPS$Y;
|
|
8152
8183
|
|
|
8153
8184
|
/**
|
|
@@ -8163,12 +8194,12 @@ List$1.defaultProps = DEFAULT_PROPS$Y;
|
|
|
8163
8194
|
/**
|
|
8164
8195
|
* Component display name.
|
|
8165
8196
|
*/
|
|
8166
|
-
const COMPONENT_NAME$
|
|
8197
|
+
const COMPONENT_NAME$1b = 'ComboboxList';
|
|
8167
8198
|
|
|
8168
8199
|
/**
|
|
8169
8200
|
* Component default class name and class prefix.
|
|
8170
8201
|
*/
|
|
8171
|
-
const CLASSNAME$
|
|
8202
|
+
const CLASSNAME$1a = 'lumx-combobox-list';
|
|
8172
8203
|
|
|
8173
8204
|
/**
|
|
8174
8205
|
* ComboboxList core template.
|
|
@@ -8190,7 +8221,7 @@ const ComboboxList$1 = props => {
|
|
|
8190
8221
|
} = props;
|
|
8191
8222
|
return List$1({
|
|
8192
8223
|
...forwardedProps,
|
|
8193
|
-
className: classnames(className, CLASSNAME$
|
|
8224
|
+
className: classnames(className, CLASSNAME$1a),
|
|
8194
8225
|
ref,
|
|
8195
8226
|
itemPadding: 'big',
|
|
8196
8227
|
id,
|
|
@@ -8275,22 +8306,22 @@ const ComboboxList = forwardRef((props, ref) => {
|
|
|
8275
8306
|
})
|
|
8276
8307
|
});
|
|
8277
8308
|
});
|
|
8278
|
-
ComboboxList.displayName = COMPONENT_NAME$
|
|
8279
|
-
ComboboxList.className = CLASSNAME$
|
|
8309
|
+
ComboboxList.displayName = COMPONENT_NAME$1b;
|
|
8310
|
+
ComboboxList.className = CLASSNAME$1a;
|
|
8280
8311
|
|
|
8281
8312
|
/**
|
|
8282
8313
|
* Component display name.
|
|
8283
8314
|
*/
|
|
8284
|
-
const COMPONENT_NAME$
|
|
8315
|
+
const COMPONENT_NAME$1a = 'ListItem';
|
|
8285
8316
|
|
|
8286
8317
|
/**
|
|
8287
8318
|
* Component default class name and class prefix.
|
|
8288
8319
|
*/
|
|
8289
|
-
const CLASSNAME$
|
|
8320
|
+
const CLASSNAME$19 = 'lumx-list-item';
|
|
8290
8321
|
const {
|
|
8291
8322
|
block: block$U,
|
|
8292
8323
|
element: element$J
|
|
8293
|
-
} = bem(CLASSNAME$
|
|
8324
|
+
} = bem(CLASSNAME$19);
|
|
8294
8325
|
|
|
8295
8326
|
/**
|
|
8296
8327
|
* Component default props.
|
|
@@ -8357,8 +8388,8 @@ const ListItem$1 = props => {
|
|
|
8357
8388
|
})
|
|
8358
8389
|
});
|
|
8359
8390
|
};
|
|
8360
|
-
ListItem$1.displayName = COMPONENT_NAME$
|
|
8361
|
-
ListItem$1.className = CLASSNAME$
|
|
8391
|
+
ListItem$1.displayName = COMPONENT_NAME$1a;
|
|
8392
|
+
ListItem$1.className = CLASSNAME$19;
|
|
8362
8393
|
ListItem$1.defaultProps = DEFAULT_PROPS$X;
|
|
8363
8394
|
|
|
8364
8395
|
/**
|
|
@@ -8368,12 +8399,12 @@ ListItem$1.defaultProps = DEFAULT_PROPS$X;
|
|
|
8368
8399
|
/**
|
|
8369
8400
|
* Component display name.
|
|
8370
8401
|
*/
|
|
8371
|
-
const COMPONENT_NAME$
|
|
8402
|
+
const COMPONENT_NAME$19 = 'ListItemAction';
|
|
8372
8403
|
|
|
8373
8404
|
/**
|
|
8374
8405
|
* Component classname (used by action area CSS pattern).
|
|
8375
8406
|
*/
|
|
8376
|
-
const CLASSNAME$
|
|
8407
|
+
const CLASSNAME$18 = 'lumx-action-area__action';
|
|
8377
8408
|
const DEFAULT_PROPS$W = {};
|
|
8378
8409
|
|
|
8379
8410
|
/**
|
|
@@ -8407,16 +8438,16 @@ const ListItemAction$1 = props => {
|
|
|
8407
8438
|
/**
|
|
8408
8439
|
* Component display name.
|
|
8409
8440
|
*/
|
|
8410
|
-
const COMPONENT_NAME$
|
|
8441
|
+
const COMPONENT_NAME$18 = 'ComboboxOption';
|
|
8411
8442
|
|
|
8412
8443
|
/**
|
|
8413
8444
|
* Component default class name and class prefix.
|
|
8414
8445
|
*/
|
|
8415
|
-
const CLASSNAME$
|
|
8446
|
+
const CLASSNAME$17 = 'lumx-combobox-option';
|
|
8416
8447
|
const {
|
|
8417
8448
|
block: block$T,
|
|
8418
8449
|
element: element$I
|
|
8419
|
-
} = bem(CLASSNAME$
|
|
8450
|
+
} = bem(CLASSNAME$17);
|
|
8420
8451
|
|
|
8421
8452
|
/**
|
|
8422
8453
|
* ComboboxOption core template.
|
|
@@ -8563,6 +8594,13 @@ const ComboboxOption = forwardRef((props, ref) => {
|
|
|
8563
8594
|
return handle.registerOption(element, setIsFiltered);
|
|
8564
8595
|
}, [handle]);
|
|
8565
8596
|
|
|
8597
|
+
// Re-evaluate filter state when the option value changes.
|
|
8598
|
+
useEffect(() => {
|
|
8599
|
+
const element = internalRef.current;
|
|
8600
|
+
if (!element || !handle) return;
|
|
8601
|
+
handle.refilterOption(element);
|
|
8602
|
+
}, [handle, value]);
|
|
8603
|
+
|
|
8566
8604
|
// Wrap `after` content in an option context so sub-components (e.g. OptionMoreInfo)
|
|
8567
8605
|
// can access the parent option's ID for keyboard highlight detection.
|
|
8568
8606
|
const optionContextValue = useMemo(() => ({
|
|
@@ -8593,8 +8631,8 @@ const ComboboxOption = forwardRef((props, ref) => {
|
|
|
8593
8631
|
Tooltip
|
|
8594
8632
|
});
|
|
8595
8633
|
});
|
|
8596
|
-
ComboboxOption.displayName = COMPONENT_NAME$
|
|
8597
|
-
ComboboxOption.className = CLASSNAME$
|
|
8634
|
+
ComboboxOption.displayName = COMPONENT_NAME$18;
|
|
8635
|
+
ComboboxOption.className = CLASSNAME$17;
|
|
8598
8636
|
|
|
8599
8637
|
/**
|
|
8600
8638
|
* Defines the props for the core ComboboxOptionAction template.
|
|
@@ -8603,12 +8641,12 @@ ComboboxOption.className = CLASSNAME$16;
|
|
|
8603
8641
|
/**
|
|
8604
8642
|
* Component display name.
|
|
8605
8643
|
*/
|
|
8606
|
-
const COMPONENT_NAME$
|
|
8644
|
+
const COMPONENT_NAME$17 = 'ComboboxOptionAction';
|
|
8607
8645
|
|
|
8608
8646
|
/**
|
|
8609
8647
|
* Component default class name and class prefix.
|
|
8610
8648
|
*/
|
|
8611
|
-
const CLASSNAME$
|
|
8649
|
+
const CLASSNAME$16 = 'lumx-combobox-option-action';
|
|
8612
8650
|
|
|
8613
8651
|
/**
|
|
8614
8652
|
* ComboboxOptionAction core template.
|
|
@@ -8631,7 +8669,7 @@ const ComboboxOptionAction$1 = props => {
|
|
|
8631
8669
|
as: Element,
|
|
8632
8670
|
...forwardedProps,
|
|
8633
8671
|
role: 'gridcell',
|
|
8634
|
-
className: classnames(className, CLASSNAME$
|
|
8672
|
+
className: classnames(className, CLASSNAME$16),
|
|
8635
8673
|
handleClick,
|
|
8636
8674
|
children
|
|
8637
8675
|
});
|
|
@@ -8681,23 +8719,23 @@ const ComboboxOptionAction = Object.assign(forwardRefPolymorphic((props, ref) =>
|
|
|
8681
8719
|
children
|
|
8682
8720
|
});
|
|
8683
8721
|
}), {
|
|
8684
|
-
displayName: COMPONENT_NAME$
|
|
8685
|
-
className: CLASSNAME$
|
|
8722
|
+
displayName: COMPONENT_NAME$17,
|
|
8723
|
+
className: CLASSNAME$16
|
|
8686
8724
|
});
|
|
8687
8725
|
|
|
8688
8726
|
/**
|
|
8689
8727
|
* Component display name.
|
|
8690
8728
|
*/
|
|
8691
|
-
const COMPONENT_NAME$
|
|
8729
|
+
const COMPONENT_NAME$16 = 'ComboboxOptionMoreInfo';
|
|
8692
8730
|
|
|
8693
8731
|
/**
|
|
8694
8732
|
* Component default class name and class prefix.
|
|
8695
8733
|
*/
|
|
8696
|
-
const CLASSNAME$
|
|
8734
|
+
const CLASSNAME$15 = 'lumx-combobox-option-more-info';
|
|
8697
8735
|
const {
|
|
8698
8736
|
block: block$S,
|
|
8699
8737
|
element: element$H
|
|
8700
|
-
} = bem(CLASSNAME$
|
|
8738
|
+
} = bem(CLASSNAME$15);
|
|
8701
8739
|
|
|
8702
8740
|
/**
|
|
8703
8741
|
* ComboboxOptionMoreInfo core template.
|
|
@@ -8936,16 +8974,16 @@ const POPOVER_ZINDEX = 9999;
|
|
|
8936
8974
|
/**
|
|
8937
8975
|
* Component display name.
|
|
8938
8976
|
*/
|
|
8939
|
-
const COMPONENT_NAME$
|
|
8977
|
+
const COMPONENT_NAME$15 = 'Popover';
|
|
8940
8978
|
|
|
8941
8979
|
/**
|
|
8942
8980
|
* Component default class name and class prefix.
|
|
8943
8981
|
*/
|
|
8944
|
-
const CLASSNAME$
|
|
8982
|
+
const CLASSNAME$14 = 'lumx-popover';
|
|
8945
8983
|
const {
|
|
8946
8984
|
block: block$R,
|
|
8947
8985
|
element: element$G
|
|
8948
|
-
} = bem(CLASSNAME$
|
|
8986
|
+
} = bem(CLASSNAME$14);
|
|
8949
8987
|
|
|
8950
8988
|
/**
|
|
8951
8989
|
* Component default props (used by framework wrappers).
|
|
@@ -9397,7 +9435,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
9397
9435
|
ThemeProvider
|
|
9398
9436
|
});
|
|
9399
9437
|
});
|
|
9400
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
9438
|
+
_InnerPopover.displayName = COMPONENT_NAME$15;
|
|
9401
9439
|
|
|
9402
9440
|
/**
|
|
9403
9441
|
* Popover component.
|
|
@@ -9409,8 +9447,8 @@ _InnerPopover.displayName = COMPONENT_NAME$14;
|
|
|
9409
9447
|
const Popover = skipRender(
|
|
9410
9448
|
// Skip render in SSR
|
|
9411
9449
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
9412
|
-
Popover.displayName = COMPONENT_NAME$
|
|
9413
|
-
Popover.className = CLASSNAME$
|
|
9450
|
+
Popover.displayName = COMPONENT_NAME$15;
|
|
9451
|
+
Popover.className = CLASSNAME$14;
|
|
9414
9452
|
Popover.defaultProps = DEFAULT_PROPS$V;
|
|
9415
9453
|
|
|
9416
9454
|
/**
|
|
@@ -9473,22 +9511,22 @@ const ComboboxOptionMoreInfo = props => {
|
|
|
9473
9511
|
Popover
|
|
9474
9512
|
});
|
|
9475
9513
|
};
|
|
9476
|
-
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$
|
|
9477
|
-
ComboboxOptionMoreInfo.className = CLASSNAME$
|
|
9514
|
+
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$16;
|
|
9515
|
+
ComboboxOptionMoreInfo.className = CLASSNAME$15;
|
|
9478
9516
|
|
|
9479
9517
|
/**
|
|
9480
9518
|
* Component display name.
|
|
9481
9519
|
*/
|
|
9482
|
-
const COMPONENT_NAME$
|
|
9520
|
+
const COMPONENT_NAME$14 = 'SkeletonTypography';
|
|
9483
9521
|
|
|
9484
9522
|
/**
|
|
9485
9523
|
* Component default class name and class prefix.
|
|
9486
9524
|
*/
|
|
9487
|
-
const CLASSNAME$
|
|
9525
|
+
const CLASSNAME$13 = 'lumx-skeleton-typography';
|
|
9488
9526
|
const {
|
|
9489
9527
|
block: block$Q,
|
|
9490
9528
|
element: element$F
|
|
9491
|
-
} = bem(CLASSNAME$
|
|
9529
|
+
} = bem(CLASSNAME$13);
|
|
9492
9530
|
|
|
9493
9531
|
/**
|
|
9494
9532
|
* SkeletonTypography component.
|
|
@@ -9527,12 +9565,12 @@ const SkeletonTypography$1 = props => {
|
|
|
9527
9565
|
/**
|
|
9528
9566
|
* Component display name.
|
|
9529
9567
|
*/
|
|
9530
|
-
const COMPONENT_NAME$
|
|
9568
|
+
const COMPONENT_NAME$13 = 'ComboboxOptionSkeleton';
|
|
9531
9569
|
|
|
9532
9570
|
/**
|
|
9533
9571
|
* Component default class name and class prefix.
|
|
9534
9572
|
*/
|
|
9535
|
-
const CLASSNAME$
|
|
9573
|
+
const CLASSNAME$12 = 'lumx-combobox-option-skeleton';
|
|
9536
9574
|
|
|
9537
9575
|
/**
|
|
9538
9576
|
* ComboboxOptionSkeleton core template.
|
|
@@ -9559,7 +9597,7 @@ const ComboboxOptionSkeleton$1 = props => {
|
|
|
9559
9597
|
size: 'tiny',
|
|
9560
9598
|
role: 'none',
|
|
9561
9599
|
...forwardedProps,
|
|
9562
|
-
className: classnames(className, CLASSNAME$
|
|
9600
|
+
className: classnames(className, CLASSNAME$12),
|
|
9563
9601
|
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
9564
9602
|
children: [/*#__PURE__*/jsx(SkeletonTypography$1, {
|
|
9565
9603
|
typography: "body1",
|
|
@@ -9612,19 +9650,19 @@ const ComboboxOptionSkeleton = props => {
|
|
|
9612
9650
|
...props
|
|
9613
9651
|
});
|
|
9614
9652
|
};
|
|
9615
|
-
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$
|
|
9616
|
-
ComboboxOptionSkeleton.className = CLASSNAME$
|
|
9653
|
+
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$13;
|
|
9654
|
+
ComboboxOptionSkeleton.className = CLASSNAME$12;
|
|
9617
9655
|
|
|
9618
|
-
const COMPONENT_NAME$
|
|
9656
|
+
const COMPONENT_NAME$12 = 'ComboboxPopover';
|
|
9619
9657
|
|
|
9620
9658
|
/**
|
|
9621
9659
|
* Component default class name.
|
|
9622
9660
|
*/
|
|
9623
|
-
const CLASSNAME$
|
|
9661
|
+
const CLASSNAME$11 = 'lumx-combobox-popover';
|
|
9624
9662
|
const {
|
|
9625
9663
|
block: block$P,
|
|
9626
9664
|
element: element$E
|
|
9627
|
-
} = bem(CLASSNAME$
|
|
9665
|
+
} = bem(CLASSNAME$11);
|
|
9628
9666
|
|
|
9629
9667
|
/**
|
|
9630
9668
|
* Defines the props for the core ComboboxPopover template.
|
|
@@ -9687,15 +9725,15 @@ const ComboboxPopover$1 = (props, {
|
|
|
9687
9725
|
/**
|
|
9688
9726
|
* Component display name.
|
|
9689
9727
|
*/
|
|
9690
|
-
const COMPONENT_NAME$
|
|
9728
|
+
const COMPONENT_NAME$11 = 'FlexBox';
|
|
9691
9729
|
|
|
9692
9730
|
/**
|
|
9693
9731
|
* Component default class name and class prefix.
|
|
9694
9732
|
*/
|
|
9695
|
-
const CLASSNAME
|
|
9733
|
+
const CLASSNAME$10 = 'lumx-flex-box';
|
|
9696
9734
|
const {
|
|
9697
9735
|
block: block$O
|
|
9698
|
-
} = bem(CLASSNAME
|
|
9736
|
+
} = bem(CLASSNAME$10);
|
|
9699
9737
|
|
|
9700
9738
|
/**
|
|
9701
9739
|
* Get FlexBox component props (className computation).
|
|
@@ -9751,8 +9789,8 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
9751
9789
|
children: children
|
|
9752
9790
|
});
|
|
9753
9791
|
});
|
|
9754
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
9755
|
-
FlexBox.className = CLASSNAME
|
|
9792
|
+
FlexBox.displayName = COMPONENT_NAME$11;
|
|
9793
|
+
FlexBox.className = CLASSNAME$10;
|
|
9756
9794
|
|
|
9757
9795
|
/**
|
|
9758
9796
|
* Props for Popover that can be passed to Combobox.Popover.
|
|
@@ -9790,8 +9828,8 @@ const ComboboxPopover = props => {
|
|
|
9790
9828
|
FlexBox
|
|
9791
9829
|
});
|
|
9792
9830
|
};
|
|
9793
|
-
ComboboxPopover.displayName = COMPONENT_NAME$
|
|
9794
|
-
ComboboxPopover.className = CLASSNAME$
|
|
9831
|
+
ComboboxPopover.displayName = COMPONENT_NAME$12;
|
|
9832
|
+
ComboboxPopover.className = CLASSNAME$11;
|
|
9795
9833
|
|
|
9796
9834
|
/**
|
|
9797
9835
|
* Combobox.Provider component.
|
|
@@ -9804,7 +9842,8 @@ ComboboxPopover.className = CLASSNAME$10;
|
|
|
9804
9842
|
*/
|
|
9805
9843
|
function ComboboxProvider(props) {
|
|
9806
9844
|
const {
|
|
9807
|
-
children
|
|
9845
|
+
children,
|
|
9846
|
+
onOpen
|
|
9808
9847
|
} = props;
|
|
9809
9848
|
const listboxId = useId();
|
|
9810
9849
|
const anchorRef = useRef(null);
|
|
@@ -9815,6 +9854,16 @@ function ComboboxProvider(props) {
|
|
|
9815
9854
|
listboxId,
|
|
9816
9855
|
anchorRef
|
|
9817
9856
|
}), [handle, listboxId]);
|
|
9857
|
+
|
|
9858
|
+
// Subscribe to the combobox open event and forward to the onOpen callback.
|
|
9859
|
+
const onOpenRef = useRef(onOpen);
|
|
9860
|
+
onOpenRef.current = onOpen;
|
|
9861
|
+
useEffect(() => {
|
|
9862
|
+
if (!handle) return undefined;
|
|
9863
|
+
return handle.subscribe('open', isOpen => {
|
|
9864
|
+
onOpenRef.current?.(isOpen);
|
|
9865
|
+
});
|
|
9866
|
+
}, [handle]);
|
|
9818
9867
|
return /*#__PURE__*/jsx(ComboboxContext.Provider, {
|
|
9819
9868
|
value: contextValue,
|
|
9820
9869
|
children: children
|
|
@@ -9825,12 +9874,12 @@ ComboboxProvider.displayName = 'Combobox.Provider';
|
|
|
9825
9874
|
/**
|
|
9826
9875
|
* Component display name.
|
|
9827
9876
|
*/
|
|
9828
|
-
const COMPONENT_NAME
|
|
9877
|
+
const COMPONENT_NAME$10 = 'ComboboxSection';
|
|
9829
9878
|
|
|
9830
9879
|
/**
|
|
9831
9880
|
* Component default class name and class prefix.
|
|
9832
9881
|
*/
|
|
9833
|
-
const CLASSNAME
|
|
9882
|
+
const CLASSNAME$$ = 'lumx-combobox-section';
|
|
9834
9883
|
|
|
9835
9884
|
/**
|
|
9836
9885
|
* ComboboxSection core template.
|
|
@@ -9857,7 +9906,7 @@ const ComboboxSection$1 = (props, {
|
|
|
9857
9906
|
...forwardedProps,
|
|
9858
9907
|
hidden: hidden,
|
|
9859
9908
|
"aria-hidden": ariaHidden || undefined,
|
|
9860
|
-
className: !hidden ? classnames(className, CLASSNAME
|
|
9909
|
+
className: !hidden ? classnames(className, CLASSNAME$$) : undefined,
|
|
9861
9910
|
role: !ariaHidden ? 'none' : undefined,
|
|
9862
9911
|
itemsWrapperProps: {
|
|
9863
9912
|
role: 'group'
|
|
@@ -9869,16 +9918,16 @@ const ComboboxSection$1 = (props, {
|
|
|
9869
9918
|
/**
|
|
9870
9919
|
* Component display name.
|
|
9871
9920
|
*/
|
|
9872
|
-
const COMPONENT_NAME
|
|
9921
|
+
const COMPONENT_NAME$$ = 'ListSection';
|
|
9873
9922
|
|
|
9874
9923
|
/**
|
|
9875
9924
|
* Component default class name and class prefix.
|
|
9876
9925
|
*/
|
|
9877
|
-
const CLASSNAME$
|
|
9926
|
+
const CLASSNAME$_ = 'lumx-list-section';
|
|
9878
9927
|
const {
|
|
9879
9928
|
block: block$N,
|
|
9880
9929
|
element: element$D
|
|
9881
|
-
} = bem(CLASSNAME$
|
|
9930
|
+
} = bem(CLASSNAME$_);
|
|
9882
9931
|
|
|
9883
9932
|
/**
|
|
9884
9933
|
* Component default props.
|
|
@@ -9925,8 +9974,8 @@ const ListSection$1 = props => {
|
|
|
9925
9974
|
})]
|
|
9926
9975
|
});
|
|
9927
9976
|
};
|
|
9928
|
-
ListSection$1.displayName = COMPONENT_NAME
|
|
9929
|
-
ListSection$1.className = CLASSNAME$
|
|
9977
|
+
ListSection$1.displayName = COMPONENT_NAME$$;
|
|
9978
|
+
ListSection$1.className = CLASSNAME$_;
|
|
9930
9979
|
ListSection$1.defaultProps = DEFAULT_PROPS$U;
|
|
9931
9980
|
|
|
9932
9981
|
/**
|
|
@@ -9949,8 +9998,8 @@ const ListSection = forwardRef((props, ref) => {
|
|
|
9949
9998
|
Text
|
|
9950
9999
|
});
|
|
9951
10000
|
});
|
|
9952
|
-
ListSection.displayName = COMPONENT_NAME
|
|
9953
|
-
ListSection.className = CLASSNAME$
|
|
10001
|
+
ListSection.displayName = COMPONENT_NAME$$;
|
|
10002
|
+
ListSection.className = CLASSNAME$_;
|
|
9954
10003
|
ListSection.defaultProps = DEFAULT_PROPS$U;
|
|
9955
10004
|
|
|
9956
10005
|
/**
|
|
@@ -9999,21 +10048,21 @@ const ComboboxSection = forwardRef((props, ref) => {
|
|
|
9999
10048
|
ListSection
|
|
10000
10049
|
});
|
|
10001
10050
|
});
|
|
10002
|
-
ComboboxSection.displayName = COMPONENT_NAME
|
|
10003
|
-
ComboboxSection.className = CLASSNAME
|
|
10051
|
+
ComboboxSection.displayName = COMPONENT_NAME$10;
|
|
10052
|
+
ComboboxSection.className = CLASSNAME$$;
|
|
10004
10053
|
|
|
10005
10054
|
/**
|
|
10006
10055
|
* Component display name.
|
|
10007
10056
|
*/
|
|
10008
|
-
const COMPONENT_NAME$
|
|
10057
|
+
const COMPONENT_NAME$_ = 'ComboboxState';
|
|
10009
10058
|
|
|
10010
10059
|
/**
|
|
10011
10060
|
* Component default class name and class prefix.
|
|
10012
10061
|
*/
|
|
10013
|
-
const CLASSNAME$
|
|
10062
|
+
const CLASSNAME$Z = 'lumx-combobox-state';
|
|
10014
10063
|
const {
|
|
10015
10064
|
block: block$M
|
|
10016
|
-
} = bem(CLASSNAME$
|
|
10065
|
+
} = bem(CLASSNAME$Z);
|
|
10017
10066
|
|
|
10018
10067
|
/**
|
|
10019
10068
|
* Defines the props for the core ComboboxState template.
|
|
@@ -10025,12 +10074,13 @@ const {
|
|
|
10025
10074
|
|
|
10026
10075
|
/**
|
|
10027
10076
|
* ComboboxState core template.
|
|
10028
|
-
* Renders empty/error state messages inside the combobox popover.
|
|
10077
|
+
* Renders empty/error/option-count state messages inside the combobox popover.
|
|
10029
10078
|
* The block itself acts as a screen reader live region (`role="status" aria-live="polite"`).
|
|
10030
10079
|
*
|
|
10031
10080
|
* Activation rules:
|
|
10032
10081
|
* - Error state: active when `errorMessage` is provided (presence-based).
|
|
10033
|
-
* - Empty state: active when `
|
|
10082
|
+
* - Empty state: active when `optionsLength` is 0 and `emptyMessage` is provided, and there is no error.
|
|
10083
|
+
* - Option count: active when `nbOptionMessage` is provided, the list is not empty, not loading, and not in error.
|
|
10034
10084
|
*
|
|
10035
10085
|
* @param props Component props.
|
|
10036
10086
|
* @param components Injected framework-specific components.
|
|
@@ -10042,20 +10092,25 @@ const ComboboxState$1 = (props, {
|
|
|
10042
10092
|
}) => {
|
|
10043
10093
|
const {
|
|
10044
10094
|
emptyMessage,
|
|
10095
|
+
nbOptionMessage,
|
|
10045
10096
|
errorMessage,
|
|
10046
10097
|
errorTryReloadMessage,
|
|
10047
10098
|
loadingMessage,
|
|
10048
10099
|
state
|
|
10049
10100
|
} = props;
|
|
10050
10101
|
const isOpen = state?.isOpen ?? true;
|
|
10102
|
+
const optionsLength = state?.optionsLength ?? 0;
|
|
10103
|
+
const isEmpty = optionsLength === 0;
|
|
10051
10104
|
const showError = !!errorMessage;
|
|
10052
10105
|
const resolvedEmptyMessage = typeof emptyMessage === 'function' ? emptyMessage(state?.inputValue || '') : emptyMessage;
|
|
10053
10106
|
// Suppress empty while loading (immediate flag prevents false "no results" before data arrives)
|
|
10054
|
-
const showEmpty =
|
|
10107
|
+
const showEmpty = isEmpty && !showError && !state?.isLoading && !!resolvedEmptyMessage;
|
|
10055
10108
|
// Show loading message when provided and not in error state.
|
|
10056
10109
|
// The framework wrapper gates `loadingMessage` via the debounced `loadingAnnouncement` event,
|
|
10057
10110
|
// passing `undefined` until the 500ms threshold is reached.
|
|
10058
10111
|
const showLoading = !showError && !!loadingMessage;
|
|
10112
|
+
// Show option count message when the list is open, not empty, not loading, and not in error.
|
|
10113
|
+
const resolvedNbOptionMessage = !isEmpty && !showError && !state?.isLoading && nbOptionMessage ? nbOptionMessage(optionsLength) : undefined;
|
|
10059
10114
|
const show = showEmpty || showError;
|
|
10060
10115
|
const alignProps = {
|
|
10061
10116
|
hAlign: 'center',
|
|
@@ -10084,6 +10139,11 @@ const ComboboxState$1 = (props, {
|
|
|
10084
10139
|
typography: "body1",
|
|
10085
10140
|
color: "dark-L2",
|
|
10086
10141
|
children: loadingMessage
|
|
10142
|
+
}), renderContent && !!resolvedNbOptionMessage && /*#__PURE__*/jsx(Text, {
|
|
10143
|
+
as: "p",
|
|
10144
|
+
typography: "body1",
|
|
10145
|
+
color: "dark-L2",
|
|
10146
|
+
children: resolvedNbOptionMessage
|
|
10087
10147
|
}), renderContent && !!errorMessage && /*#__PURE__*/jsxs(Fragment, {
|
|
10088
10148
|
children: [/*#__PURE__*/jsx(Text, {
|
|
10089
10149
|
as: "p",
|
|
@@ -10175,16 +10235,16 @@ function partitionMulti(elements, predicates) {
|
|
|
10175
10235
|
/**
|
|
10176
10236
|
* Component display name.
|
|
10177
10237
|
*/
|
|
10178
|
-
const COMPONENT_NAME$
|
|
10238
|
+
const COMPONENT_NAME$Z = 'GenericBlock';
|
|
10179
10239
|
|
|
10180
10240
|
/**
|
|
10181
10241
|
* Component default class name and class prefix.
|
|
10182
10242
|
*/
|
|
10183
|
-
const CLASSNAME$
|
|
10243
|
+
const CLASSNAME$Y = 'lumx-generic-block';
|
|
10184
10244
|
const {
|
|
10185
10245
|
block: block$L,
|
|
10186
10246
|
element: element$C
|
|
10187
|
-
} = bem(CLASSNAME$
|
|
10247
|
+
} = bem(CLASSNAME$Y);
|
|
10188
10248
|
|
|
10189
10249
|
/**
|
|
10190
10250
|
* Component default props.
|
|
@@ -10326,8 +10386,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
10326
10386
|
}) : undefined
|
|
10327
10387
|
});
|
|
10328
10388
|
});
|
|
10329
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
10330
|
-
BaseGenericBlock.className = CLASSNAME$
|
|
10389
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$Z;
|
|
10390
|
+
BaseGenericBlock.className = CLASSNAME$Y;
|
|
10331
10391
|
BaseGenericBlock.defaultProps = DEFAULT_PROPS$T;
|
|
10332
10392
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
10333
10393
|
Figure,
|
|
@@ -10367,6 +10427,8 @@ const GenericBlockGapSize = pick(Size, ['tiny', 'regular', 'medium', 'big', 'hug
|
|
|
10367
10427
|
* mounted for at least 500ms. Suppresses the empty state while loading.
|
|
10368
10428
|
* - **Empty state**: active when `emptyMessage` is provided and the list has no visible options
|
|
10369
10429
|
* and is not loading.
|
|
10430
|
+
* - **Option count**: active when `nbOptionMessage` is provided and the list is not empty,
|
|
10431
|
+
* not loading, and not in error.
|
|
10370
10432
|
*
|
|
10371
10433
|
* @param props Component props.
|
|
10372
10434
|
* @return React element.
|
|
@@ -10375,7 +10437,7 @@ const ComboboxState = props => {
|
|
|
10375
10437
|
const {
|
|
10376
10438
|
handle
|
|
10377
10439
|
} = useComboboxContext();
|
|
10378
|
-
const
|
|
10440
|
+
const optionsState = useComboboxEvent('optionsChange', undefined);
|
|
10379
10441
|
const [isLoading, setIsLoading] = useState(false);
|
|
10380
10442
|
const [shouldAnnounce, setShouldAnnounce] = useState(false);
|
|
10381
10443
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -10388,7 +10450,7 @@ const ComboboxState = props => {
|
|
|
10388
10450
|
});
|
|
10389
10451
|
}, [handle]);
|
|
10390
10452
|
const state = {
|
|
10391
|
-
...
|
|
10453
|
+
...optionsState,
|
|
10392
10454
|
isLoading,
|
|
10393
10455
|
isOpen
|
|
10394
10456
|
};
|
|
@@ -10404,18 +10466,18 @@ const ComboboxState = props => {
|
|
|
10404
10466
|
Text
|
|
10405
10467
|
});
|
|
10406
10468
|
};
|
|
10407
|
-
ComboboxState.displayName = COMPONENT_NAME$
|
|
10408
|
-
ComboboxState.className = CLASSNAME$
|
|
10469
|
+
ComboboxState.displayName = COMPONENT_NAME$_;
|
|
10470
|
+
ComboboxState.className = CLASSNAME$Z;
|
|
10409
10471
|
|
|
10410
10472
|
/**
|
|
10411
10473
|
* Component display name.
|
|
10412
10474
|
*/
|
|
10413
|
-
const COMPONENT_NAME$
|
|
10475
|
+
const COMPONENT_NAME$Y = 'ListDivider';
|
|
10414
10476
|
|
|
10415
10477
|
/**
|
|
10416
10478
|
* Component default class name and class prefix.
|
|
10417
10479
|
*/
|
|
10418
|
-
const CLASSNAME$
|
|
10480
|
+
const CLASSNAME$X = 'lumx-list-divider';
|
|
10419
10481
|
|
|
10420
10482
|
/**
|
|
10421
10483
|
* Component default props.
|
|
@@ -10439,11 +10501,11 @@ const ListDivider$1 = props => {
|
|
|
10439
10501
|
ref: ref,
|
|
10440
10502
|
role: "none",
|
|
10441
10503
|
...forwardedProps,
|
|
10442
|
-
className: classnames(className, CLASSNAME$
|
|
10504
|
+
className: classnames(className, CLASSNAME$X)
|
|
10443
10505
|
});
|
|
10444
10506
|
};
|
|
10445
|
-
ListDivider$1.displayName = COMPONENT_NAME$
|
|
10446
|
-
ListDivider$1.className = CLASSNAME$
|
|
10507
|
+
ListDivider$1.displayName = COMPONENT_NAME$Y;
|
|
10508
|
+
ListDivider$1.className = CLASSNAME$X;
|
|
10447
10509
|
ListDivider$1.defaultProps = DEFAULT_PROPS$S;
|
|
10448
10510
|
|
|
10449
10511
|
/**
|
|
@@ -10464,8 +10526,8 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
10464
10526
|
ref
|
|
10465
10527
|
});
|
|
10466
10528
|
});
|
|
10467
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
10468
|
-
ListDivider.className = CLASSNAME$
|
|
10529
|
+
ListDivider.displayName = COMPONENT_NAME$Y;
|
|
10530
|
+
ListDivider.className = CLASSNAME$X;
|
|
10469
10531
|
ListDivider.defaultProps = DEFAULT_PROPS$S;
|
|
10470
10532
|
|
|
10471
10533
|
/**
|
|
@@ -10515,16 +10577,16 @@ const CommentBlockVariant = {
|
|
|
10515
10577
|
/**
|
|
10516
10578
|
* Component display name.
|
|
10517
10579
|
*/
|
|
10518
|
-
const COMPONENT_NAME$
|
|
10580
|
+
const COMPONENT_NAME$X = 'CommentBlock';
|
|
10519
10581
|
|
|
10520
10582
|
/**
|
|
10521
10583
|
* Component default class name and class prefix.
|
|
10522
10584
|
*/
|
|
10523
|
-
const CLASSNAME$
|
|
10585
|
+
const CLASSNAME$W = 'lumx-comment-block';
|
|
10524
10586
|
const {
|
|
10525
10587
|
block: block$K,
|
|
10526
10588
|
element: element$B
|
|
10527
|
-
} = classNames.bem(CLASSNAME$
|
|
10589
|
+
} = classNames.bem(CLASSNAME$W);
|
|
10528
10590
|
|
|
10529
10591
|
/**
|
|
10530
10592
|
* Component default props.
|
|
@@ -10626,8 +10688,8 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10626
10688
|
})]
|
|
10627
10689
|
});
|
|
10628
10690
|
});
|
|
10629
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
10630
|
-
CommentBlock.className = CLASSNAME$
|
|
10691
|
+
CommentBlock.displayName = COMPONENT_NAME$X;
|
|
10692
|
+
CommentBlock.className = CLASSNAME$W;
|
|
10631
10693
|
CommentBlock.defaultProps = DEFAULT_PROPS$R;
|
|
10632
10694
|
|
|
10633
10695
|
/**
|
|
@@ -10648,12 +10710,12 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
10648
10710
|
/**
|
|
10649
10711
|
* Component display name.
|
|
10650
10712
|
*/
|
|
10651
|
-
const COMPONENT_NAME$
|
|
10713
|
+
const COMPONENT_NAME$W = 'DatePicker';
|
|
10652
10714
|
|
|
10653
10715
|
/**
|
|
10654
10716
|
* Component default class name and class prefix.
|
|
10655
10717
|
*/
|
|
10656
|
-
const CLASSNAME$
|
|
10718
|
+
const CLASSNAME$V = 'lumx-date-picker';
|
|
10657
10719
|
|
|
10658
10720
|
/** Get first day of week for locale from the browser API */
|
|
10659
10721
|
const getFromBrowser = locale => {
|
|
@@ -10873,7 +10935,7 @@ function formatDayNumber(locale, date) {
|
|
|
10873
10935
|
|
|
10874
10936
|
const {
|
|
10875
10937
|
element: element$A
|
|
10876
|
-
} = classNames.bem(CLASSNAME$
|
|
10938
|
+
} = classNames.bem(CLASSNAME$V);
|
|
10877
10939
|
|
|
10878
10940
|
/**
|
|
10879
10941
|
* Defines the props of the component.
|
|
@@ -10882,7 +10944,7 @@ const {
|
|
|
10882
10944
|
/**
|
|
10883
10945
|
* Component display name.
|
|
10884
10946
|
*/
|
|
10885
|
-
const COMPONENT_NAME$
|
|
10947
|
+
const COMPONENT_NAME$V = 'DatePickerControlled';
|
|
10886
10948
|
|
|
10887
10949
|
/**
|
|
10888
10950
|
* DatePickerControlled component.
|
|
@@ -10967,7 +11029,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
10967
11029
|
const yearLabel = getYearDisplayName(locale);
|
|
10968
11030
|
return /*#__PURE__*/jsxs("div", {
|
|
10969
11031
|
ref: ref,
|
|
10970
|
-
className: `${CLASSNAME$
|
|
11032
|
+
className: `${CLASSNAME$V}`,
|
|
10971
11033
|
style: style,
|
|
10972
11034
|
children: [/*#__PURE__*/jsx(Toolbar, {
|
|
10973
11035
|
className: element$A('toolbar'),
|
|
@@ -11072,8 +11134,8 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11072
11134
|
})]
|
|
11073
11135
|
});
|
|
11074
11136
|
});
|
|
11075
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
11076
|
-
DatePickerControlled.className = CLASSNAME$
|
|
11137
|
+
DatePickerControlled.displayName = COMPONENT_NAME$V;
|
|
11138
|
+
DatePickerControlled.className = CLASSNAME$V;
|
|
11077
11139
|
|
|
11078
11140
|
/**
|
|
11079
11141
|
* DatePicker component.
|
|
@@ -11115,8 +11177,8 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
11115
11177
|
onMonthChange: setSelectedMonth
|
|
11116
11178
|
});
|
|
11117
11179
|
});
|
|
11118
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
11119
|
-
DatePicker.className = CLASSNAME$
|
|
11180
|
+
DatePicker.displayName = COMPONENT_NAME$W;
|
|
11181
|
+
DatePicker.className = CLASSNAME$V;
|
|
11120
11182
|
|
|
11121
11183
|
const useBooleanState = defaultValue => {
|
|
11122
11184
|
const [booleanValue, setBoolean] = useState(defaultValue);
|
|
@@ -11129,7 +11191,7 @@ const useBooleanState = defaultValue => {
|
|
|
11129
11191
|
/**
|
|
11130
11192
|
* Component display name.
|
|
11131
11193
|
*/
|
|
11132
|
-
const COMPONENT_NAME$
|
|
11194
|
+
const COMPONENT_NAME$U = 'DatePickerField';
|
|
11133
11195
|
|
|
11134
11196
|
/**
|
|
11135
11197
|
* DatePickerField component.
|
|
@@ -11218,7 +11280,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
11218
11280
|
}) : null]
|
|
11219
11281
|
});
|
|
11220
11282
|
});
|
|
11221
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
11283
|
+
DatePickerField.displayName = COMPONENT_NAME$U;
|
|
11222
11284
|
|
|
11223
11285
|
/**
|
|
11224
11286
|
* Convenient hook to create interaction observers.
|
|
@@ -11514,16 +11576,16 @@ const useTransitionVisibility = (ref, isComponentVisible, timeout, onVisibilityC
|
|
|
11514
11576
|
/**
|
|
11515
11577
|
* Component display name.
|
|
11516
11578
|
*/
|
|
11517
|
-
const COMPONENT_NAME$
|
|
11579
|
+
const COMPONENT_NAME$T = 'Dialog';
|
|
11518
11580
|
|
|
11519
11581
|
/**
|
|
11520
11582
|
* Component default class name and class prefix.
|
|
11521
11583
|
*/
|
|
11522
|
-
const CLASSNAME$
|
|
11584
|
+
const CLASSNAME$U = 'lumx-dialog';
|
|
11523
11585
|
const {
|
|
11524
11586
|
block: block$J,
|
|
11525
11587
|
element: element$z
|
|
11526
|
-
} = bem(CLASSNAME$
|
|
11588
|
+
} = bem(CLASSNAME$U);
|
|
11527
11589
|
|
|
11528
11590
|
/**
|
|
11529
11591
|
* Component default props.
|
|
@@ -11796,22 +11858,22 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
11796
11858
|
...forwardedProps
|
|
11797
11859
|
}) : null;
|
|
11798
11860
|
});
|
|
11799
|
-
Dialog.displayName = COMPONENT_NAME$
|
|
11800
|
-
Dialog.className = CLASSNAME$
|
|
11861
|
+
Dialog.displayName = COMPONENT_NAME$T;
|
|
11862
|
+
Dialog.className = CLASSNAME$U;
|
|
11801
11863
|
Dialog.defaultProps = DEFAULT_PROPS$P;
|
|
11802
11864
|
|
|
11803
11865
|
/**
|
|
11804
11866
|
* Component display name.
|
|
11805
11867
|
*/
|
|
11806
|
-
const COMPONENT_NAME$
|
|
11868
|
+
const COMPONENT_NAME$S = 'Divider';
|
|
11807
11869
|
|
|
11808
11870
|
/**
|
|
11809
11871
|
* Component default class name and class prefix.
|
|
11810
11872
|
*/
|
|
11811
|
-
const CLASSNAME$
|
|
11873
|
+
const CLASSNAME$T = 'lumx-divider';
|
|
11812
11874
|
const {
|
|
11813
11875
|
block: block$I
|
|
11814
|
-
} = bem(CLASSNAME$
|
|
11876
|
+
} = bem(CLASSNAME$T);
|
|
11815
11877
|
|
|
11816
11878
|
/**
|
|
11817
11879
|
* Divider component.
|
|
@@ -11863,22 +11925,22 @@ const Divider = forwardRef((props, ref) => {
|
|
|
11863
11925
|
...otherProps
|
|
11864
11926
|
});
|
|
11865
11927
|
});
|
|
11866
|
-
Divider.displayName = COMPONENT_NAME$
|
|
11867
|
-
Divider.className = CLASSNAME$
|
|
11928
|
+
Divider.displayName = COMPONENT_NAME$S;
|
|
11929
|
+
Divider.className = CLASSNAME$T;
|
|
11868
11930
|
Divider.defaultProps = DEFAULT_PROPS$O;
|
|
11869
11931
|
|
|
11870
11932
|
/**
|
|
11871
11933
|
* Component display name.
|
|
11872
11934
|
*/
|
|
11873
|
-
const COMPONENT_NAME$
|
|
11935
|
+
const COMPONENT_NAME$R = 'DragHandle';
|
|
11874
11936
|
|
|
11875
11937
|
/**
|
|
11876
11938
|
* Component default class name and class prefix.
|
|
11877
11939
|
*/
|
|
11878
|
-
const CLASSNAME$
|
|
11940
|
+
const CLASSNAME$S = 'lumx-drag-handle';
|
|
11879
11941
|
const {
|
|
11880
11942
|
block: block$H
|
|
11881
|
-
} = bem(CLASSNAME$
|
|
11943
|
+
} = bem(CLASSNAME$S);
|
|
11882
11944
|
|
|
11883
11945
|
/**
|
|
11884
11946
|
* DragHandle component.
|
|
@@ -11935,8 +11997,8 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
11935
11997
|
...otherProps
|
|
11936
11998
|
});
|
|
11937
11999
|
});
|
|
11938
|
-
DragHandle.displayName = COMPONENT_NAME$
|
|
11939
|
-
DragHandle.className = CLASSNAME$
|
|
12000
|
+
DragHandle.displayName = COMPONENT_NAME$R;
|
|
12001
|
+
DragHandle.className = CLASSNAME$S;
|
|
11940
12002
|
DragHandle.defaultProps = DEFAULT_PROPS$N;
|
|
11941
12003
|
|
|
11942
12004
|
const INITIAL_INDEX = -1;
|
|
@@ -12131,8 +12193,8 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
12131
12193
|
itemPadding: adjustedItemPadding
|
|
12132
12194
|
});
|
|
12133
12195
|
});
|
|
12134
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
12135
|
-
InternalList.className = CLASSNAME$
|
|
12196
|
+
InternalList.displayName = COMPONENT_NAME$1c;
|
|
12197
|
+
InternalList.className = CLASSNAME$1b;
|
|
12136
12198
|
InternalList.defaultProps = DEFAULT_PROPS$Y;
|
|
12137
12199
|
const List = Object.assign(InternalList, {
|
|
12138
12200
|
useKeyboardListNavigation
|
|
@@ -12182,16 +12244,16 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
|
|
|
12182
12244
|
/**
|
|
12183
12245
|
* Component display name.
|
|
12184
12246
|
*/
|
|
12185
|
-
const COMPONENT_NAME$
|
|
12247
|
+
const COMPONENT_NAME$Q = 'Dropdown';
|
|
12186
12248
|
|
|
12187
12249
|
/**
|
|
12188
12250
|
* Component default class name and class prefix.
|
|
12189
12251
|
*/
|
|
12190
|
-
const CLASSNAME$
|
|
12252
|
+
const CLASSNAME$R = 'lumx-dropdown';
|
|
12191
12253
|
const {
|
|
12192
12254
|
block: block$G,
|
|
12193
12255
|
element: element$y
|
|
12194
|
-
} = classNames.bem(CLASSNAME$
|
|
12256
|
+
} = classNames.bem(CLASSNAME$R);
|
|
12195
12257
|
|
|
12196
12258
|
/**
|
|
12197
12259
|
* Component default props.
|
|
@@ -12274,23 +12336,23 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12274
12336
|
})
|
|
12275
12337
|
}) : null;
|
|
12276
12338
|
});
|
|
12277
|
-
Dropdown.displayName = COMPONENT_NAME$
|
|
12278
|
-
Dropdown.className = CLASSNAME$
|
|
12339
|
+
Dropdown.displayName = COMPONENT_NAME$Q;
|
|
12340
|
+
Dropdown.className = CLASSNAME$R;
|
|
12279
12341
|
Dropdown.defaultProps = DEFAULT_PROPS$M;
|
|
12280
12342
|
|
|
12281
12343
|
/**
|
|
12282
12344
|
* Component display name.
|
|
12283
12345
|
*/
|
|
12284
|
-
const COMPONENT_NAME$
|
|
12346
|
+
const COMPONENT_NAME$P = 'ExpansionPanel';
|
|
12285
12347
|
|
|
12286
12348
|
/**
|
|
12287
12349
|
* Component default class name and class prefix.
|
|
12288
12350
|
*/
|
|
12289
|
-
const CLASSNAME$
|
|
12351
|
+
const CLASSNAME$Q = 'lumx-expansion-panel';
|
|
12290
12352
|
const {
|
|
12291
12353
|
block: block$F,
|
|
12292
12354
|
element: element$x
|
|
12293
|
-
} = bem(CLASSNAME$
|
|
12355
|
+
} = bem(CLASSNAME$Q);
|
|
12294
12356
|
|
|
12295
12357
|
/**
|
|
12296
12358
|
* Component default props.
|
|
@@ -12479,17 +12541,17 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
12479
12541
|
...forwardedProps
|
|
12480
12542
|
});
|
|
12481
12543
|
});
|
|
12482
|
-
ExpansionPanel.displayName = COMPONENT_NAME$
|
|
12483
|
-
ExpansionPanel.className = CLASSNAME$
|
|
12544
|
+
ExpansionPanel.displayName = COMPONENT_NAME$P;
|
|
12545
|
+
ExpansionPanel.className = CLASSNAME$Q;
|
|
12484
12546
|
ExpansionPanel.defaultProps = DEFAULT_PROPS$L;
|
|
12485
12547
|
|
|
12486
|
-
const COMPONENT_NAME$
|
|
12487
|
-
const CLASSNAME$
|
|
12548
|
+
const COMPONENT_NAME$O = 'Flag';
|
|
12549
|
+
const CLASSNAME$P = 'lumx-flag';
|
|
12488
12550
|
const DEFAULT_PROPS$K = {};
|
|
12489
12551
|
const {
|
|
12490
12552
|
block: block$E,
|
|
12491
12553
|
element: element$w
|
|
12492
|
-
} = bem(CLASSNAME$
|
|
12554
|
+
} = bem(CLASSNAME$P);
|
|
12493
12555
|
|
|
12494
12556
|
/**
|
|
12495
12557
|
* Flag component.
|
|
@@ -12547,8 +12609,8 @@ const Flag = forwardRef((props, ref) => {
|
|
|
12547
12609
|
Text
|
|
12548
12610
|
});
|
|
12549
12611
|
});
|
|
12550
|
-
Flag.displayName = COMPONENT_NAME$
|
|
12551
|
-
Flag.className = CLASSNAME$
|
|
12612
|
+
Flag.displayName = COMPONENT_NAME$O;
|
|
12613
|
+
Flag.className = CLASSNAME$P;
|
|
12552
12614
|
Flag.defaultProps = DEFAULT_PROPS$K;
|
|
12553
12615
|
|
|
12554
12616
|
/** The maximum authorized heading level. */
|
|
@@ -12577,12 +12639,12 @@ const defaultContext = {
|
|
|
12577
12639
|
/**
|
|
12578
12640
|
* Component display name.
|
|
12579
12641
|
*/
|
|
12580
|
-
const COMPONENT_NAME$
|
|
12642
|
+
const COMPONENT_NAME$N = 'Heading';
|
|
12581
12643
|
|
|
12582
12644
|
/**
|
|
12583
12645
|
* Component default class name and class prefix.
|
|
12584
12646
|
*/
|
|
12585
|
-
const CLASSNAME$
|
|
12647
|
+
const CLASSNAME$O = 'lumx-heading';
|
|
12586
12648
|
|
|
12587
12649
|
/**
|
|
12588
12650
|
* Component default props.
|
|
@@ -12607,7 +12669,7 @@ const getHeadingProps = (props, contextHeadingElement) => {
|
|
|
12607
12669
|
return {
|
|
12608
12670
|
...otherProps,
|
|
12609
12671
|
as: computedHeadingElement,
|
|
12610
|
-
className: classnames(className, CLASSNAME$
|
|
12672
|
+
className: classnames(className, CLASSNAME$O),
|
|
12611
12673
|
typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
|
|
12612
12674
|
};
|
|
12613
12675
|
};
|
|
@@ -12645,8 +12707,8 @@ const Heading = forwardRef((props, ref) => {
|
|
|
12645
12707
|
children: children
|
|
12646
12708
|
});
|
|
12647
12709
|
});
|
|
12648
|
-
Heading.displayName = COMPONENT_NAME$
|
|
12649
|
-
Heading.className = CLASSNAME$
|
|
12710
|
+
Heading.displayName = COMPONENT_NAME$N;
|
|
12711
|
+
Heading.className = CLASSNAME$O;
|
|
12650
12712
|
Heading.defaultProps = DEFAULT_PROPS$J;
|
|
12651
12713
|
|
|
12652
12714
|
/**
|
|
@@ -12685,15 +12747,15 @@ const HeadingLevelProvider = ({
|
|
|
12685
12747
|
/**
|
|
12686
12748
|
* Component display name.
|
|
12687
12749
|
*/
|
|
12688
|
-
const COMPONENT_NAME$
|
|
12750
|
+
const COMPONENT_NAME$M = 'Grid';
|
|
12689
12751
|
|
|
12690
12752
|
/**
|
|
12691
12753
|
* Component default class name and class prefix.
|
|
12692
12754
|
*/
|
|
12693
|
-
const CLASSNAME$
|
|
12755
|
+
const CLASSNAME$N = 'lumx-grid';
|
|
12694
12756
|
const {
|
|
12695
12757
|
block: block$D
|
|
12696
|
-
} = classNames.bem(CLASSNAME$
|
|
12758
|
+
} = classNames.bem(CLASSNAME$N);
|
|
12697
12759
|
|
|
12698
12760
|
/**
|
|
12699
12761
|
* Component default props.
|
|
@@ -12724,7 +12786,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
12724
12786
|
return /*#__PURE__*/jsx("div", {
|
|
12725
12787
|
ref: ref,
|
|
12726
12788
|
...forwardedProps,
|
|
12727
|
-
className: classNames.join(className, classNames.bem(`${CLASSNAME$
|
|
12789
|
+
className: classNames.join(className, classNames.bem(`${CLASSNAME$N}-container`).block(), block$D({
|
|
12728
12790
|
[`h-align-${hAlign}`]: Boolean(hAlign),
|
|
12729
12791
|
[`v-align-${vAlign}`]: Boolean(vAlign),
|
|
12730
12792
|
[`orientation-${orientation}`]: Boolean(orientation),
|
|
@@ -12734,22 +12796,22 @@ const Grid = forwardRef((props, ref) => {
|
|
|
12734
12796
|
children: children
|
|
12735
12797
|
});
|
|
12736
12798
|
});
|
|
12737
|
-
Grid.displayName = COMPONENT_NAME$
|
|
12738
|
-
Grid.className = CLASSNAME$
|
|
12799
|
+
Grid.displayName = COMPONENT_NAME$M;
|
|
12800
|
+
Grid.className = CLASSNAME$N;
|
|
12739
12801
|
Grid.defaultProps = DEFAULT_PROPS$I;
|
|
12740
12802
|
|
|
12741
12803
|
/**
|
|
12742
12804
|
* Component display name.
|
|
12743
12805
|
*/
|
|
12744
|
-
const COMPONENT_NAME$
|
|
12806
|
+
const COMPONENT_NAME$L = 'GridItem';
|
|
12745
12807
|
|
|
12746
12808
|
/**
|
|
12747
12809
|
* Component default class name and class prefix.
|
|
12748
12810
|
*/
|
|
12749
|
-
const CLASSNAME$
|
|
12811
|
+
const CLASSNAME$M = 'lumx-grid-item';
|
|
12750
12812
|
const {
|
|
12751
12813
|
block: block$C
|
|
12752
|
-
} = classNames.bem(CLASSNAME$
|
|
12814
|
+
} = classNames.bem(CLASSNAME$M);
|
|
12753
12815
|
|
|
12754
12816
|
/**
|
|
12755
12817
|
* GridItem component.
|
|
@@ -12778,18 +12840,18 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
12778
12840
|
children: children
|
|
12779
12841
|
});
|
|
12780
12842
|
});
|
|
12781
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
12782
|
-
GridItem.className = CLASSNAME$
|
|
12843
|
+
GridItem.displayName = COMPONENT_NAME$L;
|
|
12844
|
+
GridItem.className = CLASSNAME$M;
|
|
12783
12845
|
|
|
12784
12846
|
/**
|
|
12785
12847
|
* Component display name.
|
|
12786
12848
|
*/
|
|
12787
|
-
const COMPONENT_NAME$
|
|
12849
|
+
const COMPONENT_NAME$K = 'GridColumn';
|
|
12788
12850
|
|
|
12789
12851
|
/**
|
|
12790
12852
|
* Component default class name and class prefix.
|
|
12791
12853
|
*/
|
|
12792
|
-
const CLASSNAME$
|
|
12854
|
+
const CLASSNAME$L = 'lumx-grid-column';
|
|
12793
12855
|
|
|
12794
12856
|
/**
|
|
12795
12857
|
* Component default props.
|
|
@@ -12819,7 +12881,7 @@ const GridColumn$1 = props => {
|
|
|
12819
12881
|
return /*#__PURE__*/jsx(Component, {
|
|
12820
12882
|
...forwardedProps,
|
|
12821
12883
|
ref: ref,
|
|
12822
|
-
className: classnames(className, CLASSNAME$
|
|
12884
|
+
className: classnames(className, CLASSNAME$L),
|
|
12823
12885
|
style: {
|
|
12824
12886
|
...style,
|
|
12825
12887
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -12829,8 +12891,8 @@ const GridColumn$1 = props => {
|
|
|
12829
12891
|
children: children
|
|
12830
12892
|
});
|
|
12831
12893
|
};
|
|
12832
|
-
GridColumn$1.displayName = COMPONENT_NAME$
|
|
12833
|
-
GridColumn$1.className = CLASSNAME$
|
|
12894
|
+
GridColumn$1.displayName = COMPONENT_NAME$K;
|
|
12895
|
+
GridColumn$1.className = CLASSNAME$L;
|
|
12834
12896
|
GridColumn$1.defaultProps = DEFAULT_PROPS$H;
|
|
12835
12897
|
|
|
12836
12898
|
/**
|
|
@@ -12859,8 +12921,8 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
12859
12921
|
...props
|
|
12860
12922
|
});
|
|
12861
12923
|
});
|
|
12862
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
12863
|
-
GridColumn.className = CLASSNAME$
|
|
12924
|
+
GridColumn.displayName = COMPONENT_NAME$K;
|
|
12925
|
+
GridColumn.className = CLASSNAME$L;
|
|
12864
12926
|
GridColumn.defaultProps = DEFAULT_PROPS$G;
|
|
12865
12927
|
|
|
12866
12928
|
/**
|
|
@@ -12882,16 +12944,16 @@ const ImageBlockCaptionPosition = {
|
|
|
12882
12944
|
/**
|
|
12883
12945
|
* Component display name.
|
|
12884
12946
|
*/
|
|
12885
|
-
const COMPONENT_NAME$
|
|
12947
|
+
const COMPONENT_NAME$J = 'ImageBlock';
|
|
12886
12948
|
|
|
12887
12949
|
/**
|
|
12888
12950
|
* Component default class name and class prefix.
|
|
12889
12951
|
*/
|
|
12890
|
-
const CLASSNAME$
|
|
12952
|
+
const CLASSNAME$K = 'lumx-image-block';
|
|
12891
12953
|
const {
|
|
12892
12954
|
block: block$B,
|
|
12893
12955
|
element: element$v
|
|
12894
|
-
} = bem(CLASSNAME$
|
|
12956
|
+
} = bem(CLASSNAME$K);
|
|
12895
12957
|
|
|
12896
12958
|
/**
|
|
12897
12959
|
* Component default props.
|
|
@@ -12952,7 +13014,7 @@ const ImageBlock$1 = props => {
|
|
|
12952
13014
|
alt: alt || title
|
|
12953
13015
|
}), /*#__PURE__*/jsx(ImageCaption, {
|
|
12954
13016
|
as: "figcaption",
|
|
12955
|
-
baseClassName: CLASSNAME$
|
|
13017
|
+
baseClassName: CLASSNAME$K,
|
|
12956
13018
|
theme: theme,
|
|
12957
13019
|
title: title,
|
|
12958
13020
|
titleProps: titleProps,
|
|
@@ -13083,19 +13145,19 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
13083
13145
|
ImageCaption
|
|
13084
13146
|
});
|
|
13085
13147
|
});
|
|
13086
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
13087
|
-
ImageBlock.className = CLASSNAME$
|
|
13148
|
+
ImageBlock.displayName = COMPONENT_NAME$J;
|
|
13149
|
+
ImageBlock.className = CLASSNAME$K;
|
|
13088
13150
|
ImageBlock.defaultProps = DEFAULT_PROPS$F;
|
|
13089
13151
|
|
|
13090
13152
|
/**
|
|
13091
13153
|
* Component display name.
|
|
13092
13154
|
*/
|
|
13093
|
-
const COMPONENT_NAME$
|
|
13155
|
+
const COMPONENT_NAME$I = 'ImageLightbox';
|
|
13094
13156
|
|
|
13095
13157
|
/**
|
|
13096
13158
|
* Component default class name and class prefix.
|
|
13097
13159
|
*/
|
|
13098
|
-
const CLASSNAME$
|
|
13160
|
+
const CLASSNAME$J = 'lumx-image-lightbox';
|
|
13099
13161
|
|
|
13100
13162
|
/**
|
|
13101
13163
|
* Observe element size (only works if it's size depends on the window size).
|
|
@@ -13341,7 +13403,7 @@ function useAnimateScroll(scrollAreaRef) {
|
|
|
13341
13403
|
|
|
13342
13404
|
const {
|
|
13343
13405
|
element: element$u
|
|
13344
|
-
} = classNames.bem(CLASSNAME$
|
|
13406
|
+
} = classNames.bem(CLASSNAME$J);
|
|
13345
13407
|
/** Internal image slide component for ImageLightbox */
|
|
13346
13408
|
const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
13347
13409
|
const {
|
|
@@ -13433,7 +13495,7 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
13433
13495
|
|
|
13434
13496
|
const {
|
|
13435
13497
|
element: element$t
|
|
13436
|
-
} = classNames.bem(CLASSNAME$
|
|
13498
|
+
} = classNames.bem(CLASSNAME$J);
|
|
13437
13499
|
/** Internal image slideshow component for ImageLightbox */
|
|
13438
13500
|
const ImageSlideshow = ({
|
|
13439
13501
|
activeImageIndex,
|
|
@@ -13673,7 +13735,7 @@ function useImageLightbox(props) {
|
|
|
13673
13735
|
viewTransitionName: {
|
|
13674
13736
|
source: currentImageRef,
|
|
13675
13737
|
target: triggerImageRefs[currentIndex],
|
|
13676
|
-
name: CLASSNAME$
|
|
13738
|
+
name: CLASSNAME$J
|
|
13677
13739
|
}
|
|
13678
13740
|
});
|
|
13679
13741
|
}
|
|
@@ -13725,7 +13787,7 @@ function useImageLightbox(props) {
|
|
|
13725
13787
|
viewTransitionName: {
|
|
13726
13788
|
source: triggerImage,
|
|
13727
13789
|
target: currentImageRef,
|
|
13728
|
-
name: CLASSNAME$
|
|
13790
|
+
name: CLASSNAME$J
|
|
13729
13791
|
}
|
|
13730
13792
|
});
|
|
13731
13793
|
}
|
|
@@ -13779,7 +13841,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
13779
13841
|
}, [onClose]);
|
|
13780
13842
|
return /*#__PURE__*/jsx(Lightbox, {
|
|
13781
13843
|
ref: ref,
|
|
13782
|
-
className: classNames.join(className, CLASSNAME$
|
|
13844
|
+
className: classNames.join(className, CLASSNAME$J),
|
|
13783
13845
|
parentElement: parentElement,
|
|
13784
13846
|
isOpen: isOpen,
|
|
13785
13847
|
onClose: onClose,
|
|
@@ -13808,8 +13870,8 @@ const Inner = forwardRef((props, ref) => {
|
|
|
13808
13870
|
})
|
|
13809
13871
|
});
|
|
13810
13872
|
});
|
|
13811
|
-
Inner.displayName = COMPONENT_NAME$
|
|
13812
|
-
Inner.className = CLASSNAME$
|
|
13873
|
+
Inner.displayName = COMPONENT_NAME$I;
|
|
13874
|
+
Inner.className = CLASSNAME$J;
|
|
13813
13875
|
|
|
13814
13876
|
/**
|
|
13815
13877
|
* ImageLightbox component.
|
|
@@ -13825,16 +13887,16 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
13825
13887
|
/**
|
|
13826
13888
|
* Component display name.
|
|
13827
13889
|
*/
|
|
13828
|
-
const COMPONENT_NAME$
|
|
13890
|
+
const COMPONENT_NAME$H = 'InlineList';
|
|
13829
13891
|
|
|
13830
13892
|
/**
|
|
13831
13893
|
* Component default class name and class prefix.
|
|
13832
13894
|
*/
|
|
13833
|
-
const CLASSNAME$
|
|
13895
|
+
const CLASSNAME$I = 'lumx-inline-list';
|
|
13834
13896
|
const {
|
|
13835
13897
|
block: block$A,
|
|
13836
13898
|
element: element$s
|
|
13837
|
-
} = bem(CLASSNAME$
|
|
13899
|
+
} = bem(CLASSNAME$I);
|
|
13838
13900
|
|
|
13839
13901
|
/**
|
|
13840
13902
|
* Component default props.
|
|
@@ -13886,8 +13948,8 @@ const InlineList$1 = props => {
|
|
|
13886
13948
|
})
|
|
13887
13949
|
);
|
|
13888
13950
|
};
|
|
13889
|
-
InlineList$1.displayName = COMPONENT_NAME$
|
|
13890
|
-
InlineList$1.className = CLASSNAME$
|
|
13951
|
+
InlineList$1.displayName = COMPONENT_NAME$H;
|
|
13952
|
+
InlineList$1.className = CLASSNAME$I;
|
|
13891
13953
|
InlineList$1.defaultProps = DEFAULT_PROPS$E;
|
|
13892
13954
|
|
|
13893
13955
|
/**
|
|
@@ -13912,8 +13974,8 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
13912
13974
|
items: Children.toArray(children)
|
|
13913
13975
|
});
|
|
13914
13976
|
});
|
|
13915
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
13916
|
-
InlineList.className = CLASSNAME$
|
|
13977
|
+
InlineList.displayName = COMPONENT_NAME$H;
|
|
13978
|
+
InlineList.className = CLASSNAME$I;
|
|
13917
13979
|
InlineList.defaultProps = DEFAULT_PROPS$E;
|
|
13918
13980
|
|
|
13919
13981
|
/**
|
|
@@ -13957,16 +14019,16 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
|
|
|
13957
14019
|
/**
|
|
13958
14020
|
* Component display name.
|
|
13959
14021
|
*/
|
|
13960
|
-
const COMPONENT_NAME$
|
|
14022
|
+
const COMPONENT_NAME$G = 'Lightbox';
|
|
13961
14023
|
|
|
13962
14024
|
/**
|
|
13963
14025
|
* Component default class name and class prefix.
|
|
13964
14026
|
*/
|
|
13965
|
-
const CLASSNAME$
|
|
14027
|
+
const CLASSNAME$H = 'lumx-lightbox';
|
|
13966
14028
|
const {
|
|
13967
14029
|
block: block$z,
|
|
13968
14030
|
element: element$r
|
|
13969
|
-
} = bem(CLASSNAME$
|
|
14031
|
+
} = bem(CLASSNAME$H);
|
|
13970
14032
|
|
|
13971
14033
|
/**
|
|
13972
14034
|
* Lightbox component.
|
|
@@ -14150,8 +14212,8 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
14150
14212
|
...forwardedProps
|
|
14151
14213
|
});
|
|
14152
14214
|
});
|
|
14153
|
-
Lightbox.displayName = COMPONENT_NAME$
|
|
14154
|
-
Lightbox.className = CLASSNAME$
|
|
14215
|
+
Lightbox.displayName = COMPONENT_NAME$G;
|
|
14216
|
+
Lightbox.className = CLASSNAME$H;
|
|
14155
14217
|
|
|
14156
14218
|
/**
|
|
14157
14219
|
* Defines the props of the component.
|
|
@@ -14160,15 +14222,15 @@ Lightbox.className = CLASSNAME$G;
|
|
|
14160
14222
|
/**
|
|
14161
14223
|
* Component display name.
|
|
14162
14224
|
*/
|
|
14163
|
-
const COMPONENT_NAME$
|
|
14225
|
+
const COMPONENT_NAME$F = 'Link';
|
|
14164
14226
|
|
|
14165
14227
|
/**
|
|
14166
14228
|
* Component default class name and class prefix.
|
|
14167
14229
|
*/
|
|
14168
|
-
const CLASSNAME$
|
|
14230
|
+
const CLASSNAME$G = 'lumx-link';
|
|
14169
14231
|
const {
|
|
14170
14232
|
block: block$y
|
|
14171
|
-
} = bem(CLASSNAME$
|
|
14233
|
+
} = bem(CLASSNAME$G);
|
|
14172
14234
|
|
|
14173
14235
|
/**
|
|
14174
14236
|
* Link component.
|
|
@@ -14207,7 +14269,7 @@ const Link$1 = props => {
|
|
|
14207
14269
|
|
|
14208
14270
|
const {
|
|
14209
14271
|
element: element$q
|
|
14210
|
-
} = classNames.bem(CLASSNAME$
|
|
14272
|
+
} = classNames.bem(CLASSNAME$G);
|
|
14211
14273
|
|
|
14212
14274
|
/**
|
|
14213
14275
|
* Defines the props of the component.
|
|
@@ -14253,22 +14315,22 @@ const Link = forwardRef((props, ref) => {
|
|
|
14253
14315
|
}))
|
|
14254
14316
|
});
|
|
14255
14317
|
});
|
|
14256
|
-
Link.displayName = COMPONENT_NAME$
|
|
14257
|
-
Link.className = CLASSNAME$
|
|
14318
|
+
Link.displayName = COMPONENT_NAME$F;
|
|
14319
|
+
Link.className = CLASSNAME$G;
|
|
14258
14320
|
|
|
14259
14321
|
/**
|
|
14260
14322
|
* Component display name.
|
|
14261
14323
|
*/
|
|
14262
|
-
const COMPONENT_NAME$
|
|
14324
|
+
const COMPONENT_NAME$E = 'LinkPreview';
|
|
14263
14325
|
|
|
14264
14326
|
/**
|
|
14265
14327
|
* Component default class name and class prefix.
|
|
14266
14328
|
*/
|
|
14267
|
-
const CLASSNAME$
|
|
14329
|
+
const CLASSNAME$F = 'lumx-link-preview';
|
|
14268
14330
|
const {
|
|
14269
14331
|
block: block$x,
|
|
14270
14332
|
element: element$p
|
|
14271
|
-
} = bem(CLASSNAME$
|
|
14333
|
+
} = bem(CLASSNAME$F);
|
|
14272
14334
|
|
|
14273
14335
|
/**
|
|
14274
14336
|
* Component default props.
|
|
@@ -14394,8 +14456,8 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
14394
14456
|
...forwardedProps
|
|
14395
14457
|
});
|
|
14396
14458
|
});
|
|
14397
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
14398
|
-
LinkPreview.className = CLASSNAME$
|
|
14459
|
+
LinkPreview.displayName = COMPONENT_NAME$E;
|
|
14460
|
+
LinkPreview.className = CLASSNAME$F;
|
|
14399
14461
|
LinkPreview.defaultProps = DEFAULT_PROPS$D;
|
|
14400
14462
|
|
|
14401
14463
|
/**
|
|
@@ -14427,8 +14489,8 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
14427
14489
|
children
|
|
14428
14490
|
});
|
|
14429
14491
|
}), {
|
|
14430
|
-
displayName: COMPONENT_NAME$
|
|
14431
|
-
className: CLASSNAME$
|
|
14492
|
+
displayName: COMPONENT_NAME$19,
|
|
14493
|
+
className: CLASSNAME$18,
|
|
14432
14494
|
defaultProps: DEFAULT_PROPS$W
|
|
14433
14495
|
});
|
|
14434
14496
|
|
|
@@ -14467,8 +14529,8 @@ const _ListItem = forwardRef((props, ref) => {
|
|
|
14467
14529
|
handleClick: onItemSelected || props.onClick ? handleClick : undefined
|
|
14468
14530
|
});
|
|
14469
14531
|
});
|
|
14470
|
-
_ListItem.displayName = COMPONENT_NAME$
|
|
14471
|
-
_ListItem.className = CLASSNAME$
|
|
14532
|
+
_ListItem.displayName = COMPONENT_NAME$1a;
|
|
14533
|
+
_ListItem.className = CLASSNAME$19;
|
|
14472
14534
|
_ListItem.defaultProps = DEFAULT_PROPS$X;
|
|
14473
14535
|
|
|
14474
14536
|
/**
|
|
@@ -14482,12 +14544,12 @@ const ListItem = Object.assign(_ListItem, {
|
|
|
14482
14544
|
/**
|
|
14483
14545
|
* Component display name.
|
|
14484
14546
|
*/
|
|
14485
|
-
const COMPONENT_NAME$
|
|
14547
|
+
const COMPONENT_NAME$D = 'ListSubheader';
|
|
14486
14548
|
|
|
14487
14549
|
/**
|
|
14488
14550
|
* Component default class name and class prefix.
|
|
14489
14551
|
*/
|
|
14490
|
-
const CLASSNAME$
|
|
14552
|
+
const CLASSNAME$E = 'lumx-list-subheader';
|
|
14491
14553
|
|
|
14492
14554
|
/**
|
|
14493
14555
|
* ListSubheader component.
|
|
@@ -14506,26 +14568,26 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
14506
14568
|
return /*#__PURE__*/jsx("li", {
|
|
14507
14569
|
ref: ref,
|
|
14508
14570
|
...forwardedProps,
|
|
14509
|
-
className: classNames.join(className, CLASSNAME$
|
|
14571
|
+
className: classNames.join(className, CLASSNAME$E),
|
|
14510
14572
|
children: children
|
|
14511
14573
|
});
|
|
14512
14574
|
});
|
|
14513
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
14514
|
-
ListSubheader.className = CLASSNAME$
|
|
14575
|
+
ListSubheader.displayName = COMPONENT_NAME$D;
|
|
14576
|
+
ListSubheader.className = CLASSNAME$E;
|
|
14515
14577
|
|
|
14516
14578
|
/**
|
|
14517
14579
|
* Component display name.
|
|
14518
14580
|
*/
|
|
14519
|
-
const COMPONENT_NAME$
|
|
14581
|
+
const COMPONENT_NAME$C = 'Message';
|
|
14520
14582
|
|
|
14521
14583
|
/**
|
|
14522
14584
|
* Component default class name and class prefix.
|
|
14523
14585
|
*/
|
|
14524
|
-
const CLASSNAME$
|
|
14586
|
+
const CLASSNAME$D = 'lumx-message';
|
|
14525
14587
|
const {
|
|
14526
14588
|
block: block$w,
|
|
14527
14589
|
element: element$o
|
|
14528
|
-
} = bem(CLASSNAME$
|
|
14590
|
+
} = bem(CLASSNAME$D);
|
|
14529
14591
|
|
|
14530
14592
|
/**
|
|
14531
14593
|
* Associative map from message kind to color and icon.
|
|
@@ -14599,8 +14661,8 @@ const Message$1 = props => {
|
|
|
14599
14661
|
})]
|
|
14600
14662
|
});
|
|
14601
14663
|
};
|
|
14602
|
-
Message$1.displayName = COMPONENT_NAME$
|
|
14603
|
-
Message$1.className = CLASSNAME$
|
|
14664
|
+
Message$1.displayName = COMPONENT_NAME$C;
|
|
14665
|
+
Message$1.className = CLASSNAME$D;
|
|
14604
14666
|
|
|
14605
14667
|
/**
|
|
14606
14668
|
* Message component.
|
|
@@ -14615,22 +14677,22 @@ const Message = forwardRef((props, ref) => {
|
|
|
14615
14677
|
ref
|
|
14616
14678
|
});
|
|
14617
14679
|
});
|
|
14618
|
-
Message.displayName = COMPONENT_NAME$
|
|
14619
|
-
Message.className = CLASSNAME$
|
|
14680
|
+
Message.displayName = COMPONENT_NAME$C;
|
|
14681
|
+
Message.className = CLASSNAME$D;
|
|
14620
14682
|
|
|
14621
14683
|
/**
|
|
14622
14684
|
* Component display name.
|
|
14623
14685
|
*/
|
|
14624
|
-
const COMPONENT_NAME$
|
|
14686
|
+
const COMPONENT_NAME$B = 'Mosaic';
|
|
14625
14687
|
|
|
14626
14688
|
/**
|
|
14627
14689
|
* Component default class name and class prefix.
|
|
14628
14690
|
*/
|
|
14629
|
-
const CLASSNAME$
|
|
14691
|
+
const CLASSNAME$C = 'lumx-mosaic';
|
|
14630
14692
|
const {
|
|
14631
14693
|
block: block$v,
|
|
14632
14694
|
element: element$n
|
|
14633
|
-
} = bem(CLASSNAME$
|
|
14695
|
+
} = bem(CLASSNAME$C);
|
|
14634
14696
|
|
|
14635
14697
|
/**
|
|
14636
14698
|
* Component default props.
|
|
@@ -14728,8 +14790,8 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
14728
14790
|
...forwardedProps
|
|
14729
14791
|
});
|
|
14730
14792
|
});
|
|
14731
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
14732
|
-
Mosaic.className = CLASSNAME$
|
|
14793
|
+
Mosaic.displayName = COMPONENT_NAME$B;
|
|
14794
|
+
Mosaic.className = CLASSNAME$C;
|
|
14733
14795
|
Mosaic.defaultProps = DEFAULT_PROPS$C;
|
|
14734
14796
|
|
|
14735
14797
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
@@ -14749,16 +14811,16 @@ const ITEM_CLASSNAME = 'lumx-navigation-item';
|
|
|
14749
14811
|
/**
|
|
14750
14812
|
* Component display name.
|
|
14751
14813
|
*/
|
|
14752
|
-
const COMPONENT_NAME$
|
|
14814
|
+
const COMPONENT_NAME$A = 'NavigationSection';
|
|
14753
14815
|
|
|
14754
14816
|
/**
|
|
14755
14817
|
* Component default class name and class prefix.
|
|
14756
14818
|
*/
|
|
14757
|
-
const CLASSNAME$
|
|
14819
|
+
const CLASSNAME$B = 'lumx-navigation-section';
|
|
14758
14820
|
const {
|
|
14759
14821
|
block: sectionBlock,
|
|
14760
14822
|
element: sectionElement
|
|
14761
|
-
} = classNames.bem(CLASSNAME$
|
|
14823
|
+
} = classNames.bem(CLASSNAME$B);
|
|
14762
14824
|
const {
|
|
14763
14825
|
block: itemBlock,
|
|
14764
14826
|
element: itemElement
|
|
@@ -14844,8 +14906,8 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
14844
14906
|
}))]
|
|
14845
14907
|
});
|
|
14846
14908
|
});
|
|
14847
|
-
NavigationSection.displayName = COMPONENT_NAME$
|
|
14848
|
-
NavigationSection.className = CLASSNAME$
|
|
14909
|
+
NavigationSection.displayName = COMPONENT_NAME$A;
|
|
14910
|
+
NavigationSection.className = CLASSNAME$B;
|
|
14849
14911
|
|
|
14850
14912
|
const {
|
|
14851
14913
|
block: block$u,
|
|
@@ -14914,16 +14976,16 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
14914
14976
|
/**
|
|
14915
14977
|
* Component display name.
|
|
14916
14978
|
*/
|
|
14917
|
-
const COMPONENT_NAME$
|
|
14979
|
+
const COMPONENT_NAME$z = 'Navigation';
|
|
14918
14980
|
|
|
14919
14981
|
/**
|
|
14920
14982
|
* Component default class name and class prefix.
|
|
14921
14983
|
*/
|
|
14922
|
-
const CLASSNAME$
|
|
14984
|
+
const CLASSNAME$A = 'lumx-navigation';
|
|
14923
14985
|
const {
|
|
14924
14986
|
block: block$t,
|
|
14925
14987
|
element: element$l
|
|
14926
|
-
} = classNames.bem(CLASSNAME$
|
|
14988
|
+
} = classNames.bem(CLASSNAME$A);
|
|
14927
14989
|
|
|
14928
14990
|
/**
|
|
14929
14991
|
* Component default props
|
|
@@ -14961,8 +15023,8 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
14961
15023
|
})
|
|
14962
15024
|
});
|
|
14963
15025
|
});
|
|
14964
|
-
Navigation.displayName = COMPONENT_NAME$
|
|
14965
|
-
Navigation.className = CLASSNAME$
|
|
15026
|
+
Navigation.displayName = COMPONENT_NAME$z;
|
|
15027
|
+
Navigation.className = CLASSNAME$A;
|
|
14966
15028
|
Navigation.defaultProps = DEFAULT_PROPS$B;
|
|
14967
15029
|
|
|
14968
15030
|
// Sub components
|
|
@@ -14994,16 +15056,16 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
14994
15056
|
/**
|
|
14995
15057
|
* Component display name.
|
|
14996
15058
|
*/
|
|
14997
|
-
const COMPONENT_NAME$
|
|
15059
|
+
const COMPONENT_NAME$y = 'Notification';
|
|
14998
15060
|
|
|
14999
15061
|
/**
|
|
15000
15062
|
* Component default class name and class prefix.
|
|
15001
15063
|
*/
|
|
15002
|
-
const CLASSNAME$
|
|
15064
|
+
const CLASSNAME$z = 'lumx-notification';
|
|
15003
15065
|
const {
|
|
15004
15066
|
block: block$s,
|
|
15005
15067
|
element: element$k
|
|
15006
|
-
} = classNames.bem(CLASSNAME$
|
|
15068
|
+
} = classNames.bem(CLASSNAME$z);
|
|
15007
15069
|
|
|
15008
15070
|
/**
|
|
15009
15071
|
* Component default props.
|
|
@@ -15096,8 +15158,8 @@ const Notification = forwardRef((props, ref) => {
|
|
|
15096
15158
|
})
|
|
15097
15159
|
});
|
|
15098
15160
|
});
|
|
15099
|
-
Notification.displayName = COMPONENT_NAME$
|
|
15100
|
-
Notification.className = CLASSNAME$
|
|
15161
|
+
Notification.displayName = COMPONENT_NAME$y;
|
|
15162
|
+
Notification.className = CLASSNAME$z;
|
|
15101
15163
|
Notification.defaultProps = DEFAULT_PROPS$A;
|
|
15102
15164
|
|
|
15103
15165
|
/**
|
|
@@ -15108,12 +15170,12 @@ Notification.defaultProps = DEFAULT_PROPS$A;
|
|
|
15108
15170
|
/**
|
|
15109
15171
|
* Component display name.
|
|
15110
15172
|
*/
|
|
15111
|
-
const COMPONENT_NAME$
|
|
15173
|
+
const COMPONENT_NAME$x = 'PopoverDialog';
|
|
15112
15174
|
|
|
15113
15175
|
/**
|
|
15114
15176
|
* Component default class name and class prefix.
|
|
15115
15177
|
*/
|
|
15116
|
-
const CLASSNAME$
|
|
15178
|
+
const CLASSNAME$y = 'lumx-popover-dialog';
|
|
15117
15179
|
|
|
15118
15180
|
/**
|
|
15119
15181
|
* Component default props.
|
|
@@ -15139,7 +15201,7 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
15139
15201
|
return /*#__PURE__*/jsx(Popover, {
|
|
15140
15202
|
...forwardedProps,
|
|
15141
15203
|
ref: ref,
|
|
15142
|
-
className: classNames.join(className, CLASSNAME$
|
|
15204
|
+
className: classNames.join(className, CLASSNAME$y),
|
|
15143
15205
|
role: "dialog",
|
|
15144
15206
|
"aria-modal": "true"
|
|
15145
15207
|
/**
|
|
@@ -15156,23 +15218,23 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
15156
15218
|
})
|
|
15157
15219
|
});
|
|
15158
15220
|
});
|
|
15159
|
-
PopoverDialog.displayName = COMPONENT_NAME$
|
|
15160
|
-
PopoverDialog.className = CLASSNAME$
|
|
15221
|
+
PopoverDialog.displayName = COMPONENT_NAME$x;
|
|
15222
|
+
PopoverDialog.className = CLASSNAME$y;
|
|
15161
15223
|
PopoverDialog.defaultProps = DEFAULT_PROPS$z;
|
|
15162
15224
|
|
|
15163
15225
|
/**
|
|
15164
15226
|
* Component display name.
|
|
15165
15227
|
*/
|
|
15166
|
-
const COMPONENT_NAME$
|
|
15228
|
+
const COMPONENT_NAME$w = 'PostBlock';
|
|
15167
15229
|
|
|
15168
15230
|
/**
|
|
15169
15231
|
* Component default class name and class prefix.
|
|
15170
15232
|
*/
|
|
15171
|
-
const CLASSNAME$
|
|
15233
|
+
const CLASSNAME$x = 'lumx-post-block';
|
|
15172
15234
|
const {
|
|
15173
15235
|
block: block$r,
|
|
15174
15236
|
element: element$j
|
|
15175
|
-
} = classNames.bem(CLASSNAME$
|
|
15237
|
+
} = classNames.bem(CLASSNAME$x);
|
|
15176
15238
|
|
|
15177
15239
|
/**
|
|
15178
15240
|
* Component default props.
|
|
@@ -15257,23 +15319,23 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
15257
15319
|
})]
|
|
15258
15320
|
});
|
|
15259
15321
|
});
|
|
15260
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
15261
|
-
PostBlock.className = CLASSNAME$
|
|
15322
|
+
PostBlock.displayName = COMPONENT_NAME$w;
|
|
15323
|
+
PostBlock.className = CLASSNAME$x;
|
|
15262
15324
|
PostBlock.defaultProps = DEFAULT_PROPS$y;
|
|
15263
15325
|
|
|
15264
15326
|
/**
|
|
15265
15327
|
* Component display name.
|
|
15266
15328
|
*/
|
|
15267
|
-
const COMPONENT_NAME$
|
|
15329
|
+
const COMPONENT_NAME$v = 'ProgressLinear';
|
|
15268
15330
|
|
|
15269
15331
|
/**
|
|
15270
15332
|
* Component default class name and class prefix.
|
|
15271
15333
|
*/
|
|
15272
|
-
const CLASSNAME$
|
|
15334
|
+
const CLASSNAME$w = 'lumx-progress-linear';
|
|
15273
15335
|
const {
|
|
15274
15336
|
block: block$q,
|
|
15275
15337
|
element: element$i
|
|
15276
|
-
} = bem(CLASSNAME$
|
|
15338
|
+
} = bem(CLASSNAME$w);
|
|
15277
15339
|
|
|
15278
15340
|
/**
|
|
15279
15341
|
* Component default props.
|
|
@@ -15330,8 +15392,8 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
15330
15392
|
...otherProps
|
|
15331
15393
|
});
|
|
15332
15394
|
});
|
|
15333
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
15334
|
-
ProgressLinear.className = CLASSNAME$
|
|
15395
|
+
ProgressLinear.displayName = COMPONENT_NAME$v;
|
|
15396
|
+
ProgressLinear.className = CLASSNAME$w;
|
|
15335
15397
|
ProgressLinear.defaultProps = DEFAULT_PROPS$x;
|
|
15336
15398
|
|
|
15337
15399
|
/* eslint-disable react/no-unknown-property */
|
|
@@ -15339,16 +15401,16 @@ ProgressLinear.defaultProps = DEFAULT_PROPS$x;
|
|
|
15339
15401
|
/**
|
|
15340
15402
|
* Component display name.
|
|
15341
15403
|
*/
|
|
15342
|
-
const COMPONENT_NAME$
|
|
15404
|
+
const COMPONENT_NAME$u = 'ProgressCircular';
|
|
15343
15405
|
|
|
15344
15406
|
/**
|
|
15345
15407
|
* Component default class name and class prefix.
|
|
15346
15408
|
*/
|
|
15347
|
-
const CLASSNAME$
|
|
15409
|
+
const CLASSNAME$v = 'lumx-progress-circular';
|
|
15348
15410
|
const {
|
|
15349
15411
|
block: block$p,
|
|
15350
15412
|
element: element$h
|
|
15351
|
-
} = bem(CLASSNAME$
|
|
15413
|
+
} = bem(CLASSNAME$v);
|
|
15352
15414
|
|
|
15353
15415
|
/**
|
|
15354
15416
|
* Component default props.
|
|
@@ -15432,8 +15494,8 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
15432
15494
|
}
|
|
15433
15495
|
});
|
|
15434
15496
|
});
|
|
15435
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
15436
|
-
ProgressCircular.className = CLASSNAME$
|
|
15497
|
+
ProgressCircular.displayName = COMPONENT_NAME$u;
|
|
15498
|
+
ProgressCircular.className = CLASSNAME$v;
|
|
15437
15499
|
ProgressCircular.defaultProps = DEFAULT_PROPS$w;
|
|
15438
15500
|
|
|
15439
15501
|
const ProgressVariant = {
|
|
@@ -15448,15 +15510,15 @@ const ProgressVariant = {
|
|
|
15448
15510
|
/**
|
|
15449
15511
|
* Component display name.
|
|
15450
15512
|
*/
|
|
15451
|
-
const COMPONENT_NAME$
|
|
15513
|
+
const COMPONENT_NAME$t = 'Progress';
|
|
15452
15514
|
|
|
15453
15515
|
/**
|
|
15454
15516
|
* Component default class name and class prefix.
|
|
15455
15517
|
*/
|
|
15456
|
-
const CLASSNAME$
|
|
15518
|
+
const CLASSNAME$u = 'lumx-progress';
|
|
15457
15519
|
const {
|
|
15458
15520
|
block: block$o
|
|
15459
|
-
} = classNames.bem(CLASSNAME$
|
|
15521
|
+
} = classNames.bem(CLASSNAME$u);
|
|
15460
15522
|
|
|
15461
15523
|
/**
|
|
15462
15524
|
* Component default props.
|
|
@@ -15495,8 +15557,8 @@ const Progress = forwardRef((props, ref) => {
|
|
|
15495
15557
|
})]
|
|
15496
15558
|
});
|
|
15497
15559
|
});
|
|
15498
|
-
Progress.displayName = COMPONENT_NAME$
|
|
15499
|
-
Progress.className = CLASSNAME$
|
|
15560
|
+
Progress.displayName = COMPONENT_NAME$t;
|
|
15561
|
+
Progress.className = CLASSNAME$u;
|
|
15500
15562
|
Progress.defaultProps = DEFAULT_PROPS$v;
|
|
15501
15563
|
|
|
15502
15564
|
const INIT_STATE = {
|
|
@@ -15680,16 +15742,16 @@ ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$u;
|
|
|
15680
15742
|
/**
|
|
15681
15743
|
* Component display name.
|
|
15682
15744
|
*/
|
|
15683
|
-
const COMPONENT_NAME$
|
|
15745
|
+
const COMPONENT_NAME$s = 'ProgressTracker';
|
|
15684
15746
|
|
|
15685
15747
|
/**
|
|
15686
15748
|
* Component default class name and class prefix.
|
|
15687
15749
|
*/
|
|
15688
|
-
const CLASSNAME$
|
|
15750
|
+
const CLASSNAME$t = 'lumx-progress-tracker';
|
|
15689
15751
|
const {
|
|
15690
15752
|
block: block$n,
|
|
15691
15753
|
element: element$g
|
|
15692
|
-
} = classNames.bem(CLASSNAME$
|
|
15754
|
+
} = classNames.bem(CLASSNAME$t);
|
|
15693
15755
|
|
|
15694
15756
|
/**
|
|
15695
15757
|
* Component default props.
|
|
@@ -15746,23 +15808,23 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
15746
15808
|
})]
|
|
15747
15809
|
});
|
|
15748
15810
|
});
|
|
15749
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
15750
|
-
ProgressTracker.className = CLASSNAME$
|
|
15811
|
+
ProgressTracker.displayName = COMPONENT_NAME$s;
|
|
15812
|
+
ProgressTracker.className = CLASSNAME$t;
|
|
15751
15813
|
ProgressTracker.defaultProps = DEFAULT_PROPS$t;
|
|
15752
15814
|
|
|
15753
15815
|
/**
|
|
15754
15816
|
* Component display name.
|
|
15755
15817
|
*/
|
|
15756
|
-
const COMPONENT_NAME$
|
|
15818
|
+
const COMPONENT_NAME$r = 'ProgressTrackerStep';
|
|
15757
15819
|
|
|
15758
15820
|
/**
|
|
15759
15821
|
* Component default class name and class prefix.
|
|
15760
15822
|
*/
|
|
15761
|
-
const CLASSNAME$
|
|
15823
|
+
const CLASSNAME$s = 'lumx-progress-tracker-step';
|
|
15762
15824
|
const {
|
|
15763
15825
|
block: block$m,
|
|
15764
15826
|
element: element$f
|
|
15765
|
-
} = classNames.bem(CLASSNAME$
|
|
15827
|
+
} = classNames.bem(CLASSNAME$s);
|
|
15766
15828
|
|
|
15767
15829
|
/**
|
|
15768
15830
|
* Component default props.
|
|
@@ -15860,22 +15922,22 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
15860
15922
|
})]
|
|
15861
15923
|
});
|
|
15862
15924
|
});
|
|
15863
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
15864
|
-
ProgressTrackerStep.className = CLASSNAME$
|
|
15925
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$r;
|
|
15926
|
+
ProgressTrackerStep.className = CLASSNAME$s;
|
|
15865
15927
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$s;
|
|
15866
15928
|
|
|
15867
15929
|
/**
|
|
15868
15930
|
* Component display name.
|
|
15869
15931
|
*/
|
|
15870
|
-
const COMPONENT_NAME$
|
|
15932
|
+
const COMPONENT_NAME$q = 'ProgressTrackerStepPanel';
|
|
15871
15933
|
|
|
15872
15934
|
/**
|
|
15873
15935
|
* Component default class name and class prefix.
|
|
15874
15936
|
*/
|
|
15875
|
-
const CLASSNAME$
|
|
15937
|
+
const CLASSNAME$r = `lumx-step-panel`;
|
|
15876
15938
|
const {
|
|
15877
15939
|
block: block$l
|
|
15878
|
-
} = classNames.bem(CLASSNAME$
|
|
15940
|
+
} = classNames.bem(CLASSNAME$r);
|
|
15879
15941
|
|
|
15880
15942
|
/**
|
|
15881
15943
|
* Component default props.
|
|
@@ -15914,23 +15976,23 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
15914
15976
|
children: (!state?.isLazy || isActive) && children
|
|
15915
15977
|
});
|
|
15916
15978
|
});
|
|
15917
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
15918
|
-
ProgressTrackerStepPanel.className = CLASSNAME$
|
|
15979
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$q;
|
|
15980
|
+
ProgressTrackerStepPanel.className = CLASSNAME$r;
|
|
15919
15981
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$r;
|
|
15920
15982
|
|
|
15921
15983
|
/**
|
|
15922
15984
|
* Component display name.
|
|
15923
15985
|
*/
|
|
15924
|
-
const COMPONENT_NAME$
|
|
15986
|
+
const COMPONENT_NAME$p = 'RadioButton';
|
|
15925
15987
|
|
|
15926
15988
|
/**
|
|
15927
15989
|
* Component default class name and class prefix.
|
|
15928
15990
|
*/
|
|
15929
|
-
const CLASSNAME$
|
|
15991
|
+
const CLASSNAME$q = 'lumx-radio-button';
|
|
15930
15992
|
const {
|
|
15931
15993
|
block: block$k,
|
|
15932
15994
|
element: element$e
|
|
15933
|
-
} = bem(CLASSNAME$
|
|
15995
|
+
} = bem(CLASSNAME$q);
|
|
15934
15996
|
|
|
15935
15997
|
/**
|
|
15936
15998
|
* RadioButton component.
|
|
@@ -16073,19 +16135,19 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
16073
16135
|
inputId
|
|
16074
16136
|
});
|
|
16075
16137
|
});
|
|
16076
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
16077
|
-
RadioButton.className = CLASSNAME$
|
|
16138
|
+
RadioButton.displayName = COMPONENT_NAME$p;
|
|
16139
|
+
RadioButton.className = CLASSNAME$q;
|
|
16078
16140
|
RadioButton.defaultProps = DEFAULT_PROPS$q;
|
|
16079
16141
|
|
|
16080
16142
|
/**
|
|
16081
16143
|
* Component display name.
|
|
16082
16144
|
*/
|
|
16083
|
-
const COMPONENT_NAME$
|
|
16145
|
+
const COMPONENT_NAME$o = 'RadioGroup';
|
|
16084
16146
|
|
|
16085
16147
|
/**
|
|
16086
16148
|
* Component default class name and class prefix.
|
|
16087
16149
|
*/
|
|
16088
|
-
const CLASSNAME$
|
|
16150
|
+
const CLASSNAME$p = 'lumx-radio-group';
|
|
16089
16151
|
|
|
16090
16152
|
/**
|
|
16091
16153
|
* Component default props.
|
|
@@ -16108,12 +16170,12 @@ const RadioGroup$1 = props => {
|
|
|
16108
16170
|
return /*#__PURE__*/jsx("div", {
|
|
16109
16171
|
ref: ref,
|
|
16110
16172
|
...forwardedProps,
|
|
16111
|
-
className: classnames(className, CLASSNAME$
|
|
16173
|
+
className: classnames(className, CLASSNAME$p),
|
|
16112
16174
|
children: children
|
|
16113
16175
|
});
|
|
16114
16176
|
};
|
|
16115
|
-
RadioGroup$1.displayName = COMPONENT_NAME$
|
|
16116
|
-
RadioGroup$1.className = CLASSNAME$
|
|
16177
|
+
RadioGroup$1.displayName = COMPONENT_NAME$o;
|
|
16178
|
+
RadioGroup$1.className = CLASSNAME$p;
|
|
16117
16179
|
RadioGroup$1.defaultProps = DEFAULT_PROPS$p;
|
|
16118
16180
|
|
|
16119
16181
|
/**
|
|
@@ -16140,8 +16202,8 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
16140
16202
|
...forwardedProps
|
|
16141
16203
|
});
|
|
16142
16204
|
});
|
|
16143
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
16144
|
-
RadioGroup.className = CLASSNAME$
|
|
16205
|
+
RadioGroup.displayName = COMPONENT_NAME$o;
|
|
16206
|
+
RadioGroup.className = CLASSNAME$p;
|
|
16145
16207
|
|
|
16146
16208
|
/**
|
|
16147
16209
|
* Listen on element focus to store the focus status.
|
|
@@ -16168,11 +16230,11 @@ function useListenFocus(ref) {
|
|
|
16168
16230
|
}
|
|
16169
16231
|
|
|
16170
16232
|
/** The default class name and classes prefix for this component. */
|
|
16171
|
-
const CLASSNAME$
|
|
16233
|
+
const CLASSNAME$o = 'lumx-select';
|
|
16172
16234
|
const {
|
|
16173
16235
|
block: block$j,
|
|
16174
16236
|
element: element$d
|
|
16175
|
-
} = classNames.bem(CLASSNAME$
|
|
16237
|
+
} = classNames.bem(CLASSNAME$o);
|
|
16176
16238
|
const WithSelectContext = (SelectElement, props, ref) => {
|
|
16177
16239
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
16178
16240
|
const {
|
|
@@ -16288,14 +16350,14 @@ const SelectVariant = {
|
|
|
16288
16350
|
};
|
|
16289
16351
|
|
|
16290
16352
|
/** The display name of the component. */
|
|
16291
|
-
const COMPONENT_NAME$
|
|
16353
|
+
const COMPONENT_NAME$n = 'Select';
|
|
16292
16354
|
|
|
16293
16355
|
/** The default class name and classes prefix for this component. */
|
|
16294
|
-
const CLASSNAME$
|
|
16356
|
+
const CLASSNAME$n = 'lumx-select';
|
|
16295
16357
|
const {
|
|
16296
16358
|
block: block$i,
|
|
16297
16359
|
element: element$c
|
|
16298
|
-
} = classNames.bem(CLASSNAME$
|
|
16360
|
+
} = classNames.bem(CLASSNAME$n);
|
|
16299
16361
|
|
|
16300
16362
|
/** The default value of props. */
|
|
16301
16363
|
const DEFAULT_PROPS$o = {
|
|
@@ -16431,20 +16493,20 @@ const Select = forwardRef((props, ref) => {
|
|
|
16431
16493
|
isEmpty: isEmpty$1
|
|
16432
16494
|
}, ref);
|
|
16433
16495
|
});
|
|
16434
|
-
Select.displayName = COMPONENT_NAME$
|
|
16435
|
-
Select.className = CLASSNAME$
|
|
16496
|
+
Select.displayName = COMPONENT_NAME$n;
|
|
16497
|
+
Select.className = CLASSNAME$n;
|
|
16436
16498
|
Select.defaultProps = DEFAULT_PROPS$o;
|
|
16437
|
-
Select.className = CLASSNAME$
|
|
16499
|
+
Select.className = CLASSNAME$n;
|
|
16438
16500
|
|
|
16439
16501
|
/** The display name of the component. */
|
|
16440
|
-
const COMPONENT_NAME$
|
|
16502
|
+
const COMPONENT_NAME$m = 'Select';
|
|
16441
16503
|
|
|
16442
16504
|
/** The default class name and classes prefix for this component. */
|
|
16443
|
-
const CLASSNAME$
|
|
16505
|
+
const CLASSNAME$m = 'lumx-select';
|
|
16444
16506
|
const {
|
|
16445
16507
|
block: block$h,
|
|
16446
16508
|
element: element$b
|
|
16447
|
-
} = classNames.bem(CLASSNAME$
|
|
16509
|
+
} = classNames.bem(CLASSNAME$m);
|
|
16448
16510
|
|
|
16449
16511
|
/** The default value of props. */
|
|
16450
16512
|
const DEFAULT_PROPS$n = {
|
|
@@ -16528,13 +16590,13 @@ const SelectMultipleField = props => {
|
|
|
16528
16590
|
children: placeholder
|
|
16529
16591
|
})
|
|
16530
16592
|
}), (isValid || hasError) && /*#__PURE__*/jsx("div", {
|
|
16531
|
-
className: `${CLASSNAME$
|
|
16593
|
+
className: `${CLASSNAME$m}__input-validity`,
|
|
16532
16594
|
children: /*#__PURE__*/jsx(Icon, {
|
|
16533
16595
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
16534
16596
|
size: Size$1.xxs
|
|
16535
16597
|
})
|
|
16536
16598
|
}), /*#__PURE__*/jsx("div", {
|
|
16537
|
-
className: `${CLASSNAME$
|
|
16599
|
+
className: `${CLASSNAME$m}__input-indicator`,
|
|
16538
16600
|
children: /*#__PURE__*/jsx(Icon, {
|
|
16539
16601
|
icon: mdiMenuDown,
|
|
16540
16602
|
size: Size$1.s
|
|
@@ -16584,10 +16646,479 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
16584
16646
|
isMultiple: true
|
|
16585
16647
|
}, ref);
|
|
16586
16648
|
});
|
|
16587
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
16588
|
-
SelectMultiple.className = CLASSNAME$
|
|
16649
|
+
SelectMultiple.displayName = COMPONENT_NAME$m;
|
|
16650
|
+
SelectMultiple.className = CLASSNAME$m;
|
|
16589
16651
|
SelectMultiple.defaultProps = DEFAULT_PROPS$n;
|
|
16590
16652
|
|
|
16653
|
+
/**
|
|
16654
|
+
* Get the display name for a single option value.
|
|
16655
|
+
*
|
|
16656
|
+
* Resolves the option's display name by trying `getOptionName` first,
|
|
16657
|
+
* then falling back to `getOptionId`, returning `''` for nullish values.
|
|
16658
|
+
*/
|
|
16659
|
+
function getOptionDisplayName(value, getOptionName, getOptionId) {
|
|
16660
|
+
if (value === undefined || value === null) return '';
|
|
16661
|
+
if (getOptionName) {
|
|
16662
|
+
const name = getWithSelector(getOptionName, value);
|
|
16663
|
+
if (name != null) return String(name);
|
|
16664
|
+
}
|
|
16665
|
+
if (getOptionId) {
|
|
16666
|
+
return String(getWithSelector(getOptionId, value));
|
|
16667
|
+
}
|
|
16668
|
+
return '';
|
|
16669
|
+
}
|
|
16670
|
+
|
|
16671
|
+
/**
|
|
16672
|
+
* Render options as ComboboxOption elements.
|
|
16673
|
+
* Framework-specific components are passed as a second argument.
|
|
16674
|
+
*/
|
|
16675
|
+
function renderSelectOptions(props, components) {
|
|
16676
|
+
const {
|
|
16677
|
+
options,
|
|
16678
|
+
getOptionId,
|
|
16679
|
+
getOptionName,
|
|
16680
|
+
getOptionDescription,
|
|
16681
|
+
renderOption,
|
|
16682
|
+
selected,
|
|
16683
|
+
getSectionId,
|
|
16684
|
+
renderSectionTitle
|
|
16685
|
+
} = props;
|
|
16686
|
+
const {
|
|
16687
|
+
Combobox
|
|
16688
|
+
} = components;
|
|
16689
|
+
|
|
16690
|
+
// Render sections when getSectionId is provided.
|
|
16691
|
+
if (getSectionId && options) {
|
|
16692
|
+
const sections = groupBySelector(options, option => getWithSelector(getSectionId, option));
|
|
16693
|
+
return Array.from(sections.entries()).map(([sectionId, sectionOptions]) => {
|
|
16694
|
+
// When renderSectionTitle is provided, use the custom JSX as the label; otherwise fall back to sectionId.
|
|
16695
|
+
const sectionLabel = renderSectionTitle ? renderSectionTitle(sectionId, sectionOptions) : sectionId;
|
|
16696
|
+
return /*#__PURE__*/jsx(Combobox.Section, {
|
|
16697
|
+
label: sectionLabel,
|
|
16698
|
+
children: renderSelectOptions({
|
|
16699
|
+
options: sectionOptions,
|
|
16700
|
+
getOptionId,
|
|
16701
|
+
getOptionName,
|
|
16702
|
+
getOptionDescription,
|
|
16703
|
+
renderOption,
|
|
16704
|
+
selected
|
|
16705
|
+
// getSectionId intentionally omitted to render flat options inside.
|
|
16706
|
+
}, components)
|
|
16707
|
+
}, sectionId);
|
|
16708
|
+
});
|
|
16709
|
+
}
|
|
16710
|
+
|
|
16711
|
+
// Build a Set of selected IDs (works for both single value and arrays).
|
|
16712
|
+
const selectedIds = selected ? new Set((Array.isArray(selected) ? selected : [selected]).map(s => getWithSelector(getOptionId, s))) : undefined;
|
|
16713
|
+
return options?.map((item, index) => {
|
|
16714
|
+
const id = getWithSelector(getOptionId || getOptionName, item);
|
|
16715
|
+
const name = getWithSelector(getOptionName || getOptionId, item);
|
|
16716
|
+
const description = getOptionDescription && getWithSelector(getOptionDescription, item);
|
|
16717
|
+
const isSelected = selectedIds?.has(id) ?? false;
|
|
16718
|
+
|
|
16719
|
+
// Delegate to the consumer's render function when provided.
|
|
16720
|
+
// The consumer receives core-computed context and is responsible for rendering
|
|
16721
|
+
// a <Combobox.Option> with those values forwarded.
|
|
16722
|
+
if (renderOption) {
|
|
16723
|
+
return renderOption(item, {
|
|
16724
|
+
index,
|
|
16725
|
+
value: id,
|
|
16726
|
+
isSelected,
|
|
16727
|
+
description
|
|
16728
|
+
});
|
|
16729
|
+
}
|
|
16730
|
+
return /*#__PURE__*/jsx(Combobox.Option, {
|
|
16731
|
+
value: id,
|
|
16732
|
+
description: description,
|
|
16733
|
+
isSelected: isSelected,
|
|
16734
|
+
children: name
|
|
16735
|
+
}, id);
|
|
16736
|
+
});
|
|
16737
|
+
}
|
|
16738
|
+
|
|
16739
|
+
/**
|
|
16740
|
+
* Component display name.
|
|
16741
|
+
*/
|
|
16742
|
+
const COMPONENT_NAME$l = 'SelectTextField';
|
|
16743
|
+
|
|
16744
|
+
/**
|
|
16745
|
+
* Component default class name.
|
|
16746
|
+
*/
|
|
16747
|
+
const CLASSNAME$l = 'lumx-select-text-field';
|
|
16748
|
+
|
|
16749
|
+
/**
|
|
16750
|
+
* SelectTextField core template.
|
|
16751
|
+
* Renders a Combobox with a text input trigger and a dropdown list of options.
|
|
16752
|
+
* Supports search/filter, single selection, and multiple selection with chips.
|
|
16753
|
+
*
|
|
16754
|
+
* Framework-specific components are passed as a second argument by the React/Vue wrappers.
|
|
16755
|
+
*
|
|
16756
|
+
* @param props Component props.
|
|
16757
|
+
* @param components Injected framework-specific components.
|
|
16758
|
+
* @return JSX element.
|
|
16759
|
+
*/
|
|
16760
|
+
const SelectTextField$2 = (props, {
|
|
16761
|
+
Combobox,
|
|
16762
|
+
InfiniteScroll
|
|
16763
|
+
}) => {
|
|
16764
|
+
const {
|
|
16765
|
+
options,
|
|
16766
|
+
getOptionId,
|
|
16767
|
+
getOptionName,
|
|
16768
|
+
getOptionDescription,
|
|
16769
|
+
renderOption,
|
|
16770
|
+
getSectionId,
|
|
16771
|
+
renderSectionTitle,
|
|
16772
|
+
selected,
|
|
16773
|
+
label,
|
|
16774
|
+
isMultiselectable,
|
|
16775
|
+
inputProps,
|
|
16776
|
+
popoverProps,
|
|
16777
|
+
listProps,
|
|
16778
|
+
listStatus = 'idle',
|
|
16779
|
+
loadingMessage,
|
|
16780
|
+
emptyMessage,
|
|
16781
|
+
nbOptionMessage,
|
|
16782
|
+
errorMessage,
|
|
16783
|
+
errorTryReloadMessage,
|
|
16784
|
+
onOpen,
|
|
16785
|
+
chips,
|
|
16786
|
+
beforeOptions,
|
|
16787
|
+
afterOptions,
|
|
16788
|
+
onLoadMore,
|
|
16789
|
+
infiniteScrollOptions
|
|
16790
|
+
} = props;
|
|
16791
|
+
const isFullLoading = listStatus === 'loading';
|
|
16792
|
+
const isLoadingMore = listStatus === 'loadingMore';
|
|
16793
|
+
const isError = listStatus === 'error';
|
|
16794
|
+
return /*#__PURE__*/jsxs(Combobox.Provider, {
|
|
16795
|
+
onOpen: onOpen,
|
|
16796
|
+
children: [/*#__PURE__*/jsx(Combobox.Input, {
|
|
16797
|
+
label: label,
|
|
16798
|
+
...inputProps,
|
|
16799
|
+
chips: chips
|
|
16800
|
+
}), /*#__PURE__*/jsxs(Combobox.Popover, {
|
|
16801
|
+
fitToAnchorWidth: "minWidth",
|
|
16802
|
+
fitWithinViewportHeight: true,
|
|
16803
|
+
placement: "bottom-start",
|
|
16804
|
+
...popoverProps,
|
|
16805
|
+
children: [/*#__PURE__*/jsxs(Combobox.List, {
|
|
16806
|
+
...listProps,
|
|
16807
|
+
"aria-label": label,
|
|
16808
|
+
"aria-multiselectable": isMultiselectable || undefined,
|
|
16809
|
+
children: [beforeOptions, isFullLoading ? /*#__PURE__*/jsx(Combobox.OptionSkeleton, {
|
|
16810
|
+
count: 3
|
|
16811
|
+
}) : renderSelectOptions({
|
|
16812
|
+
options,
|
|
16813
|
+
getOptionId,
|
|
16814
|
+
getOptionName,
|
|
16815
|
+
getOptionDescription,
|
|
16816
|
+
renderOption,
|
|
16817
|
+
getSectionId,
|
|
16818
|
+
renderSectionTitle,
|
|
16819
|
+
selected
|
|
16820
|
+
}, {
|
|
16821
|
+
Combobox
|
|
16822
|
+
}), afterOptions, onLoadMore && InfiniteScroll && /*#__PURE__*/jsx(InfiniteScroll, {
|
|
16823
|
+
callback: () => {
|
|
16824
|
+
// Guard: prevent firing during loading or error states to avoid duplicate fetches.
|
|
16825
|
+
if (listStatus && listStatus !== 'idle') return;
|
|
16826
|
+
onLoadMore();
|
|
16827
|
+
},
|
|
16828
|
+
options: infiniteScrollOptions
|
|
16829
|
+
}), isLoadingMore && /*#__PURE__*/jsx(Combobox.OptionSkeleton, {
|
|
16830
|
+
count: 1
|
|
16831
|
+
})]
|
|
16832
|
+
}), /*#__PURE__*/jsx(Combobox.State, {
|
|
16833
|
+
loadingMessage: loadingMessage,
|
|
16834
|
+
emptyMessage: emptyMessage,
|
|
16835
|
+
nbOptionMessage: nbOptionMessage,
|
|
16836
|
+
errorMessage: isError ? errorMessage : undefined,
|
|
16837
|
+
errorTryReloadMessage: isError ? errorTryReloadMessage : undefined
|
|
16838
|
+
})]
|
|
16839
|
+
})]
|
|
16840
|
+
});
|
|
16841
|
+
};
|
|
16842
|
+
SelectTextField$2.displayName = COMPONENT_NAME$l;
|
|
16843
|
+
SelectTextField$2.className = CLASSNAME$l;
|
|
16844
|
+
|
|
16845
|
+
/**
|
|
16846
|
+
* A text field with a select dropdown to choose between a list of options.
|
|
16847
|
+
* Supports search/filter, single selection, and multiple selection with chips.
|
|
16848
|
+
*/
|
|
16849
|
+
const SelectTextField$1 = props => {
|
|
16850
|
+
const {
|
|
16851
|
+
// Options
|
|
16852
|
+
options,
|
|
16853
|
+
getOptionId,
|
|
16854
|
+
getOptionName,
|
|
16855
|
+
getOptionDescription,
|
|
16856
|
+
renderOption,
|
|
16857
|
+
getSectionId,
|
|
16858
|
+
renderSectionTitle,
|
|
16859
|
+
// Selection
|
|
16860
|
+
selectionType,
|
|
16861
|
+
value,
|
|
16862
|
+
onChange,
|
|
16863
|
+
// Search / filter
|
|
16864
|
+
filter,
|
|
16865
|
+
openOnFocus,
|
|
16866
|
+
onSearch,
|
|
16867
|
+
searchInputValue: externalSearchValue,
|
|
16868
|
+
// Clear
|
|
16869
|
+
hasClearButton = true,
|
|
16870
|
+
// Status
|
|
16871
|
+
listStatus = 'idle',
|
|
16872
|
+
// Text field
|
|
16873
|
+
className,
|
|
16874
|
+
label,
|
|
16875
|
+
placeholder,
|
|
16876
|
+
icon,
|
|
16877
|
+
isDisabled,
|
|
16878
|
+
'aria-disabled': ariaDisabled,
|
|
16879
|
+
isRequired,
|
|
16880
|
+
hasError,
|
|
16881
|
+
error,
|
|
16882
|
+
helper,
|
|
16883
|
+
id,
|
|
16884
|
+
name,
|
|
16885
|
+
isValid,
|
|
16886
|
+
maxLength,
|
|
16887
|
+
ariaLabel,
|
|
16888
|
+
inputRef: externalInputRef,
|
|
16889
|
+
// Event callbacks
|
|
16890
|
+
onBlur: externalOnBlur,
|
|
16891
|
+
onFocus,
|
|
16892
|
+
onKeyDown,
|
|
16893
|
+
onClear: externalOnClear,
|
|
16894
|
+
onOpen,
|
|
16895
|
+
// Forwarding
|
|
16896
|
+
inputProps: consumerInputProps,
|
|
16897
|
+
// Load more
|
|
16898
|
+
onLoadMore,
|
|
16899
|
+
beforeOptions,
|
|
16900
|
+
// Popover
|
|
16901
|
+
popoverProps,
|
|
16902
|
+
// Theme
|
|
16903
|
+
theme,
|
|
16904
|
+
// Translations
|
|
16905
|
+
translations
|
|
16906
|
+
} = props;
|
|
16907
|
+
const isAnyDisabled = !!isDisabled || ariaDisabled === true || ariaDisabled === 'true';
|
|
16908
|
+
const isMultiple = selectionType === 'multiple';
|
|
16909
|
+
const renderChip = isMultiple ? props.renderChip : undefined;
|
|
16910
|
+
const getChipProps = isMultiple ? props.getChipProps : undefined;
|
|
16911
|
+
|
|
16912
|
+
/* Wrap the consumer's renderOption to inject core-computed props.
|
|
16913
|
+
* The consumer returns a <Combobox.Option> with custom children/props.
|
|
16914
|
+
* This wrapper validates the element type, extracts the consumer's props, and
|
|
16915
|
+
* re-renders a <Combobox.Option> merging them with core-computed value/isSelected/description/key. */
|
|
16916
|
+
const wrappedRenderOption = renderOption ? (option, {
|
|
16917
|
+
index,
|
|
16918
|
+
value: optionValue,
|
|
16919
|
+
isSelected,
|
|
16920
|
+
description
|
|
16921
|
+
}) => {
|
|
16922
|
+
const node = renderOption(option, index);
|
|
16923
|
+
if (!isComponentType(Combobox.Option)(node)) return null;
|
|
16924
|
+
const {
|
|
16925
|
+
children,
|
|
16926
|
+
...customProps
|
|
16927
|
+
} = node.props;
|
|
16928
|
+
return /*#__PURE__*/jsx(Combobox.Option, {
|
|
16929
|
+
...customProps,
|
|
16930
|
+
value: optionValue,
|
|
16931
|
+
isSelected: isSelected,
|
|
16932
|
+
description: description,
|
|
16933
|
+
children: children
|
|
16934
|
+
}, optionValue);
|
|
16935
|
+
} : undefined;
|
|
16936
|
+
const [listElement, setListElement] = useState(null);
|
|
16937
|
+
const localInputRef = useRef(null);
|
|
16938
|
+
const mergedInputRef = useMergeRefs(localInputRef, externalInputRef);
|
|
16939
|
+
|
|
16940
|
+
// Track whether the user is actively typing a search.
|
|
16941
|
+
const [isSearching, setIsSearching] = useState(() => Boolean(externalSearchValue));
|
|
16942
|
+
const [searchText, setSearchText] = useState(() => externalSearchValue ?? '');
|
|
16943
|
+
|
|
16944
|
+
/* Sync external controlled search value into internal state when it changes.
|
|
16945
|
+
* This allows the parent to seed or reset the visible search text
|
|
16946
|
+
* (e.g., setting searchInputValue='' after creating an entry from beforeOptions). */
|
|
16947
|
+
useEffect(() => {
|
|
16948
|
+
if (externalSearchValue !== undefined) {
|
|
16949
|
+
setSearchText(externalSearchValue);
|
|
16950
|
+
setIsSearching(Boolean(externalSearchValue));
|
|
16951
|
+
}
|
|
16952
|
+
}, [externalSearchValue]);
|
|
16953
|
+
|
|
16954
|
+
// The displayed value shown in the input
|
|
16955
|
+
let displayValue;
|
|
16956
|
+
if (isMultiple || isSearching) {
|
|
16957
|
+
displayValue = searchText;
|
|
16958
|
+
} else if (!isMultiple) {
|
|
16959
|
+
displayValue = getOptionDisplayName(value, getOptionName, getOptionId);
|
|
16960
|
+
}
|
|
16961
|
+
|
|
16962
|
+
// Map option id selection to option object selection.
|
|
16963
|
+
const handleSelect = useCallback(selectedOption => {
|
|
16964
|
+
const selectedValue = selectedOption.value;
|
|
16965
|
+
const newOption = selectedValue && options?.find(option => getWithSelector$1(getOptionId, option) === selectedValue);
|
|
16966
|
+
if (!isMultiple) {
|
|
16967
|
+
onChange?.(newOption);
|
|
16968
|
+
} else {
|
|
16969
|
+
const currentValue = value || [];
|
|
16970
|
+
const existingIndex = currentValue.findIndex(item => getWithSelector$1(getOptionId, item) === selectedValue);
|
|
16971
|
+
if (existingIndex === -1) {
|
|
16972
|
+
// Skip if no matching option found (e.g. beforeOptions custom actions).
|
|
16973
|
+
if (newOption) {
|
|
16974
|
+
onChange?.([...currentValue, newOption]);
|
|
16975
|
+
}
|
|
16976
|
+
} else {
|
|
16977
|
+
// Remove option (toggle off)
|
|
16978
|
+
const updated = [...currentValue];
|
|
16979
|
+
updated.splice(existingIndex, 1);
|
|
16980
|
+
onChange?.(updated);
|
|
16981
|
+
}
|
|
16982
|
+
}
|
|
16983
|
+
|
|
16984
|
+
// Reset search state after selection.
|
|
16985
|
+
setIsSearching(false);
|
|
16986
|
+
setSearchText('');
|
|
16987
|
+
onSearch?.('');
|
|
16988
|
+
}, [getOptionId, isMultiple, onChange, onSearch, options, value]);
|
|
16989
|
+
|
|
16990
|
+
// Handle text input changes (search).
|
|
16991
|
+
const handleInputChange = useCallback(inputValue => {
|
|
16992
|
+
setIsSearching(true);
|
|
16993
|
+
setSearchText(inputValue);
|
|
16994
|
+
onSearch?.(inputValue);
|
|
16995
|
+
|
|
16996
|
+
// When the user clears the input (single mode only), clear the selection too.
|
|
16997
|
+
if (!isMultiple && inputValue === '' && value !== undefined && value !== null) {
|
|
16998
|
+
onChange?.(undefined);
|
|
16999
|
+
}
|
|
17000
|
+
}, [isMultiple, onChange, onSearch, value]);
|
|
17001
|
+
|
|
17002
|
+
// Handle clear button click (single mode only).
|
|
17003
|
+
const handleClear = useCallback(event => {
|
|
17004
|
+
// Prevent the clear event from being handled as a regular input change.
|
|
17005
|
+
event?.stopPropagation();
|
|
17006
|
+
onChange?.(undefined);
|
|
17007
|
+
setIsSearching(false);
|
|
17008
|
+
setSearchText('');
|
|
17009
|
+
onSearch?.('');
|
|
17010
|
+
externalOnClear?.(event);
|
|
17011
|
+
}, [onChange, onSearch, externalOnClear]);
|
|
17012
|
+
|
|
17013
|
+
// Handle blur: reset input to selected value name, then call consumer's onBlur.
|
|
17014
|
+
const handleBlur = useCallback(event => {
|
|
17015
|
+
setIsSearching(false);
|
|
17016
|
+
setSearchText('');
|
|
17017
|
+
onSearch?.('');
|
|
17018
|
+
externalOnBlur?.(event);
|
|
17019
|
+
}, [externalOnBlur, onSearch]);
|
|
17020
|
+
const showClear = !isMultiple && !isAnyDisabled && hasClearButton && value !== undefined && value !== null;
|
|
17021
|
+
const chips = isMultiple ? /*#__PURE__*/jsx(SelectionChipGroup, {
|
|
17022
|
+
value: value,
|
|
17023
|
+
theme: theme,
|
|
17024
|
+
getOptionId: getOptionId,
|
|
17025
|
+
getOptionName: getOptionName,
|
|
17026
|
+
onChange: onChange,
|
|
17027
|
+
inputRef: localInputRef,
|
|
17028
|
+
isDisabled: isAnyDisabled,
|
|
17029
|
+
label: translations.chipGroupLabel ?? label,
|
|
17030
|
+
chipRemoveLabel: translations.chipRemoveLabel,
|
|
17031
|
+
renderChip: renderChip,
|
|
17032
|
+
getChipProps: getChipProps
|
|
17033
|
+
}) : undefined;
|
|
17034
|
+
|
|
17035
|
+
// The core template is not generic, so we cast selectors when forwarding to UI().
|
|
17036
|
+
return SelectTextField$2({
|
|
17037
|
+
options,
|
|
17038
|
+
getOptionId: getOptionId,
|
|
17039
|
+
getOptionName: getOptionName,
|
|
17040
|
+
getOptionDescription: getOptionDescription,
|
|
17041
|
+
renderOption: wrappedRenderOption,
|
|
17042
|
+
getSectionId: getSectionId,
|
|
17043
|
+
renderSectionTitle: renderSectionTitle,
|
|
17044
|
+
selected: value,
|
|
17045
|
+
label,
|
|
17046
|
+
isMultiselectable: isMultiple,
|
|
17047
|
+
listStatus,
|
|
17048
|
+
onOpen,
|
|
17049
|
+
loadingMessage: translations.loadingMessage,
|
|
17050
|
+
emptyMessage: translations.emptyMessage,
|
|
17051
|
+
nbOptionMessage: translations.nbOptionMessage,
|
|
17052
|
+
errorMessage: translations.errorMessage,
|
|
17053
|
+
errorTryReloadMessage: translations.errorTryReloadMessage,
|
|
17054
|
+
inputProps: {
|
|
17055
|
+
...consumerInputProps,
|
|
17056
|
+
placeholder,
|
|
17057
|
+
icon,
|
|
17058
|
+
value: displayValue,
|
|
17059
|
+
onChange: handleInputChange,
|
|
17060
|
+
onSelect: handleSelect,
|
|
17061
|
+
onBlur: handleBlur,
|
|
17062
|
+
onFocus,
|
|
17063
|
+
onKeyDown,
|
|
17064
|
+
inputRef: mergedInputRef,
|
|
17065
|
+
isDisabled,
|
|
17066
|
+
'aria-disabled': ariaDisabled,
|
|
17067
|
+
isRequired,
|
|
17068
|
+
hasError,
|
|
17069
|
+
error,
|
|
17070
|
+
helper,
|
|
17071
|
+
id,
|
|
17072
|
+
name,
|
|
17073
|
+
isValid,
|
|
17074
|
+
maxLength,
|
|
17075
|
+
'aria-label': ariaLabel,
|
|
17076
|
+
clearButtonProps: showClear ? {
|
|
17077
|
+
label: translations.clearLabel
|
|
17078
|
+
} : undefined,
|
|
17079
|
+
onClear: handleClear,
|
|
17080
|
+
toggleButtonProps: translations.showSuggestionsLabel ? {
|
|
17081
|
+
label: translations.showSuggestionsLabel
|
|
17082
|
+
} : undefined,
|
|
17083
|
+
filter,
|
|
17084
|
+
openOnFocus,
|
|
17085
|
+
className,
|
|
17086
|
+
theme
|
|
17087
|
+
},
|
|
17088
|
+
popoverProps,
|
|
17089
|
+
listProps: {
|
|
17090
|
+
ref: setListElement
|
|
17091
|
+
},
|
|
17092
|
+
chips,
|
|
17093
|
+
beforeOptions,
|
|
17094
|
+
onLoadMore,
|
|
17095
|
+
infiniteScrollOptions: {
|
|
17096
|
+
root: listElement,
|
|
17097
|
+
rootMargin: '100px'
|
|
17098
|
+
}
|
|
17099
|
+
}, {
|
|
17100
|
+
Combobox,
|
|
17101
|
+
InfiniteScroll
|
|
17102
|
+
});
|
|
17103
|
+
};
|
|
17104
|
+
SelectTextField$1.displayName = 'SelectTextField';
|
|
17105
|
+
|
|
17106
|
+
/**
|
|
17107
|
+
* SelectTextField compound component.
|
|
17108
|
+
*/
|
|
17109
|
+
const SelectTextField = Object.assign(SelectTextField$1, {
|
|
17110
|
+
/** Selectable option within the dropdown list. */
|
|
17111
|
+
Option: ComboboxOption,
|
|
17112
|
+
/** Labelled group of options. */
|
|
17113
|
+
Section: ComboboxSection,
|
|
17114
|
+
/** Info icon on an option that reveals a popover with additional details. */
|
|
17115
|
+
OptionMoreInfo: ComboboxOptionMoreInfo,
|
|
17116
|
+
/** Skeleton loading placeholder for options being fetched. */
|
|
17117
|
+
OptionSkeleton: ComboboxOptionSkeleton,
|
|
17118
|
+
/** Visual separator between option groups (alias for ListDivider). Purely decorative — invisible to screen readers. */
|
|
17119
|
+
Divider: ListDivider
|
|
17120
|
+
});
|
|
17121
|
+
|
|
16591
17122
|
/**
|
|
16592
17123
|
* Component display name.
|
|
16593
17124
|
*/
|
|
@@ -16963,9 +17494,9 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
16963
17494
|
...forwardedProps
|
|
16964
17495
|
});
|
|
16965
17496
|
});
|
|
16966
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
17497
|
+
SkeletonTypography.displayName = COMPONENT_NAME$14;
|
|
16967
17498
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$i;
|
|
16968
|
-
SkeletonTypography.className = CLASSNAME$
|
|
17499
|
+
SkeletonTypography.className = CLASSNAME$13;
|
|
16969
17500
|
|
|
16970
17501
|
/**
|
|
16971
17502
|
* Clamp value in range.
|
|
@@ -20168,5 +20699,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
20168
20699
|
UserBlock.className = CLASSNAME;
|
|
20169
20700
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
20170
20701
|
|
|
20171
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$
|
|
20702
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1q as CLASSNAME, COMPONENT_NAME$1r as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1b as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
20172
20703
|
//# sourceMappingURL=index.js.map
|