@elliemae/ds-form 3.16.4-rc.2 → 3.16.4-rc.3
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/Checkbox/index.d.ts +1 -0
- package/dist/types/CheckboxGroup/DSCheckboxGroup.d.ts +47 -0
- package/dist/types/CheckboxGroup/defaultProps.d.ts +14 -0
- package/dist/types/CheckboxGroup/index.d.ts +1 -0
- package/dist/types/CheckboxGroup/props.d.ts +26 -0
- package/dist/types/CheckboxGroup/tests/DSCheckboxGroup.events.test.d.ts +1 -0
- package/dist/types/ComboBox/index.d.ts +1 -0
- package/dist/types/ComboBoxFreeSolo/ComboBoxFreeSolo.d.ts +79 -0
- package/dist/types/ComboBoxFreeSolo/components/MultiValueLabel.d.ts +6 -0
- package/dist/types/ComboBoxFreeSolo/components/MultiValueRemove.d.ts +6 -0
- package/dist/types/ComboBoxFreeSolo/components/SingleValue.d.ts +3 -0
- package/dist/types/ComboBoxFreeSolo/components/SingleValueRemove.d.ts +6 -0
- package/dist/types/ComboBoxFreeSolo/index.d.ts +1 -0
- package/dist/types/DateInput/DSDateInput.d.ts +63 -0
- package/dist/types/DateInput/components/DateInputImpl.d.ts +41 -0
- package/dist/types/DateInput/components/DateInputs.d.ts +41 -0
- package/dist/types/DateInput/components/utils.d.ts +40 -0
- package/dist/types/DateInput/defaultProps.d.ts +18 -0
- package/dist/types/DateInput/index.d.ts +1 -0
- package/dist/types/DateInput/props.d.ts +60 -0
- package/dist/types/DateInput/tests/DSDateInput.events.test.d.ts +1 -0
- package/dist/types/DateInputV2/components/DSDateInput.d.ts +55 -0
- package/dist/types/DateInputV2/components/DateInputs.d.ts +33 -0
- package/dist/types/DateInputV2/components/helpers.d.ts +1 -0
- package/dist/types/DateInputV2/components/props.d.ts +53 -0
- package/dist/types/DateInputV2/components/propsTypes.d.ts +21 -0
- package/dist/types/DateInputV2/components/styled.d.ts +5 -0
- package/dist/types/DateInputV2/components/utils.d.ts +42 -0
- package/dist/types/DateInputV2/index.d.ts +2 -0
- package/dist/types/DateInputV2/tests/DateInput.test.d.ts +1 -0
- package/dist/types/ExpandableInput/DSExpandableInput.d.ts +16 -0
- package/dist/types/ExpandableInput/ExpandableInputImpl.d.ts +7 -0
- package/dist/types/ExpandableInput/index.d.ts +1 -0
- package/dist/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +44 -0
- package/dist/types/FloatingLabelInput/FloatingLabelInputImpl.d.ts +27 -0
- package/dist/types/FloatingLabelInput/getSvgPath.d.ts +10 -0
- package/dist/types/FloatingLabelInput/index.d.ts +1 -0
- package/dist/types/FormItem/DSFormItemLayout.d.ts +181 -0
- package/dist/types/FormItem/Error/DSError.d.ts +20 -0
- package/dist/types/FormItem/Feedback.d.ts +7 -0
- package/dist/types/FormItem/Label/DSLabel.d.ts +24 -0
- package/dist/types/FormItem/Suffix/Suffix.d.ts +5 -0
- package/dist/types/FormItem/ValidationFieldWrapper.d.ts +19 -0
- package/dist/types/FormItem/defaultProps.d.ts +52 -0
- package/dist/types/FormItem/index.d.ts +2 -0
- package/dist/types/FormItem/props.d.ts +80 -0
- package/dist/types/FormItem/tests/DSFormItem.events.test.d.ts +1 -0
- package/dist/types/FormItem/variants.d.ts +8 -0
- package/dist/types/Input/DSInput.d.ts +0 -0
- package/dist/types/Input/InputAddonWrapper.d.ts +0 -0
- package/dist/types/Input/InputImpl.d.ts +0 -0
- package/dist/types/Input/index.d.ts +1 -0
- package/dist/types/Input/tests/Input.test.d.ts +0 -0
- package/dist/types/InputGroup/AddonWrapper.d.ts +8 -0
- package/dist/types/InputGroup/DSInputGroup.d.ts +41 -0
- package/dist/types/InputGroup/defaultProps.d.ts +8 -0
- package/dist/types/InputGroup/index.d.ts +1 -0
- package/dist/types/InputGroup/props.d.ts +24 -0
- package/dist/types/InputGroup/tests/DSInputGroup.events.test.d.ts +1 -0
- package/dist/types/InputMask/DSInputMask.d.ts +85 -0
- package/dist/types/InputMask/DSInputMaskDeprecated.d.ts +18 -0
- package/dist/types/InputMask/InputMaskContext.d.ts +18 -0
- package/dist/types/InputMask/MaskPipes.d.ts +18 -0
- package/dist/types/InputMask/MaskTypes.d.ts +15 -0
- package/dist/types/InputMask/addons/AutoCorrectedDatePipe.d.ts +8 -0
- package/dist/types/InputMask/defaultProps.d.ts +28 -0
- package/dist/types/InputMask/index.d.ts +1 -0
- package/dist/types/InputMask/mask_types/DateInputMask.d.ts +37 -0
- package/dist/types/InputMask/mask_types/DateTimeInputMask.d.ts +37 -0
- package/dist/types/InputMask/mask_types/DictionaryInputMask.d.ts +40 -0
- package/dist/types/InputMask/mask_types/NumberInputMask.d.ts +49 -0
- package/dist/types/InputMask/mask_types/PhoneInputMask.d.ts +37 -0
- package/dist/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +37 -0
- package/dist/types/InputMask/mask_types/SsnInputMask.d.ts +37 -0
- package/dist/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +37 -0
- package/dist/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +37 -0
- package/dist/types/InputMask/mask_types/index.d.ts +42 -0
- package/dist/types/InputMask/props.d.ts +112 -0
- package/dist/types/InputMask/tests/DSInputMask.test.d.ts +1 -0
- package/dist/types/InputMask/tests/NumberInputMask.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/DateInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/DateTimeInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/NumberInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/PercentInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/PhoneInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/PhoneInternationalInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/SsnInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/UsZipCodeInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/tests/events/ZipCodeSearchInputMask.events.test.d.ts +1 -0
- package/dist/types/InputMask/types/index.d.ts +5 -0
- package/dist/types/InputMask/utils/setCaretPosition.d.ts +3 -0
- package/dist/types/InputProtected/DSInputProtected.d.ts +42 -0
- package/dist/types/InputProtected/defaultProps.d.ts +4 -0
- package/dist/types/InputProtected/index.d.ts +2 -0
- package/dist/types/InputProtected/options.d.ts +8 -0
- package/dist/types/InputProtected/props.d.ts +14 -0
- package/dist/types/InputProtected/tests/DSInputProtected.events.test.d.ts +1 -0
- package/dist/types/InputProtected/tests/DSInputProtected.test.d.ts +1 -0
- package/dist/types/LargeInputText/DSLargeInputText.d.ts +128 -0
- package/dist/types/LargeInputText/defaultProps.d.ts +31 -0
- package/dist/types/LargeInputText/index.d.ts +1 -0
- package/dist/types/LargeInputText/props.d.ts +95 -0
- package/dist/types/LargeInputText/tests/DSLargeInputText.events.test.d.ts +1 -0
- package/dist/types/LargeInputText/tests/DSLargeInputText.test.d.ts +1 -0
- package/dist/types/MenuItem/components/MenuItem/index.d.ts +0 -0
- package/dist/types/MenuItem/components/MenuItem/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +0 -0
- package/dist/types/MenuItem/components/MultiMenuItem/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/Section/index.d.ts +0 -0
- package/dist/types/MenuItem/components/Section/props.d.ts +0 -0
- package/dist/types/MenuItem/components/Section/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/Separator/index.d.ts +0 -0
- package/dist/types/MenuItem/components/Separator/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +0 -0
- package/dist/types/MenuItem/components/SubmenuItem/index.d.ts +0 -0
- package/dist/types/MenuItem/components/SubmenuItem/styled.d.ts +0 -0
- package/dist/types/MenuItem/components/index.d.ts +0 -0
- package/dist/types/MenuItem/components/styled.d.ts +0 -0
- package/dist/types/MenuItem/index.d.ts +0 -0
- package/dist/types/MenuItem/props.d.ts +0 -0
- package/dist/types/Radio/Circle.d.ts +8 -0
- package/dist/types/Radio/DSRadio.d.ts +87 -0
- package/dist/types/Radio/index.d.ts +1 -0
- package/dist/types/RadioGroup/DSRadioGroup.d.ts +47 -0
- package/dist/types/RadioGroup/defaultProps.d.ts +12 -0
- package/dist/types/RadioGroup/index.d.ts +1 -0
- package/dist/types/RadioGroup/props.d.ts +25 -0
- package/dist/types/RadioGroup/tests/DSRadioGroup.events.test.d.ts +1 -0
- package/dist/types/RequiredMark/RequiredMark.d.ts +7 -0
- package/dist/types/RequiredMark/index.d.ts +1 -0
- package/dist/types/SearchBox/index.d.ts +1 -0
- package/dist/types/TextBox/index.d.ts +1 -0
- package/dist/types/TimeInput/DSTimeInput.d.ts +72 -0
- package/dist/types/TimeInput/TimeInputImpl.d.ts +56 -0
- package/dist/types/TimeInput/TimeInputs.d.ts +18 -0
- package/dist/types/TimeInput/index.d.ts +1 -0
- package/dist/types/TimeInput/utils.d.ts +39 -0
- package/dist/types/Toggle/DSToggle.d.ts +87 -0
- package/dist/types/Toggle/DSToggleImpl.d.ts +61 -0
- package/dist/types/Toggle/DSToggleRender.d.ts +33 -0
- package/dist/types/Toggle/index.d.ts +1 -0
- package/dist/types/Toggle/props.d.ts +47 -0
- package/dist/types/Toggle/toggleHelper.d.ts +24 -0
- package/dist/types/index.d.ts +21 -0
- package/package.json +13 -13
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DSRadioT {
|
|
3
|
+
[x: string]: unknown;
|
|
4
|
+
innerRef?: React.MutableRefObject<HTMLInputElement>;
|
|
5
|
+
containerProps?: {
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
labelText?: string;
|
|
11
|
+
htmlFor?: string;
|
|
12
|
+
hasError?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
checked?: boolean;
|
|
16
|
+
value?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLSpanElement>;
|
|
19
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
20
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
21
|
+
tabIndex?: number;
|
|
22
|
+
}
|
|
23
|
+
declare const DSRadio: {
|
|
24
|
+
({ containerProps, className, style, labelText, htmlFor, hasError, readOnly, disabled, checked, value, name, onChange, children, tabIndex, innerRef, ...otherProps }: DSRadioT): JSX.Element;
|
|
25
|
+
defaultProps: {
|
|
26
|
+
containerProps: {};
|
|
27
|
+
className: string;
|
|
28
|
+
hasError: boolean;
|
|
29
|
+
readOnly: boolean;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
checked: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
onChange: () => null;
|
|
34
|
+
children: null;
|
|
35
|
+
tabIndex: number;
|
|
36
|
+
};
|
|
37
|
+
propTypes: {
|
|
38
|
+
/** Injected props to wrapper element of component */
|
|
39
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
40
|
+
/** css class prop */
|
|
41
|
+
className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
42
|
+
/** name property to manage form */
|
|
43
|
+
name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
44
|
+
/**
|
|
45
|
+
* Displayable label for the radio
|
|
46
|
+
*/
|
|
47
|
+
labelText: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
48
|
+
/** HTMLFOR property to manage form */
|
|
49
|
+
htmlFor: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the radio has error or not
|
|
52
|
+
*/
|
|
53
|
+
hasError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the radio is read only or not
|
|
56
|
+
*/
|
|
57
|
+
readOnly: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the radio is disabled or not
|
|
60
|
+
*/
|
|
61
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
62
|
+
/**
|
|
63
|
+
* Whether the radio is checked or not
|
|
64
|
+
*/
|
|
65
|
+
checked: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
66
|
+
/**
|
|
67
|
+
* Value that takes the checkbox if it is checked
|
|
68
|
+
*/
|
|
69
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
70
|
+
/**
|
|
71
|
+
* Allows a function that is triggered once the radio changes
|
|
72
|
+
*/
|
|
73
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
74
|
+
/**
|
|
75
|
+
* Optional, if you want a checkbox customized
|
|
76
|
+
*/
|
|
77
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
78
|
+
/** HTML tabindex to manage focus */
|
|
79
|
+
tabIndex: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
80
|
+
/** style override object */
|
|
81
|
+
style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
82
|
+
};
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
declare const DSRadioWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSRadioT>;
|
|
86
|
+
export { DSRadio, DSRadioWithSchema };
|
|
87
|
+
export default DSRadio;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSRadio.js';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DSRadioGroup: {
|
|
3
|
+
({ containerProps, onChange, activeValue, children, orientation, disabled, truncateText, labelProps, }: {
|
|
4
|
+
containerProps: any;
|
|
5
|
+
onChange: any;
|
|
6
|
+
activeValue: any;
|
|
7
|
+
children: any;
|
|
8
|
+
orientation: any;
|
|
9
|
+
disabled: any;
|
|
10
|
+
truncateText: any;
|
|
11
|
+
labelProps: any;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
15
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
16
|
+
activeValue: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
17
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
18
|
+
orientation: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
19
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
20
|
+
labelProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
21
|
+
};
|
|
22
|
+
defaultProps: {
|
|
23
|
+
containerProps: {};
|
|
24
|
+
onChange: () => null;
|
|
25
|
+
orientation: string;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
truncateText: boolean;
|
|
28
|
+
labelProps: {
|
|
29
|
+
feedbackMessage: string;
|
|
30
|
+
labelText: string;
|
|
31
|
+
required: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
declare const DSRadioGroupWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
37
|
+
containerProps: any;
|
|
38
|
+
onChange: any;
|
|
39
|
+
activeValue: any;
|
|
40
|
+
children: any;
|
|
41
|
+
orientation: any;
|
|
42
|
+
disabled: any;
|
|
43
|
+
truncateText: any;
|
|
44
|
+
labelProps: any;
|
|
45
|
+
}>;
|
|
46
|
+
export { DSRadioGroup, DSRadioGroupWithSchema };
|
|
47
|
+
export default DSRadioGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSRadioGroup.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
/** Inject props to component wrapper */
|
|
3
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
4
|
+
/**
|
|
5
|
+
* Allows a function that is triggered once the radio group changes
|
|
6
|
+
*/
|
|
7
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
8
|
+
/**
|
|
9
|
+
* Selected default active value
|
|
10
|
+
*/
|
|
11
|
+
activeValue: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
12
|
+
/**
|
|
13
|
+
* Radio group items to show of type DSRadio
|
|
14
|
+
*/
|
|
15
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
16
|
+
/**
|
|
17
|
+
* ['horizontal', 'vertical']
|
|
18
|
+
*/
|
|
19
|
+
orientation: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the radio group is disabled or not
|
|
22
|
+
*/
|
|
23
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
24
|
+
labelProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const RequiredMark: ({ required, optional }: {
|
|
3
|
+
required?: boolean | undefined;
|
|
4
|
+
optional?: boolean | undefined;
|
|
5
|
+
}) => JSX.Element | null;
|
|
6
|
+
export { RequiredMark, RequiredMark as DSRequiredMark };
|
|
7
|
+
export default RequiredMark;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RequiredMark.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@elliemae/ds-common/SearchBox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@elliemae/ds-common/TextBox';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TimeInputImpl } from './TimeInputImpl.js';
|
|
3
|
+
declare const DSTimeInput: {
|
|
4
|
+
({ containerProps, innerRef, className, style, onChange, format, value, clearable, disabled, ariaLabel, }: {
|
|
5
|
+
containerProps?: {} | undefined;
|
|
6
|
+
innerRef: any;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
style?: {} | undefined;
|
|
9
|
+
onChange?: (() => null) | undefined;
|
|
10
|
+
format: any;
|
|
11
|
+
value?: string | undefined;
|
|
12
|
+
clearable?: boolean | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
ariaLabel?: string | undefined;
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
defaultProps: {
|
|
17
|
+
format: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
clearable: boolean;
|
|
20
|
+
};
|
|
21
|
+
propTypes: {
|
|
22
|
+
/** Injected props to wrapper element of component */
|
|
23
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
24
|
+
/**
|
|
25
|
+
* Allows a function that is triggered once the time input changes
|
|
26
|
+
*/
|
|
27
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
28
|
+
/** a11y aria label */
|
|
29
|
+
'aria-label': import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
30
|
+
/** style object for time input wrapper */
|
|
31
|
+
style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
32
|
+
/** inner ref for time inpot wrapper */
|
|
33
|
+
innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
34
|
+
/** class for time input */
|
|
35
|
+
className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
36
|
+
/**
|
|
37
|
+
* Valid time format
|
|
38
|
+
*/
|
|
39
|
+
format: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
40
|
+
/**
|
|
41
|
+
* Default value once the component is initialized
|
|
42
|
+
*/
|
|
43
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the time input is clearable or not
|
|
46
|
+
*/
|
|
47
|
+
clearable: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the time input is disabled or not
|
|
50
|
+
*/
|
|
51
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
52
|
+
/**
|
|
53
|
+
* Aria label
|
|
54
|
+
*/
|
|
55
|
+
ariaLabel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
56
|
+
};
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
59
|
+
declare const DSTimeInputWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
60
|
+
containerProps?: {} | undefined;
|
|
61
|
+
innerRef: any;
|
|
62
|
+
className?: string | undefined;
|
|
63
|
+
style?: {} | undefined;
|
|
64
|
+
onChange?: (() => null) | undefined;
|
|
65
|
+
format: any;
|
|
66
|
+
value?: string | undefined;
|
|
67
|
+
clearable?: boolean | undefined;
|
|
68
|
+
disabled?: boolean | undefined;
|
|
69
|
+
ariaLabel?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export { TimeInputImpl, DSTimeInputWithSchema, DSTimeInput };
|
|
72
|
+
export default DSTimeInput;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
declare const TimeInputImpl: {
|
|
4
|
+
({ format, innerRef, onChange, className, value, disabled, clearable, "arial-label": ariaLabel, }: {
|
|
5
|
+
format: any;
|
|
6
|
+
innerRef: any;
|
|
7
|
+
onChange: any;
|
|
8
|
+
className: any;
|
|
9
|
+
value: any;
|
|
10
|
+
disabled: any;
|
|
11
|
+
clearable: any;
|
|
12
|
+
"arial-label": any;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
propTypes: {
|
|
15
|
+
containerProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
16
|
+
/**
|
|
17
|
+
* Inner reference to the input
|
|
18
|
+
*/
|
|
19
|
+
innerRef: PropTypes.Requireable<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Classes to add to the container
|
|
22
|
+
*/
|
|
23
|
+
className: PropTypes.Requireable<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Styles to add to the container
|
|
26
|
+
*/
|
|
27
|
+
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
28
|
+
/**
|
|
29
|
+
* Allows a function that is triggered once the time input changes
|
|
30
|
+
*/
|
|
31
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
/**
|
|
33
|
+
* Valid time format
|
|
34
|
+
*/
|
|
35
|
+
format: PropTypes.Requireable<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Default value once the component is initialized
|
|
38
|
+
*/
|
|
39
|
+
value: PropTypes.Requireable<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the time input is clearable or not
|
|
42
|
+
*/
|
|
43
|
+
clearable: PropTypes.Requireable<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the time input is disabled or not
|
|
46
|
+
*/
|
|
47
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Aria label to add to the container
|
|
50
|
+
*/
|
|
51
|
+
'aria-label': PropTypes.Requireable<boolean>;
|
|
52
|
+
'arial-label': PropTypes.Requireable<boolean>;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export { TimeInputImpl };
|
|
56
|
+
export default TimeInputImpl;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const TimeInputs: ({ time, format, use12Hours, step, showHours, showMinutes, showSeconds, onChange, disabled, innerRef, clearable, "arial-label": ariaLabel, "aria-label": ariaLabel2, }: {
|
|
3
|
+
time: any;
|
|
4
|
+
format: any;
|
|
5
|
+
use12Hours: any;
|
|
6
|
+
step?: number | undefined;
|
|
7
|
+
showHours: any;
|
|
8
|
+
showMinutes: any;
|
|
9
|
+
showSeconds: any;
|
|
10
|
+
onChange: any;
|
|
11
|
+
disabled: any;
|
|
12
|
+
innerRef: any;
|
|
13
|
+
clearable: any;
|
|
14
|
+
"arial-label": any;
|
|
15
|
+
"aria-label": any;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
export { TimeInputs };
|
|
18
|
+
export default TimeInputs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSTimeInput.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const isArrowIncrementDecrement: (key: any) => boolean;
|
|
2
|
+
export declare const setNativeValue: (element: any, value: any) => void;
|
|
3
|
+
export declare const placeholderFormat: (position: any, format: any, use12Hours: any) => "a" | "h" | "s" | "A" | "hh" | "HH" | "H" | "mm" | "m" | "ss" | undefined;
|
|
4
|
+
export declare const formatMinutes: (format: any, value: any) => string;
|
|
5
|
+
export declare const formatSeconds: (format: any, value: any) => string;
|
|
6
|
+
export declare const formatHour: (format: any, value: any) => string;
|
|
7
|
+
export declare const formatMeridiem: (format: any, value: any) => any;
|
|
8
|
+
export declare const parseTimeNumberFromText: (stringValue: any) => number | null;
|
|
9
|
+
export declare const focusNextInput: (currentEl: any) => void;
|
|
10
|
+
export declare const focusPreviousInput: (currentEl: any) => void;
|
|
11
|
+
export declare const getValidTimeNumber: ({ min, max }: {
|
|
12
|
+
min: any;
|
|
13
|
+
max: any;
|
|
14
|
+
}, number: any, typed: any) => any;
|
|
15
|
+
export declare const shouldFocusNextInput: (max: any, number: number | undefined, stringValue: any) => boolean;
|
|
16
|
+
export declare const getTimeValuesFromTime: (time: any, format: any, use12Hours: any) => {
|
|
17
|
+
hours?: undefined;
|
|
18
|
+
minutes?: undefined;
|
|
19
|
+
seconds?: undefined;
|
|
20
|
+
meridiem?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
hours: string;
|
|
23
|
+
minutes: string;
|
|
24
|
+
seconds: string;
|
|
25
|
+
meridiem: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const resetTimeValues: () => {
|
|
28
|
+
hours: string;
|
|
29
|
+
minutes: string;
|
|
30
|
+
seconds: string;
|
|
31
|
+
meridiem: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const commonInputProps: (onKeyDown: any, onInputFocus: any, onClick: any) => {
|
|
34
|
+
pattern: string;
|
|
35
|
+
type: string;
|
|
36
|
+
onKeyDown: any;
|
|
37
|
+
onClick: any;
|
|
38
|
+
onFocus: any;
|
|
39
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DSToggle: {
|
|
3
|
+
({ containerProps, hasError, readOnly, disabled, checked, labelOn, labelOff, name, value, size, ...otherProps }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
containerProps: any;
|
|
6
|
+
hasError: any;
|
|
7
|
+
readOnly: any;
|
|
8
|
+
disabled: any;
|
|
9
|
+
checked: any;
|
|
10
|
+
labelOn: any;
|
|
11
|
+
labelOff: any;
|
|
12
|
+
name: any;
|
|
13
|
+
value: any;
|
|
14
|
+
size: any;
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
defaultProps: {
|
|
17
|
+
labelOn: string;
|
|
18
|
+
labelOff: string;
|
|
19
|
+
size: string;
|
|
20
|
+
hasError: boolean;
|
|
21
|
+
readOnly: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
checked: undefined;
|
|
24
|
+
};
|
|
25
|
+
propTypes: {
|
|
26
|
+
/**
|
|
27
|
+
* Set of Properties attached to the main container
|
|
28
|
+
*/
|
|
29
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the toggle has error or not
|
|
32
|
+
*/
|
|
33
|
+
hasError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the toggle is read only or not
|
|
36
|
+
*/
|
|
37
|
+
readOnly: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the toggle is disabled or not
|
|
40
|
+
*/
|
|
41
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the toggle is checked or not
|
|
44
|
+
*/
|
|
45
|
+
checked: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
46
|
+
/**
|
|
47
|
+
* Allows a function that is triggered once the toggle changes
|
|
48
|
+
*/
|
|
49
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
50
|
+
/**
|
|
51
|
+
* Label to show when the toggle is ON
|
|
52
|
+
*/
|
|
53
|
+
labelOn: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
54
|
+
/**
|
|
55
|
+
* Label to show when the toggle is OFF
|
|
56
|
+
*/
|
|
57
|
+
labelOff: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
58
|
+
/**
|
|
59
|
+
* Default value once the component is initialized
|
|
60
|
+
*/
|
|
61
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
62
|
+
/**
|
|
63
|
+
* ['s', 'm', 'l']
|
|
64
|
+
*/
|
|
65
|
+
size: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
66
|
+
/**
|
|
67
|
+
* Input name
|
|
68
|
+
*/
|
|
69
|
+
name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
70
|
+
};
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
declare const DSToggleWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
74
|
+
[x: string]: any;
|
|
75
|
+
containerProps: any;
|
|
76
|
+
hasError: any;
|
|
77
|
+
readOnly: any;
|
|
78
|
+
disabled: any;
|
|
79
|
+
checked: any;
|
|
80
|
+
labelOn: any;
|
|
81
|
+
labelOff: any;
|
|
82
|
+
name: any;
|
|
83
|
+
value: any;
|
|
84
|
+
size: any;
|
|
85
|
+
}>;
|
|
86
|
+
export default DSToggle;
|
|
87
|
+
export { DSToggleWithSchema, DSToggle };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class DSToggleImpl extends Component {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
componentDidMount(): void;
|
|
5
|
+
componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
|
|
6
|
+
/**
|
|
7
|
+
* ******************************************************
|
|
8
|
+
* Drag
|
|
9
|
+
* ****************************************************** *
|
|
10
|
+
*
|
|
11
|
+
* @param clientX
|
|
12
|
+
*/
|
|
13
|
+
onDragStart: (clientX: any) => void;
|
|
14
|
+
onDragStop: (e: any) => void;
|
|
15
|
+
/**
|
|
16
|
+
* ******************************************************
|
|
17
|
+
* StandardEvents
|
|
18
|
+
* ****************************************************** *
|
|
19
|
+
*
|
|
20
|
+
* @param e
|
|
21
|
+
*/
|
|
22
|
+
onBlur: (e: any) => void;
|
|
23
|
+
onFocus: (e: any) => void;
|
|
24
|
+
onChange: (e: any) => void;
|
|
25
|
+
/**
|
|
26
|
+
******************************************************
|
|
27
|
+
MouseEvents
|
|
28
|
+
******************************************************* *
|
|
29
|
+
*/
|
|
30
|
+
onMouseEnter: () => void;
|
|
31
|
+
onMouseLeave: () => void;
|
|
32
|
+
onMouseMove: (event: any) => void;
|
|
33
|
+
onMouseDown: (event: any) => void;
|
|
34
|
+
onMouseUp: (event: any) => void;
|
|
35
|
+
/**
|
|
36
|
+
******************************************************
|
|
37
|
+
Touch
|
|
38
|
+
******************************************************* *
|
|
39
|
+
*/
|
|
40
|
+
onTouchCancel: () => void;
|
|
41
|
+
onTouchEnd: (event: any) => void;
|
|
42
|
+
onTouchMove: (event: any) => void;
|
|
43
|
+
onTouchStart: (event: any) => void;
|
|
44
|
+
static getDerivedStateFromProps(props: any, state: any): {
|
|
45
|
+
drag: number;
|
|
46
|
+
checked: any;
|
|
47
|
+
} | null;
|
|
48
|
+
getSnapshotBeforeUpdate(prevProps: any): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* ******************************************************
|
|
51
|
+
* other
|
|
52
|
+
* ****************************************************** *
|
|
53
|
+
*
|
|
54
|
+
* @param currentCheckState
|
|
55
|
+
*/
|
|
56
|
+
setDragOnChange(currentCheckState: any): void;
|
|
57
|
+
verifyElements(): void;
|
|
58
|
+
render(): JSX.Element;
|
|
59
|
+
}
|
|
60
|
+
export { DSToggleImpl };
|
|
61
|
+
export default DSToggleImpl;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const DSToggleRender: ({ containerProps, id, className, style, hasError, hide, readOnly, disabled, checked, onBlur, onFocus, onChange, onMouseDown, onMouseEnter, onMouseLeave, onTouchCancel, onTouchEnd, onTouchMove, onTouchStart, labelOn, labelOff, dragStyle, containerRef, handRef, name, value, size, defaultState, }: {
|
|
3
|
+
containerProps: any;
|
|
4
|
+
id: any;
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
style?: {} | undefined;
|
|
7
|
+
hasError?: boolean | undefined;
|
|
8
|
+
hide: any;
|
|
9
|
+
readOnly?: boolean | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
|
+
checked?: boolean | undefined;
|
|
12
|
+
onBlur?: (() => null) | undefined;
|
|
13
|
+
onFocus?: (() => null) | undefined;
|
|
14
|
+
onChange?: (() => null) | undefined;
|
|
15
|
+
onMouseDown?: (() => null) | undefined;
|
|
16
|
+
onMouseEnter?: (() => null) | undefined;
|
|
17
|
+
onMouseLeave?: (() => null) | undefined;
|
|
18
|
+
onTouchCancel?: (() => null) | undefined;
|
|
19
|
+
onTouchEnd?: (() => null) | undefined;
|
|
20
|
+
onTouchMove?: (() => null) | undefined;
|
|
21
|
+
onTouchStart?: (() => null) | undefined;
|
|
22
|
+
labelOn?: string | undefined;
|
|
23
|
+
labelOff?: string | undefined;
|
|
24
|
+
dragStyle?: {} | undefined;
|
|
25
|
+
containerRef?: null | undefined;
|
|
26
|
+
handRef?: null | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
size?: string | undefined;
|
|
30
|
+
defaultState: any;
|
|
31
|
+
}) => JSX.Element;
|
|
32
|
+
export { DSToggleRender };
|
|
33
|
+
export default DSToggleRender;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, DSToggleWithSchema, DSToggle } from './DSToggle.js';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export declare const togglePropTypes: {
|
|
3
|
+
/**
|
|
4
|
+
* Set of Properties attached to the main container
|
|
5
|
+
*/
|
|
6
|
+
containerProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the toggle has error or not
|
|
9
|
+
*/
|
|
10
|
+
hasError: PropTypes.Requireable<boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the toggle is read only or not
|
|
13
|
+
*/
|
|
14
|
+
readOnly: PropTypes.Requireable<boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the toggle is disabled or not
|
|
17
|
+
*/
|
|
18
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the toggle is checked or not
|
|
21
|
+
*/
|
|
22
|
+
checked: PropTypes.Requireable<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Allows a function that is triggered once the toggle changes
|
|
25
|
+
*/
|
|
26
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
+
/**
|
|
28
|
+
* Label to show when the toggle is ON
|
|
29
|
+
*/
|
|
30
|
+
labelOn: PropTypes.Requireable<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Label to show when the toggle is OFF
|
|
33
|
+
*/
|
|
34
|
+
labelOff: PropTypes.Requireable<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Default value once the component is initialized
|
|
37
|
+
*/
|
|
38
|
+
value: PropTypes.Requireable<string>;
|
|
39
|
+
/**
|
|
40
|
+
* ['s', 'm', 'l']
|
|
41
|
+
*/
|
|
42
|
+
size: PropTypes.Requireable<"s" | "m" | "l">;
|
|
43
|
+
/**
|
|
44
|
+
* Input name
|
|
45
|
+
*/
|
|
46
|
+
name: PropTypes.Requireable<string>;
|
|
47
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const isValidDrag: ({ inside, circleWidth, drag, checked, boxWidth }: {
|
|
2
|
+
inside: any;
|
|
3
|
+
circleWidth: any;
|
|
4
|
+
drag: any;
|
|
5
|
+
checked: any;
|
|
6
|
+
boxWidth: any;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
export declare const cleanDrag: () => {
|
|
9
|
+
startPoint: null;
|
|
10
|
+
isDragging: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const calculateDrag: (clientX: any, { startPoint, checked, isDragging, boxWidth, circleWidth }: {
|
|
13
|
+
startPoint: any;
|
|
14
|
+
checked: any;
|
|
15
|
+
isDragging: any;
|
|
16
|
+
boxWidth: any;
|
|
17
|
+
circleWidth: any;
|
|
18
|
+
}) => number | null;
|
|
19
|
+
export declare const dragStartingPoints: (checked: any) => ({ circleWidth, boxWidth }: {
|
|
20
|
+
circleWidth: any;
|
|
21
|
+
boxWidth: any;
|
|
22
|
+
}) => {
|
|
23
|
+
drag: number;
|
|
24
|
+
};
|