@fluid-topics/ft-icon 0.2.15 → 0.2.16

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.
@@ -85,8 +85,10 @@ class lt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e
85
85
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
86
86
  </i>
87
87
  `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===dt.file_format?null!==(t=ht[i.toUpperCase()])&&void 0!==t?t:i:this.variant===dt.fluid_topics?null!==(e=ct[i.toUpperCase()])&&void 0!==e?e:i:_}}var bt;mt.elementDefinitions={},mt.styles=l`
88
- :host, i.ft-icon {
88
+ :host {
89
89
  display: inline-block;
90
+ }
91
+ :host, i.ft-icon {
90
92
  width: ${pt};
91
93
  height: ${pt};
92
94
  text-align: center;
package/build/ft-icon.js CHANGED
@@ -53,8 +53,10 @@ export class FtIcon extends FtLitElement {
53
53
  FtIcon.elementDefinitions = {};
54
54
  //language=css
55
55
  FtIcon.styles = css `
56
- :host, i.ft-icon {
56
+ :host {
57
57
  display: inline-block;
58
+ }
59
+ :host, i.ft-icon {
58
60
  width: ${FtIconCssVariables.size};
59
61
  height: ${FtIconCssVariables.size};
60
62
  text-align: center;
@@ -4,8 +4,10 @@
4
4
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
5
5
  </i>
6
6
  `}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}getIcon(){var t,o;let i=this.textContent;return this.variant===e.FtIconVariants.file_format?null!==(t=e.FtFileFormatIcons[i.toUpperCase()])&&void 0!==t?t:i:this.variant===e.FtIconVariants.fluid_topics?null!==(o=e.FtIcons[i.toUpperCase()])&&void 0!==o?o:i:a.nothing}}f.elementDefinitions={},f.styles=a.css`
7
- :host, i.ft-icon {
7
+ :host {
8
8
  display: inline-block;
9
+ }
10
+ :host, i.ft-icon {
9
11
  width: ${c.size};
10
12
  height: ${c.size};
11
13
  text-align: center;
@@ -85,8 +85,10 @@ class lt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e
85
85
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
86
86
  </i>
87
87
  `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var e,i;let s=this.textContent;return this.variant===t.FtIconVariants.file_format?null!==(e=t.FtFileFormatIcons[s.toUpperCase()])&&void 0!==e?e:s:this.variant===t.FtIconVariants.fluid_topics?null!==(i=t.FtIcons[s.toUpperCase()])&&void 0!==i?i:s:B}}var bt;vt.elementDefinitions={},vt.styles=l`
88
- :host, i.ft-icon {
88
+ :host {
89
89
  display: inline-block;
90
+ }
91
+ :host, i.ft-icon {
90
92
  width: ${mt.size};
91
93
  height: ${mt.size};
92
94
  text-align: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-icon",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Typography components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "^0.2.15",
22
+ "@fluid-topics/ft-wc-utils": "^0.2.16",
23
23
  "lit": "2.1.3"
24
24
  },
25
- "gitHead": "d8f4700bb2461618dc2d1786e0091360556e9e24"
25
+ "gitHead": "d57a682474d27df7e667d8616a2fbca7643d51c2"
26
26
  }