@xwadex/fesd-next 0.3.4-7.9 → 0.3.4-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/components/index.d.ts +186 -2
  2. package/dist/components/index.js +9561 -2
  3. package/dist/components/index.js.map +1 -0
  4. package/dist/hooks/index.d.ts +68 -10
  5. package/dist/hooks/index.js +9243 -10
  6. package/dist/hooks/index.js.map +1 -0
  7. package/dist/index.d.ts +55 -5
  8. package/dist/index.js +36374 -5
  9. package/dist/index.js.map +1 -0
  10. package/dist/shadcns/index.d.ts +490 -48
  11. package/dist/shadcns/index.js +32495 -48
  12. package/dist/shadcns/index.js.map +1 -0
  13. package/dist/types/index.d.ts +17 -2
  14. package/dist/types/index.js +3 -2
  15. package/dist/types/index.js.map +1 -0
  16. package/dist/useAnchors-BzgJT2J9.d.ts +78 -0
  17. package/dist/utils/index.d.ts +12 -10
  18. package/dist/utils/index.js +56 -63
  19. package/dist/utils/index.js.map +1 -0
  20. package/package.json +11 -5
  21. package/dist/components/anchors/anchors.d.ts +0 -16
  22. package/dist/components/anchors/anchors.js +0 -26
  23. package/dist/components/anchors/index.d.ts +0 -1
  24. package/dist/components/anchors/index.js +0 -1
  25. package/dist/components/tests/index.d.ts +0 -1
  26. package/dist/components/tests/index.js +0 -1
  27. package/dist/components/tests/tests.d.ts +0 -4
  28. package/dist/components/tests/tests.js +0 -10
  29. package/dist/hooks/useAnchors.d.ts +0 -65
  30. package/dist/hooks/useAnchors.js +0 -170
  31. package/dist/hooks/useAsyncFetcher.d.ts +0 -11
  32. package/dist/hooks/useAsyncFetcher.js +0 -40
  33. package/dist/hooks/useCookies.d.ts +0 -6
  34. package/dist/hooks/useCookies.js +0 -19
  35. package/dist/hooks/useDebounce.d.ts +0 -7
  36. package/dist/hooks/useDebounce.js +0 -16
  37. package/dist/hooks/useDebounceValue.d.ts +0 -1
  38. package/dist/hooks/useDebounceValue.js +0 -17
  39. package/dist/hooks/useDragResize.d.ts +0 -22
  40. package/dist/hooks/useDragResize.js +0 -75
  41. package/dist/hooks/useEffectLeave.d.ts +0 -1
  42. package/dist/hooks/useEffectLeave.js +0 -12
  43. package/dist/hooks/useEffectOne.d.ts +0 -1
  44. package/dist/hooks/useEffectOne.js +0 -12
  45. package/dist/hooks/useHash.d.ts +0 -1
  46. package/dist/hooks/useHash.js +0 -19
  47. package/dist/hooks/useLocations.d.ts +0 -13
  48. package/dist/hooks/useLocations.js +0 -25
  49. package/dist/hooks/useMounted.d.ts +0 -3
  50. package/dist/hooks/useMounted.js +0 -7
  51. package/dist/hooks/useScrollContainers.d.ts +0 -27
  52. package/dist/hooks/useScrollContainers.js +0 -53
  53. package/dist/shadcns/components/ui/accordion.d.ts +0 -7
  54. package/dist/shadcns/components/ui/accordion.js +0 -18
  55. package/dist/shadcns/components/ui/alert-dialog.d.ts +0 -14
  56. package/dist/shadcns/components/ui/alert-dialog.js +0 -38
  57. package/dist/shadcns/components/ui/alert.d.ts +0 -9
  58. package/dist/shadcns/components/ui/alert.js +0 -25
  59. package/dist/shadcns/components/ui/aspect-ratio.d.ts +0 -3
  60. package/dist/shadcns/components/ui/aspect-ratio.js +0 -7
  61. package/dist/shadcns/components/ui/avatar.d.ts +0 -6
  62. package/dist/shadcns/components/ui/avatar.js +0 -14
  63. package/dist/shadcns/components/ui/badge.d.ts +0 -9
  64. package/dist/shadcns/components/ui/badge.js +0 -23
  65. package/dist/shadcns/components/ui/breadcrumb.d.ts +0 -11
  66. package/dist/shadcns/components/ui/breadcrumb.js +0 -27
  67. package/dist/shadcns/components/ui/button.d.ts +0 -10
  68. package/dist/shadcns/components/ui/button.js +0 -32
  69. package/dist/shadcns/components/ui/calendar.d.ts +0 -8
  70. package/dist/shadcns/components/ui/calendar.js +0 -73
  71. package/dist/shadcns/components/ui/card.d.ts +0 -9
  72. package/dist/shadcns/components/ui/card.js +0 -25
  73. package/dist/shadcns/components/ui/carousel.d.ts +0 -19
  74. package/dist/shadcns/components/ui/carousel.js +0 -91
  75. package/dist/shadcns/components/ui/chart.d.ts +0 -40
  76. package/dist/shadcns/components/ui/chart.js +0 -114
  77. package/dist/shadcns/components/ui/checkbox.d.ts +0 -4
  78. package/dist/shadcns/components/ui/checkbox.js +0 -9
  79. package/dist/shadcns/components/ui/collapsible.d.ts +0 -5
  80. package/dist/shadcns/components/ui/collapsible.js +0 -13
  81. package/dist/shadcns/components/ui/command.d.ts +0 -18
  82. package/dist/shadcns/components/ui/command.js +0 -33
  83. package/dist/shadcns/components/ui/context-menu.d.ts +0 -25
  84. package/dist/shadcns/components/ui/context-menu.js +0 -51
  85. package/dist/shadcns/components/ui/dialog.d.ts +0 -15
  86. package/dist/shadcns/components/ui/dialog.js +0 -36
  87. package/dist/shadcns/components/ui/drawer.d.ts +0 -13
  88. package/dist/shadcns/components/ui/drawer.js +0 -35
  89. package/dist/shadcns/components/ui/dropdown-menu.d.ts +0 -25
  90. package/dist/shadcns/components/ui/dropdown-menu.js +0 -51
  91. package/dist/shadcns/components/ui/form.d.ts +0 -24
  92. package/dist/shadcns/components/ui/form.js +0 -56
  93. package/dist/shadcns/components/ui/hover-card.d.ts +0 -6
  94. package/dist/shadcns/components/ui/hover-card.js +0 -14
  95. package/dist/shadcns/components/ui/input-otp.d.ts +0 -11
  96. package/dist/shadcns/components/ui/input-otp.js +0 -21
  97. package/dist/shadcns/components/ui/input.d.ts +0 -3
  98. package/dist/shadcns/components/ui/input.js +0 -6
  99. package/dist/shadcns/components/ui/label.d.ts +0 -4
  100. package/dist/shadcns/components/ui/label.js +0 -8
  101. package/dist/shadcns/components/ui/menubar.d.ts +0 -26
  102. package/dist/shadcns/components/ui/menubar.js +0 -54
  103. package/dist/shadcns/components/ui/navigation-menu.d.ts +0 -14
  104. package/dist/shadcns/components/ui/navigation-menu.js +0 -32
  105. package/dist/shadcns/components/ui/pagination.d.ts +0 -13
  106. package/dist/shadcns/components/ui/pagination.js +0 -28
  107. package/dist/shadcns/components/ui/popover.d.ts +0 -7
  108. package/dist/shadcns/components/ui/popover.js +0 -17
  109. package/dist/shadcns/components/ui/progress.d.ts +0 -4
  110. package/dist/shadcns/components/ui/progress.js +0 -8
  111. package/dist/shadcns/components/ui/radio-group.d.ts +0 -5
  112. package/dist/shadcns/components/ui/radio-group.js +0 -12
  113. package/dist/shadcns/components/ui/resizable.d.ts +0 -8
  114. package/dist/shadcns/components/ui/resizable.js +0 -15
  115. package/dist/shadcns/components/ui/scroll-area.d.ts +0 -5
  116. package/dist/shadcns/components/ui/scroll-area.js +0 -11
  117. package/dist/shadcns/components/ui/select.d.ts +0 -15
  118. package/dist/shadcns/components/ui/select.js +0 -38
  119. package/dist/shadcns/components/ui/separator.d.ts +0 -4
  120. package/dist/shadcns/components/ui/separator.js +0 -8
  121. package/dist/shadcns/components/ui/sheet.d.ts +0 -13
  122. package/dist/shadcns/components/ui/sheet.js +0 -40
  123. package/dist/shadcns/components/ui/sidebar.d.ts +0 -66
  124. package/dist/shadcns/components/ui/sidebar.js +0 -204
  125. package/dist/shadcns/components/ui/skeleton.d.ts +0 -2
  126. package/dist/shadcns/components/ui/skeleton.js +0 -6
  127. package/dist/shadcns/components/ui/slider.d.ts +0 -4
  128. package/dist/shadcns/components/ui/slider.js +0 -10
  129. package/dist/shadcns/components/ui/sonner.d.ts +0 -3
  130. package/dist/shadcns/components/ui/sonner.js +0 -13
  131. package/dist/shadcns/components/ui/switch.d.ts +0 -4
  132. package/dist/shadcns/components/ui/switch.js +0 -8
  133. package/dist/shadcns/components/ui/table.d.ts +0 -10
  134. package/dist/shadcns/components/ui/table.js +0 -28
  135. package/dist/shadcns/components/ui/tabs.d.ts +0 -7
  136. package/dist/shadcns/components/ui/tabs.js +0 -17
  137. package/dist/shadcns/components/ui/textarea.d.ts +0 -3
  138. package/dist/shadcns/components/ui/textarea.js +0 -7
  139. package/dist/shadcns/components/ui/toggle-group.d.ts +0 -7
  140. package/dist/shadcns/components/ui/toggle-group.js +0 -20
  141. package/dist/shadcns/components/ui/toggle.d.ts +0 -9
  142. package/dist/shadcns/components/ui/toggle.js +0 -26
  143. package/dist/shadcns/components/ui/tooltip.d.ts +0 -7
  144. package/dist/shadcns/components/ui/tooltip.js +0 -17
  145. package/dist/shadcns/hooks/use-mobile.d.ts +0 -1
  146. package/dist/shadcns/hooks/use-mobile.js +0 -15
  147. package/dist/shadcns/lib/utils.d.ts +0 -2
  148. package/dist/shadcns/lib/utils.js +0 -5
  149. package/dist/types/components.type.d.ts +0 -9
  150. package/dist/types/components.type.js +0 -1
  151. package/dist/types/shadcns.type.d.ts +0 -6
  152. package/dist/types/shadcns.type.js +0 -2
@@ -1,13 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useTheme } from 'next-themes';
4
- import { Toaster as Sonner } from 'sonner';
5
- const Toaster = ({ ...props }) => {
6
- const { theme = 'system' } = useTheme();
7
- return (_jsx(Sonner, { theme: theme, className: "toaster group", style: {
8
- '--normal-bg': 'var(--popover)',
9
- '--normal-text': 'var(--popover-foreground)',
10
- '--normal-border': 'var(--border)',
11
- }, ...props }));
12
- };
13
- export { Toaster };
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import * as SwitchPrimitive from '@radix-ui/react-switch';
3
- declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- export { Switch };
@@ -1,8 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as SwitchPrimitive from '@radix-ui/react-switch';
4
- import { cn } from '../../index.js';
5
- function Switch({ className, ...props }) {
6
- return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", className: cn('peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50', className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: cn('bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0') }) }));
7
- }
8
- export { Switch };
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare function Table({ className, ...props }: React.ComponentProps<'table'>): import("react/jsx-runtime").JSX.Element;
3
- declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): import("react/jsx-runtime").JSX.Element;
4
- declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): import("react/jsx-runtime").JSX.Element;
5
- declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): import("react/jsx-runtime").JSX.Element;
6
- declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): import("react/jsx-runtime").JSX.Element;
7
- declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): import("react/jsx-runtime").JSX.Element;
8
- declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): import("react/jsx-runtime").JSX.Element;
9
- declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): import("react/jsx-runtime").JSX.Element;
10
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
@@ -1,28 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { cn } from '../../index.js';
4
- function Table({ className, ...props }) {
5
- return (_jsx("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: _jsx("table", { "data-slot": "table", className: cn('w-full caption-bottom text-sm', className), ...props }) }));
6
- }
7
- function TableHeader({ className, ...props }) {
8
- return (_jsx("thead", { "data-slot": "table-header", className: cn('[&_tr]:border-b', className), ...props }));
9
- }
10
- function TableBody({ className, ...props }) {
11
- return (_jsx("tbody", { "data-slot": "table-body", className: cn('[&_tr:last-child]:border-0', className), ...props }));
12
- }
13
- function TableFooter({ className, ...props }) {
14
- return (_jsx("tfoot", { "data-slot": "table-footer", className: cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className), ...props }));
15
- }
16
- function TableRow({ className, ...props }) {
17
- return (_jsx("tr", { "data-slot": "table-row", className: cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', className), ...props }));
18
- }
19
- function TableHead({ className, ...props }) {
20
- return (_jsx("th", { "data-slot": "table-head", className: cn('text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className), ...props }));
21
- }
22
- function TableCell({ className, ...props }) {
23
- return (_jsx("td", { "data-slot": "table-cell", className: cn('p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className), ...props }));
24
- }
25
- function TableCaption({ className, ...props }) {
26
- return (_jsx("caption", { "data-slot": "table-caption", className: cn('text-muted-foreground mt-4 text-sm', className), ...props }));
27
- }
28
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import * as TabsPrimitive from '@radix-ui/react-tabs';
3
- declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
5
- declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -1,17 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as TabsPrimitive from '@radix-ui/react-tabs';
4
- import { cn } from '../../index.js';
5
- function Tabs({ className, ...props }) {
6
- return (_jsx(TabsPrimitive.Root, { "data-slot": "tabs", className: cn('flex flex-col gap-2', className), ...props }));
7
- }
8
- function TabsList({ className, ...props }) {
9
- return (_jsx(TabsPrimitive.List, { "data-slot": "tabs-list", className: cn('bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]', className), ...props }));
10
- }
11
- function TabsTrigger({ className, ...props }) {
12
- return (_jsx(TabsPrimitive.Trigger, { "data-slot": "tabs-trigger", className: cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props }));
13
- }
14
- function TabsContent({ className, ...props }) {
15
- return (_jsx(TabsPrimitive.Content, { "data-slot": "tabs-content", className: cn('flex-1 outline-none', className), ...props }));
16
- }
17
- export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- declare function Textarea({ className, ...props }: React.ComponentProps<'textarea'>): import("react/jsx-runtime").JSX.Element;
3
- export { Textarea };
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { cn } from '../../index.js';
4
- function Textarea({ className, ...props }) {
5
- return (_jsx("textarea", { "data-slot": "textarea", className: cn('border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className), ...props }));
6
- }
7
- export { Textarea };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
3
- import { type VariantProps } from 'class-variance-authority';
4
- import { toggleVariants } from '../../index.js';
5
- declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
6
- declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
7
- export { ToggleGroup, ToggleGroupItem };
@@ -1,20 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as React from 'react';
4
- import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
5
- import { cn, toggleVariants } from '../../index.js';
6
- const ToggleGroupContext = React.createContext({
7
- size: 'default',
8
- variant: 'default',
9
- });
10
- function ToggleGroup({ className, variant, size, children, ...props }) {
11
- return (_jsx(ToggleGroupPrimitive.Root, { "data-slot": "toggle-group", "data-variant": variant, "data-size": size, className: cn('group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs', className), ...props, children: _jsx(ToggleGroupContext.Provider, { value: { variant, size }, children: children }) }));
12
- }
13
- function ToggleGroupItem({ className, children, variant, size, ...props }) {
14
- const context = React.useContext(ToggleGroupContext);
15
- return (_jsx(ToggleGroupPrimitive.Item, { "data-slot": "toggle-group-item", "data-variant": context.variant || variant, "data-size": context.size || size, className: cn(toggleVariants({
16
- variant: context.variant || variant,
17
- size: context.size || size,
18
- }), 'min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l', className), ...props, children: children }));
19
- }
20
- export { ToggleGroup, ToggleGroupItem };
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import * as TogglePrimitive from '@radix-ui/react-toggle';
3
- import { type VariantProps } from 'class-variance-authority';
4
- declare const toggleVariants: (props?: ({
5
- variant?: "default" | "outline" | null | undefined;
6
- size?: "default" | "sm" | "lg" | null | undefined;
7
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
9
- export { Toggle, toggleVariants };
@@ -1,26 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as TogglePrimitive from '@radix-ui/react-toggle';
4
- import { cva } from 'class-variance-authority';
5
- import { cn } from '../../index.js';
6
- const toggleVariants = cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
7
- variants: {
8
- variant: {
9
- default: 'bg-transparent',
10
- outline: 'border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground',
11
- },
12
- size: {
13
- default: 'h-9 px-2 min-w-9',
14
- sm: 'h-8 px-1.5 min-w-8',
15
- lg: 'h-10 px-2.5 min-w-10',
16
- },
17
- },
18
- defaultVariants: {
19
- variant: 'default',
20
- size: 'default',
21
- },
22
- });
23
- function Toggle({ className, variant, size, ...props }) {
24
- return (_jsx(TogglePrimitive.Root, { "data-slot": "toggle", className: cn(toggleVariants({ variant, size, className })), ...props }));
25
- }
26
- export { Toggle, toggleVariants };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
4
- declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -1,17 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
- import { cn } from '../../index.js';
5
- function TooltipProvider({ delayDuration = 0, ...props }) {
6
- return (_jsx(TooltipPrimitive.Provider, { "data-slot": "tooltip-provider", delayDuration: delayDuration, ...props }));
7
- }
8
- function Tooltip({ ...props }) {
9
- return (_jsx(TooltipProvider, { children: _jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) }));
10
- }
11
- function TooltipTrigger({ ...props }) {
12
- return _jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
13
- }
14
- function TooltipContent({ className, sideOffset = 0, children, ...props }) {
15
- return (_jsx(TooltipPrimitive.Portal, { children: _jsxs(TooltipPrimitive.Content, { "data-slot": "tooltip-content", sideOffset: sideOffset, className: cn('bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance', className), ...props, children: [children, _jsx(TooltipPrimitive.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })] }) }));
16
- }
17
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -1 +0,0 @@
1
- export declare function useIsMobile(): boolean;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- const MOBILE_BREAKPOINT = 768;
3
- export function useIsMobile() {
4
- const [isMobile, setIsMobile] = React.useState(undefined);
5
- React.useEffect(() => {
6
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
7
- const onChange = () => {
8
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
9
- };
10
- mql.addEventListener('change', onChange);
11
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
12
- return () => mql.removeEventListener('change', onChange);
13
- }, []);
14
- return !!isMobile;
15
- }
@@ -1,2 +0,0 @@
1
- import { ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
@@ -1,5 +0,0 @@
1
- import { clsx } from "clsx";
2
- import { twMerge } from "tailwind-merge";
3
- export function cn(...inputs) {
4
- return twMerge(clsx(...inputs));
5
- }
@@ -1,9 +0,0 @@
1
- type AsTypes<T extends React.ElementType = "div"> = {
2
- as?: T;
3
- };
4
- type AsPropsToOmit<T extends React.ElementType, P> = keyof (AsTypes<T> & P);
5
- export type AsPropsTypes<T extends React.ElementType, P = {}> = P & AsTypes<T> & Omit<React.ComponentPropsWithoutRef<T>, AsPropsToOmit<T, P>>;
6
- export type SlotsPropsTypes = {
7
- [key: number]: string;
8
- };
9
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- export type ShadcnBaseProps<P extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = {
2
- as?: React.ElementType;
3
- } & React.ComponentProps<P>;
4
- export type BaseProps<T extends React.ElementType, P extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = {
5
- as?: T;
6
- } & React.ComponentProps<P>;
@@ -1,2 +0,0 @@
1
- // type AsPropsToOmit = "as" | "ref"
2
- export {};