@fluid-topics/ft-text-field 2.2.35 → 2.2.36
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/TextFieldMessages.d.ts +7 -0
- package/build/TextFieldMessages.js +6 -0
- package/build/ft-text-field.d.ts +8 -1
- package/build/ft-text-field.js +67 -25
- package/build/ft-text-field.light.js +154 -121
- package/build/ft-text-field.min.js +184 -151
- package/build/ft-text-field.properties.d.ts +1 -0
- package/build/ft-text-field.styles.js +20 -0
- package/package.json +9 -8
|
@@ -16,5 +16,6 @@ export interface FtTextFieldProperties {
|
|
|
16
16
|
suggestionsHelper?: string;
|
|
17
17
|
maxLength?: number;
|
|
18
18
|
password?: boolean;
|
|
19
|
+
clearable?: boolean;
|
|
19
20
|
suggestionsProvider?: (query: string) => FtTextFieldSuggestionDefinition[] | Promise<FtTextFieldSuggestionDefinition[]>;
|
|
20
21
|
}
|
|
@@ -150,6 +150,26 @@ export const styles = css `
|
|
|
150
150
|
color: ${FtTextFieldCssVariables.iconColor};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
.ft-text-field--clear-button {
|
|
154
|
+
align-self: center;
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
flex-shrink: 0;
|
|
159
|
+
margin-left: 4px;
|
|
160
|
+
padding: 4px;
|
|
161
|
+
border: none;
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
background: none;
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
color: ${FtTextFieldCssVariables.iconColor};
|
|
166
|
+
${setVariable(FtIconCssVariables.size, "18px")}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ft-text-field--clear-button:focus-visible {
|
|
170
|
+
outline: 2px solid ${FtTextFieldCssVariables.colorPrimary};
|
|
171
|
+
}
|
|
172
|
+
|
|
153
173
|
.ft-text-field--container {
|
|
154
174
|
position: relative;
|
|
155
175
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-text-field",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.36",
|
|
4
4
|
"description": "A fluidtopics text field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,13 +20,14 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@floating-ui/dom": "1.8.0",
|
|
23
|
-
"@fluid-topics/ft-button": "2.2.
|
|
24
|
-
"@fluid-topics/ft-
|
|
25
|
-
"@fluid-topics/ft-
|
|
26
|
-
"@fluid-topics/ft-
|
|
27
|
-
"@fluid-topics/ft-
|
|
28
|
-
"@fluid-topics/ft-
|
|
23
|
+
"@fluid-topics/ft-button": "2.2.36",
|
|
24
|
+
"@fluid-topics/ft-i18n": "2.2.36",
|
|
25
|
+
"@fluid-topics/ft-icon": "2.2.36",
|
|
26
|
+
"@fluid-topics/ft-input-label": "2.2.36",
|
|
27
|
+
"@fluid-topics/ft-ripple": "2.2.36",
|
|
28
|
+
"@fluid-topics/ft-typography": "2.2.36",
|
|
29
|
+
"@fluid-topics/ft-wc-utils": "2.2.36",
|
|
29
30
|
"lit": "3.3.3"
|
|
30
31
|
},
|
|
31
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "c3f0f16c05ce7b487f0b262fb8db45b9c2f69405"
|
|
32
33
|
}
|