@zimyo/ui 1.9.0 → 1.9.1
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/AppList/index.esm.js +5 -5
- package/dist/Badge/index.esm.js +1 -1
- package/dist/BulkActionsBar/index.esm.js +5 -5
- package/dist/DatePicker/index.esm.js +5 -5
- package/dist/DateRangePicker/index.esm.js +5 -5
- package/dist/Form/index.esm.js +2 -2
- package/dist/Popover/index.esm.js +1 -1
- package/dist/Table/index.d.ts +1 -0
- package/dist/Table/index.esm.js +2 -2
- package/dist/Tabs/index.esm.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +3 -3
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import{jsx as r,jsxs as o,Fragment as e}from"react/jsx-runtime";import{forwardRef as i,createElement as t,useState as n,useMemo as a}from"react";import c from"@mui/material/IconButton";import{
|
|
1
|
+
import{jsx as r,jsxs as o,Fragment as e}from"react/jsx-runtime";import{forwardRef as i,createElement as t,useState as n,useMemo as a}from"react";import c from"@mui/material/IconButton";import{Popover as l,Fade as d,ListItemButton as s}from"@mui/material";import p from"@mui/material/List";import m from"@mui/material/ListItemText";import u from"@mui/material/ListItemIcon";var h=function(){return h=Object.assign||function(r){for(var o,e=1,i=arguments.length;e<i;e++)for(var t in o=arguments[e])Object.prototype.hasOwnProperty.call(o,t)&&(r[t]=o[t]);return r},h.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var f=function(o){var e=o.open,i=o.onClose,t=o.anchorEl,n=o.children,a=o.width,c=o.maxWidth,s=void 0===c?"100%":c,p=o.minWidth,m=o.padding,u=void 0===m?2:m,f=o.border,v=void 0===f||f,y=o.anchorOrigin,b=void 0===y?{vertical:"bottom",horizontal:"left"}:y,g=o.transformOrigin,x=void 0===g?{vertical:"top",horizontal:"left"}:g,k=function(r,o){var e={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&o.indexOf(i)<0&&(e[i]=r[i]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(r);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(r,i[t])&&(e[i[t]]=r[i[t]])}return e}(o,["open","onClose","anchorEl","children","width","maxWidth","minWidth","padding","border","anchorOrigin","transformOrigin"]);return r(l,h({open:e,onClose:i,anchorEl:t,anchorOrigin:b,transformOrigin:x,TransitionComponent:d,transitionDuration:180,slotProps:{paper:{sx:{boxShadow:"0px 4px 32px rgba(0,0,0,0.08), 0px 1.5px 6px rgba(0,0,0,0.06)",border:v?"1px solid #e5e7eb":"none",borderRadius:1,background:"#fff",width:a,minWidth:p,maxWidth:s,p:u,transition:"opacity 180ms cubic-bezier(0.4,0,0.2,1), transform 180ms cubic-bezier(0.4,0,0.2,1)",opacity:e?1:0,transform:e?"scale(1)":"scale(0.95)"}}}},k,{children:n}))};
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.525.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
|
-
*/const
|
|
7
|
+
*/const v=r=>{const o=(r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,e)=>e?e.toUpperCase():o.toLowerCase()))(r);return o.charAt(0).toUpperCase()+o.slice(1)},y=(...r)=>r.filter((r,o,e)=>Boolean(r)&&""!==r.trim()&&e.indexOf(r)===o).join(" ").trim(),b=r=>{for(const o in r)if(o.startsWith("aria-")||"role"===o||"title"===o)return!0};
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.525.0 - ISC
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the ISC license.
|
|
12
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
14
|
+
var g={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"};
|
|
15
15
|
/**
|
|
16
16
|
* @license lucide-react v0.525.0 - ISC
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the ISC license.
|
|
19
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/const
|
|
20
|
+
*/const x=i(({color:r="currentColor",size:o=24,strokeWidth:e=2,absoluteStrokeWidth:i,className:n="",children:a,iconNode:c,...l},d)=>t("svg",{ref:d,...g,width:o,height:o,stroke:r,strokeWidth:i?24*Number(e)/Number(o):e,className:y("lucide",n),...!a&&!b(l)&&{"aria-hidden":"true"},...l},[...c.map(([r,o])=>t(r,o)),...Array.isArray(a)?a:[a]])),k=((r,o)=>{const e=i(({className:e,...i},n)=>{return t(x,{ref:n,iconNode:o,className:y(`lucide-${a=v(r),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${r}`,e),...i});var a});return e.displayName=v(r),e})("grip",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"19",cy:"5",r:"1",key:"w8mnmm"}],["circle",{cx:"5",cy:"5",r:"1",key:"lttvr7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}],["circle",{cx:"19",cy:"19",r:"1",key:"shf9b7"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]);
|
|
21
21
|
/**
|
|
22
22
|
* @license lucide-react v0.525.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var
|
|
26
|
+
*/var w=function(i){var t=i.apps,l=void 0===t?[]:t,d=i.icon,v=void 0===d?k:d,y=i.urlKey,b=void 0===y?"url":y,g=i.nameKey,x=void 0===g?"name":g,w=i.appIconKey,O=void 0===w?"appIcon":w,C=i.iconProps,P=void 0===C?{}:C,W=i.popoverProps,j=void 0===W?{}:W,z=i.listProps,I=void 0===z?{}:z,N=i.listItemProps,E=void 0===N?{}:N,L=i.listItemTextProps,S=void 0===L?{}:L,A=i.width,B=void 0===A?240:A,T=i.padding,$=void 0===T?0:T,K=i.border,U=void 0===K||K,Z=i.target,_=void 0===Z?"_blank":Z,q=n(null),D=q[0],R=q[1],F=Boolean(D)?"simple-popover":void 0,G=a(function(){return null==l?void 0:l.filter(function(r){return r.display})},[l]);return o(e,{children:[r(c,h({"aria-describedby":F,onClick:function(r){R(r.currentTarget)}},P,{children:r(v,{})})),r(f,h({open:Boolean(D),onClose:function(){R(null)},anchorEl:D,width:B,padding:$,border:U,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},j,{children:r(p,h({disablePadding:!0},I,{children:G.map(function(e,i){return o(s,h({component:"div",sx:{":hover":{backgroundColor:e.backgroundColor}},onClick:function(){return window.open(e[b],_)}},E,{children:[e[O]?r(u,{sx:{minWidth:30,backgroundColor:e.backgroundColor},children:r("img",{width:22,height:22,src:e[O],alt:e.name})}):null,r(m,h({sx:{ml:1},primaryTypographyProps:{variant:"body2",fontWeight:500},primary:e[x]},S))]}),i)})}))}))]})};export{w as AppList,w as default};
|
package/dist/Badge/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import"react";import{Typography as r}from"@mui/material";function o(e){var r,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=o(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function t(){for(var e,r,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=o(e))&&(n&&(n+=" "),n+=r);return n}const n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=t,s=e=>{const r=c(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),l(o,r)||d(e)},getConflictingClassGroupIds:(e,r)=>{const n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},l=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),n=t?l(e.slice(1),t):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},i=/^\[(.+)\]$/,d=e=>{if(i.test(e)){const r=i.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},c=e=>{const{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(const e in o)m(o[e],t,e,r);return t},m=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:u(r,e)).classGroupId=o)}if("function"==typeof e)return p(e)?void m(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,n])=>{m(n,u(r,e),o,t)})})},u=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},p=e=>e.isThemeGetter,b=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const n=(n,a)=>{o.set(n,a),r++,r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},f=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=e=>{const r=[];let o,t=0,n=0,a=0;for(let s=0;s<e.length;s++){let l=e[s];if(0===t&&0===n){if(":"===l){r.push(e.slice(a,s)),a=s+1;continue}if("/"===l){o=s;continue}}"["===l?t++:"]"===l?t--:"("===l?n++:")"===l&&n--}const s=0===r.length?e:e.substring(a),l=g(s);return{modifiers:r,hasImportantModifier:l!==s,baseClassName:l,maybePostfixModifierPosition:o&&o>a?o-a:void 0}};if(r){const e=r+":",o=t;t=r=>r.startsWith(e)?o(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(o){const e=t;t=r=>o({className:r,parseClassName:e})}return t},g=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,h=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const o=[];let t=[];return e.forEach(e=>{"["===e[0]||r[e]?(o.push(...t.sort(),e),t=[]):t.push(e)}),o.push(...t.sort()),o}},x=/\s+/;function v(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=y(e))&&(t&&(t+=" "),t+=r);return t}const y=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=y(e[t]))&&(o&&(o+=" "),o+=r);return o};function k(e,...r){let o,t,n,a=function(i){const d=r.reduce((e,r)=>r(e),e());return o=(e=>({cache:b(e.cacheSize),parseClassName:f(e),sortModifiers:h(e),...s(e)}))(d),t=o.cache.get,n=o.cache.set,a=l,l(i)};function l(e){const r=t(e);if(r)return r;const a=((e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:a}=r,s=[],l=e.trim().split(x);let i="";for(let e=l.length-1;e>=0;e-=1){const r=l[e],{isExternal:d,modifiers:c,hasImportantModifier:m,baseClassName:u,maybePostfixModifierPosition:p}=o(r);if(d){i=r+(i.length>0?" "+i:i);continue}let b=!!p,f=t(b?u.substring(0,p):u);if(!f){if(!b){i=r+(i.length>0?" "+i:i);continue}if(f=t(u),!f){i=r+(i.length>0?" "+i:i);continue}b=!1}const g=a(c).join(":"),h=m?g+"!":g,x=h+f;if(s.includes(x))continue;s.push(x);const v=n(f,b);for(let e=0;e<v.length;++e){const r=v[e];s.push(h+r)}i=r+(i.length>0?" "+i:i)}return i})(e,o);return n(e,a),a}return function(){return a(v.apply(null,arguments))}}const w=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},z=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,N=/^\d+\/\d+$/,C=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P=/\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$/,O=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>N.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),S=e=>e.endsWith("%")&&E(e.slice(0,-1)),W=e=>C.test(e),A=()=>!0,V=e=>P.test(e)&&!O.test(e),q=()=>!1,T=e=>M.test(e),_=e=>G.test(e),B=e=>!F(e)&&!R(e),D=e=>oe(e,se,q),F=e=>z.test(e),H=e=>oe(e,le,V),J=e=>oe(e,ie,E),K=e=>oe(e,ne,q),L=e=>oe(e,ae,_),Q=e=>oe(e,ce,T),R=e=>j.test(e),U=e=>te(e,le),X=e=>te(e,de),Y=e=>te(e,ne),Z=e=>te(e,se),ee=e=>te(e,ae),re=e=>te(e,ce,!0),oe=(e,r,o)=>{const t=z.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},te=(e,r,o=!1)=>{const t=j.exec(e);return!!t&&(t[1]?r(t[1]):o)},ne=e=>"position"===e||"percentage"===e,ae=e=>"image"===e||"url"===e,se=e=>"length"===e||"size"===e||"bg-size"===e,le=e=>"length"===e,ie=e=>"number"===e,de=e=>"family-name"===e,ce=e=>"shadow"===e,me=k(()=>{const e=w("color"),r=w("font"),o=w("text"),t=w("font-weight"),n=w("tracking"),a=w("leading"),s=w("breakpoint"),l=w("container"),i=w("spacing"),d=w("radius"),c=w("shadow"),m=w("inset-shadow"),u=w("text-shadow"),p=w("drop-shadow"),b=w("blur"),f=w("perspective"),g=w("aspect"),h=w("ease"),x=w("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",R,F],y=()=>[R,F,i],k=()=>[I,"full","auto",...y()],z=()=>[$,"none","subgrid",R,F],j=()=>["auto",{span:["full",$,R,F]},$,R,F],N=()=>[$,"auto",R,F],C=()=>["auto","min","max","fr",R,F],P=()=>["auto",...y()],O=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],M=()=>[e,R,F],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Y,K,{position:[R,F]}],V=()=>["auto","cover","contain",Z,D,{size:[R,F]}],q=()=>[S,U,H],T=()=>["","none","full",d,R,F],_=()=>["",E,U,H],oe=()=>[E,S,Y,K],te=()=>["","none",b,R,F],ne=()=>["none",E,R,F],ae=()=>["none",E,R,F],se=()=>[E,R,F],le=()=>[I,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[W],breakpoint:[W],color:[A],container:[W],"drop-shadow":[W],ease:["in","out","in-out"],font:[B],"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",I,F,R,g]}],container:["container"],columns:[{columns:[E,F,R,l]}],"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",R,F]}],basis:[{basis:[I,"full","auto",l,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,I,"auto","initial","none",F]}],grow:[{grow:["",E,R,F]}],shrink:[{shrink:["",E,R,F]}],order:[{order:[$,"first","last","none",R,F]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],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:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[l,"screen",...O()]}],"min-w":[{"min-w":[l,"screen","none",...O()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,U,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,R,J]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",S,F]}],"font-family":[{font:[X,F,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,R,F]}],"line-clamp":[{"line-clamp":[E,"none",R,J]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":["none",R,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"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",R,H]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[E,"auto",R,F]}],"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",R,F]}],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",R,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,R,F],radial:["",R,F],conic:[$,R,F]},ee,L]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"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:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[E,R,F]}],"outline-w":[{outline:["",E,U,H]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",c,re,Q]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",m,re,Q]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[E,H]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",u,re,Q]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[E,R,F]}],"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":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[R,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,F]}],filter:[{filter:["","none",R,F]}],blur:[{blur:te()}],brightness:[{brightness:[E,R,F]}],contrast:[{contrast:[E,R,F]}],"drop-shadow":[{"drop-shadow":["","none",p,re,Q]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",E,R,F]}],"hue-rotate":[{"hue-rotate":[E,R,F]}],invert:[{invert:["",E,R,F]}],saturate:[{saturate:[E,R,F]}],sepia:[{sepia:["",E,R,F]}],"backdrop-filter":[{"backdrop-filter":["","none",R,F]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[E,R,F]}],"backdrop-contrast":[{"backdrop-contrast":[E,R,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,R,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,R,F]}],"backdrop-invert":[{"backdrop-invert":["",E,R,F]}],"backdrop-opacity":[{"backdrop-opacity":[E,R,F]}],"backdrop-saturate":[{"backdrop-saturate":[E,R,F]}],"backdrop-sepia":[{"backdrop-sepia":["",E,R,F]}],"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",R,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",R,F]}],ease:[{ease:["linear","initial",h,R,F]}],delay:[{delay:[E,R,F]}],animate:[{animate:["none",x,R,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,R,F]}],"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:[R,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",R,F]}],"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",R,F]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[E,U,H,J]}],stroke:[{stroke:["none",...M()]}],"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"]}});var ue=function(){return ue=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},ue.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var pe,be,fe=function(o){var t=o.size,n=void 0===t?"md":t,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size"]);return e(r,ue({variant:{sm:"body2",md:"body1",lg:"subtitle1"}[n],component:a.component||"p"},a))},ge=(pe="zui:inline-flex zui:items-center zui:rounded-full zui:font-medium zui:gap-2",be={variants:{variant:{contained:"",outlined:"zui:border zui:bg-transparent",text:"zui:bg-transparent zui:border-transparent"},size:{sm:"zui:text-xs zui:px-2 zui:py-0.5",md:"zui:text-sm zui:px-3 zui:py-1",lg:"zui:text-base zui:px-4 zui:py-1.5"},type:{success:"",warning:"",error:"",info:"",default:""}},defaultVariants:{variant:"contained",size:"md",type:"default"}},e=>{var r;if(null==(null==be?void 0:be.variants))return a(pe,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:o,defaultVariants:t}=be,s=Object.keys(o).map(r=>{const a=null==e?void 0:e[r],s=null==t?void 0:t[r];if(null===a)return null;const l=n(a)||n(s);return o[r][l]}),l=e&&Object.entries(e).reduce((e,r)=>{let[o,t]=r;return void 0===t||(e[o]=t),e},{}),i=null==be||null===(r=be.compoundVariants)||void 0===r?void 0:r.reduce((e,r)=>{let{class:o,className:n,...a}=r;return Object.entries(a).every(e=>{let[r,o]=e;return Array.isArray(o)?o.includes({...t,...l}[r]):{...t,...l}[r]===o})?[...e,o,n]:e},[]);return a(pe,s,i,null==e?void 0:e.class,null==e?void 0:e.className)}),he={success:{bg:"zui:bg-green-100",text:"zui:text-green-700",border:"zui:border-green-700"},warning:{bg:"zui:bg-yellow-100",text:"zui:text-yellow-600",border:"zui:border-yellow-600"},error:{bg:"zui:bg-red-100",text:"zui:text-red-700",border:"zui:border-red-700"},info:{bg:"zui:bg-blue-100",text:"zui:text-blue-700",border:"zui:border-blue-700"},default:{bg:"zui:bg-gray-100",text:"zui:text-gray-800",border:"zui:border-gray-800"}},xe=function(r){var o,n,a,s=r.label,l=r.icon,i=r.iconPosition,d=void 0===i?"start":i,c=r.dot,m=void 0!==c&&c,u=r.dotPosition,p=void 0===u?"start":u,b=r.variant,f=void 0===b?"contained":b,g=r.size,h=void 0===g?"md":g,x=r.type,v=void 0===x?"default":x,y=r.color,k=r.className,w=he[v],z={bg:null!==(o=null==y?void 0:y.bg)&&void 0!==o?o:w.bg,text:null!==(n=null==y?void 0:y.text)&&void 0!==n?n:w.text,border:null!==(a=null==y?void 0:y.border)&&void 0!==a?a:w.border},j=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return me(t(e))}(ge({variant:f,size:h,type:v}),"string"==typeof(null==y?void 0:y.bg)?"":"contained"===f?z.bg:"","string"==typeof(null==y?void 0:y.text)?"":z.text,"string"==typeof(null==y?void 0:y.border)?"":"outlined"===f?z.border:"",k),N={backgroundColor:"contained"===f?null==y?void 0:y.bg:void 0,color:null==y?void 0:y.text,borderColor:"outlined"===f?null==y?void 0:y.border:void 0},C=m&&e("span",{className:"zui:w-2 zui:h-2 zui:rounded-full zui:bg-current zui:inline-block"}),P=[];return m&&"start"===p&&P.push(C),l&&"start"===d&&P.push(l),P.push(e("span",{children:s},"label")),l&&"end"===d&&P.push(l),m&&"end"===p&&P.push(C),e(fe,{size:"sm",fontWeight:500,className:j,style:N,children:P})};export{xe as Badge,xe as default};
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import"react";import{Typography as r}from"@mui/material";function o(e){var r,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=o(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function t(){for(var e,r,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=o(e))&&(n&&(n+=" "),n+=r);return n}const n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=t,s=e=>{const r=c(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),l(o,r)||d(e)},getConflictingClassGroupIds:(e,r)=>{const n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},l=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),n=t?l(e.slice(1),t):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},i=/^\[(.+)\]$/,d=e=>{if(i.test(e)){const r=i.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},c=e=>{const{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(const e in o)m(o[e],t,e,r);return t},m=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:u(r,e)).classGroupId=o)}if("function"==typeof e)return p(e)?void m(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,n])=>{m(n,u(r,e),o,t)})})},u=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},p=e=>e.isThemeGetter,b=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const n=(n,a)=>{o.set(n,a),r++,r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},f=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=e=>{const r=[];let o,t=0,n=0,a=0;for(let s=0;s<e.length;s++){let l=e[s];if(0===t&&0===n){if(":"===l){r.push(e.slice(a,s)),a=s+1;continue}if("/"===l){o=s;continue}}"["===l?t++:"]"===l?t--:"("===l?n++:")"===l&&n--}const s=0===r.length?e:e.substring(a),l=g(s);return{modifiers:r,hasImportantModifier:l!==s,baseClassName:l,maybePostfixModifierPosition:o&&o>a?o-a:void 0}};if(r){const e=r+":",o=t;t=r=>r.startsWith(e)?o(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(o){const e=t;t=r=>o({className:r,parseClassName:e})}return t},g=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,h=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const o=[];let t=[];return e.forEach(e=>{"["===e[0]||r[e]?(o.push(...t.sort(),e),t=[]):t.push(e)}),o.push(...t.sort()),o}},x=/\s+/;function v(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=y(e))&&(t&&(t+=" "),t+=r);return t}const y=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=y(e[t]))&&(o&&(o+=" "),o+=r);return o};function k(e,...r){let o,t,n,a=function(i){const d=r.reduce((e,r)=>r(e),e());return o=(e=>({cache:b(e.cacheSize),parseClassName:f(e),sortModifiers:h(e),...s(e)}))(d),t=o.cache.get,n=o.cache.set,a=l,l(i)};function l(e){const r=t(e);if(r)return r;const a=((e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:a}=r,s=[],l=e.trim().split(x);let i="";for(let e=l.length-1;e>=0;e-=1){const r=l[e],{isExternal:d,modifiers:c,hasImportantModifier:m,baseClassName:u,maybePostfixModifierPosition:p}=o(r);if(d){i=r+(i.length>0?" "+i:i);continue}let b=!!p,f=t(b?u.substring(0,p):u);if(!f){if(!b){i=r+(i.length>0?" "+i:i);continue}if(f=t(u),!f){i=r+(i.length>0?" "+i:i);continue}b=!1}const g=a(c).join(":"),h=m?g+"!":g,x=h+f;if(s.includes(x))continue;s.push(x);const v=n(f,b);for(let e=0;e<v.length;++e){const r=v[e];s.push(h+r)}i=r+(i.length>0?" "+i:i)}return i})(e,o);return n(e,a),a}return function(){return a(v.apply(null,arguments))}}const w=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},z=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,N=/^\d+\/\d+$/,C=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P=/\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$/,O=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,M=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>N.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),S=e=>e.endsWith("%")&&E(e.slice(0,-1)),W=e=>C.test(e),A=()=>!0,V=e=>P.test(e)&&!O.test(e),q=()=>!1,T=e=>M.test(e),_=e=>G.test(e),B=e=>!F(e)&&!R(e),D=e=>oe(e,se,q),F=e=>z.test(e),H=e=>oe(e,le,V),J=e=>oe(e,ie,E),K=e=>oe(e,ne,q),L=e=>oe(e,ae,_),Q=e=>oe(e,ce,T),R=e=>j.test(e),U=e=>te(e,le),X=e=>te(e,de),Y=e=>te(e,ne),Z=e=>te(e,se),ee=e=>te(e,ae),re=e=>te(e,ce,!0),oe=(e,r,o)=>{const t=z.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},te=(e,r,o=!1)=>{const t=j.exec(e);return!!t&&(t[1]?r(t[1]):o)},ne=e=>"position"===e||"percentage"===e,ae=e=>"image"===e||"url"===e,se=e=>"length"===e||"size"===e||"bg-size"===e,le=e=>"length"===e,ie=e=>"number"===e,de=e=>"family-name"===e,ce=e=>"shadow"===e,me=k(()=>{const e=w("color"),r=w("font"),o=w("text"),t=w("font-weight"),n=w("tracking"),a=w("leading"),s=w("breakpoint"),l=w("container"),i=w("spacing"),d=w("radius"),c=w("shadow"),m=w("inset-shadow"),u=w("text-shadow"),p=w("drop-shadow"),b=w("blur"),f=w("perspective"),g=w("aspect"),h=w("ease"),x=w("animate"),v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",R,F],y=()=>[R,F,i],k=()=>[I,"full","auto",...y()],z=()=>[$,"none","subgrid",R,F],j=()=>["auto",{span:["full",$,R,F]},$,R,F],N=()=>[$,"auto",R,F],C=()=>["auto","min","max","fr",R,F],P=()=>["auto",...y()],O=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],M=()=>[e,R,F],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Y,K,{position:[R,F]}],V=()=>["auto","cover","contain",Z,D,{size:[R,F]}],q=()=>[S,U,H],T=()=>["","none","full",d,R,F],_=()=>["",E,U,H],oe=()=>[E,S,Y,K],te=()=>["","none",b,R,F],ne=()=>["none",E,R,F],ae=()=>["none",E,R,F],se=()=>[E,R,F],le=()=>[I,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[W],breakpoint:[W],color:[A],container:[W],"drop-shadow":[W],ease:["in","out","in-out"],font:[B],"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",I,F,R,g]}],container:["container"],columns:[{columns:[E,F,R,l]}],"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",R,F]}],basis:[{basis:[I,"full","auto",l,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,I,"auto","initial","none",F]}],grow:[{grow:["",E,R,F]}],shrink:[{shrink:["",E,R,F]}],order:[{order:[$,"first","last","none",R,F]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],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:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[l,"screen",...O()]}],"min-w":[{"min-w":[l,"screen","none",...O()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,U,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,R,J]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",S,F]}],"font-family":[{font:[X,F,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,R,F]}],"line-clamp":[{"line-clamp":[E,"none",R,J]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":["none",R,F]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"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",R,H]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[E,"auto",R,F]}],"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",R,F]}],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",R,F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,R,F],radial:["",R,F],conic:[$,R,F]},ee,L]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"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:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[E,R,F]}],"outline-w":[{outline:["",E,U,H]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",c,re,Q]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",m,re,Q]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[E,H]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",u,re,Q]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[E,R,F]}],"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":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[R,F]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,F]}],filter:[{filter:["","none",R,F]}],blur:[{blur:te()}],brightness:[{brightness:[E,R,F]}],contrast:[{contrast:[E,R,F]}],"drop-shadow":[{"drop-shadow":["","none",p,re,Q]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",E,R,F]}],"hue-rotate":[{"hue-rotate":[E,R,F]}],invert:[{invert:["",E,R,F]}],saturate:[{saturate:[E,R,F]}],sepia:[{sepia:["",E,R,F]}],"backdrop-filter":[{"backdrop-filter":["","none",R,F]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[E,R,F]}],"backdrop-contrast":[{"backdrop-contrast":[E,R,F]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,R,F]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,R,F]}],"backdrop-invert":[{"backdrop-invert":["",E,R,F]}],"backdrop-opacity":[{"backdrop-opacity":[E,R,F]}],"backdrop-saturate":[{"backdrop-saturate":[E,R,F]}],"backdrop-sepia":[{"backdrop-sepia":["",E,R,F]}],"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",R,F]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",R,F]}],ease:[{ease:["linear","initial",h,R,F]}],delay:[{delay:[E,R,F]}],animate:[{animate:["none",x,R,F]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,R,F]}],"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:[R,F,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",R,F]}],"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",R,F]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[E,U,H,J]}],stroke:[{stroke:["none",...M()]}],"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"]}});var ue=function(){return ue=Object.assign||function(e){for(var r,o=1,t=arguments.length;o<t;o++)for(var n in r=arguments[o])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},ue.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var pe,be,fe=function(o){var t=o.size,n=void 0===t?"md":t,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size"]);return e(r,ue({variant:{sm:"body2",md:"body1",lg:"subtitle1"}[n],component:a.component||"p"},a))},ge=(pe="zui:inline-flex zui:items-center zui:rounded-full zui:font-medium zui:gap-2",be={variants:{variant:{contained:"",outlined:"zui:border zui:bg-transparent",text:"zui:bg-transparent zui:border-transparent"},size:{sm:"zui:text-xs zui:px-2 zui:py-0.5",md:"zui:text-sm zui:px-3 zui:py-1",lg:"zui:text-base zui:px-4 zui:py-1.5"},type:{success:"",warning:"",error:"",info:"",default:""}},defaultVariants:{variant:"contained",size:"md",type:"default"}},e=>{var r;if(null==(null==be?void 0:be.variants))return a(pe,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:o,defaultVariants:t}=be,s=Object.keys(o).map(r=>{const a=null==e?void 0:e[r],s=null==t?void 0:t[r];if(null===a)return null;const l=n(a)||n(s);return o[r][l]}),l=e&&Object.entries(e).reduce((e,r)=>{let[o,t]=r;return void 0===t||(e[o]=t),e},{}),i=null==be||null===(r=be.compoundVariants)||void 0===r?void 0:r.reduce((e,r)=>{let{class:o,className:n,...a}=r;return Object.entries(a).every(e=>{let[r,o]=e;return Array.isArray(o)?o.includes({...t,...l}[r]):{...t,...l}[r]===o})?[...e,o,n]:e},[]);return a(pe,s,i,null==e?void 0:e.class,null==e?void 0:e.className)}),he={success:{bg:"zui:bg-green-100",text:"zui:text-green-700",border:"zui:border-green-700"},warning:{bg:"zui:bg-yellow-100",text:"zui:text-yellow-600",border:"zui:border-yellow-600"},error:{bg:"zui:bg-red-100",text:"zui:text-red-700",border:"zui:border-red-700"},info:{bg:"zui:bg-blue-100",text:"zui:text-blue-700",border:"zui:border-blue-700"},default:{bg:"zui:bg-gray-100",text:"zui:text-gray-800",border:"zui:border-gray-800"}},xe=function(r){var o,n,a,s=r.label,l=r.icon,i=r.iconPosition,d=void 0===i?"start":i,c=r.dot,m=void 0!==c&&c,u=r.dotPosition,p=void 0===u?"start":u,b=r.variant,f=void 0===b?"contained":b,g=r.size,h=void 0===g?"md":g,x=r.type,v=void 0===x?"default":x,y=r.color,k=r.className,w=he[v],z={bg:null!==(o=null==y?void 0:y.bg)&&void 0!==o?o:w.bg,text:null!==(n=null==y?void 0:y.text)&&void 0!==n?n:w.text,border:null!==(a=null==y?void 0:y.border)&&void 0!==a?a:w.border},j=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return me(t(e))}(ge({variant:f,size:h,type:v}),"string"==typeof(null==y?void 0:y.bg)?"":"contained"===f?z.bg:"","string"==typeof(null==y?void 0:y.text)?"":z.text,"string"==typeof(null==y?void 0:y.border)?"":"outlined"===f?z.border:"",k),N={backgroundColor:"contained"===f?null==y?void 0:y.bg:void 0,color:null==y?void 0:y.text,borderColor:"outlined"===f?null==y?void 0:y.border:void 0},C=m&&e("span",{className:"zui:w-2 zui:h-2 zui:rounded-full zui:bg-current zui:inline-block"}),P=[];return m&&"start"===p&&P.push(C),l&&"start"===d&&P.push(l),P.push(e("span",{children:s},"label")),l&&"end"===d&&P.push(l),m&&"end"===p&&P.push(C),e(fe,{fontWeight:600,className:j,style:N,children:P})};export{xe as Badge,xe as default};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import{jsx as i,jsxs as
|
|
1
|
+
import{jsx as i,jsxs as r,Fragment as e}from"react/jsx-runtime";import o,{forwardRef as t,createElement as n,useState as a}from"react";import{Button as l,CircularProgress as s,Typography as d,Popover as c,Fade as u,ListItemButton as p,IconButton as m}from"@mui/material";import h from"@mui/material/List";import b from"@mui/material/ListItemText";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.525.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
|
-
*/const f=i=>{const
|
|
7
|
+
*/const f=i=>{const r=(i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,e)=>e?e.toUpperCase():r.toLowerCase()))(i);return r.charAt(0).toUpperCase()+r.slice(1)},z=(...i)=>i.filter((i,r,e)=>Boolean(i)&&""!==i.trim()&&e.indexOf(i)===r).join(" ").trim(),v=i=>{for(const r in i)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.525.0 - ISC
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the ISC license.
|
|
12
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
14
|
+
var g={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"};
|
|
15
15
|
/**
|
|
16
16
|
* @license lucide-react v0.525.0 - ISC
|
|
17
17
|
*
|
|
18
18
|
* This source code is licensed under the ISC license.
|
|
19
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/const
|
|
20
|
+
*/const x=t(({color:i="currentColor",size:r=24,strokeWidth:e=2,absoluteStrokeWidth:o,className:t="",children:a,iconNode:l,...s},d)=>n("svg",{ref:d,...g,width:r,height:r,stroke:i,strokeWidth:o?24*Number(e)/Number(r):e,className:z("lucide",t),...!a&&!v(s)&&{"aria-hidden":"true"},...s},[...l.map(([i,r])=>n(i,r)),...Array.isArray(a)?a:[a]])),y=(i,r)=>{const e=t(({className:e,...o},t)=>{return n(x,{ref:t,iconNode:r,className:z(`lucide-${a=f(i),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${i}`,e),...o});var a});return e.displayName=f(i),e},w=y("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),O=y("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
|
|
21
21
|
/**
|
|
22
22
|
* @license lucide-react v0.525.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var
|
|
26
|
+
*/var k=function(){return k=Object.assign||function(i){for(var r,e=1,o=arguments.length;e<o;e++)for(var t in r=arguments[e])Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=r[t]);return i},k.apply(this,arguments)};function C(i,r){var e={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&r.indexOf(o)<0&&(e[o]=i[o]);if(null!=i&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(i);t<o.length;t++)r.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(i,o[t])&&(e[o[t]]=i[o[t]])}return e}"function"==typeof SuppressedError&&SuppressedError;var N=o.forwardRef(function(r,e){var o=r.children,t=r.loading,n=void 0!==t&&t,a=r.loadingText,d=r.loaderSize,c=void 0===d?18:d,u=r.loaderPosition,p=void 0===u?"start":u,m=r.variant,h=void 0===m?"contained":m,b=r.color,f=void 0===b?"primary":b,z=r.size,v=void 0===z?"medium":z,g=r.sx,x=void 0===g?{}:g,y=r.disabled,w=r.startIcon,O=r.endIcon,N=C(r,["children","loading","loadingText","loaderSize","loaderPosition","variant","color","size","sx","disabled","startIcon","endIcon"]),W=n&&"end"===p,j=n&&"center"===p;return i(l,k({ref:e,variant:h,color:f,disabled:y||n,size:v,startIcon:n&&"start"===p?i(s,{size:c,color:"inherit"}):w,endIcon:W?i(s,{size:c,color:"inherit"}):O,sx:k({position:"relative"},x)},N,{children:j?i(s,{size:c,color:"inherit"}):n&&a?a:o}))});N.displayName="Button";var W=function(r){var e=r.size,o=void 0===e?"md":e,t=C(r,["size"]);return i(d,k({variant:{sm:"body2",md:"body1",lg:"subtitle1"}[o],component:t.component||"p"},t))},j=function(r){var e=r.open,o=r.onClose,t=r.anchorEl,n=r.children,a=r.width,l=r.maxWidth,s=void 0===l?"100%":l,d=r.minWidth,p=r.padding,m=void 0===p?2:p,h=r.border,b=void 0===h||h,f=r.anchorOrigin,z=void 0===f?{vertical:"bottom",horizontal:"left"}:f,v=r.transformOrigin,g=void 0===v?{vertical:"top",horizontal:"left"}:v,x=C(r,["open","onClose","anchorEl","children","width","maxWidth","minWidth","padding","border","anchorOrigin","transformOrigin"]);return i(c,k({open:e,onClose:o,anchorEl:t,anchorOrigin:z,transformOrigin:g,TransitionComponent:u,transitionDuration:180,slotProps:{paper:{sx:{boxShadow:"0px 4px 32px rgba(0,0,0,0.08), 0px 1.5px 6px rgba(0,0,0,0.06)",border:b?"1px solid #e5e7eb":"none",borderRadius:1,background:"#fff",width:a,minWidth:d,maxWidth:s,p:m,transition:"opacity 180ms cubic-bezier(0.4,0,0.2,1), transform 180ms cubic-bezier(0.4,0,0.2,1)",opacity:e?1:0,transform:e?"scale(1)":"scale(0.95)"}}}},x,{children:n}))},P=function(o){var t=o.selectedRows,n=o.totalRows,l=o.bulkActions,s=o.clearSelection,d=o.maxVisibleActions,c=void 0===d?3:d,u=a(null),f=u[0],z=u[1],v=l.slice(0,c),g=l.slice(c),x=function(){z(null)},y=Boolean(f);return 0===t.length?null:r("div",{className:"zui:bg-blue-100 zui:border zui:border-blue-200 zui:shadow-sm zui:py-1 zui:px-2 zui:rounded-md zui:flex zui:justify-between zui:items-center zui:gap-2 zui:flex-wrap",children:[r(W,{size:"sm",fontWeight:500,className:"zui:text-blue-700 zui:mr-4",children:[t.length," of ",n," selected"]}),r("div",{className:"zui:flex zui:flex-row zui:gap-1.5",children:[v.map(function(r){return i(N,{className:"zui:h-8 zui:bg-white zui:text-blue-700 zui:text-xs zui:border-1 zui:border-gray-100",startIcon:r.icon,size:"small",variant:"text",disabled:r.disabled,onClick:function(){return r.onClick(t)},title:r.label,children:r.label},r.id)}),g.length>0&&r(e,{children:[r(N,{size:"small",variant:"text",className:"zui:h-8 zui:bg-white zui:text-blue-500 zui:text-xs zui:border-1 zui:border-gray-100","aria-controls":y?"more-actions-popover":void 0,"aria-haspopup":"true","aria-expanded":y?"true":void 0,onClick:function(i){z(i.currentTarget)},children:["More ",i(w,{className:"zui:w-4 zui:h-4 zui:ml-1"})]}),i(j,{padding:0,minWidth:200,id:"more-actions-popover",open:y,anchorEl:f,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:i(h,{disablePadding:!0,children:g.map(function(e){return r(p,{disabled:e.disabled,onClick:function(){e.onClick(t),x()},className:"danger"===e.variant?"zui:text-red-600":"",divider:!0,children:[e.icon,i(b,{primaryTypographyProps:{variant:"body2",ml:1},primary:e.label})]},e.id)})})})]}),r(m,{size:"small",onClick:s,children:[" ",i(O,{size:18})]})]})]})};export{P as BulkActionsBar,P as default};
|