@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
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ScoreTrendSection,
|
|
4
4
|
Section
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-4YAA25AV.js";
|
|
5
|
+
} from "../../../chunk-YHP75Y5K.js";
|
|
7
6
|
import "../../../chunk-UXAEOCOH.js";
|
|
8
7
|
import "../../../chunk-PSINRHYW.js";
|
|
9
8
|
import "../../../chunk-WSWSAPSS.js";
|
|
@@ -3081,6 +3081,7 @@ function ScoreSummary({
|
|
|
3081
3081
|
|
|
3082
3082
|
// src/app/roleplay/parts/score-trend-section.tsx
|
|
3083
3083
|
var import_react68 = require("react");
|
|
3084
|
+
var import_date_fns4 = require("date-fns");
|
|
3084
3085
|
|
|
3085
3086
|
// src/molecules/expand-table/index.tsx
|
|
3086
3087
|
var import_react_table2 = require("@tanstack/react-table");
|
|
@@ -4314,6 +4315,11 @@ function useTokenColors(vars) {
|
|
|
4314
4315
|
|
|
4315
4316
|
// src/app/roleplay/parts/score-trend-section.tsx
|
|
4316
4317
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
4318
|
+
function formatDateOnly(iso) {
|
|
4319
|
+
const d = new Date(iso);
|
|
4320
|
+
if (Number.isNaN(d.getTime())) return iso;
|
|
4321
|
+
return (0, import_date_fns4.format)(d, "M/d");
|
|
4322
|
+
}
|
|
4317
4323
|
function Section4({
|
|
4318
4324
|
title,
|
|
4319
4325
|
desc,
|
|
@@ -4353,7 +4359,7 @@ function AttemptCell({ row }) {
|
|
|
4353
4359
|
);
|
|
4354
4360
|
}
|
|
4355
4361
|
function DateCell({ row }) {
|
|
4356
|
-
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Typo, { as: "span", mono: true, style: { color: "var(--gray-9)" }, variant: "body", children:
|
|
4362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Typo, { as: "span", mono: true, style: { color: "var(--gray-9)" }, variant: "body", children: formatDateOnly(row.original.createdAt) });
|
|
4357
4363
|
}
|
|
4358
4364
|
function ScoreCell({ row }) {
|
|
4359
4365
|
var _a;
|
|
@@ -4451,32 +4457,34 @@ function ScoreTrendSection({
|
|
|
4451
4457
|
const columns = (0, import_react68.useMemo)(() => {
|
|
4452
4458
|
const h = (0, import_react_table2.createColumnHelper)();
|
|
4453
4459
|
return [
|
|
4460
|
+
// autoSize 컬럼에선 size가 최소폭으로 동작(1fr로 늘어남). 모바일(iPhone SE 375px,
|
|
4461
|
+
// 가용 ≈343px)에서 grid 최소폭 합이 화면을 넘지 않도록 작게 잡는다.
|
|
4454
4462
|
h.display({
|
|
4455
4463
|
id: "attempt",
|
|
4456
4464
|
header: "\uD68C\uCC28",
|
|
4457
|
-
size:
|
|
4458
|
-
meta: {
|
|
4465
|
+
size: 116,
|
|
4466
|
+
meta: { align: "left" },
|
|
4459
4467
|
cell: AttemptCell
|
|
4460
4468
|
}),
|
|
4461
4469
|
h.display({
|
|
4462
4470
|
id: "date",
|
|
4463
4471
|
header: "\uB0A0\uC9DC",
|
|
4464
|
-
size:
|
|
4472
|
+
size: 76,
|
|
4465
4473
|
meta: { align: "left" },
|
|
4466
4474
|
cell: DateCell
|
|
4467
4475
|
}),
|
|
4468
4476
|
h.display({
|
|
4469
4477
|
id: "score",
|
|
4470
4478
|
header: "\uCD1D\uC810",
|
|
4471
|
-
size:
|
|
4479
|
+
size: 64,
|
|
4472
4480
|
meta: { align: "right" },
|
|
4473
4481
|
cell: ScoreCell
|
|
4474
4482
|
}),
|
|
4475
4483
|
h.display({
|
|
4476
4484
|
id: "delta",
|
|
4477
4485
|
header: "\uBCC0\uD654",
|
|
4478
|
-
size:
|
|
4479
|
-
meta: { align: "
|
|
4486
|
+
size: 64,
|
|
4487
|
+
meta: { autoSize: true, align: "left" },
|
|
4480
4488
|
cell: DeltaCell
|
|
4481
4489
|
})
|
|
4482
4490
|
];
|
|
@@ -4506,6 +4514,7 @@ function ScoreTrendSection({
|
|
|
4506
4514
|
data: rows,
|
|
4507
4515
|
getRowStyle: (d) => d.isCurrent ? { background: "var(--accent-a2)" } : {},
|
|
4508
4516
|
showPagination: false,
|
|
4517
|
+
slim: true,
|
|
4509
4518
|
variant: "sprite"
|
|
4510
4519
|
}
|
|
4511
4520
|
) })
|