@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.
Files changed (38) hide show
  1. package/README.md +5 -1
  2. package/bin/generate-primitive-tokens/index.ts +1 -1
  3. package/build/color-ramps/index.js +5 -5
  4. package/build/color-ramps/index.js.map +2 -2
  5. package/build/color-ramps/lib/default-ramps.js +154 -154
  6. package/build/color-ramps/lib/default-ramps.js.map +2 -2
  7. package/build/color-ramps/lib/index.js +16 -9
  8. package/build/color-ramps/lib/index.js.map +2 -2
  9. package/build/color-ramps/lib/types.js.map +1 -1
  10. package/build/use-theme-provider-styles.js +1 -4
  11. package/build/use-theme-provider-styles.js.map +2 -2
  12. package/build-module/color-ramps/index.js +5 -5
  13. package/build-module/color-ramps/index.js.map +2 -2
  14. package/build-module/color-ramps/lib/default-ramps.js +154 -154
  15. package/build-module/color-ramps/lib/default-ramps.js.map +2 -2
  16. package/build-module/color-ramps/lib/index.js +16 -9
  17. package/build-module/color-ramps/lib/index.js.map +2 -2
  18. package/build-module/use-theme-provider-styles.js +1 -4
  19. package/build-module/use-theme-provider-styles.js.map +2 -2
  20. package/build-types/color-ramps/lib/index.d.ts.map +1 -1
  21. package/build-types/color-ramps/lib/types.d.ts +2 -4
  22. package/build-types/color-ramps/lib/types.d.ts.map +1 -1
  23. package/build-types/color-ramps/stories/index.story.d.ts.map +1 -1
  24. package/build-types/color-ramps/stories/ramp-table.d.ts +2 -4
  25. package/build-types/color-ramps/stories/ramp-table.d.ts.map +1 -1
  26. package/build-types/use-theme-provider-styles.d.ts.map +1 -1
  27. package/package.json +4 -4
  28. package/src/color-ramps/index.ts +5 -5
  29. package/src/color-ramps/lib/default-ramps.ts +154 -154
  30. package/src/color-ramps/lib/index.ts +26 -22
  31. package/src/color-ramps/lib/types.ts +2 -7
  32. package/src/color-ramps/stories/index.story.tsx +4 -1
  33. package/src/color-ramps/stories/ramp-table.tsx +15 -26
  34. package/src/color-ramps/test/__snapshots__/index.test.ts.snap +11717 -41231
  35. package/src/color-ramps/test/index.test.ts +2 -2
  36. package/src/use-theme-provider-styles.ts +1 -4
  37. package/tsconfig.bin.tsbuildinfo +1 -1
  38. 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.color ), sRGB ),
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.color ), sRGB ),
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
  }