inputs-wc 0.1.147 → 0.1.149

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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-B6fgpYlw.js');
4
- var tw = require('./tw-DWlWAlLg.js');
4
+ var tw = require('./tw-B6xsdnyj.js');
5
5
 
6
6
  const altInputCss = () => ``;
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-B6fgpYlw.js');
4
- var tw = require('./tw-DWlWAlLg.js');
4
+ var tw = require('./tw-B6xsdnyj.js');
5
5
 
6
6
  const numericInputCss = () => ``;
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-B6fgpYlw.js');
4
- var tw = require('./tw-DWlWAlLg.js');
4
+ var tw = require('./tw-B6xsdnyj.js');
5
5
 
6
6
  const Button = props => {
7
7
  const { label, callback } = props;
@@ -277,7 +277,7 @@ const createStore = (defaultState, shouldUpdate) => {
277
277
  return map;
278
278
  };
279
279
 
280
- const urlAlphabet =
280
+ let urlAlphabet =
281
281
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
282
282
 
283
283
  /* @ts-self-types="./index.d.ts" */
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-QOexTp2C.js';
2
- import { a as actions, t as tw } from './tw-CQq7v5BY.js';
2
+ import { a as actions, t as tw } from './tw-BWe9AdIi.js';
3
3
 
4
4
  const altInputCss = () => ``;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-QOexTp2C.js';
2
- import { a as actions, t as tw } from './tw-CQq7v5BY.js';
2
+ import { a as actions, t as tw } from './tw-BWe9AdIi.js';
3
3
 
4
4
  const numericInputCss = () => ``;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance } from './index-QOexTp2C.js';
2
- import { t as tw, a as actions, s as state } from './tw-CQq7v5BY.js';
2
+ import { t as tw, a as actions, s as state } from './tw-BWe9AdIi.js';
3
3
 
4
4
  const Button = props => {
5
5
  const { label, callback } = props;
@@ -275,7 +275,7 @@ const createStore = (defaultState, shouldUpdate) => {
275
275
  return map;
276
276
  };
277
277
 
278
- const urlAlphabet =
278
+ let urlAlphabet =
279
279
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
280
280
 
281
281
  /* @ts-self-types="./index.d.ts" */
@@ -1 +1 @@
1
- import{p as e,B as a,c as t,w as n,N as i,H as r,b as p}from"./p-QOexTp2C.js";export{s as setNonce}from"./p-QOexTp2C.js";import{g as m}from"./p-DQuL1Twl.js";var o=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const s=a.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&s.appendChild(t[e].cloneNode(!0));return s}};(()=>{a.isDev&&!a.isTesting&&t("Running in development mode."),a.cloneNodeFix&&o(r.prototype);const s=a.scriptDataOpts?n.document&&Array.from(n.document.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null,p=import.meta.url,m=a.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==p&&(m.resourcesUrl=new URL(".",p).href),e(m)})().then((async e=>(await m(),p([["p-3c2365d1",[[0,"alt-input",{min:[2],max:[2],xId:[1,"x-id"],value:[2,"x-value"]}]]],["p-c6cd3a89",[[0,"numeric-input",{min:[2],max:[2],xId:[1,"x-id"],xPrefix:[1,"x-prefix"],value:[2,"x-value"]}]]],["p-750bddcb",[[1,"sample-form"]]]],e))));
1
+ import{p as e,B as a,c as t,w as n,N as i,H as r,b as p}from"./p-QOexTp2C.js";export{s as setNonce}from"./p-QOexTp2C.js";import{g as m}from"./p-DQuL1Twl.js";var o=e=>{const a=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return a.call(this,e);const s=a.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&s.appendChild(t[e].cloneNode(!0));return s}};(()=>{a.isDev&&!a.isTesting&&t("Running in development mode."),a.cloneNodeFix&&o(r.prototype);const s=a.scriptDataOpts?n.document&&Array.from(n.document.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null,p=import.meta.url,m=a.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==p&&(m.resourcesUrl=new URL(".",p).href),e(m)})().then((async e=>(await m(),p([["p-d3f4a175",[[0,"alt-input",{min:[2],max:[2],xId:[1,"x-id"],value:[2,"x-value"]}]]],["p-46c6aa8b",[[0,"numeric-input",{min:[2],max:[2],xId:[1,"x-id"],xPrefix:[1,"x-prefix"],value:[2,"x-value"]}]]],["p-6d4de37e",[[1,"sample-form"]]]],e))));
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-QOexTp2C.js";import{a as i,t as r}from"./p-CquuxCj0.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-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 +1 @@
1
- import{h as r,r as e}from"./p-QOexTp2C.js";import{t as l,a as t,s as a}from"./p-CquuxCj0.js";const o=e=>{const{label:t,callback:a}=e;return r("button",{class:l("mr-2 rounded-md border border-solid border-clrs-slate4 font-bold","bg-clrs-blue px-2 py-1 text-clrs-white","hover:bg-clrs-red"),onClick:a},t)},s=e=>{const l=e.hex||"currentColor",t=e.selected||!1,a=e.size||24;return r("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"check")," ",r("g",{fill:l},r("path",t?{d:"M10 17L5 12L6.41 10.58L10 14.17L17.59 6.58L19 8M19 3H5C3.89 3 3 3.89 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5C21 3.89 20.1 3 19 3Z"}:{d:"M19 3H5C3.89 3 3 3.89 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5C21 3.89 20.1 3 19 3M19 5V19H5V5H19Z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},i=e=>{const l=e.hex||"currentColor",t=e.selected||!1,a=e.size||24;return r("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"radio")," ",r("g",{fill:l},r("path",t?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},c=class{constructor(r){e(this,r)}refresh(){t.refresh()}render(){const{items:e,itemSets:l,pick:c}=a,d=a.tag,n=l.map(((e,l)=>r("span",{onClick:()=>t.pick(l)},r(i,{selected:l==c})))),h=e.map((({key:e,value:l})=>r(d,{"x-id":e,"x-value":l,max:20})));return r("div",{class:"flex flex-col gap-2 text-clrs-navy"},r("div",{class:"flex"},r(o,{label:"Refresh",callback:this.refresh}),r("span",{onClick:()=>t.toggle()},r(s,{selected:"numeric-input"===d,label:d})),...n),...h)}};c.style="@layer properties; @layer theme,base,components,utilities; @layer theme{:root,:host{--spacing:0.25rem;--font-weight-bold:700;--radius-md:0.375rem}}@layer utilities{.start{inset-inline-start:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.flex{display:flex}.flex-col{flex-direction:column}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-1{padding-block:calc(var(--spacing) * 1)}.text-right{text-align:right}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:bg-clrs-red{&:hover{@media (hover: hover){background-color:var(--clrs-red, #ff4136)}}}}";export{c as sample_form}
1
+ import{h as r,r as e}from"./p-QOexTp2C.js";import{t as l,a as t,s as a}from"./p-APT47huH.js";const o=e=>{const{label:t,callback:a}=e;return r("button",{class:l("mr-2 rounded-md border border-solid border-clrs-slate4 font-bold","bg-clrs-blue px-2 py-1 text-clrs-white","hover:bg-clrs-red"),onClick:a},t)},s=e=>{const l=e.hex||"currentColor",t=e.selected||!1,a=e.size||24;return r("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"check")," ",r("g",{fill:l},r("path",t?{d:"M10 17L5 12L6.41 10.58L10 14.17L17.59 6.58L19 8M19 3H5C3.89 3 3 3.89 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5C21 3.89 20.1 3 19 3Z"}:{d:"M19 3H5C3.89 3 3 3.89 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5C21 3.89 20.1 3 19 3M19 5V19H5V5H19Z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},i=e=>{const l=e.hex||"currentColor",t=e.selected||!1,a=e.size||24;return r("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},r("title",null,e.label||"radio")," ",r("g",{fill:l},r("path",t?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),r("path",{d:"M0 0h24v24H0z",fill:"none"}))},c=class{constructor(r){e(this,r)}refresh(){t.refresh()}render(){const{items:e,itemSets:l,pick:c}=a,d=a.tag,n=l.map(((e,l)=>r("span",{onClick:()=>t.pick(l)},r(i,{selected:l==c})))),h=e.map((({key:e,value:l})=>r(d,{"x-id":e,"x-value":l,max:20})));return r("div",{class:"flex flex-col gap-2 text-clrs-navy"},r("div",{class:"flex"},r(o,{label:"Refresh",callback:this.refresh}),r("span",{onClick:()=>t.toggle()},r(s,{selected:"numeric-input"===d,label:d})),...n),...h)}};c.style="@layer properties; @layer theme,base,components,utilities; @layer theme{:root,:host{--spacing:0.25rem;--font-weight-bold:700;--radius-md:0.375rem}}@layer utilities{.start{inset-inline-start:var(--spacing)}.mr-2{margin-right:calc(var(--spacing) * 2)}.flex{display:flex}.flex-col{flex-direction:column}.gap-2{gap:calc(var(--spacing) * 2)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.px-2{padding-inline:calc(var(--spacing) * 2)}.py-1{padding-block:calc(var(--spacing) * 1)}.text-right{text-align:right}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:bg-clrs-red{&:hover{@media (hover: hover){background-color:var(--clrs-red, #ff4136)}}}}";export{c as sample_form}
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-QOexTp2C.js";import{a as i,t as r}from"./p-CquuxCj0.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-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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inputs-wc",
3
- "version": "0.1.147",
3
+ "version": "0.1.149",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -18,18 +18,18 @@
18
18
  "@stencil/core": "4.43.2",
19
19
  "@stencil/store": "2.2.2",
20
20
  "chance": "1.1.13",
21
- "nanoid": "5.1.6"
21
+ "nanoid": "5.1.7"
22
22
  },
23
23
  "devDependencies": {
24
24
  "autoprefixer": "10.4.27",
25
- "bumpp": "10.4.1",
25
+ "bumpp": "11.0.1",
26
26
  "concurrently": "9.2.1",
27
27
  "cspell": "9.7.0",
28
28
  "only-allow": "1.2.2",
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.474",
32
+ "proto-tailwindcss-clrs": "0.0.477",
33
33
  "tailwindcss": "4.2.1",
34
34
  "typescript": "5.9.3",
35
35
  "workbox-build": "7.4.0",
File without changes