@sproutsocial/seeds-react-radio 1.0.0
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.d.mts +35 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +4660 -0
- package/dist/index.mjs +4651 -0
- package/package.json +33 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TypeStyledComponentsCommonProps, TypeSystemCommonProps } from '@sproutsocial/seeds-react-system-props';
|
|
3
|
+
|
|
4
|
+
type TypeQaProps = object;
|
|
5
|
+
interface TypeRadioProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, Omit<React.ComponentPropsWithoutRef<"span">, keyof TypeSystemCommonProps> {
|
|
6
|
+
/** ID of the form element, should match the "for" value of the associated label */
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
/** Label text to display next to the radio input */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Label used to describe the input if not used with an accompanying visual label */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
checked?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
qa?: TypeQaProps;
|
|
17
|
+
onChange?: (e: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
18
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
19
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Primitive Radio Element
|
|
24
|
+
*/
|
|
25
|
+
declare class Radio extends React.Component<TypeRadioProps> {
|
|
26
|
+
static defaultProps: {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
};
|
|
29
|
+
handleChange: (e: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
30
|
+
handleFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
31
|
+
handleBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
32
|
+
render(): React.JSX.Element;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { Radio, type TypeRadioProps, Radio as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TypeStyledComponentsCommonProps, TypeSystemCommonProps } from '@sproutsocial/seeds-react-system-props';
|
|
3
|
+
|
|
4
|
+
type TypeQaProps = object;
|
|
5
|
+
interface TypeRadioProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, Omit<React.ComponentPropsWithoutRef<"span">, keyof TypeSystemCommonProps> {
|
|
6
|
+
/** ID of the form element, should match the "for" value of the associated label */
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
/** Label text to display next to the radio input */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Label used to describe the input if not used with an accompanying visual label */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
checked?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
qa?: TypeQaProps;
|
|
17
|
+
onChange?: (e: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
18
|
+
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
19
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Primitive Radio Element
|
|
24
|
+
*/
|
|
25
|
+
declare class Radio extends React.Component<TypeRadioProps> {
|
|
26
|
+
static defaultProps: {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
};
|
|
29
|
+
handleChange: (e: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
30
|
+
handleFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
31
|
+
handleBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
32
|
+
render(): React.JSX.Element;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { Radio, type TypeRadioProps, Radio as default };
|