@fluid-topics/ft-dialog 0.3.71 → 1.0.0-alpha.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.
@@ -13,4 +13,3 @@ export declare const FtDialogCssVariables: {
13
13
  elevation24: import("@fluid-topics/ft-wc-utils").FtCssVariable;
14
14
  };
15
15
  export declare const styles: import("lit").CSSResult;
16
- //# sourceMappingURL=ft-dialog.css.d.ts.map
@@ -116,4 +116,3 @@ export const styles = css `
116
116
  }
117
117
 
118
118
  `;
119
- //# sourceMappingURL=ft-dialog.css.js.map
@@ -1,5 +1,6 @@
1
1
  import { PropertyValues } from "lit";
2
2
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
3
+ import { FtIconVariants } from "@fluid-topics/ft-icon";
3
4
  import { FtDialogProperties } from "./ft-dialog.properties";
4
5
  export declare class FtDialog extends FtLitElement implements FtDialogProperties {
5
6
  static elementDefinitions: ElementDefinitionsMap;
@@ -10,6 +11,7 @@ export declare class FtDialog extends FtLitElement implements FtDialogProperties
10
11
  beforeClose: () => boolean;
11
12
  heading: string;
12
13
  icon: string;
14
+ iconVariant?: FtIconVariants;
13
15
  buttons: Array<HTMLElement>;
14
16
  static styles: import("lit").CSSResult;
15
17
  protected render(): import("lit-html").TemplateResult<1> | null;
@@ -19,4 +21,3 @@ export declare class FtDialog extends FtLitElement implements FtDialogProperties
19
21
  private watchEscapeKey;
20
22
  private onClickOutside;
21
23
  }
22
- //# sourceMappingURL=ft-dialog.d.ts.map
@@ -11,7 +11,7 @@ import { FtTypography } from "@fluid-topics/ft-typography";
11
11
  import { FtIcon } from "@fluid-topics/ft-icon";
12
12
  import { FtButton } from "@fluid-topics/ft-button";
13
13
  import { styles } from "./ft-dialog.css";
14
- export class FtDialog extends FtLitElement {
14
+ class FtDialog extends FtLitElement {
15
15
  constructor() {
16
16
  super(...arguments);
17
17
  this.opened = false;
@@ -38,7 +38,7 @@ export class FtDialog extends FtLitElement {
38
38
  ${this.heading ? html `
39
39
  <div class="ft-dialog-heading">
40
40
  ${this.icon ? html `
41
- <ft-icon variant="material">${this.icon}</ft-icon>
41
+ <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
42
42
  ` : undefined}
43
43
  <ft-typography element="span" variant="title">${this.heading}</ft-typography>
44
44
  ${this.closable ? html `
@@ -47,7 +47,9 @@ export class FtDialog extends FtLitElement {
47
47
  </div>
48
48
  ` : null}
49
49
  <div class="ft-dialog-content">
50
- <slot></slot>
50
+ <ft-typography variant="body1">
51
+ <slot></slot>
52
+ </ft-typography>
51
53
  </div>
52
54
  <slot name="buttons"
53
55
  class="ft-dialog-buttons ${this.buttons.length > 0 ? "" : "ft-dialog-no-buttons"}"
@@ -112,12 +114,15 @@ __decorate([
112
114
  property({ type: () => Boolean })
113
115
  ], FtDialog.prototype, "beforeClose", void 0);
114
116
  __decorate([
115
- property({ type: String })
117
+ property()
116
118
  ], FtDialog.prototype, "heading", void 0);
117
119
  __decorate([
118
- property({ type: String })
120
+ property()
119
121
  ], FtDialog.prototype, "icon", void 0);
122
+ __decorate([
123
+ property()
124
+ ], FtDialog.prototype, "iconVariant", void 0);
120
125
  __decorate([
121
126
  queryAssignedElements({ slot: "buttons" })
122
127
  ], FtDialog.prototype, "buttons", void 0);
123
- //# sourceMappingURL=ft-dialog.js.map
128
+ export { FtDialog };