Skip to content

Commit

Permalink
refactor(ui): refactoring CanvasIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Sep 9, 2023
1 parent 7e8cbd3 commit b0bf11d
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 357 deletions.
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderDashDot extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="DashDot"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderDashDot(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="DashDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderDashDot implements IconComponent {
render(): JSXComponent<IProps> {
return BorderDashDot;
}
}

export default BorderDashDot;
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderDashDotDot extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="DashDotDot"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderDashDotDot(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="DashDotDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderDashDotDot implements IconComponent {
render(): JSXComponent<IProps> {
return BorderDashDotDot;
}
}

export default BorderDashDotDot;
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderDashed extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="Dashed"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderDashed(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="Dashed" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderDashed implements IconComponent {
render(): JSXComponent<IProps> {
return BorderDashed;
}
}

export default BorderDashed;
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderDotted extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="Dotted"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderDotted(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="Dotted" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderDotted implements IconComponent {
render(): JSXComponent<IProps> {
return BorderDotted;
}
}

export default BorderDotted;
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderHair extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="Hair"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderHair(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="Hair" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderHair implements IconComponent {
render(): JSXComponent<IProps> {
return BorderHair;
}
}

export default BorderHair;
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderMedium extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="Medium"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderMedium(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="Medium" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderMedium implements IconComponent {
render(): JSXComponent<IProps> {
return BorderMedium;
}
}

export default BorderMedium;
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderMediumDashDot extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="MediumDashDot"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderMediumDashDot(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="MediumDashDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderMediumDashDot implements IconComponent {
render(): JSXComponent<IProps> {
return BorderMediumDashDot;
}
}

export default BorderMediumDashDot;
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderMediumDashDotDot extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="MediumDashDotDot"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderMediumDashDotDot(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="MediumDashDotDot" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}
export class UniverBorderMediumDashDotDot implements IconComponent {
render(): JSXComponent<IProps> {
return BorderMediumDashDotDot;
}
}

export default BorderMediumDashDotDot;
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderMediumDashed extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="MediumDashed"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderMediumDashed(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="MediumDashed" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderMediumDashed implements IconComponent {
render(): JSXComponent<IProps> {
return BorderMediumDashed;
}
}

export default BorderMediumDashed;
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
import { Component } from 'react';
import { JSXComponent } from '../../../BaseComponent';
import { IconComponent } from '../../../Interfaces';
import { CanvasIcon } from '../CanvasIcon';

interface IProps {
width?: string;
height?: string;
}
interface IState {}

class BorderThick extends Component<IProps, IState> {
render() {
const { width = '100', height = '10' } = this.props;
return (
<CanvasIcon
width={width}
height={height}
type="Thick"
hv="h"
mSt={0}
mEd={5}
lineSt={100}
lineEd={5}
/>
);
}
export function BorderThick(props: IProps) {
const { width = '100', height = '10' } = props;
return <CanvasIcon width={width} height={height} type="Thick" hv="h" mSt={0} mEd={5} lineSt={100} lineEd={5} />;
}

export class UniverBorderThick implements IconComponent {
render(): JSXComponent<IProps> {
return BorderThick;
}
}

export default BorderThick;
Loading

0 comments on commit b0bf11d

Please sign in to comment.