Skip to content

Commit b6efbb1

Browse files
committed
use icon registry for story icons
1 parent 7e8f6b0 commit b6efbb1

File tree

1 file changed

+33
-19
lines changed

1 file changed

+33
-19
lines changed

packages/uui-action-bar/lib/uui-action-bar.story.ts

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { html } from 'lit-html';
22
import '@umbraco-ui/uui-action-bar/lib/index';
33
import '@umbraco-ui/uui-button/lib/index';
44
import '@umbraco-ui/uui-icon/lib/index';
5+
import '@umbraco-ui/uui-icon-registry-essential/lib/index';
56
import {
67
InterfaceLookNames,
78
InterfaceLookType,
@@ -20,29 +21,42 @@ export default {
2021
},
2122
};
2223

23-
const buttons = ['bug', 'info', 'delete'];
24+
const buttons = ['copy', 'remove', 'delete'];
2425

2526
export const Basic = () =>
26-
html`<uui-action-bar
27-
>${buttons.map(
28-
el => html`<uui-button><uui-icon name="${el}"></uui-icon></uui-button>`
29-
)}</uui-action-bar
30-
>`;
27+
html`
28+
<uui-icon-registry-essential>
29+
<uui-action-bar
30+
>${buttons.map(
31+
el =>
32+
html`<uui-button><uui-icon name="${el}"></uui-icon></uui-button>`
33+
)}
34+
</uui-action-bar>
35+
</uui-icon-registry-essential>
36+
`;
3137

3238
export const Single = () =>
33-
html`<uui-action-bar
34-
><uui-button look="outline"><uui-icon name="delete"></uui-icon></uui-button>
35-
</uui-action-bar>`;
39+
html`
40+
<uui-icon-registry-essential>
41+
<uui-action-bar>
42+
<uui-button look="outline"
43+
><uui-icon name="delete"></uui-icon
44+
></uui-button>
45+
</uui-action-bar>
46+
</uui-icon-registry-essential>
47+
`;
3648

3749
export const AllStyles = () => html`
38-
${InterfaceLookNames.map(
39-
(lookName: InterfaceLookType) =>
40-
html` <uui-action-bar>
41-
${buttons.map(
42-
button => html`<uui-button .look=${lookName}>
43-
<uui-icon name="${button}"></uui-icon>
44-
</uui-button>`
45-
)} </uui-action-bar
46-
><br /><br /><br />`
47-
)}
50+
<uui-icon-registry-essential>
51+
${InterfaceLookNames.map(
52+
(lookName: InterfaceLookType) =>
53+
html` <uui-action-bar>
54+
${buttons.map(
55+
button => html`<uui-button .look=${lookName}>
56+
<uui-icon name="${button}"></uui-icon>
57+
</uui-button>`
58+
)} </uui-action-bar
59+
><br /><br /><br />`
60+
)}
61+
</uui-icon-registry-essential>
4862
`;

0 commit comments

Comments
 (0)