Skip to content

Commit

Permalink
Merge pull request #145 from savindi7/feat-add-icon
Browse files Browse the repository at this point in the history
feat(primitives): add icons
  • Loading branch information
savindi7 authored Jun 23, 2023
2 parents e306fef + e81fdb2 commit a8f20d6
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 33 deletions.
25 changes: 25 additions & 0 deletions packages/primitives/src/icons/building-circle-check-16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions packages/primitives/src/icons/circle-info-16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 0 additions & 22 deletions packages/primitives/src/icons/lock-16.svg

This file was deleted.

26 changes: 26 additions & 0 deletions packages/primitives/src/icons/user-group-16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/react/src/components/AppShell/AppShell.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Navbar from '../Navbar/Navbar.tsx';
import Typography from '../Typography/Typography.tsx';
import {basicFooterVariationOptions} from '../Footer/Footer.stories.mdx';
import {basicHeaderVariationOptions} from '../Header/Header.stories.mdx';
import {UserDocumentIcon, HomeFilledIcon, LockIcon, GearIcon, LanguageIcon} from '@oxygen-ui/react-icons';
import {UserDocumentIcon, HomeFilledIcon, ShieldCheckIcon, GearIcon, LanguageIcon} from '@oxygen-ui/react-icons';

export const meta = {
component: AppShell,
Expand All @@ -33,7 +33,7 @@ export const navbarItems = [
id: 'profile info'
},
{
icon: <LockIcon />,
icon: <ShieldCheckIcon />,
name: 'Security',
id: 'security'
},
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/List/List.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ArgsTable, Source, Story, Canvas, Meta} from '@storybook/addon-docs';
import {LockIcon} from '@oxygen-ui/react-icons';
import {ShieldCheckIcon} from '@oxygen-ui/react-icons';
import {ArrowRightToBracketIcon} from '@oxygen-ui/react-icons';
import dedent from 'ts-dedent';
import StoryConfig from '../../../.storybook/story-config.ts';
Expand Down Expand Up @@ -38,7 +38,7 @@ Lists are continuous, vertical indexes of text or images.
<ListItem disablePadding>
<ListItemButton>
<ListItemIcon>
<LockIcon />
<ShieldCheckIcon />
</ListItemIcon>
<ListItemText primary="Security" />
</ListItemButton>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ArgsTable, Source, Story, Canvas, Meta} from '@storybook/addon-docs';
import {LockIcon} from '@oxygen-ui/react-icons';
import {ShieldCheckIcon} from '@oxygen-ui/react-icons';
import dedent from 'ts-dedent';
import StoryConfig from '../../../.storybook/story-config.ts';
import {withDesign} from '../../../.storybook/utils.ts';
Expand All @@ -25,7 +25,7 @@ export const Template = args => <ListItemIcon {...args} />;
A simple wrapper to apply List styles to an Icon or SvgIcon .

<Canvas>
<Story name="Overview" args={{children: <LockIcon />}}>
<Story name="Overview" args={{children: <ShieldCheckIcon />}}>
{Template.bind({})}
</Story>
</Canvas>
Expand Down
6 changes: 3 additions & 3 deletions packages/react/src/components/Navbar/Navbar.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
UserDocumentIcon,
HomeFilledIcon,
LockIcon,
ShieldCheckIcon,
GearIcon,
LanguageIcon,
SunIcon,
Expand Down Expand Up @@ -34,7 +34,7 @@ export const navbarItems = [
id: 'profile info'
},
{
icon: <LockIcon />,
icon: <ShieldCheckIcon />,
name: 'Security',
id: 'security',
tag: "BETA"
Expand Down Expand Up @@ -76,7 +76,7 @@ export const navbarItemsHeading = [
id: 'profile info'
},
{
icon: <LockIcon />,
icon: <ShieldCheckIcon />,
name: 'Security',
id: 'security'
},
Expand Down

0 comments on commit a8f20d6

Please sign in to comment.