@tatamicks/checkbox 0.0.2 → 0.1.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/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +128 -123
- package/dist/index.mjs.map +1 -1
- package/dist/src/CheckboxPlugin.d.ts.map +1 -1
- package/package.json +68 -65
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HorizontalAlign as
|
|
2
|
-
import ue, { forwardRef as fe, useRef as he, useImperativeHandle as pe, useMemo as
|
|
1
|
+
import { HorizontalAlign as $, VerticalAlign as G, toPx as b, DimensionInput as B, ColorPicker as w, sizeDefinition as de, universalProperties as Y } from "@tatamicks/core";
|
|
2
|
+
import ue, { forwardRef as fe, useRef as he, useImperativeHandle as pe, useMemo as F, useCallback as v } from "react";
|
|
3
3
|
var A = { exports: {} }, _ = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
@@ -10,10 +10,10 @@ var A = { exports: {} }, _ = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
13
|
+
var X;
|
|
14
14
|
function xe() {
|
|
15
|
-
if (
|
|
16
|
-
|
|
15
|
+
if (X) return _;
|
|
16
|
+
X = 1;
|
|
17
17
|
var n = Symbol.for("react.transitional.element"), h = Symbol.for("react.fragment");
|
|
18
18
|
function i(d, a, o) {
|
|
19
19
|
var p = null;
|
|
@@ -42,26 +42,26 @@ var T = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
45
|
+
var H;
|
|
46
46
|
function me() {
|
|
47
|
-
return
|
|
47
|
+
return H || (H = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
48
|
function n(e) {
|
|
49
49
|
if (e == null) return null;
|
|
50
50
|
if (typeof e == "function")
|
|
51
|
-
return e.$$typeof ===
|
|
51
|
+
return e.$$typeof === le ? null : e.displayName || e.name || null;
|
|
52
52
|
if (typeof e == "string") return e;
|
|
53
53
|
switch (e) {
|
|
54
|
-
case
|
|
54
|
+
case y:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case N:
|
|
57
57
|
return "Profiler";
|
|
58
58
|
case l:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case te:
|
|
61
|
-
return "Suspense";
|
|
62
60
|
case ne:
|
|
61
|
+
return "Suspense";
|
|
62
|
+
case oe:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case ae:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof e == "object")
|
|
@@ -70,19 +70,19 @@ function me() {
|
|
|
70
70
|
), e.$$typeof) {
|
|
71
71
|
case W:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case te:
|
|
74
74
|
return e.displayName || "Context";
|
|
75
|
-
case
|
|
75
|
+
case ee:
|
|
76
76
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
77
77
|
case re:
|
|
78
|
-
var
|
|
79
|
-
return e = e.displayName, e || (e =
|
|
80
|
-
case
|
|
81
|
-
return
|
|
78
|
+
var r = e.render;
|
|
79
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
80
|
+
case ie:
|
|
81
|
+
return r = e.displayName || null, r !== null ? r : n(e.type) || "Memo";
|
|
82
82
|
case P:
|
|
83
|
-
|
|
83
|
+
r = e._payload, e = e._init;
|
|
84
84
|
try {
|
|
85
|
-
return n(e(
|
|
85
|
+
return n(e(r));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -94,27 +94,27 @@ function me() {
|
|
|
94
94
|
function i(e) {
|
|
95
95
|
try {
|
|
96
96
|
h(e);
|
|
97
|
-
var
|
|
97
|
+
var r = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
r = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var c =
|
|
101
|
+
if (r) {
|
|
102
|
+
r = console;
|
|
103
|
+
var c = r.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
104
104
|
return c.call(
|
|
105
|
-
|
|
105
|
+
r,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
107
|
u
|
|
108
108
|
), h(e);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function d(e) {
|
|
112
|
-
if (e ===
|
|
112
|
+
if (e === y) return "<>";
|
|
113
113
|
if (typeof e == "object" && e !== null && e.$$typeof === P)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var r = n(e);
|
|
117
|
+
return r ? "<" + r + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
@@ -127,17 +127,17 @@ function me() {
|
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function p(e) {
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
130
|
+
if (U.call(e, "key")) {
|
|
131
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
132
|
+
if (r && r.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
134
|
return e.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function m(e,
|
|
136
|
+
function m(e, r) {
|
|
137
137
|
function c() {
|
|
138
|
-
|
|
138
|
+
L || (L = !0, console.error(
|
|
139
139
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
|
-
|
|
140
|
+
r
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
143
|
c.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
@@ -147,16 +147,16 @@ function me() {
|
|
|
147
147
|
}
|
|
148
148
|
function k() {
|
|
149
149
|
var e = n(this.type);
|
|
150
|
-
return
|
|
150
|
+
return M[e] || (M[e] = !0, console.error(
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
152
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
153
153
|
}
|
|
154
|
-
function x(e,
|
|
154
|
+
function x(e, r, c, u, S, z) {
|
|
155
155
|
var f = c.ref;
|
|
156
156
|
return e = {
|
|
157
157
|
$$typeof: E,
|
|
158
158
|
type: e,
|
|
159
|
-
key:
|
|
159
|
+
key: r,
|
|
160
160
|
props: c,
|
|
161
161
|
_owner: u
|
|
162
162
|
}, (f !== void 0 ? f : null) !== null ? Object.defineProperty(e, "ref", {
|
|
@@ -184,11 +184,11 @@ function me() {
|
|
|
184
184
|
value: z
|
|
185
185
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
186
186
|
}
|
|
187
|
-
function g(e,
|
|
188
|
-
var f =
|
|
187
|
+
function g(e, r, c, u, S, z) {
|
|
188
|
+
var f = r.children;
|
|
189
189
|
if (f !== void 0)
|
|
190
190
|
if (u)
|
|
191
|
-
if (
|
|
191
|
+
if (se(f)) {
|
|
192
192
|
for (u = 0; u < f.length; u++)
|
|
193
193
|
C(f[u]);
|
|
194
194
|
Object.freeze && Object.freeze(f);
|
|
@@ -197,12 +197,12 @@ function me() {
|
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
199
|
else C(f);
|
|
200
|
-
if (
|
|
200
|
+
if (U.call(r, "key")) {
|
|
201
201
|
f = n(e);
|
|
202
|
-
var
|
|
203
|
-
return
|
|
202
|
+
var R = Object.keys(r).filter(function(ce) {
|
|
203
|
+
return ce !== "key";
|
|
204
204
|
});
|
|
205
|
-
u = 0 <
|
|
205
|
+
u = 0 < R.length ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}", J[f + u] || (R = 0 < R.length ? "{" + R.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
@@ -211,15 +211,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
212
|
u,
|
|
213
213
|
f,
|
|
214
|
-
|
|
214
|
+
R,
|
|
215
215
|
f
|
|
216
|
-
),
|
|
216
|
+
), J[f + u] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (f = null, c !== void 0 && (i(c), f = "" + c), p(
|
|
218
|
+
if (f = null, c !== void 0 && (i(c), f = "" + c), p(r) && (i(r.key), f = "" + r.key), "key" in r) {
|
|
219
219
|
c = {};
|
|
220
|
-
for (var D in
|
|
221
|
-
D !== "key" && (c[D] =
|
|
222
|
-
} else c =
|
|
220
|
+
for (var D in r)
|
|
221
|
+
D !== "key" && (c[D] = r[D]);
|
|
222
|
+
} else c = r;
|
|
223
223
|
return f && m(
|
|
224
224
|
c,
|
|
225
225
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
@@ -238,7 +238,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
238
238
|
function j(e) {
|
|
239
239
|
return typeof e == "object" && e !== null && e.$$typeof === E;
|
|
240
240
|
}
|
|
241
|
-
var s = ue, E = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"),
|
|
241
|
+
var s = ue, E = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), te = Symbol.for("react.context"), re = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), ie = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), le = Symbol.for("react.client.reference"), I = s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, se = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
s = {
|
|
@@ -246,38 +246,38 @@ React keys must be passed directly to JSX without using spread:
|
|
|
246
246
|
return e();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var
|
|
249
|
+
var L, M = {}, V = s.react_stack_bottom_frame.bind(
|
|
250
250
|
s,
|
|
251
251
|
o
|
|
252
|
-
)(),
|
|
253
|
-
T.Fragment =
|
|
252
|
+
)(), q = O(d(o)), J = {};
|
|
253
|
+
T.Fragment = y, T.jsx = function(e, r, c) {
|
|
254
254
|
var u = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return g(
|
|
256
256
|
e,
|
|
257
|
-
|
|
257
|
+
r,
|
|
258
258
|
c,
|
|
259
259
|
!1,
|
|
260
|
-
u ? Error("react-stack-top-frame") :
|
|
261
|
-
u ? O(d(e)) :
|
|
260
|
+
u ? Error("react-stack-top-frame") : V,
|
|
261
|
+
u ? O(d(e)) : q
|
|
262
262
|
);
|
|
263
|
-
}, T.jsxs = function(e,
|
|
263
|
+
}, T.jsxs = function(e, r, c) {
|
|
264
264
|
var u = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return g(
|
|
266
266
|
e,
|
|
267
|
-
|
|
267
|
+
r,
|
|
268
268
|
c,
|
|
269
269
|
!0,
|
|
270
|
-
u ? Error("react-stack-top-frame") :
|
|
271
|
-
u ? O(d(e)) :
|
|
270
|
+
u ? Error("react-stack-top-frame") : V,
|
|
271
|
+
u ? O(d(e)) : q
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
274
|
})()), T;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
276
|
+
var Z;
|
|
277
277
|
function ge() {
|
|
278
|
-
return
|
|
278
|
+
return Z || (Z = 1, process.env.NODE_ENV === "production" ? A.exports = xe() : A.exports = me()), A.exports;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
280
|
+
var t = ge();
|
|
281
281
|
function be({
|
|
282
282
|
size: n = 16,
|
|
283
283
|
checked: h = !1,
|
|
@@ -289,7 +289,7 @@ function be({
|
|
|
289
289
|
checkedBackgroundColor: m
|
|
290
290
|
}) {
|
|
291
291
|
const k = h && m ? m : p;
|
|
292
|
-
return /* @__PURE__ */
|
|
292
|
+
return /* @__PURE__ */ t.jsxs(
|
|
293
293
|
"svg",
|
|
294
294
|
{
|
|
295
295
|
width: n,
|
|
@@ -298,7 +298,7 @@ function be({
|
|
|
298
298
|
"aria-hidden": "true",
|
|
299
299
|
focusable: "false",
|
|
300
300
|
children: [
|
|
301
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ t.jsx(
|
|
302
302
|
"rect",
|
|
303
303
|
{
|
|
304
304
|
x: i / 2,
|
|
@@ -310,7 +310,7 @@ function be({
|
|
|
310
310
|
strokeWidth: i
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
|
-
h ? /* @__PURE__ */
|
|
313
|
+
h ? /* @__PURE__ */ t.jsx(
|
|
314
314
|
"path",
|
|
315
315
|
{
|
|
316
316
|
d: "M3 11l4 4L17 4",
|
|
@@ -323,7 +323,7 @@ function be({
|
|
|
323
323
|
}
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const Q = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
|
|
327
327
|
const o = he(null);
|
|
328
328
|
pe(
|
|
329
329
|
a,
|
|
@@ -337,7 +337,7 @@ const Z = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
|
|
|
337
337
|
);
|
|
338
338
|
const p = h ?? !1, m = (l) => {
|
|
339
339
|
d || i(l.target.checked);
|
|
340
|
-
}, k =
|
|
340
|
+
}, k = F(() => {
|
|
341
341
|
const l = {
|
|
342
342
|
width: "100%",
|
|
343
343
|
height: "100%",
|
|
@@ -346,10 +346,10 @@ const Z = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
|
|
|
346
346
|
overflow: "hidden"
|
|
347
347
|
};
|
|
348
348
|
switch (n.justifyContent) {
|
|
349
|
-
case
|
|
349
|
+
case $.left:
|
|
350
350
|
l.justifyContent = "flex-start";
|
|
351
351
|
break;
|
|
352
|
-
case
|
|
352
|
+
case $.right:
|
|
353
353
|
l.justifyContent = "flex-end";
|
|
354
354
|
break;
|
|
355
355
|
default:
|
|
@@ -357,10 +357,10 @@ const Z = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
|
|
|
357
357
|
break;
|
|
358
358
|
}
|
|
359
359
|
switch (n.alignItems) {
|
|
360
|
-
case
|
|
360
|
+
case G.top:
|
|
361
361
|
l.alignItems = "flex-start";
|
|
362
362
|
break;
|
|
363
|
-
case
|
|
363
|
+
case G.bottom:
|
|
364
364
|
l.alignItems = "flex-end";
|
|
365
365
|
break;
|
|
366
366
|
default:
|
|
@@ -394,10 +394,10 @@ const Z = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
|
|
|
394
394
|
width: g,
|
|
395
395
|
height: g,
|
|
396
396
|
position: "relative"
|
|
397
|
-
},
|
|
397
|
+
}, y = () => {
|
|
398
398
|
!d && i && i(!p);
|
|
399
399
|
};
|
|
400
|
-
return /* @__PURE__ */
|
|
400
|
+
return /* @__PURE__ */ t.jsxs(
|
|
401
401
|
"div",
|
|
402
402
|
{
|
|
403
403
|
style: {
|
|
@@ -409,12 +409,12 @@ const Z = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
|
|
|
409
409
|
"aria-disabled": d,
|
|
410
410
|
"aria-label": "Checkbox",
|
|
411
411
|
tabIndex: d ? -1 : 0,
|
|
412
|
-
onClick:
|
|
412
|
+
onClick: y,
|
|
413
413
|
onKeyDown: (l) => {
|
|
414
|
-
!d && (l.key === " " || l.key === "Enter") && (l.preventDefault(),
|
|
414
|
+
!d && (l.key === " " || l.key === "Enter") && (l.preventDefault(), y());
|
|
415
415
|
},
|
|
416
416
|
children: [
|
|
417
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ t.jsx(
|
|
418
418
|
"input",
|
|
419
419
|
{
|
|
420
420
|
ref: o,
|
|
@@ -427,7 +427,7 @@ const Z = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
|
|
|
427
427
|
"aria-hidden": "true"
|
|
428
428
|
}
|
|
429
429
|
),
|
|
430
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ t.jsx("div", { style: W, children: /* @__PURE__ */ t.jsx("div", { style: E, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx(
|
|
431
431
|
be,
|
|
432
432
|
{
|
|
433
433
|
size: g,
|
|
@@ -444,13 +444,13 @@ const Z = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
|
|
|
444
444
|
}
|
|
445
445
|
);
|
|
446
446
|
});
|
|
447
|
-
|
|
448
|
-
const
|
|
447
|
+
Q.displayName = "CheckboxRenderer";
|
|
448
|
+
const K = ({
|
|
449
449
|
value: n,
|
|
450
450
|
onChange: h,
|
|
451
451
|
readOnly: i = !1
|
|
452
452
|
}) => {
|
|
453
|
-
const d =
|
|
453
|
+
const d = F(
|
|
454
454
|
() => ({
|
|
455
455
|
checkboxSize: { value: 16, unit: "px" },
|
|
456
456
|
borderWidth: { value: 1, unit: "px" },
|
|
@@ -460,7 +460,7 @@ const Q = ({
|
|
|
460
460
|
backgroundColor: "#ffffff"
|
|
461
461
|
}),
|
|
462
462
|
[]
|
|
463
|
-
), a =
|
|
463
|
+
), a = F(
|
|
464
464
|
() => ({
|
|
465
465
|
...d,
|
|
466
466
|
...n
|
|
@@ -496,7 +496,7 @@ const Q = ({
|
|
|
496
496
|
(s) => o("checkedBackgroundColor", s),
|
|
497
497
|
[o]
|
|
498
498
|
);
|
|
499
|
-
return /* @__PURE__ */
|
|
499
|
+
return /* @__PURE__ */ t.jsxs(
|
|
500
500
|
"div",
|
|
501
501
|
{
|
|
502
502
|
style: {
|
|
@@ -506,7 +506,7 @@ const Q = ({
|
|
|
506
506
|
padding: "12px"
|
|
507
507
|
},
|
|
508
508
|
children: [
|
|
509
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ t.jsxs(
|
|
510
510
|
"div",
|
|
511
511
|
{
|
|
512
512
|
style: {
|
|
@@ -519,9 +519,9 @@ const Q = ({
|
|
|
519
519
|
gap: "16px"
|
|
520
520
|
},
|
|
521
521
|
children: [
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ t.jsxs("div", { style: { textAlign: "center" }, children: [
|
|
523
|
+
/* @__PURE__ */ t.jsx("div", { style: { fontSize: "12px", color: "#666", marginBottom: "8px" }, children: "未チェック" }),
|
|
524
|
+
/* @__PURE__ */ t.jsx(
|
|
525
525
|
"div",
|
|
526
526
|
{
|
|
527
527
|
style: {
|
|
@@ -533,9 +533,9 @@ const Q = ({
|
|
|
533
533
|
}
|
|
534
534
|
)
|
|
535
535
|
] }),
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ t.jsxs("div", { style: { textAlign: "center" }, children: [
|
|
537
|
+
/* @__PURE__ */ t.jsx("div", { style: { fontSize: "12px", color: "#666", marginBottom: "8px" }, children: "チェック" }),
|
|
538
|
+
/* @__PURE__ */ t.jsx(
|
|
539
539
|
"div",
|
|
540
540
|
{
|
|
541
541
|
style: {
|
|
@@ -550,8 +550,8 @@ const Q = ({
|
|
|
550
550
|
]
|
|
551
551
|
}
|
|
552
552
|
),
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
554
|
+
/* @__PURE__ */ t.jsx(
|
|
555
555
|
"div",
|
|
556
556
|
{
|
|
557
557
|
style: {
|
|
@@ -562,7 +562,7 @@ const Q = ({
|
|
|
562
562
|
children: "チェックボックスのサイズ"
|
|
563
563
|
}
|
|
564
564
|
),
|
|
565
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ t.jsx(
|
|
566
566
|
B,
|
|
567
567
|
{
|
|
568
568
|
value: a.checkboxSize,
|
|
@@ -578,7 +578,7 @@ const Q = ({
|
|
|
578
578
|
}
|
|
579
579
|
)
|
|
580
580
|
] }),
|
|
581
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ t.jsxs(
|
|
582
582
|
"div",
|
|
583
583
|
{
|
|
584
584
|
style: {
|
|
@@ -587,8 +587,8 @@ const Q = ({
|
|
|
587
587
|
gap: "8px"
|
|
588
588
|
},
|
|
589
589
|
children: [
|
|
590
|
-
/* @__PURE__ */
|
|
591
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
591
|
+
/* @__PURE__ */ t.jsx(
|
|
592
592
|
"div",
|
|
593
593
|
{
|
|
594
594
|
style: {
|
|
@@ -599,7 +599,7 @@ const Q = ({
|
|
|
599
599
|
children: "枠線の太さ"
|
|
600
600
|
}
|
|
601
601
|
),
|
|
602
|
-
/* @__PURE__ */
|
|
602
|
+
/* @__PURE__ */ t.jsx(
|
|
603
603
|
B,
|
|
604
604
|
{
|
|
605
605
|
value: a.borderWidth,
|
|
@@ -614,8 +614,8 @@ const Q = ({
|
|
|
614
614
|
}
|
|
615
615
|
)
|
|
616
616
|
] }),
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
/* @__PURE__ */
|
|
617
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
618
|
+
/* @__PURE__ */ t.jsx(
|
|
619
619
|
"div",
|
|
620
620
|
{
|
|
621
621
|
style: {
|
|
@@ -626,7 +626,7 @@ const Q = ({
|
|
|
626
626
|
children: "枠線の色"
|
|
627
627
|
}
|
|
628
628
|
),
|
|
629
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ t.jsx(
|
|
630
630
|
w,
|
|
631
631
|
{
|
|
632
632
|
value: a.borderColor,
|
|
@@ -640,7 +640,7 @@ const Q = ({
|
|
|
640
640
|
]
|
|
641
641
|
}
|
|
642
642
|
),
|
|
643
|
-
/* @__PURE__ */
|
|
643
|
+
/* @__PURE__ */ t.jsxs(
|
|
644
644
|
"div",
|
|
645
645
|
{
|
|
646
646
|
style: {
|
|
@@ -649,8 +649,8 @@ const Q = ({
|
|
|
649
649
|
gap: "8px"
|
|
650
650
|
},
|
|
651
651
|
children: [
|
|
652
|
-
/* @__PURE__ */
|
|
653
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
653
|
+
/* @__PURE__ */ t.jsx(
|
|
654
654
|
"div",
|
|
655
655
|
{
|
|
656
656
|
style: {
|
|
@@ -661,7 +661,7 @@ const Q = ({
|
|
|
661
661
|
children: "チェックマークの太さ"
|
|
662
662
|
}
|
|
663
663
|
),
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ t.jsx(
|
|
665
665
|
B,
|
|
666
666
|
{
|
|
667
667
|
value: a.checkWidth,
|
|
@@ -676,8 +676,8 @@ const Q = ({
|
|
|
676
676
|
}
|
|
677
677
|
)
|
|
678
678
|
] }),
|
|
679
|
-
/* @__PURE__ */
|
|
680
|
-
/* @__PURE__ */
|
|
679
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
680
|
+
/* @__PURE__ */ t.jsx(
|
|
681
681
|
"div",
|
|
682
682
|
{
|
|
683
683
|
style: {
|
|
@@ -688,7 +688,7 @@ const Q = ({
|
|
|
688
688
|
children: "チェックマークの色"
|
|
689
689
|
}
|
|
690
690
|
),
|
|
691
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ t.jsx(
|
|
692
692
|
w,
|
|
693
693
|
{
|
|
694
694
|
value: a.checkColor,
|
|
@@ -702,7 +702,7 @@ const Q = ({
|
|
|
702
702
|
]
|
|
703
703
|
}
|
|
704
704
|
),
|
|
705
|
-
/* @__PURE__ */
|
|
705
|
+
/* @__PURE__ */ t.jsxs(
|
|
706
706
|
"div",
|
|
707
707
|
{
|
|
708
708
|
style: {
|
|
@@ -711,8 +711,8 @@ const Q = ({
|
|
|
711
711
|
gap: "8px"
|
|
712
712
|
},
|
|
713
713
|
children: [
|
|
714
|
-
/* @__PURE__ */
|
|
715
|
-
/* @__PURE__ */
|
|
714
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
715
|
+
/* @__PURE__ */ t.jsx(
|
|
716
716
|
"div",
|
|
717
717
|
{
|
|
718
718
|
style: {
|
|
@@ -723,7 +723,7 @@ const Q = ({
|
|
|
723
723
|
children: "背景色(未チェック)"
|
|
724
724
|
}
|
|
725
725
|
),
|
|
726
|
-
/* @__PURE__ */
|
|
726
|
+
/* @__PURE__ */ t.jsx(
|
|
727
727
|
w,
|
|
728
728
|
{
|
|
729
729
|
value: a.backgroundColor,
|
|
@@ -734,8 +734,8 @@ const Q = ({
|
|
|
734
734
|
}
|
|
735
735
|
)
|
|
736
736
|
] }),
|
|
737
|
-
/* @__PURE__ */
|
|
738
|
-
/* @__PURE__ */
|
|
737
|
+
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
738
|
+
/* @__PURE__ */ t.jsx(
|
|
739
739
|
"div",
|
|
740
740
|
{
|
|
741
741
|
style: {
|
|
@@ -746,7 +746,7 @@ const Q = ({
|
|
|
746
746
|
children: "背景色(チェック時)"
|
|
747
747
|
}
|
|
748
748
|
),
|
|
749
|
-
/* @__PURE__ */
|
|
749
|
+
/* @__PURE__ */ t.jsx(
|
|
750
750
|
w,
|
|
751
751
|
{
|
|
752
752
|
value: a.checkedBackgroundColor,
|
|
@@ -765,7 +765,7 @@ const Q = ({
|
|
|
765
765
|
}
|
|
766
766
|
);
|
|
767
767
|
};
|
|
768
|
-
|
|
768
|
+
K.displayName = "CheckboxStyleEditor";
|
|
769
769
|
const Ce = {
|
|
770
770
|
kind: "checkbox",
|
|
771
771
|
meta: {
|
|
@@ -773,13 +773,18 @@ const Ce = {
|
|
|
773
773
|
description: "チェック/非チェックを選択する入力ブロック",
|
|
774
774
|
defaultSize: { w: 2, h: 2 }
|
|
775
775
|
},
|
|
776
|
-
Renderer:
|
|
776
|
+
Renderer: Q,
|
|
777
777
|
properties: {
|
|
778
|
-
...
|
|
778
|
+
...Y,
|
|
779
779
|
// alignment + padding
|
|
780
|
-
|
|
780
|
+
// チェックボックスは中央配置をデフォルトに
|
|
781
|
+
justifyContent: Y.justifyContent !== !1 ? {
|
|
782
|
+
...Y.justifyContent,
|
|
783
|
+
defaultValue: $.center
|
|
784
|
+
} : !1,
|
|
785
|
+
...de,
|
|
781
786
|
styleConfig: {
|
|
782
|
-
Component:
|
|
787
|
+
Component: K,
|
|
783
788
|
label: "チェックボックススタイル",
|
|
784
789
|
group: "スタイル",
|
|
785
790
|
defaultValue: void 0
|
|
@@ -790,7 +795,7 @@ const Ce = {
|
|
|
790
795
|
};
|
|
791
796
|
export {
|
|
792
797
|
Ce as CheckboxPlugin,
|
|
793
|
-
|
|
794
|
-
|
|
798
|
+
Q as CheckboxRenderer,
|
|
799
|
+
K as CheckboxStyleEditor
|
|
795
800
|
};
|
|
796
801
|
//# sourceMappingURL=index.mjs.map
|