@turingpaper/ui 0.0.1-test.2 → 0.0.1-test.3

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 (74) hide show
  1. package/dist/accordion.mjs +44 -83
  2. package/dist/alert-dialog.mjs +108 -175
  3. package/dist/avatar.mjs +40 -104
  4. package/dist/badge.mjs +10 -27
  5. package/dist/breadcrumb.mjs +82 -109
  6. package/dist/button.mjs +26 -38
  7. package/dist/card.mjs +62 -96
  8. package/dist/chart.mjs +208 -0
  9. package/dist/checkbox.mjs +25 -32
  10. package/dist/collapsible.mjs +5 -32
  11. package/dist/command.mjs +101 -165
  12. package/dist/components/accordion.d.ts +4 -5
  13. package/dist/components/alert-dialog.d.ts +19 -17
  14. package/dist/components/avatar.d.ts +4 -10
  15. package/dist/components/badge.d.ts +4 -4
  16. package/dist/components/breadcrumb.d.ts +16 -8
  17. package/dist/components/button.d.ts +5 -4
  18. package/dist/components/card.d.ts +7 -10
  19. package/dist/components/chart.d.ts +62 -0
  20. package/dist/components/checkbox.d.ts +1 -2
  21. package/dist/components/collapsible.d.ts +3 -4
  22. package/dist/components/command.d.ts +78 -16
  23. package/dist/components/dialog.d.ts +18 -16
  24. package/dist/components/drawer.d.ts +19 -10
  25. package/dist/components/dropdown-menu.d.ts +21 -27
  26. package/dist/components/hover-card.d.ts +3 -4
  27. package/dist/components/input-group.d.ts +1 -1
  28. package/dist/components/input-otp.d.ts +34 -0
  29. package/dist/components/input.d.ts +1 -1
  30. package/dist/components/label.d.ts +1 -2
  31. package/dist/components/pagination.d.ts +24 -13
  32. package/dist/components/popover.d.ts +4 -9
  33. package/dist/components/progress.d.ts +1 -2
  34. package/dist/components/radio-group.d.ts +2 -3
  35. package/dist/components/scroll-area.d.ts +2 -3
  36. package/dist/components/select.d.ts +11 -14
  37. package/dist/components/separator.d.ts +1 -2
  38. package/dist/components/sheet.d.ts +24 -13
  39. package/dist/components/skeleton.d.ts +1 -1
  40. package/dist/components/slider.d.ts +1 -2
  41. package/dist/components/switch.d.ts +1 -4
  42. package/dist/components/table.d.ts +8 -8
  43. package/dist/components/tabs.d.ts +5 -10
  44. package/dist/components/textarea.d.ts +1 -1
  45. package/dist/components/toggle-group.d.ts +2 -8
  46. package/dist/components/toggle.d.ts +1 -3
  47. package/dist/components/tooltip.d.ts +5 -6
  48. package/dist/dialog.mjs +91 -147
  49. package/dist/drawer.mjs +89 -118
  50. package/dist/dropdown-menu.mjs +141 -249
  51. package/dist/hover-card.mjs +20 -35
  52. package/dist/input-otp.mjs +48 -0
  53. package/dist/input.mjs +15 -13
  54. package/dist/label.mjs +17 -20
  55. package/dist/pagination.mjs +103 -126
  56. package/dist/popover.mjs +19 -76
  57. package/dist/progress.mjs +23 -28
  58. package/dist/provider.mjs +1 -1
  59. package/dist/radio-group.mjs +29 -42
  60. package/dist/scroll-area.mjs +36 -57
  61. package/dist/select.mjs +117 -182
  62. package/dist/separator.mjs +16 -18
  63. package/dist/sheet.mjs +99 -128
  64. package/dist/skeleton.mjs +8 -6
  65. package/dist/slider.mjs +21 -57
  66. package/dist/styles.css +1 -1
  67. package/dist/switch.mjs +25 -29
  68. package/dist/table.mjs +83 -110
  69. package/dist/tabs.mjs +42 -86
  70. package/dist/textarea.mjs +16 -16
  71. package/dist/toggle-group.mjs +32 -67
  72. package/dist/toggle.mjs +22 -28
  73. package/dist/tooltip.mjs +20 -52
  74. package/package.json +11 -1
package/dist/checkbox.mjs CHANGED
@@ -1,34 +1,27 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Checkbox as e } from "radix-ui";
3
- import { cn as t } from "./utils.mjs";
4
- import { CheckIcon as d } from "lucide-react";
5
- function l({
6
- className: i,
7
- ...a
8
- }) {
9
- return /* @__PURE__ */ r(
10
- e.Root,
11
- {
12
- "data-slot": "checkbox",
13
- className: t(
14
- "peer relative flex size-4 shrink-0 items-center justify-center rounded-[6px] border border-input transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",
15
- i
16
- ),
17
- ...a,
18
- children: /* @__PURE__ */ r(
19
- e.Indicator,
20
- {
21
- "data-slot": "checkbox-indicator",
22
- className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
23
- children: /* @__PURE__ */ r(
24
- d,
25
- {}
26
- )
27
- }
28
- )
29
- }
30
- );
31
- }
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as c from "react";
3
+ import * as r from "radix-ui";
4
+ import { Check as s } from "lucide-react";
5
+ import { cn as o } from "./utils.mjs";
6
+ const n = c.forwardRef(({ className: i, ...t }, a) => /* @__PURE__ */ e(
7
+ r.Root,
8
+ {
9
+ ref: a,
10
+ className: o(
11
+ "grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
12
+ i
13
+ ),
14
+ ...t,
15
+ children: /* @__PURE__ */ e(
16
+ r.Indicator,
17
+ {
18
+ className: o("grid place-content-center text-current"),
19
+ children: /* @__PURE__ */ e(s, { className: "h-4 w-4" })
20
+ }
21
+ )
22
+ }
23
+ ));
24
+ n.displayName = r.Root.displayName;
32
25
  export {
33
- l as Checkbox
26
+ n as Checkbox
34
27
  };
@@ -1,34 +1,7 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Collapsible as t } from "radix-ui";
3
- function a({
4
- ...l
5
- }) {
6
- return /* @__PURE__ */ o(t.Root, { "data-slot": "collapsible", ...l });
7
- }
8
- function r({
9
- ...l
10
- }) {
11
- return /* @__PURE__ */ o(
12
- t.CollapsibleTrigger,
13
- {
14
- "data-slot": "collapsible-trigger",
15
- ...l
16
- }
17
- );
18
- }
19
- function n({
20
- ...l
21
- }) {
22
- return /* @__PURE__ */ o(
23
- t.CollapsibleContent,
24
- {
25
- "data-slot": "collapsible-content",
26
- ...l
27
- }
28
- );
29
- }
1
+ import * as o from "radix-ui";
2
+ const l = o.Root, e = o.CollapsibleTrigger, i = o.CollapsibleContent;
30
3
  export {
31
- a as Collapsible,
32
- n as CollapsibleContent,
33
- r as CollapsibleTrigger
4
+ l as Collapsible,
5
+ i as CollapsibleContent,
6
+ e as CollapsibleTrigger
34
7
  };
package/dist/command.mjs CHANGED
@@ -1,173 +1,109 @@
1
- import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
- import { Command as n } from "cmdk";
3
- import { cn as a } from "./utils.mjs";
4
- import { Dialog as c, DialogHeader as i, DialogTitle as u, DialogDescription as p, DialogContent as g } from "./dialog.mjs";
5
- import { InputGroup as f, InputGroupAddon as h } from "./input-group.mjs";
6
- import { SearchIcon as x, CheckIcon as y } from "lucide-react";
7
- function I({
8
- className: e,
9
- ...o
10
- }) {
11
- return /* @__PURE__ */ t(
12
- n,
13
- {
14
- "data-slot": "command",
15
- className: a(
16
- "flex size-full flex-col overflow-hidden rounded-4xl bg-popover p-1 text-popover-foreground",
17
- e
18
- ),
19
- ...o
20
- }
21
- );
22
- }
23
- function D({
24
- title: e = "Command Palette",
25
- description: o = "Search for a command to run...",
26
- children: r,
27
- className: m,
28
- showCloseButton: s = !1,
29
- ...l
30
- }) {
31
- return /* @__PURE__ */ d(c, { ...l, children: [
32
- /* @__PURE__ */ d(i, { className: "sr-only", children: [
33
- /* @__PURE__ */ t(u, { children: e }),
34
- /* @__PURE__ */ t(p, { children: o })
35
- ] }),
36
- /* @__PURE__ */ t(
37
- g,
38
- {
39
- className: a(
40
- "top-1/3 translate-y-0 overflow-hidden rounded-4xl! p-0",
41
- m
42
- ),
43
- showCloseButton: s,
44
- children: r
45
- }
46
- )
47
- ] });
48
- }
49
- function S({
50
- className: e,
51
- ...o
52
- }) {
53
- return /* @__PURE__ */ t("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: /* @__PURE__ */ d(f, { className: "h-9 bg-input/30", children: [
54
- /* @__PURE__ */ t(
55
- n.Input,
56
- {
57
- "data-slot": "command-input",
58
- className: a(
59
- "w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
60
- e
61
- ),
62
- ...o
63
- }
1
+ import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import { Command as o } from "cmdk";
4
+ import { Search as p } from "lucide-react";
5
+ import { cn as r } from "./utils.mjs";
6
+ import { Dialog as i, DialogContent as l } from "./dialog.mjs";
7
+ const n = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ t(
8
+ o,
9
+ {
10
+ ref: d,
11
+ className: r(
12
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
13
+ e
64
14
  ),
65
- /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(x, { className: "size-4 shrink-0 opacity-50" }) })
66
- ] }) });
67
- }
68
- function z({
69
- className: e,
70
- ...o
71
- }) {
72
- return /* @__PURE__ */ t(
73
- n.List,
74
- {
75
- "data-slot": "command-list",
76
- className: a(
77
- "no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
78
- e
79
- ),
80
- ...o
81
- }
82
- );
83
- }
84
- function G({
85
- className: e,
86
- ...o
87
- }) {
88
- return /* @__PURE__ */ t(
89
- n.Empty,
90
- {
91
- "data-slot": "command-empty",
92
- className: a("py-6 text-center text-sm", e),
93
- ...o
94
- }
95
- );
96
- }
97
- function _({
98
- className: e,
99
- ...o
100
- }) {
101
- return /* @__PURE__ */ t(
102
- n.Group,
15
+ ...a
16
+ }
17
+ ));
18
+ n.displayName = o.displayName;
19
+ const C = ({ children: e, ...a }) => /* @__PURE__ */ t(i, { ...a, children: /* @__PURE__ */ t(l, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ t(n, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), c = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ s("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
20
+ /* @__PURE__ */ t(p, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
21
+ /* @__PURE__ */ t(
22
+ o.Input,
103
23
  {
104
- "data-slot": "command-group",
105
- className: a(
106
- "overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-3 **:[[cmdk-group-heading]]:py-2 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
24
+ ref: d,
25
+ className: r(
26
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
107
27
  e
108
28
  ),
109
- ...o
29
+ ...a
110
30
  }
111
- );
112
- }
113
- function j({
114
- className: e,
115
- ...o
116
- }) {
117
- return /* @__PURE__ */ t(
118
- n.Separator,
119
- {
120
- "data-slot": "command-separator",
121
- className: a("my-1 h-px bg-border/50", e),
122
- ...o
123
- }
124
- );
125
- }
126
- function E({
127
- className: e,
128
- children: o,
129
- ...r
130
- }) {
131
- return /* @__PURE__ */ d(
132
- n.Item,
133
- {
134
- "data-slot": "command-item",
135
- className: a(
136
- "group/command-item relative flex cursor-default items-center gap-2 rounded-lg px-3 py-2 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-2xl data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",
137
- e
138
- ),
139
- ...r,
140
- children: [
141
- o,
142
- /* @__PURE__ */ t(y, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })
143
- ]
144
- }
145
- );
146
- }
147
- function L({
31
+ )
32
+ ] }));
33
+ c.displayName = o.Input.displayName;
34
+ const u = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ t(
35
+ o.List,
36
+ {
37
+ ref: d,
38
+ className: r("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
39
+ ...a
40
+ }
41
+ ));
42
+ u.displayName = o.List.displayName;
43
+ const f = m.forwardRef((e, a) => /* @__PURE__ */ t(
44
+ o.Empty,
45
+ {
46
+ ref: a,
47
+ className: "py-6 text-center text-sm",
48
+ ...e
49
+ }
50
+ ));
51
+ f.displayName = o.Empty.displayName;
52
+ const g = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ t(
53
+ o.Group,
54
+ {
55
+ ref: d,
56
+ className: r(
57
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
58
+ e
59
+ ),
60
+ ...a
61
+ }
62
+ ));
63
+ g.displayName = o.Group.displayName;
64
+ const x = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ t(
65
+ o.Separator,
66
+ {
67
+ ref: d,
68
+ className: r("-mx-1 h-px bg-border", e),
69
+ ...a
70
+ }
71
+ ));
72
+ x.displayName = o.Separator.displayName;
73
+ const h = m.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ t(
74
+ o.Item,
75
+ {
76
+ ref: d,
77
+ className: r(
78
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
79
+ e
80
+ ),
81
+ ...a
82
+ }
83
+ ));
84
+ h.displayName = o.Item.displayName;
85
+ const y = ({
148
86
  className: e,
149
- ...o
150
- }) {
151
- return /* @__PURE__ */ t(
152
- "span",
153
- {
154
- "data-slot": "command-shortcut",
155
- className: a(
156
- "ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground",
157
- e
158
- ),
159
- ...o
160
- }
161
- );
162
- }
87
+ ...a
88
+ }) => /* @__PURE__ */ t(
89
+ "span",
90
+ {
91
+ className: r(
92
+ "ml-auto text-xs tracking-widest text-muted-foreground",
93
+ e
94
+ ),
95
+ ...a
96
+ }
97
+ );
98
+ y.displayName = "CommandShortcut";
163
99
  export {
164
- I as Command,
165
- D as CommandDialog,
166
- G as CommandEmpty,
167
- _ as CommandGroup,
168
- S as CommandInput,
169
- E as CommandItem,
170
- z as CommandList,
171
- j as CommandSeparator,
172
- L as CommandShortcut
100
+ n as Command,
101
+ C as CommandDialog,
102
+ f as CommandEmpty,
103
+ g as CommandGroup,
104
+ c as CommandInput,
105
+ h as CommandItem,
106
+ u as CommandList,
107
+ x as CommandSeparator,
108
+ y as CommandShortcut
173
109
  };
@@ -1,7 +1,6 @@
1
- import { Accordion as AccordionPrimitive } from 'radix-ui';
2
1
  import * as React from "react";
3
- declare function Accordion({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
- declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
2
+ declare const Accordion: any;
3
+ declare const AccordionItem: React.ForwardRefExoticComponent<any>;
4
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<any>;
5
+ declare const AccordionContent: React.ForwardRefExoticComponent<any>;
7
6
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,18 +1,20 @@
1
- import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
2
- import { Button } from './button';
3
1
  import * as React from "react";
4
- declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
- declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
- declare function AlertDialogContent({ className, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
9
- size?: "default" | "sm";
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
12
- declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
13
- declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
14
- declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
15
- declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
16
- declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): import("react/jsx-runtime").JSX.Element;
17
- declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): import("react/jsx-runtime").JSX.Element;
18
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
2
+ import * as AlertDialogPrimitive from "radix-ui";
3
+ declare const AlertDialog: any;
4
+ declare const AlertDialogTrigger: any;
5
+ declare const AlertDialogPortal: typeof AlertDialogPrimitive.Portal;
6
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<any>;
7
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<any>;
8
+ declare const AlertDialogHeader: {
9
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ declare const AlertDialogFooter: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<any>;
17
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<any>;
18
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<any>;
19
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<any>;
20
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -1,11 +1,5 @@
1
- import { Avatar as AvatarPrimitive } from 'radix-ui';
2
1
  import * as React from "react";
3
- declare function Avatar({ className, size, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root> & {
4
- size?: "default" | "sm" | "lg";
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
7
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
8
- declare function AvatarBadge({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
9
- declare function AvatarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
- declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
- export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge, };
2
+ declare const Avatar: React.ForwardRefExoticComponent<any>;
3
+ declare const AvatarImage: React.ForwardRefExoticComponent<any>;
4
+ declare const AvatarFallback: React.ForwardRefExoticComponent<any>;
5
+ export { Avatar, AvatarImage, AvatarFallback };
@@ -1,9 +1,9 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
- asChild?: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
6
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
9
9
  export { Badge, badgeVariants };
@@ -1,11 +1,19 @@
1
1
  import * as React from "react";
2
- declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
3
- declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
4
- declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
5
- declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
2
+ declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
3
+ separator?: React.ReactNode;
4
+ } & React.RefAttributes<HTMLElement>>;
5
+ declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
+ declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
7
+ declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
6
8
  asChild?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
9
- declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
10
- declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
9
+ } & React.RefAttributes<HTMLAnchorElement>>;
10
+ declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
+ declare const BreadcrumbSeparator: {
12
+ ({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const BreadcrumbEllipsis: {
16
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
11
19
  export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -1,10 +1,11 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
5
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
4
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }
10
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
10
11
  export { Button, buttonVariants };
@@ -1,11 +1,8 @@
1
1
  import * as React from "react";
2
- declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
3
- size?: "default" | "sm";
4
- }): import("react/jsx-runtime").JSX.Element;
5
- declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
- declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
7
- declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
- export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
2
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -0,0 +1,62 @@
1
+ import * as React from "react";
2
+ import * as RechartsPrimitive from "recharts";
3
+ declare const THEMES: {
4
+ readonly light: "";
5
+ readonly dark: ".dark";
6
+ };
7
+ export type ChartConfig = {
8
+ [k in string]: {
9
+ label?: React.ReactNode;
10
+ icon?: React.ComponentType;
11
+ } & ({
12
+ color?: string;
13
+ theme?: never;
14
+ } | {
15
+ color?: never;
16
+ theme: Record<keyof typeof THEMES, string>;
17
+ });
18
+ };
19
+ declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
20
+ config: ChartConfig;
21
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
22
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ declare const ChartStyle: ({ id, config }: {
24
+ id: string;
25
+ config: ChartConfig;
26
+ }) => import("react/jsx-runtime").JSX.Element | null;
27
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
28
+ declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType> & {
29
+ accessibilityLayer?: boolean;
30
+ active?: boolean | undefined;
31
+ includeHidden?: boolean | undefined;
32
+ allowEscapeViewBox?: import('recharts/types/util/types').AllowInDimension;
33
+ animationDuration?: import('recharts/types/util/types').AnimationDuration;
34
+ animationEasing?: import('recharts/types/util/types').AnimationTiming;
35
+ content?: import('recharts/types/component/Tooltip').ContentType<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType> | undefined;
36
+ coordinate?: Partial<import('recharts/types/util/types').Coordinate>;
37
+ cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
38
+ filterNull?: boolean;
39
+ defaultIndex?: number;
40
+ isAnimationActive?: boolean;
41
+ offset?: number;
42
+ payloadUniqBy?: import('recharts/types/util/payload/getUniqPayload').UniqueOption<import('recharts/types/component/DefaultTooltipContent').Payload<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType>> | undefined;
43
+ position?: Partial<import('recharts/types/util/types').Coordinate>;
44
+ reverseDirection?: import('recharts/types/util/types').AllowInDimension;
45
+ shared?: boolean;
46
+ trigger?: "hover" | "click";
47
+ useTranslate3d?: boolean;
48
+ viewBox?: import('recharts/types/util/types').CartesianViewBox;
49
+ wrapperStyle?: React.CSSProperties;
50
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
51
+ hideLabel?: boolean;
52
+ hideIndicator?: boolean;
53
+ indicator?: "line" | "dot" | "dashed";
54
+ nameKey?: string;
55
+ labelKey?: string;
56
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
57
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
58
+ declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
59
+ hideIcon?: boolean;
60
+ nameKey?: string;
61
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
62
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
@@ -1,4 +1,3 @@
1
- import { Checkbox as CheckboxPrimitive } from 'radix-ui';
2
1
  import * as React from "react";
3
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
2
+ declare const Checkbox: React.ForwardRefExoticComponent<any>;
4
3
  export { Checkbox };
@@ -1,5 +1,4 @@
1
- import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
2
- declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
- declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
4
- declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
1
+ declare const Collapsible: any;
2
+ declare const CollapsibleTrigger: any;
3
+ declare const CollapsibleContent: any;
5
4
  export { Collapsible, CollapsibleTrigger, CollapsibleContent };