@radui/ui 0.0.45 → 0.0.47
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.
- package/README.md +2 -8
- package/dist/components/Accordion.d.ts +53 -0
- package/dist/components/Accordion.js +1 -1
- package/dist/components/AlertDialog.d.ts +62 -0
- package/dist/components/AlertDialog.js +1 -5
- package/dist/components/AspectRatio.d.ts +16 -0
- package/dist/components/AspectRatio.js +1 -1
- package/dist/components/Avatar.d.ts +39 -0
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.d.ts +41 -0
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AvatarPrimitiveFallback-CSD78PQE.js +1 -0
- package/dist/components/Badge.d.ts +15 -0
- package/dist/components/Badge.js +1 -1
- package/dist/components/BlockQuote.d.ts +18 -0
- package/dist/components/BlockQuote.js +1 -1
- package/dist/components/Button.d.ts +15 -0
- package/dist/components/Button.js +1 -1
- package/dist/components/Callout.d.ts +35 -0
- package/dist/components/Callout.js +1 -1
- package/dist/components/Card.d.ts +28 -0
- package/dist/components/Card.js +1 -1
- package/dist/components/Checkbox.d.ts +23 -0
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/CheckboxCards.d.ts +37 -0
- package/dist/components/CheckboxCards.js +1 -1
- package/dist/components/CheckboxGroup.d.ts +38 -0
- package/dist/components/CheckboxGroup.js +1 -1
- package/dist/components/CheckboxGroupPrimitive-PcT11bev.js +1 -0
- package/dist/components/Code.d.ts +13 -0
- package/dist/components/Code.js +1 -1
- package/dist/components/Collapsible.d.ts +30 -0
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/ContextMenu.d.ts +52 -0
- package/dist/components/ContextMenu.js +1 -0
- package/dist/components/DataList.d.ts +24 -0
- package/dist/components/DataList.js +1 -1
- package/dist/components/Dialog.d.ts +51 -0
- package/dist/components/Dialog.js +1 -5
- package/dist/components/Disclosure.d.ts +41 -0
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/DropdownMenu.d.ts +52 -0
- package/dist/components/DropdownMenu.js +1 -0
- package/dist/components/Em.d.ts +15 -0
- package/dist/components/Em.js +1 -1
- package/dist/components/Heading.d.ts +293 -0
- package/dist/components/Heading.js +1 -1
- package/dist/components/HoverCard.d.ts +37 -0
- package/dist/components/HoverCard.js +1 -5
- package/dist/components/Kbd.d.ts +13 -0
- package/dist/components/Kbd.js +1 -1
- package/dist/components/Link.d.ts +17 -0
- package/dist/components/Link.js +1 -1
- package/dist/components/MenuPrimitive-M690K2sI.js +1 -0
- package/dist/components/Menubar.d.ts +60 -0
- package/dist/components/Menubar.js +1 -0
- package/dist/components/NumberField.d.ts +43 -0
- package/dist/components/NumberField.js +1 -0
- package/dist/components/Progress.d.ts +24 -0
- package/dist/components/Progress.js +1 -1
- package/dist/components/Quote.d.ts +15 -0
- package/dist/components/Quote.js +1 -1
- package/dist/components/Radio.d.ts +14 -0
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioCards.d.ts +41 -0
- package/dist/components/RadioCards.js +1 -1
- package/dist/components/RadioGroup.d.ts +54 -0
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/RadioGroupPrimitive-CUgW2PyL.js +1 -0
- package/dist/components/ScrollArea.d.ts +18 -0
- package/dist/components/ScrollArea.js +1 -1
- package/dist/components/Select.d.ts +37 -0
- package/dist/components/Select.js +1 -5
- package/dist/components/Separator.d.ts +18 -0
- package/dist/components/Separator.js +1 -1
- package/dist/components/Skeleton.d.ts +18 -0
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Slider.d.ts +29 -0
- package/dist/components/Slider.js +1 -1
- package/dist/components/Strong.d.ts +14 -0
- package/dist/components/Strong.js +1 -1
- package/dist/components/Switch.d.ts +35 -0
- package/dist/components/Switch.js +1 -1
- package/dist/components/TabNav.d.ts +31 -0
- package/dist/components/TabNav.js +1 -1
- package/dist/components/Table.d.ts +35 -0
- package/dist/components/Table.js +1 -1
- package/dist/components/Tabs.d.ts +64 -0
- package/dist/components/Tabs.js +1 -1
- package/dist/components/Text.d.ts +283 -0
- package/dist/components/Text.js +1 -1
- package/dist/components/TextArea.d.ts +24 -0
- package/dist/components/TextArea.js +1 -1
- package/dist/components/Theme.d.ts +13 -0
- package/dist/components/Theme.js +1 -1
- package/dist/components/Toggle.d.ts +45 -0
- package/dist/components/Toggle.js +1 -1
- package/dist/components/ToggleGroup.d.ts +42 -0
- package/dist/components/ToggleGroup.js +1 -1
- package/dist/components/Tooltip.d.ts +22 -0
- package/dist/components/Tooltip.js +1 -5
- package/dist/components/Tree.d.ts +20 -0
- package/dist/components/Tree.js +1 -1
- package/dist/components/VisuallyHidden.d.ts +16 -0
- package/dist/components/VisuallyHidden.js +1 -1
- package/dist/components/clsx-BaVHROc5.js +1 -0
- package/dist/components/floating-ui.react-jh3caJnc.js +5 -0
- package/dist/components/index-8D8A0ALD.js +1 -0
- package/dist/components/index-BNg6qXF-.js +1 -0
- package/dist/components/index-BVxS3Ixi.js +1 -0
- package/dist/components/index-CaFVBHZz.js +1 -0
- package/dist/components/index-CyT0hgZn.js +1 -0
- package/dist/components/index-DAboJYKJ.js +1 -0
- package/dist/components/index-DIw4zyNG.js +1 -0
- package/dist/components/index-DpUtikes.js +1 -0
- package/dist/components/index-ZMIfeyHL.js +1 -0
- package/dist/components/index-fkj4Fdgt.js +1 -0
- package/dist/components/setupTests.d.ts +3 -0
- package/dist/components/tslib.es6-BtVxab8e.js +1 -0
- package/dist/themes/default.css +1 -1
- package/package.json +139 -47
- package/dist/components/Dropdown.js +0 -1
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
|
+
/**
|
|
5
|
+
* Heading component that renders HTML heading elements (h1-h6)
|
|
6
|
+
* with customizable styling.
|
|
7
|
+
*/
|
|
8
|
+
type HeadingProps = {
|
|
9
|
+
/** HTML heading tag to render */
|
|
10
|
+
as?: HeadingTag;
|
|
11
|
+
/** Custom root class for specialized styling */
|
|
12
|
+
customRootClass?: string;
|
|
13
|
+
/** Additional class names to apply */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Content of the heading */
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
18
|
+
/**
|
|
19
|
+
* Renders a heading element with customizable tag and styling
|
|
20
|
+
*/
|
|
21
|
+
declare const Heading: {
|
|
22
|
+
({ children, as, customRootClass, className, ...props }: HeadingProps): React.DetailedReactHTMLElement<{
|
|
23
|
+
defaultChecked?: boolean | undefined;
|
|
24
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
25
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
26
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
27
|
+
accessKey?: string | undefined;
|
|
28
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
29
|
+
autoFocus?: boolean | undefined;
|
|
30
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
31
|
+
contextMenu?: string | undefined;
|
|
32
|
+
dir?: string | undefined;
|
|
33
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
34
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
35
|
+
hidden?: boolean | undefined;
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
lang?: string | undefined;
|
|
38
|
+
nonce?: string | undefined;
|
|
39
|
+
slot?: string | undefined;
|
|
40
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
41
|
+
style?: React.CSSProperties | undefined;
|
|
42
|
+
tabIndex?: number | undefined;
|
|
43
|
+
title?: string | undefined;
|
|
44
|
+
translate?: "yes" | "no" | undefined;
|
|
45
|
+
radioGroup?: string | undefined;
|
|
46
|
+
role?: React.AriaRole | undefined;
|
|
47
|
+
about?: string | undefined;
|
|
48
|
+
content?: string | undefined;
|
|
49
|
+
datatype?: string | undefined;
|
|
50
|
+
inlist?: any;
|
|
51
|
+
prefix?: string | undefined;
|
|
52
|
+
property?: string | undefined;
|
|
53
|
+
rel?: string | undefined;
|
|
54
|
+
resource?: string | undefined;
|
|
55
|
+
rev?: string | undefined;
|
|
56
|
+
typeof?: string | undefined;
|
|
57
|
+
vocab?: string | undefined;
|
|
58
|
+
autoCorrect?: string | undefined;
|
|
59
|
+
autoSave?: string | undefined;
|
|
60
|
+
color?: string | undefined;
|
|
61
|
+
itemProp?: string | undefined;
|
|
62
|
+
itemScope?: boolean | undefined;
|
|
63
|
+
itemType?: string | undefined;
|
|
64
|
+
itemID?: string | undefined;
|
|
65
|
+
itemRef?: string | undefined;
|
|
66
|
+
results?: number | undefined;
|
|
67
|
+
security?: string | undefined;
|
|
68
|
+
unselectable?: "on" | "off" | undefined;
|
|
69
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
70
|
+
is?: string | undefined;
|
|
71
|
+
"aria-activedescendant"?: string | undefined;
|
|
72
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
73
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
74
|
+
"aria-braillelabel"?: string | undefined;
|
|
75
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
76
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
78
|
+
"aria-colcount"?: number | undefined;
|
|
79
|
+
"aria-colindex"?: number | undefined;
|
|
80
|
+
"aria-colindextext"?: string | undefined;
|
|
81
|
+
"aria-colspan"?: number | undefined;
|
|
82
|
+
"aria-controls"?: string | undefined;
|
|
83
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
84
|
+
"aria-describedby"?: string | undefined;
|
|
85
|
+
"aria-description"?: string | undefined;
|
|
86
|
+
"aria-details"?: string | undefined;
|
|
87
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
88
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
89
|
+
"aria-errormessage"?: string | undefined;
|
|
90
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
"aria-flowto"?: string | undefined;
|
|
92
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
93
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
94
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
95
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
96
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
97
|
+
"aria-label"?: string | undefined;
|
|
98
|
+
"aria-labelledby"?: string | undefined;
|
|
99
|
+
"aria-level"?: number | undefined;
|
|
100
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
101
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
103
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
104
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
105
|
+
"aria-owns"?: string | undefined;
|
|
106
|
+
"aria-placeholder"?: string | undefined;
|
|
107
|
+
"aria-posinset"?: number | undefined;
|
|
108
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
109
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
110
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
111
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
112
|
+
"aria-roledescription"?: string | undefined;
|
|
113
|
+
"aria-rowcount"?: number | undefined;
|
|
114
|
+
"aria-rowindex"?: number | undefined;
|
|
115
|
+
"aria-rowindextext"?: string | undefined;
|
|
116
|
+
"aria-rowspan"?: number | undefined;
|
|
117
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
118
|
+
"aria-setsize"?: number | undefined;
|
|
119
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
120
|
+
"aria-valuemax"?: number | undefined;
|
|
121
|
+
"aria-valuemin"?: number | undefined;
|
|
122
|
+
"aria-valuenow"?: number | undefined;
|
|
123
|
+
"aria-valuetext"?: string | undefined;
|
|
124
|
+
dangerouslySetInnerHTML?: {
|
|
125
|
+
__html: string | TrustedHTML;
|
|
126
|
+
} | undefined;
|
|
127
|
+
onCopy?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
128
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
129
|
+
onCut?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
130
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
131
|
+
onPaste?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
132
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLHeadingElement> | undefined;
|
|
133
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
134
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
135
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
136
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
137
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
138
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLHeadingElement> | undefined;
|
|
139
|
+
onFocus?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
140
|
+
onFocusCapture?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
141
|
+
onBlur?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
142
|
+
onBlurCapture?: React.FocusEventHandler<HTMLHeadingElement> | undefined;
|
|
143
|
+
onChange?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
144
|
+
onChangeCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
145
|
+
onBeforeInput?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
146
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
147
|
+
onInput?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
148
|
+
onInputCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
149
|
+
onReset?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
150
|
+
onResetCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
151
|
+
onSubmit?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
152
|
+
onSubmitCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
153
|
+
onInvalid?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
154
|
+
onInvalidCapture?: React.FormEventHandler<HTMLHeadingElement> | undefined;
|
|
155
|
+
onLoad?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
156
|
+
onLoadCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
157
|
+
onError?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
158
|
+
onErrorCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
159
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
160
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
161
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
162
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
163
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
164
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLHeadingElement> | undefined;
|
|
165
|
+
onAbort?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
166
|
+
onAbortCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
167
|
+
onCanPlay?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
168
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
169
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
170
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
171
|
+
onDurationChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
172
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
173
|
+
onEmptied?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
174
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
175
|
+
onEncrypted?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
176
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
177
|
+
onEnded?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
178
|
+
onEndedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
179
|
+
onLoadedData?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
180
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
181
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
182
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
183
|
+
onLoadStart?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
184
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
185
|
+
onPause?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
186
|
+
onPauseCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
187
|
+
onPlay?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
188
|
+
onPlayCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
189
|
+
onPlaying?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
190
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
191
|
+
onProgress?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
192
|
+
onProgressCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
193
|
+
onRateChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
194
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
195
|
+
onResize?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
196
|
+
onResizeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
197
|
+
onSeeked?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
198
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
199
|
+
onSeeking?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
200
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
201
|
+
onStalled?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
202
|
+
onStalledCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
203
|
+
onSuspend?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
204
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
205
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
206
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
207
|
+
onVolumeChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
208
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
209
|
+
onWaiting?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
210
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
211
|
+
onAuxClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
212
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
213
|
+
onClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
214
|
+
onClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
215
|
+
onContextMenu?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
216
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
217
|
+
onDoubleClick?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
218
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
219
|
+
onDrag?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
220
|
+
onDragCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
221
|
+
onDragEnd?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
222
|
+
onDragEndCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
223
|
+
onDragEnter?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
224
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
225
|
+
onDragExit?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
226
|
+
onDragExitCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
227
|
+
onDragLeave?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
228
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
229
|
+
onDragOver?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
230
|
+
onDragOverCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
231
|
+
onDragStart?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
232
|
+
onDragStartCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
233
|
+
onDrop?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
234
|
+
onDropCapture?: React.DragEventHandler<HTMLHeadingElement> | undefined;
|
|
235
|
+
onMouseDown?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
236
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
237
|
+
onMouseEnter?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
238
|
+
onMouseLeave?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
239
|
+
onMouseMove?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
240
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
241
|
+
onMouseOut?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
242
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
243
|
+
onMouseOver?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
244
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
245
|
+
onMouseUp?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
246
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLHeadingElement> | undefined;
|
|
247
|
+
onSelect?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
248
|
+
onSelectCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
249
|
+
onTouchCancel?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
250
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
251
|
+
onTouchEnd?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
252
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
253
|
+
onTouchMove?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
254
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
255
|
+
onTouchStart?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
256
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLHeadingElement> | undefined;
|
|
257
|
+
onPointerDown?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
258
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
259
|
+
onPointerMove?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
260
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
261
|
+
onPointerUp?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
262
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
263
|
+
onPointerCancel?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
264
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
265
|
+
onPointerEnter?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
266
|
+
onPointerLeave?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
267
|
+
onPointerOver?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
268
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
269
|
+
onPointerOut?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
270
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
271
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
272
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
273
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
274
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLHeadingElement> | undefined;
|
|
275
|
+
onScroll?: React.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
276
|
+
onScrollCapture?: React.UIEventHandler<HTMLHeadingElement> | undefined;
|
|
277
|
+
onWheel?: React.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
278
|
+
onWheelCapture?: React.WheelEventHandler<HTMLHeadingElement> | undefined;
|
|
279
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
280
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
281
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
282
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
283
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
284
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLHeadingElement> | undefined;
|
|
285
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
286
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLHeadingElement> | undefined;
|
|
287
|
+
className: string;
|
|
288
|
+
}, HTMLElement>;
|
|
289
|
+
displayName: string;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export { Heading as default };
|
|
293
|
+
export type { HeadingProps, HeadingTag };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{_ as s,a}from"./tslib.es6-BtVxab8e.js";import o from"react";import{c as e}from"./clsx-BaVHROc5.js";import{c as r}from"./index-BVxS3Ixi.js";var t=function(t){var i=t.children,m=t.as,c=void 0===m?"h1":m,l=t.customRootClass,d=void 0===l?"":l,h=t.className,n=void 0===h?"":h,f=s(t,["children","as","customRootClass","className"]),p=r(d,c);return["h1","h2","h3","h4","h5","h6"].includes(c)||(c="h1"),o.createElement(c,a({className:e(p,n)},f),i)};t.displayName="Heading";export{t as default};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type HoverCardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
declare const HoverCard: {
|
|
7
|
+
(): null;
|
|
8
|
+
Root: ({ children, open: controlledOpen, onOpenChange, customRootClass, openDelay, closeDelay, ...props }: {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
open: boolean | undefined;
|
|
11
|
+
onOpenChange: (open: boolean) => void;
|
|
12
|
+
customRootClass: string;
|
|
13
|
+
openDelay: number;
|
|
14
|
+
closeDelay: number;
|
|
15
|
+
props?: React.HTMLAttributes<HTMLElement>;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
Trigger: ({ children, className, ...props }: {
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
props?: React.HTMLAttributes<HTMLElement>;
|
|
20
|
+
className?: string;
|
|
21
|
+
}) => React.JSX.Element;
|
|
22
|
+
Portal: ({ children, rootElement, ...props }: {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
rootElement: HTMLElement | React.MutableRefObject<HTMLElement | null> | undefined;
|
|
25
|
+
props: React.HTMLAttributes<HTMLElement>;
|
|
26
|
+
}) => React.JSX.Element;
|
|
27
|
+
Content: ({ children, ...props }: {
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
props?: React.HTMLAttributes<HTMLElement>;
|
|
30
|
+
}) => React.JSX.Element | null;
|
|
31
|
+
Arrow: ({ ...props }: {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
}) => React.JSX.Element;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { HoverCard as default };
|
|
37
|
+
export type { HoverCardProps };
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
'use client';import
|
|
2
|
-
/*!
|
|
3
|
-
* tabbable 6.2.0
|
|
4
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
|
-
*/var pe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),me="undefined"==typeof Element,ve=me?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ge=!me&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},he=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},ye=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var l=i.shift();if(!he(l,!1))if("SLOT"===l.tagName){var u=l.assignedElements(),c=e(u.length?u:l.children,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:l,candidates:c})}else{ve.call(l,pe)&&r.filter(l)&&(n||!t.includes(l))&&o.push(l);var s=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),a=!he(s,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(s&&a){var f=e(!0===s?l.children:s.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:l,candidates:f})}else i.unshift.apply(i,l.children)}}return o},we=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},be=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!we(e)?0:e.tabIndex},xe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ee=function(e){return"INPUT"===e.tagName},Re=function(e){return function(e){return Ee(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ge(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},Ce=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Le=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=ve.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ve.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ce(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,u=ge(e);if(l&&!l.shadowRoot&&!0===r(l))return Ce(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=i}if(function(e){var t,n,r,o,i=e&&ge(e),l=null===(t=i)||void 0===t?void 0:t.host,u=!1;if(i&&i!==e)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!u&&l;){var c,s,a;u=!(null===(s=l=null===(c=i=ge(l))||void 0===c?void 0:c.host)||void 0===s||null===(a=s.ownerDocument)||void 0===a||!a.contains(l))}return u}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},Se=function(e,t){return!(t.disabled||he(t)||function(e){return Ee(e)&&"hidden"===e.type}(t)||Le(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!ve.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Oe=function(e,t){return!(Re(t)||be(t)<0||!Se(e,t))},Te=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ae=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,l=i?t.scopeParent:t,u=function(e,t){var n=be(e);return n<0&&t&&!we(e)?0:n}(l,i),c=i?e(t.candidates):l;0===u?i?n.push.apply(n,c):n.push(l):r.push({documentOrder:o,tabIndex:u,item:t,isScope:i,content:c})})),r.sort(xe).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Pe=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ye([e],t.includeContainer,{filter:Oe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Te}):function(e,t,n){if(he(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(pe));return t&&ve.call(e,pe)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Oe.bind(null,t)),Ae(n)};function ke(e,t,n){let{reference:r,floating:o}=e;const i=ue(t),l=ce(t),u=le(l),c=re(t),s="y"===i,a=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[u]/2-o[u]/2;let p;switch(c){case"top":p={x:a,y:r.y-o.height};break;case"bottom":p={x:a,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(oe(t)){case"start":p[l]-=d*(n&&s?-1:1);break;case"end":p[l]+=d*(n&&s?-1:1)}return p}async function Me(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:u,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:a="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ne(t,e),m=fe(p),v=u[d?"floating"===f?"reference":"floating":f],g=de(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:s,rootBoundary:a,strategy:c})),h="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=de(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:h,offsetParent:y,strategy:c}):h);return{top:(g.top-b.top+m.top)/w.y,bottom:(b.bottom-g.bottom+m.bottom)/w.y,left:(g.left-b.left+m.left)/w.x,right:(b.right-g.right+m.right)/w.x}}function De(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ne(e){return $.some((t=>e[t]>=0))}function Fe(e){const t=A(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=x(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=G(n)!==i||G(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function Ie(e){return b(e)?e:e.contextElement}function We(e){const t=Ie(e);if(!x(t))return Q(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Fe(t);let l=(i?G(n.width):n.width)/r,u=(i?G(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}const He=Q(0);function je(e){const t=h(e);return O()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:He}function Be(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ie(e);let l=Q(1);t&&(r?b(r)&&(l=We(r)):l=We(e));const u=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==h(e))&&t}(i,n,r)?je(i):Q(0);let c=(o.left+u.x)/l.x,s=(o.top+u.y)/l.y,a=o.width/l.x,f=o.height/l.y;if(i){const e=h(i),t=r&&b(r)?h(r):r;let n=e,o=N(n);for(;o&&r&&t!==n;){const e=We(o),t=o.getBoundingClientRect(),r=A(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,a*=e.x,f*=e.y,c+=i,s+=l,n=h(o),o=N(n)}}return de({width:a,height:f,x:c,y:s})}function Ve(e,t){const n=P(e).scrollLeft;return t?t.left+n:Be(y(e)).left+n}function _e(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ve(e,r)),y:r.top+t.scrollTop}}function qe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=h(e),r=y(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,u=0,c=0;if(o){i=o.width,l=o.height;const e=O();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:u,y:c}}(e,n);else if("document"===t)r=function(e){const t=y(e),n=P(e),r=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Ve(e);const u=-n.scrollTop;return"rtl"===A(r).direction&&(l+=Z(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:u}}(y(e));else if(b(t))r=function(e,t){const n=Be(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=x(e)?We(e):Q(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=je(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return de(r)}function Ke(e,t){const n=k(e);return!(n===t||!b(n)||T(n))&&("fixed"===A(n).position||Ke(n,t))}function Xe(e,t,n){const r=x(t),o=y(t),i="fixed"===n,l=Be(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const c=Q(0);if(r||!r&&!i)if(("body"!==g(t)||R(o))&&(u=P(t)),r){const e=Be(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Ve(o));const s=!o||r||i?Q(0):_e(o,u);return{x:l.left+u.scrollLeft-c.x-s.x,y:l.top+u.scrollTop-c.y-s.y,width:l.width,height:l.height}}function Ue(e){return"static"===A(e).position}function Ye(e,t){if(!x(e)||"fixed"===A(e).position)return null;if(t)return t(e);let n=e.offsetParent;return y(e)===n&&(n=n.ownerDocument.body),n}function $e(e,t){const n=h(e);if(L(e))return n;if(!x(e)){let t=k(e);for(;t&&!T(t);){if(b(t)&&!Ue(t))return t;t=k(t)}return n}let r=Ye(e,t);for(;r&&C(r)&&Ue(r);)r=Ye(r,t);return r&&T(r)&&Ue(r)&&!S(r)?n:r||function(e){let t=k(e);for(;x(t)&&!T(t);){if(S(t))return t;if(L(t))return null;t=k(t)}return null}(e)||n}const ze={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=y(r),u=!!t&&L(t.floating);if(r===l||u&&i)return n;let c={scrollLeft:0,scrollTop:0},s=Q(1);const a=Q(0),f=x(r);if((f||!f&&!i)&&(("body"!==g(r)||R(l))&&(c=P(r)),x(r))){const e=Be(r);s=We(r),a.x=e.x+r.clientLeft,a.y=e.y+r.clientTop}const d=!l||f||i?Q(0):_e(l,c,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+a.x+d.x,y:n.y*s.y-c.scrollTop*s.y+a.y+d.y}},getDocumentElement:y,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?L(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=D(e,[],!1).filter((e=>b(e)&&"body"!==g(e))),o=null;const i="fixed"===A(e).position;let l=i?k(e):e;for(;b(l)&&!T(l);){const t=A(l),n=S(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||R(l)&&!n&&Ke(e,l))?r=r.filter((e=>e!==l)):o=t,l=k(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],u=i.reduce(((e,n)=>{const r=qe(t,n,o);return e.top=Z(r.top,e.top),e.right=z(r.right,e.right),e.bottom=z(r.bottom,e.bottom),e.left=Z(r.left,e.left),e}),qe(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:$e,getElementRects:async function(e){const t=this.getOffsetParent||$e,n=this.getDimensions,r=await n(e.floating);return{reference:Xe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Fe(e);return{width:t,height:n}},getScale:We,isElement:b,isRTL:function(e){return"rtl"===A(e).direction}},Ze=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:u}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=re(n),u=oe(n),c="y"===ue(n),s=["left","top"].includes(l)?-1:1,a=i&&c?-1:1,f=ne(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof m&&(p="end"===u?-1*m:m),c?{x:p*a,y:d*s}:{x:d*s,y:p*a}}(t,e);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:l}}}}},Ge=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ne(e,t),s={x:n,y:r},a=await Me(t,c),f=ue(re(o)),d=ie(f);let p=s[d],m=s[f];if(i){const e="y"===d?"bottom":"right";p=te(p+a["y"===d?"top":"left"],p,p-a[e])}if(l){const e="y"===f?"bottom":"right";m=te(m+a["y"===f?"top":"left"],m,m-a[e])}const v=u.fn({...t,[d]:p,[f]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:i,[f]:l}}}}}},Qe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:u,platform:c,elements:s}=t,{mainAxis:a=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...g}=ne(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const h=re(o),y=ue(u),w=re(u)===u,b=await(null==c.isRTL?void 0:c.isRTL(s.floating)),x=d||(w||!v?[ae(u)]:function(e){const t=ae(e);return[se(e),t,se(t)]}(u)),E="none"!==m;!d&&E&&x.push(...function(e,t,n,r){const o=oe(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(re(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(se)))),i}(u,v,m,b));const R=[u,...x],C=await Me(t,g),L=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(a&&L.push(C[h]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=oe(e),o=ce(e),i=le(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=ae(l)),[l,ae(l)]}(o,l,b);L.push(C[e[0]],C[e[1]])}if(S=[...S,{placement:o,overflows:L}],!L.every((e=>e<=0))){var O,T;const e=((null==(O=i.flip)?void 0:O.index)||0)+1,t=R[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(T=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=S.filter((e=>{if(E){const t=ue(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=u}if(o!==n)return{reset:{placement:n}}}return{}}}},Je=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ne(e,t);switch(r){case"referenceHidden":{const e=De(await Me(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ne(e)}}}case"escaped":{const e=De(await Me(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ne(e)}}}default:return{}}}}},et=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:u,middlewareData:c}=t,{element:s,padding:a=0}=ne(e,t)||{};if(null==s)return{};const f=fe(a),d={x:n,y:r},p=ce(o),m=le(p),v=await l.getDimensions(s),g="y"===p,h=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s));let R=E?E[w]:0;R&&await(null==l.isElement?void 0:l.isElement(E))||(R=u.floating[w]||i.floating[m]);const C=b/2-x/2,L=R/2-v[m]/2-1,S=z(f[h],L),O=z(f[y],L),T=S,A=R-v[m]-O,P=R/2-v[m]/2+C,k=te(T,P,A),M=!c.arrow&&null!=oe(o)&&P!==k&&i.reference[m]/2-(P<T?S:O)-v[m]/2<0,D=M?P<T?P-T:P-A:0;return{[p]:d[p]+D,data:{[p]:k,centerOffset:P-k-D,...M&&{alignmentOffset:D}},reset:M}}}),tt=(e,t,n)=>{const r=new Map,o={platform:ze,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:a,y:f}=ke(s,r,c),d=r,p={},m=0;for(let n=0;n<u.length;n++){const{name:i,fn:v}=u[n],{x:g,y:h,data:y,reset:w}=await v({x:a,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});a=null!=g?g:a,f=null!=h?h:f,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:a,y:f}=ke(s,d,c))),n=-1)}return{x:a,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var nt="undefined"!=typeof document?r:o;function rt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!rt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!rt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ot(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function it(e,t){const n=ot(e);return Math.round(t*n)/n}function lt(t){const n=e.useRef(t);return nt((()=>{n.current=t})),n}const ut=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?et({element:n.current,padding:r}).fn(t):{}:n?et({element:n,padding:r}).fn(t):{};var o}});function ct(t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}),t)}const st={...e},at=st.useInsertionEffect||(e=>e());function ft(t){const n=e.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return at((()=>{n.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}var dt="undefined"!=typeof document?r:o;let pt=!1,mt=0;const vt=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+mt++;const gt=st.useId||function(){const[t,n]=e.useState((()=>pt?vt():void 0));return dt((()=>{null==t&&n(vt())}),[]),e.useEffect((()=>{pt=!0}),[]),t};let ht;"production"!==process.env.NODE_ENV&&(ht=new Set);const yt=e.forwardRef((function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:l}},width:u=14,height:a=7,tipRadius:f=0,strokeWidth:d=0,staticOffset:p,stroke:m,d:v,style:{transform:g,...h}={},...y}=t;"production"!==process.env.NODE_ENV&&(n||function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=ht)&&e.has(o)||(null==(i=ht)||i.add(o),console.warn(o))}("The `ref` prop is required for `FloatingArrow`."));const w=gt(),[b,x]=e.useState(!1);if(dt((()=>{if(!o)return;"rtl"===A(o).direction&&x(!0)}),[o]),!o)return null;const[E,R]=r.split("-"),C="top"===E||"bottom"===E;let L=p;(C&&null!=l&&l.x||!C&&null!=l&&l.y)&&(L=null);const S=2*d,O=S/2,T=u/2*(f/-8+1),P=a/2*f/4,k=!!v,M=L&&"end"===R?"bottom":"top";let D=L&&"end"===R?"right":"left";L&&b&&(D="end"===R?"left":"right");const N=null!=(null==i?void 0:i.x)?L||i.x:"",F=null!=(null==i?void 0:i.y)?L||i.y:"",I=v||"M0,0 H"+u+" L"+(u-T)+","+(a-P)+" Q"+u/2+","+a+" "+T+","+(a-P)+" Z",W={top:k?"rotate(180deg)":"",left:k?"rotate(90deg)":"rotate(-90deg)",bottom:k?"":"rotate(180deg)",right:k?"rotate(-90deg)":"rotate(90deg)"}[E];return c("svg",{...y,"aria-hidden":!0,ref:n,width:k?u:u+S,height:u,viewBox:"0 0 "+u+" "+(a>u?a:u),style:{position:"absolute",pointerEvents:"none",[D]:N,[M]:F,[E]:C||k?"100%":"calc(100% - "+S/2+"px)",transform:[W,g].filter((e=>!!e)).join(" "),...h},children:[S>0&&s("path",{clipPath:"url(#"+w+")",fill:"none",stroke:m,strokeWidth:S+(v?0:1),d:I}),s("path",{stroke:S&&!v?y.fill:"none",d:I}),s("clipPath",{id:w,children:s("rect",{x:-O,y:O*(k?-1:1),width:u+S,height:u})})]})}));const wt=e.createContext(null),bt=e.createContext(null),xt=()=>{var t;return(null==(t=e.useContext(wt))?void 0:t.id)||null},Et=()=>e.useContext(bt);function Rt(e){return"data-floating-ui-"+e}function Ct(e){const t=i(e);return dt((()=>{t.current=e})),t}const Lt=Rt("safe-polygon");function St(e,t,n){return n&&!_(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let Ot=0;function Tt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Ot);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Ot=requestAnimationFrame(i)}function At(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function Pt(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let kt=new WeakMap,Mt=new WeakSet,Dt={},Nt=0;const Ft=e=>e&&(e.host||Ft(e.parentNode));function It(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=(u=t,e.map((e=>{if(u.contains(e))return e;const t=Ft(e);return u.contains(t)?t:null})).filter((e=>null!=e)));var u;const c=new Set,s=new Set(l),a=[];Dt[o]||(Dt[o]=new WeakMap);const f=Dt[o];return l.forEach((function e(t){if(!t||c.has(t))return;c.add(t),t.parentNode&&e(t.parentNode)})),function e(t){if(!t||s.has(t))return;[].forEach.call(t.children,(t=>{if("script"!==g(t))if(c.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=kt.get(t)||0,l=i?r+1:r,u=(f.get(t)||0)+1;kt.set(t,l),f.set(t,u),a.push(t),1===l&&n&&Mt.add(t),1===u&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),c.clear(),Nt++,()=>{a.forEach((e=>{const t=kt.get(e)||0,n=i?t-1:t,r=(f.get(e)||0)-1;kt.set(e,n),f.set(e,r),n||(!Mt.has(e)&&i&&e.removeAttribute(i),Mt.delete(e)),r||e.removeAttribute(o)})),Nt--,Nt||(kt=new WeakMap,kt=new WeakMap,Mt=new WeakSet,Dt={})}}function Wt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=q(e[0]).body;return It(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ht=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function jt(e,t){const n=Pe(e,Ht());"prev"===t&&n.reverse();const r=n.indexOf(F(q(e)));return n.slice(r+1)[0]}function Bt(){return jt(document.body,"next")}function Vt(){return jt(document.body,"prev")}function _t(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!I(n,r)}function qt(e){Pe(e,Ht()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Kt(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Xt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Ut(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Yt=e.forwardRef((function(t,n){const[r,o]=e.useState();dt((()=>(B()&&o("button"),document.addEventListener("keydown",Ut),()=>{document.removeEventListener("keydown",Ut)})),[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Rt("focus-guard")]:"",style:Xt};return s("span",{...t,...i})})),$t=e.createContext(null),zt=Rt("portal");const Zt=()=>e.useContext($t),Gt="data-floating-ui-focusable";function Qt(e){return e?e.hasAttribute(Gt)?e:e.querySelector("["+Gt+"]")||e:null}let Jt=[];function en(e){Jt=Jt.filter((e=>e.isConnected)),e&&"body"!==g(e)&&(Jt.push(e),Jt.length>20&&(Jt=Jt.slice(-20)))}function tn(){return Jt.slice().reverse().find((e=>e.isConnected))}function nn(e){const t=Ht();return function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ve.call(e,pe)&&Oe(t,e)}(e,t)?e:Pe(e,t)[0]||e}const rn=e.forwardRef((function(e,t){return s("button",{...e,type:"button",ref:t,tabIndex:-1,style:Xt})}));let on=0;let ln=()=>{};const un=e.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return dt((()=>{if(n)return on++,1===on&&(ln=function(){const e=/iP(hone|ad|od)|iOS/.test(W()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var l,u;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,n=(null==(u=window.visualViewport)?void 0:u.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{on--,0===on&&ln()}}),[n]),s("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})})),cn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},sn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},an=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function fn(t){const{open:n=!1,onOpenChange:r,elements:o}=t,i=gt(),l=e.useRef({}),[u]=e.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),c=null!=xt();if("production"!==process.env.NODE_ENV){const e=o.reference;e&&!b(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=ht)&&e.has(o)||(null==(i=ht)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[s,a]=e.useState(o.reference),f=ft(((e,t,n)=>{l.current.openEvent=e?t:void 0,u.emit("openchange",{open:e,event:t,reason:n,nested:c}),null==r||r(e,t,n)})),d=e.useMemo((()=>({setPositionReference:a})),[]),p=e.useMemo((()=>({reference:s||o.reference||null,floating:o.floating||null,domReference:o.reference})),[s,o.reference,o.floating]);return e.useMemo((()=>({dataRef:l,open:n,onOpenChange:f,elements:p,events:u,floatingId:i,refs:d})),[n,f,p,u,i,d])}const dn="active",pn="selected";function mn(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[dn]:t,[pn]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Gt]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var l;o&&[dn,pn].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const vn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);var gn={Portal:function(t){const{children:n,id:r,root:o,preserveTabOrder:i=!0}=t,l=function(t){void 0===t&&(t={});const{id:n,root:r}=t,o=gt(),i=Zt(),[l,u]=e.useState(null),c=e.useRef(null);return dt((()=>()=>{null==l||l.remove(),queueMicrotask((()=>{c.current=null}))}),[l]),dt((()=>{if(!o)return;if(c.current)return;const e=n?document.getElementById(n):null;if(!e)return;const t=document.createElement("div");t.id=o,t.setAttribute(zt,""),e.appendChild(t),c.current=t,u(t)}),[n,o]),dt((()=>{if(null===r)return;if(!o)return;if(c.current)return;let e=r||(null==i?void 0:i.portalNode);e&&!b(e)&&(e=e.current),e=e||document.body;let t=null;n&&(t=document.createElement("div"),t.id=n,e.appendChild(t));const l=document.createElement("div");l.id=o,l.setAttribute(zt,""),e=t||e,e.appendChild(l),c.current=l,u(l)}),[n,r,o,i]),l}({id:r,root:o}),[u,a]=e.useState(null),d=e.useRef(null),p=e.useRef(null),m=e.useRef(null),v=e.useRef(null),g=null==u?void 0:u.modal,h=null==u?void 0:u.open,y=!!u&&!u.modal&&u.open&&i&&!(!o&&!l);return e.useEffect((()=>{if(l&&i&&!g)return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){if(l&&_t(e)){("focusin"===e.type?Kt:qt)(l)}}}),[l,i,g]),e.useEffect((()=>{l&&(h||Kt(l))}),[h,l]),c($t.Provider,{value:e.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:d,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:v,portalNode:l,setFocusManagerState:a})),[i,l]),children:[y&&l&&s(Yt,{"data-type":"outside",ref:d,onFocus:e=>{if(_t(e,l)){var t;null==(t=m.current)||t.focus()}else{const e=Vt()||(null==u?void 0:u.domReference);null==e||e.focus()}}}),y&&l&&s("span",{"aria-owns":l.id,style:Xt}),l&&f.createPortal(n,l),y&&l&&s(Yt,{"data-type":"outside",ref:p,onFocus:e=>{if(_t(e,l)){var t;null==(t=v.current)||t.focus()}else{const t=Bt()||(null==u?void 0:u.domReference);null==t||t.focus(),(null==u?void 0:u.closeOnFocusOut)&&(null==u||u.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})},Overlay:un,FocusManager:function(t){const{context:n,children:r,disabled:o=!1,order:i=["content"],guards:l=!0,initialFocus:u=0,returnFocus:f=!0,restoreFocus:d=!1,modal:p=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:v=!0,outsideElementsInert:g=!1}=t,{open:h,onOpenChange:y,events:w,dataRef:b,elements:{domReference:E,floating:R}}=n,C=ft((()=>{var e;return null==(e=b.current.floatingContext)?void 0:e.nodeId})),L="number"==typeof u&&u<0,S=!!(O=E)&&"combobox"===O.getAttribute("role")&&U(O)&&L;var O;const T="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,A=!T||l,P=!A||T&&g,k=Ct(i),M=Ct(u),D=Ct(f),N=Et(),W=Zt(),H=e.useRef(null),B=e.useRef(null),_=e.useRef(!1),K=e.useRef(!1),$=e.useRef(-1),z=null!=W,Z=Qt(R),G=ft((function(e){return void 0===e&&(e=Z),e?Pe(e,Ht()):[]})),Q=ft((e=>{const t=G(e);return k.current.map((e=>E&&"reference"===e?E:Z&&"floating"===e?Z:t)).filter(Boolean).flat()}));e.useEffect((()=>{if(o)return;if(!p)return;function e(e){if("Tab"===e.key){I(Z,F(q(Z)))&&0===G().length&&!S&&Y(e);const t=Q(),n=X(e);"reference"===k.current[0]&&n===E&&(Y(e),e.shiftKey?Tt(t[t.length-1]):Tt(t[1])),"floating"===k.current[1]&&n===Z&&e.shiftKey&&(Y(e),Tt(t[0]))}}const t=q(Z);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,E,Z,p,k,S,G,Q]),e.useEffect((()=>{if(!o&&R)return R.addEventListener("focusin",e),()=>{R.removeEventListener("focusin",e)};function e(e){const t=X(e),n=G().indexOf(t);-1!==n&&($.current=n)}}),[o,R,G]),e.useEffect((()=>{if(!o&&v)return R&&x(E)?(E.addEventListener("focusout",t),E.addEventListener("pointerdown",e),R.addEventListener("focusout",t),()=>{E.removeEventListener("focusout",t),E.removeEventListener("pointerdown",e),R.removeEventListener("focusout",t)}):void 0;function e(){K.current=!0,setTimeout((()=>{K.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=C(),r=!(I(E,t)||I(R,t)||I(t,R)||I(null==W?void 0:W.portalNode,t)||null!=t&&t.hasAttribute(Rt("focus-guard"))||N&&(Pt(N.nodesRef.current,n).find((e=>{var n,r;return I(null==(n=e.context)?void 0:n.elements.floating,t)||I(null==(r=e.context)?void 0:r.elements.domReference,t)}))||At(N.nodesRef.current,n).find((e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Qt(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t}))));if(d&&r&&F(q(Z))===q(Z).body){x(Z)&&Z.focus();const e=$.current,t=G(),n=t[e]||t[t.length-1]||Z;x(n)&&n.focus()}!S&&p||!t||!r||K.current||t===tn()||(_.current=!0,y(!1,e,"focus-out"))}))}}),[o,E,R,Z,p,N,W,y,v,d,G,S,C]);const J=e.useRef(null),ee=e.useRef(null),te=ct([J,null==W?void 0:W.beforeInsideRef]),ne=ct([ee,null==W?void 0:W.afterInsideRef]);function re(e){return!o&&m&&p?s(rn,{ref:"start"===e?H:B,onClick:e=>y(!1,e.nativeEvent),children:"string"==typeof m?m:"Dismiss"}):null}e.useEffect((()=>{var e;if(o)return;if(!R)return;const t=Array.from((null==W||null==(e=W.portalNode)?void 0:e.querySelectorAll("["+Rt("portal")+"]"))||[]),n=N&&!p?At(null==N?void 0:N.nodesRef.current,C()).map((e=>{var t;return null==(t=e.context)?void 0:t.elements.floating})):[],r=[R,...t,...n,H.current,B.current,J.current,ee.current,null==W?void 0:W.beforeOutsideRef.current,null==W?void 0:W.afterOutsideRef.current,k.current.includes("reference")||S?E:null].filter((e=>null!=e)),i=p||S?Wt(r,!P,P):Wt(r);return()=>{i()}}),[o,E,R,p,k,W,S,A,P,N,C]),dt((()=>{if(o||!x(Z))return;const e=F(q(Z));queueMicrotask((()=>{const t=Q(Z),n=M.current,r=("number"==typeof n?t[n]:n.current)||Z,o=I(Z,e);L||o||!h||Tt(r,{preventScroll:r===Z})}))}),[o,h,Z,L,Q,M]),dt((()=>{if(o||!Z)return;let e=!1;const t=q(Z),n=F(t);let r=b.current.openEvent;function i(t){let{open:n,reason:o,event:i,nested:l}=t;n&&(r=i),"escape-key"===o&&E&&en(E),["hover","safe-polygon"].includes(o)&&"mouseleave"===i.type&&(_.current=!0),"outside-press"===o&&(l?(_.current=!1,e=!0):_.current=!(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(V()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(i)||j(i)))}en(n),w.on("openchange",i);const l=t.createElement("span");return l.setAttribute("tabindex","-1"),l.setAttribute("aria-hidden","true"),Object.assign(l.style,Xt),z&&E&&E.insertAdjacentElement("afterend",l),()=>{w.off("openchange",i);const n=F(t),o=I(R,n)||N&&Pt(N.nodesRef.current,C()).some((e=>{var t;return I(null==(t=e.context)?void 0:t.elements.floating,n)}));(o||r&&["click","mousedown"].includes(r.type))&&E&&en(E);const u="boolean"==typeof D.current?tn()||l:D.current.current||l;queueMicrotask((()=>{const r=nn(u);D.current&&!_.current&&x(r)&&(r===n||n===t.body||o)&&r.focus({preventScroll:e}),l.remove()}))}}),[o,R,Z,D,b,w,N,z,E,C]),e.useEffect((()=>{queueMicrotask((()=>{_.current=!1}))}),[o]),dt((()=>{if(!o&&W)return W.setFocusManagerState({modal:p,closeOnFocusOut:v,open:h,onOpenChange:y,domReference:E}),()=>{W.setFocusManagerState(null)}}),[o,W,p,h,y,v,E]),dt((()=>{if(o)return;if(!Z)return;if("function"!=typeof MutationObserver)return;if(L)return;const e=()=>{const e=Z.getAttribute("tabindex"),t=G(),n=F(q(R)),r=t.indexOf(n);-1!==r&&($.current=r),k.current.includes("floating")||n!==E&&0===t.length?"0"!==e&&Z.setAttribute("tabindex","0"):"-1"!==e&&Z.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(Z,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[o,R,Z,E,k,G,L]);const oe=!o&&A&&(!p||!S)&&(z||p);return c(a,{children:[oe&&s(Yt,{"data-type":"inside",ref:te,onFocus:e=>{if(p){const e=Q();Tt("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=W&&W.preserveTabOrder&&W.portalNode)if(_.current=!1,_t(e,W.portalNode)){const e=Bt()||E;null==e||e.focus()}else{var t;null==(t=W.beforeOutsideRef.current)||t.focus()}}}),!S&&re("start"),r,re("end"),oe&&s(Yt,{"data-type":"inside",ref:ne,onFocus:e=>{if(p)Tt(Q()[0]);else if(null!=W&&W.preserveTabOrder&&W.portalNode)if(v&&(_.current=!0),_t(e,W.portalNode)){const e=Vt()||E;null==e||e.focus()}else{var t;null==(t=W.afterOutsideRef.current)||t.focus()}}})]})},useFloating:function(t){void 0===t&&(t={});const{nodeId:n}=t,r=fn({...t,elements:{reference:null,floating:null,...t.elements}}),o=t.rootContext||r,i=o.elements,[l,u]=e.useState(null),[c,s]=e.useState(null),a=(null==i?void 0:i.domReference)||l,d=e.useRef(null),p=Et();dt((()=>{a&&(d.current=a)}),[a]);const m=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:u}={},transform:c=!0,whileElementsMounted:s,open:a}=t,[d,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,v]=e.useState(o);rt(m,o)||v(o);const[g,h]=e.useState(null),[y,w]=e.useState(null),b=e.useCallback((e=>{e!==C.current&&(C.current=e,h(e))}),[]),x=e.useCallback((e=>{e!==L.current&&(L.current=e,w(e))}),[]),E=l||g,R=u||y,C=e.useRef(null),L=e.useRef(null),S=e.useRef(d),O=null!=s,T=lt(s),A=lt(i),P=lt(a),k=e.useCallback((()=>{if(!C.current||!L.current)return;const e={placement:n,strategy:r,middleware:m};A.current&&(e.platform=A.current),tt(C.current,L.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};M.current&&!rt(S.current,t)&&(S.current=t,f.flushSync((()=>{p(t)})))}))}),[m,n,r,A,P]);nt((()=>{!1===a&&S.current.isPositioned&&(S.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[a]);const M=e.useRef(!1);nt((()=>(M.current=!0,()=>{M.current=!1})),[]),nt((()=>{if(E&&(C.current=E),R&&(L.current=R),E&&R){if(T.current)return T.current(E,R,k);k()}}),[E,R,k,T,O]);const D=e.useMemo((()=>({reference:C,floating:L,setReference:b,setFloating:x})),[b,x]),N=e.useMemo((()=>({reference:E,floating:R})),[E,R]),F=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!N.floating)return e;const t=it(N.floating,d.x),n=it(N.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...ot(N.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,c,N.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:k,refs:D,elements:N,floatingStyles:F})),[d,k,D,N,F])}({...t,elements:{...i,...c&&{reference:c}}}),v=e.useCallback((e=>{const t=b(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),m.refs.setReference(t)}),[m.refs]),g=e.useCallback((e=>{(b(e)||null===e)&&(d.current=e,u(e)),(b(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!b(e))&&m.refs.setReference(e)}),[m.refs]),h=e.useMemo((()=>({...m.refs,setReference:g,setPositionReference:v,domReference:d})),[m.refs,g,v]),y=e.useMemo((()=>({...m.elements,domReference:a})),[m.elements,a]),w=e.useMemo((()=>({...m,...o,refs:h,elements:y,nodeId:n})),[m,h,y,n,o]);return dt((()=>{o.dataRef.current.floatingContext=w;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===n));e&&(e.context=w)})),e.useMemo((()=>({...m,context:w,refs:h,elements:y})),[m,h,y,w])},Arrow:yt,arrow:(e,t)=>({...ut(e),options:[e,t]}),useRole:function(t,n){var r;void 0===n&&(n={});const{open:o,floatingId:i}=t,{enabled:l=!0,role:u="dialog"}=n,c=null!=(r=vn.get(u))?r:u,s=gt(),a=null!=xt(),f=e.useMemo((()=>"tooltip"===c||"label"===u?{["aria-"+("label"===u?"labelledby":"describedby")]:o?i:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":o?i:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:s},..."menu"===c&&a&&{role:"menuitem"},..."select"===u&&{"aria-autocomplete":"none"},..."combobox"===u&&{"aria-autocomplete":"list"}}),[c,i,a,o,s,u]),d=e.useMemo((()=>{const e={id:i,...c&&{role:c}};return"tooltip"===c||"label"===u?e:{...e,..."menu"===c&&{"aria-labelledby":s}}}),[c,i,s,u]),p=e.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(u){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[i,u]);return e.useMemo((()=>l?{reference:f,floating:d,item:p}:{}),[l,f,d,p])},useFocus:function(t,n){void 0===n&&(n={});const{open:r,onOpenChange:o,events:i,dataRef:l,elements:u}=t,{enabled:c=!0,visibleOnly:s=!0}=n,a=e.useRef(!1),f=e.useRef(),d=e.useRef(!0);e.useEffect((()=>{if(!c)return;const e=h(u.domReference);function t(){!r&&x(u.domReference)&&u.domReference===F(q(u.domReference))&&(a.current=!0)}function n(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}}),[u.domReference,r,c]),e.useEffect((()=>{if(c)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(a.current=!0)}}),[i,c]),e.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const p=e.useMemo((()=>({onPointerDown(e){j(e.nativeEvent)||(d.current=!1)},onMouseLeave(){a.current=!1},onFocus(e){if(a.current)return;const t=X(e.nativeEvent);if(s&&b(t))try{if(B()&&W().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!U(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){a.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=b(t)&&t.hasAttribute(Rt("focus-guard"))&&"outside"===t.getAttribute("data-type");f.current=window.setTimeout((()=>{var e;const i=F(u.domReference?u.domReference.ownerDocument:document);(t||i!==u.domReference)&&(I(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,i)||I(u.domReference,i)||r||o(!1,n,"focus"))}))}})),[l,u.domReference,o,s]);return e.useMemo((()=>c?{reference:p}:{}),[c,p])},useInteractions:function(t){void 0===t&&(t=[]);const n=t.map((e=>null==e?void 0:e.reference)),r=t.map((e=>null==e?void 0:e.floating)),o=t.map((e=>null==e?void 0:e.item)),i=e.useCallback((e=>mn(e,t,"reference")),n),l=e.useCallback((e=>mn(e,t,"floating")),r),u=e.useCallback((e=>mn(e,t,"item")),o);return e.useMemo((()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:u})),[i,l,u])},useDismiss:function(t,n){void 0===n&&(n={});const{open:r,onOpenChange:o,elements:i,dataRef:l}=t,{enabled:u=!0,escapeKey:c=!0,outsidePress:s=!0,outsidePressEvent:a="pointerdown",referencePress:f=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:m,capture:v}=n,g=Et(),h=ft("function"==typeof s?s:()=>!1),y="function"==typeof s?h:s,w=e.useRef(!1),E=e.useRef(!1),{escapeKey:R,outsidePress:C}=an(m),{escapeKey:L,outsidePress:S}=an(v),P=e.useRef(!1),M=ft((e=>{var t;if(!r||!u||!c||"Escape"!==e.key)return;if(P.current)return;const n=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=g?Pt(g.nodesRef.current,n):[];if(!R&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),N=ft((e=>{var t;const n=()=>{var t;M(e),null==(t=X(e))||t.removeEventListener("keydown",n)};null==(t=X(e))||t.addEventListener("keydown",n)})),F=ft((e=>{var t;const n=w.current;w.current=!1;const r=E.current;if(E.current=!1,"click"===a&&r)return;if(n)return;if("function"==typeof y&&!y(e))return;const u=X(e),c="["+Rt("inert")+"]",s=q(i.floating).querySelectorAll(c);let f=b(u)?u:null;for(;f&&!T(f);){const e=k(f);if(T(e)||!b(e))break;f=e}if(s.length&&b(u)&&!u.matches("html,body")&&!I(u,i.floating)&&Array.from(s).every((e=>!I(f,e))))return;if(x(u)&&j){const t=T(u),n=A(u),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&u.clientWidth>0&&u.scrollWidth>u.clientWidth,c=i&&u.clientHeight>0&&u.scrollHeight>u.clientHeight,s="rtl"===n.direction,a=c&&(s?e.offsetX<=u.offsetWidth-u.clientWidth:e.offsetX>u.clientWidth),f=l&&e.offsetY>u.clientHeight;if(a||f)return}const d=null==(t=l.current.floatingContext)?void 0:t.nodeId,p=g&&Pt(g.nodesRef.current,d).some((t=>{var n;return K(e,null==(n=t.context)?void 0:n.elements.floating)}));if(K(e,i.floating)||K(e,i.domReference)||p)return;const m=g?Pt(g.nodesRef.current,d):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),W=ft((e=>{var t;const n=()=>{var t;F(e),null==(t=X(e))||t.removeEventListener(a,n)};null==(t=X(e))||t.addEventListener(a,n)}));e.useEffect((()=>{if(!r||!u)return;l.current.__escapeKeyBubbles=R,l.current.__outsidePressBubbles=C;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),P.current=!0}function s(){e=window.setTimeout((()=>{P.current=!1}),O()?5:0)}const f=q(i.floating);c&&(f.addEventListener("keydown",L?N:M,L),f.addEventListener("compositionstart",n),f.addEventListener("compositionend",s)),y&&f.addEventListener(a,S?W:F,S);let d=[];return p&&(b(i.domReference)&&(d=D(i.domReference)),b(i.floating)&&(d=d.concat(D(i.floating))),!b(i.reference)&&i.reference&&i.reference.contextElement&&(d=d.concat(D(i.reference.contextElement)))),d=d.filter((e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})),d.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{c&&(f.removeEventListener("keydown",L?N:M,L),f.removeEventListener("compositionstart",n),f.removeEventListener("compositionend",s)),y&&f.removeEventListener(a,S?W:F,S),d.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[l,i,c,y,a,r,o,p,u,R,C,M,L,N,F,S,W]),e.useEffect((()=>{w.current=!1}),[y,a]);const H=e.useMemo((()=>({onKeyDown:M,...f&&{[cn[d]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}})),[M,o,f,d]),j=e.useMemo((()=>({onKeyDown:M,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[sn[a]]:()=>{w.current=!0}})),[M,a]);return e.useMemo((()=>u?{reference:H,floating:j}:{}),[u,H,j])},useHover:function(t,n){void 0===n&&(n={});const{open:r,onOpenChange:o,dataRef:i,events:l,elements:u}=t,{enabled:c=!0,delay:s=0,handleClose:a=null,mouseOnly:f=!1,restMs:d=0,move:p=!0}=n,m=Et(),v=xt(),g=Ct(a),h=Ct(s),y=Ct(r),w=e.useRef(),x=e.useRef(-1),E=e.useRef(),R=e.useRef(-1),C=e.useRef(!0),L=e.useRef(!1),S=e.useRef((()=>{})),O=e.useRef(!1),T=e.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);e.useEffect((()=>{if(c)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(R.current),C.current=!0,O.current=!1)}}),[c,l]),e.useEffect((()=>{if(!c)return;if(!g.current)return;if(!r)return;function e(e){T()&&o(!1,e,"hover")}const t=q(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[u.floating,r,o,c,g,T]);const A=e.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=St(h.current,"close",w.current);r&&!E.current?(clearTimeout(x.current),x.current=window.setTimeout((()=>o(!1,e,n)),r)):t&&(clearTimeout(x.current),o(!1,e,n))}),[h,o]),P=ft((()=>{S.current(),E.current=void 0})),k=ft((()=>{if(L.current){const e=q(u.floating).body;e.style.pointerEvents="",e.removeAttribute(Lt),L.current=!1}})),M=ft((()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)));e.useEffect((()=>{if(c&&b(u.domReference)){var e;const o=u.domReference;return r&&o.addEventListener("mouseleave",l),null==(e=u.floating)||e.addEventListener("mouseleave",l),p&&o.addEventListener("mousemove",t,{once:!0}),o.addEventListener("mouseenter",t),o.addEventListener("mouseleave",n),()=>{var e;r&&o.removeEventListener("mouseleave",l),null==(e=u.floating)||e.removeEventListener("mouseleave",l),p&&o.removeEventListener("mousemove",t),o.removeEventListener("mouseenter",t),o.removeEventListener("mouseleave",n)}}function t(e){if(clearTimeout(x.current),C.current=!1,f&&!_(w.current)||d>0&&!St(h.current,"open"))return;const t=St(h.current,"open",w.current);t?x.current=window.setTimeout((()=>{y.current||o(!0,e,"hover")}),t):r||o(!0,e,"hover")}function n(e){if(M())return;S.current();const t=q(u.floating);if(clearTimeout(R.current),O.current=!1,g.current&&i.current.floatingContext){r||clearTimeout(x.current),E.current=g.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){k(),P(),M()||A(e,!0,"safe-polygon")}});const n=E.current;return t.addEventListener("mousemove",n),void(S.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==w.current||!I(u.floating,e.relatedTarget))&&A(e)}function l(e){M()||i.current.floatingContext&&(null==g.current||g.current({...i.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){k(),P(),M()||A(e)}})(e))}}),[u,c,t,f,d,p,A,P,k,o,r,y,m,h,g,i,M]),dt((()=>{var e;if(c&&r&&null!=(e=g.current)&&e.__options.blockPointerEvents&&T()){L.current=!0;const e=u.floating;if(b(u.domReference)&&e){var t;const n=q(u.floating).body;n.setAttribute(Lt,"");const r=u.domReference,o=null==m||null==(t=m.nodesRef.current.find((e=>e.id===v)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[c,r,v,u,m,g,T]),dt((()=>{r||(w.current=void 0,O.current=!1,P(),k())}),[r,P,k]),e.useEffect((()=>()=>{P(),clearTimeout(x.current),clearTimeout(R.current),k()}),[c,u.domReference,P,k]);const D=e.useMemo((()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function n(){C.current||y.current||o(!0,t,"hover")}f&&!_(w.current)||r||0===d||O.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(R.current),"touch"===w.current?n():(O.current=!0,R.current=window.setTimeout(n,d)))}}}),[f,o,r,y,d]),N=e.useMemo((()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){M()||A(e.nativeEvent,!1)}})),[A,M]);return e.useMemo((()=>c?{reference:D,floating:N}:{}),[c,D,N])},flip:(e,t)=>({...Qe(e),options:[e,t]}),shift:(e,t)=>({...Ge(e),options:[e,t]}),hide:(e,t)=>({...Je(e),options:[e,t]}),offset:(e,t)=>({...Ze(e),options:[e,t]}),useMergeRefs:ct},hn=function(e,t){if(void 0===e&&(e=""),void 0===t&&(t=""),!t)return"";var n=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return e?"".concat(e,"-").concat(n):"".concat("rad-ui","-").concat(n)};function yn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=yn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yn(e))&&(r&&(r+=" "),r+=t);return r}var bn="HoverCard",xn=["div","span","button","input","a","img","p","h2","label"].reduce((function(e,n){return e[n]=function(e){var n=t.forwardRef((function(n,r){var o=n.asChild,i=void 0!==o&&o,l=n.children,u=p(n,["asChild","children"]);if(i){var c=t.Children.toArray(l);if(1!==c.length||!t.isValidElement(c[0]))return console.warn("Primitive.".concat(e,": asChild prop requires exactly one valid child element.")),t.createElement(e,d(d({},u),{ref:r}),l);var s=c[0];return t.cloneElement(s,d(d(d({},u),s.props),r?{ref:function(e){"function"==typeof r?r(e):r&&(r.current=e);var t=s.ref;"function"==typeof t?t(e):t&&(t.current=e)}}:{}))}return t.createElement(e,d(d({},u),{ref:r}),l)}));return n.displayName="Primitive.".concat(e),n}(n),e}),{}),En=function(){return console.warn("Direct usage of HoverCard is not supported. Please use HoverCard.Root, HoverCard.Trigger, etc. instead."),null};En.Root=function(e){var n=e.children,r=e.open,o=void 0===r?void 0:r,u=e.onOpenChange,c=e.customRootClass,s=void 0===c?"":c,a=e.openDelay,f=void 0===a?100:a,v=e.closeDelay,g=void 0===v?200:v,h=p(e,["children","open","onOpenChange","customRootClass","openDelay","closeDelay"]),y=hn(s,bn),w=hn(s,"".concat(bn,"-trigger")),b=i(null),x=gn.useFloating({placement:"bottom",strategy:"fixed",middleware:[gn.arrow({element:b}),gn.offset(10),gn.flip({mainAxis:!0})]}),E=x.refs,R=x.floatingStyles,C=x.context,L=l(!1),S=L[0],O=L[1],T=l(!1);T[0];var A=T[1],P=void 0!==o,k=P?o:S,M=function(e){P||O(e),null==u||u(e)},D=gn.useRole(C),N=gn.useDismiss(C),F=gn.useHover(C,{delay:100}),I=gn.useInteractions([F,D,N]),W=I.getReferenceProps,H=I.getFloatingProps,j={isOpen:k,handleOpenChange:M,floatingRefs:E,floatingStyles:R,floatingContext:C,arrowRef:b,getReferenceProps:W,getFloatingProps:H,rootClass:y,rootTriggerClass:w,closeWithDelay:function(){A(!0),setTimeout((function(){A((function(e){return e&&M(!1),e}))}),g)},closeWithoutDelay:function(){M(!1)},openWithDelay:function(){A(!1),setTimeout((function(){M(!0)}),f)}};return t.createElement(m.Provider,{value:j},t.createElement("div",d({className:wn(y)},h),n))},En.Trigger=function(e){var n=e.children,r=e.className,o=void 0===r?"":r,i=p(e,["children","className"]),l=u(m),c=l.floatingRefs,s=l.closeWithDelay,a=l.openWithDelay,f=l.rootTriggerClass;return t.createElement(t.Fragment,null,t.createElement(xn.span,d({className:wn(f,o),onClick:function(){},onMouseEnter:a,onMouseLeave:s,ref:c.setReference},i),n))},En.Portal=function(e){var n=e.children,r=e.rootElement,o=void 0===r?void 0:r,i=p(e,["children","rootElement"]),l=u(m).rootTriggerClass,c=o||document.getElementsByClassName(l)[0];return t.createElement(gn.Portal,d({root:c},i),n)},En.Content=function(e){var n=e.children,r=p(e,["children"]),i=u(m),l=i.isOpen,c=i.floatingRefs,s=i.floatingStyles,a=i.getFloatingProps,f=i.rootClass,v=i.closeWithDelay,g=i.closeWithoutDelay,h=i.openWithDelay;return o((function(){var e=function(){return g()};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[g]),l?t.createElement("div",d({onPointerEnter:h,onPointerLeave:v,className:wn(f)},r,{ref:c.setFloating,style:s},a()),n):null},En.Arrow=function(e){var n=p(e,[]),r=u(m),o=r.floatingContext,i=r.arrowRef,l=r.rootClass;return t.createElement(gn.Arrow,d({className:wn("".concat(l,"-arrow"))},n,{context:o,ref:i}))};export{En as default};
|
|
1
|
+
'use client';import{_ as e,a as o}from"./tslib.es6-BtVxab8e.js";import t,{createContext as n,useRef as r,useState as a,useContext as i,useEffect as s}from"react";import{F as l}from"./index-DAboJYKJ.js";import{c}from"./index-BVxS3Ixi.js";import{c as u}from"./clsx-BaVHROc5.js";import{P as f}from"./index-DIw4zyNG.js";import"./floating-ui.react-jh3caJnc.js";import"react/jsx-runtime";import"react-dom";var m=n({}),d="HoverCard",g=function(){return console.warn("Direct usage of HoverCard is not supported. Please use HoverCard.Root, HoverCard.Trigger, etc. instead."),null};g.Root=function(n){var i=n.children,s=n.open,f=void 0===s?void 0:s,g=n.onOpenChange,p=n.customRootClass,v=void 0===p?"":p,h=n.openDelay,C=void 0===h?100:h,y=n.closeDelay,D=void 0===y?200:y,E=e(n,["children","open","onOpenChange","customRootClass","openDelay","closeDelay"]),R=c(v,d),w=c(v,"".concat(d,"-trigger")),x=r(null),P=l.useFloating({placement:"bottom",strategy:"fixed",middleware:[l.arrow({element:x}),l.offset(10),l.flip({mainAxis:!0})]}),W=P.refs,j=P.floatingStyles,F=P.context,N=a(!1),T=N[0],H=N[1],O=a(!1);O[0];var L=O[1],b=void 0!==f,A=b?f:T,S=function(e){b||H(e),null==g||g(e)},M=l.useRole(F),k=l.useDismiss(F),B=l.useHover(F,{delay:100}),I=l.useInteractions([B,M,k]),_=I.getReferenceProps,q=I.getFloatingProps,z={isOpen:A,handleOpenChange:S,floatingRefs:W,floatingStyles:j,floatingContext:F,arrowRef:x,getReferenceProps:_,getFloatingProps:q,rootClass:R,rootTriggerClass:w,closeWithDelay:function(){L(!0),setTimeout((function(){L((function(e){return e&&S(!1),e}))}),D)},closeWithoutDelay:function(){S(!1)},openWithDelay:function(){L(!1),setTimeout((function(){S(!0)}),C)}};return t.createElement(m.Provider,{value:z},t.createElement("div",o({className:u(R)},E),i))},g.Trigger=function(n){var r=n.children,a=n.className,s=void 0===a?"":a,l=e(n,["children","className"]),c=i(m),d=c.floatingRefs,g=c.closeWithDelay,p=c.openWithDelay,v=c.rootTriggerClass;return t.createElement(t.Fragment,null,t.createElement(f.span,o({className:u(v,s),onClick:function(){},onMouseEnter:p,onMouseLeave:g,ref:d.setReference},l),r))},g.Portal=function(n){var r=n.children,a=n.rootElement,s=void 0===a?void 0:a,c=e(n,["children","rootElement"]),u=i(m).rootTriggerClass,f=s||document.getElementsByClassName(u)[0];return t.createElement(l.Portal,o({root:f},c),r)},g.Content=function(n){var r=n.children,a=e(n,["children"]),l=i(m),c=l.isOpen,f=l.floatingRefs,d=l.floatingStyles,g=l.getFloatingProps,p=l.rootClass,v=l.closeWithDelay,h=l.closeWithoutDelay,C=l.openWithDelay;return s((function(){var e=function(){return h()};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[h]),c?t.createElement("div",o({onPointerEnter:C,onPointerLeave:v,className:u(p)},a,{ref:f.setFloating,style:d},g()),r):null},g.Arrow=function(n){var r=e(n,[]),a=i(m),s=a.floatingContext,c=a.arrowRef,f=a.rootClass;return t.createElement(l.Arrow,o({className:u("".concat(f,"-arrow"))},r,{context:s,ref:c}))};export{g as default};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type KbdProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
customRootClass?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
props?: Record<string, any>[];
|
|
9
|
+
};
|
|
10
|
+
declare const Kbd: ({ children, customRootClass, className, size, ...props }: KbdProps) => React.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { Kbd as default };
|
|
13
|
+
export type { KbdProps };
|
package/dist/components/Kbd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{_ as s,a}from"./tslib.es6-BtVxab8e.js";import e from"react";import{c as o}from"./index-BVxS3Ixi.js";import{c as r}from"./clsx-BaVHROc5.js";import{u as t}from"./index-DpUtikes.js";var m=function(m){var i=m.children,c=m.customRootClass,l=m.className,d=m.size,n=void 0===d?"":d,f=s(m,["children","customRootClass","className","size"]),p=o(c,"Kbd"),u=t("kbd",{size:n});return e.createElement("kbd",a({className:r(p,l)},u(),f),i)};export{m as default};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type LinkProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
href: string;
|
|
6
|
+
customRootClass?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
props?: Record<string, any>[];
|
|
10
|
+
};
|
|
11
|
+
declare const Link: {
|
|
12
|
+
({ children, href, customRootClass, className, size, ...props }: LinkProps): React.JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Link as default };
|
|
17
|
+
export type { LinkProps };
|
package/dist/components/Link.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use client';import
|
|
1
|
+
'use client';import{_ as s,a}from"./tslib.es6-BtVxab8e.js";import e from"react";import{c as r}from"./clsx-BaVHROc5.js";import{c as o}from"./index-BVxS3Ixi.js";import{u as i}from"./index-DpUtikes.js";import{P as m}from"./index-DIw4zyNG.js";var t="Link",c=function(c){var l=c.children,f=c.href,n=void 0===f?"#":f,d=c.customRootClass,p=c.className,u=c.size,h=void 0===u?"":u,j=s(c,["children","href","customRootClass","className","size"]),x=o(d,t),v=i("link",{size:h});return e.createElement(m.a,a({href:n,className:r(x,p)},v(),j),l)};c.displayName=t;export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use client';import{_ as e,a as n}from"./tslib.es6-BtVxab8e.js";import t,{useState as s,useRef as a,useContext as i,useEffect as l}from"react";import{F as r}from"./index-DAboJYKJ.js";import{u as o}from"./index-fkj4Fdgt.js";import{B as c}from"./index-8D8A0ALD.js";var f=t.createContext(null),u=function(i){var l=i.children,c=i.className,u=i.open,d=i.onOpenChange,m=i.defaultOpen,p=void 0!==m&&m,g=i.crossAxisOffset,v=void 0===g?0:g,O=i.mainAxisOffset,x=void 0===O?0:O,h=e(i,["children","className","open","onOpenChange","defaultOpen","crossAxisOffset","mainAxisOffset"]),N=o(u,p,d),I=N[0],C=N[1],P=s(null),b=P[0],R=P[1],F=a([]),E=a([]),A=a([]),y=a(null),M=r.useFloatingNodeId(),k=r.useFloatingParentNodeId(),S=null!=k,T=r.useFloating({open:I,nodeId:M,onOpenChange:C,placement:S?"right-start":"bottom-start",middleware:[r.flip({mainAxis:!0}),r.offset({mainAxis:x,crossAxis:v})],whileElementsMounted:r.autoUpdate}),j=T.refs,L=T.floatingStyles,w=T.context,D=r.useListNavigation(w,{listRef:E,activeIndex:b,nested:S,onNavigate:R}),q=r.useClick(w,{}),B=r.useHover(w,{enabled:S,delay:{open:75},handleClose:r.safePolygon({blockPointerEvents:!0})}),H=r.useDismiss(w,{bubbles:!0}),U=r.useTypeahead(w,{listRef:A,onMatch:I?R:void 0,activeIndex:b}),_=r.useInteractions([H,q,D,B,U]),z=_.getReferenceProps,G=_.getFloatingProps,J=_.getItemProps,K={isOpen:I,setIsOpen:C,refs:j,floatingStyles:L,getReferenceProps:z,getFloatingProps:G,getItemProps:J,activeIndex:b,setActiveIndex:R,listRef:F,elementsRef:E,labelsRef:A,virtualItemRef:y,nodeId:M,isNested:S,floatingContext:w},Q=r.useFloatingTree();return t.useEffect((function(){if(Q)return Q.events.on("click",e),function(){Q.events.off("click",e)};function e(){C(!1)}}),[Q,M,k]),t.createElement("div",n({className:c,"data-tree":"true"},h),t.createElement(f.Provider,{value:K},t.createElement(r.FloatingNode,{id:M},l)))};var d=function(){return console.warn("Direct usage of MenuPrimitive is not supported. Please use MenuPrimitive.Root, MenuPrimitive.Item instead."),null};d.Root=function(s){var a=s.children,i=s.className,l=s.open,o=s.onOpenChange,c=s.defaultOpen,f=void 0!==c&&c,d=s.crossAxisOffset,m=s.mainAxisOffset,p=e(s,["children","className","open","onOpenChange","defaultOpen","crossAxisOffset","mainAxisOffset"]);return t.createElement(r.FloatingTree,null,t.createElement(u,n({className:i,open:l,onOpenChange:o,defaultOpen:f,crossAxisOffset:d,mainAxisOffset:m},p),a))},d.Item=function(s){var a=s.children,i=s.className,l=s.label,o=e(s,["children","className","label"]),c=t.useContext(f);if(!c)return null;var u=c.activeIndex,d=c.getItemProps,m=r.useListItem({label:l}),p=m.ref,g=m.index,v=r.useFloatingTree(),O=u===g;return t.createElement("button",n({ref:p,tabIndex:O?0:-1,className:i},d({onClick:function(e){null==v||v.events.emit("click")}}),o),a)},d.Trigger=function(s){var a=s.children,l=s.className,o=s.asChild,u=e(s,["children","className","asChild"]),d=i(f);if(!d)return null;d.isOpen,d.setIsOpen;var m=d.activeIndex,p=d.refs;d.floatingStyles;var g=d.getReferenceProps,v=d.isNested,O=r.useListItem(),x=O.ref,h=O.index;return t.createElement(c,n({className:l,tabIndex:v?m===h?0:-1:void 0,ref:r.useMergeRefs([p.setReference,x])},g(),{asChild:o},u),a)},d.Content=function(s){var a=s.children,l=s.className,o=e(s,["children","className"]),c=i(f);if(!c||!c.isOpen)return null;c.isOpen;var u=c.refs,d=c.floatingStyles,m=c.getFloatingProps,p=c.elementsRef,g=c.labelsRef;c.nodeId;var v=c.isNested,O=c.floatingContext;return t.createElement(r.FloatingList,{elementsRef:p,labelsRef:g},t.createElement(r.FocusManager,{context:O,modal:!1,initialFocus:v?-1:0,returnFocus:!v},t.createElement("div",n({ref:u.setFloating,style:d},m(),{className:l},o),a)))},d.Sub=function(s){var a=s.children,i=s.className,l=s.open,r=s.onOpenChange,o=s.defaultOpen,c=void 0!==o&&o,f=e(s,["children","className","open","onOpenChange","defaultOpen"]);return t.createElement(u,n({className:i,open:l,onOpenChange:r,defaultOpen:c},f),a)},d.Portal=function(e){var n=e.children,a=i(f);if(!a)return null;var o=a.isOpen,c=s(!1),u=c[0],d=c[1],m=document.querySelector("#rad-ui-theme-container")||document.body;return l((function(){m&&d(!0)}),[m]),o&&u?t.createElement(r.Portal,{root:m},n):null};export{d as M};
|