@kolkrabbi/design-editor 0.47.0 → 0.49.0
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/README.md +18 -0
- package/dist/{BindDot-B85UV79g.js → BindDot-BAAc-KSs.js} +1 -1
- package/dist/{KolboxView-n6kEPJtV.js → KolboxView-DxcGz6MC.js} +3310 -5355
- package/dist/{Timeline-EbecYeGh.js → Timeline-BH3BF2m4.js} +3 -9
- package/dist/{TreePicker-2RUSyGl4.js → TreePicker-RImJ6I_0.js} +19 -19
- package/dist/{core-9UlJPBwX.js → core-DyfKZlBI.js} +3550 -5884
- package/dist/core.js +5 -5
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +6 -6
- package/dist/{effectCategories-CCpYmxS0.js → effectCategories-B5jhXEyy.js} +32 -32
- package/dist/effects-BAwNQ8Kj.js +447 -0
- package/dist/effects.js +1 -1
- package/dist/{generators-DY4_ymWh.js → generators-OCg5XjTX.js} +986 -1021
- package/dist/generators.js +1 -1
- package/dist/{host-Bo6itV50.js → host-DS-pAjP0.js} +2 -2
- package/dist/kolbox-pages.js +2218 -0
- package/dist/kolbox-sheet.js +0 -0
- package/dist/kolbox.css +3 -0
- package/dist/{morphStore-Bm30Ekce.js → morphStore-D6xiYiR_.js} +1 -1
- package/dist/{motion-BOWE4m3Q.js → motion-p5pHH9_J.js} +103 -103
- package/dist/motion.js +1 -1
- package/dist/portable-Bs8ieXiu.js +2128 -0
- package/dist/{rolls-DugKaHUw.js → rolls-ZToBSscx.js} +2897 -3068
- package/dist/{src-BlvCHYVY.js → src-DEx6Oh0D.js} +754 -996
- package/dist/{store-BMGP1qou.js → store-BDAxvWTE.js} +15 -15
- package/dist/{useLayerEdit-B5nF5I9b.js → useLayerEdit-D6vwfIoB.js} +141 -141
- package/package.json +17 -14
- package/dist/effects-DspYFJAM.js +0 -447
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as e, o as t, s as n } from "./__vite-browser-external-y2xWjzgx.js";
|
|
2
|
-
import { D as r, J as i, M as a, N as o } from "./rolls-
|
|
3
|
-
import { m as s, s as c, u as l } from "./morphStore-
|
|
2
|
+
import { D as r, J as i, M as a, N as o } from "./rolls-ZToBSscx.js";
|
|
3
|
+
import { m as s, s as c, u as l } from "./morphStore-D6xiYiR_.js";
|
|
4
4
|
import { Button as u, Dropdown as d, Input as f, Tooltip as p, floatSurfaceClass as m, useGrabEdge as h } from "@kolkrabbi/kol-component";
|
|
5
5
|
import { Fragment as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
6
6
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
@@ -132,7 +132,6 @@ var ne = (e) => Object.values(e).some((e) => r(e) && e.bind === "mod" && String(
|
|
|
132
132
|
function U({ name: e, label: t, on: n = !0, toggle: r = !1, size: i = 14, onClick: a, disabled: o, className: s = "" }) {
|
|
133
133
|
return /* @__PURE__ */ S(p, {
|
|
134
134
|
label: t,
|
|
135
|
-
variant: "float",
|
|
136
135
|
asChild: !0,
|
|
137
136
|
children: /* @__PURE__ */ S("button", {
|
|
138
137
|
type: "button",
|
|
@@ -206,7 +205,6 @@ function ie({ track: e, view: t, selected: n, setSelected: r, writeKeys: i, lit:
|
|
|
206
205
|
let i = s.current?.index === r ? s.current.t : n.t, a = u ? e.names?.[r] : null;
|
|
207
206
|
return /* @__PURE__ */ S(p, {
|
|
208
207
|
label: u ? `${a} · ${H(i, t.loop)} s` : `${H(i, t.loop)} s · v=${typeof n.v == "number" ? Math.round(n.v * 100) / 100 : n.v} (alt-click deletes)`,
|
|
209
|
-
variant: "float",
|
|
210
208
|
asChild: !0,
|
|
211
209
|
children: /* @__PURE__ */ S("span", {
|
|
212
210
|
"data-diamond": "",
|
|
@@ -558,7 +556,6 @@ function le({ tracks: e, selected: t, setSelected: n, writeKeys: r, len: i }) {
|
|
|
558
556
|
]
|
|
559
557
|
}),
|
|
560
558
|
!o.header && /* @__PURE__ */ S(f, {
|
|
561
|
-
variant: "float",
|
|
562
559
|
size: "sm",
|
|
563
560
|
chars: 7,
|
|
564
561
|
type: l ? "number" : "text",
|
|
@@ -573,7 +570,6 @@ function le({ tracks: e, selected: t, setSelected: n, writeKeys: r, len: i }) {
|
|
|
573
570
|
onChange: (e) => c({ easing: e === "custom" ? [...J(s.easing) ?? a["in-out"]] : e })
|
|
574
571
|
}),
|
|
575
572
|
/* @__PURE__ */ S(u, {
|
|
576
|
-
variant: "float",
|
|
577
573
|
tone: "ghost",
|
|
578
574
|
size: "sm",
|
|
579
575
|
onClick: () => {
|
|
@@ -582,7 +578,6 @@ function le({ tracks: e, selected: t, setSelected: n, writeKeys: r, len: i }) {
|
|
|
582
578
|
children: "Delete key"
|
|
583
579
|
}),
|
|
584
580
|
/* @__PURE__ */ S(u, {
|
|
585
|
-
variant: "float",
|
|
586
581
|
tone: "ghost",
|
|
587
582
|
size: "sm",
|
|
588
583
|
className: "ml-auto",
|
|
@@ -837,7 +832,6 @@ function ge({ surface: e = "solid", title: t, count: n = 0, onAdd: r, mode: i =
|
|
|
837
832
|
}),
|
|
838
833
|
/* @__PURE__ */ S(p, {
|
|
839
834
|
label: "Zoom the lanes",
|
|
840
|
-
variant: "float",
|
|
841
835
|
asChild: !0,
|
|
842
836
|
children: /* @__PURE__ */ C("button", {
|
|
843
837
|
type: "button",
|
|
@@ -909,4 +903,4 @@ function ge({ surface: e = "solid", title: t, count: n = 0, onAdd: r, mode: i =
|
|
|
909
903
|
});
|
|
910
904
|
}
|
|
911
905
|
//#endregion
|
|
912
|
-
export { pe as a, E as c, he as i,
|
|
906
|
+
export { pe as a, E as c, he as i, O as l, ge as n, M as o, R as r, N as s, me as t };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Cr as e, F as t,
|
|
1
|
+
import { Cr as e, F as t, Jn as n, L as r, Qn as i, Xn as a, _r as o, xr as s, yr as c } from "./rolls-ZToBSscx.js";
|
|
2
2
|
import { embedFontFace as l } from "@kolkrabbi/kol-component";
|
|
3
3
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
4
|
//#region src/kinetic/fonts.js
|
|
5
|
-
var p = (
|
|
6
|
-
let
|
|
5
|
+
var p = (e, t) => {
|
|
6
|
+
let n = s[e];
|
|
7
7
|
return {
|
|
8
|
-
key:
|
|
9
|
-
label:
|
|
10
|
-
family:
|
|
11
|
-
url:
|
|
12
|
-
italicUrl:
|
|
13
|
-
slnt:
|
|
8
|
+
key: e,
|
|
9
|
+
label: n.label,
|
|
10
|
+
family: n.css,
|
|
11
|
+
url: n.roman,
|
|
12
|
+
italicUrl: n.italic,
|
|
13
|
+
slnt: n.slnt,
|
|
14
14
|
outline: !0,
|
|
15
|
-
italicStyle:
|
|
15
|
+
italicStyle: n.slnt == null ? "italic" : `oblique ${-n.slnt}deg`,
|
|
16
16
|
axes: [{
|
|
17
17
|
tag: "wght",
|
|
18
|
-
min:
|
|
19
|
-
max:
|
|
20
|
-
def:
|
|
18
|
+
min: n.min,
|
|
19
|
+
max: n.max,
|
|
20
|
+
def: t
|
|
21
21
|
}]
|
|
22
22
|
};
|
|
23
23
|
}, m = {
|
|
@@ -49,8 +49,8 @@ var p = (t, n) => {
|
|
|
49
49
|
def: 400
|
|
50
50
|
}]
|
|
51
51
|
}, g = [
|
|
52
|
+
p(o, 400),
|
|
52
53
|
p(c, 400),
|
|
53
|
-
p(s, 400),
|
|
54
54
|
m,
|
|
55
55
|
h
|
|
56
56
|
], _ = [
|
|
@@ -80,7 +80,7 @@ var C = !1;
|
|
|
80
80
|
async function w() {
|
|
81
81
|
if (!(C || typeof FontFace > "u")) {
|
|
82
82
|
C = !0;
|
|
83
|
-
for (let
|
|
83
|
+
for (let t of g) t.outline && e(t.key);
|
|
84
84
|
for (let e of g) {
|
|
85
85
|
if (e.outline) continue;
|
|
86
86
|
let t = {}, n = e.axes.find((e) => e.tag === "wght"), r = e.axes.find((e) => e.tag === "wdth");
|
|
@@ -144,9 +144,9 @@ function A(e) {
|
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region src/editor/compose/inspectors/TreePicker.jsx
|
|
146
146
|
function j(e) {
|
|
147
|
-
return /* @__PURE__ */ d(
|
|
147
|
+
return /* @__PURE__ */ d(n, {
|
|
148
148
|
variant: "subtle",
|
|
149
|
-
size:
|
|
149
|
+
size: r(),
|
|
150
150
|
className: "w-full",
|
|
151
151
|
...e
|
|
152
152
|
});
|
|
@@ -157,12 +157,12 @@ function M({ label: e, options: n, value: r, onChange: o, children: s, inline: c
|
|
|
157
157
|
value: r,
|
|
158
158
|
onChange: o
|
|
159
159
|
});
|
|
160
|
-
return c ? /* @__PURE__ */ d(
|
|
160
|
+
return c ? /* @__PURE__ */ d(i, {
|
|
161
161
|
label: e,
|
|
162
162
|
align: "fill",
|
|
163
163
|
labelWidth: t,
|
|
164
164
|
children: l
|
|
165
|
-
}) : /* @__PURE__ */ d(
|
|
165
|
+
}) : /* @__PURE__ */ d(a, {
|
|
166
166
|
label: e,
|
|
167
167
|
children: l
|
|
168
168
|
});
|