@commercetools-uikit/date-input 15.2.4 → 15.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -149,9 +149,13 @@ var DateInput = function DateInput(props) {
|
|
|
149
149
|
setSuggestedItems([]);
|
|
150
150
|
setHighlightedIndex(null);
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Asides the inputValue, we also have other ways to enter calendar inputs like the mouse move event to enter calender values.
|
|
154
|
+
* We check the downshift changes property to be sure it has highlightedIndex That is not null before updating it,
|
|
155
|
+
* otherwise it may override the initially set highlightedIndex from the inputValue and set it to null.
|
|
156
|
+
*/
|
|
153
157
|
|
|
154
|
-
if (changes.hasOwnProperty('highlightedIndex')) {
|
|
158
|
+
} else if (changes.hasOwnProperty('highlightedIndex')) {
|
|
155
159
|
setHighlightedIndex(changes.highlightedIndex);
|
|
156
160
|
}
|
|
157
161
|
},
|
|
@@ -339,7 +343,7 @@ DateInput.isEmpty = function (value) {
|
|
|
339
343
|
var DateInput$1 = DateInput;
|
|
340
344
|
|
|
341
345
|
// NOTE: This string will be replaced on build time with the package version.
|
|
342
|
-
var version = "15.
|
|
346
|
+
var version = "15.4.0";
|
|
343
347
|
|
|
344
348
|
exports["default"] = DateInput$1;
|
|
345
349
|
exports.version = version;
|
|
@@ -146,9 +146,13 @@ var DateInput = function DateInput(props) {
|
|
|
146
146
|
setSuggestedItems([]);
|
|
147
147
|
setHighlightedIndex(null);
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Asides the inputValue, we also have other ways to enter calendar inputs like the mouse move event to enter calender values.
|
|
151
|
+
* We check the downshift changes property to be sure it has highlightedIndex That is not null before updating it,
|
|
152
|
+
* otherwise it may override the initially set highlightedIndex from the inputValue and set it to null.
|
|
153
|
+
*/
|
|
150
154
|
|
|
151
|
-
if (changes.hasOwnProperty('highlightedIndex')) {
|
|
155
|
+
} else if (changes.hasOwnProperty('highlightedIndex')) {
|
|
152
156
|
setHighlightedIndex(changes.highlightedIndex);
|
|
153
157
|
}
|
|
154
158
|
},
|
|
@@ -319,7 +323,7 @@ DateInput.isEmpty = function (value) {
|
|
|
319
323
|
var DateInput$1 = DateInput;
|
|
320
324
|
|
|
321
325
|
// NOTE: This string will be replaced on build time with the package version.
|
|
322
|
-
var version = "15.
|
|
326
|
+
var version = "15.4.0";
|
|
323
327
|
|
|
324
328
|
exports["default"] = DateInput$1;
|
|
325
329
|
exports.version = version;
|
|
@@ -128,9 +128,13 @@ var DateInput = function DateInput(props) {
|
|
|
128
128
|
setSuggestedItems([]);
|
|
129
129
|
setHighlightedIndex(null);
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
/**
|
|
132
|
+
* Asides the inputValue, we also have other ways to enter calendar inputs like the mouse move event to enter calender values.
|
|
133
|
+
* We check the downshift changes property to be sure it has highlightedIndex That is not null before updating it,
|
|
134
|
+
* otherwise it may override the initially set highlightedIndex from the inputValue and set it to null.
|
|
135
|
+
*/
|
|
132
136
|
|
|
133
|
-
if (changes.hasOwnProperty('highlightedIndex')) {
|
|
137
|
+
} else if (changes.hasOwnProperty('highlightedIndex')) {
|
|
134
138
|
setHighlightedIndex(changes.highlightedIndex);
|
|
135
139
|
}
|
|
136
140
|
},
|
|
@@ -318,6 +322,6 @@ DateInput.isEmpty = function (value) {
|
|
|
318
322
|
var DateInput$1 = DateInput;
|
|
319
323
|
|
|
320
324
|
// NOTE: This string will be replaced on build time with the package version.
|
|
321
|
-
var version = "15.
|
|
325
|
+
var version = "15.4.0";
|
|
322
326
|
|
|
323
327
|
export { DateInput$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/date-input",
|
|
3
3
|
"description": "The `DateInput` component allows the user to select a date. It formats the selected date depending on the users' locale.",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.4.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.19.0",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.19.1",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "15.
|
|
25
|
-
"@commercetools-uikit/calendar-time-utils": "15.
|
|
26
|
-
"@commercetools-uikit/calendar-utils": "15.
|
|
27
|
-
"@commercetools-uikit/constraints": "15.
|
|
28
|
-
"@commercetools-uikit/design-system": "15.
|
|
29
|
-
"@commercetools-uikit/hooks": "15.
|
|
30
|
-
"@commercetools-uikit/icons": "15.
|
|
31
|
-
"@commercetools-uikit/secondary-icon-button": "15.
|
|
32
|
-
"@commercetools-uikit/select-utils": "15.
|
|
33
|
-
"@commercetools-uikit/spacings-inline": "15.
|
|
34
|
-
"@commercetools-uikit/text": "15.
|
|
35
|
-
"@commercetools-uikit/tooltip": "15.
|
|
36
|
-
"@commercetools-uikit/utils": "15.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "15.4.0",
|
|
25
|
+
"@commercetools-uikit/calendar-time-utils": "15.4.0",
|
|
26
|
+
"@commercetools-uikit/calendar-utils": "15.4.0",
|
|
27
|
+
"@commercetools-uikit/constraints": "15.4.0",
|
|
28
|
+
"@commercetools-uikit/design-system": "15.4.0",
|
|
29
|
+
"@commercetools-uikit/hooks": "15.4.0",
|
|
30
|
+
"@commercetools-uikit/icons": "15.4.0",
|
|
31
|
+
"@commercetools-uikit/secondary-icon-button": "15.4.0",
|
|
32
|
+
"@commercetools-uikit/select-utils": "15.4.0",
|
|
33
|
+
"@commercetools-uikit/spacings-inline": "15.4.0",
|
|
34
|
+
"@commercetools-uikit/text": "15.4.0",
|
|
35
|
+
"@commercetools-uikit/tooltip": "15.4.0",
|
|
36
|
+
"@commercetools-uikit/utils": "15.4.0",
|
|
37
37
|
"@emotion/react": "^11.4.0",
|
|
38
38
|
"@emotion/styled": "^11.3.0",
|
|
39
|
-
"downshift": "6.1.
|
|
39
|
+
"downshift": "6.1.12",
|
|
40
40
|
"prop-types": "15.8.1",
|
|
41
41
|
"react-is": "17.0.2",
|
|
42
42
|
"warning": "4.0.3"
|