@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.
@@ -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-DugKaHUw.js";
3
- import { m as s, s as c, u as l } from "./morphStore-Bm30Ekce.js";
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, T as l, ge as n, M as o, R as r, N as s, me as t, O as u };
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, L as n, Tr as r, Yn as i, Zn as a, qn as o, xr as s, yr as c } from "./rolls-DugKaHUw.js";
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 = (t, n) => {
6
- let r = e[t];
5
+ var p = (e, t) => {
6
+ let n = s[e];
7
7
  return {
8
- key: t,
9
- label: r.label,
10
- family: r.css,
11
- url: r.roman,
12
- italicUrl: r.italic,
13
- slnt: r.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: r.slnt == null ? "italic" : `oblique ${-r.slnt}deg`,
15
+ italicStyle: n.slnt == null ? "italic" : `oblique ${-n.slnt}deg`,
16
16
  axes: [{
17
17
  tag: "wght",
18
- min: r.min,
19
- max: r.max,
20
- def: n
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 e of g) e.outline && r(e.key);
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(o, {
147
+ return /* @__PURE__ */ d(n, {
148
148
  variant: "subtle",
149
- size: n(),
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(a, {
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(i, {
165
+ }) : /* @__PURE__ */ d(a, {
166
166
  label: e,
167
167
  children: l
168
168
  });