colibri-ui 0.7.51 → 0.7.53
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/Grid/Grid.module.css +15 -3
- package/Grid/Item/Grid-Item.module.css +6 -0
- package/Grid/Item/index.js +1 -1
- package/Grid/index.js +4 -6
- package/esm/Grid/Grid.module.css +15 -3
- package/esm/Grid/Item/Grid-Item.module.css +6 -0
- package/esm/Grid/Item/index.js +1 -1
- package/esm/Grid/index.js +4 -6
- package/package.json +1 -1
package/Grid/Grid.module.css
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-gap: 10px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.root {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-wrap: wrap;
|
|
3
9
|
}
|
|
4
10
|
|
|
5
|
-
.
|
|
11
|
+
.root {
|
|
6
12
|
display: grid;
|
|
7
|
-
grid-auto-
|
|
13
|
+
grid-auto-rows: minmax(150px, auto);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@supports (display: grid) {
|
|
17
|
+
.root > * {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
8
20
|
}
|
package/Grid/Item/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var GridItem = function GridItem(_a) {
|
|
|
19
19
|
fullWidth = _c === void 0 ? false : _c,
|
|
20
20
|
className = _a.className;
|
|
21
21
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
22
|
-
className: classNames__default.default((_b = {}, _b[styles__default.default.full] = fullWidth, _b), className)
|
|
22
|
+
className: classNames__default.default(styles__default.default.item, (_b = {}, _b[styles__default.default.full] = fullWidth, _b), className)
|
|
23
23
|
}, children);
|
|
24
24
|
};
|
|
25
25
|
|
package/Grid/index.js
CHANGED
|
@@ -19,18 +19,16 @@ var Grid = function Grid(_a) {
|
|
|
19
19
|
_c = _a.gridColumnGap,
|
|
20
20
|
gridColumnGap = _c === void 0 ? 16 : _c,
|
|
21
21
|
_d = _a.gridItemMinWidth,
|
|
22
|
-
gridItemMinWidth = _d === void 0 ?
|
|
22
|
+
gridItemMinWidth = _d === void 0 ? 220 : _d,
|
|
23
23
|
className = _a.className;
|
|
24
24
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
25
|
-
className: classNames__default.default(styles__default.default.root, className)
|
|
26
|
-
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
27
|
-
className: classNames__default.default(styles__default.default.items),
|
|
25
|
+
className: classNames__default.default(styles__default.default.root, className),
|
|
28
26
|
style: {
|
|
29
27
|
rowGap: "".concat(gridRowGap, "px"),
|
|
30
28
|
columnGap: "".concat(gridColumnGap, "px"),
|
|
31
|
-
gridTemplateColumns: "repeat(auto-
|
|
29
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(".concat(gridItemMinWidth, "px, 1fr))")
|
|
32
30
|
}
|
|
33
|
-
}, children)
|
|
31
|
+
}, children);
|
|
34
32
|
};
|
|
35
33
|
|
|
36
34
|
exports.default = Grid;
|
package/esm/Grid/Grid.module.css
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
.root {
|
|
2
|
-
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-gap: 10px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.root {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-wrap: wrap;
|
|
3
9
|
}
|
|
4
10
|
|
|
5
|
-
.
|
|
11
|
+
.root {
|
|
6
12
|
display: grid;
|
|
7
|
-
grid-auto-
|
|
13
|
+
grid-auto-rows: minmax(150px, auto);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@supports (display: grid) {
|
|
17
|
+
.root > * {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
8
20
|
}
|
package/esm/Grid/Item/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var GridItem = function GridItem(_a) {
|
|
|
9
9
|
fullWidth = _c === void 0 ? false : _c,
|
|
10
10
|
className = _a.className;
|
|
11
11
|
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
className: classNames((_b = {}, _b[styles.full] = fullWidth, _b), className)
|
|
12
|
+
className: classNames(styles.item, (_b = {}, _b[styles.full] = fullWidth, _b), className)
|
|
13
13
|
}, children);
|
|
14
14
|
};
|
|
15
15
|
|
package/esm/Grid/index.js
CHANGED
|
@@ -9,18 +9,16 @@ var Grid = function Grid(_a) {
|
|
|
9
9
|
_c = _a.gridColumnGap,
|
|
10
10
|
gridColumnGap = _c === void 0 ? 16 : _c,
|
|
11
11
|
_d = _a.gridItemMinWidth,
|
|
12
|
-
gridItemMinWidth = _d === void 0 ?
|
|
12
|
+
gridItemMinWidth = _d === void 0 ? 220 : _d,
|
|
13
13
|
className = _a.className;
|
|
14
14
|
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className: classNames(styles.root, className)
|
|
16
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: classNames(styles.items),
|
|
15
|
+
className: classNames(styles.root, className),
|
|
18
16
|
style: {
|
|
19
17
|
rowGap: "".concat(gridRowGap, "px"),
|
|
20
18
|
columnGap: "".concat(gridColumnGap, "px"),
|
|
21
|
-
gridTemplateColumns: "repeat(auto-
|
|
19
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(".concat(gridItemMinWidth, "px, 1fr))")
|
|
22
20
|
}
|
|
23
|
-
}, children)
|
|
21
|
+
}, children);
|
|
24
22
|
};
|
|
25
23
|
|
|
26
24
|
export { Grid as default };
|