@kolkrabbi/design-editor 0.23.0 → 0.26.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.
Files changed (34) hide show
  1. package/README.md +2 -2
  2. package/dist/BindDot-CMUtpJPX.js +84 -0
  3. package/dist/BufferGeometryUtils-Cc8LNd5v.js +150 -0
  4. package/dist/ColorModesWindow-CWhL6nfm.js +1493 -0
  5. package/dist/GLTFLoader-BFir8PCc.js +1361 -0
  6. package/dist/OBJLoader-BgqC_-Jn.js +287 -0
  7. package/dist/{OrbitControls-Cql8Rn2i.js → OrbitControls-DVpLgmKv.js} +2755 -2202
  8. package/dist/STLLoader-C6DGLf6r.js +83 -0
  9. package/dist/TreePicker-nMf17QGH.js +68 -0
  10. package/dist/core-CfGqY4VB.js +17504 -0
  11. package/dist/core.js +4 -3
  12. package/dist/design-editor.css +1 -1
  13. package/dist/design-editor.js +2114 -916
  14. package/dist/effects-DZEmfY7a.js +444 -0
  15. package/dist/effects.js +1 -1
  16. package/dist/generators-D1tFSZgG.js +2961 -0
  17. package/dist/generators.js +1 -1
  18. package/dist/{host-B4SRaN9h.js → host-CRsCCafL.js} +429 -370
  19. package/dist/{host-be1CWhN1.js → host-ZLJKCZ54.js} +137 -136
  20. package/dist/motion-BJ8xqUKI.js +3096 -0
  21. package/dist/motion.js +1 -1
  22. package/dist/previewScale-BMkeLc6w.js +26 -0
  23. package/dist/{rolls-Bg1XHuvJ.js → rolls-BGtqxVYq.js} +2621 -1522
  24. package/dist/{src-B5fQgAVE.js → src-BpTckTDZ.js} +1 -1
  25. package/dist/{labels-B5qkocWy.js → timelinePinned-BwYq1Msi.js} +321 -164
  26. package/dist/{useLayerEdit-ieOjHx6x.js → useLayerEdit-BFcZhiNX.js} +20992 -12580
  27. package/package.json +11 -9
  28. package/dist/RuleRow-BXkjpTyN.js +0 -650
  29. package/dist/TreePicker-DLmMl0aU.js +0 -68
  30. package/dist/core-CTI1YRJD.js +0 -12335
  31. package/dist/effectCategories-BcaQSD_V.js +0 -4216
  32. package/dist/effects-pCd8YTdQ.js +0 -469
  33. package/dist/generators-B8_StNAy.js +0 -2517
  34. package/dist/motion-DFnAar_2.js +0 -2263
@@ -1,68 +0,0 @@
1
- import { S as e } from "./rolls-Bg1XHuvJ.js";
2
- import { Dropdown as t, LabeledControl as n, SettingsRow as r } from "@kolkrabbi/kol-component";
3
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
4
- //#region src/editor/compose/inspectors/TreePicker.jsx
5
- function s(n) {
6
- return /* @__PURE__ */ a(t, {
7
- variant: "subtle",
8
- size: e(),
9
- className: "w-full",
10
- ...n
11
- });
12
- }
13
- function c({ label: e, options: t, value: i, onChange: o, children: c, inline: l = !1 }) {
14
- let u = c ?? /* @__PURE__ */ a(s, {
15
- options: t,
16
- value: i,
17
- onChange: o
18
- });
19
- return l ? /* @__PURE__ */ a(r, {
20
- label: e,
21
- align: "fill",
22
- labelWidth: 112,
23
- children: u
24
- }) : /* @__PURE__ */ a(n, {
25
- label: e,
26
- children: u
27
- });
28
- }
29
- function l({ tree: e, presets: t, current: n, onPick: r, inline: s = !1 }) {
30
- let l = e.find((e) => e.subs.includes(n.sub)) ?? e[0], u = t.filter((e) => e.sub === n.sub), d = (e) => t.find((t) => t.sub === e);
31
- return /* @__PURE__ */ o(i, { children: [
32
- /* @__PURE__ */ a(c, {
33
- inline: s,
34
- label: "Type",
35
- options: e.map((e) => ({
36
- value: e.label,
37
- label: e.label
38
- })),
39
- value: l.label,
40
- onChange: (t) => {
41
- let n = e.find((e) => e.label === t);
42
- n && r(d(n.subs[0]));
43
- }
44
- }),
45
- /* @__PURE__ */ a(c, {
46
- inline: s,
47
- label: "Category",
48
- options: l.subs.map((e) => ({
49
- value: e,
50
- label: e
51
- })),
52
- value: n.sub,
53
- onChange: (e) => r(d(e))
54
- }),
55
- /* @__PURE__ */ a(c, {
56
- inline: s,
57
- label: "Preset",
58
- options: u.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 { c as n, l as r, s as t };