@warp-ds/elements 2.4.0-next.7 → 2.4.0-next.9

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.
Files changed (100) hide show
  1. package/dist/api.js.map +2 -2
  2. package/dist/custom-elements.json +64 -118
  3. package/dist/index.d.ts +39 -65
  4. package/dist/packages/alert/react.js +1 -1
  5. package/dist/packages/attention/attention.js +14 -14
  6. package/dist/packages/attention/attention.js.map +3 -3
  7. package/dist/packages/attention/attention.react.stories.d.ts +1 -1
  8. package/dist/packages/attention/react.js +1 -1
  9. package/dist/packages/badge/badge.react.stories.d.ts +1 -1
  10. package/dist/packages/badge/react.js +1 -1
  11. package/dist/packages/box/box.react.stories.d.ts +1 -1
  12. package/dist/packages/box/react.js +1 -1
  13. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
  14. package/dist/packages/breadcrumbs/react.js +1 -1
  15. package/dist/packages/button/button.js +11 -11
  16. package/dist/packages/button/button.js.map +3 -3
  17. package/dist/packages/button/button.react.stories.d.ts +1 -1
  18. package/dist/packages/button/react.js +1 -1
  19. package/dist/packages/card/card.react.stories.d.ts +1 -1
  20. package/dist/packages/card/react.js +1 -1
  21. package/dist/packages/combobox/combobox.js.map +1 -1
  22. package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
  23. package/dist/packages/combobox/react.js +1 -1
  24. package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
  25. package/dist/packages/datepicker/react.js +1 -1
  26. package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +1 -1
  27. package/dist/packages/dead-toggle/react.js +1 -1
  28. package/dist/packages/expandable/expandable.react.stories.d.ts +1 -1
  29. package/dist/packages/expandable/react.js +1 -1
  30. package/dist/packages/link/link.js +2 -2
  31. package/dist/packages/link/link.js.map +2 -2
  32. package/dist/packages/link/link.react.stories.d.ts +1 -1
  33. package/dist/packages/link/react.js +1 -1
  34. package/dist/packages/link/styles.js +2 -2
  35. package/dist/packages/modal/modal.stories.d.ts +3 -2
  36. package/dist/packages/modal/react.d.ts +1 -1
  37. package/dist/packages/modal/react.js +2 -2
  38. package/dist/packages/modal-footer/modal-footer.js +4 -4
  39. package/dist/packages/modal-footer/modal-footer.js.map +4 -4
  40. package/dist/packages/modal-footer/react.js +1 -1
  41. package/dist/packages/modal-header/modal-header.js +4 -4
  42. package/dist/packages/modal-header/modal-header.js.map +4 -4
  43. package/dist/packages/modal-header/react.js +1 -1
  44. package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +1 -1
  45. package/dist/packages/page-indicator/react.js +1 -1
  46. package/dist/packages/pagination/pagination.js +4 -4
  47. package/dist/packages/pagination/pagination.js.map +4 -4
  48. package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
  49. package/dist/packages/pagination/react.js +1 -1
  50. package/dist/packages/pill/pill.react.stories.d.ts +1 -1
  51. package/dist/packages/pill/react.js +1 -1
  52. package/dist/packages/radio/radio.js +120 -120
  53. package/dist/packages/radio/radio.js.map +4 -4
  54. package/dist/packages/radio/react.js +1 -1
  55. package/dist/packages/radio-group/radio-group.js +112 -112
  56. package/dist/packages/radio-group/radio-group.js.map +4 -4
  57. package/dist/packages/radio-group/react.js +1 -1
  58. package/dist/packages/select/react.js +1 -1
  59. package/dist/packages/select/select.js +2 -2
  60. package/dist/packages/select/select.js.map +4 -4
  61. package/dist/packages/select/select.react.stories.d.ts +1 -1
  62. package/dist/packages/select/select.react.stories.js +1 -1
  63. package/dist/packages/slider/index.d.ts +1 -1
  64. package/dist/packages/slider/index.js +1 -1
  65. package/dist/packages/slider/react.js +1 -1
  66. package/dist/packages/slider/slider.js +5 -5
  67. package/dist/packages/slider/slider.js.map +4 -4
  68. package/dist/packages/slider-thumb/react.js +1 -1
  69. package/dist/packages/slider-thumb/slider-thumb.js +14 -14
  70. package/dist/packages/slider-thumb/slider-thumb.js.map +4 -4
  71. package/dist/packages/step/react.js +1 -1
  72. package/dist/packages/step/step.js +4 -4
  73. package/dist/packages/step/step.js.map +4 -4
  74. package/dist/packages/step-indicator/index.d.ts +1 -1
  75. package/dist/packages/step-indicator/index.js +1 -1
  76. package/dist/packages/step-indicator/react.js +1 -1
  77. package/dist/packages/step-indicator/step-indicator.js.map +2 -2
  78. package/dist/packages/switch/react.js +1 -1
  79. package/dist/packages/switch/switch.test.js +1 -1
  80. package/dist/packages/tab/react.js +1 -1
  81. package/dist/packages/tab/tab.d.ts +1 -3
  82. package/dist/packages/tab/tab.js +11 -11
  83. package/dist/packages/tab/tab.js.map +3 -3
  84. package/dist/packages/tab-panel/react.js +1 -1
  85. package/dist/packages/tabs/react.js +1 -1
  86. package/dist/packages/tabs/tabs.d.ts +0 -1
  87. package/dist/packages/tabs/tabs.js +5 -5
  88. package/dist/packages/tabs/tabs.js.map +3 -3
  89. package/dist/packages/tabs/tabs.react.stories.d.ts +14 -1
  90. package/dist/packages/tabs/tabs.react.stories.js +45 -24
  91. package/dist/packages/tabs/tabs.stories.d.ts +4 -5
  92. package/dist/packages/tabs/tabs.stories.js +51 -29
  93. package/dist/packages/textarea/react.js +1 -1
  94. package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
  95. package/dist/packages/textfield/react.js +1 -1
  96. package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
  97. package/dist/packages/toast/index.d.ts +1 -1
  98. package/dist/packages/toast/index.js +1 -1
  99. package/dist/web-types.json +19 -34
  100. package/package.json +19 -18
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import React from 'react';
3
3
  import { Attention } from './react';
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { LitElement } from 'lit';
2
1
  import { createComponent } from '@lit/react';
2
+ import { LitElement } from 'lit';
3
3
  import React from 'react';
4
4
  // decouple from CDN by providing a dummy class
5
5
  class Component extends LitElement {
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import React from 'react';
3
3
  import { Badge } from './react';
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { LitElement } from 'lit';
2
1
  import { createComponent } from '@lit/react';
2
+ import { LitElement } from 'lit';
3
3
  import React from 'react';
4
4
  // decouple from CDN by providing a dummy class
5
5
  class Component extends LitElement {
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import React from 'react';
3
3
  import { Box } from './react';
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { LitElement } from 'lit';
2
1
  import { createComponent } from '@lit/react';
2
+ import { LitElement } from 'lit';
3
3
  import React from 'react';
4
4
  // decouple from CDN by providing a dummy class
5
5
  class Component extends LitElement {
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import React from 'react';
3
3
  import { Breadcrumbs } from './react';
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { LitElement } from 'lit';
2
1
  import { createComponent } from '@lit/react';
2
+ import { LitElement } from 'lit';
3
3
  import React from 'react';
4
4
  // decouple from CDN by providing a dummy class
5
5
  class Component extends LitElement {
@@ -1,5 +1,5 @@
1
- var Ze=Object.create;var ne=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var Be=Object.getOwnPropertyNames;var Ge=Object.getPrototypeOf,Je=Object.prototype.hasOwnProperty;var ve=r=>{throw TypeError(r)};var pe=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Ke=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Be(e))!Je.call(r,a)&&a!==o&&ne(r,a,{get:()=>e[a],enumerable:!(t=he(e,a))||t.enumerable});return r};var We=(r,e,o)=>(o=r!=null?Ze(Ge(r)):{},Ke(e||!r||!r.__esModule?ne(o,"default",{value:r,enumerable:!0}):o,r));var m=(r,e,o,t)=>{for(var a=t>1?void 0:t?he(e,o):e,b=r.length-1,c;b>=0;b--)(c=r[b])&&(a=(t?c(e,o,a):c(a))||a);return t&&a&&ne(e,o,a),a};var me=(r,e,o)=>e.has(r)||ve("Cannot "+o);var we=(r,e,o)=>(me(r,e,"read from private field"),o?o.call(r):e.get(r)),fe=(r,e,o)=>e.has(r)?ve("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,o),xe=(r,e,o,t)=>(me(r,e,"write to private field"),t?t.call(r,o):e.set(r,o),o);var ye=pe(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.errorMessages=A.ErrorType=void 0;var Y;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(Y=A.ErrorType||(A.ErrorType={}));A.errorMessages=new Map([[Y.MalformedUnicode,"malformed Unicode character escape sequence"],[Y.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[Y.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[Y.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[Y.EndOfString,"malformed escape sequence at end of string"]])});var _e=pe(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.unraw=E.errorMessages=E.ErrorType=void 0;var _=ye();Object.defineProperty(E,"ErrorType",{enumerable:!0,get:function(){return _.ErrorType}});Object.defineProperty(E,"errorMessages",{enumerable:!0,get:function(){return _.errorMessages}});function er(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function K(r,e,o){let t=er(r);if(Number.isNaN(t)||o!==void 0&&o!==r.length)throw new SyntaxError(_.errorMessages.get(e));return t}function rr(r){let e=K(r,_.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function ke(r,e){let o=K(r,_.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=K(e,_.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,t)}return String.fromCharCode(o)}function or(r){return r.charAt(0)==="{"&&r.charAt(r.length-1)==="}"}function tr(r){if(!or(r))throw new SyntaxError(_.errorMessages.get(_.ErrorType.MalformedUnicode));let e=r.slice(1,-1),o=K(e,_.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(t){throw t instanceof RangeError?new SyntaxError(_.errorMessages.get(_.ErrorType.CodePointLimit)):t}}function ar(r,e=!1){if(e)throw new SyntaxError(_.errorMessages.get(_.ErrorType.OctalDeprecation));let o=parseInt(r,8);return String.fromCharCode(o)}var ir=new Map([["b","\b"],["f","\f"],["n",`
2
- `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function nr(r){return ir.get(r)||r}var sr=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $e(r,e=!1){return r.replace(sr,function(o,t,a,b,c,l,p,k,Q){if(t!==void 0)return"\\";if(a!==void 0)return rr(a);if(b!==void 0)return tr(b);if(c!==void 0)return ke(c,l);if(p!==void 0)return ke(p);if(k==="0")return"\0";if(k!==void 0)return ar(k,!e);if(Q!==void 0)return nr(Q);throw new SyntaxError(_.errorMessages.get(_.ErrorType.EndOfString))})}E.unraw=$e;E.default=$e});var se=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return r.reduce(function(o,t){return o.concat(typeof t=="string"?t:Array.isArray(t)?se.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};var Se=We(_e(),1);var O=r=>typeof r=="string",lr=r=>typeof r=="function",Ce=new Map,Me="en";function ue(r){return[...Array.isArray(r)?r:[r],Me]}function be(r,e,o){let t=ue(r);o||(o="default");let a;if(typeof o=="string")switch(a={day:"numeric",month:"short",year:"numeric"},o){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=o;return W(()=>ee("date",t,o),()=>new Intl.DateTimeFormat(t,a)).format(O(e)?new Date(e):e)}function dr(r,e,o){let t;if(o||(o="default"),typeof o=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},o){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=o;return be(r,e,t)}function le(r,e,o){let t=ue(r);return W(()=>ee("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function ze(r,e,o,{offset:t=0,...a}){var l,p;let b=ue(r),c=e?W(()=>ee("plural-ordinal",b),()=>new Intl.PluralRules(b,{type:"ordinal"})):W(()=>ee("plural-cardinal",b),()=>new Intl.PluralRules(b,{type:"cardinal"}));return(p=(l=a[o])!=null?l:a[c.select(o-t)])!=null?p:a.other}function W(r,e){let o=r(),t=Ce.get(o);return t||(t=e(),Ce.set(o,t)),t}function ee(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var Le=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Qe="%__lingui_octothorpe__%",cr=(r,e,o={})=>{let t=e||r,a=c=>typeof c=="object"?c:o[c],b=(c,l)=>{let p=Object.keys(o).length?a("number"):void 0,k=le(t,c,p);return l.replace(new RegExp(Qe,"g"),k)};return{plural:(c,l)=>{let{offset:p=0}=l,k=ze(t,!1,c,l);return b(c-p,k)},selectordinal:(c,l)=>{let{offset:p=0}=l,k=ze(t,!0,c,l);return b(c-p,k)},select:ur,number:(c,l)=>le(t,c,a(l)||{style:l}),date:(c,l)=>be(t,c,a(l)||l),time:(c,l)=>dr(t,c,a(l)||l)}},ur=(r,e)=>{var o;return(o=e[r])!=null?o:e.other};function br(r,e,o){return(t={},a)=>{let b=cr(e,o,a),c=(p,k=!1)=>Array.isArray(p)?p.reduce((Q,F)=>{if(F==="#"&&k)return Q+Qe;if(O(F))return Q+F;let[I,M,D]=F,P={};M==="plural"||M==="selectordinal"||M==="select"?Object.entries(D).forEach(([j,R])=>{P[j]=c(R,M==="plural"||M==="selectordinal")}):P=D;let C;if(M){let j=b[M];C=j(t[I],P)}else C=t[I];return C==null?Q:Q+C},""):p,l=c(r);return O(l)&&Le.test(l)?(0,Se.unraw)(l):O(l)?l:l?String(l):""}}var gr=Object.defineProperty,hr=(r,e,o)=>e in r?gr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,vr=(r,e,o)=>(hr(r,typeof e!="symbol"?e+"":e,o),o),de=class{constructor(){vr(this,"_events",{})}on(e,o){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(o),()=>this.removeListener(e,o)}removeListener(e,o){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(o);~a&&t.splice(a,1)}emit(e,...o){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,o))}_getListeners(e){let o=this._events[e];return Array.isArray(o)?o:!1}},pr=Object.defineProperty,mr=(r,e,o)=>e in r?pr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,N=(r,e,o)=>(mr(r,typeof e!="symbol"?e+"":e,o),o),ce=class extends de{constructor(e){var o;super(),N(this,"_locale",""),N(this,"_locales"),N(this,"_localeData",{}),N(this,"_messages",{}),N(this,"_missing"),N(this,"_messageCompiler"),N(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((o=e.locale)!=null?o:Me,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,o){let t=this._localeData[e];t?Object.assign(t,o):this._localeData[e]=o}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,o){typeof e=="string"?this._loadLocaleData(e,o):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,o){let t=this._messages[e];t?Object.assign(t,o):this._messages[e]=o}load(e,o){typeof e=="string"&&typeof o=="object"?this._load(e,o):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:o,messages:t}){this._locale=e,this._locales=o||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,o){this._locale=e,this._locales=o,this.emit("change")}_(e,o,t){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let a=t==null?void 0:t.message;e||(e=""),O(e)||(o=e.values||o,a=e.message,e=e.id);let b=this.messages[e],c=b===void 0,l=this._missing;if(l&&c)return lr(l)?l(this._locale,e):l;c&&this.emit("missing",{id:e,locale:this._locale});let p=b||a||e;return O(p)&&(this._messageCompiler?p=this._messageCompiler(p):console.warn(`Uncompiled message detected! Message:
1
+ var Be=Object.create;var ne=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Je=Object.getPrototypeOf,Ke=Object.prototype.hasOwnProperty;var ve=r=>{throw TypeError(r)};var pe=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var We=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ge(e))!Ke.call(r,a)&&a!==o&&ne(r,a,{get:()=>e[a],enumerable:!(t=he(e,a))||t.enumerable});return r};var er=(r,e,o)=>(o=r!=null?Be(Je(r)):{},We(e||!r||!r.__esModule?ne(o,"default",{value:r,enumerable:!0}):o,r));var m=(r,e,o,t)=>{for(var a=t>1?void 0:t?he(e,o):e,b=r.length-1,c;b>=0;b--)(c=r[b])&&(a=(t?c(e,o,a):c(a))||a);return t&&a&&ne(e,o,a),a};var me=(r,e,o)=>e.has(r)||ve("Cannot "+o);var fe=(r,e,o)=>(me(r,e,"read from private field"),o?o.call(r):e.get(r)),we=(r,e,o)=>e.has(r)?ve("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,o),xe=(r,e,o,t)=>(me(r,e,"write to private field"),t?t.call(r,o):e.set(r,o),o);var ye=pe(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.errorMessages=A.ErrorType=void 0;var Y;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(Y=A.ErrorType||(A.ErrorType={}));A.errorMessages=new Map([[Y.MalformedUnicode,"malformed Unicode character escape sequence"],[Y.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[Y.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[Y.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[Y.EndOfString,"malformed escape sequence at end of string"]])});var _e=pe(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.unraw=E.errorMessages=E.ErrorType=void 0;var _=ye();Object.defineProperty(E,"ErrorType",{enumerable:!0,get:function(){return _.ErrorType}});Object.defineProperty(E,"errorMessages",{enumerable:!0,get:function(){return _.errorMessages}});function rr(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function K(r,e,o){let t=rr(r);if(Number.isNaN(t)||o!==void 0&&o!==r.length)throw new SyntaxError(_.errorMessages.get(e));return t}function or(r){let e=K(r,_.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function ke(r,e){let o=K(r,_.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=K(e,_.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,t)}return String.fromCharCode(o)}function tr(r){return r.charAt(0)==="{"&&r.charAt(r.length-1)==="}"}function ar(r){if(!tr(r))throw new SyntaxError(_.errorMessages.get(_.ErrorType.MalformedUnicode));let e=r.slice(1,-1),o=K(e,_.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(t){throw t instanceof RangeError?new SyntaxError(_.errorMessages.get(_.ErrorType.CodePointLimit)):t}}function ir(r,e=!1){if(e)throw new SyntaxError(_.errorMessages.get(_.ErrorType.OctalDeprecation));let o=parseInt(r,8);return String.fromCharCode(o)}var nr=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function sr(r){return nr.get(r)||r}var lr=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $e(r,e=!1){return r.replace(lr,function(o,t,a,b,c,l,p,k,Q){if(t!==void 0)return"\\";if(a!==void 0)return or(a);if(b!==void 0)return ar(b);if(c!==void 0)return ke(c,l);if(p!==void 0)return ke(p);if(k==="0")return"\0";if(k!==void 0)return ir(k,!e);if(Q!==void 0)return sr(Q);throw new SyntaxError(_.errorMessages.get(_.ErrorType.EndOfString))})}E.unraw=$e;E.default=$e});var se=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return r.reduce(function(o,t){return o.concat(typeof t=="string"?t:Array.isArray(t)?se.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};var Se=er(_e(),1);var O=r=>typeof r=="string",dr=r=>typeof r=="function",Ce=new Map,Me="en";function ue(r){return[...Array.isArray(r)?r:[r],Me]}function be(r,e,o){let t=ue(r);o||(o="default");let a;if(typeof o=="string")switch(a={day:"numeric",month:"short",year:"numeric"},o){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=o;return W(()=>ee("date",t,o),()=>new Intl.DateTimeFormat(t,a)).format(O(e)?new Date(e):e)}function cr(r,e,o){let t;if(o||(o="default"),typeof o=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},o){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=o;return be(r,e,t)}function le(r,e,o){let t=ue(r);return W(()=>ee("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function ze(r,e,o,{offset:t=0,...a}){var l,p;let b=ue(r),c=e?W(()=>ee("plural-ordinal",b),()=>new Intl.PluralRules(b,{type:"ordinal"})):W(()=>ee("plural-cardinal",b),()=>new Intl.PluralRules(b,{type:"cardinal"}));return(p=(l=a[o])!=null?l:a[c.select(o-t)])!=null?p:a.other}function W(r,e){let o=r(),t=Ce.get(o);return t||(t=e(),Ce.set(o,t)),t}function ee(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var Le=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Qe="%__lingui_octothorpe__%",ur=(r,e,o={})=>{let t=e||r,a=c=>typeof c=="object"?c:o[c],b=(c,l)=>{let p=Object.keys(o).length?a("number"):void 0,k=le(t,c,p);return l.replace(new RegExp(Qe,"g"),k)};return{plural:(c,l)=>{let{offset:p=0}=l,k=ze(t,!1,c,l);return b(c-p,k)},selectordinal:(c,l)=>{let{offset:p=0}=l,k=ze(t,!0,c,l);return b(c-p,k)},select:br,number:(c,l)=>le(t,c,a(l)||{style:l}),date:(c,l)=>be(t,c,a(l)||l),time:(c,l)=>cr(t,c,a(l)||l)}},br=(r,e)=>{var o;return(o=e[r])!=null?o:e.other};function gr(r,e,o){return(t={},a)=>{let b=ur(e,o,a),c=(p,k=!1)=>Array.isArray(p)?p.reduce((Q,F)=>{if(F==="#"&&k)return Q+Qe;if(O(F))return Q+F;let[I,M,D]=F,P={};M==="plural"||M==="selectordinal"||M==="select"?Object.entries(D).forEach(([j,R])=>{P[j]=c(R,M==="plural"||M==="selectordinal")}):P=D;let C;if(M){let j=b[M];C=j(t[I],P)}else C=t[I];return C==null?Q:Q+C},""):p,l=c(r);return O(l)&&Le.test(l)?(0,Se.unraw)(l):O(l)?l:l?String(l):""}}var hr=Object.defineProperty,vr=(r,e,o)=>e in r?hr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,pr=(r,e,o)=>(vr(r,typeof e!="symbol"?e+"":e,o),o),de=class{constructor(){pr(this,"_events",{})}on(e,o){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(o),()=>this.removeListener(e,o)}removeListener(e,o){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(o);~a&&t.splice(a,1)}emit(e,...o){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,o))}_getListeners(e){let o=this._events[e];return Array.isArray(o)?o:!1}},mr=Object.defineProperty,fr=(r,e,o)=>e in r?mr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,N=(r,e,o)=>(fr(r,typeof e!="symbol"?e+"":e,o),o),ce=class extends de{constructor(e){var o;super(),N(this,"_locale",""),N(this,"_locales"),N(this,"_localeData",{}),N(this,"_messages",{}),N(this,"_missing"),N(this,"_messageCompiler"),N(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((o=e.locale)!=null?o:Me,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,o){let t=this._localeData[e];t?Object.assign(t,o):this._localeData[e]=o}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,o){typeof e=="string"?this._loadLocaleData(e,o):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,o){let t=this._messages[e];t?Object.assign(t,o):this._messages[e]=o}load(e,o){typeof e=="string"&&typeof o=="object"?this._load(e,o):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:o,messages:t}){this._locale=e,this._locales=o||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,o){this._locale=e,this._locales=o,this.emit("change")}_(e,o,t){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let a=t==null?void 0:t.message;e||(e=""),O(e)||(o=e.values||o,a=e.message,e=e.id);let b=this.messages[e],c=b===void 0,l=this._missing;if(l&&c)return dr(l)?l(this._locale,e):l;c&&this.emit("missing",{id:e,locale:this._locale});let p=b||a||e;return O(p)&&(this._messageCompiler?p=this._messageCompiler(p):console.warn(`Uncompiled message detected! Message:
3
3
 
4
4
  > ${p}
5
5
 
@@ -7,7 +7,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
7
7
  ICU features such as interpolation and plurals will not work properly for that message.
8
8
 
9
9
  Please compile your catalog first.
10
- `)),O(p)&&Le.test(p)?JSON.parse(`"${p}"`):O(p)?p:br(p,this._locale,this._locales)(o,t==null?void 0:t.formats)}date(e,o){return be(this._locales||this._locale,e,o)}number(e,o){return le(this._locales||this._locale,e,o)}};function wr(r={}){return new ce(r)}var G=wr();var v=function(r,e,o,t){if(o==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!t:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?t:o==="a"?t.call(r):t?t.value:e.get(r)},x=function(r,e,o,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(r,o):a?a.value=o:e.set(r,o),o};function qe(r){var e,o,t,a,b,c,l,p,k,Q,F,I,M,D,P,C,j,R,te;class He extends r{constructor(...u){var h,f,$;super(...u),e.add(this),this.internals=this.attachInternals(),o.set(this,!1),t.set(this,!1),a.set(this,!1),b.set(this,void 0),c.set(this,void 0),l.set(this,!0),k.set(this,""),Q.set(this,()=>{x(this,a,!0,"f"),x(this,o,!0,"f"),v(this,e,"m",C).call(this)}),F.set(this,()=>{x(this,o,!1,"f"),v(this,e,"m",j).call(this,this.shouldFormValueUpdate()?v(this,k,"f"):""),!this.validity.valid&&v(this,a,"f")&&x(this,t,!0,"f");let q=v(this,e,"m",C).call(this);this.validationMessageCallback&&this.validationMessageCallback(q?this.internals.validationMessage:"")}),I.set(this,()=>{var q;v(this,l,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),x(this,l,!1,"f")),x(this,a,!0,"f"),x(this,t,!0,"f"),v(this,e,"m",C).call(this),(q=this===null||this===void 0?void 0:this.validationMessageCallback)===null||q===void 0||q.call(this,this.showError?this.internals.validationMessage:"")}),M.set(this,void 0),D.set(this,!1),P.set(this,Promise.resolve()),(h=this.addEventListener)===null||h===void 0||h.call(this,"focus",v(this,Q,"f")),(f=this.addEventListener)===null||f===void 0||f.call(this,"blur",v(this,F,"f")),($=this.addEventListener)===null||$===void 0||$.call(this,"invalid",v(this,I,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let u=this.validators.map($=>$.attribute).flat(),h=super.observedAttributes||[];return[...new Set([...h,...u])]}static getValidator(u){return this.validators.find(h=>h.attribute===u)||null}static getValidators(u){return this.validators.filter(h=>{var f;if(h.attribute===u||!((f=h.attribute)===null||f===void 0)&&f.includes(u))return!0})}get form(){return this.internals.form}get showError(){return v(this,e,"m",C).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(u,h,f){var $;($=super.attributeChangedCallback)===null||$===void 0||$.call(this,u,h,f);let H=this.constructor.getValidators(u);H!=null&&H.length&&this.validationTarget&&this.setValue(v(this,k,"f"))}setValue(u){var h;x(this,t,!1,"f"),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,""),x(this,k,u,"f");let $=this.shouldFormValueUpdate()?u:null;this.internals.setFormValue($),v(this,e,"m",j).call(this,$),this.valueChangedCallback&&this.valueChangedCallback($),v(this,e,"m",C).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(u=>u(v(this,P,"f")))}formResetCallback(){var u,h;x(this,a,!1,"f"),x(this,t,!1,"f"),v(this,e,"m",C).call(this),(u=this.resetFormControl)===null||u===void 0||u.call(this),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,v(this,e,"m",C).call(this)?this.validationMessage:"")}}return o=new WeakMap,t=new WeakMap,a=new WeakMap,b=new WeakMap,c=new WeakMap,l=new WeakMap,k=new WeakMap,Q=new WeakMap,F=new WeakMap,I=new WeakMap,M=new WeakMap,D=new WeakMap,P=new WeakMap,e=new WeakSet,p=function(){let u=this.getRootNode(),h=`${this.localName}[name="${this.getAttribute("name")}"]`;return u.querySelectorAll(h)},C=function(){if(this.hasAttribute("disabled"))return!1;let u=v(this,t,"f")||v(this,a,"f")&&!this.validity.valid&&!v(this,o,"f");return u&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),u},j=function(u){let h=this.constructor,f={},$=h.validators,q=[],H=$.some(L=>L.isValid instanceof Promise);v(this,D,"f")||(x(this,P,new Promise(L=>{x(this,M,L,"f")}),"f"),x(this,D,!0,"f")),v(this,b,"f")&&(v(this,b,"f").abort(),x(this,c,v(this,b,"f"),"f"));let Z=new AbortController;x(this,b,Z,"f");let B,ge=!1;$.length&&($.forEach(L=>{let ae=L.key||"customError",U=L.isValid(this,u,Z.signal);U instanceof Promise?(q.push(U),U.then(ie=>{ie!=null&&(f[ae]=!ie,B=v(this,e,"m",te).call(this,L,u),v(this,e,"m",R).call(this,f,B))})):(f[ae]=!U,this.validity[ae]!==!U&&(ge=!0),!U&&!B&&(B=v(this,e,"m",te).call(this,L,u)))}),Promise.allSettled(q).then(()=>{var L;Z!=null&&Z.signal.aborted||(x(this,D,!1,"f"),(L=v(this,M,"f"))===null||L===void 0||L.call(this))}),(ge||!H)&&v(this,e,"m",R).call(this,f,B))},R=function(u,h){if(this.validationTarget)this.internals.setValidity(u,h,this.validationTarget),x(this,l,!1,"f");else{if(this.internals.setValidity(u,h),this.internals.validity.valid)return;x(this,l,!0,"f")}},te=function(u,h){if(this.validityCallback){let f=this.validityCallback(u.key||"customError");if(f)return f}return u.message instanceof Function?u.message(this,h):u.message},He}import{html as oe,LitElement as Re,css as zr}from"lit";import{property as S}from"lit/decorators.js";var fr=["en","nb","fi","da","sv"],Fe="en",Ee=r=>fr.find(e=>r===e||r.toLowerCase().includes(e))||Fe;function xr(){if(typeof window=="undefined"){let r=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ee(r)}try{let r=document.documentElement.lang;return Ee(r)}catch(r){return console.warn("could not detect locale, falling back to source locale",r),Fe}}var yr=(r,e,o,t,a,b)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?b:e,De=(r,e,o,t,a)=>{let b=xr(),c=yr(b,r,e,o,t,a);G.load(b,c),G.activate(b)};import{html as $r,LitElement as Te}from"lit";import{property as T}from"lit/decorators.js";import{classMap as _r}from"lit/directives/class-map.js";import{css as Pe}from"lit";var re=Pe`
10
+ `)),O(p)&&Le.test(p)?JSON.parse(`"${p}"`):O(p)?p:gr(p,this._locale,this._locales)(o,t==null?void 0:t.formats)}date(e,o){return be(this._locales||this._locale,e,o)}number(e,o){return le(this._locales||this._locale,e,o)}};function wr(r={}){return new ce(r)}var G=wr();var v=function(r,e,o,t){if(o==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!t:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?t:o==="a"?t.call(r):t?t.value:e.get(r)},x=function(r,e,o,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(r,o):a?a.value=o:e.set(r,o),o};function qe(r){var e,o,t,a,b,c,l,p,k,Q,F,I,M,D,P,C,j,R,te;class Ze extends r{constructor(...u){var h,w,$;super(...u),e.add(this),this.internals=this.attachInternals(),o.set(this,!1),t.set(this,!1),a.set(this,!1),b.set(this,void 0),c.set(this,void 0),l.set(this,!0),k.set(this,""),Q.set(this,()=>{x(this,a,!0,"f"),x(this,o,!0,"f"),v(this,e,"m",C).call(this)}),F.set(this,()=>{x(this,o,!1,"f"),v(this,e,"m",j).call(this,this.shouldFormValueUpdate()?v(this,k,"f"):""),!this.validity.valid&&v(this,a,"f")&&x(this,t,!0,"f");let q=v(this,e,"m",C).call(this);this.validationMessageCallback&&this.validationMessageCallback(q?this.internals.validationMessage:"")}),I.set(this,()=>{var q;v(this,l,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),x(this,l,!1,"f")),x(this,a,!0,"f"),x(this,t,!0,"f"),v(this,e,"m",C).call(this),(q=this===null||this===void 0?void 0:this.validationMessageCallback)===null||q===void 0||q.call(this,this.showError?this.internals.validationMessage:"")}),M.set(this,void 0),D.set(this,!1),P.set(this,Promise.resolve()),(h=this.addEventListener)===null||h===void 0||h.call(this,"focus",v(this,Q,"f")),(w=this.addEventListener)===null||w===void 0||w.call(this,"blur",v(this,F,"f")),($=this.addEventListener)===null||$===void 0||$.call(this,"invalid",v(this,I,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let u=this.validators.map($=>$.attribute).flat(),h=super.observedAttributes||[];return[...new Set([...h,...u])]}static getValidator(u){return this.validators.find(h=>h.attribute===u)||null}static getValidators(u){return this.validators.filter(h=>{var w;if(h.attribute===u||!((w=h.attribute)===null||w===void 0)&&w.includes(u))return!0})}get form(){return this.internals.form}get showError(){return v(this,e,"m",C).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(u,h,w){var $;($=super.attributeChangedCallback)===null||$===void 0||$.call(this,u,h,w);let H=this.constructor.getValidators(u);H!=null&&H.length&&this.validationTarget&&this.setValue(v(this,k,"f"))}setValue(u){var h;x(this,t,!1,"f"),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,""),x(this,k,u,"f");let $=this.shouldFormValueUpdate()?u:null;this.internals.setFormValue($),v(this,e,"m",j).call(this,$),this.valueChangedCallback&&this.valueChangedCallback($),v(this,e,"m",C).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(u=>u(v(this,P,"f")))}formResetCallback(){var u,h;x(this,a,!1,"f"),x(this,t,!1,"f"),v(this,e,"m",C).call(this),(u=this.resetFormControl)===null||u===void 0||u.call(this),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,v(this,e,"m",C).call(this)?this.validationMessage:"")}}return o=new WeakMap,t=new WeakMap,a=new WeakMap,b=new WeakMap,c=new WeakMap,l=new WeakMap,k=new WeakMap,Q=new WeakMap,F=new WeakMap,I=new WeakMap,M=new WeakMap,D=new WeakMap,P=new WeakMap,e=new WeakSet,p=function(){let u=this.getRootNode(),h=`${this.localName}[name="${this.getAttribute("name")}"]`;return u.querySelectorAll(h)},C=function(){if(this.hasAttribute("disabled"))return!1;let u=v(this,t,"f")||v(this,a,"f")&&!this.validity.valid&&!v(this,o,"f");return u&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),u},j=function(u){let h=this.constructor,w={},$=h.validators,q=[],H=$.some(L=>L.isValid instanceof Promise);v(this,D,"f")||(x(this,P,new Promise(L=>{x(this,M,L,"f")}),"f"),x(this,D,!0,"f")),v(this,b,"f")&&(v(this,b,"f").abort(),x(this,c,v(this,b,"f"),"f"));let Z=new AbortController;x(this,b,Z,"f");let B,ge=!1;$.length&&($.forEach(L=>{let ae=L.key||"customError",U=L.isValid(this,u,Z.signal);U instanceof Promise?(q.push(U),U.then(ie=>{ie!=null&&(w[ae]=!ie,B=v(this,e,"m",te).call(this,L,u),v(this,e,"m",R).call(this,w,B))})):(w[ae]=!U,this.validity[ae]!==!U&&(ge=!0),!U&&!B&&(B=v(this,e,"m",te).call(this,L,u)))}),Promise.allSettled(q).then(()=>{var L;Z!=null&&Z.signal.aborted||(x(this,D,!1,"f"),(L=v(this,M,"f"))===null||L===void 0||L.call(this))}),(ge||!H)&&v(this,e,"m",R).call(this,w,B))},R=function(u,h){if(this.validationTarget)this.internals.setValidity(u,h,this.validationTarget),x(this,l,!1,"f");else{if(this.internals.setValidity(u,h),this.internals.validity.valid)return;x(this,l,!0,"f")}},te=function(u,h){if(this.validityCallback){let w=this.validityCallback(u.key||"customError");if(w)return w}return u.message instanceof Function?u.message(this,h):u.message},Ze}import{css as Re,html as oe,LitElement as Xe}from"lit";import{property as S}from"lit/decorators.js";var xr=["en","nb","fi","da","sv"],Fe="en",Ee=r=>xr.find(e=>r===e||r.toLowerCase().includes(e))||Fe;function yr(){if(typeof window=="undefined"){let r=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ee(r)}try{let r=document.documentElement.lang;return Ee(r)}catch(r){return console.warn("could not detect locale, falling back to source locale",r),Fe}}var kr=(r,e,o,t,a,b)=>r==="nb"?o:r==="fi"?t:r==="da"?a:r==="sv"?b:e,De=(r,e,o,t,a)=>{let b=yr(),c=kr(b,r,e,o,t,a);G.load(b,c),G.activate(b)};import{html as _r,LitElement as Te}from"lit";import{property as T}from"lit/decorators.js";import{classMap as Cr}from"lit/directives/class-map.js";import{css as Pe}from"lit";var re=Pe`
11
11
  *,
12
12
  :before,
13
13
  :after {
@@ -2446,7 +2446,7 @@ Please compile your catalog first.
2446
2446
  display: none
2447
2447
  }
2448
2448
  }
2449
- `;import{css as kr}from"lit";var Oe=kr`.w-button,
2449
+ `;import{css as $r}from"lit";var Oe=$r`.w-button,
2450
2450
  .w-button--secondary {
2451
2451
  /* Local scoped variables, given the default button (the secondary variant) as a default */
2452
2452
  --_background: var(--background, var(--w-s-color-background));
@@ -2457,7 +2457,7 @@ Please compile your catalog first.
2457
2457
  --_border: var(--border, var(--w-s-color-border));
2458
2458
  --_border-hover: var(--border-hover, var(--w-s-color-border-hover));
2459
2459
  --_border-active: var(--border-active, var(--w-s-color-border-active));
2460
- --_border-radius: var(--border-radius, 8px);
2460
+ --_border-radius: var(--w-button-radius-default, 8px);
2461
2461
  --_font-size: var(--font-size, var(--w-font-size-m));
2462
2462
  --_line-height: var(--line-height, var(--w-line-height-m));
2463
2463
  --_font-weight: var(--font-weight, bold);
@@ -2530,7 +2530,7 @@ Please compile your catalog first.
2530
2530
  --background-hover: var(--w-s-color-background-hover);
2531
2531
  --background-active: var(--w-s-color-background-active);
2532
2532
  --color: var(--w-s-color-text);
2533
- --border-radius: 4px;
2533
+ --border-radius: var(--w-button-radius-utility, 4px);
2534
2534
  --border-width: 1px;
2535
2535
  }
2536
2536
  .w-button--utility-quiet {
@@ -2681,14 +2681,14 @@ Please compile your catalog first.
2681
2681
  background-position: 60px 0;
2682
2682
  }
2683
2683
  }`;var Ve=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"],z=class extends Te{constructor(){super(...arguments);this.variant="secondary"}connectedCallback(){if(super.connectedCallback(),!Ve.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2684
- ${Ve.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let o={"w-button":this.variant!=="link","w-button--primary":this.variant==="primary","w-button--secondary":this.variant==="secondary","w-button--negative":this.variant==="negative","w-button--utility":this.variant==="utility","w-button--quiet":this.variant==="quiet","w-button--negative-quiet":this.variant==="negativeQuiet","w-button--utility-quiet":this.variant==="utilityQuiet","w-button--overlay":this.variant==="overlay","w-button--overlay-inverted":this.variant==="overlayInverted","w-button--overlay-quiet":this.variant==="overlayQuiet","w-button--overlay-inverted-quiet":this.variant==="overlayInvertedQuiet","w-button--small":this.small,"w-button--full-width":this.fullWidth,"w-button--disabled":this.disabled};return $r`<a
2684
+ ${Ve.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){let o={"w-button":this.variant!=="link","w-button--primary":this.variant==="primary","w-button--secondary":this.variant==="secondary","w-button--negative":this.variant==="negative","w-button--utility":this.variant==="utility","w-button--quiet":this.variant==="quiet","w-button--negative-quiet":this.variant==="negativeQuiet","w-button--utility-quiet":this.variant==="utilityQuiet","w-button--overlay":this.variant==="overlay","w-button--overlay-inverted":this.variant==="overlayInverted","w-button--overlay-quiet":this.variant==="overlayQuiet","w-button--overlay-inverted-quiet":this.variant==="overlayInvertedQuiet","w-button--small":this.small,"w-button--full-width":this.fullWidth,"w-button--disabled":this.disabled};return _r`<a
2685
2685
  href=${this.href}
2686
2686
  target=${this.target}
2687
2687
  rel=${this.target==="_blank"?this.rel||"noopener":void 0}
2688
- class=${_r(o)}>
2688
+ class=${Cr(o)}>
2689
2689
  <slot></slot>
2690
- </a>`}};z.shadowRootOptions={...Te.shadowRootOptions,delegatesFocus:!0},z.styles=[re,Oe],m([T({type:Boolean,reflect:!0})],z.prototype,"autofocus",2),m([T({reflect:!0})],z.prototype,"variant",2),m([T({type:Boolean,reflect:!0})],z.prototype,"small",2),m([T({reflect:!0})],z.prototype,"href",2),m([T({type:Boolean,reflect:!0})],z.prototype,"disabled",2),m([T({reflect:!0})],z.prototype,"target",2),m([T({reflect:!0})],z.prototype,"rel",2),m([T({attribute:"full-width",type:Boolean,reflect:!0})],z.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",z);var je=JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');var Ae=JSON.parse('{"button.aria.loading":["Loading..."]}');var Ne=JSON.parse('{"button.aria.loading":["Ladataan..."]}');var Ie=JSON.parse('{"button.aria.loading":["Laster..."]}');var Ue=JSON.parse('{"button.aria.loading":["Laddar ..."]}');import{css as Cr}from"lit";var Ye=Cr`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.hover\\:no-underline:hover,.focus\\:no-underline:focus,.active\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\[15px\\]{padding-left:15px;padding-right:15px}.py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;var Xe=["primary","secondary","negative","utility","pill","link"],V="font-bold focusable justify-center transition-colors ease-in-out",w={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},g={primary:`border-0 rounded-8 ${V}`,secondary:`border-2 rounded-8 ${V}`,utility:`border rounded-4 ${V}`,negative:`border-0 rounded-8 ${V}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${V}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${w.link}`},n={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},s={medium:"text-m leading-[24]",xsmall:"text-xs"},i={inProgress:`border-transparent animate-inprogress pointer-events-none ${w.loading}`,quiet:`border-0 rounded-8 ${V}`,utilityQuiet:`border-0 rounded-4 ${V}`,negativeQuiet:`border-0 rounded-8 ${V}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${w.disabled}`},d={secondary:`${n.medium} ${s.medium} ${g.secondary} ${w.secondary}`,secondaryHref:`${n.medium} ${s.medium} ${g.secondary} ${w.secondary}`,secondaryDisabled:`${n.medium} ${s.medium} ${g.secondary} ${i.isDisabled}`,secondarySmall:`${s.xsmall} ${n.xsmall} ${g.secondary} ${w.secondary}`,secondarySmallDisabled:`${s.xsmall} ${n.xsmall} ${g.secondary} ${i.isDisabled}`,secondaryQuiet:`${n.medium} ${s.medium} ${i.quiet} ${w.quiet}`,secondaryQuietDisabled:`${n.medium} ${s.medium} ${i.quiet} ${i.isDisabled}`,secondarySmallQuiet:`${s.xsmall} ${n.xsmall} ${i.quiet} ${w.quiet}`,secondarySmallQuietDisabled:`${s.xsmall} ${n.xsmall} ${i.quiet} ${i.isDisabled}`,secondaryLoading:`${n.medium} ${s.medium} ${g.secondary} ${i.inProgress}`,secondarySmallLoading:`${s.xsmall} ${n.xsmall} ${g.secondary} ${i.inProgress}`,secondarySmallQuietLoading:`${s.xsmall} ${n.xsmall} ${i.quiet} ${i.inProgress}`,secondaryQuietLoading:`${n.medium} ${s.medium} ${i.quiet} ${i.inProgress}`,primary:`${n.large} ${s.medium} ${g.primary} ${w.primary}`,primaryDisabled:`${n.large} ${s.medium} ${i.isDisabled} ${g.primary}`,primarySmall:`${n.small} ${s.xsmall} ${g.primary} ${w.primary}`,primarySmallDisabled:`${n.small} ${s.xsmall} ${i.isDisabled} ${g.primary} `,primaryQuiet:`${n.large} ${s.medium} ${i.quiet} ${w.quiet}`,primaryQuietDisabled:`${n.large} ${s.medium} ${i.quiet} ${i.isDisabled}`,primarySmallQuiet:`${n.small} ${s.xsmall} ${i.quiet} ${w.quiet}`,primarySmallQuietDisabled:`${n.small} ${s.xsmall} ${i.quiet} ${i.isDisabled}`,primaryLoading:`${n.large} ${s.medium} ${i.inProgress} ${g.primary}`,primarySmallLoading:`${n.small} ${s.xsmall} ${i.inProgress} ${g.primary}`,primarySmallQuietLoading:`${n.small} ${s.xsmall} ${i.quiet} ${i.inProgress} ${g.primary}`,primaryQuietLoading:`${n.large} ${s.medium} ${i.quiet} ${i.inProgress}`,utility:`${n.utility} ${s.medium} ${g.utility} ${w.utility}`,utilityDisabled:`${n.utility} ${s.medium} ${g.utility} ${i.isDisabled}`,utilityQuiet:`${n.large} ${s.medium} ${i.utilityQuiet} ${w.utilityQuiet}`,utilityQuietDisabled:`${n.large} ${s.medium} ${i.utilityQuiet} ${i.isDisabled}`,utilitySmall:`${n.smallUtility} ${s.xsmall} ${g.utility} ${w.utility}`,utilitySmallDisabled:`${n.smallUtility} ${s.xsmall} ${g.utility} ${i.isDisabled}`,utilitySmallQuiet:`${n.smallUtility} ${s.xsmall} ${i.utilityQuiet} ${w.utilityQuiet}`,utilitySmallQuietDisabled:`${n.smallUtility} ${s.xsmall} ${i.utilityQuiet} ${i.isDisabled}`,utilityLoading:`${n.large} ${s.medium} ${g.utility} ${i.inProgress}`,utilitySmallLoading:`${n.smallUtility} ${s.xsmall} ${g.utility} ${i.inProgress}`,utilityQuietLoading:`${n.large} ${s.medium} ${i.inProgress} ${i.utilityQuiet}`,utilitySmallQuietLoading:`${n.smallUtility} ${s.xsmall} ${i.inProgress} ${i.utilityQuiet}`,negative:`${n.large} ${s.medium} ${g.negative} ${w.destructive}`,negativeDisabled:`${n.large} ${s.medium} ${g.negative} ${i.isDisabled}`,negativeQuiet:`${n.large} ${s.medium} ${i.negativeQuiet} ${w.negativeQuiet}`,negativeQuietDisabled:`${n.large} ${s.medium} ${i.negativeQuiet}${i.isDisabled}`,negativeSmall:`${n.small} ${s.xsmall} ${g.negative} ${w.destructive}`,negativeSmallDisabled:`${n.small} ${s.xsmall} ${g.negative} ${i.isDisabled}`,negativeSmallQuiet:`${n.small} ${s.xsmall} ${i.negativeQuiet} ${w.negativeQuiet}`,negativeSmallQuietDisabled:`${n.small} ${s.xsmall} ${i.negativeQuiet} ${i.isDisabled}`,negativeLoading:`${n.large} ${s.medium} ${g.negative} ${i.inProgress}`,negativeSmallLoading:`${n.small} ${s.xsmall} ${i.inProgress} ${g.negative}`,negativeQuietLoading:`${n.large} ${s.medium} ${i.negativeQuiet} ${g.negative} ${i.inProgress}`,negativeSmallQuietLoading:`${n.small} ${s.xsmall} ${i.negativeQuiet} ${i.inProgress}`,pill:`${n.pill} ${s.medium} ${g.pill} ${w.pill}`,pillSmall:`${n.pillSmall} ${s.xsmall} ${g.pill} ${w.pill}`,pillLoading:`${n.pill} ${s.medium} ${g.pill} ${i.inProgress}`,pillSmallLoading:`${n.pillSmall} ${s.xsmall} ${g.pill} ${i.inProgress}`,link:`${n.link} ${s.medium} ${g.link}`,linkSmall:`${n.link} ${s.xsmall} ${g.link}`,linkAsButton:"inline-block active:no-underline hover:no-underline focus:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"},J,y=class extends qe(Re){constructor(){super();this.type="button";fe(this,J,null);De(Ae,Ie,Ne,je,Ue),this.variant="secondary",this.ariaValueTextLoading=G._({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}updated(o){o.has("value")&&this.setValue(this.value)}connectedCallback(){if(super.connectedCallback(),!Xe.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2691
- ${Xe.join(", ")}.`);xe(this,J,this.value)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0)}get _primaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&d.primary,this.small&&!this.quiet&&!this.loading&&d.primarySmall,this.small&&this.quiet&&!this.loading&&d.primarySmallQuiet,this.small&&this.loading&&(this.quiet?d.primarySmallQuietLoading:d.primarySmallLoading),!this.small&&this.quiet&&!this.loading&&d.primaryQuiet,!this.small&&this.loading&&(this.quiet?d.primaryQuietLoading:d.primaryLoading)]}get _secondaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&d.secondary,this.small&&!this.quiet&&!this.loading&&d.secondarySmall,this.small&&this.loading&&(this.quiet?d.secondarySmallQuietLoading:d.secondarySmallLoading),this.small&&this.quiet&&!this.loading&&d.secondarySmallQuiet,!this.small&&this.quiet&&!this.loading&&d.secondaryQuiet,!this.small&&this.loading&&(this.quiet?d.secondaryQuietLoading:d.secondaryLoading)]}get _utilityClasses(){return[!this.small&&!this.quiet&&!this.loading&&d.utility,this.small&&!this.quiet&&!this.loading&&d.utilitySmall,this.small&&this.quiet&&!this.loading&&d.utilitySmallQuiet,this.small&&this.loading&&(this.quiet?d.utilitySmallQuietLoading:d.utilitySmallLoading),!this.small&&this.quiet&&!this.loading&&d.utilityQuiet,!this.small&&this.loading&&(this.quiet?d.utilityQuietLoading:d.utilityLoading)]}get _negativeClasses(){return[!this.small&&!this.quiet&&!this.loading&&d.negative,this.small&&!this.quiet&&!this.loading&&d.negativeSmall,this.small&&this.quiet&&!this.loading&&d.negativeSmallQuiet,this.small&&this.loading&&(this.quiet?d.negativeSmallQuietLoading:d.negativeSmallLoading),!this.small&&this.quiet&&!this.loading&&d.negativeQuiet,!this.small&&this.loading&&(this.quiet?d.negativeQuietLoading:d.negativeLoading)]}get _pillClasses(){return[!this.loading&&(this.small?d.pillSmall:d.pill),this.loading&&(this.small?d.pillSmallLoading:d.pillLoading)]}get _linkClasses(){return[this.small?d.linkSmall:d.link]}get _classes(){return se(this.buttonClass,[this.variant==="primary"&&this._primaryClasses,this.variant==="secondary"&&this._secondaryClasses,this.variant==="utility"&&this._utilityClasses,this.variant==="negative"&&this._negativeClasses,this.variant==="pill"&&this._pillClasses,this.variant==="link"&&this._linkClasses,this.href&&d.linkAsButton,this.fullWidth?d.fullWidth:d.contentWidth])}_handleButtonClick(){this.type==="submit"?this.internals.form.requestSubmit():this.type==="reset"&&this.internals.form.reset()}resetFormControl(){this.value=we(this,J)}render(){return oe` ${this.href?oe`<w-link
2690
+ </a>`}};z.shadowRootOptions={...Te.shadowRootOptions,delegatesFocus:!0},z.styles=[re,Oe],m([T({type:Boolean,reflect:!0})],z.prototype,"autofocus",2),m([T({reflect:!0})],z.prototype,"variant",2),m([T({type:Boolean,reflect:!0})],z.prototype,"small",2),m([T({reflect:!0})],z.prototype,"href",2),m([T({type:Boolean,reflect:!0})],z.prototype,"disabled",2),m([T({reflect:!0})],z.prototype,"target",2),m([T({reflect:!0})],z.prototype,"rel",2),m([T({attribute:"full-width",type:Boolean,reflect:!0})],z.prototype,"fullWidth",2);customElements.get("w-link")||customElements.define("w-link",z);var je=JSON.parse('{"button.aria.loading":["Indl\xE6ser..."]}');var Ae=JSON.parse('{"button.aria.loading":["Loading..."]}');var Ne=JSON.parse('{"button.aria.loading":["Ladataan..."]}');var Ie=JSON.parse('{"button.aria.loading":["Laster..."]}');var Ue=JSON.parse('{"button.aria.loading":["Laddar ..."]}');import{css as zr}from"lit";var Ye=zr`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.hover\\:no-underline:hover,.focus\\:no-underline:focus,.active\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\[15px\\]{padding-left:15px;padding-right:15px}.py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;var He=["primary","secondary","negative","utility","pill","link"],V="font-bold focusable justify-center transition-colors ease-in-out",f={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},g={primary:`border-0 rounded-radius-default ${V}`,secondary:`border-2 rounded-radius-default ${V}`,utility:`border rounded-radius-utility ${V}`,negative:`border-0 rounded-radius-default ${V}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${V}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${f.link}`},n={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},s={medium:"text-m leading-[24]",xsmall:"text-xs"},i={inProgress:`border-transparent animate-inprogress pointer-events-none ${f.loading}`,quiet:`border-0 rounded-8 ${V}`,utilityQuiet:`border-0 rounded-4 ${V}`,negativeQuiet:`border-0 rounded-8 ${V}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${f.disabled}`},d={secondary:`${n.medium} ${s.medium} ${g.secondary} ${f.secondary}`,secondaryHref:`${n.medium} ${s.medium} ${g.secondary} ${f.secondary}`,secondaryDisabled:`${n.medium} ${s.medium} ${g.secondary} ${i.isDisabled}`,secondarySmall:`${s.xsmall} ${n.xsmall} ${g.secondary} ${f.secondary}`,secondarySmallDisabled:`${s.xsmall} ${n.xsmall} ${g.secondary} ${i.isDisabled}`,secondaryQuiet:`${n.medium} ${s.medium} ${i.quiet} ${f.quiet}`,secondaryQuietDisabled:`${n.medium} ${s.medium} ${i.quiet} ${i.isDisabled}`,secondarySmallQuiet:`${s.xsmall} ${n.xsmall} ${i.quiet} ${f.quiet}`,secondarySmallQuietDisabled:`${s.xsmall} ${n.xsmall} ${i.quiet} ${i.isDisabled}`,secondaryLoading:`${n.medium} ${s.medium} ${g.secondary} ${i.inProgress}`,secondarySmallLoading:`${s.xsmall} ${n.xsmall} ${g.secondary} ${i.inProgress}`,secondarySmallQuietLoading:`${s.xsmall} ${n.xsmall} ${i.quiet} ${i.inProgress}`,secondaryQuietLoading:`${n.medium} ${s.medium} ${i.quiet} ${i.inProgress}`,primary:`${n.large} ${s.medium} ${g.primary} ${f.primary}`,primaryDisabled:`${n.large} ${s.medium} ${i.isDisabled} ${g.primary}`,primarySmall:`${n.small} ${s.xsmall} ${g.primary} ${f.primary}`,primarySmallDisabled:`${n.small} ${s.xsmall} ${i.isDisabled} ${g.primary} `,primaryQuiet:`${n.large} ${s.medium} ${i.quiet} ${f.quiet}`,primaryQuietDisabled:`${n.large} ${s.medium} ${i.quiet} ${i.isDisabled}`,primarySmallQuiet:`${n.small} ${s.xsmall} ${i.quiet} ${f.quiet}`,primarySmallQuietDisabled:`${n.small} ${s.xsmall} ${i.quiet} ${i.isDisabled}`,primaryLoading:`${n.large} ${s.medium} ${i.inProgress} ${g.primary}`,primarySmallLoading:`${n.small} ${s.xsmall} ${i.inProgress} ${g.primary}`,primarySmallQuietLoading:`${n.small} ${s.xsmall} ${i.quiet} ${i.inProgress} ${g.primary}`,primaryQuietLoading:`${n.large} ${s.medium} ${i.quiet} ${i.inProgress}`,utility:`${n.utility} ${s.medium} ${g.utility} ${f.utility}`,utilityDisabled:`${n.utility} ${s.medium} ${g.utility} ${i.isDisabled}`,utilityQuiet:`${n.large} ${s.medium} ${i.utilityQuiet} ${f.utilityQuiet}`,utilityQuietDisabled:`${n.large} ${s.medium} ${i.utilityQuiet} ${i.isDisabled}`,utilitySmall:`${n.smallUtility} ${s.xsmall} ${g.utility} ${f.utility}`,utilitySmallDisabled:`${n.smallUtility} ${s.xsmall} ${g.utility} ${i.isDisabled}`,utilitySmallQuiet:`${n.smallUtility} ${s.xsmall} ${i.utilityQuiet} ${f.utilityQuiet}`,utilitySmallQuietDisabled:`${n.smallUtility} ${s.xsmall} ${i.utilityQuiet} ${i.isDisabled}`,utilityLoading:`${n.large} ${s.medium} ${g.utility} ${i.inProgress}`,utilitySmallLoading:`${n.smallUtility} ${s.xsmall} ${g.utility} ${i.inProgress}`,utilityQuietLoading:`${n.large} ${s.medium} ${i.inProgress} ${i.utilityQuiet}`,utilitySmallQuietLoading:`${n.smallUtility} ${s.xsmall} ${i.inProgress} ${i.utilityQuiet}`,negative:`${n.large} ${s.medium} ${g.negative} ${f.destructive}`,negativeDisabled:`${n.large} ${s.medium} ${g.negative} ${i.isDisabled}`,negativeQuiet:`${n.large} ${s.medium} ${i.negativeQuiet} ${f.negativeQuiet}`,negativeQuietDisabled:`${n.large} ${s.medium} ${i.negativeQuiet}${i.isDisabled}`,negativeSmall:`${n.small} ${s.xsmall} ${g.negative} ${f.destructive}`,negativeSmallDisabled:`${n.small} ${s.xsmall} ${g.negative} ${i.isDisabled}`,negativeSmallQuiet:`${n.small} ${s.xsmall} ${i.negativeQuiet} ${f.negativeQuiet}`,negativeSmallQuietDisabled:`${n.small} ${s.xsmall} ${i.negativeQuiet} ${i.isDisabled}`,negativeLoading:`${n.large} ${s.medium} ${g.negative} ${i.inProgress}`,negativeSmallLoading:`${n.small} ${s.xsmall} ${i.inProgress} ${g.negative}`,negativeQuietLoading:`${n.large} ${s.medium} ${i.negativeQuiet} ${g.negative} ${i.inProgress}`,negativeSmallQuietLoading:`${n.small} ${s.xsmall} ${i.negativeQuiet} ${i.inProgress}`,pill:`${n.pill} ${s.medium} ${g.pill} ${f.pill}`,pillSmall:`${n.pillSmall} ${s.xsmall} ${g.pill} ${f.pill}`,pillLoading:`${n.pill} ${s.medium} ${g.pill} ${i.inProgress}`,pillSmallLoading:`${n.pillSmall} ${s.xsmall} ${g.pill} ${i.inProgress}`,link:`${n.link} ${s.medium} ${g.link}`,linkSmall:`${n.link} ${s.xsmall} ${g.link}`,linkAsButton:"inline-block active:no-underline hover:no-underline focus:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"},J,y=class extends qe(Xe){constructor(){super();this.type="button";we(this,J,null);De(Ae,Ie,Ne,je,Ue),this.variant="secondary",this.ariaValueTextLoading=G._({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}updated(o){o.has("value")&&this.setValue(this.value)}connectedCallback(){if(super.connectedCallback(),!He.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
2691
+ ${He.join(", ")}.`);xe(this,J,this.value)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0)}get _primaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&d.primary,this.small&&!this.quiet&&!this.loading&&d.primarySmall,this.small&&this.quiet&&!this.loading&&d.primarySmallQuiet,this.small&&this.loading&&(this.quiet?d.primarySmallQuietLoading:d.primarySmallLoading),!this.small&&this.quiet&&!this.loading&&d.primaryQuiet,!this.small&&this.loading&&(this.quiet?d.primaryQuietLoading:d.primaryLoading)]}get _secondaryClasses(){return[!this.small&&!this.quiet&&!this.loading&&d.secondary,this.small&&!this.quiet&&!this.loading&&d.secondarySmall,this.small&&this.loading&&(this.quiet?d.secondarySmallQuietLoading:d.secondarySmallLoading),this.small&&this.quiet&&!this.loading&&d.secondarySmallQuiet,!this.small&&this.quiet&&!this.loading&&d.secondaryQuiet,!this.small&&this.loading&&(this.quiet?d.secondaryQuietLoading:d.secondaryLoading)]}get _utilityClasses(){return[!this.small&&!this.quiet&&!this.loading&&d.utility,this.small&&!this.quiet&&!this.loading&&d.utilitySmall,this.small&&this.quiet&&!this.loading&&d.utilitySmallQuiet,this.small&&this.loading&&(this.quiet?d.utilitySmallQuietLoading:d.utilitySmallLoading),!this.small&&this.quiet&&!this.loading&&d.utilityQuiet,!this.small&&this.loading&&(this.quiet?d.utilityQuietLoading:d.utilityLoading)]}get _negativeClasses(){return[!this.small&&!this.quiet&&!this.loading&&d.negative,this.small&&!this.quiet&&!this.loading&&d.negativeSmall,this.small&&this.quiet&&!this.loading&&d.negativeSmallQuiet,this.small&&this.loading&&(this.quiet?d.negativeSmallQuietLoading:d.negativeSmallLoading),!this.small&&this.quiet&&!this.loading&&d.negativeQuiet,!this.small&&this.loading&&(this.quiet?d.negativeQuietLoading:d.negativeLoading)]}get _pillClasses(){return[!this.loading&&(this.small?d.pillSmall:d.pill),this.loading&&(this.small?d.pillSmallLoading:d.pillLoading)]}get _linkClasses(){return[this.small?d.linkSmall:d.link]}get _classes(){return se(this.buttonClass,[this.variant==="primary"&&this._primaryClasses,this.variant==="secondary"&&this._secondaryClasses,this.variant==="utility"&&this._utilityClasses,this.variant==="negative"&&this._negativeClasses,this.variant==="pill"&&this._pillClasses,this.variant==="link"&&this._linkClasses,this.href&&d.linkAsButton,this.fullWidth?d.fullWidth:d.contentWidth])}_handleButtonClick(){this.type==="submit"?this.internals.form.requestSubmit():this.type==="reset"&&this.internals.form.reset()}resetFormControl(){this.value=fe(this,J)}render(){return oe` ${this.href?oe`<w-link
2692
2692
  href=${this.href}
2693
2693
  target=${this.target}
2694
2694
  variant=${this.variant}
@@ -2703,5 +2703,5 @@ ${Xe.join(", ")}.`);xe(this,J,this.value)}firstUpdated(){this.autofocus&&!this.h
2703
2703
  </w-link>`:oe`<button type=${this.type||"button"} class=${this._classes} @click="${this._handleButtonClick}">
2704
2704
  <slot></slot>
2705
2705
  </button>`}
2706
- ${this.loading?oe`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>`:null}`}};J=new WeakMap,y.shadowRootOptions={...Re.shadowRootOptions,delegatesFocus:!0},y.styles=[re,Ye,zr`:host([full-width]) { width: 100%; }`],m([S({reflect:!0})],y.prototype,"type",2),m([S({type:Boolean,reflect:!0})],y.prototype,"autofocus",2),m([S({reflect:!0})],y.prototype,"variant",2),m([S({type:Boolean,reflect:!0})],y.prototype,"quiet",2),m([S({type:Boolean,reflect:!0})],y.prototype,"small",2),m([S({type:Boolean,reflect:!0})],y.prototype,"loading",2),m([S({reflect:!0})],y.prototype,"href",2),m([S({reflect:!0})],y.prototype,"target",2),m([S({reflect:!0})],y.prototype,"rel",2),m([S({attribute:"full-width",type:Boolean,reflect:!0})],y.prototype,"fullWidth",2),m([S({attribute:"button-class",reflect:!0})],y.prototype,"buttonClass",2),m([S({reflect:!0})],y.prototype,"name",2),m([S({reflect:!0})],y.prototype,"value",2);customElements.get("w-button")||customElements.define("w-button",y);export{y as WarpButton};
2706
+ ${this.loading?oe`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext=${this.ariaValueTextLoading}></span>`:null}`}};J=new WeakMap,y.shadowRootOptions={...Xe.shadowRootOptions,delegatesFocus:!0},y.styles=[re,Ye,Re`:host([full-width]) { width: 100%; }`,Re`.rounded-radius-default{border-radius:var(--w-button-radius-default,8px);}.rounded-radius-utility{border-radius:var(--w-button-radius-utility,4px);}`],m([S({reflect:!0})],y.prototype,"type",2),m([S({type:Boolean,reflect:!0})],y.prototype,"autofocus",2),m([S({reflect:!0})],y.prototype,"variant",2),m([S({type:Boolean,reflect:!0})],y.prototype,"quiet",2),m([S({type:Boolean,reflect:!0})],y.prototype,"small",2),m([S({type:Boolean,reflect:!0})],y.prototype,"loading",2),m([S({reflect:!0})],y.prototype,"href",2),m([S({reflect:!0})],y.prototype,"target",2),m([S({reflect:!0})],y.prototype,"rel",2),m([S({attribute:"full-width",type:Boolean,reflect:!0})],y.prototype,"fullWidth",2),m([S({attribute:"button-class",reflect:!0})],y.prototype,"buttonClass",2),m([S({reflect:!0})],y.prototype,"name",2),m([S({reflect:!0})],y.prototype,"value",2);customElements.get("w-button")||customElements.define("w-button",y);export{y as WarpButton};
2707
2707
  //# sourceMappingURL=button.js.map