@elliemae/ds-form 3.17.0-next.10 → 3.17.0-next.12

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.
Files changed (145) hide show
  1. package/dist/types/Checkbox/index.d.ts +1 -0
  2. package/dist/types/CheckboxGroup/DSCheckboxGroup.d.ts +47 -0
  3. package/dist/types/CheckboxGroup/defaultProps.d.ts +14 -0
  4. package/dist/types/CheckboxGroup/index.d.ts +1 -0
  5. package/dist/types/CheckboxGroup/props.d.ts +26 -0
  6. package/dist/types/CheckboxGroup/tests/DSCheckboxGroup.events.test.d.ts +1 -0
  7. package/dist/types/ComboBox/index.d.ts +1 -0
  8. package/dist/types/ComboBoxFreeSolo/ComboBoxFreeSolo.d.ts +79 -0
  9. package/dist/types/ComboBoxFreeSolo/components/MultiValueLabel.d.ts +6 -0
  10. package/dist/types/ComboBoxFreeSolo/components/MultiValueRemove.d.ts +6 -0
  11. package/dist/types/ComboBoxFreeSolo/components/SingleValue.d.ts +3 -0
  12. package/dist/types/ComboBoxFreeSolo/components/SingleValueRemove.d.ts +6 -0
  13. package/dist/types/ComboBoxFreeSolo/index.d.ts +1 -0
  14. package/dist/types/DateInput/DSDateInput.d.ts +63 -0
  15. package/dist/types/DateInput/components/DateInputImpl.d.ts +41 -0
  16. package/dist/types/DateInput/components/DateInputs.d.ts +41 -0
  17. package/dist/types/DateInput/components/utils.d.ts +40 -0
  18. package/dist/types/DateInput/defaultProps.d.ts +18 -0
  19. package/dist/types/DateInput/index.d.ts +1 -0
  20. package/dist/types/DateInput/props.d.ts +60 -0
  21. package/dist/types/DateInput/tests/DSDateInput.events.test.d.ts +1 -0
  22. package/dist/types/DateInputV2/components/DSDateInput.d.ts +55 -0
  23. package/dist/types/DateInputV2/components/DateInputs.d.ts +33 -0
  24. package/dist/types/DateInputV2/components/helpers.d.ts +1 -0
  25. package/dist/types/DateInputV2/components/props.d.ts +53 -0
  26. package/dist/types/DateInputV2/components/propsTypes.d.ts +21 -0
  27. package/dist/types/DateInputV2/components/styled.d.ts +5 -0
  28. package/dist/types/DateInputV2/components/utils.d.ts +42 -0
  29. package/dist/types/DateInputV2/index.d.ts +2 -0
  30. package/dist/types/DateInputV2/tests/DateInput.test.d.ts +1 -0
  31. package/dist/types/ExpandableInput/DSExpandableInput.d.ts +16 -0
  32. package/dist/types/ExpandableInput/ExpandableInputImpl.d.ts +7 -0
  33. package/dist/types/ExpandableInput/index.d.ts +1 -0
  34. package/dist/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +44 -0
  35. package/dist/types/FloatingLabelInput/FloatingLabelInputImpl.d.ts +27 -0
  36. package/dist/types/FloatingLabelInput/getSvgPath.d.ts +10 -0
  37. package/dist/types/FloatingLabelInput/index.d.ts +1 -0
  38. package/dist/types/FormItem/DSFormItemLayout.d.ts +181 -0
  39. package/dist/types/FormItem/Error/DSError.d.ts +20 -0
  40. package/dist/types/FormItem/Feedback.d.ts +7 -0
  41. package/dist/types/FormItem/Label/DSLabel.d.ts +24 -0
  42. package/dist/types/FormItem/Suffix/Suffix.d.ts +5 -0
  43. package/dist/types/FormItem/ValidationFieldWrapper.d.ts +19 -0
  44. package/dist/types/FormItem/defaultProps.d.ts +52 -0
  45. package/dist/types/FormItem/index.d.ts +2 -0
  46. package/dist/types/FormItem/props.d.ts +80 -0
  47. package/dist/types/FormItem/tests/DSFormItem.events.test.d.ts +1 -0
  48. package/dist/types/FormItem/variants.d.ts +8 -0
  49. package/dist/types/Input/DSInput.d.ts +0 -0
  50. package/dist/types/Input/InputAddonWrapper.d.ts +0 -0
  51. package/dist/types/Input/InputImpl.d.ts +0 -0
  52. package/dist/types/Input/index.d.ts +1 -0
  53. package/dist/types/Input/tests/Input.test.d.ts +0 -0
  54. package/dist/types/InputGroup/AddonWrapper.d.ts +8 -0
  55. package/dist/types/InputGroup/DSInputGroup.d.ts +41 -0
  56. package/dist/types/InputGroup/defaultProps.d.ts +8 -0
  57. package/dist/types/InputGroup/index.d.ts +1 -0
  58. package/dist/types/InputGroup/props.d.ts +24 -0
  59. package/dist/types/InputGroup/tests/DSInputGroup.events.test.d.ts +1 -0
  60. package/dist/types/InputMask/DSInputMask.d.ts +85 -0
  61. package/dist/types/InputMask/DSInputMaskDeprecated.d.ts +18 -0
  62. package/dist/types/InputMask/InputMaskContext.d.ts +18 -0
  63. package/dist/types/InputMask/MaskPipes.d.ts +18 -0
  64. package/dist/types/InputMask/MaskTypes.d.ts +15 -0
  65. package/dist/types/InputMask/addons/AutoCorrectedDatePipe.d.ts +8 -0
  66. package/dist/types/InputMask/defaultProps.d.ts +28 -0
  67. package/dist/types/InputMask/index.d.ts +1 -0
  68. package/dist/types/InputMask/mask_types/DateInputMask.d.ts +37 -0
  69. package/dist/types/InputMask/mask_types/DateTimeInputMask.d.ts +37 -0
  70. package/dist/types/InputMask/mask_types/DictionaryInputMask.d.ts +40 -0
  71. package/dist/types/InputMask/mask_types/NumberInputMask.d.ts +49 -0
  72. package/dist/types/InputMask/mask_types/PhoneInputMask.d.ts +37 -0
  73. package/dist/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +37 -0
  74. package/dist/types/InputMask/mask_types/SsnInputMask.d.ts +37 -0
  75. package/dist/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +37 -0
  76. package/dist/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +37 -0
  77. package/dist/types/InputMask/mask_types/index.d.ts +42 -0
  78. package/dist/types/InputMask/props.d.ts +112 -0
  79. package/dist/types/InputMask/tests/DSInputMask.test.d.ts +1 -0
  80. package/dist/types/InputMask/tests/NumberInputMask.test.d.ts +1 -0
  81. package/dist/types/InputMask/tests/events/DateInputMask.events.test.d.ts +1 -0
  82. package/dist/types/InputMask/tests/events/DateTimeInputMask.events.test.d.ts +1 -0
  83. package/dist/types/InputMask/tests/events/NumberInputMask.events.test.d.ts +1 -0
  84. package/dist/types/InputMask/tests/events/PercentInputMask.events.test.d.ts +1 -0
  85. package/dist/types/InputMask/tests/events/PhoneInputMask.events.test.d.ts +1 -0
  86. package/dist/types/InputMask/tests/events/PhoneInternationalInputMask.events.test.d.ts +1 -0
  87. package/dist/types/InputMask/tests/events/SsnInputMask.events.test.d.ts +1 -0
  88. package/dist/types/InputMask/tests/events/UsZipCodeInputMask.events.test.d.ts +1 -0
  89. package/dist/types/InputMask/tests/events/ZipCodeSearchInputMask.events.test.d.ts +1 -0
  90. package/dist/types/InputMask/types/index.d.ts +5 -0
  91. package/dist/types/InputMask/utils/setCaretPosition.d.ts +3 -0
  92. package/dist/types/InputProtected/DSInputProtected.d.ts +42 -0
  93. package/dist/types/InputProtected/defaultProps.d.ts +4 -0
  94. package/dist/types/InputProtected/index.d.ts +2 -0
  95. package/dist/types/InputProtected/options.d.ts +8 -0
  96. package/dist/types/InputProtected/props.d.ts +14 -0
  97. package/dist/types/InputProtected/tests/DSInputProtected.events.test.d.ts +1 -0
  98. package/dist/types/InputProtected/tests/DSInputProtected.test.d.ts +1 -0
  99. package/dist/types/LargeInputText/DSLargeInputText.d.ts +128 -0
  100. package/dist/types/LargeInputText/defaultProps.d.ts +31 -0
  101. package/dist/types/LargeInputText/index.d.ts +1 -0
  102. package/dist/types/LargeInputText/props.d.ts +95 -0
  103. package/dist/types/LargeInputText/tests/DSLargeInputText.events.test.d.ts +1 -0
  104. package/dist/types/LargeInputText/tests/DSLargeInputText.test.d.ts +1 -0
  105. package/dist/types/MenuItem/components/MenuItem/index.d.ts +0 -0
  106. package/dist/types/MenuItem/components/MenuItem/styled.d.ts +0 -0
  107. package/dist/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +0 -0
  108. package/dist/types/MenuItem/components/MultiMenuItem/styled.d.ts +0 -0
  109. package/dist/types/MenuItem/components/Section/index.d.ts +0 -0
  110. package/dist/types/MenuItem/components/Section/props.d.ts +0 -0
  111. package/dist/types/MenuItem/components/Section/styled.d.ts +0 -0
  112. package/dist/types/MenuItem/components/Separator/index.d.ts +0 -0
  113. package/dist/types/MenuItem/components/Separator/styled.d.ts +0 -0
  114. package/dist/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +0 -0
  115. package/dist/types/MenuItem/components/SubmenuItem/index.d.ts +0 -0
  116. package/dist/types/MenuItem/components/SubmenuItem/styled.d.ts +0 -0
  117. package/dist/types/MenuItem/components/index.d.ts +0 -0
  118. package/dist/types/MenuItem/components/styled.d.ts +0 -0
  119. package/dist/types/MenuItem/index.d.ts +0 -0
  120. package/dist/types/MenuItem/props.d.ts +0 -0
  121. package/dist/types/Radio/Circle.d.ts +8 -0
  122. package/dist/types/Radio/DSRadio.d.ts +87 -0
  123. package/dist/types/Radio/index.d.ts +1 -0
  124. package/dist/types/RadioGroup/DSRadioGroup.d.ts +47 -0
  125. package/dist/types/RadioGroup/defaultProps.d.ts +12 -0
  126. package/dist/types/RadioGroup/index.d.ts +1 -0
  127. package/dist/types/RadioGroup/props.d.ts +25 -0
  128. package/dist/types/RadioGroup/tests/DSRadioGroup.events.test.d.ts +1 -0
  129. package/dist/types/RequiredMark/RequiredMark.d.ts +7 -0
  130. package/dist/types/RequiredMark/index.d.ts +1 -0
  131. package/dist/types/SearchBox/index.d.ts +1 -0
  132. package/dist/types/TextBox/index.d.ts +1 -0
  133. package/dist/types/TimeInput/DSTimeInput.d.ts +72 -0
  134. package/dist/types/TimeInput/TimeInputImpl.d.ts +56 -0
  135. package/dist/types/TimeInput/TimeInputs.d.ts +18 -0
  136. package/dist/types/TimeInput/index.d.ts +1 -0
  137. package/dist/types/TimeInput/utils.d.ts +39 -0
  138. package/dist/types/Toggle/DSToggle.d.ts +87 -0
  139. package/dist/types/Toggle/DSToggleImpl.d.ts +61 -0
  140. package/dist/types/Toggle/DSToggleRender.d.ts +33 -0
  141. package/dist/types/Toggle/index.d.ts +1 -0
  142. package/dist/types/Toggle/props.d.ts +47 -0
  143. package/dist/types/Toggle/toggleHelper.d.ts +24 -0
  144. package/dist/types/index.d.ts +21 -0
  145. package/package.json +13 -13
@@ -0,0 +1 @@
1
+ export * from '@elliemae/ds-common/Checkbox';
@@ -0,0 +1,47 @@
1
+ /// <reference types="react" />
2
+ declare const DSCheckboxGroup: {
3
+ ({ onChange, activeValue, children, disabled, orientation, truncateText, labelProps, containerProps, }: {
4
+ onChange: any;
5
+ activeValue: any;
6
+ children: any;
7
+ disabled: any;
8
+ orientation: any;
9
+ truncateText: any;
10
+ labelProps: any;
11
+ containerProps: any;
12
+ }): JSX.Element;
13
+ propTypes: {
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
+ disabled: 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
+ labelProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
20
+ };
21
+ defaultProps: {
22
+ onChange: () => null;
23
+ activeValue: never[];
24
+ children: never[];
25
+ disabled: boolean;
26
+ orientation: string;
27
+ truncateText: boolean;
28
+ labelProps: {
29
+ feedbackMessage: string;
30
+ labelText: string;
31
+ required: boolean;
32
+ };
33
+ containerProps: {};
34
+ };
35
+ displayName: string;
36
+ };
37
+ declare const DSCheckboxGroupWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
38
+ onChange: any;
39
+ activeValue: any;
40
+ children: any;
41
+ disabled: any;
42
+ orientation: any;
43
+ truncateText: any;
44
+ labelProps: any;
45
+ containerProps: any;
46
+ }>;
47
+ export { DSCheckboxGroup, DSCheckboxGroupWithSchema };
@@ -0,0 +1,14 @@
1
+ export declare const defaultProps: {
2
+ onChange: () => null;
3
+ activeValue: never[];
4
+ children: never[];
5
+ disabled: boolean;
6
+ orientation: string;
7
+ truncateText: boolean;
8
+ labelProps: {
9
+ feedbackMessage: string;
10
+ labelText: string;
11
+ required: boolean;
12
+ };
13
+ containerProps: {};
14
+ };
@@ -0,0 +1 @@
1
+ export * from './DSCheckboxGroup.js';
@@ -0,0 +1,26 @@
1
+ export declare const props: {
2
+ /**
3
+ * Allows a function that is triggered once the checkbox group changes
4
+ */
5
+ onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
6
+ /**
7
+ * Default active value
8
+ */
9
+ activeValue: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
10
+ /**
11
+ * Checkbox group items to show of type DSCheckbox
12
+ */
13
+ children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
14
+ /**
15
+ * Whether the checkbox group is disabled or not
16
+ */
17
+ disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
18
+ /**
19
+ * ['horizontal', 'vertical']
20
+ */
21
+ orientation: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
22
+ /**
23
+ * label props
24
+ */
25
+ labelProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
26
+ };
@@ -0,0 +1 @@
1
+ export * from '@elliemae/ds-common/ComboBox';
@@ -0,0 +1,79 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ declare const ComboBoxFreeSolo: {
4
+ ({ isMulti, options, value, onChange, onChangeV2, onInputChange, onFocus, onBlur, containerProps, disabled, menuIsOpen, placeholder, formatCreateLabel, maxOptions, ...rest }: {
5
+ [x: string]: any;
6
+ isMulti?: boolean | undefined;
7
+ options?: {} | undefined;
8
+ value?: never[] | undefined;
9
+ onChange?: ((...args: any[]) => void) | undefined;
10
+ onChangeV2?: ((...args: any[]) => void) | undefined;
11
+ onInputChange?: ((...args: any[]) => void) | undefined;
12
+ onFocus?: ((...args: any[]) => void) | undefined;
13
+ onBlur?: ((...args: any[]) => void) | undefined;
14
+ containerProps?: {} | undefined;
15
+ disabled?: boolean | undefined;
16
+ menuIsOpen?: boolean | undefined;
17
+ placeholder?: string | undefined;
18
+ formatCreateLabel?: ((val: any) => string) | undefined;
19
+ maxOptions?: undefined;
20
+ }): JSX.Element;
21
+ propTypes: {
22
+ containerProps: PropTypes.Requireable<object>;
23
+ /**
24
+ * Allows a function that is triggered once the combo box is focused
25
+ */
26
+ onFocus: PropTypes.Requireable<(...args: any[]) => any>;
27
+ /**
28
+ * Allows a function that is triggered once the combo box loses focus
29
+ */
30
+ onBlur: PropTypes.Requireable<(...args: any[]) => any>;
31
+ /**
32
+ * Allows a function that is triggered when a new value is selected from the dropdown menu
33
+ */
34
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
35
+ /**
36
+ * Allows a function that is triggered when a new value is selected from the dropdown menu
37
+ * It will return the current options selected
38
+ */
39
+ onChangeV2: PropTypes.Requireable<(...args: any[]) => any>;
40
+ /**
41
+ * Allows a function that is triggered once the input value changes (on every keystroke)
42
+ */
43
+ onInputChange: PropTypes.Requireable<(...args: any[]) => any>;
44
+ value: PropTypes.Requireable<object>;
45
+ /**
46
+ * Value that the combo box has as default
47
+ */
48
+ options: PropTypes.Requireable<(object | null | undefined)[]>;
49
+ /**
50
+ * Whether the combo box is disabled or not
51
+ */
52
+ disabled: PropTypes.Requireable<boolean>;
53
+ /**
54
+ * Whether the combo box free solo is multi selectable or not
55
+ */
56
+ isMulti: PropTypes.Requireable<boolean>;
57
+ /**
58
+ * Placeholder for the combo box
59
+ */
60
+ placeholder: PropTypes.Requireable<string>;
61
+ /**
62
+ * Whether the combo box menu is open or not
63
+ */
64
+ menuIsOpen: PropTypes.Requireable<boolean>;
65
+ /**
66
+ * Whether to show the combo box menu inline or not
67
+ */
68
+ /**
69
+ * function that reciveves the new value and returns the formatted value
70
+ */
71
+ formatCreateLabel: PropTypes.Requireable<(...args: any[]) => any>;
72
+ /**
73
+ * Max options to be displayed on the menu list
74
+ */
75
+ maxOptions: PropTypes.Requireable<number>;
76
+ };
77
+ };
78
+ export { ComboBoxFreeSolo };
79
+ export default ComboBoxFreeSolo;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const MultiValueLabel: ({ children, clear }: {
3
+ children: any;
4
+ clear: any;
5
+ }) => JSX.Element;
6
+ export { MultiValueLabel };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const MultiValueRemove: {
3
+ (props: any): JSX.Element;
4
+ style(base: any): any;
5
+ };
6
+ export { MultiValueRemove };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SingleValue: (props: any) => JSX.Element;
3
+ export { SingleValue };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const SingleValueRemove: {
3
+ (props: any): JSX.Element;
4
+ style(base: any): any;
5
+ };
6
+ export { SingleValueRemove };
@@ -0,0 +1 @@
1
+ export * from './ComboBoxFreeSolo.js';
@@ -0,0 +1,63 @@
1
+ /// <reference types="react" />
2
+ import { DateInputImpl } from './components/DateInputImpl.js';
3
+ declare const DSDateInput: {
4
+ ({ innerRef, className, style, onFocus, onBlur, onClear, onChange, onKeyDown, onError, format, value, clearable, disabled, yearMaxRange, yearMinRange, containerProps, INTERNAL_V2_NO_MUTATION, }: {
5
+ innerRef: any;
6
+ className: any;
7
+ style: any;
8
+ onFocus: any;
9
+ onBlur: any;
10
+ onClear: any;
11
+ onChange: any;
12
+ onKeyDown: any;
13
+ onError: any;
14
+ format: any;
15
+ value: any;
16
+ clearable: any;
17
+ disabled: any;
18
+ yearMaxRange: any;
19
+ yearMinRange: any;
20
+ containerProps: any;
21
+ INTERNAL_V2_NO_MUTATION: any;
22
+ }): JSX.Element;
23
+ propTypes: {
24
+ containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
25
+ innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
26
+ className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
27
+ style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
28
+ onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
29
+ onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
30
+ onClear: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
31
+ onKeyDown: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
32
+ onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
33
+ onError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
34
+ format: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
35
+ value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
36
+ clearable: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
37
+ disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
38
+ yearMaxRange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
39
+ yearMinRange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
40
+ };
41
+ defaultProps: {
42
+ className: string;
43
+ style: {};
44
+ onFocus: () => null;
45
+ onBlur: () => null;
46
+ onClear: () => null;
47
+ onChange: () => null;
48
+ onKeyDown: () => null;
49
+ onError: () => null;
50
+ format: string;
51
+ value: string;
52
+ clearable: boolean;
53
+ disabled: boolean;
54
+ yearMaxRange: number;
55
+ yearMinRange: number;
56
+ containerProps: {};
57
+ INTERNAL_V2_NO_MUTATION: boolean;
58
+ };
59
+ displayName: string;
60
+ };
61
+ declare const DSDateInputWithSchema: any;
62
+ export { DateInputImpl, DSDateInputWithSchema, DSDateInput };
63
+ export default DSDateInput;
@@ -0,0 +1,41 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ declare const DateInputImpl: {
4
+ ({ format, innerRef, onBlur, onChange, onKeyDown, onError, className, value, disabled, yearMaxRange, yearMinRange, onFocus, INTERNAL_V2_NO_MUTATION, }: {
5
+ format: any;
6
+ innerRef: any;
7
+ onBlur: any;
8
+ onChange: any;
9
+ onKeyDown: any;
10
+ onError: any;
11
+ className: any;
12
+ value: any;
13
+ disabled: any;
14
+ yearMaxRange: any;
15
+ yearMinRange: any;
16
+ onFocus: any;
17
+ INTERNAL_V2_NO_MUTATION: any;
18
+ }): JSX.Element;
19
+ propTypes: {
20
+ innerRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
21
+ current: PropTypes.Requireable<any>;
22
+ }> | null | undefined>>;
23
+ onBlur: PropTypes.Requireable<boolean>;
24
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
25
+ onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
26
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
27
+ format: PropTypes.Requireable<string>;
28
+ showMonth: PropTypes.Requireable<boolean>;
29
+ className: PropTypes.Requireable<string>;
30
+ showDay: PropTypes.Requireable<boolean>;
31
+ showYear: PropTypes.Requireable<boolean>;
32
+ step: PropTypes.Requireable<number>;
33
+ onFocus: PropTypes.Requireable<(...args: any[]) => any>;
34
+ yearMaxRange: PropTypes.Requireable<number>;
35
+ disabled: PropTypes.Requireable<boolean>;
36
+ yearMinRange: PropTypes.Requireable<number>;
37
+ value: PropTypes.Requireable<unknown>;
38
+ };
39
+ };
40
+ export { DateInputImpl };
41
+ export default DateInputImpl;
@@ -0,0 +1,41 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ declare const DateInputs: {
4
+ ({ innerRef, onBlur, onChange, onCustomKeyDown, onError, format, showMonth, showDay, showYear, step, yearMaxRange, disabled, yearMinRange, time, INTERNAL_V2_NO_MUTATION, }: {
5
+ innerRef: any;
6
+ onBlur: any;
7
+ onChange: any;
8
+ onCustomKeyDown: any;
9
+ onError: any;
10
+ format?: string | undefined;
11
+ showMonth?: boolean | undefined;
12
+ showDay?: boolean | undefined;
13
+ showYear?: boolean | undefined;
14
+ step?: number | undefined;
15
+ yearMaxRange: any;
16
+ disabled: any;
17
+ yearMinRange: any;
18
+ time: any;
19
+ INTERNAL_V2_NO_MUTATION: any;
20
+ }): JSX.Element;
21
+ propTypes: {
22
+ innerRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
23
+ current: PropTypes.Requireable<any>;
24
+ }> | null | undefined>>;
25
+ onBlur: PropTypes.Requireable<boolean>;
26
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
27
+ onCustomKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
28
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
29
+ format: PropTypes.Requireable<string>;
30
+ showMonth: PropTypes.Requireable<boolean>;
31
+ showDay: PropTypes.Requireable<boolean>;
32
+ showYear: PropTypes.Requireable<boolean>;
33
+ step: PropTypes.Requireable<number>;
34
+ yearMaxRange: PropTypes.Requireable<number>;
35
+ disabled: PropTypes.Requireable<boolean>;
36
+ yearMinRange: PropTypes.Requireable<number>;
37
+ time: PropTypes.Requireable<unknown>;
38
+ };
39
+ };
40
+ export { DateInputs };
41
+ export default DateInputs;
@@ -0,0 +1,40 @@
1
+ export declare const isArrowIncrementDecrement: (key: any) => boolean;
2
+ export declare const setNativeValue: (element: any, value: any) => void;
3
+ export declare const formatDay: (format: any, value: any) => string;
4
+ export declare const formatYear: (format: any, value: any) => string;
5
+ export declare const formatMonth: (format: any, value: any) => string;
6
+ export declare const parseTimeNumberFromText: (stringValue: any) => number | null;
7
+ export declare const triggerOnBlur: (blurEvent: any, onBlur?: () => void) => void;
8
+ export declare const focusNextInput: (currentEl: any) => void;
9
+ export declare const focusPreviousInput: (currentEl: any) => void;
10
+ export declare const getValidTimeNumber: ({ min, max }: {
11
+ min: any;
12
+ max: any;
13
+ }, number: any, valueString?: string, onError?: () => null) => any;
14
+ export declare const shouldFocusNextInput: (max: any, number: number | undefined, stringValue: any) => boolean;
15
+ export declare const getDateValuesFromTime: (time: any, format: any) => {
16
+ month?: undefined;
17
+ day?: undefined;
18
+ year?: undefined;
19
+ } | {
20
+ month: string;
21
+ day: string;
22
+ year: string;
23
+ };
24
+ export declare const resetTimeValues: () => {
25
+ month: string;
26
+ day: string;
27
+ year: string;
28
+ };
29
+ export declare const onInputFocus: (e: any) => void;
30
+ export declare const getNextTimeValue: (value: any, target: any, yearMinRange: any, yearMaxRange: any, step?: number, incrementing?: boolean) => number;
31
+ export declare const focusNextInputIfNeeded: (currentEl: any, max: any, number: any, stringValue: any, currentKey: any) => void;
32
+ export declare const commonInputProps: (digits: number | undefined, onKeyDown: any, placeholder: any) => {
33
+ pattern: string;
34
+ placeholder: any;
35
+ type: string;
36
+ onKeyDown: any;
37
+ onFocus: (e: any) => void;
38
+ };
39
+ export declare const handleCompletedDate: (time: any, date: any, show: any, INTERNAL_V2_NO_MUTATION: any) => any;
40
+ export declare const isTimeCompletelySet: (date: any, show: any, range: any) => boolean;
@@ -0,0 +1,18 @@
1
+ export declare const defaultProps: {
2
+ className: string;
3
+ style: {};
4
+ onFocus: () => null;
5
+ onBlur: () => null;
6
+ onClear: () => null;
7
+ onChange: () => null;
8
+ onKeyDown: () => null;
9
+ onError: () => null;
10
+ format: string;
11
+ value: string;
12
+ clearable: boolean;
13
+ disabled: boolean;
14
+ yearMaxRange: number;
15
+ yearMinRange: number;
16
+ containerProps: {};
17
+ INTERNAL_V2_NO_MUTATION: boolean;
18
+ };
@@ -0,0 +1 @@
1
+ export * from './DSDateInput.js';
@@ -0,0 +1,60 @@
1
+ export declare const props: {
2
+ /** props injected to date input wrapper node */
3
+ containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
4
+ /** inner ref for input wrapper */
5
+ innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
6
+ /** class for input */
7
+ className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
8
+ /**
9
+ * Set style for the date input
10
+ */
11
+ style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
12
+ /**
13
+ * Triggers the onBlur when focus moves out of date input
14
+ */
15
+ onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
16
+ /**
17
+ * Triggers the onFocus when the component gets the focus
18
+ */
19
+ onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
20
+ /**
21
+ * Triggers the onClear
22
+ */
23
+ onClear: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
24
+ /**
25
+ * Triggers the onKeyDown
26
+ */
27
+ onKeyDown: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
28
+ /**
29
+ * Allows a function that is triggered once the date input changes
30
+ */
31
+ onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
32
+ /**
33
+ * Triggers the onError once one input date is wrong
34
+ */
35
+ onError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
36
+ /**
37
+ * Format type for date input
38
+ */
39
+ format: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
40
+ /**
41
+ * Default value once the component is initialized
42
+ */
43
+ value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
44
+ /**
45
+ * Whether the date input is clearable or not
46
+ */
47
+ clearable: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
48
+ /**
49
+ * Whether the date input is disabled or not
50
+ */
51
+ disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
52
+ /**
53
+ * Max year that can be accepted by the date input
54
+ */
55
+ yearMaxRange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
56
+ /**
57
+ * Min year that can be accepted by the date input
58
+ */
59
+ yearMinRange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
60
+ };
@@ -0,0 +1,55 @@
1
+ /// <reference types="react" />
2
+ declare const DSDateInputV2: {
3
+ ({ onFocus, onBlur, onChange, onDateChange, onKeyDown, onError, value, disabled, containerProps, tabIndex, innerRef, }: {
4
+ onFocus: any;
5
+ onBlur: any;
6
+ onChange: any;
7
+ onDateChange: any;
8
+ onKeyDown: any;
9
+ onError: any;
10
+ value: any;
11
+ disabled: any;
12
+ containerProps: any;
13
+ tabIndex: any;
14
+ innerRef: any;
15
+ }): JSX.Element;
16
+ defaultProps: {
17
+ onFocus: (...args: any[]) => void;
18
+ onBlur: (...args: any[]) => void;
19
+ onChange: (...args: any[]) => void;
20
+ onDateChange: (...args: any[]) => void;
21
+ onKeyDown: (...args: any[]) => void;
22
+ onError: (...args: any[]) => void;
23
+ value: string;
24
+ disabled: boolean;
25
+ containerProps: {};
26
+ };
27
+ propTypes: {
28
+ containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
29
+ onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
30
+ onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
31
+ onKeyDown: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
32
+ onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
33
+ onDateChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
34
+ onError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
35
+ value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
36
+ disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
37
+ tabIndex: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
38
+ };
39
+ displayName: string;
40
+ };
41
+ declare const DSDateInputV2WithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
42
+ onFocus: any;
43
+ onBlur: any;
44
+ onChange: any;
45
+ onDateChange: any;
46
+ onKeyDown: any;
47
+ onError: any;
48
+ value: any;
49
+ disabled: any;
50
+ containerProps: any;
51
+ tabIndex: any;
52
+ innerRef: any;
53
+ }>;
54
+ export { DSDateInputV2, DSDateInputV2WithSchema };
55
+ export default DSDateInputV2;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ export declare const DateInputs: {
3
+ ({ onBlur, onChange, onDateChange, disabled, onCustomKeyDown, time, tabIndex, innerRef }: {
4
+ onBlur: any;
5
+ onChange: any;
6
+ onDateChange: any;
7
+ disabled: any;
8
+ onCustomKeyDown: any;
9
+ time: any;
10
+ tabIndex: any;
11
+ innerRef: any;
12
+ }): JSX.Element;
13
+ propTypes: {
14
+ innerRef: import("prop-types").Requireable<NonNullable<((...args: any[]) => any) | import("prop-types").InferProps<{
15
+ current: import("prop-types").Requireable<any>;
16
+ }> | null | undefined>>;
17
+ onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
18
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
19
+ onDateChange: import("prop-types").Requireable<(...args: any[]) => any>;
20
+ onCustomKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
21
+ onError: import("prop-types").Requireable<(...args: any[]) => any>;
22
+ format: import("prop-types").Requireable<string>;
23
+ showMonth: import("prop-types").Requireable<boolean>;
24
+ showDay: import("prop-types").Requireable<boolean>;
25
+ showYear: import("prop-types").Requireable<boolean>;
26
+ step: import("prop-types").Requireable<number>;
27
+ yearMaxRange: import("prop-types").Requireable<number>;
28
+ disabled: import("prop-types").Requireable<boolean>;
29
+ yearMinRange: import("prop-types").Requireable<number>;
30
+ time: import("prop-types").Requireable<string>;
31
+ tabIndex: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
32
+ };
33
+ };
@@ -0,0 +1 @@
1
+ export declare const onKeyDownHelper: (event: any, handlers: any) => void;
@@ -0,0 +1,53 @@
1
+ export declare const props: {
2
+ /** Props to inject to date input wrapper */
3
+ containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
4
+ /**
5
+ * Triggers the onBlur when focus moves out of date input
6
+ */
7
+ onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
8
+ /**
9
+ * Triggers the onFocus when the component gets the focus
10
+ */
11
+ onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
12
+ /**
13
+ * Triggers the onKeyDown
14
+ */
15
+ onKeyDown: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
16
+ /**
17
+ * Allows a function that is triggered once the date input changes
18
+ */
19
+ onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
20
+ /**
21
+ * Triggers when the date is completely set and only once you have blurred the
22
+ * corresponding input. For example if you are editing the day and the year and month
23
+ * are already set, once you completely set the day it will trigger.
24
+ */
25
+ onDateChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
26
+ /**
27
+ * Triggers the onError once one input date is wrong
28
+ */
29
+ onError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
30
+ /**
31
+ * Default value once the component is initialized MMDDYYYY
32
+ */
33
+ value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
34
+ /**
35
+ * Whether the date input is disabled or not
36
+ */
37
+ disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
38
+ /**
39
+ * tab index
40
+ */
41
+ tabIndex: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
42
+ };
43
+ export declare const defaultProps: {
44
+ onFocus: (...args: any[]) => void;
45
+ onBlur: (...args: any[]) => void;
46
+ onChange: (...args: any[]) => void;
47
+ onDateChange: (...args: any[]) => void;
48
+ onKeyDown: (...args: any[]) => void;
49
+ onError: (...args: any[]) => void;
50
+ value: string;
51
+ disabled: boolean;
52
+ containerProps: {};
53
+ };