@warp-ds/elements 2.4.0-next.3 → 2.4.0

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 (36) hide show
  1. package/dist/custom-elements.json +148 -3267
  2. package/dist/index.d.ts +34 -762
  3. package/dist/packages/checkbox/checkbox-group.js +11 -3
  4. package/dist/packages/checkbox/checkbox.js +201 -2572
  5. package/dist/packages/deadtoggle/index.js +51 -2547
  6. package/dist/packages/pageindicator/index.js +44 -28
  7. package/dist/packages/pagination/index.js +183 -2484
  8. package/dist/packages/radio/radio-group-styles.js +3 -3
  9. package/dist/packages/radio/radio-group.js +313 -2619
  10. package/dist/packages/radio/radio-styles.js +0 -1
  11. package/dist/packages/radio/radio.js +109 -2556
  12. package/dist/packages/radio/radio.stories.js +47 -3688
  13. package/dist/packages/slider/slider-thumb.js +400 -2647
  14. package/dist/packages/slider/slider.js +272 -2603
  15. package/dist/packages/stepindicator/index.js +189 -2459
  16. package/dist/packages/tabs/tab.js +91 -2451
  17. package/dist/packages/tabs/tabs.js +251 -2444
  18. package/dist/packages/textarea/textarea.js +210 -2465
  19. package/dist/web-types.json +28 -811
  20. package/package.json +1 -37
  21. package/dist/packages/checkbox/checkbox-group.js.map +0 -7
  22. package/dist/packages/checkbox/checkbox.js.map +0 -7
  23. package/dist/packages/deadtoggle/index.js.map +0 -7
  24. package/dist/packages/pageindicator/index.js.map +0 -7
  25. package/dist/packages/pagination/index.js.map +0 -7
  26. package/dist/packages/radio/radio-group-styles.js.map +0 -7
  27. package/dist/packages/radio/radio-group.js.map +0 -7
  28. package/dist/packages/radio/radio-styles.js.map +0 -7
  29. package/dist/packages/radio/radio.js.map +0 -7
  30. package/dist/packages/radio/radio.stories.js.map +0 -7
  31. package/dist/packages/slider/slider-thumb.js.map +0 -7
  32. package/dist/packages/slider/slider.js.map +0 -7
  33. package/dist/packages/stepindicator/index.js.map +0 -7
  34. package/dist/packages/tabs/tab.js.map +0 -7
  35. package/dist/packages/tabs/tabs.js.map +0 -7
  36. package/dist/packages/textarea/textarea.js.map +0 -7
@@ -1,2475 +1,220 @@
1
- var $e=Object.create;var W=Object.defineProperty;var be=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var Te=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty;var ue=o=>{throw TypeError(o)};var pe=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var Ye=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Le(e))!je.call(o,a)&&a!==r&&W(o,a,{get:()=>e[a],enumerable:!(t=be(e,a))||t.enumerable});return o};var De=(o,e,r)=>(r=o!=null?$e(Te(o)):{},Ye(e||!o||!o.__esModule?W(r,"default",{value:o,enumerable:!0}):r,o));var v=(o,e,r,t)=>{for(var a=t>1?void 0:t?be(e,r):e,l=o.length-1,n;l>=0;l--)(n=o[l])&&(a=(t?n(e,r,a):n(a))||a);return t&&a&&W(e,r,a),a};var ee=(o,e,r)=>e.has(o)||ue("Cannot "+r);var ge=(o,e,r)=>(ee(o,e,"read from private field"),r?r.call(o):e.get(o)),re=(o,e,r)=>e.has(o)?ue("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,r),me=(o,e,r,t)=>(ee(o,e,"write to private field"),t?t.call(o,r):e.set(o,r),r),oe=(o,e,r)=>(ee(o,e,"access private method"),r);var ve=pe(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.errorMessages=V.ErrorType=void 0;var $;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})($=V.ErrorType||(V.ErrorType={}));V.errorMessages=new Map([[$.MalformedUnicode,"malformed Unicode character escape sequence"],[$.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[$.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[$.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[$.EndOfString,"malformed escape sequence at end of string"]])});var xe=pe(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.unraw=M.errorMessages=M.ErrorType=void 0;var f=ve();Object.defineProperty(M,"ErrorType",{enumerable:!0,get:function(){return f.ErrorType}});Object.defineProperty(M,"errorMessages",{enumerable:!0,get:function(){return f.errorMessages}});function Re(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function Z(o,e,r){let t=Re(o);if(Number.isNaN(t)||r!==void 0&&r!==o.length)throw new SyntaxError(f.errorMessages.get(e));return t}function He(o){let e=Z(o,f.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function fe(o,e){let r=Z(o,f.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=Z(e,f.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}function Ue(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function Xe(o){if(!Ue(o))throw new SyntaxError(f.errorMessages.get(f.ErrorType.MalformedUnicode));let e=o.slice(1,-1),r=Z(e,f.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(f.errorMessages.get(f.ErrorType.CodePointLimit)):t}}function Ze(o,e=!1){if(e)throw new SyntaxError(f.errorMessages.get(f.ErrorType.OctalDeprecation));let r=parseInt(o,8);return String.fromCharCode(r)}var qe=new Map([["b","\b"],["f","\f"],["n",`
2
- `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Be(o){return qe.get(o)||o}var Ge=/\\(?:(\\)|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 we(o,e=!1){return o.replace(Ge,function(r,t,a,l,n,i,d,b,w){if(t!==void 0)return"\\";if(a!==void 0)return He(a);if(l!==void 0)return Xe(l);if(n!==void 0)return fe(n,i);if(d!==void 0)return fe(d);if(b==="0")return"\0";if(b!==void 0)return Ze(b,!e);if(w!==void 0)return Be(w);throw new SyntaxError(f.errorMessages.get(f.ErrorType.EndOfString))})}M.unraw=we;M.default=we});var X=function(){for(var o=[],e=arguments.length;e--;)o[e]=arguments[e];return o.reduce(function(r,t){return r.concat(typeof t=="string"?t:Array.isArray(t)?X.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};var _e=De(xe(),1);var O=o=>typeof o=="string",Je=o=>typeof o=="function",ke=new Map,Ce="en";function ne(o){return[...Array.isArray(o)?o:[o],Ce]}function se(o,e,r){let t=ne(o);r||(r="default");let a;if(typeof r=="string")switch(a={day:"numeric",month:"short",year:"numeric"},r){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=r;return q(()=>B("date",t,r),()=>new Intl.DateTimeFormat(t,a)).format(O(e)?new Date(e):e)}function Ke(o,e,r){let t;if(r||(r="default"),typeof r=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=r;return se(o,e,t)}function te(o,e,r){let t=ne(o);return q(()=>B("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function ye(o,e,r,{offset:t=0,...a}){var i,d;let l=ne(o),n=e?q(()=>B("plural-ordinal",l),()=>new Intl.PluralRules(l,{type:"ordinal"})):q(()=>B("plural-cardinal",l),()=>new Intl.PluralRules(l,{type:"cardinal"}));return(d=(i=a[r])!=null?i:a[n.select(r-t)])!=null?d:a.other}function q(o,e){let r=o(),t=ke.get(r);return t||(t=e(),ke.set(r,t)),t}function B(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var ze=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Me="%__lingui_octothorpe__%",Qe=(o,e,r={})=>{let t=e||o,a=n=>typeof n=="object"?n:r[n],l=(n,i)=>{let d=Object.keys(r).length?a("number"):void 0,b=te(t,n,d);return i.replace(new RegExp(Me,"g"),b)};return{plural:(n,i)=>{let{offset:d=0}=i,b=ye(t,!1,n,i);return l(n-d,b)},selectordinal:(n,i)=>{let{offset:d=0}=i,b=ye(t,!0,n,i);return l(n-d,b)},select:We,number:(n,i)=>te(t,n,a(i)||{style:i}),date:(n,i)=>se(t,n,a(i)||i),time:(n,i)=>Ke(t,n,a(i)||i)}},We=(o,e)=>{var r;return(r=e[o])!=null?r:e.other};function er(o,e,r){return(t={},a)=>{let l=Qe(e,r,a),n=(d,b=!1)=>Array.isArray(d)?d.reduce((w,C)=>{if(C==="#"&&b)return w+Me;if(O(C))return w+C;let[A,y,F]=C,E={};y==="plural"||y==="selectordinal"||y==="select"?Object.entries(F).forEach(([P,L])=>{E[P]=n(L,y==="plural"||y==="selectordinal")}):E=F;let x;if(y){let P=l[y];x=P(t[A],E)}else x=t[A];return x==null?w:w+x},""):d,i=n(o);return O(i)&&ze.test(i)?(0,_e.unraw)(i):O(i)?i:i?String(i):""}}var rr=Object.defineProperty,or=(o,e,r)=>e in o?rr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,tr=(o,e,r)=>(or(o,typeof e!="symbol"?e+"":e,r),r),ae=class{constructor(){tr(this,"_events",{})}on(e,r){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(r);~a&&t.splice(a,1)}emit(e,...r){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,r))}_getListeners(e){let r=this._events[e];return Array.isArray(r)?r:!1}},ar=Object.defineProperty,ir=(o,e,r)=>e in o?ar(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,N=(o,e,r)=>(ir(o,typeof e!="symbol"?e+"":e,r),r),ie=class extends ae{constructor(e){var r;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((r=e.locale)!=null?r:Ce,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,r){let t=this._localeData[e];t?Object.assign(t,r):this._localeData[e]=r}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,r){typeof e=="string"?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){let t=this._messages[e];t?Object.assign(t,r):this._messages[e]=r}load(e,r){typeof e=="string"&&typeof r=="object"?this._load(e,r):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r,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)||(r=e.values||r,a=e.message,e=e.id);let l=this.messages[e],n=l===void 0,i=this._missing;if(i&&n)return Je(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let d=l||a||e;return O(d)&&(this._messageCompiler?d=this._messageCompiler(d):console.warn(`Uncompiled message detected! Message:
3
-
4
- > ${d}
5
-
6
- That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
7
- ICU features such as interpolation and plurals will not work properly for that message.
8
-
9
- Please compile your catalog first.
10
- `)),O(d)&&ze.test(d)?JSON.parse(`"${d}"`):O(d)?d:er(d,this._locale,this._locales)(r,t==null?void 0:t.formats)}date(e,r){return se(this._locales||this._locale,e,r)}number(e,r){return te(this._locales||this._locale,e,r)}};function nr(o={}){return new ie(o)}var Fe=nr();var h=function(o,e,r,t){if(r==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!t:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?t:r==="a"?t.call(o):t?t.value:e.get(o)},g=function(o,e,r,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"?o!==e||!a:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(o,r):a?a.value=r:e.set(o,r),r};function Ee(o){var e,r,t,a,l,n,i,d,b,w,C,A,y,F,E,x,P,L,J;class Ie extends o{constructor(...s){var c,p,m;super(...s),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),t.set(this,!1),a.set(this,!1),l.set(this,void 0),n.set(this,void 0),i.set(this,!0),b.set(this,""),w.set(this,()=>{g(this,a,!0,"f"),g(this,r,!0,"f"),h(this,e,"m",x).call(this)}),C.set(this,()=>{g(this,r,!1,"f"),h(this,e,"m",P).call(this,this.shouldFormValueUpdate()?h(this,b,"f"):""),!this.validity.valid&&h(this,a,"f")&&g(this,t,!0,"f");let z=h(this,e,"m",x).call(this);this.validationMessageCallback&&this.validationMessageCallback(z?this.internals.validationMessage:"")}),A.set(this,()=>{var z;h(this,i,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),g(this,i,!1,"f")),g(this,a,!0,"f"),g(this,t,!0,"f"),h(this,e,"m",x).call(this),(z=this===null||this===void 0?void 0:this.validationMessageCallback)===null||z===void 0||z.call(this,this.showError?this.internals.validationMessage:"")}),y.set(this,void 0),F.set(this,!1),E.set(this,Promise.resolve()),(c=this.addEventListener)===null||c===void 0||c.call(this,"focus",h(this,w,"f")),(p=this.addEventListener)===null||p===void 0||p.call(this,"blur",h(this,C,"f")),(m=this.addEventListener)===null||m===void 0||m.call(this,"invalid",h(this,A,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let s=this.validators.map(m=>m.attribute).flat(),c=super.observedAttributes||[];return[...new Set([...c,...s])]}static getValidator(s){return this.validators.find(c=>c.attribute===s)||null}static getValidators(s){return this.validators.filter(c=>{var p;if(c.attribute===s||!((p=c.attribute)===null||p===void 0)&&p.includes(s))return!0})}get form(){return this.internals.form}get showError(){return h(this,e,"m",x).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(s,c,p){var m;(m=super.attributeChangedCallback)===null||m===void 0||m.call(this,s,c,p);let j=this.constructor.getValidators(s);j!=null&&j.length&&this.validationTarget&&this.setValue(h(this,b,"f"))}setValue(s){var c;g(this,t,!1,"f"),(c=this.validationMessageCallback)===null||c===void 0||c.call(this,""),g(this,b,s,"f");let m=this.shouldFormValueUpdate()?s:null;this.internals.setFormValue(m),h(this,e,"m",P).call(this,m),this.valueChangedCallback&&this.valueChangedCallback(m),h(this,e,"m",x).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(s=>s(h(this,E,"f")))}formResetCallback(){var s,c;g(this,a,!1,"f"),g(this,t,!1,"f"),h(this,e,"m",x).call(this),(s=this.resetFormControl)===null||s===void 0||s.call(this),(c=this.validationMessageCallback)===null||c===void 0||c.call(this,h(this,e,"m",x).call(this)?this.validationMessage:"")}}return r=new WeakMap,t=new WeakMap,a=new WeakMap,l=new WeakMap,n=new WeakMap,i=new WeakMap,b=new WeakMap,w=new WeakMap,C=new WeakMap,A=new WeakMap,y=new WeakMap,F=new WeakMap,E=new WeakMap,e=new WeakSet,d=function(){let s=this.getRootNode(),c=`${this.localName}[name="${this.getAttribute("name")}"]`;return s.querySelectorAll(c)},x=function(){if(this.hasAttribute("disabled"))return!1;let s=h(this,t,"f")||h(this,a,"f")&&!this.validity.valid&&!h(this,r,"f");return s&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),s},P=function(s){let c=this.constructor,p={},m=c.validators,z=[],j=m.some(_=>_.isValid instanceof Promise);h(this,F,"f")||(g(this,E,new Promise(_=>{g(this,y,_,"f")}),"f"),g(this,F,!0,"f")),h(this,l,"f")&&(h(this,l,"f").abort(),g(this,n,h(this,l,"f"),"f"));let Y=new AbortController;g(this,l,Y,"f");let D,he=!1;m.length&&(m.forEach(_=>{let K=_.key||"customError",I=_.isValid(this,s,Y.signal);I instanceof Promise?(z.push(I),I.then(Q=>{Q!=null&&(p[K]=!Q,D=h(this,e,"m",J).call(this,_,s),h(this,e,"m",L).call(this,p,D))})):(p[K]=!I,this.validity[K]!==!I&&(he=!0),!I&&!D&&(D=h(this,e,"m",J).call(this,_,s)))}),Promise.allSettled(z).then(()=>{var _;Y!=null&&Y.signal.aborted||(g(this,F,!1,"f"),(_=h(this,y,"f"))===null||_===void 0||_.call(this))}),(he||!j)&&h(this,e,"m",L).call(this,p,D))},L=function(s,c){if(this.validationTarget)this.internals.setValidity(s,c,this.validationTarget),g(this,i,!1,"f");else{if(this.internals.setValidity(s,c),this.internals.validity.valid)return;g(this,i,!0,"f")}},J=function(s,c){if(this.validityCallback){let p=this.validityCallback(s.key||"customError");if(p)return p}return s.message instanceof Function?s.message(this,c):s.message},Ie}import{html as G,LitElement as Ve,nothing as le}from"lit";import{property as k,state as Ne}from"lit/decorators.js";import{ifDefined as R}from"lit/directives/if-defined.js";import{css as Oe}from"lit";var Se=Oe`
11
- *,
12
- :before,
13
- :after {
14
- box-sizing: border-box;
15
- border-style: solid;
16
- border-width: 0;
17
- border-color: var(--w-s-color-border);
18
- }
19
- html {
20
- font-size: 62.5%;
21
- }
22
- body {
23
- background-color: var(--w-s-color-background);
24
- min-height: 100%;
25
- margin: 0;
26
- overflow-y: scroll;
27
- }
28
- body,
29
- :host {
30
- -webkit-text-size-adjust: 100%;
31
- tab-size: 4;
32
- -webkit-tap-highlight-color: transparent;
33
- font-family: var(--w-font-family);
34
- font-size: var(--w-font-size-m);
35
- line-height: var(--w-line-height-m);
36
- color: var(--w-s-color-text);
37
- }
38
- hr {
39
- color: inherit;
40
- border-top-width: 1px;
41
- height: 0;
42
- }
43
- abbr:where([title]) {
44
- -webkit-text-decoration: underline dotted;
45
- text-decoration: underline dotted;
46
- }
47
- h1,
48
- h2,
49
- h3,
50
- h4,
51
- h5,
52
- h6 {
53
- font-size: inherit;
54
- font-weight: 700;
55
- }
56
- a {
57
- cursor: pointer;
58
- color: var(--w-s-color-text-link);
59
- text-decoration: none;
60
- }
61
- a:hover,
62
- a:focus,
63
- a:active {
64
- text-decoration: underline;
65
- }
66
- a:focus-visible {
67
- outline: 2px solid var(--w-s-color-border-focus);
68
- outline-offset: 1px;
69
- }
70
- b,
71
- strong {
72
- font-weight: 700;
73
- }
74
- code,
75
- kbd,
76
- samp,
77
- pre {
78
- font-family:
79
- ui-monospace,
80
- SFMono-Regular,
81
- Menlo,
82
- Monaco,
83
- Consolas,
84
- Liberation Mono,
85
- Courier New,
86
- monospace;
87
- font-size: 1em;
88
- }
89
- sub,
90
- sup {
91
- vertical-align: baseline;
92
- font-size: 75%;
93
- line-height: 0;
94
- position: relative;
95
- }
96
- sub {
97
- bottom: -0.25em;
98
- }
99
- sup {
100
- top: -0.5em;
101
- }
102
- table {
103
- text-indent: 0;
104
- border-color: inherit;
105
- border-collapse: collapse;
106
- }
107
- button,
108
- input,
109
- optgroup,
110
- select,
111
- textarea {
112
- font-family: inherit;
113
- font-size: 100%;
114
- font-weight: inherit;
115
- line-height: inherit;
116
- color: inherit;
117
- margin: 0;
118
- padding: 0;
119
- }
120
- button,
121
- select {
122
- text-transform: none;
123
- }
124
- button,
125
- [type='button'],
126
- [type='reset'],
127
- [type='submit'] {
128
- -webkit-appearance: button;
129
- }
130
- :-moz-focusring {
131
- outline: auto;
132
- }
133
- :-moz-ui-invalid {
134
- box-shadow: none;
135
- }
136
- progress {
137
- vertical-align: baseline;
138
- }
139
- ::-webkit-inner-spin-button {
140
- height: auto;
141
- }
142
- ::-webkit-outer-spin-button {
143
- height: auto;
144
- }
145
- [type='search'] {
146
- -webkit-appearance: textfield;
147
- outline-offset: -2px;
148
- }
149
- ::-webkit-search-decoration {
150
- -webkit-appearance: none;
151
- }
152
- ::-webkit-file-upload-button {
153
- -webkit-appearance: button;
154
- font: inherit;
155
- }
156
- summary {
157
- display: list-item;
158
- }
159
- blockquote,
160
- dl,
161
- dd,
162
- h1,
163
- h2,
164
- h3,
165
- h4,
166
- h5,
167
- h6,
168
- hr,
169
- figure,
170
- p,
171
- pre {
172
- margin: 0;
173
- }
174
- fieldset {
175
- margin: 0;
176
- padding: 0;
177
- }
178
- legend {
179
- padding: 0;
180
- }
181
- ol,
182
- ul,
183
- menu {
184
- margin: 0;
185
- padding: 0;
186
- list-style: none;
187
- }
188
- textarea {
189
- resize: vertical;
190
- }
191
- input::placeholder,
192
- textarea::placeholder {
193
- opacity: 1;
194
- color: var(--w-s-color-text-placeholder);
195
- }
196
- button,
197
- [role='button'] {
198
- cursor: pointer;
199
- }
200
- :disabled {
201
- cursor: default;
202
- }
203
- img,
204
- svg,
205
- video,
206
- canvas,
207
- audio,
208
- iframe,
209
- embed,
210
- object {
211
- vertical-align: middle;
212
- display: block;
213
- }
214
- img,
215
- video {
216
- max-width: 100%;
217
- height: auto;
218
- }
219
- h1 {
220
- font-size: var(--w-font-size-xxl);
221
- line-height: var(--w-line-height-xxl);
222
- }
223
- h2 {
224
- font-size: var(--w-font-size-xl);
225
- line-height: var(--w-line-height-xl);
226
- }
227
- h3 {
228
- font-size: var(--w-font-size-l);
229
- line-height: var(--w-line-height-l);
230
- }
231
- h4 {
232
- font-size: var(--w-font-size-m);
233
- line-height: var(--w-line-height-m);
234
- }
235
- h5 {
236
- font-size: var(--w-font-size-s);
237
- line-height: var(--w-line-height-s);
238
- }
239
- dt,
240
- dd {
241
- margin: 0 16px;
242
- }
243
- h1,
244
- h2,
245
- h3,
246
- h4,
247
- h5,
248
- ul,
249
- ol,
250
- dl,
251
- p,
252
- blockquote {
253
- margin: 0 0 8px;
254
- }
255
- [hidden] {
256
- display: none !important;
257
- }
258
- [tabindex='-1']:focus:not(:focus-visible) {
259
- outline: none;
260
- }
261
- legend {
262
- float: left;
263
- width: 100%;
264
- margin: 0;
265
- padding: 0;
266
- display: table;
267
- }
268
- legend + * {
269
- clear: both;
270
- }
271
- fieldset {
272
- border: 0;
273
- min-width: 0;
274
- margin: 0;
275
- padding: 0.01em 0 0;
276
- }
277
- body:not(:-moz-handler-blocked) fieldset {
278
- display: table-cell;
279
- }
280
- svg {
281
- pointer-events: none;
282
- }
283
- `,mr=Oe`*, :before, :after {
284
- --w-rotate: 0;
285
- --w-rotate-x: 0;
286
- --w-rotate-y: 0;
287
- --w-rotate-z: 0;
288
- --w-scale-x: 1;
289
- --w-scale-y: 1;
290
- --w-scale-z: 1;
291
- --w-skew-x: 0;
292
- --w-skew-y: 0;
293
- --w-translate-x: 0;
294
- --w-translate-y: 0;
295
- --w-translate-z: 0
1
+ // @warp-css;
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ import { classNames as classnames } from '@chbphone55/classnames';
9
+ import { i18n } from '@lingui/core';
10
+ import { FormControlMixin } from '@open-wc/form-control';
11
+ import { html, LitElement, nothing } from 'lit';
12
+ import { property, state } from 'lit/decorators.js';
13
+ import { ifDefined } from 'lit/directives/if-defined.js';
14
+ import { reset } from '../styles.js';
15
+ import { styles } from './styles.js';
16
+ const ccInput = {
17
+ // input classes
18
+ base: 'block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current', // true
19
+ default: 'border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected', // !isInvalid && !isDisabled && !isReadOnly
20
+ disabled: 'border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none', // !isInvalid && isDisabled && !isReadOnly
21
+ invalid: 'border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!', // isInvalid && !isDisabled && !isReadOnly
22
+ readOnly: 'pl-0 bg-transparent pointer-events-none', // !isInvalid && !isDisabled && isReadOnly
23
+ placeholder: 'placeholder:s-text-placeholder',
24
+ suffix: 'pr-40',
25
+ prefix: 'pl-[var(--w-prefix-width,_40px)]',
26
+ // textarea classes
27
+ textArea: 'min-h-[42] sm:min-h-[45]',
28
+ fixed: 'resize-none',
29
+ };
30
+ const ccLabel = {
31
+ base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text flex',
32
+ optional: 'pl-8 font-normal text-s s-text-subtle',
33
+ };
34
+ const ccHelpText = {
35
+ base: 'text-xs mt-4 block',
36
+ color: 's-text-subtle',
37
+ colorInvalid: 's-text-negative',
38
+ };
39
+ /**
40
+ * A single line text input element.
41
+ *
42
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
43
+ */
44
+ class WarpTextarea extends FormControlMixin(LitElement) {
45
+ constructor() {
46
+ super(...arguments);
47
+ this.minHeight = Number.NEGATIVE_INFINITY;
48
+ this.maxHeight = Number.POSITIVE_INFINITY;
49
+ // capture the initial value using connectedCallback and #initialValue
50
+ this.#initialValue = null;
51
+ }
52
+ static { this.shadowRootOptions = {
53
+ ...LitElement.shadowRootOptions,
54
+ delegatesFocus: true,
55
+ }; }
56
+ // capture the initial value using connectedCallback and #initialValue
57
+ #initialValue;
58
+ updated(changedProperties) {
59
+ if (changedProperties.has('value')) {
60
+ this.setValue(this.value);
296
61
  }
297
-
298
- .h4, .t4 {
299
- font-weight: 700;
300
- font-size: var(--w-font-size-m);
301
- line-height: var(--w-line-height-m)
302
- }
303
-
304
- .t3 {
305
- font-weight: 700;
306
- font-size: var(--w-font-size-l);
307
- line-height: var(--w-line-height-l)
308
- }
309
-
310
- @media (min-width: 480px) {
311
- .sm\\:h3 {
312
- font-weight: 700;
313
- font-size: var(--w-font-size-l);
314
- line-height: var(--w-line-height-l)
315
- }
316
- }
317
-
318
- .text-center {
319
- text-align: center
320
- }
321
-
322
- .before\\:text-center:before {
323
- text-align: center
324
- }
325
-
326
- .text-left {
327
- text-align: left
328
- }
329
-
330
- .text-right {
331
- text-align: right
332
- }
333
-
334
- .align-middle {
335
- vertical-align: middle
336
- }
337
-
338
- .animate-inprogress {
339
- background-image: linear-gradient(135deg, rgba(0, 0, 0, .05) 25%, transparent 0, transparent 50%, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .05) 75%, transparent 0, transparent) !important;
340
- background-size: 30px 30px;
341
- animation: animate-inprogress 3s linear infinite
342
- }
343
-
344
- @keyframes animate-inprogress {
345
- 0% {
346
- background-position: 0 0
347
- }
348
- to {
349
- background-position: 60px 0
350
- }
351
- }
352
-
353
- .\\[--w-modal-max-height\\:80\\%\\] {
354
- --w-modal-max-height: 80%
355
- }
356
-
357
- .\\[--w-modal-width\\:640px\\] {
358
- --w-modal-width: 640px
359
- }
360
-
361
- .focus\\:\\[--w-outline-offset\\:-2px\\]:focus {
362
- --w-outline-offset: -2px
363
- }
364
-
365
- .backdrop-blur {
366
- -webkit-backdrop-filter: blur(4px);
367
- backdrop-filter: blur(4px)
368
- }
369
-
370
- .peer:checked ~ .peer-checked\\:before\\:bg-center:before {
371
- background-position: center
372
- }
373
-
374
- .hover\\:bg-clip-padding:hover {
375
- -webkit-background-clip: padding-box;
376
- background-clip: padding-box
377
- }
378
-
379
- .bg-transparent, .group\\/steph:first-child .group-first\\/steph\\:bg-transparent, .group\\/steph:last-child .group-last\\/steph\\:bg-transparent {
380
- background-color: transparent
381
- }
382
-
383
- .bg-\\[--w-black\\/25\\] {
384
- background-color: rgba(var(--w-rgb-black), .25)
385
- }
386
-
387
- .bg-\\[--w-black\\/70\\], .bg-\\[var\\(--w-black\\)\\/70\\] {
388
- background-color: rgba(var(--w-rgb-black), .7)
389
- }
390
-
391
- .bg-\\[--w-color-badge-info-background\\] {
392
- background-color: var(--w-color-badge-info-background)
393
- }
394
-
395
- .bg-\\[--w-color-badge-negative-background\\] {
396
- background-color: var(--w-color-badge-negative-background)
397
- }
398
-
399
- .bg-\\[--w-color-badge-neutral-background\\] {
400
- background-color: var(--w-color-badge-neutral-background)
401
- }
402
-
403
- .bg-\\[--w-color-badge-positive-background\\] {
404
- background-color: var(--w-color-badge-positive-background)
405
- }
406
-
407
- .bg-\\[--w-color-badge-sponsored-background\\] {
408
- background-color: var(--w-color-badge-sponsored-background)
409
- }
410
-
411
- .bg-\\[--w-color-badge-warning-background\\] {
412
- background-color: var(--w-color-badge-warning-background)
413
- }
414
-
415
- .bg-\\[--w-color-button-primary-background\\] {
416
- background-color: var(--w-color-button-primary-background)
417
- }
418
-
419
- .bg-\\[--w-color-buttongroup-utility-background-selected\\] {
420
- background-color: var(--w-color-buttongroup-utility-background-selected)
421
- }
422
-
423
- .bg-\\[--w-color-callout-background\\] {
424
- background-color: var(--w-color-callout-background)
425
- }
426
-
427
- .bg-\\[--w-color-pill-suggestion-background\\] {
428
- background-color: var(--w-color-pill-suggestion-background)
429
- }
430
-
431
- .bg-\\[--w-color-switch-track-background\\] {
432
- background-color: var(--w-color-switch-track-background)
433
- }
434
-
435
- .bg-\\[--w-s-color-surface-elevated-100\\] {
436
- background-color: var(--w-s-color-surface-elevated-100)
437
- }
438
-
439
- .bg-\\[--w-s-color-surface-elevated-300\\] {
440
- background-color: var(--w-s-color-surface-elevated-300)
441
- }
442
-
443
- .bg-\\[--w-s-icon-selected\\] {
444
- background-color: var(--w-s-icon-selected)
445
- }
446
-
447
- .group:hover .group-hover\\:bg-\\[--w-color-switch-track-background-hover\\] {
448
- background-color: var(--w-color-switch-track-background-hover)
449
- }
450
-
451
- .hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover {
452
- background-color: var(--w-color-button-pill-background-hover)
453
- }
454
-
455
- .hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover {
456
- background-color: var(--w-color-button-primary-background-hover)
457
- }
458
-
459
- .hover\\:bg-\\[--w-color-buttongroup-utility-background-hover\\]:hover {
460
- background-color: var(--w-color-buttongroup-utility-background-hover)
461
- }
462
-
463
- .hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover {
464
- background-color: var(--w-color-pill-suggestion-background-hover)
465
- }
466
-
467
- .hover\\:bg-\\[--w-s-icon-subtle\\]:hover {
468
- background-color: var(--w-s-icon-subtle)
469
- }
470
-
471
- .hover\\:bg-\\[var\\(--w-black\\)\\/85\\]:hover {
472
- background-color: rgba(var(--w-rgb-black), .85)
473
- }
474
-
475
- .active\\:bg-\\[--w-color-button-pill-background-active\\]:active {
476
- background-color: var(--w-color-button-pill-background-active)
477
- }
478
-
479
- .active\\:bg-\\[--w-color-button-primary-background-active\\]:active {
480
- background-color: var(--w-color-button-primary-background-active)
481
- }
482
-
483
- .active\\:bg-\\[--w-color-buttongroup-utility-background-selected\\]:active {
484
- background-color: var(--w-color-buttongroup-utility-background-selected)
485
- }
486
-
487
- .active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active {
488
- background-color: var(--w-color-pill-suggestion-background-active)
489
- }
490
-
491
- .active\\:bg-\\[var\\(--w-black\\)\\]:active {
492
- background-color: var(--w-black)
493
- }
494
-
495
- .peer:checked ~ .peer-checked\\:before\\:bg-\\[url\\(var\\(--w-icon-toggle-checked\\)\\)\\]:before {
496
- background-image: var(--w-icon-toggle-checked)
497
- }
498
-
499
- .appearance-none {
500
- -moz-appearance: none;
501
- appearance: none;
502
- -webkit-appearance: none
503
- }
504
-
505
- .will-change-height {
506
- will-change: height
507
- }
508
-
509
- .border, .border-1 {
510
- border-width: 1px
511
- }
512
-
513
- .border-b {
514
- border-bottom-width: 1px
515
- }
516
-
517
- .before\\:border:before {
518
- border-width: 1px
519
- }
520
-
521
- .border-0 {
522
- border-width: 0
523
- }
524
-
525
- .border-2 {
526
- border-width: 2px
527
- }
528
-
529
- .border-b-0 {
530
- border-bottom-width: 0
531
- }
532
-
533
- .border-b-4 {
534
- border-bottom-width: 4px
535
- }
536
-
537
- .border-l-4 {
538
- border-left-width: 4px
539
- }
540
-
541
- .border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\:border-r-0 {
542
- border-right-width: 0
543
- }
544
-
545
- .peer:checked ~ .peer-checked\\:before\\:border-\\[6\\]:before {
546
- border-width: .6rem
547
- }
548
-
549
- .border-transparent {
550
- border-color: transparent
551
- }
552
-
553
- .border-\\[--w-color-buttongroup-utility-border\\] {
554
- border-color: var(--w-color-buttongroup-utility-border)
555
- }
556
-
557
- .border-\\[--w-color-callout-border\\] {
558
- border-color: var(--w-color-callout-border)
559
- }
560
-
561
- .border-\\[--w-s-color-background-inverted\\] {
562
- border-color: var(--w-s-color-background-inverted)
563
- }
564
-
565
- .border-\\[--w-s-color-surface-elevated-300\\] {
566
- border-color: var(--w-s-color-surface-elevated-300)
567
- }
568
-
569
- .active\\:border-\\[--w-color-buttongroup-utility-border-selected\\]:active {
570
- border-color: var(--w-color-buttongroup-utility-border-selected)
571
- }
572
-
573
- .divide-x > * + * {
574
- --w-divide-x-reverse: 0;
575
- border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));
576
- border-right-width: calc(1px * var(--w-divide-x-reverse))
577
- }
578
-
579
- .divide-y > * + * {
580
- --w-divide-y-reverse: 0;
581
- border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));
582
- border-bottom-width: calc(1px * var(--w-divide-y-reverse))
583
- }
584
-
585
- .rounded-4 {
586
- border-radius: 4px
587
- }
588
-
589
- .rounded-8 {
590
- border-radius: 8px
591
- }
592
-
593
- .rounded-full {
594
- border-radius: 9999px
595
- }
596
-
597
- .before\\:rounded-2:before {
598
- border-radius: 2px
599
- }
600
-
601
- .before\\:rounded-full:before {
602
- border-radius: 9999px
603
- }
604
-
605
- .rounded-b-0 {
606
- border-bottom-left-radius: 0;
607
- border-bottom-right-radius: 0
608
- }
609
-
610
- .rounded-bl-0 {
611
- border-bottom-left-radius: 0
612
- }
613
-
614
- .rounded-br-0 {
615
- border-bottom-right-radius: 0
616
- }
617
-
618
- .rounded-l-0 {
619
- border-top-left-radius: 0;
620
- border-bottom-left-radius: 0
621
- }
622
-
623
- .rounded-l-full {
624
- border-top-left-radius: 9999px;
625
- border-bottom-left-radius: 9999px
626
- }
627
-
628
- .rounded-r-0 {
629
- border-top-right-radius: 0;
630
- border-bottom-right-radius: 0
631
- }
632
-
633
- .rounded-r-full {
634
- border-top-right-radius: 9999px;
635
- border-bottom-right-radius: 9999px
636
- }
637
-
638
- .rounded-tl-0 {
639
- border-top-left-radius: 0
640
- }
641
-
642
- .rounded-tl-4 {
643
- border-top-left-radius: 4px
644
- }
645
-
646
- .rounded-tr-0 {
647
- border-top-right-radius: 0
648
- }
649
-
650
- .group:first-of-type .group-first-of-type\\:rounded-bl-8 {
651
- border-bottom-left-radius: 8px
652
- }
653
-
654
- .group:first-of-type .group-first-of-type\\:rounded-tl-8 {
655
- border-top-left-radius: 8px
656
- }
657
-
658
- .first\\:rounded-lb-4:first-child {
659
- border-bottom-left-radius: 4px
660
- }
661
-
662
- .first\\:rounded-lt-4:first-child {
663
- border-top-left-radius: 4px
664
- }
665
-
666
- .first\\:rounded-rt-4:first-child {
667
- border-top-right-radius: 4px
668
- }
669
-
670
- .group:last-of-type .group-last-of-type\\:rounded-br-8 {
671
- border-bottom-right-radius: 8px
672
- }
673
-
674
- .group:last-of-type .group-last-of-type\\:rounded-tr-8 {
675
- border-top-right-radius: 8px
676
- }
677
-
678
- .last\\:rounded-lb-4:last-child {
679
- border-bottom-left-radius: 4px
680
- }
681
-
682
- .last\\:rounded-rb-4:last-child {
683
- border-bottom-right-radius: 4px
684
- }
685
-
686
- .last\\:rounded-rt-4:last-child {
687
- border-top-right-radius: 4px
688
- }
689
-
690
- .caret-current {
691
- caret-color: currentColor
692
- }
693
-
694
- .opacity-25 {
695
- opacity: 25%
696
- }
697
-
698
- .block {
699
- display: block
700
- }
701
-
702
- .before\\:block:before {
703
- display: block
704
- }
705
-
706
- .inline-block {
707
- display: inline-block
708
- }
709
-
710
- .inline {
711
- display: inline
712
- }
713
-
714
- .flex, .open\\:flex[open] {
715
- display: flex
716
- }
717
-
718
- .inline-flex {
719
- display: inline-flex
720
- }
721
-
722
- .grid {
723
- display: grid
724
- }
725
-
726
- .inline-grid {
727
- display: inline-grid
728
- }
729
-
730
- .hidden, .group\\/stepv:last-child .group-last\\/stepv\\:hidden {
731
- display: none
732
- }
733
-
734
- .before\\:hidden:before {
735
- display: none
736
- }
737
-
738
- .hover\\:underline:hover {
739
- text-decoration-line: underline
740
- }
741
-
742
- .focus\\:underline:focus {
743
- text-decoration-line: underline
744
- }
745
-
746
- .focus-visible\\:underline:focus-visible {
747
- text-decoration-line: underline
748
- }
749
-
750
- .active\\:underline:active {
751
- text-decoration-line: underline
752
- }
753
-
754
- .hover\\:no-underline:hover {
755
- text-decoration: none
756
- }
757
-
758
- .focus\\:no-underline:focus {
759
- text-decoration: none
760
- }
761
-
762
- .active\\:no-underline:active {
763
- text-decoration: none
764
- }
765
-
766
- .flex-1 {
767
- flex: 1 1 0%
768
- }
769
-
770
- .shrink {
771
- flex-shrink: 1
772
- }
773
-
774
- .shrink-0 {
775
- flex-shrink: 0
776
- }
777
-
778
- .shrink-0\\! {
779
- flex-shrink: 0 !important
780
- }
781
-
782
- .grow, .grow-1 {
783
- flex-grow: 1
784
- }
785
-
786
- .basis-auto {
787
- flex-basis: auto
788
- }
789
-
790
- .flex-col {
791
- flex-direction: column
792
- }
793
-
794
- .focus-within\\:focusable:focus-within {
795
- outline: 2px solid var(--w-s-color-border-focus);
796
- outline-offset: var(--w-outline-offset, 1px)
797
- }
798
-
799
- .focusable:focus, .focusable:focus-visible {
800
- outline: 2px solid var(--w-s-color-border-focus);
801
- outline-offset: var(--w-outline-offset, 1px)
802
- }
803
-
804
- .focusable:not(:focus-visible) {
805
- outline: none
806
- }
807
-
808
- .peer:focus ~ .peer-focus\\:focusable, .peer:focus-visible ~ .peer-focus\\:focusable {
809
- outline: 2px solid var(--w-s-color-border-focus);
810
- outline-offset: var(--w-outline-offset, 1px)
811
- }
812
-
813
- .peer:not(:focus-visible) ~ .peer-focus\\:focusable {
814
- outline: none
815
- }
816
-
817
- .focusable-inset {
818
- --w-outline-offset: -3px
819
- }
820
-
821
- .gap-12 {
822
- gap: 1.2rem
823
- }
824
-
825
- .gap-8 {
826
- gap: .8rem
827
- }
828
-
829
- .gap-x-16 {
830
- column-gap: 1.6rem
831
- }
832
-
833
- .gap-y-16 {
834
- row-gap: 1.6rem
835
- }
836
-
837
- .row-span-2 {
838
- grid-row: span 2/span 2
839
- }
840
-
841
- .col-span-2 {
842
- grid-column: span 2/span 2
843
- }
844
-
845
- .col-span-3 {
846
- grid-column: span 3/span 3
847
- }
848
-
849
- .row-start-1 {
850
- grid-row-start: 1
851
- }
852
-
853
- .row-start-2 {
854
- grid-row-start: 2
855
- }
856
-
857
- .col-start-2 {
858
- grid-column-start: 2
859
- }
860
-
861
- .auto-rows-auto {
862
- grid-auto-rows: auto
863
- }
864
-
865
- .grid-flow-col {
866
- grid-auto-flow: column
867
- }
868
-
869
- .grid-rows-\\[20px_auto\\] {
870
- grid-template-rows:20px auto
871
- }
872
-
873
- .grid-rows-\\[auto_20px\\] {
874
- grid-template-rows:auto 20px
875
- }
876
-
877
- .grid-cols-\\[1fr_20px_1fr\\] {
878
- grid-template-columns:1fr 20px 1fr
879
- }
880
-
881
- .grid-cols-\\[1fr_20px\\] {
882
- grid-template-columns:1fr 20px
883
- }
884
-
885
- .grid-cols-\\[20px_1fr\\] {
886
- grid-template-columns:20px 1fr
887
- }
888
-
889
- .grid-cols-\\[auto_1fr_auto\\] {
890
- grid-template-columns:auto 1fr auto
891
- }
892
-
893
- .grid-cols-1 {
894
- grid-template-columns:repeat(1, minmax(0, 1fr))
895
- }
896
-
897
- .grid-cols-2 {
898
- grid-template-columns:repeat(2, minmax(0, 1fr))
899
- }
900
-
901
- .grid-cols-3 {
902
- grid-template-columns:repeat(3, minmax(0, 1fr))
903
- }
904
-
905
- .grid-cols-4 {
906
- grid-template-columns:repeat(4, minmax(0, 1fr))
907
- }
908
-
909
- .grid-cols-5 {
910
- grid-template-columns:repeat(5, minmax(0, 1fr))
911
- }
912
-
913
- .grid-cols-6 {
914
- grid-template-columns:repeat(6, minmax(0, 1fr))
915
- }
916
-
917
- .grid-cols-7 {
918
- grid-template-columns:repeat(7, minmax(0, 1fr))
919
- }
920
-
921
- .grid-cols-8 {
922
- grid-template-columns:repeat(8, minmax(0, 1fr))
923
- }
924
-
925
- .grid-cols-9 {
926
- grid-template-columns:repeat(9, minmax(0, 1fr))
927
- }
928
-
929
- .overflow-hidden {
930
- overflow: hidden
931
- }
932
-
933
- .overflow-x-hidden {
934
- overflow-x: hidden
935
- }
936
-
937
- .overflow-y-auto {
938
- overflow-y: auto
939
- }
940
-
941
- .list-none {
942
- list-style-type: none
943
- }
944
-
945
- .outline-\\[--w-s-color-border-negative\\]\\! {
946
- outline-color: var(--w-s-color-border-negative) !important
947
- }
948
-
949
- .outline-none {
950
- outline: 2px solid transparent;
951
- outline-offset: 2px
952
- }
953
-
954
- .focus\\:outline-none:focus {
955
- outline: 2px solid transparent;
956
- outline-offset: 2px
957
- }
958
-
959
- .items-start {
960
- align-items: flex-start
961
- }
962
-
963
- .items-end {
964
- align-items: flex-end
965
- }
966
-
967
- .items-center {
968
- align-items: center
969
- }
970
-
971
- .self-center {
972
- align-self: center
973
- }
974
-
975
- .inset-0 {
976
- top: 0rem;
977
- right: 0rem;
978
- bottom: 0rem;
979
- left: 0rem
980
- }
981
-
982
- .-bottom-0 {
983
- bottom: -0rem
984
- }
985
-
986
- .bottom-0 {
987
- bottom: 0rem
988
- }
989
-
990
- .bottom-10 {
991
- bottom: 1rem
992
- }
993
-
994
- .bottom-16 {
995
- bottom: 1.6rem
996
- }
997
-
998
- .left-0 {
999
- left: 0rem
1000
- }
1001
-
1002
- .left-4 {
1003
- left: .4rem
1004
- }
1005
-
1006
- .right-0 {
1007
- right: 0rem
1008
- }
1009
-
1010
- .right-8 {
1011
- right: .8rem
1012
- }
1013
-
1014
- .top-\\[1\\.92rem\\] {
1015
- top: 1.92rem
1016
- }
1017
-
1018
- .top-0 {
1019
- top: 0rem
1020
- }
1021
-
1022
- .top-20 {
1023
- top: 2rem
1024
- }
1025
-
1026
- .top-4 {
1027
- top: .4rem
1028
- }
1029
-
1030
- .top-8 {
1031
- top: .8rem
1032
- }
1033
-
1034
- .before\\:bottom-0:before {
1035
- bottom: 0rem
1036
- }
1037
-
1038
- .before\\:left-0:before {
1039
- left: 0rem
1040
- }
1041
-
1042
- .before\\:right-0:before {
1043
- right: 0rem
1044
- }
1045
-
1046
- .before\\:top-2:before {
1047
- top: .2rem
1048
- }
1049
-
1050
- .-bottom-\\[8px\\] {
1051
- bottom: -8px
1052
- }
1053
-
1054
- .-left-\\[8px\\] {
1055
- left: -8px
1056
- }
1057
-
1058
- .-right-\\[8px\\] {
1059
- right: -8px
1060
- }
1061
-
1062
- .-top-\\[8px\\] {
1063
- top: -8px
1064
- }
1065
-
1066
- .top-\\[19px\\] {
1067
- top: 19px
1068
- }
1069
-
1070
- .top-\\[30\\%\\] {
1071
- top: 30%
1072
- }
1073
-
1074
- .justify-end {
1075
- justify-content: flex-end
1076
- }
1077
-
1078
- .justify-center {
1079
- justify-content: center
1080
- }
1081
-
1082
- .justify-between {
1083
- justify-content: space-between
1084
- }
1085
-
1086
- .justify-items-center {
1087
- justify-items: center
1088
- }
1089
-
1090
- .justify-self-start {
1091
- justify-self: start
1092
- }
1093
-
1094
- .justify-self-end {
1095
- justify-self: end
1096
- }
1097
-
1098
- .justify-self-center {
1099
- justify-self: center
1100
- }
1101
-
1102
- .absolute {
1103
- position: absolute
1104
- }
1105
-
1106
- .fixed {
1107
- position: fixed
1108
- }
1109
-
1110
- .relative {
1111
- position: relative
1112
- }
1113
-
1114
- .open\\:fixed[open] {
1115
- position: fixed
1116
- }
1117
-
1118
- .before\\:absolute:before {
1119
- position: absolute
1120
- }
1121
-
1122
- .z-10, .peer:checked ~ .peer-checked\\:z-10 {
1123
- z-index: 10
1124
- }
1125
-
1126
- .z-30 {
1127
- z-index: 30
1128
- }
1129
-
1130
- .z-50 {
1131
- z-index: 50
1132
- }
1133
-
1134
- .hover\\:z-30:hover {
1135
- z-index: 30
1136
- }
1137
-
1138
- .\\!s-bg-selected {
1139
- background-color: var(--w-s-color-background-selected) !important
1140
- }
1141
-
1142
- .s-bg {
1143
- background-color: var(--w-s-color-background)
1144
- }
1145
-
1146
- .s-bg-disabled {
1147
- background-color: var(--w-s-color-background-disabled)
1148
- }
1149
-
1150
- .s-bg-disabled-subtle {
1151
- background-color: var(--w-s-color-background-disabled-subtle)
1152
- }
1153
-
1154
- .s-bg-info-subtle {
1155
- background-color: var(--w-s-color-background-info-subtle)
1156
- }
1157
-
1158
- .s-bg-inverted {
1159
- background-color: var(--w-s-color-background-inverted)
1160
- }
1161
-
1162
- .s-bg-negative {
1163
- background-color: var(--w-s-color-background-negative)
1164
- }
1165
-
1166
- .s-bg-negative-subtle {
1167
- background-color: var(--w-s-color-background-negative-subtle)
1168
- }
1169
-
1170
- .s-bg-positive-subtle {
1171
- background-color: var(--w-s-color-background-positive-subtle)
1172
- }
1173
-
1174
- .s-bg-primary, .peer:checked ~ .peer-checked\\:s-bg-primary {
1175
- background-color: var(--w-s-color-background-primary)
1176
- }
1177
-
1178
- .s-bg-selected {
1179
- background-color: var(--w-s-color-background-selected)
1180
- }
1181
-
1182
- .s-bg-subtle {
1183
- background-color: var(--w-s-color-background-subtle)
1184
- }
1185
-
1186
- .s-bg-warning-subtle {
1187
- background-color: var(--w-s-color-background-warning-subtle)
1188
- }
1189
-
1190
- .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-negative-hover:before {
1191
- background-color: var(--w-s-color-background-negative-hover)
1192
- }
1193
-
1194
- .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-primary-hover:before {
1195
- background-color: var(--w-s-color-background-primary-hover)
1196
- }
1197
-
1198
- .peer:checked ~ .peer-checked\\:before\\:s-bg-disabled:before {
1199
- background-color: var(--w-s-color-background-disabled)
1200
- }
1201
-
1202
- .peer:checked ~ .peer-checked\\:before\\:s-bg-negative:before {
1203
- background-color: var(--w-s-color-background-negative)
1204
- }
1205
-
1206
- .peer:checked ~ .peer-checked\\:before\\:s-bg-primary:before {
1207
- background-color: var(--w-s-color-background-primary)
1208
- }
1209
-
1210
- .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-disabled:before {
1211
- background-color: var(--w-s-color-background-disabled)
1212
- }
1213
-
1214
- .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-negative:before {
1215
- background-color: var(--w-s-color-background-negative)
1216
- }
1217
-
1218
- .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-primary:before {
1219
- background-color: var(--w-s-color-background-primary)
1220
- }
1221
-
1222
- .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-negative-hover:hover:before {
1223
- background-color: var(--w-s-color-background-negative-hover)
1224
- }
1225
-
1226
- .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-primary-hover:hover:before {
1227
- background-color: var(--w-s-color-background-primary-hover)
1228
- }
1229
-
1230
- .\\!hover\\:s-bg-selected-hover:hover {
1231
- background-color: var(--w-s-color-background-selected-hover) !important
1232
- }
1233
-
1234
- .group:hover .group-hover\\:s-bg-primary-hover {
1235
- background-color: var(--w-s-color-background-primary-hover)
1236
- }
1237
-
1238
- .hover\\:before\\:s-bg-hover:hover:before {
1239
- background-color: var(--w-s-color-background-hover)
1240
- }
1241
-
1242
- .hover\\:before\\:s-bg-negative-subtle-hover:hover:before {
1243
- background-color: var(--w-s-color-background-negative-subtle-hover)
1244
- }
1245
-
1246
- .hover\\:s-bg-hover:hover {
1247
- background-color: var(--w-s-color-background-hover)
1248
- }
1249
-
1250
- .hover\\:s-bg-negative-hover:hover {
1251
- background-color: var(--w-s-color-background-negative-hover)
1252
- }
1253
-
1254
- .hover\\:s-bg-negative-subtle-hover:hover {
1255
- background-color: var(--w-s-color-background-negative-subtle-hover)
1256
- }
1257
-
1258
- .hover\\:s-bg-primary-hover:hover {
1259
- background-color: var(--w-s-color-background-primary-hover)
1260
- }
1261
-
1262
- .hover\\:s-bg-selected-hover:hover {
1263
- background-color: var(--w-s-color-background-selected-hover)
1264
- }
1265
-
1266
- .peer:hover:not(:checked) ~ .peer-hover\\:peer-not-checked\\:s-bg-hover {
1267
- background-color: var(--w-s-color-background-hover)
1268
- }
1269
-
1270
- .peer:hover ~ .peer-hover\\:before\\:s-bg-hover:before {
1271
- background-color: var(--w-s-color-background-hover)
1272
- }
1273
-
1274
- .peer:hover ~ .peer-hover\\:before\\:s-bg-negative-subtle:before {
1275
- background-color: var(--w-s-color-background-negative-subtle)
1276
- }
1277
-
1278
- .focus\\:s-bg-primary-hover:focus {
1279
- background-color: var(--w-s-color-background-primary-hover)
1280
- }
1281
-
1282
- .\\!active\\:s-bg-selected-active:active {
1283
- background-color: var(--w-s-color-background-selected-active) !important
1284
- }
1285
-
1286
- .active\\:s-bg-active:active {
1287
- background-color: var(--w-s-color-background-active)
1288
- }
1289
-
1290
- .active\\:s-bg-negative-active:active {
1291
- background-color: var(--w-s-color-background-negative-active)
1292
- }
1293
-
1294
- .active\\:s-bg-negative-subtle-active:active {
1295
- background-color: var(--w-s-color-background-negative-subtle-active)
1296
- }
1297
-
1298
- .active\\:s-bg-primary-active:active {
1299
- background-color: var(--w-s-color-background-primary-active)
1300
- }
1301
-
1302
- .active\\:s-bg-selected-active:active {
1303
- background-color: var(--w-s-color-background-selected-active)
1304
- }
1305
-
1306
- .before\\:s-bg-disabled-subtle:before {
1307
- background-color: var(--w-s-color-background-disabled-subtle)
1308
- }
1309
-
1310
- .before\\:s-bg:before {
1311
- background-color: var(--w-s-color-background)
1312
- }
1313
-
1314
- .s-text {
1315
- color: var(--w-s-color-text)
1316
- }
1317
-
1318
- .s-text-disabled {
1319
- color: var(--w-s-color-text-disabled)
1320
- }
1321
-
1322
- .s-text-inverted, .peer:checked ~ .peer-checked\\:s-text-inverted {
1323
- color: var(--w-s-color-text-inverted)
1324
- }
1325
-
1326
- .s-text-inverted-static {
1327
- color: var(--w-s-color-text-inverted-static)
1328
- }
1329
-
1330
- .s-text-link {
1331
- color: var(--w-s-color-text-link)
1332
- }
1333
-
1334
- .s-text-negative {
1335
- color: var(--w-s-color-text-negative)
1336
- }
1337
-
1338
- .s-text-subtle {
1339
- color: var(--w-s-color-text-subtle)
1340
- }
1341
-
1342
- .hover\\:s-text-link:hover {
1343
- color: var(--w-s-color-text-link)
1344
- }
1345
-
1346
- .active\\:s-text:active {
1347
- color: var(--w-s-color-text)
1348
- }
1349
-
1350
- .placeholder\\:s-text-placeholder::placeholder {
1351
- color: var(--w-s-color-text-placeholder)
1352
- }
1353
-
1354
- .s-icon {
1355
- color: var(--w-s-color-icon)
1356
- }
1357
-
1358
- .s-icon-info {
1359
- color: var(--w-s-color-icon-info)
1360
- }
1361
-
1362
- .s-icon-inverted {
1363
- color: var(--w-s-color-icon-inverted)
1364
- }
1365
-
1366
- .s-icon-negative {
1367
- color: var(--w-s-color-icon-negative)
1368
- }
1369
-
1370
- .s-icon-positive {
1371
- color: var(--w-s-color-icon-positive)
1372
- }
1373
-
1374
- .s-icon-warning {
1375
- color: var(--w-s-color-icon-warning)
1376
- }
1377
-
1378
- .hover\\:s-icon-hover:hover {
1379
- color: var(--w-s-color-icon-hover)
1380
- }
1381
-
1382
- .active\\:s-icon-active:active {
1383
- color: var(--w-s-color-icon-active)
1384
- }
1385
-
1386
- .before\\:s-icon-inverted:before {
1387
- color: var(--w-s-color-icon-inverted)
1388
- }
1389
-
1390
- .s-border {
1391
- border-color: var(--w-s-color-border)
1392
- }
1393
-
1394
- .s-border-disabled {
1395
- border-color: var(--w-s-color-border-disabled)
1396
- }
1397
-
1398
- .s-border-info-subtle {
1399
- border-color: var(--w-s-color-border-info-subtle)
1400
- }
1401
-
1402
- .s-border-l-info {
1403
- border-left-color: var(--w-s-color-border-info)
1404
- }
1405
-
1406
- .s-border-l-negative {
1407
- border-left-color: var(--w-s-color-border-negative)
1408
- }
1409
-
1410
- .s-border-l-positive {
1411
- border-left-color: var(--w-s-color-border-positive)
1412
- }
1413
-
1414
- .s-border-l-warning {
1415
- border-left-color: var(--w-s-color-border-warning)
1416
- }
1417
-
1418
- .s-border-negative {
1419
- border-color: var(--w-s-color-border-negative)
1420
- }
1421
-
1422
- .s-border-negative-subtle {
1423
- border-color: var(--w-s-color-border-negative-subtle)
1424
- }
1425
-
1426
- .s-border-positive-subtle {
1427
- border-color: var(--w-s-color-border-positive-subtle)
1428
- }
1429
-
1430
- .s-border-primary, .peer:checked ~ .peer-checked\\:s-border-primary {
1431
- border-color: var(--w-s-color-border-primary)
1432
- }
1433
-
1434
- .s-border-selected {
1435
- border-color: var(--w-s-color-border-selected)
1436
- }
1437
-
1438
- .s-border-warning-subtle {
1439
- border-color: var(--w-s-color-border-warning-subtle)
1440
- }
1441
-
1442
- .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-negative-hover:before {
1443
- border-color: var(--w-s-color-border-negative-hover)
1444
- }
1445
-
1446
- .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-primary-hover:before {
1447
- border-color: var(--w-s-color-border-primary-hover)
1448
- }
1449
-
1450
- .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-selected-hover:before {
1451
- border-color: var(--w-s-color-border-selected-hover)
1452
- }
1453
-
1454
- .peer:checked ~ .peer-checked\\:before\\:s-border-disabled:before {
1455
- border-color: var(--w-s-color-border-disabled)
1456
- }
1457
-
1458
- .peer:checked ~ .peer-checked\\:before\\:s-border-negative:before {
1459
- border-color: var(--w-s-color-border-negative)
1460
- }
1461
-
1462
- .peer:checked ~ .peer-checked\\:before\\:s-border-primary:before {
1463
- border-color: var(--w-s-color-border-primary)
1464
- }
1465
-
1466
- .peer:checked ~ .peer-checked\\:before\\:s-border-selected:before {
1467
- border-color: var(--w-s-color-border-selected)
1468
- }
1469
-
1470
- .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-disabled:before {
1471
- border-color: var(--w-s-color-border-disabled)
1472
- }
1473
-
1474
- .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-negative:before {
1475
- border-color: var(--w-s-color-border-negative)
1476
- }
1477
-
1478
- .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-primary:before {
1479
- border-color: var(--w-s-color-border-primary)
1480
- }
1481
-
1482
- .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-negative-hover:hover:before {
1483
- border-color: var(--w-s-color-border-negative-hover)
1484
- }
1485
-
1486
- .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-primary-hover:hover:before {
1487
- border-color: var(--w-s-color-border-primary-hover)
1488
- }
1489
-
1490
- .group:hover .group-hover\\:s-border-selected-hover {
1491
- border-color: var(--w-s-color-border-selected-hover)
1492
- }
1493
-
1494
- .hover\\:before\\:s-border-negative-hover:hover:before {
1495
- border-color: var(--w-s-color-border-negative-hover)
1496
- }
1497
-
1498
- .hover\\:before\\:s-border-primary:hover:before {
1499
- border-color: var(--w-s-color-border-primary)
1500
- }
1501
-
1502
- .hover\\:s-border-disabled:hover {
1503
- border-color: var(--w-s-color-border-disabled)
1504
- }
1505
-
1506
- .hover\\:s-border-hover:hover {
1507
- border-color: var(--w-s-color-border-hover)
1508
- }
1509
-
1510
- .hover\\:s-border-negative-hover:hover {
1511
- border-color: var(--w-s-color-border-negative-hover)
1512
- }
1513
-
1514
- .hover\\:s-border-primary-hover:hover {
1515
- border-color: var(--w-s-color-border-primary-hover)
1516
- }
1517
-
1518
- .hover\\:s-border-primary:hover {
1519
- border-color: var(--w-s-color-border-primary)
1520
- }
1521
-
1522
- .hover\\:s-border-selected-hover:hover {
1523
- border-color: var(--w-s-color-border-selected-hover)
1524
- }
1525
-
1526
- .peer:hover ~ .peer-hover\\:before\\:s-border-negative-hover:before {
1527
- border-color: var(--w-s-color-border-negative-hover)
1528
- }
1529
-
1530
- .peer:hover ~ .peer-hover\\:before\\:s-border-primary:before {
1531
- border-color: var(--w-s-color-border-primary)
1532
- }
1533
-
1534
- .focus\\:s-border-primary-hover:focus {
1535
- border-color: var(--w-s-color-border-primary-hover)
1536
- }
1537
-
1538
- .active\\:s-border-active:active {
1539
- border-color: var(--w-s-color-border-active)
1540
- }
1541
-
1542
- .active\\:s-border-disabled:active {
1543
- border-color: var(--w-s-color-border-disabled)
1544
- }
1545
-
1546
- .active\\:s-border-primary-active:active {
1547
- border-color: var(--w-s-color-border-primary-active)
1548
- }
1549
-
1550
- .active\\:s-border-selected-active:active {
1551
- border-color: var(--w-s-color-border-selected-active)
1552
- }
1553
-
1554
- .active\\:s-border-selected:active {
1555
- border-color: var(--w-s-color-border-selected)
1556
- }
1557
-
1558
- .group:active .group-active\\:s-border-active {
1559
- border-color: var(--w-s-color-border-active)
1560
- }
1561
-
1562
- .group:active .group-active\\:s-border-selected-active {
1563
- border-color: var(--w-s-color-border-selected-active)
1564
- }
1565
-
1566
- .before\\:s-border-disabled:before {
1567
- border-color: var(--w-s-color-border-disabled)
1568
- }
1569
-
1570
- .before\\:s-border-negative:before {
1571
- border-color: var(--w-s-color-border-negative)
1572
- }
1573
-
1574
- .s-surface-sunken {
1575
- background-color: var(--w-s-color-surface-sunken)
1576
- }
1577
-
1578
- .s-surface-elevated-200 {
1579
- background-color: var(--w-s-color-surface-elevated-200);
1580
- box-shadow: var(--w-s-shadow-surface-elevated-200)
1581
- }
1582
-
1583
- .hover\\:s-surface-elevated-200-hover:hover {
1584
- background-color: var(--w-s-color-surface-elevated-200-hover);
1585
- box-shadow: var(--w-s-shadow-surface-elevated-200-hover)
1586
- }
1587
-
1588
- .active\\:s-surface-elevated-200-active:active {
1589
- background-color: var(--w-s-color-surface-elevated-200-active);
1590
- box-shadow: var(--w-s-shadow-surface-elevated-200-active)
1591
- }
1592
-
1593
- .drop-shadow-m {
1594
- filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)
1595
- }
1596
-
1597
- .shadow-m {
1598
- box-shadow: var(--w-shadow-m)
1599
- }
1600
-
1601
- .shadow-s {
1602
- box-shadow: var(--w-shadow-s)
1603
- }
1604
-
1605
- .shadow-\\[--w-shadow-slider\\] {
1606
- box-shadow: var(--w-shadow-slider)
1607
- }
1608
-
1609
- .hover\\:shadow-\\[--w-shadow-slider-handle-hover\\]:hover {
1610
- box-shadow: var(--w-shadow-slider-handle-hover)
1611
- }
1612
-
1613
- .focus\\:shadow-\\[--w-shadow-slider-handle-hover\\]:focus {
1614
- box-shadow: var(--w-shadow-slider-handle-hover)
1615
- }
1616
-
1617
- .active\\:shadow-\\[--w-shadow-slider-handle-active\\]:active {
1618
- box-shadow: var(--w-shadow-slider-handle-active)
1619
- }
1620
-
1621
- .h-0 {
1622
- height: 0rem
1623
- }
1624
-
1625
- .h-16 {
1626
- height: 1.6rem
1627
- }
1628
-
1629
- .h-2 {
1630
- height: .2rem
1631
- }
1632
-
1633
- .h-20 {
1634
- height: 2rem
1635
- }
1636
-
1637
- .h-24 {
1638
- height: 2.4rem
1639
- }
1640
-
1641
- .h-4 {
1642
- height: .4rem
1643
- }
1644
-
1645
- .h-44 {
1646
- height: 4.4rem
1647
- }
1648
-
1649
- .h-6 {
1650
- height: .6rem
1651
- }
1652
-
1653
- .h-8 {
1654
- height: .8rem
1655
- }
1656
-
1657
- .h-full {
1658
- height: 100%
1659
- }
1660
-
1661
- .h-unset {
1662
- height: unset
1663
- }
1664
-
1665
- .max-h-unset {
1666
- max-height: unset
1667
- }
1668
-
1669
- .max-w-full {
1670
- max-width: 100%
1671
- }
1672
-
1673
- .max-w-max {
1674
- max-width: max-content
1675
- }
1676
-
1677
- .max-w-unset {
1678
- max-width: unset
1679
- }
1680
-
1681
- .min-h-32 {
1682
- min-height: 3.2rem
1683
- }
1684
-
1685
- .min-h-40 {
1686
- min-height: 4rem
1687
- }
1688
-
1689
- .min-w-16 {
1690
- min-width: 1.6rem
1691
- }
1692
-
1693
- .min-w-32 {
1694
- min-width: 3.2rem
1695
- }
1696
-
1697
- .w-16 {
1698
- width: 1.6rem
1699
- }
1700
-
1701
- .w-2 {
1702
- width: .2rem
1703
- }
1704
-
1705
- .w-20 {
1706
- width: 2rem
1707
- }
1708
-
1709
- .w-24 {
1710
- width: 2.4rem
1711
- }
1712
-
1713
- .w-32 {
1714
- width: 3.2rem
1715
- }
1716
-
1717
- .w-40 {
1718
- width: 4rem
1719
- }
1720
-
1721
- .w-44 {
1722
- width: 4.4rem
1723
- }
1724
-
1725
- .w-8 {
1726
- width: .8rem
1727
- }
1728
-
1729
- .w-full {
1730
- width: 100%
1731
- }
1732
-
1733
- .w-max {
1734
- width: max-content
1735
- }
1736
-
1737
- .w-unset {
1738
- width: unset
1739
- }
1740
-
1741
- .before\\:h-20:before {
1742
- height: 2rem
1743
- }
1744
-
1745
- .before\\:h-full:before {
1746
- height: 100%
1747
- }
1748
-
1749
- .before\\:w-20:before {
1750
- width: 2rem
1751
- }
1752
-
1753
- .before\\:w-32:before {
1754
- width: 3.2rem
1755
- }
1756
-
1757
- .h-\\[--w-modal-height\\] {
1758
- height: var(--w-modal-height)
1759
- }
1760
-
1761
- .h-\\[14px\\] {
1762
- height: 14px
1763
- }
1764
-
1765
- .h-\\[16px\\] {
1766
- height: 16px
1767
- }
1768
-
1769
- .max-h-\\[--w-modal-max-height\\] {
1770
- max-height: var(--w-modal-max-height)
1771
- }
1772
-
1773
- .min-h-\\[--w-modal-min-height\\] {
1774
- min-height: var(--w-modal-min-height)
1775
- }
1776
-
1777
- .min-h-\\[32px\\] {
1778
- min-height: 32px
1779
- }
1780
-
1781
- .min-h-\\[40px\\] {
1782
- min-height: 40px
1783
- }
1784
-
1785
- .min-h-\\[42\\] {
1786
- min-height: 4.2rem
1787
- }
1788
-
1789
- .min-h-\\[44px\\] {
1790
- min-height: 44px
1791
- }
1792
-
1793
- .min-w-\\[32px\\] {
1794
- min-width: 32px
1795
- }
1796
-
1797
- .min-w-\\[40px\\] {
1798
- min-width: 40px
1799
- }
1800
-
1801
- .min-w-\\[44px\\] {
1802
- min-width: 44px
1803
- }
1804
-
1805
- .w-\\[--w-modal-width\\] {
1806
- width: var(--w-modal-width)
1807
- }
1808
-
1809
- .w-\\[14px\\] {
1810
- width: 14px
1811
- }
1812
-
1813
- .w-\\[16px\\] {
1814
- width: 16px
1815
- }
1816
-
1817
- .space-x-8 > :not([hidden]) ~ :not([hidden]) {
1818
- --w-space-x-reverse: 0;
1819
- margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));
1820
- margin-right: calc(.8rem * var(--w-space-x-reverse))
1821
- }
1822
-
1823
- .space-y-16 > :not([hidden]) ~ :not([hidden]) {
1824
- --w-space-y-reverse: 0;
1825
- margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));
1826
- margin-bottom: calc(1.6rem * var(--w-space-y-reverse))
1827
- }
1828
-
1829
- .m-0 {
1830
- margin: 0rem
1831
- }
1832
-
1833
- .m-auto {
1834
- margin: auto
1835
- }
1836
-
1837
- .-mx-16 {
1838
- margin-left: -1.6rem;
1839
- margin-right: -1.6rem
1840
- }
1841
-
1842
- .mx-0 {
1843
- margin-left: 0rem;
1844
- margin-right: 0rem
1845
- }
1846
-
1847
- .mx-8 {
1848
- margin-left: .8rem;
1849
- margin-right: .8rem
1850
- }
1851
-
1852
- .mx-auto {
1853
- margin-left: auto;
1854
- margin-right: auto
1855
- }
1856
-
1857
- .-mb-1 {
1858
- margin-bottom: -.1rem
1859
- }
1860
-
1861
- .-ml-8 {
1862
- margin-left: -.8rem
1863
- }
1864
-
1865
- .-mr-1 {
1866
- margin-right: -.1rem
1867
- }
1868
-
1869
- .-mr-8 {
1870
- margin-right: -.8rem
1871
- }
1872
-
1873
- .-mt-2 {
1874
- margin-top: -.2rem
1875
- }
1876
-
1877
- .-mt-4 {
1878
- margin-top: -.4rem
1879
- }
1880
-
1881
- .last-child\\:mb-0 > :last-child, .mb-0 {
1882
- margin-bottom: 0rem
1883
- }
1884
-
1885
- .mb-32 {
1886
- margin-bottom: 3.2rem
1887
- }
1888
-
1889
- .ml-8 {
1890
- margin-left: .8rem
1891
- }
1892
-
1893
- .ml-auto {
1894
- margin-left: auto
1895
- }
1896
-
1897
- .mr-8 {
1898
- margin-right: .8rem
1899
- }
1900
-
1901
- .mt-16 {
1902
- margin-top: 1.6rem
1903
- }
1904
-
1905
- .mt-4 {
1906
- margin-top: .4rem
1907
- }
1908
-
1909
- .group:not(:first-child) .group-not-first\\:-ml-2 {
1910
- margin-left: -.2rem
1911
- }
1912
-
1913
- .last\\:mb-0:last-child {
1914
- margin-bottom: 0rem
1915
- }
1916
-
1917
- .last\\:mr-0:last-child {
1918
- margin-right: 0rem
1919
- }
1920
-
1921
- .m-\\[8px\\] {
1922
- margin: 8px
1923
- }
1924
-
1925
- .p-0 {
1926
- padding: 0rem
1927
- }
1928
-
1929
- .p-16 {
1930
- padding: 1.6rem
1931
- }
1932
-
1933
- .p-4 {
1934
- padding: .4rem
1935
- }
1936
-
1937
- .p-8 {
1938
- padding: .8rem
1939
- }
1940
-
1941
- .px-0 {
1942
- padding-left: 0rem;
1943
- padding-right: 0rem
1944
- }
1945
-
1946
- .px-1 {
1947
- padding-left: .1rem;
1948
- padding-right: .1rem
1949
- }
1950
-
1951
- .px-12 {
1952
- padding-left: 1.2rem;
1953
- padding-right: 1.2rem
1954
- }
1955
-
1956
- .px-14 {
1957
- padding-left: 1.4rem;
1958
- padding-right: 1.4rem
1959
- }
1960
-
1961
- .px-16 {
1962
- padding-left: 1.6rem;
1963
- padding-right: 1.6rem
1964
- }
1965
-
1966
- .px-8 {
1967
- padding-left: .8rem;
1968
- padding-right: .8rem
1969
- }
1970
-
1971
- .py-0 {
1972
- padding-top: 0rem;
1973
- padding-bottom: 0rem
1974
- }
1975
-
1976
- .py-1 {
1977
- padding-top: .1rem;
1978
- padding-bottom: .1rem
1979
- }
1980
-
1981
- .py-10 {
1982
- padding-top: 1rem;
1983
- padding-bottom: 1rem
1984
- }
1985
-
1986
- .py-12 {
1987
- padding-top: 1.2rem;
1988
- padding-bottom: 1.2rem
1989
- }
1990
-
1991
- .py-2 {
1992
- padding-top: .2rem;
1993
- padding-bottom: .2rem
1994
- }
1995
-
1996
- .py-4 {
1997
- padding-top: .4rem;
1998
- padding-bottom: .4rem
1999
- }
2000
-
2001
- .py-6 {
2002
- padding-top: .6rem;
2003
- padding-bottom: .6rem
2004
- }
2005
-
2006
- .py-8 {
2007
- padding-top: .8rem;
2008
- padding-bottom: .8rem
2009
- }
2010
-
2011
- .pb-0 {
2012
- padding-bottom: 0rem
2013
- }
2014
-
2015
- .pb-32 {
2016
- padding-bottom: 3.2rem
2017
- }
2018
-
2019
- .pb-4 {
2020
- padding-bottom: .4rem
2021
- }
2022
-
2023
- .pb-8 {
2024
- padding-bottom: .8rem
2025
- }
2026
-
2027
- .pl-0 {
2028
- padding-left: 0rem
2029
- }
2030
-
2031
- .pl-1 {
2032
- padding-left: .1rem
2033
- }
2034
-
2035
- .pl-12 {
2036
- padding-left: 1.2rem
2037
- }
2038
-
2039
- .pl-28 {
2040
- padding-left: 2.8rem
2041
- }
2042
-
2043
- .pl-4 {
2044
- padding-left: .4rem
2045
- }
2046
-
2047
- .pl-8 {
2048
- padding-left: .8rem
2049
- }
2050
-
2051
- .pr-12 {
2052
- padding-right: 1.2rem
2053
- }
2054
-
2055
- .pr-14 {
2056
- padding-right: 1.4rem
2057
- }
2058
-
2059
- .pr-2 {
2060
- padding-right: .2rem
2061
- }
2062
-
2063
- .pr-32 {
2064
- padding-right: 3.2rem
2065
- }
2066
-
2067
- .pr-40 {
2068
- padding-right: 4rem
2069
- }
2070
-
2071
- .pt-0 {
2072
- padding-top: 0rem
2073
- }
2074
-
2075
- .pt-1 {
2076
- padding-top: .1rem
2077
- }
2078
-
2079
- .pt-16 {
2080
- padding-top: 1.6rem
2081
- }
2082
-
2083
- .pt-24 {
2084
- padding-top: 2.4rem
2085
- }
2086
-
2087
- .pt-8 {
2088
- padding-top: .8rem
2089
- }
2090
-
2091
- .group\\/step:last-child .group-last\\/step\\:last\\:pb-0:last-child {
2092
- padding-bottom: 0rem
2093
- }
2094
-
2095
- .last\\:pb-1:last-child {
2096
- padding-bottom: .1rem
2097
- }
2098
-
2099
- .last\\:pr-1:last-child {
2100
- padding-right: .1rem
2101
- }
2102
-
2103
- .p-\\[8px\\] {
2104
- padding: 8px
2105
- }
2106
-
2107
- .px-\\[15px\\] {
2108
- padding-left: 15px;
2109
- padding-right: 15px
2110
- }
2111
-
2112
- .px-\\[8px\\] {
2113
- padding-left: 8px;
2114
- padding-right: 8px
2115
- }
2116
-
2117
- .py-\\[11px\\] {
2118
- padding-top: 11px;
2119
- padding-bottom: 11px
2120
- }
2121
-
2122
- .py-\\[5px\\] {
2123
- padding-top: 5px;
2124
- padding-bottom: 5px
2125
- }
2126
-
2127
- .py-\\[7px\\] {
2128
- padding-top: 7px;
2129
- padding-bottom: 7px
2130
- }
2131
-
2132
- .pl-\\[var\\(--w-prefix-width\\,_40px\\)\\] {
2133
- padding-left: var(--w-prefix-width, 40px)
2134
- }
2135
-
2136
- .invisible {
2137
- visibility: hidden
2138
- }
2139
-
2140
- .backface-hidden {
2141
- backface-visibility: hidden
2142
- }
2143
-
2144
- .break-words {
2145
- overflow-wrap: break-word
2146
- }
2147
-
2148
- .before\\:content-\\[\\"–\\"\\]:before {
2149
- content: "–"
2150
- }
2151
-
2152
- .before\\:content-\\[\\"\\"\\]:before {
2153
- content: ""
2154
- }
2155
-
2156
- .cursor-default {
2157
- cursor: default
2158
- }
2159
-
2160
- .cursor-pointer {
2161
- cursor: pointer
2162
- }
2163
-
2164
- .antialiased {
2165
- -webkit-font-smoothing: antialiased;
2166
- -moz-osx-font-smoothing: grayscale;
2167
- font-smoothing: grayscale
2168
- }
2169
-
2170
- .font-bold {
2171
- font-weight: 700
2172
- }
2173
-
2174
- .before\\:font-bold:before {
2175
- font-weight: 700
2176
- }
2177
-
2178
- .font-normal {
2179
- font-weight: 400
2180
- }
2181
-
2182
- .pointer-events-auto {
2183
- pointer-events: auto
2184
- }
2185
-
2186
- .pointer-events-none {
2187
- pointer-events: none
2188
- }
2189
-
2190
- .before\\:pointer-events-none:before {
2191
- pointer-events: none
2192
- }
2193
-
2194
- .pb-safe-\\[32\\] {
2195
- padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))
2196
- }
2197
-
2198
- .sr-only {
2199
- position: absolute;
2200
- width: 1px;
2201
- height: 1px;
2202
- padding: 0;
2203
- margin: -1px;
2204
- overflow: hidden;
2205
- clip: rect(0, 0, 0, 0);
2206
- white-space: nowrap;
2207
- border-width: 0
2208
- }
2209
-
2210
- .touch-pan-y {
2211
- touch-action: pan-y
2212
- }
2213
-
2214
- .select-none {
2215
- -webkit-user-select: none;
2216
- user-select: none
2217
- }
2218
-
2219
- .translate-x-20 {
2220
- --w-translate-x: 2rem;
2221
- transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2222
- }
2223
-
2224
- .translate-z-0 {
2225
- --w-translate-z: 0rem;
2226
- transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2227
- }
2228
-
2229
- .-rotate-180, .part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part) {
2230
- --w-rotate-x: 0;
2231
- --w-rotate-y: 0;
2232
- --w-rotate-z: 0;
2233
- --w-rotate: -180deg;
2234
- transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2235
- }
2236
-
2237
- .part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {
2238
- --w-rotate-x: 0;
2239
- --w-rotate-y: 0;
2240
- --w-rotate-z: 0;
2241
- --w-rotate: 180deg;
2242
- transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2243
- }
2244
-
2245
- .rotate-90 {
2246
- --w-rotate-x: 0;
2247
- --w-rotate-y: 0;
2248
- --w-rotate-z: 0;
2249
- --w-rotate: 90deg;
2250
- transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2251
- }
2252
-
2253
- .part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part), .transform {
2254
- transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2255
- }
2256
-
2257
- .part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part), .transform-gpu {
2258
- transform: translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2259
- }
2260
-
2261
- .part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part), .transition-transform {
2262
- transition-property: transform;
2263
- transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2264
- transition-duration: .15s
2265
- }
2266
-
2267
- .transition-300 {
2268
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
2269
- transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2270
- transition-duration: .3s
2271
- }
2272
-
2273
- .transition-all {
2274
- transition-property: all;
2275
- transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2276
- transition-duration: .15s
2277
- }
2278
-
2279
- .transition-colors {
2280
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
2281
- transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2282
- transition-duration: .15s
2283
- }
2284
-
2285
- .transition-shadow {
2286
- transition-property: box-shadow;
2287
- transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2288
- transition-duration: .15s
2289
- }
2290
-
2291
- .before\\:transition-all:before {
2292
- transition-property: all;
2293
- transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2294
- transition-duration: .15s
2295
- }
2296
-
2297
- .duration-300 {
2298
- transition-duration: .3s
2299
- }
2300
-
2301
- .ease-in-out, .part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part) {
2302
- transition-timing-function: cubic-bezier(.4, 0, .2, 1)
2303
- }
2304
-
2305
- .text-m {
2306
- font-size: var(--w-font-size-m);
2307
- line-height: var(--w-line-height-m)
2308
- }
2309
-
2310
- .text-s {
2311
- font-size: var(--w-font-size-s);
2312
- line-height: var(--w-line-height-s)
2313
- }
2314
-
2315
- .text-xs {
2316
- font-size: var(--w-font-size-xs);
2317
- line-height: var(--w-line-height-xs)
2318
- }
2319
-
2320
- .leading-m {
2321
- line-height: var(--w-line-height-m)
2322
- }
2323
-
2324
- .before\\:leading-xs:before {
2325
- line-height: var(--w-line-height-xs)
2326
- }
2327
-
2328
- .leading-\\[24\\] {
2329
- line-height: 2.4rem
2330
- }
2331
-
2332
- @media (max-width: 479.9px) {
2333
- .lt-sm\\:rounded-b-0 {
2334
- border-bottom-left-radius: 0;
2335
- border-bottom-right-radius: 0
2336
- }
2337
- }
2338
- @media (min-width: 480px) {
2339
- .sm\\:border-b-0 {
2340
- border-bottom-width: 0
2341
- }
2342
-
2343
- .sm\\:rounded-8 {
2344
- border-radius: 8px
2345
- }
2346
-
2347
- .sm\\:rounded-b-8 {
2348
- border-bottom-left-radius: 8px;
2349
- border-bottom-right-radius: 8px
2350
- }
2351
-
2352
- .sm\\:gap-16 {
2353
- gap: 1.6rem
2354
- }
2355
-
2356
- .sm\\:place-content-center {
2357
- place-content: center
2358
- }
2359
-
2360
- .sm\\:place-items-center {
2361
- place-items: center
2362
- }
2363
-
2364
- .sm\\:h-24 {
2365
- height: 2.4rem
2366
- }
2367
-
2368
- .sm\\:min-h-48 {
2369
- min-height: 4.8rem
2370
- }
2371
-
2372
- .sm\\:w-24 {
2373
- width: 2.4rem
2374
- }
2375
-
2376
- .sm\\:min-h-\\[32px\\] {
2377
- min-height: 32px
2378
- }
2379
-
2380
- .sm\\:min-h-\\[44px\\] {
2381
- min-height: 44px
2382
- }
2383
-
2384
- .sm\\:min-h-\\[45\\] {
2385
- min-height: 4.5rem
2386
- }
2387
-
2388
- .sm\\:min-w-\\[32px\\] {
2389
- min-width: 32px
2390
- }
2391
-
2392
- .sm\\:min-w-\\[44px\\] {
2393
- min-width: 44px
2394
- }
2395
-
2396
- .sm\\:mx-0 {
2397
- margin-left: 0rem;
2398
- margin-right: 0rem
2399
- }
2400
-
2401
- .sm\\:mx-16 {
2402
- margin-left: 1.6rem;
2403
- margin-right: 1.6rem
2404
- }
2405
-
2406
- .sm\\:-ml-12 {
2407
- margin-left: -1.2rem
2408
- }
2409
-
2410
- .sm\\:-mr-12 {
2411
- margin-right: -1.2rem
2412
- }
2413
-
2414
- .sm\\:-mt-8 {
2415
- margin-top: -.8rem
2416
- }
2417
-
2418
- .sm\\:px-32 {
2419
- padding-left: 3.2rem;
2420
- padding-right: 3.2rem
2421
- }
2422
-
2423
- .sm\\:py-0 {
2424
- padding-top: 0rem;
2425
- padding-bottom: 0rem
2426
- }
2427
-
2428
- .sm\\:pb-32 {
2429
- padding-bottom: 3.2rem
2430
- }
2431
-
2432
- .sm\\:pt-24 {
2433
- padding-top: 2.4rem
2434
- }
2435
-
2436
- .sm\\:pt-32 {
2437
- padding-top: 3.2rem
2438
- }
2439
- }
2440
- @media (min-width: 768px) {
2441
- .md\\:block {
2442
- display: block
2443
- }
2444
-
2445
- .md\\:hidden {
2446
- display: none
2447
- }
2448
- }
2449
- `;import{css as sr}from"lit";var Pe=sr`*,: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}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.flex{display:flex}.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}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.fixed{position:fixed}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}`;var S={base:"block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",default:"border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",disabled:"border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",invalid:"border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",readOnly:"pl-0 bg-transparent pointer-events-none",placeholder:"placeholder:s-text-placeholder",suffix:"pr-40",prefix:"pl-[var(--w-prefix-width,_40px)]",textArea:"min-h-[42] sm:min-h-[45]",fixed:"resize-none"},Ae={base:"antialiased block relative text-s font-bold pb-4 cursor-pointer s-text flex",optional:"pl-8 font-normal text-s s-text-subtle"},de={base:"text-xs mt-4 block",color:"s-text-subtle",colorInvalid:"s-text-negative"},H,U,ce,u=class extends Ee(Ve){constructor(){super(...arguments);re(this,U);this.minHeight=Number.NEGATIVE_INFINITY;this.maxHeight=Number.POSITIVE_INFINITY;re(this,H,null)}updated(r){r.has("value")&&this.setValue(this.value)}resetFormControl(){this.value=ge(this,H)}get _textareaStyles(){return X([S.base,S.textArea,!!this.placeholder&&S.placeholder,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&S.default,this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&S.invalid,!this.invalid&&this.disabled&&!(this.readonly||this.readOnly)&&S.disabled,!this.invalid&&!this.disabled&&(this.readonly||this.readOnly)&&S.readOnly,this.maxRows&&S.fixed])}get _helptextstyles(){return X([de.base,this.invalid?de.colorInvalid:de.color])}get _helpId(){if(this.helpText)return`${this._id}__hint`}get _id(){return"textfield"}get _error(){if(this.invalid&&this._helpId)return this._helpId}async connectedCallback(){super.connectedCallback(),me(this,H,this.value),this.setValue(this.value),await this.updateComplete,(this.value||this.minRows)&&oe(this,U,ce).call(this,this.shadowRoot.querySelector("textarea"))}handler(r){let t=r.currentTarget;this.value=t.value,oe(this,U,ce).call(this,t)}render(){return G`
2450
- ${this.label?G`
2451
- <label for="${this._id}" class=${Ae.base}>
62
+ }
63
+ resetFormControl() {
64
+ this.value = this.#initialValue;
65
+ }
66
+ static { this.styles = [reset, styles]; }
67
+ /** @internal */
68
+ get _textareaStyles() {
69
+ return classnames([
70
+ ccInput.base,
71
+ ccInput.textArea,
72
+ !!this.placeholder && ccInput.placeholder,
73
+ !this.invalid && !this.disabled && !(this.readonly || this.readOnly) && ccInput.default,
74
+ this.invalid && !this.disabled && !(this.readonly || this.readOnly) && ccInput.invalid,
75
+ !this.invalid && this.disabled && !(this.readonly || this.readOnly) && ccInput.disabled,
76
+ !this.invalid && !this.disabled && (this.readonly || this.readOnly) && ccInput.readOnly,
77
+ this.maxRows && ccInput.fixed,
78
+ ]);
79
+ }
80
+ /** @internal */
81
+ get _helptextstyles() {
82
+ return classnames([ccHelpText.base, this.invalid ? ccHelpText.colorInvalid : ccHelpText.color]);
83
+ }
84
+ /** @internal */
85
+ get _helpId() {
86
+ if (this.helpText)
87
+ return `${this._id}__hint`;
88
+ return undefined;
89
+ }
90
+ /** @internal */
91
+ get _id() {
92
+ return 'textfield';
93
+ }
94
+ /** @internal */
95
+ get _error() {
96
+ if (this.invalid && this._helpId)
97
+ return this._helpId;
98
+ return undefined;
99
+ }
100
+ async connectedCallback() {
101
+ super.connectedCallback();
102
+ this.#initialValue = this.value;
103
+ this.setValue(this.value);
104
+ await this.updateComplete;
105
+ if (this.value || this.minRows) {
106
+ // If the component starts with a value or minHeight,
107
+ // resize it automatically to show all the content, or maxHeight.
108
+ this.#resize(this.shadowRoot.querySelector('textarea'));
109
+ }
110
+ }
111
+ handler(e) {
112
+ const target = e.currentTarget;
113
+ this.value = target.value;
114
+ this.#resize(target);
115
+ }
116
+ /** Calculate the new height for the area on input */
117
+ #resize(target) {
118
+ const style = getComputedStyle(target);
119
+ const borderTopWitdh = Number.parseFloat(style.getPropertyValue('border-top-width'));
120
+ const borderBottomWitdh = Number.parseFloat(style.getPropertyValue('border-top-width'));
121
+ const lineHeight = Number.parseFloat(style.getPropertyValue('line-height'));
122
+ const topPadding = Number.parseFloat(style.getPropertyValue('padding-top'));
123
+ const bottomPadding = Number.parseFloat(style.getPropertyValue('padding-bottom'));
124
+ const offset = topPadding + bottomPadding + borderBottomWitdh + borderTopWitdh;
125
+ if (this.minRows) {
126
+ this.minHeight = lineHeight * this.minRows + offset;
127
+ }
128
+ if (this.minRows) {
129
+ this.maxHeight = lineHeight * this.minRows + offset;
130
+ }
131
+ const borderBoxHeight = target.scrollHeight + borderTopWitdh + borderBottomWitdh;
132
+ const height = Math.min(this.maxHeight, Math.max(this.minHeight, borderBoxHeight));
133
+ target.style.setProperty('height', height + 'px');
134
+ }
135
+ render() {
136
+ return html `
137
+ ${this.label
138
+ ? html `
139
+ <label for="${this._id}" class=${ccLabel.base}>
2452
140
  ${this.label}
2453
- ${this.optional?G`
2454
- <span class="${Ae.optional}">
2455
- ${Fe.t({id:"textarea.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}
141
+ ${this.optional
142
+ ? html `
143
+ <span class="${ccLabel.optional}">
144
+ ${i18n.t({
145
+ id: 'textarea.label.optional',
146
+ message: '(optional)',
147
+ comment: 'Shown behind label when marked as optional',
148
+ })}
2456
149
  </span>
2457
- `:le}
2458
- </label>`:le}
150
+ `
151
+ : nothing}
152
+ </label>`
153
+ : nothing}
2459
154
  <textarea
2460
155
  id="${this._id}"
2461
156
  class="${this._textareaStyles}"
2462
- name="${R(this.name)}"
2463
- placeholder="${R(this.placeholder)}"
2464
- .value="${this.value||""}"
2465
- aria-describedby="${R(this._helpId||(this.ariaDescription?"aria-description":void 0))}"
2466
- aria-errormessage="${R(this._error)}"
2467
- aria-invalid="${R(this.invalid)}"
157
+ name="${ifDefined(this.name)}"
158
+ placeholder="${ifDefined(this.placeholder)}"
159
+ .value="${this.value || ''}"
160
+ aria-describedby="${ifDefined(this._helpId || (this.ariaDescription ? 'aria-description' : undefined))}"
161
+ aria-errormessage="${ifDefined(this._error)}"
162
+ aria-invalid="${ifDefined(this.invalid)}"
2468
163
  ?disabled="${this.disabled}"
2469
- ?readonly="${this.readonly||this.readOnly}"
164
+ ?readonly="${this.readonly || this.readOnly}"
2470
165
  ?required="${this.required}"
2471
166
  @input="${this.handler}">
2472
167
  </textarea>
2473
- ${this.helpText?G`<div class="${this._helptextstyles}" id="${this._helpId}">${this.helpText}</div>`:le}
2474
- `}};H=new WeakMap,U=new WeakSet,ce=function(r){let t=getComputedStyle(r),a=Number.parseFloat(t.getPropertyValue("border-top-width")),l=Number.parseFloat(t.getPropertyValue("border-top-width")),n=Number.parseFloat(t.getPropertyValue("line-height")),i=Number.parseFloat(t.getPropertyValue("padding-top")),d=Number.parseFloat(t.getPropertyValue("padding-bottom")),b=i+d+l+a;this.minRows&&(this.minHeight=n*this.minRows+b),this.minRows&&(this.maxHeight=n*this.minRows+b);let w=r.scrollHeight+a+l,C=Math.min(this.maxHeight,Math.max(this.minHeight,w));r.style.setProperty("height",C+"px")},u.shadowRootOptions={...Ve.shadowRootOptions,delegatesFocus:!0},u.styles=[Se,Pe],v([k({type:Boolean,reflect:!0})],u.prototype,"disabled",2),v([k({type:Boolean,reflect:!0})],u.prototype,"invalid",2),v([k({type:String,reflect:!0})],u.prototype,"label",2),v([k({type:String,reflect:!0,attribute:"help-text"})],u.prototype,"helpText",2),v([k({type:Number,reflect:!0,attribute:"maximum-rows"})],u.prototype,"maxRows",2),v([k({type:Number,reflect:!0,attribute:"minimum-rows"})],u.prototype,"minRows",2),v([k()],u.prototype,"name",2),v([k()],u.prototype,"placeholder",2),v([k({type:Boolean,reflect:!0,attribute:"read-only"})],u.prototype,"readOnly",2),v([k({type:Boolean,reflect:!0})],u.prototype,"readonly",2),v([k({type:Boolean,reflect:!0})],u.prototype,"required",2),v([k({type:String,reflect:!0})],u.prototype,"value",2),v([k({type:Boolean,reflect:!0})],u.prototype,"optional",2),v([Ne()],u.prototype,"minHeight",2),v([Ne()],u.prototype,"maxHeight",2);customElements.get("w-textarea")||customElements.define("w-textarea",u);export{u as WarpTextarea};
2475
- //# sourceMappingURL=textarea.js.map
168
+ ${this.helpText ? html `<div class="${this._helptextstyles}" id="${this._helpId}">${this.helpText}</div>` : nothing}
169
+ `;
170
+ }
171
+ }
172
+ __decorate([
173
+ property({ type: Boolean, reflect: true })
174
+ ], WarpTextarea.prototype, "disabled", void 0);
175
+ __decorate([
176
+ property({ type: Boolean, reflect: true })
177
+ ], WarpTextarea.prototype, "invalid", void 0);
178
+ __decorate([
179
+ property({ type: String, reflect: true })
180
+ ], WarpTextarea.prototype, "label", void 0);
181
+ __decorate([
182
+ property({ type: String, reflect: true, attribute: 'help-text' })
183
+ ], WarpTextarea.prototype, "helpText", void 0);
184
+ __decorate([
185
+ property({ type: Number, reflect: true, attribute: 'maximum-rows' })
186
+ ], WarpTextarea.prototype, "maxRows", void 0);
187
+ __decorate([
188
+ property({ type: Number, reflect: true, attribute: 'minimum-rows' })
189
+ ], WarpTextarea.prototype, "minRows", void 0);
190
+ __decorate([
191
+ property()
192
+ ], WarpTextarea.prototype, "name", void 0);
193
+ __decorate([
194
+ property()
195
+ ], WarpTextarea.prototype, "placeholder", void 0);
196
+ __decorate([
197
+ property({ type: Boolean, reflect: true, attribute: 'read-only' })
198
+ ], WarpTextarea.prototype, "readOnly", void 0);
199
+ __decorate([
200
+ property({ type: Boolean, reflect: true })
201
+ ], WarpTextarea.prototype, "readonly", void 0);
202
+ __decorate([
203
+ property({ type: Boolean, reflect: true })
204
+ ], WarpTextarea.prototype, "required", void 0);
205
+ __decorate([
206
+ property({ type: String, reflect: true })
207
+ ], WarpTextarea.prototype, "value", void 0);
208
+ __decorate([
209
+ property({ type: Boolean, reflect: true })
210
+ ], WarpTextarea.prototype, "optional", void 0);
211
+ __decorate([
212
+ state()
213
+ ], WarpTextarea.prototype, "minHeight", void 0);
214
+ __decorate([
215
+ state()
216
+ ], WarpTextarea.prototype, "maxHeight", void 0);
217
+ if (!customElements.get('w-textarea')) {
218
+ customElements.define('w-textarea', WarpTextarea);
219
+ }
220
+ export { WarpTextarea };