@bearmenu/ui 0.8.9 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-24RFI4RQ.js +167 -0
- package/dist/{chunk-UKBNQO6Q.js → chunk-2CXU5WZO.js} +1 -1
- package/dist/chunk-2XCZJWTV.js +121 -0
- package/dist/{chunk-62ES6N32.js → chunk-43RC7MHY.js} +1 -1
- package/dist/chunk-5RWTOT5Y.js +72 -0
- package/dist/{chunk-Q6QH52LJ.js → chunk-6TEEY5YA.js} +2 -2
- package/dist/{chunk-AXV5O2IZ.js → chunk-AKQ57NXY.js} +3 -3
- package/dist/chunk-CLLY6XB3.js +41 -0
- package/dist/chunk-DTXNDLSE.js +125 -0
- package/dist/chunk-F6FMZJDG.js +113 -0
- package/dist/{chunk-2WDJR6K7.js → chunk-G7IFL4Z4.js} +4 -1
- package/dist/chunk-H3ZZDX5L.js +61 -0
- package/dist/{chunk-H3BV4VAG.js → chunk-JS3EINZD.js} +2 -2
- package/dist/chunk-MZL7CGCL.js +109 -0
- package/dist/{chunk-TH6W2PWG.js → chunk-UDTG3RSE.js} +1 -1
- package/dist/chunk-WCTHZKU7.js +37 -0
- package/dist/{chunk-TT3WFS6S.js → chunk-YOKHBAIH.js} +11 -11
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.d.ts +2 -2
- package/dist/components/avatar.d.ts +3 -3
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/card.d.ts +4 -4
- package/dist/components/carousel.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command.d.ts +2 -2
- package/dist/components/concept-compare-rail.d.ts +50 -0
- package/dist/components/concept-compare-rail.js +5 -0
- package/dist/components/concept-compare.d.ts +75 -38
- package/dist/components/concept-compare.js +209 -133
- package/dist/components/concept-convergence.d.ts +41 -0
- package/dist/components/concept-convergence.js +53 -0
- package/dist/components/convergence.d.ts +25 -0
- package/dist/components/convergence.js +4 -0
- package/dist/components/dialog.d.ts +2 -2
- package/dist/components/empty-state.js +1 -1
- package/dist/components/event-card.js +1 -1
- package/dist/components/event-compact-row.js +1 -1
- package/dist/components/event-detail-panel.js +2 -2
- package/dist/components/event-index-row.js +1 -1
- package/dist/components/event-list-row-wide.js +2 -2
- package/dist/components/event-list-row.js +2 -2
- package/dist/components/explainer-steps.d.ts +34 -0
- package/dist/components/explainer-steps.js +36 -0
- package/dist/components/filter-category-row.js +1 -1
- package/dist/components/glass-ground.d.ts +61 -0
- package/dist/components/glass-ground.js +3 -0
- package/dist/components/haptic-button.js +1 -1
- package/dist/components/hub-surface.js +11 -1
- package/dist/components/hue-chip.d.ts +70 -0
- package/dist/components/hue-chip.js +3 -0
- package/dist/components/input-group.d.ts +2 -2
- package/dist/components/input.d.ts +1 -1
- package/dist/components/item.d.ts +4 -4
- package/dist/components/kbd.d.ts +2 -2
- package/dist/components/kitchen-dossier.d.ts +88 -0
- package/dist/components/kitchen-dossier.js +186 -0
- package/dist/components/link-button.js +1 -1
- package/dist/components/menu-dead-end.d.ts +56 -0
- package/dist/components/menu-dead-end.js +49 -0
- package/dist/components/menu-family-block.d.ts +98 -0
- package/dist/components/menu-family-block.js +153 -0
- package/dist/components/menu-family-card.d.ts +33 -27
- package/dist/components/menu-family-card.js +41 -85
- package/dist/components/menu-field.js +92 -2
- package/dist/components/menu-filter-chips.d.ts +86 -0
- package/dist/components/menu-filter-chips.js +122 -0
- package/dist/components/menu-group-rows.d.ts +53 -0
- package/dist/components/menu-group-rows.js +67 -0
- package/dist/components/menu-hub-hero.js +10 -5
- package/dist/components/menu-index-header.d.ts +37 -0
- package/dist/components/menu-index-header.js +68 -0
- package/dist/components/menu-index-list.d.ts +48 -0
- package/dist/components/menu-index-list.js +96 -0
- package/dist/components/menu-intent-hero.d.ts +69 -0
- package/dist/components/menu-intent-hero.js +87 -0
- package/dist/components/menu-item.js +3 -3
- package/dist/components/menu-kitchen-list.d.ts +82 -0
- package/dist/components/menu-kitchen-list.js +5 -0
- package/dist/components/menu-mocks.d.ts +37 -2
- package/dist/components/menu-mocks.js +152 -27
- package/dist/components/menu-types.d.ts +182 -6
- package/dist/components/motion-icon-controls.js +2 -2
- package/dist/components/motion-icon-set.js +6 -6
- package/dist/components/motion-icon.d.ts +22 -1
- package/dist/components/motion-icon.js +1 -1
- package/dist/components/multi-select-combobox.js +2 -2
- package/dist/components/native-select.d.ts +2 -2
- package/dist/components/pagination.js +1 -1
- package/dist/components/photo-ground.d.ts +64 -0
- package/dist/components/photo-ground.js +3 -0
- package/dist/components/place-about-tab.js +2 -2
- package/dist/components/place-details-mobile.js +3 -3
- package/dist/components/place-types.d.ts +2 -2
- package/dist/components/qa-block.d.ts +36 -0
- package/dist/components/qa-block.js +24 -0
- package/dist/components/scroll-fade.js +3 -121
- package/dist/components/searchable-select.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/signature-chip.d.ts +2 -2
- package/dist/components/signature-chip.js +2 -2
- package/dist/components/sliding-panels.js +1 -1
- package/dist/components/snap-rail.d.ts +26 -3
- package/dist/components/snap-rail.js +3 -109
- package/dist/components/spinner.d.ts +4 -4
- package/dist/components/story.d.ts +34 -0
- package/dist/components/story.js +3 -0
- package/dist/components/tag.d.ts +4 -4
- package/dist/components/text.d.ts +5 -5
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/top-comparison.d.ts +28 -0
- package/dist/components/top-comparison.js +76 -0
- package/dist/components/top-cross-link.d.ts +34 -0
- package/dist/components/top-cross-link.js +101 -0
- package/dist/components/top-ranking-entry.d.ts +53 -0
- package/dist/components/top-ranking-entry.js +217 -0
- package/dist/components/top-ranking-hero.d.ts +61 -0
- package/dist/components/top-ranking-hero.js +99 -0
- package/dist/components/top-ranking-legend.d.ts +69 -0
- package/dist/components/top-ranking-legend.js +124 -0
- package/dist/components/top-types.d.ts +109 -0
- package/dist/components/top-types.js +1 -0
- package/dist/components/venue-grade-dimensions.d.ts +3 -1
- package/dist/components/venue-grade-dimensions.js +1 -1
- package/dist/components/venue-quotes.d.ts +1 -1
- package/dist/components/venue-quotes.js +1 -1
- package/dist/components/venue-wall.js +5 -3
- package/dist/components/weekday-theme-banner.js +1 -1
- package/dist/components/weekend-panel.js +2 -2
- package/package.json +1 -1
- package/src/components/badge.tsx +1 -1
- package/src/components/button.tsx +2 -2
- package/src/components/concept-compare-rail.tsx +132 -0
- package/src/components/concept-compare.stories.tsx +122 -54
- package/src/components/concept-compare.tsx +368 -196
- package/src/components/concept-convergence.stories.tsx +53 -0
- package/src/components/concept-convergence.tsx +90 -0
- package/src/components/convergence.stories.tsx +54 -0
- package/src/components/convergence.tsx +177 -0
- package/src/components/explainer-steps.stories.tsx +46 -0
- package/src/components/explainer-steps.tsx +74 -0
- package/src/components/glass-ground.tsx +104 -0
- package/src/components/hub-surface.tsx +11 -1
- package/src/components/hue-chip.stories.tsx +76 -0
- package/src/components/hue-chip.test.tsx +62 -0
- package/src/components/hue-chip.tsx +99 -0
- package/src/components/kitchen-dossier.stories.tsx +108 -0
- package/src/components/kitchen-dossier.tsx +321 -0
- package/src/components/menu-dead-end.stories.tsx +67 -0
- package/src/components/menu-dead-end.tsx +127 -0
- package/src/components/menu-family-block.stories.tsx +91 -0
- package/src/components/menu-family-block.tsx +303 -0
- package/src/components/menu-family-card.stories.tsx +43 -35
- package/src/components/menu-family-card.tsx +115 -142
- package/src/components/menu-filter-chips.stories.tsx +107 -0
- package/src/components/menu-filter-chips.tsx +238 -0
- package/src/components/menu-group-rows.stories.tsx +54 -0
- package/src/components/menu-group-rows.tsx +133 -0
- package/src/components/menu-hub-hero.test.tsx +39 -0
- package/src/components/menu-hub-hero.tsx +17 -5
- package/src/components/menu-index-header.stories.tsx +72 -0
- package/src/components/menu-index-header.tsx +125 -0
- package/src/components/menu-index-list.stories.tsx +50 -0
- package/src/components/menu-index-list.tsx +149 -0
- package/src/components/menu-intent-hero.stories.tsx +67 -0
- package/src/components/menu-intent-hero.tsx +189 -0
- package/src/components/menu-kitchen-list.stories.tsx +67 -0
- package/src/components/menu-kitchen-list.test.tsx +78 -0
- package/src/components/menu-kitchen-list.tsx +284 -0
- package/src/components/menu-mocks.ts +198 -23
- package/src/components/menu-types.ts +189 -6
- package/src/components/motion-icon-controls.tsx +11 -11
- package/src/components/motion-icon-set.tsx +6 -5
- package/src/components/motion-icon.test.tsx +23 -1
- package/src/components/motion-icon.tsx +20 -0
- package/src/components/photo-ground.tsx +147 -0
- package/src/components/place-types.ts +2 -2
- package/src/components/qa-block.stories.tsx +43 -0
- package/src/components/qa-block.tsx +60 -0
- package/src/components/signature-chip.tsx +3 -3
- package/src/components/snap-rail.tsx +58 -15
- package/src/components/story.tsx +225 -0
- package/src/components/top-comparison.stories.tsx +78 -0
- package/src/components/top-comparison.tsx +151 -0
- package/src/components/top-cross-link.stories.tsx +84 -0
- package/src/components/top-cross-link.tsx +171 -0
- package/src/components/top-ranking-entry.stories.tsx +171 -0
- package/src/components/top-ranking-entry.test.tsx +105 -0
- package/src/components/top-ranking-entry.tsx +425 -0
- package/src/components/top-ranking-hero.stories.tsx +76 -0
- package/src/components/top-ranking-hero.tsx +218 -0
- package/src/components/top-ranking-legend.stories.tsx +78 -0
- package/src/components/top-ranking-legend.tsx +239 -0
- package/src/components/top-types.ts +110 -0
- package/src/components/venue-grade-dimensions.tsx +2 -2
- package/src/components/venue-quotes.stories.tsx +1 -1
- package/src/components/venue-quotes.tsx +4 -2
- package/src/components/venue-wall.tsx +9 -4
- package/src/components/weekday-theme-banner.tsx +1 -1
- package/dist/chunk-THOVPZNN.js +0 -37
- package/dist/chunk-YS6BHKZO.js +0 -92
- package/dist/components/ranked-venue-list.d.ts +0 -49
- package/dist/components/ranked-venue-list.js +0 -87
- package/dist/components/signature-line-list.d.ts +0 -45
- package/dist/components/signature-line-list.js +0 -99
- package/dist/components/venue-busyness-strip.d.ts +0 -35
- package/dist/components/venue-busyness-strip.js +0 -37
- package/dist/components/venue-signature-block.d.ts +0 -39
- package/dist/components/venue-signature-block.js +0 -6
- package/dist/components/venue-spotlight.d.ts +0 -74
- package/dist/components/venue-spotlight.js +0 -138
- package/src/components/ranked-venue-list.stories.tsx +0 -80
- package/src/components/ranked-venue-list.tsx +0 -177
- package/src/components/signature-line-list.stories.tsx +0 -85
- package/src/components/signature-line-list.tsx +0 -136
- package/src/components/venue-busyness-strip.stories.tsx +0 -66
- package/src/components/venue-busyness-strip.tsx +0 -64
- package/src/components/venue-signature-block.stories.tsx +0 -68
- package/src/components/venue-signature-block.tsx +0 -71
- package/src/components/venue-spotlight.stories.tsx +0 -141
- package/src/components/venue-spotlight.tsx +0 -236
- package/dist/{chunk-XWMRABZW.js → chunk-HSIYYA2E.js} +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { cn } from './chunk-FEK5XGZW.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useInView } from 'framer-motion';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var StoryContext = React.createContext(null);
|
|
7
|
+
function useStory() {
|
|
8
|
+
const value = React.useContext(StoryContext);
|
|
9
|
+
if (!value) throw new Error("Story pieces must render inside StoryProvider");
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
var TICK_MS = 100;
|
|
13
|
+
function StoryProvider({
|
|
14
|
+
count,
|
|
15
|
+
durationMs = 5e3,
|
|
16
|
+
nextLabel,
|
|
17
|
+
className,
|
|
18
|
+
children
|
|
19
|
+
}) {
|
|
20
|
+
const ref = React.useRef(null);
|
|
21
|
+
const inView = useInView(ref, { amount: 0.6 });
|
|
22
|
+
const [active, setActive] = React.useState(0);
|
|
23
|
+
const [elapsed, setElapsed] = React.useState(0);
|
|
24
|
+
const [held, setHeld] = React.useState(false);
|
|
25
|
+
const playing = Boolean(inView && !held && count > 1);
|
|
26
|
+
const go = React.useCallback(
|
|
27
|
+
(index) => {
|
|
28
|
+
setActive((index % count + count) % count);
|
|
29
|
+
setElapsed(0);
|
|
30
|
+
},
|
|
31
|
+
[count]
|
|
32
|
+
);
|
|
33
|
+
const next = React.useCallback(() => go(active + 1), [go, active]);
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
if (!playing) return;
|
|
36
|
+
const timer = window.setInterval(() => setElapsed((previous) => previous + TICK_MS), TICK_MS);
|
|
37
|
+
return () => window.clearInterval(timer);
|
|
38
|
+
}, [playing]);
|
|
39
|
+
React.useEffect(() => {
|
|
40
|
+
if (elapsed < durationMs) return;
|
|
41
|
+
setActive((current) => (current + 1) % count);
|
|
42
|
+
setElapsed(0);
|
|
43
|
+
}, [elapsed, durationMs, count]);
|
|
44
|
+
const value = React.useMemo(
|
|
45
|
+
() => ({ count, active, progress: Math.min(elapsed / durationMs, 1), playing, go, next }),
|
|
46
|
+
[count, active, elapsed, durationMs, playing, go, next]
|
|
47
|
+
);
|
|
48
|
+
const advance = (event) => {
|
|
49
|
+
if (count < 2) return;
|
|
50
|
+
if (event.target.closest("a, button")) return;
|
|
51
|
+
next();
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ jsx(StoryContext.Provider, { value, children: /* @__PURE__ */ jsx(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
className: cn(count > 1 && "cursor-pointer", className),
|
|
58
|
+
title: count > 1 ? nextLabel : void 0,
|
|
59
|
+
onClick: advance,
|
|
60
|
+
onPointerDown: () => setHeld(true),
|
|
61
|
+
onPointerUp: () => setHeld(false),
|
|
62
|
+
onPointerLeave: () => setHeld(false),
|
|
63
|
+
onPointerCancel: () => setHeld(false),
|
|
64
|
+
children
|
|
65
|
+
}
|
|
66
|
+
) });
|
|
67
|
+
}
|
|
68
|
+
function StorySegments({ labels, className }) {
|
|
69
|
+
const { count, active, progress, go } = useStory();
|
|
70
|
+
if (count < 2) return null;
|
|
71
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex gap-1", className), role: "tablist", children: Array.from({ length: count }, (_, index) => {
|
|
72
|
+
const fill = index < active ? 1 : index === active ? progress : 0;
|
|
73
|
+
return /* @__PURE__ */ jsx(
|
|
74
|
+
"button",
|
|
75
|
+
{
|
|
76
|
+
type: "button",
|
|
77
|
+
role: "tab",
|
|
78
|
+
"aria-selected": index === active,
|
|
79
|
+
"aria-label": labels[index],
|
|
80
|
+
onClick: () => go(index),
|
|
81
|
+
className: "group/segment flex h-6 flex-1 items-center focus-visible:outline-none",
|
|
82
|
+
children: /* @__PURE__ */ jsx("span", { className: "relative block h-[3px] w-full overflow-hidden rounded-full bg-white/25 group-focus-visible/segment:ring-2 group-focus-visible/segment:ring-white/70", children: /* @__PURE__ */ jsx(
|
|
83
|
+
"span",
|
|
84
|
+
{
|
|
85
|
+
className: "absolute inset-y-0 left-0 rounded-full bg-white",
|
|
86
|
+
style: { width: `${fill * 100}%` }
|
|
87
|
+
}
|
|
88
|
+
) })
|
|
89
|
+
},
|
|
90
|
+
index
|
|
91
|
+
);
|
|
92
|
+
}) });
|
|
93
|
+
}
|
|
94
|
+
function StoryPanel({ parts, className }) {
|
|
95
|
+
const { active } = useStory();
|
|
96
|
+
return /* @__PURE__ */ jsx("div", { className: cn("relative", className), children: /* @__PURE__ */ jsx("div", { className: "grid [&>*]:col-start-1 [&>*]:row-start-1", children: parts.map((part, index) => {
|
|
97
|
+
const isActive = index === active;
|
|
98
|
+
return /* @__PURE__ */ jsx(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
"aria-hidden": !isActive,
|
|
102
|
+
className: cn(
|
|
103
|
+
"transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none",
|
|
104
|
+
isActive ? "opacity-100" : "pointer-events-none invisible translate-y-1.5 opacity-0"
|
|
105
|
+
),
|
|
106
|
+
children: part
|
|
107
|
+
},
|
|
108
|
+
index
|
|
109
|
+
);
|
|
110
|
+
}) }) });
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { StoryPanel, StoryProvider, StorySegments };
|
|
@@ -8,6 +8,9 @@ function beats(times, duration = 0.62) {
|
|
|
8
8
|
return { duration, times, ease: "easeInOut" };
|
|
9
9
|
}
|
|
10
10
|
var returnTransition = { type: "spring", stiffness: 320, damping: 26 };
|
|
11
|
+
function pivot(x, y) {
|
|
12
|
+
return { originX: `${x}px`, originY: `${y}px`, transformBox: "view-box" };
|
|
13
|
+
}
|
|
11
14
|
function poses(rest, active, play, transition) {
|
|
12
15
|
return {
|
|
13
16
|
rest: __spreadProps(__spreadValues({}, rest), { transition: returnTransition }),
|
|
@@ -73,4 +76,4 @@ function MotionIcon({
|
|
|
73
76
|
);
|
|
74
77
|
}
|
|
75
78
|
|
|
76
|
-
export { MotionIcon, beats, poses, returnTransition, useIconGesture };
|
|
79
|
+
export { MotionIcon, beats, pivot, poses, returnTransition, useIconGesture };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { SnapRail, SnapRailDots } from './chunk-DTXNDLSE.js';
|
|
2
|
+
import { PhotoGround } from './chunk-5RWTOT5Y.js';
|
|
3
|
+
import { cn } from './chunk-FEK5XGZW.js';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var FOOT_GLASS = cn(
|
|
8
|
+
// Ink only — no backdrop-blur; see `GlassGround` for the measurement.
|
|
9
|
+
"before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:content-['']",
|
|
10
|
+
"before:bg-[oklch(0.16_0.012_55_/_0.9)]",
|
|
11
|
+
"lg:before:[mask-image:linear-gradient(to_top,black_60%,transparent_100%)] lg:before:bg-[linear-gradient(to_top,oklch(0.16_0.012_55_/_0.88)_0%,oklch(0.16_0.012_55_/_0.84)_60%,oklch(0.16_0.012_55_/_0.4)_85%,oklch(0.16_0.012_55_/_0)_100%)]"
|
|
12
|
+
);
|
|
13
|
+
function ConceptCompareRail({
|
|
14
|
+
backdrops,
|
|
15
|
+
railClassName,
|
|
16
|
+
foot,
|
|
17
|
+
children
|
|
18
|
+
}) {
|
|
19
|
+
const [active, setActive] = React.useState(0);
|
|
20
|
+
const count = React.Children.count(children);
|
|
21
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
PhotoGround,
|
|
24
|
+
{
|
|
25
|
+
className: "-z-10 lg:hidden",
|
|
26
|
+
mode: "stack",
|
|
27
|
+
active,
|
|
28
|
+
photos: backdrops.map((backdrop) => backdrop.src),
|
|
29
|
+
initials: backdrops.map((backdrop) => backdrop.initial),
|
|
30
|
+
overlay: true,
|
|
31
|
+
loading: "eager"
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
SnapRail,
|
|
36
|
+
{
|
|
37
|
+
itemWidth: "full",
|
|
38
|
+
gap: "sm",
|
|
39
|
+
onActiveChange: setActive,
|
|
40
|
+
className: cn("pb-0 overscroll-x-contain", railClassName),
|
|
41
|
+
children
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
foot && /* @__PURE__ */ jsxs(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: cn(
|
|
48
|
+
"relative isolate flex flex-col gap-3 px-4 pb-4 pt-3",
|
|
49
|
+
"lg:absolute lg:inset-x-0 lg:bottom-0 lg:z-10 lg:flex-row lg:items-center lg:gap-5 lg:px-5 lg:pb-4 lg:pt-6",
|
|
50
|
+
FOOT_GLASS
|
|
51
|
+
),
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ jsx(SnapRailDots, { count, active, className: "lg:hidden" }),
|
|
54
|
+
foot
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { ConceptCompareRail };
|
|
@@ -26,13 +26,13 @@ var buttonVariants = cva(
|
|
|
26
26
|
* into a dark photo.
|
|
27
27
|
*
|
|
28
28
|
* Deliberately NOT theme-aware, and so deliberately different from
|
|
29
|
-
* `Badge`'s `overlay` (`bg-foreground/
|
|
29
|
+
* `Badge`'s `overlay` (`bg-foreground/80 text-background`, which
|
|
30
30
|
* inverts). A photo is equally a photo in both themes — this chrome has
|
|
31
31
|
* to contrast with the image beneath it, not with the app canvas, so it
|
|
32
32
|
* stays dark-on-light-glyph either way. Reconcile Badge to this, not the
|
|
33
33
|
* reverse, if the two are ever unified.
|
|
34
34
|
*/
|
|
35
|
-
overlay: "bg-black/
|
|
35
|
+
overlay: "bg-black/50 text-white hover:bg-black/65 focus-visible:ring-white/70",
|
|
36
36
|
brown: "bg-brown text-brown-foreground shadow-sm hover:bg-brown/85 hover:shadow",
|
|
37
37
|
antagonist: "bg-primary-foreground text-primary shadow-sm hover:bg-accent hover:text-accent-foreground border border-border hover:border-accent"
|
|
38
38
|
},
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { stagger, ease, duration, springSnappy } from './chunk-LEAYBICI.js';
|
|
2
|
+
import { cn } from './chunk-FEK5XGZW.js';
|
|
3
|
+
import { __spreadValues, __spreadProps } from './chunk-3GWWZKX7.js';
|
|
4
|
+
import { motion, useReducedMotion } from 'framer-motion';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var LINE_LEAD = 0.15;
|
|
8
|
+
var TARGET_DELAY = 0.38;
|
|
9
|
+
var sourcesContainer = {
|
|
10
|
+
hidden: {},
|
|
11
|
+
show: { transition: { delayChildren: 0.06, staggerChildren: stagger.tight } }
|
|
12
|
+
};
|
|
13
|
+
var sourceItem = {
|
|
14
|
+
hidden: { opacity: 0, x: -8 },
|
|
15
|
+
show: { opacity: 1, x: 0, transition: { duration: duration.quick, ease: ease.enter } }
|
|
16
|
+
};
|
|
17
|
+
var targetItem = {
|
|
18
|
+
hidden: { opacity: 0, scale: 0.92 },
|
|
19
|
+
show: { opacity: 1, scale: 1, transition: __spreadValues({ delay: TARGET_DELAY }, springSnappy) }
|
|
20
|
+
};
|
|
21
|
+
var LINES_WIDTH = 40;
|
|
22
|
+
var LINES_HEIGHT = 100;
|
|
23
|
+
function ConvergeLines({ count, animate = true, className }) {
|
|
24
|
+
const mid = LINES_HEIGHT / 2;
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
26
|
+
"svg",
|
|
27
|
+
{
|
|
28
|
+
"aria-hidden": true,
|
|
29
|
+
viewBox: `0 0 ${LINES_WIDTH} ${LINES_HEIGHT}`,
|
|
30
|
+
preserveAspectRatio: "none",
|
|
31
|
+
className: cn("h-full w-10 text-border", className),
|
|
32
|
+
children: Array.from({ length: count }, (_, index) => {
|
|
33
|
+
const y = (index + 0.5) / count * LINES_HEIGHT;
|
|
34
|
+
const d = `M0 ${y} C ${LINES_WIDTH / 2} ${y}, ${LINES_WIDTH / 2} ${mid}, ${LINES_WIDTH} ${mid}`;
|
|
35
|
+
const stroke = {
|
|
36
|
+
d,
|
|
37
|
+
fill: "none",
|
|
38
|
+
stroke: "currentColor",
|
|
39
|
+
strokeWidth: 1.5,
|
|
40
|
+
strokeLinecap: "round",
|
|
41
|
+
vectorEffect: "non-scaling-stroke"
|
|
42
|
+
};
|
|
43
|
+
return animate ? /* @__PURE__ */ jsx(
|
|
44
|
+
motion.path,
|
|
45
|
+
__spreadProps(__spreadValues({}, stroke), {
|
|
46
|
+
initial: { pathLength: 0, opacity: 0 },
|
|
47
|
+
animate: { pathLength: 1, opacity: 1 },
|
|
48
|
+
transition: {
|
|
49
|
+
delay: LINE_LEAD + index * stagger.tight,
|
|
50
|
+
duration: duration.standard,
|
|
51
|
+
ease: ease.standard
|
|
52
|
+
}
|
|
53
|
+
}),
|
|
54
|
+
index
|
|
55
|
+
) : /* @__PURE__ */ jsx("path", __spreadValues({}, stroke), index);
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
function Convergence({
|
|
61
|
+
sources,
|
|
62
|
+
target,
|
|
63
|
+
animate = true,
|
|
64
|
+
linesClassName,
|
|
65
|
+
className
|
|
66
|
+
}) {
|
|
67
|
+
const reduce = useReducedMotion();
|
|
68
|
+
const run = animate && !reduce;
|
|
69
|
+
const fadeOnly = animate && reduce;
|
|
70
|
+
return /* @__PURE__ */ jsxs(
|
|
71
|
+
motion.div,
|
|
72
|
+
{
|
|
73
|
+
className: cn("grid grid-cols-[minmax(0,1fr)_auto_auto] items-center", className),
|
|
74
|
+
initial: fadeOnly ? { opacity: 0 } : false,
|
|
75
|
+
animate: fadeOnly ? { opacity: 1 } : void 0,
|
|
76
|
+
transition: { duration: duration.quick, ease: ease.standard },
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ jsx(
|
|
79
|
+
motion.div,
|
|
80
|
+
{
|
|
81
|
+
className: cn(
|
|
82
|
+
"flex min-w-0 flex-col items-start justify-center gap-2 py-1",
|
|
83
|
+
/* The fan: the middle sources sit a little further right than the
|
|
84
|
+
ends, so five chips read as one hand of cards, not as a menu. */
|
|
85
|
+
"[&>*:nth-child(2)]:translate-x-1.5 [&>*:nth-child(3)]:translate-x-3 [&>*:nth-child(4)]:translate-x-1.5"
|
|
86
|
+
),
|
|
87
|
+
variants: run ? sourcesContainer : void 0,
|
|
88
|
+
initial: run ? "hidden" : false,
|
|
89
|
+
animate: run ? "show" : void 0,
|
|
90
|
+
children: sources.map((node, index) => /* @__PURE__ */ jsx(motion.div, { className: "flex max-w-full", variants: run ? sourceItem : void 0, children: node }, index))
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ jsx("div", { className: "self-stretch", children: /* @__PURE__ */ jsx(ConvergeLines, { count: sources.length, animate: run, className: linesClassName }) }),
|
|
94
|
+
/* @__PURE__ */ jsx(
|
|
95
|
+
motion.div,
|
|
96
|
+
{
|
|
97
|
+
className: "flex items-center",
|
|
98
|
+
variants: run ? targetItem : void 0,
|
|
99
|
+
initial: run ? "hidden" : false,
|
|
100
|
+
animate: run ? "show" : void 0,
|
|
101
|
+
children: target
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { ConvergeLines, Convergence };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { cn } from './chunk-FEK5XGZW.js';
|
|
2
|
+
import { __spreadProps, __spreadValues } from './chunk-3GWWZKX7.js';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var STOPS = [0, 0.25, 0.5, 0.75, 1];
|
|
6
|
+
var EASE = [0, 0.06, 0.25, 0.56, 1];
|
|
7
|
+
var INK = "bg-[linear-gradient(var(--glass-dir),oklch(0.16_0.012_55_/_0)_var(--glass-s0),oklch(0.16_0.012_55_/_var(--glass-a1))_var(--glass-s1),oklch(0.16_0.012_55_/_var(--glass-a2))_var(--glass-s2),oklch(0.16_0.012_55_/_var(--glass-a3))_var(--glass-s3),oklch(0.16_0.012_55_/_var(--glass-a4))_var(--glass-s4),oklch(0.16_0.012_55_/_var(--glass-a-peak))_100%)] lg:bg-[linear-gradient(var(--glass-lg-dir),oklch(0.16_0.012_55_/_0)_var(--glass-lg-s0),oklch(0.16_0.012_55_/_var(--glass-a1))_var(--glass-lg-s1),oklch(0.16_0.012_55_/_var(--glass-a2))_var(--glass-lg-s2),oklch(0.16_0.012_55_/_var(--glass-a3))_var(--glass-lg-s3),oklch(0.16_0.012_55_/_var(--glass-a4))_var(--glass-lg-s4),oklch(0.16_0.012_55_/_var(--glass-a-peak))_100%)]";
|
|
8
|
+
function measure(value) {
|
|
9
|
+
const match = value.trim().match(/^(-?\d*\.?\d+)\s*([a-z%]*)$/i);
|
|
10
|
+
if (!match) throw new Error(`GlassGround: cannot read stop "${value}"`);
|
|
11
|
+
return [Number(match[1]), match[2] || "px"];
|
|
12
|
+
}
|
|
13
|
+
function positions(clear, full) {
|
|
14
|
+
const [from, unit] = measure(clear);
|
|
15
|
+
const [to] = measure(full);
|
|
16
|
+
return STOPS.map((fraction) => `${from + (to - from) * fraction}${unit}`);
|
|
17
|
+
}
|
|
18
|
+
function GlassGround({ stops, lgStops = stops, peak = 0.96, className }) {
|
|
19
|
+
const base = positions(stops.clear, stops.full);
|
|
20
|
+
const lg = positions(lgStops.clear, lgStops.full);
|
|
21
|
+
const style = __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
22
|
+
"--glass-dir": stops.direction,
|
|
23
|
+
"--glass-lg-dir": lgStops.direction
|
|
24
|
+
}, Object.fromEntries(base.map((position, index) => [`--glass-s${index}`, position]))), Object.fromEntries(lg.map((position, index) => [`--glass-lg-s${index}`, position]))), Object.fromEntries(EASE.slice(1).map((share, index) => [`--glass-a${index + 1}`, String(peak * 0.8 * share)]))), {
|
|
25
|
+
"--glass-a-peak": String(peak)
|
|
26
|
+
});
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
"span",
|
|
29
|
+
{
|
|
30
|
+
"aria-hidden": true,
|
|
31
|
+
className: cn("pointer-events-none absolute inset-0 block", INK, className),
|
|
32
|
+
style
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { GlassGround };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { beats, returnTransition, MotionIcon } from './chunk-
|
|
1
|
+
import { beats, returnTransition, MotionIcon, pivot } from './chunk-G7IFL4Z4.js';
|
|
2
2
|
import { __spreadProps, __spreadValues } from './chunk-3GWWZKX7.js';
|
|
3
3
|
import { motion } from 'framer-motion';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -19,7 +19,7 @@ function MotionHeart(props) {
|
|
|
19
19
|
motion.path,
|
|
20
20
|
{
|
|
21
21
|
variants: heartBody,
|
|
22
|
-
style:
|
|
22
|
+
style: pivot(12, 13),
|
|
23
23
|
fill: "currentColor",
|
|
24
24
|
fillOpacity: 0,
|
|
25
25
|
d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"
|
|
@@ -43,7 +43,7 @@ function MotionBookmark(props) {
|
|
|
43
43
|
motion.path,
|
|
44
44
|
{
|
|
45
45
|
variants: bookmarkBody,
|
|
46
|
-
style:
|
|
46
|
+
style: pivot(12, 21),
|
|
47
47
|
fill: "currentColor",
|
|
48
48
|
fillOpacity: 0,
|
|
49
49
|
d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"
|
|
@@ -89,7 +89,7 @@ var found = {
|
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
function MotionSearch(props) {
|
|
92
|
-
return /* @__PURE__ */ jsx(MotionIcon, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs(motion.g, { variants: lens, style:
|
|
92
|
+
return /* @__PURE__ */ jsx(MotionIcon, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs(motion.g, { variants: lens, style: pivot(21, 21), children: [
|
|
93
93
|
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
94
94
|
/* @__PURE__ */ jsx("path", { d: "m21 21-4.34-4.34" }),
|
|
95
95
|
/* @__PURE__ */ jsx(
|
|
@@ -97,7 +97,7 @@ function MotionSearch(props) {
|
|
|
97
97
|
{
|
|
98
98
|
variants: found,
|
|
99
99
|
opacity: 0,
|
|
100
|
-
style:
|
|
100
|
+
style: pivot(11, 11),
|
|
101
101
|
fill: "currentColor",
|
|
102
102
|
cx: "11",
|
|
103
103
|
cy: "11",
|
|
@@ -207,7 +207,7 @@ var crescent = {
|
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
function MotionTheme(props) {
|
|
210
|
-
const origin =
|
|
210
|
+
const origin = pivot(12, 12);
|
|
211
211
|
return /* @__PURE__ */ jsxs(MotionIcon, __spreadProps(__spreadValues({}, props), { children: [
|
|
212
212
|
/* @__PURE__ */ jsx(motion.g, { variants: rays, style: origin, children: SUN_RAYS.map((d) => /* @__PURE__ */ jsx("path", { d }, d)) }),
|
|
213
213
|
/* @__PURE__ */ jsx(motion.circle, { variants: disc, style: origin, cx: "12", cy: "12", r: "4" }),
|
|
@@ -232,7 +232,7 @@ var chevron = {
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
function MotionChevron(props) {
|
|
235
|
-
return /* @__PURE__ */ jsx(MotionIcon, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx(motion.path, { variants: chevron, style:
|
|
235
|
+
return /* @__PURE__ */ jsx(MotionIcon, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx(motion.path, { variants: chevron, style: pivot(12, 12), d: "m6 9 6 6 6-6" }) }));
|
|
236
236
|
}
|
|
237
237
|
var PLAYPAUSE_TIMES = [0, 0.24, 0.72, 1];
|
|
238
238
|
var playHead = {
|
|
@@ -255,7 +255,7 @@ function pauseBar(dx) {
|
|
|
255
255
|
var barLeft = pauseBar(5);
|
|
256
256
|
var barRight = pauseBar(-5);
|
|
257
257
|
function MotionPlayPause(props) {
|
|
258
|
-
const origin =
|
|
258
|
+
const origin = pivot(12, 12);
|
|
259
259
|
return /* @__PURE__ */ jsxs(MotionIcon, __spreadProps(__spreadValues({}, props), { children: [
|
|
260
260
|
/* @__PURE__ */ jsx(
|
|
261
261
|
motion.path,
|
|
@@ -290,7 +290,7 @@ var slash = {
|
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
292
|
function MotionEye(props) {
|
|
293
|
-
const origin =
|
|
293
|
+
const origin = pivot(12, 12);
|
|
294
294
|
return /* @__PURE__ */ jsxs(MotionIcon, __spreadProps(__spreadValues({}, props), { children: [
|
|
295
295
|
/* @__PURE__ */ jsx(
|
|
296
296
|
motion.path,
|
|
@@ -320,7 +320,7 @@ function MotionStar(props) {
|
|
|
320
320
|
motion.path,
|
|
321
321
|
{
|
|
322
322
|
variants: starBody,
|
|
323
|
-
style:
|
|
323
|
+
style: pivot(12, 12),
|
|
324
324
|
fill: "currentColor",
|
|
325
325
|
fillOpacity: 0,
|
|
326
326
|
d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"
|
|
@@ -368,7 +368,7 @@ var refreshRing = {
|
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
function MotionRefresh(props) {
|
|
371
|
-
return /* @__PURE__ */ jsx(MotionIcon, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs(motion.g, { variants: refreshRing, style:
|
|
371
|
+
return /* @__PURE__ */ jsx(MotionIcon, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs(motion.g, { variants: refreshRing, style: pivot(12, 12), children: [
|
|
372
372
|
/* @__PURE__ */ jsx("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }),
|
|
373
373
|
/* @__PURE__ */ jsx("path", { d: "M21 3v5h-5" }),
|
|
374
374
|
/* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buttonVariants } from '../chunk-
|
|
1
|
+
import { buttonVariants } from '../chunk-JS3EINZD.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,10 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const alertVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
6
|
+
variant?: "default" | "success" | "warning" | "destructive" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
9
|
-
variant?: "default" | "
|
|
9
|
+
variant?: "default" | "success" | "warning" | "destructive" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
12
12
|
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -4,11 +4,11 @@ import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const avatarVariants: (props?: ({
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "xs" | "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
type AvatarSize = NonNullable<VariantProps<typeof avatarVariants>["size"]>;
|
|
10
10
|
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
|
|
11
|
-
size?: "
|
|
11
|
+
size?: "xs" | "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLSpanElement>>;
|
|
13
13
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
14
14
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -17,7 +17,7 @@ declare const AvatarBadge: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
17
17
|
tone?: "success" | "warning" | "destructive" | "muted";
|
|
18
18
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
19
19
|
declare const avatarGroupOverflowVariants: (props?: ({
|
|
20
|
-
size?: "
|
|
20
|
+
size?: "xs" | "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
21
21
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
22
|
declare const AvatarGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
23
23
|
max?: number;
|
|
@@ -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" | "
|
|
7
|
+
variant?: "default" | "success" | "warning" | "destructive" | "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> {
|
package/dist/components/badge.js
CHANGED
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "glass" | "overlay" | "brown" | "antagonist" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "default" | "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;
|
|
10
10
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buttonVariants, Button } from '../chunk-
|
|
1
|
+
import { buttonVariants, Button } from '../chunk-JS3EINZD.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';
|
|
@@ -3,13 +3,13 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const cardVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "muted" | "outline" | "glass" | "surface" | "elevated" | "elevatedPanel" | null | undefined;
|
|
7
|
+
size?: "sm" | "default" | "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?: "
|
|
12
|
-
size?: "
|
|
11
|
+
variant?: "muted" | "outline" | "glass" | "surface" | "elevated" | "elevatedPanel" | null | undefined;
|
|
12
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
13
13
|
interactive?: boolean | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Popover, PopoverTrigger, PopoverContent } from '../chunk-66MAPLXS.js';
|
|
2
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-JS3EINZD.js';
|
|
5
5
|
import '../chunk-R47NEOSI.js';
|
|
6
6
|
import { cn } from '../chunk-FEK5XGZW.js';
|
|
7
7
|
import '../chunk-3GWWZKX7.js';
|
|
@@ -28,7 +28,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
28
28
|
ref?: React.Ref<HTMLInputElement>;
|
|
29
29
|
} & {
|
|
30
30
|
asChild?: boolean;
|
|
31
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "
|
|
31
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
32
32
|
value?: string;
|
|
33
33
|
onValueChange?: (search: string) => void;
|
|
34
34
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -82,7 +82,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
82
82
|
ref?: React.Ref<HTMLDivElement>;
|
|
83
83
|
} & {
|
|
84
84
|
asChild?: boolean;
|
|
85
|
-
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "
|
|
85
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "value" | "disabled"> & {
|
|
86
86
|
disabled?: boolean;
|
|
87
87
|
onSelect?: (value: string) => void;
|
|
88
88
|
value?: string;
|