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.
Files changed (91) hide show
  1. package/dist/chunk-3CZ2LLUN.js +198 -0
  2. package/dist/{chunk-7ZCRGTLA.js → chunk-54ZJAEO5.js} +5 -5
  3. package/dist/chunk-5GM3YR42.js +228 -0
  4. package/dist/chunk-6XUTSMTJ.js +183 -0
  5. package/dist/chunk-7JJBATB2.js +35 -0
  6. package/dist/chunk-BITCJZQZ.js +31 -0
  7. package/dist/chunk-COPQJFDI.js +158 -0
  8. package/dist/chunk-D6TULSM6.js +785 -0
  9. package/dist/chunk-DVNTJNDP.js +55 -0
  10. package/dist/chunk-EKDBYSMI.js +87 -0
  11. package/dist/chunk-FGWWRPMR.js +71 -0
  12. package/dist/chunk-G233W3IR.js +17 -0
  13. package/dist/chunk-G4NDAZTB.js +13 -0
  14. package/dist/chunk-GY2BX5SK.js +26 -0
  15. package/dist/chunk-MZBLIA6C.js +20 -0
  16. package/dist/chunk-OSVLAX37.js +101 -0
  17. package/dist/chunk-PRGKTXJU.js +20 -0
  18. package/dist/chunk-RUKQ532H.js +253 -0
  19. package/dist/chunk-S4H2HENE.js +113 -0
  20. package/dist/chunk-UHZTEDHK.js +61 -0
  21. package/dist/chunk-VFDNWPOI.js +293 -0
  22. package/dist/chunk-W4EIJWHF.js +150 -0
  23. package/dist/hooks/index.js +18 -9
  24. package/dist/index.js +4 -4
  25. package/dist/provider.js +3 -3
  26. package/dist/styles.css +2 -2
  27. package/dist/ui/accordion.js +95 -0
  28. package/dist/ui/alert-dialog.js +178 -0
  29. package/dist/ui/apple/english.js +7 -0
  30. package/dist/ui/apple/hindi.js +7 -0
  31. package/dist/ui/apple/index.js +52 -0
  32. package/dist/ui/apple/spanish.js +7 -0
  33. package/dist/ui/ariakit.js +7 -0
  34. package/dist/ui/autocomplete.js +296 -0
  35. package/dist/ui/avatar.js +106 -0
  36. package/dist/ui/badge.js +50 -0
  37. package/dist/ui/bridge.js +109 -0
  38. package/dist/ui/bubble.js +118 -0
  39. package/dist/ui/button-group.js +14 -0
  40. package/dist/ui/button.js +9 -0
  41. package/dist/ui/card.js +102 -0
  42. package/dist/ui/carousel.js +205 -0
  43. package/dist/ui/chart.js +253 -0
  44. package/dist/ui/checkbox.js +34 -0
  45. package/dist/ui/code-block.js +128 -0
  46. package/dist/ui/combobox.js +41 -0
  47. package/dist/ui/command.js +199 -0
  48. package/dist/ui/dashed.js +57 -0
  49. package/dist/ui/data-table/index.js +233 -0
  50. package/dist/ui/dialog.js +26 -0
  51. package/dist/ui/dock.js +86 -0
  52. package/dist/ui/drawer.js +216 -0
  53. package/dist/ui/dropdown-menu.js +35 -0
  54. package/dist/ui/empty.js +17 -0
  55. package/dist/ui/farmer/div.js +38 -0
  56. package/dist/ui/farmer/variants.js +314 -0
  57. package/dist/ui/field.js +224 -0
  58. package/dist/ui/filters.js +1524 -0
  59. package/dist/ui/image.js +88 -0
  60. package/dist/ui/index.d.ts +1 -1
  61. package/dist/ui/index.js +57 -8502
  62. package/dist/ui/input-group.js +20 -0
  63. package/dist/ui/input-otp.js +83 -0
  64. package/dist/ui/input.js +7 -0
  65. package/dist/ui/item.js +200 -0
  66. package/dist/ui/jelly.js +30 -0
  67. package/dist/ui/kbd.js +9 -0
  68. package/dist/ui/label.js +7 -0
  69. package/dist/ui/message-scroller.js +122 -0
  70. package/dist/ui/message.js +93 -0
  71. package/dist/ui/numberstepper.js +416 -0
  72. package/dist/ui/otp.js +403 -0
  73. package/dist/ui/popover.js +83 -0
  74. package/dist/ui/qr-code.js +124 -0
  75. package/dist/ui/quantity.js +48 -0
  76. package/dist/ui/radio-group.js +42 -0
  77. package/dist/ui/resizable.js +52 -0
  78. package/dist/ui/scroll-area.js +9 -0
  79. package/dist/ui/select.js +194 -0
  80. package/dist/ui/separator.js +7 -0
  81. package/dist/ui/skeleton.js +25 -0
  82. package/dist/ui/sonner.js +22 -0
  83. package/dist/ui/sortable.js +503 -0
  84. package/dist/ui/swipe-actions.js +45 -0
  85. package/dist/ui/switch.js +34 -0
  86. package/dist/ui/textarea.js +7 -0
  87. package/dist/ui/theme-toggle.js +141 -0
  88. package/dist/ui/tooltip.js +13 -0
  89. package/package.json +1 -1
  90. package/dist/chunk-4KFB6AJH.js +0 -1330
  91. /package/dist/{chunk-FYFBWCMJ.js → chunk-GBVAFFZR.js} +0 -0
@@ -0,0 +1,52 @@
1
+ "use client";
2
+
3
+ // src/ui/resizable.tsx
4
+ import { cn } from "cn";
5
+ import * as ResizablePrimitive from "react-resizable-panels";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ function ResizablePanelGroup({
8
+ className,
9
+ ...props
10
+ }) {
11
+ return /* @__PURE__ */ jsx(
12
+ ResizablePrimitive.Group,
13
+ {
14
+ "data-slot": "resizable-panel-group",
15
+ className: cn(
16
+ "flex h-full w-full aria-[orientation=vertical]:flex-col",
17
+ className
18
+ ),
19
+ ...props
20
+ }
21
+ );
22
+ }
23
+ function ResizablePanel({ ...props }) {
24
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
25
+ }
26
+ function ResizableHandle({
27
+ withHandle,
28
+ className,
29
+ ...props
30
+ }) {
31
+ return /* @__PURE__ */ jsx(
32
+ ResizablePrimitive.Separator,
33
+ {
34
+ "data-slot": "resizable-handle",
35
+ className: cn(
36
+ "relative mx-0.5 flex w-px items-center justify-center",
37
+ className
38
+ ),
39
+ ...props,
40
+ children: withHandle && /* @__PURE__ */ jsxs("div", { className: "flex cursor-col-resize flex-col gap-[4px]", children: [
41
+ /* @__PURE__ */ jsx("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
42
+ /* @__PURE__ */ jsx("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
43
+ /* @__PURE__ */ jsx("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" })
44
+ ] })
45
+ }
46
+ );
47
+ }
48
+ export {
49
+ ResizableHandle,
50
+ ResizablePanel,
51
+ ResizablePanelGroup
52
+ };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import {
3
+ ScrollArea,
4
+ ScrollBar
5
+ } from "../chunk-UHZTEDHK.js";
6
+ export {
7
+ ScrollArea,
8
+ ScrollBar
9
+ };
@@ -0,0 +1,194 @@
1
+ "use client";
2
+
3
+ // src/ui/select.tsx
4
+ import { Select as SelectPrimitive } from "@base-ui/react/select";
5
+ import { cn } from "cn";
6
+ import { Check, ChevronDown, ChevronUp } from "@gravity-ui/icons";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ var Select = SelectPrimitive.Root;
9
+ function SelectGroup({ className, ...props }) {
10
+ return /* @__PURE__ */ jsx(
11
+ SelectPrimitive.Group,
12
+ {
13
+ "data-slot": "select-group",
14
+ className: cn("scroll-my-1 p-1", className),
15
+ ...props
16
+ }
17
+ );
18
+ }
19
+ function SelectValue({ className, ...props }) {
20
+ return /* @__PURE__ */ jsx(
21
+ SelectPrimitive.Value,
22
+ {
23
+ "data-slot": "select-value",
24
+ className: cn("flex flex-1 text-left", className),
25
+ ...props
26
+ }
27
+ );
28
+ }
29
+ function SelectTrigger({
30
+ className,
31
+ size = "default",
32
+ children,
33
+ ...props
34
+ }) {
35
+ return /* @__PURE__ */ jsxs(
36
+ SelectPrimitive.Trigger,
37
+ {
38
+ "data-slot": "select-trigger",
39
+ "data-size": size,
40
+ className: cn(
41
+ "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-placeholder:text-muted-foreground data-[size=default]:h-8 *:data-[slot=select-value]:line-clamp-1 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
42
+ className
43
+ ),
44
+ ...props,
45
+ children: [
46
+ children,
47
+ /* @__PURE__ */ jsx(
48
+ SelectPrimitive.Icon,
49
+ {
50
+ render: /* @__PURE__ */ jsx(ChevronDown, { className: "pointer-events-none size-4 text-muted-foreground" })
51
+ }
52
+ )
53
+ ]
54
+ }
55
+ );
56
+ }
57
+ function SelectContent({
58
+ className,
59
+ children,
60
+ side = "bottom",
61
+ sideOffset = 4,
62
+ align = "center",
63
+ alignOffset = 0,
64
+ alignItemWithTrigger = true,
65
+ ...props
66
+ }) {
67
+ return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
68
+ SelectPrimitive.Positioner,
69
+ {
70
+ side,
71
+ sideOffset,
72
+ align,
73
+ alignOffset,
74
+ alignItemWithTrigger,
75
+ className: "isolate z-50",
76
+ children: /* @__PURE__ */ jsxs(
77
+ SelectPrimitive.Popup,
78
+ {
79
+ "data-slot": "select-content",
80
+ "data-align-trigger": alignItemWithTrigger,
81
+ className: cn(
82
+ "relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-background text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95",
83
+ className
84
+ ),
85
+ ...props,
86
+ children: [
87
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
88
+ /* @__PURE__ */ jsx(SelectPrimitive.List, { className: "p-1", children }),
89
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
90
+ ]
91
+ }
92
+ )
93
+ }
94
+ ) });
95
+ }
96
+ function SelectLabel({
97
+ className,
98
+ ...props
99
+ }) {
100
+ return /* @__PURE__ */ jsx(
101
+ SelectPrimitive.GroupLabel,
102
+ {
103
+ "data-slot": "select-label",
104
+ className: cn("px-1.5 py-1 text-xs text-muted-foreground", className),
105
+ ...props
106
+ }
107
+ );
108
+ }
109
+ function SelectItem({
110
+ className,
111
+ children,
112
+ ...props
113
+ }) {
114
+ return /* @__PURE__ */ jsxs(
115
+ SelectPrimitive.Item,
116
+ {
117
+ "data-slot": "select-item",
118
+ className: cn(
119
+ "relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
120
+ className
121
+ ),
122
+ ...props,
123
+ children: [
124
+ /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
125
+ /* @__PURE__ */ jsx(
126
+ SelectPrimitive.ItemIndicator,
127
+ {
128
+ render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
129
+ children: /* @__PURE__ */ jsx(Check, { className: "pointer-events-none" })
130
+ }
131
+ )
132
+ ]
133
+ }
134
+ );
135
+ }
136
+ function SelectSeparator({
137
+ className,
138
+ ...props
139
+ }) {
140
+ return /* @__PURE__ */ jsx(
141
+ SelectPrimitive.Separator,
142
+ {
143
+ "data-slot": "select-separator",
144
+ className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className),
145
+ ...props
146
+ }
147
+ );
148
+ }
149
+ function SelectScrollUpButton({
150
+ className,
151
+ ...props
152
+ }) {
153
+ return /* @__PURE__ */ jsx(
154
+ SelectPrimitive.ScrollUpArrow,
155
+ {
156
+ "data-slot": "select-scroll-up-button",
157
+ className: cn(
158
+ "top-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
159
+ className
160
+ ),
161
+ ...props,
162
+ children: /* @__PURE__ */ jsx(ChevronUp, {})
163
+ }
164
+ );
165
+ }
166
+ function SelectScrollDownButton({
167
+ className,
168
+ ...props
169
+ }) {
170
+ return /* @__PURE__ */ jsx(
171
+ SelectPrimitive.ScrollDownArrow,
172
+ {
173
+ "data-slot": "select-scroll-down-button",
174
+ className: cn(
175
+ "bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
176
+ className
177
+ ),
178
+ ...props,
179
+ children: /* @__PURE__ */ jsx(ChevronDown, {})
180
+ }
181
+ );
182
+ }
183
+ export {
184
+ Select,
185
+ SelectContent,
186
+ SelectGroup,
187
+ SelectItem,
188
+ SelectLabel,
189
+ SelectScrollDownButton,
190
+ SelectScrollUpButton,
191
+ SelectSeparator,
192
+ SelectTrigger,
193
+ SelectValue
194
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ Separator
4
+ } from "../chunk-GY2BX5SK.js";
5
+ export {
6
+ Separator
7
+ };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import {
3
+ ShimmerSkeleton,
4
+ Skeleton,
5
+ SkeletonAvatar,
6
+ SkeletonButton,
7
+ SkeletonText,
8
+ getSkeletonVariantDuration,
9
+ resolveSkeletonA11yProps,
10
+ skeletonRoundedClasses,
11
+ skeletonVariantDefaultDuration,
12
+ skeleton_default
13
+ } from "../chunk-3CZ2LLUN.js";
14
+ export {
15
+ ShimmerSkeleton,
16
+ Skeleton,
17
+ SkeletonAvatar,
18
+ SkeletonButton,
19
+ SkeletonText,
20
+ skeleton_default as default,
21
+ getSkeletonVariantDuration,
22
+ resolveSkeletonA11yProps,
23
+ skeletonRoundedClasses,
24
+ skeletonVariantDefaultDuration
25
+ };
@@ -0,0 +1,22 @@
1
+ "use client";
2
+
3
+ // src/ui/sonner.tsx
4
+ import { GooeyToaster } from "goey-toast";
5
+ import { useTheme } from "next-themes";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var Toaster = ({ closeButton = "top-left", ...props }) => {
8
+ const { theme = "system" } = useTheme();
9
+ const toasterTheme = theme === "dark" ? "dark" : "light";
10
+ return /* @__PURE__ */ jsx(
11
+ GooeyToaster,
12
+ {
13
+ theme: toasterTheme,
14
+ position: "bottom-right",
15
+ closeButton,
16
+ ...props
17
+ }
18
+ );
19
+ };
20
+ export {
21
+ Toaster
22
+ };