Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Add list bullet SVG to psammead-assets #2658

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/utilities/psammead-assets/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 2.11.0 | [PR#2658](https://github.com/bbc/psammead/pull/2658) Add list bullet to core icons |
| 2.10.0 | [PR#2631](https://github.com/bbc/psammead/pull/2631) Add AMP_BIND, AMP_LIST, AMP_MUSTACHE scripts to amp-boilerplate exports |
| 2.9.0 | [PR#2641](https://github.com/bbc/psammead/pull/2641) Add Core icons group with Alert and Info icons |
| 2.8.0 | [PR#2581](https://github.com/bbc/psammead/pull/2581) Added hamburger and cross icons for Navigation |
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/psammead-assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/utilities/psammead-assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-assets",
"version": "2.10.0",
"version": "2.11.0",
"sideEffects": false,
"description": "A collection of common assets that are likely to be required by many Psammead components or users, such as SVGs or small scripts.",
"repository": {
Expand Down
15 changes: 6 additions & 9 deletions packages/utilities/psammead-assets/src/svgs.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,22 @@ const coreIconStories = storiesOf(
'Utilities|SVGs/CoreIcons Svgs',
module,
).addDecorator(withKnobs);
Object.keys(coreIcons).forEach(iconName => {
coreIconStories.add(iconName, () => coreIcons[iconName], { notes });
});

const mediaIconStories = storiesOf(
'Utilities|SVGs/MediaIcons Svgs',
module,
).addDecorator(withKnobs);
Object.keys(mediaIcons).forEach(iconName => {
mediaIconStories.add(iconName, () => mediaIcons[iconName], { notes });
});

const navigationIconsStories = storiesOf(
'Utilities|SVGs/NavigationIcons Svgs',
module,
).addDecorator(withKnobs);

Object.keys(coreIcons).forEach(iconName => {
coreIconStories.add(iconName, () => coreIcons[iconName], { notes });
});

Object.keys(mediaIcons).forEach(iconName => {
mediaIconStories.add(iconName, () => mediaIcons[iconName], { notes });
});

Object.keys(navigationIcons).forEach(iconName => {
navigationIconsStories.add(
iconName,
Expand Down
9 changes: 9 additions & 0 deletions packages/utilities/psammead-assets/src/svgs/coreIcons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ const CoreIcons = {
<path d="M16 0a16 16 0 1 0 16 16A16 16 0 0 0 16 0zm2 25h-4V13h4zm0-14h-4V7h4z" />
</CoreIcon>
),
listBullet: (
<svg
fill="currentcolor"
xmlns="http://www.w3.org/2000/svg"
{...defaultAttrs}
>
<circle cx="16" cy="16" r="12" />
</svg>
),
};

export default CoreIcons;