@clasing/ui 0.1.61 → 0.1.62

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.
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import { Dispatch } from 'react';
4
4
  import { ForwardRefExoticComponent } from 'react';
5
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
6
6
  import { Matcher } from 'react-day-picker';
7
+ import { Placement } from '@floating-ui/react';
7
8
  import { ReactNode } from 'react';
8
- import { ReactPortal } from 'react';
9
9
  import { RefAttributes } from 'react';
10
10
  import { SetStateAction } from 'react';
11
11
  import * as TablerIcons from '@tabler/icons-react';
@@ -295,7 +295,7 @@ declare interface IInteractiveCardProps extends React.HTMLAttributes<HTMLDivElem
295
295
  tooltipText?: string;
296
296
  tooltipTitle?: string;
297
297
  tooltipIconName?: TablerIconName;
298
- tooltipPlacement?: 'top' | 'bottom';
298
+ tooltipPlacement?: Placement;
299
299
  }
300
300
 
301
301
  export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
@@ -366,23 +366,27 @@ declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, Vari
366
366
  className?: string;
367
367
  }
368
368
 
369
- declare interface ITooltipProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tooltipStyles> {
370
- title?: string;
371
- content: string;
369
+ declare interface ITooltipProps {
370
+ children: React.ReactNode;
371
+ trigger?: React.ReactNode;
372
+ className?: string;
373
+ placement?: Placement;
374
+ iconName?: TablerIconName;
375
+ arrow?: boolean;
372
376
  }
373
377
 
374
- export declare const Modal: ({ className, children, isOpen, setIsOpen, canClose, intent, overlay, closeOnClickOutside, closeButtonAriaLabel, }: ModalProps) => ReactPortal | null;
378
+ export declare const Modal: ({ className, children, isOpen, setIsOpen, canClose, intent, overlay, closeButtonAriaLabel, closeOnClickOutside, }: ModalProps) => JSX_2.Element | null;
375
379
 
376
380
  declare interface ModalProps {
377
381
  className?: string;
378
- children: React.ReactNode;
382
+ children: default_2.ReactNode;
379
383
  isOpen: boolean;
380
- setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
384
+ setIsOpen: default_2.Dispatch<default_2.SetStateAction<boolean>>;
381
385
  canClose?: boolean;
382
386
  intent?: 'card' | 'sheet';
383
387
  overlay?: 'blur' | 'opacity';
384
- closeOnClickOutside?: boolean;
385
388
  closeButtonAriaLabel?: string;
389
+ closeOnClickOutside?: boolean;
386
390
  }
387
391
 
388
392
  declare type Option_2 = {
@@ -399,7 +403,7 @@ declare interface OutsideClickHandlerProps {
399
403
 
400
404
  export declare const Popover: default_2.ForwardRefExoticComponent<IPopoverProps & default_2.RefAttributes<unknown>>;
401
405
 
402
- declare type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-right-corner' | 'top-left-corner' | 'bottom-right-corner' | 'bottom-left-corner';
406
+ declare type PopoverPlacement = Placement;
403
407
 
404
408
  declare type PositionProps = 'top-right' | 'top-left' | 'top' | 'bottom-right' | 'bottom-left' | 'bottom';
405
409
 
@@ -457,17 +461,10 @@ declare const toastStyles: (props?: ({
457
461
  intent?: "error" | "warning" | "success" | "info" | "neutral" | null | undefined;
458
462
  } & ClassProp) | undefined) => string;
459
463
 
460
- export declare const Tooltip: ForwardRefExoticComponent<ITooltipProps & RefAttributes<HTMLSpanElement>>;
461
-
462
- declare const tooltipStyles: (props?: ({
463
- shadow?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
464
- intent?: "light" | "dark" | null | undefined;
465
- weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
466
- placement?: "left" | "right" | "top" | "bottom" | null | undefined;
467
- delay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
468
- closeDelay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
469
- rounded?: "sm" | "md" | "lg" | "full" | null | undefined;
470
- } & ClassProp) | undefined) => string;
464
+ export declare const Tooltip: {
465
+ ({ children, trigger, className, placement, iconName, arrow: isArrow, }: ITooltipProps): JSX_2.Element;
466
+ displayName: string;
467
+ };
471
468
 
472
469
  export declare const useOutsideClick: ({ ref, handler }: OutsideClickHandlerProps) => void;
473
470