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

@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.cfd69490f.0 to 15.0.0-canary.d250911f2.0

3

CHANGELOG.md

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

# [15.0.0-canary.cfd69490f.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.cfd69490f.0) (2022-12-16)
# [15.0.0-canary.d250911f2.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.d250911f2.0) (2023-03-13)

@@ -13,3 +13,4 @@

* **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))
{
"name": "@material/theme",
"description": "The Material Components for the web theming system",
"version": "15.0.0-canary.cfd69490f.0",
"version": "15.0.0-canary.d250911f2.0",
"license": "MIT",

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

"dependencies": {
"@material/feature-targeting": "15.0.0-canary.cfd69490f.0",
"@material/feature-targeting": "15.0.0-canary.d250911f2.0",
"tslib": "^2.1.0"
},
"gitHead": "a7b9218e1ea7572b08b54629159e6f3a98970096"
"gitHead": "7b4ac246b31922fb4beb9ed168dba262e499c271"
}

@@ -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

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