gd-bs 5.7.1 → 5.7.2
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/bs.js +1 -1
- package/build/components/popover/index.js +3 -3
- package/build/components/tippy.js +10 -0
- package/build/components/tooltip/index.js +3 -3
- package/build/index-icons.js +3 -3
- package/build/index.js +3 -3
- package/dist/gd-bs-icons.js +1363 -1352
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +51 -55
- package/dist/gd-bs.js +1028 -1017
- package/dist/gd-bs.min.js +1 -1
- package/package.json +2 -1
- package/pnpm-lock.yaml +3324 -0
- package/src/components/popover/index.ts +3 -3
- package/src/components/popover/types.d.ts +4 -5
- package/src/components/tippy.ts +12 -0
- package/src/components/tooltip/index.ts +3 -3
- package/src/components/tooltip/types.d.ts +1 -2
- package/src/components/tooltipGroup/types.d.ts +1 -2
- package/src/components/types.d.ts +47 -0
- package/src/index-icons.ts +1 -1
- package/src/index.ts +1 -1
- package/src/types.d.ts +0 -45
|
@@ -27,7 +27,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Popover = exports.PopoverPlacements = exports.PopoverTypes = void 0;
|
|
30
|
-
var
|
|
30
|
+
var tippy_1 = require("../tippy");
|
|
31
31
|
var button_1 = require("../button");
|
|
32
32
|
var base_1 = require("../base");
|
|
33
33
|
var common_1 = require("../common");
|
|
@@ -207,7 +207,7 @@ var _Popover = /** @class */ (function (_super) {
|
|
|
207
207
|
inertia: true,
|
|
208
208
|
interactive: true,
|
|
209
209
|
placement: placement,
|
|
210
|
-
plugins: [
|
|
210
|
+
plugins: [tippy_1.animateFill, tippy_1.followCursor, tippy_1.inlinePositioning, tippy_1.sticky],
|
|
211
211
|
theme: theme
|
|
212
212
|
}, this.props.options);
|
|
213
213
|
// See if we are targeting an element
|
|
@@ -255,7 +255,7 @@ var _Popover = /** @class */ (function (_super) {
|
|
|
255
255
|
_this.props.options && _this.props.options.onCreate ? _this.props.options.onCreate(tippyObj) : null;
|
|
256
256
|
};
|
|
257
257
|
// Create the tippy
|
|
258
|
-
this._tippy = (0,
|
|
258
|
+
this._tippy = (0, tippy_1.default)(this.el, options);
|
|
259
259
|
};
|
|
260
260
|
/**
|
|
261
261
|
* Public Interface
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sticky = exports.inlinePositioning = exports.followCursor = exports.animateFill = void 0;
|
|
4
|
+
var tippyJS = require("tippy.js");
|
|
5
|
+
exports.animateFill = tippyJS.animateFill;
|
|
6
|
+
exports.followCursor = tippyJS.followCursor;
|
|
7
|
+
exports.inlinePositioning = tippyJS.inlinePositioning;
|
|
8
|
+
exports.sticky = tippyJS.sticky;
|
|
9
|
+
var tippy = (tippyJS.default || tippyJS);
|
|
10
|
+
exports.default = tippy;
|
|
@@ -27,7 +27,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Tooltip = exports.TooltipPlacements = exports.TooltipTypes = void 0;
|
|
30
|
-
var
|
|
30
|
+
var tippy_1 = require("../tippy");
|
|
31
31
|
var base_1 = require("../base");
|
|
32
32
|
var button_1 = require("../button");
|
|
33
33
|
var common_1 = require("../common");
|
|
@@ -276,7 +276,7 @@ var _Tooltip = /** @class */ (function (_super) {
|
|
|
276
276
|
inertia: true,
|
|
277
277
|
interactive: false,
|
|
278
278
|
placement: placement,
|
|
279
|
-
plugins: [
|
|
279
|
+
plugins: [tippy_1.animateFill, tippy_1.followCursor, tippy_1.inlinePositioning, tippy_1.sticky],
|
|
280
280
|
theme: theme
|
|
281
281
|
}, this.props.options);
|
|
282
282
|
// Create the tooltip content element
|
|
@@ -303,7 +303,7 @@ var _Tooltip = /** @class */ (function (_super) {
|
|
|
303
303
|
_this.props.options && _this.props.options.onCreate ? _this.props.options.onCreate(tippyObj) : null;
|
|
304
304
|
};
|
|
305
305
|
// Create the tippy
|
|
306
|
-
this._tippy = (0,
|
|
306
|
+
this._tippy = (0, tippy_1.default)(this.props.target || this.el, options);
|
|
307
307
|
};
|
|
308
308
|
Object.defineProperty(_Tooltip.prototype, "button", {
|
|
309
309
|
/**
|
package/build/index-icons.js
CHANGED
|
@@ -9,12 +9,12 @@ require("./ie");
|
|
|
9
9
|
var Components = require("./components");
|
|
10
10
|
exports.Components = Components;
|
|
11
11
|
// TippyJS library
|
|
12
|
-
var
|
|
13
|
-
exports.tippy =
|
|
12
|
+
var tippy_1 = require("./components/tippy");
|
|
13
|
+
exports.tippy = tippy_1.default;
|
|
14
14
|
// Icons
|
|
15
15
|
var icons_1 = require("./icons");
|
|
16
16
|
Object.defineProperty(exports, "Icons", { enumerable: true, get: function () { return icons_1.Icons; } });
|
|
17
17
|
Object.defineProperty(exports, "IconTypes", { enumerable: true, get: function () { return icons_1.IconTypes; } });
|
|
18
18
|
// Bootstrap Global library
|
|
19
|
-
var BS = { Components: Components, Icons: icons_1.Icons, IconTypes: icons_1.IconTypes, tippy:
|
|
19
|
+
var BS = { Components: Components, Icons: icons_1.Icons, IconTypes: icons_1.IconTypes, tippy: tippy_1.default };
|
|
20
20
|
window["GD"] = window["GD"] || BS;
|
package/build/index.js
CHANGED
|
@@ -9,8 +9,8 @@ require("./ie");
|
|
|
9
9
|
var Components = require("./components");
|
|
10
10
|
exports.Components = Components;
|
|
11
11
|
// TippyJS library
|
|
12
|
-
var
|
|
13
|
-
exports.tippy =
|
|
12
|
+
var tippy_1 = require("./components/tippy");
|
|
13
|
+
exports.tippy = tippy_1.default;
|
|
14
14
|
// Bootstrap Global library
|
|
15
|
-
var BS = { Components: Components, tippy:
|
|
15
|
+
var BS = { Components: Components, tippy: tippy_1.default };
|
|
16
16
|
window["GD"] = window["GD"] || BS;
|