@fluid-topics/ft-text-field 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.
- package/README.md +7 -8
- package/build/ft-text-field.light.js +7 -3
- package/build/ft-text-field.min.js +7 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ A text field input component.
|
|
|
3
3
|
## Install
|
|
4
4
|
|
|
5
5
|
```shell
|
|
6
|
-
npm install @fluid-topics/ft-
|
|
6
|
+
npm install @fluid-topics/ft-switch
|
|
7
7
|
yarn add @fluid-topics/ft-text-field
|
|
8
8
|
```
|
|
9
9
|
|
|
@@ -11,15 +11,14 @@ yarn add @fluid-topics/ft-text-field
|
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
13
|
import {html} from "lit"
|
|
14
|
-
import "@fluid-topics/ft-
|
|
14
|
+
import "@fluid-topics/ft-switch"
|
|
15
|
+
import {FtSwitchChange} from "@fluid-topics/ft-switch";
|
|
15
16
|
|
|
16
17
|
function render() {
|
|
17
18
|
return html`
|
|
18
|
-
<ft-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.dataList=${["Banana","Cucumber","Eggplant"]}>
|
|
23
|
-
</ft-text-field> `
|
|
19
|
+
<ft-switch @change=${(e: FtSwitchChange) => console.log("Value changed:", e.detail)}>
|
|
20
|
+
<ft-switch-option value="1">1</ft-switch-option>
|
|
21
|
+
<ft-switch-option value="2">2</ft-switch-option>
|
|
22
|
+
</ft-switch> `
|
|
24
23
|
}
|
|
25
24
|
```
|
|
@@ -101,7 +101,11 @@ const M=t=>({_$litStatic$:t}),U=new Map,V=(t=>(e,...i)=>{var r;const a=i.length;
|
|
|
101
101
|
line-height: ${Vt};
|
|
102
102
|
text-transform: ${Pt};
|
|
103
103
|
}
|
|
104
|
-
`;let te=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=P.body1}getStyles(){return[Gt,Zt,Lt,qt,Wt,Kt,Xt,Yt,Jt,Qt
|
|
104
|
+
`;let te=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=P.body1}getStyles(){return[Gt,Zt,Lt,qt,Wt,Kt,Xt,Yt,Jt,Qt,e.css`
|
|
105
|
+
.ft-typography {
|
|
106
|
+
vertical-align: inherit;
|
|
107
|
+
}
|
|
108
|
+
`]}getTemplate(){return this.element?V`
|
|
105
109
|
<${M(this.element)}
|
|
106
110
|
class="ft-typography ft-typography--${this.variant}">
|
|
107
111
|
<slot></slot>
|
|
@@ -201,11 +205,11 @@ const M=t=>({_$litStatic$:t}),U=new Map,V=(t=>(e,...i)=>{var r;const a=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: ${ie.raisedZIndex};
|
|
206
210
|
background-color: ${ie.colorSurface};
|
|
207
211
|
border-radius: ${ie.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 {
|
|
@@ -180,7 +180,11 @@ const vt=t=>({_$litStatic$:t}),gt=new Map,bt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
180
180
|
line-height: ${be};
|
|
181
181
|
text-transform: ${xe};
|
|
182
182
|
}
|
|
183
|
-
`;let Me=class extends ht{constructor(){super(...arguments),this.variant=xt.body1}getStyles(){return[we,$e,Oe,Se,Ee,ke,Re,Ce,Ne,Ae
|
|
183
|
+
`;let Me=class extends ht{constructor(){super(...arguments),this.variant=xt.body1}getStyles(){return[we,$e,Oe,Se,Ee,ke,Re,Ce,Ne,Ae,a`
|
|
184
|
+
.ft-typography {
|
|
185
|
+
vertical-align: inherit;
|
|
186
|
+
}
|
|
187
|
+
`]}getTemplate(){return this.element?bt`
|
|
184
188
|
<${vt(this.element)}
|
|
185
189
|
class="ft-typography ft-typography--${this.variant}">
|
|
186
190
|
<slot></slot>
|
|
@@ -280,11 +284,11 @@ const vt=t=>({_$litStatic$:t}),gt=new Map,bt=(t=>(e,...i)=>{var r;const o=i.leng
|
|
|
280
284
|
}
|
|
281
285
|
|
|
282
286
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
283
|
-
padding: 4px;
|
|
287
|
+
padding: 2px 4px;
|
|
284
288
|
z-index: ${Te.raisedZIndex};
|
|
285
289
|
background-color: ${Te.colorSurface};
|
|
286
290
|
border-radius: ${Te.borderRadiusS};
|
|
287
|
-
top: calc(var(--ft-typography-caption-line-height) / -2);
|
|
291
|
+
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
288
292
|
}
|
|
289
293
|
|
|
290
294
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-text-field",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "A fluidtopics text field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
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.
|
|
23
|
-
"@fluid-topics/ft-ripple": "^0.1.
|
|
24
|
-
"@fluid-topics/ft-typography": "^0.1.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
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
|
"lit": "^2.0.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "af9249642eff7416fb4aa6371f82cb3f99086cec"
|
|
29
29
|
}
|