@tipp/ui 2.10.0 → 2.10.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/dist/app/roleplay/index.cjs +16 -7
- package/dist/app/roleplay/index.cjs.map +1 -1
- package/dist/app/roleplay/index.js +3 -3
- package/dist/app/roleplay/parts/content.cjs +16 -12
- package/dist/app/roleplay/parts/content.cjs.map +1 -1
- package/dist/app/roleplay/parts/content.js +2 -2
- package/dist/app/roleplay/parts/score-trend-section.cjs +15 -14
- package/dist/app/roleplay/parts/score-trend-section.cjs.map +1 -1
- package/dist/app/roleplay/parts/score-trend-section.js +1 -2
- package/dist/app/roleplay/rp-session-detail.cjs +16 -7
- package/dist/app/roleplay/rp-session-detail.cjs.map +1 -1
- package/dist/app/roleplay/rp-session-detail.js +3 -3
- package/dist/{chunk-2TOASXPK.js → chunk-32WIS4L7.js} +2 -2
- package/dist/{chunk-XM4GWPXC.js → chunk-YHP75Y5K.js} +17 -11
- package/dist/chunk-YHP75Y5K.js.map +1 -0
- package/dist/{chunk-T7LKMJVA.js → chunk-ZE36DFOC.js} +2 -2
- package/package.json +1 -1
- package/src/app/roleplay/parts/score-trend-section.tsx +18 -8
- package/dist/chunk-XM4GWPXC.js.map +0 -1
- /package/dist/{chunk-2TOASXPK.js.map → chunk-32WIS4L7.js.map} +0 -0
- /package/dist/{chunk-T7LKMJVA.js.map → chunk-ZE36DFOC.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Content
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-32WIS4L7.js";
|
|
5
5
|
import "../../../chunk-EBFQFOUQ.js";
|
|
6
6
|
import "../../../chunk-6YIKOYBQ.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-YHP75Y5K.js";
|
|
8
8
|
import "../../../chunk-NKW6BO5R.js";
|
|
9
9
|
import "../../../chunk-KJPBBBVK.js";
|
|
10
10
|
import "../../../chunk-5QIT4URV.js";
|
|
@@ -65,6 +65,7 @@ __export(score_trend_section_exports, {
|
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(score_trend_section_exports);
|
|
67
67
|
var import_react68 = require("react");
|
|
68
|
+
var import_date_fns3 = require("date-fns");
|
|
68
69
|
|
|
69
70
|
// src/atoms/alert-dialog.tsx
|
|
70
71
|
var import_themes2 = require("@radix-ui/themes");
|
|
@@ -3469,16 +3470,13 @@ function useTokenColors(vars) {
|
|
|
3469
3470
|
return { colors: resolved, probe };
|
|
3470
3471
|
}
|
|
3471
3472
|
|
|
3472
|
-
// src/app/roleplay/
|
|
3473
|
-
var
|
|
3474
|
-
function
|
|
3473
|
+
// src/app/roleplay/parts/score-trend-section.tsx
|
|
3474
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
3475
|
+
function formatDateOnly(iso) {
|
|
3475
3476
|
const d = new Date(iso);
|
|
3476
3477
|
if (Number.isNaN(d.getTime())) return iso;
|
|
3477
|
-
return (0, import_date_fns3.format)(d, "M/d
|
|
3478
|
+
return (0, import_date_fns3.format)(d, "M/d");
|
|
3478
3479
|
}
|
|
3479
|
-
|
|
3480
|
-
// src/app/roleplay/parts/score-trend-section.tsx
|
|
3481
|
-
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
3482
3480
|
function Section2({
|
|
3483
3481
|
title,
|
|
3484
3482
|
desc,
|
|
@@ -3518,7 +3516,7 @@ function AttemptCell({ row }) {
|
|
|
3518
3516
|
);
|
|
3519
3517
|
}
|
|
3520
3518
|
function DateCell({ row }) {
|
|
3521
|
-
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Typo, { as: "span", mono: true, style: { color: "var(--gray-9)" }, variant: "body", children:
|
|
3519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Typo, { as: "span", mono: true, style: { color: "var(--gray-9)" }, variant: "body", children: formatDateOnly(row.original.createdAt) });
|
|
3522
3520
|
}
|
|
3523
3521
|
function ScoreCell({ row }) {
|
|
3524
3522
|
var _a;
|
|
@@ -3616,32 +3614,34 @@ function ScoreTrendSection({
|
|
|
3616
3614
|
const columns = (0, import_react68.useMemo)(() => {
|
|
3617
3615
|
const h = (0, import_react_table2.createColumnHelper)();
|
|
3618
3616
|
return [
|
|
3617
|
+
// autoSize 컬럼에선 size가 최소폭으로 동작(1fr로 늘어남). 모바일(iPhone SE 375px,
|
|
3618
|
+
// 가용 ≈343px)에서 grid 최소폭 합이 화면을 넘지 않도록 작게 잡는다.
|
|
3619
3619
|
h.display({
|
|
3620
3620
|
id: "attempt",
|
|
3621
3621
|
header: "\uD68C\uCC28",
|
|
3622
|
-
size:
|
|
3623
|
-
meta: {
|
|
3622
|
+
size: 116,
|
|
3623
|
+
meta: { align: "left" },
|
|
3624
3624
|
cell: AttemptCell
|
|
3625
3625
|
}),
|
|
3626
3626
|
h.display({
|
|
3627
3627
|
id: "date",
|
|
3628
3628
|
header: "\uB0A0\uC9DC",
|
|
3629
|
-
size:
|
|
3629
|
+
size: 76,
|
|
3630
3630
|
meta: { align: "left" },
|
|
3631
3631
|
cell: DateCell
|
|
3632
3632
|
}),
|
|
3633
3633
|
h.display({
|
|
3634
3634
|
id: "score",
|
|
3635
3635
|
header: "\uCD1D\uC810",
|
|
3636
|
-
size:
|
|
3636
|
+
size: 64,
|
|
3637
3637
|
meta: { align: "right" },
|
|
3638
3638
|
cell: ScoreCell
|
|
3639
3639
|
}),
|
|
3640
3640
|
h.display({
|
|
3641
3641
|
id: "delta",
|
|
3642
3642
|
header: "\uBCC0\uD654",
|
|
3643
|
-
size:
|
|
3644
|
-
meta: { align: "
|
|
3643
|
+
size: 64,
|
|
3644
|
+
meta: { autoSize: true, align: "left" },
|
|
3645
3645
|
cell: DeltaCell
|
|
3646
3646
|
})
|
|
3647
3647
|
];
|
|
@@ -3671,6 +3671,7 @@ function ScoreTrendSection({
|
|
|
3671
3671
|
data: rows,
|
|
3672
3672
|
getRowStyle: (d) => d.isCurrent ? { background: "var(--accent-a2)" } : {},
|
|
3673
3673
|
showPagination: false,
|
|
3674
|
+
slim: true,
|
|
3674
3675
|
variant: "sprite"
|
|
3675
3676
|
}
|
|
3676
3677
|
) })
|