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

@umbraco-ui/uui-button-group

Package Overview
Dependencies
Maintainers
3
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umbraco-ui/uui-button-group - npm Package Compare versions

Comparing version

to
0.0.4

8

dist/uui-button-group.min.js

@@ -5,3 +5,3 @@ (function(f){typeof define=="function"&&define.amd?define(f):f()})(function(){"use strict";/**

* SPDX-License-Identifier: BSD-3-Clause
*/const f=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,M=Symbol(),V=new Map;class W{constructor(t,e){if(this._$cssResult$=!0,e!==M)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=V.get(this.cssText);return f&&t===void 0&&(V.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const st=o=>new W(typeof o=="string"?o:o+"",M),ot=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new W(e,M)},nt=(o,t)=>{f?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=window.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)})},q=f?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return st(e)})(o):o;/**
*/const f=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,M=Symbol(),j=new Map;class W{constructor(t,e){if(this._$cssResult$=!0,e!==M)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=j.get(this.cssText);return f&&t===void 0&&(j.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const st=o=>new W(typeof o=="string"?o:o+"",M),ot=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new W(e,M)},nt=(o,t)=>{f?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=window.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)})},q=f?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return st(e)})(o):o;/**
* @license

@@ -14,10 +14,10 @@ * Copyright 2017 Google LLC

* SPDX-License-Identifier: BSD-3-Clause
*/var L,B;const U=globalThis.trustedTypes,K=U?U.createPolicy("lit-html",{createHTML:o=>o}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+v,rt=`<${Z}>`,g=document,E=(o="")=>g.createComment(o),S=o=>o===null||typeof o!="object"&&typeof o!="function",G=Array.isArray,lt=o=>{var t;return G(o)||typeof((t=o)===null||t===void 0?void 0:t[Symbol.iterator])=="function"},w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,Q=/>/g,_=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,X=/'/g,Y=/"/g,tt=/^(?:script|style|textarea)$/i,ht=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),dt=ht(1),m=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),et=new WeakMap,at=(o,t,e)=>{var i,s;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=r._$litPart$;if(n===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new x(t.insertBefore(E(),a),a,void 0,e!=null?e:{})}return n._$AI(o),n},y=g.createTreeWalker(g,129,null,!1),ut=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=w;for(let l=0;l<e;l++){const h=o[l];let p,d,u=-1,$=0;for(;$<h.length&&(n.lastIndex=$,d=n.exec(h),d!==null);)$=n.lastIndex,n===w?d[1]==="!--"?n=F:d[1]!==void 0?n=Q:d[2]!==void 0?(tt.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=_):d[3]!==void 0&&(n=_):n===_?d[0]===">"?(n=s!=null?s:w,u=-1):d[1]===void 0?u=-2:(u=n.lastIndex-d[2].length,p=d[1],n=d[3]===void 0?_:d[3]==='"'?Y:X):n===Y||n===X?n=_:n===F||n===Q?n=w:(n=_,s=void 0);const H=n===_&&o[l+1].startsWith("/>")?" ":"";r+=n===w?h+rt:u>=0?(i.push(p),h.slice(0,u)+"$lit$"+h.slice(u)+v+H):h+v+(u===-2?(i.push(void 0),l):H)}const a=r+(o[e]||"<?>")+(t===2?"</svg>":"");return[K!==void 0?K.createHTML(a):a,i]};class C{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[h,p]=ut(t,e);if(this.el=C.createElement(h,i),y.currentNode=this.el.content,e===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(s=y.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const u of s.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(v)){const $=p[n++];if(d.push(u),$!==void 0){const H=s.getAttribute($.toLowerCase()+"$lit$").split(v),N=/([.?@])?(.*)/.exec($);l.push({type:1,index:r,name:N[2],strings:H,ctor:N[1]==="."?pt:N[1]==="?"?$t:N[1]==="@"?vt:P})}else l.push({type:6,index:r})}for(const u of d)s.removeAttribute(u)}if(tt.test(s.tagName)){const d=s.textContent.split(v),u=d.length-1;if(u>0){s.textContent=U?U.emptyScript:"";for(let $=0;$<u;$++)s.append(d[$],E()),y.nextNode(),l.push({type:2,index:++r});s.append(d[u],E())}}}else if(s.nodeType===8)if(s.data===Z)l.push({type:2,index:r});else{let d=-1;for(;(d=s.data.indexOf(v,d+1))!==-1;)l.push({type:7,index:r}),d+=v.length-1}r++}}static createElement(t,e){const i=g.createElement("template");return i.innerHTML=t,i}}function b(o,t,e=o,i){var s,r,n,a;if(t===m)return t;let l=i!==void 0?(s=e._$Cl)===null||s===void 0?void 0:s[i]:e._$Cu;const h=S(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==h&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),h===void 0?l=void 0:(l=new h(o),l._$AT(o,e,i)),i!==void 0?((n=(a=e)._$Cl)!==null&&n!==void 0?n:a._$Cl=[])[i]=l:e._$Cu=l),l!==void 0&&(t=b(o,l._$AS(o,t.values),l,i)),t}class ct{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:g).importNode(i,!0);y.currentNode=r;let n=y.nextNode(),a=0,l=0,h=s[0];for(;h!==void 0;){if(a===h.index){let p;h.type===2?p=new x(n,n.nextSibling,this,t):h.type===1?p=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(p=new _t(n,this,t)),this.v.push(p),h=s[++l]}a!==(h==null?void 0:h.index)&&(n=y.nextNode(),a++)}return r}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class x{constructor(t,e,i,s){var r;this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cg=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),S(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==m&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.S(t):lt(t)?this.M(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==c&&S(this._$AH)?this._$AA.nextSibling.data=t:this.S(g.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=C.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.m(i);else{const n=new ct(r,this),a=n.p(this.options);n.m(i),this.S(a),this._$AH=n}}_$AC(t){let e=et.get(t.strings);return e===void 0&&et.set(t.strings,e=new C(t)),e}M(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new x(this.A(E()),this.A(E()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cg=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class P{constructor(t,e,i,s,r){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=b(this,t,e,0),n=!S(t)||t!==this._$AH&&t!==m,n&&(this._$AH=t);else{const a=t;let l,h;for(t=r[0],l=0;l<r.length-1;l++)h=b(this,a[i+l],e,l),h===m&&(h=this._$AH[l]),n||(n=!S(h)||h!==this._$AH[l]),h===c?t=c:t!==c&&(t+=(h!=null?h:"")+r[l+1]),this._$AH[l]=h}n&&!s&&this.k(t)}k(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class pt extends P{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===c?void 0:t}}class $t extends P{constructor(){super(...arguments),this.type=4}k(t){t&&t!==c?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}class vt extends P{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=b(this,t,e,0))!==null&&i!==void 0?i:c)===m)return;const s=this._$AH,r=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class _t{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}}(L=globalThis.litHtmlPolyfillSupport)===null||L===void 0||L.call(globalThis,C,x),((B=globalThis.litHtmlVersions)!==null&&B!==void 0?B:globalThis.litHtmlVersions=[]).push("2.0.0");/**
*/var L,B;const U=globalThis.trustedTypes,K=U?U.createPolicy("lit-html",{createHTML:o=>o}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+v,rt=`<${Z}>`,g=document,E=(o="")=>g.createComment(o),S=o=>o===null||typeof o!="object"&&typeof o!="function",G=Array.isArray,lt=o=>{var t;return G(o)||typeof((t=o)===null||t===void 0?void 0:t[Symbol.iterator])=="function"},w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,Q=/>/g,_=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,X=/'/g,Y=/"/g,tt=/^(?:script|style|textarea)$/i,ht=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),dt=ht(1),m=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),et=new WeakMap,at=(o,t,e)=>{var i,s;const r=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=r._$litPart$;if(n===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new C(t.insertBefore(E(),a),a,void 0,e!=null?e:{})}return n._$AI(o),n},y=g.createTreeWalker(g,129,null,!1),ut=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":"",n=w;for(let l=0;l<e;l++){const h=o[l];let p,d,u=-1,$=0;for(;$<h.length&&(n.lastIndex=$,d=n.exec(h),d!==null);)$=n.lastIndex,n===w?d[1]==="!--"?n=F:d[1]!==void 0?n=Q:d[2]!==void 0?(tt.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=_):d[3]!==void 0&&(n=_):n===_?d[0]===">"?(n=s!=null?s:w,u=-1):d[1]===void 0?u=-2:(u=n.lastIndex-d[2].length,p=d[1],n=d[3]===void 0?_:d[3]==='"'?Y:X):n===Y||n===X?n=_:n===F||n===Q?n=w:(n=_,s=void 0);const H=n===_&&o[l+1].startsWith("/>")?" ":"";r+=n===w?h+rt:u>=0?(i.push(p),h.slice(0,u)+"$lit$"+h.slice(u)+v+H):h+v+(u===-2?(i.push(void 0),l):H)}const a=r+(o[e]||"<?>")+(t===2?"</svg>":"");return[K!==void 0?K.createHTML(a):a,i]};class x{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[h,p]=ut(t,e);if(this.el=x.createElement(h,i),y.currentNode=this.el.content,e===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(s=y.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const u of s.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(v)){const $=p[n++];if(d.push(u),$!==void 0){const H=s.getAttribute($.toLowerCase()+"$lit$").split(v),N=/([.?@])?(.*)/.exec($);l.push({type:1,index:r,name:N[2],strings:H,ctor:N[1]==="."?pt:N[1]==="?"?$t:N[1]==="@"?vt:P})}else l.push({type:6,index:r})}for(const u of d)s.removeAttribute(u)}if(tt.test(s.tagName)){const d=s.textContent.split(v),u=d.length-1;if(u>0){s.textContent=U?U.emptyScript:"";for(let $=0;$<u;$++)s.append(d[$],E()),y.nextNode(),l.push({type:2,index:++r});s.append(d[u],E())}}}else if(s.nodeType===8)if(s.data===Z)l.push({type:2,index:r});else{let d=-1;for(;(d=s.data.indexOf(v,d+1))!==-1;)l.push({type:7,index:r}),d+=v.length-1}r++}}static createElement(t,e){const i=g.createElement("template");return i.innerHTML=t,i}}function b(o,t,e=o,i){var s,r,n,a;if(t===m)return t;let l=i!==void 0?(s=e._$Cl)===null||s===void 0?void 0:s[i]:e._$Cu;const h=S(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==h&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),h===void 0?l=void 0:(l=new h(o),l._$AT(o,e,i)),i!==void 0?((n=(a=e)._$Cl)!==null&&n!==void 0?n:a._$Cl=[])[i]=l:e._$Cu=l),l!==void 0&&(t=b(o,l._$AS(o,t.values),l,i)),t}class ct{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:g).importNode(i,!0);y.currentNode=r;let n=y.nextNode(),a=0,l=0,h=s[0];for(;h!==void 0;){if(a===h.index){let p;h.type===2?p=new C(n,n.nextSibling,this,t):h.type===1?p=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(p=new _t(n,this,t)),this.v.push(p),h=s[++l]}a!==(h==null?void 0:h.index)&&(n=y.nextNode(),a++)}return r}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class C{constructor(t,e,i,s){var r;this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cg=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),S(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==m&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.S(t):lt(t)?this.M(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==c&&S(this._$AH)?this._$AA.nextSibling.data=t:this.S(g.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=x.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.m(i);else{const n=new ct(r,this),a=n.p(this.options);n.m(i),this.S(a),this._$AH=n}}_$AC(t){let e=et.get(t.strings);return e===void 0&&et.set(t.strings,e=new x(t)),e}M(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new C(this.A(E()),this.A(E()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cg=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class P{constructor(t,e,i,s,r){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=b(this,t,e,0),n=!S(t)||t!==this._$AH&&t!==m,n&&(this._$AH=t);else{const a=t;let l,h;for(t=r[0],l=0;l<r.length-1;l++)h=b(this,a[i+l],e,l),h===m&&(h=this._$AH[l]),n||(n=!S(h)||h!==this._$AH[l]),h===c?t=c:t!==c&&(t+=(h!=null?h:"")+r[l+1]),this._$AH[l]=h}n&&!s&&this.k(t)}k(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class pt extends P{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===c?void 0:t}}class $t extends P{constructor(){super(...arguments),this.type=4}k(t){t&&t!==c?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}class vt extends P{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=(i=b(this,t,e,0))!==null&&i!==void 0?i:c)===m)return;const s=this._$AH,r=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class _t{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}}(L=globalThis.litHtmlPolyfillSupport)===null||L===void 0||L.call(globalThis,x,C),((B=globalThis.litHtmlVersions)!==null&&B!==void 0?B:globalThis.litHtmlVersions=[]).push("2.0.0");/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/var I,D,j;class T extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Dt)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Dt)===null||t===void 0||t.setConnected(!1)}render(){return m}}T.finalized=!0,T._$litElement$=!0,(I=globalThis.litElementHydrateSupport)===null||I===void 0||I.call(globalThis,{LitElement:T}),(D=globalThis.litElementPolyfillSupport)===null||D===void 0||D.call(globalThis,{LitElement:T}),((j=globalThis.litElementVersions)!==null&&j!==void 0?j:globalThis.litElementVersions=[]).push("3.0.0");class it extends T{render(){return dt`<slot></slot>`}}it.styles=[ot`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted(:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-size-border-radius, 3px) 0 0 var(--uui-size-border-radius, 3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-size-border-radius, 3px) var(--uui-size-border-radius, 3px) 0}::slotted(uui-dropdown){--uui-dropdown-toggle-slot-button-border-radius:0}::slotted(uui-dropdown:not(:first-child)){--uui-dropdown-toggle-slot-button-merge-border-left:1}::slotted(uui-dropdown:first-child){--uui-dropdown-toggle-slot-button-border-radius:var(
*/var I,D,V;class T extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Dt)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Dt)===null||t===void 0||t.setConnected(!1)}render(){return m}}T.finalized=!0,T._$litElement$=!0,(I=globalThis.litElementHydrateSupport)===null||I===void 0||I.call(globalThis,{LitElement:T}),(D=globalThis.litElementPolyfillSupport)===null||D===void 0||D.call(globalThis,{LitElement:T}),((V=globalThis.litElementVersions)!==null&&V!==void 0?V:globalThis.litElementVersions=[]).push("3.0.0");class it extends T{render(){return dt`<slot></slot>`}}it.styles=[ot`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted(:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-size-border-radius, 3px) 0 0 var(--uui-size-border-radius, 3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-size-border-radius, 3px) var(--uui-size-border-radius, 3px) 0}::slotted(uui-dropdown){--uui-dropdown-toggle-slot-button-border-radius:0}::slotted(uui-dropdown:not(:first-child)){--uui-dropdown-toggle-slot-button-merge-border-left:1}::slotted(uui-dropdown:first-child){--uui-dropdown-toggle-slot-button-border-radius:var(
--uui-size-border-radius,
3px
) 0 0 var(--uui-size-border-radius, 3px)}::slotted(uui-dropdown:last-child){--uui-dropdown-toggle-slot-button-border-radius:0 var(--uui-size-border-radius, 3px) var(--uui-size-border-radius, 3px) 0}::slotted(:hover){z-index:1}`],customElements.define("uui-button-group",it)});
) 0 0 var(--uui-size-border-radius, 3px)}::slotted(uui-dropdown:last-child){--uui-dropdown-toggle-slot-button-border-radius:0 var(--uui-size-border-radius, 3px) var(--uui-size-border-radius, 3px) 0}::slotted(:hover){z-index:1}`],((o,t,e)=>{if(o.indexOf("-")>0===!1){console.error(`${o} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}customElements.get(o)?console.error(`${o} is already defined`):customElements.define(o,t,e)})("uui-button-group",it)});
//# sourceMappingURL=uui-button-group.min.js.map
import { css, LitElement, html } from 'lit';
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';

@@ -56,2 +57,2 @@ class UUIButtonGroupElement extends LitElement {

customElements.define("uui-button-group", UUIButtonGroupElement);
defineElement("uui-button-group", UUIButtonGroupElement);
{
"name": "@umbraco-ui/uui-button-group",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",

@@ -33,3 +33,3 @@ "description": "An element to group buttons.",

"dependencies": {
"@umbraco-ui/uui-base": "^0.0.8"
"@umbraco-ui/uui-base": "^0.0.9"
},

@@ -45,3 +45,3 @@ "scripts": {

"homepage": "https://uui.umbraco.com/?path=/story/uui-button-group",
"gitHead": "9f7c81684dfb6113d0ee6b08866fb6429322eb2f"
"gitHead": "ffb7ad3be3197ddb38f2a2917ffc3d70334d1ce2"
}

Sorry, the diff of this file is not supported yet