@code0-tech/pictor 0.0.0-mvp.11 → 0.0.0-mvp.12
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/assets/components/alert/Alert.style.css +1 -0
- package/dist/assets/components/toast/Toast.style.css +1 -0
- package/dist/components/alert/Alert.d.ts +7 -0
- package/dist/components/alert/Alert.js +38 -0
- package/dist/components/d-user/DUser.session.hook.d.ts +1 -1
- package/dist/components/d-user/DUser.session.hook.js +4 -4
- package/dist/components/toast/Toast.d.ts +12 -0
- package/dist/components/toast/Toast.js +70 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +233 -228
- package/package.json +16 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.alert{padding:1rem;font-size:.8rem;position:relative;display:flex;align-items:center;gap:.35rem}.alert{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;line-height:1.5;border-radius:1rem}.alert>svg{min-width:1rem;min-height:1rem}.alert--primary{border:none;background:#030014;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.alert--secondary{border:none;background:#1c1a2c;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.alert--success{border:none;background:#071314;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.alert--warning{border:none;background:#1c1313;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.alert--error{border:none;background:#180016;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.alert--info{border:none;background:#0e1a24;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.toast{padding:1rem}.toast{border-radius:1rem;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;line-height:1.5}.toast__header{align-items:center;justify-content:space-between}.toast__content{margin:.35rem 0;box-sizing:border-box}.toast__header-wrapper{align-items:center;gap:.35rem}.toast__header-wrapper>svg{min-width:1rem;min-height:1rem}.toast__dismissible{cursor:pointer;display:flex;align-items:center;justify-content:center}.toast__dismissible{border-radius:1rem}.toast__dismissible svg{min-width:1rem;min-height:1rem}.toast--primary{border:none;background:#030014;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--secondary{border:none;background:#1c1a2c;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--success{border:none;background:#071314;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--warning{border:none;background:#1c1313;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--error{border:none;background:#180016;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}.toast--info{border:none;background:#0e1a24;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:inset 0 0 0 1px #ffffff1a}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Code0Component, Color } from '../../utils';
|
|
3
|
+
export interface AlertProps extends Code0Component<HTMLDivElement> {
|
|
4
|
+
color?: Color;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Alert: React.FC<AlertProps>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs as C, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as z } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import "../../utils/contextStore.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { mergeCode0Props as I } from "../../utils/utils.js";
|
|
6
|
+
import { IconCircleX as h, IconAlertCircle as x, IconCircleCheck as y, IconInfoCircle as u, IconCircleDot as a } from "@tabler/icons-react";
|
|
7
|
+
import '../../assets/components/alert/Alert.style.css';/* empty css */
|
|
8
|
+
const k = (n) => {
|
|
9
|
+
const e = z.c(10);
|
|
10
|
+
let r, i, c, o;
|
|
11
|
+
if (e[0] !== n) {
|
|
12
|
+
const {
|
|
13
|
+
color: f,
|
|
14
|
+
children: d,
|
|
15
|
+
...p
|
|
16
|
+
} = n;
|
|
17
|
+
r = d, i = f === void 0 ? "secondary" : f;
|
|
18
|
+
let s;
|
|
19
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
20
|
+
primary: /* @__PURE__ */ t(a, { size: 16 }),
|
|
21
|
+
secondary: /* @__PURE__ */ t(a, { size: 16 }),
|
|
22
|
+
info: /* @__PURE__ */ t(u, { size: 16 }),
|
|
23
|
+
success: /* @__PURE__ */ t(y, { size: 16 }),
|
|
24
|
+
warning: /* @__PURE__ */ t(x, { size: 16 }),
|
|
25
|
+
error: /* @__PURE__ */ t(h, { size: 16 })
|
|
26
|
+
}, e[5] = s) : s = e[5], c = s, o = I(`alert alert--${i}`, p), e[0] = n, e[1] = r, e[2] = i, e[3] = c, e[4] = o;
|
|
27
|
+
} else
|
|
28
|
+
r = e[1], i = e[2], c = e[3], o = e[4];
|
|
29
|
+
const m = c[i];
|
|
30
|
+
let l;
|
|
31
|
+
return e[6] !== r || e[7] !== o || e[8] !== m ? (l = /* @__PURE__ */ C("div", { ...o, children: [
|
|
32
|
+
m,
|
|
33
|
+
r
|
|
34
|
+
] }), e[6] = r, e[7] = o, e[8] = m, e[9] = l) : l = e[9], l;
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
k as Alert
|
|
38
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UserSession } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
-
export declare const useUserSession: () => UserSession | null;
|
|
2
|
+
export declare const useUserSession: () => UserSession | null | undefined;
|
|
3
3
|
export declare const setUserSession: (userSession: UserSession) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c } from "../../_virtual/compiler-runtime.js";
|
|
2
|
-
import
|
|
2
|
+
import i from "react";
|
|
3
3
|
const a = () => {
|
|
4
|
-
const e = c.c(2), [n,
|
|
4
|
+
const e = c.c(2), [n, r] = i.useState(void 0);
|
|
5
5
|
let s, o;
|
|
6
6
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = () => {
|
|
7
7
|
const t = JSON.parse(localStorage.getItem("ide_code-zero_session"));
|
|
8
|
-
t && t.token
|
|
9
|
-
}, o = [], e[0] = s, e[1] = o) : (s = e[0], o = e[1]),
|
|
8
|
+
t && t.token ? r(t) : r(null);
|
|
9
|
+
}, o = [], e[0] = s, e[1] = o) : (s = e[0], o = e[1]), i.useEffect(s, o), n;
|
|
10
10
|
}, S = (e) => {
|
|
11
11
|
localStorage.setItem("ide_code-zero_session", JSON.stringify(e));
|
|
12
12
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Code0Component, Color } from '../../utils';
|
|
3
|
+
export interface ToastProps extends Omit<Code0Component<HTMLDivElement>, "title" | "id"> {
|
|
4
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
5
|
+
id: string | number;
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
color?: Color;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
onClose?: (event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function toast(toast: Omit<ToastProps, 'id'>): string | number;
|
|
12
|
+
export declare function Toast(props: ToastProps): React.JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { c as x } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { toast as y } from "sonner";
|
|
4
|
+
import '../../assets/components/toast/Toast.style.css';/* empty css */
|
|
5
|
+
import "../../utils/contextStore.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { mergeCode0Props as $ } from "../../utils/utils.js";
|
|
8
|
+
import { IconX as g, IconCircleX as T, IconAlertCircle as j, IconCircleCheck as k, IconInfoCircle as w, IconCircleDot as z } from "@tabler/icons-react";
|
|
9
|
+
import { Text as X } from "../text/Text.js";
|
|
10
|
+
import { Flex as I } from "../flex/Flex.js";
|
|
11
|
+
function L(s) {
|
|
12
|
+
return y.custom((e) => /* @__PURE__ */ i(A, { id: e, ...s, children: s.children }));
|
|
13
|
+
}
|
|
14
|
+
function A(s) {
|
|
15
|
+
const e = x.c(25);
|
|
16
|
+
let o, t, r, l, c;
|
|
17
|
+
if (e[0] !== s) {
|
|
18
|
+
const {
|
|
19
|
+
dismissible: u,
|
|
20
|
+
color: C,
|
|
21
|
+
title: b,
|
|
22
|
+
onClose: E,
|
|
23
|
+
children: v,
|
|
24
|
+
...N
|
|
25
|
+
} = s;
|
|
26
|
+
c = b, o = v, r = u === void 0 ? !1 : u, t = C === void 0 ? "secondary" : C, l = $(`toast toast--${t}`, N), e[0] = s, e[1] = o, e[2] = t, e[3] = r, e[4] = l, e[5] = c;
|
|
27
|
+
} else
|
|
28
|
+
o = e[1], t = e[2], r = e[3], l = e[4], c = e[5];
|
|
29
|
+
let n;
|
|
30
|
+
e[6] !== t ? (n = t && /* @__PURE__ */ i(D, { color: t }), e[6] = t, e[7] = n) : n = e[7];
|
|
31
|
+
let m;
|
|
32
|
+
e[8] !== c ? (m = /* @__PURE__ */ i(X, { size: "md", hierarchy: "primary", children: c }), e[8] = c, e[9] = m) : m = e[9];
|
|
33
|
+
let a;
|
|
34
|
+
e[10] !== n || e[11] !== m ? (a = /* @__PURE__ */ p(I, { align: "center", className: "toast__header-wrapper", children: [
|
|
35
|
+
n,
|
|
36
|
+
m
|
|
37
|
+
] }), e[10] = n, e[11] = m, e[12] = a) : a = e[12];
|
|
38
|
+
let d;
|
|
39
|
+
e[13] !== r || e[14] !== s.id ? (d = r && /* @__PURE__ */ i("span", { className: "toast__dismissible", onClick: () => y.dismiss(s.id), children: /* @__PURE__ */ i(g, { size: 16 }) }), e[13] = r, e[14] = s.id, e[15] = d) : d = e[15];
|
|
40
|
+
let f;
|
|
41
|
+
e[16] !== a || e[17] !== d ? (f = /* @__PURE__ */ p(I, { className: "toast__header", children: [
|
|
42
|
+
a,
|
|
43
|
+
d
|
|
44
|
+
] }), e[16] = a, e[17] = d, e[18] = f) : f = e[18];
|
|
45
|
+
let h;
|
|
46
|
+
e[19] !== o ? (h = o && /* @__PURE__ */ i("div", { className: "toast__content", children: o }), e[19] = o, e[20] = h) : h = e[20];
|
|
47
|
+
let _;
|
|
48
|
+
return e[21] !== l || e[22] !== f || e[23] !== h ? (_ = /* @__PURE__ */ p("div", { ...l, children: [
|
|
49
|
+
f,
|
|
50
|
+
h
|
|
51
|
+
] }), e[21] = l, e[22] = f, e[23] = h, e[24] = _) : _ = e[24], _;
|
|
52
|
+
}
|
|
53
|
+
const D = (s) => {
|
|
54
|
+
const e = x.c(1), {
|
|
55
|
+
color: o
|
|
56
|
+
} = s;
|
|
57
|
+
let t;
|
|
58
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = {
|
|
59
|
+
primary: /* @__PURE__ */ i(z, { size: 16 }),
|
|
60
|
+
secondary: /* @__PURE__ */ i(z, { size: 16 }),
|
|
61
|
+
info: /* @__PURE__ */ i(w, { size: 16 }),
|
|
62
|
+
success: /* @__PURE__ */ i(k, { size: 16 }),
|
|
63
|
+
warning: /* @__PURE__ */ i(j, { size: 16 }),
|
|
64
|
+
error: /* @__PURE__ */ i(T, { size: 16 })
|
|
65
|
+
}, e[0] = t) : t = e[0], t[o] ?? null;
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
A as Toast,
|
|
69
|
+
L as toast
|
|
70
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './components/alert/Alert';
|
|
1
2
|
export * from './components/avatar/Avatar';
|
|
2
3
|
export * from './components/badge/Badge';
|
|
3
4
|
export * from './components/breadcrumb/Breadcrumb';
|
|
@@ -26,5 +27,6 @@ export * from './components/segmented-control/SegmentedControl';
|
|
|
26
27
|
export * from './components/spacing/Spacing';
|
|
27
28
|
export * from './components/tab/Tab';
|
|
28
29
|
export * from './components/text/Text';
|
|
30
|
+
export * from './components/toast/Toast';
|
|
29
31
|
export * from './components/tooltip/Tooltip';
|
|
30
32
|
export * from './utils/index';
|
package/dist/index.js
CHANGED
|
@@ -1,234 +1,239 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
1
|
+
import { Alert as m } from "./components/alert/Alert.js";
|
|
2
|
+
import { Avatar as n } from "./components/avatar/Avatar.js";
|
|
3
|
+
import { Badge as l } from "./components/badge/Badge.js";
|
|
4
|
+
import { Breadcrumb as c } from "./components/breadcrumb/Breadcrumb.js";
|
|
5
|
+
import { Button as s } from "./components/button/Button.js";
|
|
6
|
+
import { ButtonGroup as g } from "./components/button-group/ButtonGroup.js";
|
|
7
|
+
import { Card as w } from "./components/card/Card.js";
|
|
8
|
+
import { Col as d } from "./components/col/Col.js";
|
|
9
|
+
import { Command as C, CommandDialog as R, CommandEmpty as T, CommandGroup as I, CommandInput as b, CommandItem as V, CommandList as M, CommandSeparator as P, CommandShortcut as N } from "./components/command/Command.js";
|
|
10
|
+
import { Container as y } from "./components/container/Container.js";
|
|
11
|
+
import { FlowSettingView as G, FlowView as O, NodeFunctionView as E, NodeParameterView as h } from "./components/d-flow/DFlow.view.js";
|
|
12
|
+
import { DFlowReactiveService as B } from "./components/d-flow/DFlow.service.js";
|
|
13
|
+
import { FLOW_EDGE_RAINBOW as j, useFlowEdges as H } from "./components/d-flow/DFlow.edges.hook.js";
|
|
14
|
+
import { useFlowNodes as _ } from "./components/d-flow/DFlow.nodes.hook.js";
|
|
15
|
+
import { DFlow as K } from "./components/d-flow/DFlow.js";
|
|
16
|
+
import { DFlowControl as q } from "./components/d-flow/control/DFlowControl.js";
|
|
17
|
+
import { DFlowDataTypeReactiveService as X } from "./components/d-flow/data-type/DFlowDataType.service.js";
|
|
18
|
+
import { DataTypeView as Z } from "./components/d-flow/data-type/DFlowDataType.view.js";
|
|
19
|
+
import { DFlowFolder as ee, DFlowFolderGroup as oe, DFlowFolderItem as re } from "./components/d-flow/folder/DFlowFolder.js";
|
|
20
|
+
import { DFlowFunctionReactiveService as ie } from "./components/d-flow/function/DFlowFunction.service.js";
|
|
21
|
+
import { FunctionDefinitionView as me, ParameterDefinitionView as ae } from "./components/d-flow/function/DFlowFunction.view.js";
|
|
22
|
+
import { DFlowMiniMap as xe } from "./components/d-flow/minimap/DFlowMiniMap.js";
|
|
23
|
+
import { DFlowReactiveSuggestionService as fe } from "./components/d-flow/suggestion/DFlowSuggestion.service.js";
|
|
24
|
+
import { DFlowSuggestion as ue, DFlowSuggestionType as se } from "./components/d-flow/suggestion/DFlowSuggestion.view.js";
|
|
25
|
+
import { DFlowTypeReactiveService as ge } from "./components/d-flow/type/DFlowType.service.js";
|
|
26
|
+
import { FlowTypeView as we } from "./components/d-flow/type/DFlowType.view.js";
|
|
27
|
+
import { useDFlowValidations as de } from "./components/d-flow/validation/DFlowValidation.hook.js";
|
|
28
|
+
import { DFlowValidation as Ce } from "./components/d-flow/validation/DFlowValidation.js";
|
|
29
|
+
import { DFullScreen as Te } from "./components/d-fullscreen/DFullScreen.js";
|
|
30
|
+
import { DLayout as be } from "./components/d-layout/DLayout.js";
|
|
31
|
+
import { DNamespaceLicenseReactiveService as Me } from "./components/d-namespace/license/DNamespaceLicense.service.js";
|
|
32
|
+
import { DNamespaceLicenseView as Ne } from "./components/d-namespace/license/DNamespaceLicense.view.js";
|
|
33
|
+
import { DNamespaceMemberReactiveService as ye } from "./components/d-namespace/member/DNamespaceMember.service.js";
|
|
34
|
+
import { DNamespaceMemberView as Ge } from "./components/d-namespace/member/DNamespaceMember.view.js";
|
|
35
|
+
import { DNamespaceProjectReactiveService as Ee } from "./components/d-namespace/project/DNamespaceProject.service.js";
|
|
36
|
+
import { DNamespaceProjectView as ze } from "./components/d-namespace/project/DNamespaceProject.view.js";
|
|
36
37
|
import "react/jsx-runtime";
|
|
37
38
|
import "react";
|
|
38
|
-
import { Text as
|
|
39
|
+
import { Text as Ue } from "./components/text/Text.js";
|
|
39
40
|
import "@tabler/icons-react";
|
|
40
|
-
import { ContextStore as
|
|
41
|
-
import { Flex as
|
|
41
|
+
import { ContextStore as He, ContextStoreProvider as We, useService as _e, useStore as ke } from "./utils/contextStore.js";
|
|
42
|
+
import { Flex as Qe } from "./components/flex/Flex.js";
|
|
42
43
|
import "./_virtual/compiler-runtime.js";
|
|
43
|
-
import { getChild as
|
|
44
|
-
import { DNamespaceReactiveService as
|
|
45
|
-
import { DRuntimeReactiveService as
|
|
46
|
-
import { Menu as
|
|
47
|
-
import { DNamespaceRoleReactiveService as
|
|
48
|
-
import { DNamespaceRoleView as
|
|
49
|
-
import { DNamespaceView as
|
|
50
|
-
import { DOrganizationReactiveService as
|
|
51
|
-
import { DOrganizationView as
|
|
52
|
-
import { Spacing as
|
|
53
|
-
import { DResizableHandle as
|
|
54
|
-
import { DRuntimeView as
|
|
55
|
-
import { DUserReactiveService as
|
|
56
|
-
import { DUserView as
|
|
57
|
-
import { setUserSession as
|
|
58
|
-
import { Dialog as
|
|
59
|
-
import { CheckboxInput as
|
|
60
|
-
import { EmailInput as
|
|
61
|
-
import { Input as
|
|
62
|
-
import { InputDescription as
|
|
63
|
-
import { InputLabel as
|
|
64
|
-
import { InputMessage as
|
|
65
|
-
import { InputSuggestionMenuContent as
|
|
66
|
-
import { NumberInput as
|
|
67
|
-
import { PasswordInput as
|
|
68
|
-
import { PinInput as
|
|
69
|
-
import { RadioGroup as
|
|
70
|
-
import { RadioInput as
|
|
71
|
-
import { SwitchInput as
|
|
72
|
-
import { TextInput as
|
|
73
|
-
import { useForm as
|
|
74
|
-
import { Quote as
|
|
75
|
-
import { Row as
|
|
76
|
-
import { ScrollArea as
|
|
77
|
-
import { SegmentedControl as
|
|
78
|
-
import { Tab as
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
44
|
+
import { getChild as Je, getContent as Xe, getPositionAroundTarget as Ye, getPositioning as Ze, getWindowPositioning as $e, mergeCode0Props as eo, parseUnit as oo } from "./utils/utils.js";
|
|
45
|
+
import { DNamespaceReactiveService as to } from "./components/d-namespace/DNamespace.service.js";
|
|
46
|
+
import { DRuntimeReactiveService as po } from "./components/d-runtime/DRuntime.service.js";
|
|
47
|
+
import { Menu as ao, MenuArrow as no, MenuContent as xo, MenuGroup as lo, MenuItem as fo, MenuLabel as co, MenuPortal as uo, MenuSeparator as so, MenuSub as Do, MenuSubContent as go, MenuSubTrigger as So, MenuTrigger as wo } from "./components/menu/Menu.js";
|
|
48
|
+
import { DNamespaceRoleReactiveService as Fo } from "./components/d-namespace/role/DNamespaceRole.service.js";
|
|
49
|
+
import { DNamespaceRoleView as Ro } from "./components/d-namespace/role/DNamespaceRole.view.js";
|
|
50
|
+
import { DNamespaceView as Io } from "./components/d-namespace/DNamespace.view.js";
|
|
51
|
+
import { DOrganizationReactiveService as Vo } from "./components/d-organization/DOrganization.service.js";
|
|
52
|
+
import { DOrganizationView as Po } from "./components/d-organization/DOrganization.view.js";
|
|
53
|
+
import { Spacing as Ao } from "./components/spacing/Spacing.js";
|
|
54
|
+
import { DResizableHandle as Lo, DResizablePanel as Go, DResizablePanelGroup as Oo } from "./components/d-resizable/DResizable.js";
|
|
55
|
+
import { DRuntimeView as ho } from "./components/d-runtime/DRuntime.view.js";
|
|
56
|
+
import { DUserReactiveService as Bo } from "./components/d-user/DUser.service.js";
|
|
57
|
+
import { DUserView as jo } from "./components/d-user/DUser.view.js";
|
|
58
|
+
import { setUserSession as Wo, useUserSession as _o } from "./components/d-user/DUser.session.hook.js";
|
|
59
|
+
import { Dialog as Ko, DialogClose as Qo, DialogContent as qo, DialogDescription as Jo, DialogFooter as Xo, DialogHeader as Yo, DialogOverlay as Zo, DialogPortal as $o, DialogTitle as er, DialogTrigger as or } from "./components/dialog/Dialog.js";
|
|
60
|
+
import { CheckboxInput as tr } from "./components/form/CheckboxInput.js";
|
|
61
|
+
import { EmailInput as pr, emailValidation as mr } from "./components/form/EmailInput.js";
|
|
62
|
+
import { Input as nr, setElementKey as xr } from "./components/form/Input.js";
|
|
63
|
+
import { InputDescription as fr } from "./components/form/InputDescription.js";
|
|
64
|
+
import { InputLabel as ur } from "./components/form/InputLabel.js";
|
|
65
|
+
import { InputMessage as Dr } from "./components/form/InputMessage.js";
|
|
66
|
+
import { InputSuggestionMenuContent as Sr, InputSuggestionMenuContentItems as wr } from "./components/form/InputSuggestion.js";
|
|
67
|
+
import { NumberInput as dr } from "./components/form/NumberInput.js";
|
|
68
|
+
import { PasswordInput as Cr } from "./components/form/PasswordInput.js";
|
|
69
|
+
import { PinInput as Tr, PinInputField as Ir, PinInputHiddenField as br } from "./components/form/PinInput.js";
|
|
70
|
+
import { RadioGroup as Mr } from "./components/form/RadioGroup.js";
|
|
71
|
+
import { RadioInput as Nr } from "./components/form/RadioInput.js";
|
|
72
|
+
import { SwitchInput as yr } from "./components/form/SwitchInput.js";
|
|
73
|
+
import { TextInput as Gr } from "./components/form/TextInput.js";
|
|
74
|
+
import { useForm as Er } from "./components/form/useForm.js";
|
|
75
|
+
import { Quote as zr } from "./components/quote/Quote.js";
|
|
76
|
+
import { Row as Ur } from "./components/row/Row.js";
|
|
77
|
+
import { ScrollArea as Hr, ScrollAreaCorner as Wr, ScrollAreaScrollbar as _r, ScrollAreaThumb as kr, ScrollAreaViewport as Kr } from "./components/scroll-area/ScrollArea.js";
|
|
78
|
+
import { SegmentedControl as qr, SegmentedControlItem as Jr } from "./components/segmented-control/SegmentedControl.js";
|
|
79
|
+
import { Tab as Yr, TabContent as Zr, TabList as $r, TabTrigger as et } from "./components/tab/Tab.js";
|
|
80
|
+
import { Toast as rt, toast as tt } from "./components/toast/Toast.js";
|
|
81
|
+
import { Tooltip as pt, TooltipArrow as mt, TooltipContent as at, TooltipPortal as nt, TooltipTrigger as xt } from "./components/tooltip/Tooltip.js";
|
|
82
|
+
import { InspectionSeverity as ft } from "./utils/inspection.js";
|
|
83
|
+
import { NonReactiveArrayService as ut, createNonReactiveArrayService as st } from "./utils/nonReactiveArrayService.js";
|
|
84
|
+
import { ObjectService as gt, createObjectService as St } from "./utils/objectStore.js";
|
|
85
|
+
import { ReactiveArrayService as vt, useReactiveArrayService as dt } from "./utils/reactiveArrayService.js";
|
|
86
|
+
import { Colors as Ct } from "./utils/types.js";
|
|
85
87
|
export {
|
|
86
|
-
m as
|
|
87
|
-
n as
|
|
88
|
-
l as
|
|
89
|
-
c as
|
|
90
|
-
s as
|
|
91
|
-
g as
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
I as
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
N as
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
K as
|
|
109
|
-
q as
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
re as
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
fe as
|
|
118
|
-
|
|
119
|
-
se as
|
|
120
|
-
|
|
121
|
-
Ce as
|
|
122
|
-
|
|
123
|
-
be as
|
|
124
|
-
Me as
|
|
125
|
-
Ne as
|
|
126
|
-
|
|
127
|
-
Ge as
|
|
128
|
-
Ee as
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
Fo as
|
|
132
|
-
Ro as
|
|
133
|
-
|
|
134
|
-
Vo as
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
ho as
|
|
141
|
-
Bo as
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
fr as
|
|
163
|
-
ur as
|
|
164
|
-
Dr as
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
Cr as
|
|
187
|
-
|
|
188
|
-
Ir as
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
Mr as
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
Ur as
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
Kr as
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
Je as
|
|
220
|
-
Xe as
|
|
221
|
-
Ye as
|
|
222
|
-
Ze as
|
|
223
|
-
$e as
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
88
|
+
m as Alert,
|
|
89
|
+
n as Avatar,
|
|
90
|
+
l as Badge,
|
|
91
|
+
c as Breadcrumb,
|
|
92
|
+
s as Button,
|
|
93
|
+
g as ButtonGroup,
|
|
94
|
+
w as Card,
|
|
95
|
+
tr as CheckboxInput,
|
|
96
|
+
d as Col,
|
|
97
|
+
Ct as Colors,
|
|
98
|
+
C as Command,
|
|
99
|
+
R as CommandDialog,
|
|
100
|
+
T as CommandEmpty,
|
|
101
|
+
I as CommandGroup,
|
|
102
|
+
b as CommandInput,
|
|
103
|
+
V as CommandItem,
|
|
104
|
+
M as CommandList,
|
|
105
|
+
P as CommandSeparator,
|
|
106
|
+
N as CommandShortcut,
|
|
107
|
+
y as Container,
|
|
108
|
+
He as ContextStore,
|
|
109
|
+
We as ContextStoreProvider,
|
|
110
|
+
K as DFlow,
|
|
111
|
+
q as DFlowControl,
|
|
112
|
+
X as DFlowDataTypeReactiveService,
|
|
113
|
+
ee as DFlowFolder,
|
|
114
|
+
oe as DFlowFolderGroup,
|
|
115
|
+
re as DFlowFolderItem,
|
|
116
|
+
ie as DFlowFunctionReactiveService,
|
|
117
|
+
xe as DFlowMiniMap,
|
|
118
|
+
B as DFlowReactiveService,
|
|
119
|
+
fe as DFlowReactiveSuggestionService,
|
|
120
|
+
ue as DFlowSuggestion,
|
|
121
|
+
se as DFlowSuggestionType,
|
|
122
|
+
ge as DFlowTypeReactiveService,
|
|
123
|
+
Ce as DFlowValidation,
|
|
124
|
+
Te as DFullScreen,
|
|
125
|
+
be as DLayout,
|
|
126
|
+
Me as DNamespaceLicenseReactiveService,
|
|
127
|
+
Ne as DNamespaceLicenseView,
|
|
128
|
+
ye as DNamespaceMemberReactiveService,
|
|
129
|
+
Ge as DNamespaceMemberView,
|
|
130
|
+
Ee as DNamespaceProjectReactiveService,
|
|
131
|
+
ze as DNamespaceProjectView,
|
|
132
|
+
to as DNamespaceReactiveService,
|
|
133
|
+
Fo as DNamespaceRoleReactiveService,
|
|
134
|
+
Ro as DNamespaceRoleView,
|
|
135
|
+
Io as DNamespaceView,
|
|
136
|
+
Vo as DOrganizationReactiveService,
|
|
137
|
+
Po as DOrganizationView,
|
|
138
|
+
Lo as DResizableHandle,
|
|
139
|
+
Go as DResizablePanel,
|
|
140
|
+
Oo as DResizablePanelGroup,
|
|
141
|
+
po as DRuntimeReactiveService,
|
|
142
|
+
ho as DRuntimeView,
|
|
143
|
+
Bo as DUserReactiveService,
|
|
144
|
+
jo as DUserView,
|
|
145
|
+
Z as DataTypeView,
|
|
146
|
+
Ko as Dialog,
|
|
147
|
+
Qo as DialogClose,
|
|
148
|
+
qo as DialogContent,
|
|
149
|
+
Jo as DialogDescription,
|
|
150
|
+
Xo as DialogFooter,
|
|
151
|
+
Yo as DialogHeader,
|
|
152
|
+
Zo as DialogOverlay,
|
|
153
|
+
$o as DialogPortal,
|
|
154
|
+
er as DialogTitle,
|
|
155
|
+
or as DialogTrigger,
|
|
156
|
+
pr as EmailInput,
|
|
157
|
+
j as FLOW_EDGE_RAINBOW,
|
|
158
|
+
Qe as Flex,
|
|
159
|
+
G as FlowSettingView,
|
|
160
|
+
we as FlowTypeView,
|
|
161
|
+
O as FlowView,
|
|
162
|
+
me as FunctionDefinitionView,
|
|
163
|
+
nr as Input,
|
|
164
|
+
fr as InputDescription,
|
|
165
|
+
ur as InputLabel,
|
|
166
|
+
Dr as InputMessage,
|
|
167
|
+
Sr as InputSuggestionMenuContent,
|
|
168
|
+
wr as InputSuggestionMenuContentItems,
|
|
169
|
+
ft as InspectionSeverity,
|
|
170
|
+
ao as Menu,
|
|
171
|
+
no as MenuArrow,
|
|
172
|
+
xo as MenuContent,
|
|
173
|
+
lo as MenuGroup,
|
|
174
|
+
fo as MenuItem,
|
|
175
|
+
co as MenuLabel,
|
|
176
|
+
uo as MenuPortal,
|
|
177
|
+
so as MenuSeparator,
|
|
178
|
+
Do as MenuSub,
|
|
179
|
+
go as MenuSubContent,
|
|
180
|
+
So as MenuSubTrigger,
|
|
181
|
+
wo as MenuTrigger,
|
|
182
|
+
E as NodeFunctionView,
|
|
183
|
+
h as NodeParameterView,
|
|
184
|
+
ut as NonReactiveArrayService,
|
|
185
|
+
dr as NumberInput,
|
|
186
|
+
gt as ObjectService,
|
|
187
|
+
ae as ParameterDefinitionView,
|
|
188
|
+
Cr as PasswordInput,
|
|
189
|
+
Tr as PinInput,
|
|
190
|
+
Ir as PinInputField,
|
|
191
|
+
br as PinInputHiddenField,
|
|
192
|
+
zr as Quote,
|
|
193
|
+
Mr as RadioGroup,
|
|
194
|
+
Nr as RadioInput,
|
|
195
|
+
vt as ReactiveArrayService,
|
|
196
|
+
Ur as Row,
|
|
197
|
+
Hr as ScrollArea,
|
|
198
|
+
Wr as ScrollAreaCorner,
|
|
199
|
+
_r as ScrollAreaScrollbar,
|
|
200
|
+
kr as ScrollAreaThumb,
|
|
201
|
+
Kr as ScrollAreaViewport,
|
|
202
|
+
qr as SegmentedControl,
|
|
203
|
+
Jr as SegmentedControlItem,
|
|
204
|
+
Ao as Spacing,
|
|
205
|
+
yr as SwitchInput,
|
|
206
|
+
Yr as Tab,
|
|
207
|
+
Zr as TabContent,
|
|
208
|
+
$r as TabList,
|
|
209
|
+
et as TabTrigger,
|
|
210
|
+
Ue as Text,
|
|
211
|
+
Gr as TextInput,
|
|
212
|
+
rt as Toast,
|
|
213
|
+
pt as Tooltip,
|
|
214
|
+
mt as TooltipArrow,
|
|
215
|
+
at as TooltipContent,
|
|
216
|
+
nt as TooltipPortal,
|
|
217
|
+
xt as TooltipTrigger,
|
|
218
|
+
st as createNonReactiveArrayService,
|
|
219
|
+
St as createObjectService,
|
|
220
|
+
mr as emailValidation,
|
|
221
|
+
Je as getChild,
|
|
222
|
+
Xe as getContent,
|
|
223
|
+
Ye as getPositionAroundTarget,
|
|
224
|
+
Ze as getPositioning,
|
|
225
|
+
$e as getWindowPositioning,
|
|
226
|
+
eo as mergeCode0Props,
|
|
227
|
+
oo as parseUnit,
|
|
228
|
+
xr as setElementKey,
|
|
229
|
+
Wo as setUserSession,
|
|
230
|
+
tt as toast,
|
|
231
|
+
de as useDFlowValidations,
|
|
232
|
+
H as useFlowEdges,
|
|
233
|
+
_ as useFlowNodes,
|
|
234
|
+
Er as useForm,
|
|
235
|
+
dt as useReactiveArrayService,
|
|
236
|
+
_e as useService,
|
|
237
|
+
ke as useStore,
|
|
238
|
+
_o as useUserSession
|
|
234
239
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/pictor",
|
|
3
|
-
"version": "0.0.0-mvp.
|
|
3
|
+
"version": "0.0.0-mvp.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"scripts": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"@ariakit/react": "^0.4.17",
|
|
22
22
|
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
23
23
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
24
|
+
"@code0-tech/definition-reader": "^0.0.16",
|
|
24
25
|
"@code0-tech/sagittarius-graphql-types": "^0.0.0-65144a9920c6a8de3bcf24acdcb8eec4158cef73",
|
|
25
26
|
"@dagrejs/dagre": "^1.1.8",
|
|
26
27
|
"@mdx-js/react": "^3.1.1",
|
|
@@ -37,20 +38,20 @@
|
|
|
37
38
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
38
39
|
"@rollup/plugin-terser": "^0.4.4",
|
|
39
40
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
40
|
-
"@storybook/addon-a11y": "^10.0.
|
|
41
|
-
"@storybook/addon-links": "^10.0.
|
|
42
|
-
"@storybook/addon-onboarding": "^10.0.
|
|
43
|
-
"@storybook/builder-vite": "^10.0.
|
|
44
|
-
"@storybook/cli": "^10.0.
|
|
45
|
-
"@storybook/react": "^10.0.
|
|
46
|
-
"@storybook/react-vite": "^10.0.
|
|
41
|
+
"@storybook/addon-a11y": "^10.0.7",
|
|
42
|
+
"@storybook/addon-links": "^10.0.7",
|
|
43
|
+
"@storybook/addon-onboarding": "^10.0.7",
|
|
44
|
+
"@storybook/builder-vite": "^10.0.7",
|
|
45
|
+
"@storybook/cli": "^10.0.7",
|
|
46
|
+
"@storybook/react": "^10.0.7",
|
|
47
|
+
"@storybook/react-vite": "^10.0.7",
|
|
47
48
|
"@storybook/test-runner": "^0.24.1",
|
|
48
49
|
"@storybook/testing-library": "^0.2.2",
|
|
49
50
|
"@tabler/icons-react": "3.35.0",
|
|
50
51
|
"@types/jest-image-snapshot": "^6.4.0",
|
|
51
|
-
"@types/react": "^19.2.
|
|
52
|
-
"@vitejs/plugin-react": "^5.1.
|
|
53
|
-
"@xyflow/react": "^12.9.
|
|
52
|
+
"@types/react": "^19.2.4",
|
|
53
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
54
|
+
"@xyflow/react": "^12.9.3",
|
|
54
55
|
"axe-playwright": "^2.2.2",
|
|
55
56
|
"babel-loader": "^10.0.0",
|
|
56
57
|
"babel-plugin-react-compiler": "^19.1.0-rc.3",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"rimraf": "^6.1.0",
|
|
72
73
|
"sass": "^1.94.0",
|
|
73
74
|
"sass-loader": "^16.0.6",
|
|
74
|
-
"storybook": "^10.0.
|
|
75
|
+
"storybook": "^10.0.7",
|
|
75
76
|
"style-loader": "^4.0.0",
|
|
76
77
|
"ts-jest": "^29.4.5",
|
|
77
78
|
"ts-node": "^10.9.2",
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"vite": "^7.2.2",
|
|
80
81
|
"vite-plugin-dts": "^4.5.4",
|
|
81
82
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
82
|
-
"
|
|
83
|
+
"sonner": "^2.0.7"
|
|
83
84
|
},
|
|
84
85
|
"main": "dist/index.js",
|
|
85
86
|
"repository": {
|
|
@@ -111,7 +112,8 @@
|
|
|
111
112
|
"react": "^18.0.0 || ^19.0.0",
|
|
112
113
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
113
114
|
"react-resizable-panels": "^3.0.3",
|
|
114
|
-
"react-zoom-pan-pinch": "^3.6.1"
|
|
115
|
+
"react-zoom-pan-pinch": "^3.6.1",
|
|
116
|
+
"sonner": "^2.0.7"
|
|
115
117
|
},
|
|
116
118
|
"publishConfig": {
|
|
117
119
|
"access": "public"
|