@atlaskit/datetime-picker 14.0.4 → 14.0.5
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/CHANGELOG.md +8 -0
- package/dist/cjs/components/date-picker.js +1 -1
- package/dist/cjs/components/date-time-picker.js +1 -1
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/internal/date-picker-migration.js +2 -2
- package/dist/es2019/components/date-picker.js +1 -1
- package/dist/es2019/components/date-time-picker.js +1 -1
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/internal/date-picker-migration.js +2 -2
- package/dist/esm/components/date-picker.js +1 -1
- package/dist/esm/components/date-time-picker.js +1 -1
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/internal/date-picker-migration.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 14.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#138676](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138676)
|
|
8
|
+
[`9f9a53335523d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f9a53335523d) -
|
|
9
|
+
Use parsed year instead of ISO year in internal `getParsedISO` function.
|
|
10
|
+
|
|
3
11
|
## 14.0.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -36,7 +36,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
36
36
|
* @jsx jsx
|
|
37
37
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
38
38
|
var packageName = "@atlaskit/datetime-picker";
|
|
39
|
-
var packageVersion = "14.0.
|
|
39
|
+
var packageVersion = "14.0.5";
|
|
40
40
|
var datePickerDefaultProps = {
|
|
41
41
|
appearance: 'default',
|
|
42
42
|
autoFocus: false,
|
|
@@ -35,7 +35,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
35
35
|
* @jsx jsx
|
|
36
36
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
37
37
|
var packageName = "@atlaskit/datetime-picker";
|
|
38
|
-
var packageVersion = "14.0.
|
|
38
|
+
var packageVersion = "14.0.5";
|
|
39
39
|
// Make DatePicker 50% the width of DateTimePicker
|
|
40
40
|
// If rendering an icon container, shrink the TimePicker
|
|
41
41
|
var datePickerContainerStyles = (0, _react2.css)({
|
|
@@ -29,7 +29,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
29
29
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line no-restricted-imports
|
|
30
30
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "14.0.
|
|
32
|
+
var packageVersion = "14.0.5";
|
|
33
33
|
var menuStyles = {
|
|
34
34
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
35
35
|
position: 'static',
|
|
@@ -45,9 +45,9 @@ var getParsedISO = exports.getParsedISO = function getParsedISO(di) {
|
|
|
45
45
|
var lastDayInMonth = (0, _dateFns.lastDayOfMonth)(new Date(parsedYear, parsedMonth - 1) // This needs to be -1, because the Date constructor expects an index of the given month
|
|
46
46
|
).getDate();
|
|
47
47
|
if (lastDayInMonth < parsedDate) {
|
|
48
|
-
newIso = "".concat(
|
|
48
|
+
newIso = "".concat(parsedYear, "-").concat((0, _index.padToTwo)(parsedMonth), "-").concat((0, _index.padToTwo)(lastDayInMonth));
|
|
49
49
|
} else {
|
|
50
|
-
newIso = "".concat(
|
|
50
|
+
newIso = "".concat(parsedYear, "-").concat((0, _index.padToTwo)(parsedMonth), "-").concat((0, _index.padToTwo)(parsedDate));
|
|
51
51
|
}
|
|
52
52
|
return newIso;
|
|
53
53
|
};
|
|
@@ -19,7 +19,7 @@ import { Menu } from '../internal/menu';
|
|
|
19
19
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
20
20
|
import { makeSingleValue } from '../internal/single-value';
|
|
21
21
|
const packageName = "@atlaskit/datetime-picker";
|
|
22
|
-
const packageVersion = "14.0.
|
|
22
|
+
const packageVersion = "14.0.5";
|
|
23
23
|
const datePickerDefaultProps = {
|
|
24
24
|
appearance: 'default',
|
|
25
25
|
autoFocus: false,
|
|
@@ -18,7 +18,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
18
18
|
import DatePicker from './date-picker';
|
|
19
19
|
import TimePicker from './time-picker';
|
|
20
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
21
|
-
const packageVersion = "14.0.
|
|
21
|
+
const packageVersion = "14.0.5";
|
|
22
22
|
// Make DatePicker 50% the width of DateTimePicker
|
|
23
23
|
// If rendering an icon container, shrink the TimePicker
|
|
24
24
|
const datePickerContainerStyles = css({
|
|
@@ -15,7 +15,7 @@ import parseTime from '../internal/parse-time';
|
|
|
15
15
|
import { convertTokens } from '../internal/parse-tokens';
|
|
16
16
|
import { makeSingleValue } from '../internal/single-value';
|
|
17
17
|
const packageName = "@atlaskit/datetime-picker";
|
|
18
|
-
const packageVersion = "14.0.
|
|
18
|
+
const packageVersion = "14.0.5";
|
|
19
19
|
const menuStyles = {
|
|
20
20
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
21
21
|
position: 'static',
|
|
@@ -37,9 +37,9 @@ export const getParsedISO = di => {
|
|
|
37
37
|
const lastDayInMonth = lastDayOfMonth(new Date(parsedYear, parsedMonth - 1) // This needs to be -1, because the Date constructor expects an index of the given month
|
|
38
38
|
).getDate();
|
|
39
39
|
if (lastDayInMonth < parsedDate) {
|
|
40
|
-
newIso = `${
|
|
40
|
+
newIso = `${parsedYear}-${padToTwo(parsedMonth)}-${padToTwo(lastDayInMonth)}`;
|
|
41
41
|
} else {
|
|
42
|
-
newIso = `${
|
|
42
|
+
newIso = `${parsedYear}-${padToTwo(parsedMonth)}-${padToTwo(parsedDate)}`;
|
|
43
43
|
}
|
|
44
44
|
return newIso;
|
|
45
45
|
};
|
|
@@ -29,7 +29,7 @@ import { Menu } from '../internal/menu';
|
|
|
29
29
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
30
30
|
import { makeSingleValue } from '../internal/single-value';
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "14.0.
|
|
32
|
+
var packageVersion = "14.0.5";
|
|
33
33
|
var datePickerDefaultProps = {
|
|
34
34
|
appearance: 'default',
|
|
35
35
|
autoFocus: false,
|
|
@@ -31,7 +31,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
31
31
|
import DatePicker from './date-picker';
|
|
32
32
|
import TimePicker from './time-picker';
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "14.0.
|
|
34
|
+
var packageVersion = "14.0.5";
|
|
35
35
|
// Make DatePicker 50% the width of DateTimePicker
|
|
36
36
|
// If rendering an icon container, shrink the TimePicker
|
|
37
37
|
var datePickerContainerStyles = css({
|
|
@@ -21,7 +21,7 @@ import parseTime from '../internal/parse-time';
|
|
|
21
21
|
import { convertTokens } from '../internal/parse-tokens';
|
|
22
22
|
import { makeSingleValue } from '../internal/single-value';
|
|
23
23
|
var packageName = "@atlaskit/datetime-picker";
|
|
24
|
-
var packageVersion = "14.0.
|
|
24
|
+
var packageVersion = "14.0.5";
|
|
25
25
|
var menuStyles = {
|
|
26
26
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
27
27
|
position: 'static',
|
|
@@ -38,9 +38,9 @@ export var getParsedISO = function getParsedISO(di) {
|
|
|
38
38
|
var lastDayInMonth = lastDayOfMonth(new Date(parsedYear, parsedMonth - 1) // This needs to be -1, because the Date constructor expects an index of the given month
|
|
39
39
|
).getDate();
|
|
40
40
|
if (lastDayInMonth < parsedDate) {
|
|
41
|
-
newIso = "".concat(
|
|
41
|
+
newIso = "".concat(parsedYear, "-").concat(padToTwo(parsedMonth), "-").concat(padToTwo(lastDayInMonth));
|
|
42
42
|
} else {
|
|
43
|
-
newIso = "".concat(
|
|
43
|
+
newIso = "".concat(parsedYear, "-").concat(padToTwo(parsedMonth), "-").concat(padToTwo(parsedDate));
|
|
44
44
|
}
|
|
45
45
|
return newIso;
|
|
46
46
|
};
|
package/package.json
CHANGED