@codecademy/gamut-styles 17.12.1-alpha.4631ec.0 → 17.12.1-alpha.4a1920.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/dist/Background.d.ts +1 -1
- package/dist/Background.js +1 -1
- package/package.json +2 -2
package/dist/Background.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface BackgroundProps extends Omit<ComponentProps<typeof ColorMode>,
|
|
|
9
9
|
*
|
|
10
10
|
* @param mode - The color mode shape to check against
|
|
11
11
|
* @param color - The color key to test
|
|
12
|
-
* @returns
|
|
12
|
+
* @returns `true` if `color` is a key in `mode` (i.e. a ColorAlias)
|
|
13
13
|
*/
|
|
14
14
|
export declare const isColorAlias: (mode: ColorModeShape, color: Colors) => color is "text" | "secondary" | "background" | "primary" | "danger" | "interface" | "border-primary" | "text-accent" | "text-disabled" | "text-secondary" | "secondary-hover" | "feedback-error" | "feedback-success" | "feedback-warning" | "background-disabled" | "background-error" | "background-success" | "background-warning" | "background-contrast" | "background-current" | "background-primary" | "background-selected" | "background-hover" | "primary-hover" | "primary-inverse" | "shadow-secondary" | "shadow-primary" | "danger-hover" | "interface-hover" | "border-disabled" | "border-secondary" | "border-tertiary";
|
|
15
15
|
export declare const Background: import("react").ForwardRefExoticComponent<Omit<BackgroundProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/Background.js
CHANGED
|
@@ -8,7 +8,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
8
|
*
|
|
9
9
|
* @param mode - The color mode shape to check against
|
|
10
10
|
* @param color - The color key to test
|
|
11
|
-
* @returns
|
|
11
|
+
* @returns `true` if `color` is a key in `mode` (i.e. a ColorAlias)
|
|
12
12
|
*/
|
|
13
13
|
export const isColorAlias = (mode, color) => {
|
|
14
14
|
return Object.keys(mode).includes(color);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut-styles",
|
|
3
3
|
"description": "Styleguide & Component library for codecademy.com",
|
|
4
|
-
"version": "17.12.1-alpha.
|
|
4
|
+
"version": "17.12.1-alpha.4a1920.0",
|
|
5
5
|
"author": "Jake Hiller <jake@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@codecademy/variance": "0.26.0",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "nx build @codecademy/gamut-styles"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "27ad34917b00288dcf53cab080721dc59cd80816"
|
|
40
40
|
}
|