@atlaskit/calendar 13.3.2 → 13.3.3
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 +6 -0
- package/dist/cjs/calendar.js +1 -1
- package/dist/cjs/internal/components/date.js +24 -24
- package/dist/cjs/internal/hooks/use-handle-date-change.js +1 -1
- package/dist/es2019/calendar.js +1 -1
- package/dist/es2019/internal/components/date.js +1 -1
- package/dist/es2019/internal/hooks/use-handle-date-change.js +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/internal/components/date.js +24 -24
- package/dist/esm/internal/hooks/use-handle-date-change.js +1 -1
- package/dist/types/internal/hooks/use-handle-date-change.d.ts +1 -1
- package/dist/types-ts4.5/internal/hooks/use-handle-date-change.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 13.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42445](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42445) [`5645b5a1132`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5645b5a1132) - Fix TS errors for forge-ui in AFM
|
|
8
|
+
|
|
3
9
|
## 13.3.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/calendar.js
CHANGED
|
@@ -35,7 +35,7 @@ var boxStyles = (0, _primitives.xcss)({
|
|
|
35
35
|
var analyticsAttributes = {
|
|
36
36
|
componentName: 'calendar',
|
|
37
37
|
packageName: "@atlaskit/calendar",
|
|
38
|
-
packageVersion: "13.3.
|
|
38
|
+
packageVersion: "13.3.3"
|
|
39
39
|
};
|
|
40
40
|
var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
41
41
|
var day = _ref.day,
|
|
@@ -12,30 +12,30 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
12
12
|
var _date = require("../styles/date");
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
|
|
15
|
-
var Date = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function Date(
|
|
16
|
-
var day =
|
|
17
|
-
|
|
18
|
-
isDisabled =
|
|
19
|
-
|
|
20
|
-
isFocused =
|
|
21
|
-
|
|
22
|
-
isToday =
|
|
23
|
-
dayLong =
|
|
24
|
-
month =
|
|
25
|
-
monthLong =
|
|
26
|
-
|
|
27
|
-
onClick =
|
|
28
|
-
|
|
29
|
-
isPreviouslySelected =
|
|
30
|
-
|
|
31
|
-
isSelected =
|
|
32
|
-
|
|
33
|
-
isSibling =
|
|
34
|
-
year =
|
|
35
|
-
mode =
|
|
36
|
-
shouldSetFocus =
|
|
37
|
-
tabIndex =
|
|
38
|
-
testId =
|
|
15
|
+
var Date = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function Date(_ref2, _ref) {
|
|
16
|
+
var day = _ref2.children,
|
|
17
|
+
_ref2$isDisabled = _ref2.isDisabled,
|
|
18
|
+
isDisabled = _ref2$isDisabled === void 0 ? false : _ref2$isDisabled,
|
|
19
|
+
_ref2$isFocused = _ref2.isFocused,
|
|
20
|
+
isFocused = _ref2$isFocused === void 0 ? false : _ref2$isFocused,
|
|
21
|
+
_ref2$isToday = _ref2.isToday,
|
|
22
|
+
isToday = _ref2$isToday === void 0 ? false : _ref2$isToday,
|
|
23
|
+
dayLong = _ref2.dayLong,
|
|
24
|
+
month = _ref2.month,
|
|
25
|
+
monthLong = _ref2.monthLong,
|
|
26
|
+
_ref2$onClick = _ref2.onClick,
|
|
27
|
+
onClick = _ref2$onClick === void 0 ? _noop.default : _ref2$onClick,
|
|
28
|
+
_ref2$isPreviouslySel = _ref2.isPreviouslySelected,
|
|
29
|
+
isPreviouslySelected = _ref2$isPreviouslySel === void 0 ? false : _ref2$isPreviouslySel,
|
|
30
|
+
_ref2$isSelected = _ref2.isSelected,
|
|
31
|
+
isSelected = _ref2$isSelected === void 0 ? false : _ref2$isSelected,
|
|
32
|
+
_ref2$isSibling = _ref2.isSibling,
|
|
33
|
+
isSibling = _ref2$isSibling === void 0 ? false : _ref2$isSibling,
|
|
34
|
+
year = _ref2.year,
|
|
35
|
+
mode = _ref2.mode,
|
|
36
|
+
shouldSetFocus = _ref2.shouldSetFocus,
|
|
37
|
+
tabIndex = _ref2.tabIndex,
|
|
38
|
+
testId = _ref2.testId;
|
|
39
39
|
var dateRef = (0, _react.useRef)({
|
|
40
40
|
day: day,
|
|
41
41
|
month: month,
|
|
@@ -54,7 +54,7 @@ function useHandleDateChange(_ref) {
|
|
|
54
54
|
yearValue = _ref$year[0],
|
|
55
55
|
setYearValue = _ref$year[1],
|
|
56
56
|
_ref$shouldSetFocus = (0, _slicedToArray2.default)(_ref.shouldSetFocus, 2),
|
|
57
|
-
|
|
57
|
+
_shouldSetFocus = _ref$shouldSetFocus[0],
|
|
58
58
|
setShouldSetFocus = _ref$shouldSetFocus[1],
|
|
59
59
|
onChange = _ref.onChange;
|
|
60
60
|
var dateRef = (0, _react.useRef)({
|
package/dist/es2019/calendar.js
CHANGED
|
@@ -25,7 +25,7 @@ const boxStyles = xcss({
|
|
|
25
25
|
const analyticsAttributes = {
|
|
26
26
|
componentName: 'calendar',
|
|
27
27
|
packageName: "@atlaskit/calendar",
|
|
28
|
-
packageVersion: "13.3.
|
|
28
|
+
packageVersion: "13.3.3"
|
|
29
29
|
};
|
|
30
30
|
const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
|
|
31
31
|
day,
|
|
@@ -36,7 +36,7 @@ export default function useHandleDateChange({
|
|
|
36
36
|
day: [dayValue, setDayValue],
|
|
37
37
|
month: [monthValue, setMonthValue],
|
|
38
38
|
year: [yearValue, setYearValue],
|
|
39
|
-
shouldSetFocus: [
|
|
39
|
+
shouldSetFocus: [_shouldSetFocus, setShouldSetFocus],
|
|
40
40
|
onChange
|
|
41
41
|
}) {
|
|
42
42
|
const dateRef = useRef({
|
package/dist/esm/calendar.js
CHANGED
|
@@ -29,7 +29,7 @@ var boxStyles = xcss({
|
|
|
29
29
|
var analyticsAttributes = {
|
|
30
30
|
componentName: 'calendar',
|
|
31
31
|
packageName: "@atlaskit/calendar",
|
|
32
|
-
packageVersion: "13.3.
|
|
32
|
+
packageVersion: "13.3.3"
|
|
33
33
|
};
|
|
34
34
|
var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
35
35
|
var day = _ref.day,
|
|
@@ -4,30 +4,30 @@ import { css, jsx } from '@emotion/react';
|
|
|
4
4
|
import noop from '@atlaskit/ds-lib/noop';
|
|
5
5
|
import { Grid } from '@atlaskit/primitives';
|
|
6
6
|
import { dateCellStyles as getDateCellStyles } from '../styles/date';
|
|
7
|
-
var Date = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Date(
|
|
8
|
-
var day =
|
|
9
|
-
|
|
10
|
-
isDisabled =
|
|
11
|
-
|
|
12
|
-
isFocused =
|
|
13
|
-
|
|
14
|
-
isToday =
|
|
15
|
-
dayLong =
|
|
16
|
-
month =
|
|
17
|
-
monthLong =
|
|
18
|
-
|
|
19
|
-
onClick =
|
|
20
|
-
|
|
21
|
-
isPreviouslySelected =
|
|
22
|
-
|
|
23
|
-
isSelected =
|
|
24
|
-
|
|
25
|
-
isSibling =
|
|
26
|
-
year =
|
|
27
|
-
mode =
|
|
28
|
-
shouldSetFocus =
|
|
29
|
-
tabIndex =
|
|
30
|
-
testId =
|
|
7
|
+
var Date = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Date(_ref2, _ref) {
|
|
8
|
+
var day = _ref2.children,
|
|
9
|
+
_ref2$isDisabled = _ref2.isDisabled,
|
|
10
|
+
isDisabled = _ref2$isDisabled === void 0 ? false : _ref2$isDisabled,
|
|
11
|
+
_ref2$isFocused = _ref2.isFocused,
|
|
12
|
+
isFocused = _ref2$isFocused === void 0 ? false : _ref2$isFocused,
|
|
13
|
+
_ref2$isToday = _ref2.isToday,
|
|
14
|
+
isToday = _ref2$isToday === void 0 ? false : _ref2$isToday,
|
|
15
|
+
dayLong = _ref2.dayLong,
|
|
16
|
+
month = _ref2.month,
|
|
17
|
+
monthLong = _ref2.monthLong,
|
|
18
|
+
_ref2$onClick = _ref2.onClick,
|
|
19
|
+
onClick = _ref2$onClick === void 0 ? noop : _ref2$onClick,
|
|
20
|
+
_ref2$isPreviouslySel = _ref2.isPreviouslySelected,
|
|
21
|
+
isPreviouslySelected = _ref2$isPreviouslySel === void 0 ? false : _ref2$isPreviouslySel,
|
|
22
|
+
_ref2$isSelected = _ref2.isSelected,
|
|
23
|
+
isSelected = _ref2$isSelected === void 0 ? false : _ref2$isSelected,
|
|
24
|
+
_ref2$isSibling = _ref2.isSibling,
|
|
25
|
+
isSibling = _ref2$isSibling === void 0 ? false : _ref2$isSibling,
|
|
26
|
+
year = _ref2.year,
|
|
27
|
+
mode = _ref2.mode,
|
|
28
|
+
shouldSetFocus = _ref2.shouldSetFocus,
|
|
29
|
+
tabIndex = _ref2.tabIndex,
|
|
30
|
+
testId = _ref2.testId;
|
|
31
31
|
var dateRef = useRef({
|
|
32
32
|
day: day,
|
|
33
33
|
month: month,
|
|
@@ -47,7 +47,7 @@ export default function useHandleDateChange(_ref) {
|
|
|
47
47
|
yearValue = _ref$year[0],
|
|
48
48
|
setYearValue = _ref$year[1],
|
|
49
49
|
_ref$shouldSetFocus = _slicedToArray(_ref.shouldSetFocus, 2),
|
|
50
|
-
|
|
50
|
+
_shouldSetFocus = _ref$shouldSetFocus[0],
|
|
51
51
|
setShouldSetFocus = _ref$shouldSetFocus[1],
|
|
52
52
|
onChange = _ref.onChange;
|
|
53
53
|
var dateRef = useRef({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChangeEvent } from '../../types';
|
|
2
2
|
import type { ArrowKeys } from '../types';
|
|
3
|
-
export default function useHandleDateChange({ day: [dayValue, setDayValue], month: [monthValue, setMonthValue], year: [yearValue, setYearValue], shouldSetFocus: [
|
|
3
|
+
export default function useHandleDateChange({ day: [dayValue, setDayValue], month: [monthValue, setMonthValue], year: [yearValue, setYearValue], shouldSetFocus: [_shouldSetFocus, setShouldSetFocus], onChange, }: {
|
|
4
4
|
day: readonly [number, (newValue: number) => void];
|
|
5
5
|
month: readonly [number, (newValue: number) => void];
|
|
6
6
|
year: readonly [number, (newValue: number) => void];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChangeEvent } from '../../types';
|
|
2
2
|
import type { ArrowKeys } from '../types';
|
|
3
|
-
export default function useHandleDateChange({ day: [dayValue, setDayValue], month: [monthValue, setMonthValue], year: [yearValue, setYearValue], shouldSetFocus: [
|
|
3
|
+
export default function useHandleDateChange({ day: [dayValue, setDayValue], month: [monthValue, setMonthValue], year: [yearValue, setYearValue], shouldSetFocus: [_shouldSetFocus, setShouldSetFocus], onChange, }: {
|
|
4
4
|
day: readonly [
|
|
5
5
|
number,
|
|
6
6
|
(newValue: number) => void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.3",
|
|
4
4
|
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
27
|
-
"@atlaskit/button": "^16.
|
|
27
|
+
"@atlaskit/button": "^16.13.0",
|
|
28
28
|
"@atlaskit/ds-explorations": "^3.0.0",
|
|
29
29
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
30
30
|
"@atlaskit/heading": "^1.4.0",
|
|
31
31
|
"@atlaskit/icon": "^21.12.0",
|
|
32
|
-
"@atlaskit/locale": "^2.
|
|
33
|
-
"@atlaskit/primitives": "^1.
|
|
32
|
+
"@atlaskit/locale": "^2.6.0",
|
|
33
|
+
"@atlaskit/primitives": "^1.9.0",
|
|
34
34
|
"@atlaskit/theme": "^12.6.0",
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
35
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"@emotion/react": "^11.7.1",
|
|
38
38
|
"date-fns": "^2.17.0",
|