@material/theme
Advanced tools
Comparing version 15.0.0-canary.43f5323bc.0 to 15.0.0-canary.446734f27.0
@@ -6,3 +6,3 @@ # Change Log | ||
# [15.0.0-canary.43f5323bc.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.43f5323bc.0) (2022-12-12) | ||
# [15.0.0-canary.446734f27.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.446734f27.0) (2023-05-30) | ||
@@ -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.43f5323bc.0", | ||
"version": "15.0.0-canary.446734f27.0", | ||
"license": "MIT", | ||
@@ -18,6 +18,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@material/feature-targeting": "15.0.0-canary.43f5323bc.0", | ||
"@material/feature-targeting": "15.0.0-canary.446734f27.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "00be798d56184d5daa74ad6f53d4992db90688bc" | ||
"gitHead": "a2536a849aada5f06aa85deaa7be06f44f620023" | ||
} |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248464
44
+ Added@material/feature-targeting@15.0.0-canary.446734f27.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.43f5323bc.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.446734f27.0