@code0-tech/pictor 0.10.6 → 0.10.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import e from "react";
3
- import { InputWrapper as B } from "./InputWrapper.js";
4
- import I from "@uiw/react-codemirror";
3
+ import { InputWrapper as N } from "./InputWrapper.js";
4
+ import x from "@uiw/react-codemirror";
5
5
  import { createTheme as p } from "@uiw/codemirror-themes";
6
6
  import { tags as t } from "../../node_modules/@lezer/highlight/dist/index.js";
7
7
  import "../../utils/contextStore.js";
8
- import { mergeComponentProps as x } from "../../utils/component.js";
8
+ import { mergeComponentProps as B } from "../../utils/component.js";
9
9
  import { hashToColor as r } from "../../utils/color.js";
10
10
  import '../../assets/components/form/EditorInput.style.css';/* empty css */
11
11
  const A = [], L = [], P = {
@@ -21,6 +21,9 @@ const A = [], L = [], P = {
21
21
  selection: "rgba(112,179,255,0.25)",
22
22
  selectionMatch: "rgba(112,179,255,0.1)",
23
23
  fontSize: "0.8rem",
24
+ fontFamily: '"Inter", sans-serif',
25
+ letterSpacing: "-0.5px",
26
+ fontWeight: "400",
24
27
  gutterBackground: "transparent",
25
28
  gutterForeground: "rgba(255,255,255, 0.5)",
26
29
  gutterBorder: "transparent",
@@ -41,35 +44,35 @@ const A = [], L = [], P = {
41
44
  }, {
42
45
  tag: t.number,
43
46
  color: r("Number")
44
- }], Y = p({
47
+ }], F = p({
45
48
  theme: "light",
46
49
  settings: u,
47
50
  styles: h
48
- }), F = e.memo((d) => {
51
+ }), Y = e.memo((f) => {
49
52
  const {
50
- title: f,
51
- right: E,
52
- left: T,
53
- rightType: b,
53
+ title: d,
54
+ right: T,
55
+ left: b,
56
+ rightType: E,
54
57
  leftType: S,
55
58
  language: o,
56
59
  description: _,
57
60
  extensions: n = A,
58
61
  tokenStyles: a = L,
59
- formValidation: s,
60
- onChange: i,
62
+ formValidation: i,
63
+ onChange: g,
61
64
  wrapperComponent: k,
62
- ...g
63
- } = d, C = e.useMemo(() => o ? [...n, o] : n, [n, o]), M = e.useMemo(() => a.length === 0 ? Y : p({
65
+ ...l
66
+ } = f, y = e.useMemo(() => [...o ? [...n, o] : n], [n, o]), C = e.useMemo(() => a.length === 0 ? F : p({
64
67
  theme: "light",
65
68
  settings: u,
66
69
  styles: [...h, ...a]
67
- }), [a]), m = s?.setValue, y = e.useCallback((l) => {
68
- m?.(l), i?.(l);
69
- }, [m, i]), N = e.useMemo(() => x("editor-input", g), [g]);
70
- return /* @__PURE__ */ c(B, { title: f, description: _, right: E, left: T, rightType: b, leftType: S, formValidation: s, wrapperComponent: k, children: /* @__PURE__ */ c(I, { extensions: C, onChange: y, theme: M, ...N, basicSetup: P }) });
70
+ }), [a]), m = i?.setValue, M = e.useCallback((s) => {
71
+ m?.(s), g?.(s);
72
+ }, [m, g]), I = e.useMemo(() => B("editor-input", l), [l]);
73
+ return /* @__PURE__ */ c(N, { title: d, description: _, right: T, left: b, rightType: E, leftType: S, formValidation: i, wrapperComponent: k, children: /* @__PURE__ */ c(x, { extensions: y, onChange: M, theme: C, indentWithTab: !1, ...I, basicSetup: P }) });
71
74
  });
72
- F.displayName = "EditorInput";
75
+ Y.displayName = "EditorInput";
73
76
  export {
74
- F as EditorInput
77
+ Y as EditorInput
75
78
  };
@@ -1,68 +1,54 @@
1
- import { jsxs as i, Fragment as M, jsx as t } from "react/jsx-runtime";
2
- import u from "react";
3
- import { Input as V } from "./Input.js";
4
- import { IconX as s, IconCheck as c, IconEye as x } from "@tabler/icons-react";
5
- import { Button as p } from "../button/Button.js";
6
- import { clearInputElement as w } from "./Input.utils.js";
7
- import { Flex as o } from "../flex/Flex.js";
8
- import { Text as a } from "../text/Text.js";
9
- const v = u.forwardRef((n, e) => {
10
- e = e || u.useRef(null);
1
+ import { jsxs as l, Fragment as y, jsx as n } from "react/jsx-runtime";
2
+ import c from "react";
3
+ import { Input as b } from "./Input.js";
4
+ import { IconEye as I, IconX as R } from "@tabler/icons-react";
5
+ import { Button as u } from "../button/Button.js";
6
+ import { clearInputElement as P } from "./Input.utils.js";
7
+ import { Flex as z } from "../flex/Flex.js";
8
+ import { Progress as D } from "../progress/Progress.js";
9
+ import { InputMessage as A } from "./InputMessage.js";
10
+ const L = c.forwardRef((r, t) => {
11
+ t = t || c.useRef(null);
11
12
  const {
12
- clearable: m = !0,
13
- visible: h = !0,
14
- right: g,
15
- formValidation: r,
13
+ clearable: p = !0,
14
+ visible: d = !0,
15
+ right: m,
16
+ formValidation: s,
16
17
  ...f
17
- } = n, z = (l) => (w(e.current), l.stopPropagation(), l.preventDefault(), !1), y = (l) => (e.current instanceof HTMLInputElement && (e.current.type === "password" ? e.current.type = "text" : e.current.type === "text" && (e.current.type = "password")), !1), d = [g];
18
- return h && d.push(/* @__PURE__ */ t(p, { variant: "none", onClick: (l) => y(), children: /* @__PURE__ */ t(x, { size: 13 }) })), m && d.push(/* @__PURE__ */ t(p, { variant: "none", onClick: (l) => z(l), children: /* @__PURE__ */ t(s, { size: 13 }) })), /* @__PURE__ */ i(M, { children: [
19
- /* @__PURE__ */ t(V, { right: d, rightType: "action", type: "password", ref: e, ...r ? {
20
- formValidation: {
21
- setValue: r.setValue,
22
- valid: r.valid
23
- }
18
+ } = r, h = (e) => (P(t.current), e.stopPropagation(), e.preventDefault(), !1), g = (e) => (t.current instanceof HTMLInputElement && (t.current.type === "password" ? t.current.type = "text" : t.current.type === "text" && (t.current.type = "password")), e.stopPropagation(), e.preventDefault(), !1), o = [m];
19
+ d && o.push(/* @__PURE__ */ n(u, { variant: "none", onClick: (e) => g(e), children: /* @__PURE__ */ n(I, { size: 13 }) })), p && o.push(/* @__PURE__ */ n(u, { variant: "none", onClick: (e) => h(e), children: /* @__PURE__ */ n(R, { size: 13 }) }));
20
+ const a = s?.notValidMessage ?? "", i = /^[1-5]+$/.test(a), x = a.length, M = Math.max(0, 5 - x) / 5 * 100;
21
+ return /* @__PURE__ */ l(y, { children: [
22
+ /* @__PURE__ */ n(b, { right: o, rightType: "action", type: "password", ref: t, ...s ? {
23
+ formValidation: i ? {
24
+ setValue: s.setValue,
25
+ valid: s.valid
26
+ } : s
24
27
  } : {}, ...f }),
25
- !r?.valid && /* @__PURE__ */ i(o, { mt: 0.7, style: {
28
+ i && !s?.valid && /* @__PURE__ */ l(z, { mt: 0.7, style: {
26
29
  flexDirection: "column"
27
30
  }, children: [
28
- /* @__PURE__ */ i(o, { align: "center", style: {
29
- gap: "0.35rem"
30
- }, children: [
31
- r?.notValidMessage?.includes("1") ? /* @__PURE__ */ t(s, { color: "#D90429", size: 16 }) : /* @__PURE__ */ t(c, { color: "#29BF12", size: 16 }),
32
- /* @__PURE__ */ t(a, { children: "Must be at least 8 characters" })
33
- ] }),
34
- /* @__PURE__ */ i(o, { align: "center", style: {
35
- gap: "0.35rem"
36
- }, children: [
37
- r?.notValidMessage?.includes("2") ? /* @__PURE__ */ t(s, { color: "#D90429", size: 16 }) : /* @__PURE__ */ t(c, { color: "#29BF12", size: 16 }),
38
- /* @__PURE__ */ t(a, { children: "Must include a lowercase letter" })
39
- ] }),
40
- /* @__PURE__ */ i(o, { align: "center", style: {
41
- gap: "0.35rem"
42
- }, children: [
43
- r?.notValidMessage?.includes("3") ? /* @__PURE__ */ t(s, { color: "#D90429", size: 16 }) : /* @__PURE__ */ t(c, { color: "#29BF12", size: 16 }),
44
- /* @__PURE__ */ t(a, { children: "Must include an uppercase letter" })
45
- ] }),
46
- /* @__PURE__ */ i(o, { align: "center", style: {
47
- gap: "0.35rem"
48
- }, children: [
49
- r?.notValidMessage?.includes("4") ? /* @__PURE__ */ t(s, { color: "#D90429", size: 16 }) : /* @__PURE__ */ t(c, { color: "#29BF12", size: 16 }),
50
- /* @__PURE__ */ t(a, { children: "Must include a number" })
51
- ] }),
52
- /* @__PURE__ */ i(o, { align: "center", style: {
53
- gap: "0.35rem"
54
- }, children: [
55
- r?.notValidMessage?.includes("5") ? /* @__PURE__ */ t(s, { color: "#D90429", size: 16 }) : /* @__PURE__ */ t(c, { color: "#29BF12", size: 16 }),
56
- /* @__PURE__ */ t(a, { children: "Must include a special character" })
57
- ] })
31
+ /* @__PURE__ */ n(D, { value: M, max: 100, color: "linear-gradient(to right, #D90429 0%, #29BF12 100%)" }),
32
+ (() => {
33
+ const e = ["2", "3", "4", "5", "1"].find((w) => a.includes(w));
34
+ if (!e) return null;
35
+ const V = {
36
+ 1: "Must be at least 8 characters",
37
+ 2: "Must include a lowercase letter",
38
+ 3: "Must include an uppercase letter",
39
+ 4: "Must include a number",
40
+ 5: "Must include a special character"
41
+ }[e];
42
+ return /* @__PURE__ */ n(A, { children: V });
43
+ })()
58
44
  ] })
59
45
  ] });
60
- }), A = (n) => {
61
- if (!n) return "12345";
62
- let e = null;
63
- return n.length < 8 && (e = (e ?? "") + "1"), /[a-z]/.test(n) || (e = (e ?? "") + "2"), /[A-Z]/.test(n) || (e = (e ?? "") + "3"), /[0-9]/.test(n) || (e = (e ?? "") + "4"), /[^A-Za-z0-9]/.test(n) || (e = (e ?? "") + "5"), e;
46
+ }), X = (r) => {
47
+ if (!r) return "12345";
48
+ let t = null;
49
+ return r.length < 8 && (t = (t ?? "") + "1"), /[a-z]/.test(r) || (t = (t ?? "") + "2"), /[A-Z]/.test(r) || (t = (t ?? "") + "3"), /[0-9]/.test(r) || (t = (t ?? "") + "4"), /[^A-Za-z0-9]/.test(r) || (t = (t ?? "") + "5"), t;
64
50
  };
65
51
  export {
66
- v as PasswordInput,
67
- A as passwordValidation
52
+ L as PasswordInput,
53
+ X as passwordValidation
68
54
  };
@@ -1,24 +1,24 @@
1
- import j, { useState as g, useRef as y, useCallback as w, useEffect as P } from "react";
2
- function o(i, e, t) {
3
- return (e = O(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
1
+ import O, { useState as w, useRef as b, useCallback as M, useEffect as F } from "react";
2
+ function d(r, e, t) {
3
+ return (e = R(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
4
4
  }
5
- function O(i) {
6
- var e = F(i, "string");
5
+ function R(r) {
6
+ var e = _(r, "string");
7
7
  return typeof e == "symbol" ? e : e + "";
8
8
  }
9
- function F(i, e) {
10
- if (typeof i != "object" || !i) return i;
11
- var t = i[Symbol.toPrimitive];
9
+ function _(r, e) {
10
+ if (typeof r != "object" || !r) return r;
11
+ var t = r[Symbol.toPrimitive];
12
12
  if (t !== void 0) {
13
- var n = t.call(i, e);
14
- if (typeof n != "object") return n;
13
+ var i = t.call(r, e);
14
+ if (typeof i != "object") return i;
15
15
  throw new TypeError("@@toPrimitive must return a primitive value.");
16
16
  }
17
- return (e === "string" ? String : Number)(i);
17
+ return (e === "string" ? String : Number)(r);
18
18
  }
19
- class f {
20
- constructor(e, t, n, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map()) {
21
- o(this, "changeValue", void 0), o(this, "currentValues", void 0), o(this, "currentValidations", void 0), o(this, "shouldValidate", void 0), o(this, "cachedMessages", void 0), this.changeValue = e, this.currentValues = t, this.currentValidations = n, this.shouldValidate = l, this.cachedMessages = u;
19
+ class p {
20
+ constructor(e, t, i, l = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map()) {
21
+ d(this, "changeValue", void 0), d(this, "currentValues", void 0), d(this, "currentValidations", void 0), d(this, "shouldValidate", void 0), d(this, "cachedMessages", void 0), this.changeValue = e, this.currentValues = t, this.currentValidations = i, this.shouldValidate = l, this.cachedMessages = s;
22
22
  }
23
23
  isValid() {
24
24
  if (!this.currentValidations) return !0;
@@ -30,15 +30,15 @@ class f {
30
30
  return !0;
31
31
  }
32
32
  getInputProps(e) {
33
- const t = this.currentValues[e], n = t ?? null, l = e, u = this.currentValidations && this.currentValidations[e] ? this.currentValidations[e] : (s) => null;
33
+ const t = this.currentValues[e], i = t ?? null, l = e, s = this.currentValidations && this.currentValidations[e] ? this.currentValidations[e] : (u) => null;
34
34
  let a = null;
35
- return this.shouldValidate.has(e) ? (a = u(t, this.currentValues), this.cachedMessages.set(e, a)) : a = this.cachedMessages.get(e) ?? null, {
35
+ return this.shouldValidate.has(e) ? (a = s(t, this.currentValues), this.cachedMessages.set(e, a)) : a = this.cachedMessages.get(e) ?? null, {
36
36
  // @ts-ignore – z.B. wenn dein Input `defaultValue` kennt
37
- defaultValue: n ?? void 0,
38
- initialValue: n ?? void 0,
37
+ defaultValue: i ?? void 0,
38
+ initialValue: i ?? void 0,
39
39
  formValidation: {
40
- setValue: (s) => {
41
- this.changeValue(l, s);
40
+ setValue: (u) => {
41
+ this.changeValue(l, u);
42
42
  },
43
43
  notValidMessage: a,
44
44
  valid: a === null
@@ -49,28 +49,30 @@ class f {
49
49
  };
50
50
  }
51
51
  }
52
- const _ = (i) => {
52
+ const I = (r) => {
53
53
  const {
54
54
  initialValues: e,
55
55
  validate: t = {},
56
- truthyValidationBeforeSubmit: n = !0,
56
+ truthyValidationBeforeSubmit: i = !0,
57
57
  useInitialValidation: l = !0,
58
- onSubmit: u
59
- } = i, a = j.useMemo(() => e, [e]), [s, p] = g(a), d = y(/* @__PURE__ */ new Map()), c = w((r, h) => {
60
- p((V) => ({
61
- ...V,
62
- [r]: h
63
- }));
64
- }, []), [b, v] = g(new f(c, s, t, l ? new Map(Object.keys(a).map((r) => [r, !0])) : /* @__PURE__ */ new Map(), d.current));
65
- P(() => {
66
- p(a), v(new f(c, a, t, l ? new Map(Object.keys(a).map((r) => [r, !0])) : /* @__PURE__ */ new Map(), d.current));
58
+ onSubmit: s
59
+ } = r, a = O.useMemo(() => e, [e]), [u, v] = w(a), V = b(/* @__PURE__ */ new Map()), c = b(u);
60
+ c.current = u;
61
+ const h = M((n, f) => {
62
+ c.current = {
63
+ ...c.current,
64
+ [n]: f
65
+ }, v(c.current);
66
+ }, []), [S, m] = w(() => new p(h, u, t, l ? new Map(Object.keys(a).map((n) => [n, !0])) : /* @__PURE__ */ new Map(), V.current));
67
+ F(() => {
68
+ c.current = a, v(a), m(new p(h, a, t, l ? new Map(Object.keys(a).map((n) => [n, !0])) : /* @__PURE__ */ new Map(), V.current));
67
69
  }, [a]);
68
- const M = w((r, h = !0) => {
69
- const V = r && new Set(Object.keys(s)).has(String(r)) ? /* @__PURE__ */ new Map([[r, !0]]) : new Map(Object.keys(s).map((S) => [String(S), !0])), m = new f(c, s, t, V, d.current);
70
- v(m), h && !new Set(Object.keys(s)).has(String(r)) && u && (!n || m.isValid()) && u(s);
71
- }, [c, t, u, n, s]);
72
- return [b, M, s];
70
+ const j = M((n, f = !0) => {
71
+ const o = c.current, y = n && new Set(Object.keys(o)).has(String(n)) ? /* @__PURE__ */ new Map([[n, !0]]) : new Map(Object.keys(o).map((P) => [String(P), !0])), g = new p(h, o, t, y, V.current);
72
+ m(g), f && !new Set(Object.keys(o)).has(String(n)) && s && (!i || g.isValid()) && s(o);
73
+ }, [h, t, s, i]);
74
+ return [S, j, u];
73
75
  };
74
76
  export {
75
- _ as useForm
77
+ I as useForm
76
78
  };
@@ -1,14 +1,15 @@
1
- import { jsx as l, jsxs as N } from "react/jsx-runtime";
2
- import { c as k } from "../../_virtual/compiler-runtime.js";
3
- import b from "@uiw/react-json-view";
4
- import { IconChevronRight as T, IconCheck as z, IconCopy as I } from "@tabler/icons-react";
1
+ import { jsx as l, jsxs as _ } from "react/jsx-runtime";
2
+ import { c as T } from "../../_virtual/compiler-runtime.js";
3
+ import u from "@uiw/react-json-view";
4
+ import { IconChevronRight as C, IconCheck as N, IconCopy as k } from "@tabler/icons-react";
5
5
  import "../../utils/contextStore.js";
6
6
  import "react";
7
- import { mergeComponentProps as E } from "../../utils/component.js";
7
+ import { mergeComponentProps as z } from "../../utils/component.js";
8
8
  import { hashToColor as r } from "../../utils/color.js";
9
9
  import '../../assets/components/json-view/JsonView.style.css';/* empty css */
10
+ import { Text as I } from "../text/Text.js";
10
11
  import { AnimatePresence as S } from "../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
11
- import { motion as V } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
12
+ import { motion as E } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
12
13
  const q = {
13
14
  "--w-rjv-font-family": '"Inter", sans-serif',
14
15
  "--w-rjv-font-size": "0.8rem",
@@ -36,54 +37,58 @@ const q = {
36
37
  "--w-rjv-type-null-color": r("Null"),
37
38
  "--w-rjv-type-nan-color": r("Number"),
38
39
  "--w-rjv-type-undefined-color": r("Null")
39
- }, K = (a) => {
40
- const e = k.c(23);
41
- let o, i, n, c, m, t;
42
- if (e[0] !== a) {
40
+ }, K = (n) => {
41
+ const e = T.c(24);
42
+ let o, i, s, p, w, t;
43
+ if (e[0] !== n) {
43
44
  const {
44
- displayObjectSize: u,
45
- displayDataTypes: g,
46
- enableClipboard: h,
47
- indentWidth: x,
48
- value: _,
49
- ...C
50
- } = a;
51
- t = _, i = u === void 0 ? !1 : u, o = g === void 0 ? !1 : g, n = h === void 0 ? !0 : h, c = x === void 0 ? 12.8 : x, m = E("json-view", C), e[0] = a, e[1] = o, e[2] = i, e[3] = n, e[4] = c, e[5] = m, e[6] = t;
45
+ displayObjectSize: a,
46
+ displayDataTypes: f,
47
+ enableClipboard: c,
48
+ indentWidth: g,
49
+ value: h,
50
+ ...x
51
+ } = n;
52
+ t = h, i = a === void 0 ? !1 : a, o = f === void 0 ? !1 : f, s = c === void 0 ? !0 : c, p = g === void 0 ? 12.8 : g, w = z("json-view", x), e[0] = n, e[1] = o, e[2] = i, e[3] = s, e[4] = p, e[5] = w, e[6] = t;
52
53
  } else
53
- o = e[1], i = e[2], n = e[3], c = e[4], m = e[5], t = e[6];
54
- const s = m;
54
+ o = e[1], i = e[2], s = e[3], p = e[4], w = e[5], t = e[6];
55
+ const d = w;
56
+ if (t == null || typeof t != "object") {
57
+ let a;
58
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = r("Text"), e[7] = a) : a = e[7];
59
+ const f = String(t);
60
+ let c;
61
+ return e[8] !== f ? (c = /* @__PURE__ */ l(I, { c: a, children: f }), e[8] = f, e[9] = c) : c = e[9], c;
62
+ }
63
+ let m;
64
+ e[10] !== d.style ? (m = d.style ?? {}, e[10] = d.style, e[11] = m) : m = e[11];
55
65
  let v;
56
- e[7] !== t ? (v = t == null || typeof t != "object" ? [t] : t, e[7] = t, e[8] = v) : v = e[8];
57
- const y = v;
58
- let p;
59
- e[9] !== s.style ? (p = s.style ?? {}, e[9] = s.style, e[10] = p) : p = e[10];
60
- let d;
61
- e[11] !== p ? (d = {
66
+ e[12] !== m ? (v = {
62
67
  ...q,
63
- ...p
64
- }, e[11] = p, e[12] = d) : d = e[12];
65
- let w, j;
66
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ l(b.Arrow, { render: B }), j = /* @__PURE__ */ l(b.Copied, { render: J }), e[13] = w, e[14] = j) : (w = e[13], j = e[14]);
67
- let f;
68
- return e[15] !== o || e[16] !== i || e[17] !== n || e[18] !== c || e[19] !== s || e[20] !== y || e[21] !== d ? (f = /* @__PURE__ */ N(b, { displayObjectSize: i, displayDataTypes: o, enableClipboard: n, indentWidth: c, ...s, value: y, style: d, children: [
69
- w,
70
- j
71
- ] }), e[15] = o, e[16] = i, e[17] = n, e[18] = c, e[19] = s, e[20] = y, e[21] = d, e[22] = f) : f = e[22], f;
68
+ ...m
69
+ }, e[12] = m, e[13] = v) : v = e[13];
70
+ let j, y;
71
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ l(u.Arrow, { render: B }), y = /* @__PURE__ */ l(u.Copied, { render: J }), e[14] = j, e[15] = y) : (j = e[14], y = e[15]);
72
+ let b;
73
+ return e[16] !== o || e[17] !== i || e[18] !== s || e[19] !== p || e[20] !== d || e[21] !== v || e[22] !== t ? (b = /* @__PURE__ */ _(u, { displayObjectSize: i, displayDataTypes: o, enableClipboard: s, indentWidth: p, ...d, value: t, style: v, children: [
74
+ j,
75
+ y
76
+ ] }), e[16] = o, e[17] = i, e[18] = s, e[19] = p, e[20] = d, e[21] = v, e[22] = t, e[23] = b) : b = e[23], b;
72
77
  };
73
- function B(a) {
78
+ function B(n) {
74
79
  const {
75
80
  "data-expanded": e,
76
81
  ...o
77
- } = a;
78
- return /* @__PURE__ */ l("span", { ...o, className: "json-view__arrow", "data-expanded": e, children: /* @__PURE__ */ l(T, { size: 13 }) });
82
+ } = n;
83
+ return /* @__PURE__ */ l("span", { ...o, className: "json-view__arrow", "data-expanded": e, children: /* @__PURE__ */ l(C, { size: 13 }) });
79
84
  }
80
- function J(a) {
85
+ function J(n) {
81
86
  const {
82
87
  "data-copied": e,
83
88
  onClick: o,
84
89
  ...i
85
- } = a;
86
- return /* @__PURE__ */ l("span", { ...i, onClick: o, className: "json-view__copy", "data-copied": e, children: /* @__PURE__ */ l(S, { mode: "wait", initial: !1, children: /* @__PURE__ */ l(V.span, { initial: {
90
+ } = n;
91
+ return /* @__PURE__ */ l("span", { ...i, onClick: o, className: "json-view__copy", "data-copied": e, children: /* @__PURE__ */ l(S, { mode: "wait", initial: !1, children: /* @__PURE__ */ l(E.span, { initial: {
87
92
  opacity: 0,
88
93
  scale: 0.5,
89
94
  filter: "blur(0.35rem)"
@@ -100,7 +105,7 @@ function J(a) {
100
105
  ease: "easeIn"
101
106
  }, style: {
102
107
  display: "inline-flex"
103
- }, children: e ? /* @__PURE__ */ l(z, { size: 13 }) : /* @__PURE__ */ l(I, { size: 13 }) }, e ? "check" : "copy") }) });
108
+ }, children: e ? /* @__PURE__ */ l(N, { size: 13 }) : /* @__PURE__ */ l(k, { size: 13 }) }, e ? "check" : "copy") }) });
104
109
  }
105
110
  export {
106
111
  K as JsonView
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/pictor",
3
- "version": "0.10.6",
3
+ "version": "0.10.8",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "scripts": {