@react.material/theme
Version:
The React Material Components for the web theme component
1 lines • 17.7 kB
JavaScript
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.Theme=r():(t.r=t.r||{},t.r.m=t.r.m||{},t.r.m.Theme=r())}(this,function(){return function(t){function r(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,r),a.l=!0,a.exports}var e={};return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p="/assets/",r(r.s=67)}({0:function(t,r){function e(t,r){var e=t[1]||"",a=t[3];if(!a)return e;if(r&&"function"==typeof btoa){var n=o(a);return[e].concat(a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"})).concat([n]).join("\n")}return[e].join("\n")}function o(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var r=[];return r.toString=function(){return this.map(function(r){var o=e(r,t);return r[2]?"@media "+r[2]+"{"+o+"}":o}).join("")},r.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},a=0;a<this.length;a++){var n=this[a][0];"number"==typeof n&&(o[n]=!0)}for(a=0;a<t.length;a++){var c=t[a];"number"==typeof c[0]&&o[c[0]]||(e&&!c[2]?c[2]=e:e&&(c[2]="("+c[2]+") and ("+e+")"),r.push(c))}},r}},4:function(t,r,e){function o(t,r){for(var e=0;e<t.length;e++){var o=t[e],a=f[o.id];if(a){a.refs++;for(var n=0;n<a.parts.length;n++)a.parts[n](o.parts[n]);for(;n<o.parts.length;n++)a.parts.push(h(o.parts[n],r))}else{for(var c=[],n=0;n<o.parts.length;n++)c.push(h(o.parts[n],r));f[o.id]={id:o.id,refs:1,parts:c}}}}function a(t,r){for(var e=[],o={},a=0;a<t.length;a++){var n=t[a],c=r.base?n[0]+r.base:n[0],m=n[1],i=n[2],d=n[3],h={css:m,media:i,sourceMap:d};o[c]?o[c].parts.push(h):e.push(o[c]={id:c,parts:[h]})}return e}function n(t,r){var e=u(t.insertInto);if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=x[x.length-1];if("top"===t.insertAt)o?o.nextSibling?e.insertBefore(r,o.nextSibling):e.appendChild(r):e.insertBefore(r,e.firstChild),x.push(r);else if("bottom"===t.insertAt)e.appendChild(r);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var a=u(t.insertInto+" "+t.insertAt.before);e.insertBefore(r,a)}}function c(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var r=x.indexOf(t);r>=0&&x.splice(r,1)}function m(t){var r=document.createElement("style");return t.attrs.type="text/css",d(r,t.attrs),n(t,r),r}function i(t){var r=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",d(r,t.attrs),n(t,r),r}function d(t,r){Object.keys(r).forEach(function(e){t.setAttribute(e,r[e])})}function h(t,r){var e,o,a,n;if(r.transform&&t.css){if(!(n=r.transform(t.css)))return function(){};t.css=n}if(r.singleton){var d=g++;e=b||(b=m(r)),o=l.bind(null,e,d,!1),a=l.bind(null,e,d,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(e=i(r),o=p.bind(null,e,r),a=function(){c(e),e.href&&URL.revokeObjectURL(e.href)}):(e=m(r),o=s.bind(null,e),a=function(){c(e)});return o(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;o(t=r)}else a()}}function l(t,r,e,o){var a=e?"":o.css;if(t.styleSheet)t.styleSheet.cssText=k(r,a);else{var n=document.createTextNode(a),c=t.childNodes;c[r]&&t.removeChild(c[r]),c.length?t.insertBefore(n,c[r]):t.appendChild(n)}}function s(t,r){var e=r.css,o=r.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}function p(t,r,e){var o=e.css,a=e.sourceMap,n=void 0===r.convertToAbsoluteUrls&&a;(r.convertToAbsoluteUrls||n)&&(o=v(o)),a&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var c=new Blob([o],{type:"text/css"}),m=t.href;t.href=URL.createObjectURL(c),m&&URL.revokeObjectURL(m)}var f={},y=function(t){var r;return function(){return void 0===r&&(r=t.apply(this,arguments)),r}}(function(){return window&&document&&document.all&&!window.atob}),u=function(t){var r={};return function(e){if(void 0===r[e]){var o=t.call(this,e);if(o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}r[e]=o}return r[e]}}(function(t){return document.querySelector(t)}),b=null,g=0,x=[],v=e(6);t.exports=function(t,r){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");r=r||{},r.attrs="object"==typeof r.attrs?r.attrs:{},r.singleton||(r.singleton=y()),r.insertInto||(r.insertInto="head"),r.insertAt||(r.insertAt="bottom");var e=a(t,r);return o(e,r),function(t){for(var n=[],c=0;c<e.length;c++){var m=e[c],i=f[m.id];i.refs--,n.push(i)}if(t){o(a(t,r),r)}for(var c=0;c<n.length;c++){var i=n[c];if(0===i.refs){for(var d=0;d<i.parts.length;d++)i.parts[d]();delete f[i.id]}}}};var k=function(){var t=[];return function(r,e){return t[r]=e,t.filter(Boolean).join("\n")}}()},6:function(t,r){t.exports=function(t){var r="undefined"!=typeof window&&window.location;if(!r)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var e=r.protocol+"//"+r.host,o=e+r.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,r){var a=r.trim().replace(/^"(.*)"$/,function(t,r){return r}).replace(/^'(.*)'$/,function(t,r){return r});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(a))return t;var n;return n=0===a.indexOf("//")?a:0===a.indexOf("/")?e+a:o+a.replace(/^\.\//,""),"url("+JSON.stringify(n)+")"})}},67:function(t,r,e){t.exports=e(68)},68:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e(69);e.n(o)},69:function(t,r,e){var o=e(70);"string"==typeof o&&(o=[[t.i,o,""]]);var a={sourceMap:!1,hmr:!1};a.transform=void 0;e(4)(o,a);o.locals&&(t.exports=o.locals)},70:function(t,r,e){r=t.exports=e(0)(!1),r.i(e(71),""),r.push([t.i,":root{@include:: root;--mdc-theme-primary-dark:#212121}\n/*!*background-color: rgba(63, 81, 181, 0.16);*!*/.mdc-theme--dark .mdc-button--raised:not(:disabled){background-color:var(--mdc-theme-primary-dark,#212121)}\n /*!*background-color: #3f51b5;*!*/",""])},71:function(t,r,e){r=t.exports=e(0)(!1),r.push([t.i,"/*!\n Material Components for the web\n Copyright (c) 2017 Google Inc.\n License: Apache-2.0\n*/:root{--mdc-theme-primary:#3f51b5;--mdc-theme-primary-light:#a4addf;--mdc-theme-primary-dark:#6f7dcd;--mdc-theme-secondary:#ff4081;--mdc-theme-secondary-light:#ff87b0;--mdc-theme-secondary-dark:#f80054;--mdc-theme-background:#fff;--mdc-theme-text-primary-on-primary:#fff;--mdc-theme-text-secondary-on-primary:hsla(0,0%,100%,.7);--mdc-theme-text-hint-on-primary:hsla(0,0%,100%,.5);--mdc-theme-text-disabled-on-primary:hsla(0,0%,100%,.5);--mdc-theme-text-icon-on-primary:hsla(0,0%,100%,.5);--mdc-theme-text-primary-on-primary-light:rgba(0,0,0,.87);--mdc-theme-text-secondary-on-primary-light:rgba(0,0,0,.54);--mdc-theme-text-hint-on-primary-light:rgba(0,0,0,.38);--mdc-theme-text-disabled-on-primary-light:rgba(0,0,0,.38);--mdc-theme-text-icon-on-primary-light:rgba(0,0,0,.38);--mdc-theme-text-primary-on-primary-dark:#fff;--mdc-theme-text-secondary-on-primary-dark:hsla(0,0%,100%,.7);--mdc-theme-text-hint-on-primary-dark:hsla(0,0%,100%,.5);--mdc-theme-text-disabled-on-primary-dark:hsla(0,0%,100%,.5);--mdc-theme-text-icon-on-primary-dark:hsla(0,0%,100%,.5);--mdc-theme-text-primary-on-secondary:#fff;--mdc-theme-text-secondary-on-secondary:hsla(0,0%,100%,.7);--mdc-theme-text-hint-on-secondary:hsla(0,0%,100%,.5);--mdc-theme-text-disabled-on-secondary:hsla(0,0%,100%,.5);--mdc-theme-text-icon-on-secondary:hsla(0,0%,100%,.5);--mdc-theme-text-primary-on-secondary-light:rgba(0,0,0,.87);--mdc-theme-text-secondary-on-secondary-light:rgba(0,0,0,.54);--mdc-theme-text-hint-on-secondary-light:rgba(0,0,0,.38);--mdc-theme-text-disabled-on-secondary-light:rgba(0,0,0,.38);--mdc-theme-text-icon-on-secondary-light:rgba(0,0,0,.38);--mdc-theme-text-primary-on-secondary-dark:#fff;--mdc-theme-text-secondary-on-secondary-dark:hsla(0,0%,100%,.7);--mdc-theme-text-hint-on-secondary-dark:hsla(0,0%,100%,.5);--mdc-theme-text-disabled-on-secondary-dark:hsla(0,0%,100%,.5);--mdc-theme-text-icon-on-secondary-dark:hsla(0,0%,100%,.5);--mdc-theme-text-primary-on-background:rgba(0,0,0,.87);--mdc-theme-text-secondary-on-background:rgba(0,0,0,.54);--mdc-theme-text-hint-on-background:rgba(0,0,0,.38);--mdc-theme-text-disabled-on-background:rgba(0,0,0,.38);--mdc-theme-text-icon-on-background:rgba(0,0,0,.38);--mdc-theme-text-primary-on-light:rgba(0,0,0,.87);--mdc-theme-text-secondary-on-light:rgba(0,0,0,.54);--mdc-theme-text-hint-on-light:rgba(0,0,0,.38);--mdc-theme-text-disabled-on-light:rgba(0,0,0,.38);--mdc-theme-text-icon-on-light:rgba(0,0,0,.38);--mdc-theme-text-primary-on-dark:#fff;--mdc-theme-text-secondary-on-dark:hsla(0,0%,100%,.7);--mdc-theme-text-hint-on-dark:hsla(0,0%,100%,.5);--mdc-theme-text-disabled-on-dark:hsla(0,0%,100%,.5);--mdc-theme-text-icon-on-dark:hsla(0,0%,100%,.5)}.mdc-theme--background{background-color:#fff;background-color:var(--mdc-theme-background,#fff)}.mdc-theme--primary{color:#3f51b5!important;color:var(--mdc-theme-primary,#3f51b5)!important}.mdc-theme--primary-light{color:#a4addf!important;color:var(--mdc-theme-primary-light,#a4addf)!important}.mdc-theme--primary-dark{color:#6f7dcd!important;color:var(--mdc-theme-primary-dark,#6f7dcd)!important}.mdc-theme--secondary{color:#ff4081!important;color:var(--mdc-theme-secondary,#ff4081)!important}.mdc-theme--secondary-light{color:#ff87b0!important;color:var(--mdc-theme-secondary-light,#ff87b0)!important}.mdc-theme--secondary-dark{color:#f80054!important;color:var(--mdc-theme-secondary-dark,#f80054)!important}.mdc-theme--text-primary-on-primary{color:#fff!important;color:var(--mdc-theme-text-primary-on-primary,#fff)!important}.mdc-theme--text-secondary-on-primary{color:hsla(0,0%,100%,.7)!important;color:var(--mdc-theme-text-secondary-on-primary,hsla(0,0%,100%,.7))!important}.mdc-theme--text-hint-on-primary{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-hint-on-primary,hsla(0,0%,100%,.5))!important}.mdc-theme--text-disabled-on-primary{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-disabled-on-primary,hsla(0,0%,100%,.5))!important}.mdc-theme--text-icon-on-primary{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-icon-on-primary,hsla(0,0%,100%,.5))!important}.mdc-theme--text-primary-on-primary-light{color:rgba(0,0,0,.87)!important;color:var(--mdc-theme-text-primary-on-primary-light,rgba(0,0,0,.87))!important}.mdc-theme--text-secondary-on-primary-light{color:rgba(0,0,0,.54)!important;color:var(--mdc-theme-text-secondary-on-primary-light,rgba(0,0,0,.54))!important}.mdc-theme--text-hint-on-primary-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-hint-on-primary-light,rgba(0,0,0,.38))!important}.mdc-theme--text-disabled-on-primary-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-disabled-on-primary-light,rgba(0,0,0,.38))!important}.mdc-theme--text-icon-on-primary-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-icon-on-primary-light,rgba(0,0,0,.38))!important}.mdc-theme--text-primary-on-primary-dark{color:#fff!important;color:var(--mdc-theme-text-primary-on-primary-dark,#fff)!important}.mdc-theme--text-secondary-on-primary-dark{color:hsla(0,0%,100%,.7)!important;color:var(--mdc-theme-text-secondary-on-primary-dark,hsla(0,0%,100%,.7))!important}.mdc-theme--text-hint-on-primary-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-hint-on-primary-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--text-disabled-on-primary-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-disabled-on-primary-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--text-icon-on-primary-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-icon-on-primary-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--text-primary-on-secondary{color:#fff!important;color:var(--mdc-theme-text-primary-on-secondary,#fff)!important}.mdc-theme--text-secondary-on-secondary{color:hsla(0,0%,100%,.7)!important;color:var(--mdc-theme-text-secondary-on-secondary,hsla(0,0%,100%,.7))!important}.mdc-theme--text-hint-on-secondary{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-hint-on-secondary,hsla(0,0%,100%,.5))!important}.mdc-theme--text-disabled-on-secondary{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-disabled-on-secondary,hsla(0,0%,100%,.5))!important}.mdc-theme--text-icon-on-secondary{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-icon-on-secondary,hsla(0,0%,100%,.5))!important}.mdc-theme--text-primary-on-secondary-light{color:rgba(0,0,0,.87)!important;color:var(--mdc-theme-text-primary-on-secondary-light,rgba(0,0,0,.87))!important}.mdc-theme--text-secondary-on-secondary-light{color:rgba(0,0,0,.54)!important;color:var(--mdc-theme-text-secondary-on-secondary-light,rgba(0,0,0,.54))!important}.mdc-theme--text-hint-on-secondary-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-hint-on-secondary-light,rgba(0,0,0,.38))!important}.mdc-theme--text-disabled-on-secondary-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-disabled-on-secondary-light,rgba(0,0,0,.38))!important}.mdc-theme--text-icon-on-secondary-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-icon-on-secondary-light,rgba(0,0,0,.38))!important}.mdc-theme--text-primary-on-secondary-dark{color:#fff!important;color:var(--mdc-theme-text-primary-on-secondary-dark,#fff)!important}.mdc-theme--text-secondary-on-secondary-dark{color:hsla(0,0%,100%,.7)!important;color:var(--mdc-theme-text-secondary-on-secondary-dark,hsla(0,0%,100%,.7))!important}.mdc-theme--text-hint-on-secondary-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-hint-on-secondary-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--text-disabled-on-secondary-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-disabled-on-secondary-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--text-icon-on-secondary-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-icon-on-secondary-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--text-primary-on-background{color:rgba(0,0,0,.87)!important;color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))!important}.mdc-theme--text-secondary-on-background{color:rgba(0,0,0,.54)!important;color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))!important}.mdc-theme--text-hint-on-background{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-hint-on-background,rgba(0,0,0,.38))!important}.mdc-theme--text-disabled-on-background{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-disabled-on-background,rgba(0,0,0,.38))!important}.mdc-theme--text-icon-on-background{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-icon-on-background,rgba(0,0,0,.38))!important}.mdc-theme--text-primary-on-light{color:rgba(0,0,0,.87)!important;color:var(--mdc-theme-text-primary-on-light,rgba(0,0,0,.87))!important}.mdc-theme--text-secondary-on-light{color:rgba(0,0,0,.54)!important;color:var(--mdc-theme-text-secondary-on-light,rgba(0,0,0,.54))!important}.mdc-theme--text-hint-on-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-hint-on-light,rgba(0,0,0,.38))!important}.mdc-theme--text-disabled-on-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))!important}.mdc-theme--text-icon-on-light{color:rgba(0,0,0,.38)!important;color:var(--mdc-theme-text-icon-on-light,rgba(0,0,0,.38))!important}.mdc-theme--text-primary-on-dark{color:#fff!important;color:var(--mdc-theme-text-primary-on-dark,#fff)!important}.mdc-theme--text-secondary-on-dark{color:hsla(0,0%,100%,.7)!important;color:var(--mdc-theme-text-secondary-on-dark,hsla(0,0%,100%,.7))!important}.mdc-theme--text-hint-on-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-hint-on-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--text-disabled-on-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-disabled-on-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--text-icon-on-dark{color:hsla(0,0%,100%,.5)!important;color:var(--mdc-theme-text-icon-on-dark,hsla(0,0%,100%,.5))!important}.mdc-theme--primary-bg{background-color:#3f51b5!important;background-color:var(--mdc-theme-primary,#3f51b5)!important}.mdc-theme--primary-light-bg{background-color:#a4addf!important;background-color:var(--mdc-theme-primary-light,#a4addf)!important}.mdc-theme--primary-dark-bg{background-color:#6f7dcd!important;background-color:var(--mdc-theme-primary-dark,#6f7dcd)!important}.mdc-theme--secondary-bg{background-color:#ff4081!important;background-color:var(--mdc-theme-secondary,#ff4081)!important}.mdc-theme--secondary-light-bg{background-color:#ff87b0!important;background-color:var(--mdc-theme-secondary-light,#ff87b0)!important}.mdc-theme--secondary-dark-bg{background-color:#f80054!important;background-color:var(--mdc-theme-secondary-dark,#f80054)!important}",""])}})});