@bearmenu/ui 0.8.16 → 0.8.17

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.
Files changed (87) hide show
  1. package/dist/{chunk-ZLPWEHZO.js → chunk-54FQQZZJ.js} +1 -1
  2. package/dist/{chunk-36KEHCET.js → chunk-5LTILG3L.js} +15 -4
  3. package/dist/{chunk-P43B3ONY.js → chunk-5XREWOBB.js} +3 -1
  4. package/dist/{chunk-CLLY6XB3.js → chunk-6VOWT4YR.js} +6 -3
  5. package/dist/{chunk-S33K4RC5.js → chunk-BKKQ7GCZ.js} +1 -1
  6. package/dist/chunk-QY66ME5B.js +207 -0
  7. package/dist/{chunk-T6S2ZBV6.js → chunk-SDWN6L4O.js} +1 -1
  8. package/dist/{chunk-CNJQUHCU.js → chunk-SWD6CJ35.js} +2 -1
  9. package/dist/{chunk-HDR7V6IZ.js → chunk-TIQNM4XD.js} +8 -1
  10. package/dist/components/alert-dialog.js +1 -1
  11. package/dist/components/badge.d.ts +1 -1
  12. package/dist/components/badge.js +1 -1
  13. package/dist/components/button.d.ts +1 -1
  14. package/dist/components/button.js +1 -1
  15. package/dist/components/calendar.js +1 -1
  16. package/dist/components/carousel.js +1 -1
  17. package/dist/components/coach-marks.d.ts +63 -0
  18. package/dist/components/coach-marks.js +162 -0
  19. package/dist/components/combobox.js +1 -1
  20. package/dist/components/concept-compare-rail.js +2 -2
  21. package/dist/components/concept-compare.js +2 -2
  22. package/dist/components/concept-convergence.js +2 -2
  23. package/dist/components/doorway-tiles.d.ts +11 -0
  24. package/dist/components/doorway-tiles.js +5 -3
  25. package/dist/components/empty-state.js +1 -1
  26. package/dist/components/event-detail-panel.js +2 -2
  27. package/dist/components/event-index-row.js +1 -1
  28. package/dist/components/event-list-row-wide.js +2 -2
  29. package/dist/components/event-list-row.js +1 -1
  30. package/dist/components/facet-group.d.ts +8 -1
  31. package/dist/components/facet-group.js +3 -0
  32. package/dist/components/filter-category-row.js +1 -1
  33. package/dist/components/hue-chip.js +1 -1
  34. package/dist/components/item.js +4 -1
  35. package/dist/components/kitchen-dossier.js +1 -1
  36. package/dist/components/link-button.js +1 -1
  37. package/dist/components/menu-family-block.d.ts +8 -1
  38. package/dist/components/menu-family-block.js +101 -68
  39. package/dist/components/menu-family-card.js +2 -2
  40. package/dist/components/menu-filter-chips.d.ts +12 -3
  41. package/dist/components/menu-filter-chips.js +22 -4
  42. package/dist/components/menu-index-list.js +1 -1
  43. package/dist/components/menu-item.js +3 -3
  44. package/dist/components/menu-kitchen-list.d.ts +14 -2
  45. package/dist/components/menu-kitchen-list.js +1 -1
  46. package/dist/components/multi-select-combobox.js +2 -2
  47. package/dist/components/pagination.js +1 -1
  48. package/dist/components/photo-ground.d.ts +7 -1
  49. package/dist/components/photo-ground.js +1 -1
  50. package/dist/components/place-card.js +1 -1
  51. package/dist/components/place-details-mobile.js +1 -1
  52. package/dist/components/searchable-select.js +1 -1
  53. package/dist/components/section-header.d.ts +7 -1
  54. package/dist/components/section-header.js +11 -7
  55. package/dist/components/signature-chip.js +2 -2
  56. package/dist/components/sliding-panels.js +1 -1
  57. package/dist/components/toggle-group.js +9 -4
  58. package/dist/components/toggle.d.ts +1 -1
  59. package/dist/components/toggle.js +1 -1
  60. package/dist/components/top-ranking-entry.js +3 -3
  61. package/package.json +1 -1
  62. package/src/components/badge.stories.tsx +31 -1
  63. package/src/components/badge.tsx +2 -0
  64. package/src/components/button.stories.tsx +5 -4
  65. package/src/components/button.test.tsx +11 -1
  66. package/src/components/button.tsx +16 -5
  67. package/src/components/coach-marks.stories.tsx +79 -0
  68. package/src/components/coach-marks.test.tsx +140 -0
  69. package/src/components/coach-marks.tsx +252 -0
  70. package/src/components/doorway-tiles.stories.tsx +34 -0
  71. package/src/components/doorway-tiles.test.tsx +27 -0
  72. package/src/components/doorway-tiles.tsx +30 -2
  73. package/src/components/facet-group.tsx +9 -0
  74. package/src/components/hue-chip.test.tsx +6 -3
  75. package/src/components/hue-chip.tsx +5 -2
  76. package/src/components/item.tsx +4 -1
  77. package/src/components/menu-family-block.stories.tsx +12 -0
  78. package/src/components/menu-family-block.tsx +53 -20
  79. package/src/components/menu-filter-chips.tsx +32 -4
  80. package/src/components/menu-kitchen-list.tsx +45 -6
  81. package/src/components/photo-ground.tsx +7 -0
  82. package/src/components/section-header.test.tsx +15 -0
  83. package/src/components/section-header.tsx +26 -12
  84. package/src/components/toggle-group.stories.tsx +37 -1
  85. package/src/components/toggle-group.tsx +11 -6
  86. package/src/components/toggle.tsx +8 -0
  87. package/dist/chunk-SXQZ7DLH.js +0 -167
@@ -1,7 +1,7 @@
1
- import { PhotoGround } from '../chunk-CNJQUHCU.js';
1
+ import { PhotoGround } from '../chunk-SWD6CJ35.js';
2
2
  import { Convergence } from '../chunk-4XDJXMLF.js';
3
3
  import '../chunk-OIV7B44M.js';
4
- import { Badge } from '../chunk-P43B3ONY.js';
4
+ import { Badge } from '../chunk-5XREWOBB.js';
5
5
  import { cn } from '../chunk-FEK5XGZW.js';
6
6
  import '../chunk-MMUBH76A.js';
7
7
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -33,6 +33,17 @@ type DoorwayTile = {
33
33
  gradient?: string;
34
34
  /** Pre-resolved photograph of the CLASS, from the consumer's own origin. */
35
35
  photoUrl?: string;
36
+ /**
37
+ * A glyph in the photograph's place — for a tile about an ACTION, not a
38
+ * thing. A search door has no class to photograph, and any subject put on
39
+ * it (a table, a lens, a book) reads as one more family; the initial the
40
+ * fallback draws is a family's initial too. So the print holds the glyph
41
+ * instead, on the photo ground with the photo fallback's drop shadow, and
42
+ * the tile keeps its siblings' silhouette. Wins over `photoUrl`.
43
+ *
44
+ * A node rather than a name: the app owns its iconography.
45
+ */
46
+ icon?: React.ReactNode;
36
47
  };
37
48
  type DoorwayTilesTreatment = "polaroid" | "ground";
38
49
  type DoorwayTilesProps = {
@@ -1,4 +1,4 @@
1
- import { PhotoGround } from '../chunk-CNJQUHCU.js';
1
+ import { PHOTO_GROUND, PHOTO_GLYPH_SHADOW, PhotoGround } from '../chunk-SWD6CJ35.js';
2
2
  import { cn } from '../chunk-FEK5XGZW.js';
3
3
  import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -13,6 +13,8 @@ var SCRIM = "after:pointer-events-none after:absolute after:inset-x-0 after:bott
13
13
  var GROUND_PHOTO = "absolute inset-0 z-0 h-full w-full object-cover mix-blend-multiply transition-transform duration-500 ease-out group-hover:scale-[1.04] motion-reduce:transition-none motion-reduce:group-hover:scale-100";
14
14
  var GROUND_LIFT = "absolute inset-0 z-0 opacity-[0.22]";
15
15
  var GROUND_GLYPH = "absolute inset-0 z-0 flex items-center justify-center font-serif text-[64px] font-semibold leading-none text-white/15";
16
+ var PRINT_ICON = `absolute inset-0 flex items-center justify-center ${PHOTO_GROUND} text-white/90 [&_svg]:h-[44%] [&_svg]:w-[44%] [&_svg]:${PHOTO_GLYPH_SHADOW}`;
17
+ var GROUND_ICON = "absolute inset-0 z-0 flex items-center justify-center text-white/15 [&_svg]:h-[40%] [&_svg]:w-[40%]";
16
18
  function DoorwayTiles({
17
19
  tiles,
18
20
  all,
@@ -31,7 +33,7 @@ function DoorwayTiles({
31
33
  className: cn(TILE, SCRIM),
32
34
  style: ground,
33
35
  children: [
34
- isPolaroid ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: POLAROID, children: tile.photoUrl ? (
36
+ isPolaroid ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: POLAROID, children: tile.icon ? /* @__PURE__ */ jsx("span", { className: PRINT_ICON, children: tile.icon }) : tile.photoUrl ? (
35
37
  /* Not lazy: the grid sits directly under the hero, and these
36
38
  photographs are the first thing the reader looks at. */
37
39
  // eslint-disable-next-line @next/next/no-img-element
@@ -52,7 +54,7 @@ function DoorwayTiles({
52
54
  mode: "stack",
53
55
  glyphClassName: "text-[44px]"
54
56
  }
55
- ) }) : tile.photoUrl ? /* @__PURE__ */ jsxs(Fragment, { children: [
57
+ ) }) : tile.icon ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: GROUND_ICON, children: tile.icon }) : tile.photoUrl ? /* @__PURE__ */ jsxs(Fragment, { children: [
56
58
  /* @__PURE__ */ jsx("img", { src: tile.photoUrl, alt: "", decoding: "async", className: GROUND_PHOTO }),
57
59
  /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: GROUND_LIFT, style: ground })
58
60
  ] }) : /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: GROUND_GLYPH, children: tile.label.charAt(0) }),
@@ -1,4 +1,4 @@
1
- import { Button } from '../chunk-36KEHCET.js';
1
+ import { Button } from '../chunk-5LTILG3L.js';
2
2
  import '../chunk-RIH2IS7X.js';
3
3
  import '../chunk-5YNIQ2BL.js';
4
4
  import { Text } from '../chunk-ZLMRVBD7.js';
@@ -1,8 +1,8 @@
1
1
  import { resolveEventEntryFee } from '../chunk-DNSXMHYX.js';
2
- import { Separator } from '../chunk-NWZGSLPU.js';
3
2
  import { EventPosterFallback } from '../chunk-FDITZ2VM.js';
3
+ import { Separator } from '../chunk-NWZGSLPU.js';
4
4
  import { Skeleton } from '../chunk-XBBEX4SF.js';
5
- import { Button } from '../chunk-36KEHCET.js';
5
+ import { Button } from '../chunk-5LTILG3L.js';
6
6
  import '../chunk-RIH2IS7X.js';
7
7
  import '../chunk-5YNIQ2BL.js';
8
8
  import { cn } from '../chunk-FEK5XGZW.js';
@@ -1,7 +1,7 @@
1
1
  import { TagGroup } from '../chunk-PX6RICS5.js';
2
2
  import { Tag } from '../chunk-MWB7S54O.js';
3
- import { Separator } from '../chunk-NWZGSLPU.js';
4
3
  import { EventPosterFallback } from '../chunk-FDITZ2VM.js';
4
+ import { Separator } from '../chunk-NWZGSLPU.js';
5
5
  import { cn } from '../chunk-FEK5XGZW.js';
6
6
  import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
7
7
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -1,9 +1,9 @@
1
1
  import { Tag } from '../chunk-MWB7S54O.js';
2
2
  import { resolveEventEntryFee } from '../chunk-DNSXMHYX.js';
3
- import { Separator } from '../chunk-NWZGSLPU.js';
4
3
  import { EventPosterFallback } from '../chunk-FDITZ2VM.js';
4
+ import { Separator } from '../chunk-NWZGSLPU.js';
5
5
  import { Skeleton } from '../chunk-XBBEX4SF.js';
6
- import { buttonVariants } from '../chunk-36KEHCET.js';
6
+ import { buttonVariants } from '../chunk-5LTILG3L.js';
7
7
  import '../chunk-RIH2IS7X.js';
8
8
  import '../chunk-5YNIQ2BL.js';
9
9
  import { cn } from '../chunk-FEK5XGZW.js';
@@ -1,8 +1,8 @@
1
1
  import { TagGroup } from '../chunk-PX6RICS5.js';
2
2
  import { Tag } from '../chunk-MWB7S54O.js';
3
3
  import { resolveEventEntryFee } from '../chunk-DNSXMHYX.js';
4
- import { Separator } from '../chunk-NWZGSLPU.js';
5
4
  import { EventPosterFallback } from '../chunk-FDITZ2VM.js';
5
+ import { Separator } from '../chunk-NWZGSLPU.js';
6
6
  import { Skeleton } from '../chunk-XBBEX4SF.js';
7
7
  import { cn } from '../chunk-FEK5XGZW.js';
8
8
  import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
@@ -75,9 +75,16 @@ type FacetGroupProps = Omit<ComponentPropsWithoutRef<"fieldset">, "title" | "chi
75
75
  /** e.g. "Show all". Omit to hide the trailing action. */
76
76
  moreLabel?: string;
77
77
  onMore?: () => void;
78
+ /**
79
+ * Whether the trailing action has already expanded the options it controls
80
+ * — set it when `onMore` reveals more rows in place (and `moreLabel` reads
81
+ * "Show fewer"), so the button carries `aria-expanded`. Leave it unset when
82
+ * the action opens another surface.
83
+ */
84
+ moreExpanded?: boolean;
78
85
  className?: string;
79
86
  };
80
- declare function FacetGroup({ title, icon: Icon, options, selection, name, size, collapsible, defaultOpen, onToggle, moreLabel, onMore, className, ...rest }: FacetGroupProps): react_jsx_runtime.JSX.Element;
87
+ declare function FacetGroup({ title, icon: Icon, options, selection, name, size, collapsible, defaultOpen, onToggle, moreLabel, onMore, moreExpanded, className, ...rest }: FacetGroupProps): react_jsx_runtime.JSX.Element;
81
88
  type FacetGroupSkeletonProps = {
82
89
  /** How many option rows to draw — match the expected/last-known option count. */
83
90
  optionCount?: number;
@@ -26,6 +26,7 @@ function FacetGroup(_a) {
26
26
  onToggle,
27
27
  moreLabel,
28
28
  onMore,
29
+ moreExpanded,
29
30
  className
30
31
  } = _b, rest = __objRest(_b, [
31
32
  "title",
@@ -39,6 +40,7 @@ function FacetGroup(_a) {
39
40
  "onToggle",
40
41
  "moreLabel",
41
42
  "onMore",
43
+ "moreExpanded",
42
44
  "className"
43
45
  ]);
44
46
  const isSingle = selection === "single";
@@ -191,6 +193,7 @@ function FacetGroup(_a) {
191
193
  {
192
194
  type: "button",
193
195
  onClick: onMore,
196
+ "aria-expanded": moreExpanded,
194
197
  className: "cursor-pointer pt-[11px] text-[12.5px] font-bold text-primary transition-colors duration-150 hover:text-primary/80 motion-reduce:transition-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:rounded-sm",
195
198
  children: moreLabel
196
199
  }
@@ -1,5 +1,5 @@
1
1
  import { Text } from '../chunk-ZLMRVBD7.js';
2
- import { Badge } from '../chunk-P43B3ONY.js';
2
+ import { Badge } from '../chunk-5XREWOBB.js';
3
3
  import '../chunk-FEK5XGZW.js';
4
4
  import '../chunk-MMUBH76A.js';
5
5
  import { ChevronRight } from 'lucide-react';
@@ -1,3 +1,3 @@
1
- export { HueChip, hueTint } from '../chunk-CLLY6XB3.js';
1
+ export { HueChip, hueTint } from '../chunk-6VOWT4YR.js';
2
2
  import '../chunk-FEK5XGZW.js';
3
3
  import '../chunk-MMUBH76A.js';
@@ -20,7 +20,10 @@ var itemVariants = cva(
20
20
  lg: "px-5 py-4"
21
21
  },
22
22
  interactive: {
23
- true: "cursor-pointer hover:bg-accent hover:text-accent-foreground active:scale-[0.99]",
23
+ // The surface tint a hover is, not the brand fill: `bg-accent` here is
24
+ // the brown, and a row that inverts under the cursor loses its muted
25
+ // description. Same step the buttons take (`--accent-subtle`).
26
+ true: "cursor-pointer hover:bg-accent-subtle hover:border-accent/40 active:bg-muted active:scale-[0.99]",
24
27
  false: ""
25
28
  }
26
29
  },
@@ -3,7 +3,7 @@ import { VenueQuotes } from '../chunk-43RC7MHY.js';
3
3
  import { StoryProvider, StorySegments, StoryPanel } from '../chunk-F6FMZJDG.js';
4
4
  import { GlassGround } from '../chunk-ICOU5QHT.js';
5
5
  import { Separator } from '../chunk-NWZGSLPU.js';
6
- import { PhotoGround, PHOTO_GROUND } from '../chunk-CNJQUHCU.js';
6
+ import { PhotoGround, PHOTO_GROUND } from '../chunk-SWD6CJ35.js';
7
7
  import { cn } from '../chunk-FEK5XGZW.js';
8
8
  import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
9
9
  import { MessageSquareQuote, Star } from 'lucide-react';
@@ -1,4 +1,4 @@
1
- import { Button } from '../chunk-36KEHCET.js';
1
+ import { Button } from '../chunk-5LTILG3L.js';
2
2
  import '../chunk-RIH2IS7X.js';
3
3
  import '../chunk-5YNIQ2BL.js';
4
4
  import '../chunk-FEK5XGZW.js';
@@ -85,10 +85,17 @@ type MenuFamilyBlockProps = {
85
85
  hue?: string;
86
86
  /** Finished CSS gradient — the family's colour over the mosaic. */
87
87
  gradient?: string;
88
+ /**
89
+ * `wide` (default): the phone card below `lg`, the two-column card — photo
90
+ * third, rows beside it — from `lg`. `compact`: the phone card at every
91
+ * width, for a rail on a desktop page where the two-column card is too much
92
+ * to scan across (the browse page's concept rail).
93
+ */
94
+ variant?: "wide" | "compact";
88
95
  linkComponent?: MenuLinkComponent;
89
96
  className?: string;
90
97
  };
91
- declare function MenuFamilyBlock({ family, labels, formatCount, hue, gradient, linkComponent: LinkComponent, className, }: MenuFamilyBlockProps): react_jsx_runtime.JSX.Element;
98
+ declare function MenuFamilyBlock({ family, labels, formatCount, hue, gradient, variant, linkComponent: LinkComponent, className, }: MenuFamilyBlockProps): react_jsx_runtime.JSX.Element;
92
99
  /**
93
100
  * The block's own loading state, at the block's footprint.
94
101
  *
@@ -1,9 +1,9 @@
1
- import { MenuKitchenList } from '../chunk-SXQZ7DLH.js';
2
- import { HueChip } from '../chunk-CLLY6XB3.js';
1
+ import { MenuKitchenList } from '../chunk-QY66ME5B.js';
2
+ import { HueChip } from '../chunk-6VOWT4YR.js';
3
3
  import { Separator } from '../chunk-NWZGSLPU.js';
4
- import { PhotoGround, PHOTO_GROUND } from '../chunk-CNJQUHCU.js';
4
+ import { PhotoGround, PHOTO_GROUND } from '../chunk-SWD6CJ35.js';
5
5
  import { Skeleton } from '../chunk-XBBEX4SF.js';
6
- import { buttonVariants } from '../chunk-36KEHCET.js';
6
+ import { buttonVariants } from '../chunk-5LTILG3L.js';
7
7
  import '../chunk-RIH2IS7X.js';
8
8
  import '../chunk-5YNIQ2BL.js';
9
9
  import { cn } from '../chunk-FEK5XGZW.js';
@@ -16,8 +16,8 @@ function DefaultLink(_a) {
16
16
  return /* @__PURE__ */ jsx("a", __spreadValues({ href }, props));
17
17
  }
18
18
  var GROUND = PHOTO_GROUND;
19
- var INK = "bg-[linear-gradient(to_bottom,oklch(0.16_0.012_55_/_0.12)_0%,oklch(0.16_0.012_55_/_0.55)_38%,oklch(0.16_0.012_55_/_0.92)_62%,oklch(0.16_0.012_55_/_0.96)_100%)] lg:bg-[linear-gradient(to_right,oklch(0.16_0.012_55_/_0.38)_0%,oklch(0.16_0.012_55_/_0.6)_30%,oklch(0.16_0.012_55_/_0.92)_46%,oklch(0.16_0.012_55_/_0.96)_100%)]";
20
- var PAPER = "lg:bg-[oklch(0.21_0.012_55)]";
19
+ var INK_PHONE = "bg-[linear-gradient(to_bottom,oklch(0.16_0.012_55_/_0.12)_0%,oklch(0.16_0.012_55_/_0.55)_38%,oklch(0.16_0.012_55_/_0.92)_62%,oklch(0.16_0.012_55_/_0.96)_100%)]";
20
+ var INK_WIDE = "lg:bg-[linear-gradient(to_right,oklch(0.16_0.012_55_/_0.32)_0%,oklch(0.16_0.012_55_/_0.62)_34%,oklch(0.16_0.012_55_/_0.9)_52%,oklch(0.16_0.012_55_/_0.96)_100%)]";
21
21
  var TEXT_SCRIM = (
22
22
  /* `isolate` + `before:-z-10`: a positioned pseudo-element paints ABOVE the
23
23
  column's in-flow text unless the column is its own stacking context and
@@ -31,10 +31,12 @@ function MenuFamilyBlock({
31
31
  formatCount = String,
32
32
  hue,
33
33
  gradient,
34
+ variant = "wide",
34
35
  linkComponent: LinkComponent = DefaultLink,
35
36
  className
36
37
  }) {
37
38
  var _a, _b, _c, _d, _e, _f;
39
+ const wide = variant === "wide";
38
40
  const [photo] = (_a = family.photoUrls) != null ? _a : [];
39
41
  const venues = (_b = family.venues) != null ? _b : [];
40
42
  const overflow = Math.max(family.venueCount - venues.length, 0);
@@ -46,77 +48,108 @@ function MenuFamilyBlock({
46
48
  className: cn(
47
49
  /* `isolate` confines the blend and the backdrop-filter to this card.
48
50
  `dark` scopes every token inside to its dark-theme value. */
49
- "dark relative isolate overflow-hidden rounded-[14px] text-foreground",
51
+ /* A flex column, so a `h-full` card in a rail fills its row: siblings
52
+ with two rows and with three end on the same baseline. */
53
+ "dark relative isolate flex flex-col overflow-hidden rounded-[14px] text-foreground",
50
54
  GROUND,
51
55
  className
52
56
  ),
53
57
  children: [
54
58
  /* @__PURE__ */ jsx(PhotoGround, { photos: [photo], initials: initial, mode: "stack", gradient }),
55
- /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cn("absolute inset-0", INK) }),
56
- /* @__PURE__ */ jsxs("div", { className: "relative grid grid-cols-1 lg:grid-cols-[34%_1fr]", children: [
57
- /* @__PURE__ */ jsxs(
58
- "div",
59
- {
60
- className: cn(
61
- "relative flex min-h-[220px] flex-col justify-end p-3.5 lg:min-h-[320px] lg:p-5",
62
- TEXT_SCRIM
59
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cn("absolute inset-0", INK_PHONE, wide && INK_WIDE) }),
60
+ /* @__PURE__ */ jsxs(
61
+ "div",
62
+ {
63
+ className: cn(
64
+ "relative grid flex-1 grid-cols-1 grid-rows-[auto_1fr]",
65
+ wide && "lg:grid-cols-[34%_1fr] lg:grid-rows-1"
66
+ ),
67
+ children: [
68
+ /* @__PURE__ */ jsxs(
69
+ "div",
70
+ {
71
+ className: cn(
72
+ "relative flex min-h-[220px] flex-col justify-end p-3.5",
73
+ wide && "lg:min-h-[320px] lg:p-5",
74
+ TEXT_SCRIM
75
+ ),
76
+ children: [
77
+ pill && /* @__PURE__ */ jsx(
78
+ "span",
79
+ {
80
+ className: cn(
81
+ "absolute right-3.5 top-3.5 rounded-full bg-[oklch(0.16_0.012_55_/_0.78)] px-2.5 py-1 text-[11px] font-semibold text-white",
82
+ wide && "lg:static lg:mb-3 lg:self-start"
83
+ ),
84
+ children: pill
85
+ }
86
+ ),
87
+ family.kicker && /* @__PURE__ */ jsx("span", { className: "mb-1 text-[11px] font-semibold uppercase tracking-[0.14em] text-white/70", children: family.kicker }),
88
+ /* @__PURE__ */ jsx(
89
+ "h3",
90
+ {
91
+ className: cn(
92
+ "text-balance font-serif text-[26px] font-semibold leading-tight tracking-[-0.02em] text-white",
93
+ wide && "lg:text-[30px]"
94
+ ),
95
+ children: family.name
96
+ }
97
+ ),
98
+ /* @__PURE__ */ jsxs("span", { className: "mt-1 flex flex-wrap items-center gap-x-2.5 gap-y-1 text-[13px] font-medium tabular-nums text-white/70", children: [
99
+ labels.venueUnit(family.venueCount),
100
+ (_f = family.facts) == null ? void 0 : _f.map((fact) => /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2.5", children: [
101
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "text-white/40", children: "\xB7" }),
102
+ fact
103
+ ] }, fact)),
104
+ family.priceBandLabel && /* @__PURE__ */ jsxs(
105
+ "span",
106
+ {
107
+ className: "inline-flex items-center gap-1",
108
+ "aria-label": `${labels.priceBand}: ${family.priceBandLabel}`,
109
+ children: [
110
+ /* @__PURE__ */ jsx(Wallet, { className: "h-3.5 w-3.5 shrink-0 text-white/60", "aria-hidden": true }),
111
+ family.priceBandLabel
112
+ ]
113
+ }
114
+ )
115
+ ] }),
116
+ /* @__PURE__ */ jsx(
117
+ LinkComponent,
118
+ {
119
+ href: family.href,
120
+ "aria-label": labels.browse,
121
+ className: cn(buttonVariants({ variant: "ink", size: "pill" }), "mt-3.5 w-max max-w-full"),
122
+ children: labels.browseShort && wide ? /* @__PURE__ */ jsxs(Fragment, { children: [
123
+ /* @__PURE__ */ jsx("span", { className: "lg:hidden", children: labels.browse }),
124
+ /* @__PURE__ */ jsx("span", { className: "hidden lg:inline", children: labels.browseShort })
125
+ ] }) : labels.browse
126
+ }
127
+ )
128
+ ]
129
+ }
63
130
  ),
64
- children: [
65
- pill && /* @__PURE__ */ jsx("span", { className: "absolute right-3.5 top-3.5 rounded-full bg-[oklch(0.16_0.012_55_/_0.78)] px-2.5 py-1 text-[11px] font-semibold text-white lg:static lg:mb-3 lg:self-start", children: pill }),
66
- family.kicker && /* @__PURE__ */ jsx("span", { className: "mb-1 text-[11px] font-semibold uppercase tracking-[0.14em] text-white/70", children: family.kicker }),
67
- /* @__PURE__ */ jsx("h3", { className: "text-balance font-serif text-[26px] font-semibold leading-tight tracking-[-0.02em] text-white lg:text-[30px]", children: family.name }),
68
- /* @__PURE__ */ jsxs("span", { className: "mt-1 flex flex-wrap items-center gap-x-2.5 gap-y-1 text-[13px] font-medium tabular-nums text-white/70", children: [
69
- labels.venueUnit(family.venueCount),
70
- (_f = family.facts) == null ? void 0 : _f.map((fact) => /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2.5", children: [
71
- /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "text-white/40", children: "\xB7" }),
72
- fact
73
- ] }, fact)),
74
- family.priceBandLabel && /* @__PURE__ */ jsxs(
75
- "span",
131
+ /* @__PURE__ */ jsxs("div", { className: cn("flex min-w-0 flex-col px-3.5 pb-3.5", wide && "lg:p-5"), children: [
132
+ family.chips && family.chips.length > 0 && /* @__PURE__ */ jsx("ul", { className: cn("flex flex-wrap items-center gap-1.5", wide && "lg:justify-end"), children: family.chips.map((chip) => (
133
+ /* Label only. The counts are VENUES beside a dish group's name,
134
+ which every reader takes for dishes. */
135
+ /* @__PURE__ */ jsx(HueChip, { as: "li", hue, children: chip.label }, chip.slug)
136
+ )) }),
137
+ venues.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
138
+ /* @__PURE__ */ jsx(Separator, { className: "my-3 via-white/15" }),
139
+ /* @__PURE__ */ jsx(
140
+ MenuKitchenList,
76
141
  {
77
- className: "inline-flex items-center gap-1",
78
- "aria-label": `${labels.priceBand}: ${family.priceBandLabel}`,
79
- children: [
80
- /* @__PURE__ */ jsx(Wallet, { className: "h-3.5 w-3.5 shrink-0 text-white/60", "aria-hidden": true }),
81
- family.priceBandLabel
82
- ]
142
+ kitchens: venues,
143
+ labels: labels.kitchens,
144
+ layout: wide ? "stacked" : "phone",
145
+ linkComponent: LinkComponent
83
146
  }
84
147
  )
85
- ] }),
86
- /* @__PURE__ */ jsx(
87
- LinkComponent,
88
- {
89
- href: family.href,
90
- "aria-label": labels.browse,
91
- className: cn(buttonVariants({ variant: "ink", size: "pill" }), "mt-3.5 w-max max-w-full"),
92
- children: labels.browseShort ? /* @__PURE__ */ jsxs(Fragment, { children: [
93
- /* @__PURE__ */ jsx("span", { className: "lg:hidden", children: labels.browse }),
94
- /* @__PURE__ */ jsx("span", { className: "hidden lg:inline", children: labels.browseShort })
95
- ] }) : labels.browse
96
- }
97
- )
98
- ]
99
- }
100
- ),
101
- /* @__PURE__ */ jsxs("div", { className: cn("flex min-w-0 flex-col px-3.5 pb-3.5 lg:p-5", PAPER), children: [
102
- family.chips && family.chips.length > 0 && /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap items-center gap-1.5 lg:justify-end", children: family.chips.map((chip) => (
103
- /* Label only. The counts are VENUES beside a dish group's name,
104
- which every reader takes for dishes. */
105
- /* @__PURE__ */ jsx(HueChip, { as: "li", hue, children: chip.label }, chip.slug)
106
- )) }),
107
- venues.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
108
- /* @__PURE__ */ jsx(Separator, { className: "my-3 via-white/15" }),
109
- /* @__PURE__ */ jsx(
110
- MenuKitchenList,
111
- {
112
- kitchens: venues,
113
- labels: labels.kitchens,
114
- linkComponent: LinkComponent
115
- }
116
- )
117
- ] })
118
- ] })
119
- ] })
148
+ ] })
149
+ ] })
150
+ ]
151
+ }
152
+ )
120
153
  ]
121
154
  }
122
155
  );
@@ -1,5 +1,5 @@
1
- import { HueChip } from '../chunk-CLLY6XB3.js';
2
- import { PhotoGround, PHOTO_GROUND } from '../chunk-CNJQUHCU.js';
1
+ import { HueChip } from '../chunk-6VOWT4YR.js';
2
+ import { PhotoGround, PHOTO_GROUND } from '../chunk-SWD6CJ35.js';
3
3
  import { cn } from '../chunk-FEK5XGZW.js';
4
4
  import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
5
5
  import { Wallet } from 'lucide-react';
@@ -58,11 +58,18 @@ type MenuFilterChipsProps = {
58
58
  onMorePointerDown?: () => void;
59
59
  /** Locale-aware integer formatter for the counts. Defaults to `String`. */
60
60
  formatCount?: (value: number) => string;
61
+ /**
62
+ * `sm` (36px) is the row under a page header. `lg` (44px) is for a row
63
+ * inside a sticky bar, where the chips are the only thing the thumb can
64
+ * reach and 36px sits under the target floor.
65
+ */
66
+ chipSize?: MenuFilterChipSize;
61
67
  /** Accessible name for the row. */
62
68
  ariaLabel?: string;
63
69
  className?: string;
64
70
  };
65
- declare function MenuFilterChips({ chips, onToggle, unitLabel, onMore, moreLabel, moreIcon, onMorePointerDown, formatCount, ariaLabel, className, }: MenuFilterChipsProps): react_jsx_runtime.JSX.Element;
71
+ type MenuFilterChipSize = "sm" | "lg";
72
+ declare function MenuFilterChips({ chips, onToggle, unitLabel, onMore, moreLabel, moreIcon, onMorePointerDown, formatCount, chipSize, ariaLabel, className, }: MenuFilterChipsProps): react_jsx_runtime.JSX.Element;
66
73
  /**
67
74
  * MenuFilterSummary — what the active filters did, and the way out.
68
75
  *
@@ -80,8 +87,10 @@ type MenuFilterSummaryProps = {
80
87
  className?: string;
81
88
  };
82
89
  declare function MenuFilterSummary({ summary, clearLabel, onClear, className, }: MenuFilterSummaryProps): react_jsx_runtime.JSX.Element;
83
- declare function MenuFilterChipsSkeleton({ className }: {
90
+ declare function MenuFilterChipsSkeleton({ className, chipSize, }: {
84
91
  className?: string;
92
+ /** Match the row it stands in for, so the chips do not jump 8px on load. */
93
+ chipSize?: MenuFilterChipSize;
85
94
  }): react_jsx_runtime.JSX.Element;
86
95
 
87
- export { MenuFilterChips, type MenuFilterChipsProps, MenuFilterChipsSkeleton, MenuFilterSummary, type MenuFilterSummaryProps };
96
+ export { type MenuFilterChipSize, MenuFilterChips, type MenuFilterChipsProps, MenuFilterChipsSkeleton, MenuFilterSummary, type MenuFilterSummaryProps };
@@ -14,6 +14,7 @@ function MenuFilterChips({
14
14
  moreIcon,
15
15
  onMorePointerDown,
16
16
  formatCount = String,
17
+ chipSize = "sm",
17
18
  ariaLabel,
18
19
  className
19
20
  }) {
@@ -30,6 +31,7 @@ function MenuFilterChips({
30
31
  Chip,
31
32
  {
32
33
  chip,
34
+ size: chipSize,
33
35
  onToggle: () => onToggle(chip.key),
34
36
  formatCount
35
37
  },
@@ -46,7 +48,11 @@ function MenuFilterChips({
46
48
  onPointerDown: onMorePointerDown,
47
49
  "aria-label": moreLabel,
48
50
  "aria-haspopup": "dialog",
49
- className: "inline-flex size-10 shrink-0 items-center justify-center rounded-full border border-border text-accent transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none lg:hidden",
51
+ className: cn(
52
+ "inline-flex shrink-0 items-center justify-center rounded-full border border-border text-accent transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none lg:hidden",
53
+ // The one control that never scrolls keeps the chips' height.
54
+ chipSize === "lg" ? "size-11" : "size-10"
55
+ ),
50
56
  children: moreIcon
51
57
  }
52
58
  ),
@@ -67,6 +73,7 @@ function MenuFilterChips({
67
73
  }
68
74
  function Chip({
69
75
  chip,
76
+ size,
70
77
  onToggle,
71
78
  formatCount
72
79
  }) {
@@ -77,7 +84,8 @@ function Chip({
77
84
  onClick: onToggle,
78
85
  "aria-pressed": chip.active,
79
86
  className: cn(
80
- "inline-flex h-9 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full border px-4 text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",
87
+ "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full border px-4 text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",
88
+ size === "lg" ? "h-11" : "h-9",
81
89
  chip.active ? "border-accent font-semibold text-accent shadow-[0_1px_2px_oklch(0.51_0.095_45_/_0.08)]" : "border-border bg-card text-foreground hover:border-accent/40",
82
90
  // Dimmed, never disabled — pressing it is how the reader finds out
83
91
  // which active filter is in the way.
@@ -112,10 +120,20 @@ function MenuFilterSummary({
112
120
  ] });
113
121
  }
114
122
  var CHIP_WIDTHS = [128, 104, 96, 148, 112, 88];
115
- function MenuFilterChipsSkeleton({ className }) {
123
+ function MenuFilterChipsSkeleton({
124
+ className,
125
+ chipSize = "sm"
126
+ }) {
116
127
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2 overflow-hidden", className), "aria-hidden": true, children: [
117
128
  /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-[92px] shrink-0" }),
118
- CHIP_WIDTHS.map((width, index) => /* @__PURE__ */ jsx(Skeleton, { className: "h-9 shrink-0 rounded-full", style: { width } }, index))
129
+ CHIP_WIDTHS.map((width, index) => /* @__PURE__ */ jsx(
130
+ Skeleton,
131
+ {
132
+ className: cn("shrink-0 rounded-full", chipSize === "lg" ? "h-11" : "h-9"),
133
+ style: { width }
134
+ },
135
+ index
136
+ ))
119
137
  ] });
120
138
  }
121
139
 
@@ -1,6 +1,6 @@
1
1
  import { Separator } from '../chunk-NWZGSLPU.js';
2
2
  import { Skeleton } from '../chunk-XBBEX4SF.js';
3
- import { Button } from '../chunk-36KEHCET.js';
3
+ import { Button } from '../chunk-5LTILG3L.js';
4
4
  import '../chunk-RIH2IS7X.js';
5
5
  import '../chunk-5YNIQ2BL.js';
6
6
  import { cn } from '../chunk-FEK5XGZW.js';
@@ -1,5 +1,5 @@
1
- export { MentionSignal, MenuItem } from '../chunk-T6S2ZBV6.js';
2
- import '../chunk-S33K4RC5.js';
3
- import '../chunk-P43B3ONY.js';
1
+ export { MentionSignal, MenuItem } from '../chunk-SDWN6L4O.js';
2
+ import '../chunk-BKKQ7GCZ.js';
3
+ import '../chunk-5XREWOBB.js';
4
4
  import '../chunk-FEK5XGZW.js';
5
5
  import '../chunk-MMUBH76A.js';
@@ -54,6 +54,17 @@ type MenuKitchenListLabels = {
54
54
  /** Reveals the next page of rows, e.g. "Show 10 more". */
55
55
  showMore?: string;
56
56
  };
57
+ /**
58
+ * `wide` (default): the intent page's full-width list — from `lg` the venue
59
+ * takes a fixed 226px column and the dish stands beside it in a column of its
60
+ * own. `stacked`: the list sits in a narrow column (a concept card's row
61
+ * half), so the venue keeps the row and the dish takes a SECOND LINE under it
62
+ * from `lg`; in a half-width card the dish column had ~100px and its kicker,
63
+ * name and meta wrapped into a stack of single words. `phone`: the phone row
64
+ * at every width — no dish line, the venue and its price only — for a card
65
+ * that keeps its phone form on a desktop rail.
66
+ */
67
+ type MenuKitchenListLayout = "wide" | "stacked" | "phone";
57
68
  type MenuKitchenListProps = {
58
69
  kitchens: MenuKitchenPreview[];
59
70
  labels: MenuKitchenListLabels;
@@ -62,10 +73,11 @@ type MenuKitchenListProps = {
62
73
  * navigates for the eleventh — the list is the page.
63
74
  */
64
75
  onShowMore?: () => void;
76
+ layout?: MenuKitchenListLayout;
65
77
  linkComponent?: MenuLinkComponent;
66
78
  className?: string;
67
79
  };
68
- declare function MenuKitchenList({ kitchens, labels, onShowMore, linkComponent, className, }: MenuKitchenListProps): react_jsx_runtime.JSX.Element;
80
+ declare function MenuKitchenList({ kitchens, labels, onShowMore, layout, linkComponent, className, }: MenuKitchenListProps): react_jsx_runtime.JSX.Element;
69
81
  /**
70
82
  * The list's own loading state, at the row's own footprint.
71
83
  *
@@ -80,4 +92,4 @@ declare function MenuKitchenListSkeleton({ rows, className, }: {
80
92
  className?: string;
81
93
  }): react_jsx_runtime.JSX.Element;
82
94
 
83
- export { MenuKitchenList, type MenuKitchenListLabels, type MenuKitchenListLinkProps, type MenuKitchenListProps, MenuKitchenListSkeleton };
95
+ export { MenuKitchenList, type MenuKitchenListLabels, type MenuKitchenListLayout, type MenuKitchenListLinkProps, type MenuKitchenListProps, MenuKitchenListSkeleton };
@@ -1,4 +1,4 @@
1
- export { MenuKitchenList, MenuKitchenListSkeleton } from '../chunk-SXQZ7DLH.js';
1
+ export { MenuKitchenList, MenuKitchenListSkeleton } from '../chunk-QY66ME5B.js';
2
2
  import '../chunk-NWZGSLPU.js';
3
3
  import '../chunk-XBBEX4SF.js';
4
4
  import '../chunk-FEK5XGZW.js';
@@ -2,10 +2,10 @@ import { Popover, PopoverTrigger, PopoverContent } from '../chunk-2ADCZXZJ.js';
2
2
  import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '../chunk-MCOHLWRS.js';
3
3
  import '../chunk-PDTPO6NG.js';
4
4
  import { Checkbox } from '../chunk-NMEVJT5Q.js';
5
- import { Button } from '../chunk-36KEHCET.js';
5
+ import { Button } from '../chunk-5LTILG3L.js';
6
6
  import '../chunk-RIH2IS7X.js';
7
7
  import '../chunk-5YNIQ2BL.js';
8
- import { Badge } from '../chunk-P43B3ONY.js';
8
+ import { Badge } from '../chunk-5XREWOBB.js';
9
9
  import { cn } from '../chunk-FEK5XGZW.js';
10
10
  import '../chunk-MMUBH76A.js';
11
11
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- import { buttonVariants } from '../chunk-36KEHCET.js';
1
+ import { buttonVariants } from '../chunk-5LTILG3L.js';
2
2
  import '../chunk-RIH2IS7X.js';
3
3
  import '../chunk-5YNIQ2BL.js';
4
4
  import { cn } from '../chunk-FEK5XGZW.js';