@zimyo/ui 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/index.esm.js +5 -218
- package/dist/Accordion/index.js +5 -225
- package/dist/Badge/index.d.ts +29 -0
- package/dist/Badge/index.esm.js +1 -0
- package/dist/Badge/index.js +1 -0
- package/dist/Button/index.esm.js +1 -13
- package/dist/Button/index.js +1 -18
- package/dist/Card/index.esm.js +1 -36
- package/dist/Card/index.js +1 -38
- package/dist/Input/index.d.ts +18 -0
- package/dist/Input/index.esm.js +26 -0
- package/dist/Input/index.js +26 -0
- package/dist/Modal/index.d.ts +11 -9
- package/dist/Modal/index.esm.js +5 -123
- package/dist/Modal/index.js +5 -128
- package/dist/Notice/index.d.ts +19 -0
- package/dist/Notice/index.esm.js +26 -0
- package/dist/Notice/index.js +26 -0
- package/dist/Popover/index.esm.js +1 -22
- package/dist/Popover/index.js +1 -27
- package/dist/RadioGroup/index.esm.js +1 -91
- package/dist/RadioGroup/index.js +1 -96
- package/dist/Select/index.d.ts +15 -13
- package/dist/Select/index.esm.js +5 -173
- package/dist/Select/index.js +5 -178
- package/dist/Switch/index.esm.js +1 -9
- package/dist/Switch/index.js +1 -14
- package/dist/Tabs/index.esm.js +1 -202
- package/dist/Tabs/index.js +1 -207
- package/dist/Typography/index.esm.js +1 -57
- package/dist/Typography/index.js +1 -66
- package/dist/index.d.ts +115 -44
- package/dist/index.esm.js +5 -746
- package/dist/index.js +5 -770
- package/dist/theme/index.esm.js +1 -234
- package/dist/theme/index.js +1 -239
- package/package.json +33 -3
- package/dist/TextInput/index.d.ts +0 -18
- package/dist/TextInput/index.esm.js +0 -33
- package/dist/TextInput/index.js +0 -38
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("react"),require("uuid");var r=require("@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:p(r,e)).classGroupId=o)}if("function"==typeof e)return u(e)?void m(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,n])=>{m(n,p(r,e),o,t)})})},p=(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},u=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 k(){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 w(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:p,maybePostfixModifierPosition:u}=o(r);if(d){i=r+(i.length>0?" "+i:i);continue}let b=!!u,f=t(b?p.substring(0,u):p);if(!f){if(!b){i=r+(i.length>0?" "+i:i);continue}if(f=t(p),!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 k=n(f,b);for(let e=0;e<k.length;++e){const r=k[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(k.apply(null,arguments))}}const v=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},z=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j=/^\((?:(\w[\w-]*):)?(.+)\)$/i,N=/^\d+\/\d+$/,M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\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$/,G=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>N.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),O=e=>!!e&&Number.isInteger(Number(e)),q=e=>e.endsWith("%")&&E(e.slice(0,-1)),W=e=>M.test(e),A=()=>!0,S=e=>C.test(e)&&!G.test(e),_=()=>!1,T=e=>P.test(e),V=e=>I.test(e),B=e=>!F(e)&&!R(e),D=e=>oe(e,se,_),F=e=>z.test(e),H=e=>oe(e,le,S),J=e=>oe(e,ie,E),K=e=>oe(e,ne,_),L=e=>oe(e,ae,V),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=w(()=>{const e=v("color"),r=v("font"),o=v("text"),t=v("font-weight"),n=v("tracking"),a=v("leading"),s=v("breakpoint"),l=v("container"),i=v("spacing"),d=v("radius"),c=v("shadow"),m=v("inset-shadow"),p=v("text-shadow"),u=v("drop-shadow"),b=v("blur"),f=v("perspective"),g=v("aspect"),h=v("ease"),x=v("animate"),k=()=>["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],w=()=>[$,"full","auto",...y()],z=()=>[O,"none","subgrid",R,F],j=()=>["auto",{span:["full",O,R,F]},O,R,F],N=()=>[O,"auto",R,F],M=()=>["auto","min","max","fr",R,F],C=()=>["auto",...y()],G=()=>[$,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],P=()=>[e,R,F],I=()=>["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]}],S=()=>["auto","cover","contain",Z,D,{size:[R,F]}],_=()=>[q,U,H],T=()=>["","none","full",d,R,F],V=()=>["",E,U,H],oe=()=>[E,q,Y,K],te=()=>["","none",b,R,F],ne=()=>["none",E,R,F],ae=()=>["none",E,R,F],se=()=>[E,R,F],le=()=>[$,"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",$,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:k()}],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:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",R,F]}],basis:[{basis:[$,"full","auto",l,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,$,"auto","initial","none",F]}],grow:[{grow:["",E,R,F]}],shrink:[{shrink:["",E,R,F]}],order:[{order:[O,"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":M()}],"auto-rows":[{"auto-rows":M()}],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:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[l,"screen",...G()]}],"min-w":[{"min-w":[l,"screen","none",...G()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"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",q,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:P()}],"text-color":[{text:P()}],"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:P()}],"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:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,R,F],radial:["",R,F],conic:[O,R,F]},ee,L]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],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:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"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:P()}],shadow:[{shadow:["","none",c,re,Q]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",m,re,Q]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[E,H]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,re,Q]}],"text-shadow-color":[{"text-shadow":P()}],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":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"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":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"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":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"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":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"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":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"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":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"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":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"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":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:S()}],"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",u,re,Q]}],"drop-shadow-color":[{"drop-shadow":P()}],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":k()}],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:k()}],"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:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",...P()]}],"stroke-w":[{stroke:[E,U,H,J]}],stroke:[{stroke:["none",...P()]}],"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"]}});const pe=({size:o="md",...t})=>e.jsx(r.Typography,{variant:{sm:"body2",md:"body1",lg:"subtitle1"}[o],component:t.component||"p",...t}),ue=(be="inline-flex items-center rounded-full font-medium gap-2",fe={variants:{variant:{contained:"",outlined:"border bg-transparent",text:"bg-transparent border-transparent"},size:{sm:"text-xs px-2 py-0.5",md:"text-sm px-3 py-1",lg:"text-base px-4 py-1.5"},type:{success:"",warning:"",error:"",info:"",default:""}},defaultVariants:{variant:"contained",size:"md",type:"default"}},e=>{var r;if(null==(null==fe?void 0:fe.variants))return a(be,null==e?void 0:e.class,null==e?void 0:e.className);const{variants:o,defaultVariants:t}=fe,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==fe||null===(r=fe.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(be,s,i,null==e?void 0:e.class,null==e?void 0:e.className)});var be,fe;const ge={success:{bg:"bg-green-100",text:"text-green-800",border:"border-green-800"},warning:{bg:"bg-yellow-100",text:"text-yellow-800",border:"border-yellow-800"},error:{bg:"bg-red-100",text:"text-red-800",border:"border-red-800"},info:{bg:"bg-blue-100",text:"text-blue-800",border:"border-blue-800"},default:{bg:"bg-gray-100",text:"text-gray-800",border:"border-gray-800"}},he=({label:r,icon:o,iconPosition:n="start",dot:a=!1,dotPosition:s="start",variant:l="contained",size:i="md",type:d="default",color:c,className:m})=>{const p=ge[d],u={bg:c?.bg??p.bg,text:c?.text??p.text,border:c?.border??p.border},b=function(...e){return me(t(e))}(ue({variant:l,size:i,type:d}),"contained"===l?u.bg:"bg-transparent",u.text,"outlined"===l?u.border:"",m),f=a&&e.jsx("span",{className:"w-2 h-2 rounded-full bg-current inline-block"}),g=[];return a&&"start"===s&&g.push(f),o&&"start"===n&&g.push(o),g.push(e.jsx("span",{children:r},"label")),o&&"end"===n&&g.push(o),a&&"end"===s&&g.push(f),e.jsx(pe,{size:"sm",fontWeight:500,className:b,children:g})};exports.Badge=he,exports.default=he;
|
package/dist/Button/index.esm.js
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Button as Button$1, CircularProgress } from '@mui/material';
|
|
4
|
-
|
|
5
|
-
const Button = React.forwardRef(({ children, loading = false, loadingText, loaderSize = 18, loaderPosition = 'start', variant = 'contained', color = 'primary', size = 'medium', sx = {}, disabled, startIcon, endIcon, ...props }, ref) => {
|
|
6
|
-
const showStartSpinner = loading && loaderPosition === 'start';
|
|
7
|
-
const showEndSpinner = loading && loaderPosition === 'end';
|
|
8
|
-
const showCenterSpinner = loading && loaderPosition === 'center';
|
|
9
|
-
return (jsx(Button$1, { ref: ref, variant: variant, color: color, disabled: disabled || loading, size: size, startIcon: showStartSpinner ? (jsx(CircularProgress, { size: loaderSize, color: "inherit" })) : (startIcon), endIcon: showEndSpinner ? (jsx(CircularProgress, { size: loaderSize, color: "inherit" })) : (endIcon), sx: { position: 'relative', ...sx }, ...props, children: showCenterSpinner ? (jsx(CircularProgress, { size: loaderSize, color: "inherit" })) : loading && loadingText ? (loadingText) : (children) }));
|
|
10
|
-
});
|
|
11
|
-
Button.displayName = 'Button';
|
|
12
|
-
|
|
13
|
-
export { Button, Button as default };
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import e from"react";import{Button as i,CircularProgress as o}from"@mui/material";const t=e.forwardRef(({children:e,loading:t=!1,loadingText:a,loaderSize:n=18,loaderPosition:s="start",variant:d="contained",color:c="primary",size:l="medium",sx:m={},disabled:f,startIcon:p,endIcon:u,...z},h)=>{const x=t&&"end"===s,I=t&&"center"===s;return r(i,{ref:h,variant:d,color:c,disabled:f||t,size:l,startIcon:t&&"start"===s?r(o,{size:n,color:"inherit"}):p,endIcon:x?r(o,{size:n,color:"inherit"}):u,sx:{position:"relative",...m},...z,children:I?r(o,{size:n,color:"inherit"}):t&&a?a:e})});t.displayName="Button";export{t as Button,t as default};
|
package/dist/Button/index.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var React = require('react');
|
|
7
|
-
var material = require('@mui/material');
|
|
8
|
-
|
|
9
|
-
const Button = React.forwardRef(({ children, loading = false, loadingText, loaderSize = 18, loaderPosition = 'start', variant = 'contained', color = 'primary', size = 'medium', sx = {}, disabled, startIcon, endIcon, ...props }, ref) => {
|
|
10
|
-
const showStartSpinner = loading && loaderPosition === 'start';
|
|
11
|
-
const showEndSpinner = loading && loaderPosition === 'end';
|
|
12
|
-
const showCenterSpinner = loading && loaderPosition === 'center';
|
|
13
|
-
return (jsxRuntime.jsx(material.Button, { ref: ref, variant: variant, color: color, disabled: disabled || loading, size: size, startIcon: showStartSpinner ? (jsxRuntime.jsx(material.CircularProgress, { size: loaderSize, color: "inherit" })) : (startIcon), endIcon: showEndSpinner ? (jsxRuntime.jsx(material.CircularProgress, { size: loaderSize, color: "inherit" })) : (endIcon), sx: { position: 'relative', ...sx }, ...props, children: showCenterSpinner ? (jsxRuntime.jsx(material.CircularProgress, { size: loaderSize, color: "inherit" })) : loading && loadingText ? (loadingText) : (children) }));
|
|
14
|
-
});
|
|
15
|
-
Button.displayName = 'Button';
|
|
16
|
-
|
|
17
|
-
exports.Button = Button;
|
|
18
|
-
exports.default = Button;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("react/jsx-runtime"),e=require("react"),i=require("@mui/material");const t=e.forwardRef(({children:e,loading:t=!1,loadingText:o,loaderSize:s=18,loaderPosition:a="start",variant:n="contained",color:c="primary",size:l="medium",sx:d={},disabled:u,startIcon:x,endIcon:m,...p},j)=>{const z=t&&"start"===a,f=t&&"end"===a,g=t&&"center"===a;return r.jsx(i.Button,{ref:j,variant:n,color:c,disabled:u||t,size:l,startIcon:z?r.jsx(i.CircularProgress,{size:s,color:"inherit"}):x,endIcon:f?r.jsx(i.CircularProgress,{size:s,color:"inherit"}):m,sx:{position:"relative",...d},...p,children:g?r.jsx(i.CircularProgress,{size:s,color:"inherit"}):t&&o?o:e})});t.displayName="Button",exports.Button=t,exports.default=t;
|
package/dist/Card/index.esm.js
CHANGED
|
@@ -1,36 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useTheme, Card as Card$1, CardHeader as CardHeader$1, Typography, CardActions as CardActions$1, Box, Skeleton } from '@mui/material';
|
|
3
|
-
import MuiCardContent from '@mui/material/CardContent';
|
|
4
|
-
import CardMedia from '@mui/material/CardMedia';
|
|
5
|
-
|
|
6
|
-
const CardRoot = ({ children, sx = {}, elevation = 1, variant = 'elevated', ...props }) => {
|
|
7
|
-
const theme = useTheme();
|
|
8
|
-
return (jsx(Card$1, { elevation: variant === 'elevated' ? elevation : 0, variant: variant === 'outlined' ? 'outlined' : 'elevation', sx: {
|
|
9
|
-
borderRadius: theme.radius?.sm || 8,
|
|
10
|
-
border: variant === 'bordered' ? `1px solid ${theme.palette.divider}` : 'none',
|
|
11
|
-
overflow: 'hidden',
|
|
12
|
-
backgroundColor: theme.palette.background.paper,
|
|
13
|
-
...sx,
|
|
14
|
-
}, ...props, children: children }));
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const CardHeader = ({ title, subtitle, action, }) => (jsx(CardHeader$1, { title: typeof title === 'string' ? (jsx(Typography, { variant: "h6", fontWeight: 600, children: title })) : (title), subheader: typeof subtitle === 'string' ? (jsx(Typography, { variant: "body2", color: "text.secondary", children: subtitle })) : (subtitle), action: action }));
|
|
18
|
-
|
|
19
|
-
const CardContent = ({ children, sx }) => (jsx(MuiCardContent, { sx: sx, children: children }));
|
|
20
|
-
|
|
21
|
-
const CardActions = ({ children, sx }) => (jsx(CardActions$1, { sx: sx, children: children }));
|
|
22
|
-
|
|
23
|
-
const CardImage = ({ src, height = 160, alt = 'card image' }) => (jsx(CardMedia, { component: "img", height: height, image: src, alt: alt }));
|
|
24
|
-
|
|
25
|
-
const CardSkeleton = ({ lines = 3 }) => (jsxs(Box, { p: 2, children: [jsx(Skeleton, { variant: "rectangular", height: 140 }), [...Array(lines)].map((_, i) => (jsx(Skeleton, { variant: "text", height: 20, sx: { mt: 1 } }, i)))] }));
|
|
26
|
-
|
|
27
|
-
const Card = Object.assign(CardRoot, {
|
|
28
|
-
Header: CardHeader,
|
|
29
|
-
Content: CardContent,
|
|
30
|
-
Body: CardContent, // alias
|
|
31
|
-
Actions: CardActions,
|
|
32
|
-
Image: CardImage,
|
|
33
|
-
Skeleton: CardSkeleton,
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export { Card as default };
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useTheme as r,Card as a,CardHeader as i,Typography as n,CardActions as o,Box as d,Skeleton as l}from"@mui/material";import s from"@mui/material/CardContent";import c from"@mui/material/CardMedia";const m=({children:t,sx:r})=>e(s,{sx:r,children:t}),h=Object.assign(({children:t,sx:i={},elevation:n=1,variant:o="elevated",...d})=>{const l=r();return e(a,{elevation:"elevated"===o?n:0,variant:"outlined"===o?"outlined":"elevation",sx:{borderRadius:l.radius?.sm||8,border:"bordered"===o?`1px solid ${l.palette.divider}`:"none",overflow:"hidden",backgroundColor:l.palette.background.paper,...i},...d,children:t})},{Header:({title:t,subtitle:r,action:a})=>e(i,{title:"string"==typeof t?e(n,{variant:"h6",fontWeight:600,children:t}):t,subheader:"string"==typeof r?e(n,{variant:"body2",color:"text.secondary",children:r}):r,action:a}),Content:m,Body:m,Actions:({children:t,sx:r})=>e(o,{sx:r,children:t}),Image:({src:t,height:r=160,alt:a="card image"})=>e(c,{component:"img",height:r,image:t,alt:a}),Skeleton:({lines:r=3})=>t(d,{p:2,children:[e(l,{variant:"rectangular",height:140}),[...Array(r)].map((t,r)=>e(l,{variant:"text",height:20,sx:{mt:1}},r))]})});export{h as default};
|
package/dist/Card/index.js
CHANGED
|
@@ -1,38 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var material = require('@mui/material');
|
|
5
|
-
var MuiCardContent = require('@mui/material/CardContent');
|
|
6
|
-
var CardMedia = require('@mui/material/CardMedia');
|
|
7
|
-
|
|
8
|
-
const CardRoot = ({ children, sx = {}, elevation = 1, variant = 'elevated', ...props }) => {
|
|
9
|
-
const theme = material.useTheme();
|
|
10
|
-
return (jsxRuntime.jsx(material.Card, { elevation: variant === 'elevated' ? elevation : 0, variant: variant === 'outlined' ? 'outlined' : 'elevation', sx: {
|
|
11
|
-
borderRadius: theme.radius?.sm || 8,
|
|
12
|
-
border: variant === 'bordered' ? `1px solid ${theme.palette.divider}` : 'none',
|
|
13
|
-
overflow: 'hidden',
|
|
14
|
-
backgroundColor: theme.palette.background.paper,
|
|
15
|
-
...sx,
|
|
16
|
-
}, ...props, children: children }));
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const CardHeader = ({ title, subtitle, action, }) => (jsxRuntime.jsx(material.CardHeader, { title: typeof title === 'string' ? (jsxRuntime.jsx(material.Typography, { variant: "h6", fontWeight: 600, children: title })) : (title), subheader: typeof subtitle === 'string' ? (jsxRuntime.jsx(material.Typography, { variant: "body2", color: "text.secondary", children: subtitle })) : (subtitle), action: action }));
|
|
20
|
-
|
|
21
|
-
const CardContent = ({ children, sx }) => (jsxRuntime.jsx(MuiCardContent, { sx: sx, children: children }));
|
|
22
|
-
|
|
23
|
-
const CardActions = ({ children, sx }) => (jsxRuntime.jsx(material.CardActions, { sx: sx, children: children }));
|
|
24
|
-
|
|
25
|
-
const CardImage = ({ src, height = 160, alt = 'card image' }) => (jsxRuntime.jsx(CardMedia, { component: "img", height: height, image: src, alt: alt }));
|
|
26
|
-
|
|
27
|
-
const CardSkeleton = ({ lines = 3 }) => (jsxRuntime.jsxs(material.Box, { p: 2, children: [jsxRuntime.jsx(material.Skeleton, { variant: "rectangular", height: 140 }), [...Array(lines)].map((_, i) => (jsxRuntime.jsx(material.Skeleton, { variant: "text", height: 20, sx: { mt: 1 } }, i)))] }));
|
|
28
|
-
|
|
29
|
-
const Card = Object.assign(CardRoot, {
|
|
30
|
-
Header: CardHeader,
|
|
31
|
-
Content: CardContent,
|
|
32
|
-
Body: CardContent, // alias
|
|
33
|
-
Actions: CardActions,
|
|
34
|
-
Image: CardImage,
|
|
35
|
-
Skeleton: CardSkeleton,
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
module.exports = Card;
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("@mui/material"),t=require("@mui/material/CardContent"),i=require("@mui/material/CardMedia");const a=({children:r,sx:i})=>e.jsx(t,{sx:i,children:r}),n=Object.assign(({children:t,sx:i={},elevation:a=1,variant:n="elevated",...o})=>{const d=r.useTheme();return e.jsx(r.Card,{elevation:"elevated"===n?a:0,variant:"outlined"===n?"outlined":"elevation",sx:{borderRadius:d.radius?.sm||8,border:"bordered"===n?`1px solid ${d.palette.divider}`:"none",overflow:"hidden",backgroundColor:d.palette.background.paper,...i},...o,children:t})},{Header:({title:t,subtitle:i,action:a})=>e.jsx(r.CardHeader,{title:"string"==typeof t?e.jsx(r.Typography,{variant:"h6",fontWeight:600,children:t}):t,subheader:"string"==typeof i?e.jsx(r.Typography,{variant:"body2",color:"text.secondary",children:i}):i,action:a}),Content:a,Body:a,Actions:({children:t,sx:i})=>e.jsx(r.CardActions,{sx:i,children:t}),Image:({src:r,height:t=160,alt:a="card image"})=>e.jsx(i,{component:"img",height:t,image:r,alt:a}),Skeleton:({lines:t=3})=>e.jsxs(r.Box,{p:2,children:[e.jsx(r.Skeleton,{variant:"rectangular",height:140}),[...Array(t)].map((t,i)=>e.jsx(r.Skeleton,{variant:"text",height:20,sx:{mt:1}},i))]})});module.exports=n;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type InputSize = "sm" | "md" | "lg";
|
|
4
|
+
type InputVariant = "outlined" | "contained";
|
|
5
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
6
|
+
label?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
leftIcon?: React.ReactNode;
|
|
10
|
+
rightIcon?: React.ReactNode;
|
|
11
|
+
size?: InputSize;
|
|
12
|
+
variant?: InputVariant;
|
|
13
|
+
allowedPattern?: "number" | "alpha" | RegExp;
|
|
14
|
+
}
|
|
15
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
16
|
+
|
|
17
|
+
export { Input, Input as default };
|
|
18
|
+
export type { InputProps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import*as o from"react";import{forwardRef as t,createElement as n,useRef as a}from"react";import{v4 as s}from"uuid";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.525.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const l=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},i=(...e)=>e.filter((e,r,o)=>Boolean(e)&&""!==e.trim()&&o.indexOf(e)===r).join(" ").trim(),d=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
8
|
+
/**
|
|
9
|
+
* @license lucide-react v0.525.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
var c={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
|
+
/**
|
|
16
|
+
* @license lucide-react v0.525.0 - ISC
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the ISC license.
|
|
19
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/const m=t(({color:e="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:t,className:a="",children:s,iconNode:l,...m},p)=>n("svg",{ref:p,...c,width:r,height:r,stroke:e,strokeWidth:t?24*Number(o)/Number(r):o,className:i("lucide",a),...!s&&!d(m)&&{"aria-hidden":"true"},...m},[...l.map(([e,r])=>n(e,r)),...Array.isArray(s)?s:[s]])),p=(e,r)=>{const o=t(({className:o,...t},a)=>{return n(m,{ref:a,iconNode:r,className:i(`lucide-${s=l(e),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...t});var s});return o.displayName=l(e),o},u=p("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),f=p("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);
|
|
21
|
+
/**
|
|
22
|
+
* @license lucide-react v0.525.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/function b(e){var r,o,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(o=b(e[r]))&&(t&&(t+=" "),t+=o)}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}const g=e=>{const r=w(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),h(o,r)||k(e)},getConflictingClassGroupIds:(e,r)=>{const n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},h=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),n=t?h(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},x=/^\[(.+)\]$/,k=e=>{if(x.test(e)){const r=x.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},w=e=>{const{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(const e in o)y(o[e],t,e,r);return t},y=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:v(r,e)).classGroupId=o)}if("function"==typeof e)return z(e)?void y(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,n])=>{y(n,v(r,e),o,t)})})},v=(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},z=e=>e.isThemeGetter,N=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)}}},C=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=j(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},j=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,M=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}},I=/\s+/;function G(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=$(e))&&(t&&(t+=" "),t+=r);return t}const $=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=$(e[t]))&&(o&&(o+=" "),o+=r);return o};function P(e,...r){let o,t,n,a=function(l){const i=r.reduce((e,r)=>r(e),e());return o=(e=>({cache:N(e.cacheSize),parseClassName:C(e),sortModifiers:M(e),...g(e)}))(i),t=o.cache.get,n=o.cache.set,a=s,s(l)};function s(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(I);let i="";for(let e=l.length-1;e>=0;e-=1){const r=l[e],{isExternal:d,modifiers:c,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:u}=o(r);if(d){i=r+(i.length>0?" "+i:i);continue}let f=!!u,b=t(f?p.substring(0,u):p);if(!b){if(!f){i=r+(i.length>0?" "+i:i);continue}if(b=t(p),!b){i=r+(i.length>0?" "+i:i);continue}f=!1}const g=a(c).join(":"),h=m?g+"!":g,x=h+b;if(s.includes(x))continue;s.push(x);const k=n(b,f);for(let e=0;e<k.length;++e){const r=k[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(G.apply(null,arguments))}}const W=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},A=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E=/^\((?:(\w[\w-]*):)?(.+)\)$/i,S=/^\d+\/\d+$/,B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,L=/\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)\(.+\)$/,q=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>S.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),U=e=>e.endsWith("%")&&_(e.slice(0,-1)),D=e=>B.test(e),F=()=>!0,H=e=>L.test(e)&&!O.test(e),J=()=>!1,K=e=>q.test(e),Q=e=>T.test(e),V=e=>!Y(e)&&!ae(e),X=e=>pe(e,ge,J),Y=e=>A.test(e),ee=e=>pe(e,he,H),re=e=>pe(e,xe,_),oe=e=>pe(e,fe,J),te=e=>pe(e,be,Q),ne=e=>pe(e,we,K),ae=e=>E.test(e),se=e=>ue(e,he),le=e=>ue(e,ke),ie=e=>ue(e,fe),de=e=>ue(e,ge),ce=e=>ue(e,be),me=e=>ue(e,we,!0),pe=(e,r,o)=>{const t=A.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},ue=(e,r,o=!1)=>{const t=E.exec(e);return!!t&&(t[1]?r(t[1]):o)},fe=e=>"position"===e||"percentage"===e,be=e=>"image"===e||"url"===e,ge=e=>"length"===e||"size"===e||"bg-size"===e,he=e=>"length"===e,xe=e=>"number"===e,ke=e=>"family-name"===e,we=e=>"shadow"===e,ye=P(()=>{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"),p=W("text-shadow"),u=W("drop-shadow"),f=W("blur"),b=W("perspective"),g=W("aspect"),h=W("ease"),x=W("animate"),k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ae,Y],w=()=>[ae,Y,i],y=()=>[Z,"full","auto",...w()],v=()=>[R,"none","subgrid",ae,Y],z=()=>["auto",{span:["full",R,ae,Y]},R,ae,Y],N=()=>[R,"auto",ae,Y],C=()=>["auto","min","max","fr",ae,Y],j=()=>["auto",...w()],M=()=>[Z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],I=()=>[e,ae,Y],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ie,oe,{position:[ae,Y]}],$=()=>["auto","cover","contain",de,X,{size:[ae,Y]}],P=()=>[U,se,ee],A=()=>["","none","full",d,ae,Y],E=()=>["",_,se,ee],S=()=>[_,U,ie,oe],B=()=>["","none",f,ae,Y],L=()=>["none",_,ae,Y],O=()=>["none",_,ae,Y],q=()=>[_,ae,Y],T=()=>[Z,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[F],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",_],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Z,Y,ae,g]}],container:["container"],columns:[{columns:[_,Y,ae,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:k()}],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:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",ae,Y]}],basis:[{basis:[Z,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,Z,"auto","initial","none",Y]}],grow:[{grow:["",_,ae,Y]}],shrink:[{shrink:["",_,ae,Y]}],order:[{order:[R,"first","last","none",ae,Y]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:z()}],"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:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"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:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[l,"screen",...M()]}],"min-w":[{"min-w":[l,"screen","none",...M()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",o,se,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,ae,re]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",U,Y]}],"font-family":[{font:[le,Y,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,ae,Y]}],"line-clamp":[{"line-clamp":[_,"none",ae,re]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",ae,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",ae,ee]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[_,"auto",ae,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,Y]}],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",ae,Y]}],"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:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,ae,Y],radial:["",ae,Y],conic:[R,ae,Y]},ce,te]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"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:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[_,ae,Y]}],"outline-w":[{outline:["",_,se,ee]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",c,me,ne]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",m,me,ne]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[_,ee]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",p,me,ne]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[_,ae,Y]}],"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":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":S()}],"mask-image-linear-to-pos":[{"mask-linear-to":S()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":S()}],"mask-image-t-to-pos":[{"mask-t-to":S()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":S()}],"mask-image-r-to-pos":[{"mask-r-to":S()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":S()}],"mask-image-b-to-pos":[{"mask-b-to":S()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":S()}],"mask-image-l-to-pos":[{"mask-l-to":S()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":S()}],"mask-image-x-to-pos":[{"mask-x-to":S()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":S()}],"mask-image-y-to-pos":[{"mask-y-to":S()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ae,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":S()}],"mask-image-radial-to-pos":[{"mask-radial-to":S()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":S()}],"mask-image-conic-to-pos":[{"mask-conic-to":S()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"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:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,Y]}],filter:[{filter:["","none",ae,Y]}],blur:[{blur:B()}],brightness:[{brightness:[_,ae,Y]}],contrast:[{contrast:[_,ae,Y]}],"drop-shadow":[{"drop-shadow":["","none",u,me,ne]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",_,ae,Y]}],"hue-rotate":[{"hue-rotate":[_,ae,Y]}],invert:[{invert:["",_,ae,Y]}],saturate:[{saturate:[_,ae,Y]}],sepia:[{sepia:["",_,ae,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,Y]}],"backdrop-blur":[{"backdrop-blur":B()}],"backdrop-brightness":[{"backdrop-brightness":[_,ae,Y]}],"backdrop-contrast":[{"backdrop-contrast":[_,ae,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,ae,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,ae,Y]}],"backdrop-invert":[{"backdrop-invert":["",_,ae,Y]}],"backdrop-opacity":[{"backdrop-opacity":[_,ae,Y]}],"backdrop-saturate":[{"backdrop-saturate":[_,ae,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",_,ae,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",ae,Y]}],ease:[{ease:["linear","initial",h,ae,Y]}],delay:[{delay:[_,ae,Y]}],animate:[{animate:["none",x,ae,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ae,Y]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:O()}],"scale-x":[{"scale-x":O()}],"scale-y":[{"scale-y":O()}],"scale-z":[{"scale-z":O()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[ae,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:T()}],"translate-x":[{"translate-x":T()}],"translate-y":[{"translate-y":T()}],"translate-z":[{"translate-z":T()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",ae,Y]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",ae,Y]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[_,se,ee,re]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ve(...e){return ye(function(){for(var e,r,o=0,t="",n=arguments.length;o<n;o++)(e=arguments[o])&&(r=b(e))&&(t&&(t+=" "),t+=r);return t}(e))}const ze={sm:"h-10 px-3 text-sm",md:"h-11 px-3 text-sm",lg:"h-12 px-3 text-sm"},Ne=o.forwardRef(({label:t,description:n,error:l,leftIcon:i,rightIcon:d,size:c="md",variant:m="outlined",className:p,allowedPattern:b,onBeforeInput:g,onChange:h,type:x="text",...k},w)=>{const y=function(e="id"){return a(`${e}-${s()}`).current}("input"),[v,z]=o.useState(!1),N="password"===x,C=N&&v?"text":x;return e("div",{className:"w-full space-y-1",children:[t&&e("label",{htmlFor:y,className:"block mb-1.5 text-sm font-medium leading-none",children:[t," ",k.required&&r("span",{className:"text-destructive font-medium",children:"*"})]}),e("div",{className:ve("relative flex items-center rounded-md border text-sm ring-offset-background transition-colors","focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-1","outlined"===m&&"bg-background border-input","contained"===m&&"bg-muted border-transparent",l&&"border-destructive focus-within:ring-destructive",ze[c],p),children:[i&&r("span",{className:"pl-2 text-muted-foreground",children:i}),r("input",{id:y,ref:w,type:C,onBeforeInput:e=>{const r="number"===b?/^[0-9]*$/:"alpha"===b?/^[a-zA-Z]*$/:b instanceof RegExp?b:null;if(!r)return;const o=e.data,t=e.currentTarget.value+o;r.test(t)||e.preventDefault(),g?.(e)},onChange:h,disabled:k.disabled,className:ve("peer w-full bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",i&&"pl-2",(d||N)&&"pr-8"),...k}),r("span",{className:"absolute right-2 text-muted-foreground",children:N?r("button",{type:"button",onClick:()=>z(e=>!e),className:"focus:outline-none",tabIndex:-1,children:r(v?f:u,{size:16})}):d})]}),n&&!l&&r("p",{className:"text-xs text-muted-foreground",children:n}),l&&r("p",{className:"text-xs text-destructive",children:l})]})});export{Ne as Input,Ne as default};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),o=require("uuid");function t(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}}),r.default=e,Object.freeze(r)}var n=t(r);
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.525.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const s=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},a=(...e)=>e.filter((e,r,o)=>Boolean(e)&&""!==e.trim()&&o.indexOf(e)===r).join(" ").trim(),l=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
8
|
+
/**
|
|
9
|
+
* @license lucide-react v0.525.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
var i={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
|
+
/**
|
|
16
|
+
* @license lucide-react v0.525.0 - ISC
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the ISC license.
|
|
19
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/const d=r.forwardRef(({color:e="currentColor",size:o=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:s="",children:d,iconNode:c,...m},p)=>r.createElement("svg",{ref:p,...i,width:o,height:o,stroke:e,strokeWidth:n?24*Number(t)/Number(o):t,className:a("lucide",s),...!d&&!l(m)&&{"aria-hidden":"true"},...m},[...c.map(([e,o])=>r.createElement(e,o)),...Array.isArray(d)?d:[d]])),c=(e,o)=>{const t=r.forwardRef(({className:t,...n},l)=>{return r.createElement(d,{ref:l,iconNode:o,className:a(`lucide-${i=s(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,t),...n});var i});return t.displayName=s(e),t},m=c("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),p=c("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);
|
|
21
|
+
/**
|
|
22
|
+
* @license lucide-react v0.525.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/function u(e){var r,o,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(o=u(e[r]))&&(t&&(t+=" "),t+=o)}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}const f=e=>{const r=x(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),b(o,r)||h(e)},getConflictingClassGroupIds:(e,r)=>{const n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},b=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),n=t?b(e.slice(1),t):void 0;if(n)return n;if(0===r.validators.length)return;const s=e.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId},g=/^\[(.+)\]$/,h=e=>{if(g.test(e)){const r=g.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},x=e=>{const{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(const e in o)k(o[e],t,e,r);return t},k=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:w(r,e)).classGroupId=o)}if("function"==typeof e)return y(e)?void k(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,n])=>{k(n,w(r,e),o,t)})})},w=(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},y=e=>e.isThemeGetter,v=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const n=(n,s)=>{o.set(n,s),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)}}},z=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=e=>{const r=[];let o,t=0,n=0,s=0;for(let a=0;a<e.length;a++){let l=e[a];if(0===t&&0===n){if(":"===l){r.push(e.slice(s,a)),s=a+1;continue}if("/"===l){o=a;continue}}"["===l?t++:"]"===l?t--:"("===l?n++:")"===l&&n--}const a=0===r.length?e:e.substring(s),l=j(a);return{modifiers:r,hasImportantModifier:l!==a,baseClassName:l,maybePostfixModifierPosition:o&&o>s?o-s: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},j=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,N=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}},C=/\s+/;function M(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=I(e))&&(t&&(t+=" "),t+=r);return t}const I=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=I(e[t]))&&(o&&(o+=" "),o+=r);return o};function P(e,...r){let o,t,n,s=function(l){const i=r.reduce((e,r)=>r(e),e());return o=(e=>({cache:v(e.cacheSize),parseClassName:z(e),sortModifiers:N(e),...f(e)}))(i),t=o.cache.get,n=o.cache.set,s=a,a(l)};function a(e){const r=t(e);if(r)return r;const s=((e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],l=e.trim().split(C);let i="";for(let e=l.length-1;e>=0;e-=1){const r=l[e],{isExternal:d,modifiers:c,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:u}=o(r);if(d){i=r+(i.length>0?" "+i:i);continue}let f=!!u,b=t(f?p.substring(0,u):p);if(!b){if(!f){i=r+(i.length>0?" "+i:i);continue}if(b=t(p),!b){i=r+(i.length>0?" "+i:i);continue}f=!1}const g=s(c).join(":"),h=m?g+"!":g,x=h+b;if(a.includes(x))continue;a.push(x);const k=n(b,f);for(let e=0;e<k.length;++e){const r=k[e];a.push(h+r)}i=r+(i.length>0?" "+i:i)}return i})(e,o);return n(e,s),s}return function(){return s(M.apply(null,arguments))}}const G=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E=/^\((?:(\w[\w-]*):)?(.+)\)$/i,O=/^\d+\/\d+$/,W=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A=/\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$/,q=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_=e=>O.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),T=e=>e.endsWith("%")&&B(e.slice(0,-1)),Z=e=>W.test(e),D=()=>!0,U=e=>A.test(e)&&!q.test(e),F=()=>!1,H=e=>S.test(e),J=e=>R.test(e),K=e=>!V(e)&&!te(e),Q=e=>ce(e,fe,F),V=e=>$.test(e),X=e=>ce(e,be,U),Y=e=>ce(e,ge,B),ee=e=>ce(e,pe,F),re=e=>ce(e,ue,J),oe=e=>ce(e,xe,H),te=e=>E.test(e),ne=e=>me(e,be),se=e=>me(e,he),ae=e=>me(e,pe),le=e=>me(e,fe),ie=e=>me(e,ue),de=e=>me(e,xe,!0),ce=(e,r,o)=>{const t=$.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},me=(e,r,o=!1)=>{const t=E.exec(e);return!!t&&(t[1]?r(t[1]):o)},pe=e=>"position"===e||"percentage"===e,ue=e=>"image"===e||"url"===e,fe=e=>"length"===e||"size"===e||"bg-size"===e,be=e=>"length"===e,ge=e=>"number"===e,he=e=>"family-name"===e,xe=e=>"shadow"===e,ke=P(()=>{const e=G("color"),r=G("font"),o=G("text"),t=G("font-weight"),n=G("tracking"),s=G("leading"),a=G("breakpoint"),l=G("container"),i=G("spacing"),d=G("radius"),c=G("shadow"),m=G("inset-shadow"),p=G("text-shadow"),u=G("drop-shadow"),f=G("blur"),b=G("perspective"),g=G("aspect"),h=G("ease"),x=G("animate"),k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",te,V],w=()=>[te,V,i],y=()=>[_,"full","auto",...w()],v=()=>[L,"none","subgrid",te,V],z=()=>["auto",{span:["full",L,te,V]},L,te,V],j=()=>[L,"auto",te,V],N=()=>["auto","min","max","fr",te,V],C=()=>["auto",...w()],M=()=>[_,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],I=()=>[e,te,V],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ae,ee,{position:[te,V]}],$=()=>["auto","cover","contain",le,Q,{size:[te,V]}],E=()=>[T,ne,X],O=()=>["","none","full",d,te,V],W=()=>["",B,ne,X],A=()=>[B,T,ae,ee],q=()=>["","none",f,te,V],S=()=>["none",B,te,V],R=()=>["none",B,te,V],U=()=>[B,te,V],F=()=>[_,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Z],breakpoint:[Z],color:[D],container:[Z],"drop-shadow":[Z],ease:["in","out","in-out"],font:[K],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Z],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Z],shadow:[Z],spacing:["px",B],text:[Z],"text-shadow":[Z],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_,V,te,g]}],container:["container"],columns:[{columns:[B,V,te,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:k()}],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:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",te,V]}],basis:[{basis:[_,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,_,"auto","initial","none",V]}],grow:[{grow:["",B,te,V]}],shrink:[{shrink:["",B,te,V]}],order:[{order:[L,"first","last","none",te,V]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"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:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[l,"screen",...M()]}],"min-w":[{"min-w":[l,"screen","none",...M()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",o,ne,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,te,Y]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",T,V]}],"font-family":[{font:[se,V,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,te,V]}],"line-clamp":[{"line-clamp":[B,"none",te,Y]}],leading:[{leading:[s,...w()]}],"list-image":[{"list-image":["none",te,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",te,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",te,X]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[B,"auto",te,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te,V]}],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",te,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,te,V],radial:["",te,V],conic:[L,te,V]},ie,re]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:E()}],"gradient-via-pos":[{via:E()}],"gradient-to-pos":[{to:E()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"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:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[B,te,V]}],"outline-w":[{outline:["",B,ne,X]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",c,de,oe]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",m,de,oe]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[B,X]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",p,de,oe]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[B,te,V]}],"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":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[te,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",te,V]}],filter:[{filter:["","none",te,V]}],blur:[{blur:q()}],brightness:[{brightness:[B,te,V]}],contrast:[{contrast:[B,te,V]}],"drop-shadow":[{"drop-shadow":["","none",u,de,oe]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",B,te,V]}],"hue-rotate":[{"hue-rotate":[B,te,V]}],invert:[{invert:["",B,te,V]}],saturate:[{saturate:[B,te,V]}],sepia:[{sepia:["",B,te,V]}],"backdrop-filter":[{"backdrop-filter":["","none",te,V]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[B,te,V]}],"backdrop-contrast":[{"backdrop-contrast":[B,te,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,te,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,te,V]}],"backdrop-invert":[{"backdrop-invert":["",B,te,V]}],"backdrop-opacity":[{"backdrop-opacity":[B,te,V]}],"backdrop-saturate":[{"backdrop-saturate":[B,te,V]}],"backdrop-sepia":[{"backdrop-sepia":["",B,te,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",te,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",te,V]}],ease:[{ease:["linear","initial",h,te,V]}],delay:[{delay:[B,te,V]}],animate:[{animate:["none",x,te,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,te,V]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:S()}],"rotate-x":[{"rotate-x":S()}],"rotate-y":[{"rotate-y":S()}],"rotate-z":[{"rotate-z":S()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:U()}],"skew-x":[{"skew-x":U()}],"skew-y":[{"skew-y":U()}],transform:[{transform:[te,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",te,V]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",te,V]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[B,ne,X,Y]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function we(...e){return ke(function(){for(var e,r,o=0,t="",n=arguments.length;o<n;o++)(e=arguments[o])&&(r=u(e))&&(t&&(t+=" "),t+=r);return t}(e))}const ye={sm:"h-10 px-3 text-sm",md:"h-11 px-3 text-sm",lg:"h-12 px-3 text-sm"},ve=n.forwardRef(({label:t,description:s,error:a,leftIcon:l,rightIcon:i,size:d="md",variant:c="outlined",className:u,allowedPattern:f,onBeforeInput:b,onChange:g,type:h="text",...x},k)=>{const w=function(e="id"){return r.useRef(`${e}-${o.v4()}`).current}("input"),[y,v]=n.useState(!1),z="password"===h,j=z&&y?"text":h;return e.jsxs("div",{className:"w-full space-y-1",children:[t&&e.jsxs("label",{htmlFor:w,className:"block mb-1.5 text-sm font-medium leading-none",children:[t," ",x.required&&e.jsx("span",{className:"text-destructive font-medium",children:"*"})]}),e.jsxs("div",{className:we("relative flex items-center rounded-md border text-sm ring-offset-background transition-colors","focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-1","outlined"===c&&"bg-background border-input","contained"===c&&"bg-muted border-transparent",a&&"border-destructive focus-within:ring-destructive",ye[d],u),children:[l&&e.jsx("span",{className:"pl-2 text-muted-foreground",children:l}),e.jsx("input",{id:w,ref:k,type:j,onBeforeInput:e=>{const r="number"===f?/^[0-9]*$/:"alpha"===f?/^[a-zA-Z]*$/:f instanceof RegExp?f:null;if(!r)return;const o=e.data,t=e.currentTarget.value+o;r.test(t)||e.preventDefault(),b?.(e)},onChange:g,disabled:x.disabled,className:we("peer w-full bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",l&&"pl-2",(i||z)&&"pr-8"),...x}),e.jsx("span",{className:"absolute right-2 text-muted-foreground",children:z?e.jsx("button",{type:"button",onClick:()=>v(e=>!e),className:"focus:outline-none",tabIndex:-1,children:y?e.jsx(p,{size:16}):e.jsx(m,{size:16})}):i})]}),s&&!a&&e.jsx("p",{className:"text-xs text-muted-foreground",children:s}),a&&e.jsx("p",{className:"text-xs text-destructive",children:a})]})});exports.Input=ve,exports.default=ve;
|
package/dist/Modal/index.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { DialogProps } from '@mui/material';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
4
2
|
|
|
5
|
-
interface ModalProps
|
|
3
|
+
interface ModalProps {
|
|
6
4
|
open: boolean;
|
|
7
5
|
onClose: () => void;
|
|
8
|
-
title?:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
showCloseIcon?: boolean;
|
|
11
|
+
maxWidth?: false | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
12
12
|
fullWidth?: boolean;
|
|
13
|
+
fullScreen?: boolean;
|
|
14
|
+
className?: string;
|
|
13
15
|
}
|
|
14
|
-
declare const Modal:
|
|
16
|
+
declare const Modal: React.FC<ModalProps>;
|
|
15
17
|
|
|
16
18
|
export { Modal, Modal as default };
|
|
17
19
|
export type { ModalProps };
|