@ichaingo/ui 1.1.0

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 (141) hide show
  1. package/.babelrc +12 -0
  2. package/README.md +103 -0
  3. package/components.json +21 -0
  4. package/dist/accordion.d.ts +13 -0
  5. package/dist/accordion.mjs +64 -0
  6. package/dist/alert-dialog.d.ts +27 -0
  7. package/dist/alert-dialog.mjs +146 -0
  8. package/dist/alert.d.ts +16 -0
  9. package/dist/alert.mjs +66 -0
  10. package/dist/aspect-ratio.d.ts +6 -0
  11. package/dist/aspect-ratio.mjs +10 -0
  12. package/dist/avatar.d.ts +11 -0
  13. package/dist/avatar.mjs +53 -0
  14. package/dist/badge.d.ts +14 -0
  15. package/dist/badge.mjs +39 -0
  16. package/dist/breadcrumb.d.ts +20 -0
  17. package/dist/breadcrumb.mjs +102 -0
  18. package/dist/button.d.ts +15 -0
  19. package/dist/button.mjs +49 -0
  20. package/dist/calendar.d.ts +23 -0
  21. package/dist/calendar.mjs +173 -0
  22. package/dist/card.d.ts +18 -0
  23. package/dist/card.mjs +90 -0
  24. package/dist/carousel.d.ts +42 -0
  25. package/dist/carousel.mjs +177 -0
  26. package/dist/checkbox.d.ts +7 -0
  27. package/dist/checkbox.mjs +31 -0
  28. package/dist/collapsible.d.ts +10 -0
  29. package/dist/collapsible.mjs +34 -0
  30. package/dist/command.d.ts +31 -0
  31. package/dist/command.mjs +170 -0
  32. package/dist/context-menu.d.ts +42 -0
  33. package/dist/context-menu.mjs +223 -0
  34. package/dist/dialog.d.ts +27 -0
  35. package/dist/dialog.mjs +136 -0
  36. package/dist/dropdown-menu.d.ts +42 -0
  37. package/dist/dropdown-menu.mjs +231 -0
  38. package/dist/form.d.ts +38 -0
  39. package/dist/form.mjs +101 -0
  40. package/dist/hover-card.d.ts +11 -0
  41. package/dist/hover-card.mjs +38 -0
  42. package/dist/input.d.ts +6 -0
  43. package/dist/input.mjs +21 -0
  44. package/dist/label.d.ts +7 -0
  45. package/dist/label.mjs +23 -0
  46. package/dist/menubar.d.ts +44 -0
  47. package/dist/menubar.mjs +251 -0
  48. package/dist/navigation-menu.d.ts +26 -0
  49. package/dist/navigation-menu.mjs +170 -0
  50. package/dist/pagination.d.ts +33 -0
  51. package/dist/pagination.mjs +116 -0
  52. package/dist/popover.d.ts +13 -0
  53. package/dist/popover.mjs +44 -0
  54. package/dist/progress.d.ts +7 -0
  55. package/dist/progress.mjs +31 -0
  56. package/dist/radio-group.d.ts +9 -0
  57. package/dist/radio-group.mjs +45 -0
  58. package/dist/resizable.d.ts +13 -0
  59. package/dist/resizable.mjs +48 -0
  60. package/dist/scroll-area.d.ts +9 -0
  61. package/dist/scroll-area.mjs +60 -0
  62. package/dist/select.d.ts +27 -0
  63. package/dist/select.mjs +169 -0
  64. package/dist/separator.d.ts +7 -0
  65. package/dist/separator.mjs +26 -0
  66. package/dist/sheet.d.ts +23 -0
  67. package/dist/sheet.mjs +126 -0
  68. package/dist/skeleton.d.ts +5 -0
  69. package/dist/skeleton.mjs +15 -0
  70. package/dist/slider.d.ts +7 -0
  71. package/dist/slider.mjs +63 -0
  72. package/dist/sonner.d.ts +6 -0
  73. package/dist/sonner.mjs +22 -0
  74. package/dist/switch.d.ts +7 -0
  75. package/dist/switch.mjs +31 -0
  76. package/dist/table.d.ts +20 -0
  77. package/dist/table.mjs +114 -0
  78. package/dist/tabs.d.ts +13 -0
  79. package/dist/tabs.mjs +67 -0
  80. package/dist/textarea.d.ts +6 -0
  81. package/dist/textarea.mjs +18 -0
  82. package/dist/toggle-group.d.ts +16 -0
  83. package/dist/toggle-group.mjs +62 -0
  84. package/dist/toggle.d.ts +14 -0
  85. package/dist/toggle.mjs +43 -0
  86. package/dist/tooltip.d.ts +13 -0
  87. package/dist/tooltip.mjs +55 -0
  88. package/dist/utils-B7J70Nno.js +8 -0
  89. package/eslint.config.mjs +12 -0
  90. package/package.json +273 -0
  91. package/postcss.config.js +6 -0
  92. package/src/components/ui/accordion.tsx +64 -0
  93. package/src/components/ui/alert-dialog.tsx +155 -0
  94. package/src/components/ui/alert.tsx +66 -0
  95. package/src/components/ui/aspect-ratio.tsx +9 -0
  96. package/src/components/ui/avatar.tsx +51 -0
  97. package/src/components/ui/badge.tsx +46 -0
  98. package/src/components/ui/breadcrumb.tsx +109 -0
  99. package/src/components/ui/button.tsx +59 -0
  100. package/src/components/ui/calendar.tsx +211 -0
  101. package/src/components/ui/card.tsx +92 -0
  102. package/src/components/ui/carousel.tsx +239 -0
  103. package/src/components/ui/checkbox.tsx +30 -0
  104. package/src/components/ui/collapsible.tsx +31 -0
  105. package/src/components/ui/command.tsx +182 -0
  106. package/src/components/ui/context-menu.tsx +250 -0
  107. package/src/components/ui/dialog.tsx +141 -0
  108. package/src/components/ui/dropdown-menu.tsx +255 -0
  109. package/src/components/ui/form.tsx +165 -0
  110. package/src/components/ui/hover-card.tsx +42 -0
  111. package/src/components/ui/input.tsx +21 -0
  112. package/src/components/ui/label.tsx +24 -0
  113. package/src/components/ui/menubar.tsx +274 -0
  114. package/src/components/ui/navigation-menu.tsx +168 -0
  115. package/src/components/ui/pagination.tsx +125 -0
  116. package/src/components/ui/popover.tsx +46 -0
  117. package/src/components/ui/progress.tsx +29 -0
  118. package/src/components/ui/radio-group.tsx +43 -0
  119. package/src/components/ui/resizable.tsx +54 -0
  120. package/src/components/ui/scroll-area.tsx +56 -0
  121. package/src/components/ui/select.tsx +183 -0
  122. package/src/components/ui/separator.tsx +26 -0
  123. package/src/components/ui/sheet.tsx +137 -0
  124. package/src/components/ui/skeleton.tsx +13 -0
  125. package/src/components/ui/slider.tsx +61 -0
  126. package/src/components/ui/sonner.tsx +23 -0
  127. package/src/components/ui/switch.tsx +29 -0
  128. package/src/components/ui/table.tsx +114 -0
  129. package/src/components/ui/tabs.tsx +64 -0
  130. package/src/components/ui/textarea.tsx +18 -0
  131. package/src/components/ui/toggle-group.tsx +71 -0
  132. package/src/components/ui/toggle.tsx +45 -0
  133. package/src/components/ui/tooltip.tsx +59 -0
  134. package/src/index.ts +46 -0
  135. package/src/lib/utils.ts +6 -0
  136. package/src/style.css +0 -0
  137. package/tailwind.config.js +52 -0
  138. package/tsconfig.json +19 -0
  139. package/tsconfig.lib.json +54 -0
  140. package/tsconfig.spec.json +32 -0
  141. package/vite.config.ts +136 -0
@@ -0,0 +1,44 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import * as MenubarPrimitive from '@radix-ui/react-menubar';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare function Menubar({ className, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Root>): JSX.Element;
6
+
7
+ export declare function MenubarCheckboxItem({ className, children, checked, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): JSX.Element;
8
+
9
+ export declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Content>): JSX.Element;
10
+
11
+ export declare function MenubarGroup({ ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Group>): JSX.Element;
12
+
13
+ export declare function MenubarItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Item> & {
14
+ inset?: boolean;
15
+ variant?: "default" | "destructive";
16
+ }): JSX.Element;
17
+
18
+ export declare function MenubarLabel({ className, inset, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Label> & {
19
+ inset?: boolean;
20
+ }): JSX.Element;
21
+
22
+ export declare function MenubarMenu({ ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Menu>): JSX.Element;
23
+
24
+ export declare function MenubarPortal({ ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Portal>): JSX.Element;
25
+
26
+ export declare function MenubarRadioGroup({ ...props }: React_2.ComponentProps<typeof MenubarPrimitive.RadioGroup>): JSX.Element;
27
+
28
+ export declare function MenubarRadioItem({ className, children, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.RadioItem>): JSX.Element;
29
+
30
+ export declare function MenubarSeparator({ className, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Separator>): JSX.Element;
31
+
32
+ export declare function MenubarShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
33
+
34
+ export declare function MenubarSub({ ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Sub>): JSX.Element;
35
+
36
+ export declare function MenubarSubContent({ className, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.SubContent>): JSX.Element;
37
+
38
+ export declare function MenubarSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
39
+ inset?: boolean;
40
+ }): JSX.Element;
41
+
42
+ export declare function MenubarTrigger({ className, ...props }: React_2.ComponentProps<typeof MenubarPrimitive.Trigger>): JSX.Element;
43
+
44
+ export { }
@@ -0,0 +1,251 @@
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 { c as o } from "./utils-B7J70Nno.js";
5
+ function g({
6
+ className: e,
7
+ ...t
8
+ }) {
9
+ return /* @__PURE__ */ a(
10
+ n.Root,
11
+ {
12
+ "data-slot": "menubar",
13
+ className: o(
14
+ "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
15
+ e
16
+ ),
17
+ ...t
18
+ }
19
+ );
20
+ }
21
+ function x({
22
+ ...e
23
+ }) {
24
+ return /* @__PURE__ */ a(n.Menu, { "data-slot": "menubar-menu", ...e });
25
+ }
26
+ function v({
27
+ ...e
28
+ }) {
29
+ return /* @__PURE__ */ a(n.Group, { "data-slot": "menubar-group", ...e });
30
+ }
31
+ function m({
32
+ ...e
33
+ }) {
34
+ return /* @__PURE__ */ a(n.Portal, { "data-slot": "menubar-portal", ...e });
35
+ }
36
+ function h({
37
+ ...e
38
+ }) {
39
+ return /* @__PURE__ */ a(n.RadioGroup, { "data-slot": "menubar-radio-group", ...e });
40
+ }
41
+ function M({
42
+ className: e,
43
+ ...t
44
+ }) {
45
+ return /* @__PURE__ */ a(
46
+ n.Trigger,
47
+ {
48
+ "data-slot": "menubar-trigger",
49
+ className: o(
50
+ "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",
51
+ e
52
+ ),
53
+ ...t
54
+ }
55
+ );
56
+ }
57
+ function z({
58
+ className: e,
59
+ align: t = "start",
60
+ alignOffset: r = -4,
61
+ sideOffset: s = 8,
62
+ ...i
63
+ }) {
64
+ return /* @__PURE__ */ a(m, { children: /* @__PURE__ */ a(
65
+ n.Content,
66
+ {
67
+ "data-slot": "menubar-content",
68
+ align: t,
69
+ alignOffset: r,
70
+ sideOffset: s,
71
+ className: o(
72
+ "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",
73
+ e
74
+ ),
75
+ ...i
76
+ }
77
+ ) });
78
+ }
79
+ function N({
80
+ className: e,
81
+ inset: t,
82
+ variant: r = "default",
83
+ ...s
84
+ }) {
85
+ return /* @__PURE__ */ a(
86
+ n.Item,
87
+ {
88
+ "data-slot": "menubar-item",
89
+ "data-inset": t,
90
+ "data-variant": r,
91
+ className: o(
92
+ "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",
93
+ e
94
+ ),
95
+ ...s
96
+ }
97
+ );
98
+ }
99
+ function I({
100
+ className: e,
101
+ children: t,
102
+ checked: r,
103
+ ...s
104
+ }) {
105
+ return /* @__PURE__ */ d(
106
+ n.CheckboxItem,
107
+ {
108
+ "data-slot": "menubar-checkbox-item",
109
+ className: o(
110
+ "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",
111
+ e
112
+ ),
113
+ checked: r,
114
+ ...s,
115
+ children: [
116
+ /* @__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" }) }) }),
117
+ t
118
+ ]
119
+ }
120
+ );
121
+ }
122
+ function y({
123
+ className: e,
124
+ children: t,
125
+ ...r
126
+ }) {
127
+ return /* @__PURE__ */ d(
128
+ n.RadioItem,
129
+ {
130
+ "data-slot": "menubar-radio-item",
131
+ className: o(
132
+ "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",
133
+ e
134
+ ),
135
+ ...r,
136
+ children: [
137
+ /* @__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" }) }) }),
138
+ t
139
+ ]
140
+ }
141
+ );
142
+ }
143
+ function k({
144
+ className: e,
145
+ inset: t,
146
+ ...r
147
+ }) {
148
+ return /* @__PURE__ */ a(
149
+ n.Label,
150
+ {
151
+ "data-slot": "menubar-label",
152
+ "data-inset": t,
153
+ className: o(
154
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
155
+ e
156
+ ),
157
+ ...r
158
+ }
159
+ );
160
+ }
161
+ function _({
162
+ className: e,
163
+ ...t
164
+ }) {
165
+ return /* @__PURE__ */ a(
166
+ n.Separator,
167
+ {
168
+ "data-slot": "menubar-separator",
169
+ className: o("bg-border -mx-1 my-1 h-px", e),
170
+ ...t
171
+ }
172
+ );
173
+ }
174
+ function w({
175
+ className: e,
176
+ ...t
177
+ }) {
178
+ return /* @__PURE__ */ a(
179
+ "span",
180
+ {
181
+ "data-slot": "menubar-shortcut",
182
+ className: o(
183
+ "text-muted-foreground ml-auto text-xs tracking-widest",
184
+ e
185
+ ),
186
+ ...t
187
+ }
188
+ );
189
+ }
190
+ function C({
191
+ ...e
192
+ }) {
193
+ return /* @__PURE__ */ a(n.Sub, { "data-slot": "menubar-sub", ...e });
194
+ }
195
+ function S({
196
+ className: e,
197
+ inset: t,
198
+ children: r,
199
+ ...s
200
+ }) {
201
+ return /* @__PURE__ */ d(
202
+ n.SubTrigger,
203
+ {
204
+ "data-slot": "menubar-sub-trigger",
205
+ "data-inset": t,
206
+ className: o(
207
+ "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",
208
+ e
209
+ ),
210
+ ...s,
211
+ children: [
212
+ r,
213
+ /* @__PURE__ */ a(l, { className: "ml-auto h-4 w-4" })
214
+ ]
215
+ }
216
+ );
217
+ }
218
+ function R({
219
+ className: e,
220
+ ...t
221
+ }) {
222
+ return /* @__PURE__ */ a(
223
+ n.SubContent,
224
+ {
225
+ "data-slot": "menubar-sub-content",
226
+ className: o(
227
+ "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",
228
+ e
229
+ ),
230
+ ...t
231
+ }
232
+ );
233
+ }
234
+ export {
235
+ g as Menubar,
236
+ I as MenubarCheckboxItem,
237
+ z as MenubarContent,
238
+ v as MenubarGroup,
239
+ N as MenubarItem,
240
+ k as MenubarLabel,
241
+ x as MenubarMenu,
242
+ m as MenubarPortal,
243
+ h as MenubarRadioGroup,
244
+ y as MenubarRadioItem,
245
+ _ as MenubarSeparator,
246
+ w as MenubarShortcut,
247
+ C as MenubarSub,
248
+ R as MenubarSubContent,
249
+ S as MenubarSubTrigger,
250
+ M as MenubarTrigger
251
+ };
@@ -0,0 +1,26 @@
1
+ import { ClassProp } from 'class-variance-authority/types';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
4
+ import * as React_2 from 'react';
5
+
6
+ export declare function NavigationMenu({ className, children, viewport, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
7
+ viewport?: boolean;
8
+ }): JSX.Element;
9
+
10
+ export declare function NavigationMenuContent({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Content>): JSX.Element;
11
+
12
+ export declare function NavigationMenuIndicator({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): JSX.Element;
13
+
14
+ export declare function NavigationMenuItem({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Item>): JSX.Element;
15
+
16
+ export declare function NavigationMenuLink({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Link>): JSX.Element;
17
+
18
+ export declare function NavigationMenuList({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.List>): JSX.Element;
19
+
20
+ export declare function NavigationMenuTrigger({ className, children, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): JSX.Element;
21
+
22
+ export declare const navigationMenuTriggerStyle: (props?: ClassProp | undefined) => string;
23
+
24
+ export declare function NavigationMenuViewport({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): JSX.Element;
25
+
26
+ export { }
@@ -0,0 +1,170 @@
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 { c as o } from "./utils-B7J70Nno.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(
38
+ "group flex flex-1 list-none items-center justify-center gap-1",
39
+ t
40
+ ),
41
+ ...a
42
+ }
43
+ );
44
+ }
45
+ function x({
46
+ className: t,
47
+ ...a
48
+ }) {
49
+ return /* @__PURE__ */ e(
50
+ n.Item,
51
+ {
52
+ "data-slot": "navigation-menu-item",
53
+ className: o("relative", t),
54
+ ...a
55
+ }
56
+ );
57
+ }
58
+ const l = u(
59
+ "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"
60
+ );
61
+ function b({
62
+ className: t,
63
+ children: a,
64
+ ...i
65
+ }) {
66
+ return /* @__PURE__ */ r(
67
+ n.Trigger,
68
+ {
69
+ "data-slot": "navigation-menu-trigger",
70
+ className: o(l(), "group", t),
71
+ ...i,
72
+ children: [
73
+ a,
74
+ " ",
75
+ /* @__PURE__ */ e(
76
+ d,
77
+ {
78
+ className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
79
+ "aria-hidden": "true"
80
+ }
81
+ )
82
+ ]
83
+ }
84
+ );
85
+ }
86
+ function h({
87
+ className: t,
88
+ ...a
89
+ }) {
90
+ return /* @__PURE__ */ e(
91
+ n.Content,
92
+ {
93
+ "data-slot": "navigation-menu-content",
94
+ className: o(
95
+ "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",
96
+ "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",
97
+ t
98
+ ),
99
+ ...a
100
+ }
101
+ );
102
+ }
103
+ function g({
104
+ className: t,
105
+ ...a
106
+ }) {
107
+ return /* @__PURE__ */ e(
108
+ "div",
109
+ {
110
+ className: o(
111
+ "absolute top-full left-0 isolate z-50 flex justify-center"
112
+ ),
113
+ children: /* @__PURE__ */ e(
114
+ n.Viewport,
115
+ {
116
+ "data-slot": "navigation-menu-viewport",
117
+ className: o(
118
+ "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)]",
119
+ t
120
+ ),
121
+ ...a
122
+ }
123
+ )
124
+ }
125
+ );
126
+ }
127
+ function N({
128
+ className: t,
129
+ ...a
130
+ }) {
131
+ return /* @__PURE__ */ e(
132
+ n.Link,
133
+ {
134
+ "data-slot": "navigation-menu-link",
135
+ className: o(
136
+ "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",
137
+ t
138
+ ),
139
+ ...a
140
+ }
141
+ );
142
+ }
143
+ function M({
144
+ className: t,
145
+ ...a
146
+ }) {
147
+ return /* @__PURE__ */ e(
148
+ n.Indicator,
149
+ {
150
+ "data-slot": "navigation-menu-indicator",
151
+ className: o(
152
+ "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",
153
+ t
154
+ ),
155
+ ...a,
156
+ children: /* @__PURE__ */ e("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
157
+ }
158
+ );
159
+ }
160
+ export {
161
+ p as NavigationMenu,
162
+ h as NavigationMenuContent,
163
+ M as NavigationMenuIndicator,
164
+ x as NavigationMenuItem,
165
+ N as NavigationMenuLink,
166
+ w as NavigationMenuList,
167
+ b as NavigationMenuTrigger,
168
+ g as NavigationMenuViewport,
169
+ l as navigationMenuTriggerStyle
170
+ };
@@ -0,0 +1,33 @@
1
+ import { ClassProp } from 'class-variance-authority/types';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import * as React_2 from 'react';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
7
+ asChild?: boolean;
8
+ }): JSX.Element;
9
+
10
+ declare const buttonVariants: (props?: ({
11
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
12
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
13
+ } & ClassProp) | undefined) => string;
14
+
15
+ export declare function Pagination({ className, ...props }: React_2.ComponentProps<"nav">): JSX.Element;
16
+
17
+ export declare function PaginationContent({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
18
+
19
+ export declare function PaginationEllipsis({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
20
+
21
+ export declare function PaginationItem({ ...props }: React_2.ComponentProps<"li">): JSX.Element;
22
+
23
+ export declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): JSX.Element;
24
+
25
+ declare type PaginationLinkProps = {
26
+ isActive?: boolean;
27
+ } & Pick<React_2.ComponentProps<typeof Button>, "size"> & React_2.ComponentProps<"a">;
28
+
29
+ export declare function PaginationNext({ className, ...props }: React_2.ComponentProps<typeof PaginationLink>): JSX.Element;
30
+
31
+ export declare function PaginationPrevious({ className, ...props }: React_2.ComponentProps<typeof PaginationLink>): JSX.Element;
32
+
33
+ export { }
@@ -0,0 +1,116 @@
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 { c as t } from "./utils-B7J70Nno.js";
4
+ import { buttonVariants as m } from "./button.mjs";
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({
18
+ className: a,
19
+ ...n
20
+ }) {
21
+ return /* @__PURE__ */ i(
22
+ "ul",
23
+ {
24
+ "data-slot": "pagination-content",
25
+ className: t("flex flex-row items-center gap-1", a),
26
+ ...n
27
+ }
28
+ );
29
+ }
30
+ function N({ ...a }) {
31
+ return /* @__PURE__ */ i("li", { "data-slot": "pagination-item", ...a });
32
+ }
33
+ function o({
34
+ className: a,
35
+ isActive: n,
36
+ size: r = "icon",
37
+ ...s
38
+ }) {
39
+ return /* @__PURE__ */ i(
40
+ "a",
41
+ {
42
+ "aria-current": n ? "page" : void 0,
43
+ "data-slot": "pagination-link",
44
+ "data-active": n,
45
+ className: t(
46
+ m({
47
+ variant: n ? "outline" : "ghost",
48
+ size: r
49
+ }),
50
+ a
51
+ ),
52
+ ...s
53
+ }
54
+ );
55
+ }
56
+ function P({
57
+ className: a,
58
+ ...n
59
+ }) {
60
+ return /* @__PURE__ */ e(
61
+ o,
62
+ {
63
+ "aria-label": "Go to previous page",
64
+ className: t("gap-1 px-2.5 sm:pl-2.5", a),
65
+ ...n,
66
+ children: [
67
+ /* @__PURE__ */ i(l, {}),
68
+ /* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Previous" })
69
+ ]
70
+ }
71
+ );
72
+ }
73
+ function v({
74
+ className: a,
75
+ ...n
76
+ }) {
77
+ return /* @__PURE__ */ e(
78
+ o,
79
+ {
80
+ "aria-label": "Go to next page",
81
+ className: t("gap-1 px-2.5 sm:pr-2.5", a),
82
+ ...n,
83
+ children: [
84
+ /* @__PURE__ */ i("span", { className: "hidden sm:block", children: "Next" }),
85
+ /* @__PURE__ */ i(c, {})
86
+ ]
87
+ }
88
+ );
89
+ }
90
+ function b({
91
+ className: a,
92
+ ...n
93
+ }) {
94
+ return /* @__PURE__ */ e(
95
+ "span",
96
+ {
97
+ "aria-hidden": !0,
98
+ "data-slot": "pagination-ellipsis",
99
+ className: t("flex size-9 items-center justify-center", a),
100
+ ...n,
101
+ children: [
102
+ /* @__PURE__ */ i(p, { className: "size-4" }),
103
+ /* @__PURE__ */ i("span", { className: "sr-only", children: "More pages" })
104
+ ]
105
+ }
106
+ );
107
+ }
108
+ export {
109
+ h as Pagination,
110
+ x as PaginationContent,
111
+ b as PaginationEllipsis,
112
+ N as PaginationItem,
113
+ o as PaginationLink,
114
+ v as PaginationNext,
115
+ P as PaginationPrevious
116
+ };
@@ -0,0 +1,13 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare function Popover({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Root>): JSX.Element;
6
+
7
+ export declare function PopoverAnchor({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Anchor>): JSX.Element;
8
+
9
+ export declare function PopoverContent({ className, align, sideOffset, ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Content>): JSX.Element;
10
+
11
+ export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX.Element;
12
+
13
+ export { }