@npm-questionpro/wick-ui-lib 1.14.0 → 1.15.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.
@@ -3,10 +3,11 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
3
3
  import * as React from 'react';
4
4
  declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
5
5
  declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & VariantProps<(props?: ({
6
- position?: "bottom" | "top" | "topRight" | "topLeft" | "bottomRight" | "bottomReft" | null | undefined;
6
+ position?: "bottom" | "top" | "topRight" | "topLeft" | "bottomRight" | "bottomLeft" | null | undefined;
7
7
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLOListElement>>;
8
8
  declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
9
9
  variant?: "error" | "default" | "success" | "warning" | "info" | null | undefined;
10
+ position?: "bottom" | "top" | "topRight" | "topLeft" | "bottomRight" | "bottomLeft" | null | undefined;
10
11
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
11
12
  declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
13
  declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -4,6 +4,7 @@ type IToasterToast = IToastProps & {
4
4
  title?: React.ReactNode;
5
5
  description?: React.ReactNode;
6
6
  action?: IToastActionElement;
7
+ position?: 'topRight' | 'top' | 'topLeft' | 'bottom' | 'bottomRight' | 'bottomLeft';
7
8
  };
8
9
  declare const _actionTypes: {
9
10
  readonly ADD_TOAST: "ADD_TOAST";
@@ -14,5 +14,6 @@ export type IWuDatePickerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonEleme
14
14
  Label?: React.ReactNode;
15
15
  labelPosition?: 'top' | 'left';
16
16
  showResetButton?: boolean;
17
+ CustomTrigger?: (value?: string) => React.ReactElement;
17
18
  };
18
19
  export declare const WuDatePicker: React.FC<IWuDatePickerProps>;
@@ -20,5 +20,6 @@ export type IWuDateRangePickerProps = Omit<React.ButtonHTMLAttributes<HTMLButton
20
20
  label: string;
21
21
  value: number;
22
22
  }[];
23
+ CustomTrigger?: (value?: string) => React.ReactElement;
23
24
  };
24
25
  export declare const WuDateRangePicker: React.FC<IWuDateRangePickerProps>;
@@ -4,5 +4,6 @@ export type IWuDatePickerTriggerProps = React.ButtonHTMLAttributes<HTMLButtonEle
4
4
  dir?: 'ltr' | 'rtl';
5
5
  placeholder?: string;
6
6
  variant?: 'primary' | 'outlined';
7
+ CustomTrigger?: (value?: string) => React.ReactElement;
7
8
  };
8
9
  export declare const WuDatePickerTrigger: React.FC<IWuDatePickerTriggerProps>;
@@ -10,9 +10,20 @@ export interface IWuStackedCardOverlayProps {
10
10
  Trigger: React.ReactNode;
11
11
  children: React.ReactNode;
12
12
  Header?: React.ReactNode;
13
- styles?: Record<string, React.CSSProperties>;
14
- classNames?: Record<string, React.CSSProperties>;
13
+ styles?: {
14
+ Trigger?: React.CSSProperties;
15
+ Content?: React.CSSProperties;
16
+ Header?: React.CSSProperties;
17
+ CloseButton?: React.CSSProperties;
18
+ };
19
+ classNames?: {
20
+ Trigger?: string;
21
+ Content?: string;
22
+ Header?: string;
23
+ CloseButton?: string;
24
+ };
15
25
  open?: boolean;
16
26
  onOpenChange?: (open: boolean) => void;
27
+ itemHeight?: number;
17
28
  }
18
29
  export declare const WuStackedCardOverlay: React.FC<IWuStackedCardOverlayProps>;
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  type IHslColor = `hsl(${number}, ${number}%, ${number}%)`;
3
- export declare const adjustLightness: (hsl: string, factor: number) => IHslColor;
3
+ type IHslaColor = `hsl(${number} ${number}% ${number}% / ${number})`;
4
+ export declare const adjustLightness: (hsl: IHslColor, factor: number, a?: number) => IHslaColor;
4
5
  interface ICalcPosProps {
5
6
  index: number;
6
7
  viewIndex: number;
@@ -1,4 +1,11 @@
1
- import { IWuToastOptions } from '../types/IWuToastOptions';
1
+ import { toast } from '../../../base/ui/useToast';
2
+ interface IShowToastParams {
3
+ message: string;
4
+ variant?: 'success' | 'error' | 'warning' | 'info' | 'default';
5
+ duration?: number;
6
+ position?: 'topRight' | 'top' | 'topLeft' | 'bottom' | 'bottomRight' | 'bottomLeft';
7
+ }
2
8
  export declare const useWuShowToast: () => {
3
- showToast: (options: IWuToastOptions) => void;
9
+ showToast: (params: IShowToastParams) => ReturnType<typeof toast>;
4
10
  };
11
+ export {};