New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smui/menu-surface

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smui/menu-surface - npm Package Compare versions

Comparing version 2.0.0-beta.1 to 3.0.0-beta.0

32

Anchor.js

@@ -1,26 +0,2 @@

export default function Anchor(node, {classForward = () => {}}) {
let classList = [];
function addClass(className) {
const idx = classList.indexOf(className);
if (idx === -1) {
node.classList.add(className);
classList.push(className);
if (classForward) {
classForward(classList);
}
}
}
function removeClass(className) {
const idx = classList.indexOf(className);
if (idx !== -1) {
node.classList.remove(className);
classList.splice(idx, 1);
if (classForward) {
classForward(classList);
}
}
}
export default function Anchor(node, { addClass, removeClass }) {
addClass('mdc-menu-surface--anchor');

@@ -31,4 +7,4 @@

removeClass('mdc-menu-surface--anchor');
}
}
}
},
};
}

4

bare.js

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

import MenuSurface, {Corner, CornerBit} from './MenuSurface.svelte';
import MenuSurface, { Corner, CornerBit } from './MenuSurface.svelte';

@@ -7,2 +7,2 @@ import Anchor from './Anchor.js';

export {Corner, CornerBit, Anchor};
export { Corner, CornerBit, Anchor };

@@ -6,2 +6,35 @@ # Change Log

# [3.0.0-beta.0](https://github.com/hperrin/svelte-material-ui/compare/v2.0.0-beta.1...v3.0.0-beta.0) (2021-04-11)
### Bug Fixes
* button styling, menu events ([53d0282](https://github.com/hperrin/svelte-material-ui/commit/53d02828f9704b50e3dff9213a55815840d11098))
* class and attr removal ([b3ca6f1](https://github.com/hperrin/svelte-material-ui/commit/b3ca6f16b2adda7cead2ef2c54ce3c446eeb6179))
* fixed event bubbling ([8b40fa0](https://github.com/hperrin/svelte-material-ui/commit/8b40fa04b463ee40819eda96785efb69b01e3e3a))
* list item ripples and menus ([4010556](https://github.com/hperrin/svelte-material-ui/commit/4010556b84b634177c706f0e6cec20b0c8500743))
* more components fixes ([fbdf204](https://github.com/hperrin/svelte-material-ui/commit/fbdf204a320fa0ed9ee5ec593e6bcbf3678fae79))
* ripple activation and colors ([d584be7](https://github.com/hperrin/svelte-material-ui/commit/d584be7d284562d07e278a2dc21bb039ed6a208b))
* update all the sass imports ([172a557](https://github.com/hperrin/svelte-material-ui/commit/172a55777a506ac26bbe524ca8cab79904512f24))
* update new class internals to report hasClass properly ([52a7b2c](https://github.com/hperrin/svelte-material-ui/commit/52a7b2cf5cfbd60ee87d6b27bcb8c796e84d1275))
### Features
* updated IconButton for MDC v10 ([1a6fc5a](https://github.com/hperrin/svelte-material-ui/commit/1a6fc5a019167ff7d4d1f1c35f843e7686069e3a))
* updated Menu for MDC v10 ([ddd6262](https://github.com/hperrin/svelte-material-ui/commit/ddd6262faa7b833472c6bf8ccca6017e6e06ebbe))
* updated MenuSurface for MDC v10 ([c032c89](https://github.com/hperrin/svelte-material-ui/commit/c032c895ff6463c9cd904e6244027918cc5292e2))
* updated Select Menus for MDC v10 ([f066d20](https://github.com/hperrin/svelte-material-ui/commit/f066d20024b4b7385bb87cfb3b7231087c16ac31))
* updated TopAppBar for MDC v10 ([6cf291d](https://github.com/hperrin/svelte-material-ui/commit/6cf291df3c5833b4938b95ff26138643d3511bcb))
* upgrade upstream MDC components to v10 ([d47c59a](https://github.com/hperrin/svelte-material-ui/commit/d47c59af50bbec2b7de810261b3cb7a2ffe59180))
### BREAKING CHANGES
* Upgrading to v10 of upstream components. Their APIs will change. View the component READMEs.
# [2.0.0-beta.1](https://github.com/hperrin/svelte-material-ui/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2021-03-27)

@@ -8,0 +41,0 @@

import './_index.scss';
export * from './bare.js';
export {default} from './bare.js';
export { default } from './bare.js';
{
"name": "@smui/menu-surface",
"version": "2.0.0-beta.1",
"version": "3.0.0-beta.0",
"description": "Svelte Material UI - Menu Surface",

@@ -15,3 +15,3 @@ "keywords": [

"scripts": {
"prepare": "echo \"$(npx glob '**/*' | sed 's/^/-I /' | paste -s -d ' ' -) --no-source-map _style.scss bare.css\" | xargs sass",
"prepare": "sass --no-source-map -I node_modules _style.scss bare.css",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -32,10 +32,10 @@ },

"dependencies": {
"@material/menu-surface": "^4.0.0",
"@smui/common": "^2.0.0-beta.1"
"@material/animation": "^10.0.0",
"@material/menu-surface": "^10.0.0",
"@smui/common": "^3.0.0-beta.0"
},
"devDependencies": {
"glob-cmd": "0.0.7",
"sass": "^1.30.0"
"sass": "^1.32.8"
},
"gitHead": "5e48c98403f409cad9f6b9c96f2a320fe7b3b5c6"
"gitHead": "df924bdae36977405f6184097c456f2a8d4d3db6"
}

@@ -5,6 +5,2 @@ # Svelte Material UI - Menu Surface

See [MDC Menu Surface](https://material.io/develop/web/components/menu-surface/) for more information on API and Sass mixins.
See [the Sass variable file](https://github.com/material-components/material-components-web/blob/v3.1.1/packages/mdc-menu-surface/_variables.scss) for styling variables.
# Installation

@@ -24,8 +20,12 @@

*in action:* https://sveltematerialui.com/demo/menu-surface
_in action:_ https://sveltematerialui.com/demo/menu-surface
*demo code:* https://github.com/hperrin/svelte-material-ui/blob/master/site/src/routes/demo/menu-surface.svelte
_demo code:_ https://github.com/hperrin/svelte-material-ui/blob/master/site/src/routes/demo/menu-surface.svelte
# Exports
todo...
todo...
# More Information
See [Menu Surface](https://github.com/material-components/material-components-web/tree/v10.0.0/packages/mdc-menu-surface) in MDC-Web for information about the upstream library's architecture.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc