@atlaskit/calendar 12.3.2 → 12.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.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/calendar.js +14 -14
- package/dist/cjs/internal/components/date.js +3 -3
- package/dist/cjs/internal/components/heading.js +11 -11
- package/dist/cjs/internal/components/week-days.js +5 -5
- package/dist/cjs/internal/components/week-header.js +5 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/calendar.js +2 -2
- package/dist/es2019/internal/components/date.js +2 -2
- package/dist/es2019/internal/components/heading.js +1 -1
- package/dist/es2019/internal/components/week-days.js +1 -1
- package/dist/es2019/internal/components/week-header.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/calendar.js +2 -2
- package/dist/esm/internal/components/date.js +2 -2
- package/dist/esm/internal/components/heading.js +1 -1
- package/dist/esm/internal/components/week-days.js +1 -1
- package/dist/esm/internal/components/week-header.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/calendar.d.ts +1 -1
- package/dist/types/internal/styles/date.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 12.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`764726e020b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/764726e020b) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 12.3.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/cjs/calendar.js
CHANGED
|
@@ -15,7 +15,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
15
15
|
|
|
16
16
|
var _react = require("react");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
20
|
var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
|
|
21
21
|
|
|
@@ -55,7 +55,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
55
55
|
|
|
56
56
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
57
57
|
|
|
58
|
-
var lightWrapperStyles = (0,
|
|
58
|
+
var lightWrapperStyles = (0, _react2.css)({
|
|
59
59
|
display: 'inline-block',
|
|
60
60
|
boxSizing: 'border-box',
|
|
61
61
|
padding: 16,
|
|
@@ -64,7 +64,7 @@ var lightWrapperStyles = (0, _core.css)({
|
|
|
64
64
|
outline: 'none',
|
|
65
65
|
userSelect: 'none'
|
|
66
66
|
});
|
|
67
|
-
var darkWrapperStyles = (0,
|
|
67
|
+
var darkWrapperStyles = (0, _react2.css)({
|
|
68
68
|
display: 'inline-block',
|
|
69
69
|
boxSizing: 'border-box',
|
|
70
70
|
padding: 16,
|
|
@@ -73,7 +73,7 @@ var darkWrapperStyles = (0, _core.css)({
|
|
|
73
73
|
outline: 'none',
|
|
74
74
|
userSelect: 'none'
|
|
75
75
|
});
|
|
76
|
-
var gridsContainerStyles = (0,
|
|
76
|
+
var gridsContainerStyles = (0, _react2.css)({
|
|
77
77
|
display: 'inline-block',
|
|
78
78
|
width: 289,
|
|
79
79
|
margin: 0,
|
|
@@ -83,7 +83,7 @@ var gridsContainerStyles = (0, _core.css)({
|
|
|
83
83
|
var analyticsAttributes = {
|
|
84
84
|
componentName: 'calendar',
|
|
85
85
|
packageName: "@atlaskit/calendar",
|
|
86
|
-
packageVersion: "12.
|
|
86
|
+
packageVersion: "12.4.0"
|
|
87
87
|
};
|
|
88
88
|
var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
89
89
|
var day = _ref.day,
|
|
@@ -229,7 +229,7 @@ var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_re
|
|
|
229
229
|
monthsLong = _useLocale.monthsLong,
|
|
230
230
|
daysShort = _useLocale.daysShort;
|
|
231
231
|
|
|
232
|
-
return (0,
|
|
232
|
+
return (0, _react2.jsx)("div", {
|
|
233
233
|
className: className,
|
|
234
234
|
style: style,
|
|
235
235
|
onBlur: handleContainerBlur,
|
|
@@ -238,17 +238,17 @@ var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_re
|
|
|
238
238
|
role: "presentation",
|
|
239
239
|
"data-testid": testId && "".concat(testId, "--container"),
|
|
240
240
|
ref: ref
|
|
241
|
-
}, (0,
|
|
241
|
+
}, (0, _react2.jsx)(_visuallyHidden.default, null, (0, _react2.jsx)("span", {
|
|
242
242
|
id: announceId,
|
|
243
243
|
"aria-live": "assertive",
|
|
244
244
|
"aria-relevant": "text"
|
|
245
|
-
}, announcerDate)), (0,
|
|
245
|
+
}, announcerDate)), (0, _react2.jsx)("div", {
|
|
246
246
|
css: !mode || mode === 'light' ? lightWrapperStyles : darkWrapperStyles,
|
|
247
247
|
"aria-describedby": announceId,
|
|
248
248
|
"aria-label": "calendar",
|
|
249
249
|
role: "grid",
|
|
250
250
|
tabIndex: tabIndex
|
|
251
|
-
}, (0,
|
|
251
|
+
}, (0, _react2.jsx)(_heading.default // The month number needs to be translated to index in the month
|
|
252
252
|
// name array e.g. 1 (January) -> 0
|
|
253
253
|
, {
|
|
254
254
|
monthLongTitle: monthsLong[monthValue - 1],
|
|
@@ -259,13 +259,13 @@ var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_re
|
|
|
259
259
|
handleClickPrev: handleClickPrev,
|
|
260
260
|
mode: mode,
|
|
261
261
|
testId: testId
|
|
262
|
-
}), (0,
|
|
262
|
+
}), (0, _react2.jsx)("div", {
|
|
263
263
|
css: gridsContainerStyles,
|
|
264
264
|
role: "presentation"
|
|
265
|
-
}, (0,
|
|
265
|
+
}, (0, _react2.jsx)(_weekHeader.default, {
|
|
266
266
|
daysShort: daysShort,
|
|
267
267
|
mode: mode
|
|
268
|
-
}), (0,
|
|
268
|
+
}), (0, _react2.jsx)(_weekDays.default, {
|
|
269
269
|
weeks: weeks,
|
|
270
270
|
handleClickDay: handleClickDay,
|
|
271
271
|
mode: mode,
|
|
@@ -283,9 +283,9 @@ var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_re
|
|
|
283
283
|
*/
|
|
284
284
|
|
|
285
285
|
var Calendar = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function Calendar(props, ref) {
|
|
286
|
-
return (0,
|
|
286
|
+
return (0, _react2.jsx)(_components.default.Consumer, null, function (_ref2) {
|
|
287
287
|
var mode = _ref2.mode;
|
|
288
|
-
return (0,
|
|
288
|
+
return (0, _react2.jsx)(CalendarWithMode, (0, _extends2.default)({}, props, {
|
|
289
289
|
mode: mode,
|
|
290
290
|
ref: ref
|
|
291
291
|
}));
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
15
15
|
|
|
@@ -66,9 +66,9 @@ var Date = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
66
66
|
}
|
|
67
67
|
}, [onClick]);
|
|
68
68
|
var dateCellStyles = (0, _react.useMemo)(function () {
|
|
69
|
-
return (0, _date.dateCellStyles)(mode);
|
|
69
|
+
return (0, _react2.css)((0, _date.dateCellStyles)(mode));
|
|
70
70
|
}, [mode]);
|
|
71
|
-
return (0,
|
|
71
|
+
return (0, _react2.jsx)("button", {
|
|
72
72
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
73
73
|
css: dateCellStyles,
|
|
74
74
|
"aria-selected": isSelected ? 'true' : 'false',
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
15
15
|
|
|
@@ -24,7 +24,7 @@ var headingColor = {
|
|
|
24
24
|
light: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
25
25
|
dark: "var(--ds-text, ".concat(_colors.DN800, ")")
|
|
26
26
|
};
|
|
27
|
-
var headingStyles = (0,
|
|
27
|
+
var headingStyles = (0, _react2.css)({
|
|
28
28
|
display: 'flex',
|
|
29
29
|
padding: '0 0 13px 0',
|
|
30
30
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
@@ -33,17 +33,17 @@ var headingStyles = (0, _core.css)({
|
|
|
33
33
|
|
|
34
34
|
var getMonthAndYearStyles = function getMonthAndYearStyles() {
|
|
35
35
|
var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light';
|
|
36
|
-
return (0,
|
|
36
|
+
return (0, _react2.css)({
|
|
37
37
|
flexBasis: '100%',
|
|
38
38
|
color: headingColor[mode],
|
|
39
39
|
textAlign: 'center'
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
var arrowLeftStyles = (0,
|
|
43
|
+
var arrowLeftStyles = (0, _react2.css)({
|
|
44
44
|
marginLeft: 8
|
|
45
45
|
});
|
|
46
|
-
var arrowRightStyles = (0,
|
|
46
|
+
var arrowRightStyles = (0, _react2.css)({
|
|
47
47
|
marginRight: 8
|
|
48
48
|
});
|
|
49
49
|
var Heading = /*#__PURE__*/(0, _react.memo)(function Heading(_ref) {
|
|
@@ -60,34 +60,34 @@ var Heading = /*#__PURE__*/(0, _react.memo)(function Heading(_ref) {
|
|
|
60
60
|
var monthAndYearStyles = (0, _react.useMemo)(function () {
|
|
61
61
|
return getMonthAndYearStyles(mode);
|
|
62
62
|
}, [mode]);
|
|
63
|
-
return (0,
|
|
63
|
+
return (0, _react2.jsx)("div", {
|
|
64
64
|
css: headingStyles,
|
|
65
65
|
"aria-hidden": "true"
|
|
66
|
-
}, (0,
|
|
66
|
+
}, (0, _react2.jsx)(_standardButton.default, {
|
|
67
67
|
css: arrowLeftStyles,
|
|
68
68
|
appearance: "subtle",
|
|
69
69
|
spacing: "none",
|
|
70
70
|
tabIndex: -1,
|
|
71
71
|
onClick: handleClickPrev,
|
|
72
72
|
testId: testId && "".concat(testId, "--previous-month"),
|
|
73
|
-
iconBefore: (0,
|
|
73
|
+
iconBefore: (0, _react2.jsx)(_chevronLeftLarge.default, {
|
|
74
74
|
label: previousMonthLabel,
|
|
75
75
|
size: "medium",
|
|
76
76
|
primaryColor: "var(--ds-text-subtlest, ".concat(_colors.N70, ")"),
|
|
77
77
|
testId: testId && "".concat(testId, "--previous-month-icon")
|
|
78
78
|
})
|
|
79
|
-
}), (0,
|
|
79
|
+
}), (0, _react2.jsx)("div", {
|
|
80
80
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
81
81
|
css: monthAndYearStyles,
|
|
82
82
|
"data-testid": testId && "".concat(testId, "--current-month-year")
|
|
83
|
-
}, "".concat(monthLongTitle, " ").concat(year)), (0,
|
|
83
|
+
}, "".concat(monthLongTitle, " ").concat(year)), (0, _react2.jsx)(_standardButton.default, {
|
|
84
84
|
css: arrowRightStyles,
|
|
85
85
|
appearance: "subtle",
|
|
86
86
|
spacing: "none",
|
|
87
87
|
tabIndex: -1,
|
|
88
88
|
onClick: handleClickNext,
|
|
89
89
|
testId: testId && "".concat(testId, "--next-month"),
|
|
90
|
-
iconBefore: (0,
|
|
90
|
+
iconBefore: (0, _react2.jsx)(_chevronRightLarge.default, {
|
|
91
91
|
label: nextMonthLabel,
|
|
92
92
|
size: "medium",
|
|
93
93
|
primaryColor: "var(--ds-text-subtlest, ".concat(_colors.N70, ")"),
|
|
@@ -9,12 +9,12 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _date = _interopRequireDefault(require("./date"));
|
|
15
15
|
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
-
var daysGridStyles = (0,
|
|
17
|
+
var daysGridStyles = (0, _react2.css)({
|
|
18
18
|
display: 'grid',
|
|
19
19
|
gridTemplateColumns: 'repeat(7, 1fr)',
|
|
20
20
|
border: 0
|
|
@@ -24,16 +24,16 @@ var WeekDays = /*#__PURE__*/(0, _react.memo)(function WeekDays(_ref) {
|
|
|
24
24
|
handleClickDay = _ref.handleClickDay,
|
|
25
25
|
mode = _ref.mode,
|
|
26
26
|
testId = _ref.testId;
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, _react2.jsx)("div", {
|
|
28
28
|
role: "grid",
|
|
29
29
|
"data-testid": testId && "".concat(testId, "--month")
|
|
30
30
|
}, weeks.map(function (week) {
|
|
31
|
-
return (0,
|
|
31
|
+
return (0, _react2.jsx)("div", {
|
|
32
32
|
role: "row",
|
|
33
33
|
key: week.id,
|
|
34
34
|
css: daysGridStyles
|
|
35
35
|
}, week.values.map(function (weekDay) {
|
|
36
|
-
return (0,
|
|
36
|
+
return (0, _react2.jsx)(_date.default, {
|
|
37
37
|
key: weekDay.id,
|
|
38
38
|
isDisabled: weekDay.isDisabled,
|
|
39
39
|
isFocused: weekDay.isFocused,
|
|
@@ -7,17 +7,17 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
11
11
|
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
13
|
|
|
14
14
|
/** @jsx jsx */
|
|
15
|
-
var dayNameGridStyles = (0,
|
|
15
|
+
var dayNameGridStyles = (0, _react2.css)({
|
|
16
16
|
display: 'grid',
|
|
17
17
|
gridTemplateColumns: 'repeat(7, 1fr)',
|
|
18
18
|
border: 0
|
|
19
19
|
});
|
|
20
|
-
var dayNameCellStyles = (0,
|
|
20
|
+
var dayNameCellStyles = (0, _react2.css)({
|
|
21
21
|
boxSizing: 'border-box',
|
|
22
22
|
minWidth: 40,
|
|
23
23
|
padding: '8px 8px',
|
|
@@ -31,10 +31,10 @@ var dayNameCellStyles = (0, _core.css)({
|
|
|
31
31
|
});
|
|
32
32
|
var WeekHeader = /*#__PURE__*/(0, _react.memo)(function WeekHeader(_ref) {
|
|
33
33
|
var daysShort = _ref.daysShort;
|
|
34
|
-
return (0,
|
|
34
|
+
return (0, _react2.jsx)("div", {
|
|
35
35
|
css: dayNameGridStyles
|
|
36
36
|
}, daysShort.map(function (shortDay) {
|
|
37
|
-
return (0,
|
|
37
|
+
return (0, _react2.jsx)("span", {
|
|
38
38
|
css: dayNameCellStyles,
|
|
39
39
|
key: shortDay
|
|
40
40
|
}, shortDay);
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/calendar.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef, memo, useMemo } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
7
7
|
import noop from '@atlaskit/ds-lib/noop';
|
|
8
8
|
import { DN600, N0, N700, N900 } from '@atlaskit/theme/colors';
|
|
@@ -48,7 +48,7 @@ const gridsContainerStyles = css({
|
|
|
48
48
|
const analyticsAttributes = {
|
|
49
49
|
componentName: 'calendar',
|
|
50
50
|
packageName: "@atlaskit/calendar",
|
|
51
|
-
packageVersion: "12.
|
|
51
|
+
packageVersion: "12.4.0"
|
|
52
52
|
};
|
|
53
53
|
const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
|
|
54
54
|
day,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { forwardRef, memo, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import noop from '@atlaskit/ds-lib/noop';
|
|
5
5
|
import { dateCellStyles as getDateCellStyles } from '../styles/date';
|
|
6
6
|
const Date = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Date({
|
|
@@ -47,7 +47,7 @@ const Date = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Date({
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
}, [onClick]);
|
|
50
|
-
const dateCellStyles = useMemo(() => getDateCellStyles(mode), [mode]);
|
|
50
|
+
const dateCellStyles = useMemo(() => css(getDateCellStyles(mode)), [mode]);
|
|
51
51
|
return jsx("button", {
|
|
52
52
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
53
53
|
css: dateCellStyles,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { memo, useMemo } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import Button from '@atlaskit/button/standard-button';
|
|
5
5
|
import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
6
6
|
import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/calendar.js
CHANGED
|
@@ -8,7 +8,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8
8
|
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
import { forwardRef, memo, useMemo } from 'react';
|
|
11
|
-
import { css, jsx } from '@emotion/
|
|
11
|
+
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
13
13
|
import noop from '@atlaskit/ds-lib/noop';
|
|
14
14
|
import { DN600, N0, N700, N900 } from '@atlaskit/theme/colors';
|
|
@@ -54,7 +54,7 @@ var gridsContainerStyles = css({
|
|
|
54
54
|
var analyticsAttributes = {
|
|
55
55
|
componentName: 'calendar',
|
|
56
56
|
packageName: "@atlaskit/calendar",
|
|
57
|
-
packageVersion: "12.
|
|
57
|
+
packageVersion: "12.4.0"
|
|
58
58
|
};
|
|
59
59
|
var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
60
60
|
var day = _ref.day,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { forwardRef, memo, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import noop from '@atlaskit/ds-lib/noop';
|
|
5
5
|
import { dateCellStyles as getDateCellStyles } from '../styles/date';
|
|
6
6
|
var Date = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Date(_ref, ref) {
|
|
@@ -53,7 +53,7 @@ var Date = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Date(_ref, ref) {
|
|
|
53
53
|
}
|
|
54
54
|
}, [onClick]);
|
|
55
55
|
var dateCellStyles = useMemo(function () {
|
|
56
|
-
return getDateCellStyles(mode);
|
|
56
|
+
return css(getDateCellStyles(mode));
|
|
57
57
|
}, [mode]);
|
|
58
58
|
return jsx("button", {
|
|
59
59
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { memo, useMemo } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import Button from '@atlaskit/button/standard-button';
|
|
5
5
|
import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
6
6
|
import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
package/dist/esm/version.json
CHANGED
package/dist/types/calendar.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ import type { CalendarProps } from './types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/calendar/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/calendar/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const Calendar: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<CalendarProps, "style" | "disabled" | "year" | "previousMonthLabel" | "nextMonthLabel" | "mode" | "testId" | "
|
|
12
|
+
declare const Calendar: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<CalendarProps, "style" | "disabled" | "year" | "previousMonthLabel" | "nextMonthLabel" | "mode" | "testId" | "className" | "tabIndex" | "onFocus" | "onBlur" | "onChange" | "onSelect" | "selected" | "analyticsContext" | "day" | "month" | "defaultDay" | "defaultMonth" | "defaultYear" | "today" | "defaultSelected" | "previouslySelected" | "defaultPreviouslySelected" | "weekStartDay" | "disabledDateFilter" | "minDate" | "maxDate" | "locale" | "calendarRef" | "createAnalyticsEvent"> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
13
13
|
export default Calendar;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.4.0",
|
|
4
4
|
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
29
29
|
"@atlaskit/icon": "^21.10.0",
|
|
30
30
|
"@atlaskit/locale": "^2.3.0",
|
|
31
|
-
"@atlaskit/theme": "^12.
|
|
31
|
+
"@atlaskit/theme": "^12.2.0",
|
|
32
32
|
"@atlaskit/tokens": "^0.10.0",
|
|
33
|
-
"@atlaskit/visually-hidden": "^1.
|
|
33
|
+
"@atlaskit/visually-hidden": "^1.1.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
|
-
"@emotion/
|
|
35
|
+
"@emotion/react": "^11.7.1",
|
|
36
36
|
"date-fns": "^2.17.0",
|
|
37
37
|
"react-uid": "^2.2.0"
|
|
38
38
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@atlaskit/docs": "*",
|
|
44
|
-
"@atlaskit/select": "^15.
|
|
44
|
+
"@atlaskit/select": "^15.7.0",
|
|
45
45
|
"@atlaskit/ssr": "*",
|
|
46
46
|
"@atlaskit/visual-regression": "*",
|
|
47
47
|
"@atlaskit/webdriver-runner": "*",
|