node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
import * as React from 'react';
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
import { BoxProps } from '../../primitives/Box';
import { FlexProps } from '../../primitives/Flex';
import { TypographyProps } from '../../primitives/Typography';
import { BaseLink } from '../BaseLink';
import { Button, ButtonProps } from '../Button';
import { IconButton } from '../IconButton';
import { LinkProps } from '../Link';
interface RootProps extends DropdownMenu.DropdownMenuProps {
}
type TriggerPropsBase = Omit<ButtonProps, 'tag'> & {
endIcon?: React.ReactNode;
label?: React.ReactNode | string;
};
type TriggerPropsWithButton = TriggerPropsBase & {
tag?: typeof Button;
icon?: React.ReactNode;
};
type TriggerPropsWithIconButton = TriggerPropsBase & {
tag: typeof IconButton;
icon: React.ReactNode;
};
type TriggerProps = TriggerPropsWithButton | TriggerPropsWithIconButton;
type ContentProps = FlexProps<'div'> & Pick<DropdownMenu.DropdownMenuContentProps, 'onCloseAutoFocus'> & {
intersectionId?: string;
popoverPlacement?: `${NonNullable<DropdownMenu.DropdownMenuContentProps['side']>}-${NonNullable<DropdownMenu.DropdownMenuContentProps['align']>}`;
};
interface ItemSharedProps extends Pick<DropdownMenu.MenuItemProps, 'disabled' | 'onSelect'> {
children?: React.ReactNode;
isExternal?: boolean;
isFocused?: boolean;
startIcon?: React.ReactNode;
endIcon?: React.ReactNode;
}
interface ItemExternalLinkProps extends ItemSharedProps, Omit<LinkProps, 'onSelect'> {
as?: never;
isLink?: false;
isExternal?: true;
}
type ItemInternalLinkProps<TComponent extends React.ComponentType = typeof BaseLink> = ItemSharedProps & React.ComponentPropsWithoutRef<TComponent> & {
as?: TComponent;
isLink?: true;
isExternal?: false;
};
interface ItemButtonProps extends ItemSharedProps, Omit<BoxProps<'button'>, 'onSelect'> {
as?: never;
isLink?: false;
isExternal?: false;
}
type ItemProps<TComponent extends React.ComponentType = typeof BaseLink> = ItemButtonProps | ItemInternalLinkProps<TComponent> | ItemExternalLinkProps;
interface SeparatorProps extends DropdownMenu.DropdownMenuSeparatorProps {
}
interface LabelProps extends TypographyProps {
}
interface SubRootProps extends DropdownMenu.DropdownMenuSubProps {
}
interface SubTriggerProps extends BoxProps<'button'> {
}
interface SubContentProps extends FlexProps<'div'> {
}
declare const Root: React.FC<DropdownMenu.DropdownMenuProps>;
declare const Trigger: React.ForwardRefExoticComponent<(Omit<TriggerPropsWithButton, "ref"> | Omit<TriggerPropsWithIconButton, "ref">) & React.RefAttributes<HTMLButtonElement>>;
declare const Content: React.ForwardRefExoticComponent<Omit<ContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
declare const Item: ({ onSelect, disabled, isLink, startIcon, endIcon, isExternal, ...props }: ItemProps) => import("react/jsx-runtime").JSX.Element;
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLSpanElement>>;
declare const SubRoot: React.FC<DropdownMenu.DropdownMenuSubProps>;
declare const SubTrigger: React.ForwardRefExoticComponent<Omit<SubTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
declare const SubContent: React.ForwardRefExoticComponent<Omit<SubContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
export { Root, Trigger, Content, Item, Separator, Label, SubRoot, SubTrigger, SubContent };
export type { TriggerProps, ContentProps, ItemProps, RootProps, SubRootProps, SubTriggerProps, SubContentProps, LabelProps, };
//# sourceMappingURL=Menu.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleMenu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAC;AAK9D,OAAO,EAAO,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,O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nE,UAAU,eAAgB,SAAQ,QAAQ,CAAC,QAAQ,CAAC;CAAG;AAgCvD,UAAU,eAAgB,SAAQ,SAAS,CAAC,KAAK,CAAC;CAAG;AA0BrD,QAAA,MAAM,IAAI,0CAAW,CAAC;AACtB,QAAA,MAAM,OAAO,2JAAc,CAAC;AAC5B,QAAA,MAAM,OAAO,kGAAc,CAAC;AAC5B,QAAA,MAAM,IAAI,6EAtM0F,SAAS,4CAsMxF,CAAC;AACtB,QAAA,MAAM,SAAS,uFAAgB,CAAC;AAChC,QAAA,MAAM,KAAK,oFAAY,CAAC;AACxB,QAAA,MAAM,OAAO,6CAAc,CAAC;AAC5B,QAAA,MAAM,UAAU,wGAAiB,CAAC;AAClC,QAAA,MAAM,UAAU,qGAAiB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAC3F,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,EACZ,eAAe,EACf,eAAe,EACf,UAAU,GACX,CAAC"}

View File

@@ -0,0 +1,45 @@
import * as React from 'react';
import * as Menu from './Menu';
type SimpleMenuProps = Menu.TriggerProps & Pick<Menu.ContentProps, 'popoverPlacement' | 'intersectionId'> & {
children?: React.ReactNode;
onOpen?: () => void;
onClose?: () => void;
/**
* Callback function to be called when the popover reaches the end of the scrollable content
*/
onReachEnd?: (entry: IntersectionObserverEntry) => void;
};
declare const SimpleMenu: React.ForwardRefExoticComponent<(Omit<Omit<import("..").ButtonProps, "tag"> & {
endIcon?: React.ReactNode;
label?: React.ReactNode;
} & {
tag?: (<C extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<import("..").ButtonProps<C>> & React.RefAttributes<unknown>) => React.ReactNode) | undefined;
icon?: React.ReactNode;
} & Pick<Menu.ContentProps, "intersectionId" | "popoverPlacement"> & {
children?: React.ReactNode;
onOpen?: (() => void) | undefined;
onClose?: (() => void) | undefined;
/**
* Callback function to be called when the popover reaches the end of the scrollable content
*/
onReachEnd?: ((entry: IntersectionObserverEntry) => void) | undefined;
}, "ref"> | Omit<Omit<import("..").ButtonProps, "tag"> & {
endIcon?: React.ReactNode;
label?: React.ReactNode;
} & {
tag: <C_1 extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "button">(props: React.PropsWithoutRef<import("..").IconButtonProps<C_1>> & React.RefAttributes<unknown>) => React.ReactNode;
icon: React.ReactNode;
} & Pick<Menu.ContentProps, "intersectionId" | "popoverPlacement"> & {
children?: React.ReactNode;
onOpen?: (() => void) | undefined;
onClose?: (() => void) | undefined;
/**
* Callback function to be called when the popover reaches the end of the scrollable content
*/
onReachEnd?: ((entry: IntersectionObserverEntry) => void) | undefined;
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
declare const MenuItem: ({ onSelect, disabled, isLink, startIcon, endIcon, isExternal, ...props }: Menu.ItemProps<(props: Omit<import("..").BaseLinkProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>) => React.ReactNode>) => import("react/jsx-runtime").JSX.Element;
type MenuItemProps = Menu.ItemProps;
export { SimpleMenu, MenuItem, Menu };
export type { SimpleMenuProps, MenuItemProps };
//# sourceMappingURL=SimpleMenu.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"SimpleMenu.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleMenu/SimpleMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAM/B,KAAK,eAAe,GAAG,IAAI,CAAC,YAAY,GACtC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,GAAG;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACzD,CAAC;AAEJ,QAAA,MAAM,UAAU;;;;;;;eATD,MAAM,SAAS;oBACX,IAAI;qBACH,IAAI;IACpB;;OAEG;0BACkB,yBAAyB,KAAK,IAAI;;;;;;;;eAN5C,MAAM,SAAS;oBACX,IAAI;qBACH,IAAI;IACpB;;OAEG;0BACkB,yBAAyB,KAAK,IAAI;oDAqD1D,CAAC;AAEF,QAAA,MAAM,QAAQ,0PAAY,CAAC;AAC3B,KAAK,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACtC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC"}

View File

@@ -0,0 +1,2 @@
export * from './SimpleMenu';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleMenu/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}