@elliemae/ds-time-picker 2.0.0-rc.4 → 2.0.0-rc.8
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/package.json +7 -7
- package/types/DSTimePicker.d.ts +134 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-time-picker",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Time Picker",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"build": "node ../../scripts/build/build.js"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@elliemae/ds-button": "2.0.0-rc.
|
|
68
|
-
"@elliemae/ds-classnames": "2.0.0-rc.
|
|
69
|
-
"@elliemae/ds-form": "2.0.0-rc.
|
|
70
|
-
"@elliemae/ds-icons": "2.0.0-rc.
|
|
71
|
-
"@elliemae/ds-popper": "2.0.0-rc.
|
|
72
|
-
"@elliemae/ds-utilities": "2.0.0-rc.
|
|
67
|
+
"@elliemae/ds-button": "2.0.0-rc.8",
|
|
68
|
+
"@elliemae/ds-classnames": "2.0.0-rc.8",
|
|
69
|
+
"@elliemae/ds-form": "2.0.0-rc.8",
|
|
70
|
+
"@elliemae/ds-icons": "2.0.0-rc.8",
|
|
71
|
+
"@elliemae/ds-popper": "2.0.0-rc.8",
|
|
72
|
+
"@elliemae/ds-utilities": "2.0.0-rc.8",
|
|
73
73
|
"memoize-one": "~5.1.1",
|
|
74
74
|
"moment": "~2.29.1",
|
|
75
75
|
"prop-types": "~15.7.2",
|
package/types/DSTimePicker.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const DSTimePicker: {
|
|
3
4
|
({ containerProps, innerRef, className, disabled, value, format, style, onChange, onOpen, isOpen, clearable, hasHeader, hasHeaderDisplay, "aria-label": ariaLabel, zIndex, placement, disabledTimes, minutesInterval, }: {
|
|
@@ -25,43 +26,157 @@ declare const DSTimePicker: {
|
|
|
25
26
|
};
|
|
26
27
|
propTypes: {
|
|
27
28
|
/** a11y label */
|
|
28
|
-
'aria-label':
|
|
29
|
+
'aria-label': {
|
|
30
|
+
defaultValue<T = unknown>(arg: T): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
29
35
|
/** inject props to time picker wrapper */
|
|
30
|
-
containerProps:
|
|
36
|
+
containerProps: {
|
|
37
|
+
defaultValue<T = unknown>(arg: T): {
|
|
38
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
39
|
+
};
|
|
40
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
31
42
|
/** Whether the time picker is disabled or not */
|
|
32
|
-
disabled:
|
|
43
|
+
disabled: {
|
|
44
|
+
defaultValue<T = unknown>(arg: T): {
|
|
45
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
47
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
33
49
|
/** Time picker value */
|
|
34
|
-
value:
|
|
50
|
+
value: {
|
|
51
|
+
defaultValue<T = unknown>(arg: T): {
|
|
52
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
53
|
+
};
|
|
54
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
55
|
+
};
|
|
35
56
|
/** Time format (hh:mm:ss, H:m:s) */
|
|
36
|
-
format:
|
|
57
|
+
format: {
|
|
58
|
+
defaultValue<T = unknown>(arg: T): {
|
|
59
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
62
|
+
};
|
|
37
63
|
/** toggle header style */
|
|
38
|
-
hasHeader:
|
|
64
|
+
hasHeader: {
|
|
65
|
+
defaultValue<T = unknown>(arg: T): {
|
|
66
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
69
|
+
};
|
|
39
70
|
/** toggle header display */
|
|
40
|
-
hasHeaderDisplay:
|
|
71
|
+
hasHeaderDisplay: {
|
|
72
|
+
defaultValue<T = unknown>(arg: T): {
|
|
73
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
74
|
+
};
|
|
75
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
76
|
+
};
|
|
41
77
|
/** Handler when time picker value changes */
|
|
42
|
-
onChange:
|
|
78
|
+
onChange: {
|
|
79
|
+
defaultValue<T = unknown>(arg: T): {
|
|
80
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
81
|
+
};
|
|
82
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
83
|
+
};
|
|
43
84
|
/** Handler when the time picker menu opens */
|
|
44
|
-
onOpen:
|
|
85
|
+
onOpen: {
|
|
86
|
+
defaultValue<T = unknown>(arg: T): {
|
|
87
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
88
|
+
};
|
|
89
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
90
|
+
};
|
|
45
91
|
/** Whether the time picker menu is opened or not */
|
|
46
|
-
isOpen:
|
|
92
|
+
isOpen: {
|
|
93
|
+
defaultValue<T = unknown>(arg: T): {
|
|
94
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
95
|
+
};
|
|
96
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
97
|
+
};
|
|
47
98
|
/** ref for time picker input */
|
|
48
|
-
innerRef:
|
|
99
|
+
innerRef: {
|
|
100
|
+
defaultValue<T = unknown>(arg: T): {
|
|
101
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
102
|
+
};
|
|
103
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
104
|
+
};
|
|
49
105
|
/** Enable to clear the time picker value */
|
|
50
|
-
clearable:
|
|
106
|
+
clearable: {
|
|
107
|
+
defaultValue<T = unknown>(arg: T): {
|
|
108
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
109
|
+
};
|
|
110
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
111
|
+
};
|
|
51
112
|
/** class for time picker */
|
|
52
|
-
className:
|
|
113
|
+
className: {
|
|
114
|
+
defaultValue<T = unknown>(arg: T): {
|
|
115
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
116
|
+
};
|
|
117
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
118
|
+
};
|
|
53
119
|
/** style object */
|
|
54
|
-
style:
|
|
120
|
+
style: {
|
|
121
|
+
defaultValue<T = unknown>(arg: T): {
|
|
122
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
123
|
+
};
|
|
124
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
125
|
+
};
|
|
55
126
|
/** z index for menu */
|
|
56
|
-
zIndex:
|
|
127
|
+
zIndex: {
|
|
128
|
+
defaultValue<T = unknown>(arg: T): {
|
|
129
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
130
|
+
};
|
|
131
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
132
|
+
};
|
|
57
133
|
/** DSPopper placement */
|
|
58
|
-
placement:
|
|
134
|
+
placement: {
|
|
135
|
+
defaultValue<T = unknown>(arg: T): {
|
|
136
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
137
|
+
};
|
|
138
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
139
|
+
};
|
|
59
140
|
/** disabled time */
|
|
60
|
-
disabledTimes:
|
|
141
|
+
disabledTimes: {
|
|
142
|
+
defaultValue<T = unknown>(arg: T): {
|
|
143
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
144
|
+
};
|
|
145
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
146
|
+
};
|
|
61
147
|
/** steps for the picker */
|
|
62
|
-
minutesInterval:
|
|
148
|
+
minutesInterval: {
|
|
149
|
+
defaultValue<T = unknown>(arg: T): {
|
|
150
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
151
|
+
};
|
|
152
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
153
|
+
};
|
|
63
154
|
};
|
|
64
155
|
};
|
|
65
|
-
declare const DSTimePickerWithSchema:
|
|
156
|
+
declare const DSTimePickerWithSchema: {
|
|
157
|
+
(props?: {
|
|
158
|
+
containerProps?: {} | undefined;
|
|
159
|
+
innerRef: any;
|
|
160
|
+
className?: string | undefined;
|
|
161
|
+
disabled?: boolean | undefined;
|
|
162
|
+
value?: string | undefined;
|
|
163
|
+
format: any;
|
|
164
|
+
style?: {} | undefined;
|
|
165
|
+
onChange?: (() => null) | undefined;
|
|
166
|
+
onOpen?: (() => null) | undefined;
|
|
167
|
+
isOpen?: undefined;
|
|
168
|
+
clearable?: boolean | undefined;
|
|
169
|
+
hasHeader?: boolean | undefined;
|
|
170
|
+
hasHeaderDisplay?: boolean | undefined;
|
|
171
|
+
"aria-label": any;
|
|
172
|
+
zIndex?: string | undefined;
|
|
173
|
+
placement?: string | undefined;
|
|
174
|
+
disabledTimes: any;
|
|
175
|
+
minutesInterval?: number | undefined;
|
|
176
|
+
} | undefined): JSX.Element;
|
|
177
|
+
propTypes: unknown;
|
|
178
|
+
/** toggle header display */
|
|
179
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
180
|
+
};
|
|
66
181
|
export { DSTimePicker, DSTimePickerWithSchema };
|
|
67
182
|
export default DSTimePicker;
|