Socket
Socket
Sign inDemoInstall

polythene-theme

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polythene-theme - npm Package Compare versions

Comparing version 0.1.27 to 0.1.28

notification/notification-style-color.es6.js

8

common/config.es6.js

@@ -242,2 +242,6 @@

},
notification: {
background: 'rgba(255, 255, 255, .9)',
text: lightPrimaryTextColor
},
snackbar: {

@@ -298,2 +302,6 @@ background: lightBackgroundColor,

},
notification: {
background: 'rgba(50, 50, 50, .9)',
text: darkPrimaryTextColor
},
snackbar: {

@@ -300,0 +308,0 @@ background: '#323232',

2

common/config.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:true});require("polythene-theme/common/object.assign");var rgba=function rgba(color,opacity){return"rgba("+color+","+opacity+")"};var breakpoints={small_handset_portrait:0,medium_handset_portrait:360,large_handset_portrait:400,small_tablet_portrait:600,large_tablet_portrait:720,small_handset_landscape:480,medium_handset_landscape:600,large_handset_landscape:720};var isTablet=window.innerWidth>=600;var isDesktop=window.innerWidth>=1024;var gridUnit=4;var componentGridUnit=8;var sidePadding=isDesktop?24:16;var buttonSize=6*componentGridUnit;var iconSize=3*componentGridUnit;var materialColorsBlue500="#2196f3";var materialColorsBlue600="#1e88e5";var materialColorsBlue700="#1976d2";var lightBackgroundColor="#fff";var lightPrimaryTextColor=rgba("0, 0, 0",.87);var lightTextColor=rgba("0, 0, 0",.73);var lightSecondaryTextAlpha=.54;var lightSecondaryTextColor=rgba("0, 0, 0",lightSecondaryTextAlpha);var lightTertiaryTextColor=rgba("0, 0, 0",.4);var lightDisabledTextColor=rgba("0, 0, 0",.26);var lightBorderColor=rgba("0, 0, 0",.11);var lightHoverBackgroundAlpha=.08;var lightSelectedBackgroundColor=rgba("0, 0, 0",lightHoverBackgroundAlpha);var lightActiveBackgroundAlpha=.14;var lightActiveBackgroundColor=rgba("0, 0, 0",lightActiveBackgroundAlpha);var darkBackgroundColor="#222";var darkPrimaryTextColor=rgba("255, 255, 255",1);var darkTextColor=darkPrimaryTextColor;var darkSecondaryTextAlpha=.7;var darkSecondaryTextColor=rgba("255, 255, 255",darkSecondaryTextAlpha);var darkTertiaryTextColor=rgba("255, 255, 255",.4);var darkDisabledTextColor=rgba("255, 255, 255",.26);var darkBorderColor=rgba("255, 255, 255",.1);var darkHoverBackgroundAlpha=.08;var darkSelectedBackgroundColor=rgba("255, 255, 255",darkHoverBackgroundAlpha);var darkActiveBackgroundAlpha=.14;var darkActiveBackgroundColor=rgba("255, 255, 255",darkActiveBackgroundAlpha);var buttonLightConfig={flat:{normal:{background:"transparent",color:lightPrimaryTextColor},hover:{background:lightSelectedBackgroundColor},active:{background:lightActiveBackgroundColor},disabled:{background:"transparent",color:lightDisabledTextColor}},raised:{normal:{background:"#E0E0E0",color:lightPrimaryTextColor},hover:{background:"transparent"},active:{background:lightSelectedBackgroundColor},disabled:{background:rgba("0, 0, 0",.07),color:lightDisabledTextColor}}};var buttonDarkConfig={flat:{normal:{background:"transparent",color:"#fff"},hover:{background:darkSelectedBackgroundColor},active:{background:darkActiveBackgroundColor},disabled:{background:"transparent",color:rgba("255, 255, 255",.3)}},raised:{normal:{background:materialColorsBlue500,color:darkPrimaryTextColor},hover:{background:materialColorsBlue600},active:{background:materialColorsBlue700},disabled:{background:rgba("255, 255, 255",.12),color:rgba("255, 255, 255",.3)}}};var iconButtonLightConfig=JSON.parse(JSON.stringify(buttonLightConfig));iconButtonLightConfig.flat.normal.color=lightSecondaryTextColor;var iconButtonDarkConfig=JSON.parse(JSON.stringify(buttonDarkConfig));iconButtonDarkConfig.flat.normal.color=darkSecondaryTextColor;exports["default"]={breakpoints:breakpoints,isTablet:isTablet,isDesktop:isDesktop,gridUnit:gridUnit,componentGridUnit:componentGridUnit,sidePadding:sidePadding,screenSizeExtraLarge:1280,screenSizeLarge:960,screenSizeMedium:480,screenSizeSmall:320,buttonHeight:36,buttonTouchHeight:48,buttonBorderRadius:2,buttonFontSize:14,buttonFontWeight:500,surfaceReactionDuration:".2s",lineHeight:1.3,lineHeightEm:"1.3em",buttonSize:buttonSize,iconSizeLarge:5*componentGridUnit,iconSizeMedium:4*componentGridUnit,iconSize:iconSize,iconSizeSmall:2*componentGridUnit,iconButtonPadding:(buttonSize-iconSize)/2,indent:72,toolbarHeightDesktop:64,toolbarHeightMobilePortrait:56,toolbarHeightMobileLandscape:48,fontWeightNormal:400,fontWeightMedium:500,fontWeightBold:700,fontSizeTitle:20,menuSizeUnit:56,blockBorderRadius:2,zIndexMenu:99,zIndexHeaderContainer:999,zIndexSnackbar:9998,zIndexDialog:9999,vendors:{animation:["o","moz","webkit"],background_size:["o","moz","webkit"],box_shadow:["moz","webkit"],keyframes:["o","moz","webkit"],transform:["o","moz","ms","webkit"],transition:["o","moz","webkit"],user_select:["moz","ms","webkit"]},color:{light:{button:buttonLightConfig,"icon-button":iconButtonLightConfig,card:{main:{backgroundColor:lightBackgroundColor},title:{color:lightPrimaryTextColor},subtitle:{color:lightSecondaryTextColor},text:{color:lightTextColor},actions:{borderColor:lightBorderColor}},dialog:{content:{background:lightBackgroundColor},title:{color:lightPrimaryTextColor},body:{color:lightTextColor,border:lightBorderColor},backdrop:{background:"rgba(0, 0, 0, .4)"}},list:{borderColor:lightBorderColor,backgroundSelected:lightSelectedBackgroundColor},"list-tile":{header:lightPrimaryTextColor,secondaryTitle:lightSecondaryTextColor,info:lightTertiaryTextColor,subheader:lightTertiaryTextColor,backgroundSelected:lightSelectedBackgroundColor,disabled:lightDisabledTextColor},menu:{background:lightBackgroundColor},snackbar:{background:lightBackgroundColor,text:lightPrimaryTextColor}},dark:{button:buttonDarkConfig,"icon-button":iconButtonDarkConfig,card:{main:{backgroundColor:darkBackgroundColor},title:{color:darkPrimaryTextColor},subtitle:{color:darkSecondaryTextColor},text:{color:darkSecondaryTextColor},actions:{borderColor:darkBorderColor}},dialog:{content:{background:darkBackgroundColor},title:{color:darkPrimaryTextColor},body:{color:darkTextColor,border:darkBorderColor},backdrop:{background:"rgba(0, 0, 0, .5)"}},list:{borderColor:darkBorderColor,backgroundSelected:darkSelectedBackgroundColor},"list-tile":{header:darkPrimaryTextColor,secondaryTitle:darkSecondaryTextColor,info:darkTertiaryTextColor,subheader:darkTertiaryTextColor,backgroundSelected:darkSelectedBackgroundColor,disabled:darkDisabledTextColor},menu:{background:darkBackgroundColor},snackbar:{background:"#323232",text:darkPrimaryTextColor}}}};module.exports=exports["default"];
"use strict";Object.defineProperty(exports,"__esModule",{value:true});require("polythene-theme/common/object.assign");var rgba=function rgba(color,opacity){return"rgba("+color+","+opacity+")"};var breakpoints={small_handset_portrait:0,medium_handset_portrait:360,large_handset_portrait:400,small_tablet_portrait:600,large_tablet_portrait:720,small_handset_landscape:480,medium_handset_landscape:600,large_handset_landscape:720};var isTablet=window.innerWidth>=600;var isDesktop=window.innerWidth>=1024;var gridUnit=4;var componentGridUnit=8;var sidePadding=isDesktop?24:16;var buttonSize=6*componentGridUnit;var iconSize=3*componentGridUnit;var materialColorsBlue500="#2196f3";var materialColorsBlue600="#1e88e5";var materialColorsBlue700="#1976d2";var lightBackgroundColor="#fff";var lightPrimaryTextColor=rgba("0, 0, 0",.87);var lightTextColor=rgba("0, 0, 0",.73);var lightSecondaryTextAlpha=.54;var lightSecondaryTextColor=rgba("0, 0, 0",lightSecondaryTextAlpha);var lightTertiaryTextColor=rgba("0, 0, 0",.4);var lightDisabledTextColor=rgba("0, 0, 0",.26);var lightBorderColor=rgba("0, 0, 0",.11);var lightHoverBackgroundAlpha=.08;var lightSelectedBackgroundColor=rgba("0, 0, 0",lightHoverBackgroundAlpha);var lightActiveBackgroundAlpha=.14;var lightActiveBackgroundColor=rgba("0, 0, 0",lightActiveBackgroundAlpha);var darkBackgroundColor="#222";var darkPrimaryTextColor=rgba("255, 255, 255",1);var darkTextColor=darkPrimaryTextColor;var darkSecondaryTextAlpha=.7;var darkSecondaryTextColor=rgba("255, 255, 255",darkSecondaryTextAlpha);var darkTertiaryTextColor=rgba("255, 255, 255",.4);var darkDisabledTextColor=rgba("255, 255, 255",.26);var darkBorderColor=rgba("255, 255, 255",.1);var darkHoverBackgroundAlpha=.08;var darkSelectedBackgroundColor=rgba("255, 255, 255",darkHoverBackgroundAlpha);var darkActiveBackgroundAlpha=.14;var darkActiveBackgroundColor=rgba("255, 255, 255",darkActiveBackgroundAlpha);var buttonLightConfig={flat:{normal:{background:"transparent",color:lightPrimaryTextColor},hover:{background:lightSelectedBackgroundColor},active:{background:lightActiveBackgroundColor},disabled:{background:"transparent",color:lightDisabledTextColor}},raised:{normal:{background:"#E0E0E0",color:lightPrimaryTextColor},hover:{background:"transparent"},active:{background:lightSelectedBackgroundColor},disabled:{background:rgba("0, 0, 0",.07),color:lightDisabledTextColor}}};var buttonDarkConfig={flat:{normal:{background:"transparent",color:"#fff"},hover:{background:darkSelectedBackgroundColor},active:{background:darkActiveBackgroundColor},disabled:{background:"transparent",color:rgba("255, 255, 255",.3)}},raised:{normal:{background:materialColorsBlue500,color:darkPrimaryTextColor},hover:{background:materialColorsBlue600},active:{background:materialColorsBlue700},disabled:{background:rgba("255, 255, 255",.12),color:rgba("255, 255, 255",.3)}}};var iconButtonLightConfig=JSON.parse(JSON.stringify(buttonLightConfig));iconButtonLightConfig.flat.normal.color=lightSecondaryTextColor;var iconButtonDarkConfig=JSON.parse(JSON.stringify(buttonDarkConfig));iconButtonDarkConfig.flat.normal.color=darkSecondaryTextColor;exports["default"]={breakpoints:breakpoints,isTablet:isTablet,isDesktop:isDesktop,gridUnit:gridUnit,componentGridUnit:componentGridUnit,sidePadding:sidePadding,screenSizeExtraLarge:1280,screenSizeLarge:960,screenSizeMedium:480,screenSizeSmall:320,buttonHeight:36,buttonTouchHeight:48,buttonBorderRadius:2,buttonFontSize:14,buttonFontWeight:500,surfaceReactionDuration:".2s",lineHeight:1.3,lineHeightEm:"1.3em",buttonSize:buttonSize,iconSizeLarge:5*componentGridUnit,iconSizeMedium:4*componentGridUnit,iconSize:iconSize,iconSizeSmall:2*componentGridUnit,iconButtonPadding:(buttonSize-iconSize)/2,indent:72,toolbarHeightDesktop:64,toolbarHeightMobilePortrait:56,toolbarHeightMobileLandscape:48,fontWeightNormal:400,fontWeightMedium:500,fontWeightBold:700,fontSizeTitle:20,menuSizeUnit:56,blockBorderRadius:2,zIndexMenu:99,zIndexHeaderContainer:999,zIndexSnackbar:9998,zIndexDialog:9999,vendors:{animation:["o","moz","webkit"],background_size:["o","moz","webkit"],box_shadow:["moz","webkit"],keyframes:["o","moz","webkit"],transform:["o","moz","ms","webkit"],transition:["o","moz","webkit"],user_select:["moz","ms","webkit"]},color:{light:{button:buttonLightConfig,"icon-button":iconButtonLightConfig,card:{main:{backgroundColor:lightBackgroundColor},title:{color:lightPrimaryTextColor},subtitle:{color:lightSecondaryTextColor},text:{color:lightTextColor},actions:{borderColor:lightBorderColor}},dialog:{content:{background:lightBackgroundColor},title:{color:lightPrimaryTextColor},body:{color:lightTextColor,border:lightBorderColor},backdrop:{background:"rgba(0, 0, 0, .4)"}},list:{borderColor:lightBorderColor,backgroundSelected:lightSelectedBackgroundColor},"list-tile":{header:lightPrimaryTextColor,secondaryTitle:lightSecondaryTextColor,info:lightTertiaryTextColor,subheader:lightTertiaryTextColor,backgroundSelected:lightSelectedBackgroundColor,disabled:lightDisabledTextColor},menu:{background:lightBackgroundColor},notification:{background:"rgba(255, 255, 255, .9)",text:lightPrimaryTextColor},snackbar:{background:lightBackgroundColor,text:lightPrimaryTextColor}},dark:{button:buttonDarkConfig,"icon-button":iconButtonDarkConfig,card:{main:{backgroundColor:darkBackgroundColor},title:{color:darkPrimaryTextColor},subtitle:{color:darkSecondaryTextColor},text:{color:darkSecondaryTextColor},actions:{borderColor:darkBorderColor}},dialog:{content:{background:darkBackgroundColor},title:{color:darkPrimaryTextColor},body:{color:darkTextColor,border:darkBorderColor},backdrop:{background:"rgba(0, 0, 0, .5)"}},list:{borderColor:darkBorderColor,backgroundSelected:darkSelectedBackgroundColor},"list-tile":{header:darkPrimaryTextColor,secondaryTitle:darkSecondaryTextColor,info:darkTertiaryTextColor,subheader:darkTertiaryTextColor,backgroundSelected:darkSelectedBackgroundColor,disabled:darkDisabledTextColor},menu:{background:darkBackgroundColor},notification:{background:"rgba(50, 50, 50, .9)",text:darkPrimaryTextColor},snackbar:{background:"#323232",text:darkPrimaryTextColor}}}};module.exports=exports["default"];
{
"name": "polythene-theme",
"version": "0.1.27",
"version": "0.1.28",
"description": "Polythene default theme",

@@ -51,2 +51,3 @@ "license": "MIT",

"menu",
"notification",
"ripple",

@@ -53,0 +54,0 @@ "shadow",

@@ -17,3 +17,3 @@

el: ctrl.containerEl,
hideDuration: opts.hideDuration || 900,
hideDuration: opts.hideDuration || 400,
hideDelay: opts.hideDelay || 0,

@@ -20,0 +20,0 @@ hide: () => (ctrl.containerEl.style.transform = 'translate3d(0, ' + height + 'px, 0)'),

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:true});var show=function show(ctrl,opts){var height=ctrl.el.getBoundingClientRect().height;return{el:ctrl.containerEl,showDuration:opts.showDuration||400,showDelay:opts.showDelay||0,beforeShow:function beforeShow(){return ctrl.containerEl.style.transform="translate3d(0, "+height+"px, 0)"},show:function show(){return ctrl.containerEl.style.transform="translate3d(0, "+0+"px, 0)"}}};var hide=function hide(ctrl,opts){var height=ctrl.el.getBoundingClientRect().height;return{el:ctrl.containerEl,hideDuration:opts.hideDuration||900,hideDelay:opts.hideDelay||0,hide:function hide(){return ctrl.containerEl.style.transform="translate3d(0, "+height+"px, 0)"},afterHide:function afterHide(){return ctrl.containerEl.style.transform="translate3d(0, "+0+"px, 0)"}}};exports["default"]={show:show,hide:hide};module.exports=exports["default"];
"use strict";Object.defineProperty(exports,"__esModule",{value:true});var show=function show(ctrl,opts){var height=ctrl.el.getBoundingClientRect().height;return{el:ctrl.containerEl,showDuration:opts.showDuration||400,showDelay:opts.showDelay||0,beforeShow:function beforeShow(){return ctrl.containerEl.style.transform="translate3d(0, "+height+"px, 0)"},show:function show(){return ctrl.containerEl.style.transform="translate3d(0, "+0+"px, 0)"}}};var hide=function hide(ctrl,opts){var height=ctrl.el.getBoundingClientRect().height;return{el:ctrl.containerEl,hideDuration:opts.hideDuration||400,hideDelay:opts.hideDelay||0,hide:function hide(){return ctrl.containerEl.style.transform="translate3d(0, "+height+"px, 0)"},afterHide:function afterHide(){return ctrl.containerEl.style.transform="translate3d(0, "+0+"px, 0)"}}};exports["default"]={show:show,hide:hide};module.exports=exports["default"];
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc