@ws-ui/ui-components 1.0.8 → 1.0.11
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/index.cjs +15 -15
- package/dist/index.d.ts +21 -28
- package/dist/index.js +4110 -4082
- package/dist/plugin.cjs +1 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/plugin.js +399 -0
- package/dist/ui-components.css +1 -1
- package/package.json +6 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,11 +20,12 @@ export declare type BreadcrumbColorConfig = {
|
|
|
20
20
|
hover: string;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
export declare interface BreadcrumbItem {
|
|
23
|
+
export declare interface BreadcrumbItem extends Omit<React.HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
24
24
|
label: ReactNode;
|
|
25
25
|
href?: string;
|
|
26
26
|
onClick?: () => void;
|
|
27
27
|
icon?: ReactNode;
|
|
28
|
+
ref?: React.Ref<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export declare const Breadcrumbs: default_2.FC<BreadcrumbsProps>;
|
|
@@ -2663,23 +2664,15 @@ export declare interface IMultilineMessage {
|
|
|
2663
2664
|
}
|
|
2664
2665
|
|
|
2665
2666
|
export declare const Input: {
|
|
2666
|
-
Root:
|
|
2667
|
-
Group:
|
|
2667
|
+
Root: ForwardRefExoticComponent<InputRootProps & RefAttributes<HTMLDivElement>>;
|
|
2668
|
+
Group: ForwardRefExoticComponent<InputGroupProps & RefAttributes<HTMLDivElement>>;
|
|
2668
2669
|
Field: ForwardRefExoticComponent<InputFieldProps & RefAttributes<HTMLInputElement>>;
|
|
2669
2670
|
Area: ForwardRefExoticComponent<InputAreaProps & RefAttributes<HTMLTextAreaElement>>;
|
|
2670
|
-
Icon:
|
|
2671
|
-
|
|
2672
|
-
displayName: string;
|
|
2673
|
-
};
|
|
2674
|
-
Message: {
|
|
2675
|
-
({ icon, className, children, ...props }: InputMessageProps): JSX_2.Element;
|
|
2676
|
-
displayName: string;
|
|
2677
|
-
};
|
|
2671
|
+
Icon: ForwardRefExoticComponent<InputIconProps & RefAttributes<HTMLDivElement>>;
|
|
2672
|
+
Message: ForwardRefExoticComponent<InputMessageProps & RefAttributes<HTMLDivElement>>;
|
|
2678
2673
|
};
|
|
2679
2674
|
|
|
2680
2675
|
export declare interface InputAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
|
|
2681
|
-
value?: string;
|
|
2682
|
-
defaultValue?: string;
|
|
2683
2676
|
placeholder?: string;
|
|
2684
2677
|
isDisabled?: boolean;
|
|
2685
2678
|
isRequired?: boolean;
|
|
@@ -2701,6 +2694,11 @@ export declare interface InputAreaProps extends Omit<React.TextareaHTMLAttribute
|
|
|
2701
2694
|
'aria-describedby'?: string;
|
|
2702
2695
|
}
|
|
2703
2696
|
|
|
2697
|
+
export declare interface InputChipProps {
|
|
2698
|
+
className?: string;
|
|
2699
|
+
children: ReactNode;
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2704
2702
|
export declare type InputColor = 'primary' | 'positive' | 'warning' | 'negative';
|
|
2705
2703
|
|
|
2706
2704
|
export declare interface InputColorConfig {
|
|
@@ -2721,6 +2719,7 @@ export declare interface InputContextValue {
|
|
|
2721
2719
|
color: InputColor;
|
|
2722
2720
|
isInvalid: boolean;
|
|
2723
2721
|
isDisabled: boolean;
|
|
2722
|
+
isReadOnly: boolean;
|
|
2724
2723
|
hasMessage: boolean;
|
|
2725
2724
|
setHasMessage: React.Dispatch<React.SetStateAction<boolean>>;
|
|
2726
2725
|
hasArea: boolean;
|
|
@@ -2728,8 +2727,6 @@ export declare interface InputContextValue {
|
|
|
2728
2727
|
}
|
|
2729
2728
|
|
|
2730
2729
|
export declare interface InputFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
2731
|
-
value?: string;
|
|
2732
|
-
defaultValue?: string;
|
|
2733
2730
|
placeholder?: string;
|
|
2734
2731
|
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
2735
2732
|
isDisabled?: boolean;
|
|
@@ -2775,6 +2772,7 @@ export declare interface InputRootProps extends React.HTMLAttributes<HTMLDivElem
|
|
|
2775
2772
|
color?: 'primary' | 'positive' | 'warning' | 'negative';
|
|
2776
2773
|
isInvalid?: boolean;
|
|
2777
2774
|
isDisabled?: boolean;
|
|
2775
|
+
isReadOnly?: boolean;
|
|
2778
2776
|
className?: string;
|
|
2779
2777
|
children: ReactNode;
|
|
2780
2778
|
}
|
|
@@ -2921,7 +2919,7 @@ export declare interface PanelProps extends Omit<React.HTMLAttributes<HTMLDivEle
|
|
|
2921
2919
|
/**
|
|
2922
2920
|
* the type of border to apply diferent border color bor tabs and normal panel
|
|
2923
2921
|
*/
|
|
2924
|
-
|
|
2922
|
+
borderType?: 'tabs' | 'primary' | 'negative' | 'positive' | 'light' | 'default';
|
|
2925
2923
|
/**
|
|
2926
2924
|
* Whether the panel is disabled.
|
|
2927
2925
|
* If true, changes text color to inactive-text.
|
|
@@ -3310,10 +3308,9 @@ export declare const Select: {
|
|
|
3310
3308
|
({ icon, className, children, ...props }: SelectMessageProps): JSX_2.Element;
|
|
3311
3309
|
displayName: string;
|
|
3312
3310
|
};
|
|
3313
|
-
Field: {
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
};
|
|
3311
|
+
Field: <T = unknown>(props: SelectFieldProps<T> & {
|
|
3312
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
3313
|
+
}) => React.ReactElement;
|
|
3317
3314
|
};
|
|
3318
3315
|
|
|
3319
3316
|
export declare interface SelectClearIndicatorProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -3675,7 +3672,6 @@ export declare interface TabsProps<T = unknown> {
|
|
|
3675
3672
|
disabled?: boolean;
|
|
3676
3673
|
className?: string;
|
|
3677
3674
|
tabListClassName?: string;
|
|
3678
|
-
contentClassName?: string;
|
|
3679
3675
|
onTabChange?: (value: string) => void;
|
|
3680
3676
|
onReorder?: (tabs: T[], droppedTab?: T) => void;
|
|
3681
3677
|
renderTab?: (props: {
|
|
@@ -3728,14 +3724,11 @@ export declare const ToastProvider: ({ children }: {
|
|
|
3728
3724
|
children: React.ReactNode;
|
|
3729
3725
|
}) => JSX_2.Element;
|
|
3730
3726
|
|
|
3731
|
-
export declare const Toggle:
|
|
3732
|
-
({ label, checked, defaultChecked, disabled, size, color, icons, onChange, className, id, name, ...rest }: ToggleProps): JSX_2.Element;
|
|
3733
|
-
displayName: string;
|
|
3734
|
-
};
|
|
3727
|
+
export declare const Toggle: ForwardRefExoticComponent<ToggleProps & RefAttributes<HTMLButtonElement>>;
|
|
3735
3728
|
|
|
3736
3729
|
export declare type ToggleColor = 'primary' | 'positive' | 'negative' | 'warning';
|
|
3737
3730
|
|
|
3738
|
-
export declare interface ToggleProps extends Omit<
|
|
3731
|
+
export declare interface ToggleProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
3739
3732
|
label?: string;
|
|
3740
3733
|
checked?: boolean;
|
|
3741
3734
|
defaultChecked?: boolean;
|
|
@@ -3743,8 +3736,8 @@ export declare interface ToggleProps extends Omit<React.HTMLAttributes<HTMLDivEl
|
|
|
3743
3736
|
size?: ToggleSize;
|
|
3744
3737
|
color?: ToggleColor;
|
|
3745
3738
|
icons?: {
|
|
3746
|
-
checked:
|
|
3747
|
-
unchecked:
|
|
3739
|
+
checked: ReactNode;
|
|
3740
|
+
unchecked: ReactNode;
|
|
3748
3741
|
};
|
|
3749
3742
|
onChange?: (checked: boolean) => void;
|
|
3750
3743
|
name?: string;
|