@npm-questionpro/wick-ui-lib 1.24.1 → 1.24.2
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/button/WuButton.d.ts +1 -2
- package/dist/src/components/modal/WuModal.d.ts +3 -3
- package/dist/src/components/switcher/types/IWuSwitcherOption.d.ts +1 -2
- package/dist/src/components/useTranslation/WuTranslationProvider.d.ts +2 -2
- package/dist/src/index.d.ts +2 -3
- package/dist/src/lib/testUtils.d.ts +1 -2
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +10588 -10583
- package/dist/wick-ui-lib/umd/index.js +8 -8
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
export interface IWuButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
2
|
variant?: 'primary' | 'secondary' | 'outline' | 'rounded' | 'link' | 'iconOnly';
|
|
4
3
|
size?: 'md' | 'sm' | 'mobile';
|
|
5
4
|
color?: 'primary' | 'upgrade' | 'error';
|
|
6
|
-
Icon?: ReactNode;
|
|
5
|
+
Icon?: React.ReactNode;
|
|
7
6
|
iconPosition?: 'left' | 'right';
|
|
8
7
|
floating?: boolean;
|
|
9
8
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DialogContent, DialogFooter, DialogHeader } from '../../base/ui/dialog';
|
|
2
|
-
import { default as React, FC
|
|
2
|
+
import { default as React, FC } from 'react';
|
|
3
3
|
import { IWuButtonProps } from '../button';
|
|
4
4
|
declare const MAX_WIDTH: {
|
|
5
5
|
readonly sm: "400px";
|
|
@@ -8,7 +8,7 @@ declare const MAX_WIDTH: {
|
|
|
8
8
|
};
|
|
9
9
|
type IModalSize = keyof typeof MAX_WIDTH;
|
|
10
10
|
export interface IWuModalProps extends React.ComponentProps<typeof DialogContent> {
|
|
11
|
-
Trigger?: ReactNode;
|
|
11
|
+
Trigger?: React.ReactNode;
|
|
12
12
|
size?: IModalSize;
|
|
13
13
|
hideCloseButton?: boolean;
|
|
14
14
|
preventClickOutside?: boolean;
|
|
@@ -17,7 +17,7 @@ export interface IWuModalProps extends React.ComponentProps<typeof DialogContent
|
|
|
17
17
|
dir?: 'ltr' | 'rtl';
|
|
18
18
|
maxWidth?: string;
|
|
19
19
|
maxHeight?: string;
|
|
20
|
-
children?: ReactNode;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
21
|
variant?: 'action' | 'critical' | 'upgrade';
|
|
22
22
|
}
|
|
23
23
|
export declare const WuModal: FC<IWuModalProps>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ export * from './components/card';
|
|
|
11
11
|
export * from './components/checkbox';
|
|
12
12
|
export * from './components/chip';
|
|
13
13
|
export * from './components/combobox';
|
|
14
|
+
export * from './components/contentEditor';
|
|
14
15
|
export * from './components/copyToClipboard';
|
|
15
16
|
export * from './components/drawer';
|
|
17
|
+
export * from './components/drilldown';
|
|
16
18
|
export * from './components/footer';
|
|
17
19
|
export * from './components/formGroup';
|
|
18
20
|
export * from './components/helpButton';
|
|
@@ -45,6 +47,3 @@ export * from './components/typography';
|
|
|
45
47
|
export * from './components/useTranslation';
|
|
46
48
|
export * from './components/virtualScroll';
|
|
47
49
|
export * from './docs/ui/colorSystem.ts';
|
|
48
|
-
export * from './components/drilldown';
|
|
49
|
-
export * from './components/stackedCard';
|
|
50
|
-
export * from './components/contentEditor';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { default as userEvent, UserEvent } from '@testing-library/user-event';
|
|
2
|
-
|
|
3
|
-
export declare function renderWithUserEvent(node: ReactNode, options?: Parameters<typeof userEvent.setup>[0]): UserEvent;
|
|
2
|
+
export declare function renderWithUserEvent(node: React.ReactNode, options?: Parameters<typeof userEvent.setup>[0]): UserEvent;
|