rockin 0.0.34 → 0.0.35
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/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,113 @@
|
|
|
1
|
+
// src/ui/apple/spanish.tsx
|
|
2
|
+
import { motion } from "motion/react";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
var initialProps = {
|
|
6
|
+
pathLength: 0,
|
|
7
|
+
opacity: 0
|
|
8
|
+
};
|
|
9
|
+
var animateProps = {
|
|
10
|
+
pathLength: 1,
|
|
11
|
+
opacity: 1
|
|
12
|
+
};
|
|
13
|
+
function AppleHelloEffectSpanish({
|
|
14
|
+
className,
|
|
15
|
+
durationScale = 1,
|
|
16
|
+
onAnimationComplete,
|
|
17
|
+
...props
|
|
18
|
+
}) {
|
|
19
|
+
const calc = (x) => x * durationScale;
|
|
20
|
+
return /* @__PURE__ */ jsxs(
|
|
21
|
+
motion.svg,
|
|
22
|
+
{
|
|
23
|
+
className: cn("h-20", className),
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25
|
+
viewBox: "0 0 562 200",
|
|
26
|
+
fill: "none",
|
|
27
|
+
stroke: "currentColor",
|
|
28
|
+
strokeWidth: "14.888",
|
|
29
|
+
strokeLinecap: "round",
|
|
30
|
+
initial: { opacity: 1 },
|
|
31
|
+
exit: { opacity: 0 },
|
|
32
|
+
transition: { duration: 0.5 },
|
|
33
|
+
...props,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsx("title", { children: "Hola" }),
|
|
36
|
+
/* @__PURE__ */ jsx(
|
|
37
|
+
motion.path,
|
|
38
|
+
{
|
|
39
|
+
d: "M8.692 169.422c27.495-16.185 51.282-36.493 77.822-72.424 18.627-25.219 27.738-47.893 28.236-65.962.248-13.399-6.204-23.563-18.362-23.563-13.4 0-21.837 10.164-27.048 33.497-5.707 25.643-9.925 55.067-20.595 149.42",
|
|
40
|
+
initial: initialProps,
|
|
41
|
+
animate: animateProps,
|
|
42
|
+
transition: {
|
|
43
|
+
duration: calc(0.8),
|
|
44
|
+
ease: "easeOut",
|
|
45
|
+
opacity: { duration: 0.4 }
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
motion.path,
|
|
51
|
+
{
|
|
52
|
+
d: "M49.79 181.168c5.265-46.274 26.25-83.086 52.801-83.086 15.881 0 25.974 12.655 23.108 30.769-1.613 10.67-4.528 23.077-6.193 35.236-2.026 15.384 3.761 27.295 21.655 27.295 25.257 0 41.157-24.523 48.037-53.562",
|
|
53
|
+
initial: initialProps,
|
|
54
|
+
animate: animateProps,
|
|
55
|
+
transition: {
|
|
56
|
+
duration: calc(0.8),
|
|
57
|
+
ease: "easeInOut",
|
|
58
|
+
delay: calc(0.7),
|
|
59
|
+
opacity: { duration: 0.2, delay: calc(0.8) }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ jsx(
|
|
64
|
+
motion.path,
|
|
65
|
+
{
|
|
66
|
+
d: "M234.601 94.36c-24.822 2.006-43.39 23.044-46.898 51.861-3.226 26.302 11.414 46.154 34.739 46.154 28.288 0 46.65-24.318 47.891-54.591.992-29.032-12.903-43.672-31.762-43.672-14.888 0-22.829 11.166-22.332 24.813.484 18.661 14.478 39.612 43.839 42.289 40.725 3.714 96.424-26.396 118.914-85.593 6.487-17.074 8.959-33.18 8.959-44.436 0-13.346-4.219-23.593-16.129-23.593-11.663 0-19.355 9.056-26.303 23.355-8.14 16.583-14.162 40.503-16.625 67.542-6.204 67.846 7.692 92.893 37.42 92.893 30.127 0 50.049-26.113 58.664-56.317",
|
|
67
|
+
initial: initialProps,
|
|
68
|
+
animate: animateProps,
|
|
69
|
+
transition: {
|
|
70
|
+
duration: calc(1.6),
|
|
71
|
+
ease: "easeInOut",
|
|
72
|
+
delay: calc(1.4),
|
|
73
|
+
opacity: { duration: 0.2, delay: calc(1.5) }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ jsx(
|
|
78
|
+
motion.path,
|
|
79
|
+
{
|
|
80
|
+
d: "M503.236 112.864c-4.864-11.195-15.204-18.753-31.664-18.753-27.295 0-47.808 27.296-49.155 56.576-1.174 26.799 11.192 41.864 28.805 41.687 25.001-.25 43.378-24.805 51.581-76.763 1.012-6.41 2.061-13.104 3.073-19.514",
|
|
81
|
+
initial: initialProps,
|
|
82
|
+
animate: animateProps,
|
|
83
|
+
transition: {
|
|
84
|
+
duration: calc(0.7),
|
|
85
|
+
ease: "easeInOut",
|
|
86
|
+
delay: calc(2.9),
|
|
87
|
+
opacity: { duration: 0.2, delay: calc(3) }
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ jsx(
|
|
92
|
+
motion.path,
|
|
93
|
+
{
|
|
94
|
+
d: "m505.875 96.097-3.073 19.507c-4.482 28.44-6.549 39.66-6.327 46.994.518 17.121 6.675 28.784 22.06 28.784 19.355 0 30.21-13.152 35.421-27.544",
|
|
95
|
+
initial: initialProps,
|
|
96
|
+
animate: animateProps,
|
|
97
|
+
transition: {
|
|
98
|
+
duration: calc(0.8),
|
|
99
|
+
ease: "easeInOut",
|
|
100
|
+
delay: calc(3.5),
|
|
101
|
+
opacity: { duration: 0.2, delay: calc(3.5) }
|
|
102
|
+
},
|
|
103
|
+
onAnimationComplete
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export {
|
|
112
|
+
AppleHelloEffectSpanish
|
|
113
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// src/ui/scroll-area.tsx
|
|
2
|
+
import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
function ScrollArea({
|
|
6
|
+
className,
|
|
7
|
+
children,
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ jsxs(
|
|
11
|
+
ScrollAreaPrimitive.Root,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "scroll-area",
|
|
14
|
+
className: cn("relative", className),
|
|
15
|
+
...props,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ jsx(
|
|
18
|
+
ScrollAreaPrimitive.Viewport,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "scroll-area-viewport",
|
|
21
|
+
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
|
|
22
|
+
children
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
26
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function ScrollBar({
|
|
32
|
+
className,
|
|
33
|
+
orientation = "vertical",
|
|
34
|
+
...props
|
|
35
|
+
}) {
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
ScrollAreaPrimitive.Scrollbar,
|
|
38
|
+
{
|
|
39
|
+
"data-slot": "scroll-area-scrollbar",
|
|
40
|
+
"data-orientation": orientation,
|
|
41
|
+
orientation,
|
|
42
|
+
className: cn(
|
|
43
|
+
"flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",
|
|
44
|
+
className
|
|
45
|
+
),
|
|
46
|
+
...props,
|
|
47
|
+
children: /* @__PURE__ */ jsx(
|
|
48
|
+
ScrollAreaPrimitive.Thumb,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "scroll-area-thumb",
|
|
51
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
ScrollArea,
|
|
60
|
+
ScrollBar
|
|
61
|
+
};
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InputGroup,
|
|
3
|
+
InputGroupAddon,
|
|
4
|
+
InputGroupButton,
|
|
5
|
+
InputGroupInput
|
|
6
|
+
} from "./chunk-COPQJFDI.js";
|
|
7
|
+
import {
|
|
8
|
+
Button
|
|
9
|
+
} from "./chunk-DVNTJNDP.js";
|
|
10
|
+
|
|
11
|
+
// src/ui/combobox.tsx
|
|
12
|
+
import { Combobox as ComboboxPrimitive } from "@base-ui/react";
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import { cn } from "cn";
|
|
15
|
+
import { Check, ChevronDown, Xmark } from "@gravity-ui/icons";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
var Combobox = ComboboxPrimitive.Root;
|
|
18
|
+
function ComboboxValue({ ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(ComboboxPrimitive.Value, { "data-slot": "combobox-value", ...props });
|
|
20
|
+
}
|
|
21
|
+
function ComboboxTrigger({
|
|
22
|
+
className,
|
|
23
|
+
children,
|
|
24
|
+
...props
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
27
|
+
ComboboxPrimitive.Trigger,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "combobox-trigger",
|
|
30
|
+
className: cn("[&_svg:not([class*='size-'])]:size-4", className),
|
|
31
|
+
...props,
|
|
32
|
+
children: [
|
|
33
|
+
children,
|
|
34
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "pointer-events-none size-4 text-muted-foreground" })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function ComboboxClear({ className, ...props }) {
|
|
40
|
+
return /* @__PURE__ */ jsx(
|
|
41
|
+
ComboboxPrimitive.Clear,
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "combobox-clear",
|
|
44
|
+
render: /* @__PURE__ */ jsx(InputGroupButton, { variant: "ghost", size: "icon-xs" }),
|
|
45
|
+
className: cn(className),
|
|
46
|
+
...props,
|
|
47
|
+
children: /* @__PURE__ */ jsx(Xmark, { className: "pointer-events-none" })
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
function ComboboxInput({
|
|
52
|
+
className,
|
|
53
|
+
children,
|
|
54
|
+
disabled = false,
|
|
55
|
+
showTrigger = true,
|
|
56
|
+
showClear = false,
|
|
57
|
+
startContent,
|
|
58
|
+
endContent,
|
|
59
|
+
...props
|
|
60
|
+
}) {
|
|
61
|
+
return /* @__PURE__ */ jsxs(InputGroup, { className: cn("w-auto", className), children: [
|
|
62
|
+
/* @__PURE__ */ jsx(
|
|
63
|
+
ComboboxPrimitive.Input,
|
|
64
|
+
{
|
|
65
|
+
render: /* @__PURE__ */ jsx(InputGroupInput, { disabled }),
|
|
66
|
+
...props
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
startContent && /* @__PURE__ */ jsx(InputGroupAddon, { align: "inline-start", children: startContent }),
|
|
70
|
+
/* @__PURE__ */ jsxs(InputGroupAddon, { align: "inline-end", className: "pr-0", children: [
|
|
71
|
+
showTrigger && /* @__PURE__ */ jsx(
|
|
72
|
+
InputGroupButton,
|
|
73
|
+
{
|
|
74
|
+
size: "icon-xs",
|
|
75
|
+
variant: "ghost",
|
|
76
|
+
render: /* @__PURE__ */ jsx(ComboboxTrigger, {}),
|
|
77
|
+
"data-slot": "input-group-button",
|
|
78
|
+
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
79
|
+
disabled
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
showClear && /* @__PURE__ */ jsx(ComboboxClear, { disabled })
|
|
83
|
+
] }),
|
|
84
|
+
/* @__PURE__ */ jsx(InputGroupAddon, { align: "inline-end", children: endContent }),
|
|
85
|
+
children
|
|
86
|
+
] });
|
|
87
|
+
}
|
|
88
|
+
function ComboboxContent({
|
|
89
|
+
className,
|
|
90
|
+
side = "bottom",
|
|
91
|
+
sideOffset = 6,
|
|
92
|
+
align = "start",
|
|
93
|
+
alignOffset = 0,
|
|
94
|
+
anchor,
|
|
95
|
+
...props
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ jsx(ComboboxPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
98
|
+
ComboboxPrimitive.Positioner,
|
|
99
|
+
{
|
|
100
|
+
side,
|
|
101
|
+
sideOffset,
|
|
102
|
+
align,
|
|
103
|
+
alignOffset,
|
|
104
|
+
anchor,
|
|
105
|
+
className: "isolate z-50",
|
|
106
|
+
children: /* @__PURE__ */ jsx(
|
|
107
|
+
ComboboxPrimitive.Popup,
|
|
108
|
+
{
|
|
109
|
+
"data-slot": "combobox-content",
|
|
110
|
+
"data-chips": !!anchor,
|
|
111
|
+
className: cn(
|
|
112
|
+
"group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+(--spacing(7)))] origin-(--transform-origin) overflow-hidden rounded-lg bg-background text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
113
|
+
className
|
|
114
|
+
),
|
|
115
|
+
...props
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
) });
|
|
120
|
+
}
|
|
121
|
+
function ComboboxList({ className, ...props }) {
|
|
122
|
+
return /* @__PURE__ */ jsx(
|
|
123
|
+
ComboboxPrimitive.List,
|
|
124
|
+
{
|
|
125
|
+
"data-slot": "combobox-list",
|
|
126
|
+
className: cn(
|
|
127
|
+
"no-scrollbar max-h-[min(calc(--spacing(72)-(--spacing(9))),calc(var(--available-height)-(--spacing(9))))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0",
|
|
128
|
+
className
|
|
129
|
+
),
|
|
130
|
+
...props
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
function ComboboxItem({
|
|
135
|
+
className,
|
|
136
|
+
children,
|
|
137
|
+
...props
|
|
138
|
+
}) {
|
|
139
|
+
return /* @__PURE__ */ jsxs(
|
|
140
|
+
ComboboxPrimitive.Item,
|
|
141
|
+
{
|
|
142
|
+
"data-slot": "combobox-item",
|
|
143
|
+
className: cn(
|
|
144
|
+
"relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
145
|
+
className
|
|
146
|
+
),
|
|
147
|
+
...props,
|
|
148
|
+
children: [
|
|
149
|
+
children,
|
|
150
|
+
/* @__PURE__ */ jsx(
|
|
151
|
+
ComboboxPrimitive.ItemIndicator,
|
|
152
|
+
{
|
|
153
|
+
render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
154
|
+
children: /* @__PURE__ */ jsx(Check, { className: "pointer-events-none" })
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
function ComboboxGroup({ className, ...props }) {
|
|
162
|
+
return /* @__PURE__ */ jsx(
|
|
163
|
+
ComboboxPrimitive.Group,
|
|
164
|
+
{
|
|
165
|
+
"data-slot": "combobox-group",
|
|
166
|
+
className: cn(className),
|
|
167
|
+
...props
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
function ComboboxLabel({
|
|
172
|
+
className,
|
|
173
|
+
...props
|
|
174
|
+
}) {
|
|
175
|
+
return /* @__PURE__ */ jsx(
|
|
176
|
+
ComboboxPrimitive.GroupLabel,
|
|
177
|
+
{
|
|
178
|
+
"data-slot": "combobox-label",
|
|
179
|
+
className: cn("px-2 py-1.5 text-xs text-muted-foreground", className),
|
|
180
|
+
...props
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
function ComboboxCollection({ ...props }) {
|
|
185
|
+
return /* @__PURE__ */ jsx(ComboboxPrimitive.Collection, { "data-slot": "combobox-collection", ...props });
|
|
186
|
+
}
|
|
187
|
+
function ComboboxEmpty({ className, ...props }) {
|
|
188
|
+
return /* @__PURE__ */ jsx(
|
|
189
|
+
ComboboxPrimitive.Empty,
|
|
190
|
+
{
|
|
191
|
+
"data-slot": "combobox-empty",
|
|
192
|
+
className: cn(
|
|
193
|
+
"hidden w-full justify-center py-2 text-center text-sm text-muted-foreground group-data-empty/combobox-content:flex",
|
|
194
|
+
className
|
|
195
|
+
),
|
|
196
|
+
...props
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
function ComboboxSeparator({
|
|
201
|
+
className,
|
|
202
|
+
...props
|
|
203
|
+
}) {
|
|
204
|
+
return /* @__PURE__ */ jsx(
|
|
205
|
+
ComboboxPrimitive.Separator,
|
|
206
|
+
{
|
|
207
|
+
"data-slot": "combobox-separator",
|
|
208
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
209
|
+
...props
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
function ComboboxChips({
|
|
214
|
+
className,
|
|
215
|
+
...props
|
|
216
|
+
}) {
|
|
217
|
+
return /* @__PURE__ */ jsx(
|
|
218
|
+
ComboboxPrimitive.Chips,
|
|
219
|
+
{
|
|
220
|
+
"data-slot": "combobox-chips",
|
|
221
|
+
className: cn(
|
|
222
|
+
"flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-2 has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40",
|
|
223
|
+
className
|
|
224
|
+
),
|
|
225
|
+
...props
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
function ComboboxChip({
|
|
230
|
+
className,
|
|
231
|
+
children,
|
|
232
|
+
showRemove = true,
|
|
233
|
+
...props
|
|
234
|
+
}) {
|
|
235
|
+
return /* @__PURE__ */ jsxs(
|
|
236
|
+
ComboboxPrimitive.Chip,
|
|
237
|
+
{
|
|
238
|
+
"data-slot": "combobox-chip",
|
|
239
|
+
className: cn(
|
|
240
|
+
"flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0",
|
|
241
|
+
className
|
|
242
|
+
),
|
|
243
|
+
...props,
|
|
244
|
+
children: [
|
|
245
|
+
children,
|
|
246
|
+
showRemove && /* @__PURE__ */ jsx(
|
|
247
|
+
ComboboxPrimitive.ChipRemove,
|
|
248
|
+
{
|
|
249
|
+
render: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon-xs" }),
|
|
250
|
+
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
251
|
+
"data-slot": "combobox-chip-remove",
|
|
252
|
+
children: /* @__PURE__ */ jsx(Xmark, { className: "pointer-events-none" })
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
function ComboboxChipsInput({
|
|
260
|
+
className,
|
|
261
|
+
...props
|
|
262
|
+
}) {
|
|
263
|
+
return /* @__PURE__ */ jsx(
|
|
264
|
+
ComboboxPrimitive.Input,
|
|
265
|
+
{
|
|
266
|
+
"data-slot": "combobox-chip-input",
|
|
267
|
+
className: cn("min-w-16 flex-1 outline-none", className),
|
|
268
|
+
...props
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
function useComboboxAnchor() {
|
|
273
|
+
return React.useRef(null);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export {
|
|
277
|
+
Combobox,
|
|
278
|
+
ComboboxValue,
|
|
279
|
+
ComboboxTrigger,
|
|
280
|
+
ComboboxInput,
|
|
281
|
+
ComboboxContent,
|
|
282
|
+
ComboboxList,
|
|
283
|
+
ComboboxItem,
|
|
284
|
+
ComboboxGroup,
|
|
285
|
+
ComboboxLabel,
|
|
286
|
+
ComboboxCollection,
|
|
287
|
+
ComboboxEmpty,
|
|
288
|
+
ComboboxSeparator,
|
|
289
|
+
ComboboxChips,
|
|
290
|
+
ComboboxChip,
|
|
291
|
+
ComboboxChipsInput,
|
|
292
|
+
useComboboxAnchor
|
|
293
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button
|
|
3
|
+
} from "./chunk-DVNTJNDP.js";
|
|
4
|
+
|
|
5
|
+
// src/ui/dialog.tsx
|
|
6
|
+
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
7
|
+
import { cn } from "cn";
|
|
8
|
+
import { Xmark } from "@gravity-ui/icons";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
function Dialog({ ...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
12
|
+
}
|
|
13
|
+
function DialogTrigger({ ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
15
|
+
}
|
|
16
|
+
function DialogPortal({ ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
18
|
+
}
|
|
19
|
+
function DialogClose({ ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
21
|
+
}
|
|
22
|
+
function DialogOverlay({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
DialogPrimitive.Backdrop,
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "dialog-overlay",
|
|
30
|
+
className: cn(
|
|
31
|
+
"fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
32
|
+
className
|
|
33
|
+
),
|
|
34
|
+
...props
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function DialogContent({
|
|
39
|
+
className,
|
|
40
|
+
children,
|
|
41
|
+
showCloseButton = true,
|
|
42
|
+
...props
|
|
43
|
+
}) {
|
|
44
|
+
return /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
45
|
+
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
46
|
+
/* @__PURE__ */ jsxs(
|
|
47
|
+
DialogPrimitive.Popup,
|
|
48
|
+
{
|
|
49
|
+
"data-slot": "dialog-content",
|
|
50
|
+
className: cn(
|
|
51
|
+
"fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-card p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
52
|
+
className
|
|
53
|
+
),
|
|
54
|
+
...props,
|
|
55
|
+
children: [
|
|
56
|
+
children,
|
|
57
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
58
|
+
DialogPrimitive.Close,
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "dialog-close",
|
|
61
|
+
render: /* @__PURE__ */ jsx(
|
|
62
|
+
Button,
|
|
63
|
+
{
|
|
64
|
+
variant: "ghost",
|
|
65
|
+
className: "absolute top-4 right-4",
|
|
66
|
+
size: "icon-sm"
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsx(Xmark, {}),
|
|
71
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] });
|
|
79
|
+
}
|
|
80
|
+
function DialogHeader({ className, ...props }) {
|
|
81
|
+
return /* @__PURE__ */ jsx(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "dialog-header",
|
|
85
|
+
className: cn("flex flex-col gap-2", className),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
function DialogFooter({
|
|
91
|
+
className,
|
|
92
|
+
showCloseButton = false,
|
|
93
|
+
children,
|
|
94
|
+
...props
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ jsxs(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "dialog-footer",
|
|
100
|
+
className: cn(
|
|
101
|
+
"flex shrink-0 flex-col-reverse items-center justify-center gap-2 p-4 pt-0 sm:flex-row",
|
|
102
|
+
className
|
|
103
|
+
),
|
|
104
|
+
...props,
|
|
105
|
+
children: [
|
|
106
|
+
children,
|
|
107
|
+
showCloseButton && /* @__PURE__ */ jsx(DialogPrimitive.Close, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Close" })
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
function DialogTitle({ className, ...props }) {
|
|
113
|
+
return /* @__PURE__ */ jsx(
|
|
114
|
+
DialogPrimitive.Title,
|
|
115
|
+
{
|
|
116
|
+
"data-slot": "dialog-title",
|
|
117
|
+
className: cn("text-base leading-none font-medium", className),
|
|
118
|
+
...props
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
function DialogDescription({
|
|
123
|
+
className,
|
|
124
|
+
...props
|
|
125
|
+
}) {
|
|
126
|
+
return /* @__PURE__ */ jsx(
|
|
127
|
+
DialogPrimitive.Description,
|
|
128
|
+
{
|
|
129
|
+
"data-slot": "dialog-description",
|
|
130
|
+
className: cn(
|
|
131
|
+
"text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
|
|
132
|
+
className
|
|
133
|
+
),
|
|
134
|
+
...props
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export {
|
|
140
|
+
Dialog,
|
|
141
|
+
DialogTrigger,
|
|
142
|
+
DialogPortal,
|
|
143
|
+
DialogClose,
|
|
144
|
+
DialogOverlay,
|
|
145
|
+
DialogContent,
|
|
146
|
+
DialogHeader,
|
|
147
|
+
DialogFooter,
|
|
148
|
+
DialogTitle,
|
|
149
|
+
DialogDescription
|
|
150
|
+
};
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useMounted
|
|
4
|
+
} from "../chunk-G4NDAZTB.js";
|
|
5
|
+
import {
|
|
6
|
+
useDataGrid,
|
|
7
|
+
useDataTable,
|
|
8
|
+
useDataTablePagination,
|
|
9
|
+
useDataTableRows,
|
|
10
|
+
useDataTableSearch
|
|
11
|
+
} from "../chunk-D6TULSM6.js";
|
|
12
|
+
import {
|
|
13
|
+
useMediaQuery
|
|
14
|
+
} from "../chunk-G233W3IR.js";
|
|
15
|
+
import "../chunk-VFDNWPOI.js";
|
|
16
|
+
import "../chunk-COPQJFDI.js";
|
|
17
|
+
import "../chunk-MZBLIA6C.js";
|
|
18
|
+
import "../chunk-7JJBATB2.js";
|
|
2
19
|
import {
|
|
3
20
|
buildFlagSearchParamHref,
|
|
4
21
|
hasFlagSearchParam,
|
|
5
22
|
searchParamKeys,
|
|
6
23
|
searchParams
|
|
7
24
|
} from "../chunk-M5NHRP6W.js";
|
|
25
|
+
import "../chunk-DVNTJNDP.js";
|
|
8
26
|
import {
|
|
9
27
|
useFullscreen,
|
|
10
28
|
useNative
|
|
11
29
|
} from "../chunk-RT2YVQ2Y.js";
|
|
12
|
-
import {
|
|
13
|
-
useDataGrid,
|
|
14
|
-
useDataTable,
|
|
15
|
-
useDataTablePagination,
|
|
16
|
-
useDataTableRows,
|
|
17
|
-
useDataTableSearch,
|
|
18
|
-
useMediaQuery,
|
|
19
|
-
useMounted
|
|
20
|
-
} from "../chunk-4KFB6AJH.js";
|
|
21
30
|
import {
|
|
22
31
|
isNativeApp
|
|
23
32
|
} from "../chunk-ATPUW3SQ.js";
|
package/dist/index.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Provider,
|
|
4
4
|
browserThemeColors
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-54ZJAEO5.js";
|
|
6
|
+
import "./chunk-GBVAFFZR.js";
|
|
7
7
|
import {
|
|
8
8
|
TopLoader
|
|
9
9
|
} from "./chunk-3ZGQJTWY.js";
|
|
10
|
-
import "./chunk-FYFBWCMJ.js";
|
|
11
|
-
import "./chunk-ATPUW3SQ.js";
|
|
12
10
|
import {
|
|
13
11
|
BellIcon,
|
|
14
12
|
IconSwap,
|
|
15
13
|
Loader
|
|
16
14
|
} from "./chunk-5QSYZSVL.js";
|
|
15
|
+
import "./chunk-RT2YVQ2Y.js";
|
|
16
|
+
import "./chunk-ATPUW3SQ.js";
|
|
17
17
|
|
|
18
18
|
// src/index.ts
|
|
19
19
|
import { default as default2 } from "@number-flow/react";
|
package/dist/provider.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Provider,
|
|
4
4
|
browserThemeColors
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-54ZJAEO5.js";
|
|
6
|
+
import "./chunk-GBVAFFZR.js";
|
|
7
7
|
import "./chunk-3ZGQJTWY.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-RT2YVQ2Y.js";
|
|
9
9
|
import "./chunk-ATPUW3SQ.js";
|
|
10
10
|
export {
|
|
11
11
|
Provider,
|