@ws-ui/ui-components 1.0.15 → 1.0.17
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 +17 -17
- package/dist/index.d.ts +29 -21
- package/dist/index.js +5082 -4976
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +3 -3
- package/dist/ui-components.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2739,7 +2739,7 @@ export declare interface InputContextValue {
|
|
|
2739
2739
|
|
|
2740
2740
|
export declare interface InputFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
2741
2741
|
placeholder?: string;
|
|
2742
|
-
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
2742
|
+
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week';
|
|
2743
2743
|
isDisabled?: boolean;
|
|
2744
2744
|
isRequired?: boolean;
|
|
2745
2745
|
isReadOnly?: boolean;
|
|
@@ -2863,12 +2863,12 @@ export declare interface ListItemProps extends HTMLAttributes<HTMLElement> {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
|
|
2865
2865
|
export declare const Menu: {
|
|
2866
|
-
({ children, open: controlledOpen, defaultOpen, onOpenChange, }: MenuProps): JSX_2.Element;
|
|
2866
|
+
({ children, open: controlledOpen, defaultOpen, onOpenChange, disabled, }: MenuProps): JSX_2.Element;
|
|
2867
2867
|
displayName: string;
|
|
2868
2868
|
Trigger: ({ children, className }: MenuTriggerProps) => JSX_2.Element;
|
|
2869
2869
|
Content: ({ children, placement, className, }: MenuContentProps) => JSX_2.Element | null;
|
|
2870
|
-
Item: ({ children,
|
|
2871
|
-
SubMenu: ({ label,
|
|
2870
|
+
Item: ({ children, onClick, disabled, className, }: MenuItemProps) => JSX_2.Element;
|
|
2871
|
+
SubMenu: ({ label, children, disabled, className, }: SubMenuProps) => JSX_2.Element;
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
2874
|
export declare interface MenuContentProps {
|
|
@@ -2879,7 +2879,6 @@ export declare interface MenuContentProps {
|
|
|
2879
2879
|
|
|
2880
2880
|
export declare interface MenuItemProps {
|
|
2881
2881
|
children: React.ReactNode;
|
|
2882
|
-
icon?: React.ReactNode;
|
|
2883
2882
|
onClick?: () => void;
|
|
2884
2883
|
disabled?: boolean;
|
|
2885
2884
|
className?: string;
|
|
@@ -2890,6 +2889,7 @@ export declare interface MenuProps {
|
|
|
2890
2889
|
open?: boolean;
|
|
2891
2890
|
defaultOpen?: boolean;
|
|
2892
2891
|
onOpenChange?: (open: boolean) => void;
|
|
2892
|
+
disabled?: boolean;
|
|
2893
2893
|
}
|
|
2894
2894
|
|
|
2895
2895
|
export declare interface MenuTriggerProps {
|
|
@@ -2950,7 +2950,7 @@ export declare interface PillCloseProps extends HTMLAttributes<HTMLButtonElement
|
|
|
2950
2950
|
children?: ReactNode;
|
|
2951
2951
|
}
|
|
2952
2952
|
|
|
2953
|
-
export declare type PillColor = 'primary' | 'white' | 'positive' | 'warning' | 'negative';
|
|
2953
|
+
export declare type PillColor = 'primary' | 'white' | 'positive' | 'warning' | 'negative' | 'dark';
|
|
2954
2954
|
|
|
2955
2955
|
export declare interface PillColorConfig {
|
|
2956
2956
|
bg: string;
|
|
@@ -2962,6 +2962,7 @@ export declare interface PillColorConfig {
|
|
|
2962
2962
|
export declare interface PillContextValue {
|
|
2963
2963
|
size: PillSize;
|
|
2964
2964
|
color: PillColor;
|
|
2965
|
+
disabled?: boolean;
|
|
2965
2966
|
}
|
|
2966
2967
|
|
|
2967
2968
|
export declare interface PillIconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -2973,16 +2974,18 @@ export declare interface PillIconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
2973
2974
|
export declare interface PillProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2974
2975
|
size?: PillSize;
|
|
2975
2976
|
color?: PillColor;
|
|
2976
|
-
label
|
|
2977
|
+
label?: string;
|
|
2977
2978
|
icon?: React.ReactNode;
|
|
2978
2979
|
onClose?: () => void;
|
|
2979
2980
|
closable?: boolean;
|
|
2981
|
+
disabled?: boolean;
|
|
2980
2982
|
}
|
|
2981
2983
|
|
|
2982
2984
|
export declare interface PillRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
2983
2985
|
size?: PillSize;
|
|
2984
2986
|
color?: PillColor;
|
|
2985
2987
|
children: ReactNode;
|
|
2988
|
+
disabled?: boolean;
|
|
2986
2989
|
}
|
|
2987
2990
|
|
|
2988
2991
|
export declare type PillSize = 'sm' | 'md' | 'lg';
|
|
@@ -3004,7 +3007,7 @@ export { Qodly }
|
|
|
3004
3007
|
|
|
3005
3008
|
export declare const Radio: {
|
|
3006
3009
|
Group: {
|
|
3007
|
-
({ value, defaultValue, onChange, name, size, color, isDisabled, isInvalid, isRequired, className, children, ...props }: RadioGroupProps): JSX_2.Element;
|
|
3010
|
+
({ value, defaultValue, onChange, name, size, color, isDisabled, isInvalid, isRequired, hideIndicator, className, children, ...props }: RadioGroupProps): JSX_2.Element;
|
|
3008
3011
|
displayName: string;
|
|
3009
3012
|
};
|
|
3010
3013
|
Item: ForwardRefExoticComponent<RadioItemProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -3021,23 +3024,24 @@ export declare interface RadioColorConfig {
|
|
|
3021
3024
|
}
|
|
3022
3025
|
|
|
3023
3026
|
export declare interface RadioContextValue {
|
|
3024
|
-
value?: string;
|
|
3025
|
-
onChange: (value: string) => void;
|
|
3027
|
+
value?: string | number;
|
|
3028
|
+
onChange: (value: string | number) => void;
|
|
3026
3029
|
name?: string;
|
|
3027
3030
|
size: RadioSize;
|
|
3028
3031
|
color: RadioColor;
|
|
3029
3032
|
isDisabled: boolean;
|
|
3030
3033
|
isInvalid: boolean;
|
|
3031
3034
|
isRequired: boolean;
|
|
3035
|
+
hideIndicator: boolean;
|
|
3032
3036
|
}
|
|
3033
3037
|
|
|
3034
3038
|
export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
3035
3039
|
/** Currently selected value */
|
|
3036
|
-
value?: string;
|
|
3040
|
+
value?: string | number;
|
|
3037
3041
|
/** Default value for uncontrolled component */
|
|
3038
|
-
defaultValue?: string;
|
|
3042
|
+
defaultValue?: string | number;
|
|
3039
3043
|
/** Change handler that receives the selected value */
|
|
3040
|
-
onChange?: (value: string) => void;
|
|
3044
|
+
onChange?: (value: string | number) => void;
|
|
3041
3045
|
/** Name attribute for all radio buttons in the group */
|
|
3042
3046
|
name?: string;
|
|
3043
3047
|
/** Size of all radio buttons in the group */
|
|
@@ -3050,6 +3054,8 @@ export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLD
|
|
|
3050
3054
|
isInvalid?: boolean;
|
|
3051
3055
|
/** Whether the radio group is required */
|
|
3052
3056
|
isRequired?: boolean;
|
|
3057
|
+
/** Whether to hide the default radio indicator (circle) */
|
|
3058
|
+
hideIndicator?: boolean;
|
|
3053
3059
|
/** Additional CSS classes */
|
|
3054
3060
|
className?: string;
|
|
3055
3061
|
/** Children (Radio.Item components) */
|
|
@@ -3058,7 +3064,7 @@ export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLD
|
|
|
3058
3064
|
|
|
3059
3065
|
export declare interface RadioItemProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'checked' | 'onChange'> {
|
|
3060
3066
|
/** Value of this radio button */
|
|
3061
|
-
value: string;
|
|
3067
|
+
value: string | number;
|
|
3062
3068
|
/** Label content for the radio button */
|
|
3063
3069
|
label?: React.ReactNode;
|
|
3064
3070
|
/** Override size from group */
|
|
@@ -3261,7 +3267,7 @@ export declare type ResizeStartCallback = (event: React.MouseEvent<HTMLElement>
|
|
|
3261
3267
|
|
|
3262
3268
|
export declare const Select: {
|
|
3263
3269
|
Root: {
|
|
3264
|
-
<T = unknown>({ size, color, isInvalid, isDisabled, className, children,
|
|
3270
|
+
<T = unknown>({ size, color, isInvalid, isDisabled, className, children, options, value, defaultValue, onChange, isMulti, inputValue, onInputChange, isSearchable, isOpen, onOpenChange, customOptionGenerator, disableInternalFiltering, getOptionLabel, getOptionValue, isOptionDisabled, formatOptionLabel, stateReducer, ...props }: SelectRootProps<T>): JSX_2.Element;
|
|
3265
3271
|
displayName: string;
|
|
3266
3272
|
};
|
|
3267
3273
|
Control: ForwardRefExoticComponent<SelectControlProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -3499,15 +3505,14 @@ export declare interface SelectPlaceholderProps {
|
|
|
3499
3505
|
children: ReactNode;
|
|
3500
3506
|
}
|
|
3501
3507
|
|
|
3502
|
-
export declare
|
|
3508
|
+
export declare type SelectRootProps<T = unknown> = Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> & SelectStrictParams<T> & {
|
|
3503
3509
|
size?: SelectSize;
|
|
3504
3510
|
color?: 'primary' | 'positive' | 'warning' | 'negative';
|
|
3505
3511
|
isInvalid?: boolean;
|
|
3506
3512
|
isDisabled?: boolean;
|
|
3507
3513
|
className?: string;
|
|
3508
3514
|
children: ReactNode;
|
|
3509
|
-
|
|
3510
|
-
}
|
|
3515
|
+
};
|
|
3511
3516
|
|
|
3512
3517
|
export declare type SelectSingleValue<T> = T | null;
|
|
3513
3518
|
|
|
@@ -3545,7 +3550,7 @@ export declare interface SelectSizeConfig {
|
|
|
3545
3550
|
icon: string;
|
|
3546
3551
|
}
|
|
3547
3552
|
|
|
3548
|
-
export declare type SelectStrictParams<T> = Omit<IDownshiftHookParams<T>, 'onChange' | 'value' | 'defaultValue' | 'isMulti'> & ({
|
|
3553
|
+
export declare type SelectStrictParams<T> = Omit<IDownshiftHookParams<T>, 'onChange' | 'value' | 'defaultValue' | 'isMulti' | 'items'> & ({
|
|
3549
3554
|
isMulti?: false;
|
|
3550
3555
|
value?: T | null;
|
|
3551
3556
|
defaultValue?: T | null;
|
|
@@ -3603,7 +3608,6 @@ export declare interface SortableFileTabProps<T = unknown> {
|
|
|
3603
3608
|
|
|
3604
3609
|
export declare interface SubMenuProps {
|
|
3605
3610
|
label: string;
|
|
3606
|
-
icon?: React.ReactNode;
|
|
3607
3611
|
children: React.ReactNode;
|
|
3608
3612
|
disabled?: boolean;
|
|
3609
3613
|
className?: string;
|
|
@@ -3792,7 +3796,7 @@ export declare type TooltipPosition = 'left' | 'right' | 'up' | 'down' | 'up-sta
|
|
|
3792
3796
|
|
|
3793
3797
|
export declare interface TooltipProps {
|
|
3794
3798
|
/** The content to display inside the tooltip */
|
|
3795
|
-
label:
|
|
3799
|
+
label: React.ReactNode;
|
|
3796
3800
|
/** Color variant of the tooltip */
|
|
3797
3801
|
color?: TooltipColor;
|
|
3798
3802
|
/** Position of the tooltip relative to the trigger */
|
|
@@ -3808,6 +3812,10 @@ export declare interface TooltipProps {
|
|
|
3808
3812
|
/** Controle whether to trigger the tooltip visibility by eather click or hover event */
|
|
3809
3813
|
trigger?: 'hover' | 'click';
|
|
3810
3814
|
className?: string;
|
|
3815
|
+
/** Container where the tooltip will be rendered */
|
|
3816
|
+
container?: Element | DocumentFragment;
|
|
3817
|
+
/** Force hide the tooltip */
|
|
3818
|
+
isHidden?: boolean;
|
|
3811
3819
|
}
|
|
3812
3820
|
|
|
3813
3821
|
export declare const useTabsContext: () => TabsContextType;
|