@hig/themes
Advanced tools
Comparing version 0.1.0-alpha.bbabf57c to 0.1.0-alpha.c178f134
@@ -9,2 +9,7 @@ import PropTypes from 'prop-types'; | ||
var HIGDarkBlueTheme = { | ||
themeId: 'hig-dark-blue', | ||
themeClass: 'hig--dark-blue-theme' | ||
}; | ||
var MatrixTheme = { | ||
@@ -116,2 +121,2 @@ themeId: 'matrix', | ||
export { HIGLightTheme, MatrixTheme, index as ThemeContext }; | ||
export { HIGLightTheme, HIGDarkBlueTheme, MatrixTheme, index as ThemeContext }; |
@@ -15,2 +15,7 @@ 'use strict'; | ||
var HIGDarkBlueTheme = { | ||
themeId: 'hig-dark-blue', | ||
themeClass: 'hig--dark-blue-theme' | ||
}; | ||
var MatrixTheme = { | ||
@@ -123,3 +128,4 @@ themeId: 'matrix', | ||
exports.HIGLightTheme = HIGLightTheme; | ||
exports.HIGDarkBlueTheme = HIGDarkBlueTheme; | ||
exports.MatrixTheme = MatrixTheme; | ||
exports.ThemeContext = index; |
{ | ||
"name": "@hig/themes", | ||
"version": "0.1.0-alpha.bbabf57c", | ||
"version": "0.1.0-alpha.c178f134", | ||
"description": "HIG theme definitions and supporting components", | ||
@@ -8,7 +8,12 @@ "author": "Autodesk Inc.", | ||
"homepage": "https://hig.autodesk.com", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "build/index.js", | ||
"module": "build/index.es.js", | ||
"devDependencies": { | ||
"@hig/scripts": "0.2.0-alpha.bbabf57c", | ||
"@hig/styles": "0.1.0-alpha.bbabf57c" | ||
"@hig/babel-preset": "0.2.0-alpha.c178f134", | ||
"@hig/banner": "0.2.0-alpha.c178f134", | ||
"@hig/scripts": "0.2.0-alpha.c178f134", | ||
"@hig/styles": "0.1.0-alpha.c178f134" | ||
}, | ||
@@ -15,0 +20,0 @@ "peerDependencies": { |
@@ -5,2 +5,8 @@ # ThemeContext component | ||
## Getting started | ||
``` | ||
yarn add @hig/themes | ||
``` | ||
## Provide a theme to components | ||
@@ -15,2 +21,2 @@ ``` | ||
} | ||
``` | ||
``` |
@@ -13,2 +13,3 @@ import React from "react"; | ||
import HIGLightTheme from "../themes/HIGLightTheme"; | ||
import HIGDarkBlueTheme from "../themes/HIGDarkBlueTheme"; | ||
import MatrixTheme from "../themes/MatrixTheme"; | ||
@@ -18,2 +19,3 @@ | ||
"hig-light": "HIG Light", | ||
"hig-dark-blue": "HIG Dark Blue", | ||
"matrix": "BIM360 Matrix" | ||
@@ -24,2 +26,3 @@ } | ||
"hig-light": HIGLightTheme, | ||
"hig-dark-blue": HIGDarkBlueTheme, | ||
"matrix": MatrixTheme | ||
@@ -26,0 +29,0 @@ } |
export { default as HIGLightTheme } from './themes/HIGLightTheme'; | ||
export { default as HIGDarkBlueTheme } from './themes/HIGDarkBlueTheme'; | ||
export { default as MatrixTheme } from './themes/MatrixTheme'; | ||
export { default as ThemeContext } from './ThemeContext'; |
@@ -17,2 +17,6 @@ import * as index from "./index"; | ||
{ | ||
name: "HIGDarkBlueTheme", | ||
value: expect.any(Object) | ||
}, | ||
{ | ||
name: "MatrixTheme", | ||
@@ -19,0 +23,0 @@ value: expect.any(Object) |
export { default as HIGLightTheme } from "./HIGLightTheme"; | ||
export { default as HIGDarkBlueTheme } from "./HIGDarkBlueTheme"; | ||
export { default as MatrixTheme } from "./MatrixTheme"; |
@@ -10,2 +10,6 @@ import * as index from "./index"; | ||
{ | ||
name: "HIGDarkBlueTheme", | ||
value: expect.any(Object) | ||
}, | ||
{ | ||
name: "MatrixTheme", | ||
@@ -12,0 +16,0 @@ value: expect.any(Object) |
@@ -1,4 +0,4 @@ | ||
import { HIGLightTheme, MatrixTheme } from "./index"; | ||
import { HIGLightTheme, HIGDarkBlueTheme, MatrixTheme } from "./index"; | ||
[HIGLightTheme, MatrixTheme].forEach(theme => { | ||
[HIGLightTheme, HIGDarkBlueTheme, MatrixTheme].forEach(theme => { | ||
describe(`${theme}`, () => { | ||
@@ -5,0 +5,0 @@ it("has a themeId", () => { |
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
19628
20
423
21
4