Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material/theme

Package Overview
Dependencies
Maintainers
14
Versions
1678
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/theme - npm Package Compare versions

Comparing version 15.0.0-canary.b01136063.0 to 15.0.0-canary.b05d9eb7c.0

5

CHANGELOG.md

@@ -6,3 +6,3 @@ # Change Log

# [15.0.0-canary.b01136063.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.b01136063.0) (2022-11-16)
# [15.0.0-canary.b05d9eb7c.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.b05d9eb7c.0) (2023-06-29)

@@ -12,2 +12,5 @@

* **datepicker:** datepicker textfield theming api ([a86d36f](https://github.com/material-components/material-components-web/commit/a86d36fd2ac987f5a7ca160470964ff58b198300))
* **map-ext:** add a `map-get-or-err` helper function. ([d9f8210](https://github.com/material-components/material-components-web/commit/d9f821042d192caddabfa88d0d95c54454cd9a58))
* **theme:** allow to specify varname prefix in custom-properties configuration ([f0a0bbc](https://github.com/material-components/material-components-web/commit/f0a0bbc754058398bdef427d3646a0794a07047a))
* add simpler theming validation functions ([558c2be](https://github.com/material-components/material-components-web/commit/558c2be6282cfe6db7f166d21350f866011955f8))

6

package.json
{
"name": "@material/theme",
"description": "The Material Components for the web theming system",
"version": "15.0.0-canary.b01136063.0",
"version": "15.0.0-canary.b05d9eb7c.0",
"license": "MIT",

@@ -18,6 +18,6 @@ "keywords": [

"dependencies": {
"@material/feature-targeting": "15.0.0-canary.b01136063.0",
"@material/feature-targeting": "15.0.0-canary.b05d9eb7c.0",
"tslib": "^2.1.0"
},
"gitHead": "125921cea459cbed7dbe3e1c938761a0cc03a263"
"gitHead": "854245f23fe0f7b3dd1163ecefd940b26718c134"
}

@@ -27,2 +27,3 @@ /**

import * as path from 'path';
import {expectStylesWithNoFeaturesToBeEmpty} from '../../../testing/featuretargeting';

@@ -29,0 +30,0 @@

@@ -39,8 +39,7 @@ /**

it('host-aware test produces expected output',
() => {
const filePath = path.join(__dirname, 'shadow-dom.test.css');
const css = fs.readFileSync(filePath, 'utf8').trim();
expect(css).toEqual(
`:host([lowered]), :host(:not(.hidden)[outlined][lowered]), :host .my-class[lowered], gm-fab[lowered] {
it('host-aware test produces expected output', () => {
const filePath = path.join(__dirname, 'shadow-dom.test.css');
const css = fs.readFileSync(filePath, 'utf8').trim();
expect(css).toEqual(
`:host([lowered]), :host(:not(.hidden)[outlined][lowered]), :host .my-class[lowered], gm-fab[lowered] {
color: blue;

@@ -70,6 +69,6 @@ }

}`);
// Sass' organization of selectors with newlines can be iffy when using
// the `selector` module and expanded mode, but all selectors are
// correct.
});
// Sass' organization of selectors with newlines can be iffy when using
// the `selector` module and expanded mode, but all selectors are
// correct.
});

@@ -115,8 +114,9 @@ it('should replace values provided to $replace for theme.property()', () => {

it('validate-keys Should throw error when custom properties are provided', () => {
const filePath = path.join(__dirname, 'theme-validate-keys.test.css');
const css = fs.readFileSync(filePath, 'utf8').trim();
expect(css).toContain(
'Custom properties are not supported for theme map keys: three');
});
it('validate-keys Should throw error when custom properties are provided',
() => {
const filePath = path.join(__dirname, 'theme-validate-keys.test.css');
const css = fs.readFileSync(filePath, 'utf8').trim();
expect(css).toContain(
'Custom properties are not supported for theme map keys: three');
});
});

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

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

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