@mireljs/ui-core 3.2.11 → 3.2.13

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.
@@ -1,12 +1,12 @@
1
1
  import { jsx as a, jsxs as d, Fragment as W } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import U, { useState as B, createContext as he, useEffect as ye, useContext as xe } from "react";
3
+ import U, { useState as O, createContext as he, useEffect as ye, useContext as xe } from "react";
4
4
  import { Slot as ve } from "@radix-ui/react-slot";
5
5
  import { cva as R } from "class-variance-authority";
6
6
  import { clsx as we } from "clsx";
7
7
  import { twMerge as Ne } from "tailwind-merge";
8
- import * as g from "@radix-ui/react-select";
9
- import * as f from "@radix-ui/react-dialog";
8
+ import * as f from "@radix-ui/react-select";
9
+ import * as m from "@radix-ui/react-dialog";
10
10
  import * as u from "@radix-ui/react-dropdown-menu";
11
11
  import { ChevronRight as ke, Check as Te, Circle as Re, X as Se } from "lucide-react";
12
12
  import * as h from "@radix-ui/react-toast";
@@ -14,16 +14,16 @@ import * as k from "@radix-ui/react-tabs";
14
14
  import * as N from "@radix-ui/react-accordion";
15
15
  import * as D from "@radix-ui/react-popover";
16
16
  import * as X from "@radix-ui/react-label";
17
- import * as F from "@radix-ui/react-switch";
17
+ import * as V from "@radix-ui/react-switch";
18
18
  import * as T from "@radix-ui/react-tooltip";
19
19
  import * as w from "@radix-ui/react-scroll-area";
20
20
  import * as $ from "@radix-ui/react-separator";
21
21
  import * as S from "@radix-ui/react-slider";
22
- import { useReactTable as Ce, getSortedRowModel as De, getPaginationRowModel as Ie, getCoreRowModel as Le, flexRender as q } from "@tanstack/react-table";
22
+ import { useReactTable as Ce, getSortedRowModel as De, getPaginationRowModel as Ie, getCoreRowModel as Pe, flexRender as q } from "@tanstack/react-table";
23
23
  function o(...e) {
24
24
  return Ne(we(e));
25
25
  }
26
- const Pe = R(
26
+ const Le = R(
27
27
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium shadow-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
28
28
  {
29
29
  variants: {
@@ -52,17 +52,17 @@ const Pe = R(
52
52
  size: "default"
53
53
  }
54
54
  }
55
- ), O = n.forwardRef(
55
+ ), B = n.forwardRef(
56
56
  ({ className: e, variant: t, size: r, asChild: s = !1, ...i }, l) => /* @__PURE__ */ a(
57
57
  s ? ve : "button",
58
58
  {
59
- className: o(Pe({ variant: t, size: r, className: e })),
59
+ className: o(Le({ variant: t, size: r, className: e })),
60
60
  ref: l,
61
61
  ...i
62
62
  }
63
63
  )
64
64
  );
65
- O.displayName = "Button";
65
+ B.displayName = "Button";
66
66
  const Q = n.forwardRef(
67
67
  ({ className: e, type: t, ...r }, s) => /* @__PURE__ */ a(
68
68
  "input",
@@ -116,7 +116,7 @@ const Ee = n.forwardRef(
116
116
  )
117
117
  );
118
118
  Ee.displayName = "CardFooter";
119
- const Be = R(
119
+ const Oe = R(
120
120
  "inline-flex items-center gap-1 rounded-full font-medium tracking-wide uppercase",
121
121
  {
122
122
  variants: {
@@ -141,15 +141,15 @@ const Be = R(
141
141
  size: "default"
142
142
  }
143
143
  }
144
- ), L = n.forwardRef(
145
- ({ className: e, variant: t, ...r }, s) => /* @__PURE__ */ a("span", { ref: s, className: o("select-none", Be({ variant: t, className: e })), ...r })
144
+ ), P = n.forwardRef(
145
+ ({ className: e, variant: t, ...r }, s) => /* @__PURE__ */ a("span", { ref: s, className: o("select-none", Oe({ variant: t, className: e })), ...r })
146
146
  );
147
- L.displayName = "Badge";
148
- const Fe = n.forwardRef(
147
+ P.displayName = "Badge";
148
+ const Ve = n.forwardRef(
149
149
  ({ className: e, ...t }, r) => /* @__PURE__ */ a("div", { ref: r, className: o("space-y-2", e), ...t })
150
150
  );
151
- Fe.displayName = "FormField";
152
- const Oe = n.forwardRef(({ className: e, requiredMark: t, children: r, ...s }, i) => /* @__PURE__ */ d(
151
+ Ve.displayName = "FormField";
152
+ const Be = n.forwardRef(({ className: e, requiredMark: t, children: r, ...s }, i) => /* @__PURE__ */ d(
153
153
  "label",
154
154
  {
155
155
  ref: i,
@@ -164,11 +164,11 @@ const Oe = n.forwardRef(({ className: e, requiredMark: t, children: r, ...s }, i
164
164
  ]
165
165
  }
166
166
  ));
167
- Oe.displayName = "FormLabel";
168
- const He = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a("p", { ref: r, className: o("text-xs text-muted-foreground", e), ...t }));
169
- He.displayName = "FormHelper";
170
- const Ve = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a("p", { ref: r, className: o("flex items-center gap-1 text-xs text-destructive", e), ...t }));
171
- Ve.displayName = "FormError";
167
+ Be.displayName = "FormLabel";
168
+ const Fe = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a("p", { ref: r, className: o("text-xs text-muted-foreground", e), ...t }));
169
+ Fe.displayName = "FormHelper";
170
+ const He = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a("p", { ref: r, className: o("flex items-center gap-1 text-xs text-destructive", e), ...t }));
171
+ He.displayName = "FormError";
172
172
  const Ue = ({
173
173
  children: e = "*",
174
174
  className: t
@@ -183,8 +183,8 @@ function M(e, t) {
183
183
  ...t
184
184
  };
185
185
  }
186
- const Ge = g.Root, fr = g.Group, We = g.Value, Z = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__ */ d(
187
- g.Trigger,
186
+ const Ge = f.Root, ur = f.Group, We = f.Value, Z = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__ */ d(
187
+ f.Trigger,
188
188
  {
189
189
  ref: s,
190
190
  className: o(
@@ -194,7 +194,7 @@ const Ge = g.Root, fr = g.Group, We = g.Value, Z = n.forwardRef(({ className: e,
194
194
  ...r,
195
195
  children: [
196
196
  t,
197
- /* @__PURE__ */ a(g.Icon, { asChild: !0, children: /* @__PURE__ */ a(
197
+ /* @__PURE__ */ a(f.Icon, { asChild: !0, children: /* @__PURE__ */ a(
198
198
  "svg",
199
199
  {
200
200
  xmlns: "http://www.w3.org/2000/svg",
@@ -213,9 +213,9 @@ const Ge = g.Root, fr = g.Group, We = g.Value, Z = n.forwardRef(({ className: e,
213
213
  ]
214
214
  }
215
215
  ));
216
- Z.displayName = g.Trigger.displayName;
216
+ Z.displayName = f.Trigger.displayName;
217
217
  const J = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
218
- g.ScrollUpButton,
218
+ f.ScrollUpButton,
219
219
  {
220
220
  ref: r,
221
221
  className: o("flex cursor-default items-center justify-center py-1", e),
@@ -238,9 +238,9 @@ const J = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
238
238
  )
239
239
  }
240
240
  ));
241
- J.displayName = g.ScrollUpButton.displayName;
241
+ J.displayName = f.ScrollUpButton.displayName;
242
242
  const K = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
243
- g.ScrollDownButton,
243
+ f.ScrollDownButton,
244
244
  {
245
245
  ref: r,
246
246
  className: o("flex cursor-default items-center justify-center py-1", e),
@@ -263,9 +263,9 @@ const K = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
263
263
  )
264
264
  }
265
265
  ));
266
- K.displayName = g.ScrollDownButton.displayName;
267
- const ee = n.forwardRef(({ className: e, children: t, position: r = "popper", style: s, ...i }, l) => /* @__PURE__ */ a(g.Portal, { children: /* @__PURE__ */ d(
268
- g.Content,
266
+ K.displayName = f.ScrollDownButton.displayName;
267
+ const ee = n.forwardRef(({ className: e, children: t, position: r = "popper", style: s, ...i }, l) => /* @__PURE__ */ a(f.Portal, { children: /* @__PURE__ */ d(
268
+ f.Content,
269
269
  {
270
270
  ref: l,
271
271
  className: o(
@@ -279,7 +279,7 @@ const ee = n.forwardRef(({ className: e, children: t, position: r = "popper", st
279
279
  children: [
280
280
  /* @__PURE__ */ a(J, {}),
281
281
  /* @__PURE__ */ a(
282
- g.Viewport,
282
+ f.Viewport,
283
283
  {
284
284
  className: o(
285
285
  "p-1 bg-popover/100",
@@ -292,18 +292,18 @@ const ee = n.forwardRef(({ className: e, children: t, position: r = "popper", st
292
292
  ]
293
293
  }
294
294
  ) }));
295
- ee.displayName = g.Content.displayName;
295
+ ee.displayName = f.Content.displayName;
296
296
  const qe = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
297
- g.Label,
297
+ f.Label,
298
298
  {
299
299
  ref: r,
300
300
  className: o("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
301
301
  ...t
302
302
  }
303
303
  ));
304
- qe.displayName = g.Label.displayName;
305
- const H = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__ */ d(
306
- g.Item,
304
+ qe.displayName = f.Label.displayName;
305
+ const F = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__ */ d(
306
+ f.Item,
307
307
  {
308
308
  ref: s,
309
309
  className: o(
@@ -312,7 +312,7 @@ const H = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__
312
312
  ),
313
313
  ...r,
314
314
  children: [
315
- /* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(g.ItemIndicator, { children: /* @__PURE__ */ a(
315
+ /* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(f.ItemIndicator, { children: /* @__PURE__ */ a(
316
316
  "svg",
317
317
  {
318
318
  xmlns: "http://www.w3.org/2000/svg",
@@ -328,22 +328,22 @@ const H = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__
328
328
  children: /* @__PURE__ */ a("polyline", { points: "20 6 9 17 4 12" })
329
329
  }
330
330
  ) }) }),
331
- /* @__PURE__ */ a(g.ItemText, { children: t })
331
+ /* @__PURE__ */ a(f.ItemText, { children: t })
332
332
  ]
333
333
  }
334
334
  ));
335
- H.displayName = g.Item.displayName;
335
+ F.displayName = f.Item.displayName;
336
336
  const Ye = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
337
- g.Separator,
337
+ f.Separator,
338
338
  {
339
339
  ref: r,
340
340
  className: o("-mx-1 my-1 h-px bg-muted", e),
341
341
  ...t
342
342
  }
343
343
  ));
344
- Ye.displayName = g.Separator.displayName;
345
- const ur = f.Root, gr = f.Trigger, Xe = f.Portal, pr = f.Close, te = n.forwardRef(({ className: e, style: t, ...r }, s) => /* @__PURE__ */ a(
346
- f.Overlay,
344
+ Ye.displayName = f.Separator.displayName;
345
+ const fr = m.Root, gr = m.Trigger, Xe = m.Portal, pr = m.Close, te = n.forwardRef(({ className: e, style: t, ...r }, s) => /* @__PURE__ */ a(
346
+ m.Overlay,
347
347
  {
348
348
  ref: s,
349
349
  className: o(
@@ -359,13 +359,13 @@ const ur = f.Root, gr = f.Trigger, Xe = f.Portal, pr = f.Close, te = n.forwardRe
359
359
  ...r
360
360
  }
361
361
  ));
362
- te.displayName = f.Overlay.displayName;
363
- const $e = n.forwardRef(({ className: e, children: t, overlayClassName: r, style: s, onPointerDownOutside: i, onInteractOutside: l, ...b }, m) => /* @__PURE__ */ d(Xe, { children: [
362
+ te.displayName = m.Overlay.displayName;
363
+ const $e = n.forwardRef(({ className: e, children: t, overlayClassName: r, style: s, onPointerDownOutside: i, onInteractOutside: l, ...g }, c) => /* @__PURE__ */ d(Xe, { children: [
364
364
  /* @__PURE__ */ a(te, { className: r }),
365
365
  /* @__PURE__ */ d(
366
- f.Content,
366
+ m.Content,
367
367
  {
368
- ref: m,
368
+ ref: c,
369
369
  className: o(
370
370
  "fixed grid w-full max-w-lg gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",
371
371
  e
@@ -378,19 +378,19 @@ const $e = n.forwardRef(({ className: e, children: t, overlayClassName: r, style
378
378
  isolation: "isolate",
379
379
  ...s
380
380
  }),
381
- onPointerDownOutside: (c) => {
382
- const p = c.target;
383
- (p.closest("[data-radix-select-content]") || p.closest('[role="listbox"]') || p.closest("[data-radix-popper-content-wrapper]")) && c.preventDefault(), i == null || i(c);
381
+ onPointerDownOutside: (p) => {
382
+ const b = p.target;
383
+ (b.closest("[data-radix-select-content]") || b.closest('[role="listbox"]') || b.closest("[data-radix-popper-content-wrapper]")) && p.preventDefault(), i?.(p);
384
384
  },
385
- onInteractOutside: (c) => {
386
- const p = c.target;
387
- (p.closest("[data-radix-select-content]") || p.closest('[role="listbox"]') || p.closest("[data-radix-popper-content-wrapper]")) && c.preventDefault(), l == null || l(c);
385
+ onInteractOutside: (p) => {
386
+ const b = p.target;
387
+ (b.closest("[data-radix-select-content]") || b.closest('[role="listbox"]') || b.closest("[data-radix-popper-content-wrapper]")) && p.preventDefault(), l?.(p);
388
388
  },
389
- ...b,
389
+ ...g,
390
390
  children: [
391
391
  t,
392
392
  /* @__PURE__ */ a(
393
- f.Close,
393
+ m.Close,
394
394
  {
395
395
  className: "absolute right-4 top-4 inline-flex h-9 w-9 items-center justify-center rounded-full border border-border/50 bg-background text-foreground/80 shadow-sm transition-all hover:border-destructive hover:bg-destructive hover:text-white focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",
396
396
  "aria-label": "閉じる",
@@ -401,29 +401,29 @@ const $e = n.forwardRef(({ className: e, children: t, overlayClassName: r, style
401
401
  }
402
402
  )
403
403
  ] }));
404
- $e.displayName = f.Content.displayName;
404
+ $e.displayName = m.Content.displayName;
405
405
  const Qe = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: o("flex flex-col space-y-1.5 text-center sm:text-left", e), ...t });
406
406
  Qe.displayName = "DialogHeader";
407
407
  const Ze = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
408
408
  Ze.displayName = "DialogFooter";
409
409
  const Je = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
410
- f.Title,
410
+ m.Title,
411
411
  {
412
412
  ref: r,
413
413
  className: o("text-lg font-semibold leading-none tracking-tight", e),
414
414
  ...t
415
415
  }
416
416
  ));
417
- Je.displayName = f.Title.displayName;
417
+ Je.displayName = m.Title.displayName;
418
418
  const Ke = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
419
- f.Description,
419
+ m.Description,
420
420
  {
421
421
  ref: r,
422
422
  className: o("text-sm text-muted-foreground", e),
423
423
  ...t
424
424
  }
425
425
  ));
426
- Ke.displayName = f.Description.displayName;
426
+ Ke.displayName = m.Description.displayName;
427
427
  const br = u.Root, hr = u.Trigger, yr = u.Group, xr = u.Portal, vr = u.Sub, wr = u.RadioGroup, et = n.forwardRef(({ className: e, inset: t, children: r, ...s }, i) => /* @__PURE__ */ d(
428
428
  u.SubTrigger,
429
429
  {
@@ -548,10 +548,10 @@ const dt = ({
548
548
  );
549
549
  dt.displayName = "DropdownMenuShortcut";
550
550
  const lt = n.forwardRef(
551
- ({ eyebrow: e, title: t, description: r, actions: s, className: i, ...l }, b) => /* @__PURE__ */ d(
551
+ ({ eyebrow: e, title: t, description: r, actions: s, className: i, ...l }, g) => /* @__PURE__ */ d(
552
552
  "div",
553
553
  {
554
- ref: b,
554
+ ref: g,
555
555
  className: o("flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between", i),
556
556
  ...l,
557
557
  children: [
@@ -573,10 +573,10 @@ const ct = {
573
573
  current: "border-primary/40 bg-primary/10 text-primary",
574
574
  upcoming: "border-outline/60 bg-surface-subtle text-muted-foreground"
575
575
  }, mt = {
576
- complete: /* @__PURE__ */ a(L, { variant: "success", children: "完了" }),
577
- current: /* @__PURE__ */ a(L, { variant: "info", children: "進行中" }),
578
- upcoming: /* @__PURE__ */ a(L, { variant: "neutral", children: "準備中" })
579
- }, ft = n.forwardRef(
576
+ complete: /* @__PURE__ */ a(P, { variant: "success", children: "完了" }),
577
+ current: /* @__PURE__ */ a(P, { variant: "info", children: "進行中" }),
578
+ upcoming: /* @__PURE__ */ a(P, { variant: "neutral", children: "準備中" })
579
+ }, ut = n.forwardRef(
580
580
  ({ steps: e, className: t, ...r }, s) => /* @__PURE__ */ a(
581
581
  "ol",
582
582
  {
@@ -610,8 +610,8 @@ const ct = {
610
610
  }
611
611
  )
612
612
  );
613
- ft.displayName = "StepIndicator";
614
- const ut = n.forwardRef(
613
+ ut.displayName = "StepIndicator";
614
+ const ft = n.forwardRef(
615
615
  ({ className: e, ...t }, r) => /* @__PURE__ */ a(
616
616
  "div",
617
617
  {
@@ -621,7 +621,7 @@ const ut = n.forwardRef(
621
621
  }
622
622
  )
623
623
  );
624
- ut.displayName = "Skeleton";
624
+ ft.displayName = "Skeleton";
625
625
  const gt = h.Provider, re = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
626
626
  h.Viewport,
627
627
  {
@@ -751,10 +751,10 @@ const j = /* @__PURE__ */ new Map(), Y = (e) => {
751
751
  toasts: e.toasts.filter((r) => r.id !== t.toastId)
752
752
  };
753
753
  }
754
- }, P = [];
754
+ }, L = [];
755
755
  let _ = { toasts: [] };
756
756
  function C(e) {
757
- _ = vt(_, e), P.forEach((t) => {
757
+ _ = vt(_, e), L.forEach((t) => {
758
758
  t(_);
759
759
  });
760
760
  }
@@ -781,9 +781,9 @@ function wt({ ...e }) {
781
781
  }
782
782
  function Nt() {
783
783
  const [e, t] = n.useState(_);
784
- return n.useEffect(() => (P.push(t), () => {
785
- const r = P.indexOf(t);
786
- r > -1 && P.splice(r, 1);
784
+ return n.useEffect(() => (L.push(t), () => {
785
+ const r = L.indexOf(t);
786
+ r > -1 && L.splice(r, 1);
787
787
  }), [e]), {
788
788
  ...e,
789
789
  toast: wt,
@@ -889,7 +889,7 @@ const It = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
889
889
  }
890
890
  ));
891
891
  It.displayName = k.Content.displayName;
892
- const Lt = () => /* @__PURE__ */ a(
892
+ const Pt = () => /* @__PURE__ */ a(
893
893
  "svg",
894
894
  {
895
895
  xmlns: "http://www.w3.org/2000/svg",
@@ -904,8 +904,8 @@ const Lt = () => /* @__PURE__ */ a(
904
904
  className: "h-4 w-4 shrink-0 transition-transform duration-200",
905
905
  children: /* @__PURE__ */ a("polyline", { points: "6 9 12 15 18 9" })
906
906
  }
907
- ), Tr = N.Root, Pt = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(N.Item, { ref: r, className: o("border-b", e), ...t }));
908
- Pt.displayName = "AccordionItem";
907
+ ), Tr = N.Root, Lt = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(N.Item, { ref: r, className: o("border-b", e), ...t }));
908
+ Lt.displayName = "AccordionItem";
909
909
  const _t = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__ */ a(N.Header, { className: "flex", children: /* @__PURE__ */ d(
910
910
  N.Trigger,
911
911
  {
@@ -917,7 +917,7 @@ const _t = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__
917
917
  ...r,
918
918
  children: [
919
919
  t,
920
- /* @__PURE__ */ a(Lt, {})
920
+ /* @__PURE__ */ a(Pt, {})
921
921
  ]
922
922
  }
923
923
  ) }));
@@ -940,53 +940,53 @@ function Rr({
940
940
  placeholder: s = "選択してください",
941
941
  emptyText: i = "該当なし",
942
942
  className: l = "",
943
- disabled: b = !1,
944
- allowCustom: m = !1
943
+ disabled: g = !1,
944
+ allowCustom: c = !1
945
945
  }) {
946
- const [c, p] = B(!1), [x, v] = B(e || ""), I = r.some((y) => y.value === e), ge = () => {
947
- m && (c ? (p(!1), x && t && t(x)) : (p(!0), v(e || "")));
946
+ const [p, b] = O(!1), [x, v] = O(e || ""), I = r.some((y) => y.value === e), ge = () => {
947
+ c && (p ? (b(!1), x && t && t(x)) : (b(!0), v(e || "")));
948
948
  }, pe = (y) => {
949
- y === "__custom__" ? (p(!0), v("")) : y === E ? t == null || t("") : t == null || t(y);
949
+ y === "__custom__" ? (b(!0), v("")) : t?.(y === E ? "" : y);
950
950
  }, be = (y) => {
951
951
  const G = y.target.value;
952
- v(G), t == null || t(G);
952
+ v(G), t?.(G);
953
953
  };
954
- return c || m && !I && e ? /* @__PURE__ */ d("div", { className: `flex gap-2 ${l}`, children: [
954
+ return p || c && !I && e ? /* @__PURE__ */ d("div", { className: `flex gap-2 ${l}`, children: [
955
955
  /* @__PURE__ */ a(
956
956
  Q,
957
957
  {
958
958
  value: x,
959
959
  onChange: be,
960
960
  placeholder: s,
961
- disabled: b,
961
+ disabled: g,
962
962
  className: "flex-1"
963
963
  }
964
964
  ),
965
- m && /* @__PURE__ */ a(
965
+ c && /* @__PURE__ */ a(
966
966
  "button",
967
967
  {
968
968
  type: "button",
969
969
  onClick: ge,
970
970
  className: "px-3 py-2 text-sm border border-gray-300 rounded hover:bg-gray-50",
971
- disabled: b,
971
+ disabled: g,
972
972
  title: "プルダウンに戻る",
973
973
  children: "↓"
974
974
  }
975
975
  )
976
- ] }) : /* @__PURE__ */ a("div", { className: l, children: /* @__PURE__ */ d(Ge, { value: e === "" ? E : e, onValueChange: pe, disabled: b, children: [
976
+ ] }) : /* @__PURE__ */ a("div", { className: l, children: /* @__PURE__ */ d(Ge, { value: e === "" ? E : e, onValueChange: pe, disabled: g, children: [
977
977
  /* @__PURE__ */ a(Z, { className: "w-full", children: /* @__PURE__ */ a(We, { placeholder: s }) }),
978
978
  /* @__PURE__ */ a(ee, { children: r.length === 0 ? /* @__PURE__ */ a("div", { className: "px-2 py-1.5 text-sm text-gray-500", children: i }) : /* @__PURE__ */ d(W, { children: [
979
979
  r.map((y) => /* @__PURE__ */ a(
980
- H,
980
+ F,
981
981
  {
982
982
  value: y.value === "" ? E : y.value,
983
983
  children: y.label
984
984
  },
985
985
  y.value
986
986
  )),
987
- m && /* @__PURE__ */ d(W, { children: [
987
+ c && /* @__PURE__ */ d(W, { children: [
988
988
  /* @__PURE__ */ a("div", { className: "border-t my-1" }),
989
- /* @__PURE__ */ a(H, { value: "__custom__", children: "✏️ 手動入力..." })
989
+ /* @__PURE__ */ a(F, { value: "__custom__", children: "✏️ 手動入力..." })
990
990
  ] })
991
991
  ] }) })
992
992
  ] }) });
@@ -997,16 +997,16 @@ const Mt = {
997
997
  lg: "h-12 w-12 text-base",
998
998
  xl: "h-16 w-16 text-lg"
999
999
  }, zt = n.forwardRef(
1000
- ({ src: e, alt: t, size: r = "md", fallback: s, className: i, ...l }, b) => {
1001
- const [m, c] = n.useState(!1), [p, x] = n.useState(!1);
1000
+ ({ src: e, alt: t, size: r = "md", fallback: s, className: i, ...l }, g) => {
1001
+ const [c, p] = n.useState(!1), [b, x] = n.useState(!1);
1002
1002
  n.useEffect(() => {
1003
- c(!1), x(!1);
1003
+ p(!1), x(!1);
1004
1004
  }, [e]);
1005
- const v = e && !m, I = !e || m || !p;
1005
+ const v = e && !c, I = !e || c || !b;
1006
1006
  return /* @__PURE__ */ d(
1007
1007
  "div",
1008
1008
  {
1009
- ref: b,
1009
+ ref: g,
1010
1010
  className: o(
1011
1011
  "relative inline-flex items-center justify-center overflow-hidden rounded-full bg-muted",
1012
1012
  Mt[r],
@@ -1021,10 +1021,10 @@ const Mt = {
1021
1021
  alt: t || "Avatar",
1022
1022
  className: o(
1023
1023
  "h-full w-full object-cover",
1024
- p ? "opacity-100" : "opacity-0"
1024
+ b ? "opacity-100" : "opacity-0"
1025
1025
  ),
1026
1026
  onLoad: () => x(!0),
1027
- onError: () => c(!0),
1027
+ onError: () => p(!0),
1028
1028
  loading: l.loading
1029
1029
  }
1030
1030
  ),
@@ -1060,7 +1060,7 @@ const Sr = D.Root, Cr = D.Trigger, jt = n.forwardRef(({ className: e, align: t =
1060
1060
  jt.displayName = D.Content.displayName;
1061
1061
  const Et = R(
1062
1062
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1063
- ), Bt = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1063
+ ), Ot = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1064
1064
  X.Root,
1065
1065
  {
1066
1066
  ref: r,
@@ -1068,8 +1068,8 @@ const Et = R(
1068
1068
  ...t
1069
1069
  }
1070
1070
  ));
1071
- Bt.displayName = X.Root.displayName;
1072
- const Ft = n.forwardRef(
1071
+ Ot.displayName = X.Root.displayName;
1072
+ const Vt = n.forwardRef(
1073
1073
  ({ className: e, ...t }, r) => /* @__PURE__ */ a(
1074
1074
  "textarea",
1075
1075
  {
@@ -1082,9 +1082,9 @@ const Ft = n.forwardRef(
1082
1082
  }
1083
1083
  )
1084
1084
  );
1085
- Ft.displayName = "Textarea";
1086
- const Ot = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1087
- F.Root,
1085
+ Vt.displayName = "Textarea";
1086
+ const Bt = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1087
+ V.Root,
1088
1088
  {
1089
1089
  className: o(
1090
1090
  "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-gray-300 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-gray-50 dark:data-[state=unchecked]:bg-gray-600",
@@ -1093,7 +1093,7 @@ const Ot = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1093
1093
  ...t,
1094
1094
  ref: r,
1095
1095
  children: /* @__PURE__ */ a(
1096
- F.Thumb,
1096
+ V.Thumb,
1097
1097
  {
1098
1098
  className: o(
1099
1099
  "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
@@ -1102,8 +1102,8 @@ const Ot = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1102
1102
  )
1103
1103
  }
1104
1104
  ));
1105
- Ot.displayName = F.Root.displayName;
1106
- const Dr = T.Provider, Ir = T.Root, Lr = T.Trigger, Ht = n.forwardRef(({ className: e, sideOffset: t = 4, ...r }, s) => /* @__PURE__ */ a(T.Portal, { children: /* @__PURE__ */ a(
1105
+ Bt.displayName = V.Root.displayName;
1106
+ const Dr = T.Provider, Ir = T.Root, Pr = T.Trigger, Ft = n.forwardRef(({ className: e, sideOffset: t = 4, ...r }, s) => /* @__PURE__ */ a(T.Portal, { children: /* @__PURE__ */ a(
1107
1107
  T.Content,
1108
1108
  {
1109
1109
  ref: s,
@@ -1115,8 +1115,8 @@ const Dr = T.Provider, Ir = T.Root, Lr = T.Trigger, Ht = n.forwardRef(({ classNa
1115
1115
  ...r
1116
1116
  }
1117
1117
  ) }));
1118
- Ht.displayName = T.Content.displayName;
1119
- const Vt = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__ */ d(
1118
+ Ft.displayName = T.Content.displayName;
1119
+ const Ht = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__ */ d(
1120
1120
  w.Root,
1121
1121
  {
1122
1122
  ref: s,
@@ -1129,7 +1129,7 @@ const Vt = n.forwardRef(({ className: e, children: t, ...r }, s) => /* @__PURE__
1129
1129
  ]
1130
1130
  }
1131
1131
  ));
1132
- Vt.displayName = w.Root.displayName;
1132
+ Ht.displayName = w.Root.displayName;
1133
1133
  const ie = n.forwardRef(({ className: e, orientation: t = "vertical", ...r }, s) => /* @__PURE__ */ a(
1134
1134
  w.ScrollAreaScrollbar,
1135
1135
  {
@@ -1257,7 +1257,7 @@ const me = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1257
1257
  }
1258
1258
  ));
1259
1259
  me.displayName = "TableHead";
1260
- const V = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1260
+ const H = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1261
1261
  "td",
1262
1262
  {
1263
1263
  ref: r,
@@ -1265,7 +1265,7 @@ const V = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1265
1265
  ...t
1266
1266
  }
1267
1267
  ));
1268
- V.displayName = "TableCell";
1268
+ H.displayName = "TableCell";
1269
1269
  const Xt = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1270
1270
  "caption",
1271
1271
  {
@@ -1275,16 +1275,15 @@ const Xt = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1275
1275
  }
1276
1276
  ));
1277
1277
  Xt.displayName = "TableCaption";
1278
- function Pr({
1278
+ function Lr({
1279
1279
  columns: e,
1280
1280
  data: t,
1281
1281
  onRowClick: r
1282
1282
  }) {
1283
- var b;
1284
1283
  const [s, i] = n.useState([]), l = Ce({
1285
1284
  data: t,
1286
1285
  columns: e,
1287
- getCoreRowModel: Le(),
1286
+ getCoreRowModel: Pe(),
1288
1287
  getPaginationRowModel: Ie(),
1289
1288
  onSortingChange: i,
1290
1289
  getSortedRowModel: De(),
@@ -1294,24 +1293,24 @@ function Pr({
1294
1293
  });
1295
1294
  return /* @__PURE__ */ d("div", { children: [
1296
1295
  /* @__PURE__ */ a("div", { className: "rounded-md border", children: /* @__PURE__ */ d(de, { children: [
1297
- /* @__PURE__ */ a(le, { children: l.getHeaderGroups().map((m) => /* @__PURE__ */ a(A, { children: m.headers.map((c) => /* @__PURE__ */ a(me, { children: c.isPlaceholder ? null : q(
1296
+ /* @__PURE__ */ a(le, { children: l.getHeaderGroups().map((g) => /* @__PURE__ */ a(A, { children: g.headers.map((c) => /* @__PURE__ */ a(me, { children: c.isPlaceholder ? null : q(
1298
1297
  c.column.columnDef.header,
1299
1298
  c.getContext()
1300
- ) }, c.id)) }, m.id)) }),
1301
- /* @__PURE__ */ a(ce, { children: (b = l.getRowModel().rows) != null && b.length ? l.getRowModel().rows.map((m) => /* @__PURE__ */ a(
1299
+ ) }, c.id)) }, g.id)) }),
1300
+ /* @__PURE__ */ a(ce, { children: l.getRowModel().rows?.length ? l.getRowModel().rows.map((g) => /* @__PURE__ */ a(
1302
1301
  A,
1303
1302
  {
1304
- "data-state": m.getIsSelected() && "selected",
1305
- onClick: () => r && r(m.original),
1303
+ "data-state": g.getIsSelected() && "selected",
1304
+ onClick: () => r && r(g.original),
1306
1305
  className: r ? "cursor-pointer" : "",
1307
- children: m.getVisibleCells().map((c) => /* @__PURE__ */ a(V, { children: q(c.column.columnDef.cell, c.getContext()) }, c.id))
1306
+ children: g.getVisibleCells().map((c) => /* @__PURE__ */ a(H, { children: q(c.column.columnDef.cell, c.getContext()) }, c.id))
1308
1307
  },
1309
- m.id
1310
- )) : /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(V, { colSpan: e.length, className: "h-24 text-center", children: "No results." }) }) })
1308
+ g.id
1309
+ )) : /* @__PURE__ */ a(A, { children: /* @__PURE__ */ a(H, { colSpan: e.length, className: "h-24 text-center", children: "No results." }) }) })
1311
1310
  ] }) }),
1312
1311
  /* @__PURE__ */ d("div", { className: "flex items-center justify-end space-x-2 py-4", children: [
1313
1312
  /* @__PURE__ */ a(
1314
- O,
1313
+ B,
1315
1314
  {
1316
1315
  variant: "outline",
1317
1316
  size: "sm",
@@ -1321,7 +1320,7 @@ function Pr({
1321
1320
  }
1322
1321
  ),
1323
1322
  /* @__PURE__ */ a(
1324
- O,
1323
+ B,
1325
1324
  {
1326
1325
  variant: "outline",
1327
1326
  size: "sm",
@@ -1333,8 +1332,8 @@ function Pr({
1333
1332
  ] })
1334
1333
  ] });
1335
1334
  }
1336
- const _r = f.Root, Ar = f.Trigger, Mr = f.Close, $t = f.Portal, fe = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1337
- f.Overlay,
1335
+ const _r = m.Root, Ar = m.Trigger, Mr = m.Close, $t = m.Portal, ue = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1336
+ m.Overlay,
1338
1337
  {
1339
1338
  className: o(
1340
1339
  "fixed top-0 right-0 bottom-0 left-0 z-50 bg-black/80 state-open:animate-fade-in state-closed:animate-fade-out",
@@ -1344,7 +1343,7 @@ const _r = f.Root, Ar = f.Trigger, Mr = f.Close, $t = f.Portal, fe = n.forwardRe
1344
1343
  ref: r
1345
1344
  }
1346
1345
  ));
1347
- fe.displayName = f.Overlay.displayName;
1346
+ ue.displayName = m.Overlay.displayName;
1348
1347
  const Qt = R(
1349
1348
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out state-closed:duration-300 state-open:duration-500",
1350
1349
  {
@@ -1361,15 +1360,15 @@ const Qt = R(
1361
1360
  }
1362
1361
  }
1363
1362
  ), Zt = n.forwardRef(({ side: e = "right", className: t, children: r, ...s }, i) => /* @__PURE__ */ d($t, { children: [
1364
- /* @__PURE__ */ a(fe, {}),
1363
+ /* @__PURE__ */ a(ue, {}),
1365
1364
  /* @__PURE__ */ d(
1366
- f.Content,
1365
+ m.Content,
1367
1366
  {
1368
1367
  ref: i,
1369
1368
  className: o(Qt({ side: e }), t),
1370
1369
  ...s,
1371
1370
  children: [
1372
- /* @__PURE__ */ d(f.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
1371
+ /* @__PURE__ */ d(m.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
1373
1372
  /* @__PURE__ */ a(Se, { className: "h-4 w-4" }),
1374
1373
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
1375
1374
  ] }),
@@ -1378,7 +1377,7 @@ const Qt = R(
1378
1377
  }
1379
1378
  )
1380
1379
  ] }));
1381
- Zt.displayName = f.Content.displayName;
1380
+ Zt.displayName = m.Content.displayName;
1382
1381
  const Jt = ({
1383
1382
  className: e,
1384
1383
  ...t
@@ -1408,60 +1407,60 @@ const Kt = ({
1408
1407
  );
1409
1408
  Kt.displayName = "SheetFooter";
1410
1409
  const er = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1411
- f.Title,
1410
+ m.Title,
1412
1411
  {
1413
1412
  ref: r,
1414
1413
  className: o("text-lg font-semibold text-foreground", e),
1415
1414
  ...t
1416
1415
  }
1417
1416
  ));
1418
- er.displayName = f.Title.displayName;
1417
+ er.displayName = m.Title.displayName;
1419
1418
  const tr = n.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ a(
1420
- f.Description,
1419
+ m.Description,
1421
1420
  {
1422
1421
  ref: r,
1423
1422
  className: o("text-sm text-muted-foreground", e),
1424
1423
  ...t
1425
1424
  }
1426
1425
  ));
1427
- tr.displayName = f.Description.displayName;
1426
+ tr.displayName = m.Description.displayName;
1428
1427
  const rr = {
1429
1428
  theme: "system",
1430
1429
  setTheme: () => null
1431
- }, ue = he(rr);
1430
+ }, fe = he(rr);
1432
1431
  function zr({
1433
1432
  children: e,
1434
1433
  defaultTheme: t = "system",
1435
1434
  storageKey: r = "mirel-ui-theme",
1436
1435
  ...s
1437
1436
  }) {
1438
- const [i, l] = B(
1437
+ const [i, l] = O(
1439
1438
  () => localStorage.getItem(r) || t
1440
1439
  );
1441
1440
  ye(() => {
1442
- const m = window.document.documentElement;
1443
- if (m.classList.remove("light", "dark"), i === "system") {
1444
- const c = window.matchMedia("(prefers-color-scheme: dark)"), p = c.matches ? "dark" : "light";
1445
- m.classList.add(p);
1441
+ const c = window.document.documentElement;
1442
+ if (c.classList.remove("light", "dark"), i === "system") {
1443
+ const p = window.matchMedia("(prefers-color-scheme: dark)"), b = p.matches ? "dark" : "light";
1444
+ c.classList.add(b);
1446
1445
  const x = () => {
1447
- m.classList.remove("light", "dark");
1448
- const v = c.matches ? "dark" : "light";
1449
- m.classList.add(v);
1446
+ c.classList.remove("light", "dark");
1447
+ const v = p.matches ? "dark" : "light";
1448
+ c.classList.add(v);
1450
1449
  };
1451
- return c.addEventListener("change", x), () => c.removeEventListener("change", x);
1450
+ return p.addEventListener("change", x), () => p.removeEventListener("change", x);
1452
1451
  }
1453
- m.classList.add(i);
1452
+ c.classList.add(i);
1454
1453
  }, [i]);
1455
- const b = {
1454
+ const g = {
1456
1455
  theme: i,
1457
- setTheme: (m) => {
1458
- localStorage.setItem(r, m), l(m);
1456
+ setTheme: (c) => {
1457
+ localStorage.setItem(r, c), l(c);
1459
1458
  }
1460
1459
  };
1461
- return /* @__PURE__ */ a(ue.Provider, { ...s, value: b, children: e });
1460
+ return /* @__PURE__ */ a(fe.Provider, { ...s, value: g, children: e });
1462
1461
  }
1463
1462
  const jr = () => {
1464
- const e = xe(ue);
1463
+ const e = xe(fe);
1465
1464
  if (e === void 0)
1466
1465
  throw new Error("useTheme must be used within a ThemeProvider");
1467
1466
  return e;
@@ -1469,14 +1468,14 @@ const jr = () => {
1469
1468
  export {
1470
1469
  Tr as Accordion,
1471
1470
  At as AccordionContent,
1472
- Pt as AccordionItem,
1471
+ Lt as AccordionItem,
1473
1472
  _t as AccordionTrigger,
1474
1473
  Tt as Alert,
1475
1474
  St as AlertDescription,
1476
1475
  Rt as AlertTitle,
1477
1476
  zt as Avatar,
1478
- L as Badge,
1479
- O as Button,
1477
+ P as Badge,
1478
+ B as Button,
1480
1479
  _e as Card,
1481
1480
  je as CardContent,
1482
1481
  ze as CardDescription,
@@ -1484,8 +1483,8 @@ export {
1484
1483
  Ae as CardHeader,
1485
1484
  Me as CardTitle,
1486
1485
  Rr as Combobox,
1487
- Pr as DataTable,
1488
- ur as Dialog,
1486
+ Lr as DataTable,
1487
+ fr as Dialog,
1489
1488
  pr as DialogClose,
1490
1489
  $e as DialogContent,
1491
1490
  Ke as DialogDescription,
@@ -1510,23 +1509,23 @@ export {
1510
1509
  tt as DropdownMenuSubContent,
1511
1510
  et as DropdownMenuSubTrigger,
1512
1511
  hr as DropdownMenuTrigger,
1513
- Ve as FormError,
1514
- Fe as FormField,
1515
- He as FormHelper,
1516
- Oe as FormLabel,
1512
+ He as FormError,
1513
+ Ve as FormField,
1514
+ Fe as FormHelper,
1515
+ Be as FormLabel,
1517
1516
  Ue as FormRequiredMark,
1518
1517
  Q as Input,
1519
- Bt as Label,
1518
+ Ot as Label,
1520
1519
  Sr as Popover,
1521
1520
  jt as PopoverContent,
1522
1521
  Cr as PopoverTrigger,
1523
- Vt as ScrollArea,
1522
+ Ht as ScrollArea,
1524
1523
  ie as ScrollBar,
1525
1524
  lt as SectionHeading,
1526
1525
  Ge as Select,
1527
1526
  ee as SelectContent,
1528
- fr as SelectGroup,
1529
- H as SelectItem,
1527
+ ur as SelectGroup,
1528
+ F as SelectItem,
1530
1529
  qe as SelectLabel,
1531
1530
  K as SelectScrollDownButton,
1532
1531
  J as SelectScrollUpButton,
@@ -1540,19 +1539,19 @@ export {
1540
1539
  tr as SheetDescription,
1541
1540
  Kt as SheetFooter,
1542
1541
  Jt as SheetHeader,
1543
- fe as SheetOverlay,
1542
+ ue as SheetOverlay,
1544
1543
  $t as SheetPortal,
1545
1544
  er as SheetTitle,
1546
1545
  Ar as SheetTrigger,
1547
- ut as Skeleton,
1546
+ ft as Skeleton,
1548
1547
  qt as Slider,
1549
1548
  Gt as Spinner,
1550
- ft as StepIndicator,
1551
- Ot as Switch,
1549
+ ut as StepIndicator,
1550
+ Bt as Switch,
1552
1551
  de as Table,
1553
1552
  ce as TableBody,
1554
1553
  Xt as TableCaption,
1555
- V as TableCell,
1554
+ H as TableCell,
1556
1555
  Yt as TableFooter,
1557
1556
  me as TableHead,
1558
1557
  le as TableHeader,
@@ -1561,7 +1560,7 @@ export {
1561
1560
  It as TabsContent,
1562
1561
  Ct as TabsList,
1563
1562
  Dt as TabsTrigger,
1564
- Ft as Textarea,
1563
+ Vt as Textarea,
1565
1564
  zr as ThemeProvider,
1566
1565
  ae as Toast,
1567
1566
  bt as ToastAction,
@@ -1572,11 +1571,11 @@ export {
1572
1571
  re as ToastViewport,
1573
1572
  Nr as Toaster,
1574
1573
  Ir as Tooltip,
1575
- Ht as TooltipContent,
1574
+ Ft as TooltipContent,
1576
1575
  Dr as TooltipProvider,
1577
- Lr as TooltipTrigger,
1578
- Be as badgeVariants,
1579
- Pe as buttonVariants,
1576
+ Pr as TooltipTrigger,
1577
+ Oe as badgeVariants,
1578
+ Le as buttonVariants,
1580
1579
  o as cn,
1581
1580
  wt as toast,
1582
1581
  jr as useTheme,
@@ -1 +1 @@
1
- (function(o,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("clsx"),require("tailwind-merge"),require("@radix-ui/react-select"),require("@radix-ui/react-dialog"),require("@radix-ui/react-dropdown-menu"),require("lucide-react"),require("@radix-ui/react-toast"),require("@radix-ui/react-tabs"),require("@radix-ui/react-accordion"),require("@radix-ui/react-popover"),require("@radix-ui/react-label"),require("@radix-ui/react-switch"),require("@radix-ui/react-tooltip"),require("@radix-ui/react-scroll-area"),require("@radix-ui/react-separator"),require("@radix-ui/react-slider"),require("@tanstack/react-table")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@radix-ui/react-slot","class-variance-authority","clsx","tailwind-merge","@radix-ui/react-select","@radix-ui/react-dialog","@radix-ui/react-dropdown-menu","lucide-react","@radix-ui/react-toast","@radix-ui/react-tabs","@radix-ui/react-accordion","@radix-ui/react-popover","@radix-ui/react-label","@radix-ui/react-switch","@radix-ui/react-tooltip","@radix-ui/react-scroll-area","@radix-ui/react-separator","@radix-ui/react-slider","@tanstack/react-table"],a):(o=typeof globalThis<"u"?globalThis:o||self,a(o.MirelUICore={},o.jsxRuntime,o.React,o.reactSlot,o.classVarianceAuthority,o.clsx,o.tailwindMerge,o.SelectPrimitive,o.DialogPrimitive,o.DropdownMenuPrimitive,o.lucideReact,o.ToastPrimitives,o.TabsPrimitive,o.AccordionPrimitive,o.PopoverPrimitive,o.LabelPrimitive,o.SwitchPrimitive,o.TooltipPrimitive,o.ScrollAreaPrimitive,o.SeparatorPrimitive,o.SliderPrimitive,o.reactTable))})(this,(function(o,a,w,Ct,C,Dt,Pt,_t,Mt,It,z,Lt,At,zt,jt,Ft,Et,Bt,Ot,qt,Ht,D){"use strict";function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const d=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,d.get?d:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=h(w),m=h(_t),f=h(Mt),u=h(It),v=h(Lt),N=h(At),T=h(zt),_=h(jt),ne=h(Ft),V=h(Et),P=h(Bt),S=h(Ot),ce=h(qt),M=h(Ht);function s(...e){return Pt.twMerge(Dt.clsx(e))}const fe=C.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium shadow-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-gray-900 text-gray-50 hover:bg-gray-900/90 dark:bg-gray-700 dark:text-gray-50 dark:hover:bg-gray-600",destructive:"bg-red-500 text-gray-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-gray-50 dark:hover:bg-red-900/90",outline:"border border-gray-200 bg-gray-50 hover:bg-gray-100 hover:text-gray-900 dark:border-gray-700 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50",secondary:"bg-gray-100 text-gray-900 hover:bg-gray-100/80 dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-800/80",ghost:"hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-50",link:"text-gray-900 underline-offset-4 hover:underline dark:text-gray-50",subtle:"bg-gray-100 text-gray-900 shadow-none hover:bg-gray-200 border border-gray-200/50 dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:border-gray-700",soft:"bg-gray-100/50 text-gray-900 hover:bg-gray-100/75 dark:bg-gray-800/50 dark:text-gray-50 dark:hover:bg-gray-800/75",elevated:"bg-white text-gray-900 shadow-md hover:shadow-lg border border-gray-200/60 dark:bg-gray-950 dark:text-gray-50 dark:border-gray-700"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",pill:"h-10 rounded-full px-6",square:"size-9 rounded-md relative [&_svg]:absolute [&_svg]:top-0 [&_svg]:right-0 [&_svg]:bottom-0 [&_svg]:left-0 [&_svg]:m-auto [&_svg]:size-4"}},defaultVariants:{variant:"default",size:"default"}}),j=i.forwardRef(({className:e,variant:t,size:r,asChild:d=!1,...l},n)=>{const p=d?Ct.Slot:"button";return a.jsx(p,{className:s(fe({variant:t,size:r,className:e})),ref:n,...l})});j.displayName="Button";const G=i.forwardRef(({className:e,type:t,...r},d)=>a.jsx("input",{type:t,className:s("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:d,...r}));G.displayName="Input";const ge=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("group rounded-2xl border border-outline/60 bg-surface shadow-md transition-shadow hover:shadow-lg",e),...t}));ge.displayName="Card";const ue=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("space-y-1.5 p-4",e),...t}));ue.displayName="CardHeader";const me=i.forwardRef(({className:e,...t},r)=>a.jsx("h3",{ref:r,className:s("text-lg font-semibold tracking-tight text-foreground",e),...t}));me.displayName="CardTitle";const pe=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("text-sm text-muted-foreground",e),...t}));pe.displayName="CardDescription";const be=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("p-4 pt-0",e),...t}));be.displayName="CardContent";const he=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("flex flex-col gap-2 border-t border-outline/40 bg-surface-subtle/60 p-4 pt-4 sm:flex-row sm:items-center sm:justify-between",e),...t}));he.displayName="CardFooter";const ve=C.cva("inline-flex items-center gap-1 rounded-full font-medium tracking-wide uppercase",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",neutral:"bg-surface-subtle text-muted-foreground ring-1 ring-inset ring-outline/60",outline:"border border-dashed border-outline/80 bg-transparent text-muted-foreground shadow-none",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground"},size:{default:"px-3 py-0.5 text-xs",sm:"px-2 py-0.5 text-[10px]",lg:"px-4 py-1 text-sm"}},defaultVariants:{variant:"neutral",size:"default"}}),I=i.forwardRef(({className:e,variant:t,...r},d)=>a.jsx("span",{ref:d,className:s("select-none",ve({variant:t,className:e})),...r}));I.displayName="Badge";const ye=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("space-y-2",e),...t}));ye.displayName="FormField";const we=i.forwardRef(({className:e,requiredMark:t,children:r,...d},l)=>a.jsxs("label",{ref:l,className:s("flex items-center gap-2 text-sm font-medium text-foreground",e),...d,children:[a.jsx("span",{children:r}),t??null]}));we.displayName="FormLabel";const xe=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("text-xs text-muted-foreground",e),...t}));xe.displayName="FormHelper";const Ne=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("flex items-center gap-1 text-xs text-destructive",e),...t}));Ne.displayName="FormError";const Te=({children:e="*",className:t})=>a.jsx("span",{className:s("text-destructive",t),"aria-hidden":!0,children:e});Te.displayName="FormRequiredMark";function F(e,t){return{...{backgroundColor:e==="dialog"?"hsl(var(--background))":"hsl(var(--popover))",color:e==="dialog"?"hsl(var(--foreground))":"hsl(var(--popover-foreground))"},...t}}const Se=m.Root,Vt=m.Group,ke=m.Value,U=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(m.Trigger,{ref:d,className:s("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,a.jsx(m.Icon,{asChild:!0,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 opacity-50",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}));U.displayName=m.Trigger.displayName;const W=i.forwardRef(({className:e,...t},r)=>a.jsx(m.ScrollUpButton,{ref:r,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"18 15 12 9 6 15"})})}));W.displayName=m.ScrollUpButton.displayName;const Y=i.forwardRef(({className:e,...t},r)=>a.jsx(m.ScrollDownButton,{ref:r,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})})}));Y.displayName=m.ScrollDownButton.displayName;const X=i.forwardRef(({className:e,children:t,position:r="popper",style:d,...l},n)=>a.jsx(m.Portal,{children:a.jsxs(m.Content,{ref:n,className:s("relative z-[200] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover/100 backdrop-blur-sm text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,style:F("popover",d),...l,children:[a.jsx(W,{}),a.jsx(m.Viewport,{className:s("p-1 bg-popover/100",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(Y,{})]})}));X.displayName=m.Content.displayName;const Ce=i.forwardRef(({className:e,...t},r)=>a.jsx(m.Label,{ref:r,className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ce.displayName=m.Label.displayName;const E=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(m.Item,{ref:d,className:s("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(m.ItemIndicator,{children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),a.jsx(m.ItemText,{children:t})]}));E.displayName=m.Item.displayName;const De=i.forwardRef(({className:e,...t},r)=>a.jsx(m.Separator,{ref:r,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));De.displayName=m.Separator.displayName;const Gt=f.Root,Ut=f.Trigger,Pe=f.Portal,Wt=f.Close,$=i.forwardRef(({className:e,style:t,...r},d)=>a.jsx(f.Overlay,{ref:d,className:s("fixed top-0 right-0 bottom-0 left-0 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),style:{backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:110,pointerEvents:"auto",...t},...r}));$.displayName=f.Overlay.displayName;const _e=i.forwardRef(({className:e,children:t,overlayClassName:r,style:d,onPointerDownOutside:l,onInteractOutside:n,...p},g)=>a.jsxs(Pe,{children:[a.jsx($,{className:r}),a.jsxs(f.Content,{ref:g,className:s("fixed grid w-full max-w-lg gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),style:F("dialog",{left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:120,isolation:"isolate",...d}),onPointerDownOutside:c=>{const b=c.target;(b.closest("[data-radix-select-content]")||b.closest('[role="listbox"]')||b.closest("[data-radix-popper-content-wrapper]"))&&c.preventDefault(),l==null||l(c)},onInteractOutside:c=>{const b=c.target;(b.closest("[data-radix-select-content]")||b.closest('[role="listbox"]')||b.closest("[data-radix-popper-content-wrapper]"))&&c.preventDefault(),n==null||n(c)},...p,children:[t,a.jsx(f.Close,{className:"absolute right-4 top-4 inline-flex h-9 w-9 items-center justify-center rounded-full border border-border/50 bg-background text-foreground/80 shadow-sm transition-all hover:border-destructive hover:bg-destructive hover:text-white focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none","aria-label":"閉じる",children:a.jsx("svg",{width:"18",height:"18",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})})]})]}));_e.displayName=f.Content.displayName;const Me=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Me.displayName="DialogHeader";const Ie=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ie.displayName="DialogFooter";const Le=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Title,{ref:r,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));Le.displayName=f.Title.displayName;const Ae=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Description,{ref:r,className:s("text-sm text-muted-foreground",e),...t}));Ae.displayName=f.Description.displayName;const Yt=u.Root,Xt=u.Trigger,$t=u.Group,Qt=u.Portal,Zt=u.Sub,Jt=u.RadioGroup,ze=i.forwardRef(({className:e,inset:t,children:r,...d},l)=>a.jsxs(u.SubTrigger,{ref:l,className:s("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...d,children:[r,a.jsx(z.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ze.displayName=u.SubTrigger.displayName;const je=i.forwardRef(({className:e,style:t,...r},d)=>a.jsx(u.SubContent,{ref:d,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),style:F("popover",t),...r}));je.displayName=u.SubContent.displayName;const Fe=i.forwardRef(({className:e,sideOffset:t=4,style:r,...d},l)=>a.jsx(u.Portal,{children:a.jsx(u.Content,{ref:l,sideOffset:t,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),style:F("popover",r),...d})}));Fe.displayName=u.Content.displayName;const Ee=i.forwardRef(({className:e,inset:t,...r},d)=>a.jsx(u.Item,{ref:d,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Ee.displayName=u.Item.displayName;const Be=i.forwardRef(({className:e,children:t,checked:r,...d},l)=>a.jsxs(u.CheckboxItem,{ref:l,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...d,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(u.ItemIndicator,{children:a.jsx(z.Check,{className:"h-4 w-4"})})}),t]}));Be.displayName=u.CheckboxItem.displayName;const Oe=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(u.RadioItem,{ref:d,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(u.ItemIndicator,{children:a.jsx(z.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Oe.displayName=u.RadioItem.displayName;const qe=i.forwardRef(({className:e,inset:t,...r},d)=>a.jsx(u.Label,{ref:d,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));qe.displayName=u.Label.displayName;const He=i.forwardRef(({className:e,...t},r)=>a.jsx(u.Separator,{ref:r,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));He.displayName=u.Separator.displayName;const Ve=({className:e,...t})=>a.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});Ve.displayName="DropdownMenuShortcut";const Ge=i.forwardRef(({eyebrow:e,title:t,description:r,actions:d,className:l,...n},p)=>a.jsxs("div",{ref:p,className:s("flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",l),...n,children:[a.jsxs("div",{className:"space-y-2",children:[e?a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-muted-foreground",children:e}):null,a.jsxs("div",{className:"space-y-2",children:[a.jsx("h2",{className:"text-3xl font-semibold tracking-tight text-foreground sm:text-4xl",children:t}),r?a.jsx("p",{className:"max-w-2xl text-sm text-muted-foreground sm:text-base",children:r}):null]})]}),d?a.jsx("div",{className:"flex items-center gap-3",children:d}):null]}));Ge.displayName="SectionHeading";const Kt={complete:"border-success/40 bg-success/15 text-success-foreground",current:"border-primary/40 bg-primary/10 text-primary",upcoming:"border-outline/60 bg-surface-subtle text-muted-foreground"},Rt={complete:a.jsx(I,{variant:"success",children:"完了"}),current:a.jsx(I,{variant:"info",children:"進行中"}),upcoming:a.jsx(I,{variant:"neutral",children:"準備中"})},Ue=i.forwardRef(({steps:e,className:t,...r},d)=>a.jsx("ol",{ref:d,className:s("grid grid-cols-3 gap-3 rounded-xl border border-outline/60 bg-surface-subtle p-4 shadow-sm",t),...r,children:e.map(l=>{const n=l.state??"upcoming";return a.jsxs("li",{className:s("rounded-lg border p-4 transition-colors",Kt[n]),"data-state":n,children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"text-sm font-semibold tracking-wide text-foreground",children:l.title}),Rt[n]]}),l.description?a.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:l.description}):null]},l.id)})}));Ue.displayName="StepIndicator";const We=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("animate-shimmer rounded-md bg-surface-subtle/80 bg-gradient-to-r from-surface-subtle via-surface-raised/80 to-surface-subtle",e),...t}));We.displayName="Skeleton";const Ye=v.Provider,Q=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Viewport,{ref:r,className:s("fixed left-4 right-4 bottom-4 z-[100] flex max-h-[calc(100vh-2rem)] flex-col gap-3 p-0 sm:left-auto sm:right-6 sm:bottom-6 sm:w-[380px]",e),...t}));Q.displayName=v.Viewport.displayName;const ea=C.cva("group pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-xl border p-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border-gray-200 bg-white text-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50",destructive:"destructive group border-red-500 bg-red-500 text-gray-50 dark:border-red-900 dark:bg-red-900 dark:text-gray-50",info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-900 dark:bg-blue-950 dark:text-blue-50",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-900 dark:bg-green-950 dark:text-green-50",warning:"border-yellow-200 bg-yellow-50 text-yellow-900 dark:border-yellow-900 dark:bg-yellow-950 dark:text-yellow-50",loading:"border-gray-200 bg-gray-50 text-gray-900 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-50 shadow-md animate-pulse"}},defaultVariants:{variant:"default"}}),Z=i.forwardRef(({className:e,variant:t,...r},d)=>a.jsx(v.Root,{ref:d,className:s(ea({variant:t}),e),...r}));Z.displayName=v.Root.displayName;const Xe=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Action,{ref:r,className:s("inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-full border border-outline/60 bg-transparent px-3 text-sm font-medium transition-colors hover:bg-foreground/10 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/40 group-[.destructive]:hover:bg-destructive/20 group-[.destructive]:focus:ring-destructive group-[.info]:border-info/50 group-[.success]:border-success/50 group-[.warning]:border-warning/60",e),...t}));Xe.displayName=v.Action.displayName;const J=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Close,{ref:r,className:s("shrink-0 rounded-full p-1.5 text-foreground/60 opacity-70 transition-opacity hover:opacity-100 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 group-[.destructive]:text-destructive-foreground group-[.destructive]:hover:text-destructive-foreground/80 group-[.info]:text-info-foreground group-[.success]:text-success-foreground group-[.warning]:text-warning-foreground",e),"toast-close":"",...t,children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:[a.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}));J.displayName=v.Close.displayName;const K=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Title,{ref:r,className:s("flex items-center gap-2 text-sm font-semibold",e),...t}));K.displayName=v.Title.displayName;const R=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Description,{ref:r,className:s("text-sm text-foreground/80",e),...t}));R.displayName=v.Description.displayName;const ta=5,aa=5e3;let ee=0;function ra(){return ee=(ee+1)%Number.MAX_VALUE,ee.toString()}const te=new Map,$e=e=>{if(te.has(e))return;const t=setTimeout(()=>{te.delete(e),L({type:"REMOVE_TOAST",toastId:e})},aa);te.set(e,t)},oa=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ta)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?$e(r):e.toasts.forEach(d=>{$e(d.id)}),{...e,toasts:e.toasts.map(d=>d.id===r||r===void 0?{...d,open:!1}:d)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},B=[];let O={toasts:[]};function L(e){O=oa(O,e),B.forEach(t=>{t(O)})}function Qe({...e}){const t=ra(),r=l=>L({type:"UPDATE_TOAST",toast:{...l,id:t}}),d=()=>L({type:"DISMISS_TOAST",toastId:t});return L({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:l=>{l||d()}}}),{id:t,dismiss:d,update:r}}function Ze(){const[e,t]=i.useState(O);return i.useEffect(()=>(B.push(t),()=>{const r=B.indexOf(t);r>-1&&B.splice(r,1)}),[e]),{...e,toast:Qe,dismiss:r=>L({type:"DISMISS_TOAST",toastId:r})}}function sa(){const{toasts:e}=Ze();return a.jsxs(Ye,{children:[e.map(function({id:t,title:r,description:d,action:l,...n}){return a.jsxs(Z,{...n,children:[a.jsxs("div",{className:"grid gap-1 flex-1 min-w-0",children:[r&&a.jsx(K,{children:r}),d&&a.jsx(R,{children:d})]}),l,a.jsx(J,{})]},t)}),a.jsx(Q,{})]})}const da=C.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",info:"border-blue-500/50 text-blue-700 dark:border-blue-500 [&>svg]:text-blue-700 dark:text-blue-400 dark:[&>svg]:text-blue-400",success:"border-green-500/50 text-green-700 dark:border-green-500 [&>svg]:text-green-700 dark:text-green-400 dark:[&>svg]:text-green-400",warning:"border-yellow-500/50 text-yellow-700 dark:border-yellow-500 [&>svg]:text-yellow-700 dark:text-yellow-400 dark:[&>svg]:text-yellow-400"}},defaultVariants:{variant:"default"}}),Je=w.forwardRef(({className:e,variant:t,...r},d)=>a.jsx("div",{ref:d,role:"alert",className:s(da({variant:t}),e),...r}));Je.displayName="Alert";const Ke=w.forwardRef(({className:e,...t},r)=>a.jsx("h5",{ref:r,className:s("mb-1 font-medium leading-none tracking-tight",e),...t}));Ke.displayName="AlertTitle";const Re=w.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("text-sm [&_p]:leading-relaxed",e),...t}));Re.displayName="AlertDescription";const ia=N.Root,et=i.forwardRef(({className:e,...t},r)=>a.jsx(N.List,{ref:r,className:s("inline-flex h-10 items-center justify-center rounded-md bg-surface-raised p-1 text-muted-foreground border border-outline/20",e),...t}));et.displayName=N.List.displayName;const tt=i.forwardRef(({className:e,...t},r)=>a.jsx(N.Trigger,{ref:r,className:s("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","state-active:bg-background state-active:text-foreground state-active:font-semibold state-active:shadow-sm",e),...t}));tt.displayName=N.Trigger.displayName;const at=i.forwardRef(({className:e,...t},r)=>a.jsx(N.Content,{ref:r,className:s("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));at.displayName=N.Content.displayName;const la=()=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 shrink-0 transition-transform duration-200",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})}),na=T.Root,rt=i.forwardRef(({className:e,...t},r)=>a.jsx(T.Item,{ref:r,className:s("border-b",e),...t}));rt.displayName="AccordionItem";const ot=i.forwardRef(({className:e,children:t,...r},d)=>a.jsx(T.Header,{className:"flex",children:a.jsxs(T.Trigger,{ref:d,className:s("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,a.jsx(la,{})]})}));ot.displayName=T.Trigger.displayName;const st=i.forwardRef(({className:e,children:t,...r},d)=>a.jsx(T.Content,{ref:d,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:a.jsx("div",{className:s("pb-4 pt-0",e),children:t})}));st.displayName=T.Content.displayName;const ae="__EMPTY__";function ca({value:e="",onValueChange:t,options:r,placeholder:d="選択してください",emptyText:l="該当なし",className:n="",disabled:p=!1,allowCustom:g=!1}){const[c,b]=w.useState(!1),[x,k]=w.useState(e||""),H=r.some(y=>y.value===e),Da=()=>{g&&(c?(b(!1),x&&t&&t(x)):(b(!0),k(e||"")))},Pa=y=>{y==="__custom__"?(b(!0),k("")):y===ae?t==null||t(""):t==null||t(y)},_a=y=>{const kt=y.target.value;k(kt),t==null||t(kt)};if(c||g&&!H&&e)return a.jsxs("div",{className:`flex gap-2 ${n}`,children:[a.jsx(G,{value:x,onChange:_a,placeholder:d,disabled:p,className:"flex-1"}),g&&a.jsx("button",{type:"button",onClick:Da,className:"px-3 py-2 text-sm border border-gray-300 rounded hover:bg-gray-50",disabled:p,title:"プルダウンに戻る",children:"↓"})]});const Ma=e===""?ae:e;return a.jsx("div",{className:n,children:a.jsxs(Se,{value:Ma,onValueChange:Pa,disabled:p,children:[a.jsx(U,{className:"w-full",children:a.jsx(ke,{placeholder:d})}),a.jsx(X,{children:r.length===0?a.jsx("div",{className:"px-2 py-1.5 text-sm text-gray-500",children:l}):a.jsxs(a.Fragment,{children:[r.map(y=>a.jsx(E,{value:y.value===""?ae:y.value,children:y.label},y.value)),g&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"border-t my-1"}),a.jsx(E,{value:"__custom__",children:"✏️ 手動入力..."})]})]})})]})})}const fa={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-lg"},dt=i.forwardRef(({src:e,alt:t,size:r="md",fallback:d,className:l,...n},p)=>{const[g,c]=i.useState(!1),[b,x]=i.useState(!1);i.useEffect(()=>{c(!1),x(!1)},[e]);const k=e&&!g,H=!e||g||!b;return a.jsxs("div",{ref:p,className:s("relative inline-flex items-center justify-center overflow-hidden rounded-full bg-muted",fa[r],l),...n,children:[k&&a.jsx("img",{src:e,alt:t||"Avatar",className:s("h-full w-full object-cover",b?"opacity-100":"opacity-0"),onLoad:()=>x(!0),onError:()=>c(!0),loading:n.loading}),H&&d&&a.jsx("span",{className:"font-medium text-muted-foreground uppercase",children:d}),H&&!d&&a.jsx("svg",{className:"h-full w-full text-muted-foreground",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})]})});dt.displayName="Avatar";const ga=_.Root,ua=_.Trigger,it=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,...d},l)=>a.jsx(_.Portal,{children:a.jsx(_.Content,{ref:l,align:t,sideOffset:r,className:s("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...d})}));it.displayName=_.Content.displayName;const ma=C.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),lt=i.forwardRef(({className:e,...t},r)=>a.jsx(ne.Root,{ref:r,className:s(ma(),e),...t}));lt.displayName=ne.Root.displayName;const nt=i.forwardRef(({className:e,...t},r)=>a.jsx("textarea",{className:s("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));nt.displayName="Textarea";const ct=i.forwardRef(({className:e,...t},r)=>a.jsx(V.Root,{className:s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-gray-300 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-gray-50 dark:data-[state=unchecked]:bg-gray-600",e),...t,ref:r,children:a.jsx(V.Thumb,{className:s("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ct.displayName=V.Root.displayName;const pa=P.Provider,ba=P.Root,ha=P.Trigger,ft=i.forwardRef(({className:e,sideOffset:t=4,...r},d)=>a.jsx(P.Portal,{children:a.jsx(P.Content,{ref:d,sideOffset:t,className:s("z-50 overflow-hidden rounded-md bg-gray-900 px-3 py-1.5 text-xs text-gray-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:bg-gray-50 dark:text-gray-900",e),...r})}));ft.displayName=P.Content.displayName;const gt=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(S.Root,{ref:d,className:s("relative overflow-hidden",e),...r,children:[a.jsx(S.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(re,{}),a.jsx(S.Corner,{})]}));gt.displayName=S.Root.displayName;const re=i.forwardRef(({className:e,orientation:t="vertical",...r},d)=>a.jsx(S.ScrollAreaScrollbar,{ref:d,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:a.jsx(S.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));re.displayName=S.ScrollAreaScrollbar.displayName;const va={sm:"h-4 w-4 border-2",md:"h-6 w-6 border-2",lg:"h-8 w-8 border-3",xl:"h-12 w-12 border-4"},ut=i.forwardRef(({size:e="md",className:t,...r},d)=>a.jsx("div",{ref:d,className:s("inline-block animate-spin rounded-full border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",va[e],t),role:"status",...r,children:a.jsx("span",{className:"sr-only",children:"Loading..."})}));ut.displayName="Spinner";const mt=i.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...d},l)=>a.jsx(ce.Root,{ref:l,decorative:r,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...d}));mt.displayName=ce.Root.displayName;const pt=i.forwardRef(({className:e,...t},r)=>a.jsxs(M.Root,{ref:r,className:s("relative flex w-full touch-none select-none items-center",e),...t,children:[a.jsx(M.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200 dark:bg-gray-800",children:a.jsx(M.Range,{className:"absolute h-full bg-gray-900 dark:bg-gray-50"})}),a.jsx(M.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-gray-900 bg-white ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:border-gray-50 dark:bg-gray-950 dark:ring-offset-gray-950 dark:focus-visible:ring-gray-300"})]}));pt.displayName=M.Root.displayName;const oe=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:r,className:s("w-full caption-bottom text-sm",e),...t})}));oe.displayName="Table";const se=i.forwardRef(({className:e,...t},r)=>a.jsx("thead",{ref:r,className:s("[&_tr]:border-b",e),...t}));se.displayName="TableHeader";const de=i.forwardRef(({className:e,...t},r)=>a.jsx("tbody",{ref:r,className:s("[&_tr:last-child]:border-0",e),...t}));de.displayName="TableBody";const bt=i.forwardRef(({className:e,...t},r)=>a.jsx("tfoot",{ref:r,className:s("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));bt.displayName="TableFooter";const A=i.forwardRef(({className:e,...t},r)=>a.jsx("tr",{ref:r,className:s("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));A.displayName="TableRow";const ie=i.forwardRef(({className:e,...t},r)=>a.jsx("th",{ref:r,className:s("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));ie.displayName="TableHead";const q=i.forwardRef(({className:e,...t},r)=>a.jsx("td",{ref:r,className:s("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));q.displayName="TableCell";const ht=i.forwardRef(({className:e,...t},r)=>a.jsx("caption",{ref:r,className:s("mt-4 text-sm text-muted-foreground",e),...t}));ht.displayName="TableCaption";function ya({columns:e,data:t,onRowClick:r}){var p;const[d,l]=i.useState([]),n=D.useReactTable({data:t,columns:e,getCoreRowModel:D.getCoreRowModel(),getPaginationRowModel:D.getPaginationRowModel(),onSortingChange:l,getSortedRowModel:D.getSortedRowModel(),state:{sorting:d}});return a.jsxs("div",{children:[a.jsx("div",{className:"rounded-md border",children:a.jsxs(oe,{children:[a.jsx(se,{children:n.getHeaderGroups().map(g=>a.jsx(A,{children:g.headers.map(c=>a.jsx(ie,{children:c.isPlaceholder?null:D.flexRender(c.column.columnDef.header,c.getContext())},c.id))},g.id))}),a.jsx(de,{children:(p=n.getRowModel().rows)!=null&&p.length?n.getRowModel().rows.map(g=>a.jsx(A,{"data-state":g.getIsSelected()&&"selected",onClick:()=>r&&r(g.original),className:r?"cursor-pointer":"",children:g.getVisibleCells().map(c=>a.jsx(q,{children:D.flexRender(c.column.columnDef.cell,c.getContext())},c.id))},g.id)):a.jsx(A,{children:a.jsx(q,{colSpan:e.length,className:"h-24 text-center",children:"No results."})})})]})}),a.jsxs("div",{className:"flex items-center justify-end space-x-2 py-4",children:[a.jsx(j,{variant:"outline",size:"sm",onClick:()=>n.previousPage(),disabled:!n.getCanPreviousPage(),children:"Previous"}),a.jsx(j,{variant:"outline",size:"sm",onClick:()=>n.nextPage(),disabled:!n.getCanNextPage(),children:"Next"})]})]})}const wa=f.Root,xa=f.Trigger,Na=f.Close,vt=f.Portal,le=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Overlay,{className:s("fixed top-0 right-0 bottom-0 left-0 z-50 bg-black/80 state-open:animate-fade-in state-closed:animate-fade-out",e),...t,ref:r}));le.displayName=f.Overlay.displayName;const Ta=C.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out state-closed:duration-300 state-open:duration-500",{variants:{side:{top:"left-0 right-0 top-0 border-b state-closed:animate-slide-out-left state-open:animate-slide-in-left",bottom:"left-0 right-0 bottom-0 border-t state-closed:animate-slide-out-left state-open:animate-slide-in-left",left:"top-0 bottom-0 left-0 h-full w-3/4 border-r state-closed:animate-slide-out-left state-open:animate-slide-in-left sm:max-w-sm",right:"top-0 bottom-0 right-0 h-full w-3/4 border-l state-closed:animate-slide-out-right state-open:animate-slide-in-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),yt=i.forwardRef(({side:e="right",className:t,children:r,...d},l)=>a.jsxs(vt,{children:[a.jsx(le,{}),a.jsxs(f.Content,{ref:l,className:s(Ta({side:e}),t),...d,children:[a.jsxs(f.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsx(z.X,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));yt.displayName=f.Content.displayName;const wt=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});wt.displayName="SheetHeader";const xt=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xt.displayName="SheetFooter";const Nt=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Title,{ref:r,className:s("text-lg font-semibold text-foreground",e),...t}));Nt.displayName=f.Title.displayName;const Tt=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Description,{ref:r,className:s("text-sm text-muted-foreground",e),...t}));Tt.displayName=f.Description.displayName;const Sa={theme:"system",setTheme:()=>null},St=w.createContext(Sa);function ka({children:e,defaultTheme:t="system",storageKey:r="mirel-ui-theme",...d}){const[l,n]=w.useState(()=>localStorage.getItem(r)||t);w.useEffect(()=>{const g=window.document.documentElement;if(g.classList.remove("light","dark"),l==="system"){const c=window.matchMedia("(prefers-color-scheme: dark)"),b=c.matches?"dark":"light";g.classList.add(b);const x=()=>{g.classList.remove("light","dark");const k=c.matches?"dark":"light";g.classList.add(k)};return c.addEventListener("change",x),()=>c.removeEventListener("change",x)}g.classList.add(l)},[l]);const p={theme:l,setTheme:g=>{localStorage.setItem(r,g),n(g)}};return a.jsx(St.Provider,{...d,value:p,children:e})}const Ca=()=>{const e=w.useContext(St);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};o.Accordion=na,o.AccordionContent=st,o.AccordionItem=rt,o.AccordionTrigger=ot,o.Alert=Je,o.AlertDescription=Re,o.AlertTitle=Ke,o.Avatar=dt,o.Badge=I,o.Button=j,o.Card=ge,o.CardContent=be,o.CardDescription=pe,o.CardFooter=he,o.CardHeader=ue,o.CardTitle=me,o.Combobox=ca,o.DataTable=ya,o.Dialog=Gt,o.DialogClose=Wt,o.DialogContent=_e,o.DialogDescription=Ae,o.DialogFooter=Ie,o.DialogHeader=Me,o.DialogOverlay=$,o.DialogPortal=Pe,o.DialogTitle=Le,o.DialogTrigger=Ut,o.DropdownMenu=Yt,o.DropdownMenuCheckboxItem=Be,o.DropdownMenuContent=Fe,o.DropdownMenuGroup=$t,o.DropdownMenuItem=Ee,o.DropdownMenuLabel=qe,o.DropdownMenuPortal=Qt,o.DropdownMenuRadioGroup=Jt,o.DropdownMenuRadioItem=Oe,o.DropdownMenuSeparator=He,o.DropdownMenuShortcut=Ve,o.DropdownMenuSub=Zt,o.DropdownMenuSubContent=je,o.DropdownMenuSubTrigger=ze,o.DropdownMenuTrigger=Xt,o.FormError=Ne,o.FormField=ye,o.FormHelper=xe,o.FormLabel=we,o.FormRequiredMark=Te,o.Input=G,o.Label=lt,o.Popover=ga,o.PopoverContent=it,o.PopoverTrigger=ua,o.ScrollArea=gt,o.ScrollBar=re,o.SectionHeading=Ge,o.Select=Se,o.SelectContent=X,o.SelectGroup=Vt,o.SelectItem=E,o.SelectLabel=Ce,o.SelectScrollDownButton=Y,o.SelectScrollUpButton=W,o.SelectSeparator=De,o.SelectTrigger=U,o.SelectValue=ke,o.Separator=mt,o.Sheet=wa,o.SheetClose=Na,o.SheetContent=yt,o.SheetDescription=Tt,o.SheetFooter=xt,o.SheetHeader=wt,o.SheetOverlay=le,o.SheetPortal=vt,o.SheetTitle=Nt,o.SheetTrigger=xa,o.Skeleton=We,o.Slider=pt,o.Spinner=ut,o.StepIndicator=Ue,o.Switch=ct,o.Table=oe,o.TableBody=de,o.TableCaption=ht,o.TableCell=q,o.TableFooter=bt,o.TableHead=ie,o.TableHeader=se,o.TableRow=A,o.Tabs=ia,o.TabsContent=at,o.TabsList=et,o.TabsTrigger=tt,o.Textarea=nt,o.ThemeProvider=ka,o.Toast=Z,o.ToastAction=Xe,o.ToastClose=J,o.ToastDescription=R,o.ToastProvider=Ye,o.ToastTitle=K,o.ToastViewport=Q,o.Toaster=sa,o.Tooltip=ba,o.TooltipContent=ft,o.TooltipProvider=pa,o.TooltipTrigger=ha,o.badgeVariants=ve,o.buttonVariants=fe,o.cn=s,o.toast=Qe,o.useTheme=Ca,o.useToast=Ze,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(o,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("clsx"),require("tailwind-merge"),require("@radix-ui/react-select"),require("@radix-ui/react-dialog"),require("@radix-ui/react-dropdown-menu"),require("lucide-react"),require("@radix-ui/react-toast"),require("@radix-ui/react-tabs"),require("@radix-ui/react-accordion"),require("@radix-ui/react-popover"),require("@radix-ui/react-label"),require("@radix-ui/react-switch"),require("@radix-ui/react-tooltip"),require("@radix-ui/react-scroll-area"),require("@radix-ui/react-separator"),require("@radix-ui/react-slider"),require("@tanstack/react-table")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@radix-ui/react-slot","class-variance-authority","clsx","tailwind-merge","@radix-ui/react-select","@radix-ui/react-dialog","@radix-ui/react-dropdown-menu","lucide-react","@radix-ui/react-toast","@radix-ui/react-tabs","@radix-ui/react-accordion","@radix-ui/react-popover","@radix-ui/react-label","@radix-ui/react-switch","@radix-ui/react-tooltip","@radix-ui/react-scroll-area","@radix-ui/react-separator","@radix-ui/react-slider","@tanstack/react-table"],a):(o=typeof globalThis<"u"?globalThis:o||self,a(o.MirelUICore={},o.jsxRuntime,o.React,o.reactSlot,o.classVarianceAuthority,o.clsx,o.tailwindMerge,o.SelectPrimitive,o.DialogPrimitive,o.DropdownMenuPrimitive,o.lucideReact,o.ToastPrimitives,o.TabsPrimitive,o.AccordionPrimitive,o.PopoverPrimitive,o.LabelPrimitive,o.SwitchPrimitive,o.TooltipPrimitive,o.ScrollAreaPrimitive,o.SeparatorPrimitive,o.SliderPrimitive,o.reactTable))})(this,(function(o,a,w,Ct,C,Dt,Pt,_t,Mt,It,z,Lt,At,zt,jt,Ot,Ft,Et,Bt,qt,Ht,D){"use strict";function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const d=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,d.get?d:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=h(w),u=h(_t),f=h(Mt),g=h(It),v=h(Lt),N=h(At),T=h(zt),_=h(jt),le=h(Ot),V=h(Ft),P=h(Et),S=h(Bt),ce=h(qt),M=h(Ht);function s(...e){return Pt.twMerge(Dt.clsx(e))}const fe=C.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium shadow-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-gray-900 text-gray-50 hover:bg-gray-900/90 dark:bg-gray-700 dark:text-gray-50 dark:hover:bg-gray-600",destructive:"bg-red-500 text-gray-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-gray-50 dark:hover:bg-red-900/90",outline:"border border-gray-200 bg-gray-50 hover:bg-gray-100 hover:text-gray-900 dark:border-gray-700 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50",secondary:"bg-gray-100 text-gray-900 hover:bg-gray-100/80 dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-800/80",ghost:"hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-gray-50",link:"text-gray-900 underline-offset-4 hover:underline dark:text-gray-50",subtle:"bg-gray-100 text-gray-900 shadow-none hover:bg-gray-200 border border-gray-200/50 dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:border-gray-700",soft:"bg-gray-100/50 text-gray-900 hover:bg-gray-100/75 dark:bg-gray-800/50 dark:text-gray-50 dark:hover:bg-gray-800/75",elevated:"bg-white text-gray-900 shadow-md hover:shadow-lg border border-gray-200/60 dark:bg-gray-950 dark:text-gray-50 dark:border-gray-700"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",pill:"h-10 rounded-full px-6",square:"size-9 rounded-md relative [&_svg]:absolute [&_svg]:top-0 [&_svg]:right-0 [&_svg]:bottom-0 [&_svg]:left-0 [&_svg]:m-auto [&_svg]:size-4"}},defaultVariants:{variant:"default",size:"default"}}),j=i.forwardRef(({className:e,variant:t,size:r,asChild:d=!1,...n},l)=>{const m=d?Ct.Slot:"button";return a.jsx(m,{className:s(fe({variant:t,size:r,className:e})),ref:l,...n})});j.displayName="Button";const G=i.forwardRef(({className:e,type:t,...r},d)=>a.jsx("input",{type:t,className:s("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:d,...r}));G.displayName="Input";const ge=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("group rounded-2xl border border-outline/60 bg-surface shadow-md transition-shadow hover:shadow-lg",e),...t}));ge.displayName="Card";const ue=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("space-y-1.5 p-4",e),...t}));ue.displayName="CardHeader";const me=i.forwardRef(({className:e,...t},r)=>a.jsx("h3",{ref:r,className:s("text-lg font-semibold tracking-tight text-foreground",e),...t}));me.displayName="CardTitle";const pe=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("text-sm text-muted-foreground",e),...t}));pe.displayName="CardDescription";const be=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("p-4 pt-0",e),...t}));be.displayName="CardContent";const he=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("flex flex-col gap-2 border-t border-outline/40 bg-surface-subtle/60 p-4 pt-4 sm:flex-row sm:items-center sm:justify-between",e),...t}));he.displayName="CardFooter";const ve=C.cva("inline-flex items-center gap-1 rounded-full font-medium tracking-wide uppercase",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",neutral:"bg-surface-subtle text-muted-foreground ring-1 ring-inset ring-outline/60",outline:"border border-dashed border-outline/80 bg-transparent text-muted-foreground shadow-none",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground"},size:{default:"px-3 py-0.5 text-xs",sm:"px-2 py-0.5 text-[10px]",lg:"px-4 py-1 text-sm"}},defaultVariants:{variant:"neutral",size:"default"}}),I=i.forwardRef(({className:e,variant:t,...r},d)=>a.jsx("span",{ref:d,className:s("select-none",ve({variant:t,className:e})),...r}));I.displayName="Badge";const ye=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("space-y-2",e),...t}));ye.displayName="FormField";const we=i.forwardRef(({className:e,requiredMark:t,children:r,...d},n)=>a.jsxs("label",{ref:n,className:s("flex items-center gap-2 text-sm font-medium text-foreground",e),...d,children:[a.jsx("span",{children:r}),t??null]}));we.displayName="FormLabel";const xe=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("text-xs text-muted-foreground",e),...t}));xe.displayName="FormHelper";const Ne=i.forwardRef(({className:e,...t},r)=>a.jsx("p",{ref:r,className:s("flex items-center gap-1 text-xs text-destructive",e),...t}));Ne.displayName="FormError";const Te=({children:e="*",className:t})=>a.jsx("span",{className:s("text-destructive",t),"aria-hidden":!0,children:e});Te.displayName="FormRequiredMark";function O(e,t){return{...{backgroundColor:e==="dialog"?"hsl(var(--background))":"hsl(var(--popover))",color:e==="dialog"?"hsl(var(--foreground))":"hsl(var(--popover-foreground))"},...t}}const Se=u.Root,Vt=u.Group,ke=u.Value,U=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(u.Trigger,{ref:d,className:s("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,a.jsx(u.Icon,{asChild:!0,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 opacity-50",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}));U.displayName=u.Trigger.displayName;const W=i.forwardRef(({className:e,...t},r)=>a.jsx(u.ScrollUpButton,{ref:r,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"18 15 12 9 6 15"})})}));W.displayName=u.ScrollUpButton.displayName;const Y=i.forwardRef(({className:e,...t},r)=>a.jsx(u.ScrollDownButton,{ref:r,className:s("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})})}));Y.displayName=u.ScrollDownButton.displayName;const X=i.forwardRef(({className:e,children:t,position:r="popper",style:d,...n},l)=>a.jsx(u.Portal,{children:a.jsxs(u.Content,{ref:l,className:s("relative z-[200] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover/100 backdrop-blur-sm text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,style:O("popover",d),...n,children:[a.jsx(W,{}),a.jsx(u.Viewport,{className:s("p-1 bg-popover/100",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(Y,{})]})}));X.displayName=u.Content.displayName;const Ce=i.forwardRef(({className:e,...t},r)=>a.jsx(u.Label,{ref:r,className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ce.displayName=u.Label.displayName;const F=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(u.Item,{ref:d,className:s("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(u.ItemIndicator,{children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:a.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),a.jsx(u.ItemText,{children:t})]}));F.displayName=u.Item.displayName;const De=i.forwardRef(({className:e,...t},r)=>a.jsx(u.Separator,{ref:r,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));De.displayName=u.Separator.displayName;const Gt=f.Root,Ut=f.Trigger,Pe=f.Portal,Wt=f.Close,$=i.forwardRef(({className:e,style:t,...r},d)=>a.jsx(f.Overlay,{ref:d,className:s("fixed top-0 right-0 bottom-0 left-0 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),style:{backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:110,pointerEvents:"auto",...t},...r}));$.displayName=f.Overlay.displayName;const _e=i.forwardRef(({className:e,children:t,overlayClassName:r,style:d,onPointerDownOutside:n,onInteractOutside:l,...m},c)=>a.jsxs(Pe,{children:[a.jsx($,{className:r}),a.jsxs(f.Content,{ref:c,className:s("fixed grid w-full max-w-lg gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),style:O("dialog",{left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:120,isolation:"isolate",...d}),onPointerDownOutside:p=>{const b=p.target;(b.closest("[data-radix-select-content]")||b.closest('[role="listbox"]')||b.closest("[data-radix-popper-content-wrapper]"))&&p.preventDefault(),n?.(p)},onInteractOutside:p=>{const b=p.target;(b.closest("[data-radix-select-content]")||b.closest('[role="listbox"]')||b.closest("[data-radix-popper-content-wrapper]"))&&p.preventDefault(),l?.(p)},...m,children:[t,a.jsx(f.Close,{className:"absolute right-4 top-4 inline-flex h-9 w-9 items-center justify-center rounded-full border border-border/50 bg-background text-foreground/80 shadow-sm transition-all hover:border-destructive hover:bg-destructive hover:text-white focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none","aria-label":"閉じる",children:a.jsx("svg",{width:"18",height:"18",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})})]})]}));_e.displayName=f.Content.displayName;const Me=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Me.displayName="DialogHeader";const Ie=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ie.displayName="DialogFooter";const Le=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Title,{ref:r,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));Le.displayName=f.Title.displayName;const Ae=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Description,{ref:r,className:s("text-sm text-muted-foreground",e),...t}));Ae.displayName=f.Description.displayName;const Yt=g.Root,Xt=g.Trigger,$t=g.Group,Qt=g.Portal,Zt=g.Sub,Jt=g.RadioGroup,ze=i.forwardRef(({className:e,inset:t,children:r,...d},n)=>a.jsxs(g.SubTrigger,{ref:n,className:s("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...d,children:[r,a.jsx(z.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ze.displayName=g.SubTrigger.displayName;const je=i.forwardRef(({className:e,style:t,...r},d)=>a.jsx(g.SubContent,{ref:d,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),style:O("popover",t),...r}));je.displayName=g.SubContent.displayName;const Oe=i.forwardRef(({className:e,sideOffset:t=4,style:r,...d},n)=>a.jsx(g.Portal,{children:a.jsx(g.Content,{ref:n,sideOffset:t,className:s("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),style:O("popover",r),...d})}));Oe.displayName=g.Content.displayName;const Fe=i.forwardRef(({className:e,inset:t,...r},d)=>a.jsx(g.Item,{ref:d,className:s("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Fe.displayName=g.Item.displayName;const Ee=i.forwardRef(({className:e,children:t,checked:r,...d},n)=>a.jsxs(g.CheckboxItem,{ref:n,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...d,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(g.ItemIndicator,{children:a.jsx(z.Check,{className:"h-4 w-4"})})}),t]}));Ee.displayName=g.CheckboxItem.displayName;const Be=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(g.RadioItem,{ref:d,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(g.ItemIndicator,{children:a.jsx(z.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Be.displayName=g.RadioItem.displayName;const qe=i.forwardRef(({className:e,inset:t,...r},d)=>a.jsx(g.Label,{ref:d,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));qe.displayName=g.Label.displayName;const He=i.forwardRef(({className:e,...t},r)=>a.jsx(g.Separator,{ref:r,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));He.displayName=g.Separator.displayName;const Ve=({className:e,...t})=>a.jsx("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});Ve.displayName="DropdownMenuShortcut";const Ge=i.forwardRef(({eyebrow:e,title:t,description:r,actions:d,className:n,...l},m)=>a.jsxs("div",{ref:m,className:s("flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",n),...l,children:[a.jsxs("div",{className:"space-y-2",children:[e?a.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-muted-foreground",children:e}):null,a.jsxs("div",{className:"space-y-2",children:[a.jsx("h2",{className:"text-3xl font-semibold tracking-tight text-foreground sm:text-4xl",children:t}),r?a.jsx("p",{className:"max-w-2xl text-sm text-muted-foreground sm:text-base",children:r}):null]})]}),d?a.jsx("div",{className:"flex items-center gap-3",children:d}):null]}));Ge.displayName="SectionHeading";const Kt={complete:"border-success/40 bg-success/15 text-success-foreground",current:"border-primary/40 bg-primary/10 text-primary",upcoming:"border-outline/60 bg-surface-subtle text-muted-foreground"},Rt={complete:a.jsx(I,{variant:"success",children:"完了"}),current:a.jsx(I,{variant:"info",children:"進行中"}),upcoming:a.jsx(I,{variant:"neutral",children:"準備中"})},Ue=i.forwardRef(({steps:e,className:t,...r},d)=>a.jsx("ol",{ref:d,className:s("grid grid-cols-3 gap-3 rounded-xl border border-outline/60 bg-surface-subtle p-4 shadow-sm",t),...r,children:e.map(n=>{const l=n.state??"upcoming";return a.jsxs("li",{className:s("rounded-lg border p-4 transition-colors",Kt[l]),"data-state":l,children:[a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[a.jsx("span",{className:"text-sm font-semibold tracking-wide text-foreground",children:n.title}),Rt[l]]}),n.description?a.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:n.description}):null]},n.id)})}));Ue.displayName="StepIndicator";const We=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("animate-shimmer rounded-md bg-surface-subtle/80 bg-gradient-to-r from-surface-subtle via-surface-raised/80 to-surface-subtle",e),...t}));We.displayName="Skeleton";const Ye=v.Provider,Q=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Viewport,{ref:r,className:s("fixed left-4 right-4 bottom-4 z-[100] flex max-h-[calc(100vh-2rem)] flex-col gap-3 p-0 sm:left-auto sm:right-6 sm:bottom-6 sm:w-[380px]",e),...t}));Q.displayName=v.Viewport.displayName;const ea=C.cva("group pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-xl border p-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border-gray-200 bg-white text-gray-950 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-50",destructive:"destructive group border-red-500 bg-red-500 text-gray-50 dark:border-red-900 dark:bg-red-900 dark:text-gray-50",info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-900 dark:bg-blue-950 dark:text-blue-50",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-900 dark:bg-green-950 dark:text-green-50",warning:"border-yellow-200 bg-yellow-50 text-yellow-900 dark:border-yellow-900 dark:bg-yellow-950 dark:text-yellow-50",loading:"border-gray-200 bg-gray-50 text-gray-900 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-50 shadow-md animate-pulse"}},defaultVariants:{variant:"default"}}),Z=i.forwardRef(({className:e,variant:t,...r},d)=>a.jsx(v.Root,{ref:d,className:s(ea({variant:t}),e),...r}));Z.displayName=v.Root.displayName;const Xe=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Action,{ref:r,className:s("inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-full border border-outline/60 bg-transparent px-3 text-sm font-medium transition-colors hover:bg-foreground/10 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/40 group-[.destructive]:hover:bg-destructive/20 group-[.destructive]:focus:ring-destructive group-[.info]:border-info/50 group-[.success]:border-success/50 group-[.warning]:border-warning/60",e),...t}));Xe.displayName=v.Action.displayName;const J=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Close,{ref:r,className:s("shrink-0 rounded-full p-1.5 text-foreground/60 opacity-70 transition-opacity hover:opacity-100 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 group-[.destructive]:text-destructive-foreground group-[.destructive]:hover:text-destructive-foreground/80 group-[.info]:text-info-foreground group-[.success]:text-success-foreground group-[.warning]:text-warning-foreground",e),"toast-close":"",...t,children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:[a.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}));J.displayName=v.Close.displayName;const K=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Title,{ref:r,className:s("flex items-center gap-2 text-sm font-semibold",e),...t}));K.displayName=v.Title.displayName;const R=i.forwardRef(({className:e,...t},r)=>a.jsx(v.Description,{ref:r,className:s("text-sm text-foreground/80",e),...t}));R.displayName=v.Description.displayName;const ta=5,aa=5e3;let ee=0;function ra(){return ee=(ee+1)%Number.MAX_VALUE,ee.toString()}const te=new Map,$e=e=>{if(te.has(e))return;const t=setTimeout(()=>{te.delete(e),L({type:"REMOVE_TOAST",toastId:e})},aa);te.set(e,t)},oa=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ta)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?$e(r):e.toasts.forEach(d=>{$e(d.id)}),{...e,toasts:e.toasts.map(d=>d.id===r||r===void 0?{...d,open:!1}:d)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},E=[];let B={toasts:[]};function L(e){B=oa(B,e),E.forEach(t=>{t(B)})}function Qe({...e}){const t=ra(),r=n=>L({type:"UPDATE_TOAST",toast:{...n,id:t}}),d=()=>L({type:"DISMISS_TOAST",toastId:t});return L({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:n=>{n||d()}}}),{id:t,dismiss:d,update:r}}function Ze(){const[e,t]=i.useState(B);return i.useEffect(()=>(E.push(t),()=>{const r=E.indexOf(t);r>-1&&E.splice(r,1)}),[e]),{...e,toast:Qe,dismiss:r=>L({type:"DISMISS_TOAST",toastId:r})}}function sa(){const{toasts:e}=Ze();return a.jsxs(Ye,{children:[e.map(function({id:t,title:r,description:d,action:n,...l}){return a.jsxs(Z,{...l,children:[a.jsxs("div",{className:"grid gap-1 flex-1 min-w-0",children:[r&&a.jsx(K,{children:r}),d&&a.jsx(R,{children:d})]}),n,a.jsx(J,{})]},t)}),a.jsx(Q,{})]})}const da=C.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",info:"border-blue-500/50 text-blue-700 dark:border-blue-500 [&>svg]:text-blue-700 dark:text-blue-400 dark:[&>svg]:text-blue-400",success:"border-green-500/50 text-green-700 dark:border-green-500 [&>svg]:text-green-700 dark:text-green-400 dark:[&>svg]:text-green-400",warning:"border-yellow-500/50 text-yellow-700 dark:border-yellow-500 [&>svg]:text-yellow-700 dark:text-yellow-400 dark:[&>svg]:text-yellow-400"}},defaultVariants:{variant:"default"}}),Je=w.forwardRef(({className:e,variant:t,...r},d)=>a.jsx("div",{ref:d,role:"alert",className:s(da({variant:t}),e),...r}));Je.displayName="Alert";const Ke=w.forwardRef(({className:e,...t},r)=>a.jsx("h5",{ref:r,className:s("mb-1 font-medium leading-none tracking-tight",e),...t}));Ke.displayName="AlertTitle";const Re=w.forwardRef(({className:e,...t},r)=>a.jsx("div",{ref:r,className:s("text-sm [&_p]:leading-relaxed",e),...t}));Re.displayName="AlertDescription";const ia=N.Root,et=i.forwardRef(({className:e,...t},r)=>a.jsx(N.List,{ref:r,className:s("inline-flex h-10 items-center justify-center rounded-md bg-surface-raised p-1 text-muted-foreground border border-outline/20",e),...t}));et.displayName=N.List.displayName;const tt=i.forwardRef(({className:e,...t},r)=>a.jsx(N.Trigger,{ref:r,className:s("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","state-active:bg-background state-active:text-foreground state-active:font-semibold state-active:shadow-sm",e),...t}));tt.displayName=N.Trigger.displayName;const at=i.forwardRef(({className:e,...t},r)=>a.jsx(N.Content,{ref:r,className:s("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));at.displayName=N.Content.displayName;const na=()=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 shrink-0 transition-transform duration-200",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})}),la=T.Root,rt=i.forwardRef(({className:e,...t},r)=>a.jsx(T.Item,{ref:r,className:s("border-b",e),...t}));rt.displayName="AccordionItem";const ot=i.forwardRef(({className:e,children:t,...r},d)=>a.jsx(T.Header,{className:"flex",children:a.jsxs(T.Trigger,{ref:d,className:s("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,a.jsx(na,{})]})}));ot.displayName=T.Trigger.displayName;const st=i.forwardRef(({className:e,children:t,...r},d)=>a.jsx(T.Content,{ref:d,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:a.jsx("div",{className:s("pb-4 pt-0",e),children:t})}));st.displayName=T.Content.displayName;const ae="__EMPTY__";function ca({value:e="",onValueChange:t,options:r,placeholder:d="選択してください",emptyText:n="該当なし",className:l="",disabled:m=!1,allowCustom:c=!1}){const[p,b]=w.useState(!1),[x,k]=w.useState(e||""),H=r.some(y=>y.value===e),Da=()=>{c&&(p?(b(!1),x&&t&&t(x)):(b(!0),k(e||"")))},Pa=y=>{y==="__custom__"?(b(!0),k("")):t?.(y===ae?"":y)},_a=y=>{const kt=y.target.value;k(kt),t?.(kt)};if(p||c&&!H&&e)return a.jsxs("div",{className:`flex gap-2 ${l}`,children:[a.jsx(G,{value:x,onChange:_a,placeholder:d,disabled:m,className:"flex-1"}),c&&a.jsx("button",{type:"button",onClick:Da,className:"px-3 py-2 text-sm border border-gray-300 rounded hover:bg-gray-50",disabled:m,title:"プルダウンに戻る",children:"↓"})]});const Ma=e===""?ae:e;return a.jsx("div",{className:l,children:a.jsxs(Se,{value:Ma,onValueChange:Pa,disabled:m,children:[a.jsx(U,{className:"w-full",children:a.jsx(ke,{placeholder:d})}),a.jsx(X,{children:r.length===0?a.jsx("div",{className:"px-2 py-1.5 text-sm text-gray-500",children:n}):a.jsxs(a.Fragment,{children:[r.map(y=>a.jsx(F,{value:y.value===""?ae:y.value,children:y.label},y.value)),c&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"border-t my-1"}),a.jsx(F,{value:"__custom__",children:"✏️ 手動入力..."})]})]})})]})})}const fa={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-lg"},dt=i.forwardRef(({src:e,alt:t,size:r="md",fallback:d,className:n,...l},m)=>{const[c,p]=i.useState(!1),[b,x]=i.useState(!1);i.useEffect(()=>{p(!1),x(!1)},[e]);const k=e&&!c,H=!e||c||!b;return a.jsxs("div",{ref:m,className:s("relative inline-flex items-center justify-center overflow-hidden rounded-full bg-muted",fa[r],n),...l,children:[k&&a.jsx("img",{src:e,alt:t||"Avatar",className:s("h-full w-full object-cover",b?"opacity-100":"opacity-0"),onLoad:()=>x(!0),onError:()=>p(!0),loading:l.loading}),H&&d&&a.jsx("span",{className:"font-medium text-muted-foreground uppercase",children:d}),H&&!d&&a.jsx("svg",{className:"h-full w-full text-muted-foreground",fill:"currentColor",viewBox:"0 0 24 24",children:a.jsx("path",{d:"M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z"})})]})});dt.displayName="Avatar";const ga=_.Root,ua=_.Trigger,it=i.forwardRef(({className:e,align:t="center",sideOffset:r=4,...d},n)=>a.jsx(_.Portal,{children:a.jsx(_.Content,{ref:n,align:t,sideOffset:r,className:s("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...d})}));it.displayName=_.Content.displayName;const ma=C.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),nt=i.forwardRef(({className:e,...t},r)=>a.jsx(le.Root,{ref:r,className:s(ma(),e),...t}));nt.displayName=le.Root.displayName;const lt=i.forwardRef(({className:e,...t},r)=>a.jsx("textarea",{className:s("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));lt.displayName="Textarea";const ct=i.forwardRef(({className:e,...t},r)=>a.jsx(V.Root,{className:s("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-gray-900 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-gray-300 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-gray-50 dark:data-[state=unchecked]:bg-gray-600",e),...t,ref:r,children:a.jsx(V.Thumb,{className:s("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ct.displayName=V.Root.displayName;const pa=P.Provider,ba=P.Root,ha=P.Trigger,ft=i.forwardRef(({className:e,sideOffset:t=4,...r},d)=>a.jsx(P.Portal,{children:a.jsx(P.Content,{ref:d,sideOffset:t,className:s("z-50 overflow-hidden rounded-md bg-gray-900 px-3 py-1.5 text-xs text-gray-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:bg-gray-50 dark:text-gray-900",e),...r})}));ft.displayName=P.Content.displayName;const gt=i.forwardRef(({className:e,children:t,...r},d)=>a.jsxs(S.Root,{ref:d,className:s("relative overflow-hidden",e),...r,children:[a.jsx(S.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),a.jsx(re,{}),a.jsx(S.Corner,{})]}));gt.displayName=S.Root.displayName;const re=i.forwardRef(({className:e,orientation:t="vertical",...r},d)=>a.jsx(S.ScrollAreaScrollbar,{ref:d,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:a.jsx(S.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));re.displayName=S.ScrollAreaScrollbar.displayName;const va={sm:"h-4 w-4 border-2",md:"h-6 w-6 border-2",lg:"h-8 w-8 border-3",xl:"h-12 w-12 border-4"},ut=i.forwardRef(({size:e="md",className:t,...r},d)=>a.jsx("div",{ref:d,className:s("inline-block animate-spin rounded-full border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",va[e],t),role:"status",...r,children:a.jsx("span",{className:"sr-only",children:"Loading..."})}));ut.displayName="Spinner";const mt=i.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...d},n)=>a.jsx(ce.Root,{ref:n,decorative:r,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...d}));mt.displayName=ce.Root.displayName;const pt=i.forwardRef(({className:e,...t},r)=>a.jsxs(M.Root,{ref:r,className:s("relative flex w-full touch-none select-none items-center",e),...t,children:[a.jsx(M.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200 dark:bg-gray-800",children:a.jsx(M.Range,{className:"absolute h-full bg-gray-900 dark:bg-gray-50"})}),a.jsx(M.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-gray-900 bg-white ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:border-gray-50 dark:bg-gray-950 dark:ring-offset-gray-950 dark:focus-visible:ring-gray-300"})]}));pt.displayName=M.Root.displayName;const oe=i.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:"relative w-full overflow-auto",children:a.jsx("table",{ref:r,className:s("w-full caption-bottom text-sm",e),...t})}));oe.displayName="Table";const se=i.forwardRef(({className:e,...t},r)=>a.jsx("thead",{ref:r,className:s("[&_tr]:border-b",e),...t}));se.displayName="TableHeader";const de=i.forwardRef(({className:e,...t},r)=>a.jsx("tbody",{ref:r,className:s("[&_tr:last-child]:border-0",e),...t}));de.displayName="TableBody";const bt=i.forwardRef(({className:e,...t},r)=>a.jsx("tfoot",{ref:r,className:s("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));bt.displayName="TableFooter";const A=i.forwardRef(({className:e,...t},r)=>a.jsx("tr",{ref:r,className:s("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));A.displayName="TableRow";const ie=i.forwardRef(({className:e,...t},r)=>a.jsx("th",{ref:r,className:s("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));ie.displayName="TableHead";const q=i.forwardRef(({className:e,...t},r)=>a.jsx("td",{ref:r,className:s("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));q.displayName="TableCell";const ht=i.forwardRef(({className:e,...t},r)=>a.jsx("caption",{ref:r,className:s("mt-4 text-sm text-muted-foreground",e),...t}));ht.displayName="TableCaption";function ya({columns:e,data:t,onRowClick:r}){const[d,n]=i.useState([]),l=D.useReactTable({data:t,columns:e,getCoreRowModel:D.getCoreRowModel(),getPaginationRowModel:D.getPaginationRowModel(),onSortingChange:n,getSortedRowModel:D.getSortedRowModel(),state:{sorting:d}});return a.jsxs("div",{children:[a.jsx("div",{className:"rounded-md border",children:a.jsxs(oe,{children:[a.jsx(se,{children:l.getHeaderGroups().map(m=>a.jsx(A,{children:m.headers.map(c=>a.jsx(ie,{children:c.isPlaceholder?null:D.flexRender(c.column.columnDef.header,c.getContext())},c.id))},m.id))}),a.jsx(de,{children:l.getRowModel().rows?.length?l.getRowModel().rows.map(m=>a.jsx(A,{"data-state":m.getIsSelected()&&"selected",onClick:()=>r&&r(m.original),className:r?"cursor-pointer":"",children:m.getVisibleCells().map(c=>a.jsx(q,{children:D.flexRender(c.column.columnDef.cell,c.getContext())},c.id))},m.id)):a.jsx(A,{children:a.jsx(q,{colSpan:e.length,className:"h-24 text-center",children:"No results."})})})]})}),a.jsxs("div",{className:"flex items-center justify-end space-x-2 py-4",children:[a.jsx(j,{variant:"outline",size:"sm",onClick:()=>l.previousPage(),disabled:!l.getCanPreviousPage(),children:"Previous"}),a.jsx(j,{variant:"outline",size:"sm",onClick:()=>l.nextPage(),disabled:!l.getCanNextPage(),children:"Next"})]})]})}const wa=f.Root,xa=f.Trigger,Na=f.Close,vt=f.Portal,ne=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Overlay,{className:s("fixed top-0 right-0 bottom-0 left-0 z-50 bg-black/80 state-open:animate-fade-in state-closed:animate-fade-out",e),...t,ref:r}));ne.displayName=f.Overlay.displayName;const Ta=C.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out state-closed:duration-300 state-open:duration-500",{variants:{side:{top:"left-0 right-0 top-0 border-b state-closed:animate-slide-out-left state-open:animate-slide-in-left",bottom:"left-0 right-0 bottom-0 border-t state-closed:animate-slide-out-left state-open:animate-slide-in-left",left:"top-0 bottom-0 left-0 h-full w-3/4 border-r state-closed:animate-slide-out-left state-open:animate-slide-in-left sm:max-w-sm",right:"top-0 bottom-0 right-0 h-full w-3/4 border-l state-closed:animate-slide-out-right state-open:animate-slide-in-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),yt=i.forwardRef(({side:e="right",className:t,children:r,...d},n)=>a.jsxs(vt,{children:[a.jsx(ne,{}),a.jsxs(f.Content,{ref:n,className:s(Ta({side:e}),t),...d,children:[a.jsxs(f.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[a.jsx(z.X,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));yt.displayName=f.Content.displayName;const wt=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col space-y-2 text-center sm:text-left",e),...t});wt.displayName="SheetHeader";const xt=({className:e,...t})=>a.jsx("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xt.displayName="SheetFooter";const Nt=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Title,{ref:r,className:s("text-lg font-semibold text-foreground",e),...t}));Nt.displayName=f.Title.displayName;const Tt=i.forwardRef(({className:e,...t},r)=>a.jsx(f.Description,{ref:r,className:s("text-sm text-muted-foreground",e),...t}));Tt.displayName=f.Description.displayName;const Sa={theme:"system",setTheme:()=>null},St=w.createContext(Sa);function ka({children:e,defaultTheme:t="system",storageKey:r="mirel-ui-theme",...d}){const[n,l]=w.useState(()=>localStorage.getItem(r)||t);w.useEffect(()=>{const c=window.document.documentElement;if(c.classList.remove("light","dark"),n==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),b=p.matches?"dark":"light";c.classList.add(b);const x=()=>{c.classList.remove("light","dark");const k=p.matches?"dark":"light";c.classList.add(k)};return p.addEventListener("change",x),()=>p.removeEventListener("change",x)}c.classList.add(n)},[n]);const m={theme:n,setTheme:c=>{localStorage.setItem(r,c),l(c)}};return a.jsx(St.Provider,{...d,value:m,children:e})}const Ca=()=>{const e=w.useContext(St);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};o.Accordion=la,o.AccordionContent=st,o.AccordionItem=rt,o.AccordionTrigger=ot,o.Alert=Je,o.AlertDescription=Re,o.AlertTitle=Ke,o.Avatar=dt,o.Badge=I,o.Button=j,o.Card=ge,o.CardContent=be,o.CardDescription=pe,o.CardFooter=he,o.CardHeader=ue,o.CardTitle=me,o.Combobox=ca,o.DataTable=ya,o.Dialog=Gt,o.DialogClose=Wt,o.DialogContent=_e,o.DialogDescription=Ae,o.DialogFooter=Ie,o.DialogHeader=Me,o.DialogOverlay=$,o.DialogPortal=Pe,o.DialogTitle=Le,o.DialogTrigger=Ut,o.DropdownMenu=Yt,o.DropdownMenuCheckboxItem=Ee,o.DropdownMenuContent=Oe,o.DropdownMenuGroup=$t,o.DropdownMenuItem=Fe,o.DropdownMenuLabel=qe,o.DropdownMenuPortal=Qt,o.DropdownMenuRadioGroup=Jt,o.DropdownMenuRadioItem=Be,o.DropdownMenuSeparator=He,o.DropdownMenuShortcut=Ve,o.DropdownMenuSub=Zt,o.DropdownMenuSubContent=je,o.DropdownMenuSubTrigger=ze,o.DropdownMenuTrigger=Xt,o.FormError=Ne,o.FormField=ye,o.FormHelper=xe,o.FormLabel=we,o.FormRequiredMark=Te,o.Input=G,o.Label=nt,o.Popover=ga,o.PopoverContent=it,o.PopoverTrigger=ua,o.ScrollArea=gt,o.ScrollBar=re,o.SectionHeading=Ge,o.Select=Se,o.SelectContent=X,o.SelectGroup=Vt,o.SelectItem=F,o.SelectLabel=Ce,o.SelectScrollDownButton=Y,o.SelectScrollUpButton=W,o.SelectSeparator=De,o.SelectTrigger=U,o.SelectValue=ke,o.Separator=mt,o.Sheet=wa,o.SheetClose=Na,o.SheetContent=yt,o.SheetDescription=Tt,o.SheetFooter=xt,o.SheetHeader=wt,o.SheetOverlay=ne,o.SheetPortal=vt,o.SheetTitle=Nt,o.SheetTrigger=xa,o.Skeleton=We,o.Slider=pt,o.Spinner=ut,o.StepIndicator=Ue,o.Switch=ct,o.Table=oe,o.TableBody=de,o.TableCaption=ht,o.TableCell=q,o.TableFooter=bt,o.TableHead=ie,o.TableHeader=se,o.TableRow=A,o.Tabs=ia,o.TabsContent=at,o.TabsList=et,o.TabsTrigger=tt,o.Textarea=lt,o.ThemeProvider=ka,o.Toast=Z,o.ToastAction=Xe,o.ToastClose=J,o.ToastDescription=R,o.ToastProvider=Ye,o.ToastTitle=K,o.ToastViewport=Q,o.Toaster=sa,o.Tooltip=ba,o.TooltipContent=ft,o.TooltipProvider=pa,o.TooltipTrigger=ha,o.badgeVariants=ve,o.buttonVariants=fe,o.cn=s,o.toast=Qe,o.useTheme=Ca,o.useToast=Ze,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mireljs/ui-core",
3
- "version": "3.2.11",
3
+ "version": "3.2.13",
4
4
  "description": "mirel Design System - shadcn/ui + Radix UI wrapper",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,15 +75,15 @@
75
75
  "devDependencies": {
76
76
  "@testing-library/jest-dom": "^6.9.1",
77
77
  "@testing-library/react": "^16.3.1",
78
- "@types/node": "^22.10.2",
79
- "@types/react": "^19.2.7",
78
+ "@types/node": "^25.0.5",
79
+ "@types/react": "^19.2.8",
80
80
  "@types/react-dom": "^19.2.3",
81
- "happy-dom": "^20.0.11",
81
+ "happy-dom": "^20.1.0",
82
82
  "postcss": "^8.5.6",
83
83
  "typescript": "^5.9.3",
84
- "vite": "^6.0.3",
85
- "vite-plugin-dts": "^4.3.0",
86
- "@vitejs/plugin-react": "^4.3.4",
84
+ "vite": "^7.3.1",
85
+ "vite-plugin-dts": "^4.5.4",
86
+ "@vitejs/plugin-react": "^5.1.2",
87
87
  "vitest": "^4.0.16"
88
88
  }
89
89
  }