@ws-ui/ui-components 1.0.16 → 1.0.19
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 +16 -16
- package/dist/index.d.ts +17 -41
- package/dist/index.js +5221 -5143
- package/dist/ui-components.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2643,6 +2643,7 @@ export declare interface IDownshiftHookParams<T> {
|
|
|
2643
2643
|
customOptionGenerator?: OptionGenerator<T>;
|
|
2644
2644
|
disableInternalFiltering?: boolean;
|
|
2645
2645
|
isOptionDisabled?: (option: T) => boolean;
|
|
2646
|
+
isDisabled?: boolean;
|
|
2646
2647
|
stateReducer?: (state: any, actionAndChanges: UseComboboxStateChange<T> | UseSelectStateChange<T>) => Partial<any>;
|
|
2647
2648
|
}
|
|
2648
2649
|
|
|
@@ -2863,12 +2864,12 @@ export declare interface ListItemProps extends HTMLAttributes<HTMLElement> {
|
|
|
2863
2864
|
}
|
|
2864
2865
|
|
|
2865
2866
|
export declare const Menu: {
|
|
2866
|
-
({ children, open: controlledOpen, defaultOpen, onOpenChange, disabled, }: MenuProps): JSX_2.Element;
|
|
2867
|
+
({ children, open: controlledOpen, defaultOpen, onOpenChange, disabled, usePortal, }: MenuProps): JSX_2.Element;
|
|
2867
2868
|
displayName: string;
|
|
2868
2869
|
Trigger: ({ children, className }: MenuTriggerProps) => JSX_2.Element;
|
|
2869
2870
|
Content: ({ children, placement, className, }: MenuContentProps) => JSX_2.Element | null;
|
|
2870
|
-
Item: ({ children, onClick, disabled, className, }: MenuItemProps) => JSX_2.Element;
|
|
2871
|
-
SubMenu: ({ label, children, disabled, className, }: SubMenuProps) => JSX_2.Element;
|
|
2871
|
+
Item: ({ children, onClick, icon, disabled, className, }: MenuItemProps) => JSX_2.Element;
|
|
2872
|
+
SubMenu: ({ label, children, icon, disabled, className, }: SubMenuProps) => JSX_2.Element;
|
|
2872
2873
|
};
|
|
2873
2874
|
|
|
2874
2875
|
export declare interface MenuContentProps {
|
|
@@ -2880,6 +2881,7 @@ export declare interface MenuContentProps {
|
|
|
2880
2881
|
export declare interface MenuItemProps {
|
|
2881
2882
|
children: React.ReactNode;
|
|
2882
2883
|
onClick?: () => void;
|
|
2884
|
+
icon?: React.ReactNode;
|
|
2883
2885
|
disabled?: boolean;
|
|
2884
2886
|
className?: string;
|
|
2885
2887
|
}
|
|
@@ -2890,6 +2892,7 @@ export declare interface MenuProps {
|
|
|
2890
2892
|
defaultOpen?: boolean;
|
|
2891
2893
|
onOpenChange?: (open: boolean) => void;
|
|
2892
2894
|
disabled?: boolean;
|
|
2895
|
+
usePortal?: boolean;
|
|
2893
2896
|
}
|
|
2894
2897
|
|
|
2895
2898
|
export declare interface MenuTriggerProps {
|
|
@@ -3007,7 +3010,7 @@ export { Qodly }
|
|
|
3007
3010
|
|
|
3008
3011
|
export declare const Radio: {
|
|
3009
3012
|
Group: {
|
|
3010
|
-
({ value, defaultValue, onChange, name, size, color, isDisabled, isInvalid, isRequired, className, children, ...props }: RadioGroupProps): JSX_2.Element;
|
|
3013
|
+
({ value, defaultValue, onChange, name, size, color, isDisabled, isInvalid, isRequired, hideIndicator, className, children, ...props }: RadioGroupProps): JSX_2.Element;
|
|
3011
3014
|
displayName: string;
|
|
3012
3015
|
};
|
|
3013
3016
|
Item: ForwardRefExoticComponent<RadioItemProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -3024,23 +3027,24 @@ export declare interface RadioColorConfig {
|
|
|
3024
3027
|
}
|
|
3025
3028
|
|
|
3026
3029
|
export declare interface RadioContextValue {
|
|
3027
|
-
value?: string;
|
|
3028
|
-
onChange: (value: string) => void;
|
|
3030
|
+
value?: string | number;
|
|
3031
|
+
onChange: (value: string | number) => void;
|
|
3029
3032
|
name?: string;
|
|
3030
3033
|
size: RadioSize;
|
|
3031
3034
|
color: RadioColor;
|
|
3032
3035
|
isDisabled: boolean;
|
|
3033
3036
|
isInvalid: boolean;
|
|
3034
3037
|
isRequired: boolean;
|
|
3038
|
+
hideIndicator: boolean;
|
|
3035
3039
|
}
|
|
3036
3040
|
|
|
3037
3041
|
export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
3038
3042
|
/** Currently selected value */
|
|
3039
|
-
value?: string;
|
|
3043
|
+
value?: string | number;
|
|
3040
3044
|
/** Default value for uncontrolled component */
|
|
3041
|
-
defaultValue?: string;
|
|
3045
|
+
defaultValue?: string | number;
|
|
3042
3046
|
/** Change handler that receives the selected value */
|
|
3043
|
-
onChange?: (value: string) => void;
|
|
3047
|
+
onChange?: (value: string | number) => void;
|
|
3044
3048
|
/** Name attribute for all radio buttons in the group */
|
|
3045
3049
|
name?: string;
|
|
3046
3050
|
/** Size of all radio buttons in the group */
|
|
@@ -3053,6 +3057,8 @@ export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLD
|
|
|
3053
3057
|
isInvalid?: boolean;
|
|
3054
3058
|
/** Whether the radio group is required */
|
|
3055
3059
|
isRequired?: boolean;
|
|
3060
|
+
/** Whether to hide the default radio indicator (circle) */
|
|
3061
|
+
hideIndicator?: boolean;
|
|
3056
3062
|
/** Additional CSS classes */
|
|
3057
3063
|
className?: string;
|
|
3058
3064
|
/** Children (Radio.Item components) */
|
|
@@ -3061,7 +3067,7 @@ export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLD
|
|
|
3061
3067
|
|
|
3062
3068
|
export declare interface RadioItemProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'checked' | 'onChange'> {
|
|
3063
3069
|
/** Value of this radio button */
|
|
3064
|
-
value: string;
|
|
3070
|
+
value: string | number;
|
|
3065
3071
|
/** Label content for the radio button */
|
|
3066
3072
|
label?: React.ReactNode;
|
|
3067
3073
|
/** Override size from group */
|
|
@@ -3267,20 +3273,7 @@ export declare const Select: {
|
|
|
3267
3273
|
<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;
|
|
3268
3274
|
displayName: string;
|
|
3269
3275
|
};
|
|
3270
|
-
Control: ForwardRefExoticComponent<SelectControlProps & RefAttributes<HTMLDivElement>>;
|
|
3271
|
-
ValueContainer: {
|
|
3272
|
-
({ className, children, isMulti, }: SelectValueContainerProps): JSX_2.Element;
|
|
3273
|
-
displayName: string;
|
|
3274
|
-
};
|
|
3275
3276
|
Input: ForwardRefExoticComponent<SelectInputProps & RefAttributes<HTMLInputElement>>;
|
|
3276
|
-
Placeholder: {
|
|
3277
|
-
({ className, children }: SelectPlaceholderProps): JSX_2.Element;
|
|
3278
|
-
displayName: string;
|
|
3279
|
-
};
|
|
3280
|
-
SingleValue: {
|
|
3281
|
-
<T>({ className, children, data, isDisabled, }: SelectSingleValueProps<T>): JSX_2.Element;
|
|
3282
|
-
displayName: string;
|
|
3283
|
-
};
|
|
3284
3277
|
MultiValue: {
|
|
3285
3278
|
<T>({ className, children, data, isDisabled, isFocused, onRemove, }: SelectMultiValueProps<T>): JSX_2.Element;
|
|
3286
3279
|
displayName: string;
|
|
@@ -3294,24 +3287,6 @@ export declare const Select: {
|
|
|
3294
3287
|
({ color: propColor, className, children, onClick, isDisabled: propIsDisabled, ...props }: SelectDropdownIndicatorProps): JSX_2.Element;
|
|
3295
3288
|
displayName: string;
|
|
3296
3289
|
};
|
|
3297
|
-
Menu: ForwardRefExoticComponent<SelectMenuProps & RefAttributes<HTMLDivElement>>;
|
|
3298
|
-
MenuList: ForwardRefExoticComponent<SelectMenuListProps & RefAttributes<HTMLDivElement>>;
|
|
3299
|
-
Option: {
|
|
3300
|
-
<T>({ className, children, data, isDisabled, isFocused, isSelected, innerProps, ...props }: SelectOptionProps<T>): JSX_2.Element;
|
|
3301
|
-
displayName: string;
|
|
3302
|
-
};
|
|
3303
|
-
Group: {
|
|
3304
|
-
<T>({ className, children, data, label, }: SelectGroupProps<T>): JSX_2.Element;
|
|
3305
|
-
displayName: string;
|
|
3306
|
-
};
|
|
3307
|
-
GroupHeading: {
|
|
3308
|
-
({ className, children, }: SelectGroupHeadingProps): JSX_2.Element;
|
|
3309
|
-
displayName: string;
|
|
3310
|
-
};
|
|
3311
|
-
NoOptionsMessage: {
|
|
3312
|
-
({ className, children, inputValue, }: SelectNoOptionsMessageProps): JSX_2.Element;
|
|
3313
|
-
displayName: string;
|
|
3314
|
-
};
|
|
3315
3290
|
Message: {
|
|
3316
3291
|
({ icon, className, children, ...props }: SelectMessageProps): JSX_2.Element;
|
|
3317
3292
|
displayName: string;
|
|
@@ -3606,6 +3581,7 @@ export declare interface SortableFileTabProps<T = unknown> {
|
|
|
3606
3581
|
export declare interface SubMenuProps {
|
|
3607
3582
|
label: string;
|
|
3608
3583
|
children: React.ReactNode;
|
|
3584
|
+
icon?: React.ReactNode;
|
|
3609
3585
|
disabled?: boolean;
|
|
3610
3586
|
className?: string;
|
|
3611
3587
|
}
|