inputs-wc 0.1.150 → 0.1.152
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.
- package/dist/cjs/alt-input.cjs.entry.js +2 -2
- package/dist/cjs/{index-B6fgpYlw.js → index-CaCIOygp.js} +1 -1
- package/dist/cjs/inputs-wc.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/numeric-input.cjs.entry.js +2 -2
- package/dist/cjs/sample-form.cjs.entry.js +2 -2
- package/dist/cjs/{tw-B6xsdnyj.js → tw-BVKaWdRb.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/styles/shadow.css +1 -1
- package/dist/collection/tokens.css +1 -1
- package/dist/collection/utils/tw-version.js +1 -1
- package/dist/esm/alt-input.entry.js +2 -2
- package/dist/esm/{index-QOexTp2C.js → index-BrxhBvc1.js} +1 -1
- package/dist/esm/inputs-wc.js +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/numeric-input.entry.js +2 -2
- package/dist/esm/sample-form.entry.js +2 -2
- package/dist/esm/{tw-BWe9AdIi.js → tw-BRG2GzjE.js} +1 -1
- package/dist/inputs-wc/inputs-wc.esm.js +1 -1
- package/dist/inputs-wc/{p-6d4de37e.entry.js → p-06d089f6.entry.js} +1 -1
- package/dist/inputs-wc/{p-APT47huH.js → p-B_FCxFmd.js} +1 -1
- package/dist/inputs-wc/{p-46c6aa8b.entry.js → p-af993315.entry.js} +1 -1
- package/dist/inputs-wc/{p-d3f4a175.entry.js → p-ba600b3a.entry.js} +1 -1
- package/dist/inputs-wc/tokens.css +1 -1
- package/dist/types/utils/tw-version.d.ts +1 -1
- package/package.json +3 -3
- /package/dist/inputs-wc/{p-QOexTp2C.js → p-BrxhBvc1.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
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-
|
|
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.
|
|
3
|
+
"version": "0.1.152",
|
|
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.
|
|
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"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prettier": "3.8.1",
|
|
31
31
|
"prettier-plugin-tailwindcss": "0.7.2",
|
|
32
32
|
"proto-tailwindcss-clrs": "0.0.478",
|
|
33
|
-
"tailwindcss": "4.2.
|
|
33
|
+
"tailwindcss": "4.2.2",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"workbox-build": "7.4.0",
|
|
36
36
|
"yoctocolors": "2.1.2"
|
|
File without changes
|