@ethnolib/language-chooser-react-mui 0.1.24 → 0.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/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +3 -5
package/index.js
CHANGED
|
@@ -50,7 +50,7 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var C=Va(La,Ta,ta,la,ea+
|
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
51
|
*/var Hu;function rv(){return Hu||(Hu=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(typeof d=="object"&&d!==null){var I=d.$$typeof;switch(I){case i:switch(d=d.type,d){case s:case l:case r:case h:case N:case D:return d;default:switch(d=d&&d.$$typeof,d){case c:case p:case S:case T:return d;case m:return d;default:return I}}case t:return I}}}var i=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),D=Symbol.for("react.view_transition"),F=Symbol.for("react.client.reference");Ra.ContextConsumer=m,Ra.ContextProvider=c,Ra.Element=i,Ra.ForwardRef=p,Ra.Fragment=s,Ra.Lazy=S,Ra.Memo=T,Ra.Portal=t,Ra.Profiler=l,Ra.StrictMode=r,Ra.Suspense=h,Ra.SuspenseList=N,Ra.isContextConsumer=function(d){return e(d)===m},Ra.isContextProvider=function(d){return e(d)===c},Ra.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===i},Ra.isForwardRef=function(d){return e(d)===p},Ra.isFragment=function(d){return e(d)===s},Ra.isLazy=function(d){return e(d)===S},Ra.isMemo=function(d){return e(d)===T},Ra.isPortal=function(d){return e(d)===t},Ra.isProfiler=function(d){return e(d)===l},Ra.isStrictMode=function(d){return e(d)===r},Ra.isSuspense=function(d){return e(d)===h},Ra.isSuspenseList=function(d){return e(d)===N},Ra.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===s||d===l||d===r||d===h||d===N||typeof d=="object"&&d!==null&&(d.$$typeof===S||d.$$typeof===T||d.$$typeof===c||d.$$typeof===m||d.$$typeof===p||d.$$typeof===F||d.getModuleId!==void 0)},Ra.typeOf=e}()),Ra}process.env.NODE_ENV==="production"?ag.exports=ov():ag.exports=rv();var Ou=ag.exports;const gv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function nL(e){const i=`${e}`.match(gv);return i&&i[1]||""}function iL(e,i=""){return e.displayName||e.name||nL(e)||i}function Wu(e,i,t){const s=iL(i);return e.displayName||(s!==""?`${t}(${s})`:t)}function lv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return iL(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ou.ForwardRef:return Wu(e,e.render,"ForwardRef");case Ou.Memo:return Wu(e,e.type,"memo");default:return}}}const mv=Object.freeze(Object.defineProperty({__proto__:null,default:lv,getFunctionName:nL},Symbol.toStringTag,{value:"Module"}));function qn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ut(7));return e.charAt(0).toUpperCase()+e.slice(1)}const uv=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"}));function cv(...e){return e.reduce((i,t)=>t==null?i:function(...r){i.apply(this,r),t.apply(this,r)},()=>{})}function Lv(e,i=166){let t;function s(...r){const l=()=>{e.apply(this,r)};clearTimeout(t),t=setTimeout(l,i)}return s.clear=()=>{clearTimeout(t)},s}function yv(e,i){return process.env.NODE_ENV==="production"?()=>null:(t,s,r,l,m)=>{const c=r||"<<anonymous>>",p=m||s;return typeof t[s]<"u"?new Error(`The ${l} \`${p}\` of \`${c}\` is deprecated. ${i}`):null}}function pv(e,i){var t,s;return ha.isValidElement(e)&&i.indexOf((t=e.type.muiName)!=null?t:(s=e.type)==null||(s=s._payload)==null||(s=s.value)==null?void 0:s.muiName)!==-1}function tL(e){return e&&e.ownerDocument||document}function hv(e){return tL(e).defaultView||window}function dv(e,i){if(process.env.NODE_ENV==="production")return()=>null;const t=i?Pa({},i.propTypes):null;return r=>(l,m,c,p,h,...N)=>{const T=h||m,S=t==null?void 0:t[T];if(S){const D=S(l,m,c,p,h,...N);if(D)return D}return typeof l[m]<"u"&&!l[r]?new Error(`The prop \`${T}\` of \`${e}\` can only be used together with the \`${r}\` prop.`):null}}function sL(e,i){typeof e=="function"?e(i):e&&(e.current=i)}const oL=typeof window<"u"?ha.useLayoutEffect:ha.useEffect;let Xu=0;function bv(e){const[i,t]=ha.useState(e),s=e||i;return ha.useEffect(()=>{i==null&&(Xu+=1,t(`mui-${Xu}`))},[i]),s}const Yu=ha.useId;function Nv(e){if(Yu!==void 0){const i=Yu();return e??i}return bv(e)}function Tv(e,i,t,s,r){if(process.env.NODE_ENV==="production")return null;const l=r||i;return typeof e[i]<"u"?new Error(`The prop \`${l}\` is not supported. Please remove it.`):null}function xv({controlled:e,default:i,name:t,state:s="value"}){const{current:r}=ha.useRef(e!==void 0),[l,m]=ha.useState(i),c=r?e:l;if(process.env.NODE_ENV!=="production"){ha.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${s} state of ${t} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
52
52
|
`))},[s,t,e]);const{current:h}=ha.useRef(i);ha.useEffect(()=>{!r&&!Object.is(h,i)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
|
|
53
|
-
`))},[JSON.stringify(i)])}const p=ha.useCallback(h=>{r||m(h)},[]);return[c,p]}function Sv(e){const i=ha.useRef(e);return oL(()=>{i.current=e}),ha.useRef((...t)=>(0,i.current)(...t)).current}function vv(...e){return ha.useMemo(()=>e.every(i=>i==null)?null:i=>{e.forEach(t=>{sL(t,i)})},e)}class fg{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fg}start(i,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},i)}}let Os=!0,eg=!1;const kv=new fg,Mv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fv(e){const{type:i,tagName:t}=e;return!!(t==="INPUT"&&Mv[i]&&!e.readOnly||t==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Dv(e){e.metaKey||e.altKey||e.ctrlKey||(Os=!0)}function Kr(){Os=!1}function Fv(){this.visibilityState==="hidden"&&eg&&(Os=!0)}function wv(e){e.addEventListener("keydown",Dv,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",Fv,!0)}function _v(e){const{target:i}=e;try{return i.matches(":focus-visible")}catch{}return Os||fv(i)}function Iv(){const e=ha.useCallback(r=>{r!=null&&wv(r.ownerDocument)},[]),i=ha.useRef(!1);function t(){return i.current?(eg=!0,kv.start(100,()=>{eg=!1}),i.current=!1,!0):!1}function s(r){return _v(r)?(i.current=!0,!0):!1}return{isFocusVisibleRef:i,onFocus:s,onBlur:t,ref:e}}function ng(e,i){const t=Pa({},i);return Object.keys(e).forEach(s=>{if(s.toString().match(/^(components|slots)$/))t[s]=Pa({},e[s],t[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){const r=e[s]||{},l=i[s];t[s]={},!l||!Object.keys(l)?t[s]=r:!r||!Object.keys(r)?t[s]=l:(t[s]=Pa({},l),Object.keys(r).forEach(m=>{t[s][m]=ng(r[m],l[m])}))}else t[s]===void 0&&(t[s]=e[s])}),t}function Cv(e,i,t=void 0){const s={};return Object.keys(e).forEach(r=>{s[r]=e[r].reduce((l,m)=>{if(m){const c=i(m);c!==""&&l.push(c),t&&t[m]&&l.push(t[m])}return l},[]).join(" ")}),s}const Vu=e=>e,Gv=()=>{let e=Vu;return{configure(i){e=i},generate(i){return e(i)},reset(){e=Vu}}},rL=Gv(),Pv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Dg(e,i,t="Mui"){const s=Pv[i];return s?`${t}-${s}`:`${rL.generate(e)}-${i}`}function Av(e,i,t="Mui"){const s={};return i.forEach(r=>{s[r]=Dg(e,r,t)}),s}function zv(e,i=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(e,t))}const jv=Object.freeze(Object.defineProperty({__proto__:null,default:zv},Symbol.toStringTag,{value:"Module"}));function Hn(e,i){if(e==null)return{};var t={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(i.indexOf(s)!==-1)continue;t[s]=e[s]}return t}function gL(e){var i,t,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(i=0;i<r;i++)e[i]&&(t=gL(e[i]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}function Bv(){for(var e,i,t=0,s="",r=arguments.length;t<r;t++)(e=arguments[t])&&(i=gL(e))&&(s&&(s+=" "),s+=i);return s}const Kv=ha.createContext(void 0);process.env.NODE_ENV!=="production"&&(Sa.node,Sa.object);function Zv(e){const{theme:i,name:t,props:s}=e;if(!i||!i.components||!i.components[t])return s;const r=i.components[t];return r.defaultProps?ng(r.defaultProps,s):!r.styleOverrides&&!r.variants?ng(r,s):s}function Uv({props:e,name:i}){const t=ha.useContext(Kv);return Zv({props:e,name:i,theme:{components:t}})}process.env.NODE_ENV!=="production"&&(Sa.node,Sa.object.isRequired);function Rv(e){return Uv(e)}var bt={};const qv=pn(MS);var Zr={exports:{}},Ju;function Ev(){return Ju||(Ju=1,function(e){function i(t,s){if(t==null)return{};var r={};for(var l in t)if({}.hasOwnProperty.call(t,l)){if(s.indexOf(l)!==-1)continue;r[l]=t[l]}return r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(Zr)),Zr.exports}var Hv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ov=Ac(function(e){return Hv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Wv=Ov,Xv=function(i){return i!=="theme"},Qu=function(i){return typeof i=="string"&&i.charCodeAt(0)>96?Wv:Xv},$u=function(i,t,s){var r;if(t){var l=t.shouldForwardProp;r=i.__emotion_forwardProp&&l?function(m){return i.__emotion_forwardProp(m)&&l(m)}:l}return typeof r!="function"&&s&&(r=i.__emotion_forwardProp),r},Yv=function(i){var t=i.cache,s=i.serialized,r=i.isStringTag;return xg(t,s,r),qc(function(){return Uc(t,s,r)}),null},Vv=function e(i,t){var s=i.__emotion_real===i,r=s&&i.__emotion_base||i,l,m;t!==void 0&&(l=t.label,m=t.target);var c=$u(i,t,s),p=c||Qu(r),h=!p("as");return function(){var N=arguments,T=s&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(l!==void 0&&T.push("label:"+l+";"),N[0]==null||N[0].raw===void 0)T.push.apply(T,N);else{var S=N[0];T.push(S[0]);for(var D=N.length,F=1;F<D;F++)T.push(N[F],S[F])}var d=V.withEmotionCache(function(I,U,O){var E=h&&I.as||r,W="",f=[],Q=I;if(I.theme==null){Q={};for(var q in I)Q[q]=I[q];Q.theme=ha.useContext(V.ThemeContext)}typeof I.className=="string"?W=Zc(U.registered,f,I.className):I.className!=null&&(W=I.className+" ");var fa=Sg(T.concat(f),U.registered,Q);W+=U.key+"-"+fa.name,m!==void 0&&(W+=" "+m);var _a=h&&c===void 0?Qu(E):p,na={};for(var M in I)h&&M==="as"||_a(M)&&(na[M]=I[M]);return na.className=W,O&&(na.ref=O),ha.createElement(ha.Fragment,null,ha.createElement(Yv,{cache:U,serialized:fa,isStringTag:typeof E=="string"}),ha.createElement(E,na))});return d.displayName=l!==void 0?l:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",d.defaultProps=i.defaultProps,d.__emotion_real=d,d.__emotion_base=r,d.__emotion_styles=T,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+m}}),d.withComponent=function(I,U){var O=e(I,Pa({},t,U,{shouldForwardProp:$u(d,U,!0)}));return O.apply(void 0,T)},d}},Jv=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ig=Vv.bind(null);Jv.forEach(function(e){ig[e]=ig(e)});function Qv(e,i){const t=jc({key:"css",prepend:e});if(i){const s=t.insert;t.insert=(...r)=>(r[1].styles.match(/^@layer\s+[^{]*$/)||(r[1].styles=`@layer mui {${r[1].styles}}`),s(...r))}return t}const Ur=new Map;function lL(e){const{injectFirst:i,enableCssLayer:t,children:s}=e,r=ha.useMemo(()=>{const l=`${i}-${t}`;if(typeof document=="object"&&Ur.has(l))return Ur.get(l);const m=Qv(i,t);return Ur.set(l,m),m},[i,t]);return i||t?pe.jsx(V.CacheProvider,{value:r,children:s}):s}process.env.NODE_ENV!=="production"&&(lL.propTypes={children:Sa.node,enableCssLayer:Sa.bool,injectFirst:Sa.bool});function $v(e){return e==null||Object.keys(e).length===0}function mL(e){const{styles:i,defaultTheme:t={}}=e,s=typeof i=="function"?r=>i($v(r)?t:r):i;return pe.jsx(V.Global,{styles:s})}process.env.NODE_ENV!=="production"&&(mL.propTypes={defaultTheme:Sa.object,styles:Sa.oneOfType([Sa.array,Sa.string,Sa.object,Sa.func])});/**
|
|
53
|
+
`))},[JSON.stringify(i)])}const p=ha.useCallback(h=>{r||m(h)},[]);return[c,p]}function Sv(e){const i=ha.useRef(e);return oL(()=>{i.current=e}),ha.useRef((...t)=>(0,i.current)(...t)).current}function vv(...e){return ha.useMemo(()=>e.every(i=>i==null)?null:i=>{e.forEach(t=>{sL(t,i)})},e)}class fg{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fg}start(i,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},i)}}let Os=!0,eg=!1;const kv=new fg,Mv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fv(e){const{type:i,tagName:t}=e;return!!(t==="INPUT"&&Mv[i]&&!e.readOnly||t==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Dv(e){e.metaKey||e.altKey||e.ctrlKey||(Os=!0)}function Kr(){Os=!1}function Fv(){this.visibilityState==="hidden"&&eg&&(Os=!0)}function wv(e){e.addEventListener("keydown",Dv,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",Fv,!0)}function _v(e){const{target:i}=e;try{return i.matches(":focus-visible")}catch{}return Os||fv(i)}function Iv(){const e=ha.useCallback(r=>{r!=null&&wv(r.ownerDocument)},[]),i=ha.useRef(!1);function t(){return i.current?(eg=!0,kv.start(100,()=>{eg=!1}),i.current=!1,!0):!1}function s(r){return _v(r)?(i.current=!0,!0):!1}return{isFocusVisibleRef:i,onFocus:s,onBlur:t,ref:e}}function ng(e,i){const t=Pa({},i);return Object.keys(e).forEach(s=>{if(s.toString().match(/^(components|slots)$/))t[s]=Pa({},e[s],t[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){const r=e[s]||{},l=i[s];t[s]={},!l||!Object.keys(l)?t[s]=r:!r||!Object.keys(r)?t[s]=l:(t[s]=Pa({},l),Object.keys(r).forEach(m=>{t[s][m]=ng(r[m],l[m])}))}else t[s]===void 0&&(t[s]=e[s])}),t}function Cv(e,i,t=void 0){const s={};return Object.keys(e).forEach(r=>{s[r]=e[r].reduce((l,m)=>{if(m){const c=i(m);c!==""&&l.push(c),t&&t[m]&&l.push(t[m])}return l},[]).join(" ")}),s}const Vu=e=>e,Gv=()=>{let e=Vu;return{configure(i){e=i},generate(i){return e(i)},reset(){e=Vu}}},rL=Gv(),Pv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Dg(e,i,t="Mui"){const s=Pv[i];return s?`${t}-${s}`:`${rL.generate(e)}-${i}`}function Av(e,i,t="Mui"){const s={};return i.forEach(r=>{s[r]=Dg(e,r,t)}),s}function zv(e,i=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(e,t))}const jv=Object.freeze(Object.defineProperty({__proto__:null,default:zv},Symbol.toStringTag,{value:"Module"}));function Hn(e,i){if(e==null)return{};var t={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(i.indexOf(s)!==-1)continue;t[s]=e[s]}return t}function gL(e){var i,t,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(i=0;i<r;i++)e[i]&&(t=gL(e[i]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}function Bv(){for(var e,i,t=0,s="",r=arguments.length;t<r;t++)(e=arguments[t])&&(i=gL(e))&&(s&&(s+=" "),s+=i);return s}const Kv=ha.createContext(void 0);process.env.NODE_ENV!=="production"&&(Sa.node,Sa.object);function Zv(e){const{theme:i,name:t,props:s}=e;if(!i||!i.components||!i.components[t])return s;const r=i.components[t];return r.defaultProps?ng(r.defaultProps,s):!r.styleOverrides&&!r.variants?ng(r,s):s}function Uv({props:e,name:i}){const t=ha.useContext(Kv);return Zv({props:e,name:i,theme:{components:t}})}process.env.NODE_ENV!=="production"&&(Sa.node,Sa.object.isRequired);function Rv(e){return Uv(e)}var bt={};const qv=pn(MS);var Zr={exports:{}},Ju;function Ev(){return Ju||(Ju=1,function(e){function i(t,s){if(t==null)return{};var r={};for(var l in t)if({}.hasOwnProperty.call(t,l)){if(s.indexOf(l)!==-1)continue;r[l]=t[l]}return r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(Zr)),Zr.exports}var Hv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ov=Ac(function(e){return Hv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Wv=Ov,Xv=function(i){return i!=="theme"},Qu=function(i){return typeof i=="string"&&i.charCodeAt(0)>96?Wv:Xv},$u=function(i,t,s){var r;if(t){var l=t.shouldForwardProp;r=i.__emotion_forwardProp&&l?function(m){return i.__emotion_forwardProp(m)&&l(m)}:l}return typeof r!="function"&&s&&(r=i.__emotion_forwardProp),r},Yv=function(i){var t=i.cache,s=i.serialized,r=i.isStringTag;return xg(t,s,r),qc(function(){return Uc(t,s,r)}),null},Vv=function e(i,t){var s=i.__emotion_real===i,r=s&&i.__emotion_base||i,l,m;t!==void 0&&(l=t.label,m=t.target);var c=$u(i,t,s),p=c||Qu(r),h=!p("as");return function(){var N=arguments,T=s&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(l!==void 0&&T.push("label:"+l+";"),N[0]==null||N[0].raw===void 0)T.push.apply(T,N);else{var S=N[0];T.push(S[0]);for(var D=N.length,F=1;F<D;F++)T.push(N[F],S[F])}var d=V.withEmotionCache(function(I,U,O){var E=h&&I.as||r,W="",f=[],Q=I;if(I.theme==null){Q={};for(var q in I)Q[q]=I[q];Q.theme=ha.useContext(V.ThemeContext)}typeof I.className=="string"?W=Zc(U.registered,f,I.className):I.className!=null&&(W=I.className+" ");var fa=Sg(T.concat(f),U.registered,Q);W+=U.key+"-"+fa.name,m!==void 0&&(W+=" "+m);var _a=h&&c===void 0?Qu(E):p,na={};for(var M in I)h&&M==="as"||_a(M)&&(na[M]=I[M]);return na.className=W,O&&(na.ref=O),ha.createElement(ha.Fragment,null,ha.createElement(Yv,{cache:U,serialized:fa,isStringTag:typeof E=="string"}),ha.createElement(E,na))});return d.displayName=l!==void 0?l:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",d.defaultProps=i.defaultProps,d.__emotion_real=d,d.__emotion_base=r,d.__emotion_styles=T,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+m}}),d.withComponent=function(I,U){var O=e(I,Pa({},t,U,{shouldForwardProp:$u(d,U,!0)}));return O.apply(void 0,T)},d}},Jv=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ig=Vv.bind(null);Jv.forEach(function(e){ig[e]=ig(e)});function Qv(e,i){const t=jc({key:"css",prepend:e});if(i){const s=t.insert;t.insert=(...r)=>(r[1].styles.match(/^@layer\s+[^{]*$/)||(r[1].styles=`@layer mui {${r[1].styles}}`),s(...r))}return t}const Ur=new Map;function lL(e){const{injectFirst:i,enableCssLayer:t,children:s}=e,r=ha.useMemo(()=>{const l=`${i}-${t}`;if(typeof document=="object"&&Ur.has(l))return Ur.get(l);const m=Qv(i,t);return Ur.set(l,m),m},[i,t]);return i||t?pe.jsx(V.CacheProvider,{value:r,children:s}):s}process.env.NODE_ENV!=="production"&&(lL.propTypes={children:Sa.node,enableCssLayer:Sa.bool,injectFirst:Sa.bool});function $v(e){return e==null||Object.keys(e).length===0}function mL(e){const{styles:i,defaultTheme:t={}}=e,s=typeof i=="function"?r=>i($v(r)?t:r):i;return pe.jsx(V.Global,{styles:s})}process.env.NODE_ENV!=="production"&&(mL.propTypes={defaultTheme:Sa.object,styles:Sa.oneOfType([Sa.array,Sa.string,Sa.object,Sa.func])});/**
|
|
54
54
|
* @mui/styled-engine v5.18.0
|
|
55
55
|
*
|
|
56
56
|
* @license MIT
|
package/index.mjs
CHANGED
|
@@ -2425,7 +2425,7 @@ function Dk() {
|
|
|
2425
2425
|
e.exports = i, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
2426
2426
|
}(Rr)), Rr.exports;
|
|
2427
2427
|
}
|
|
2428
|
-
var Fk = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|
|
|
2428
|
+
var Fk = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, wk = /* @__PURE__ */ Xc(
|
|
2429
2429
|
function(e) {
|
|
2430
2430
|
return Fk.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
2431
2431
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "SIL Global",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.3.0",
|
|
15
15
|
"main": "./index.js",
|
|
16
16
|
"types": "./index.d.ts",
|
|
17
17
|
"exports": {
|
|
@@ -26,15 +26,13 @@
|
|
|
26
26
|
"e2e": "playwright test"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ethnolib/find-language": "0.
|
|
30
|
-
"@ethnolib/language-chooser-react-hook": "0.
|
|
29
|
+
"@ethnolib/find-language": "0.3.0",
|
|
30
|
+
"@ethnolib/language-chooser-react-hook": "0.3.0",
|
|
31
31
|
"lodash": "^4.17.21",
|
|
32
32
|
"react-lazyload": "^3.2.1",
|
|
33
33
|
"@mui/icons-material": "^5.15.19"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@nx/playwright": "^19.8.10",
|
|
37
|
-
"@nx/storybook": "^19.8.0",
|
|
38
36
|
"@storybook/addon-essentials": "^8.2.8",
|
|
39
37
|
"@storybook/core-server": "^8.2.8",
|
|
40
38
|
"@storybook/react-vite": "^8.2.8",
|