@fluid-topics/ft-icon 0.3.51 → 0.3.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-icon.css.js +3 -1
- package/build/ft-icon.light.js +3 -1
- package/build/ft-icon.min.js +4 -2
- package/package.json +3 -3
package/build/ft-icon.css.js
CHANGED
|
@@ -12,7 +12,8 @@ export const styles = css `
|
|
|
12
12
|
:host, i.ft-icon {
|
|
13
13
|
display: inline-flex;
|
|
14
14
|
align-items: center;
|
|
15
|
-
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
flex-grow: 0;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
:host {
|
|
@@ -44,6 +45,7 @@ export const styles = css `
|
|
|
44
45
|
font-size: calc(0.9 * ${FtIconCssVariables.size});
|
|
45
46
|
position: relative;
|
|
46
47
|
top: -5%;
|
|
48
|
+
justify-content: center;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
.ft-icon--file-format {
|
package/build/ft-icon.light.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
:host, i.ft-icon {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
5
|
-
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
flex-grow: 0;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
:host {
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
font-size: calc(0.9 * ${s.size});
|
|
35
36
|
position: relative;
|
|
36
37
|
top: -5%;
|
|
38
|
+
justify-content: center;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
.ft-icon--file-format {
|
package/build/ft-icon.min.js
CHANGED
|
@@ -64,7 +64,7 @@ function(t){return class extends t{createRenderRoot(){const t=this.constructor,{
|
|
|
64
64
|
<style>${t}</style>
|
|
65
65
|
`))}
|
|
66
66
|
${this.getTemplate()}
|
|
67
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,s,o,n,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(s=t.getAttribute("part"))||void 0===s?void 0:s.split(" "))&&void 0!==o?o:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}pt([s()],dt.prototype,"exportpartsPrefix",void 0),pt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],dt.prototype,"exportpartsPrefixes",void 0),p`
|
|
67
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,s,o,n,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(s=t.getAttribute("part"))||void 0===s?void 0:s.split(" "))&&void 0!==o?o:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}pt([s()],dt.prototype,"exportpartsPrefix",void 0),pt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],dt.prototype,"exportpartsPrefixes",void 0),pt([s()],dt.prototype,"customStylesheet",void 0),p`
|
|
68
68
|
.ft-no-text-select {
|
|
69
69
|
-webkit-touch-callout: none;
|
|
70
70
|
-webkit-user-select: none;
|
|
@@ -100,7 +100,8 @@ const ut=2;class xt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
100
100
|
:host, i.ft-icon {
|
|
101
101
|
display: inline-flex;
|
|
102
102
|
align-items: center;
|
|
103
|
-
|
|
103
|
+
flex-shrink: 0;
|
|
104
|
+
flex-grow: 0;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
:host {
|
|
@@ -132,6 +133,7 @@ const ut=2;class xt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
132
133
|
font-size: calc(0.9 * ${yt.size});
|
|
133
134
|
position: relative;
|
|
134
135
|
top: -5%;
|
|
136
|
+
justify-content: center;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
.ft-icon--file-format {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-icon",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.52",
|
|
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.3.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "0.3.52",
|
|
23
23
|
"lit": "2.2.8"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "746cdd6b34c2fa25220ed735914fb1dff9c0fde7"
|
|
26
26
|
}
|