@npm-questionpro/wick-ui-lib 1.11.0 → 1.13.0

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.
@@ -2,6 +2,7 @@ import { default as React, ComponentPropsWithoutRef, HTMLAttributes } from 'reac
2
2
  import * as DialogPrimitive from '@radix-ui/react-dialog';
3
3
  interface IDialogContentProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
4
4
  hideCloseButton?: boolean;
5
+ isStackedCard?: boolean;
5
6
  }
6
7
  export declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
7
8
  export declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export interface IWuDrilldownProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ children?: React.ReactNode;
4
+ header?: (ref: React.RefObject<HTMLDivElement | null>) => React.JSX.Element;
5
+ isOpen?: boolean;
6
+ contentOffset?: number | string;
7
+ contentOffsetFactor?: number;
8
+ titles?: string[];
9
+ contentAnimation?: 'wu-fade-zoom' | 'wu-scale-left' | 'wu-slide-up-down' | 'wu-slide-left-right' | 'wu-scale-fade';
10
+ headerAnimation?: 'wu-scale-left' | 'wu-slide-up-down' | 'wu-slide-left-right';
11
+ dir?: 'ltr' | 'rtl';
12
+ }
13
+ export declare const WuDrilldown: React.ForwardRefExoticComponent<IWuDrilldownProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { WuDrilldown } from './WuDrilldown';
2
+ export type { IWuDrilldownProps } from './WuDrilldown';
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export interface IWuStackedCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ header: React.ReactNode;
4
+ position?: number;
5
+ baseColor: `hsl(${number}, ${number}%, ${number}%)`;
6
+ style?: React.CSSProperties;
7
+ }
8
+ export declare const WuStackedCard: React.FC<IWuStackedCardProps>;
9
+ export interface IWuStackedCardOverlayProps {
10
+ Trigger: React.ReactNode;
11
+ children: React.ReactNode;
12
+ Header?: React.ReactNode;
13
+ styles?: Record<string, React.CSSProperties>;
14
+ classNames?: Record<string, React.CSSProperties>;
15
+ open?: boolean;
16
+ onOpenChange?: (open: boolean) => void;
17
+ }
18
+ export declare const WuStackedCardOverlay: React.FC<IWuStackedCardOverlayProps>;
@@ -0,0 +1,3 @@
1
+ export type { IWuStackedCardProps, IWuStackedCardOverlayProps, } from './WuStackedCard';
2
+ export { WuStackedCardOverlay, WuStackedCard } from './WuStackedCard';
3
+ export { calculatePosition } from './utils/helper';
@@ -0,0 +1 @@
1
+ export declare const POSITION_STYLES: Map<number, import('react').CSSProperties>;
@@ -0,0 +1,15 @@
1
+ import { CSSProperties } from 'react';
2
+ type IHslColor = `hsl(${number}, ${number}%, ${number}%)`;
3
+ export declare const adjustLightness: (hsl: string, factor: number) => IHslColor;
4
+ interface ICalcPosProps {
5
+ index: number;
6
+ viewIndex: number;
7
+ length: number;
8
+ itemHeight: number;
9
+ }
10
+ interface ICalcPosResult {
11
+ position: number;
12
+ styles: CSSProperties;
13
+ }
14
+ export declare const calculatePosition: ({ index, viewIndex, length, itemHeight, }: ICalcPosProps) => ICalcPosResult;
15
+ export {};
@@ -32,6 +32,7 @@ export * from './components/scrollArea';
32
32
  export * from './components/select';
33
33
  export * from './components/sidebar';
34
34
  export * from './components/spotlight';
35
+ export * from './components/stackedCard';
35
36
  export * from './components/stepper';
36
37
  export * from './components/switcher';
37
38
  export * from './components/tab';
@@ -43,3 +44,5 @@ export * from './components/toggle';
43
44
  export * from './components/tooltip';
44
45
  export * from './components/typography';
45
46
  export * from './components/virtualScroll';
47
+ export * from './components/stackedCard';
48
+ export * from './components/drilldown';