Socket
Socket
Sign inDemoInstall

terra-base

Package Overview
Dependencies
Maintainers
8
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-base - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

docs/props-table/Base.md

10

docs/README.md

@@ -6,4 +6,2 @@ # Terra Base

**Note: This component should be imported before the other terra components in your app.** This is to help ensure that these styles are defined at the beginning of the [extracted stylesheet](https://github.com/webpack-contrib/extract-text-webpack-plugin) and are inherited down to the other terra components.
## Getting Started

@@ -25,1 +23,9 @@

```
## Component Features
* [Cross-Browser Support](https://github.com/cerner/terra-core/wiki/Component-Features#cross-browser-support)
* [Responsive Support](https://github.com/cerner/terra-core/wiki/Component-Features#responsive-support)
* [Mobile Support](https://github.com/cerner/terra-core/wiki/Component-Features#mobile-support)
* [Internationalization Support](https://github.com/cerner/terra-core/wiki/Component-Features#internationalization-i18n-support)
* [Localization Support](https://github.com/cerner/terra-core/wiki/Component-Features#localization-support)
* [LTR/RTL Support](https://github.com/cerner/terra-core/wiki/Component-Features#ltr--rtl-support)

3

lib/Base.js

@@ -43,4 +43,3 @@ 'use strict';

/**
* Customized translations provided by consuming application
* only for current locale.
* Customized translations provided by consuming application only for current locale.
*/

@@ -47,0 +46,0 @@ /* eslint-disable consistent-return */

@@ -7,8 +7,2 @@ 'use strict';

if (process.env.NODE_ENV !== 'production') {
// Check to ensure terra-Base class is set on html element
if (!new RegExp('(^|\\s)terra-Base(\\s|$)').test(document.documentElement.className)) {
// eslint-disable-next-line
console.warn('The html element is missing the terra-Base class.');
}
// Check to ensure dir attribute is set on html element

@@ -15,0 +9,0 @@ if (!document.documentElement.hasAttribute('dir')) {

{
"name": "terra-base",
"main": "lib/Base.js",
"version": "0.7.0",
"version": "0.8.0",
"description": "The base component sets minimal global styles for an application.",

@@ -24,3 +24,4 @@ "repository": {

"devDependencies": {
"terra-toolkit": "^0.4.0"
"terra-props-table": "^0.9.0",
"terra-toolkit": "^0.5.0"
},

@@ -34,3 +35,3 @@ "peerDependencies": {

"prop-types": "^15.5.8",
"terra-i18n": "^0.3.0"
"terra-i18n": "^0.4.0"
},

@@ -44,2 +45,3 @@ "scripts": {

"lint:scss": "$(cd ..; npm bin)/stylelint src/**/*.scss",
"props-table": "props-table ./src/Base.jsx --out-dir ./docs/props-table",
"test": "npm run test:spec && npm run test:nightwatch-default",

@@ -46,0 +48,0 @@ "test:spec": "$(cd ..; npm bin)/jest --config ../../jestconfig.json",

@@ -19,3 +19,18 @@ # Terra Base

- Install from [npmjs](https://www.npmjs.com): `npm install terra-base`
- Consume `Base` with translations:
```
import Base from 'terra-base';
<Base locale={localeByBackend} customMessages={translationsByBackend}>
...
</Base>
```
- Consume `Base` without translations:
```
import Base from 'terra-base';
<Base>
...
</Base>
```
## LICENSE

@@ -22,0 +37,0 @@

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