@elliemae/ds-form 3.17.0-next.2 → 3.17.0-next.21
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 +46 -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 +78 -0
- package/dist/types/ComboBoxFreeSolo/components/MultiValueLabel.d.ts +5 -0
- package/dist/types/ComboBoxFreeSolo/components/MultiValueRemove.d.ts +5 -0
- package/dist/types/ComboBoxFreeSolo/components/SingleValue.d.ts +2 -0
- package/dist/types/ComboBoxFreeSolo/components/SingleValueRemove.d.ts +5 -0
- package/dist/types/ComboBoxFreeSolo/index.d.ts +1 -0
- package/dist/types/DateInput/DSDateInput.d.ts +62 -0
- package/dist/types/DateInput/components/DateInputImpl.d.ts +40 -0
- package/dist/types/DateInput/components/DateInputs.d.ts +40 -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 +54 -0
- package/dist/types/DateInputV2/components/DateInputs.d.ts +32 -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 +15 -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 +43 -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 +180 -0
- package/dist/types/FormItem/Error/DSError.d.ts +19 -0
- package/dist/types/FormItem/Feedback.d.ts +6 -0
- package/dist/types/FormItem/Label/DSLabel.d.ts +23 -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 +51 -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 +40 -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 +36 -0
- package/dist/types/InputMask/mask_types/DateTimeInputMask.d.ts +36 -0
- package/dist/types/InputMask/mask_types/DictionaryInputMask.d.ts +39 -0
- package/dist/types/InputMask/mask_types/NumberInputMask.d.ts +48 -0
- package/dist/types/InputMask/mask_types/PhoneInputMask.d.ts +36 -0
- package/dist/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +36 -0
- package/dist/types/InputMask/mask_types/SsnInputMask.d.ts +36 -0
- package/dist/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +36 -0
- package/dist/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +36 -0
- package/dist/types/InputMask/mask_types/index.d.ts +41 -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 +41 -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 +127 -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 +46 -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 +6 -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 +71 -0
- package/dist/types/TimeInput/TimeInputImpl.d.ts +55 -0
- package/dist/types/TimeInput/TimeInputs.d.ts +17 -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 +86 -0
- package/dist/types/Toggle/DSToggleImpl.d.ts +61 -0
- package/dist/types/Toggle/DSToggleRender.d.ts +32 -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 +15 -15
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const DSRadioGroup: {
|
|
2
|
+
({ containerProps, onChange, activeValue, children, orientation, disabled, truncateText, labelProps, }: {
|
|
3
|
+
containerProps: any;
|
|
4
|
+
onChange: any;
|
|
5
|
+
activeValue: any;
|
|
6
|
+
children: any;
|
|
7
|
+
orientation: any;
|
|
8
|
+
disabled: any;
|
|
9
|
+
truncateText: any;
|
|
10
|
+
labelProps: any;
|
|
11
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
12
|
+
propTypes: {
|
|
13
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
14
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
15
|
+
activeValue: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
16
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
17
|
+
orientation: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
18
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
19
|
+
labelProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
20
|
+
};
|
|
21
|
+
defaultProps: {
|
|
22
|
+
containerProps: {};
|
|
23
|
+
onChange: () => null;
|
|
24
|
+
orientation: string;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
truncateText: boolean;
|
|
27
|
+
labelProps: {
|
|
28
|
+
feedbackMessage: string;
|
|
29
|
+
labelText: string;
|
|
30
|
+
required: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
declare const DSRadioGroupWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
36
|
+
containerProps: any;
|
|
37
|
+
onChange: any;
|
|
38
|
+
activeValue: any;
|
|
39
|
+
children: any;
|
|
40
|
+
orientation: any;
|
|
41
|
+
disabled: any;
|
|
42
|
+
truncateText: any;
|
|
43
|
+
labelProps: any;
|
|
44
|
+
}>;
|
|
45
|
+
export { DSRadioGroup, DSRadioGroupWithSchema };
|
|
46
|
+
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 @@
|
|
|
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,71 @@
|
|
|
1
|
+
import { TimeInputImpl } from './TimeInputImpl.js';
|
|
2
|
+
declare const DSTimeInput: {
|
|
3
|
+
({ containerProps, innerRef, className, style, onChange, format, value, clearable, disabled, ariaLabel, }: {
|
|
4
|
+
containerProps?: {} | undefined;
|
|
5
|
+
innerRef: any;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
style?: {} | undefined;
|
|
8
|
+
onChange?: (() => null) | undefined;
|
|
9
|
+
format: any;
|
|
10
|
+
value?: string | undefined;
|
|
11
|
+
clearable?: boolean | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
ariaLabel?: string | undefined;
|
|
14
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
15
|
+
defaultProps: {
|
|
16
|
+
format: string;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
clearable: boolean;
|
|
19
|
+
};
|
|
20
|
+
propTypes: {
|
|
21
|
+
/** Injected props to wrapper element of component */
|
|
22
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
23
|
+
/**
|
|
24
|
+
* Allows a function that is triggered once the time input changes
|
|
25
|
+
*/
|
|
26
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
27
|
+
/** a11y aria label */
|
|
28
|
+
'aria-label': import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
29
|
+
/** style object for time input wrapper */
|
|
30
|
+
style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
31
|
+
/** inner ref for time inpot wrapper */
|
|
32
|
+
innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
33
|
+
/** class for time input */
|
|
34
|
+
className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
35
|
+
/**
|
|
36
|
+
* Valid time format
|
|
37
|
+
*/
|
|
38
|
+
format: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
39
|
+
/**
|
|
40
|
+
* Default value once the component is initialized
|
|
41
|
+
*/
|
|
42
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the time input is clearable or not
|
|
45
|
+
*/
|
|
46
|
+
clearable: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the time input is disabled or not
|
|
49
|
+
*/
|
|
50
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
51
|
+
/**
|
|
52
|
+
* Aria label
|
|
53
|
+
*/
|
|
54
|
+
ariaLabel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
55
|
+
};
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
declare const DSTimeInputWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
59
|
+
containerProps?: {} | undefined;
|
|
60
|
+
innerRef: any;
|
|
61
|
+
className?: string | undefined;
|
|
62
|
+
style?: {} | undefined;
|
|
63
|
+
onChange?: (() => null) | undefined;
|
|
64
|
+
format: any;
|
|
65
|
+
value?: string | undefined;
|
|
66
|
+
clearable?: boolean | undefined;
|
|
67
|
+
disabled?: boolean | undefined;
|
|
68
|
+
ariaLabel?: string | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
export { TimeInputImpl, DSTimeInputWithSchema, DSTimeInput };
|
|
71
|
+
export default DSTimeInput;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const TimeInputImpl: {
|
|
3
|
+
({ format, innerRef, onChange, className, value, disabled, clearable, "arial-label": ariaLabel, }: {
|
|
4
|
+
format: any;
|
|
5
|
+
innerRef: any;
|
|
6
|
+
onChange: any;
|
|
7
|
+
className: any;
|
|
8
|
+
value: any;
|
|
9
|
+
disabled: any;
|
|
10
|
+
clearable: any;
|
|
11
|
+
"arial-label": any;
|
|
12
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
|
+
containerProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
15
|
+
/**
|
|
16
|
+
* Inner reference to the input
|
|
17
|
+
*/
|
|
18
|
+
innerRef: PropTypes.Requireable<any>;
|
|
19
|
+
/**
|
|
20
|
+
* Classes to add to the container
|
|
21
|
+
*/
|
|
22
|
+
className: PropTypes.Requireable<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Styles to add to the container
|
|
25
|
+
*/
|
|
26
|
+
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
27
|
+
/**
|
|
28
|
+
* Allows a function that is triggered once the time input changes
|
|
29
|
+
*/
|
|
30
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
/**
|
|
32
|
+
* Valid time format
|
|
33
|
+
*/
|
|
34
|
+
format: PropTypes.Requireable<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Default value once the component is initialized
|
|
37
|
+
*/
|
|
38
|
+
value: PropTypes.Requireable<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the time input is clearable or not
|
|
41
|
+
*/
|
|
42
|
+
clearable: PropTypes.Requireable<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the time input is disabled or not
|
|
45
|
+
*/
|
|
46
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Aria label to add to the container
|
|
49
|
+
*/
|
|
50
|
+
'aria-label': PropTypes.Requireable<boolean>;
|
|
51
|
+
'arial-label': PropTypes.Requireable<boolean>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export { TimeInputImpl };
|
|
55
|
+
export default TimeInputImpl;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const TimeInputs: ({ time, format, use12Hours, step, showHours, showMinutes, showSeconds, onChange, disabled, innerRef, clearable, "arial-label": ariaLabel, "aria-label": ariaLabel2, }: {
|
|
2
|
+
time: any;
|
|
3
|
+
format: any;
|
|
4
|
+
use12Hours: any;
|
|
5
|
+
step?: number | undefined;
|
|
6
|
+
showHours: any;
|
|
7
|
+
showMinutes: any;
|
|
8
|
+
showSeconds: any;
|
|
9
|
+
onChange: any;
|
|
10
|
+
disabled: any;
|
|
11
|
+
innerRef: any;
|
|
12
|
+
clearable: any;
|
|
13
|
+
"arial-label": any;
|
|
14
|
+
"aria-label": any;
|
|
15
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
|
16
|
+
export { TimeInputs };
|
|
17
|
+
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,86 @@
|
|
|
1
|
+
declare const DSToggle: {
|
|
2
|
+
({ containerProps, hasError, readOnly, disabled, checked, labelOn, labelOff, name, value, size, ...otherProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
containerProps: any;
|
|
5
|
+
hasError: any;
|
|
6
|
+
readOnly: any;
|
|
7
|
+
disabled: any;
|
|
8
|
+
checked: any;
|
|
9
|
+
labelOn: any;
|
|
10
|
+
labelOff: any;
|
|
11
|
+
name: any;
|
|
12
|
+
value: any;
|
|
13
|
+
size: any;
|
|
14
|
+
}): import("react/jsx-runtime.js").JSX.Element;
|
|
15
|
+
defaultProps: {
|
|
16
|
+
labelOn: string;
|
|
17
|
+
labelOff: string;
|
|
18
|
+
size: string;
|
|
19
|
+
hasError: boolean;
|
|
20
|
+
readOnly: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
checked: undefined;
|
|
23
|
+
};
|
|
24
|
+
propTypes: {
|
|
25
|
+
/**
|
|
26
|
+
* Set of Properties attached to the main container
|
|
27
|
+
*/
|
|
28
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the toggle has error or not
|
|
31
|
+
*/
|
|
32
|
+
hasError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the toggle is read only or not
|
|
35
|
+
*/
|
|
36
|
+
readOnly: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the toggle is disabled or not
|
|
39
|
+
*/
|
|
40
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the toggle is checked or not
|
|
43
|
+
*/
|
|
44
|
+
checked: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
45
|
+
/**
|
|
46
|
+
* Allows a function that is triggered once the toggle changes
|
|
47
|
+
*/
|
|
48
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
49
|
+
/**
|
|
50
|
+
* Label to show when the toggle is ON
|
|
51
|
+
*/
|
|
52
|
+
labelOn: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
53
|
+
/**
|
|
54
|
+
* Label to show when the toggle is OFF
|
|
55
|
+
*/
|
|
56
|
+
labelOff: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
57
|
+
/**
|
|
58
|
+
* Default value once the component is initialized
|
|
59
|
+
*/
|
|
60
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
61
|
+
/**
|
|
62
|
+
* ['s', 'm', 'l']
|
|
63
|
+
*/
|
|
64
|
+
size: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
65
|
+
/**
|
|
66
|
+
* Input name
|
|
67
|
+
*/
|
|
68
|
+
name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
69
|
+
};
|
|
70
|
+
displayName: string;
|
|
71
|
+
};
|
|
72
|
+
declare const DSToggleWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
73
|
+
[x: string]: any;
|
|
74
|
+
containerProps: any;
|
|
75
|
+
hasError: any;
|
|
76
|
+
readOnly: any;
|
|
77
|
+
disabled: any;
|
|
78
|
+
checked: any;
|
|
79
|
+
labelOn: any;
|
|
80
|
+
labelOff: any;
|
|
81
|
+
name: any;
|
|
82
|
+
value: any;
|
|
83
|
+
size: any;
|
|
84
|
+
}>;
|
|
85
|
+
export default DSToggle;
|
|
86
|
+
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(): import("react/jsx-runtime.js").JSX.Element;
|
|
59
|
+
}
|
|
60
|
+
export { DSToggleImpl };
|
|
61
|
+
export default DSToggleImpl;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
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, }: {
|
|
2
|
+
containerProps: any;
|
|
3
|
+
id: any;
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
style?: {} | undefined;
|
|
6
|
+
hasError?: boolean | undefined;
|
|
7
|
+
hide: any;
|
|
8
|
+
readOnly?: boolean | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
checked?: boolean | undefined;
|
|
11
|
+
onBlur?: (() => null) | undefined;
|
|
12
|
+
onFocus?: (() => null) | undefined;
|
|
13
|
+
onChange?: (() => null) | undefined;
|
|
14
|
+
onMouseDown?: (() => null) | undefined;
|
|
15
|
+
onMouseEnter?: (() => null) | undefined;
|
|
16
|
+
onMouseLeave?: (() => null) | undefined;
|
|
17
|
+
onTouchCancel?: (() => null) | undefined;
|
|
18
|
+
onTouchEnd?: (() => null) | undefined;
|
|
19
|
+
onTouchMove?: (() => null) | undefined;
|
|
20
|
+
onTouchStart?: (() => null) | undefined;
|
|
21
|
+
labelOn?: string | undefined;
|
|
22
|
+
labelOff?: string | undefined;
|
|
23
|
+
dragStyle?: {} | undefined;
|
|
24
|
+
containerRef?: null | undefined;
|
|
25
|
+
handRef?: null | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
value?: string | undefined;
|
|
28
|
+
size?: string | undefined;
|
|
29
|
+
defaultState: any;
|
|
30
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export { DSToggleRender };
|
|
32
|
+
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
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './Checkbox/index.js';
|
|
2
|
+
export * from './CheckboxGroup/index.js';
|
|
3
|
+
export * from './TimeInput/index.js';
|
|
4
|
+
export * from './DateInput/index.js';
|
|
5
|
+
export * from './DateInputV2/index.js';
|
|
6
|
+
export * from './ExpandableInput/index.js';
|
|
7
|
+
export * from './FloatingLabelInput/index.js';
|
|
8
|
+
export * from './FormItem/index.js';
|
|
9
|
+
export * from './Input/index.js';
|
|
10
|
+
export * from './InputGroup/index.js';
|
|
11
|
+
export * from './InputMask/index.js';
|
|
12
|
+
export * from './InputProtected/index.js';
|
|
13
|
+
export * from './LargeInputText/index.js';
|
|
14
|
+
export * from './Radio/index.js';
|
|
15
|
+
export * from './RadioGroup/index.js';
|
|
16
|
+
export * from './RequiredMark/index.js';
|
|
17
|
+
export * from './SearchBox/index.js';
|
|
18
|
+
export * from './TextBox/index.js';
|
|
19
|
+
export * from './Toggle/index.js';
|
|
20
|
+
export * from './ComboBox/index.js';
|
|
21
|
+
export * from './ComboBoxFreeSolo/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form",
|
|
3
|
-
"version": "3.17.0-next.
|
|
3
|
+
"version": "3.17.0-next.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Form",
|
|
6
6
|
"files": [
|
|
@@ -481,18 +481,18 @@
|
|
|
481
481
|
"react-select": "~4.3.1",
|
|
482
482
|
"resize-observer": "~1.0.4",
|
|
483
483
|
"text-mask-core": "5.1.2",
|
|
484
|
-
"@elliemae/ds-button": "3.17.0-next.
|
|
485
|
-
"@elliemae/ds-
|
|
486
|
-
"@elliemae/ds-
|
|
487
|
-
"@elliemae/ds-
|
|
488
|
-
"@elliemae/ds-
|
|
489
|
-
"@elliemae/ds-
|
|
490
|
-
"@elliemae/ds-
|
|
491
|
-
"@elliemae/ds-
|
|
492
|
-
"@elliemae/ds-
|
|
493
|
-
"@elliemae/ds-
|
|
494
|
-
"@elliemae/ds-truncated-tooltip-text": "3.17.0-next.
|
|
495
|
-
"@elliemae/ds-
|
|
484
|
+
"@elliemae/ds-button": "3.17.0-next.21",
|
|
485
|
+
"@elliemae/ds-classnames": "3.17.0-next.21",
|
|
486
|
+
"@elliemae/ds-common": "3.17.0-next.21",
|
|
487
|
+
"@elliemae/ds-grid": "3.17.0-next.21",
|
|
488
|
+
"@elliemae/ds-shared": "3.17.0-next.21",
|
|
489
|
+
"@elliemae/ds-props-helpers": "3.17.0-next.21",
|
|
490
|
+
"@elliemae/ds-icons": "3.17.0-next.21",
|
|
491
|
+
"@elliemae/ds-text-wrapper": "3.17.0-next.21",
|
|
492
|
+
"@elliemae/ds-system": "3.17.0-next.21",
|
|
493
|
+
"@elliemae/ds-tooltip": "3.17.0-next.21",
|
|
494
|
+
"@elliemae/ds-truncated-tooltip-text": "3.17.0-next.21",
|
|
495
|
+
"@elliemae/ds-utilities": "3.17.0-next.21"
|
|
496
496
|
},
|
|
497
497
|
"devDependencies": {
|
|
498
498
|
"@testing-library/dom": "~8.19.0",
|
|
@@ -517,8 +517,8 @@
|
|
|
517
517
|
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
518
518
|
"test": "node ../../scripts/testing/test.mjs",
|
|
519
519
|
"lint": "node ../../scripts/lint.mjs",
|
|
520
|
-
"eslint:fix": "exit 0",
|
|
521
|
-
"dts": "exit 0",
|
|
520
|
+
"eslint:fix": "exit 0 | echo",
|
|
521
|
+
"dts": "exit 0 | echo",
|
|
522
522
|
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
523
523
|
"dev:build": "pnpm --filter {.}... build",
|
|
524
524
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|