@bearmenu/ui 0.8.9 → 0.8.11
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/chunk-24RFI4RQ.js +167 -0
- package/dist/{chunk-UKBNQO6Q.js → chunk-2CXU5WZO.js} +1 -1
- package/dist/chunk-2XCZJWTV.js +121 -0
- package/dist/{chunk-62ES6N32.js → chunk-43RC7MHY.js} +1 -1
- package/dist/chunk-5RWTOT5Y.js +72 -0
- package/dist/{chunk-Q6QH52LJ.js → chunk-6TEEY5YA.js} +2 -2
- package/dist/{chunk-AXV5O2IZ.js → chunk-AKQ57NXY.js} +3 -3
- package/dist/chunk-CLLY6XB3.js +41 -0
- package/dist/chunk-DTXNDLSE.js +125 -0
- package/dist/chunk-F6FMZJDG.js +113 -0
- package/dist/{chunk-2WDJR6K7.js → chunk-G7IFL4Z4.js} +4 -1
- package/dist/chunk-H3ZZDX5L.js +61 -0
- package/dist/{chunk-H3BV4VAG.js → chunk-JS3EINZD.js} +2 -2
- package/dist/chunk-MZL7CGCL.js +109 -0
- package/dist/{chunk-TH6W2PWG.js → chunk-UDTG3RSE.js} +1 -1
- package/dist/chunk-WCTHZKU7.js +37 -0
- package/dist/{chunk-TT3WFS6S.js → chunk-YOKHBAIH.js} +11 -11
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.d.ts +2 -2
- package/dist/components/avatar.d.ts +3 -3
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/card.d.ts +4 -4
- package/dist/components/carousel.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command.d.ts +2 -2
- package/dist/components/concept-compare-rail.d.ts +50 -0
- package/dist/components/concept-compare-rail.js +5 -0
- package/dist/components/concept-compare.d.ts +75 -38
- package/dist/components/concept-compare.js +209 -133
- package/dist/components/concept-convergence.d.ts +41 -0
- package/dist/components/concept-convergence.js +53 -0
- package/dist/components/convergence.d.ts +25 -0
- package/dist/components/convergence.js +4 -0
- package/dist/components/dialog.d.ts +2 -2
- package/dist/components/empty-state.js +1 -1
- package/dist/components/event-card.js +1 -1
- package/dist/components/event-compact-row.js +1 -1
- package/dist/components/event-detail-panel.js +2 -2
- package/dist/components/event-index-row.js +1 -1
- package/dist/components/event-list-row-wide.js +2 -2
- package/dist/components/event-list-row.js +2 -2
- package/dist/components/explainer-steps.d.ts +34 -0
- package/dist/components/explainer-steps.js +36 -0
- package/dist/components/filter-category-row.js +1 -1
- package/dist/components/glass-ground.d.ts +61 -0
- package/dist/components/glass-ground.js +3 -0
- package/dist/components/haptic-button.js +1 -1
- package/dist/components/hub-surface.js +11 -1
- package/dist/components/hue-chip.d.ts +70 -0
- package/dist/components/hue-chip.js +3 -0
- package/dist/components/input-group.d.ts +2 -2
- package/dist/components/input.d.ts +1 -1
- package/dist/components/item.d.ts +4 -4
- package/dist/components/kbd.d.ts +2 -2
- package/dist/components/kitchen-dossier.d.ts +88 -0
- package/dist/components/kitchen-dossier.js +186 -0
- package/dist/components/link-button.js +1 -1
- package/dist/components/menu-dead-end.d.ts +56 -0
- package/dist/components/menu-dead-end.js +49 -0
- package/dist/components/menu-family-block.d.ts +98 -0
- package/dist/components/menu-family-block.js +153 -0
- package/dist/components/menu-family-card.d.ts +33 -27
- package/dist/components/menu-family-card.js +41 -85
- package/dist/components/menu-field.js +92 -2
- package/dist/components/menu-filter-chips.d.ts +86 -0
- package/dist/components/menu-filter-chips.js +122 -0
- package/dist/components/menu-group-rows.d.ts +53 -0
- package/dist/components/menu-group-rows.js +67 -0
- package/dist/components/menu-hub-hero.js +10 -5
- package/dist/components/menu-index-header.d.ts +37 -0
- package/dist/components/menu-index-header.js +68 -0
- package/dist/components/menu-index-list.d.ts +48 -0
- package/dist/components/menu-index-list.js +96 -0
- package/dist/components/menu-intent-hero.d.ts +69 -0
- package/dist/components/menu-intent-hero.js +87 -0
- package/dist/components/menu-item.js +3 -3
- package/dist/components/menu-kitchen-list.d.ts +82 -0
- package/dist/components/menu-kitchen-list.js +5 -0
- package/dist/components/menu-mocks.d.ts +37 -2
- package/dist/components/menu-mocks.js +152 -27
- package/dist/components/menu-types.d.ts +182 -6
- package/dist/components/motion-icon-controls.js +2 -2
- package/dist/components/motion-icon-set.js +6 -6
- package/dist/components/motion-icon.d.ts +22 -1
- package/dist/components/motion-icon.js +1 -1
- package/dist/components/multi-select-combobox.js +2 -2
- package/dist/components/native-select.d.ts +2 -2
- package/dist/components/pagination.js +1 -1
- package/dist/components/photo-ground.d.ts +64 -0
- package/dist/components/photo-ground.js +3 -0
- package/dist/components/place-about-tab.js +2 -2
- package/dist/components/place-details-mobile.js +3 -3
- package/dist/components/place-types.d.ts +2 -2
- package/dist/components/qa-block.d.ts +36 -0
- package/dist/components/qa-block.js +24 -0
- package/dist/components/scroll-fade.js +3 -121
- package/dist/components/searchable-select.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/signature-chip.d.ts +2 -2
- package/dist/components/signature-chip.js +2 -2
- package/dist/components/sliding-panels.js +1 -1
- package/dist/components/snap-rail.d.ts +26 -3
- package/dist/components/snap-rail.js +3 -109
- package/dist/components/spinner.d.ts +4 -4
- package/dist/components/story.d.ts +34 -0
- package/dist/components/story.js +3 -0
- package/dist/components/tag.d.ts +4 -4
- package/dist/components/text.d.ts +5 -5
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/top-comparison.d.ts +28 -0
- package/dist/components/top-comparison.js +76 -0
- package/dist/components/top-cross-link.d.ts +34 -0
- package/dist/components/top-cross-link.js +101 -0
- package/dist/components/top-ranking-entry.d.ts +53 -0
- package/dist/components/top-ranking-entry.js +217 -0
- package/dist/components/top-ranking-hero.d.ts +61 -0
- package/dist/components/top-ranking-hero.js +99 -0
- package/dist/components/top-ranking-legend.d.ts +69 -0
- package/dist/components/top-ranking-legend.js +124 -0
- package/dist/components/top-types.d.ts +109 -0
- package/dist/components/top-types.js +1 -0
- package/dist/components/venue-grade-dimensions.d.ts +3 -1
- package/dist/components/venue-grade-dimensions.js +1 -1
- package/dist/components/venue-quotes.d.ts +1 -1
- package/dist/components/venue-quotes.js +1 -1
- package/dist/components/venue-wall.js +5 -3
- package/dist/components/weekday-theme-banner.js +1 -1
- package/dist/components/weekend-panel.js +2 -2
- package/package.json +1 -1
- package/src/components/badge.tsx +1 -1
- package/src/components/button.tsx +2 -2
- package/src/components/concept-compare-rail.tsx +132 -0
- package/src/components/concept-compare.stories.tsx +122 -54
- package/src/components/concept-compare.tsx +368 -196
- package/src/components/concept-convergence.stories.tsx +53 -0
- package/src/components/concept-convergence.tsx +90 -0
- package/src/components/convergence.stories.tsx +54 -0
- package/src/components/convergence.tsx +177 -0
- package/src/components/explainer-steps.stories.tsx +46 -0
- package/src/components/explainer-steps.tsx +74 -0
- package/src/components/glass-ground.tsx +104 -0
- package/src/components/hub-surface.tsx +11 -1
- package/src/components/hue-chip.stories.tsx +76 -0
- package/src/components/hue-chip.test.tsx +62 -0
- package/src/components/hue-chip.tsx +99 -0
- package/src/components/kitchen-dossier.stories.tsx +108 -0
- package/src/components/kitchen-dossier.tsx +321 -0
- package/src/components/menu-dead-end.stories.tsx +67 -0
- package/src/components/menu-dead-end.tsx +127 -0
- package/src/components/menu-family-block.stories.tsx +91 -0
- package/src/components/menu-family-block.tsx +303 -0
- package/src/components/menu-family-card.stories.tsx +43 -35
- package/src/components/menu-family-card.tsx +115 -142
- package/src/components/menu-filter-chips.stories.tsx +107 -0
- package/src/components/menu-filter-chips.tsx +238 -0
- package/src/components/menu-group-rows.stories.tsx +54 -0
- package/src/components/menu-group-rows.tsx +133 -0
- package/src/components/menu-hub-hero.test.tsx +39 -0
- package/src/components/menu-hub-hero.tsx +17 -5
- package/src/components/menu-index-header.stories.tsx +72 -0
- package/src/components/menu-index-header.tsx +125 -0
- package/src/components/menu-index-list.stories.tsx +50 -0
- package/src/components/menu-index-list.tsx +149 -0
- package/src/components/menu-intent-hero.stories.tsx +67 -0
- package/src/components/menu-intent-hero.tsx +189 -0
- package/src/components/menu-kitchen-list.stories.tsx +67 -0
- package/src/components/menu-kitchen-list.test.tsx +78 -0
- package/src/components/menu-kitchen-list.tsx +284 -0
- package/src/components/menu-mocks.ts +198 -23
- package/src/components/menu-types.ts +189 -6
- package/src/components/motion-icon-controls.tsx +11 -11
- package/src/components/motion-icon-set.tsx +6 -5
- package/src/components/motion-icon.test.tsx +23 -1
- package/src/components/motion-icon.tsx +20 -0
- package/src/components/photo-ground.tsx +147 -0
- package/src/components/place-types.ts +2 -2
- package/src/components/qa-block.stories.tsx +43 -0
- package/src/components/qa-block.tsx +60 -0
- package/src/components/signature-chip.tsx +3 -3
- package/src/components/snap-rail.tsx +58 -15
- package/src/components/story.tsx +225 -0
- package/src/components/top-comparison.stories.tsx +78 -0
- package/src/components/top-comparison.tsx +151 -0
- package/src/components/top-cross-link.stories.tsx +84 -0
- package/src/components/top-cross-link.tsx +171 -0
- package/src/components/top-ranking-entry.stories.tsx +171 -0
- package/src/components/top-ranking-entry.test.tsx +105 -0
- package/src/components/top-ranking-entry.tsx +425 -0
- package/src/components/top-ranking-hero.stories.tsx +76 -0
- package/src/components/top-ranking-hero.tsx +218 -0
- package/src/components/top-ranking-legend.stories.tsx +78 -0
- package/src/components/top-ranking-legend.tsx +239 -0
- package/src/components/top-types.ts +110 -0
- package/src/components/venue-grade-dimensions.tsx +2 -2
- package/src/components/venue-quotes.stories.tsx +1 -1
- package/src/components/venue-quotes.tsx +4 -2
- package/src/components/venue-wall.tsx +9 -4
- package/src/components/weekday-theme-banner.tsx +1 -1
- package/dist/chunk-THOVPZNN.js +0 -37
- package/dist/chunk-YS6BHKZO.js +0 -92
- package/dist/components/ranked-venue-list.d.ts +0 -49
- package/dist/components/ranked-venue-list.js +0 -87
- package/dist/components/signature-line-list.d.ts +0 -45
- package/dist/components/signature-line-list.js +0 -99
- package/dist/components/venue-busyness-strip.d.ts +0 -35
- package/dist/components/venue-busyness-strip.js +0 -37
- package/dist/components/venue-signature-block.d.ts +0 -39
- package/dist/components/venue-signature-block.js +0 -6
- package/dist/components/venue-spotlight.d.ts +0 -74
- package/dist/components/venue-spotlight.js +0 -138
- package/src/components/ranked-venue-list.stories.tsx +0 -80
- package/src/components/ranked-venue-list.tsx +0 -177
- package/src/components/signature-line-list.stories.tsx +0 -85
- package/src/components/signature-line-list.tsx +0 -136
- package/src/components/venue-busyness-strip.stories.tsx +0 -66
- package/src/components/venue-busyness-strip.tsx +0 -64
- package/src/components/venue-signature-block.stories.tsx +0 -68
- package/src/components/venue-signature-block.tsx +0 -71
- package/src/components/venue-spotlight.stories.tsx +0 -141
- package/src/components/venue-spotlight.tsx +0 -236
- package/dist/{chunk-XWMRABZW.js → chunk-HSIYYA2E.js} +1 -1
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { Camera, Star } from "lucide-react";
|
|
2
|
-
import { cn } from "../lib/utils";
|
|
3
|
-
import { Separator } from "./separator";
|
|
4
|
-
import { VenueGradeDimensions, type VenueGradeDimensionKey } from "./venue-grade-dimensions";
|
|
5
|
-
import { VenueQuotes } from "./venue-quotes";
|
|
6
|
-
import { VenueSignatureBlock } from "./venue-signature-block";
|
|
7
|
-
import type { MenuItemLabels } from "./menu-item";
|
|
8
|
-
import type { MenuVenueSignature, MenuLinkProps, MenuLinkComponent } from "./menu-types";
|
|
9
|
-
import type { CitedText, PlacePreview } from "./place-types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* VenueSpotlight — one venue given real space: photograph, what it is known
|
|
13
|
-
* for, what reviewers say, how it grades, and when it fills up.
|
|
14
|
-
*
|
|
15
|
-
* The photograph IS the point of this surface. It is the one module on a menu
|
|
16
|
-
* hub that shows an image, and it can, because venue photography is real and
|
|
17
|
-
* licensed where item photography is generated. Absent a photo it degrades to
|
|
18
|
-
* the same diagonal texture the hero uses, never to a bare icon.
|
|
19
|
-
*
|
|
20
|
-
* ## Composed from exported parts
|
|
21
|
-
*
|
|
22
|
-
* `VenueSignatureBlock`, `VenueQuotes`, `VenueGradeDimensions` and
|
|
23
|
-
* `VenueBusynessStrip` are each exported on their own. This composite is the
|
|
24
|
-
* arrangement the hub wants; a consumer filming a single panel, or building a
|
|
25
|
-
* narrower variant, takes the parts instead. Everything here is layout — no
|
|
26
|
-
* part is reachable only through the composite.
|
|
27
|
-
*
|
|
28
|
-
* No directive: it renders on the server unless `onCite` is passed through to
|
|
29
|
-
* the quotes.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/** @deprecated Alias of `MenuLinkProps`; kept so existing imports keep working. */
|
|
33
|
-
export type VenueSpotlightLinkProps = MenuLinkProps;
|
|
34
|
-
|
|
35
|
-
function DefaultLink({ href, ...props }: VenueSpotlightLinkProps) {
|
|
36
|
-
return <a href={href} {...props} />;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type VenueSpotlightLabels = {
|
|
40
|
-
/** Overlay on the photograph, e.g. "venue photograph". */
|
|
41
|
-
photoCredit?: string;
|
|
42
|
-
/** Composed open state, e.g. "Kitchen open until 23:00". Absent when closed or unknown. */
|
|
43
|
-
openUntil?: string;
|
|
44
|
-
/** Kicker over the signature, e.g. "WHAT IT IS KNOWN FOR". */
|
|
45
|
-
signatureKicker: string;
|
|
46
|
-
/** Composed review count, e.g. "318 reviews". */
|
|
47
|
-
reviewCount?: string;
|
|
48
|
-
/** Dimension key → translated label. */
|
|
49
|
-
dimensions: Partial<Record<VenueGradeDimensionKey, string>>;
|
|
50
|
-
/** Tag code → translated label. Missing codes render the raw code. */
|
|
51
|
-
tags?: Record<string, string>;
|
|
52
|
-
/** Composed value verdict, e.g. "Good value". */
|
|
53
|
-
valueVerdict?: string;
|
|
54
|
-
/** Composed busyness sentence. */
|
|
55
|
-
busyness?: string;
|
|
56
|
-
/** Accessible name for a quote's cite action. */
|
|
57
|
-
cite?: (reviewCount: number) => string;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export type VenueSpotlightProps = {
|
|
61
|
-
place: PlacePreview;
|
|
62
|
-
href: string;
|
|
63
|
-
labels: VenueSpotlightLabels;
|
|
64
|
-
/** Composed meta line, e.g. "pub · Centru". Clause order is locale-dependent. */
|
|
65
|
-
meta?: string;
|
|
66
|
-
signature?: MenuVenueSignature;
|
|
67
|
-
/** CSS gradient for the signature swatch. */
|
|
68
|
-
signatureGradient?: string;
|
|
69
|
-
/** Passed through to the signature `<MenuItem>`. */
|
|
70
|
-
itemLabels: MenuItemLabels;
|
|
71
|
-
formatPrice: (amount: number) => string;
|
|
72
|
-
formatCount?: (value: number) => string;
|
|
73
|
-
/** 0–100 → display numeral for the dimension bars. */
|
|
74
|
-
formatScore: (value: number) => string;
|
|
75
|
-
/** Opens the reviews behind a quote. */
|
|
76
|
-
onCite?: (quote: CitedText) => void;
|
|
77
|
-
/** The action in the footer — pass a rendered link or button. */
|
|
78
|
-
action?: React.ReactNode;
|
|
79
|
-
linkComponent?: MenuLinkComponent;
|
|
80
|
-
className?: string;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/** Quotes are capped at two: a third pushes the grade row below the fold on a phone. */
|
|
84
|
-
const QUOTE_LIMIT = 2;
|
|
85
|
-
|
|
86
|
-
export function VenueSpotlight({
|
|
87
|
-
place,
|
|
88
|
-
href,
|
|
89
|
-
labels,
|
|
90
|
-
meta,
|
|
91
|
-
signature,
|
|
92
|
-
signatureGradient,
|
|
93
|
-
itemLabels,
|
|
94
|
-
formatPrice,
|
|
95
|
-
formatCount,
|
|
96
|
-
formatScore,
|
|
97
|
-
onCite,
|
|
98
|
-
action,
|
|
99
|
-
linkComponent: LinkComponent = DefaultLink,
|
|
100
|
-
className,
|
|
101
|
-
}: VenueSpotlightProps) {
|
|
102
|
-
const digest = place.reviews_digest;
|
|
103
|
-
const tags = digest?.tags ?? [];
|
|
104
|
-
|
|
105
|
-
return (
|
|
106
|
-
<div
|
|
107
|
-
className={cn(
|
|
108
|
-
"grid overflow-hidden rounded-[18px] border border-border bg-card lg:grid-cols-[404px_1fr]",
|
|
109
|
-
className
|
|
110
|
-
)}
|
|
111
|
-
>
|
|
112
|
-
<div className="relative min-h-[220px] bg-[repeating-linear-gradient(135deg,oklch(0.76_0.02_55)_0_10px,oklch(0.83_0.013_58)_10px_20px)] lg:min-h-[340px]">
|
|
113
|
-
{place.thumbnail_url && (
|
|
114
|
-
// eslint-disable-next-line @next/next/no-img-element
|
|
115
|
-
<img
|
|
116
|
-
src={place.thumbnail_url}
|
|
117
|
-
alt={place.name}
|
|
118
|
-
className="absolute inset-0 h-full w-full object-cover"
|
|
119
|
-
/>
|
|
120
|
-
)}
|
|
121
|
-
|
|
122
|
-
{labels.photoCredit && (
|
|
123
|
-
<span className="absolute left-3.5 top-3.5 inline-flex h-7 items-center gap-1.5 rounded-full bg-black/60 px-2.5 text-[11px] font-bold text-white">
|
|
124
|
-
<Camera className="h-2.5 w-2.5" aria-hidden />
|
|
125
|
-
{labels.photoCredit}
|
|
126
|
-
</span>
|
|
127
|
-
)}
|
|
128
|
-
|
|
129
|
-
{labels.openUntil && (
|
|
130
|
-
<span className="absolute bottom-3.5 left-3.5 inline-flex h-[30px] items-center gap-[7px] rounded-full bg-background px-3 text-[11.5px] font-bold text-[var(--free,currentColor)]">
|
|
131
|
-
<i className="h-[7px] w-[7px] rounded-full bg-current" aria-hidden />
|
|
132
|
-
{labels.openUntil}
|
|
133
|
-
</span>
|
|
134
|
-
)}
|
|
135
|
-
</div>
|
|
136
|
-
|
|
137
|
-
<div className="flex flex-col gap-3.5 p-4 lg:p-6">
|
|
138
|
-
{/*
|
|
139
|
-
`items-baseline` and a hard `shrink-0` on the rating: the venue name
|
|
140
|
-
is a long serif line that wraps, and with `items-start` the numeral
|
|
141
|
-
floated beside its second line instead of sitting on the first. The
|
|
142
|
-
name column also needs `min-w-0` AND `basis-0` — without the basis a
|
|
143
|
-
long unbroken word (a venue called "Tortelli Pasta Bar") refuses to
|
|
144
|
-
wrap and pushes the rating off the card.
|
|
145
|
-
*/}
|
|
146
|
-
<div className="flex items-baseline justify-between gap-3">
|
|
147
|
-
<h3 className="min-w-0 flex-1 basis-0 font-serif text-xl font-semibold leading-tight tracking-[-0.02em] lg:text-[28px]">
|
|
148
|
-
<LinkComponent
|
|
149
|
-
href={href}
|
|
150
|
-
className="rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
151
|
-
>
|
|
152
|
-
{place.name}
|
|
153
|
-
</LinkComponent>
|
|
154
|
-
</h3>
|
|
155
|
-
|
|
156
|
-
{place.rating && (
|
|
157
|
-
<div className="flex shrink-0 items-baseline gap-1.5">
|
|
158
|
-
<b className="text-xl font-extrabold tabular-nums lg:text-2xl">
|
|
159
|
-
{place.rating.rating}
|
|
160
|
-
</b>
|
|
161
|
-
<Star className="h-3 w-3 self-center text-muted-foreground" aria-hidden />
|
|
162
|
-
</div>
|
|
163
|
-
)}
|
|
164
|
-
</div>
|
|
165
|
-
|
|
166
|
-
{(meta || labels.reviewCount) && (
|
|
167
|
-
<div className="-mt-2 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[12.5px] text-muted-foreground">
|
|
168
|
-
{meta && <span>{meta}</span>}
|
|
169
|
-
{meta && labels.reviewCount && <span aria-hidden>·</span>}
|
|
170
|
-
{labels.reviewCount && <span>{labels.reviewCount}</span>}
|
|
171
|
-
</div>
|
|
172
|
-
)}
|
|
173
|
-
|
|
174
|
-
{signature && (
|
|
175
|
-
<VenueSignatureBlock
|
|
176
|
-
item={signature.item}
|
|
177
|
-
labels={itemLabels}
|
|
178
|
-
formatPrice={formatPrice}
|
|
179
|
-
formatCount={formatCount}
|
|
180
|
-
kicker={labels.signatureKicker}
|
|
181
|
-
markGradient={signatureGradient}
|
|
182
|
-
subtitle={signature.why}
|
|
183
|
-
href={signature.href}
|
|
184
|
-
linkComponent={LinkComponent}
|
|
185
|
-
/>
|
|
186
|
-
)}
|
|
187
|
-
|
|
188
|
-
{digest?.highlights && (
|
|
189
|
-
<VenueQuotes
|
|
190
|
-
quotes={digest.highlights}
|
|
191
|
-
limit={QUOTE_LIMIT}
|
|
192
|
-
onCite={onCite}
|
|
193
|
-
citeLabel={labels.cite}
|
|
194
|
-
/>
|
|
195
|
-
)}
|
|
196
|
-
|
|
197
|
-
{digest?.grade?.dimensions && <Separator />}
|
|
198
|
-
|
|
199
|
-
{digest?.grade?.dimensions && (
|
|
200
|
-
<VenueGradeDimensions
|
|
201
|
-
dimensions={digest.grade.dimensions}
|
|
202
|
-
labels={labels.dimensions}
|
|
203
|
-
formatScore={formatScore}
|
|
204
|
-
className="mt-1"
|
|
205
|
-
/>
|
|
206
|
-
)}
|
|
207
|
-
|
|
208
|
-
{(labels.valueVerdict || tags.length > 0) && (
|
|
209
|
-
<div className="flex flex-wrap items-center gap-2">
|
|
210
|
-
{labels.valueVerdict && (
|
|
211
|
-
<span className="inline-flex h-[26px] items-center gap-1.5 rounded-full bg-accent-subtle px-2.5 text-[11.5px] font-bold text-accent">
|
|
212
|
-
{labels.valueVerdict}
|
|
213
|
-
</span>
|
|
214
|
-
)}
|
|
215
|
-
{tags.map((tag) => (
|
|
216
|
-
<span
|
|
217
|
-
key={tag.value}
|
|
218
|
-
className="inline-flex h-[26px] items-center rounded-full border border-border px-2.5 text-[11.5px] text-muted-foreground"
|
|
219
|
-
>
|
|
220
|
-
{labels.tags?.[tag.value] ?? tag.value}
|
|
221
|
-
</span>
|
|
222
|
-
))}
|
|
223
|
-
</div>
|
|
224
|
-
)}
|
|
225
|
-
|
|
226
|
-
{/* No busyness strip here. Twelve unlabelled bars under a grade row
|
|
227
|
-
read as a second, unexplained chart — nobody could tell what they
|
|
228
|
-
measured without the sentence beside them, and the sentence does not
|
|
229
|
-
fit on this card. `<VenueBusynessStrip>` still exists and belongs on
|
|
230
|
-
the venue's own page, where it has room to be captioned. */}
|
|
231
|
-
|
|
232
|
-
{action && <div className="mt-auto flex justify-end pt-1">{action}</div>}
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
);
|
|
236
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PlaceScheduleWeek } from './chunk-VG3PND3D.js';
|
|
2
|
-
import { Separator } from './chunk-WSRWFA6K.js';
|
|
3
2
|
import { Tag } from './chunk-ZDAHKI3A.js';
|
|
3
|
+
import { Separator } from './chunk-WSRWFA6K.js';
|
|
4
4
|
import { Text } from './chunk-7BWTYWM3.js';
|
|
5
5
|
import { cn } from './chunk-FEK5XGZW.js';
|
|
6
6
|
import { __spreadProps, __spreadValues } from './chunk-3GWWZKX7.js';
|