-
+
GitHub
-
+
Documentation
diff --git a/code/ui/manager/src/settings/index.tsx b/code/ui/manager/src/settings/index.tsx
index c0c359de953e..eec87d2ae18e 100644
--- a/code/ui/manager/src/settings/index.tsx
+++ b/code/ui/manager/src/settings/index.tsx
@@ -1,5 +1,5 @@
import { useStorybookApi, useStorybookState, types } from '@storybook/manager-api';
-import { IconButton, Icons, FlexBar, TabBar, TabButton, ScrollArea } from '@storybook/components';
+import { IconButton, FlexBar, TabBar, TabButton, ScrollArea } from '@storybook/components';
import { Location, Route } from '@storybook/router';
import { styled } from '@storybook/theming';
import { global } from '@storybook/global';
@@ -7,6 +7,7 @@ import type { FC, SyntheticEvent } from 'react';
import React, { Fragment } from 'react';
import type { Addon_PageType } from '@storybook/types';
+import { CloseIcon } from '@storybook/icons';
import { AboutPage } from './AboutPage';
import { ShortcutsPage } from './ShortcutsPage';
import { WhatsNewPage } from './whats_new_page';
@@ -84,7 +85,7 @@ const Pages: FC<{
}}
title="Close settings page"
>
-
+
diff --git a/code/ui/manager/src/settings/whats_new.tsx b/code/ui/manager/src/settings/whats_new.tsx
index b9e11aea2a7b..ee6aba4e6c53 100644
--- a/code/ui/manager/src/settings/whats_new.tsx
+++ b/code/ui/manager/src/settings/whats_new.tsx
@@ -1,9 +1,10 @@
import type { ComponentProps, FC } from 'react';
import React, { Fragment, useEffect, useState } from 'react';
import { styled, useTheme } from '@storybook/theming';
-import { Button, IconButton, Icons, Loader } from '@storybook/components';
+import { Button, IconButton, Loader } from '@storybook/components';
import { useStorybookApi, useStorybookState } from '@storybook/manager-api';
import { global } from '@storybook/global';
+import { EyeCloseIcon, EyeIcon, HeartIcon, AlertIcon as AlertIconSvg } from '@storybook/icons';
const Centered = styled.div({
top: '50%',
@@ -77,7 +78,7 @@ export const WhatsNewFooter = ({
return (
-
+
Share this with your team.
{copyText}
@@ -86,12 +87,12 @@ export const WhatsNewFooter = ({
{isNotificationsEnabled ? (
<>
-
+
Hide notifications
>
) : (
<>
-
+
Show notifications
>
)}
@@ -117,8 +118,8 @@ const Iframe = styled.iframe<{ isLoaded: boolean }>(
({ isLoaded }) => ({ visibility: isLoaded ? 'visible' : 'hidden' })
);
-const AlertIcon = styled(((props) => ) as FC<
- Omit, 'icon'>
+const AlertIcon = styled(((props) => ) as FC<
+ Omit, 'icon'>
>)(({ theme }) => ({
color: theme.textMutedColor,
width: 32,
diff --git a/code/ui/manager/src/typings.d.ts b/code/ui/manager/src/typings.d.ts
index 2ff3df07e63e..a7a6a5c90054 100644
--- a/code/ui/manager/src/typings.d.ts
+++ b/code/ui/manager/src/typings.d.ts
@@ -23,6 +23,7 @@ declare var __STORYBOOKCOREEVENTS__: any;
declare var __STORYBOOKROUTER__: any;
declare var __STORYBOOKTHEMING__: any;
declare var __STORYBOOKAPI__: any;
+declare var __STORYBOOKICONS__: any;
declare var __STORYBOOKADDONS__: any;
declare var __STORYBOOKCLIENTLOGGER__: any;
declare var __STORYBOOK_ADDONS_CHANNEL__: any;
diff --git a/code/yarn.lock b/code/yarn.lock
index 4448152651e6..90773195c903 100644
--- a/code/yarn.lock
+++ b/code/yarn.lock
@@ -5259,6 +5259,7 @@ __metadata:
"@storybook/components": "workspace:*"
"@storybook/core-events": "workspace:*"
"@storybook/global": ^5.0.0
+ "@storybook/icons": ^1.2.1
"@storybook/manager-api": "workspace:*"
"@storybook/preview-api": "workspace:*"
"@storybook/theming": "workspace:*"
@@ -5322,6 +5323,7 @@ __metadata:
"@storybook/components": "workspace:*"
"@storybook/core-events": "workspace:*"
"@storybook/global": ^5.0.0
+ "@storybook/icons": ^1.2.1
"@storybook/manager-api": "workspace:*"
"@storybook/preview-api": "workspace:*"
"@storybook/theming": "workspace:*"
@@ -5472,6 +5474,7 @@ __metadata:
"@storybook/core-common": "workspace:*"
"@storybook/core-events": "workspace:*"
"@storybook/global": ^5.0.0
+ "@storybook/icons": ^1.2.1
"@storybook/instrumenter": "workspace:*"
"@storybook/jest": next
"@storybook/manager-api": "workspace:*"
@@ -5568,6 +5571,7 @@ __metadata:
"@storybook/components": "workspace:*"
"@storybook/core-events": "workspace:*"
"@storybook/global": ^5.0.0
+ "@storybook/icons": ^1.2.1
"@storybook/manager-api": "workspace:*"
"@storybook/preview-api": "workspace:*"
"@storybook/types": "workspace:*"
@@ -5592,6 +5596,7 @@ __metadata:
"@storybook/components": "workspace:*"
"@storybook/core-events": "workspace:*"
"@storybook/global": ^5.0.0
+ "@storybook/icons": ^1.2.1
"@storybook/manager-api": "workspace:*"
"@storybook/preview-api": "workspace:*"
"@storybook/types": "workspace:*"
@@ -5644,6 +5649,7 @@ __metadata:
"@storybook/client-logger": "workspace:*"
"@storybook/components": "workspace:*"
"@storybook/core-events": "workspace:*"
+ "@storybook/icons": ^1.2.1
"@storybook/manager-api": "workspace:*"
"@storybook/preview-api": "workspace:*"
"@storybook/theming": "workspace:*"
@@ -5690,6 +5696,7 @@ __metadata:
"@storybook/components": "workspace:*"
"@storybook/core-events": "workspace:*"
"@storybook/global": ^5.0.0
+ "@storybook/icons": ^1.2.1
"@storybook/manager-api": "workspace:*"
"@storybook/preview-api": "workspace:*"
"@storybook/theming": "workspace:*"
@@ -5857,6 +5864,7 @@ __metadata:
"@storybook/csf": ^0.1.0
"@storybook/docs-tools": "workspace:*"
"@storybook/global": ^5.0.0
+ "@storybook/icons": ^1.2.1
"@storybook/manager-api": "workspace:*"
"@storybook/preview-api": "workspace:*"
"@storybook/theming": "workspace:*"
@@ -6166,7 +6174,7 @@ __metadata:
"@storybook/client-logger": "workspace:*"
"@storybook/csf": ^0.1.0
"@storybook/global": ^5.0.0
- "@storybook/icons": ^1.1.6
+ "@storybook/icons": ^1.2.1
"@storybook/theming": "workspace:*"
"@storybook/types": "workspace:*"
"@types/react-syntax-highlighter": 11.0.5
@@ -6514,13 +6522,13 @@ __metadata:
languageName: unknown
linkType: soft
-"@storybook/icons@npm:^1.1.6":
- version: 1.1.7
- resolution: "@storybook/icons@npm:1.1.7"
+"@storybook/icons@npm:^1.2.1":
+ version: 1.2.1
+ resolution: "@storybook/icons@npm:1.2.1"
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
- checksum: 5bb97f948f2a1cfc067a120f8e17004cdf9cdef0d08558ec51659e4e4d4b1620c76ced6d15a57d84aed888c664a0f9daa7a6e7b4ef22302d95f3228aa627bc83
+ checksum: 3bb3b350cf29d6ad81d8922a1f8f0d15d14bde80f99a7a3d2c6810f2d8eb626e55c3b8e90e138ccc8de5f59b28a492f1b84cb0fff4f964faf5819e2595510791
languageName: node
linkType: hard
@@ -6619,6 +6627,7 @@ __metadata:
"@storybook/components": "workspace:*"
"@storybook/core-events": "workspace:*"
"@storybook/global": ^5.0.0
+ "@storybook/icons": ^1.2.1
"@storybook/manager-api": "workspace:*"
"@storybook/router": "workspace:*"
"@storybook/theming": "workspace:*"
diff --git a/docs/addons/writing-addons.md b/docs/addons/writing-addons.md
index db951af33832..502890f04411 100644
--- a/docs/addons/writing-addons.md
+++ b/docs/addons/writing-addons.md
@@ -144,7 +144,7 @@ export const Tool = memo(function MyAddonSelector() {
title="Apply outlines to the preview"
onClick={toggleMyTool}
>
-
+
);
});
diff --git a/docs/snippets/common/addon-consume-and-update-globaltype.js.mdx b/docs/snippets/common/addon-consume-and-update-globaltype.js.mdx
index bc9e562e9b78..c3b49d30c4fe 100644
--- a/docs/snippets/common/addon-consume-and-update-globaltype.js.mdx
+++ b/docs/snippets/common/addon-consume-and-update-globaltype.js.mdx
@@ -34,7 +34,7 @@ const ExampleToolbar = () => {
title="Show a Storybook toolbar"
onClick={toggleOutline}
>
-
+
);
};
diff --git a/docs/snippets/common/storybook-addon-tool-initial-setup.ts.mdx b/docs/snippets/common/storybook-addon-tool-initial-setup.ts.mdx
index 7300ceffa32a..47ed72db11bb 100644
--- a/docs/snippets/common/storybook-addon-tool-initial-setup.ts.mdx
+++ b/docs/snippets/common/storybook-addon-tool-initial-setup.ts.mdx
@@ -36,7 +36,7 @@ export const Tool = memo(function MyAddonSelector() {
title="Apply outlines to the preview"
onClick={toggleMyTool}
>
-
+
);
});
diff --git a/docs/snippets/common/storybook-addon-toolbar-example.js.mdx b/docs/snippets/common/storybook-addon-toolbar-example.js.mdx
index 553dc9870960..5877b8cad7a8 100644
--- a/docs/snippets/common/storybook-addon-toolbar-example.js.mdx
+++ b/docs/snippets/common/storybook-addon-toolbar-example.js.mdx
@@ -16,7 +16,7 @@ addons.register('my/toolbar', () => {
match: ({ viewMode }) => !!(viewMode && viewMode.match(/^(story|docs)$/)),
render: ({ active }) => (
-
+
),
});
diff --git a/docs/snippets/common/storybook-addon-toolkit-toolbar-example.toolbar.ts.mdx b/docs/snippets/common/storybook-addon-toolkit-toolbar-example.toolbar.ts.mdx
index 7894ddad1b9f..18824f3807f9 100644
--- a/docs/snippets/common/storybook-addon-toolkit-toolbar-example.toolbar.ts.mdx
+++ b/docs/snippets/common/storybook-addon-toolkit-toolbar-example.toolbar.ts.mdx
@@ -31,7 +31,7 @@ export const Tool = memo(function MyAddonSelector() {
return (
-
+
);
});
diff --git a/docs/snippets/common/storybook-addons-api-getchannel.js.mdx b/docs/snippets/common/storybook-addons-api-getchannel.js.mdx
index 0478812b03dd..2f71041c707d 100644
--- a/docs/snippets/common/storybook-addons-api-getchannel.js.mdx
+++ b/docs/snippets/common/storybook-addons-api-getchannel.js.mdx
@@ -34,7 +34,7 @@ const ExampleToolbar = () => {
title="Show the toolbar addon"
onClick={toggleToolbarAddon}
>
-
+
);
};
diff --git a/docs/snippets/common/storybook-addons-api-useaddonstate.js.mdx b/docs/snippets/common/storybook-addons-api-useaddonstate.js.mdx
index 953414806971..2795207f64b8 100644
--- a/docs/snippets/common/storybook-addons-api-useaddonstate.js.mdx
+++ b/docs/snippets/common/storybook-addons-api-useaddonstate.js.mdx
@@ -28,7 +28,7 @@ export const Tool = () => {
title="Enable my addon"
onClick={() => setState('Example')}
>
-
+
);
};
diff --git a/docs/snippets/common/storybook-addons-api-useapi.js.mdx b/docs/snippets/common/storybook-addons-api-useapi.js.mdx
index f3b5b2091803..1550e7812008 100644
--- a/docs/snippets/common/storybook-addons-api-useapi.js.mdx
+++ b/docs/snippets/common/storybook-addons-api-useapi.js.mdx
@@ -26,7 +26,7 @@ export const Panel = () => {
return (
-
+
);
};
diff --git a/scripts/verdaccio.yaml b/scripts/verdaccio.yaml
index aa59cf7d5e78..7e5861715ffd 100644
--- a/scripts/verdaccio.yaml
+++ b/scripts/verdaccio.yaml
@@ -112,6 +112,10 @@ packages:
access: $all
publish: $all
proxy: npmjs
+ '@storybook/icons':
+ access: $all
+ publish: $all
+ proxy: npmjs
# storybook packages are NOT proxied to global registry
# allowing us to republish any version during tests