@atlaskit/calendar 14.0.12 → 14.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 +12 -0
- package/dist/cjs/calendar.js +1 -2
- 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 -2
- 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 -2
- 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 +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 14.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
## 14.0.13
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#84135](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84135) [`87ddd92e0265`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/87ddd92e0265) - [ux] Unnecessary tab stop for keyboard users removed.
|
|
14
|
+
|
|
3
15
|
## 14.0.12
|
|
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.1.0"
|
|
38
38
|
};
|
|
39
39
|
var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
40
40
|
var day = _ref.day,
|
|
@@ -219,7 +219,6 @@ var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref,
|
|
|
219
219
|
testId: testId
|
|
220
220
|
}), (0, _react2.jsx)(_primitives.Box, {
|
|
221
221
|
role: "grid",
|
|
222
|
-
tabIndex: tabIndex,
|
|
223
222
|
onKeyDown: handleContainerKeyDown,
|
|
224
223
|
"aria-labelledby": headerId,
|
|
225
224
|
testId: testId && "".concat(testId, "--calendar-dates")
|
|
@@ -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.1.0"
|
|
28
28
|
};
|
|
29
29
|
const InnerCalendar = /*#__PURE__*/forwardRef(function Calendar({
|
|
30
30
|
day,
|
|
@@ -191,7 +191,6 @@ const InnerCalendar = /*#__PURE__*/forwardRef(function Calendar({
|
|
|
191
191
|
testId: testId
|
|
192
192
|
}), jsx(Box, {
|
|
193
193
|
role: "grid",
|
|
194
|
-
tabIndex: tabIndex,
|
|
195
194
|
onKeyDown: handleContainerKeyDown,
|
|
196
195
|
"aria-labelledby": headerId,
|
|
197
196
|
testId: testId && `${testId}--calendar-dates`
|
|
@@ -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.1.0"
|
|
32
32
|
};
|
|
33
33
|
var InnerCalendar = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
34
34
|
var day = _ref.day,
|
|
@@ -213,7 +213,6 @@ var InnerCalendar = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
|
213
213
|
testId: testId
|
|
214
214
|
}), jsx(Box, {
|
|
215
215
|
role: "grid",
|
|
216
|
-
tabIndex: tabIndex,
|
|
217
216
|
onKeyDown: handleContainerKeyDown,
|
|
218
217
|
"aria-labelledby": headerId,
|
|
219
218
|
testId: testId && "".concat(testId, "--calendar-dates")
|
|
@@ -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.1.0",
|
|
4
4
|
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,15 +27,14 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
30
|
-
"@atlaskit/button": "^17.
|
|
31
|
-
"@atlaskit/ds-explorations": "^3.3.0",
|
|
30
|
+
"@atlaskit/button": "^17.11.0",
|
|
32
31
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
33
32
|
"@atlaskit/heading": "^2.1.0",
|
|
34
33
|
"@atlaskit/icon": "^22.1.0",
|
|
35
34
|
"@atlaskit/locale": "^2.6.0",
|
|
36
|
-
"@atlaskit/primitives": "^5.
|
|
37
|
-
"@atlaskit/theme": "^12.
|
|
38
|
-
"@atlaskit/tokens": "^1.
|
|
35
|
+
"@atlaskit/primitives": "^5.5.0",
|
|
36
|
+
"@atlaskit/theme": "^12.7.0",
|
|
37
|
+
"@atlaskit/tokens": "^1.43.0",
|
|
39
38
|
"@babel/runtime": "^7.0.0",
|
|
40
39
|
"@emotion/react": "^11.7.1",
|
|
41
40
|
"date-fns": "^2.17.0",
|