@elliemae/ds-form-radio 3.17.0-next.9 → 3.17.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/types/ControlledRadio.d.ts +5 -0
- package/dist/types/config/useValidateProps.d.ts +3 -0
- package/dist/types/exported-related/data-test-ids.d.ts +4 -0
- package/dist/types/exported-related/index.d.ts +2 -0
- package/dist/types/exported-related/theming.d.ts +6 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/react-desc-prop-types.d.ts +38 -0
- package/dist/types/styles.d.ts +8 -0
- package/dist/types/tests/DSControlledRadio.keyboard.test.d.ts +1 -0
- package/dist/types/tests/DSControlledRadio.test.d.ts +1 -0
- package/dist/types/tests/DSControllledRadio.events.test.d.ts +1 -0
- package/dist/types/tests/axe.test.d.ts +1 -0
- package/dist/types/utils/styleHelpers.d.ts +4 -0
- package/package.json +5 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DSControlledRadioT } from './react-desc-prop-types.js';
|
|
3
|
+
declare const DSControlledRadio: React.ComponentType<DSControlledRadioT.Props>;
|
|
4
|
+
declare const DSControlledRadioWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSControlledRadioT.Props>;
|
|
5
|
+
export { DSControlledRadio, DSControlledRadioWithSchema };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ChangeEvent, WeakValidationMap } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { GlobalAttributesT } from '@elliemae/ds-props-helpers';
|
|
4
|
+
export declare namespace DSControlledRadioT {
|
|
5
|
+
interface DefaultProps {
|
|
6
|
+
checked: boolean;
|
|
7
|
+
hasError: boolean;
|
|
8
|
+
wrapLabel: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface OptionalProps {
|
|
12
|
+
value?: string;
|
|
13
|
+
onChange?: (newValue: string, e: ChangeEvent) => void;
|
|
14
|
+
label?: string;
|
|
15
|
+
innerRef?: React.RefObject<HTMLInputElement>;
|
|
16
|
+
}
|
|
17
|
+
interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT, keyof (OptionalProps & DefaultProps)> {
|
|
18
|
+
}
|
|
19
|
+
interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT, keyof (OptionalProps & DefaultProps)> {
|
|
20
|
+
}
|
|
21
|
+
interface StyledRadioT {
|
|
22
|
+
checked?: boolean;
|
|
23
|
+
readOnly?: boolean;
|
|
24
|
+
hasError?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
device?: 'mobile' | 'desktop';
|
|
27
|
+
}
|
|
28
|
+
interface StyledLabelT {
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
readOnly?: boolean;
|
|
31
|
+
checked: boolean;
|
|
32
|
+
wrapLabel: boolean;
|
|
33
|
+
onClick?: React.MouseEventHandler<HTMLLabelElement>;
|
|
34
|
+
device?: 'mobile' | 'desktop';
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export declare const defaultProps: Partial<DSControlledRadioT.Props>;
|
|
38
|
+
export declare const propTypes: WeakValidationMap<unknown>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DSControlledRadioT } from './react-desc-prop-types.js';
|
|
2
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
|
|
3
|
+
device?: "mobile" | "desktop" | undefined;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const StyledRadio: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, DSControlledRadioT.StyledRadioT, never>;
|
|
6
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"input", import("@elliemae/ds-system").Theme, object, never>;
|
|
7
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<"label", import("@elliemae/ds-system").Theme, DSControlledRadioT.StyledLabelT, never>;
|
|
8
|
+
export declare const StyledWrapLabel: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Theme } from '@elliemae/pui-theme';
|
|
2
|
+
export declare const handleCheckMarkColor: ({ colors }: Theme, checked: boolean, isHovering: boolean, disabled?: boolean, readOnly?: boolean, hasError?: boolean) => string;
|
|
3
|
+
export declare const handleCheckmark: (theme: Theme, checked?: boolean, disabled?: boolean, readOnly?: boolean, hasError?: boolean, isHovering?: boolean, device?: undefined) => string;
|
|
4
|
+
export declare const handleBackgroundColor: ({ colors }: Theme, disabled?: boolean) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-radio",
|
|
3
|
-
"version": "3.17.0
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Radio",
|
|
6
6
|
"files": [
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"indent": 4
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@elliemae/ds-props-helpers": "3.17.0
|
|
39
|
-
"@elliemae/ds-system": "3.17.0
|
|
40
|
-
"@elliemae/ds-truncated-tooltip-text": "3.17.0
|
|
41
|
-
"@elliemae/ds-utilities": "3.17.0
|
|
38
|
+
"@elliemae/ds-props-helpers": "3.17.0",
|
|
39
|
+
"@elliemae/ds-system": "3.17.0",
|
|
40
|
+
"@elliemae/ds-truncated-tooltip-text": "3.17.0",
|
|
41
|
+
"@elliemae/ds-utilities": "3.17.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@elliemae/pui-theme": "~2.7.0",
|