@toptal/picasso-icons 1.1.2-alpha-feature-tailwind-w20-45308c736.12 → 1.1.2-alpha-feature-tailwind-w21-c853d19b7.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-package/src/Icon/Control16.d.ts +11 -0
- package/dist-package/src/Icon/Control16.d.ts.map +1 -0
- package/dist-package/src/Icon/Control16.js +25 -0
- package/dist-package/src/Icon/Control16.js.map +1 -0
- package/dist-package/src/Icon/Control24.d.ts +11 -0
- package/dist-package/src/Icon/Control24.d.ts.map +1 -0
- package/dist-package/src/Icon/Control24.js +25 -0
- package/dist-package/src/Icon/Control24.js.map +1 -0
- package/dist-package/src/Icon/ControlResponsive.d.ts +5 -0
- package/dist-package/src/Icon/ControlResponsive.d.ts.map +1 -0
- package/dist-package/src/Icon/ControlResponsive.js +12 -0
- package/dist-package/src/Icon/ControlResponsive.js.map +1 -0
- package/dist-package/src/Icon/Critical16.d.ts +11 -0
- package/dist-package/src/Icon/Critical16.d.ts.map +1 -0
- package/dist-package/src/Icon/Critical16.js +25 -0
- package/dist-package/src/Icon/Critical16.js.map +1 -0
- package/dist-package/src/Icon/Critical24.d.ts +11 -0
- package/dist-package/src/Icon/Critical24.d.ts.map +1 -0
- package/dist-package/src/Icon/Critical24.js +25 -0
- package/dist-package/src/Icon/Critical24.js.map +1 -0
- package/dist-package/src/Icon/CriticalResponsive.d.ts +5 -0
- package/dist-package/src/Icon/CriticalResponsive.d.ts.map +1 -0
- package/dist-package/src/Icon/CriticalResponsive.js +12 -0
- package/dist-package/src/Icon/CriticalResponsive.js.map +1 -0
- package/dist-package/src/Icon/CriticalSolid16.d.ts +11 -0
- package/dist-package/src/Icon/CriticalSolid16.d.ts.map +1 -0
- package/dist-package/src/Icon/CriticalSolid16.js +25 -0
- package/dist-package/src/Icon/CriticalSolid16.js.map +1 -0
- package/dist-package/src/Icon/CriticalSolid24.d.ts +11 -0
- package/dist-package/src/Icon/CriticalSolid24.d.ts.map +1 -0
- package/dist-package/src/Icon/CriticalSolid24.js +25 -0
- package/dist-package/src/Icon/CriticalSolid24.js.map +1 -0
- package/dist-package/src/Icon/CriticalSolidResponsive.d.ts +5 -0
- package/dist-package/src/Icon/CriticalSolidResponsive.d.ts.map +1 -0
- package/dist-package/src/Icon/CriticalSolidResponsive.js +12 -0
- package/dist-package/src/Icon/CriticalSolidResponsive.js.map +1 -0
- package/dist-package/src/Icon/Warning16.d.ts +11 -0
- package/dist-package/src/Icon/Warning16.d.ts.map +1 -0
- package/dist-package/src/Icon/Warning16.js +25 -0
- package/dist-package/src/Icon/Warning16.js.map +1 -0
- package/dist-package/src/Icon/Warning24.d.ts +11 -0
- package/dist-package/src/Icon/Warning24.d.ts.map +1 -0
- package/dist-package/src/Icon/Warning24.js +25 -0
- package/dist-package/src/Icon/Warning24.js.map +1 -0
- package/dist-package/src/Icon/WarningResponsive.d.ts +5 -0
- package/dist-package/src/Icon/WarningResponsive.d.ts.map +1 -0
- package/dist-package/src/Icon/WarningResponsive.js +12 -0
- package/dist-package/src/Icon/WarningResponsive.js.map +1 -0
- package/dist-package/src/Icon/WarningSolid16.d.ts +11 -0
- package/dist-package/src/Icon/WarningSolid16.d.ts.map +1 -0
- package/dist-package/src/Icon/WarningSolid16.js +25 -0
- package/dist-package/src/Icon/WarningSolid16.js.map +1 -0
- package/dist-package/src/Icon/WarningSolid24.d.ts +11 -0
- package/dist-package/src/Icon/WarningSolid24.d.ts.map +1 -0
- package/dist-package/src/Icon/WarningSolid24.js +25 -0
- package/dist-package/src/Icon/WarningSolid24.js.map +1 -0
- package/dist-package/src/Icon/WarningSolidResponsive.d.ts +5 -0
- package/dist-package/src/Icon/WarningSolidResponsive.d.ts.map +1 -0
- package/dist-package/src/Icon/WarningSolidResponsive.js +12 -0
- package/dist-package/src/Icon/WarningSolidResponsive.js.map +1 -0
- package/dist-package/src/Icon/index.d.ts +15 -0
- package/dist-package/src/Icon/index.d.ts.map +1 -1
- package/dist-package/src/Icon/index.js +15 -0
- package/dist-package/src/Icon/index.js.map +1 -1
- package/package.json +4 -4
- package/src/Icon/Control16.tsx +61 -0
- package/src/Icon/Control24.tsx +61 -0
- package/src/Icon/ControlResponsive.tsx +19 -0
- package/src/Icon/Critical16.tsx +66 -0
- package/src/Icon/Critical24.tsx +66 -0
- package/src/Icon/CriticalResponsive.tsx +19 -0
- package/src/Icon/CriticalSolid16.tsx +66 -0
- package/src/Icon/CriticalSolid24.tsx +66 -0
- package/src/Icon/CriticalSolidResponsive.tsx +19 -0
- package/src/Icon/Warning16.tsx +66 -0
- package/src/Icon/Warning24.tsx +66 -0
- package/src/Icon/WarningResponsive.tsx +19 -0
- package/src/Icon/WarningSolid16.tsx +66 -0
- package/src/Icon/WarningSolid24.tsx +66 -0
- package/src/Icon/WarningSolidResponsive.tsx +19 -0
- package/src/Icon/index.ts +15 -0
- package/src/Icon/story/index.jsx +1 -1
- package/src/Icon/svg/control16.svg +3 -0
- package/src/Icon/svg/control24.svg +3 -0
- package/src/Icon/svg/critical16.svg +10 -0
- package/src/Icon/svg/critical24.svg +10 -0
- package/src/Icon/svg/criticalSolid16.svg +10 -0
- package/src/Icon/svg/criticalSolid24.svg +10 -0
- package/src/Icon/svg/warning16.svg +5 -0
- package/src/Icon/svg/warning24.svg +5 -0
- package/src/Icon/svg/warningSolid16.svg +5 -0
- package/src/Icon/svg/warningSolid24.svg +5 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Ref } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
import { makeStyles } from '@material-ui/core/styles'
|
|
5
|
+
import type { StandardProps } from '@toptal/picasso-shared'
|
|
6
|
+
import { kebabToCamelCase } from '@toptal/picasso-utils'
|
|
7
|
+
|
|
8
|
+
import styles from './styles'
|
|
9
|
+
const BASE_SIZE = 16
|
|
10
|
+
|
|
11
|
+
type ScaleType = 1 | 2 | 3 | 4
|
|
12
|
+
export interface Props extends StandardProps {
|
|
13
|
+
scale?: ScaleType
|
|
14
|
+
color?: string
|
|
15
|
+
base?: number
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles(styles, {
|
|
18
|
+
name: 'PicassoSvgCritical16',
|
|
19
|
+
})
|
|
20
|
+
const SvgCritical16 = forwardRef(function SvgCritical16(
|
|
21
|
+
props: Props,
|
|
22
|
+
ref: Ref<SVGSVGElement>
|
|
23
|
+
) {
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
style = {},
|
|
27
|
+
color,
|
|
28
|
+
scale,
|
|
29
|
+
base,
|
|
30
|
+
'data-testid': testId,
|
|
31
|
+
} = props
|
|
32
|
+
const classes: Record<string, string> = useStyles(props)
|
|
33
|
+
const classNames = [classes.root, className]
|
|
34
|
+
const scaledSize = base || BASE_SIZE * Math.ceil(scale || 1)
|
|
35
|
+
const colorClassName = kebabToCamelCase(`${color}`)
|
|
36
|
+
|
|
37
|
+
if (classes[colorClassName]) {
|
|
38
|
+
classNames.push(classes[colorClassName])
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const svgStyle = {
|
|
42
|
+
minWidth: `${scaledSize}px`,
|
|
43
|
+
minHeight: `${scaledSize}px`,
|
|
44
|
+
...style,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<svg
|
|
49
|
+
fill='none'
|
|
50
|
+
viewBox='0 0 16 16'
|
|
51
|
+
className={cx(...classNames)}
|
|
52
|
+
style={svgStyle}
|
|
53
|
+
ref={ref}
|
|
54
|
+
data-testid={testId}
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fillRule='evenodd'
|
|
58
|
+
d='M14.503 8.001 8 1.5 1.5 8.001l6.501 6.502L14.503 8ZM8.709.793a1 1 0 0 0-1.415 0L.793 7.294a1 1 0 0 0 0 1.415l6.501 6.501a1 1 0 0 0 1.415 0l6.501-6.501a1 1 0 0 0 0-1.415L8.709.793ZM7.5 4h1v6h-1V4Zm1 7h-1v1h1v-1Z'
|
|
59
|
+
clipRule='evenodd'
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
SvgCritical16.displayName = 'SvgCritical16'
|
|
66
|
+
export default SvgCritical16
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Ref } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
import { makeStyles } from '@material-ui/core/styles'
|
|
5
|
+
import type { StandardProps } from '@toptal/picasso-shared'
|
|
6
|
+
import { kebabToCamelCase } from '@toptal/picasso-utils'
|
|
7
|
+
|
|
8
|
+
import styles from './styles'
|
|
9
|
+
const BASE_SIZE = 24
|
|
10
|
+
|
|
11
|
+
type ScaleType = 1 | 2 | 3 | 4
|
|
12
|
+
export interface Props extends StandardProps {
|
|
13
|
+
scale?: ScaleType
|
|
14
|
+
color?: string
|
|
15
|
+
base?: number
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles(styles, {
|
|
18
|
+
name: 'PicassoSvgCritical24',
|
|
19
|
+
})
|
|
20
|
+
const SvgCritical24 = forwardRef(function SvgCritical24(
|
|
21
|
+
props: Props,
|
|
22
|
+
ref: Ref<SVGSVGElement>
|
|
23
|
+
) {
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
style = {},
|
|
27
|
+
color,
|
|
28
|
+
scale,
|
|
29
|
+
base,
|
|
30
|
+
'data-testid': testId,
|
|
31
|
+
} = props
|
|
32
|
+
const classes: Record<string, string> = useStyles(props)
|
|
33
|
+
const classNames = [classes.root, className]
|
|
34
|
+
const scaledSize = base || BASE_SIZE * Math.ceil(scale || 1)
|
|
35
|
+
const colorClassName = kebabToCamelCase(`${color}`)
|
|
36
|
+
|
|
37
|
+
if (classes[colorClassName]) {
|
|
38
|
+
classNames.push(classes[colorClassName])
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const svgStyle = {
|
|
42
|
+
minWidth: `${scaledSize}px`,
|
|
43
|
+
minHeight: `${scaledSize}px`,
|
|
44
|
+
...style,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<svg
|
|
49
|
+
fill='none'
|
|
50
|
+
viewBox='0 0 24 24'
|
|
51
|
+
className={cx(...classNames)}
|
|
52
|
+
style={svgStyle}
|
|
53
|
+
ref={ref}
|
|
54
|
+
data-testid={testId}
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fillRule='evenodd'
|
|
58
|
+
d='m22.108 11.649-9.752-9.753a.5.5 0 0 0-.707 0L1.897 11.65a.5.5 0 0 0 0 .707l9.752 9.752a.5.5 0 0 0 .707 0l9.752-9.752a.5.5 0 0 0 0-.707Zm-9.045-10.46a1.5 1.5 0 0 0-2.122 0L1.19 10.941a1.5 1.5 0 0 0 0 2.122l9.752 9.752a1.5 1.5 0 0 0 2.122 0l9.752-9.752a1.5 1.5 0 0 0 0-2.122L13.063 1.19ZM11.5 6.775h1v8.662h-1V6.774Zm1 10.105h-1v1h1v-1Z'
|
|
59
|
+
clipRule='evenodd'
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
SvgCritical24.displayName = 'SvgCritical24'
|
|
66
|
+
export default SvgCritical24
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useScreens } from '@toptal/picasso-provider'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
import Critical16 from './Critical16'
|
|
5
|
+
import Critical24 from './Critical24'
|
|
6
|
+
import type { Props } from './Critical16'
|
|
7
|
+
|
|
8
|
+
const CriticalResponsive = (props: Props) => {
|
|
9
|
+
const screens = useScreens()
|
|
10
|
+
|
|
11
|
+
return screens(
|
|
12
|
+
{
|
|
13
|
+
xl: <Critical16 {...props} />,
|
|
14
|
+
},
|
|
15
|
+
<Critical24 {...props} />
|
|
16
|
+
) as JSX.Element
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default CriticalResponsive
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Ref } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
import { makeStyles } from '@material-ui/core/styles'
|
|
5
|
+
import type { StandardProps } from '@toptal/picasso-shared'
|
|
6
|
+
import { kebabToCamelCase } from '@toptal/picasso-utils'
|
|
7
|
+
|
|
8
|
+
import styles from './styles'
|
|
9
|
+
const BASE_SIZE = 16
|
|
10
|
+
|
|
11
|
+
type ScaleType = 1 | 2 | 3 | 4
|
|
12
|
+
export interface Props extends StandardProps {
|
|
13
|
+
scale?: ScaleType
|
|
14
|
+
color?: string
|
|
15
|
+
base?: number
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles(styles, {
|
|
18
|
+
name: 'PicassoSvgCriticalSolid16',
|
|
19
|
+
})
|
|
20
|
+
const SvgCriticalSolid16 = forwardRef(function SvgCriticalSolid16(
|
|
21
|
+
props: Props,
|
|
22
|
+
ref: Ref<SVGSVGElement>
|
|
23
|
+
) {
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
style = {},
|
|
27
|
+
color,
|
|
28
|
+
scale,
|
|
29
|
+
base,
|
|
30
|
+
'data-testid': testId,
|
|
31
|
+
} = props
|
|
32
|
+
const classes: Record<string, string> = useStyles(props)
|
|
33
|
+
const classNames = [classes.root, className]
|
|
34
|
+
const scaledSize = base || BASE_SIZE * Math.ceil(scale || 1)
|
|
35
|
+
const colorClassName = kebabToCamelCase(`${color}`)
|
|
36
|
+
|
|
37
|
+
if (classes[colorClassName]) {
|
|
38
|
+
classNames.push(classes[colorClassName])
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const svgStyle = {
|
|
42
|
+
minWidth: `${scaledSize}px`,
|
|
43
|
+
minHeight: `${scaledSize}px`,
|
|
44
|
+
...style,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<svg
|
|
49
|
+
fill='none'
|
|
50
|
+
viewBox='0 0 16 16'
|
|
51
|
+
className={cx(...classNames)}
|
|
52
|
+
style={svgStyle}
|
|
53
|
+
ref={ref}
|
|
54
|
+
data-testid={testId}
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fillRule='evenodd'
|
|
58
|
+
d='M8.709.793a1 1 0 0 0-1.415 0L.793 7.294a1 1 0 0 0 0 1.415l6.501 6.501a1 1 0 0 0 1.415 0l6.501-6.501a1 1 0 0 0 0-1.415L8.709.793ZM7.25 4.759a.75.75 0 0 1 1.5 0V9.08a.75.75 0 0 1-1.5 0V4.759Zm1.5 7.33a.751.751 0 0 1-.75.752.751.751 0 0 1-.75-.753c0-.415.336-.752.75-.752s.75.336.75.752Z'
|
|
59
|
+
clipRule='evenodd'
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
SvgCriticalSolid16.displayName = 'SvgCriticalSolid16'
|
|
66
|
+
export default SvgCriticalSolid16
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Ref } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
import { makeStyles } from '@material-ui/core/styles'
|
|
5
|
+
import type { StandardProps } from '@toptal/picasso-shared'
|
|
6
|
+
import { kebabToCamelCase } from '@toptal/picasso-utils'
|
|
7
|
+
|
|
8
|
+
import styles from './styles'
|
|
9
|
+
const BASE_SIZE = 24
|
|
10
|
+
|
|
11
|
+
type ScaleType = 1 | 2 | 3 | 4
|
|
12
|
+
export interface Props extends StandardProps {
|
|
13
|
+
scale?: ScaleType
|
|
14
|
+
color?: string
|
|
15
|
+
base?: number
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles(styles, {
|
|
18
|
+
name: 'PicassoSvgCriticalSolid24',
|
|
19
|
+
})
|
|
20
|
+
const SvgCriticalSolid24 = forwardRef(function SvgCriticalSolid24(
|
|
21
|
+
props: Props,
|
|
22
|
+
ref: Ref<SVGSVGElement>
|
|
23
|
+
) {
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
style = {},
|
|
27
|
+
color,
|
|
28
|
+
scale,
|
|
29
|
+
base,
|
|
30
|
+
'data-testid': testId,
|
|
31
|
+
} = props
|
|
32
|
+
const classes: Record<string, string> = useStyles(props)
|
|
33
|
+
const classNames = [classes.root, className]
|
|
34
|
+
const scaledSize = base || BASE_SIZE * Math.ceil(scale || 1)
|
|
35
|
+
const colorClassName = kebabToCamelCase(`${color}`)
|
|
36
|
+
|
|
37
|
+
if (classes[colorClassName]) {
|
|
38
|
+
classNames.push(classes[colorClassName])
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const svgStyle = {
|
|
42
|
+
minWidth: `${scaledSize}px`,
|
|
43
|
+
minHeight: `${scaledSize}px`,
|
|
44
|
+
...style,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<svg
|
|
49
|
+
fill='none'
|
|
50
|
+
viewBox='0 0 24 24'
|
|
51
|
+
className={cx(...classNames)}
|
|
52
|
+
style={svgStyle}
|
|
53
|
+
ref={ref}
|
|
54
|
+
data-testid={testId}
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fillRule='evenodd'
|
|
58
|
+
d='M13.063 1.19a1.5 1.5 0 0 0-2.122 0L1.19 10.941a1.5 1.5 0 0 0 0 2.12l9.752 9.753a1.5 1.5 0 0 0 2.122 0l9.752-9.752a1.5 1.5 0 0 0 0-2.122L13.063 1.19ZM11 7.013a1 1 0 1 1 2 0v7a1 1 0 1 1-2 0v-7Zm2 10.99a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'
|
|
59
|
+
clipRule='evenodd'
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
SvgCriticalSolid24.displayName = 'SvgCriticalSolid24'
|
|
66
|
+
export default SvgCriticalSolid24
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useScreens } from '@toptal/picasso-provider'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
import CriticalSolid16 from './CriticalSolid16'
|
|
5
|
+
import CriticalSolid24 from './CriticalSolid24'
|
|
6
|
+
import type { Props } from './CriticalSolid16'
|
|
7
|
+
|
|
8
|
+
const CriticalSolidResponsive = (props: Props) => {
|
|
9
|
+
const screens = useScreens()
|
|
10
|
+
|
|
11
|
+
return screens(
|
|
12
|
+
{
|
|
13
|
+
xl: <CriticalSolid16 {...props} />,
|
|
14
|
+
},
|
|
15
|
+
<CriticalSolid24 {...props} />
|
|
16
|
+
) as JSX.Element
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default CriticalSolidResponsive
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Ref } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
import { makeStyles } from '@material-ui/core/styles'
|
|
5
|
+
import type { StandardProps } from '@toptal/picasso-shared'
|
|
6
|
+
import { kebabToCamelCase } from '@toptal/picasso-utils'
|
|
7
|
+
|
|
8
|
+
import styles from './styles'
|
|
9
|
+
const BASE_SIZE = 16
|
|
10
|
+
|
|
11
|
+
type ScaleType = 1 | 2 | 3 | 4
|
|
12
|
+
export interface Props extends StandardProps {
|
|
13
|
+
scale?: ScaleType
|
|
14
|
+
color?: string
|
|
15
|
+
base?: number
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles(styles, {
|
|
18
|
+
name: 'PicassoSvgWarning16',
|
|
19
|
+
})
|
|
20
|
+
const SvgWarning16 = forwardRef(function SvgWarning16(
|
|
21
|
+
props: Props,
|
|
22
|
+
ref: Ref<SVGSVGElement>
|
|
23
|
+
) {
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
style = {},
|
|
27
|
+
color,
|
|
28
|
+
scale,
|
|
29
|
+
base,
|
|
30
|
+
'data-testid': testId,
|
|
31
|
+
} = props
|
|
32
|
+
const classes: Record<string, string> = useStyles(props)
|
|
33
|
+
const classNames = [classes.root, className]
|
|
34
|
+
const scaledSize = base || BASE_SIZE * Math.ceil(scale || 1)
|
|
35
|
+
const colorClassName = kebabToCamelCase(`${color}`)
|
|
36
|
+
|
|
37
|
+
if (classes[colorClassName]) {
|
|
38
|
+
classNames.push(classes[colorClassName])
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const svgStyle = {
|
|
42
|
+
minWidth: `${scaledSize}px`,
|
|
43
|
+
minHeight: `${scaledSize}px`,
|
|
44
|
+
...style,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<svg
|
|
49
|
+
fill='none'
|
|
50
|
+
viewBox='0 0 16 16'
|
|
51
|
+
className={cx(...classNames)}
|
|
52
|
+
style={svgStyle}
|
|
53
|
+
ref={ref}
|
|
54
|
+
data-testid={testId}
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fillRule='evenodd'
|
|
58
|
+
d='M6.78 1.707c.54-.943 1.91-.943 2.45 0l6.423 11.2c.536.934-.144 2.093-1.225 2.093H1.582C.5 15-.178 13.84.357 12.907l6.422-11.2Zm1.633.462a.472.472 0 0 0-.817 0l-6.422 11.2a.467.467 0 0 0 .408.698h12.846c.36 0 .587-.387.408-.698l-6.423-11.2ZM7.5 4.4h1v6h-1v-6Zm1 7h-1v1h1v-1Z'
|
|
59
|
+
clipRule='evenodd'
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
SvgWarning16.displayName = 'SvgWarning16'
|
|
66
|
+
export default SvgWarning16
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Ref } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
import { makeStyles } from '@material-ui/core/styles'
|
|
5
|
+
import type { StandardProps } from '@toptal/picasso-shared'
|
|
6
|
+
import { kebabToCamelCase } from '@toptal/picasso-utils'
|
|
7
|
+
|
|
8
|
+
import styles from './styles'
|
|
9
|
+
const BASE_SIZE = 24
|
|
10
|
+
|
|
11
|
+
type ScaleType = 1 | 2 | 3 | 4
|
|
12
|
+
export interface Props extends StandardProps {
|
|
13
|
+
scale?: ScaleType
|
|
14
|
+
color?: string
|
|
15
|
+
base?: number
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles(styles, {
|
|
18
|
+
name: 'PicassoSvgWarning24',
|
|
19
|
+
})
|
|
20
|
+
const SvgWarning24 = forwardRef(function SvgWarning24(
|
|
21
|
+
props: Props,
|
|
22
|
+
ref: Ref<SVGSVGElement>
|
|
23
|
+
) {
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
style = {},
|
|
27
|
+
color,
|
|
28
|
+
scale,
|
|
29
|
+
base,
|
|
30
|
+
'data-testid': testId,
|
|
31
|
+
} = props
|
|
32
|
+
const classes: Record<string, string> = useStyles(props)
|
|
33
|
+
const classNames = [classes.root, className]
|
|
34
|
+
const scaledSize = base || BASE_SIZE * Math.ceil(scale || 1)
|
|
35
|
+
const colorClassName = kebabToCamelCase(`${color}`)
|
|
36
|
+
|
|
37
|
+
if (classes[colorClassName]) {
|
|
38
|
+
classNames.push(classes[colorClassName])
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const svgStyle = {
|
|
42
|
+
minWidth: `${scaledSize}px`,
|
|
43
|
+
minHeight: `${scaledSize}px`,
|
|
44
|
+
...style,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<svg
|
|
49
|
+
fill='none'
|
|
50
|
+
viewBox='0 0 24 24'
|
|
51
|
+
className={cx(...classNames)}
|
|
52
|
+
style={svgStyle}
|
|
53
|
+
ref={ref}
|
|
54
|
+
data-testid={testId}
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fillRule='evenodd'
|
|
58
|
+
d='M10.333 2.465c.736-1.287 2.598-1.287 3.334 0l9.829 17.181c.728 1.273-.196 2.854-1.667 2.854H2.17C.7 22.5-.224 20.919.504 19.646l9.829-17.181Zm2.5.472a.961.961 0 0 0-1.667 0L1.338 20.118a.955.955 0 0 0 .833 1.427H21.83a.955.955 0 0 0 .833-1.427L12.834 2.937ZM11.5 7h1v8.662h-1V7Zm1 10.1h-1v1h1v-1Z'
|
|
59
|
+
clipRule='evenodd'
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
SvgWarning24.displayName = 'SvgWarning24'
|
|
66
|
+
export default SvgWarning24
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useScreens } from '@toptal/picasso-provider'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
import Warning16 from './Warning16'
|
|
5
|
+
import Warning24 from './Warning24'
|
|
6
|
+
import type { Props } from './Warning16'
|
|
7
|
+
|
|
8
|
+
const WarningResponsive = (props: Props) => {
|
|
9
|
+
const screens = useScreens()
|
|
10
|
+
|
|
11
|
+
return screens(
|
|
12
|
+
{
|
|
13
|
+
xl: <Warning16 {...props} />,
|
|
14
|
+
},
|
|
15
|
+
<Warning24 {...props} />
|
|
16
|
+
) as JSX.Element
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default WarningResponsive
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Ref } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
import { makeStyles } from '@material-ui/core/styles'
|
|
5
|
+
import type { StandardProps } from '@toptal/picasso-shared'
|
|
6
|
+
import { kebabToCamelCase } from '@toptal/picasso-utils'
|
|
7
|
+
|
|
8
|
+
import styles from './styles'
|
|
9
|
+
const BASE_SIZE = 16
|
|
10
|
+
|
|
11
|
+
type ScaleType = 1 | 2 | 3 | 4
|
|
12
|
+
export interface Props extends StandardProps {
|
|
13
|
+
scale?: ScaleType
|
|
14
|
+
color?: string
|
|
15
|
+
base?: number
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles(styles, {
|
|
18
|
+
name: 'PicassoSvgWarningSolid16',
|
|
19
|
+
})
|
|
20
|
+
const SvgWarningSolid16 = forwardRef(function SvgWarningSolid16(
|
|
21
|
+
props: Props,
|
|
22
|
+
ref: Ref<SVGSVGElement>
|
|
23
|
+
) {
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
style = {},
|
|
27
|
+
color,
|
|
28
|
+
scale,
|
|
29
|
+
base,
|
|
30
|
+
'data-testid': testId,
|
|
31
|
+
} = props
|
|
32
|
+
const classes: Record<string, string> = useStyles(props)
|
|
33
|
+
const classNames = [classes.root, className]
|
|
34
|
+
const scaledSize = base || BASE_SIZE * Math.ceil(scale || 1)
|
|
35
|
+
const colorClassName = kebabToCamelCase(`${color}`)
|
|
36
|
+
|
|
37
|
+
if (classes[colorClassName]) {
|
|
38
|
+
classNames.push(classes[colorClassName])
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const svgStyle = {
|
|
42
|
+
minWidth: `${scaledSize}px`,
|
|
43
|
+
minHeight: `${scaledSize}px`,
|
|
44
|
+
...style,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<svg
|
|
49
|
+
fill='none'
|
|
50
|
+
viewBox='0 0 16 16'
|
|
51
|
+
className={cx(...classNames)}
|
|
52
|
+
style={svgStyle}
|
|
53
|
+
ref={ref}
|
|
54
|
+
data-testid={testId}
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fillRule='evenodd'
|
|
58
|
+
d='M8.869 1.505a1 1 0 0 0-1.738 0L.299 13.503a1 1 0 0 0 .87 1.495H14.83a1 1 0 0 0 .87-1.495L8.868 1.505ZM7.25 4.76a.75.75 0 1 1 1.5 0V9.08a.75.75 0 1 1-1.5 0V4.759Zm1.5 7.33a.751.751 0 0 1-.75.752.751.751 0 0 1-.75-.753c0-.415.336-.752.75-.752s.75.336.75.752Z'
|
|
59
|
+
clipRule='evenodd'
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
SvgWarningSolid16.displayName = 'SvgWarningSolid16'
|
|
66
|
+
export default SvgWarningSolid16
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Ref } from 'react'
|
|
2
|
+
import React, { forwardRef } from 'react'
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
import { makeStyles } from '@material-ui/core/styles'
|
|
5
|
+
import type { StandardProps } from '@toptal/picasso-shared'
|
|
6
|
+
import { kebabToCamelCase } from '@toptal/picasso-utils'
|
|
7
|
+
|
|
8
|
+
import styles from './styles'
|
|
9
|
+
const BASE_SIZE = 24
|
|
10
|
+
|
|
11
|
+
type ScaleType = 1 | 2 | 3 | 4
|
|
12
|
+
export interface Props extends StandardProps {
|
|
13
|
+
scale?: ScaleType
|
|
14
|
+
color?: string
|
|
15
|
+
base?: number
|
|
16
|
+
}
|
|
17
|
+
const useStyles = makeStyles(styles, {
|
|
18
|
+
name: 'PicassoSvgWarningSolid24',
|
|
19
|
+
})
|
|
20
|
+
const SvgWarningSolid24 = forwardRef(function SvgWarningSolid24(
|
|
21
|
+
props: Props,
|
|
22
|
+
ref: Ref<SVGSVGElement>
|
|
23
|
+
) {
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
style = {},
|
|
27
|
+
color,
|
|
28
|
+
scale,
|
|
29
|
+
base,
|
|
30
|
+
'data-testid': testId,
|
|
31
|
+
} = props
|
|
32
|
+
const classes: Record<string, string> = useStyles(props)
|
|
33
|
+
const classNames = [classes.root, className]
|
|
34
|
+
const scaledSize = base || BASE_SIZE * Math.ceil(scale || 1)
|
|
35
|
+
const colorClassName = kebabToCamelCase(`${color}`)
|
|
36
|
+
|
|
37
|
+
if (classes[colorClassName]) {
|
|
38
|
+
classNames.push(classes[colorClassName])
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const svgStyle = {
|
|
42
|
+
minWidth: `${scaledSize}px`,
|
|
43
|
+
minHeight: `${scaledSize}px`,
|
|
44
|
+
...style,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<svg
|
|
49
|
+
fill='none'
|
|
50
|
+
viewBox='0 0 24 24'
|
|
51
|
+
className={cx(...classNames)}
|
|
52
|
+
style={svgStyle}
|
|
53
|
+
ref={ref}
|
|
54
|
+
data-testid={testId}
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fillRule='evenodd'
|
|
58
|
+
d='M13.303 2.258a1.5 1.5 0 0 0-2.607 0L.45 20.255a1.5 1.5 0 0 0 1.304 2.242h20.494a1.5 1.5 0 0 0 1.303-2.242L13.303 2.258ZM11 7.014a1 1 0 1 1 2 0v7a1 1 0 1 1-2 0v-7Zm2 10.99a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z'
|
|
59
|
+
clipRule='evenodd'
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
SvgWarningSolid24.displayName = 'SvgWarningSolid24'
|
|
66
|
+
export default SvgWarningSolid24
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useScreens } from '@toptal/picasso-provider'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
import WarningSolid16 from './WarningSolid16'
|
|
5
|
+
import WarningSolid24 from './WarningSolid24'
|
|
6
|
+
import type { Props } from './WarningSolid16'
|
|
7
|
+
|
|
8
|
+
const WarningSolidResponsive = (props: Props) => {
|
|
9
|
+
const screens = useScreens()
|
|
10
|
+
|
|
11
|
+
return screens(
|
|
12
|
+
{
|
|
13
|
+
xl: <WarningSolid16 {...props} />,
|
|
14
|
+
},
|
|
15
|
+
<WarningSolid24 {...props} />
|
|
16
|
+
) as JSX.Element
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default WarningSolidResponsive
|
package/src/Icon/index.ts
CHANGED
|
@@ -106,11 +106,17 @@ export { default as Component16 } from './Component16'
|
|
|
106
106
|
export { default as Component24 } from './Component24'
|
|
107
107
|
export { default as Confluence16 } from './Confluence16'
|
|
108
108
|
export { default as Confluence24 } from './Confluence24'
|
|
109
|
+
export { default as Control16 } from './Control16'
|
|
110
|
+
export { default as Control24 } from './Control24'
|
|
109
111
|
export { default as Copy16 } from './Copy16'
|
|
110
112
|
export { default as Copy24 } from './Copy24'
|
|
111
113
|
export { default as CreditCard16 } from './CreditCard16'
|
|
112
114
|
export { default as CreditCard24 } from './CreditCard24'
|
|
113
115
|
export { default as CreditCard32 } from './CreditCard32'
|
|
116
|
+
export { default as Critical16 } from './Critical16'
|
|
117
|
+
export { default as Critical24 } from './Critical24'
|
|
118
|
+
export { default as CriticalSolid16 } from './CriticalSolid16'
|
|
119
|
+
export { default as CriticalSolid24 } from './CriticalSolid24'
|
|
114
120
|
export { default as Dialpad16 } from './Dialpad16'
|
|
115
121
|
export { default as Dialpad24 } from './Dialpad24'
|
|
116
122
|
export { default as Dispute16 } from './Dispute16'
|
|
@@ -410,6 +416,10 @@ export { default as VideoOn16 } from './VideoOn16'
|
|
|
410
416
|
export { default as VideoOn24 } from './VideoOn24'
|
|
411
417
|
export { default as View16 } from './View16'
|
|
412
418
|
export { default as View24 } from './View24'
|
|
419
|
+
export { default as Warning16 } from './Warning16'
|
|
420
|
+
export { default as Warning24 } from './Warning24'
|
|
421
|
+
export { default as WarningSolid16 } from './WarningSolid16'
|
|
422
|
+
export { default as WarningSolid24 } from './WarningSolid24'
|
|
413
423
|
export { default as Whatsapp16 } from './Whatsapp16'
|
|
414
424
|
export { default as Whatsapp24 } from './Whatsapp24'
|
|
415
425
|
export { default as WhitePaper16 } from './WhitePaper16'
|
|
@@ -472,8 +482,11 @@ export { default as CommissionResponsive } from './CommissionResponsive'
|
|
|
472
482
|
export { default as CompanyResponsive } from './CompanyResponsive'
|
|
473
483
|
export { default as ComponentResponsive } from './ComponentResponsive'
|
|
474
484
|
export { default as ConfluenceResponsive } from './ConfluenceResponsive'
|
|
485
|
+
export { default as ControlResponsive } from './ControlResponsive'
|
|
475
486
|
export { default as CopyResponsive } from './CopyResponsive'
|
|
476
487
|
export { default as CreditCardResponsive } from './CreditCardResponsive'
|
|
488
|
+
export { default as CriticalResponsive } from './CriticalResponsive'
|
|
489
|
+
export { default as CriticalSolidResponsive } from './CriticalSolidResponsive'
|
|
477
490
|
export { default as DialpadResponsive } from './DialpadResponsive'
|
|
478
491
|
export { default as DisputeResponsive } from './DisputeResponsive'
|
|
479
492
|
export { default as DoneResponsive } from './DoneResponsive'
|
|
@@ -621,6 +634,8 @@ export { default as VerificationBadgeResponsive } from './VerificationBadgeRespo
|
|
|
621
634
|
export { default as VideoOffResponsive } from './VideoOffResponsive'
|
|
622
635
|
export { default as VideoOnResponsive } from './VideoOnResponsive'
|
|
623
636
|
export { default as ViewResponsive } from './ViewResponsive'
|
|
637
|
+
export { default as WarningResponsive } from './WarningResponsive'
|
|
638
|
+
export { default as WarningSolidResponsive } from './WarningSolidResponsive'
|
|
624
639
|
export { default as WhatsappResponsive } from './WhatsappResponsive'
|
|
625
640
|
export { default as WhitePaperResponsive } from './WhitePaperResponsive'
|
|
626
641
|
export { default as WorkExperienceResponsive } from './WorkExperienceResponsive'
|
package/src/Icon/story/index.jsx
CHANGED
|
@@ -43,7 +43,7 @@ page
|
|
|
43
43
|
])
|
|
44
44
|
.addTextSection(
|
|
45
45
|
`
|
|
46
|
-
Didn't find a required Icon? Feel free to add it yourself - [how to add icon](https://github.com/toptal/picasso#
|
|
46
|
+
Didn't find a required Icon? Feel free to add it yourself - [how to add icon](https://github.com/toptal/picasso#adding-icons-and-pictograms)
|
|
47
47
|
`
|
|
48
48
|
)
|
|
49
49
|
.addExample(
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
|
|
2
|
+
<path fill="#455065" d="M10 5H0V4h10v1Zm6 0h-3V4h3v1ZM3 13H0v-1h3v1Zm13 0H6v-1h10v1Z M11.5 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM9 4.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0ZM4.5 11a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM2 12.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Z" />
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
2
|
+
<path fill="#455065" d="M17.5 4a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5ZM14 6.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0ZM6.5 16a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5ZM3 18.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0Z M15 7H0V6h15v1Zm9 0h-4V6h4v1ZM4 19H0v-1h4v1Zm20 0H9v-1h15v1Z"/>
|
|
3
|
+
</svg>
|