@lumx/react 4.23.0-next.0 → 4.23.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +34 -3
- package/index.js +775 -682
- package/index.js.map +1 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -309,7 +309,7 @@ function modifier$1(baseName, modifiers) {
|
|
|
309
309
|
* block('button', { active: true, disabled: false }); // 'button button--active'
|
|
310
310
|
*/
|
|
311
311
|
|
|
312
|
-
function block$
|
|
312
|
+
function block$1e(baseName, modifiersOrAdditionalClasses, additionalClasses) {
|
|
313
313
|
let modifiers;
|
|
314
314
|
let classes;
|
|
315
315
|
if (typeof modifiersOrAdditionalClasses === 'string' || Array.isArray(modifiersOrAdditionalClasses)) {
|
|
@@ -344,7 +344,7 @@ const ACTION_ELEMENT = `${PREFIX}__action`;
|
|
|
344
344
|
const actionArea = Object.assign(/** Action area container class. Sets `position: relative`. */
|
|
345
345
|
() => PREFIX, {
|
|
346
346
|
/** Action element class. Adds a `::before` pseudo-element with `position: absolute; inset: 0` to expand the click area. */
|
|
347
|
-
action: modifiers => block$
|
|
347
|
+
action: modifiers => block$1e(ACTION_ELEMENT, modifiers)
|
|
348
348
|
});
|
|
349
349
|
|
|
350
350
|
/** Resolve color & color variant from a `ColorWithVariants` and optionally a `ColorVariant`. */
|
|
@@ -466,8 +466,8 @@ const visuallyHidden = () => VISUALLY_HIDDEN;
|
|
|
466
466
|
* element('my-button', 'icon', { active: true }); // 'my-button__icon my-button__icon--active'
|
|
467
467
|
*/
|
|
468
468
|
|
|
469
|
-
function element$
|
|
470
|
-
return block$
|
|
469
|
+
function element$U(baseClass, elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
470
|
+
return block$1e(`${baseClass}__${elem}`, modifiersOrAdditionalClasses, additionalClasses);
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
/**
|
|
@@ -475,10 +475,10 @@ function element$T(baseClass, elem, modifiersOrAdditionalClasses, additionalClas
|
|
|
475
475
|
*/
|
|
476
476
|
function bem(baseName) {
|
|
477
477
|
function blockFn(modifiersOrAdditionalClasses, additionalClasses) {
|
|
478
|
-
return block$
|
|
478
|
+
return block$1e(baseName, modifiersOrAdditionalClasses, additionalClasses);
|
|
479
479
|
}
|
|
480
480
|
function elementFn(elem, modifiersOrAdditionalClasses, additionalClasses) {
|
|
481
|
-
return element$
|
|
481
|
+
return element$U(baseName, elem, modifiersOrAdditionalClasses, additionalClasses);
|
|
482
482
|
}
|
|
483
483
|
return {
|
|
484
484
|
block: blockFn,
|
|
@@ -558,20 +558,20 @@ const CONFIG$1 = {
|
|
|
558
558
|
/**
|
|
559
559
|
* Component display name.
|
|
560
560
|
*/
|
|
561
|
-
const COMPONENT_NAME$
|
|
561
|
+
const COMPONENT_NAME$1I = 'AlertDialog';
|
|
562
562
|
|
|
563
563
|
/**
|
|
564
564
|
* Component default class name and class prefix.
|
|
565
565
|
*/
|
|
566
|
-
const CLASSNAME$
|
|
566
|
+
const CLASSNAME$1E = 'lumx-alert-dialog';
|
|
567
567
|
const {
|
|
568
|
-
block: block$
|
|
569
|
-
} = bem(CLASSNAME$
|
|
568
|
+
block: block$1d
|
|
569
|
+
} = bem(CLASSNAME$1E);
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
572
|
* Component default props.
|
|
573
573
|
*/
|
|
574
|
-
const DEFAULT_PROPS$
|
|
574
|
+
const DEFAULT_PROPS$1l = {
|
|
575
575
|
size: Size.tiny,
|
|
576
576
|
kind: Kind.info
|
|
577
577
|
};
|
|
@@ -593,8 +593,8 @@ const AlertDialog$1 = props => {
|
|
|
593
593
|
cancelProps,
|
|
594
594
|
confirmProps,
|
|
595
595
|
ref,
|
|
596
|
-
kind = DEFAULT_PROPS$
|
|
597
|
-
size = DEFAULT_PROPS$
|
|
596
|
+
kind = DEFAULT_PROPS$1l.kind,
|
|
597
|
+
size = DEFAULT_PROPS$1l.size,
|
|
598
598
|
dialogProps,
|
|
599
599
|
children,
|
|
600
600
|
DescriptionElement,
|
|
@@ -634,7 +634,7 @@ const AlertDialog$1 = props => {
|
|
|
634
634
|
'aria-describedby': descriptionId,
|
|
635
635
|
...dialogProps
|
|
636
636
|
},
|
|
637
|
-
className: classnames(className, block$
|
|
637
|
+
className: classnames(className, block$1d({
|
|
638
638
|
[`kind-${kind}`]: Boolean(kind)
|
|
639
639
|
})),
|
|
640
640
|
...forwardedProps,
|
|
@@ -732,9 +732,9 @@ const AlertDialog = forwardRef((props, ref) => {
|
|
|
732
732
|
...forwardedProps
|
|
733
733
|
});
|
|
734
734
|
});
|
|
735
|
-
AlertDialog.displayName = COMPONENT_NAME$
|
|
736
|
-
AlertDialog.className = CLASSNAME$
|
|
737
|
-
AlertDialog.defaultProps = DEFAULT_PROPS$
|
|
735
|
+
AlertDialog.displayName = COMPONENT_NAME$1I;
|
|
736
|
+
AlertDialog.className = CLASSNAME$1E;
|
|
737
|
+
AlertDialog.defaultProps = DEFAULT_PROPS$1l;
|
|
738
738
|
|
|
739
739
|
/**
|
|
740
740
|
* Hook focusing an element when defined and `focus` boolean `true`.
|
|
@@ -826,17 +826,17 @@ function useDisableStateProps(props) {
|
|
|
826
826
|
/**
|
|
827
827
|
* Component display name.
|
|
828
828
|
*/
|
|
829
|
-
const COMPONENT_NAME$
|
|
829
|
+
const COMPONENT_NAME$1H = 'Autocomplete';
|
|
830
830
|
|
|
831
831
|
/**
|
|
832
832
|
* Component default class name and class prefix.
|
|
833
833
|
*/
|
|
834
|
-
const CLASSNAME$
|
|
834
|
+
const CLASSNAME$1D = 'lumx-autocomplete';
|
|
835
835
|
|
|
836
836
|
/**
|
|
837
837
|
* Component default props.
|
|
838
838
|
*/
|
|
839
|
-
const DEFAULT_PROPS$
|
|
839
|
+
const DEFAULT_PROPS$1k = {
|
|
840
840
|
anchorToInput: false,
|
|
841
841
|
closeOnClick: false,
|
|
842
842
|
closeOnClickAway: true,
|
|
@@ -859,13 +859,13 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
859
859
|
otherProps
|
|
860
860
|
} = useDisableStateProps(props);
|
|
861
861
|
const {
|
|
862
|
-
anchorToInput = DEFAULT_PROPS$
|
|
862
|
+
anchorToInput = DEFAULT_PROPS$1k.anchorToInput,
|
|
863
863
|
children,
|
|
864
864
|
chips,
|
|
865
865
|
className,
|
|
866
|
-
closeOnClick = DEFAULT_PROPS$
|
|
867
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
868
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
866
|
+
closeOnClick = DEFAULT_PROPS$1k.closeOnClick,
|
|
867
|
+
closeOnClickAway = DEFAULT_PROPS$1k.closeOnClickAway,
|
|
868
|
+
closeOnEscape = DEFAULT_PROPS$1k.closeOnEscape,
|
|
869
869
|
error,
|
|
870
870
|
fitToAnchorWidth,
|
|
871
871
|
hasError,
|
|
@@ -886,7 +886,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
886
886
|
onInfiniteScroll,
|
|
887
887
|
placeholder,
|
|
888
888
|
placement,
|
|
889
|
-
shouldFocusOnClose = DEFAULT_PROPS$
|
|
889
|
+
shouldFocusOnClose = DEFAULT_PROPS$1k.shouldFocusOnClose,
|
|
890
890
|
theme = defaultTheme,
|
|
891
891
|
value,
|
|
892
892
|
textFieldProps = {},
|
|
@@ -899,7 +899,7 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
899
899
|
return /*#__PURE__*/jsxs("div", {
|
|
900
900
|
ref: ref,
|
|
901
901
|
...forwardedProps,
|
|
902
|
-
className: classNames.join(className, CLASSNAME$
|
|
902
|
+
className: classNames.join(className, CLASSNAME$1D),
|
|
903
903
|
children: [/*#__PURE__*/jsx(TextField, {
|
|
904
904
|
...textFieldProps,
|
|
905
905
|
chips: chips,
|
|
@@ -939,24 +939,24 @@ const Autocomplete = forwardRef((props, ref) => {
|
|
|
939
939
|
})]
|
|
940
940
|
});
|
|
941
941
|
});
|
|
942
|
-
Autocomplete.displayName = COMPONENT_NAME$
|
|
943
|
-
Autocomplete.className = CLASSNAME$
|
|
944
|
-
Autocomplete.defaultProps = DEFAULT_PROPS$
|
|
942
|
+
Autocomplete.displayName = COMPONENT_NAME$1H;
|
|
943
|
+
Autocomplete.className = CLASSNAME$1D;
|
|
944
|
+
Autocomplete.defaultProps = DEFAULT_PROPS$1k;
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
947
|
* Component display name.
|
|
948
948
|
*/
|
|
949
|
-
const COMPONENT_NAME$
|
|
949
|
+
const COMPONENT_NAME$1G = 'AutocompleteMultiple';
|
|
950
950
|
|
|
951
951
|
/**
|
|
952
952
|
* Component default class name and class prefix.
|
|
953
953
|
*/
|
|
954
|
-
const CLASSNAME$
|
|
954
|
+
const CLASSNAME$1C = 'lumx-autocomplete-multiple';
|
|
955
955
|
|
|
956
956
|
/**
|
|
957
957
|
* Component default props.
|
|
958
958
|
*/
|
|
959
|
-
const DEFAULT_PROPS$
|
|
959
|
+
const DEFAULT_PROPS$1j = {
|
|
960
960
|
closeOnClickAway: true,
|
|
961
961
|
closeOnEscape: true,
|
|
962
962
|
selectedChipRender(choice, index, onClear, isDisabled) {
|
|
@@ -997,8 +997,8 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
997
997
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
998
998
|
chipsAlignment,
|
|
999
999
|
className,
|
|
1000
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
1001
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
1000
|
+
closeOnClickAway = DEFAULT_PROPS$1j.closeOnClickAway,
|
|
1001
|
+
closeOnEscape = DEFAULT_PROPS$1j.closeOnEscape,
|
|
1002
1002
|
fitToAnchorWidth,
|
|
1003
1003
|
hasError,
|
|
1004
1004
|
helper,
|
|
@@ -1020,19 +1020,19 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1020
1020
|
onKeyDown,
|
|
1021
1021
|
placeholder,
|
|
1022
1022
|
placement,
|
|
1023
|
-
selectedChipRender = DEFAULT_PROPS$
|
|
1023
|
+
selectedChipRender = DEFAULT_PROPS$1j.selectedChipRender,
|
|
1024
1024
|
shouldFocusOnClose,
|
|
1025
1025
|
theme = defaultTheme,
|
|
1026
1026
|
type,
|
|
1027
1027
|
value,
|
|
1028
|
-
values = DEFAULT_PROPS$
|
|
1028
|
+
values = DEFAULT_PROPS$1j.values,
|
|
1029
1029
|
...forwardedProps
|
|
1030
1030
|
} = otherProps;
|
|
1031
1031
|
return /*#__PURE__*/jsx(Autocomplete, {
|
|
1032
1032
|
ref: ref,
|
|
1033
1033
|
...forwardedProps,
|
|
1034
1034
|
anchorToInput: anchorToInput,
|
|
1035
|
-
className: classNames.join(className, CLASSNAME$
|
|
1035
|
+
className: classNames.join(className, CLASSNAME$1C),
|
|
1036
1036
|
name: name,
|
|
1037
1037
|
value: value,
|
|
1038
1038
|
onChange: onChange,
|
|
@@ -1065,28 +1065,28 @@ const AutocompleteMultiple = forwardRef((props, ref) => {
|
|
|
1065
1065
|
children: children
|
|
1066
1066
|
});
|
|
1067
1067
|
});
|
|
1068
|
-
AutocompleteMultiple.displayName = COMPONENT_NAME$
|
|
1069
|
-
AutocompleteMultiple.className = CLASSNAME$
|
|
1070
|
-
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$
|
|
1068
|
+
AutocompleteMultiple.displayName = COMPONENT_NAME$1G;
|
|
1069
|
+
AutocompleteMultiple.className = CLASSNAME$1C;
|
|
1070
|
+
AutocompleteMultiple.defaultProps = DEFAULT_PROPS$1j;
|
|
1071
1071
|
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Component display name.
|
|
1074
1074
|
*/
|
|
1075
|
-
const COMPONENT_NAME$
|
|
1075
|
+
const COMPONENT_NAME$1F = 'Avatar';
|
|
1076
1076
|
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Component default class name and class prefix.
|
|
1079
1079
|
*/
|
|
1080
|
-
const CLASSNAME$
|
|
1080
|
+
const CLASSNAME$1B = 'lumx-avatar';
|
|
1081
1081
|
const {
|
|
1082
|
-
block: block$
|
|
1083
|
-
element: element$
|
|
1084
|
-
} = bem(CLASSNAME$
|
|
1082
|
+
block: block$1c,
|
|
1083
|
+
element: element$T
|
|
1084
|
+
} = bem(CLASSNAME$1B);
|
|
1085
1085
|
|
|
1086
1086
|
/**
|
|
1087
1087
|
* Component default props.
|
|
1088
1088
|
*/
|
|
1089
|
-
const DEFAULT_PROPS$
|
|
1089
|
+
const DEFAULT_PROPS$1i = {
|
|
1090
1090
|
size: Size.m
|
|
1091
1091
|
};
|
|
1092
1092
|
|
|
@@ -1103,7 +1103,7 @@ const Avatar$1 = props => {
|
|
|
1103
1103
|
badge,
|
|
1104
1104
|
className,
|
|
1105
1105
|
image,
|
|
1106
|
-
size = DEFAULT_PROPS$
|
|
1106
|
+
size = DEFAULT_PROPS$1i.size,
|
|
1107
1107
|
theme,
|
|
1108
1108
|
ref,
|
|
1109
1109
|
...forwardedProps
|
|
@@ -1111,15 +1111,15 @@ const Avatar$1 = props => {
|
|
|
1111
1111
|
return /*#__PURE__*/jsxs("div", {
|
|
1112
1112
|
ref: ref,
|
|
1113
1113
|
...forwardedProps,
|
|
1114
|
-
className: classnames(className, block$
|
|
1114
|
+
className: classnames(className, block$1c({
|
|
1115
1115
|
[`size-${size}`]: Boolean(size),
|
|
1116
1116
|
[`theme-${theme}`]: Boolean(theme)
|
|
1117
1117
|
})),
|
|
1118
1118
|
children: [image, actions && /*#__PURE__*/jsx("div", {
|
|
1119
|
-
className: element$
|
|
1119
|
+
className: element$T('actions'),
|
|
1120
1120
|
children: actions
|
|
1121
1121
|
}), badge && /*#__PURE__*/jsx("div", {
|
|
1122
|
-
className: element$
|
|
1122
|
+
className: element$T('badge'),
|
|
1123
1123
|
children: badge
|
|
1124
1124
|
})]
|
|
1125
1125
|
});
|
|
@@ -1144,7 +1144,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1144
1144
|
linkAs,
|
|
1145
1145
|
onClick,
|
|
1146
1146
|
onKeyPress,
|
|
1147
|
-
size = DEFAULT_PROPS$
|
|
1147
|
+
size = DEFAULT_PROPS$1i.size,
|
|
1148
1148
|
theme = defaultTheme,
|
|
1149
1149
|
thumbnailProps,
|
|
1150
1150
|
...forwardedProps
|
|
@@ -1160,7 +1160,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1160
1160
|
image: /*#__PURE__*/jsx(Thumbnail, {
|
|
1161
1161
|
linkProps: linkProps,
|
|
1162
1162
|
linkAs: linkAs,
|
|
1163
|
-
className: element$
|
|
1163
|
+
className: element$T('thumbnail'),
|
|
1164
1164
|
onClick: onClick,
|
|
1165
1165
|
onKeyPress: onKeyPress,
|
|
1166
1166
|
...thumbnailProps,
|
|
@@ -1172,27 +1172,27 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
1172
1172
|
})
|
|
1173
1173
|
});
|
|
1174
1174
|
});
|
|
1175
|
-
Avatar.displayName = COMPONENT_NAME$
|
|
1176
|
-
Avatar.className = CLASSNAME$
|
|
1177
|
-
Avatar.defaultProps = DEFAULT_PROPS$
|
|
1175
|
+
Avatar.displayName = COMPONENT_NAME$1F;
|
|
1176
|
+
Avatar.className = CLASSNAME$1B;
|
|
1177
|
+
Avatar.defaultProps = DEFAULT_PROPS$1i;
|
|
1178
1178
|
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Component display name.
|
|
1181
1181
|
*/
|
|
1182
|
-
const COMPONENT_NAME$
|
|
1182
|
+
const COMPONENT_NAME$1E = 'Badge';
|
|
1183
1183
|
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Component default class name and class prefix.
|
|
1186
1186
|
*/
|
|
1187
|
-
const CLASSNAME$
|
|
1187
|
+
const CLASSNAME$1A = 'lumx-badge';
|
|
1188
1188
|
const {
|
|
1189
|
-
block: block$
|
|
1190
|
-
} = bem(CLASSNAME$
|
|
1189
|
+
block: block$1b
|
|
1190
|
+
} = bem(CLASSNAME$1A);
|
|
1191
1191
|
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Component default props.
|
|
1194
1194
|
*/
|
|
1195
|
-
const DEFAULT_PROPS$
|
|
1195
|
+
const DEFAULT_PROPS$1h = {
|
|
1196
1196
|
color: ColorPalette.primary
|
|
1197
1197
|
};
|
|
1198
1198
|
|
|
@@ -1206,22 +1206,22 @@ const Badge$1 = props => {
|
|
|
1206
1206
|
const {
|
|
1207
1207
|
children,
|
|
1208
1208
|
className,
|
|
1209
|
-
color = DEFAULT_PROPS$
|
|
1209
|
+
color = DEFAULT_PROPS$1h.color,
|
|
1210
1210
|
ref,
|
|
1211
1211
|
...forwardedProps
|
|
1212
1212
|
} = props;
|
|
1213
1213
|
return /*#__PURE__*/jsx("div", {
|
|
1214
1214
|
ref: ref,
|
|
1215
1215
|
...forwardedProps,
|
|
1216
|
-
className: classnames(className, block$
|
|
1216
|
+
className: classnames(className, block$1b({
|
|
1217
1217
|
[`color-${color}`]: Boolean(color)
|
|
1218
1218
|
})),
|
|
1219
1219
|
children: children
|
|
1220
1220
|
});
|
|
1221
1221
|
};
|
|
1222
|
-
Badge$1.displayName = COMPONENT_NAME$
|
|
1223
|
-
Badge$1.className = CLASSNAME$
|
|
1224
|
-
Badge$1.defaultProps = DEFAULT_PROPS$
|
|
1222
|
+
Badge$1.displayName = COMPONENT_NAME$1E;
|
|
1223
|
+
Badge$1.className = CLASSNAME$1A;
|
|
1224
|
+
Badge$1.defaultProps = DEFAULT_PROPS$1h;
|
|
1225
1225
|
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Defines the props of the component.
|
|
@@ -1244,12 +1244,12 @@ Badge.displayName = Badge$1.displayName;
|
|
|
1244
1244
|
Badge.className = Badge$1.className;
|
|
1245
1245
|
Badge.defaultProps = Badge$1.defaultProps;
|
|
1246
1246
|
|
|
1247
|
-
const COMPONENT_NAME$
|
|
1248
|
-
const CLASSNAME$
|
|
1247
|
+
const COMPONENT_NAME$1D = 'BadgeWrapper';
|
|
1248
|
+
const CLASSNAME$1z = 'lumx-badge-wrapper';
|
|
1249
1249
|
const {
|
|
1250
|
-
block: block$
|
|
1251
|
-
element: element$
|
|
1252
|
-
} = bem(CLASSNAME$
|
|
1250
|
+
block: block$1a,
|
|
1251
|
+
element: element$S
|
|
1252
|
+
} = bem(CLASSNAME$1z);
|
|
1253
1253
|
const BadgeWrapper$1 = props => {
|
|
1254
1254
|
const {
|
|
1255
1255
|
badge,
|
|
@@ -1261,9 +1261,9 @@ const BadgeWrapper$1 = props => {
|
|
|
1261
1261
|
return /*#__PURE__*/jsxs("div", {
|
|
1262
1262
|
ref: ref,
|
|
1263
1263
|
...forwardedProps,
|
|
1264
|
-
className: classnames(className, block$
|
|
1264
|
+
className: classnames(className, block$1a()),
|
|
1265
1265
|
children: [children, badge && /*#__PURE__*/jsx("div", {
|
|
1266
|
-
className: element$
|
|
1266
|
+
className: element$S('badge'),
|
|
1267
1267
|
children: badge
|
|
1268
1268
|
})]
|
|
1269
1269
|
});
|
|
@@ -1275,8 +1275,8 @@ const BadgeWrapper = forwardRef((props, ref) => {
|
|
|
1275
1275
|
ref
|
|
1276
1276
|
});
|
|
1277
1277
|
});
|
|
1278
|
-
BadgeWrapper.displayName = COMPONENT_NAME$
|
|
1279
|
-
BadgeWrapper.className = CLASSNAME$
|
|
1278
|
+
BadgeWrapper.displayName = COMPONENT_NAME$1D;
|
|
1279
|
+
BadgeWrapper.className = CLASSNAME$1z;
|
|
1280
1280
|
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Render clickable element (link, button or custom element)
|
|
@@ -1326,7 +1326,7 @@ const RawClickable = props => {
|
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Component display name.
|
|
1328
1328
|
*/
|
|
1329
|
-
const COMPONENT_NAME$
|
|
1329
|
+
const COMPONENT_NAME$1C = 'ButtonRoot';
|
|
1330
1330
|
const BUTTON_WRAPPER_CLASSNAME = `lumx-button-wrapper`;
|
|
1331
1331
|
const {
|
|
1332
1332
|
block: buttonWrapperBlock
|
|
@@ -1424,7 +1424,7 @@ const ButtonRoot = props => {
|
|
|
1424
1424
|
children
|
|
1425
1425
|
});
|
|
1426
1426
|
};
|
|
1427
|
-
ButtonRoot.displayName = COMPONENT_NAME$
|
|
1427
|
+
ButtonRoot.displayName = COMPONENT_NAME$1C;
|
|
1428
1428
|
ButtonRoot.defaultProps = {};
|
|
1429
1429
|
|
|
1430
1430
|
/**
|
|
@@ -1434,20 +1434,20 @@ ButtonRoot.defaultProps = {};
|
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Component display name.
|
|
1436
1436
|
*/
|
|
1437
|
-
const COMPONENT_NAME$
|
|
1437
|
+
const COMPONENT_NAME$1B = 'Button';
|
|
1438
1438
|
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Component default class name and class prefix.
|
|
1441
1441
|
*/
|
|
1442
|
-
const CLASSNAME$
|
|
1442
|
+
const CLASSNAME$1y = 'lumx-button';
|
|
1443
1443
|
const {
|
|
1444
1444
|
modifier
|
|
1445
|
-
} = bem(CLASSNAME$
|
|
1445
|
+
} = bem(CLASSNAME$1y);
|
|
1446
1446
|
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Component default props.
|
|
1449
1449
|
*/
|
|
1450
|
-
const DEFAULT_PROPS$
|
|
1450
|
+
const DEFAULT_PROPS$1g = {
|
|
1451
1451
|
emphasis: Emphasis.high,
|
|
1452
1452
|
size: Size.m
|
|
1453
1453
|
};
|
|
@@ -1461,10 +1461,10 @@ const DEFAULT_PROPS$1f = {
|
|
|
1461
1461
|
const Button$1 = props => {
|
|
1462
1462
|
const {
|
|
1463
1463
|
className,
|
|
1464
|
-
emphasis = DEFAULT_PROPS$
|
|
1464
|
+
emphasis = DEFAULT_PROPS$1g.emphasis,
|
|
1465
1465
|
leftIcon,
|
|
1466
1466
|
rightIcon,
|
|
1467
|
-
size = DEFAULT_PROPS$
|
|
1467
|
+
size = DEFAULT_PROPS$1g.size,
|
|
1468
1468
|
...forwardedProps
|
|
1469
1469
|
} = props;
|
|
1470
1470
|
const buttonClassName = classnames(className, modifier({
|
|
@@ -1479,9 +1479,9 @@ const Button$1 = props => {
|
|
|
1479
1479
|
variant: 'button'
|
|
1480
1480
|
});
|
|
1481
1481
|
};
|
|
1482
|
-
Button$1.displayName = COMPONENT_NAME$
|
|
1483
|
-
Button$1.className = CLASSNAME$
|
|
1484
|
-
Button$1.defaultProps = DEFAULT_PROPS$
|
|
1482
|
+
Button$1.displayName = COMPONENT_NAME$1B;
|
|
1483
|
+
Button$1.className = CLASSNAME$1y;
|
|
1484
|
+
Button$1.defaultProps = DEFAULT_PROPS$1g;
|
|
1485
1485
|
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Properties of a component to use to determine it's name.
|
|
@@ -1554,26 +1554,26 @@ const Button = forwardRef((props, ref) => {
|
|
|
1554
1554
|
})
|
|
1555
1555
|
});
|
|
1556
1556
|
});
|
|
1557
|
-
Button.displayName = COMPONENT_NAME$
|
|
1558
|
-
Button.className = CLASSNAME$
|
|
1559
|
-
Button.defaultProps = DEFAULT_PROPS$
|
|
1557
|
+
Button.displayName = COMPONENT_NAME$1B;
|
|
1558
|
+
Button.className = CLASSNAME$1y;
|
|
1559
|
+
Button.defaultProps = DEFAULT_PROPS$1g;
|
|
1560
1560
|
|
|
1561
|
-
const COMPONENT_NAME$
|
|
1561
|
+
const COMPONENT_NAME$1A = 'Icon';
|
|
1562
1562
|
const IconClassName = 'lumx-icon';
|
|
1563
1563
|
|
|
1564
1564
|
/**
|
|
1565
1565
|
* Defines the props of the component.
|
|
1566
1566
|
*/
|
|
1567
1567
|
|
|
1568
|
-
const CLASSNAME$
|
|
1568
|
+
const CLASSNAME$1x = IconClassName;
|
|
1569
1569
|
const {
|
|
1570
|
-
block: block$
|
|
1571
|
-
} = bem(CLASSNAME$
|
|
1570
|
+
block: block$19
|
|
1571
|
+
} = bem(CLASSNAME$1x);
|
|
1572
1572
|
|
|
1573
1573
|
/**
|
|
1574
1574
|
* Component default props.
|
|
1575
1575
|
*/
|
|
1576
|
-
const DEFAULT_PROPS$
|
|
1576
|
+
const DEFAULT_PROPS$1f = {};
|
|
1577
1577
|
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Icon component.
|
|
@@ -1622,7 +1622,7 @@ const Icon$1 = props => {
|
|
|
1622
1622
|
return /*#__PURE__*/jsx("i", {
|
|
1623
1623
|
ref: ref,
|
|
1624
1624
|
...forwardedProps,
|
|
1625
|
-
className: classnames(className, block$
|
|
1625
|
+
className: classnames(className, block$19({
|
|
1626
1626
|
[`color-${iconColor}`]: Boolean(iconColor),
|
|
1627
1627
|
[`color-variant-${iconColorVariant}`]: Boolean(iconColorVariant),
|
|
1628
1628
|
'has-shape': hasShape,
|
|
@@ -1651,24 +1651,24 @@ const Icon$1 = props => {
|
|
|
1651
1651
|
})
|
|
1652
1652
|
});
|
|
1653
1653
|
};
|
|
1654
|
-
Icon$1.displayName = COMPONENT_NAME$
|
|
1655
|
-
Icon$1.className = CLASSNAME$
|
|
1656
|
-
Icon$1.defaultProps = DEFAULT_PROPS$
|
|
1654
|
+
Icon$1.displayName = COMPONENT_NAME$1A;
|
|
1655
|
+
Icon$1.className = CLASSNAME$1x;
|
|
1656
|
+
Icon$1.defaultProps = DEFAULT_PROPS$1f;
|
|
1657
1657
|
|
|
1658
1658
|
/**
|
|
1659
1659
|
* Component display name.
|
|
1660
1660
|
*/
|
|
1661
|
-
const COMPONENT_NAME$
|
|
1661
|
+
const COMPONENT_NAME$1z = 'IconButton';
|
|
1662
1662
|
|
|
1663
1663
|
/**
|
|
1664
1664
|
* Component default class name and class prefix.
|
|
1665
1665
|
*/
|
|
1666
|
-
const CLASSNAME$
|
|
1666
|
+
const CLASSNAME$1w = 'lumx-icon-button';
|
|
1667
1667
|
|
|
1668
1668
|
/**
|
|
1669
1669
|
* Component default props.
|
|
1670
1670
|
*/
|
|
1671
|
-
const DEFAULT_PROPS$
|
|
1671
|
+
const DEFAULT_PROPS$1e = {
|
|
1672
1672
|
emphasis: Emphasis.high,
|
|
1673
1673
|
size: Size.m
|
|
1674
1674
|
};
|
|
@@ -1681,11 +1681,11 @@ const DEFAULT_PROPS$1d = {
|
|
|
1681
1681
|
*/
|
|
1682
1682
|
const IconButton$1 = props => {
|
|
1683
1683
|
const {
|
|
1684
|
-
emphasis = DEFAULT_PROPS$
|
|
1684
|
+
emphasis = DEFAULT_PROPS$1e.emphasis,
|
|
1685
1685
|
image,
|
|
1686
1686
|
icon,
|
|
1687
1687
|
label,
|
|
1688
|
-
size = DEFAULT_PROPS$
|
|
1688
|
+
size = DEFAULT_PROPS$1e.size,
|
|
1689
1689
|
...forwardedProps
|
|
1690
1690
|
} = props;
|
|
1691
1691
|
const defaultChildren = image ? /*#__PURE__*/jsx("img", {
|
|
@@ -1704,9 +1704,9 @@ const IconButton$1 = props => {
|
|
|
1704
1704
|
children: defaultChildren
|
|
1705
1705
|
});
|
|
1706
1706
|
};
|
|
1707
|
-
IconButton$1.displayName = COMPONENT_NAME$
|
|
1708
|
-
IconButton$1.className = CLASSNAME$
|
|
1709
|
-
IconButton$1.defaultProps = DEFAULT_PROPS$
|
|
1707
|
+
IconButton$1.displayName = COMPONENT_NAME$1z;
|
|
1708
|
+
IconButton$1.className = CLASSNAME$1w;
|
|
1709
|
+
IconButton$1.defaultProps = DEFAULT_PROPS$1e;
|
|
1710
1710
|
|
|
1711
1711
|
/**
|
|
1712
1712
|
* IconButton component.
|
|
@@ -1749,24 +1749,24 @@ const IconButton = forwardRef((props, ref) => {
|
|
|
1749
1749
|
})
|
|
1750
1750
|
});
|
|
1751
1751
|
});
|
|
1752
|
-
IconButton.displayName = COMPONENT_NAME$
|
|
1753
|
-
IconButton.className = CLASSNAME$
|
|
1754
|
-
IconButton.defaultProps = DEFAULT_PROPS$
|
|
1752
|
+
IconButton.displayName = COMPONENT_NAME$1z;
|
|
1753
|
+
IconButton.className = CLASSNAME$1w;
|
|
1754
|
+
IconButton.defaultProps = DEFAULT_PROPS$1e;
|
|
1755
1755
|
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Component display name.
|
|
1758
1758
|
*/
|
|
1759
|
-
const COMPONENT_NAME$
|
|
1759
|
+
const COMPONENT_NAME$1y = 'ButtonGroup';
|
|
1760
1760
|
|
|
1761
1761
|
/**
|
|
1762
1762
|
* Component default class name and class prefix.
|
|
1763
1763
|
*/
|
|
1764
|
-
const CLASSNAME$
|
|
1764
|
+
const CLASSNAME$1v = 'lumx-button-group';
|
|
1765
1765
|
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Component default props.
|
|
1768
1768
|
*/
|
|
1769
|
-
const DEFAULT_PROPS$
|
|
1769
|
+
const DEFAULT_PROPS$1d = {};
|
|
1770
1770
|
|
|
1771
1771
|
/**
|
|
1772
1772
|
* ButtonGroup component.
|
|
@@ -1782,13 +1782,13 @@ const ButtonGroup$1 = props => {
|
|
|
1782
1782
|
} = props;
|
|
1783
1783
|
return /*#__PURE__*/jsx("div", {
|
|
1784
1784
|
...forwardedProps,
|
|
1785
|
-
className: classnames(className, CLASSNAME$
|
|
1785
|
+
className: classnames(className, CLASSNAME$1v),
|
|
1786
1786
|
children: children
|
|
1787
1787
|
});
|
|
1788
1788
|
};
|
|
1789
|
-
ButtonGroup$1.displayName = COMPONENT_NAME$
|
|
1790
|
-
ButtonGroup$1.className = CLASSNAME$
|
|
1791
|
-
ButtonGroup$1.defaultProps = DEFAULT_PROPS$
|
|
1789
|
+
ButtonGroup$1.displayName = COMPONENT_NAME$1y;
|
|
1790
|
+
ButtonGroup$1.className = CLASSNAME$1v;
|
|
1791
|
+
ButtonGroup$1.defaultProps = DEFAULT_PROPS$1d;
|
|
1792
1792
|
|
|
1793
1793
|
/**
|
|
1794
1794
|
* ButtonGroup component.
|
|
@@ -1803,27 +1803,27 @@ const ButtonGroup = forwardRef((props, ref) => {
|
|
|
1803
1803
|
...props
|
|
1804
1804
|
});
|
|
1805
1805
|
});
|
|
1806
|
-
ButtonGroup.displayName = COMPONENT_NAME$
|
|
1807
|
-
ButtonGroup.className = CLASSNAME$
|
|
1808
|
-
ButtonGroup.defaultProps = DEFAULT_PROPS$
|
|
1806
|
+
ButtonGroup.displayName = COMPONENT_NAME$1y;
|
|
1807
|
+
ButtonGroup.className = CLASSNAME$1v;
|
|
1808
|
+
ButtonGroup.defaultProps = DEFAULT_PROPS$1d;
|
|
1809
1809
|
|
|
1810
1810
|
/**
|
|
1811
1811
|
* Component display name.
|
|
1812
1812
|
*/
|
|
1813
|
-
const COMPONENT_NAME$
|
|
1813
|
+
const COMPONENT_NAME$1x = 'Card';
|
|
1814
1814
|
|
|
1815
1815
|
/**
|
|
1816
1816
|
* Component default class name and class prefix.
|
|
1817
1817
|
*/
|
|
1818
|
-
const CLASSNAME$
|
|
1818
|
+
const CLASSNAME$1u = 'lumx-card';
|
|
1819
1819
|
const {
|
|
1820
|
-
block: block$
|
|
1821
|
-
} = bem(CLASSNAME$
|
|
1820
|
+
block: block$18
|
|
1821
|
+
} = bem(CLASSNAME$1u);
|
|
1822
1822
|
|
|
1823
1823
|
/**
|
|
1824
1824
|
* Component default props.
|
|
1825
1825
|
*/
|
|
1826
|
-
const DEFAULT_PROPS$
|
|
1826
|
+
const DEFAULT_PROPS$1c = {
|
|
1827
1827
|
as: 'div'
|
|
1828
1828
|
};
|
|
1829
1829
|
|
|
@@ -1841,13 +1841,13 @@ const Card$1 = props => {
|
|
|
1841
1841
|
children,
|
|
1842
1842
|
elevation,
|
|
1843
1843
|
ref,
|
|
1844
|
-
as: Element = DEFAULT_PROPS$
|
|
1844
|
+
as: Element = DEFAULT_PROPS$1c.as,
|
|
1845
1845
|
...forwardedProps
|
|
1846
1846
|
} = props;
|
|
1847
1847
|
return /*#__PURE__*/jsx(Element, {
|
|
1848
1848
|
ref: ref,
|
|
1849
1849
|
...forwardedProps,
|
|
1850
|
-
className: classnames(className, block$
|
|
1850
|
+
className: classnames(className, block$18({
|
|
1851
1851
|
[`elevation-${elevation}`]: Boolean(elevation)
|
|
1852
1852
|
})),
|
|
1853
1853
|
children: children
|
|
@@ -1874,18 +1874,18 @@ const Card = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
1874
1874
|
ref
|
|
1875
1875
|
});
|
|
1876
1876
|
}), {
|
|
1877
|
-
displayName: COMPONENT_NAME$
|
|
1878
|
-
className: CLASSNAME$
|
|
1879
|
-
defaultProps: DEFAULT_PROPS$
|
|
1877
|
+
displayName: COMPONENT_NAME$1x,
|
|
1878
|
+
className: CLASSNAME$1u,
|
|
1879
|
+
defaultProps: DEFAULT_PROPS$1c
|
|
1880
1880
|
});
|
|
1881
1881
|
|
|
1882
|
-
const COMPONENT_NAME$
|
|
1882
|
+
const COMPONENT_NAME$1w = 'InputLabel';
|
|
1883
1883
|
const InputLabelClassName = 'lumx-input-label';
|
|
1884
|
-
const CLASSNAME$
|
|
1884
|
+
const CLASSNAME$1t = InputLabelClassName;
|
|
1885
1885
|
const {
|
|
1886
|
-
block: block$
|
|
1887
|
-
} = bem(CLASSNAME$
|
|
1888
|
-
const DEFAULT_PROPS$
|
|
1886
|
+
block: block$17
|
|
1887
|
+
} = bem(CLASSNAME$1t);
|
|
1888
|
+
const DEFAULT_PROPS$1b = {};
|
|
1889
1889
|
|
|
1890
1890
|
/**
|
|
1891
1891
|
* InputLabel component.
|
|
@@ -1907,7 +1907,7 @@ function InputLabel$1(props) {
|
|
|
1907
1907
|
ref: ref,
|
|
1908
1908
|
...forwardedProps,
|
|
1909
1909
|
htmlFor: htmlFor,
|
|
1910
|
-
className: classnames(className, block$
|
|
1910
|
+
className: classnames(className, block$17({
|
|
1911
1911
|
'is-required': isRequired,
|
|
1912
1912
|
[`theme-${theme}`]: Boolean(theme),
|
|
1913
1913
|
'has-custom-typography': Boolean(typography$1)
|
|
@@ -1915,9 +1915,9 @@ function InputLabel$1(props) {
|
|
|
1915
1915
|
children: children
|
|
1916
1916
|
});
|
|
1917
1917
|
}
|
|
1918
|
-
InputLabel$1.displayName = COMPONENT_NAME$
|
|
1919
|
-
InputLabel$1.className = CLASSNAME$
|
|
1920
|
-
InputLabel$1.defaultProps = DEFAULT_PROPS$
|
|
1918
|
+
InputLabel$1.displayName = COMPONENT_NAME$1w;
|
|
1919
|
+
InputLabel$1.className = CLASSNAME$1t;
|
|
1920
|
+
InputLabel$1.defaultProps = DEFAULT_PROPS$1b;
|
|
1921
1921
|
|
|
1922
1922
|
const INPUT_HELPER_CONFIGURATION = {
|
|
1923
1923
|
[Kind.error]: {
|
|
@@ -1931,22 +1931,22 @@ const INPUT_HELPER_CONFIGURATION = {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
};
|
|
1933
1933
|
|
|
1934
|
-
const COMPONENT_NAME$
|
|
1934
|
+
const COMPONENT_NAME$1v = 'InputHelper';
|
|
1935
1935
|
const InputHelperClassName = 'lumx-input-helper';
|
|
1936
1936
|
|
|
1937
1937
|
/**
|
|
1938
1938
|
* Defines the props of the component.
|
|
1939
1939
|
*/
|
|
1940
1940
|
|
|
1941
|
-
const CLASSNAME$
|
|
1941
|
+
const CLASSNAME$1s = InputHelperClassName;
|
|
1942
1942
|
const {
|
|
1943
|
-
block: block$
|
|
1944
|
-
} = bem(CLASSNAME$
|
|
1943
|
+
block: block$16
|
|
1944
|
+
} = bem(CLASSNAME$1s);
|
|
1945
1945
|
|
|
1946
1946
|
/**
|
|
1947
1947
|
* Component default props.
|
|
1948
1948
|
*/
|
|
1949
|
-
const DEFAULT_PROPS$
|
|
1949
|
+
const DEFAULT_PROPS$1a = {
|
|
1950
1950
|
kind: Kind.info
|
|
1951
1951
|
};
|
|
1952
1952
|
|
|
@@ -1957,7 +1957,7 @@ function InputHelper$1(props) {
|
|
|
1957
1957
|
const {
|
|
1958
1958
|
children,
|
|
1959
1959
|
className,
|
|
1960
|
-
kind = DEFAULT_PROPS$
|
|
1960
|
+
kind = DEFAULT_PROPS$1a.kind,
|
|
1961
1961
|
theme,
|
|
1962
1962
|
ref,
|
|
1963
1963
|
...forwardedProps
|
|
@@ -1968,16 +1968,16 @@ function InputHelper$1(props) {
|
|
|
1968
1968
|
return /*#__PURE__*/jsx("p", {
|
|
1969
1969
|
ref: ref,
|
|
1970
1970
|
...forwardedProps,
|
|
1971
|
-
className: classnames(className, block$
|
|
1971
|
+
className: classnames(className, block$16({
|
|
1972
1972
|
[`color-${color}`]: Boolean(color),
|
|
1973
1973
|
[`theme-${theme}`]: Boolean(theme)
|
|
1974
1974
|
})),
|
|
1975
1975
|
children: children
|
|
1976
1976
|
});
|
|
1977
1977
|
}
|
|
1978
|
-
InputHelper$1.displayName = COMPONENT_NAME$
|
|
1979
|
-
InputHelper$1.className = CLASSNAME$
|
|
1980
|
-
InputHelper$1.defaultProps = DEFAULT_PROPS$
|
|
1978
|
+
InputHelper$1.displayName = COMPONENT_NAME$1v;
|
|
1979
|
+
InputHelper$1.className = CLASSNAME$1s;
|
|
1980
|
+
InputHelper$1.defaultProps = DEFAULT_PROPS$1a;
|
|
1981
1981
|
|
|
1982
1982
|
const INTERMEDIATE_STATE = 'intermediate';
|
|
1983
1983
|
|
|
@@ -1988,16 +1988,16 @@ const INTERMEDIATE_STATE = 'intermediate';
|
|
|
1988
1988
|
/**
|
|
1989
1989
|
* Component display name.
|
|
1990
1990
|
*/
|
|
1991
|
-
const COMPONENT_NAME$
|
|
1991
|
+
const COMPONENT_NAME$1u = 'Checkbox';
|
|
1992
1992
|
|
|
1993
1993
|
/**
|
|
1994
1994
|
* Component default class name and class prefix.
|
|
1995
1995
|
*/
|
|
1996
|
-
const CLASSNAME$
|
|
1996
|
+
const CLASSNAME$1r = 'lumx-checkbox';
|
|
1997
1997
|
const {
|
|
1998
|
-
block: block$
|
|
1999
|
-
element: element$
|
|
2000
|
-
} = bem(CLASSNAME$
|
|
1998
|
+
block: block$15,
|
|
1999
|
+
element: element$R
|
|
2000
|
+
} = bem(CLASSNAME$1r);
|
|
2001
2001
|
|
|
2002
2002
|
/**
|
|
2003
2003
|
* Checkbox component.
|
|
@@ -2033,7 +2033,7 @@ const Checkbox$1 = props => {
|
|
|
2033
2033
|
return /*#__PURE__*/jsxs("div", {
|
|
2034
2034
|
ref: ref,
|
|
2035
2035
|
...forwardedProps,
|
|
2036
|
-
className: classnames(className, block$
|
|
2036
|
+
className: classnames(className, block$15({
|
|
2037
2037
|
// Whether state is intermediate class name will "-checked"
|
|
2038
2038
|
'is-checked': intermediateState ? true : isChecked,
|
|
2039
2039
|
'is-disabled': isDisabled,
|
|
@@ -2041,12 +2041,12 @@ const Checkbox$1 = props => {
|
|
|
2041
2041
|
[`theme-${theme}`]: Boolean(theme)
|
|
2042
2042
|
})),
|
|
2043
2043
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2044
|
-
className: element$
|
|
2044
|
+
className: element$R('input-wrapper'),
|
|
2045
2045
|
children: [/*#__PURE__*/jsx("input", {
|
|
2046
2046
|
ref: inputRef,
|
|
2047
2047
|
type: "checkbox",
|
|
2048
2048
|
id: inputId,
|
|
2049
|
-
className: element$
|
|
2049
|
+
className: element$R('input-native'),
|
|
2050
2050
|
name: name,
|
|
2051
2051
|
value: value,
|
|
2052
2052
|
checked: isChecked,
|
|
@@ -2058,26 +2058,26 @@ const Checkbox$1 = props => {
|
|
|
2058
2058
|
} : {}),
|
|
2059
2059
|
...inputProps
|
|
2060
2060
|
}), /*#__PURE__*/jsxs("div", {
|
|
2061
|
-
className: element$
|
|
2061
|
+
className: element$R('input-placeholder'),
|
|
2062
2062
|
children: [/*#__PURE__*/jsx("div", {
|
|
2063
|
-
className: element$
|
|
2063
|
+
className: element$R('input-background')
|
|
2064
2064
|
}), /*#__PURE__*/jsx("div", {
|
|
2065
|
-
className: element$
|
|
2065
|
+
className: element$R('input-indicator'),
|
|
2066
2066
|
children: Icon$1({
|
|
2067
2067
|
icon: intermediateState ? mdiMinus : mdiCheck
|
|
2068
2068
|
})
|
|
2069
2069
|
})]
|
|
2070
2070
|
})]
|
|
2071
2071
|
}), /*#__PURE__*/jsxs("div", {
|
|
2072
|
-
className: element$
|
|
2072
|
+
className: element$R('content'),
|
|
2073
2073
|
children: [label && InputLabel$1({
|
|
2074
2074
|
htmlFor: inputId,
|
|
2075
|
-
className: element$
|
|
2075
|
+
className: element$R('label'),
|
|
2076
2076
|
theme,
|
|
2077
2077
|
children: label
|
|
2078
2078
|
}), helper && InputHelper$1({
|
|
2079
2079
|
id: `${inputId}-helper`,
|
|
2080
|
-
className: element$
|
|
2080
|
+
className: element$R('helper'),
|
|
2081
2081
|
theme,
|
|
2082
2082
|
children: helper
|
|
2083
2083
|
})]
|
|
@@ -2092,7 +2092,7 @@ const Checkbox$1 = props => {
|
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Component default props.
|
|
2094
2094
|
*/
|
|
2095
|
-
const DEFAULT_PROPS$
|
|
2095
|
+
const DEFAULT_PROPS$19 = {};
|
|
2096
2096
|
|
|
2097
2097
|
/**
|
|
2098
2098
|
* Checkbox component.
|
|
@@ -2152,9 +2152,9 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
2152
2152
|
inputId
|
|
2153
2153
|
});
|
|
2154
2154
|
});
|
|
2155
|
-
Checkbox.displayName = COMPONENT_NAME$
|
|
2156
|
-
Checkbox.className = CLASSNAME$
|
|
2157
|
-
Checkbox.defaultProps = DEFAULT_PROPS$
|
|
2155
|
+
Checkbox.displayName = COMPONENT_NAME$1u;
|
|
2156
|
+
Checkbox.className = CLASSNAME$1r;
|
|
2157
|
+
Checkbox.defaultProps = DEFAULT_PROPS$19;
|
|
2158
2158
|
|
|
2159
2159
|
/**
|
|
2160
2160
|
* Wrap mouse event handler to stop event propagation.
|
|
@@ -2175,21 +2175,21 @@ function useStopPropagation(handler) {
|
|
|
2175
2175
|
/**
|
|
2176
2176
|
* Component display name.
|
|
2177
2177
|
*/
|
|
2178
|
-
const COMPONENT_NAME$
|
|
2178
|
+
const COMPONENT_NAME$1t = 'Chip';
|
|
2179
2179
|
|
|
2180
2180
|
/**
|
|
2181
2181
|
* Component default class name and class prefix.
|
|
2182
2182
|
*/
|
|
2183
|
-
const CLASSNAME$
|
|
2183
|
+
const CLASSNAME$1q = 'lumx-chip';
|
|
2184
2184
|
const {
|
|
2185
|
-
block: block$
|
|
2186
|
-
element: element$
|
|
2187
|
-
} = bem(CLASSNAME$
|
|
2185
|
+
block: block$14,
|
|
2186
|
+
element: element$Q
|
|
2187
|
+
} = bem(CLASSNAME$1q);
|
|
2188
2188
|
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Component default props.
|
|
2191
2191
|
*/
|
|
2192
|
-
const DEFAULT_PROPS$
|
|
2192
|
+
const DEFAULT_PROPS$18 = {
|
|
2193
2193
|
size: Size.m
|
|
2194
2194
|
};
|
|
2195
2195
|
|
|
@@ -2216,7 +2216,7 @@ const Chip$1 = props => {
|
|
|
2216
2216
|
hasAfterClick,
|
|
2217
2217
|
hasBeforeClick,
|
|
2218
2218
|
hasOnClick,
|
|
2219
|
-
size = DEFAULT_PROPS$
|
|
2219
|
+
size = DEFAULT_PROPS$18.size,
|
|
2220
2220
|
theme,
|
|
2221
2221
|
ref,
|
|
2222
2222
|
href,
|
|
@@ -2251,7 +2251,7 @@ const Chip$1 = props => {
|
|
|
2251
2251
|
...forwardedProps,
|
|
2252
2252
|
href: !disabledStateProps.disabled ? href : undefined,
|
|
2253
2253
|
ref: ref,
|
|
2254
|
-
className: classnames(className, block$
|
|
2254
|
+
className: classnames(className, block$14({
|
|
2255
2255
|
'is-clickable': isClickable,
|
|
2256
2256
|
[`color-${chipColor}`]: Boolean(chipColor),
|
|
2257
2257
|
'is-disabled': isAnyDisabled,
|
|
@@ -2268,19 +2268,19 @@ const Chip$1 = props => {
|
|
|
2268
2268
|
/*#__PURE__*/
|
|
2269
2269
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
2270
2270
|
jsx("div", {
|
|
2271
|
-
className: element$
|
|
2271
|
+
className: element$Q('before', {
|
|
2272
2272
|
'is-clickable': hasBeforeClick
|
|
2273
2273
|
}),
|
|
2274
2274
|
onClick: handleBeforeClick,
|
|
2275
2275
|
children: before
|
|
2276
2276
|
}), /*#__PURE__*/jsx("div", {
|
|
2277
|
-
className: element$
|
|
2277
|
+
className: element$Q('label'),
|
|
2278
2278
|
children: children
|
|
2279
2279
|
}), after &&
|
|
2280
2280
|
/*#__PURE__*/
|
|
2281
2281
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
2282
2282
|
jsx("div", {
|
|
2283
|
-
className: element$
|
|
2283
|
+
className: element$Q('after', {
|
|
2284
2284
|
'is-clickable': hasAfterClick
|
|
2285
2285
|
}),
|
|
2286
2286
|
onClick: handleAfterClick,
|
|
@@ -2336,24 +2336,24 @@ const Chip = forwardRef((props, ref) => {
|
|
|
2336
2336
|
...forwardedProps
|
|
2337
2337
|
});
|
|
2338
2338
|
});
|
|
2339
|
-
Chip.displayName = COMPONENT_NAME$
|
|
2340
|
-
Chip.className = CLASSNAME$
|
|
2341
|
-
Chip.defaultProps = DEFAULT_PROPS$
|
|
2339
|
+
Chip.displayName = COMPONENT_NAME$1t;
|
|
2340
|
+
Chip.className = CLASSNAME$1q;
|
|
2341
|
+
Chip.defaultProps = DEFAULT_PROPS$18;
|
|
2342
2342
|
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Component display name.
|
|
2345
2345
|
*/
|
|
2346
|
-
const COMPONENT_NAME$
|
|
2346
|
+
const COMPONENT_NAME$1s = 'ChipGroup';
|
|
2347
2347
|
|
|
2348
2348
|
/**
|
|
2349
2349
|
* Component default class name and class prefix.
|
|
2350
2350
|
*/
|
|
2351
|
-
const CLASSNAME$
|
|
2351
|
+
const CLASSNAME$1p = 'lumx-chip-group';
|
|
2352
2352
|
|
|
2353
2353
|
/**
|
|
2354
2354
|
* Component default props.
|
|
2355
2355
|
*/
|
|
2356
|
-
const DEFAULT_PROPS$
|
|
2356
|
+
const DEFAULT_PROPS$17 = {};
|
|
2357
2357
|
|
|
2358
2358
|
/**
|
|
2359
2359
|
* ChipGroup component.
|
|
@@ -2371,7 +2371,7 @@ const ChipGroup$1 = props => {
|
|
|
2371
2371
|
return /*#__PURE__*/jsx("div", {
|
|
2372
2372
|
ref: ref,
|
|
2373
2373
|
...forwardedProps,
|
|
2374
|
-
className: classnames(className, CLASSNAME$
|
|
2374
|
+
className: classnames(className, CLASSNAME$1p),
|
|
2375
2375
|
children: children
|
|
2376
2376
|
});
|
|
2377
2377
|
};
|
|
@@ -2449,9 +2449,9 @@ const InternalChipGroup = forwardRef((props, ref) => {
|
|
|
2449
2449
|
...forwardedProps
|
|
2450
2450
|
});
|
|
2451
2451
|
});
|
|
2452
|
-
InternalChipGroup.displayName = COMPONENT_NAME$
|
|
2453
|
-
InternalChipGroup.className = CLASSNAME$
|
|
2454
|
-
InternalChipGroup.defaultProps = DEFAULT_PROPS$
|
|
2452
|
+
InternalChipGroup.displayName = COMPONENT_NAME$1s;
|
|
2453
|
+
InternalChipGroup.className = CLASSNAME$1p;
|
|
2454
|
+
InternalChipGroup.defaultProps = DEFAULT_PROPS$17;
|
|
2455
2455
|
const ChipGroup = Object.assign(InternalChipGroup, {
|
|
2456
2456
|
useChipGroupNavigation
|
|
2457
2457
|
});
|
|
@@ -2459,16 +2459,16 @@ const ChipGroup = Object.assign(InternalChipGroup, {
|
|
|
2459
2459
|
/**
|
|
2460
2460
|
* Component display name.
|
|
2461
2461
|
*/
|
|
2462
|
-
const COMPONENT_NAME$
|
|
2462
|
+
const COMPONENT_NAME$1r = 'SelectionChipGroup';
|
|
2463
2463
|
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Component default class name and class prefix.
|
|
2466
2466
|
*/
|
|
2467
|
-
const CLASSNAME$
|
|
2467
|
+
const CLASSNAME$1o = 'lumx-selection-chip-group';
|
|
2468
2468
|
const {
|
|
2469
|
-
block: block$
|
|
2470
|
-
element: element$
|
|
2471
|
-
} = bem(CLASSNAME$
|
|
2469
|
+
block: block$13,
|
|
2470
|
+
element: element$P
|
|
2471
|
+
} = bem(CLASSNAME$1o);
|
|
2472
2472
|
|
|
2473
2473
|
/**
|
|
2474
2474
|
* SelectionChipGroup component.
|
|
@@ -2506,7 +2506,7 @@ const SelectionChipGroup$1 = (props, {
|
|
|
2506
2506
|
"aria-label": label,
|
|
2507
2507
|
"aria-multiselectable": "true",
|
|
2508
2508
|
"aria-orientation": "horizontal",
|
|
2509
|
-
className: block$
|
|
2509
|
+
className: block$13([className]),
|
|
2510
2510
|
children: value.map(v => {
|
|
2511
2511
|
const name = getOptionName && getWithSelector(getOptionName, v) || getWithSelector(getOptionId, v);
|
|
2512
2512
|
const id = getWithSelector(getOptionId, v);
|
|
@@ -2525,7 +2525,7 @@ const SelectionChipGroup$1 = (props, {
|
|
|
2525
2525
|
after: /*#__PURE__*/jsx(Icon, {
|
|
2526
2526
|
icon: mdiClose
|
|
2527
2527
|
}),
|
|
2528
|
-
className: element$
|
|
2528
|
+
className: element$P('chip', [customProps.className]),
|
|
2529
2529
|
"data-option-id": id,
|
|
2530
2530
|
isClickable: true,
|
|
2531
2531
|
role: "option",
|
|
@@ -2564,10 +2564,10 @@ function createSelectorTreeWalker(container, selector) {
|
|
|
2564
2564
|
}
|
|
2565
2565
|
|
|
2566
2566
|
/** CSS selector for enabled chips (not aria-disabled). */
|
|
2567
|
-
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$
|
|
2567
|
+
const ENABLED_CHIP_SELECTOR = `.${CLASSNAME$1q}:not([aria-disabled="true"])`;
|
|
2568
2568
|
|
|
2569
2569
|
/** Find the closest chip element from an event target. */
|
|
2570
|
-
const getChip = target => target?.closest?.(`.${CLASSNAME$
|
|
2570
|
+
const getChip = target => target?.closest?.(`.${CLASSNAME$1q}`) || null;
|
|
2571
2571
|
|
|
2572
2572
|
/** Whether the chip is marked as disabled via aria-disabled. */
|
|
2573
2573
|
const isChipDisabled = chip => chip?.getAttribute('aria-disabled') === 'true';
|
|
@@ -2808,20 +2808,20 @@ function wrapChildrenIconWithSpaces(children) {
|
|
|
2808
2808
|
/**
|
|
2809
2809
|
* Component display name.
|
|
2810
2810
|
*/
|
|
2811
|
-
const COMPONENT_NAME$
|
|
2811
|
+
const COMPONENT_NAME$1q = 'Text';
|
|
2812
2812
|
|
|
2813
2813
|
/**
|
|
2814
2814
|
* Component default class name and class prefix.
|
|
2815
2815
|
*/
|
|
2816
|
-
const CLASSNAME$
|
|
2816
|
+
const CLASSNAME$1n = 'lumx-text';
|
|
2817
2817
|
const {
|
|
2818
|
-
block: block$
|
|
2819
|
-
} = bem(CLASSNAME$
|
|
2818
|
+
block: block$12
|
|
2819
|
+
} = bem(CLASSNAME$1n);
|
|
2820
2820
|
|
|
2821
2821
|
/**
|
|
2822
2822
|
* Component default props.
|
|
2823
2823
|
*/
|
|
2824
|
-
const DEFAULT_PROPS$
|
|
2824
|
+
const DEFAULT_PROPS$16 = {};
|
|
2825
2825
|
|
|
2826
2826
|
/**
|
|
2827
2827
|
* Text component common props
|
|
@@ -2857,7 +2857,7 @@ const getTextProps = props => {
|
|
|
2857
2857
|
'--lumx-text-white-space': whiteSpace
|
|
2858
2858
|
};
|
|
2859
2859
|
return {
|
|
2860
|
-
className: classnames(className, block$
|
|
2860
|
+
className: classnames(className, block$12({
|
|
2861
2861
|
'is-truncated': isTruncated && !isTruncatedMultiline,
|
|
2862
2862
|
'is-truncated-multiline': isTruncatedMultiline,
|
|
2863
2863
|
'no-wrap': noWrap
|
|
@@ -2906,9 +2906,9 @@ const Text = forwardRef((props, ref) => {
|
|
|
2906
2906
|
children: wrapChildrenIconWithSpaces(children)
|
|
2907
2907
|
});
|
|
2908
2908
|
});
|
|
2909
|
-
Text.displayName = COMPONENT_NAME$
|
|
2910
|
-
Text.className = CLASSNAME$
|
|
2911
|
-
Text.defaultProps = DEFAULT_PROPS$
|
|
2909
|
+
Text.displayName = COMPONENT_NAME$1q;
|
|
2910
|
+
Text.className = CLASSNAME$1n;
|
|
2911
|
+
Text.defaultProps = DEFAULT_PROPS$16;
|
|
2912
2912
|
|
|
2913
2913
|
/**
|
|
2914
2914
|
* Custom positioning reference element.
|
|
@@ -4990,7 +4990,7 @@ const TOOLTIP_ZINDEX = 10000;
|
|
|
4990
4990
|
/**
|
|
4991
4991
|
* Component default props.
|
|
4992
4992
|
*/
|
|
4993
|
-
const DEFAULT_PROPS$
|
|
4993
|
+
const DEFAULT_PROPS$15 = {
|
|
4994
4994
|
placement: 'bottom',
|
|
4995
4995
|
closeMode: 'unmount',
|
|
4996
4996
|
ariaLinkMode: 'aria-describedby',
|
|
@@ -5000,16 +5000,16 @@ const DEFAULT_PROPS$14 = {
|
|
|
5000
5000
|
/**
|
|
5001
5001
|
* Component display name.
|
|
5002
5002
|
*/
|
|
5003
|
-
const COMPONENT_NAME$
|
|
5003
|
+
const COMPONENT_NAME$1p = 'Tooltip';
|
|
5004
5004
|
|
|
5005
5005
|
/**
|
|
5006
5006
|
* Component default class name and class prefix.
|
|
5007
5007
|
*/
|
|
5008
|
-
const CLASSNAME$
|
|
5008
|
+
const CLASSNAME$1m = 'lumx-tooltip';
|
|
5009
5009
|
const {
|
|
5010
|
-
block: block$
|
|
5011
|
-
element: element$
|
|
5012
|
-
} = bem(CLASSNAME$
|
|
5010
|
+
block: block$11,
|
|
5011
|
+
element: element$O
|
|
5012
|
+
} = bem(CLASSNAME$1m);
|
|
5013
5013
|
|
|
5014
5014
|
/**
|
|
5015
5015
|
* Props for the TooltipPopup rendering component.
|
|
@@ -5040,7 +5040,7 @@ const TooltipPopup = props => {
|
|
|
5040
5040
|
...forwardedProps,
|
|
5041
5041
|
id: id,
|
|
5042
5042
|
role: "tooltip",
|
|
5043
|
-
className: classnames(className, block$
|
|
5043
|
+
className: classnames(className, block$11({
|
|
5044
5044
|
[`position-${position}`]: Boolean(position)
|
|
5045
5045
|
}), isHidden && visuallyHidden()),
|
|
5046
5046
|
style: {
|
|
@@ -5049,17 +5049,17 @@ const TooltipPopup = props => {
|
|
|
5049
5049
|
},
|
|
5050
5050
|
"data-popper-placement": position,
|
|
5051
5051
|
children: [/*#__PURE__*/jsx("div", {
|
|
5052
|
-
className: element$
|
|
5052
|
+
className: element$O('arrow')
|
|
5053
5053
|
}), /*#__PURE__*/jsx("div", {
|
|
5054
|
-
className: element$
|
|
5054
|
+
className: element$O('inner'),
|
|
5055
5055
|
children: labelLines.map((line, index) => /*#__PURE__*/jsx("p", {
|
|
5056
5056
|
children: line
|
|
5057
5057
|
}, index))
|
|
5058
5058
|
})]
|
|
5059
5059
|
});
|
|
5060
5060
|
};
|
|
5061
|
-
TooltipPopup.displayName = COMPONENT_NAME$
|
|
5062
|
-
TooltipPopup.className = CLASSNAME$
|
|
5061
|
+
TooltipPopup.displayName = COMPONENT_NAME$1p;
|
|
5062
|
+
TooltipPopup.className = CLASSNAME$1m;
|
|
5063
5063
|
|
|
5064
5064
|
/**
|
|
5065
5065
|
* Add ref and ARIA attribute(s) in tooltip children or wrapped children.
|
|
@@ -5354,11 +5354,11 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5354
5354
|
children,
|
|
5355
5355
|
className,
|
|
5356
5356
|
delay,
|
|
5357
|
-
placement = DEFAULT_PROPS$
|
|
5357
|
+
placement = DEFAULT_PROPS$15.placement,
|
|
5358
5358
|
forceOpen,
|
|
5359
|
-
closeMode = DEFAULT_PROPS$
|
|
5360
|
-
ariaLinkMode = DEFAULT_PROPS$
|
|
5361
|
-
zIndex = DEFAULT_PROPS$
|
|
5359
|
+
closeMode = DEFAULT_PROPS$15.closeMode,
|
|
5360
|
+
ariaLinkMode = DEFAULT_PROPS$15.ariaLinkMode,
|
|
5361
|
+
zIndex = DEFAULT_PROPS$15.zIndex,
|
|
5362
5362
|
...forwardedProps
|
|
5363
5363
|
} = props;
|
|
5364
5364
|
// Disable in SSR.
|
|
@@ -5421,9 +5421,9 @@ const Tooltip = forwardRef((props, ref) => {
|
|
|
5421
5421
|
})]
|
|
5422
5422
|
});
|
|
5423
5423
|
});
|
|
5424
|
-
Tooltip.displayName = COMPONENT_NAME$
|
|
5425
|
-
Tooltip.className = CLASSNAME$
|
|
5426
|
-
Tooltip.defaultProps = DEFAULT_PROPS$
|
|
5424
|
+
Tooltip.displayName = COMPONENT_NAME$1p;
|
|
5425
|
+
Tooltip.className = CLASSNAME$1m;
|
|
5426
|
+
Tooltip.defaultProps = DEFAULT_PROPS$15;
|
|
5427
5427
|
|
|
5428
5428
|
/** Create a pending navigation store; discards intent on abort. */
|
|
5429
5429
|
function createPendingNavigation(signal) {
|
|
@@ -6292,8 +6292,8 @@ const SelectionChipGroup = ({
|
|
|
6292
6292
|
}, [container, inputRef, getOptionId]);
|
|
6293
6293
|
useRovingTabIndexContainer({
|
|
6294
6294
|
containerRef: container,
|
|
6295
|
-
itemSelector: `.${CLASSNAME$
|
|
6296
|
-
itemDisabledSelector: `.${CLASSNAME$
|
|
6295
|
+
itemSelector: `.${CLASSNAME$1q}`,
|
|
6296
|
+
itemDisabledSelector: `.${CLASSNAME$1q}[aria-disabled="true"]`
|
|
6297
6297
|
});
|
|
6298
6298
|
|
|
6299
6299
|
// Merge getChipProps and renderChip: getChipProps provides base props, renderChip overrides them,
|
|
@@ -6333,8 +6333,8 @@ const SelectionChipGroup = ({
|
|
|
6333
6333
|
Tooltip
|
|
6334
6334
|
});
|
|
6335
6335
|
};
|
|
6336
|
-
SelectionChipGroup.displayName = COMPONENT_NAME$
|
|
6337
|
-
SelectionChipGroup.className = CLASSNAME$
|
|
6336
|
+
SelectionChipGroup.displayName = COMPONENT_NAME$1r;
|
|
6337
|
+
SelectionChipGroup.className = CLASSNAME$1o;
|
|
6338
6338
|
|
|
6339
6339
|
/**
|
|
6340
6340
|
* Get the value for a combobox option element.
|
|
@@ -7290,12 +7290,12 @@ function setupComboboxButton(button, callbacks) {
|
|
|
7290
7290
|
/**
|
|
7291
7291
|
* Component display name.
|
|
7292
7292
|
*/
|
|
7293
|
-
const COMPONENT_NAME$
|
|
7293
|
+
const COMPONENT_NAME$1o = 'ComboboxButton';
|
|
7294
7294
|
|
|
7295
7295
|
/**
|
|
7296
7296
|
* Component default class name and class prefix.
|
|
7297
7297
|
*/
|
|
7298
|
-
const CLASSNAME$
|
|
7298
|
+
const CLASSNAME$1l = 'lumx-combobox-button';
|
|
7299
7299
|
|
|
7300
7300
|
/**
|
|
7301
7301
|
* ComboboxButton core template.
|
|
@@ -7335,7 +7335,7 @@ const ComboboxButton$1 = (props, {
|
|
|
7335
7335
|
const componentProps = {
|
|
7336
7336
|
ref,
|
|
7337
7337
|
...forwardedProps,
|
|
7338
|
-
className: classnames(className, CLASSNAME$
|
|
7338
|
+
className: classnames(className, CLASSNAME$1l),
|
|
7339
7339
|
role: 'combobox',
|
|
7340
7340
|
'aria-controls': listboxId,
|
|
7341
7341
|
'aria-haspopup': 'listbox',
|
|
@@ -7686,8 +7686,8 @@ const ComboboxButton = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
7686
7686
|
Tooltip
|
|
7687
7687
|
});
|
|
7688
7688
|
}), {
|
|
7689
|
-
displayName: COMPONENT_NAME$
|
|
7690
|
-
className: CLASSNAME$
|
|
7689
|
+
displayName: COMPONENT_NAME$1o,
|
|
7690
|
+
className: CLASSNAME$1l
|
|
7691
7691
|
});
|
|
7692
7692
|
|
|
7693
7693
|
/** Options for configuring the input-mode combobox controller. */
|
|
@@ -7851,12 +7851,12 @@ function getDisabledState(context, props) {
|
|
|
7851
7851
|
/**
|
|
7852
7852
|
* Component display name.
|
|
7853
7853
|
*/
|
|
7854
|
-
const COMPONENT_NAME$
|
|
7854
|
+
const COMPONENT_NAME$1n = 'ComboboxInput';
|
|
7855
7855
|
|
|
7856
7856
|
/**
|
|
7857
7857
|
* Component default class name and class prefix.
|
|
7858
7858
|
*/
|
|
7859
|
-
const CLASSNAME$
|
|
7859
|
+
const CLASSNAME$1k = 'lumx-combobox-input';
|
|
7860
7860
|
|
|
7861
7861
|
/**
|
|
7862
7862
|
* ComboboxInput core template.
|
|
@@ -7894,7 +7894,14 @@ const ComboboxInput$1 = (props, {
|
|
|
7894
7894
|
readOnly: filter === 'off' || undefined,
|
|
7895
7895
|
...forwardedProps,
|
|
7896
7896
|
ref: ref,
|
|
7897
|
-
role: "combobox"
|
|
7897
|
+
role: "combobox"
|
|
7898
|
+
// The input text is not the combobox value: in multiple selection the input stays
|
|
7899
|
+
// empty, and `filter="off"` makes the input read only. Native constraint validation
|
|
7900
|
+
// is wrong in both cases. Set `aria-required` and remove the native `required`
|
|
7901
|
+
// attribute that TextField derives from `isRequired`.
|
|
7902
|
+
,
|
|
7903
|
+
required: false,
|
|
7904
|
+
"aria-required": props.isRequired || undefined,
|
|
7898
7905
|
"aria-autocomplete": "list",
|
|
7899
7906
|
"aria-controls": listboxId,
|
|
7900
7907
|
"aria-expanded": isOpen,
|
|
@@ -7919,22 +7926,22 @@ const ComboboxInput$1 = (props, {
|
|
|
7919
7926
|
/**
|
|
7920
7927
|
* Component display name.
|
|
7921
7928
|
*/
|
|
7922
|
-
const COMPONENT_NAME$
|
|
7929
|
+
const COMPONENT_NAME$1m = 'TextField';
|
|
7923
7930
|
|
|
7924
7931
|
/**
|
|
7925
7932
|
* Component default class name and class prefix.
|
|
7926
7933
|
*/
|
|
7927
|
-
const CLASSNAME$
|
|
7934
|
+
const CLASSNAME$1j = 'lumx-text-field';
|
|
7928
7935
|
|
|
7929
7936
|
/**
|
|
7930
7937
|
* Input native element class name.
|
|
7931
7938
|
*/
|
|
7932
|
-
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$
|
|
7939
|
+
const INPUT_NATIVE_CLASSNAME = `${CLASSNAME$1j}__input-native`;
|
|
7933
7940
|
|
|
7934
7941
|
const {
|
|
7935
|
-
block: block
|
|
7936
|
-
element: element$
|
|
7937
|
-
} = bem(CLASSNAME$
|
|
7942
|
+
block: block$10,
|
|
7943
|
+
element: element$N
|
|
7944
|
+
} = bem(CLASSNAME$1j);
|
|
7938
7945
|
|
|
7939
7946
|
/**
|
|
7940
7947
|
* Defines the props of the component.
|
|
@@ -8007,7 +8014,7 @@ const TextField$1 = props => {
|
|
|
8007
8014
|
const isNotEmpty = valueLength > 0;
|
|
8008
8015
|
const remaining = maxLength ? maxLength - valueLength : 0;
|
|
8009
8016
|
const charCounter = maxLength ? /*#__PURE__*/jsxs("span", {
|
|
8010
|
-
className: element$
|
|
8017
|
+
className: element$N('char-counter'),
|
|
8011
8018
|
role: "status",
|
|
8012
8019
|
children: [charCounterMessage ? charCounterMessage(remaining) : remaining, remaining === 0 && Icon$1({
|
|
8013
8020
|
icon: mdiAlertCircle,
|
|
@@ -8016,7 +8023,7 @@ const TextField$1 = props => {
|
|
|
8016
8023
|
}) : undefined;
|
|
8017
8024
|
return /*#__PURE__*/jsxs("div", {
|
|
8018
8025
|
ref: ref,
|
|
8019
|
-
className: classnames(className, block
|
|
8026
|
+
className: classnames(className, block$10({
|
|
8020
8027
|
'has-chips': Boolean(chips),
|
|
8021
8028
|
'has-error': !isValid && hasError,
|
|
8022
8029
|
'has-icon': Boolean(icon),
|
|
@@ -8032,56 +8039,56 @@ const TextField$1 = props => {
|
|
|
8032
8039
|
[`theme-${theme}`]: Boolean(theme)
|
|
8033
8040
|
})),
|
|
8034
8041
|
children: [(label || maxLength) && /*#__PURE__*/jsx("div", {
|
|
8035
|
-
className: element$
|
|
8042
|
+
className: element$N('header'),
|
|
8036
8043
|
children: InputLabel$1({
|
|
8037
8044
|
...labelProps,
|
|
8038
8045
|
id: labelId,
|
|
8039
8046
|
htmlFor: textFieldId,
|
|
8040
|
-
className: element$
|
|
8047
|
+
className: element$N('label'),
|
|
8041
8048
|
isRequired,
|
|
8042
8049
|
theme,
|
|
8043
8050
|
children: [label, charCounter]
|
|
8044
8051
|
})
|
|
8045
8052
|
}), /*#__PURE__*/jsxs("div", {
|
|
8046
|
-
className: element$
|
|
8053
|
+
className: element$N('wrapper'),
|
|
8047
8054
|
ref: textFieldRef,
|
|
8048
8055
|
children: [icon && Icon$1({
|
|
8049
|
-
className: element$
|
|
8056
|
+
className: element$N('input-icon'),
|
|
8050
8057
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
8051
8058
|
icon,
|
|
8052
8059
|
size: Size.xs
|
|
8053
8060
|
}), chips ? /*#__PURE__*/jsxs("div", {
|
|
8054
|
-
className: element$
|
|
8061
|
+
className: element$N('chips'),
|
|
8055
8062
|
children: [chips, input]
|
|
8056
8063
|
}) : /*#__PURE__*/jsx("div", {
|
|
8057
|
-
className: element$
|
|
8064
|
+
className: element$N('input-wrapper'),
|
|
8058
8065
|
children: input
|
|
8059
8066
|
}), (isValid || hasError) && Icon$1({
|
|
8060
|
-
className: element$
|
|
8067
|
+
className: element$N('input-validity'),
|
|
8061
8068
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
8062
8069
|
icon: isValid ? mdiCheckCircle : mdiAlertCircle,
|
|
8063
8070
|
size: Size.xxs
|
|
8064
8071
|
}), clearButtonProps && isNotEmpty && !isAnyDisabled && /*#__PURE__*/jsx(IconButton, {
|
|
8065
8072
|
"aria-describedby": labelId,
|
|
8066
8073
|
...clearButtonProps,
|
|
8067
|
-
className: element$
|
|
8074
|
+
className: element$N('input-clear'),
|
|
8068
8075
|
icon: mdiCloseCircle,
|
|
8069
8076
|
emphasis: Emphasis.low,
|
|
8070
8077
|
size: Size.s,
|
|
8071
8078
|
theme: theme,
|
|
8072
8079
|
type: "button"
|
|
8073
8080
|
}), afterElement && /*#__PURE__*/jsx("div", {
|
|
8074
|
-
className: element$
|
|
8081
|
+
className: element$N('after-element'),
|
|
8075
8082
|
children: afterElement
|
|
8076
8083
|
})]
|
|
8077
8084
|
}), hasError && error && InputHelper$1({
|
|
8078
8085
|
children: error,
|
|
8079
|
-
className: element$
|
|
8086
|
+
className: element$N('helper'),
|
|
8080
8087
|
kind: Kind.error,
|
|
8081
8088
|
theme,
|
|
8082
8089
|
id: errorId
|
|
8083
8090
|
}), helper && InputHelper$1({
|
|
8084
|
-
className: element$
|
|
8091
|
+
className: element$N('helper'),
|
|
8085
8092
|
theme,
|
|
8086
8093
|
id: helperId,
|
|
8087
8094
|
children: helper
|
|
@@ -8090,7 +8097,7 @@ const TextField$1 = props => {
|
|
|
8090
8097
|
};
|
|
8091
8098
|
|
|
8092
8099
|
const {
|
|
8093
|
-
block: block
|
|
8100
|
+
block: block$$
|
|
8094
8101
|
} = bem(INPUT_NATIVE_CLASSNAME);
|
|
8095
8102
|
|
|
8096
8103
|
/**
|
|
@@ -8100,7 +8107,7 @@ const {
|
|
|
8100
8107
|
/**
|
|
8101
8108
|
* Component default props.
|
|
8102
8109
|
*/
|
|
8103
|
-
const DEFAULT_PROPS$
|
|
8110
|
+
const DEFAULT_PROPS$14 = {
|
|
8104
8111
|
type: 'text'
|
|
8105
8112
|
};
|
|
8106
8113
|
|
|
@@ -8117,7 +8124,7 @@ const RawInputText$1 = props => {
|
|
|
8117
8124
|
handleInput,
|
|
8118
8125
|
handleFocus,
|
|
8119
8126
|
handleBlur,
|
|
8120
|
-
type = DEFAULT_PROPS$
|
|
8127
|
+
type = DEFAULT_PROPS$14.type,
|
|
8121
8128
|
name,
|
|
8122
8129
|
ref,
|
|
8123
8130
|
...forwardedProps
|
|
@@ -8133,7 +8140,7 @@ const RawInputText$1 = props => {
|
|
|
8133
8140
|
name: name,
|
|
8134
8141
|
type: type,
|
|
8135
8142
|
ref: ref,
|
|
8136
|
-
className: classnames(className, block
|
|
8143
|
+
className: classnames(className, block$$({
|
|
8137
8144
|
[`theme-${theme}`]: Boolean(theme),
|
|
8138
8145
|
text: true
|
|
8139
8146
|
})),
|
|
@@ -8169,7 +8176,7 @@ const RawInputText = forwardRef((props, ref) => {
|
|
|
8169
8176
|
});
|
|
8170
8177
|
|
|
8171
8178
|
const {
|
|
8172
|
-
block: block$
|
|
8179
|
+
block: block$_
|
|
8173
8180
|
} = bem(INPUT_NATIVE_CLASSNAME);
|
|
8174
8181
|
|
|
8175
8182
|
/**
|
|
@@ -8179,7 +8186,7 @@ const {
|
|
|
8179
8186
|
/**
|
|
8180
8187
|
* Component default props.
|
|
8181
8188
|
*/
|
|
8182
|
-
const DEFAULT_PROPS$
|
|
8189
|
+
const DEFAULT_PROPS$13 = {
|
|
8183
8190
|
rows: 2
|
|
8184
8191
|
};
|
|
8185
8192
|
|
|
@@ -8196,7 +8203,7 @@ const RawInputTextarea$1 = props => {
|
|
|
8196
8203
|
handleInput,
|
|
8197
8204
|
handleFocus,
|
|
8198
8205
|
handleBlur,
|
|
8199
|
-
rows = DEFAULT_PROPS$
|
|
8206
|
+
rows = DEFAULT_PROPS$13.rows,
|
|
8200
8207
|
name,
|
|
8201
8208
|
ref,
|
|
8202
8209
|
...forwardedProps
|
|
@@ -8211,7 +8218,7 @@ const RawInputTextarea$1 = props => {
|
|
|
8211
8218
|
...forwardedProps,
|
|
8212
8219
|
name: name,
|
|
8213
8220
|
ref: ref,
|
|
8214
|
-
className: classnames(className, block$
|
|
8221
|
+
className: classnames(className, block$_({
|
|
8215
8222
|
[`theme-${theme}`]: Boolean(theme),
|
|
8216
8223
|
textarea: true
|
|
8217
8224
|
})),
|
|
@@ -8272,8 +8279,8 @@ function useFitRowsToContent(minimumRows, textareaRef, value) {
|
|
|
8272
8279
|
/**
|
|
8273
8280
|
* Component default props.
|
|
8274
8281
|
*/
|
|
8275
|
-
const DEFAULT_PROPS$
|
|
8276
|
-
minimumRows: DEFAULT_PROPS$
|
|
8282
|
+
const DEFAULT_PROPS$12 = {
|
|
8283
|
+
minimumRows: DEFAULT_PROPS$13.rows
|
|
8277
8284
|
};
|
|
8278
8285
|
|
|
8279
8286
|
/**
|
|
@@ -8284,7 +8291,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
8284
8291
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
8285
8292
|
const {
|
|
8286
8293
|
theme = defaultTheme,
|
|
8287
|
-
minimumRows = DEFAULT_PROPS$
|
|
8294
|
+
minimumRows = DEFAULT_PROPS$12.minimumRows,
|
|
8288
8295
|
value,
|
|
8289
8296
|
onChange,
|
|
8290
8297
|
onFocus,
|
|
@@ -8308,7 +8315,7 @@ const RawInputTextarea = forwardRef((props, ref) => {
|
|
|
8308
8315
|
/**
|
|
8309
8316
|
* Component default props.
|
|
8310
8317
|
*/
|
|
8311
|
-
const DEFAULT_PROPS$
|
|
8318
|
+
const DEFAULT_PROPS$11 = {
|
|
8312
8319
|
type: 'text'
|
|
8313
8320
|
};
|
|
8314
8321
|
|
|
@@ -8353,7 +8360,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
8353
8360
|
placeholder,
|
|
8354
8361
|
textFieldRef,
|
|
8355
8362
|
theme = defaultTheme,
|
|
8356
|
-
type = DEFAULT_PROPS$
|
|
8363
|
+
type = DEFAULT_PROPS$11.type,
|
|
8357
8364
|
value,
|
|
8358
8365
|
afterElement,
|
|
8359
8366
|
...forwardedProps
|
|
@@ -8398,7 +8405,8 @@ const TextField = forwardRef((props, ref) => {
|
|
|
8398
8405
|
ref: inputRef,
|
|
8399
8406
|
...disabledStateProps,
|
|
8400
8407
|
...forwardedProps,
|
|
8401
|
-
required
|
|
8408
|
+
// An explicit `required` attribute wins over the one derived from `isRequired`.
|
|
8409
|
+
required: forwardedProps.required ?? isRequired,
|
|
8402
8410
|
maxLength,
|
|
8403
8411
|
onBlur(evt) {
|
|
8404
8412
|
setFocus(false);
|
|
@@ -8459,9 +8467,9 @@ const TextField = forwardRef((props, ref) => {
|
|
|
8459
8467
|
} : undefined
|
|
8460
8468
|
});
|
|
8461
8469
|
});
|
|
8462
|
-
TextField.displayName = COMPONENT_NAME$
|
|
8463
|
-
TextField.className = CLASSNAME$
|
|
8464
|
-
TextField.defaultProps = DEFAULT_PROPS$
|
|
8470
|
+
TextField.displayName = COMPONENT_NAME$1m;
|
|
8471
|
+
TextField.className = CLASSNAME$1j;
|
|
8472
|
+
TextField.defaultProps = DEFAULT_PROPS$11;
|
|
8465
8473
|
|
|
8466
8474
|
/**
|
|
8467
8475
|
* Props for Combobox.Input component.
|
|
@@ -8548,26 +8556,26 @@ const ComboboxInput = forwardRef((props, ref) => {
|
|
|
8548
8556
|
IconButton
|
|
8549
8557
|
});
|
|
8550
8558
|
});
|
|
8551
|
-
ComboboxInput.displayName = COMPONENT_NAME$
|
|
8552
|
-
ComboboxInput.className = CLASSNAME$
|
|
8559
|
+
ComboboxInput.displayName = COMPONENT_NAME$1n;
|
|
8560
|
+
ComboboxInput.className = CLASSNAME$1k;
|
|
8553
8561
|
|
|
8554
8562
|
/**
|
|
8555
8563
|
* Component display name.
|
|
8556
8564
|
*/
|
|
8557
|
-
const COMPONENT_NAME$
|
|
8565
|
+
const COMPONENT_NAME$1l = 'List';
|
|
8558
8566
|
|
|
8559
8567
|
/**
|
|
8560
8568
|
* Component default class name and class prefix.
|
|
8561
8569
|
*/
|
|
8562
|
-
const CLASSNAME$
|
|
8570
|
+
const CLASSNAME$1i = 'lumx-list';
|
|
8563
8571
|
const {
|
|
8564
|
-
block: block$
|
|
8565
|
-
} = bem(CLASSNAME$
|
|
8572
|
+
block: block$Z
|
|
8573
|
+
} = bem(CLASSNAME$1i);
|
|
8566
8574
|
|
|
8567
8575
|
/**
|
|
8568
8576
|
* Component default props.
|
|
8569
8577
|
*/
|
|
8570
|
-
const DEFAULT_PROPS
|
|
8578
|
+
const DEFAULT_PROPS$10 = {};
|
|
8571
8579
|
|
|
8572
8580
|
/**
|
|
8573
8581
|
* List component.
|
|
@@ -8585,16 +8593,16 @@ const List$1 = props => {
|
|
|
8585
8593
|
} = props;
|
|
8586
8594
|
return /*#__PURE__*/jsx("ul", {
|
|
8587
8595
|
...forwardedProps,
|
|
8588
|
-
className: classnames(className, block$
|
|
8596
|
+
className: classnames(className, block$Z({
|
|
8589
8597
|
[`item-padding-${itemPadding}`]: Boolean(itemPadding)
|
|
8590
8598
|
})),
|
|
8591
8599
|
ref: ref,
|
|
8592
8600
|
children: children
|
|
8593
8601
|
});
|
|
8594
8602
|
};
|
|
8595
|
-
List$1.displayName = COMPONENT_NAME$
|
|
8596
|
-
List$1.className = CLASSNAME$
|
|
8597
|
-
List$1.defaultProps = DEFAULT_PROPS
|
|
8603
|
+
List$1.displayName = COMPONENT_NAME$1l;
|
|
8604
|
+
List$1.className = CLASSNAME$1i;
|
|
8605
|
+
List$1.defaultProps = DEFAULT_PROPS$10;
|
|
8598
8606
|
|
|
8599
8607
|
/**
|
|
8600
8608
|
* Popup type for the combobox listbox.
|
|
@@ -8609,12 +8617,12 @@ List$1.defaultProps = DEFAULT_PROPS$$;
|
|
|
8609
8617
|
/**
|
|
8610
8618
|
* Component display name.
|
|
8611
8619
|
*/
|
|
8612
|
-
const COMPONENT_NAME$
|
|
8620
|
+
const COMPONENT_NAME$1k = 'ComboboxList';
|
|
8613
8621
|
|
|
8614
8622
|
/**
|
|
8615
8623
|
* Component default class name and class prefix.
|
|
8616
8624
|
*/
|
|
8617
|
-
const CLASSNAME$
|
|
8625
|
+
const CLASSNAME$1h = 'lumx-combobox-list';
|
|
8618
8626
|
|
|
8619
8627
|
/**
|
|
8620
8628
|
* ComboboxList core template.
|
|
@@ -8636,7 +8644,7 @@ const ComboboxList$1 = props => {
|
|
|
8636
8644
|
} = props;
|
|
8637
8645
|
return List$1({
|
|
8638
8646
|
...forwardedProps,
|
|
8639
|
-
className: classnames(className, CLASSNAME$
|
|
8647
|
+
className: classnames(className, CLASSNAME$1h),
|
|
8640
8648
|
ref,
|
|
8641
8649
|
itemPadding: 'big',
|
|
8642
8650
|
id,
|
|
@@ -8726,27 +8734,27 @@ const ComboboxList = forwardRef((props, ref) => {
|
|
|
8726
8734
|
})
|
|
8727
8735
|
});
|
|
8728
8736
|
});
|
|
8729
|
-
ComboboxList.displayName = COMPONENT_NAME$
|
|
8730
|
-
ComboboxList.className = CLASSNAME$
|
|
8737
|
+
ComboboxList.displayName = COMPONENT_NAME$1k;
|
|
8738
|
+
ComboboxList.className = CLASSNAME$1h;
|
|
8731
8739
|
|
|
8732
8740
|
/**
|
|
8733
8741
|
* Component display name.
|
|
8734
8742
|
*/
|
|
8735
|
-
const COMPONENT_NAME$
|
|
8743
|
+
const COMPONENT_NAME$1j = 'ListItem';
|
|
8736
8744
|
|
|
8737
8745
|
/**
|
|
8738
8746
|
* Component default class name and class prefix.
|
|
8739
8747
|
*/
|
|
8740
|
-
const CLASSNAME$
|
|
8748
|
+
const CLASSNAME$1g = 'lumx-list-item';
|
|
8741
8749
|
const {
|
|
8742
|
-
block: block$
|
|
8743
|
-
element: element$
|
|
8744
|
-
} = bem(CLASSNAME$
|
|
8750
|
+
block: block$Y,
|
|
8751
|
+
element: element$M
|
|
8752
|
+
} = bem(CLASSNAME$1g);
|
|
8745
8753
|
|
|
8746
8754
|
/**
|
|
8747
8755
|
* Component default props.
|
|
8748
8756
|
*/
|
|
8749
|
-
const DEFAULT_PROPS
|
|
8757
|
+
const DEFAULT_PROPS$$ = {
|
|
8750
8758
|
size: Size.regular
|
|
8751
8759
|
};
|
|
8752
8760
|
|
|
@@ -8770,7 +8778,7 @@ const ListItem$1 = props => {
|
|
|
8770
8778
|
linkProps = {},
|
|
8771
8779
|
linkRef,
|
|
8772
8780
|
handleClick,
|
|
8773
|
-
size = DEFAULT_PROPS
|
|
8781
|
+
size = DEFAULT_PROPS$$.size,
|
|
8774
8782
|
ref,
|
|
8775
8783
|
...forwardedProps
|
|
8776
8784
|
} = props;
|
|
@@ -8778,7 +8786,7 @@ const ListItem$1 = props => {
|
|
|
8778
8786
|
return /*#__PURE__*/jsx("li", {
|
|
8779
8787
|
ref: ref,
|
|
8780
8788
|
...forwardedProps,
|
|
8781
|
-
className: classnames(className, block$
|
|
8789
|
+
className: classnames(className, block$Y({
|
|
8782
8790
|
[`size-${size}`]: Boolean(size)
|
|
8783
8791
|
})),
|
|
8784
8792
|
children: RawClickable({
|
|
@@ -8786,7 +8794,7 @@ const ListItem$1 = props => {
|
|
|
8786
8794
|
isDisabled,
|
|
8787
8795
|
'aria-disabled': ariaDisabled,
|
|
8788
8796
|
...linkProps,
|
|
8789
|
-
className: element$
|
|
8797
|
+
className: element$M(clickable ? 'link' : 'wrapper', {
|
|
8790
8798
|
'is-highlighted': isHighlighted,
|
|
8791
8799
|
'is-selected': isSelected,
|
|
8792
8800
|
'is-disabled': isDisabled || ariaDisabled === 'true'
|
|
@@ -8795,22 +8803,22 @@ const ListItem$1 = props => {
|
|
|
8795
8803
|
ref: linkRef,
|
|
8796
8804
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
8797
8805
|
children: [before && /*#__PURE__*/jsx("div", {
|
|
8798
|
-
className: element$
|
|
8806
|
+
className: element$M('before'),
|
|
8799
8807
|
children: before
|
|
8800
8808
|
}), /*#__PURE__*/jsx("div", {
|
|
8801
|
-
className: element$
|
|
8809
|
+
className: element$M('content'),
|
|
8802
8810
|
children: children
|
|
8803
8811
|
}), after && /*#__PURE__*/jsx("div", {
|
|
8804
|
-
className: element$
|
|
8812
|
+
className: element$M('after'),
|
|
8805
8813
|
children: after
|
|
8806
8814
|
})]
|
|
8807
8815
|
})
|
|
8808
8816
|
})
|
|
8809
8817
|
});
|
|
8810
8818
|
};
|
|
8811
|
-
ListItem$1.displayName = COMPONENT_NAME$
|
|
8812
|
-
ListItem$1.className = CLASSNAME$
|
|
8813
|
-
ListItem$1.defaultProps = DEFAULT_PROPS
|
|
8819
|
+
ListItem$1.displayName = COMPONENT_NAME$1j;
|
|
8820
|
+
ListItem$1.className = CLASSNAME$1g;
|
|
8821
|
+
ListItem$1.defaultProps = DEFAULT_PROPS$$;
|
|
8814
8822
|
|
|
8815
8823
|
/**
|
|
8816
8824
|
* ListItemAction props.
|
|
@@ -8819,13 +8827,13 @@ ListItem$1.defaultProps = DEFAULT_PROPS$_;
|
|
|
8819
8827
|
/**
|
|
8820
8828
|
* Component display name.
|
|
8821
8829
|
*/
|
|
8822
|
-
const COMPONENT_NAME$
|
|
8830
|
+
const COMPONENT_NAME$1i = 'ListItemAction';
|
|
8823
8831
|
|
|
8824
8832
|
/**
|
|
8825
8833
|
* Component classname (used by action area CSS pattern).
|
|
8826
8834
|
*/
|
|
8827
|
-
const CLASSNAME$
|
|
8828
|
-
const DEFAULT_PROPS$
|
|
8835
|
+
const CLASSNAME$1f = 'lumx-action-area__action';
|
|
8836
|
+
const DEFAULT_PROPS$_ = {};
|
|
8829
8837
|
|
|
8830
8838
|
/**
|
|
8831
8839
|
* ListItemAction component.
|
|
@@ -8858,16 +8866,16 @@ const ListItemAction$1 = props => {
|
|
|
8858
8866
|
/**
|
|
8859
8867
|
* Component display name.
|
|
8860
8868
|
*/
|
|
8861
|
-
const COMPONENT_NAME$
|
|
8869
|
+
const COMPONENT_NAME$1h = 'ComboboxOption';
|
|
8862
8870
|
|
|
8863
8871
|
/**
|
|
8864
8872
|
* Component default class name and class prefix.
|
|
8865
8873
|
*/
|
|
8866
|
-
const CLASSNAME$
|
|
8874
|
+
const CLASSNAME$1e = 'lumx-combobox-option';
|
|
8867
8875
|
const {
|
|
8868
|
-
block: block$
|
|
8869
|
-
element: element$
|
|
8870
|
-
} = bem(CLASSNAME$
|
|
8876
|
+
block: block$X,
|
|
8877
|
+
element: element$L
|
|
8878
|
+
} = bem(CLASSNAME$1e);
|
|
8871
8879
|
|
|
8872
8880
|
/**
|
|
8873
8881
|
* ComboboxOption core template.
|
|
@@ -8911,7 +8919,7 @@ const ComboboxOption$1 = (props, {
|
|
|
8911
8919
|
as: 'button',
|
|
8912
8920
|
...actionProps,
|
|
8913
8921
|
id,
|
|
8914
|
-
className: element$
|
|
8922
|
+
className: element$L('action'),
|
|
8915
8923
|
handleClick,
|
|
8916
8924
|
'aria-selected': isSelected ? 'true' : 'false',
|
|
8917
8925
|
'data-value': value,
|
|
@@ -8929,7 +8937,7 @@ const ComboboxOption$1 = (props, {
|
|
|
8929
8937
|
size: 'tiny',
|
|
8930
8938
|
...forwardedProps,
|
|
8931
8939
|
hidden,
|
|
8932
|
-
className: !hidden ? classnames(className, block$
|
|
8940
|
+
className: !hidden ? classnames(className, block$X()) : undefined,
|
|
8933
8941
|
before,
|
|
8934
8942
|
after,
|
|
8935
8943
|
role: itemRole,
|
|
@@ -8937,7 +8945,7 @@ const ComboboxOption$1 = (props, {
|
|
|
8937
8945
|
children: [wrappedAction, description && /*#__PURE__*/jsx("p", {
|
|
8938
8946
|
id: descriptionId,
|
|
8939
8947
|
...getTextProps({
|
|
8940
|
-
className: element$
|
|
8948
|
+
className: element$L('description'),
|
|
8941
8949
|
typography: 'caption',
|
|
8942
8950
|
color: 'dark-L2'
|
|
8943
8951
|
}),
|
|
@@ -9051,8 +9059,8 @@ const ComboboxOption = forwardRef((props, ref) => {
|
|
|
9051
9059
|
Tooltip
|
|
9052
9060
|
});
|
|
9053
9061
|
});
|
|
9054
|
-
ComboboxOption.displayName = COMPONENT_NAME$
|
|
9055
|
-
ComboboxOption.className = CLASSNAME$
|
|
9062
|
+
ComboboxOption.displayName = COMPONENT_NAME$1h;
|
|
9063
|
+
ComboboxOption.className = CLASSNAME$1e;
|
|
9056
9064
|
|
|
9057
9065
|
/**
|
|
9058
9066
|
* Defines the props for the core ComboboxOptionAction template.
|
|
@@ -9061,12 +9069,12 @@ ComboboxOption.className = CLASSNAME$1d;
|
|
|
9061
9069
|
/**
|
|
9062
9070
|
* Component display name.
|
|
9063
9071
|
*/
|
|
9064
|
-
const COMPONENT_NAME$
|
|
9072
|
+
const COMPONENT_NAME$1g = 'ComboboxOptionAction';
|
|
9065
9073
|
|
|
9066
9074
|
/**
|
|
9067
9075
|
* Component default class name and class prefix.
|
|
9068
9076
|
*/
|
|
9069
|
-
const CLASSNAME$
|
|
9077
|
+
const CLASSNAME$1d = 'lumx-combobox-option-action';
|
|
9070
9078
|
|
|
9071
9079
|
/**
|
|
9072
9080
|
* ComboboxOptionAction core template.
|
|
@@ -9089,7 +9097,7 @@ const ComboboxOptionAction$1 = props => {
|
|
|
9089
9097
|
as: Element,
|
|
9090
9098
|
...forwardedProps,
|
|
9091
9099
|
role: 'gridcell',
|
|
9092
|
-
className: classnames(className, CLASSNAME$
|
|
9100
|
+
className: classnames(className, CLASSNAME$1d),
|
|
9093
9101
|
handleClick,
|
|
9094
9102
|
children
|
|
9095
9103
|
});
|
|
@@ -9139,23 +9147,23 @@ const ComboboxOptionAction = Object.assign(forwardRefPolymorphic((props, ref) =>
|
|
|
9139
9147
|
children
|
|
9140
9148
|
});
|
|
9141
9149
|
}), {
|
|
9142
|
-
displayName: COMPONENT_NAME$
|
|
9143
|
-
className: CLASSNAME$
|
|
9150
|
+
displayName: COMPONENT_NAME$1g,
|
|
9151
|
+
className: CLASSNAME$1d
|
|
9144
9152
|
});
|
|
9145
9153
|
|
|
9146
9154
|
/**
|
|
9147
9155
|
* Component display name.
|
|
9148
9156
|
*/
|
|
9149
|
-
const COMPONENT_NAME$
|
|
9157
|
+
const COMPONENT_NAME$1f = 'ComboboxOptionMoreInfo';
|
|
9150
9158
|
|
|
9151
9159
|
/**
|
|
9152
9160
|
* Component default class name and class prefix.
|
|
9153
9161
|
*/
|
|
9154
|
-
const CLASSNAME$
|
|
9162
|
+
const CLASSNAME$1c = 'lumx-combobox-option-more-info';
|
|
9155
9163
|
const {
|
|
9156
|
-
block: block$
|
|
9157
|
-
element: element$
|
|
9158
|
-
} = bem(CLASSNAME$
|
|
9164
|
+
block: block$W,
|
|
9165
|
+
element: element$K
|
|
9166
|
+
} = bem(CLASSNAME$1c);
|
|
9159
9167
|
|
|
9160
9168
|
/**
|
|
9161
9169
|
* ComboboxOptionMoreInfo core template.
|
|
@@ -9189,7 +9197,7 @@ const ComboboxOptionMoreInfo$1 = (props, {
|
|
|
9189
9197
|
icon: mdiInformationOutline,
|
|
9190
9198
|
size: "s",
|
|
9191
9199
|
...buttonProps,
|
|
9192
|
-
className: block$
|
|
9200
|
+
className: block$W([className, buttonProps?.className]),
|
|
9193
9201
|
emphasis: "low",
|
|
9194
9202
|
onMouseEnter: onMouseEnter,
|
|
9195
9203
|
onMouseLeave: onMouseLeave
|
|
@@ -9200,7 +9208,7 @@ const ComboboxOptionMoreInfo$1 = (props, {
|
|
|
9200
9208
|
label: ""
|
|
9201
9209
|
}), /*#__PURE__*/jsx(Popover, {
|
|
9202
9210
|
id: popoverId,
|
|
9203
|
-
className: element$
|
|
9211
|
+
className: element$K('popover'),
|
|
9204
9212
|
anchorRef: ref,
|
|
9205
9213
|
isOpen: isOpen,
|
|
9206
9214
|
closeMode: "unmount",
|
|
@@ -9468,21 +9476,21 @@ const POPOVER_ZINDEX = 9999;
|
|
|
9468
9476
|
/**
|
|
9469
9477
|
* Component display name.
|
|
9470
9478
|
*/
|
|
9471
|
-
const COMPONENT_NAME$
|
|
9479
|
+
const COMPONENT_NAME$1e = 'Popover';
|
|
9472
9480
|
|
|
9473
9481
|
/**
|
|
9474
9482
|
* Component default class name and class prefix.
|
|
9475
9483
|
*/
|
|
9476
|
-
const CLASSNAME$
|
|
9484
|
+
const CLASSNAME$1b = 'lumx-popover';
|
|
9477
9485
|
const {
|
|
9478
|
-
block: block$
|
|
9479
|
-
element: element$
|
|
9480
|
-
} = bem(CLASSNAME$
|
|
9486
|
+
block: block$V,
|
|
9487
|
+
element: element$J
|
|
9488
|
+
} = bem(CLASSNAME$1b);
|
|
9481
9489
|
|
|
9482
9490
|
/**
|
|
9483
9491
|
* Component default props (used by framework wrappers).
|
|
9484
9492
|
*/
|
|
9485
|
-
const DEFAULT_PROPS$
|
|
9493
|
+
const DEFAULT_PROPS$Z = {
|
|
9486
9494
|
closeMode: 'unmount',
|
|
9487
9495
|
elevation: 3,
|
|
9488
9496
|
placement: Placement.AUTO,
|
|
@@ -9506,8 +9514,8 @@ const Popover$1 = (props, {
|
|
|
9506
9514
|
as: asTag = 'div',
|
|
9507
9515
|
children,
|
|
9508
9516
|
className,
|
|
9509
|
-
closeMode = DEFAULT_PROPS$
|
|
9510
|
-
elevation = DEFAULT_PROPS$
|
|
9517
|
+
closeMode = DEFAULT_PROPS$Z.closeMode,
|
|
9518
|
+
elevation = DEFAULT_PROPS$Z.elevation,
|
|
9511
9519
|
hasArrow,
|
|
9512
9520
|
isOpen,
|
|
9513
9521
|
position,
|
|
@@ -9517,7 +9525,7 @@ const Popover$1 = (props, {
|
|
|
9517
9525
|
// Framework-specific
|
|
9518
9526
|
ref,
|
|
9519
9527
|
arrowRef,
|
|
9520
|
-
usePortal = DEFAULT_PROPS$
|
|
9528
|
+
usePortal = DEFAULT_PROPS$Z.usePortal,
|
|
9521
9529
|
clickAwayCallback,
|
|
9522
9530
|
clickAwayRefs,
|
|
9523
9531
|
unmountSentinel,
|
|
@@ -9539,7 +9547,7 @@ const Popover$1 = (props, {
|
|
|
9539
9547
|
children: /*#__PURE__*/jsxs(Component, {
|
|
9540
9548
|
...forwardedProps,
|
|
9541
9549
|
ref: ref,
|
|
9542
|
-
className: classnames(className, block$
|
|
9550
|
+
className: classnames(className, block$V({
|
|
9543
9551
|
[`theme-${theme}`]: Boolean(theme),
|
|
9544
9552
|
[`elevation-${adjustedElevation}`]: Boolean(adjustedElevation),
|
|
9545
9553
|
[`position-${position}`]: Boolean(position),
|
|
@@ -9553,7 +9561,7 @@ const Popover$1 = (props, {
|
|
|
9553
9561
|
childrenRefs: clickAwayRefs,
|
|
9554
9562
|
children: [hasArrow && /*#__PURE__*/jsx("div", {
|
|
9555
9563
|
ref: arrowRef,
|
|
9556
|
-
className: element$
|
|
9564
|
+
className: element$J('arrow'),
|
|
9557
9565
|
style: isHidden ? undefined : arrowStyle,
|
|
9558
9566
|
children: /*#__PURE__*/jsx("svg", {
|
|
9559
9567
|
viewBox: "0 0 14 14",
|
|
@@ -9911,17 +9919,17 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
9911
9919
|
as,
|
|
9912
9920
|
children,
|
|
9913
9921
|
className,
|
|
9914
|
-
closeMode = DEFAULT_PROPS$
|
|
9922
|
+
closeMode = DEFAULT_PROPS$Z.closeMode,
|
|
9915
9923
|
closeOnClickAway,
|
|
9916
9924
|
closeOnEscape,
|
|
9917
|
-
elevation = DEFAULT_PROPS$
|
|
9925
|
+
elevation = DEFAULT_PROPS$Z.elevation,
|
|
9918
9926
|
focusElement,
|
|
9919
9927
|
hasArrow,
|
|
9920
9928
|
isOpen,
|
|
9921
9929
|
onClose,
|
|
9922
9930
|
parentElement,
|
|
9923
|
-
usePortal = DEFAULT_PROPS$
|
|
9924
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
9931
|
+
usePortal = DEFAULT_PROPS$Z.usePortal,
|
|
9932
|
+
focusAnchorOnClose = DEFAULT_PROPS$Z.focusAnchorOnClose,
|
|
9925
9933
|
withFocusTrap,
|
|
9926
9934
|
boundaryRef,
|
|
9927
9935
|
fitToAnchorWidth,
|
|
@@ -9934,10 +9942,10 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
9934
9942
|
minHeight,
|
|
9935
9943
|
maxHeight,
|
|
9936
9944
|
offset,
|
|
9937
|
-
placement = DEFAULT_PROPS$
|
|
9945
|
+
placement = DEFAULT_PROPS$Z.placement,
|
|
9938
9946
|
style,
|
|
9939
9947
|
theme,
|
|
9940
|
-
zIndex = DEFAULT_PROPS$
|
|
9948
|
+
zIndex = DEFAULT_PROPS$Z.zIndex,
|
|
9941
9949
|
...forwardedProps
|
|
9942
9950
|
} = props;
|
|
9943
9951
|
const popoverRef = useRef(null);
|
|
@@ -10003,7 +10011,7 @@ const _InnerPopover = forwardRef((props, ref) => {
|
|
|
10003
10011
|
ThemeProvider
|
|
10004
10012
|
});
|
|
10005
10013
|
});
|
|
10006
|
-
_InnerPopover.displayName = COMPONENT_NAME$
|
|
10014
|
+
_InnerPopover.displayName = COMPONENT_NAME$1e;
|
|
10007
10015
|
|
|
10008
10016
|
/**
|
|
10009
10017
|
* Popover component.
|
|
@@ -10015,9 +10023,9 @@ _InnerPopover.displayName = COMPONENT_NAME$1d;
|
|
|
10015
10023
|
const Popover = skipRender(
|
|
10016
10024
|
// Skip render in SSR
|
|
10017
10025
|
() => Boolean(DOCUMENT), _InnerPopover);
|
|
10018
|
-
Popover.displayName = COMPONENT_NAME$
|
|
10019
|
-
Popover.className = CLASSNAME$
|
|
10020
|
-
Popover.defaultProps = DEFAULT_PROPS$
|
|
10026
|
+
Popover.displayName = COMPONENT_NAME$1e;
|
|
10027
|
+
Popover.className = CLASSNAME$1b;
|
|
10028
|
+
Popover.defaultProps = DEFAULT_PROPS$Z;
|
|
10021
10029
|
|
|
10022
10030
|
/**
|
|
10023
10031
|
* Props for Combobox.OptionMoreInfo component.
|
|
@@ -10079,22 +10087,22 @@ const ComboboxOptionMoreInfo = props => {
|
|
|
10079
10087
|
Popover
|
|
10080
10088
|
});
|
|
10081
10089
|
};
|
|
10082
|
-
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$
|
|
10083
|
-
ComboboxOptionMoreInfo.className = CLASSNAME$
|
|
10090
|
+
ComboboxOptionMoreInfo.displayName = COMPONENT_NAME$1f;
|
|
10091
|
+
ComboboxOptionMoreInfo.className = CLASSNAME$1c;
|
|
10084
10092
|
|
|
10085
10093
|
/**
|
|
10086
10094
|
* Component display name.
|
|
10087
10095
|
*/
|
|
10088
|
-
const COMPONENT_NAME$
|
|
10096
|
+
const COMPONENT_NAME$1d = 'SkeletonTypography';
|
|
10089
10097
|
|
|
10090
10098
|
/**
|
|
10091
10099
|
* Component default class name and class prefix.
|
|
10092
10100
|
*/
|
|
10093
|
-
const CLASSNAME$
|
|
10101
|
+
const CLASSNAME$1a = 'lumx-skeleton-typography';
|
|
10094
10102
|
const {
|
|
10095
|
-
block: block$
|
|
10096
|
-
element: element$
|
|
10097
|
-
} = bem(CLASSNAME$
|
|
10103
|
+
block: block$U,
|
|
10104
|
+
element: element$I
|
|
10105
|
+
} = bem(CLASSNAME$1a);
|
|
10098
10106
|
|
|
10099
10107
|
/**
|
|
10100
10108
|
* SkeletonTypography component.
|
|
@@ -10115,7 +10123,7 @@ const SkeletonTypography$1 = props => {
|
|
|
10115
10123
|
return /*#__PURE__*/jsx("div", {
|
|
10116
10124
|
ref: ref,
|
|
10117
10125
|
...forwardedProps,
|
|
10118
|
-
className: classnames(className, block$
|
|
10126
|
+
className: classnames(className, block$U({
|
|
10119
10127
|
[`theme-${theme}`]: Boolean(theme),
|
|
10120
10128
|
[`typography-${typography}`]: Boolean(typography),
|
|
10121
10129
|
[`color-${color}`]: Boolean(color)
|
|
@@ -10125,7 +10133,7 @@ const SkeletonTypography$1 = props => {
|
|
|
10125
10133
|
width
|
|
10126
10134
|
},
|
|
10127
10135
|
children: /*#__PURE__*/jsx("div", {
|
|
10128
|
-
className: element$
|
|
10136
|
+
className: element$I('inner')
|
|
10129
10137
|
})
|
|
10130
10138
|
});
|
|
10131
10139
|
};
|
|
@@ -10133,12 +10141,12 @@ const SkeletonTypography$1 = props => {
|
|
|
10133
10141
|
/**
|
|
10134
10142
|
* Component display name.
|
|
10135
10143
|
*/
|
|
10136
|
-
const COMPONENT_NAME$
|
|
10144
|
+
const COMPONENT_NAME$1c = 'ComboboxOptionSkeleton';
|
|
10137
10145
|
|
|
10138
10146
|
/**
|
|
10139
10147
|
* Component default class name and class prefix.
|
|
10140
10148
|
*/
|
|
10141
|
-
const CLASSNAME$
|
|
10149
|
+
const CLASSNAME$19 = 'lumx-combobox-option-skeleton';
|
|
10142
10150
|
|
|
10143
10151
|
/**
|
|
10144
10152
|
* ComboboxOptionSkeleton core template.
|
|
@@ -10165,7 +10173,7 @@ const ComboboxOptionSkeleton$1 = props => {
|
|
|
10165
10173
|
size: 'tiny',
|
|
10166
10174
|
role: 'none',
|
|
10167
10175
|
...forwardedProps,
|
|
10168
|
-
className: classnames(className, CLASSNAME$
|
|
10176
|
+
className: classnames(className, CLASSNAME$19),
|
|
10169
10177
|
children: children || /*#__PURE__*/jsxs(Fragment, {
|
|
10170
10178
|
children: [/*#__PURE__*/jsx(SkeletonTypography$1, {
|
|
10171
10179
|
typography: "body1",
|
|
@@ -10218,21 +10226,21 @@ const ComboboxOptionSkeleton = props => {
|
|
|
10218
10226
|
...props
|
|
10219
10227
|
});
|
|
10220
10228
|
};
|
|
10221
|
-
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$
|
|
10222
|
-
ComboboxOptionSkeleton.className = CLASSNAME$
|
|
10229
|
+
ComboboxOptionSkeleton.displayName = COMPONENT_NAME$1c;
|
|
10230
|
+
ComboboxOptionSkeleton.className = CLASSNAME$19;
|
|
10223
10231
|
|
|
10224
10232
|
const DEFAULT_COMBOBOX_POPOVER_MAX_HEIGHT = '80vh';
|
|
10225
10233
|
|
|
10226
|
-
const COMPONENT_NAME$
|
|
10234
|
+
const COMPONENT_NAME$1b = 'ComboboxPopover';
|
|
10227
10235
|
|
|
10228
10236
|
/**
|
|
10229
10237
|
* Component default class name.
|
|
10230
10238
|
*/
|
|
10231
|
-
const CLASSNAME$
|
|
10239
|
+
const CLASSNAME$18 = 'lumx-combobox-popover';
|
|
10232
10240
|
const {
|
|
10233
|
-
block: block$
|
|
10234
|
-
element: element$
|
|
10235
|
-
} = bem(CLASSNAME$
|
|
10241
|
+
block: block$T,
|
|
10242
|
+
element: element$H
|
|
10243
|
+
} = bem(CLASSNAME$18);
|
|
10236
10244
|
|
|
10237
10245
|
/**
|
|
10238
10246
|
* Defines the props for the core ComboboxPopover template.
|
|
@@ -10275,7 +10283,7 @@ const ComboboxPopover$1 = (props, {
|
|
|
10275
10283
|
placement: placement,
|
|
10276
10284
|
fitToAnchorWidth: fitToAnchorWidth,
|
|
10277
10285
|
maxHeight: maxHeight,
|
|
10278
|
-
className: block$
|
|
10286
|
+
className: block$T([className]),
|
|
10279
10287
|
anchorRef: anchorRef,
|
|
10280
10288
|
isOpen: isOpen,
|
|
10281
10289
|
onClose: handleClose,
|
|
@@ -10284,7 +10292,7 @@ const ComboboxPopover$1 = (props, {
|
|
|
10284
10292
|
closeMode: "hide",
|
|
10285
10293
|
children: /*#__PURE__*/jsx(FlexBox, {
|
|
10286
10294
|
orientation: "vertical",
|
|
10287
|
-
className: element$
|
|
10295
|
+
className: element$H('scroll'),
|
|
10288
10296
|
children: children
|
|
10289
10297
|
})
|
|
10290
10298
|
});
|
|
@@ -10297,15 +10305,15 @@ const ComboboxPopover$1 = (props, {
|
|
|
10297
10305
|
/**
|
|
10298
10306
|
* Component display name.
|
|
10299
10307
|
*/
|
|
10300
|
-
const COMPONENT_NAME$
|
|
10308
|
+
const COMPONENT_NAME$1a = 'FlexBox';
|
|
10301
10309
|
|
|
10302
10310
|
/**
|
|
10303
10311
|
* Component default class name and class prefix.
|
|
10304
10312
|
*/
|
|
10305
|
-
const CLASSNAME$
|
|
10313
|
+
const CLASSNAME$17 = 'lumx-flex-box';
|
|
10306
10314
|
const {
|
|
10307
|
-
block: block$
|
|
10308
|
-
} = bem(CLASSNAME$
|
|
10315
|
+
block: block$S
|
|
10316
|
+
} = bem(CLASSNAME$17);
|
|
10309
10317
|
|
|
10310
10318
|
/**
|
|
10311
10319
|
* Get FlexBox component props (className computation).
|
|
@@ -10329,7 +10337,7 @@ function getFlexBoxProps(props) {
|
|
|
10329
10337
|
const adjustedOrientation = orientation ?? (wrap || hAlign || vAlign ? Orientation.horizontal : null);
|
|
10330
10338
|
return {
|
|
10331
10339
|
...forwardedProps,
|
|
10332
|
-
className: classnames(className, block$
|
|
10340
|
+
className: classnames(className, block$S({
|
|
10333
10341
|
[`orientation-${adjustedOrientation}`]: Boolean(adjustedOrientation),
|
|
10334
10342
|
[`v-align-${vAlign}`]: Boolean(vAlign),
|
|
10335
10343
|
[`h-align-${hAlign}`]: Boolean(hAlign),
|
|
@@ -10361,8 +10369,8 @@ const FlexBox = forwardRef((props, ref) => {
|
|
|
10361
10369
|
children: children
|
|
10362
10370
|
});
|
|
10363
10371
|
});
|
|
10364
|
-
FlexBox.displayName = COMPONENT_NAME$
|
|
10365
|
-
FlexBox.className = CLASSNAME$
|
|
10372
|
+
FlexBox.displayName = COMPONENT_NAME$1a;
|
|
10373
|
+
FlexBox.className = CLASSNAME$17;
|
|
10366
10374
|
|
|
10367
10375
|
/**
|
|
10368
10376
|
* Props for Popover that can be passed to Combobox.Popover.
|
|
@@ -10400,8 +10408,8 @@ const ComboboxPopover = props => {
|
|
|
10400
10408
|
FlexBox
|
|
10401
10409
|
});
|
|
10402
10410
|
};
|
|
10403
|
-
ComboboxPopover.displayName = COMPONENT_NAME$
|
|
10404
|
-
ComboboxPopover.className = CLASSNAME$
|
|
10411
|
+
ComboboxPopover.displayName = COMPONENT_NAME$1b;
|
|
10412
|
+
ComboboxPopover.className = CLASSNAME$18;
|
|
10405
10413
|
|
|
10406
10414
|
/**
|
|
10407
10415
|
* Combobox.Provider component.
|
|
@@ -10446,12 +10454,12 @@ ComboboxProvider.displayName = 'Combobox.Provider';
|
|
|
10446
10454
|
/**
|
|
10447
10455
|
* Component display name.
|
|
10448
10456
|
*/
|
|
10449
|
-
const COMPONENT_NAME$
|
|
10457
|
+
const COMPONENT_NAME$19 = 'ComboboxSection';
|
|
10450
10458
|
|
|
10451
10459
|
/**
|
|
10452
10460
|
* Component default class name and class prefix.
|
|
10453
10461
|
*/
|
|
10454
|
-
const CLASSNAME$
|
|
10462
|
+
const CLASSNAME$16 = 'lumx-combobox-section';
|
|
10455
10463
|
|
|
10456
10464
|
/**
|
|
10457
10465
|
* ComboboxSection core template.
|
|
@@ -10478,7 +10486,7 @@ const ComboboxSection$1 = (props, {
|
|
|
10478
10486
|
...forwardedProps,
|
|
10479
10487
|
hidden: hidden,
|
|
10480
10488
|
"aria-hidden": ariaHidden || undefined,
|
|
10481
|
-
className: !hidden ? classnames(className, CLASSNAME$
|
|
10489
|
+
className: !hidden ? classnames(className, CLASSNAME$16) : undefined,
|
|
10482
10490
|
role: !ariaHidden ? 'none' : undefined,
|
|
10483
10491
|
itemsWrapperProps: {
|
|
10484
10492
|
role: 'group'
|
|
@@ -10490,21 +10498,21 @@ const ComboboxSection$1 = (props, {
|
|
|
10490
10498
|
/**
|
|
10491
10499
|
* Component display name.
|
|
10492
10500
|
*/
|
|
10493
|
-
const COMPONENT_NAME$
|
|
10501
|
+
const COMPONENT_NAME$18 = 'ListSection';
|
|
10494
10502
|
|
|
10495
10503
|
/**
|
|
10496
10504
|
* Component default class name and class prefix.
|
|
10497
10505
|
*/
|
|
10498
|
-
const CLASSNAME$
|
|
10506
|
+
const CLASSNAME$15 = 'lumx-list-section';
|
|
10499
10507
|
const {
|
|
10500
|
-
block: block$
|
|
10501
|
-
element: element$
|
|
10502
|
-
} = bem(CLASSNAME$
|
|
10508
|
+
block: block$R,
|
|
10509
|
+
element: element$G
|
|
10510
|
+
} = bem(CLASSNAME$15);
|
|
10503
10511
|
|
|
10504
10512
|
/**
|
|
10505
10513
|
* Component default props.
|
|
10506
10514
|
*/
|
|
10507
|
-
const DEFAULT_PROPS$
|
|
10515
|
+
const DEFAULT_PROPS$Y = {};
|
|
10508
10516
|
|
|
10509
10517
|
/**
|
|
10510
10518
|
* ListSection component.
|
|
@@ -10529,26 +10537,26 @@ const ListSection$1 = props => {
|
|
|
10529
10537
|
return /*#__PURE__*/jsxs("li", {
|
|
10530
10538
|
ref: ref,
|
|
10531
10539
|
...forwardedProps,
|
|
10532
|
-
className: classnames(className, block$
|
|
10540
|
+
className: classnames(className, block$R()),
|
|
10533
10541
|
children: [hasHeader && /*#__PURE__*/jsxs(Text, {
|
|
10534
10542
|
as: "p",
|
|
10535
10543
|
typography: "overline",
|
|
10536
|
-
className: element$
|
|
10544
|
+
className: element$G('title'),
|
|
10537
10545
|
id: labelId,
|
|
10538
10546
|
children: [icon && Icon$1({
|
|
10539
10547
|
icon
|
|
10540
10548
|
}), label]
|
|
10541
10549
|
}), /*#__PURE__*/jsx("ul", {
|
|
10542
10550
|
...itemsWrapperProps,
|
|
10543
|
-
className: element$
|
|
10551
|
+
className: element$G('items'),
|
|
10544
10552
|
"aria-labelledby": hasHeader ? labelId : undefined,
|
|
10545
10553
|
children: children
|
|
10546
10554
|
})]
|
|
10547
10555
|
});
|
|
10548
10556
|
};
|
|
10549
|
-
ListSection$1.displayName = COMPONENT_NAME$
|
|
10550
|
-
ListSection$1.className = CLASSNAME$
|
|
10551
|
-
ListSection$1.defaultProps = DEFAULT_PROPS$
|
|
10557
|
+
ListSection$1.displayName = COMPONENT_NAME$18;
|
|
10558
|
+
ListSection$1.className = CLASSNAME$15;
|
|
10559
|
+
ListSection$1.defaultProps = DEFAULT_PROPS$Y;
|
|
10552
10560
|
|
|
10553
10561
|
/**
|
|
10554
10562
|
* Defines the props of the component.
|
|
@@ -10570,9 +10578,9 @@ const ListSection = forwardRef((props, ref) => {
|
|
|
10570
10578
|
Text
|
|
10571
10579
|
});
|
|
10572
10580
|
});
|
|
10573
|
-
ListSection.displayName = COMPONENT_NAME$
|
|
10574
|
-
ListSection.className = CLASSNAME$
|
|
10575
|
-
ListSection.defaultProps = DEFAULT_PROPS$
|
|
10581
|
+
ListSection.displayName = COMPONENT_NAME$18;
|
|
10582
|
+
ListSection.className = CLASSNAME$15;
|
|
10583
|
+
ListSection.defaultProps = DEFAULT_PROPS$Y;
|
|
10576
10584
|
|
|
10577
10585
|
/**
|
|
10578
10586
|
* Props for Combobox.Section component.
|
|
@@ -10620,21 +10628,21 @@ const ComboboxSection = forwardRef((props, ref) => {
|
|
|
10620
10628
|
ListSection
|
|
10621
10629
|
});
|
|
10622
10630
|
});
|
|
10623
|
-
ComboboxSection.displayName = COMPONENT_NAME$
|
|
10624
|
-
ComboboxSection.className = CLASSNAME$
|
|
10631
|
+
ComboboxSection.displayName = COMPONENT_NAME$19;
|
|
10632
|
+
ComboboxSection.className = CLASSNAME$16;
|
|
10625
10633
|
|
|
10626
10634
|
/**
|
|
10627
10635
|
* Component display name.
|
|
10628
10636
|
*/
|
|
10629
|
-
const COMPONENT_NAME$
|
|
10637
|
+
const COMPONENT_NAME$17 = 'ComboboxState';
|
|
10630
10638
|
|
|
10631
10639
|
/**
|
|
10632
10640
|
* Component default class name and class prefix.
|
|
10633
10641
|
*/
|
|
10634
|
-
const CLASSNAME$
|
|
10642
|
+
const CLASSNAME$14 = 'lumx-combobox-state';
|
|
10635
10643
|
const {
|
|
10636
|
-
block: block$
|
|
10637
|
-
} = bem(CLASSNAME$
|
|
10644
|
+
block: block$Q
|
|
10645
|
+
} = bem(CLASSNAME$14);
|
|
10638
10646
|
|
|
10639
10647
|
/**
|
|
10640
10648
|
* Defines the props for the core ComboboxState template.
|
|
@@ -10695,7 +10703,7 @@ const ComboboxState$1 = (props, {
|
|
|
10695
10703
|
// the popover's closeMode="hide") and revealing it doesn't trigger announcements.
|
|
10696
10704
|
const renderContent = isOpen;
|
|
10697
10705
|
return /*#__PURE__*/jsxs(GenericBlock, {
|
|
10698
|
-
className: classnames(!show && visuallyHidden(), block$
|
|
10706
|
+
className: classnames(!show && visuallyHidden(), block$Q(), padding('regular')),
|
|
10699
10707
|
orientation: "vertical",
|
|
10700
10708
|
...alignProps,
|
|
10701
10709
|
role: "status",
|
|
@@ -10807,21 +10815,21 @@ function partitionMulti(elements, predicates) {
|
|
|
10807
10815
|
/**
|
|
10808
10816
|
* Component display name.
|
|
10809
10817
|
*/
|
|
10810
|
-
const COMPONENT_NAME$
|
|
10818
|
+
const COMPONENT_NAME$16 = 'GenericBlock';
|
|
10811
10819
|
|
|
10812
10820
|
/**
|
|
10813
10821
|
* Component default class name and class prefix.
|
|
10814
10822
|
*/
|
|
10815
|
-
const CLASSNAME$
|
|
10823
|
+
const CLASSNAME$13 = 'lumx-generic-block';
|
|
10816
10824
|
const {
|
|
10817
|
-
block: block$
|
|
10818
|
-
element: element$
|
|
10819
|
-
} = bem(CLASSNAME$
|
|
10825
|
+
block: block$P,
|
|
10826
|
+
element: element$F
|
|
10827
|
+
} = bem(CLASSNAME$13);
|
|
10820
10828
|
|
|
10821
10829
|
/**
|
|
10822
10830
|
* Component default props.
|
|
10823
10831
|
*/
|
|
10824
|
-
const DEFAULT_PROPS$
|
|
10832
|
+
const DEFAULT_PROPS$X = {
|
|
10825
10833
|
gap: Size.big,
|
|
10826
10834
|
orientation: Orientation.horizontal
|
|
10827
10835
|
};
|
|
@@ -10845,33 +10853,33 @@ const GenericBlock$1 = props => {
|
|
|
10845
10853
|
children,
|
|
10846
10854
|
actions,
|
|
10847
10855
|
actionsProps,
|
|
10848
|
-
gap = DEFAULT_PROPS$
|
|
10856
|
+
gap = DEFAULT_PROPS$X.gap,
|
|
10849
10857
|
ref,
|
|
10850
10858
|
content,
|
|
10851
|
-
orientation = DEFAULT_PROPS$
|
|
10859
|
+
orientation = DEFAULT_PROPS$X.orientation,
|
|
10852
10860
|
contentProps,
|
|
10853
10861
|
FlexBox,
|
|
10854
10862
|
...forwardedProps
|
|
10855
10863
|
} = props;
|
|
10856
10864
|
return /*#__PURE__*/jsxs(FlexBox, {
|
|
10857
10865
|
ref: ref,
|
|
10858
|
-
className: classnames(className, block$
|
|
10866
|
+
className: classnames(className, block$P()),
|
|
10859
10867
|
gap: gap,
|
|
10860
10868
|
orientation: orientation,
|
|
10861
10869
|
...forwardedProps,
|
|
10862
10870
|
children: [figure && /*#__PURE__*/jsx(FlexBox, {
|
|
10863
10871
|
...figureProps,
|
|
10864
|
-
className: classnames(figureProps?.className, element$
|
|
10872
|
+
className: classnames(figureProps?.className, element$F('figure')),
|
|
10865
10873
|
children: figure
|
|
10866
10874
|
}), content && /*#__PURE__*/jsx(FlexBox, {
|
|
10867
10875
|
orientation: Orientation.vertical,
|
|
10868
10876
|
fillSpace: true,
|
|
10869
10877
|
...contentProps,
|
|
10870
|
-
className: classnames(contentProps?.className, element$
|
|
10878
|
+
className: classnames(contentProps?.className, element$F('content')),
|
|
10871
10879
|
children: content
|
|
10872
10880
|
}), actions && /*#__PURE__*/jsx(FlexBox, {
|
|
10873
10881
|
...actionsProps,
|
|
10874
|
-
className: classnames(actionsProps?.className, element$
|
|
10882
|
+
className: classnames(actionsProps?.className, element$F('actions')),
|
|
10875
10883
|
children: actions
|
|
10876
10884
|
})]
|
|
10877
10885
|
});
|
|
@@ -10958,9 +10966,9 @@ const BaseGenericBlock = forwardRef((props, ref) => {
|
|
|
10958
10966
|
}) : undefined
|
|
10959
10967
|
});
|
|
10960
10968
|
});
|
|
10961
|
-
BaseGenericBlock.displayName = COMPONENT_NAME$
|
|
10962
|
-
BaseGenericBlock.className = CLASSNAME$
|
|
10963
|
-
BaseGenericBlock.defaultProps = DEFAULT_PROPS$
|
|
10969
|
+
BaseGenericBlock.displayName = COMPONENT_NAME$16;
|
|
10970
|
+
BaseGenericBlock.className = CLASSNAME$13;
|
|
10971
|
+
BaseGenericBlock.defaultProps = DEFAULT_PROPS$X;
|
|
10964
10972
|
const GenericBlock = Object.assign(BaseGenericBlock, {
|
|
10965
10973
|
Figure,
|
|
10966
10974
|
Content,
|
|
@@ -11038,23 +11046,23 @@ const ComboboxState = props => {
|
|
|
11038
11046
|
Text
|
|
11039
11047
|
});
|
|
11040
11048
|
};
|
|
11041
|
-
ComboboxState.displayName = COMPONENT_NAME$
|
|
11042
|
-
ComboboxState.className = CLASSNAME$
|
|
11049
|
+
ComboboxState.displayName = COMPONENT_NAME$17;
|
|
11050
|
+
ComboboxState.className = CLASSNAME$14;
|
|
11043
11051
|
|
|
11044
11052
|
/**
|
|
11045
11053
|
* Component display name.
|
|
11046
11054
|
*/
|
|
11047
|
-
const COMPONENT_NAME$
|
|
11055
|
+
const COMPONENT_NAME$15 = 'ListDivider';
|
|
11048
11056
|
|
|
11049
11057
|
/**
|
|
11050
11058
|
* Component default class name and class prefix.
|
|
11051
11059
|
*/
|
|
11052
|
-
const CLASSNAME$
|
|
11060
|
+
const CLASSNAME$12 = 'lumx-list-divider';
|
|
11053
11061
|
|
|
11054
11062
|
/**
|
|
11055
11063
|
* Component default props.
|
|
11056
11064
|
*/
|
|
11057
|
-
const DEFAULT_PROPS$
|
|
11065
|
+
const DEFAULT_PROPS$W = {};
|
|
11058
11066
|
|
|
11059
11067
|
/**
|
|
11060
11068
|
* ListDivider component.
|
|
@@ -11073,12 +11081,12 @@ const ListDivider$1 = props => {
|
|
|
11073
11081
|
ref: ref,
|
|
11074
11082
|
role: "none",
|
|
11075
11083
|
...forwardedProps,
|
|
11076
|
-
className: classnames(className, CLASSNAME$
|
|
11084
|
+
className: classnames(className, CLASSNAME$12)
|
|
11077
11085
|
});
|
|
11078
11086
|
};
|
|
11079
|
-
ListDivider$1.displayName = COMPONENT_NAME$
|
|
11080
|
-
ListDivider$1.className = CLASSNAME$
|
|
11081
|
-
ListDivider$1.defaultProps = DEFAULT_PROPS$
|
|
11087
|
+
ListDivider$1.displayName = COMPONENT_NAME$15;
|
|
11088
|
+
ListDivider$1.className = CLASSNAME$12;
|
|
11089
|
+
ListDivider$1.defaultProps = DEFAULT_PROPS$W;
|
|
11082
11090
|
|
|
11083
11091
|
/**
|
|
11084
11092
|
* Defines the props of the component.
|
|
@@ -11098,9 +11106,9 @@ const ListDivider = forwardRef((props, ref) => {
|
|
|
11098
11106
|
ref
|
|
11099
11107
|
});
|
|
11100
11108
|
});
|
|
11101
|
-
ListDivider.displayName = COMPONENT_NAME$
|
|
11102
|
-
ListDivider.className = CLASSNAME$
|
|
11103
|
-
ListDivider.defaultProps = DEFAULT_PROPS$
|
|
11109
|
+
ListDivider.displayName = COMPONENT_NAME$15;
|
|
11110
|
+
ListDivider.className = CLASSNAME$12;
|
|
11111
|
+
ListDivider.defaultProps = DEFAULT_PROPS$W;
|
|
11104
11112
|
|
|
11105
11113
|
/**
|
|
11106
11114
|
* Combobox compound component namespace.
|
|
@@ -11149,21 +11157,21 @@ const CommentBlockVariant = {
|
|
|
11149
11157
|
/**
|
|
11150
11158
|
* Component display name.
|
|
11151
11159
|
*/
|
|
11152
|
-
const COMPONENT_NAME$
|
|
11160
|
+
const COMPONENT_NAME$14 = 'CommentBlock';
|
|
11153
11161
|
|
|
11154
11162
|
/**
|
|
11155
11163
|
* Component default class name and class prefix.
|
|
11156
11164
|
*/
|
|
11157
|
-
const CLASSNAME$
|
|
11165
|
+
const CLASSNAME$11 = 'lumx-comment-block';
|
|
11158
11166
|
const {
|
|
11159
|
-
block: block$
|
|
11160
|
-
element: element$
|
|
11161
|
-
} = classNames.bem(CLASSNAME$
|
|
11167
|
+
block: block$O,
|
|
11168
|
+
element: element$E
|
|
11169
|
+
} = classNames.bem(CLASSNAME$11);
|
|
11162
11170
|
|
|
11163
11171
|
/**
|
|
11164
11172
|
* Component default props.
|
|
11165
11173
|
*/
|
|
11166
|
-
const DEFAULT_PROPS$
|
|
11174
|
+
const DEFAULT_PROPS$V = {
|
|
11167
11175
|
variant: CommentBlockVariant.indented
|
|
11168
11176
|
};
|
|
11169
11177
|
|
|
@@ -11193,13 +11201,13 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
11193
11201
|
onMouseLeave,
|
|
11194
11202
|
text,
|
|
11195
11203
|
theme = defaultTheme,
|
|
11196
|
-
variant = DEFAULT_PROPS$
|
|
11204
|
+
variant = DEFAULT_PROPS$V.variant,
|
|
11197
11205
|
...forwardedProps
|
|
11198
11206
|
} = props;
|
|
11199
11207
|
const hasChildren = Children.count(children) > 0;
|
|
11200
11208
|
return /*#__PURE__*/jsxs("div", {
|
|
11201
11209
|
ref: ref,
|
|
11202
|
-
className: classNames.join(className, block$
|
|
11210
|
+
className: classNames.join(className, block$O({
|
|
11203
11211
|
'has-children': hasChildren && isOpen,
|
|
11204
11212
|
'has-indented-children': hasChildren && variant === CommentBlockVariant.indented,
|
|
11205
11213
|
'has-linear-children': hasChildren && variant === CommentBlockVariant.linear,
|
|
@@ -11208,61 +11216,61 @@ const CommentBlock = forwardRef((props, ref) => {
|
|
|
11208
11216
|
})),
|
|
11209
11217
|
...forwardedProps,
|
|
11210
11218
|
children: [/*#__PURE__*/jsxs("div", {
|
|
11211
|
-
className: element$
|
|
11219
|
+
className: element$E('wrapper'),
|
|
11212
11220
|
children: [/*#__PURE__*/jsx("div", {
|
|
11213
|
-
className: element$
|
|
11221
|
+
className: element$E('avatar'),
|
|
11214
11222
|
children: /*#__PURE__*/jsx(Avatar, {
|
|
11215
11223
|
...avatarProps,
|
|
11216
11224
|
size: Size$1.m,
|
|
11217
11225
|
onClick: onClick
|
|
11218
11226
|
})
|
|
11219
11227
|
}), /*#__PURE__*/jsxs("div", {
|
|
11220
|
-
className: element$
|
|
11228
|
+
className: element$E('container'),
|
|
11221
11229
|
children: [/*#__PURE__*/jsxs("div", {
|
|
11222
|
-
className: element$
|
|
11230
|
+
className: element$E('content'),
|
|
11223
11231
|
children: [/*#__PURE__*/jsxs("div", {
|
|
11224
|
-
className: element$
|
|
11232
|
+
className: element$E('meta'),
|
|
11225
11233
|
children: [name &&
|
|
11226
11234
|
/*#__PURE__*/
|
|
11227
11235
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
11228
11236
|
jsx("span", {
|
|
11229
|
-
className: element$
|
|
11237
|
+
className: element$E('name'),
|
|
11230
11238
|
onClick: onClick,
|
|
11231
11239
|
onMouseEnter: onMouseEnter,
|
|
11232
11240
|
onMouseLeave: onMouseLeave,
|
|
11233
11241
|
children: name
|
|
11234
11242
|
}), headerActions && /*#__PURE__*/jsx("span", {
|
|
11235
|
-
className: element$
|
|
11243
|
+
className: element$E('header-actions'),
|
|
11236
11244
|
children: headerActions
|
|
11237
11245
|
})]
|
|
11238
11246
|
}), /*#__PURE__*/jsx("div", {
|
|
11239
|
-
className: element$
|
|
11247
|
+
className: element$E('text'),
|
|
11240
11248
|
children: text
|
|
11241
11249
|
}), date && (fullDate ? /*#__PURE__*/jsx(Tooltip, {
|
|
11242
11250
|
label: fullDate,
|
|
11243
11251
|
placement: "top",
|
|
11244
11252
|
children: /*#__PURE__*/jsx("span", {
|
|
11245
|
-
className: element$
|
|
11253
|
+
className: element$E('date'),
|
|
11246
11254
|
children: date
|
|
11247
11255
|
})
|
|
11248
11256
|
}) : /*#__PURE__*/jsx("span", {
|
|
11249
|
-
className: element$
|
|
11257
|
+
className: element$E('date'),
|
|
11250
11258
|
children: date
|
|
11251
11259
|
}))]
|
|
11252
11260
|
}), hasActions && /*#__PURE__*/jsx("div", {
|
|
11253
|
-
className: element$
|
|
11261
|
+
className: element$E('actions'),
|
|
11254
11262
|
children: actions
|
|
11255
11263
|
})]
|
|
11256
11264
|
})]
|
|
11257
11265
|
}), hasChildren && isOpen && /*#__PURE__*/jsx("div", {
|
|
11258
|
-
className: element$
|
|
11266
|
+
className: element$E('children'),
|
|
11259
11267
|
children: children
|
|
11260
11268
|
})]
|
|
11261
11269
|
});
|
|
11262
11270
|
});
|
|
11263
|
-
CommentBlock.displayName = COMPONENT_NAME$
|
|
11264
|
-
CommentBlock.className = CLASSNAME$
|
|
11265
|
-
CommentBlock.defaultProps = DEFAULT_PROPS$
|
|
11271
|
+
CommentBlock.displayName = COMPONENT_NAME$14;
|
|
11272
|
+
CommentBlock.className = CLASSNAME$11;
|
|
11273
|
+
CommentBlock.defaultProps = DEFAULT_PROPS$V;
|
|
11266
11274
|
|
|
11267
11275
|
/**
|
|
11268
11276
|
* Add a number of months from a date while resetting the day to prevent month length mismatches.
|
|
@@ -11282,12 +11290,12 @@ const isDateValid = date => date instanceof Date && !Number.isNaN(date.getTime()
|
|
|
11282
11290
|
/**
|
|
11283
11291
|
* Component display name.
|
|
11284
11292
|
*/
|
|
11285
|
-
const COMPONENT_NAME$
|
|
11293
|
+
const COMPONENT_NAME$13 = 'DatePicker';
|
|
11286
11294
|
|
|
11287
11295
|
/**
|
|
11288
11296
|
* Component default class name and class prefix.
|
|
11289
11297
|
*/
|
|
11290
|
-
const CLASSNAME
|
|
11298
|
+
const CLASSNAME$10 = 'lumx-date-picker';
|
|
11291
11299
|
|
|
11292
11300
|
/** Get first day of week for locale from the browser API */
|
|
11293
11301
|
const getFromBrowser = locale => {
|
|
@@ -11509,8 +11517,8 @@ function formatDayNumber(locale, date) {
|
|
|
11509
11517
|
}
|
|
11510
11518
|
|
|
11511
11519
|
const {
|
|
11512
|
-
element: element$
|
|
11513
|
-
} = classNames.bem(CLASSNAME
|
|
11520
|
+
element: element$D
|
|
11521
|
+
} = classNames.bem(CLASSNAME$10);
|
|
11514
11522
|
|
|
11515
11523
|
/**
|
|
11516
11524
|
* Defines the props of the component.
|
|
@@ -11519,7 +11527,7 @@ const {
|
|
|
11519
11527
|
/**
|
|
11520
11528
|
* Component display name.
|
|
11521
11529
|
*/
|
|
11522
|
-
const COMPONENT_NAME$
|
|
11530
|
+
const COMPONENT_NAME$12 = 'DatePickerControlled';
|
|
11523
11531
|
|
|
11524
11532
|
/**
|
|
11525
11533
|
* DatePickerControlled component.
|
|
@@ -11604,10 +11612,10 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11604
11612
|
const yearLabel = getYearDisplayName(locale);
|
|
11605
11613
|
return /*#__PURE__*/jsxs("div", {
|
|
11606
11614
|
ref: ref,
|
|
11607
|
-
className: `${CLASSNAME
|
|
11615
|
+
className: `${CLASSNAME$10}`,
|
|
11608
11616
|
style: style,
|
|
11609
11617
|
children: [/*#__PURE__*/jsx(Toolbar, {
|
|
11610
|
-
className: element$
|
|
11618
|
+
className: element$D('toolbar'),
|
|
11611
11619
|
after: /*#__PURE__*/jsx(IconButton, {
|
|
11612
11620
|
...nextButtonProps,
|
|
11613
11621
|
emphasis: Emphasis$1.low,
|
|
@@ -11627,7 +11635,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11627
11635
|
dir: "auto",
|
|
11628
11636
|
children: monthYear
|
|
11629
11637
|
}), onMonthChange && /*#__PURE__*/jsx(FlexBox, {
|
|
11630
|
-
className: element$
|
|
11638
|
+
className: element$D('month'),
|
|
11631
11639
|
orientation: "horizontal",
|
|
11632
11640
|
hAlign: "center",
|
|
11633
11641
|
gap: "regular",
|
|
@@ -11642,7 +11650,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11642
11650
|
min: 0,
|
|
11643
11651
|
onBlur: updateYear,
|
|
11644
11652
|
onKeyPress: updateYearOnEnterPressed,
|
|
11645
|
-
className: element$
|
|
11653
|
+
className: element$D('year')
|
|
11646
11654
|
}, "year") : /*#__PURE__*/jsx(Text, {
|
|
11647
11655
|
as: "p",
|
|
11648
11656
|
children: part
|
|
@@ -11650,17 +11658,17 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11650
11658
|
})]
|
|
11651
11659
|
})
|
|
11652
11660
|
}), /*#__PURE__*/jsxs("div", {
|
|
11653
|
-
className: element$
|
|
11661
|
+
className: element$D('calendar'),
|
|
11654
11662
|
children: [/*#__PURE__*/jsx("div", {
|
|
11655
|
-
className: classNames.join(element$
|
|
11663
|
+
className: classNames.join(element$D('week-days'), element$D('days-wrapper')),
|
|
11656
11664
|
children: weekDays.map(({
|
|
11657
11665
|
letter,
|
|
11658
11666
|
number,
|
|
11659
11667
|
long
|
|
11660
11668
|
}) => /*#__PURE__*/jsxs("div", {
|
|
11661
|
-
className: element$
|
|
11669
|
+
className: element$D('day-wrapper'),
|
|
11662
11670
|
children: [/*#__PURE__*/jsx("span", {
|
|
11663
|
-
className: element$
|
|
11671
|
+
className: element$D('week-day'),
|
|
11664
11672
|
"aria-hidden": true,
|
|
11665
11673
|
children: letter.toLocaleUpperCase()
|
|
11666
11674
|
}), /*#__PURE__*/jsx("span", {
|
|
@@ -11669,7 +11677,7 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11669
11677
|
})]
|
|
11670
11678
|
}, number))
|
|
11671
11679
|
}), /*#__PURE__*/jsx("div", {
|
|
11672
|
-
className: classNames.join(element$
|
|
11680
|
+
className: classNames.join(element$D('month-days'), element$D('days-wrapper')),
|
|
11673
11681
|
children: weeks.flatMap((week, weekIndex) => {
|
|
11674
11682
|
return weekDays.map((weekDay, dayIndex) => {
|
|
11675
11683
|
const {
|
|
@@ -11680,10 +11688,10 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11680
11688
|
const isToday = !isOutOfRange && date && isSameDay(date, new Date());
|
|
11681
11689
|
const isSelected = date && value && isSameDay(value, date);
|
|
11682
11690
|
return /*#__PURE__*/jsx("div", {
|
|
11683
|
-
className: element$
|
|
11691
|
+
className: element$D('day-wrapper'),
|
|
11684
11692
|
children: date && /*#__PURE__*/jsxs(Button, {
|
|
11685
11693
|
ref: isSelected || !value && isToday ? todayOrSelectedDateRef : null,
|
|
11686
|
-
className: element$
|
|
11694
|
+
className: element$D('month-day', {
|
|
11687
11695
|
'is-today': isToday
|
|
11688
11696
|
}),
|
|
11689
11697
|
disabled: isOutOfRange,
|
|
@@ -11709,8 +11717,8 @@ const DatePickerControlled = forwardRef((props, ref) => {
|
|
|
11709
11717
|
})]
|
|
11710
11718
|
});
|
|
11711
11719
|
});
|
|
11712
|
-
DatePickerControlled.displayName = COMPONENT_NAME$
|
|
11713
|
-
DatePickerControlled.className = CLASSNAME
|
|
11720
|
+
DatePickerControlled.displayName = COMPONENT_NAME$12;
|
|
11721
|
+
DatePickerControlled.className = CLASSNAME$10;
|
|
11714
11722
|
|
|
11715
11723
|
/**
|
|
11716
11724
|
* DatePicker component.
|
|
@@ -11752,8 +11760,8 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
11752
11760
|
onMonthChange: setSelectedMonth
|
|
11753
11761
|
});
|
|
11754
11762
|
});
|
|
11755
|
-
DatePicker.displayName = COMPONENT_NAME$
|
|
11756
|
-
DatePicker.className = CLASSNAME
|
|
11763
|
+
DatePicker.displayName = COMPONENT_NAME$13;
|
|
11764
|
+
DatePicker.className = CLASSNAME$10;
|
|
11757
11765
|
|
|
11758
11766
|
const useBooleanState = defaultValue => {
|
|
11759
11767
|
const [booleanValue, setBoolean] = useState(defaultValue);
|
|
@@ -11766,7 +11774,7 @@ const useBooleanState = defaultValue => {
|
|
|
11766
11774
|
/**
|
|
11767
11775
|
* Component display name.
|
|
11768
11776
|
*/
|
|
11769
|
-
const COMPONENT_NAME$
|
|
11777
|
+
const COMPONENT_NAME$11 = 'DatePickerField';
|
|
11770
11778
|
|
|
11771
11779
|
/**
|
|
11772
11780
|
* DatePickerField component.
|
|
@@ -11855,7 +11863,7 @@ const DatePickerField = forwardRef((props, ref) => {
|
|
|
11855
11863
|
}) : null]
|
|
11856
11864
|
});
|
|
11857
11865
|
});
|
|
11858
|
-
DatePickerField.displayName = COMPONENT_NAME$
|
|
11866
|
+
DatePickerField.displayName = COMPONENT_NAME$11;
|
|
11859
11867
|
|
|
11860
11868
|
/**
|
|
11861
11869
|
* Convenient hook to create interaction observers.
|
|
@@ -12156,7 +12164,7 @@ const DIALOG_LABEL_KEY = 'dialog-label';
|
|
|
12156
12164
|
/**
|
|
12157
12165
|
* Component display name.
|
|
12158
12166
|
*/
|
|
12159
|
-
const COMPONENT_NAME
|
|
12167
|
+
const COMPONENT_NAME$10 = 'Dialog';
|
|
12160
12168
|
|
|
12161
12169
|
/**
|
|
12162
12170
|
* `DialogHeading` component display name.
|
|
@@ -12166,16 +12174,16 @@ const DIALOG_HEADING_COMPONENT_NAME = 'DialogHeading';
|
|
|
12166
12174
|
/**
|
|
12167
12175
|
* Component default class name and class prefix. Shared by the shell and the container modules.
|
|
12168
12176
|
*/
|
|
12169
|
-
const CLASSNAME
|
|
12177
|
+
const CLASSNAME$$ = 'lumx-dialog';
|
|
12170
12178
|
const {
|
|
12171
|
-
block: block$
|
|
12172
|
-
element: element$
|
|
12173
|
-
} = bem(CLASSNAME
|
|
12179
|
+
block: block$N,
|
|
12180
|
+
element: element$C
|
|
12181
|
+
} = bem(CLASSNAME$$);
|
|
12174
12182
|
|
|
12175
12183
|
/**
|
|
12176
12184
|
* Component default props.
|
|
12177
12185
|
*/
|
|
12178
|
-
const DEFAULT_PROPS$
|
|
12186
|
+
const DEFAULT_PROPS$U = {
|
|
12179
12187
|
size: Size.big
|
|
12180
12188
|
};
|
|
12181
12189
|
|
|
@@ -12192,7 +12200,7 @@ const DialogShell = props => {
|
|
|
12192
12200
|
isOpen,
|
|
12193
12201
|
isLoading,
|
|
12194
12202
|
isVisible,
|
|
12195
|
-
size = DEFAULT_PROPS$
|
|
12203
|
+
size = DEFAULT_PROPS$U.size,
|
|
12196
12204
|
zIndex,
|
|
12197
12205
|
children,
|
|
12198
12206
|
Portal,
|
|
@@ -12205,7 +12213,7 @@ const DialogShell = props => {
|
|
|
12205
12213
|
children: /*#__PURE__*/jsxs("div", {
|
|
12206
12214
|
ref: ref,
|
|
12207
12215
|
...forwardedProps,
|
|
12208
|
-
className: classnames(className, block$
|
|
12216
|
+
className: classnames(className, block$N({
|
|
12209
12217
|
'is-hidden': !isOpen,
|
|
12210
12218
|
'is-loading': isLoading,
|
|
12211
12219
|
'is-shown': isOpen || isVisible,
|
|
@@ -12215,7 +12223,7 @@ const DialogShell = props => {
|
|
|
12215
12223
|
zIndex
|
|
12216
12224
|
},
|
|
12217
12225
|
children: [/*#__PURE__*/jsx("div", {
|
|
12218
|
-
className: element$
|
|
12226
|
+
className: element$C('overlay')
|
|
12219
12227
|
}), /*#__PURE__*/jsx(HeadingLevelProvider, {
|
|
12220
12228
|
level: 2,
|
|
12221
12229
|
children: /*#__PURE__*/jsx(ThemeProvider, {
|
|
@@ -12294,7 +12302,7 @@ const DialogContent$1 = props => {
|
|
|
12294
12302
|
...restDialogProps
|
|
12295
12303
|
} = dialogProps ?? {};
|
|
12296
12304
|
return /*#__PURE__*/jsx("div", {
|
|
12297
|
-
className: element$
|
|
12305
|
+
className: element$C('container'),
|
|
12298
12306
|
role: "dialog",
|
|
12299
12307
|
"aria-modal": "true",
|
|
12300
12308
|
...restDialogProps,
|
|
@@ -12304,36 +12312,36 @@ const DialogContent$1 = props => {
|
|
|
12304
12312
|
childrenRefs: clickAwayRefs,
|
|
12305
12313
|
parentRef: rootRef,
|
|
12306
12314
|
children: /*#__PURE__*/jsxs("section", {
|
|
12307
|
-
className: element$
|
|
12315
|
+
className: element$C('wrapper'),
|
|
12308
12316
|
ref: wrapperRef,
|
|
12309
12317
|
children: [(header || headerChildContent) && /*#__PURE__*/jsxs("header", {
|
|
12310
12318
|
...headerChildProps,
|
|
12311
|
-
className: classnames(element$
|
|
12319
|
+
className: classnames(element$C('header', {
|
|
12312
12320
|
'has-divider': Boolean(forceHeaderDivider || hasTopIntersection)
|
|
12313
12321
|
}), headerChildProps?.className),
|
|
12314
12322
|
children: [header, headerChildContent]
|
|
12315
12323
|
}), /*#__PURE__*/jsxs("div", {
|
|
12316
12324
|
ref: contentRef,
|
|
12317
|
-
className: element$
|
|
12325
|
+
className: element$C('content'),
|
|
12318
12326
|
children: [/*#__PURE__*/jsx("div", {
|
|
12319
|
-
className: element$
|
|
12327
|
+
className: element$C('sentinel', {
|
|
12320
12328
|
top: true
|
|
12321
12329
|
}),
|
|
12322
12330
|
ref: setSentinelTop
|
|
12323
12331
|
}), content, /*#__PURE__*/jsx("div", {
|
|
12324
|
-
className: element$
|
|
12332
|
+
className: element$C('sentinel', {
|
|
12325
12333
|
bottom: true
|
|
12326
12334
|
}),
|
|
12327
12335
|
ref: setSentinelBottom
|
|
12328
12336
|
})]
|
|
12329
12337
|
}), (footer || footerChildContent) && /*#__PURE__*/jsxs("footer", {
|
|
12330
12338
|
...footerChildProps,
|
|
12331
|
-
className: classnames(element$
|
|
12339
|
+
className: classnames(element$C('footer', {
|
|
12332
12340
|
'has-divider': Boolean(forceFooterDivider || hasBottomIntersection)
|
|
12333
12341
|
}), footerChildProps?.className),
|
|
12334
12342
|
children: [footer, footerChildContent]
|
|
12335
12343
|
}), isLoading && /*#__PURE__*/jsx("div", {
|
|
12336
|
-
className: element$
|
|
12344
|
+
className: element$C('progress-overlay'),
|
|
12337
12345
|
children: /*#__PURE__*/jsx(ProgressCircular, {})
|
|
12338
12346
|
})]
|
|
12339
12347
|
})
|
|
@@ -12488,7 +12496,7 @@ const isFooter$1 = isComponent('footer');
|
|
|
12488
12496
|
/**
|
|
12489
12497
|
* Component default props.
|
|
12490
12498
|
*/
|
|
12491
|
-
const DEFAULT_PROPS$
|
|
12499
|
+
const DEFAULT_PROPS$T = {
|
|
12492
12500
|
closeMode: 'unmount',
|
|
12493
12501
|
size: Size$1.big,
|
|
12494
12502
|
disableBodyScroll: true
|
|
@@ -12505,7 +12513,7 @@ const DialogBody = forwardRef((props, ref) => {
|
|
|
12505
12513
|
const {
|
|
12506
12514
|
children,
|
|
12507
12515
|
className,
|
|
12508
|
-
closeMode = DEFAULT_PROPS$
|
|
12516
|
+
closeMode = DEFAULT_PROPS$T.closeMode,
|
|
12509
12517
|
header,
|
|
12510
12518
|
focusElement,
|
|
12511
12519
|
forceFooterDivider,
|
|
@@ -12517,11 +12525,11 @@ const DialogBody = forwardRef((props, ref) => {
|
|
|
12517
12525
|
parentElement,
|
|
12518
12526
|
contentRef,
|
|
12519
12527
|
preventAutoClose,
|
|
12520
|
-
size = DEFAULT_PROPS$
|
|
12528
|
+
size = DEFAULT_PROPS$T.size,
|
|
12521
12529
|
zIndex,
|
|
12522
12530
|
dialogProps,
|
|
12523
12531
|
onVisibilityChange,
|
|
12524
|
-
disableBodyScroll = DEFAULT_PROPS$
|
|
12532
|
+
disableBodyScroll = DEFAULT_PROPS$T.disableBodyScroll,
|
|
12525
12533
|
preventCloseOnClick,
|
|
12526
12534
|
preventCloseOnEscape,
|
|
12527
12535
|
...forwardedProps
|
|
@@ -12619,9 +12627,9 @@ const Dialog = forwardRef((props, ref) => {
|
|
|
12619
12627
|
ref: ref
|
|
12620
12628
|
});
|
|
12621
12629
|
});
|
|
12622
|
-
Dialog.displayName = COMPONENT_NAME
|
|
12623
|
-
Dialog.className = CLASSNAME
|
|
12624
|
-
Dialog.defaultProps = DEFAULT_PROPS$
|
|
12630
|
+
Dialog.displayName = COMPONENT_NAME$10;
|
|
12631
|
+
Dialog.className = CLASSNAME$$;
|
|
12632
|
+
Dialog.defaultProps = DEFAULT_PROPS$T;
|
|
12625
12633
|
|
|
12626
12634
|
/** The maximum authorized heading level. */
|
|
12627
12635
|
const MAX_HEADING_LEVEL = 6;
|
|
@@ -12649,17 +12657,17 @@ const defaultContext = {
|
|
|
12649
12657
|
/**
|
|
12650
12658
|
* Component display name.
|
|
12651
12659
|
*/
|
|
12652
|
-
const COMPONENT_NAME
|
|
12660
|
+
const COMPONENT_NAME$$ = 'Heading';
|
|
12653
12661
|
|
|
12654
12662
|
/**
|
|
12655
12663
|
* Component default class name and class prefix.
|
|
12656
12664
|
*/
|
|
12657
|
-
const CLASSNAME$
|
|
12665
|
+
const CLASSNAME$_ = 'lumx-heading';
|
|
12658
12666
|
|
|
12659
12667
|
/**
|
|
12660
12668
|
* Component default props.
|
|
12661
12669
|
*/
|
|
12662
|
-
const DEFAULT_PROPS$
|
|
12670
|
+
const DEFAULT_PROPS$S = {};
|
|
12663
12671
|
|
|
12664
12672
|
/**
|
|
12665
12673
|
* Get Heading component common props
|
|
@@ -12679,7 +12687,7 @@ const getHeadingProps = (props, contextHeadingElement) => {
|
|
|
12679
12687
|
return {
|
|
12680
12688
|
...otherProps,
|
|
12681
12689
|
as: computedHeadingElement,
|
|
12682
|
-
className: classnames(className, CLASSNAME$
|
|
12690
|
+
className: classnames(className, CLASSNAME$_),
|
|
12683
12691
|
typography: typography || DEFAULT_TYPOGRAPHY_BY_LEVEL[computedHeadingElement]
|
|
12684
12692
|
};
|
|
12685
12693
|
};
|
|
@@ -12717,9 +12725,9 @@ const Heading = forwardRef((props, ref) => {
|
|
|
12717
12725
|
children: children
|
|
12718
12726
|
});
|
|
12719
12727
|
});
|
|
12720
|
-
Heading.displayName = COMPONENT_NAME
|
|
12721
|
-
Heading.className = CLASSNAME$
|
|
12722
|
-
Heading.defaultProps = DEFAULT_PROPS$
|
|
12728
|
+
Heading.displayName = COMPONENT_NAME$$;
|
|
12729
|
+
Heading.className = CLASSNAME$_;
|
|
12730
|
+
Heading.defaultProps = DEFAULT_PROPS$S;
|
|
12723
12731
|
|
|
12724
12732
|
/**
|
|
12725
12733
|
* Computes the next heading level based on the optional prop level or the parent context level.
|
|
@@ -12794,15 +12802,15 @@ DialogHeading.displayName = DIALOG_HEADING_COMPONENT_NAME;
|
|
|
12794
12802
|
/**
|
|
12795
12803
|
* Component display name.
|
|
12796
12804
|
*/
|
|
12797
|
-
const COMPONENT_NAME$
|
|
12805
|
+
const COMPONENT_NAME$_ = 'Divider';
|
|
12798
12806
|
|
|
12799
12807
|
/**
|
|
12800
12808
|
* Component default class name and class prefix.
|
|
12801
12809
|
*/
|
|
12802
|
-
const CLASSNAME$
|
|
12810
|
+
const CLASSNAME$Z = 'lumx-divider';
|
|
12803
12811
|
const {
|
|
12804
|
-
block: block$
|
|
12805
|
-
} = bem(CLASSNAME$
|
|
12812
|
+
block: block$M
|
|
12813
|
+
} = bem(CLASSNAME$Z);
|
|
12806
12814
|
|
|
12807
12815
|
/**
|
|
12808
12816
|
* Divider component.
|
|
@@ -12820,7 +12828,7 @@ const Divider$1 = props => {
|
|
|
12820
12828
|
return /*#__PURE__*/jsx("hr", {
|
|
12821
12829
|
ref: ref,
|
|
12822
12830
|
...forwardedProps,
|
|
12823
|
-
className: classnames(className, block$
|
|
12831
|
+
className: classnames(className, block$M({
|
|
12824
12832
|
[`theme-${theme}`]: Boolean(theme)
|
|
12825
12833
|
}))
|
|
12826
12834
|
});
|
|
@@ -12833,7 +12841,7 @@ const Divider$1 = props => {
|
|
|
12833
12841
|
/**
|
|
12834
12842
|
* Component default props.
|
|
12835
12843
|
*/
|
|
12836
|
-
const DEFAULT_PROPS$
|
|
12844
|
+
const DEFAULT_PROPS$R = {};
|
|
12837
12845
|
|
|
12838
12846
|
/**
|
|
12839
12847
|
* Divider component.
|
|
@@ -12854,22 +12862,22 @@ const Divider = forwardRef((props, ref) => {
|
|
|
12854
12862
|
...otherProps
|
|
12855
12863
|
});
|
|
12856
12864
|
});
|
|
12857
|
-
Divider.displayName = COMPONENT_NAME$
|
|
12858
|
-
Divider.className = CLASSNAME$
|
|
12859
|
-
Divider.defaultProps = DEFAULT_PROPS$
|
|
12865
|
+
Divider.displayName = COMPONENT_NAME$_;
|
|
12866
|
+
Divider.className = CLASSNAME$Z;
|
|
12867
|
+
Divider.defaultProps = DEFAULT_PROPS$R;
|
|
12860
12868
|
|
|
12861
12869
|
/**
|
|
12862
12870
|
* Component display name.
|
|
12863
12871
|
*/
|
|
12864
|
-
const COMPONENT_NAME$
|
|
12872
|
+
const COMPONENT_NAME$Z = 'DragHandle';
|
|
12865
12873
|
|
|
12866
12874
|
/**
|
|
12867
12875
|
* Component default class name and class prefix.
|
|
12868
12876
|
*/
|
|
12869
|
-
const CLASSNAME$
|
|
12877
|
+
const CLASSNAME$Y = 'lumx-drag-handle';
|
|
12870
12878
|
const {
|
|
12871
|
-
block: block$
|
|
12872
|
-
} = bem(CLASSNAME$
|
|
12879
|
+
block: block$L
|
|
12880
|
+
} = bem(CLASSNAME$Y);
|
|
12873
12881
|
|
|
12874
12882
|
/**
|
|
12875
12883
|
* DragHandle component.
|
|
@@ -12887,7 +12895,7 @@ const DragHandle$1 = props => {
|
|
|
12887
12895
|
return /*#__PURE__*/jsx("div", {
|
|
12888
12896
|
ref: ref,
|
|
12889
12897
|
...forwardedProps,
|
|
12890
|
-
className: classnames(className, block$
|
|
12898
|
+
className: classnames(className, block$L({
|
|
12891
12899
|
[`theme-${theme}`]: Boolean(theme)
|
|
12892
12900
|
})),
|
|
12893
12901
|
children: Icon$1({
|
|
@@ -12905,7 +12913,7 @@ const DragHandle$1 = props => {
|
|
|
12905
12913
|
/**
|
|
12906
12914
|
* Component default props.
|
|
12907
12915
|
*/
|
|
12908
|
-
const DEFAULT_PROPS$
|
|
12916
|
+
const DEFAULT_PROPS$Q = {};
|
|
12909
12917
|
|
|
12910
12918
|
/**
|
|
12911
12919
|
* DragHandle component.
|
|
@@ -12926,9 +12934,9 @@ const DragHandle = forwardRef((props, ref) => {
|
|
|
12926
12934
|
...otherProps
|
|
12927
12935
|
});
|
|
12928
12936
|
});
|
|
12929
|
-
DragHandle.displayName = COMPONENT_NAME$
|
|
12930
|
-
DragHandle.className = CLASSNAME$
|
|
12931
|
-
DragHandle.defaultProps = DEFAULT_PROPS$
|
|
12937
|
+
DragHandle.displayName = COMPONENT_NAME$Z;
|
|
12938
|
+
DragHandle.className = CLASSNAME$Y;
|
|
12939
|
+
DragHandle.defaultProps = DEFAULT_PROPS$Q;
|
|
12932
12940
|
|
|
12933
12941
|
const INITIAL_INDEX = -1;
|
|
12934
12942
|
|
|
@@ -13122,9 +13130,9 @@ const InternalList = forwardRef((props, ref) => {
|
|
|
13122
13130
|
itemPadding: adjustedItemPadding
|
|
13123
13131
|
});
|
|
13124
13132
|
});
|
|
13125
|
-
InternalList.displayName = COMPONENT_NAME$
|
|
13126
|
-
InternalList.className = CLASSNAME$
|
|
13127
|
-
InternalList.defaultProps = DEFAULT_PROPS
|
|
13133
|
+
InternalList.displayName = COMPONENT_NAME$1l;
|
|
13134
|
+
InternalList.className = CLASSNAME$1i;
|
|
13135
|
+
InternalList.defaultProps = DEFAULT_PROPS$10;
|
|
13128
13136
|
const List = Object.assign(InternalList, {
|
|
13129
13137
|
useKeyboardListNavigation
|
|
13130
13138
|
});
|
|
@@ -13173,21 +13181,21 @@ const useInfiniteScroll = (ref, callback, callbackOnMount = false, scrollTrigger
|
|
|
13173
13181
|
/**
|
|
13174
13182
|
* Component display name.
|
|
13175
13183
|
*/
|
|
13176
|
-
const COMPONENT_NAME$
|
|
13184
|
+
const COMPONENT_NAME$Y = 'Dropdown';
|
|
13177
13185
|
|
|
13178
13186
|
/**
|
|
13179
13187
|
* Component default class name and class prefix.
|
|
13180
13188
|
*/
|
|
13181
|
-
const CLASSNAME$
|
|
13189
|
+
const CLASSNAME$X = 'lumx-dropdown';
|
|
13182
13190
|
const {
|
|
13183
|
-
block: block$
|
|
13184
|
-
element: element$
|
|
13185
|
-
} = classNames.bem(CLASSNAME$
|
|
13191
|
+
block: block$K,
|
|
13192
|
+
element: element$B
|
|
13193
|
+
} = classNames.bem(CLASSNAME$X);
|
|
13186
13194
|
|
|
13187
13195
|
/**
|
|
13188
13196
|
* Component default props.
|
|
13189
13197
|
*/
|
|
13190
|
-
const DEFAULT_PROPS$
|
|
13198
|
+
const DEFAULT_PROPS$P = {
|
|
13191
13199
|
closeOnClick: true,
|
|
13192
13200
|
closeOnClickAway: true,
|
|
13193
13201
|
closeOnEscape: true,
|
|
@@ -13211,18 +13219,18 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
13211
13219
|
anchorRef,
|
|
13212
13220
|
children,
|
|
13213
13221
|
className,
|
|
13214
|
-
closeOnClick = DEFAULT_PROPS$
|
|
13215
|
-
closeOnClickAway = DEFAULT_PROPS$
|
|
13216
|
-
closeOnEscape = DEFAULT_PROPS$
|
|
13217
|
-
fitToAnchorWidth = DEFAULT_PROPS$
|
|
13218
|
-
fitWithinViewportHeight = DEFAULT_PROPS$
|
|
13222
|
+
closeOnClick = DEFAULT_PROPS$P.closeOnClick,
|
|
13223
|
+
closeOnClickAway = DEFAULT_PROPS$P.closeOnClickAway,
|
|
13224
|
+
closeOnEscape = DEFAULT_PROPS$P.closeOnEscape,
|
|
13225
|
+
fitToAnchorWidth = DEFAULT_PROPS$P.fitToAnchorWidth,
|
|
13226
|
+
fitWithinViewportHeight = DEFAULT_PROPS$P.fitWithinViewportHeight,
|
|
13219
13227
|
isOpen,
|
|
13220
13228
|
offset,
|
|
13221
|
-
focusAnchorOnClose = DEFAULT_PROPS$
|
|
13229
|
+
focusAnchorOnClose = DEFAULT_PROPS$P.focusAnchorOnClose,
|
|
13222
13230
|
onClose,
|
|
13223
13231
|
onInfiniteScroll,
|
|
13224
|
-
placement = DEFAULT_PROPS$
|
|
13225
|
-
shouldFocusOnOpen = DEFAULT_PROPS$
|
|
13232
|
+
placement = DEFAULT_PROPS$P.placement,
|
|
13233
|
+
shouldFocusOnOpen = DEFAULT_PROPS$P.shouldFocusOnOpen,
|
|
13226
13234
|
zIndex,
|
|
13227
13235
|
...forwardedProps
|
|
13228
13236
|
} = props;
|
|
@@ -13247,7 +13255,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
13247
13255
|
...forwardedProps,
|
|
13248
13256
|
focusAnchorOnClose: focusAnchorOnClose,
|
|
13249
13257
|
anchorRef: anchorRef,
|
|
13250
|
-
className: classNames.join(className, block$
|
|
13258
|
+
className: classNames.join(className, block$K()),
|
|
13251
13259
|
elevation: 0,
|
|
13252
13260
|
closeOnClickAway: closeOnClickAway,
|
|
13253
13261
|
closeOnEscape: closeOnEscape,
|
|
@@ -13260,34 +13268,34 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
13260
13268
|
placement: placement,
|
|
13261
13269
|
zIndex: zIndex,
|
|
13262
13270
|
children: /*#__PURE__*/jsx("div", {
|
|
13263
|
-
className: element$
|
|
13271
|
+
className: element$B('menu'),
|
|
13264
13272
|
ref: innerRef,
|
|
13265
13273
|
children: popperElement
|
|
13266
13274
|
})
|
|
13267
13275
|
}) : null;
|
|
13268
13276
|
});
|
|
13269
|
-
Dropdown.displayName = COMPONENT_NAME$
|
|
13270
|
-
Dropdown.className = CLASSNAME$
|
|
13271
|
-
Dropdown.defaultProps = DEFAULT_PROPS$
|
|
13277
|
+
Dropdown.displayName = COMPONENT_NAME$Y;
|
|
13278
|
+
Dropdown.className = CLASSNAME$X;
|
|
13279
|
+
Dropdown.defaultProps = DEFAULT_PROPS$P;
|
|
13272
13280
|
|
|
13273
13281
|
/**
|
|
13274
13282
|
* Component display name.
|
|
13275
13283
|
*/
|
|
13276
|
-
const COMPONENT_NAME$
|
|
13284
|
+
const COMPONENT_NAME$X = 'ExpansionPanel';
|
|
13277
13285
|
|
|
13278
13286
|
/**
|
|
13279
13287
|
* Component default class name and class prefix.
|
|
13280
13288
|
*/
|
|
13281
|
-
const CLASSNAME$
|
|
13289
|
+
const CLASSNAME$W = 'lumx-expansion-panel';
|
|
13282
13290
|
const {
|
|
13283
|
-
block: block$
|
|
13284
|
-
element: element$
|
|
13285
|
-
} = bem(CLASSNAME$
|
|
13291
|
+
block: block$J,
|
|
13292
|
+
element: element$A
|
|
13293
|
+
} = bem(CLASSNAME$W);
|
|
13286
13294
|
|
|
13287
13295
|
/**
|
|
13288
13296
|
* Component default props.
|
|
13289
13297
|
*/
|
|
13290
|
-
const DEFAULT_PROPS$
|
|
13298
|
+
const DEFAULT_PROPS$O = {
|
|
13291
13299
|
closeMode: 'unmount'
|
|
13292
13300
|
};
|
|
13293
13301
|
|
|
@@ -13336,7 +13344,7 @@ const ExpansionPanel$1 = props => {
|
|
|
13336
13344
|
}
|
|
13337
13345
|
};
|
|
13338
13346
|
const color = theme === Theme.dark ? ColorPalette.light : ColorPalette.dark;
|
|
13339
|
-
const rootClassName = classnames(className, block$
|
|
13347
|
+
const rootClassName = classnames(className, block$J({
|
|
13340
13348
|
'has-background': hasBackground,
|
|
13341
13349
|
'has-header': Boolean(!isEmpty(headerProps.children)),
|
|
13342
13350
|
'has-header-divider': hasHeaderDivider,
|
|
@@ -13350,17 +13358,17 @@ const ExpansionPanel$1 = props => {
|
|
|
13350
13358
|
...forwardedProps,
|
|
13351
13359
|
className: rootClassName,
|
|
13352
13360
|
children: [/*#__PURE__*/jsxs("header", {
|
|
13353
|
-
className: element$
|
|
13361
|
+
className: element$A('header'),
|
|
13354
13362
|
onClick: toggleOpen,
|
|
13355
13363
|
children: [dragHandle && /*#__PURE__*/jsx("div", {
|
|
13356
|
-
className: element$
|
|
13364
|
+
className: element$A('header-drag'),
|
|
13357
13365
|
children: dragHandle
|
|
13358
13366
|
}), /*#__PURE__*/jsx("div", {
|
|
13359
13367
|
...headerProps,
|
|
13360
|
-
className: element$
|
|
13368
|
+
className: element$A('header-content'),
|
|
13361
13369
|
children: headerContent
|
|
13362
13370
|
}), /*#__PURE__*/jsx("div", {
|
|
13363
|
-
className: element$
|
|
13371
|
+
className: element$A('header-toggle'),
|
|
13364
13372
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
13365
13373
|
...toggleButtonProps,
|
|
13366
13374
|
color: color,
|
|
@@ -13370,15 +13378,15 @@ const ExpansionPanel$1 = props => {
|
|
|
13370
13378
|
})
|
|
13371
13379
|
})]
|
|
13372
13380
|
}), /*#__PURE__*/jsx("div", {
|
|
13373
|
-
className: element$
|
|
13381
|
+
className: element$A('wrapper'),
|
|
13374
13382
|
ref: wrapperRef,
|
|
13375
13383
|
children: (isOpen || isChildrenVisible) && /*#__PURE__*/jsxs("div", {
|
|
13376
|
-
className: element$
|
|
13384
|
+
className: element$A('container'),
|
|
13377
13385
|
children: [/*#__PURE__*/jsx("div", {
|
|
13378
|
-
className: element$
|
|
13386
|
+
className: element$A('content'),
|
|
13379
13387
|
children: content
|
|
13380
13388
|
}), footer && /*#__PURE__*/jsx("div", {
|
|
13381
|
-
className: element$
|
|
13389
|
+
className: element$A('footer'),
|
|
13382
13390
|
children: footer
|
|
13383
13391
|
})]
|
|
13384
13392
|
})
|
|
@@ -13400,7 +13408,7 @@ const isFooter = isComponent('footer');
|
|
|
13400
13408
|
const ExpansionPanel = forwardRef((props, ref) => {
|
|
13401
13409
|
const defaultTheme = useTheme() || Theme$1.light;
|
|
13402
13410
|
const {
|
|
13403
|
-
closeMode = DEFAULT_PROPS$
|
|
13411
|
+
closeMode = DEFAULT_PROPS$O.closeMode,
|
|
13404
13412
|
children: anyChildren,
|
|
13405
13413
|
isOpen,
|
|
13406
13414
|
label,
|
|
@@ -13418,7 +13426,7 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
13418
13426
|
// Either take the header in children or create one with the label.
|
|
13419
13427
|
const headerProps = /*#__PURE__*/React__default.isValidElement(header) ? header.props : {};
|
|
13420
13428
|
const headerContent = !isEmpty(headerProps.children) ? headerProps.children : /*#__PURE__*/jsx("span", {
|
|
13421
|
-
className: element$
|
|
13429
|
+
className: element$A('label'),
|
|
13422
13430
|
children: label
|
|
13423
13431
|
});
|
|
13424
13432
|
const wrapperRef = useRef(null);
|
|
@@ -13471,17 +13479,17 @@ const ExpansionPanel = forwardRef((props, ref) => {
|
|
|
13471
13479
|
...forwardedProps
|
|
13472
13480
|
});
|
|
13473
13481
|
});
|
|
13474
|
-
ExpansionPanel.displayName = COMPONENT_NAME$
|
|
13475
|
-
ExpansionPanel.className = CLASSNAME$
|
|
13476
|
-
ExpansionPanel.defaultProps = DEFAULT_PROPS$
|
|
13482
|
+
ExpansionPanel.displayName = COMPONENT_NAME$X;
|
|
13483
|
+
ExpansionPanel.className = CLASSNAME$W;
|
|
13484
|
+
ExpansionPanel.defaultProps = DEFAULT_PROPS$O;
|
|
13477
13485
|
|
|
13478
|
-
const COMPONENT_NAME$
|
|
13479
|
-
const CLASSNAME$
|
|
13480
|
-
const DEFAULT_PROPS$
|
|
13486
|
+
const COMPONENT_NAME$W = 'Flag';
|
|
13487
|
+
const CLASSNAME$V = 'lumx-flag';
|
|
13488
|
+
const DEFAULT_PROPS$N = {};
|
|
13481
13489
|
const {
|
|
13482
|
-
block: block$
|
|
13483
|
-
element: element$
|
|
13484
|
-
} = bem(CLASSNAME$
|
|
13490
|
+
block: block$I,
|
|
13491
|
+
element: element$z
|
|
13492
|
+
} = bem(CLASSNAME$V);
|
|
13485
13493
|
|
|
13486
13494
|
/**
|
|
13487
13495
|
* Flag component.
|
|
@@ -13504,19 +13512,19 @@ const Flag$1 = props => {
|
|
|
13504
13512
|
const isTruncated = !!truncate;
|
|
13505
13513
|
return /*#__PURE__*/jsxs("div", {
|
|
13506
13514
|
...forwardedProps,
|
|
13507
|
-
className: classnames(className, block$
|
|
13515
|
+
className: classnames(className, block$I({
|
|
13508
13516
|
[`color-${flagColor}`]: Boolean(flagColor),
|
|
13509
13517
|
'is-truncated': isTruncated
|
|
13510
13518
|
})),
|
|
13511
13519
|
children: [icon && Icon$1({
|
|
13512
13520
|
icon,
|
|
13513
13521
|
size: Size.xxs,
|
|
13514
|
-
className: element$
|
|
13522
|
+
className: element$z('icon')
|
|
13515
13523
|
}), /*#__PURE__*/jsx(Text, {
|
|
13516
13524
|
as: "span",
|
|
13517
13525
|
truncate: !!truncate,
|
|
13518
13526
|
typography: "overline",
|
|
13519
|
-
className: element$
|
|
13527
|
+
className: element$z('label'),
|
|
13520
13528
|
children: children
|
|
13521
13529
|
})]
|
|
13522
13530
|
});
|
|
@@ -13539,27 +13547,27 @@ const Flag = forwardRef((props, ref) => {
|
|
|
13539
13547
|
Text
|
|
13540
13548
|
});
|
|
13541
13549
|
});
|
|
13542
|
-
Flag.displayName = COMPONENT_NAME$
|
|
13543
|
-
Flag.className = CLASSNAME$
|
|
13544
|
-
Flag.defaultProps = DEFAULT_PROPS$
|
|
13550
|
+
Flag.displayName = COMPONENT_NAME$W;
|
|
13551
|
+
Flag.className = CLASSNAME$V;
|
|
13552
|
+
Flag.defaultProps = DEFAULT_PROPS$N;
|
|
13545
13553
|
|
|
13546
13554
|
/**
|
|
13547
13555
|
* Component display name.
|
|
13548
13556
|
*/
|
|
13549
|
-
const COMPONENT_NAME$
|
|
13557
|
+
const COMPONENT_NAME$V = 'Grid';
|
|
13550
13558
|
|
|
13551
13559
|
/**
|
|
13552
13560
|
* Component default class name and class prefix.
|
|
13553
13561
|
*/
|
|
13554
|
-
const CLASSNAME$
|
|
13562
|
+
const CLASSNAME$U = 'lumx-grid';
|
|
13555
13563
|
const {
|
|
13556
|
-
block: block$
|
|
13557
|
-
} = classNames.bem(CLASSNAME$
|
|
13564
|
+
block: block$H
|
|
13565
|
+
} = classNames.bem(CLASSNAME$U);
|
|
13558
13566
|
|
|
13559
13567
|
/**
|
|
13560
13568
|
* Component default props.
|
|
13561
13569
|
*/
|
|
13562
|
-
const DEFAULT_PROPS$
|
|
13570
|
+
const DEFAULT_PROPS$M = {
|
|
13563
13571
|
orientation: Orientation$1.horizontal,
|
|
13564
13572
|
wrap: 'nowrap'
|
|
13565
13573
|
};
|
|
@@ -13577,15 +13585,15 @@ const Grid = forwardRef((props, ref) => {
|
|
|
13577
13585
|
className,
|
|
13578
13586
|
gutter,
|
|
13579
13587
|
hAlign,
|
|
13580
|
-
orientation = DEFAULT_PROPS$
|
|
13588
|
+
orientation = DEFAULT_PROPS$M.orientation,
|
|
13581
13589
|
vAlign,
|
|
13582
|
-
wrap = DEFAULT_PROPS$
|
|
13590
|
+
wrap = DEFAULT_PROPS$M.wrap,
|
|
13583
13591
|
...forwardedProps
|
|
13584
13592
|
} = props;
|
|
13585
13593
|
return /*#__PURE__*/jsx("div", {
|
|
13586
13594
|
ref: ref,
|
|
13587
13595
|
...forwardedProps,
|
|
13588
|
-
className: classNames.join(className, classNames.bem(`${CLASSNAME$
|
|
13596
|
+
className: classNames.join(className, classNames.bem(`${CLASSNAME$U}-container`).block(), block$H({
|
|
13589
13597
|
[`h-align-${hAlign}`]: Boolean(hAlign),
|
|
13590
13598
|
[`v-align-${vAlign}`]: Boolean(vAlign),
|
|
13591
13599
|
[`orientation-${orientation}`]: Boolean(orientation),
|
|
@@ -13595,22 +13603,22 @@ const Grid = forwardRef((props, ref) => {
|
|
|
13595
13603
|
children: children
|
|
13596
13604
|
});
|
|
13597
13605
|
});
|
|
13598
|
-
Grid.displayName = COMPONENT_NAME$
|
|
13599
|
-
Grid.className = CLASSNAME$
|
|
13600
|
-
Grid.defaultProps = DEFAULT_PROPS$
|
|
13606
|
+
Grid.displayName = COMPONENT_NAME$V;
|
|
13607
|
+
Grid.className = CLASSNAME$U;
|
|
13608
|
+
Grid.defaultProps = DEFAULT_PROPS$M;
|
|
13601
13609
|
|
|
13602
13610
|
/**
|
|
13603
13611
|
* Component display name.
|
|
13604
13612
|
*/
|
|
13605
|
-
const COMPONENT_NAME$
|
|
13613
|
+
const COMPONENT_NAME$U = 'GridItem';
|
|
13606
13614
|
|
|
13607
13615
|
/**
|
|
13608
13616
|
* Component default class name and class prefix.
|
|
13609
13617
|
*/
|
|
13610
|
-
const CLASSNAME$
|
|
13618
|
+
const CLASSNAME$T = 'lumx-grid-item';
|
|
13611
13619
|
const {
|
|
13612
|
-
block: block$
|
|
13613
|
-
} = classNames.bem(CLASSNAME$
|
|
13620
|
+
block: block$G
|
|
13621
|
+
} = classNames.bem(CLASSNAME$T);
|
|
13614
13622
|
|
|
13615
13623
|
/**
|
|
13616
13624
|
* GridItem component.
|
|
@@ -13631,7 +13639,7 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
13631
13639
|
return /*#__PURE__*/jsx("div", {
|
|
13632
13640
|
ref: ref,
|
|
13633
13641
|
...forwardedProps,
|
|
13634
|
-
className: classNames.join(className, block$
|
|
13642
|
+
className: classNames.join(className, block$G({
|
|
13635
13643
|
[`width-${width}`]: Boolean(width),
|
|
13636
13644
|
[`order-${order}`]: Boolean(order),
|
|
13637
13645
|
[`align-${align}`]: Boolean(align)
|
|
@@ -13639,23 +13647,23 @@ const GridItem = forwardRef((props, ref) => {
|
|
|
13639
13647
|
children: children
|
|
13640
13648
|
});
|
|
13641
13649
|
});
|
|
13642
|
-
GridItem.displayName = COMPONENT_NAME$
|
|
13643
|
-
GridItem.className = CLASSNAME$
|
|
13650
|
+
GridItem.displayName = COMPONENT_NAME$U;
|
|
13651
|
+
GridItem.className = CLASSNAME$T;
|
|
13644
13652
|
|
|
13645
13653
|
/**
|
|
13646
13654
|
* Component display name.
|
|
13647
13655
|
*/
|
|
13648
|
-
const COMPONENT_NAME$
|
|
13656
|
+
const COMPONENT_NAME$T = 'GridColumn';
|
|
13649
13657
|
|
|
13650
13658
|
/**
|
|
13651
13659
|
* Component default class name and class prefix.
|
|
13652
13660
|
*/
|
|
13653
|
-
const CLASSNAME$
|
|
13661
|
+
const CLASSNAME$S = 'lumx-grid-column';
|
|
13654
13662
|
|
|
13655
13663
|
/**
|
|
13656
13664
|
* Component default props.
|
|
13657
13665
|
*/
|
|
13658
|
-
const DEFAULT_PROPS$
|
|
13666
|
+
const DEFAULT_PROPS$L = {};
|
|
13659
13667
|
|
|
13660
13668
|
/**
|
|
13661
13669
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -13680,7 +13688,7 @@ const GridColumn$1 = props => {
|
|
|
13680
13688
|
return /*#__PURE__*/jsx(Component, {
|
|
13681
13689
|
...forwardedProps,
|
|
13682
13690
|
ref: ref,
|
|
13683
|
-
className: classnames(className, CLASSNAME$
|
|
13691
|
+
className: classnames(className, CLASSNAME$S),
|
|
13684
13692
|
style: {
|
|
13685
13693
|
...style,
|
|
13686
13694
|
['--lumx-grid-column-item-min-width']: isInteger(itemMinWidth) && `${itemMinWidth}px`,
|
|
@@ -13690,9 +13698,9 @@ const GridColumn$1 = props => {
|
|
|
13690
13698
|
children: children
|
|
13691
13699
|
});
|
|
13692
13700
|
};
|
|
13693
|
-
GridColumn$1.displayName = COMPONENT_NAME$
|
|
13694
|
-
GridColumn$1.className = CLASSNAME$
|
|
13695
|
-
GridColumn$1.defaultProps = DEFAULT_PROPS$
|
|
13701
|
+
GridColumn$1.displayName = COMPONENT_NAME$T;
|
|
13702
|
+
GridColumn$1.className = CLASSNAME$S;
|
|
13703
|
+
GridColumn$1.defaultProps = DEFAULT_PROPS$L;
|
|
13696
13704
|
|
|
13697
13705
|
/**
|
|
13698
13706
|
* Defines the props of the component.
|
|
@@ -13703,7 +13711,7 @@ GridColumn$1.defaultProps = DEFAULT_PROPS$K;
|
|
|
13703
13711
|
/**
|
|
13704
13712
|
* Component default props.
|
|
13705
13713
|
*/
|
|
13706
|
-
const DEFAULT_PROPS$
|
|
13714
|
+
const DEFAULT_PROPS$K = {};
|
|
13707
13715
|
|
|
13708
13716
|
/**
|
|
13709
13717
|
* The GridColumn is a layout component that can display children in a grid
|
|
@@ -13720,9 +13728,9 @@ const GridColumn = forwardRef((props, ref) => {
|
|
|
13720
13728
|
...props
|
|
13721
13729
|
});
|
|
13722
13730
|
});
|
|
13723
|
-
GridColumn.displayName = COMPONENT_NAME$
|
|
13724
|
-
GridColumn.className = CLASSNAME$
|
|
13725
|
-
GridColumn.defaultProps = DEFAULT_PROPS$
|
|
13731
|
+
GridColumn.displayName = COMPONENT_NAME$T;
|
|
13732
|
+
GridColumn.className = CLASSNAME$S;
|
|
13733
|
+
GridColumn.defaultProps = DEFAULT_PROPS$K;
|
|
13726
13734
|
|
|
13727
13735
|
/**
|
|
13728
13736
|
* Image block variants.
|
|
@@ -13743,21 +13751,21 @@ const ImageBlockCaptionPosition = {
|
|
|
13743
13751
|
/**
|
|
13744
13752
|
* Component display name.
|
|
13745
13753
|
*/
|
|
13746
|
-
const COMPONENT_NAME$
|
|
13754
|
+
const COMPONENT_NAME$S = 'ImageBlock';
|
|
13747
13755
|
|
|
13748
13756
|
/**
|
|
13749
13757
|
* Component default class name and class prefix.
|
|
13750
13758
|
*/
|
|
13751
|
-
const CLASSNAME$
|
|
13759
|
+
const CLASSNAME$R = 'lumx-image-block';
|
|
13752
13760
|
const {
|
|
13753
|
-
block: block$
|
|
13754
|
-
element: element$
|
|
13755
|
-
} = bem(CLASSNAME$
|
|
13761
|
+
block: block$F,
|
|
13762
|
+
element: element$y
|
|
13763
|
+
} = bem(CLASSNAME$R);
|
|
13756
13764
|
|
|
13757
13765
|
/**
|
|
13758
13766
|
* Component default props.
|
|
13759
13767
|
*/
|
|
13760
|
-
const DEFAULT_PROPS$
|
|
13768
|
+
const DEFAULT_PROPS$J = {
|
|
13761
13769
|
captionPosition: ImageBlockCaptionPosition.below,
|
|
13762
13770
|
align: Alignment.left
|
|
13763
13771
|
};
|
|
@@ -13772,9 +13780,9 @@ const DEFAULT_PROPS$I = {
|
|
|
13772
13780
|
const ImageBlock$1 = props => {
|
|
13773
13781
|
const {
|
|
13774
13782
|
actions,
|
|
13775
|
-
align = DEFAULT_PROPS$
|
|
13783
|
+
align = DEFAULT_PROPS$J.align,
|
|
13776
13784
|
alt,
|
|
13777
|
-
captionPosition = DEFAULT_PROPS$
|
|
13785
|
+
captionPosition = DEFAULT_PROPS$J.captionPosition,
|
|
13778
13786
|
captionStyle,
|
|
13779
13787
|
className,
|
|
13780
13788
|
description,
|
|
@@ -13795,7 +13803,7 @@ const ImageBlock$1 = props => {
|
|
|
13795
13803
|
return /*#__PURE__*/jsxs("figure", {
|
|
13796
13804
|
ref: ref,
|
|
13797
13805
|
...forwardedProps,
|
|
13798
|
-
className: classnames(className, block$
|
|
13806
|
+
className: classnames(className, block$F({
|
|
13799
13807
|
[`caption-position-${captionPosition}`]: Boolean(captionPosition),
|
|
13800
13808
|
[`align-${align}`]: Boolean(align),
|
|
13801
13809
|
[`size-${size}`]: Boolean(size),
|
|
@@ -13804,7 +13812,7 @@ const ImageBlock$1 = props => {
|
|
|
13804
13812
|
})),
|
|
13805
13813
|
children: [/*#__PURE__*/jsx(Thumbnail, {
|
|
13806
13814
|
...thumbnailProps,
|
|
13807
|
-
className: classnames(element$
|
|
13815
|
+
className: classnames(element$y('image'), thumbnailProps?.className),
|
|
13808
13816
|
fillHeight: fillHeight,
|
|
13809
13817
|
align: align,
|
|
13810
13818
|
image: image,
|
|
@@ -13813,7 +13821,7 @@ const ImageBlock$1 = props => {
|
|
|
13813
13821
|
alt: alt || title
|
|
13814
13822
|
}), /*#__PURE__*/jsx(ImageCaption, {
|
|
13815
13823
|
as: "figcaption",
|
|
13816
|
-
baseClassName: CLASSNAME$
|
|
13824
|
+
baseClassName: CLASSNAME$R,
|
|
13817
13825
|
theme: theme,
|
|
13818
13826
|
title: title,
|
|
13819
13827
|
titleProps: titleProps,
|
|
@@ -13824,7 +13832,7 @@ const ImageBlock$1 = props => {
|
|
|
13824
13832
|
align: align,
|
|
13825
13833
|
truncate: captionPosition === 'over'
|
|
13826
13834
|
}), actions && /*#__PURE__*/jsx("div", {
|
|
13827
|
-
className: element$
|
|
13835
|
+
className: element$y('actions'),
|
|
13828
13836
|
children: actions
|
|
13829
13837
|
})]
|
|
13830
13838
|
});
|
|
@@ -13944,19 +13952,19 @@ const ImageBlock = forwardRef((props, ref) => {
|
|
|
13944
13952
|
ImageCaption
|
|
13945
13953
|
});
|
|
13946
13954
|
});
|
|
13947
|
-
ImageBlock.displayName = COMPONENT_NAME$
|
|
13948
|
-
ImageBlock.className = CLASSNAME$
|
|
13949
|
-
ImageBlock.defaultProps = DEFAULT_PROPS$
|
|
13955
|
+
ImageBlock.displayName = COMPONENT_NAME$S;
|
|
13956
|
+
ImageBlock.className = CLASSNAME$R;
|
|
13957
|
+
ImageBlock.defaultProps = DEFAULT_PROPS$J;
|
|
13950
13958
|
|
|
13951
13959
|
/**
|
|
13952
13960
|
* Component display name.
|
|
13953
13961
|
*/
|
|
13954
|
-
const COMPONENT_NAME$
|
|
13962
|
+
const COMPONENT_NAME$R = 'ImageLightbox';
|
|
13955
13963
|
|
|
13956
13964
|
/**
|
|
13957
13965
|
* Component default class name and class prefix.
|
|
13958
13966
|
*/
|
|
13959
|
-
const CLASSNAME$
|
|
13967
|
+
const CLASSNAME$Q = 'lumx-image-lightbox';
|
|
13960
13968
|
|
|
13961
13969
|
/**
|
|
13962
13970
|
* Observe element size (only works if it's size depends on the window size).
|
|
@@ -14201,8 +14209,8 @@ function useAnimateScroll(scrollAreaRef) {
|
|
|
14201
14209
|
}
|
|
14202
14210
|
|
|
14203
14211
|
const {
|
|
14204
|
-
element: element$
|
|
14205
|
-
} = classNames.bem(CLASSNAME$
|
|
14212
|
+
element: element$x
|
|
14213
|
+
} = classNames.bem(CLASSNAME$Q);
|
|
14206
14214
|
/** Internal image slide component for ImageLightbox */
|
|
14207
14215
|
const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
14208
14216
|
const {
|
|
@@ -14269,12 +14277,12 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
14269
14277
|
// Make it accessible to keyboard nav when the zone is scrollable
|
|
14270
14278
|
,
|
|
14271
14279
|
tabIndex: isScrollable ? 0 : undefined,
|
|
14272
|
-
className: element$
|
|
14280
|
+
className: element$x('image-slide'),
|
|
14273
14281
|
children: /*#__PURE__*/jsx(Thumbnail, {
|
|
14274
14282
|
imgRef: useMergeRefs(imgRef, propImgRef),
|
|
14275
14283
|
image: image,
|
|
14276
14284
|
alt: alt,
|
|
14277
|
-
className: element$
|
|
14285
|
+
className: element$x('thumbnail'),
|
|
14278
14286
|
imgProps: {
|
|
14279
14287
|
...imgProps,
|
|
14280
14288
|
style: {
|
|
@@ -14293,8 +14301,8 @@ const ImageSlide = /*#__PURE__*/React__default.memo(props => {
|
|
|
14293
14301
|
}, isEqual);
|
|
14294
14302
|
|
|
14295
14303
|
const {
|
|
14296
|
-
element: element$
|
|
14297
|
-
} = classNames.bem(CLASSNAME$
|
|
14304
|
+
element: element$w
|
|
14305
|
+
} = classNames.bem(CLASSNAME$Q);
|
|
14298
14306
|
/** Internal image slideshow component for ImageLightbox */
|
|
14299
14307
|
const ImageSlideshow = ({
|
|
14300
14308
|
activeImageIndex,
|
|
@@ -14415,12 +14423,12 @@ const ImageSlideshow = ({
|
|
|
14415
14423
|
})
|
|
14416
14424
|
}), (metadata || slideShowControls || zoomControls) && /*#__PURE__*/jsxs(FlexBox, {
|
|
14417
14425
|
ref: footerRef,
|
|
14418
|
-
className: element$
|
|
14426
|
+
className: element$w('footer'),
|
|
14419
14427
|
orientation: "vertical",
|
|
14420
14428
|
vAlign: "center",
|
|
14421
14429
|
gap: "big",
|
|
14422
14430
|
children: [metadata, /*#__PURE__*/jsxs(FlexBox, {
|
|
14423
|
-
className: element$
|
|
14431
|
+
className: element$w('footer-actions'),
|
|
14424
14432
|
orientation: "horizontal",
|
|
14425
14433
|
gap: "regular",
|
|
14426
14434
|
children: [slideShowControls, zoomControls]
|
|
@@ -14534,7 +14542,7 @@ function useImageLightbox(props) {
|
|
|
14534
14542
|
viewTransitionName: {
|
|
14535
14543
|
source: currentImageRef,
|
|
14536
14544
|
target: triggerImageRefs[currentIndex],
|
|
14537
|
-
name: CLASSNAME$
|
|
14545
|
+
name: CLASSNAME$Q
|
|
14538
14546
|
}
|
|
14539
14547
|
});
|
|
14540
14548
|
}
|
|
@@ -14586,7 +14594,7 @@ function useImageLightbox(props) {
|
|
|
14586
14594
|
viewTransitionName: {
|
|
14587
14595
|
source: triggerImage,
|
|
14588
14596
|
target: currentImageRef,
|
|
14589
|
-
name: CLASSNAME$
|
|
14597
|
+
name: CLASSNAME$Q
|
|
14590
14598
|
}
|
|
14591
14599
|
});
|
|
14592
14600
|
}
|
|
@@ -14641,7 +14649,7 @@ const Inner = forwardRef((props, ref) => {
|
|
|
14641
14649
|
}, [onClose]);
|
|
14642
14650
|
return /*#__PURE__*/jsx(Lightbox, {
|
|
14643
14651
|
ref: ref,
|
|
14644
|
-
className: classNames.join(className, CLASSNAME$
|
|
14652
|
+
className: classNames.join(className, CLASSNAME$Q),
|
|
14645
14653
|
parentElement: parentElement,
|
|
14646
14654
|
isOpen: isOpen,
|
|
14647
14655
|
onClose: onClose,
|
|
@@ -14670,8 +14678,8 @@ const Inner = forwardRef((props, ref) => {
|
|
|
14670
14678
|
})
|
|
14671
14679
|
});
|
|
14672
14680
|
});
|
|
14673
|
-
Inner.displayName = COMPONENT_NAME$
|
|
14674
|
-
Inner.className = CLASSNAME$
|
|
14681
|
+
Inner.displayName = COMPONENT_NAME$R;
|
|
14682
|
+
Inner.className = CLASSNAME$Q;
|
|
14675
14683
|
|
|
14676
14684
|
/**
|
|
14677
14685
|
* ImageLightbox component.
|
|
@@ -14687,21 +14695,21 @@ const ImageLightbox = Object.assign(Inner, {
|
|
|
14687
14695
|
/**
|
|
14688
14696
|
* Component display name.
|
|
14689
14697
|
*/
|
|
14690
|
-
const COMPONENT_NAME$
|
|
14698
|
+
const COMPONENT_NAME$Q = 'InlineList';
|
|
14691
14699
|
|
|
14692
14700
|
/**
|
|
14693
14701
|
* Component default class name and class prefix.
|
|
14694
14702
|
*/
|
|
14695
|
-
const CLASSNAME$
|
|
14703
|
+
const CLASSNAME$P = 'lumx-inline-list';
|
|
14696
14704
|
const {
|
|
14697
|
-
block: block$
|
|
14698
|
-
element: element$
|
|
14699
|
-
} = bem(CLASSNAME$
|
|
14705
|
+
block: block$E,
|
|
14706
|
+
element: element$v
|
|
14707
|
+
} = bem(CLASSNAME$P);
|
|
14700
14708
|
|
|
14701
14709
|
/**
|
|
14702
14710
|
* Component default props.
|
|
14703
14711
|
*/
|
|
14704
|
-
const DEFAULT_PROPS$
|
|
14712
|
+
const DEFAULT_PROPS$I = {};
|
|
14705
14713
|
|
|
14706
14714
|
/**
|
|
14707
14715
|
* InlineList component.
|
|
@@ -14726,7 +14734,7 @@ const InlineList$1 = props => {
|
|
|
14726
14734
|
jsx("ul", {
|
|
14727
14735
|
...forwardedProps,
|
|
14728
14736
|
ref: ref,
|
|
14729
|
-
className: classnames(className, block$
|
|
14737
|
+
className: classnames(className, block$E({
|
|
14730
14738
|
wrap: Boolean(wrap)
|
|
14731
14739
|
}), color && font(color, colorVariant), typography$1 && typography(typography$1))
|
|
14732
14740
|
// Lists with removed bullet style can lose their a11y list role on some browsers
|
|
@@ -14738,9 +14746,9 @@ const InlineList$1 = props => {
|
|
|
14738
14746
|
// eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
14739
14747
|
jsxs("li", {
|
|
14740
14748
|
role: "listitem",
|
|
14741
|
-
className: element$
|
|
14749
|
+
className: element$v('item'),
|
|
14742
14750
|
children: [index !== 0 && /*#__PURE__*/jsx("span", {
|
|
14743
|
-
className: element$
|
|
14751
|
+
className: element$v('item-separator'),
|
|
14744
14752
|
"aria-hidden": "true",
|
|
14745
14753
|
children: '\u00A0•\u00A0'
|
|
14746
14754
|
}), item]
|
|
@@ -14748,9 +14756,9 @@ const InlineList$1 = props => {
|
|
|
14748
14756
|
})
|
|
14749
14757
|
);
|
|
14750
14758
|
};
|
|
14751
|
-
InlineList$1.displayName = COMPONENT_NAME$
|
|
14752
|
-
InlineList$1.className = CLASSNAME$
|
|
14753
|
-
InlineList$1.defaultProps = DEFAULT_PROPS$
|
|
14759
|
+
InlineList$1.displayName = COMPONENT_NAME$Q;
|
|
14760
|
+
InlineList$1.className = CLASSNAME$P;
|
|
14761
|
+
InlineList$1.defaultProps = DEFAULT_PROPS$I;
|
|
14754
14762
|
|
|
14755
14763
|
/**
|
|
14756
14764
|
* Defines the props of the component.
|
|
@@ -14774,9 +14782,9 @@ const InlineList = forwardRef((props, ref) => {
|
|
|
14774
14782
|
items: Children.toArray(children)
|
|
14775
14783
|
});
|
|
14776
14784
|
});
|
|
14777
|
-
InlineList.displayName = COMPONENT_NAME$
|
|
14778
|
-
InlineList.className = CLASSNAME$
|
|
14779
|
-
InlineList.defaultProps = DEFAULT_PROPS$
|
|
14785
|
+
InlineList.displayName = COMPONENT_NAME$Q;
|
|
14786
|
+
InlineList.className = CLASSNAME$P;
|
|
14787
|
+
InlineList.defaultProps = DEFAULT_PROPS$I;
|
|
14780
14788
|
|
|
14781
14789
|
/**
|
|
14782
14790
|
* InputHelper component.
|
|
@@ -14816,6 +14824,73 @@ InputLabel.displayName = InputLabel$1.displayName;
|
|
|
14816
14824
|
InputLabel.className = InputLabel$1.className;
|
|
14817
14825
|
InputLabel.defaultProps = InputLabel$1.defaultProps;
|
|
14818
14826
|
|
|
14827
|
+
const COMPONENT_NAME$P = 'InputRequiredLegend';
|
|
14828
|
+
const InputRequiredLegendClassName = 'lumx-input-required-legend';
|
|
14829
|
+
|
|
14830
|
+
/**
|
|
14831
|
+
* Defines the props of the component.
|
|
14832
|
+
*/
|
|
14833
|
+
|
|
14834
|
+
const CLASSNAME$O = InputRequiredLegendClassName;
|
|
14835
|
+
const {
|
|
14836
|
+
block: block$D,
|
|
14837
|
+
element: element$u
|
|
14838
|
+
} = bem(CLASSNAME$O);
|
|
14839
|
+
|
|
14840
|
+
/**
|
|
14841
|
+
* Component default props.
|
|
14842
|
+
*/
|
|
14843
|
+
const DEFAULT_PROPS$H = {};
|
|
14844
|
+
|
|
14845
|
+
/**
|
|
14846
|
+
* InputRequiredLegend component.
|
|
14847
|
+
*
|
|
14848
|
+
* Explains the required field marker (`*`) displayed by `InputLabel` with `isRequired`.
|
|
14849
|
+
* Place it at the top of a form that contains required fields.
|
|
14850
|
+
*/
|
|
14851
|
+
function InputRequiredLegend$1(props) {
|
|
14852
|
+
const {
|
|
14853
|
+
className,
|
|
14854
|
+
label,
|
|
14855
|
+
theme,
|
|
14856
|
+
ref,
|
|
14857
|
+
...forwardedProps
|
|
14858
|
+
} = props;
|
|
14859
|
+
return /*#__PURE__*/jsxs("p", {
|
|
14860
|
+
ref: ref,
|
|
14861
|
+
...forwardedProps,
|
|
14862
|
+
className: classnames(className, block$D({
|
|
14863
|
+
[`theme-${theme}`]: Boolean(theme)
|
|
14864
|
+
})),
|
|
14865
|
+
children: [/*#__PURE__*/jsx("span", {
|
|
14866
|
+
className: element$u('marker'),
|
|
14867
|
+
children: "*"
|
|
14868
|
+
}), label]
|
|
14869
|
+
});
|
|
14870
|
+
}
|
|
14871
|
+
InputRequiredLegend$1.displayName = COMPONENT_NAME$P;
|
|
14872
|
+
InputRequiredLegend$1.className = CLASSNAME$O;
|
|
14873
|
+
InputRequiredLegend$1.defaultProps = DEFAULT_PROPS$H;
|
|
14874
|
+
|
|
14875
|
+
/**
|
|
14876
|
+
* InputRequiredLegend component.
|
|
14877
|
+
*
|
|
14878
|
+
* @param props Component props.
|
|
14879
|
+
* @param ref Component ref.
|
|
14880
|
+
* @return React element.
|
|
14881
|
+
*/
|
|
14882
|
+
const InputRequiredLegend = forwardRef((props, ref) => {
|
|
14883
|
+
const defaultTheme = useTheme() || Theme$1.light;
|
|
14884
|
+
return InputRequiredLegend$1({
|
|
14885
|
+
...props,
|
|
14886
|
+
ref,
|
|
14887
|
+
theme: props.theme || defaultTheme
|
|
14888
|
+
});
|
|
14889
|
+
});
|
|
14890
|
+
InputRequiredLegend.displayName = InputRequiredLegend$1.displayName;
|
|
14891
|
+
InputRequiredLegend.className = InputRequiredLegend$1.className;
|
|
14892
|
+
InputRequiredLegend.defaultProps = InputRequiredLegend$1.defaultProps;
|
|
14893
|
+
|
|
14819
14894
|
/**
|
|
14820
14895
|
* Component display name.
|
|
14821
14896
|
*/
|
|
@@ -15292,9 +15367,9 @@ const ListItemAction = Object.assign(forwardRefPolymorphic((props, ref) => {
|
|
|
15292
15367
|
children
|
|
15293
15368
|
});
|
|
15294
15369
|
}), {
|
|
15295
|
-
displayName: COMPONENT_NAME$
|
|
15296
|
-
className: CLASSNAME$
|
|
15297
|
-
defaultProps: DEFAULT_PROPS$
|
|
15370
|
+
displayName: COMPONENT_NAME$1i,
|
|
15371
|
+
className: CLASSNAME$1f,
|
|
15372
|
+
defaultProps: DEFAULT_PROPS$_
|
|
15298
15373
|
});
|
|
15299
15374
|
|
|
15300
15375
|
/**
|
|
@@ -15332,9 +15407,9 @@ const _ListItem = forwardRef((props, ref) => {
|
|
|
15332
15407
|
handleClick: onItemSelected || props.onClick ? handleClick : undefined
|
|
15333
15408
|
});
|
|
15334
15409
|
});
|
|
15335
|
-
_ListItem.displayName = COMPONENT_NAME$
|
|
15336
|
-
_ListItem.className = CLASSNAME$
|
|
15337
|
-
_ListItem.defaultProps = DEFAULT_PROPS
|
|
15410
|
+
_ListItem.displayName = COMPONENT_NAME$1j;
|
|
15411
|
+
_ListItem.className = CLASSNAME$1g;
|
|
15412
|
+
_ListItem.defaultProps = DEFAULT_PROPS$$;
|
|
15338
15413
|
|
|
15339
15414
|
/**
|
|
15340
15415
|
* ListItem component with Action sub-component.
|
|
@@ -18726,7 +18801,7 @@ const SelectButton$1 = React__default.forwardRef((props, ref) => {
|
|
|
18726
18801
|
// sentinel is trivially always "intersecting" its non-clipping `<ul>` parent.
|
|
18727
18802
|
const [scrollContainer, setScrollContainer] = useState(null);
|
|
18728
18803
|
const setListElement = useCallback(listElement => {
|
|
18729
|
-
setScrollContainer(listElement?.closest(`.${CLASSNAME$
|
|
18804
|
+
setScrollContainer(listElement?.closest(`.${CLASSNAME$18}__scroll`) ?? null);
|
|
18730
18805
|
}, []);
|
|
18731
18806
|
const isMultiple = selectionType === 'multiple';
|
|
18732
18807
|
|
|
@@ -18967,7 +19042,7 @@ const SelectTextField$1 = props => {
|
|
|
18967
19042
|
// sentinel is trivially always "intersecting" its non-clipping `<ul>` parent.
|
|
18968
19043
|
const [scrollContainer, setScrollContainer] = useState(null);
|
|
18969
19044
|
const setListElement = useCallback(listElement => {
|
|
18970
|
-
setScrollContainer(listElement?.closest(`.${CLASSNAME$
|
|
19045
|
+
setScrollContainer(listElement?.closest(`.${CLASSNAME$18}__scroll`) ?? null);
|
|
18971
19046
|
}, []);
|
|
18972
19047
|
const localInputRef = useRef(null);
|
|
18973
19048
|
const mergedInputRef = useMergeRefs(localInputRef, externalInputRef);
|
|
@@ -19519,9 +19594,9 @@ const SkeletonTypography = forwardRef((props, ref) => {
|
|
|
19519
19594
|
...forwardedProps
|
|
19520
19595
|
});
|
|
19521
19596
|
});
|
|
19522
|
-
SkeletonTypography.displayName = COMPONENT_NAME$
|
|
19597
|
+
SkeletonTypography.displayName = COMPONENT_NAME$1d;
|
|
19523
19598
|
SkeletonTypography.defaultProps = DEFAULT_PROPS$j;
|
|
19524
|
-
SkeletonTypography.className = CLASSNAME$
|
|
19599
|
+
SkeletonTypography.className = CLASSNAME$1a;
|
|
19525
19600
|
|
|
19526
19601
|
/**
|
|
19527
19602
|
* Clamp value in range.
|
|
@@ -22502,7 +22577,7 @@ function timeOfDayMinutes(date) {
|
|
|
22502
22577
|
/** Options for `buildTimeList`. */
|
|
22503
22578
|
|
|
22504
22579
|
const MINUTES_IN_HOUR = 60;
|
|
22505
|
-
const MINUTES_IN_DAY = 24 * MINUTES_IN_HOUR;
|
|
22580
|
+
const MINUTES_IN_DAY$1 = 24 * MINUTES_IN_HOUR;
|
|
22506
22581
|
|
|
22507
22582
|
/**
|
|
22508
22583
|
* Build a full-day list of `TimeOfDay` entries spaced `step` minutes apart.
|
|
@@ -22522,7 +22597,7 @@ function buildTimeList(options = {}) {
|
|
|
22522
22597
|
const minMinutes = minTime ? timeOfDayMinutes(minTime) : undefined;
|
|
22523
22598
|
const maxMinutes = maxTime ? timeOfDayMinutes(maxTime) : undefined;
|
|
22524
22599
|
const list = [];
|
|
22525
|
-
for (let minutes = 0; minutes < MINUTES_IN_DAY; minutes += step) {
|
|
22600
|
+
for (let minutes = 0; minutes < MINUTES_IN_DAY$1; minutes += step) {
|
|
22526
22601
|
const hour = Math.floor(minutes / MINUTES_IN_HOUR);
|
|
22527
22602
|
const minute = minutes % MINUTES_IN_HOUR;
|
|
22528
22603
|
const outOfRange = minMinutes !== undefined && minutes < minMinutes || maxMinutes !== undefined && minutes > maxMinutes || undefined;
|
|
@@ -22588,24 +22663,42 @@ function parseTimeInput(raw) {
|
|
|
22588
22663
|
};
|
|
22589
22664
|
}
|
|
22590
22665
|
|
|
22666
|
+
const MINUTES_IN_DAY = 24 * 60;
|
|
22667
|
+
function ceilToStep(minutes, step) {
|
|
22668
|
+
return Math.ceil(minutes / step) * step;
|
|
22669
|
+
}
|
|
22670
|
+
function floorToStep(minutes, step) {
|
|
22671
|
+
return Math.floor(minutes / step) * step;
|
|
22672
|
+
}
|
|
22673
|
+
function minutesToTimeOfDay(minutes) {
|
|
22674
|
+
return {
|
|
22675
|
+
hour: Math.floor(minutes / 60),
|
|
22676
|
+
minute: minutes % 60
|
|
22677
|
+
};
|
|
22678
|
+
}
|
|
22679
|
+
|
|
22591
22680
|
/**
|
|
22592
|
-
* Clamp `time` to `[minTime, maxTime]
|
|
22593
|
-
*
|
|
22594
|
-
*
|
|
22681
|
+
* Clamp `time` to `[minTime, maxTime]`, snapping to the nearest `step`-aligned
|
|
22682
|
+
* option (as generated by `buildTimeList`) rather than to the raw bound.
|
|
22683
|
+
* Inputs below the effective `minTime` snap up to it. Inputs above the
|
|
22684
|
+
* effective `maxTime` snap down to it. Others are returned unchanged. When no
|
|
22685
|
+
* `step`-aligned option exists inside `[minTime, maxTime]`, `time` is returned
|
|
22686
|
+
* unchanged since there is nothing to snap to. Only the time-of-day of
|
|
22687
|
+
* `minTime`/`maxTime` is used.
|
|
22595
22688
|
*/
|
|
22596
|
-
function snapTimeToBounds(time, minTime, maxTime) {
|
|
22689
|
+
function snapTimeToBounds(time, minTime, maxTime, step = 30) {
|
|
22597
22690
|
const totalMinutes = time.hour * 60 + time.minute;
|
|
22598
|
-
|
|
22599
|
-
|
|
22600
|
-
|
|
22601
|
-
|
|
22602
|
-
|
|
22691
|
+
const effectiveMin = minTime ? ceilToStep(timeOfDayMinutes(minTime), step) : undefined;
|
|
22692
|
+
const effectiveMax = maxTime ? floorToStep(timeOfDayMinutes(maxTime), step) : undefined;
|
|
22693
|
+
const noOptionInBounds = effectiveMin !== undefined && (effectiveMin >= MINUTES_IN_DAY || effectiveMax !== undefined && effectiveMin > effectiveMax);
|
|
22694
|
+
if (noOptionInBounds) {
|
|
22695
|
+
return time;
|
|
22603
22696
|
}
|
|
22604
|
-
if (
|
|
22605
|
-
return
|
|
22606
|
-
|
|
22607
|
-
|
|
22608
|
-
|
|
22697
|
+
if (effectiveMin !== undefined && totalMinutes < effectiveMin) {
|
|
22698
|
+
return minutesToTimeOfDay(effectiveMin);
|
|
22699
|
+
}
|
|
22700
|
+
if (effectiveMax !== undefined && totalMinutes > effectiveMax) {
|
|
22701
|
+
return minutesToTimeOfDay(effectiveMax);
|
|
22609
22702
|
}
|
|
22610
22703
|
return time;
|
|
22611
22704
|
}
|
|
@@ -22684,11 +22777,11 @@ const TimePickerField = props => {
|
|
|
22684
22777
|
hour: value.getHours(),
|
|
22685
22778
|
minute: value.getMinutes()
|
|
22686
22779
|
};
|
|
22687
|
-
const clamped = snapTimeToBounds(timeOfDay, minTime, maxTime);
|
|
22780
|
+
const clamped = snapTimeToBounds(timeOfDay, minTime, maxTime, step);
|
|
22688
22781
|
if (clamped.hour !== value.getHours() || clamped.minute !== value.getMinutes()) {
|
|
22689
22782
|
onChange(getDateAtTime(clamped, value), name);
|
|
22690
22783
|
}
|
|
22691
|
-
}, [boundsMode, value, minTime, maxTime, onChange, name]);
|
|
22784
|
+
}, [boundsMode, value, step, minTime, maxTime, onChange, name]);
|
|
22692
22785
|
const handleChange = useCallback(next => {
|
|
22693
22786
|
const date = next ? getDateAtTime(next, value) : undefined;
|
|
22694
22787
|
onChange(date, name);
|
|
@@ -22701,10 +22794,10 @@ const TimePickerField = props => {
|
|
|
22701
22794
|
if (!parsed) return;
|
|
22702
22795
|
|
|
22703
22796
|
// Snap to bounds if needed, then dedup against the current value.
|
|
22704
|
-
const time = snapTimeToBounds(parsed, minTime, maxTime);
|
|
22797
|
+
const time = snapTimeToBounds(parsed, minTime, maxTime, step);
|
|
22705
22798
|
if (value && isDateOnTime(value, time)) return;
|
|
22706
22799
|
onChange(getDateAtTime(time, value), name);
|
|
22707
|
-
}, [maxTime, minTime, name, onChange, searchValue, value]);
|
|
22800
|
+
}, [maxTime, minTime, name, onChange, searchValue, step, value]);
|
|
22708
22801
|
const searchInputValue = value ? formatTime(value, locale) : undefined;
|
|
22709
22802
|
return TimePickerField$1({
|
|
22710
22803
|
...forwardedProps,
|
|
@@ -23196,5 +23289,5 @@ UserBlock.displayName = COMPONENT_NAME;
|
|
|
23196
23289
|
UserBlock.className = CLASSNAME;
|
|
23197
23290
|
UserBlock.defaultProps = DEFAULT_PROPS;
|
|
23198
23291
|
|
|
23199
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$
|
|
23292
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonGroup, CLASSNAME$1y as CLASSNAME, COMPONENT_NAME$1B as COMPONENT_NAME, Card, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1g as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, DialogHeading, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, InputRequiredLegend, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME$3 as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME$3 as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
23200
23293
|
//# sourceMappingURL=index.js.map
|