@sikka/hawa 0.30.26-next → 0.30.27-next

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.
@@ -1,346 +1,21 @@
1
1
  "use client";
2
2
  import {
3
- useBreakpoint
4
- } from "../chunk-H7ZADF2Z.mjs";
3
+ reducer,
4
+ toast,
5
+ useClipboard,
6
+ useDialogCarousel,
7
+ useFocusWithin,
8
+ useIsomorphicEffect,
9
+ useMeasureDirty,
10
+ useMediaQuery,
11
+ useMultiStepDialog,
12
+ useTabs,
13
+ useToast,
14
+ useWindowSize
15
+ } from "../chunk-R2SKHHDK.mjs";
5
16
  import {
6
- useClipboard
7
- } from "../chunk-57SB6MBG.mjs";
8
- import "../chunk-4OOSUQZG.mjs";
9
-
10
- // hooks/useIsomorphicEffect.ts
11
- import { useEffect, useLayoutEffect } from "react";
12
- var useIsomorphicEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect;
13
-
14
- // hooks/useDiscloser.ts
15
- import { useState } from "react";
16
-
17
- // hooks/useHover.ts
18
- import { useEffect as useEffect2, useRef, useState as useState2 } from "react";
19
-
20
- // hooks/useToast.ts
21
- import * as React3 from "react";
22
- var TOAST_LIMIT = 5;
23
- var TOAST_REMOVE_DELAY = 1e5;
24
- var count = 0;
25
- function genId() {
26
- count = (count + 1) % Number.MAX_VALUE;
27
- return count.toString();
28
- }
29
- var toastTimeouts = /* @__PURE__ */ new Map();
30
- var addToRemoveQueue = (toastId) => {
31
- if (toastTimeouts.has(toastId)) {
32
- return;
33
- }
34
- const timeout = setTimeout(() => {
35
- toastTimeouts.delete(toastId);
36
- dispatch({ type: "REMOVE_TOAST", toastId });
37
- }, TOAST_REMOVE_DELAY);
38
- toastTimeouts.set(toastId, timeout);
39
- };
40
- var reducer = (state, action) => {
41
- switch (action.type) {
42
- case "ADD_TOAST":
43
- return {
44
- ...state,
45
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT)
46
- };
47
- case "UPDATE_TOAST":
48
- return {
49
- ...state,
50
- toasts: state.toasts.map(
51
- (t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
52
- )
53
- };
54
- case "DISMISS_TOAST": {
55
- const { toastId } = action;
56
- if (toastId) {
57
- addToRemoveQueue(toastId);
58
- } else {
59
- state.toasts.forEach((toast2) => {
60
- addToRemoveQueue(toast2.id);
61
- });
62
- }
63
- return {
64
- ...state,
65
- toasts: state.toasts.map(
66
- (t) => t.id === toastId || toastId === void 0 ? { ...t, open: false } : t
67
- )
68
- };
69
- }
70
- case "REMOVE_TOAST":
71
- if (action.toastId === void 0) {
72
- return { ...state, toasts: [] };
73
- }
74
- return {
75
- ...state,
76
- toasts: state.toasts.filter((t) => t.id !== action.toastId)
77
- };
78
- }
79
- };
80
- var listeners = [];
81
- var memoryState = { toasts: [] };
82
- function dispatch(action) {
83
- memoryState = reducer(memoryState, action);
84
- listeners.forEach((listener) => {
85
- listener(memoryState);
86
- });
87
- }
88
- function toast({ ...props }) {
89
- const id = genId();
90
- const update = (props2) => dispatch({ type: "UPDATE_TOAST", toast: { ...props2, id } });
91
- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
92
- dispatch({
93
- type: "ADD_TOAST",
94
- toast: {
95
- ...props,
96
- id,
97
- open: true,
98
- onOpenChange: (open) => {
99
- if (!open)
100
- dismiss();
101
- }
102
- }
103
- });
104
- return { id, dismiss, update };
105
- }
106
- function useToast() {
107
- const [state, setState] = React3.useState(memoryState);
108
- React3.useEffect(() => {
109
- listeners.push(setState);
110
- return () => {
111
- const index = listeners.indexOf(setState);
112
- if (index > -1) {
113
- listeners.splice(index, 1);
114
- }
115
- };
116
- }, [state]);
117
- return {
118
- ...state,
119
- toast,
120
- dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
121
- };
122
- }
123
-
124
- // hooks/useCarousel.ts
125
- import { useState as useState4, useRef as useRef2 } from "react";
126
-
127
- // hooks/useDialogCarousel.ts
128
- import { useEffect as useEffect4, useState as useState5 } from "react";
129
- import AutoHeight from "embla-carousel-auto-height";
130
- import useEmblaCarousel from "embla-carousel-react";
131
- var useDialogCarousel = (options) => {
132
- const [emblaRef, emblaApi] = useEmblaCarousel(
133
- { loop: false, watchDrag: false, startIndex: 0, ...options },
134
- [AutoHeight({ destroyHeight: "fit", active: true })]
135
- );
136
- const [canScrollPrev, setCanScrollPrev] = useState5(false);
137
- const checkCanScrollPrev = () => {
138
- if (emblaApi) {
139
- setCanScrollPrev(emblaApi.canScrollPrev());
140
- }
141
- };
142
- const nextStep = () => {
143
- if (emblaApi) {
144
- console.log("going to NEXT \u{1F449}");
145
- emblaApi.scrollNext();
146
- }
147
- };
148
- const prevStep = () => {
149
- if (emblaApi) {
150
- console.log("going to BACK \u{1F448}");
151
- emblaApi.scrollPrev();
152
- }
153
- };
154
- useEffect4(() => {
155
- checkCanScrollPrev();
156
- emblaApi && emblaApi.on("select", checkCanScrollPrev);
157
- return () => {
158
- emblaApi && emblaApi.off("select", checkCanScrollPrev);
159
- };
160
- }, [emblaApi]);
161
- return {
162
- emblaRef,
163
- emblaApi,
164
- nextStep,
165
- prevStep,
166
- canScrollPrev
167
- };
168
- };
169
-
170
- // hooks/useDialogSteps.ts
171
- import { useState as useState6, useEffect as useEffect5, useRef as useRef3 } from "react";
172
- var useMultiStepDialog = (initialStep, stepIds, setOpenDialog) => {
173
- const [currentStep, setCurrentStep] = useState6(initialStep);
174
- const [dialogHeight, setDialogHeight] = useState6(null);
175
- const visibleStepRef = useRef3(null);
176
- useEffect5(() => {
177
- if (visibleStepRef.current) {
178
- setDialogHeight(visibleStepRef.current.offsetHeight);
179
- }
180
- }, [currentStep, setOpenDialog]);
181
- const handleNext = () => {
182
- const currentIndex = stepIds.indexOf(currentStep);
183
- if (currentIndex < stepIds.length - 1) {
184
- setTimeout(() => {
185
- setCurrentStep(stepIds[currentIndex + 1]);
186
- }, 100);
187
- }
188
- };
189
- const handleBack = () => {
190
- const currentIndex = stepIds.indexOf(currentStep);
191
- if (currentIndex > 0) {
192
- setTimeout(() => {
193
- setCurrentStep(stepIds[currentIndex - 1]);
194
- }, 100);
195
- }
196
- };
197
- return {
198
- currentStep,
199
- dialogHeight,
200
- visibleStepRef,
201
- handleNext,
202
- handleBack
203
- };
204
- };
205
-
206
- // hooks/useWindowSize.ts
207
- import { useEffect as useEffect6, useState as useState7 } from "react";
208
- var useWindowSize = () => {
209
- const [windowSize, setWindowSize] = useState7({
210
- width: void 0,
211
- height: void 0
212
- });
213
- useEffect6(() => {
214
- function handleResize() {
215
- setWindowSize({
216
- width: window.innerWidth,
217
- height: window.innerHeight
218
- });
219
- }
220
- window.addEventListener("resize", handleResize);
221
- handleResize();
222
- return () => window.removeEventListener("resize", handleResize);
223
- }, []);
224
- return windowSize;
225
- };
226
-
227
- // hooks/useFocusWithin.ts
228
- import { useRef as useRef4, useState as useState8, useEffect as useEffect7 } from "react";
229
- function containsRelatedTarget(event) {
230
- if (event.currentTarget instanceof HTMLElement && event.relatedTarget instanceof HTMLElement) {
231
- return event.currentTarget.contains(event.relatedTarget);
232
- }
233
- return false;
234
- }
235
- function useFocusWithin({
236
- onBlur,
237
- onFocus
238
- } = {}) {
239
- const ref = useRef4(null);
240
- const [focused, _setFocused] = useState8(false);
241
- const focusedRef = useRef4(false);
242
- const setFocused = (value) => {
243
- _setFocused(value);
244
- focusedRef.current = value;
245
- };
246
- const handleFocusIn = (event) => {
247
- if (!focusedRef.current) {
248
- setFocused(true);
249
- onFocus == null ? void 0 : onFocus(event);
250
- }
251
- };
252
- const handleFocusOut = (event) => {
253
- if (focusedRef.current && !containsRelatedTarget(event)) {
254
- setFocused(false);
255
- onBlur == null ? void 0 : onBlur(event);
256
- }
257
- };
258
- useEffect7(() => {
259
- if (ref.current) {
260
- ref.current.addEventListener("focusin", handleFocusIn);
261
- ref.current.addEventListener("focusout", handleFocusOut);
262
- return () => {
263
- var _a, _b;
264
- (_a = ref.current) == null ? void 0 : _a.removeEventListener("focusin", handleFocusIn);
265
- (_b = ref.current) == null ? void 0 : _b.removeEventListener("focusout", handleFocusOut);
266
- };
267
- }
268
- return void 0;
269
- }, [handleFocusIn, handleFocusOut]);
270
- return { ref, focused };
271
- }
272
-
273
- // hooks/useMediaQuery.ts
274
- import { useState as useState9, useEffect as useEffect8, useRef as useRef5 } from "react";
275
- function attachMediaListener(query, callback) {
276
- try {
277
- query.addEventListener("change", callback);
278
- return () => query.removeEventListener("change", callback);
279
- } catch (e) {
280
- query.addListener(callback);
281
- return () => query.removeListener(callback);
282
- }
283
- }
284
- function getInitialValue(query, initialValue) {
285
- if (typeof initialValue === "boolean") {
286
- return initialValue;
287
- }
288
- if (typeof window !== "undefined" && "matchMedia" in window) {
289
- return window.matchMedia(query).matches;
290
- }
291
- return false;
292
- }
293
- function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
294
- getInitialValueInEffect: true
295
- }) {
296
- const [matches, setMatches] = useState9(
297
- getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
298
- );
299
- const queryRef = useRef5();
300
- useEffect8(() => {
301
- if ("matchMedia" in window) {
302
- queryRef.current = window.matchMedia(query);
303
- setMatches(queryRef.current.matches);
304
- return attachMediaListener(
305
- queryRef.current,
306
- (event) => setMatches(event.matches)
307
- );
308
- }
309
- return void 0;
310
- }, [query]);
311
- return matches;
312
- }
313
-
314
- // hooks/useScrollPosition.ts
315
- import { useState as useState10, useEffect as useEffect9 } from "react";
316
-
317
- // hooks/useTable.ts
318
- import { useState as useState11, useEffect as useEffect10 } from "react";
319
-
320
- // hooks/useTabs.ts
321
- import { useEffect as useEffect11, useState as useState12 } from "react";
322
- function useTabs(initialTab = "") {
323
- const [activeTab, setActiveTab] = useState12(initialTab);
324
- useEffect11(() => {
325
- const handleHashChange = () => {
326
- const hash = window.location.hash.substring(1);
327
- setActiveTab(hash || initialTab);
328
- };
329
- window.addEventListener("hashchange", handleHashChange);
330
- handleHashChange();
331
- return () => {
332
- window.removeEventListener("hashchange", handleHashChange);
333
- };
334
- }, [initialTab]);
335
- const handleTabChange = (index) => {
336
- setActiveTab(index);
337
- window.location.hash = index;
338
- };
339
- return {
340
- activeTab,
341
- handleTabChange
342
- };
343
- }
17
+ useBreakpoint
18
+ } from "../chunk-UDCDD66A.mjs";
344
19
  export {
345
20
  reducer,
346
21
  toast,
@@ -349,6 +24,7 @@ export {
349
24
  useDialogCarousel,
350
25
  useFocusWithin,
351
26
  useIsomorphicEffect,
27
+ useMeasureDirty,
352
28
  useMediaQuery,
353
29
  useMultiStepDialog,
354
30
  useTabs,
package/dist/index.d.mts CHANGED
@@ -2108,4 +2108,14 @@ declare function useTabs(initialTab?: string): {
2108
2108
  handleTabChange: (index: any) => void;
2109
2109
  };
2110
2110
 
2111
- export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PhoneMockup, PinInput, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
2111
+ interface ContentRect {
2112
+ width: number;
2113
+ height: number;
2114
+ top: number;
2115
+ right: number;
2116
+ left: number;
2117
+ bottom: number;
2118
+ }
2119
+ declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
2120
+
2121
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PhoneMockup, PinInput, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -2108,4 +2108,14 @@ declare function useTabs(initialTab?: string): {
2108
2108
  handleTabChange: (index: any) => void;
2109
2109
  };
2110
2110
 
2111
- export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PhoneMockup, PinInput, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
2111
+ interface ContentRect {
2112
+ width: number;
2113
+ height: number;
2114
+ top: number;
2115
+ right: number;
2116
+ left: number;
2117
+ bottom: number;
2118
+ }
2119
+ declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
2120
+
2121
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionRoot, AccordionTrigger, ActionCard, AdCard, Alert, Announcement, AppLanding, AppLayout, type AppSidebarItemProps, AppStores, AppTabs, AppTopbar, AuthButtons, Avatar, BackToTop, Badge, BadgedComponent, Breadcrumb, type BreadcrumbItemProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CheckEmail, Checkbox, Chip, type ChipColors, type ChipTypes, CodeBlock, CodeConfirmation, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, type CommandInputProps, CommandItem, CommandList, CommandSeparator, CommandShortcut, ComparingPlans, ContactForm, type ContentRect, Copyrights, Count, DataTable, DestroyableCard, Dialog, DialogBody, DialogCarousel, DialogCarouselContent, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogStep, DialogSteps, DialogTitle, DialogTrigger, DocsLayout, DocsSidebar, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadio, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FeedbackEmoji, FeedbackForm, FeedbackRating, FileDropzone, FileUploader, HorizontalPricing, Input, InterfaceSettings, ItemCard, Label, type LabelProps, LandingCard, LeadGenerator, LegalTexts, Loading, LoginForm, Logos, type MenuItemType, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem$1 as NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport, NewPasswordForm, NoPermission, NotFound, Pagination, PasswordInput, PasswordStrengthIndicator, PhoneInput, PhoneMockup, PinInput, Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger, PricingCard, PricingPlans, Progress, ProgressCircle, Radio, type RadioOptionsTypes, RegisterForm, ResetPasswordForm, ScrollArea, ScrollBar, ScrollIndicator, Select, type SelectOptionProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarGroup, SidebarItem, SimpleTable, Skeleton, Slider, SortButton, StandardNavigationMenuItem, Stats, StopPropagationWrapper, type SubItem$1 as SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, type TextFieldTypes, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, type ToasterToastProps, Tooltip, Usage, type UseFocusWithinOptions, type UseMediaQueryOptions, UserReferralSource, buttonVariants, navigationMenuTriggerStyle, reducer, toast, useBreakpoint, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };