@fluid-topics/ft-popover 1.2.50 → 1.2.52
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/ft-popover.light.js +218 -218
- package/build/ft-popover.min.js +48 -48
- package/build/ftds-popover.d.ts +2 -0
- package/build/ftds-popover.js +10 -6
- package/package.json +7 -7
package/build/ftds-popover.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
|
3
3
|
import { FtdsPopoverProperties } from "./ftds-popover.properties";
|
|
4
4
|
import { DesignSystemFamily, DesignSystemSize } from "@fluid-topics/design-system-variables";
|
|
5
5
|
import { Position } from "@fluid-topics/ft-tooltip";
|
|
6
|
+
import { FtIcons } from "@fluid-topics/ft-icon";
|
|
6
7
|
export declare class FtdsPopover extends FtLitElement implements FtdsPopoverProperties {
|
|
7
8
|
static elementDefinitions: ElementDefinitionsMap;
|
|
8
9
|
static styles: import("lit").CSSResult;
|
|
9
10
|
private popoverOpenTriggeredWithKeyboard;
|
|
10
11
|
heading: string;
|
|
11
12
|
closeButtonLabel: string;
|
|
13
|
+
openButtonIcon: FtIcons;
|
|
12
14
|
openButtonLabel: string;
|
|
13
15
|
openButtonTooltipPosition: Position;
|
|
14
16
|
opened: boolean;
|
package/build/ftds-popover.js
CHANGED
|
@@ -19,6 +19,7 @@ class FtdsPopover extends FtLitElement {
|
|
|
19
19
|
this.popoverOpenTriggeredWithKeyboard = false;
|
|
20
20
|
this.heading = "";
|
|
21
21
|
this.closeButtonLabel = "close info";
|
|
22
|
+
this.openButtonIcon = FtIcons.CIRCLE_QUESTION;
|
|
22
23
|
this.openButtonLabel = "more info";
|
|
23
24
|
this.openButtonTooltipPosition = "bottom";
|
|
24
25
|
this.opened = false;
|
|
@@ -51,7 +52,7 @@ class FtdsPopover extends FtLitElement {
|
|
|
51
52
|
<ftds-button @focusin="${this.close}"
|
|
52
53
|
part="opening-button"
|
|
53
54
|
size="${this.openButtonSize}" family="${this.openButtonFamily}" label="${this.openButtonLabel}"
|
|
54
|
-
tooltipposition="${this.openButtonTooltipPosition}" icon="${
|
|
55
|
+
tooltipposition="${this.openButtonTooltipPosition}" icon="${this.openButtonIcon}"
|
|
55
56
|
aria-haspopup="true" aria-expanded="${this.opened}" aria-controls="ftds-popover-dialog"
|
|
56
57
|
@click=${this.open}>
|
|
57
58
|
</ftds-button>
|
|
@@ -78,7 +79,7 @@ class FtdsPopover extends FtLitElement {
|
|
|
78
79
|
<slot name="link"
|
|
79
80
|
part="popover-link"
|
|
80
81
|
class="ftds-popover--link"
|
|
81
|
-
@slotchange=${this.requestUpdate}
|
|
82
|
+
@slotchange=${() => this.requestUpdate()}
|
|
82
83
|
></slot>
|
|
83
84
|
</ft-typography>
|
|
84
85
|
</div>
|
|
@@ -148,16 +149,19 @@ FtdsPopover.elementDefinitions = {
|
|
|
148
149
|
};
|
|
149
150
|
FtdsPopover.styles = styles;
|
|
150
151
|
__decorate([
|
|
151
|
-
property(
|
|
152
|
+
property()
|
|
152
153
|
], FtdsPopover.prototype, "heading", void 0);
|
|
153
154
|
__decorate([
|
|
154
|
-
property(
|
|
155
|
+
property()
|
|
155
156
|
], FtdsPopover.prototype, "closeButtonLabel", void 0);
|
|
156
157
|
__decorate([
|
|
157
|
-
property(
|
|
158
|
+
property()
|
|
159
|
+
], FtdsPopover.prototype, "openButtonIcon", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
property()
|
|
158
162
|
], FtdsPopover.prototype, "openButtonLabel", void 0);
|
|
159
163
|
__decorate([
|
|
160
|
-
property(
|
|
164
|
+
property()
|
|
161
165
|
], FtdsPopover.prototype, "openButtonTooltipPosition", void 0);
|
|
162
166
|
__decorate([
|
|
163
167
|
property({ type: Boolean })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-popover",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.52",
|
|
4
4
|
"description": "A simple popover component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fluid-topics/design-system-variables": "0.1.92",
|
|
23
|
-
"@fluid-topics/ft-button": "1.2.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.2.
|
|
25
|
-
"@fluid-topics/ft-link": "1.2.
|
|
26
|
-
"@fluid-topics/ft-typography": "1.2.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
23
|
+
"@fluid-topics/ft-button": "1.2.52",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.2.52",
|
|
25
|
+
"@fluid-topics/ft-link": "1.2.52",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.2.52",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.2.52",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "5bdea3806bc9a17448a0533c5c3ecfee0cfa8bac"
|
|
31
31
|
}
|