@yoopta/themes-shadcn 6.0.0-beta.12 → 6.0.0-beta.14

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 (108) hide show
  1. package/dist/accordion.js.map +1 -0
  2. package/dist/blockquote.js.map +1 -0
  3. package/dist/callout.js.map +1 -0
  4. package/dist/carousel.js.map +1 -0
  5. package/dist/chunks/Combination-2202c874.js +1080 -0
  6. package/dist/chunks/Combination-2202c874.js.map +1 -0
  7. package/dist/chunks/_tslib-514d60fe.js +67 -0
  8. package/dist/chunks/_tslib-514d60fe.js.map +1 -0
  9. package/dist/chunks/arrow-right-cc37c75c.js +30 -0
  10. package/dist/chunks/arrow-right-cc37c75c.js.map +1 -0
  11. package/dist/chunks/button-f9af7cb3.js +76 -0
  12. package/dist/chunks/button-f9af7cb3.js.map +1 -0
  13. package/dist/chunks/card-29720641.js +38 -0
  14. package/dist/chunks/card-29720641.js.map +1 -0
  15. package/dist/chunks/check-530fff0e.js +14 -0
  16. package/dist/chunks/check-530fff0e.js.map +1 -0
  17. package/dist/chunks/chevron-down-544d1acd.js +16 -0
  18. package/dist/chunks/chevron-down-544d1acd.js.map +1 -0
  19. package/dist/chunks/chevron-up-053cba03.js +14 -0
  20. package/dist/chunks/chevron-up-053cba03.js.map +1 -0
  21. package/dist/chunks/code-2ff9cc0c.js +17 -0
  22. package/dist/chunks/code-2ff9cc0c.js.map +1 -0
  23. package/dist/chunks/createLucideIcon-02eb7854.js +95 -0
  24. package/dist/chunks/createLucideIcon-02eb7854.js.map +1 -0
  25. package/dist/chunks/dropdown-menu-ac777fdc.js +1165 -0
  26. package/dist/chunks/dropdown-menu-ac777fdc.js.map +1 -0
  27. package/dist/chunks/external-link-43895ded.js +18 -0
  28. package/dist/chunks/external-link-43895ded.js.map +1 -0
  29. package/dist/chunks/file-text-99674d8d.js +20 -0
  30. package/dist/chunks/file-text-99674d8d.js.map +1 -0
  31. package/dist/chunks/hover-card-134f053d.js +257 -0
  32. package/dist/chunks/hover-card-134f053d.js.map +1 -0
  33. package/dist/chunks/index-056b596e.js +16 -0
  34. package/dist/chunks/index-056b596e.js.map +1 -0
  35. package/dist/chunks/index-35823769.js +222 -0
  36. package/dist/chunks/index-35823769.js.map +1 -0
  37. package/dist/chunks/index-41c4abc4.js +3805 -0
  38. package/dist/chunks/index-41c4abc4.js.map +1 -0
  39. package/dist/chunks/index-454935af.js +71 -0
  40. package/dist/chunks/index-454935af.js.map +1 -0
  41. package/dist/chunks/index-ae9b48d5.js +12 -0
  42. package/dist/chunks/index-ae9b48d5.js.map +1 -0
  43. package/dist/chunks/index-b8a83ba5.js +335 -0
  44. package/dist/chunks/index-b8a83ba5.js.map +1 -0
  45. package/dist/chunks/index-b8f2908d.js +40 -0
  46. package/dist/chunks/index-b8f2908d.js.map +1 -0
  47. package/dist/chunks/index-c655a86f.js +7 -0
  48. package/dist/chunks/index-c655a86f.js.map +1 -0
  49. package/dist/chunks/index-c90e54a4.js +190 -0
  50. package/dist/chunks/index-c90e54a4.js.map +1 -0
  51. package/dist/chunks/index-cf5f0d71.js +2907 -0
  52. package/dist/chunks/index-cf5f0d71.js.map +1 -0
  53. package/dist/chunks/index-d9171717.js +13 -0
  54. package/dist/chunks/index-d9171717.js.map +1 -0
  55. package/dist/chunks/index-dd0fd848.js +70 -0
  56. package/dist/chunks/index-dd0fd848.js.map +1 -0
  57. package/dist/chunks/input-5608c2c9.js +13 -0
  58. package/dist/chunks/input-5608c2c9.js.map +1 -0
  59. package/dist/chunks/label-c9152e49.js +168 -0
  60. package/dist/chunks/label-c9152e49.js.map +1 -0
  61. package/dist/chunks/language-select-bdc50f20.js +44 -0
  62. package/dist/chunks/language-select-bdc50f20.js.map +1 -0
  63. package/dist/chunks/play-1a34ad05.js +16 -0
  64. package/dist/chunks/play-1a34ad05.js.map +1 -0
  65. package/dist/chunks/plus-fcea2532.js +17 -0
  66. package/dist/chunks/plus-fcea2532.js.map +1 -0
  67. package/dist/chunks/popover-ef29b0ac.js +300 -0
  68. package/dist/chunks/popover-ef29b0ac.js.map +1 -0
  69. package/dist/chunks/scroll-area-17d8c584.js +726 -0
  70. package/dist/chunks/scroll-area-17d8c584.js.map +1 -0
  71. package/dist/chunks/select-98610101.js +1213 -0
  72. package/dist/chunks/select-98610101.js.map +1 -0
  73. package/dist/chunks/separator-9e6aa45b.js +172 -0
  74. package/dist/chunks/separator-9e6aa45b.js.map +1 -0
  75. package/dist/chunks/sparkles-8922a4af.js +26 -0
  76. package/dist/chunks/sparkles-8922a4af.js.map +1 -0
  77. package/dist/chunks/style-inject.es-746bb8ed.js +29 -0
  78. package/dist/chunks/style-inject.es-746bb8ed.js.map +1 -0
  79. package/dist/chunks/tabs-9cfbd3cc.js +204 -0
  80. package/dist/chunks/tabs-9cfbd3cc.js.map +1 -0
  81. package/dist/chunks/tooltip-f1e02ae0.js +800 -0
  82. package/dist/chunks/tooltip-f1e02ae0.js.map +1 -0
  83. package/dist/chunks/trash-2-be728dd2.js +20 -0
  84. package/dist/chunks/trash-2-be728dd2.js.map +1 -0
  85. package/dist/chunks/upload-0f56ec3e.js +44 -0
  86. package/dist/chunks/upload-0f56ec3e.js.map +1 -0
  87. package/dist/chunks/utils-131071a4.js +2500 -0
  88. package/dist/chunks/utils-131071a4.js.map +1 -0
  89. package/dist/chunks/x-2f6cf742.js +17 -0
  90. package/dist/chunks/x-2f6cf742.js.map +1 -0
  91. package/dist/code-group.js.map +1 -0
  92. package/dist/code.js.map +1 -0
  93. package/dist/divider.js.map +1 -0
  94. package/dist/embed.js.map +1 -0
  95. package/dist/file.js.map +1 -0
  96. package/dist/headings.js.map +1 -0
  97. package/dist/image.js.map +1 -0
  98. package/dist/index.js.map +1 -0
  99. package/dist/link.js.map +1 -0
  100. package/dist/lists.js.map +1 -0
  101. package/dist/mention.js.map +1 -0
  102. package/dist/paragraph.js.map +1 -0
  103. package/dist/steps.js.map +1 -0
  104. package/dist/table-of-contents.js.map +1 -0
  105. package/dist/table.js.map +1 -0
  106. package/dist/tabs.js.map +1 -0
  107. package/dist/video.js.map +1 -0
  108. package/package.json +2 -2
@@ -0,0 +1,300 @@
1
+ import { _ as __rest } from './_tslib-514d60fe.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import * as React from 'react';
4
+ import { c as createContextScope, P as Primitive, a as composeEventHandlers, b as Presence, e as createSlot } from './index-b8a83ba5.js';
5
+ import { u as useComposedRefs } from './index-b8f2908d.js';
6
+ import { c as createPopperScope, A as Anchor, D as DismissableLayer, C as Content, b as Arrow, P as Portal$1, R as Root2$1 } from './index-cf5f0d71.js';
7
+ import { h as hideOthers, R as RemoveScroll, u as useFocusGuards, F as FocusScope } from './Combination-2202c874.js';
8
+ import { u as useId } from './index-056b596e.js';
9
+ import { u as useControllableState } from './index-454935af.js';
10
+ import { c as cn } from './utils-131071a4.js';
11
+
12
+ var POPOVER_NAME = "Popover";
13
+ var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
14
+ createPopperScope
15
+ ]);
16
+ var usePopperScope = createPopperScope();
17
+ var [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);
18
+ var Popover$1 = (props) => {
19
+ const {
20
+ __scopePopover,
21
+ children,
22
+ open: openProp,
23
+ defaultOpen,
24
+ onOpenChange,
25
+ modal = false
26
+ } = props;
27
+ const popperScope = usePopperScope(__scopePopover);
28
+ const triggerRef = React.useRef(null);
29
+ const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);
30
+ const [open, setOpen] = useControllableState({
31
+ prop: openProp,
32
+ defaultProp: defaultOpen ?? false,
33
+ onChange: onOpenChange,
34
+ caller: POPOVER_NAME
35
+ });
36
+ return /* @__PURE__ */ jsx(Root2$1, { ...popperScope, children: /* @__PURE__ */ jsx(
37
+ PopoverProvider,
38
+ {
39
+ scope: __scopePopover,
40
+ contentId: useId(),
41
+ triggerRef,
42
+ open,
43
+ onOpenChange: setOpen,
44
+ onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
45
+ hasCustomAnchor,
46
+ onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),
47
+ onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),
48
+ modal,
49
+ children
50
+ }
51
+ ) });
52
+ };
53
+ Popover$1.displayName = POPOVER_NAME;
54
+ var ANCHOR_NAME = "PopoverAnchor";
55
+ var PopoverAnchor = React.forwardRef(
56
+ (props, forwardedRef) => {
57
+ const { __scopePopover, ...anchorProps } = props;
58
+ const context = usePopoverContext(ANCHOR_NAME, __scopePopover);
59
+ const popperScope = usePopperScope(__scopePopover);
60
+ const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
61
+ React.useEffect(() => {
62
+ onCustomAnchorAdd();
63
+ return () => onCustomAnchorRemove();
64
+ }, [onCustomAnchorAdd, onCustomAnchorRemove]);
65
+ return /* @__PURE__ */ jsx(Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
66
+ }
67
+ );
68
+ PopoverAnchor.displayName = ANCHOR_NAME;
69
+ var TRIGGER_NAME = "PopoverTrigger";
70
+ var PopoverTrigger$1 = React.forwardRef(
71
+ (props, forwardedRef) => {
72
+ const { __scopePopover, ...triggerProps } = props;
73
+ const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
74
+ const popperScope = usePopperScope(__scopePopover);
75
+ const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
76
+ const trigger = /* @__PURE__ */ jsx(
77
+ Primitive.button,
78
+ {
79
+ type: "button",
80
+ "aria-haspopup": "dialog",
81
+ "aria-expanded": context.open,
82
+ "aria-controls": context.contentId,
83
+ "data-state": getState(context.open),
84
+ ...triggerProps,
85
+ ref: composedTriggerRef,
86
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
87
+ }
88
+ );
89
+ return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: trigger });
90
+ }
91
+ );
92
+ PopoverTrigger$1.displayName = TRIGGER_NAME;
93
+ var PORTAL_NAME = "PopoverPortal";
94
+ var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {
95
+ forceMount: void 0
96
+ });
97
+ var PopoverPortal = (props) => {
98
+ const { __scopePopover, forceMount, children, container } = props;
99
+ const context = usePopoverContext(PORTAL_NAME, __scopePopover);
100
+ return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$1, { asChild: true, container, children }) }) });
101
+ };
102
+ PopoverPortal.displayName = PORTAL_NAME;
103
+ var CONTENT_NAME = "PopoverContent";
104
+ var PopoverContent$1 = React.forwardRef(
105
+ (props, forwardedRef) => {
106
+ const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
107
+ const { forceMount = portalContext.forceMount, ...contentProps } = props;
108
+ const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
109
+ return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
110
+ }
111
+ );
112
+ PopoverContent$1.displayName = CONTENT_NAME;
113
+ var Slot = createSlot("PopoverContent.RemoveScroll");
114
+ var PopoverContentModal = React.forwardRef(
115
+ (props, forwardedRef) => {
116
+ const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
117
+ const contentRef = React.useRef(null);
118
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
119
+ const isRightClickOutsideRef = React.useRef(false);
120
+ React.useEffect(() => {
121
+ const content = contentRef.current;
122
+ if (content) return hideOthers(content);
123
+ }, []);
124
+ return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(
125
+ PopoverContentImpl,
126
+ {
127
+ ...props,
128
+ ref: composedRefs,
129
+ trapFocus: context.open,
130
+ disableOutsidePointerEvents: true,
131
+ onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
132
+ event.preventDefault();
133
+ if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();
134
+ }),
135
+ onPointerDownOutside: composeEventHandlers(
136
+ props.onPointerDownOutside,
137
+ (event) => {
138
+ const originalEvent = event.detail.originalEvent;
139
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
140
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
141
+ isRightClickOutsideRef.current = isRightClick;
142
+ },
143
+ { checkForDefaultPrevented: false }
144
+ ),
145
+ onFocusOutside: composeEventHandlers(
146
+ props.onFocusOutside,
147
+ (event) => event.preventDefault(),
148
+ { checkForDefaultPrevented: false }
149
+ )
150
+ }
151
+ ) });
152
+ }
153
+ );
154
+ var PopoverContentNonModal = React.forwardRef(
155
+ (props, forwardedRef) => {
156
+ const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
157
+ const hasInteractedOutsideRef = React.useRef(false);
158
+ const hasPointerDownOutsideRef = React.useRef(false);
159
+ return /* @__PURE__ */ jsx(
160
+ PopoverContentImpl,
161
+ {
162
+ ...props,
163
+ ref: forwardedRef,
164
+ trapFocus: false,
165
+ disableOutsidePointerEvents: false,
166
+ onCloseAutoFocus: (event) => {
167
+ props.onCloseAutoFocus?.(event);
168
+ if (!event.defaultPrevented) {
169
+ if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();
170
+ event.preventDefault();
171
+ }
172
+ hasInteractedOutsideRef.current = false;
173
+ hasPointerDownOutsideRef.current = false;
174
+ },
175
+ onInteractOutside: (event) => {
176
+ props.onInteractOutside?.(event);
177
+ if (!event.defaultPrevented) {
178
+ hasInteractedOutsideRef.current = true;
179
+ if (event.detail.originalEvent.type === "pointerdown") {
180
+ hasPointerDownOutsideRef.current = true;
181
+ }
182
+ }
183
+ const target = event.target;
184
+ const targetIsTrigger = context.triggerRef.current?.contains(target);
185
+ if (targetIsTrigger) event.preventDefault();
186
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
187
+ event.preventDefault();
188
+ }
189
+ }
190
+ }
191
+ );
192
+ }
193
+ );
194
+ var PopoverContentImpl = React.forwardRef(
195
+ (props, forwardedRef) => {
196
+ const {
197
+ __scopePopover,
198
+ trapFocus,
199
+ onOpenAutoFocus,
200
+ onCloseAutoFocus,
201
+ disableOutsidePointerEvents,
202
+ onEscapeKeyDown,
203
+ onPointerDownOutside,
204
+ onFocusOutside,
205
+ onInteractOutside,
206
+ ...contentProps
207
+ } = props;
208
+ const context = usePopoverContext(CONTENT_NAME, __scopePopover);
209
+ const popperScope = usePopperScope(__scopePopover);
210
+ useFocusGuards();
211
+ return /* @__PURE__ */ jsx(
212
+ FocusScope,
213
+ {
214
+ asChild: true,
215
+ loop: true,
216
+ trapped: trapFocus,
217
+ onMountAutoFocus: onOpenAutoFocus,
218
+ onUnmountAutoFocus: onCloseAutoFocus,
219
+ children: /* @__PURE__ */ jsx(
220
+ DismissableLayer,
221
+ {
222
+ asChild: true,
223
+ disableOutsidePointerEvents,
224
+ onInteractOutside,
225
+ onEscapeKeyDown,
226
+ onPointerDownOutside,
227
+ onFocusOutside,
228
+ onDismiss: () => context.onOpenChange(false),
229
+ children: /* @__PURE__ */ jsx(
230
+ Content,
231
+ {
232
+ "data-state": getState(context.open),
233
+ role: "dialog",
234
+ id: context.contentId,
235
+ ...popperScope,
236
+ ...contentProps,
237
+ ref: forwardedRef,
238
+ style: {
239
+ ...contentProps.style,
240
+ // re-namespace exposed content custom properties
241
+ ...{
242
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
243
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
244
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
245
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
246
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
247
+ }
248
+ }
249
+ }
250
+ )
251
+ }
252
+ )
253
+ }
254
+ );
255
+ }
256
+ );
257
+ var CLOSE_NAME = "PopoverClose";
258
+ var PopoverClose = React.forwardRef(
259
+ (props, forwardedRef) => {
260
+ const { __scopePopover, ...closeProps } = props;
261
+ const context = usePopoverContext(CLOSE_NAME, __scopePopover);
262
+ return /* @__PURE__ */ jsx(
263
+ Primitive.button,
264
+ {
265
+ type: "button",
266
+ ...closeProps,
267
+ ref: forwardedRef,
268
+ onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
269
+ }
270
+ );
271
+ }
272
+ );
273
+ PopoverClose.displayName = CLOSE_NAME;
274
+ var ARROW_NAME = "PopoverArrow";
275
+ var PopoverArrow = React.forwardRef(
276
+ (props, forwardedRef) => {
277
+ const { __scopePopover, ...arrowProps } = props;
278
+ const popperScope = usePopperScope(__scopePopover);
279
+ return /* @__PURE__ */ jsx(Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
280
+ }
281
+ );
282
+ PopoverArrow.displayName = ARROW_NAME;
283
+ function getState(open) {
284
+ return open ? "open" : "closed";
285
+ }
286
+ var Root2 = Popover$1;
287
+ var Trigger = PopoverTrigger$1;
288
+ var Portal = PopoverPortal;
289
+ var Content2 = PopoverContent$1;
290
+
291
+ const Popover = Root2;
292
+ const PopoverTrigger = Trigger;
293
+ const PopoverContent = React.forwardRef((_a, ref) => {
294
+ var { className, align = 'center', sideOffset = 4 } = _a, props = __rest(_a, ["className", "align", "sideOffset"]);
295
+ return (jsx(Portal, { children: jsx(Content2, Object.assign({ ref: ref, align: align, sideOffset: sideOffset, className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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', className) }, props)) }));
296
+ });
297
+ PopoverContent.displayName = Content2.displayName;
298
+
299
+ export { Popover as P, PopoverTrigger as a, PopoverContent as b };
300
+ //# sourceMappingURL=popover-ef29b0ac.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover-ef29b0ac.js","sources":["../../../../../node_modules/@radix-ui/react-popover/src/popover.tsx","../../src/ui/popover.tsx"],"sourcesContent":["import * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { useComposedRefs } from '@radix-ui/react-compose-refs';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { DismissableLayer } from '@radix-ui/react-dismissable-layer';\nimport { useFocusGuards } from '@radix-ui/react-focus-guards';\nimport { FocusScope } from '@radix-ui/react-focus-scope';\nimport { useId } from '@radix-ui/react-id';\nimport * as PopperPrimitive from '@radix-ui/react-popper';\nimport { createPopperScope } from '@radix-ui/react-popper';\nimport { Portal as PortalPrimitive } from '@radix-ui/react-portal';\nimport { Presence } from '@radix-ui/react-presence';\nimport { Primitive } from '@radix-ui/react-primitive';\nimport { createSlot } from '@radix-ui/react-slot';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { hideOthers } from 'aria-hidden';\nimport { RemoveScroll } from 'react-remove-scroll';\n\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * Popover\n * -----------------------------------------------------------------------------------------------*/\n\nconst POPOVER_NAME = 'Popover';\n\ntype ScopedProps<P> = P & { __scopePopover?: Scope };\nconst [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope,\n]);\nconst usePopperScope = createPopperScope();\n\ntype PopoverContextValue = {\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n contentId: string;\n open: boolean;\n onOpenChange(open: boolean): void;\n onOpenToggle(): void;\n hasCustomAnchor: boolean;\n onCustomAnchorAdd(): void;\n onCustomAnchorRemove(): void;\n modal: boolean;\n};\n\nconst [PopoverProvider, usePopoverContext] =\n createPopoverContext<PopoverContextValue>(POPOVER_NAME);\n\ninterface PopoverProps {\n children?: React.ReactNode;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n modal?: boolean;\n}\n\nconst Popover: React.FC<PopoverProps> = (props: ScopedProps<PopoverProps>) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false,\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef<HTMLButtonElement>(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: POPOVER_NAME,\n });\n\n return (\n <PopperPrimitive.Root {...popperScope}>\n <PopoverProvider\n scope={__scopePopover}\n contentId={useId()}\n triggerRef={triggerRef}\n open={open}\n onOpenChange={setOpen}\n onOpenToggle={React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen])}\n hasCustomAnchor={hasCustomAnchor}\n onCustomAnchorAdd={React.useCallback(() => setHasCustomAnchor(true), [])}\n onCustomAnchorRemove={React.useCallback(() => setHasCustomAnchor(false), [])}\n modal={modal}\n >\n {children}\n </PopoverProvider>\n </PopperPrimitive.Root>\n );\n};\n\nPopover.displayName = POPOVER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverAnchor\n * -----------------------------------------------------------------------------------------------*/\n\nconst ANCHOR_NAME = 'PopoverAnchor';\n\ntype PopoverAnchorElement = React.ComponentRef<typeof PopperPrimitive.Anchor>;\ntype PopperAnchorProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;\ninterface PopoverAnchorProps extends PopperAnchorProps {}\n\nconst PopoverAnchor = React.forwardRef<PopoverAnchorElement, PopoverAnchorProps>(\n (props: ScopedProps<PopoverAnchorProps>, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n\n return <PopperPrimitive.Anchor {...popperScope} {...anchorProps} ref={forwardedRef} />;\n }\n);\n\nPopoverAnchor.displayName = ANCHOR_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverTrigger\n * -----------------------------------------------------------------------------------------------*/\n\nconst TRIGGER_NAME = 'PopoverTrigger';\n\ntype PopoverTriggerElement = React.ComponentRef<typeof Primitive.button>;\ntype PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;\ninterface PopoverTriggerProps extends PrimitiveButtonProps {}\n\nconst PopoverTrigger = React.forwardRef<PopoverTriggerElement, PopoverTriggerProps>(\n (props: ScopedProps<PopoverTriggerProps>, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n\n const trigger = (\n <Primitive.button\n type=\"button\"\n aria-haspopup=\"dialog\"\n aria-expanded={context.open}\n aria-controls={context.contentId}\n data-state={getState(context.open)}\n {...triggerProps}\n ref={composedTriggerRef}\n onClick={composeEventHandlers(props.onClick, context.onOpenToggle)}\n />\n );\n\n return context.hasCustomAnchor ? (\n trigger\n ) : (\n <PopperPrimitive.Anchor asChild {...popperScope}>\n {trigger}\n </PopperPrimitive.Anchor>\n );\n }\n);\n\nPopoverTrigger.displayName = TRIGGER_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverPortal\n * -----------------------------------------------------------------------------------------------*/\n\nconst PORTAL_NAME = 'PopoverPortal';\n\ntype PortalContextValue = { forceMount?: true };\nconst [PortalProvider, usePortalContext] = createPopoverContext<PortalContextValue>(PORTAL_NAME, {\n forceMount: undefined,\n});\n\ntype PortalProps = React.ComponentPropsWithoutRef<typeof PortalPrimitive>;\ninterface PopoverPortalProps {\n children?: React.ReactNode;\n /**\n * Specify a container element to portal the content into.\n */\n container?: PortalProps['container'];\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst PopoverPortal: React.FC<PopoverPortalProps> = (props: ScopedProps<PopoverPortalProps>) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return (\n <PortalProvider scope={__scopePopover} forceMount={forceMount}>\n <Presence present={forceMount || context.open}>\n <PortalPrimitive asChild container={container}>\n {children}\n </PortalPrimitive>\n </Presence>\n </PortalProvider>\n );\n};\n\nPopoverPortal.displayName = PORTAL_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverContent\n * -----------------------------------------------------------------------------------------------*/\n\nconst CONTENT_NAME = 'PopoverContent';\n\ninterface PopoverContentProps extends PopoverContentTypeProps {\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with React animation libraries.\n */\n forceMount?: true;\n}\n\nconst PopoverContent = React.forwardRef<PopoverContentTypeElement, PopoverContentProps>(\n (props: ScopedProps<PopoverContentProps>, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return (\n <Presence present={forceMount || context.open}>\n {context.modal ? (\n <PopoverContentModal {...contentProps} ref={forwardedRef} />\n ) : (\n <PopoverContentNonModal {...contentProps} ref={forwardedRef} />\n )}\n </Presence>\n );\n }\n);\n\nPopoverContent.displayName = CONTENT_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Slot = createSlot('PopoverContent.RemoveScroll');\n\ntype PopoverContentTypeElement = PopoverContentImplElement;\ninterface PopoverContentTypeProps\n extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {}\n\nconst PopoverContentModal = React.forwardRef<PopoverContentTypeElement, PopoverContentTypeProps>(\n (props: ScopedProps<PopoverContentTypeProps>, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef<HTMLDivElement>(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\n\n // aria-hide everything except the content (better supported equivalent to setting aria-modal)\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n\n return (\n <RemoveScroll as={Slot} allowPinchZoom>\n <PopoverContentImpl\n {...props}\n ref={composedRefs}\n // we make sure we're not trapping once it's been closed\n // (closed !== unmounted when animating out)\n trapFocus={context.open}\n disableOutsidePointerEvents\n onCloseAutoFocus={composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n })}\n onPointerDownOutside={composeEventHandlers(\n props.onPointerDownOutside,\n (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n\n isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\n )}\n // When focus is trapped, a `focusout` event may still happen.\n // We make sure we don't trigger our `onDismiss` in such case.\n onFocusOutside={composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )}\n />\n </RemoveScroll>\n );\n }\n);\n\nconst PopoverContentNonModal = React.forwardRef<PopoverContentTypeElement, PopoverContentTypeProps>(\n (props: ScopedProps<PopoverContentTypeProps>, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n\n return (\n <PopoverContentImpl\n {...props}\n ref={forwardedRef}\n trapFocus={false}\n disableOutsidePointerEvents={false}\n onCloseAutoFocus={(event) => {\n props.onCloseAutoFocus?.(event);\n\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n // Always prevent auto focus because we either focus manually or want user agent focus\n event.preventDefault();\n }\n\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n }}\n onInteractOutside={(event) => {\n props.onInteractOutside?.(event);\n\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === 'pointerdown') {\n hasPointerDownOutsideRef.current = true;\n }\n }\n\n // Prevent dismissing when clicking the trigger.\n // As the trigger is already setup to close, without doing so would\n // cause it to close and immediately open.\n const target = event.target as HTMLElement;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n\n // On Safari if the trigger is inside a container with tabIndex={0}, when clicked\n // we will get the pointer down outside event on the trigger, but then a subsequent\n // focus outside event on the container, we ignore any focus outside event when we've\n // already had a pointer down outside event.\n if (event.detail.originalEvent.type === 'focusin' && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }}\n />\n );\n }\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype PopoverContentImplElement = React.ComponentRef<typeof PopperPrimitive.Content>;\ntype FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;\ntype DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;\ntype PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;\ninterface PopoverContentImplProps\n extends Omit<PopperContentProps, 'onPlaced'>,\n Omit<DismissableLayerProps, 'onDismiss'> {\n /**\n * Whether focus should be trapped within the `Popover`\n * (default: false)\n */\n trapFocus?: FocusScopeProps['trapped'];\n\n /**\n * Event handler called when auto-focusing on open.\n * Can be prevented.\n */\n onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];\n\n /**\n * Event handler called when auto-focusing on close.\n * Can be prevented.\n */\n onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];\n}\n\nconst PopoverContentImpl = React.forwardRef<PopoverContentImplElement, PopoverContentImplProps>(\n (props: ScopedProps<PopoverContentImplProps>, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n\n // Make sure the whole tree has focus guards as our `Popover` may be\n // the last element in the DOM (because of the `Portal`)\n useFocusGuards();\n\n return (\n <FocusScope\n asChild\n loop\n trapped={trapFocus}\n onMountAutoFocus={onOpenAutoFocus}\n onUnmountAutoFocus={onCloseAutoFocus}\n >\n <DismissableLayer\n asChild\n disableOutsidePointerEvents={disableOutsidePointerEvents}\n onInteractOutside={onInteractOutside}\n onEscapeKeyDown={onEscapeKeyDown}\n onPointerDownOutside={onPointerDownOutside}\n onFocusOutside={onFocusOutside}\n onDismiss={() => context.onOpenChange(false)}\n >\n <PopperPrimitive.Content\n data-state={getState(context.open)}\n role=\"dialog\"\n id={context.contentId}\n {...popperScope}\n {...contentProps}\n ref={forwardedRef}\n style={{\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n '--radix-popover-content-transform-origin': 'var(--radix-popper-transform-origin)',\n '--radix-popover-content-available-width': 'var(--radix-popper-available-width)',\n '--radix-popover-content-available-height': 'var(--radix-popper-available-height)',\n '--radix-popover-trigger-width': 'var(--radix-popper-anchor-width)',\n '--radix-popover-trigger-height': 'var(--radix-popper-anchor-height)',\n },\n }}\n />\n </DismissableLayer>\n </FocusScope>\n );\n }\n);\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverClose\n * -----------------------------------------------------------------------------------------------*/\n\nconst CLOSE_NAME = 'PopoverClose';\n\ntype PopoverCloseElement = React.ComponentRef<typeof Primitive.button>;\ninterface PopoverCloseProps extends PrimitiveButtonProps {}\n\nconst PopoverClose = React.forwardRef<PopoverCloseElement, PopoverCloseProps>(\n (props: ScopedProps<PopoverCloseProps>, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\n return (\n <Primitive.button\n type=\"button\"\n {...closeProps}\n ref={forwardedRef}\n onClick={composeEventHandlers(props.onClick, () => context.onOpenChange(false))}\n />\n );\n }\n);\n\nPopoverClose.displayName = CLOSE_NAME;\n\n/* -------------------------------------------------------------------------------------------------\n * PopoverArrow\n * -----------------------------------------------------------------------------------------------*/\n\nconst ARROW_NAME = 'PopoverArrow';\n\ntype PopoverArrowElement = React.ComponentRef<typeof PopperPrimitive.Arrow>;\ntype PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;\ninterface PopoverArrowProps extends PopperArrowProps {}\n\nconst PopoverArrow = React.forwardRef<PopoverArrowElement, PopoverArrowProps>(\n (props: ScopedProps<PopoverArrowProps>, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return <PopperPrimitive.Arrow {...popperScope} {...arrowProps} ref={forwardedRef} />;\n }\n);\n\nPopoverArrow.displayName = ARROW_NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction getState(open: boolean) {\n return open ? 'open' : 'closed';\n}\n\nconst Root = Popover;\nconst Anchor = PopoverAnchor;\nconst Trigger = PopoverTrigger;\nconst Portal = PopoverPortal;\nconst Content = PopoverContent;\nconst Close = PopoverClose;\nconst Arrow = PopoverArrow;\n\nexport {\n createPopoverScope,\n //\n Popover,\n PopoverAnchor,\n PopoverTrigger,\n PopoverPortal,\n PopoverContent,\n PopoverClose,\n PopoverArrow,\n //\n Root,\n Anchor,\n Trigger,\n Portal,\n Content,\n Close,\n Arrow,\n};\nexport type {\n PopoverProps,\n PopoverAnchorProps,\n PopoverTriggerProps,\n PopoverPortalProps,\n PopoverContentProps,\n PopoverCloseProps,\n PopoverArrowProps,\n};\n","import * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\n\nimport { cn } from '../utils';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent };\n"],"names":["Popover","PopperPrimitive.Root","PopperPrimitive.Anchor","PopoverTrigger","PortalPrimitive","PopoverContent","PopperPrimitive.Content","PopperPrimitive.Arrow","Root","Content","PopoverPrimitive.Root","PopoverPrimitive.Trigger","_jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content"],"mappings":";;;;;;;;;;;AAwBA,IAAM,YAAe,GAAA,SAAA,CAAA;AAGrB,IAAM,CAAC,oBAAA,EAAsB,kBAAkB,CAAA,GAAI,mBAAmB,YAAc,EAAA;AAAA,EAClF,iBAAA;AACF,CAAC,CAAA,CAAA;AACD,IAAM,iBAAiB,iBAAkB,EAAA,CAAA;AAczC,IAAM,CAAC,eAAA,EAAiB,iBAAiB,CAAA,GACvC,qBAA0C,YAAY,CAAA,CAAA;AAUxD,IAAMA,SAAA,G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