@elliemae/ds-form-input-text 3.17.0-next.8 → 3.17.0-rc.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/DSInputText.d.ts +4 -0
- package/dist/types/config/useInputText.d.ts +13 -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 +21 -0
- package/dist/types/styled/borders.d.ts +10 -0
- package/dist/types/styled/components.d.ts +12 -0
- package/dist/types/tests/DSInput.events.test.d.ts +1 -0
- package/dist/types/tests/DSInput.keyboard.test.d.ts +1 -0
- package/dist/types/tests/DSInput.test.d.ts +1 -0
- package/dist/types/tests/axe.test.d.ts +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DSInputTextT } from './react-desc-prop-types.js';
|
|
3
|
+
export declare const DSInputText: React.ComponentType<DSInputTextT.Props>;
|
|
4
|
+
export declare const DSInputTextWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSInputTextT.Props>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { DSInputTextT } from '../react-desc-prop-types.js';
|
|
3
|
+
export declare const useInputText: (props: DSInputTextT.Props) => {
|
|
4
|
+
globalAttributes: import("@elliemae/ds-props-helpers").GlobalAttributesT<Element>;
|
|
5
|
+
hasFocus: boolean;
|
|
6
|
+
handlers: {
|
|
7
|
+
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
8
|
+
onFocus: React.FocusEventHandler<HTMLInputElement>;
|
|
9
|
+
onBlur: React.FocusEventHandler<HTMLInputElement>;
|
|
10
|
+
};
|
|
11
|
+
propsWithDefault: Required<DSInputTextT.IProps>;
|
|
12
|
+
xstyledProps: import("@elliemae/ds-props-helpers").XstyledProps;
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { WeakValidationMap } from 'react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';
|
|
4
|
+
export declare namespace DSInputTextT {
|
|
5
|
+
interface IProps {
|
|
6
|
+
value?: string | number;
|
|
7
|
+
onValueChange?: (nextValue: string | number, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
onClear?: () => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
innerRef?: React.MutableRefObject<HTMLInputElement | null> | ((_ref: HTMLInputElement | null) => void);
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
hasError?: boolean;
|
|
14
|
+
inputSize?: 's' | 'm';
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface Props extends IProps, Omit<GlobalAttributesT<HTMLInputElement>, keyof IProps>, XstyledProps {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export declare const defaultProps: DSInputTextT.Props;
|
|
21
|
+
export declare const DSInputTextPropTypes: WeakValidationMap<unknown>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FlattenSimpleInterpolation } from '@elliemae/ds-system';
|
|
2
|
+
interface BorderNecessaryProps {
|
|
3
|
+
isDisabled: boolean;
|
|
4
|
+
hasError: boolean;
|
|
5
|
+
isReadOnly: boolean;
|
|
6
|
+
hasFocus: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const getBorderCss: (props: BorderNecessaryProps) => FlattenSimpleInterpolation;
|
|
9
|
+
export declare const getHoverBorderCss: (props: BorderNecessaryProps) => FlattenSimpleInterpolation;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface StyledInputWrapperProps {
|
|
3
|
+
inputSize: string;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
hasError: boolean;
|
|
6
|
+
isReadOnly: boolean;
|
|
7
|
+
hasFocus: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const StyledInputWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, StyledInputWrapperProps, never>;
|
|
10
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"input", import("@elliemae/ds-system").Theme, Record<string, unknown>, never>;
|
|
11
|
+
export declare const StyledClearButton: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button").DSButtonT.Props>, import("@elliemae/ds-system").Theme, object, never>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-input-text",
|
|
3
|
-
"version": "3.17.0-
|
|
3
|
+
"version": "3.17.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Input Text",
|
|
6
6
|
"files": [
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"indent": 4
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@elliemae/ds-button": "3.17.0-
|
|
39
|
-
"@elliemae/ds-grid": "3.17.0-
|
|
40
|
-
"@elliemae/ds-icon": "3.17.0-
|
|
41
|
-
"@elliemae/ds-icons": "3.17.0-
|
|
42
|
-
"@elliemae/ds-props-helpers": "3.17.0-
|
|
43
|
-
"@elliemae/ds-system": "3.17.0-
|
|
44
|
-
"@elliemae/ds-utilities": "3.17.0-
|
|
38
|
+
"@elliemae/ds-button": "3.17.0-rc.0",
|
|
39
|
+
"@elliemae/ds-grid": "3.17.0-rc.0",
|
|
40
|
+
"@elliemae/ds-icon": "3.17.0-rc.0",
|
|
41
|
+
"@elliemae/ds-icons": "3.17.0-rc.0",
|
|
42
|
+
"@elliemae/ds-props-helpers": "3.17.0-rc.0",
|
|
43
|
+
"@elliemae/ds-system": "3.17.0-rc.0",
|
|
44
|
+
"@elliemae/ds-utilities": "3.17.0-rc.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@elliemae/pui-theme": "~2.7.0",
|