@hiver/connector-admin 0.0.1
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/README.md +50 -0
- package/dist/Typography-CW9ecUn7.js +174 -0
- package/dist/app/connectors/index.d.ts +3 -0
- package/dist/app/connectors/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/agent/index.d.ts +2 -0
- package/dist/app/connectors/pages/connector-view/agent/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/dashboard/__tests__/dashboard.test.d.ts +2 -0
- package/dist/app/connectors/pages/connector-view/dashboard/__tests__/dashboard.test.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/dashboard/index.d.ts +3 -0
- package/dist/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/dashboard/styles.d.ts +24 -0
- package/dist/app/connectors/pages/connector-view/dashboard/styles.d.ts.map +1 -0
- package/dist/app/connectors/pages/connector-view/index.d.ts +3 -0
- package/dist/app/connectors/pages/connector-view/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/connector-config/__tests__/connector-config.test.d.ts +2 -0
- package/dist/app/connectors/pages/settings/connector-config/__tests__/connector-config.test.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/connector-config/index.d.ts +2 -0
- package/dist/app/connectors/pages/settings/connector-config/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/connector-config/style.d.ts +5 -0
- package/dist/app/connectors/pages/settings/connector-config/style.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/index.d.ts +2 -0
- package/dist/app/connectors/pages/settings/index.d.ts.map +1 -0
- package/dist/app/connectors/pages/settings/styles.d.ts +4 -0
- package/dist/app/connectors/pages/settings/styles.d.ts.map +1 -0
- package/dist/app/connectors/provider.d.ts +7 -0
- package/dist/app/connectors/provider.d.ts.map +1 -0
- package/dist/app/connectors/router.d.ts +3 -0
- package/dist/app/connectors/router.d.ts.map +1 -0
- package/dist/app/index.d.ts +2 -0
- package/dist/app/index.d.ts.map +1 -0
- package/dist/components/layouts/__tests__/sidebar.test.d.ts +2 -0
- package/dist/components/layouts/__tests__/sidebar.test.d.ts.map +1 -0
- package/dist/components/layouts/sidebar/index.d.ts +7 -0
- package/dist/components/layouts/sidebar/index.d.ts.map +1 -0
- package/dist/components/layouts/sidebar/styles.d.ts +7 -0
- package/dist/components/layouts/sidebar/styles.d.ts.map +1 -0
- package/dist/components/ui/bread-crumbs/__tests__/bread-crumb.test.d.ts +2 -0
- package/dist/components/ui/bread-crumbs/__tests__/bread-crumb.test.d.ts.map +1 -0
- package/dist/components/ui/bread-crumbs/index.d.ts +3 -0
- package/dist/components/ui/bread-crumbs/index.d.ts.map +1 -0
- package/dist/components/ui/bread-crumbs/styles.d.ts +6 -0
- package/dist/components/ui/bread-crumbs/styles.d.ts.map +1 -0
- package/dist/components/ui/modal/__tests__/modal.test.d.ts +2 -0
- package/dist/components/ui/modal/__tests__/modal.test.d.ts.map +1 -0
- package/dist/components/ui/modal/index.d.ts +10 -0
- package/dist/components/ui/modal/index.d.ts.map +1 -0
- package/dist/components/ui/styled-ui-components.d.ts +6 -0
- package/dist/components/ui/styled-ui-components.d.ts.map +1 -0
- package/dist/components/ui/text-field/index.d.ts +3 -0
- package/dist/components/ui/text-field/index.d.ts.map +1 -0
- package/dist/constants/api.d.ts +12 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/constants/bread-crumbs.d.ts +5 -0
- package/dist/constants/bread-crumbs.d.ts.map +1 -0
- package/dist/constants/modal.d.ts +4 -0
- package/dist/constants/modal.d.ts.map +1 -0
- package/dist/constants/router-paths.d.ts +9 -0
- package/dist/constants/router-paths.d.ts.map +1 -0
- package/dist/constants/sidebar.d.ts +7 -0
- package/dist/constants/sidebar.d.ts.map +1 -0
- package/dist/context/index.d.ts +24 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/main-app-provider/index.d.ts +7 -0
- package/dist/context/main-app-provider/index.d.ts.map +1 -0
- package/dist/features/auth/components/auth.d.ts +2 -0
- package/dist/features/auth/components/auth.d.ts.map +1 -0
- package/dist/features/auth/constants/index.d.ts +2 -0
- package/dist/features/auth/constants/index.d.ts.map +1 -0
- package/dist/features/connector-library/api/index.d.ts +9 -0
- package/dist/features/connector-library/api/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/api-library/index.d.ts +7 -0
- package/dist/features/connector-library/components/api-library/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/api-library/styles.d.ts +4 -0
- package/dist/features/connector-library/components/api-library/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/api-library-skeleton/index.d.ts +2 -0
- package/dist/features/connector-library/components/api-library-skeleton/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/api-library-skeleton/styles.d.ts +4 -0
- package/dist/features/connector-library/components/api-library-skeleton/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/connector-enabled-modal/index.d.ts +9 -0
- package/dist/features/connector-library/components/connector-enabled-modal/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/connector-enabled-modal/styles.d.ts +4 -0
- package/dist/features/connector-library/components/connector-enabled-modal/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts +2 -0
- package/dist/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-list/index.d.ts +3 -0
- package/dist/features/connector-library/components/library-card-list/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-list/styles.d.ts +10 -0
- package/dist/features/connector-library/components/library-card-list/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-skeleton/index.d.ts +2 -0
- package/dist/features/connector-library/components/library-card-skeleton/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-card-skeleton/styles.d.ts +4 -0
- package/dist/features/connector-library/components/library-card-skeleton/styles.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-edit-list/index.d.ts +2 -0
- package/dist/features/connector-library/components/library-edit-list/index.d.ts.map +1 -0
- package/dist/features/connector-library/components/library-edit-list/styles.d.ts +2 -0
- package/dist/features/connector-library/components/library-edit-list/styles.d.ts.map +1 -0
- package/dist/features/connector-library/constants/api-library.d.ts +3 -0
- package/dist/features/connector-library/constants/api-library.d.ts.map +1 -0
- package/dist/features/connector-library/constants/api.d.ts +5 -0
- package/dist/features/connector-library/constants/api.d.ts.map +1 -0
- package/dist/features/connector-library/constants/content-page.d.ts +5 -0
- package/dist/features/connector-library/constants/content-page.d.ts.map +1 -0
- package/dist/features/connector-library/store/initial-state.d.ts +22 -0
- package/dist/features/connector-library/store/initial-state.d.ts.map +1 -0
- package/dist/features/connector-library/store/selectors.d.ts +18 -0
- package/dist/features/connector-library/store/selectors.d.ts.map +1 -0
- package/dist/features/connector-library/store/slice.d.ts +78 -0
- package/dist/features/connector-library/store/slice.d.ts.map +1 -0
- package/dist/features/connector-library/types/connector.d.ts +54 -0
- package/dist/features/connector-library/types/connector.d.ts.map +1 -0
- package/dist/features/connector-library/utils/type-guards.d.ts +7 -0
- package/dist/features/connector-library/utils/type-guards.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/custom-connector-card/__tests__/custom-connector-card.test.d.ts +2 -0
- package/dist/features/request-new-connector/components/custom-connector-card/__tests__/custom-connector-card.test.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/custom-connector-card/index.d.ts +9 -0
- package/dist/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/custom-connector-card/style.d.ts +10 -0
- package/dist/features/request-new-connector/components/custom-connector-card/style.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-card/index.d.ts +7 -0
- package/dist/features/request-new-connector/components/request-new-card/index.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-card/styles.d.ts +22 -0
- package/dist/features/request-new-connector/components/request-new-card/styles.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/__tests__/request-new-modal.test.d.ts +2 -0
- package/dist/features/request-new-connector/components/request-new-modal/__tests__/request-new-modal.test.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/index.d.ts +8 -0
- package/dist/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/request-panel.d.ts +13 -0
- package/dist/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/styles.d.ts +4 -0
- package/dist/features/request-new-connector/components/request-new-modal/styles.d.ts.map +1 -0
- package/dist/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts +7 -0
- package/dist/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts.map +1 -0
- package/dist/features/request-new-connector/constants/index.d.ts +21 -0
- package/dist/features/request-new-connector/constants/index.d.ts.map +1 -0
- package/dist/features/request-new-connector/types/index.d.ts +5 -0
- package/dist/features/request-new-connector/types/index.d.ts.map +1 -0
- package/dist/features/settings/components/auth/auth.d.ts +2 -0
- package/dist/features/settings/components/auth/auth.d.ts.map +1 -0
- package/dist/features/settings/constants/auth.d.ts +2 -0
- package/dist/features/settings/constants/auth.d.ts.map +1 -0
- package/dist/index-BaRBVtu0.js +39 -0
- package/dist/index-C47HiJVp.js +68 -0
- package/dist/index-CJMPXxRz.js +52 -0
- package/dist/index-DTpk0Iib.js +29155 -0
- package/dist/index-Dji7oatk.js +3356 -0
- package/dist/index-DxrxS1sg.js +5 -0
- package/dist/index-IXLZm0uz.js +2954 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +7 -0
- package/dist/index.umd.js +2549 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/mockServiceWorker.js +280 -0
- package/dist/store/counter/initial-state.d.ts +6 -0
- package/dist/store/counter/initial-state.d.ts.map +1 -0
- package/dist/store/counter/selectors.d.ts +4 -0
- package/dist/store/counter/selectors.d.ts.map +1 -0
- package/dist/store/counter/slice.d.ts +23 -0
- package/dist/store/counter/slice.d.ts.map +1 -0
- package/dist/store/hooks.d.ts +9 -0
- package/dist/store/hooks.d.ts.map +1 -0
- package/dist/store/index.d.ts +22 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/testing/mocks/browser.d.ts +2 -0
- package/dist/testing/mocks/browser.d.ts.map +1 -0
- package/dist/testing/mocks/handlers/bifrost-token.d.ts +2 -0
- package/dist/testing/mocks/handlers/bifrost-token.d.ts.map +1 -0
- package/dist/testing/mocks/handlers/connector-template.d.ts +2 -0
- package/dist/testing/mocks/handlers/connector-template.d.ts.map +1 -0
- package/dist/testing/mocks/handlers/update-connector.d.ts +2 -0
- package/dist/testing/mocks/handlers/update-connector.d.ts.map +1 -0
- package/dist/testing/mocks/handlers.d.ts +2 -0
- package/dist/testing/mocks/handlers.d.ts.map +1 -0
- package/dist/testing/mocks/server.d.ts +2 -0
- package/dist/testing/mocks/server.d.ts.map +1 -0
- package/dist/testing/setup-store.d.ts +11 -0
- package/dist/testing/setup-store.d.ts.map +1 -0
- package/dist/testing/setup-test.d.ts +1 -0
- package/dist/testing/setup-test.d.ts.map +1 -0
- package/dist/testing/test-utils.d.ts +69 -0
- package/dist/testing/test-utils.d.ts.map +1 -0
- package/dist/theme.d.ts +3 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/types/api.d.ts +2 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/router.d.ts +4 -0
- package/dist/types/router.d.ts.map +1 -0
- package/dist/types/sidebar.d.ts +8 -0
- package/dist/types/sidebar.d.ts.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { s as e, S as n, K as s, j as r, B as p } from "./index-DTpk0Iib.js";
|
|
2
|
+
import { T as l } from "./Typography-CW9ecUn7.js";
|
|
3
|
+
const g = "Custom Connectors", m = "Salesforce API connector", x = "Settings", i = [g, m, x], h = e(n)`
|
|
4
|
+
margin-bottom: 36px;
|
|
5
|
+
.arrow {
|
|
6
|
+
border: solid ${s.palette.gray.gray3};
|
|
7
|
+
border-width: 0 2px 2px 0;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
padding: 3px;
|
|
10
|
+
transform: rotate(-45deg);
|
|
11
|
+
-webkit-transform: rotate(-45deg);
|
|
12
|
+
height: 5px;
|
|
13
|
+
}
|
|
14
|
+
`, b = e(l)`
|
|
15
|
+
margin-right: 4px;
|
|
16
|
+
&.last {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
`, u = e(n)`
|
|
20
|
+
width: 20px;
|
|
21
|
+
height: 20px;
|
|
22
|
+
margin-right: 4px;
|
|
23
|
+
padding-right: 6px;
|
|
24
|
+
`, C = () => /* @__PURE__ */ r.jsx(h, { direction: "row", alignItems: "center", "data-testid": "breadCrumbs", children: i.map((a, o) => {
|
|
25
|
+
const t = o === i.length - 1, c = t ? s.palette.gray.black : s.palette.gray.gray4, d = t ? "lastCrumb" : `crumb-${o}`;
|
|
26
|
+
return /* @__PURE__ */ r.jsxs(n, { direction: "row", alignItems: "center", children: [
|
|
27
|
+
/* @__PURE__ */ r.jsx(b, { className: t ? "last" : "", variant: "h3", color: c, "data-testid": d, children: a }),
|
|
28
|
+
t ? null : /* @__PURE__ */ r.jsx(u, { direction: "row", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ r.jsx("div", { className: "arrow" }) })
|
|
29
|
+
] }, a.replace(/\s/g, ""));
|
|
30
|
+
}) }), S = "auth component", j = () => /* @__PURE__ */ r.jsx("div", { children: S }), y = e(p)`
|
|
31
|
+
padding: 52px;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
`, A = () => /* @__PURE__ */ r.jsxs(y, { children: [
|
|
34
|
+
/* @__PURE__ */ r.jsx(C, {}),
|
|
35
|
+
/* @__PURE__ */ r.jsx(j, {})
|
|
36
|
+
] });
|
|
37
|
+
export {
|
|
38
|
+
A as Settings
|
|
39
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { s as c, S as n, I as b, K as f, j as t, Z as v, R as w, U as m, L as A } from "./index-DTpk0Iib.js";
|
|
2
|
+
import { C as g, a as r, t as I, b as S, v as y, w as T, x as P, T as k, r as B } from "./index-IXLZm0uz.js";
|
|
3
|
+
import { useRef as E } from "react";
|
|
4
|
+
import { T as p } from "./Typography-CW9ecUn7.js";
|
|
5
|
+
const Z = c(n)`
|
|
6
|
+
margin: 43px 48px 0 52px;
|
|
7
|
+
position: relative;
|
|
8
|
+
`, M = c(b)`
|
|
9
|
+
position: absolute;
|
|
10
|
+
left: -30px;
|
|
11
|
+
img {
|
|
12
|
+
width: 15px;
|
|
13
|
+
height: 15px;
|
|
14
|
+
margin: 3.5px 2.5px;
|
|
15
|
+
}
|
|
16
|
+
`, _ = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.86421%2015.9708C9.20287%2016.3941%209.13423%2017.0118%208.71091%2017.3505C8.28758%2017.6891%207.66987%2017.6205%207.33121%2017.1972L8.86421%2015.9708ZM2.94434%2010.1423L2.17784%2010.7555C1.89104%2010.397%201.89104%209.88757%202.17784%209.52907L2.94434%2010.1423ZM7.33121%203.08735C7.66987%202.66403%208.28758%202.59539%208.71091%202.93405C9.13423%203.27271%209.20287%203.89042%208.86421%204.31375L7.33121%203.08735ZM3.31243%2011.1852C2.77031%2011.1852%202.33084%2010.7457%202.33084%2010.2036C2.33084%209.66149%202.77031%209.22201%203.31243%209.22201L3.31243%2011.1852ZM17.0548%209.22201C17.5969%209.22201%2018.0364%209.66149%2018.0364%2010.2036C18.0364%2010.7457%2017.5969%2011.1852%2017.0548%2011.1852V9.22201ZM7.33121%2017.1972L2.17784%2010.7555L3.71083%209.52907L8.86421%2015.9708L7.33121%2017.1972ZM2.17784%209.52907L7.33121%203.08735L8.86421%204.31375L3.71083%2010.7555L2.17784%209.52907ZM3.31243%209.22201L17.0548%209.22201V11.1852L3.31243%2011.1852L3.31243%209.22201Z'%20fill='%236F7C90'/%3e%3c/svg%3e", R = c(n)`
|
|
17
|
+
margin-left: 32px;
|
|
18
|
+
`, N = "APIs in {{connector}} connector", D = "Following are the list of APIs that you will find in this connector", W = c(n)`
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 72px;
|
|
21
|
+
gap: 12px;
|
|
22
|
+
padding: 16px;
|
|
23
|
+
border: 1px solid ${f.palette.gray.gray6};
|
|
24
|
+
border-radius: 8px;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
`, O = () => /* @__PURE__ */ t.jsx(n, { gap: "12px", children: Array(3).fill(0).map((e, s) => /* @__PURE__ */ t.jsxs(W, { children: [
|
|
27
|
+
/* @__PURE__ */ t.jsx(g, { variant: "rounded", width: "40%", height: "10px", animation: "wave" }),
|
|
28
|
+
/* @__PURE__ */ t.jsx(g, { variant: "rounded", width: "80%", height: "10px", animation: "wave" })
|
|
29
|
+
] }, s)) }), U = ({ isConfigSettingsPage: e, currentConnector: s }) => {
|
|
30
|
+
var h;
|
|
31
|
+
const { pathname: l } = v(), i = r(I), L = l === m.CARD_SETTINGS, a = r(S), o = E(), x = r(y), u = r(T);
|
|
32
|
+
if (!e)
|
|
33
|
+
return null;
|
|
34
|
+
e && s && (o.current = L && (a != null && a[s]) ? a == null ? void 0 : a[s] : i == null ? void 0 : i[s]);
|
|
35
|
+
const C = (x == null ? void 0 : x.apiList) ?? [], j = N.replace("{{connector}}", ((h = o == null ? void 0 : o.current) == null ? void 0 : h.name) ?? "");
|
|
36
|
+
return /* @__PURE__ */ t.jsxs(R, { children: [
|
|
37
|
+
/* @__PURE__ */ t.jsx(p, { variant: "h2", children: j }),
|
|
38
|
+
/* @__PURE__ */ t.jsx(p, { variant: "body1", marginBottom: "20px", children: D }),
|
|
39
|
+
u === w.LOADING ? /* @__PURE__ */ t.jsx(O, {}) : /* @__PURE__ */ t.jsx(n, { gap: "12px", children: C.map((d) => /* @__PURE__ */ t.jsxs(
|
|
40
|
+
n,
|
|
41
|
+
{
|
|
42
|
+
width: "100%",
|
|
43
|
+
height: "72px",
|
|
44
|
+
border: "1px solid #E0E0E0",
|
|
45
|
+
borderRadius: "5px",
|
|
46
|
+
padding: "12px",
|
|
47
|
+
gap: "10px",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ t.jsx(p, { variant: "body1_medium", children: d.name }),
|
|
50
|
+
/* @__PURE__ */ t.jsx(p, { variant: "body2", children: d.description })
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
d.keyName
|
|
54
|
+
)) })
|
|
55
|
+
] });
|
|
56
|
+
}, H = () => {
|
|
57
|
+
const e = A(), s = r(P), l = (i) => {
|
|
58
|
+
i == null || i.stopPropagation(), e(m.BASEPATH);
|
|
59
|
+
};
|
|
60
|
+
return /* @__PURE__ */ t.jsxs(Z, { children: [
|
|
61
|
+
/* @__PURE__ */ t.jsx(k, { title: "Back", placement: "bottom", children: /* @__PURE__ */ t.jsx(M, { onClick: l, children: /* @__PURE__ */ t.jsx("img", { src: _ }) }) }),
|
|
62
|
+
/* @__PURE__ */ t.jsx(B, { isConfigSettingsPage: !0, currentConnector: s }),
|
|
63
|
+
/* @__PURE__ */ t.jsx(U, { isConfigSettingsPage: !0, currentConnector: s })
|
|
64
|
+
] });
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
H as ConnectorConfig
|
|
68
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { s as e, B as r, M as d, j as t, C as c, N as h, S as l, a as g, O as m } from "./index-DTpk0Iib.js";
|
|
2
|
+
import { useContext as b } from "react";
|
|
3
|
+
import { T as u } from "./Typography-CW9ecUn7.js";
|
|
4
|
+
const j = e(r)`
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
padding: 35px 0 35px 35px;
|
|
7
|
+
`, f = e(r)`
|
|
8
|
+
padding-top: 17px;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
width: 178px;
|
|
11
|
+
border-right: 1px solid rgba(214, 221, 232, 1);
|
|
12
|
+
height: 100%;
|
|
13
|
+
`, C = e(u)`
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 24px;
|
|
16
|
+
`, O = e(r)`
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 8px;
|
|
20
|
+
margin-top: 29px;
|
|
21
|
+
& a {
|
|
22
|
+
display: block;
|
|
23
|
+
height: 32px;
|
|
24
|
+
width: 162px;
|
|
25
|
+
padding: 4px 12px;
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
color: #6f7c90;
|
|
28
|
+
font-size: 13px;
|
|
29
|
+
line-height: 24px;
|
|
30
|
+
&.active {
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
background-color: rgba(246, 248, 252, 1);
|
|
33
|
+
border-radius: 4px;
|
|
34
|
+
color: #343c45;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`, S = ({ sidebarOptions: s = [] }) => {
|
|
38
|
+
const { currentSideBar: n } = b(d), a = () => /* @__PURE__ */ t.jsx(O, { children: s.map(({ id: o, value: i, route: p }) => {
|
|
39
|
+
const x = n === i;
|
|
40
|
+
return /* @__PURE__ */ t.jsx(h, { to: p, "data-testid": o, className: x ? "active" : "", children: i }, o);
|
|
41
|
+
}) });
|
|
42
|
+
return /* @__PURE__ */ t.jsx(j, { "data-testid": "sideBarParent", children: /* @__PURE__ */ t.jsxs(f, { children: [
|
|
43
|
+
/* @__PURE__ */ t.jsx(C, { variant: "h3", "data-testid": "custom-connector-heading", children: c }),
|
|
44
|
+
a()
|
|
45
|
+
] }) });
|
|
46
|
+
}, T = () => /* @__PURE__ */ t.jsxs(l, { direction: "row", alignItems: "stretch", sx: { minHeight: "100vh" }, children: [
|
|
47
|
+
/* @__PURE__ */ t.jsx(S, { sidebarOptions: g }),
|
|
48
|
+
/* @__PURE__ */ t.jsx(m, {})
|
|
49
|
+
] });
|
|
50
|
+
export {
|
|
51
|
+
T as ConnectorView
|
|
52
|
+
};
|