@cakejp/design-system 0.19.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/CLAUDE.md +1 -0
- package/bin/init.js +191 -28
- package/contracts/components.json +43 -7
- package/contracts/composition.json +1 -1
- package/contracts/rules.json +1 -1
- package/contracts/screen-patterns.json +1 -1
- package/dist/components/ec/order-summary.js +16 -15
- package/dist/components/ec/product-card.js +1 -1
- package/dist/components/foundations/alert-dialog.js +7 -7
- package/dist/components/foundations/data-table.js +490 -16
- package/dist/components/foundations/dialog.js +13 -13
- package/dist/components/foundations/drawer.js +5 -5
- package/dist/components/foundations/sheet.js +7 -7
- package/dist/components/primitives/admin-header.js +1 -1
- package/dist/components/primitives/admin-side-nav.js +195 -86
- package/dist/components/primitives/bottom-tab-bar.js +20 -20
- package/dist/components/primitives/header.js +43 -37
- package/dist/components/primitives/image-uploader.js +40 -19
- package/dist/components/primitives/sticky-action-bar.js +2 -1
- package/dist/index.css +1 -1
- package/dist/index.js +817 -476
- package/dist/types/components/primitives/admin-side-nav.d.ts +3 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/lib/link-component.d.ts +9 -0
- package/package.json +2 -2
- package/src/components/COMPONENT_LOOKUP.md +2 -2
- package/src/preset-standalone.css +2 -0
- package/src/preset.css +13 -3
- package/src/styles/semantic.css +10 -0
- package/templates/AGENTS.md +4 -2
- package/templates/AGENTS.stub.md +25 -0
- package/templates/CLAUDE.md +4 -2
- package/templates/CLAUDE.stub.md +25 -0
- package/tokens.json +9 -0
|
@@ -1,25 +1,61 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import { cva as
|
|
4
|
-
import "iconsax-reactjs/dist/esm/ArrowSwapVertical.js";
|
|
5
|
-
import "iconsax-reactjs/dist/esm/ArrowUp.js";
|
|
6
|
-
import "iconsax-reactjs/dist/esm/ArrowDown.js";
|
|
7
|
-
import "iconsax-reactjs/dist/esm/ArrowDown2.js";
|
|
8
|
-
import "iconsax-reactjs/dist/esm/More.js";
|
|
9
|
-
import "iconsax-reactjs/dist/esm/Add.js";
|
|
10
|
-
import "iconsax-reactjs/dist/esm/ExportSquare.js";
|
|
11
|
-
import { cn as
|
|
12
|
-
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import { cva as p } from "class-variance-authority";
|
|
4
|
+
import x from "iconsax-reactjs/dist/esm/ArrowSwapVertical.js";
|
|
5
|
+
import f from "iconsax-reactjs/dist/esm/ArrowUp.js";
|
|
6
|
+
import v from "iconsax-reactjs/dist/esm/ArrowDown.js";
|
|
7
|
+
import g from "iconsax-reactjs/dist/esm/ArrowDown2.js";
|
|
8
|
+
import w from "iconsax-reactjs/dist/esm/More.js";
|
|
9
|
+
import y from "iconsax-reactjs/dist/esm/Add.js";
|
|
10
|
+
import N from "iconsax-reactjs/dist/esm/ExportSquare.js";
|
|
11
|
+
import { cn as i } from "../../lib/utils.js";
|
|
12
|
+
import { FOCUS_RING as T } from "../../lib/focus-ring.js";
|
|
13
|
+
import { Checkbox as C } from "./checkbox.js";
|
|
14
|
+
import { Button as E } from "./button.js";
|
|
15
|
+
import { Avatar as S, AvatarImage as D, AvatarFallback as k } from "./avatar.js";
|
|
16
|
+
import { Select as A, SelectTrigger as L, SelectValue as _, SelectContent as B, SelectItem as H } from "./select.js";
|
|
17
|
+
import { DropdownMenu as z, DropdownMenuTrigger as M, DropdownMenuContent as P, DropdownMenuSeparator as I, DropdownMenuItem as R } from "./dropdown-menu.js";
|
|
18
|
+
function te({ className: r, ...a }) {
|
|
13
19
|
return /* @__PURE__ */ e(
|
|
14
20
|
"div",
|
|
15
21
|
{
|
|
16
22
|
"data-slot": "data-table",
|
|
17
|
-
className:
|
|
23
|
+
className: i("relative w-full overflow-x-auto rounded-lg border border-[var(--Border-Low-Emphasis)]", r),
|
|
18
24
|
...a
|
|
19
25
|
}
|
|
20
26
|
);
|
|
21
27
|
}
|
|
22
|
-
r
|
|
28
|
+
function le({ className: r, ...a }) {
|
|
29
|
+
return /* @__PURE__ */ e(
|
|
30
|
+
"table",
|
|
31
|
+
{
|
|
32
|
+
"data-slot": "data-table-table",
|
|
33
|
+
className: i("w-full caption-bottom typo-body-md border-collapse", r),
|
|
34
|
+
...a
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function ne({ className: r, ...a }) {
|
|
39
|
+
return /* @__PURE__ */ e(
|
|
40
|
+
"thead",
|
|
41
|
+
{
|
|
42
|
+
"data-slot": "data-table-header",
|
|
43
|
+
className: i("bg-[var(--Surface-Secondary)] [&_tr]:border-b [&_tr]:border-[var(--Border-Low-Emphasis)]", r),
|
|
44
|
+
...a
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function ie({ className: r, ...a }) {
|
|
49
|
+
return /* @__PURE__ */ e(
|
|
50
|
+
"tbody",
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "data-table-body",
|
|
53
|
+
className: i("[&_tr:last-child]:border-b-0", r),
|
|
54
|
+
...a
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
const V = p(
|
|
23
59
|
"group/row border-b border-[var(--Border-Low-Emphasis)] transition-colors",
|
|
24
60
|
{
|
|
25
61
|
variants: {
|
|
@@ -33,7 +69,80 @@ r(
|
|
|
33
69
|
}
|
|
34
70
|
}
|
|
35
71
|
);
|
|
36
|
-
|
|
72
|
+
function oe({
|
|
73
|
+
className: r,
|
|
74
|
+
state: a,
|
|
75
|
+
...t
|
|
76
|
+
}) {
|
|
77
|
+
return /* @__PURE__ */ e(
|
|
78
|
+
"tr",
|
|
79
|
+
{
|
|
80
|
+
"data-slot": "data-table-row",
|
|
81
|
+
className: i(V({ state: a }), r),
|
|
82
|
+
...t
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
function se({
|
|
87
|
+
className: r,
|
|
88
|
+
sortable: a,
|
|
89
|
+
sortDirection: t,
|
|
90
|
+
onSort: n,
|
|
91
|
+
width: l,
|
|
92
|
+
srLabel: o,
|
|
93
|
+
children: c,
|
|
94
|
+
...d
|
|
95
|
+
}) {
|
|
96
|
+
const h = t === "asc" ? f : t === "desc" ? v : x, u = t === "asc" ? "ascending" : t === "desc" ? "descending" : "none";
|
|
97
|
+
return /* @__PURE__ */ s(
|
|
98
|
+
"th",
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "data-table-head",
|
|
101
|
+
className: i(
|
|
102
|
+
"h-16 px-4 text-left align-middle typo-label-sm whitespace-nowrap text-[var(--Text-Medium-Emphasis)]",
|
|
103
|
+
"[&:has([role=checkbox])]:w-12 [&:has([role=checkbox])]:pr-0",
|
|
104
|
+
a && "hover:bg-[var(--Surface-Tertiary)]",
|
|
105
|
+
l === "max" && "min-w-[320px] max-w-[360px]",
|
|
106
|
+
l === "hug" && "min-w-0 w-0",
|
|
107
|
+
r
|
|
108
|
+
),
|
|
109
|
+
"aria-sort": a ? u : void 0,
|
|
110
|
+
...d,
|
|
111
|
+
children: [
|
|
112
|
+
a ? (
|
|
113
|
+
// th の onClick はマウスにしか届かない(キーボードで到達できず role も無い)。
|
|
114
|
+
// 本物の <button> にして Tab / Enter / Space で並び替えられるようにする。
|
|
115
|
+
/* @__PURE__ */ s(
|
|
116
|
+
"button",
|
|
117
|
+
{
|
|
118
|
+
type: "button",
|
|
119
|
+
onClick: n,
|
|
120
|
+
className: i(
|
|
121
|
+
"inline-flex items-center gap-1 rounded-sm outline-none",
|
|
122
|
+
"cursor-pointer select-none",
|
|
123
|
+
T,
|
|
124
|
+
t && "typo-label-sm font-bold text-[var(--Text-High-Emphasis)]"
|
|
125
|
+
),
|
|
126
|
+
children: [
|
|
127
|
+
c,
|
|
128
|
+
/* @__PURE__ */ e(
|
|
129
|
+
h,
|
|
130
|
+
{
|
|
131
|
+
size: 14,
|
|
132
|
+
"aria-hidden": "true",
|
|
133
|
+
className: i(t ? "text-[var(--Text-High-Emphasis)]" : "text-[var(--Text-Low-Emphasis)]")
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
) : c,
|
|
140
|
+
o && /* @__PURE__ */ e("span", { className: "sr-only", children: o })
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
const j = p(
|
|
37
146
|
"px-4 py-4 align-middle whitespace-nowrap typo-body-md text-[var(--Text-High-Emphasis)] [&:has([role=checkbox])]:w-12 [&:has([role=checkbox])]:pr-0",
|
|
38
147
|
{
|
|
39
148
|
variants: {
|
|
@@ -54,6 +163,371 @@ r(
|
|
|
54
163
|
}
|
|
55
164
|
}
|
|
56
165
|
);
|
|
166
|
+
function m({
|
|
167
|
+
className: r,
|
|
168
|
+
width: a,
|
|
169
|
+
align: t,
|
|
170
|
+
...n
|
|
171
|
+
}) {
|
|
172
|
+
return /* @__PURE__ */ e(
|
|
173
|
+
"td",
|
|
174
|
+
{
|
|
175
|
+
"data-slot": "data-table-cell",
|
|
176
|
+
className: i(j({ width: a, align: t }), r),
|
|
177
|
+
...n
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
function ce({
|
|
182
|
+
className: r,
|
|
183
|
+
src: a,
|
|
184
|
+
fallback: t,
|
|
185
|
+
title: n,
|
|
186
|
+
caption: l,
|
|
187
|
+
...o
|
|
188
|
+
}) {
|
|
189
|
+
return /* @__PURE__ */ e(m, { className: i("min-w-[200px]", r), ...o, children: /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
190
|
+
/* @__PURE__ */ s(S, { children: [
|
|
191
|
+
a && /* @__PURE__ */ e(D, { src: a, alt: n }),
|
|
192
|
+
/* @__PURE__ */ e(k, { children: t || n.charAt(0) })
|
|
193
|
+
] }),
|
|
194
|
+
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
195
|
+
/* @__PURE__ */ e("p", { className: "typo-label-sm text-[var(--Text-High-Emphasis)] truncate", children: n }),
|
|
196
|
+
l && /* @__PURE__ */ e("p", { className: "typo-body-xs text-[var(--Text-Low-Emphasis)] truncate", children: l })
|
|
197
|
+
] })
|
|
198
|
+
] }) });
|
|
199
|
+
}
|
|
200
|
+
function de({
|
|
201
|
+
className: r,
|
|
202
|
+
checked: a,
|
|
203
|
+
onCheckedChange: t,
|
|
204
|
+
indeterminate: n,
|
|
205
|
+
"aria-label": l,
|
|
206
|
+
...o
|
|
207
|
+
}) {
|
|
208
|
+
return /* @__PURE__ */ e(
|
|
209
|
+
"td",
|
|
210
|
+
{
|
|
211
|
+
"data-slot": "data-table-checkbox-cell",
|
|
212
|
+
className: i("w-16 px-4 py-4 align-middle cursor-pointer", r),
|
|
213
|
+
onClick: (c) => {
|
|
214
|
+
c.stopPropagation(), t?.(!(!n && a));
|
|
215
|
+
},
|
|
216
|
+
...o,
|
|
217
|
+
children: /* @__PURE__ */ e(
|
|
218
|
+
C,
|
|
219
|
+
{
|
|
220
|
+
checked: n ? "indeterminate" : a,
|
|
221
|
+
onCheckedChange: (c) => t?.(c === !0),
|
|
222
|
+
onClick: (c) => c.stopPropagation(),
|
|
223
|
+
"aria-label": l || "行を選択",
|
|
224
|
+
className: "pointer-events-none"
|
|
225
|
+
}
|
|
226
|
+
)
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
function me({
|
|
231
|
+
className: r,
|
|
232
|
+
actions: a,
|
|
233
|
+
onClick: t,
|
|
234
|
+
...n
|
|
235
|
+
}) {
|
|
236
|
+
return /* @__PURE__ */ e(
|
|
237
|
+
m,
|
|
238
|
+
{
|
|
239
|
+
className: i("w-10", r),
|
|
240
|
+
onClick: (l) => {
|
|
241
|
+
l.stopPropagation(), t?.(l);
|
|
242
|
+
},
|
|
243
|
+
...n,
|
|
244
|
+
children: /* @__PURE__ */ s(z, { children: [
|
|
245
|
+
/* @__PURE__ */ e(M, { asChild: !0, children: /* @__PURE__ */ e(E, { variant: "ghost", size: "sm", className: "size-8 p-0", "aria-label": "アクションメニュー", children: /* @__PURE__ */ e(w, { size: 16 }) }) }),
|
|
246
|
+
/* @__PURE__ */ e(P, { align: "end", children: a.map((l, o) => /* @__PURE__ */ s(b.Fragment, { children: [
|
|
247
|
+
l.separator && /* @__PURE__ */ e(I, {}),
|
|
248
|
+
/* @__PURE__ */ e(
|
|
249
|
+
R,
|
|
250
|
+
{
|
|
251
|
+
onClick: l.onClick,
|
|
252
|
+
variant: l.destructive ? "destructive" : "default",
|
|
253
|
+
children: l.label
|
|
254
|
+
}
|
|
255
|
+
)
|
|
256
|
+
] }, o)) })
|
|
257
|
+
] })
|
|
258
|
+
}
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
function pe({
|
|
262
|
+
className: r,
|
|
263
|
+
selectedCount: a,
|
|
264
|
+
children: t,
|
|
265
|
+
...n
|
|
266
|
+
}) {
|
|
267
|
+
return a === 0 ? null : /* @__PURE__ */ s(
|
|
268
|
+
"div",
|
|
269
|
+
{
|
|
270
|
+
"data-slot": "data-table-bulk-actions",
|
|
271
|
+
className: i(
|
|
272
|
+
"flex items-center gap-3 px-4 py-3 bg-[var(--Surface-Accent-Primary-Light)] border-b border-[var(--Border-Low-Emphasis)]",
|
|
273
|
+
r
|
|
274
|
+
),
|
|
275
|
+
...n,
|
|
276
|
+
children: [
|
|
277
|
+
/* @__PURE__ */ s("span", { className: "typo-label-sm text-[var(--Text-High-Emphasis)]", children: [
|
|
278
|
+
a,
|
|
279
|
+
"件を選択中"
|
|
280
|
+
] }),
|
|
281
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: t })
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
function he({
|
|
287
|
+
className: r,
|
|
288
|
+
title: a,
|
|
289
|
+
colSpan: t,
|
|
290
|
+
expanded: n,
|
|
291
|
+
onToggle: l,
|
|
292
|
+
actions: o,
|
|
293
|
+
...c
|
|
294
|
+
}) {
|
|
295
|
+
return /* @__PURE__ */ e(
|
|
296
|
+
"tr",
|
|
297
|
+
{
|
|
298
|
+
"data-slot": "data-table-section-row",
|
|
299
|
+
className: i("border-b border-[var(--Border-Low-Emphasis)] bg-[var(--Surface-Secondary)]", r),
|
|
300
|
+
...c,
|
|
301
|
+
children: /* @__PURE__ */ e("td", { colSpan: t, className: "px-4 py-3", children: /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
302
|
+
/* @__PURE__ */ s(
|
|
303
|
+
"button",
|
|
304
|
+
{
|
|
305
|
+
type: "button",
|
|
306
|
+
className: "flex items-center gap-1.5 typo-label-md text-[var(--Text-High-Emphasis)] cursor-pointer",
|
|
307
|
+
onClick: l,
|
|
308
|
+
"aria-expanded": n,
|
|
309
|
+
children: [
|
|
310
|
+
/* @__PURE__ */ e(g, { size: 16, className: i("transition-transform", n ? "" : "-rotate-90") }),
|
|
311
|
+
a
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
),
|
|
315
|
+
o && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: o })
|
|
316
|
+
] }) })
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
function ue({
|
|
321
|
+
className: r,
|
|
322
|
+
colSpan: a,
|
|
323
|
+
label: t = "新しく追加",
|
|
324
|
+
onClick: n,
|
|
325
|
+
...l
|
|
326
|
+
}) {
|
|
327
|
+
return /* @__PURE__ */ e(
|
|
328
|
+
"tr",
|
|
329
|
+
{
|
|
330
|
+
"data-slot": "data-table-add-row",
|
|
331
|
+
className: i("border-b border-[var(--Border-Low-Emphasis)] hover:bg-[var(--Surface-Tertiary)] cursor-pointer transition-colors", r),
|
|
332
|
+
onClick: n,
|
|
333
|
+
...l,
|
|
334
|
+
children: /* @__PURE__ */ e("td", { colSpan: a, className: "px-4 py-4", children: /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-2 typo-body-md text-[var(--Text-Medium-Emphasis)]", children: [
|
|
335
|
+
/* @__PURE__ */ e(y, { size: 16 }),
|
|
336
|
+
t
|
|
337
|
+
] }) })
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
function be({
|
|
342
|
+
className: r,
|
|
343
|
+
colSpan: a,
|
|
344
|
+
message: t = "対象のデータはありません",
|
|
345
|
+
icon: n,
|
|
346
|
+
description: l,
|
|
347
|
+
action: o,
|
|
348
|
+
...c
|
|
349
|
+
}) {
|
|
350
|
+
return /* @__PURE__ */ e(
|
|
351
|
+
"tr",
|
|
352
|
+
{
|
|
353
|
+
"data-slot": "data-table-empty-state",
|
|
354
|
+
className: i("", r),
|
|
355
|
+
...c,
|
|
356
|
+
children: /* @__PURE__ */ e("td", { colSpan: a, children: n ? /* @__PURE__ */ s("div", { className: "flex flex-col items-center justify-center px-4 py-16", children: [
|
|
357
|
+
/* @__PURE__ */ e("div", { className: "text-[var(--Border-Medium-Emphasis)]", children: n }),
|
|
358
|
+
/* @__PURE__ */ e("p", { className: "mt-4 typo-heading-md text-[var(--Text-High-Emphasis)]", children: t }),
|
|
359
|
+
l && /* @__PURE__ */ e("div", { className: "mt-1 text-center typo-body-md text-[var(--Text-Medium-Emphasis)]", children: l }),
|
|
360
|
+
o && /* @__PURE__ */ e("div", { className: "mt-6", children: o })
|
|
361
|
+
] }) : /* @__PURE__ */ e("p", { className: "py-12 text-center typo-body-md text-[var(--Text-Low-Emphasis)]", children: t }) })
|
|
362
|
+
}
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
function xe({
|
|
366
|
+
className: r,
|
|
367
|
+
src: a,
|
|
368
|
+
alt: t,
|
|
369
|
+
title: n,
|
|
370
|
+
caption: l,
|
|
371
|
+
...o
|
|
372
|
+
}) {
|
|
373
|
+
return /* @__PURE__ */ e(m, { className: i("min-w-[200px]", r), ...o, children: /* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
374
|
+
/* @__PURE__ */ e("div", { className: "size-10 rounded-lg bg-[var(--Surface-Tertiary)] overflow-hidden shrink-0", children: a && /* @__PURE__ */ e(
|
|
375
|
+
"img",
|
|
376
|
+
{
|
|
377
|
+
src: a,
|
|
378
|
+
alt: t || n,
|
|
379
|
+
className: "size-full object-cover",
|
|
380
|
+
loading: "lazy"
|
|
381
|
+
}
|
|
382
|
+
) }),
|
|
383
|
+
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
384
|
+
/* @__PURE__ */ e("p", { className: "typo-body-md text-[var(--Text-High-Emphasis)] line-clamp-2", children: n }),
|
|
385
|
+
l && /* @__PURE__ */ e("p", { className: "typo-body-xs text-[var(--Text-Low-Emphasis)] truncate", children: l })
|
|
386
|
+
] })
|
|
387
|
+
] }) });
|
|
388
|
+
}
|
|
389
|
+
function fe({
|
|
390
|
+
className: r,
|
|
391
|
+
...a
|
|
392
|
+
}) {
|
|
393
|
+
return /* @__PURE__ */ e(
|
|
394
|
+
"td",
|
|
395
|
+
{
|
|
396
|
+
"data-slot": "data-table-drag-handle-cell",
|
|
397
|
+
className: i("w-10 px-2 py-4 align-middle cursor-grab active:cursor-grabbing", r),
|
|
398
|
+
...a,
|
|
399
|
+
children: /* @__PURE__ */ s(
|
|
400
|
+
"svg",
|
|
401
|
+
{
|
|
402
|
+
width: "16",
|
|
403
|
+
height: "16",
|
|
404
|
+
viewBox: "0 0 16 16",
|
|
405
|
+
fill: "none",
|
|
406
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
407
|
+
className: "text-[var(--Text-Low-Emphasis)]",
|
|
408
|
+
"aria-hidden": "true",
|
|
409
|
+
children: [
|
|
410
|
+
/* @__PURE__ */ e("circle", { cx: "6", cy: "3", r: "1.5", fill: "currentColor" }),
|
|
411
|
+
/* @__PURE__ */ e("circle", { cx: "10", cy: "3", r: "1.5", fill: "currentColor" }),
|
|
412
|
+
/* @__PURE__ */ e("circle", { cx: "6", cy: "8", r: "1.5", fill: "currentColor" }),
|
|
413
|
+
/* @__PURE__ */ e("circle", { cx: "10", cy: "8", r: "1.5", fill: "currentColor" }),
|
|
414
|
+
/* @__PURE__ */ e("circle", { cx: "6", cy: "13", r: "1.5", fill: "currentColor" }),
|
|
415
|
+
/* @__PURE__ */ e("circle", { cx: "10", cy: "13", r: "1.5", fill: "currentColor" })
|
|
416
|
+
]
|
|
417
|
+
}
|
|
418
|
+
)
|
|
419
|
+
}
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
function ve({
|
|
423
|
+
className: r,
|
|
424
|
+
href: a = "#",
|
|
425
|
+
external: t,
|
|
426
|
+
children: n,
|
|
427
|
+
...l
|
|
428
|
+
}) {
|
|
429
|
+
return /* @__PURE__ */ e(m, { className: r, ...l, children: /* @__PURE__ */ s(
|
|
430
|
+
"a",
|
|
431
|
+
{
|
|
432
|
+
href: a,
|
|
433
|
+
className: "inline-flex items-center gap-1 typo-body-md text-[var(--Text-Accent-Primary)] hover:underline",
|
|
434
|
+
...t ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
435
|
+
children: [
|
|
436
|
+
n,
|
|
437
|
+
t && /* @__PURE__ */ e(N, { size: 14 })
|
|
438
|
+
]
|
|
439
|
+
}
|
|
440
|
+
) });
|
|
441
|
+
}
|
|
442
|
+
function ge({
|
|
443
|
+
className: r,
|
|
444
|
+
value: a,
|
|
445
|
+
onChange: t,
|
|
446
|
+
placeholder: n,
|
|
447
|
+
type: l = "text",
|
|
448
|
+
name: o,
|
|
449
|
+
...c
|
|
450
|
+
}) {
|
|
451
|
+
return /* @__PURE__ */ e(
|
|
452
|
+
"td",
|
|
453
|
+
{
|
|
454
|
+
"data-slot": "data-table-input-cell",
|
|
455
|
+
className: i(
|
|
456
|
+
"px-4 py-4 align-middle whitespace-nowrap",
|
|
457
|
+
"hover:shadow-[inset_0_0_0_2px_var(--Border-Accent-Primary)] hover:rounded",
|
|
458
|
+
"has-[input:focus]:shadow-[inset_0_0_0_2px_var(--Border-Accent-Primary)] has-[input:focus]:rounded",
|
|
459
|
+
r
|
|
460
|
+
),
|
|
461
|
+
...c,
|
|
462
|
+
children: /* @__PURE__ */ e(
|
|
463
|
+
"input",
|
|
464
|
+
{
|
|
465
|
+
type: l,
|
|
466
|
+
name: o,
|
|
467
|
+
value: a,
|
|
468
|
+
onChange: (d) => t?.(d.target.value),
|
|
469
|
+
placeholder: n,
|
|
470
|
+
className: "w-full bg-transparent outline-none typo-body-md text-[var(--Text-High-Emphasis)] placeholder:text-[var(--Text-Low-Emphasis)]"
|
|
471
|
+
}
|
|
472
|
+
)
|
|
473
|
+
}
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
function we({
|
|
477
|
+
className: r,
|
|
478
|
+
value: a,
|
|
479
|
+
onValueChange: t,
|
|
480
|
+
options: n,
|
|
481
|
+
placeholder: l = "選択してください",
|
|
482
|
+
"aria-label": o,
|
|
483
|
+
...c
|
|
484
|
+
}) {
|
|
485
|
+
return /* @__PURE__ */ e(
|
|
486
|
+
m,
|
|
487
|
+
{
|
|
488
|
+
className: i("hover:bg-[var(--Surface-Tertiary)] cursor-pointer p-0", r),
|
|
489
|
+
...c,
|
|
490
|
+
children: /* @__PURE__ */ s(A, { value: a, onValueChange: t, children: [
|
|
491
|
+
/* @__PURE__ */ e(
|
|
492
|
+
L,
|
|
493
|
+
{
|
|
494
|
+
size: "sm",
|
|
495
|
+
"aria-label": o ?? l,
|
|
496
|
+
className: "w-full min-w-[160px] border-0 bg-transparent rounded-none px-4 py-4 h-auto hover:bg-transparent focus-visible:ring-0 focus-visible:border-0",
|
|
497
|
+
children: /* @__PURE__ */ e(_, { placeholder: l })
|
|
498
|
+
}
|
|
499
|
+
),
|
|
500
|
+
/* @__PURE__ */ e(B, { children: n.map((d) => /* @__PURE__ */ e(H, { value: d.value, children: d.label }, d.value)) })
|
|
501
|
+
] })
|
|
502
|
+
}
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
function ye({
|
|
506
|
+
className: r,
|
|
507
|
+
children: a,
|
|
508
|
+
...t
|
|
509
|
+
}) {
|
|
510
|
+
return /* @__PURE__ */ e(m, { align: "right", className: r, ...t, children: a });
|
|
511
|
+
}
|
|
57
512
|
export {
|
|
58
|
-
|
|
513
|
+
te as DataTable,
|
|
514
|
+
me as DataTableActionCell,
|
|
515
|
+
ue as DataTableAddRow,
|
|
516
|
+
ce as DataTableAvatarCell,
|
|
517
|
+
ie as DataTableBody,
|
|
518
|
+
pe as DataTableBulkActions,
|
|
519
|
+
m as DataTableCell,
|
|
520
|
+
de as DataTableCheckboxCell,
|
|
521
|
+
fe as DataTableDragHandleCell,
|
|
522
|
+
be as DataTableEmptyState,
|
|
523
|
+
se as DataTableHead,
|
|
524
|
+
ne as DataTableHeader,
|
|
525
|
+
xe as DataTableImageCell,
|
|
526
|
+
ge as DataTableInputCell,
|
|
527
|
+
ve as DataTableLinkCell,
|
|
528
|
+
ye as DataTableNumberCell,
|
|
529
|
+
oe as DataTableRow,
|
|
530
|
+
he as DataTableSectionRow,
|
|
531
|
+
we as DataTableSelectCell,
|
|
532
|
+
le as DataTableTable
|
|
59
533
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { XIcon as d } from "lucide-react";
|
|
4
4
|
import { Dialog as o } from "radix-ui";
|
|
@@ -43,24 +43,24 @@ function u({
|
|
|
43
43
|
function N({
|
|
44
44
|
className: a,
|
|
45
45
|
children: e,
|
|
46
|
-
showCloseButton:
|
|
46
|
+
showCloseButton: s = !0,
|
|
47
47
|
...r
|
|
48
48
|
}) {
|
|
49
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ l(g, { "data-slot": "dialog-portal", children: [
|
|
50
50
|
/* @__PURE__ */ t(u, {}),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ l(
|
|
52
52
|
o.Content,
|
|
53
53
|
{
|
|
54
54
|
"data-slot": "dialog-content",
|
|
55
55
|
onOpenAutoFocus: (n) => n.preventDefault(),
|
|
56
56
|
className: i(
|
|
57
|
-
"fixed top-[50%] left-[50%] z-[var(--Z-Modal)] grid w-[calc(100%_-_32px)] max-w-[calc(100%_-_32px)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-
|
|
57
|
+
"fixed top-[50%] left-[50%] z-[var(--Z-Modal)] grid w-[calc(100%_-_32px)] max-w-[calc(100%_-_32px)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-2xl bg-[var(--Surface-Elevated)] p-6 shadow-lg duration-[var(--Motion-Duration-Base)] outline-none focus-visible:ring-2 focus-visible:ring-[var(--Focus-High-Emphasis)] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",
|
|
58
58
|
a
|
|
59
59
|
),
|
|
60
60
|
...r,
|
|
61
61
|
children: [
|
|
62
62
|
e,
|
|
63
|
-
|
|
63
|
+
s && /* @__PURE__ */ l(
|
|
64
64
|
o.Close,
|
|
65
65
|
{
|
|
66
66
|
"data-slot": "dialog-close",
|
|
@@ -89,10 +89,10 @@ function T({ className: a, ...e }) {
|
|
|
89
89
|
function C({
|
|
90
90
|
className: a,
|
|
91
91
|
showCloseButton: e = !1,
|
|
92
|
-
children:
|
|
92
|
+
children: s,
|
|
93
93
|
...r
|
|
94
94
|
}) {
|
|
95
|
-
return /* @__PURE__ */
|
|
95
|
+
return /* @__PURE__ */ l(
|
|
96
96
|
"div",
|
|
97
97
|
{
|
|
98
98
|
"data-slot": "dialog-footer",
|
|
@@ -102,13 +102,13 @@ function C({
|
|
|
102
102
|
),
|
|
103
103
|
...r,
|
|
104
104
|
children: [
|
|
105
|
-
|
|
105
|
+
s,
|
|
106
106
|
e && /* @__PURE__ */ t(o.Close, { asChild: !0, children: /* @__PURE__ */ t(c, { variant: "tertiary", children: "Close" }) })
|
|
107
107
|
]
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function E({
|
|
112
112
|
className: a,
|
|
113
113
|
...e
|
|
114
114
|
}) {
|
|
@@ -121,7 +121,7 @@ function w({
|
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function w({
|
|
125
125
|
className: a,
|
|
126
126
|
...e
|
|
127
127
|
}) {
|
|
@@ -138,11 +138,11 @@ export {
|
|
|
138
138
|
D as Dialog,
|
|
139
139
|
b as DialogClose,
|
|
140
140
|
N as DialogContent,
|
|
141
|
-
|
|
141
|
+
w as DialogDescription,
|
|
142
142
|
C as DialogFooter,
|
|
143
143
|
T as DialogHeader,
|
|
144
144
|
u as DialogOverlay,
|
|
145
145
|
g as DialogPortal,
|
|
146
|
-
|
|
146
|
+
E as DialogTitle,
|
|
147
147
|
y as DialogTrigger
|
|
148
148
|
};
|
|
@@ -51,7 +51,7 @@ function f({
|
|
|
51
51
|
{
|
|
52
52
|
"data-slot": "drawer-content",
|
|
53
53
|
className: d(
|
|
54
|
-
"group/drawer-content fixed z-[var(--Z-Modal)] flex h-auto flex-col border-[var(--Border-Medium-Emphasis)] bg-
|
|
54
|
+
"group/drawer-content fixed z-[var(--Z-Modal)] flex h-auto flex-col border-[var(--Border-Medium-Emphasis)] bg-[var(--Surface-Elevated)]",
|
|
55
55
|
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
|
|
56
56
|
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
|
|
57
57
|
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
@@ -90,7 +90,7 @@ function x({ className: r, ...a }) {
|
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function h({
|
|
94
94
|
className: r,
|
|
95
95
|
...a
|
|
96
96
|
}) {
|
|
@@ -103,7 +103,7 @@ function b({
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function b({
|
|
107
107
|
className: r,
|
|
108
108
|
...a
|
|
109
109
|
}) {
|
|
@@ -120,11 +120,11 @@ export {
|
|
|
120
120
|
m as Drawer,
|
|
121
121
|
p as DrawerClose,
|
|
122
122
|
f as DrawerContent,
|
|
123
|
-
|
|
123
|
+
b as DrawerDescription,
|
|
124
124
|
x as DrawerFooter,
|
|
125
125
|
g as DrawerHeader,
|
|
126
126
|
l as DrawerOverlay,
|
|
127
127
|
n as DrawerPortal,
|
|
128
|
-
|
|
128
|
+
h as DrawerTitle,
|
|
129
129
|
v as DrawerTrigger
|
|
130
130
|
};
|