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