@bearmenu/ui 0.7.0 → 0.8.1
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-4JOV7FXW.js → chunk-2DEIXTBN.js} +1 -1
- package/dist/{chunk-UUJVXN2O.js → chunk-66MAPLXS.js} +3 -1
- package/dist/{chunk-Y5D5LP4A.js → chunk-7BWTYWM3.js} +14 -3
- package/dist/{chunk-ZFNOCP6W.js → chunk-H3BV4VAG.js} +15 -1
- package/dist/chunk-LEAYBICI.js +84 -0
- package/dist/{chunk-TL4YU2O5.js → chunk-UKBNQO6Q.js} +2 -2
- package/dist/{chunk-UX6SWAKH.js → chunk-UZ3PCIE5.js} +119 -28
- package/dist/{chunk-YLNYXPIH.js → chunk-VBA45GLP.js} +1 -1
- package/dist/{chunk-A5ONAJCE.js → chunk-VG3PND3D.js} +1 -1
- package/dist/{chunk-ZBBUKXM5.js → chunk-X3WMRKOW.js} +1 -1
- package/dist/{chunk-HCM6LKM5.js → chunk-XNA2INVQ.js} +2 -2
- package/dist/{chunk-AV777R4G.js → chunk-YYGB4G4Q.js} +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.d.ts +2 -2
- package/dist/components/alert.js +1 -1
- package/dist/components/avatar.d.ts +10 -1
- package/dist/components/avatar.js +41 -14
- package/dist/components/badge.d.ts +11 -2
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.js +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +3 -3
- package/dist/components/card.d.ts +2 -2
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/circular-progress.js +1 -1
- package/dist/components/combobox.js +3 -3
- package/dist/components/command.d.ts +15 -15
- package/dist/components/command.js +1 -1
- package/dist/components/currency-input.js +2 -2
- package/dist/components/date-input.d.ts +1 -1
- package/dist/components/date-input.js +1 -1
- package/dist/components/description-list.js +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/empty-state.js +2 -2
- package/dist/components/field.js +2 -2
- package/dist/components/filter-category-row.js +2 -2
- package/dist/components/form.js +1 -1
- package/dist/components/haptic-button.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/item.d.ts +2 -2
- package/dist/components/item.js +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/link-button.js +1 -1
- package/dist/components/multi-select-combobox.js +4 -4
- package/dist/components/pagination.js +1 -1
- package/dist/components/place-about-tab.d.ts +17 -1
- package/dist/components/place-about-tab.js +4 -4
- package/dist/components/place-card.js +2 -2
- package/dist/components/place-details-mobile.js +7 -7
- package/dist/components/place-schedule-week.js +2 -2
- package/dist/components/popover.js +1 -1
- package/dist/components/searchable-select.js +3 -3
- package/dist/components/select.js +2 -2
- package/dist/components/selection-bar.js +1 -1
- package/dist/components/sheet.d.ts +23 -0
- package/dist/components/sheet.js +51 -14
- package/dist/components/sliding-panels.js +5 -1
- package/dist/components/sonner.js +2 -2
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/stepper.js +4 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +3 -26
- package/dist/components/tag-group.js +1 -1
- package/dist/components/tag.d.ts +2 -2
- package/dist/components/tag.js +1 -1
- package/dist/components/text.d.ts +21 -3
- package/dist/components/text.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/toggle.js +1 -1
- package/dist/lib/card-hover.d.ts +75 -0
- package/dist/lib/card-hover.js +18 -0
- package/dist/lib/motion.d.ts +83 -0
- package/dist/lib/motion.js +2 -0
- package/package.json +1 -1
- package/src/components/accordion.tsx +1 -1
- package/src/components/avatar.stories.tsx +59 -26
- package/src/components/avatar.test.tsx +129 -0
- package/src/components/avatar.tsx +93 -37
- package/src/components/badge.tsx +15 -3
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button.tsx +16 -1
- package/src/components/calendar.tsx +2 -2
- package/src/components/circular-progress.tsx +1 -1
- package/src/components/command.tsx +2 -2
- package/src/components/currency-input.tsx +1 -1
- package/src/components/description-list.tsx +1 -1
- package/src/components/dropdown-menu.tsx +1 -1
- package/src/components/field.tsx +1 -1
- package/src/components/input-group.tsx +1 -1
- package/src/components/input.tsx +1 -1
- package/src/components/item.tsx +1 -1
- package/src/components/kbd.tsx +1 -1
- package/src/components/label.tsx +1 -1
- package/src/components/place-about-tab.tsx +131 -18
- package/src/components/place-card.tsx +1 -1
- package/src/components/place-details-mobile.tsx +2 -2
- package/src/components/popover.tsx +9 -1
- package/src/components/select.tsx +2 -2
- package/src/components/selection-bar.tsx +1 -1
- package/src/components/sheet.tsx +72 -12
- package/src/components/sliding-panels.stories.tsx +70 -0
- package/src/components/sliding-panels.test.tsx +116 -0
- package/src/components/sliding-panels.tsx +14 -0
- package/src/components/sonner.tsx +2 -2
- package/src/components/stepper.tsx +4 -1
- package/src/components/table.tsx +1 -1
- package/src/components/tabs.tsx +1 -1
- package/src/components/tag-group.tsx +1 -1
- package/src/components/tag.tsx +1 -1
- package/src/components/text.test.tsx +37 -3
- package/src/components/text.tsx +32 -3
- package/src/components/toggle.tsx +1 -1
- package/src/globals.css +53 -11
- package/src/lib/card-hover.ts +87 -0
- package/dist/chunk-EBAMCZDW.js +0 -112
- package/dist/chunk-VQNDZVI7.js +0 -106
- package/dist/components/toast.d.ts +0 -18
- package/dist/components/toast.js +0 -3
- package/dist/components/toaster.d.ts +0 -5
- package/dist/components/toaster.js +0 -25
- package/dist/components/use-toast.d.ts +0 -42
- package/dist/components/use-toast.js +0 -2
- package/src/components/toast.stories.tsx +0 -63
- package/src/components/toast.tsx +0 -130
- package/src/components/toaster.tsx +0 -31
- package/src/components/use-toast.ts +0 -180
|
@@ -24,13 +24,15 @@ var avatarVariants = cva(
|
|
|
24
24
|
);
|
|
25
25
|
var AvatarContext = React.createContext("default");
|
|
26
26
|
var Avatar = React.forwardRef((_a, ref) => {
|
|
27
|
-
var _b = _a, { className, size
|
|
28
|
-
|
|
27
|
+
var _b = _a, { className, size } = _b, props = __objRest(_b, ["className", "size"]);
|
|
28
|
+
const inheritedSize = React.useContext(AvatarContext);
|
|
29
|
+
const resolvedSize = size != null ? size : inheritedSize;
|
|
30
|
+
return /* @__PURE__ */ jsx(AvatarContext.Provider, { value: resolvedSize, children: /* @__PURE__ */ jsx(
|
|
29
31
|
AvatarPrimitive.Root,
|
|
30
32
|
__spreadValues({
|
|
31
33
|
ref,
|
|
32
34
|
"data-slot": "avatar",
|
|
33
|
-
className: cn(avatarVariants({ size }), className)
|
|
35
|
+
className: cn(avatarVariants({ size: resolvedSize }), className)
|
|
34
36
|
}, props)
|
|
35
37
|
) });
|
|
36
38
|
});
|
|
@@ -55,7 +57,7 @@ var AvatarFallback = React.forwardRef((_a, ref) => {
|
|
|
55
57
|
ref,
|
|
56
58
|
"data-slot": "avatar-fallback",
|
|
57
59
|
className: cn(
|
|
58
|
-
"flex size-full items-center justify-center rounded-full bg-muted font-
|
|
60
|
+
"flex size-full items-center justify-center rounded-full bg-muted font-semibold text-muted-foreground",
|
|
59
61
|
className
|
|
60
62
|
)
|
|
61
63
|
}, props)
|
|
@@ -71,8 +73,7 @@ var badgeOffset = {
|
|
|
71
73
|
};
|
|
72
74
|
var AvatarBadge = React.forwardRef((_a, ref) => {
|
|
73
75
|
var _b = _a, { className, placement = "bottom-right", tone = "success" } = _b, props = __objRest(_b, ["className", "placement", "tone"]);
|
|
74
|
-
|
|
75
|
-
const size = (_a2 = React.useContext(AvatarContext)) != null ? _a2 : "default";
|
|
76
|
+
const size = React.useContext(AvatarContext);
|
|
76
77
|
return /* @__PURE__ */ jsx(
|
|
77
78
|
"span",
|
|
78
79
|
__spreadValues({
|
|
@@ -92,12 +93,31 @@ var AvatarBadge = React.forwardRef((_a, ref) => {
|
|
|
92
93
|
);
|
|
93
94
|
});
|
|
94
95
|
AvatarBadge.displayName = "AvatarBadge";
|
|
96
|
+
var avatarGroupOverflowVariants = cva(
|
|
97
|
+
"relative inline-flex shrink-0 items-center justify-center rounded-full bg-muted font-semibold text-muted-foreground ring-2 ring-background",
|
|
98
|
+
{
|
|
99
|
+
variants: {
|
|
100
|
+
size: {
|
|
101
|
+
xs: "size-6 text-[9px]",
|
|
102
|
+
sm: "size-8 text-[10px]",
|
|
103
|
+
default: "size-10 text-xs",
|
|
104
|
+
lg: "size-12 text-sm",
|
|
105
|
+
xl: "size-16 text-base"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
defaultVariants: {
|
|
109
|
+
size: "default"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
);
|
|
95
113
|
var AvatarGroup = React.forwardRef((_a, ref) => {
|
|
96
|
-
var _b = _a, { className, children, max, spacing = "default" } = _b, props = __objRest(_b, ["className", "children", "max", "spacing"]);
|
|
114
|
+
var _b = _a, { className, children, max, spacing = "default", size } = _b, props = __objRest(_b, ["className", "children", "max", "spacing", "size"]);
|
|
115
|
+
const inheritedSize = React.useContext(AvatarContext);
|
|
116
|
+
const resolvedSize = size != null ? size : inheritedSize;
|
|
97
117
|
const items = React.Children.toArray(children);
|
|
98
118
|
const visible = max ? items.slice(0, max) : items;
|
|
99
119
|
const overflow = max ? items.length - max : 0;
|
|
100
|
-
return /* @__PURE__ */ jsxs(
|
|
120
|
+
return /* @__PURE__ */ jsx(AvatarContext.Provider, { value: resolvedSize, children: /* @__PURE__ */ jsxs(
|
|
101
121
|
"div",
|
|
102
122
|
__spreadProps(__spreadValues({
|
|
103
123
|
ref,
|
|
@@ -113,14 +133,21 @@ var AvatarGroup = React.forwardRef((_a, ref) => {
|
|
|
113
133
|
}, props), {
|
|
114
134
|
children: [
|
|
115
135
|
visible,
|
|
116
|
-
overflow > 0 && /* @__PURE__ */ jsxs(
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
136
|
+
overflow > 0 && /* @__PURE__ */ jsxs(
|
|
137
|
+
"span",
|
|
138
|
+
{
|
|
139
|
+
"data-slot": "avatar-group-overflow",
|
|
140
|
+
className: avatarGroupOverflowVariants({ size: resolvedSize }),
|
|
141
|
+
children: [
|
|
142
|
+
"+",
|
|
143
|
+
overflow
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
)
|
|
120
147
|
]
|
|
121
148
|
})
|
|
122
|
-
);
|
|
149
|
+
) });
|
|
123
150
|
});
|
|
124
151
|
AvatarGroup.displayName = "AvatarGroup";
|
|
125
152
|
|
|
126
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarImage, avatarVariants };
|
|
153
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarImage, avatarGroupOverflowVariants, avatarVariants };
|
|
@@ -4,11 +4,20 @@ 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" | "
|
|
7
|
+
variant?: "default" | "destructive" | "warning" | "success" | "outline" | "secondary" | "glass" | "overlay" | "brown" | null | undefined;
|
|
8
8
|
live?: boolean | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
11
|
+
/**
|
|
12
|
+
* Element to render. Defaults to `div`.
|
|
13
|
+
*
|
|
14
|
+
* Use `"span"` when the badge sits inside a `<button>` or a `<p>` — their
|
|
15
|
+
* content model is phrasing content, so a `div` in there is invalid HTML.
|
|
16
|
+
* That is the common case for a badge sitting inline with a title on a
|
|
17
|
+
* clickable row.
|
|
18
|
+
*/
|
|
19
|
+
as?: "div" | "span";
|
|
11
20
|
}
|
|
12
|
-
declare function Badge({ className, variant, live, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function Badge({ className, variant, live, as: Tag, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
13
22
|
|
|
14
23
|
export { Badge, type BadgeProps, badgeVariants };
|
package/dist/components/badge.js
CHANGED
|
@@ -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?: "
|
|
6
|
+
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | "glass" | "overlay" | "brown" | "antagonist" | null | undefined;
|
|
7
7
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
8
8
|
fullWidth?: boolean | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buttonVariants, Button } from '../chunk-
|
|
1
|
+
import { buttonVariants, Button } from '../chunk-H3BV4VAG.js';
|
|
2
2
|
import '../chunk-R47NEOSI.js';
|
|
3
3
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
4
4
|
import { __objRest, __spreadValues, __spreadProps } from '../chunk-3GWWZKX7.js';
|
|
@@ -63,7 +63,7 @@ function Calendar(_a) {
|
|
|
63
63
|
defaultClassNames.month_caption
|
|
64
64
|
),
|
|
65
65
|
dropdowns: cn(
|
|
66
|
-
"flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-
|
|
66
|
+
"flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-semibold",
|
|
67
67
|
defaultClassNames.dropdowns
|
|
68
68
|
),
|
|
69
69
|
dropdown_root: cn(
|
|
@@ -72,7 +72,7 @@ function Calendar(_a) {
|
|
|
72
72
|
),
|
|
73
73
|
dropdown: cn("absolute inset-0 bg-popover opacity-0", defaultClassNames.dropdown),
|
|
74
74
|
caption_label: cn(
|
|
75
|
-
"font-
|
|
75
|
+
"font-semibold select-none",
|
|
76
76
|
captionLayout === "label" ? "text-sm" : "flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",
|
|
77
77
|
defaultClassNames.caption_label
|
|
78
78
|
),
|
|
@@ -3,12 +3,12 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const cardVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "muted" | "outline" | "glass" | "surface" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
interactive?: boolean | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
11
|
-
variant?: "
|
|
11
|
+
variant?: "muted" | "outline" | "glass" | "surface" | null | undefined;
|
|
12
12
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
13
13
|
interactive?: boolean | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
package/dist/components/card.js
CHANGED
|
@@ -91,7 +91,7 @@ var CircularProgress = React.forwardRef(
|
|
|
91
91
|
]
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
showLabel && !indeterminate && /* @__PURE__ */ jsxs("span", { className: "absolute text-xs font-
|
|
94
|
+
showLabel && !indeterminate && /* @__PURE__ */ jsxs("span", { className: "absolute text-xs font-semibold tabular-nums text-foreground", children: [
|
|
95
95
|
Math.round(percent),
|
|
96
96
|
"%"
|
|
97
97
|
] })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-
|
|
2
|
-
import { Command, CommandInput, CommandList, CommandLoading, CommandEmpty, CommandGroup, CommandItem } from '../chunk-
|
|
1
|
+
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-66MAPLXS.js';
|
|
2
|
+
import { Command, CommandInput, CommandList, CommandLoading, CommandEmpty, CommandGroup, CommandItem } from '../chunk-XNA2INVQ.js';
|
|
3
3
|
import '../chunk-FRPPIXMY.js';
|
|
4
|
-
import { Button } from '../chunk-
|
|
4
|
+
import { Button } from '../chunk-H3BV4VAG.js';
|
|
5
5
|
import '../chunk-R47NEOSI.js';
|
|
6
6
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
7
7
|
import '../chunk-3GWWZKX7.js';
|
|
@@ -4,11 +4,11 @@ import { DialogProps } from '@radix-ui/react-dialog';
|
|
|
4
4
|
|
|
5
5
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
7
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
8
8
|
ref?: React.Ref<HTMLDivElement>;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean;
|
|
11
|
-
},
|
|
11
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
12
12
|
label?: string;
|
|
13
13
|
shouldFilter?: boolean;
|
|
14
14
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -28,61 +28,61 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
28
28
|
ref?: React.Ref<HTMLInputElement>;
|
|
29
29
|
} & {
|
|
30
30
|
asChild?: boolean;
|
|
31
|
-
}, "
|
|
31
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
32
32
|
value?: string;
|
|
33
33
|
onValueChange?: (search: string) => void;
|
|
34
34
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
35
35
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
36
36
|
children?: React.ReactNode;
|
|
37
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
37
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
38
38
|
ref?: React.Ref<HTMLDivElement>;
|
|
39
39
|
} & {
|
|
40
40
|
asChild?: boolean;
|
|
41
|
-
},
|
|
41
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
42
42
|
label?: string;
|
|
43
43
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
44
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
45
45
|
children?: React.ReactNode;
|
|
46
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
46
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
47
47
|
ref?: React.Ref<HTMLDivElement>;
|
|
48
48
|
} & {
|
|
49
49
|
asChild?: boolean;
|
|
50
|
-
},
|
|
50
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
51
|
declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
|
|
52
52
|
children?: React.ReactNode;
|
|
53
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
53
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
54
54
|
ref?: React.Ref<HTMLDivElement>;
|
|
55
55
|
} & {
|
|
56
56
|
asChild?: boolean;
|
|
57
|
-
},
|
|
57
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
58
58
|
progress?: number;
|
|
59
59
|
label?: string;
|
|
60
60
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
61
61
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
62
62
|
children?: React.ReactNode;
|
|
63
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
63
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
64
64
|
ref?: React.Ref<HTMLDivElement>;
|
|
65
65
|
} & {
|
|
66
66
|
asChild?: boolean;
|
|
67
|
-
},
|
|
67
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key">, "heading" | "value"> & {
|
|
68
68
|
heading?: React.ReactNode;
|
|
69
69
|
value?: string;
|
|
70
70
|
forceMount?: boolean;
|
|
71
71
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
72
|
-
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
72
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
73
73
|
ref?: React.Ref<HTMLDivElement>;
|
|
74
74
|
} & {
|
|
75
75
|
asChild?: boolean;
|
|
76
|
-
},
|
|
76
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
|
|
77
77
|
alwaysRender?: boolean;
|
|
78
78
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
79
79
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
80
80
|
children?: React.ReactNode;
|
|
81
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
81
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
82
82
|
ref?: React.Ref<HTMLDivElement>;
|
|
83
83
|
} & {
|
|
84
84
|
asChild?: boolean;
|
|
85
|
-
},
|
|
85
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "asChild" | "key">, "onSelect" | "disabled" | "value"> & {
|
|
86
86
|
disabled?: boolean;
|
|
87
87
|
onSelect?: (value: string) => void;
|
|
88
88
|
value?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut } from '../chunk-
|
|
1
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut } from '../chunk-XNA2INVQ.js';
|
|
2
2
|
import '../chunk-FRPPIXMY.js';
|
|
3
3
|
import '../chunk-FEK5XGZW.js';
|
|
4
4
|
import '../chunk-3GWWZKX7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Input } from '../chunk-
|
|
1
|
+
import { Input } from '../chunk-YYGB4G4Q.js';
|
|
2
2
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
3
3
|
import { __objRest, __spreadValues } from '../chunk-3GWWZKX7.js';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -109,7 +109,7 @@ var CurrencyInput = React.forwardRef(
|
|
|
109
109
|
"span",
|
|
110
110
|
{
|
|
111
111
|
"aria-hidden": true,
|
|
112
|
-
className: "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-sm font-
|
|
112
|
+
className: "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-sm font-semibold text-muted-foreground",
|
|
113
113
|
children: currency
|
|
114
114
|
}
|
|
115
115
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
declare const DateInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
3
|
+
declare const DateInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
|
|
4
4
|
/** Native input type. Defaults to "date". */
|
|
5
5
|
type?: "date" | "datetime-local" | "time" | "month" | "week";
|
|
6
6
|
size?: "sm" | "default" | "lg";
|
|
@@ -43,7 +43,7 @@ var DescriptionTerm = React.forwardRef(
|
|
|
43
43
|
__spreadValues({
|
|
44
44
|
ref,
|
|
45
45
|
"data-slot": "description-term",
|
|
46
|
-
className: cn("text-xs font-
|
|
46
|
+
className: cn("text-xs font-semibold uppercase tracking-wide text-muted-foreground", className)
|
|
47
47
|
}, props)
|
|
48
48
|
);
|
|
49
49
|
}
|
|
@@ -147,7 +147,7 @@ function DropdownMenuLabel(_a) {
|
|
|
147
147
|
__spreadValues({
|
|
148
148
|
"data-slot": "dropdown-menu-label",
|
|
149
149
|
"data-inset": inset,
|
|
150
|
-
className: cn("px-2 py-1.5 text-sm font-
|
|
150
|
+
className: cn("px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8", className)
|
|
151
151
|
}, props)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Button } from '../chunk-
|
|
1
|
+
import { Button } from '../chunk-H3BV4VAG.js';
|
|
2
2
|
import '../chunk-R47NEOSI.js';
|
|
3
|
-
import { Text } from '../chunk-
|
|
3
|
+
import { Text } from '../chunk-7BWTYWM3.js';
|
|
4
4
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
5
5
|
import { __objRest, __spreadProps, __spreadValues } from '../chunk-3GWWZKX7.js';
|
|
6
6
|
import * as React from 'react';
|
package/dist/components/field.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Label } from '../chunk-
|
|
1
|
+
import { Label } from '../chunk-2DEIXTBN.js';
|
|
2
2
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
3
3
|
import { __objRest, __spreadProps, __spreadValues } from '../chunk-3GWWZKX7.js';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -120,7 +120,7 @@ var FieldLegend = React.forwardRef(
|
|
|
120
120
|
__spreadValues({
|
|
121
121
|
ref,
|
|
122
122
|
"data-slot": "field-legend",
|
|
123
|
-
className: cn("px-1 text-sm font-
|
|
123
|
+
className: cn("px-1 text-sm font-semibold text-foreground", className)
|
|
124
124
|
}, props)
|
|
125
125
|
);
|
|
126
126
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Text } from '../chunk-
|
|
2
|
-
import { Badge } from '../chunk-
|
|
1
|
+
import { Text } from '../chunk-7BWTYWM3.js';
|
|
2
|
+
import { Badge } from '../chunk-UKBNQO6Q.js';
|
|
3
3
|
import '../chunk-FEK5XGZW.js';
|
|
4
4
|
import '../chunk-3GWWZKX7.js';
|
|
5
5
|
import { ChevronRight } from 'lucide-react';
|
package/dist/components/form.js
CHANGED
|
@@ -85,7 +85,7 @@ var InputGroupButton = React.forwardRef(
|
|
|
85
85
|
type,
|
|
86
86
|
"data-slot": "input-group-button",
|
|
87
87
|
className: cn(
|
|
88
|
-
"inline-flex h-7 min-w-7 cursor-pointer items-center justify-center gap-1 rounded-md px-2 text-xs font-
|
|
88
|
+
"inline-flex h-7 min-w-7 cursor-pointer items-center justify-center gap-1 rounded-md px-2 text-xs font-semibold text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&:has(svg:only-child)]:w-7 [&:has(svg:only-child)]:px-0 [&_svg]:size-4",
|
|
89
89
|
className
|
|
90
90
|
)
|
|
91
91
|
}, props)
|
package/dist/components/input.js
CHANGED
|
@@ -3,12 +3,12 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const itemVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
6
|
+
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
interactive?: boolean | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare const Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
11
|
-
variant?: "default" | "
|
|
11
|
+
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
12
12
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
13
13
|
interactive?: boolean | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
package/dist/components/item.js
CHANGED
|
@@ -82,7 +82,7 @@ var ItemTitle = React.forwardRef(
|
|
|
82
82
|
__spreadValues({
|
|
83
83
|
ref,
|
|
84
84
|
"data-slot": "item-title",
|
|
85
|
-
className: cn("truncate text-sm font-
|
|
85
|
+
className: cn("truncate text-sm font-semibold text-foreground", className)
|
|
86
86
|
}, props)
|
|
87
87
|
);
|
|
88
88
|
}
|
package/dist/components/kbd.js
CHANGED
|
@@ -5,7 +5,7 @@ import { cva } from 'class-variance-authority';
|
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var kbdVariants = cva(
|
|
8
|
-
"inline-flex select-none items-center justify-center gap-1 rounded-md border border-border bg-muted font-mono font-
|
|
8
|
+
"inline-flex select-none items-center justify-center gap-1 rounded-md border border-border bg-muted font-mono font-semibold text-muted-foreground shadow-[0_1px_0_0_var(--border)]",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
size: {
|
package/dist/components/label.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Checkbox } from '../chunk-D5QHEHXJ.js';
|
|
2
|
-
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-
|
|
3
|
-
import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '../chunk-
|
|
2
|
+
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-66MAPLXS.js';
|
|
3
|
+
import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '../chunk-XNA2INVQ.js';
|
|
4
4
|
import '../chunk-FRPPIXMY.js';
|
|
5
|
-
import { Button } from '../chunk-
|
|
5
|
+
import { Button } from '../chunk-H3BV4VAG.js';
|
|
6
6
|
import '../chunk-R47NEOSI.js';
|
|
7
|
-
import { Badge } from '../chunk-
|
|
7
|
+
import { Badge } from '../chunk-UKBNQO6Q.js';
|
|
8
8
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
9
9
|
import '../chunk-3GWWZKX7.js';
|
|
10
10
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buttonVariants } from '../chunk-
|
|
1
|
+
import { buttonVariants } from '../chunk-H3BV4VAG.js';
|
|
2
2
|
import '../chunk-R47NEOSI.js';
|
|
3
3
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
4
4
|
import { __objRest, __spreadValues, __spreadProps } from '../chunk-3GWWZKX7.js';
|
|
@@ -8,10 +8,26 @@ interface PlaceAboutTabProps {
|
|
|
8
8
|
mapSlot?: React.ReactNode;
|
|
9
9
|
/** Slot for an embedded busyness chart. Rendered only when both this prop and `place.busyness` are present. */
|
|
10
10
|
busynessSlot?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Slot for "how to order from here" — delivery platforms and the like.
|
|
13
|
+
* Sits directly after contact, because it answers the same question contact
|
|
14
|
+
* does (how do I transact with this venue) and is the most actionable thing
|
|
15
|
+
* the sheet carries.
|
|
16
|
+
*
|
|
17
|
+
* Named for its MEANING, not its position, so a later reordering doesn't turn
|
|
18
|
+
* the prop name into a lie.
|
|
19
|
+
*/
|
|
20
|
+
orderingSlot?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Slot for "what the rest of the web says / where else this venue lives" —
|
|
23
|
+
* third-party ratings and the venue's own profiles. Sits after the practical
|
|
24
|
+
* block: it is corroboration, wanted after the facts, not before them.
|
|
25
|
+
*/
|
|
26
|
+
reputationSlot?: React.ReactNode;
|
|
11
27
|
/** Fires when the user clicks a contact link (phone/website/social). */
|
|
12
28
|
onLinkClick?: (kind: PlaceLinkKind, url: string) => void;
|
|
13
29
|
className?: string;
|
|
14
30
|
}
|
|
15
|
-
declare function PlaceAboutTab({ place, labels, mapSlot, busynessSlot, onLinkClick, className, }: PlaceAboutTabProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare function PlaceAboutTab({ place, labels, mapSlot, busynessSlot, orderingSlot, reputationSlot, onLinkClick, className, }: PlaceAboutTabProps): react_jsx_runtime.JSX.Element;
|
|
16
32
|
|
|
17
33
|
export { PlaceAboutTab, type PlaceAboutTabProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { PlaceAboutTab } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PlaceAboutTab } from '../chunk-UZ3PCIE5.js';
|
|
2
|
+
import '../chunk-VBA45GLP.js';
|
|
3
3
|
import '../chunk-WSRWFA6K.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-VG3PND3D.js';
|
|
5
|
+
import '../chunk-7BWTYWM3.js';
|
|
6
6
|
import '../chunk-FEK5XGZW.js';
|
|
7
7
|
import '../chunk-3GWWZKX7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Text } from '../chunk-
|
|
1
|
+
import { Text } from '../chunk-7BWTYWM3.js';
|
|
2
2
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
3
3
|
import '../chunk-3GWWZKX7.js';
|
|
4
4
|
import { memo, useState } from 'react';
|
|
@@ -61,7 +61,7 @@ var PlaceCard = memo(function PlaceCard2({
|
|
|
61
61
|
/* @__PURE__ */ jsx(Text, { as: "h3", weight: "bold", leading: "tight", color: "default", className: "text-lg mb-2", children: place.name }),
|
|
62
62
|
ratingDisplay !== null && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
63
63
|
/* @__PURE__ */ jsx(Star, { className: "w-4 h-4 fill-primary text-primary", "aria-hidden": "true" }),
|
|
64
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
64
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-sm", children: ratingDisplay }),
|
|
65
65
|
reviewCount !== void 0 && reviewCount !== null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
|
|
66
66
|
"(",
|
|
67
67
|
reviewCount,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PlaceAboutTab } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { PlaceAboutTab } from '../chunk-UZ3PCIE5.js';
|
|
2
|
+
import '../chunk-VBA45GLP.js';
|
|
3
3
|
import '../chunk-WSRWFA6K.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import { Text } from '../chunk-
|
|
6
|
-
import { Badge } from '../chunk-
|
|
4
|
+
import '../chunk-VG3PND3D.js';
|
|
5
|
+
import { Text } from '../chunk-7BWTYWM3.js';
|
|
6
|
+
import { Badge } from '../chunk-UKBNQO6Q.js';
|
|
7
7
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
8
8
|
import '../chunk-3GWWZKX7.js';
|
|
9
9
|
import { useState } from 'react';
|
|
@@ -55,7 +55,7 @@ function PlaceDetailsMobile({
|
|
|
55
55
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col bg-background", className), children: [
|
|
56
56
|
/* @__PURE__ */ jsxs("div", { className: "px-4 pt-4", children: [
|
|
57
57
|
/* @__PURE__ */ jsx("div", { className: "rounded-[22px] overflow-hidden relative", children: /* @__PURE__ */ jsxs("div", { className: "h-44 flex items-center justify-center relative overflow-hidden", children: [
|
|
58
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute bottom-2 right-2 z-20 flex items-center gap-1.5 bg-surface border border-border px-2.5 h-7 rounded-[12px] text-[11px] font-
|
|
58
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute bottom-2 right-2 z-20 flex items-center gap-1.5 bg-surface border border-border px-2.5 h-7 rounded-[12px] text-[11px] font-semibold text-foreground", children: [
|
|
59
59
|
/* @__PURE__ */ jsx(
|
|
60
60
|
"span",
|
|
61
61
|
{
|
|
@@ -174,7 +174,7 @@ function MobileTabPlaceholder({
|
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
className: cn(
|
|
177
|
-
"flex flex-1 min-w-0 items-center justify-center gap-1 px-1 py-2.5 text-[12px] font-
|
|
177
|
+
"flex flex-1 min-w-0 items-center justify-center gap-1 px-1 py-2.5 text-[12px] font-semibold border-b-2 -mb-px",
|
|
178
178
|
active ? "border-primary text-foreground" : "border-transparent text-muted-foreground"
|
|
179
179
|
),
|
|
180
180
|
"aria-hidden": true,
|