inputs-wc 0.1.151 → 0.1.153

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.
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-QOexTp2C.js";import{a as i,t as r}from"./p-APT47huH.js";const h=class{constructor(s){t(this,s),this.min=0,this.max=void 0,this.xId="",this.xPrefix="",this.value=0,this.labelFor=t=>t>0?this.xPrefix.concat(t.toLocaleString()):"",this.isInvalid=t=>{const{min:s,max:i}=this;return t<s||void 0!==i&&t>i},this.handleInput=t=>{t.preventDefault();const s=t.target.value.replace(/[^0-9]/g,""),r=""!==s?parseInt(s):0;i.update(this.xId,r)}}render(){return s("input",{key:"7bc740cc171519ea2928f1b63054bd8566605248",class:r("text-right",this.isInvalid(this.value)?"text-clrs-red":"text-clrs-navy"),type:"text",onInput:this.handleInput,value:this.labelFor(this.value)})}};h.style="";export{h as numeric_input}
1
+ import{r as t,h as s}from"./p-BrxhBvc1.js";import{a as i,t as r}from"./p-B_FCxFmd.js";const h=class{constructor(s){t(this,s),this.min=0,this.max=void 0,this.xId="",this.xPrefix="",this.value=0,this.labelFor=t=>t>0?this.xPrefix.concat(t.toLocaleString()):"",this.isInvalid=t=>{const{min:s,max:i}=this;return t<s||void 0!==i&&t>i},this.handleInput=t=>{t.preventDefault();const s=t.target.value.replace(/[^0-9]/g,""),r=""!==s?parseInt(s):0;i.update(this.xId,r)}}render(){return s("input",{key:"7bc740cc171519ea2928f1b63054bd8566605248",class:r("text-right",this.isInvalid(this.value)?"text-clrs-red":"text-clrs-navy"),type:"text",onInput:this.handleInput,value:this.labelFor(this.value)})}};h.style="";export{h as numeric_input}
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-QOexTp2C.js";import{a as i,t as r}from"./p-APT47huH.js";const e=class{constructor(s){t(this,s),this.min=0,this.max=void 0,this.xId="",this.value=0,this.isInvalid=t=>{const{min:s,max:i}=this;return t<s||void 0!==i&&t>i},this.handleInput=t=>{t.preventDefault();const s=t.target;i.update(this.xId,""!=s.value?s.value:0)}}render(){return s("input",{key:"4f722d7778500c3f5038667e0b977dd04389c185",class:r("text-right",this.isInvalid(this.value)?"text-clrs-red":"text-clrs-navy"),type:"number",onInput:this.handleInput,value:this.value})}};e.style="";export{e as alt_input}
1
+ import{r as t,h as s}from"./p-BrxhBvc1.js";import{a as i,t as r}from"./p-B_FCxFmd.js";const h=class{constructor(s){t(this,s),this.min=0,this.max=void 0,this.xId="",this.value=0,this.isInvalid=t=>{const{min:s,max:i}=this;return t<s||void 0!==i&&t>i},this.handleInput=t=>{t.preventDefault();const s=t.target;i.update(this.xId,""!=s.value?s.value:0)}}render(){return s("input",{key:"4f722d7778500c3f5038667e0b977dd04389c185",class:r("text-right",this.isInvalid(this.value)?"text-clrs-red":"text-clrs-navy"),type:"number",onInput:this.handleInput,value:this.value})}};h.style="";export{h as alt_input}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inputs-wc",
3
- "version": "0.1.151",
3
+ "version": "0.1.153",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -15,7 +15,7 @@
15
15
  "loader/"
16
16
  ],
17
17
  "dependencies": {
18
- "@stencil/core": "4.43.2",
18
+ "@stencil/core": "4.43.3",
19
19
  "@stencil/store": "2.2.2",
20
20
  "chance": "1.1.13",
21
21
  "nanoid": "5.1.7"
@@ -29,7 +29,7 @@
29
29
  "postcss": "8.5.8",
30
30
  "prettier": "3.8.1",
31
31
  "prettier-plugin-tailwindcss": "0.7.2",
32
- "proto-tailwindcss-clrs": "0.0.478",
32
+ "proto-tailwindcss-clrs": "0.0.479",
33
33
  "tailwindcss": "4.2.2",
34
34
  "typescript": "5.9.3",
35
35
  "workbox-build": "7.4.0",
File without changes