@npm-questionpro/wick-ui-lib 1.17.4-next.0 → 1.20.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/sheet.d.ts +4 -1
- package/dist/src/components/combobox/WuCombobox.d.ts +3 -1
- package/dist/src/components/drawer/WuDrawer.d.ts +2 -0
- package/dist/src/components/editor/WuEditor.d.ts +9 -0
- package/dist/src/components/editor/WuEditor.test.d.ts +1 -0
- package/dist/src/components/editor/index.d.ts +2 -0
- package/dist/src/components/editor/partials/ImageModal.d.ts +1 -0
- package/dist/src/components/editor/partials/LinkModal.d.ts +9 -0
- package/dist/src/components/editor/partials/Menubar.d.ts +1 -0
- package/dist/src/components/editor/partials/TablePopover.d.ts +1 -0
- package/dist/src/components/editor/partials/config.d.ts +2 -0
- package/dist/src/components/editor/partials/fontFamily.d.ts +1 -0
- package/dist/src/components/editor/partials/helper.d.ts +3 -0
- package/dist/src/components/editor/partials/toolbarItems.d.ts +20 -0
- package/dist/src/components/editor/partials/wuEditorContext.d.ts +13 -0
- package/dist/src/components/listbox/index.d.ts +1 -0
- package/dist/src/components/table/utils/data.d.ts +2 -7
- package/dist/src/components/typography/WuTypography.d.ts +2 -3
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +2900 -2206
- package/dist/wick-ui-lib/umd/index.js +6 -6
- package/package.json +72 -56
|
@@ -12,7 +12,10 @@ declare const sheetVariants: (props?: ({
|
|
|
12
12
|
export interface ISheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
13
|
hideCloseButton?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const SheetContent: React.ForwardRefExoticComponent<ISheetContentProps &
|
|
15
|
+
declare const SheetContent: React.ForwardRefExoticComponent<ISheetContentProps & {
|
|
16
|
+
overlayClassName?: string;
|
|
17
|
+
closeButtonClassName?: string;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
19
|
declare const SheetHeader: {
|
|
17
20
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
18
21
|
displayName: string;
|
|
@@ -30,5 +30,7 @@ export type IWuComboboxProps<T> = Omit<React.ButtonHTMLAttributes<HTMLButtonElem
|
|
|
30
30
|
labelPosition?: 'left' | 'top' | 'right';
|
|
31
31
|
className?: string;
|
|
32
32
|
onScroll?: React.UIEventHandler<HTMLDivElement>;
|
|
33
|
+
enableSearch?: boolean;
|
|
34
|
+
noDataContent?: React.ReactNode;
|
|
33
35
|
};
|
|
34
|
-
export declare const WuCombobox: <T>({ data, accessorKey, value, defaultValue, Header, virtualizedThreshold, isEllipse, placeholder, variant, dir, onSelect, Label, maxHeight, multiple, hasGroup, selectAll, id, disabled, labelPosition, className, onScroll, maxContentWidth, ...rest }: IWuComboboxProps<T>) => React.JSX.Element;
|
|
36
|
+
export declare const WuCombobox: <T>({ data, accessorKey, value, defaultValue, Header, virtualizedThreshold, isEllipse, placeholder, variant, dir, onSelect, Label, maxHeight, multiple, hasGroup, selectAll, id, disabled, labelPosition, className, onScroll, maxContentWidth, enableSearch, noDataContent, ...rest }: IWuComboboxProps<T>) => React.JSX.Element;
|
|
@@ -7,6 +7,8 @@ export type IWuDrawerProps = React.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
|
7
7
|
open?: boolean;
|
|
8
8
|
onOpenChange?: (e: boolean) => void;
|
|
9
9
|
preventClickOutside?: boolean;
|
|
10
|
+
overlayClassName?: string;
|
|
11
|
+
closeButtonClassName?: string;
|
|
10
12
|
};
|
|
11
13
|
export declare const createInteractOutsideHandler: (preventClickOutside?: boolean) => (e: {
|
|
12
14
|
preventDefault: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Extensions } from '@tiptap/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface IWuEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
extensions?: Extensions[];
|
|
6
|
+
onChange?: (content: string) => void;
|
|
7
|
+
content?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const WuEditor: React.FC<IWuEditorProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ImageModal: React.FC;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ILinkModalProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
onSubmit: (url: string | null, text?: string) => void;
|
|
5
|
+
initialText?: string;
|
|
6
|
+
initialUrl?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const LinkModal: React.FC<ILinkModalProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Menubar: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TablePopover: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FontFamilySelector: React.FC;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IWuIcons } from '../../typography';
|
|
2
|
+
import { Editor } from '@tiptap/react';
|
|
3
|
+
import { IOpenLinkModalFn } from './helper';
|
|
4
|
+
export type IMenuBarButton = {
|
|
5
|
+
id: string;
|
|
6
|
+
icon: IWuIcons;
|
|
7
|
+
event: (() => boolean) | ((e: string) => boolean);
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
break?: boolean;
|
|
12
|
+
type?: 'button' | 'dropdown' | 'color' | 'custom';
|
|
13
|
+
items?: {
|
|
14
|
+
id: string;
|
|
15
|
+
icon: IWuIcons;
|
|
16
|
+
event: () => void;
|
|
17
|
+
}[];
|
|
18
|
+
customComponent?: React.JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export declare const ToolbarActionList: (editor: Editor, openLinkModal?: IOpenLinkModalFn) => IMenuBarButton[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { IOpenLinkModalFn } from './helper';
|
|
4
|
+
interface IWuEditorContext {
|
|
5
|
+
editor: Editor | null;
|
|
6
|
+
openLinkModal: IOpenLinkModalFn;
|
|
7
|
+
}
|
|
8
|
+
export declare const useWuEditor: () => IWuEditorContext;
|
|
9
|
+
export declare const WuEditorProvider: React.FC<{
|
|
10
|
+
editor: Editor | null;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -5,14 +5,9 @@ export type IMockData = {
|
|
|
5
5
|
age: number;
|
|
6
6
|
occupation: string;
|
|
7
7
|
catchphrase: string;
|
|
8
|
-
department?: string;
|
|
9
8
|
salary?: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
startDate?: string;
|
|
13
|
-
status?: string;
|
|
14
|
-
manager?: string;
|
|
15
|
-
skills?: string;
|
|
9
|
+
score?: number;
|
|
10
|
+
address?: string;
|
|
16
11
|
};
|
|
17
12
|
export declare const MOCK_DATA: IMockData[];
|
|
18
13
|
export type IExtendedMockData = {
|
|
@@ -15,8 +15,7 @@ export declare const WuDisplay: React.FC<React.HTMLAttributes<HTMLHeadingElement
|
|
|
15
15
|
size?: 'md' | 'lg';
|
|
16
16
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'div';
|
|
17
17
|
}>;
|
|
18
|
-
type
|
|
18
|
+
export type IWuIcons = (typeof ICON_CLASSES)[number];
|
|
19
19
|
export declare const WuIcon: React.FC<React.BaseHTMLAttributes<HTMLBaseElement> & {
|
|
20
|
-
icon:
|
|
20
|
+
icon: IWuIcons;
|
|
21
21
|
}>;
|
|
22
|
-
export {};
|
package/dist/src/index.d.ts
CHANGED