@bearmenu/ui 0.1.0 → 0.5.0

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 (119) hide show
  1. package/README.md +116 -0
  2. package/dist/{chunk-2CUFS5LF.js → chunk-2BMJRXQX.js} +1 -1
  3. package/dist/chunk-HLQ2IRE7.js +279 -0
  4. package/dist/chunk-IQASCH2V.js +25 -0
  5. package/dist/{chunk-UXAYXRFN.js → chunk-QJ54Z7TC.js} +15 -1
  6. package/dist/{chunk-X6GATUI2.js → chunk-UISA4CIG.js} +1 -0
  7. package/dist/components/alert-dialog.js +1 -1
  8. package/dist/components/alert.d.ts +1 -1
  9. package/dist/components/badge.d.ts +1 -1
  10. package/dist/components/button.d.ts +1 -1
  11. package/dist/components/button.js +1 -1
  12. package/dist/components/calendar.d.ts +9 -7
  13. package/dist/components/calendar.js +153 -39
  14. package/dist/components/card.d.ts +2 -1
  15. package/dist/components/card.js +1 -1
  16. package/dist/components/carousel.js +1 -1
  17. package/dist/components/checkbox.js +3 -25
  18. package/dist/components/command.d.ts +13 -13
  19. package/dist/components/dropdown-menu.js +1 -1
  20. package/dist/components/empty-state.js +1 -1
  21. package/dist/components/haptic-button.js +1 -1
  22. package/dist/components/link-button.js +1 -1
  23. package/dist/components/multi-select-combobox.js +1 -1
  24. package/dist/components/multi-select-menu.d.ts +26 -0
  25. package/dist/components/multi-select-menu.js +71 -0
  26. package/dist/components/pagination.js +1 -1
  27. package/dist/components/phone-frame.d.ts +17 -0
  28. package/dist/components/phone-frame.js +41 -0
  29. package/dist/components/place-about-tab.d.ts +17 -0
  30. package/dist/components/place-about-tab.js +6 -0
  31. package/dist/components/place-card.d.ts +17 -0
  32. package/dist/components/place-card.js +145 -0
  33. package/dist/components/place-details-mobile.d.ts +18 -0
  34. package/dist/components/place-details-mobile.js +187 -0
  35. package/dist/components/place-types.d.ts +145 -0
  36. package/dist/components/place-types.js +1 -0
  37. package/dist/components/search-bar.js +1 -1
  38. package/dist/components/searchable-select.js +1 -1
  39. package/dist/components/skeleton-card.js +1 -1
  40. package/dist/components/skeleton.js +1 -1
  41. package/dist/components/sliding-panels.js +1 -1
  42. package/dist/components/sonner.js +11 -2
  43. package/dist/components/tabs.js +1 -1
  44. package/dist/components/text.d.ts +3 -3
  45. package/dist/components/toaster.js +1 -1
  46. package/package.json +28 -9
  47. package/src/components/accordion.stories.tsx +51 -0
  48. package/src/components/alert-dialog.stories.tsx +45 -0
  49. package/src/components/alert.stories.tsx +85 -0
  50. package/src/components/aspect-ratio.stories.tsx +47 -0
  51. package/src/components/avatar.stories.tsx +66 -0
  52. package/src/components/badge.stories.tsx +60 -0
  53. package/src/components/breadcrumb.stories.tsx +63 -0
  54. package/src/components/button.stories.tsx +115 -0
  55. package/src/components/button.tsx +1 -1
  56. package/src/components/calendar.stories.tsx +47 -0
  57. package/src/components/calendar.tsx +160 -40
  58. package/src/components/card.stories.tsx +72 -0
  59. package/src/components/card.tsx +13 -1
  60. package/src/components/carousel.stories.tsx +62 -0
  61. package/src/components/checkbox.stories.tsx +54 -0
  62. package/src/components/checkbox.tsx +1 -1
  63. package/src/components/collapsible.stories.tsx +34 -0
  64. package/src/components/command.stories.tsx +64 -0
  65. package/src/components/currency-input.stories.tsx +50 -0
  66. package/src/components/dialog.stories.tsx +75 -0
  67. package/src/components/drawer.stories.tsx +47 -0
  68. package/src/components/dropdown-menu.stories.tsx +64 -0
  69. package/src/components/dropdown-menu.tsx +1 -1
  70. package/src/components/empty-state.stories.tsx +67 -0
  71. package/src/components/form.stories.tsx +73 -0
  72. package/src/components/haptic-button.stories.tsx +41 -0
  73. package/src/components/input-otp.stories.tsx +42 -0
  74. package/src/components/input.stories.tsx +41 -0
  75. package/src/components/label.stories.tsx +35 -0
  76. package/src/components/markdown-renderer.stories.tsx +45 -0
  77. package/src/components/multi-select-combobox.stories.tsx +78 -0
  78. package/src/components/multi-select-menu.tsx +96 -0
  79. package/src/components/pagination.stories.tsx +48 -0
  80. package/src/components/phone-frame.stories.tsx +51 -0
  81. package/src/components/phone-frame.test.tsx +82 -0
  82. package/src/components/phone-frame.tsx +59 -0
  83. package/src/components/place-about-tab.stories.tsx +164 -0
  84. package/src/components/place-about-tab.test.tsx +325 -0
  85. package/src/components/place-about-tab.tsx +474 -0
  86. package/src/components/place-card.stories.tsx +120 -0
  87. package/src/components/place-card.test.tsx +187 -0
  88. package/src/components/place-card.tsx +187 -0
  89. package/src/components/place-details-mobile.tsx +251 -0
  90. package/src/components/place-types.ts +127 -0
  91. package/src/components/popover.stories.tsx +42 -0
  92. package/src/components/progress.stories.tsx +35 -0
  93. package/src/components/radio-group.stories.tsx +46 -0
  94. package/src/components/rating.stories.tsx +45 -0
  95. package/src/components/scroll-area.stories.tsx +48 -0
  96. package/src/components/search-bar.stories.tsx +92 -0
  97. package/src/components/searchable-select.stories.tsx +55 -0
  98. package/src/components/select.stories.tsx +92 -0
  99. package/src/components/separator.stories.tsx +33 -0
  100. package/src/components/sheet.stories.tsx +95 -0
  101. package/src/components/skeleton-card.stories.tsx +53 -0
  102. package/src/components/skeleton.stories.tsx +42 -0
  103. package/src/components/skeleton.tsx +1 -0
  104. package/src/components/slider.stories.tsx +27 -0
  105. package/src/components/sliding-panels.stories.tsx +68 -0
  106. package/src/components/sonner.tsx +17 -2
  107. package/src/components/sticky-container.stories.tsx +33 -0
  108. package/src/components/switch.stories.tsx +35 -0
  109. package/src/components/table.stories.tsx +60 -0
  110. package/src/components/tabs.stories.tsx +53 -0
  111. package/src/components/tabs.tsx +1 -1
  112. package/src/components/text.stories.tsx +82 -0
  113. package/src/components/textarea.stories.tsx +35 -0
  114. package/src/components/toast.stories.tsx +63 -0
  115. package/src/components/toggle-group.stories.tsx +60 -0
  116. package/src/components/toggle.stories.tsx +48 -0
  117. package/src/components/tooltip.stories.tsx +71 -0
  118. package/src/globals.css +14 -2
  119. package/src/test/setup.ts +9 -0
package/README.md ADDED
@@ -0,0 +1,116 @@
1
+ # @bearmenu/ui
2
+
3
+ Shared design system for BearMenu — UI tokens, primitives, and components built on Radix UI and Tailwind CSS.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm i @bearmenu/ui
9
+ ```
10
+
11
+ ## Setup
12
+
13
+ Import the global styles in your root layout:
14
+
15
+ ```tsx
16
+ import "@bearmenu/ui/globals.css";
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```tsx
22
+ import { Button } from "@bearmenu/ui/components/button";
23
+ import { Card, CardHeader, CardTitle, CardContent } from "@bearmenu/ui/components/card";
24
+ import { Input } from "@bearmenu/ui/components/input";
25
+ ```
26
+
27
+ ## Components
28
+
29
+ | Component | Import |
30
+ | --- | --- |
31
+ | Accordion | `@bearmenu/ui/components/accordion` |
32
+ | Alert | `@bearmenu/ui/components/alert` |
33
+ | Alert Dialog | `@bearmenu/ui/components/alert-dialog` |
34
+ | Aspect Ratio | `@bearmenu/ui/components/aspect-ratio` |
35
+ | Avatar | `@bearmenu/ui/components/avatar` |
36
+ | Badge | `@bearmenu/ui/components/badge` |
37
+ | Breadcrumb | `@bearmenu/ui/components/breadcrumb` |
38
+ | Button | `@bearmenu/ui/components/button` |
39
+ | Calendar | `@bearmenu/ui/components/calendar` |
40
+ | Card | `@bearmenu/ui/components/card` |
41
+ | Carousel | `@bearmenu/ui/components/carousel` |
42
+ | Checkbox | `@bearmenu/ui/components/checkbox` |
43
+ | Collapsible | `@bearmenu/ui/components/collapsible` |
44
+ | Command | `@bearmenu/ui/components/command` |
45
+ | Currency Input | `@bearmenu/ui/components/currency-input` |
46
+ | Dialog | `@bearmenu/ui/components/dialog` |
47
+ | Drawer | `@bearmenu/ui/components/drawer` |
48
+ | Dropdown Menu | `@bearmenu/ui/components/dropdown-menu` |
49
+ | Empty State | `@bearmenu/ui/components/empty-state` |
50
+ | Form | `@bearmenu/ui/components/form` |
51
+ | Haptic Button | `@bearmenu/ui/components/haptic-button` |
52
+ | Input | `@bearmenu/ui/components/input` |
53
+ | Input OTP | `@bearmenu/ui/components/input-otp` |
54
+ | Label | `@bearmenu/ui/components/label` |
55
+ | Lazy Markdown | `@bearmenu/ui/components/lazy-markdown` |
56
+ | Link Button | `@bearmenu/ui/components/link-button` |
57
+ | Markdown Renderer | `@bearmenu/ui/components/markdown-renderer` |
58
+ | Multi-Select Combobox | `@bearmenu/ui/components/multi-select-combobox` |
59
+ | Pagination | `@bearmenu/ui/components/pagination` |
60
+ | Popover | `@bearmenu/ui/components/popover` |
61
+ | Progress | `@bearmenu/ui/components/progress` |
62
+ | Radio Group | `@bearmenu/ui/components/radio-group` |
63
+ | Rating | `@bearmenu/ui/components/rating` |
64
+ | Scroll Area | `@bearmenu/ui/components/scroll-area` |
65
+ | Search Bar | `@bearmenu/ui/components/search-bar` |
66
+ | Searchable Select | `@bearmenu/ui/components/searchable-select` |
67
+ | Select | `@bearmenu/ui/components/select` |
68
+ | Separator | `@bearmenu/ui/components/separator` |
69
+ | Sheet | `@bearmenu/ui/components/sheet` |
70
+ | Skeleton | `@bearmenu/ui/components/skeleton` |
71
+ | Skeleton Card | `@bearmenu/ui/components/skeleton-card` |
72
+ | Slider | `@bearmenu/ui/components/slider` |
73
+ | Sliding Panels | `@bearmenu/ui/components/sliding-panels` |
74
+ | Sonner | `@bearmenu/ui/components/sonner` |
75
+ | Sticky Container | `@bearmenu/ui/components/sticky-container` |
76
+ | Switch | `@bearmenu/ui/components/switch` |
77
+ | Table | `@bearmenu/ui/components/table` |
78
+ | Tabs | `@bearmenu/ui/components/tabs` |
79
+ | Text | `@bearmenu/ui/components/text` |
80
+ | Textarea | `@bearmenu/ui/components/textarea` |
81
+ | Toast | `@bearmenu/ui/components/toast` |
82
+ | Toaster | `@bearmenu/ui/components/toaster` |
83
+ | Toggle | `@bearmenu/ui/components/toggle` |
84
+ | Toggle Group | `@bearmenu/ui/components/toggle-group` |
85
+ | Tooltip | `@bearmenu/ui/components/tooltip` |
86
+
87
+ ## Hooks
88
+
89
+ | Hook | Import |
90
+ | --- | --- |
91
+ | useHaptic | `@bearmenu/ui/hooks/use-haptic` |
92
+ | useMobile | `@bearmenu/ui/hooks/use-mobile` |
93
+ | useMountedTheme | `@bearmenu/ui/hooks/use-mounted-theme` |
94
+ | useSticky | `@bearmenu/ui/hooks/use-sticky` |
95
+
96
+ ## Utilities
97
+
98
+ ```tsx
99
+ import { cn } from "@bearmenu/ui/lib/utils";
100
+ ```
101
+
102
+ ## Peer Dependencies
103
+
104
+ This package expects the following in your project:
105
+
106
+ - React 18+ or 19+
107
+ - Next.js 14+
108
+ - Tailwind CSS 4+
109
+ - Radix UI primitives
110
+ - Framer Motion 12+
111
+
112
+ See `package.json` for the full list of peer dependencies.
113
+
114
+ ## License
115
+
116
+ UNLICENSED
@@ -13,7 +13,7 @@ var buttonVariants = cva(
13
13
  variant: {
14
14
  default: "bg-primary backdrop-blur-sm text-primary-foreground shadow-lg hover:bg-primary/85 border border-primary/20 transition-colors duration-200",
15
15
  destructive: "bg-destructive text-destructive-foreground shadow-lg hover:bg-destructive/90 hover:shadow-destructive/20 backdrop-blur-sm border border-destructive/20",
16
- outline: "border border-border bg-card/70 backdrop-blur-md hover:bg-accent hover:text-accent-foreground hover:border-accent-foreground/20 hover:shadow-lg glass-hover",
16
+ outline: "border border-border bg-sidebar backdrop-blur-md hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:border-sidebar-accent-foreground/20 hover:shadow-lg",
17
17
  secondary: "bg-secondary text-secondary-foreground shadow-lg hover:bg-secondary/90 hover:shadow-secondary/20 backdrop-blur-sm border border-secondary/20",
18
18
  ghost: "hover:bg-foreground/10 hover:text-foreground transition-colors duration-200",
19
19
  link: "text-primary underline-offset-4 hover:underline hover:text-primary/80",
@@ -0,0 +1,279 @@
1
+ import { Card, CardHeader, CardTitle, CardContent } from './chunk-QJ54Z7TC.js';
2
+ import { Text } from './chunk-4KOMHDZD.js';
3
+ import { Badge } from './chunk-NKHH23YK.js';
4
+ import { cn } from './chunk-FEK5XGZW.js';
5
+ import { __spreadProps, __spreadValues } from './chunk-3GWWZKX7.js';
6
+ import { Info, MapPin, Phone, Globe, Clock, UtensilsCrossed, CreditCard, Shield, Car, Building2 } from 'lucide-react';
7
+ import { jsxs, jsx } from 'react/jsx-runtime';
8
+
9
+ function Instagram(props) {
10
+ return /* @__PURE__ */ jsxs(
11
+ "svg",
12
+ __spreadProps(__spreadValues({
13
+ viewBox: "0 0 24 24",
14
+ fill: "none",
15
+ stroke: "currentColor",
16
+ strokeWidth: "2",
17
+ strokeLinecap: "round",
18
+ strokeLinejoin: "round"
19
+ }, props), {
20
+ children: [
21
+ /* @__PURE__ */ jsx("rect", { width: "20", height: "20", x: "2", y: "2", rx: "5", ry: "5" }),
22
+ /* @__PURE__ */ jsx("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
23
+ /* @__PURE__ */ jsx("line", { x1: "17.5", x2: "17.51", y1: "6.5", y2: "6.5" })
24
+ ]
25
+ })
26
+ );
27
+ }
28
+ function Facebook(props) {
29
+ return /* @__PURE__ */ jsx(
30
+ "svg",
31
+ __spreadProps(__spreadValues({
32
+ viewBox: "0 0 24 24",
33
+ fill: "none",
34
+ stroke: "currentColor",
35
+ strokeWidth: "2",
36
+ strokeLinecap: "round",
37
+ strokeLinejoin: "round"
38
+ }, props), {
39
+ children: /* @__PURE__ */ jsx("path", { d: "M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" })
40
+ })
41
+ );
42
+ }
43
+ function formatHour(h) {
44
+ return `${h.toString().padStart(2, "0")}:00`;
45
+ }
46
+ function humanizeEnum(value) {
47
+ return value.replace(/_/g, " ");
48
+ }
49
+ function PlaceAboutTab({
50
+ place,
51
+ labels,
52
+ mapSlot,
53
+ busynessSlot,
54
+ onLinkClick,
55
+ className
56
+ }) {
57
+ var _a, _b, _c;
58
+ const todayHours = place.hours && place.hours.length > 0 ? place.hours.map((slot) => `${formatHour(slot.opens_at)} - ${formatHour(slot.closes_at)}`) : null;
59
+ const formattedAddress = (_a = place.location) == null ? void 0 : _a.address;
60
+ const handleLinkClick = (kind, url) => {
61
+ if (onLinkClick && url) onLinkClick(kind, url);
62
+ };
63
+ const getAmenityLabel = (key) => labels.amenityLabels[key] || humanizeEnum(key);
64
+ const getPaymentLabel = (key) => labels.paymentLabels[key] || humanizeEnum(key);
65
+ const getAccessibilityLabel = (key) => labels.accessibilityLabels[key] || humanizeEnum(key);
66
+ const getParkingLabel = (key) => labels.parkingLabels[key] || humanizeEnum(key);
67
+ const getTypeLabel = (key) => labels.typeLabels[key] || humanizeEnum(key);
68
+ const getStatusLabel = (key) => labels.statusLabels[key] || humanizeEnum(key);
69
+ return /* @__PURE__ */ jsxs("div", { className: cn("space-y-4 pt-4 px-4", className), children: [
70
+ mapSlot,
71
+ (place.description || place.generative_summary || place.review_summary) && /* @__PURE__ */ jsxs(Card, { children: [
72
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
73
+ /* @__PURE__ */ jsx(Info, { className: "w-5 h-5", "aria-hidden": "true" }),
74
+ labels.description
75
+ ] }) }),
76
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
77
+ place.generative_summary && /* @__PURE__ */ jsxs("div", { children: [
78
+ /* @__PURE__ */ jsx(Text, { as: "p", variant: "body-sm", color: "muted", className: "mb-2", children: labels.overview }),
79
+ /* @__PURE__ */ jsx(Text, { as: "p", color: "default", children: place.generative_summary })
80
+ ] }),
81
+ place.description && /* @__PURE__ */ jsxs("div", { children: [
82
+ /* @__PURE__ */ jsx(Text, { as: "p", variant: "body-sm", color: "muted", className: "mb-2", children: labels.description }),
83
+ /* @__PURE__ */ jsx(Text, { as: "p", color: "default", children: place.description })
84
+ ] }),
85
+ place.review_summary && /* @__PURE__ */ jsxs("div", { children: [
86
+ /* @__PURE__ */ jsx(Text, { as: "p", variant: "body-sm", color: "muted", className: "mb-2", children: labels.whatPeopleSay }),
87
+ /* @__PURE__ */ jsx(Text, { as: "p", color: "default", children: place.review_summary })
88
+ ] })
89
+ ] })
90
+ ] }),
91
+ /* @__PURE__ */ jsxs(Card, { children: [
92
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
93
+ /* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5", "aria-hidden": "true" }),
94
+ labels.contactAndLocation
95
+ ] }) }),
96
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
97
+ formattedAddress && /* @__PURE__ */ jsxs("div", { children: [
98
+ /* @__PURE__ */ jsx(Text, { as: "p", variant: "body-sm", color: "muted", className: "mb-1", children: labels.address }),
99
+ /* @__PURE__ */ jsx(Text, { as: "p", color: "default", children: formattedAddress })
100
+ ] }),
101
+ place.phone && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
102
+ /* @__PURE__ */ jsx(Phone, { className: "w-4 h-4 text-muted-foreground", "aria-hidden": "true" }),
103
+ /* @__PURE__ */ jsx(
104
+ "a",
105
+ {
106
+ href: `tel:${place.phone}`,
107
+ onClick: () => handleLinkClick("phone", place.phone),
108
+ className: "text-foreground hover:text-primary transition-colors",
109
+ children: place.phone
110
+ }
111
+ )
112
+ ] }),
113
+ place.website_url && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
114
+ /* @__PURE__ */ jsx(Globe, { className: "w-4 h-4 text-muted-foreground", "aria-hidden": "true" }),
115
+ /* @__PURE__ */ jsx(
116
+ "a",
117
+ {
118
+ href: place.website_url,
119
+ target: "_blank",
120
+ rel: "noopener noreferrer",
121
+ onClick: () => handleLinkClick("website", place.website_url),
122
+ className: "text-foreground hover:text-primary transition-colors break-all",
123
+ children: place.website_url
124
+ }
125
+ )
126
+ ] }),
127
+ ((_b = place.socials) == null ? void 0 : _b.instagram_url) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
128
+ /* @__PURE__ */ jsx(Instagram, { className: "w-4 h-4 text-muted-foreground", "aria-hidden": "true" }),
129
+ /* @__PURE__ */ jsx(
130
+ "a",
131
+ {
132
+ href: place.socials.instagram_url,
133
+ target: "_blank",
134
+ rel: "noopener noreferrer",
135
+ onClick: () => {
136
+ var _a2;
137
+ return handleLinkClick("instagram", (_a2 = place.socials) == null ? void 0 : _a2.instagram_url);
138
+ },
139
+ className: "text-foreground hover:text-primary transition-colors",
140
+ children: labels.instagram
141
+ }
142
+ )
143
+ ] }),
144
+ ((_c = place.socials) == null ? void 0 : _c.facebook_url) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
145
+ /* @__PURE__ */ jsx(Facebook, { className: "w-4 h-4 text-muted-foreground", "aria-hidden": "true" }),
146
+ /* @__PURE__ */ jsx(
147
+ "a",
148
+ {
149
+ href: place.socials.facebook_url,
150
+ target: "_blank",
151
+ rel: "noopener noreferrer",
152
+ onClick: () => {
153
+ var _a2;
154
+ return handleLinkClick("facebook", (_a2 = place.socials) == null ? void 0 : _a2.facebook_url);
155
+ },
156
+ className: "text-foreground hover:text-primary transition-colors",
157
+ children: labels.facebook
158
+ }
159
+ )
160
+ ] })
161
+ ] })
162
+ ] }),
163
+ todayHours && todayHours.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
164
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
165
+ /* @__PURE__ */ jsx(Clock, { className: "w-5 h-5", "aria-hidden": "true" }),
166
+ labels.todayHours
167
+ ] }) }),
168
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
169
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
170
+ /* @__PURE__ */ jsx(
171
+ "span",
172
+ {
173
+ className: cn(
174
+ "w-2 h-2 rounded-full",
175
+ place.open_now ? "bg-green-500" : "bg-muted-foreground"
176
+ )
177
+ }
178
+ ),
179
+ /* @__PURE__ */ jsx(
180
+ Text,
181
+ {
182
+ as: "span",
183
+ weight: "medium",
184
+ className: place.open_now ? "text-green-600 dark:text-green-400" : "",
185
+ children: place.open_now ? labels.statusOpen : labels.statusClosed
186
+ }
187
+ )
188
+ ] }),
189
+ todayHours.map((range, index) => /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx(Text, { as: "span", color: "muted", children: range }) }, index))
190
+ ] }) })
191
+ ] }),
192
+ busynessSlot && place.busyness && place.busyness.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
193
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
194
+ /* @__PURE__ */ jsx(Clock, { className: "w-5 h-5", "aria-hidden": "true" }),
195
+ labels.typicalBusyness
196
+ ] }) }),
197
+ /* @__PURE__ */ jsx(CardContent, { children: busynessSlot })
198
+ ] }),
199
+ place.cuisines && place.cuisines.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
200
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
201
+ /* @__PURE__ */ jsx(UtensilsCrossed, { className: "w-5 h-5", "aria-hidden": "true" }),
202
+ labels.cuisines
203
+ ] }) }),
204
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: place.cuisines.map((cuisine, index) => /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: cuisine.charAt(0).toUpperCase() + cuisine.slice(1) }, index)) }) })
205
+ ] }),
206
+ place.amenities && place.amenities.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
207
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: labels.amenities }) }),
208
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 md:grid-cols-3 gap-2", children: place.amenities.map((amenity, index) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm", children: [
209
+ /* @__PURE__ */ jsx(Text, { as: "span", color: "muted", children: "\u2022" }),
210
+ /* @__PURE__ */ jsx(Text, { as: "span", color: "default", children: getAmenityLabel(amenity) })
211
+ ] }, index)) }) })
212
+ ] }),
213
+ place.payment_options && place.payment_options.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
214
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
215
+ /* @__PURE__ */ jsx(CreditCard, { className: "w-5 h-5", "aria-hidden": "true" }),
216
+ labels.paymentOptions
217
+ ] }) }),
218
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: place.payment_options.map((payment, index) => /* @__PURE__ */ jsx(Badge, { variant: "outline", children: getPaymentLabel(payment) }, index)) }) })
219
+ ] }),
220
+ place.accessibility_features && place.accessibility_features.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
221
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
222
+ /* @__PURE__ */ jsx(Shield, { className: "w-5 h-5", "aria-hidden": "true" }),
223
+ labels.accessibility
224
+ ] }) }),
225
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: place.accessibility_features.map((feature, index) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm", children: [
226
+ /* @__PURE__ */ jsx(Text, { as: "span", color: "muted", children: "\u2022" }),
227
+ /* @__PURE__ */ jsx(Text, { as: "span", color: "default", children: getAccessibilityLabel(feature) })
228
+ ] }, index)) }) })
229
+ ] }),
230
+ place.parking_options && place.parking_options.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
231
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
232
+ /* @__PURE__ */ jsx(Car, { className: "w-5 h-5", "aria-hidden": "true" }),
233
+ labels.parking
234
+ ] }) }),
235
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: place.parking_options.map((parking, index) => /* @__PURE__ */ jsx(Badge, { variant: "outline", children: getParkingLabel(parking) }, index)) }) })
236
+ ] }),
237
+ place.landmarks && place.landmarks.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
238
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
239
+ /* @__PURE__ */ jsx(MapPin, { className: "w-5 h-5", "aria-hidden": "true" }),
240
+ labels.nearbyLandmarks
241
+ ] }) }),
242
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "space-y-2", children: place.landmarks.map((landmark, index) => /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
243
+ /* @__PURE__ */ jsx(Text, { as: "span", color: "default", children: landmark.name }),
244
+ landmark.distance_meters !== void 0 && landmark.distance_meters !== null && /* @__PURE__ */ jsxs(Text, { as: "span", variant: "body-sm", color: "muted", children: [
245
+ (landmark.distance_meters / 1e3).toFixed(1),
246
+ " km"
247
+ ] })
248
+ ] }, index)) }) })
249
+ ] }),
250
+ place.areas && place.areas.length > 0 && /* @__PURE__ */ jsxs(Card, { children: [
251
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs(CardTitle, { className: "flex items-center gap-2", children: [
252
+ /* @__PURE__ */ jsx(Building2, { className: "w-5 h-5", "aria-hidden": "true" }),
253
+ labels.neighborhood
254
+ ] }) }),
255
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: place.areas.map((area, index) => /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: area.name }, index)) }) })
256
+ ] }),
257
+ (place.type || place.business_status) && /* @__PURE__ */ jsxs(Card, { children: [
258
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: labels.businessInformation }) }),
259
+ /* @__PURE__ */ jsxs(CardContent, { className: "space-y-2", children: [
260
+ place.type && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
261
+ /* @__PURE__ */ jsx(Text, { as: "span", variant: "body-sm", color: "muted", children: labels.type }),
262
+ /* @__PURE__ */ jsx(Text, { as: "span", color: "default", children: getTypeLabel(place.type) })
263
+ ] }),
264
+ place.business_status && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
265
+ /* @__PURE__ */ jsx(Text, { as: "span", variant: "body-sm", color: "muted", children: labels.status }),
266
+ /* @__PURE__ */ jsx(
267
+ Badge,
268
+ {
269
+ variant: place.business_status === "operational" ? "default" : place.business_status === "closed_temporarily" ? "secondary" : "destructive",
270
+ children: getStatusLabel(place.business_status)
271
+ }
272
+ )
273
+ ] })
274
+ ] })
275
+ ] })
276
+ ] });
277
+ }
278
+
279
+ export { PlaceAboutTab };
@@ -0,0 +1,25 @@
1
+ import { cn } from './chunk-FEK5XGZW.js';
2
+ import { __objRest, __spreadProps, __spreadValues } from './chunk-3GWWZKX7.js';
3
+ import * as React from 'react';
4
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
5
+ import { Check } from 'lucide-react';
6
+ import { jsx } from 'react/jsx-runtime';
7
+
8
+ var Checkbox = React.forwardRef((_a, ref) => {
9
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10
+ return /* @__PURE__ */ jsx(
11
+ CheckboxPrimitive.Root,
12
+ __spreadProps(__spreadValues({
13
+ ref,
14
+ className: cn(
15
+ "peer h-5 w-5 shrink-0 rounded-md border border-border bg-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary data-[state=checked]:shadow-lg data-[state=checked]:shadow-primary/20 data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:shadow-lg data-[state=indeterminate]:shadow-primary/20 hover:border-primary/40 hover:shadow-md",
16
+ className
17
+ )
18
+ }, props), {
19
+ children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ jsx(Check, { className: "h-3.5 w-3.5 animate-in zoom-in-50 duration-200" }) })
20
+ })
21
+ );
22
+ });
23
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
24
+
25
+ export { Checkbox };
@@ -58,6 +58,20 @@ var CardContent = React.forwardRef(
58
58
  }
59
59
  );
60
60
  CardContent.displayName = "CardContent";
61
+ var CardAction = React.forwardRef(
62
+ (_a, ref) => {
63
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
64
+ return /* @__PURE__ */ jsx(
65
+ "div",
66
+ __spreadValues({
67
+ ref,
68
+ "data-slot": "card-action",
69
+ className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className)
70
+ }, props)
71
+ );
72
+ }
73
+ );
74
+ CardAction.displayName = "CardAction";
61
75
  var CardFooter = React.forwardRef(
62
76
  (_a, ref) => {
63
77
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
@@ -66,4 +80,4 @@ var CardFooter = React.forwardRef(
66
80
  );
67
81
  CardFooter.displayName = "CardFooter";
68
82
 
69
- export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
83
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -7,6 +7,7 @@ function Skeleton(_a) {
7
7
  return /* @__PURE__ */ jsx(
8
8
  "div",
9
9
  __spreadValues({
10
+ "data-slot": "skeleton",
10
11
  className: cn(
11
12
  "animate-pulse rounded-xl glass border border-border/30 relative overflow-hidden",
12
13
  "before:absolute before:inset-0 before:-translate-x-full before:animate-[shimmer_2s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent",
@@ -1,4 +1,4 @@
1
- import { buttonVariants } from '../chunk-2CUFS5LF.js';
1
+ import { buttonVariants } from '../chunk-2BMJRXQX.js';
2
2
  import '../chunk-R47NEOSI.js';
3
3
  import { cn } from '../chunk-FEK5XGZW.js';
4
4
  import { __objRest, __spreadProps, __spreadValues } from '../chunk-3GWWZKX7.js';
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
6
- variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
6
+ variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
8
8
  declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
9
9
  declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "default" | "destructive" | "outline" | "secondary" | "glass" | "success" | "warning" | "overlay" | null | undefined;
7
+ variant?: "default" | "destructive" | "warning" | "success" | "outline" | "secondary" | "glass" | "overlay" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  }
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "glass" | "brown" | "antagonist" | null | undefined;
6
+ variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | "glass" | "brown" | "antagonist" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,4 +1,4 @@
1
- export { Button, buttonVariants } from '../chunk-2CUFS5LF.js';
1
+ export { Button, buttonVariants } from '../chunk-2BMJRXQX.js';
2
2
  import '../chunk-R47NEOSI.js';
3
3
  import '../chunk-FEK5XGZW.js';
4
4
  import '../chunk-3GWWZKX7.js';
@@ -1,11 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { DayPicker } from 'react-day-picker';
3
+ import { DayPicker, DayButton } from 'react-day-picker';
4
+ import { Button } from './button.js';
5
+ import 'class-variance-authority/types';
6
+ import 'class-variance-authority';
4
7
 
5
- type CalendarProps = React.ComponentProps<typeof DayPicker>;
6
- declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
7
- declare namespace Calendar {
8
- var displayName: string;
9
- }
8
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
9
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
10
+ }): react_jsx_runtime.JSX.Element;
11
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): react_jsx_runtime.JSX.Element;
10
12
 
11
- export { Calendar, type CalendarProps };
13
+ export { Calendar, CalendarDayButton };