@enonic/ui 0.4.2 → 0.6.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.
- package/README.md +18 -18
- package/dist/enonic-ui.cjs +8 -9
- package/dist/enonic-ui.es.js +31 -15
- package/dist/styles/base.css +1 -0
- package/dist/styles/preset.css +1 -0
- package/dist/styles/style.css +1 -0
- package/dist/styles/tokens.css +1 -0
- package/dist/styles/utilities.css +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/providers/id-provider/id-provider.d.ts +10 -0
- package/dist/types/providers/id-provider/index.d.ts +1 -0
- package/dist/types/providers/index.d.ts +1 -0
- package/package.json +40 -31
- package/dist/style.css +0 -1
package/README.md
CHANGED
|
@@ -27,8 +27,7 @@ yarn add @enonic/ui
|
|
|
27
27
|
### Import Components
|
|
28
28
|
|
|
29
29
|
```tsx
|
|
30
|
-
import { Button,
|
|
31
|
-
import '@enonic/ui/style.css';
|
|
30
|
+
import { Button, Input } from '@enonic/ui';
|
|
32
31
|
|
|
33
32
|
function App() {
|
|
34
33
|
return (
|
|
@@ -42,19 +41,29 @@ function App() {
|
|
|
42
41
|
}
|
|
43
42
|
```
|
|
44
43
|
|
|
45
|
-
###
|
|
44
|
+
### Styles
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
#### Tailwind CSS
|
|
47
|
+
|
|
48
|
+
If your project uses Tailwind CSS, you can import the styles directly from the library:
|
|
48
49
|
|
|
49
50
|
```css
|
|
50
|
-
|
|
51
|
+
/* Import Tailwind CSS */
|
|
52
|
+
@import 'tailwindcss';
|
|
53
|
+
/* Required by some components that use animations */
|
|
54
|
+
@import 'tw-animate-css';
|
|
55
|
+
|
|
56
|
+
/* Preset styles (includes tokens, base, and utilities) */
|
|
57
|
+
@import '@enonic/ui/preset.css';
|
|
51
58
|
```
|
|
52
59
|
|
|
53
|
-
|
|
60
|
+
#### CSS Only
|
|
54
61
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
If you only need the pre-built CSS styles:
|
|
63
|
+
|
|
64
|
+
```css
|
|
65
|
+
@import '@enonic/ui/style.css';
|
|
66
|
+
```
|
|
58
67
|
|
|
59
68
|
## Peer Dependencies
|
|
60
69
|
|
|
@@ -83,15 +92,6 @@ This library requires one of the following frameworks:
|
|
|
83
92
|
- `lucide-react` (>=0.300.0) - For React projects
|
|
84
93
|
- `lucide-preact` (>=0.300.0) - For Preact projects
|
|
85
94
|
|
|
86
|
-
## Features
|
|
87
|
-
|
|
88
|
-
- 🎨 Built with Tailwind CSS for easy customization
|
|
89
|
-
- 📦 Tree-shakeable ES modules
|
|
90
|
-
- 🔧 TypeScript support out of the box
|
|
91
|
-
- ⚡ Optimized bundle size
|
|
92
|
-
- 🎯 Framework agnostic (React/Preact)
|
|
93
|
-
- ♿ Accessibility-first components
|
|
94
|
-
|
|
95
95
|
## Development
|
|
96
96
|
|
|
97
97
|
```bash
|
package/dist/enonic-ui.cjs
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("preact"),r=require("react");function t(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}return r.default=e,Object.freeze(r)}require("preact/compat");const o=t(r);var n=0;function a(r,t,o,a,s,i){t||(t={});var l,c,d=t;if("ref"in d)for(c in d={},t)"ref"==c?l=t[c]:d[c]=t[c];var m={type:r,props:d,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--n,__i:-1,__u:0,__source:s,__self:i};if("function"==typeof r&&(l=r.defaultProps))for(c in l)void 0===d[c]&&(d[c]=l[c]);return e.options.vnode&&e.options.vnode(m),m}function s(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=s(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function i(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=s(e))&&(o&&(o+=" "),o+=r);return o}const l=e=>{const r=u(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),c(t,r)||m(e)},getConflictingClassGroupIds:(e,r)=>{const n=t[e]||[];return r&&o[e]?[...n,...o[e]]:n}}},c=(e,r)=>{if(0===e.length)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),n=o?c(e.slice(1),o):void 0;if(n)return n;if(0===r.validators.length)return;const a=e.join("-");return r.validators.find(({validator:e})=>e(a))?.classGroupId},d=/^\[(.+)\]$/,m=e=>{if(d.test(e)){const r=d.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},u=e=>{const{theme:r,classGroups:t}=e,o={nextPart:new Map,validators:[]};for(const n in t)p(t[n],o,n,r);return o},p=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:f(r,e)).classGroupId=t)}if("function"==typeof e)return b(e)?void p(e(o),r,t,o):void r.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach(([e,n])=>{p(n,f(r,e),t,o)})})},f=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},b=e=>e.isThemeGetter,g=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const n=(n,a)=>{t.set(n,a),r++,r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(n(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):n(e,r)}}},h=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=e=>{const r=[];let t,o=0,n=0,a=0;for(let l=0;l<e.length;l++){let s=e[l];if(0===o&&0===n){if(":"===s){r.push(e.slice(a,l)),a=l+1;continue}if("/"===s){t=l;continue}}"["===s?o++:"]"===s?o--:"("===s?n++:")"===s&&n--}const s=0===r.length?e:e.substring(a),i=v(s);return{modifiers:r,hasImportantModifier:i!==s,baseClassName:i,maybePostfixModifierPosition:t&&t>a?t-a:void 0}};if(r){const e=r+":",t=o;o=r=>r.startsWith(e)?t(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(t){const e=o;o=r=>t({className:r,parseClassName:e})}return o},v=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,x=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const t=[];let o=[];return e.forEach(e=>{"["===e[0]||r[e]?(t.push(...o.sort(),e),o=[]):o.push(e)}),t.push(...o.sort()),t}},y=/\s+/;function k(){let e,r,t=0,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=w(e))&&(o&&(o+=" "),o+=r);return o}const w=e=>{if("string"==typeof e)return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=w(e[o]))&&(t&&(t+=" "),t+=r);return t};function N(e,...r){let t,o,n,a=function(i){const c=r.reduce((e,r)=>r(e),e());return t=(e=>({cache:g(e.cacheSize),parseClassName:h(e),sortModifiers:x(e),...l(e)}))(c),o=t.cache.get,n=t.cache.set,a=s,s(i)};function s(e){const r=o(e);if(r)return r;const a=((e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=r,s=[],i=e.trim().split(y);let l="";for(let c=i.length-1;c>=0;c-=1){const e=i[c],{isExternal:r,modifiers:d,hasImportantModifier:m,baseClassName:u,maybePostfixModifierPosition:p}=t(e);if(r){l=e+(l.length>0?" "+l:l);continue}let f=!!p,b=o(f?u.substring(0,p):u);if(!b){if(!f){l=e+(l.length>0?" "+l:l);continue}if(b=o(u),!b){l=e+(l.length>0?" "+l:l);continue}f=!1}const g=a(d).join(":"),h=m?g+"!":g,v=h+b;if(s.includes(v))continue;s.push(v);const x=n(b,f);for(let t=0;t<x.length;++t){const e=x[t];s.push(h+e)}l=e+(l.length>0?" "+l:l)}return l})(e,t);return n(e,a),a}return function(){return a(k.apply(null,arguments))}}const z=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},C=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,M=/^\d+\/\d+$/,I=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>M.test(e),P=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),W=e=>e.endsWith("%")&&P(e.slice(0,-1)),$=e=>I.test(e),G=()=>!0,L=e=>O.test(e)&&!_.test(e),V=()=>!1,B=e=>R.test(e),q=e=>S.test(e),T=e=>!X(e)&&!J(e),F=e=>ne(e,le,V),X=e=>C.test(e),Y=e=>ne(e,ce,L),D=e=>ne(e,de,P),Z=e=>ne(e,se,V),H=e=>ne(e,ie,q),U=e=>ne(e,ue,B),J=e=>j.test(e),K=e=>ae(e,ce),Q=e=>ae(e,me),ee=e=>ae(e,se),re=e=>ae(e,le),te=e=>ae(e,ie),oe=e=>ae(e,ue,!0),ne=(e,r,t)=>{const o=C.exec(e);return!!o&&(o[1]?r(o[1]):t(o[2]))},ae=(e,r,t=!1)=>{const o=j.exec(e);return!!o&&(o[1]?r(o[1]):t)},se=e=>"position"===e||"percentage"===e,ie=e=>"image"===e||"url"===e,le=e=>"length"===e||"size"===e||"bg-size"===e,ce=e=>"length"===e,de=e=>"number"===e,me=e=>"family-name"===e,ue=e=>"shadow"===e,pe=N(()=>{const e=z("color"),r=z("font"),t=z("text"),o=z("font-weight"),n=z("tracking"),a=z("leading"),s=z("breakpoint"),i=z("container"),l=z("spacing"),c=z("radius"),d=z("shadow"),m=z("inset-shadow"),u=z("text-shadow"),p=z("drop-shadow"),f=z("blur"),b=z("perspective"),g=z("aspect"),h=z("ease"),v=z("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",J,X],y=()=>[J,X,l],k=()=>[E,"full","auto",...y()],w=()=>[A,"none","subgrid",J,X],N=()=>["auto",{span:["full",A,J,X]},A,J,X],C=()=>[A,"auto",J,X],j=()=>["auto","min","max","fr",J,X],M=()=>["auto",...y()],I=()=>[E,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],O=()=>[e,J,X],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ee,Z,{position:[J,X]}],R=()=>["auto","cover","contain",re,F,{size:[J,X]}],S=()=>[W,K,Y],L=()=>["","none","full",c,J,X],V=()=>["",P,K,Y],B=()=>[P,W,ee,Z],q=()=>["","none",f,J,X],ne=()=>["none",P,J,X],ae=()=>["none",P,J,X],se=()=>[P,J,X],ie=()=>[E,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$],breakpoint:[$],color:[G],container:[$],"drop-shadow":[$],ease:["in","out","in-out"],font:[T],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$],shadow:[$],spacing:["px",P],text:[$],"text-shadow":[$],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",E,X,J,g]}],container:["container"],columns:[{columns:[P,X,J,i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",J,X]}],basis:[{basis:[E,"full","auto",i,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[P,E,"auto","initial","none",X]}],grow:[{grow:["",P,J,X]}],shrink:[{shrink:["",P,J,X]}],order:[{order:[A,"first","last","none",J,X]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[i,"screen",...I()]}],"min-w":[{"min-w":[i,"screen","none",...I()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",t,K,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,J,D]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",W,X]}],"font-family":[{font:[Q,X,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,J,X]}],"line-clamp":[{"line-clamp":[P,"none",J,D]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":["none",J,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[P,"from-font","auto",J,Y]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[P,"auto",J,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,J,X],radial:["",J,X],conic:[A,J,X]},te,H]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[P,J,X]}],"outline-w":[{outline:["",P,K,Y]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,oe,U]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",m,oe,U]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[P,Y]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",u,oe,U]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[P,J,X]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[P]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[J,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[P]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,X]}],filter:[{filter:["","none",J,X]}],blur:[{blur:q()}],brightness:[{brightness:[P,J,X]}],contrast:[{contrast:[P,J,X]}],"drop-shadow":[{"drop-shadow":["","none",p,oe,U]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",P,J,X]}],"hue-rotate":[{"hue-rotate":[P,J,X]}],invert:[{invert:["",P,J,X]}],saturate:[{saturate:[P,J,X]}],sepia:[{sepia:["",P,J,X]}],"backdrop-filter":[{"backdrop-filter":["","none",J,X]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[P,J,X]}],"backdrop-contrast":[{"backdrop-contrast":[P,J,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",P,J,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P,J,X]}],"backdrop-invert":[{"backdrop-invert":["",P,J,X]}],"backdrop-opacity":[{"backdrop-opacity":[P,J,X]}],"backdrop-saturate":[{"backdrop-saturate":[P,J,X]}],"backdrop-sepia":[{"backdrop-sepia":["",P,J,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[P,"initial",J,X]}],ease:[{ease:["linear","initial",h,J,X]}],delay:[{delay:[P,J,X]}],animate:[{animate:["none",v,J,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,J,X]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[J,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,X]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,X]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[P,K,Y,D]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function fe(...e){return pe(i(e))}function be(e){return function(e){return!!(e&&"object"==typeof e&&"value"in e&&"peek"in e&&"function"==typeof e.peek&&"subscribe"in e&&"function"==typeof e.subscribe)}(e)?e.value:e}const ge=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,he=i,ve=(e,r)=>t=>{var o;if(null==(null==r?void 0:r.variants))return he(e,null==t?void 0:t.class,null==t?void 0:t.className);const{variants:n,defaultVariants:a}=r,s=Object.keys(n).map(e=>{const r=null==t?void 0:t[e],o=null==a?void 0:a[e];if(null===r)return null;const s=ge(r)||ge(o);return n[e][s]}),i=t&&Object.entries(t).reduce((e,r)=>{let[t,o]=r;return void 0===o||(e[t]=o),e},{}),l=null==r||null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:o,...n}=r;return Object.entries(n).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...a,...i}[r]):{...a,...i}[r]===t})?[...e,t,o]:e},[]);return he(e,s,l,null==t?void 0:t.class,null==t?void 0:t.className)},xe=ve(["inline-flex items-center justify-center","text-main dark:text-main font-medium","box-border rounded-sm transition-highlight duration-100","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-0","disabled:pointer-events-none disabled:opacity-30","cursor-pointer"],{variants:{variant:{text:"bg-btn-primary hover:bg-btn-primary-hover active:bg-btn-active active:text-rev dark:active:text-main",filled:"bg-btn-secondary hover:bg-btn-secondary-hover active:bg-btn-active active:text-rev dark:active:text-main",solid:"bg-btn-tertiary text-rev dark:text-main hover:bg-btn-tertiary-hover active:bg-btn-active dark:active:text-main",outline:"bg-btn-primary hover:bg-btn-primary-hover active:bg-btn-active active:text-rev dark:active:text-main border border-bdr-strong"},size:{sm:"h-9 px-3.5 gap-2 text-sm",md:"h-10 px-3.5 gap-2.5 text-base",lg:"h-11.5 px-4 gap-3 text-lg"}},defaultVariants:{variant:"text",size:"md"}}),ye=r.forwardRef(({className:e,variant:r="text",size:t="md",startIcon:o,label:n,endIcon:s,title:i,children:l,...c},d)=>{const m=o,u=s,p=(e=>{switch(e){case"sm":return 16;case"md":return 18;case"lg":return 20}})(t??"md");return a("button",{ref:d,type:"button",className:fe(xe({variant:r,size:t}),e),title:i,"aria-label":i??n,"aria-disabled":c.disabled,...c,children:[m&&a(m,{size:p}),l,n,u&&a(u,{size:p})]})});ye.displayName="Button";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("preact"),r=require("react");function t(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}return r.default=e,Object.freeze(r)}require("preact/compat");const o=t(r);var n=0;function a(r,t,o,a,s,i){t||(t={});var l,c,d=t;if("ref"in d)for(c in d={},t)"ref"==c?l=t[c]:d[c]=t[c];var m={type:r,props:d,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--n,__i:-1,__u:0,__source:s,__self:i};if("function"==typeof r&&(l=r.defaultProps))for(c in l)void 0===d[c]&&(d[c]=l[c]);return e.options.vnode&&e.options.vnode(m),m}function s(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=s(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function i(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=s(e))&&(o&&(o+=" "),o+=r);return o}const l=e=>{const r=u(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),c(t,r)||m(e)},getConflictingClassGroupIds:(e,r)=>{const n=t[e]||[];return r&&o[e]?[...n,...o[e]]:n}}},c=(e,r)=>{if(0===e.length)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),n=o?c(e.slice(1),o):void 0;if(n)return n;if(0===r.validators.length)return;const a=e.join("-");return r.validators.find(({validator:e})=>e(a))?.classGroupId},d=/^\[(.+)\]$/,m=e=>{if(d.test(e)){const r=d.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},u=e=>{const{theme:r,classGroups:t}=e,o={nextPart:new Map,validators:[]};for(const n in t)p(t[n],o,n,r);return o},p=(e,r,t,o)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:f(r,e)).classGroupId=t)}if("function"==typeof e)return b(e)?void p(e(o),r,t,o):void r.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach(([e,n])=>{p(n,f(r,e),t,o)})})},f=(e,r)=>{let t=e;return r.split("-").forEach(e=>{t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t},b=e=>e.isThemeGetter,g=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const n=(n,a)=>{t.set(n,a),r++,r>e&&(r=0,o=t,t=new Map)};return{get(e){let r=t.get(e);return void 0!==r?r:void 0!==(r=o.get(e))?(n(e,r),r):void 0},set(e,r){t.has(e)?t.set(e,r):n(e,r)}}},h=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=e=>{const r=[];let t,o=0,n=0,a=0;for(let l=0;l<e.length;l++){let s=e[l];if(0===o&&0===n){if(":"===s){r.push(e.slice(a,l)),a=l+1;continue}if("/"===s){t=l;continue}}"["===s?o++:"]"===s?o--:"("===s?n++:")"===s&&n--}const s=0===r.length?e:e.substring(a),i=x(s);return{modifiers:r,hasImportantModifier:i!==s,baseClassName:i,maybePostfixModifierPosition:t&&t>a?t-a:void 0}};if(r){const e=r+":",t=o;o=r=>r.startsWith(e)?t(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(t){const e=o;o=r=>t({className:r,parseClassName:e})}return o},x=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,v=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const t=[];let o=[];return e.forEach(e=>{"["===e[0]||r[e]?(t.push(...o.sort(),e),o=[]):o.push(e)}),t.push(...o.sort()),t}},y=/\s+/;function k(){let e,r,t=0,o="";for(;t<arguments.length;)(e=arguments[t++])&&(r=w(e))&&(o&&(o+=" "),o+=r);return o}const w=e=>{if("string"==typeof e)return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=w(e[o]))&&(t&&(t+=" "),t+=r);return t};function N(e,...r){let t,o,n,a=function(i){const c=r.reduce((e,r)=>r(e),e());return t=(e=>({cache:g(e.cacheSize),parseClassName:h(e),sortModifiers:v(e),...l(e)}))(c),o=t.cache.get,n=t.cache.set,a=s,s(i)};function s(e){const r=o(e);if(r)return r;const a=((e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=r,s=[],i=e.trim().split(y);let l="";for(let c=i.length-1;c>=0;c-=1){const e=i[c],{isExternal:r,modifiers:d,hasImportantModifier:m,baseClassName:u,maybePostfixModifierPosition:p}=t(e);if(r){l=e+(l.length>0?" "+l:l);continue}let f=!!p,b=o(f?u.substring(0,p):u);if(!b){if(!f){l=e+(l.length>0?" "+l:l);continue}if(b=o(u),!b){l=e+(l.length>0?" "+l:l);continue}f=!1}const g=a(d).join(":"),h=m?g+"!":g,x=h+b;if(s.includes(x))continue;s.push(x);const v=n(b,f);for(let t=0;t<v.length;++t){const e=v[t];s.push(h+e)}l=e+(l.length>0?" "+l:l)}return l})(e,t);return n(e,a),a}return function(){return a(k.apply(null,arguments))}}const z=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},C=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,I=/^\d+\/\d+$/,M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=e=>I.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),A=e=>e.endsWith("%")&&E(e.slice(0,-1)),W=e=>M.test(e),G=()=>!0,L=e=>O.test(e)&&!_.test(e),V=()=>!1,B=e=>P.test(e),q=e=>R.test(e),T=e=>!X(e)&&!J(e),F=e=>ne(e,le,V),X=e=>C.test(e),Y=e=>ne(e,ce,L),D=e=>ne(e,de,E),Z=e=>ne(e,se,V),H=e=>ne(e,ie,q),U=e=>ne(e,ue,B),J=e=>j.test(e),K=e=>ae(e,ce),Q=e=>ae(e,me),ee=e=>ae(e,se),re=e=>ae(e,le),te=e=>ae(e,ie),oe=e=>ae(e,ue,!0),ne=(e,r,t)=>{const o=C.exec(e);return!!o&&(o[1]?r(o[1]):t(o[2]))},ae=(e,r,t=!1)=>{const o=j.exec(e);return!!o&&(o[1]?r(o[1]):t)},se=e=>"position"===e||"percentage"===e,ie=e=>"image"===e||"url"===e,le=e=>"length"===e||"size"===e||"bg-size"===e,ce=e=>"length"===e,de=e=>"number"===e,me=e=>"family-name"===e,ue=e=>"shadow"===e,pe=N(()=>{const e=z("color"),r=z("font"),t=z("text"),o=z("font-weight"),n=z("tracking"),a=z("leading"),s=z("breakpoint"),i=z("container"),l=z("spacing"),c=z("radius"),d=z("shadow"),m=z("inset-shadow"),u=z("text-shadow"),p=z("drop-shadow"),f=z("blur"),b=z("perspective"),g=z("aspect"),h=z("ease"),x=z("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",J,X],y=()=>[J,X,l],k=()=>[S,"full","auto",...y()],w=()=>[$,"none","subgrid",J,X],N=()=>["auto",{span:["full",$,J,X]},$,J,X],C=()=>[$,"auto",J,X],j=()=>["auto","min","max","fr",J,X],I=()=>["auto",...y()],M=()=>[S,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],O=()=>[e,J,X],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ee,Z,{position:[J,X]}],P=()=>["auto","cover","contain",re,F,{size:[J,X]}],R=()=>[A,K,Y],L=()=>["","none","full",c,J,X],V=()=>["",E,K,Y],B=()=>[E,A,ee,Z],q=()=>["","none",f,J,X],ne=()=>["none",E,J,X],ae=()=>["none",E,J,X],se=()=>[E,J,X],ie=()=>[S,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[W],breakpoint:[W],color:[G],container:[W],"drop-shadow":[W],ease:["in","out","in-out"],font:[T],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[W],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[W],shadow:[W],spacing:["px",E],text:[W],"text-shadow":[W],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",S,X,J,g]}],container:["container"],columns:[{columns:[E,X,J,i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[$,"auto",J,X]}],basis:[{basis:[S,"full","auto",i,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,S,"auto","initial","none",X]}],grow:[{grow:["",E,J,X]}],shrink:[{shrink:["",E,J,X]}],order:[{order:[$,"first","last","none",J,X]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[i,"screen",...M()]}],"min-w":[{"min-w":[i,"screen","none",...M()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",t,K,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,J,D]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",A,X]}],"font-family":[{font:[Q,X,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,J,X]}],"line-clamp":[{"line-clamp":[E,"none",J,D]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":["none",J,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",J,Y]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[E,"auto",J,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,J,X],radial:["",J,X],conic:[$,J,X]},te,H]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[E,J,X]}],"outline-w":[{outline:["",E,K,Y]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,oe,U]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",m,oe,U]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[E,Y]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",u,oe,U]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[E,J,X]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[J,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,X]}],filter:[{filter:["","none",J,X]}],blur:[{blur:q()}],brightness:[{brightness:[E,J,X]}],contrast:[{contrast:[E,J,X]}],"drop-shadow":[{"drop-shadow":["","none",p,oe,U]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",E,J,X]}],"hue-rotate":[{"hue-rotate":[E,J,X]}],invert:[{invert:["",E,J,X]}],saturate:[{saturate:[E,J,X]}],sepia:[{sepia:["",E,J,X]}],"backdrop-filter":[{"backdrop-filter":["","none",J,X]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[E,J,X]}],"backdrop-contrast":[{"backdrop-contrast":[E,J,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,J,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,J,X]}],"backdrop-invert":[{"backdrop-invert":["",E,J,X]}],"backdrop-opacity":[{"backdrop-opacity":[E,J,X]}],"backdrop-saturate":[{"backdrop-saturate":[E,J,X]}],"backdrop-sepia":[{"backdrop-sepia":["",E,J,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",J,X]}],ease:[{ease:["linear","initial",h,J,X]}],delay:[{delay:[E,J,X]}],animate:[{animate:["none",x,J,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,J,X]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[J,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,X]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,X]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[E,K,Y,D]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function fe(...e){return pe(i(e))}function be(e){return function(e){return!!(e&&"object"==typeof e&&"value"in e&&"peek"in e&&"function"==typeof e.peek&&"subscribe"in e&&"function"==typeof e.subscribe)}(e)?e.value:e}const ge=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,he=i,xe=(e,r)=>t=>{var o;if(null==(null==r?void 0:r.variants))return he(e,null==t?void 0:t.class,null==t?void 0:t.className);const{variants:n,defaultVariants:a}=r,s=Object.keys(n).map(e=>{const r=null==t?void 0:t[e],o=null==a?void 0:a[e];if(null===r)return null;const s=ge(r)||ge(o);return n[e][s]}),i=t&&Object.entries(t).reduce((e,r)=>{let[t,o]=r;return void 0===o||(e[t]=o),e},{}),l=null==r||null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:o,...n}=r;return Object.entries(n).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...a,...i}[r]):{...a,...i}[r]===t})?[...e,t,o]:e},[]);return he(e,s,l,null==t?void 0:t.class,null==t?void 0:t.className)},ve=xe(["inline-flex items-center justify-center","text-main dark:text-main font-medium","box-border rounded-sm transition-highlight","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-0","disabled:pointer-events-none disabled:opacity-30","cursor-pointer"],{variants:{variant:{text:"bg-btn-primary hover:bg-btn-primary-hover active:bg-btn-active active:text-rev dark:active:text-main",filled:"bg-btn-secondary hover:bg-btn-secondary-hover active:bg-btn-active active:text-rev dark:active:text-main",solid:"bg-btn-tertiary text-rev dark:text-main hover:bg-btn-tertiary-hover active:bg-btn-active dark:active:text-main",outline:"bg-btn-primary hover:bg-btn-primary-hover active:bg-btn-active active:text-rev dark:active:text-main border border-bdr-strong"},size:{sm:"h-9 px-3.5 gap-2 text-sm",md:"h-10 px-3.5 gap-2.5 text-base",lg:"h-11.5 px-4 gap-3 text-lg"}},defaultVariants:{variant:"text",size:"md"}}),ye=r.forwardRef(({className:e,variant:r="text",size:t="md",startIcon:o,label:n,endIcon:s,title:i,children:l,...c},d)=>{const m=o,u=s,p=(e=>{switch(e){case"sm":return 16;case"md":return 18;case"lg":return 20}})(t??"md");return a("button",{ref:d,type:"button",className:fe(ve({variant:r,size:t}),e),title:i,"aria-label":i??n,"aria-disabled":c.disabled,...c,children:[m&&a(m,{size:p}),l,n,u&&a(u,{size:p})]})});ye.displayName="Button";const ke=r.createContext(void 0),we=({children:e,prefix:r})=>a(ke.Provider,{value:{prefix:r},children:e});we.displayName="IdProvider";const Ne=e=>{const t=r.useId(),o=r.useContext(ke);if(e)return e;return o?.prefix?`${o.prefix}-${t}`:t},ze=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},Ce=(...e)=>e.filter((e,r,t)=>Boolean(e)&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim(),je=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
2
2
|
/**
|
|
3
|
-
* @license lucide-react v0.
|
|
3
|
+
* @license lucide-react v0.544.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
const ke=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},we=(...e)=>e.filter((e,r,t)=>Boolean(e)&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim(),Ne=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
9
8
|
/**
|
|
10
|
-
* @license lucide-react v0.
|
|
9
|
+
* @license lucide-react v0.544.0 - ISC
|
|
11
10
|
*
|
|
12
11
|
* This source code is licensed under the ISC license.
|
|
13
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
13
|
*/
|
|
15
|
-
var
|
|
14
|
+
var Ie={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
16
15
|
/**
|
|
17
|
-
* @license lucide-react v0.
|
|
16
|
+
* @license lucide-react v0.544.0 - ISC
|
|
18
17
|
*
|
|
19
18
|
* This source code is licensed under the ISC license.
|
|
20
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
20
|
+
*/const Me=r.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:a="",children:s,iconNode:i,...l},c)=>r.createElement("svg",{ref:c,...Ie,width:t,height:t,stroke:e,strokeWidth:n?24*Number(o)/Number(t):o,className:Ce("lucide",a),...!s&&!je(l)&&{"aria-hidden":"true"},...l},[...i.map(([e,t])=>r.createElement(e,t)),...Array.isArray(s)?s:[s]])),Oe=(e,t)=>{const o=r.forwardRef(({className:o,...n},a)=>{return r.createElement(Me,{ref:a,iconNode:t,className:Ce(`lucide-${s=ze(e),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...n});var s});return o.displayName=ze(e),o},_e=Oe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Pe=Oe("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]),Re=Oe("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Se=Oe("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]),Ee=xe(["inline-block","flex-shrink-0 flex items-center justify-center","h-3.5 w-3.5","border-[1.5px] rounded-xs","bg-transparent","transition-highlight"],{variants:{editable:{true:["peer-focus-visible:outline-none peer-focus-visible:ring-3 peer-focus-visible:ring-ring/75 peer-focus-visible:ring-offset-0","peer-hover:outline-none peer-hover:ring-3 peer-hover:ring-ring/50 peer-hover:ring-offset-0"],false:"opacity-30"},state:{default:["border-main","peer-checked:bg-main peer-checked:border-main","peer-indeterminate:bg-main peer-indeterminate:border-main","group-[.bg-surface-primary-selected]:border-alt","group-[.bg-surface-primary-selected]:peer-checked:bg-alt","group-[.bg-surface-primary-selected]:peer-checked:border-alt","group-[.bg-surface-primary-selected]:peer-indeterminate:bg-alt","group-[.bg-surface-primary-selected]:peer-indeterminate:border-alt"],error:["border-error","peer-checked:bg-error peer-checked:border-error","peer-indeterminate:bg-error peer-indeterminate:border-error","peer-focus-visible:border-error peer-focus-visible:ring-error/50","peer-hover:border-error peer-hover:ring-error/50"]}},defaultVariants:{state:"default",editable:!0}}),$e=r.forwardRef(({id:e,className:t,name:o,label:n,defaultChecked:s,checked:i,align:l="left",error:c,disabled:d,readOnly:m,required:u,value:p="on",onCheckedChange:f,errorMessage:b,...g},h)=>{const x=Ne(be(e)),v=c?"error":"default",y=!d&&!m,[k,w]=r.useState(s??!1),N=void 0!==i,z=N?i:k,C="indeterminate"===z,j=!0===z;return a("div",{children:[a("label",{htmlFor:x,className:fe("relative flex items-center select-none gap-2","right"===l&&"flex-row-reverse justify-end",y?"cursor-pointer":"cursor-default",t),children:[a("input",{ref:e=>{"function"==typeof h?h(e):h&&(h.current=e),e&&(e.indeterminate=C)},...g,id:x,type:"checkbox",className:"peer sr-only",checked:j,disabled:m??d,required:u,name:o,value:p,"aria-checked":C?"mixed":j,"aria-disabled":d,"aria-invalid":c,"aria-readonly":m,"data-state":C?"indeterminate":j?"checked":"unchecked","data-disabled":d?"":void 0,onChange:e=>{if(!y)return;let r;r=!C&&e.currentTarget.checked,N||w(r),f?.(r)}}),a("span",{className:fe(Ee({state:v,editable:y})),"aria-hidden":"true",children:C?a(Re,{size:10,className:fe("text-rev",!c&&"group-[.bg-surface-primary-selected]:text-alt-rev"),strokeWidth:4}):j?a(_e,{size:10,className:fe("text-rev",!c&&"group-[.bg-surface-primary-selected]:text-alt-rev"),strokeWidth:4}):null}),n&&a("span",{className:fe("text-main group-[.bg-surface-primary-selected]:text-alt",d&&"opacity-30"),children:n})]}),"error"===v&&b&&a("div",{className:fe("flex items-center gap-2 text-error mt-1",d&&"opacity-30"),children:[a(Se,{size:14,strokeWidth:2.5}),b]})]})});
|
|
22
21
|
/**
|
|
23
|
-
* @license lucide-react v0.
|
|
22
|
+
* @license lucide-react v0.544.0 - ISC
|
|
24
23
|
*
|
|
25
24
|
* This source code is licensed under the ISC license.
|
|
26
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
|
|
26
|
+
*/$e.displayName="Checkbox";const Ae=xe(["p-0"],{variants:{size:{sm:"h-9 w-9",md:"h-10 w-10",lg:"h-11.5 w-11.5"},shape:{square:"rounded-sm",round:"rounded-full"}},defaultVariants:{size:"md",shape:"square"}}),We=r.forwardRef(({className:e,variant:r="text",size:t="md",shape:o="square",icon:n,...s},i)=>a(ye,{ref:i,className:fe(Ae({size:t,shape:o}),e),variant:r,size:t,startIcon:n,label:"",...s}));We.displayName="IconButton";const Ge=xe(["relative flex rounded-sm overflow-hidden","h-10 border focus-within:border-bdr-solid","focus-within:outline-none focus-within:ring-3 focus-within:ring-ring/50 focus-within:ring-offset-0","transition-highlight"],{variants:{state:{default:"border-bdr-subtle focus-within:border-bdr-strong",error:"border-error focus-within:border-error focus-within:ring-error/50"},disabled:{true:"pointer-events-none",false:""}},defaultVariants:{state:"default",disabled:!1}}),Le=xe(["w-full px-3 text-base h-10","text-main bg-surface-neutral","placeholder:text-subtle","focus:outline-none","disabled:pointer-events-none","read-only:bg-surface-primary","border-0"]),Ve=xe(["block text-base font-semibold text-main"],{variants:{disabled:{true:"opacity-30",false:""}},defaultVariants:{disabled:!1}}),Be=xe(["text-sm text-subtle"],{variants:{disabled:{true:"opacity-30",false:""}},defaultVariants:{disabled:!1}}),qe=xe(["flex items-center gap-1 text-error mt-1"]),Te=xe(["flex items-center justify-center shrink-0","min-h-10 min-w-10","px-4 text-sm text-subtle bg-surface-primary","first:rounded-l-sm last:rounded-r-sm","first:border-r first:border-bdr-soft","last:border-l last:border-bdr-soft"]),Fe=e=>a("div",{className:fe(Te()),children:e}),Xe=r.forwardRef(({className:e,label:r,description:t,error:o,startAddon:n,endAddon:s,id:i,...l},c)=>{const d=Ne(be(i)),m=be(l.disabled)??!1,u=be(l.readOnly)??!1,p=o?"error":"default";return a("div",{className:fe("w-full",m&&"opacity-30",e),children:[a("div",{className:"mb-2",children:[r&&a("label",{htmlFor:d,className:fe(Ve({disabled:m})),children:a("div",{className:"flex items-center gap-1",children:[u&&a(Pe,{size:16}),r]})}),t&&a("div",{className:fe(Be({disabled:m})),children:t})]}),a("div",{className:fe(Ge({state:p,disabled:m})),children:[n&&Fe(n),a("input",{ref:c,id:d,...l,className:fe(Le(),n&&"rounded-l-none",s&&"rounded-r-none","flex-1")}),s&&Fe(s)]}),o&&a("div",{className:fe(qe()),children:[a(Se,{size:16}),o]})]})});function Ye(e,t){return r.Children.toArray(e).find(e=>function(e,t){return r.isValidElement(e)&&e.type===t}(e,t))}Xe.displayName="Input";const De=({children:e,className:r,...t})=>a("div",{className:fe("flex items-center gap-2.5 flex-shrink-0",r),...t,children:e}),Ze=({className:e,label:r,description:t,metadata:o,icon:n,...s})=>a("div",{className:fe("flex-1 min-w-0",n&&"grid grid-cols-[auto_1fr] gap-2 items-center",e),...s,children:[n&&a("div",{className:"w-6 h-6 flex items-center justify-center flex-shrink-0",children:n}),a("div",{className:"min-w-0",children:[r&&a("h1",{className:"truncate font-semibold",children:r}),t&&a("p",{className:"truncate text-sm group-[.bg-surface-primary-selected]:text-alt text-subtle",children:t}),o&&a("p",{className:"text-xs group-[.bg-surface-primary-selected]:text-alt text-subtle",children:o})]})]});Ze.displayName="ListItem.Content";const He=({children:e,className:r,...t})=>a("div",{className:fe("flex items-center gap-5 flex-shrink-0",r),...t,children:e});He.displayName="ListItem.Right";const Ue=({children:e,className:r,selected:t,...o})=>{const n=Ye(e,De),s=Ye(e,Ze),i=Ye(e,He);return a("div",{className:fe("group flex items-center px-2.5 py-1 gap-2.5",t?"bg-surface-primary-selected text-alt":"hover:bg-surface-primary-hover",r),...o,children:[n,s,i]})};Ue.displayName="ListItem";const Je=Object.assign(Ue,{Left:De,Content:Ze,Right:He}),Ke=({className:e,selected:r,children:t,label:o,description:n,metadata:s,icon:i,readOnly:l,checked:c,defaultChecked:d,onCheckedChange:m,...u})=>a(Je,{className:e,selected:r,...u,children:[a(Je.Left,{children:a($e,{checked:c,defaultChecked:d,onCheckedChange:m,readOnly:l})}),a(Je.Content,{label:o,description:n,metadata:s,icon:i}),a(Je.Right,{children:t})]});function Qe(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}function er(e){const r=tr(e),t=o.forwardRef((e,t)=>{const{children:n,...s}=e,i=o.Children.toArray(n),l=i.find(nr);if(l){const e=l.props.children,n=i.map(r=>r===l?o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null:r);return a(r,{...s,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return a(r,{...s,ref:t,children:n})});return t.displayName=`${e}.Slot`,t}Ke.displayName="SelectableListItem";var rr=er("Slot");function tr(e){const r=o.forwardRef((e,r)=>{const{children:t,...n}=e;if(o.isValidElement(t)){const e=function(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;if(t)return e.ref;if(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(t),a=function(e,r){const t={...r};for(const o in r){const n=e[o],a=r[o];/^on[A-Z]/.test(o)?n&&a?t[o]=(...e)=>{const r=a(...e);return n(...e),r}:n&&(t[o]=n):"style"===o?t[o]={...n,...a}:"className"===o&&(t[o]=[n,a].filter(Boolean).join(" "))}return{...e,...t}}(n,t.props);return t.type!==o.Fragment&&(a.ref=r?function(...e){return r=>{let t=!1;const o=e.map(e=>{const o=Qe(e,r);return t||"function"!=typeof o||(t=!0),o});if(t)return()=>{for(let r=0;r<o.length;r++){const t=o[r];"function"==typeof t?t():Qe(e[r],null)}}}}(r,e):e),o.cloneElement(t,a)}return o.Children.count(t)>1?o.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var or=Symbol("radix.slottable");function nr(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===or}const ar={top:"bottom",bottom:"top",left:"right",right:"left"};function sr({children:e,asChild:r,triggerRef:t,isOpen:o,onMouseEnter:n,onMouseLeave:s,onFocus:i,onBlur:l}){return a(r?rr:"div",{ref:t,className:r?void 0:"inline-flex",onMouseEnter:n,onMouseLeave:s,onFocus:i,onBlur:l,"aria-describedby":o?"tooltip":void 0,role:r?void 0:"button",tabIndex:r?void 0:0,children:e})}function ir({children:e,actualSide:r,className:t,position:o,tooltipRef:n}){return a("div",{ref:n,role:"tooltip",className:fe("fixed z-50 pointer-events-none",!o.transformOrigin&&"opacity-0"),style:{top:`${o.top}px`,left:`${o.left}px`,transformOrigin:o.transformOrigin},children:a("div",{className:fe("relative w-fit rounded-xs px-2 py-1 text-xs","bg-tooltip text-tooltip-foreground shadow-md","animate-in fade-in-0 zoom-in-95","top"===r&&"slide-in-from-top-2","bottom"===r&&"slide-in-from-bottom-2","left"===r&&"slide-in-from-left-2","right"===r&&"slide-in-from-right-2",t),children:[e,a("div",{className:fe("absolute size-2 rotate-45","top"===r&&"bottom-0 left-1/2 -translate-x-1/2 translate-y-1/2","bottom"===r&&"top-0 left-1/2 -translate-x-1/2 -translate-y-1/2","left"===r&&"right-0 top-1/2 -translate-y-1/2 translate-x-1/2","right"===r&&"left-0 top-1/2 -translate-y-1/2 -translate-x-1/2"),style:{backgroundColor:"inherit"}})]})})}exports.Button=ye,exports.Checkbox=$e,exports.IconButton=We,exports.IdProvider=we,exports.Input=Xe,exports.ListItem=Je,exports.SelectableListItem=Ke,exports.Tooltip=function({className:t,children:o,value:n,side:s="bottom",asChild:i=!0,delay:l=0}){const[c,d]=r.useState(!1),m=r.useRef(null),u=r.useRef(null),p=r.useRef(),f=null!=n&&""!==n,b=function(e,t,o,n){const[a,s]=r.useState({top:0,left:0,transformOrigin:"",actualSide:t});return r.useEffect(()=>{if(!e||!o.current||!n.current)return;const r=o.current.getBoundingClientRect(),a=n.current.getBoundingClientRect(),i=e=>{let t=0,o=0,n="";switch(e){case"top":t=r.top+window.scrollY-a.height-8,o=r.left+window.scrollX+(r.width-a.width)/2,n="bottom center";break;case"bottom":t=r.bottom+window.scrollY+8,o=r.left+window.scrollX+(r.width-a.width)/2,n="top center";break;case"left":t=r.top+window.scrollY+(r.height-a.height)/2,o=r.left+window.scrollX-a.width-8,n="center right";break;case"right":t=r.top+window.scrollY+(r.height-a.height)/2,o=r.right+window.scrollX+8,n="center left"}return{top:t,left:o,transformOrigin:n,actualSide:e}},l=({top:e,left:r})=>{const t=window.scrollY+8,o=window.scrollY+window.innerHeight-a.height-8,n=window.scrollX+8,s=window.scrollX+window.innerWidth-a.width-8;return e>=t&&e<=o&&r>=n&&r<=s};let c=i(t);if(!l(c)){const e=i(ar[t]);l(e)&&(c=e)}s(c)},[e,t]),a}(c&&f,s,m,u);r.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const g=r.useCallback(()=>{f&&(p.current&&clearTimeout(p.current),l>0?p.current=window.setTimeout(()=>d(!0),l):d(!0))},[l,f]),h=r.useCallback(()=>{p.current&&clearTimeout(p.current),d(!1)},[]),x=r.useCallback(()=>{f&&d(!0)},[f]),v=r.useCallback(()=>d(!1),[]);return a(e.Fragment,{children:[a(sr,{asChild:i,triggerRef:m,isOpen:c,onMouseEnter:g,onMouseLeave:h,onFocus:x,onBlur:v,children:o}),c&&f&&r.createPortal(a(ir,{actualSide:b.actualSide,className:t,position:b,tooltipRef:u,children:n}),document.body)]})},exports.cn=fe,exports.unwrap=be,exports.usePrefixedId=Ne;
|
package/dist/enonic-ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { options, Fragment } from "preact";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { forwardRef,
|
|
3
|
+
import { forwardRef, createContext, useId, useContext, createElement, useState, isValidElement, Children, useRef, useEffect, useCallback, createPortal } from "react";
|
|
4
4
|
import "preact/compat";
|
|
5
5
|
var f = 0;
|
|
6
6
|
function u(e, t, n, o, i, u2) {
|
|
@@ -3028,7 +3028,7 @@ const buttonVariants = cva(
|
|
|
3028
3028
|
[
|
|
3029
3029
|
"inline-flex items-center justify-center",
|
|
3030
3030
|
"text-main dark:text-main font-medium",
|
|
3031
|
-
"box-border rounded-sm transition-highlight
|
|
3031
|
+
"box-border rounded-sm transition-highlight",
|
|
3032
3032
|
"focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-0",
|
|
3033
3033
|
"disabled:pointer-events-none disabled:opacity-30",
|
|
3034
3034
|
"cursor-pointer"
|
|
@@ -3089,8 +3089,22 @@ const Button = forwardRef(
|
|
|
3089
3089
|
}
|
|
3090
3090
|
);
|
|
3091
3091
|
Button.displayName = "Button";
|
|
3092
|
+
const IdContext = createContext(void 0);
|
|
3093
|
+
const IdProvider = ({ children, prefix }) => {
|
|
3094
|
+
return /* @__PURE__ */ u(IdContext.Provider, { value: { prefix }, children });
|
|
3095
|
+
};
|
|
3096
|
+
IdProvider.displayName = "IdProvider";
|
|
3097
|
+
const usePrefixedId = (providedId) => {
|
|
3098
|
+
const baseId = useId();
|
|
3099
|
+
const context = useContext(IdContext);
|
|
3100
|
+
if (providedId) {
|
|
3101
|
+
return providedId;
|
|
3102
|
+
}
|
|
3103
|
+
const id = context?.prefix ? `${context.prefix}-${baseId}` : baseId;
|
|
3104
|
+
return id;
|
|
3105
|
+
};
|
|
3092
3106
|
/**
|
|
3093
|
-
* @license lucide-react v0.
|
|
3107
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3094
3108
|
*
|
|
3095
3109
|
* This source code is licensed under the ISC license.
|
|
3096
3110
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3115,7 +3129,7 @@ const hasA11yProp = (props) => {
|
|
|
3115
3129
|
}
|
|
3116
3130
|
};
|
|
3117
3131
|
/**
|
|
3118
|
-
* @license lucide-react v0.
|
|
3132
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3119
3133
|
*
|
|
3120
3134
|
* This source code is licensed under the ISC license.
|
|
3121
3135
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3132,7 +3146,7 @@ var defaultAttributes = {
|
|
|
3132
3146
|
strokeLinejoin: "round"
|
|
3133
3147
|
};
|
|
3134
3148
|
/**
|
|
3135
|
-
* @license lucide-react v0.
|
|
3149
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3136
3150
|
*
|
|
3137
3151
|
* This source code is licensed under the ISC license.
|
|
3138
3152
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3167,7 +3181,7 @@ const Icon = forwardRef(
|
|
|
3167
3181
|
)
|
|
3168
3182
|
);
|
|
3169
3183
|
/**
|
|
3170
|
-
* @license lucide-react v0.
|
|
3184
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3171
3185
|
*
|
|
3172
3186
|
* This source code is licensed under the ISC license.
|
|
3173
3187
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3189,7 +3203,7 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
3189
3203
|
return Component;
|
|
3190
3204
|
};
|
|
3191
3205
|
/**
|
|
3192
|
-
* @license lucide-react v0.
|
|
3206
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3193
3207
|
*
|
|
3194
3208
|
* This source code is licensed under the ISC license.
|
|
3195
3209
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3197,7 +3211,7 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
3197
3211
|
const __iconNode$3 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
3198
3212
|
const Check = createLucideIcon("check", __iconNode$3);
|
|
3199
3213
|
/**
|
|
3200
|
-
* @license lucide-react v0.
|
|
3214
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3201
3215
|
*
|
|
3202
3216
|
* This source code is licensed under the ISC license.
|
|
3203
3217
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3209,7 +3223,7 @@ const __iconNode$2 = [
|
|
|
3209
3223
|
];
|
|
3210
3224
|
const LockKeyhole = createLucideIcon("lock-keyhole", __iconNode$2);
|
|
3211
3225
|
/**
|
|
3212
|
-
* @license lucide-react v0.
|
|
3226
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3213
3227
|
*
|
|
3214
3228
|
* This source code is licensed under the ISC license.
|
|
3215
3229
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3217,7 +3231,7 @@ const LockKeyhole = createLucideIcon("lock-keyhole", __iconNode$2);
|
|
|
3217
3231
|
const __iconNode$1 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
|
|
3218
3232
|
const Minus = createLucideIcon("minus", __iconNode$1);
|
|
3219
3233
|
/**
|
|
3220
|
-
* @license lucide-react v0.
|
|
3234
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3221
3235
|
*
|
|
3222
3236
|
* This source code is licensed under the ISC license.
|
|
3223
3237
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -3241,7 +3255,7 @@ const checkboxBoxVariants = cva(
|
|
|
3241
3255
|
"h-3.5 w-3.5",
|
|
3242
3256
|
"border-[1.5px] rounded-xs",
|
|
3243
3257
|
"bg-transparent",
|
|
3244
|
-
"transition-highlight
|
|
3258
|
+
"transition-highlight"
|
|
3245
3259
|
],
|
|
3246
3260
|
{
|
|
3247
3261
|
variants: {
|
|
@@ -3296,7 +3310,7 @@ const Checkbox = forwardRef(
|
|
|
3296
3310
|
errorMessage,
|
|
3297
3311
|
...props
|
|
3298
3312
|
}, ref) => {
|
|
3299
|
-
const inputId = id
|
|
3313
|
+
const inputId = usePrefixedId(unwrap(id));
|
|
3300
3314
|
const state = error ? "error" : "default";
|
|
3301
3315
|
const editable = !disabled && !readOnly;
|
|
3302
3316
|
const [uncontrolledChecked, setUncontrolledChecked] = useState(defaultChecked ?? false);
|
|
@@ -3421,7 +3435,7 @@ const inputContainerVariants = cva(
|
|
|
3421
3435
|
"relative flex rounded-sm overflow-hidden",
|
|
3422
3436
|
"h-10 border focus-within:border-bdr-solid",
|
|
3423
3437
|
"focus-within:outline-none focus-within:ring-3 focus-within:ring-ring/50 focus-within:ring-offset-0",
|
|
3424
|
-
"transition-highlight
|
|
3438
|
+
"transition-highlight"
|
|
3425
3439
|
],
|
|
3426
3440
|
{
|
|
3427
3441
|
variants: {
|
|
@@ -3483,7 +3497,7 @@ const addonVariants = cva([
|
|
|
3483
3497
|
const renderAddon = (addon) => /* @__PURE__ */ u("div", { className: cn(addonVariants()), children: addon });
|
|
3484
3498
|
const Input = forwardRef(
|
|
3485
3499
|
({ className, label, description, error, startAddon, endAddon, id, ...props }, ref) => {
|
|
3486
|
-
const inputId = id
|
|
3500
|
+
const inputId = usePrefixedId(unwrap(id));
|
|
3487
3501
|
const disabled = unwrap(props.disabled) ?? false;
|
|
3488
3502
|
const readOnly = unwrap(props.readOnly) ?? false;
|
|
3489
3503
|
const state = error ? "error" : "default";
|
|
@@ -3944,10 +3958,12 @@ export {
|
|
|
3944
3958
|
Button,
|
|
3945
3959
|
Checkbox,
|
|
3946
3960
|
IconButton,
|
|
3961
|
+
IdProvider,
|
|
3947
3962
|
Input,
|
|
3948
3963
|
ListItem,
|
|
3949
3964
|
SelectableListItem,
|
|
3950
3965
|
Tooltip,
|
|
3951
3966
|
cn,
|
|
3952
|
-
unwrap
|
|
3967
|
+
unwrap,
|
|
3968
|
+
usePrefixedId
|
|
3953
3969
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base{:root{font-size:16px;color:var(--color-main);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base{:root{--color-black: #000000;--color-grey-950: #242829;--color-grey-900: #3d4142;--color-grey-800: #5b5f60;--color-grey-700: #797d7e;--color-grey-600: #8d9192;--color-grey-500: #b2b2b2;--color-grey-400: #b5b9ba;--color-grey-300: #d3d7d8;--color-grey-200: #dde1e2;--color-grey-100: #e7ebeb;--color-grey-50: #f1f5f6;--color-white: #ffffff;--color-info: #0270a0;--color-info-subtle: #208ebe;--color-info-surface: #d7f3ff;--color-warn: #cb9126;--color-warn-subtle: #e9af44;--color-warn-surface: #f7e5c4;--color-success: #499349;--color-success-subtle: #67b167;--color-success-surface: #cee2ce;--color-danger: #d33030;--color-danger-subtle: #f56262;--color-danger-surface: #f6d7d7;--color-juke: #9747ff}}@layer base{:root{--color-main: var(--color-black);--color-subtle: var(--color-grey-800);--color-alt: var(--color-white);--color-rev: var(--color-white);--color-alt-rev: var(--color-black);--color-surface-neutral: var(--color-white);--color-surface-primary: var(--color-grey-50);--color-surface-primary-hover: var(--color-grey-50);--color-surface-primary-selected: var(--color-grey-800);--color-error: var(--color-danger);--color-bdr-subtle: var(--color-grey-500);--color-bdr-soft: var(--color-grey-200);--color-bdr-strong: var(--color-black);--color-ring: var(--color-grey-500);--color-btn-primary: var(--color-white);--color-btn-primary-hover: var(--color-grey-50);--color-btn-secondary: var(--color-grey-50);--color-btn-secondary-hover: var(--color-grey-100);--color-btn-tertiary: var(--color-black);--color-btn-tertiary-hover: var(--color-grey-900);--color-btn-active: var(--color-grey-800);--color-input-disabled: var(--color-grey-100);--color-tooltip: var(--color-black);--color-tooltip-foreground: var(--color-white);--color-docs: var(--color-juke)}}@layer base{.dark{--color-main: var(--color-white);--color-subtle: var(--color-grey-400);--color-alt: var(--color-white);--color-rev: var(--color-black);--color-alt-rev: var(--color-black);--color-surface-neutral: var(--color-grey-950);--color-surface-primary: var(--color-grey-900);--color-surface-primary-hover: var(--color-grey-900);--color-surface-primary-selected: var(--color-grey-800);--color-error: var(--color-danger-subtle);--color-bdr-subtle: var(--color-grey-500);--color-bdr-soft: var(--color-grey-800);--color-bdr-strong: var(--color-white);--color-ring: var(--color-grey-500);--color-btn-primary: var(--color-grey-950);--color-btn-primary-hover: var(--color-grey-900);--color-btn-secondary: var(--color-grey-900);--color-btn-secondary-hover: var(--color-grey-800);--color-btn-tertiary: var(--color-grey-600);--color-btn-tertiary-hover: var(--color-grey-700);--color-btn-active: var(--color-grey-800);--color-input-disabled: var(--color-grey-800);--color-tooltip: var(--color-grey-600);--color-tooltip-foreground: var(--color-white);--color-docs: var(--color-juke)}}@custom-variant dark (&:where(.dark,.dark *));@theme{ --color-main: var(--color-main); --color-subtle: var(--color-subtle); --color-alt: var(--color-alt); --color-rev: var(--color-rev); --color-alt-rev: var(--color-alt-rev); --color-surface-neutral: var(--color-surface-neutral); --color-surface-primary: var(--color-surface-primary); --color-surface-primary-hover: var(--color-surface-primary-hover); --color-surface-primary-selected: var(--color-surface-primary-selected); --color-error: var(--color-error); --color-bdr-subtle: var(--color-bdr-subtle); --color-bdr-soft: var(--color-bdr-soft); --color-bdr-strong: var(--color-bdr-strong); --color-ring: var(--color-ring); --color-btn-primary: var(--color-btn-primary); --color-btn-primary-hover: var(--color-btn-primary-hover); --color-btn-secondary: var(--color-btn-secondary); --color-btn-secondary-hover: var(--color-btn-secondary-hover); --color-btn-tertiary: var(--color-btn-tertiary); --color-btn-tertiary-hover: var(--color-btn-tertiary-hover); --color-btn-active: var(--color-btn-active); --color-input-disabled: var(--color-input-disabled); --color-tooltip: var(--color-tooltip); --color-tooltip-foreground: var(--color-tooltip-foreground); --color-docs: var(--color-docs); --sizing-11\.5: calc(var(--spacing) * 11.5); }@layer base{:root{font-size:16px;color:var(--color-main);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}@utility transition-highlight{transition-property: color,box-shadow; transition-duration: .1s;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-sm:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-main:var(--color-main);--color-subtle:var(--color-subtle);--color-alt:var(--color-alt);--color-rev:var(--color-rev);--color-alt-rev:var(--color-alt-rev);--color-surface-neutral:var(--color-surface-neutral);--color-surface-primary:var(--color-surface-primary);--color-surface-primary-hover:var(--color-surface-primary-hover);--color-surface-primary-selected:var(--color-surface-primary-selected);--color-error:var(--color-error);--color-bdr-subtle:var(--color-bdr-subtle);--color-bdr-soft:var(--color-bdr-soft);--color-bdr-strong:var(--color-bdr-strong);--color-ring:var(--color-ring);--color-btn-primary:var(--color-btn-primary);--color-btn-primary-hover:var(--color-btn-primary-hover);--color-btn-secondary:var(--color-btn-secondary);--color-btn-secondary-hover:var(--color-btn-secondary-hover);--color-btn-tertiary:var(--color-btn-tertiary);--color-btn-tertiary-hover:var(--color-btn-tertiary-hover);--color-btn-active:var(--color-btn-active);--color-input-disabled:var(--color-input-disabled);--color-tooltip:var(--color-tooltip);--color-tooltip-foreground:var(--color-tooltip-foreground);--color-docs:var(--color-docs)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--color-black:#000;--color-grey-950:#242829;--color-grey-900:#3d4142;--color-grey-800:#5b5f60;--color-grey-700:#797d7e;--color-grey-600:#8d9192;--color-grey-500:#b2b2b2;--color-grey-400:#b5b9ba;--color-grey-300:#d3d7d8;--color-grey-200:#dde1e2;--color-grey-100:#e7ebeb;--color-grey-50:#f1f5f6;--color-white:#fff;--color-info:#0270a0;--color-info-subtle:#208ebe;--color-info-surface:#d7f3ff;--color-warn:#cb9126;--color-warn-subtle:#e9af44;--color-warn-surface:#f7e5c4;--color-success:#499349;--color-success-subtle:#67b167;--color-success-surface:#cee2ce;--color-danger:#d33030;--color-danger-subtle:#f56262;--color-danger-surface:#f6d7d7;--color-juke:#9747ff;--color-main:var(--color-black);--color-subtle:var(--color-grey-800);--color-alt:var(--color-white);--color-rev:var(--color-white);--color-alt-rev:var(--color-black);--color-surface-neutral:var(--color-white);--color-surface-primary:var(--color-grey-50);--color-surface-primary-hover:var(--color-grey-50);--color-surface-primary-selected:var(--color-grey-800);--color-error:var(--color-danger);--color-bdr-subtle:var(--color-grey-500);--color-bdr-soft:var(--color-grey-200);--color-bdr-strong:var(--color-black);--color-ring:var(--color-grey-500);--color-btn-primary:var(--color-white);--color-btn-primary-hover:var(--color-grey-50);--color-btn-secondary:var(--color-grey-50);--color-btn-secondary-hover:var(--color-grey-100);--color-btn-tertiary:var(--color-black);--color-btn-tertiary-hover:var(--color-grey-900);--color-btn-active:var(--color-grey-800);--color-input-disabled:var(--color-grey-100);--color-tooltip:var(--color-black);--color-tooltip-foreground:var(--color-white);--color-docs:var(--color-juke)}.dark{--color-main:var(--color-white);--color-subtle:var(--color-grey-400);--color-alt:var(--color-white);--color-rev:var(--color-black);--color-alt-rev:var(--color-black);--color-surface-neutral:var(--color-grey-950);--color-surface-primary:var(--color-grey-900);--color-surface-primary-hover:var(--color-grey-900);--color-surface-primary-selected:var(--color-grey-800);--color-error:var(--color-danger-subtle);--color-bdr-subtle:var(--color-grey-500);--color-bdr-soft:var(--color-grey-800);--color-bdr-strong:var(--color-white);--color-ring:var(--color-grey-500);--color-btn-primary:var(--color-grey-950);--color-btn-primary-hover:var(--color-grey-900);--color-btn-secondary:var(--color-grey-900);--color-btn-secondary-hover:var(--color-grey-800);--color-btn-tertiary:var(--color-grey-600);--color-btn-tertiary-hover:var(--color-grey-700);--color-btn-active:var(--color-grey-800);--color-input-disabled:var(--color-grey-800);--color-tooltip:var(--color-grey-600);--color-tooltip-foreground:var(--color-white);--color-docs:var(--color-juke)}:root{color:var(--color-main);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.z-50{z-index:50}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-6{margin-left:calc(var(--spacing)*6)}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11\.5{height:calc(var(--spacing)*11.5)}.min-h-10{min-height:calc(var(--spacing)*10)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-11\.5{width:calc(var(--spacing)*11.5)}.w-80{width:calc(var(--spacing)*80)}.w-96{width:calc(var(--spacing)*96)}.w-fit{width:fit-content}.w-full{width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-10{min-width:calc(var(--spacing)*10)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-1\/2{--tw-translate-x: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\/2{--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-45{rotate:45deg}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-bdr-strong{border-color:var(--color-bdr-strong)}.border-bdr-subtle{border-color:var(--color-bdr-subtle)}.border-error{border-color:var(--color-error)}.border-main{border-color:var(--color-main)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-btn-primary{background-color:var(--color-btn-primary)}.bg-btn-secondary{background-color:var(--color-btn-secondary)}.bg-btn-tertiary{background-color:var(--color-btn-tertiary)}.bg-error{background-color:var(--color-error)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-surface-neutral{background-color:var(--color-surface-neutral)}.bg-surface-primary{background-color:var(--color-surface-primary)}.bg-surface-primary-selected{background-color:var(--color-surface-primary-selected)}.bg-tooltip{background-color:var(--color-tooltip)}.bg-transparent{background-color:#0000}.p-0{padding:calc(var(--spacing)*0)}.p-4{padding:calc(var(--spacing)*4)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-3\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-alt{color:var(--color-alt)}.text-error{color:var(--color-error)}.text-gray-900{color:var(--color-gray-900)}.text-main{color:var(--color-main)}.text-rev{color:var(--color-rev)}.text-subtle{color:var(--color-subtle)}.text-tooltip-foreground{color:var(--color-tooltip-foreground)}.text-white{color:var(--color-white)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-highlight{transition-property:color,box-shadow;transition-duration:.1s}.fade-in-0{--tw-enter-opacity:0}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.slide-in-from-bottom-2{--tw-enter-translate-y:calc(var(--spacing)*2)}.slide-in-from-left-2{--tw-enter-translate-x:calc(var(--spacing)*2*-1)}.slide-in-from-right-2{--tw-enter-translate-x:calc(var(--spacing)*2)}.slide-in-from-top-2{--tw-enter-translate-y:calc(var(--spacing)*2*-1)}.group-\[\.bg-surface-primary-selected\]\:border-alt:is(:where(.group).bg-surface-primary-selected *){border-color:var(--color-alt)}.group-\[\.bg-surface-primary-selected\]\:text-alt:is(:where(.group).bg-surface-primary-selected *){color:var(--color-alt)}.group-\[\.bg-surface-primary-selected\]\:text-alt-rev:is(:where(.group).bg-surface-primary-selected *){color:var(--color-alt-rev)}.peer-checked\:border-error:is(:where(.peer):checked~*){border-color:var(--color-error)}.peer-checked\:border-main:is(:where(.peer):checked~*){border-color:var(--color-main)}.peer-checked\:bg-error:is(:where(.peer):checked~*){background-color:var(--color-error)}.peer-checked\:bg-main:is(:where(.peer):checked~*){background-color:var(--color-main)}.group-\[\.bg-surface-primary-selected\]\:peer-checked\:border-alt:is(:where(.group).bg-surface-primary-selected *):is(:where(.peer):checked~*){border-color:var(--color-alt)}.group-\[\.bg-surface-primary-selected\]\:peer-checked\:bg-alt:is(:where(.group).bg-surface-primary-selected *):is(:where(.peer):checked~*){background-color:var(--color-alt)}.peer-indeterminate\:border-error:is(:where(.peer):indeterminate~*){border-color:var(--color-error)}.peer-indeterminate\:border-main:is(:where(.peer):indeterminate~*){border-color:var(--color-main)}.peer-indeterminate\:bg-error:is(:where(.peer):indeterminate~*){background-color:var(--color-error)}.peer-indeterminate\:bg-main:is(:where(.peer):indeterminate~*){background-color:var(--color-main)}.group-\[\.bg-surface-primary-selected\]\:peer-indeterminate\:border-alt:is(:where(.group).bg-surface-primary-selected *):is(:where(.peer):indeterminate~*){border-color:var(--color-alt)}.group-\[\.bg-surface-primary-selected\]\:peer-indeterminate\:bg-alt:is(:where(.group).bg-surface-primary-selected *):is(:where(.peer):indeterminate~*){background-color:var(--color-alt)}@media (hover:hover){.peer-hover\:border-error:is(:where(.peer):hover~*){border-color:var(--color-error)}.peer-hover\:ring-3:is(:where(.peer):hover~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-hover\:ring-error\/50:is(:where(.peer):hover~*){--tw-ring-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.peer-hover\:ring-error\/50:is(:where(.peer):hover~*){--tw-ring-color:color-mix(in oklab,var(--color-error)50%,transparent)}}.peer-hover\:ring-ring\/50:is(:where(.peer):hover~*){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab,red,red)){.peer-hover\:ring-ring\/50:is(:where(.peer):hover~*){--tw-ring-color:color-mix(in oklab,var(--color-ring)50%,transparent)}}.peer-hover\:ring-offset-0:is(:where(.peer):hover~*){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.peer-hover\:outline-none:is(:where(.peer):hover~*){--tw-outline-style:none;outline-style:none}}.peer-focus-visible\:border-error:is(:where(.peer):focus-visible~*){border-color:var(--color-error)}.peer-focus-visible\:ring-3:is(:where(.peer):focus-visible~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-focus-visible\:ring-error\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.peer-focus-visible\:ring-error\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:color-mix(in oklab,var(--color-error)50%,transparent)}}.peer-focus-visible\:ring-ring\/75:is(:where(.peer):focus-visible~*){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab,red,red)){.peer-focus-visible\:ring-ring\/75:is(:where(.peer):focus-visible~*){--tw-ring-color:color-mix(in oklab,var(--color-ring)75%,transparent)}}.peer-focus-visible\:ring-offset-0:is(:where(.peer):focus-visible~*){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.peer-focus-visible\:outline-none:is(:where(.peer):focus-visible~*){--tw-outline-style:none;outline-style:none}.placeholder\:text-subtle::placeholder{color:var(--color-subtle)}.first\:rounded-l-sm:first-child{border-top-left-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.first\:border-r:first-child{border-right-style:var(--tw-border-style);border-right-width:1px}.first\:border-bdr-soft:first-child{border-color:var(--color-bdr-soft)}.last\:rounded-r-sm:last-child{border-top-right-radius:var(--radius-sm);border-bottom-right-radius:var(--radius-sm)}.last\:border-l:last-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:border-bdr-soft:last-child{border-color:var(--color-bdr-soft)}.read-only\:bg-surface-primary:read-only{background-color:var(--color-surface-primary)}.focus-within\:border-bdr-strong:focus-within{border-color:var(--color-bdr-strong)}.focus-within\:border-error:focus-within{border-color:var(--color-error)}.focus-within\:ring-3:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-error\/50:focus-within{--tw-ring-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-error\/50:focus-within{--tw-ring-color:color-mix(in oklab,var(--color-error)50%,transparent)}}.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:color-mix(in oklab,var(--color-ring)50%,transparent)}}.focus-within\:ring-offset-0:focus-within{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-within\:outline-none:focus-within{--tw-outline-style:none;outline-style:none}@media (hover:hover){.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-btn-primary-hover:hover{background-color:var(--color-btn-primary-hover)}.hover\:bg-btn-secondary-hover:hover{background-color:var(--color-btn-secondary-hover)}.hover\:bg-btn-tertiary-hover:hover{background-color:var(--color-btn-tertiary-hover)}.hover\:bg-surface-primary-hover:hover{background-color:var(--color-surface-primary-hover)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-3:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-ring)50%,transparent)}}.focus-visible\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-btn-active:active{background-color:var(--color-btn-active)}.active\:text-rev:active{color:var(--color-rev)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-30:disabled{opacity:.3}@media (min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:48rem){.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:64rem){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.dark\:text-main:where(.dark,.dark *),.dark\:active\:text-main:where(.dark,.dark *):active{color:var(--color-main)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer base{:root{--color-black: #000000;--color-grey-950: #242829;--color-grey-900: #3d4142;--color-grey-800: #5b5f60;--color-grey-700: #797d7e;--color-grey-600: #8d9192;--color-grey-500: #b2b2b2;--color-grey-400: #b5b9ba;--color-grey-300: #d3d7d8;--color-grey-200: #dde1e2;--color-grey-100: #e7ebeb;--color-grey-50: #f1f5f6;--color-white: #ffffff;--color-info: #0270a0;--color-info-subtle: #208ebe;--color-info-surface: #d7f3ff;--color-warn: #cb9126;--color-warn-subtle: #e9af44;--color-warn-surface: #f7e5c4;--color-success: #499349;--color-success-subtle: #67b167;--color-success-surface: #cee2ce;--color-danger: #d33030;--color-danger-subtle: #f56262;--color-danger-surface: #f6d7d7;--color-juke: #9747ff}}@layer base{:root{--color-main: var(--color-black);--color-subtle: var(--color-grey-800);--color-alt: var(--color-white);--color-rev: var(--color-white);--color-alt-rev: var(--color-black);--color-surface-neutral: var(--color-white);--color-surface-primary: var(--color-grey-50);--color-surface-primary-hover: var(--color-grey-50);--color-surface-primary-selected: var(--color-grey-800);--color-error: var(--color-danger);--color-bdr-subtle: var(--color-grey-500);--color-bdr-soft: var(--color-grey-200);--color-bdr-strong: var(--color-black);--color-ring: var(--color-grey-500);--color-btn-primary: var(--color-white);--color-btn-primary-hover: var(--color-grey-50);--color-btn-secondary: var(--color-grey-50);--color-btn-secondary-hover: var(--color-grey-100);--color-btn-tertiary: var(--color-black);--color-btn-tertiary-hover: var(--color-grey-900);--color-btn-active: var(--color-grey-800);--color-input-disabled: var(--color-grey-100);--color-tooltip: var(--color-black);--color-tooltip-foreground: var(--color-white);--color-docs: var(--color-juke)}}@layer base{.dark{--color-main: var(--color-white);--color-subtle: var(--color-grey-400);--color-alt: var(--color-white);--color-rev: var(--color-black);--color-alt-rev: var(--color-black);--color-surface-neutral: var(--color-grey-950);--color-surface-primary: var(--color-grey-900);--color-surface-primary-hover: var(--color-grey-900);--color-surface-primary-selected: var(--color-grey-800);--color-error: var(--color-danger-subtle);--color-bdr-subtle: var(--color-grey-500);--color-bdr-soft: var(--color-grey-800);--color-bdr-strong: var(--color-white);--color-ring: var(--color-grey-500);--color-btn-primary: var(--color-grey-950);--color-btn-primary-hover: var(--color-grey-900);--color-btn-secondary: var(--color-grey-900);--color-btn-secondary-hover: var(--color-grey-800);--color-btn-tertiary: var(--color-grey-600);--color-btn-tertiary-hover: var(--color-grey-700);--color-btn-active: var(--color-grey-800);--color-input-disabled: var(--color-grey-800);--color-tooltip: var(--color-grey-600);--color-tooltip-foreground: var(--color-white);--color-docs: var(--color-juke)}}@custom-variant dark (&:where(.dark,.dark *));@theme{ --color-main: var(--color-main); --color-subtle: var(--color-subtle); --color-alt: var(--color-alt); --color-rev: var(--color-rev); --color-alt-rev: var(--color-alt-rev); --color-surface-neutral: var(--color-surface-neutral); --color-surface-primary: var(--color-surface-primary); --color-surface-primary-hover: var(--color-surface-primary-hover); --color-surface-primary-selected: var(--color-surface-primary-selected); --color-error: var(--color-error); --color-bdr-subtle: var(--color-bdr-subtle); --color-bdr-soft: var(--color-bdr-soft); --color-bdr-strong: var(--color-bdr-strong); --color-ring: var(--color-ring); --color-btn-primary: var(--color-btn-primary); --color-btn-primary-hover: var(--color-btn-primary-hover); --color-btn-secondary: var(--color-btn-secondary); --color-btn-secondary-hover: var(--color-btn-secondary-hover); --color-btn-tertiary: var(--color-btn-tertiary); --color-btn-tertiary-hover: var(--color-btn-tertiary-hover); --color-btn-active: var(--color-btn-active); --color-input-disabled: var(--color-input-disabled); --color-tooltip: var(--color-tooltip); --color-tooltip-foreground: var(--color-tooltip-foreground); --color-docs: var(--color-docs); --sizing-11\.5: calc(var(--spacing) * 11.5); }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@utility transition-highlight{transition-property: color,box-shadow; transition-duration: .1s;}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type IdProviderProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
prefix?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const IdProvider: {
|
|
7
|
+
({ children, prefix }: IdProviderProps): React.ReactElement;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const usePrefixedId: (providedId?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IdProvider, usePrefixedId, type IdProviderProps } from './id-provider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './id-provider';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Enonic UI Component Library",
|
|
5
5
|
"author": "Enonic",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"module": "dist/enonic-ui.es.js",
|
|
27
27
|
"types": "dist/types/index.d.ts",
|
|
28
28
|
"files": [
|
|
29
|
-
"dist/types/",
|
|
30
29
|
"dist/enonic-ui.es.js",
|
|
31
30
|
"dist/enonic-ui.cjs",
|
|
32
|
-
"dist/
|
|
31
|
+
"dist/styles/",
|
|
32
|
+
"dist/types/"
|
|
33
33
|
],
|
|
34
34
|
"exports": {
|
|
35
35
|
".": {
|
|
@@ -37,7 +37,11 @@
|
|
|
37
37
|
"import": "./dist/enonic-ui.es.js",
|
|
38
38
|
"require": "./dist/enonic-ui.cjs"
|
|
39
39
|
},
|
|
40
|
-
"./style.css": "./dist/style.css"
|
|
40
|
+
"./style.css": "./dist/styles/style.css",
|
|
41
|
+
"./preset.css": "./dist/styles/preset.css",
|
|
42
|
+
"./tokens.css": "./dist/styles/tokens.css",
|
|
43
|
+
"./base.css": "./dist/styles/base.css",
|
|
44
|
+
"./utilities.css": "./dist/styles/utilities.css"
|
|
41
45
|
},
|
|
42
46
|
"dependencies": {
|
|
43
47
|
"@radix-ui/react-slot": "~1.2.3",
|
|
@@ -70,41 +74,41 @@
|
|
|
70
74
|
},
|
|
71
75
|
"devDependencies": {
|
|
72
76
|
"@chromatic-com/storybook": "~4.1.1",
|
|
73
|
-
"@eslint/js": "~9.
|
|
77
|
+
"@eslint/js": "~9.35.0",
|
|
74
78
|
"@preact/preset-vite": "~2.10.2",
|
|
75
79
|
"@size-limit/file": "~11.2.0",
|
|
76
80
|
"@size-limit/preset-small-lib": "~11.2.0",
|
|
77
|
-
"@storybook/addon-a11y": "~9.1.
|
|
78
|
-
"@storybook/addon-docs": "~9.1.
|
|
79
|
-
"@storybook/addon-links": "~9.1.
|
|
80
|
-
"@storybook/addon-themes": "~9.1.
|
|
81
|
-
"@storybook/preact-vite": "~9.1.
|
|
82
|
-
"@tailwindcss/vite": "~4.1.
|
|
81
|
+
"@storybook/addon-a11y": "~9.1.5",
|
|
82
|
+
"@storybook/addon-docs": "~9.1.5",
|
|
83
|
+
"@storybook/addon-links": "~9.1.5",
|
|
84
|
+
"@storybook/addon-themes": "~9.1.5",
|
|
85
|
+
"@storybook/preact-vite": "~9.1.5",
|
|
86
|
+
"@tailwindcss/vite": "~4.1.13",
|
|
83
87
|
"@trivago/prettier-plugin-sort-imports": "~5.2.2",
|
|
84
|
-
"@types/node": "~24.3.
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "~8.
|
|
86
|
-
"@typescript-eslint/parser": "~8.
|
|
87
|
-
"eslint": "~9.
|
|
88
|
+
"@types/node": "~24.3.1",
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "~8.43.0",
|
|
90
|
+
"@typescript-eslint/parser": "~8.43.0",
|
|
91
|
+
"eslint": "~9.35.0",
|
|
88
92
|
"eslint-import-resolver-typescript": "~4.4.4",
|
|
89
93
|
"eslint-plugin-import": "~2.32.0",
|
|
90
94
|
"eslint-plugin-jsx-a11y": "~6.10.2",
|
|
91
95
|
"eslint-plugin-react": "~7.37.5",
|
|
92
96
|
"eslint-plugin-react-hooks": "~5.2.0",
|
|
93
97
|
"husky": "~9.1.7",
|
|
94
|
-
"lint-staged": "~16.1.
|
|
95
|
-
"lucide-preact": "~0.
|
|
96
|
-
"lucide-react": "~0.
|
|
98
|
+
"lint-staged": "~16.1.6",
|
|
99
|
+
"lucide-preact": "~0.544.0",
|
|
100
|
+
"lucide-react": "~0.544.0",
|
|
97
101
|
"postcss": "~8.5.6",
|
|
98
102
|
"prettier": "~3.6.2",
|
|
99
103
|
"rollup-plugin-visualizer": "~6.0.3",
|
|
100
104
|
"size-limit": "~11.2.0",
|
|
101
|
-
"storybook": "~9.1.
|
|
102
|
-
"tailwindcss": "~4.1.
|
|
103
|
-
"terser": "~5.
|
|
104
|
-
"tw-animate-css": "~1.3.
|
|
105
|
+
"storybook": "~9.1.5",
|
|
106
|
+
"tailwindcss": "~4.1.13",
|
|
107
|
+
"terser": "~5.44.0",
|
|
108
|
+
"tw-animate-css": "~1.3.8",
|
|
105
109
|
"typescript": "~5.9.2",
|
|
106
|
-
"typescript-eslint": "~8.
|
|
107
|
-
"vite": "~7.1.
|
|
110
|
+
"typescript-eslint": "~8.43.0",
|
|
111
|
+
"vite": "~7.1.5",
|
|
108
112
|
"vite-plugin-dts": "~4.5.4",
|
|
109
113
|
"vite-plugin-environment": "~1.1.3"
|
|
110
114
|
},
|
|
@@ -137,24 +141,29 @@
|
|
|
137
141
|
"size-limit": [
|
|
138
142
|
{
|
|
139
143
|
"path": "dist/enonic-ui.es.js",
|
|
140
|
-
"limit": "
|
|
144
|
+
"limit": "30 KB"
|
|
141
145
|
},
|
|
142
146
|
{
|
|
143
147
|
"path": "dist/enonic-ui.cjs",
|
|
144
|
-
"limit": "
|
|
148
|
+
"limit": "30 KB"
|
|
145
149
|
},
|
|
146
150
|
{
|
|
147
|
-
"path": "dist/style.css",
|
|
148
|
-
"limit": "
|
|
151
|
+
"path": "dist/styles/style.css",
|
|
152
|
+
"limit": "10 KB"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"path": "dist/styles/preset.css",
|
|
156
|
+
"limit": "2 KB"
|
|
149
157
|
}
|
|
150
158
|
],
|
|
151
159
|
"scripts": {
|
|
152
|
-
"build": "pnpm clean && pnpm build:
|
|
153
|
-
"build:
|
|
160
|
+
"build": "pnpm clean && pnpm build:ui",
|
|
161
|
+
"build:ui": "pnpm --color /^build:ui:.*$/",
|
|
162
|
+
"build:ui:lib": "vite build --config vite.config.ts",
|
|
163
|
+
"build:ui:css": "vite build --config vite.config.css.ts",
|
|
154
164
|
"build:storybook": "storybook build",
|
|
155
165
|
"build:all": "pnpm build && pnpm build:storybook",
|
|
156
166
|
"dev": "storybook dev -p 6006",
|
|
157
|
-
"compile": "tsc -b",
|
|
158
167
|
"clean": "rm -rf dist coverage reports storybook-static",
|
|
159
168
|
"check": "pnpm typecheck && pnpm lint && pnpm format:check",
|
|
160
169
|
"typecheck": "tsc --noEmit",
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--radius-xs:.125rem;--radius-sm:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-main:var(--color-main);--color-subtle:var(--color-subtle);--color-alt:var(--color-alt);--color-rev:var(--color-rev);--color-alt-rev:var(--color-alt-rev);--color-surface-neutral:var(--color-surface-neutral);--color-surface-primary:var(--color-surface-primary);--color-surface-primary-hover:var(--color-surface-primary-hover);--color-surface-primary-selected:var(--color-surface-primary-selected);--color-error:var(--color-error);--color-bdr-subtle:var(--color-bdr-subtle);--color-bdr-soft:var(--color-bdr-soft);--color-bdr-strong:var(--color-bdr-strong);--color-bdr-danger:var(--color-bdr-danger);--color-ring:var(--color-ring);--color-btn-primary:var(--color-btn-primary);--color-btn-primary-hover:var(--color-btn-primary-hover);--color-btn-secondary:var(--color-btn-secondary);--color-btn-secondary-hover:var(--color-btn-secondary-hover);--color-btn-tertiary:var(--color-btn-tertiary);--color-btn-tertiary-hover:var(--color-btn-tertiary-hover);--color-btn-active:var(--color-btn-active);--color-box-danger:var(--color-box-danger);--color-input-disabled:var(--color-input-disabled);--color-tooltip:var(--color-tooltip);--color-tooltip-foreground:var(--color-tooltip-foreground);--color-doc-only:var(--color-doc-only)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{color:var(--color-main);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--color-black:#000;--color-grey-950:#242829;--color-grey-900:#3d4142;--color-grey-800:#5b5f60;--color-grey-700:#797d7e;--color-grey-600:#8d9192;--color-grey-500:#b2b2b2;--color-grey-400:#b5b9ba;--color-grey-300:#d3d7d8;--color-grey-200:#dde1e2;--color-grey-100:#e7ebeb;--color-grey-50:#f1f5f6;--color-white:#fff;--color-info:#0270a0;--color-info-subtle:#208ebe;--color-info-surface:#d7f3ff;--color-warn:#cb9126;--color-warn-subtle:#e9af44;--color-warn-surface:#f7e5c4;--color-success:#499349;--color-success-subtle:#67b167;--color-success-surface:#cee2ce;--color-danger:#d33030;--color-danger-subtle:#f56262;--color-danger-surface:#f6d7d7;--color-juke:#9747ff;--color-main:var(--color-black);--color-subtle:var(--color-grey-800);--color-alt:var(--color-white);--color-rev:var(--color-white);--color-alt-rev:var(--color-black);--color-surface-neutral:var(--color-white);--color-surface-primary:var(--color-grey-50);--color-surface-primary-hover:var(--color-grey-50);--color-surface-primary-selected:var(--color-grey-800);--color-error:var(--color-danger);--color-bdr-subtle:var(--color-grey-500);--color-bdr-soft:var(--color-grey-200);--color-bdr-strong:var(--color-black);--color-ring:var(--color-grey-500);--color-btn-primary:var(--color-white);--color-btn-primary-hover:var(--color-grey-50);--color-btn-secondary:var(--color-grey-50);--color-btn-secondary-hover:var(--color-grey-100);--color-btn-tertiary:var(--color-black);--color-btn-tertiary-hover:var(--color-grey-900);--color-btn-active:var(--color-grey-800);--color-input-disabled:var(--color-grey-100);--color-tooltip:var(--color-black);--color-tooltip-foreground:var(--color-white);--color-docs:var(--color-juke);font-size:16px}.dark{--color-main:var(--color-white);--color-subtle:var(--color-grey-400);--color-alt:var(--color-white);--color-rev:var(--color-black);--color-alt-rev:var(--color-black);--color-surface-neutral:var(--color-grey-950);--color-surface-primary:var(--color-grey-900);--color-surface-primary-hover:var(--color-grey-900);--color-surface-primary-selected:var(--color-grey-800);--color-error:var(--color-danger-subtle);--color-bdr-subtle:var(--color-grey-500);--color-bdr-soft:var(--color-grey-800);--color-bdr-strong:var(--color-white);--color-ring:var(--color-grey-500);--color-btn-primary:var(--color-grey-950);--color-btn-primary-hover:var(--color-grey-900);--color-btn-secondary:var(--color-grey-900);--color-btn-secondary-hover:var(--color-grey-800);--color-btn-tertiary:var(--color-grey-600);--color-btn-tertiary-hover:var(--color-grey-700);--color-btn-active:var(--color-grey-800);--color-input-disabled:var(--color-grey-800);--color-tooltip:var(--color-grey-600);--color-tooltip-foreground:var(--color-white);--color-doc-only:var(--color-juke)}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.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}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.z-50{z-index:50}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-6{margin-left:calc(var(--spacing)*6)}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11\.5{height:calc(var(--spacing)*11.5)}.min-h-10{min-height:calc(var(--spacing)*10)}.min-h-\[200px\]{min-height:200px}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-11\.5{width:calc(var(--spacing)*11.5)}.w-80{width:calc(var(--spacing)*80)}.w-96{width:calc(var(--spacing)*96)}.w-fit{width:fit-content}.w-full{width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-10{min-width:calc(var(--spacing)*10)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-1\/2{--tw-translate-x: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\/2{--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-45{rotate:45deg}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-bdr-strong{border-color:var(--color-bdr-strong)}.border-bdr-subtle{border-color:var(--color-bdr-subtle)}.border-error{border-color:var(--color-error)}.border-main{border-color:var(--color-main)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-btn-primary{background-color:var(--color-btn-primary)}.bg-btn-secondary{background-color:var(--color-btn-secondary)}.bg-btn-tertiary{background-color:var(--color-btn-tertiary)}.bg-error{background-color:var(--color-error)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-surface-neutral{background-color:var(--color-surface-neutral)}.bg-surface-primary{background-color:var(--color-surface-primary)}.bg-surface-primary-selected{background-color:var(--color-surface-primary-selected)}.bg-tooltip{background-color:var(--color-tooltip)}.bg-transparent{background-color:#0000}.p-0{padding:calc(var(--spacing)*0)}.p-4{padding:calc(var(--spacing)*4)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-3\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-alt{color:var(--color-alt)}.text-error{color:var(--color-error)}.text-gray-900{color:var(--color-gray-900)}.text-main{color:var(--color-main)}.text-rev{color:var(--color-rev)}.text-subtle{color:var(--color-subtle)}.text-tooltip-foreground{color:var(--color-tooltip-foreground)}.text-white{color:var(--color-white)}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.duration-100{--tw-duration:.1s;transition-duration:.1s}.fade-in-0{--tw-enter-opacity:0}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.slide-in-from-bottom-2{--tw-enter-translate-y:calc(2*var(--spacing))}.slide-in-from-left-2{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.slide-in-from-right-2{--tw-enter-translate-x:calc(2*var(--spacing))}.slide-in-from-top-2{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.group-\[\.bg-surface-primary-selected\]\:border-alt:is(:where(.group).bg-surface-primary-selected *){border-color:var(--color-alt)}.group-\[\.bg-surface-primary-selected\]\:text-alt:is(:where(.group).bg-surface-primary-selected *){color:var(--color-alt)}.group-\[\.bg-surface-primary-selected\]\:text-alt-rev:is(:where(.group).bg-surface-primary-selected *){color:var(--color-alt-rev)}.peer-checked\:border-error:is(:where(.peer):checked~*){border-color:var(--color-error)}.peer-checked\:border-main:is(:where(.peer):checked~*){border-color:var(--color-main)}.peer-checked\:bg-error:is(:where(.peer):checked~*){background-color:var(--color-error)}.peer-checked\:bg-main:is(:where(.peer):checked~*){background-color:var(--color-main)}.group-\[\.bg-surface-primary-selected\]\:peer-checked\:border-alt:is(:where(.group).bg-surface-primary-selected *):is(:where(.peer):checked~*){border-color:var(--color-alt)}.group-\[\.bg-surface-primary-selected\]\:peer-checked\:bg-alt:is(:where(.group).bg-surface-primary-selected *):is(:where(.peer):checked~*){background-color:var(--color-alt)}.peer-indeterminate\:border-error:is(:where(.peer):indeterminate~*){border-color:var(--color-error)}.peer-indeterminate\:border-main:is(:where(.peer):indeterminate~*){border-color:var(--color-main)}.peer-indeterminate\:bg-error:is(:where(.peer):indeterminate~*){background-color:var(--color-error)}.peer-indeterminate\:bg-main:is(:where(.peer):indeterminate~*){background-color:var(--color-main)}.group-\[\.bg-surface-primary-selected\]\:peer-indeterminate\:border-alt:is(:where(.group).bg-surface-primary-selected *):is(:where(.peer):indeterminate~*){border-color:var(--color-alt)}.group-\[\.bg-surface-primary-selected\]\:peer-indeterminate\:bg-alt:is(:where(.group).bg-surface-primary-selected *):is(:where(.peer):indeterminate~*){background-color:var(--color-alt)}@media (hover:hover){.peer-hover\:border-error:is(:where(.peer):hover~*){border-color:var(--color-error)}.peer-hover\:ring-3:is(:where(.peer):hover~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-hover\:ring-error\/50:is(:where(.peer):hover~*){--tw-ring-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.peer-hover\:ring-error\/50:is(:where(.peer):hover~*){--tw-ring-color:color-mix(in oklab,var(--color-error)50%,transparent)}}.peer-hover\:ring-ring\/50:is(:where(.peer):hover~*){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab,red,red)){.peer-hover\:ring-ring\/50:is(:where(.peer):hover~*){--tw-ring-color:color-mix(in oklab,var(--color-ring)50%,transparent)}}.peer-hover\:ring-offset-0:is(:where(.peer):hover~*){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.peer-hover\:outline-none:is(:where(.peer):hover~*){--tw-outline-style:none;outline-style:none}}.peer-focus-visible\:border-error:is(:where(.peer):focus-visible~*){border-color:var(--color-error)}.peer-focus-visible\:ring-3:is(:where(.peer):focus-visible~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-focus-visible\:ring-error\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.peer-focus-visible\:ring-error\/50:is(:where(.peer):focus-visible~*){--tw-ring-color:color-mix(in oklab,var(--color-error)50%,transparent)}}.peer-focus-visible\:ring-ring\/75:is(:where(.peer):focus-visible~*){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab,red,red)){.peer-focus-visible\:ring-ring\/75:is(:where(.peer):focus-visible~*){--tw-ring-color:color-mix(in oklab,var(--color-ring)75%,transparent)}}.peer-focus-visible\:ring-offset-0:is(:where(.peer):focus-visible~*){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.peer-focus-visible\:outline-none:is(:where(.peer):focus-visible~*){--tw-outline-style:none;outline-style:none}.placeholder\:text-subtle::placeholder{color:var(--color-subtle)}.first\:rounded-l-sm:first-child{border-top-left-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.first\:border-r:first-child{border-right-style:var(--tw-border-style);border-right-width:1px}.first\:border-bdr-soft:first-child{border-color:var(--color-bdr-soft)}.last\:rounded-r-sm:last-child{border-top-right-radius:var(--radius-sm);border-bottom-right-radius:var(--radius-sm)}.last\:border-l:last-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:border-bdr-soft:last-child{border-color:var(--color-bdr-soft)}.read-only\:bg-surface-primary:read-only{background-color:var(--color-surface-primary)}.focus-within\:border-bdr-strong:focus-within{border-color:var(--color-bdr-strong)}.focus-within\:border-error:focus-within{border-color:var(--color-error)}.focus-within\:ring-3:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-error\/50:focus-within{--tw-ring-color:var(--color-error)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-error\/50:focus-within{--tw-ring-color:color-mix(in oklab,var(--color-error)50%,transparent)}}.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:color-mix(in oklab,var(--color-ring)50%,transparent)}}.focus-within\:ring-offset-0:focus-within{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-within\:outline-none:focus-within{--tw-outline-style:none;outline-style:none}@media (hover:hover){.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-btn-primary-hover:hover{background-color:var(--color-btn-primary-hover)}.hover\:bg-btn-secondary-hover:hover{background-color:var(--color-btn-secondary-hover)}.hover\:bg-btn-tertiary-hover:hover{background-color:var(--color-btn-tertiary-hover)}.hover\:bg-surface-primary-hover:hover{background-color:var(--color-surface-primary-hover)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-3:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-ring)50%,transparent)}}.focus-visible\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-btn-active:active{background-color:var(--color-btn-active)}.active\:text-rev:active{color:var(--color-rev)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-30:disabled{opacity:.3}.dark\:text-main:where(.dark,.dark *),.dark\:active\:text-main:where(.dark,.dark *):active{color:var(--color-main)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}
|