@xenosystem/blocks 0.12.8 → 0.13.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/dist/chunk-BP4EYOCQ.js +109 -0
- package/dist/chunk-OCEZTO2D.js +228 -0
- package/dist/edit/index.d.ts +4 -4
- package/dist/edit/index.js +457 -665
- package/dist/icons/index.d.ts +23 -0
- package/dist/icons/index.js +79 -0
- package/dist/time/index.d.ts +2 -1
- package/dist/time/index.js +109 -186
- package/package.json +7 -3
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// src/time/transport/react/icons.tsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
var base = (size) => ({
|
|
4
|
+
width: size,
|
|
5
|
+
height: size,
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
stroke: "currentColor",
|
|
9
|
+
strokeWidth: 1.5,
|
|
10
|
+
strokeLinecap: "round",
|
|
11
|
+
strokeLinejoin: "round",
|
|
12
|
+
"aria-hidden": true
|
|
13
|
+
});
|
|
14
|
+
function PlayIcon({ size = 12 }) {
|
|
15
|
+
return /* @__PURE__ */ jsx("svg", { ...base(size), fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M7 4.5v15l13-7.5z" }) });
|
|
16
|
+
}
|
|
17
|
+
function PauseIcon({ size = 12 }) {
|
|
18
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), fill: "currentColor", stroke: "none", children: [
|
|
19
|
+
/* @__PURE__ */ jsx("rect", { x: "6", y: "4", width: "4", height: "16", rx: "1" }),
|
|
20
|
+
/* @__PURE__ */ jsx("rect", { x: "14", y: "4", width: "4", height: "16", rx: "1" })
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
function StopIcon({ size = 11 }) {
|
|
24
|
+
return /* @__PURE__ */ jsx("svg", { ...base(size), fill: "currentColor", stroke: "none", children: /* @__PURE__ */ jsx("rect", { x: "5", y: "5", width: "14", height: "14", rx: "2" }) });
|
|
25
|
+
}
|
|
26
|
+
function RecordIcon({ size = 11 }) {
|
|
27
|
+
return /* @__PURE__ */ jsx("svg", { ...base(size), fill: "currentColor", stroke: "none", children: /* @__PURE__ */ jsx("rect", { x: "6", y: "6", width: "12", height: "12", rx: "3" }) });
|
|
28
|
+
}
|
|
29
|
+
function StartIcon({ size = 11 }) {
|
|
30
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), children: [
|
|
31
|
+
/* @__PURE__ */ jsx("path", { d: "M19 20 9 12l10-8z" }),
|
|
32
|
+
/* @__PURE__ */ jsx("path", { d: "M5 19V5" })
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
function EndIcon({ size = 11 }) {
|
|
36
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), children: [
|
|
37
|
+
/* @__PURE__ */ jsx("path", { d: "m5 4 10 8-10 8z" }),
|
|
38
|
+
/* @__PURE__ */ jsx("path", { d: "M19 5v14" })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
function StepBackIcon({ size = 11 }) {
|
|
42
|
+
return /* @__PURE__ */ jsx("svg", { ...base(size), children: /* @__PURE__ */ jsx("path", { d: "M15 18 9 12l6-6" }) });
|
|
43
|
+
}
|
|
44
|
+
function StepForwardIcon({ size = 11 }) {
|
|
45
|
+
return /* @__PURE__ */ jsx("svg", { ...base(size), children: /* @__PURE__ */ jsx("path", { d: "m9 6 6 6-6 6" }) });
|
|
46
|
+
}
|
|
47
|
+
function ShuttleLeftIcon({ size = 11 }) {
|
|
48
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), children: [
|
|
49
|
+
/* @__PURE__ */ jsx("path", { d: "M11 19 2 12l9-7z" }),
|
|
50
|
+
/* @__PURE__ */ jsx("path", { d: "M22 19l-9-7 9-7z" })
|
|
51
|
+
] });
|
|
52
|
+
}
|
|
53
|
+
function ShuttleRightIcon({ size = 11 }) {
|
|
54
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), children: [
|
|
55
|
+
/* @__PURE__ */ jsx("path", { d: "m13 19 9-7-9-7z" }),
|
|
56
|
+
/* @__PURE__ */ jsx("path", { d: "m2 19 9-7-9-7z" })
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
function LoopIcon({ size = 11 }) {
|
|
60
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), children: [
|
|
61
|
+
/* @__PURE__ */ jsx("path", { d: "m17 2 4 4-4 4" }),
|
|
62
|
+
/* @__PURE__ */ jsx("path", { d: "M3 11v-1a4 4 0 0 1 4-4h14" }),
|
|
63
|
+
/* @__PURE__ */ jsx("path", { d: "m7 22-4-4 4-4" }),
|
|
64
|
+
/* @__PURE__ */ jsx("path", { d: "M21 13v1a4 4 0 0 1-4 4H3" })
|
|
65
|
+
] });
|
|
66
|
+
}
|
|
67
|
+
function MetronomeIcon({ size = 11 }) {
|
|
68
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), children: [
|
|
69
|
+
/* @__PURE__ */ jsx("path", { d: "M9 3h6l4 18H5z" }),
|
|
70
|
+
/* @__PURE__ */ jsx("path", { d: "m12 18 4-11" })
|
|
71
|
+
] });
|
|
72
|
+
}
|
|
73
|
+
function PlayPauseIcon({ playing, size }) {
|
|
74
|
+
return playing ? /* @__PURE__ */ jsx(PauseIcon, { size }) : /* @__PURE__ */ jsx(PlayIcon, { size });
|
|
75
|
+
}
|
|
76
|
+
var TRANSPORT_ICONS = {
|
|
77
|
+
"transport/PlayIcon": PlayIcon,
|
|
78
|
+
"transport/PauseIcon": PauseIcon,
|
|
79
|
+
"transport/PlayPauseIcon": PlayPauseIcon,
|
|
80
|
+
"transport/StopIcon": StopIcon,
|
|
81
|
+
"transport/RecordIcon": RecordIcon,
|
|
82
|
+
"transport/StartIcon": StartIcon,
|
|
83
|
+
"transport/EndIcon": EndIcon,
|
|
84
|
+
"transport/StepBackIcon": StepBackIcon,
|
|
85
|
+
"transport/StepForwardIcon": StepForwardIcon,
|
|
86
|
+
"transport/ShuttleLeftIcon": ShuttleLeftIcon,
|
|
87
|
+
"transport/ShuttleRightIcon": ShuttleRightIcon,
|
|
88
|
+
"transport/LoopIcon": LoopIcon,
|
|
89
|
+
"transport/MetronomeIcon": MetronomeIcon
|
|
90
|
+
};
|
|
91
|
+
var TRANSPORT_RUNTIME_UNITS = [];
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
PlayIcon,
|
|
95
|
+
PauseIcon,
|
|
96
|
+
StopIcon,
|
|
97
|
+
RecordIcon,
|
|
98
|
+
StartIcon,
|
|
99
|
+
EndIcon,
|
|
100
|
+
StepBackIcon,
|
|
101
|
+
StepForwardIcon,
|
|
102
|
+
ShuttleLeftIcon,
|
|
103
|
+
ShuttleRightIcon,
|
|
104
|
+
LoopIcon,
|
|
105
|
+
MetronomeIcon,
|
|
106
|
+
PlayPauseIcon,
|
|
107
|
+
TRANSPORT_ICONS,
|
|
108
|
+
TRANSPORT_RUNTIME_UNITS
|
|
109
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
// src/edit/layers/react/icons.tsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
var base = (size) => ({
|
|
4
|
+
width: size,
|
|
5
|
+
height: size,
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
stroke: "currentColor",
|
|
9
|
+
strokeWidth: 1.5,
|
|
10
|
+
strokeLinecap: "round",
|
|
11
|
+
strokeLinejoin: "round",
|
|
12
|
+
"aria-hidden": true
|
|
13
|
+
});
|
|
14
|
+
function EyeIcon({ size = 12, className }) {
|
|
15
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), className, children: [
|
|
16
|
+
/* @__PURE__ */ jsx("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z" }),
|
|
17
|
+
/* @__PURE__ */ jsx("path", { d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
function EyeOffIcon({ size = 12, className }) {
|
|
21
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), className, children: [
|
|
22
|
+
/* @__PURE__ */ jsx("path", { d: "M10.7 5.1A11 11 0 0 1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-2.4 3.4M6.6 6.6A18 18 0 0 0 2 12s3.5 7 10 7a10.9 10.9 0 0 0 5.4-1.4" }),
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M14.1 14.1a3 3 0 1 1-4.2-4.2" }),
|
|
24
|
+
/* @__PURE__ */ jsx("path", { d: "m2 2 20 20" })
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
function LockIcon({ size = 12, className }) {
|
|
28
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), className, children: [
|
|
29
|
+
/* @__PURE__ */ jsx("rect", { width: "14", height: "10", x: "5", y: "11", rx: "2" }),
|
|
30
|
+
/* @__PURE__ */ jsx("path", { d: "M8 11V7a4 4 0 0 1 8 0v4" })
|
|
31
|
+
] });
|
|
32
|
+
}
|
|
33
|
+
function UnlockIcon({ size = 12, className }) {
|
|
34
|
+
return /* @__PURE__ */ jsxs("svg", { ...base(size), className, children: [
|
|
35
|
+
/* @__PURE__ */ jsx("rect", { width: "14", height: "10", x: "5", y: "11", rx: "2" }),
|
|
36
|
+
/* @__PURE__ */ jsx("path", { d: "M8 11V7a4 4 0 0 1 7.5-2" })
|
|
37
|
+
] });
|
|
38
|
+
}
|
|
39
|
+
function KindGlyph({ size = 10 }) {
|
|
40
|
+
return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "16", height: "16", rx: "2" }) });
|
|
41
|
+
}
|
|
42
|
+
function VisibilityIcon({ open, size }) {
|
|
43
|
+
return open ? /* @__PURE__ */ jsx(EyeIcon, { size }) : /* @__PURE__ */ jsx(EyeOffIcon, { size });
|
|
44
|
+
}
|
|
45
|
+
function LockStateIcon({ locked, size }) {
|
|
46
|
+
return locked ? /* @__PURE__ */ jsx(LockIcon, { size }) : /* @__PURE__ */ jsx(UnlockIcon, { size });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// src/edit/inspector/react/icons.tsx
|
|
50
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
51
|
+
var base2 = (size) => ({
|
|
52
|
+
width: size,
|
|
53
|
+
height: size,
|
|
54
|
+
viewBox: "0 0 24 24",
|
|
55
|
+
fill: "none",
|
|
56
|
+
stroke: "currentColor",
|
|
57
|
+
strokeWidth: 1.5,
|
|
58
|
+
strokeLinecap: "round",
|
|
59
|
+
strokeLinejoin: "round",
|
|
60
|
+
"aria-hidden": true
|
|
61
|
+
});
|
|
62
|
+
function StopwatchIcon({ size = 11 }) {
|
|
63
|
+
return /* @__PURE__ */ jsxs2("svg", { ...base2(size), children: [
|
|
64
|
+
/* @__PURE__ */ jsx2("path", { d: "M10 2h4" }),
|
|
65
|
+
/* @__PURE__ */ jsx2("path", { d: "M12 14v-4" }),
|
|
66
|
+
/* @__PURE__ */ jsx2("path", { d: "M20 14a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z" })
|
|
67
|
+
] });
|
|
68
|
+
}
|
|
69
|
+
function DiamondIcon({ size = 9, filled = false }) {
|
|
70
|
+
return /* @__PURE__ */ jsx2("svg", { ...base2(size), fill: filled ? "currentColor" : "none", children: /* @__PURE__ */ jsx2("path", { d: "m12 3 7 9-7 9-7-9z" }) });
|
|
71
|
+
}
|
|
72
|
+
function PrevIcon({ size = 9 }) {
|
|
73
|
+
return /* @__PURE__ */ jsx2("svg", { ...base2(size), children: /* @__PURE__ */ jsx2("path", { d: "m15 18-6-6 6-6" }) });
|
|
74
|
+
}
|
|
75
|
+
function NextIcon({ size = 9 }) {
|
|
76
|
+
return /* @__PURE__ */ jsx2("svg", { ...base2(size), children: /* @__PURE__ */ jsx2("path", { d: "m9 18 6-6-6-6" }) });
|
|
77
|
+
}
|
|
78
|
+
function LinkIcon({ size = 10 }) {
|
|
79
|
+
return /* @__PURE__ */ jsxs2("svg", { ...base2(size), children: [
|
|
80
|
+
/* @__PURE__ */ jsx2("path", { d: "M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.8 1.7" }),
|
|
81
|
+
/* @__PURE__ */ jsx2("path", { d: "M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.8-1.7" })
|
|
82
|
+
] });
|
|
83
|
+
}
|
|
84
|
+
function ResetIcon({ size = 10 }) {
|
|
85
|
+
return /* @__PURE__ */ jsxs2("svg", { ...base2(size), children: [
|
|
86
|
+
/* @__PURE__ */ jsx2("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
87
|
+
/* @__PURE__ */ jsx2("path", { d: "M3 3v5h5" })
|
|
88
|
+
] });
|
|
89
|
+
}
|
|
90
|
+
function XIcon({ size = 10 }) {
|
|
91
|
+
return /* @__PURE__ */ jsxs2("svg", { ...base2(size), children: [
|
|
92
|
+
/* @__PURE__ */ jsx2("path", { d: "M18 6 6 18" }),
|
|
93
|
+
/* @__PURE__ */ jsx2("path", { d: "m6 6 12 12" })
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// src/edit/history/react/icons.tsx
|
|
98
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
99
|
+
var svgBase = (size) => ({
|
|
100
|
+
width: size,
|
|
101
|
+
height: size,
|
|
102
|
+
viewBox: "0 0 24 24",
|
|
103
|
+
fill: "none",
|
|
104
|
+
stroke: "currentColor",
|
|
105
|
+
strokeWidth: 1.5,
|
|
106
|
+
strokeLinecap: "round",
|
|
107
|
+
strokeLinejoin: "round",
|
|
108
|
+
"aria-hidden": true
|
|
109
|
+
});
|
|
110
|
+
var ENTRY_PATHS = {
|
|
111
|
+
// painting
|
|
112
|
+
brush: ["M9.06 11.9l8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08", "M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z"],
|
|
113
|
+
eraser: ["m7 21-4.3-4.3a1 1 0 0 1 0-1.4l10-10a1 1 0 0 1 1.4 0l5.6 5.6a1 1 0 0 1 0 1.4L13 21", "M22 21H7"],
|
|
114
|
+
fill: ["m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2a2 2 0 0 0 2.8 0L19 11Z", "m5 2 5 5", "M2 13h15"],
|
|
115
|
+
// adjustment / effects
|
|
116
|
+
filter: ["M4 6h16", "M7 12h10", "M10 18h4"],
|
|
117
|
+
// geometry
|
|
118
|
+
transform: ["M5 9 2 12l3 3", "M9 5l3-3 3 3", "M15 19l-3 3-3-3", "M19 9l3 3-3 3", "M2 12h20", "M12 2v20"],
|
|
119
|
+
crop: ["M6 2v14a2 2 0 0 0 2 2h14", "M18 22V8a2 2 0 0 0-2-2H2"],
|
|
120
|
+
// layers
|
|
121
|
+
addLayer: ["M3 3h18v18H3z", "M12 8v8", "M8 12h8"],
|
|
122
|
+
deleteLayer: ["M3 6h18", "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"],
|
|
123
|
+
merge: ["m12 2 4 4-4 4", "M4 6h12", "m12 14 4 4-4 4", "M4 18h12"],
|
|
124
|
+
// clipboard / text / selection
|
|
125
|
+
paste: ["M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2", "M9 2h6v4H9z"],
|
|
126
|
+
text: ["M4 7V4h16v3", "M9 20h6", "M12 4v16"],
|
|
127
|
+
selection: ["M4 8V6a2 2 0 0 1 2-2h2", "M16 4h2a2 2 0 0 1 2 2v2", "M20 16v2a2 2 0 0 1-2 2h-2", "M8 20H6a2 2 0 0 1-2-2v-2"],
|
|
128
|
+
// ai + snapshots
|
|
129
|
+
ai: ["m12 3 1.9 5.8L20 10l-5.2 2.9L13 19l-2.9-5.2L4 12l6.1-1.9z"],
|
|
130
|
+
snapshot: ["M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3Z", "M15 13a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"],
|
|
131
|
+
// timeline / audio
|
|
132
|
+
keyframe: ["m12 3 6 9-6 9-6-9z"],
|
|
133
|
+
clip: ["M3 5h18v14H3z", "M8 5v14", "M16 5v14"],
|
|
134
|
+
volume: ["M11 5 6 9H2v6h4l5 4V5Z", "M16 9a4 4 0 0 1 0 6"],
|
|
135
|
+
document: ["M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", "M14 2v5h6"],
|
|
136
|
+
// fallbacks / chrome
|
|
137
|
+
generic: ["M5 5h14v14H5z"],
|
|
138
|
+
original: ["M3 12a9 9 0 1 0 9-9", "M3 4v5h5"],
|
|
139
|
+
rotateCcw: ["M3 12a9 9 0 1 0 3-6.7L3 8", "M3 3v5h5"]
|
|
140
|
+
};
|
|
141
|
+
function EntryIcon({ name, size = 11 }) {
|
|
142
|
+
const paths = ENTRY_PATHS[name] ?? ENTRY_PATHS.generic;
|
|
143
|
+
return /* @__PURE__ */ jsx3("svg", { ...svgBase(size), children: paths.map((d, i) => /* @__PURE__ */ jsx3("path", { d }, i)) });
|
|
144
|
+
}
|
|
145
|
+
function XIcon2({ size = 10 }) {
|
|
146
|
+
return /* @__PURE__ */ jsxs3("svg", { ...svgBase(size), children: [
|
|
147
|
+
/* @__PURE__ */ jsx3("path", { d: "M18 6 6 18" }),
|
|
148
|
+
/* @__PURE__ */ jsx3("path", { d: "m6 6 12 12" })
|
|
149
|
+
] });
|
|
150
|
+
}
|
|
151
|
+
function TrashIcon({ size = 11 }) {
|
|
152
|
+
return /* @__PURE__ */ jsxs3("svg", { ...svgBase(size), children: [
|
|
153
|
+
/* @__PURE__ */ jsx3("path", { d: "M3 6h18" }),
|
|
154
|
+
/* @__PURE__ */ jsx3("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
|
|
155
|
+
/* @__PURE__ */ jsx3("path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
|
|
156
|
+
] });
|
|
157
|
+
}
|
|
158
|
+
function UndoIcon({ size = 11 }) {
|
|
159
|
+
return /* @__PURE__ */ jsxs3("svg", { ...svgBase(size), children: [
|
|
160
|
+
/* @__PURE__ */ jsx3("path", { d: "M9 14 4 9l5-5" }),
|
|
161
|
+
/* @__PURE__ */ jsx3("path", { d: "M4 9h10.5a5.5 5.5 0 0 1 0 11H11" })
|
|
162
|
+
] });
|
|
163
|
+
}
|
|
164
|
+
function RedoIcon({ size = 11 }) {
|
|
165
|
+
return /* @__PURE__ */ jsxs3("svg", { ...svgBase(size), children: [
|
|
166
|
+
/* @__PURE__ */ jsx3("path", { d: "m15 14 5-5-5-5" }),
|
|
167
|
+
/* @__PURE__ */ jsx3("path", { d: "M20 9H9.5a5.5 5.5 0 0 0 0 11H13" })
|
|
168
|
+
] });
|
|
169
|
+
}
|
|
170
|
+
function PendingGlyph({ size = 9 }) {
|
|
171
|
+
return /* @__PURE__ */ jsx3(
|
|
172
|
+
"span",
|
|
173
|
+
{
|
|
174
|
+
className: "xeno-history-spinner",
|
|
175
|
+
"aria-label": "Pending",
|
|
176
|
+
style: {
|
|
177
|
+
width: size,
|
|
178
|
+
height: size,
|
|
179
|
+
borderRadius: 2,
|
|
180
|
+
border: "1px solid currentColor",
|
|
181
|
+
borderRightColor: "transparent",
|
|
182
|
+
opacity: 0.8,
|
|
183
|
+
display: "inline-block",
|
|
184
|
+
flex: "0 0 auto"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// src/edit/color/react/icons.tsx
|
|
191
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
192
|
+
var svg = { width: 11, height: 11, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true };
|
|
193
|
+
function EyedropperIcon() {
|
|
194
|
+
return /* @__PURE__ */ jsxs4("svg", { ...svg, children: [
|
|
195
|
+
/* @__PURE__ */ jsx4("path", { d: "m2 22 1-1h3l9-9" }),
|
|
196
|
+
/* @__PURE__ */ jsx4("path", { d: "M3 21v-3l9-9" }),
|
|
197
|
+
/* @__PURE__ */ jsx4("path", { d: "m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" })
|
|
198
|
+
] });
|
|
199
|
+
}
|
|
200
|
+
function SwapIcon() {
|
|
201
|
+
return /* @__PURE__ */ jsxs4("svg", { ...svg, children: [
|
|
202
|
+
/* @__PURE__ */ jsx4("path", { d: "m16 3 4 4-4 4" }),
|
|
203
|
+
/* @__PURE__ */ jsx4("path", { d: "M20 7H4" }),
|
|
204
|
+
/* @__PURE__ */ jsx4("path", { d: "m8 21-4-4 4-4" }),
|
|
205
|
+
/* @__PURE__ */ jsx4("path", { d: "M4 17h16" })
|
|
206
|
+
] });
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export {
|
|
210
|
+
KindGlyph,
|
|
211
|
+
VisibilityIcon,
|
|
212
|
+
LockStateIcon,
|
|
213
|
+
StopwatchIcon,
|
|
214
|
+
DiamondIcon,
|
|
215
|
+
PrevIcon,
|
|
216
|
+
NextIcon,
|
|
217
|
+
LinkIcon,
|
|
218
|
+
ResetIcon,
|
|
219
|
+
XIcon,
|
|
220
|
+
EntryIcon,
|
|
221
|
+
XIcon2,
|
|
222
|
+
TrashIcon,
|
|
223
|
+
UndoIcon,
|
|
224
|
+
RedoIcon,
|
|
225
|
+
PendingGlyph,
|
|
226
|
+
EyedropperIcon,
|
|
227
|
+
SwapIcon
|
|
228
|
+
};
|
package/dist/edit/index.d.ts
CHANGED
|
@@ -734,7 +734,7 @@ declare function LayersPanelView({ controller }: LayersPanelViewProps): ReactEle
|
|
|
734
734
|
* (with the drag), the rename field, the thumbnail, and the glyphs.
|
|
735
735
|
*/
|
|
736
736
|
/** The unit names the runtime supplies for this block — what a host's registry check must accept beside the shared families. */
|
|
737
|
-
declare const LAYERS_RUNTIME_UNITS: readonly ["layers/Scroller", "layers/RenameField", "layers/Thumbnail"
|
|
737
|
+
declare const LAYERS_RUNTIME_UNITS: readonly ["layers/Scroller", "layers/RenameField", "layers/Thumbnail"];
|
|
738
738
|
declare function layersRuntimeComponents(controller: LayersPanelController): Record<(typeof LAYERS_RUNTIME_UNITS)[number], React.ComponentType<any>>;
|
|
739
739
|
|
|
740
740
|
/**
|
|
@@ -1757,7 +1757,7 @@ declare function InspectorPanelView({ controller }: InspectorPanelViewProps): Re
|
|
|
1757
1757
|
* declaration can name them and bind their data props; only the runtime can supply the controller.
|
|
1758
1758
|
*/
|
|
1759
1759
|
/** The unit names the runtime supplies for this block — what a host's registry check must accept beside the shared families. */
|
|
1760
|
-
declare const INSPECTOR_RUNTIME_UNITS: readonly ["inspector/FieldWidget", "inspector/Properties", "inspector/ActionGlyph"
|
|
1760
|
+
declare const INSPECTOR_RUNTIME_UNITS: readonly ["inspector/FieldWidget", "inspector/Properties", "inspector/ActionGlyph"];
|
|
1761
1761
|
declare function inspectorRuntimeComponents(controller: InspectorPanelController): Record<(typeof INSPECTOR_RUNTIME_UNITS)[number], React.ComponentType<any>>;
|
|
1762
1762
|
|
|
1763
1763
|
/**
|
|
@@ -2243,7 +2243,7 @@ declare function HistoryPanelView({ controller }: HistoryPanelViewProps): ReactE
|
|
|
2243
2243
|
* the cancel button, and the glyphs.
|
|
2244
2244
|
*/
|
|
2245
2245
|
/** The unit names the runtime supplies for this block — what a host's registry check must accept beside the shared families. */
|
|
2246
|
-
declare const HISTORY_RUNTIME_UNITS: readonly ["history/Scroller", "history/CancelButton"
|
|
2246
|
+
declare const HISTORY_RUNTIME_UNITS: readonly ["history/Scroller", "history/CancelButton"];
|
|
2247
2247
|
declare function historyRuntimeComponents(controller: HistoryPanelController): Record<(typeof HISTORY_RUNTIME_UNITS)[number], React.ComponentType<any>>;
|
|
2248
2248
|
|
|
2249
2249
|
/**
|
|
@@ -2807,7 +2807,7 @@ interface ColorPanelViewProps {
|
|
|
2807
2807
|
declare function ColorPanelView({ controller }: ColorPanelViewProps): ReactElement;
|
|
2808
2808
|
/** The units the runtime registers for `COLOR_DECLARATION`, bound to ITS controller: the picker and the glyphs. */
|
|
2809
2809
|
/** The unit names the runtime supplies for this block — what a host's registry check must accept beside the shared families. */
|
|
2810
|
-
declare const COLOR_RUNTIME_UNITS: readonly ["color/Picker"
|
|
2810
|
+
declare const COLOR_RUNTIME_UNITS: readonly ["color/Picker"];
|
|
2811
2811
|
declare function colorRuntimeComponents(controller: ColorPanelController): Record<(typeof COLOR_RUNTIME_UNITS)[number], React.ComponentType<any>>;
|
|
2812
2812
|
|
|
2813
2813
|
/**
|