@wordpress/theme 0.2.0 → 0.2.1-next.16d95556a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/bin/generate-primitive-tokens/index.ts +1 -1
- package/build/color-ramps/index.js +5 -5
- package/build/color-ramps/index.js.map +2 -2
- package/build/color-ramps/lib/default-ramps.js +154 -154
- package/build/color-ramps/lib/default-ramps.js.map +2 -2
- package/build/color-ramps/lib/index.js +16 -9
- package/build/color-ramps/lib/index.js.map +2 -2
- package/build/color-ramps/lib/types.js.map +1 -1
- package/build/use-theme-provider-styles.js +1 -4
- package/build/use-theme-provider-styles.js.map +2 -2
- package/build-module/color-ramps/index.js +5 -5
- package/build-module/color-ramps/index.js.map +2 -2
- package/build-module/color-ramps/lib/default-ramps.js +154 -154
- package/build-module/color-ramps/lib/default-ramps.js.map +2 -2
- package/build-module/color-ramps/lib/index.js +16 -9
- package/build-module/color-ramps/lib/index.js.map +2 -2
- package/build-module/use-theme-provider-styles.js +1 -4
- package/build-module/use-theme-provider-styles.js.map +2 -2
- package/build-types/color-ramps/lib/index.d.ts.map +1 -1
- package/build-types/color-ramps/lib/types.d.ts +2 -4
- package/build-types/color-ramps/lib/types.d.ts.map +1 -1
- package/build-types/color-ramps/stories/index.story.d.ts.map +1 -1
- package/build-types/color-ramps/stories/ramp-table.d.ts +2 -4
- package/build-types/color-ramps/stories/ramp-table.d.ts.map +1 -1
- package/build-types/use-theme-provider-styles.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/color-ramps/index.ts +5 -5
- package/src/color-ramps/lib/default-ramps.ts +154 -154
- package/src/color-ramps/lib/index.ts +26 -22
- package/src/color-ramps/lib/types.ts +2 -7
- package/src/color-ramps/stories/index.story.tsx +4 -1
- package/src/color-ramps/stories/ramp-table.tsx +15 -26
- package/src/color-ramps/test/__snapshots__/index.test.ts.snap +11717 -41231
- package/src/color-ramps/test/index.test.ts +2 -2
- package/src/use-theme-provider-styles.ts +1 -4
- package/tsconfig.bin.tsbuildinfo +1 -1
- package/tsconfig.src.tsbuildinfo +1 -1
|
@@ -31,7 +31,7 @@ describe.skip( 'buildRamps', () => {
|
|
|
31
31
|
inGamut: true,
|
|
32
32
|
} );
|
|
33
33
|
const seedComputed = serialize(
|
|
34
|
-
to( parse( ramp.ramp.surface2
|
|
34
|
+
to( parse( ramp.ramp.surface2 ), sRGB ),
|
|
35
35
|
{
|
|
36
36
|
format: 'hex',
|
|
37
37
|
inGamut: true,
|
|
@@ -110,7 +110,7 @@ describe.skip( 'buildRamps', () => {
|
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
112
|
const seedComputed = serialize(
|
|
113
|
-
to( parse( ramp.ramp.bgFill1
|
|
113
|
+
to( parse( ramp.ramp.bgFill1 ), sRGB ),
|
|
114
114
|
{
|
|
115
115
|
format: 'hex',
|
|
116
116
|
inGamut: true,
|
|
@@ -162,10 +162,7 @@ function colorTokensCSS(
|
|
|
162
162
|
const key = `${ rampName }-${ tokenName }`;
|
|
163
163
|
const aliasedBy = colorTokens[ key ] ?? [];
|
|
164
164
|
for ( const aliasedId of aliasedBy ) {
|
|
165
|
-
entries.push( [
|
|
166
|
-
`--wpds-color-${ aliasedId }`,
|
|
167
|
-
tokenValue.color,
|
|
168
|
-
] );
|
|
165
|
+
entries.push( [ `--wpds-color-${ aliasedId }`, tokenValue ] );
|
|
169
166
|
}
|
|
170
167
|
}
|
|
171
168
|
}
|