@xwadex/fesd-next 0.3.4-7.6 → 0.3.4-7.8

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 (121) hide show
  1. package/dist/components/anchors/anchors.d.ts +16 -0
  2. package/dist/components/anchors/anchors.js +26 -0
  3. package/dist/components/anchors/index.d.ts +1 -0
  4. package/dist/components/anchors/index.js +1 -0
  5. package/dist/components/index.d.ts +2 -2
  6. package/dist/components/index.js +2 -2
  7. package/dist/components/tests/index.d.ts +1 -0
  8. package/dist/components/tests/index.js +1 -0
  9. package/dist/components/tests/tests.d.ts +4 -0
  10. package/dist/components/tests/tests.js +10 -0
  11. package/dist/hooks/index.d.ts +0 -1
  12. package/dist/hooks/index.js +0 -1
  13. package/dist/hooks/useAnchors.d.ts +8 -5
  14. package/dist/hooks/useAnchors.js +74 -68
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.js +1 -0
  17. package/dist/shadcns/components/ui/accordion.d.ts +7 -0
  18. package/dist/shadcns/components/ui/accordion.js +18 -0
  19. package/dist/shadcns/components/ui/alert-dialog.d.ts +14 -0
  20. package/dist/shadcns/components/ui/alert-dialog.js +38 -0
  21. package/dist/shadcns/components/ui/alert.d.ts +9 -0
  22. package/dist/shadcns/components/ui/alert.js +25 -0
  23. package/dist/shadcns/components/ui/aspect-ratio.d.ts +3 -0
  24. package/dist/shadcns/components/ui/aspect-ratio.js +7 -0
  25. package/dist/shadcns/components/ui/avatar.d.ts +6 -0
  26. package/dist/shadcns/components/ui/avatar.js +14 -0
  27. package/dist/shadcns/components/ui/badge.d.ts +9 -0
  28. package/dist/shadcns/components/ui/badge.js +23 -0
  29. package/dist/shadcns/components/ui/breadcrumb.d.ts +11 -0
  30. package/dist/shadcns/components/ui/breadcrumb.js +27 -0
  31. package/dist/shadcns/components/ui/button.d.ts +10 -0
  32. package/dist/shadcns/components/ui/button.js +32 -0
  33. package/dist/shadcns/components/ui/calendar.d.ts +8 -0
  34. package/dist/shadcns/components/ui/calendar.js +73 -0
  35. package/dist/shadcns/components/ui/card.d.ts +9 -0
  36. package/dist/shadcns/components/ui/card.js +25 -0
  37. package/dist/shadcns/components/ui/carousel.d.ts +19 -0
  38. package/dist/shadcns/components/ui/carousel.js +91 -0
  39. package/dist/shadcns/components/ui/chart.d.ts +40 -0
  40. package/dist/shadcns/components/ui/chart.js +114 -0
  41. package/dist/shadcns/components/ui/checkbox.d.ts +4 -0
  42. package/dist/shadcns/components/ui/checkbox.js +9 -0
  43. package/dist/shadcns/components/ui/collapsible.d.ts +5 -0
  44. package/dist/shadcns/components/ui/collapsible.js +13 -0
  45. package/dist/shadcns/components/ui/command.d.ts +18 -0
  46. package/dist/shadcns/components/ui/command.js +33 -0
  47. package/dist/shadcns/components/ui/context-menu.d.ts +25 -0
  48. package/dist/shadcns/components/ui/context-menu.js +51 -0
  49. package/dist/shadcns/components/ui/dialog.d.ts +15 -0
  50. package/dist/shadcns/components/ui/dialog.js +36 -0
  51. package/dist/shadcns/components/ui/drawer.d.ts +13 -0
  52. package/dist/shadcns/components/ui/drawer.js +35 -0
  53. package/dist/shadcns/components/ui/dropdown-menu.d.ts +25 -0
  54. package/dist/shadcns/components/ui/dropdown-menu.js +51 -0
  55. package/dist/shadcns/components/ui/form.d.ts +24 -0
  56. package/dist/shadcns/components/ui/form.js +56 -0
  57. package/dist/shadcns/components/ui/hover-card.d.ts +6 -0
  58. package/dist/shadcns/components/ui/hover-card.js +14 -0
  59. package/dist/shadcns/components/ui/input-otp.d.ts +11 -0
  60. package/dist/shadcns/components/ui/input-otp.js +21 -0
  61. package/dist/shadcns/components/ui/input.d.ts +3 -0
  62. package/dist/shadcns/components/ui/input.js +6 -0
  63. package/dist/shadcns/components/ui/label.d.ts +4 -0
  64. package/dist/shadcns/components/ui/label.js +8 -0
  65. package/dist/shadcns/components/ui/menubar.d.ts +26 -0
  66. package/dist/shadcns/components/ui/menubar.js +54 -0
  67. package/dist/shadcns/components/ui/navigation-menu.d.ts +14 -0
  68. package/dist/shadcns/components/ui/navigation-menu.js +32 -0
  69. package/dist/shadcns/components/ui/pagination.d.ts +13 -0
  70. package/dist/shadcns/components/ui/pagination.js +28 -0
  71. package/dist/shadcns/components/ui/popover.d.ts +7 -0
  72. package/dist/shadcns/components/ui/popover.js +17 -0
  73. package/dist/shadcns/components/ui/progress.d.ts +4 -0
  74. package/dist/shadcns/components/ui/progress.js +8 -0
  75. package/dist/shadcns/components/ui/radio-group.d.ts +5 -0
  76. package/dist/shadcns/components/ui/radio-group.js +12 -0
  77. package/dist/shadcns/components/ui/resizable.d.ts +8 -0
  78. package/dist/shadcns/components/ui/resizable.js +15 -0
  79. package/dist/shadcns/components/ui/scroll-area.d.ts +5 -0
  80. package/dist/shadcns/components/ui/scroll-area.js +11 -0
  81. package/dist/shadcns/components/ui/select.d.ts +15 -0
  82. package/dist/shadcns/components/ui/select.js +38 -0
  83. package/dist/shadcns/components/ui/separator.d.ts +4 -0
  84. package/dist/shadcns/components/ui/separator.js +8 -0
  85. package/dist/shadcns/components/ui/sheet.d.ts +13 -0
  86. package/dist/shadcns/components/ui/sheet.js +40 -0
  87. package/dist/shadcns/components/ui/sidebar.d.ts +66 -0
  88. package/dist/shadcns/components/ui/sidebar.js +204 -0
  89. package/dist/shadcns/components/ui/skeleton.d.ts +2 -0
  90. package/dist/shadcns/components/ui/skeleton.js +6 -0
  91. package/dist/shadcns/components/ui/slider.d.ts +4 -0
  92. package/dist/shadcns/components/ui/slider.js +10 -0
  93. package/dist/shadcns/components/ui/sonner.d.ts +3 -0
  94. package/dist/shadcns/components/ui/sonner.js +13 -0
  95. package/dist/shadcns/components/ui/switch.d.ts +4 -0
  96. package/dist/shadcns/components/ui/switch.js +8 -0
  97. package/dist/shadcns/components/ui/table.d.ts +10 -0
  98. package/dist/shadcns/components/ui/table.js +28 -0
  99. package/dist/shadcns/components/ui/tabs.d.ts +7 -0
  100. package/dist/shadcns/components/ui/tabs.js +17 -0
  101. package/dist/shadcns/components/ui/textarea.d.ts +3 -0
  102. package/dist/shadcns/components/ui/textarea.js +7 -0
  103. package/dist/shadcns/components/ui/toggle-group.d.ts +7 -0
  104. package/dist/shadcns/components/ui/toggle-group.js +20 -0
  105. package/dist/shadcns/components/ui/toggle.d.ts +9 -0
  106. package/dist/shadcns/components/ui/toggle.js +26 -0
  107. package/dist/shadcns/components/ui/tooltip.d.ts +7 -0
  108. package/dist/shadcns/components/ui/tooltip.js +17 -0
  109. package/dist/{hooks/useIsMobile.js → shadcns/hooks/use-mobile.js} +5 -6
  110. package/dist/shadcns/index.d.ts +47 -0
  111. package/dist/shadcns/index.js +47 -0
  112. package/dist/shadcns/lib/utils.d.ts +2 -0
  113. package/dist/shadcns/lib/utils.js +5 -0
  114. package/dist/types/shadcns.type.d.ts +0 -1
  115. package/dist/types/shadcns.type.js +1 -0
  116. package/dist/utils/index.d.ts +0 -2
  117. package/dist/utils/index.js +0 -5
  118. package/package.json +5 -1
  119. package/dist/components/TestComponent.d.ts +0 -4
  120. package/dist/components/TestComponent.js +0 -10
  121. /package/dist/{hooks/useIsMobile.d.ts → shadcns/hooks/use-mobile.d.ts} +0 -0
@@ -0,0 +1,28 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,17 @@
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 };
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare function Textarea({ className, ...props }: React.ComponentProps<'textarea'>): import("react/jsx-runtime").JSX.Element;
3
+ export { Textarea };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,20 @@
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 };
@@ -0,0 +1,9 @@
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/dist/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 };
@@ -0,0 +1,26 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,17 @@
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,16 +1,15 @@
1
- "use client";
2
- import { useEffect, useState } from "react";
1
+ import * as React from 'react';
3
2
  const MOBILE_BREAKPOINT = 768;
4
3
  export function useIsMobile() {
5
- const [isMobile, setIsMobile] = useState(undefined);
6
- useEffect(() => {
4
+ const [isMobile, setIsMobile] = React.useState(undefined);
5
+ React.useEffect(() => {
7
6
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
8
7
  const onChange = () => {
9
8
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
10
9
  };
11
- mql.addEventListener("change", onChange);
10
+ mql.addEventListener('change', onChange);
12
11
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
13
- return () => mql.removeEventListener("change", onChange);
12
+ return () => mql.removeEventListener('change', onChange);
14
13
  }, []);
15
14
  return !!isMobile;
16
15
  }
@@ -0,0 +1,47 @@
1
+ export * from "./components/ui/accordion";
2
+ export * from "./components/ui/alert-dialog";
3
+ export * from "./components/ui/alert";
4
+ export * from "./components/ui/aspect-ratio";
5
+ export * from "./components/ui/avatar";
6
+ export * from "./components/ui/badge";
7
+ export * from "./components/ui/breadcrumb";
8
+ export * from "./components/ui/button";
9
+ export * from "./components/ui/calendar";
10
+ export * from "./components/ui/card";
11
+ export * from "./components/ui/carousel";
12
+ export * from "./components/ui/chart";
13
+ export * from "./components/ui/checkbox";
14
+ export * from "./components/ui/collapsible";
15
+ export * from "./components/ui/command";
16
+ export * from "./components/ui/context-menu";
17
+ export * from "./components/ui/dialog";
18
+ export * from "./components/ui/drawer";
19
+ export * from "./components/ui/dropdown-menu";
20
+ export * from "./components/ui/form";
21
+ export * from "./components/ui/hover-card";
22
+ export * from "./components/ui/input-otp";
23
+ export * from "./components/ui/input";
24
+ export * from "./components/ui/label";
25
+ export * from "./components/ui/menubar";
26
+ export * from "./components/ui/navigation-menu";
27
+ export * from "./components/ui/pagination";
28
+ export * from "./components/ui/popover";
29
+ export * from "./components/ui/progress";
30
+ export * from "./components/ui/radio-group";
31
+ export * from "./components/ui/resizable";
32
+ export * from "./components/ui/scroll-area";
33
+ export * from "./components/ui/select";
34
+ export * from "./components/ui/separator";
35
+ export * from "./components/ui/sheet";
36
+ export * from "./components/ui/sidebar";
37
+ export * from "./components/ui/skeleton";
38
+ export * from "./components/ui/slider";
39
+ export * from "./components/ui/sonner";
40
+ export * from "./components/ui/switch";
41
+ export * from "./components/ui/tabs";
42
+ export * from "./components/ui/textarea";
43
+ export * from "./components/ui/toggle-group";
44
+ export * from "./components/ui/toggle";
45
+ export * from "./components/ui/tooltip";
46
+ export * from "./hooks/use-mobile";
47
+ export * from "./lib/utils";
@@ -0,0 +1,47 @@
1
+ export * from "./components/ui/accordion";
2
+ export * from "./components/ui/alert-dialog";
3
+ export * from "./components/ui/alert";
4
+ export * from "./components/ui/aspect-ratio";
5
+ export * from "./components/ui/avatar";
6
+ export * from "./components/ui/badge";
7
+ export * from "./components/ui/breadcrumb";
8
+ export * from "./components/ui/button";
9
+ export * from "./components/ui/calendar";
10
+ export * from "./components/ui/card";
11
+ export * from "./components/ui/carousel";
12
+ export * from "./components/ui/chart";
13
+ export * from "./components/ui/checkbox";
14
+ export * from "./components/ui/collapsible";
15
+ export * from "./components/ui/command";
16
+ export * from "./components/ui/context-menu";
17
+ export * from "./components/ui/dialog";
18
+ export * from "./components/ui/drawer";
19
+ export * from "./components/ui/dropdown-menu";
20
+ export * from "./components/ui/form";
21
+ export * from "./components/ui/hover-card";
22
+ export * from "./components/ui/input-otp";
23
+ export * from "./components/ui/input";
24
+ export * from "./components/ui/label";
25
+ export * from "./components/ui/menubar";
26
+ export * from "./components/ui/navigation-menu";
27
+ export * from "./components/ui/pagination";
28
+ export * from "./components/ui/popover";
29
+ export * from "./components/ui/progress";
30
+ export * from "./components/ui/radio-group";
31
+ export * from "./components/ui/resizable";
32
+ export * from "./components/ui/scroll-area";
33
+ export * from "./components/ui/select";
34
+ export * from "./components/ui/separator";
35
+ export * from "./components/ui/sheet";
36
+ export * from "./components/ui/sidebar";
37
+ export * from "./components/ui/skeleton";
38
+ export * from "./components/ui/slider";
39
+ export * from "./components/ui/sonner";
40
+ export * from "./components/ui/switch";
41
+ export * from "./components/ui/tabs";
42
+ export * from "./components/ui/textarea";
43
+ export * from "./components/ui/toggle-group";
44
+ export * from "./components/ui/toggle";
45
+ export * from "./components/ui/tooltip";
46
+ export * from "./hooks/use-mobile";
47
+ export * from "./lib/utils";
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,5 @@
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+ export function cn(...inputs) {
4
+ return twMerge(clsx(...inputs));
5
+ }
@@ -1,4 +1,3 @@
1
- export { ComponentProps } from 'react';
2
1
  export type ShadcnBaseProps<P extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = {
3
2
  as?: React.ElementType;
4
3
  } & React.ComponentProps<P>;
@@ -1 +1,2 @@
1
+ // type AsPropsToOmit = "as" | "ref"
1
2
  export {};
@@ -1,5 +1,3 @@
1
- import { ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
3
1
  export declare const regexParse: (regexString: string, flags?: string) => RegExp | String;
4
2
  export declare const regexReplaceEach: (currentValue: string, replace: {
5
3
  pattern: string;
@@ -1,9 +1,4 @@
1
1
  import { lock, clearBodyLocks } from "tua-body-scroll-lock";
2
- import { clsx } from "clsx";
3
- import { twMerge } from "tailwind-merge";
4
- export function cn(...inputs) {
5
- return twMerge(clsx(...inputs));
6
- }
7
2
  export const regexParse = (regexString, flags) => {
8
3
  const regex = regexString.replace(/\\\\/g, "\\");
9
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwadex/fesd-next",
3
- "version": "0.3.4-7.6",
3
+ "version": "0.3.4-7.8",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,6 +13,10 @@
13
13
  "import": "./dist/components/index.js",
14
14
  "types": "./dist/components/index.d.ts"
15
15
  },
16
+ "./shadcns": {
17
+ "import": "./dist/shadcns/index.js",
18
+ "types": "./dist/shadcns/index.d.ts"
19
+ },
16
20
  "./hooks": {
17
21
  "import": "./dist/hooks/index.js",
18
22
  "types": "./dist/hooks/index.d.ts"
@@ -1,4 +0,0 @@
1
- export interface PropsTypes {
2
- }
3
- declare const TestComponent: React.FC<PropsTypes>;
4
- export default TestComponent;
@@ -1,10 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useAnchors } from "../hooks/index.js";
4
- import { cn } from "../utils";
5
- const TestComponent = () => {
6
- const { registerAnchors, registerContainers, scrollToAnchor } = useAnchors();
7
- return (_jsxs("div", { children: [_jsxs("div", { className: "flex flex-col gap-3 fixed top-0 right-0", children: [_jsx("button", { onClick: () => scrollToAnchor({ anchor: "#", }), children: "Scoll to Top" }), _jsx("button", { onClick: () => scrollToAnchor({ anchor: "50", }), children: "Scoll to 50" }), _jsx("button", { onClick: () => scrollToAnchor({ anchor: "100", }), children: "Scoll to 100" })] }), _jsx("h2", { className: "text-xl", children: "TestComponent content" }), _jsx("div", { className: cn("flex flex-col gap-5"), children: Array.from({ length: 200 }).map((_, index) => _jsx("div", { className: cn("p-3", "bg-indigo-600"), ...registerAnchors(String(index)), children: index }, index)) })] }));
8
- };
9
- TestComponent.displayName = "TestComponent";
10
- export default TestComponent;