@xenosystem/blocks 0.13.0 → 0.13.2
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-SFSCCISX.js} +59 -30
- package/dist/data/index.js +169 -295
- package/dist/edit/index.js +50 -146
- package/dist/icons/index.d.ts +20 -2
- package/dist/icons/index.js +41 -8
- package/dist/ops/index.js +140 -199
- package/dist/time/index.js +25 -44
- package/package.json +3 -3
|
@@ -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,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Svg,
|
|
3
|
+
XGlyph
|
|
4
|
+
} from "./chunk-GQWAIPDF.js";
|
|
5
|
+
|
|
1
6
|
// src/edit/layers/react/icons.tsx
|
|
2
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
8
|
var base = (size) => ({
|
|
@@ -143,10 +148,7 @@ function EntryIcon({ name, size = 11 }) {
|
|
|
143
148
|
return /* @__PURE__ */ jsx3("svg", { ...svgBase(size), children: paths.map((d, i) => /* @__PURE__ */ jsx3("path", { d }, i)) });
|
|
144
149
|
}
|
|
145
150
|
function XIcon2({ size = 10 }) {
|
|
146
|
-
return /* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */ jsx3("path", { d: "M18 6 6 18" }),
|
|
148
|
-
/* @__PURE__ */ jsx3("path", { d: "m6 6 12 12" })
|
|
149
|
-
] });
|
|
151
|
+
return /* @__PURE__ */ jsx3(XGlyph, { size });
|
|
150
152
|
}
|
|
151
153
|
function TrashIcon({ size = 11 }) {
|
|
152
154
|
return /* @__PURE__ */ jsxs3("svg", { ...svgBase(size), children: [
|
|
@@ -167,38 +169,19 @@ function RedoIcon({ size = 11 }) {
|
|
|
167
169
|
/* @__PURE__ */ jsx3("path", { d: "M20 9H9.5a5.5 5.5 0 0 0 0 11H13" })
|
|
168
170
|
] });
|
|
169
171
|
}
|
|
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
172
|
|
|
190
173
|
// src/edit/color/react/icons.tsx
|
|
191
174
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
192
|
-
var svg = { width:
|
|
193
|
-
function EyedropperIcon() {
|
|
194
|
-
return /* @__PURE__ */ jsxs4("svg", { ...svg, children: [
|
|
175
|
+
var svg = (size) => ({ width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true });
|
|
176
|
+
function EyedropperIcon({ size = 11 } = {}) {
|
|
177
|
+
return /* @__PURE__ */ jsxs4("svg", { ...svg(size), children: [
|
|
195
178
|
/* @__PURE__ */ jsx4("path", { d: "m2 22 1-1h3l9-9" }),
|
|
196
179
|
/* @__PURE__ */ jsx4("path", { d: "M3 21v-3l9-9" }),
|
|
197
180
|
/* @__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
181
|
] });
|
|
199
182
|
}
|
|
200
|
-
function SwapIcon() {
|
|
201
|
-
return /* @__PURE__ */ jsxs4("svg", { ...svg, children: [
|
|
183
|
+
function SwapIcon({ size = 11 } = {}) {
|
|
184
|
+
return /* @__PURE__ */ jsxs4("svg", { ...svg(size), children: [
|
|
202
185
|
/* @__PURE__ */ jsx4("path", { d: "m16 3 4 4-4 4" }),
|
|
203
186
|
/* @__PURE__ */ jsx4("path", { d: "M20 7H4" }),
|
|
204
187
|
/* @__PURE__ */ jsx4("path", { d: "m8 21-4-4 4-4" }),
|
|
@@ -206,6 +189,52 @@ function SwapIcon() {
|
|
|
206
189
|
] });
|
|
207
190
|
}
|
|
208
191
|
|
|
192
|
+
// src/edit/tree/react/icons.tsx
|
|
193
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
194
|
+
var PATHS = {
|
|
195
|
+
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" }),
|
|
196
|
+
file: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
197
|
+
/* @__PURE__ */ jsx5("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
198
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" })
|
|
199
|
+
] }),
|
|
200
|
+
"folder-tree": /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
201
|
+
/* @__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" }),
|
|
202
|
+
/* @__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" }),
|
|
203
|
+
/* @__PURE__ */ jsx5("path", { d: "M3 5a2 2 0 0 0 2 2h3" }),
|
|
204
|
+
/* @__PURE__ */ jsx5("path", { d: "M3 3v13a2 2 0 0 0 2 2h3" })
|
|
205
|
+
] }),
|
|
206
|
+
box: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
207
|
+
/* @__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" }),
|
|
208
|
+
/* @__PURE__ */ jsx5("path", { d: "m3.3 7 8.7 5 8.7-5" }),
|
|
209
|
+
/* @__PURE__ */ jsx5("path", { d: "M12 22V12" })
|
|
210
|
+
] }),
|
|
211
|
+
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" }),
|
|
212
|
+
"file-text": /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
213
|
+
/* @__PURE__ */ jsx5("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
214
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
|
|
215
|
+
/* @__PURE__ */ jsx5("path", { d: "M8 13h8M8 17h5" })
|
|
216
|
+
] }),
|
|
217
|
+
heading: /* @__PURE__ */ jsx5(Fragment, { children: /* @__PURE__ */ jsx5("path", { d: "M6 4v16M18 4v16M6 12h12" }) }),
|
|
218
|
+
bot: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
219
|
+
/* @__PURE__ */ jsx5("rect", { x: "3", y: "8", width: "18", height: "12", rx: "2" }),
|
|
220
|
+
/* @__PURE__ */ jsx5("path", { d: "M12 4v4M8 14h.01M16 14h.01" })
|
|
221
|
+
] }),
|
|
222
|
+
link: /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
223
|
+
/* @__PURE__ */ jsx5("path", { d: "M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.8 1.7" }),
|
|
224
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.8-1.7" })
|
|
225
|
+
] }),
|
|
226
|
+
"link-2-off": /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
227
|
+
/* @__PURE__ */ jsx5("path", { d: "M9 17H7A5 5 0 0 1 7 7" }),
|
|
228
|
+
/* @__PURE__ */ jsx5("path", { d: "M15 7h2a5 5 0 0 1 4 8" }),
|
|
229
|
+
/* @__PURE__ */ jsx5("path", { d: "M8 12h4" }),
|
|
230
|
+
/* @__PURE__ */ jsx5("path", { d: "m2 2 20 20" })
|
|
231
|
+
] }),
|
|
232
|
+
"circle-dot": /* @__PURE__ */ jsx5("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" })
|
|
233
|
+
};
|
|
234
|
+
function TreeIcon({ name, size = 11 }) {
|
|
235
|
+
return /* @__PURE__ */ jsx5(Svg, { size, children: PATHS[name] ?? PATHS["circle-dot"] });
|
|
236
|
+
}
|
|
237
|
+
|
|
209
238
|
export {
|
|
210
239
|
KindGlyph,
|
|
211
240
|
VisibilityIcon,
|
|
@@ -222,7 +251,7 @@ export {
|
|
|
222
251
|
TrashIcon,
|
|
223
252
|
UndoIcon,
|
|
224
253
|
RedoIcon,
|
|
225
|
-
PendingGlyph,
|
|
226
254
|
EyedropperIcon,
|
|
227
|
-
SwapIcon
|
|
255
|
+
SwapIcon,
|
|
256
|
+
TreeIcon
|
|
228
257
|
};
|