@atlaskit/calendar 14.0.4 → 14.0.6
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 +13 -0
- package/dist/cjs/calendar.js +1 -1
- package/dist/cjs/internal/components/header.js +7 -16
- package/dist/es2019/calendar.js +1 -1
- package/dist/es2019/internal/components/header.js +7 -16
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/internal/components/header.js +7 -16
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 14.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#65872](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65872) [`42fb30840f3c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/42fb30840f3c) - [ux] Migrate buttons in Calendar to consume new icon buttons.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 14.0.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#63677](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63677) [`f320c8ce5039`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f320c8ce5039) - This package has been added to the Jira push model.
|
|
15
|
+
|
|
3
16
|
## 14.0.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/cjs/calendar.js
CHANGED
|
@@ -34,7 +34,7 @@ var boxStyles = (0, _primitives.xcss)({
|
|
|
34
34
|
var analyticsAttributes = {
|
|
35
35
|
componentName: 'calendar',
|
|
36
36
|
packageName: "@atlaskit/calendar",
|
|
37
|
-
packageVersion: "14.0.
|
|
37
|
+
packageVersion: "14.0.6"
|
|
38
38
|
};
|
|
39
39
|
var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
40
40
|
var day = _ref.day,
|
|
@@ -8,12 +8,11 @@ exports.default = void 0;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
|
-
var
|
|
11
|
+
var _new = require("@atlaskit/button/new");
|
|
12
12
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
13
13
|
var _chevronLeftLarge = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-left-large"));
|
|
14
14
|
var _chevronRightLarge = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right-large"));
|
|
15
15
|
var _primitives = require("@atlaskit/primitives");
|
|
16
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
17
16
|
var _useUniqueId = _interopRequireDefault(require("../../internal/hooks/use-unique-id"));
|
|
18
17
|
/** @jsx jsx */
|
|
19
18
|
|
|
@@ -62,18 +61,14 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
|
|
|
62
61
|
space: "space.0",
|
|
63
62
|
alignBlock: "center",
|
|
64
63
|
spread: "space-between"
|
|
65
|
-
}, (0, _react2.jsx)(
|
|
64
|
+
}, (0, _react2.jsx)(_new.IconButton, {
|
|
66
65
|
appearance: "subtle",
|
|
67
66
|
spacing: "none",
|
|
68
67
|
tabIndex: tabIndex,
|
|
69
68
|
onClick: handlePrevMonthInteraction,
|
|
70
69
|
testId: testId && "".concat(testId, "--previous-month"),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
size: "medium",
|
|
74
|
-
primaryColor: "var(--ds-icon, ".concat(_colors.N700, ")"),
|
|
75
|
-
testId: testId && "".concat(testId, "--previous-month-icon")
|
|
76
|
-
})
|
|
70
|
+
icon: _chevronLeftLarge.default,
|
|
71
|
+
label: "".concat(previousMonthLabel, ", ").concat(previousHeading)
|
|
77
72
|
}), (0, _react2.jsx)(_primitives.Box, {
|
|
78
73
|
"aria-live": hasInteractedWithMonth ? 'polite' : undefined,
|
|
79
74
|
id: announceId,
|
|
@@ -83,18 +78,14 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
|
|
|
83
78
|
as: "h2",
|
|
84
79
|
id: headerId,
|
|
85
80
|
testId: testId && "".concat(testId, "--current-month-year")
|
|
86
|
-
}, "".concat(monthLongTitle, " ").concat(year))), (0, _react2.jsx)(
|
|
81
|
+
}, "".concat(monthLongTitle, " ").concat(year))), (0, _react2.jsx)(_new.IconButton, {
|
|
87
82
|
appearance: "subtle",
|
|
88
83
|
spacing: "none",
|
|
89
84
|
tabIndex: tabIndex,
|
|
90
85
|
onClick: handleNextMonthInteraction,
|
|
91
86
|
testId: testId && "".concat(testId, "--next-month"),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
size: "medium",
|
|
95
|
-
primaryColor: "var(--ds-icon, ".concat(_colors.N700, ")"),
|
|
96
|
-
testId: testId && "".concat(testId, "--next-month-icon")
|
|
97
|
-
})
|
|
87
|
+
icon: _chevronRightLarge.default,
|
|
88
|
+
label: "".concat(nextMonthLabel, ", ").concat(nextHeading)
|
|
98
89
|
})));
|
|
99
90
|
});
|
|
100
91
|
Header.displayName = 'Header';
|
package/dist/es2019/calendar.js
CHANGED
|
@@ -24,7 +24,7 @@ const boxStyles = xcss({
|
|
|
24
24
|
const analyticsAttributes = {
|
|
25
25
|
componentName: 'calendar',
|
|
26
26
|
packageName: "@atlaskit/calendar",
|
|
27
|
-
packageVersion: "14.0.
|
|
27
|
+
packageVersion: "14.0.6"
|
|
28
28
|
};
|
|
29
29
|
const InnerCalendar = /*#__PURE__*/forwardRef(function Calendar({
|
|
30
30
|
day,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { memo, useState } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import
|
|
4
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
5
5
|
import Heading from '@atlaskit/heading';
|
|
6
6
|
import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
7
7
|
import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
|
8
8
|
import { Box, Inline } from '@atlaskit/primitives';
|
|
9
|
-
import { N700 } from '@atlaskit/theme/colors';
|
|
10
9
|
import useUniqueId from '../../internal/hooks/use-unique-id';
|
|
11
10
|
const Header = /*#__PURE__*/memo(function Header({
|
|
12
11
|
monthLongTitle,
|
|
@@ -49,18 +48,14 @@ const Header = /*#__PURE__*/memo(function Header({
|
|
|
49
48
|
space: "space.0",
|
|
50
49
|
alignBlock: "center",
|
|
51
50
|
spread: "space-between"
|
|
52
|
-
}, jsx(
|
|
51
|
+
}, jsx(IconButton, {
|
|
53
52
|
appearance: "subtle",
|
|
54
53
|
spacing: "none",
|
|
55
54
|
tabIndex: tabIndex,
|
|
56
55
|
onClick: handlePrevMonthInteraction,
|
|
57
56
|
testId: testId && `${testId}--previous-month`,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
size: "medium",
|
|
61
|
-
primaryColor: `var(--ds-icon, ${N700})`,
|
|
62
|
-
testId: testId && `${testId}--previous-month-icon`
|
|
63
|
-
})
|
|
57
|
+
icon: ArrowleftIcon,
|
|
58
|
+
label: `${previousMonthLabel}, ${previousHeading}`
|
|
64
59
|
}), jsx(Box, {
|
|
65
60
|
"aria-live": hasInteractedWithMonth ? 'polite' : undefined,
|
|
66
61
|
id: announceId,
|
|
@@ -70,18 +65,14 @@ const Header = /*#__PURE__*/memo(function Header({
|
|
|
70
65
|
as: "h2",
|
|
71
66
|
id: headerId,
|
|
72
67
|
testId: testId && `${testId}--current-month-year`
|
|
73
|
-
}, `${monthLongTitle} ${year}`)), jsx(
|
|
68
|
+
}, `${monthLongTitle} ${year}`)), jsx(IconButton, {
|
|
74
69
|
appearance: "subtle",
|
|
75
70
|
spacing: "none",
|
|
76
71
|
tabIndex: tabIndex,
|
|
77
72
|
onClick: handleNextMonthInteraction,
|
|
78
73
|
testId: testId && `${testId}--next-month`,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
size: "medium",
|
|
82
|
-
primaryColor: `var(--ds-icon, ${N700})`,
|
|
83
|
-
testId: testId && `${testId}--next-month-icon`
|
|
84
|
-
})
|
|
74
|
+
icon: ArrowrightIcon,
|
|
75
|
+
label: `${nextMonthLabel}, ${nextHeading}`
|
|
85
76
|
})));
|
|
86
77
|
});
|
|
87
78
|
Header.displayName = 'Header';
|
package/dist/esm/calendar.js
CHANGED
|
@@ -28,7 +28,7 @@ var boxStyles = xcss({
|
|
|
28
28
|
var analyticsAttributes = {
|
|
29
29
|
componentName: 'calendar',
|
|
30
30
|
packageName: "@atlaskit/calendar",
|
|
31
|
-
packageVersion: "14.0.
|
|
31
|
+
packageVersion: "14.0.6"
|
|
32
32
|
};
|
|
33
33
|
var InnerCalendar = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
34
34
|
var day = _ref.day,
|
|
@@ -2,12 +2,11 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { memo, useState } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
|
-
import
|
|
5
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
7
|
import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
8
8
|
import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
|
9
9
|
import { Box, Inline } from '@atlaskit/primitives';
|
|
10
|
-
import { N700 } from '@atlaskit/theme/colors';
|
|
11
10
|
import useUniqueId from '../../internal/hooks/use-unique-id';
|
|
12
11
|
var Header = /*#__PURE__*/memo(function Header(_ref) {
|
|
13
12
|
var monthLongTitle = _ref.monthLongTitle,
|
|
@@ -54,18 +53,14 @@ var Header = /*#__PURE__*/memo(function Header(_ref) {
|
|
|
54
53
|
space: "space.0",
|
|
55
54
|
alignBlock: "center",
|
|
56
55
|
spread: "space-between"
|
|
57
|
-
}, jsx(
|
|
56
|
+
}, jsx(IconButton, {
|
|
58
57
|
appearance: "subtle",
|
|
59
58
|
spacing: "none",
|
|
60
59
|
tabIndex: tabIndex,
|
|
61
60
|
onClick: handlePrevMonthInteraction,
|
|
62
61
|
testId: testId && "".concat(testId, "--previous-month"),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
size: "medium",
|
|
66
|
-
primaryColor: "var(--ds-icon, ".concat(N700, ")"),
|
|
67
|
-
testId: testId && "".concat(testId, "--previous-month-icon")
|
|
68
|
-
})
|
|
62
|
+
icon: ArrowleftIcon,
|
|
63
|
+
label: "".concat(previousMonthLabel, ", ").concat(previousHeading)
|
|
69
64
|
}), jsx(Box, {
|
|
70
65
|
"aria-live": hasInteractedWithMonth ? 'polite' : undefined,
|
|
71
66
|
id: announceId,
|
|
@@ -75,18 +70,14 @@ var Header = /*#__PURE__*/memo(function Header(_ref) {
|
|
|
75
70
|
as: "h2",
|
|
76
71
|
id: headerId,
|
|
77
72
|
testId: testId && "".concat(testId, "--current-month-year")
|
|
78
|
-
}, "".concat(monthLongTitle, " ").concat(year))), jsx(
|
|
73
|
+
}, "".concat(monthLongTitle, " ").concat(year))), jsx(IconButton, {
|
|
79
74
|
appearance: "subtle",
|
|
80
75
|
spacing: "none",
|
|
81
76
|
tabIndex: tabIndex,
|
|
82
77
|
onClick: handleNextMonthInteraction,
|
|
83
78
|
testId: testId && "".concat(testId, "--next-month"),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
size: "medium",
|
|
87
|
-
primaryColor: "var(--ds-icon, ".concat(N700, ")"),
|
|
88
|
-
testId: testId && "".concat(testId, "--next-month-icon")
|
|
89
|
-
})
|
|
79
|
+
icon: ArrowrightIcon,
|
|
80
|
+
label: "".concat(nextMonthLabel, ", ").concat(nextHeading)
|
|
90
81
|
})));
|
|
91
82
|
});
|
|
92
83
|
Header.displayName = 'Header';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.6",
|
|
4
4
|
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"atlassian": {
|
|
18
18
|
"team": "Design System Team",
|
|
19
19
|
"releaseModel": "continuous",
|
|
20
|
+
"productPushConsumption": [
|
|
21
|
+
"jira"
|
|
22
|
+
],
|
|
20
23
|
"website": {
|
|
21
24
|
"name": "Calendar",
|
|
22
25
|
"category": "Components"
|
|
@@ -24,15 +27,15 @@
|
|
|
24
27
|
},
|
|
25
28
|
"dependencies": {
|
|
26
29
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
27
|
-
"@atlaskit/button": "^17.
|
|
28
|
-
"@atlaskit/ds-explorations": "^3.
|
|
30
|
+
"@atlaskit/button": "^17.2.0",
|
|
31
|
+
"@atlaskit/ds-explorations": "^3.2.0",
|
|
29
32
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
30
|
-
"@atlaskit/heading": "^1.
|
|
33
|
+
"@atlaskit/heading": "^1.5.0",
|
|
31
34
|
"@atlaskit/icon": "^22.0.0",
|
|
32
35
|
"@atlaskit/locale": "^2.6.0",
|
|
33
|
-
"@atlaskit/primitives": "^1.
|
|
36
|
+
"@atlaskit/primitives": "^1.20.0",
|
|
34
37
|
"@atlaskit/theme": "^12.6.0",
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
38
|
+
"@atlaskit/tokens": "^1.35.0",
|
|
36
39
|
"@babel/runtime": "^7.0.0",
|
|
37
40
|
"@emotion/react": "^11.7.1",
|
|
38
41
|
"date-fns": "^2.17.0",
|
|
@@ -47,7 +50,6 @@
|
|
|
47
50
|
"@af/visual-regression": "*",
|
|
48
51
|
"@atlaskit/ssr": "*",
|
|
49
52
|
"@atlaskit/visual-regression": "*",
|
|
50
|
-
"@atlaskit/webdriver-runner": "*",
|
|
51
53
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
52
54
|
"@testing-library/dom": "^8.17.1",
|
|
53
55
|
"@testing-library/react": "^12.1.5",
|