@gv-tech/ui-web 2.10.0 → 2.12.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 (214) hide show
  1. package/dist/accordion.cjs.js +1 -0
  2. package/dist/accordion.d.ts +18 -0
  3. package/dist/accordion.es.js +259 -0
  4. package/dist/alert-dialog.cjs.js +7 -0
  5. package/dist/alert-dialog.d.ts +43 -0
  6. package/dist/alert-dialog.es.js +171 -0
  7. package/dist/alert.cjs.js +1 -0
  8. package/dist/alert.d.ts +18 -0
  9. package/dist/alert.es.js +32 -0
  10. package/dist/aspect-ratio.cjs.js +1 -0
  11. package/dist/aspect-ratio.d.ts +10 -0
  12. package/dist/aspect-ratio.es.js +43 -0
  13. package/dist/avatar.cjs.js +1 -0
  14. package/dist/avatar.d.ts +15 -0
  15. package/dist/avatar.es.js +205 -0
  16. package/dist/badge.cjs.js +1 -0
  17. package/dist/badge.d.ts +16 -0
  18. package/dist/badge.es.js +26 -0
  19. package/dist/breadcrumb.cjs.js +1 -0
  20. package/dist/breadcrumb.d.ts +35 -0
  21. package/dist/breadcrumb.es.js +69 -0
  22. package/dist/button.cjs.js +1 -0
  23. package/dist/button.d.ts +17 -0
  24. package/dist/button.es.js +40 -0
  25. package/dist/calendar.cjs.js +1 -0
  26. package/dist/calendar.d.ts +29 -0
  27. package/dist/calendar.es.js +2976 -0
  28. package/dist/card.cjs.js +1 -0
  29. package/dist/card.d.ts +19 -0
  30. package/dist/card.es.js +33 -0
  31. package/dist/carousel.cjs.js +1 -0
  32. package/dist/carousel.d.ts +50 -0
  33. package/dist/carousel.es.js +1403 -0
  34. package/dist/chart.cjs.js +16 -0
  35. package/dist/chart.d.ts +60 -0
  36. package/dist/chart.es.js +4402 -0
  37. package/dist/checkbox.cjs.js +1 -0
  38. package/dist/checkbox.d.ts +10 -0
  39. package/dist/checkbox.es.js +258 -0
  40. package/dist/collapsible.cjs.js +1 -0
  41. package/dist/collapsible.d.ts +20 -0
  42. package/dist/collapsible.es.js +7 -0
  43. package/dist/command.cjs.js +1 -0
  44. package/dist/command.d.ts +115 -0
  45. package/dist/command.es.js +396 -0
  46. package/dist/context-menu.cjs.js +1 -0
  47. package/dist/context-menu.d.ts +80 -0
  48. package/dist/context-menu.es.js +328 -0
  49. package/dist/dialog.cjs.js +1 -0
  50. package/dist/dialog.d.ts +31 -0
  51. package/dist/dialog.es.js +66 -0
  52. package/dist/drawer.cjs.js +3 -0
  53. package/dist/drawer.d.ts +65 -0
  54. package/dist/drawer.es.js +1085 -0
  55. package/dist/dropdown-menu.cjs.js +1 -0
  56. package/dist/dropdown-menu.d.ts +80 -0
  57. package/dist/dropdown-menu.es.js +316 -0
  58. package/dist/form.cjs.js +1 -0
  59. package/dist/form.d.ts +53 -0
  60. package/dist/form.es.js +355 -0
  61. package/dist/hover-card.cjs.js +1 -0
  62. package/dist/hover-card.d.ts +19 -0
  63. package/dist/hover-card.es.js +188 -0
  64. package/dist/index-0ioNhtNM.mjs +10 -0
  65. package/dist/index-3j-XAIXT.mjs +55 -0
  66. package/dist/index-B2XtpfGY.js +1 -0
  67. package/dist/index-B39Lzq0v.js +1 -0
  68. package/dist/index-B7n6fy75.js +1 -0
  69. package/dist/index-B8dxbSWX.js +41 -0
  70. package/dist/index-BGIK9FQF.js +1 -0
  71. package/dist/index-BZPx6jYI.mjs +8 -0
  72. package/dist/index-BoNjHhm4.js +1 -0
  73. package/dist/index-BtZvtDmp.js +1 -0
  74. package/dist/index-Bv7qrYW6.mjs +180 -0
  75. package/dist/index-ByiPJW53.js +5 -0
  76. package/dist/index-C0dlIQIi.js +1 -0
  77. package/dist/index-C1qb0595.mjs +27 -0
  78. package/dist/index-C7HEunrh.mjs +15 -0
  79. package/dist/index-C8ni3LLa.js +1 -0
  80. package/dist/index-CCKe-Mpx.mjs +6 -0
  81. package/dist/index-CD6_IrA-.mjs +10 -0
  82. package/dist/index-CRyCZJLa.mjs +677 -0
  83. package/dist/index-CVx1AgNG.mjs +615 -0
  84. package/dist/index-Ce5TOFAK.js +1 -0
  85. package/dist/index-CeSLNJ60.mjs +32 -0
  86. package/dist/index-CefEQe_4.js +1 -0
  87. package/dist/index-Cj5hzyBi.js +1 -0
  88. package/dist/index-Cjj_rUPu.js +1 -0
  89. package/dist/index-Cl3G0jzM.js +1 -0
  90. package/dist/index-CsjrqSSN.js +1 -0
  91. package/dist/index-CwfE56Ep.mjs +1545 -0
  92. package/dist/index-CwyAfCwY.js +1 -0
  93. package/dist/index-CzY-WZXL.js +1 -0
  94. package/dist/index-D2HnlO3y.js +1 -0
  95. package/dist/index-DAWHN3cH.mjs +85 -0
  96. package/dist/index-DFdF7K7v.mjs +50 -0
  97. package/dist/index-DIsg7zU7.js +1 -0
  98. package/dist/index-DKN_vhyX.mjs +32 -0
  99. package/dist/index-DLcqcWxM.mjs +29 -0
  100. package/dist/index-DSxf1gN6.mjs +118 -0
  101. package/dist/index-DYxWvftI.js +1 -0
  102. package/dist/index-DaILh3TV.mjs +32 -0
  103. package/dist/index-Dfzl8TxY.mjs +136 -0
  104. package/dist/index-Dko2XdTk.js +1 -0
  105. package/dist/index-DlY82G31.mjs +245 -0
  106. package/dist/index-DnFcfnA9.mjs +13 -0
  107. package/dist/index-IZ2gq03c.mjs +68 -0
  108. package/dist/index-K9FzbxYw.mjs +93 -0
  109. package/dist/index-Le8p9oP4.mjs +60 -0
  110. package/dist/index-MQ0c3ZX_.js +1 -0
  111. package/dist/index-_XxjJPRD.js +1 -0
  112. package/dist/index-_wdrnYim.js +1 -0
  113. package/dist/index-jv3B4mTd.js +1 -0
  114. package/dist/index-kaM0u2Q1.js +1 -0
  115. package/dist/index-p6xVFRb4.mjs +52 -0
  116. package/dist/index-rKs9bXHr.mjs +6 -0
  117. package/dist/index-vuPgkS0V.mjs +70 -0
  118. package/dist/index.cjs.js +1 -0
  119. package/dist/index.d.ts +1288 -0
  120. package/dist/index.es.js +289 -0
  121. package/dist/input.cjs.js +1 -0
  122. package/dist/input.d.ts +9 -0
  123. package/dist/input.es.js +19 -0
  124. package/dist/jsx-runtime-nZSsnGb7.js +6 -0
  125. package/dist/jsx-runtime-tc70JA_2.mjs +264 -0
  126. package/dist/label.cjs.js +1 -0
  127. package/dist/label.d.ts +11 -0
  128. package/dist/label.es.js +22 -0
  129. package/dist/menubar.cjs.js +1 -0
  130. package/dist/menubar.d.ts +79 -0
  131. package/dist/menubar.es.js +473 -0
  132. package/dist/navigation-menu.cjs.js +1 -0
  133. package/dist/navigation-menu.d.ts +47 -0
  134. package/dist/navigation-menu.es.js +673 -0
  135. package/dist/pagination.cjs.js +1 -0
  136. package/dist/pagination.d.ts +68 -0
  137. package/dist/pagination.es.js +68 -0
  138. package/dist/popover.cjs.js +1 -0
  139. package/dist/popover.d.ts +24 -0
  140. package/dist/popover.es.js +242 -0
  141. package/dist/progress.cjs.js +6 -0
  142. package/dist/progress.d.ts +9 -0
  143. package/dist/progress.es.js +99 -0
  144. package/dist/radio-group.cjs.js +1 -0
  145. package/dist/radio-group.d.ts +16 -0
  146. package/dist/radio-group.es.js +253 -0
  147. package/dist/resizable.cjs.js +1 -0
  148. package/dist/resizable.d.ts +22 -0
  149. package/dist/resizable.es.js +1990 -0
  150. package/dist/scroll-area.cjs.js +1 -0
  151. package/dist/scroll-area.d.ts +14 -0
  152. package/dist/scroll-area.es.js +546 -0
  153. package/dist/search.cjs.js +1 -0
  154. package/dist/search.d.ts +15 -0
  155. package/dist/search.es.js +51 -0
  156. package/dist/select.cjs.js +1 -0
  157. package/dist/select.d.ts +54 -0
  158. package/dist/select.es.js +908 -0
  159. package/dist/separator.cjs.js +1 -0
  160. package/dist/separator.d.ts +9 -0
  161. package/dist/separator.es.js +35 -0
  162. package/dist/sheet.cjs.js +1 -0
  163. package/dist/sheet.d.ts +68 -0
  164. package/dist/sheet.es.js +66 -0
  165. package/dist/skeleton.cjs.js +1 -0
  166. package/dist/skeleton.d.ts +9 -0
  167. package/dist/skeleton.es.js +8 -0
  168. package/dist/slider.cjs.js +1 -0
  169. package/dist/slider.d.ts +9 -0
  170. package/dist/slider.es.js +442 -0
  171. package/dist/sonner.cjs.js +1 -0
  172. package/dist/sonner.d.ts +10 -0
  173. package/dist/sonner.es.js +764 -0
  174. package/dist/switch.cjs.js +1 -0
  175. package/dist/switch.d.ts +9 -0
  176. package/dist/switch.es.js +149 -0
  177. package/dist/table.cjs.js +1 -0
  178. package/dist/table.d.ts +43 -0
  179. package/dist/table.es.js +57 -0
  180. package/dist/tabs.cjs.js +1 -0
  181. package/dist/tabs.d.ts +24 -0
  182. package/dist/tabs.es.js +195 -0
  183. package/dist/text.cjs.js +1 -0
  184. package/dist/text.d.ts +17 -0
  185. package/dist/text.es.js +42 -0
  186. package/dist/textarea.cjs.js +1 -0
  187. package/dist/textarea.d.ts +9 -0
  188. package/dist/textarea.es.js +18 -0
  189. package/dist/theme-provider.cjs.js +1 -0
  190. package/dist/theme-provider.d.ts +9 -0
  191. package/dist/theme-provider.es.js +8 -0
  192. package/dist/theme-toggle.cjs.js +1 -0
  193. package/dist/theme-toggle.d.ts +8 -0
  194. package/dist/theme-toggle.es.js +78 -0
  195. package/dist/toast.cjs.js +1 -0
  196. package/dist/toast.d.ts +26 -0
  197. package/dist/toast.es.js +494 -0
  198. package/dist/toaster-CIpfms4W.js +1 -0
  199. package/dist/toaster-jBYXAPRk.mjs +118 -0
  200. package/dist/toaster.cjs.js +1 -0
  201. package/dist/toaster.d.ts +6 -0
  202. package/dist/toaster.es.js +6 -0
  203. package/dist/toggle-group.cjs.js +1 -0
  204. package/dist/toggle-group.d.ts +18 -0
  205. package/dist/toggle-group.es.js +170 -0
  206. package/dist/toggle.cjs.js +1 -0
  207. package/dist/toggle.d.ts +14 -0
  208. package/dist/toggle.es.js +14 -0
  209. package/dist/tooltip.cjs.js +1 -0
  210. package/dist/tooltip.d.ts +25 -0
  211. package/dist/tooltip.es.js +342 -0
  212. package/dist/utils-B6yFEsav.mjs +8 -0
  213. package/dist/utils-IjLH3w2e.js +1 -0
  214. package/package.json +1 -1
@@ -0,0 +1,68 @@
1
+ import { ButtonBaseProps } from '../../ui-core/src';
2
+ import { ClassProp } from 'class-variance-authority/types';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { PaginationContentBaseProps as PaginationContentProps } from '../../ui-core/src';
5
+ import { PaginationEllipsisBaseProps as PaginationEllipsisProps } from '../../ui-core/src';
6
+ import { PaginationItemBaseProps as PaginationItemProps } from '../../ui-core/src';
7
+ import { PaginationLinkBaseProps } from '../../ui-core/src';
8
+ import { PaginationNextBaseProps as PaginationNextProps } from '../../ui-core/src';
9
+ import { PaginationPreviousBaseProps as PaginationPreviousProps } from '../../ui-core/src';
10
+ import { PaginationBaseProps as PaginationProps } from '../../ui-core/src';
11
+ import * as React_2 from 'react';
12
+ import { VariantProps } from 'class-variance-authority';
13
+
14
+ declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>, ButtonBaseProps {
15
+ asChild?: boolean;
16
+ }
17
+
18
+ declare const buttonVariants: (props?: ({
19
+ variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
20
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
21
+ } & ClassProp) | undefined) => string;
22
+
23
+ export declare const Pagination: {
24
+ ({ className, ...props }: React_2.ComponentProps<"nav"> & PaginationProps): JSX.Element;
25
+ displayName: string;
26
+ };
27
+
28
+ export declare const PaginationContent: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLUListElement> & React_2.HTMLAttributes<HTMLUListElement> & PaginationContentProps, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
29
+
30
+ export { PaginationContentProps }
31
+
32
+ export declare const PaginationEllipsis: {
33
+ ({ className, ...props }: React_2.ComponentProps<"span"> & PaginationEllipsisProps): JSX.Element;
34
+ displayName: string;
35
+ };
36
+
37
+ export { PaginationEllipsisProps }
38
+
39
+ export declare const PaginationItem: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLLIElement> & React_2.LiHTMLAttributes<HTMLLIElement> & PaginationItemProps, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
40
+
41
+ export { PaginationItemProps }
42
+
43
+ export declare const PaginationLink: {
44
+ ({ className, isActive, size, ...props }: PaginationLinkProps): JSX.Element;
45
+ displayName: string;
46
+ };
47
+
48
+ export declare type PaginationLinkProps = {
49
+ isActive?: boolean;
50
+ } & Pick<ButtonProps, 'size'> & React_2.ComponentProps<'a'> & PaginationLinkBaseProps;
51
+
52
+ export declare const PaginationNext: {
53
+ ({ className, ...props }: React_2.ComponentProps<typeof PaginationLink> & PaginationNextProps): JSX.Element;
54
+ displayName: string;
55
+ };
56
+
57
+ export { PaginationNextProps }
58
+
59
+ export declare const PaginationPrevious: {
60
+ ({ className, ...props }: React_2.ComponentProps<typeof PaginationLink> & PaginationPreviousProps): JSX.Element;
61
+ displayName: string;
62
+ };
63
+
64
+ export { PaginationPreviousProps }
65
+
66
+ export { PaginationProps }
67
+
68
+ export { }
@@ -0,0 +1,68 @@
1
+ import { j as s } from "./jsx-runtime-tc70JA_2.mjs";
2
+ import { MoreHorizontal as r, ChevronRight as m, ChevronLeft as c } from "lucide-react";
3
+ import * as o from "react";
4
+ import { buttonVariants as p } from "./button.es.js";
5
+ import { c as e } from "./utils-B6yFEsav.mjs";
6
+ const g = ({ className: i, ...a }) => /* @__PURE__ */ s.jsx(
7
+ "nav",
8
+ {
9
+ role: "navigation",
10
+ "aria-label": "pagination",
11
+ className: e("mx-auto flex w-full justify-center", i),
12
+ ...a
13
+ }
14
+ );
15
+ g.displayName = "Pagination";
16
+ const x = o.forwardRef(
17
+ ({ className: i, ...a }, n) => /* @__PURE__ */ s.jsx("ul", { ref: n, className: e("flex flex-row items-center gap-1", i), ...a })
18
+ );
19
+ x.displayName = "PaginationContent";
20
+ const N = o.forwardRef(
21
+ ({ className: i, ...a }, n) => /* @__PURE__ */ s.jsx("li", { ref: n, className: e("", i), ...a })
22
+ );
23
+ N.displayName = "PaginationItem";
24
+ const t = ({ className: i, isActive: a, size: n = "icon", ...l }) => /* @__PURE__ */ s.jsx(
25
+ "a",
26
+ {
27
+ "aria-current": a ? "page" : void 0,
28
+ className: e(
29
+ p({
30
+ variant: a ? "outline" : "ghost",
31
+ size: n
32
+ }),
33
+ i
34
+ ),
35
+ ...l
36
+ }
37
+ );
38
+ t.displayName = "PaginationLink";
39
+ const d = ({
40
+ className: i,
41
+ ...a
42
+ }) => /* @__PURE__ */ s.jsxs(t, { "aria-label": "Go to previous page", size: "default", className: e("gap-1 pl-2.5", i), ...a, children: [
43
+ /* @__PURE__ */ s.jsx(c, { className: "h-4 w-4" }),
44
+ /* @__PURE__ */ s.jsx("span", { children: "Previous" })
45
+ ] });
46
+ d.displayName = "PaginationPrevious";
47
+ const f = ({
48
+ className: i,
49
+ ...a
50
+ }) => /* @__PURE__ */ s.jsxs(t, { "aria-label": "Go to next page", size: "default", className: e("gap-1 pr-2.5", i), ...a, children: [
51
+ /* @__PURE__ */ s.jsx("span", { children: "Next" }),
52
+ /* @__PURE__ */ s.jsx(m, { className: "h-4 w-4" })
53
+ ] });
54
+ f.displayName = "PaginationNext";
55
+ const j = ({ className: i, ...a }) => /* @__PURE__ */ s.jsxs("span", { "aria-hidden": !0, className: e("flex h-9 w-9 items-center justify-center", i), ...a, children: [
56
+ /* @__PURE__ */ s.jsx(r, { className: "h-4 w-4" }),
57
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "More pages" })
58
+ ] });
59
+ j.displayName = "PaginationEllipsis";
60
+ export {
61
+ g as Pagination,
62
+ x as PaginationContent,
63
+ j as PaginationEllipsis,
64
+ N as PaginationItem,
65
+ t as PaginationLink,
66
+ f as PaginationNext,
67
+ d as PaginationPrevious
68
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-nZSsnGb7.js"),I=require("react"),u=require("./index-BtZvtDmp.js"),O=require("./index-_XxjJPRD.js"),H=require("./index-D2HnlO3y.js"),z=require("./index-BoNjHhm4.js"),h=require("./index-B8dxbSWX.js"),L=require("./index-CefEQe_4.js"),f=require("./index-jv3B4mTd.js"),G=require("./index-CwyAfCwY.js"),A=require("./index-B2XtpfGY.js"),K=require("./index-Ce5TOFAK.js"),U=require("./utils-IjLH3w2e.js");function V(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const c=V(I);var C="Popover",[_]=H.createContextScope(C,[f.createPopperScope]),P=f.createPopperScope(),[W,l]=_(C),b=e=>{const{__scopePopover:r,children:o,open:n,defaultOpen:t,onOpenChange:s,modal:i=!1}=e,p=P(r),x=c.useRef(null),[m,g]=c.useState(!1),[R,d]=K.useControllableState({prop:n,defaultProp:t??!1,onChange:s,caller:C});return a.jsxRuntimeExports.jsx(f.Root2,{...p,children:a.jsxRuntimeExports.jsx(W,{scope:r,contentId:L.useId(),triggerRef:x,open:R,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(j=>!j),[d]),hasCustomAnchor:m,onCustomAnchorAdd:c.useCallback(()=>g(!0),[]),onCustomAnchorRemove:c.useCallback(()=>g(!1),[]),modal:i,children:o})})};b.displayName=C;var w="PopoverAnchor",y=c.forwardRef((e,r)=>{const{__scopePopover:o,...n}=e,t=l(w,o),s=P(o),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=t;return c.useEffect(()=>(i(),()=>p()),[i,p]),a.jsxRuntimeExports.jsx(f.Anchor,{...s,...n,ref:r})});y.displayName=w;var N="PopoverTrigger",S=c.forwardRef((e,r)=>{const{__scopePopover:o,...n}=e,t=l(N,o),s=P(o),i=O.useComposedRefs(r,t.triggerRef),p=a.jsxRuntimeExports.jsx(u.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":t.open,"aria-controls":t.contentId,"data-state":k(t.open),...n,ref:i,onClick:u.composeEventHandlers(e.onClick,t.onOpenToggle)});return t.hasCustomAnchor?p:a.jsxRuntimeExports.jsx(f.Anchor,{asChild:!0,...s,children:p})});S.displayName=N;var E="PopoverPortal",[Z,B]=_(E,{forceMount:void 0}),F=e=>{const{__scopePopover:r,forceMount:o,children:n,container:t}=e,s=l(E,r);return a.jsxRuntimeExports.jsx(Z,{scope:r,forceMount:o,children:a.jsxRuntimeExports.jsx(A.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(G.Portal,{asChild:!0,container:t,children:n})})})};F.displayName=E;var v="PopoverContent",D=c.forwardRef((e,r)=>{const o=B(v,e.__scopePopover),{forceMount:n=o.forceMount,...t}=e,s=l(v,e.__scopePopover);return a.jsxRuntimeExports.jsx(A.Presence,{present:n||s.open,children:s.modal?a.jsxRuntimeExports.jsx(Q,{...t,ref:r}):a.jsxRuntimeExports.jsx(X,{...t,ref:r})})});D.displayName=v;var J=u.createSlot("PopoverContent.RemoveScroll"),Q=c.forwardRef((e,r)=>{const o=l(v,e.__scopePopover),n=c.useRef(null),t=O.useComposedRefs(r,n),s=c.useRef(!1);return c.useEffect(()=>{const i=n.current;if(i)return h.hideOthers(i)},[]),a.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:J,allowPinchZoom:!0,children:a.jsxRuntimeExports.jsx(M,{...e,ref:t,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:u.composeEventHandlers(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,x=p.button===0&&p.ctrlKey===!0,m=p.button===2||x;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:u.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),X=c.forwardRef((e,r)=>{const o=l(v,e.__scopePopover),n=c.useRef(!1),t=c.useRef(!1);return a.jsxRuntimeExports.jsx(M,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(n.current||o.triggerRef.current?.focus(),s.preventDefault()),n.current=!1,t.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(t.current=!0));const i=s.target;o.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&t.current&&s.preventDefault()}})}),M=c.forwardRef((e,r)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:t,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:m,onInteractOutside:g,...R}=e,d=l(v,o),j=P(o);return h.useFocusGuards(),a.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:t,onUnmountAutoFocus:s,children:a.jsxRuntimeExports.jsx(z.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:g,onEscapeKeyDown:p,onPointerDownOutside:x,onFocusOutside:m,onDismiss:()=>d.onOpenChange(!1),children:a.jsxRuntimeExports.jsx(f.Content,{"data-state":k(d.open),role:"dialog",id:d.contentId,...j,...R,ref:r,style:{...R.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",Y=c.forwardRef((e,r)=>{const{__scopePopover:o,...n}=e,t=l(T,o);return a.jsxRuntimeExports.jsx(u.Primitive.button,{type:"button",...n,ref:r,onClick:u.composeEventHandlers(e.onClick,()=>t.onOpenChange(!1))})});Y.displayName=T;var ee="PopoverArrow",oe=c.forwardRef((e,r)=>{const{__scopePopover:o,...n}=e,t=P(o);return a.jsxRuntimeExports.jsx(f.Arrow,{...t,...n,ref:r})});oe.displayName=ee;function k(e){return e?"open":"closed"}var te=b,re=y,ne=S,se=F,q=D;const ae=te,ce=ne,ie=re,$=c.forwardRef(({className:e,align:r="center",sideOffset:o=4,...n},t)=>a.jsxRuntimeExports.jsx(se,{children:a.jsxRuntimeExports.jsx(q,{ref:t,align:r,sideOffset:o,className:U.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none",e),...n})}));$.displayName=q.displayName;exports.Popover=ae;exports.PopoverAnchor=ie;exports.PopoverContent=$;exports.PopoverTrigger=ce;
@@ -0,0 +1,24 @@
1
+ import { PopoverAnchorBaseProps as PopoverAnchorProps } from '../../ui-core/src';
2
+ import { PopoverContentBaseProps as PopoverContentProps } from '../../ui-core/src';
3
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
4
+ import { PopoverBaseProps as PopoverProps } from '../../ui-core/src';
5
+ import { PopoverTriggerBaseProps as PopoverTriggerProps } from '../../ui-core/src';
6
+ import * as React_2 from 'react';
7
+
8
+ export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
9
+
10
+ export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
11
+
12
+ export { PopoverAnchorProps }
13
+
14
+ export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & PopoverContentProps & React_2.RefAttributes<HTMLDivElement>>;
15
+
16
+ export { PopoverContentProps }
17
+
18
+ export { PopoverProps }
19
+
20
+ export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
21
+
22
+ export { PopoverTriggerProps }
23
+
24
+ export { }
@@ -0,0 +1,242 @@
1
+ import { j as s } from "./jsx-runtime-tc70JA_2.mjs";
2
+ import * as c from "react";
3
+ import { c as m, a as L, P as A } from "./index-K9FzbxYw.mjs";
4
+ import { u as O } from "./index-DLcqcWxM.mjs";
5
+ import { c as z } from "./index-IZ2gq03c.mjs";
6
+ import { D as G } from "./index-Dfzl8TxY.mjs";
7
+ import { h as H, R as K, u as U, F as V } from "./index-CRyCZJLa.mjs";
8
+ import { u as W } from "./index-DnFcfnA9.mjs";
9
+ import { c as _, C as Z, R as q, A as w, a as B } from "./index-CwfE56Ep.mjs";
10
+ import { P as J } from "./index-C7HEunrh.mjs";
11
+ import { P as j } from "./index-vuPgkS0V.mjs";
12
+ import { u as Q } from "./index-p6xVFRb4.mjs";
13
+ import { c as X } from "./utils-B6yFEsav.mjs";
14
+ var C = "Popover", [E] = z(C, [
15
+ _
16
+ ]), P = _(), [Y, l] = E(C), b = (o) => {
17
+ const {
18
+ __scopePopover: n,
19
+ children: t,
20
+ open: a,
21
+ defaultOpen: e,
22
+ onOpenChange: r,
23
+ modal: i = !1
24
+ } = o, p = P(n), f = c.useRef(null), [v, g] = c.useState(!1), [h, u] = Q({
25
+ prop: a,
26
+ defaultProp: e ?? !1,
27
+ onChange: r,
28
+ caller: C
29
+ });
30
+ return /* @__PURE__ */ s.jsx(q, { ...p, children: /* @__PURE__ */ s.jsx(
31
+ Y,
32
+ {
33
+ scope: n,
34
+ contentId: W(),
35
+ triggerRef: f,
36
+ open: h,
37
+ onOpenChange: u,
38
+ onOpenToggle: c.useCallback(() => u((x) => !x), [u]),
39
+ hasCustomAnchor: v,
40
+ onCustomAnchorAdd: c.useCallback(() => g(!0), []),
41
+ onCustomAnchorRemove: c.useCallback(() => g(!1), []),
42
+ modal: i,
43
+ children: t
44
+ }
45
+ ) });
46
+ };
47
+ b.displayName = C;
48
+ var N = "PopoverAnchor", F = c.forwardRef(
49
+ (o, n) => {
50
+ const { __scopePopover: t, ...a } = o, e = l(N, t), r = P(t), { onCustomAnchorAdd: i, onCustomAnchorRemove: p } = e;
51
+ return c.useEffect(() => (i(), () => p()), [i, p]), /* @__PURE__ */ s.jsx(w, { ...r, ...a, ref: n });
52
+ }
53
+ );
54
+ F.displayName = N;
55
+ var y = "PopoverTrigger", S = c.forwardRef(
56
+ (o, n) => {
57
+ const { __scopePopover: t, ...a } = o, e = l(y, t), r = P(t), i = O(n, e.triggerRef), p = /* @__PURE__ */ s.jsx(
58
+ A.button,
59
+ {
60
+ type: "button",
61
+ "aria-haspopup": "dialog",
62
+ "aria-expanded": e.open,
63
+ "aria-controls": e.contentId,
64
+ "data-state": I(e.open),
65
+ ...a,
66
+ ref: i,
67
+ onClick: m(o.onClick, e.onOpenToggle)
68
+ }
69
+ );
70
+ return e.hasCustomAnchor ? p : /* @__PURE__ */ s.jsx(w, { asChild: !0, ...r, children: p });
71
+ }
72
+ );
73
+ S.displayName = y;
74
+ var R = "PopoverPortal", [oo, eo] = E(R, {
75
+ forceMount: void 0
76
+ }), D = (o) => {
77
+ const { __scopePopover: n, forceMount: t, children: a, container: e } = o, r = l(R, n);
78
+ return /* @__PURE__ */ s.jsx(oo, { scope: n, forceMount: t, children: /* @__PURE__ */ s.jsx(j, { present: t || r.open, children: /* @__PURE__ */ s.jsx(J, { asChild: !0, container: e, children: a }) }) });
79
+ };
80
+ D.displayName = R;
81
+ var d = "PopoverContent", M = c.forwardRef(
82
+ (o, n) => {
83
+ const t = eo(d, o.__scopePopover), { forceMount: a = t.forceMount, ...e } = o, r = l(d, o.__scopePopover);
84
+ return /* @__PURE__ */ s.jsx(j, { present: a || r.open, children: r.modal ? /* @__PURE__ */ s.jsx(ro, { ...e, ref: n }) : /* @__PURE__ */ s.jsx(no, { ...e, ref: n }) });
85
+ }
86
+ );
87
+ M.displayName = d;
88
+ var to = L("PopoverContent.RemoveScroll"), ro = c.forwardRef(
89
+ (o, n) => {
90
+ const t = l(d, o.__scopePopover), a = c.useRef(null), e = O(n, a), r = c.useRef(!1);
91
+ return c.useEffect(() => {
92
+ const i = a.current;
93
+ if (i) return H(i);
94
+ }, []), /* @__PURE__ */ s.jsx(K, { as: to, allowPinchZoom: !0, children: /* @__PURE__ */ s.jsx(
95
+ T,
96
+ {
97
+ ...o,
98
+ ref: e,
99
+ trapFocus: t.open,
100
+ disableOutsidePointerEvents: !0,
101
+ onCloseAutoFocus: m(o.onCloseAutoFocus, (i) => {
102
+ i.preventDefault(), r.current || t.triggerRef.current?.focus();
103
+ }),
104
+ onPointerDownOutside: m(
105
+ o.onPointerDownOutside,
106
+ (i) => {
107
+ const p = i.detail.originalEvent, f = p.button === 0 && p.ctrlKey === !0, v = p.button === 2 || f;
108
+ r.current = v;
109
+ },
110
+ { checkForDefaultPrevented: !1 }
111
+ ),
112
+ onFocusOutside: m(
113
+ o.onFocusOutside,
114
+ (i) => i.preventDefault(),
115
+ { checkForDefaultPrevented: !1 }
116
+ )
117
+ }
118
+ ) });
119
+ }
120
+ ), no = c.forwardRef(
121
+ (o, n) => {
122
+ const t = l(d, o.__scopePopover), a = c.useRef(!1), e = c.useRef(!1);
123
+ return /* @__PURE__ */ s.jsx(
124
+ T,
125
+ {
126
+ ...o,
127
+ ref: n,
128
+ trapFocus: !1,
129
+ disableOutsidePointerEvents: !1,
130
+ onCloseAutoFocus: (r) => {
131
+ o.onCloseAutoFocus?.(r), r.defaultPrevented || (a.current || t.triggerRef.current?.focus(), r.preventDefault()), a.current = !1, e.current = !1;
132
+ },
133
+ onInteractOutside: (r) => {
134
+ o.onInteractOutside?.(r), r.defaultPrevented || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (e.current = !0));
135
+ const i = r.target;
136
+ t.triggerRef.current?.contains(i) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && e.current && r.preventDefault();
137
+ }
138
+ }
139
+ );
140
+ }
141
+ ), T = c.forwardRef(
142
+ (o, n) => {
143
+ const {
144
+ __scopePopover: t,
145
+ trapFocus: a,
146
+ onOpenAutoFocus: e,
147
+ onCloseAutoFocus: r,
148
+ disableOutsidePointerEvents: i,
149
+ onEscapeKeyDown: p,
150
+ onPointerDownOutside: f,
151
+ onFocusOutside: v,
152
+ onInteractOutside: g,
153
+ ...h
154
+ } = o, u = l(d, t), x = P(t);
155
+ return U(), /* @__PURE__ */ s.jsx(
156
+ V,
157
+ {
158
+ asChild: !0,
159
+ loop: !0,
160
+ trapped: a,
161
+ onMountAutoFocus: e,
162
+ onUnmountAutoFocus: r,
163
+ children: /* @__PURE__ */ s.jsx(
164
+ G,
165
+ {
166
+ asChild: !0,
167
+ disableOutsidePointerEvents: i,
168
+ onInteractOutside: g,
169
+ onEscapeKeyDown: p,
170
+ onPointerDownOutside: f,
171
+ onFocusOutside: v,
172
+ onDismiss: () => u.onOpenChange(!1),
173
+ children: /* @__PURE__ */ s.jsx(
174
+ Z,
175
+ {
176
+ "data-state": I(u.open),
177
+ role: "dialog",
178
+ id: u.contentId,
179
+ ...x,
180
+ ...h,
181
+ ref: n,
182
+ style: {
183
+ ...h.style,
184
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
185
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
186
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
187
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
188
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
189
+ }
190
+ }
191
+ )
192
+ }
193
+ )
194
+ }
195
+ );
196
+ }
197
+ ), k = "PopoverClose", ao = c.forwardRef(
198
+ (o, n) => {
199
+ const { __scopePopover: t, ...a } = o, e = l(k, t);
200
+ return /* @__PURE__ */ s.jsx(
201
+ A.button,
202
+ {
203
+ type: "button",
204
+ ...a,
205
+ ref: n,
206
+ onClick: m(o.onClick, () => e.onOpenChange(!1))
207
+ }
208
+ );
209
+ }
210
+ );
211
+ ao.displayName = k;
212
+ var so = "PopoverArrow", co = c.forwardRef(
213
+ (o, n) => {
214
+ const { __scopePopover: t, ...a } = o, e = P(t);
215
+ return /* @__PURE__ */ s.jsx(B, { ...e, ...a, ref: n });
216
+ }
217
+ );
218
+ co.displayName = so;
219
+ function I(o) {
220
+ return o ? "open" : "closed";
221
+ }
222
+ var io = b, po = F, lo = S, uo = D, $ = M;
223
+ const jo = io, Eo = lo, bo = po, fo = c.forwardRef(({ className: o, align: n = "center", sideOffset: t = 4, ...a }, e) => /* @__PURE__ */ s.jsx(uo, { children: /* @__PURE__ */ s.jsx(
224
+ $,
225
+ {
226
+ ref: e,
227
+ align: n,
228
+ sideOffset: t,
229
+ className: X(
230
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none",
231
+ o
232
+ ),
233
+ ...a
234
+ }
235
+ ) }));
236
+ fo.displayName = $.displayName;
237
+ export {
238
+ jo as Popover,
239
+ bo as PopoverAnchor,
240
+ fo as PopoverContent,
241
+ Eo as PopoverTrigger
242
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-nZSsnGb7.js"),$=require("react"),h=require("./index-_wdrnYim.js"),m=require("./index-B39Lzq0v.js"),E=require("./utils-IjLH3w2e.js");function _(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const u=_($);var d="Progress",c=100,[I]=h.createContextScope(d),[O,w]=I(d),v=u.forwardRef((e,r)=>{const{__scopeProgress:o,value:t=null,max:a,getValueLabel:j=M,...R}=e;(a||a===0)&&!p(a)&&console.error(S(`${a}`,"Progress"));const s=p(a)?a:c;t!==null&&!f(t,s)&&console.error(D(`${t}`,"Progress"));const n=f(t,s)?t:null,y=l(n)?j(n,s):void 0;return i.jsxRuntimeExports.jsx(O,{scope:o,value:n,max:s,children:i.jsxRuntimeExports.jsx(m.Primitive.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":l(n)?n:void 0,"aria-valuetext":y,role:"progressbar","data-state":P(n,s),"data-value":n??void 0,"data-max":s,...R,ref:r})})});v.displayName=d;var x="ProgressIndicator",g=u.forwardRef((e,r)=>{const{__scopeProgress:o,...t}=e,a=w(x,o);return i.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":P(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...t,ref:r})});g.displayName=x;function M(e,r){return`${Math.round(e/r*100)}%`}function P(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function l(e){return typeof e=="number"}function p(e){return l(e)&&!isNaN(e)&&e>0}function f(e,r){return l(e)&&!isNaN(e)&&e<=r&&e>=0}function S(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${c}\`.`}function D(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
2
+ - a positive number
3
+ - less than the value passed to \`max\` (or ${c} if no \`max\` prop is set)
4
+ - \`null\` or \`undefined\` if the progress is indeterminate.
5
+
6
+ Defaulting to \`null\`.`}var b=v,V=g;const N=u.forwardRef(({className:e,value:r,...o},t)=>i.jsxRuntimeExports.jsx(b,{ref:t,className:E.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),value:r,...o,children:i.jsxRuntimeExports.jsx(V,{className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})}));N.displayName=b.displayName;exports.Progress=N;
@@ -0,0 +1,9 @@
1
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
2
+ import { ProgressBaseProps as ProgressProps } from '../../ui-core/src';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const Progress: React_2.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & ProgressProps & React_2.RefAttributes<HTMLDivElement>>;
6
+
7
+ export { ProgressProps }
8
+
9
+ export { }
@@ -0,0 +1,99 @@
1
+ import { j as i } from "./jsx-runtime-tc70JA_2.mjs";
2
+ import * as u from "react";
3
+ import { c as y } from "./index-3j-XAIXT.mjs";
4
+ import { P as v } from "./index-DaILh3TV.mjs";
5
+ import { c as I } from "./utils-B6yFEsav.mjs";
6
+ var d = "Progress", m = 100, [R] = y(d), [j, w] = R(d), c = u.forwardRef(
7
+ (r, e) => {
8
+ const {
9
+ __scopeProgress: n,
10
+ value: o = null,
11
+ max: a,
12
+ getValueLabel: b = E,
13
+ ...h
14
+ } = r;
15
+ (a || a === 0) && !p(a) && console.error(_(`${a}`, "Progress"));
16
+ const t = p(a) ? a : m;
17
+ o !== null && !f(o, t) && console.error(M(`${o}`, "Progress"));
18
+ const s = f(o, t) ? o : null, $ = l(s) ? b(s, t) : void 0;
19
+ return /* @__PURE__ */ i.jsx(j, { scope: n, value: s, max: t, children: /* @__PURE__ */ i.jsx(
20
+ v.div,
21
+ {
22
+ "aria-valuemax": t,
23
+ "aria-valuemin": 0,
24
+ "aria-valuenow": l(s) ? s : void 0,
25
+ "aria-valuetext": $,
26
+ role: "progressbar",
27
+ "data-state": P(s, t),
28
+ "data-value": s ?? void 0,
29
+ "data-max": t,
30
+ ...h,
31
+ ref: e
32
+ }
33
+ ) });
34
+ }
35
+ );
36
+ c.displayName = d;
37
+ var g = "ProgressIndicator", x = u.forwardRef(
38
+ (r, e) => {
39
+ const { __scopeProgress: n, ...o } = r, a = w(g, n);
40
+ return /* @__PURE__ */ i.jsx(
41
+ v.div,
42
+ {
43
+ "data-state": P(a.value, a.max),
44
+ "data-value": a.value ?? void 0,
45
+ "data-max": a.max,
46
+ ...o,
47
+ ref: e
48
+ }
49
+ );
50
+ }
51
+ );
52
+ x.displayName = g;
53
+ function E(r, e) {
54
+ return `${Math.round(r / e * 100)}%`;
55
+ }
56
+ function P(r, e) {
57
+ return r == null ? "indeterminate" : r === e ? "complete" : "loading";
58
+ }
59
+ function l(r) {
60
+ return typeof r == "number";
61
+ }
62
+ function p(r) {
63
+ return l(r) && !isNaN(r) && r > 0;
64
+ }
65
+ function f(r, e) {
66
+ return l(r) && !isNaN(r) && r <= e && r >= 0;
67
+ }
68
+ function _(r, e) {
69
+ return `Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${m}\`.`;
70
+ }
71
+ function M(r, e) {
72
+ return `Invalid prop \`value\` of value \`${r}\` supplied to \`${e}\`. The \`value\` prop must be:
73
+ - a positive number
74
+ - less than the value passed to \`max\` (or ${m} if no \`max\` prop is set)
75
+ - \`null\` or \`undefined\` if the progress is indeterminate.
76
+
77
+ Defaulting to \`null\`.`;
78
+ }
79
+ var N = c, V = x;
80
+ const A = u.forwardRef(({ className: r, value: e, ...n }, o) => /* @__PURE__ */ i.jsx(
81
+ N,
82
+ {
83
+ ref: o,
84
+ className: I("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", r),
85
+ value: e,
86
+ ...n,
87
+ children: /* @__PURE__ */ i.jsx(
88
+ V,
89
+ {
90
+ className: "bg-primary h-full w-full flex-1 transition-all",
91
+ style: { transform: `translateX(-${100 - (e || 0)}%)` }
92
+ }
93
+ )
94
+ }
95
+ ));
96
+ A.displayName = N.displayName;
97
+ export {
98
+ A as Progress
99
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-nZSsnGb7.js"),B=require("react"),v=require("./index-BtZvtDmp.js"),h=require("./index-_XxjJPRD.js"),C=require("./index-D2HnlO3y.js"),y=require("./index-DIsg7zU7.js"),K=require("./index-Ce5TOFAK.js"),U=require("./index-Dko2XdTk.js"),V=require("./index-Cjj_rUPu.js"),H=require("./index-DYxWvftI.js"),z=require("./index-B2XtpfGY.js"),W=require("lucide-react"),w=require("./utils-IjLH3w2e.js");function X(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>o[e]})}}return r.default=o,Object.freeze(r)}const a=X(B);var g="Radio",[Y,P]=C.createContextScope(g),[J,Q]=Y(g),N=a.forwardRef((o,r)=>{const{__scopeRadio:e,name:n,checked:t=!1,required:i,disabled:c,value:l="on",onCheck:R,form:f,...m}=o,[p,x]=a.useState(null),d=h.useComposedRefs(r,E=>x(E)),u=a.useRef(!1),j=p?f||!!p.closest("form"):!0;return s.jsxRuntimeExports.jsxs(J,{scope:e,checked:t,disabled:c,children:[s.jsxRuntimeExports.jsx(v.Primitive.button,{type:"button",role:"radio","aria-checked":t,"data-state":G(t),"data-disabled":c?"":void 0,disabled:c,value:l,...m,ref:d,onClick:v.composeEventHandlers(o.onClick,E=>{t||R?.(),j&&(u.current=E.isPropagationStopped(),u.current||E.stopPropagation())})}),j&&s.jsxRuntimeExports.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:t,required:i,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});N.displayName=g;var _="RadioIndicator",I=a.forwardRef((o,r)=>{const{__scopeRadio:e,forceMount:n,...t}=o,i=Q(_,e);return s.jsxRuntimeExports.jsx(z.Presence,{present:n||i.checked,children:s.jsxRuntimeExports.jsx(v.Primitive.span,{"data-state":G(i.checked),"data-disabled":i.disabled?"":void 0,...t,ref:r})})});I.displayName=_;var Z="RadioBubbleInput",S=a.forwardRef(({__scopeRadio:o,control:r,checked:e,bubbles:n=!0,...t},i)=>{const c=a.useRef(null),l=h.useComposedRefs(c,i),R=H.usePrevious(e),f=V.useSize(r);return a.useEffect(()=>{const m=c.current;if(!m)return;const p=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(p,"checked").set;if(R!==e&&d){const u=new Event("click",{bubbles:n});d.call(m,e),m.dispatchEvent(u)}},[R,e,n]),s.jsxRuntimeExports.jsx(v.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:e,...t,tabIndex:-1,ref:l,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=Z;function G(o){return o?"checked":"unchecked"}var ee=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],b="RadioGroup",[oe]=C.createContextScope(b,[y.createRovingFocusGroupScope,P]),k=y.createRovingFocusGroupScope(),q=P(),[re,te]=oe(b),A=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,name:n,defaultValue:t,value:i,required:c=!1,disabled:l=!1,orientation:R,dir:f,loop:m=!0,onValueChange:p,...x}=o,d=k(e),u=U.useDirection(f),[j,E]=K.useControllableState({prop:i,defaultProp:t??null,onChange:p,caller:b});return s.jsxRuntimeExports.jsx(re,{scope:e,name:n,required:c,disabled:l,value:j,onValueChange:E,children:s.jsxRuntimeExports.jsx(y.Root,{asChild:!0,...d,orientation:R,dir:u,loop:m,children:s.jsxRuntimeExports.jsx(v.Primitive.div,{role:"radiogroup","aria-required":c,"aria-orientation":R,"data-disabled":l?"":void 0,dir:u,...x,ref:r})})})});A.displayName=b;var O="RadioGroupItem",D=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,disabled:n,...t}=o,i=te(O,e),c=i.disabled||n,l=k(e),R=q(e),f=a.useRef(null),m=h.useComposedRefs(r,f),p=i.value===t.value,x=a.useRef(!1);return a.useEffect(()=>{const d=j=>{ee.includes(j.key)&&(x.current=!0)},u=()=>x.current=!1;return document.addEventListener("keydown",d),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",d),document.removeEventListener("keyup",u)}},[]),s.jsxRuntimeExports.jsx(y.Item,{asChild:!0,...l,focusable:!c,active:p,children:s.jsxRuntimeExports.jsx(N,{disabled:c,required:i.required,checked:p,...R,...t,name:i.name,ref:m,onCheck:()=>i.onValueChange(t.value),onKeyDown:v.composeEventHandlers(d=>{d.key==="Enter"&&d.preventDefault()}),onFocus:v.composeEventHandlers(t.onFocus,()=>{x.current&&f.current?.click()})})})});D.displayName=O;var se="RadioGroupIndicator",M=a.forwardRef((o,r)=>{const{__scopeRadioGroup:e,...n}=o,t=q(e);return s.jsxRuntimeExports.jsx(I,{...t,...n,ref:r})});M.displayName=se;var $=A,F=D,ne=M;const L=a.forwardRef(({className:o,...r},e)=>s.jsxRuntimeExports.jsx($,{className:w.cn("grid gap-2",o),...r,ref:e}));L.displayName=$.displayName;const T=a.forwardRef(({className:o,...r},e)=>s.jsxRuntimeExports.jsx(F,{ref:e,className:w.cn("border-primary text-primary focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:s.jsxRuntimeExports.jsx(ne,{className:"flex items-center justify-center",children:s.jsxRuntimeExports.jsx(W.Circle,{className:"fill-primary h-3.5 w-3.5"})})}));T.displayName=F.displayName;exports.RadioGroup=L;exports.RadioGroupItem=T;
@@ -0,0 +1,16 @@
1
+ import { RadioGroupBaseProps } from '../../ui-core/src';
2
+ import { RadioGroupItemBaseProps } from '../../ui-core/src';
3
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
4
+ import * as React_2 from 'react';
5
+
6
+ export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
7
+
8
+ export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<RadioGroupItemProps & React_2.RefAttributes<HTMLButtonElement>>;
9
+
10
+ export declare interface RadioGroupItemProps extends React_2.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, RadioGroupItemBaseProps {
11
+ }
12
+
13
+ export declare interface RadioGroupProps extends React_2.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, RadioGroupBaseProps {
14
+ }
15
+
16
+ export { }