@carbon/type
Advanced tools
Comparing version 0.0.1-alpha.24 to 0.0.1-alpha.25
import { baseFontSize, px, rem, breakpoint, breakpoints } from '@carbon/layout'; | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans | ||
@@ -22,2 +28,8 @@ // Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var fontWeights = { | ||
@@ -38,2 +50,8 @@ light: 300, | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
function print(block) { | ||
@@ -75,2 +93,8 @@ return Object.keys(block).reduce(function (acc, key, index) { | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var reset = { | ||
@@ -90,2 +114,9 @@ html: { | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/** | ||
* Get the type size for the given step | ||
@@ -112,2 +143,8 @@ * @param {number} step | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var spacing = { | ||
@@ -273,2 +310,8 @@ margin01: rem(16), | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var caption01 = { | ||
@@ -620,2 +663,9 @@ fontFamily: fontFamilies.sans, | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
export { fontFamilies, fontFamily, fontWeights, fontWeight, print, reset, getTypeSize, scale, spacing, caption01, label01, helperText01, bodyShort01, bodyLong01, bodyShort02, bodyLong02, code01, code02, heading01, heading02, heading03, productiveHeading04, productiveHeading05, expressiveHeading04, expressiveHeading05, quotation01, quotation02, display01, display02, display03, display04 }; |
@@ -7,2 +7,8 @@ 'use strict'; | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans | ||
@@ -27,2 +33,8 @@ // Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var fontWeights = { | ||
@@ -43,2 +55,8 @@ light: 300, | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
function print(block) { | ||
@@ -80,2 +98,8 @@ return Object.keys(block).reduce(function (acc, key, index) { | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var reset = { | ||
@@ -95,2 +119,9 @@ html: { | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/** | ||
* Get the type size for the given step | ||
@@ -117,2 +148,8 @@ * @param {number} step | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var spacing = { | ||
@@ -278,2 +315,8 @@ margin01: layout.rem(16), | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var caption01 = { | ||
@@ -625,2 +668,9 @@ fontFamily: fontFamilies.sans, | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
exports.fontFamilies = fontFamilies; | ||
@@ -627,0 +677,0 @@ exports.fontFamily = fontFamily; |
{ | ||
"name": "@carbon/type", | ||
"version": "0.0.1-alpha.24", | ||
"description": "Typography for digital and software products using the Carbon Design System", | ||
"version": "0.0.1-alpha.25", | ||
"license": "Apache-2.0", | ||
@@ -25,7 +26,7 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@carbon/import-once": "0.0.1-alpha.24", | ||
"@carbon/layout": "0.0.1-alpha.24" | ||
"@carbon/import-once": "0.0.1-alpha.25", | ||
"@carbon/layout": "0.0.1-alpha.25" | ||
}, | ||
"devDependencies": { | ||
"@carbon/bundler": "0.0.1-alpha.24", | ||
"@carbon/bundler": "0.0.1-alpha.25", | ||
"rimraf": "^2.6.2" | ||
@@ -32,0 +33,0 @@ }, |
@@ -1,8 +0,10 @@ | ||
# `@carbon/type` | ||
# @carbon/type | ||
> Typography for digital and software products using the Carbon Design System. | ||
> Typography for digital and software products using the Carbon Design | ||
> System | ||
## Getting Started | ||
## Getting started | ||
Run the following command using [npm](https://www.npmjs.com/): | ||
To install `@carbon/type` in your project, you will need to run the | ||
following command using [npm](https://www.npmjs.com/): | ||
@@ -13,4 +15,4 @@ ```bash | ||
If you prefer [Yarn](https://yarnpkg.com/en/), use the following command | ||
instead: | ||
If you prefer [Yarn](https://yarnpkg.com/en/), use the following | ||
command instead: | ||
@@ -21,4 +23,19 @@ ```bash | ||
## 🤲 Contributing | ||
## 📚 Examples | ||
To learn more about how to contribute, look [here](/.github/CONTRIBUTING.md)! | ||
If you're looking for more examples on how to use `@carbon/type`, we | ||
have some examples that you can check out: | ||
- [Basic](./examples/basic) | ||
- [Styled-components](./examples/styled-components) | ||
## 🙌 Contributing | ||
We're always looking for contributors to help us fix bugs, build new | ||
features, or help us improve the project documentation. If you're | ||
interested, definitely check out our [Contributing Guide](/.github/CONTRIBUTING.md) | ||
! 👀 | ||
## 📝 License | ||
Licensed under the [Apache 2.0 License](/LICENSE). |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { breakpoint as bp, breakpoints, rem } from '@carbon/layout'; | ||
@@ -2,0 +9,0 @@ |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans | ||
@@ -2,0 +9,0 @@ // Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
export const fontWeights = { | ||
@@ -2,0 +9,0 @@ light: 300, |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { fontFamilies, fontFamily } from './fontFamily'; | ||
@@ -2,0 +9,0 @@ import { fontWeights, fontWeight } from './fontWeight'; |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
export function print(block) { | ||
@@ -2,0 +9,0 @@ return Object.keys(block).reduce((acc, key, index) => { |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { baseFontSize, px } from '@carbon/layout'; | ||
@@ -2,0 +9,0 @@ import { fontFamilies } from './fontFamily'; |
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/** | ||
* Get the type size for the given step | ||
@@ -3,0 +10,0 @@ * @param {number} step |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { rem } from '@carbon/layout'; | ||
@@ -2,0 +9,0 @@ |
@@ -0,1 +1,8 @@ | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { breakpoint, breakpoints, px, rem } from '@carbon/layout'; | ||
@@ -2,0 +9,0 @@ import { fluid } from './fluid'; |
@@ -7,2 +7,8 @@ (function (global, factory) { | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans | ||
@@ -27,2 +33,8 @@ // Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var fontWeights = { | ||
@@ -43,2 +55,8 @@ light: 300, | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
function print(block) { | ||
@@ -80,2 +98,8 @@ return Object.keys(block).reduce(function (acc, key, index) { | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var reset = { | ||
@@ -95,2 +119,9 @@ html: { | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/** | ||
* Get the type size for the given step | ||
@@ -117,2 +148,8 @@ * @param {number} step | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var spacing = { | ||
@@ -278,2 +315,8 @@ margin01: layout.rem(16), | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
var caption01 = { | ||
@@ -625,2 +668,9 @@ fontFamily: fontFamilies.sans, | ||
/** | ||
* Copyright IBM Corp. 2018, 2018 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
exports.fontFamilies = fontFamilies; | ||
@@ -627,0 +677,0 @@ exports.fontFamily = fontFamily; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
117229
2559
40
0
+ Added@carbon/import-once@0.0.1-alpha.25(transitive)
+ Added@carbon/layout@0.0.1-alpha.25(transitive)
- Removed@carbon/import-once@0.0.1-alpha.24(transitive)
- Removed@carbon/layout@0.0.1-alpha.24(transitive)