@atlaskit/calendar 15.0.5 → 15.1.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 +8 -0
- package/dist/cjs/calendar.js +1 -1
- package/dist/cjs/internal/components/header.js +4 -4
- package/dist/es2019/calendar.js +1 -1
- package/dist/es2019/internal/components/header.js +4 -4
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/internal/components/header.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 15.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#157307](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/157307)
|
|
8
|
+
[`a1e80ec0a5e4a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a1e80ec0a5e4a) -
|
|
9
|
+
Enable new icons behind a feature flag.
|
|
10
|
+
|
|
3
11
|
## 15.0.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/calendar.js
CHANGED
|
@@ -36,7 +36,7 @@ var boxStyles = (0, _primitives.xcss)({
|
|
|
36
36
|
var analyticsAttributes = {
|
|
37
37
|
componentName: 'calendar',
|
|
38
38
|
packageName: "@atlaskit/calendar",
|
|
39
|
-
packageVersion: "15.0
|
|
39
|
+
packageVersion: "15.1.0"
|
|
40
40
|
};
|
|
41
41
|
var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
42
42
|
var day = _ref.day,
|
|
@@ -11,8 +11,8 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _new = require("@atlaskit/button/new");
|
|
12
12
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
13
13
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var _chevronLeftChevronLeftLarge = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-left--chevron-left-large"));
|
|
15
|
+
var _chevronRightChevronRightLarge = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-right--chevron-right-large"));
|
|
16
16
|
var _primitives = require("@atlaskit/primitives");
|
|
17
17
|
/**
|
|
18
18
|
* @jsxRuntime classic
|
|
@@ -72,7 +72,7 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
|
|
|
72
72
|
tabIndex: tabIndex,
|
|
73
73
|
onClick: handlePrevMonthInteraction,
|
|
74
74
|
testId: testId && "".concat(testId, "--previous-month"),
|
|
75
|
-
icon:
|
|
75
|
+
icon: _chevronLeftChevronLeftLarge.default,
|
|
76
76
|
label: "".concat(previousMonthLabel, ", ").concat(previousHeading)
|
|
77
77
|
}), (0, _react2.jsx)(_primitives.Box, {
|
|
78
78
|
"aria-live": hasInteractedWithMonth ? 'polite' : undefined,
|
|
@@ -89,7 +89,7 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
|
|
|
89
89
|
tabIndex: tabIndex,
|
|
90
90
|
onClick: handleNextMonthInteraction,
|
|
91
91
|
testId: testId && "".concat(testId, "--next-month"),
|
|
92
|
-
icon:
|
|
92
|
+
icon: _chevronRightChevronRightLarge.default,
|
|
93
93
|
label: "".concat(nextMonthLabel, ", ").concat(nextHeading)
|
|
94
94
|
})));
|
|
95
95
|
});
|
package/dist/es2019/calendar.js
CHANGED
|
@@ -28,7 +28,7 @@ const boxStyles = xcss({
|
|
|
28
28
|
const analyticsAttributes = {
|
|
29
29
|
componentName: 'calendar',
|
|
30
30
|
packageName: "@atlaskit/calendar",
|
|
31
|
-
packageVersion: "15.0
|
|
31
|
+
packageVersion: "15.1.0"
|
|
32
32
|
};
|
|
33
33
|
const InnerCalendar = /*#__PURE__*/forwardRef(function Calendar({
|
|
34
34
|
day,
|
|
@@ -9,8 +9,8 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { IconButton } from '@atlaskit/button/new';
|
|
10
10
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
11
11
|
import Heading from '@atlaskit/heading';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import ChevronLeftIcon from '@atlaskit/icon/utility/migration/chevron-left--chevron-left-large';
|
|
13
|
+
import ChevronRightIcon from '@atlaskit/icon/utility/migration/chevron-right--chevron-right-large';
|
|
14
14
|
import { Box, Inline } from '@atlaskit/primitives';
|
|
15
15
|
const Header = /*#__PURE__*/memo(function Header({
|
|
16
16
|
monthLongTitle,
|
|
@@ -59,7 +59,7 @@ const Header = /*#__PURE__*/memo(function Header({
|
|
|
59
59
|
tabIndex: tabIndex,
|
|
60
60
|
onClick: handlePrevMonthInteraction,
|
|
61
61
|
testId: testId && `${testId}--previous-month`,
|
|
62
|
-
icon:
|
|
62
|
+
icon: ChevronLeftIcon,
|
|
63
63
|
label: `${previousMonthLabel}, ${previousHeading}`
|
|
64
64
|
}), jsx(Box, {
|
|
65
65
|
"aria-live": hasInteractedWithMonth ? 'polite' : undefined,
|
|
@@ -76,7 +76,7 @@ const Header = /*#__PURE__*/memo(function Header({
|
|
|
76
76
|
tabIndex: tabIndex,
|
|
77
77
|
onClick: handleNextMonthInteraction,
|
|
78
78
|
testId: testId && `${testId}--next-month`,
|
|
79
|
-
icon:
|
|
79
|
+
icon: ChevronRightIcon,
|
|
80
80
|
label: `${nextMonthLabel}, ${nextHeading}`
|
|
81
81
|
})));
|
|
82
82
|
});
|
package/dist/esm/calendar.js
CHANGED
|
@@ -32,7 +32,7 @@ var boxStyles = xcss({
|
|
|
32
32
|
var analyticsAttributes = {
|
|
33
33
|
componentName: 'calendar',
|
|
34
34
|
packageName: "@atlaskit/calendar",
|
|
35
|
-
packageVersion: "15.0
|
|
35
|
+
packageVersion: "15.1.0"
|
|
36
36
|
};
|
|
37
37
|
var InnerCalendar = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
38
38
|
var day = _ref.day,
|
|
@@ -10,8 +10,8 @@ import { jsx } from '@emotion/react';
|
|
|
10
10
|
import { IconButton } from '@atlaskit/button/new';
|
|
11
11
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
12
12
|
import Heading from '@atlaskit/heading';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import ChevronLeftIcon from '@atlaskit/icon/utility/migration/chevron-left--chevron-left-large';
|
|
14
|
+
import ChevronRightIcon from '@atlaskit/icon/utility/migration/chevron-right--chevron-right-large';
|
|
15
15
|
import { Box, Inline } from '@atlaskit/primitives';
|
|
16
16
|
var Header = /*#__PURE__*/memo(function Header(_ref) {
|
|
17
17
|
var monthLongTitle = _ref.monthLongTitle,
|
|
@@ -64,7 +64,7 @@ var Header = /*#__PURE__*/memo(function Header(_ref) {
|
|
|
64
64
|
tabIndex: tabIndex,
|
|
65
65
|
onClick: handlePrevMonthInteraction,
|
|
66
66
|
testId: testId && "".concat(testId, "--previous-month"),
|
|
67
|
-
icon:
|
|
67
|
+
icon: ChevronLeftIcon,
|
|
68
68
|
label: "".concat(previousMonthLabel, ", ").concat(previousHeading)
|
|
69
69
|
}), jsx(Box, {
|
|
70
70
|
"aria-live": hasInteractedWithMonth ? 'polite' : undefined,
|
|
@@ -81,7 +81,7 @@ var Header = /*#__PURE__*/memo(function Header(_ref) {
|
|
|
81
81
|
tabIndex: tabIndex,
|
|
82
82
|
onClick: handleNextMonthInteraction,
|
|
83
83
|
testId: testId && "".concat(testId, "--next-month"),
|
|
84
|
-
icon:
|
|
84
|
+
icon: ChevronRightIcon,
|
|
85
85
|
label: "".concat(nextMonthLabel, ", ").concat(nextHeading)
|
|
86
86
|
})));
|
|
87
87
|
});
|