@neovici/cosmoz-input 3.5.0 → 3.7.0

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.
@@ -10,7 +10,7 @@ export const Textarea = (host) => {
10
10
  const { autocomplete, value, placeholder, readonly, disabled, rows, cols, maxlength, } = host, { onChange, onFocus, onInput } = useInput(host);
11
11
  useAutoHeight(host);
12
12
  return render(html `
13
- <textarea id="input" part="input" style="resize: none"
13
+ <textarea id="input" part="input"
14
14
  autocomplete=${ifDefined(autocomplete)}
15
15
  placeholder=${placeholder || ' '}
16
16
  rows=${rows ?? 1} cols=${ifDefined(cols)}
package/dist/styles.js CHANGED
@@ -77,6 +77,8 @@ export const styles = css `
77
77
  background: transparent;
78
78
  line-height: inherit;
79
79
  font-size: inherit;
80
+ font-family: inherit;
81
+ resize: none;
80
82
  }
81
83
  :host(:focus-within) .wrap {
82
84
  background: var(--focused-bg);
@@ -188,4 +190,7 @@ export const styles = css `
188
190
  width: var(--width);
189
191
  min-width: calc(2ch + 0.25em);
190
192
  }
193
+ :host([type="color"]) .line {
194
+ display: none;
195
+ }
191
196
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-input",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "description": "A input web component",
5
5
  "keywords": [
6
6
  "lit-html",