@websolutespa/ask-ui 1.0.2 → 1.0.4

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 (133) hide show
  1. package/dist/components/accordion.d.mts +25 -0
  2. package/dist/components/accordion.mjs +55 -0
  3. package/dist/components/ai-elements/attachments.d.mts +94 -0
  4. package/dist/components/ai-elements/attachments.mjs +174 -0
  5. package/dist/components/ai-elements/conversation.d.mts +51 -0
  6. package/dist/components/ai-elements/conversation.mjs +85 -0
  7. package/dist/components/ai-elements/message.d.mts +89 -0
  8. package/dist/components/ai-elements/message.mjs +175 -0
  9. package/dist/components/ai-elements/prompt-input.d.mts +277 -0
  10. package/dist/components/ai-elements/prompt-input.mjs +703 -0
  11. package/dist/components/ai-elements/speech-input.d.mts +64 -0
  12. package/dist/components/ai-elements/speech-input.mjs +153 -0
  13. package/dist/components/alert-dialog.d.mts +60 -0
  14. package/dist/components/alert-dialog.mjs +101 -0
  15. package/dist/components/alert.d.mts +28 -0
  16. package/dist/components/alert.mjs +43 -0
  17. package/dist/components/aspect-ratio.d.mts +9 -0
  18. package/dist/components/aspect-ratio.mjs +12 -0
  19. package/dist/components/avatar.d.mts +34 -0
  20. package/dist/components/avatar.mjs +51 -0
  21. package/dist/components/badge.d.mts +19 -0
  22. package/dist/components/badge.mjs +27 -0
  23. package/dist/components/breadcrumb.d.mts +38 -0
  24. package/dist/components/breadcrumb.mjs +70 -0
  25. package/dist/components/button-group.d.mts +28 -0
  26. package/dist/components/button-group.mjs +38 -0
  27. package/dist/components/button.d.mts +21 -0
  28. package/dist/components/button.mjs +47 -0
  29. package/dist/components/calendar.d.mts +30 -0
  30. package/dist/components/calendar.mjs +109 -0
  31. package/dist/components/card.d.mts +37 -0
  32. package/dist/components/card.mjs +56 -0
  33. package/dist/components/carousel.d.mts +56 -0
  34. package/dist/components/carousel.mjs +132 -0
  35. package/dist/components/chart.d.mts +78 -0
  36. package/dist/components/chart.mjs +146 -0
  37. package/dist/components/checkbox.d.mts +11 -0
  38. package/dist/components/checkbox.mjs +21 -0
  39. package/dist/components/collapsible.d.mts +15 -0
  40. package/dist/components/collapsible.mjs +24 -0
  41. package/dist/components/combobox.d.mts +81 -0
  42. package/dist/components/combobox.mjs +163 -0
  43. package/dist/components/command.d.mts +54 -0
  44. package/dist/components/command.mjs +88 -0
  45. package/dist/components/context-menu.d.mts +85 -0
  46. package/dist/components/context-menu.mjs +125 -0
  47. package/dist/components/dialog.d.mts +51 -0
  48. package/dist/components/dialog.mjs +96 -0
  49. package/dist/components/direction.d.mts +15 -0
  50. package/dist/components/direction.mjs +14 -0
  51. package/dist/components/drawer.d.mts +47 -0
  52. package/dist/components/drawer.mjs +79 -0
  53. package/dist/components/dropdown-menu.d.mts +87 -0
  54. package/dist/components/dropdown-menu.mjs +131 -0
  55. package/dist/components/empty.d.mts +35 -0
  56. package/dist/components/empty.mjs +59 -0
  57. package/dist/components/field.d.mts +64 -0
  58. package/dist/components/field.mjs +110 -0
  59. package/dist/components/hover-card.d.mts +22 -0
  60. package/dist/components/hover-card.mjs +33 -0
  61. package/dist/components/input-group.d.mts +43 -0
  62. package/dist/components/input-group.mjs +79 -0
  63. package/dist/components/input-otp.d.mts +28 -0
  64. package/dist/components/input-otp.mjs +47 -0
  65. package/dist/components/input.d.mts +11 -0
  66. package/dist/components/input.mjs +14 -0
  67. package/dist/components/item.d.mts +62 -0
  68. package/dist/components/item.mjs +117 -0
  69. package/dist/components/kbd.d.mts +13 -0
  70. package/dist/components/kbd.mjs +19 -0
  71. package/dist/components/label.d.mts +11 -0
  72. package/dist/components/label.mjs +15 -0
  73. package/dist/components/menubar.d.mts +90 -0
  74. package/dist/components/menubar.mjs +135 -0
  75. package/dist/components/native-select.d.mts +21 -0
  76. package/dist/components/native-select.mjs +37 -0
  77. package/dist/components/navigation-menu.d.mts +46 -0
  78. package/dist/components/navigation-menu.mjs +80 -0
  79. package/dist/components/pagination.d.mts +45 -0
  80. package/dist/components/pagination.mjs +80 -0
  81. package/dist/components/popover.d.mts +34 -0
  82. package/dist/components/popover.mjs +56 -0
  83. package/dist/components/progress.d.mts +12 -0
  84. package/dist/components/progress.mjs +20 -0
  85. package/dist/components/radio-group.d.mts +15 -0
  86. package/dist/components/radio-group.mjs +27 -0
  87. package/dist/components/resizable.d.mts +20 -0
  88. package/dist/components/resizable.mjs +28 -0
  89. package/dist/components/scroll-area.d.mts +17 -0
  90. package/dist/components/scroll-area.mjs +37 -0
  91. package/dist/components/select.d.mts +53 -0
  92. package/dist/components/select.mjs +100 -0
  93. package/dist/components/separator.d.mts +13 -0
  94. package/dist/components/separator.mjs +17 -0
  95. package/dist/components/sheet.d.mts +42 -0
  96. package/dist/components/sheet.mjs +90 -0
  97. package/dist/components/sidebar.d.mts +167 -0
  98. package/dist/components/sidebar.mjs +374 -0
  99. package/dist/components/skeleton.d.mts +9 -0
  100. package/dist/components/skeleton.mjs +12 -0
  101. package/dist/components/slider.d.mts +15 -0
  102. package/dist/components/slider.mjs +36 -0
  103. package/dist/components/sonner.d.mts +9 -0
  104. package/dist/components/sonner.mjs +30 -0
  105. package/dist/components/spinner.d.mts +9 -0
  106. package/dist/components/spinner.mjs +14 -0
  107. package/dist/components/switch.d.mts +14 -0
  108. package/dist/components/switch.mjs +20 -0
  109. package/dist/components/table.d.mts +38 -0
  110. package/dist/components/table.mjs +67 -0
  111. package/dist/components/tabs.d.mts +30 -0
  112. package/dist/components/tabs.mjs +46 -0
  113. package/dist/components/textarea.d.mts +10 -0
  114. package/dist/components/textarea.mjs +13 -0
  115. package/dist/components/toggle-group.d.mts +28 -0
  116. package/dist/components/toggle-group.mjs +51 -0
  117. package/dist/components/toggle.d.mts +19 -0
  118. package/dist/components/toggle.mjs +37 -0
  119. package/dist/components/tooltip.d.mts +23 -0
  120. package/dist/components/tooltip.mjs +36 -0
  121. package/dist/exports/components.d.mts +61 -2248
  122. package/dist/exports/components.mjs +60 -4481
  123. package/dist/exports/hooks.d.mts +1 -3
  124. package/dist/exports/hooks.mjs +1 -1
  125. package/dist/exports/lib.d.mts +1 -1
  126. package/dist/exports/lib.mjs +1 -1
  127. package/dist/hooks/use-mobile.d.mts +4 -0
  128. package/dist/{use-mobile-SSHtEcOs.mjs → hooks/use-mobile.mjs} +1 -1
  129. package/dist/index.d.mts +1 -1
  130. package/dist/index.mjs +1 -1
  131. package/dist/{utils-CCM7KiiI.d.mts → lib/utils.d.mts} +1 -1
  132. package/dist/{utils-XdqGR1qq.mjs → lib/utils.mjs} +1 -1
  133. package/package.json +7 -7
@@ -0,0 +1,46 @@
1
+ import { NavigationMenu } from "radix-ui";
2
+ import * as React from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+ import * as _$class_variance_authority_types0 from "class-variance-authority/types";
5
+
6
+ //#region src/components/navigation-menu.d.ts
7
+ declare function NavigationMenu$1({
8
+ className,
9
+ children,
10
+ viewport,
11
+ ...props
12
+ }: React.ComponentProps<typeof NavigationMenu.Root> & {
13
+ viewport?: boolean;
14
+ }): _$react_jsx_runtime0.JSX.Element;
15
+ declare function NavigationMenuList({
16
+ className,
17
+ ...props
18
+ }: React.ComponentProps<typeof NavigationMenu.List>): _$react_jsx_runtime0.JSX.Element;
19
+ declare function NavigationMenuItem({
20
+ className,
21
+ ...props
22
+ }: React.ComponentProps<typeof NavigationMenu.Item>): _$react_jsx_runtime0.JSX.Element;
23
+ declare const navigationMenuTriggerStyle: (props?: _$class_variance_authority_types0.ClassProp | undefined) => string;
24
+ declare function NavigationMenuTrigger({
25
+ className,
26
+ children,
27
+ ...props
28
+ }: React.ComponentProps<typeof NavigationMenu.Trigger>): _$react_jsx_runtime0.JSX.Element;
29
+ declare function NavigationMenuContent({
30
+ className,
31
+ ...props
32
+ }: React.ComponentProps<typeof NavigationMenu.Content>): _$react_jsx_runtime0.JSX.Element;
33
+ declare function NavigationMenuViewport({
34
+ className,
35
+ ...props
36
+ }: React.ComponentProps<typeof NavigationMenu.Viewport>): _$react_jsx_runtime0.JSX.Element;
37
+ declare function NavigationMenuLink({
38
+ className,
39
+ ...props
40
+ }: React.ComponentProps<typeof NavigationMenu.Link>): _$react_jsx_runtime0.JSX.Element;
41
+ declare function NavigationMenuIndicator({
42
+ className,
43
+ ...props
44
+ }: React.ComponentProps<typeof NavigationMenu.Indicator>): _$react_jsx_runtime0.JSX.Element;
45
+ //#endregion
46
+ export { NavigationMenu$1 as NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
@@ -0,0 +1,80 @@
1
+ import { cn } from "../lib/utils.mjs";
2
+ import { ChevronDownIcon } from "lucide-react";
3
+ import { NavigationMenu } from "radix-ui";
4
+ import "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { cva } from "class-variance-authority";
7
+ //#region src/components/navigation-menu.tsx
8
+ function NavigationMenu$1({ className, children, viewport = true, ...props }) {
9
+ return /* @__PURE__ */ jsxs(NavigationMenu.Root, {
10
+ "data-slot": "navigation-menu",
11
+ "data-viewport": viewport,
12
+ className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className),
13
+ ...props,
14
+ children: [children, viewport && /* @__PURE__ */ jsx(NavigationMenuViewport, {})]
15
+ });
16
+ }
17
+ function NavigationMenuList({ className, ...props }) {
18
+ return /* @__PURE__ */ jsx(NavigationMenu.List, {
19
+ "data-slot": "navigation-menu-list",
20
+ className: cn("group flex flex-1 list-none items-center justify-center gap-0", className),
21
+ ...props
22
+ });
23
+ }
24
+ function NavigationMenuItem({ className, ...props }) {
25
+ return /* @__PURE__ */ jsx(NavigationMenu.Item, {
26
+ "data-slot": "navigation-menu-item",
27
+ className: cn("relative", className),
28
+ ...props
29
+ });
30
+ }
31
+ const navigationMenuTriggerStyle = cva("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");
32
+ function NavigationMenuTrigger({ className, children, ...props }) {
33
+ return /* @__PURE__ */ jsxs(NavigationMenu.Trigger, {
34
+ "data-slot": "navigation-menu-trigger",
35
+ className: cn(navigationMenuTriggerStyle(), "group", className),
36
+ ...props,
37
+ children: [
38
+ children,
39
+ " ",
40
+ /* @__PURE__ */ jsx(ChevronDownIcon, {
41
+ className: "relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180",
42
+ "aria-hidden": "true"
43
+ })
44
+ ]
45
+ });
46
+ }
47
+ function NavigationMenuContent({ className, ...props }) {
48
+ return /* @__PURE__ */ jsx(NavigationMenu.Content, {
49
+ "data-slot": "navigation-menu-content",
50
+ className: cn("top-0 left-0 w-full p-2 pr-2.5 ease-[cubic-bezier(0.22,1,0.36,1)] 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:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 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 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95", className),
51
+ ...props
52
+ });
53
+ }
54
+ function NavigationMenuViewport({ className, ...props }) {
55
+ return /* @__PURE__ */ jsx("div", {
56
+ className: cn("absolute top-full left-0 isolate z-50 flex justify-center"),
57
+ children: /* @__PURE__ */ jsx(NavigationMenu.Viewport, {
58
+ "data-slot": "navigation-menu-viewport",
59
+ className: cn("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-(--radix-navigation-menu-viewport-width) data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90", className),
60
+ ...props
61
+ })
62
+ });
63
+ }
64
+ function NavigationMenuLink({ className, ...props }) {
65
+ return /* @__PURE__ */ jsx(NavigationMenu.Link, {
66
+ "data-slot": "navigation-menu-link",
67
+ className: cn("flex items-center gap-1.5 rounded-md p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-sm data-[active=true]:bg-muted/50 data-[active=true]:hover:bg-muted data-[active=true]:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", className),
68
+ ...props
69
+ });
70
+ }
71
+ function NavigationMenuIndicator({ className, ...props }) {
72
+ return /* @__PURE__ */ jsx(NavigationMenu.Indicator, {
73
+ "data-slot": "navigation-menu-indicator",
74
+ className: cn("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in", className),
75
+ ...props,
76
+ children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
77
+ });
78
+ }
79
+ //#endregion
80
+ export { NavigationMenu$1 as NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
@@ -0,0 +1,45 @@
1
+ import { Button } from "./button.mjs";
2
+ import * as React from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/components/pagination.d.ts
6
+ declare function Pagination({
7
+ className,
8
+ ...props
9
+ }: React.ComponentProps<'nav'>): _$react_jsx_runtime0.JSX.Element;
10
+ declare function PaginationContent({
11
+ className,
12
+ ...props
13
+ }: React.ComponentProps<'ul'>): _$react_jsx_runtime0.JSX.Element;
14
+ declare function PaginationItem({
15
+ ...props
16
+ }: React.ComponentProps<'li'>): _$react_jsx_runtime0.JSX.Element;
17
+ type PaginationLinkProps = {
18
+ isActive?: boolean;
19
+ } & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
20
+ declare function PaginationLink({
21
+ className,
22
+ isActive,
23
+ size,
24
+ ...props
25
+ }: PaginationLinkProps): _$react_jsx_runtime0.JSX.Element;
26
+ declare function PaginationPrevious({
27
+ className,
28
+ text,
29
+ ...props
30
+ }: React.ComponentProps<typeof PaginationLink> & {
31
+ text?: string;
32
+ }): _$react_jsx_runtime0.JSX.Element;
33
+ declare function PaginationNext({
34
+ className,
35
+ text,
36
+ ...props
37
+ }: React.ComponentProps<typeof PaginationLink> & {
38
+ text?: string;
39
+ }): _$react_jsx_runtime0.JSX.Element;
40
+ declare function PaginationEllipsis({
41
+ className,
42
+ ...props
43
+ }: React.ComponentProps<'span'>): _$react_jsx_runtime0.JSX.Element;
44
+ //#endregion
45
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
@@ -0,0 +1,80 @@
1
+ import { cn } from "../lib/utils.mjs";
2
+ import { Button } from "./button.mjs";
3
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
4
+ import "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ //#region src/components/pagination.tsx
7
+ function Pagination({ className, ...props }) {
8
+ return /* @__PURE__ */ jsx("nav", {
9
+ role: "navigation",
10
+ "aria-label": "pagination",
11
+ "data-slot": "pagination",
12
+ className: cn("mx-auto flex w-full justify-center", className),
13
+ ...props
14
+ });
15
+ }
16
+ function PaginationContent({ className, ...props }) {
17
+ return /* @__PURE__ */ jsx("ul", {
18
+ "data-slot": "pagination-content",
19
+ className: cn("flex items-center gap-1", className),
20
+ ...props
21
+ });
22
+ }
23
+ function PaginationItem({ ...props }) {
24
+ return /* @__PURE__ */ jsx("li", {
25
+ "data-slot": "pagination-item",
26
+ ...props
27
+ });
28
+ }
29
+ function PaginationLink({ className, isActive, size = "icon", ...props }) {
30
+ return /* @__PURE__ */ jsx(Button, {
31
+ asChild: true,
32
+ variant: isActive ? "outline" : "ghost",
33
+ size,
34
+ className: cn(className),
35
+ children: /* @__PURE__ */ jsx("a", {
36
+ "aria-current": isActive ? "page" : void 0,
37
+ "data-slot": "pagination-link",
38
+ "data-active": isActive,
39
+ ...props
40
+ })
41
+ });
42
+ }
43
+ function PaginationPrevious({ className, text = "Previous", ...props }) {
44
+ return /* @__PURE__ */ jsxs(PaginationLink, {
45
+ "aria-label": "Go to previous page",
46
+ size: "default",
47
+ className: cn("pl-2!", className),
48
+ ...props,
49
+ children: [/* @__PURE__ */ jsx(ChevronLeftIcon, { "data-icon": "inline-start" }), /* @__PURE__ */ jsx("span", {
50
+ className: "hidden sm:block",
51
+ children: text
52
+ })]
53
+ });
54
+ }
55
+ function PaginationNext({ className, text = "Next", ...props }) {
56
+ return /* @__PURE__ */ jsxs(PaginationLink, {
57
+ "aria-label": "Go to next page",
58
+ size: "default",
59
+ className: cn("pr-2!", className),
60
+ ...props,
61
+ children: [/* @__PURE__ */ jsx("span", {
62
+ className: "hidden sm:block",
63
+ children: text
64
+ }), /* @__PURE__ */ jsx(ChevronRightIcon, { "data-icon": "inline-end" })]
65
+ });
66
+ }
67
+ function PaginationEllipsis({ className, ...props }) {
68
+ return /* @__PURE__ */ jsxs("span", {
69
+ "aria-hidden": true,
70
+ "data-slot": "pagination-ellipsis",
71
+ className: cn("flex size-9 items-center justify-center [&_svg:not([class*='size-'])]:size-4", className),
72
+ ...props,
73
+ children: [/* @__PURE__ */ jsx(MoreHorizontalIcon, {}), /* @__PURE__ */ jsx("span", {
74
+ className: "sr-only",
75
+ children: "More pages"
76
+ })]
77
+ });
78
+ }
79
+ //#endregion
80
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
@@ -0,0 +1,34 @@
1
+ import { Popover } from "radix-ui";
2
+ import * as React from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/components/popover.d.ts
6
+ declare function Popover$1({
7
+ ...props
8
+ }: React.ComponentProps<typeof Popover.Root>): _$react_jsx_runtime0.JSX.Element;
9
+ declare function PopoverTrigger({
10
+ ...props
11
+ }: React.ComponentProps<typeof Popover.Trigger>): _$react_jsx_runtime0.JSX.Element;
12
+ declare function PopoverContent({
13
+ className,
14
+ align,
15
+ sideOffset,
16
+ ...props
17
+ }: React.ComponentProps<typeof Popover.Content>): _$react_jsx_runtime0.JSX.Element;
18
+ declare function PopoverAnchor({
19
+ ...props
20
+ }: React.ComponentProps<typeof Popover.Anchor>): _$react_jsx_runtime0.JSX.Element;
21
+ declare function PopoverHeader({
22
+ className,
23
+ ...props
24
+ }: React.ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
25
+ declare function PopoverTitle({
26
+ className,
27
+ ...props
28
+ }: React.ComponentProps<'h2'>): _$react_jsx_runtime0.JSX.Element;
29
+ declare function PopoverDescription({
30
+ className,
31
+ ...props
32
+ }: React.ComponentProps<'p'>): _$react_jsx_runtime0.JSX.Element;
33
+ //#endregion
34
+ export { Popover$1 as Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ import { cn } from "../lib/utils.mjs";
3
+ import { Popover } from "radix-ui";
4
+ import "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/components/popover.tsx
7
+ function Popover$1({ ...props }) {
8
+ return /* @__PURE__ */ jsx(Popover.Root, {
9
+ "data-slot": "popover",
10
+ ...props
11
+ });
12
+ }
13
+ function PopoverTrigger({ ...props }) {
14
+ return /* @__PURE__ */ jsx(Popover.Trigger, {
15
+ "data-slot": "popover-trigger",
16
+ ...props
17
+ });
18
+ }
19
+ function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
20
+ return /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Content, {
21
+ "data-slot": "popover-content",
22
+ align,
23
+ sideOffset,
24
+ className: cn("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
25
+ ...props
26
+ }) });
27
+ }
28
+ function PopoverAnchor({ ...props }) {
29
+ return /* @__PURE__ */ jsx(Popover.Anchor, {
30
+ "data-slot": "popover-anchor",
31
+ ...props
32
+ });
33
+ }
34
+ function PopoverHeader({ className, ...props }) {
35
+ return /* @__PURE__ */ jsx("div", {
36
+ "data-slot": "popover-header",
37
+ className: cn("flex flex-col gap-1 text-sm", className),
38
+ ...props
39
+ });
40
+ }
41
+ function PopoverTitle({ className, ...props }) {
42
+ return /* @__PURE__ */ jsx("div", {
43
+ "data-slot": "popover-title",
44
+ className: cn("font-medium", className),
45
+ ...props
46
+ });
47
+ }
48
+ function PopoverDescription({ className, ...props }) {
49
+ return /* @__PURE__ */ jsx("p", {
50
+ "data-slot": "popover-description",
51
+ className: cn("text-muted-foreground", className),
52
+ ...props
53
+ });
54
+ }
55
+ //#endregion
56
+ export { Popover$1 as Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
@@ -0,0 +1,12 @@
1
+ import { Progress } from "radix-ui";
2
+ import * as React from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/components/progress.d.ts
6
+ declare function Progress$1({
7
+ className,
8
+ value,
9
+ ...props
10
+ }: React.ComponentProps<typeof Progress.Root>): _$react_jsx_runtime0.JSX.Element;
11
+ //#endregion
12
+ export { Progress$1 as Progress };
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ import { cn } from "../lib/utils.mjs";
3
+ import { Progress } from "radix-ui";
4
+ import "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/components/progress.tsx
7
+ function Progress$1({ className, value, ...props }) {
8
+ return /* @__PURE__ */ jsx(Progress.Root, {
9
+ "data-slot": "progress",
10
+ className: cn("relative flex h-1.5 w-full items-center overflow-x-hidden rounded-full bg-muted", className),
11
+ ...props,
12
+ children: /* @__PURE__ */ jsx(Progress.Indicator, {
13
+ "data-slot": "progress-indicator",
14
+ className: "size-full flex-1 bg-primary transition-all",
15
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
16
+ })
17
+ });
18
+ }
19
+ //#endregion
20
+ export { Progress$1 as Progress };
@@ -0,0 +1,15 @@
1
+ import { RadioGroup } from "radix-ui";
2
+ import * as React from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/components/radio-group.d.ts
6
+ declare function RadioGroup$1({
7
+ className,
8
+ ...props
9
+ }: React.ComponentProps<typeof RadioGroup.Root>): _$react_jsx_runtime0.JSX.Element;
10
+ declare function RadioGroupItem({
11
+ className,
12
+ ...props
13
+ }: React.ComponentProps<typeof RadioGroup.Item>): _$react_jsx_runtime0.JSX.Element;
14
+ //#endregion
15
+ export { RadioGroup$1 as RadioGroup, RadioGroupItem };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { cn } from "../lib/utils.mjs";
3
+ import { RadioGroup } from "radix-ui";
4
+ import "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/components/radio-group.tsx
7
+ function RadioGroup$1({ className, ...props }) {
8
+ return /* @__PURE__ */ jsx(RadioGroup.Root, {
9
+ "data-slot": "radio-group",
10
+ className: cn("grid w-full gap-3", className),
11
+ ...props
12
+ });
13
+ }
14
+ function RadioGroupItem({ className, ...props }) {
15
+ return /* @__PURE__ */ jsx(RadioGroup.Item, {
16
+ "data-slot": "radio-group-item",
17
+ className: cn("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 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", className),
18
+ ...props,
19
+ children: /* @__PURE__ */ jsx(RadioGroup.Indicator, {
20
+ "data-slot": "radio-group-indicator",
21
+ className: "flex size-4 items-center justify-center",
22
+ children: /* @__PURE__ */ jsx("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
23
+ })
24
+ });
25
+ }
26
+ //#endregion
27
+ export { RadioGroup$1 as RadioGroup, RadioGroupItem };
@@ -0,0 +1,20 @@
1
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as ResizablePrimitive from "react-resizable-panels";
3
+
4
+ //#region src/components/resizable.d.ts
5
+ declare function ResizablePanelGroup({
6
+ className,
7
+ ...props
8
+ }: ResizablePrimitive.GroupProps): _$react_jsx_runtime0.JSX.Element;
9
+ declare function ResizablePanel({
10
+ ...props
11
+ }: ResizablePrimitive.PanelProps): _$react_jsx_runtime0.JSX.Element;
12
+ declare function ResizableHandle({
13
+ withHandle,
14
+ className,
15
+ ...props
16
+ }: ResizablePrimitive.SeparatorProps & {
17
+ withHandle?: boolean;
18
+ }): _$react_jsx_runtime0.JSX.Element;
19
+ //#endregion
20
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import { cn } from "../lib/utils.mjs";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import * as ResizablePrimitive from "react-resizable-panels";
5
+ //#region src/components/resizable.tsx
6
+ function ResizablePanelGroup({ className, ...props }) {
7
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Group, {
8
+ "data-slot": "resizable-panel-group",
9
+ className: cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className),
10
+ ...props
11
+ });
12
+ }
13
+ function ResizablePanel({ ...props }) {
14
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, {
15
+ "data-slot": "resizable-panel",
16
+ ...props
17
+ });
18
+ }
19
+ function ResizableHandle({ withHandle, className, ...props }) {
20
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Separator, {
21
+ "data-slot": "resizable-handle",
22
+ className: cn("relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", className),
23
+ ...props,
24
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" })
25
+ });
26
+ }
27
+ //#endregion
28
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,17 @@
1
+ import { ScrollArea } from "radix-ui";
2
+ import * as React from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/components/scroll-area.d.ts
6
+ declare function ScrollArea$1({
7
+ className,
8
+ children,
9
+ ...props
10
+ }: React.ComponentProps<typeof ScrollArea.Root>): _$react_jsx_runtime0.JSX.Element;
11
+ declare function ScrollBar({
12
+ className,
13
+ orientation,
14
+ ...props
15
+ }: React.ComponentProps<typeof ScrollArea.ScrollAreaScrollbar>): _$react_jsx_runtime0.JSX.Element;
16
+ //#endregion
17
+ export { ScrollArea$1 as ScrollArea, ScrollBar };
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { cn } from "../lib/utils.mjs";
3
+ import { ScrollArea } from "radix-ui";
4
+ import "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ //#region src/components/scroll-area.tsx
7
+ function ScrollArea$1({ className, children, ...props }) {
8
+ return /* @__PURE__ */ jsxs(ScrollArea.Root, {
9
+ "data-slot": "scroll-area",
10
+ className: cn("relative", className),
11
+ ...props,
12
+ children: [
13
+ /* @__PURE__ */ jsx(ScrollArea.Viewport, {
14
+ "data-slot": "scroll-area-viewport",
15
+ className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
16
+ children
17
+ }),
18
+ /* @__PURE__ */ jsx(ScrollBar, {}),
19
+ /* @__PURE__ */ jsx(ScrollArea.Corner, {})
20
+ ]
21
+ });
22
+ }
23
+ function ScrollBar({ className, orientation = "vertical", ...props }) {
24
+ return /* @__PURE__ */ jsx(ScrollArea.ScrollAreaScrollbar, {
25
+ "data-slot": "scroll-area-scrollbar",
26
+ "data-orientation": orientation,
27
+ orientation,
28
+ className: cn("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", className),
29
+ ...props,
30
+ children: /* @__PURE__ */ jsx(ScrollArea.ScrollAreaThumb, {
31
+ "data-slot": "scroll-area-thumb",
32
+ className: "relative flex-1 rounded-full bg-border"
33
+ })
34
+ });
35
+ }
36
+ //#endregion
37
+ export { ScrollArea$1 as ScrollArea, ScrollBar };
@@ -0,0 +1,53 @@
1
+ import { Select } from "radix-ui";
2
+ import * as React from "react";
3
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/components/select.d.ts
6
+ declare function Select$1({
7
+ ...props
8
+ }: React.ComponentProps<typeof Select.Root>): _$react_jsx_runtime0.JSX.Element;
9
+ declare function SelectGroup({
10
+ className,
11
+ ...props
12
+ }: React.ComponentProps<typeof Select.Group>): _$react_jsx_runtime0.JSX.Element;
13
+ declare function SelectValue({
14
+ ...props
15
+ }: React.ComponentProps<typeof Select.Value>): _$react_jsx_runtime0.JSX.Element;
16
+ declare function SelectTrigger({
17
+ className,
18
+ size,
19
+ children,
20
+ ...props
21
+ }: React.ComponentProps<typeof Select.Trigger> & {
22
+ size?: 'sm' | 'default';
23
+ }): _$react_jsx_runtime0.JSX.Element;
24
+ declare function SelectContent({
25
+ className,
26
+ children,
27
+ position,
28
+ align,
29
+ ...props
30
+ }: React.ComponentProps<typeof Select.Content>): _$react_jsx_runtime0.JSX.Element;
31
+ declare function SelectLabel({
32
+ className,
33
+ ...props
34
+ }: React.ComponentProps<typeof Select.Label>): _$react_jsx_runtime0.JSX.Element;
35
+ declare function SelectItem({
36
+ className,
37
+ children,
38
+ ...props
39
+ }: React.ComponentProps<typeof Select.Item>): _$react_jsx_runtime0.JSX.Element;
40
+ declare function SelectSeparator({
41
+ className,
42
+ ...props
43
+ }: React.ComponentProps<typeof Select.Separator>): _$react_jsx_runtime0.JSX.Element;
44
+ declare function SelectScrollUpButton({
45
+ className,
46
+ ...props
47
+ }: React.ComponentProps<typeof Select.ScrollUpButton>): _$react_jsx_runtime0.JSX.Element;
48
+ declare function SelectScrollDownButton({
49
+ className,
50
+ ...props
51
+ }: React.ComponentProps<typeof Select.ScrollDownButton>): _$react_jsx_runtime0.JSX.Element;
52
+ //#endregion
53
+ export { Select$1 as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };