@bearmenu/ui 0.8.13 → 0.8.14
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-66MAPLXS.js → chunk-2ADCZXZJ.js} +1 -1
- package/dist/{chunk-2DEIXTBN.js → chunk-2ZXIXQIU.js} +1 -1
- package/dist/{chunk-YOKHBAIH.js → chunk-4OF4T4AI.js} +12 -11
- package/dist/{chunk-MZL7CGCL.js → chunk-4XDJXMLF.js} +2 -2
- package/dist/{chunk-YYGB4G4Q.js → chunk-CZK2MRS2.js} +1 -1
- package/dist/chunk-DJD3EMPK.js +126 -0
- package/dist/chunk-EZG2NELX.js +5 -0
- package/dist/{chunk-VAXOQS7W.js → chunk-F76NCVVR.js} +1 -1
- package/dist/{chunk-VG3PND3D.js → chunk-FMTJGO76.js} +1 -1
- package/dist/{chunk-UXWAOISG.js → chunk-FVSKGCK3.js} +2 -2
- package/dist/{chunk-2XCZJWTV.js → chunk-GNCWJWFE.js} +1 -1
- package/dist/{chunk-X3WMRKOW.js → chunk-HDR7V6IZ.js} +1 -1
- package/dist/{chunk-HSIYYA2E.js → chunk-HQU6QVAN.js} +5 -5
- package/dist/chunk-I5V446BX.js +27 -0
- package/dist/{chunk-WCTHZKU7.js → chunk-ICOU5QHT.js} +1 -1
- package/dist/{chunk-G7IFL4Z4.js → chunk-L3VEMP5A.js} +57 -9
- package/dist/chunk-LQWGZIYA.js +5 -0
- package/dist/{chunk-XNA2INVQ.js → chunk-MCOHLWRS.js} +2 -2
- package/dist/{chunk-3GWWZKX7.js → chunk-MMUBH76A.js} +21 -1
- package/dist/{chunk-ZDAHKI3A.js → chunk-MWB7S54O.js} +1 -1
- package/dist/{chunk-D5QHEHXJ.js → chunk-NMEVJT5Q.js} +1 -1
- package/dist/{chunk-3TNPSN4D.js → chunk-NSNEANOQ.js} +2 -2
- package/dist/{chunk-WSRWFA6K.js → chunk-NWZGSLPU.js} +1 -1
- package/dist/{chunk-LEAYBICI.js → chunk-OIV7B44M.js} +1 -1
- package/dist/{chunk-2CXU5WZO.js → chunk-P43B3ONY.js} +1 -1
- package/dist/{chunk-FRPPIXMY.js → chunk-PDTPO6NG.js} +1 -1
- package/dist/{chunk-6XMYEZVR.js → chunk-PX6RICS5.js} +1 -1
- package/dist/{chunk-6TEEY5YA.js → chunk-S33K4RC5.js} +1 -1
- package/dist/{chunk-3VMDCCCX.js → chunk-SC2VUTUI.js} +1 -1
- package/dist/{chunk-3NMG3KNA.js → chunk-SXQZ7DLH.js} +3 -3
- package/dist/{chunk-UDTG3RSE.js → chunk-T6S2ZBV6.js} +2 -2
- package/dist/{chunk-FKNBZF5T.js → chunk-WYTJR2YU.js} +1 -1
- package/dist/{chunk-QXHMPJ35.js → chunk-XBBEX4SF.js} +1 -1
- package/dist/chunk-XCB3F6SF.js +16 -0
- package/dist/{chunk-7BWTYWM3.js → chunk-ZLMRVBD7.js} +1 -1
- package/dist/{chunk-P7XTW2CG.js → chunk-ZLPWEHZO.js} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.js +2 -2
- package/dist/components/alert.js +2 -2
- package/dist/components/aspect-ratio.js +2 -2
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +2 -2
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/button-group.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/calendar.js +2 -2
- package/dist/components/card.js +3 -3
- package/dist/components/carousel.js +2 -2
- package/dist/components/category-deck.js +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/circular-progress.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +5 -5
- package/dist/components/command.js +3 -3
- package/dist/components/concept-card.js +2 -2
- package/dist/components/concept-compare-rail.js +3 -3
- package/dist/components/concept-compare.d.ts +2 -1
- package/dist/components/concept-compare.js +5 -5
- package/dist/components/concept-convergence.js +4 -4
- package/dist/components/convergence.js +3 -3
- package/dist/components/coverflow.js +1 -1
- package/dist/components/currency-input.js +2 -2
- package/dist/components/date-input.js +2 -2
- package/dist/components/day-rail-chip.js +2 -2
- package/dist/components/description-list.js +1 -1
- package/dist/components/dialog.js +2 -2
- package/dist/components/doorway-tiles.d.ts +57 -0
- package/dist/components/doorway-tiles.js +86 -0
- package/dist/components/drawer.js +1 -1
- package/dist/components/drift-rail.js +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/empty-state.js +3 -3
- package/dist/components/event-card.js +4 -4
- package/dist/components/event-compact-row.js +4 -4
- package/dist/components/event-day-header.js +2 -2
- package/dist/components/event-day-separator.js +3 -3
- package/dist/components/event-detail-panel.js +4 -4
- package/dist/components/event-hub-hero.js +2 -2
- package/dist/components/event-index-row.js +4 -4
- package/dist/components/event-list-row-wide.js +5 -5
- package/dist/components/event-list-row.js +5 -5
- package/dist/components/event-poster-fallback.js +1 -1
- package/dist/components/event-types.js +1 -1
- package/dist/components/events-empty-state.js +1 -1
- package/dist/components/explainer-steps.js +1 -1
- package/dist/components/facet-group.js +2 -2
- package/dist/components/featured-rail-item.js +2 -2
- package/dist/components/field.js +2 -2
- package/dist/components/filter-category-row.js +3 -3
- package/dist/components/form.js +2 -2
- package/dist/components/glass-ground.js +2 -2
- package/dist/components/grade-atom.d.ts +3 -0
- package/dist/components/grade-atom.js +4 -0
- package/dist/components/haptic-button.js +2 -2
- package/dist/components/hour-band.js +4 -4
- package/dist/components/hour-group.js +4 -4
- package/dist/components/hub-surface.js +1 -1
- package/dist/components/hue-chip.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input-otp.js +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/item.js +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/kitchen-dossier.d.ts +2 -1
- package/dist/components/kitchen-dossier.js +3 -3
- package/dist/components/label.js +2 -2
- package/dist/components/lazy-markdown.js +1 -1
- package/dist/components/link-button.js +2 -2
- package/dist/components/markdown-renderer.js +1 -1
- package/dist/components/menu-dead-end.d.ts +2 -1
- package/dist/components/menu-dead-end.js +1 -1
- package/dist/components/menu-family-block.d.ts +2 -1
- package/dist/components/menu-family-block.js +14 -8
- package/dist/components/menu-family-card.d.ts +2 -1
- package/dist/components/menu-family-card.js +1 -1
- package/dist/components/menu-field.js +1 -1
- package/dist/components/menu-filter-chips.d.ts +2 -1
- package/dist/components/menu-filter-chips.js +3 -3
- package/dist/components/menu-group-rows.d.ts +2 -1
- package/dist/components/menu-group-rows.js +2 -2
- package/dist/components/menu-hub-hero.js +1 -1
- package/dist/components/menu-index-header.d.ts +2 -1
- package/dist/components/menu-index-header.js +2 -2
- package/dist/components/menu-index-list.d.ts +2 -1
- package/dist/components/menu-index-list.js +4 -4
- package/dist/components/menu-intent-hero.d.ts +3 -2
- package/dist/components/menu-intent-hero.js +1 -1
- package/dist/components/menu-item.d.ts +2 -1
- package/dist/components/menu-item.js +4 -4
- package/dist/components/menu-kitchen-list.d.ts +2 -1
- package/dist/components/menu-kitchen-list.js +4 -4
- package/dist/components/menu-mocks.d.ts +16 -5
- package/dist/components/menu-mocks.js +23 -2
- package/dist/components/menu-types.d.ts +21 -34
- package/dist/components/motion-icon-actions.d.ts +27 -0
- package/dist/components/motion-icon-actions.js +336 -0
- package/dist/components/motion-icon-controls.js +3 -3
- package/dist/components/motion-icon-set.d.ts +13 -1
- package/dist/components/motion-icon-set.js +197 -6
- package/dist/components/motion-icon.d.ts +15 -1
- package/dist/components/motion-icon.js +2 -2
- package/dist/components/multi-select-combobox.js +7 -7
- package/dist/components/multi-select-menu.js +2 -2
- package/dist/components/native-select.js +1 -1
- package/dist/components/open-now-list.d.ts +2 -1
- package/dist/components/open-now-list.js +2 -2
- package/dist/components/pagination.js +2 -2
- package/dist/components/phone-frame.js +1 -1
- package/dist/components/photo-ground.js +1 -1
- package/dist/components/place-about-tab.d.ts +2 -1
- package/dist/components/place-about-tab.js +6 -6
- package/dist/components/place-card.d.ts +94 -12
- package/dist/components/place-card.js +203 -128
- package/dist/components/place-details-mobile.d.ts +2 -1
- package/dist/components/place-details-mobile.js +7 -7
- package/dist/components/place-schedule-week.d.ts +2 -1
- package/dist/components/place-schedule-week.js +3 -3
- package/dist/components/place-types.d.ts +3 -265
- package/dist/components/popover.js +2 -2
- package/dist/components/poster-stack.js +1 -1
- package/dist/components/poster-tape.js +1 -1
- package/dist/components/poster-wall.d.ts +22 -6
- package/dist/components/poster-wall.js +197 -12
- package/dist/components/progress.js +1 -1
- package/dist/components/qa-block.d.ts +2 -1
- package/dist/components/qa-block.js +1 -1
- package/dist/components/quiet-stretch.js +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/scroll-fade.js +2 -2
- package/dist/components/search-bar.js +1 -1
- package/dist/components/searchable-select.js +5 -5
- package/dist/components/section-header.js +2 -2
- package/dist/components/segmented-nav.d.ts +24 -4
- package/dist/components/segmented-nav.js +11 -2
- package/dist/components/select.js +1 -1
- package/dist/components/selection-bar.js +1 -1
- package/dist/components/separator.js +2 -2
- package/dist/components/sheet.js +1 -1
- package/dist/components/signature-chip.js +3 -3
- package/dist/components/skeleton-card.js +3 -3
- package/dist/components/skeleton.js +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/sliding-panels.js +2 -2
- package/dist/components/snap-rail.js +2 -2
- package/dist/components/sonner.js +1 -1
- package/dist/components/sort-option-list.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/stat-banner.js +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/sticky-container.js +1 -1
- package/dist/components/story.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +2 -2
- package/dist/components/tag-group.js +2 -2
- package/dist/components/tag.js +2 -2
- package/dist/components/text.js +2 -2
- package/dist/components/textarea.js +1 -1
- package/dist/components/timeline-band.js +4 -4
- package/dist/components/timeline-playhead.js +4 -4
- package/dist/components/toggle-group.js +2 -2
- package/dist/components/toggle.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/components/top-comparison.d.ts +2 -1
- package/dist/components/top-comparison.js +1 -1
- package/dist/components/top-cross-link.d.ts +2 -1
- package/dist/components/top-cross-link.js +1 -1
- package/dist/components/top-ranking-entry.d.ts +2 -1
- package/dist/components/top-ranking-entry.js +6 -6
- package/dist/components/top-ranking-hero.d.ts +2 -1
- package/dist/components/top-ranking-hero.js +1 -1
- package/dist/components/top-ranking-legend.js +1 -1
- package/dist/components/top-types.d.ts +3 -1
- package/dist/components/use-mobile.js +1 -1
- package/dist/components/venue-events-block.js +5 -5
- package/dist/components/venue-grade-dimensions.d.ts +2 -1
- package/dist/components/venue-grade-dimensions.js +1 -1
- package/dist/components/venue-quotes.d.ts +2 -1
- package/dist/components/venue-quotes.js +1 -1
- package/dist/components/venue-wall.d.ts +2 -1
- package/dist/components/venue-wall.js +1 -1
- package/dist/components/weekday-theme-banner.js +1 -1
- package/dist/components/weekend-panel.js +4 -4
- package/dist/hooks/use-drag-swipe.js +1 -1
- package/dist/hooks/use-haptic.js +1 -1
- package/dist/hooks/use-media-query.js +1 -1
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/hooks/use-mounted-theme.js +1 -1
- package/dist/hooks/use-sticky.js +1 -1
- package/dist/lib/card-hover.js +2 -18
- package/dist/lib/grade.d.ts +54 -0
- package/dist/lib/grade.js +2 -0
- package/dist/lib/icon-depth.d.ts +35 -0
- package/dist/lib/icon-depth.js +2 -0
- package/dist/lib/icon-registry.js +1 -1
- package/dist/lib/motion.js +2 -2
- package/dist/lib/overlay-pill.d.ts +30 -0
- package/dist/lib/overlay-pill.js +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/place-types-BHdeMMiG.d.ts +317 -0
- package/package.json +1 -1
- package/src/components/colour-dictionary.stories.tsx +268 -82
- package/src/components/doorway-tiles.stories.tsx +83 -0
- package/src/components/doorway-tiles.test.tsx +51 -0
- package/src/components/doorway-tiles.tsx +225 -0
- package/src/components/grade-atom.stories.tsx +81 -0
- package/src/components/grade-atom.tsx +256 -0
- package/src/components/hue-chip.stories.tsx +2 -2
- package/src/components/menu-family-block.stories.tsx +29 -0
- package/src/components/menu-family-block.test.tsx +51 -0
- package/src/components/menu-family-block.tsx +20 -4
- package/src/components/menu-intent-hero.tsx +1 -1
- package/src/components/menu-mocks.ts +39 -3
- package/src/components/menu-types.ts +17 -33
- package/src/components/motion-icon-actions.test.tsx +115 -0
- package/src/components/motion-icon-actions.tsx +580 -0
- package/src/components/motion-icon-controls.test.tsx +1 -0
- package/src/components/motion-icon-controls.tsx +18 -13
- package/src/components/motion-icon-set.stories.tsx +62 -3
- package/src/components/motion-icon-set.tsx +349 -2
- package/src/components/motion-icon.test.tsx +180 -1
- package/src/components/motion-icon.tsx +97 -8
- package/src/components/place-card.stories.tsx +66 -76
- package/src/components/place-card.test.tsx +188 -100
- package/src/components/place-card.tsx +356 -148
- package/src/components/place-types.ts +17 -4
- package/src/components/poster-wall.stories.tsx +84 -0
- package/src/components/poster-wall.test.tsx +94 -3
- package/src/components/poster-wall.tsx +257 -9
- package/src/components/segmented-nav.stories.tsx +72 -1
- package/src/components/segmented-nav.test.tsx +96 -0
- package/src/components/segmented-nav.tsx +36 -4
- package/src/globals.css +26 -0
- package/src/lib/grade.test.ts +82 -0
- package/src/lib/grade.ts +76 -0
- package/src/lib/icon-depth.ts +35 -0
- package/src/lib/overlay-pill.ts +29 -0
- package/dist/components/menu-family-tiles.d.ts +0 -19
- package/dist/components/menu-family-tiles.js +0 -57
- package/src/components/menu-family-tiles.stories.tsx +0 -54
- package/src/components/menu-family-tiles.test.tsx +0 -30
- package/src/components/menu-family-tiles.tsx +0 -132
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-
|
|
2
|
-
import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import { Button } from '../chunk-
|
|
1
|
+
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-2ADCZXZJ.js';
|
|
2
|
+
import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '../chunk-MCOHLWRS.js';
|
|
3
|
+
import '../chunk-PDTPO6NG.js';
|
|
4
|
+
import { Button } from '../chunk-F76NCVVR.js';
|
|
5
5
|
import '../chunk-R47NEOSI.js';
|
|
6
6
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-MMUBH76A.js';
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { ChevronsUpDown, Check, X } from 'lucide-react';
|
|
10
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Skeleton } from '../chunk-
|
|
1
|
+
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
2
2
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
3
|
-
import { __objRest, __spreadValues } from '../chunk-
|
|
3
|
+
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
4
4
|
import { ChevronRight } from 'lucide-react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -26,13 +26,27 @@ import * as React from 'react';
|
|
|
26
26
|
* genuinely want it to hug on mobile can pass `w-auto` through `className`,
|
|
27
27
|
* which wins via `cn`'s merge.
|
|
28
28
|
*/
|
|
29
|
+
/**
|
|
30
|
+
* What a segment's icon render function receives. `replayToken` bumps on
|
|
31
|
+
* POINTER DOWN on that segment — before any navigation exists — which is what
|
|
32
|
+
* a character-animated glyph (`MotionIcon`) needs to answer the finger rather
|
|
33
|
+
* than the route change that follows it.
|
|
34
|
+
*/
|
|
35
|
+
type SegmentedNavIconState = {
|
|
36
|
+
active: boolean;
|
|
37
|
+
replayToken: number;
|
|
38
|
+
};
|
|
29
39
|
type SegmentedNavItem = {
|
|
30
40
|
/** Stable identity, compared against `activeId`. */
|
|
31
41
|
id: string;
|
|
32
42
|
href: string;
|
|
33
43
|
label: string;
|
|
34
|
-
/**
|
|
35
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Rendered before the label. Size it at the call site (the design uses
|
|
46
|
+
* 15–16px). A function receives the segment's state, for glyphs that
|
|
47
|
+
* perform on touch: `({ active, replayToken }) => <MotionWine active={active} replayToken={replayToken} />`.
|
|
48
|
+
*/
|
|
49
|
+
icon?: React.ReactNode | ((state: SegmentedNavIconState) => React.ReactNode);
|
|
36
50
|
};
|
|
37
51
|
/**
|
|
38
52
|
* The shape `linkComponent` must accept. `next/link` satisfies it structurally,
|
|
@@ -44,6 +58,7 @@ type SegmentedNavLinkProps = {
|
|
|
44
58
|
children: React.ReactNode;
|
|
45
59
|
"aria-current"?: "page";
|
|
46
60
|
onClick?: () => void;
|
|
61
|
+
onPointerDown?: () => void;
|
|
47
62
|
};
|
|
48
63
|
type SegmentedNavProps = {
|
|
49
64
|
items: SegmentedNavItem[];
|
|
@@ -51,7 +66,12 @@ type SegmentedNavProps = {
|
|
|
51
66
|
activeId: string;
|
|
52
67
|
/** Accessible name for the nav landmark. Translated by the caller. */
|
|
53
68
|
label: string;
|
|
54
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Defaults to a plain `<a>`. Pass `next/link` in a Next app. Must be a
|
|
71
|
+
* stable reference (module scope, not an inline arrow): a new component
|
|
72
|
+
* identity per render remounts every segment, and with a function `icon`
|
|
73
|
+
* that cuts the pointer-down gesture off at the click.
|
|
74
|
+
*/
|
|
55
75
|
linkComponent?: React.ComponentType<SegmentedNavLinkProps>;
|
|
56
76
|
/** Fired with the segment id on click — analytics, haptics. Never navigation. */
|
|
57
77
|
onSelect?: (id: string) => void;
|
|
@@ -59,4 +79,4 @@ type SegmentedNavProps = {
|
|
|
59
79
|
};
|
|
60
80
|
declare function SegmentedNav({ items, activeId, label, linkComponent: LinkComponent, onSelect, className, }: SegmentedNavProps): react_jsx_runtime.JSX.Element;
|
|
61
81
|
|
|
62
|
-
export { SegmentedNav, type SegmentedNavItem, type SegmentedNavLinkProps, type SegmentedNavProps };
|
|
82
|
+
export { SegmentedNav, type SegmentedNavIconState, type SegmentedNavItem, type SegmentedNavLinkProps, type SegmentedNavProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import {
|
|
2
|
+
import { __spreadProps, __spreadValues, __objRest } from '../chunk-MMUBH76A.js';
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
function DefaultLink(_a) {
|
|
@@ -14,6 +15,11 @@ function SegmentedNav({
|
|
|
14
15
|
onSelect,
|
|
15
16
|
className
|
|
16
17
|
}) {
|
|
18
|
+
const [replayTokens, setReplayTokens] = React.useState({});
|
|
19
|
+
const replay = (id) => setReplayTokens((tokens) => {
|
|
20
|
+
var _a;
|
|
21
|
+
return __spreadProps(__spreadValues({}, tokens), { [id]: ((_a = tokens[id]) != null ? _a : 0) + 1 });
|
|
22
|
+
});
|
|
17
23
|
return /* @__PURE__ */ jsx(
|
|
18
24
|
"nav",
|
|
19
25
|
{
|
|
@@ -24,13 +30,16 @@ function SegmentedNav({
|
|
|
24
30
|
className
|
|
25
31
|
),
|
|
26
32
|
children: items.map((item) => {
|
|
33
|
+
var _a;
|
|
27
34
|
const isActive = item.id === activeId;
|
|
35
|
+
const icon = typeof item.icon === "function" ? item.icon({ active: isActive, replayToken: (_a = replayTokens[item.id]) != null ? _a : 0 }) : item.icon;
|
|
28
36
|
return /* @__PURE__ */ jsxs(
|
|
29
37
|
LinkComponent,
|
|
30
38
|
{
|
|
31
39
|
href: item.href,
|
|
32
40
|
"aria-current": isActive ? "page" : void 0,
|
|
33
41
|
onClick: onSelect ? () => onSelect(item.id) : void 0,
|
|
42
|
+
onPointerDown: typeof item.icon === "function" ? () => replay(item.id) : void 0,
|
|
34
43
|
className: cn(
|
|
35
44
|
"inline-flex h-9 flex-1 items-center justify-center gap-1.5 rounded-md px-3",
|
|
36
45
|
"text-[13px] font-semibold lg:flex-none lg:text-sm",
|
|
@@ -40,7 +49,7 @@ function SegmentedNav({
|
|
|
40
49
|
isActive ? "bg-primary/10 text-primary" : "text-muted-foreground hover:text-foreground"
|
|
41
50
|
),
|
|
42
51
|
children: [
|
|
43
|
-
|
|
52
|
+
icon,
|
|
44
53
|
item.label
|
|
45
54
|
]
|
|
46
55
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { X } from 'lucide-react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Separator } from '../chunk-
|
|
1
|
+
export { Separator } from '../chunk-NWZGSLPU.js';
|
|
2
2
|
import '../chunk-FEK5XGZW.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-MMUBH76A.js';
|
package/dist/components/sheet.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SignatureChip } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { SignatureChip } from '../chunk-S33K4RC5.js';
|
|
2
|
+
import '../chunk-P43B3ONY.js';
|
|
3
3
|
import '../chunk-FEK5XGZW.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-MMUBH76A.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Skeleton } from '../chunk-
|
|
2
|
-
import { AspectRatio } from '../chunk-
|
|
1
|
+
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
2
|
+
import { AspectRatio } from '../chunk-SC2VUTUI.js';
|
|
3
3
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
4
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
4
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Skeleton } from '../chunk-
|
|
1
|
+
export { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
2
2
|
import '../chunk-FEK5XGZW.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-MMUBH76A.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Button } from '../chunk-
|
|
1
|
+
import { Button } from '../chunk-F76NCVVR.js';
|
|
2
2
|
import '../chunk-R47NEOSI.js';
|
|
3
3
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-MMUBH76A.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { useRef, useState, useLayoutEffect } from 'react';
|
|
7
7
|
import { ChevronLeft } from 'lucide-react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SnapRail, SnapRailDots } from '../chunk-
|
|
1
|
+
export { SnapRail, SnapRailDots } from '../chunk-WYTJR2YU.js';
|
|
2
2
|
import '../chunk-FEK5XGZW.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-MMUBH76A.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __objRest, __spreadValues } from '../chunk-
|
|
1
|
+
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
2
2
|
import { Loader2Icon, CircleAlertIcon, TriangleAlertIcon, InfoIcon, CircleCheckIcon } from 'lucide-react';
|
|
3
3
|
import { useTheme } from 'next-themes';
|
|
4
4
|
import { Toaster as Toaster$1 } from 'sonner';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { Loader2 } from 'lucide-react';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
package/dist/components/story.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
package/dist/components/table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadValues, __spreadProps } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadValues, __spreadProps } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ChevronUp, ChevronDown, ChevronsUpDown } from 'lucide-react';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
package/dist/components/tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { archetype } from '../chunk-
|
|
1
|
+
import { archetype } from '../chunk-OIV7B44M.js';
|
|
2
2
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
3
|
-
import { __objRest, __spreadValues, __spreadProps } from '../chunk-
|
|
3
|
+
import { __objRest, __spreadValues, __spreadProps } from '../chunk-MMUBH76A.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
6
6
|
import { motion } from 'framer-motion';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TagGroup } from '../chunk-
|
|
1
|
+
export { TagGroup } from '../chunk-PX6RICS5.js';
|
|
2
2
|
import '../chunk-FEK5XGZW.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-MMUBH76A.js';
|
package/dist/components/tag.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Tag, tagVariants } from '../chunk-
|
|
1
|
+
export { Tag, tagVariants } from '../chunk-MWB7S54O.js';
|
|
2
2
|
import '../chunk-FEK5XGZW.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-MMUBH76A.js';
|
package/dist/components/text.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Text, textVariants } from '../chunk-
|
|
1
|
+
export { Text, textVariants } from '../chunk-ZLMRVBD7.js';
|
|
2
2
|
import '../chunk-FEK5XGZW.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-MMUBH76A.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { TIMELINE_MOBILE_GUTTER_CLASS, TimelineBand, TimelineBandSkeleton, TimelineHourPuck } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { TIMELINE_MOBILE_GUTTER_CLASS, TimelineBand, TimelineBandSkeleton, TimelineHourPuck } from '../chunk-NSNEANOQ.js';
|
|
2
|
+
import '../chunk-NWZGSLPU.js';
|
|
3
|
+
import '../chunk-XBBEX4SF.js';
|
|
4
4
|
import '../chunk-FEK5XGZW.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-MMUBH76A.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TIMELINE_MOBILE_GUTTER_CLASS } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { TIMELINE_MOBILE_GUTTER_CLASS } from '../chunk-NSNEANOQ.js';
|
|
2
|
+
import '../chunk-NWZGSLPU.js';
|
|
3
|
+
import '../chunk-XBBEX4SF.js';
|
|
4
4
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-MMUBH76A.js';
|
|
6
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
function TimelinePlayhead({ time, label, className }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toggleVariants } from '../chunk-
|
|
1
|
+
import { toggleVariants } from '../chunk-HDR7V6IZ.js';
|
|
2
2
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
3
|
-
import { __objRest, __spreadProps, __spreadValues } from '../chunk-
|
|
3
|
+
import { __objRest, __spreadProps, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Toggle, toggleVariants } from '../chunk-
|
|
1
|
+
export { Toggle, toggleVariants } from '../chunk-HDR7V6IZ.js';
|
|
2
2
|
import '../chunk-FEK5XGZW.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-MMUBH76A.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -2,7 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { MenuLinkComponent } from './menu-types.js';
|
|
3
3
|
import { TopComparisonRow } from './top-types.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '
|
|
5
|
+
import '../place-types-BHdeMMiG.js';
|
|
6
|
+
import '../lib/grade.js';
|
|
6
7
|
|
|
7
8
|
type TopComparisonLabels = {
|
|
8
9
|
venue: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import { ArrowRight, Trophy, LayoutList } from 'lucide-react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -3,7 +3,8 @@ import { MenuItemLabels } from './menu-item.js';
|
|
|
3
3
|
import { MenuItemPreview, MenuLinkComponent } from './menu-types.js';
|
|
4
4
|
import { TopRankEntry } from './top-types.js';
|
|
5
5
|
import 'react';
|
|
6
|
-
import '
|
|
6
|
+
import '../place-types-BHdeMMiG.js';
|
|
7
|
+
import '../lib/grade.js';
|
|
7
8
|
|
|
8
9
|
type TopRankingEntryLabels = {
|
|
9
10
|
/** Heading over the menu rows when the venue's own group is unknown. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MenuItem } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import { Separator } from '../chunk-
|
|
4
|
-
import { Skeleton } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
import { MenuItem } from '../chunk-T6S2ZBV6.js';
|
|
2
|
+
import '../chunk-S33K4RC5.js';
|
|
3
|
+
import { Separator } from '../chunk-NWZGSLPU.js';
|
|
4
|
+
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
5
|
+
import '../chunk-P43B3ONY.js';
|
|
6
6
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
7
|
-
import { __objRest, __spreadValues } from '../chunk-
|
|
7
|
+
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
8
8
|
import { MapPin, Star, MessageSquareQuote } from 'lucide-react';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
@@ -2,7 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { MenuLinkComponent } from './menu-types.js';
|
|
3
3
|
import { TopExit } from './top-types.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '
|
|
5
|
+
import '../place-types-BHdeMMiG.js';
|
|
6
|
+
import '../lib/grade.js';
|
|
6
7
|
|
|
7
8
|
type TopRankingHeroProps = {
|
|
8
9
|
/** e.g. "RANKED · CUISINE". */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import { Trophy, CalendarCheck, LayoutList, ArrowRight, Info } from 'lucide-react';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { MenuItemPreview } from './menu-types.js';
|
|
3
|
-
import '
|
|
3
|
+
import '../place-types-BHdeMMiG.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import '../lib/grade.js';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* The editorial ranking's view model — `/top/[category]`.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Separator } from '../chunk-
|
|
2
|
-
import { Card } from '../chunk-
|
|
3
|
-
import { Skeleton } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
import { Separator } from '../chunk-NWZGSLPU.js';
|
|
2
|
+
import { Card } from '../chunk-FVSKGCK3.js';
|
|
3
|
+
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
4
|
+
import '../chunk-ZLMRVBD7.js';
|
|
5
5
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
6
|
-
import { __objRest, __spreadValues } from '../chunk-
|
|
6
|
+
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { Star, Quote } from 'lucide-react';
|
|
9
9
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { PlaceGradeDimensions } from '
|
|
2
|
+
import { a as PlaceGradeDimensions } from '../place-types-BHdeMMiG.js';
|
|
3
|
+
import '../lib/grade.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* VenueGradeDimensions — the per-dimension review scores as a row of bars.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { MenuLinkComponent, MenuLinkProps } from './menu-types.js';
|
|
3
|
-
import { PlacePreview } from '
|
|
3
|
+
import { P as PlacePreview } from '../place-types-BHdeMMiG.js';
|
|
4
4
|
import 'react';
|
|
5
|
+
import '../lib/grade.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* VenueWall — the catalogue's scale, stated as a row of the venues in it.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
2
|
-
import { __objRest, __spreadValues } from '../chunk-
|
|
2
|
+
import { __objRest, __spreadValues } from '../chunk-MMUBH76A.js';
|
|
3
3
|
import { ChevronRight } from 'lucide-react';
|
|
4
4
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useMediaQuery, DESKTOP_MEDIA_QUERY } from '../chunk-OPVKL4VS.js';
|
|
2
|
-
import { MotionPlayPause } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
import { MotionPlayPause } from '../chunk-4OF4T4AI.js';
|
|
3
|
+
import '../chunk-L3VEMP5A.js';
|
|
4
4
|
import { useDragSwipe } from '../chunk-IYDH5IU6.js';
|
|
5
|
-
import { Skeleton } from '../chunk-
|
|
5
|
+
import { Skeleton } from '../chunk-XBBEX4SF.js';
|
|
6
6
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
7
|
-
import { __spreadProps, __spreadValues, __objRest } from '../chunk-
|
|
7
|
+
import { __spreadProps, __spreadValues, __objRest } from '../chunk-MMUBH76A.js';
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { ChevronRight } from 'lucide-react';
|
|
10
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useDragSwipe } from '../chunk-IYDH5IU6.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-MMUBH76A.js';
|
package/dist/hooks/use-haptic.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useHaptic } from '../chunk-R47NEOSI.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-MMUBH76A.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { DESKTOP_MEDIA_QUERY, useMediaQuery } from '../chunk-OPVKL4VS.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-MMUBH76A.js';
|
package/dist/hooks/use-mobile.js
CHANGED