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
0
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.26 to 0.3.27

2

dist/aura-design.umd.js

@@ -495,3 +495,3 @@ (function(p,X){typeof exports=="object"&&typeof module<"u"?X(exports):typeof define=="function"&&define.amd?define(["exports"],X):(p=typeof globalThis<"u"?globalThis:p||self,X(p["aura-design"]={}))})(this,function(p){"use strict";const X=(e,t)=>e===t,tt=Symbol("solid-track"),J={equals:X};let he=ve;const M=1,Q=2,ge={owned:null,cleanups:null,context:null,owner:null};var E=null;let ie=null,k=null,T=null,j=null,Z=0;function Y(e,t){const n=k,o=E,r=e.length===0,i=r?ge:{owned:null,cleanups:null,context:null,owner:t===void 0?o:t},l=r?e:()=>e(()=>I(()=>re(i)));E=i,k=null;try{return K(l,!0)}finally{k=n,E=o}}function z(e,t){t=t?Object.assign({},J,t):J;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=r=>(typeof r=="function"&&(r=r(n.value)),$e(n,r));return[be.bind(n),o]}function v(e,t,n){const o=se(e,t,!1,M);W(o)}function le(e,t,n){he=it;const o=se(e,t,!1,M);o.user=!0,j?j.push(o):W(o)}function F(e,t,n){n=n?Object.assign({},J,n):J;const o=se(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=n.equals||void 0,W(o),be.bind(o)}function I(e){if(k===null)return e();const t=k;k=null;try{return e()}finally{k=t}}function H(e){le(()=>I(e))}function ee(e){return E===null||(E.cleanups===null?E.cleanups=[e]:E.cleanups.push(e)),e}function b(){return E}function nt(e,t){const n=E,o=k;E=e,k=null;try{return K(t,!0)}catch(r){ae(r)}finally{E=n,k=o}}function be(){if(this.sources&&this.state)if(this.state===M)W(this);else{const e=T;T=null,K(()=>ne(this),!1),T=e}if(k){const e=this.observers?this.observers.length:0;k.sources?(k.sources.push(this),k.sourceSlots.push(e)):(k.sources=[this],k.sourceSlots=[e]),this.observers?(this.observers.push(k),this.observerSlots.push(k.sources.length-1)):(this.observers=[k],this.observerSlots=[k.sources.length-1])}return this.value}function $e(e,t,n){let o=e.value;return(!e.comparator||!e.comparator(o,t))&&(e.value=t,e.observers&&e.observers.length&&K(()=>{for(let r=0;r<e.observers.length;r+=1){const i=e.observers[r],l=ie&&ie.running;l&&ie.disposed.has(i),(l?!i.tState:!i.state)&&(i.pure?T.push(i):j.push(i),i.observers&&pe(i)),l||(i.state=M)}if(T.length>1e6)throw T=[],new Error},!1)),t}function W(e){if(!e.fn)return;re(e);const t=E,n=k,o=Z;k=E=e,rt(e,e.value,o),k=n,E=t}function rt(e,t,n){let o;try{o=e.fn(t)}catch(r){return e.pure&&(e.state=M,e.owned&&e.owned.forEach(re),e.owned=null),e.updatedAt=n+1,ae(r)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?$e(e,o):e.value=o,e.updatedAt=n)}function se(e,t,n,o=M,r){const i={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:E,context:null,pure:n};return E===null||E!==ge&&(E.owned?E.owned.push(i):E.owned=[i]),i}function te(e){if(e.state===0)return;if(e.state===Q)return ne(e);if(e.suspense&&I(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Z);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===M)W(e);else if(e.state===Q){const o=T;T=null,K(()=>ne(e,t[0]),!1),T=o}}function K(e,t){if(T)return e();let n=!1;t||(T=[]),j?n=!0:j=[],Z++;try{const o=e();return ot(n),o}catch(o){n||(j=null),T=null,ae(o)}}function ot(e){if(T&&(ve(T),T=null),e)return;const t=j;j=null,t.length&&K(()=>he(t),!1)}function ve(e){for(let t=0;t<e.length;t++)te(e[t])}function it(e){let t,n=0;for(t=0;t<e.length;t++){const o=e[t];o.user?e[n++]=o:te(o)}for(t=0;t<n;t++)te(e[t])}function ne(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const o=e.sources[n];if(o.sources){const r=o.state;r===M?o!==t&&(!o.updatedAt||o.updatedAt<Z)&&te(o):r===Q&&ne(o,t)}}}function pe(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Q,n.pure?T.push(n):j.push(n),n.observers&&pe(n))}}function re(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),o=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){const i=r.pop(),l=n.observerSlots.pop();o<r.length&&(i.sourceSlots[l]=o,r[o]=i,n.observerSlots[o]=l)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)re(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function ae(e){throw e}const lt=Symbol("fallback");function me(e){for(let t=0;t<e.length;t++)e[t]()}function st(e,t,n={}){let o=[],r=[],i=[],l=0,s=t.length>1?[]:null;return ee(()=>me(i)),()=>{let d=e()||[],c,a;return d[tt],I(()=>{let $=d.length,x,C,m,_,h,S,O,N,U;if($===0)l!==0&&(me(i),i=[],o=[],r=[],l=0,s&&(s=[])),n.fallback&&(o=[lt],r[0]=Y(jr=>(i[0]=jr,n.fallback())),l=1);else if(l===0){for(r=new Array($),a=0;a<$;a++)o[a]=d[a],r[a]=Y(g);l=$}else{for(m=new Array($),_=new Array($),s&&(h=new Array($)),S=0,O=Math.min(l,$);S<O&&o[S]===d[S];S++);for(O=l-1,N=$-1;O>=S&&N>=S&&o[O]===d[N];O--,N--)m[N]=r[O],_[N]=i[O],s&&(h[N]=s[O]);for(x=new Map,C=new Array(N+1),a=N;a>=S;a--)U=d[a],c=x.get(U),C[a]=c===void 0?-1:c,x.set(U,a);for(c=S;c<=O;c++)U=o[c],a=x.get(U),a!==void 0&&a!==-1?(m[a]=r[c],_[a]=i[c],s&&(h[a]=s[c]),a=C[a],x.set(U,a)):i[c]();for(a=S;a<$;a++)a in m?(r[a]=m[a],i[a]=_[a],s&&(s[a]=h[a],s[a](a))):r[a]=Y(g);r=r.slice(0,l=$),o=d.slice(0)}return r});function g($){if(i[a]=$,s){const[x,C]=z(a);return s[a]=C,t(d[a],x)}return t(d[a])}}}function A(e,t){return I(()=>e(t||{}))}const at=e=>`Stale read from <${e}>.`;function G(e){const t="fallback"in e&&{fallback:()=>e.fallback};return F(st(()=>e.each,e.children,t||void 0))}function B(e){const t=e.keyed,n=F(()=>e.when,void 0,{equals:(o,r)=>t?o===r:!o==!r});return F(()=>{const o=n();if(o){const r=e.children;return typeof r=="function"&&r.length>0?I(()=>r(t?o:()=>{if(!I(n))throw at("Show");return e.when})):r}return e.fallback},void 0,void 0)}function ct(e,t,n){let o=n.length,r=t.length,i=o,l=0,s=0,d=t[r-1].nextSibling,c=null;for(;l<r||s<i;){if(t[l]===n[s]){l++,s++;continue}for(;t[r-1]===n[i-1];)r--,i--;if(r===l){const a=i<o?s?n[s-1].nextSibling:n[i-s]:d;for(;s<i;)e.insertBefore(n[s++],a)}else if(i===s)for(;l<r;)(!c||!c.has(t[l]))&&t[l].remove(),l++;else if(t[l]===n[i-1]&&n[s]===t[r-1]){const a=t[--r].nextSibling;e.insertBefore(n[s++],t[l++].nextSibling),e.insertBefore(n[--i],a),t[r]=n[i]}else{if(!c){c=new Map;let g=s;for(;g<i;)c.set(n[g],g++)}const a=c.get(t[l]);if(a!=null)if(s<a&&a<i){let g=l,$=1,x;for(;++g<r&&g<i&&!((x=c.get(t[g]))==null||x!==a+$);)$++;if($>a-s){const C=t[l];for(;s<a;)e.insertBefore(n[s++],C)}else e.replaceChild(n[s++],t[l++])}else l++;else t[l++].remove()}}}const _e="_$DX_DELEGATE";function u(e,t,n){let o;const r=()=>{const l=document.createElement("template");return l.innerHTML=e,n?l.content.firstChild.firstChild:l.content.firstChild},i=t?()=>(o||(o=r())).cloneNode(!0):()=>I(()=>document.importNode(o||(o=r()),!0));return i.cloneNode=i,i}function D(e,t=window.document){const n=t[_e]||(t[_e]=new Set);for(let o=0,r=e.length;o<r;o++){const i=e[o];n.has(i)||(n.add(i),t.addEventListener(i,dt))}}function L(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function R(e,t){t==null?e.removeAttribute("class"):e.className=t}function ut(e,t,n){if(!t)return n?L(e,"style"):t;const o=e.style;if(typeof t=="string")return o.cssText=t;typeof n=="string"&&(o.cssText=n=void 0),n||(n={}),t||(t={});let r,i;for(i in n)t[i]==null&&o.removeProperty(i),delete n[i];for(i in t)r=t[i],r!==n[i]&&(o.setProperty(i,r),n[i]=r);return n}function ye(e,t,n){return I(()=>e(t,n))}function f(e,t,n,o){if(n!==void 0&&!o&&(o=[]),typeof t!="function")return oe(e,t,o,n);v(r=>oe(e,t(),r,n),o)}function dt(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}});n;){const o=n[t];if(o&&!n.disabled){const r=n[`${t}Data`];if(r!==void 0?o.call(n,r,e):o.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function oe(e,t,n,o,r){for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,l=o!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,i==="string"||i==="number")if(i==="number"&&(t=t.toString()),l){let s=n[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),n=V(e,n,o,s)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;else if(t==null||i==="boolean")n=V(e,n,o);else{if(i==="function")return v(()=>{let s=t();for(;typeof s=="function";)s=s();n=oe(e,s,n,o)}),()=>n;if(Array.isArray(t)){const s=[],d=n&&Array.isArray(n);if(ce(s,t,n,r))return v(()=>n=oe(e,s,n,o,!0)),()=>n;if(s.length===0){if(n=V(e,n,o),l)return n}else d?n.length===0?we(e,s,o):ct(e,n,s):(n&&V(e),we(e,s));n=s}else if(t instanceof Node){if(Array.isArray(n)){if(l)return n=V(e,n,o,t);V(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}else console.warn("Unrecognized value. Skipped inserting",t)}return n}function ce(e,t,n,o){let r=!1;for(let i=0,l=t.length;i<l;i++){let s=t[i],d=n&&n[i];if(s instanceof Node)e.push(s);else if(!(s==null||s===!0||s===!1))if(Array.isArray(s))r=ce(e,s,d)||r;else if(typeof s=="function")if(o){for(;typeof s=="function";)s=s();r=ce(e,Array.isArray(s)?s:[s],Array.isArray(d)?d:[d])||r}else e.push(s),r=!0;else{const c=String(s);d&&d.nodeType===3?(d.data=c,e.push(d)):e.push(document.createTextNode(c))}}return r}function we(e,t,n=null){for(let o=0,r=t.length;o<r;o++)e.insertBefore(t[o],n)}function V(e,t,n,o){if(n===void 0)return e.textContent="";const r=o||document.createTextNode("");if(t.length){let i=!1;for(let l=t.length-1;l>=0;l--){const s=t[l];if(r!==s){const d=s.parentNode===e;!i&&!l?d?e.replaceChild(r,s):e.insertBefore(r,n):d&&s.remove()}else i=!0}}else e.insertBefore(r,n);return[r]}const ft="http://www.w3.org/2000/svg";function ht(e,t=!1){return t?document.createElementNS(ft,e):document.createElement(e)}function xe(e){const{useShadow:t}=e,n=document.createTextNode(""),o=()=>e.mount||document.body,r=b();let i;return le(()=>{i||(i=nt(r,()=>e.children));const l=o();if(l instanceof HTMLHeadElement){const[s,d]=z(!1),c=()=>d(!0);Y(a=>f(l,()=>s()?a():i,null)),ee(c)}else{const s=ht(e.isSVG?"g":"div",e.isSVG),d=t&&s.attachShadow?s.attachShadow({mode:"open"}):s;Object.defineProperty(s,"_$host",{get(){return n.parentNode},configurable:!0}),f(d,i),l.appendChild(s),e.ref&&e.ref(s),ee(()=>l.removeChild(s))}}),n}function gt(e){return Object.keys(e).reduce((n,o)=>{const r=e[o];return n[o]=Object.assign({},r),Ee(r.value)&&!mt(r.value)&&!Array.isArray(r.value)&&(n[o].value=Object.assign({},r.value)),Array.isArray(r.value)&&(n[o].value=r.value.slice(0)),n},{})}function bt(e){return e?Object.keys(e).reduce((n,o)=>{const r=e[o];return n[o]=Ee(r)&&"value"in r?r:{value:r},n[o].attribute||(n[o].attribute=pt(o)),n[o].parse="parse"in n[o]?n[o].parse:typeof n[o].value!="string",n},{}):{}}function $t(e){return Object.keys(e).reduce((n,o)=>(n[o]=e[o].value,n),{})}function vt(e,t){const n=gt(t);return Object.keys(t).forEach(r=>{const i=n[r],l=e.getAttribute(i.attribute),s=e[r];l&&(i.value=i.parse?ke(l):l),s!=null&&(i.value=Array.isArray(s)?s.slice(0):s),i.reflect&&Ce(e,i.attribute,i.value),Object.defineProperty(e,r,{get(){return i.value},set(d){const c=i.value;i.value=d,i.reflect&&Ce(this,i.attribute,i.value);for(let a=0,g=this.__propertyChangedCallbacks.length;a<g;a++)this.__propertyChangedCallbacks[a](r,d,c)},enumerable:!0,configurable:!0})}),n}function ke(e){if(e)try{return JSON.parse(e)}catch{return e}}function Ce(e,t,n){if(n==null||n===!1)return e.removeAttribute(t);let o=JSON.stringify(n);e.__updating[t]=!0,o==="true"&&(o=""),e.setAttribute(t,o),Promise.resolve().then(()=>delete e.__updating[t])}function pt(e){return e.replace(/\.?([A-Z]+)/g,(t,n)=>"-"+n.toLowerCase()).replace("_","-").replace(/^-/,"")}function Ee(e){return e!=null&&(typeof e=="object"||typeof e=="function")}function mt(e){return Object.prototype.toString.call(e)==="[object Function]"}function _t(e){return typeof e=="function"&&e.toString().indexOf("class")===0}let ue;function yt(e,t){const n=Object.keys(t);return class extends e{static get observedAttributes(){return n.map(r=>t[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=vt(this,t);const r=$t(this.props),i=this.Component,l=ue;try{ue=this,this.__initialized=!0,_t(i)?new i(r,{element:this}):i(r,{element:this})}finally{ue=l}}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,i,l){if(this.__initialized&&!this.__updating[r]&&(r=this.lookupProp(r),r in t)){if(l==null&&!this[r])return;this[r]=t[r].parse?ke(l):l}}lookupProp(r){if(t)return n.find(i=>r===i||r===t[i].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(r){this.__releaseCallbacks.push(r)}addPropertyChangedCallback(r){this.__propertyChangedCallbacks.push(r)}}}function wt(e,t={},n={}){const{BaseElement:o=HTMLElement,extension:r}=n;return i=>{if(!e)throw new Error("tag is required to register a Component");let l=customElements.get(e);return l?(l.prototype.Component=i,l):(l=yt(o,bt(t)),l.prototype.Component=i,l.prototype.registeredTag=e,customElements.define(e,l,r),l)}}function xt(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const[r,i]=z(e[t[o]]);Object.defineProperty(n,t[o],{get:r,set(l){i(()=>l)}})}return n}function kt(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let t=e.parentNode;for(;t&&!t._$owner&&!(t.assignedSlot&&t.assignedSlot._$owner);)t=t.parentNode;return t&&t.assignedSlot?t.assignedSlot._$owner:e._$owner}function Ct(e){return(t,n)=>{const{element:o}=n;return Y(r=>{const i=xt(t);o.addPropertyChangedCallback((s,d)=>i[s]=d),o.addReleaseCallback(()=>{o.renderRoot.textContent="",r()});const l=e(i,n);return f(o.renderRoot,l)},kt(o))}}function y(e,t,n){return arguments.length===2&&(n=t,t={}),wt(e,t)(Ct(n))}const w="ar",Et=`:host{align-items:center;border-radius:var(--ar-size-3);display:inline-flex;height:var(--ar-size-m)}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(--ar-size-6);height:inherit;justify-content:center;min-width:4rem;outline:none;padding:0 12px;width:inherit}button:hover{filter:brightness(1.1)}.primary{background:var(--ar-color-primary-gradient);color:var(--ar-color-white)}.primary.text{background:none;color:var(--ar-color-primary)}.primary.outline{background:none;border:1px solid var(--ar-color-primary);color:var(--ar-color-primary)}.primary:hover{filter:brightness(1.2)}.info{background:var(--ar-color-info);color:var(--ar-color-white)}.info.text{background:none;color:var(--ar-color-text)}.info.outline{background:none;border:1px solid var(--ar-color-info);color:var(--ar-color-text)}.info:hover{filter:brightness(.95)}.warning{background:var(--ar-color-warning);color:var(--ar-color-white)}.warning.text{background:none;color:var(--ar-color-warning)}.warning.outline{background:none;border:1px solid var(--ar-color-warning);color:var(--ar-color-warning)}.danger{background:var(--ar-color-danger);color:var(--ar-color-white)}.danger.text{background:none;color:var(--ar-color-danger)}.danger.outline{background:none;border:1px solid var(--ar-color-danger);color:var(--ar-color-danger)}.success{background:var(--ar-color-success);color:var(--ar-color-white)}.success.text{background:none;color:var(--ar-color-success)}.success.outline{background:none;border:1px solid var(--ar-color-success);color:var(--ar-color-success)}.circle{aspect-ratio:1 / 1;border-radius:50%;min-width:auto;padding:0 2px}.round{border-radius:var(--ar-size-21)}

}
`,[o,r]=z("");le(()=>{r(e.value)});const i=l=>{r(l),t.setAttribute("value",l),t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))};return console.log(e.options,JSON.parse(e.options)),[(()=>{const l=fr();return f(l,n),l})(),(()=>{const l=Ye();return f(l,()=>{var s;return(s=e.options)==null?void 0:s.map(d=>(()=>{const c=Ye();return c.$$click=()=>i(d),f(c,d),v(()=>R(c,`button ${d===o()?"active":""}`)),c})())}),v(()=>R(l,`root ${e.size}`)),l})()]},We=()=>{y(`${w}-segmented`,{size:"default",value:"",options:["option1","option2","option3"],block:!1,rounded:!1,activeColor:"",textColor:""},hr)};D(["click"]);const gr=u("<style>"),br=u('<div><div><select></select></div><div class="arrow"></div><ul>'),$r=u("<ar-textfield>",!0,!1),vr=u('<div class="label-chip"><span>'),pr=u("<option>"),mr=u("<li>"),_r=(e,{element:t})=>{const n=P`
`,[o,r]=z("");le(()=>{r(e.value)});const i=l=>{r(l),t.setAttribute("value",l),t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))};return[(()=>{const l=fr();return f(l,n),l})(),(()=>{const l=Ye();return f(l,()=>{var s;return(s=e.options)==null?void 0:s.map(d=>(()=>{const c=Ye();return c.$$click=()=>i(d),f(c,d),v(()=>R(c,`button ${d===o()?"active":""}`)),c})())}),v(()=>R(l,`root ${e.size}`)),l})()]},We=()=>{y(`${w}-segmented`,{size:"default",value:"",options:["option1","option2","option3"],block:!1,rounded:!1,activeColor:"",textColor:""},hr)};D(["click"]);const gr=u("<style>"),br=u('<div><div><select></select></div><div class="arrow"></div><ul>'),$r=u("<ar-textfield>",!0,!1),vr=u('<div class="label-chip"><span>'),pr=u("<option>"),mr=u("<li>"),_r=(e,{element:t})=>{const n=P`
:host {

@@ -498,0 +498,0 @@ align-items: center;

{
"name": "@aura-group/aura-design",
"version": "0.3.26",
"version": "0.3.27",
"description": "",

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

Sorry, the diff of this file is too big to display

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