@bbc/psammead-styles
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -6,2 +6,3 @@ # @bbc/psammead-styles Changelog | ||
|---------|-------------| | ||
| 2.1.4 | [PR#1926](https://github.com/bbc/psammead/pull/1926) Update component storybook to use latest inputProvider changes | | ||
| 2.1.3 | [PR#1948](https://github.com/bbc/psammead/pull/1948) Show different font types in storybook | | ||
@@ -8,0 +9,0 @@ | 2.1.2 | [PR#1847](https://github.com/bbc/psammead/pull/1847) Fixed Telugu typos | |
{ | ||
"name": "@bbc/psammead-styles", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "A collection of string constants for use in CSS, containing non-GEL styling details that are bespoke to specific BBC services and products.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -24,7 +24,11 @@ import React from 'react'; | ||
const typographyStory = typographyFunc => | ||
inputProvider([{ name: 'sample text' }], ({ slotTexts: [text], script }) => ( | ||
<TypographyText script={script} typographyFunc={typographyFunc}> | ||
{text} | ||
</TypographyText> | ||
)); | ||
inputProvider({ | ||
slots: [{ name: 'sample text' }], | ||
// eslint-disable-next-line react/prop-types | ||
componentFunction: ({ slotTexts: [text], script }) => ( | ||
<TypographyText script={script} typographyFunc={typographyFunc}> | ||
{text} | ||
</TypographyText> | ||
), | ||
}); | ||
@@ -31,0 +35,0 @@ const stories = storiesOf('Typography', module).addDecorator(withKnobs); |
184189
1990