@apia/components 3.0.24 → 3.0.26
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/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
package/dist/index.js
CHANGED
|
@@ -4046,6 +4046,7 @@ const KeyHandler$1 = observer((props) => {
|
|
|
4046
4046
|
handler.focusPrevious();
|
|
4047
4047
|
break;
|
|
4048
4048
|
case "Enter":
|
|
4049
|
+
case "NumpadEnter":
|
|
4049
4050
|
ev.preventDefault();
|
|
4050
4051
|
if (handler.isOpen) {
|
|
4051
4052
|
handler.selectFocused();
|
|
@@ -5233,16 +5234,14 @@ const AutoEllipsis = ({
|
|
|
5233
5234
|
clone.current.style.wordBreak = "break-all";
|
|
5234
5235
|
const overridenStyles = overrideStyles?.(el);
|
|
5235
5236
|
if (overridenStyles) {
|
|
5236
|
-
|
|
5237
|
+
Object.entries(overridenStyles).forEach(([name, value]) => {
|
|
5238
|
+
if (name.match(/webkit/))
|
|
5239
|
+
return;
|
|
5237
5240
|
try {
|
|
5238
|
-
|
|
5239
|
-
const value = overridenStyles[name];
|
|
5240
|
-
if (!name.match(/webkit/)) {
|
|
5241
|
-
clone.current.style[name] = value;
|
|
5242
|
-
}
|
|
5241
|
+
clone.current.style[name] = value;
|
|
5243
5242
|
} catch (e) {
|
|
5244
5243
|
}
|
|
5245
|
-
}
|
|
5244
|
+
});
|
|
5246
5245
|
}
|
|
5247
5246
|
clone.current.addEventListener("mouseleave", (ev) => {
|
|
5248
5247
|
if (isChild(
|
|
@@ -7440,7 +7439,9 @@ const IconsListNonForwarded = (props, ref) => {
|
|
|
7440
7439
|
render = useCallback(() => doRender((current) => !current), []);
|
|
7441
7440
|
const storeId = useMemo(() => uniqueId("IconsList"), []);
|
|
7442
7441
|
const [actions, useProps, , , Context] = useStore({ storeId });
|
|
7443
|
-
const rows = Math.ceil(
|
|
7442
|
+
const rows = Math.ceil(
|
|
7443
|
+
propsRef.current.icons.length / Math.max(breakPoint, 1)
|
|
7444
|
+
);
|
|
7444
7445
|
const sx = useStyles({
|
|
7445
7446
|
breakPoint,
|
|
7446
7447
|
containerWidth,
|
|
@@ -7453,7 +7454,7 @@ const IconsListNonForwarded = (props, ref) => {
|
|
|
7453
7454
|
}, [breakPoint]);
|
|
7454
7455
|
const IconRenderer = propsRef.current.iconRenderer ?? DefaultIconRenderer;
|
|
7455
7456
|
const gridRef = useProps("grid", {
|
|
7456
|
-
columns: breakPoint,
|
|
7457
|
+
columns: Math.max(breakPoint, 1),
|
|
7457
7458
|
iconsCount: propsRef.current.icons.length,
|
|
7458
7459
|
rows
|
|
7459
7460
|
});
|