@neovici/cosmoz-input 1.5.0 → 1.6.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.
Files changed (2) hide show
  1. package/cosmoz-input.js +7 -2
  2. package/package.json +1 -1
package/cosmoz-input.js CHANGED
@@ -15,7 +15,9 @@ export const Input = host => {
15
15
  value,
16
16
  placeholder,
17
17
  readonly,
18
- disabled
18
+ disabled,
19
+ min,
20
+ max
19
21
  } = host,
20
22
  { onChange, onFocus, onInput } = useInput(host),
21
23
  onBeforeInput = useAllowedPattern(allowedPattern);
@@ -25,7 +27,8 @@ export const Input = host => {
25
27
  ?readonly=${ readonly } ?aria-disabled=${ disabled } ?disabled=${ disabled }
26
28
  .value=${ live(value ?? '') }
27
29
  @beforeinput=${ onBeforeInput } @input=${ onInput }
28
- @change=${ onChange } @focus=${ onFocus } @blur=${ onFocus }>`
30
+ @change=${ onChange } @focus=${ onFocus } @blur=${ onFocus }
31
+ min=${ ifDefined(min) } max=${ ifDefined(max) }>`
29
32
  , host);
30
33
  },
31
34
 
@@ -33,6 +36,8 @@ export const Input = host => {
33
36
  'type',
34
37
  'pattern',
35
38
  'allowed-pattern',
39
+ 'min',
40
+ 'max',
36
41
  ...attributes
37
42
  ];
38
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-input",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "A input web component",
5
5
  "keywords": [
6
6
  "lit-html",