@lumx/react 4.14.0-next.2 → 4.14.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +97 -4
- package/index.js +1004 -676
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -308,7 +308,7 @@ function modifier$1(baseName, modifiers) {
|
|
|
308
308
|
* block('button', { active: true, disabled: false }); // 'button button--active'
|
|
309
309
|
*/
|
|
310
310
|
|
|
311
|
-
function block$
|
|
311
|
+
function block$1a(baseName, modifiersOrAdditionalClasses, additionalClasses) {
|
|
312
312
|
let modifiers;
|
|
313
313
|
let classes;
|
|
314
314
|
if (typeof modifiersOrAdditionalClasses === 'string' || Array.isArray(modifiersOrAdditionalClasses)) {
|
|
@@ -343,7 +343,7 @@ const ACTION_ELEMENT = `${PREFIX}__action`;
|
|
|
343
343
|
const actionArea = Object.assign(/** Action area container class. Sets `position: relative`. */
|
|
344
344
|
() => PREFIX, {
|
|
345
345
|
/** Action element class. Adds a `::before` pseudo-element with `position: absolute; inset: 0` to expand the click area. */
|
|
346
|
-
action: modifiers => block$
|
|
346
|
+
action: modifiers => block$1a(ACTION_ELEMENT, modifiers)
|
|
347
347
|
});
|
|
348
348
|
|
|
349
349
|
/** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
|
|
@@ -466,7 +466,7 @@ const visuallyHidden = () => VISUALLY_HIDDEN;
|
|
|
466
466
|
*/
|
|
467
467
|
|
|
468
468
|
function element$R(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
469
|
-
return block$
|
|
469
|
+
return block$1a(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
/**
|
|
@@ -474,7 +474,7 @@ function element$R(baseClass, elem, modifiersOrAdditionalClasses, additionalClas
|
|
|
474
474
|
*/
|
|
475
475
|
function bem(baseName) {
|
|
476
476
|
function blockFn(modifiersOrAdditionalClasses, additionalClasses) {
|
|
477
|
-
return block$
|
|
477
|
+
return block$1a(baseName, modifiersOrAdditionalClasses, additionalClasses);
|
|
478
478
|
}
|
|
479
479
|
function elementFn(elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
480
480
|
return element$R(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
|
|
@@ -557,15 +557,15 @@ const CONFIG$1 = {
|
|
|
557
557
|
/**
|
|
558
558
|
* Component display name.
|
|
559
559
|
*/
|
|
560
|
-
const COMPONENT_NAME$
|
|
560
|
+
const COMPONENT_NAME$1A = 'AlertDialog';
|
|
561
561
|
|
|
562
562
|
/**
|
|
563
563
|
* Component default class name and class prefix.
|
|
564
564
|
*/
|
|
565
|
-
const CLASSNAME$
|
|
565
|
+
const CLASSNAME$1y = 'lumx-alert-dialog';
|
|
566
566
|
const {
|
|
567
|
-
block: block$
|
|
568
|
-
} = bem(CLASSNAME$
|
|
567
|
+
block: block$19
|
|
568
|
+
} = bem(CLASSNAME$1y);
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* Component default props.
|
|
@@ -633,7 +633,7 @@ const AlertDialog$1 = props => {
|
|
|
633
633
|
'aria-describedby': descriptionId,
|
|
634
634
|
...dialogProps
|
|
635
635
|
},
|
|
636
|
-
className: classnames(className, block$
|
|
636
|
+
className: classnames(className, block$19({
|
|
637
637
|
[`kind-${kind}`]: Boolean(kind)
|
|
638
638
|
})),
|
|
639
639
|
...forwardedProps,
|
|
@@ -731,8 +731,8 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
731
731
|
...forwardedProps
|
|
732
732
|
});
|
|
733
733
|
});
|
|
734
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
735
|
-
AlertDialog.className = CLASSNAME$
|
|
734
|
+
AlertDialog.displayName = COMPONENT_NAME$1A;
|
|
735
|
+
AlertDialog.className = CLASSNAME$1y;
|
|
736
736
|
AlertDialog.defaultProps = DEFAULT_PROPS$1g;
|
|
737
737
|
|
|
738
738
|
/**
|
|
@@ -825,12 +825,12 @@ function useDisableStateProps(props) {
|
|
|
825
825
|
/**
|
|
826
826
|
* Component display name.
|
|
827
827
|
*/
|
|
828
|
-
const COMPONENT_NAME$
|
|
828
|
+
const COMPONENT_NAME$1z = 'Autocomplete';
|
|
829
829
|
|
|
830
830
|
/**
|
|
831
831
|
* Component default class name and class prefix.
|
|
832
832
|
*/
|
|
833
|
-
const CLASSNAME$
|
|
833
|
+
const CLASSNAME$1x = 'lumx-autocomplete';
|
|
834
834
|
|
|
835
835
|
/**
|
|
836
836
|
* Component default props.
|
|
@@ -898,7 +898,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
898
898
|
return /*#__PURE__*/jsxs("div", {
|
|
899
899
|
ref: ref,
|
|
900
900
|
...forwardedProps,
|
|
901
|
-
className: classNames.join(className, CLASSNAME$
|
|
901
|
+
className: classNames.join(className, CLASSNAME$1x),
|
|
902
902
|
children: [/*#__PURE__*/jsx(TextField, {
|
|
903
903
|
...textFieldProps,
|
|
904
904
|
chips: chips,
|
|
@@ -938,19 +938,19 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
938
938
|
})]
|
|
939
939
|
});
|
|
940
940
|
});
|
|
941
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
942
|
-
Autocomplete.className = CLASSNAME$
|
|
941
|
+
Autocomplete.displayName = COMPONENT_NAME$1z;
|
|
942
|
+
Autocomplete.className = CLASSNAME$1x;
|
|
943
943
|
Autocomplete.defaultProps = DEFAULT_PROPS$1f;
|
|
944
944
|
|
|
945
945
|
/**
|
|
946
946
|
* Component display name.
|
|
947
947
|
*/
|
|
948
|
-
const COMPONENT_NAME$
|
|
948
|
+
const COMPONENT_NAME$1y = 'AutocompleteMultiple';
|
|
949
949
|
|
|
950
950
|
/**
|
|
951
951
|
* Component default class name and class prefix.
|
|
952
952
|
*/
|
|
953
|
-
const CLASSNAME$
|
|
953
|
+
const CLASSNAME$1w = 'lumx-autocomplete-multiple';
|
|
954
954
|
|
|
955
955
|
/**
|
|
956
956
|
* Component default props.
|
|
@@ -1031,7 +1031,7 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1031
1031
|
ref: ref,
|
|
1032
1032
|
...forwardedProps,
|
|
1033
1033
|
anchorToInput: anchorToInput,
|
|
1034
|
-
className: classNames.join(className, CLASSNAME$
|
|
1034
|
+
className: classNames.join(className, CLASSNAME$1w),
|
|
1035
1035
|
name: name,
|
|
1036
1036
|
value: value,
|
|
1037
1037
|
onChange: onChange,
|
|
@@ -1064,23 +1064,23 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1064
1064
|
children: children
|
|
1065
1065
|
});
|
|
1066
1066
|
});
|
|
1067
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
1068
|
-
AutocompleteMultiple.className = CLASSNAME$
|
|
1067
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1y;
|
|
1068
|
+
AutocompleteMultiple.className = CLASSNAME$1w;
|
|
1069
1069
|
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1e;
|
|
1070
1070
|
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Component display name.
|
|
1073
1073
|
*/
|
|
1074
|
-
const COMPONENT_NAME$
|
|
1074
|
+
const COMPONENT_NAME$1x = 'Avatar';
|
|
1075
1075
|
|
|
1076
1076
|
/**
|
|
1077
1077
|
* Component default class name and class prefix.
|
|
1078
1078
|
*/
|
|
1079
|
-
const CLASSNAME$
|
|
1079
|
+
const CLASSNAME$1v = 'lumx-avatar';
|
|
1080
1080
|
const {
|
|
1081
|
-
block: block$
|
|
1081
|
+
block: block$18,
|
|
1082
1082
|
element: element$Q
|
|
1083
|
-
} = bem(CLASSNAME$
|
|
1083
|
+
} = bem(CLASSNAME$1v);
|
|
1084
1084
|
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Component default props.
|
|
@@ -1110,7 +1110,7 @@ const Avatar$1 = props => {
|
|
|
1110
1110
|
return /*#__PURE__*/jsxs("div", {
|
|
1111
1111
|
ref: ref,
|
|
1112
1112
|
...forwardedProps,
|
|
1113
|
-
className: classnames(className, block$
|
|
1113
|
+
className: classnames(className, block$18({
|
|
1114
1114
|
[`size-${size}`]: Boolean(size),
|
|
1115
1115
|
[`theme-${theme}`]: Boolean(theme)
|
|
1116
1116
|
})),
|
|
@@ -1171,22 +1171,22 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1171
1171
|
})
|
|
1172
1172
|
});
|
|
1173
1173
|
});
|
|
1174
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
1175
|
-
Avatar.className = CLASSNAME$
|
|
1174
|
+
Avatar.displayName = COMPONENT_NAME$1x;
|
|
1175
|
+
Avatar.className = CLASSNAME$1v;
|
|
1176
1176
|
Avatar.defaultProps = DEFAULT_PROPS$1d;
|
|
1177
1177
|
|
|
1178
1178
|
/**
|
|
1179
1179
|
* Component display name.
|
|
1180
1180
|
*/
|
|
1181
|
-
const COMPONENT_NAME$
|
|
1181
|
+
const COMPONENT_NAME$1w = 'Badge';
|
|
1182
1182
|
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Component default class name and class prefix.
|
|
1185
1185
|
*/
|
|
1186
|
-
const CLASSNAME$
|
|
1186
|
+
const CLASSNAME$1u = 'lumx-badge';
|
|
1187
1187
|
const {
|
|
1188
|
-
block: block$
|
|
1189
|
-
} = bem(CLASSNAME$
|
|
1188
|
+
block: block$17
|
|
1189
|
+
} = bem(CLASSNAME$1u);
|
|
1190
1190
|
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Component default props.
|
|
@@ -1212,14 +1212,14 @@ const Badge$1 = props => {
|
|
|
1212
1212
|
return /*#__PURE__*/jsx("div", {
|
|
1213
1213
|
ref: ref,
|
|
1214
1214
|
...forwardedProps,
|
|
1215
|
-
className: classnames(className, block$
|
|
1215
|
+
className: classnames(className, block$17({
|
|
1216
1216
|
[`color-${color}`]: Boolean(color)
|
|
1217
1217
|
})),
|
|
1218
1218
|
children: children
|
|
1219
1219
|
});
|
|
1220
1220
|
};
|
|
1221
|
-
Badge$1.displayName = COMPONENT_NAME$
|
|
1222
|
-
Badge$1.className = CLASSNAME$
|
|
1221
|
+
Badge$1.displayName = COMPONENT_NAME$1w;
|
|
1222
|
+
Badge$1.className = CLASSNAME$1u;
|
|
1223
1223
|
Badge$1.defaultProps = DEFAULT_PROPS$1c;
|
|
1224
1224
|
|
|
1225
1225
|
/**
|
|
@@ -1243,12 +1243,12 @@ Badge.displayName = Badge$1.displayName;
|
|
|
1243
1243
|
Badge.className = Badge$1.className;
|
|
1244
1244
|
Badge.defaultProps = Badge$1.defaultProps;
|
|
1245
1245
|
|
|
1246
|
-
const COMPONENT_NAME$
|
|
1247
|
-
const CLASSNAME$
|
|
1246
|
+
const COMPONENT_NAME$1v = 'BadgeWrapper';
|
|
1247
|
+
const CLASSNAME$1t = 'lumx-badge-wrapper';
|
|
1248
1248
|
const {
|
|
1249
|
-
block: block$
|
|
1249
|
+
block: block$16,
|
|
1250
1250
|
element: element$P
|
|
1251
|
-
} = bem(CLASSNAME$
|
|
1251
|
+
} = bem(CLASSNAME$1t);
|
|
1252
1252
|
const BadgeWrapper$1 = props => {
|
|
1253
1253
|
const {
|
|
1254
1254
|
badge,
|
|
@@ -1260,7 +1260,7 @@ const BadgeWrapper$1 = props => {
|
|
|
1260
1260
|
return /*#__PURE__*/jsxs("div", {
|
|
1261
1261
|
ref: ref,
|
|
1262
1262
|
...forwardedProps,
|
|
1263
|
-
className: classnames(className, block$
|
|
1263
|
+
className: classnames(className, block$16()),
|
|
1264
1264
|
children: [children, badge && /*#__PURE__*/jsx("div", {
|
|
1265
1265
|
className: element$P('badge'),
|
|
1266
1266
|
children: badge
|
|
@@ -1274,8 +1274,8 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
1274
1274
|
ref
|
|
1275
1275
|
});
|
|
1276
1276
|
});
|
|
1277
|
-
BadgeWrapper.displayName = COMPONENT_NAME$
|
|
1278
|
-
BadgeWrapper.className = CLASSNAME$
|
|
1277
|
+
BadgeWrapper.displayName = COMPONENT_NAME$1v;
|
|
1278
|
+
BadgeWrapper.className = CLASSNAME$1t;
|
|
1279
1279
|
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Render clickable element (link, button or custom element)
|
|
@@ -1325,7 +1325,7 @@ const RawClickable = props => {
|
|
|
1325
1325
|
/**
|
|
1326
1326
|
* Component display name.
|
|
1327
1327
|
*/
|
|
1328
|
-
const COMPONENT_NAME$
|
|
1328
|
+
const COMPONENT_NAME$1u = 'ButtonRoot';
|
|
1329
1329
|
const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
|
|
1330
1330
|
const {
|
|
1331
1331
|
block: buttonWrapperBlock
|
|
@@ -1423,7 +1423,7 @@ const ButtonRoot = props => {
|
|
|
1423
1423
|
children
|
|
1424
1424
|
});
|
|
1425
1425
|
};
|
|
1426
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
1426
|
+
ButtonRoot.displayName = COMPONENT_NAME$1u;
|
|
1427
1427
|
ButtonRoot.defaultProps = {};
|
|
1428
1428
|
|
|
1429
1429
|
/**
|
|
@@ -1433,15 +1433,15 @@ ButtonRoot.defaultProps = {};
|
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Component display name.
|
|
1435
1435
|
*/
|
|
1436
|
-
const COMPONENT_NAME$
|
|
1436
|
+
const COMPONENT_NAME$1t = 'Button';
|
|
1437
1437
|
|
|
1438
1438
|
/**
|
|
1439
1439
|
* Component default class name and class prefix.
|
|
1440
1440
|
*/
|
|
1441
|
-
const CLASSNAME$
|
|
1441
|
+
const CLASSNAME$1s = 'lumx-button';
|
|
1442
1442
|
const {
|
|
1443
1443
|
modifier
|
|
1444
|
-
} = bem(CLASSNAME$
|
|
1444
|
+
} = bem(CLASSNAME$1s);
|
|
1445
1445
|
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Component default props.
|
|
@@ -1478,8 +1478,8 @@ const Button$1 = props => {
|
|
|
1478
1478
|
variant: 'button'
|
|
1479
1479
|
});
|
|
1480
1480
|
};
|
|
1481
|
-
Button$1.displayName = COMPONENT_NAME$
|
|
1482
|
-
Button$1.className = CLASSNAME$
|
|
1481
|
+
Button$1.displayName = COMPONENT_NAME$1t;
|
|
1482
|
+
Button$1.className = CLASSNAME$1s;
|
|
1483
1483
|
Button$1.defaultProps = DEFAULT_PROPS$1b;
|
|
1484
1484
|
|
|
1485
1485
|
/**
|
|
@@ -1553,21 +1553,21 @@ const Button = forwardRef((props, ref) => {
|
|
|
1553
1553
|
})
|
|
1554
1554
|
});
|
|
1555
1555
|
});
|
|
1556
|
-
Button.displayName = COMPONENT_NAME$
|
|
1557
|
-
Button.className = CLASSNAME$
|
|
1556
|
+
Button.displayName = COMPONENT_NAME$1t;
|
|
1557
|
+
Button.className = CLASSNAME$1s;
|
|
1558
1558
|
Button.defaultProps = DEFAULT_PROPS$1b;
|
|
1559
1559
|
|
|
1560
|
-
const COMPONENT_NAME$
|
|
1560
|
+
const COMPONENT_NAME$1s = 'Icon';
|
|
1561
1561
|
const IconClassName = 'lumx-icon';
|
|
1562
1562
|
|
|
1563
1563
|
/**
|
|
1564
1564
|
* Defines the props of the component.
|
|
1565
1565
|
*/
|
|
1566
1566
|
|
|
1567
|
-
const CLASSNAME$
|
|
1567
|
+
const CLASSNAME$1r = IconClassName;
|
|
1568
1568
|
const {
|
|
1569
|
-
block: block$
|
|
1570
|
-
} = bem(CLASSNAME$
|
|
1569
|
+
block: block$15
|
|
1570
|
+
} = bem(CLASSNAME$1r);
|
|
1571
1571
|
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Component default props.
|
|
@@ -1621,7 +1621,7 @@ const Icon$1 = props => {
|
|
|
1621
1621
|
return /*#__PURE__*/jsx("i", {
|
|
1622
1622
|
ref: ref,
|
|
1623
1623
|
...forwardedProps,
|
|
1624
|
-
className: classnames(className, block$
|
|
1624
|
+
className: classnames(className, block$15({
|
|
1625
1625
|
[`color-${iconColor}`]: Boolean(iconColor),
|
|
1626
1626
|
[`color-variant-${iconColorVariant}`]: Boolean(iconColorVariant),
|
|
1627
1627
|
'has-shape': hasShape,
|
|
@@ -1650,19 +1650,19 @@ const Icon$1 = props => {
|
|
|
1650
1650
|
})
|
|
1651
1651
|
});
|
|
1652
1652
|
};
|
|
1653
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1654
|
-
Icon$1.className = CLASSNAME$
|
|
1653
|
+
Icon$1.displayName = COMPONENT_NAME$1s;
|
|
1654
|
+
Icon$1.className = CLASSNAME$1r;
|
|
1655
1655
|
Icon$1.defaultProps = DEFAULT_PROPS$1a;
|
|
1656
1656
|
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Component display name.
|
|
1659
1659
|
*/
|
|
1660
|
-
const COMPONENT_NAME$
|
|
1660
|
+
const COMPONENT_NAME$1r = 'IconButton';
|
|
1661
1661
|
|
|
1662
1662
|
/**
|
|
1663
1663
|
* Component default class name and class prefix.
|
|
1664
1664
|
*/
|
|
1665
|
-
const CLASSNAME$
|
|
1665
|
+
const CLASSNAME$1q = 'lumx-icon-button';
|
|
1666
1666
|
|
|
1667
1667
|
/**
|
|
1668
1668
|
* Component default props.
|
|
@@ -1703,8 +1703,8 @@ const IconButton$1 = props => {
|
|
|
1703
1703
|
children: defaultChildren
|
|
1704
1704
|
});
|
|
1705
1705
|
};
|
|
1706
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1707
|
-
IconButton$1.className = CLASSNAME$
|
|
1706
|
+
IconButton$1.displayName = COMPONENT_NAME$1r;
|
|
1707
|
+
IconButton$1.className = CLASSNAME$1q;
|
|
1708
1708
|
IconButton$1.defaultProps = DEFAULT_PROPS$19;
|
|
1709
1709
|
|
|
1710
1710
|
/**
|
|
@@ -1748,19 +1748,19 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1748
1748
|
})
|
|
1749
1749
|
});
|
|
1750
1750
|
});
|
|
1751
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1752
|
-
IconButton.className = CLASSNAME$
|
|
1751
|
+
IconButton.displayName = COMPONENT_NAME$1r;
|
|
1752
|
+
IconButton.className = CLASSNAME$1q;
|
|
1753
1753
|
IconButton.defaultProps = DEFAULT_PROPS$19;
|
|
1754
1754
|
|
|
1755
1755
|
/**
|
|
1756
1756
|
* Component display name.
|
|
1757
1757
|
*/
|
|
1758
|
-
const COMPONENT_NAME$
|
|
1758
|
+
const COMPONENT_NAME$1q = 'ButtonGroup';
|
|
1759
1759
|
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Component default class name and class prefix.
|
|
1762
1762
|
*/
|
|
1763
|
-
const CLASSNAME$
|
|
1763
|
+
const CLASSNAME$1p = 'lumx-button-group';
|
|
1764
1764
|
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Component default props.
|
|
@@ -1781,12 +1781,12 @@ const ButtonGroup$1 = props => {
|
|
|
1781
1781
|
} = props;
|
|
1782
1782
|
return /*#__PURE__*/jsx("div", {
|
|
1783
1783
|
...forwardedProps,
|
|
1784
|
-
className: classnames(className, CLASSNAME$
|
|
1784
|
+
className: classnames(className, CLASSNAME$1p),
|
|
1785
1785
|
children: children
|
|
1786
1786
|
});
|
|
1787
1787
|
};
|
|
1788
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1789
|
-
ButtonGroup$1.className = CLASSNAME$
|
|
1788
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1q;
|
|
1789
|
+
ButtonGroup$1.className = CLASSNAME$1p;
|
|
1790
1790
|
ButtonGroup$1.defaultProps = DEFAULT_PROPS$18;
|
|
1791
1791
|
|
|
1792
1792
|
/**
|
|
@@ -1802,16 +1802,16 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1802
1802
|
...props
|
|
1803
1803
|
});
|
|
1804
1804
|
});
|
|
1805
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1806
|
-
ButtonGroup.className = CLASSNAME$
|
|
1805
|
+
ButtonGroup.displayName = COMPONENT_NAME$1q;
|
|
1806
|
+
ButtonGroup.className = CLASSNAME$1p;
|
|
1807
1807
|
ButtonGroup.defaultProps = DEFAULT_PROPS$18;
|
|
1808
1808
|
|
|
1809
|
-
const COMPONENT_NAME$
|
|
1809
|
+
const COMPONENT_NAME$1p = 'InputLabel';
|
|
1810
1810
|
const InputLabelClassName = 'lumx-input-label';
|
|
1811
|
-
const CLASSNAME$
|
|
1811
|
+
const CLASSNAME$1o = InputLabelClassName;
|
|
1812
1812
|
const {
|
|
1813
|
-
block: block$
|
|
1814
|
-
} = bem(CLASSNAME$
|
|
1813
|
+
block: block$14
|
|
1814
|
+
} = bem(CLASSNAME$1o);
|
|
1815
1815
|
const DEFAULT_PROPS$17 = {};
|
|
1816
1816
|
|
|
1817
1817
|
/**
|
|
@@ -1824,15 +1824,17 @@ function InputLabel$1(props) {
|
|
|
1824
1824
|
htmlFor,
|
|
1825
1825
|
isRequired,
|
|
1826
1826
|
theme,
|
|
1827
|
+
as,
|
|
1827
1828
|
typography: typography$1,
|
|
1828
1829
|
ref,
|
|
1829
1830
|
...forwardedProps
|
|
1830
1831
|
} = props;
|
|
1831
|
-
|
|
1832
|
+
const ComponentToUse = as || 'label';
|
|
1833
|
+
return /*#__PURE__*/jsx(ComponentToUse, {
|
|
1832
1834
|
ref: ref,
|
|
1833
1835
|
...forwardedProps,
|
|
1834
1836
|
htmlFor: htmlFor,
|
|
1835
|
-
className: classnames(className, block$
|
|
1837
|
+
className: classnames(className, block$14({
|
|
1836
1838
|
'is-required': isRequired,
|
|
1837
1839
|
[`theme-${theme}`]: Boolean(theme),
|
|
1838
1840
|
'has-custom-typography': Boolean(typography$1)
|
|
@@ -1840,8 +1842,8 @@ function InputLabel$1(props) {
|
|
|
1840
1842
|
children: children
|
|
1841
1843
|
});
|
|
1842
1844
|
}
|
|
1843
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1844
|
-
InputLabel$1.className = CLASSNAME$
|
|
1845
|
+
InputLabel$1.displayName = COMPONENT_NAME$1p;
|
|
1846
|
+
InputLabel$1.className = CLASSNAME$1o;
|
|
1845
1847
|
InputLabel$1.defaultProps = DEFAULT_PROPS$17;
|
|
1846
1848
|
|
|
1847
1849
|
const INPUT_HELPER_CONFIGURATION = {
|
|
@@ -1856,17 +1858,17 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1856
1858
|
}
|
|
1857
1859
|
};
|
|
1858
1860
|
|
|
1859
|
-
const COMPONENT_NAME$
|
|
1861
|
+
const COMPONENT_NAME$1o = 'InputHelper';
|
|
1860
1862
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1861
1863
|
|
|
1862
1864
|
/**
|
|
1863
1865
|
* Defines the props of the component.
|
|
1864
1866
|
*/
|
|
1865
1867
|
|
|
1866
|
-
const CLASSNAME$
|
|
1868
|
+
const CLASSNAME$1n = InputHelperClassName;
|
|
1867
1869
|
const {
|
|
1868
|
-
block: block$
|
|
1869
|
-
} = bem(CLASSNAME$
|
|
1870
|
+
block: block$13
|
|
1871
|
+
} = bem(CLASSNAME$1n);
|
|
1870
1872
|
|
|
1871
1873
|
/**
|
|
1872
1874
|
* Component default props.
|
|
@@ -1893,15 +1895,15 @@ function InputHelper$1(props) {
|
|
|
1893
1895
|
return /*#__PURE__*/jsx("p", {
|
|
1894
1896
|
ref: ref,
|
|
1895
1897
|
...forwardedProps,
|
|
1896
|
-
className: classnames(className, block$
|
|
1898
|
+
className: classnames(className, block$13({
|
|
1897
1899
|
[`color-${color}`]: Boolean(color),
|
|
1898
1900
|
[`theme-${theme}`]: Boolean(theme)
|
|
1899
1901
|
})),
|
|
1900
1902
|
children: children
|
|
1901
1903
|
});
|
|
1902
1904
|
}
|
|
1903
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1904
|
-
InputHelper$1.className = CLASSNAME$
|
|
1905
|
+
InputHelper$1.displayName = COMPONENT_NAME$1o;
|
|
1906
|
+
InputHelper$1.className = CLASSNAME$1n;
|
|
1905
1907
|
InputHelper$1.defaultProps = DEFAULT_PROPS$16;
|
|
1906
1908
|
|
|
1907
1909
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
@@ -1913,16 +1915,16 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1913
1915
|
/**
|
|
1914
1916
|
* Component display name.
|
|
1915
1917
|
*/
|
|
1916
|
-
const COMPONENT_NAME$
|
|
1918
|
+
const COMPONENT_NAME$1n = 'Checkbox';
|
|
1917
1919
|
|
|
1918
1920
|
/**
|
|
1919
1921
|
* Component default class name and class prefix.
|
|
1920
1922
|
*/
|
|
1921
|
-
const CLASSNAME$
|
|
1923
|
+
const CLASSNAME$1m = 'lumx-checkbox';
|
|
1922
1924
|
const {
|
|
1923
|
-
block: block$
|
|
1925
|
+
block: block$12,
|
|
1924
1926
|
element: element$O
|
|
1925
|
-
} = bem(CLASSNAME$
|
|
1927
|
+
} = bem(CLASSNAME$1m);
|
|
1926
1928
|
|
|
1927
1929
|
/**
|
|
1928
1930
|
* Checkbox component.
|
|
@@ -1958,7 +1960,7 @@ const Checkbox$1 = props => {
|
|
|
1958
1960
|
return /*#__PURE__*/jsxs("div", {
|
|
1959
1961
|
ref: ref,
|
|
1960
1962
|
...forwardedProps,
|
|
1961
|
-
className: classnames(className, block$
|
|
1963
|
+
className: classnames(className, block$12({
|
|
1962
1964
|
// Whether state is intermediate class name will "-checked"
|
|
1963
1965
|
'is-checked': intermediateState ? true : isChecked,
|
|
1964
1966
|
'is-disabled': isDisabled,
|
|
@@ -2077,8 +2079,8 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
2077
2079
|
inputId
|
|
2078
2080
|
});
|
|
2079
2081
|
});
|
|
2080
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
2081
|
-
Checkbox.className = CLASSNAME$
|
|
2082
|
+
Checkbox.displayName = COMPONENT_NAME$1n;
|
|
2083
|
+
Checkbox.className = CLASSNAME$1m;
|
|
2082
2084
|
Checkbox.defaultProps = DEFAULT_PROPS$15;
|
|
2083
2085
|
|
|
2084
2086
|
/**
|
|
@@ -2100,16 +2102,16 @@ function useStopPropagation(handler) {
|
|
|
2100
2102
|
/**
|
|
2101
2103
|
* Component display name.
|
|
2102
2104
|
*/
|
|
2103
|
-
const COMPONENT_NAME$
|
|
2105
|
+
const COMPONENT_NAME$1m = 'Chip';
|
|
2104
2106
|
|
|
2105
2107
|
/**
|
|
2106
2108
|
* Component default class name and class prefix.
|
|
2107
2109
|
*/
|
|
2108
|
-
const CLASSNAME$
|
|
2110
|
+
const CLASSNAME$1l = 'lumx-chip';
|
|
2109
2111
|
const {
|
|
2110
|
-
block: block$
|
|
2112
|
+
block: block$11,
|
|
2111
2113
|
element: element$N
|
|
2112
|
-
} = bem(CLASSNAME$
|
|
2114
|
+
} = bem(CLASSNAME$1l);
|
|
2113
2115
|
|
|
2114
2116
|
/**
|
|
2115
2117
|
* Component default props.
|
|
@@ -2176,7 +2178,7 @@ const Chip$1 = props => {
|
|
|
2176
2178
|
...forwardedProps,
|
|
2177
2179
|
href: !disabledStateProps.disabled ? href : undefined,
|
|
2178
2180
|
ref: ref,
|
|
2179
|
-
className: classnames(className, block$
|
|
2181
|
+
className: classnames(className, block$11({
|
|
2180
2182
|
'is-clickable': isClickable,
|
|
2181
2183
|
[`color-${chipColor}`]: Boolean(chipColor),
|
|
2182
2184
|
'is-disabled': isAnyDisabled,
|
|
@@ -2261,19 +2263,19 @@ const Chip = forwardRef((props, ref) => {
|
|
|
2261
2263
|
...forwardedProps
|
|
2262
2264
|
});
|
|
2263
2265
|
});
|
|
2264
|
-
Chip.displayName = COMPONENT_NAME$
|
|
2265
|
-
Chip.className = CLASSNAME$
|
|
2266
|
+
Chip.displayName = COMPONENT_NAME$1m;
|
|
2267
|
+
Chip.className = CLASSNAME$1l;
|
|
2266
2268
|
Chip.defaultProps = DEFAULT_PROPS$14;
|
|
2267
2269
|
|
|
2268
2270
|
/**
|
|
2269
2271
|
* Component display name.
|
|
2270
2272
|
*/
|
|
2271
|
-
const COMPONENT_NAME$
|
|
2273
|
+
const COMPONENT_NAME$1l = 'ChipGroup';
|
|
2272
2274
|
|
|
2273
2275
|
/**
|
|
2274
2276
|
* Component default class name and class prefix.
|
|
2275
2277
|
*/
|
|
2276
|
-
const CLASSNAME$
|
|
2278
|
+
const CLASSNAME$1k = 'lumx-chip-group';
|
|
2277
2279
|
|
|
2278
2280
|
/**
|
|
2279
2281
|
* Component default props.
|
|
@@ -2296,7 +2298,7 @@ const ChipGroup$1 = props => {
|
|
|
2296
2298
|
return /*#__PURE__*/jsx("div", {
|
|
2297
2299
|
ref: ref,
|
|
2298
2300
|
...forwardedProps,
|
|
2299
|
-
className: classnames(className, CLASSNAME$
|
|
2301
|
+
className: classnames(className, CLASSNAME$1k),
|
|
2300
2302
|
children: children
|
|
2301
2303
|
});
|
|
2302
2304
|
};
|
|
@@ -2374,8 +2376,8 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2374
2376
|
...forwardedProps
|
|
2375
2377
|
});
|
|
2376
2378
|
});
|
|
2377
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2378
|
-
InternalChipGroup.className = CLASSNAME$
|
|
2379
|
+
InternalChipGroup.displayName = COMPONENT_NAME$1l;
|
|
2380
|
+
InternalChipGroup.className = CLASSNAME$1k;
|
|
2379
2381
|
InternalChipGroup.defaultProps = DEFAULT_PROPS$13;
|
|
2380
2382
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2381
2383
|
useChipGroupNavigation
|
|
@@ -2384,16 +2386,16 @@ const ChipGroup = Object.assign(InternalChipGroup, {
|
|
|
2384
2386
|
/**
|
|
2385
2387
|
* Component display name.
|
|
2386
2388
|
*/
|
|
2387
|
-
const COMPONENT_NAME$
|
|
2389
|
+
const COMPONENT_NAME$1k = 'SelectionChipGroup';
|
|
2388
2390
|
|
|
2389
2391
|
/**
|
|
2390
2392
|
* Component default class name and class prefix.
|
|
2391
2393
|
*/
|
|
2392
|
-
const CLASSNAME$
|
|
2394
|
+
const CLASSNAME$1j = 'lumx-selection-chip-group';
|
|
2393
2395
|
const {
|
|
2394
|
-
block: block
|
|
2396
|
+
block: block$10,
|
|
2395
2397
|
element: element$M
|
|
2396
|
-
} = bem(CLASSNAME$
|
|
2398
|
+
} = bem(CLASSNAME$1j);
|
|
2397
2399
|
|
|
2398
2400
|
/**
|
|
2399
2401
|
* SelectionChipGroup component.
|
|
@@ -2431,7 +2433,7 @@ const SelectionChipGroup$1 = (props, {
|
|
|
2431
2433
|
"aria-label": label,
|
|
2432
2434
|
"aria-multiselectable": "true",
|
|
2433
2435
|
"aria-orientation": "horizontal",
|
|
2434
|
-
className: block
|
|
2436
|
+
className: block$10([className]),
|
|
2435
2437
|
children: value.map(v => {
|
|
2436
2438
|
const name = getOptionName && getWithSelector(getOptionName, v) || getWithSelector(getOptionId, v);
|
|
2437
2439
|
const id = getWithSelector(getOptionId, v);
|
|
@@ -2489,10 +2491,10 @@ function createSelectorTreeWalker(container, selector) {
|
|
|
2489
2491
|
}
|
|
2490
2492
|
|
|
2491
2493
|
/** CSS selector for enabled chips (not aria-disabled). */
|
|
2492
|
-
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$
|
|
2494
|
+
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$1l}:not([aria-disabled="true"])`;
|
|
2493
2495
|
|
|
2494
2496
|
/** Find the closest chip element from an event target. */
|
|
2495
|
-
const getChip = target => target?.closest?.(`.${CLASSNAME$
|
|
2497
|
+
const getChip = target => target?.closest?.(`.${CLASSNAME$1l}`) || null;
|
|
2496
2498
|
|
|
2497
2499
|
/** Whether the chip is marked as disabled via aria-disabled. */
|
|
2498
2500
|
const isChipDisabled = chip => chip?.getAttribute('aria-disabled') === 'true';
|
|
@@ -2706,15 +2708,15 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
2706
2708
|
/**
|
|
2707
2709
|
* Component display name.
|
|
2708
2710
|
*/
|
|
2709
|
-
const COMPONENT_NAME$
|
|
2711
|
+
const COMPONENT_NAME$1j = 'Text';
|
|
2710
2712
|
|
|
2711
2713
|
/**
|
|
2712
2714
|
* Component default class name and class prefix.
|
|
2713
2715
|
*/
|
|
2714
|
-
const CLASSNAME$
|
|
2716
|
+
const CLASSNAME$1i = 'lumx-text';
|
|
2715
2717
|
const {
|
|
2716
|
-
block: block
|
|
2717
|
-
} = bem(CLASSNAME$
|
|
2718
|
+
block: block$$
|
|
2719
|
+
} = bem(CLASSNAME$1i);
|
|
2718
2720
|
|
|
2719
2721
|
/**
|
|
2720
2722
|
* Component default props.
|
|
@@ -2755,7 +2757,7 @@ const getTextProps = props => {
|
|
|
2755
2757
|
'--lumx-text-white-space': whiteSpace
|
|
2756
2758
|
};
|
|
2757
2759
|
return {
|
|
2758
|
-
className: classnames(className, block
|
|
2760
|
+
className: classnames(className, block$$({
|
|
2759
2761
|
'is-truncated': isTruncated && !isTruncatedMultiline,
|
|
2760
2762
|
'is-truncated-multiline': isTruncatedMultiline,
|
|
2761
2763
|
'no-wrap': noWrap
|
|
@@ -2804,8 +2806,8 @@ const Text = forwardRef((props, ref) => {
|
|
|
2804
2806
|
children: wrapChildrenIconWithSpaces(children)
|
|
2805
2807
|
});
|
|
2806
2808
|
});
|
|
2807
|
-
Text.displayName = COMPONENT_NAME$
|
|
2808
|
-
Text.className = CLASSNAME$
|
|
2809
|
+
Text.displayName = COMPONENT_NAME$1j;
|
|
2810
|
+
Text.className = CLASSNAME$1i;
|
|
2809
2811
|
Text.defaultProps = DEFAULT_PROPS$12;
|
|
2810
2812
|
|
|
2811
2813
|
/**
|
|
@@ -4898,16 +4900,16 @@ const DEFAULT_PROPS$11 = {
|
|
|
4898
4900
|
/**
|
|
4899
4901
|
* Component display name.
|
|
4900
4902
|
*/
|
|
4901
|
-
const COMPONENT_NAME$
|
|
4903
|
+
const COMPONENT_NAME$1i = 'Tooltip';
|
|
4902
4904
|
|
|
4903
4905
|
/**
|
|
4904
4906
|
* Component default class name and class prefix.
|
|
4905
4907
|
*/
|
|
4906
|
-
const CLASSNAME$
|
|
4908
|
+
const CLASSNAME$1h = 'lumx-tooltip';
|
|
4907
4909
|
const {
|
|
4908
|
-
block: block$
|
|
4910
|
+
block: block$_,
|
|
4909
4911
|
element: element$L
|
|
4910
|
-
} = bem(CLASSNAME$
|
|
4912
|
+
} = bem(CLASSNAME$1h);
|
|
4911
4913
|
|
|
4912
4914
|
/**
|
|
4913
4915
|
* Props for the TooltipPopup rendering component.
|
|
@@ -4938,7 +4940,7 @@ const TooltipPopup = props => {
|
|
|
4938
4940
|
...forwardedProps,
|
|
4939
4941
|
id: id,
|
|
4940
4942
|
role: "tooltip",
|
|
4941
|
-
className: classnames(className, block$
|
|
4943
|
+
className: classnames(className, block$_({
|
|
4942
4944
|
[`position-${position}`]: Boolean(position)
|
|
4943
4945
|
}), isHidden && visuallyHidden()),
|
|
4944
4946
|
style: {
|
|
@@ -4956,8 +4958,8 @@ const TooltipPopup = props => {
|
|
|
4956
4958
|
})]
|
|
4957
4959
|
});
|
|
4958
4960
|
};
|
|
4959
|
-
TooltipPopup.displayName = COMPONENT_NAME$
|
|
4960
|
-
TooltipPopup.className = CLASSNAME$
|
|
4961
|
+
TooltipPopup.displayName = COMPONENT_NAME$1i;
|
|
4962
|
+
TooltipPopup.className = CLASSNAME$1h;
|
|
4961
4963
|
|
|
4962
4964
|
/**
|
|
4963
4965
|
* Add ref and ARIA attribute(s) in tooltip children or wrapped children.
|
|
@@ -5319,8 +5321,8 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5319
5321
|
})]
|
|
5320
5322
|
});
|
|
5321
5323
|
});
|
|
5322
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
5323
|
-
Tooltip.className = CLASSNAME$
|
|
5324
|
+
Tooltip.displayName = COMPONENT_NAME$1i;
|
|
5325
|
+
Tooltip.className = CLASSNAME$1h;
|
|
5324
5326
|
Tooltip.defaultProps = DEFAULT_PROPS$11;
|
|
5325
5327
|
|
|
5326
5328
|
/**
|
|
@@ -6199,8 +6201,8 @@ const SelectionChipGroup = ({
|
|
|
6199
6201
|
}, [container, inputRef, getOptionId]);
|
|
6200
6202
|
useRovingTabIndexContainer({
|
|
6201
6203
|
containerRef: container,
|
|
6202
|
-
itemSelector: `.${CLASSNAME$
|
|
6203
|
-
itemDisabledSelector: `.${CLASSNAME$
|
|
6204
|
+
itemSelector: `.${CLASSNAME$1l}`,
|
|
6205
|
+
itemDisabledSelector: `.${CLASSNAME$1l}[aria-disabled="true"]`
|
|
6204
6206
|
});
|
|
6205
6207
|
|
|
6206
6208
|
// Merge getChipProps and renderChip: getChipProps provides base props, renderChip overrides them,
|
|
@@ -6240,8 +6242,8 @@ const SelectionChipGroup = ({
|
|
|
6240
6242
|
Tooltip
|
|
6241
6243
|
});
|
|
6242
6244
|
};
|
|
6243
|
-
SelectionChipGroup.displayName = COMPONENT_NAME$
|
|
6244
|
-
SelectionChipGroup.className = CLASSNAME$
|
|
6245
|
+
SelectionChipGroup.displayName = COMPONENT_NAME$1k;
|
|
6246
|
+
SelectionChipGroup.className = CLASSNAME$1j;
|
|
6245
6247
|
|
|
6246
6248
|
/**
|
|
6247
6249
|
* Get the value for a combobox option element.
|
|
@@ -6605,9 +6607,9 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6605
6607
|
}
|
|
6606
6608
|
flag = true;
|
|
6607
6609
|
} else if (handle.isOpen && !handle.isMultiSelect) {
|
|
6608
|
-
// Open with no active item (single select) => close the popup
|
|
6610
|
+
// Open with no active item (single select) => close the popup,
|
|
6611
|
+
// but let Enter propagate so it can submit a surrounding form.
|
|
6609
6612
|
handle.setIsOpen(false);
|
|
6610
|
-
flag = true;
|
|
6611
6613
|
}
|
|
6612
6614
|
// Otherwise (closed popup, or multi-select with no active item),
|
|
6613
6615
|
// let Enter pass through so it can submit a surrounding form
|
|
@@ -7130,12 +7132,12 @@ function setupComboboxButton(button, callbacks) {
|
|
|
7130
7132
|
/**
|
|
7131
7133
|
* Component display name.
|
|
7132
7134
|
*/
|
|
7133
|
-
const COMPONENT_NAME$
|
|
7135
|
+
const COMPONENT_NAME$1h = 'ComboboxButton';
|
|
7134
7136
|
|
|
7135
7137
|
/**
|
|
7136
7138
|
* Component default class name and class prefix.
|
|
7137
7139
|
*/
|
|
7138
|
-
const CLASSNAME$
|
|
7140
|
+
const CLASSNAME$1g = 'lumx-combobox-button';
|
|
7139
7141
|
|
|
7140
7142
|
/**
|
|
7141
7143
|
* ComboboxButton core template.
|
|
@@ -7175,7 +7177,7 @@ const ComboboxButton$1 = (props, {
|
|
|
7175
7177
|
const componentProps = {
|
|
7176
7178
|
ref,
|
|
7177
7179
|
...forwardedProps,
|
|
7178
|
-
className: classnames(className, CLASSNAME$
|
|
7180
|
+
className: classnames(className, CLASSNAME$1g),
|
|
7179
7181
|
role: 'combobox',
|
|
7180
7182
|
'aria-controls': listboxId,
|
|
7181
7183
|
'aria-haspopup': 'listbox',
|
|
@@ -7315,8 +7317,8 @@ const ComboboxButton = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
7315
7317
|
Tooltip
|
|
7316
7318
|
});
|
|
7317
7319
|
}), {
|
|
7318
|
-
displayName: COMPONENT_NAME$
|
|
7319
|
-
className: CLASSNAME$
|
|
7320
|
+
displayName: COMPONENT_NAME$1h,
|
|
7321
|
+
className: CLASSNAME$1g
|
|
7320
7322
|
});
|
|
7321
7323
|
|
|
7322
7324
|
/** Options for configuring the input-mode combobox controller. */
|
|
@@ -7476,12 +7478,12 @@ function getDisabledState(context, props) {
|
|
|
7476
7478
|
/**
|
|
7477
7479
|
* Component display name.
|
|
7478
7480
|
*/
|
|
7479
|
-
const COMPONENT_NAME$
|
|
7481
|
+
const COMPONENT_NAME$1g = 'ComboboxInput';
|
|
7480
7482
|
|
|
7481
7483
|
/**
|
|
7482
7484
|
* Component default class name and class prefix.
|
|
7483
7485
|
*/
|
|
7484
|
-
const CLASSNAME$
|
|
7486
|
+
const CLASSNAME$1f = 'lumx-combobox-input';
|
|
7485
7487
|
|
|
7486
7488
|
/**
|
|
7487
7489
|
* ComboboxInput core template.
|
|
@@ -7544,22 +7546,22 @@ const ComboboxInput$1 = (props, {
|
|
|
7544
7546
|
/**
|
|
7545
7547
|
* Component display name.
|
|
7546
7548
|
*/
|
|
7547
|
-
const COMPONENT_NAME$
|
|
7549
|
+
const COMPONENT_NAME$1f = 'TextField';
|
|
7548
7550
|
|
|
7549
7551
|
/**
|
|
7550
7552
|
* Component default class name and class prefix.
|
|
7551
7553
|
*/
|
|
7552
|
-
const CLASSNAME$
|
|
7554
|
+
const CLASSNAME$1e = 'lumx-text-field';
|
|
7553
7555
|
|
|
7554
7556
|
/**
|
|
7555
7557
|
* Input native element class name.
|
|
7556
7558
|
*/
|
|
7557
|
-
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$
|
|
7559
|
+
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$1e}__input-native`;
|
|
7558
7560
|
|
|
7559
7561
|
const {
|
|
7560
|
-
block: block$
|
|
7562
|
+
block: block$Z,
|
|
7561
7563
|
element: element$K
|
|
7562
|
-
} = bem(CLASSNAME$
|
|
7564
|
+
} = bem(CLASSNAME$1e);
|
|
7563
7565
|
|
|
7564
7566
|
/**
|
|
7565
7567
|
* Defines the props of the component.
|
|
@@ -7631,7 +7633,7 @@ const TextField$1 = props => {
|
|
|
7631
7633
|
const isNotEmpty = valueLength > 0;
|
|
7632
7634
|
return /*#__PURE__*/jsxs("div", {
|
|
7633
7635
|
ref: ref,
|
|
7634
|
-
className: classnames(className, block$
|
|
7636
|
+
className: classnames(className, block$Z({
|
|
7635
7637
|
'has-chips': Boolean(chips),
|
|
7636
7638
|
'has-error': !isValid && hasError,
|
|
7637
7639
|
'has-icon': Boolean(icon),
|
|
@@ -7713,7 +7715,7 @@ const TextField$1 = props => {
|
|
|
7713
7715
|
};
|
|
7714
7716
|
|
|
7715
7717
|
const {
|
|
7716
|
-
block: block$
|
|
7718
|
+
block: block$Y
|
|
7717
7719
|
} = bem(INPUT_NATIVE_CLASSNAME);
|
|
7718
7720
|
|
|
7719
7721
|
/**
|
|
@@ -7754,7 +7756,7 @@ const RawInputText$1 = props => {
|
|
|
7754
7756
|
name: name,
|
|
7755
7757
|
type: type,
|
|
7756
7758
|
ref: ref,
|
|
7757
|
-
className: classnames(className, block$
|
|
7759
|
+
className: classnames(className, block$Y({
|
|
7758
7760
|
[`theme-${theme}`]: Boolean(theme),
|
|
7759
7761
|
text: true
|
|
7760
7762
|
})),
|
|
@@ -7784,7 +7786,7 @@ const RawInputText = forwardRef((props, ref) => {
|
|
|
7784
7786
|
});
|
|
7785
7787
|
|
|
7786
7788
|
const {
|
|
7787
|
-
block: block$
|
|
7789
|
+
block: block$X
|
|
7788
7790
|
} = bem(INPUT_NATIVE_CLASSNAME);
|
|
7789
7791
|
|
|
7790
7792
|
/**
|
|
@@ -7824,7 +7826,7 @@ const RawInputTextarea$1 = props => {
|
|
|
7824
7826
|
...forwardedProps,
|
|
7825
7827
|
name: name,
|
|
7826
7828
|
ref: ref,
|
|
7827
|
-
className: classnames(className, block$
|
|
7829
|
+
className: classnames(className, block$X({
|
|
7828
7830
|
[`theme-${theme}`]: Boolean(theme),
|
|
7829
7831
|
textarea: true
|
|
7830
7832
|
})),
|
|
@@ -8064,8 +8066,8 @@ const TextField = forwardRef((props, ref) => {
|
|
|
8064
8066
|
} : undefined
|
|
8065
8067
|
});
|
|
8066
8068
|
});
|
|
8067
|
-
TextField.displayName = COMPONENT_NAME$
|
|
8068
|
-
TextField.className = CLASSNAME$
|
|
8069
|
+
TextField.displayName = COMPONENT_NAME$1f;
|
|
8070
|
+
TextField.className = CLASSNAME$1e;
|
|
8069
8071
|
TextField.defaultProps = DEFAULT_PROPS$Z;
|
|
8070
8072
|
|
|
8071
8073
|
/**
|
|
@@ -8143,21 +8145,21 @@ const ComboboxInput = forwardRef((props, ref) => {
|
|
|
8143
8145
|
IconButton
|
|
8144
8146
|
});
|
|
8145
8147
|
});
|
|
8146
|
-
ComboboxInput.displayName = COMPONENT_NAME$
|
|
8147
|
-
ComboboxInput.className = CLASSNAME$
|
|
8148
|
+
ComboboxInput.displayName = COMPONENT_NAME$1g;
|
|
8149
|
+
ComboboxInput.className = CLASSNAME$1f;
|
|
8148
8150
|
|
|
8149
8151
|
/**
|
|
8150
8152
|
* Component display name.
|
|
8151
8153
|
*/
|
|
8152
|
-
const COMPONENT_NAME$
|
|
8154
|
+
const COMPONENT_NAME$1e = 'List';
|
|
8153
8155
|
|
|
8154
8156
|
/**
|
|
8155
8157
|
* Component default class name and class prefix.
|
|
8156
8158
|
*/
|
|
8157
|
-
const CLASSNAME$
|
|
8159
|
+
const CLASSNAME$1d = 'lumx-list';
|
|
8158
8160
|
const {
|
|
8159
|
-
block: block$
|
|
8160
|
-
} = bem(CLASSNAME$
|
|
8161
|
+
block: block$W
|
|
8162
|
+
} = bem(CLASSNAME$1d);
|
|
8161
8163
|
|
|
8162
8164
|
/**
|
|
8163
8165
|
* Component default props.
|
|
@@ -8180,15 +8182,15 @@ const List$1 = props => {
|
|
|
8180
8182
|
} = props;
|
|
8181
8183
|
return /*#__PURE__*/jsx("ul", {
|
|
8182
8184
|
...forwardedProps,
|
|
8183
|
-
className: classnames(className, block$
|
|
8185
|
+
className: classnames(className, block$W({
|
|
8184
8186
|
[`item-padding-${itemPadding}`]: Boolean(itemPadding)
|
|
8185
8187
|
})),
|
|
8186
8188
|
ref: ref,
|
|
8187
8189
|
children: children
|
|
8188
8190
|
});
|
|
8189
8191
|
};
|
|
8190
|
-
List$1.displayName = COMPONENT_NAME$
|
|
8191
|
-
List$1.className = CLASSNAME$
|
|
8192
|
+
List$1.displayName = COMPONENT_NAME$1e;
|
|
8193
|
+
List$1.className = CLASSNAME$1d;
|
|
8192
8194
|
List$1.defaultProps = DEFAULT_PROPS$Y;
|
|
8193
8195
|
|
|
8194
8196
|
/**
|
|
@@ -8204,12 +8206,12 @@ List$1.defaultProps = DEFAULT_PROPS$Y;
|
|
|
8204
8206
|
/**
|
|
8205
8207
|
* Component display name.
|
|
8206
8208
|
*/
|
|
8207
|
-
const COMPONENT_NAME$
|
|
8209
|
+
const COMPONENT_NAME$1d = 'ComboboxList';
|
|
8208
8210
|
|
|
8209
8211
|
/**
|
|
8210
8212
|
* Component default class name and class prefix.
|
|
8211
8213
|
*/
|
|
8212
|
-
const CLASSNAME$
|
|
8214
|
+
const CLASSNAME$1c = 'lumx-combobox-list';
|
|
8213
8215
|
|
|
8214
8216
|
/**
|
|
8215
8217
|
* ComboboxList core template.
|
|
@@ -8231,7 +8233,7 @@ const ComboboxList$1 = props => {
|
|
|
8231
8233
|
} = props;
|
|
8232
8234
|
return List$1({
|
|
8233
8235
|
...forwardedProps,
|
|
8234
|
-
className: classnames(className, CLASSNAME$
|
|
8236
|
+
className: classnames(className, CLASSNAME$1c),
|
|
8235
8237
|
ref,
|
|
8236
8238
|
itemPadding: 'big',
|
|
8237
8239
|
id,
|
|
@@ -8316,22 +8318,22 @@ const ComboboxList = forwardRef((props, ref) => {
|
|
|
8316
8318
|
})
|
|
8317
8319
|
});
|
|
8318
8320
|
});
|
|
8319
|
-
ComboboxList.displayName = COMPONENT_NAME$
|
|
8320
|
-
ComboboxList.className = CLASSNAME$
|
|
8321
|
+
ComboboxList.displayName = COMPONENT_NAME$1d;
|
|
8322
|
+
ComboboxList.className = CLASSNAME$1c;
|
|
8321
8323
|
|
|
8322
8324
|
/**
|
|
8323
8325
|
* Component display name.
|
|
8324
8326
|
*/
|
|
8325
|
-
const COMPONENT_NAME$
|
|
8327
|
+
const COMPONENT_NAME$1c = 'ListItem';
|
|
8326
8328
|
|
|
8327
8329
|
/**
|
|
8328
8330
|
* Component default class name and class prefix.
|
|
8329
8331
|
*/
|
|
8330
|
-
const CLASSNAME$
|
|
8332
|
+
const CLASSNAME$1b = 'lumx-list-item';
|
|
8331
8333
|
const {
|
|
8332
|
-
block: block$
|
|
8334
|
+
block: block$V,
|
|
8333
8335
|
element: element$J
|
|
8334
|
-
} = bem(CLASSNAME$
|
|
8336
|
+
} = bem(CLASSNAME$1b);
|
|
8335
8337
|
|
|
8336
8338
|
/**
|
|
8337
8339
|
* Component default props.
|
|
@@ -8368,7 +8370,7 @@ const ListItem$1 = props => {
|
|
|
8368
8370
|
return /*#__PURE__*/jsx("li", {
|
|
8369
8371
|
ref: ref,
|
|
8370
8372
|
...forwardedProps,
|
|
8371
|
-
className: classnames(className, block$
|
|
8373
|
+
className: classnames(className, block$V({
|
|
8372
8374
|
[`size-${size}`]: Boolean(size)
|
|
8373
8375
|
})),
|
|
8374
8376
|
children: RawClickable({
|
|
@@ -8398,8 +8400,8 @@ const ListItem$1 = props => {
|
|
|
8398
8400
|
})
|
|
8399
8401
|
});
|
|
8400
8402
|
};
|
|
8401
|
-
ListItem$1.displayName = COMPONENT_NAME$
|
|
8402
|
-
ListItem$1.className = CLASSNAME$
|
|
8403
|
+
ListItem$1.displayName = COMPONENT_NAME$1c;
|
|
8404
|
+
ListItem$1.className = CLASSNAME$1b;
|
|
8403
8405
|
ListItem$1.defaultProps = DEFAULT_PROPS$X;
|
|
8404
8406
|
|
|
8405
8407
|
/**
|
|
@@ -8409,12 +8411,12 @@ ListItem$1.defaultProps = DEFAULT_PROPS$X;
|
|
|
8409
8411
|
/**
|
|
8410
8412
|
* Component display name.
|
|
8411
8413
|
*/
|
|
8412
|
-
const COMPONENT_NAME$
|
|
8414
|
+
const COMPONENT_NAME$1b = 'ListItemAction';
|
|
8413
8415
|
|
|
8414
8416
|
/**
|
|
8415
8417
|
* Component classname (used by action area CSS pattern).
|
|
8416
8418
|
*/
|
|
8417
|
-
const CLASSNAME$
|
|
8419
|
+
const CLASSNAME$1a = 'lumx-action-area__action';
|
|
8418
8420
|
const DEFAULT_PROPS$W = {};
|
|
8419
8421
|
|
|
8420
8422
|
/**
|
|
@@ -8448,16 +8450,16 @@ const ListItemAction$1 = props => {
|
|
|
8448
8450
|
/**
|
|
8449
8451
|
* Component display name.
|
|
8450
8452
|
*/
|
|
8451
|
-
const COMPONENT_NAME$
|
|
8453
|
+
const COMPONENT_NAME$1a = 'ComboboxOption';
|
|
8452
8454
|
|
|
8453
8455
|
/**
|
|
8454
8456
|
* Component default class name and class prefix.
|
|
8455
8457
|
*/
|
|
8456
|
-
const CLASSNAME$
|
|
8458
|
+
const CLASSNAME$19 = 'lumx-combobox-option';
|
|
8457
8459
|
const {
|
|
8458
|
-
block: block$
|
|
8460
|
+
block: block$U,
|
|
8459
8461
|
element: element$I
|
|
8460
|
-
} = bem(CLASSNAME$
|
|
8462
|
+
} = bem(CLASSNAME$19);
|
|
8461
8463
|
|
|
8462
8464
|
/**
|
|
8463
8465
|
* ComboboxOption core template.
|
|
@@ -8519,7 +8521,7 @@ const ComboboxOption$1 = (props, {
|
|
|
8519
8521
|
size: 'tiny',
|
|
8520
8522
|
...forwardedProps,
|
|
8521
8523
|
hidden,
|
|
8522
|
-
className: !hidden ? classnames(className, block$
|
|
8524
|
+
className: !hidden ? classnames(className, block$U()) : undefined,
|
|
8523
8525
|
before,
|
|
8524
8526
|
after,
|
|
8525
8527
|
role: itemRole,
|
|
@@ -8641,8 +8643,8 @@ const ComboboxOption = forwardRef((props, ref) => {
|
|
|
8641
8643
|
Tooltip
|
|
8642
8644
|
});
|
|
8643
8645
|
});
|
|
8644
|
-
ComboboxOption.displayName = COMPONENT_NAME$
|
|
8645
|
-
ComboboxOption.className = CLASSNAME$
|
|
8646
|
+
ComboboxOption.displayName = COMPONENT_NAME$1a;
|
|
8647
|
+
ComboboxOption.className = CLASSNAME$19;
|
|
8646
8648
|
|
|
8647
8649
|
/**
|
|
8648
8650
|
* Defines the props for the core ComboboxOptionAction template.
|
|
@@ -8651,12 +8653,12 @@ ComboboxOption.className = CLASSNAME$18;
|
|
|
8651
8653
|
/**
|
|
8652
8654
|
* Component display name.
|
|
8653
8655
|
*/
|
|
8654
|
-
const COMPONENT_NAME$
|
|
8656
|
+
const COMPONENT_NAME$19 = 'ComboboxOptionAction';
|
|
8655
8657
|
|
|
8656
8658
|
/**
|
|
8657
8659
|
* Component default class name and class prefix.
|
|
8658
8660
|
*/
|
|
8659
|
-
const CLASSNAME$
|
|
8661
|
+
const CLASSNAME$18 = 'lumx-combobox-option-action';
|
|
8660
8662
|
|
|
8661
8663
|
/**
|
|
8662
8664
|
* ComboboxOptionAction core template.
|
|
@@ -8679,7 +8681,7 @@ const ComboboxOptionAction$1 = props => {
|
|
|
8679
8681
|
as: Element,
|
|
8680
8682
|
...forwardedProps,
|
|
8681
8683
|
role: 'gridcell',
|
|
8682
|
-
className: classnames(className, CLASSNAME$
|
|
8684
|
+
className: classnames(className, CLASSNAME$18),
|
|
8683
8685
|
handleClick,
|
|
8684
8686
|
children
|
|
8685
8687
|
});
|
|
@@ -8729,23 +8731,23 @@ const ComboboxOptionAction = Object.assign(forwardRefPolymorphic((props, ref) =>
|
|
|
8729
8731
|
children
|
|
8730
8732
|
});
|
|
8731
8733
|
}), {
|
|
8732
|
-
displayName: COMPONENT_NAME$
|
|
8733
|
-
className: CLASSNAME$
|
|
8734
|
+
displayName: COMPONENT_NAME$19,
|
|
8735
|
+
className: CLASSNAME$18
|
|
8734
8736
|
});
|
|
8735
8737
|
|
|
8736
8738
|
/**
|
|
8737
8739
|
* Component display name.
|
|
8738
8740
|
*/
|
|
8739
|
-
const COMPONENT_NAME$
|
|
8741
|
+
const COMPONENT_NAME$18 = 'ComboboxOptionMoreInfo';
|
|
8740
8742
|
|
|
8741
8743
|
/**
|
|
8742
8744
|
* Component default class name and class prefix.
|
|
8743
8745
|
*/
|
|
8744
|
-
const CLASSNAME$
|
|
8746
|
+
const CLASSNAME$17 = 'lumx-combobox-option-more-info';
|
|
8745
8747
|
const {
|
|
8746
|
-
block: block$
|
|
8748
|
+
block: block$T,
|
|
8747
8749
|
element: element$H
|
|
8748
|
-
} = bem(CLASSNAME$
|
|
8750
|
+
} = bem(CLASSNAME$17);
|
|
8749
8751
|
|
|
8750
8752
|
/**
|
|
8751
8753
|
* ComboboxOptionMoreInfo core template.
|
|
@@ -8779,7 +8781,7 @@ const ComboboxOptionMoreInfo$1 = (props, {
|
|
|
8779
8781
|
icon: mdiInformationOutline,
|
|
8780
8782
|
size: "s",
|
|
8781
8783
|
...buttonProps,
|
|
8782
|
-
className: block$
|
|
8784
|
+
className: block$T([className, buttonProps?.className]),
|
|
8783
8785
|
emphasis: "low",
|
|
8784
8786
|
onMouseEnter: onMouseEnter,
|
|
8785
8787
|
onMouseLeave: onMouseLeave
|
|
@@ -9062,16 +9064,16 @@ const POPOVER_ZINDEX = 9999;
|
|
|
9062
9064
|
/**
|
|
9063
9065
|
* Component display name.
|
|
9064
9066
|
*/
|
|
9065
|
-
const COMPONENT_NAME$
|
|
9067
|
+
const COMPONENT_NAME$17 = 'Popover';
|
|
9066
9068
|
|
|
9067
9069
|
/**
|
|
9068
9070
|
* Component default class name and class prefix.
|
|
9069
9071
|
*/
|
|
9070
|
-
const CLASSNAME$
|
|
9072
|
+
const CLASSNAME$16 = 'lumx-popover';
|
|
9071
9073
|
const {
|
|
9072
|
-
block: block$
|
|
9074
|
+
block: block$S,
|
|
9073
9075
|
element: element$G
|
|
9074
|
-
} = bem(CLASSNAME$
|
|
9076
|
+
} = bem(CLASSNAME$16);
|
|
9075
9077
|
|
|
9076
9078
|
/**
|
|
9077
9079
|
* Component default props (used by framework wrappers).
|
|
@@ -9133,7 +9135,7 @@ const Popover$1 = (props, {
|
|
|
9133
9135
|
children: /*#__PURE__*/jsxs(Component, {
|
|
9134
9136
|
...forwardedProps,
|
|
9135
9137
|
ref: ref,
|
|
9136
|
-
className: classnames(className, block$
|
|
9138
|
+
className: classnames(className, block$S({
|
|
9137
9139
|
[`theme-${theme}`]: Boolean(theme),
|
|
9138
9140
|
[`elevation-${adjustedElevation}`]: Boolean(adjustedElevation),
|
|
9139
9141
|
[`position-${position}`]: Boolean(position),
|
|
@@ -9523,7 +9525,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
9523
9525
|
ThemeProvider
|
|
9524
9526
|
});
|
|
9525
9527
|
});
|
|
9526
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
9528
|
+
_InnerPopover.displayName = COMPONENT_NAME$17;
|
|
9527
9529
|
|
|
9528
9530
|
/**
|
|
9529
9531
|
* Popover component.
|
|
@@ -9535,8 +9537,8 @@ _InnerPopover.displayName = COMPONENT_NAME$16;
|
|
|
9535
9537
|
const Popover = skipRender(
|
|
9536
9538
|
// Skip render in SSR
|
|
9537
9539
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
9538
|
-
Popover.displayName = COMPONENT_NAME$
|
|
9539
|
-
Popover.className = CLASSNAME$
|
|
9540
|
+
Popover.displayName = COMPONENT_NAME$17;
|
|
9541
|
+
Popover.className = CLASSNAME$16;
|
|
9540
9542
|
Popover.defaultProps = DEFAULT_PROPS$V;
|
|
9541
9543
|
|
|
9542
9544
|
/**
|
|
@@ -9599,22 +9601,22 @@ const ComboboxOptionMoreInfo = props => {
|
|
|
9599
9601
|
Popover
|
|
9600
9602
|
});
|
|
9601
9603
|
};
|
|
9602
|
-
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$
|
|
9603
|
-
ComboboxOptionMoreInfo.className = CLASSNAME$
|
|
9604
|
+
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$18;
|
|
9605
|
+
ComboboxOptionMoreInfo.className = CLASSNAME$17;
|
|
9604
9606
|
|
|
9605
9607
|
/**
|
|
9606
9608
|
* Component display name.
|
|
9607
9609
|
*/
|
|
9608
|
-
const COMPONENT_NAME$
|
|
9610
|
+
const COMPONENT_NAME$16 = 'SkeletonTypography';
|
|
9609
9611
|
|
|
9610
9612
|
/**
|
|
9611
9613
|
* Component default class name and class prefix.
|
|
9612
9614
|
*/
|
|
9613
|
-
const CLASSNAME$
|
|
9615
|
+
const CLASSNAME$15 = 'lumx-skeleton-typography';
|
|
9614
9616
|
const {
|
|
9615
|
-
block: block$
|
|
9617
|
+
block: block$R,
|
|
9616
9618
|
element: element$F
|
|
9617
|
-
} = bem(CLASSNAME$
|
|
9619
|
+
} = bem(CLASSNAME$15);
|
|
9618
9620
|
|
|
9619
9621
|
/**
|
|
9620
9622
|
* SkeletonTypography component.
|
|
@@ -9635,7 +9637,7 @@ const SkeletonTypography$1 = props => {
|
|
|
9635
9637
|
return /*#__PURE__*/jsx("div", {
|
|
9636
9638
|
ref: ref,
|
|
9637
9639
|
...forwardedProps,
|
|
9638
|
-
className: classnames(className, block$
|
|
9640
|
+
className: classnames(className, block$R({
|
|
9639
9641
|
[`theme-${theme}`]: Boolean(theme),
|
|
9640
9642
|
[`typography-${typography}`]: Boolean(typography),
|
|
9641
9643
|
[`color-${color}`]: Boolean(color)
|
|
@@ -9653,12 +9655,12 @@ const SkeletonTypography$1 = props => {
|
|
|
9653
9655
|
/**
|
|
9654
9656
|
* Component display name.
|
|
9655
9657
|
*/
|
|
9656
|
-
const COMPONENT_NAME$
|
|
9658
|
+
const COMPONENT_NAME$15 = 'ComboboxOptionSkeleton';
|
|
9657
9659
|
|
|
9658
9660
|
/**
|
|
9659
9661
|
* Component default class name and class prefix.
|
|
9660
9662
|
*/
|
|
9661
|
-
const CLASSNAME$
|
|
9663
|
+
const CLASSNAME$14 = 'lumx-combobox-option-skeleton';
|
|
9662
9664
|
|
|
9663
9665
|
/**
|
|
9664
9666
|
* ComboboxOptionSkeleton core template.
|
|
@@ -9685,7 +9687,7 @@ const ComboboxOptionSkeleton$1 = props => {
|
|
|
9685
9687
|
size: 'tiny',
|
|
9686
9688
|
role: 'none',
|
|
9687
9689
|
...forwardedProps,
|
|
9688
|
-
className: classnames(className, CLASSNAME$
|
|
9690
|
+
className: classnames(className, CLASSNAME$14),
|
|
9689
9691
|
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
9690
9692
|
children: [/*#__PURE__*/jsx(SkeletonTypography$1, {
|
|
9691
9693
|
typography: "body1",
|
|
@@ -9738,19 +9740,19 @@ const ComboboxOptionSkeleton = props => {
|
|
|
9738
9740
|
...props
|
|
9739
9741
|
});
|
|
9740
9742
|
};
|
|
9741
|
-
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$
|
|
9742
|
-
ComboboxOptionSkeleton.className = CLASSNAME$
|
|
9743
|
+
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$15;
|
|
9744
|
+
ComboboxOptionSkeleton.className = CLASSNAME$14;
|
|
9743
9745
|
|
|
9744
|
-
const COMPONENT_NAME$
|
|
9746
|
+
const COMPONENT_NAME$14 = 'ComboboxPopover';
|
|
9745
9747
|
|
|
9746
9748
|
/**
|
|
9747
9749
|
* Component default class name.
|
|
9748
9750
|
*/
|
|
9749
|
-
const CLASSNAME$
|
|
9751
|
+
const CLASSNAME$13 = 'lumx-combobox-popover';
|
|
9750
9752
|
const {
|
|
9751
|
-
block: block$
|
|
9753
|
+
block: block$Q,
|
|
9752
9754
|
element: element$E
|
|
9753
|
-
} = bem(CLASSNAME$
|
|
9755
|
+
} = bem(CLASSNAME$13);
|
|
9754
9756
|
|
|
9755
9757
|
/**
|
|
9756
9758
|
* Defines the props for the core ComboboxPopover template.
|
|
@@ -9791,7 +9793,7 @@ const ComboboxPopover$1 = (props, {
|
|
|
9791
9793
|
...forwardedProps,
|
|
9792
9794
|
placement: placement,
|
|
9793
9795
|
fitToAnchorWidth: fitToAnchorWidth,
|
|
9794
|
-
className: block$
|
|
9796
|
+
className: block$Q([className]),
|
|
9795
9797
|
anchorRef: anchorRef,
|
|
9796
9798
|
isOpen: isOpen,
|
|
9797
9799
|
onClose: handleClose,
|
|
@@ -9813,15 +9815,15 @@ const ComboboxPopover$1 = (props, {
|
|
|
9813
9815
|
/**
|
|
9814
9816
|
* Component display name.
|
|
9815
9817
|
*/
|
|
9816
|
-
const COMPONENT_NAME$
|
|
9818
|
+
const COMPONENT_NAME$13 = 'FlexBox';
|
|
9817
9819
|
|
|
9818
9820
|
/**
|
|
9819
9821
|
* Component default class name and class prefix.
|
|
9820
9822
|
*/
|
|
9821
|
-
const CLASSNAME$
|
|
9823
|
+
const CLASSNAME$12 = 'lumx-flex-box';
|
|
9822
9824
|
const {
|
|
9823
|
-
block: block$
|
|
9824
|
-
} = bem(CLASSNAME$
|
|
9825
|
+
block: block$P
|
|
9826
|
+
} = bem(CLASSNAME$12);
|
|
9825
9827
|
|
|
9826
9828
|
/**
|
|
9827
9829
|
* Get FlexBox component props (className computation).
|
|
@@ -9845,7 +9847,7 @@ function getFlexBoxProps(props) {
|
|
|
9845
9847
|
const adjustedOrientation = orientation ?? (wrap || hAlign || vAlign ? Orientation.horizontal : null);
|
|
9846
9848
|
return {
|
|
9847
9849
|
...forwardedProps,
|
|
9848
|
-
className: classnames(className, block$
|
|
9850
|
+
className: classnames(className, block$P({
|
|
9849
9851
|
[`orientation-${adjustedOrientation}`]: Boolean(adjustedOrientation),
|
|
9850
9852
|
[`v-align-${vAlign}`]: Boolean(vAlign),
|
|
9851
9853
|
[`h-align-${hAlign}`]: Boolean(hAlign),
|
|
@@ -9877,8 +9879,8 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
9877
9879
|
children: children
|
|
9878
9880
|
});
|
|
9879
9881
|
});
|
|
9880
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
9881
|
-
FlexBox.className = CLASSNAME$
|
|
9882
|
+
FlexBox.displayName = COMPONENT_NAME$13;
|
|
9883
|
+
FlexBox.className = CLASSNAME$12;
|
|
9882
9884
|
|
|
9883
9885
|
/**
|
|
9884
9886
|
* Props for Popover that can be passed to Combobox.Popover.
|
|
@@ -9916,8 +9918,8 @@ const ComboboxPopover = props => {
|
|
|
9916
9918
|
FlexBox
|
|
9917
9919
|
});
|
|
9918
9920
|
};
|
|
9919
|
-
ComboboxPopover.displayName = COMPONENT_NAME$
|
|
9920
|
-
ComboboxPopover.className = CLASSNAME$
|
|
9921
|
+
ComboboxPopover.displayName = COMPONENT_NAME$14;
|
|
9922
|
+
ComboboxPopover.className = CLASSNAME$13;
|
|
9921
9923
|
|
|
9922
9924
|
/**
|
|
9923
9925
|
* Combobox.Provider component.
|
|
@@ -9962,12 +9964,12 @@ ComboboxProvider.displayName = 'Combobox.Provider';
|
|
|
9962
9964
|
/**
|
|
9963
9965
|
* Component display name.
|
|
9964
9966
|
*/
|
|
9965
|
-
const COMPONENT_NAME$
|
|
9967
|
+
const COMPONENT_NAME$12 = 'ComboboxSection';
|
|
9966
9968
|
|
|
9967
9969
|
/**
|
|
9968
9970
|
* Component default class name and class prefix.
|
|
9969
9971
|
*/
|
|
9970
|
-
const CLASSNAME$
|
|
9972
|
+
const CLASSNAME$11 = 'lumx-combobox-section';
|
|
9971
9973
|
|
|
9972
9974
|
/**
|
|
9973
9975
|
* ComboboxSection core template.
|
|
@@ -9994,7 +9996,7 @@ const ComboboxSection$1 = (props, {
|
|
|
9994
9996
|
...forwardedProps,
|
|
9995
9997
|
hidden: hidden,
|
|
9996
9998
|
"aria-hidden": ariaHidden || undefined,
|
|
9997
|
-
className: !hidden ? classnames(className, CLASSNAME$
|
|
9999
|
+
className: !hidden ? classnames(className, CLASSNAME$11) : undefined,
|
|
9998
10000
|
role: !ariaHidden ? 'none' : undefined,
|
|
9999
10001
|
itemsWrapperProps: {
|
|
10000
10002
|
role: 'group'
|
|
@@ -10006,16 +10008,16 @@ const ComboboxSection$1 = (props, {
|
|
|
10006
10008
|
/**
|
|
10007
10009
|
* Component display name.
|
|
10008
10010
|
*/
|
|
10009
|
-
const COMPONENT_NAME$
|
|
10011
|
+
const COMPONENT_NAME$11 = 'ListSection';
|
|
10010
10012
|
|
|
10011
10013
|
/**
|
|
10012
10014
|
* Component default class name and class prefix.
|
|
10013
10015
|
*/
|
|
10014
|
-
const CLASSNAME
|
|
10016
|
+
const CLASSNAME$10 = 'lumx-list-section';
|
|
10015
10017
|
const {
|
|
10016
|
-
block: block$
|
|
10018
|
+
block: block$O,
|
|
10017
10019
|
element: element$D
|
|
10018
|
-
} = bem(CLASSNAME
|
|
10020
|
+
} = bem(CLASSNAME$10);
|
|
10019
10021
|
|
|
10020
10022
|
/**
|
|
10021
10023
|
* Component default props.
|
|
@@ -10045,7 +10047,7 @@ const ListSection$1 = props => {
|
|
|
10045
10047
|
return /*#__PURE__*/jsxs("li", {
|
|
10046
10048
|
ref: ref,
|
|
10047
10049
|
...forwardedProps,
|
|
10048
|
-
className: classnames(className, block$
|
|
10050
|
+
className: classnames(className, block$O()),
|
|
10049
10051
|
children: [hasHeader && /*#__PURE__*/jsxs(Text, {
|
|
10050
10052
|
as: "p",
|
|
10051
10053
|
typography: "overline",
|
|
@@ -10062,8 +10064,8 @@ const ListSection$1 = props => {
|
|
|
10062
10064
|
})]
|
|
10063
10065
|
});
|
|
10064
10066
|
};
|
|
10065
|
-
ListSection$1.displayName = COMPONENT_NAME$
|
|
10066
|
-
ListSection$1.className = CLASSNAME
|
|
10067
|
+
ListSection$1.displayName = COMPONENT_NAME$11;
|
|
10068
|
+
ListSection$1.className = CLASSNAME$10;
|
|
10067
10069
|
ListSection$1.defaultProps = DEFAULT_PROPS$U;
|
|
10068
10070
|
|
|
10069
10071
|
/**
|
|
@@ -10086,8 +10088,8 @@ const ListSection = forwardRef((props, ref) => {
|
|
|
10086
10088
|
Text
|
|
10087
10089
|
});
|
|
10088
10090
|
});
|
|
10089
|
-
ListSection.displayName = COMPONENT_NAME$
|
|
10090
|
-
ListSection.className = CLASSNAME
|
|
10091
|
+
ListSection.displayName = COMPONENT_NAME$11;
|
|
10092
|
+
ListSection.className = CLASSNAME$10;
|
|
10091
10093
|
ListSection.defaultProps = DEFAULT_PROPS$U;
|
|
10092
10094
|
|
|
10093
10095
|
/**
|
|
@@ -10136,21 +10138,21 @@ const ComboboxSection = forwardRef((props, ref) => {
|
|
|
10136
10138
|
ListSection
|
|
10137
10139
|
});
|
|
10138
10140
|
});
|
|
10139
|
-
ComboboxSection.displayName = COMPONENT_NAME$
|
|
10140
|
-
ComboboxSection.className = CLASSNAME$
|
|
10141
|
+
ComboboxSection.displayName = COMPONENT_NAME$12;
|
|
10142
|
+
ComboboxSection.className = CLASSNAME$11;
|
|
10141
10143
|
|
|
10142
10144
|
/**
|
|
10143
10145
|
* Component display name.
|
|
10144
10146
|
*/
|
|
10145
|
-
const COMPONENT_NAME
|
|
10147
|
+
const COMPONENT_NAME$10 = 'ComboboxState';
|
|
10146
10148
|
|
|
10147
10149
|
/**
|
|
10148
10150
|
* Component default class name and class prefix.
|
|
10149
10151
|
*/
|
|
10150
|
-
const CLASSNAME
|
|
10152
|
+
const CLASSNAME$$ = 'lumx-combobox-state';
|
|
10151
10153
|
const {
|
|
10152
|
-
block: block$
|
|
10153
|
-
} = bem(CLASSNAME
|
|
10154
|
+
block: block$N
|
|
10155
|
+
} = bem(CLASSNAME$$);
|
|
10154
10156
|
|
|
10155
10157
|
/**
|
|
10156
10158
|
* Defines the props for the core ComboboxState template.
|
|
@@ -10211,7 +10213,7 @@ const ComboboxState$1 = (props, {
|
|
|
10211
10213
|
// the popover's closeMode="hide") and revealing it doesn't trigger announcements.
|
|
10212
10214
|
const renderContent = isOpen;
|
|
10213
10215
|
return /*#__PURE__*/jsxs(GenericBlock, {
|
|
10214
|
-
className: classnames(!show && visuallyHidden(), block$
|
|
10216
|
+
className: classnames(!show && visuallyHidden(), block$N(), padding('regular')),
|
|
10215
10217
|
orientation: "vertical",
|
|
10216
10218
|
...alignProps,
|
|
10217
10219
|
role: "status",
|
|
@@ -10323,16 +10325,16 @@ function partitionMulti(elements, predicates) {
|
|
|
10323
10325
|
/**
|
|
10324
10326
|
* Component display name.
|
|
10325
10327
|
*/
|
|
10326
|
-
const COMPONENT_NAME
|
|
10328
|
+
const COMPONENT_NAME$$ = 'GenericBlock';
|
|
10327
10329
|
|
|
10328
10330
|
/**
|
|
10329
10331
|
* Component default class name and class prefix.
|
|
10330
10332
|
*/
|
|
10331
|
-
const CLASSNAME$
|
|
10333
|
+
const CLASSNAME$_ = 'lumx-generic-block';
|
|
10332
10334
|
const {
|
|
10333
|
-
block: block$
|
|
10335
|
+
block: block$M,
|
|
10334
10336
|
element: element$C
|
|
10335
|
-
} = bem(CLASSNAME$
|
|
10337
|
+
} = bem(CLASSNAME$_);
|
|
10336
10338
|
|
|
10337
10339
|
/**
|
|
10338
10340
|
* Component default props.
|
|
@@ -10371,7 +10373,7 @@ const GenericBlock$1 = props => {
|
|
|
10371
10373
|
} = props;
|
|
10372
10374
|
return /*#__PURE__*/jsxs(FlexBox, {
|
|
10373
10375
|
ref: ref,
|
|
10374
|
-
className: classnames(className, block$
|
|
10376
|
+
className: classnames(className, block$M()),
|
|
10375
10377
|
gap: gap,
|
|
10376
10378
|
orientation: orientation,
|
|
10377
10379
|
...forwardedProps,
|
|
@@ -10474,8 +10476,8 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
10474
10476
|
}) : undefined
|
|
10475
10477
|
});
|
|
10476
10478
|
});
|
|
10477
|
-
BaseGenericBlock.displayName = COMPONENT_NAME
|
|
10478
|
-
BaseGenericBlock.className = CLASSNAME$
|
|
10479
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$$;
|
|
10480
|
+
BaseGenericBlock.className = CLASSNAME$_;
|
|
10479
10481
|
BaseGenericBlock.defaultProps = DEFAULT_PROPS$T;
|
|
10480
10482
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
10481
10483
|
Figure,
|
|
@@ -10554,18 +10556,18 @@ const ComboboxState = props => {
|
|
|
10554
10556
|
Text
|
|
10555
10557
|
});
|
|
10556
10558
|
};
|
|
10557
|
-
ComboboxState.displayName = COMPONENT_NAME
|
|
10558
|
-
ComboboxState.className = CLASSNAME
|
|
10559
|
+
ComboboxState.displayName = COMPONENT_NAME$10;
|
|
10560
|
+
ComboboxState.className = CLASSNAME$$;
|
|
10559
10561
|
|
|
10560
10562
|
/**
|
|
10561
10563
|
* Component display name.
|
|
10562
10564
|
*/
|
|
10563
|
-
const COMPONENT_NAME$
|
|
10565
|
+
const COMPONENT_NAME$_ = 'ListDivider';
|
|
10564
10566
|
|
|
10565
10567
|
/**
|
|
10566
10568
|
* Component default class name and class prefix.
|
|
10567
10569
|
*/
|
|
10568
|
-
const CLASSNAME$
|
|
10570
|
+
const CLASSNAME$Z = 'lumx-list-divider';
|
|
10569
10571
|
|
|
10570
10572
|
/**
|
|
10571
10573
|
* Component default props.
|
|
@@ -10589,11 +10591,11 @@ const ListDivider$1 = props => {
|
|
|
10589
10591
|
ref: ref,
|
|
10590
10592
|
role: "none",
|
|
10591
10593
|
...forwardedProps,
|
|
10592
|
-
className: classnames(className, CLASSNAME$
|
|
10594
|
+
className: classnames(className, CLASSNAME$Z)
|
|
10593
10595
|
});
|
|
10594
10596
|
};
|
|
10595
|
-
ListDivider$1.displayName = COMPONENT_NAME$
|
|
10596
|
-
ListDivider$1.className = CLASSNAME$
|
|
10597
|
+
ListDivider$1.displayName = COMPONENT_NAME$_;
|
|
10598
|
+
ListDivider$1.className = CLASSNAME$Z;
|
|
10597
10599
|
ListDivider$1.defaultProps = DEFAULT_PROPS$S;
|
|
10598
10600
|
|
|
10599
10601
|
/**
|
|
@@ -10614,8 +10616,8 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
10614
10616
|
ref
|
|
10615
10617
|
});
|
|
10616
10618
|
});
|
|
10617
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
10618
|
-
ListDivider.className = CLASSNAME$
|
|
10619
|
+
ListDivider.displayName = COMPONENT_NAME$_;
|
|
10620
|
+
ListDivider.className = CLASSNAME$Z;
|
|
10619
10621
|
ListDivider.defaultProps = DEFAULT_PROPS$S;
|
|
10620
10622
|
|
|
10621
10623
|
/**
|
|
@@ -10665,16 +10667,16 @@ const CommentBlockVariant = {
|
|
|
10665
10667
|
/**
|
|
10666
10668
|
* Component display name.
|
|
10667
10669
|
*/
|
|
10668
|
-
const COMPONENT_NAME$
|
|
10670
|
+
const COMPONENT_NAME$Z = 'CommentBlock';
|
|
10669
10671
|
|
|
10670
10672
|
/**
|
|
10671
10673
|
* Component default class name and class prefix.
|
|
10672
10674
|
*/
|
|
10673
|
-
const CLASSNAME$
|
|
10675
|
+
const CLASSNAME$Y = 'lumx-comment-block';
|
|
10674
10676
|
const {
|
|
10675
|
-
block: block$
|
|
10677
|
+
block: block$L,
|
|
10676
10678
|
element: element$B
|
|
10677
|
-
} = classNames.bem(CLASSNAME$
|
|
10679
|
+
} = classNames.bem(CLASSNAME$Y);
|
|
10678
10680
|
|
|
10679
10681
|
/**
|
|
10680
10682
|
* Component default props.
|
|
@@ -10715,7 +10717,7 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10715
10717
|
const hasChildren = Children.count(children) > 0;
|
|
10716
10718
|
return /*#__PURE__*/jsxs("div", {
|
|
10717
10719
|
ref: ref,
|
|
10718
|
-
className: classNames.join(className, block$
|
|
10720
|
+
className: classNames.join(className, block$L({
|
|
10719
10721
|
'has-children': hasChildren && isOpen,
|
|
10720
10722
|
'has-indented-children': hasChildren && variant === CommentBlockVariant.indented,
|
|
10721
10723
|
'has-linear-children': hasChildren && variant === CommentBlockVariant.linear,
|
|
@@ -10776,8 +10778,8 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
10776
10778
|
})]
|
|
10777
10779
|
});
|
|
10778
10780
|
});
|
|
10779
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
10780
|
-
CommentBlock.className = CLASSNAME$
|
|
10781
|
+
CommentBlock.displayName = COMPONENT_NAME$Z;
|
|
10782
|
+
CommentBlock.className = CLASSNAME$Y;
|
|
10781
10783
|
CommentBlock.defaultProps = DEFAULT_PROPS$R;
|
|
10782
10784
|
|
|
10783
10785
|
/**
|
|
@@ -10798,12 +10800,12 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
10798
10800
|
/**
|
|
10799
10801
|
* Component display name.
|
|
10800
10802
|
*/
|
|
10801
|
-
const COMPONENT_NAME$
|
|
10803
|
+
const COMPONENT_NAME$Y = 'DatePicker';
|
|
10802
10804
|
|
|
10803
10805
|
/**
|
|
10804
10806
|
* Component default class name and class prefix.
|
|
10805
10807
|
*/
|
|
10806
|
-
const CLASSNAME$
|
|
10808
|
+
const CLASSNAME$X = 'lumx-date-picker';
|
|
10807
10809
|
|
|
10808
10810
|
/** Get first day of week for locale from the browser API */
|
|
10809
10811
|
const getFromBrowser = locale => {
|
|
@@ -10956,7 +10958,10 @@ const getMonthCalendar = (locale, referenceDate = new Date(), rangeMinDate, rang
|
|
|
10956
10958
|
const isSameDay = (date1, date2) => isDateValid(date1) && isDateValid(date2) && date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();
|
|
10957
10959
|
|
|
10958
10960
|
/**
|
|
10959
|
-
* Get current browser locale.
|
|
10961
|
+
* Get current browser locale (BCP-47 string).
|
|
10962
|
+
*
|
|
10963
|
+
* Reads `navigator.languages[0]` (the user's preferred language) with a
|
|
10964
|
+
* fallback to `navigator.language`.
|
|
10960
10965
|
*/
|
|
10961
10966
|
const getCurrentLocale = () => navigator.languages?.[0] || navigator.language;
|
|
10962
10967
|
|
|
@@ -11023,7 +11028,7 @@ function formatDayNumber(locale, date) {
|
|
|
11023
11028
|
|
|
11024
11029
|
const {
|
|
11025
11030
|
element: element$A
|
|
11026
|
-
} = classNames.bem(CLASSNAME$
|
|
11031
|
+
} = classNames.bem(CLASSNAME$X);
|
|
11027
11032
|
|
|
11028
11033
|
/**
|
|
11029
11034
|
* Defines the props of the component.
|
|
@@ -11032,7 +11037,7 @@ const {
|
|
|
11032
11037
|
/**
|
|
11033
11038
|
* Component display name.
|
|
11034
11039
|
*/
|
|
11035
|
-
const COMPONENT_NAME$
|
|
11040
|
+
const COMPONENT_NAME$X = 'DatePickerControlled';
|
|
11036
11041
|
|
|
11037
11042
|
/**
|
|
11038
11043
|
* DatePickerControlled component.
|
|
@@ -11117,7 +11122,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11117
11122
|
const yearLabel = getYearDisplayName(locale);
|
|
11118
11123
|
return /*#__PURE__*/jsxs("div", {
|
|
11119
11124
|
ref: ref,
|
|
11120
|
-
className: `${CLASSNAME$
|
|
11125
|
+
className: `${CLASSNAME$X}`,
|
|
11121
11126
|
style: style,
|
|
11122
11127
|
children: [/*#__PURE__*/jsx(Toolbar, {
|
|
11123
11128
|
className: element$A('toolbar'),
|
|
@@ -11222,8 +11227,8 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11222
11227
|
})]
|
|
11223
11228
|
});
|
|
11224
11229
|
});
|
|
11225
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
11226
|
-
DatePickerControlled.className = CLASSNAME$
|
|
11230
|
+
DatePickerControlled.displayName = COMPONENT_NAME$X;
|
|
11231
|
+
DatePickerControlled.className = CLASSNAME$X;
|
|
11227
11232
|
|
|
11228
11233
|
/**
|
|
11229
11234
|
* DatePicker component.
|
|
@@ -11265,8 +11270,8 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
11265
11270
|
onMonthChange: setSelectedMonth
|
|
11266
11271
|
});
|
|
11267
11272
|
});
|
|
11268
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
11269
|
-
DatePicker.className = CLASSNAME$
|
|
11273
|
+
DatePicker.displayName = COMPONENT_NAME$Y;
|
|
11274
|
+
DatePicker.className = CLASSNAME$X;
|
|
11270
11275
|
|
|
11271
11276
|
const useBooleanState = defaultValue => {
|
|
11272
11277
|
const [booleanValue, setBoolean] = useState(defaultValue);
|
|
@@ -11279,7 +11284,7 @@ const useBooleanState = defaultValue => {
|
|
|
11279
11284
|
/**
|
|
11280
11285
|
* Component display name.
|
|
11281
11286
|
*/
|
|
11282
|
-
const COMPONENT_NAME$
|
|
11287
|
+
const COMPONENT_NAME$W = 'DatePickerField';
|
|
11283
11288
|
|
|
11284
11289
|
/**
|
|
11285
11290
|
* DatePickerField component.
|
|
@@ -11368,7 +11373,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
11368
11373
|
}) : null]
|
|
11369
11374
|
});
|
|
11370
11375
|
});
|
|
11371
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
11376
|
+
DatePickerField.displayName = COMPONENT_NAME$W;
|
|
11372
11377
|
|
|
11373
11378
|
/**
|
|
11374
11379
|
* Convenient hook to create interaction observers.
|
|
@@ -11664,16 +11669,16 @@ const useTransitionVisibility = (ref, isComponentVisible, timeout, onVisibilityC
|
|
|
11664
11669
|
/**
|
|
11665
11670
|
* Component display name.
|
|
11666
11671
|
*/
|
|
11667
|
-
const COMPONENT_NAME$
|
|
11672
|
+
const COMPONENT_NAME$V = 'Dialog';
|
|
11668
11673
|
|
|
11669
11674
|
/**
|
|
11670
11675
|
* Component default class name and class prefix.
|
|
11671
11676
|
*/
|
|
11672
|
-
const CLASSNAME$
|
|
11677
|
+
const CLASSNAME$W = 'lumx-dialog';
|
|
11673
11678
|
const {
|
|
11674
|
-
block: block$
|
|
11679
|
+
block: block$K,
|
|
11675
11680
|
element: element$z
|
|
11676
|
-
} = bem(CLASSNAME$
|
|
11681
|
+
} = bem(CLASSNAME$W);
|
|
11677
11682
|
|
|
11678
11683
|
/**
|
|
11679
11684
|
* Component default props.
|
|
@@ -11729,7 +11734,7 @@ const Dialog$1 = props => {
|
|
|
11729
11734
|
children: /*#__PURE__*/jsxs("div", {
|
|
11730
11735
|
ref: ref,
|
|
11731
11736
|
...forwardedProps,
|
|
11732
|
-
className: classnames(className, block$
|
|
11737
|
+
className: classnames(className, block$K({
|
|
11733
11738
|
'is-hidden': !isOpen,
|
|
11734
11739
|
'is-loading': isLoading,
|
|
11735
11740
|
'is-shown': isOpen || isVisible,
|
|
@@ -11946,22 +11951,22 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
11946
11951
|
...forwardedProps
|
|
11947
11952
|
}) : null;
|
|
11948
11953
|
});
|
|
11949
|
-
Dialog.displayName = COMPONENT_NAME$
|
|
11950
|
-
Dialog.className = CLASSNAME$
|
|
11954
|
+
Dialog.displayName = COMPONENT_NAME$V;
|
|
11955
|
+
Dialog.className = CLASSNAME$W;
|
|
11951
11956
|
Dialog.defaultProps = DEFAULT_PROPS$P;
|
|
11952
11957
|
|
|
11953
11958
|
/**
|
|
11954
11959
|
* Component display name.
|
|
11955
11960
|
*/
|
|
11956
|
-
const COMPONENT_NAME$
|
|
11961
|
+
const COMPONENT_NAME$U = 'Divider';
|
|
11957
11962
|
|
|
11958
11963
|
/**
|
|
11959
11964
|
* Component default class name and class prefix.
|
|
11960
11965
|
*/
|
|
11961
|
-
const CLASSNAME$
|
|
11966
|
+
const CLASSNAME$V = 'lumx-divider';
|
|
11962
11967
|
const {
|
|
11963
|
-
block: block$
|
|
11964
|
-
} = bem(CLASSNAME$
|
|
11968
|
+
block: block$J
|
|
11969
|
+
} = bem(CLASSNAME$V);
|
|
11965
11970
|
|
|
11966
11971
|
/**
|
|
11967
11972
|
* Divider component.
|
|
@@ -11979,7 +11984,7 @@ const Divider$1 = props => {
|
|
|
11979
11984
|
return /*#__PURE__*/jsx("hr", {
|
|
11980
11985
|
ref: ref,
|
|
11981
11986
|
...forwardedProps,
|
|
11982
|
-
className: classnames(className, block$
|
|
11987
|
+
className: classnames(className, block$J({
|
|
11983
11988
|
[`theme-${theme}`]: Boolean(theme)
|
|
11984
11989
|
}))
|
|
11985
11990
|
});
|
|
@@ -12013,22 +12018,22 @@ const Divider = forwardRef((props, ref) => {
|
|
|
12013
12018
|
...otherProps
|
|
12014
12019
|
});
|
|
12015
12020
|
});
|
|
12016
|
-
Divider.displayName = COMPONENT_NAME$
|
|
12017
|
-
Divider.className = CLASSNAME$
|
|
12021
|
+
Divider.displayName = COMPONENT_NAME$U;
|
|
12022
|
+
Divider.className = CLASSNAME$V;
|
|
12018
12023
|
Divider.defaultProps = DEFAULT_PROPS$O;
|
|
12019
12024
|
|
|
12020
12025
|
/**
|
|
12021
12026
|
* Component display name.
|
|
12022
12027
|
*/
|
|
12023
|
-
const COMPONENT_NAME$
|
|
12028
|
+
const COMPONENT_NAME$T = 'DragHandle';
|
|
12024
12029
|
|
|
12025
12030
|
/**
|
|
12026
12031
|
* Component default class name and class prefix.
|
|
12027
12032
|
*/
|
|
12028
|
-
const CLASSNAME$
|
|
12033
|
+
const CLASSNAME$U = 'lumx-drag-handle';
|
|
12029
12034
|
const {
|
|
12030
|
-
block: block$
|
|
12031
|
-
} = bem(CLASSNAME$
|
|
12035
|
+
block: block$I
|
|
12036
|
+
} = bem(CLASSNAME$U);
|
|
12032
12037
|
|
|
12033
12038
|
/**
|
|
12034
12039
|
* DragHandle component.
|
|
@@ -12046,7 +12051,7 @@ const DragHandle$1 = props => {
|
|
|
12046
12051
|
return /*#__PURE__*/jsx("div", {
|
|
12047
12052
|
ref: ref,
|
|
12048
12053
|
...forwardedProps,
|
|
12049
|
-
className: classnames(className, block$
|
|
12054
|
+
className: classnames(className, block$I({
|
|
12050
12055
|
[`theme-${theme}`]: Boolean(theme)
|
|
12051
12056
|
})),
|
|
12052
12057
|
children: Icon$1({
|
|
@@ -12085,8 +12090,8 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
12085
12090
|
...otherProps
|
|
12086
12091
|
});
|
|
12087
12092
|
});
|
|
12088
|
-
DragHandle.displayName = COMPONENT_NAME$
|
|
12089
|
-
DragHandle.className = CLASSNAME$
|
|
12093
|
+
DragHandle.displayName = COMPONENT_NAME$T;
|
|
12094
|
+
DragHandle.className = CLASSNAME$U;
|
|
12090
12095
|
DragHandle.defaultProps = DEFAULT_PROPS$N;
|
|
12091
12096
|
|
|
12092
12097
|
const INITIAL_INDEX = -1;
|
|
@@ -12281,8 +12286,8 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
12281
12286
|
itemPadding: adjustedItemPadding
|
|
12282
12287
|
});
|
|
12283
12288
|
});
|
|
12284
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
12285
|
-
InternalList.className = CLASSNAME$
|
|
12289
|
+
InternalList.displayName = COMPONENT_NAME$1e;
|
|
12290
|
+
InternalList.className = CLASSNAME$1d;
|
|
12286
12291
|
InternalList.defaultProps = DEFAULT_PROPS$Y;
|
|
12287
12292
|
const List = Object.assign(InternalList, {
|
|
12288
12293
|
useKeyboardListNavigation
|
|
@@ -12332,16 +12337,16 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
|
|
|
12332
12337
|
/**
|
|
12333
12338
|
* Component display name.
|
|
12334
12339
|
*/
|
|
12335
|
-
const COMPONENT_NAME$
|
|
12340
|
+
const COMPONENT_NAME$S = 'Dropdown';
|
|
12336
12341
|
|
|
12337
12342
|
/**
|
|
12338
12343
|
* Component default class name and class prefix.
|
|
12339
12344
|
*/
|
|
12340
|
-
const CLASSNAME$
|
|
12345
|
+
const CLASSNAME$T = 'lumx-dropdown';
|
|
12341
12346
|
const {
|
|
12342
|
-
block: block$
|
|
12347
|
+
block: block$H,
|
|
12343
12348
|
element: element$y
|
|
12344
|
-
} = classNames.bem(CLASSNAME$
|
|
12349
|
+
} = classNames.bem(CLASSNAME$T);
|
|
12345
12350
|
|
|
12346
12351
|
/**
|
|
12347
12352
|
* Component default props.
|
|
@@ -12405,7 +12410,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12405
12410
|
...forwardedProps,
|
|
12406
12411
|
focusAnchorOnClose: focusAnchorOnClose,
|
|
12407
12412
|
anchorRef: anchorRef,
|
|
12408
|
-
className: classNames.join(className, block$
|
|
12413
|
+
className: classNames.join(className, block$H()),
|
|
12409
12414
|
elevation: 0,
|
|
12410
12415
|
closeOnClickAway: closeOnClickAway,
|
|
12411
12416
|
closeOnEscape: closeOnEscape,
|
|
@@ -12424,23 +12429,23 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
12424
12429
|
})
|
|
12425
12430
|
}) : null;
|
|
12426
12431
|
});
|
|
12427
|
-
Dropdown.displayName = COMPONENT_NAME$
|
|
12428
|
-
Dropdown.className = CLASSNAME$
|
|
12432
|
+
Dropdown.displayName = COMPONENT_NAME$S;
|
|
12433
|
+
Dropdown.className = CLASSNAME$T;
|
|
12429
12434
|
Dropdown.defaultProps = DEFAULT_PROPS$M;
|
|
12430
12435
|
|
|
12431
12436
|
/**
|
|
12432
12437
|
* Component display name.
|
|
12433
12438
|
*/
|
|
12434
|
-
const COMPONENT_NAME$
|
|
12439
|
+
const COMPONENT_NAME$R = 'ExpansionPanel';
|
|
12435
12440
|
|
|
12436
12441
|
/**
|
|
12437
12442
|
* Component default class name and class prefix.
|
|
12438
12443
|
*/
|
|
12439
|
-
const CLASSNAME$
|
|
12444
|
+
const CLASSNAME$S = 'lumx-expansion-panel';
|
|
12440
12445
|
const {
|
|
12441
|
-
block: block$
|
|
12446
|
+
block: block$G,
|
|
12442
12447
|
element: element$x
|
|
12443
|
-
} = bem(CLASSNAME$
|
|
12448
|
+
} = bem(CLASSNAME$S);
|
|
12444
12449
|
|
|
12445
12450
|
/**
|
|
12446
12451
|
* Component default props.
|
|
@@ -12494,7 +12499,7 @@ const ExpansionPanel$1 = props => {
|
|
|
12494
12499
|
}
|
|
12495
12500
|
};
|
|
12496
12501
|
const color = theme === Theme.dark ? ColorPalette.light : ColorPalette.dark;
|
|
12497
|
-
const rootClassName = classnames(className, block$
|
|
12502
|
+
const rootClassName = classnames(className, block$G({
|
|
12498
12503
|
'has-background': hasBackground,
|
|
12499
12504
|
'has-header': Boolean(!isEmpty(headerProps.children)),
|
|
12500
12505
|
'has-header-divider': hasHeaderDivider,
|
|
@@ -12629,17 +12634,17 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
12629
12634
|
...forwardedProps
|
|
12630
12635
|
});
|
|
12631
12636
|
});
|
|
12632
|
-
ExpansionPanel.displayName = COMPONENT_NAME$
|
|
12633
|
-
ExpansionPanel.className = CLASSNAME$
|
|
12637
|
+
ExpansionPanel.displayName = COMPONENT_NAME$R;
|
|
12638
|
+
ExpansionPanel.className = CLASSNAME$S;
|
|
12634
12639
|
ExpansionPanel.defaultProps = DEFAULT_PROPS$L;
|
|
12635
12640
|
|
|
12636
|
-
const COMPONENT_NAME$
|
|
12637
|
-
const CLASSNAME$
|
|
12641
|
+
const COMPONENT_NAME$Q = 'Flag';
|
|
12642
|
+
const CLASSNAME$R = 'lumx-flag';
|
|
12638
12643
|
const DEFAULT_PROPS$K = {};
|
|
12639
12644
|
const {
|
|
12640
|
-
block: block$
|
|
12645
|
+
block: block$F,
|
|
12641
12646
|
element: element$w
|
|
12642
|
-
} = bem(CLASSNAME$
|
|
12647
|
+
} = bem(CLASSNAME$R);
|
|
12643
12648
|
|
|
12644
12649
|
/**
|
|
12645
12650
|
* Flag component.
|
|
@@ -12662,7 +12667,7 @@ const Flag$1 = props => {
|
|
|
12662
12667
|
const isTruncated = !!truncate;
|
|
12663
12668
|
return /*#__PURE__*/jsxs("div", {
|
|
12664
12669
|
...forwardedProps,
|
|
12665
|
-
className: classnames(className, block$
|
|
12670
|
+
className: classnames(className, block$F({
|
|
12666
12671
|
[`color-${flagColor}`]: Boolean(flagColor),
|
|
12667
12672
|
'is-truncated': isTruncated
|
|
12668
12673
|
})),
|
|
@@ -12697,8 +12702,8 @@ const Flag = forwardRef((props, ref) => {
|
|
|
12697
12702
|
Text
|
|
12698
12703
|
});
|
|
12699
12704
|
});
|
|
12700
|
-
Flag.displayName = COMPONENT_NAME$
|
|
12701
|
-
Flag.className = CLASSNAME$
|
|
12705
|
+
Flag.displayName = COMPONENT_NAME$Q;
|
|
12706
|
+
Flag.className = CLASSNAME$R;
|
|
12702
12707
|
Flag.defaultProps = DEFAULT_PROPS$K;
|
|
12703
12708
|
|
|
12704
12709
|
/** The maximum authorized heading level. */
|
|
@@ -12727,12 +12732,12 @@ const defaultContext = {
|
|
|
12727
12732
|
/**
|
|
12728
12733
|
* Component display name.
|
|
12729
12734
|
*/
|
|
12730
|
-
const COMPONENT_NAME$
|
|
12735
|
+
const COMPONENT_NAME$P = 'Heading';
|
|
12731
12736
|
|
|
12732
12737
|
/**
|
|
12733
12738
|
* Component default class name and class prefix.
|
|
12734
12739
|
*/
|
|
12735
|
-
const CLASSNAME$
|
|
12740
|
+
const CLASSNAME$Q = 'lumx-heading';
|
|
12736
12741
|
|
|
12737
12742
|
/**
|
|
12738
12743
|
* Component default props.
|
|
@@ -12757,7 +12762,7 @@ const getHeadingProps = (props, contextHeadingElement) => {
|
|
|
12757
12762
|
return {
|
|
12758
12763
|
...otherProps,
|
|
12759
12764
|
as: computedHeadingElement,
|
|
12760
|
-
className: classnames(className, CLASSNAME$
|
|
12765
|
+
className: classnames(className, CLASSNAME$Q),
|
|
12761
12766
|
typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
|
|
12762
12767
|
};
|
|
12763
12768
|
};
|
|
@@ -12795,8 +12800,8 @@ const Heading = forwardRef((props, ref) => {
|
|
|
12795
12800
|
children: children
|
|
12796
12801
|
});
|
|
12797
12802
|
});
|
|
12798
|
-
Heading.displayName = COMPONENT_NAME$
|
|
12799
|
-
Heading.className = CLASSNAME$
|
|
12803
|
+
Heading.displayName = COMPONENT_NAME$P;
|
|
12804
|
+
Heading.className = CLASSNAME$Q;
|
|
12800
12805
|
Heading.defaultProps = DEFAULT_PROPS$J;
|
|
12801
12806
|
|
|
12802
12807
|
/**
|
|
@@ -12835,15 +12840,15 @@ const HeadingLevelProvider = ({
|
|
|
12835
12840
|
/**
|
|
12836
12841
|
* Component display name.
|
|
12837
12842
|
*/
|
|
12838
|
-
const COMPONENT_NAME$
|
|
12843
|
+
const COMPONENT_NAME$O = 'Grid';
|
|
12839
12844
|
|
|
12840
12845
|
/**
|
|
12841
12846
|
* Component default class name and class prefix.
|
|
12842
12847
|
*/
|
|
12843
|
-
const CLASSNAME$
|
|
12848
|
+
const CLASSNAME$P = 'lumx-grid';
|
|
12844
12849
|
const {
|
|
12845
|
-
block: block$
|
|
12846
|
-
} = classNames.bem(CLASSNAME$
|
|
12850
|
+
block: block$E
|
|
12851
|
+
} = classNames.bem(CLASSNAME$P);
|
|
12847
12852
|
|
|
12848
12853
|
/**
|
|
12849
12854
|
* Component default props.
|
|
@@ -12874,7 +12879,7 @@ const Grid = forwardRef((props, ref) => {
|
|
|
12874
12879
|
return /*#__PURE__*/jsx("div", {
|
|
12875
12880
|
ref: ref,
|
|
12876
12881
|
...forwardedProps,
|
|
12877
|
-
className: classNames.join(className, classNames.bem(`${CLASSNAME$
|
|
12882
|
+
className: classNames.join(className, classNames.bem(`${CLASSNAME$P}-container`).block(), block$E({
|
|
12878
12883
|
[`h-align-${hAlign}`]: Boolean(hAlign),
|
|
12879
12884
|
[`v-align-${vAlign}`]: Boolean(vAlign),
|
|
12880
12885
|
[`orientation-${orientation}`]: Boolean(orientation),
|
|
@@ -12884,22 +12889,22 @@ const Grid = forwardRef((props, ref) => {
|
|
|
12884
12889
|
children: children
|
|
12885
12890
|
});
|
|
12886
12891
|
});
|
|
12887
|
-
Grid.displayName = COMPONENT_NAME$
|
|
12888
|
-
Grid.className = CLASSNAME$
|
|
12892
|
+
Grid.displayName = COMPONENT_NAME$O;
|
|
12893
|
+
Grid.className = CLASSNAME$P;
|
|
12889
12894
|
Grid.defaultProps = DEFAULT_PROPS$I;
|
|
12890
12895
|
|
|
12891
12896
|
/**
|
|
12892
12897
|
* Component display name.
|
|
12893
12898
|
*/
|
|
12894
|
-
const COMPONENT_NAME$
|
|
12899
|
+
const COMPONENT_NAME$N = 'GridItem';
|
|
12895
12900
|
|
|
12896
12901
|
/**
|
|
12897
12902
|
* Component default class name and class prefix.
|
|
12898
12903
|
*/
|
|
12899
|
-
const CLASSNAME$
|
|
12904
|
+
const CLASSNAME$O = 'lumx-grid-item';
|
|
12900
12905
|
const {
|
|
12901
|
-
block: block$
|
|
12902
|
-
} = classNames.bem(CLASSNAME$
|
|
12906
|
+
block: block$D
|
|
12907
|
+
} = classNames.bem(CLASSNAME$O);
|
|
12903
12908
|
|
|
12904
12909
|
/**
|
|
12905
12910
|
* GridItem component.
|
|
@@ -12920,7 +12925,7 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
12920
12925
|
return /*#__PURE__*/jsx("div", {
|
|
12921
12926
|
ref: ref,
|
|
12922
12927
|
...forwardedProps,
|
|
12923
|
-
className: classNames.join(className, block$
|
|
12928
|
+
className: classNames.join(className, block$D({
|
|
12924
12929
|
[`width-${width}`]: Boolean(width),
|
|
12925
12930
|
[`order-${order}`]: Boolean(order),
|
|
12926
12931
|
[`align-${align}`]: Boolean(align)
|
|
@@ -12928,18 +12933,18 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
12928
12933
|
children: children
|
|
12929
12934
|
});
|
|
12930
12935
|
});
|
|
12931
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
12932
|
-
GridItem.className = CLASSNAME$
|
|
12936
|
+
GridItem.displayName = COMPONENT_NAME$N;
|
|
12937
|
+
GridItem.className = CLASSNAME$O;
|
|
12933
12938
|
|
|
12934
12939
|
/**
|
|
12935
12940
|
* Component display name.
|
|
12936
12941
|
*/
|
|
12937
|
-
const COMPONENT_NAME$
|
|
12942
|
+
const COMPONENT_NAME$M = 'GridColumn';
|
|
12938
12943
|
|
|
12939
12944
|
/**
|
|
12940
12945
|
* Component default class name and class prefix.
|
|
12941
12946
|
*/
|
|
12942
|
-
const CLASSNAME$
|
|
12947
|
+
const CLASSNAME$N = 'lumx-grid-column';
|
|
12943
12948
|
|
|
12944
12949
|
/**
|
|
12945
12950
|
* Component default props.
|
|
@@ -12969,7 +12974,7 @@ const GridColumn$1 = props => {
|
|
|
12969
12974
|
return /*#__PURE__*/jsx(Component, {
|
|
12970
12975
|
...forwardedProps,
|
|
12971
12976
|
ref: ref,
|
|
12972
|
-
className: classnames(className, CLASSNAME$
|
|
12977
|
+
className: classnames(className, CLASSNAME$N),
|
|
12973
12978
|
style: {
|
|
12974
12979
|
...style,
|
|
12975
12980
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -12979,8 +12984,8 @@ const GridColumn$1 = props => {
|
|
|
12979
12984
|
children: children
|
|
12980
12985
|
});
|
|
12981
12986
|
};
|
|
12982
|
-
GridColumn$1.displayName = COMPONENT_NAME$
|
|
12983
|
-
GridColumn$1.className = CLASSNAME$
|
|
12987
|
+
GridColumn$1.displayName = COMPONENT_NAME$M;
|
|
12988
|
+
GridColumn$1.className = CLASSNAME$N;
|
|
12984
12989
|
GridColumn$1.defaultProps = DEFAULT_PROPS$H;
|
|
12985
12990
|
|
|
12986
12991
|
/**
|
|
@@ -13009,8 +13014,8 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
13009
13014
|
...props
|
|
13010
13015
|
});
|
|
13011
13016
|
});
|
|
13012
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
13013
|
-
GridColumn.className = CLASSNAME$
|
|
13017
|
+
GridColumn.displayName = COMPONENT_NAME$M;
|
|
13018
|
+
GridColumn.className = CLASSNAME$N;
|
|
13014
13019
|
GridColumn.defaultProps = DEFAULT_PROPS$G;
|
|
13015
13020
|
|
|
13016
13021
|
/**
|
|
@@ -13032,16 +13037,16 @@ const ImageBlockCaptionPosition = {
|
|
|
13032
13037
|
/**
|
|
13033
13038
|
* Component display name.
|
|
13034
13039
|
*/
|
|
13035
|
-
const COMPONENT_NAME$
|
|
13040
|
+
const COMPONENT_NAME$L = 'ImageBlock';
|
|
13036
13041
|
|
|
13037
13042
|
/**
|
|
13038
13043
|
* Component default class name and class prefix.
|
|
13039
13044
|
*/
|
|
13040
|
-
const CLASSNAME$
|
|
13045
|
+
const CLASSNAME$M = 'lumx-image-block';
|
|
13041
13046
|
const {
|
|
13042
|
-
block: block$
|
|
13047
|
+
block: block$C,
|
|
13043
13048
|
element: element$v
|
|
13044
|
-
} = bem(CLASSNAME$
|
|
13049
|
+
} = bem(CLASSNAME$M);
|
|
13045
13050
|
|
|
13046
13051
|
/**
|
|
13047
13052
|
* Component default props.
|
|
@@ -13084,7 +13089,7 @@ const ImageBlock$1 = props => {
|
|
|
13084
13089
|
return /*#__PURE__*/jsxs("figure", {
|
|
13085
13090
|
ref: ref,
|
|
13086
13091
|
...forwardedProps,
|
|
13087
|
-
className: classnames(className, block$
|
|
13092
|
+
className: classnames(className, block$C({
|
|
13088
13093
|
[`caption-position-${captionPosition}`]: Boolean(captionPosition),
|
|
13089
13094
|
[`align-${align}`]: Boolean(align),
|
|
13090
13095
|
[`size-${size}`]: Boolean(size),
|
|
@@ -13102,7 +13107,7 @@ const ImageBlock$1 = props => {
|
|
|
13102
13107
|
alt: alt || title
|
|
13103
13108
|
}), /*#__PURE__*/jsx(ImageCaption, {
|
|
13104
13109
|
as: "figcaption",
|
|
13105
|
-
baseClassName: CLASSNAME$
|
|
13110
|
+
baseClassName: CLASSNAME$M,
|
|
13106
13111
|
theme: theme,
|
|
13107
13112
|
title: title,
|
|
13108
13113
|
titleProps: titleProps,
|
|
@@ -13233,19 +13238,19 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
13233
13238
|
ImageCaption
|
|
13234
13239
|
});
|
|
13235
13240
|
});
|
|
13236
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
13237
|
-
ImageBlock.className = CLASSNAME$
|
|
13241
|
+
ImageBlock.displayName = COMPONENT_NAME$L;
|
|
13242
|
+
ImageBlock.className = CLASSNAME$M;
|
|
13238
13243
|
ImageBlock.defaultProps = DEFAULT_PROPS$F;
|
|
13239
13244
|
|
|
13240
13245
|
/**
|
|
13241
13246
|
* Component display name.
|
|
13242
13247
|
*/
|
|
13243
|
-
const COMPONENT_NAME$
|
|
13248
|
+
const COMPONENT_NAME$K = 'ImageLightbox';
|
|
13244
13249
|
|
|
13245
13250
|
/**
|
|
13246
13251
|
* Component default class name and class prefix.
|
|
13247
13252
|
*/
|
|
13248
|
-
const CLASSNAME$
|
|
13253
|
+
const CLASSNAME$L = 'lumx-image-lightbox';
|
|
13249
13254
|
|
|
13250
13255
|
/**
|
|
13251
13256
|
* Observe element size (only works if it's size depends on the window size).
|
|
@@ -13491,7 +13496,7 @@ function useAnimateScroll(scrollAreaRef) {
|
|
|
13491
13496
|
|
|
13492
13497
|
const {
|
|
13493
13498
|
element: element$u
|
|
13494
|
-
} = classNames.bem(CLASSNAME$
|
|
13499
|
+
} = classNames.bem(CLASSNAME$L);
|
|
13495
13500
|
/** Internal image slide component for ImageLightbox */
|
|
13496
13501
|
const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
13497
13502
|
const {
|
|
@@ -13583,7 +13588,7 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
13583
13588
|
|
|
13584
13589
|
const {
|
|
13585
13590
|
element: element$t
|
|
13586
|
-
} = classNames.bem(CLASSNAME$
|
|
13591
|
+
} = classNames.bem(CLASSNAME$L);
|
|
13587
13592
|
/** Internal image slideshow component for ImageLightbox */
|
|
13588
13593
|
const ImageSlideshow = ({
|
|
13589
13594
|
activeImageIndex,
|
|
@@ -13823,7 +13828,7 @@ function useImageLightbox(props) {
|
|
|
13823
13828
|
viewTransitionName: {
|
|
13824
13829
|
source: currentImageRef,
|
|
13825
13830
|
target: triggerImageRefs[currentIndex],
|
|
13826
|
-
name: CLASSNAME$
|
|
13831
|
+
name: CLASSNAME$L
|
|
13827
13832
|
}
|
|
13828
13833
|
});
|
|
13829
13834
|
}
|
|
@@ -13875,7 +13880,7 @@ function useImageLightbox(props) {
|
|
|
13875
13880
|
viewTransitionName: {
|
|
13876
13881
|
source: triggerImage,
|
|
13877
13882
|
target: currentImageRef,
|
|
13878
|
-
name: CLASSNAME$
|
|
13883
|
+
name: CLASSNAME$L
|
|
13879
13884
|
}
|
|
13880
13885
|
});
|
|
13881
13886
|
}
|
|
@@ -13929,7 +13934,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
13929
13934
|
}, [onClose]);
|
|
13930
13935
|
return /*#__PURE__*/jsx(Lightbox, {
|
|
13931
13936
|
ref: ref,
|
|
13932
|
-
className: classNames.join(className, CLASSNAME$
|
|
13937
|
+
className: classNames.join(className, CLASSNAME$L),
|
|
13933
13938
|
parentElement: parentElement,
|
|
13934
13939
|
isOpen: isOpen,
|
|
13935
13940
|
onClose: onClose,
|
|
@@ -13958,8 +13963,8 @@ const Inner = forwardRef((props, ref) => {
|
|
|
13958
13963
|
})
|
|
13959
13964
|
});
|
|
13960
13965
|
});
|
|
13961
|
-
Inner.displayName = COMPONENT_NAME$
|
|
13962
|
-
Inner.className = CLASSNAME$
|
|
13966
|
+
Inner.displayName = COMPONENT_NAME$K;
|
|
13967
|
+
Inner.className = CLASSNAME$L;
|
|
13963
13968
|
|
|
13964
13969
|
/**
|
|
13965
13970
|
* ImageLightbox component.
|
|
@@ -13975,16 +13980,16 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
13975
13980
|
/**
|
|
13976
13981
|
* Component display name.
|
|
13977
13982
|
*/
|
|
13978
|
-
const COMPONENT_NAME$
|
|
13983
|
+
const COMPONENT_NAME$J = 'InlineList';
|
|
13979
13984
|
|
|
13980
13985
|
/**
|
|
13981
13986
|
* Component default class name and class prefix.
|
|
13982
13987
|
*/
|
|
13983
|
-
const CLASSNAME$
|
|
13988
|
+
const CLASSNAME$K = 'lumx-inline-list';
|
|
13984
13989
|
const {
|
|
13985
|
-
block: block$
|
|
13990
|
+
block: block$B,
|
|
13986
13991
|
element: element$s
|
|
13987
|
-
} = bem(CLASSNAME$
|
|
13992
|
+
} = bem(CLASSNAME$K);
|
|
13988
13993
|
|
|
13989
13994
|
/**
|
|
13990
13995
|
* Component default props.
|
|
@@ -14014,7 +14019,7 @@ const InlineList$1 = props => {
|
|
|
14014
14019
|
jsx("ul", {
|
|
14015
14020
|
...forwardedProps,
|
|
14016
14021
|
ref: ref,
|
|
14017
|
-
className: classnames(className, block$
|
|
14022
|
+
className: classnames(className, block$B({
|
|
14018
14023
|
wrap: Boolean(wrap)
|
|
14019
14024
|
}), color && font(color, colorVariant), typography$1 && typography(typography$1))
|
|
14020
14025
|
// Lists with removed bullet style can lose their a11y list role on some browsers
|
|
@@ -14036,8 +14041,8 @@ const InlineList$1 = props => {
|
|
|
14036
14041
|
})
|
|
14037
14042
|
);
|
|
14038
14043
|
};
|
|
14039
|
-
InlineList$1.displayName = COMPONENT_NAME$
|
|
14040
|
-
InlineList$1.className = CLASSNAME$
|
|
14044
|
+
InlineList$1.displayName = COMPONENT_NAME$J;
|
|
14045
|
+
InlineList$1.className = CLASSNAME$K;
|
|
14041
14046
|
InlineList$1.defaultProps = DEFAULT_PROPS$E;
|
|
14042
14047
|
|
|
14043
14048
|
/**
|
|
@@ -14062,8 +14067,8 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
14062
14067
|
items: Children.toArray(children)
|
|
14063
14068
|
});
|
|
14064
14069
|
});
|
|
14065
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
14066
|
-
InlineList.className = CLASSNAME$
|
|
14070
|
+
InlineList.displayName = COMPONENT_NAME$J;
|
|
14071
|
+
InlineList.className = CLASSNAME$K;
|
|
14067
14072
|
InlineList.defaultProps = DEFAULT_PROPS$E;
|
|
14068
14073
|
|
|
14069
14074
|
/**
|
|
@@ -14107,16 +14112,16 @@ InputLabel.defaultProps = InputLabel$1.defaultProps;
|
|
|
14107
14112
|
/**
|
|
14108
14113
|
* Component display name.
|
|
14109
14114
|
*/
|
|
14110
|
-
const COMPONENT_NAME$
|
|
14115
|
+
const COMPONENT_NAME$I = 'Lightbox';
|
|
14111
14116
|
|
|
14112
14117
|
/**
|
|
14113
14118
|
* Component default class name and class prefix.
|
|
14114
14119
|
*/
|
|
14115
|
-
const CLASSNAME$
|
|
14120
|
+
const CLASSNAME$J = 'lumx-lightbox';
|
|
14116
14121
|
const {
|
|
14117
|
-
block: block$
|
|
14122
|
+
block: block$A,
|
|
14118
14123
|
element: element$r
|
|
14119
|
-
} = bem(CLASSNAME$
|
|
14124
|
+
} = bem(CLASSNAME$J);
|
|
14120
14125
|
|
|
14121
14126
|
/**
|
|
14122
14127
|
* Lightbox component.
|
|
@@ -14163,7 +14168,7 @@ const Lightbox$1 = props => {
|
|
|
14163
14168
|
"aria-modal": "true",
|
|
14164
14169
|
role: "dialog",
|
|
14165
14170
|
tabIndex: -1,
|
|
14166
|
-
className: classnames(className, block$
|
|
14171
|
+
className: classnames(className, block$A({
|
|
14167
14172
|
'is-hidden': !isOpen,
|
|
14168
14173
|
'is-shown': isOpen || isVisible,
|
|
14169
14174
|
[`theme-${theme}`]: Boolean(theme)
|
|
@@ -14300,8 +14305,8 @@ const Lightbox = forwardRef((props, ref) => {
|
|
|
14300
14305
|
...forwardedProps
|
|
14301
14306
|
});
|
|
14302
14307
|
});
|
|
14303
|
-
Lightbox.displayName = COMPONENT_NAME$
|
|
14304
|
-
Lightbox.className = CLASSNAME$
|
|
14308
|
+
Lightbox.displayName = COMPONENT_NAME$I;
|
|
14309
|
+
Lightbox.className = CLASSNAME$J;
|
|
14305
14310
|
|
|
14306
14311
|
/**
|
|
14307
14312
|
* Defines the props of the component.
|
|
@@ -14310,15 +14315,15 @@ Lightbox.className = CLASSNAME$I;
|
|
|
14310
14315
|
/**
|
|
14311
14316
|
* Component display name.
|
|
14312
14317
|
*/
|
|
14313
|
-
const COMPONENT_NAME$
|
|
14318
|
+
const COMPONENT_NAME$H = 'Link';
|
|
14314
14319
|
|
|
14315
14320
|
/**
|
|
14316
14321
|
* Component default class name and class prefix.
|
|
14317
14322
|
*/
|
|
14318
|
-
const CLASSNAME$
|
|
14323
|
+
const CLASSNAME$I = 'lumx-link';
|
|
14319
14324
|
const {
|
|
14320
|
-
block: block$
|
|
14321
|
-
} = bem(CLASSNAME$
|
|
14325
|
+
block: block$z
|
|
14326
|
+
} = bem(CLASSNAME$I);
|
|
14322
14327
|
|
|
14323
14328
|
/**
|
|
14324
14329
|
* Link component.
|
|
@@ -14347,7 +14352,7 @@ const Link$1 = props => {
|
|
|
14347
14352
|
...forwardedProps,
|
|
14348
14353
|
handleClick,
|
|
14349
14354
|
children,
|
|
14350
|
-
className: classnames(className, block$
|
|
14355
|
+
className: classnames(className, block$z({
|
|
14351
14356
|
[`color-${color}`]: Boolean(color),
|
|
14352
14357
|
[`color-variant-${colorVariant}`]: Boolean(colorVariant),
|
|
14353
14358
|
'has-typography': !!typography$1
|
|
@@ -14357,7 +14362,7 @@ const Link$1 = props => {
|
|
|
14357
14362
|
|
|
14358
14363
|
const {
|
|
14359
14364
|
element: element$q
|
|
14360
|
-
} = classNames.bem(CLASSNAME$
|
|
14365
|
+
} = classNames.bem(CLASSNAME$I);
|
|
14361
14366
|
|
|
14362
14367
|
/**
|
|
14363
14368
|
* Defines the props of the component.
|
|
@@ -14403,22 +14408,22 @@ const Link = forwardRef((props, ref) => {
|
|
|
14403
14408
|
}))
|
|
14404
14409
|
});
|
|
14405
14410
|
});
|
|
14406
|
-
Link.displayName = COMPONENT_NAME$
|
|
14407
|
-
Link.className = CLASSNAME$
|
|
14411
|
+
Link.displayName = COMPONENT_NAME$H;
|
|
14412
|
+
Link.className = CLASSNAME$I;
|
|
14408
14413
|
|
|
14409
14414
|
/**
|
|
14410
14415
|
* Component display name.
|
|
14411
14416
|
*/
|
|
14412
|
-
const COMPONENT_NAME$
|
|
14417
|
+
const COMPONENT_NAME$G = 'LinkPreview';
|
|
14413
14418
|
|
|
14414
14419
|
/**
|
|
14415
14420
|
* Component default class name and class prefix.
|
|
14416
14421
|
*/
|
|
14417
|
-
const CLASSNAME$
|
|
14422
|
+
const CLASSNAME$H = 'lumx-link-preview';
|
|
14418
14423
|
const {
|
|
14419
|
-
block: block$
|
|
14424
|
+
block: block$y,
|
|
14420
14425
|
element: element$p
|
|
14421
|
-
} = bem(CLASSNAME$
|
|
14426
|
+
} = bem(CLASSNAME$H);
|
|
14422
14427
|
|
|
14423
14428
|
/**
|
|
14424
14429
|
* Component default props.
|
|
@@ -14457,7 +14462,7 @@ const LinkPreview$1 = props => {
|
|
|
14457
14462
|
return /*#__PURE__*/jsx("article", {
|
|
14458
14463
|
ref: ref,
|
|
14459
14464
|
...forwardedProps,
|
|
14460
|
-
className: classnames(className, block$
|
|
14465
|
+
className: classnames(className, block$y({
|
|
14461
14466
|
[`size-${adjustedSize}`]: Boolean(adjustedSize),
|
|
14462
14467
|
[`theme-${theme}`]: Boolean(theme)
|
|
14463
14468
|
})),
|
|
@@ -14544,8 +14549,8 @@ const LinkPreview = forwardRef((props, ref) => {
|
|
|
14544
14549
|
...forwardedProps
|
|
14545
14550
|
});
|
|
14546
14551
|
});
|
|
14547
|
-
LinkPreview.displayName = COMPONENT_NAME$
|
|
14548
|
-
LinkPreview.className = CLASSNAME$
|
|
14552
|
+
LinkPreview.displayName = COMPONENT_NAME$G;
|
|
14553
|
+
LinkPreview.className = CLASSNAME$H;
|
|
14549
14554
|
LinkPreview.defaultProps = DEFAULT_PROPS$D;
|
|
14550
14555
|
|
|
14551
14556
|
/**
|
|
@@ -14577,8 +14582,8 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
14577
14582
|
children
|
|
14578
14583
|
});
|
|
14579
14584
|
}), {
|
|
14580
|
-
displayName: COMPONENT_NAME$
|
|
14581
|
-
className: CLASSNAME$
|
|
14585
|
+
displayName: COMPONENT_NAME$1b,
|
|
14586
|
+
className: CLASSNAME$1a,
|
|
14582
14587
|
defaultProps: DEFAULT_PROPS$W
|
|
14583
14588
|
});
|
|
14584
14589
|
|
|
@@ -14617,8 +14622,8 @@ const _ListItem = forwardRef((props, ref) => {
|
|
|
14617
14622
|
handleClick: onItemSelected || props.onClick ? handleClick : undefined
|
|
14618
14623
|
});
|
|
14619
14624
|
});
|
|
14620
|
-
_ListItem.displayName = COMPONENT_NAME$
|
|
14621
|
-
_ListItem.className = CLASSNAME$
|
|
14625
|
+
_ListItem.displayName = COMPONENT_NAME$1c;
|
|
14626
|
+
_ListItem.className = CLASSNAME$1b;
|
|
14622
14627
|
_ListItem.defaultProps = DEFAULT_PROPS$X;
|
|
14623
14628
|
|
|
14624
14629
|
/**
|
|
@@ -14632,12 +14637,12 @@ const ListItem = Object.assign(_ListItem, {
|
|
|
14632
14637
|
/**
|
|
14633
14638
|
* Component display name.
|
|
14634
14639
|
*/
|
|
14635
|
-
const COMPONENT_NAME$
|
|
14640
|
+
const COMPONENT_NAME$F = 'ListSubheader';
|
|
14636
14641
|
|
|
14637
14642
|
/**
|
|
14638
14643
|
* Component default class name and class prefix.
|
|
14639
14644
|
*/
|
|
14640
|
-
const CLASSNAME$
|
|
14645
|
+
const CLASSNAME$G = 'lumx-list-subheader';
|
|
14641
14646
|
|
|
14642
14647
|
/**
|
|
14643
14648
|
* ListSubheader component.
|
|
@@ -14656,26 +14661,26 @@ const ListSubheader = forwardRef((props, ref) => {
|
|
|
14656
14661
|
return /*#__PURE__*/jsx("li", {
|
|
14657
14662
|
ref: ref,
|
|
14658
14663
|
...forwardedProps,
|
|
14659
|
-
className: classNames.join(className, CLASSNAME$
|
|
14664
|
+
className: classNames.join(className, CLASSNAME$G),
|
|
14660
14665
|
children: children
|
|
14661
14666
|
});
|
|
14662
14667
|
});
|
|
14663
|
-
ListSubheader.displayName = COMPONENT_NAME$
|
|
14664
|
-
ListSubheader.className = CLASSNAME$
|
|
14668
|
+
ListSubheader.displayName = COMPONENT_NAME$F;
|
|
14669
|
+
ListSubheader.className = CLASSNAME$G;
|
|
14665
14670
|
|
|
14666
14671
|
/**
|
|
14667
14672
|
* Component display name.
|
|
14668
14673
|
*/
|
|
14669
|
-
const COMPONENT_NAME$
|
|
14674
|
+
const COMPONENT_NAME$E = 'Message';
|
|
14670
14675
|
|
|
14671
14676
|
/**
|
|
14672
14677
|
* Component default class name and class prefix.
|
|
14673
14678
|
*/
|
|
14674
|
-
const CLASSNAME$
|
|
14679
|
+
const CLASSNAME$F = 'lumx-message';
|
|
14675
14680
|
const {
|
|
14676
|
-
block: block$
|
|
14681
|
+
block: block$x,
|
|
14677
14682
|
element: element$o
|
|
14678
|
-
} = bem(CLASSNAME$
|
|
14683
|
+
} = bem(CLASSNAME$F);
|
|
14679
14684
|
|
|
14680
14685
|
/**
|
|
14681
14686
|
* Associative map from message kind to color and icon.
|
|
@@ -14728,7 +14733,7 @@ const Message$1 = props => {
|
|
|
14728
14733
|
return /*#__PURE__*/jsxs("div", {
|
|
14729
14734
|
...forwardedProps,
|
|
14730
14735
|
ref: ref,
|
|
14731
|
-
className: classnames(className, block$
|
|
14736
|
+
className: classnames(className, block$x({
|
|
14732
14737
|
[`color-${color}`]: Boolean(color),
|
|
14733
14738
|
'has-background': hasBackground
|
|
14734
14739
|
})),
|
|
@@ -14749,8 +14754,8 @@ const Message$1 = props => {
|
|
|
14749
14754
|
})]
|
|
14750
14755
|
});
|
|
14751
14756
|
};
|
|
14752
|
-
Message$1.displayName = COMPONENT_NAME$
|
|
14753
|
-
Message$1.className = CLASSNAME$
|
|
14757
|
+
Message$1.displayName = COMPONENT_NAME$E;
|
|
14758
|
+
Message$1.className = CLASSNAME$F;
|
|
14754
14759
|
|
|
14755
14760
|
/**
|
|
14756
14761
|
* Message component.
|
|
@@ -14765,22 +14770,22 @@ const Message = forwardRef((props, ref) => {
|
|
|
14765
14770
|
ref
|
|
14766
14771
|
});
|
|
14767
14772
|
});
|
|
14768
|
-
Message.displayName = COMPONENT_NAME$
|
|
14769
|
-
Message.className = CLASSNAME$
|
|
14773
|
+
Message.displayName = COMPONENT_NAME$E;
|
|
14774
|
+
Message.className = CLASSNAME$F;
|
|
14770
14775
|
|
|
14771
14776
|
/**
|
|
14772
14777
|
* Component display name.
|
|
14773
14778
|
*/
|
|
14774
|
-
const COMPONENT_NAME$
|
|
14779
|
+
const COMPONENT_NAME$D = 'Mosaic';
|
|
14775
14780
|
|
|
14776
14781
|
/**
|
|
14777
14782
|
* Component default class name and class prefix.
|
|
14778
14783
|
*/
|
|
14779
|
-
const CLASSNAME$
|
|
14784
|
+
const CLASSNAME$E = 'lumx-mosaic';
|
|
14780
14785
|
const {
|
|
14781
|
-
block: block$
|
|
14786
|
+
block: block$w,
|
|
14782
14787
|
element: element$n
|
|
14783
|
-
} = bem(CLASSNAME$
|
|
14788
|
+
} = bem(CLASSNAME$E);
|
|
14784
14789
|
|
|
14785
14790
|
/**
|
|
14786
14791
|
* Component default props.
|
|
@@ -14814,7 +14819,7 @@ const Mosaic$1 = props => {
|
|
|
14814
14819
|
return /*#__PURE__*/jsx("div", {
|
|
14815
14820
|
ref: ref,
|
|
14816
14821
|
...forwardedProps,
|
|
14817
|
-
className: classnames(className, block$
|
|
14822
|
+
className: classnames(className, block$w({
|
|
14818
14823
|
[`theme-${theme}`]: Boolean(theme),
|
|
14819
14824
|
'has-1-thumbnail': thumbnails?.length === 1,
|
|
14820
14825
|
'has-2-thumbnails': thumbnails?.length === 2,
|
|
@@ -14878,8 +14883,8 @@ const Mosaic = forwardRef((props, ref) => {
|
|
|
14878
14883
|
...forwardedProps
|
|
14879
14884
|
});
|
|
14880
14885
|
});
|
|
14881
|
-
Mosaic.displayName = COMPONENT_NAME$
|
|
14882
|
-
Mosaic.className = CLASSNAME$
|
|
14886
|
+
Mosaic.displayName = COMPONENT_NAME$D;
|
|
14887
|
+
Mosaic.className = CLASSNAME$E;
|
|
14883
14888
|
Mosaic.defaultProps = DEFAULT_PROPS$C;
|
|
14884
14889
|
|
|
14885
14890
|
const NavigationContext = /*#__PURE__*/createContext({
|
|
@@ -14899,16 +14904,16 @@ const ITEM_CLASSNAME = 'lumx-navigation-item';
|
|
|
14899
14904
|
/**
|
|
14900
14905
|
* Component display name.
|
|
14901
14906
|
*/
|
|
14902
|
-
const COMPONENT_NAME$
|
|
14907
|
+
const COMPONENT_NAME$C = 'NavigationSection';
|
|
14903
14908
|
|
|
14904
14909
|
/**
|
|
14905
14910
|
* Component default class name and class prefix.
|
|
14906
14911
|
*/
|
|
14907
|
-
const CLASSNAME$
|
|
14912
|
+
const CLASSNAME$D = 'lumx-navigation-section';
|
|
14908
14913
|
const {
|
|
14909
14914
|
block: sectionBlock,
|
|
14910
14915
|
element: sectionElement
|
|
14911
|
-
} = classNames.bem(CLASSNAME$
|
|
14916
|
+
} = classNames.bem(CLASSNAME$D);
|
|
14912
14917
|
const {
|
|
14913
14918
|
block: itemBlock,
|
|
14914
14919
|
element: itemElement
|
|
@@ -14994,11 +14999,11 @@ const NavigationSection = forwardRef((props, ref) => {
|
|
|
14994
14999
|
}))]
|
|
14995
15000
|
});
|
|
14996
15001
|
});
|
|
14997
|
-
NavigationSection.displayName = COMPONENT_NAME$
|
|
14998
|
-
NavigationSection.className = CLASSNAME$
|
|
15002
|
+
NavigationSection.displayName = COMPONENT_NAME$C;
|
|
15003
|
+
NavigationSection.className = CLASSNAME$D;
|
|
14999
15004
|
|
|
15000
15005
|
const {
|
|
15001
|
-
block: block$
|
|
15006
|
+
block: block$v,
|
|
15002
15007
|
element: element$m
|
|
15003
15008
|
} = classNames.bem(ITEM_CLASSNAME);
|
|
15004
15009
|
|
|
@@ -15023,7 +15028,7 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
15023
15028
|
labelRef
|
|
15024
15029
|
} = useOverflowTooltipLabel(label);
|
|
15025
15030
|
return /*#__PURE__*/jsx("li", {
|
|
15026
|
-
className: classNames.join(className, block$
|
|
15031
|
+
className: classNames.join(className, block$v({
|
|
15027
15032
|
[`theme-${theme}`]: Boolean(theme)
|
|
15028
15033
|
})),
|
|
15029
15034
|
children: /*#__PURE__*/jsx(Tooltip, {
|
|
@@ -15064,16 +15069,16 @@ const NavigationItem = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
15064
15069
|
/**
|
|
15065
15070
|
* Component display name.
|
|
15066
15071
|
*/
|
|
15067
|
-
const COMPONENT_NAME$
|
|
15072
|
+
const COMPONENT_NAME$B = 'Navigation';
|
|
15068
15073
|
|
|
15069
15074
|
/**
|
|
15070
15075
|
* Component default class name and class prefix.
|
|
15071
15076
|
*/
|
|
15072
|
-
const CLASSNAME$
|
|
15077
|
+
const CLASSNAME$C = 'lumx-navigation';
|
|
15073
15078
|
const {
|
|
15074
|
-
block: block$
|
|
15079
|
+
block: block$u,
|
|
15075
15080
|
element: element$l
|
|
15076
|
-
} = classNames.bem(CLASSNAME$
|
|
15081
|
+
} = classNames.bem(CLASSNAME$C);
|
|
15077
15082
|
|
|
15078
15083
|
/**
|
|
15079
15084
|
* Component default props
|
|
@@ -15093,7 +15098,7 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
15093
15098
|
return /*#__PURE__*/jsx(ThemeProvider, {
|
|
15094
15099
|
value: theme,
|
|
15095
15100
|
children: /*#__PURE__*/jsx("nav", {
|
|
15096
|
-
className: classNames.join(className, block$
|
|
15101
|
+
className: classNames.join(className, block$u({
|
|
15097
15102
|
[`theme-${theme}`]: Boolean(theme),
|
|
15098
15103
|
[`orientation-${orientation}`]: Boolean(orientation)
|
|
15099
15104
|
})),
|
|
@@ -15111,8 +15116,8 @@ const Navigation = forwardRef((props, ref) => {
|
|
|
15111
15116
|
})
|
|
15112
15117
|
});
|
|
15113
15118
|
});
|
|
15114
|
-
Navigation.displayName = COMPONENT_NAME$
|
|
15115
|
-
Navigation.className = CLASSNAME$
|
|
15119
|
+
Navigation.displayName = COMPONENT_NAME$B;
|
|
15120
|
+
Navigation.className = CLASSNAME$C;
|
|
15116
15121
|
Navigation.defaultProps = DEFAULT_PROPS$B;
|
|
15117
15122
|
|
|
15118
15123
|
// Sub components
|
|
@@ -15144,16 +15149,16 @@ const NOTIFICATION_CONFIGURATION = {
|
|
|
15144
15149
|
/**
|
|
15145
15150
|
* Component display name.
|
|
15146
15151
|
*/
|
|
15147
|
-
const COMPONENT_NAME$
|
|
15152
|
+
const COMPONENT_NAME$A = 'Notification';
|
|
15148
15153
|
|
|
15149
15154
|
/**
|
|
15150
15155
|
* Component default class name and class prefix.
|
|
15151
15156
|
*/
|
|
15152
|
-
const CLASSNAME$
|
|
15157
|
+
const CLASSNAME$B = 'lumx-notification';
|
|
15153
15158
|
const {
|
|
15154
|
-
block: block$
|
|
15159
|
+
block: block$t,
|
|
15155
15160
|
element: element$k
|
|
15156
|
-
} = classNames.bem(CLASSNAME$
|
|
15161
|
+
} = classNames.bem(CLASSNAME$B);
|
|
15157
15162
|
|
|
15158
15163
|
/**
|
|
15159
15164
|
* Component default props.
|
|
@@ -15213,7 +15218,7 @@ const Notification = forwardRef((props, ref) => {
|
|
|
15213
15218
|
ref: mergeRefs(ref, rootRef),
|
|
15214
15219
|
role: "alert",
|
|
15215
15220
|
...forwardedProps,
|
|
15216
|
-
className: classNames.join(className, block$
|
|
15221
|
+
className: classNames.join(className, block$t({
|
|
15217
15222
|
[`color-${color}`]: Boolean(color),
|
|
15218
15223
|
'has-action': hasAction,
|
|
15219
15224
|
'is-hidden': !isOpen
|
|
@@ -15246,8 +15251,8 @@ const Notification = forwardRef((props, ref) => {
|
|
|
15246
15251
|
})
|
|
15247
15252
|
});
|
|
15248
15253
|
});
|
|
15249
|
-
Notification.displayName = COMPONENT_NAME$
|
|
15250
|
-
Notification.className = CLASSNAME$
|
|
15254
|
+
Notification.displayName = COMPONENT_NAME$A;
|
|
15255
|
+
Notification.className = CLASSNAME$B;
|
|
15251
15256
|
Notification.defaultProps = DEFAULT_PROPS$A;
|
|
15252
15257
|
|
|
15253
15258
|
/**
|
|
@@ -15258,12 +15263,12 @@ Notification.defaultProps = DEFAULT_PROPS$A;
|
|
|
15258
15263
|
/**
|
|
15259
15264
|
* Component display name.
|
|
15260
15265
|
*/
|
|
15261
|
-
const COMPONENT_NAME$
|
|
15266
|
+
const COMPONENT_NAME$z = 'PopoverDialog';
|
|
15262
15267
|
|
|
15263
15268
|
/**
|
|
15264
15269
|
* Component default class name and class prefix.
|
|
15265
15270
|
*/
|
|
15266
|
-
const CLASSNAME$
|
|
15271
|
+
const CLASSNAME$A = 'lumx-popover-dialog';
|
|
15267
15272
|
|
|
15268
15273
|
/**
|
|
15269
15274
|
* Component default props.
|
|
@@ -15289,7 +15294,7 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
15289
15294
|
return /*#__PURE__*/jsx(Popover, {
|
|
15290
15295
|
...forwardedProps,
|
|
15291
15296
|
ref: ref,
|
|
15292
|
-
className: classNames.join(className, CLASSNAME$
|
|
15297
|
+
className: classNames.join(className, CLASSNAME$A),
|
|
15293
15298
|
role: "dialog",
|
|
15294
15299
|
"aria-modal": "true"
|
|
15295
15300
|
/**
|
|
@@ -15306,23 +15311,23 @@ const PopoverDialog = forwardRef((props, ref) => {
|
|
|
15306
15311
|
})
|
|
15307
15312
|
});
|
|
15308
15313
|
});
|
|
15309
|
-
PopoverDialog.displayName = COMPONENT_NAME$
|
|
15310
|
-
PopoverDialog.className = CLASSNAME$
|
|
15314
|
+
PopoverDialog.displayName = COMPONENT_NAME$z;
|
|
15315
|
+
PopoverDialog.className = CLASSNAME$A;
|
|
15311
15316
|
PopoverDialog.defaultProps = DEFAULT_PROPS$z;
|
|
15312
15317
|
|
|
15313
15318
|
/**
|
|
15314
15319
|
* Component display name.
|
|
15315
15320
|
*/
|
|
15316
|
-
const COMPONENT_NAME$
|
|
15321
|
+
const COMPONENT_NAME$y = 'PostBlock';
|
|
15317
15322
|
|
|
15318
15323
|
/**
|
|
15319
15324
|
* Component default class name and class prefix.
|
|
15320
15325
|
*/
|
|
15321
|
-
const CLASSNAME$
|
|
15326
|
+
const CLASSNAME$z = 'lumx-post-block';
|
|
15322
15327
|
const {
|
|
15323
|
-
block: block$
|
|
15328
|
+
block: block$s,
|
|
15324
15329
|
element: element$j
|
|
15325
|
-
} = classNames.bem(CLASSNAME$
|
|
15330
|
+
} = classNames.bem(CLASSNAME$z);
|
|
15326
15331
|
|
|
15327
15332
|
/**
|
|
15328
15333
|
* Component default props.
|
|
@@ -15357,7 +15362,7 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
15357
15362
|
} = props;
|
|
15358
15363
|
return /*#__PURE__*/jsxs("div", {
|
|
15359
15364
|
ref: ref,
|
|
15360
|
-
className: classNames.join(className, block$
|
|
15365
|
+
className: classNames.join(className, block$s({
|
|
15361
15366
|
[`orientation-${orientation}`]: Boolean(orientation),
|
|
15362
15367
|
[`theme-${theme}`]: Boolean(theme)
|
|
15363
15368
|
})),
|
|
@@ -15407,23 +15412,23 @@ const PostBlock = forwardRef((props, ref) => {
|
|
|
15407
15412
|
})]
|
|
15408
15413
|
});
|
|
15409
15414
|
});
|
|
15410
|
-
PostBlock.displayName = COMPONENT_NAME$
|
|
15411
|
-
PostBlock.className = CLASSNAME$
|
|
15415
|
+
PostBlock.displayName = COMPONENT_NAME$y;
|
|
15416
|
+
PostBlock.className = CLASSNAME$z;
|
|
15412
15417
|
PostBlock.defaultProps = DEFAULT_PROPS$y;
|
|
15413
15418
|
|
|
15414
15419
|
/**
|
|
15415
15420
|
* Component display name.
|
|
15416
15421
|
*/
|
|
15417
|
-
const COMPONENT_NAME$
|
|
15422
|
+
const COMPONENT_NAME$x = 'ProgressLinear';
|
|
15418
15423
|
|
|
15419
15424
|
/**
|
|
15420
15425
|
* Component default class name and class prefix.
|
|
15421
15426
|
*/
|
|
15422
|
-
const CLASSNAME$
|
|
15427
|
+
const CLASSNAME$y = 'lumx-progress-linear';
|
|
15423
15428
|
const {
|
|
15424
|
-
block: block$
|
|
15429
|
+
block: block$r,
|
|
15425
15430
|
element: element$i
|
|
15426
|
-
} = bem(CLASSNAME$
|
|
15431
|
+
} = bem(CLASSNAME$y);
|
|
15427
15432
|
|
|
15428
15433
|
/**
|
|
15429
15434
|
* Component default props.
|
|
@@ -15446,7 +15451,7 @@ const ProgressLinear$1 = props => {
|
|
|
15446
15451
|
return /*#__PURE__*/jsxs("div", {
|
|
15447
15452
|
ref: ref,
|
|
15448
15453
|
...forwardedProps,
|
|
15449
|
-
className: classnames(className, block$
|
|
15454
|
+
className: classnames(className, block$r({
|
|
15450
15455
|
[`theme-${theme}`]: Boolean(theme)
|
|
15451
15456
|
})),
|
|
15452
15457
|
children: [/*#__PURE__*/jsx("div", {
|
|
@@ -15480,8 +15485,8 @@ const ProgressLinear = forwardRef((props, ref) => {
|
|
|
15480
15485
|
...otherProps
|
|
15481
15486
|
});
|
|
15482
15487
|
});
|
|
15483
|
-
ProgressLinear.displayName = COMPONENT_NAME$
|
|
15484
|
-
ProgressLinear.className = CLASSNAME$
|
|
15488
|
+
ProgressLinear.displayName = COMPONENT_NAME$x;
|
|
15489
|
+
ProgressLinear.className = CLASSNAME$y;
|
|
15485
15490
|
ProgressLinear.defaultProps = DEFAULT_PROPS$x;
|
|
15486
15491
|
|
|
15487
15492
|
/* eslint-disable react/no-unknown-property */
|
|
@@ -15489,16 +15494,16 @@ ProgressLinear.defaultProps = DEFAULT_PROPS$x;
|
|
|
15489
15494
|
/**
|
|
15490
15495
|
* Component display name.
|
|
15491
15496
|
*/
|
|
15492
|
-
const COMPONENT_NAME$
|
|
15497
|
+
const COMPONENT_NAME$w = 'ProgressCircular';
|
|
15493
15498
|
|
|
15494
15499
|
/**
|
|
15495
15500
|
* Component default class name and class prefix.
|
|
15496
15501
|
*/
|
|
15497
|
-
const CLASSNAME$
|
|
15502
|
+
const CLASSNAME$x = 'lumx-progress-circular';
|
|
15498
15503
|
const {
|
|
15499
|
-
block: block$
|
|
15504
|
+
block: block$q,
|
|
15500
15505
|
element: element$h
|
|
15501
|
-
} = bem(CLASSNAME$
|
|
15506
|
+
} = bem(CLASSNAME$x);
|
|
15502
15507
|
|
|
15503
15508
|
/**
|
|
15504
15509
|
* Component default props.
|
|
@@ -15529,7 +15534,7 @@ const ProgressCircular$1 = props => {
|
|
|
15529
15534
|
return /*#__PURE__*/jsxs(Element, {
|
|
15530
15535
|
ref: ref,
|
|
15531
15536
|
...forwardedProps,
|
|
15532
|
-
className: classnames(className, block$
|
|
15537
|
+
className: classnames(className, block$q({
|
|
15533
15538
|
[`theme-${theme}`]: Boolean(theme),
|
|
15534
15539
|
[`size-${size}`]: Boolean(size),
|
|
15535
15540
|
[`display-${display}`]: Boolean(display)
|
|
@@ -15582,8 +15587,8 @@ const ProgressCircular = forwardRef((props, ref) => {
|
|
|
15582
15587
|
}
|
|
15583
15588
|
});
|
|
15584
15589
|
});
|
|
15585
|
-
ProgressCircular.displayName = COMPONENT_NAME$
|
|
15586
|
-
ProgressCircular.className = CLASSNAME$
|
|
15590
|
+
ProgressCircular.displayName = COMPONENT_NAME$w;
|
|
15591
|
+
ProgressCircular.className = CLASSNAME$x;
|
|
15587
15592
|
ProgressCircular.defaultProps = DEFAULT_PROPS$w;
|
|
15588
15593
|
|
|
15589
15594
|
const ProgressVariant = {
|
|
@@ -15598,15 +15603,15 @@ const ProgressVariant = {
|
|
|
15598
15603
|
/**
|
|
15599
15604
|
* Component display name.
|
|
15600
15605
|
*/
|
|
15601
|
-
const COMPONENT_NAME$
|
|
15606
|
+
const COMPONENT_NAME$v = 'Progress';
|
|
15602
15607
|
|
|
15603
15608
|
/**
|
|
15604
15609
|
* Component default class name and class prefix.
|
|
15605
15610
|
*/
|
|
15606
|
-
const CLASSNAME$
|
|
15611
|
+
const CLASSNAME$w = 'lumx-progress';
|
|
15607
15612
|
const {
|
|
15608
|
-
block: block$
|
|
15609
|
-
} = classNames.bem(CLASSNAME$
|
|
15613
|
+
block: block$p
|
|
15614
|
+
} = classNames.bem(CLASSNAME$w);
|
|
15610
15615
|
|
|
15611
15616
|
/**
|
|
15612
15617
|
* Component default props.
|
|
@@ -15634,7 +15639,7 @@ const Progress = forwardRef((props, ref) => {
|
|
|
15634
15639
|
return /*#__PURE__*/jsxs("div", {
|
|
15635
15640
|
ref: ref,
|
|
15636
15641
|
...forwardedProps,
|
|
15637
|
-
className: classNames.join(className, block$
|
|
15642
|
+
className: classNames.join(className, block$p({
|
|
15638
15643
|
[`theme-${theme}`]: Boolean(theme),
|
|
15639
15644
|
[`variant-${variant}`]: Boolean(variant)
|
|
15640
15645
|
})),
|
|
@@ -15645,8 +15650,8 @@ const Progress = forwardRef((props, ref) => {
|
|
|
15645
15650
|
})]
|
|
15646
15651
|
});
|
|
15647
15652
|
});
|
|
15648
|
-
Progress.displayName = COMPONENT_NAME$
|
|
15649
|
-
Progress.className = CLASSNAME$
|
|
15653
|
+
Progress.displayName = COMPONENT_NAME$v;
|
|
15654
|
+
Progress.className = CLASSNAME$w;
|
|
15650
15655
|
Progress.defaultProps = DEFAULT_PROPS$v;
|
|
15651
15656
|
|
|
15652
15657
|
const INIT_STATE = {
|
|
@@ -15830,16 +15835,16 @@ ProgressTrackerProvider.defaultProps = DEFAULT_PROPS$u;
|
|
|
15830
15835
|
/**
|
|
15831
15836
|
* Component display name.
|
|
15832
15837
|
*/
|
|
15833
|
-
const COMPONENT_NAME$
|
|
15838
|
+
const COMPONENT_NAME$u = 'ProgressTracker';
|
|
15834
15839
|
|
|
15835
15840
|
/**
|
|
15836
15841
|
* Component default class name and class prefix.
|
|
15837
15842
|
*/
|
|
15838
|
-
const CLASSNAME$
|
|
15843
|
+
const CLASSNAME$v = 'lumx-progress-tracker';
|
|
15839
15844
|
const {
|
|
15840
|
-
block: block$
|
|
15845
|
+
block: block$o,
|
|
15841
15846
|
element: element$g
|
|
15842
|
-
} = classNames.bem(CLASSNAME$
|
|
15847
|
+
} = classNames.bem(CLASSNAME$v);
|
|
15843
15848
|
|
|
15844
15849
|
/**
|
|
15845
15850
|
* Component default props.
|
|
@@ -15874,7 +15879,7 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
15874
15879
|
return /*#__PURE__*/jsxs("div", {
|
|
15875
15880
|
ref: mergeRefs(ref, stepListRef),
|
|
15876
15881
|
...forwardedProps,
|
|
15877
|
-
className: classNames.join(className, block$
|
|
15882
|
+
className: classNames.join(className, block$o()),
|
|
15878
15883
|
children: [/*#__PURE__*/jsx("div", {
|
|
15879
15884
|
className: element$g('steps'),
|
|
15880
15885
|
role: "tablist",
|
|
@@ -15896,23 +15901,23 @@ const ProgressTracker = forwardRef((props, ref) => {
|
|
|
15896
15901
|
})]
|
|
15897
15902
|
});
|
|
15898
15903
|
});
|
|
15899
|
-
ProgressTracker.displayName = COMPONENT_NAME$
|
|
15900
|
-
ProgressTracker.className = CLASSNAME$
|
|
15904
|
+
ProgressTracker.displayName = COMPONENT_NAME$u;
|
|
15905
|
+
ProgressTracker.className = CLASSNAME$v;
|
|
15901
15906
|
ProgressTracker.defaultProps = DEFAULT_PROPS$t;
|
|
15902
15907
|
|
|
15903
15908
|
/**
|
|
15904
15909
|
* Component display name.
|
|
15905
15910
|
*/
|
|
15906
|
-
const COMPONENT_NAME$
|
|
15911
|
+
const COMPONENT_NAME$t = 'ProgressTrackerStep';
|
|
15907
15912
|
|
|
15908
15913
|
/**
|
|
15909
15914
|
* Component default class name and class prefix.
|
|
15910
15915
|
*/
|
|
15911
|
-
const CLASSNAME$
|
|
15916
|
+
const CLASSNAME$u = 'lumx-progress-tracker-step';
|
|
15912
15917
|
const {
|
|
15913
|
-
block: block$
|
|
15918
|
+
block: block$n,
|
|
15914
15919
|
element: element$f
|
|
15915
|
-
} = classNames.bem(CLASSNAME$
|
|
15920
|
+
} = classNames.bem(CLASSNAME$u);
|
|
15916
15921
|
|
|
15917
15922
|
/**
|
|
15918
15923
|
* Component default props.
|
|
@@ -15981,7 +15986,7 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
15981
15986
|
...forwardedProps,
|
|
15982
15987
|
type: "button",
|
|
15983
15988
|
id: state?.tabId,
|
|
15984
|
-
className: classNames.join(className, block$
|
|
15989
|
+
className: classNames.join(className, block$n({
|
|
15985
15990
|
'has-error': hasError,
|
|
15986
15991
|
'is-active': isActive,
|
|
15987
15992
|
'is-clickable': state && !isAnyDisabled,
|
|
@@ -16010,22 +16015,22 @@ const ProgressTrackerStep = forwardRef((props, ref) => {
|
|
|
16010
16015
|
})]
|
|
16011
16016
|
});
|
|
16012
16017
|
});
|
|
16013
|
-
ProgressTrackerStep.displayName = COMPONENT_NAME$
|
|
16014
|
-
ProgressTrackerStep.className = CLASSNAME$
|
|
16018
|
+
ProgressTrackerStep.displayName = COMPONENT_NAME$t;
|
|
16019
|
+
ProgressTrackerStep.className = CLASSNAME$u;
|
|
16015
16020
|
ProgressTrackerStep.defaultProps = DEFAULT_PROPS$s;
|
|
16016
16021
|
|
|
16017
16022
|
/**
|
|
16018
16023
|
* Component display name.
|
|
16019
16024
|
*/
|
|
16020
|
-
const COMPONENT_NAME$
|
|
16025
|
+
const COMPONENT_NAME$s = 'ProgressTrackerStepPanel';
|
|
16021
16026
|
|
|
16022
16027
|
/**
|
|
16023
16028
|
* Component default class name and class prefix.
|
|
16024
16029
|
*/
|
|
16025
|
-
const CLASSNAME$
|
|
16030
|
+
const CLASSNAME$t = `lumx-step-panel`;
|
|
16026
16031
|
const {
|
|
16027
|
-
block: block$
|
|
16028
|
-
} = classNames.bem(CLASSNAME$
|
|
16032
|
+
block: block$m
|
|
16033
|
+
} = classNames.bem(CLASSNAME$t);
|
|
16029
16034
|
|
|
16030
16035
|
/**
|
|
16031
16036
|
* Component default props.
|
|
@@ -16055,7 +16060,7 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
16055
16060
|
ref: ref,
|
|
16056
16061
|
...forwardedProps,
|
|
16057
16062
|
id: state?.tabPanelId,
|
|
16058
|
-
className: classNames.join(className, block$
|
|
16063
|
+
className: classNames.join(className, block$m({
|
|
16059
16064
|
'is-active': isActive
|
|
16060
16065
|
})),
|
|
16061
16066
|
role: "tabpanel",
|
|
@@ -16064,23 +16069,23 @@ const ProgressTrackerStepPanel = forwardRef((props, ref) => {
|
|
|
16064
16069
|
children: (!state?.isLazy || isActive) && children
|
|
16065
16070
|
});
|
|
16066
16071
|
});
|
|
16067
|
-
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$
|
|
16068
|
-
ProgressTrackerStepPanel.className = CLASSNAME$
|
|
16072
|
+
ProgressTrackerStepPanel.displayName = COMPONENT_NAME$s;
|
|
16073
|
+
ProgressTrackerStepPanel.className = CLASSNAME$t;
|
|
16069
16074
|
ProgressTrackerStepPanel.defaultProps = DEFAULT_PROPS$r;
|
|
16070
16075
|
|
|
16071
16076
|
/**
|
|
16072
16077
|
* Component display name.
|
|
16073
16078
|
*/
|
|
16074
|
-
const COMPONENT_NAME$
|
|
16079
|
+
const COMPONENT_NAME$r = 'RadioButton';
|
|
16075
16080
|
|
|
16076
16081
|
/**
|
|
16077
16082
|
* Component default class name and class prefix.
|
|
16078
16083
|
*/
|
|
16079
|
-
const CLASSNAME$
|
|
16084
|
+
const CLASSNAME$s = 'lumx-radio-button';
|
|
16080
16085
|
const {
|
|
16081
|
-
block: block$
|
|
16086
|
+
block: block$l,
|
|
16082
16087
|
element: element$e
|
|
16083
|
-
} = bem(CLASSNAME$
|
|
16088
|
+
} = bem(CLASSNAME$s);
|
|
16084
16089
|
|
|
16085
16090
|
/**
|
|
16086
16091
|
* RadioButton component.
|
|
@@ -16115,7 +16120,7 @@ const RadioButton$1 = props => {
|
|
|
16115
16120
|
return /*#__PURE__*/jsxs("div", {
|
|
16116
16121
|
ref: ref,
|
|
16117
16122
|
...forwardedProps,
|
|
16118
|
-
className: classnames(className, block$
|
|
16123
|
+
className: classnames(className, block$l({
|
|
16119
16124
|
'is-checked': isChecked,
|
|
16120
16125
|
'is-disabled': isDisabled,
|
|
16121
16126
|
'is-unchecked': !isChecked,
|
|
@@ -16223,19 +16228,19 @@ const RadioButton = forwardRef((props, ref) => {
|
|
|
16223
16228
|
inputId
|
|
16224
16229
|
});
|
|
16225
16230
|
});
|
|
16226
|
-
RadioButton.displayName = COMPONENT_NAME$
|
|
16227
|
-
RadioButton.className = CLASSNAME$
|
|
16231
|
+
RadioButton.displayName = COMPONENT_NAME$r;
|
|
16232
|
+
RadioButton.className = CLASSNAME$s;
|
|
16228
16233
|
RadioButton.defaultProps = DEFAULT_PROPS$q;
|
|
16229
16234
|
|
|
16230
16235
|
/**
|
|
16231
16236
|
* Component display name.
|
|
16232
16237
|
*/
|
|
16233
|
-
const COMPONENT_NAME$
|
|
16238
|
+
const COMPONENT_NAME$q = 'RadioGroup';
|
|
16234
16239
|
|
|
16235
16240
|
/**
|
|
16236
16241
|
* Component default class name and class prefix.
|
|
16237
16242
|
*/
|
|
16238
|
-
const CLASSNAME$
|
|
16243
|
+
const CLASSNAME$r = 'lumx-radio-group';
|
|
16239
16244
|
|
|
16240
16245
|
/**
|
|
16241
16246
|
* Component default props.
|
|
@@ -16258,12 +16263,12 @@ const RadioGroup$1 = props => {
|
|
|
16258
16263
|
return /*#__PURE__*/jsx("div", {
|
|
16259
16264
|
ref: ref,
|
|
16260
16265
|
...forwardedProps,
|
|
16261
|
-
className: classnames(className, CLASSNAME$
|
|
16266
|
+
className: classnames(className, CLASSNAME$r),
|
|
16262
16267
|
children: children
|
|
16263
16268
|
});
|
|
16264
16269
|
};
|
|
16265
|
-
RadioGroup$1.displayName = COMPONENT_NAME$
|
|
16266
|
-
RadioGroup$1.className = CLASSNAME$
|
|
16270
|
+
RadioGroup$1.displayName = COMPONENT_NAME$q;
|
|
16271
|
+
RadioGroup$1.className = CLASSNAME$r;
|
|
16267
16272
|
RadioGroup$1.defaultProps = DEFAULT_PROPS$p;
|
|
16268
16273
|
|
|
16269
16274
|
/**
|
|
@@ -16290,8 +16295,8 @@ const RadioGroup = forwardRef((props, ref) => {
|
|
|
16290
16295
|
...forwardedProps
|
|
16291
16296
|
});
|
|
16292
16297
|
});
|
|
16293
|
-
RadioGroup.displayName = COMPONENT_NAME$
|
|
16294
|
-
RadioGroup.className = CLASSNAME$
|
|
16298
|
+
RadioGroup.displayName = COMPONENT_NAME$q;
|
|
16299
|
+
RadioGroup.className = CLASSNAME$r;
|
|
16295
16300
|
|
|
16296
16301
|
/**
|
|
16297
16302
|
* Listen on element focus to store the focus status.
|
|
@@ -16318,11 +16323,11 @@ function useListenFocus(ref) {
|
|
|
16318
16323
|
}
|
|
16319
16324
|
|
|
16320
16325
|
/** The default class name and classes prefix for this component. */
|
|
16321
|
-
const CLASSNAME$
|
|
16326
|
+
const CLASSNAME$q = 'lumx-select';
|
|
16322
16327
|
const {
|
|
16323
|
-
block: block$
|
|
16328
|
+
block: block$k,
|
|
16324
16329
|
element: element$d
|
|
16325
|
-
} = classNames.bem(CLASSNAME$
|
|
16330
|
+
} = classNames.bem(CLASSNAME$q);
|
|
16326
16331
|
const WithSelectContext = (SelectElement, props, ref) => {
|
|
16327
16332
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
16328
16333
|
const {
|
|
@@ -16375,7 +16380,7 @@ const WithSelectContext = (SelectElement, props, ref) => {
|
|
|
16375
16380
|
useFocusTrap(isOpen && dropdownRef.current, focusElement?.current);
|
|
16376
16381
|
return /*#__PURE__*/jsxs("div", {
|
|
16377
16382
|
ref: mergeRefs(ref, selectRef),
|
|
16378
|
-
className: classNames.join(className, block$
|
|
16383
|
+
className: classNames.join(className, block$k({
|
|
16379
16384
|
'has-error': hasError,
|
|
16380
16385
|
'has-label': Boolean(label),
|
|
16381
16386
|
'has-placeholder': Boolean(placeholder),
|
|
@@ -16438,14 +16443,14 @@ const SelectVariant = {
|
|
|
16438
16443
|
};
|
|
16439
16444
|
|
|
16440
16445
|
/** The display name of the component. */
|
|
16441
|
-
const COMPONENT_NAME$
|
|
16446
|
+
const COMPONENT_NAME$p = 'Select';
|
|
16442
16447
|
|
|
16443
16448
|
/** The default class name and classes prefix for this component. */
|
|
16444
|
-
const CLASSNAME$
|
|
16449
|
+
const CLASSNAME$p = 'lumx-select';
|
|
16445
16450
|
const {
|
|
16446
|
-
block: block$
|
|
16451
|
+
block: block$j,
|
|
16447
16452
|
element: element$c
|
|
16448
|
-
} = classNames.bem(CLASSNAME$
|
|
16453
|
+
} = classNames.bem(CLASSNAME$p);
|
|
16449
16454
|
|
|
16450
16455
|
/** The default value of props. */
|
|
16451
16456
|
const DEFAULT_PROPS$o = {
|
|
@@ -16574,7 +16579,7 @@ const Select = forwardRef((props, ref) => {
|
|
|
16574
16579
|
return WithSelectContext(SelectField, {
|
|
16575
16580
|
...DEFAULT_PROPS$o,
|
|
16576
16581
|
...props,
|
|
16577
|
-
className: classNames.join(props.className, block$
|
|
16582
|
+
className: classNames.join(props.className, block$j({
|
|
16578
16583
|
'has-input-clear': hasInputClear,
|
|
16579
16584
|
'has-unique': !props.isEmpty
|
|
16580
16585
|
})),
|
|
@@ -16582,20 +16587,20 @@ const Select = forwardRef((props, ref) => {
|
|
|
16582
16587
|
isEmpty: isEmpty$1
|
|
16583
16588
|
}, ref);
|
|
16584
16589
|
});
|
|
16585
|
-
Select.displayName = COMPONENT_NAME$
|
|
16586
|
-
Select.className = CLASSNAME$
|
|
16590
|
+
Select.displayName = COMPONENT_NAME$p;
|
|
16591
|
+
Select.className = CLASSNAME$p;
|
|
16587
16592
|
Select.defaultProps = DEFAULT_PROPS$o;
|
|
16588
|
-
Select.className = CLASSNAME$
|
|
16593
|
+
Select.className = CLASSNAME$p;
|
|
16589
16594
|
|
|
16590
16595
|
/** The display name of the component. */
|
|
16591
|
-
const COMPONENT_NAME$
|
|
16596
|
+
const COMPONENT_NAME$o = 'Select';
|
|
16592
16597
|
|
|
16593
16598
|
/** The default class name and classes prefix for this component. */
|
|
16594
|
-
const CLASSNAME$
|
|
16599
|
+
const CLASSNAME$o = 'lumx-select';
|
|
16595
16600
|
const {
|
|
16596
|
-
block: block$
|
|
16601
|
+
block: block$i,
|
|
16597
16602
|
element: element$b
|
|
16598
|
-
} = classNames.bem(CLASSNAME$
|
|
16603
|
+
} = classNames.bem(CLASSNAME$o);
|
|
16599
16604
|
|
|
16600
16605
|
/** The default value of props. */
|
|
16601
16606
|
const DEFAULT_PROPS$n = {
|
|
@@ -16679,13 +16684,13 @@ const SelectMultipleField = props => {
|
|
|
16679
16684
|
children: placeholder
|
|
16680
16685
|
})
|
|
16681
16686
|
}), (isValid || hasError) && /*#__PURE__*/jsx("div", {
|
|
16682
|
-
className: `${CLASSNAME$
|
|
16687
|
+
className: `${CLASSNAME$o}__input-validity`,
|
|
16683
16688
|
children: /*#__PURE__*/jsx(Icon, {
|
|
16684
16689
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
16685
16690
|
size: Size$1.xxs
|
|
16686
16691
|
})
|
|
16687
16692
|
}), /*#__PURE__*/jsx("div", {
|
|
16688
|
-
className: `${CLASSNAME$
|
|
16693
|
+
className: `${CLASSNAME$o}__input-indicator`,
|
|
16689
16694
|
children: /*#__PURE__*/jsx(Icon, {
|
|
16690
16695
|
icon: mdiMenuDown,
|
|
16691
16696
|
size: Size$1.s
|
|
@@ -16729,15 +16734,15 @@ const SelectMultiple = forwardRef((props, ref) => {
|
|
|
16729
16734
|
return WithSelectContext(SelectMultipleField, {
|
|
16730
16735
|
...DEFAULT_PROPS$n,
|
|
16731
16736
|
...props,
|
|
16732
|
-
className: classNames.join(props.className, block$
|
|
16737
|
+
className: classNames.join(props.className, block$i({
|
|
16733
16738
|
'has-multiple': !props.isEmpty
|
|
16734
16739
|
})),
|
|
16735
16740
|
isEmpty: props.value.length === 0,
|
|
16736
16741
|
isMultiple: true
|
|
16737
16742
|
}, ref);
|
|
16738
16743
|
});
|
|
16739
|
-
SelectMultiple.displayName = COMPONENT_NAME$
|
|
16740
|
-
SelectMultiple.className = CLASSNAME$
|
|
16744
|
+
SelectMultiple.displayName = COMPONENT_NAME$o;
|
|
16745
|
+
SelectMultiple.className = CLASSNAME$o;
|
|
16741
16746
|
SelectMultiple.defaultProps = DEFAULT_PROPS$n;
|
|
16742
16747
|
|
|
16743
16748
|
/**
|
|
@@ -16871,12 +16876,12 @@ function renderSelectOptions(props, components) {
|
|
|
16871
16876
|
/**
|
|
16872
16877
|
* Component display name.
|
|
16873
16878
|
*/
|
|
16874
|
-
const COMPONENT_NAME$
|
|
16879
|
+
const COMPONENT_NAME$n = 'SelectButton';
|
|
16875
16880
|
|
|
16876
16881
|
/**
|
|
16877
16882
|
* Component default class name.
|
|
16878
16883
|
*/
|
|
16879
|
-
const CLASSNAME$
|
|
16884
|
+
const CLASSNAME$n = 'lumx-select-button';
|
|
16880
16885
|
|
|
16881
16886
|
/**
|
|
16882
16887
|
* SelectButton core template.
|
|
@@ -16974,8 +16979,8 @@ const SelectButton$2 = (props, {
|
|
|
16974
16979
|
})]
|
|
16975
16980
|
});
|
|
16976
16981
|
};
|
|
16977
|
-
SelectButton$2.displayName = COMPONENT_NAME$
|
|
16978
|
-
SelectButton$2.className = CLASSNAME$
|
|
16982
|
+
SelectButton$2.displayName = COMPONENT_NAME$n;
|
|
16983
|
+
SelectButton$2.className = CLASSNAME$n;
|
|
16979
16984
|
|
|
16980
16985
|
/**
|
|
16981
16986
|
* Adapts a React `renderOption` callback returning a `<Combobox.Option>` into the
|
|
@@ -17180,12 +17185,12 @@ function getOptionDisplayName(value, getOptionName, getOptionId) {
|
|
|
17180
17185
|
/**
|
|
17181
17186
|
* Component display name.
|
|
17182
17187
|
*/
|
|
17183
|
-
const COMPONENT_NAME$
|
|
17188
|
+
const COMPONENT_NAME$m = 'SelectTextField';
|
|
17184
17189
|
|
|
17185
17190
|
/**
|
|
17186
17191
|
* Component default class name.
|
|
17187
17192
|
*/
|
|
17188
|
-
const CLASSNAME$
|
|
17193
|
+
const CLASSNAME$m = 'lumx-select-text-field';
|
|
17189
17194
|
|
|
17190
17195
|
/**
|
|
17191
17196
|
* SelectTextField core template.
|
|
@@ -17280,8 +17285,8 @@ const SelectTextField$2 = (props, {
|
|
|
17280
17285
|
})]
|
|
17281
17286
|
});
|
|
17282
17287
|
};
|
|
17283
|
-
SelectTextField$2.displayName = COMPONENT_NAME$
|
|
17284
|
-
SelectTextField$2.className = CLASSNAME$
|
|
17288
|
+
SelectTextField$2.displayName = COMPONENT_NAME$m;
|
|
17289
|
+
SelectTextField$2.className = CLASSNAME$m;
|
|
17285
17290
|
|
|
17286
17291
|
/**
|
|
17287
17292
|
* A text field with a select dropdown to choose between a list of options.
|
|
@@ -17415,13 +17420,18 @@ const SelectTextField$1 = props => {
|
|
|
17415
17420
|
externalOnClear?.(event);
|
|
17416
17421
|
}, [onChange, onSearch, externalOnClear]);
|
|
17417
17422
|
|
|
17418
|
-
// Handle blur:
|
|
17423
|
+
// Handle blur: notify consumer, then reset search state.
|
|
17419
17424
|
const handleBlur = useCallback(event => {
|
|
17420
|
-
setIsSearching(false);
|
|
17421
|
-
setSearchText('');
|
|
17422
17425
|
onSearch?.('');
|
|
17423
17426
|
externalOnBlur?.(event);
|
|
17424
|
-
|
|
17427
|
+
if (externalSearchValue) {
|
|
17428
|
+
setSearchText(externalSearchValue);
|
|
17429
|
+
setIsSearching(true);
|
|
17430
|
+
} else {
|
|
17431
|
+
setSearchText('');
|
|
17432
|
+
setIsSearching(false);
|
|
17433
|
+
}
|
|
17434
|
+
}, [externalOnBlur, externalSearchValue, onSearch]);
|
|
17425
17435
|
const showClear = !isMultiple && !isAnyDisabled && hasClearButton && value !== undefined && value !== null;
|
|
17426
17436
|
const chips = isMultiple ? /*#__PURE__*/jsx(SelectionChipGroup, {
|
|
17427
17437
|
value: value,
|
|
@@ -17527,12 +17537,12 @@ const SelectTextField = Object.assign(SelectTextField$1, {
|
|
|
17527
17537
|
/**
|
|
17528
17538
|
* Component display name.
|
|
17529
17539
|
*/
|
|
17530
|
-
const COMPONENT_NAME$
|
|
17540
|
+
const COMPONENT_NAME$l = 'SideNavigation';
|
|
17531
17541
|
|
|
17532
17542
|
/**
|
|
17533
17543
|
* Component default class name and class prefix.
|
|
17534
17544
|
*/
|
|
17535
|
-
const CLASSNAME$
|
|
17545
|
+
const CLASSNAME$l = 'lumx-side-navigation';
|
|
17536
17546
|
|
|
17537
17547
|
/**
|
|
17538
17548
|
* SideNavigation component.
|
|
@@ -17553,26 +17563,26 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
17553
17563
|
return /*#__PURE__*/jsx("ul", {
|
|
17554
17564
|
ref: ref,
|
|
17555
17565
|
...forwardedProps,
|
|
17556
|
-
className: classNames.join(className, theme === Theme$1.dark && 'lumx-color-font-light-N', CLASSNAME$
|
|
17566
|
+
className: classNames.join(className, theme === Theme$1.dark && 'lumx-color-font-light-N', CLASSNAME$l),
|
|
17557
17567
|
children: content
|
|
17558
17568
|
});
|
|
17559
17569
|
});
|
|
17560
|
-
SideNavigation.displayName = COMPONENT_NAME$
|
|
17561
|
-
SideNavigation.className = CLASSNAME$
|
|
17570
|
+
SideNavigation.displayName = COMPONENT_NAME$l;
|
|
17571
|
+
SideNavigation.className = CLASSNAME$l;
|
|
17562
17572
|
|
|
17563
17573
|
/**
|
|
17564
17574
|
* Component display name.
|
|
17565
17575
|
*/
|
|
17566
|
-
const COMPONENT_NAME$
|
|
17576
|
+
const COMPONENT_NAME$k = 'SideNavigationItem';
|
|
17567
17577
|
|
|
17568
17578
|
/**
|
|
17569
17579
|
* Component default class name and class prefix.
|
|
17570
17580
|
*/
|
|
17571
|
-
const CLASSNAME$
|
|
17581
|
+
const CLASSNAME$k = 'lumx-side-navigation-item';
|
|
17572
17582
|
const {
|
|
17573
|
-
block: block$
|
|
17583
|
+
block: block$h,
|
|
17574
17584
|
element: element$a
|
|
17575
|
-
} = classNames.bem(CLASSNAME$
|
|
17585
|
+
} = classNames.bem(CLASSNAME$k);
|
|
17576
17586
|
|
|
17577
17587
|
/**
|
|
17578
17588
|
* Component default props.
|
|
@@ -17620,7 +17630,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
17620
17630
|
return /*#__PURE__*/jsxs("li", {
|
|
17621
17631
|
ref: ref,
|
|
17622
17632
|
...forwardedProps,
|
|
17623
|
-
className: classNames.join(className, block$
|
|
17633
|
+
className: classNames.join(className, block$h({
|
|
17624
17634
|
[`emphasis-${emphasis}`]: Boolean(emphasis),
|
|
17625
17635
|
'is-open': showChildren,
|
|
17626
17636
|
'is-selected': isSelected
|
|
@@ -17678,22 +17688,22 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
17678
17688
|
})]
|
|
17679
17689
|
});
|
|
17680
17690
|
});
|
|
17681
|
-
SideNavigationItem.displayName = COMPONENT_NAME$
|
|
17682
|
-
SideNavigationItem.className = CLASSNAME$
|
|
17691
|
+
SideNavigationItem.displayName = COMPONENT_NAME$k;
|
|
17692
|
+
SideNavigationItem.className = CLASSNAME$k;
|
|
17683
17693
|
SideNavigationItem.defaultProps = DEFAULT_PROPS$m;
|
|
17684
17694
|
|
|
17685
17695
|
/**
|
|
17686
17696
|
* Component display name.
|
|
17687
17697
|
*/
|
|
17688
|
-
const COMPONENT_NAME$
|
|
17698
|
+
const COMPONENT_NAME$j = 'SkeletonCircle';
|
|
17689
17699
|
|
|
17690
17700
|
/**
|
|
17691
17701
|
* Component default class name and class prefix.
|
|
17692
17702
|
*/
|
|
17693
|
-
const CLASSNAME$
|
|
17703
|
+
const CLASSNAME$j = 'lumx-skeleton-circle';
|
|
17694
17704
|
const {
|
|
17695
|
-
block: block$
|
|
17696
|
-
} = bem(CLASSNAME$
|
|
17705
|
+
block: block$g
|
|
17706
|
+
} = bem(CLASSNAME$j);
|
|
17697
17707
|
|
|
17698
17708
|
/**
|
|
17699
17709
|
* SkeletonCircle component.
|
|
@@ -17713,7 +17723,7 @@ const SkeletonCircle$1 = props => {
|
|
|
17713
17723
|
return /*#__PURE__*/jsx("div", {
|
|
17714
17724
|
ref: ref,
|
|
17715
17725
|
...forwardedProps,
|
|
17716
|
-
className: classnames(className, block$
|
|
17726
|
+
className: classnames(className, block$g({
|
|
17717
17727
|
[`size-${size}`]: Boolean(size),
|
|
17718
17728
|
[`color-${color}`]: Boolean(color),
|
|
17719
17729
|
[`theme-${theme}`]: Boolean(theme)
|
|
@@ -17737,16 +17747,16 @@ const SkeletonRectangleVariant = {
|
|
|
17737
17747
|
/**
|
|
17738
17748
|
* Component display name.
|
|
17739
17749
|
*/
|
|
17740
|
-
const COMPONENT_NAME$
|
|
17750
|
+
const COMPONENT_NAME$i = 'SkeletonRectangle';
|
|
17741
17751
|
|
|
17742
17752
|
/**
|
|
17743
17753
|
* Component default class name and class prefix.
|
|
17744
17754
|
*/
|
|
17745
|
-
const CLASSNAME$
|
|
17755
|
+
const CLASSNAME$i = 'lumx-skeleton-rectangle';
|
|
17746
17756
|
const {
|
|
17747
|
-
block: block$
|
|
17757
|
+
block: block$f,
|
|
17748
17758
|
element: element$9
|
|
17749
|
-
} = bem(CLASSNAME$
|
|
17759
|
+
} = bem(CLASSNAME$i);
|
|
17750
17760
|
|
|
17751
17761
|
/**
|
|
17752
17762
|
* Component default props.
|
|
@@ -17776,7 +17786,7 @@ const SkeletonRectangle$1 = props => {
|
|
|
17776
17786
|
return /*#__PURE__*/jsx("div", {
|
|
17777
17787
|
ref: ref,
|
|
17778
17788
|
...forwardedProps,
|
|
17779
|
-
className: classnames(className, block$
|
|
17789
|
+
className: classnames(className, block$f({
|
|
17780
17790
|
[`aspect-ratio-${aspectRatio}`]: Boolean(aspectRatio),
|
|
17781
17791
|
[`height-${height}`]: Boolean(aspectRatio ? undefined : height),
|
|
17782
17792
|
[`theme-${theme}`]: Boolean(theme),
|
|
@@ -17821,9 +17831,9 @@ const SkeletonCircle = forwardRef((props, ref) => {
|
|
|
17821
17831
|
...forwardedProps
|
|
17822
17832
|
});
|
|
17823
17833
|
});
|
|
17824
|
-
SkeletonCircle.displayName = COMPONENT_NAME$
|
|
17834
|
+
SkeletonCircle.displayName = COMPONENT_NAME$j;
|
|
17825
17835
|
SkeletonCircle.defaultProps = DEFAULT_PROPS$k;
|
|
17826
|
-
SkeletonCircle.className = CLASSNAME$
|
|
17836
|
+
SkeletonCircle.className = CLASSNAME$j;
|
|
17827
17837
|
|
|
17828
17838
|
/**
|
|
17829
17839
|
* Defines the props of the component.
|
|
@@ -17862,8 +17872,8 @@ const SkeletonRectangle = forwardRef((props, ref) => {
|
|
|
17862
17872
|
...forwardedProps
|
|
17863
17873
|
});
|
|
17864
17874
|
});
|
|
17865
|
-
SkeletonRectangle.displayName = COMPONENT_NAME$
|
|
17866
|
-
SkeletonRectangle.className = CLASSNAME$
|
|
17875
|
+
SkeletonRectangle.displayName = COMPONENT_NAME$i;
|
|
17876
|
+
SkeletonRectangle.className = CLASSNAME$i;
|
|
17867
17877
|
SkeletonRectangle.defaultProps = DEFAULT_PROPS$j;
|
|
17868
17878
|
|
|
17869
17879
|
/**
|
|
@@ -17899,9 +17909,9 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
17899
17909
|
...forwardedProps
|
|
17900
17910
|
});
|
|
17901
17911
|
});
|
|
17902
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
17912
|
+
SkeletonTypography.displayName = COMPONENT_NAME$16;
|
|
17903
17913
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$i;
|
|
17904
|
-
SkeletonTypography.className = CLASSNAME$
|
|
17914
|
+
SkeletonTypography.className = CLASSNAME$15;
|
|
17905
17915
|
|
|
17906
17916
|
/**
|
|
17907
17917
|
* Clamp value in range.
|
|
@@ -17925,16 +17935,16 @@ const clamp = (value, min, max) => {
|
|
|
17925
17935
|
/**
|
|
17926
17936
|
* Component display name.
|
|
17927
17937
|
*/
|
|
17928
|
-
const COMPONENT_NAME$
|
|
17938
|
+
const COMPONENT_NAME$h = 'Slider';
|
|
17929
17939
|
|
|
17930
17940
|
/**
|
|
17931
17941
|
* Component default class name and class prefix.
|
|
17932
17942
|
*/
|
|
17933
|
-
const CLASSNAME$
|
|
17943
|
+
const CLASSNAME$h = 'lumx-slider';
|
|
17934
17944
|
const {
|
|
17935
|
-
block: block$
|
|
17945
|
+
block: block$e,
|
|
17936
17946
|
element: element$8
|
|
17937
|
-
} = classNames.bem(CLASSNAME$
|
|
17947
|
+
} = classNames.bem(CLASSNAME$h);
|
|
17938
17948
|
|
|
17939
17949
|
/**
|
|
17940
17950
|
* Component default props.
|
|
@@ -18127,7 +18137,7 @@ const Slider = forwardRef((props, ref) => {
|
|
|
18127
18137
|
return /*#__PURE__*/jsxs("div", {
|
|
18128
18138
|
ref: ref,
|
|
18129
18139
|
...forwardedProps,
|
|
18130
|
-
className: classNames.join(className, block$
|
|
18140
|
+
className: classNames.join(className, block$e({
|
|
18131
18141
|
[`theme-${theme}`]: Boolean(theme),
|
|
18132
18142
|
'has-label': Boolean(label)
|
|
18133
18143
|
})),
|
|
@@ -18192,8 +18202,8 @@ const Slider = forwardRef((props, ref) => {
|
|
|
18192
18202
|
})]
|
|
18193
18203
|
});
|
|
18194
18204
|
});
|
|
18195
|
-
Slider.displayName = COMPONENT_NAME$
|
|
18196
|
-
Slider.className = CLASSNAME$
|
|
18205
|
+
Slider.displayName = COMPONENT_NAME$h;
|
|
18206
|
+
Slider.className = CLASSNAME$h;
|
|
18197
18207
|
Slider.defaultProps = DEFAULT_PROPS$h;
|
|
18198
18208
|
|
|
18199
18209
|
/**
|
|
@@ -18527,12 +18537,12 @@ const useSlideFocusManagement = ({
|
|
|
18527
18537
|
/**
|
|
18528
18538
|
* Component display name.
|
|
18529
18539
|
*/
|
|
18530
|
-
const COMPONENT_NAME$
|
|
18540
|
+
const COMPONENT_NAME$g = 'SlideshowItemGroup';
|
|
18531
18541
|
|
|
18532
18542
|
/**
|
|
18533
18543
|
* Component default class name and class prefix.
|
|
18534
18544
|
*/
|
|
18535
|
-
const CLASSNAME$
|
|
18545
|
+
const CLASSNAME$g = 'lumx-slideshow-item-group';
|
|
18536
18546
|
const buildSlideShowGroupId = (slidesId, index) => `${slidesId}-slide-${index}`;
|
|
18537
18547
|
|
|
18538
18548
|
/**
|
|
@@ -18559,15 +18569,15 @@ const SlideshowItemGroup = forwardRef((props, ref) => {
|
|
|
18559
18569
|
return /*#__PURE__*/jsx("div", {
|
|
18560
18570
|
ref: mergeRefs(groupRef, ref),
|
|
18561
18571
|
role: role,
|
|
18562
|
-
className: classNames.join(className, CLASSNAME$
|
|
18572
|
+
className: classNames.join(className, CLASSNAME$g),
|
|
18563
18573
|
"aria-roledescription": "slide",
|
|
18564
18574
|
"aria-label": label,
|
|
18565
18575
|
...forwardedProps,
|
|
18566
18576
|
children: children
|
|
18567
18577
|
});
|
|
18568
18578
|
});
|
|
18569
|
-
SlideshowItemGroup.displayName = COMPONENT_NAME$
|
|
18570
|
-
SlideshowItemGroup.className = CLASSNAME$
|
|
18579
|
+
SlideshowItemGroup.displayName = COMPONENT_NAME$g;
|
|
18580
|
+
SlideshowItemGroup.className = CLASSNAME$g;
|
|
18571
18581
|
|
|
18572
18582
|
/**
|
|
18573
18583
|
* Component default props.
|
|
@@ -18697,12 +18707,12 @@ Slideshow.defaultProps = DEFAULT_PROPS$g;
|
|
|
18697
18707
|
/**
|
|
18698
18708
|
* Component display name.
|
|
18699
18709
|
*/
|
|
18700
|
-
const COMPONENT_NAME$
|
|
18710
|
+
const COMPONENT_NAME$f = 'SlideshowItem';
|
|
18701
18711
|
|
|
18702
18712
|
/**
|
|
18703
18713
|
* Component default class name and class prefix.
|
|
18704
18714
|
*/
|
|
18705
|
-
const CLASSNAME$
|
|
18715
|
+
const CLASSNAME$f = 'lumx-slideshow-item';
|
|
18706
18716
|
|
|
18707
18717
|
/**
|
|
18708
18718
|
* SlideshowItem component.
|
|
@@ -18719,13 +18729,13 @@ const SlideshowItem = forwardRef((props, ref) => {
|
|
|
18719
18729
|
} = props;
|
|
18720
18730
|
return /*#__PURE__*/jsx("div", {
|
|
18721
18731
|
ref: ref,
|
|
18722
|
-
className: classNames.join(className, CLASSNAME$
|
|
18732
|
+
className: classNames.join(className, CLASSNAME$f),
|
|
18723
18733
|
...forwardedProps,
|
|
18724
18734
|
children: children
|
|
18725
18735
|
});
|
|
18726
18736
|
});
|
|
18727
|
-
SlideshowItem.displayName = COMPONENT_NAME$
|
|
18728
|
-
SlideshowItem.className = CLASSNAME$
|
|
18737
|
+
SlideshowItem.displayName = COMPONENT_NAME$f;
|
|
18738
|
+
SlideshowItem.className = CLASSNAME$f;
|
|
18729
18739
|
|
|
18730
18740
|
const isTouchDevice = () => 'ontouchstart' in window;
|
|
18731
18741
|
|
|
@@ -18787,16 +18797,16 @@ function usePaginationVisibleRange(activeIndex, slideCount) {
|
|
|
18787
18797
|
/**
|
|
18788
18798
|
* Component display name.
|
|
18789
18799
|
*/
|
|
18790
|
-
const COMPONENT_NAME$
|
|
18800
|
+
const COMPONENT_NAME$e = 'SlideshowControls';
|
|
18791
18801
|
|
|
18792
18802
|
/**
|
|
18793
18803
|
* Component default class name and class prefix.
|
|
18794
18804
|
*/
|
|
18795
|
-
const CLASSNAME$
|
|
18805
|
+
const CLASSNAME$e = 'lumx-slideshow-controls';
|
|
18796
18806
|
const {
|
|
18797
|
-
block: block$
|
|
18807
|
+
block: block$d,
|
|
18798
18808
|
element: element$7
|
|
18799
|
-
} = classNames.bem(CLASSNAME$
|
|
18809
|
+
} = classNames.bem(CLASSNAME$e);
|
|
18800
18810
|
|
|
18801
18811
|
/**
|
|
18802
18812
|
* Component default props.
|
|
@@ -18866,7 +18876,7 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
18866
18876
|
return /*#__PURE__*/jsxs("div", {
|
|
18867
18877
|
ref: ref,
|
|
18868
18878
|
...forwardedProps,
|
|
18869
|
-
className: classNames.join(className, block$
|
|
18879
|
+
className: classNames.join(className, block$d({
|
|
18870
18880
|
[`theme-${theme}`]: Boolean(theme),
|
|
18871
18881
|
'has-infinite-pagination': slidesCount > PAGINATION_ITEMS_MAX
|
|
18872
18882
|
})),
|
|
@@ -18927,8 +18937,8 @@ const InternalSlideshowControls = forwardRef((props, ref) => {
|
|
|
18927
18937
|
})]
|
|
18928
18938
|
});
|
|
18929
18939
|
});
|
|
18930
|
-
InternalSlideshowControls.displayName = COMPONENT_NAME$
|
|
18931
|
-
InternalSlideshowControls.className = CLASSNAME$
|
|
18940
|
+
InternalSlideshowControls.displayName = COMPONENT_NAME$e;
|
|
18941
|
+
InternalSlideshowControls.className = CLASSNAME$e;
|
|
18932
18942
|
InternalSlideshowControls.defaultProps = DEFAULT_PROPS$f;
|
|
18933
18943
|
const SlideshowControls = Object.assign(InternalSlideshowControls, {
|
|
18934
18944
|
useSlideshowControls,
|
|
@@ -19047,16 +19057,16 @@ const useSlideScroll = ({
|
|
|
19047
19057
|
/**
|
|
19048
19058
|
* Component display name.
|
|
19049
19059
|
*/
|
|
19050
|
-
const COMPONENT_NAME$
|
|
19060
|
+
const COMPONENT_NAME$d = 'Slideshow';
|
|
19051
19061
|
|
|
19052
19062
|
/**
|
|
19053
19063
|
* Component default class name and class prefix.
|
|
19054
19064
|
*/
|
|
19055
|
-
const CLASSNAME$
|
|
19065
|
+
const CLASSNAME$d = 'lumx-slideshow';
|
|
19056
19066
|
const {
|
|
19057
|
-
block: block$
|
|
19067
|
+
block: block$c,
|
|
19058
19068
|
element: element$6
|
|
19059
|
-
} = classNames.bem(CLASSNAME$
|
|
19069
|
+
} = classNames.bem(CLASSNAME$d);
|
|
19060
19070
|
|
|
19061
19071
|
/**
|
|
19062
19072
|
* Component default props.
|
|
@@ -19126,7 +19136,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
19126
19136
|
id: id,
|
|
19127
19137
|
ref: ref,
|
|
19128
19138
|
...forwardedProps,
|
|
19129
|
-
className: classNames.join(className, block$
|
|
19139
|
+
className: classNames.join(className, block$c({
|
|
19130
19140
|
[`theme-${theme}`]: Boolean(theme),
|
|
19131
19141
|
'fill-height': fillHeight,
|
|
19132
19142
|
[`group-by-${groupBy}`]: Boolean(groupBy)
|
|
@@ -19155,22 +19165,22 @@ const Slides = forwardRef((props, ref) => {
|
|
|
19155
19165
|
}), afterSlides]
|
|
19156
19166
|
});
|
|
19157
19167
|
});
|
|
19158
|
-
Slides.displayName = COMPONENT_NAME$
|
|
19159
|
-
Slides.className = CLASSNAME$
|
|
19168
|
+
Slides.displayName = COMPONENT_NAME$d;
|
|
19169
|
+
Slides.className = CLASSNAME$d;
|
|
19160
19170
|
|
|
19161
19171
|
/**
|
|
19162
19172
|
* Component display name.
|
|
19163
19173
|
*/
|
|
19164
|
-
const COMPONENT_NAME$
|
|
19174
|
+
const COMPONENT_NAME$c = 'Switch';
|
|
19165
19175
|
|
|
19166
19176
|
/**
|
|
19167
19177
|
* Component default class name and class prefix.
|
|
19168
19178
|
*/
|
|
19169
|
-
const CLASSNAME$
|
|
19179
|
+
const CLASSNAME$c = 'lumx-switch';
|
|
19170
19180
|
const {
|
|
19171
|
-
block: block$
|
|
19181
|
+
block: block$b,
|
|
19172
19182
|
element: element$5
|
|
19173
|
-
} = bem(CLASSNAME$
|
|
19183
|
+
} = bem(CLASSNAME$c);
|
|
19174
19184
|
|
|
19175
19185
|
/**
|
|
19176
19186
|
* Component default props.
|
|
@@ -19213,7 +19223,7 @@ const Switch$1 = props => {
|
|
|
19213
19223
|
return /*#__PURE__*/jsxs("div", {
|
|
19214
19224
|
ref: ref,
|
|
19215
19225
|
...forwardedProps,
|
|
19216
|
-
className: classnames(className, block$
|
|
19226
|
+
className: classnames(className, block$b({
|
|
19217
19227
|
'is-checked': isChecked,
|
|
19218
19228
|
'is-disabled': isDisabled,
|
|
19219
19229
|
'is-unchecked': !isChecked,
|
|
@@ -19329,23 +19339,23 @@ const Switch = forwardRef((props, ref) => {
|
|
|
19329
19339
|
inputId
|
|
19330
19340
|
});
|
|
19331
19341
|
});
|
|
19332
|
-
Switch.displayName = COMPONENT_NAME$
|
|
19333
|
-
Switch.className = CLASSNAME$
|
|
19342
|
+
Switch.displayName = COMPONENT_NAME$c;
|
|
19343
|
+
Switch.className = CLASSNAME$c;
|
|
19334
19344
|
Switch.defaultProps = DEFAULT_PROPS$c;
|
|
19335
19345
|
|
|
19336
19346
|
/**
|
|
19337
19347
|
* Component display name.
|
|
19338
19348
|
*/
|
|
19339
|
-
const COMPONENT_NAME$
|
|
19349
|
+
const COMPONENT_NAME$b = 'Table';
|
|
19340
19350
|
|
|
19341
19351
|
/**
|
|
19342
19352
|
* Component default class name and class prefix.
|
|
19343
19353
|
*/
|
|
19344
|
-
const CLASSNAME$
|
|
19354
|
+
const CLASSNAME$b = 'lumx-table';
|
|
19345
19355
|
|
|
19346
19356
|
const {
|
|
19347
|
-
block: block$
|
|
19348
|
-
} = bem(CLASSNAME$
|
|
19357
|
+
block: block$a
|
|
19358
|
+
} = bem(CLASSNAME$b);
|
|
19349
19359
|
|
|
19350
19360
|
/**
|
|
19351
19361
|
* Defines the props of the component.
|
|
@@ -19375,7 +19385,7 @@ const Table$1 = props => {
|
|
|
19375
19385
|
return /*#__PURE__*/jsx("table", {
|
|
19376
19386
|
ref: ref,
|
|
19377
19387
|
...forwardedProps,
|
|
19378
|
-
className: classnames(className, block$
|
|
19388
|
+
className: classnames(className, block$a({
|
|
19379
19389
|
'has-before': hasBefore,
|
|
19380
19390
|
'has-dividers': hasDividers,
|
|
19381
19391
|
[`theme-${theme}`]: Boolean(theme)
|
|
@@ -19409,19 +19419,19 @@ const Table = forwardRef((props, ref) => {
|
|
|
19409
19419
|
...otherProps
|
|
19410
19420
|
});
|
|
19411
19421
|
});
|
|
19412
|
-
Table.displayName = COMPONENT_NAME$
|
|
19413
|
-
Table.className = CLASSNAME$
|
|
19422
|
+
Table.displayName = COMPONENT_NAME$b;
|
|
19423
|
+
Table.className = CLASSNAME$b;
|
|
19414
19424
|
Table.defaultProps = DEFAULT_PROPS$b;
|
|
19415
19425
|
|
|
19416
19426
|
/**
|
|
19417
19427
|
* Component display name.
|
|
19418
19428
|
*/
|
|
19419
|
-
const COMPONENT_NAME$
|
|
19429
|
+
const COMPONENT_NAME$a = 'TableBody';
|
|
19420
19430
|
|
|
19421
19431
|
/**
|
|
19422
19432
|
* Component default class name and class prefix.
|
|
19423
19433
|
*/
|
|
19424
|
-
const CLASSNAME$
|
|
19434
|
+
const CLASSNAME$a = `${CLASSNAME$b}__body`;
|
|
19425
19435
|
|
|
19426
19436
|
/**
|
|
19427
19437
|
* TableBody component.
|
|
@@ -19439,7 +19449,7 @@ const TableBody$1 = props => {
|
|
|
19439
19449
|
return /*#__PURE__*/jsx("tbody", {
|
|
19440
19450
|
ref: ref,
|
|
19441
19451
|
...forwardedProps,
|
|
19442
|
-
className: classnames(className, CLASSNAME$
|
|
19452
|
+
className: classnames(className, CLASSNAME$a),
|
|
19443
19453
|
children: children
|
|
19444
19454
|
});
|
|
19445
19455
|
};
|
|
@@ -19466,8 +19476,8 @@ const TableBody = forwardRef((props, ref) => {
|
|
|
19466
19476
|
...otherProps
|
|
19467
19477
|
});
|
|
19468
19478
|
});
|
|
19469
|
-
TableBody.displayName = COMPONENT_NAME$
|
|
19470
|
-
TableBody.className = CLASSNAME$
|
|
19479
|
+
TableBody.displayName = COMPONENT_NAME$a;
|
|
19480
|
+
TableBody.className = CLASSNAME$a;
|
|
19471
19481
|
|
|
19472
19482
|
const ThOrder = {
|
|
19473
19483
|
asc: 'asc',
|
|
@@ -19488,15 +19498,15 @@ const TableCellVariant = {
|
|
|
19488
19498
|
/**
|
|
19489
19499
|
* Component display name.
|
|
19490
19500
|
*/
|
|
19491
|
-
const COMPONENT_NAME$
|
|
19501
|
+
const COMPONENT_NAME$9 = 'TableCell';
|
|
19492
19502
|
|
|
19493
19503
|
/**
|
|
19494
19504
|
* Component default class name and class prefix.
|
|
19495
19505
|
*/
|
|
19496
|
-
const CLASSNAME$
|
|
19506
|
+
const CLASSNAME$9 = `${CLASSNAME$b}__cell`;
|
|
19497
19507
|
const {
|
|
19498
|
-
block: block$
|
|
19499
|
-
} = bem(CLASSNAME$
|
|
19508
|
+
block: block$9
|
|
19509
|
+
} = bem(CLASSNAME$9);
|
|
19500
19510
|
|
|
19501
19511
|
/**
|
|
19502
19512
|
* Component default props.
|
|
@@ -19542,40 +19552,40 @@ const TableCell$1 = props => {
|
|
|
19542
19552
|
children: [variant === TableCellVariant.head && /*#__PURE__*/jsx("th", {
|
|
19543
19553
|
ref: ref,
|
|
19544
19554
|
...forwardedProps,
|
|
19545
|
-
className: classnames(className, block$
|
|
19555
|
+
className: classnames(className, block$9({
|
|
19546
19556
|
'is-sortable': isSortable,
|
|
19547
19557
|
'is-sorted': isSortable && !!sortOrder,
|
|
19548
19558
|
head: true
|
|
19549
19559
|
})),
|
|
19550
19560
|
"aria-sort": ariaSort,
|
|
19551
19561
|
children: /*#__PURE__*/jsxs(Wrapper, {
|
|
19552
|
-
className: `${CLASSNAME$
|
|
19562
|
+
className: `${CLASSNAME$9}-wrapper`,
|
|
19553
19563
|
...wrapperProps,
|
|
19554
19564
|
children: [icon && !isSortable && Icon$1({
|
|
19555
|
-
className: `${CLASSNAME$
|
|
19565
|
+
className: `${CLASSNAME$9}-icon`,
|
|
19556
19566
|
icon,
|
|
19557
19567
|
size: Size.xxs
|
|
19558
19568
|
}), isSortable && sortOrder === ThOrder.asc && Icon$1({
|
|
19559
|
-
className: `${CLASSNAME$
|
|
19569
|
+
className: `${CLASSNAME$9}-icon`,
|
|
19560
19570
|
icon: mdiArrowUp,
|
|
19561
19571
|
size: Size.xxs
|
|
19562
19572
|
}), isSortable && sortOrder === ThOrder.desc && Icon$1({
|
|
19563
|
-
className: `${CLASSNAME$
|
|
19573
|
+
className: `${CLASSNAME$9}-icon`,
|
|
19564
19574
|
icon: mdiArrowDown,
|
|
19565
19575
|
size: Size.xxs
|
|
19566
19576
|
}), /*#__PURE__*/jsx("div", {
|
|
19567
|
-
className: `${CLASSNAME$
|
|
19577
|
+
className: `${CLASSNAME$9}-content`,
|
|
19568
19578
|
children: children
|
|
19569
19579
|
})]
|
|
19570
19580
|
})
|
|
19571
19581
|
}), variant === TableCellVariant.body && /*#__PURE__*/jsx("td", {
|
|
19572
19582
|
ref: ref,
|
|
19573
19583
|
...forwardedProps,
|
|
19574
|
-
className: classnames(className, block$
|
|
19584
|
+
className: classnames(className, block$9({
|
|
19575
19585
|
body: true
|
|
19576
19586
|
})),
|
|
19577
19587
|
children: /*#__PURE__*/jsx("div", {
|
|
19578
|
-
className: `${CLASSNAME$
|
|
19588
|
+
className: `${CLASSNAME$9}-content`,
|
|
19579
19589
|
children: children
|
|
19580
19590
|
})
|
|
19581
19591
|
})]
|
|
@@ -19604,19 +19614,19 @@ const TableCell = forwardRef((props, ref) => {
|
|
|
19604
19614
|
handleClick: onHeaderClick
|
|
19605
19615
|
});
|
|
19606
19616
|
});
|
|
19607
|
-
TableCell.displayName = COMPONENT_NAME$
|
|
19608
|
-
TableCell.className = CLASSNAME$
|
|
19617
|
+
TableCell.displayName = COMPONENT_NAME$9;
|
|
19618
|
+
TableCell.className = CLASSNAME$9;
|
|
19609
19619
|
TableCell.defaultProps = DEFAULT_PROPS$a;
|
|
19610
19620
|
|
|
19611
19621
|
/**
|
|
19612
19622
|
* Component display name.
|
|
19613
19623
|
*/
|
|
19614
|
-
const COMPONENT_NAME$
|
|
19624
|
+
const COMPONENT_NAME$8 = 'TableHeader';
|
|
19615
19625
|
|
|
19616
19626
|
/**
|
|
19617
19627
|
* Component default class name and class prefix.
|
|
19618
19628
|
*/
|
|
19619
|
-
const CLASSNAME$
|
|
19629
|
+
const CLASSNAME$8 = `${CLASSNAME$b}__header`;
|
|
19620
19630
|
|
|
19621
19631
|
/**
|
|
19622
19632
|
* Component default props.
|
|
@@ -19639,7 +19649,7 @@ const TableHeader$1 = props => {
|
|
|
19639
19649
|
return /*#__PURE__*/jsx("thead", {
|
|
19640
19650
|
ref: ref,
|
|
19641
19651
|
...forwardedProps,
|
|
19642
|
-
className: classnames(className, CLASSNAME$
|
|
19652
|
+
className: classnames(className, CLASSNAME$8),
|
|
19643
19653
|
children: children
|
|
19644
19654
|
});
|
|
19645
19655
|
};
|
|
@@ -19666,22 +19676,22 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
19666
19676
|
...otherProps
|
|
19667
19677
|
});
|
|
19668
19678
|
});
|
|
19669
|
-
TableHeader.displayName = COMPONENT_NAME$
|
|
19670
|
-
TableHeader.className = CLASSNAME$
|
|
19679
|
+
TableHeader.displayName = COMPONENT_NAME$8;
|
|
19680
|
+
TableHeader.className = CLASSNAME$8;
|
|
19671
19681
|
TableHeader.defaultProps = DEFAULT_PROPS$9;
|
|
19672
19682
|
|
|
19673
19683
|
/**
|
|
19674
19684
|
* Component display name.
|
|
19675
19685
|
*/
|
|
19676
|
-
const COMPONENT_NAME$
|
|
19686
|
+
const COMPONENT_NAME$7 = 'TableRow';
|
|
19677
19687
|
|
|
19678
19688
|
/**
|
|
19679
19689
|
* Component default class name and class prefix.
|
|
19680
19690
|
*/
|
|
19681
|
-
const CLASSNAME$
|
|
19691
|
+
const CLASSNAME$7 = `${CLASSNAME$b}__row`;
|
|
19682
19692
|
const {
|
|
19683
|
-
block: block$
|
|
19684
|
-
} = bem(CLASSNAME$
|
|
19693
|
+
block: block$8
|
|
19694
|
+
} = bem(CLASSNAME$7);
|
|
19685
19695
|
|
|
19686
19696
|
/**
|
|
19687
19697
|
* Component default props.
|
|
@@ -19716,7 +19726,7 @@ const TableRow$1 = props => {
|
|
|
19716
19726
|
"aria-disabled": ariaDisabled,
|
|
19717
19727
|
...tabIndexProps,
|
|
19718
19728
|
...forwardedProps,
|
|
19719
|
-
className: classnames(className, block$
|
|
19729
|
+
className: classnames(className, block$8({
|
|
19720
19730
|
'is-clickable': isClickable && !isDisabled,
|
|
19721
19731
|
'is-disabled': isDisabled,
|
|
19722
19732
|
'is-selected': isSelected && !isDisabled
|
|
@@ -19756,8 +19766,8 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
19756
19766
|
...forwardedProps
|
|
19757
19767
|
});
|
|
19758
19768
|
});
|
|
19759
|
-
TableRow.displayName = COMPONENT_NAME$
|
|
19760
|
-
TableRow.className = CLASSNAME$
|
|
19769
|
+
TableRow.displayName = COMPONENT_NAME$7;
|
|
19770
|
+
TableRow.className = CLASSNAME$7;
|
|
19761
19771
|
TableRow.defaultProps = DEFAULT_PROPS$8;
|
|
19762
19772
|
|
|
19763
19773
|
const DEFAULT_PROPS$7 = {
|
|
@@ -19828,7 +19838,7 @@ TabProvider.defaultProps = DEFAULT_PROPS$7;
|
|
|
19828
19838
|
const TABS_CLASSNAME = `lumx-tabs`;
|
|
19829
19839
|
|
|
19830
19840
|
const {
|
|
19831
|
-
block: block$
|
|
19841
|
+
block: block$7,
|
|
19832
19842
|
element: element$4
|
|
19833
19843
|
} = bem(TABS_CLASSNAME);
|
|
19834
19844
|
let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
@@ -19844,7 +19854,7 @@ let TabListLayout = /*#__PURE__*/function (TabListLayout) {
|
|
|
19844
19854
|
/**
|
|
19845
19855
|
* Component display name.
|
|
19846
19856
|
*/
|
|
19847
|
-
const COMPONENT_NAME$
|
|
19857
|
+
const COMPONENT_NAME$6 = 'TabList';
|
|
19848
19858
|
|
|
19849
19859
|
/**
|
|
19850
19860
|
* Component default props.
|
|
@@ -19877,7 +19887,7 @@ const TabList$1 = props => {
|
|
|
19877
19887
|
return /*#__PURE__*/jsx("div", {
|
|
19878
19888
|
ref: ref,
|
|
19879
19889
|
...forwardedProps,
|
|
19880
|
-
className: classnames(className, block$
|
|
19890
|
+
className: classnames(className, block$7({
|
|
19881
19891
|
[`layout-${layout}`]: Boolean(layout),
|
|
19882
19892
|
[`position-${position}`]: Boolean(position),
|
|
19883
19893
|
[`theme-${theme}`]: Boolean(theme)
|
|
@@ -19917,14 +19927,14 @@ const TabList = forwardRef((props, ref) => {
|
|
|
19917
19927
|
...forwardedProps
|
|
19918
19928
|
});
|
|
19919
19929
|
});
|
|
19920
|
-
TabList.displayName = COMPONENT_NAME$
|
|
19930
|
+
TabList.displayName = COMPONENT_NAME$6;
|
|
19921
19931
|
TabList.className = TABS_CLASSNAME;
|
|
19922
19932
|
TabList.defaultProps = DEFAULT_PROPS$6;
|
|
19923
19933
|
|
|
19924
19934
|
/**
|
|
19925
19935
|
* Component display name.
|
|
19926
19936
|
*/
|
|
19927
|
-
const COMPONENT_NAME$
|
|
19937
|
+
const COMPONENT_NAME$5 = 'Tab';
|
|
19928
19938
|
|
|
19929
19939
|
/**
|
|
19930
19940
|
* Component default props.
|
|
@@ -19934,10 +19944,10 @@ const DEFAULT_PROPS$5 = {};
|
|
|
19934
19944
|
/**
|
|
19935
19945
|
* Component default class name and class prefix.
|
|
19936
19946
|
*/
|
|
19937
|
-
const CLASSNAME$
|
|
19947
|
+
const CLASSNAME$6 = `${TABS_CLASSNAME}__link`;
|
|
19938
19948
|
const {
|
|
19939
|
-
block: block$
|
|
19940
|
-
} = bem(CLASSNAME$
|
|
19949
|
+
block: block$6
|
|
19950
|
+
} = bem(CLASSNAME$6);
|
|
19941
19951
|
|
|
19942
19952
|
/**
|
|
19943
19953
|
* Tab component.
|
|
@@ -19996,7 +20006,7 @@ const Tab$1 = props => {
|
|
|
19996
20006
|
...forwardedProps,
|
|
19997
20007
|
type: "button",
|
|
19998
20008
|
id: tabId,
|
|
19999
|
-
className: classnames(className, block$
|
|
20009
|
+
className: classnames(className, block$6({
|
|
20000
20010
|
'is-active': isActive,
|
|
20001
20011
|
'is-disabled': isAnyDisabled
|
|
20002
20012
|
})),
|
|
@@ -20064,22 +20074,22 @@ const Tab = forwardRef((props, ref) => {
|
|
|
20064
20074
|
...forwardedProps
|
|
20065
20075
|
});
|
|
20066
20076
|
});
|
|
20067
|
-
Tab.displayName = COMPONENT_NAME$
|
|
20068
|
-
Tab.className = CLASSNAME$
|
|
20077
|
+
Tab.displayName = COMPONENT_NAME$5;
|
|
20078
|
+
Tab.className = CLASSNAME$6;
|
|
20069
20079
|
Tab.defaultProps = DEFAULT_PROPS$5;
|
|
20070
20080
|
|
|
20071
20081
|
/**
|
|
20072
20082
|
* Component display name.
|
|
20073
20083
|
*/
|
|
20074
|
-
const COMPONENT_NAME$
|
|
20084
|
+
const COMPONENT_NAME$4 = 'TabPanel';
|
|
20075
20085
|
|
|
20076
20086
|
/**
|
|
20077
20087
|
* Component default class name and class prefix.
|
|
20078
20088
|
*/
|
|
20079
|
-
const CLASSNAME$
|
|
20089
|
+
const CLASSNAME$5 = `lumx-tab-panel`;
|
|
20080
20090
|
const {
|
|
20081
|
-
block: block$
|
|
20082
|
-
} = bem(CLASSNAME$
|
|
20091
|
+
block: block$5
|
|
20092
|
+
} = bem(CLASSNAME$5);
|
|
20083
20093
|
|
|
20084
20094
|
/**
|
|
20085
20095
|
* Component default props.
|
|
@@ -20111,7 +20121,7 @@ const TabPanel$1 = props => {
|
|
|
20111
20121
|
ref: ref,
|
|
20112
20122
|
...forwardedProps,
|
|
20113
20123
|
id: id,
|
|
20114
|
-
className: classnames(className, block$
|
|
20124
|
+
className: classnames(className, block$5({
|
|
20115
20125
|
'is-active': isActive
|
|
20116
20126
|
})),
|
|
20117
20127
|
role: "tabpanel",
|
|
@@ -20151,8 +20161,8 @@ const TabPanel = forwardRef((props, ref) => {
|
|
|
20151
20161
|
...forwardedProps
|
|
20152
20162
|
});
|
|
20153
20163
|
});
|
|
20154
|
-
TabPanel.displayName = COMPONENT_NAME$
|
|
20155
|
-
TabPanel.className = CLASSNAME$
|
|
20164
|
+
TabPanel.displayName = COMPONENT_NAME$4;
|
|
20165
|
+
TabPanel.className = CLASSNAME$5;
|
|
20156
20166
|
TabPanel.defaultProps = DEFAULT_PROPS$4;
|
|
20157
20167
|
|
|
20158
20168
|
/**
|
|
@@ -20302,16 +20312,16 @@ function calculateFocusPointStyle({
|
|
|
20302
20312
|
/**
|
|
20303
20313
|
* Component display name.
|
|
20304
20314
|
*/
|
|
20305
|
-
const COMPONENT_NAME$
|
|
20315
|
+
const COMPONENT_NAME$3 = 'Thumbnail';
|
|
20306
20316
|
|
|
20307
20317
|
/**
|
|
20308
20318
|
* Component default class name and class prefix.
|
|
20309
20319
|
*/
|
|
20310
|
-
const CLASSNAME$
|
|
20320
|
+
const CLASSNAME$4 = 'lumx-thumbnail';
|
|
20311
20321
|
const {
|
|
20312
|
-
block: block$
|
|
20322
|
+
block: block$4,
|
|
20313
20323
|
element: element$3
|
|
20314
|
-
} = classNames.bem(CLASSNAME$
|
|
20324
|
+
} = classNames.bem(CLASSNAME$4);
|
|
20315
20325
|
|
|
20316
20326
|
/**
|
|
20317
20327
|
* Component default props.
|
|
@@ -20386,7 +20396,7 @@ const Thumbnail$1 = props => {
|
|
|
20386
20396
|
wrapperProps['aria-label'] = forwardedProps['aria-label'] || alt;
|
|
20387
20397
|
}
|
|
20388
20398
|
}
|
|
20389
|
-
const wrapperClassName = classNames.join(linkProps?.className, className, block$
|
|
20399
|
+
const wrapperClassName = classNames.join(linkProps?.className, className, block$4({
|
|
20390
20400
|
[`align-${align}`]: Boolean(align),
|
|
20391
20401
|
[`aspect-ratio-${aspectRatio}`]: Boolean(aspectRatio),
|
|
20392
20402
|
[`size-${size}`]: Boolean(size),
|
|
@@ -20592,8 +20602,8 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
20592
20602
|
})
|
|
20593
20603
|
});
|
|
20594
20604
|
});
|
|
20595
|
-
Thumbnail.displayName = COMPONENT_NAME$
|
|
20596
|
-
Thumbnail.className = CLASSNAME$
|
|
20605
|
+
Thumbnail.displayName = COMPONENT_NAME$3;
|
|
20606
|
+
Thumbnail.className = CLASSNAME$4;
|
|
20597
20607
|
Thumbnail.defaultProps = DEFAULT_PROPS$3;
|
|
20598
20608
|
|
|
20599
20609
|
/**
|
|
@@ -20633,6 +20643,324 @@ const ThumbnailObjectFit = {
|
|
|
20633
20643
|
contain: 'contain'
|
|
20634
20644
|
};
|
|
20635
20645
|
|
|
20646
|
+
/**
|
|
20647
|
+
* Component display name.
|
|
20648
|
+
*/
|
|
20649
|
+
const COMPONENT_NAME$2 = 'TimePickerField';
|
|
20650
|
+
|
|
20651
|
+
/**
|
|
20652
|
+
* Component default class name (BEM root).
|
|
20653
|
+
*/
|
|
20654
|
+
const CLASSNAME$3 = 'lumx-time-picker-field';
|
|
20655
|
+
const {
|
|
20656
|
+
block: block$3
|
|
20657
|
+
} = bem(CLASSNAME$3);
|
|
20658
|
+
|
|
20659
|
+
/**
|
|
20660
|
+
* Translations consumed by `TimePickerField` (forwarded as-is to the underlying
|
|
20661
|
+
* `SelectTextField`).
|
|
20662
|
+
*/
|
|
20663
|
+
|
|
20664
|
+
/**
|
|
20665
|
+
* Core props for the `TimePickerField` template.
|
|
20666
|
+
*/
|
|
20667
|
+
|
|
20668
|
+
/**
|
|
20669
|
+
* Injected framework-specific components for TimePickerField rendering.
|
|
20670
|
+
*/
|
|
20671
|
+
|
|
20672
|
+
/**
|
|
20673
|
+
* `TimePickerField` core template.
|
|
20674
|
+
*
|
|
20675
|
+
* Renders a `SelectTextField<TimeOfDay>` with an option list built from
|
|
20676
|
+
* `buildTimeList`. Out-of-range options (strictly before `minTime` / after
|
|
20677
|
+
* `maxTime`) remain visible in the dropdown but are rendered as disabled.
|
|
20678
|
+
*
|
|
20679
|
+
* Framework-specific components are passed as a second argument by the
|
|
20680
|
+
* React/Vue wrappers.
|
|
20681
|
+
*
|
|
20682
|
+
* @param props Component props.
|
|
20683
|
+
* @param components Injected framework-specific components.
|
|
20684
|
+
* @return JSX element.
|
|
20685
|
+
*/
|
|
20686
|
+
const TimePickerField$1 = (props, {
|
|
20687
|
+
SelectTextField,
|
|
20688
|
+
Option
|
|
20689
|
+
}) => {
|
|
20690
|
+
const {
|
|
20691
|
+
options,
|
|
20692
|
+
translations,
|
|
20693
|
+
className,
|
|
20694
|
+
handleChange,
|
|
20695
|
+
handleSearch,
|
|
20696
|
+
handleBlur,
|
|
20697
|
+
...fowardedProps
|
|
20698
|
+
} = props;
|
|
20699
|
+
return /*#__PURE__*/jsx(SelectTextField, {
|
|
20700
|
+
...fowardedProps,
|
|
20701
|
+
className: block$3([className]),
|
|
20702
|
+
selectionType: "single",
|
|
20703
|
+
options: options,
|
|
20704
|
+
getOptionId: "name",
|
|
20705
|
+
renderOption: entry => /*#__PURE__*/jsx(Option, {
|
|
20706
|
+
isDisabled: entry.outOfRange
|
|
20707
|
+
}),
|
|
20708
|
+
onChange: handleChange,
|
|
20709
|
+
onSearch: handleSearch,
|
|
20710
|
+
onBlur: handleBlur,
|
|
20711
|
+
filter: "auto",
|
|
20712
|
+
translations: translations
|
|
20713
|
+
});
|
|
20714
|
+
};
|
|
20715
|
+
TimePickerField$1.displayName = COMPONENT_NAME$2;
|
|
20716
|
+
TimePickerField$1.className = CLASSNAME$3;
|
|
20717
|
+
|
|
20718
|
+
/**
|
|
20719
|
+
* Format a time-of-day as a locale-aware short time (e.g. `'10:30 AM'`,
|
|
20720
|
+
* `'10:30'`). Hour is `numeric` (not `'2-digit'`); some locales insert a
|
|
20721
|
+
* narrow no-break space (U+202F) before AM/PM.
|
|
20722
|
+
*/
|
|
20723
|
+
function formatTime(date, locale) {
|
|
20724
|
+
return date.toLocaleTimeString(locale, {
|
|
20725
|
+
hour: 'numeric',
|
|
20726
|
+
minute: '2-digit'
|
|
20727
|
+
});
|
|
20728
|
+
}
|
|
20729
|
+
|
|
20730
|
+
/**
|
|
20731
|
+
* Build a new `Date` with the given time-of-day, inheriting the date part of
|
|
20732
|
+
* `reference` (or today). Seconds/ms zeroed; `reference` is not mutated.
|
|
20733
|
+
*/
|
|
20734
|
+
function getDateAtTime({
|
|
20735
|
+
hour,
|
|
20736
|
+
minute
|
|
20737
|
+
}, reference) {
|
|
20738
|
+
const next = reference ? new Date(reference) : new Date();
|
|
20739
|
+
next.setHours(hour, minute, 0, 0);
|
|
20740
|
+
return next;
|
|
20741
|
+
}
|
|
20742
|
+
|
|
20743
|
+
/**
|
|
20744
|
+
* Return the time-of-day of `date` in minutes since 00:00 (date part ignored).
|
|
20745
|
+
*/
|
|
20746
|
+
function timeOfDayMinutes(date) {
|
|
20747
|
+
return date.getHours() * 60 + date.getMinutes();
|
|
20748
|
+
}
|
|
20749
|
+
|
|
20750
|
+
/**
|
|
20751
|
+
* A time-of-day (24h), independent of any date or time zone. Canonical
|
|
20752
|
+
* exchange shape for the time utilities and `TimePickerField`.
|
|
20753
|
+
*/
|
|
20754
|
+
|
|
20755
|
+
/** Options for `buildTimeList`. */
|
|
20756
|
+
|
|
20757
|
+
const MINUTES_IN_HOUR = 60;
|
|
20758
|
+
const MINUTES_IN_DAY = 24 * MINUTES_IN_HOUR;
|
|
20759
|
+
|
|
20760
|
+
/**
|
|
20761
|
+
* Build a full-day list of `TimeOfDay` entries spaced `step` minutes apart.
|
|
20762
|
+
* Out-of-bounds entries are kept (with `outOfRange: true`) so consumers can
|
|
20763
|
+
* render them as visible-but-unselectable. Returns `[]` for invalid `step`.
|
|
20764
|
+
*/
|
|
20765
|
+
function buildTimeList(options = {}) {
|
|
20766
|
+
const {
|
|
20767
|
+
step = 30,
|
|
20768
|
+
minTime,
|
|
20769
|
+
maxTime,
|
|
20770
|
+
locale
|
|
20771
|
+
} = options;
|
|
20772
|
+
if (!Number.isInteger(step) || step <= 0) {
|
|
20773
|
+
return [];
|
|
20774
|
+
}
|
|
20775
|
+
const minMinutes = minTime ? timeOfDayMinutes(minTime) : undefined;
|
|
20776
|
+
const maxMinutes = maxTime ? timeOfDayMinutes(maxTime) : undefined;
|
|
20777
|
+
const list = [];
|
|
20778
|
+
for (let minutes = 0; minutes < MINUTES_IN_DAY; minutes += step) {
|
|
20779
|
+
const hour = Math.floor(minutes / MINUTES_IN_HOUR);
|
|
20780
|
+
const minute = minutes % MINUTES_IN_HOUR;
|
|
20781
|
+
const outOfRange = minMinutes !== undefined && minutes < minMinutes || maxMinutes !== undefined && minutes > maxMinutes || undefined;
|
|
20782
|
+
const name = locale ? formatTime(getDateAtTime({
|
|
20783
|
+
hour,
|
|
20784
|
+
minute
|
|
20785
|
+
}), locale) : undefined;
|
|
20786
|
+
list.push({
|
|
20787
|
+
hour,
|
|
20788
|
+
minute,
|
|
20789
|
+
name,
|
|
20790
|
+
outOfRange
|
|
20791
|
+
});
|
|
20792
|
+
}
|
|
20793
|
+
return list;
|
|
20794
|
+
}
|
|
20795
|
+
|
|
20796
|
+
/**
|
|
20797
|
+
* Match a free-form time. Supports:
|
|
20798
|
+
* - 12h with am/pm suffix (`a`, `am`, `p`, `pm`, `a.m.`, `p.m.`), optional whitespace
|
|
20799
|
+
* - 24h with colon (`15:45`), dot (`15.45`), `h` (`15h45`) or no separator (`1545`)
|
|
20800
|
+
* - Optional seconds segment (ignored): `15:45:00`, `15.45.00`
|
|
20801
|
+
* - Optional ISO `T` prefix and trailing `Z` (UTC marker)
|
|
20802
|
+
*
|
|
20803
|
+
* Capture groups:
|
|
20804
|
+
* 1: hour, 2: minutes (optional), 3: am/pm marker (optional)
|
|
20805
|
+
*/
|
|
20806
|
+
const RE_TIME = /^T?(\d{1,2})(?:[:.h]?([0-5]\d)(?:[:.]?[0-5]\d)?)?\s*(a\.?m?\.?|p\.?m?\.?)?Z?$/i;
|
|
20807
|
+
|
|
20808
|
+
/**
|
|
20809
|
+
* Parse a free-form user time input into a 24h `TimeOfDay`. Accepts a wide
|
|
20810
|
+
* range of formats:
|
|
20811
|
+
*
|
|
20812
|
+
* - 12h AM/PM: `'2pm'`, `'2 PM'`, `'2:30pm'`, `'3.45 PM'`, `'3:45 p.m.'`
|
|
20813
|
+
* - 24h colon: `'10:30'`, `'15:45'`
|
|
20814
|
+
* - 24h dot (DE/FR/IT): `'15.45'`
|
|
20815
|
+
* - 24h French: `'15h45'`
|
|
20816
|
+
* - Military / no separator: `'1545'`, `'1030pm'`
|
|
20817
|
+
* - With seconds (ignored): `'15:45:00'`
|
|
20818
|
+
* - ISO 8601: `'T15:45'`, `'15:45Z'`
|
|
20819
|
+
*
|
|
20820
|
+
* Whitespace is trimmed. Returns `undefined` if no format matches.
|
|
20821
|
+
*/
|
|
20822
|
+
function parseTimeInput(raw) {
|
|
20823
|
+
if (typeof raw !== 'string') return undefined;
|
|
20824
|
+
const match = raw.trim().match(RE_TIME);
|
|
20825
|
+
if (!match) return undefined;
|
|
20826
|
+
const [, rawHour, rawMinute, ampm] = match;
|
|
20827
|
+
let hour = Number(rawHour);
|
|
20828
|
+
const minute = rawMinute ? Number(rawMinute) : 0;
|
|
20829
|
+
if (ampm) {
|
|
20830
|
+
// 12h: hour must be 1..12; convert to 24h (12am→0, 12pm→12).
|
|
20831
|
+
if (hour < 1 || hour > 12) return undefined;
|
|
20832
|
+
const isPm = ampm[0].toLowerCase() === 'p';
|
|
20833
|
+
if (hour === 12) hour = isPm ? 12 : 0;else if (isPm) hour += 12;
|
|
20834
|
+
} else if (hour > 23) {
|
|
20835
|
+
// 24h: hour must be 0..23.
|
|
20836
|
+
return undefined;
|
|
20837
|
+
}
|
|
20838
|
+
return {
|
|
20839
|
+
hour,
|
|
20840
|
+
minute
|
|
20841
|
+
};
|
|
20842
|
+
}
|
|
20843
|
+
|
|
20844
|
+
/**
|
|
20845
|
+
* Clamp `time` to `[minTime, maxTime]`. Inputs strictly before `minTime` snap
|
|
20846
|
+
* up; inputs strictly after `maxTime` snap down; otherwise returned unchanged.
|
|
20847
|
+
* Only the time-of-day of `minTime`/`maxTime` is used.
|
|
20848
|
+
*/
|
|
20849
|
+
function snapTimeToBounds(time, minTime, maxTime) {
|
|
20850
|
+
const totalMinutes = time.hour * 60 + time.minute;
|
|
20851
|
+
if (minTime && totalMinutes < timeOfDayMinutes(minTime)) {
|
|
20852
|
+
return {
|
|
20853
|
+
hour: minTime.getHours(),
|
|
20854
|
+
minute: minTime.getMinutes()
|
|
20855
|
+
};
|
|
20856
|
+
}
|
|
20857
|
+
if (maxTime && totalMinutes > timeOfDayMinutes(maxTime)) {
|
|
20858
|
+
return {
|
|
20859
|
+
hour: maxTime.getHours(),
|
|
20860
|
+
minute: maxTime.getMinutes()
|
|
20861
|
+
};
|
|
20862
|
+
}
|
|
20863
|
+
return time;
|
|
20864
|
+
}
|
|
20865
|
+
|
|
20866
|
+
/**
|
|
20867
|
+
* Returns `true` when the time-of-day of `date` matches `time` (hour and
|
|
20868
|
+
* minute). Seconds and milliseconds are ignored.
|
|
20869
|
+
*/
|
|
20870
|
+
function isDateOnTime(date, time) {
|
|
20871
|
+
return date.getHours() === time.hour && date.getMinutes() === time.minute;
|
|
20872
|
+
}
|
|
20873
|
+
|
|
20874
|
+
/**
|
|
20875
|
+
* Inherited SelectTextField props (less the parts owned by TimePickerField).
|
|
20876
|
+
*/
|
|
20877
|
+
|
|
20878
|
+
/**
|
|
20879
|
+
* `TimePickerField` props.
|
|
20880
|
+
*/
|
|
20881
|
+
|
|
20882
|
+
/**
|
|
20883
|
+
* A select-style picker for choosing a time of day. Wraps `SelectTextField`
|
|
20884
|
+
* with a generated list of times built from `step`, `minTime`, and `maxTime`.
|
|
20885
|
+
*
|
|
20886
|
+
* Out-of-range options (strictly before `minTime` or after `maxTime`) remain
|
|
20887
|
+
* visible in the dropdown but are rendered as disabled.
|
|
20888
|
+
*
|
|
20889
|
+
* Free-form typed input (e.g. `"10:30 PM"`, `"14"`, `"930"`) is parsed on blur.
|
|
20890
|
+
*
|
|
20891
|
+
* @param props Component props.
|
|
20892
|
+
* @return React element.
|
|
20893
|
+
*/
|
|
20894
|
+
const TimePickerField = props => {
|
|
20895
|
+
const {
|
|
20896
|
+
value,
|
|
20897
|
+
onChange,
|
|
20898
|
+
locale = getCurrentLocale(),
|
|
20899
|
+
step = 30,
|
|
20900
|
+
minTime,
|
|
20901
|
+
maxTime,
|
|
20902
|
+
className,
|
|
20903
|
+
theme,
|
|
20904
|
+
translations,
|
|
20905
|
+
...forwardedProps
|
|
20906
|
+
} = props;
|
|
20907
|
+
|
|
20908
|
+
// Build the option list — re-computed only when bounds/step/locale change.
|
|
20909
|
+
const timeList = useMemo(() => buildTimeList({
|
|
20910
|
+
step,
|
|
20911
|
+
minTime,
|
|
20912
|
+
maxTime,
|
|
20913
|
+
locale
|
|
20914
|
+
}), [step, minTime, maxTime, locale]);
|
|
20915
|
+
|
|
20916
|
+
// Track the user's typed input separately from the SelectTextField's internal search state,
|
|
20917
|
+
// so blur can convert it to a Date.
|
|
20918
|
+
const [searchValue, handleSearch] = useState('');
|
|
20919
|
+
|
|
20920
|
+
// Resolve the option that matches the current value (by time-of-day).
|
|
20921
|
+
const selectedOption = useMemo(() => {
|
|
20922
|
+
if (!value) return undefined;
|
|
20923
|
+
return {
|
|
20924
|
+
hour: value.getHours(),
|
|
20925
|
+
minute: value.getMinutes(),
|
|
20926
|
+
name: formatTime(value, locale)
|
|
20927
|
+
};
|
|
20928
|
+
}, [value, locale]);
|
|
20929
|
+
const handleChange = useCallback(next => {
|
|
20930
|
+
const date = next ? getDateAtTime(next, value) : undefined;
|
|
20931
|
+
onChange(date, forwardedProps.name);
|
|
20932
|
+
}, [forwardedProps.name, onChange, value]);
|
|
20933
|
+
const handleBlur = useCallback(() => {
|
|
20934
|
+
if (!searchValue) return;
|
|
20935
|
+
const parsed = parseTimeInput(searchValue);
|
|
20936
|
+
// Reset our local typed-value tracking; SelectTextField clears its own internal copy.
|
|
20937
|
+
handleSearch('');
|
|
20938
|
+
if (!parsed) return;
|
|
20939
|
+
|
|
20940
|
+
// Snap to bounds if needed, then dedup against the current value.
|
|
20941
|
+
const time = snapTimeToBounds(parsed, minTime, maxTime);
|
|
20942
|
+
if (value && isDateOnTime(value, time)) return;
|
|
20943
|
+
onChange(getDateAtTime(time, value), forwardedProps.name);
|
|
20944
|
+
}, [maxTime, minTime, forwardedProps.name, onChange, searchValue, value]);
|
|
20945
|
+
const searchInputValue = value ? formatTime(value, locale) : undefined;
|
|
20946
|
+
return TimePickerField$1({
|
|
20947
|
+
...forwardedProps,
|
|
20948
|
+
value: selectedOption,
|
|
20949
|
+
options: timeList,
|
|
20950
|
+
translations,
|
|
20951
|
+
className,
|
|
20952
|
+
theme,
|
|
20953
|
+
handleChange,
|
|
20954
|
+
handleSearch,
|
|
20955
|
+
handleBlur,
|
|
20956
|
+
searchInputValue
|
|
20957
|
+
}, {
|
|
20958
|
+
SelectTextField,
|
|
20959
|
+
Option: SelectTextField.Option
|
|
20960
|
+
});
|
|
20961
|
+
};
|
|
20962
|
+
TimePickerField.displayName = COMPONENT_NAME$2;
|
|
20963
|
+
|
|
20636
20964
|
/**
|
|
20637
20965
|
* Component display name.
|
|
20638
20966
|
*/
|
|
@@ -21104,5 +21432,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
21104
21432
|
UserBlock.className = CLASSNAME;
|
|
21105
21433
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
21106
21434
|
|
|
21107
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$
|
|
21435
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1s as CLASSNAME, COMPONENT_NAME$1t as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1b as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME$3 as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME$2 as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
21108
21436
|
//# sourceMappingURL=index.js.map
|