@fluid-topics/ft-dialog 1.3.22 → 1.3.23

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.
@@ -2,6 +2,7 @@ import { PropertyValues } from "lit";
2
2
  import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
3
3
  import { FtIconVariants } from "@fluid-topics/ft-icon";
4
4
  import { FtDialogProperties } from "./ft-dialog.properties";
5
+ /** @deprecated use FtDsModal or FtModal */
5
6
  export declare class FtDialog extends FtLitElement implements FtDialogProperties {
6
7
  static elementDefinitions: ElementDefinitionsMap;
7
8
  opened: boolean;
@@ -5,12 +5,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { html } from "lit";
8
- import { property, queryAssignedElements, } from "lit/decorators.js";
8
+ import { property, queryAssignedElements } from "lit/decorators.js";
9
9
  import { FtLitElement } from "@fluid-topics/ft-wc-utils";
10
- import { FtTypography } from "@fluid-topics/ft-typography";
10
+ import { FtTypography, FtTypographyVariants } 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.styles";
14
+ /** @deprecated use FtDsModal or FtModal */
14
15
  class FtDialog extends FtLitElement {
15
16
  constructor() {
16
17
  super(...arguments);
@@ -33,21 +34,21 @@ class FtDialog extends FtLitElement {
33
34
  }
34
35
  return html `
35
36
  <div class="ft-dialog" part="container">
36
- <div class="ft-dialog-overlay" part="overlay" @click="${() => this.onClickOutside()}"></div>
37
+ <div class="ft-dialog-overlay" part="overlay" @click=${() => this.onClickOutside()}></div>
37
38
  <div class="ft-dialog-wrapper" part="wrapper">
38
39
  ${this.heading ? html `
39
40
  <div class="ft-dialog-heading" part="heading">
40
41
  ${this.icon ? html `
41
42
  <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
42
43
  ` : undefined}
43
- <ft-typography element="span" variant="title">${this.heading}</ft-typography>
44
+ <ft-typography element="span" variant="${FtTypographyVariants.title1}">${this.heading}</ft-typography>
44
45
  ${this.closable ? html `
45
46
  <ft-button round icon="close" @click=${this.close}></ft-button>
46
47
  ` : undefined}
47
48
  </div>
48
49
  ` : null}
49
50
  <div class="ft-dialog-content" part="content">
50
- <ft-typography variant="body1">
51
+ <ft-typography variant="${FtTypographyVariants.body1}">
51
52
  <slot></slot>
52
53
  </ft-typography>
53
54
  </div>
@@ -99,8 +100,8 @@ __decorate([
99
100
  property({
100
101
  type: Boolean,
101
102
  hasChanged(newVal, oldVal) {
102
- return ((oldVal === false && newVal === true) ||
103
- (oldVal === true && newVal === false));
103
+ return ((oldVal === false && newVal === true)
104
+ || (oldVal === true && newVal === false));
104
105
  },
105
106
  })
106
107
  ], FtDialog.prototype, "opened", void 0);