File tree Expand file tree Collapse file tree 23 files changed +102
-42
lines changed
organisms/Resources/Icons Expand file tree Collapse file tree 23 files changed +102
-42
lines changed Original file line number Diff line number Diff line change
1
+ import { uniqueId } from '@/services'
1
2
import { Base , BaseProps } from './Base'
2
3
3
4
export function ArrowRight ( props : BaseProps ) : JSX . Element {
5
+ const id = `clip-${ uniqueId ( ) } `
4
6
return (
5
7
< Base { ...props } >
6
- < g clipPath = " url(#clip0)" >
8
+ < g clipPath = { ` url(#${ id } )` } >
7
9
< mask
8
- id = "mask0"
10
+ id = { `mask- ${ id } ` }
9
11
style = { { maskType : 'alpha' } }
10
12
width = "16"
11
13
height = "16"
@@ -15,12 +17,12 @@ export function ArrowRight(props: BaseProps): JSX.Element {
15
17
>
16
18
< path fill = "#fff" d = "M16 16H32V32H16z" transform = "rotate(180 16 16)" />
17
19
</ mask >
18
- < g mask = " url(#mask0)" >
20
+ < g mask = { ` url(#mask- ${ id } )` } >
19
21
< path fill = "currentColor" d = "M6.074 14L12 8 6.074 2 4 4.1 7.852 8 4 11.9 6.074 14z" />
20
22
</ g >
21
23
</ g >
22
24
< defs >
23
- < clipPath id = "clip0" >
25
+ < clipPath id = { id } >
24
26
< path fill = "#fff" d = "M0 0H16V16H0z" />
25
27
</ clipPath >
26
28
</ defs >
Original file line number Diff line number Diff line change
1
+ import { uniqueId } from '@/services'
2
+
1
3
interface props {
2
4
fill ?: string
3
5
}
@@ -6,7 +8,7 @@ export function Loader({ fill = '#fff' }: props): JSX.Element {
6
8
return (
7
9
< div className = "loaderAsync" data-testid = "loaderAsync" >
8
10
< svg
9
- id = "prefix__eXySq0EBKm11"
11
+ id = { uniqueId ( ) }
10
12
xmlns = "http://www.w3.org/2000/svg"
11
13
viewBox = "0 0 38 20"
12
14
shapeRendering = "geometricPrecision"
Original file line number Diff line number Diff line change
1
+ import { uniqueId } from '@/services'
1
2
import { Base , BaseProps } from './Base'
2
3
3
4
export function TinyAlertError ( props : BaseProps ) : JSX . Element {
5
+ const id = `clip${ uniqueId ( ) } `
4
6
return (
5
7
< Base { ...props } w = "12px" h = "12px" viewBox = "0 0 12 12" >
6
- < g clipPath = " url(#clip0_2165_6683)" >
8
+ < g clipPath = { ` url(#${ id } )` } >
7
9
< circle cx = "6" cy = "6" r = "6" fill = "#CC0000" />
8
10
< path
9
11
fillRule = "evenodd"
@@ -13,7 +15,7 @@ export function TinyAlertError(props: BaseProps): JSX.Element {
13
15
/>
14
16
</ g >
15
17
< defs >
16
- < clipPath id = "clip0_2165_6683" >
18
+ < clipPath id = { id } >
17
19
< rect width = "12px" height = "12px" fill = "white" />
18
20
</ clipPath >
19
21
</ defs >
Original file line number Diff line number Diff line change
1
+ import { uniqueId } from '@/services'
1
2
import { Base , BaseProps } from './Base'
2
3
3
4
export function TinyAlertSuccess ( props : BaseProps ) : JSX . Element {
5
+ const id = `clip${ uniqueId ( ) } `
4
6
return (
5
7
< Base { ...props } w = "12px" h = "12px" viewBox = "0 0 12 12" >
6
- < g clipPath = " url(#clip0_2191_1138)" >
8
+ < g clipPath = { ` url(#${ id } )` } >
7
9
< circle cx = "6" cy = "6" r = "6" fill = "#28A745" />
8
10
< path
9
11
fillRule = "evenodd"
@@ -13,7 +15,7 @@ export function TinyAlertSuccess(props: BaseProps): JSX.Element {
13
15
/>
14
16
</ g >
15
17
< defs >
16
- < clipPath id = "clip0_2191_1138" >
18
+ < clipPath id = { id } >
17
19
< rect width = "12" height = "12" fill = "white" />
18
20
</ clipPath >
19
21
</ defs >
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export function Btn({
51
51
color = vars ( 'colors-neutral-white' ) ,
52
52
disabled = false ,
53
53
fillLoader = vars ( 'colors-neutral-white' ) ,
54
- id,
54
+ id = undefined ,
55
55
isFullWidth = false ,
56
56
isLoading = false ,
57
57
leftIcon,
Original file line number Diff line number Diff line change 1
1
import { FC } from 'react'
2
2
import { Icon } from '@chakra-ui/react'
3
3
4
+ import { uniqueId } from '@/services'
5
+
4
6
export const Avi : FC = ( ) => {
7
+ const id = `clip${ uniqueId ( ) } `
5
8
return (
6
9
< Icon
7
10
width = "32px"
@@ -10,7 +13,7 @@ export const Avi: FC = () => {
10
13
fill = "none"
11
14
xmlns = "http://www.w3.org/2000/svg"
12
15
>
13
- < g clipPath = " url(#clip0_2871_5797)" >
16
+ < g clipPath = { ` url(#${ id } )` } >
14
17
< path d = "M20 1V9H28" stroke = "#B0CFE0" strokeWidth = "2" strokeMiterlimit = "10" />
15
18
< path
16
19
d = "M28 13V9L20 1H4V13"
@@ -44,7 +47,7 @@ export const Avi: FC = () => {
44
47
/>
45
48
</ g >
46
49
< defs >
47
- < clipPath id = "clip0_2871_5797" >
50
+ < clipPath id = { id } >
48
51
< rect width = "32" height = "32" fill = "white" />
49
52
</ clipPath >
50
53
</ defs >
Original file line number Diff line number Diff line change 1
1
import { FC } from 'react'
2
2
import { Icon } from '@chakra-ui/react'
3
3
4
+ import { uniqueId } from '@/services'
5
+
4
6
export const Csv : FC = ( ) => {
7
+ const id = `clip${ uniqueId ( ) } `
5
8
return (
6
9
< Icon
7
10
width = "32px"
@@ -10,7 +13,7 @@ export const Csv: FC = () => {
10
13
fill = "none"
11
14
xmlns = "http://www.w3.org/2000/svg"
12
15
>
13
- < g clipPath = " url(#clip0_2871_5770)" >
16
+ < g clipPath = { ` url(#${ id } )` } >
14
17
< path d = "M20 1V9H28" stroke = "#B0CFE0" strokeWidth = "2" strokeMiterlimit = "10" />
15
18
< path
16
19
d = "M28 13V9L20 1H4V13"
@@ -47,7 +50,7 @@ export const Csv: FC = () => {
47
50
/>
48
51
</ g >
49
52
< defs >
50
- < clipPath id = "clip0_2871_5770" >
53
+ < clipPath id = { id } >
51
54
< rect width = "32" height = "32" fill = "white" />
52
55
</ clipPath >
53
56
</ defs >
Original file line number Diff line number Diff line change 1
1
import { FC } from 'react'
2
2
import { Icon } from '@chakra-ui/react'
3
3
4
+ import { uniqueId } from '@/services'
5
+
4
6
export const Doc : FC = ( ) => {
7
+ const id = `clip${ uniqueId ( ) } `
5
8
return (
6
9
< Icon
7
10
width = "32px"
@@ -10,7 +13,7 @@ export const Doc: FC = () => {
10
13
fill = "none"
11
14
xmlns = "http://www.w3.org/2000/svg"
12
15
>
13
- < g clipPath = " url(#clip0_2871_5732)" >
16
+ < g clipPath = { ` url(#${ id } )` } >
14
17
< path d = "M20 1V9H28" stroke = "#B0CFE0" strokeWidth = "2" strokeMiterlimit = "10" />
15
18
< path
16
19
d = "M28 13V9L20 1H4V13"
@@ -47,7 +50,7 @@ export const Doc: FC = () => {
47
50
/>
48
51
</ g >
49
52
< defs >
50
- < clipPath id = "clip0_2871_5732" >
53
+ < clipPath id = { id } >
51
54
< rect width = "32" height = "32" fill = "white" />
52
55
</ clipPath >
53
56
</ defs >
Original file line number Diff line number Diff line change 1
1
import { FC } from 'react'
2
2
import { Icon } from '@chakra-ui/react'
3
3
4
+ import { uniqueId } from '@/services'
5
+
4
6
export const Docx : FC = ( ) => {
7
+ const id = `clip${ uniqueId ( ) } `
5
8
return (
6
9
< Icon
7
10
width = "32px"
@@ -10,7 +13,7 @@ export const Docx: FC = () => {
10
13
fill = "none"
11
14
xmlns = "http://www.w3.org/2000/svg"
12
15
>
13
- < g clipPath = " url(#clip0_2871_5741)" >
16
+ < g clipPath = { ` url(#${ id } )` } >
14
17
< path d = "M20 1V9H28" stroke = "#B0CFE0" strokeWidth = "2" strokeMiterlimit = "10" />
15
18
< path
16
19
d = "M28 13V9L20 1H4V13"
@@ -51,7 +54,7 @@ export const Docx: FC = () => {
51
54
/>
52
55
</ g >
53
56
< defs >
54
- < clipPath id = "clip0_2871_5741" >
57
+ < clipPath id = { id } >
55
58
< rect width = "32" height = "32" fill = "white" />
56
59
</ clipPath >
57
60
</ defs >
Original file line number Diff line number Diff line change 1
1
import { FC } from 'react'
2
2
import { Icon } from '@chakra-ui/react'
3
3
4
+ import { uniqueId } from '@/services'
5
+
4
6
export const Gif : FC = ( ) => {
7
+ const id = `clip${ uniqueId ( ) } `
5
8
return (
6
9
< Icon
7
10
width = "32px"
@@ -10,7 +13,7 @@ export const Gif: FC = () => {
10
13
fill = "none"
11
14
xmlns = "http://www.w3.org/2000/svg"
12
15
>
13
- < g clipPath = " url(#clip0_2871_5704)" >
16
+ < g clipPath = { ` url(#${ id } )` } >
14
17
< path d = "M20 1V9H28" stroke = "#B0CFE0" strokeWidth = "2" strokeMiterlimit = "10" />
15
18
< path
16
19
d = "M28 13V9L20 1H4V13"
@@ -41,7 +44,7 @@ export const Gif: FC = () => {
41
44
/>
42
45
</ g >
43
46
< defs >
44
- < clipPath id = "clip0_2871_5704" >
47
+ < clipPath id = { id } >
45
48
< rect width = "32" height = "32" fill = "white" />
46
49
</ clipPath >
47
50
</ defs >
You can’t perform that action at this time.
0 commit comments