@odigos/ui-kit 0.0.8 → 0.0.10
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/CHANGELOG.md +28 -0
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/data-card/index.d.ts +1 -0
- package/lib/components/data-tab/index.d.ts +2 -2
- package/lib/components/describe-row/index.d.ts +2 -2
- package/lib/components/divider/index.d.ts +2 -2
- package/lib/components/drawer/drawer-header/index.d.ts +1 -1
- package/lib/components/icon-group/index.d.ts +2 -2
- package/lib/components/icon-wrapped/index.d.ts +2 -2
- package/lib/components/interactive-table/index.d.ts +2 -2
- package/lib/components/interactive-table/row.d.ts +2 -2
- package/lib/components/notification-note/index.d.ts +2 -2
- package/lib/components/status/index.d.ts +2 -2
- package/lib/components/styled.d.ts +12 -0
- package/lib/components/warning-modal/index.d.ts +2 -2
- package/lib/components.js +5 -5
- package/lib/constants/strings/index.d.ts +1 -0
- package/lib/constants.js +1 -1
- package/lib/containers/data-flow/nodes/base-node.d.ts +2 -2
- package/lib/containers/data-flow/nodes/scroll-node.d.ts +2 -2
- package/lib/containers/destination-form/test-connection/index.d.ts +2 -2
- package/lib/containers.js +106 -115
- package/lib/functions/get-conditions-booleans/index.d.ts +2 -2
- package/lib/functions/get-containers-icons/index.d.ts +2 -2
- package/lib/functions/get-platform-icon/index.d.ts +1 -1
- package/lib/functions/get-platform-label/index.d.ts +1 -1
- package/lib/functions/get-programming-language-icon/index.d.ts +2 -2
- package/lib/functions/get-status-icon/index.d.ts +2 -2
- package/lib/functions.js +4 -4
- package/lib/hooks.js +2 -2
- package/lib/icons/common/image-error-icon/image-error-icon.stories.d.ts +8 -0
- package/lib/icons/common/image-error-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/overview/connections-icon/connections-icon.stories.d.ts +8 -0
- package/lib/icons/overview/connections-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/programming-languages/c-plus-plus-logo/c-plus-plus-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/c-plus-plus-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/c-sharp-logo/c-sharp-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/c-sharp-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/dotnet-logo/dotnet-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/dotnet-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/elixir-logo/elixir-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/elixir-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/go-logo/go-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/go-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/index.d.ts +17 -0
- package/lib/icons/programming-languages/java-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/java-logo/java-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/kafka-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/kafka-logo/kafka-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/mysql-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/mysql-logo/mysql-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/nginx-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/nginx-logo/nginx-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/nodejs-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/nodejs-logo/nodejs-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/php-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/php-logo/php-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/postgres-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/postgres-logo/postgres-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/python-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/python-logo/python-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/redis-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/redis-logo/redis-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/ruby-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/ruby-logo/ruby-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/rust-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/rust-logo/rust-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/swift-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/swift-logo/swift-logo.stories.d.ts +8 -0
- package/lib/icons.js +10 -3
- package/lib/{index-BulCzWQI.js → index-DB1gmCsH.js} +29 -31
- package/lib/{index-BJxaoI0G.js → index-D_Qn2U89.js} +8 -1
- package/lib/{index-Cu2uHOuh.js → index-DnmWFsTQ.js} +1 -0
- package/lib/{index-CKUgKtl0.js → index-Do8ODRlA.js} +60 -40
- package/lib/{index-CKD2OX24.js → index-eF2JXMVR.js} +11 -7
- package/lib/index-ixs381n-.js +466 -0
- package/lib/types/common/index.d.ts +3 -3
- package/lib/types/connection/index.d.ts +3 -3
- package/lib/types.js +9 -9
- package/lib/{useSourceSelectionFormData-BY6B70Kf.js → useSourceSelectionFormData-CxdOP9FT.js} +4 -4
- package/package.json +10 -10
- package/lib/index-DLKEpJJm.js +0 -53
|
@@ -89,7 +89,7 @@ export declare enum CRD_TYPES {
|
|
|
89
89
|
LATENCY_SAMPLER = "LatencySampler",
|
|
90
90
|
PROBABILISTIC_SAMPLER = "ProbabilisticSampler"
|
|
91
91
|
}
|
|
92
|
-
export declare enum
|
|
92
|
+
export declare enum STATUS_TYPE {
|
|
93
93
|
WARNING = "warning",
|
|
94
94
|
ERROR = "error",
|
|
95
95
|
SUCCESS = "success",
|
|
@@ -101,7 +101,7 @@ export declare enum OTHER_STATUS {
|
|
|
101
101
|
DISABLED = "disabled"
|
|
102
102
|
}
|
|
103
103
|
export interface Condition {
|
|
104
|
-
status:
|
|
104
|
+
status: STATUS_TYPE | OTHER_STATUS;
|
|
105
105
|
type: string;
|
|
106
106
|
reason?: string | null;
|
|
107
107
|
message?: string | null;
|
|
@@ -109,7 +109,7 @@ export interface Condition {
|
|
|
109
109
|
}
|
|
110
110
|
export interface Notification {
|
|
111
111
|
id: string;
|
|
112
|
-
type:
|
|
112
|
+
type: STATUS_TYPE;
|
|
113
113
|
title?: string;
|
|
114
114
|
message?: string;
|
|
115
115
|
crdType?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { STATUS_TYPE, PLATFORM_TYPE } from '../common';
|
|
2
2
|
export interface Connection {
|
|
3
3
|
id: string;
|
|
4
|
+
type?: PLATFORM_TYPE;
|
|
4
5
|
name?: string;
|
|
5
|
-
|
|
6
|
-
connectionStatus: NOTIFICATION_TYPE;
|
|
6
|
+
status: STATUS_TYPE;
|
|
7
7
|
}
|
package/lib/types.js
CHANGED
|
@@ -89,14 +89,14 @@ var CRD_TYPES;
|
|
|
89
89
|
CRD_TYPES["LATENCY_SAMPLER"] = "LatencySampler";
|
|
90
90
|
CRD_TYPES["PROBABILISTIC_SAMPLER"] = "ProbabilisticSampler";
|
|
91
91
|
})(CRD_TYPES || (CRD_TYPES = {}));
|
|
92
|
-
var
|
|
93
|
-
(function (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
})(
|
|
92
|
+
var STATUS_TYPE;
|
|
93
|
+
(function (STATUS_TYPE) {
|
|
94
|
+
STATUS_TYPE["WARNING"] = "warning";
|
|
95
|
+
STATUS_TYPE["ERROR"] = "error";
|
|
96
|
+
STATUS_TYPE["SUCCESS"] = "success";
|
|
97
|
+
STATUS_TYPE["INFO"] = "info";
|
|
98
|
+
STATUS_TYPE["DEFAULT"] = "default";
|
|
99
|
+
})(STATUS_TYPE || (STATUS_TYPE = {}));
|
|
100
100
|
var OTHER_STATUS;
|
|
101
101
|
(function (OTHER_STATUS) {
|
|
102
102
|
OTHER_STATUS["LOADING"] = "loading";
|
|
@@ -163,4 +163,4 @@ var K8S_RESOURCE_KIND;
|
|
|
163
163
|
K8S_RESOURCE_KIND["STATEFUL_SET"] = "StatefulSet";
|
|
164
164
|
})(K8S_RESOURCE_KIND || (K8S_RESOURCE_KIND = {}));
|
|
165
165
|
|
|
166
|
-
export { ACTION_TYPE, ADD_NODE_TYPES, CODE_ATTRIBUTES_KEY_TYPES, CRD_TYPES, CRUD, EDGE_TYPES, ENTITY_TYPES, FIELD_TYPES, INSTRUMENTATION_RULE_TYPE, K8S_RESOURCE_KIND, NODE_TYPES,
|
|
166
|
+
export { ACTION_TYPE, ADD_NODE_TYPES, CODE_ATTRIBUTES_KEY_TYPES, CRD_TYPES, CRUD, EDGE_TYPES, ENTITY_TYPES, FIELD_TYPES, INSTRUMENTATION_RULE_TYPE, K8S_RESOURCE_KIND, NODE_TYPES, OTHER_STATUS, PAYLOAD_COLLECTION_KEY_TYPES, PLATFORM_TYPE, PROGRAMMING_LANGUAGES, SIGNAL_TYPE, STATUS_TYPE, TIER };
|
package/lib/{useSourceSelectionFormData-BY6B70Kf.js → useSourceSelectionFormData-CxdOP9FT.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ACTION_TYPE,
|
|
1
|
+
import { ACTION_TYPE, STATUS_TYPE, ADD_NODE_TYPES, ENTITY_TYPES, FIELD_TYPES } from './types.js';
|
|
2
2
|
import { useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { f as useNotificationStore, e as useModalStore, a as useDrawerStore, i as useSetupStore } from './index-DIcomki-.js';
|
|
4
4
|
import 'styled-components';
|
|
5
5
|
import { i as isEmpty, s as safeJsonParse } from './index-BZS1ijMm.js';
|
|
6
6
|
import './index-CZe2VX28.js';
|
|
7
|
-
import { F as FORM_ALERTS } from './index-
|
|
7
|
+
import { F as FORM_ALERTS } from './index-DnmWFsTQ.js';
|
|
8
8
|
import { b as useGenericForm } from './useTransition-Dfxjcy-C.js';
|
|
9
9
|
import { g as getIdFromSseTarget } from './index-BFct3S32.js';
|
|
10
10
|
|
|
@@ -75,7 +75,7 @@ const useActionFormData = () => {
|
|
|
75
75
|
ok = !Object.values(errors).length;
|
|
76
76
|
if (!ok && params?.withAlert) {
|
|
77
77
|
addNotification({
|
|
78
|
-
type:
|
|
78
|
+
type: STATUS_TYPE.WARNING,
|
|
79
79
|
title: params.alertTitle,
|
|
80
80
|
message: FORM_ALERTS.REQUIRED_FIELDS,
|
|
81
81
|
hideFromHistory: true,
|
|
@@ -308,7 +308,7 @@ const useDestinationFormData = (params) => {
|
|
|
308
308
|
});
|
|
309
309
|
if (!ok && params?.withAlert) {
|
|
310
310
|
addNotification({
|
|
311
|
-
type:
|
|
311
|
+
type: STATUS_TYPE.WARNING,
|
|
312
312
|
title: params.alertTitle,
|
|
313
313
|
message: FORM_ALERTS.REQUIRED_FIELDS,
|
|
314
314
|
hideFromHistory: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odigos/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"react-dom": "^19.0.0",
|
|
75
75
|
"react-error-boundary": "^5.0.0",
|
|
76
76
|
"react-lottie": "^1.2.10",
|
|
77
|
-
"styled-components": "^6.1.
|
|
77
|
+
"styled-components": "^6.1.16",
|
|
78
78
|
"zustand": "^5.0.3"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"react-dom": "^19.0.0",
|
|
86
86
|
"react-error-boundary": "^5.0.0",
|
|
87
87
|
"react-lottie": "^1.2.10",
|
|
88
|
-
"styled-components": "^6.1.
|
|
88
|
+
"styled-components": "^6.1.16",
|
|
89
89
|
"zustand": "^5.0.3"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
97
97
|
"@rollup/plugin-json": "^6.1.0",
|
|
98
98
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
99
|
-
"@storybook/addon-essentials": "^8.6.
|
|
99
|
+
"@storybook/addon-essentials": "^8.6.7",
|
|
100
100
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
101
|
-
"@storybook/react": "^8.6.
|
|
102
|
-
"@storybook/react-webpack5": "^8.6.
|
|
101
|
+
"@storybook/react": "^8.6.7",
|
|
102
|
+
"@storybook/react-webpack5": "^8.6.7",
|
|
103
103
|
"@types/node": "^22.13.10",
|
|
104
|
-
"@types/react": "^19.0.
|
|
104
|
+
"@types/react": "^19.0.11",
|
|
105
105
|
"@types/react-dom": "^19.0.4",
|
|
106
106
|
"@types/react-lottie": "^1.2.10",
|
|
107
107
|
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
"babel-plugin-styled-components": "^2.1.4",
|
|
111
111
|
"eslint": "^9.22.0",
|
|
112
112
|
"eslint-plugin-react": "^7.37.4",
|
|
113
|
-
"eslint-plugin-storybook": "^0.11.
|
|
113
|
+
"eslint-plugin-storybook": "^0.11.6",
|
|
114
114
|
"html-webpack-plugin": "^5.6.3",
|
|
115
115
|
"postcss": "^8.5.3",
|
|
116
|
-
"rollup": "^4.
|
|
116
|
+
"rollup": "^4.36.0",
|
|
117
117
|
"rollup-plugin-postcss": "^4.0.2",
|
|
118
118
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
119
|
-
"storybook": "^8.6.
|
|
119
|
+
"storybook": "^8.6.7",
|
|
120
120
|
"typescript": "^5.8.2"
|
|
121
121
|
}
|
|
122
122
|
}
|
package/lib/index-DLKEpJJm.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Theme from './theme.js';
|
|
3
|
-
|
|
4
|
-
const LogsIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
5
|
-
const theme = Theme.useTheme();
|
|
6
|
-
const fill = f || theme.text.secondary;
|
|
7
|
-
return (React.createElement("svg", { width: size * (16 / 17), height: size, viewBox: '0 0 16 17', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
8
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M2.66699 8.5H6.66699M2.66699 12.5H6.66699M2.66699 4.5L13.3337 4.5M12.4765 12.0146C13.0334 11.61 13.5322 11.1357 13.96 10.6043C14.0138 10.5375 14.0138 10.4441 13.96 10.3773C13.5322 9.84585 13.0334 9.37156 12.4765 8.96696M10.1908 8.96696C9.63389 9.37156 9.13508 9.84585 8.7073 10.3773C8.65356 10.4441 8.65356 10.5375 8.7073 10.6043C9.13508 11.1357 9.63389 11.61 10.1908 12.0146' })));
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const MetricsIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
12
|
-
const theme = Theme.useTheme();
|
|
13
|
-
const fill = f || theme.text.secondary;
|
|
14
|
-
return (React.createElement("svg", { width: size * (16 / 17), height: size, viewBox: '0 0 16 17', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
15
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M13.2389 9.1672C13.2389 12.4305 10.5935 15.0758 7.33025 15.0758V14.3373M13.2389 9.1672H14.0883C14.0883 5.43485 11.0626 2.40918 7.33025 2.40918V4.73571M13.2389 9.1672L7.33025 9.1672M7.33025 14.3373C4.47491 14.3373 2.16016 12.0225 2.16016 9.1672H2.89877M7.33025 14.3373L7.33025 9.1672M2.89877 9.1672C2.89877 6.71975 4.88281 4.73571 7.33025 4.73571M2.89877 9.1672H7.33025M7.33025 4.73571L7.33025 9.1672' })));
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const TracesIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
19
|
-
const theme = Theme.useTheme();
|
|
20
|
-
const fill = f || theme.text.secondary;
|
|
21
|
-
return (React.createElement("svg", { width: size * (16 / 17), height: size, viewBox: '0 0 16 17', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
22
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M10.3337 8.5C10.3337 9.60457 11.2291 10.5 12.3337 10.5C13.4382 10.5 14.3337 9.60457 14.3337 8.5C14.3337 7.39543 13.4382 6.5 12.3337 6.5C11.2291 6.5 10.3337 7.39543 10.3337 8.5ZM10.3337 8.5L8.00032 8.5M8.00032 8.5L8.00032 9.3C8.00032 10.4201 8.00032 10.9802 7.78234 11.408C7.59059 11.7843 7.28463 12.0903 6.90831 12.282C6.60852 12.4348 6.24381 12.4805 5.66698 12.4942M8.00032 8.5L8.00032 7.7C8.00032 6.57989 8.00032 6.01984 7.78234 5.59202C7.59059 5.21569 7.28463 4.90973 6.90831 4.71799C6.60852 4.56524 6.24381 4.51952 5.66698 4.50584M5.66698 12.4942C5.66383 11.3923 4.76961 10.5 3.66699 10.5C2.56242 10.5 1.66699 11.3954 1.66699 12.5C1.66699 13.6046 2.56242 14.5 3.66699 14.5C4.77156 14.5 5.66699 13.6046 5.66699 12.5C5.66699 12.4981 5.66699 12.4961 5.66698 12.4942ZM5.66698 4.50584C5.66383 5.60773 4.76961 6.5 3.66699 6.5C2.56242 6.5 1.66699 5.60457 1.66699 4.5C1.66699 3.39543 2.56242 2.5 3.66699 2.5C4.77156 2.5 5.66699 3.39543 5.66699 4.5C5.66699 4.50195 5.66699 4.5039 5.66698 4.50584Z' })));
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const CheckCircledIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
26
|
-
const theme = Theme.useTheme();
|
|
27
|
-
const fill = f || theme.text.secondary;
|
|
28
|
-
return (React.createElement("svg", { width: size, height: size * (16 / 17), viewBox: '0 0 17 16', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
29
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M6.41707 8.34197L7.97787 9.90111C8.72855 8.58846 9.76744 7.46337 11.0162 6.61065L11.0837 6.56453M14.8504 8.00039C14.8504 11.3693 12.1193 14.1004 8.75039 14.1004C5.38145 14.1004 2.65039 11.3693 2.65039 8.00039C2.65039 4.63145 5.38145 1.90039 8.75039 1.90039C12.1193 1.90039 14.8504 4.63145 14.8504 8.00039Z' })));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const ErrorTriangleIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
33
|
-
const theme = Theme.useTheme();
|
|
34
|
-
const fill = f || theme.text.error;
|
|
35
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
36
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M8 8.66673V6.00006M8 10.9167V10.9175M7.07337 2.18915C7.66595 1.93695 8.33405 1.93695 8.92662 2.18915C10.6942 2.94145 14.8697 9.61453 14.7474 11.3981C14.6994 12.0972 14.3529 12.7408 13.7982 13.1614C12.323 14.2795 3.67698 14.2795 2.20185 13.1614C1.64705 12.7408 1.3006 12.0972 1.25263 11.3981C1.13026 9.61453 5.30575 2.94145 7.07337 2.18915Z' })));
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const InfoIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
40
|
-
const theme = Theme.useTheme();
|
|
41
|
-
const fill = f || theme.text.secondary;
|
|
42
|
-
return (React.createElement("svg", { width: size * (16 / 17), height: size, viewBox: '0 0 16 17', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
43
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M8 8.91498V11.5816M8 6.66498V6.66423M14 8.91504C14 12.2287 11.3137 14.915 8 14.915C4.68629 14.915 2 12.2287 2 8.91504C2 5.60133 4.68629 2.91504 8 2.91504C11.3137 2.91504 14 5.60133 14 8.91504Z' })));
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const WarningTriangleIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
47
|
-
const theme = Theme.useTheme();
|
|
48
|
-
const fill = f || theme.text.warning;
|
|
49
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
50
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M8 8.66673V6.00006M8 10.9167V10.9175M7.07337 2.18915C7.66595 1.93695 8.33405 1.93695 8.92662 2.18915C10.6942 2.94145 14.8697 9.61453 14.7474 11.3981C14.6994 12.0972 14.3529 12.7408 13.7982 13.1614C12.323 14.2795 3.67698 14.2795 2.20185 13.1614C1.64705 12.7408 1.3006 12.0972 1.25263 11.3981C1.13026 9.61453 5.30575 2.94145 7.07337 2.18915Z' })));
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export { CheckCircledIcon as C, ErrorTriangleIcon as E, InfoIcon as I, LogsIcon as L, MetricsIcon as M, TracesIcon as T, WarningTriangleIcon as W };
|