@astral/ui 0.48.0 → 0.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NavMenu/NavMenu.js
CHANGED
|
@@ -19,6 +19,6 @@ var NavMenuItem_1 = require("./NavMenuItem");
|
|
|
19
19
|
exports.NavMenu = (0, react_1.forwardRef)(function (props, ref) {
|
|
20
20
|
var _a = props.collapsedIn, collapsedIn = _a === void 0 ? true : _a, items = props.items;
|
|
21
21
|
return ((0, jsx_runtime_1.jsx)(material_1.List, __assign({ ref: ref, disablePadding: true }, { children: items.map(function (item) {
|
|
22
|
-
return (0, jsx_runtime_1.jsx)(NavMenuItem_1.NavMenuItem, { collapsedIn: collapsedIn, item: item });
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(NavMenuItem_1.NavMenuItem, { collapsedIn: collapsedIn, item: item }, item[0]));
|
|
23
23
|
}) })));
|
|
24
24
|
});
|
|
@@ -9,7 +9,7 @@ var styles_1 = require("../styles");
|
|
|
9
9
|
var Typography_1 = require("../Typography");
|
|
10
10
|
exports.OverflowTypographyWrapper = (0, styles_1.styled)(Typography_1.Typography, {
|
|
11
11
|
shouldForwardProp: function (name) { return name !== 'rowsCount'; },
|
|
12
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
|
|
12
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
|
|
13
13
|
var rowsCount = _a.rowsCount;
|
|
14
14
|
return rowsCount;
|
|
15
15
|
});
|
package/esm/NavMenu/NavMenu.js
CHANGED
|
@@ -16,6 +16,6 @@ import { NavMenuItem } from './NavMenuItem';
|
|
|
16
16
|
export var NavMenu = forwardRef(function (props, ref) {
|
|
17
17
|
var _a = props.collapsedIn, collapsedIn = _a === void 0 ? true : _a, items = props.items;
|
|
18
18
|
return (_jsx(List, __assign({ ref: ref, disablePadding: true }, { children: items.map(function (item) {
|
|
19
|
-
return _jsx(NavMenuItem, { collapsedIn: collapsedIn, item: item });
|
|
19
|
+
return (_jsx(NavMenuItem, { collapsedIn: collapsedIn, item: item }, item[0]));
|
|
20
20
|
}) })));
|
|
21
21
|
});
|
|
@@ -6,7 +6,7 @@ import { styled } from '../styles';
|
|
|
6
6
|
import { Typography } from '../Typography';
|
|
7
7
|
export var OverflowTypographyWrapper = styled(Typography, {
|
|
8
8
|
shouldForwardProp: function (name) { return name !== 'rowsCount'; },
|
|
9
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
|
|
9
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
|
|
10
10
|
var rowsCount = _a.rowsCount;
|
|
11
11
|
return rowsCount;
|
|
12
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.1",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"jest": {
|
|
6
6
|
"moduleNameMapper": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@astral/icons": "^0.48.
|
|
11
|
+
"@astral/icons": "^0.48.1",
|
|
12
12
|
"@emotion/cache": "11.7.1",
|
|
13
13
|
"@emotion/react": "11.9.0",
|
|
14
14
|
"@emotion/server": "11.4.0",
|