Socket
Socket
Sign inDemoInstall

@material/theme

Package Overview
Dependencies
2
Maintainers
14
Versions
1678
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 15.0.0-canary.024ac5f16.0 to 15.0.0-canary.02702296e.0

_string-ext.scss

15

CHANGELOG.md

@@ -6,4 +6,15 @@ # Change Log

# [15.0.0-canary.024ac5f16.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.024ac5f16.0) (2022-10-17)
# [15.0.0-canary.02702296e.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.02702296e.0) (2023-08-25)
**Note:** Version bump only for package @material/theme
### Bug Fixes
* **theme:** account for null being passed into .theme-styles ([2a9697d](https://github.com/material-components/material-components-web/commit/2a9697dc53e9c7b5b89cc479df9f97a46c095a43))
### Features
* **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.024ac5f16.0",
"version": "15.0.0-canary.02702296e.0",
"license": "MIT",

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

"dependencies": {
"@material/feature-targeting": "15.0.0-canary.024ac5f16.0",
"@material/feature-targeting": "15.0.0-canary.02702296e.0",
"tslib": "^2.1.0"
},
"gitHead": "9ad8e77cff1167055c10b93b4082fd5b4e1d8643"
"gitHead": "22335673bc742932498b2538321ed9dcfd692879"
}

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc