@tbox.cn/app-module-parking 1.0.0-alpha.1 → 1.0.0-alpha.6

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,6 +1,3 @@
1
- // src/client/index.ts
2
- import "./parking-BC2TJ5GU.css";
3
-
4
1
  // src/client/cards/parking-payment/index.tsx
5
2
  import { useEffect, useState } from "react";
6
3
  import { Car, Check, CheckCircle, Clock, CurrencyCircleDollar, ShieldCheck, Sparkle } from "@phosphor-icons/react";
@@ -169,21 +166,21 @@ function ParkingPaymentCard(props) {
169
166
  data.entryAtText ? `\u5165\u573A ${data.entryAtText}` : void 0,
170
167
  data.durationText ? `\u5DF2\u505C ${data.durationText}` : void 0
171
168
  ].filter(Boolean).join(" \xB7 ");
172
- return /* @__PURE__ */ jsxs("section", { className: "parking-payment", children: [
173
- /* @__PURE__ */ jsx("header", { className: "parking-payment__hero", children: /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-content", children: [
174
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-eyebrow", children: [
175
- /* @__PURE__ */ jsx("span", { children: "\u5546\u573A\u505C\u8F66\u670D\u52A1" }),
176
- isHistory && /* @__PURE__ */ jsx("span", { className: "parking-payment__status", children: "\u5386\u53F2\u62A5\u4EF7" })
169
+ return /* @__PURE__ */ jsxs("section", { className: "parking-payment w-full overflow-hidden bg-card text-foreground", children: [
170
+ /* @__PURE__ */ jsx("header", { className: "parking-payment__hero relative h-41.5 overflow-hidden bg-[#f9f0df] bg-parking-hero", children: /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-content absolute inset-0 flex flex-col bg-white-soft p-3.5", children: [
171
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-eyebrow flex items-center justify-between gap-2 text-xs font-semibold leading-4 text-foreground", children: [
172
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: "\u5546\u573A\u505C\u8F66\u670D\u52A1" }),
173
+ isHistory && /* @__PURE__ */ jsx("span", { className: "parking-payment__status shrink-0 rounded-full border border-border bg-card px-1.5 py-0.5 text-xs leading-4", children: "\u5386\u53F2\u62A5\u4EF7" })
177
174
  ] }),
178
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-main", children: [
179
- /* @__PURE__ */ jsx("strong", { children: data.plateNo }),
180
- /* @__PURE__ */ jsx("span", { children: parkingMeta || "\u505C\u8F66\u8D39\u7528\u4EE5\u5546\u573A\u7CFB\u7EDF\u5B9E\u65F6\u7ED3\u679C\u4E3A\u51C6" })
175
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__hero-main flex min-w-0 flex-1 flex-col justify-center", children: [
176
+ /* @__PURE__ */ jsx("strong", { className: "truncate text-3xl font-bold leading-8 tracking-wide text-foreground", children: data.plateNo }),
177
+ /* @__PURE__ */ jsx("span", { className: "mt-1 truncate text-xs leading-4 text-foreground", children: parkingMeta || "\u505C\u8F66\u8D39\u7528\u4EE5\u5546\u573A\u7CFB\u7EDF\u5B9E\u65F6\u7ED3\u679C\u4E3A\u51C6" })
181
178
  ] }),
182
179
  /* @__PURE__ */ jsx("div", { className: "parking-payment__hero-actions", children: /* @__PURE__ */ jsxs(
183
180
  "button",
184
181
  {
185
182
  type: "button",
186
- className: "parking-payment__hero-action",
183
+ className: "parking-payment__hero-action inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-border bg-card px-2 py-1 text-xs font-medium leading-4 transition-colors hover:bg-muted disabled:cursor-default disabled:opacity-50",
187
184
  disabled: isHistory,
188
185
  onClick: () => sendCardAction(cardId, { type: "sendMessage", value: VEHICLE_MANAGE_QUERY }),
189
186
  children: [
@@ -193,94 +190,95 @@ function ParkingPaymentCard(props) {
193
190
  }
194
191
  ) })
195
192
  ] }) }),
196
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary", children: [
197
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item", children: [
198
- /* @__PURE__ */ jsx("small", { children: "\u5DF2\u505C\u65F6\u957F" }),
199
- /* @__PURE__ */ jsx("strong", { children: data.durationText ?? "\u2014" })
193
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary grid grid-cols-3 border-b-2 border-border bg-card px-1.5 py-2.75", children: [
194
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item flex min-w-0 flex-col items-center justify-center border-l-2 border-border px-1 text-center first:border-l-0", children: [
195
+ /* @__PURE__ */ jsx("small", { className: "max-w-full truncate text-xs leading-4 text-muted-foreground", children: "\u5DF2\u505C\u65F6\u957F" }),
196
+ /* @__PURE__ */ jsx("strong", { className: "mt-1 max-w-full truncate text-sm font-bold leading-4.5 text-foreground", children: data.durationText ?? "\u2014" })
200
197
  ] }),
201
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item parking-payment__summary-item--benefit", children: [
202
- /* @__PURE__ */ jsx("small", { children: "\u4F18\u60E0\u51CF\u514D" }),
203
- /* @__PURE__ */ jsx("strong", { children: discountText ?? "\u2014" })
198
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item parking-payment__summary-item--benefit flex min-w-0 flex-col items-center justify-center border-l-2 border-border px-1 text-center", children: [
199
+ /* @__PURE__ */ jsx("small", { className: "max-w-full truncate text-xs leading-4 text-muted-foreground", children: "\u4F18\u60E0\u51CF\u514D" }),
200
+ /* @__PURE__ */ jsx("strong", { className: "mt-1 max-w-full truncate text-sm font-bold leading-4.5 text-foreground", children: discountText ?? "\u2014" })
204
201
  ] }),
205
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item parking-payment__summary-item--amount", children: [
206
- /* @__PURE__ */ jsx("small", { children: "\u5F53\u524D\u5E94\u4ED8" }),
207
- /* @__PURE__ */ jsx("strong", { children: data.payableText })
202
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__summary-item parking-payment__summary-item--amount flex min-w-0 flex-col items-center justify-center border-l-2 border-border px-1 text-center", children: [
203
+ /* @__PURE__ */ jsx("small", { className: "max-w-full truncate text-xs leading-4 text-muted-foreground", children: "\u5F53\u524D\u5E94\u4ED8" }),
204
+ /* @__PURE__ */ jsx("strong", { className: "mt-1 max-w-full truncate text-sm font-bold leading-4.5 text-warning", children: data.payableText })
208
205
  ] })
209
206
  ] }),
210
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__body", children: [
211
- /* @__PURE__ */ jsxs("section", { className: "parking-payment__billing", children: [
212
- /* @__PURE__ */ jsx("header", { className: "parking-payment__billing-head", children: /* @__PURE__ */ jsxs("div", { children: [
213
- /* @__PURE__ */ jsx("span", { className: "parking-payment__billing-icon", children: /* @__PURE__ */ jsx(CurrencyCircleDollar, { weight: "duotone", size: 18 }) }),
214
- /* @__PURE__ */ jsx("h4", { children: "\u505C\u8F66\u8D39\u7528" })
207
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__body px-3 pb-2.75 pt-3", children: [
208
+ /* @__PURE__ */ jsxs("section", { className: "parking-payment__billing rounded-xl border-2 border-border bg-card p-2.75", children: [
209
+ /* @__PURE__ */ jsx("header", { className: "parking-payment__billing-head flex items-center justify-between gap-2.25", children: /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-1.5", children: [
210
+ /* @__PURE__ */ jsx("span", { className: "parking-payment__billing-icon grid size-5.5 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", children: /* @__PURE__ */ jsx(CurrencyCircleDollar, { weight: "duotone", size: 18 }) }),
211
+ /* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold leading-5 text-foreground", children: "\u505C\u8F66\u8D39\u7528" })
215
212
  ] }) }),
216
- /* @__PURE__ */ jsxs("dl", { className: "parking-payment__fees", children: [
217
- data.feeItems.map((f) => /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee", children: [
213
+ /* @__PURE__ */ jsxs("dl", { className: "parking-payment__fees m-0 mt-1.25", children: [
214
+ data.feeItems.map((f) => /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee mt-1.75 flex items-center justify-between gap-2.25 text-xs leading-4.5 text-secondary-foreground", children: [
218
215
  /* @__PURE__ */ jsx("dt", { children: f.name }),
219
- /* @__PURE__ */ jsx("dd", { children: f.amountText })
216
+ /* @__PURE__ */ jsx("dd", { className: "text-sm font-semibold text-foreground", children: f.amountText })
220
217
  ] }, f.name)),
221
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee", children: [
218
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee mt-1.75 flex items-center justify-between gap-2.25 text-xs leading-4.5 text-secondary-foreground", children: [
222
219
  /* @__PURE__ */ jsx("dt", { children: "\u505C\u8F66\u603B\u8D39\u7528" }),
223
- /* @__PURE__ */ jsx("dd", { children: data.totalText })
220
+ /* @__PURE__ */ jsx("dd", { className: "text-sm font-semibold text-foreground", children: data.totalText })
224
221
  ] }),
225
- autoAppliedBenefits.map((benefit) => /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee parking-payment__fee--discount", children: [
222
+ autoAppliedBenefits.map((benefit) => /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee parking-payment__fee--discount mt-1.75 flex items-center justify-between gap-2.25 text-xs leading-4.5 text-secondary-foreground", children: [
226
223
  /* @__PURE__ */ jsx("dt", { children: benefit.title }),
227
- /* @__PURE__ */ jsx("dd", { children: formatDiscountText(benefit.discountText) ?? "\u5DF2\u751F\u6548" })
224
+ /* @__PURE__ */ jsx("dd", { className: "text-sm font-semibold text-foreground", children: formatDiscountText(benefit.discountText) ?? "\u5DF2\u751F\u6548" })
228
225
  ] }, benefit.benefitRef)),
229
- discountText && /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee parking-payment__fee--discount", children: [
226
+ discountText && /* @__PURE__ */ jsxs("div", { className: "parking-payment__fee parking-payment__fee--discount mt-1.75 flex items-center justify-between gap-2.25 text-xs leading-4.5 text-secondary-foreground", children: [
230
227
  /* @__PURE__ */ jsx("dt", { children: "\u4F18\u60E0\u51CF\u514D" }),
231
- /* @__PURE__ */ jsx("dd", { children: discountText })
228
+ /* @__PURE__ */ jsx("dd", { className: "text-sm font-semibold text-foreground", children: discountText })
232
229
  ] })
233
230
  ] }),
234
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__billing-total", children: [
235
- /* @__PURE__ */ jsx("strong", { children: "\u5F53\u524D\u5E94\u4ED8" }),
236
- /* @__PURE__ */ jsx("b", { children: data.payableText })
231
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__billing-total mt-2.25 flex items-center justify-between gap-2.25 border-t-2 border-border pt-2", children: [
232
+ /* @__PURE__ */ jsx("strong", { className: "text-sm leading-5 text-foreground", children: "\u5F53\u524D\u5E94\u4ED8" }),
233
+ /* @__PURE__ */ jsx("b", { className: "text-2xl font-bold leading-6 text-warning", children: data.payableText })
237
234
  ] })
238
235
  ] }),
239
- selectable.length > 0 && !isFreeOfCharge && /* @__PURE__ */ jsxs("section", { className: "parking-payment__benefit-picker", "aria-label": "\u505C\u8F66\u4F18\u60E0\u9009\u62E9", children: [
240
- /* @__PURE__ */ jsxs("div", { className: "parking-payment__benefit-picker-head", children: [
241
- /* @__PURE__ */ jsx("h4", { children: "\u4F18\u60E0" }),
242
- repricing && /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-repricing", children: "\u91CD\u7B97\u4E2D\u2026" })
236
+ selectable.length > 0 && !isFreeOfCharge && /* @__PURE__ */ jsxs("section", { className: "parking-payment__benefit-picker mt-2.25", "aria-label": "\u505C\u8F66\u4F18\u60E0\u9009\u62E9", children: [
237
+ /* @__PURE__ */ jsxs("div", { className: "parking-payment__benefit-picker-head mb-1.5 flex items-baseline justify-between", children: [
238
+ /* @__PURE__ */ jsx("h4", { className: "m-0 text-xs font-semibold leading-4 text-secondary-foreground", children: "\u4F18\u60E0" }),
239
+ repricing && /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-repricing text-xs text-primary", children: "\u91CD\u7B97\u4E2D\u2026" })
243
240
  ] }),
244
- /* @__PURE__ */ jsx("ul", { className: "parking-payment__benefit-options", children: selectable.map((benefit) => {
241
+ /* @__PURE__ */ jsx("ul", { className: "parking-payment__benefit-options m-0 flex list-none flex-col gap-1.5 p-0", children: selectable.map((benefit) => {
245
242
  const checked = selectedRefs.includes(benefit.benefitRef);
246
243
  const applied = appliedBenefits.find((a) => a.benefitRef === benefit.benefitRef);
247
244
  const amountText = formatDiscountText(applied?.discountText ?? benefit.discountText);
248
245
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
249
246
  "label",
250
247
  {
251
- className: `parking-payment__benefit-option${checked ? " parking-payment__benefit-option--on" : ""}`,
248
+ className: `parking-payment__benefit-option relative flex items-center gap-1.75 rounded-xl border-2 bg-card px-2.75 py-2 transition-colors ${checked ? "border-primary bg-primary-soft shadow-sm parking-payment__benefit-option--on" : "border-border"} ${isHistory || repricing || !repriceToken ? "cursor-default opacity-55" : "cursor-pointer"}`,
252
249
  children: [
253
250
  /* @__PURE__ */ jsx(
254
251
  "input",
255
252
  {
253
+ className: "peer sr-only",
256
254
  type: "checkbox",
257
255
  checked,
258
256
  disabled: isHistory || repricing || !repriceToken,
259
257
  onChange: (e) => toggleBenefit(benefit.benefitRef, e.target.checked)
260
258
  }
261
259
  ),
262
- /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-check", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Check, { size: 14, weight: "bold" }) }),
263
- /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-option-copy", children: /* @__PURE__ */ jsx("strong", { children: benefit.title }) }),
264
- amountText && /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-amount", children: amountText })
260
+ /* @__PURE__ */ jsx("span", { className: `parking-payment__benefit-check inline-flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-border-strong bg-card text-transparent transition-colors peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary ${checked ? "border-primary bg-primary text-white" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ jsx(Check, { size: 14, weight: "bold" }) }),
261
+ /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-option-copy min-w-0 flex-1", children: /* @__PURE__ */ jsx("strong", { className: "block truncate text-xs font-semibold leading-4.5 text-foreground", children: benefit.title }) }),
262
+ amountText && /* @__PURE__ */ jsx("span", { className: "parking-payment__benefit-amount shrink-0 text-sm font-bold leading-4.5 tabular-nums text-warning", children: amountText })
265
263
  ]
266
264
  }
267
265
  ) }, benefit.benefitRef);
268
266
  }) }),
269
- dropNotice && /* @__PURE__ */ jsx("p", { className: "parking-payment__benefit-notice", children: dropNotice })
267
+ dropNotice && /* @__PURE__ */ jsx("p", { className: "parking-payment__benefit-notice mt-1.5 flex gap-1 rounded-md bg-warn-surface px-2 py-1.75 text-xs leading-4 text-warn-ink", children: dropNotice })
270
268
  ] }),
271
- (membership?.state === "not_enrolled" || membership?.state === "unauthenticated") && /* @__PURE__ */ jsxs("div", { className: "parking-payment__member-guide", children: [
272
- /* @__PURE__ */ jsx("span", { className: "parking-payment__member-guide-icon", children: /* @__PURE__ */ jsx(Sparkle, { weight: "fill", size: 20 }) }),
273
- /* @__PURE__ */ jsxs("div", { children: [
274
- /* @__PURE__ */ jsx("strong", { children: membership.state === "not_enrolled" ? "\u5165\u4F1A\u540E\u53EF\u4F7F\u7528\u4F1A\u5458\u505C\u8F66\u6743\u76CA" : "\u767B\u5F55\u540E\u67E5\u770B\u4F1A\u5458\u505C\u8F66\u6743\u76CA" }),
275
- /* @__PURE__ */ jsx("small", { children: "\u6743\u76CA\u4EE5\u5546\u573A\u4F1A\u5458\u4E0E\u505C\u8F66\u7CFB\u7EDF\u5B9E\u65F6\u7ED3\u679C\u4E3A\u51C6" })
269
+ (membership?.state === "not_enrolled" || membership?.state === "unauthenticated") && /* @__PURE__ */ jsxs("div", { className: "parking-payment__member-guide mt-2.25 flex items-center gap-1.75 rounded-lg border-2 border-warn-border bg-warn-surface p-2.25", children: [
270
+ /* @__PURE__ */ jsx("span", { className: "parking-payment__member-guide-icon grid size-5.75 shrink-0 place-items-center rounded-md bg-warning text-white", children: /* @__PURE__ */ jsx(Sparkle, { weight: "fill", size: 20 }) }),
271
+ /* @__PURE__ */ jsxs("div", { className: "grid min-w-0 flex-1 gap-0.5", children: [
272
+ /* @__PURE__ */ jsx("strong", { className: "text-xs leading-4 text-warn-ink", children: membership.state === "not_enrolled" ? "\u5165\u4F1A\u540E\u53EF\u4F7F\u7528\u4F1A\u5458\u505C\u8F66\u6743\u76CA" : "\u767B\u5F55\u540E\u67E5\u770B\u4F1A\u5458\u505C\u8F66\u6743\u76CA" }),
273
+ /* @__PURE__ */ jsx("small", { className: "text-xs leading-3.5 text-warn-ink", children: "\u6743\u76CA\u4EE5\u5546\u573A\u4F1A\u5458\u4E0E\u505C\u8F66\u7CFB\u7EDF\u5B9E\u65F6\u7ED3\u679C\u4E3A\u51C6" })
276
274
  ] }),
277
- /* @__PURE__ */ jsx("button", { type: "button", disabled: isHistory, onClick: promptMembership, children: membership.state === "not_enrolled" ? "\u7ACB\u5373\u5165\u4F1A" : "\u53BB\u767B\u5F55" })
275
+ /* @__PURE__ */ jsx("button", { className: "shrink-0 rounded-full border-0 bg-warning px-2.5 py-1.5 text-xs font-bold text-white", type: "button", disabled: isHistory, onClick: promptMembership, children: membership.state === "not_enrolled" ? "\u7ACB\u5373\u5165\u4F1A" : "\u53BB\u767B\u5F55" })
278
276
  ] }),
279
- /* @__PURE__ */ jsx("div", { className: "parking-payment__actions", children: /* @__PURE__ */ jsxs(
277
+ /* @__PURE__ */ jsx("div", { className: "parking-payment__actions mt-2.75 grid grid-cols-1 gap-1.5", children: /* @__PURE__ */ jsxs(
280
278
  "button",
281
279
  {
282
280
  type: "button",
283
- className: "parking-payment__action parking-payment__action--primary",
281
+ className: "parking-payment__action parking-payment__action--primary flex min-h-9 items-center justify-center gap-1 whitespace-nowrap rounded-full border-2 border-primary bg-primary px-2.5 text-sm font-bold text-white shadow-md disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:shadow-none",
284
282
  disabled: submitDisabled,
285
283
  title: submitTitle,
286
284
  onClick: () => submit(submitBenefitRefs),
@@ -290,12 +288,12 @@ function ParkingPaymentCard(props) {
290
288
  ]
291
289
  }
292
290
  ) }),
293
- settlement && /* @__PURE__ */ jsxs("p", { className: `parking-payment__settlement parking-payment__settlement--${settlement.state}`, children: [
291
+ settlement && /* @__PURE__ */ jsxs("p", { className: `parking-payment__settlement mt-2.75 flex items-center gap-1 rounded-md px-2.25 py-1.75 text-xs leading-4 ${settlement.state === "paid" ? "bg-success-soft text-success" : settlement.state === "failed" ? "bg-danger-soft text-destructive" : "bg-muted text-secondary-foreground"}`, children: [
294
292
  settlement.state === "paid" ? /* @__PURE__ */ jsx(CheckCircle, { size: 16, weight: "fill" }) : /* @__PURE__ */ jsx(Clock, { size: 16, weight: "fill" }),
295
293
  settlement.text
296
294
  ] }),
297
- !confirmToken && !isHistory && !settlement && /* @__PURE__ */ jsx("p", { className: "parking-payment__token-expired", children: "\u652F\u4ED8\u6388\u6743\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u67E5\u8BE2\u505C\u8F66\u8D39\u540E\u518D\u652F\u4ED8" }),
298
- data.caveats.length > 0 && /* @__PURE__ */ jsxs("footer", { className: "parking-payment__foot", children: [
295
+ !confirmToken && !isHistory && !settlement && /* @__PURE__ */ jsx("p", { className: "parking-payment__token-expired mt-2.75 rounded-md border-2 border-danger-border bg-danger-soft px-2 py-1.75 text-xs leading-4 text-destructive", children: "\u652F\u4ED8\u6388\u6743\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u67E5\u8BE2\u505C\u8F66\u8D39\u540E\u518D\u652F\u4ED8" }),
296
+ data.caveats.length > 0 && /* @__PURE__ */ jsxs("footer", { className: "parking-payment__foot mt-2.5 flex items-start gap-1 border-t-2 border-border pt-2.25 text-xs leading-4 text-muted-foreground [&_svg]:shrink-0 [&_svg]:text-primary", children: [
299
297
  /* @__PURE__ */ jsx(ShieldCheck, { size: 14 }),
300
298
  data.caveats.join("\uFF1B")
301
299
  ] })
@@ -375,36 +373,47 @@ function paymentResultClass(status) {
375
373
  // src/client/cards/parking-payment-result/index.tsx
376
374
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
377
375
  var ICONS = { paid: CheckCircle2, cancelled: WarningCircle, unknown: Clock2 };
376
+ var RESULT_ICON = {
377
+ paid: "bg-success text-white",
378
+ cancelled: "bg-muted text-secondary-foreground",
379
+ unknown: "bg-warning-soft text-warning"
380
+ };
381
+ var RESULT_AMOUNT = {
382
+ paid: "text-success",
383
+ cancelled: "text-foreground",
384
+ unknown: "text-foreground"
385
+ };
378
386
  function ParkingPaymentResultCard(props) {
379
387
  const { data, cardId, isHistory, actionTokens } = props;
380
388
  const cls = paymentResultClass(data.status);
381
389
  const Icon = ICONS[cls === "parking-result--paid" ? "paid" : cls === "parking-result--cancelled" ? "cancelled" : "unknown"];
382
390
  const token = actionTokens?.["parking.refresh-payment"];
383
- return /* @__PURE__ */ jsxs2("section", { className: `parking-result ${cls}`, children: [
384
- /* @__PURE__ */ jsxs2("header", { className: "parking-result__head", children: [
385
- /* @__PURE__ */ jsx2("span", { className: "parking-result__icon", children: /* @__PURE__ */ jsx2(Icon, { size: 30, weight: "fill" }) }),
386
- /* @__PURE__ */ jsxs2("div", { className: "parking-result__heading", children: [
387
- /* @__PURE__ */ jsx2("h4", { children: paymentResultText(data.status) }),
388
- /* @__PURE__ */ jsx2("small", { children: data.message })
391
+ const tone = cls.replace("parking-result--", "");
392
+ return /* @__PURE__ */ jsxs2("section", { className: `parking-result ${cls} grid w-full gap-2.5 bg-card p-3.5 text-foreground`, children: [
393
+ /* @__PURE__ */ jsxs2("header", { className: "parking-result__head flex items-center gap-2", children: [
394
+ /* @__PURE__ */ jsx2("span", { className: `parking-result__icon grid size-8 shrink-0 place-items-center rounded-full ${RESULT_ICON[tone]}`, children: /* @__PURE__ */ jsx2(Icon, { size: 30, weight: "fill" }) }),
395
+ /* @__PURE__ */ jsxs2("div", { className: "parking-result__heading min-w-0 flex-1", children: [
396
+ /* @__PURE__ */ jsx2("h4", { className: "text-base font-bold leading-5.5 text-foreground", children: paymentResultText(data.status) }),
397
+ /* @__PURE__ */ jsx2("small", { className: "block text-xs leading-4 text-secondary-foreground", children: data.message })
389
398
  ] })
390
399
  ] }),
391
- data.amountText && /* @__PURE__ */ jsxs2("div", { className: "parking-result__amount-row", children: [
392
- /* @__PURE__ */ jsx2("b", { className: "parking-result__amount", children: data.amountText }),
393
- /* @__PURE__ */ jsx2("span", { children: data.status === "PAID" ? "\u5DF2\u652F\u4ED8" : data.status === "CANCELLED" ? "\u672A\u652F\u4ED8" : "\u5F85\u786E\u8BA4" })
400
+ data.amountText && /* @__PURE__ */ jsxs2("div", { className: "parking-result__amount-row flex items-baseline gap-1.5", children: [
401
+ /* @__PURE__ */ jsx2("b", { className: `parking-result__amount text-3xl font-bold leading-8 tabular-nums ${RESULT_AMOUNT[tone]}`, children: data.amountText }),
402
+ /* @__PURE__ */ jsx2("span", { className: "text-xs text-secondary-foreground", children: data.status === "PAID" ? "\u5DF2\u652F\u4ED8" : data.status === "CANCELLED" ? "\u672A\u652F\u4ED8" : "\u5F85\u786E\u8BA4" })
394
403
  ] }),
395
- data.leaveNotice && /* @__PURE__ */ jsxs2("p", { className: "parking-result__leave", children: [
404
+ data.leaveNotice && /* @__PURE__ */ jsxs2("p", { className: "parking-result__leave flex items-center gap-1.5 rounded-lg border-2 border-warn-border bg-warn-surface px-2.5 py-2 text-xs font-semibold leading-4 text-warn-ink", children: [
396
405
  /* @__PURE__ */ jsx2(Clock2, { size: 16, weight: "fill" }),
397
406
  data.leaveNotice
398
407
  ] }),
399
- data.details && data.details.length > 0 && /* @__PURE__ */ jsx2("dl", { className: "parking-result__details", children: data.details.map((d) => /* @__PURE__ */ jsxs2("div", { children: [
400
- /* @__PURE__ */ jsx2("dt", { children: d.label }),
401
- /* @__PURE__ */ jsx2("dd", { children: d.value })
408
+ data.details && data.details.length > 0 && /* @__PURE__ */ jsx2("dl", { className: "parking-result__details grid gap-1.75 rounded-md bg-muted px-3 py-2.75", children: data.details.map((d) => /* @__PURE__ */ jsxs2("div", { className: "flex items-baseline justify-between gap-2.5", children: [
409
+ /* @__PURE__ */ jsx2("dt", { className: "text-xs leading-4 text-secondary-foreground", children: d.label }),
410
+ /* @__PURE__ */ jsx2("dd", { className: "text-right text-xs font-semibold leading-4 break-words text-foreground", children: d.value })
402
411
  ] }, d.label)) }),
403
412
  data.retryable && data.paymentRef && !isHistory && /* @__PURE__ */ jsx2(
404
413
  "button",
405
414
  {
406
415
  type: "button",
407
- className: "parking-result__refresh",
416
+ className: "parking-result__refresh min-h-8.5 cursor-pointer rounded-full border-2 border-primary-foreground bg-primary-soft px-4.5 text-xs font-semibold text-primary disabled:cursor-not-allowed disabled:opacity-50",
408
417
  disabled: !token,
409
418
  onClick: () => {
410
419
  if (!token || isHistory) return;
@@ -428,6 +437,16 @@ import { CaretDown, Receipt, X } from "@phosphor-icons/react";
428
437
  import { markSelfRendering as markSelfRendering3, sendCardAction as sendCardAction3 } from "@tbox.cn/app-agent-sdk-client";
429
438
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
430
439
  var PAGE_SIZE = 5;
440
+ var RECORD_TONE = {
441
+ paid: "text-success",
442
+ refunded: "text-warning",
443
+ closed: "text-muted-foreground",
444
+ unknown: "text-muted-foreground"
445
+ };
446
+ function recordTone(status) {
447
+ const key = status.toLowerCase();
448
+ return RECORD_TONE[key] ?? RECORD_TONE.unknown;
449
+ }
431
450
  function RecordDetailSheet(props) {
432
451
  const { open, record, isHistory, cardId, invoiceToken, onClose } = props;
433
452
  const panelRef = useRef(null);
@@ -460,75 +479,75 @@ function RecordDetailSheet(props) {
460
479
  );
461
480
  };
462
481
  return createPortal(
463
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet", role: "presentation", children: [
464
- /* @__PURE__ */ jsx3("div", { className: "parking-sheet__mask", "aria-hidden": "true", onClick: onClose }),
482
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet fixed inset-0 z-[1000]", role: "presentation", children: [
483
+ /* @__PURE__ */ jsx3("div", { className: "parking-sheet__mask absolute inset-0 bg-scrim animate-[parking-sheet-fade-in_200ms_ease_both]", "aria-hidden": "true", onClick: onClose }),
465
484
  /* @__PURE__ */ jsxs3(
466
485
  "section",
467
486
  {
468
487
  ref: panelRef,
469
- className: "parking-sheet__panel",
488
+ className: "parking-sheet__panel absolute inset-x-0 bottom-0 flex max-h-[60vh] flex-col rounded-t-xl bg-card shadow-[0_-8px_32px_rgba(0,0,0,0.12)] animate-[parking-sheet-in_240ms_cubic-bezier(0.22,0.72,0.24,1)_both]",
470
489
  role: "dialog",
471
490
  "aria-modal": "true",
472
491
  "aria-labelledby": titleId,
473
492
  children: [
474
- /* @__PURE__ */ jsxs3("header", { className: "parking-sheet__header", children: [
475
- /* @__PURE__ */ jsx3("h2", { id: titleId, children: "\u8BA2\u5355\u8BE6\u60C5" }),
493
+ /* @__PURE__ */ jsxs3("header", { className: "parking-sheet__header flex items-center justify-between border-b border-border px-3 pb-1.5 pt-2.5", children: [
494
+ /* @__PURE__ */ jsx3("h2", { id: titleId, className: "m-0 text-base font-bold text-foreground", children: "\u8BA2\u5355\u8BE6\u60C5" }),
476
495
  /* @__PURE__ */ jsx3(
477
496
  "button",
478
497
  {
479
498
  ref: closeButtonRef,
480
499
  type: "button",
481
- className: "parking-sheet__close",
500
+ className: "parking-sheet__close flex size-5 cursor-pointer items-center justify-center rounded-full border-0 bg-muted text-secondary-foreground hover:bg-neutral-soft",
482
501
  "aria-label": "\u5173\u95ED\u8BA2\u5355\u8BE6\u60C5",
483
502
  onClick: onClose,
484
503
  children: /* @__PURE__ */ jsx3(X, { size: 20, weight: "bold" })
485
504
  }
486
505
  )
487
506
  ] }),
488
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__body", children: [
489
- /* @__PURE__ */ jsx3("div", { className: "parking-sheet__plate", children: /* @__PURE__ */ jsxs3("span", { className: "parking-plate", children: [
507
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__body flex-1 overflow-y-auto px-3 pb-5 pt-2.5", children: [
508
+ /* @__PURE__ */ jsx3("div", { className: "parking-sheet__plate mb-2", children: /* @__PURE__ */ jsxs3("span", { className: "parking-plate plate-lockup font-mono tabular-nums", children: [
490
509
  /* @__PURE__ */ jsx3("b", { children: plateParts(record.plateNo)[0] }),
491
510
  /* @__PURE__ */ jsx3("span", { children: plateParts(record.plateNo)[1] })
492
511
  ] }) }),
493
- /* @__PURE__ */ jsxs3("dl", { className: "parking-sheet__facts", children: [
494
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
495
- /* @__PURE__ */ jsx3("dt", { children: "\u8BA2\u5355\u53F7" }),
496
- /* @__PURE__ */ jsx3("dd", { children: record.recordRef })
512
+ /* @__PURE__ */ jsxs3("dl", { className: "parking-sheet__facts m-0 grid gap-1.5", children: [
513
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
514
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u8BA2\u5355\u53F7" }),
515
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.recordRef })
497
516
  ] }),
498
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
499
- /* @__PURE__ */ jsx3("dt", { children: "\u91D1\u989D" }),
500
- /* @__PURE__ */ jsx3("dd", { children: record.amountText })
517
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
518
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u91D1\u989D" }),
519
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.amountText })
501
520
  ] }),
502
- /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
503
- /* @__PURE__ */ jsx3("dt", { children: "\u72B6\u6001" }),
504
- /* @__PURE__ */ jsx3("dd", { className: recordStatusClass(record.status), children: recordStatusText(record.status, record.statusText) })
521
+ /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
522
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u72B6\u6001" }),
523
+ /* @__PURE__ */ jsx3("dd", { className: `${recordStatusClass(record.status)} m-0 break-all text-right text-xs ${recordTone(record.status)}`, children: recordStatusText(record.status, record.statusText) })
505
524
  ] }),
506
- record.paidAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
507
- /* @__PURE__ */ jsx3("dt", { children: "\u652F\u4ED8\u65F6\u95F4" }),
508
- /* @__PURE__ */ jsx3("dd", { children: record.paidAtText })
525
+ record.paidAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
526
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u652F\u4ED8\u65F6\u95F4" }),
527
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.paidAtText })
509
528
  ] }),
510
- record.plazaName && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
511
- /* @__PURE__ */ jsx3("dt", { children: "\u5E7F\u573A" }),
512
- /* @__PURE__ */ jsx3("dd", { children: record.plazaName })
529
+ record.plazaName && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
530
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u5E7F\u573A" }),
531
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.plazaName })
513
532
  ] }),
514
- record.parkName && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
515
- /* @__PURE__ */ jsx3("dt", { children: "\u505C\u8F66\u573A" }),
516
- /* @__PURE__ */ jsx3("dd", { children: record.parkName })
533
+ record.parkName && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
534
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u505C\u8F66\u573A" }),
535
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.parkName })
517
536
  ] }),
518
- record.entryAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
519
- /* @__PURE__ */ jsx3("dt", { children: "\u5165\u573A\u65F6\u95F4" }),
520
- /* @__PURE__ */ jsx3("dd", { children: record.entryAtText })
537
+ record.entryAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
538
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u5165\u573A\u65F6\u95F4" }),
539
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.entryAtText })
521
540
  ] }),
522
- record.exitAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row", children: [
523
- /* @__PURE__ */ jsx3("dt", { children: "\u51FA\u573A\u65F6\u95F4" }),
524
- /* @__PURE__ */ jsx3("dd", { children: record.exitAtText })
541
+ record.exitAtText && /* @__PURE__ */ jsxs3("div", { className: "parking-sheet__fact-row flex justify-between gap-2.5", children: [
542
+ /* @__PURE__ */ jsx3("dt", { className: "text-xs text-secondary-foreground", children: "\u51FA\u573A\u65F6\u95F4" }),
543
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 break-all text-right text-xs text-foreground", children: record.exitAtText })
525
544
  ] })
526
545
  ] }),
527
546
  !isHistory && record.invoiceEligible && !record.invoiceIssued && invoiceToken && /* @__PURE__ */ jsxs3(
528
547
  "button",
529
548
  {
530
549
  type: "button",
531
- className: "parking-sheet__invoice-btn",
550
+ className: "parking-sheet__invoice-btn mt-2.5 inline-flex min-h-6.5 w-full cursor-pointer items-center justify-center gap-1.5 rounded-full border-2 border-primary-foreground bg-primary-soft px-3 text-xs text-primary",
532
551
  "data-action-id": "parking.apply-invoice",
533
552
  onClick: () => act("parking.apply-invoice", record.recordRef, invoiceToken),
534
553
  children: [
@@ -537,7 +556,7 @@ function RecordDetailSheet(props) {
537
556
  ]
538
557
  }
539
558
  ),
540
- !isHistory && record.invoiceIssued && /* @__PURE__ */ jsx3("span", { className: "parking-sheet__invoiced", children: "\u5DF2\u7533\u8BF7\u5F00\u7968" })
559
+ !isHistory && record.invoiceIssued && /* @__PURE__ */ jsx3("span", { className: "parking-sheet__invoiced mt-2.5 flex min-h-6.5 w-full items-center justify-center text-xs text-success", children: "\u5DF2\u7533\u8BF7\u5F00\u7968" })
541
560
  ] })
542
561
  ]
543
562
  }
@@ -554,25 +573,25 @@ function ParkingPaymentRecordsCard(props) {
554
573
  const showAll = isHistory || expanded;
555
574
  const visible = collapsible && !showAll ? data.items.slice(0, PAGE_SIZE) : data.items;
556
575
  const invoiceToken = actionTokens?.["parking.apply-invoice"];
557
- return /* @__PURE__ */ jsxs3("section", { className: "parking-records", children: [
558
- /* @__PURE__ */ jsxs3("header", { className: "parking-records__head", children: [
559
- /* @__PURE__ */ jsxs3("div", { className: "parking-records__heading", children: [
560
- /* @__PURE__ */ jsx3("span", { className: "parking-records__head-icon", children: /* @__PURE__ */ jsx3(Receipt, { weight: "duotone", size: 24 }) }),
561
- /* @__PURE__ */ jsxs3("div", { children: [
562
- /* @__PURE__ */ jsx3("h4", { children: "\u7F34\u8D39\u8BB0\u5F55" }),
563
- /* @__PURE__ */ jsx3("p", { children: "\u8FD1 6 \u4E2A\u6708\u505C\u8F66\u7F34\u8D39\u660E\u7EC6" })
576
+ return /* @__PURE__ */ jsxs3("section", { className: "parking-records w-full bg-card p-3.5 text-foreground", children: [
577
+ /* @__PURE__ */ jsxs3("header", { className: "parking-records__head mb-2.5 flex items-center justify-between gap-2", children: [
578
+ /* @__PURE__ */ jsxs3("div", { className: "parking-records__heading flex min-w-0 items-center gap-2", children: [
579
+ /* @__PURE__ */ jsx3("span", { className: "parking-records__head-icon grid size-8 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", children: /* @__PURE__ */ jsx3(Receipt, { weight: "duotone", size: 24 }) }),
580
+ /* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-col", children: [
581
+ /* @__PURE__ */ jsx3("h4", { className: "truncate text-base font-bold leading-5.5 text-foreground", children: "\u7F34\u8D39\u8BB0\u5F55" }),
582
+ /* @__PURE__ */ jsx3("p", { className: "mt-1 text-xs leading-4 text-secondary-foreground", children: "\u8FD1 6 \u4E2A\u6708\u505C\u8F66\u7F34\u8D39\u660E\u7EC6" })
564
583
  ] })
565
584
  ] }),
566
- /* @__PURE__ */ jsxs3("span", { children: [
585
+ /* @__PURE__ */ jsxs3("span", { className: "shrink-0 text-xs text-secondary-foreground", children: [
567
586
  "\u5171 ",
568
587
  data.total,
569
588
  " \u6761"
570
589
  ] })
571
590
  ] }),
572
- visible.length === 0 ? /* @__PURE__ */ jsx3("div", { className: "parking-records__empty", children: "\u6682\u65E0\u7F34\u8D39\u8BB0\u5F55" }) : /* @__PURE__ */ jsx3("ul", { className: "parking-records__list", children: visible.map((r) => /* @__PURE__ */ jsxs3(
591
+ visible.length === 0 ? /* @__PURE__ */ jsx3("div", { className: "parking-records__empty py-5 text-center text-xs text-muted-foreground", children: "\u6682\u65E0\u7F34\u8D39\u8BB0\u5F55" }) : /* @__PURE__ */ jsx3("ul", { className: "parking-records__list m-0 grid list-none gap-1.5 p-0", children: visible.map((r) => /* @__PURE__ */ jsxs3(
573
592
  "li",
574
593
  {
575
- className: "parking-records__row",
594
+ className: "parking-records__row grid cursor-pointer grid-cols-[minmax(0,1fr)_auto] gap-x-2.5 gap-y-1 rounded-md border-2 border-border bg-muted px-2.5 py-2.25 transition-colors hover:border-primary-foreground hover:bg-primary-soft focus-visible:outline-none",
576
595
  role: isHistory ? void 0 : "button",
577
596
  tabIndex: isHistory ? void 0 : 0,
578
597
  onClick: isHistory ? void 0 : () => setSelectedRecord(r),
@@ -583,19 +602,19 @@ function ParkingPaymentRecordsCard(props) {
583
602
  }
584
603
  },
585
604
  children: [
586
- /* @__PURE__ */ jsxs3("div", { className: "parking-records__main", children: [
587
- /* @__PURE__ */ jsxs3("span", { className: "parking-records__plate parking-plate", children: [
605
+ /* @__PURE__ */ jsxs3("div", { className: "parking-records__main grid min-w-0 gap-1", children: [
606
+ /* @__PURE__ */ jsxs3("span", { className: "parking-records__plate parking-plate plate-lockup font-mono tabular-nums", children: [
588
607
  /* @__PURE__ */ jsx3("b", { children: plateParts(r.plateNo)[0] }),
589
608
  /* @__PURE__ */ jsx3("span", { children: plateParts(r.plateNo)[1] })
590
609
  ] }),
591
- /* @__PURE__ */ jsxs3("small", { children: [
610
+ /* @__PURE__ */ jsxs3("small", { className: "truncate text-xs leading-4 text-secondary-foreground", children: [
592
611
  r.paidAtText,
593
612
  r.parkName ? ` \xB7 ${r.parkName}` : ""
594
613
  ] })
595
614
  ] }),
596
- /* @__PURE__ */ jsxs3("div", { className: "parking-records__amount", children: [
597
- /* @__PURE__ */ jsx3("strong", { children: r.amountText }),
598
- /* @__PURE__ */ jsx3("em", { className: recordStatusClass(r.status), children: recordStatusText(r.status, r.statusText) })
615
+ /* @__PURE__ */ jsxs3("div", { className: "parking-records__amount grid content-start justify-items-end gap-0.5", children: [
616
+ /* @__PURE__ */ jsx3("strong", { className: "text-base font-bold leading-5.5 text-foreground", children: r.amountText }),
617
+ /* @__PURE__ */ jsx3("em", { className: `${recordStatusClass(r.status)} text-xs not-italic leading-4 ${recordTone(r.status)}`, children: recordStatusText(r.status, r.statusText) })
599
618
  ] })
600
619
  ]
601
620
  },
@@ -605,7 +624,7 @@ function ParkingPaymentRecordsCard(props) {
605
624
  "button",
606
625
  {
607
626
  type: "button",
608
- className: "parking-records__more",
627
+ className: "parking-records__more mt-2 flex min-h-7.5 w-full cursor-pointer items-center justify-center gap-1.5 rounded-md border-0 bg-muted text-xs text-secondary-foreground [&_svg]:transition-transform [&_svg[data-rotated]]:rotate-180",
609
628
  "aria-expanded": expanded,
610
629
  onClick: () => setExpanded((v) => !v),
611
630
  children: [
@@ -614,8 +633,8 @@ function ParkingPaymentRecordsCard(props) {
614
633
  ]
615
634
  }
616
635
  ),
617
- data.caveats.length > 0 && /* @__PURE__ */ jsx3("p", { className: "parking-records__caveats", children: data.caveats.join("\uFF1B") }),
618
- data.message && /* @__PURE__ */ jsx3("p", { className: "parking-records__message", children: data.message }),
636
+ data.caveats.length > 0 && /* @__PURE__ */ jsx3("p", { className: "parking-records__caveats mt-2.25 text-xs leading-4 text-muted-foreground", children: data.caveats.join("\uFF1B") }),
637
+ data.message && /* @__PURE__ */ jsx3("p", { className: "parking-records__message mt-2.25 rounded-md bg-primary-soft px-2 py-1.75 text-xs leading-4 text-primary", children: data.message }),
619
638
  /* @__PURE__ */ jsx3(
620
639
  RecordDetailSheet,
621
640
  {
@@ -704,7 +723,7 @@ function PlateKeyboard(props) {
704
723
  "button",
705
724
  {
706
725
  type: "button",
707
- className: "parking-kb__key",
726
+ className: "parking-kb__key h-6.5 min-w-0 rounded-sm bg-card text-xs font-semibold tabular-nums transition active:scale-95 active:bg-muted disabled:opacity-35",
708
727
  "data-kb-key": key,
709
728
  disabled: isKeyDisabled(state, key),
710
729
  title: key === "\u53F0" ? "\u6682\u4E0D\u652F\u6301\u53F0\u6E7E\u5730\u533A\u8F66\u724C" : void 0,
@@ -714,13 +733,13 @@ function PlateKeyboard(props) {
714
733
  key
715
734
  );
716
735
  if (state.panel === "province") {
717
- return /* @__PURE__ */ jsxs4("div", { className: "parking-kb", role: "group", "aria-label": "\u8F66\u724C\u7701\u4EFD\u952E\u76D8", children: [
736
+ return /* @__PURE__ */ jsxs4("div", { className: "parking-kb mt-1 grid grid-cols-10 gap-1.5 rounded-lg bg-muted p-1.5", role: "group", "aria-label": "\u8F66\u724C\u7701\u4EFD\u952E\u76D8", children: [
718
737
  PLATE_PROVINCES.map(charKey),
719
738
  /* @__PURE__ */ jsx4(
720
739
  "button",
721
740
  {
722
741
  type: "button",
723
- className: "parking-kb__key parking-kb__key--fn parking-kb__key--span2",
742
+ className: "parking-kb__key parking-kb__key--fn col-span-2 h-6.5 min-w-0 rounded-sm bg-muted text-xs font-medium text-secondary-foreground transition active:scale-95 active:bg-neutral-soft disabled:opacity-35",
724
743
  "data-kb-action": "letters",
725
744
  onClick: () => onSwitchPanel("alnum"),
726
745
  children: "\u5B57\u6BCD"
@@ -730,7 +749,7 @@ function PlateKeyboard(props) {
730
749
  "button",
731
750
  {
732
751
  type: "button",
733
- className: "parking-kb__key parking-kb__key--fn parking-kb__key--span3",
752
+ className: "parking-kb__key parking-kb__key--fn col-span-3 h-6.5 min-w-0 rounded-sm bg-muted text-xs font-medium text-secondary-foreground transition active:scale-95 active:bg-neutral-soft disabled:opacity-35",
734
753
  "data-kb-action": "backspace",
735
754
  "aria-label": "\u9000\u683C",
736
755
  onClick: onBackspace,
@@ -741,7 +760,7 @@ function PlateKeyboard(props) {
741
760
  "button",
742
761
  {
743
762
  type: "button",
744
- className: "parking-kb__key parking-kb__key--done parking-kb__key--span4",
763
+ className: "parking-kb__key parking-kb__key--done col-span-4 h-6.5 min-w-0 rounded-sm bg-primary text-xs font-semibold text-white transition active:bg-[var(--tbox-primary-dark,#2368ec)] disabled:opacity-35",
745
764
  "data-kb-action": "done",
746
765
  onClick: onDone,
747
766
  children: "\u5B8C\u6210"
@@ -749,7 +768,7 @@ function PlateKeyboard(props) {
749
768
  )
750
769
  ] });
751
770
  }
752
- return /* @__PURE__ */ jsxs4("div", { className: "parking-kb", role: "group", "aria-label": "\u8F66\u724C\u5B57\u6BCD\u6570\u5B57\u952E\u76D8", children: [
771
+ return /* @__PURE__ */ jsxs4("div", { className: "parking-kb mt-1 grid grid-cols-10 gap-1.5 rounded-lg bg-muted p-1.5", role: "group", "aria-label": "\u8F66\u724C\u5B57\u6BCD\u6570\u5B57\u952E\u76D8", children: [
753
772
  PLATE_DIGITS.map(charKey),
754
773
  PLATE_LETTERS.slice(0, 10).map(charKey),
755
774
  PLATE_LETTERS.slice(10, 20).map(charKey),
@@ -758,7 +777,7 @@ function PlateKeyboard(props) {
758
777
  "button",
759
778
  {
760
779
  type: "button",
761
- className: "parking-kb__key parking-kb__key--fn parking-kb__key--span3",
780
+ className: "parking-kb__key parking-kb__key--fn col-span-3 h-6.5 min-w-0 rounded-sm bg-muted text-xs font-medium text-secondary-foreground transition active:scale-95 active:bg-neutral-soft disabled:opacity-35",
762
781
  "data-kb-action": "province",
763
782
  onClick: () => onSwitchPanel("province"),
764
783
  children: "\u7701\u4EFD"
@@ -768,7 +787,7 @@ function PlateKeyboard(props) {
768
787
  "button",
769
788
  {
770
789
  type: "button",
771
- className: "parking-kb__key parking-kb__key--fn parking-kb__key--span3",
790
+ className: "parking-kb__key parking-kb__key--fn col-span-3 h-6.5 min-w-0 rounded-sm bg-muted text-xs font-medium text-secondary-foreground transition active:scale-95 active:bg-neutral-soft disabled:opacity-35",
772
791
  "data-kb-action": "backspace",
773
792
  "aria-label": "\u9000\u683C",
774
793
  onClick: onBackspace,
@@ -779,7 +798,7 @@ function PlateKeyboard(props) {
779
798
  "button",
780
799
  {
781
800
  type: "button",
782
- className: "parking-kb__key parking-kb__key--done parking-kb__key--span4",
801
+ className: "parking-kb__key parking-kb__key--done col-span-4 h-6.5 min-w-0 rounded-sm bg-primary text-xs font-semibold text-white transition active:bg-[var(--tbox-primary-dark,#2368ec)] disabled:opacity-35",
783
802
  "data-kb-action": "done",
784
803
  onClick: onDone,
785
804
  children: "\u5B8C\u6210"
@@ -851,14 +870,14 @@ function ParkingVehicleManagementCard(props) {
851
870
  };
852
871
  const cells = plateCells(plate);
853
872
  const activeCell = kbOpen ? kb.cursor : plateFocused ? Math.min(plate.length, PLATE_CELL_COUNT - 1) : -1;
854
- const renderPlateField = () => /* @__PURE__ */ jsxs5("div", { className: "parking-vm__plate-field", children: [
855
- /* @__PURE__ */ jsx5("span", { className: "parking-vm__plate-label", children: "\u8F66\u724C" }),
856
- /* @__PURE__ */ jsxs5("div", { className: "parking-vm__plate-cells", children: [
873
+ const renderPlateField = () => /* @__PURE__ */ jsxs5("div", { className: "parking-vm__plate-field mb-1.75 flex items-center gap-2.25", children: [
874
+ /* @__PURE__ */ jsx5("span", { className: "parking-vm__plate-label shrink-0 text-sm font-semibold text-foreground", children: "\u8F66\u724C" }),
875
+ /* @__PURE__ */ jsxs5("div", { className: "parking-vm__plate-cells relative flex min-w-0 flex-1 cursor-text items-center gap-1", children: [
857
876
  /* @__PURE__ */ jsx5(
858
877
  "input",
859
878
  {
860
879
  ref: plateInputRef,
861
- className: "parking-vm__plate-native",
880
+ className: "parking-vm__plate-native pointer-events-none absolute inset-0 w-full cursor-text border-0 bg-transparent p-0 text-transparent caret-transparent outline-none",
862
881
  value: plate,
863
882
  maxLength: PLATE_CELL_COUNT,
864
883
  autoCapitalize: "characters",
@@ -882,13 +901,13 @@ function ParkingVehicleManagementCard(props) {
882
901
  cells.map((ch, i) => {
883
902
  const active = (kbOpen || plateFocused) && i === activeCell;
884
903
  return /* @__PURE__ */ jsxs5(Fragment, { children: [
885
- i === 2 && /* @__PURE__ */ jsx5("i", { className: "parking-vm__plate-dot", "aria-hidden": "true" }),
904
+ i === 2 && /* @__PURE__ */ jsx5("i", { className: "parking-vm__plate-dot size-1 shrink-0 rounded-full bg-border-strong", "aria-hidden": "true" }),
886
905
  /* @__PURE__ */ jsx5(
887
906
  "span",
888
907
  {
889
908
  className: [
890
- "parking-vm__plate-cell",
891
- active ? "parking-vm__plate-cell--active" : ""
909
+ "parking-vm__plate-cell flex h-10.5 min-w-0 flex-1 items-center justify-center rounded-md border-2 border-transparent bg-muted text-base font-semibold tabular-nums transition-colors",
910
+ active ? "parking-vm__plate-cell--active border-primary bg-card" : ""
892
911
  ].filter(Boolean).join(" "),
893
912
  onClick: () => handleCellsClick(i),
894
913
  children: ch
@@ -919,18 +938,18 @@ function ParkingVehicleManagementCard(props) {
919
938
  const showCompose = isEmpty || composing;
920
939
  const canCancel = !isEmpty;
921
940
  const showEnrollGuide = data.membership?.state === "not_enrolled" && !isHistory;
922
- return /* @__PURE__ */ jsxs5("section", { className: `parking-vm${showCompose ? " parking-vm--composing" : ""}`, children: [
923
- /* @__PURE__ */ jsxs5("header", { className: "parking-vm__head", children: [
924
- /* @__PURE__ */ jsx5("span", { className: "parking-vm__head-icon", children: /* @__PURE__ */ jsx5(Car2, { weight: "duotone", size: 24 }) }),
925
- /* @__PURE__ */ jsxs5("div", { className: "parking-vm__heading", children: [
926
- /* @__PURE__ */ jsx5("h4", { children: showCompose ? "\u6DFB\u52A0\u8F66\u8F86" : "\u6211\u7684\u8F66\u8F86" }),
927
- /* @__PURE__ */ jsx5("p", { children: "\u8F66\u8F86\u7528\u4E8E\u7F34\u8D39\u4E0E\u6743\u76CA\u6298\u6263" })
941
+ return /* @__PURE__ */ jsxs5("section", { className: `parking-vm grid w-full gap-2.75 bg-card p-3.5 text-foreground ${showCompose ? " parking-vm--composing" : ""}`, children: [
942
+ /* @__PURE__ */ jsxs5("header", { className: "parking-vm__head mb-3 flex items-center gap-2", children: [
943
+ /* @__PURE__ */ jsx5("span", { className: "parking-vm__head-icon grid size-8 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", children: /* @__PURE__ */ jsx5(Car2, { weight: "duotone", size: 24 }) }),
944
+ /* @__PURE__ */ jsxs5("div", { className: "parking-vm__heading flex min-w-0 flex-1 flex-col", children: [
945
+ /* @__PURE__ */ jsx5("h4", { className: "truncate text-base font-bold leading-5.5 text-foreground", children: showCompose ? "\u6DFB\u52A0\u8F66\u8F86" : "\u6211\u7684\u8F66\u8F86" }),
946
+ /* @__PURE__ */ jsx5("p", { className: "mt-1 text-xs leading-4 text-secondary-foreground", children: "\u8F66\u8F86\u7528\u4E8E\u7F34\u8D39\u4E0E\u6743\u76CA\u6298\u6263" })
928
947
  ] }),
929
948
  showCompose ? canCancel && /* @__PURE__ */ jsx5(
930
949
  "button",
931
950
  {
932
951
  type: "button",
933
- className: "parking-vm__head-btn",
952
+ className: "parking-vm__head-btn inline-flex shrink-0 items-center gap-1 rounded-full border-0 bg-muted px-2.25 py-1 text-xs text-secondary-foreground active:opacity-70",
934
953
  onClick: () => {
935
954
  setComposing(false);
936
955
  setPlate("");
@@ -944,7 +963,7 @@ function ParkingVehicleManagementCard(props) {
944
963
  "button",
945
964
  {
946
965
  type: "button",
947
- className: "parking-vm__head-btn parking-vm__head-btn--add",
966
+ className: "parking-vm__head-btn parking-vm__head-btn--add inline-flex shrink-0 items-center gap-1 rounded-full border-0 bg-primary-soft px-2.25 py-1 text-xs font-semibold text-primary active:opacity-70",
948
967
  disabled: !bindToken || boundLimit,
949
968
  title: boundLimit ? "\u6700\u591A\u7ED1\u5B9A 3 \u8F86\u8F66" : void 0,
950
969
  onClick: () => {
@@ -976,55 +995,55 @@ function ParkingVehicleManagementCard(props) {
976
995
  "button",
977
996
  {
978
997
  type: "button",
979
- className: `parking-vm__primary-btn parking-payment__action parking-payment__action--primary${bindingAction === "bind" ? " parking-vm__btn--loading" : ""}`,
998
+ className: `parking-vm__primary-btn flex min-h-9 w-full items-center justify-center gap-1 whitespace-nowrap rounded-full border-2 border-primary bg-primary px-2.5 text-sm font-bold text-white shadow-md disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:shadow-none ${bindingAction === "bind" ? " opacity-70" : ""}`,
980
999
  disabled: isBindingPending || isHistory || !bindToken || !valid,
981
1000
  onClick: () => act("parking.bind-vehicle", bindToken),
982
1001
  children: [
983
- bindingAction === "bind" && /* @__PURE__ */ jsx5("span", { className: "parking-vm__spinner", "aria-hidden": "true" }),
1002
+ bindingAction === "bind" && /* @__PURE__ */ jsx5("span", { className: "parking-vm__spinner inline-flex size-5.5 shrink-0 animate-spin rounded-full border-[3px] border-white-line border-t-white", "aria-hidden": "true" }),
984
1003
  bindingAction === "bind" ? "\u7ED1\u5B9A\u4E2D\u2026" : "\u786E\u8BA4\u7ED1\u5B9A"
985
1004
  ]
986
1005
  }
987
1006
  )
988
1007
  ] }) : /* @__PURE__ */ jsxs5(Fragment2, { children: [
989
- isEmpty ? /* @__PURE__ */ jsx5("p", { className: "parking-vm__empty", children: "\u8FD8\u6CA1\u6709\u7ED1\u5B9A\u8F66\u8F86" }) : /* @__PURE__ */ jsx5("ul", { className: "parking-vm__bound", children: data.bound.map((v) => {
1008
+ isEmpty ? /* @__PURE__ */ jsx5("p", { className: "parking-vm__empty", children: "\u8FD8\u6CA1\u6709\u7ED1\u5B9A\u8F66\u8F86" }) : /* @__PURE__ */ jsx5("ul", { className: "parking-vm__bound grid list-none gap-1.5 p-0", children: data.bound.map((v) => {
990
1009
  const isUnbinding = unbindingRefs.has(v.vehicleRef);
991
1010
  const [prefix, rest] = plateParts(v.plateNo);
992
- return /* @__PURE__ */ jsxs5("li", { className: "parking-vm__vehicle", children: [
993
- /* @__PURE__ */ jsx5("span", { className: "parking-vm__vehicle-icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx5(Car2, { size: 19, weight: "fill" }) }),
994
- /* @__PURE__ */ jsxs5("span", { className: "parking-vm__vehicle-copy", children: [
995
- /* @__PURE__ */ jsxs5("span", { className: "parking-plate", children: [
1011
+ return /* @__PURE__ */ jsxs5("li", { className: "parking-vm__vehicle flex items-center gap-1.75 rounded-md border-2 border-border bg-muted px-2.5 py-2.25", children: [
1012
+ /* @__PURE__ */ jsx5("span", { className: "parking-vm__vehicle-icon grid size-6.5 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", "aria-hidden": "true", children: /* @__PURE__ */ jsx5(Car2, { size: 19, weight: "fill" }) }),
1013
+ /* @__PURE__ */ jsxs5("span", { className: "parking-vm__vehicle-copy flex min-w-0 flex-1 items-center gap-1.5", children: [
1014
+ /* @__PURE__ */ jsxs5("span", { className: "parking-plate plate-lockup truncate text-base font-semibold", children: [
996
1015
  /* @__PURE__ */ jsx5("b", { children: prefix }),
997
- rest && /* @__PURE__ */ jsx5("i", { className: "parking-plate__sep", "aria-hidden": "true", children: "\xB7" }),
1016
+ rest && /* @__PURE__ */ jsx5("i", { className: "parking-plate__sep mx-0.5 font-normal not-italic text-muted-foreground", "aria-hidden": "true", children: "\xB7" }),
998
1017
  /* @__PURE__ */ jsx5("span", { children: rest })
999
1018
  ] }),
1000
- v.parked === true && /* @__PURE__ */ jsx5("em", { className: "parking-vm__vehicle-state", children: "\u5DF2\u5165\u573A" })
1019
+ v.parked === true && /* @__PURE__ */ jsx5("em", { className: "parking-vm__vehicle-state shrink-0 rounded-full bg-success-soft px-1.5 py-0.5 text-xs font-medium not-italic leading-3.5 text-success", children: "\u5DF2\u5165\u573A" })
1001
1020
  ] }),
1002
- /* @__PURE__ */ jsx5("div", { className: "parking-vm__vehicle-actions", children: /* @__PURE__ */ jsx5(
1021
+ /* @__PURE__ */ jsx5("div", { className: "parking-vm__vehicle-actions flex shrink-0 gap-1.5", children: /* @__PURE__ */ jsx5(
1003
1022
  "button",
1004
1023
  {
1005
1024
  type: "button",
1006
1025
  "data-action-id": "parking.unbind-vehicle",
1007
1026
  disabled: isHistory || isUnbinding || !unbindToken,
1008
- className: isUnbinding ? "parking-vm__btn--loading" : "",
1027
+ className: `inline-flex size-7 items-center justify-center rounded-full border-0 bg-card text-muted-foreground active:bg-muted active:text-primary ${isUnbinding ? "parking-vm__btn--loading" : ""}`,
1009
1028
  onClick: () => vehicleAction("parking.unbind-vehicle", v.vehicleRef, unbindToken),
1010
1029
  title: "\u5220\u9664\u8F66\u8F86",
1011
1030
  "aria-label": `\u5220\u9664\u8F66\u724C ${v.plateNo}`,
1012
- children: isUnbinding ? /* @__PURE__ */ jsx5("span", { className: "parking-vm__spinner", "aria-hidden": "true" }) : /* @__PURE__ */ jsx5(TrashSimple, { size: 16, weight: "fill" })
1031
+ children: isUnbinding ? /* @__PURE__ */ jsx5("span", { className: "parking-vm__spinner inline-flex size-5.5 shrink-0 animate-spin rounded-full border-[3px] border-white-line border-t-white", "aria-hidden": "true" }) : /* @__PURE__ */ jsx5(TrashSimple, { size: 16, weight: "fill" })
1013
1032
  }
1014
1033
  ) })
1015
1034
  ] }, v.vehicleRef);
1016
1035
  }) }),
1017
- showEnrollGuide && /* @__PURE__ */ jsxs5("div", { className: "parking-vm__enroll", children: [
1018
- /* @__PURE__ */ jsx5("span", { className: "parking-vm__enroll-icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx5(SealCheck, { size: 22, weight: "fill" }) }),
1019
- /* @__PURE__ */ jsxs5("div", { className: "parking-vm__enroll-copy", children: [
1020
- /* @__PURE__ */ jsx5("strong", { children: "\u5165\u4F1A\u4EAB\u505C\u8F66\u6743\u76CA" }),
1021
- /* @__PURE__ */ jsx5("small", { children: "\u79EF\u5206\u53EF\u62B5\u6263\u505C\u8F66\u8D39\uFF0C\u4F1A\u5458\u53E6\u4EAB\u6298\u6263" })
1036
+ showEnrollGuide && /* @__PURE__ */ jsxs5("div", { className: "parking-vm__enroll flex items-center gap-1.75 rounded-lg bg-warn-surface p-2.25", children: [
1037
+ /* @__PURE__ */ jsx5("span", { className: "parking-vm__enroll-icon grid size-6 shrink-0 place-items-center rounded-full bg-warning text-white", "aria-hidden": "true", children: /* @__PURE__ */ jsx5(SealCheck, { size: 22, weight: "fill" }) }),
1038
+ /* @__PURE__ */ jsxs5("div", { className: "parking-vm__enroll-copy min-w-0 flex-1", children: [
1039
+ /* @__PURE__ */ jsx5("strong", { className: "block truncate text-xs font-bold leading-4.5 text-warn-ink", children: "\u5165\u4F1A\u4EAB\u505C\u8F66\u6743\u76CA" }),
1040
+ /* @__PURE__ */ jsx5("small", { className: "block text-xs leading-4 text-warn-ink", children: "\u79EF\u5206\u53EF\u62B5\u6263\u505C\u8F66\u8D39\uFF0C\u4F1A\u5458\u53E6\u4EAB\u6298\u6263" })
1022
1041
  ] }),
1023
1042
  /* @__PURE__ */ jsx5(
1024
1043
  "button",
1025
1044
  {
1026
1045
  type: "button",
1027
- className: "parking-vm__enroll-btn",
1046
+ className: "parking-vm__enroll-btn shrink-0 rounded-full border-0 bg-warning px-3 py-1.5 text-xs font-semibold text-white active:opacity-85",
1028
1047
  onClick: () => sendCardAction4(cardId, { type: "sendMessage", value: "\u6211\u8981\u5165\u4F1A", visible: true }),
1029
1048
  children: "\u7ACB\u5373\u5165\u4F1A"
1030
1049
  }
@@ -1046,17 +1065,17 @@ var KIND_META = {
1046
1065
  function ParkingInfoCard(props) {
1047
1066
  const { data } = props;
1048
1067
  const { subtitle, Icon } = KIND_META[data.kind];
1049
- return /* @__PURE__ */ jsxs6("section", { className: "parking-info", children: [
1050
- /* @__PURE__ */ jsxs6("header", { className: "parking-info__head", children: [
1051
- /* @__PURE__ */ jsx6("span", { className: "parking-info__head-icon", children: /* @__PURE__ */ jsx6(Icon, { weight: "duotone", size: 24 }) }),
1052
- /* @__PURE__ */ jsxs6("div", { className: "parking-info__heading", children: [
1053
- /* @__PURE__ */ jsx6("h4", { children: data.title }),
1054
- /* @__PURE__ */ jsx6("p", { children: subtitle })
1068
+ return /* @__PURE__ */ jsxs6("section", { className: "parking-info w-full bg-card p-3.5 text-foreground", children: [
1069
+ /* @__PURE__ */ jsxs6("header", { className: "parking-info__head mb-3 flex items-center gap-2", children: [
1070
+ /* @__PURE__ */ jsx6("span", { className: "parking-info__head-icon grid size-8 shrink-0 place-items-center rounded-md bg-primary-soft text-primary", children: /* @__PURE__ */ jsx6(Icon, { weight: "duotone", size: 24 }) }),
1071
+ /* @__PURE__ */ jsxs6("div", { className: "parking-info__heading flex min-w-0 flex-col", children: [
1072
+ /* @__PURE__ */ jsx6("h4", { className: "truncate text-base font-bold leading-5.5 text-foreground", children: data.title }),
1073
+ /* @__PURE__ */ jsx6("p", { className: "mt-1 text-xs leading-4 text-secondary-foreground", children: subtitle })
1055
1074
  ] })
1056
1075
  ] }),
1057
- /* @__PURE__ */ jsx6("dl", { className: "parking-info__entries", children: data.entries.map((e) => /* @__PURE__ */ jsxs6("div", { className: "parking-info__entry", children: [
1058
- /* @__PURE__ */ jsx6("dt", { children: e.label }),
1059
- /* @__PURE__ */ jsx6("dd", { children: e.value })
1076
+ /* @__PURE__ */ jsx6("dl", { className: "parking-info__entries grid gap-1.5", children: data.entries.map((e) => /* @__PURE__ */ jsxs6("div", { className: "parking-info__entry flex justify-between gap-2.5 rounded-md border-2 border-border bg-muted px-2.5 py-2.25 text-xs leading-4.5", children: [
1077
+ /* @__PURE__ */ jsx6("dt", { className: "shrink-0 text-secondary-foreground", children: e.label }),
1078
+ /* @__PURE__ */ jsx6("dd", { className: "text-right font-medium break-words text-foreground", children: e.value })
1060
1079
  ] }, e.label)) })
1061
1080
  ] });
1062
1081
  }