@xwadex/fesd-next 0.3.42 → 0.3.44-bate.2

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,11 +1,10 @@
1
1
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
2
  import type { ShadcnBaseProps } from "../../types/index.js";
3
- type AccordionProps<T extends React.ElementType> = ShadcnBaseProps<T, React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>> & {
3
+ type PropsType = ShadcnBaseProps<typeof AccordionPrimitive.Root> & {
4
4
  as?: React.ElementType;
5
- onChange?: (value?: string | string[]) => void;
6
5
  };
7
- declare function Accordion<T extends React.ElementType = "div">({ as, value, onChange, children, className, ...props }: AccordionProps<T>): import("react/jsx-runtime").JSX.Element;
8
- declare namespace Accordion {
9
- var displayName: string;
10
- }
6
+ declare const Accordion: {
7
+ (props: PropsType): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
11
10
  export default Accordion;
@@ -1,14 +1,10 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useEffect } from "react";
4
3
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
5
- function Accordion({ as, value, onChange, children, className, ...props }) {
4
+ const Accordion = (props) => {
5
+ const { as, children, ...restProps } = props;
6
6
  const Component = as || "div";
7
- useEffect(() => {
8
- console.log(value);
9
- onChange?.(value);
10
- }, [value]);
11
- return (_jsx(AccordionPrimitive.Root, { asChild: true, "data-slot": "accordion", ...props, children: _jsx(Component, { children: children }) }));
12
- }
7
+ return (_jsx(AccordionPrimitive.Root, { asChild: true, "data-slot": "accordion", ...restProps, children: _jsx(Component, { children: children }) }));
8
+ };
13
9
  Accordion.displayName = "Accordion";
14
10
  export default Accordion;
@@ -1,10 +1,11 @@
1
1
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
2
  import type { ShadcnBaseProps } from "../../types/index.js";
3
- type AccordionContentProps<T extends React.ElementType> = ShadcnBaseProps<T, React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>> & {
3
+ type PropsType = ShadcnBaseProps<typeof AccordionPrimitive.Content> & {
4
4
  as?: React.ElementType;
5
+ ref?: React.Ref<Element>;
6
+ };
7
+ declare const AccordionContent: {
8
+ (props: PropsType): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
5
10
  };
6
- declare function AccordionContent<T extends React.ElementType = "div">({ as, className, children, ...props }: AccordionContentProps<T>): import("react/jsx-runtime").JSX.Element;
7
- declare namespace AccordionContent {
8
- var displayName: string;
9
- }
10
11
  export default AccordionContent;
@@ -3,15 +3,18 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
4
  import { useMounted } from "../../hooks/index.js";
5
5
  import { cn } from "../../utils/index.js";
6
- function AccordionContent({ as, className, children, ...props }) {
6
+ import { useImperativeHandle, useRef } from "react";
7
+ const AccordionContent = (props) => {
8
+ const { as, ref, className, children, ...restProps } = props;
7
9
  const Component = as || "div";
10
+ const insideRef = useRef(null);
11
+ useImperativeHandle(ref, () => insideRef.current);
8
12
  const { isMounded } = useMounted();
9
- return (_jsx(AccordionPrimitive.Content, { asChild: true, "data-slot": "accordion-content", className: cn(`
10
- overflow-hidden
11
- text-sm`, isMounded && `
12
- data-[state=closed]:animate-accordion-up2
13
- data-[state=open]:animate-accordion-down2
14
- `), ...props, children: _jsx(Component, { children: children }) }));
15
- }
13
+ return (_jsx(AccordionPrimitive.Content, { asChild: true, "data-slot": "accordion-content", ...restProps, children: _jsx(Component, { ref: insideRef, className: cn(`
14
+ overflow-hidden
15
+ text-sm`, isMounded && `
16
+ data-[state=closed]:animate-accordion-up2
17
+ data-[state=open]:animate-accordion-down2`, className), children: children }) }));
18
+ };
16
19
  AccordionContent.displayName = "AccordionContent";
17
20
  export default AccordionContent;
@@ -1,10 +1,11 @@
1
1
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
2
  import type { ShadcnBaseProps } from "../../types/index.js";
3
- type AccordionItemProps<T extends React.ElementType> = ShadcnBaseProps<T, React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>> & {
3
+ type PropsType = ShadcnBaseProps<typeof AccordionPrimitive.Item> & {
4
4
  as?: React.ElementType;
5
+ ref?: React.Ref<Element>;
6
+ };
7
+ declare const AccordionItem: {
8
+ (props: PropsType): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
5
10
  };
6
- declare function AccordionItem<T extends React.ElementType = "div">({ as, className, children, ...props }: AccordionItemProps<T>): import("react/jsx-runtime").JSX.Element;
7
- declare namespace AccordionItem {
8
- var displayName: string;
9
- }
10
11
  export default AccordionItem;
@@ -1,9 +1,14 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
- function AccordionItem({ as, className, children, ...props }) {
4
+ import { cn } from "../../utils/index.js";
5
+ import { useImperativeHandle, useRef } from "react";
6
+ const AccordionItem = (props) => {
7
+ const { as, ref, className, children, ...restProps } = props;
5
8
  const Component = as || "div";
6
- return (_jsx(AccordionPrimitive.Item, { asChild: true, "data-slot": "accordion-item", className: className, ...props, children: _jsx(Component, { children: children }) }));
7
- }
9
+ const insideRef = useRef(null);
10
+ useImperativeHandle(ref, () => insideRef.current);
11
+ return (_jsx(AccordionPrimitive.Item, { asChild: true, "data-slot": "accordion-item", ...restProps, children: _jsx(Component, { ref: insideRef, className: cn(className), children: children }) }));
12
+ };
8
13
  AccordionItem.displayName = "AccordionItem";
9
14
  export default AccordionItem;
@@ -1,10 +1,11 @@
1
1
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
2
  import type { ShadcnBaseProps } from "../../types/index.js";
3
- type AccordionTriggerProps<T extends React.ElementType> = ShadcnBaseProps<T, React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>> & {
3
+ type PropsType = ShadcnBaseProps<typeof AccordionPrimitive.Trigger> & {
4
4
  as?: React.ElementType;
5
+ ref?: React.Ref<Element>;
6
+ };
7
+ declare const AccordionTrigger: {
8
+ (props: PropsType): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
5
10
  };
6
- declare function AccordionTrigger<T extends React.ElementType = "button">({ as, children, className, ...props }: AccordionTriggerProps<T>): import("react/jsx-runtime").JSX.Element;
7
- declare namespace AccordionTrigger {
8
- var displayName: string;
9
- }
10
11
  export default AccordionTrigger;
@@ -2,15 +2,19 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
4
  import { cn } from "../../utils/index.js";
5
- function AccordionTrigger({ as, children, className, ...props }) {
5
+ import { useImperativeHandle, useRef } from "react";
6
+ const AccordionTrigger = (props) => {
7
+ const { as, ref, children, className, ...restProps } = props;
6
8
  const Component = as || "button";
7
9
  const isButton = Component === "button";
8
- return (_jsx(AccordionPrimitive.Header, { asChild: true, children: _jsx(AccordionPrimitive.Trigger, { asChild: true, "data-slot": "accordion-trigger", ...props, children: _jsx(Component, { type: isButton ? "button" : undefined, role: !isButton ? "button" : undefined, "aria-expanded": props["aria-expanded"], "aria-controls": props["aria-controls"], tabIndex: 0, className: cn(`outline-none
9
- focus-visible:border-ring
10
- focus-visible:ring-ring/50
11
- disabled:pointer-events-none
12
- disabled:opacity-50`, className), children: children }) }) }));
13
- }
10
+ const insideRef = useRef(null);
11
+ useImperativeHandle(ref, () => insideRef.current);
12
+ return (_jsx(AccordionPrimitive.Header, { asChild: true, children: _jsx(AccordionPrimitive.Trigger, { asChild: true, "data-slot": "accordion-trigger", ...restProps, children: _jsx(Component, { ref: insideRef, type: isButton ? "button" : undefined, role: !isButton ? "button" : undefined, "aria-expanded": props["aria-expanded"], "aria-controls": props["aria-controls"], tabIndex: 0,
13
+ // onKeyDown={(e) => console.log(e)}
14
+ className: cn(`focus-visible:border-ring
15
+ focus-visible:ring-ring/50
16
+ focus-visible:ring-[3px]`, className), children: children }) }) }));
17
+ };
14
18
  // type AccordionTriggerProps<T extends React.ElementType
15
19
  // > = ShadcnBaseProps<T, React.ComponentPropsWithoutRef<
16
20
  // typeof AccordionPrimitive.Trigger>
@@ -1,10 +1,35 @@
1
- import { default as AccordionRoot } from "./accordion";
2
- import { default as AccordionContent } from "./accordionContent";
3
- import { default as AccordionItem } from "./accordionItem";
4
- import { default as AccordionTrigger } from "./accordionTrigger";
5
1
  export declare const Accordions: {
6
- Root: typeof AccordionRoot;
7
- Content: typeof AccordionContent;
8
- Item: typeof AccordionItem;
9
- Trigger: typeof AccordionTrigger;
2
+ Root: {
3
+ (props: import("../..").ShadcnBaseProps<import("react").ForwardRefExoticComponent<(import("@radix-ui/react-accordion").AccordionSingleProps | import("@radix-ui/react-accordion").AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>>> & {
4
+ as?: React.ElementType;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ Content: {
9
+ (props: {
10
+ as?: React.ElementType;
11
+ } & import("@radix-ui/react-accordion").AccordionContentProps & import("react").RefAttributes<HTMLDivElement> & {
12
+ as?: React.ElementType;
13
+ ref?: React.Ref<Element>;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ Item: {
18
+ (props: {
19
+ as?: React.ElementType;
20
+ } & import("@radix-ui/react-accordion").AccordionItemProps & import("react").RefAttributes<HTMLDivElement> & {
21
+ as?: React.ElementType;
22
+ ref?: React.Ref<Element>;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ displayName: string;
25
+ };
26
+ Trigger: {
27
+ (props: {
28
+ as?: React.ElementType;
29
+ } & import("@radix-ui/react-accordion").AccordionTriggerProps & import("react").RefAttributes<HTMLButtonElement> & {
30
+ as?: React.ElementType;
31
+ ref?: React.Ref<Element>;
32
+ }): import("react/jsx-runtime").JSX.Element;
33
+ displayName: string;
34
+ };
10
35
  };
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
4
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
6
6
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
@@ -1,4 +1,5 @@
1
- export * from "./accordions";
2
- export * from "./button";
3
1
  export * from "./dragResize";
4
2
  export * from "./dragSortable";
3
+ export * from "./accordions";
4
+ export * from "./resizables";
5
+ export * from "./scrollAreas";
@@ -1,4 +1,7 @@
1
- export * from "./accordions";
2
- export * from "./button";
1
+ // dev components
3
2
  export * from "./dragResize";
4
3
  export * from "./dragSortable";
4
+ // shadcn Components
5
+ export * from "./accordions";
6
+ export * from "./resizables";
7
+ export * from "./scrollAreas";
@@ -0,0 +1,66 @@
1
+ export declare const Resizables: {
2
+ Root: {
3
+ (props: Omit<import("react").HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & {
4
+ autoSaveId?: string | null;
5
+ className?: string;
6
+ direction: import("react-resizable-panels/dist/declarations/src/types").Direction;
7
+ id?: string | null;
8
+ keyboardResizeBy?: number | null;
9
+ onLayout?: import("react-resizable-panels").PanelGroupOnLayout | null;
10
+ storage?: import("react-resizable-panels").PanelGroupStorage;
11
+ style?: import("react").CSSProperties;
12
+ tagName?: keyof HTMLElementTagNameMap;
13
+ dir?: "auto" | "ltr" | "rtl" | undefined;
14
+ } & {
15
+ children?: import("react").ReactNode | undefined;
16
+ } & import("react").RefAttributes<import("react-resizable-panels").ImperativePanelGroupHandle> & {
17
+ as?: keyof HTMLElementTagNameMap;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ displayName: string;
20
+ };
21
+ Panel: {
22
+ (props: Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLInputElement | HTMLProgressElement | HTMLSelectElement | HTMLButtonElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
23
+ className?: string;
24
+ collapsedSize?: number | undefined;
25
+ collapsible?: boolean | undefined;
26
+ defaultSize?: number | undefined;
27
+ id?: string;
28
+ maxSize?: number | undefined;
29
+ minSize?: number | undefined;
30
+ onCollapse?: import("react-resizable-panels").PanelOnCollapse;
31
+ onExpand?: import("react-resizable-panels").PanelOnExpand;
32
+ onResize?: import("react-resizable-panels").PanelOnResize;
33
+ order?: number;
34
+ style?: object;
35
+ tagName?: keyof HTMLElementTagNameMap | undefined;
36
+ } & {
37
+ children?: import("react").ReactNode | undefined;
38
+ } & import("react").RefAttributes<import("react-resizable-panels").ImperativePanelHandle> & {
39
+ as?: keyof HTMLElementTagNameMap;
40
+ }): import("react/jsx-runtime").JSX.Element;
41
+ displayName: string;
42
+ };
43
+ Handle: {
44
+ (props: Omit<import("react").HTMLAttributes<keyof HTMLElementTagNameMap>, "id" | "onFocus" | "onBlur" | "onClick" | "onPointerDown" | "onPointerUp"> & {
45
+ className?: string;
46
+ disabled?: boolean;
47
+ hitAreaMargins?: import("react-resizable-panels").PointerHitAreaMargins;
48
+ id?: string | null;
49
+ onBlur?: () => void;
50
+ onClick?: () => void;
51
+ onDragging?: import("react-resizable-panels").PanelResizeHandleOnDragging;
52
+ onFocus?: () => void;
53
+ onPointerDown?: () => void;
54
+ onPointerUp?: () => void;
55
+ style?: import("react").CSSProperties;
56
+ tabIndex?: number;
57
+ tagName?: keyof HTMLElementTagNameMap;
58
+ } & {
59
+ children?: import("react").ReactNode | undefined;
60
+ } & {
61
+ as?: keyof HTMLElementTagNameMap;
62
+ withHandle?: boolean;
63
+ }): import("react/jsx-runtime").JSX.Element;
64
+ displayName: string;
65
+ };
66
+ };
@@ -0,0 +1,8 @@
1
+ import { default as ResizablePanelGroup } from "./resizablePanelGroup";
2
+ import { default as ResizablePanel } from "./resizablePanel";
3
+ import { default as ResizableHandle } from "./resizableHandle";
4
+ export const Resizables = {
5
+ Root: ResizablePanelGroup,
6
+ Panel: ResizablePanel,
7
+ Handle: ResizableHandle,
8
+ };
@@ -0,0 +1,11 @@
1
+ import * as ResizablePrimitive from 'react-resizable-panels';
2
+ import type { ComponentProps } from "../../types/index.js";
3
+ type PropsType = ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
4
+ as?: keyof HTMLElementTagNameMap;
5
+ withHandle?: boolean;
6
+ };
7
+ declare const ResizableHandle: {
8
+ (props: PropsType): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default ResizableHandle;
@@ -0,0 +1,48 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as ResizablePrimitive from 'react-resizable-panels';
4
+ import { cn } from "../../utils/index.js";
5
+ const ResizableHandle = (props) => {
6
+ const { as = "div", withHandle, className, ...restProps } = props;
7
+ return (_jsx(ResizablePrimitive.PanelResizeHandle, { tagName: as, "data-slot": "resizable-handle", className: cn(`
8
+ w-px
9
+ bg-border
10
+ relative
11
+
12
+ flex
13
+ items-center
14
+ justify-center
15
+
16
+ after:absolute
17
+ after:inset-y-0
18
+ after:left-1/2
19
+ after:w-1
20
+ after:-translate-x-1/2
21
+
22
+ focus-visible:ring-1
23
+ focus-visible:ring-ring
24
+ focus-visible:ring-offset-1
25
+ focus-visible:outline-hidden
26
+
27
+ data-[panel-group-direction=vertical]:h-px
28
+ data-[panel-group-direction=vertical]:w-full
29
+ data-[panel-group-direction=vertical]:after:left-0
30
+ data-[panel-group-direction=vertical]:after:h-1
31
+ data-[panel-group-direction=vertical]:after:w-full
32
+ data-[panel-group-direction=vertical]:after:translate-x-0
33
+ data-[panel-group-direction=vertical]:after:-translate-y-1/2
34
+
35
+ [&[data-panel-group-direction=vertical]>div]:rotate-90`, className), ...restProps, children: withHandle && (_jsx("div", { className: `
36
+ bg-border
37
+ z-10
38
+ flex
39
+ h-4
40
+ w-3
41
+ items-center
42
+ justify-center
43
+ rounded-xs
44
+ border
45
+ `, children: _jsx("div", { className: "w-0.5 h-full bg-amber-600" }) })) }));
46
+ };
47
+ ResizableHandle.displayName = "ResizableHandle";
48
+ export default ResizableHandle;
@@ -0,0 +1,10 @@
1
+ import * as ResizablePrimitive from 'react-resizable-panels';
2
+ import type { ComponentProps } from "../../types/index.js";
3
+ type PropsType = ComponentProps<typeof ResizablePrimitive.Panel> & {
4
+ as?: keyof HTMLElementTagNameMap;
5
+ };
6
+ declare const ResizablePanel: {
7
+ (props: PropsType): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ export default ResizablePanel;
@@ -0,0 +1,9 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as ResizablePrimitive from 'react-resizable-panels';
4
+ const ResizablePanel = (props) => {
5
+ const { as = "div", ...restProps } = props;
6
+ return (_jsx(ResizablePrimitive.Panel, { tagName: as, "data-slot": "resizable-panel", ...restProps }));
7
+ };
8
+ ResizablePanel.displayName = "ResizablePanel";
9
+ export default ResizablePanel;
@@ -0,0 +1,10 @@
1
+ import * as ResizablePrimitive from 'react-resizable-panels';
2
+ import type { ComponentProps } from "../../types/index.js";
3
+ type PropsType = ComponentProps<typeof ResizablePrimitive.PanelGroup> & {
4
+ as?: keyof HTMLElementTagNameMap;
5
+ };
6
+ declare const ResizablePanelGroup: {
7
+ (props: PropsType): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ export default ResizablePanelGroup;
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as ResizablePrimitive from 'react-resizable-panels';
4
+ import { cn } from "../../utils/index.js";
5
+ const ResizablePanelGroup = (props) => {
6
+ const { as = "div", className, ...restProps } = props;
7
+ return (_jsx(ResizablePrimitive.PanelGroup, { tagName: as, "data-slot": "resizable-panel-group", className: cn(`
8
+ flex
9
+ h-full
10
+ w-full
11
+ data-[panel-group-direction=vertical]:flex-col`, className), ...restProps }));
12
+ };
13
+ ResizablePanelGroup.displayName = "ResizablePanelGroup";
14
+ export default ResizablePanelGroup;
@@ -0,0 +1 @@
1
+ export * from "./scroll-area";
@@ -0,0 +1 @@
1
+ export * from "./scroll-area";
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+ declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
4
+ import { cn } from "../../utils/index.js";
5
+ function ScrollArea({ className, children, ...props }) {
6
+ return (_jsxs(ScrollAreaPrimitive.Root, { "data-slot": "scroll-area", className: cn("relative", className), ...props, children: [_jsx(ScrollAreaPrimitive.Viewport, { "data-slot": "scroll-area-viewport", className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", children: children }), _jsx(ScrollBar, {}), _jsx(ScrollAreaPrimitive.Corner, {})] }));
7
+ }
8
+ function ScrollBar({ className, orientation = "vertical", ...props }) {
9
+ return (_jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, { "data-slot": "scroll-area-scrollbar", orientation: orientation, className: cn("flex touch-none p-px transition-colors select-none", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", className), ...props, children: _jsx(ScrollAreaPrimitive.ScrollAreaThumb, { "data-slot": "scroll-area-thumb", className: "bg-border relative flex-1 rounded-full" }) }));
10
+ }
11
+ export { ScrollArea, ScrollBar };
@@ -1,155 +1,31 @@
1
- @custom-variant dark (&:is(.dark *));
2
-
3
- @media (prefers-color-scheme: dark) {
4
- html {
5
- color-scheme: dark;
6
- }
7
- }
8
-
9
- @layer base {
10
- * {
11
- @apply border-border outline-ring/50;
12
- }
13
- body {
14
- @apply bg-background text-foreground;
15
- }
16
- }
17
-
18
- @theme inline {
19
- --radius-sm: calc(var(--radius) - 4px);
20
- --radius-md: calc(var(--radius) - 2px);
21
- --radius-lg: var(--radius);
22
- --radius-xl: calc(var(--radius) + 4px);
23
- --color-background: var(--background);
24
- --color-foreground: var(--foreground);
25
- --color-card: var(--card);
26
- --color-card-foreground: var(--card-foreground);
27
- --color-popover: var(--popover);
28
- --color-popover-foreground: var(--popover-foreground);
29
- --color-primary: var(--primary);
30
- --color-primary-foreground: var(--primary-foreground);
31
- --color-secondary: var(--secondary);
32
- --color-secondary-foreground: var(--secondary-foreground);
33
- --color-muted: var(--muted);
34
- --color-muted-foreground: var(--muted-foreground);
35
- --color-accent: var(--accent);
36
- --color-accent-foreground: var(--accent-foreground);
37
- --color-destructive: var(--destructive);
38
- --color-border: var(--border);
39
- --color-input: var(--input);
40
- --color-ring: var(--ring);
41
- --color-chart-1: var(--chart-1);
42
- --color-chart-2: var(--chart-2);
43
- --color-chart-3: var(--chart-3);
44
- --color-chart-4: var(--chart-4);
45
- --color-chart-5: var(--chart-5);
46
- --color-sidebar: var(--sidebar);
47
- --color-sidebar-foreground: var(--sidebar-foreground);
48
- --color-sidebar-primary: var(--sidebar-primary);
49
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
50
- --color-sidebar-accent: var(--sidebar-accent);
51
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
52
- --color-sidebar-border: var(--sidebar-border);
53
- --color-sidebar-ring: var(--sidebar-ring);
54
- }
55
-
56
1
  @theme default {
57
- --animate-collapsible-down: collapsible-down 0.2s ease-out;
58
- --animate-collapsible-up: collapsible-up 0.2s ease-out;
59
- --animate-accordion-down2: accordion-down 0.2s ease-out;
60
- --animate-accordion-up2: accordion-up 0.2s ease-out;
61
-
62
- --animate-accordion-down3: accordion-down3 2s ease-out;
63
- --animate-accordion-up3: accordion-up3 2s ease-out;
64
-
65
- @keyframes accordion-down {
66
- from {
67
- height: 0;
68
- opacity: 0;
69
- }
70
- to {
71
- height: var(--radix-accordion-content-height);
72
- opacity: 1;
73
- }
74
- }
75
-
76
- @keyframes accordion-up {
77
- from {
78
- height: var(--radix-accordion-content-height);
79
- opacity: 1;
80
- }
81
- to {
82
- height: 0;
83
- opacity: 0;
84
- }
85
- }
86
- }
87
-
88
- :root {
89
- --radius: 0.625rem;
90
- --background: oklch(1 0 0);
91
- --foreground: oklch(0.145 0 0);
92
- --card: oklch(1 0 0);
93
- --card-foreground: oklch(0.145 0 0);
94
- --popover: oklch(1 0 0);
95
- --popover-foreground: oklch(0.145 0 0);
96
- --primary: oklch(0.205 0 0);
97
- --primary-foreground: oklch(0.985 0 0);
98
- --secondary: oklch(0.97 0 0);
99
- --secondary-foreground: oklch(0.205 0 0);
100
- --muted: oklch(0.97 0 0);
101
- --muted-foreground: oklch(0.556 0 0);
102
- --accent: oklch(0.97 0 0);
103
- --accent-foreground: oklch(0.205 0 0);
104
- --destructive: oklch(0.577 0.245 27.325);
105
- --border: oklch(0.922 0 0);
106
- --input: oklch(0.922 0 0);
107
- --ring: oklch(0.708 0 0);
108
- --chart-1: oklch(0.646 0.222 41.116);
109
- --chart-2: oklch(0.6 0.118 184.704);
110
- --chart-3: oklch(0.398 0.07 227.392);
111
- --chart-4: oklch(0.828 0.189 84.429);
112
- --chart-5: oklch(0.769 0.188 70.08);
113
- --sidebar: oklch(0.985 0 0);
114
- --sidebar-foreground: oklch(0.145 0 0);
115
- --sidebar-primary: oklch(0.205 0 0);
116
- --sidebar-primary-foreground: oklch(0.985 0 0);
117
- --sidebar-accent: oklch(0.97 0 0);
118
- --sidebar-accent-foreground: oklch(0.205 0 0);
119
- --sidebar-border: oklch(0.922 0 0);
120
- --sidebar-ring: oklch(0.708 0 0);
121
- }
122
-
123
- .dark {
124
- --background: oklch(0.145 0 0);
125
- --foreground: oklch(0.985 0 0);
126
- --card: oklch(0.205 0 0);
127
- --card-foreground: oklch(0.985 0 0);
128
- --popover: oklch(0.205 0 0);
129
- --popover-foreground: oklch(0.985 0 0);
130
- --primary: oklch(0.922 0 0);
131
- --primary-foreground: oklch(0.205 0 0);
132
- --secondary: oklch(0.269 0 0);
133
- --secondary-foreground: oklch(0.985 0 0);
134
- --muted: oklch(0.269 0 0);
135
- --muted-foreground: oklch(0.708 0 0);
136
- --accent: oklch(0.269 0 0);
137
- --accent-foreground: oklch(0.985 0 0);
138
- --destructive: oklch(0.704 0.191 22.216);
139
- --border: oklch(1 0 0 / 10%);
140
- --input: oklch(1 0 0 / 15%);
141
- --ring: oklch(0.556 0 0);
142
- --chart-1: oklch(0.488 0.243 264.376);
143
- --chart-2: oklch(0.696 0.17 162.48);
144
- --chart-3: oklch(0.769 0.188 70.08);
145
- --chart-4: oklch(0.627 0.265 303.9);
146
- --chart-5: oklch(0.645 0.246 16.439);
147
- --sidebar: oklch(0.205 0 0);
148
- --sidebar-foreground: oklch(0.985 0 0);
149
- --sidebar-primary: oklch(0.488 0.243 264.376);
150
- --sidebar-primary-foreground: oklch(0.985 0 0);
151
- --sidebar-accent: oklch(0.269 0 0);
152
- --sidebar-accent-foreground: oklch(0.985 0 0);
153
- --sidebar-border: oklch(1 0 0 / 10%);
154
- --sidebar-ring: oklch(0.556 0 0);
2
+ --animate-collapsible-down: collapsible-down 0.2s ease-out;
3
+ --animate-collapsible-up: collapsible-up 0.2s ease-out;
4
+ --animate-accordion-down2: accordion-down 0.2s ease-out;
5
+ --animate-accordion-up2: accordion-up 0.2s ease-out;
6
+
7
+ --animate-accordion-down3: accordion-down3 2s ease-out;
8
+ --animate-accordion-up3: accordion-up3 2s ease-out;
9
+
10
+ @keyframes accordion-down {
11
+ from {
12
+ height: 0;
13
+ opacity: 0;
14
+ }
15
+ to {
16
+ height: var(--radix-accordion-content-height);
17
+ opacity: 1;
18
+ }
19
+ }
20
+
21
+ @keyframes accordion-up {
22
+ from {
23
+ height: var(--radix-accordion-content-height);
24
+ opacity: 1;
25
+ }
26
+ to {
27
+ height: 0;
28
+ opacity: 0;
29
+ }
30
+ }
155
31
  }
@@ -1,5 +1,7 @@
1
- export type { ComponentProps } from "react";
2
- export type ShadcnBaseProps<T extends React.ElementType, P = {}> = {
1
+ export { ComponentProps } from 'react';
2
+ export type ShadcnBaseProps<P extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = {
3
+ as?: React.ElementType;
4
+ } & React.ComponentProps<P>;
5
+ export type BaseProps<T extends React.ElementType, P extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>> = {
3
6
  as?: T;
4
- ref?: React.Ref<any>;
5
- } & P & Omit<React.ComponentPropsWithoutRef<T>, keyof P | "as" | "ref">;
7
+ } & React.ComponentProps<P>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwadex/fesd-next",
3
- "version": "0.3.42",
3
+ "version": "0.3.44-bate.2",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",