rockin 0.0.34 → 0.0.36
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-3CZ2LLUN.js +198 -0
- package/dist/{chunk-7ZCRGTLA.js → chunk-54ZJAEO5.js} +5 -5
- package/dist/chunk-5GM3YR42.js +228 -0
- package/dist/chunk-6XUTSMTJ.js +183 -0
- package/dist/chunk-7JJBATB2.js +35 -0
- package/dist/chunk-BITCJZQZ.js +31 -0
- package/dist/chunk-COPQJFDI.js +158 -0
- package/dist/chunk-D6TULSM6.js +785 -0
- package/dist/chunk-DVNTJNDP.js +55 -0
- package/dist/chunk-EKDBYSMI.js +87 -0
- package/dist/chunk-FGWWRPMR.js +71 -0
- package/dist/chunk-G233W3IR.js +17 -0
- package/dist/chunk-G4NDAZTB.js +13 -0
- package/dist/chunk-GY2BX5SK.js +26 -0
- package/dist/chunk-MZBLIA6C.js +20 -0
- package/dist/chunk-OSVLAX37.js +101 -0
- package/dist/chunk-PRGKTXJU.js +20 -0
- package/dist/chunk-RUKQ532H.js +253 -0
- package/dist/chunk-S4H2HENE.js +113 -0
- package/dist/chunk-UHZTEDHK.js +61 -0
- package/dist/chunk-VFDNWPOI.js +293 -0
- package/dist/chunk-W4EIJWHF.js +150 -0
- package/dist/hooks/index.js +18 -9
- package/dist/index.js +4 -4
- package/dist/provider.js +3 -3
- package/dist/styles.css +2 -2
- package/dist/ui/accordion.js +95 -0
- package/dist/ui/alert-dialog.js +178 -0
- package/dist/ui/apple/english.js +7 -0
- package/dist/ui/apple/hindi.js +7 -0
- package/dist/ui/apple/index.js +52 -0
- package/dist/ui/apple/spanish.js +7 -0
- package/dist/ui/ariakit.js +7 -0
- package/dist/ui/autocomplete.js +296 -0
- package/dist/ui/avatar.js +106 -0
- package/dist/ui/badge.js +50 -0
- package/dist/ui/bridge.js +109 -0
- package/dist/ui/bubble.js +118 -0
- package/dist/ui/button-group.js +14 -0
- package/dist/ui/button.js +9 -0
- package/dist/ui/card.js +102 -0
- package/dist/ui/carousel.js +205 -0
- package/dist/ui/chart.js +253 -0
- package/dist/ui/checkbox.js +34 -0
- package/dist/ui/code-block.js +128 -0
- package/dist/ui/combobox.js +41 -0
- package/dist/ui/command.js +199 -0
- package/dist/ui/dashed.js +57 -0
- package/dist/ui/data-table/index.js +233 -0
- package/dist/ui/dialog.js +26 -0
- package/dist/ui/dock.js +86 -0
- package/dist/ui/drawer.js +216 -0
- package/dist/ui/dropdown-menu.js +35 -0
- package/dist/ui/empty.js +17 -0
- package/dist/ui/farmer/div.js +38 -0
- package/dist/ui/farmer/variants.js +314 -0
- package/dist/ui/field.js +224 -0
- package/dist/ui/filters.js +1524 -0
- package/dist/ui/image.js +88 -0
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +57 -8502
- package/dist/ui/input-group.js +20 -0
- package/dist/ui/input-otp.js +83 -0
- package/dist/ui/input.js +7 -0
- package/dist/ui/item.js +200 -0
- package/dist/ui/jelly.js +30 -0
- package/dist/ui/kbd.js +9 -0
- package/dist/ui/label.js +7 -0
- package/dist/ui/message-scroller.js +122 -0
- package/dist/ui/message.js +93 -0
- package/dist/ui/numberstepper.js +416 -0
- package/dist/ui/otp.js +403 -0
- package/dist/ui/popover.js +83 -0
- package/dist/ui/qr-code.js +124 -0
- package/dist/ui/quantity.js +48 -0
- package/dist/ui/radio-group.js +42 -0
- package/dist/ui/resizable.js +52 -0
- package/dist/ui/scroll-area.js +9 -0
- package/dist/ui/select.js +194 -0
- package/dist/ui/separator.js +7 -0
- package/dist/ui/skeleton.js +25 -0
- package/dist/ui/sonner.js +22 -0
- package/dist/ui/sortable.js +503 -0
- package/dist/ui/swipe-actions.js +45 -0
- package/dist/ui/switch.js +34 -0
- package/dist/ui/textarea.js +7 -0
- package/dist/ui/theme-toggle.js +141 -0
- package/dist/ui/tooltip.js +13 -0
- package/package.json +1 -1
- package/dist/chunk-4KFB6AJH.js +0 -1330
- /package/dist/{chunk-FYFBWCMJ.js → chunk-GBVAFFZR.js} +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/ui/drawer.tsx
|
|
4
|
+
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { cn } from "cn";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
var DrawerContext = React.createContext(null);
|
|
9
|
+
function useDrawer() {
|
|
10
|
+
const context = React.useContext(DrawerContext);
|
|
11
|
+
if (!context) {
|
|
12
|
+
throw new Error("useDrawer must be used within a Drawer.");
|
|
13
|
+
}
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
function Drawer({
|
|
17
|
+
modal = true,
|
|
18
|
+
showSwipeHandle,
|
|
19
|
+
snapPoints,
|
|
20
|
+
swipeDirection = "down",
|
|
21
|
+
...props
|
|
22
|
+
}) {
|
|
23
|
+
const hasSnapPoints = snapPoints != null && snapPoints.length > 0;
|
|
24
|
+
const resolvedShowSwipeHandle = showSwipeHandle ?? (swipeDirection === "down" || swipeDirection === "up");
|
|
25
|
+
const contextValue = React.useMemo(
|
|
26
|
+
() => ({
|
|
27
|
+
hasSnapPoints,
|
|
28
|
+
modal,
|
|
29
|
+
showSwipeHandle: resolvedShowSwipeHandle,
|
|
30
|
+
swipeDirection
|
|
31
|
+
}),
|
|
32
|
+
[hasSnapPoints, modal, resolvedShowSwipeHandle, swipeDirection]
|
|
33
|
+
);
|
|
34
|
+
return /* @__PURE__ */ jsx(DrawerContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
35
|
+
DrawerPrimitive.Root,
|
|
36
|
+
{
|
|
37
|
+
"data-slot": "drawer",
|
|
38
|
+
modal,
|
|
39
|
+
snapPoints,
|
|
40
|
+
swipeDirection,
|
|
41
|
+
...props
|
|
42
|
+
}
|
|
43
|
+
) });
|
|
44
|
+
}
|
|
45
|
+
function DrawerTrigger({ ...props }) {
|
|
46
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
|
|
47
|
+
}
|
|
48
|
+
function DrawerPortal({ ...props }) {
|
|
49
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", ...props });
|
|
50
|
+
}
|
|
51
|
+
function DrawerClose({ ...props }) {
|
|
52
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Close, { "data-slot": "drawer-close", ...props });
|
|
53
|
+
}
|
|
54
|
+
function DrawerOverlay({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}) {
|
|
58
|
+
return /* @__PURE__ */ jsx(
|
|
59
|
+
DrawerPrimitive.Backdrop,
|
|
60
|
+
{
|
|
61
|
+
"data-slot": "drawer-overlay",
|
|
62
|
+
className: cn(
|
|
63
|
+
"ease-out-fluid fixed inset-0 z-50 min-h-dvh bg-black/10 opacity-[max(var(--drawer-overlay-min-opacity,0),calc(1-var(--drawer-swipe-progress)))] transition-opacity duration-450 select-none data-ending-style:pointer-events-none data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-snap-points:[--drawer-overlay-min-opacity:0.5] data-starting-style:opacity-0 data-swiping:duration-0 supports-backdrop-filter:backdrop-blur-xs supports-[-webkit-touch-callout:none]:absolute",
|
|
64
|
+
className
|
|
65
|
+
),
|
|
66
|
+
...props
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function DrawerSwipeHandle({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}) {
|
|
74
|
+
return /* @__PURE__ */ jsx(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "drawer-swipe-handle",
|
|
78
|
+
"aria-hidden": "true",
|
|
79
|
+
className: cn(
|
|
80
|
+
"flex shrink-0 cursor-grab transition-opacity duration-200 group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-[swipe-axis=x]/drawer-popup:h-full group-data-[swipe-axis=x]/drawer-popup:w-3 group-data-[swipe-axis=x]/drawer-popup:items-center group-data-[swipe-axis=y]/drawer-popup:h-3 group-data-[swipe-axis=y]/drawer-popup:w-full group-data-[swipe-axis=y]/drawer-popup:justify-center group-data-[swipe-direction=down]/drawer-popup:items-end group-data-[swipe-direction=left]/drawer-popup:order-last group-data-[swipe-direction=left]/drawer-popup:justify-start group-data-[swipe-direction=right]/drawer-popup:justify-end group-data-[swipe-direction=up]/drawer-popup:order-last group-data-[swipe-direction=up]/drawer-popup:items-start after:block after:shrink-0 after:rounded-full after:bg-muted group-data-[swipe-axis=x]/drawer-popup:after:h-24 group-data-[swipe-axis=x]/drawer-popup:after:w-1 group-data-[swipe-axis=y]/drawer-popup:after:h-1 group-data-[swipe-axis=y]/drawer-popup:after:w-20 active:cursor-grabbing",
|
|
81
|
+
className
|
|
82
|
+
),
|
|
83
|
+
...props
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
function DrawerContent({
|
|
88
|
+
className,
|
|
89
|
+
children,
|
|
90
|
+
...props
|
|
91
|
+
}) {
|
|
92
|
+
const { hasSnapPoints, modal, showSwipeHandle, swipeDirection } = useDrawer();
|
|
93
|
+
const swipeAxis = swipeDirection === "down" || swipeDirection === "up" ? "y" : "x";
|
|
94
|
+
return /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
95
|
+
modal === true && /* @__PURE__ */ jsx(DrawerOverlay, { "data-snap-points": hasSnapPoints ? "" : void 0 }),
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
DrawerPrimitive.Viewport,
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "drawer-viewport",
|
|
100
|
+
"data-modal": modal,
|
|
101
|
+
className: "pointer-events-none fixed inset-0 z-50 select-none data-[modal=true]:pointer-events-auto",
|
|
102
|
+
children: /* @__PURE__ */ jsxs(
|
|
103
|
+
DrawerPrimitive.Popup,
|
|
104
|
+
{
|
|
105
|
+
"data-slot": "drawer-popup",
|
|
106
|
+
"data-swipe-axis": swipeAxis,
|
|
107
|
+
"data-snap-points": hasSnapPoints ? "" : void 0,
|
|
108
|
+
className: cn(
|
|
109
|
+
// Base.
|
|
110
|
+
"group/drawer-popup pointer-events-auto fixed z-50 m-(--drawer-inset,0px) flex h-(--drawer-content-height) max-h-(--drawer-content-max-height,none) min-h-0 w-(--drawer-content-width,auto) transform-[translate3d(var(--translate-x,0px),var(--translate-y,0px),0)_scale(var(--stack-scale))] flex-col rounded-4xl border bg-card text-sm text-popover-foreground transition-[transform,height,opacity,filter] duration-450 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none [--drawer-bleed-background:transparent] [--drawer-inset:--spacing(2)] [interpolate-size:allow-keywords] max-md:pb-(--app-safe-bottom) md:pb-0 dark:border-border",
|
|
111
|
+
// Nested.
|
|
112
|
+
"data-nested-drawer-open:overflow-hidden data-nested-drawer-open:brightness-95",
|
|
113
|
+
// Bleed.
|
|
114
|
+
"after:pointer-events-none after:absolute after:bg-(--drawer-bleed-background,var(--color-popover)) data-[swipe-axis=x]:after:inset-y-0 data-[swipe-axis=x]:after:w-(--bleed) data-[swipe-axis=y]:after:inset-x-0 data-[swipe-axis=y]:after:h-(--bleed) data-[swipe-direction=down]:after:top-full data-[swipe-direction=left]:after:right-full data-[swipe-direction=right]:after:left-full data-[swipe-direction=up]:after:bottom-full",
|
|
115
|
+
// Sizing.
|
|
116
|
+
"[--drawer-content-height:var(--drawer-height,auto)] data-[swipe-axis=x]:[--drawer-content-width:75%] data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-6rem)] data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh] data-[swipe-axis=x]:sm:[--drawer-content-width:24rem]",
|
|
117
|
+
// Stack.
|
|
118
|
+
"[--bleed:3rem] [--peek:1rem] [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:max(0,calc(1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05]",
|
|
119
|
+
// Transitions.
|
|
120
|
+
"data-ending-style:transform-(--closed-transform) data-ending-style:opacity-[0.9999] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-nested-drawer-swiping:duration-0 data-ending-style:data-nested-drawer-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-starting-style:transform-(--closed-transform) data-swiping:duration-0 data-ending-style:data-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]",
|
|
121
|
+
// Axis: y.
|
|
122
|
+
"data-[swipe-axis=y]:inset-x-0 data-[swipe-axis=y]:data-nested-drawer-open:h-(--stack-height)",
|
|
123
|
+
// Axis: x.
|
|
124
|
+
"data-[swipe-axis=x]:inset-y-0 data-[swipe-axis=x]:flex-row",
|
|
125
|
+
// Direction: down.
|
|
126
|
+
"data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:origin-bottom data-[swipe-direction=down]:[--closed-transform:translate3d(0,calc(100%+var(--drawer-inset,0px)+2px),0)] data-[swipe-direction=down]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height)))]",
|
|
127
|
+
// Direction: up.
|
|
128
|
+
"data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:origin-top data-[swipe-direction=up]:[--closed-transform:translate3d(0,calc(-100%-var(--drawer-inset,0px)-2px),0)] data-[swipe-direction=up]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height)))]",
|
|
129
|
+
// Direction: left.
|
|
130
|
+
"data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:origin-left data-[swipe-direction=left]:[--closed-transform:translate3d(calc(-100%-var(--drawer-inset,0px)-2px),0,0)] data-[swipe-direction=left]:[--translate-x:calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)+(var(--stack-shrink)*100%))]",
|
|
131
|
+
// Direction: right.
|
|
132
|
+
"data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:origin-right data-[swipe-direction=right]:[--closed-transform:translate3d(calc(100%+var(--drawer-inset,0px)+2px),0,0)] data-[swipe-direction=right]:[--translate-x:calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)-(var(--stack-shrink)*100%))]",
|
|
133
|
+
className
|
|
134
|
+
),
|
|
135
|
+
...props,
|
|
136
|
+
children: [
|
|
137
|
+
showSwipeHandle && /* @__PURE__ */ jsx(DrawerSwipeHandle, {}),
|
|
138
|
+
/* @__PURE__ */ jsx(
|
|
139
|
+
DrawerPrimitive.Content,
|
|
140
|
+
{
|
|
141
|
+
"data-slot": "drawer-content",
|
|
142
|
+
className: cn(
|
|
143
|
+
"flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain rounded-[inherit] transition-opacity duration-300 ease-[cubic-bezier(0.45,1.005,0,1.005)] select-text group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-swiping/drawer-popup:select-none"
|
|
144
|
+
),
|
|
145
|
+
children
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
] });
|
|
154
|
+
}
|
|
155
|
+
function DrawerHeader({ className, ...props }) {
|
|
156
|
+
return /* @__PURE__ */ jsx(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
"data-slot": "drawer-header",
|
|
160
|
+
className: cn(
|
|
161
|
+
"flex shrink-0 flex-col gap-0.5 p-4 pb-0 group-data-[swipe-axis=y]/drawer-popup:text-center md:gap-1.5 md:text-left",
|
|
162
|
+
className
|
|
163
|
+
),
|
|
164
|
+
...props
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
function DrawerFooter({ className, ...props }) {
|
|
169
|
+
return /* @__PURE__ */ jsx(
|
|
170
|
+
"div",
|
|
171
|
+
{
|
|
172
|
+
"data-slot": "drawer-footer",
|
|
173
|
+
className: cn("mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0", className),
|
|
174
|
+
...props
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
function DrawerTitle({ className, ...props }) {
|
|
179
|
+
return /* @__PURE__ */ jsx(
|
|
180
|
+
DrawerPrimitive.Title,
|
|
181
|
+
{
|
|
182
|
+
"data-slot": "drawer-title",
|
|
183
|
+
className: cn(
|
|
184
|
+
"font-heading text-base font-medium text-foreground",
|
|
185
|
+
className
|
|
186
|
+
),
|
|
187
|
+
...props
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
function DrawerDescription({
|
|
192
|
+
className,
|
|
193
|
+
...props
|
|
194
|
+
}) {
|
|
195
|
+
return /* @__PURE__ */ jsx(
|
|
196
|
+
DrawerPrimitive.Description,
|
|
197
|
+
{
|
|
198
|
+
"data-slot": "drawer-description",
|
|
199
|
+
className: cn("text-sm text-balance text-muted-foreground", className),
|
|
200
|
+
...props
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
export {
|
|
205
|
+
Drawer,
|
|
206
|
+
DrawerClose,
|
|
207
|
+
DrawerContent,
|
|
208
|
+
DrawerDescription,
|
|
209
|
+
DrawerFooter,
|
|
210
|
+
DrawerHeader,
|
|
211
|
+
DrawerOverlay,
|
|
212
|
+
DrawerPortal,
|
|
213
|
+
DrawerSwipeHandle,
|
|
214
|
+
DrawerTitle,
|
|
215
|
+
DrawerTrigger
|
|
216
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DropdownMenu,
|
|
4
|
+
DropdownMenuCheckboxItem,
|
|
5
|
+
DropdownMenuContent,
|
|
6
|
+
DropdownMenuGroup,
|
|
7
|
+
DropdownMenuItem,
|
|
8
|
+
DropdownMenuLabel,
|
|
9
|
+
DropdownMenuPortal,
|
|
10
|
+
DropdownMenuRadioGroup,
|
|
11
|
+
DropdownMenuRadioItem,
|
|
12
|
+
DropdownMenuSeparator,
|
|
13
|
+
DropdownMenuShortcut,
|
|
14
|
+
DropdownMenuSub,
|
|
15
|
+
DropdownMenuSubContent,
|
|
16
|
+
DropdownMenuSubTrigger,
|
|
17
|
+
DropdownMenuTrigger
|
|
18
|
+
} from "../chunk-RUKQ532H.js";
|
|
19
|
+
export {
|
|
20
|
+
DropdownMenu,
|
|
21
|
+
DropdownMenuCheckboxItem,
|
|
22
|
+
DropdownMenuContent,
|
|
23
|
+
DropdownMenuGroup,
|
|
24
|
+
DropdownMenuItem,
|
|
25
|
+
DropdownMenuLabel,
|
|
26
|
+
DropdownMenuPortal,
|
|
27
|
+
DropdownMenuRadioGroup,
|
|
28
|
+
DropdownMenuRadioItem,
|
|
29
|
+
DropdownMenuSeparator,
|
|
30
|
+
DropdownMenuShortcut,
|
|
31
|
+
DropdownMenuSub,
|
|
32
|
+
DropdownMenuSubContent,
|
|
33
|
+
DropdownMenuSubTrigger,
|
|
34
|
+
DropdownMenuTrigger
|
|
35
|
+
};
|
package/dist/ui/empty.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Empty,
|
|
4
|
+
EmptyContent,
|
|
5
|
+
EmptyDescription,
|
|
6
|
+
EmptyHeader,
|
|
7
|
+
EmptyMedia,
|
|
8
|
+
EmptyTitle
|
|
9
|
+
} from "../chunk-OSVLAX37.js";
|
|
10
|
+
export {
|
|
11
|
+
Empty,
|
|
12
|
+
EmptyContent,
|
|
13
|
+
EmptyDescription,
|
|
14
|
+
EmptyHeader,
|
|
15
|
+
EmptyMedia,
|
|
16
|
+
EmptyTitle
|
|
17
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useMediaQuery
|
|
4
|
+
} from "../../chunk-G233W3IR.js";
|
|
5
|
+
|
|
6
|
+
// src/ui/farmer/div.tsx
|
|
7
|
+
import { motion } from "motion/react";
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var AnimatedDiv = React.forwardRef(
|
|
11
|
+
({ variants, mobileVariants, className, children, infinity, ...motionProps }, ref) => {
|
|
12
|
+
const isDesktop = useMediaQuery("(min-width: 768px)");
|
|
13
|
+
const selectedVariants = !isDesktop && mobileVariants ? mobileVariants : variants;
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
motion.div,
|
|
16
|
+
{
|
|
17
|
+
ref,
|
|
18
|
+
layout: true,
|
|
19
|
+
className,
|
|
20
|
+
initial: "hidden",
|
|
21
|
+
transition: {
|
|
22
|
+
staggerChildren: 0.1,
|
|
23
|
+
delayChildren: 0.2
|
|
24
|
+
},
|
|
25
|
+
variants: selectedVariants,
|
|
26
|
+
viewport: { once: !infinity },
|
|
27
|
+
whileInView: "visible",
|
|
28
|
+
...motionProps,
|
|
29
|
+
children
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
AnimatedDiv.displayName = "AnimatedDiv";
|
|
35
|
+
var div_default = AnimatedDiv;
|
|
36
|
+
export {
|
|
37
|
+
div_default as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
// src/ui/farmer/variants.ts
|
|
2
|
+
var activityItemAnimation = {
|
|
3
|
+
hidden: {
|
|
4
|
+
opacity: 0,
|
|
5
|
+
y: 12,
|
|
6
|
+
scale: 0.98
|
|
7
|
+
},
|
|
8
|
+
visible: {
|
|
9
|
+
opacity: 1,
|
|
10
|
+
y: 0,
|
|
11
|
+
scale: 1,
|
|
12
|
+
transition: {
|
|
13
|
+
duration: 0.18,
|
|
14
|
+
ease: "easeOut"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
exit: {
|
|
18
|
+
opacity: 0,
|
|
19
|
+
y: -8,
|
|
20
|
+
scale: 0.98,
|
|
21
|
+
transition: {
|
|
22
|
+
duration: 0.14,
|
|
23
|
+
ease: [0.23, 1, 0.32, 1]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var popUp = {
|
|
28
|
+
hidden: { scale: 0, opacity: 0 },
|
|
29
|
+
visible: {
|
|
30
|
+
opacity: 1,
|
|
31
|
+
scale: 1,
|
|
32
|
+
transition: {
|
|
33
|
+
type: "spring"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var popUpFromBottomForText = {
|
|
38
|
+
hidden: {
|
|
39
|
+
opacity: 1,
|
|
40
|
+
y: 70,
|
|
41
|
+
transition: {
|
|
42
|
+
type: "spring",
|
|
43
|
+
stiffness: 30
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
visible: {
|
|
47
|
+
opacity: 1,
|
|
48
|
+
y: 0,
|
|
49
|
+
transition: {
|
|
50
|
+
type: "spring",
|
|
51
|
+
stiffness: 30
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var fromRightVariant = {
|
|
56
|
+
hidden: { x: 100, opacity: 0 },
|
|
57
|
+
visible: {
|
|
58
|
+
x: 0,
|
|
59
|
+
opacity: 1,
|
|
60
|
+
transition: {
|
|
61
|
+
duration: 0.1,
|
|
62
|
+
type: "spring",
|
|
63
|
+
stiffness: 100
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
var Top = {
|
|
68
|
+
hidden: {
|
|
69
|
+
opacity: 0,
|
|
70
|
+
y: -70,
|
|
71
|
+
transition: {
|
|
72
|
+
type: "spring",
|
|
73
|
+
stiffness: 30
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
visible: {
|
|
77
|
+
opacity: 1,
|
|
78
|
+
y: 0,
|
|
79
|
+
transition: {
|
|
80
|
+
type: "spring",
|
|
81
|
+
stiffness: 30
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var Bottom = {
|
|
86
|
+
hidden: {
|
|
87
|
+
opacity: 1,
|
|
88
|
+
y: 70,
|
|
89
|
+
transition: {
|
|
90
|
+
type: "spring",
|
|
91
|
+
stiffness: 30
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
visible: {
|
|
95
|
+
opacity: 1,
|
|
96
|
+
y: 0,
|
|
97
|
+
transition: {
|
|
98
|
+
type: "spring",
|
|
99
|
+
stiffness: 30
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
var headingFromLeft = {
|
|
104
|
+
hidden: { x: -200, opacity: 0 },
|
|
105
|
+
visible: {
|
|
106
|
+
x: 0,
|
|
107
|
+
opacity: 1,
|
|
108
|
+
transition: {
|
|
109
|
+
duration: 0.1,
|
|
110
|
+
type: "spring",
|
|
111
|
+
stiffness: 70
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var fromLeftVariant = {
|
|
116
|
+
hidden: { x: -100, opacity: 0 },
|
|
117
|
+
visible: {
|
|
118
|
+
x: 0,
|
|
119
|
+
opacity: 1,
|
|
120
|
+
transition: {
|
|
121
|
+
duration: 0.1,
|
|
122
|
+
type: "spring",
|
|
123
|
+
stiffness: 100
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
var fromLeftChildren = {
|
|
128
|
+
hidden: { x: -100, opacity: 0 },
|
|
129
|
+
visible: {
|
|
130
|
+
x: 0,
|
|
131
|
+
opacity: 1,
|
|
132
|
+
transition: {
|
|
133
|
+
duration: 0.1
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
var fromTopVariant = {
|
|
138
|
+
hidden: { y: -100, opacity: 0 },
|
|
139
|
+
visible: {
|
|
140
|
+
y: 0,
|
|
141
|
+
opacity: 1,
|
|
142
|
+
transition: {
|
|
143
|
+
duration: 0.1,
|
|
144
|
+
type: "spring",
|
|
145
|
+
stiffness: 100
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
var opacityVariant = {
|
|
150
|
+
hidden: { opacity: 0 },
|
|
151
|
+
visible: { opacity: 1, transition: { delay: 0.2 } }
|
|
152
|
+
};
|
|
153
|
+
var hamFastFadeContainer = {
|
|
154
|
+
hidden: { opacity: 0 },
|
|
155
|
+
visible: {
|
|
156
|
+
opacity: 1,
|
|
157
|
+
transition: {
|
|
158
|
+
delayChildren: 0,
|
|
159
|
+
staggerChildren: 0.1
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
var mobileNavItemSideways = {
|
|
164
|
+
hidden: { x: -40, opacity: 0 },
|
|
165
|
+
visible: {
|
|
166
|
+
x: 0,
|
|
167
|
+
opacity: 1
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
var FadeContainer = {
|
|
171
|
+
hidden: { opacity: 0 },
|
|
172
|
+
visible: {
|
|
173
|
+
opacity: 1,
|
|
174
|
+
transition: { delayChildren: 0, staggerChildren: 0.1 }
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var svgVariant = {
|
|
178
|
+
hidden: {
|
|
179
|
+
pathLength: 0
|
|
180
|
+
},
|
|
181
|
+
visible: {
|
|
182
|
+
pathLength: 1,
|
|
183
|
+
transition: {
|
|
184
|
+
duration: 4,
|
|
185
|
+
ease: "easeInOut"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
var searchBarSlideAnimation = {
|
|
190
|
+
hidden: {
|
|
191
|
+
width: 0,
|
|
192
|
+
opacity: 0
|
|
193
|
+
},
|
|
194
|
+
visible: {
|
|
195
|
+
width: "100%",
|
|
196
|
+
opacity: 1,
|
|
197
|
+
transition: {
|
|
198
|
+
type: "tween",
|
|
199
|
+
ease: "linear",
|
|
200
|
+
duration: 1
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
var BlogCardAnimation = {
|
|
205
|
+
hidden: {
|
|
206
|
+
y: 50,
|
|
207
|
+
opacity: 0
|
|
208
|
+
},
|
|
209
|
+
visible: {
|
|
210
|
+
y: 0,
|
|
211
|
+
opacity: 1,
|
|
212
|
+
transition: {
|
|
213
|
+
delay: 0.2
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
var ListItemVariant = {
|
|
218
|
+
hidden: {
|
|
219
|
+
opacity: 0,
|
|
220
|
+
x: -50,
|
|
221
|
+
// Slide in from the left
|
|
222
|
+
transition: {
|
|
223
|
+
type: "spring",
|
|
224
|
+
stiffness: 50
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
visible: {
|
|
228
|
+
opacity: 1,
|
|
229
|
+
x: 0,
|
|
230
|
+
// Set to the final position
|
|
231
|
+
transition: {
|
|
232
|
+
type: "spring",
|
|
233
|
+
stiffness: 50
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
var kanbanOrderCardAnimation = {
|
|
238
|
+
hidden: {
|
|
239
|
+
opacity: 0,
|
|
240
|
+
y: 10,
|
|
241
|
+
scale: 0.985,
|
|
242
|
+
filter: "blur(2px)"
|
|
243
|
+
},
|
|
244
|
+
visible: {
|
|
245
|
+
opacity: 1,
|
|
246
|
+
y: 0,
|
|
247
|
+
scale: 1,
|
|
248
|
+
filter: "blur(0px)",
|
|
249
|
+
transition: {
|
|
250
|
+
type: "spring",
|
|
251
|
+
stiffness: 420,
|
|
252
|
+
damping: 34,
|
|
253
|
+
mass: 0.8
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
exit: {
|
|
257
|
+
opacity: 0,
|
|
258
|
+
y: -6,
|
|
259
|
+
scale: 0.985,
|
|
260
|
+
filter: "blur(1px)",
|
|
261
|
+
transition: {
|
|
262
|
+
duration: 0.14,
|
|
263
|
+
ease: [0.23, 1, 0.32, 1]
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
var kanbanOrderCardReducedMotionAnimation = {
|
|
268
|
+
hidden: {
|
|
269
|
+
opacity: 0
|
|
270
|
+
},
|
|
271
|
+
visible: {
|
|
272
|
+
opacity: 1,
|
|
273
|
+
transition: {
|
|
274
|
+
duration: 0.12,
|
|
275
|
+
ease: "easeOut"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
exit: {
|
|
279
|
+
opacity: 0,
|
|
280
|
+
transition: {
|
|
281
|
+
duration: 0.1,
|
|
282
|
+
ease: [0.23, 1, 0.32, 1]
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
var kanbanOrderCardLayoutTransition = {
|
|
287
|
+
type: "spring",
|
|
288
|
+
stiffness: 520,
|
|
289
|
+
damping: 42,
|
|
290
|
+
mass: 0.75
|
|
291
|
+
};
|
|
292
|
+
export {
|
|
293
|
+
BlogCardAnimation,
|
|
294
|
+
Bottom,
|
|
295
|
+
FadeContainer,
|
|
296
|
+
ListItemVariant,
|
|
297
|
+
Top,
|
|
298
|
+
activityItemAnimation,
|
|
299
|
+
fromLeftChildren,
|
|
300
|
+
fromLeftVariant,
|
|
301
|
+
fromRightVariant,
|
|
302
|
+
fromTopVariant,
|
|
303
|
+
hamFastFadeContainer,
|
|
304
|
+
headingFromLeft,
|
|
305
|
+
kanbanOrderCardAnimation,
|
|
306
|
+
kanbanOrderCardLayoutTransition,
|
|
307
|
+
kanbanOrderCardReducedMotionAnimation,
|
|
308
|
+
mobileNavItemSideways,
|
|
309
|
+
opacityVariant,
|
|
310
|
+
popUp,
|
|
311
|
+
popUpFromBottomForText,
|
|
312
|
+
searchBarSlideAnimation,
|
|
313
|
+
svgVariant
|
|
314
|
+
};
|