@xenosystem/blocks 0.13.0 → 0.13.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/chunk-GQWAIPDF.js +125 -0
- package/dist/{chunk-OCEZTO2D.js → chunk-J5XEAON6.js} +52 -1
- package/dist/data/index.js +169 -295
- package/dist/edit/index.js +47 -142
- package/dist/icons/index.d.ts +20 -2
- package/dist/icons/index.js +40 -3
- package/dist/ops/index.js +140 -199
- package/dist/time/index.js +25 -44
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// src/icons/glyphs.tsx
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
function Svg({ children, size = 11 }) {
|
|
4
|
+
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 });
|
|
5
|
+
}
|
|
6
|
+
function RefreshGlyph({ size } = {}) {
|
|
7
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
8
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { d: "M3 3v5h5" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16" }),
|
|
11
|
+
/* @__PURE__ */ jsx("path", { d: "M16 16h5v5" })
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
14
|
+
function XGlyph({ size } = {}) {
|
|
15
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
16
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
17
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
18
|
+
] });
|
|
19
|
+
}
|
|
20
|
+
function PlusGlyph({ size } = {}) {
|
|
21
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
22
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" })
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
function ChevronGlyph({ direction = "right", size } = {}) {
|
|
27
|
+
const d = direction === "left" ? "m15 18-6-6 6-6" : direction === "up" ? "m18 15-6-6-6 6" : direction === "down" ? "m6 9 6 6 6-6" : "m9 18 6-6-6-6";
|
|
28
|
+
return /* @__PURE__ */ jsx(Svg, { size, children: /* @__PURE__ */ jsx("path", { d }) });
|
|
29
|
+
}
|
|
30
|
+
function DownloadGlyph({ size } = {}) {
|
|
31
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
32
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
33
|
+
/* @__PURE__ */ jsx("path", { d: "M7 10l5 5 5-5" }),
|
|
34
|
+
/* @__PURE__ */ jsx("path", { d: "M12 15V3" })
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
function PlugGlyph({ size } = {}) {
|
|
38
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
39
|
+
/* @__PURE__ */ jsx("path", { d: "M12 22v-5" }),
|
|
40
|
+
/* @__PURE__ */ jsx("path", { d: "M9 8V2M15 8V2" }),
|
|
41
|
+
/* @__PURE__ */ jsx("path", { d: "M18 8v3a6 6 0 0 1-12 0V8Z" })
|
|
42
|
+
] });
|
|
43
|
+
}
|
|
44
|
+
function SortAscGlyph({ size = 9 } = {}) {
|
|
45
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
46
|
+
/* @__PURE__ */ jsx("path", { d: "m5 12 7-7 7 7" }),
|
|
47
|
+
/* @__PURE__ */ jsx("path", { d: "M12 19V5" })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
function SortDescGlyph({ size = 9 } = {}) {
|
|
51
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
52
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
53
|
+
/* @__PURE__ */ jsx("path", { d: "m19 12-7 7-7-7" })
|
|
54
|
+
] });
|
|
55
|
+
}
|
|
56
|
+
function ExpandGlyph({ size } = {}) {
|
|
57
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
58
|
+
/* @__PURE__ */ jsx("path", { d: "M12 22v-6" }),
|
|
59
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8V2" }),
|
|
60
|
+
/* @__PURE__ */ jsx("path", { d: "m9 5 3-3 3 3" }),
|
|
61
|
+
/* @__PURE__ */ jsx("path", { d: "m9 19 3 3 3-3" }),
|
|
62
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12H2" }),
|
|
63
|
+
/* @__PURE__ */ jsx("path", { d: "M10 12H8" }),
|
|
64
|
+
/* @__PURE__ */ jsx("path", { d: "M16 12h-2" }),
|
|
65
|
+
/* @__PURE__ */ jsx("path", { d: "M22 12h-2" })
|
|
66
|
+
] });
|
|
67
|
+
}
|
|
68
|
+
function CollapseGlyph({ size } = {}) {
|
|
69
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
70
|
+
/* @__PURE__ */ jsx("path", { d: "M12 22v-6" }),
|
|
71
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8V2" }),
|
|
72
|
+
/* @__PURE__ */ jsx("path", { d: "m9 13 3 3 3-3" }),
|
|
73
|
+
/* @__PURE__ */ jsx("path", { d: "m9 11 3-3 3 3" }),
|
|
74
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12H2" }),
|
|
75
|
+
/* @__PURE__ */ jsx("path", { d: "M22 12h-2" })
|
|
76
|
+
] });
|
|
77
|
+
}
|
|
78
|
+
function CopyGlyph({ size } = {}) {
|
|
79
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
80
|
+
/* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "12", height: "12", rx: "2" }),
|
|
81
|
+
/* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
82
|
+
] });
|
|
83
|
+
}
|
|
84
|
+
function ClearGlyph({ size } = {}) {
|
|
85
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
86
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
87
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
88
|
+
] });
|
|
89
|
+
}
|
|
90
|
+
function CancelGlyph({ size } = {}) {
|
|
91
|
+
return /* @__PURE__ */ jsx(Svg, { size, children: /* @__PURE__ */ jsx("rect", { x: "5", y: "5", width: "14", height: "14", rx: "2" }) });
|
|
92
|
+
}
|
|
93
|
+
function RetryGlyph({ size } = {}) {
|
|
94
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
95
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-3.36-7" }),
|
|
96
|
+
/* @__PURE__ */ jsx("path", { d: "M21 3v6h-6" })
|
|
97
|
+
] });
|
|
98
|
+
}
|
|
99
|
+
function CaseGlyph({ size = 12 } = {}) {
|
|
100
|
+
return /* @__PURE__ */ jsxs(Svg, { size, children: [
|
|
101
|
+
/* @__PURE__ */ jsx("path", { d: "m3 15 4-8 4 8" }),
|
|
102
|
+
/* @__PURE__ */ jsx("path", { d: "M4 13h6" }),
|
|
103
|
+
/* @__PURE__ */ jsx("rect", { x: "15", y: "9", width: "6", height: "6", rx: "1.5" }),
|
|
104
|
+
/* @__PURE__ */ jsx("path", { d: "M21 9v6" })
|
|
105
|
+
] });
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export {
|
|
109
|
+
Svg,
|
|
110
|
+
RefreshGlyph,
|
|
111
|
+
XGlyph,
|
|
112
|
+
PlusGlyph,
|
|
113
|
+
ChevronGlyph,
|
|
114
|
+
DownloadGlyph,
|
|
115
|
+
PlugGlyph,
|
|
116
|
+
SortAscGlyph,
|
|
117
|
+
SortDescGlyph,
|
|
118
|
+
ExpandGlyph,
|
|
119
|
+
CollapseGlyph,
|
|
120
|
+
CopyGlyph,
|
|
121
|
+
ClearGlyph,
|
|
122
|
+
CancelGlyph,
|
|
123
|
+
RetryGlyph,
|
|
124
|
+
CaseGlyph
|
|
125
|
+
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Svg
|
|
3
|
+
} from "./chunk-GQWAIPDF.js";
|
|
4
|
+
|
|
1
5
|
// src/edit/layers/react/icons.tsx
|
|
2
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
7
|
var base = (size) => ({
|
|
@@ -206,6 +210,52 @@ function SwapIcon() {
|
|
|
206
210
|
] });
|
|
207
211
|
}
|
|
208
212
|
|
|
213
|
+
// src/edit/tree/react/icons.tsx
|
|
214
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
215
|
+
var PATHS = {
|
|
216
|
+
folder: /* @__PURE__ */ jsx5("path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }),
|
|
217
|
+
file: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
218
|
+
/* @__PURE__ */ jsx5("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
219
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" })
|
|
220
|
+
] }),
|
|
221
|
+
"folder-tree": /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
222
|
+
/* @__PURE__ */ jsx5("path", { d: "M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z" }),
|
|
223
|
+
/* @__PURE__ */ jsx5("path", { d: "M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2a1 1 0 0 0-.8-.4h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z" }),
|
|
224
|
+
/* @__PURE__ */ jsx5("path", { d: "M3 5a2 2 0 0 0 2 2h3" }),
|
|
225
|
+
/* @__PURE__ */ jsx5("path", { d: "M3 3v13a2 2 0 0 0 2 2h3" })
|
|
226
|
+
] }),
|
|
227
|
+
box: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
228
|
+
/* @__PURE__ */ jsx5("path", { d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" }),
|
|
229
|
+
/* @__PURE__ */ jsx5("path", { d: "m3.3 7 8.7 5 8.7-5" }),
|
|
230
|
+
/* @__PURE__ */ jsx5("path", { d: "M12 22V12" })
|
|
231
|
+
] }),
|
|
232
|
+
component: /* @__PURE__ */ jsx5("path", { d: "m12 2 4 4-4 4-4-4Zm0 12 4 4-4 4-4-4ZM2 12l4-4 4 4-4 4Zm12 0 4-4 4 4-4 4Z" }),
|
|
233
|
+
"file-text": /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
234
|
+
/* @__PURE__ */ jsx5("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
235
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
|
|
236
|
+
/* @__PURE__ */ jsx5("path", { d: "M8 13h8M8 17h5" })
|
|
237
|
+
] }),
|
|
238
|
+
heading: /* @__PURE__ */ jsx5(Fragment, { children: /* @__PURE__ */ jsx5("path", { d: "M6 4v16M18 4v16M6 12h12" }) }),
|
|
239
|
+
bot: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
240
|
+
/* @__PURE__ */ jsx5("rect", { x: "3", y: "8", width: "18", height: "12", rx: "2" }),
|
|
241
|
+
/* @__PURE__ */ jsx5("path", { d: "M12 4v4M8 14h.01M16 14h.01" })
|
|
242
|
+
] }),
|
|
243
|
+
link: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
244
|
+
/* @__PURE__ */ jsx5("path", { d: "M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.8 1.7" }),
|
|
245
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.8-1.7" })
|
|
246
|
+
] }),
|
|
247
|
+
"link-2-off": /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
248
|
+
/* @__PURE__ */ jsx5("path", { d: "M9 17H7A5 5 0 0 1 7 7" }),
|
|
249
|
+
/* @__PURE__ */ jsx5("path", { d: "M15 7h2a5 5 0 0 1 4 8" }),
|
|
250
|
+
/* @__PURE__ */ jsx5("path", { d: "M8 12h4" }),
|
|
251
|
+
/* @__PURE__ */ jsx5("path", { d: "m2 2 20 20" })
|
|
252
|
+
] }),
|
|
253
|
+
"circle-dot": /* @__PURE__ */ jsx5("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" })
|
|
254
|
+
};
|
|
255
|
+
function TreeIcon({ name, size = 11 }) {
|
|
256
|
+
return /* @__PURE__ */ jsx5(Svg, { size, children: PATHS[name] ?? PATHS["circle-dot"] });
|
|
257
|
+
}
|
|
258
|
+
|
|
209
259
|
export {
|
|
210
260
|
KindGlyph,
|
|
211
261
|
VisibilityIcon,
|
|
@@ -224,5 +274,6 @@ export {
|
|
|
224
274
|
RedoIcon,
|
|
225
275
|
PendingGlyph,
|
|
226
276
|
EyedropperIcon,
|
|
227
|
-
SwapIcon
|
|
277
|
+
SwapIcon,
|
|
278
|
+
TreeIcon
|
|
228
279
|
};
|