gd-bs 6.6.48 → 6.6.49
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/build/components/cardGroup/index.js +11 -4
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/cardGroup/index.ts +10 -4
- package/src/components/cardGroup/types.d.ts +1 -1
|
@@ -40,15 +40,22 @@ var _CardGroup = /** @class */ (function (_super) {
|
|
|
40
40
|
var cards = this.props.cards || [];
|
|
41
41
|
var isGrid = false;
|
|
42
42
|
// See if we are rendering columns
|
|
43
|
-
if (typeof (this.props.colSize) === "number") {
|
|
43
|
+
if (typeof (this.props.colSize) === "number" || this.props.colSize == "auto") {
|
|
44
44
|
// Update the flag
|
|
45
45
|
isGrid = true;
|
|
46
46
|
// Update the class name
|
|
47
47
|
this.el.classList.remove("card-group");
|
|
48
48
|
this.el.classList.add("row");
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
// See if the column size is a number
|
|
50
|
+
if (this.props.colSize == "auto") {
|
|
51
|
+
// Set the column to auto size
|
|
52
|
+
this.el.classList.add("row-cols-auto");
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
// Determine the column class to use
|
|
56
|
+
var colSize = this.props.colSize > 0 && this.props.colSize <= 12 ? this.props.colSize : 4;
|
|
57
|
+
this.el.classList.add("row-cols-" + colSize);
|
|
58
|
+
}
|
|
52
59
|
}
|
|
53
60
|
// Parse the cards
|
|
54
61
|
for (var i = 0; i < cards.length; i++) {
|