react-shadow
Advanced tools
Comparing version 18.2.3 to 18.2.4
@@ -1,2 +0,2 @@ | ||
import e,{useRef as t,useEffect as r,createContext as n,forwardRef as o,useState as c}from"react";import{jssPreset as u,StylesProvider as i}from"@material-ui/styles";import{create as a}from"jss";import{createPortal as l}from"react-dom";import f from"prop-types";var s=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var p=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e},b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e,t){return e(t={exports:{}},t.exports),t.exports}var v=h((function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t}));var m=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)},g=h((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}));var O=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var j=function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?O(e):t},w=h((function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t})),S=h((function(e){!function(t){var r=function(e,t,n){if(!a(t)||f(t)||s(t)||p(t)||i(t))return t;var o,c=0,u=0;if(l(t))for(o=[],u=t.length;c<u;c++)o.push(r(e,t[c],n));else for(var y in o={},t)Object.prototype.hasOwnProperty.call(t,y)&&(o[e(y,n)]=r(e,t[y],n));return o},n=function(e){return y(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},c=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,i=function(e){return"function"==typeof e},a=function(e){return e===Object(e)},l=function(e){return"[object Array]"==u.call(e)},f=function(e){return"[object Date]"==u.call(e)},s=function(e){return"[object RegExp]"==u.call(e)},p=function(e){return"[object Boolean]"==u.call(e)},y=function(e){return(e-=0)==e},d=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},b={camelize:n,decamelize:c,pascalize:o,depascalize:c,camelizeKeys:function(e,t){return r(d(n,t),e)},decamelizeKeys:function(e,t){return r(d(c,t),e,t)},pascalizeKeys:function(e,t){return r(d(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b}(b)})).decamelize,P=h((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var x=function(e){if(Array.isArray(e))return e};var E=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}};var R=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var _=function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}};var z=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var A=function(e,t){return x(e)||E(e,t)||_(e,t)||z()};var C=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var D=function(e,t){if(null==e)return{};var r,n,o=C(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var F=n(null);function T(e){var t=e.root,r=e.children;return l(r,t)}function k(n){var u=o((function(o,u){var i,a,l=o.mode,f=o.delegatesFocus,s=o.styleSheets,p=o.ssr,y=o.children,d=D(o,["mode","delegatesFocus","styleSheets","ssr","children"]),b=(a=t((i=u)&&i.current),r((function(){i&&(i.current=a.current)}),[i]),a),h=c(null),v=A(h,2),m=v[0],g=v[1],O="node_".concat(l).concat(f);return r((function(){if(b.current)try{if("function"==typeof u&&u(b.current),p){var e=b.current.shadowRoot;return void g(e)}var t=b.current.attachShadow({mode:l,delegatesFocus:f});s.length>0&&(t.adoptedStyleSheets=s),g(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:s,root:m})}}),[u,b,s]),e.createElement(e.Fragment,null,e.createElement(n.tag,P({key:O,ref:b},d),(m||p)&&e.createElement(F.Provider,{value:m},p?e.createElement("template",{shadowroot:"open"},n.render({root:m,ssr:p,children:y})):e.createElement(T,{root:m},n.render({root:m,ssr:p,children:y})))))}));return u.propTypes={mode:f.oneOf(["open","closed"]),delegatesFocus:f.bool,styleSheets:f.arrayOf(f.instanceOf(global.CSSStyleSheet)),ssr:f.bool,children:f.node},u.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},u}T.propTypes={root:f.object.isRequired,children:f.node},T.defaultProps={children:null};var K=new Map;function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=S(n,{separator:"-"}),c="".concat(t,"-").concat(o);return K.has(c)||K.set(c,k({tag:o,render:r})),K.get(c)}})}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}I();var M=I({},"material-ui",(function(t){var r=t.children,n=function(t){m(c,t);var n,o=(n=c,function(){var e,t=w(n);if(L()){var r=w(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return j(this,e)});function c(){var e;return p(this,c),(e=o.call(this)).state={node:null},e.handleRef=function(t){return e.setState({node:t})},e}return d(c,[{key:"render",value:function(){var t=a(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},u(),{insertionPoint:this.state.node}));return e.createElement(i,{jss:t},e.createElement("div",{ref:this.handleRef}),this.state.node&&e.createElement(e.Fragment,null,r))}}]),c}(e.Component);return e.createElement(n,null)}));export default M; | ||
import e,{useRef as t,useEffect as r,createContext as n,forwardRef as o,useState as c}from"react";import{jssPreset as u,StylesProvider as i}from"@material-ui/styles";import{create as a}from"jss";import{createPortal as l}from"react-dom";import s from"prop-types";var f=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var p=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=function(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e},b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e,t){return e(t={exports:{}},t.exports),t.exports}var v=h((function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t}));var m=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)},g=h((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}));var O=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var j=function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?O(e):t},w=h((function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t})),S=h((function(e){!function(t){var r=function(e,t,n){if(!a(t)||s(t)||f(t)||p(t)||i(t))return t;var o,c=0,u=0;if(l(t))for(o=[],u=t.length;c<u;c++)o.push(r(e,t[c],n));else for(var y in o={},t)Object.prototype.hasOwnProperty.call(t,y)&&(o[e(y,n)]=r(e,t[y],n));return o},n=function(e){return y(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},c=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,i=function(e){return"function"==typeof e},a=function(e){return e===Object(e)},l=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},p=function(e){return"[object Boolean]"==u.call(e)},y=function(e){return(e-=0)==e},d=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},b={camelize:n,decamelize:c,pascalize:o,depascalize:c,camelizeKeys:function(e,t){return r(d(n,t),e)},decamelizeKeys:function(e,t){return r(d(c,t),e,t)},pascalizeKeys:function(e,t){return r(d(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b}(b)})).decamelize,P=h((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var x=function(e){if(Array.isArray(e))return e};var E=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}};var R=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var _=function(e,t){if(e){if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}};var z=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var A=function(e,t){return x(e)||E(e,t)||_(e,t)||z()};var C=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var D=function(e,t){if(null==e)return{};var r,n,o=C(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var F=n(null);function T(e){var t=e.root,r=e.children;return l(r,t)}function k(n){var u=o((function(o,u){var i,a,l=o.mode,s=o.delegatesFocus,f=o.styleSheets,p=o.ssr,y=o.children,d=D(o,["mode","delegatesFocus","styleSheets","ssr","children"]),b=(a=t((i=u)&&i.current),r((function(){i&&(i.current=a.current)}),[i]),a),h=c(null),v=A(h,2),m=v[0],g=v[1],O="node_".concat(l).concat(s);return r((function(){if(b.current)try{if("function"==typeof u&&u(b.current),p){var e=b.current.shadowRoot;return void g(e)}var t=b.current.attachShadow({mode:l,delegatesFocus:s});f.length>0&&(t.adoptedStyleSheets=f),g(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:f,root:m})}}),[u,b,f]),e.createElement(e.Fragment,null,e.createElement(n.tag,P({key:O,ref:b},d),(m||p)&&e.createElement(F.Provider,{value:m},p?e.createElement("template",{shadowroot:"open"},n.render({root:m,ssr:p,children:y})):e.createElement(T,{root:m},n.render({root:m,ssr:p,children:y})))))}));return u.propTypes={mode:s.oneOf(["open","closed"]),delegatesFocus:s.bool,styleSheets:s.arrayOf(s.instanceOf(global.CSSStyleSheet)),ssr:s.bool,children:s.node},u.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},u}T.propTypes={root:s.object.isRequired,children:s.node},T.defaultProps={children:null};var K=new Map;function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=S(n,{separator:"-"}),c="".concat(t,"-").concat(o);return K.has(c)||K.set(c,k({tag:o,render:r})),K.get(c)}})}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}I();var M=I({},"material-ui",(function(t){var r=t.children,n=function(t){m(c,t);var n,o=(n=c,function(){var e,t=w(n);if(L()){var r=w(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return j(this,e)});function c(){var e;return p(this,c),(e=o.call(this)).state={node:null},e.handleRef=function(t){return e.setState({node:t})},e}return d(c,[{key:"render",value:function(){var t=a(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},u(),{insertionPoint:this.state.node}));return e.createElement(i,{jss:t},this.state.node&&e.createElement(e.Fragment,null,r),e.createElement("style",{ref:this.handleRef}))}}]),c}(e.Component);return e.createElement(n,null)}));export default M; | ||
//# sourceMappingURL=material-ui.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),r=e(t),n=require("@material-ui/styles"),o=require("jss"),c=require("react-dom"),u=e(require("prop-types"));var a=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e},f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e,t){return e(t={exports:{}},t.exports),t.exports}var y=p((function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t}));var d=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)},b=p((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}));var h=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var v=function(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?h(e):t},m=p((function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t})),g=p((function(e){!function(t){var r=function(e,t,n){if(!i(t)||s(t)||f(t)||p(t)||a(t))return t;var o,c=0,u=0;if(l(t))for(o=[],u=t.length;c<u;c++)o.push(r(e,t[c],n));else for(var y in o={},t)Object.prototype.hasOwnProperty.call(t,y)&&(o[e(y,n)]=r(e,t[y],n));return o},n=function(e){return y(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},c=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,a=function(e){return"function"==typeof e},i=function(e){return e===Object(e)},l=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},p=function(e){return"[object Boolean]"==u.call(e)},y=function(e){return(e-=0)==e},d=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},b={camelize:n,decamelize:c,pascalize:o,depascalize:c,camelizeKeys:function(e,t){return r(d(n,t),e)},decamelizeKeys:function(e,t){return r(d(c,t),e,t)},pascalizeKeys:function(e,t){return r(d(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b}(f)})).decamelize,O=p((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var j=function(e){if(Array.isArray(e))return e};var w=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var u,a=e[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw c}}return r}};var S=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var P=function(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}};var x=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var E=function(e,t){return j(e)||w(e,t)||P(e,t)||x()};var R=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var _=function(e,t){if(null==e)return{};var r,n,o=R(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var z=t.createContext(null);function C(e){var t=e.root,r=e.children;return c.createPortal(r,t)}function A(e){var n=t.forwardRef((function(n,o){var c,u,a=n.mode,i=n.delegatesFocus,l=n.styleSheets,s=n.ssr,f=n.children,p=_(n,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(c=o,u=t.useRef(c&&c.current),t.useEffect((function(){c&&(c.current=u.current)}),[c]),u),d=t.useState(null),b=E(d,2),h=b[0],v=b[1],m="node_".concat(a).concat(i);return t.useEffect((function(){if(y.current)try{if("function"==typeof o&&o(y.current),s){var e=y.current.shadowRoot;return void v(e)}var t=y.current.attachShadow({mode:a,delegatesFocus:i});l.length>0&&(t.adoptedStyleSheets=l),v(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:l,root:h})}}),[o,y,l]),r.createElement(r.Fragment,null,r.createElement(e.tag,O({key:m,ref:y},p),(h||s)&&r.createElement(z.Provider,{value:h},s?r.createElement("template",{shadowroot:"open"},e.render({root:h,ssr:s,children:f})):r.createElement(C,{root:h},e.render({root:h,ssr:s,children:f})))))}));return n.propTypes={mode:u.oneOf(["open","closed"]),delegatesFocus:u.bool,styleSheets:u.arrayOf(u.instanceOf(global.CSSStyleSheet)),ssr:u.bool,children:u.node},n.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},n}C.propTypes={root:u.object.isRequired,children:u.node},C.defaultProps={children:null};var D=new Map;function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=g(n,{separator:"-"}),c="".concat(t,"-").concat(o);return D.has(c)||D.set(c,A({tag:o,render:r})),D.get(c)}})}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}F();var q=F({},"material-ui",(function(e){var t=e.children,c=function(e){d(l,e);var c,u=(c=l,function(){var e,t=m(c);if(k()){var r=m(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return v(this,e)});function l(){var e;return i(this,l),(e=u.call(this)).state={node:null},e.handleRef=function(t){return e.setState({node:t})},e}return s(l,[{key:"render",value:function(){var e=o.create(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.jssPreset(),{insertionPoint:this.state.node}));return r.createElement(n.StylesProvider,{jss:e},r.createElement("div",{ref:this.handleRef}),this.state.node&&r.createElement(r.Fragment,null,t))}}]),l}(r.Component);return r.createElement(c,null)}));exports.default=q; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),r=e(t),n=require("@material-ui/styles"),o=require("jss"),c=require("react-dom"),u=e(require("prop-types"));var a=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e};var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e},f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e,t){return e(t={exports:{}},t.exports),t.exports}var y=p((function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(r,n)}e.exports=t}));var d=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)},b=p((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}));var h=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var v=function(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?h(e):t},m=p((function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(r)}e.exports=t})),g=p((function(e){!function(t){var r=function(e,t,n){if(!i(t)||s(t)||f(t)||p(t)||a(t))return t;var o,c=0,u=0;if(l(t))for(o=[],u=t.length;c<u;c++)o.push(r(e,t[c],n));else for(var y in o={},t)Object.prototype.hasOwnProperty.call(t,y)&&(o[e(y,n)]=r(e,t[y],n));return o},n=function(e){return y(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=n(e);return t.substr(0,1).toUpperCase()+t.substr(1)},c=function(e,t){return function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)}(e,t).toLowerCase()},u=Object.prototype.toString,a=function(e){return"function"==typeof e},i=function(e){return e===Object(e)},l=function(e){return"[object Array]"==u.call(e)},s=function(e){return"[object Date]"==u.call(e)},f=function(e){return"[object RegExp]"==u.call(e)},p=function(e){return"[object Boolean]"==u.call(e)},y=function(e){return(e-=0)==e},d=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},b={camelize:n,decamelize:c,pascalize:o,depascalize:c,camelizeKeys:function(e,t){return r(d(n,t),e)},decamelizeKeys:function(e,t){return r(d(c,t),e,t)},pascalizeKeys:function(e,t){return r(d(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b}(f)})).decamelize,O=p((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}));var j=function(e){if(Array.isArray(e))return e};var w=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var u,a=e[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,c=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw c}}return r}};var S=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n};var P=function(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}};var x=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var E=function(e,t){return j(e)||w(e,t)||P(e,t)||x()};var R=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o};var _=function(e,t){if(null==e)return{};var r,n,o=R(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o};var z=t.createContext(null);function C(e){var t=e.root,r=e.children;return c.createPortal(r,t)}function A(e){var n=t.forwardRef((function(n,o){var c,u,a=n.mode,i=n.delegatesFocus,l=n.styleSheets,s=n.ssr,f=n.children,p=_(n,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(c=o,u=t.useRef(c&&c.current),t.useEffect((function(){c&&(c.current=u.current)}),[c]),u),d=t.useState(null),b=E(d,2),h=b[0],v=b[1],m="node_".concat(a).concat(i);return t.useEffect((function(){if(y.current)try{if("function"==typeof o&&o(y.current),s){var e=y.current.shadowRoot;return void v(e)}var t=y.current.attachShadow({mode:a,delegatesFocus:i});l.length>0&&(t.adoptedStyleSheets=l),v(t)}catch(e){!function(e){var t=e.error,r=e.styleSheets,n=e.root;switch(t.name){case"NotSupportedError":r.length>0&&(n.adoptedStyleSheets=r);break;default:throw t}}({error:e,styleSheets:l,root:h})}}),[o,y,l]),r.createElement(r.Fragment,null,r.createElement(e.tag,O({key:m,ref:y},p),(h||s)&&r.createElement(z.Provider,{value:h},s?r.createElement("template",{shadowroot:"open"},e.render({root:h,ssr:s,children:f})):r.createElement(C,{root:h},e.render({root:h,ssr:s,children:f})))))}));return n.propTypes={mode:u.oneOf(["open","closed"]),delegatesFocus:u.bool,styleSheets:u.arrayOf(u.instanceOf(global.CSSStyleSheet)),ssr:u.bool,children:u.node},n.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},n}C.propTypes={root:u.object.isRequired,children:u.node},C.defaultProps={children:null};var D=new Map;function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(e,{get:function(e,n){var o=g(n,{separator:"-"}),c="".concat(t,"-").concat(o);return D.has(c)||D.set(c,A({tag:o,render:r})),D.get(c)}})}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}F();var q=F({},"material-ui",(function(e){var t=e.children,c=function(e){d(l,e);var c,u=(c=l,function(){var e,t=m(c);if(k()){var r=m(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return v(this,e)});function l(){var e;return i(this,l),(e=u.call(this)).state={node:null},e.handleRef=function(t){return e.setState({node:t})},e}return s(l,[{key:"render",value:function(){var e=o.create(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n.jssPreset(),{insertionPoint:this.state.node}));return r.createElement(n.StylesProvider,{jss:e},this.state.node&&r.createElement(r.Fragment,null,t),r.createElement("style",{ref:this.handleRef}))}}]),l}(r.Component);return r.createElement(c,null)}));exports.default=q; | ||
//# sourceMappingURL=material-ui.js.map |
{ | ||
"name": "react-shadow", | ||
"version": "18.2.3", | ||
"version": "18.2.4", | ||
"description": "Utilise Shadow DOM in React with all the benefits of style encapsulation.", | ||
@@ -5,0 +5,0 @@ "main": "react-shadow.js", |
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
4105616
1227
62813