@code0-tech/pictor 0.0.0-mvp.11 → 0.0.0-mvp.13

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.
@@ -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:flex-start;justify-content:space-between;gap:.35rem}.toast__icon{display:flex;align-items:center;justify-content:center}.toast__content{margin-top:.35rem;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: 18 }),
21
+ secondary: /* @__PURE__ */ t(a, { size: 18 }),
22
+ info: /* @__PURE__ */ t(u, { size: 18 }),
23
+ success: /* @__PURE__ */ t(y, { size: 18 }),
24
+ warning: /* @__PURE__ */ t(x, { size: 18 }),
25
+ error: /* @__PURE__ */ t(h, { size: 18 })
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 r from "react";
2
+ import i from "react";
3
3
  const a = () => {
4
- const e = c.c(2), [n, i] = r.useState(null);
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 && i(t);
9
- }, o = [], e[0] = s, e[1] = o) : (s = e[0], o = e[1]), r.useEffect(s, o), n;
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 s, jsxs as N } from "react/jsx-runtime";
2
+ import { c as I } from "../../_virtual/compiler-runtime.js";
3
+ import { toast as x } 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 T, IconCircleX as g, IconAlertCircle as j, IconCircleCheck as k, IconInfoCircle as w, IconCircleDot as C } from "@tabler/icons-react";
9
+ import { Text as X } from "../text/Text.js";
10
+ import { Flex as z } from "../flex/Flex.js";
11
+ function L(i) {
12
+ return x.custom((e) => /* @__PURE__ */ s(A, { id: e, ...i, children: i.children }));
13
+ }
14
+ function A(i) {
15
+ const e = I.c(25);
16
+ let o, t, c, l, r;
17
+ if (e[0] !== i) {
18
+ const {
19
+ dismissible: p,
20
+ color: u,
21
+ title: y,
22
+ onClose: E,
23
+ children: b,
24
+ ...v
25
+ } = i;
26
+ r = y, o = b, c = p === void 0 ? !1 : p, t = u === void 0 ? "secondary" : u, l = $(`toast toast--${t}`, v), e[0] = i, e[1] = o, e[2] = t, e[3] = c, e[4] = l, e[5] = r;
27
+ } else
28
+ o = e[1], t = e[2], c = e[3], l = e[4], r = e[5];
29
+ let n;
30
+ e[6] !== t ? (n = t && /* @__PURE__ */ s(D, { color: t }), e[6] = t, e[7] = n) : n = e[7];
31
+ let a;
32
+ e[8] !== r ? (a = /* @__PURE__ */ s(X, { size: "md", hierarchy: "primary", children: r }), e[8] = r, e[9] = a) : a = e[9];
33
+ let m;
34
+ e[10] !== n || e[11] !== a ? (m = /* @__PURE__ */ N(z, { className: "toast__header-wrapper", children: [
35
+ n,
36
+ a
37
+ ] }), e[10] = n, e[11] = a, e[12] = m) : m = e[12];
38
+ let d;
39
+ e[13] !== c || e[14] !== i.id ? (d = c && /* @__PURE__ */ s("span", { className: "toast__dismissible", onClick: () => x.dismiss(i.id), children: /* @__PURE__ */ s(T, { size: 18 }) }), e[13] = c, e[14] = i.id, e[15] = d) : d = e[15];
40
+ let f;
41
+ e[16] !== m || e[17] !== d ? (f = /* @__PURE__ */ N(z, { className: "toast__header", children: [
42
+ m,
43
+ d
44
+ ] }), e[16] = m, e[17] = d, e[18] = f) : f = e[18];
45
+ let _;
46
+ e[19] !== o ? (_ = o && /* @__PURE__ */ s("div", { className: "toast__content", children: o }), e[19] = o, e[20] = _) : _ = e[20];
47
+ let h;
48
+ return e[21] !== l || e[22] !== f || e[23] !== _ ? (h = /* @__PURE__ */ N("div", { ...l, children: [
49
+ f,
50
+ _
51
+ ] }), e[21] = l, e[22] = f, e[23] = _, e[24] = h) : h = e[24], h;
52
+ }
53
+ const D = (i) => {
54
+ const e = I.c(1), {
55
+ color: o
56
+ } = i;
57
+ let t;
58
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = {
59
+ primary: /* @__PURE__ */ s(C, { className: "toast__icon", size: 18 }),
60
+ secondary: /* @__PURE__ */ s(C, { className: "toast__icon", size: 18 }),
61
+ info: /* @__PURE__ */ s(w, { className: "toast__icon", size: 18 }),
62
+ success: /* @__PURE__ */ s(k, { className: "toast__icon", size: 18 }),
63
+ warning: /* @__PURE__ */ s(j, { className: "toast__icon", size: 18 }),
64
+ error: /* @__PURE__ */ s(g, { className: "toast__icon", size: 18 })
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 { Avatar as m } from "./components/avatar/Avatar.js";
2
- import { Badge as n } from "./components/badge/Badge.js";
3
- import { Breadcrumb as l } from "./components/breadcrumb/Breadcrumb.js";
4
- import { Button as c } from "./components/button/Button.js";
5
- import { ButtonGroup as s } from "./components/button-group/ButtonGroup.js";
6
- import { Card as g } from "./components/card/Card.js";
7
- import { Col as w } from "./components/col/Col.js";
8
- import { Command as d, CommandDialog as F, CommandEmpty as C, CommandGroup as R, CommandInput as I, CommandItem as T, CommandList as b, CommandSeparator as V, CommandShortcut as M } from "./components/command/Command.js";
9
- import { Container as N } from "./components/container/Container.js";
10
- import { FlowSettingView as A, FlowView as L, NodeFunctionView as G, NodeParameterView as O } from "./components/d-flow/DFlow.view.js";
11
- import { DFlowReactiveService as h } from "./components/d-flow/DFlow.service.js";
12
- import { FLOW_EDGE_RAINBOW as B, useFlowEdges as U } from "./components/d-flow/DFlow.edges.hook.js";
13
- import { useFlowNodes as H } from "./components/d-flow/DFlow.nodes.hook.js";
14
- import { DFlow as _ } from "./components/d-flow/DFlow.js";
15
- import { DFlowControl as K } from "./components/d-flow/control/DFlowControl.js";
16
- import { DFlowDataTypeReactiveService as q } from "./components/d-flow/data-type/DFlowDataType.service.js";
17
- import { DataTypeView as X } from "./components/d-flow/data-type/DFlowDataType.view.js";
18
- import { DFlowFolder as Z, DFlowFolderGroup as $, DFlowFolderItem as ee } from "./components/d-flow/folder/DFlowFolder.js";
19
- import { DFlowFunctionReactiveService as re } from "./components/d-flow/function/DFlowFunction.service.js";
20
- import { FunctionDefinitionView as ie, ParameterDefinitionView as pe } from "./components/d-flow/function/DFlowFunction.view.js";
21
- import { DFlowMiniMap as ae } from "./components/d-flow/minimap/DFlowMiniMap.js";
22
- import { DFlowReactiveSuggestionService as xe } from "./components/d-flow/suggestion/DFlowSuggestion.service.js";
23
- import { DFlowSuggestion as fe, DFlowSuggestionType as ce } from "./components/d-flow/suggestion/DFlowSuggestion.view.js";
24
- import { DFlowTypeReactiveService as se } from "./components/d-flow/type/DFlowType.service.js";
25
- import { FlowTypeView as ge } from "./components/d-flow/type/DFlowType.view.js";
26
- import { useDFlowValidations as we } from "./components/d-flow/validation/DFlowValidation.hook.js";
27
- import { DFlowValidation as de } from "./components/d-flow/validation/DFlowValidation.js";
28
- import { DFullScreen as Ce } from "./components/d-fullscreen/DFullScreen.js";
29
- import { DLayout as Ie } from "./components/d-layout/DLayout.js";
30
- import { DNamespaceLicenseReactiveService as be } from "./components/d-namespace/license/DNamespaceLicense.service.js";
31
- import { DNamespaceLicenseView as Me } from "./components/d-namespace/license/DNamespaceLicense.view.js";
32
- import { DNamespaceMemberReactiveService as Ne } from "./components/d-namespace/member/DNamespaceMember.service.js";
33
- import { DNamespaceMemberView as Ae } from "./components/d-namespace/member/DNamespaceMember.view.js";
34
- import { DNamespaceProjectReactiveService as Ge } from "./components/d-namespace/project/DNamespaceProject.service.js";
35
- import { DNamespaceProjectView as Ee } from "./components/d-namespace/project/DNamespaceProject.view.js";
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 ze } from "./components/text/Text.js";
39
+ import { Text as Ue } from "./components/text/Text.js";
39
40
  import "@tabler/icons-react";
40
- import { ContextStore as Ue, ContextStoreProvider as je, useService as He, useStore as We } from "./utils/contextStore.js";
41
- import { Flex as ke } from "./components/flex/Flex.js";
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 Qe, getContent as qe, getPositionAroundTarget as Je, getPositioning as Xe, getWindowPositioning as Ye, mergeCode0Props as Ze, parseUnit as $e } from "./utils/utils.js";
44
- import { DNamespaceReactiveService as oo } from "./components/d-namespace/DNamespace.service.js";
45
- import { DRuntimeReactiveService as to } from "./components/d-runtime/DRuntime.service.js";
46
- import { Menu as po, MenuArrow as mo, MenuContent as ao, MenuGroup as no, MenuItem as xo, MenuLabel as lo, MenuPortal as fo, MenuSeparator as co, MenuSub as uo, MenuSubContent as so, MenuSubTrigger as Do, MenuTrigger as go } from "./components/menu/Menu.js";
47
- import { DNamespaceRoleReactiveService as wo } from "./components/d-namespace/role/DNamespaceRole.service.js";
48
- import { DNamespaceRoleView as Fo } from "./components/d-namespace/role/DNamespaceRole.view.js";
49
- import { DNamespaceView as Ro } from "./components/d-namespace/DNamespace.view.js";
50
- import { DOrganizationReactiveService as To } from "./components/d-organization/DOrganization.service.js";
51
- import { DOrganizationView as Vo } from "./components/d-organization/DOrganization.view.js";
52
- import { Spacing as Po } from "./components/spacing/Spacing.js";
53
- import { DResizableHandle as yo, DResizablePanel as Ao, DResizablePanelGroup as Lo } from "./components/d-resizable/DResizable.js";
54
- import { DRuntimeView as Oo } from "./components/d-runtime/DRuntime.view.js";
55
- import { DUserReactiveService as ho } from "./components/d-user/DUser.service.js";
56
- import { DUserView as Bo } from "./components/d-user/DUser.view.js";
57
- import { setUserSession as jo, useUserSession as Ho } from "./components/d-user/DUser.session.hook.js";
58
- import { Dialog as _o, DialogClose as ko, DialogContent as Ko, DialogDescription as Qo, DialogFooter as qo, DialogHeader as Jo, DialogOverlay as Xo, DialogPortal as Yo, DialogTitle as Zo, DialogTrigger as $o } from "./components/dialog/Dialog.js";
59
- import { CheckboxInput as or } from "./components/form/CheckboxInput.js";
60
- import { EmailInput as tr, emailValidation as ir } from "./components/form/EmailInput.js";
61
- import { Input as mr, setElementKey as ar } from "./components/form/Input.js";
62
- import { InputDescription as xr } from "./components/form/InputDescription.js";
63
- import { InputLabel as fr } from "./components/form/InputLabel.js";
64
- import { InputMessage as ur } from "./components/form/InputMessage.js";
65
- import { InputSuggestionMenuContent as Dr, InputSuggestionMenuContentItems as gr } from "./components/form/InputSuggestion.js";
66
- import { NumberInput as wr } from "./components/form/NumberInput.js";
67
- import { PasswordInput as dr } from "./components/form/PasswordInput.js";
68
- import { PinInput as Cr, PinInputField as Rr, PinInputHiddenField as Ir } from "./components/form/PinInput.js";
69
- import { RadioGroup as br } from "./components/form/RadioGroup.js";
70
- import { RadioInput as Mr } from "./components/form/RadioInput.js";
71
- import { SwitchInput as Nr } from "./components/form/SwitchInput.js";
72
- import { TextInput as Ar } from "./components/form/TextInput.js";
73
- import { useForm as Gr } from "./components/form/useForm.js";
74
- import { Quote as Er } from "./components/quote/Quote.js";
75
- import { Row as zr } from "./components/row/Row.js";
76
- import { ScrollArea as Ur, ScrollAreaCorner as jr, ScrollAreaScrollbar as Hr, ScrollAreaThumb as Wr, ScrollAreaViewport as _r } from "./components/scroll-area/ScrollArea.js";
77
- import { SegmentedControl as Kr, SegmentedControlItem as Qr } from "./components/segmented-control/SegmentedControl.js";
78
- import { Tab as Jr, TabContent as Xr, TabList as Yr, TabTrigger as Zr } from "./components/tab/Tab.js";
79
- import { Tooltip as et, TooltipArrow as ot, TooltipContent as rt, TooltipPortal as tt, TooltipTrigger as it } from "./components/tooltip/Tooltip.js";
80
- import { InspectionSeverity as mt } from "./utils/inspection.js";
81
- import { NonReactiveArrayService as nt, createNonReactiveArrayService as xt } from "./utils/nonReactiveArrayService.js";
82
- import { ObjectService as ft, createObjectService as ct } from "./utils/objectStore.js";
83
- import { ReactiveArrayService as st, useReactiveArrayService as Dt } from "./utils/reactiveArrayService.js";
84
- import { Colors as St } from "./utils/types.js";
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 Avatar,
87
- n as Badge,
88
- l as Breadcrumb,
89
- c as Button,
90
- s as ButtonGroup,
91
- g as Card,
92
- or as CheckboxInput,
93
- w as Col,
94
- St as Colors,
95
- d as Command,
96
- F as CommandDialog,
97
- C as CommandEmpty,
98
- R as CommandGroup,
99
- I as CommandInput,
100
- T as CommandItem,
101
- b as CommandList,
102
- V as CommandSeparator,
103
- M as CommandShortcut,
104
- N as Container,
105
- Ue as ContextStore,
106
- je as ContextStoreProvider,
107
- _ as DFlow,
108
- K as DFlowControl,
109
- q as DFlowDataTypeReactiveService,
110
- Z as DFlowFolder,
111
- $ as DFlowFolderGroup,
112
- ee as DFlowFolderItem,
113
- re as DFlowFunctionReactiveService,
114
- ae as DFlowMiniMap,
115
- h as DFlowReactiveService,
116
- xe as DFlowReactiveSuggestionService,
117
- fe as DFlowSuggestion,
118
- ce as DFlowSuggestionType,
119
- se as DFlowTypeReactiveService,
120
- de as DFlowValidation,
121
- Ce as DFullScreen,
122
- Ie as DLayout,
123
- be as DNamespaceLicenseReactiveService,
124
- Me as DNamespaceLicenseView,
125
- Ne as DNamespaceMemberReactiveService,
126
- Ae as DNamespaceMemberView,
127
- Ge as DNamespaceProjectReactiveService,
128
- Ee as DNamespaceProjectView,
129
- oo as DNamespaceReactiveService,
130
- wo as DNamespaceRoleReactiveService,
131
- Fo as DNamespaceRoleView,
132
- Ro as DNamespaceView,
133
- To as DOrganizationReactiveService,
134
- Vo as DOrganizationView,
135
- yo as DResizableHandle,
136
- Ao as DResizablePanel,
137
- Lo as DResizablePanelGroup,
138
- to as DRuntimeReactiveService,
139
- Oo as DRuntimeView,
140
- ho as DUserReactiveService,
141
- Bo as DUserView,
142
- X as DataTypeView,
143
- _o as Dialog,
144
- ko as DialogClose,
145
- Ko as DialogContent,
146
- Qo as DialogDescription,
147
- qo as DialogFooter,
148
- Jo as DialogHeader,
149
- Xo as DialogOverlay,
150
- Yo as DialogPortal,
151
- Zo as DialogTitle,
152
- $o as DialogTrigger,
153
- tr as EmailInput,
154
- B as FLOW_EDGE_RAINBOW,
155
- ke as Flex,
156
- A as FlowSettingView,
157
- ge as FlowTypeView,
158
- L as FlowView,
159
- ie as FunctionDefinitionView,
160
- mr as Input,
161
- xr as InputDescription,
162
- fr as InputLabel,
163
- ur as InputMessage,
164
- Dr as InputSuggestionMenuContent,
165
- gr as InputSuggestionMenuContentItems,
166
- mt as InspectionSeverity,
167
- po as Menu,
168
- mo as MenuArrow,
169
- ao as MenuContent,
170
- no as MenuGroup,
171
- xo as MenuItem,
172
- lo as MenuLabel,
173
- fo as MenuPortal,
174
- co as MenuSeparator,
175
- uo as MenuSub,
176
- so as MenuSubContent,
177
- Do as MenuSubTrigger,
178
- go as MenuTrigger,
179
- G as NodeFunctionView,
180
- O as NodeParameterView,
181
- nt as NonReactiveArrayService,
182
- wr as NumberInput,
183
- ft as ObjectService,
184
- pe as ParameterDefinitionView,
185
- dr as PasswordInput,
186
- Cr as PinInput,
187
- Rr as PinInputField,
188
- Ir as PinInputHiddenField,
189
- Er as Quote,
190
- br as RadioGroup,
191
- Mr as RadioInput,
192
- st as ReactiveArrayService,
193
- zr as Row,
194
- Ur as ScrollArea,
195
- jr as ScrollAreaCorner,
196
- Hr as ScrollAreaScrollbar,
197
- Wr as ScrollAreaThumb,
198
- _r as ScrollAreaViewport,
199
- Kr as SegmentedControl,
200
- Qr as SegmentedControlItem,
201
- Po as Spacing,
202
- Nr as SwitchInput,
203
- Jr as Tab,
204
- Xr as TabContent,
205
- Yr as TabList,
206
- Zr as TabTrigger,
207
- ze as Text,
208
- Ar as TextInput,
209
- et as Tooltip,
210
- ot as TooltipArrow,
211
- rt as TooltipContent,
212
- tt as TooltipPortal,
213
- it as TooltipTrigger,
214
- xt as createNonReactiveArrayService,
215
- ct as createObjectService,
216
- ir as emailValidation,
217
- Qe as getChild,
218
- qe as getContent,
219
- Je as getPositionAroundTarget,
220
- Xe as getPositioning,
221
- Ye as getWindowPositioning,
222
- Ze as mergeCode0Props,
223
- $e as parseUnit,
224
- ar as setElementKey,
225
- jo as setUserSession,
226
- we as useDFlowValidations,
227
- U as useFlowEdges,
228
- H as useFlowNodes,
229
- Gr as useForm,
230
- Dt as useReactiveArrayService,
231
- He as useService,
232
- We as useStore,
233
- Ho as useUserSession
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.11",
3
+ "version": "0.0.0-mvp.13",
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.6",
41
- "@storybook/addon-links": "^10.0.6",
42
- "@storybook/addon-onboarding": "^10.0.6",
43
- "@storybook/builder-vite": "^10.0.6",
44
- "@storybook/cli": "^10.0.6",
45
- "@storybook/react": "^10.0.6",
46
- "@storybook/react-vite": "^10.0.6",
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.2",
52
- "@vitejs/plugin-react": "^5.1.0",
53
- "@xyflow/react": "^12.9.2",
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.6",
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
- "@code0-tech/definition-reader": "^0.0.16"
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"