@bumble/styleguide-visual-helpers
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@bumble/styleguide-visual-helpers", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Collection of helper tools, which is ported from Badoo-styleguide. It is used for visual regression tests. ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,5 +0,3 @@ | ||
# Badoo Styleguide | ||
# Bumble Styleguide Visual Helpers | ||
[![npm version](https://badge.fury.io/js/badoo-styleguide.svg)](https://badge.fury.io/js/badoo-styleguide) | ||
## Available tools | ||
@@ -9,13 +7,15 @@ | ||
It is a React UI based list of components with zero dependencies (build based on consumer setup) for visual regression tests. | ||
For easier work with different devices / media-queries we introduced several components: | ||
* `StyleguidePlaceholder` returns mockup of component with provided parameters | ||
* `StyleguideStatic` returns image src from [placeholder.com](https://placeholder.com) with provided parameters | ||
* `StyleguideCell` returns component and its `legend` | ||
* `StyleguideDeviceFrame` returns one of predefined frames, based on mobile device aspect-ratio | ||
* `StyleguideDeviceGroup` returns set of predefined frames, based on mobile device aspect-ratio | ||
* `getImageUrl` returns static image mockup src with provided parameters - as inlined image or as image from [placeholder.com](https://placeholder.com) | ||
```js | ||
import { getImageUrl } from 'badoo-styleguide'; | ||
import { getImageUrl } from '@bumble/styleguide-visual-helpers'; | ||
@@ -22,0 +22,0 @@ ``` |
21807
23