@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.
- package/dist/src/base/ui/toast.d.ts +2 -1
- package/dist/src/base/ui/useToast.d.ts +1 -0
- package/dist/src/components/calendar/components/datePicker/WuDatePicker.d.ts +1 -0
- package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.d.ts +1 -0
- package/dist/src/components/calendar/ui/_trigger.d.ts +1 -0
- package/dist/src/components/stackedCard/WuStackedCard.d.ts +13 -2
- package/dist/src/components/stackedCard/utils/helper.d.ts +2 -1
- package/dist/src/components/toast/hooks/useWuShowToast.d.ts +9 -2
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +2319 -2278
- package/dist/wick-ui-lib/umd/index.js +7 -7
- package/package.json +1 -1
|
@@ -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" | "
|
|
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?:
|
|
14
|
-
|
|
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
|
-
|
|
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 {
|
|
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: (
|
|
9
|
+
showToast: (params: IShowToastParams) => ReturnType<typeof toast>;
|
|
4
10
|
};
|
|
11
|
+
export {};
|