@spectrum-css/textfield
Advanced tools
Comparing version 6.0.27 to 6.0.28
@@ -6,2 +6,9 @@ # Change Log | ||
<a name="6.0.28"></a> | ||
##6.0.28 | ||
🗓 | ||
2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.26...@spectrum-css/textfield@6.0.28) | ||
**Note:** Version bump only for package @spectrum-css/textfield | ||
<a name="6.0.27"></a> | ||
@@ -8,0 +15,0 @@ ##6.0.27 |
{ | ||
"name": "@spectrum-css/textfield", | ||
"version": "6.0.27", | ||
"version": "6.0.28", | ||
"description": "The Spectrum CSS textfield component", | ||
@@ -24,5 +24,5 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@spectrum-css/component-builder-simple": "^2.0.18", | ||
"@spectrum-css/helptext": "^4.0.61", | ||
"@spectrum-css/tokens": "^13.0.3", | ||
"@spectrum-css/component-builder-simple": "^3.0.0", | ||
"@spectrum-css/helptext": "^4.0.62", | ||
"@spectrum-css/tokens": "^13.0.4", | ||
"gulp": "^4.0.0" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "4cdaa2684ab4503a05e6ae5e6f98d2e5e5387344" | ||
"gitHead": "310afcdd3ed5618c187588214b0cf26f711fb779" | ||
} |
@@ -31,6 +31,7 @@ import { useArgs } from "@storybook/client-api"; | ||
isLoading = false, | ||
iconName, | ||
pattern, | ||
placeholder, | ||
name, | ||
iconName, | ||
id, | ||
value, | ||
@@ -87,2 +88,3 @@ type = "text", | ||
}} | ||
id=${ifDefined(id)} | ||
> | ||
@@ -100,30 +102,35 @@ ${when(iconName, () => Icon({ | ||
}))} | ||
${when(multiline, () => html`<textarea | ||
placeholder=${ifDefined(placeholder)} | ||
name=${ifDefined(name)} | ||
.value=${ifDefined(value)} | ||
autocomplete=${autocomplete ? undefined : "off"} | ||
?required=${isRequired} | ||
?disabled=${isDisabled} | ||
?readonly=${ifDefined(isReadOnly)} | ||
pattern=${ifDefined(pattern)} | ||
class=${classMap({ | ||
[`${rootClass}-input`]: true, | ||
...customInputClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), | ||
})} | ||
/>`, () => html` <input | ||
type=${ifDefined(type)} | ||
placeholder=${ifDefined(placeholder)} | ||
name=${ifDefined(name)} | ||
value=${ifDefined(value)} | ||
autocomplete=${autocomplete ? undefined : "off"} | ||
?required=${isRequired} | ||
?disabled=${isDisabled} | ||
readonly=${ifDefined(isReadOnly ? "readonly" : undefined)} | ||
pattern=${ifDefined(pattern)} | ||
class=${classMap({ | ||
[`${rootClass}-input`]: true, | ||
...customInputClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), | ||
})} | ||
/>`)} | ||
${when(multiline, | ||
() => html`<textarea | ||
placeholder=${ifDefined(placeholder)} | ||
name=${ifDefined(name)} | ||
id=${ifDefined(id ? `${id}-input` : undefined)} | ||
.value=${ifDefined(value)} | ||
autocomplete=${autocomplete ? undefined : "off"} | ||
?required=${isRequired} | ||
?disabled=${isDisabled} | ||
?readonly=${ifDefined(isReadOnly)} | ||
pattern=${ifDefined(pattern)} | ||
class=${classMap({ | ||
[`${rootClass}-input`]: true, | ||
...customInputClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), | ||
})} | ||
/>`, | ||
() => html`<input | ||
type=${ifDefined(type)} | ||
placeholder=${ifDefined(placeholder)} | ||
name=${ifDefined(name)} | ||
id=${ifDefined(id ? `${id}-input` : undefined)} | ||
.value=${ifDefined(value)} | ||
autocomplete=${autocomplete ? undefined : "off"} | ||
?required=${isRequired} | ||
?disabled=${isDisabled} | ||
?readonly=${ifDefined(isReadOnly)} | ||
pattern=${ifDefined(pattern)} | ||
class=${classMap({ | ||
[`${rootClass}-input`]: true, | ||
...customInputClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), | ||
})} | ||
/>` | ||
)} | ||
${when(isLoading, () => ProgressCircle({ | ||
@@ -130,0 +137,0 @@ isIndeterminate: true, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
271695
21
4850