@atlaskit/calendar 15.0.1 → 15.0.3
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 +15 -0
- package/dist/cjs/calendar.js +3 -3
- package/dist/cjs/internal/components/header.js +2 -2
- package/dist/es2019/calendar.js +2 -2
- package/dist/es2019/internal/components/header.js +1 -1
- package/dist/esm/calendar.js +2 -2
- package/dist/esm/internal/components/header.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 15.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 15.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#148281](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/148281)
|
|
14
|
+
[`3c4de48168ffe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3c4de48168ffe) -
|
|
15
|
+
Update the import path of `useId*` from `@atlaskit/ds-lib`
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 15.0.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/calendar.js
CHANGED
|
@@ -12,7 +12,7 @@ var _react = require("react");
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
|
|
14
14
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
15
|
-
var
|
|
15
|
+
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
16
16
|
var _primitives = require("@atlaskit/primitives");
|
|
17
17
|
var _header = _interopRequireDefault(require("./internal/components/header"));
|
|
18
18
|
var _weekDays = _interopRequireDefault(require("./internal/components/week-days"));
|
|
@@ -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.0.3"
|
|
40
40
|
};
|
|
41
41
|
var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
42
42
|
var day = _ref.day,
|
|
@@ -187,7 +187,7 @@ var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref,
|
|
|
187
187
|
var showPreviousYear = monthValue === 1;
|
|
188
188
|
return "".concat(monthsLong[previousMonth], " ").concat(showPreviousYear ? yearValue - 1 : yearValue);
|
|
189
189
|
};
|
|
190
|
-
var headerId = (0,
|
|
190
|
+
var headerId = (0, _useId.useId)();
|
|
191
191
|
return (0, _react2.jsx)("div", {
|
|
192
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
193
193
|
className: className
|
|
@@ -9,7 +9,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _new = require("@atlaskit/button/new");
|
|
12
|
-
var
|
|
12
|
+
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
13
13
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
14
14
|
var _chevronLeftLarge = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-left-large"));
|
|
15
15
|
var _chevronRightLarge = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right-large"));
|
|
@@ -35,7 +35,7 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
|
|
|
35
35
|
headerId = _ref.headerId,
|
|
36
36
|
tabIndex = _ref.tabIndex,
|
|
37
37
|
testId = _ref.testId;
|
|
38
|
-
var announceId = (0,
|
|
38
|
+
var announceId = (0, _useId.useId)();
|
|
39
39
|
|
|
40
40
|
// All of this is because `aria-atomic` is not fully supported for different
|
|
41
41
|
// assistive technologies. We want the value of the current month and year to
|
package/dist/es2019/calendar.js
CHANGED
|
@@ -9,7 +9,7 @@ import { forwardRef, memo, useState } from 'react';
|
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
11
11
|
import noop from '@atlaskit/ds-lib/noop';
|
|
12
|
-
import { useId } from '@atlaskit/ds-lib/
|
|
12
|
+
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
13
13
|
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
14
14
|
import Header from './internal/components/header';
|
|
15
15
|
import WeekDaysComponent from './internal/components/week-days';
|
|
@@ -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.0.3"
|
|
32
32
|
};
|
|
33
33
|
const InnerCalendar = /*#__PURE__*/forwardRef(function Calendar({
|
|
34
34
|
day,
|
|
@@ -7,7 +7,7 @@ import { memo, useState } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { IconButton } from '@atlaskit/button/new';
|
|
10
|
-
import { useId } from '@atlaskit/ds-lib/
|
|
10
|
+
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
11
11
|
import Heading from '@atlaskit/heading';
|
|
12
12
|
import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
13
13
|
import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
package/dist/esm/calendar.js
CHANGED
|
@@ -13,7 +13,7 @@ import { forwardRef, memo, useState } from 'react';
|
|
|
13
13
|
import { jsx } from '@emotion/react';
|
|
14
14
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
15
15
|
import noop from '@atlaskit/ds-lib/noop';
|
|
16
|
-
import { useId } from '@atlaskit/ds-lib/
|
|
16
|
+
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
17
17
|
import { Box, Stack, xcss } from '@atlaskit/primitives';
|
|
18
18
|
import Header from './internal/components/header';
|
|
19
19
|
import WeekDaysComponent from './internal/components/week-days';
|
|
@@ -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.0.3"
|
|
36
36
|
};
|
|
37
37
|
var InnerCalendar = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
38
38
|
var day = _ref.day,
|
|
@@ -8,7 +8,7 @@ import { memo, useState } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { IconButton } from '@atlaskit/button/new';
|
|
11
|
-
import { useId } from '@atlaskit/ds-lib/
|
|
11
|
+
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
12
12
|
import Heading from '@atlaskit/heading';
|
|
13
13
|
import ArrowleftIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
14
14
|
import ArrowrightIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3",
|
|
4
4
|
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
27
27
|
"@atlaskit/button": "^20.2.0",
|
|
28
|
-
"@atlaskit/ds-lib": "^
|
|
28
|
+
"@atlaskit/ds-lib": "^3.0.0",
|
|
29
29
|
"@atlaskit/heading": "^2.4.0",
|
|
30
|
-
"@atlaskit/icon": "^22.
|
|
30
|
+
"@atlaskit/icon": "^22.20.0",
|
|
31
31
|
"@atlaskit/locale": "^2.8.0",
|
|
32
32
|
"@atlaskit/primitives": "^12.2.0",
|
|
33
33
|
"@atlaskit/theme": "^13.0.0",
|