@npm-questionpro/wick-ui-lib 1.24.0 → 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.
@@ -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,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IWuDrilldownTitle } from './WuDrilldown';
3
- interface IProps {
3
+ export interface IWuDrilldownTitleProps {
4
4
  titles: IWuDrilldownTitle[];
5
5
  currentLevel: `LEVEL_${number}`;
6
6
  initial: `LEVEL_${number}`;
@@ -8,5 +8,4 @@ interface IProps {
8
8
  headerClasses?: string;
9
9
  offsetHeight?: number;
10
10
  }
11
- export declare const WuDrilldownTitles: React.FC<IProps>;
12
- export {};
11
+ export declare const WuDrilldownTitles: React.FC<IWuDrilldownTitleProps>;
@@ -1,2 +1,3 @@
1
1
  export { WuDrilldown } from './WuDrilldown';
2
- export type { IWuDrilldownProps } from './WuDrilldown';
2
+ export type { IWuDrilldownProps, IWuDrilldownAnimationVariant, IWuDrilldownContext, IWuDrilldownItem, IWuDrilldownTitle, } from './WuDrilldown';
3
+ export type { IWuDrilldownTitleProps } from './WuDrilldownTitles';
@@ -1,5 +1,5 @@
1
1
  import { DialogContent, DialogFooter, DialogHeader } from '../../base/ui/dialog';
2
- import { default as React, FC, ReactNode } from 'react';
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>;
@@ -1,5 +1,4 @@
1
- import { ReactNode } from 'react';
2
1
  export interface IWuSwitcherOption<T> {
3
2
  value: T;
4
- label: ReactNode;
3
+ label: React.ReactNode;
5
4
  }
@@ -1,6 +1,6 @@
1
- import { ReactNode, default as React } from 'react';
1
+ import { default as React } from 'react';
2
2
  interface IProps {
3
- children: ReactNode;
3
+ children: React.ReactNode;
4
4
  }
5
5
  export declare const WuTranslationProvider: React.FC<IProps>;
6
6
  export {};
@@ -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
- import { ReactNode } from 'react';
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;