Skip to content

Commit

Permalink
Merge pull request #87 from AElf-devops/feat/icons-nav
Browse files Browse the repository at this point in the history
add direction Category icons
  • Loading branch information
aelf-lxy authored Mar 22, 2024
2 parents df8b749 + 4ac08d7 commit ca58a4b
Show file tree
Hide file tree
Showing 44 changed files with 326 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/component/src/icon/index.md → docs/icon.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
nav: Components
nav: icons
group:
title: Display
order: 3
Expand Down
5 changes: 0 additions & 5 deletions packages/component/src/icon/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/backtop.svg';
import { IconProps } from '../../type';

const componentName = 'BacktopOutlined';
export const BacktopOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
BacktopOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/down-arrow.svg';
import { IconProps } from '../../type';

const componentName = 'DownArrowOutlined';
export const DownArrowOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
DownArrowOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/down-double.svg';
import { IconProps } from '../../type';

const componentName = 'DownDoubleOutlined';
export const DownDoubleOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
DownDoubleOutlined.displayName = componentName;
13 changes: 13 additions & 0 deletions packages/internal-icons/src/components/direction/DownOutlined.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/down.svg';
import { IconProps } from '../../type';

const componentName = 'DownOutlined';
export const DownOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
DownOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/fullscreen.svg';
import { IconProps } from '../../type';

const componentName = 'FullscreenOutlined';
export const FullscreenOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
FullscreenOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/fullsreen-exit.svg';
import { IconProps } from '../../type';

const componentName = 'FullsreenExitOutlined';
export const FullsreenExitOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
FullsreenExitOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/left-arrow.svg';
import { IconProps } from '../../type';

const componentName = 'LeftArrowOutlined';
export const LeftArrowOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
LeftArrowOutlined.displayName = componentName;
19 changes: 13 additions & 6 deletions packages/internal-icons/src/components/direction/LeftOutlined.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M10.5462 16.0006L20.5966 26.051C20.7528 26.2072 20.7528 26.4604 20.5966 26.6166L19.1823 28.0309C19.0261 28.1871 18.7729 28.1871 18.6167 28.0309L7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L18.618 3.96896C18.7742 3.81275 19.0275 3.81275 19.1837 3.96896L20.5979 5.38318C20.7541 5.53939 20.7541 5.79265 20.5979 5.94886L10.5462 16.0006Z"
fill="#101114"
/>
</svg>;
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/left.svg';
import { IconProps } from '../../type';

const componentName = 'LeftOutlined';
export const LeftOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
LeftOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/menu-fold.svg';
import { IconProps } from '../../type';

const componentName = 'MenuFoldOutlined';
export const MenuFoldOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
MenuFoldOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/menu-unfold.svg';
import { IconProps } from '../../type';

const componentName = 'MenuUnfoldOutlined';
export const MenuUnfoldOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
MenuUnfoldOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/right-arrow.svg';
import { IconProps } from '../../type';

const componentName = 'RightArrowOutlined';
export const RightArrowOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
RightArrowOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/roll-back.svg';
import { IconProps } from '../../type';

const componentName = 'RollBackOutlined';
export const RollBackOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
RollBackOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/rotate-left.svg';
import { IconProps } from '../../type';

const componentName = 'RotateLeftOutlined';
export const RotateLeftOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
RotateLeftOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/swap-left.svg';
import { IconProps } from '../../type';

const componentName = 'SwapLeftOutlined';
export const SwapLeftOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
SwapLeftOutlined.displayName = componentName;
13 changes: 13 additions & 0 deletions packages/internal-icons/src/components/direction/SwapOutlined.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/swap.svg';
import { IconProps } from '../../type';

const componentName = 'SwapOutlined';
export const SwapOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
SwapOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/swap-right.svg';
import { IconProps } from '../../type';

const componentName = 'SwapRightOutlined';
export const SwapRightOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
SwapRightOutlined.displayName = componentName;
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/up-arrow.svg';
import { IconProps } from '../../type';

const componentName = 'UpArrowOutlined';
export const UpArrowOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
UpArrowOutlined.displayName = componentName;
13 changes: 13 additions & 0 deletions packages/internal-icons/src/components/direction/UpOutlined.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/up.svg';
import { IconProps } from '../../type';

const componentName = 'UpOutlined';
export const UpOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
UpOutlined.displayName = componentName;
19 changes: 19 additions & 0 deletions packages/internal-icons/src/components/direction/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export * from './BacktopOutlined';
export * from './DownArrowOutlined';
export * from './DownDoubleOutlined';
export * from './DownOutlined';
export * from './FullscreenOutlined';
export * from './FullsreenExitOutlined';
export * from './LeftArrowOutlined';
export * from './LeftOutlined';
export * from './MenuFoldOutlined';
export * from './MenuUnfoldOutlined';
export * from './RightArrowOutlined';
export * from './RightOutlined';
export * from './RollBackOutlined';
export * from './RotateLeftOutlined';
export * from './SwapLeftOutlined';
export * from './SwapOutlined';
export * from './SwapRightOutlined';
export * from './UpArrowOutlined';
export * from './UpOutlined';
13 changes: 13 additions & 0 deletions packages/internal-icons/src/components/direction/rightOutlined.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';

import { AelfIcon } from '../../icon/AelfIcon';
import AelfSVGComponent from '../../svgs/direction/right.svg';
import { IconProps } from '../../type';

const componentName = 'RightOutlined';
export const RightOutlined = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
return (
<AelfIcon component={AelfSVGComponent} componentName={componentName} ref={ref} {...props} />
);
});
RightOutlined.displayName = componentName;
1 change: 1 addition & 0 deletions packages/internal-icons/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export * from './components/QueryIcon';
export * from './components/RightArrowIcon';
export * from './components/UploadIcon';

export * from './components/direction/index';
export * from './icon/AelfIcon';
export * from './hooks';

Expand Down
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/backtop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/down-arrow.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: 4 additions & 0 deletions packages/internal-icons/src/svgs/direction/down-double.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/fullscreen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/fullsreen-exit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/left-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/menu-fold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/menu-unfold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/right-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/internal-icons/src/svgs/direction/roll-back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ca58a4b

Please sign in to comment.