@atlaskit/calendar 14.0.13 → 14.2.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 +12 -0
- package/dist/cjs/calendar.js +1 -1
- package/dist/cjs/internal/components/header.js +1 -1
- package/dist/cjs/internal/components/week-header.js +5 -9
- package/dist/cjs/internal/styles/date.js +1 -1
- package/dist/es2019/calendar.js +1 -1
- package/dist/es2019/internal/components/header.js +1 -1
- package/dist/es2019/internal/components/week-header.js +5 -9
- package/dist/es2019/internal/styles/date.js +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/internal/components/header.js +1 -1
- package/dist/esm/internal/components/week-header.js +5 -9
- package/dist/esm/internal/styles/date.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 14.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#90213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90213) [`aa06d98a6384`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/aa06d98a6384) - Add support for React 18.
|
|
8
|
+
|
|
9
|
+
## 14.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#88752](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88752) [`c164ec1faceb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c164ec1faceb) - [ux] Internal changes to typography, small visual change to calendar week header text.
|
|
14
|
+
|
|
3
15
|
## 14.0.13
|
|
4
16
|
|
|
5
17
|
### 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.2.0"
|
|
38
38
|
};
|
|
39
39
|
var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
40
40
|
var day = _ref.day,
|
|
@@ -74,7 +74,7 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
|
|
|
74
74
|
id: announceId,
|
|
75
75
|
testId: testId && "".concat(testId, "--current-month-year--container")
|
|
76
76
|
}, (0, _react2.jsx)(_heading.default, {
|
|
77
|
-
|
|
77
|
+
size: "xsmall",
|
|
78
78
|
as: "h2",
|
|
79
79
|
id: headerId,
|
|
80
80
|
testId: testId && "".concat(testId, "--current-month-year")
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
-
var _text = _interopRequireDefault(require("@atlaskit/ds-explorations/text"));
|
|
11
10
|
var _primitives = require("@atlaskit/primitives");
|
|
12
11
|
var _weekDayGrid = _interopRequireDefault(require("./week-day-grid"));
|
|
13
12
|
/** @jsx jsx */
|
|
@@ -17,10 +16,6 @@ var columnHeaderStyles = (0, _primitives.xcss)({
|
|
|
17
16
|
// Account for languages with short week day names
|
|
18
17
|
whiteSpace: 'nowrap',
|
|
19
18
|
// Account for languages with long week day names
|
|
20
|
-
textAlign: 'center',
|
|
21
|
-
lineHeight: '16px',
|
|
22
|
-
color: 'color.text.subtle',
|
|
23
|
-
// Apply correct fallback to shortDay text
|
|
24
19
|
display: 'flex',
|
|
25
20
|
justifyContent: 'center'
|
|
26
21
|
});
|
|
@@ -37,10 +32,11 @@ var WeekHeader = /*#__PURE__*/(0, _react.memo)(function WeekHeader(_ref) {
|
|
|
37
32
|
key: shortDay,
|
|
38
33
|
role: "columnheader",
|
|
39
34
|
testId: testId && "".concat(testId, "--column-header")
|
|
40
|
-
}, (0, _react2.jsx)(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
}, (0, _react2.jsx)(_primitives.Text, {
|
|
36
|
+
weight: "bold",
|
|
37
|
+
size: "UNSAFE_small",
|
|
38
|
+
align: "center",
|
|
39
|
+
color: "color.text.subtle"
|
|
44
40
|
}, shortDay));
|
|
45
41
|
}));
|
|
46
42
|
});
|
|
@@ -17,7 +17,7 @@ var dateCellStyles = exports.dateCellStyles = function dateCellStyles() {
|
|
|
17
17
|
color: "var(--ds-text, ".concat(_colors.N900, ")"),
|
|
18
18
|
cursor: 'pointer',
|
|
19
19
|
flexGrow: 1,
|
|
20
|
-
|
|
20
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
21
21
|
textAlign: 'center',
|
|
22
22
|
'&[data-sibling]': {
|
|
23
23
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
|
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.2.0"
|
|
28
28
|
};
|
|
29
29
|
const InnerCalendar = /*#__PURE__*/forwardRef(function Calendar({
|
|
30
30
|
day,
|
|
@@ -61,7 +61,7 @@ const Header = /*#__PURE__*/memo(function Header({
|
|
|
61
61
|
id: announceId,
|
|
62
62
|
testId: testId && `${testId}--current-month-year--container`
|
|
63
63
|
}, jsx(Heading, {
|
|
64
|
-
|
|
64
|
+
size: "xsmall",
|
|
65
65
|
as: "h2",
|
|
66
66
|
id: headerId,
|
|
67
67
|
testId: testId && `${testId}--current-month-year`
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import Text from '@atlaskit/
|
|
5
|
-
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
|
+
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
6
5
|
import WeekDayGrid from './week-day-grid';
|
|
7
6
|
const columnHeaderStyles = xcss({
|
|
8
7
|
minWidth: 'size.400',
|
|
9
8
|
// Account for languages with short week day names
|
|
10
9
|
whiteSpace: 'nowrap',
|
|
11
10
|
// Account for languages with long week day names
|
|
12
|
-
textAlign: 'center',
|
|
13
|
-
lineHeight: '16px',
|
|
14
|
-
color: 'color.text.subtle',
|
|
15
|
-
// Apply correct fallback to shortDay text
|
|
16
11
|
display: 'flex',
|
|
17
12
|
justifyContent: 'center'
|
|
18
13
|
});
|
|
@@ -30,9 +25,10 @@ const WeekHeader = /*#__PURE__*/memo(function WeekHeader({
|
|
|
30
25
|
role: "columnheader",
|
|
31
26
|
testId: testId && `${testId}--column-header`
|
|
32
27
|
}, jsx(Text, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
weight: "bold",
|
|
29
|
+
size: "UNSAFE_small",
|
|
30
|
+
align: "center",
|
|
31
|
+
color: "color.text.subtle"
|
|
36
32
|
}, shortDay))));
|
|
37
33
|
});
|
|
38
34
|
WeekHeader.displayName = 'WeekHeader';
|
|
@@ -10,7 +10,7 @@ export const dateCellStyles = () => ({
|
|
|
10
10
|
color: `var(--ds-text, ${N900})`,
|
|
11
11
|
cursor: 'pointer',
|
|
12
12
|
flexGrow: 1,
|
|
13
|
-
|
|
13
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
14
14
|
textAlign: 'center',
|
|
15
15
|
'&[data-sibling]': {
|
|
16
16
|
color: `var(--ds-text-subtlest, ${N200})`
|
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.2.0"
|
|
32
32
|
};
|
|
33
33
|
var InnerCalendar = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
34
34
|
var day = _ref.day,
|
|
@@ -66,7 +66,7 @@ var Header = /*#__PURE__*/memo(function Header(_ref) {
|
|
|
66
66
|
id: announceId,
|
|
67
67
|
testId: testId && "".concat(testId, "--current-month-year--container")
|
|
68
68
|
}, jsx(Heading, {
|
|
69
|
-
|
|
69
|
+
size: "xsmall",
|
|
70
70
|
as: "h2",
|
|
71
71
|
id: headerId,
|
|
72
72
|
testId: testId && "".concat(testId, "--current-month-year")
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import Text from '@atlaskit/
|
|
5
|
-
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
|
+
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
6
5
|
import WeekDayGrid from './week-day-grid';
|
|
7
6
|
var columnHeaderStyles = xcss({
|
|
8
7
|
minWidth: 'size.400',
|
|
9
8
|
// Account for languages with short week day names
|
|
10
9
|
whiteSpace: 'nowrap',
|
|
11
10
|
// Account for languages with long week day names
|
|
12
|
-
textAlign: 'center',
|
|
13
|
-
lineHeight: '16px',
|
|
14
|
-
color: 'color.text.subtle',
|
|
15
|
-
// Apply correct fallback to shortDay text
|
|
16
11
|
display: 'flex',
|
|
17
12
|
justifyContent: 'center'
|
|
18
13
|
});
|
|
@@ -30,9 +25,10 @@ var WeekHeader = /*#__PURE__*/memo(function WeekHeader(_ref) {
|
|
|
30
25
|
role: "columnheader",
|
|
31
26
|
testId: testId && "".concat(testId, "--column-header")
|
|
32
27
|
}, jsx(Text, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
weight: "bold",
|
|
29
|
+
size: "UNSAFE_small",
|
|
30
|
+
align: "center",
|
|
31
|
+
color: "color.text.subtle"
|
|
36
32
|
}, shortDay));
|
|
37
33
|
}));
|
|
38
34
|
});
|
|
@@ -11,7 +11,7 @@ export var dateCellStyles = function dateCellStyles() {
|
|
|
11
11
|
color: "var(--ds-text, ".concat(N900, ")"),
|
|
12
12
|
cursor: 'pointer',
|
|
13
13
|
flexGrow: 1,
|
|
14
|
-
|
|
14
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
15
15
|
textAlign: 'center',
|
|
16
16
|
'&[data-sibling]': {
|
|
17
17
|
color: "var(--ds-text-subtlest, ".concat(N200, ")")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "14.0
|
|
3
|
+
"version": "14.2.0",
|
|
4
4
|
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,26 +23,26 @@
|
|
|
23
23
|
"website": {
|
|
24
24
|
"name": "Calendar",
|
|
25
25
|
"category": "Components"
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"runReact18": true
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
30
|
-
"@atlaskit/button": "^17.
|
|
31
|
-
"@atlaskit/ds-explorations": "^3.3.0",
|
|
31
|
+
"@atlaskit/button": "^17.12.0",
|
|
32
32
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
33
33
|
"@atlaskit/heading": "^2.1.0",
|
|
34
34
|
"@atlaskit/icon": "^22.1.0",
|
|
35
35
|
"@atlaskit/locale": "^2.6.0",
|
|
36
|
-
"@atlaskit/primitives": "^5.
|
|
36
|
+
"@atlaskit/primitives": "^5.5.0",
|
|
37
37
|
"@atlaskit/theme": "^12.7.0",
|
|
38
|
-
"@atlaskit/tokens": "^1.
|
|
38
|
+
"@atlaskit/tokens": "^1.43.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
40
40
|
"@emotion/react": "^11.7.1",
|
|
41
41
|
"date-fns": "^2.17.0",
|
|
42
42
|
"react-uid": "^2.2.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"react": "^16.8.0"
|
|
45
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@af/accessibility-testing": "*",
|