@fluid-topics/ft-select 0.1.7 → 0.1.10

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.
@@ -114,7 +114,8 @@ let FtSelect = class FtSelect extends FtLitElement {
114
114
  color: ${FtSelectCssVariables.colorOnSurfaceDisabled};
115
115
  }
116
116
 
117
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel {
117
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
118
+ .ft-select:not(.ft-select--disabled) .ft-select--option {
118
119
  cursor: pointer;
119
120
  }
120
121
 
@@ -101,7 +101,11 @@ const U=t=>({_$litStatic$:t}),P=new Map,G=(t=>(e,...i)=>{var r;const o=i.length;
101
101
  line-height: ${Gt};
102
102
  text-transform: ${Vt};
103
103
  }
104
- `;let ee=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}getStyles(){return[Zt,Lt,qt,Wt,Kt,Xt,Yt,Jt,Qt,te]}getTemplate(){return this.element?G`
104
+ `;let ee=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}getStyles(){return[Zt,Lt,qt,Wt,Kt,Xt,Yt,Jt,Qt,te,e.css`
105
+ .ft-typography {
106
+ vertical-align: inherit;
107
+ }
108
+ `]}getTemplate(){return this.element?G`
105
109
  <${U(this.element)}
106
110
  class="ft-typography ft-typography--${this.variant}">
107
111
  <slot></slot>
@@ -201,11 +205,11 @@ const U=t=>({_$litStatic$:t}),P=new Map,G=(t=>(e,...i)=>{var r;const o=i.length;
201
205
  }
202
206
 
203
207
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
204
- padding: 4px;
208
+ padding: 2px 4px;
205
209
  z-index: ${re.raisedZIndex};
206
210
  background-color: ${re.colorSurface};
207
211
  border-radius: ${re.borderRadiusS};
208
- top: calc(var(--ft-typography-caption-line-height) / -2);
212
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
209
213
  }
210
214
 
211
215
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
@@ -440,7 +444,8 @@ const Te=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
440
444
  color: ${Ce.colorOnSurfaceDisabled};
441
445
  }
442
446
 
443
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel {
447
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
448
+ .ft-select:not(.ft-select--disabled) .ft-select--option {
444
449
  cursor: pointer;
445
450
  }
446
451
 
@@ -185,7 +185,11 @@ const Nt=t=>({_$litStatic$:t}),At=new Map,Mt=(t=>(e,...i)=>{var r;const o=i.leng
185
185
  line-height: ${Me};
186
186
  text-transform: ${Fe};
187
187
  }
188
- `;let He=class extends Et{constructor(){super(...arguments),this.variant=Ft.body1}getStyles(){return[Te,ze,Ue,je,_e,De,Be,Ie,Pe,Le]}getTemplate(){return this.element?Mt`
188
+ `;let He=class extends Et{constructor(){super(...arguments),this.variant=Ft.body1}getStyles(){return[Te,ze,Ue,je,_e,De,Be,Ie,Pe,Le,s`
189
+ .ft-typography {
190
+ vertical-align: inherit;
191
+ }
192
+ `]}getTemplate(){return this.element?Mt`
189
193
  <${Nt(this.element)}
190
194
  class="ft-typography ft-typography--${this.variant}">
191
195
  <slot></slot>
@@ -285,11 +289,11 @@ const Nt=t=>({_$litStatic$:t}),At=new Map,Mt=(t=>(e,...i)=>{var r;const o=i.leng
285
289
  }
286
290
 
287
291
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
288
- padding: 4px;
292
+ padding: 2px 4px;
289
293
  z-index: ${Ve.raisedZIndex};
290
294
  background-color: ${Ve.colorSurface};
291
295
  border-radius: ${Ve.borderRadiusS};
292
- top: calc(var(--ft-typography-caption-line-height) / -2);
296
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
293
297
  }
294
298
 
295
299
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
@@ -529,7 +533,8 @@ const vi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
529
533
  color: ${xi.colorOnSurfaceDisabled};
530
534
  }
531
535
 
532
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel {
536
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
537
+ .ft-select:not(.ft-select--disabled) .ft-select--option {
533
538
  cursor: pointer;
534
539
  }
535
540
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-select",
3
- "version": "0.1.7",
3
+ "version": "0.1.10",
4
4
  "description": "Value selector for a predefined list of choices",
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-input-label": "^0.1.7",
23
- "@fluid-topics/ft-ripple": "^0.1.7",
24
- "@fluid-topics/ft-typography": "^0.1.7",
25
- "@fluid-topics/ft-wc-utils": "^0.1.7",
22
+ "@fluid-topics/ft-input-label": "^0.1.10",
23
+ "@fluid-topics/ft-ripple": "^0.1.10",
24
+ "@fluid-topics/ft-typography": "^0.1.10",
25
+ "@fluid-topics/ft-wc-utils": "^0.1.10",
26
26
  "@material/mwc-icon": "^0.25.3",
27
27
  "lit": "^2.0.2"
28
28
  },
29
- "gitHead": "78397cca67971191c46739cfb6c87481aaa65745"
29
+ "gitHead": "af9249642eff7416fb4aa6371f82cb3f99086cec"
30
30
  }