@hig/theme-context
Advanced tools
Comparing version 1.0.0-alpha to 1.0.0-alpha.1
@@ -6,16 +6,23 @@ import PropTypes from 'prop-types'; | ||
var themeContextShape = { | ||
/** Uniquely identifies a theme */ | ||
id: PropTypes.string, | ||
/** A class added to each themed element */ | ||
className: PropTypes.string, | ||
/** A theme's human-readable name */ | ||
name: PropTypes.string, | ||
/** Data about the theme */ | ||
metadata: PropTypes.shape({ | ||
/** Uniquely identifies a theme */ | ||
id: PropTypes.string.isRequired, | ||
/** A theme's human-readable name */ | ||
name: PropTypes.string.isRequired, | ||
/** A class available to identify the color scheme */ | ||
className: PropTypes.string.isRequired, | ||
/** A color scheme's human-readable name */ | ||
colorSchemeName: PropTypes.string.isRequired, | ||
/** Uniquely identifies color scheme of the theme */ | ||
colorSchemeId: PropTypes.string.isRequired, | ||
/** Data describing density level of the theme */ | ||
density: PropTypes.string.isRequired, | ||
/** A human-readable label for the theme's density */ | ||
densityName: PropTypes.string.isRequired | ||
}), | ||
/** Data describing presentation of the theme */ | ||
resolvedRoles: PropTypes.object, | ||
resolvedRoles: PropTypes.object.isRequired, | ||
/** Data describing configuration of the theme */ | ||
unresolvedRoles: PropTypes.object, | ||
/** Data describing density level of the theme */ | ||
density: PropTypes.string, | ||
/** A human-readable label for the theme's density */ | ||
densityName: PropTypes.string | ||
unresolvedRoles: PropTypes.object.isRequired | ||
}; | ||
@@ -22,0 +29,0 @@ |
@@ -12,16 +12,23 @@ 'use strict'; | ||
var themeContextShape = { | ||
/** Uniquely identifies a theme */ | ||
id: PropTypes.string, | ||
/** A class added to each themed element */ | ||
className: PropTypes.string, | ||
/** A theme's human-readable name */ | ||
name: PropTypes.string, | ||
/** Data about the theme */ | ||
metadata: PropTypes.shape({ | ||
/** Uniquely identifies a theme */ | ||
id: PropTypes.string.isRequired, | ||
/** A theme's human-readable name */ | ||
name: PropTypes.string.isRequired, | ||
/** A class available to identify the color scheme */ | ||
className: PropTypes.string.isRequired, | ||
/** A color scheme's human-readable name */ | ||
colorSchemeName: PropTypes.string.isRequired, | ||
/** Uniquely identifies color scheme of the theme */ | ||
colorSchemeId: PropTypes.string.isRequired, | ||
/** Data describing density level of the theme */ | ||
density: PropTypes.string.isRequired, | ||
/** A human-readable label for the theme's density */ | ||
densityName: PropTypes.string.isRequired | ||
}), | ||
/** Data describing presentation of the theme */ | ||
resolvedRoles: PropTypes.object, | ||
resolvedRoles: PropTypes.object.isRequired, | ||
/** Data describing configuration of the theme */ | ||
unresolvedRoles: PropTypes.object, | ||
/** Data describing density level of the theme */ | ||
density: PropTypes.string, | ||
/** A human-readable label for the theme's density */ | ||
densityName: PropTypes.string | ||
unresolvedRoles: PropTypes.object.isRequired | ||
}; | ||
@@ -28,0 +35,0 @@ |
{ | ||
"name": "@hig/theme-context", | ||
"version": "1.0.0-alpha", | ||
"version": "1.0.0-alpha.1", | ||
"description": "ThemeContext components to ease adoption of theme data from React components", | ||
@@ -21,3 +21,3 @@ "author": "Autodesk Inc.", | ||
"dependencies": { | ||
"@hig/theme-data": "^1.0.0-alpha", | ||
"@hig/theme-data": "^1.0.0-alpha.1", | ||
"prop-types": "^15.6.1" | ||
@@ -24,0 +24,0 @@ }, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
19686
295
1