@kolkrabbi/design-editor 0.27.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BindDot-CMUtpJPX.js → BindDot-CaZu6Uuz.js} +5 -5
- package/dist/{ColorModesWindow-CWhL6nfm.js → ColorModesWindow-D65R5YR5.js} +289 -359
- package/dist/Timeline-OZsY9CvR.js +910 -0
- package/dist/TreePicker-BQYPaQv3.js +166 -0
- package/dist/{core-EWu8GfXL.js → core-DP3uwW4A.js} +3263 -3861
- package/dist/core.js +5 -5
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +1219 -795
- package/dist/{useLayerEdit-BFcZhiNX.js → effectCategories-DJrQJ7vg.js} +3683 -3931
- package/dist/{effects-DZEmfY7a.js → effects-dbxBWOCp.js} +115 -114
- package/dist/effects.js +1 -1
- package/dist/{generators-D1tFSZgG.js → generators-CQQxNX9W.js} +721 -482
- package/dist/generators.js +1 -1
- package/dist/{host-ZLJKCZ54.js → host-DBTmkJuu.js} +1 -1
- package/dist/{host-CRsCCafL.js → host-DXizGh-A.js} +36 -36
- package/dist/morphStore-DaOLa9oj.js +145 -0
- package/dist/motion-yfgCBe5u.js +4261 -0
- package/dist/motion.js +1 -1
- package/dist/{previewScale-BMkeLc6w.js → previewScale-DsG-A1ZC.js} +1 -1
- package/dist/{rolls-BGtqxVYq.js → rolls-CGma4Bua.js} +1809 -2107
- package/dist/{src-BpTckTDZ.js → src-CMdJeS6j.js} +1 -1
- package/dist/useLayerEdit-CnPxtfWc.js +453 -0
- package/package.json +7 -7
- package/dist/Timeline-BObvcdXF.js +0 -3014
- package/dist/TreePicker-nMf17QGH.js +0 -68
- package/dist/motion-C_u7tsis.js +0 -2295
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { F as e, L as t } from "./rolls-BGtqxVYq.js";
|
|
2
|
-
import { Dropdown as n, LabeledControl as r, SettingsRow as i } from "@kolkrabbi/kol-component";
|
|
3
|
-
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
-
//#region src/editor/compose/inspectors/TreePicker.jsx
|
|
5
|
-
function c(e) {
|
|
6
|
-
return /* @__PURE__ */ o(n, {
|
|
7
|
-
variant: "subtle",
|
|
8
|
-
size: t(),
|
|
9
|
-
className: "w-full",
|
|
10
|
-
...e
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function l({ label: t, options: n, value: a, onChange: s, children: l, inline: u = !0 }) {
|
|
14
|
-
let d = l ?? /* @__PURE__ */ o(c, {
|
|
15
|
-
options: n,
|
|
16
|
-
value: a,
|
|
17
|
-
onChange: s
|
|
18
|
-
});
|
|
19
|
-
return u ? /* @__PURE__ */ o(i, {
|
|
20
|
-
label: t,
|
|
21
|
-
align: "fill",
|
|
22
|
-
labelWidth: e,
|
|
23
|
-
children: d
|
|
24
|
-
}) : /* @__PURE__ */ o(r, {
|
|
25
|
-
label: t,
|
|
26
|
-
children: d
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function u({ tree: e, presets: t, current: n, onPick: r, inline: i = !0, subLabel: c = (e) => e }) {
|
|
30
|
-
let u = e.find((e) => e.label === n.typeLabel) ?? e.find((e) => e.subs.includes(n.sub)) ?? e[0], d = t.filter((e) => e.sub === n.sub), f = (e) => t.find((t) => t.sub === e);
|
|
31
|
-
return /* @__PURE__ */ s(a, { children: [
|
|
32
|
-
/* @__PURE__ */ o(l, {
|
|
33
|
-
inline: i,
|
|
34
|
-
label: "Type",
|
|
35
|
-
options: e.map((e) => ({
|
|
36
|
-
value: e.label,
|
|
37
|
-
label: e.label
|
|
38
|
-
})),
|
|
39
|
-
value: u.label,
|
|
40
|
-
onChange: (t) => {
|
|
41
|
-
let n = e.find((e) => e.label === t);
|
|
42
|
-
n && r(f(n.subs[0]));
|
|
43
|
-
}
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ o(l, {
|
|
46
|
-
inline: i,
|
|
47
|
-
label: "Category",
|
|
48
|
-
options: u.subs.map((e) => ({
|
|
49
|
-
value: e,
|
|
50
|
-
label: c(e)
|
|
51
|
-
})),
|
|
52
|
-
value: n.sub,
|
|
53
|
-
onChange: (e) => r(f(e))
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ o(l, {
|
|
56
|
-
inline: i,
|
|
57
|
-
label: "Preset",
|
|
58
|
-
options: d.map((e) => ({
|
|
59
|
-
value: e.id,
|
|
60
|
-
label: e.label
|
|
61
|
-
})),
|
|
62
|
-
value: n.id,
|
|
63
|
-
onChange: (e) => r(t.find((t) => t.id === e))
|
|
64
|
-
})
|
|
65
|
-
] });
|
|
66
|
-
}
|
|
67
|
-
//#endregion
|
|
68
|
-
export { l as n, u as r, c as t };
|