rockin 0.0.39 → 0.0.40
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-4ILCWFOE.js +18 -0
- package/dist/chunk-GL2CQ5TR.js +78 -0
- package/dist/{chunk-6JS62NO4.js → chunk-ILKXRTV2.js} +2 -2
- package/dist/chunk-UZGJXAFX.js +41 -0
- package/dist/{chunk-G3RYS466.js → chunk-YA5PSI7E.js} +6 -2
- package/dist/hooks/index.d.ts +5 -1
- package/dist/hooks/index.js +257 -18
- package/dist/index.d.ts +38 -0
- package/dist/index.js +2 -2
- package/dist/layout.js +2 -5
- package/dist/lib/index.d.ts +43 -1
- package/dist/lib/index.js +5 -1
- package/dist/provider.d.ts +0 -1
- package/dist/provider.js +3 -3
- package/dist/sdk/accordion.js +1 -0
- package/dist/sdk/agent.js +1 -0
- package/dist/sdk/alert-dialog.js +1 -0
- package/dist/sdk/async-options.js +1 -0
- package/dist/sdk/autocomplete.js +1 -0
- package/dist/sdk/avatar.js +1 -0
- package/dist/sdk/button.js +1 -0
- package/dist/sdk/calendar.js +1 -0
- package/dist/sdk/carousel.js +1 -0
- package/dist/sdk/checkbox.js +1 -0
- package/dist/sdk/collapsible.js +1 -0
- package/dist/sdk/color-picker.js +1 -0
- package/dist/sdk/color.js +1 -0
- package/dist/sdk/combobox.js +1 -0
- package/dist/sdk/command.js +1 -0
- package/dist/sdk/core/accordion.js +1 -0
- package/dist/sdk/core/agent.js +1 -0
- package/dist/sdk/core/alert-dialog.js +1 -0
- package/dist/sdk/core/async-options.js +1 -0
- package/dist/sdk/core/autocomplete.js +1 -0
- package/dist/sdk/core/avatar.js +1 -0
- package/dist/sdk/core/button.js +1 -0
- package/dist/sdk/core/calendar.js +1 -0
- package/dist/sdk/core/carousel.js +1 -0
- package/dist/sdk/core/checkbox.js +1 -0
- package/dist/sdk/core/collapsible.js +1 -0
- package/dist/sdk/core/color-picker.js +1 -0
- package/dist/sdk/core/color.js +1 -0
- package/dist/sdk/core/combobox.js +1 -0
- package/dist/sdk/core/command.js +1 -0
- package/dist/sdk/core/date-input.js +1 -0
- package/dist/sdk/core/date-picker.js +1 -0
- package/dist/sdk/core/date.js +1 -0
- package/dist/sdk/core/dialog.js +1 -0
- package/dist/sdk/core/drawer.js +1 -0
- package/dist/sdk/core/field.js +1 -0
- package/dist/sdk/core/file-input.js +1 -0
- package/dist/sdk/core/gesture.js +1 -0
- package/dist/sdk/core/history.js +1 -0
- package/dist/sdk/core/hover-card.js +1 -0
- package/dist/sdk/core/image-cropper.js +1 -0
- package/dist/sdk/core/image.js +1 -0
- package/dist/sdk/core/input.js +1 -0
- package/dist/sdk/core/label.js +1 -0
- package/dist/sdk/core/listbox.js +1 -0
- package/dist/sdk/core/menu.js +1 -0
- package/dist/sdk/core/menubar.js +1 -0
- package/dist/sdk/core/meter.js +1 -0
- package/dist/sdk/core/navigation-menu.js +1 -0
- package/dist/sdk/core/number-input.js +1 -0
- package/dist/sdk/core/number.js +1 -0
- package/dist/sdk/core/observe.js +1 -0
- package/dist/sdk/core/otp-input.js +1 -0
- package/dist/sdk/core/overlays.js +1 -0
- package/dist/sdk/core/pagination.js +1 -0
- package/dist/sdk/core/password-input.js +1 -0
- package/dist/sdk/core/popover.js +1 -0
- package/dist/sdk/core/progress.js +1 -0
- package/dist/sdk/core/radio.js +1 -0
- package/dist/sdk/core/rating.js +1 -0
- package/dist/sdk/core/renderer.js +1 -0
- package/dist/sdk/core/resizable.js +1 -0
- package/dist/sdk/core/scroll-area.js +1 -0
- package/dist/sdk/core/segmented-control.js +1 -0
- package/dist/sdk/core/select.js +1 -0
- package/dist/sdk/core/separator.js +1 -0
- package/dist/sdk/core/shortcuts.js +1 -0
- package/dist/sdk/core/slider.js +1 -0
- package/dist/sdk/core/switch.js +1 -0
- package/dist/sdk/core/tabs.js +1 -0
- package/dist/sdk/core/testing.js +1 -0
- package/dist/sdk/core/text-match.js +1 -0
- package/dist/sdk/core/time-input.js +1 -0
- package/dist/sdk/core/timeline.js +1 -0
- package/dist/sdk/core/toast.js +1 -0
- package/dist/sdk/core/toggle.js +1 -0
- package/dist/sdk/core/token-input.js +1 -0
- package/dist/sdk/core/toolbar.js +1 -0
- package/dist/sdk/core/tooltip.js +1 -0
- package/dist/sdk/core/tree.js +1 -0
- package/dist/sdk/core/trigger-menu.js +1 -0
- package/dist/sdk/core/waterfall.js +1 -0
- package/dist/sdk/core.js +1 -0
- package/dist/sdk/date-input.js +1 -0
- package/dist/sdk/date-picker.js +1 -0
- package/dist/sdk/date.js +1 -0
- package/dist/sdk/dialog.js +1 -0
- package/dist/sdk/drawer.js +1 -0
- package/dist/sdk/field.js +1 -0
- package/dist/sdk/file-input.js +1 -0
- package/dist/sdk/gesture.js +1 -0
- package/dist/sdk/history.js +1 -0
- package/dist/sdk/hover-card.js +1 -0
- package/dist/sdk/image-cropper.js +1 -0
- package/dist/sdk/image.js +1 -0
- package/dist/sdk/input.js +1 -0
- package/dist/sdk/label.js +1 -0
- package/dist/sdk/listbox.js +1 -0
- package/dist/sdk/menu.js +1 -0
- package/dist/sdk/menubar.js +1 -0
- package/dist/sdk/meter.js +1 -0
- package/dist/sdk/navigation-menu.js +1 -0
- package/dist/sdk/number-input.js +1 -0
- package/dist/sdk/number.js +1 -0
- package/dist/sdk/observe.js +1 -0
- package/dist/sdk/otp-input.js +1 -0
- package/dist/sdk/overlays.js +1 -0
- package/dist/sdk/pagination.js +1 -0
- package/dist/sdk/password-input.js +1 -0
- package/dist/sdk/popover.js +1 -0
- package/dist/sdk/preferences.js +1 -0
- package/dist/sdk/primitive.js +1 -0
- package/dist/sdk/progress.js +1 -0
- package/dist/sdk/radio.js +1 -0
- package/dist/sdk/rating.js +1 -0
- package/dist/sdk/resizable.js +1 -0
- package/dist/sdk/scroll-area.js +1 -0
- package/dist/sdk/segmented-control.js +1 -0
- package/dist/sdk/select.js +1 -0
- package/dist/sdk/separator.js +1 -0
- package/dist/sdk/shortcuts.js +1 -0
- package/dist/sdk/slider.js +1 -0
- package/dist/sdk/switch.js +1 -0
- package/dist/sdk/tabs.js +1 -0
- package/dist/sdk/text-match.js +1 -0
- package/dist/sdk/textarea.js +1 -0
- package/dist/sdk/time-input.js +1 -0
- package/dist/sdk/timeline.js +1 -0
- package/dist/sdk/toast.js +1 -0
- package/dist/sdk/toggle.js +1 -0
- package/dist/sdk/token-input.js +1 -0
- package/dist/sdk/toolbar.js +1 -0
- package/dist/sdk/tooltip.js +1 -0
- package/dist/sdk/tree.js +1 -0
- package/dist/sdk/trigger-menu.js +1 -0
- package/dist/sdk/waterfall.js +1 -0
- package/dist/ui/bridge.js +1 -1
- package/dist/ui/code-block.js +2 -2
- package/dist/ui/drawer-dialog.js +411 -0
- package/dist/ui/farmer/div.js +4 -2
- package/dist/ui/index.d.ts +61 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/sonner.js +2 -2
- package/dist/ui/sortable.js +29 -64
- package/dist/ui/tabs.js +1 -1
- package/dist/ui/theme-switcher.js +3 -3
- package/dist/ui/theme-toggle.js +2 -2
- package/package.json +5 -4
- package/dist/chunk-G233W3IR.js +0 -17
- package/dist/chunk-JPOAXESG.js +0 -250
- package/dist/chunk-X56ZEDOW.js +0 -46
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useComposedRefs
|
|
4
|
+
} from "../chunk-UZGJXAFX.js";
|
|
5
|
+
import {
|
|
6
|
+
useMediaQuery
|
|
7
|
+
} from "../chunk-4ILCWFOE.js";
|
|
8
|
+
import {
|
|
9
|
+
Button
|
|
10
|
+
} from "../chunk-DVNTJNDP.js";
|
|
11
|
+
import "../chunk-YA5PSI7E.js";
|
|
12
|
+
import "../chunk-GL2CQ5TR.js";
|
|
13
|
+
|
|
14
|
+
// src/ui/drawer-dialog.tsx
|
|
15
|
+
import { Xmark } from "@gravity-ui/icons";
|
|
16
|
+
import {
|
|
17
|
+
Dialog,
|
|
18
|
+
DialogBackdrop,
|
|
19
|
+
DialogClose,
|
|
20
|
+
DialogContent,
|
|
21
|
+
DialogDescription,
|
|
22
|
+
DialogTitle,
|
|
23
|
+
DialogTrigger
|
|
24
|
+
} from "@ui-sdk/react/dialog";
|
|
25
|
+
import {
|
|
26
|
+
createDrawerController,
|
|
27
|
+
Drawer,
|
|
28
|
+
DrawerBackdrop,
|
|
29
|
+
DrawerClose,
|
|
30
|
+
DrawerContent,
|
|
31
|
+
DrawerDescription,
|
|
32
|
+
DrawerHandle,
|
|
33
|
+
DrawerTitle,
|
|
34
|
+
DrawerTrigger
|
|
35
|
+
} from "@ui-sdk/react/drawer";
|
|
36
|
+
import { cn } from "cn";
|
|
37
|
+
import * as React from "react";
|
|
38
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
var DrawerDialogContext = React.createContext(null);
|
|
40
|
+
var byDocumentOrder = (a, b) => a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
41
|
+
function useCarryFocus(kind, elements) {
|
|
42
|
+
const [renderedKind, setRenderedKind] = React.useState(kind);
|
|
43
|
+
const index = React.useRef(-1);
|
|
44
|
+
if (renderedKind !== kind) {
|
|
45
|
+
index.current = elements().sort(byDocumentOrder).indexOf(document.activeElement);
|
|
46
|
+
setRenderedKind(kind);
|
|
47
|
+
}
|
|
48
|
+
React.useLayoutEffect(() => {
|
|
49
|
+
if (index.current < 0) return;
|
|
50
|
+
elements().sort(byDocumentOrder)[index.current]?.focus({ preventScroll: true });
|
|
51
|
+
index.current = -1;
|
|
52
|
+
}, [kind, elements]);
|
|
53
|
+
}
|
|
54
|
+
function useDrawerDialog() {
|
|
55
|
+
const context = React.useContext(DrawerDialogContext);
|
|
56
|
+
if (!context) {
|
|
57
|
+
throw new Error("DrawerDialog parts must be used inside <DrawerDialog>.");
|
|
58
|
+
}
|
|
59
|
+
return context;
|
|
60
|
+
}
|
|
61
|
+
var dialogParts = {
|
|
62
|
+
Trigger: DialogTrigger,
|
|
63
|
+
Backdrop: DialogBackdrop,
|
|
64
|
+
Content: DialogContent,
|
|
65
|
+
Title: DialogTitle,
|
|
66
|
+
Description: DialogDescription,
|
|
67
|
+
Close: DialogClose
|
|
68
|
+
};
|
|
69
|
+
var parts = {
|
|
70
|
+
dialog: dialogParts,
|
|
71
|
+
drawer: {
|
|
72
|
+
Trigger: DrawerTrigger,
|
|
73
|
+
Backdrop: DrawerBackdrop,
|
|
74
|
+
Content: DrawerContent,
|
|
75
|
+
Title: DrawerTitle,
|
|
76
|
+
Description: DrawerDescription,
|
|
77
|
+
Close: DrawerClose
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var drawerOnly = /* @__PURE__ */ new Set([
|
|
81
|
+
"snapPoints",
|
|
82
|
+
"snapPoint",
|
|
83
|
+
"defaultSnapPoint",
|
|
84
|
+
"onSnapPointChange",
|
|
85
|
+
"modalAbove",
|
|
86
|
+
"driver",
|
|
87
|
+
"expandOnScroll",
|
|
88
|
+
"physics",
|
|
89
|
+
"themeColor",
|
|
90
|
+
"preventEdgeSwipe"
|
|
91
|
+
]);
|
|
92
|
+
function useLiveLayout(desktop = "dialog", side = "bottom") {
|
|
93
|
+
const { isDesktop } = useMediaQuery();
|
|
94
|
+
if (!isDesktop) return { kind: "drawer", side };
|
|
95
|
+
return desktop === "dialog" ? { kind: "dialog", side } : { kind: "drawer", side: desktop };
|
|
96
|
+
}
|
|
97
|
+
var controllerKinds = /* @__PURE__ */ new WeakMap();
|
|
98
|
+
function controllerEntry(controller) {
|
|
99
|
+
let entry = controllerKinds.get(controller);
|
|
100
|
+
if (!entry) {
|
|
101
|
+
entry = { listeners: /* @__PURE__ */ new Set() };
|
|
102
|
+
controllerKinds.set(controller, entry);
|
|
103
|
+
}
|
|
104
|
+
return entry;
|
|
105
|
+
}
|
|
106
|
+
function useControllerKind(controller) {
|
|
107
|
+
return React.useSyncExternalStore(
|
|
108
|
+
(listener) => {
|
|
109
|
+
if (!controller) return () => {
|
|
110
|
+
};
|
|
111
|
+
const { listeners } = controllerEntry(controller);
|
|
112
|
+
listeners.add(listener);
|
|
113
|
+
return () => listeners.delete(listener);
|
|
114
|
+
},
|
|
115
|
+
() => controller ? controllerKinds.get(controller)?.kind : void 0,
|
|
116
|
+
() => void 0
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
function DrawerDialog({
|
|
120
|
+
desktop = "dialog",
|
|
121
|
+
side = "bottom",
|
|
122
|
+
children,
|
|
123
|
+
open: openProp,
|
|
124
|
+
defaultOpen = false,
|
|
125
|
+
onOpenChange,
|
|
126
|
+
onPayloadChange,
|
|
127
|
+
...props
|
|
128
|
+
}) {
|
|
129
|
+
const { kind, side: resolvedSide } = useLiveLayout(desktop, side);
|
|
130
|
+
const [openState, setOpenState] = React.useState(defaultOpen);
|
|
131
|
+
const open = openProp ?? openState;
|
|
132
|
+
const payload = React.useRef(void 0);
|
|
133
|
+
const hasSnapPoints = (props.snapPoints?.length ?? 0) > 0;
|
|
134
|
+
const [titled, setTitled] = React.useState(false);
|
|
135
|
+
const { controller } = props;
|
|
136
|
+
const triggers = React.useRef(/* @__PURE__ */ new Set());
|
|
137
|
+
const registerTrigger = React.useCallback((element) => {
|
|
138
|
+
triggers.current.add(element);
|
|
139
|
+
return () => void triggers.current.delete(element);
|
|
140
|
+
}, []);
|
|
141
|
+
const triggerElements = React.useCallback(() => [...triggers.current], []);
|
|
142
|
+
useCarryFocus(kind, triggerElements);
|
|
143
|
+
React.useEffect(() => {
|
|
144
|
+
if (!controller) return;
|
|
145
|
+
const entry = controllerEntry(controller);
|
|
146
|
+
entry.kind = kind;
|
|
147
|
+
entry.listeners.forEach((listener) => listener());
|
|
148
|
+
}, [controller, kind]);
|
|
149
|
+
const mountedKind = React.useRef(kind);
|
|
150
|
+
React.useEffect(() => {
|
|
151
|
+
if (mountedKind.current === kind) return;
|
|
152
|
+
mountedKind.current = kind;
|
|
153
|
+
if (open && controller && payload.current !== void 0) {
|
|
154
|
+
void controller.open({ payload: payload.current });
|
|
155
|
+
}
|
|
156
|
+
}, [kind, open, controller]);
|
|
157
|
+
const context = React.useMemo(
|
|
158
|
+
() => ({
|
|
159
|
+
kind,
|
|
160
|
+
side: resolvedSide,
|
|
161
|
+
hasSnapPoints,
|
|
162
|
+
titled,
|
|
163
|
+
setTitled,
|
|
164
|
+
registerTrigger
|
|
165
|
+
}),
|
|
166
|
+
[kind, resolvedSide, hasSnapPoints, titled, registerTrigger]
|
|
167
|
+
);
|
|
168
|
+
const handlers = {
|
|
169
|
+
open,
|
|
170
|
+
onOpenChange: ((next, details) => {
|
|
171
|
+
onOpenChange?.(next, details);
|
|
172
|
+
if (!details.canceled) setOpenState(next);
|
|
173
|
+
}),
|
|
174
|
+
onPayloadChange: ((next, details) => {
|
|
175
|
+
onPayloadChange?.(next, details);
|
|
176
|
+
if (!details.canceled) payload.current = next;
|
|
177
|
+
})
|
|
178
|
+
};
|
|
179
|
+
let root;
|
|
180
|
+
if (kind === "dialog") {
|
|
181
|
+
const dialogProps = Object.fromEntries(
|
|
182
|
+
Object.entries(props).filter(
|
|
183
|
+
([key]) => !drawerOnly.has(key)
|
|
184
|
+
)
|
|
185
|
+
);
|
|
186
|
+
root = /* @__PURE__ */ jsx(Dialog, { ...dialogProps, ...handlers, children });
|
|
187
|
+
} else {
|
|
188
|
+
root = /* @__PURE__ */ jsx(Drawer, { ...props, ...handlers, side: resolvedSide, children });
|
|
189
|
+
}
|
|
190
|
+
return /* @__PURE__ */ jsx(DrawerDialogContext, { value: context, children: root });
|
|
191
|
+
}
|
|
192
|
+
function DrawerDialogTrigger({ desktop, ref, ...props }) {
|
|
193
|
+
const context = React.useContext(DrawerDialogContext);
|
|
194
|
+
const controllerKind = useControllerKind(props.controller);
|
|
195
|
+
const live = useLiveLayout(desktop);
|
|
196
|
+
const kind = context?.kind ?? controllerKind ?? live.kind;
|
|
197
|
+
const { Trigger } = parts[kind];
|
|
198
|
+
const element = React.useRef(null);
|
|
199
|
+
const registerTrigger = context?.registerTrigger;
|
|
200
|
+
React.useLayoutEffect(
|
|
201
|
+
() => element.current && registerTrigger ? registerTrigger(element.current) : void 0,
|
|
202
|
+
[registerTrigger, Trigger]
|
|
203
|
+
);
|
|
204
|
+
const ownElement = React.useCallback(
|
|
205
|
+
() => !registerTrigger && element.current ? [element.current] : [],
|
|
206
|
+
[registerTrigger]
|
|
207
|
+
);
|
|
208
|
+
useCarryFocus(kind, ownElement);
|
|
209
|
+
return /* @__PURE__ */ jsx(Trigger, { ...props, ref: useComposedRefs(ref, element) });
|
|
210
|
+
}
|
|
211
|
+
var dialogContentClass = "fixed inset-0 m-auto flex h-fit max-h-[calc(var(--visual-viewport-height,100dvh)-2rem)] w-full max-w-[calc(100%-2rem)] flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-popover-foreground ring-1 ring-foreground/10 outline-none backdrop:hidden sm:max-w-sm transition-[opacity,scale] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] data-starting-style:scale-95 data-starting-style:opacity-0 data-ending-style:scale-95 data-ending-style:opacity-0 data-ending-style:duration-150 motion-reduce:transition-none";
|
|
212
|
+
var drawerContentClass = cn(
|
|
213
|
+
"flex flex-col gap-4 border bg-card py-4 text-sm text-popover-foreground outline-none dark:border-border",
|
|
214
|
+
"data-[side=bottom]:mx-auto data-[side=bottom]:max-h-[calc(100dvh-6rem)] data-[side=bottom]:w-full data-[side=bottom]:rounded-t-4xl data-[side=bottom]:border-b-0 data-[side=bottom]:pb-[calc(--spacing(4)+var(--app-safe-bottom,0px))]",
|
|
215
|
+
"data-[side=top]:max-h-[calc(100dvh-6rem)] data-[side=top]:w-full data-[side=top]:rounded-b-4xl data-[side=top]:border-t-0",
|
|
216
|
+
"data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:rounded-r-4xl data-[side=left]:border-l-0 data-[side=left]:sm:w-96",
|
|
217
|
+
"data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:rounded-l-4xl data-[side=right]:border-r-0 data-[side=right]:sm:w-96",
|
|
218
|
+
"after:pointer-events-none after:absolute after:bg-card data-[side=bottom]:after:inset-x-0 data-[side=bottom]:after:top-full data-[side=bottom]:after:h-12 data-[side=left]:after:inset-y-0 data-[side=left]:after:right-full data-[side=left]:after:w-12 data-[side=right]:after:inset-y-0 data-[side=right]:after:left-full data-[side=right]:after:w-12 data-[side=top]:after:inset-x-0 data-[side=top]:after:bottom-full data-[side=top]:after:h-12",
|
|
219
|
+
"scale-[calc(1-var(--drawer-stack,0)*0.05)] transition-[scale,filter] duration-300 data-[side=bottom]:origin-top data-[side=top]:origin-bottom"
|
|
220
|
+
);
|
|
221
|
+
function DrawerDialogContent({
|
|
222
|
+
className,
|
|
223
|
+
children,
|
|
224
|
+
showCloseButton,
|
|
225
|
+
showHandle = true,
|
|
226
|
+
title,
|
|
227
|
+
backdropClassName,
|
|
228
|
+
...props
|
|
229
|
+
}) {
|
|
230
|
+
const { kind, side, hasSnapPoints, titled } = useDrawerDialog();
|
|
231
|
+
const { Backdrop, Content, Close, Title } = parts[kind];
|
|
232
|
+
const vertical = side === "bottom" || side === "top";
|
|
233
|
+
const closeButton = showCloseButton ?? kind === "dialog";
|
|
234
|
+
const handle = kind === "drawer" && vertical && showHandle ? hasSnapPoints ? /* @__PURE__ */ jsx(
|
|
235
|
+
DrawerHandle,
|
|
236
|
+
{
|
|
237
|
+
"aria-label": "Resize",
|
|
238
|
+
className: cn(
|
|
239
|
+
"mx-auto flex h-4 w-24 shrink-0 cursor-grab items-center justify-center rounded-full outline-none after:h-1 after:w-12 after:rounded-full after:bg-muted focus-visible:ring-2 focus-visible:ring-ring/50 active:cursor-grabbing",
|
|
240
|
+
side === "top" ? "order-last -mt-2" : "-mt-2 -mb-2"
|
|
241
|
+
)
|
|
242
|
+
}
|
|
243
|
+
) : /* @__PURE__ */ jsx(
|
|
244
|
+
"div",
|
|
245
|
+
{
|
|
246
|
+
"aria-hidden": true,
|
|
247
|
+
"data-slot": "drawer-dialog-grip",
|
|
248
|
+
className: cn(
|
|
249
|
+
"mx-auto h-1 w-12 shrink-0 rounded-full bg-muted",
|
|
250
|
+
side === "top" ? "order-last" : "-mb-1"
|
|
251
|
+
)
|
|
252
|
+
}
|
|
253
|
+
) : null;
|
|
254
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
255
|
+
/* @__PURE__ */ jsx(
|
|
256
|
+
Backdrop,
|
|
257
|
+
{
|
|
258
|
+
"data-kind": kind,
|
|
259
|
+
className: cn(
|
|
260
|
+
"fixed inset-0 z-50 bg-black/20 supports-backdrop-filter:backdrop-blur-xs",
|
|
261
|
+
kind === "dialog" && "transition-opacity duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0 motion-reduce:transition-none",
|
|
262
|
+
backdropClassName
|
|
263
|
+
)
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
/* @__PURE__ */ jsx(
|
|
267
|
+
Content,
|
|
268
|
+
{
|
|
269
|
+
"data-kind": kind,
|
|
270
|
+
className: cn(
|
|
271
|
+
kind === "dialog" ? dialogContentClass : drawerContentClass,
|
|
272
|
+
className
|
|
273
|
+
),
|
|
274
|
+
...props,
|
|
275
|
+
children: (state) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
276
|
+
handle,
|
|
277
|
+
!titled && title ? /* @__PURE__ */ jsx(Title, { className: "sr-only", children: title }) : null,
|
|
278
|
+
typeof children === "function" ? children(state) : children,
|
|
279
|
+
closeButton && /* @__PURE__ */ jsx(
|
|
280
|
+
Close,
|
|
281
|
+
{
|
|
282
|
+
"aria-label": "Close",
|
|
283
|
+
render: /* @__PURE__ */ jsx(
|
|
284
|
+
Button,
|
|
285
|
+
{
|
|
286
|
+
variant: "ghost",
|
|
287
|
+
size: "icon-sm",
|
|
288
|
+
className: "absolute top-3 right-3"
|
|
289
|
+
}
|
|
290
|
+
),
|
|
291
|
+
children: /* @__PURE__ */ jsx(Xmark, { "aria-hidden": "true" })
|
|
292
|
+
}
|
|
293
|
+
)
|
|
294
|
+
] })
|
|
295
|
+
}
|
|
296
|
+
)
|
|
297
|
+
] });
|
|
298
|
+
}
|
|
299
|
+
function DrawerDialogHeader({
|
|
300
|
+
className,
|
|
301
|
+
...props
|
|
302
|
+
}) {
|
|
303
|
+
const { kind, side } = useDrawerDialog();
|
|
304
|
+
return /* @__PURE__ */ jsx(
|
|
305
|
+
"div",
|
|
306
|
+
{
|
|
307
|
+
"data-slot": "drawer-dialog-header",
|
|
308
|
+
className: cn(
|
|
309
|
+
"flex shrink-0 flex-col gap-1.5 px-4 text-left",
|
|
310
|
+
kind === "drawer" && (side === "bottom" || side === "top") && "text-center md:text-left",
|
|
311
|
+
className
|
|
312
|
+
),
|
|
313
|
+
...props
|
|
314
|
+
}
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
function DrawerDialogBody({
|
|
318
|
+
className,
|
|
319
|
+
...props
|
|
320
|
+
}) {
|
|
321
|
+
return /* @__PURE__ */ jsx(
|
|
322
|
+
"div",
|
|
323
|
+
{
|
|
324
|
+
"data-slot": "drawer-dialog-body",
|
|
325
|
+
className: cn(
|
|
326
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-contain px-4",
|
|
327
|
+
className
|
|
328
|
+
),
|
|
329
|
+
...props
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
function DrawerDialogFooter({
|
|
334
|
+
className,
|
|
335
|
+
...props
|
|
336
|
+
}) {
|
|
337
|
+
const { kind } = useDrawerDialog();
|
|
338
|
+
return /* @__PURE__ */ jsx(
|
|
339
|
+
"div",
|
|
340
|
+
{
|
|
341
|
+
"data-slot": "drawer-dialog-footer",
|
|
342
|
+
className: cn(
|
|
343
|
+
"flex shrink-0 gap-2 px-4",
|
|
344
|
+
kind === "dialog" ? "flex-col-reverse sm:flex-row sm:justify-end" : "mt-auto flex-col",
|
|
345
|
+
className
|
|
346
|
+
),
|
|
347
|
+
...props
|
|
348
|
+
}
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
function DrawerDialogTitle({ className, ...props }) {
|
|
352
|
+
const { kind, setTitled } = useDrawerDialog();
|
|
353
|
+
const { Title } = parts[kind];
|
|
354
|
+
React.useLayoutEffect(() => {
|
|
355
|
+
setTitled(true);
|
|
356
|
+
return () => setTitled(false);
|
|
357
|
+
}, [setTitled]);
|
|
358
|
+
return /* @__PURE__ */ jsx(
|
|
359
|
+
Title,
|
|
360
|
+
{
|
|
361
|
+
className: cn(
|
|
362
|
+
"font-heading text-base leading-none font-medium text-foreground",
|
|
363
|
+
className
|
|
364
|
+
),
|
|
365
|
+
...props
|
|
366
|
+
}
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
function DrawerDialogDescription({ className, ...props }) {
|
|
370
|
+
const { Description } = parts[useDrawerDialog().kind];
|
|
371
|
+
return /* @__PURE__ */ jsx(
|
|
372
|
+
Description,
|
|
373
|
+
{
|
|
374
|
+
className: cn(
|
|
375
|
+
"text-sm text-balance text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
|
|
376
|
+
className
|
|
377
|
+
),
|
|
378
|
+
...props
|
|
379
|
+
}
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
function DrawerDialogClose(props) {
|
|
383
|
+
const { Close } = parts[useDrawerDialog().kind];
|
|
384
|
+
return /* @__PURE__ */ jsx(Close, { ...props });
|
|
385
|
+
}
|
|
386
|
+
function createDrawerDialogController() {
|
|
387
|
+
return createDrawerController();
|
|
388
|
+
}
|
|
389
|
+
var DrawerDialogRoot = Object.assign(DrawerDialog, {
|
|
390
|
+
Trigger: DrawerDialogTrigger,
|
|
391
|
+
Content: DrawerDialogContent,
|
|
392
|
+
Header: DrawerDialogHeader,
|
|
393
|
+
Body: DrawerDialogBody,
|
|
394
|
+
Footer: DrawerDialogFooter,
|
|
395
|
+
Title: DrawerDialogTitle,
|
|
396
|
+
Description: DrawerDialogDescription,
|
|
397
|
+
Close: DrawerDialogClose
|
|
398
|
+
});
|
|
399
|
+
export {
|
|
400
|
+
DrawerDialogRoot as DrawerDialog,
|
|
401
|
+
DrawerDialogBody,
|
|
402
|
+
DrawerDialogClose,
|
|
403
|
+
DrawerDialogContent,
|
|
404
|
+
DrawerDialogDescription,
|
|
405
|
+
DrawerDialogFooter,
|
|
406
|
+
DrawerDialogHeader,
|
|
407
|
+
DrawerDialogTitle,
|
|
408
|
+
DrawerDialogTrigger,
|
|
409
|
+
createDrawerDialogController,
|
|
410
|
+
useDrawerDialog
|
|
411
|
+
};
|
package/dist/ui/farmer/div.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useMediaQuery
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-4ILCWFOE.js";
|
|
5
|
+
import "../../chunk-YA5PSI7E.js";
|
|
6
|
+
import "../../chunk-GL2CQ5TR.js";
|
|
5
7
|
|
|
6
8
|
// src/ui/farmer/div.tsx
|
|
7
9
|
import { motion } from "motion/react";
|
|
@@ -9,7 +11,7 @@ import React from "react";
|
|
|
9
11
|
import { jsx } from "react/jsx-runtime";
|
|
10
12
|
var AnimatedDiv = React.forwardRef(
|
|
11
13
|
({ variants, mobileVariants, className, children, infinity, ...motionProps }, ref) => {
|
|
12
|
-
const isDesktop = useMediaQuery(
|
|
14
|
+
const { isDesktop } = useMediaQuery();
|
|
13
15
|
const selectedVariants = !isDesktop && mobileVariants ? mobileVariants : variants;
|
|
14
16
|
return /* @__PURE__ */ jsx(
|
|
15
17
|
motion.div,
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
|
24
24
|
export { C as CellState, b as DataGrid, D as DataGridApi, c as DataGridCell, d as DataGridClipboard, e as DataGridColumn, e as DataGridColumnDef, f as DataGridFillHandle, g as DataGridMove, h as DataGridRow, i as DataTableColumn, j as DataTableColumnDef, k as DataTableColumnResize, l as DataTableRoot, m as DataTableRootProps, G as GridAsyncComboboxCell, n as GridAsyncComboboxCellProps, o as GridComboboxCell, p as GridComboboxOption, q as GridNumberCell, r as GridTextCell, U as UseDataGridOptions } from '../data-grid-BIjaNW_l.js';
|
|
25
25
|
import { LucideIcon } from 'lucide-react';
|
|
26
26
|
import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
|
|
27
|
+
import { DialogTrigger as DialogTrigger$1, DialogContent as DialogContent$1, DialogContentState, DialogTitle as DialogTitle$1, DialogDescription as DialogDescription$1, DialogClose as DialogClose$1, DialogController } from '@ui-sdk/react/dialog';
|
|
28
|
+
import { DrawerProps, DrawerSide, DrawerController } from '@ui-sdk/react/drawer';
|
|
27
29
|
import { Menu } from '@base-ui/react/menu';
|
|
28
30
|
import { motion, MotionProps, Variants } from 'motion/react';
|
|
29
31
|
import { ImageProps as ImageProps$1 } from 'next/image';
|
|
@@ -392,6 +394,64 @@ declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<"d
|
|
|
392
394
|
declare function DrawerTitle({ className, ...props }: Drawer$1.Title.Props): React$1.JSX.Element;
|
|
393
395
|
declare function DrawerDescription({ className, ...props }: Drawer$1.Description.Props): React$1.JSX.Element;
|
|
394
396
|
|
|
397
|
+
type Kind = "dialog" | "drawer";
|
|
398
|
+
type DrawerDialogContextValue = {
|
|
399
|
+
kind: Kind;
|
|
400
|
+
side: DrawerSide;
|
|
401
|
+
hasSnapPoints: boolean;
|
|
402
|
+
titled: boolean;
|
|
403
|
+
setTitled: (titled: boolean) => void;
|
|
404
|
+
registerTrigger: (element: HTMLElement) => () => void;
|
|
405
|
+
};
|
|
406
|
+
declare function useDrawerDialog(): DrawerDialogContextValue;
|
|
407
|
+
type DrawerDialogProps = Omit<DrawerProps, "side"> & {
|
|
408
|
+
/** How it presents on desktop: a centered dialog, or a drawer from that edge. */
|
|
409
|
+
desktop?: "dialog" | DrawerSide;
|
|
410
|
+
/** The edge the drawer comes from on mobile. */
|
|
411
|
+
side?: DrawerSide;
|
|
412
|
+
};
|
|
413
|
+
declare function DrawerDialog({ desktop, side, children, open: openProp, defaultOpen, onOpenChange, onPayloadChange, ...props }: DrawerDialogProps): React$1.JSX.Element;
|
|
414
|
+
type TriggerProps = React$1.ComponentProps<typeof DialogTrigger$1> & {
|
|
415
|
+
/** Outside `DrawerDialog`, before its root has mounted: match the root's `desktop`. */
|
|
416
|
+
desktop?: DrawerDialogProps["desktop"];
|
|
417
|
+
};
|
|
418
|
+
declare function DrawerDialogTrigger({ desktop, ref, ...props }: TriggerProps): React$1.JSX.Element;
|
|
419
|
+
type ContentProps = Omit<React$1.ComponentProps<typeof DialogContent$1>, "children" | "className"> & {
|
|
420
|
+
className?: string;
|
|
421
|
+
children?: React$1.ReactNode | ((state: DialogContentState<unknown>) => React$1.ReactNode);
|
|
422
|
+
/** Shows an icon button in the corner. On by default for the dialog, off for the drawer. */
|
|
423
|
+
showCloseButton?: boolean;
|
|
424
|
+
/** Shows the drag handle on a top or bottom drawer. On by default. */
|
|
425
|
+
showHandle?: boolean;
|
|
426
|
+
/** Names it for screen readers when there's no `Title`. */
|
|
427
|
+
title?: string;
|
|
428
|
+
backdropClassName?: string;
|
|
429
|
+
};
|
|
430
|
+
declare function DrawerDialogContent({ className, children, showCloseButton, showHandle, title, backdropClassName, ...props }: ContentProps): React$1.JSX.Element;
|
|
431
|
+
declare function DrawerDialogHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
432
|
+
declare function DrawerDialogBody({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
433
|
+
declare function DrawerDialogFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
434
|
+
type TitleProps = React$1.ComponentProps<typeof DialogTitle$1>;
|
|
435
|
+
declare function DrawerDialogTitle({ className, ...props }: TitleProps): React$1.JSX.Element;
|
|
436
|
+
type DescriptionProps = React$1.ComponentProps<typeof DialogDescription$1>;
|
|
437
|
+
declare function DrawerDialogDescription({ className, ...props }: DescriptionProps): React$1.JSX.Element;
|
|
438
|
+
type CloseProps = React$1.ComponentProps<typeof DialogClose$1>;
|
|
439
|
+
declare function DrawerDialogClose(props: CloseProps): React$1.JSX.Element;
|
|
440
|
+
/** Works for both modes: a drawer controller also drives the dialog. */
|
|
441
|
+
declare function createDrawerDialogController<Payload = unknown, Result = string>(): DrawerController<Payload, Result>;
|
|
442
|
+
type DrawerDialogController<Payload = unknown, Result = string> = DrawerController<Payload, Result> & DialogController<Payload, Result>;
|
|
443
|
+
/** Use the named parts anywhere; `DrawerDialog.Title` and friends work in client components only. */
|
|
444
|
+
declare const DrawerDialogRoot: typeof DrawerDialog & {
|
|
445
|
+
Trigger: typeof DrawerDialogTrigger;
|
|
446
|
+
Content: typeof DrawerDialogContent;
|
|
447
|
+
Header: typeof DrawerDialogHeader;
|
|
448
|
+
Body: typeof DrawerDialogBody;
|
|
449
|
+
Footer: typeof DrawerDialogFooter;
|
|
450
|
+
Title: typeof DrawerDialogTitle;
|
|
451
|
+
Description: typeof DrawerDialogDescription;
|
|
452
|
+
Close: typeof DrawerDialogClose;
|
|
453
|
+
};
|
|
454
|
+
|
|
395
455
|
declare function DropdownMenu({ ...props }: Menu.Root.Props): React$1.JSX.Element;
|
|
396
456
|
declare function DropdownMenuPortal({ ...props }: Menu.Portal.Props): React$1.JSX.Element;
|
|
397
457
|
declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): React$1.JSX.Element;
|
|
@@ -1077,4 +1137,4 @@ declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React$1.JSX.Elemen
|
|
|
1077
1137
|
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React$1.JSX.Element;
|
|
1078
1138
|
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
|
|
1079
1139
|
|
|
1080
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedDiv, type AnimatedTAGProps, Apple, AppleHelloEffectEnglish, AppleHelloEffectHindi, AppleHelloEffectSpanish, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlogCardAnimation, Bottom, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeBlock, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CustomRendererProps, DEFAULT_I18N, DEFAULT_OPERATORS, DashedSeparator, DataTable, DataTableBody, DataTableCell, DataTableEmptyBody, DataTableHeader, DataTablePagination, DataTableRow, DataTableSearchFilter, DataTableSkeleton, DataTableToolbarSection, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EASE_DRAWER, EASE_IN_OUT, EASE_OUT, EASE_OUT_CSS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FadeContainer, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type Filter, type FilterFieldConfig, type FilterFieldGroup, type FilterFieldsConfig, type FilterGroup, type FilterI18nConfig, type FilterOperator, type FilterOption, type FilterOptionListRenderProps, Filters, FiltersContent, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JellyAction, JellyBlob, JellyEmpty, type JellyEmptyProps, JellyGroup, JellyLink, JellyMascot, type JellyMascotConfig, JellyMini, type JellySize, Kbd, KbdGroup, Label, ListItemVariant, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeAppBridge, NumberStepper, OTPInput, type OTPInputProps, type OTPStatus, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, QuantityInput, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RollingNumber, SPRING_LAYOUT, SPRING_MOUSE, SPRING_PANEL, SPRING_PRESS, SPRING_SWAP, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShimmerSkeleton, type SkeletonProps as ShimmerSkeletonProps, Skeleton, SkeletonAvatar, SkeletonButton, type SkeletonProps, type SkeletonRounded, SkeletonText, type SkeletonVariant, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type SortableProps, SwipeAction, SwipeActions, SwipeContent, SwipeItem, SwipeRoot, type SwipeSide, type SwipeState, Switch, Tabs, TabsIcon, TabsList, TabsPanel, TabsTab, Textarea, ThemeSwitcher, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Top, activityItemAnimation, badgeVariants, buttonGroupVariants, buttonVariants, createFilter, createFilterGroup, fromLeftChildren, fromLeftVariant, fromRightVariant, fromTopVariant, getSkeletonVariantDuration, hamFastFadeContainer, headingFromLeft, kanbanOrderCardAnimation, kanbanOrderCardLayoutTransition, kanbanOrderCardReducedMotionAnimation, mobileNavItemSideways, opacityVariant, popUp, popUpFromBottomForText, resolveSkeletonA11yProps, searchBarSlideAnimation, skeletonRoundedClasses, skeletonVariantDefaultDuration, svgVariant, tabsVariants, useAutocompleteFilter, useCarousel, useComboboxAnchor, useJellyMood };
|
|
1140
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedDiv, type AnimatedTAGProps, Apple, AppleHelloEffectEnglish, AppleHelloEffectHindi, AppleHelloEffectSpanish, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompletePopup, AutocompleteRow, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BlogCardAnimation, Bottom, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeBlock, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type CustomRendererProps, DEFAULT_I18N, DEFAULT_OPERATORS, DashedSeparator, DataTable, DataTableBody, DataTableCell, DataTableEmptyBody, DataTableHeader, DataTablePagination, DataTableRow, DataTableSearchFilter, DataTableSkeleton, DataTableToolbarSection, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerDialogRoot as DrawerDialog, DrawerDialogBody, DrawerDialogClose, DrawerDialogContent, type DrawerDialogController, DrawerDialogDescription, DrawerDialogFooter, DrawerDialogHeader, type DrawerDialogProps, DrawerDialogTitle, DrawerDialogTrigger, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EASE_DRAWER, EASE_IN_OUT, EASE_OUT, EASE_OUT_CSS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FadeContainer, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type Filter, type FilterFieldConfig, type FilterFieldGroup, type FilterFieldsConfig, type FilterGroup, type FilterI18nConfig, type FilterOperator, type FilterOption, type FilterOptionListRenderProps, Filters, FiltersContent, Image, type ImageProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JellyAction, JellyBlob, JellyEmpty, type JellyEmptyProps, JellyGroup, JellyLink, JellyMascot, type JellyMascotConfig, JellyMini, type JellySize, Kbd, KbdGroup, Label, ListItemVariant, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NativeAppBridge, NumberStepper, OTPInput, type OTPInputProps, type OTPStatus, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, QuantityInput, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RollingNumber, SPRING_LAYOUT, SPRING_MOUSE, SPRING_PANEL, SPRING_PRESS, SPRING_SWAP, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShimmerSkeleton, type SkeletonProps as ShimmerSkeletonProps, Skeleton, SkeletonAvatar, SkeletonButton, type SkeletonProps, type SkeletonRounded, SkeletonText, type SkeletonVariant, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type SortableProps, SwipeAction, SwipeActions, SwipeContent, SwipeItem, SwipeRoot, type SwipeSide, type SwipeState, Switch, Tabs, TabsIcon, TabsList, TabsPanel, TabsTab, Textarea, ThemeSwitcher, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Top, activityItemAnimation, badgeVariants, buttonGroupVariants, buttonVariants, createDrawerDialogController, createFilter, createFilterGroup, fromLeftChildren, fromLeftVariant, fromRightVariant, fromTopVariant, getSkeletonVariantDuration, hamFastFadeContainer, headingFromLeft, kanbanOrderCardAnimation, kanbanOrderCardLayoutTransition, kanbanOrderCardReducedMotionAnimation, mobileNavItemSideways, opacityVariant, popUp, popUpFromBottomForText, resolveSkeletonA11yProps, searchBarSlideAnimation, skeletonRoundedClasses, skeletonVariantDefaultDuration, svgVariant, tabsVariants, useAutocompleteFilter, useCarousel, useComboboxAnchor, useDrawerDialog, useJellyMood };
|
package/dist/ui/index.js
CHANGED
|
@@ -21,6 +21,7 @@ export { DataGrid, DataGridCell, DataGridClipboard, DataGridColumn, DataGridFill
|
|
|
21
21
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./dialog.js"
|
|
22
22
|
export { Dock } from "./dock.js"
|
|
23
23
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger } from "./drawer.js"
|
|
24
|
+
export { DrawerDialog, DrawerDialogBody, DrawerDialogClose, DrawerDialogContent, DrawerDialogDescription, DrawerDialogFooter, DrawerDialogHeader, DrawerDialogTitle, DrawerDialogTrigger, createDrawerDialogController, useDrawerDialog } from "./drawer-dialog.js"
|
|
24
25
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./dropdown-menu.js"
|
|
25
26
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "./empty.js"
|
|
26
27
|
|
package/dist/ui/sonner.js
CHANGED