gd-bs 5.9.9 → 6.0.1

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/generateIcons.js CHANGED
@@ -26,17 +26,17 @@ fs.readdir(dirIcons, function (err, files) {
26
26
 
27
27
  // Create the variable name
28
28
  var idx = 0;
29
- var varName = file[0].toLowerCase() + file.substr(1);
29
+ var varName = file[0].toLowerCase() + file.substring(1);
30
30
  while ((idx = varName.indexOf('-')) > 0) {
31
31
  // Find the instance
32
- varName = varName.substr(0, idx) + varName.charAt(idx + 1).toUpperCase() + varName.substr(idx + 2);
32
+ varName = varName.substring(0, idx) + varName.charAt(idx + 1).toUpperCase() + varName.substring(idx + 2);
33
33
  }
34
34
 
35
35
  // Determine the variable and function names
36
36
  varName = varName.replace(/\.svg$/, '');
37
- varName = varName == "window" ? "appWindow" : varName;
37
+ varName = varName == "window" ? "window_" : varName;
38
38
  varName = parseInt(varName) >= 0 ? "_" + varName : varName;
39
- var funcName = varName[0].toUpperCase() + varName.substr(1);
39
+ var funcName = varName[0].toUpperCase() + varName.substring(1);
40
40
 
41
41
  // Add the type
42
42
  let iconType = types.length + 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "5.9.9",
3
+ "version": "6.0.1",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "homepage": "https://dattabase.com/extras/bs",
35
35
  "dependencies": {
36
36
  "@popperjs/core": "^2.11.5",
37
- "bootstrap": "^5.2.0",
37
+ "bootstrap": "^5.2.1",
38
38
  "bootstrap-icons": "^1.9.1",
39
39
  "core-js": "^3.24.0",
40
40
  "tippy.js": "^6.3.7"
package/pnpm-lock.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  dependencies:
2
2
  '@popperjs/core': 2.11.5
3
- bootstrap: 5.2.0_@popperjs+core@2.11.5
3
+ bootstrap: 5.2.1_@popperjs+core@2.11.5
4
4
  bootstrap-icons: 1.9.1
5
5
  core-js: 3.24.0
6
6
  tippy.js: 6.3.7
@@ -1612,14 +1612,14 @@ packages:
1612
1612
  dev: false
1613
1613
  resolution:
1614
1614
  integrity: sha512-d4ZkO30MIkAhQ2nNRJqKXJVEQorALGbLWTuRxyCTJF96lRIV6imcgMehWGJUiJMJhglN0o2tqLIeDnMdiQEE9g==
1615
- /bootstrap/5.2.0_@popperjs+core@2.11.5:
1615
+ /bootstrap/5.2.1_@popperjs+core@2.11.5:
1616
1616
  dependencies:
1617
1617
  '@popperjs/core': 2.11.5
1618
1618
  dev: false
1619
1619
  peerDependencies:
1620
- '@popperjs/core': ^2.11.5
1620
+ '@popperjs/core': ^2.11.6
1621
1621
  resolution:
1622
- integrity: sha512-qlnS9GL6YZE6Wnef46GxGv1UpGGzAwO0aPL1yOjzDIJpeApeMvqV24iL+pjr2kU4dduoBA9fINKWKgMToobx9A==
1622
+ integrity: sha512-UQi3v2NpVPEi1n35dmRRzBJFlgvWHYwyem6yHhuT6afYF+sziEt46McRbT//kVXZ7b1YUYEVGdXEH74Nx3xzGA==
1623
1623
  /brace-expansion/1.1.11:
1624
1624
  dependencies:
1625
1625
  balanced-match: 1.0.2
@@ -3294,7 +3294,7 @@ specifiers:
3294
3294
  '@types/node': ^18.6.2
3295
3295
  autoprefixer: ^10.4.7
3296
3296
  babel-loader: ^8.2.5
3297
- bootstrap: ^5.2.0
3297
+ bootstrap: ^5.2.1
3298
3298
  bootstrap-icons: ^1.9.1
3299
3299
  core-js: ^3.24.0
3300
3300
  css-loader: ^6.7.1
@@ -3,7 +3,7 @@ import { ITippyProps } from "../types";
3
3
  import { IPopover, IPopoverProps } from "./types";
4
4
  import { Button } from "../button";
5
5
  import { Base } from "../base";
6
- import { appendContent } from "../common";
6
+ import { appendContent, setClassNames } from "../common";
7
7
 
8
8
  /**
9
9
  * Popover Types
@@ -213,9 +213,11 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
213
213
  // Create the popover content element
214
214
  this._elContent = document.createElement("div") as HTMLDivElement;
215
215
  this._elContent.classList.add("popover-content");
216
- this._elContent.innerHTML = '<h5 class="popover-header m-0"></h5><div class="popover-body"></div>';
216
+ this._elContent.innerHTML = '<div class="popover-header"></div><div class="popover-body"></div>';
217
217
  appendContent(this._elContent.querySelector(".popover-header"), this.props.title);
218
+ setClassNames(this._elContent.querySelector(".popover-header"), this.props.classNameHeader);
218
219
  appendContent(this._elContent.querySelector(".popover-body"), options.content as any);
220
+ setClassNames(this._elContent.querySelector(".popover-body"), this.props.classNameBody);
219
221
  options.content = this._elContent;
220
222
 
221
223
  // Set the on create event
@@ -96,6 +96,8 @@ export interface IPopover {
96
96
  */
97
97
  export interface IPopoverProps extends IBaseProps<IPopover> {
98
98
  btnProps?: IButtonProps;
99
+ classNameBody?: string;
100
+ classNameHeader?: string;
99
101
  isDismissible?: boolean;
100
102
  options?: ITippyProps;
101
103
  placement?: number;
@@ -1788,7 +1788,7 @@ export enum IconTypes {
1788
1788
  WindowSplit = 1786,
1789
1789
  WindowStack = 1787,
1790
1790
  WindowX = 1788,
1791
- AppWindow = 1789,
1791
+ Window_ = 1789,
1792
1792
  Windows = 1790,
1793
1793
  Wordpress = 1791,
1794
1794
  WrenchAdjustableCircleFill = 1792,
@@ -3607,7 +3607,7 @@ export const IconTypes: {
3607
3607
  // window-x.svg
3608
3608
  WindowX: number;
3609
3609
  // window.svg
3610
- AppWindow: number;
3610
+ Window_: number;
3611
3611
  // windows.svg
3612
3612
  Windows: number;
3613
3613
  // wordpress.svg
@@ -5372,7 +5372,7 @@ export const Icons = (iconType:number, height?:number, width?:number, className?
5372
5372
  return SVGIcons.windowX(height, width, className);
5373
5373
  // window.svg
5374
5374
  case 1789:
5375
- return SVGIcons.appWindow(height, width, className);
5375
+ return SVGIcons.window_(height, width, className);
5376
5376
  // windows.svg
5377
5377
  case 1790:
5378
5378
  return SVGIcons.windows(height, width, className);
@@ -3575,7 +3575,7 @@ export const windowStack: (height?:number, width?:number, className?:string) =>
3575
3575
  // window-x.svg
3576
3576
  export const windowX: (height?:number, width?:number, className?:string) => HTMLElement;
3577
3577
  // window.svg
3578
- export const appWindow: (height?:number, width?:number, className?:string) => HTMLElement;
3578
+ export const window_: (height?:number, width?:number, className?:string) => HTMLElement;
3579
3579
  // windows.svg
3580
3580
  export const windows: (height?:number, width?:number, className?:string) => HTMLElement;
3581
3581
  // wordpress.svg
@@ -1786,7 +1786,7 @@ export * from "./windowSidebar";
1786
1786
  export * from "./windowSplit";
1787
1787
  export * from "./windowStack";
1788
1788
  export * from "./windowX";
1789
- export * from "./appWindow";
1789
+ export * from "./window_";
1790
1790
  export * from "./windows";
1791
1791
  export * from "./wordpress";
1792
1792
  export * from "./wrenchAdjustableCircleFill";
@@ -0,0 +1 @@
1
+ export const window_: (height?:number, width?:number, className?:string) => HTMLElement;
@@ -1,4 +1,4 @@
1
1
  import { generateIcon } from "../generate";
2
- export function appWindow(height, width, className?) {
2
+ export function window_(height, width, className?) {
3
3
  return generateIcon(`<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-window' viewBox='0 0 16 16'> <path d='M2.5 4a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1zm2-.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm1 .5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z'/> <path d='M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm13 2v2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1zM2 14a1 1 0 0 1-1-1V6h14v7a1 1 0 0 1-1 1H2z'/> </svg>`, height, width, className);
4
4
  }
@@ -1 +0,0 @@
1
- export const appWindow: (height?:number, width?:number, className?:string) => HTMLElement;