@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.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { HorizontalAlign as q, VerticalAlign as J, toPx as b, DimensionInput as B, ColorPicker as w, sizeDefinition as ce, universalProperties as de } from "@tatamicks/core";
2
- import ue, { forwardRef as fe, useRef as he, useImperativeHandle as pe, useMemo as Y, useCallback as v } from "react";
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 G;
13
+ var X;
14
14
  function xe() {
15
- if (G) return _;
16
- G = 1;
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 X;
45
+ var H;
46
46
  function me() {
47
- return X || (X = 1, process.env.NODE_ENV !== "production" && (function() {
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 === ae ? null : e.displayName || e.name || null;
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 R:
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 ie:
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 ee:
73
+ case te:
74
74
  return e.displayName || "Context";
75
- case K:
75
+ case ee:
76
76
  return (e._context.displayName || "Context") + ".Consumer";
77
77
  case re:
78
- var t = e.render;
79
- return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
80
- case oe:
81
- return t = e.displayName || null, t !== null ? t : n(e.type) || "Memo";
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
- t = e._payload, e = e._init;
83
+ r = e._payload, e = e._init;
84
84
  try {
85
- return n(e(t));
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 t = !1;
97
+ var r = !1;
98
98
  } catch {
99
- t = !0;
99
+ r = !0;
100
100
  }
101
- if (t) {
102
- t = console;
103
- var c = t.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
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
- t,
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 === R) return "<>";
112
+ if (e === y) return "<>";
113
113
  if (typeof e == "object" && e !== null && e.$$typeof === P)
114
114
  return "<...>";
115
115
  try {
116
- var t = n(e);
117
- return t ? "<" + t + ">" : "<...>";
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 ($.call(e, "key")) {
131
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
132
- if (t && t.isReactWarning) return !1;
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, t) {
136
+ function m(e, r) {
137
137
  function c() {
138
- F || (F = !0, console.error(
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
- t
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 U[e] || (U[e] = !0, console.error(
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, t, c, u, S, z) {
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: t,
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, t, c, u, S, z) {
188
- var f = t.children;
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 (le(f)) {
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 ($.call(t, "key")) {
200
+ if (U.call(r, "key")) {
201
201
  f = n(e);
202
- var y = Object.keys(t).filter(function(se) {
203
- return se !== "key";
202
+ var R = Object.keys(r).filter(function(ce) {
203
+ return ce !== "key";
204
204
  });
205
- u = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", V[f + u] || (y = 0 < y.length ? "{" + y.join(": ..., ") + ": ...}" : "{}", console.error(
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
- y,
214
+ R,
215
215
  f
216
- ), V[f + u] = !0);
216
+ ), J[f + u] = !0);
217
217
  }
218
- if (f = null, c !== void 0 && (i(c), f = "" + c), p(t) && (i(t.key), f = "" + t.key), "key" in t) {
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 t)
221
- D !== "key" && (c[D] = t[D]);
222
- } else c = t;
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"), R = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), K = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), re = Symbol.for("react.forward_ref"), te = Symbol.for("react.suspense"), ne = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ae = Symbol.for("react.client.reference"), I = s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, le = Array.isArray, O = console.createTask ? console.createTask : function() {
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 F, U = {}, L = s.react_stack_bottom_frame.bind(
249
+ var L, M = {}, V = s.react_stack_bottom_frame.bind(
250
250
  s,
251
251
  o
252
- )(), M = O(d(o)), V = {};
253
- T.Fragment = R, T.jsx = function(e, t, c) {
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
- t,
257
+ r,
258
258
  c,
259
259
  !1,
260
- u ? Error("react-stack-top-frame") : L,
261
- u ? O(d(e)) : M
260
+ u ? Error("react-stack-top-frame") : V,
261
+ u ? O(d(e)) : q
262
262
  );
263
- }, T.jsxs = function(e, t, c) {
263
+ }, T.jsxs = function(e, r, c) {
264
264
  var u = 1e4 > I.recentlyCreatedOwnerStacks++;
265
265
  return g(
266
266
  e,
267
- t,
267
+ r,
268
268
  c,
269
269
  !0,
270
- u ? Error("react-stack-top-frame") : L,
271
- u ? O(d(e)) : M
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 H;
276
+ var Z;
277
277
  function ge() {
278
- return H || (H = 1, process.env.NODE_ENV === "production" ? A.exports = xe() : A.exports = me()), A.exports;
278
+ return Z || (Z = 1, process.env.NODE_ENV === "production" ? A.exports = xe() : A.exports = me()), A.exports;
279
279
  }
280
- var r = ge();
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__ */ r.jsxs(
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__ */ r.jsx(
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__ */ r.jsx(
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 Z = fe(({ props: n, value: h, onChange: i, readOnly: d }, a) => {
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 = Y(() => {
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 q.left:
349
+ case $.left:
350
350
  l.justifyContent = "flex-start";
351
351
  break;
352
- case q.right:
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 J.top:
360
+ case G.top:
361
361
  l.alignItems = "flex-start";
362
362
  break;
363
- case J.bottom:
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
- }, R = () => {
397
+ }, y = () => {
398
398
  !d && i && i(!p);
399
399
  };
400
- return /* @__PURE__ */ r.jsxs(
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: R,
412
+ onClick: y,
413
413
  onKeyDown: (l) => {
414
- !d && (l.key === " " || l.key === "Enter") && (l.preventDefault(), R());
414
+ !d && (l.key === " " || l.key === "Enter") && (l.preventDefault(), y());
415
415
  },
416
416
  children: [
417
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx("div", { style: W, children: /* @__PURE__ */ r.jsx("div", { style: E, "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(
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
- Z.displayName = "CheckboxRenderer";
448
- const Q = ({
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 = Y(
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 = Y(
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__ */ r.jsxs(
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__ */ r.jsxs(
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__ */ r.jsxs("div", { style: { textAlign: "center" }, children: [
523
- /* @__PURE__ */ r.jsx("div", { style: { fontSize: "12px", color: "#666", marginBottom: "8px" }, children: "未チェック" }),
524
- /* @__PURE__ */ r.jsx(
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__ */ r.jsxs("div", { style: { textAlign: "center" }, children: [
537
- /* @__PURE__ */ r.jsx("div", { style: { fontSize: "12px", color: "#666", marginBottom: "8px" }, children: "チェック" }),
538
- /* @__PURE__ */ r.jsx(
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__ */ r.jsxs("div", { children: [
554
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx(
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__ */ r.jsxs(
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__ */ r.jsxs("div", { children: [
591
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx(
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__ */ r.jsxs("div", { children: [
618
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx(
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__ */ r.jsxs(
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__ */ r.jsxs("div", { children: [
653
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx(
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__ */ r.jsxs("div", { children: [
680
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx(
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__ */ r.jsxs(
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__ */ r.jsxs("div", { children: [
715
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx(
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__ */ r.jsxs("div", { children: [
738
- /* @__PURE__ */ r.jsx(
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__ */ r.jsx(
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
- Q.displayName = "CheckboxStyleEditor";
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: Z,
776
+ Renderer: Q,
777
777
  properties: {
778
- ...de,
778
+ ...Y,
779
779
  // alignment + padding
780
- ...ce,
780
+ // チェックボックスは中央配置をデフォルトに
781
+ justifyContent: Y.justifyContent !== !1 ? {
782
+ ...Y.justifyContent,
783
+ defaultValue: $.center
784
+ } : !1,
785
+ ...de,
781
786
  styleConfig: {
782
- Component: Q,
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
- Z as CheckboxRenderer,
794
- Q as CheckboxStyleEditor
798
+ Q as CheckboxRenderer,
799
+ K as CheckboxStyleEditor
795
800
  };
796
801
  //# sourceMappingURL=index.mjs.map