@micromag/element-grid 0.4.25 → 0.4.27
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/es/index.d.ts +2 -2
- package/es/index.js +2 -1
- package/package.json +4 -4
package/es/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { GridLayout } from '@micromag/core';
|
|
|
4
4
|
|
|
5
5
|
interface GridProps {
|
|
6
6
|
layout?: GridLayout | null;
|
|
7
|
-
items?: React.ReactNode[];
|
|
7
|
+
items?: React.ReactNode[] | null;
|
|
8
8
|
width?: number | null;
|
|
9
9
|
height?: number | null;
|
|
10
10
|
spacing?: number;
|
|
@@ -13,6 +13,6 @@ interface GridProps {
|
|
|
13
13
|
axisClassName?: string | null;
|
|
14
14
|
crossClassName?: string | null;
|
|
15
15
|
}
|
|
16
|
-
declare function Grid({ items, layout, width, height, spacing, vertical, className, axisClassName, crossClassName, }: GridProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function Grid({ items: initialItems, layout, width, height, spacing, vertical, className, axisClassName, crossClassName, }: GridProps): react_jsx_runtime.JSX.Element;
|
|
17
17
|
|
|
18
18
|
export { Grid as default };
|
package/es/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var styles = {"container":"micromag-element-grid-container","items":"micromag-el
|
|
|
7
7
|
|
|
8
8
|
function Grid(_ref) {
|
|
9
9
|
var _ref$items = _ref.items,
|
|
10
|
-
|
|
10
|
+
initialItems = _ref$items === void 0 ? null : _ref$items,
|
|
11
11
|
_ref$layout = _ref.layout,
|
|
12
12
|
layout = _ref$layout === void 0 ? null : _ref$layout,
|
|
13
13
|
_ref$width = _ref.width,
|
|
@@ -25,6 +25,7 @@ function Grid(_ref) {
|
|
|
25
25
|
_ref$crossClassName = _ref.crossClassName,
|
|
26
26
|
crossClassName = _ref$crossClassName === void 0 ? null : _ref$crossClassName;
|
|
27
27
|
var itemIndex = 0;
|
|
28
|
+
var items = initialItems || [];
|
|
28
29
|
var finalLayout = isArray(layout) ? layout : [{
|
|
29
30
|
rows: vertical ? items.map(function () {
|
|
30
31
|
return 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-grid",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.27",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.28.6",
|
|
63
|
-
"@micromag/core": "^0.4.
|
|
63
|
+
"@micromag/core": "^0.4.27",
|
|
64
64
|
"classnames": "^2.2.6",
|
|
65
65
|
"lodash": "^4.17.23",
|
|
66
|
-
"react-intl": "^8.1.3",
|
|
66
|
+
"react-intl": "^8.1.3 || ^10.0.0",
|
|
67
67
|
"uuid": "^9.0.0"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public",
|
|
71
71
|
"registry": "https://registry.npmjs.org/"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "7541e15e6fe1950d19247a338aaad3d6943ac994",
|
|
74
74
|
"types": "es/index.d.ts"
|
|
75
75
|
}
|