Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { ArrowPosition, FloatingPosition } from '../types';
interface FloatingArrowProps extends React.ComponentPropsWithoutRef<'div'> {
position: FloatingPosition;
arrowSize: number;
arrowOffset: number;
arrowRadius: number;
arrowPosition: ArrowPosition;
arrowX: number | undefined;
arrowY: number | undefined;
visible: boolean | undefined;
}
export declare const FloatingArrow: import("react").ForwardRefExoticComponent<FloatingArrowProps & import("react").RefAttributes<HTMLDivElement>>;
export {};

View File

@@ -0,0 +1,11 @@
import type { ArrowPosition, FloatingPosition } from '../types';
export declare function getArrowPositionStyles({ position, arrowSize, arrowOffset, arrowRadius, arrowPosition, arrowX, arrowY, dir, }: {
position: FloatingPosition;
arrowSize: number;
arrowOffset: number;
arrowRadius: number;
arrowPosition: ArrowPosition;
arrowX: number | undefined;
arrowY: number | undefined;
dir: 'rtl' | 'ltr';
}): {};

View File

@@ -0,0 +1,2 @@
import type { FloatingPosition } from '../types';
export declare function getFloatingPosition(dir: 'rtl' | 'ltr', position: FloatingPosition): FloatingPosition;

View File

@@ -0,0 +1,4 @@
export { FloatingArrow } from './FloatingArrow/FloatingArrow';
export { getFloatingPosition } from './get-floating-position/get-floating-position';
export { useDelayedHover } from './use-delayed-hover';
export type { ArrowPosition, FloatingAxesOffsets, FloatingPlacement, FloatingPosition, FloatingSide, FloatingStrategy, } from './types';

View File

@@ -0,0 +1,10 @@
export type FloatingPlacement = 'end' | 'start';
export type FloatingSide = 'top' | 'right' | 'bottom' | 'left';
export type FloatingPosition = FloatingSide | `${FloatingSide}-${FloatingPlacement}`;
export type ArrowPosition = 'center' | 'side';
export type FloatingStrategy = 'absolute' | 'fixed';
export interface FloatingAxesOffsets {
mainAxis?: number;
crossAxis?: number;
alignmentAxis?: number | null;
}

View File

@@ -0,0 +1,11 @@
interface UseDelayedHoverInput {
open: () => void;
close: () => void;
openDelay: number | undefined;
closeDelay: number | undefined;
}
export declare function useDelayedHover({ open, close, openDelay, closeDelay }: UseDelayedHoverInput): {
openDropdown: () => void;
closeDropdown: () => void;
};
export {};

View File

@@ -0,0 +1,21 @@
import { BoxProps, ElementProps, Factory, MantineSize, StylesApiProps } from '../../core';
export declare const InlineInputClasses: any;
export type InlineInputStylesNames = 'root' | 'body' | 'labelWrapper' | 'label' | 'description' | 'error';
export interface InlineInputProps extends BoxProps, StylesApiProps<InlineInputFactory>, ElementProps<'div'> {
__staticSelector: string;
__stylesApiProps: Record<string, any>;
label: React.ReactNode;
description: React.ReactNode;
id: string;
disabled: boolean | undefined;
error: React.ReactNode;
size: MantineSize | (string & {}) | undefined;
labelPosition?: 'left' | 'right';
bodyElement?: any;
labelElement?: any;
}
export type InlineInputFactory = Factory<{
props: any;
stylesNames: InlineInputStylesNames;
}>;
export declare const InlineInput: import("react").ForwardRefExoticComponent<InlineInputProps & import("react").RefAttributes<HTMLDivElement>>;

View File

@@ -0,0 +1,2 @@
export { InlineInput, InlineInputClasses } from './InlineInput';
export type { InlineInputStylesNames } from './InlineInput';

View File

@@ -0,0 +1,6 @@
interface InputsGroupFieldsetProps {
children: React.ReactNode;
role: 'radiogroup' | 'group';
}
export declare function InputsGroupFieldset({ children, role }: InputsGroupFieldsetProps): import("react/jsx-runtime").JSX.Element;
export {};

View File

@@ -0,0 +1 @@
export { InputsGroupFieldset } from './InputsGroupFieldset';