@atlaskit/calendar 17.1.20 → 17.1.22
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 -18
- package/dist/cjs/calendar.js +2 -2
- package/dist/es2019/calendar.js +2 -2
- package/dist/esm/calendar.js +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/calendar
|
|
2
2
|
|
|
3
|
+
## 17.1.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.1.21
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 17.1.20
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -869,11 +881,9 @@
|
|
|
869
881
|
- [#28165](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28165)
|
|
870
882
|
[`642298a54dc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/642298a54dc) - Major
|
|
871
883
|
changes:
|
|
872
|
-
|
|
873
884
|
- Removing support for legacy dark mode.
|
|
874
885
|
|
|
875
886
|
Minor changes:
|
|
876
|
-
|
|
877
887
|
- Removal of row containers in day of month grid.
|
|
878
888
|
- Vertically center heading inside the calendar.
|
|
879
889
|
- Minor changes to visual layout to conform to design system tokens.
|
|
@@ -1131,14 +1141,12 @@
|
|
|
1131
1141
|
|
|
1132
1142
|
Adds three props to make disabling dates more practical, performant and expressive in
|
|
1133
1143
|
`@atlaskit/calendar`. These features are also available for DatePicker:
|
|
1134
|
-
|
|
1135
1144
|
- `minDate` for the minimum valid date
|
|
1136
1145
|
- `maxDate` for the maximum valid date
|
|
1137
1146
|
- `disabledDateFilter`, a function that takes a date string, and returns whether or not it should
|
|
1138
1147
|
be disabled.
|
|
1139
1148
|
|
|
1140
1149
|
### Bugs
|
|
1141
|
-
|
|
1142
1150
|
- Disabled dates that lie outside of the currently selected month now have correct hover styles
|
|
1143
1151
|
|
|
1144
1152
|
### Patch Changes
|
|
@@ -1181,7 +1189,6 @@
|
|
|
1181
1189
|
- [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083)
|
|
1182
1190
|
[`8ed4c2efc42`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8ed4c2efc42) - In this
|
|
1183
1191
|
version we made calendar dramatically faster and lighter 🤩
|
|
1184
|
-
|
|
1185
1192
|
- General performance improvements
|
|
1186
1193
|
- Moved from using tables to CSS grid to display the days
|
|
1187
1194
|
- Removed unnecessary DOM elements
|
|
@@ -1243,7 +1250,6 @@
|
|
|
1243
1250
|
injected package name and version for analytics instead of version.json.
|
|
1244
1251
|
- [`42785088a12`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42785088a12) - -
|
|
1245
1252
|
Migrate old entry points to new one. Calendar now has only following exports:
|
|
1246
|
-
|
|
1247
1253
|
- **default export**. Can be imported like:
|
|
1248
1254
|
- `import Calendar from '@atlaskit/calendar'`
|
|
1249
1255
|
- **named type exports** (`CalendarProps`, `ChangeEvent`, `SelectEvent`). Can be imported like:
|
|
@@ -1251,7 +1257,6 @@
|
|
|
1251
1257
|
- `import { CalendarProps, ChangeEvent, SelectEvent } from '@atlaskit/calendar/types'`.
|
|
1252
1258
|
|
|
1253
1259
|
**Internal change**
|
|
1254
|
-
|
|
1255
1260
|
- Remove reference of private types and props from the documentation. Right now private type is
|
|
1256
1261
|
`CalendarInternalRef` and private prop is `calendarRef`.
|
|
1257
1262
|
- Rename calendar exported private ref type from `CalendarInternalRef` to `CalendarRef`.
|
|
@@ -1259,7 +1264,6 @@
|
|
|
1259
1264
|
|
|
1260
1265
|
- [`f74ba30c53c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f74ba30c53c) -
|
|
1261
1266
|
**Internal change**
|
|
1262
|
-
|
|
1263
1267
|
- We have improved re-rendering quite a bit by memoizing components, loops and rendered elements.
|
|
1264
1268
|
- Duplicate "pad-to-two" util has been removed.
|
|
1265
1269
|
- Refactored few variables/functions/types.
|
|
@@ -1275,7 +1279,6 @@
|
|
|
1275
1279
|
[`d069f7834ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d069f7834ef) - Calendar
|
|
1276
1280
|
now accepts a `weekStartDay` prop that controls which day of the week should be used at the start.
|
|
1277
1281
|
This prop accepts the following values:
|
|
1278
|
-
|
|
1279
1282
|
- `0` sunday (default value)
|
|
1280
1283
|
- `1` monday
|
|
1281
1284
|
- `2` tuesday
|
|
@@ -1292,7 +1295,6 @@
|
|
|
1292
1295
|
Improvement in internal analytics performance
|
|
1293
1296
|
|
|
1294
1297
|
**Dev changes**
|
|
1295
|
-
|
|
1296
1298
|
- Migrated from `@atlaskit/analytics-next` React HOC to React hooks. This improved re-rendering
|
|
1297
1299
|
quite a bit.
|
|
1298
1300
|
|
|
@@ -1315,7 +1317,6 @@
|
|
|
1315
1317
|
[`4dae77b2678`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4dae77b2678) - Calendar
|
|
1316
1318
|
now accepts a `weekStartDay` prop that controls which day of the week should be used at the start.
|
|
1317
1319
|
This prop accepts the following values:
|
|
1318
|
-
|
|
1319
1320
|
- `0` sunday (default value)
|
|
1320
1321
|
- `1` monday
|
|
1321
1322
|
- `2` tuesday
|
|
@@ -1335,7 +1336,6 @@
|
|
|
1335
1336
|
- [#7762](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7762)
|
|
1336
1337
|
[`985961ce983`](https://bitbucket.org/atlassian/atlassian-frontend/commits/985961ce983) - Internal
|
|
1337
1338
|
change from class to function components
|
|
1338
|
-
|
|
1339
1339
|
- We have converted all the components from class to functional. This improved performance quite a
|
|
1340
1340
|
bit. Initial rendering, hydration, interaction, bundlesize and re-rendering; all have been
|
|
1341
1341
|
improved.
|
|
@@ -1540,7 +1540,6 @@
|
|
|
1540
1540
|
|
|
1541
1541
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
1542
1542
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
1543
|
-
|
|
1544
1543
|
- @atlaskit/docs@8.3.2
|
|
1545
1544
|
- @atlaskit/analytics-next@6.3.5
|
|
1546
1545
|
- @atlaskit/button@13.3.7
|
|
@@ -1626,7 +1625,6 @@
|
|
|
1626
1625
|
- [minor][e3d466543f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e3d466543f):
|
|
1627
1626
|
|
|
1628
1627
|
Add locale support for Calendar/DateTimePicker/DatePicker/TimePicker:
|
|
1629
|
-
|
|
1630
1628
|
- New prop `locale` enables localization for date/time format in `DatePicker`, `TimePicker` and
|
|
1631
1629
|
`DateTimePicker`, and months/days in `Calendar`.
|
|
1632
1630
|
- Deprecated `dateFormat`, `timeFormat` and `formatDisplayLabel` props. Please use `locale`
|
|
@@ -1719,7 +1717,6 @@
|
|
|
1719
1717
|
## 8.0.0
|
|
1720
1718
|
|
|
1721
1719
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
1722
|
-
|
|
1723
1720
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
1724
1721
|
this package, please ensure you use at least this version of react and react-dom.
|
|
1725
1722
|
|
|
@@ -1755,7 +1752,6 @@
|
|
|
1755
1752
|
## 7.0.19
|
|
1756
1753
|
|
|
1757
1754
|
- [patch][f8cf9e271e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f8cf9e271e):
|
|
1758
|
-
|
|
1759
1755
|
- Internal changes only. Calendar is now ssr-friendly.
|
|
1760
1756
|
|
|
1761
1757
|
## 7.0.18
|
|
@@ -1812,13 +1808,11 @@
|
|
|
1812
1808
|
## 7.0.12
|
|
1813
1809
|
|
|
1814
1810
|
- [patch][21f5216](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/21f5216):
|
|
1815
|
-
|
|
1816
1811
|
- Remove enzyme-to-json as it is used in our jestFrameworkSetup.js
|
|
1817
1812
|
|
|
1818
1813
|
## 7.0.11
|
|
1819
1814
|
|
|
1820
1815
|
- [patch][a637f5e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a637f5e):
|
|
1821
|
-
|
|
1822
1816
|
- Refine and fix some flow type errors found by fixing @atlaskit/analytics-next HOCs to allow flow
|
|
1823
1817
|
to type check properly
|
|
1824
1818
|
|
package/dist/cjs/calendar.js
CHANGED
|
@@ -37,7 +37,7 @@ var styles = {
|
|
|
37
37
|
var analyticsAttributes = {
|
|
38
38
|
componentName: 'calendar',
|
|
39
39
|
packageName: "@atlaskit/calendar",
|
|
40
|
-
packageVersion: "17.1.
|
|
40
|
+
packageVersion: "17.1.21"
|
|
41
41
|
};
|
|
42
42
|
var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
|
|
43
43
|
var day = _ref.day,
|
|
@@ -205,7 +205,7 @@ var InnerCalendar = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref,
|
|
|
205
205
|
var headerId = (0, _useId.useId)();
|
|
206
206
|
return (
|
|
207
207
|
/*#__PURE__*/
|
|
208
|
-
// eslint-disable-next-line
|
|
208
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
209
209
|
React.createElement("div", {
|
|
210
210
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
211
211
|
className: className
|
package/dist/es2019/calendar.js
CHANGED
|
@@ -24,7 +24,7 @@ const styles = {
|
|
|
24
24
|
const analyticsAttributes = {
|
|
25
25
|
componentName: 'calendar',
|
|
26
26
|
packageName: "@atlaskit/calendar",
|
|
27
|
-
packageVersion: "17.1.
|
|
27
|
+
packageVersion: "17.1.21"
|
|
28
28
|
};
|
|
29
29
|
const InnerCalendar = /*#__PURE__*/forwardRef(function Calendar({
|
|
30
30
|
day,
|
|
@@ -173,7 +173,7 @@ const InnerCalendar = /*#__PURE__*/forwardRef(function Calendar({
|
|
|
173
173
|
const headerId = useId();
|
|
174
174
|
return (
|
|
175
175
|
/*#__PURE__*/
|
|
176
|
-
// eslint-disable-next-line
|
|
176
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
177
177
|
React.createElement("div", {
|
|
178
178
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
179
179
|
className: className
|
package/dist/esm/calendar.js
CHANGED
|
@@ -28,7 +28,7 @@ var styles = {
|
|
|
28
28
|
var analyticsAttributes = {
|
|
29
29
|
componentName: 'calendar',
|
|
30
30
|
packageName: "@atlaskit/calendar",
|
|
31
|
-
packageVersion: "17.1.
|
|
31
|
+
packageVersion: "17.1.21"
|
|
32
32
|
};
|
|
33
33
|
var InnerCalendar = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
34
34
|
var day = _ref.day,
|
|
@@ -196,7 +196,7 @@ var InnerCalendar = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
|
|
|
196
196
|
var headerId = useId();
|
|
197
197
|
return (
|
|
198
198
|
/*#__PURE__*/
|
|
199
|
-
// eslint-disable-next-line
|
|
199
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
200
200
|
React.createElement("div", {
|
|
201
201
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
202
202
|
className: className
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/calendar",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.22",
|
|
4
4
|
"description": "An interactive calendar for date selection experiences.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
28
|
-
"@atlaskit/button": "^23.
|
|
29
|
-
"@atlaskit/css": "^0.
|
|
28
|
+
"@atlaskit/button": "^23.5.0",
|
|
29
|
+
"@atlaskit/css": "^0.15.0",
|
|
30
30
|
"@atlaskit/ds-lib": "^5.1.0",
|
|
31
31
|
"@atlaskit/heading": "^5.2.0",
|
|
32
|
-
"@atlaskit/icon": "^28.
|
|
32
|
+
"@atlaskit/icon": "^28.5.0",
|
|
33
33
|
"@atlaskit/locale": "^3.0.0",
|
|
34
|
-
"@atlaskit/primitives": "^
|
|
34
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
35
35
|
"@atlaskit/theme": "^21.0.0",
|
|
36
|
-
"@atlaskit/tokens": "^
|
|
36
|
+
"@atlaskit/tokens": "^7.0.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
|
-
"@compiled/react": "^0.18.
|
|
38
|
+
"@compiled/react": "^0.18.6",
|
|
39
39
|
"date-fns": "^2.17.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@af/accessibility-testing": "workspace:^",
|
|
46
46
|
"@af/integration-testing": "workspace:^",
|
|
47
47
|
"@af/visual-regression": "workspace:^",
|
|
48
|
-
"@atlaskit/docs": "^11.
|
|
48
|
+
"@atlaskit/docs": "^11.2.0",
|
|
49
49
|
"@atlaskit/form": "^14.2.0",
|
|
50
50
|
"@atlaskit/link": "^3.2.0",
|
|
51
51
|
"@atlaskit/section-message": "^8.7.0",
|