@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
|
|
4
|
-
import
|
|
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
|
|
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
|
-
}],
|
|
47
|
+
}], F = p({
|
|
45
48
|
theme: "light",
|
|
46
49
|
settings: u,
|
|
47
50
|
styles: h
|
|
48
|
-
}),
|
|
51
|
+
}), Y = e.memo((f) => {
|
|
49
52
|
const {
|
|
50
|
-
title:
|
|
51
|
-
right:
|
|
52
|
-
left:
|
|
53
|
-
rightType:
|
|
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:
|
|
60
|
-
onChange:
|
|
62
|
+
formValidation: i,
|
|
63
|
+
onChange: g,
|
|
61
64
|
wrapperComponent: k,
|
|
62
|
-
...
|
|
63
|
-
} =
|
|
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 =
|
|
68
|
-
m?.(
|
|
69
|
-
}, [m,
|
|
70
|
-
return /* @__PURE__ */ c(
|
|
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
|
-
|
|
75
|
+
Y.displayName = "EditorInput";
|
|
73
76
|
export {
|
|
74
|
-
|
|
77
|
+
Y as EditorInput
|
|
75
78
|
};
|
|
@@ -1,68 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Input as
|
|
4
|
-
import {
|
|
5
|
-
import { Button as
|
|
6
|
-
import { clearInputElement as
|
|
7
|
-
import { Flex as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
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:
|
|
13
|
-
visible:
|
|
14
|
-
right:
|
|
15
|
-
formValidation:
|
|
13
|
+
clearable: p = !0,
|
|
14
|
+
visible: d = !0,
|
|
15
|
+
right: m,
|
|
16
|
+
formValidation: s,
|
|
16
17
|
...f
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
!
|
|
28
|
+
i && !s?.valid && /* @__PURE__ */ l(z, { mt: 0.7, style: {
|
|
26
29
|
flexDirection: "column"
|
|
27
30
|
}, children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
}),
|
|
61
|
-
if (!
|
|
62
|
-
let
|
|
63
|
-
return
|
|
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
|
-
|
|
67
|
-
|
|
52
|
+
L as PasswordInput,
|
|
53
|
+
X as passwordValidation
|
|
68
54
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
return (e =
|
|
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
|
|
6
|
-
var e =
|
|
5
|
+
function R(r) {
|
|
6
|
+
var e = _(r, "string");
|
|
7
7
|
return typeof e == "symbol" ? e : e + "";
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
if (typeof
|
|
11
|
-
var t =
|
|
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
|
|
14
|
-
if (typeof
|
|
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)(
|
|
17
|
+
return (e === "string" ? String : Number)(r);
|
|
18
18
|
}
|
|
19
|
-
class
|
|
20
|
-
constructor(e, t,
|
|
21
|
-
|
|
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],
|
|
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 =
|
|
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:
|
|
38
|
-
initialValue:
|
|
37
|
+
defaultValue: i ?? void 0,
|
|
38
|
+
initialValue: i ?? void 0,
|
|
39
39
|
formValidation: {
|
|
40
|
-
setValue: (
|
|
41
|
-
this.changeValue(l,
|
|
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
|
|
52
|
+
const I = (r) => {
|
|
53
53
|
const {
|
|
54
54
|
initialValues: e,
|
|
55
55
|
validate: t = {},
|
|
56
|
-
truthyValidationBeforeSubmit:
|
|
56
|
+
truthyValidationBeforeSubmit: i = !0,
|
|
57
57
|
useInitialValidation: l = !0,
|
|
58
|
-
onSubmit:
|
|
59
|
-
} =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
}, [
|
|
72
|
-
return [
|
|
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
|
-
|
|
77
|
+
I as useForm
|
|
76
78
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import { IconChevronRight as
|
|
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
|
|
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
|
|
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 = (
|
|
40
|
-
const e =
|
|
41
|
-
let o, i,
|
|
42
|
-
if (e[0] !==
|
|
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:
|
|
45
|
-
displayDataTypes:
|
|
46
|
-
enableClipboard:
|
|
47
|
-
indentWidth:
|
|
48
|
-
value:
|
|
49
|
-
...
|
|
50
|
-
} =
|
|
51
|
-
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],
|
|
54
|
-
const
|
|
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[
|
|
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
|
-
...
|
|
64
|
-
}, e[
|
|
65
|
-
let
|
|
66
|
-
e[
|
|
67
|
-
let
|
|
68
|
-
return e[
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
] }), e[
|
|
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(
|
|
78
|
+
function B(n) {
|
|
74
79
|
const {
|
|
75
80
|
"data-expanded": e,
|
|
76
81
|
...o
|
|
77
|
-
} =
|
|
78
|
-
return /* @__PURE__ */ l("span", { ...o, className: "json-view__arrow", "data-expanded": e, children: /* @__PURE__ */ l(
|
|
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(
|
|
85
|
+
function J(n) {
|
|
81
86
|
const {
|
|
82
87
|
"data-copied": e,
|
|
83
88
|
onClick: o,
|
|
84
89
|
...i
|
|
85
|
-
} =
|
|
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(
|
|
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(
|
|
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
|