@npm-questionpro/wick-ui-lib 1.35.4 → 1.36.1
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/components/calendar/components/datePicker/WuDatePicker.d.ts +5 -0
- package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.d.ts +5 -0
- package/dist/src/components/calendar/utils/index.d.ts +1 -1
- package/dist/src/components/modal/WuModal.d.ts +3 -0
- package/dist/src/components/table/components/dataTable/WuDataTable.d.ts +1 -0
- package/dist/src/components/tooltip/WuTooltip.d.ts +4 -2
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +4570 -4453
- package/dist/wick-ui-lib/umd/index.js +11 -11
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
2
3
|
export type IWuDatePickerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange'> & {
|
|
3
4
|
value?: Date | string;
|
|
4
5
|
onChange?: (date?: Date) => void;
|
|
@@ -15,5 +16,9 @@ export type IWuDatePickerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
15
16
|
labelPosition?: 'top' | 'left';
|
|
16
17
|
showResetButton?: boolean;
|
|
17
18
|
CustomTrigger?: (value?: string) => React.ReactElement;
|
|
19
|
+
align?: PopoverContentProps['align'];
|
|
20
|
+
alignOffset?: PopoverContentProps['alignOffset'];
|
|
21
|
+
side?: PopoverContentProps['side'];
|
|
22
|
+
sideOffset?: PopoverContentProps['sideOffset'];
|
|
18
23
|
};
|
|
19
24
|
export declare const WuDatePicker: React.FC<IWuDatePickerProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DateRange } from 'react-day-picker';
|
|
3
|
+
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
3
4
|
export type IWuDateRangePickerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange'> & {
|
|
4
5
|
value?: DateRange;
|
|
5
6
|
onChange?: (date: DateRange | undefined) => void;
|
|
@@ -22,5 +23,9 @@ export type IWuDateRangePickerProps = Omit<React.ButtonHTMLAttributes<HTMLButton
|
|
|
22
23
|
value: number;
|
|
23
24
|
}[];
|
|
24
25
|
CustomTrigger?: (value?: string) => React.ReactElement;
|
|
26
|
+
align?: PopoverContentProps['align'];
|
|
27
|
+
alignOffset?: PopoverContentProps['alignOffset'];
|
|
28
|
+
side?: PopoverContentProps['side'];
|
|
29
|
+
sideOffset?: PopoverContentProps['sideOffset'];
|
|
25
30
|
};
|
|
26
31
|
export declare const WuDateRangePicker: React.FC<IWuDateRangePickerProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const disabledDate: (e: Date, disabled?: boolean, minDate?: Date, maxDate?: Date) => boolean;
|
|
2
2
|
export declare const parsedDate: (value?: Date | string) => Date;
|
|
3
|
-
export declare const INPUT_PATTERN = "
|
|
3
|
+
export declare const INPUT_PATTERN = "(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])-\\d{4}";
|
|
4
4
|
export declare const DEFAULT_RANGES: {
|
|
5
5
|
label: string;
|
|
6
6
|
value: number;
|
|
@@ -20,6 +20,9 @@ export interface IWuModalProps extends React.ComponentProps<typeof DialogContent
|
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
variant?: 'action' | 'critical' | 'upgrade';
|
|
22
22
|
onOpenAutoFocus?: (event: Event) => void;
|
|
23
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
24
|
+
/** Allow external portals (e.g. CKEditor dropdowns/inputs) to receive focus and pointer events */
|
|
25
|
+
allowExternalPortals?: boolean;
|
|
23
26
|
}
|
|
24
27
|
export declare const WuModal: FC<IWuModalProps>;
|
|
25
28
|
export declare const WuModalContent: FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -11,6 +11,7 @@ export interface IWuDataTableProps<T> extends React.TableHTMLAttributes<HTMLTabl
|
|
|
11
11
|
sort?: {
|
|
12
12
|
enabled: boolean;
|
|
13
13
|
onSort: (sort: IWuManualSorting) => void;
|
|
14
|
+
defaultSort?: IWuManualSorting;
|
|
14
15
|
};
|
|
15
16
|
isLoading?: boolean;
|
|
16
17
|
rowSelection?: IWuTableRowSelection<T>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { TooltipTrigger } from '../../base/ui/tooltip';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
|
-
export interface IWuTooltipProps extends Omit<React.
|
|
3
|
+
export interface IWuTooltipProps extends Omit<React.ComponentProps<typeof TooltipTrigger>, 'content'> {
|
|
3
4
|
content?: string | React.ReactNode;
|
|
4
5
|
duration?: number;
|
|
5
6
|
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
@@ -9,5 +10,6 @@ export interface IWuTooltipProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
9
10
|
showArrow?: boolean;
|
|
10
11
|
open?: boolean;
|
|
11
12
|
onOpenChange?: (open: boolean) => void;
|
|
13
|
+
style?: React.CSSProperties;
|
|
12
14
|
}
|
|
13
|
-
export declare const WuTooltip: React.ForwardRefExoticComponent<IWuTooltipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
15
|
+
export declare const WuTooltip: React.ForwardRefExoticComponent<Omit<IWuTooltipProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|