@bearmenu/ui 0.8.10 → 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-UKBNQO6Q.js → chunk-2CXU5WZO.js} +1 -1
- package/dist/{chunk-62ES6N32.js → chunk-43RC7MHY.js} +1 -1
- package/dist/{chunk-Q6QH52LJ.js → chunk-6TEEY5YA.js} +2 -2
- package/dist/{chunk-UDN7UHJW.js → chunk-H3ZZDX5L.js} +2 -1
- package/dist/{chunk-H3BV4VAG.js → chunk-JS3EINZD.js} +2 -2
- package/dist/{chunk-TH6W2PWG.js → chunk-UDTG3RSE.js} +1 -1
- package/dist/{chunk-SY6RV476.js → chunk-WCTHZKU7.js} +10 -21
- 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 +8 -8
- package/dist/components/concept-compare-rail.js +1 -1
- package/dist/components/concept-compare.js +4 -4
- package/dist/components/concept-convergence.js +1 -1
- package/dist/components/date-input.d.ts +1 -1
- package/dist/components/dialog.d.ts +2 -2
- package/dist/components/empty-state.js +1 -1
- package/dist/components/event-detail-panel.js +1 -1
- package/dist/components/event-list-row-wide.js +1 -1
- package/dist/components/filter-category-row.js +1 -1
- package/dist/components/glass-ground.d.ts +26 -31
- package/dist/components/glass-ground.js +1 -1
- package/dist/components/haptic-button.js +1 -1
- 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 +7 -7
- package/dist/components/kitchen-dossier.js +6 -7
- package/dist/components/link-button.js +1 -1
- package/dist/components/menu-family-block.d.ts +9 -10
- package/dist/components/menu-family-block.js +2 -4
- package/dist/components/menu-family-card.js +1 -3
- package/dist/components/menu-hub-hero.js +10 -5
- package/dist/components/menu-item.js +3 -3
- 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 +1 -1
- package/dist/components/place-details-mobile.js +1 -1
- 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 +2 -2
- package/dist/components/spinner.d.ts +4 -4
- package/dist/components/tag.d.ts +4 -4
- package/dist/components/text.d.ts +3 -3
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/top-ranking-entry.js +3 -3
- 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/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 +2 -1
- package/src/components/concept-compare.stories.tsx +3 -3
- package/src/components/concept-compare.tsx +10 -5
- package/src/components/glass-ground.tsx +31 -56
- package/src/components/kitchen-dossier.stories.tsx +1 -1
- package/src/components/kitchen-dossier.tsx +15 -16
- package/src/components/menu-family-block.stories.tsx +3 -3
- package/src/components/menu-family-block.tsx +16 -27
- package/src/components/menu-family-card.stories.tsx +2 -2
- package/src/components/menu-family-card.tsx +6 -13
- package/src/components/menu-hub-hero.test.tsx +39 -0
- package/src/components/menu-hub-hero.tsx +17 -5
- package/src/components/photo-ground.tsx +1 -1
- package/src/components/signature-chip.tsx +3 -3
- 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
|
@@ -42,6 +42,9 @@ export type VenueWallProps = {
|
|
|
42
42
|
linkComponent?: MenuLinkComponent;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
const WALL_CELLS = 18;
|
|
46
|
+
const PHONE_CELLS = 6;
|
|
47
|
+
|
|
45
48
|
export function VenueWall({
|
|
46
49
|
places,
|
|
47
50
|
hrefs,
|
|
@@ -64,8 +67,10 @@ export function VenueWall({
|
|
|
64
67
|
>
|
|
65
68
|
{tileUrls?.length ? (
|
|
66
69
|
<>
|
|
67
|
-
<div aria-hidden className="absolute inset-0 grid auto-rows-fr grid-cols-
|
|
68
|
-
{
|
|
70
|
+
<div aria-hidden className="absolute inset-0 grid auto-rows-fr grid-cols-3 gap-0.5 lg:grid-cols-6">
|
|
71
|
+
{/* Six cells on the phone, eighteen from `lg` — the hero's rule:
|
|
72
|
+
`hidden` keeps the lazy stills past the sixth from loading. */}
|
|
73
|
+
{Array.from({ length: WALL_CELLS }, (_, cell) => (
|
|
69
74
|
// eslint-disable-next-line @next/next/no-img-element
|
|
70
75
|
<img
|
|
71
76
|
key={cell}
|
|
@@ -73,7 +78,7 @@ export function VenueWall({
|
|
|
73
78
|
alt=""
|
|
74
79
|
loading="lazy"
|
|
75
80
|
decoding="async"
|
|
76
|
-
className="h-full w-full object-cover"
|
|
81
|
+
className={cn("h-full w-full object-cover", cell >= PHONE_CELLS && "hidden lg:block")}
|
|
77
82
|
/>
|
|
78
83
|
))}
|
|
79
84
|
</div>
|
|
@@ -151,7 +156,7 @@ export function VenueWall({
|
|
|
151
156
|
);
|
|
152
157
|
|
|
153
158
|
const chipClasses =
|
|
154
|
-
"inline-flex max-w-[220px] items-center gap-2 rounded-full bg-white/
|
|
159
|
+
"inline-flex max-w-[220px] items-center gap-2 rounded-full bg-white/[0.14] py-1 pl-1 pr-3.5";
|
|
155
160
|
|
|
156
161
|
return (
|
|
157
162
|
<li key={place.slug}>
|
|
@@ -159,7 +159,7 @@ export function WeekdayThemeBanner({
|
|
|
159
159
|
"relative z-[1] hidden border-t border-white/15 p-4 lg:block lg:min-w-[240px] lg:border-l lg:border-t-0 lg:p-5",
|
|
160
160
|
// Over a photograph the rail needs its own ground, or seven lines of
|
|
161
161
|
// small type land on whatever the plate happens to be.
|
|
162
|
-
imageUrl && "bg-black/
|
|
162
|
+
imageUrl && "bg-black/55"
|
|
163
163
|
)}
|
|
164
164
|
>
|
|
165
165
|
{weekLabel && (
|