@fluid-topics/ft-reader-navigation-button 1.0.60 → 1.0.62

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.
@@ -223,12 +223,14 @@
223
223
  vertical-align: inherit;
224
224
  }
225
225
  `,Dt=[Object.keys(v).map((t=>function(t){const o=v[t];return e.css`
226
- font-family: ${o.fontFamily};
227
- font-size: ${o.fontSize};
228
- font-weight: ${o.fontWeight};
229
- letter-spacing: ${o.letterSpacing};
230
- line-height: ${o.lineHeight};
231
- text-transform: ${o.textCase};
226
+ .ft-typography--${e.unsafeCSS(t)} {
227
+ font-family: ${o.fontFamily};
228
+ font-size: ${o.fontSize};
229
+ font-weight: ${o.fontWeight};
230
+ letter-spacing: ${o.letterSpacing};
231
+ line-height: ${o.lineHeight};
232
+ text-transform: ${o.textCase};
233
+ }
232
234
  `}(t)))],At={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ht=e.css`
233
235
  :host {
234
236
  line-height: 0;
@@ -589,7 +591,7 @@ const Do=Symbol.for(""),Ao=t=>{if((null==t?void 0:t.r)===Do)return null==t?void
589
591
  </ft-tooltip>
590
592
  `:t}resolveIcon(){return this.loading?e.html`
591
593
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
592
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}pe.elementDefinitions={"ft-ripple":oo,"ft-tooltip":ie,"ft-typography":Mo,"ft-icon":ne,"ft-loader":le},ce([r.property({type:String,reflect:!0})],pe.prototype,"role",void 0),ce([r.property()],pe.prototype,"type",void 0),ce([r.property({type:Boolean})],pe.prototype,"disabled",void 0),ce([r.property()],pe.prototype,"label",void 0),ce([r.property()],pe.prototype,"icon",void 0),ce([r.property()],pe.prototype,"iconVariant",void 0),ce([r.property({type:Boolean})],pe.prototype,"trailingIcon",void 0),ce([r.property({type:Boolean})],pe.prototype,"loading",void 0),ce([r.property()],pe.prototype,"tooltipPosition",void 0),ce([r.property({type:Boolean})],pe.prototype,"hideTooltip",void 0),ce([r.property({type:Boolean})],pe.prototype,"forceTooltip",void 0),ce([r.query(".ft-button")],pe.prototype,"button",void 0),ce([r.query(".ft-button--label slot")],pe.prototype,"slottedContent",void 0);var se=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class fe extends pe{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}fe.styles=[o.safariEllipsisFix,Jt],se([r.property({type:Boolean})],fe.prototype,"primary",void 0),se([r.property({type:Boolean})],fe.prototype,"outlined",void 0),se([r.property({type:Boolean})],fe.prototype,"disabled",void 0),se([r.property({type:Boolean})],fe.prototype,"dense",void 0),se([r.property({type:Boolean})],fe.prototype,"round",void 0);const de=[e.css`
594
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}pe.elementDefinitions={"ft-ripple":oo,"ft-tooltip":ie,"ft-typography":Mo,"ft-icon":ne,"ft-loader":le},ce([r.property({type:String,reflect:!0})],pe.prototype,"role",void 0),ce([r.property()],pe.prototype,"type",void 0),ce([r.property({type:Boolean})],pe.prototype,"disabled",void 0),ce([r.property()],pe.prototype,"label",void 0),ce([r.property()],pe.prototype,"icon",void 0),ce([r.property()],pe.prototype,"iconVariant",void 0),ce([r.property({type:Boolean})],pe.prototype,"trailingIcon",void 0),ce([r.property({type:Boolean})],pe.prototype,"loading",void 0),ce([r.property()],pe.prototype,"tooltipPosition",void 0),ce([r.property({type:Boolean})],pe.prototype,"hideTooltip",void 0),ce([r.property({type:Boolean})],pe.prototype,"forceTooltip",void 0),ce([r.query(".ft-button")],pe.prototype,"button",void 0),ce([r.query(".ft-button--label slot")],pe.prototype,"slottedContent",void 0);var se=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class fe extends pe{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}fe.styles=[o.safariEllipsisFix,Jt],se([r.property({type:Boolean})],fe.prototype,"primary",void 0),se([r.property({type:Boolean})],fe.prototype,"outlined",void 0),se([r.property({type:Boolean})],fe.prototype,"dense",void 0),se([r.property({type:Boolean})],fe.prototype,"round",void 0);const de=[e.css`
593
595
  :host {
594
596
  display: inline-block;
595
597
  max-width: 100%;
@@ -319,12 +319,14 @@ var dt,ht;let ut=class extends E{constructor(){super(...arguments),this.renderOp
319
319
  vertical-align: inherit;
320
320
  }
321
321
  `,ve=[Object.keys(vt).map((t=>function(t){const o=vt[t];return b`
322
- font-family: ${o.fontFamily};
323
- font-size: ${o.fontSize};
324
- font-weight: ${o.fontWeight};
325
- letter-spacing: ${o.letterSpacing};
326
- line-height: ${o.lineHeight};
327
- text-transform: ${o.textCase};
322
+ .ft-typography--${g(t)} {
323
+ font-family: ${o.fontFamily};
324
+ font-size: ${o.fontSize};
325
+ font-weight: ${o.fontWeight};
326
+ letter-spacing: ${o.letterSpacing};
327
+ line-height: ${o.lineHeight};
328
+ text-transform: ${o.textCase};
329
+ }
328
330
  `}(t)))],Oe={color:bt.extend("--ft-loader-color","",St.colorPrimary),size:bt.create("--ft-loader-size","","SIZE","80px")},Ne=b`
329
331
  :host {
330
332
  line-height: 0;
@@ -702,7 +704,7 @@ class ir extends ze{constructor(t){if(super(t),this.et=q,t.type!==Fe)throw Error
702
704
  </ft-tooltip>
703
705
  `:t}resolveIcon(){return this.loading?V`
704
706
  <ft-loader part="loader icon"></ft-loader> `:this.icon?V`
705
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}hr.elementDefinitions={"ft-ripple":Me,"ft-tooltip":rr,"ft-typography":Ye,"ft-icon":pr,"ft-loader":fr},dr([r({type:String,reflect:!0})],hr.prototype,"role",void 0),dr([r()],hr.prototype,"type",void 0),dr([r({type:Boolean})],hr.prototype,"disabled",void 0),dr([r()],hr.prototype,"label",void 0),dr([r()],hr.prototype,"icon",void 0),dr([r()],hr.prototype,"iconVariant",void 0),dr([r({type:Boolean})],hr.prototype,"trailingIcon",void 0),dr([r({type:Boolean})],hr.prototype,"loading",void 0),dr([r()],hr.prototype,"tooltipPosition",void 0),dr([r({type:Boolean})],hr.prototype,"hideTooltip",void 0),dr([r({type:Boolean})],hr.prototype,"forceTooltip",void 0),dr([a(".ft-button")],hr.prototype,"button",void 0),dr([a(".ft-button--label slot")],hr.prototype,"slottedContent",void 0);var ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yr extends hr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}yr.styles=[Lt,We],ur([r({type:Boolean})],yr.prototype,"primary",void 0),ur([r({type:Boolean})],yr.prototype,"outlined",void 0),ur([r({type:Boolean})],yr.prototype,"disabled",void 0),ur([r({type:Boolean})],yr.prototype,"dense",void 0),ur([r({type:Boolean})],yr.prototype,"round",void 0);const gr=[b`
707
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}hr.elementDefinitions={"ft-ripple":Me,"ft-tooltip":rr,"ft-typography":Ye,"ft-icon":pr,"ft-loader":fr},dr([r({type:String,reflect:!0})],hr.prototype,"role",void 0),dr([r()],hr.prototype,"type",void 0),dr([r({type:Boolean})],hr.prototype,"disabled",void 0),dr([r()],hr.prototype,"label",void 0),dr([r()],hr.prototype,"icon",void 0),dr([r()],hr.prototype,"iconVariant",void 0),dr([r({type:Boolean})],hr.prototype,"trailingIcon",void 0),dr([r({type:Boolean})],hr.prototype,"loading",void 0),dr([r()],hr.prototype,"tooltipPosition",void 0),dr([r({type:Boolean})],hr.prototype,"hideTooltip",void 0),dr([r({type:Boolean})],hr.prototype,"forceTooltip",void 0),dr([a(".ft-button")],hr.prototype,"button",void 0),dr([a(".ft-button--label slot")],hr.prototype,"slottedContent",void 0);var ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yr extends hr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}yr.styles=[Lt,We],ur([r({type:Boolean})],yr.prototype,"primary",void 0),ur([r({type:Boolean})],yr.prototype,"outlined",void 0),ur([r({type:Boolean})],yr.prototype,"dense",void 0),ur([r({type:Boolean})],yr.prototype,"round",void 0);const gr=[b`
706
708
  :host {
707
709
  display: inline-block;
708
710
  max-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-navigation-button",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "Button used to navigate between pages in an integrated reader context.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "1.0.60",
23
- "@fluid-topics/ft-reader-context": "1.0.60",
24
- "@fluid-topics/ft-reader-internal-link": "1.0.60",
25
- "@fluid-topics/ft-tooltip": "1.0.60",
26
- "@fluid-topics/ft-wc-utils": "1.0.60",
22
+ "@fluid-topics/ft-button": "1.0.62",
23
+ "@fluid-topics/ft-reader-context": "1.0.62",
24
+ "@fluid-topics/ft-reader-internal-link": "1.0.62",
25
+ "@fluid-topics/ft-tooltip": "1.0.62",
26
+ "@fluid-topics/ft-wc-utils": "1.0.62",
27
27
  "lit": "2.7.2"
28
28
  },
29
- "gitHead": "8eb7c2ef052f5d3f61ed0bf150fcaee093805450"
29
+ "gitHead": "44e9005773fe47b2e6a9ada16802918052a146cf"
30
30
  }