New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@khanacademy/wonder-blocks-theming

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-theming - npm Package Compare versions

Comparing version 0.0.0-PR2048-20230907173855 to 0.0.0-PR2098-20231025215351

16

CHANGELOG.md
# @khanacademy/wonder-blocks-theming
## 0.0.0-PR2048-20230907173855
## 0.0.0-PR2098-20231025215351
### Minor Changes
- 02767a0c: Export supported themes list, change WB components to use these new exports
## 1.1.1
### Patch Changes
- Updated dependencies [48d3c7e9]
- @khanacademy/wonder-blocks-color@3.0.0
## 1.1.0
### Minor Changes
- 5725703a: Add new color tokens (more faded values)
- fc6cec0b: Add theming to Switch and new color tokens for theming

@@ -8,0 +22,0 @@

@@ -25,4 +25,8 @@ import Spacing from '@khanacademy/wonder-blocks-spacing';

fadedBlue: mix(fade(Color.blue, 0.32), Color.white),
fadedBlue16: fade(Color.blue, 0.16),
fadedBlue8: fade(Color.blue, 0.08),
activeRed: mix(Color.offBlack32, Color.red),
fadedRed: mix(fade(Color.red, 0.32), Color.white),
fadedRed16: fade(Color.red, 0.16),
fadedRed8: fade(Color.red, 0.08),
white32: fade(Color.white, 0.32),

@@ -38,2 +42,3 @@ eggplant: "#5f1e5c"

large_6: 6,
xLarge_12: 12,
full: "50%"

@@ -40,0 +45,0 @@ },

2

dist/index.d.ts

@@ -6,4 +6,4 @@ export { default as tokens } from "./tokens";

export { default as withScopedTheme, type WithThemeProps, } from "./components/with-scoped-theme";
export { type ThemedStylesFn } from "./types";
export { type ThemedStylesFn, type SupportedThemes, type Themes } from "./types";
export { default as useStyles } from "./hooks/use-styles";
export { ThemeSwitcherContext } from "./utils/theme-switcher-context";

@@ -53,4 +53,8 @@ 'use strict';

fadedBlue: Color.mix(Color.fade(Color__default["default"].blue, 0.32), Color__default["default"].white),
fadedBlue16: Color.fade(Color__default["default"].blue, 0.16),
fadedBlue8: Color.fade(Color__default["default"].blue, 0.08),
activeRed: Color.mix(Color__default["default"].offBlack32, Color__default["default"].red),
fadedRed: Color.mix(Color.fade(Color__default["default"].red, 0.32), Color__default["default"].white),
fadedRed16: Color.fade(Color__default["default"].red, 0.16),
fadedRed8: Color.fade(Color__default["default"].red, 0.08),
white32: Color.fade(Color__default["default"].white, 0.32),

@@ -66,2 +70,3 @@ eggplant: "#5f1e5c"

large_6: 6,
xLarge_12: 12,
full: "50%"

@@ -68,0 +73,0 @@ },

@@ -12,4 +12,8 @@ /**

fadedBlue: string;
fadedBlue16: string;
fadedBlue8: string;
activeRed: string;
fadedRed: string;
fadedRed16: string;
fadedRed8: string;
white32: string;

@@ -55,2 +59,3 @@ eggplant: string;

large_6: number;
xLarge_12: number;
full: string;

@@ -57,0 +62,0 @@ };

import { StyleDeclaration } from "aphrodite";
export type ThemedStylesFn<T> = (theme: T) => StyleDeclaration;
export type SupportedThemes = "default" | "khanmigo";
export type Themes<T> = Partial<Record<SupportedThemes, T>>;
import * as React from "react";
import { SupportedThemes } from "../types";
/**

@@ -10,2 +11,2 @@ * A React Context that holds a reference to the selected theme. It should use

*/
export declare const ThemeSwitcherContext: React.Context<string>;
export declare const ThemeSwitcherContext: React.Context<SupportedThemes>;
{
"name": "@khanacademy/wonder-blocks-theming",
"version": "0.0.0-PR2048-20230907173855",
"version": "0.0.0-PR2098-20231025215351",
"publishConfig": {

@@ -15,3 +15,3 @@ "access": "public"

"dependencies": {
"@khanacademy/wonder-blocks-color": "^2.0.1",
"@khanacademy/wonder-blocks-color": "^3.0.0",
"@khanacademy/wonder-blocks-spacing": "^4.0.1"

@@ -18,0 +18,0 @@ },

@@ -10,4 +10,4 @@ export {default as tokens} from "./tokens";

} from "./components/with-scoped-theme";
export {type ThemedStylesFn} from "./types";
export {type ThemedStylesFn, type SupportedThemes, type Themes} from "./types";
export {default as useStyles} from "./hooks/use-styles";
export {ThemeSwitcherContext} from "./utils/theme-switcher-context";

@@ -18,4 +18,8 @@ import Spacing from "@khanacademy/wonder-blocks-spacing";

fadedBlue: mix(fade(Color.blue, 0.32), Color.white),
fadedBlue16: fade(Color.blue, 0.16),
fadedBlue8: fade(Color.blue, 0.08),
activeRed: mix(Color.offBlack32, Color.red),
fadedRed: mix(fade(Color.red, 0.32), Color.white),
fadedRed16: fade(Color.red, 0.16),
fadedRed8: fade(Color.red, 0.08),
// Additional colors (e.g. for use in other themes)

@@ -33,2 +37,3 @@ // Khanmigo

large_6: 6,
xLarge_12: 12,
full: "50%",

@@ -35,0 +40,0 @@ },

import {StyleDeclaration} from "aphrodite";
export type ThemedStylesFn<T> = (theme: T) => StyleDeclaration;
export type SupportedThemes = "default" | "khanmigo";
export type Themes<T> = Partial<Record<SupportedThemes, T>>;
import * as React from "react";
import {SupportedThemes} from "../types";

@@ -11,2 +12,3 @@ /**

*/
export const ThemeSwitcherContext = React.createContext<string>("default");
export const ThemeSwitcherContext =
React.createContext<SupportedThemes>("default");

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc