@fluid-topics/ft-text-field 2.2.35 → 2.2.37

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.
@@ -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.35",
3
+ "version": "2.2.37",
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.35",
24
- "@fluid-topics/ft-icon": "2.2.35",
25
- "@fluid-topics/ft-input-label": "2.2.35",
26
- "@fluid-topics/ft-ripple": "2.2.35",
27
- "@fluid-topics/ft-typography": "2.2.35",
28
- "@fluid-topics/ft-wc-utils": "2.2.35",
23
+ "@fluid-topics/ft-button": "2.2.37",
24
+ "@fluid-topics/ft-i18n": "2.2.37",
25
+ "@fluid-topics/ft-icon": "2.2.37",
26
+ "@fluid-topics/ft-input-label": "2.2.37",
27
+ "@fluid-topics/ft-ripple": "2.2.37",
28
+ "@fluid-topics/ft-typography": "2.2.37",
29
+ "@fluid-topics/ft-wc-utils": "2.2.37",
29
30
  "lit": "3.3.3"
30
31
  },
31
- "gitHead": "040e8142a897fe04b0ecceb7b2de59d1e6ec3fb7"
32
+ "gitHead": "d63a6da53ab8005823b5ab9da20c144de93f45a8"
32
33
  }