react-shadcn-kit 0.0.1

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 (123) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +113 -0
  3. package/dist/assets/global.css +1 -0
  4. package/dist/atoms/accordion.d.ts +7 -0
  5. package/dist/atoms/accordion.js +62 -0
  6. package/dist/atoms/alert-dialog.d.ts +14 -0
  7. package/dist/atoms/alert-dialog.js +127 -0
  8. package/dist/atoms/alert.d.ts +9 -0
  9. package/dist/atoms/alert.js +60 -0
  10. package/dist/atoms/aspect-ratio.d.ts +3 -0
  11. package/dist/atoms/aspect-ratio.js +8 -0
  12. package/dist/atoms/avatar.d.ts +6 -0
  13. package/dist/atoms/avatar.js +41 -0
  14. package/dist/atoms/badge.d.ts +9 -0
  15. package/dist/atoms/badge.js +32 -0
  16. package/dist/atoms/breadcrumb.d.ts +11 -0
  17. package/dist/atoms/breadcrumb.js +95 -0
  18. package/dist/atoms/button-group.d.ts +11 -0
  19. package/dist/atoms/button-group.js +75 -0
  20. package/dist/atoms/button.d.ts +10 -0
  21. package/dist/atoms/button.js +51 -0
  22. package/dist/atoms/calendar.d.ts +8 -0
  23. package/dist/atoms/calendar.js +144 -0
  24. package/dist/atoms/card.d.ts +9 -0
  25. package/dist/atoms/card.js +80 -0
  26. package/dist/atoms/carousel.d.ts +19 -0
  27. package/dist/atoms/carousel.js +165 -0
  28. package/dist/atoms/chart.d.ts +43 -0
  29. package/dist/atoms/chart.js +203 -0
  30. package/dist/atoms/checkbox.d.ts +4 -0
  31. package/dist/atoms/checkbox.js +28 -0
  32. package/dist/atoms/collapsible.d.ts +5 -0
  33. package/dist/atoms/collapsible.js +20 -0
  34. package/dist/atoms/command.d.ts +18 -0
  35. package/dist/atoms/command.js +143 -0
  36. package/dist/atoms/context-menu.d.ts +25 -0
  37. package/dist/atoms/context-menu.js +200 -0
  38. package/dist/atoms/dialog.d.ts +15 -0
  39. package/dist/atoms/dialog.js +122 -0
  40. package/dist/atoms/drawer.d.ts +13 -0
  41. package/dist/atoms/drawer.js +117 -0
  42. package/dist/atoms/dropdown-menu.d.ts +25 -0
  43. package/dist/atoms/dropdown-menu.js +204 -0
  44. package/dist/atoms/empty.d.ts +11 -0
  45. package/dist/atoms/empty.js +99 -0
  46. package/dist/atoms/field.d.ts +24 -0
  47. package/dist/atoms/field.js +208 -0
  48. package/dist/atoms/form.d.ts +24 -0
  49. package/dist/atoms/form.js +87 -0
  50. package/dist/atoms/hover-card.d.ts +6 -0
  51. package/dist/atoms/hover-card.js +34 -0
  52. package/dist/atoms/input-group.d.ts +16 -0
  53. package/dist/atoms/input-group.js +142 -0
  54. package/dist/atoms/input-otp.d.ts +11 -0
  55. package/dist/atoms/input-otp.js +55 -0
  56. package/dist/atoms/input.d.ts +3 -0
  57. package/dist/atoms/input.js +21 -0
  58. package/dist/atoms/item.d.ts +23 -0
  59. package/dist/atoms/item.js +164 -0
  60. package/dist/atoms/kbd.d.ts +3 -0
  61. package/dist/atoms/kbd.js +31 -0
  62. package/dist/atoms/label.d.ts +4 -0
  63. package/dist/atoms/label.js +19 -0
  64. package/dist/atoms/menubar.d.ts +26 -0
  65. package/dist/atoms/menubar.js +229 -0
  66. package/dist/atoms/navigation-menu.d.ts +14 -0
  67. package/dist/atoms/navigation-menu.js +159 -0
  68. package/dist/atoms/pagination.d.ts +13 -0
  69. package/dist/atoms/pagination.js +100 -0
  70. package/dist/atoms/popover.d.ts +7 -0
  71. package/dist/atoms/popover.js +38 -0
  72. package/dist/atoms/progress.d.ts +4 -0
  73. package/dist/atoms/progress.js +28 -0
  74. package/dist/atoms/radio-group.d.ts +5 -0
  75. package/dist/atoms/radio-group.js +45 -0
  76. package/dist/atoms/resizable.d.ts +8 -0
  77. package/dist/atoms/resizable.js +43 -0
  78. package/dist/atoms/scroll-area.d.ts +5 -0
  79. package/dist/atoms/scroll-area.js +60 -0
  80. package/dist/atoms/select.d.ts +15 -0
  81. package/dist/atoms/select.js +156 -0
  82. package/dist/atoms/separator.d.ts +4 -0
  83. package/dist/atoms/separator.js +26 -0
  84. package/dist/atoms/sheet.d.ts +13 -0
  85. package/dist/atoms/sheet.js +117 -0
  86. package/dist/atoms/sidebar.d.ts +69 -0
  87. package/dist/atoms/sidebar.js +570 -0
  88. package/dist/atoms/skeleton.d.ts +2 -0
  89. package/dist/atoms/skeleton.js +15 -0
  90. package/dist/atoms/slider.d.ts +4 -0
  91. package/dist/atoms/slider.js +63 -0
  92. package/dist/atoms/sonner.d.ts +3 -0
  93. package/dist/atoms/sonner.js +31 -0
  94. package/dist/atoms/spinner.d.ts +2 -0
  95. package/dist/atoms/spinner.js +17 -0
  96. package/dist/atoms/switch.d.ts +4 -0
  97. package/dist/atoms/switch.js +28 -0
  98. package/dist/atoms/table.d.ts +10 -0
  99. package/dist/atoms/table.js +94 -0
  100. package/dist/atoms/tabs.d.ts +7 -0
  101. package/dist/atoms/tabs.js +55 -0
  102. package/dist/atoms/textarea.d.ts +3 -0
  103. package/dist/atoms/textarea.js +18 -0
  104. package/dist/atoms/toggle-group.d.ts +9 -0
  105. package/dist/atoms/toggle-group.js +68 -0
  106. package/dist/atoms/toggle.d.ts +9 -0
  107. package/dist/atoms/toggle.js +43 -0
  108. package/dist/atoms/tooltip.d.ts +7 -0
  109. package/dist/atoms/tooltip.js +51 -0
  110. package/dist/config/default-navigation.js +136 -0
  111. package/dist/hooks/use-mobile.d.ts +1 -0
  112. package/dist/hooks/use-mobile.js +14 -0
  113. package/dist/index.d.ts +57 -0
  114. package/dist/index.js +347 -0
  115. package/dist/lib/utils.d.ts +2 -0
  116. package/dist/lib/utils.js +8 -0
  117. package/dist/molecules/app-navbar.d.ts +11 -0
  118. package/dist/molecules/app-navbar.js +117 -0
  119. package/dist/molecules/app-sidebar.d.ts +9 -0
  120. package/dist/molecules/app-sidebar.js +121 -0
  121. package/dist/organisms/layout.d.ts +3 -0
  122. package/dist/organisms/layout.js +16 -0
  123. package/package.json +120 -0
@@ -0,0 +1,229 @@
1
+ import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
+ import * as n from "@radix-ui/react-menubar";
3
+ import { CheckIcon as u, CircleIcon as c, ChevronRightIcon as l } from "lucide-react";
4
+ import { cn as o } from "../lib/utils.js";
5
+ function g({ className: e, ...t }) {
6
+ return /* @__PURE__ */ a(
7
+ n.Root,
8
+ {
9
+ "data-slot": "menubar",
10
+ className: o(
11
+ "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
12
+ e
13
+ ),
14
+ ...t
15
+ }
16
+ );
17
+ }
18
+ function x({ ...e }) {
19
+ return /* @__PURE__ */ a(n.Menu, { "data-slot": "menubar-menu", ...e });
20
+ }
21
+ function v({ ...e }) {
22
+ return /* @__PURE__ */ a(n.Group, { "data-slot": "menubar-group", ...e });
23
+ }
24
+ function m({ ...e }) {
25
+ return /* @__PURE__ */ a(n.Portal, { "data-slot": "menubar-portal", ...e });
26
+ }
27
+ function h({ ...e }) {
28
+ return /* @__PURE__ */ a(n.RadioGroup, { "data-slot": "menubar-radio-group", ...e });
29
+ }
30
+ function M({
31
+ className: e,
32
+ ...t
33
+ }) {
34
+ return /* @__PURE__ */ a(
35
+ n.Trigger,
36
+ {
37
+ "data-slot": "menubar-trigger",
38
+ className: o(
39
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
40
+ e
41
+ ),
42
+ ...t
43
+ }
44
+ );
45
+ }
46
+ function z({
47
+ className: e,
48
+ align: t = "start",
49
+ alignOffset: r = -4,
50
+ sideOffset: s = 8,
51
+ ...i
52
+ }) {
53
+ return /* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(
54
+ n.Content,
55
+ {
56
+ "data-slot": "menubar-content",
57
+ align: t,
58
+ alignOffset: r,
59
+ sideOffset: s,
60
+ className: o(
61
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
62
+ e
63
+ ),
64
+ ...i
65
+ }
66
+ ) });
67
+ }
68
+ function N({
69
+ className: e,
70
+ inset: t,
71
+ variant: r = "default",
72
+ ...s
73
+ }) {
74
+ return /* @__PURE__ */ a(
75
+ n.Item,
76
+ {
77
+ "data-slot": "menubar-item",
78
+ "data-inset": t,
79
+ "data-variant": r,
80
+ className: o(
81
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
82
+ e
83
+ ),
84
+ ...s
85
+ }
86
+ );
87
+ }
88
+ function I({
89
+ className: e,
90
+ children: t,
91
+ checked: r,
92
+ ...s
93
+ }) {
94
+ return /* @__PURE__ */ d(
95
+ n.CheckboxItem,
96
+ {
97
+ "data-slot": "menubar-checkbox-item",
98
+ className: o(
99
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
100
+ e
101
+ ),
102
+ checked: r,
103
+ ...s,
104
+ children: [
105
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(n.ItemIndicator, { children: /* @__PURE__ */ a(u, { className: "size-4" }) }) }),
106
+ t
107
+ ]
108
+ }
109
+ );
110
+ }
111
+ function y({
112
+ className: e,
113
+ children: t,
114
+ ...r
115
+ }) {
116
+ return /* @__PURE__ */ d(
117
+ n.RadioItem,
118
+ {
119
+ "data-slot": "menubar-radio-item",
120
+ className: o(
121
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
122
+ e
123
+ ),
124
+ ...r,
125
+ children: [
126
+ /* @__PURE__ */ a("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a(n.ItemIndicator, { children: /* @__PURE__ */ a(c, { className: "size-2 fill-current" }) }) }),
127
+ t
128
+ ]
129
+ }
130
+ );
131
+ }
132
+ function k({
133
+ className: e,
134
+ inset: t,
135
+ ...r
136
+ }) {
137
+ return /* @__PURE__ */ a(
138
+ n.Label,
139
+ {
140
+ "data-slot": "menubar-label",
141
+ "data-inset": t,
142
+ className: o("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e),
143
+ ...r
144
+ }
145
+ );
146
+ }
147
+ function _({
148
+ className: e,
149
+ ...t
150
+ }) {
151
+ return /* @__PURE__ */ a(
152
+ n.Separator,
153
+ {
154
+ "data-slot": "menubar-separator",
155
+ className: o("bg-border -mx-1 my-1 h-px", e),
156
+ ...t
157
+ }
158
+ );
159
+ }
160
+ function w({ className: e, ...t }) {
161
+ return /* @__PURE__ */ a(
162
+ "span",
163
+ {
164
+ "data-slot": "menubar-shortcut",
165
+ className: o("text-muted-foreground ml-auto text-xs tracking-widest", e),
166
+ ...t
167
+ }
168
+ );
169
+ }
170
+ function C({ ...e }) {
171
+ return /* @__PURE__ */ a(n.Sub, { "data-slot": "menubar-sub", ...e });
172
+ }
173
+ function S({
174
+ className: e,
175
+ inset: t,
176
+ children: r,
177
+ ...s
178
+ }) {
179
+ return /* @__PURE__ */ d(
180
+ n.SubTrigger,
181
+ {
182
+ "data-slot": "menubar-sub-trigger",
183
+ "data-inset": t,
184
+ className: o(
185
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
186
+ e
187
+ ),
188
+ ...s,
189
+ children: [
190
+ r,
191
+ /* @__PURE__ */ a(l, { className: "ml-auto h-4 w-4" })
192
+ ]
193
+ }
194
+ );
195
+ }
196
+ function R({
197
+ className: e,
198
+ ...t
199
+ }) {
200
+ return /* @__PURE__ */ a(
201
+ n.SubContent,
202
+ {
203
+ "data-slot": "menubar-sub-content",
204
+ className: o(
205
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
206
+ e
207
+ ),
208
+ ...t
209
+ }
210
+ );
211
+ }
212
+ export {
213
+ g as Menubar,
214
+ I as MenubarCheckboxItem,
215
+ z as MenubarContent,
216
+ v as MenubarGroup,
217
+ N as MenubarItem,
218
+ k as MenubarLabel,
219
+ x as MenubarMenu,
220
+ m as MenubarPortal,
221
+ h as MenubarRadioGroup,
222
+ y as MenubarRadioItem,
223
+ _ as MenubarSeparator,
224
+ w as MenubarShortcut,
225
+ C as MenubarSub,
226
+ R as MenubarSubContent,
227
+ S as MenubarSubTrigger,
228
+ M as MenubarTrigger
229
+ };
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
3
+ declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
4
+ viewport?: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): import("react/jsx-runtime").JSX.Element;
7
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
8
+ declare const navigationMenuTriggerStyle: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
9
+ declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
10
+ declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
11
+ declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): import("react/jsx-runtime").JSX.Element;
12
+ declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
13
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
14
+ export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
@@ -0,0 +1,159 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import * as n from "@radix-ui/react-navigation-menu";
3
+ import { cva as u } from "class-variance-authority";
4
+ import { ChevronDownIcon as d } from "lucide-react";
5
+ import { cn as o } from "../lib/utils.js";
6
+ function p({
7
+ className: t,
8
+ children: a,
9
+ viewport: i = !0,
10
+ ...s
11
+ }) {
12
+ return /* @__PURE__ */ r(
13
+ n.Root,
14
+ {
15
+ "data-slot": "navigation-menu",
16
+ "data-viewport": i,
17
+ className: o(
18
+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
19
+ t
20
+ ),
21
+ ...s,
22
+ children: [
23
+ a,
24
+ i && /* @__PURE__ */ e(g, {})
25
+ ]
26
+ }
27
+ );
28
+ }
29
+ function w({
30
+ className: t,
31
+ ...a
32
+ }) {
33
+ return /* @__PURE__ */ e(
34
+ n.List,
35
+ {
36
+ "data-slot": "navigation-menu-list",
37
+ className: o("group flex flex-1 list-none items-center justify-center gap-1", t),
38
+ ...a
39
+ }
40
+ );
41
+ }
42
+ function x({
43
+ className: t,
44
+ ...a
45
+ }) {
46
+ return /* @__PURE__ */ e(
47
+ n.Item,
48
+ {
49
+ "data-slot": "navigation-menu-item",
50
+ className: o("relative", t),
51
+ ...a
52
+ }
53
+ );
54
+ }
55
+ const l = u(
56
+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
57
+ );
58
+ function b({
59
+ className: t,
60
+ children: a,
61
+ ...i
62
+ }) {
63
+ return /* @__PURE__ */ r(
64
+ n.Trigger,
65
+ {
66
+ "data-slot": "navigation-menu-trigger",
67
+ className: o(l(), "group", t),
68
+ ...i,
69
+ children: [
70
+ a,
71
+ " ",
72
+ /* @__PURE__ */ e(
73
+ d,
74
+ {
75
+ className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
76
+ "aria-hidden": "true"
77
+ }
78
+ )
79
+ ]
80
+ }
81
+ );
82
+ }
83
+ function h({
84
+ className: t,
85
+ ...a
86
+ }) {
87
+ return /* @__PURE__ */ e(
88
+ n.Content,
89
+ {
90
+ "data-slot": "navigation-menu-content",
91
+ className: o(
92
+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
93
+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
94
+ t
95
+ ),
96
+ ...a
97
+ }
98
+ );
99
+ }
100
+ function g({
101
+ className: t,
102
+ ...a
103
+ }) {
104
+ return /* @__PURE__ */ e("div", { className: o("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ e(
105
+ n.Viewport,
106
+ {
107
+ "data-slot": "navigation-menu-viewport",
108
+ className: o(
109
+ "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
110
+ t
111
+ ),
112
+ ...a
113
+ }
114
+ ) });
115
+ }
116
+ function N({
117
+ className: t,
118
+ ...a
119
+ }) {
120
+ return /* @__PURE__ */ e(
121
+ n.Link,
122
+ {
123
+ "data-slot": "navigation-menu-link",
124
+ className: o(
125
+ "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
126
+ t
127
+ ),
128
+ ...a
129
+ }
130
+ );
131
+ }
132
+ function M({
133
+ className: t,
134
+ ...a
135
+ }) {
136
+ return /* @__PURE__ */ e(
137
+ n.Indicator,
138
+ {
139
+ "data-slot": "navigation-menu-indicator",
140
+ className: o(
141
+ "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
142
+ t
143
+ ),
144
+ ...a,
145
+ children: /* @__PURE__ */ e("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
146
+ }
147
+ );
148
+ }
149
+ export {
150
+ p as NavigationMenu,
151
+ h as NavigationMenuContent,
152
+ M as NavigationMenuIndicator,
153
+ x as NavigationMenuItem,
154
+ N as NavigationMenuLink,
155
+ w as NavigationMenuList,
156
+ b as NavigationMenuTrigger,
157
+ g as NavigationMenuViewport,
158
+ l as navigationMenuTriggerStyle
159
+ };
@@ -0,0 +1,13 @@
1
+ import { Button } from './button';
2
+ import * as React from "react";
3
+ declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
4
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
5
+ declare function PaginationItem({ ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
6
+ type PaginationLinkProps = {
7
+ isActive?: boolean;
8
+ } & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
9
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
11
+ declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
12
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
13
+ export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
@@ -0,0 +1,100 @@
1
+ import { jsx as i, jsxs as e } from "react/jsx-runtime";
2
+ import { ChevronLeftIcon as l, ChevronRightIcon as c, MoreHorizontalIcon as p } from "lucide-react";
3
+ import { cn as t } from "../lib/utils.js";
4
+ import { buttonVariants as u } from "./button.js";
5
+ function h({ className: a, ...n }) {
6
+ return /* @__PURE__ */ i(
7
+ "nav",
8
+ {
9
+ role: "navigation",
10
+ "aria-label": "pagination",
11
+ "data-slot": "pagination",
12
+ className: t("mx-auto flex w-full justify-center", a),
13
+ ...n
14
+ }
15
+ );
16
+ }
17
+ function x({ className: a, ...n }) {
18
+ return /* @__PURE__ */ i(
19
+ "ul",
20
+ {
21
+ "data-slot": "pagination-content",
22
+ className: t("flex flex-row items-center gap-1", a),
23
+ ...n
24
+ }
25
+ );
26
+ }
27
+ function N({ ...a }) {
28
+ return /* @__PURE__ */ i("li", { "data-slot": "pagination-item", ...a });
29
+ }
30
+ function o({ className: a, isActive: n, size: r = "icon", ...s }) {
31
+ return /* @__PURE__ */ i(
32
+ "a",
33
+ {
34
+ "aria-current": n ? "page" : void 0,
35
+ "data-slot": "pagination-link",
36
+ "data-active": n,
37
+ className: t(
38
+ u({
39
+ variant: n ? "outline" : "ghost",
40
+ size: r
41
+ }),
42
+ a
43
+ ),
44
+ ...s
45
+ }
46
+ );
47
+ }
48
+ function P({ className: a, ...n }) {
49
+ return /* @__PURE__ */ e(
50
+ o,
51
+ {
52
+ "aria-label": "Go to previous page",
53
+ className: t("gap-1 pr-2.5", a),
54
+ ...n,
55
+ children: [
56
+ /* @__PURE__ */ i(l, {}),
57
+ /* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Previous" })
58
+ ]
59
+ }
60
+ );
61
+ }
62
+ function v({ className: a, ...n }) {
63
+ return /* @__PURE__ */ e(
64
+ o,
65
+ {
66
+ "aria-label": "Go to next page",
67
+ size: "default",
68
+ className: t("gap-1 px-2.5 sm:pr-2.5", a),
69
+ ...n,
70
+ children: [
71
+ /* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Next" }),
72
+ /* @__PURE__ */ i(c, {})
73
+ ]
74
+ }
75
+ );
76
+ }
77
+ function b({ className: a, ...n }) {
78
+ return /* @__PURE__ */ e(
79
+ "span",
80
+ {
81
+ "aria-hidden": !0,
82
+ "data-slot": "pagination-ellipsis",
83
+ className: t("flex size-9 items-center justify-center", a),
84
+ ...n,
85
+ children: [
86
+ /* @__PURE__ */ i(p, { className: "size-4" }),
87
+ /* @__PURE__ */ i("span", { className: "sr-only", children: "More pages" })
88
+ ]
89
+ }
90
+ );
91
+ }
92
+ export {
93
+ h as Pagination,
94
+ x as PaginationContent,
95
+ b as PaginationEllipsis,
96
+ N as PaginationItem,
97
+ o as PaginationLink,
98
+ v as PaginationNext,
99
+ P as PaginationPrevious
100
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,38 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as e from "@radix-ui/react-popover";
3
+ import { cn as i } from "../lib/utils.js";
4
+ function s({ ...o }) {
5
+ return /* @__PURE__ */ t(e.Root, { "data-slot": "popover", ...o });
6
+ }
7
+ function m({ ...o }) {
8
+ return /* @__PURE__ */ t(e.Trigger, { "data-slot": "popover-trigger", ...o });
9
+ }
10
+ function f({
11
+ className: o,
12
+ align: r = "center",
13
+ sideOffset: a = 4,
14
+ ...n
15
+ }) {
16
+ return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
17
+ e.Content,
18
+ {
19
+ "data-slot": "popover-content",
20
+ align: r,
21
+ sideOffset: a,
22
+ className: i(
23
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
24
+ o
25
+ ),
26
+ ...n
27
+ }
28
+ ) });
29
+ }
30
+ function l({ ...o }) {
31
+ return /* @__PURE__ */ t(e.Anchor, { "data-slot": "popover-anchor", ...o });
32
+ }
33
+ export {
34
+ s as Popover,
35
+ l as PopoverAnchor,
36
+ f as PopoverContent,
37
+ m as PopoverTrigger
38
+ };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
3
+ declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Progress };
@@ -0,0 +1,28 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as o from "@radix-ui/react-progress";
3
+ import { cn as a } from "../lib/utils.js";
4
+ function n({
5
+ className: t,
6
+ value: l,
7
+ ...s
8
+ }) {
9
+ return /* @__PURE__ */ r(
10
+ o.Root,
11
+ {
12
+ "data-slot": "progress",
13
+ className: a("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", t),
14
+ ...s,
15
+ children: /* @__PURE__ */ r(
16
+ o.Indicator,
17
+ {
18
+ "data-slot": "progress-indicator",
19
+ className: "bg-primary h-full w-full flex-1 transition-all",
20
+ style: { transform: `translateX(-${100 - (l || 0)}%)` }
21
+ }
22
+ )
23
+ }
24
+ );
25
+ }
26
+ export {
27
+ n as Progress
28
+ };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+ declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,45 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as a from "@radix-ui/react-radio-group";
3
+ import { CircleIcon as t } from "lucide-react";
4
+ import { cn as e } from "../lib/utils.js";
5
+ function l({
6
+ className: i,
7
+ ...o
8
+ }) {
9
+ return /* @__PURE__ */ r(
10
+ a.Root,
11
+ {
12
+ "data-slot": "radio-group",
13
+ className: e("grid gap-3", i),
14
+ ...o
15
+ }
16
+ );
17
+ }
18
+ function c({
19
+ className: i,
20
+ ...o
21
+ }) {
22
+ return /* @__PURE__ */ r(
23
+ a.Item,
24
+ {
25
+ "data-slot": "radio-group-item",
26
+ className: e(
27
+ "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
28
+ i
29
+ ),
30
+ ...o,
31
+ children: /* @__PURE__ */ r(
32
+ a.Indicator,
33
+ {
34
+ "data-slot": "radio-group-indicator",
35
+ className: "relative flex items-center justify-center",
36
+ children: /* @__PURE__ */ r(t, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
37
+ }
38
+ )
39
+ }
40
+ );
41
+ }
42
+ export {
43
+ l as RadioGroup,
44
+ c as RadioGroupItem
45
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as ResizablePrimitive from "react-resizable-panels";
3
+ declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>): import("react/jsx-runtime").JSX.Element;
4
+ declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>): import("react/jsx-runtime").JSX.Element;
5
+ declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
6
+ withHandle?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle };