New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aura-group/aura-design

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aura-group/aura-design - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

4

dist/aura-design.es.js

@@ -1427,3 +1427,3 @@ const Ee = (e, n) => e === n, Ae = Symbol("solid-track"), M = {

ChatBubble: vt,
CountDance: At,
DanceCount: At,
DanceNumber: jt,

@@ -1454,3 +1454,3 @@ FlexBox: It,

vt as ChatBubble,
At as CountDance,
At as DanceCount,
jt as DanceNumber,

@@ -1457,0 +1457,0 @@ It as FlexBox,

@@ -190,2 +190,2 @@ (function($,H){typeof exports=="object"&&typeof module<"u"?H(exports):typeof define=="function"&&define.amd?define(["exports"],H):($=typeof globalThis<"u"?globalThis:$||self,H($["aura-design"]={}))})(this,function($){"use strict";const H=(e,n)=>e===n,Ge=Symbol("solid-track"),G={equals:H};let ue=be;const R=1,M=2,de={owned:null,cleanups:null,context:null,owner:null};var w=null;let ee=null,m=null,v=null,j=null,U=0;function V(e,n){const t=m,o=w,r=e.length===0,s=r?de:{owned:null,cleanups:null,context:null,owner:n===void 0?o:n},i=r?e:()=>e(()=>P(()=>Y(s)));w=s,m=null;try{return F(i,!0)}finally{m=t,w=o}}function S(e,n){n=n?Object.assign({},G,n):G;const t={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},o=r=>(typeof r=="function"&&(r=r(t.value)),ge(t,r));return[he.bind(t),o]}function g(e,n,t){const o=ne(e,n,!1,R);D(o)}function fe(e,n,t){ue=qe;const o=ne(e,n,!1,R);o.user=!0,j?j.push(o):D(o)}function O(e,n,t){t=t?Object.assign({},G,t):G;const o=ne(e,n,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=t.equals||void 0,D(o),he.bind(o)}function P(e){if(m===null)return e();const n=m;m=null;try{return e()}finally{m=n}}function te(e){fe(()=>P(e))}function Me(e){return w===null||(w.cleanups===null?w.cleanups=[e]:w.cleanups.push(e)),e}function h(){return w}function he(){if(this.sources&&this.state)if(this.state===R)D(this);else{const e=v;v=null,F(()=>W(this),!1),v=e}if(m){const e=this.observers?this.observers.length:0;m.sources?(m.sources.push(this),m.sourceSlots.push(e)):(m.sources=[this],m.sourceSlots=[e]),this.observers?(this.observers.push(m),this.observerSlots.push(m.sources.length-1)):(this.observers=[m],this.observerSlots=[m.sources.length-1])}return this.value}function ge(e,n,t){let o=e.value;return(!e.comparator||!e.comparator(o,n))&&(e.value=n,e.observers&&e.observers.length&&F(()=>{for(let r=0;r<e.observers.length;r+=1){const s=e.observers[r],i=ee&&ee.running;i&&ee.disposed.has(s),(i?!s.tState:!s.state)&&(s.pure?v.push(s):j.push(s),s.observers&&$e(s)),i||(s.state=R)}if(v.length>1e6)throw v=[],new Error},!1)),n}function D(e){if(!e.fn)return;Y(e);const n=w,t=m,o=U;m=w=e,Ue(e,e.value,o),m=t,w=n}function Ue(e,n,t){let o;try{o=e.fn(n)}catch(r){return e.pure&&(e.state=R,e.owned&&e.owned.forEach(Y),e.owned=null),e.updatedAt=t+1,pe(r)}(!e.updatedAt||e.updatedAt<=t)&&(e.updatedAt!=null&&"observers"in e?ge(e,o):e.value=o,e.updatedAt=t)}function ne(e,n,t,o=R,r){const s={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:w,context:null,pure:t};return w===null||w!==de&&(w.owned?w.owned.push(s):w.owned=[s]),s}function q(e){if(e.state===0)return;if(e.state===M)return W(e);if(e.suspense&&P(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<U);)e.state&&n.push(e);for(let t=n.length-1;t>=0;t--)if(e=n[t],e.state===R)D(e);else if(e.state===M){const o=v;v=null,F(()=>W(e,n[0]),!1),v=o}}function F(e,n){if(v)return e();let t=!1;n||(v=[]),j?t=!0:j=[],U++;try{const o=e();return Ve(t),o}catch(o){t||(j=null),v=null,pe(o)}}function Ve(e){if(v&&(be(v),v=null),e)return;const n=j;j=null,n.length&&F(()=>ue(n),!1)}function be(e){for(let n=0;n<e.length;n++)q(e[n])}function qe(e){let n,t=0;for(n=0;n<e.length;n++){const o=e[n];o.user?e[t++]=o:q(o)}for(n=0;n<t;n++)q(e[n])}function W(e,n){e.state=0;for(let t=0;t<e.sources.length;t+=1){const o=e.sources[t];if(o.sources){const r=o.state;r===R?o!==n&&(!o.updatedAt||o.updatedAt<U)&&q(o):r===M&&W(o,n)}}}function $e(e){for(let n=0;n<e.observers.length;n+=1){const t=e.observers[n];t.state||(t.state=M,t.pure?v.push(t):j.push(t),t.observers&&$e(t))}}function Y(e){let n;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),o=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const s=r.pop(),i=t.observerSlots.pop();o<r.length&&(s.sourceSlots[i]=o,r[o]=s,t.observerSlots[o]=i)}}if(e.owned){for(n=e.owned.length-1;n>=0;n--)Y(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0,e.context=null}function pe(e){throw e}const We=Symbol("fallback");function me(e){for(let n=0;n<e.length;n++)e[n]()}function Ye(e,n,t={}){let o=[],r=[],s=[],i=0,l=n.length>1?[]:null;return Me(()=>me(s)),()=>{let d=e()||[],u,a;return d[Ge],P(()=>{let p=d.length,C,E,K,Q,Z,z,T,I,L;if(p===0)i!==0&&(me(s),s=[],o=[],r=[],i=0,l&&(l=[])),t.fallback&&(o=[We],r[0]=V(Wn=>(s[0]=Wn,t.fallback())),i=1);else if(i===0){for(r=new Array(p),a=0;a<p;a++)o[a]=d[a],r[a]=V(b);i=p}else{for(K=new Array(p),Q=new Array(p),l&&(Z=new Array(p)),z=0,T=Math.min(i,p);z<T&&o[z]===d[z];z++);for(T=i-1,I=p-1;T>=z&&I>=z&&o[T]===d[I];T--,I--)K[I]=r[T],Q[I]=s[T],l&&(Z[I]=l[T]);for(C=new Map,E=new Array(I+1),a=I;a>=z;a--)L=d[a],u=C.get(L),E[a]=u===void 0?-1:u,C.set(L,a);for(u=z;u<=T;u++)L=o[u],a=C.get(L),a!==void 0&&a!==-1?(K[a]=r[u],Q[a]=s[u],l&&(Z[a]=l[u]),a=E[a],C.set(L,a)):s[u]();for(a=z;a<p;a++)a in K?(r[a]=K[a],s[a]=Q[a],l&&(l[a]=Z[a],l[a](a))):r[a]=V(b);r=r.slice(0,i=p),o=d.slice(0)}return r});function b(p){if(s[a]=p,l){const[C,E]=S(a);return l[a]=E,n(d[a],C)}return n(d[a])}}}function x(e,n){return P(()=>e(n||{}))}const Je=e=>`Stale read from <${e}>.`;function re(e){const n="fallback"in e&&{fallback:()=>e.fallback};return O(Ye(()=>e.each,e.children,n||void 0))}function A(e){const n=e.keyed,t=O(()=>e.when,void 0,{equals:(o,r)=>n?o===r:!o==!r});return O(()=>{const o=t();if(o){const r=e.children;return typeof r=="function"&&r.length>0?P(()=>r(n?o:()=>{if(!P(t))throw Je("Show");return e.when})):r}return e.fallback},void 0,void 0)}function Xe(e,n,t){let o=t.length,r=n.length,s=o,i=0,l=0,d=n[r-1].nextSibling,u=null;for(;i<r||l<s;){if(n[i]===t[l]){i++,l++;continue}for(;n[r-1]===t[s-1];)r--,s--;if(r===i){const a=s<o?l?t[l-1].nextSibling:t[s-l]:d;for(;l<s;)e.insertBefore(t[l++],a)}else if(s===l)for(;i<r;)(!u||!u.has(n[i]))&&n[i].remove(),i++;else if(n[i]===t[s-1]&&t[l]===n[r-1]){const a=n[--r].nextSibling;e.insertBefore(t[l++],n[i++].nextSibling),e.insertBefore(t[--s],a),n[r]=t[s]}else{if(!u){u=new Map;let b=l;for(;b<s;)u.set(t[b],b++)}const a=u.get(n[i]);if(a!=null)if(l<a&&a<s){let b=i,p=1,C;for(;++b<r&&b<s&&!((C=u.get(n[b]))==null||C!==a+p);)p++;if(p>a-l){const E=n[i];for(;l<a;)e.insertBefore(t[l++],E)}else e.replaceChild(t[l++],n[i++])}else i++;else n[i++].remove()}}}const ye="_$DX_DELEGATE";function c(e,n,t){let o;const r=()=>{const i=document.createElement("template");return i.innerHTML=e,t?i.content.firstChild.firstChild:i.content.firstChild},s=n?()=>(o||(o=r())).cloneNode(!0):()=>P(()=>document.importNode(o||(o=r()),!0));return s.cloneNode=s,s}function J(e,n=window.document){const t=n[ye]||(n[ye]=new Set);for(let o=0,r=e.length;o<r;o++){const s=e[o];t.has(s)||(t.add(s),n.addEventListener(s,Ze))}}function k(e,n,t){t==null?e.removeAttribute(n):e.setAttribute(n,t)}function oe(e,n){n==null?e.removeAttribute("class"):e.className=n}function Qe(e,n,t){if(!n)return t?k(e,"style"):n;const o=e.style;if(typeof n=="string")return o.cssText=n;typeof t=="string"&&(o.cssText=t=void 0),t||(t={}),n||(n={});let r,s;for(s in t)n[s]==null&&o.removeProperty(s),delete t[s];for(s in n)r=n[s],r!==t[s]&&(o.setProperty(s,r),t[s]=r);return t}function _e(e,n,t){return P(()=>e(n,t))}function f(e,n,t,o){if(t!==void 0&&!o&&(o=[]),typeof n!="function")return X(e,n,o,t);g(r=>X(e,n(),r,t),o)}function Ze(e){const n=`$$${e.type}`;let t=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==t&&Object.defineProperty(e,"target",{configurable:!0,value:t}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}});t;){const o=t[n];if(o&&!t.disabled){const r=t[`${n}Data`];if(r!==void 0?o.call(t,r,e):o.call(t,e),e.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function X(e,n,t,o,r){for(;typeof t=="function";)t=t();if(n===t)return t;const s=typeof n,i=o!==void 0;if(e=i&&t[0]&&t[0].parentNode||e,s==="string"||s==="number")if(s==="number"&&(n=n.toString()),i){let l=t[0];l&&l.nodeType===3?l.data=n:l=document.createTextNode(n),t=N(e,t,o,l)}else t!==""&&typeof t=="string"?t=e.firstChild.data=n:t=e.textContent=n;else if(n==null||s==="boolean")t=N(e,t,o);else{if(s==="function")return g(()=>{let l=n();for(;typeof l=="function";)l=l();t=X(e,l,t,o)}),()=>t;if(Array.isArray(n)){const l=[],d=t&&Array.isArray(t);if(se(l,n,t,r))return g(()=>t=X(e,l,t,o,!0)),()=>t;if(l.length===0){if(t=N(e,t,o),i)return t}else d?t.length===0?we(e,l,o):Xe(e,t,l):(t&&N(e),we(e,l));t=l}else if(n instanceof Node){if(Array.isArray(t)){if(i)return t=N(e,t,o,n);N(e,t,null,n)}else t==null||t===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);t=n}else console.warn("Unrecognized value. Skipped inserting",n)}return t}function se(e,n,t,o){let r=!1;for(let s=0,i=n.length;s<i;s++){let l=n[s],d=t&&t[s];if(l instanceof Node)e.push(l);else if(!(l==null||l===!0||l===!1))if(Array.isArray(l))r=se(e,l,d)||r;else if(typeof l=="function")if(o){for(;typeof l=="function";)l=l();r=se(e,Array.isArray(l)?l:[l],Array.isArray(d)?d:[d])||r}else e.push(l),r=!0;else{const u=String(l);d&&d.nodeType===3?(d.data=u,e.push(d)):e.push(document.createTextNode(u))}}return r}function we(e,n,t=null){for(let o=0,r=n.length;o<r;o++)e.insertBefore(n[o],t)}function N(e,n,t,o){if(t===void 0)return e.textContent="";const r=o||document.createTextNode("");if(n.length){let s=!1;for(let i=n.length-1;i>=0;i--){const l=n[i];if(r!==l){const d=l.parentNode===e;!s&&!i?d?e.replaceChild(r,l):e.insertBefore(r,t):d&&l.remove()}else s=!0}}else e.insertBefore(r,t);return[r]}function et(e){return Object.keys(e).reduce((t,o)=>{const r=e[o];return t[o]=Object.assign({},r),ke(r.value)&&!st(r.value)&&!Array.isArray(r.value)&&(t[o].value=Object.assign({},r.value)),Array.isArray(r.value)&&(t[o].value=r.value.slice(0)),t},{})}function tt(e){return e?Object.keys(e).reduce((t,o)=>{const r=e[o];return t[o]=ke(r)&&"value"in r?r:{value:r},t[o].attribute||(t[o].attribute=ot(o)),t[o].parse="parse"in t[o]?t[o].parse:typeof t[o].value!="string",t},{}):{}}function nt(e){return Object.keys(e).reduce((t,o)=>(t[o]=e[o].value,t),{})}function rt(e,n){const t=et(n);return Object.keys(n).forEach(r=>{const s=t[r],i=e.getAttribute(s.attribute),l=e[r];i&&(s.value=s.parse?ve(i):i),l!=null&&(s.value=Array.isArray(l)?l.slice(0):l),s.reflect&&xe(e,s.attribute,s.value),Object.defineProperty(e,r,{get(){return s.value},set(d){const u=s.value;s.value=d,s.reflect&&xe(this,s.attribute,s.value);for(let a=0,b=this.__propertyChangedCallbacks.length;a<b;a++)this.__propertyChangedCallbacks[a](r,d,u)},enumerable:!0,configurable:!0})}),t}function ve(e){if(e)try{return JSON.parse(e)}catch{return e}}function xe(e,n,t){if(t==null||t===!1)return e.removeAttribute(n);let o=JSON.stringify(t);e.__updating[n]=!0,o==="true"&&(o=""),e.setAttribute(n,o),Promise.resolve().then(()=>delete e.__updating[n])}function ot(e){return e.replace(/\.?([A-Z]+)/g,(n,t)=>"-"+t.toLowerCase()).replace("_","-").replace(/^-/,"")}function ke(e){return e!=null&&(typeof e=="object"||typeof e=="function")}function st(e){return Object.prototype.toString.call(e)==="[object Function]"}function it(e){return typeof e=="function"&&e.toString().indexOf("class")===0}let ie;function lt(e,n){const t=Object.keys(n);return class extends e{static get observedAttributes(){return t.map(r=>n[r].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={}}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=rt(this,n);const r=nt(this.props),s=this.Component,i=ie;try{ie=this,this.__initialized=!0,it(s)?new s(r,{element:this}):s(r,{element:this})}finally{ie=i}}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let r=null;for(;r=this.__releaseCallbacks.pop();)r(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(r,s,i){if(this.__initialized&&!this.__updating[r]&&(r=this.lookupProp(r),r in n)){if(i==null&&!this[r])return;this[r]=n[r].parse?ve(i):i}}lookupProp(r){if(n)return t.find(s=>r===s||r===n[s].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(r){this.__releaseCallbacks.push(r)}addPropertyChangedCallback(r){this.__propertyChangedCallbacks.push(r)}}}function at(e,n={},t={}){const{BaseElement:o=HTMLElement,extension:r}=t;return s=>{if(!e)throw new Error("tag is required to register a Component");let i=customElements.get(e);return i?(i.prototype.Component=s,i):(i=lt(o,tt(n)),i.prototype.Component=s,i.prototype.registeredTag=e,customElements.define(e,i,r),i)}}function ct(e){const n=Object.keys(e),t={};for(let o=0;o<n.length;o++){const[r,s]=S(e[n[o]]);Object.defineProperty(t,n[o],{get:r,set(i){s(()=>i)}})}return t}function ut(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let n=e.parentNode;for(;n&&!n._$owner&&!(n.assignedSlot&&n.assignedSlot._$owner);)n=n.parentNode;return n&&n.assignedSlot?n.assignedSlot._$owner:e._$owner}function dt(e){return(n,t)=>{const{element:o}=t;return V(r=>{const s=ct(n);o.addPropertyChangedCallback((l,d)=>s[l]=d),o.addReleaseCallback(()=>{o.renderRoot.textContent="",r()});const i=e(s,t);return f(o.renderRoot,i)},ut(o))}}function y(e,n,t){return arguments.length===2&&(t=n,n={}),at(e,n)(dt(t))}const _="ar",ft=`:host{align-items:center;border-radius:var(--border-radius);display:inline-flex;height:var(--input-height)}button{align-items:center;background:inherit;border:none;border-radius:inherit;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font:inherit;gap:var(--gap);height:inherit;justify-content:center;outline:none;padding:0 12px;width:inherit}button:hover{filter:brightness(1.1)}.primary{background-image:var(--accent-gradient);color:var(--accent-color)}.primary.text{background-image:none;color:var(--primary-color)}.primary.outline{background-image:none;border:1px solid var(--primary-color);color:var(--primary-color)}.primary:hover{filter:brightness(1.2)}.info{background:var(--info-color)}.info.text{background:none;color:var(--text-color)}.info.outline{background:none;border:1px solid var(--info-color);color:var(--text-color)}.info:hover{filter:brightness(.95)}.warning{background:var(--warning-color);color:var(--accent-color)}.warning.text{background:none;color:var(--warning-color)}.warning.outline{background:none;border:1px solid var(--warning-color);color:var(--warning-color)}.danger{background:var(--danger-color);color:var(--accent-color)}.danger.text{background:none;color:var(--danger-color)}.danger.outline{background:none;border:1px solid var(--danger-color);color:var(--danger-color)}.success{background:var(--success-color);color:var(--accent-color)}.success.text{background:none;color:var(--success-color)}.success.outline{background:none;border:1px solid var(--success-color);color:var(--success-color)}.circle{border-radius:50%;padding:0 2px;width:var(--input-height)}.round{border-radius:var(--round-radius)}

`,Rn=c("<style>"),Bn=c('<slot name="prefix">'),On=c('<textarea class="textarea">'),Nn=c('<slot name="suffix">'),Ln=(e,{element:n})=>{const[t,o]=S(),[r,s]=S(e.height);te(()=>{setTimeout(()=>{var a;const u=(a=t())==null?void 0:a.scrollHeight;u&&s(`${u}px`)},0)});const i=u=>{const a=u.target;s(e.height),s(`${a.scrollHeight}px`)},l=u=>{const a=u.target,b=new CustomEvent("change",{detail:{value:a.value},bubbles:!0});n.dispatchEvent(b)},d=u=>{if(u.keyCode===13&&(u.preventDefault(),u.target)){const a=u.target,b=new CustomEvent("enter",{detail:{value:a.value}});n.dispatchEvent(b)}};return[(()=>{const u=Rn();return f(u,In),u})(),(()=>{const u=Bn();return u._$owner=h(),u})(),(()=>{const u=On();return u.$$keydown=d,u.addEventListener("change",l),u.$$input=i,_e(o,u),g(a=>{const b=r(),p=e.placeholder;return b!==a._v$&&((a._v$=b)!=null?u.style.setProperty("height",b):u.style.removeProperty("height")),p!==a._v$2&&k(u,"placeholder",a._v$2=p),a},{_v$:void 0,_v$2:void 0}),g(()=>u.value=e.value),u})(),(()=>{const u=Nn();return u._$owner=h(),u})()]},He=()=>{y(`${_}-textarea`,{value:"",placeholder:"",height:"32px"},Ln)};J(["input","keydown"]);const Hn=`:host{align-items:center;background-color:var(--bg-2);border-radius:var(--border-radius);display:inline-flex;gap:var(--gap);height:var(--input-height);padding:0 12px;width:100%}input{background:none;border:none;box-sizing:border-box;color:inherit;font:inherit;outline:none;padding:0;width:inherit}
`,Dn=c("<style>"),Fn=c('<slot name="prefix">'),Kn=c('<input class="textarea">'),Gn=c('<slot name="suffix">'),Mn=(e,{element:n})=>{const t=r=>{const s=r.target,i=new CustomEvent("change",{detail:{value:s.value}});n.dispatchEvent(i)},o=r=>{if(r.keyCode===13&&(r.preventDefault(),r.target)){const s=r.target,i=new CustomEvent("enter",{detail:{value:s.value}});n.dispatchEvent(i)}};return[(()=>{const r=Dn();return f(r,Hn),r})(),(()=>{const r=Fn();return r._$owner=h(),r})(),(()=>{const r=Kn();return r.$$keydown=o,r.addEventListener("change",t),g(s=>{const i=e.placeholder,l=e.type;return i!==s._v$&&k(r,"placeholder",s._v$=i),l!==s._v$2&&k(r,"type",s._v$2=l),s},{_v$:void 0,_v$2:void 0}),g(()=>r.value=e.value),r})(),(()=>{const r=Gn();return r._$owner=h(),r})()]},De=()=>{y(`${_}-textfield`,{value:"",placeholder:"",type:"text"},Mn)};J(["keydown"]);const Fe=c("<span>"),Un=e=>{const[n,t]=S(""),[o,r]=S(0),[s,i]=S(!0),{text:l,speed:d=100,cursor:u="|"}=e;return te(()=>{const a=setInterval(()=>{t(l.substr(0,o())),r(o()+1),o()>=l.length&&(i(!1),clearInterval(a))},d)}),[(()=>{const a=Fe();return f(a,n),a})(),O((()=>{const a=O(()=>!!s());return()=>a()&&(()=>{const b=Fe();return f(b,u),b})()})())]},Ke=()=>{y(`${_}-typewriter`,{text:"",speed:100,cursor:"|"},Un)},Vn=Object.freeze(Object.defineProperty({__proto__:null,Button:le,Card:Ee,ChatBubble:Se,CountDance:Ae,DanceNumber:ze,FlexBox:Te,FlexItem:je,Icon:Pe,ImageCard:Ie,LayoutGrid:Re,LayoutHoly:Be,PlaceHolder:Oe,Radio:ce,RadioButton:Ne,RadioGroup:Le,Textarea:He,Textfield:De,Typewriter:Ke},Symbol.toStringTag,{value:"Module"})),Yn="",Jn="",Xn="",qn=(e=Vn)=>{for(const n in e){const t=e[n];t()}};$.Button=le,$.Card=Ee,$.ChatBubble=Se,$.CountDance=Ae,$.DanceNumber=ze,$.FlexBox=Te,$.FlexItem=je,$.Icon=Pe,$.ImageCard=Ie,$.LayoutGrid=Re,$.LayoutHoly=Be,$.PlaceHolder=Oe,$.Radio=ce,$.RadioButton=Ne,$.RadioGroup=Le,$.Textarea=He,$.Textfield=De,$.Typewriter=Ke,$.defineCustomElements=qn,$.registerIcon=Zt,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
`,Dn=c("<style>"),Fn=c('<slot name="prefix">'),Kn=c('<input class="textarea">'),Gn=c('<slot name="suffix">'),Mn=(e,{element:n})=>{const t=r=>{const s=r.target,i=new CustomEvent("change",{detail:{value:s.value}});n.dispatchEvent(i)},o=r=>{if(r.keyCode===13&&(r.preventDefault(),r.target)){const s=r.target,i=new CustomEvent("enter",{detail:{value:s.value}});n.dispatchEvent(i)}};return[(()=>{const r=Dn();return f(r,Hn),r})(),(()=>{const r=Fn();return r._$owner=h(),r})(),(()=>{const r=Kn();return r.$$keydown=o,r.addEventListener("change",t),g(s=>{const i=e.placeholder,l=e.type;return i!==s._v$&&k(r,"placeholder",s._v$=i),l!==s._v$2&&k(r,"type",s._v$2=l),s},{_v$:void 0,_v$2:void 0}),g(()=>r.value=e.value),r})(),(()=>{const r=Gn();return r._$owner=h(),r})()]},De=()=>{y(`${_}-textfield`,{value:"",placeholder:"",type:"text"},Mn)};J(["keydown"]);const Fe=c("<span>"),Un=e=>{const[n,t]=S(""),[o,r]=S(0),[s,i]=S(!0),{text:l,speed:d=100,cursor:u="|"}=e;return te(()=>{const a=setInterval(()=>{t(l.substr(0,o())),r(o()+1),o()>=l.length&&(i(!1),clearInterval(a))},d)}),[(()=>{const a=Fe();return f(a,n),a})(),O((()=>{const a=O(()=>!!s());return()=>a()&&(()=>{const b=Fe();return f(b,u),b})()})())]},Ke=()=>{y(`${_}-typewriter`,{text:"",speed:100,cursor:"|"},Un)},Vn=Object.freeze(Object.defineProperty({__proto__:null,Button:le,Card:Ee,ChatBubble:Se,DanceCount:Ae,DanceNumber:ze,FlexBox:Te,FlexItem:je,Icon:Pe,ImageCard:Ie,LayoutGrid:Re,LayoutHoly:Be,PlaceHolder:Oe,Radio:ce,RadioButton:Ne,RadioGroup:Le,Textarea:He,Textfield:De,Typewriter:Ke},Symbol.toStringTag,{value:"Module"})),Yn="",Jn="",Xn="",qn=(e=Vn)=>{for(const n in e){const t=e[n];t()}};$.Button=le,$.Card=Ee,$.ChatBubble=Se,$.DanceCount=Ae,$.DanceNumber=ze,$.FlexBox=Te,$.FlexItem=je,$.Icon=Pe,$.ImageCard=Ie,$.LayoutGrid=Re,$.LayoutHoly=Be,$.PlaceHolder=Oe,$.Radio=ce,$.RadioButton=Ne,$.RadioGroup=Le,$.Textarea=He,$.Textfield=De,$.Typewriter=Ke,$.defineCustomElements=qn,$.registerIcon=Zt,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
import Button from './Button';
import Card from './Card';
import ChatBubble from './ChatBubble';
import CountDance from './DanceCount';
import DanceCount from './DanceCount';
import DanceNumber from './DanceNumber';

@@ -19,2 +19,2 @@ import FlexBox from './FlexBox';

import Typewriter from './Typewriter';
export { Button, Card, ChatBubble, CountDance, DanceNumber, FlexBox, FlexItem, Icon, ImageCard, LayoutGrid, LayoutHoly, PlaceHolder, Radio, RadioButton, RadioGroup, Textarea, Textfield, Typewriter, };
export { Button, Card, ChatBubble, DanceCount, DanceNumber, FlexBox, FlexItem, Icon, ImageCard, LayoutGrid, LayoutHoly, PlaceHolder, Radio, RadioButton, RadioGroup, Textarea, Textfield, Typewriter, };
{
"name": "@aura-group/aura-design",
"version": "0.3.3",
"version": "0.3.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/aura-design.umd.js",

---
# Aura design Web Components
# Aura Design Web Components

@@ -23,3 +23,3 @@ Our AI Component Library is designed to provide a seamless integration of AI capabilities into your web applications. Built with SolidJS and Web Components, our library offers a simple and clean solution for incorporating advanced AI features into your projects.

You can install the Aura design Library via npm. Simply run the following command in your project directory:
You can install the Aura Design Library via npm. Simply run the following command in your project directory:

@@ -32,6 +32,6 @@ ```bash

To use the components from the Aura design Library in your project, you can import them as follows:
To use the components from the Aura Design Library in your project, you can import them as follows:
```javascript
// Aura design Web Components
// Aura Design Web Components
import {

@@ -64,3 +64,3 @@ defineCustomElements,

// Aura design Pro Web Components
// Aura Design Pro Web Components
import { defineCustomElements as defineCustomElementsPro } from '@aura-group/aura-design-pro';

@@ -79,4 +79,4 @@ defineCustomElementsPro()

We welcome contributions to the Aura design Library! If you have any ideas, bug fixes, or improvements, feel free to open an issue or submit a pull request on our [GitHub repository](https://github.com/fromatlantis/aura-group).
We welcome contributions to the Aura Design Library! If you have any ideas, bug fixes, or improvements, feel free to open an issue or submit a pull request on our [GitHub repository](https://github.com/fromatlantis/aura-group).
---
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc