@epam/ai-dial-ui-kit 0.16.0-dev.25 → 0.16.0-dev.32
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/dist/CHANGELOG.md +9 -0
- package/dist/{DateCellRenderer-BmgQYPuv.cjs → DateCellRenderer-ZFBZsJdH.cjs} +24 -24
- package/dist/{IconButton-B1Hx0Y3y.cjs → IconButton-CsePS6PY.cjs} +1 -1
- package/dist/{JsonEditor-Bxui5wJH.cjs → JsonEditor-DQhHSm93.cjs} +1 -1
- package/dist/{MarkdownEditor-BKtFs714.cjs → MarkdownEditor-CvIPIbPq.cjs} +1 -1
- package/dist/{MarkdownEditor-Bapd1ycU.cjs → MarkdownEditor-TR6X_gdl.cjs} +1 -1
- package/dist/{MarkdownEditorContainer-DLPODjar.cjs → MarkdownEditorContainer-JIn_VNUX.cjs} +1 -1
- package/dist/{Switch-DAaAOaIu.cjs → Switch-HEL_aq23.cjs} +1 -1
- package/dist/components/New/CaptionText/CaptionText.js +3 -4
- package/dist/components/New/Dropdown/Dropdown.js +208 -197
- package/dist/components/New/Input/Input.js +121 -107
- package/dist/components/New/SchemaRenderer/components/SchemaField.js +45 -44
- package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +41 -38
- package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +45 -39
- package/dist/components/New/Select/Select.js +201 -198
- package/dist/components/New/Textarea/Textarea.js +37 -33
- package/dist/components-manifest.json +10 -4
- package/dist/dial-ui-kit.cjs +3 -3
- package/dist/editors.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/lazy-kq-xfXXv.cjs +1 -0
- package/dist/{merge-classes-BEJXjzkx.cjs → merge-classes-B0SnCG4i.cjs} +1 -1
- package/dist/migration-guides/0.16.0/caption-text-no-alert-role.md +90 -0
- package/dist/migration-guides/README.md +1 -0
- package/dist/src/components/New/CaptionText/CaptionText.d.ts +8 -1
- package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +1 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +2 -0
- package/dist/src/components/New/SchemaRenderer/types.d.ts +3 -1
- package/dist/src/components/New/Select/Select.d.ts +2 -0
- package/dist/utils/merge-classes.js +36 -7
- package/package.json +1 -1
- package/dist/lazy-_W6FYhKg.cjs +0 -1
package/dist/editors.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lazy-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lazy-kq-xfXXv.cjs"),r=()=>Promise.resolve().then(()=>require("./MarkdownEditorContainer-JIn_VNUX.cjs"));exports.EditorThemes=o.EditorThemes;exports.LazyDialJsonEditor=o.LazyDialJsonEditor;exports.LazyDialMarkdownEditor=o.LazyDialMarkdownEditor;exports.LazyMarkdownEditor=o.LazyMarkdownEditor;exports.LazyDialMarkdownEditorContainer=r;
|
package/dist/grid.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateCellRenderer-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateCellRenderer-ZFBZsJdH.cjs");exports.DEFAULT_DATE_FORMAT_OPTIONS=e.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_DATE_LOCALE=e.DEFAULT_LOCALE;exports.DEFAULT_GRID_DATE_FORMAT_OPTIONS=e.DEFAULT_DATE_FORMAT_OPTIONS$1;exports.DEFAULT_GRID_DATE_LOCALE=e.DEFAULT_LOCALE$1;exports.DateCellRenderer=e.DateCellRenderer;exports.DialDateCellRenderer=e.DialDateCellRenderer;exports.DialGrid=e.DialGrid;exports.GRID_ALIGN_RIGHT_CLASS=e.GRID_ALIGN_RIGHT_CLASS;exports.GRID_ROOT_CLASS=e.GRID_ROOT_CLASS;exports.GRID_ROW_HEIGHT=e.ROW_HEIGHT;exports.GRID_SELECTION_COLUMN_ID=e.GRID_SELECTION_COLUMN_ID;exports.GRID_THEME_PARAMS=e.GRID_THEME_PARAMS;exports.Grid=e.Grid;exports.GridColorScheme=e.GridColorScheme;exports.GridSelectionMode=e.GridSelectionMode;exports.baseColumnComparator=e.baseColumnComparator;exports.checkColDefsChanges=e.checkColDefsChanges;exports.convertGridDateToDate=e.convertToDate;exports.convertToDate=e.convertToDate;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=(r=>(r.dark="dark",r.light="light",r))(o||{});const e=()=>Promise.resolve().then(()=>require("./JsonEditor-DQhHSm93.cjs")),i=()=>Promise.resolve().then(()=>require("./MarkdownEditor-TR6X_gdl.cjs")),a=()=>Promise.resolve().then(()=>require("./MarkdownEditor-CvIPIbPq.cjs"));exports.EditorThemes=o;exports.LazyDialJsonEditor=e;exports.LazyDialMarkdownEditor=i;exports.LazyMarkdownEditor=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const _e=require("classnames"),Be=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},$e=(e,r)=>({classGroupId:e,validator:r}),Ae=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),ee="-",we=[],Ue="arbitrary..",De=e=>{const r=qe(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Ye(a);const u=a.split(ee),m=u[0]===""&&u.length>1?1:0;return Ge(u,m,r)},getConflictingClassGroupIds:(a,u)=>{if(u){const m=t[a],b=o[a];return m?b?Be(b,m):m:b||we}return o[a]||we}}},Ge=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const i=e[r],c=o.nextPart.get(i);if(c){const b=Ge(e,r+1,c);if(b)return b}const a=o.validators;if(a===null)return;const u=r===0?e.join(ee):e.slice(r).join(ee),m=a.length;for(let b=0;b<m;b++){const h=a[b];if(h.validator(u))return h.classGroupId}},Ye=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?Ue+t:void 0})(),qe=e=>{const{theme:r,classGroups:o}=e;return Xe(o,r)},Xe=(e,r)=>{const o=Ae();for(const t in e){const i=e[t];le(i,o,t,r)}return o},le=(e,r,o,t)=>{const i=e.length;for(let c=0;c<i;c++){const a=e[c];Je(a,r,o,t)}},Je=(e,r,o,t)=>{if(typeof e=="string"){He(e,r,o);return}if(typeof e=="function"){Ke(e,r,o,t);return}Qe(e,r,o,t)},He=(e,r,o)=>{const t=e===""?r:Me(r,e);t.classGroupId=o},Ke=(e,r,o,t)=>{if(Ze(e)){le(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push($e(o,e))},Qe=(e,r,o,t)=>{const i=Object.entries(e),c=i.length;for(let a=0;a<c;a++){const[u,m]=i[a];le(m,Me(r,u),o,t)}},Me=(e,r)=>{let o=e;const t=r.split(ee),i=t.length;for(let c=0;c<i;c++){const a=t[c];let u=o.nextPart.get(a);u||(u=Ae(),o.nextPart.set(a,u)),o=u}return o},Ze=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,eo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const i=(c,a)=>{o[c]=a,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(c){let a=o[c];if(a!==void 0)return a;if((a=t[c])!==void 0)return i(c,a),a},set(c,a){c in o?o[c]=a:i(c,a)}}},ae="!",ke=":",oo=[],xe=(e,r,o,t,i)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:i}),ro=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=i=>{const c=[];let a=0,u=0,m=0,b;const h=i.length;for(let z=0;z<h;z++){const x=i[z];if(a===0&&u===0){if(x===ke){c.push(i.slice(m,z)),m=z+1;continue}if(x==="/"){b=z;continue}}x==="["?a++:x==="]"?a--:x==="("?u++:x===")"&&u--}const v=c.length===0?i:i.slice(m);let S=v,P=!1;v.endsWith(ae)?(S=v.slice(0,-1),P=!0):v.startsWith(ae)&&(S=v.slice(1),P=!0);const I=b&&b>m?b-m:void 0;return xe(c,P,S,I)};if(r){const i=r+ke,c=t;t=a=>a.startsWith(i)?c(a.slice(i.length)):xe(oo,!1,a,void 0,!0)}if(o){const i=t;t=c=>o({className:c,parseClassName:i})}return t},to=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let i=[];for(let c=0;c<o.length;c++){const a=o[c],u=a[0]==="[",m=r.has(a);u||m?(i.length>0&&(i.sort(),t.push(...i),i=[]),t.push(a)):i.push(a)}return i.length>0&&(i.sort(),t.push(...i)),t}},so=e=>({cache:eo(e.cacheSize),parseClassName:ro(e),sortModifiers:to(e),...De(e)}),no=/\s+/,io=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:i,sortModifiers:c}=r,a=[],u=e.trim().split(no);let m="";for(let b=u.length-1;b>=0;b-=1){const h=u[b],{isExternal:v,modifiers:S,hasImportantModifier:P,baseClassName:I,maybePostfixModifierPosition:z}=o(h);if(v){m=h+(m.length>0?" "+m:m);continue}let x=!!z,T=t(x?I.substring(0,z):I);if(!T){if(!x){m=h+(m.length>0?" "+m:m);continue}if(T=t(I),!T){m=h+(m.length>0?" "+m:m);continue}x=!1}const U=S.length===0?"":S.length===1?S[0]:c(S).join(":"),j=P?U+ae:U,O=j+T;if(a.indexOf(O)>-1)continue;a.push(O);const F=i(T,x);for(let N=0;N<F.length;++N){const _=F[N];a.push(j+_)}m=h+(m.length>0?" "+m:m)}return m},ao=(...e)=>{let r=0,o,t,i="";for(;r<e.length;)(o=e[r++])&&(t=Re(o))&&(i&&(i+=" "),i+=t);return i},Re=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=Re(e[t]))&&(o&&(o+=" "),o+=r);return o},ye=(e,...r)=>{let o,t,i,c;const a=m=>{const b=r.reduce((h,v)=>v(h),e());return o=so(b),t=o.cache.get,i=o.cache.set,c=u,u(m)},u=m=>{const b=t(m);if(b)return b;const h=io(m,o);return i(m,h),h};return c=a,(...m)=>c(ao(...m))},lo=[],f=e=>{const r=o=>o[e]||lo;return r.isThemeGetter=!0,r},Pe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ie=/^\((?:(\w[\w-]*):)?(.+)\)$/i,co=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,po=/\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$/,uo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>co.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),M=e=>!!e&&Number.isInteger(Number(e)),ie=e=>e.endsWith("%")&&p(e.slice(0,-1)),A=e=>mo.test(e),Te=()=>!0,go=e=>po.test(e)&&!uo.test(e),ce=()=>!1,ho=e=>bo.test(e),wo=e=>fo.test(e),ko=e=>!s(e)&&!n(e),xo=e=>R(e,Ve,ce),s=e=>Pe.test(e),V=e=>R(e,Ee,go),ve=e=>R(e,Mo,p),yo=e=>R(e,Fe,Te),vo=e=>R(e,Oe,ce),ze=e=>R(e,Ne,ce),zo=e=>R(e,Le,wo),H=e=>R(e,We,ho),n=e=>Ie.test(e),B=e=>E(e,Ee),Co=e=>E(e,Oe),Ce=e=>E(e,Ne),So=e=>E(e,Ve),Ao=e=>E(e,Le),K=e=>E(e,We,!0),Go=e=>E(e,Fe,!0),R=(e,r,o)=>{const t=Pe.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},E=(e,r,o=!1)=>{const t=Ie.exec(e);return t?t[1]?r(t[1]):o:!1},Ne=e=>e==="position"||e==="percentage",Le=e=>e==="image"||e==="url",Ve=e=>e==="length"||e==="size"||e==="bg-size",Ee=e=>e==="length",Mo=e=>e==="number",Oe=e=>e==="family-name",Fe=e=>e==="number"||e==="weight",We=e=>e==="shadow",Se=()=>{const e=f("color"),r=f("font"),o=f("text"),t=f("font-weight"),i=f("tracking"),c=f("leading"),a=f("breakpoint"),u=f("container"),m=f("spacing"),b=f("radius"),h=f("shadow"),v=f("inset-shadow"),S=f("text-shadow"),P=f("drop-shadow"),I=f("blur"),z=f("perspective"),x=f("aspect"),T=f("ease"),U=f("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...O(),n,s],N=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],l=()=>[n,s,m],y=()=>[G,"full","auto",...l()],de=()=>[M,"none","subgrid",n,s],me=()=>["auto",{span:["full",M,n,s]},M,n,s],D=()=>[M,"auto",n,s],pe=()=>["auto","min","max","fr",n,s],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...l()],L=()=>[G,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...l()],re=()=>[G,"screen","full","dvw","lvw","svw","min","max","fit",...l()],te=()=>[G,"screen","full","lh","dvh","lvh","svh","min","max","fit",...l()],d=()=>[e,n,s],ue=()=>[...O(),Ce,ze,{position:[n,s]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],fe=()=>["auto","cover","contain",So,xo,{size:[n,s]}],se=()=>[ie,B,V],w=()=>["","none","full",b,n,s],k=()=>["",p,B,V],Y=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[p,ie,Ce,ze],he=()=>["","none",I,n,s],q=()=>["none",p,n,s],X=()=>["none",p,n,s],ne=()=>[p,n,s],J=()=>[G,"full",...l()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[A],breakpoint:[A],color:[Te],container:[A],"drop-shadow":[A],ease:["in","out","in-out"],font:[ko],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[A],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[A],shadow:[A],spacing:["px",p],text:[A],"text-shadow":[A],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",G,s,n,x]}],container:["container"],columns:[{columns:[p,s,n,u]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:F()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{"inset-s":y(),start:y()}],end:[{"inset-e":y(),end:y()}],"inset-bs":[{"inset-bs":y()}],"inset-be":[{"inset-be":y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",n,s]}],basis:[{basis:[G,"full","auto",u,...l()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,G,"auto","initial","none",s]}],grow:[{grow:["",p,n,s]}],shrink:[{shrink:["",p,n,s]}],order:[{order:[M,"first","last","none",n,s]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:l()}],"gap-x":[{"gap-x":l()}],"gap-y":[{"gap-y":l()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:l()}],px:[{px:l()}],py:[{py:l()}],ps:[{ps:l()}],pe:[{pe:l()}],pbs:[{pbs:l()}],pbe:[{pbe:l()}],pt:[{pt:l()}],pr:[{pr:l()}],pb:[{pb:l()}],pl:[{pl:l()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mbs:[{mbs:C()}],mbe:[{mbe:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":l()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":l()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...te()]}],"min-block-size":[{"min-block":["auto",...te()]}],"max-block-size":[{"max-block":["none",...te()]}],w:[{w:[u,"screen",...L()]}],"min-w":[{"min-w":[u,"screen","none",...L()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[a]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",o,B,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,Go,yo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ie,s]}],"font-family":[{font:[Co,vo,r]}],"font-features":[{"font-features":[s]}],"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:[i,n,s]}],"line-clamp":[{"line-clamp":[p,"none",n,ve]}],leading:[{leading:[c,...l()]}],"list-image":[{"list-image":["none",n,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,V]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[p,"auto",n,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:l()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,s]}],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",n,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,n,s],radial:["",n,s],conic:[M,n,s]},Ao,zo]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-bs":[{"border-bs":k()}],"border-w-be":[{"border-be":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,s]}],"outline-w":[{outline:["",p,B,V]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",h,K,H]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",v,K,H]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[p,V]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",S,K,H]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[p,n,s]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[n,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,s]}],filter:[{filter:["","none",n,s]}],blur:[{blur:he()}],brightness:[{brightness:[p,n,s]}],contrast:[{contrast:[p,n,s]}],"drop-shadow":[{"drop-shadow":["","none",P,K,H]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",p,n,s]}],"hue-rotate":[{"hue-rotate":[p,n,s]}],invert:[{invert:["",p,n,s]}],saturate:[{saturate:[p,n,s]}],sepia:[{sepia:["",p,n,s]}],"backdrop-filter":[{"backdrop-filter":["","none",n,s]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,s]}],"backdrop-invert":[{"backdrop-invert":["",p,n,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":l()}],"border-spacing-x":[{"border-spacing-x":l()}],"border-spacing-y":[{"border-spacing-y":l()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,s]}],ease:[{ease:["linear","initial",T,n,s]}],delay:[{delay:[p,n,s]}],animate:[{animate:["none",U,n,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,n,s]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[n,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"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",n,s]}],"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":l()}],"scroll-mx":[{"scroll-mx":l()}],"scroll-my":[{"scroll-my":l()}],"scroll-ms":[{"scroll-ms":l()}],"scroll-me":[{"scroll-me":l()}],"scroll-mbs":[{"scroll-mbs":l()}],"scroll-mbe":[{"scroll-mbe":l()}],"scroll-mt":[{"scroll-mt":l()}],"scroll-mr":[{"scroll-mr":l()}],"scroll-mb":[{"scroll-mb":l()}],"scroll-ml":[{"scroll-ml":l()}],"scroll-p":[{"scroll-p":l()}],"scroll-px":[{"scroll-px":l()}],"scroll-py":[{"scroll-py":l()}],"scroll-ps":[{"scroll-ps":l()}],"scroll-pe":[{"scroll-pe":l()}],"scroll-pbs":[{"scroll-pbs":l()}],"scroll-pbe":[{"scroll-pbe":l()}],"scroll-pt":[{"scroll-pt":l()}],"scroll-pr":[{"scroll-pr":l()}],"scroll-pb":[{"scroll-pb":l()}],"scroll-pl":[{"scroll-pl":l()}],"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",n,s]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[p,B,V,ve]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},Ro=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:i={},override:c={}})=>($(e,"cacheSize",r),$(e,"prefix",o),$(e,"experimentalParseClassName",t),Q(e.theme,c.theme),Q(e.classGroups,c.classGroups),Q(e.conflictingClassGroups,c.conflictingClassGroups),Q(e.conflictingClassGroupModifiers,c.conflictingClassGroupModifiers),$(e,"orderSensitiveModifiers",c.orderSensitiveModifiers),Z(e.theme,i.theme),Z(e.classGroups,i.classGroups),Z(e.conflictingClassGroups,i.conflictingClassGroups),Z(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),je(e,i,"orderSensitiveModifiers"),e),$=(e,r,o)=>{o!==void 0&&(e[r]=o)},Q=(e,r)=>{if(r)for(const o in r)$(e,o,r[o])},Z=(e,r)=>{if(r)for(const o in r)je(e,r,o)},je=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},Po=(e,...r)=>typeof e=="function"?ye(Se,e,...r):ye(()=>Ro(Se(),e),...r),Io=Po({extend:{classGroups:{z:[{z:["popup","floating","interactive-tooltip","tooltip"]}]}}});function To(...e){return Io(_e(e))}exports.mergeClasses=To;
|
|
1
|
+
"use strict";const je=require("classnames"),Be=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},$e=(e,r)=>({classGroupId:e,validator:r}),Ae=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),ee="-",we=[],De="arbitrary..",Ue=e=>{const r=qe(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Ye(i);const u=i.split(ee),m=u[0]===""&&u.length>1?1:0;return Ge(u,m,r)},getConflictingClassGroupIds:(i,u)=>{if(u){const m=t[i],b=o[i];return m?b?Be(b,m):m:b||we}return o[i]||we}}},Ge=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const a=e[r],c=o.nextPart.get(a);if(c){const b=Ge(e,r+1,c);if(b)return b}const i=o.validators;if(i===null)return;const u=r===0?e.join(ee):e.slice(r).join(ee),m=i.length;for(let b=0;b<m;b++){const h=i[b];if(h.validator(u))return h.classGroupId}},Ye=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?De+t:void 0})(),qe=e=>{const{theme:r,classGroups:o}=e;return Xe(o,r)},Xe=(e,r)=>{const o=Ae();for(const t in e){const a=e[t];le(a,o,t,r)}return o},le=(e,r,o,t)=>{const a=e.length;for(let c=0;c<a;c++){const i=e[c];He(i,r,o,t)}},He=(e,r,o,t)=>{if(typeof e=="string"){Je(e,r,o);return}if(typeof e=="function"){Ke(e,r,o,t);return}Qe(e,r,o,t)},Je=(e,r,o)=>{const t=e===""?r:Me(r,e);t.classGroupId=o},Ke=(e,r,o,t)=>{if(Ze(e)){le(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push($e(o,e))},Qe=(e,r,o,t)=>{const a=Object.entries(e),c=a.length;for(let i=0;i<c;i++){const[u,m]=a[i];le(m,Me(r,u),o,t)}},Me=(e,r)=>{let o=e;const t=r.split(ee),a=t.length;for(let c=0;c<a;c++){const i=t[c];let u=o.nextPart.get(i);u||(u=Ae(),o.nextPart.set(i,u)),o=u}return o},Ze=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,eo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const a=(c,i)=>{o[c]=i,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(c){let i=o[c];if(i!==void 0)return i;if((i=t[c])!==void 0)return a(c,i),i},set(c,i){c in o?o[c]=i:a(c,i)}}},ie="!",ke=":",oo=[],ye=(e,r,o,t,a)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:a}),ro=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=a=>{const c=[];let i=0,u=0,m=0,b;const h=a.length;for(let z=0;z<h;z++){const y=a[z];if(i===0&&u===0){if(y===ke){c.push(a.slice(m,z)),m=z+1;continue}if(y==="/"){b=z;continue}}y==="["?i++:y==="]"?i--:y==="("?u++:y===")"&&u--}const v=c.length===0?a:a.slice(m);let S=v,R=!1;v.endsWith(ie)?(S=v.slice(0,-1),R=!0):v.startsWith(ie)&&(S=v.slice(1),R=!0);const I=b&&b>m?b-m:void 0;return ye(c,R,S,I)};if(r){const a=r+ke,c=t;t=i=>i.startsWith(a)?c(i.slice(a.length)):ye(oo,!1,i,void 0,!0)}if(o){const a=t;t=c=>o({className:c,parseClassName:a})}return t},to=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let a=[];for(let c=0;c<o.length;c++){const i=o[c],u=i[0]==="[",m=r.has(i);u||m?(a.length>0&&(a.sort(),t.push(...a),a=[]),t.push(i)):a.push(i)}return a.length>0&&(a.sort(),t.push(...a)),t}},so=e=>({cache:eo(e.cacheSize),parseClassName:ro(e),sortModifiers:to(e),...Ue(e)}),no=/\s+/,ao=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:a,sortModifiers:c}=r,i=[],u=e.trim().split(no);let m="";for(let b=u.length-1;b>=0;b-=1){const h=u[b],{isExternal:v,modifiers:S,hasImportantModifier:R,baseClassName:I,maybePostfixModifierPosition:z}=o(h);if(v){m=h+(m.length>0?" "+m:m);continue}let y=!!z,T=t(y?I.substring(0,z):I);if(!T){if(!y){m=h+(m.length>0?" "+m:m);continue}if(T=t(I),!T){m=h+(m.length>0?" "+m:m);continue}y=!1}const D=S.length===0?"":S.length===1?S[0]:c(S).join(":"),_=R?D+ie:D,O=_+T;if(i.indexOf(O)>-1)continue;i.push(O);const F=a(T,y);for(let L=0;L<F.length;++L){const j=F[L];i.push(_+j)}m=h+(m.length>0?" "+m:m)}return m},io=(...e)=>{let r=0,o,t,a="";for(;r<e.length;)(o=e[r++])&&(t=Pe(o))&&(a&&(a+=" "),a+=t);return a},Pe=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=Pe(e[t]))&&(o&&(o+=" "),o+=r);return o},xe=(e,...r)=>{let o,t,a,c;const i=m=>{const b=r.reduce((h,v)=>v(h),e());return o=so(b),t=o.cache.get,a=o.cache.set,c=u,u(m)},u=m=>{const b=t(m);if(b)return b;const h=ao(m,o);return a(m,h),h};return c=i,(...m)=>c(io(...m))},lo=[],f=e=>{const r=o=>o[e]||lo;return r.isThemeGetter=!0,r},Re=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ie=/^\((?:(\w[\w-]*):)?(.+)\)$/i,co=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,mo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,po=/\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$/,uo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>co.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),M=e=>!!e&&Number.isInteger(Number(e)),ae=e=>e.endsWith("%")&&p(e.slice(0,-1)),A=e=>mo.test(e),Te=()=>!0,go=e=>po.test(e)&&!uo.test(e),ce=()=>!1,ho=e=>bo.test(e),wo=e=>fo.test(e),ko=e=>!s(e)&&!n(e),yo=e=>P(e,Ee,ce),s=e=>Re.test(e),E=e=>P(e,Ve,go),ve=e=>P(e,Mo,p),xo=e=>P(e,Fe,Te),vo=e=>P(e,Oe,ce),ze=e=>P(e,Le,ce),zo=e=>P(e,Ne,wo),J=e=>P(e,We,ho),n=e=>Ie.test(e),B=e=>V(e,Ve),Co=e=>V(e,Oe),Ce=e=>V(e,Le),So=e=>V(e,Ee),Ao=e=>V(e,Ne),K=e=>V(e,We,!0),Go=e=>V(e,Fe,!0),P=(e,r,o)=>{const t=Re.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},V=(e,r,o=!1)=>{const t=Ie.exec(e);return t?t[1]?r(t[1]):o:!1},Le=e=>e==="position"||e==="percentage",Ne=e=>e==="image"||e==="url",Ee=e=>e==="length"||e==="size"||e==="bg-size",Ve=e=>e==="length",Mo=e=>e==="number",Oe=e=>e==="family-name",Fe=e=>e==="number"||e==="weight",We=e=>e==="shadow",Se=()=>{const e=f("color"),r=f("font"),o=f("text"),t=f("font-weight"),a=f("tracking"),c=f("leading"),i=f("breakpoint"),u=f("container"),m=f("spacing"),b=f("radius"),h=f("shadow"),v=f("inset-shadow"),S=f("text-shadow"),R=f("drop-shadow"),I=f("blur"),z=f("perspective"),y=f("aspect"),T=f("ease"),D=f("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...O(),n,s],L=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],l=()=>[n,s,m],x=()=>[G,"full","auto",...l()],de=()=>[M,"none","subgrid",n,s],me=()=>["auto",{span:["full",M,n,s]},M,n,s],U=()=>[M,"auto",n,s],pe=()=>["auto","min","max","fr",n,s],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...l()],N=()=>[G,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...l()],re=()=>[G,"screen","full","dvw","lvw","svw","min","max","fit",...l()],te=()=>[G,"screen","full","lh","dvh","lvh","svh","min","max","fit",...l()],d=()=>[e,n,s],ue=()=>[...O(),Ce,ze,{position:[n,s]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],fe=()=>["auto","cover","contain",So,yo,{size:[n,s]}],se=()=>[ae,B,E],w=()=>["","none","full",b,n,s],k=()=>["",p,B,E],Y=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[p,ae,Ce,ze],he=()=>["","none",I,n,s],q=()=>["none",p,n,s],X=()=>["none",p,n,s],ne=()=>[p,n,s],H=()=>[G,"full",...l()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[A],breakpoint:[A],color:[Te],container:[A],"drop-shadow":[A],ease:["in","out","in-out"],font:[ko],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[A],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[A],shadow:[A],spacing:["px",p],text:[A],"text-shadow":[A],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",G,s,n,y]}],container:["container"],columns:[{columns:[p,s,n,u]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:F()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[M,"auto",n,s]}],basis:[{basis:[G,"full","auto",u,...l()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,G,"auto","initial","none",s]}],grow:[{grow:["",p,n,s]}],shrink:[{shrink:["",p,n,s]}],order:[{order:[M,"first","last","none",n,s]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:l()}],"gap-x":[{"gap-x":l()}],"gap-y":[{"gap-y":l()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:l()}],px:[{px:l()}],py:[{py:l()}],ps:[{ps:l()}],pe:[{pe:l()}],pbs:[{pbs:l()}],pbe:[{pbe:l()}],pt:[{pt:l()}],pr:[{pr:l()}],pb:[{pb:l()}],pl:[{pl:l()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mbs:[{mbs:C()}],mbe:[{mbe:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":l()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":l()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...te()]}],"min-block-size":[{"min-block":["auto",...te()]}],"max-block-size":[{"max-block":["none",...te()]}],w:[{w:[u,"screen",...N()]}],"min-w":[{"min-w":[u,"screen","none",...N()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",o,B,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,Go,xo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ae,s]}],"font-family":[{font:[Co,vo,r]}],"font-features":[{"font-features":[s]}],"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:[a,n,s]}],"line-clamp":[{"line-clamp":[p,"none",n,ve]}],leading:[{leading:[c,...l()]}],"list-image":[{"list-image":["none",n,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,E]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[p,"auto",n,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:l()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,s]}],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",n,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ue()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:fe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},M,n,s],radial:["",n,s],conic:[M,n,s]},Ao,zo]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-bs":[{"border-bs":k()}],"border-w-be":[{"border-be":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,s]}],"outline-w":[{outline:["",p,B,E]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",h,K,J]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",v,K,J]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[p,E]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",S,K,J]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[p,n,s]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[n,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:fe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,s]}],filter:[{filter:["","none",n,s]}],blur:[{blur:he()}],brightness:[{brightness:[p,n,s]}],contrast:[{contrast:[p,n,s]}],"drop-shadow":[{"drop-shadow":["","none",R,K,J]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",p,n,s]}],"hue-rotate":[{"hue-rotate":[p,n,s]}],invert:[{invert:["",p,n,s]}],saturate:[{saturate:[p,n,s]}],sepia:[{sepia:["",p,n,s]}],"backdrop-filter":[{"backdrop-filter":["","none",n,s]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,s]}],"backdrop-invert":[{"backdrop-invert":["",p,n,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":l()}],"border-spacing-x":[{"border-spacing-x":l()}],"border-spacing-y":[{"border-spacing-y":l()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,s]}],ease:[{ease:["linear","initial",T,n,s]}],delay:[{delay:[p,n,s]}],animate:[{animate:["none",D,n,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,n,s]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[n,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"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",n,s]}],"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":l()}],"scroll-mx":[{"scroll-mx":l()}],"scroll-my":[{"scroll-my":l()}],"scroll-ms":[{"scroll-ms":l()}],"scroll-me":[{"scroll-me":l()}],"scroll-mbs":[{"scroll-mbs":l()}],"scroll-mbe":[{"scroll-mbe":l()}],"scroll-mt":[{"scroll-mt":l()}],"scroll-mr":[{"scroll-mr":l()}],"scroll-mb":[{"scroll-mb":l()}],"scroll-ml":[{"scroll-ml":l()}],"scroll-p":[{"scroll-p":l()}],"scroll-px":[{"scroll-px":l()}],"scroll-py":[{"scroll-py":l()}],"scroll-ps":[{"scroll-ps":l()}],"scroll-pe":[{"scroll-pe":l()}],"scroll-pbs":[{"scroll-pbs":l()}],"scroll-pbe":[{"scroll-pbe":l()}],"scroll-pt":[{"scroll-pt":l()}],"scroll-pr":[{"scroll-pr":l()}],"scroll-pb":[{"scroll-pb":l()}],"scroll-pl":[{"scroll-pl":l()}],"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",n,s]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[p,B,E,ve]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},Po=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:a={},override:c={}})=>($(e,"cacheSize",r),$(e,"prefix",o),$(e,"experimentalParseClassName",t),Q(e.theme,c.theme),Q(e.classGroups,c.classGroups),Q(e.conflictingClassGroups,c.conflictingClassGroups),Q(e.conflictingClassGroupModifiers,c.conflictingClassGroupModifiers),$(e,"orderSensitiveModifiers",c.orderSensitiveModifiers),Z(e.theme,a.theme),Z(e.classGroups,a.classGroups),Z(e.conflictingClassGroups,a.conflictingClassGroups),Z(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),_e(e,a,"orderSensitiveModifiers"),e),$=(e,r,o)=>{o!==void 0&&(e[r]=o)},Q=(e,r)=>{if(r)for(const o in r)$(e,o,r[o])},Z=(e,r)=>{if(r)for(const o in r)_e(e,r,o)},_e=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},Ro=(e,...r)=>typeof e=="function"?xe(Se,e,...r):xe(()=>Po(Se(),e),...r),Io=["display1","display2","display3","h1","h2","h3","body","body-semi","body-paragraph","body-paragraph-semi","small","small-semi","small-paragraph","small-paragraph-semi","tiny","tiny-semi","tiny-lead","tiny-lead-semi","caption","caption-lead-semi","code","italic","small-italic","tiny-italic","caption-italic"],To=Ro({extend:{classGroups:{z:[{z:["popup","floating","interactive-tooltip","tooltip"]}],"dial-typography":Io.map(e=>`dial-${e}-text`)}}});function Lo(...e){return To(je(e))}exports.mergeClasses=Lo;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Migrating `CaptionText` / `ErrorText` without `role="alert"` — v0.15 → v0.16.0
|
|
2
|
+
|
|
3
|
+
## Why this changed
|
|
4
|
+
|
|
5
|
+
`CaptionText` and `ErrorText` rendered `role="alert"` on every caption. A plain
|
|
6
|
+
field description and every validation error became an assertive live region,
|
|
7
|
+
so a screen reader interrupted the user with helper text, and a host that
|
|
8
|
+
wrapped `ErrorText` in its own alert region announced the message twice.
|
|
9
|
+
|
|
10
|
+
A field's caption or error is a description of that field. Assistive
|
|
11
|
+
technology reads it when the field is focused, through `aria-describedby`, and
|
|
12
|
+
`aria-invalid` tells the user the value is wrong.
|
|
13
|
+
|
|
14
|
+
## What changed
|
|
15
|
+
|
|
16
|
+
| Before | After |
|
|
17
|
+
| --------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
18
|
+
| `CaptionText` / `ErrorText` render `role="alert"` | No role; plain text with an optional `id` |
|
|
19
|
+
| `Input`, `Textarea`, `Select` error/caption not linked | Linked through `aria-describedby`; `aria-invalid` is set when `error` or `invalid` is set |
|
|
20
|
+
| `SchemaRenderer` required error not linked to its control | Linked through `aria-describedby` |
|
|
21
|
+
| `Select` takes no external description | `ariaDescribedBy` adds ids of elements outside the field |
|
|
22
|
+
|
|
23
|
+
`Input` and `Textarea` now give the control a generated `id` when none is
|
|
24
|
+
passed, so a `labelProps` label is associated with it. A caller's own
|
|
25
|
+
`aria-describedby` comes first, then the field's error or caption.
|
|
26
|
+
|
|
27
|
+
The legacy `DialCaptionText` / `DialErrorText` are unchanged.
|
|
28
|
+
|
|
29
|
+
## Step-by-step migration
|
|
30
|
+
|
|
31
|
+
### 1. Find all usages
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
grep -rnE "<(ErrorText|CaptionText)\b" src/
|
|
35
|
+
grep -rn "ByRole('alert')" src/
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 2. Link an `ErrorText` you render next to your own control
|
|
39
|
+
|
|
40
|
+
**Before:**
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
<input aria-invalid={Boolean(error)} />
|
|
44
|
+
<ErrorText text={error} />
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**After:**
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
<input aria-invalid={Boolean(error)} aria-describedby={error ? errorId : undefined} />
|
|
51
|
+
<ErrorText id={errorId} text={error} />
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Prefer the control's own `error` / `caption` props where the control has them:
|
|
55
|
+
the kit links them for you.
|
|
56
|
+
|
|
57
|
+
### 3. Keep an announcement where one is needed
|
|
58
|
+
|
|
59
|
+
A message that must interrupt the user — a failed submit, a load error with a
|
|
60
|
+
retry — belongs in an alert region of your own. It now announces once instead
|
|
61
|
+
of twice:
|
|
62
|
+
|
|
63
|
+
```tsx
|
|
64
|
+
<div role="alert">
|
|
65
|
+
<ErrorText text={submitError} />
|
|
66
|
+
</div>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### 4. Update tests
|
|
70
|
+
|
|
71
|
+
A test that found a field error with `getByRole('alert')` now finds it by text,
|
|
72
|
+
or asserts the description on the control:
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
expect(
|
|
76
|
+
screen.getByRole('textbox', { name: 'Name' }),
|
|
77
|
+
).toHaveAccessibleDescription('Name is required');
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 5. Verify
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm run typecheck
|
|
84
|
+
npm run test
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Notes
|
|
88
|
+
|
|
89
|
+
Nothing visual changes: the classes, including `dial-kit-caption-text` and
|
|
90
|
+
`dial-kit-error-text`, are the same.
|
|
@@ -32,6 +32,7 @@ migration-guides/
|
|
|
32
32
|
| 0.15.0 | [slider-redesign](0.15.0/slider-redesign.md) | `Slider` redrawn: 12px accent thumb with a hover/focus halo, accent-tint track; adds `showTooltip`, `showTicks`, `leftContent`, `rightContent` |
|
|
33
33
|
| 0.16.0 | [tailwind-v4-stylesheet](0.16.0/tailwind-v4-stylesheet.md) | `styles.css` built with Tailwind v4: variant utilities move into `@layer ui`, v4 preflight, new browser baseline |
|
|
34
34
|
| 0.16.0 | [legacy-file-manager-removal](0.16.0/legacy-file-manager-removal.md) | Legacy `DialFileManager`, its helpers and the `./file-manager` subpath removed; import them from `@epam/ai-dial-react-file-manager` |
|
|
35
|
+
| 0.16.0 | [caption-text-no-alert-role](0.16.0/caption-text-no-alert-role.md) | `CaptionText` / `ErrorText` drop `role="alert"`; 2.0 fields link their error and caption through `aria-describedby` |
|
|
35
36
|
|
|
36
37
|
---
|
|
37
38
|
|
|
@@ -9,9 +9,16 @@ export interface CaptionTextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
9
9
|
* aliases: HelperText|ValidationText
|
|
10
10
|
* Design system 2.0
|
|
11
11
|
*
|
|
12
|
+
* It carries no live-region role: a field caption or error is described, not
|
|
13
|
+
* announced. Give it an `id` and point the control's `aria-describedby` at it
|
|
14
|
+
* (the 2.0 form controls do this for their own `caption` / `error`). Wrap it in
|
|
15
|
+
* a `role="alert"` region only for a message that must interrupt, such as a
|
|
16
|
+
* failed submit.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* ```tsx
|
|
14
|
-
* <
|
|
20
|
+
* <input aria-describedby="name-error" aria-invalid />
|
|
21
|
+
* <CaptionText id="name-error" text="This field is required" variant={CaptionType.Error} />
|
|
15
22
|
* ```
|
|
16
23
|
*
|
|
17
24
|
* @param [text] - The text to display. If undefined or empty, nothing is rendered
|
|
@@ -26,5 +26,6 @@ import { SchemaFieldContentProps } from '../types';
|
|
|
26
26
|
* @param [suppressInlineError=false] - Leaves the required error to the caller, which renders it under its own label
|
|
27
27
|
* @param [fieldId] - Id given to a primitive control, for a visible label to point at
|
|
28
28
|
* @param [ariaLabel] - Accessible name of the control
|
|
29
|
+
* @param [ariaDescribedBy] - Id of an error the caller renders outside the control, linked to a primitive control
|
|
29
30
|
*/
|
|
30
31
|
export declare const SchemaFieldContent: FC<SchemaFieldContentProps>;
|
|
@@ -7,6 +7,7 @@ export interface SchemaPrimitiveFieldProps {
|
|
|
7
7
|
invalid?: boolean;
|
|
8
8
|
id?: string;
|
|
9
9
|
ariaLabel?: string;
|
|
10
|
+
ariaDescribedBy?: string;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Renders a single primitive schema field: string, integer, number, boolean, enum, or const.
|
|
@@ -34,5 +35,6 @@ export interface SchemaPrimitiveFieldProps {
|
|
|
34
35
|
* @param [invalid] - Whether the field has a validation error (applies error styling)
|
|
35
36
|
* @param [id] - Id of the control, for a visible label to point at
|
|
36
37
|
* @param [ariaLabel] - Accessible name of the control
|
|
38
|
+
* @param [ariaDescribedBy] - Id of the field's validation error, linked to text, number and select controls
|
|
37
39
|
*/
|
|
38
40
|
export declare const SchemaPrimitiveField: FC<SchemaPrimitiveFieldProps>;
|
|
@@ -58,8 +58,10 @@ export interface SchemaFieldContentProps {
|
|
|
58
58
|
* have no visible label next to their control, so this is what names it.
|
|
59
59
|
*/
|
|
60
60
|
ariaLabel?: string;
|
|
61
|
+
/** Id of an error the caller renders outside the control, linked to a primitive control as its description. */
|
|
62
|
+
ariaDescribedBy?: string;
|
|
61
63
|
}
|
|
62
|
-
export interface SchemaFieldProps extends Omit<SchemaFieldContentProps, 'fieldId' | 'ariaLabel' | 'suppressInlineError'> {
|
|
64
|
+
export interface SchemaFieldProps extends Omit<SchemaFieldContentProps, 'fieldId' | 'ariaLabel' | 'ariaDescribedBy' | 'suppressInlineError'> {
|
|
63
65
|
label?: string;
|
|
64
66
|
}
|
|
65
67
|
export interface SchemaRendererContextValue {
|
|
@@ -17,6 +17,7 @@ export interface SelectProps {
|
|
|
17
17
|
error?: string;
|
|
18
18
|
caption?: string;
|
|
19
19
|
ariaLabel?: string;
|
|
20
|
+
ariaDescribedBy?: string;
|
|
20
21
|
searchable?: boolean;
|
|
21
22
|
searchSize?: ElementSize;
|
|
22
23
|
searchPlaceholder?: string;
|
|
@@ -101,6 +102,7 @@ export interface SelectProps {
|
|
|
101
102
|
* @param [error] - Error message rendered below the field (does not by itself apply error styling, pass `invalid` too).
|
|
102
103
|
* @param [caption] - Helper text rendered below the field when there is no `error`.
|
|
103
104
|
* @param [ariaLabel] - Accessible name for the field; use it when there is no visible label.
|
|
105
|
+
* @param [ariaDescribedBy] - Ids of extra elements describing the field, e.g. an error rendered outside it; the field's own `error`/`caption` are linked automatically.
|
|
104
106
|
* @param [searchable=false] - Show a search field in the overlay header.
|
|
105
107
|
* @param [searchSize=ElementSize.Standard] - Size of the overlay search input when `searchable` is enabled.
|
|
106
108
|
* @param [searchPlaceholder] - Placeholder for the overlay search input.
|
|
@@ -1,15 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { extendTailwindMerge as
|
|
3
|
-
const
|
|
1
|
+
import i from "classnames";
|
|
2
|
+
import { extendTailwindMerge as t } from "../node_modules/tailwind-merge/dist/bundle-mjs.js";
|
|
3
|
+
const l = [
|
|
4
|
+
"display1",
|
|
5
|
+
"display2",
|
|
6
|
+
"display3",
|
|
7
|
+
"h1",
|
|
8
|
+
"h2",
|
|
9
|
+
"h3",
|
|
10
|
+
"body",
|
|
11
|
+
"body-semi",
|
|
12
|
+
"body-paragraph",
|
|
13
|
+
"body-paragraph-semi",
|
|
14
|
+
"small",
|
|
15
|
+
"small-semi",
|
|
16
|
+
"small-paragraph",
|
|
17
|
+
"small-paragraph-semi",
|
|
18
|
+
"tiny",
|
|
19
|
+
"tiny-semi",
|
|
20
|
+
"tiny-lead",
|
|
21
|
+
"tiny-lead-semi",
|
|
22
|
+
"caption",
|
|
23
|
+
"caption-lead-semi",
|
|
24
|
+
"code",
|
|
25
|
+
"italic",
|
|
26
|
+
"small-italic",
|
|
27
|
+
"tiny-italic",
|
|
28
|
+
"caption-italic"
|
|
29
|
+
], e = t({
|
|
4
30
|
extend: {
|
|
5
31
|
classGroups: {
|
|
6
|
-
z: [{ z: ["popup", "floating", "interactive-tooltip", "tooltip"] }]
|
|
32
|
+
z: [{ z: ["popup", "floating", "interactive-tooltip", "tooltip"] }],
|
|
33
|
+
"dial-typography": l.map(
|
|
34
|
+
(a) => `dial-${a}-text`
|
|
35
|
+
)
|
|
7
36
|
}
|
|
8
37
|
}
|
|
9
38
|
});
|
|
10
|
-
function
|
|
11
|
-
return
|
|
39
|
+
function o(...a) {
|
|
40
|
+
return e(i(a));
|
|
12
41
|
}
|
|
13
42
|
export {
|
|
14
|
-
|
|
43
|
+
o as mergeClasses
|
|
15
44
|
};
|
package/package.json
CHANGED
package/dist/lazy-_W6FYhKg.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=(r=>(r.dark="dark",r.light="light",r))(o||{});const e=()=>Promise.resolve().then(()=>require("./JsonEditor-Bxui5wJH.cjs")),i=()=>Promise.resolve().then(()=>require("./MarkdownEditor-Bapd1ycU.cjs")),a=()=>Promise.resolve().then(()=>require("./MarkdownEditor-BKtFs714.cjs"));exports.EditorThemes=o;exports.LazyDialJsonEditor=e;exports.LazyDialMarkdownEditor=i;exports.LazyMarkdownEditor=a;
|