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.
@@ -1,8 +1,20 @@
1
1
  .root {
2
- width: 100%;
2
+ display: grid;
3
+ grid-gap: 10px;
4
+ }
5
+
6
+ .root {
7
+ display: flex;
8
+ flex-wrap: wrap;
3
9
  }
4
10
 
5
- .items {
11
+ .root {
6
12
  display: grid;
7
- grid-auto-flow: row dense;
13
+ grid-auto-rows: minmax(150px, auto);
14
+ }
15
+
16
+ @supports (display: grid) {
17
+ .root > * {
18
+ margin: 0;
19
+ }
8
20
  }
@@ -1,3 +1,9 @@
1
1
  .full {
2
2
  grid-column: 1/-1;
3
+ }
4
+
5
+ .item {
6
+ margin-left: 5px;
7
+ margin-right: 5px;
8
+ flex: 1 1 220px;
3
9
  }
@@ -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 ? 136 : _d,
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-fit, minmax(".concat(gridItemMinWidth, "px, 1fr))")
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;
@@ -1,8 +1,20 @@
1
1
  .root {
2
- width: 100%;
2
+ display: grid;
3
+ grid-gap: 10px;
4
+ }
5
+
6
+ .root {
7
+ display: flex;
8
+ flex-wrap: wrap;
3
9
  }
4
10
 
5
- .items {
11
+ .root {
6
12
  display: grid;
7
- grid-auto-flow: row dense;
13
+ grid-auto-rows: minmax(150px, auto);
14
+ }
15
+
16
+ @supports (display: grid) {
17
+ .root > * {
18
+ margin: 0;
19
+ }
8
20
  }
@@ -1,3 +1,9 @@
1
1
  .full {
2
2
  grid-column: 1/-1;
3
+ }
4
+
5
+ .item {
6
+ margin-left: 5px;
7
+ margin-right: 5px;
8
+ flex: 1 1 220px;
3
9
  }
@@ -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 ? 136 : _d,
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-fit, minmax(".concat(gridItemMinWidth, "px, 1fr))")
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibri-ui",
3
- "version": "0.7.51",
3
+ "version": "0.7.53",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "scripts": {},