gd-bs 6.5.8 → 6.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.5.8",
3
+ "version": "6.6.0",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -9,5 +9,5 @@ export const HTMLItem = `
9
9
  <div class="card-body">
10
10
  <div class="card-title h5"></div>
11
11
  <div class="card-subtitle h6"></div>
12
- <div class="card-text p"></div>
12
+ <div class="card-text"></div>
13
13
  </div>`.trim();
@@ -103,6 +103,7 @@ export interface ICardBody<T = Element> {
103
103
  export interface ICardFooter<T = Element> {
104
104
  className?: string;
105
105
  content?: string | T;
106
+ data?: any;
106
107
  onRender?: (el?: HTMLElement, card?: ICardFooter) => void;
107
108
  }
108
109
 
@@ -112,6 +113,7 @@ export interface ICardFooter<T = Element> {
112
113
  export interface ICardHeader<T = Element> {
113
114
  className?: string;
114
115
  content?: string | T;
116
+ data?: any;
115
117
  onRender?: (el?: HTMLElement, card?: ICardHeader) => void;
116
118
  nav?: INavProps;
117
119
  }
@@ -311,21 +311,21 @@ class _Navbar extends Base<INavbarProps> implements INavbar {
311
311
  this._btnSearch.classList.add("btn-outline-info")
312
312
  break;
313
313
 
314
- // Primary
315
- case NavbarTypes.Primary:
316
- // Add the class
317
- this.el.classList.add("navbar-dark");
318
- this.el.classList.add("bg-primary");
319
- this._btnSearch.classList.add("btn-outline-light")
320
- break;
321
-
322
314
  // Default - Light
323
- default:
315
+ case NavbarTypes.Light:
324
316
  // Add the class
325
317
  this.el.classList.add("navbar-light");
326
318
  this.el.classList.add("bg-light");
327
319
  this._btnSearch.classList.add("btn-outline-primary")
328
320
  break;
321
+
322
+ // Default - Primary
323
+ default:
324
+ // Add the class
325
+ this.el.classList.add("navbar-dark");
326
+ this.el.classList.add("bg-primary");
327
+ this._btnSearch.classList.add("btn-outline-light")
328
+ break;
329
329
  }
330
330
  }
331
331
  }