gd-bs 6.6.95 → 6.6.97

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/index.html CHANGED
@@ -136,6 +136,7 @@
136
136
  el: document.getElementById("tooltip"),
137
137
  content: "This is a tooltip.",
138
138
  placement: 15,
139
+ type: GD.Components.TooltipTypes.Primary,
139
140
  btnProps: {
140
141
  text: "Test Tooltip",
141
142
  type: GD.Components.ButtonTypes.OutlineDanger
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.95",
3
+ "version": "6.6.97",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -81,10 +81,10 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
81
81
  elContent: this._elContent,
82
82
  elTarget: this.el,
83
83
  options: {
84
- ...{ arrow: true, flip: true, shift: { padding: 5 } },
84
+ ...{ arrow: true, flip: true, shift: { padding: 5 }, trigger: "mouse" },
85
85
  ...this.props.options
86
86
  },
87
- placement: this.props.placement,
87
+ placement: this.props.placement || FloatingUIPlacements.Top,
88
88
  show: this.props.show,
89
89
  theme: this.props.type
90
90
  });
@@ -235,11 +235,11 @@ class _Tooltip extends Base<ITooltipProps> {
235
235
  elContent: this._elContent,
236
236
  elTarget: this.el,
237
237
  options: {
238
- ...{ arrow: true, flip: true, shift: { padding: 5 } },
238
+ ...{ arrow: true, flip: true, shift: { padding: 5 }, trigger: "mouse" },
239
239
  ...this.props.options
240
240
  },
241
241
  show: this.props.show,
242
- placement: this.props.placement,
242
+ placement: this.props.placement || FloatingUIPlacements.Top,
243
243
  theme: this.props.type
244
244
  });
245
245
  }
@@ -1,3 +1,9 @@
1
+ /** Variables */
2
+ :root {
3
+ --bs-tooltip-border-radius: 0.375rem;
4
+ --bs-tooltip-max-width: 200px;
5
+ }
6
+
1
7
  /** Floating-UI Element */
2
8
  .bs.floating-ui {
3
9
  margin: 0px;
@@ -6,9 +12,8 @@
6
12
  position: absolute;
7
13
 
8
14
  &.floating-tooltip {
9
- border-radius: var(--bs-tooltip-border-radius, 5px);
15
+ border-radius: var(--bs-tooltip-border-radius);
10
16
  max-width: var(--bs-tooltip-max-width);
11
- padding: var(--bs-tooltip-padding-y) var (--bs-tooltip-padding-x);
12
17
  text-align: center;
13
18
  }
14
19