@tatamicks/core 1.0.1 → 1.0.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/{PalettePanel-Dipvtj7D.cjs → PalettePanel-BMZ6dfI3.cjs} +2 -2
- package/dist/{PalettePanel-Dipvtj7D.cjs.map → PalettePanel-BMZ6dfI3.cjs.map} +1 -1
- package/dist/{PalettePanel-CtXsH6Cb.js → PalettePanel-Cigl9i1N.js} +360 -355
- package/dist/{PalettePanel-CtXsH6Cb.js.map → PalettePanel-Cigl9i1N.js.map} +1 -1
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.mjs +13 -13
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +430 -571
- package/dist/index.mjs.map +1 -1
- package/dist/{paperSettingsWidget-sLJsIUxS.cjs → paperSettingsWidget-7766a5Fe.cjs} +1 -1
- package/dist/{paperSettingsWidget-sLJsIUxS.cjs.map → paperSettingsWidget-7766a5Fe.cjs.map} +1 -1
- package/dist/{paperSettingsWidget-DgDoBA0P.js → paperSettingsWidget-DvtghSA5.js} +1 -1
- package/dist/{paperSettingsWidget-DgDoBA0P.js.map → paperSettingsWidget-DvtghSA5.js.map} +1 -1
- package/dist/shell.cjs +1 -1
- package/dist/shell.mjs +2 -2
- package/dist/sidebarPortal-BN6FVwaF.js +870 -0
- package/dist/sidebarPortal-BN6FVwaF.js.map +1 -0
- package/dist/sidebarPortal-Cr-dLvA_.cjs +3 -0
- package/dist/sidebarPortal-Cr-dLvA_.cjs.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/sidebarPortal-C06y4JSP.js +0 -723
- package/dist/sidebarPortal-C06y4JSP.js.map +0 -1
- package/dist/sidebarPortal-C3HszQyp.cjs +0 -1
- package/dist/sidebarPortal-C3HszQyp.cjs.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as t, jsxs as p, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as y, useState as O, useRef as ie, useEffect as pe, useContext as
|
|
3
|
-
import { Z as yt,
|
|
2
|
+
import { useCallback as y, useState as O, useRef as ie, useEffect as pe, useContext as Pe, createContext as gt, useMemo as te, memo as fe, useId as an } from "react";
|
|
3
|
+
import { Z as yt, a8 as _t, a5 as xt, a9 as wt, a6 as Nt, P as F, d as Ct, M as K, L as he, B as on, aa as sn, x as rn, T as cn, F as dn, q as ye, J as hn, v as Re, H as Ee, V as Ae, ab as un, s as dt, e as pn, g as ht, l as mn, u as bn, a as vn, C as fn, N as gn } from "./sidebarPortal-BN6FVwaF.js";
|
|
4
4
|
import { createPortal as St } from "react-dom";
|
|
5
|
-
import './PalettePanel.css';const
|
|
6
|
-
container:
|
|
7
|
-
section:
|
|
8
|
-
divider:
|
|
9
|
-
sectionLabel:
|
|
10
|
-
select:
|
|
11
|
-
numberInput:
|
|
12
|
-
heightModeSwitch:
|
|
13
|
-
switchLabel:
|
|
14
|
-
switchLabelActive:
|
|
15
|
-
toggle:
|
|
16
|
-
thumb:
|
|
17
|
-
},
|
|
18
|
-
|
|
5
|
+
import './PalettePanel.css';const yn = "_container_1xv5c_4", _n = "_section_1xv5c_16", xn = "_divider_1xv5c_23", wn = "_sectionLabel_1xv5c_31", Nn = "_select_1xv5c_38", Cn = "_numberInput_1xv5c_59", Sn = "_heightModeSwitch_1xv5c_87", In = "_switchLabel_1xv5c_93", $n = "_switchLabelActive_1xv5c_101", Ln = "_toggle_1xv5c_105", kn = "_thumb_1xv5c_122", P = {
|
|
6
|
+
container: yn,
|
|
7
|
+
section: _n,
|
|
8
|
+
divider: xn,
|
|
9
|
+
sectionLabel: wn,
|
|
10
|
+
select: Nn,
|
|
11
|
+
numberInput: Cn,
|
|
12
|
+
heightModeSwitch: Sn,
|
|
13
|
+
switchLabel: In,
|
|
14
|
+
switchLabelActive: $n,
|
|
15
|
+
toggle: Ln,
|
|
16
|
+
thumb: kn
|
|
17
|
+
}, Tn = (e) => /* @__PURE__ */ t("div", { className: P.divider, "aria-hidden": "true" });
|
|
18
|
+
Tn.displayName = "ActionBarDivider";
|
|
19
19
|
const Xe = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
|
|
20
20
|
"svg",
|
|
21
21
|
{
|
|
@@ -241,7 +241,7 @@ const kt = ({ size: e = 16, ...n }) => /* @__PURE__ */ p(
|
|
|
241
241
|
}
|
|
242
242
|
);
|
|
243
243
|
kt.displayName = "BlockSettingsIcon";
|
|
244
|
-
const
|
|
244
|
+
const En = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
245
245
|
"svg",
|
|
246
246
|
{
|
|
247
247
|
viewBox: "0 0 24 24",
|
|
@@ -253,8 +253,8 @@ const Tn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
|
253
253
|
children: /* @__PURE__ */ t("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" })
|
|
254
254
|
}
|
|
255
255
|
);
|
|
256
|
-
|
|
257
|
-
const
|
|
256
|
+
En.displayName = "ChevronLeftIcon";
|
|
257
|
+
const An = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
258
258
|
"svg",
|
|
259
259
|
{
|
|
260
260
|
viewBox: "0 0 24 24",
|
|
@@ -266,8 +266,8 @@ const En = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
|
266
266
|
children: /* @__PURE__ */ t("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })
|
|
267
267
|
}
|
|
268
268
|
);
|
|
269
|
-
|
|
270
|
-
const
|
|
269
|
+
An.displayName = "ChevronRightIcon";
|
|
270
|
+
const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
271
271
|
"svg",
|
|
272
272
|
{
|
|
273
273
|
viewBox: "0 0 24 24",
|
|
@@ -279,8 +279,8 @@ const An = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
|
279
279
|
children: /* @__PURE__ */ t("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })
|
|
280
280
|
}
|
|
281
281
|
);
|
|
282
|
-
|
|
283
|
-
const
|
|
282
|
+
Mn.displayName = "AddPageIcon";
|
|
283
|
+
const Dn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
284
284
|
"svg",
|
|
285
285
|
{
|
|
286
286
|
viewBox: "0 0 24 24",
|
|
@@ -292,7 +292,7 @@ const Mn = ({ size: e = 16, ...n }) => /* @__PURE__ */ t(
|
|
|
292
292
|
children: /* @__PURE__ */ t("path", { d: "M19 13H5v-2h14v2z" })
|
|
293
293
|
}
|
|
294
294
|
);
|
|
295
|
-
|
|
295
|
+
Dn.displayName = "DeletePageIcon";
|
|
296
296
|
const Pn = {
|
|
297
297
|
undo: {
|
|
298
298
|
actionId: "undo",
|
|
@@ -354,10 +354,10 @@ const Pn = {
|
|
|
354
354
|
message: "ページを削除しました",
|
|
355
355
|
shortcut: null
|
|
356
356
|
}
|
|
357
|
-
}, lt = (e) => Pn[e],
|
|
358
|
-
container:
|
|
359
|
-
input:
|
|
360
|
-
label:
|
|
357
|
+
}, lt = (e) => Pn[e], Bn = "_container_1tnp6_5", zn = "_input_1tnp6_13", Wn = "_label_1tnp6_29", Oe = {
|
|
358
|
+
container: Bn,
|
|
359
|
+
input: zn,
|
|
360
|
+
label: Wn
|
|
361
361
|
}, ae = ({
|
|
362
362
|
value: e,
|
|
363
363
|
onChange: n,
|
|
@@ -386,19 +386,19 @@ const Pn = {
|
|
|
386
386
|
] });
|
|
387
387
|
};
|
|
388
388
|
ae.displayName = "Checkbox";
|
|
389
|
-
const
|
|
390
|
-
header:
|
|
391
|
-
title:
|
|
392
|
-
actions:
|
|
393
|
-
titleGroup:
|
|
394
|
-
infoIcon:
|
|
395
|
-
chevron:
|
|
396
|
-
chevronOpen:
|
|
389
|
+
const Rn = "_header_1c1mq_6", On = "_title_1c1mq_32", Fn = "_actions_1c1mq_43", jn = "_titleGroup_1c1mq_49", Un = "_infoIcon_1c1mq_60", Vn = "_chevron_1c1mq_84", qn = "_chevronOpen_1c1mq_92", Gn = "_statusBadge_1c1mq_98", Hn = "_statusBadgeOn_1c1mq_108", Kn = "_statusBadgeOff_1c1mq_113", Zn = "_content_1c1mq_120", Yn = "_contentNoPadding_1c1mq_127", W = {
|
|
390
|
+
header: Rn,
|
|
391
|
+
title: On,
|
|
392
|
+
actions: Fn,
|
|
393
|
+
titleGroup: jn,
|
|
394
|
+
infoIcon: Un,
|
|
395
|
+
chevron: Vn,
|
|
396
|
+
chevronOpen: qn,
|
|
397
397
|
statusBadge: Gn,
|
|
398
|
-
statusBadgeOn:
|
|
399
|
-
statusBadgeOff:
|
|
400
|
-
content:
|
|
401
|
-
contentNoPadding:
|
|
398
|
+
statusBadgeOn: Hn,
|
|
399
|
+
statusBadgeOff: Kn,
|
|
400
|
+
content: Zn,
|
|
401
|
+
contentNoPadding: Yn
|
|
402
402
|
}, V = ({
|
|
403
403
|
title: e,
|
|
404
404
|
children: n,
|
|
@@ -504,7 +504,7 @@ function Le(e) {
|
|
|
504
504
|
}
|
|
505
505
|
return null;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Jn(e) {
|
|
508
508
|
const { r: n, g: i, b: l, a } = e;
|
|
509
509
|
if (a === 0)
|
|
510
510
|
return;
|
|
@@ -515,7 +515,7 @@ function Yn(e) {
|
|
|
515
515
|
}
|
|
516
516
|
return `#${o}${c}${r}`;
|
|
517
517
|
}
|
|
518
|
-
const
|
|
518
|
+
const Xn = [
|
|
519
519
|
{ label: "無色", value: void 0 },
|
|
520
520
|
{ label: "白", value: "#ffffff" },
|
|
521
521
|
{ label: "グレー1", value: "#efefef" },
|
|
@@ -546,25 +546,25 @@ const Jn = [
|
|
|
546
546
|
{ label: "青紫", value: "#9FC5E8" },
|
|
547
547
|
{ label: "紫", value: "#B4A7D6" },
|
|
548
548
|
{ label: "赤紫", value: "#D5A6BD" }
|
|
549
|
-
],
|
|
550
|
-
container:
|
|
551
|
-
colorButton:
|
|
552
|
-
textInputWrapper:
|
|
553
|
-
textInputPrefix:
|
|
554
|
-
textInput:
|
|
555
|
-
popover:
|
|
556
|
-
palette:
|
|
557
|
-
paletteButton:
|
|
558
|
-
selected:
|
|
559
|
-
transparentPaletteButton:
|
|
560
|
-
rgbaInputs:
|
|
561
|
-
rgbaInputGroup:
|
|
562
|
-
rgbaLabel:
|
|
549
|
+
], Qn = "_container_1cdzu_5", el = "_colorButton_1cdzu_13", tl = "_textInputWrapper_1cdzu_40", nl = "_textInputPrefix_1cdzu_62", ll = "_textInput_1cdzu_40", il = "_popover_1cdzu_96", al = "_palette_1cdzu_112", ol = "_paletteButton_1cdzu_119", sl = "_selected_1cdzu_142", rl = "_transparentPaletteButton_1cdzu_148", cl = "_rgbaInputs_1cdzu_154", dl = "_rgbaInputGroup_1cdzu_161", hl = "_rgbaLabel_1cdzu_175", z = {
|
|
550
|
+
container: Qn,
|
|
551
|
+
colorButton: el,
|
|
552
|
+
textInputWrapper: tl,
|
|
553
|
+
textInputPrefix: nl,
|
|
554
|
+
textInput: ll,
|
|
555
|
+
popover: il,
|
|
556
|
+
palette: al,
|
|
557
|
+
paletteButton: ol,
|
|
558
|
+
selected: sl,
|
|
559
|
+
transparentPaletteButton: rl,
|
|
560
|
+
rgbaInputs: cl,
|
|
561
|
+
rgbaInputGroup: dl,
|
|
562
|
+
rgbaLabel: hl
|
|
563
563
|
}, Tt = ({
|
|
564
564
|
onColorSelect: e,
|
|
565
565
|
selectedColor: n,
|
|
566
566
|
readOnly: i = !1
|
|
567
|
-
}) => /* @__PURE__ */ t("div", { className: z.palette, children:
|
|
567
|
+
}) => /* @__PURE__ */ t("div", { className: z.palette, children: Xn.map((l, a) => {
|
|
568
568
|
const o = l.value === void 0, c = l.value === n, r = o ? {} : { backgroundColor: l.value };
|
|
569
569
|
return /* @__PURE__ */ t(
|
|
570
570
|
"button",
|
|
@@ -581,9 +581,9 @@ const Jn = [
|
|
|
581
581
|
);
|
|
582
582
|
}) });
|
|
583
583
|
Tt.displayName = "ColorPalette";
|
|
584
|
-
const
|
|
585
|
-
input:
|
|
586
|
-
},
|
|
584
|
+
const ul = "_input_14n56_5", pl = {
|
|
585
|
+
input: ul
|
|
586
|
+
}, G = ({
|
|
587
587
|
value: e,
|
|
588
588
|
onChange: n,
|
|
589
589
|
readOnly: i = !1,
|
|
@@ -614,7 +614,7 @@ const hl = "_input_14n56_5", ul = {
|
|
|
614
614
|
"input",
|
|
615
615
|
{
|
|
616
616
|
type: "number",
|
|
617
|
-
className:
|
|
617
|
+
className: pl.input,
|
|
618
618
|
style: I,
|
|
619
619
|
value: e ?? "",
|
|
620
620
|
onChange: k,
|
|
@@ -628,7 +628,7 @@ const hl = "_input_14n56_5", ul = {
|
|
|
628
628
|
}
|
|
629
629
|
);
|
|
630
630
|
};
|
|
631
|
-
|
|
631
|
+
G.displayName = "NumberInput";
|
|
632
632
|
const Et = ({
|
|
633
633
|
rgba: e,
|
|
634
634
|
onChange: n,
|
|
@@ -637,7 +637,7 @@ const Et = ({
|
|
|
637
637
|
/* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
|
|
638
638
|
/* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "R" }),
|
|
639
639
|
/* @__PURE__ */ t(
|
|
640
|
-
|
|
640
|
+
G,
|
|
641
641
|
{
|
|
642
642
|
value: e.r,
|
|
643
643
|
onChange: (l) => n("r", l),
|
|
@@ -653,7 +653,7 @@ const Et = ({
|
|
|
653
653
|
/* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
|
|
654
654
|
/* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "G" }),
|
|
655
655
|
/* @__PURE__ */ t(
|
|
656
|
-
|
|
656
|
+
G,
|
|
657
657
|
{
|
|
658
658
|
value: e.g,
|
|
659
659
|
onChange: (l) => n("g", l),
|
|
@@ -669,7 +669,7 @@ const Et = ({
|
|
|
669
669
|
/* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
|
|
670
670
|
/* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "B" }),
|
|
671
671
|
/* @__PURE__ */ t(
|
|
672
|
-
|
|
672
|
+
G,
|
|
673
673
|
{
|
|
674
674
|
value: e.b,
|
|
675
675
|
onChange: (l) => n("b", l),
|
|
@@ -685,7 +685,7 @@ const Et = ({
|
|
|
685
685
|
/* @__PURE__ */ p("div", { className: z.rgbaInputGroup, children: [
|
|
686
686
|
/* @__PURE__ */ t("span", { className: z.rgbaLabel, children: "A" }),
|
|
687
687
|
/* @__PURE__ */ t(
|
|
688
|
-
|
|
688
|
+
G,
|
|
689
689
|
{
|
|
690
690
|
value: Math.round(e.a * 100),
|
|
691
691
|
onChange: (l) => n("a", l !== void 0 ? l / 100 : void 0),
|
|
@@ -806,11 +806,11 @@ const le = ({
|
|
|
806
806
|
(E, B) => {
|
|
807
807
|
if (B === void 0) return;
|
|
808
808
|
const J = { ..._, [E]: B };
|
|
809
|
-
w(J), n(
|
|
809
|
+
w(J), n(Jn(J));
|
|
810
810
|
},
|
|
811
811
|
[_, n]
|
|
812
|
-
), T = e ?? "未設定",
|
|
813
|
-
e && (
|
|
812
|
+
), T = e ?? "未設定", D = {};
|
|
813
|
+
e && (D.background = e);
|
|
814
814
|
const A = {};
|
|
815
815
|
return h !== void 0 ? A.width = `${h}px` : A.width = "100%", f !== void 0 && (A.height = `${f}px`), /* @__PURE__ */ p("div", { className: z.container, style: A, ref: g, children: [
|
|
816
816
|
/* @__PURE__ */ t(
|
|
@@ -822,7 +822,7 @@ const le = ({
|
|
|
822
822
|
disabled: i,
|
|
823
823
|
title: T,
|
|
824
824
|
"aria-label": "カラーピッカーを開く",
|
|
825
|
-
style:
|
|
825
|
+
style: D
|
|
826
826
|
}
|
|
827
827
|
),
|
|
828
828
|
l && /* @__PURE__ */ p("div", { className: z.textInputWrapper, children: [
|
|
@@ -857,10 +857,10 @@ const le = ({
|
|
|
857
857
|
] });
|
|
858
858
|
};
|
|
859
859
|
le.displayName = "ColorPicker";
|
|
860
|
-
const
|
|
861
|
-
container:
|
|
862
|
-
valueInput:
|
|
863
|
-
unitSelect:
|
|
860
|
+
const ml = "_container_1n9lj_5", bl = "_valueInput_1n9lj_23", vl = "_unitSelect_1n9lj_45", Fe = {
|
|
861
|
+
container: ml,
|
|
862
|
+
valueInput: bl,
|
|
863
|
+
unitSelect: vl
|
|
864
864
|
}, j = (e) => {
|
|
865
865
|
const { value: n, onChange: i, readOnly: l = !1, config: a } = e, o = e.allowedUnits ?? (a == null ? void 0 : a.allowedUnits), c = e.min ?? (a == null ? void 0 : a.min), r = e.max ?? (a == null ? void 0 : a.max), s = e.step ?? (a == null ? void 0 : a.step) ?? 1, d = e.placeholder ?? (a == null ? void 0 : a.placeholder), u = e.width ?? (a == null ? void 0 : a.width), h = e.height ?? (a == null ? void 0 : a.height), f = e.ariaLabel, v = (n == null ? void 0 : n.unit) ?? (o == null ? void 0 : o[0]), m = y(
|
|
866
866
|
(k) => {
|
|
@@ -921,10 +921,10 @@ const pl = "_container_1n9lj_5", ml = "_valueInput_1n9lj_23", bl = "_unitSelect_
|
|
|
921
921
|
}
|
|
922
922
|
)
|
|
923
923
|
] });
|
|
924
|
-
},
|
|
925
|
-
container:
|
|
926
|
-
select:
|
|
927
|
-
placeholderOverlay:
|
|
924
|
+
}, fl = "_container_14f2v_5", gl = "_select_14f2v_11", yl = "_placeholderOverlay_14f2v_44", je = {
|
|
925
|
+
container: fl,
|
|
926
|
+
select: gl,
|
|
927
|
+
placeholderOverlay: yl
|
|
928
928
|
}, ge = (e) => {
|
|
929
929
|
const { value: n, onChange: i, readOnly: l = !1, config: a } = e, o = e.options ?? (a == null ? void 0 : a.options) ?? [], c = e.placeholder ?? (a == null ? void 0 : a.placeholder) ?? "選択してください", r = e.width ?? (a == null ? void 0 : a.width), s = e.height ?? (a == null ? void 0 : a.height), d = e.allowEmpty ?? (a == null ? void 0 : a.allowEmpty) ?? !0, u = y(
|
|
930
930
|
(g) => {
|
|
@@ -965,8 +965,8 @@ const pl = "_container_1n9lj_5", ml = "_valueInput_1n9lj_23", bl = "_unitSelect_
|
|
|
965
965
|
] });
|
|
966
966
|
};
|
|
967
967
|
ge.displayName = "Dropdown";
|
|
968
|
-
const
|
|
969
|
-
button:
|
|
968
|
+
const _l = "_button_16snt_1", xl = {
|
|
969
|
+
button: _l
|
|
970
970
|
}, Z = ({
|
|
971
971
|
icon: e,
|
|
972
972
|
label: n,
|
|
@@ -979,7 +979,7 @@ const yl = "_button_16snt_1", _l = {
|
|
|
979
979
|
"button",
|
|
980
980
|
{
|
|
981
981
|
type: "button",
|
|
982
|
-
className:
|
|
982
|
+
className: xl.button,
|
|
983
983
|
onMouseDown: c ? (r) => r.preventDefault() : void 0,
|
|
984
984
|
onMouseEnter: l,
|
|
985
985
|
onClick: i,
|
|
@@ -990,20 +990,20 @@ const yl = "_button_16snt_1", _l = {
|
|
|
990
990
|
}
|
|
991
991
|
);
|
|
992
992
|
Z.displayName = "IconActionButton";
|
|
993
|
-
const
|
|
994
|
-
container:
|
|
995
|
-
scrollArea:
|
|
996
|
-
emptyState:
|
|
993
|
+
const wl = "_container_ytzac_4", Nl = "_scrollArea_ytzac_21", Cl = "_emptyState_ytzac_29", Ue = {
|
|
994
|
+
container: wl,
|
|
995
|
+
scrollArea: Nl,
|
|
996
|
+
emptyState: Cl
|
|
997
997
|
}, Mt = ({
|
|
998
998
|
children: e,
|
|
999
999
|
emptyMessage: n,
|
|
1000
1000
|
className: i
|
|
1001
|
-
}) => /* @__PURE__ */ t("div", { className: `${Ue.container} ${i || ""}`, children: e ? /* @__PURE__ */ t("div", { className: Ue.scrollArea, children: e }) : n && /* @__PURE__ */ t("div", { className: Ue.emptyState, children: n }) }),
|
|
1002
|
-
root:
|
|
1003
|
-
list:
|
|
1004
|
-
trigger:
|
|
1005
|
-
content:
|
|
1006
|
-
}, We = gt(void 0),
|
|
1001
|
+
}) => /* @__PURE__ */ t("div", { className: `${Ue.container} ${i || ""}`, children: e ? /* @__PURE__ */ t("div", { className: Ue.scrollArea, children: e }) : n && /* @__PURE__ */ t("div", { className: Ue.emptyState, children: n }) }), Sl = "_root_vttth_1", Il = "_list_vttth_9", $l = "_trigger_vttth_24", Ll = "_content_vttth_69", ze = {
|
|
1002
|
+
root: Sl,
|
|
1003
|
+
list: Il,
|
|
1004
|
+
trigger: $l,
|
|
1005
|
+
content: Ll
|
|
1006
|
+
}, We = gt(void 0), kl = ({
|
|
1007
1007
|
defaultValue: e,
|
|
1008
1008
|
value: n,
|
|
1009
1009
|
onValueChange: i,
|
|
@@ -1015,14 +1015,14 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1015
1015
|
r(u), i == null || i(u);
|
|
1016
1016
|
};
|
|
1017
1017
|
return /* @__PURE__ */ t(We.Provider, { value: { value: s, onChange: d, variant: a }, children: /* @__PURE__ */ t("div", { className: `${ze.root} ${o}`, "data-variant": a, children: l }) });
|
|
1018
|
-
},
|
|
1018
|
+
}, Tl = ({
|
|
1019
1019
|
children: e,
|
|
1020
1020
|
className: n = "",
|
|
1021
1021
|
width: i,
|
|
1022
1022
|
height: l,
|
|
1023
1023
|
style: a
|
|
1024
1024
|
}) => {
|
|
1025
|
-
const o =
|
|
1025
|
+
const o = Pe(We);
|
|
1026
1026
|
if (!o)
|
|
1027
1027
|
throw new Error("TabsList must be used within a Tabs component");
|
|
1028
1028
|
const { variant: c } = o, r = { ...a };
|
|
@@ -1044,7 +1044,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1044
1044
|
height: o,
|
|
1045
1045
|
style: c
|
|
1046
1046
|
}) => {
|
|
1047
|
-
const r =
|
|
1047
|
+
const r = Pe(We);
|
|
1048
1048
|
if (!r)
|
|
1049
1049
|
throw new Error("TabsTrigger must be used within a Tabs component");
|
|
1050
1050
|
const { value: s, onChange: d, variant: u } = r, h = s === e, f = { ...c };
|
|
@@ -1066,13 +1066,13 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1066
1066
|
children: n,
|
|
1067
1067
|
className: i = ""
|
|
1068
1068
|
}) => {
|
|
1069
|
-
const l =
|
|
1069
|
+
const l = Pe(We);
|
|
1070
1070
|
if (!l)
|
|
1071
1071
|
throw new Error("TabsContent must be used within a Tabs component");
|
|
1072
1072
|
const { value: a } = l;
|
|
1073
1073
|
return a !== e ? null : /* @__PURE__ */ t("div", { className: `${ze.content} ${i}`, children: n });
|
|
1074
|
-
},
|
|
1075
|
-
input:
|
|
1074
|
+
}, El = "_input_jxjyc_5", Al = {
|
|
1075
|
+
input: El
|
|
1076
1076
|
}, Se = ({
|
|
1077
1077
|
value: e,
|
|
1078
1078
|
onChange: n,
|
|
@@ -1095,7 +1095,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1095
1095
|
), w = {};
|
|
1096
1096
|
r !== void 0 ? w.width = `${r}px` : w.width = "100%", s !== void 0 && (w.height = `${s}px`);
|
|
1097
1097
|
const L = {
|
|
1098
|
-
className:
|
|
1098
|
+
className: Al.input,
|
|
1099
1099
|
style: w,
|
|
1100
1100
|
value: e ?? "",
|
|
1101
1101
|
onChange: _,
|
|
@@ -1107,7 +1107,7 @@ const xl = "_container_ytzac_4", wl = "_scrollArea_ytzac_21", Nl = "_emptyState_
|
|
|
1107
1107
|
return m ? /* @__PURE__ */ t("textarea", { ...L, rows: g }) : /* @__PURE__ */ t("input", { ...L, type: "text", onBlur: h });
|
|
1108
1108
|
};
|
|
1109
1109
|
Se.displayName = "TextInput";
|
|
1110
|
-
const
|
|
1110
|
+
const Ml = ({
|
|
1111
1111
|
actionContext: e,
|
|
1112
1112
|
onActionFeedback: n,
|
|
1113
1113
|
onPrint: i
|
|
@@ -1166,8 +1166,8 @@ const Al = ({
|
|
|
1166
1166
|
)
|
|
1167
1167
|
] });
|
|
1168
1168
|
};
|
|
1169
|
-
|
|
1170
|
-
const ut = { value: 1, unit: "fr" },
|
|
1169
|
+
Ml.displayName = "CanvasActionSection";
|
|
1170
|
+
const ut = { value: 1, unit: "fr" }, Dl = ({
|
|
1171
1171
|
grid: e,
|
|
1172
1172
|
onGridChange: n
|
|
1173
1173
|
}) => {
|
|
@@ -1199,12 +1199,12 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
|
|
|
1199
1199
|
[e, n]
|
|
1200
1200
|
);
|
|
1201
1201
|
return /* @__PURE__ */ p(oe, { children: [
|
|
1202
|
-
/* @__PURE__ */ t("span", { className:
|
|
1202
|
+
/* @__PURE__ */ t("span", { className: P.sectionLabel, children: "列" }),
|
|
1203
1203
|
/* @__PURE__ */ t(
|
|
1204
1204
|
"input",
|
|
1205
1205
|
{
|
|
1206
1206
|
type: "number",
|
|
1207
|
-
className:
|
|
1207
|
+
className: P.numberInput,
|
|
1208
1208
|
value: e.colCount,
|
|
1209
1209
|
min: 1,
|
|
1210
1210
|
max: 100,
|
|
@@ -1213,12 +1213,12 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
|
|
|
1213
1213
|
title: "列数"
|
|
1214
1214
|
}
|
|
1215
1215
|
),
|
|
1216
|
-
/* @__PURE__ */ t("span", { className:
|
|
1216
|
+
/* @__PURE__ */ t("span", { className: P.sectionLabel, children: "行" }),
|
|
1217
1217
|
/* @__PURE__ */ t(
|
|
1218
1218
|
"input",
|
|
1219
1219
|
{
|
|
1220
1220
|
type: "number",
|
|
1221
|
-
className:
|
|
1221
|
+
className: P.numberInput,
|
|
1222
1222
|
value: e.rowCount,
|
|
1223
1223
|
min: 1,
|
|
1224
1224
|
max: 100,
|
|
@@ -1229,7 +1229,7 @@ const ut = { value: 1, unit: "fr" }, Ml = ({
|
|
|
1229
1229
|
)
|
|
1230
1230
|
] });
|
|
1231
1231
|
};
|
|
1232
|
-
|
|
1232
|
+
Dl.displayName = "GridSettingsSection";
|
|
1233
1233
|
function ke(e, n) {
|
|
1234
1234
|
switch (n) {
|
|
1235
1235
|
case "cm":
|
|
@@ -1247,7 +1247,7 @@ const Pl = [
|
|
|
1247
1247
|
{ value: F.LETTER, label: "Letter" },
|
|
1248
1248
|
{ value: F.LEGAL, label: "Legal" },
|
|
1249
1249
|
{ value: F.CUSTOM, label: "カスタム" }
|
|
1250
|
-
],
|
|
1250
|
+
], Bl = ({
|
|
1251
1251
|
paper: e,
|
|
1252
1252
|
onPaperChange: n
|
|
1253
1253
|
}) => {
|
|
@@ -1302,11 +1302,11 @@ const Pl = [
|
|
|
1302
1302
|
n({ ...e, autoWidth: a ? void 0 : !0 });
|
|
1303
1303
|
}, [e, a, n]);
|
|
1304
1304
|
return /* @__PURE__ */ p(oe, { children: [
|
|
1305
|
-
/* @__PURE__ */ t("span", { className:
|
|
1305
|
+
/* @__PURE__ */ t("span", { className: P.sectionLabel, children: "用紙" }),
|
|
1306
1306
|
/* @__PURE__ */ t(
|
|
1307
1307
|
"select",
|
|
1308
1308
|
{
|
|
1309
|
-
className:
|
|
1309
|
+
className: P.select,
|
|
1310
1310
|
value: e.size.preset,
|
|
1311
1311
|
onChange: o,
|
|
1312
1312
|
"aria-label": "用紙サイズ",
|
|
@@ -1314,11 +1314,11 @@ const Pl = [
|
|
|
1314
1314
|
children: Pl.map((h) => /* @__PURE__ */ t("option", { value: h.value, children: h.label }, h.value))
|
|
1315
1315
|
}
|
|
1316
1316
|
),
|
|
1317
|
-
/* @__PURE__ */ p("div", { className:
|
|
1317
|
+
/* @__PURE__ */ p("div", { className: P.heightModeSwitch, children: [
|
|
1318
1318
|
/* @__PURE__ */ t(
|
|
1319
1319
|
"span",
|
|
1320
1320
|
{
|
|
1321
|
-
className: `${
|
|
1321
|
+
className: `${P.switchLabel} ${l ? "" : P.switchLabelActive}`,
|
|
1322
1322
|
children: "固定"
|
|
1323
1323
|
}
|
|
1324
1324
|
),
|
|
@@ -1329,24 +1329,24 @@ const Pl = [
|
|
|
1329
1329
|
role: "switch",
|
|
1330
1330
|
"aria-checked": l,
|
|
1331
1331
|
"aria-label": "高さモード",
|
|
1332
|
-
className:
|
|
1332
|
+
className: P.toggle,
|
|
1333
1333
|
onClick: d,
|
|
1334
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
1334
|
+
children: /* @__PURE__ */ t("span", { className: P.thumb })
|
|
1335
1335
|
}
|
|
1336
1336
|
),
|
|
1337
1337
|
/* @__PURE__ */ t(
|
|
1338
1338
|
"span",
|
|
1339
1339
|
{
|
|
1340
|
-
className: `${
|
|
1340
|
+
className: `${P.switchLabel} ${l ? P.switchLabelActive : ""}`,
|
|
1341
1341
|
children: "自動"
|
|
1342
1342
|
}
|
|
1343
1343
|
)
|
|
1344
1344
|
] }),
|
|
1345
|
-
/* @__PURE__ */ p("div", { className:
|
|
1345
|
+
/* @__PURE__ */ p("div", { className: P.heightModeSwitch, children: [
|
|
1346
1346
|
/* @__PURE__ */ t(
|
|
1347
1347
|
"span",
|
|
1348
1348
|
{
|
|
1349
|
-
className: `${
|
|
1349
|
+
className: `${P.switchLabel} ${a ? "" : P.switchLabelActive}`,
|
|
1350
1350
|
children: "幅固定"
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
@@ -1357,15 +1357,15 @@ const Pl = [
|
|
|
1357
1357
|
role: "switch",
|
|
1358
1358
|
"aria-checked": a,
|
|
1359
1359
|
"aria-label": "幅モード",
|
|
1360
|
-
className:
|
|
1360
|
+
className: P.toggle,
|
|
1361
1361
|
onClick: u,
|
|
1362
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
1362
|
+
children: /* @__PURE__ */ t("span", { className: P.thumb })
|
|
1363
1363
|
}
|
|
1364
1364
|
),
|
|
1365
1365
|
/* @__PURE__ */ t(
|
|
1366
1366
|
"span",
|
|
1367
1367
|
{
|
|
1368
|
-
className: `${
|
|
1368
|
+
className: `${P.switchLabel} ${a ? P.switchLabelActive : ""}`,
|
|
1369
1369
|
children: "幅自動"
|
|
1370
1370
|
}
|
|
1371
1371
|
)
|
|
@@ -1375,7 +1375,7 @@ const Pl = [
|
|
|
1375
1375
|
"input",
|
|
1376
1376
|
{
|
|
1377
1377
|
type: "number",
|
|
1378
|
-
className:
|
|
1378
|
+
className: P.numberInput,
|
|
1379
1379
|
value: e.size.width.value,
|
|
1380
1380
|
min: ke(
|
|
1381
1381
|
K.fromDim(e.margin.left) + K.fromDim(e.margin.right),
|
|
@@ -1388,12 +1388,12 @@ const Pl = [
|
|
|
1388
1388
|
title: "幅"
|
|
1389
1389
|
}
|
|
1390
1390
|
),
|
|
1391
|
-
/* @__PURE__ */ t("span", { className:
|
|
1391
|
+
/* @__PURE__ */ t("span", { className: P.sectionLabel, children: "×" }),
|
|
1392
1392
|
/* @__PURE__ */ t(
|
|
1393
1393
|
"input",
|
|
1394
1394
|
{
|
|
1395
1395
|
type: "number",
|
|
1396
|
-
className:
|
|
1396
|
+
className: P.numberInput,
|
|
1397
1397
|
value: e.size.height.value,
|
|
1398
1398
|
min: ke(
|
|
1399
1399
|
K.fromDim(e.margin.top) + K.fromDim(e.margin.bottom),
|
|
@@ -1409,7 +1409,7 @@ const Pl = [
|
|
|
1409
1409
|
/* @__PURE__ */ p(
|
|
1410
1410
|
"select",
|
|
1411
1411
|
{
|
|
1412
|
-
className:
|
|
1412
|
+
className: P.select,
|
|
1413
1413
|
value: e.size.width.unit,
|
|
1414
1414
|
onChange: s,
|
|
1415
1415
|
"aria-label": "用紙単位",
|
|
@@ -1424,7 +1424,7 @@ const Pl = [
|
|
|
1424
1424
|
] })
|
|
1425
1425
|
] });
|
|
1426
1426
|
};
|
|
1427
|
-
|
|
1427
|
+
Bl.displayName = "PaperSettingsSection";
|
|
1428
1428
|
function ne(e, n, i) {
|
|
1429
1429
|
const l = n.split("."), a = (o, c) => {
|
|
1430
1430
|
const r = l[c];
|
|
@@ -1459,7 +1459,7 @@ function Y(e, n) {
|
|
|
1459
1459
|
(c) => i(c, l) === a
|
|
1460
1460
|
) ? a : void 0;
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function zl(e, n, i) {
|
|
1463
1463
|
var o, c;
|
|
1464
1464
|
if (!e) return [];
|
|
1465
1465
|
const l = [], a = [
|
|
@@ -1496,7 +1496,7 @@ function Bl(e, n, i) {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
return l;
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1499
|
+
function Wl(e) {
|
|
1500
1500
|
const n = e == null ? void 0 : e.border;
|
|
1501
1501
|
if (!n) return;
|
|
1502
1502
|
const i = (a) => {
|
|
@@ -1563,9 +1563,9 @@ const it = ({
|
|
|
1563
1563
|
), o = te(() => {
|
|
1564
1564
|
if (e.length !== 1) return;
|
|
1565
1565
|
const u = e[0];
|
|
1566
|
-
return
|
|
1566
|
+
return Wl(u == null ? void 0 : u.style);
|
|
1567
1567
|
}, [e]), c = te(
|
|
1568
|
-
() =>
|
|
1568
|
+
() => zl(o, 80, 80),
|
|
1569
1569
|
[o]
|
|
1570
1570
|
);
|
|
1571
1571
|
if (e.length === 0) return null;
|
|
@@ -1761,8 +1761,8 @@ const it = ({
|
|
|
1761
1761
|
allowUndefined: !0
|
|
1762
1762
|
}
|
|
1763
1763
|
),
|
|
1764
|
-
/* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ p(
|
|
1765
|
-
/* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ p(
|
|
1764
|
+
/* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ p(kl, { defaultValue: "all", variant: "segmented", children: [
|
|
1765
|
+
/* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ p(Tl, { style: { width: "100%", display: "flex" }, children: [
|
|
1766
1766
|
/* @__PURE__ */ t(_e, { value: "all", height: 24, style: d, children: "共通" }),
|
|
1767
1767
|
/* @__PURE__ */ t(_e, { value: "top", height: 24, style: d, children: "上" }),
|
|
1768
1768
|
/* @__PURE__ */ t(_e, { value: "bottom", height: 24, style: d, children: "下" }),
|
|
@@ -1782,12 +1782,12 @@ const it = ({
|
|
|
1782
1782
|
);
|
|
1783
1783
|
};
|
|
1784
1784
|
it.displayName = "BackgroundBorderPanel";
|
|
1785
|
-
const
|
|
1786
|
-
container:
|
|
1787
|
-
grid:
|
|
1788
|
-
field:
|
|
1789
|
-
label:
|
|
1790
|
-
inputWrapper:
|
|
1785
|
+
const Rl = "_container_1gf2q_1", Ol = "_grid_1gf2q_9", Fl = "_field_1gf2q_15", jl = "_label_1gf2q_22", Ul = "_inputWrapper_1gf2q_32", q = {
|
|
1786
|
+
container: Rl,
|
|
1787
|
+
grid: Ol,
|
|
1788
|
+
field: Fl,
|
|
1789
|
+
label: jl,
|
|
1790
|
+
inputWrapper: Ul
|
|
1791
1791
|
}, at = ({
|
|
1792
1792
|
selectedBlocks: e,
|
|
1793
1793
|
onUpdateBlocks: n,
|
|
@@ -1835,11 +1835,11 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1835
1835
|
)
|
|
1836
1836
|
});
|
|
1837
1837
|
};
|
|
1838
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1839
|
-
/* @__PURE__ */ p("div", { className:
|
|
1840
|
-
/* @__PURE__ */ t("span", { className:
|
|
1841
|
-
/* @__PURE__ */ t("div", { className:
|
|
1842
|
-
|
|
1838
|
+
return /* @__PURE__ */ t("div", { className: q.container, children: /* @__PURE__ */ p("div", { className: q.grid, children: [
|
|
1839
|
+
/* @__PURE__ */ p("div", { className: q.field, children: [
|
|
1840
|
+
/* @__PURE__ */ t("span", { className: q.label, children: "X" }),
|
|
1841
|
+
/* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
|
|
1842
|
+
G,
|
|
1843
1843
|
{
|
|
1844
1844
|
value: l ? a : Y(e, "layout.x"),
|
|
1845
1845
|
onChange: (r) => c("x", r),
|
|
@@ -1851,10 +1851,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1851
1851
|
}
|
|
1852
1852
|
) })
|
|
1853
1853
|
] }),
|
|
1854
|
-
/* @__PURE__ */ p("div", { className:
|
|
1855
|
-
/* @__PURE__ */ t("span", { className:
|
|
1856
|
-
/* @__PURE__ */ t("div", { className:
|
|
1857
|
-
|
|
1854
|
+
/* @__PURE__ */ p("div", { className: q.field, children: [
|
|
1855
|
+
/* @__PURE__ */ t("span", { className: q.label, children: "Y" }),
|
|
1856
|
+
/* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
|
|
1857
|
+
G,
|
|
1858
1858
|
{
|
|
1859
1859
|
value: l ? o : Y(e, "layout.y"),
|
|
1860
1860
|
onChange: (r) => c("y", r),
|
|
@@ -1866,10 +1866,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1866
1866
|
}
|
|
1867
1867
|
) })
|
|
1868
1868
|
] }),
|
|
1869
|
-
/* @__PURE__ */ p("div", { className:
|
|
1870
|
-
/* @__PURE__ */ t("span", { className:
|
|
1871
|
-
/* @__PURE__ */ t("div", { className:
|
|
1872
|
-
|
|
1869
|
+
/* @__PURE__ */ p("div", { className: q.field, children: [
|
|
1870
|
+
/* @__PURE__ */ t("span", { className: q.label, children: "W" }),
|
|
1871
|
+
/* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
|
|
1872
|
+
G,
|
|
1873
1873
|
{
|
|
1874
1874
|
value: Y(e, "layout.w"),
|
|
1875
1875
|
onChange: (r) => c("w", r),
|
|
@@ -1881,10 +1881,10 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1881
1881
|
}
|
|
1882
1882
|
) })
|
|
1883
1883
|
] }),
|
|
1884
|
-
/* @__PURE__ */ p("div", { className:
|
|
1885
|
-
/* @__PURE__ */ t("span", { className:
|
|
1886
|
-
/* @__PURE__ */ t("div", { className:
|
|
1887
|
-
|
|
1884
|
+
/* @__PURE__ */ p("div", { className: q.field, children: [
|
|
1885
|
+
/* @__PURE__ */ t("span", { className: q.label, children: "H" }),
|
|
1886
|
+
/* @__PURE__ */ t("div", { className: q.inputWrapper, children: /* @__PURE__ */ t(
|
|
1887
|
+
G,
|
|
1888
1888
|
{
|
|
1889
1889
|
value: Y(e, "layout.h"),
|
|
1890
1890
|
onChange: (r) => c("h", r),
|
|
@@ -1899,9 +1899,9 @@ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", F
|
|
|
1899
1899
|
] }) });
|
|
1900
1900
|
};
|
|
1901
1901
|
at.displayName = "LayoutPanel";
|
|
1902
|
-
const
|
|
1903
|
-
group:
|
|
1904
|
-
btn:
|
|
1902
|
+
const Vl = "_group_xhfvf_1", ql = "_btn_xhfvf_13", Gl = "_active_xhfvf_46", Ve = {
|
|
1903
|
+
group: Vl,
|
|
1904
|
+
btn: ql,
|
|
1905
1905
|
active: Gl
|
|
1906
1906
|
}, Ze = fe(
|
|
1907
1907
|
({ options: e, current: n, onChange: i }) => /* @__PURE__ */ t("fieldset", { className: Ve.group, children: e.map((l) => {
|
|
@@ -1932,7 +1932,7 @@ const se = rn.defaultProps.styleConfig, re = {
|
|
|
1932
1932
|
display: "flex",
|
|
1933
1933
|
gap: 4,
|
|
1934
1934
|
alignItems: "center"
|
|
1935
|
-
},
|
|
1935
|
+
}, Dt = ({
|
|
1936
1936
|
value: e,
|
|
1937
1937
|
onChange: n,
|
|
1938
1938
|
readOnly: i = !1
|
|
@@ -2063,16 +2063,16 @@ const se = rn.defaultProps.styleConfig, re = {
|
|
|
2063
2063
|
] })
|
|
2064
2064
|
] });
|
|
2065
2065
|
};
|
|
2066
|
-
|
|
2067
|
-
const
|
|
2068
|
-
group:
|
|
2069
|
-
btn:
|
|
2070
|
-
active:
|
|
2071
|
-
iconBold:
|
|
2072
|
-
iconItalic:
|
|
2073
|
-
iconUnderline:
|
|
2074
|
-
iconLineThrough:
|
|
2075
|
-
},
|
|
2066
|
+
Dt.displayName = "CheckboxStyleEditor";
|
|
2067
|
+
const Hl = "_group_1uyid_1", Kl = "_btn_1uyid_13", Zl = "_active_1uyid_46", Yl = "_iconBold_1uyid_52", Jl = "_iconItalic_1uyid_59", Xl = "_iconUnderline_1uyid_66", Ql = "_iconLineThrough_1uyid_73", ue = {
|
|
2068
|
+
group: Hl,
|
|
2069
|
+
btn: Kl,
|
|
2070
|
+
active: Zl,
|
|
2071
|
+
iconBold: Yl,
|
|
2072
|
+
iconItalic: Jl,
|
|
2073
|
+
iconUnderline: Xl,
|
|
2074
|
+
iconLineThrough: Ql
|
|
2075
|
+
}, ei = [
|
|
2076
2076
|
{
|
|
2077
2077
|
key: "fontWeight",
|
|
2078
2078
|
label: "太字",
|
|
@@ -2093,7 +2093,7 @@ const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
|
|
|
2093
2093
|
label: "取り消し線",
|
|
2094
2094
|
icon: /* @__PURE__ */ t("span", { className: ue.iconLineThrough, "aria-hidden": "true", children: "S" })
|
|
2095
2095
|
}
|
|
2096
|
-
],
|
|
2096
|
+
], Pt = ({
|
|
2097
2097
|
value: e,
|
|
2098
2098
|
onChange: n,
|
|
2099
2099
|
readOnly: i = !1
|
|
@@ -2101,7 +2101,7 @@ const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
|
|
|
2101
2101
|
const l = e ?? {}, a = (o) => {
|
|
2102
2102
|
i || n({ ...l, [o]: !l[o] });
|
|
2103
2103
|
};
|
|
2104
|
-
return /* @__PURE__ */ t("fieldset", { className: ue.group, children:
|
|
2104
|
+
return /* @__PURE__ */ t("fieldset", { className: ue.group, children: ei.map(({ key: o, label: c, icon: r }) => {
|
|
2105
2105
|
const s = !!l[o];
|
|
2106
2106
|
return /* @__PURE__ */ t(
|
|
2107
2107
|
"button",
|
|
@@ -2119,13 +2119,13 @@ const ql = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl =
|
|
|
2119
2119
|
);
|
|
2120
2120
|
}) });
|
|
2121
2121
|
};
|
|
2122
|
-
|
|
2123
|
-
const
|
|
2124
|
-
root:
|
|
2125
|
-
fontFamilyCell:
|
|
2126
|
-
fontSizeCell:
|
|
2127
|
-
colorCell:
|
|
2128
|
-
},
|
|
2122
|
+
Pt.displayName = "FontDecorationToggle";
|
|
2123
|
+
const ti = "_root_12n4v_6", ni = "_fontFamilyCell_12n4v_13", li = "_fontSizeCell_12n4v_14", ii = "_colorCell_12n4v_15", we = {
|
|
2124
|
+
root: ti,
|
|
2125
|
+
fontFamilyCell: ni,
|
|
2126
|
+
fontSizeCell: li,
|
|
2127
|
+
colorCell: ii
|
|
2128
|
+
}, ai = [
|
|
2129
2129
|
{ label: "ゴシック体", value: "sans-serif" },
|
|
2130
2130
|
{ label: "明朝体", value: "serif" },
|
|
2131
2131
|
{ label: "等幅", value: "monospace" },
|
|
@@ -2167,7 +2167,7 @@ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell
|
|
|
2167
2167
|
value: l.fontFamily,
|
|
2168
2168
|
onChange: a,
|
|
2169
2169
|
readOnly: i,
|
|
2170
|
-
options:
|
|
2170
|
+
options: ai,
|
|
2171
2171
|
placeholder: "フォント"
|
|
2172
2172
|
}
|
|
2173
2173
|
) }),
|
|
@@ -2190,7 +2190,7 @@ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell
|
|
|
2190
2190
|
}
|
|
2191
2191
|
) }),
|
|
2192
2192
|
/* @__PURE__ */ t("div", { className: we.decorationCell, children: /* @__PURE__ */ t(
|
|
2193
|
-
|
|
2193
|
+
Pt,
|
|
2194
2194
|
{
|
|
2195
2195
|
value: s,
|
|
2196
2196
|
onChange: r,
|
|
@@ -2450,14 +2450,14 @@ const zt = ({
|
|
|
2450
2450
|
] });
|
|
2451
2451
|
};
|
|
2452
2452
|
zt.displayName = "OptionsEditor";
|
|
2453
|
-
const
|
|
2454
|
-
root:
|
|
2455
|
-
linkLabel:
|
|
2456
|
-
allRow:
|
|
2457
|
-
grid:
|
|
2458
|
-
sideRow:
|
|
2459
|
-
cell:
|
|
2460
|
-
spacer:
|
|
2453
|
+
const oi = "_root_111zo_7", si = "_linkLabel_111zo_14", ri = "_allRow_111zo_31", ci = "_grid_111zo_38", di = "_sideRow_111zo_45", hi = "_cell_111zo_53", ui = "_spacer_111zo_59", Q = {
|
|
2454
|
+
root: oi,
|
|
2455
|
+
linkLabel: si,
|
|
2456
|
+
allRow: ri,
|
|
2457
|
+
grid: ci,
|
|
2458
|
+
sideRow: di,
|
|
2459
|
+
cell: hi,
|
|
2460
|
+
spacer: ui
|
|
2461
2461
|
}, Wt = ({
|
|
2462
2462
|
bulk: e,
|
|
2463
2463
|
onChange: n,
|
|
@@ -2584,16 +2584,16 @@ const ee = { value: 0, unit: "px" }, Rt = ({
|
|
|
2584
2584
|
] });
|
|
2585
2585
|
};
|
|
2586
2586
|
Rt.displayName = "PaddingEditor";
|
|
2587
|
-
const Ne = hn.defaultProps,
|
|
2587
|
+
const Ne = hn.defaultProps, pi = [
|
|
2588
2588
|
{ label: "標準", value: Re.normal },
|
|
2589
2589
|
{ label: "単語で折り返し", value: Re.breakWord },
|
|
2590
2590
|
{ label: "文字で折り返し", value: Re.breakAll }
|
|
2591
|
-
],
|
|
2591
|
+
], qe = {
|
|
2592
2592
|
display: "flex",
|
|
2593
2593
|
alignItems: "center",
|
|
2594
2594
|
gap: 6,
|
|
2595
2595
|
marginBottom: 4
|
|
2596
|
-
},
|
|
2596
|
+
}, Ge = {
|
|
2597
2597
|
fontSize: 11,
|
|
2598
2598
|
color: "#666",
|
|
2599
2599
|
minWidth: 72,
|
|
@@ -2605,8 +2605,8 @@ const Ne = hn.defaultProps, ui = [
|
|
|
2605
2605
|
onChange: l,
|
|
2606
2606
|
readOnly: a = !1
|
|
2607
2607
|
}) => /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
2608
|
-
/* @__PURE__ */ p("div", { style:
|
|
2609
|
-
/* @__PURE__ */ t("span", { style:
|
|
2608
|
+
/* @__PURE__ */ p("div", { style: qe, children: [
|
|
2609
|
+
/* @__PURE__ */ t("span", { style: Ge, children: "複数行" }),
|
|
2610
2610
|
/* @__PURE__ */ t(
|
|
2611
2611
|
ae,
|
|
2612
2612
|
{
|
|
@@ -2617,10 +2617,10 @@ const Ne = hn.defaultProps, ui = [
|
|
|
2617
2617
|
}
|
|
2618
2618
|
)
|
|
2619
2619
|
] }),
|
|
2620
|
-
/* @__PURE__ */ p("div", { style:
|
|
2621
|
-
/* @__PURE__ */ t("span", { style:
|
|
2620
|
+
/* @__PURE__ */ p("div", { style: qe, children: [
|
|
2621
|
+
/* @__PURE__ */ t("span", { style: Ge, children: "行間" }),
|
|
2622
2622
|
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
2623
|
-
|
|
2623
|
+
G,
|
|
2624
2624
|
{
|
|
2625
2625
|
value: n ?? Ne.lineHeight,
|
|
2626
2626
|
onChange: (o) => l("lineHeight", o ?? Ne.lineHeight),
|
|
@@ -2632,14 +2632,14 @@ const Ne = hn.defaultProps, ui = [
|
|
|
2632
2632
|
}
|
|
2633
2633
|
) })
|
|
2634
2634
|
] }),
|
|
2635
|
-
/* @__PURE__ */ p("div", { style:
|
|
2636
|
-
/* @__PURE__ */ t("span", { style:
|
|
2635
|
+
/* @__PURE__ */ p("div", { style: qe, children: [
|
|
2636
|
+
/* @__PURE__ */ t("span", { style: Ge, children: "折り返し" }),
|
|
2637
2637
|
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
2638
2638
|
ge,
|
|
2639
2639
|
{
|
|
2640
2640
|
value: i ?? Ne.wordWrap,
|
|
2641
2641
|
onChange: (o) => l("wordWrap", o ?? Ne.wordWrap),
|
|
2642
|
-
options:
|
|
2642
|
+
options: pi,
|
|
2643
2643
|
readOnly: a,
|
|
2644
2644
|
height: 24
|
|
2645
2645
|
}
|
|
@@ -2685,10 +2685,10 @@ const Me = [
|
|
|
2685
2685
|
hideLength: !0
|
|
2686
2686
|
},
|
|
2687
2687
|
{ label: "その他", inputType: "text", isCustom: !0 }
|
|
2688
|
-
],
|
|
2688
|
+
], mi = Me.map((e) => ({
|
|
2689
2689
|
label: e.label,
|
|
2690
2690
|
value: e.label
|
|
2691
|
-
})),
|
|
2691
|
+
})), bi = `[0-9] 数字のみ
|
|
2692
2692
|
[a-z] 英小文字
|
|
2693
2693
|
[A-Z] 英大文字
|
|
2694
2694
|
[ぁ-ん] ひらがな
|
|
@@ -2750,7 +2750,7 @@ const Me = [
|
|
|
2750
2750
|
{
|
|
2751
2751
|
value: _,
|
|
2752
2752
|
onChange: k,
|
|
2753
|
-
options:
|
|
2753
|
+
options: mi,
|
|
2754
2754
|
readOnly: c,
|
|
2755
2755
|
height: 24
|
|
2756
2756
|
}
|
|
@@ -2764,7 +2764,7 @@ const Me = [
|
|
|
2764
2764
|
style: { display: "flex", alignItems: "center", gap: 4, flex: 1 },
|
|
2765
2765
|
children: [
|
|
2766
2766
|
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
2767
|
-
|
|
2767
|
+
G,
|
|
2768
2768
|
{
|
|
2769
2769
|
value: n,
|
|
2770
2770
|
onChange: (I) => a("minLength", I ?? null),
|
|
@@ -2776,7 +2776,7 @@ const Me = [
|
|
|
2776
2776
|
) }),
|
|
2777
2777
|
/* @__PURE__ */ t("span", { style: { fontSize: 11, color: "#666" }, children: "〜" }),
|
|
2778
2778
|
/* @__PURE__ */ t("div", { style: { flex: 1 }, children: /* @__PURE__ */ t(
|
|
2779
|
-
|
|
2779
|
+
G,
|
|
2780
2780
|
{
|
|
2781
2781
|
value: i,
|
|
2782
2782
|
onChange: (I) => a("maxLength", I ?? null),
|
|
@@ -2867,7 +2867,7 @@ const Me = [
|
|
|
2867
2867
|
whiteSpace: "pre",
|
|
2868
2868
|
pointerEvents: "none"
|
|
2869
2869
|
},
|
|
2870
|
-
children:
|
|
2870
|
+
children: bi
|
|
2871
2871
|
}
|
|
2872
2872
|
),
|
|
2873
2873
|
document.body
|
|
@@ -2885,7 +2885,7 @@ const jt = {
|
|
|
2885
2885
|
textBehavior: "テキスト動作",
|
|
2886
2886
|
selectConfig: "選択肢設定",
|
|
2887
2887
|
checkboxStyle: "チェックボックスデザイン"
|
|
2888
|
-
},
|
|
2888
|
+
}, vi = [
|
|
2889
2889
|
{
|
|
2890
2890
|
value: Ee.left,
|
|
2891
2891
|
label: "左揃え",
|
|
@@ -2916,7 +2916,7 @@ const jt = {
|
|
|
2916
2916
|
/* @__PURE__ */ t("rect", { x: "5", y: "11", width: "7", height: "2.5", rx: "0.5" })
|
|
2917
2917
|
] })
|
|
2918
2918
|
}
|
|
2919
|
-
],
|
|
2919
|
+
], fi = [
|
|
2920
2920
|
{
|
|
2921
2921
|
value: Ae.top,
|
|
2922
2922
|
label: "上揃え",
|
|
@@ -2948,7 +2948,7 @@ const jt = {
|
|
|
2948
2948
|
function me(e) {
|
|
2949
2949
|
return typeof e == "object" && e !== null && typeof e.value == "number" && typeof e.unit == "string";
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function gi(e) {
|
|
2952
2952
|
return typeof e == "object" && e !== null && Array.isArray(e.options);
|
|
2953
2953
|
}
|
|
2954
2954
|
const ot = fe(
|
|
@@ -2977,7 +2977,7 @@ const ot = fe(
|
|
|
2977
2977
|
/* @__PURE__ */ t(
|
|
2978
2978
|
Ze,
|
|
2979
2979
|
{
|
|
2980
|
-
options:
|
|
2980
|
+
options: vi,
|
|
2981
2981
|
current: r,
|
|
2982
2982
|
onChange: (d) => l("horizontal", d)
|
|
2983
2983
|
}
|
|
@@ -2985,7 +2985,7 @@ const ot = fe(
|
|
|
2985
2985
|
/* @__PURE__ */ t(
|
|
2986
2986
|
Ze,
|
|
2987
2987
|
{
|
|
2988
|
-
options:
|
|
2988
|
+
options: fi,
|
|
2989
2989
|
current: s,
|
|
2990
2990
|
onChange: (d) => l("vertical", d)
|
|
2991
2991
|
}
|
|
@@ -3087,7 +3087,7 @@ const ot = fe(
|
|
|
3087
3087
|
case "checkboxStyle": {
|
|
3088
3088
|
const r = i("styleConfig");
|
|
3089
3089
|
return /* @__PURE__ */ t(
|
|
3090
|
-
|
|
3090
|
+
Dt,
|
|
3091
3091
|
{
|
|
3092
3092
|
value: r,
|
|
3093
3093
|
onChange: (s) => l("styleConfig", s)
|
|
@@ -3095,7 +3095,7 @@ const ot = fe(
|
|
|
3095
3095
|
);
|
|
3096
3096
|
}
|
|
3097
3097
|
case "selectConfig": {
|
|
3098
|
-
const r = i("selectConfig"), s =
|
|
3098
|
+
const r = i("selectConfig"), s = gi(r) ? r : { options: [] };
|
|
3099
3099
|
return /* @__PURE__ */ t(
|
|
3100
3100
|
zt,
|
|
3101
3101
|
{
|
|
@@ -3239,11 +3239,11 @@ const st = ({
|
|
|
3239
3239
|
return c.properties.length === 0 ? null : a ? /* @__PURE__ */ t(V, { title: c.meta.displayName, children: u }) : /* @__PURE__ */ t("div", { children: u });
|
|
3240
3240
|
};
|
|
3241
3241
|
st.displayName = "PluginPanels";
|
|
3242
|
-
const
|
|
3243
|
-
bar:
|
|
3244
|
-
divider:
|
|
3245
|
-
barWrapper:
|
|
3246
|
-
popover:
|
|
3242
|
+
const yi = "_bar_13lr1_4", _i = "_divider_13lr1_18", xi = "_barWrapper_13lr1_26", wi = "_popover_13lr1_31", Ie = {
|
|
3243
|
+
bar: yi,
|
|
3244
|
+
divider: _i,
|
|
3245
|
+
barWrapper: xi,
|
|
3246
|
+
popover: wi
|
|
3247
3247
|
}, ve = ({
|
|
3248
3248
|
icon: e,
|
|
3249
3249
|
label: n,
|
|
@@ -3265,15 +3265,15 @@ const gi = "_bar_13lr1_4", yi = "_divider_13lr1_18", _i = "_barWrapper_13lr1_26"
|
|
|
3265
3265
|
);
|
|
3266
3266
|
ve.displayName = "SelectionActionBarButton";
|
|
3267
3267
|
const Vt = gt(null);
|
|
3268
|
-
function
|
|
3269
|
-
const e =
|
|
3268
|
+
function Ni() {
|
|
3269
|
+
const e = Pe(Vt);
|
|
3270
3270
|
if (e === null)
|
|
3271
3271
|
throw new Error(
|
|
3272
3272
|
"useSelectionActionBar must be used inside SelectionActionBar"
|
|
3273
3273
|
);
|
|
3274
3274
|
return e;
|
|
3275
3275
|
}
|
|
3276
|
-
const
|
|
3276
|
+
const Ci = ({
|
|
3277
3277
|
items: e = [],
|
|
3278
3278
|
className: n,
|
|
3279
3279
|
style: i,
|
|
@@ -3343,8 +3343,8 @@ const Ni = ({
|
|
|
3343
3343
|
}
|
|
3344
3344
|
);
|
|
3345
3345
|
};
|
|
3346
|
-
|
|
3347
|
-
const
|
|
3346
|
+
Ci.displayName = "SelectionActionBar";
|
|
3347
|
+
const De = ({
|
|
3348
3348
|
id: e,
|
|
3349
3349
|
icon: n,
|
|
3350
3350
|
label: i,
|
|
@@ -3356,7 +3356,7 @@ const Pe = ({
|
|
|
3356
3356
|
openPanelByClick: c,
|
|
3357
3357
|
onPointerDown: r,
|
|
3358
3358
|
wrapperEl: s
|
|
3359
|
-
} =
|
|
3359
|
+
} = Ni();
|
|
3360
3360
|
return /* @__PURE__ */ p(oe, { children: [
|
|
3361
3361
|
/* @__PURE__ */ t(
|
|
3362
3362
|
ve,
|
|
@@ -3381,8 +3381,8 @@ const Pe = ({
|
|
|
3381
3381
|
)
|
|
3382
3382
|
] });
|
|
3383
3383
|
};
|
|
3384
|
-
|
|
3385
|
-
function
|
|
3384
|
+
De.displayName = "SelectionActionBarPanel";
|
|
3385
|
+
function Fa({
|
|
3386
3386
|
context: e,
|
|
3387
3387
|
gridSize: n,
|
|
3388
3388
|
onActionFeedback: i
|
|
@@ -3452,7 +3452,7 @@ function Oa({
|
|
|
3452
3452
|
)
|
|
3453
3453
|
), h && g.push(
|
|
3454
3454
|
/* @__PURE__ */ t(
|
|
3455
|
-
|
|
3455
|
+
De,
|
|
3456
3456
|
{
|
|
3457
3457
|
id: "style",
|
|
3458
3458
|
icon: /* @__PURE__ */ t($t, { "aria-hidden": "true" }),
|
|
@@ -3468,7 +3468,7 @@ function Oa({
|
|
|
3468
3468
|
"style"
|
|
3469
3469
|
),
|
|
3470
3470
|
/* @__PURE__ */ t(
|
|
3471
|
-
|
|
3471
|
+
De,
|
|
3472
3472
|
{
|
|
3473
3473
|
id: "layout",
|
|
3474
3474
|
icon: /* @__PURE__ */ t(Lt, { "aria-hidden": "true" }),
|
|
@@ -3486,7 +3486,7 @@ function Oa({
|
|
|
3486
3486
|
)
|
|
3487
3487
|
), f && g.push(
|
|
3488
3488
|
/* @__PURE__ */ t(
|
|
3489
|
-
|
|
3489
|
+
De,
|
|
3490
3490
|
{
|
|
3491
3491
|
id: "plugin",
|
|
3492
3492
|
icon: /* @__PURE__ */ t(kt, { "aria-hidden": "true" }),
|
|
@@ -3505,7 +3505,7 @@ function Oa({
|
|
|
3505
3505
|
)
|
|
3506
3506
|
), g;
|
|
3507
3507
|
}
|
|
3508
|
-
const pt = 8,
|
|
3508
|
+
const pt = 8, Si = 36, ja = ({
|
|
3509
3509
|
selectionBoundingBox: e,
|
|
3510
3510
|
isDragging: n,
|
|
3511
3511
|
zIndex: i = yt.SELECTION_ACTION_BAR,
|
|
@@ -3513,7 +3513,7 @@ const pt = 8, Ci = 36, Fa = ({
|
|
|
3513
3513
|
}) => {
|
|
3514
3514
|
if (e == null || n)
|
|
3515
3515
|
return null;
|
|
3516
|
-
const a = e, o = a.top - pt -
|
|
3516
|
+
const a = e, o = a.top - pt - Si, c = o >= 0 ? o : a.bottom + pt, r = {
|
|
3517
3517
|
position: "absolute",
|
|
3518
3518
|
inset: 0,
|
|
3519
3519
|
pointerEvents: "none",
|
|
@@ -3544,7 +3544,7 @@ const pt = 8, Ci = 36, Fa = ({
|
|
|
3544
3544
|
}
|
|
3545
3545
|
);
|
|
3546
3546
|
};
|
|
3547
|
-
function
|
|
3547
|
+
function Ua(e, n) {
|
|
3548
3548
|
const [i, l] = O(null);
|
|
3549
3549
|
return pe(() => {
|
|
3550
3550
|
if (n.length === 0) {
|
|
@@ -3581,18 +3581,18 @@ function ja(e, n) {
|
|
|
3581
3581
|
return () => cancelAnimationFrame(a);
|
|
3582
3582
|
}, [e, n]), i;
|
|
3583
3583
|
}
|
|
3584
|
-
const
|
|
3585
|
-
container:
|
|
3586
|
-
row:
|
|
3587
|
-
label:
|
|
3588
|
-
inputWrapper:
|
|
3589
|
-
error:
|
|
3584
|
+
const Ii = "_container_3lvww_1", $i = "_row_3lvww_9", Li = "_label_3lvww_15", ki = "_inputWrapper_3lvww_24", Ti = "_error_3lvww_31", X = {
|
|
3585
|
+
container: Ii,
|
|
3586
|
+
row: $i,
|
|
3587
|
+
label: Li,
|
|
3588
|
+
inputWrapper: ki,
|
|
3589
|
+
error: Ti
|
|
3590
3590
|
};
|
|
3591
3591
|
function mt(e, n, i) {
|
|
3592
3592
|
const l = e.trim();
|
|
3593
3593
|
return l ? /\s/.test(l) ? "スペースは使用できません" : l !== n && (i != null && i.has(l)) ? "このIDは既に使用されています" : null : "IDを入力してください";
|
|
3594
3594
|
}
|
|
3595
|
-
const
|
|
3595
|
+
const qt = ({
|
|
3596
3596
|
selectedBlocks: e,
|
|
3597
3597
|
onUpdateBlocks: n,
|
|
3598
3598
|
allBlockIds: i
|
|
@@ -3680,17 +3680,17 @@ const Gt = ({
|
|
|
3680
3680
|
) }) })
|
|
3681
3681
|
] });
|
|
3682
3682
|
};
|
|
3683
|
-
|
|
3684
|
-
const
|
|
3685
|
-
container:
|
|
3686
|
-
scrollArea:
|
|
3687
|
-
emptyState:
|
|
3683
|
+
qt.displayName = "MetaPanel";
|
|
3684
|
+
const Ei = "_container_2zb6l_1", Ai = "_scrollArea_2zb6l_18", Mi = "_emptyState_2zb6l_33", Ye = {
|
|
3685
|
+
container: Ei,
|
|
3686
|
+
scrollArea: Ai,
|
|
3687
|
+
emptyState: Mi
|
|
3688
3688
|
}, Je = ({
|
|
3689
3689
|
children: e,
|
|
3690
3690
|
className: n = ""
|
|
3691
3691
|
}) => /* @__PURE__ */ t("div", { className: `${Ye.container}${n ? ` ${n}` : ""}`, children: e });
|
|
3692
3692
|
Je.displayName = "BlockPropertyPanel";
|
|
3693
|
-
const
|
|
3693
|
+
const Di = fe(
|
|
3694
3694
|
({ context: e, gridSize: n, className: i = "" }) => {
|
|
3695
3695
|
const { pluginRegistry: l, actionContext: a } = e, o = e.editorState.pageIdx, c = e.book.pages[o], r = e.editorState.selectedBlockIds ?? [], s = (c == null ? void 0 : c.blocks.filter((g) => r.includes(g.id))) ?? [], d = c == null ? void 0 : c.blockDefaults, u = (g, _) => a.execute("updateBlocks", { updates: g, options: _ }), h = new Set((c == null ? void 0 : c.blocks.map((g) => g.id)) ?? []), f = s[0], v = f ? l[f.kind] : void 0, m = te(() => {
|
|
3696
3696
|
var _;
|
|
@@ -3747,7 +3747,7 @@ const Mi = fe(
|
|
|
3747
3747
|
title: "基本設定",
|
|
3748
3748
|
description: "ブロックのID(識別子)や読み取り専用にするかどうかなど、動作に関わる設定をします",
|
|
3749
3749
|
children: /* @__PURE__ */ t(
|
|
3750
|
-
|
|
3750
|
+
qt,
|
|
3751
3751
|
{
|
|
3752
3752
|
selectedBlocks: s,
|
|
3753
3753
|
onUpdateBlocks: u,
|
|
@@ -3759,14 +3759,14 @@ const Mi = fe(
|
|
|
3759
3759
|
] }) });
|
|
3760
3760
|
}
|
|
3761
3761
|
);
|
|
3762
|
-
|
|
3763
|
-
const Pi = "_kindSelector_qrad9_1",
|
|
3762
|
+
Di.displayName = "DefaultBlockPropertyPanel";
|
|
3763
|
+
const Pi = "_kindSelector_qrad9_1", Bi = "_kindTab_qrad9_9", zi = "_kindTabActive_qrad9_30", Wi = "_propertyList_qrad9_46", Ri = "_emptyState_qrad9_131", be = {
|
|
3764
3764
|
kindSelector: Pi,
|
|
3765
|
-
kindTab:
|
|
3766
|
-
kindTabActive:
|
|
3767
|
-
propertyList:
|
|
3768
|
-
emptyState:
|
|
3769
|
-
},
|
|
3765
|
+
kindTab: Bi,
|
|
3766
|
+
kindTabActive: zi,
|
|
3767
|
+
propertyList: Wi,
|
|
3768
|
+
emptyState: Ri
|
|
3769
|
+
}, Gt = fe(
|
|
3770
3770
|
({
|
|
3771
3771
|
propDef: e,
|
|
3772
3772
|
kindDefaults: n,
|
|
@@ -3807,7 +3807,7 @@ const Pi = "_kindSelector_qrad9_1", Di = "_kindTab_qrad9_9", Bi = "_kindTabActiv
|
|
|
3807
3807
|
);
|
|
3808
3808
|
}
|
|
3809
3809
|
);
|
|
3810
|
-
|
|
3810
|
+
Gt.displayName = "DefaultsPropField";
|
|
3811
3811
|
const Ht = fe(
|
|
3812
3812
|
({ blockDefaults: e, pluginRegistry: n, onChange: i }) => {
|
|
3813
3813
|
const l = Object.keys(n), [a, o] = O(
|
|
@@ -3841,7 +3841,7 @@ const Ht = fe(
|
|
|
3841
3841
|
);
|
|
3842
3842
|
}) }),
|
|
3843
3843
|
c && /* @__PURE__ */ t("div", { className: be.propertyList, children: c.properties.length === 0 ? /* @__PURE__ */ t("div", { className: be.emptyState, children: "カスタマイズ可能なプロパティがありません" }) : c.properties.map((s) => /* @__PURE__ */ t(
|
|
3844
|
-
|
|
3844
|
+
Gt,
|
|
3845
3845
|
{
|
|
3846
3846
|
propDef: s,
|
|
3847
3847
|
kindDefaults: e[a] ?? {},
|
|
@@ -3855,19 +3855,19 @@ const Ht = fe(
|
|
|
3855
3855
|
}
|
|
3856
3856
|
);
|
|
3857
3857
|
Ht.displayName = "BlockDefaultsPanel";
|
|
3858
|
-
const
|
|
3859
|
-
list:
|
|
3860
|
-
item:
|
|
3861
|
-
selected:
|
|
3862
|
-
dragHandle:
|
|
3863
|
-
ghost:
|
|
3864
|
-
itemInfo:
|
|
3858
|
+
const Oi = "_list_12dfx_10", Fi = "_item_12dfx_19", ji = "_selected_12dfx_41", Ui = "_dragHandle_12dfx_46", Vi = "_ghost_12dfx_57", qi = "_itemInfo_12dfx_68", Gi = "_itemId_12dfx_75", Hi = "_itemMeta_12dfx_80", Ki = "_itemKind_12dfx_87", Zi = "_itemActions_12dfx_95", Yi = "_actionButton_12dfx_100", Ji = "_empty_12dfx_136", U = {
|
|
3859
|
+
list: Oi,
|
|
3860
|
+
item: Fi,
|
|
3861
|
+
selected: ji,
|
|
3862
|
+
dragHandle: Ui,
|
|
3863
|
+
ghost: Vi,
|
|
3864
|
+
itemInfo: qi,
|
|
3865
3865
|
itemId: Gi,
|
|
3866
|
-
itemMeta:
|
|
3867
|
-
itemKind:
|
|
3868
|
-
itemActions:
|
|
3869
|
-
actionButton:
|
|
3870
|
-
empty:
|
|
3866
|
+
itemMeta: Hi,
|
|
3867
|
+
itemKind: Ki,
|
|
3868
|
+
itemActions: Zi,
|
|
3869
|
+
actionButton: Yi,
|
|
3870
|
+
empty: Ji
|
|
3871
3871
|
}, Kt = ({
|
|
3872
3872
|
blocks: e,
|
|
3873
3873
|
onBlocksChange: n,
|
|
@@ -3886,7 +3886,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3886
3886
|
return h;
|
|
3887
3887
|
const b = h[f];
|
|
3888
3888
|
if (!b) return h;
|
|
3889
|
-
const N = [...h.filter((T,
|
|
3889
|
+
const N = [...h.filter((T, D) => D !== f)], C = Math.max(
|
|
3890
3890
|
0,
|
|
3891
3891
|
Math.min(r, N.length)
|
|
3892
3892
|
);
|
|
@@ -3909,7 +3909,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3909
3909
|
[e, n]
|
|
3910
3910
|
), _ = y(
|
|
3911
3911
|
(b) => {
|
|
3912
|
-
const x = e.findIndex((
|
|
3912
|
+
const x = e.findIndex((D) => D.id === b);
|
|
3913
3913
|
if (x === -1 || x === e.length - 1) return;
|
|
3914
3914
|
const N = [...e], C = N[x], T = N[x + 1];
|
|
3915
3915
|
!C || !T || (N[x] = T, N[x + 1] = C, n(N));
|
|
@@ -3917,7 +3917,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3917
3917
|
[e, n]
|
|
3918
3918
|
), w = y(
|
|
3919
3919
|
(b) => {
|
|
3920
|
-
const x = e.findIndex((
|
|
3920
|
+
const x = e.findIndex((D) => D.id === b);
|
|
3921
3921
|
if (x === -1 || x === 0) return;
|
|
3922
3922
|
const N = [...e], C = N[x], T = N[x - 1];
|
|
3923
3923
|
!C || !T || (N[x] = T, N[x - 1] = C, n(N));
|
|
@@ -3938,7 +3938,7 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3938
3938
|
}, [n, l, a]), k = y(
|
|
3939
3939
|
(b, x, N) => {
|
|
3940
3940
|
if (b.preventDefault(), b.dataTransfer.dropEffect = "move", o === null || N === o) return;
|
|
3941
|
-
const C = r ?? u.current ?? 0, T = x < C ? x : x - 1,
|
|
3941
|
+
const C = r ?? u.current ?? 0, T = x < C ? x : x - 1, D = b.currentTarget.getBoundingClientRect(), A = D.top + D.height / 2, E = b.clientY < A ? T : T + 1;
|
|
3942
3942
|
if (E === r) return;
|
|
3943
3943
|
s(E);
|
|
3944
3944
|
const B = d.current;
|
|
@@ -3970,11 +3970,11 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
3970
3970
|
Math.min(r, N.length)
|
|
3971
3971
|
), T = [...N];
|
|
3972
3972
|
T.splice(C, 0, x);
|
|
3973
|
-
const
|
|
3974
|
-
|
|
3973
|
+
const D = [...T].reverse();
|
|
3974
|
+
D.every((E, B) => {
|
|
3975
3975
|
var J;
|
|
3976
3976
|
return E.id === ((J = e[B]) == null ? void 0 : J.id);
|
|
3977
|
-
}) || n(
|
|
3977
|
+
}) || n(D);
|
|
3978
3978
|
}
|
|
3979
3979
|
}
|
|
3980
3980
|
c(null), s(null);
|
|
@@ -4001,11 +4001,11 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
4001
4001
|
children: v.map((b, x) => {
|
|
4002
4002
|
const N = h.findIndex(
|
|
4003
4003
|
(A) => A.id === b.id
|
|
4004
|
-
), C = b.id === o, T = e.length - 1 - N,
|
|
4004
|
+
), C = b.id === o, T = e.length - 1 - N, D = (i == null ? void 0 : i.includes(b.id)) ?? !1;
|
|
4005
4005
|
return /* @__PURE__ */ p(
|
|
4006
4006
|
"li",
|
|
4007
4007
|
{
|
|
4008
|
-
className: `${U.item} ${C ? U.ghost : ""} ${
|
|
4008
|
+
className: `${U.item} ${C ? U.ghost : ""} ${D ? U.selected : ""}`,
|
|
4009
4009
|
draggable: !C,
|
|
4010
4010
|
onDragStart: C ? void 0 : (A) => L(A, N),
|
|
4011
4011
|
onDragEnd: $,
|
|
@@ -4104,10 +4104,10 @@ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", j
|
|
|
4104
4104
|
);
|
|
4105
4105
|
};
|
|
4106
4106
|
Kt.displayName = "BlockOrderPanel";
|
|
4107
|
-
const
|
|
4108
|
-
container:
|
|
4109
|
-
group:
|
|
4110
|
-
divider:
|
|
4107
|
+
const Xi = "_container_1x0zd_4", Qi = "_group_1x0zd_16", ea = "_divider_1x0zd_22", Te = {
|
|
4108
|
+
container: Xi,
|
|
4109
|
+
group: Qi,
|
|
4110
|
+
divider: ea
|
|
4111
4111
|
}, Zt = ({
|
|
4112
4112
|
context: e,
|
|
4113
4113
|
onActionFeedback: n
|
|
@@ -4188,11 +4188,11 @@ const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22
|
|
|
4188
4188
|
Zt.displayName = "CanvasActionPanel";
|
|
4189
4189
|
const Yt = ({ children: e, className: n }) => /* @__PURE__ */ t(Mt, { className: n, children: e });
|
|
4190
4190
|
Yt.displayName = "CanvasPanel";
|
|
4191
|
-
const
|
|
4192
|
-
field:
|
|
4193
|
-
horizontal:
|
|
4194
|
-
label:
|
|
4195
|
-
gridSizeRow:
|
|
4191
|
+
const ta = "_field_69k7e_6", na = "_horizontal_69k7e_12", la = "_label_69k7e_18", ia = "_gridSizeRow_69k7e_29", de = {
|
|
4192
|
+
field: ta,
|
|
4193
|
+
horizontal: na,
|
|
4194
|
+
label: la,
|
|
4195
|
+
gridSizeRow: ia
|
|
4196
4196
|
}, bt = { value: 1, unit: "fr" }, Jt = ({ grid: e, onGridChange: n }) => {
|
|
4197
4197
|
const i = y(
|
|
4198
4198
|
(a) => {
|
|
@@ -4230,7 +4230,7 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
|
|
|
4230
4230
|
/* @__PURE__ */ p("div", { className: `${de.field} ${de.horizontal}`, children: [
|
|
4231
4231
|
/* @__PURE__ */ t("span", { className: de.label, children: "列数" }),
|
|
4232
4232
|
/* @__PURE__ */ t(
|
|
4233
|
-
|
|
4233
|
+
G,
|
|
4234
4234
|
{
|
|
4235
4235
|
value: e.colCount,
|
|
4236
4236
|
onChange: i,
|
|
@@ -4243,7 +4243,7 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
|
|
|
4243
4243
|
/* @__PURE__ */ p("div", { className: `${de.field} ${de.horizontal}`, children: [
|
|
4244
4244
|
/* @__PURE__ */ t("span", { className: de.label, children: "行数" }),
|
|
4245
4245
|
/* @__PURE__ */ t(
|
|
4246
|
-
|
|
4246
|
+
G,
|
|
4247
4247
|
{
|
|
4248
4248
|
value: e.rowCount,
|
|
4249
4249
|
onChange: l,
|
|
@@ -4258,17 +4258,17 @@ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18"
|
|
|
4258
4258
|
);
|
|
4259
4259
|
};
|
|
4260
4260
|
Jt.displayName = "GridSizePanel";
|
|
4261
|
-
const
|
|
4262
|
-
topRow:
|
|
4263
|
-
linkSwitch:
|
|
4264
|
-
switchLabel:
|
|
4265
|
-
switchLabelActive:
|
|
4266
|
-
toggle:
|
|
4267
|
-
thumb:
|
|
4268
|
-
topCell:
|
|
4269
|
-
sideCell:
|
|
4270
|
-
bottomCell:
|
|
4271
|
-
sideMargins:
|
|
4261
|
+
const aa = "_topRow_2ni80_6", oa = "_linkSwitch_2ni80_15", sa = "_switchLabel_2ni80_23", ra = "_switchLabelActive_2ni80_31", ca = "_toggle_2ni80_35", da = "_thumb_2ni80_52", ha = "_topCell_2ni80_70", ua = "_sideCell_2ni80_75", pa = "_bottomCell_2ni80_81", ma = "_sideMargins_2ni80_88", H = {
|
|
4262
|
+
topRow: aa,
|
|
4263
|
+
linkSwitch: oa,
|
|
4264
|
+
switchLabel: sa,
|
|
4265
|
+
switchLabelActive: ra,
|
|
4266
|
+
toggle: ca,
|
|
4267
|
+
thumb: da,
|
|
4268
|
+
topCell: ha,
|
|
4269
|
+
sideCell: ua,
|
|
4270
|
+
bottomCell: pa,
|
|
4271
|
+
sideMargins: ma
|
|
4272
4272
|
}, Xt = ({ paper: e, onPaperChange: n }) => {
|
|
4273
4273
|
const [i, l] = O(!1), a = y(
|
|
4274
4274
|
(s) => {
|
|
@@ -4408,18 +4408,18 @@ const ia = "_topRow_2ni80_6", aa = "_linkSwitch_2ni80_15", oa = "_switchLabel_2n
|
|
|
4408
4408
|
);
|
|
4409
4409
|
};
|
|
4410
4410
|
Xt.displayName = "MarginPanel";
|
|
4411
|
-
const
|
|
4412
|
-
grid:
|
|
4413
|
-
colSpan2:
|
|
4414
|
-
colSpan3:
|
|
4415
|
-
label:
|
|
4416
|
-
modeLabel:
|
|
4417
|
-
modeToggle:
|
|
4418
|
-
switchLabel:
|
|
4419
|
-
switchLabelActive:
|
|
4420
|
-
toggle:
|
|
4421
|
-
thumb:
|
|
4422
|
-
checkboxCell:
|
|
4411
|
+
const ba = "_grid_ddemj_5", va = "_colSpan2_ddemj_13", fa = "_colSpan3_ddemj_18", ga = "_label_ddemj_23", ya = "_modeLabel_ddemj_32", _a = "_modeToggle_ddemj_40", xa = "_switchLabel_ddemj_47", wa = "_switchLabelActive_ddemj_55", Na = "_toggle_ddemj_59", Ca = "_thumb_ddemj_76", Sa = "_checkboxCell_ddemj_92", M = {
|
|
4412
|
+
grid: ba,
|
|
4413
|
+
colSpan2: va,
|
|
4414
|
+
colSpan3: fa,
|
|
4415
|
+
label: ga,
|
|
4416
|
+
modeLabel: ya,
|
|
4417
|
+
modeToggle: _a,
|
|
4418
|
+
switchLabel: xa,
|
|
4419
|
+
switchLabelActive: wa,
|
|
4420
|
+
toggle: Na,
|
|
4421
|
+
thumb: Ca,
|
|
4422
|
+
checkboxCell: Sa
|
|
4423
4423
|
};
|
|
4424
4424
|
function vt(e, n) {
|
|
4425
4425
|
switch (n) {
|
|
@@ -4600,7 +4600,7 @@ const Qt = ({
|
|
|
4600
4600
|
);
|
|
4601
4601
|
};
|
|
4602
4602
|
Qt.displayName = "PaperSizePanel";
|
|
4603
|
-
const
|
|
4603
|
+
const Ia = ({
|
|
4604
4604
|
context: e,
|
|
4605
4605
|
onBlockHover: n,
|
|
4606
4606
|
onBlockDragChange: i,
|
|
@@ -4670,11 +4670,11 @@ const Sa = ({
|
|
|
4670
4670
|
)
|
|
4671
4671
|
] });
|
|
4672
4672
|
};
|
|
4673
|
-
|
|
4674
|
-
const
|
|
4675
|
-
buttonGroup:
|
|
4676
|
-
button:
|
|
4677
|
-
error:
|
|
4673
|
+
Ia.displayName = "DefaultCanvasPanel";
|
|
4674
|
+
const $a = "_buttonGroup_5h1ft_1", La = "_button_5h1ft_1", ka = "_error_5h1ft_33", R = {
|
|
4675
|
+
buttonGroup: $a,
|
|
4676
|
+
button: La,
|
|
4677
|
+
error: ka
|
|
4678
4678
|
}, ft = (e, n) => {
|
|
4679
4679
|
const i = [];
|
|
4680
4680
|
for (const l of Object.keys(e))
|
|
@@ -4722,9 +4722,9 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
|
|
|
4722
4722
|
if (!x) return;
|
|
4723
4723
|
const N = new FileReader();
|
|
4724
4724
|
N.onload = (T) => {
|
|
4725
|
-
var
|
|
4725
|
+
var D;
|
|
4726
4726
|
try {
|
|
4727
|
-
u((
|
|
4727
|
+
u((D = T.target) == null ? void 0 : D.result), o(""), alert("インポートしました");
|
|
4728
4728
|
} catch (A) {
|
|
4729
4729
|
o(
|
|
4730
4730
|
`インポートエラー: ${A instanceof Error ? A.message : String(A)}`
|
|
@@ -4770,9 +4770,9 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
|
|
|
4770
4770
|
if (!x) return;
|
|
4771
4771
|
const N = new FileReader();
|
|
4772
4772
|
N.onload = (T) => {
|
|
4773
|
-
var
|
|
4773
|
+
var D;
|
|
4774
4774
|
try {
|
|
4775
|
-
const A = ht((
|
|
4775
|
+
const A = ht((D = T.target) == null ? void 0 : D.result), E = ft(n, A);
|
|
4776
4776
|
l(E), o(""), alert("値をインポートしました");
|
|
4777
4777
|
} catch (A) {
|
|
4778
4778
|
o(
|
|
@@ -4814,9 +4814,14 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
|
|
|
4814
4814
|
if (!x) return;
|
|
4815
4815
|
const N = new FileReader();
|
|
4816
4816
|
N.onload = (T) => {
|
|
4817
|
-
var
|
|
4817
|
+
var D;
|
|
4818
4818
|
try {
|
|
4819
|
-
const A = JSON.parse((
|
|
4819
|
+
const A = JSON.parse((D = T.target) == null ? void 0 : D.result), E = mn({
|
|
4820
|
+
grid: A.grid,
|
|
4821
|
+
blocks: A.blocks ?? [],
|
|
4822
|
+
...A.metaData !== void 0 ? { metaData: A.metaData } : {},
|
|
4823
|
+
...A.blockDefaults !== void 0 ? { blockDefaults: A.blockDefaults } : {}
|
|
4824
|
+
}), B = [...e.pages];
|
|
4820
4825
|
B[0] = E, i({ ...e, pages: B }), o(""), alert("スキーマをインポートしました");
|
|
4821
4826
|
} catch (A) {
|
|
4822
4827
|
o(
|
|
@@ -4976,7 +4981,7 @@ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33
|
|
|
4976
4981
|
] });
|
|
4977
4982
|
};
|
|
4978
4983
|
en.displayName = "ImportExportPanel";
|
|
4979
|
-
const
|
|
4984
|
+
const Ta = ({
|
|
4980
4985
|
context: e,
|
|
4981
4986
|
sections: n
|
|
4982
4987
|
}) => {
|
|
@@ -4995,19 +5000,19 @@ const ka = ({
|
|
|
4995
5000
|
];
|
|
4996
5001
|
return /* @__PURE__ */ t(Mt, { children: n ?? i });
|
|
4997
5002
|
};
|
|
4998
|
-
|
|
4999
|
-
const
|
|
5000
|
-
container:
|
|
5001
|
-
paletteItems:
|
|
5002
|
-
item:
|
|
5003
|
-
itemName:
|
|
5003
|
+
Ta.displayName = "OtherPanel";
|
|
5004
|
+
const Ea = "_container_16a0l_1", Aa = "_paletteItems_16a0l_11", Ma = "_item_16a0l_23", Da = "_itemName_16a0l_49", Pa = "_itemPreview_16a0l_77", Ce = {
|
|
5005
|
+
container: Ea,
|
|
5006
|
+
paletteItems: Aa,
|
|
5007
|
+
item: Ma,
|
|
5008
|
+
itemName: Da,
|
|
5004
5009
|
itemPreview: Pa
|
|
5005
|
-
},
|
|
5010
|
+
}, Ba = ({ context: e, className: n }) => {
|
|
5006
5011
|
const i = Object.values(e.pluginRegistry).filter(
|
|
5007
5012
|
(o) => o !== void 0
|
|
5008
|
-
), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } =
|
|
5013
|
+
), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } = bn(
|
|
5009
5014
|
e.book.paper,
|
|
5010
|
-
(l == null ? void 0 : l.grid) ??
|
|
5015
|
+
(l == null ? void 0 : l.grid) ?? vn
|
|
5011
5016
|
);
|
|
5012
5017
|
return /* @__PURE__ */ t("div", { className: `${Ce.container} ${n || ""}`, children: /* @__PURE__ */ t("div", { className: Ce.paletteItems, children: i.map((o) => {
|
|
5013
5018
|
const c = o.meta.defaultSize ?? { w: 1, h: 1 }, r = a({
|
|
@@ -5027,7 +5032,7 @@ const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0
|
|
|
5027
5032
|
);
|
|
5028
5033
|
}) }) });
|
|
5029
5034
|
};
|
|
5030
|
-
|
|
5035
|
+
Ba.displayName = "PalettePanel";
|
|
5031
5036
|
const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
|
|
5032
5037
|
const l = te(() => {
|
|
5033
5038
|
var c, r;
|
|
@@ -5044,7 +5049,7 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
|
|
|
5044
5049
|
};
|
|
5045
5050
|
}, [e]), a = null, o = y(
|
|
5046
5051
|
(c) => {
|
|
5047
|
-
|
|
5052
|
+
fn(c, e.kind, e.meta.defaultSize ?? { w: 1, h: 1 });
|
|
5048
5053
|
const r = Math.round(n), s = Math.round(i), d = document.createElement("div");
|
|
5049
5054
|
d.style.cssText = `position:fixed;top:-9999px;left:-9999px;width:${r}px;height:${s}px;background:rgba(147,197,253,0.45);border-radius:4px;`, document.body.appendChild(d), c.dataTransfer.setDragImage(d, r / 2, s / 2), requestAnimationFrame(() => document.body.removeChild(d));
|
|
5050
5055
|
},
|
|
@@ -5078,7 +5083,7 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
|
|
|
5078
5083
|
onChange: () => {
|
|
5079
5084
|
},
|
|
5080
5085
|
readOnly: !0,
|
|
5081
|
-
mode:
|
|
5086
|
+
mode: gn.FORM
|
|
5082
5087
|
}
|
|
5083
5088
|
)
|
|
5084
5089
|
}
|
|
@@ -5087,36 +5092,36 @@ const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
|
|
|
5087
5092
|
};
|
|
5088
5093
|
tn.displayName = "PaletteItem";
|
|
5089
5094
|
export {
|
|
5090
|
-
|
|
5095
|
+
Tn as A,
|
|
5091
5096
|
it as B,
|
|
5092
|
-
|
|
5093
|
-
|
|
5097
|
+
En as C,
|
|
5098
|
+
Dn as D,
|
|
5094
5099
|
Qt as E,
|
|
5095
5100
|
st as F,
|
|
5096
|
-
|
|
5101
|
+
Dl as G,
|
|
5097
5102
|
Ut as H,
|
|
5098
5103
|
Z as I,
|
|
5099
5104
|
ve as J,
|
|
5100
|
-
|
|
5105
|
+
De as K,
|
|
5101
5106
|
at as L,
|
|
5102
5107
|
Xt as M,
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5108
|
+
G as N,
|
|
5109
|
+
Ta as O,
|
|
5110
|
+
Bl as P,
|
|
5106
5111
|
Mt as Q,
|
|
5107
5112
|
Se as R,
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5113
|
+
ja as S,
|
|
5114
|
+
kl as T,
|
|
5115
|
+
Ni as U,
|
|
5116
|
+
An as a,
|
|
5117
|
+
Mn as b,
|
|
5118
|
+
Ml as c,
|
|
5119
|
+
Ci as d,
|
|
5120
|
+
Di as e,
|
|
5121
|
+
Ba as f,
|
|
5122
|
+
Fa as g,
|
|
5123
|
+
Ia as h,
|
|
5124
|
+
Tl as i,
|
|
5120
5125
|
_e as j,
|
|
5121
5126
|
xe as k,
|
|
5122
5127
|
Ht as l,
|
|
@@ -5126,12 +5131,12 @@ export {
|
|
|
5126
5131
|
Yt as p,
|
|
5127
5132
|
ae as q,
|
|
5128
5133
|
V as r,
|
|
5129
|
-
|
|
5134
|
+
P as s,
|
|
5130
5135
|
le as t,
|
|
5131
|
-
|
|
5136
|
+
Ua as u,
|
|
5132
5137
|
j as v,
|
|
5133
5138
|
ge as w,
|
|
5134
5139
|
Jt as x,
|
|
5135
5140
|
en as y,
|
|
5136
|
-
|
|
5141
|
+
qt as z
|
|
5137
5142
|
};
|