@codacy/ui-components 0.65.89 → 0.65.91
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const MinorSeverityIcon: () => JSX.Element;
|
|
3
3
|
export declare const MediumSeverityIcon: () => JSX.Element;
|
|
4
|
+
export declare const HighSeverityIcon: () => JSX.Element;
|
|
4
5
|
export declare const CriticalSeverityIcon: () => JSX.Element;
|
package/lib/Icons/Severities.js
CHANGED
|
@@ -4,123 +4,146 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.MinorSeverityIcon = exports.MediumSeverityIcon = exports.CriticalSeverityIcon = void 0;
|
|
7
|
+
exports.MinorSeverityIcon = exports.MediumSeverityIcon = exports.HighSeverityIcon = exports.CriticalSeverityIcon = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
10
|
var MinorSeverityIcon = exports.MinorSeverityIcon = function MinorSeverityIcon() {
|
|
11
11
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
12
|
+
viewBox: "0 0 13 12",
|
|
12
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
className: "codacy-icon",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
ry: "20",
|
|
43
|
-
opacity: "0.5",
|
|
44
|
-
strokeLinecap: "round",
|
|
45
|
-
strokeLinejoin: "round",
|
|
46
|
-
className: "fill-none stroke-width"
|
|
14
|
+
className: "codacy-icon fill-none",
|
|
15
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
16
|
+
"clip-path": "url(#clip0_19098_947)",
|
|
17
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
18
|
+
d: "M1.18665 9.00004C1.18665 8.6988 1.43085 8.45459 1.7321 8.45459H2.93784C3.23909 8.45459 3.4833 8.6988 3.4833 9.00004L3.4833 10.3637C3.4833 10.6649 3.23909 10.9091 2.93784 10.9091H1.7321C1.43085 10.9091 1.18665 10.6649 1.18665 10.3637L1.18665 9.00004Z",
|
|
19
|
+
className: "stroke-none"
|
|
20
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
21
|
+
d: "M4.60339 6.25H5.80847C5.97165 6.25 6.10437 6.38272 6.10437 6.5459V10.3633C6.10437 10.5265 5.97165 10.6592 5.80847 10.6592H4.60339C4.44022 10.6592 4.3075 10.5265 4.3075 10.3633L4.3075 6.5459L4.31335 6.48633C4.34074 6.35148 4.46046 6.25 4.60339 6.25Z",
|
|
22
|
+
strokeWidth: "0.5",
|
|
23
|
+
className: "fill-none"
|
|
24
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
25
|
+
d: "M7.47424 3.79541H8.67932C8.8425 3.79541 8.97522 3.92813 8.97522 4.09131V10.3638C8.97512 10.5269 8.84244 10.6587 8.67932 10.6587H7.47424C7.31113 10.6587 7.17844 10.5269 7.17834 10.3638L7.17834 4.09131C7.17834 3.92813 7.31107 3.79541 7.47424 3.79541Z",
|
|
26
|
+
strokeWidth: "0.5",
|
|
27
|
+
className: "fill-none"
|
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
29
|
+
d: "M10.345 1.34082L11.55 1.34082C11.7132 1.34082 11.8459 1.47354 11.8459 1.63672V10.3633C11.8459 10.5265 11.7132 10.6592 11.55 10.6592H10.345C10.1818 10.6592 10.0491 10.5265 10.0491 10.3633L10.0491 1.63672C10.0491 1.47354 10.1818 1.34082 10.345 1.34082Z",
|
|
30
|
+
strokeWidth: "0.5",
|
|
31
|
+
className: "fill-none"
|
|
32
|
+
})]
|
|
33
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("defs", {
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
35
|
+
id: "clip0_19098_947",
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
37
|
+
width: "12",
|
|
38
|
+
height: "12",
|
|
39
|
+
fill: "white",
|
|
40
|
+
transform: "translate(0.641235)"
|
|
41
|
+
})
|
|
42
|
+
})
|
|
47
43
|
})]
|
|
48
44
|
});
|
|
49
45
|
};
|
|
50
46
|
var MediumSeverityIcon = exports.MediumSeverityIcon = function MediumSeverityIcon() {
|
|
51
47
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
48
|
+
viewBox: "0 0 13 12",
|
|
49
|
+
className: "codacy-icon fill-none",
|
|
52
50
|
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
51
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
52
|
+
"clip-path": "url(#clip0_19098_875)",
|
|
53
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
54
|
+
d: "M1.18665 9.00004C1.18665 8.6988 1.43085 8.45459 1.7321 8.45459H2.93784C3.23909 8.45459 3.4833 8.6988 3.4833 9.00004L3.4833 10.3637C3.4833 10.6649 3.23909 10.9091 2.93784 10.9091H1.7321C1.43085 10.9091 1.18665 10.6649 1.18665 10.3637L1.18665 9.00004Z",
|
|
55
|
+
className: "stroke-none"
|
|
56
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
57
|
+
d: "M4.0575 6.54545C4.0575 6.24421 4.3017 6 4.60295 6H5.80869C6.10994 6 6.35415 6.24421 6.35415 6.54545V10.3636C6.35415 10.6649 6.10994 10.9091 5.80869 10.9091H4.60295C4.3017 10.9091 4.0575 10.6649 4.0575 10.3636L4.0575 6.54545Z",
|
|
58
|
+
className: "stroke-none"
|
|
59
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
60
|
+
d: "M7.47424 3.79541H8.67932C8.8425 3.79541 8.97522 3.92813 8.97522 4.09131V10.3638C8.97512 10.5269 8.84244 10.6587 8.67932 10.6587H7.47424C7.31113 10.6587 7.17844 10.5269 7.17834 10.3638L7.17834 4.09131C7.17834 3.92813 7.31107 3.79541 7.47424 3.79541Z",
|
|
61
|
+
strokeWidth: "0.5",
|
|
62
|
+
className: "fill-none"
|
|
63
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
64
|
+
d: "M10.345 1.34082L11.55 1.34082C11.7132 1.34082 11.8459 1.47354 11.8459 1.63672V10.3633C11.8459 10.5265 11.7132 10.6592 11.55 10.6592H10.345C10.1818 10.6592 10.0491 10.5265 10.0491 10.3633L10.0491 1.63672C10.0491 1.47354 10.1818 1.34082 10.345 1.34082Z",
|
|
65
|
+
strokeWidth: "0.5",
|
|
66
|
+
className: "fill-none"
|
|
67
|
+
})]
|
|
68
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("defs", {
|
|
69
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
70
|
+
id: "clip0_19098_875",
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
72
|
+
width: "12",
|
|
73
|
+
height: "12",
|
|
74
|
+
fill: "white",
|
|
75
|
+
transform: "translate(0.641235)"
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
var HighSeverityIcon = exports.HighSeverityIcon = function HighSeverityIcon() {
|
|
82
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
83
|
+
viewBox: "0 0 13 12",
|
|
84
|
+
fill: "none",
|
|
85
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
+
className: "codacy-icon fill-none",
|
|
87
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
88
|
+
"clip-path": "url(#clip0_19098_4408)",
|
|
89
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
90
|
+
d: "M1.18665 9.00004C1.18665 8.6988 1.43085 8.45459 1.7321 8.45459H2.93784C3.23909 8.45459 3.4833 8.6988 3.4833 9.00004L3.4833 10.3637C3.4833 10.6649 3.23909 10.9091 2.93784 10.9091H1.7321C1.43085 10.9091 1.18665 10.6649 1.18665 10.3637L1.18665 9.00004Z",
|
|
91
|
+
className: "stroke-none"
|
|
92
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
93
|
+
d: "M4.0575 6.54545C4.0575 6.24421 4.3017 6 4.60295 6H5.80869C6.10994 6 6.35415 6.24421 6.35415 6.54545V10.3636C6.35415 10.6649 6.10994 10.9091 5.80869 10.9091H4.60295C4.3017 10.9091 4.0575 10.6649 4.0575 10.3636L4.0575 6.54545Z",
|
|
94
|
+
className: "stroke-none"
|
|
95
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
96
|
+
d: "M6.92834 4.09086C6.92834 3.78962 7.17255 3.54541 7.4738 3.54541H8.67954C8.98079 3.54541 9.225 3.78962 9.225 4.09086V10.3636C9.225 10.6648 8.98079 10.909 8.67954 10.909H7.4738C7.17255 10.909 6.92834 10.6648 6.92834 10.3636L6.92834 4.09086Z",
|
|
97
|
+
className: "stroke-none"
|
|
98
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
99
|
+
d: "M10.345 1.34082L11.55 1.34082C11.7132 1.34082 11.8459 1.47354 11.8459 1.63672V10.3633C11.8459 10.5265 11.7132 10.6592 11.55 10.6592H10.345C10.1818 10.6592 10.0491 10.5265 10.0491 10.3633L10.0491 1.63672C10.0491 1.47354 10.1818 1.34082 10.345 1.34082Z",
|
|
100
|
+
strokeWidth: "0.5",
|
|
101
|
+
className: "fill-none"
|
|
102
|
+
})]
|
|
103
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("defs", {
|
|
104
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
105
|
+
id: "clip0_19098_4408",
|
|
106
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
107
|
+
width: "12",
|
|
108
|
+
height: "12",
|
|
109
|
+
fill: "white",
|
|
110
|
+
transform: "translate(0.641235)"
|
|
111
|
+
})
|
|
112
|
+
})
|
|
86
113
|
})]
|
|
87
114
|
});
|
|
88
115
|
};
|
|
89
116
|
var CriticalSeverityIcon = exports.CriticalSeverityIcon = function CriticalSeverityIcon() {
|
|
90
117
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
118
|
+
viewBox: "0 0 13 12",
|
|
119
|
+
fill: "none",
|
|
91
120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
-
className: "codacy-icon",
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
height: "320",
|
|
119
|
-
rx: "20",
|
|
120
|
-
ry: "20",
|
|
121
|
-
strokeLinecap: "round",
|
|
122
|
-
strokeLinejoin: "round",
|
|
123
|
-
className: "stroke-width"
|
|
121
|
+
className: "codacy-icon fill-none",
|
|
122
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
123
|
+
"clip-path": "url(#clip0_19098_1435)",
|
|
124
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
125
|
+
d: "M1.18665 9.00004C1.18665 8.6988 1.43085 8.45459 1.7321 8.45459H2.93784C3.23909 8.45459 3.4833 8.6988 3.4833 9.00004L3.4833 10.3637C3.4833 10.6649 3.23909 10.9091 2.93784 10.9091H1.7321C1.43085 10.9091 1.18665 10.6649 1.18665 10.3637L1.18665 9.00004Z",
|
|
126
|
+
className: "stroke-none"
|
|
127
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
128
|
+
d: "M4.0575 6.54545C4.0575 6.24421 4.3017 6 4.60295 6H5.80869C6.10994 6 6.35415 6.24421 6.35415 6.54545V10.3636C6.35415 10.6649 6.10994 10.9091 5.80869 10.9091H4.60295C4.3017 10.9091 4.0575 10.6649 4.0575 10.3636L4.0575 6.54545Z",
|
|
129
|
+
className: "stroke-none"
|
|
130
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
131
|
+
d: "M6.92834 4.09086C6.92834 3.78962 7.17255 3.54541 7.4738 3.54541H8.67954C8.98079 3.54541 9.225 3.78962 9.225 4.09086V10.3636C9.225 10.6648 8.98079 10.909 8.67954 10.909H7.4738C7.17255 10.909 6.92834 10.6648 6.92834 10.3636L6.92834 4.09086Z",
|
|
132
|
+
className: "stroke-none"
|
|
133
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
134
|
+
d: "M9.79907 1.63628C9.79907 1.33503 10.0433 1.09082 10.3445 1.09082L11.5503 1.09082C11.8515 1.09082 12.0957 1.33503 12.0957 1.63627V10.3635C12.0957 10.6648 11.8515 10.909 11.5503 10.909H10.3445C10.0433 10.909 9.79907 10.6648 9.79907 10.3635L9.79907 1.63628Z",
|
|
135
|
+
className: "stroke-none"
|
|
136
|
+
})]
|
|
137
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("defs", {
|
|
138
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
139
|
+
id: "clip0_19098_1435",
|
|
140
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
141
|
+
width: "12",
|
|
142
|
+
height: "12",
|
|
143
|
+
fill: "white",
|
|
144
|
+
transform: "translate(0.641235)"
|
|
145
|
+
})
|
|
146
|
+
})
|
|
124
147
|
})]
|
|
125
148
|
});
|
|
126
149
|
};
|
|
@@ -2,7 +2,7 @@ import { ContainerComponentProps } from '../types';
|
|
|
2
2
|
import { FunctionalColor, Size } from '../theme';
|
|
3
3
|
import { BoxProps } from '../Flexbox';
|
|
4
4
|
export declare type TitleSize = 'md' | 'xl';
|
|
5
|
-
export declare type TextColor = 'primary' | 'secondary' | 'tertiary' | 'placeholder' | 'inverted' | 'info' | 'success' | 'warning' | 'danger' | 'attention';
|
|
5
|
+
export declare type TextColor = 'primary' | 'secondary' | 'tertiary' | 'placeholder' | 'inverted' | 'info' | 'success' | 'warning' | 'danger' | 'high' | 'attention';
|
|
6
6
|
export interface TitleProps extends ContainerComponentProps, BoxProps {
|
|
7
7
|
size?: TitleSize;
|
|
8
8
|
color?: TextColor | FunctionalColor;
|