@fluentui/react-theme-provider
Advanced tools
Comparing version 9.0.0-alpha.44 to 9.0.0-alpha.45
# Change Log - @fluentui/react-theme-provider | ||
This log was last generated on Tue, 22 Jun 2021 07:32:17 GMT and should not be manually modified. | ||
This log was last generated on Tue, 29 Jun 2021 07:29:59 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.45](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v9.0.0-alpha.45) | ||
Tue, 29 Jun 2021 07:29:59 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v9.0.0-alpha.44..@fluentui/react-theme-provider_v9.0.0-alpha.45) | ||
### Changes | ||
- Bump @fluentui/babel-make-styles to v9.0.0-alpha.18 ([PR #18169](https://github.com/microsoft/fluentui/pull/18169) by olfedias@microsoft.com) | ||
## [9.0.0-alpha.44](https://github.com/microsoft/fluentui/tree/@fluentui/react-theme-provider_v9.0.0-alpha.44) | ||
Tue, 22 Jun 2021 07:32:17 GMT | ||
Tue, 22 Jun 2021 07:35:11 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-theme-provider_v9.0.0-alpha.43..@fluentui/react-theme-provider_v9.0.0-alpha.44) | ||
@@ -11,0 +20,0 @@ |
@@ -1,2 +0,2 @@ | ||
var FluentUIReactThemeProvider;FluentUIReactThemeProvider=(()=>{"use strict";var e={19:(e,r,t)=>{t.r(r),t.d(r,{ThemeProvider:()=>Y,renderThemeProvider:()=>X,themeProviderShorthandProps:()=>g,useTheme:()=>c,useThemeProvider:()=>C});const n=React;var o=function(){return(o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function a(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var a=arguments[r],i=0,l=a.length;i<l;i++,o++)n[o]=a[i];return n}function i(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t=[],n=0,o=e;n<o.length;n++){var a=o[n];if(a)if("string"==typeof a)t.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)t.push(a.toString());else for(var i in a)a[i]&&t.push(i)}return t.join(" ")}Object.create,Object.create;var l=function(e){void 0===e&&(e={});var r=a(e.deepMerge||[],["style"]),t=function(e){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];for(var l=0,s=o;l<s.length;l++){var u=s[l];if(u)for(var c=0,f=Object.keys(u);c<f.length;c++){var d=f[c],v=u[d],p=typeof v;void 0!==v&&(v&&"object"===p?Array.isArray(v)?e[d]=v:(e[d]=e[d]||{},"object"!=typeof e[d]||n.isValidElement(v)||v&&"object"==typeof v&&v.hasOwnProperty("current")||-1===r.indexOf(d)?e[d]=v:t(e[d],v)):"className"===d?v&&(e[d]=i(e[d],v)):e[d]=v)}}return e};return t};function s(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=n.useCallback((function(r){t.current=r;for(var n=0,o=e;n<o.length;n++){var a=o[n];"function"==typeof a?a(r):a&&(a.current=r)}}),a(e));return t}var u=n.createContext(null);function c(){return n.useContext(u)}function f(e,r,t){for(var n in void 0===t&&(t=[]),t.push(r),r)if(r.hasOwnProperty(n)&&"__proto__"!==n&&"constructor"!==n&&"prototype"!==n){var o=r[n];if("object"!=typeof o||null===o||Array.isArray(o))e[n]=o;else{var a=t.indexOf(o)>-1;e[n]=a?o:f(e[n]||{},o,t)}}return t.pop(),e}var d={current:0},v=n.createContext(d);function p(e,r,t){for(var n in void 0===r&&(r=""),void 0===t&&(t={}),e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?r+"-"+n:"--"+n;"object"==typeof e[n]?p(e[n],o,t):t[o]=e[n]}return t}function h(e){return p(e)}var m=function(e){var r,t,o,a,i,l=e.targetDocument,s=e.theme,u=(r="theme-provider",o=n.useContext(v),n.useMemo((function(){return""+r+ ++o.current}),[r,t,o])),c=n.useMemo((function(){if(!l)return null;var e=l.createElement("style");return e.setAttribute("id",u),l.head.appendChild(e),e}),[u,l]),f=n.useMemo((function(){var e=h(s),r=Object.keys(e).reduce((function(r,t){return r+(t+": ")+e[t]+"; "}),"");return"."+u+" { "+r+" }"}),[s,u]),d=(a=f,i=n.useRef(null),n.useEffect((function(){i.current=a}),[a]),i.current);if(c&&d!==f){var p=c.sheet;p.cssRules.length>0&&p.deleteRule(0),p.insertRule(f,0)}return n.useEffect((function(){return function(){var e;c&&(null===(e=c.parentElement)||void 0===e||e.removeChild(c))}}),[c]),u},g=[],y=l({deepMerge:g}),C=function(e,r,t){var a,i,l,u=y({ref:s(r,n.useRef(null)),as:"div",targetDocument:"object"==typeof document&&document},t,function(e,r){for(var t=e,a=0,i=r;a<i.length;a++){var l=i[a],s=e[l];void 0===s||"object"==typeof s&&!n.isValidElement(s)||(t===e&&(t=o({},e)),t[l]={children:s})}return t}(e,g)),d=(i=c(),l=null!==(a=u.theme)&&void 0!==a?a:{},i&&l?function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var n=0,o=r;n<o.length;n++)f(e||{},o[n]);return e}({},i,l):i||l),v=m({theme:d,targetDocument:u.targetDocument});return u.className=[u.className||"",v].filter(Boolean).join(" "),u.theme=d,u},b="__",P={};function w(e,r){return b+function(e){var r=e.length;if(7===r)return e;for(var t=r;t<7;t++)e+="0";return e}(function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)}(e+r))}function O(e,r,t){var n={};for(var o in e){var a=t.insertDefinitions(r,e[o]),i=w(a,r),l=i+" "+a;P[i]=[e[o],r],n[o]=l}return n}var x=n.createContext({targetDocument:"object"==typeof document?document:void 0,dir:"ltr"}),S=["","l","v","w","f","i","h","a","k","t"];function E(e,r,t){if(!t.styleElements[e]){for(var n=S.indexOf(e)+1,o=null;n<S.length;n++){var a=t.styleElements[S[n]];if(a){o=a;break}}var i=r.createElement("style");i.dataset.makeStylesBucket=e||"default",t.styleElements[e]=i,r.head.insertBefore(i,o)}return t.styleElements[e].sheet}var j=0;function D(e){void 0===e&&(e="undefined"==typeof document?void 0:document);var r={insertionCache:{},styleElements:{},id:"d"+j++,insertDefinitions:function(t,n){var o="";for(var a in n){var i=n[a],l=i[1],s=i[3],u="ltr"===t?l:s||l;u&&(o+=u+" ");var c=u||a;if(!r.insertionCache[c]){var f=i[0],d=i[2],v=i[4],p="rtl"===t&&v||d;if(e){var h=E(f,e,r);try{h.insertRule(p,h.cssRules.length)}catch(e){M.test(p)||console.error('There was a problem inserting the following rule: "'+p+'"',e)}}r.insertionCache[c]=!0}}return o.slice(0,-1)}};return r}var M=new RegExp(":("+["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|")+")"),T=n.createContext(D());function k(e){var r=function(e){var r=null,t=null,n={};return function(o){var a=o.dir,i=o.renderer;if("rtl"===a){var l=i.id+"r";null!==t&&void 0!==n[l]||(t=O(e,a,i),n[l]=!0)}else null!==r&&void 0!==n[i.id]||(r=O(e,a,i),n[o.renderer.id]=!0);return"ltr"===a?r:t}}(e);return function(){var e=n.useContext(x).dir,t=n.useContext(T);return r({dir:e,renderer:t})}}var A={},z=b.length+7,R=k({root:{sj55zd:["","f16th3vw",".f16th3vw{color:var(--alias-color-neutral-neutralForeground1);}"],De3pzq:["","fpnz0vo",".fpnz0vo{background-color:var(--alias-color-neutral-neutralBackground1);}"],Bahqtrf:["","f1kx028l",".f1kx028l{font-family:var(--global-type-fontFamilies-base);}"],Be2twd7:["","flcnb0",".flcnb0{font-size:var(--global-type-fontSizes-base-300);}"],Bhrd7zp:["","f1du0uop",".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}"]}}),L=n.createContext(""),F=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t={},n=0,o=e;n<o.length;n++)for(var a=o[n],i=Array.isArray(a)?a:Object.keys(a),l=0,s=i;l<s.length;l++){var u=s[l];t[u]=1}return t},_=F(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),B=F(F(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),_),N=F(B,["form"]),U=F(B,["height","loop","muted","preload","src","width"]),q=F(U,["poster"]),K=F(B,["start"]),V=F(B,["value"]),I=F(B,["download","href","hrefLang","media","rel","target","type"]),W=F(B,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),G={label:N,audio:U,video:q,ol:K,li:V,a:I,button:W,input:F(W,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textarea:F(W,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:F(W,["form","multiple","required"]),option:F(B,["selected","value"]),table:F(B,["cellPadding","cellSpacing"]),tr:B,th:F(B,["rowSpan","scope"]),td:F(B,["colSpan","headers","rowSpan","scope"]),colGroup:F(B,["span"]),col:F(B,["span"]),form:F(B,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:F(B,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:F(B,["alt","crossOrigin","height","src","srcSet","useMap","width"])};function H(e,r,t){return function(e,r,t){for(var n=Array.isArray(r),o={},a=0,i=Object.keys(e);a<i.length;a++){var l=i[a];!(!n&&r[l]||n&&r.indexOf(l)>=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||t&&-1!==(null==t?void 0:t.indexOf(l))||(o[l]=e[l])}return o}(r,e&&G[e]||B,t)}function J(e,r){var t={};for(var n in e)-1===r.indexOf(n)&&e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var Q=function(){return null};function X(e){var r,t=function(e,r){var t={root:e.as||"div"},o={root:"string"==typeof t.root?H(t.root,e):J(e,["as"])};if(r)for(var a=0,i=r;a<i.length;a++){var l=i[a],s=e[l]||{},u=s.as,c=void 0===u?"span":u,f=s.children,d="string"==typeof c,v=d&&void 0===s.children;t[l]=v?Q:c,"function"==typeof f?(o[l]={children:f(t[l],J(s,["as","children"]))},t[l]=n.Fragment):t[l]!==Q&&(o[l]=d?H(c,s):J(s,["as"]))}return{slots:t,slotProps:o}}(e,g),a=t.slots,i=t.slotProps;return n.createElement(a.root,o({},i.root),n.createElement(u.Provider,{value:e.theme},n.createElement(L.Provider,{value:null!==(r=e.className)&&void 0!==r?r:""},e.children)))}var Y=n.forwardRef((function(e,r){var t=C(e,r);return function(e){var r=R();e.className=function(){for(var e=null,r="",t="",n=[],o=0;o<arguments.length;o++)if("string"==typeof(d=arguments[o])){var a=d.indexOf(b);if(-1===a)r+=d+" ";else{var i=d.slice(a,a+z),l=P[i];a>0&&(r+=d.slice(0,a)),l?(t+=i,n.push(l[0]),null!==e&&e!==l[1]&&console.error("mergeClasses(): a passed string contains an identifier ("+i+') that has different direction (dir="'+(l[1]?"rtl":"ltr")+'") setting than other classes. This is not supported. Source string: '+d),e=l[1]):console.error("mergeClasses(): a passed string contains an identifier ("+i+") that does not match any entryin cache. Source string: "+d)}-1!==d.indexOf(b,a+1)&&console.error('mergeClasses(): a passed string contains multiple identifiers of atomic classes (classes that start with "__"), it\'s possible that passed classes were concatenated in a wrong way. Source string: '+d)}if(""===t)return r.slice(0,-1);var s=A[t];if(void 0!==s)return r+s;var u=Object.assign.apply(Object,[{}].concat(n)),c="";for(var f in u){var d,v=u[f];c+="rtl"===e?(d=v[3]||v[1])+" ":v[1]+" "}var p=w(c=c.slice(0,-1),e);return c=p+" "+c,A[t]=c,P[p]=[u,null!=e?e:"ltr"],r+c}(r.root,e.className)}(t),X(t)}));Y.displayName="ThemeProvider"}},r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{}};return e[n](o,o.exports,t),o.exports}return t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(19)})(); | ||
var FluentUIReactThemeProvider;FluentUIReactThemeProvider=(()=>{"use strict";var e={808:(e,r,t)=>{t.r(r),t.d(r,{ThemeProvider:()=>Z,renderThemeProvider:()=>Y,themeProviderShorthandProps:()=>m,useTheme:()=>c,useThemeProvider:()=>C});const n=React;var o=function(){return(o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function a(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var a=arguments[r],i=0,l=a.length;i<l;i++,o++)n[o]=a[i];return n}function i(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t=[],n=0,o=e;n<o.length;n++){var a=o[n];if(a)if("string"==typeof a)t.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)t.push(a.toString());else for(var i in a)a[i]&&t.push(i)}return t.join(" ")}Object.create,Object.create;var l=function(e){void 0===e&&(e={});var r=a(e.deepMerge||[],["style"]),t=function(e){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];for(var l=0,s=o;l<s.length;l++){var u=s[l];if(u)for(var c=0,f=Object.keys(u);c<f.length;c++){var d=f[c],v=u[d],p=typeof v;void 0!==v&&(v&&"object"===p?Array.isArray(v)?e[d]=v:(e[d]=e[d]||{},"object"!=typeof e[d]||n.isValidElement(v)||v&&"object"==typeof v&&v.hasOwnProperty("current")||-1===r.indexOf(d)?e[d]=v:t(e[d],v)):"className"===d?v&&(e[d]=i(e[d],v)):e[d]=v)}}return e};return t};function s(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=n.useCallback((function(r){t.current=r;for(var n=0,o=e;n<o.length;n++){var a=o[n];"function"==typeof a?a(r):a&&(a.current=r)}}),a(e));return t}var u=n.createContext(null);function c(){return n.useContext(u)}function f(e,r,t){for(var n in void 0===t&&(t=[]),t.push(r),r)if(r.hasOwnProperty(n)&&"__proto__"!==n&&"constructor"!==n&&"prototype"!==n){var o=r[n];if("object"!=typeof o||null===o||Array.isArray(o))e[n]=o;else{var a=t.indexOf(o)>-1;e[n]=a?o:f(e[n]||{},o,t)}}return t.pop(),e}var d={current:0},v=n.createContext(d);function p(e,r,t){for(var n in void 0===r&&(r=""),void 0===t&&(t={}),e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?r+"-"+n:"--"+n;"object"==typeof e[n]?p(e[n],o,t):t[o]=e[n]}return t}function h(e){return p(e)}var g=function(e){var r,t,o,a,i,l=e.targetDocument,s=e.theme,u=(r="theme-provider",o=n.useContext(v),n.useMemo((function(){return""+r+ ++o.current}),[r,t,o])),c=n.useMemo((function(){if(!l)return null;var e=l.createElement("style");return e.setAttribute("id",u),l.head.appendChild(e),e}),[u,l]),f=n.useMemo((function(){var e=h(s),r=Object.keys(e).reduce((function(r,t){return r+(t+": ")+e[t]+"; "}),"");return"."+u+" { "+r+" }"}),[s,u]),d=(a=f,i=n.useRef(null),n.useEffect((function(){i.current=a}),[a]),i.current);if(c&&d!==f){var p=c.sheet;p.cssRules.length>0&&p.deleteRule(0),p.insertRule(f,0)}return n.useEffect((function(){return function(){var e;c&&(null===(e=c.parentElement)||void 0===e||e.removeChild(c))}}),[c]),u},m=[],y=l({deepMerge:m}),C=function(e,r,t){var a,i,l,u=y({ref:s(r,n.useRef(null)),as:"div",targetDocument:"object"==typeof document&&document},t,function(e,r){for(var t=e,a=0,i=r;a<i.length;a++){var l=i[a],s=e[l];void 0===s||"object"==typeof s&&!n.isValidElement(s)||(t===e&&(t=o({},e)),t[l]={children:s})}return t}(e,m)),d=(i=c(),l=null!==(a=u.theme)&&void 0!==a?a:{},i&&l?function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var n=0,o=r;n<o.length;n++)f(e||{},o[n]);return e}({},i,l):i||l),v=g({theme:d,targetDocument:u.targetDocument});return u.className=[u.className||"",v].filter(Boolean).join(" "),u.theme=d,u},b="__",P={};function w(e,r){return b+function(e){var r=e.length;if(7===r)return e;for(var t=r;t<7;t++)e+="0";return e}(function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)}(e+r))}function O(e,r){var t="";for(var n in e){var o=e[n];if(o){var a=Array.isArray(o);t+="rtl"===r?(a?o[1]:o)+" ":(a?o[0]:o)+" "}}return t.slice(0,-1)}function S(e,r){var t={};for(var n in e){var o=O(e[n],r),a=w(o,r),i=a+" "+o;P[a]=[e[n],r],t[n]=i}return t}var x=n.createContext({targetDocument:"object"==typeof document?document:void 0,dir:"ltr"}),E=["d","l","v","w","f","i","h","a","k","t"];function j(e,r,t){if(!t.styleElements[e]){for(var n=E.indexOf(e)+1,o=null;n<E.length;n++){var a=t.styleElements[E[n]];if(a){o=a;break}}var i=r.createElement("style");i.dataset.makeStylesBucket=e,t.styleElements[e]=i,r.head.insertBefore(i,o)}return t.styleElements[e].sheet}var M=0;function D(e){void 0===e&&(e="undefined"==typeof document?void 0:document);var r={insertionCache:{},styleElements:{},id:"d"+M++,insertCSSRules:function(t){for(var n in t)for(var o=t[n],a=e&&j(n,e,r),i=0,l=o.length;i<l;i++){var s=o[i];if(!r.insertionCache[s]&&(r.insertionCache[s]=n,a))try{a.insertRule(s,a.cssRules.length)}catch(e){T.test(s)||console.error('There was a problem inserting the following rule: "'+s+'"',e)}}}};return r}var T=new RegExp(":("+["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|")+")"),A=n.createContext(D());function k(e,r){var t=function(e,r){var t={},n=null,o=null;return function(a){var i=a.dir,l=a.renderer,s="ltr"===i,u=s?l.id:l.id+"r";return s?null===n&&(n=S(e,i)):null===o&&(o=S(e,i)),void 0===t[u]&&(l.insertCSSRules(r),t[u]=!0),s?n:o}}(e,r);return function(){var e=n.useContext(x).dir,r=n.useContext(A);return t({dir:e,renderer:r})}}var R={},z=b.length+7,L=k({root:{sj55zd:"f16th3vw",De3pzq:"fpnz0vo",Bahqtrf:"f1kx028l",Be2twd7:"flcnb0",Bhrd7zp:"f1du0uop"}},{d:[".f16th3vw{color:var(--alias-color-neutral-neutralForeground1);}",".fpnz0vo{background-color:var(--alias-color-neutral-neutralBackground1);}",".f1kx028l{font-family:var(--global-type-fontFamilies-base);}",".flcnb0{font-size:var(--global-type-fontSizes-base-300);}",".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}"]}),F=n.createContext(""),_=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t={},n=0,o=e;n<o.length;n++)for(var a=o[n],i=Array.isArray(a)?a:Object.keys(a),l=0,s=i;l<s.length;l++){var u=s[l];t[u]=1}return t},B=_(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),N=_(_(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),B),U=_(N,["form"]),q=_(N,["height","loop","muted","preload","src","width"]),K=_(q,["poster"]),V=_(N,["start"]),I=_(N,["value"]),W=_(N,["download","href","hrefLang","media","rel","target","type"]),G=_(N,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),H={label:U,audio:q,video:K,ol:V,li:I,a:W,button:G,input:_(G,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textarea:_(G,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:_(G,["form","multiple","required"]),option:_(N,["selected","value"]),table:_(N,["cellPadding","cellSpacing"]),tr:N,th:_(N,["rowSpan","scope"]),td:_(N,["colSpan","headers","rowSpan","scope"]),colGroup:_(N,["span"]),col:_(N,["span"]),form:_(N,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:_(N,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:_(N,["alt","crossOrigin","height","src","srcSet","useMap","width"])};function J(e,r,t){return function(e,r,t){for(var n=Array.isArray(r),o={},a=0,i=Object.keys(e);a<i.length;a++){var l=i[a];!(!n&&r[l]||n&&r.indexOf(l)>=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||t&&-1!==(null==t?void 0:t.indexOf(l))||(o[l]=e[l])}return o}(r,e&&H[e]||N,t)}function Q(e,r){var t={};for(var n in e)-1===r.indexOf(n)&&e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var X=function(){return null};function Y(e){var r,t=function(e,r){var t={root:e.as||"div"},o={root:"string"==typeof t.root?J(t.root,e):Q(e,["as"])};if(r)for(var a=0,i=r;a<i.length;a++){var l=i[a],s=e[l]||{},u=s.as,c=void 0===u?"span":u,f=s.children,d="string"==typeof c,v=d&&void 0===s.children;t[l]=v?X:c,"function"==typeof f?(o[l]={children:f(t[l],Q(s,["as","children"]))},t[l]=n.Fragment):t[l]!==X&&(o[l]=d?J(c,s):Q(s,["as"]))}return{slots:t,slotProps:o}}(e,m),a=t.slots,i=t.slotProps;return n.createElement(a.root,o({},i.root),n.createElement(u.Provider,{value:e.theme},n.createElement(F.Provider,{value:null!==(r=e.className)&&void 0!==r?r:""},e.children)))}var Z=n.forwardRef((function(e,r){var t=C(e,r);return function(e){var r=L();e.className=function(){for(var e=null,r="",t="",n=[],o=0;o<arguments.length;o++){var a=arguments[o];if("string"==typeof a){var i=a.indexOf(b);if(-1===i)r+=a+" ";else{var l=a.slice(i,i+z),s=P[l];i>0&&(r+=a.slice(0,i)),s?(t+=l,n.push(s[0]),null!==e&&e!==s[1]&&console.error("mergeClasses(): a passed string contains an identifier ("+l+') that has different direction (dir="'+(s[1]?"rtl":"ltr")+'") setting than other classes. This is not supported. Source string: '+a),e=s[1]):console.error("mergeClasses(): a passed string contains an identifier ("+l+") that does not match any entryin cache. Source string: "+a)}-1!==a.indexOf(b,i+1)&&console.error('mergeClasses(): a passed string contains multiple identifiers of atomic classes (classes that start with "__"), it\'s possible that passed classes were concatenated in a wrong way. Source string: '+a)}}if(""===t)return r.slice(0,-1);var u=R[t];if(void 0!==u)return r+u;var c=Object.assign.apply(Object,[{}].concat(n)),f=O(c,e),d=w(f,e);return f=d+" "+f,R[t]=f,P[d]=[c,e],r+f}(r.root,e.className)}(t),Y(t)}));Z.displayName="ThemeProvider"}},r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{}};return e[n](o,o.exports,t),o.exports}return t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(808)})(); | ||
//# sourceMappingURL=react-theme-provider.js.map |
@@ -1,2 +0,2 @@ | ||
var FluentUIReactThemeProvider;FluentUIReactThemeProvider=(()=>{"use strict";var e={19:(e,r,t)=>{t.r(r),t.d(r,{ThemeProvider:()=>X,renderThemeProvider:()=>Q,themeProviderShorthandProps:()=>g,useTheme:()=>s,useThemeProvider:()=>C});const n=React;var o=function(){return(o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function a(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var a=arguments[r],i=0,l=a.length;i<l;i++,o++)n[o]=a[i];return n}function i(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t=[],n=0,o=e;n<o.length;n++){var a=o[n];if(a)if("string"==typeof a)t.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)t.push(a.toString());else for(var i in a)a[i]&&t.push(i)}return t.join(" ")}Object.create,Object.create;var l=function(e){void 0===e&&(e={});var r=a(e.deepMerge||[],["style"]),t=function(e){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];for(var l=0,u=o;l<u.length;l++){var c=u[l];if(c)for(var s=0,f=Object.keys(c);s<f.length;s++){var d=f[s],v=c[d],p=typeof v;void 0!==v&&(v&&"object"===p?Array.isArray(v)?e[d]=v:(e[d]=e[d]||{},"object"!=typeof e[d]||n.isValidElement(v)||v&&"object"==typeof v&&v.hasOwnProperty("current")||-1===r.indexOf(d)?e[d]=v:t(e[d],v)):"className"===d?v&&(e[d]=i(e[d],v)):e[d]=v)}}return e};return t};function u(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=n.useCallback((function(r){t.current=r;for(var n=0,o=e;n<o.length;n++){var a=o[n];"function"==typeof a?a(r):a&&(a.current=r)}}),a(e));return t}var c=n.createContext(null);function s(){return n.useContext(c)}function f(e,r,t){for(var n in void 0===t&&(t=[]),t.push(r),r)if(r.hasOwnProperty(n)&&"__proto__"!==n&&"constructor"!==n&&"prototype"!==n){var o=r[n];if("object"!=typeof o||null===o||Array.isArray(o))e[n]=o;else{var a=t.indexOf(o)>-1;e[n]=a?o:f(e[n]||{},o,t)}}return t.pop(),e}var d={current:0},v=n.createContext(d);function p(e,r,t){for(var n in void 0===r&&(r=""),void 0===t&&(t={}),e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?r+"-"+n:"--"+n;"object"==typeof e[n]?p(e[n],o,t):t[o]=e[n]}return t}function h(e){return p(e)}var m=function(e){var r,t,o,a,i,l=e.targetDocument,u=e.theme,c=(r="theme-provider",o=n.useContext(v),n.useMemo((function(){return""+r+ ++o.current}),[r,t,o])),s=n.useMemo((function(){if(!l)return null;var e=l.createElement("style");return e.setAttribute("id",c),l.head.appendChild(e),e}),[c,l]),f=n.useMemo((function(){var e=h(u),r=Object.keys(e).reduce((function(r,t){return r+(t+": ")+e[t]+"; "}),"");return"."+c+" { "+r+" }"}),[u,c]),d=(a=f,i=n.useRef(null),n.useEffect((function(){i.current=a}),[a]),i.current);if(s&&d!==f){var p=s.sheet;p.cssRules.length>0&&p.deleteRule(0),p.insertRule(f,0)}return n.useEffect((function(){return function(){var e;s&&(null===(e=s.parentElement)||void 0===e||e.removeChild(s))}}),[s]),c},g=[],y=l({deepMerge:g}),C=function(e,r,t){var a,i,l,c=y({ref:u(r,n.useRef(null)),as:"div",targetDocument:"object"==typeof document&&document},t,function(e,r){for(var t=e,a=0,i=r;a<i.length;a++){var l=i[a],u=e[l];void 0===u||"object"==typeof u&&!n.isValidElement(u)||(t===e&&(t=o({},e)),t[l]={children:u})}return t}(e,g)),d=(i=s(),l=null!==(a=c.theme)&&void 0!==a?a:{},i&&l?function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var n=0,o=r;n<o.length;n++)f(e||{},o[n]);return e}({},i,l):i||l),v=m({theme:d,targetDocument:c.targetDocument});return c.className=[c.className||"",v].filter(Boolean).join(" "),c.theme=d,c},b="__",P={};function O(e,r){return b+function(e){var r=e.length;if(7===r)return e;for(var t=r;t<7;t++)e+="0";return e}(function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)}(e+r))}function w(e,r,t){var n={};for(var o in e){var a=t.insertDefinitions(r,e[o]),i=O(a,r),l=i+" "+a;P[i]=[e[o],r],n[o]=l}return n}var x=n.createContext({targetDocument:"object"==typeof document?document:void 0,dir:"ltr"}),S=["","l","v","w","f","i","h","a","k","t"];function E(e,r,t){if(!t.styleElements[e]){for(var n=S.indexOf(e)+1,o=null;n<S.length;n++){var a=t.styleElements[S[n]];if(a){o=a;break}}var i=r.createElement("style");i.dataset.makeStylesBucket=e||"default",t.styleElements[e]=i,r.head.insertBefore(i,o)}return t.styleElements[e].sheet}var j=0;function D(e){void 0===e&&(e="undefined"==typeof document?void 0:document);var r={insertionCache:{},styleElements:{},id:"d"+j++,insertDefinitions:function(t,n){var o="";for(var a in n){var i=n[a],l=i[1],u=i[3],c="ltr"===t?l:u||l;c&&(o+=c+" ");var s=c||a;if(!r.insertionCache[s]){var f=i[0],d=i[2],v=i[4],p="rtl"===t&&v||d;if(e){var h=E(f,e,r);try{h.insertRule(p,h.cssRules.length)}catch(e){}}r.insertionCache[s]=!0}}return o.slice(0,-1)}};return r}var M=n.createContext(D());function k(e){var r=function(e){var r=null,t=null,n={};return function(o){var a=o.dir,i=o.renderer;if("rtl"===a){var l=i.id+"r";null!==t&&void 0!==n[l]||(t=w(e,a,i),n[l]=!0)}else null!==r&&void 0!==n[i.id]||(r=w(e,a,i),n[o.renderer.id]=!0);return"ltr"===a?r:t}}(e);return function(){var e=n.useContext(x).dir,t=n.useContext(M);return r({dir:e,renderer:t})}}var T={},A=b.length+7,R=k({root:{sj55zd:["","f16th3vw",".f16th3vw{color:var(--alias-color-neutral-neutralForeground1);}"],De3pzq:["","fpnz0vo",".fpnz0vo{background-color:var(--alias-color-neutral-neutralBackground1);}"],Bahqtrf:["","f1kx028l",".f1kx028l{font-family:var(--global-type-fontFamilies-base);}"],Be2twd7:["","flcnb0",".flcnb0{font-size:var(--global-type-fontSizes-base-300);}"],Bhrd7zp:["","f1du0uop",".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}"]}}),L=n.createContext(""),z=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t={},n=0,o=e;n<o.length;n++)for(var a=o[n],i=Array.isArray(a)?a:Object.keys(a),l=0,u=i;l<u.length;l++){var c=u[l];t[c]=1}return t},F=z(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),B=z(z(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),F),N=z(B,["form"]),U=z(B,["height","loop","muted","preload","src","width"]),_=z(U,["poster"]),q=z(B,["start"]),K=z(B,["value"]),V=z(B,["download","href","hrefLang","media","rel","target","type"]),I=z(B,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),W={label:N,audio:U,video:_,ol:q,li:K,a:V,button:I,input:z(I,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textarea:z(I,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:z(I,["form","multiple","required"]),option:z(B,["selected","value"]),table:z(B,["cellPadding","cellSpacing"]),tr:B,th:z(B,["rowSpan","scope"]),td:z(B,["colSpan","headers","rowSpan","scope"]),colGroup:z(B,["span"]),col:z(B,["span"]),form:z(B,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:z(B,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:z(B,["alt","crossOrigin","height","src","srcSet","useMap","width"])};function G(e,r,t){return function(e,r,t){for(var n=Array.isArray(r),o={},a=0,i=Object.keys(e);a<i.length;a++){var l=i[a];!(!n&&r[l]||n&&r.indexOf(l)>=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||t&&-1!==(null==t?void 0:t.indexOf(l))||(o[l]=e[l])}return o}(r,e&&W[e]||B,t)}function H(e,r){var t={};for(var n in e)-1===r.indexOf(n)&&e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var J=function(){return null};function Q(e){var r,t=function(e,r){var t={root:e.as||"div"},o={root:"string"==typeof t.root?G(t.root,e):H(e,["as"])};if(r)for(var a=0,i=r;a<i.length;a++){var l=i[a],u=e[l]||{},c=u.as,s=void 0===c?"span":c,f=u.children,d="string"==typeof s,v=d&&void 0===u.children;t[l]=v?J:s,"function"==typeof f?(o[l]={children:f(t[l],H(u,["as","children"]))},t[l]=n.Fragment):t[l]!==J&&(o[l]=d?G(s,u):H(u,["as"]))}return{slots:t,slotProps:o}}(e,g),a=t.slots,i=t.slotProps;return n.createElement(a.root,o({},i.root),n.createElement(c.Provider,{value:e.theme},n.createElement(L.Provider,{value:null!==(r=e.className)&&void 0!==r?r:""},e.children)))}var X=n.forwardRef((function(e,r){var t=C(e,r);return function(e){var r=R();e.className=function(){for(var e=null,r="",t="",n=[],o=0;o<arguments.length;o++)if("string"==typeof(d=arguments[o])){var a=d.indexOf(b);if(-1===a)r+=d+" ";else{var i=d.slice(a,a+A),l=P[i];a>0&&(r+=d.slice(0,a)),l&&(t+=i,n.push(l[0]),e=l[1])}}if(""===t)return r.slice(0,-1);var u=T[t];if(void 0!==u)return r+u;var c=Object.assign.apply(Object,[{}].concat(n)),s="";for(var f in c){var d,v=c[f];s+="rtl"===e?(d=v[3]||v[1])+" ":v[1]+" "}var p=O(s=s.slice(0,-1),e);return s=p+" "+s,T[t]=s,P[p]=[c,null!=e?e:"ltr"],r+s}(r.root,e.className)}(t),Q(t)}));X.displayName="ThemeProvider"}},r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{}};return e[n](o,o.exports,t),o.exports}return t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(19)})(); | ||
var FluentUIReactThemeProvider;FluentUIReactThemeProvider=(()=>{"use strict";var e={808:(e,r,t)=>{t.r(r),t.d(r,{ThemeProvider:()=>Y,renderThemeProvider:()=>X,themeProviderShorthandProps:()=>g,useTheme:()=>s,useThemeProvider:()=>C});const n=React;var o=function(){return(o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function a(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var a=arguments[r],i=0,l=a.length;i<l;i++,o++)n[o]=a[i];return n}function i(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t=[],n=0,o=e;n<o.length;n++){var a=o[n];if(a)if("string"==typeof a)t.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)t.push(a.toString());else for(var i in a)a[i]&&t.push(i)}return t.join(" ")}Object.create,Object.create;var l=function(e){void 0===e&&(e={});var r=a(e.deepMerge||[],["style"]),t=function(e){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];for(var l=0,u=o;l<u.length;l++){var c=u[l];if(c)for(var s=0,f=Object.keys(c);s<f.length;s++){var d=f[s],v=c[d],p=typeof v;void 0!==v&&(v&&"object"===p?Array.isArray(v)?e[d]=v:(e[d]=e[d]||{},"object"!=typeof e[d]||n.isValidElement(v)||v&&"object"==typeof v&&v.hasOwnProperty("current")||-1===r.indexOf(d)?e[d]=v:t(e[d],v)):"className"===d?v&&(e[d]=i(e[d],v)):e[d]=v)}}return e};return t};function u(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=n.useCallback((function(r){t.current=r;for(var n=0,o=e;n<o.length;n++){var a=o[n];"function"==typeof a?a(r):a&&(a.current=r)}}),a(e));return t}var c=n.createContext(null);function s(){return n.useContext(c)}function f(e,r,t){for(var n in void 0===t&&(t=[]),t.push(r),r)if(r.hasOwnProperty(n)&&"__proto__"!==n&&"constructor"!==n&&"prototype"!==n){var o=r[n];if("object"!=typeof o||null===o||Array.isArray(o))e[n]=o;else{var a=t.indexOf(o)>-1;e[n]=a?o:f(e[n]||{},o,t)}}return t.pop(),e}var d={current:0},v=n.createContext(d);function p(e,r,t){for(var n in void 0===r&&(r=""),void 0===t&&(t={}),e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?r+"-"+n:"--"+n;"object"==typeof e[n]?p(e[n],o,t):t[o]=e[n]}return t}function h(e){return p(e)}var m=function(e){var r,t,o,a,i,l=e.targetDocument,u=e.theme,c=(r="theme-provider",o=n.useContext(v),n.useMemo((function(){return""+r+ ++o.current}),[r,t,o])),s=n.useMemo((function(){if(!l)return null;var e=l.createElement("style");return e.setAttribute("id",c),l.head.appendChild(e),e}),[c,l]),f=n.useMemo((function(){var e=h(u),r=Object.keys(e).reduce((function(r,t){return r+(t+": ")+e[t]+"; "}),"");return"."+c+" { "+r+" }"}),[u,c]),d=(a=f,i=n.useRef(null),n.useEffect((function(){i.current=a}),[a]),i.current);if(s&&d!==f){var p=s.sheet;p.cssRules.length>0&&p.deleteRule(0),p.insertRule(f,0)}return n.useEffect((function(){return function(){var e;s&&(null===(e=s.parentElement)||void 0===e||e.removeChild(s))}}),[s]),c},g=[],y=l({deepMerge:g}),C=function(e,r,t){var a,i,l,c=y({ref:u(r,n.useRef(null)),as:"div",targetDocument:"object"==typeof document&&document},t,function(e,r){for(var t=e,a=0,i=r;a<i.length;a++){var l=i[a],u=e[l];void 0===u||"object"==typeof u&&!n.isValidElement(u)||(t===e&&(t=o({},e)),t[l]={children:u})}return t}(e,g)),d=(i=s(),l=null!==(a=c.theme)&&void 0!==a?a:{},i&&l?function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];for(var n=0,o=r;n<o.length;n++)f(e||{},o[n]);return e}({},i,l):i||l),v=m({theme:d,targetDocument:c.targetDocument});return c.className=[c.className||"",v].filter(Boolean).join(" "),c.theme=d,c},b="__",P={};function O(e,r){return b+function(e){var r=e.length;if(7===r)return e;for(var t=r;t<7;t++)e+="0";return e}(function(e){for(var r,t=0,n=0,o=e.length;o>=4;++n,o-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)}(e+r))}function S(e,r){var t="";for(var n in e){var o=e[n];if(o){var a=Array.isArray(o);t+="rtl"===r?(a?o[1]:o)+" ":(a?o[0]:o)+" "}}return t.slice(0,-1)}function w(e,r){var t={};for(var n in e){var o=S(e[n],r),a=O(o,r),i=a+" "+o;P[a]=[e[n],r],t[n]=i}return t}var x=n.createContext({targetDocument:"object"==typeof document?document:void 0,dir:"ltr"}),E=["d","l","v","w","f","i","h","a","k","t"];function j(e,r,t){if(!t.styleElements[e]){for(var n=E.indexOf(e)+1,o=null;n<E.length;n++){var a=t.styleElements[E[n]];if(a){o=a;break}}var i=r.createElement("style");i.dataset.makeStylesBucket=e,t.styleElements[e]=i,r.head.insertBefore(i,o)}return t.styleElements[e].sheet}var M=0;function D(e){void 0===e&&(e="undefined"==typeof document?void 0:document);var r={insertionCache:{},styleElements:{},id:"d"+M++,insertCSSRules:function(t){for(var n in t)for(var o=t[n],a=e&&j(n,e,r),i=0,l=o.length;i<l;i++){var u=o[i];if(!r.insertionCache[u]&&(r.insertionCache[u]=n,a))try{a.insertRule(u,a.cssRules.length)}catch(e){}}}};return r}var A=n.createContext(D());function k(e,r){var t=function(e,r){var t={},n=null,o=null;return function(a){var i=a.dir,l=a.renderer,u="ltr"===i,c=u?l.id:l.id+"r";return u?null===n&&(n=w(e,i)):null===o&&(o=w(e,i)),void 0===t[c]&&(l.insertCSSRules(r),t[c]=!0),u?n:o}}(e,r);return function(){var e=n.useContext(x).dir,r=n.useContext(A);return t({dir:e,renderer:r})}}var T={},R=b.length+7,L=k({root:{sj55zd:"f16th3vw",De3pzq:"fpnz0vo",Bahqtrf:"f1kx028l",Be2twd7:"flcnb0",Bhrd7zp:"f1du0uop"}},{d:[".f16th3vw{color:var(--alias-color-neutral-neutralForeground1);}",".fpnz0vo{background-color:var(--alias-color-neutral-neutralBackground1);}",".f1kx028l{font-family:var(--global-type-fontFamilies-base);}",".flcnb0{font-size:var(--global-type-fontSizes-base-300);}",".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}"]}),z=n.createContext(""),F=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t={},n=0,o=e;n<o.length;n++)for(var a=o[n],i=Array.isArray(a)?a:Object.keys(a),l=0,u=i;l<u.length;l++){var c=u[l];t[c]=1}return t},B=F(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),N=F(F(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),B),U=F(N,["form"]),_=F(N,["height","loop","muted","preload","src","width"]),q=F(_,["poster"]),K=F(N,["start"]),V=F(N,["value"]),I=F(N,["download","href","hrefLang","media","rel","target","type"]),W=F(N,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),G={label:U,audio:_,video:q,ol:K,li:V,a:I,button:W,input:F(W,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textarea:F(W,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:F(W,["form","multiple","required"]),option:F(N,["selected","value"]),table:F(N,["cellPadding","cellSpacing"]),tr:N,th:F(N,["rowSpan","scope"]),td:F(N,["colSpan","headers","rowSpan","scope"]),colGroup:F(N,["span"]),col:F(N,["span"]),form:F(N,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:F(N,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:F(N,["alt","crossOrigin","height","src","srcSet","useMap","width"])};function H(e,r,t){return function(e,r,t){for(var n=Array.isArray(r),o={},a=0,i=Object.keys(e);a<i.length;a++){var l=i[a];!(!n&&r[l]||n&&r.indexOf(l)>=0||0===l.indexOf("data-")||0===l.indexOf("aria-"))||t&&-1!==(null==t?void 0:t.indexOf(l))||(o[l]=e[l])}return o}(r,e&&G[e]||N,t)}function J(e,r){var t={};for(var n in e)-1===r.indexOf(n)&&e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var Q=function(){return null};function X(e){var r,t=function(e,r){var t={root:e.as||"div"},o={root:"string"==typeof t.root?H(t.root,e):J(e,["as"])};if(r)for(var a=0,i=r;a<i.length;a++){var l=i[a],u=e[l]||{},c=u.as,s=void 0===c?"span":c,f=u.children,d="string"==typeof s,v=d&&void 0===u.children;t[l]=v?Q:s,"function"==typeof f?(o[l]={children:f(t[l],J(u,["as","children"]))},t[l]=n.Fragment):t[l]!==Q&&(o[l]=d?H(s,u):J(u,["as"]))}return{slots:t,slotProps:o}}(e,g),a=t.slots,i=t.slotProps;return n.createElement(a.root,o({},i.root),n.createElement(c.Provider,{value:e.theme},n.createElement(z.Provider,{value:null!==(r=e.className)&&void 0!==r?r:""},e.children)))}var Y=n.forwardRef((function(e,r){var t=C(e,r);return function(e){var r=L();e.className=function(){for(var e=null,r="",t="",n=[],o=0;o<arguments.length;o++){var a=arguments[o];if("string"==typeof a){var i=a.indexOf(b);if(-1===i)r+=a+" ";else{var l=a.slice(i,i+R),u=P[l];i>0&&(r+=a.slice(0,i)),u&&(t+=l,n.push(u[0]),e=u[1])}}}if(""===t)return r.slice(0,-1);var c=T[t];if(void 0!==c)return r+c;var s=Object.assign.apply(Object,[{}].concat(n)),f=S(s,e),d=O(f,e);return f=d+" "+f,T[t]=f,P[d]=[s,e],r+f}(r.root,e.className)}(t),X(t)}));Y.displayName="ThemeProvider"}},r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{}};return e[n](o,o.exports,t),o.exports}return t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(808)})(); | ||
//# sourceMappingURL=react-theme-provider.min.js.map |
@@ -11,9 +11,11 @@ "use strict"; | ||
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({ | ||
root: { | ||
"sj55zd": ["", "f16th3vw", ".f16th3vw{color:var(--alias-color-neutral-neutralForeground1);}"], | ||
"De3pzq": ["", "fpnz0vo", ".fpnz0vo{background-color:var(--alias-color-neutral-neutralBackground1);}"], | ||
"Bahqtrf": ["", "f1kx028l", ".f1kx028l{font-family:var(--global-type-fontFamilies-base);}"], | ||
"Be2twd7": ["", "flcnb0", ".flcnb0{font-size:var(--global-type-fontSizes-base-300);}"], | ||
"Bhrd7zp": ["", "f1du0uop", ".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}"] | ||
"root": { | ||
"sj55zd": "f16th3vw", | ||
"De3pzq": "fpnz0vo", | ||
"Bahqtrf": "f1kx028l", | ||
"Be2twd7": "flcnb0", | ||
"Bhrd7zp": "f1du0uop" | ||
} | ||
}, { | ||
"d": [".f16th3vw{color:var(--alias-color-neutral-neutralForeground1);}", ".fpnz0vo{background-color:var(--alias-color-neutral-neutralBackground1);}", ".f1kx028l{font-family:var(--global-type-fontFamilies-base);}", ".flcnb0{font-size:var(--global-type-fontSizes-base-300);}", ".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}"] | ||
}); | ||
@@ -20,0 +22,0 @@ /** Applies style classnames to slots */ |
import { __styles, mergeClasses } from '@fluentui/react-make-styles'; | ||
var useStyles = /*#__PURE__*/__styles({ | ||
root: { | ||
"sj55zd": ["", "f16th3vw", ".f16th3vw{color:var(--alias-color-neutral-neutralForeground1);}"], | ||
"De3pzq": ["", "fpnz0vo", ".fpnz0vo{background-color:var(--alias-color-neutral-neutralBackground1);}"], | ||
"Bahqtrf": ["", "f1kx028l", ".f1kx028l{font-family:var(--global-type-fontFamilies-base);}"], | ||
"Be2twd7": ["", "flcnb0", ".flcnb0{font-size:var(--global-type-fontSizes-base-300);}"], | ||
"Bhrd7zp": ["", "f1du0uop", ".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}"] | ||
"root": { | ||
"sj55zd": "f16th3vw", | ||
"De3pzq": "fpnz0vo", | ||
"Bahqtrf": "f1kx028l", | ||
"Be2twd7": "flcnb0", | ||
"Bhrd7zp": "f1du0uop" | ||
} | ||
}, { | ||
"d": [".f16th3vw{color:var(--alias-color-neutral-neutralForeground1);}", ".fpnz0vo{background-color:var(--alias-color-neutral-neutralBackground1);}", ".f1kx028l{font-family:var(--global-type-fontFamilies-base);}", ".flcnb0{font-size:var(--global-type-fontSizes-base-300);}", ".f1du0uop{font-weight:var(--global-type-fontWeights-regular);}"] | ||
}); | ||
@@ -12,0 +14,0 @@ /** Applies style classnames to slots */ |
{ | ||
"name": "@fluentui/react-theme-provider", | ||
"version": "9.0.0-alpha.44", | ||
"version": "9.0.0-alpha.45", | ||
"description": "Fluent UI React theme provider component, hook, and theme related utilities.", | ||
@@ -27,5 +27,5 @@ "main": "lib-commonjs/index.js", | ||
"devDependencies": { | ||
"@fluentui/babel-make-styles": "^9.0.0-alpha.17", | ||
"@fluentui/babel-make-styles": "^9.0.0-alpha.18", | ||
"@fluentui/eslint-plugin": "^1.3.1", | ||
"@fluentui/jest-serializer-make-styles": "^9.0.0-alpha.18", | ||
"@fluentui/jest-serializer-make-styles": "^9.0.0-alpha.19", | ||
"@fluentui/react-conformance": "^0.4.1", | ||
@@ -47,3 +47,3 @@ "@fluentui/scripts": "^1.0.0", | ||
"dependencies": { | ||
"@fluentui/react-make-styles": "^9.0.0-alpha.42", | ||
"@fluentui/react-make-styles": "^9.0.0-alpha.43", | ||
"@fluentui/react-shared-contexts": "^9.0.0-alpha.15", | ||
@@ -50,0 +50,0 @@ "@fluentui/react-theme": "^9.0.0-alpha.15", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225212
2947