@ws-ui/ui-components 1.0.16 → 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 +15 -15
- package/dist/index.d.ts +10 -7
- package/dist/index.js +3057 -3039
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3007,7 +3007,7 @@ export { Qodly }
|
|
|
3007
3007
|
|
|
3008
3008
|
export declare const Radio: {
|
|
3009
3009
|
Group: {
|
|
3010
|
-
({ 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;
|
|
3011
3011
|
displayName: string;
|
|
3012
3012
|
};
|
|
3013
3013
|
Item: ForwardRefExoticComponent<RadioItemProps & RefAttributes<HTMLInputElement>>;
|
|
@@ -3024,23 +3024,24 @@ export declare interface RadioColorConfig {
|
|
|
3024
3024
|
}
|
|
3025
3025
|
|
|
3026
3026
|
export declare interface RadioContextValue {
|
|
3027
|
-
value?: string;
|
|
3028
|
-
onChange: (value: string) => void;
|
|
3027
|
+
value?: string | number;
|
|
3028
|
+
onChange: (value: string | number) => void;
|
|
3029
3029
|
name?: string;
|
|
3030
3030
|
size: RadioSize;
|
|
3031
3031
|
color: RadioColor;
|
|
3032
3032
|
isDisabled: boolean;
|
|
3033
3033
|
isInvalid: boolean;
|
|
3034
3034
|
isRequired: boolean;
|
|
3035
|
+
hideIndicator: boolean;
|
|
3035
3036
|
}
|
|
3036
3037
|
|
|
3037
3038
|
export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
|
|
3038
3039
|
/** Currently selected value */
|
|
3039
|
-
value?: string;
|
|
3040
|
+
value?: string | number;
|
|
3040
3041
|
/** Default value for uncontrolled component */
|
|
3041
|
-
defaultValue?: string;
|
|
3042
|
+
defaultValue?: string | number;
|
|
3042
3043
|
/** Change handler that receives the selected value */
|
|
3043
|
-
onChange?: (value: string) => void;
|
|
3044
|
+
onChange?: (value: string | number) => void;
|
|
3044
3045
|
/** Name attribute for all radio buttons in the group */
|
|
3045
3046
|
name?: string;
|
|
3046
3047
|
/** Size of all radio buttons in the group */
|
|
@@ -3053,6 +3054,8 @@ export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLD
|
|
|
3053
3054
|
isInvalid?: boolean;
|
|
3054
3055
|
/** Whether the radio group is required */
|
|
3055
3056
|
isRequired?: boolean;
|
|
3057
|
+
/** Whether to hide the default radio indicator (circle) */
|
|
3058
|
+
hideIndicator?: boolean;
|
|
3056
3059
|
/** Additional CSS classes */
|
|
3057
3060
|
className?: string;
|
|
3058
3061
|
/** Children (Radio.Item components) */
|
|
@@ -3061,7 +3064,7 @@ export declare interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLD
|
|
|
3061
3064
|
|
|
3062
3065
|
export declare interface RadioItemProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'checked' | 'onChange'> {
|
|
3063
3066
|
/** Value of this radio button */
|
|
3064
|
-
value: string;
|
|
3067
|
+
value: string | number;
|
|
3065
3068
|
/** Label content for the radio button */
|
|
3066
3069
|
label?: React.ReactNode;
|
|
3067
3070
|
/** Override size from group */
|