@atlaskit/calendar 13.3.1 → 13.3.2

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 CHANGED
@@ -1,59 +1,65 @@
1
1
  # @atlaskit/calendar
2
2
 
3
+ ## 13.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 13.3.1
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - [`75b9f4664c6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/75b9f4664c6) - [ux] Hide weekday header row from assistive technologies.
13
+ - [#39443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39443) [`75b9f4664c6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/75b9f4664c6) - [ux] Hide weekday header row from assistive technologies.
8
14
 
9
15
  ## 13.3.0
10
16
 
11
17
  ### Minor Changes
12
18
 
13
- - [`26825f14d51`](https://bitbucket.org/atlassian/atlassian-frontend/commits/26825f14d51) - [ux] This adds greater keyboard accessibility to calendar, and removes the feature flag that gated this change.
19
+ - [#39246](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39246) [`26825f14d51`](https://bitbucket.org/atlassian/atlassian-frontend/commits/26825f14d51) - [ux] This adds greater keyboard accessibility to calendar, and removes the feature flag that gated this change.
14
20
 
15
21
  ## 13.2.2
16
22
 
17
23
  ### Patch Changes
18
24
 
19
- - [`ceedd1f27df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ceedd1f27df) - [ux] Ensures month/year does not render as live region until it has changed or has otherwise been interacted with for better usability. Part of feature flag for keyboard accessibility.
25
+ - [#38521](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38521) [`ceedd1f27df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ceedd1f27df) - [ux] Ensures month/year does not render as live region until it has changed or has otherwise been interacted with for better usability. Part of feature flag for keyboard accessibility.
20
26
 
21
27
  ## 13.2.1
22
28
 
23
29
  ### Patch Changes
24
30
 
25
- - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
31
+ - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
26
32
  - Updated dependencies
27
33
 
28
34
  ## 13.2.0
29
35
 
30
36
  ### Minor Changes
31
37
 
32
- - [`b5716b91b31`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5716b91b31) - [ux] We are testing adding keyboard accessibility for Calendar behind a feature flag. This will add more affordances for users of assistive technologies to use the calendar, and updates the `tabIndex` prop to only use recommended values. If this fix is successful it will be available in a later release.
38
+ - [#38403](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38403) [`b5716b91b31`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5716b91b31) - [ux] We are testing adding keyboard accessibility for Calendar behind a feature flag. This will add more affordances for users of assistive technologies to use the calendar, and updates the `tabIndex` prop to only use recommended values. If this fix is successful it will be available in a later release.
33
39
 
34
40
  ## 13.1.17
35
41
 
36
42
  ### Patch Changes
37
43
 
38
- - [`0ed39bbcb73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ed39bbcb73) - [ux] correct fallback color of focused state to meet contrast requirement
44
+ - [#37611](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37611) [`0ed39bbcb73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ed39bbcb73) - [ux] correct fallback color of focused state to meet contrast requirement
39
45
 
40
46
  ## 13.1.16
41
47
 
42
48
  ### Patch Changes
43
49
 
44
- - [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
50
+ - [#37533](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37533) [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
45
51
 
46
52
  ## 13.1.15
47
53
 
48
54
  ### Patch Changes
49
55
 
50
- - [`3fadbb8bf73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fadbb8bf73) - Internal changes.
56
+ - [#37278](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37278) [`3fadbb8bf73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fadbb8bf73) - Internal changes.
51
57
 
52
58
  ## 13.1.14
53
59
 
54
60
  ### Patch Changes
55
61
 
56
- - [`7e4085cd951`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e4085cd951) - Allow caret version range in @atlaskit/primitives dependency.
62
+ - [#36412](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36412) [`7e4085cd951`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e4085cd951) - Allow caret version range in @atlaskit/primitives dependency.
57
63
 
58
64
  ## 13.1.13
59
65
 
@@ -77,7 +83,7 @@
77
83
 
78
84
  ### Patch Changes
79
85
 
80
- - [`76d4d797a2d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76d4d797a2d) - Updates calendar for primitives bump.
86
+ - [#35712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35712) [`76d4d797a2d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76d4d797a2d) - Updates calendar for primitives bump.
81
87
  - Updated dependencies
82
88
 
83
89
  ## 13.1.9
@@ -90,20 +96,20 @@
90
96
 
91
97
  ### Patch Changes
92
98
 
93
- - [`529814693a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/529814693a1) - Pin version of @atlaskit/primitives so it resolves to correct version
99
+ - [#35337](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35337) [`529814693a1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/529814693a1) - Pin version of @atlaskit/primitives so it resolves to correct version
94
100
 
95
101
  ## 13.1.7
96
102
 
97
103
  ### Patch Changes
98
104
 
99
- - [`b8b41649492`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8b41649492) - Update how certain background colors are referenced by name. Internal changes only.
105
+ - [#33833](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33833) [`b8b41649492`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8b41649492) - Update how certain background colors are referenced by name. Internal changes only.
100
106
  - Updated dependencies
101
107
 
102
108
  ## 13.1.6
103
109
 
104
110
  ### Patch Changes
105
111
 
106
- - [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
112
+ - [#34922](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34922) [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
107
113
 
108
114
  ## 13.1.5
109
115
 
@@ -115,31 +121,31 @@
115
121
 
116
122
  ### Patch Changes
117
123
 
118
- - [`774ed69ecef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/774ed69ecef) - Internal changes to use space tokens for spacing values. There is no visual change.
124
+ - [#34881](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34881) [`774ed69ecef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/774ed69ecef) - Internal changes to use space tokens for spacing values. There is no visual change.
119
125
 
120
126
  ## 13.1.3
121
127
 
122
128
  ### Patch Changes
123
129
 
124
- - [`74fec133d99`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74fec133d99) - [ux] Add proper grid roles to calendar.
130
+ - [#34727](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34727) [`74fec133d99`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74fec133d99) - [ux] Add proper grid roles to calendar.
125
131
 
126
132
  ## 13.1.2
127
133
 
128
134
  ### Patch Changes
129
135
 
130
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
136
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
131
137
 
132
138
  ## 13.1.1
133
139
 
134
140
  ### Patch Changes
135
141
 
136
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
142
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
137
143
 
138
144
  ## 13.1.0
139
145
 
140
146
  ### Minor Changes
141
147
 
142
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
148
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
143
149
 
144
150
  ### Patch Changes
145
151
 
@@ -149,7 +155,7 @@
149
155
 
150
156
  ### Patch Changes
151
157
 
152
- - [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
158
+ - [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
153
159
 
154
160
  ## 13.0.13
155
161
 
@@ -167,7 +173,7 @@
167
173
 
168
174
  ### Patch Changes
169
175
 
170
- - [`70922a6fcea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70922a6fcea) - [ux] style(calendar): update icon fallback color from N70 to N700 to match tokens and fix color contrast issue
176
+ - [#31891](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31891) [`70922a6fcea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70922a6fcea) - [ux] style(calendar): update icon fallback color from N70 to N700 to match tokens and fix color contrast issue
171
177
  - [`c0fb88b3af6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c0fb88b3af6) - [ux] style(calendar): update icon color token from text.subtlest to color.icon
172
178
 
173
179
  ## 13.0.10
@@ -192,19 +198,19 @@
192
198
 
193
199
  ### Patch Changes
194
200
 
195
- - [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
201
+ - [#31242](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31242) [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
196
202
 
197
203
  ## 13.0.6
198
204
 
199
205
  ### Patch Changes
200
206
 
201
- - [`842bb999a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/842bb999a85) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
207
+ - [#31041](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31041) [`842bb999a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/842bb999a85) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
202
208
 
203
209
  ## 13.0.5
204
210
 
205
211
  ### Patch Changes
206
212
 
207
- - [`1fc7949b336`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fc7949b336) - [ux] Fixes a bug where the background for the calendar element was incorrectly set to 'elevation.surface'
213
+ - [#30882](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30882) [`1fc7949b336`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fc7949b336) - [ux] Fixes a bug where the background for the calendar element was incorrectly set to 'elevation.surface'
208
214
 
209
215
  ## 13.0.4
210
216
 
@@ -216,27 +222,27 @@
216
222
 
217
223
  ### Patch Changes
218
224
 
219
- - [`22b754d311f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/22b754d311f) - Updates usage of removed design token `utilities.UNSAFE_util.transparent` in favour of its replacement `utilities.UNSAFE.transparent`
225
+ - [#27634](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27634) [`22b754d311f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/22b754d311f) - Updates usage of removed design token `utilities.UNSAFE_util.transparent` in favour of its replacement `utilities.UNSAFE.transparent`
220
226
  - Updated dependencies
221
227
 
222
228
  ## 13.0.2
223
229
 
224
230
  ### Patch Changes
225
231
 
226
- - [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
232
+ - [#27891](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27891) [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
227
233
  - Updated dependencies
228
234
 
229
235
  ## 13.0.1
230
236
 
231
237
  ### Patch Changes
232
238
 
233
- - [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
239
+ - [#28064](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28064) [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
234
240
 
235
241
  ## 13.0.0
236
242
 
237
243
  ### Major Changes
238
244
 
239
- - [`642298a54dc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/642298a54dc) - Major changes:
245
+ - [#28165](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28165) [`642298a54dc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/642298a54dc) - Major changes:
240
246
 
241
247
  - Removing support for legacy dark mode.
242
248
 
@@ -274,19 +280,19 @@
274
280
 
275
281
  ### Patch Changes
276
282
 
277
- - [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
283
+ - [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488) [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
278
284
 
279
285
  ## 12.4.1
280
286
 
281
287
  ### Patch Changes
282
288
 
283
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
289
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
284
290
 
285
291
  ## 12.4.0
286
292
 
287
293
  ### Minor Changes
288
294
 
289
- - [`764726e020b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/764726e020b) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
295
+ - [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`764726e020b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/764726e020b) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
290
296
 
291
297
  ### Patch Changes
292
298
 
@@ -296,13 +302,13 @@
296
302
 
297
303
  ### Patch Changes
298
304
 
299
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
305
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
300
306
 
301
307
  ## 12.3.1
302
308
 
303
309
  ### Patch Changes
304
310
 
305
- - [`124a1b7532b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/124a1b7532b) - Remove calendar's background when design tokens are provided, to allow calendar to match the color of any surface in light or dark mode
311
+ - [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`124a1b7532b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/124a1b7532b) - Remove calendar's background when design tokens are provided, to allow calendar to match the color of any surface in light or dark mode
306
312
  - [`6bf81ead961`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6bf81ead961) - Internal code change turning on new linting rules.
307
313
  - Updated dependencies
308
314
 
@@ -310,13 +316,13 @@
310
316
 
311
317
  ### Minor Changes
312
318
 
313
- - [`e1e33cfe0db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e1e33cfe0db) - [ux] Adds tabIndex prop for `@atlaskit/calendar`, useful when needing to disable calendar from receiving focus by keyboard.
319
+ - [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642) [`e1e33cfe0db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e1e33cfe0db) - [ux] Adds tabIndex prop for `@atlaskit/calendar`, useful when needing to disable calendar from receiving focus by keyboard.
314
320
 
315
321
  ## 12.2.0
316
322
 
317
323
  ### Minor Changes
318
324
 
319
- - [`6f7a4353204`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6f7a4353204) - Added ability to provide custom aria-labels for next- and previous-month buttons using `nextMonthLabel` and `previousMonthLabel`
325
+ - [#22029](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22029) [`6f7a4353204`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6f7a4353204) - Added ability to provide custom aria-labels for next- and previous-month buttons using `nextMonthLabel` and `previousMonthLabel`
320
326
 
321
327
  ### Patch Changes
322
328
 
@@ -326,7 +332,7 @@
326
332
 
327
333
  ### Patch Changes
328
334
 
329
- - [`c8c7eec9fb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c8c7eec9fb8) - [ux] Updates tokens used for selected hovered state
335
+ - [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`c8c7eec9fb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c8c7eec9fb8) - [ux] Updates tokens used for selected hovered state
330
336
 
331
337
  ## 12.1.13
332
338
 
@@ -338,7 +344,7 @@
338
344
 
339
345
  ### Patch Changes
340
346
 
341
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
347
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
342
348
  - Updated dependencies
343
349
 
344
350
  ## 12.1.11
@@ -351,7 +357,7 @@
351
357
 
352
358
  ### Patch Changes
353
359
 
354
- - [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
360
+ - [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
355
361
  - Updated dependencies
356
362
 
357
363
  ## 12.1.9
@@ -370,7 +376,7 @@
370
376
 
371
377
  ### Patch Changes
372
378
 
373
- - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
379
+ - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Updates usage of deprecated token names so they're aligned with the latest naming conventions. No UI or visual changes
374
380
  - Updated dependencies
375
381
 
376
382
  ## 12.1.6
@@ -383,7 +389,7 @@
383
389
 
384
390
  ### Patch Changes
385
391
 
386
- - [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
392
+ - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
387
393
  - Updated dependencies
388
394
 
389
395
  ## 12.1.4
@@ -396,7 +402,7 @@
396
402
 
397
403
  ### Patch Changes
398
404
 
399
- - [`192d35cfdbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/192d35cfdbd) - Defaults native button usage to type="button" to prevent unintended submittig of forms.
405
+ - [#15531](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15531) [`192d35cfdbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/192d35cfdbd) - Defaults native button usage to type="button" to prevent unintended submittig of forms.
400
406
  - [`f7d71a9ba09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7d71a9ba09) - Replaces visually hidden styles in component to instead use '@atlaskit/visually-hidden'.
401
407
 
402
408
  ## 12.1.2
@@ -415,7 +421,7 @@
415
421
 
416
422
  ### Minor Changes
417
423
 
418
- - [`89c0316aa2c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/89c0316aa2c) - Instrumented Calendar with the new theming package, `@atlaskit/tokens`. Tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
424
+ - [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`89c0316aa2c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/89c0316aa2c) - Instrumented Calendar with the new theming package, `@atlaskit/tokens`. Tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
419
425
 
420
426
  ### Patch Changes
421
427
 
@@ -432,19 +438,19 @@
432
438
 
433
439
  ### Patch Changes
434
440
 
435
- - [`414b6216adf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/414b6216adf) - Upgrade date-fns to ^2.17
441
+ - [#9328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9328) [`414b6216adf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/414b6216adf) - Upgrade date-fns to ^2.17
436
442
 
437
443
  ## 12.0.1
438
444
 
439
445
  ### Patch Changes
440
446
 
441
- - [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
447
+ - [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
442
448
 
443
449
  ## 12.0.0
444
450
 
445
451
  ### Major Changes
446
452
 
447
- - [`4ab5a7e9069`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ab5a7e9069) - ### Major:
453
+ - [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`4ab5a7e9069`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ab5a7e9069) - ### Major:
448
454
 
449
455
  Removes `defaultDisabled` prop, a stateless/uncontrolled variant of the `disabled` prop. As a stateless calendar would never change its disabled dates, this prop was unnecessary.
450
456
 
@@ -468,13 +474,13 @@
468
474
 
469
475
  ### Patch Changes
470
476
 
471
- - [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
477
+ - [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167) [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
472
478
 
473
479
  ## 11.1.0
474
480
 
475
481
  ### Minor Changes
476
482
 
477
- - [`d872280cff1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d872280cff1) - Calendar now exports a `WeekDay` type. This is the type used by the `weekStartDay` prop.
483
+ - [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`d872280cff1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d872280cff1) - Calendar now exports a `WeekDay` type. This is the type used by the `weekStartDay` prop.
478
484
 
479
485
  ### Patch Changes
480
486
 
@@ -484,14 +490,14 @@
484
490
 
485
491
  ### Patch Changes
486
492
 
487
- - [`4eb2615652c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4eb2615652c) - Internal refactor to use common utils.
493
+ - [#9756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9756) [`4eb2615652c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4eb2615652c) - Internal refactor to use common utils.
488
494
  - Updated dependencies
489
495
 
490
496
  ## 11.0.0
491
497
 
492
498
  ### Major Changes
493
499
 
494
- - [`8ed4c2efc42`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8ed4c2efc42) - In this version we made calendar dramatically faster and lighter 🤩
500
+ - [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083) [`8ed4c2efc42`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8ed4c2efc42) - In this version we made calendar dramatically faster and lighter 🤩
495
501
 
496
502
  - General performance improvements
497
503
  - Moved from using tables to CSS grid to display the days
@@ -519,7 +525,7 @@
519
525
 
520
526
  Run `npx @atlaskit/codemod-cli -h` for more details on usage.
521
527
  For Atlassians,
522
- refer to the [documentation](https://developer.atlassian.com/cloud/framework/atlassian-frontend/codemods/01-atlassian-codemods/) for more details on the codemod CLI.
528
+ refer to the [documentation](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more details on the codemod CLI.
523
529
 
524
530
  ### Patch Changes
525
531
 
@@ -530,7 +536,7 @@
530
536
 
531
537
  ### Patch Changes
532
538
 
533
- - [`471e2431a7c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/471e2431a7c) - Downgrade back to date-fns 1.30.1
539
+ - [#9299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9299) [`471e2431a7c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/471e2431a7c) - Downgrade back to date-fns 1.30.1
534
540
  We discovered big bundle size increases associated with the date-fns upgrade.
535
541
  We're reverting the upgarde to investigate
536
542
 
@@ -538,13 +544,13 @@
538
544
 
539
545
  ### Patch Changes
540
546
 
541
- - [`70f0701c2e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70f0701c2e6) - Upgrade date-fns to 2.17
547
+ - [#8291](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8291) [`70f0701c2e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70f0701c2e6) - Upgrade date-fns to 2.17
542
548
 
543
549
  ## 10.3.1
544
550
 
545
551
  ### Patch Changes
546
552
 
547
- - [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
553
+ - [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
548
554
  - [`42785088a12`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42785088a12) - - Migrate old entry points to new one. Calendar now has only following exports:
549
555
 
550
556
  - **default export**. Can be imported like:
@@ -573,7 +579,7 @@
573
579
 
574
580
  ### Minor Changes
575
581
 
576
- - [`d069f7834ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d069f7834ef) - Calendar now accepts a `weekStartDay` prop that controls which day of the week should be used at the start. This prop accepts the following values:
582
+ - [#8178](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8178) [`d069f7834ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d069f7834ef) - Calendar now accepts a `weekStartDay` prop that controls which day of the week should be used at the start. This prop accepts the following values:
577
583
 
578
584
  - `0` sunday (default value)
579
585
  - `1` monday
@@ -603,7 +609,7 @@
603
609
 
604
610
  ### Minor Changes
605
611
 
606
- - [`4dae77b2678`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4dae77b2678) - Calendar now accepts a `weekStartDay` prop that controls which day of the week should be used at the start. This prop accepts the following values:
612
+ - [#8029](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8029) [`4dae77b2678`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4dae77b2678) - Calendar now accepts a `weekStartDay` prop that controls which day of the week should be used at the start. This prop accepts the following values:
607
613
 
608
614
  - `0` sunday (default value)
609
615
  - `1` monday
@@ -621,7 +627,7 @@
621
627
 
622
628
  ### Minor Changes
623
629
 
624
- - [`985961ce983`](https://bitbucket.org/atlassian/atlassian-frontend/commits/985961ce983) - Internal change from class to function components
630
+ - [#7762](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7762) [`985961ce983`](https://bitbucket.org/atlassian/atlassian-frontend/commits/985961ce983) - Internal change from class to function components
625
631
 
626
632
  - We have converted all the components from class to functional. This improved performance quite a bit. Initial rendering, hydration, interaction, bundlesize and re-rendering; all have been improved.
627
633
  - We have made all the prop typings optional now. Earlier they were not aligned with the prop values (which were all optional earlier).
@@ -634,13 +640,13 @@
634
640
 
635
641
  ### Patch Changes
636
642
 
637
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
643
+ - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
638
644
 
639
645
  ## 10.0.9
640
646
 
641
647
  ### Patch Changes
642
648
 
643
- - [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
649
+ - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
644
650
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
645
651
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
646
652
 
@@ -654,7 +660,7 @@
654
660
 
655
661
  ### Patch Changes
656
662
 
657
- - [`2ac834240e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ac834240e) - Undo analytics-next file restructure to allow external ts definitions to continue working
663
+ - [#5164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5164) [`2ac834240e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ac834240e) - Undo analytics-next file restructure to allow external ts definitions to continue working
658
664
 
659
665
  ## 10.0.6
660
666
 
@@ -666,26 +672,26 @@
666
672
 
667
673
  ### Patch Changes
668
674
 
669
- - [`b284fba3d1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b284fba3d1) - Components that had missing names are now fixed - this helps when looking for them using the React Dev Tools.
675
+ - [#4649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4649) [`b284fba3d1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b284fba3d1) - Components that had missing names are now fixed - this helps when looking for them using the React Dev Tools.
670
676
 
671
677
  ## 10.0.4
672
678
 
673
679
  ### Patch Changes
674
680
 
675
- - [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
681
+ - [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707) [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
676
682
 
677
683
  ## 10.0.3
678
684
 
679
685
  ### Patch Changes
680
686
 
681
- - [`8598d0bd13`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8598d0bd13) - Remove unnecessary code and tests for IE11.
687
+ - [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424) [`8598d0bd13`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8598d0bd13) - Remove unnecessary code and tests for IE11.
682
688
  - Updated dependencies
683
689
 
684
690
  ## 10.0.2
685
691
 
686
692
  ### Patch Changes
687
693
 
688
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
694
+ - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
689
695
 
690
696
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
691
697
  to prevent duplicates of tslib being bundled.
@@ -694,14 +700,14 @@
694
700
 
695
701
  ### Patch Changes
696
702
 
697
- - [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
703
+ - [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
698
704
  - Updated dependencies
699
705
 
700
706
  ## 10.0.0
701
707
 
702
708
  ### Major Changes
703
709
 
704
- - [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
710
+ - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
705
711
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
706
712
 
707
713
  ### Patch Changes
@@ -712,13 +718,13 @@
712
718
 
713
719
  ### Patch Changes
714
720
 
715
- - [`69643331c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/69643331c3) - Prevent day names table header from wrapping into two line
721
+ - [#2443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2443) [`69643331c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/69643331c3) - Prevent day names table header from wrapping into two line
716
722
 
717
723
  ## 9.2.9
718
724
 
719
725
  ### Patch Changes
720
726
 
721
- - [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
727
+ - [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
722
728
 
723
729
  ## 9.2.8
724
730
 
@@ -4,6 +4,7 @@ import core, {
4
4
  FileInfo,
5
5
  ImportDeclaration,
6
6
  ImportSpecifier,
7
+ JSXAttribute,
7
8
  ObjectExpression,
8
9
  Options,
9
10
  Program,
@@ -58,7 +59,7 @@ export function getJSXAttributesByName(
58
59
  j: core.JSCodeshift,
59
60
  element: ASTPath<any>,
60
61
  attributeName: string,
61
- ) {
62
+ ): Collection<JSXAttribute> {
62
63
  return j(element)
63
64
  .find(j.JSXOpeningElement)
64
65
  .find(j.JSXAttribute)
@@ -35,7 +35,7 @@ var boxStyles = (0, _primitives.xcss)({
35
35
  var analyticsAttributes = {
36
36
  componentName: 'calendar',
37
37
  packageName: "@atlaskit/calendar",
38
- packageVersion: "13.3.1"
38
+ packageVersion: "13.3.2"
39
39
  };
40
40
  var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_ref, ref) {
41
41
  var day = _ref.day,
@@ -191,58 +191,55 @@ var CalendarWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Calendar(_re
191
191
  return "".concat(monthsLong[previousMonth], " ").concat(showPreviousYear ? yearValue - 1 : yearValue);
192
192
  };
193
193
  var headerId = (0, _useUniqueId.default)('month-year-header');
194
- return (
195
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-static-element-interactions
196
- (0, _react2.jsx)("div", {
197
- className: className,
198
- style: style,
199
- onBlur: handleContainerBlur,
200
- onFocus: handleContainerFocus,
201
- "data-testid": testId && "".concat(testId, "--container"),
202
- ref: ref
203
- }, (0, _react2.jsx)(_primitives.Box, {
204
- xcss: boxStyles,
205
- padding: "space.200",
206
- "aria-label": "calendar",
207
- testId: testId && "".concat(testId, "--calendar")
208
- }, (0, _react2.jsx)(_primitives.Stack, {
209
- space: "space.150"
210
- }, (0, _react2.jsx)(_header.default
211
- // The month number needs to be translated to index in the month
212
- // name array e.g. 1 (January) -> 0
213
- , {
214
- monthLongTitle: monthsLong[monthValue - 1],
215
- year: yearValue,
216
- nextMonthLabel: nextMonthLabel,
217
- previousMonthLabel: previousMonthLabel,
218
- nextHeading: getNextHeading(),
219
- previousHeading: getPreviousHeading(),
220
- handleClickNext: handleClickNext,
221
- handleClickPrev: handleClickPrev,
222
- headerId: headerId,
223
- mode: mode,
224
- tabIndex: tabIndex,
225
- testId: testId
226
- }), (0, _react2.jsx)(_primitives.Box, {
227
- role: "grid",
228
- tabIndex: tabIndex,
229
- onKeyDown: handleContainerKeyDown,
230
- "aria-labelledby": headerId,
231
- testId: testId && "".concat(testId, "--calendar-dates")
232
- }, (0, _react2.jsx)(_weekHeader.default, {
233
- daysShort: daysShort,
234
- mode: mode,
235
- testId: testId
236
- }), (0, _react2.jsx)(_weekDays.default, {
237
- weeks: weeks,
238
- handleClickDay: handleClickDay,
239
- mode: mode,
240
- monthsLong: monthsLong,
241
- shouldSetFocus: shouldSetFocus,
242
- tabIndex: tabIndex,
243
- testId: testId
244
- })))))
245
- );
194
+ return (0, _react2.jsx)("div", {
195
+ className: className,
196
+ style: style,
197
+ onBlur: handleContainerBlur,
198
+ onFocus: handleContainerFocus,
199
+ "data-testid": testId && "".concat(testId, "--container"),
200
+ ref: ref
201
+ }, (0, _react2.jsx)(_primitives.Box, {
202
+ xcss: boxStyles,
203
+ padding: "space.200",
204
+ "aria-label": "calendar",
205
+ testId: testId && "".concat(testId, "--calendar")
206
+ }, (0, _react2.jsx)(_primitives.Stack, {
207
+ space: "space.150"
208
+ }, (0, _react2.jsx)(_header.default
209
+ // The month number needs to be translated to index in the month
210
+ // name array e.g. 1 (January) -> 0
211
+ , {
212
+ monthLongTitle: monthsLong[monthValue - 1],
213
+ year: yearValue,
214
+ nextMonthLabel: nextMonthLabel,
215
+ previousMonthLabel: previousMonthLabel,
216
+ nextHeading: getNextHeading(),
217
+ previousHeading: getPreviousHeading(),
218
+ handleClickNext: handleClickNext,
219
+ handleClickPrev: handleClickPrev,
220
+ headerId: headerId,
221
+ mode: mode,
222
+ tabIndex: tabIndex,
223
+ testId: testId
224
+ }), (0, _react2.jsx)(_primitives.Box, {
225
+ role: "grid",
226
+ tabIndex: tabIndex,
227
+ onKeyDown: handleContainerKeyDown,
228
+ "aria-labelledby": headerId,
229
+ testId: testId && "".concat(testId, "--calendar-dates")
230
+ }, (0, _react2.jsx)(_weekHeader.default, {
231
+ daysShort: daysShort,
232
+ mode: mode,
233
+ testId: testId
234
+ }), (0, _react2.jsx)(_weekDays.default, {
235
+ weeks: weeks,
236
+ handleClickDay: handleClickDay,
237
+ mode: mode,
238
+ monthsLong: monthsLong,
239
+ shouldSetFocus: shouldSetFocus,
240
+ tabIndex: tabIndex,
241
+ testId: testId
242
+ })))));
246
243
  });
247
244
 
248
245
  /**
@@ -264,5 +261,4 @@ var Calendar = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
264
261
  });
265
262
  }));
266
263
  Calendar.displayName = 'Calendar';
267
- var _default = Calendar;
268
- exports.default = _default;
264
+ var _default = exports.default = Calendar;
@@ -99,5 +99,4 @@ var Date = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(fu
99
99
  Date.displayName = 'Date';
100
100
 
101
101
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
102
- var _default = Date;
103
- exports.default = _default;
102
+ var _default = exports.default = Date;
@@ -100,5 +100,4 @@ var Header = /*#__PURE__*/(0, _react.memo)(function Header(_ref) {
100
100
  Header.displayName = 'Header';
101
101
 
102
102
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
103
- var _default = Header;
104
- exports.default = _default;
103
+ var _default = exports.default = Header;
@@ -27,5 +27,4 @@ var WeekDayGrid = function WeekDayGrid(_ref) {
27
27
  "aria-hidden": "true"
28
28
  }, row) : row;
29
29
  };
30
- var _default = WeekDayGrid;
31
- exports.default = _default;
30
+ var _default = exports.default = WeekDayGrid;
@@ -20,42 +20,36 @@ var WeekDays = /*#__PURE__*/(0, _react.memo)(function WeekDays(_ref) {
20
20
  shouldSetFocus = _ref.shouldSetFocus,
21
21
  tabIndex = _ref.tabIndex,
22
22
  testId = _ref.testId;
23
- return (
24
- // TODO: Determine if there is a better way to render the button (should be
25
- // fixed with introduction of keyboard accessibility of Calendar in
26
- // DSP-9939) (DSP-11588)
27
- (0, _react2.jsx)(_box.default, {
28
- role: "rowgroup",
29
- testId: testId && "".concat(testId, "--month")
30
- }, weeks.map(function (week, i) {
31
- return (0, _react2.jsx)(_weekDayGrid.default, {
32
- key: i,
33
- testId: testId && "".concat(testId, "--week")
34
- }, week.values.map(function (weekDay) {
35
- return (0, _react2.jsx)(_date.default, {
36
- key: "".concat(week.id, "-").concat(weekDay.id),
37
- isDisabled: weekDay.isDisabled,
38
- isFocused: weekDay.isFocused,
39
- isToday: weekDay.isToday,
40
- dayLong: weekDay.weekDayName,
41
- month: weekDay.month,
42
- monthLong: monthsLong[weekDay.month - 1],
43
- onClick: handleClickDay,
44
- isPreviouslySelected: weekDay.isPreviouslySelected,
45
- isSelected: weekDay.isSelected,
46
- isSibling: weekDay.isSiblingMonth,
47
- year: weekDay.year,
48
- mode: mode,
49
- shouldSetFocus: shouldSetFocus,
50
- tabIndex: tabIndex,
51
- testId: testId
52
- }, weekDay.day);
53
- }));
54
- }))
55
- );
23
+ return (0, _react2.jsx)(_box.default, {
24
+ role: "rowgroup",
25
+ testId: testId && "".concat(testId, "--month")
26
+ }, weeks.map(function (week, i) {
27
+ return (0, _react2.jsx)(_weekDayGrid.default, {
28
+ key: i,
29
+ testId: testId && "".concat(testId, "--week")
30
+ }, week.values.map(function (weekDay) {
31
+ return (0, _react2.jsx)(_date.default, {
32
+ key: "".concat(week.id, "-").concat(weekDay.id),
33
+ isDisabled: weekDay.isDisabled,
34
+ isFocused: weekDay.isFocused,
35
+ isToday: weekDay.isToday,
36
+ dayLong: weekDay.weekDayName,
37
+ month: weekDay.month,
38
+ monthLong: monthsLong[weekDay.month - 1],
39
+ onClick: handleClickDay,
40
+ isPreviouslySelected: weekDay.isPreviouslySelected,
41
+ isSelected: weekDay.isSelected,
42
+ isSibling: weekDay.isSiblingMonth,
43
+ year: weekDay.year,
44
+ mode: mode,
45
+ shouldSetFocus: shouldSetFocus,
46
+ tabIndex: tabIndex,
47
+ testId: testId
48
+ }, weekDay.day);
49
+ }));
50
+ }));
56
51
  });
57
52
  WeekDays.displayName = 'WeekDays';
58
53
 
59
54
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
60
- var _default = WeekDays;
61
- exports.default = _default;
55
+ var _default = exports.default = WeekDays;
@@ -46,5 +46,4 @@ var WeekHeader = /*#__PURE__*/(0, _react.memo)(function WeekHeader(_ref) {
46
46
  WeekHeader.displayName = 'WeekHeader';
47
47
 
48
48
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
49
- var _default = WeekHeader;
50
- exports.default = _default;
49
+ var _default = exports.default = WeekHeader;
@@ -4,16 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.monthsPerYear = exports.daysPerWeek = exports.blankStringArray = exports.arrowKeys = void 0;
7
- var arrowKeys = {
7
+ var arrowKeys = exports.arrowKeys = {
8
8
  ArrowDown: 'down',
9
9
  ArrowLeft: 'left',
10
10
  ArrowRight: 'right',
11
11
  ArrowUp: 'up'
12
12
  };
13
- exports.arrowKeys = arrowKeys;
14
- var daysPerWeek = 7;
15
- exports.daysPerWeek = daysPerWeek;
16
- var monthsPerYear = 12;
17
- exports.monthsPerYear = monthsPerYear;
18
- var blankStringArray = [];
19
- exports.blankStringArray = blankStringArray;
13
+ var daysPerWeek = exports.daysPerWeek = 7;
14
+ var monthsPerYear = exports.monthsPerYear = 12;
15
+ var blankStringArray = exports.blankStringArray = [];
@@ -30,7 +30,7 @@ var borderColorFocused = {
30
30
  light: "var(--ds-border-focused, ".concat(_colors.B200, ")"),
31
31
  dark: "var(--ds-border-focused, ".concat(_colors.B100, ")")
32
32
  };
33
- var dateCellStyles = function dateCellStyles() {
33
+ var dateCellStyles = exports.dateCellStyles = function dateCellStyles() {
34
34
  var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light';
35
35
  return {
36
36
  all: 'unset',
@@ -100,5 +100,4 @@ var dateCellStyles = function dateCellStyles() {
100
100
  color: "var(--ds-text-disabled, ".concat(_colors.N40, ")")
101
101
  }
102
102
  };
103
- };
104
- exports.dateCellStyles = dateCellStyles;
103
+ };
@@ -25,7 +25,7 @@ const boxStyles = xcss({
25
25
  const analyticsAttributes = {
26
26
  componentName: 'calendar',
27
27
  packageName: "@atlaskit/calendar",
28
- packageVersion: "13.3.1"
28
+ packageVersion: "13.3.2"
29
29
  };
30
30
  const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
31
31
  day,
@@ -162,58 +162,55 @@ const CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar({
162
162
  return `${monthsLong[previousMonth]} ${showPreviousYear ? yearValue - 1 : yearValue}`;
163
163
  };
164
164
  const headerId = useUniqueId('month-year-header');
165
- return (
166
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-static-element-interactions
167
- jsx("div", {
168
- className: className,
169
- style: style,
170
- onBlur: handleContainerBlur,
171
- onFocus: handleContainerFocus,
172
- "data-testid": testId && `${testId}--container`,
173
- ref: ref
174
- }, jsx(Box, {
175
- xcss: boxStyles,
176
- padding: "space.200",
177
- "aria-label": "calendar",
178
- testId: testId && `${testId}--calendar`
179
- }, jsx(Stack, {
180
- space: "space.150"
181
- }, jsx(Header
182
- // The month number needs to be translated to index in the month
183
- // name array e.g. 1 (January) -> 0
184
- , {
185
- monthLongTitle: monthsLong[monthValue - 1],
186
- year: yearValue,
187
- nextMonthLabel: nextMonthLabel,
188
- previousMonthLabel: previousMonthLabel,
189
- nextHeading: getNextHeading(),
190
- previousHeading: getPreviousHeading(),
191
- handleClickNext: handleClickNext,
192
- handleClickPrev: handleClickPrev,
193
- headerId: headerId,
194
- mode: mode,
195
- tabIndex: tabIndex,
196
- testId: testId
197
- }), jsx(Box, {
198
- role: "grid",
199
- tabIndex: tabIndex,
200
- onKeyDown: handleContainerKeyDown,
201
- "aria-labelledby": headerId,
202
- testId: testId && `${testId}--calendar-dates`
203
- }, jsx(WeekHeaderComponent, {
204
- daysShort: daysShort,
205
- mode: mode,
206
- testId: testId
207
- }), jsx(WeekDaysComponent, {
208
- weeks: weeks,
209
- handleClickDay: handleClickDay,
210
- mode: mode,
211
- monthsLong: monthsLong,
212
- shouldSetFocus: shouldSetFocus,
213
- tabIndex: tabIndex,
214
- testId: testId
215
- })))))
216
- );
165
+ return jsx("div", {
166
+ className: className,
167
+ style: style,
168
+ onBlur: handleContainerBlur,
169
+ onFocus: handleContainerFocus,
170
+ "data-testid": testId && `${testId}--container`,
171
+ ref: ref
172
+ }, jsx(Box, {
173
+ xcss: boxStyles,
174
+ padding: "space.200",
175
+ "aria-label": "calendar",
176
+ testId: testId && `${testId}--calendar`
177
+ }, jsx(Stack, {
178
+ space: "space.150"
179
+ }, jsx(Header
180
+ // The month number needs to be translated to index in the month
181
+ // name array e.g. 1 (January) -> 0
182
+ , {
183
+ monthLongTitle: monthsLong[monthValue - 1],
184
+ year: yearValue,
185
+ nextMonthLabel: nextMonthLabel,
186
+ previousMonthLabel: previousMonthLabel,
187
+ nextHeading: getNextHeading(),
188
+ previousHeading: getPreviousHeading(),
189
+ handleClickNext: handleClickNext,
190
+ handleClickPrev: handleClickPrev,
191
+ headerId: headerId,
192
+ mode: mode,
193
+ tabIndex: tabIndex,
194
+ testId: testId
195
+ }), jsx(Box, {
196
+ role: "grid",
197
+ tabIndex: tabIndex,
198
+ onKeyDown: handleContainerKeyDown,
199
+ "aria-labelledby": headerId,
200
+ testId: testId && `${testId}--calendar-dates`
201
+ }, jsx(WeekHeaderComponent, {
202
+ daysShort: daysShort,
203
+ mode: mode,
204
+ testId: testId
205
+ }), jsx(WeekDaysComponent, {
206
+ weeks: weeks,
207
+ handleClickDay: handleClickDay,
208
+ mode: mode,
209
+ monthsLong: monthsLong,
210
+ shouldSetFocus: shouldSetFocus,
211
+ tabIndex: tabIndex,
212
+ testId: testId
213
+ })))));
217
214
  });
218
215
 
219
216
  /**
@@ -13,35 +13,30 @@ const WeekDays = /*#__PURE__*/memo(function WeekDays({
13
13
  tabIndex,
14
14
  testId
15
15
  }) {
16
- return (
17
- // TODO: Determine if there is a better way to render the button (should be
18
- // fixed with introduction of keyboard accessibility of Calendar in
19
- // DSP-9939) (DSP-11588)
20
- jsx(Box, {
21
- role: "rowgroup",
22
- testId: testId && `${testId}--month`
23
- }, weeks.map((week, i) => jsx(WeekdayGrid, {
24
- key: i,
25
- testId: testId && `${testId}--week`
26
- }, week.values.map(weekDay => jsx(DateComponent, {
27
- key: `${week.id}-${weekDay.id}`,
28
- isDisabled: weekDay.isDisabled,
29
- isFocused: weekDay.isFocused,
30
- isToday: weekDay.isToday,
31
- dayLong: weekDay.weekDayName,
32
- month: weekDay.month,
33
- monthLong: monthsLong[weekDay.month - 1],
34
- onClick: handleClickDay,
35
- isPreviouslySelected: weekDay.isPreviouslySelected,
36
- isSelected: weekDay.isSelected,
37
- isSibling: weekDay.isSiblingMonth,
38
- year: weekDay.year,
39
- mode: mode,
40
- shouldSetFocus: shouldSetFocus,
41
- tabIndex: tabIndex,
42
- testId: testId
43
- }, weekDay.day)))))
44
- );
16
+ return jsx(Box, {
17
+ role: "rowgroup",
18
+ testId: testId && `${testId}--month`
19
+ }, weeks.map((week, i) => jsx(WeekdayGrid, {
20
+ key: i,
21
+ testId: testId && `${testId}--week`
22
+ }, week.values.map(weekDay => jsx(DateComponent, {
23
+ key: `${week.id}-${weekDay.id}`,
24
+ isDisabled: weekDay.isDisabled,
25
+ isFocused: weekDay.isFocused,
26
+ isToday: weekDay.isToday,
27
+ dayLong: weekDay.weekDayName,
28
+ month: weekDay.month,
29
+ monthLong: monthsLong[weekDay.month - 1],
30
+ onClick: handleClickDay,
31
+ isPreviouslySelected: weekDay.isPreviouslySelected,
32
+ isSelected: weekDay.isSelected,
33
+ isSibling: weekDay.isSiblingMonth,
34
+ year: weekDay.year,
35
+ mode: mode,
36
+ shouldSetFocus: shouldSetFocus,
37
+ tabIndex: tabIndex,
38
+ testId: testId
39
+ }, weekDay.day)))));
45
40
  });
46
41
  WeekDays.displayName = 'WeekDays';
47
42
 
@@ -29,7 +29,7 @@ var boxStyles = xcss({
29
29
  var analyticsAttributes = {
30
30
  componentName: 'calendar',
31
31
  packageName: "@atlaskit/calendar",
32
- packageVersion: "13.3.1"
32
+ packageVersion: "13.3.2"
33
33
  };
34
34
  var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
35
35
  var day = _ref.day,
@@ -185,58 +185,55 @@ var CalendarWithMode = /*#__PURE__*/forwardRef(function Calendar(_ref, ref) {
185
185
  return "".concat(monthsLong[previousMonth], " ").concat(showPreviousYear ? yearValue - 1 : yearValue);
186
186
  };
187
187
  var headerId = useUniqueId('month-year-header');
188
- return (
189
- // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-static-element-interactions
190
- jsx("div", {
191
- className: className,
192
- style: style,
193
- onBlur: handleContainerBlur,
194
- onFocus: handleContainerFocus,
195
- "data-testid": testId && "".concat(testId, "--container"),
196
- ref: ref
197
- }, jsx(Box, {
198
- xcss: boxStyles,
199
- padding: "space.200",
200
- "aria-label": "calendar",
201
- testId: testId && "".concat(testId, "--calendar")
202
- }, jsx(Stack, {
203
- space: "space.150"
204
- }, jsx(Header
205
- // The month number needs to be translated to index in the month
206
- // name array e.g. 1 (January) -> 0
207
- , {
208
- monthLongTitle: monthsLong[monthValue - 1],
209
- year: yearValue,
210
- nextMonthLabel: nextMonthLabel,
211
- previousMonthLabel: previousMonthLabel,
212
- nextHeading: getNextHeading(),
213
- previousHeading: getPreviousHeading(),
214
- handleClickNext: handleClickNext,
215
- handleClickPrev: handleClickPrev,
216
- headerId: headerId,
217
- mode: mode,
218
- tabIndex: tabIndex,
219
- testId: testId
220
- }), jsx(Box, {
221
- role: "grid",
222
- tabIndex: tabIndex,
223
- onKeyDown: handleContainerKeyDown,
224
- "aria-labelledby": headerId,
225
- testId: testId && "".concat(testId, "--calendar-dates")
226
- }, jsx(WeekHeaderComponent, {
227
- daysShort: daysShort,
228
- mode: mode,
229
- testId: testId
230
- }), jsx(WeekDaysComponent, {
231
- weeks: weeks,
232
- handleClickDay: handleClickDay,
233
- mode: mode,
234
- monthsLong: monthsLong,
235
- shouldSetFocus: shouldSetFocus,
236
- tabIndex: tabIndex,
237
- testId: testId
238
- })))))
239
- );
188
+ return jsx("div", {
189
+ className: className,
190
+ style: style,
191
+ onBlur: handleContainerBlur,
192
+ onFocus: handleContainerFocus,
193
+ "data-testid": testId && "".concat(testId, "--container"),
194
+ ref: ref
195
+ }, jsx(Box, {
196
+ xcss: boxStyles,
197
+ padding: "space.200",
198
+ "aria-label": "calendar",
199
+ testId: testId && "".concat(testId, "--calendar")
200
+ }, jsx(Stack, {
201
+ space: "space.150"
202
+ }, jsx(Header
203
+ // The month number needs to be translated to index in the month
204
+ // name array e.g. 1 (January) -> 0
205
+ , {
206
+ monthLongTitle: monthsLong[monthValue - 1],
207
+ year: yearValue,
208
+ nextMonthLabel: nextMonthLabel,
209
+ previousMonthLabel: previousMonthLabel,
210
+ nextHeading: getNextHeading(),
211
+ previousHeading: getPreviousHeading(),
212
+ handleClickNext: handleClickNext,
213
+ handleClickPrev: handleClickPrev,
214
+ headerId: headerId,
215
+ mode: mode,
216
+ tabIndex: tabIndex,
217
+ testId: testId
218
+ }), jsx(Box, {
219
+ role: "grid",
220
+ tabIndex: tabIndex,
221
+ onKeyDown: handleContainerKeyDown,
222
+ "aria-labelledby": headerId,
223
+ testId: testId && "".concat(testId, "--calendar-dates")
224
+ }, jsx(WeekHeaderComponent, {
225
+ daysShort: daysShort,
226
+ mode: mode,
227
+ testId: testId
228
+ }), jsx(WeekDaysComponent, {
229
+ weeks: weeks,
230
+ handleClickDay: handleClickDay,
231
+ mode: mode,
232
+ monthsLong: monthsLong,
233
+ shouldSetFocus: shouldSetFocus,
234
+ tabIndex: tabIndex,
235
+ testId: testId
236
+ })))));
240
237
  });
241
238
 
242
239
  /**
@@ -12,39 +12,34 @@ var WeekDays = /*#__PURE__*/memo(function WeekDays(_ref) {
12
12
  shouldSetFocus = _ref.shouldSetFocus,
13
13
  tabIndex = _ref.tabIndex,
14
14
  testId = _ref.testId;
15
- return (
16
- // TODO: Determine if there is a better way to render the button (should be
17
- // fixed with introduction of keyboard accessibility of Calendar in
18
- // DSP-9939) (DSP-11588)
19
- jsx(Box, {
20
- role: "rowgroup",
21
- testId: testId && "".concat(testId, "--month")
22
- }, weeks.map(function (week, i) {
23
- return jsx(WeekdayGrid, {
24
- key: i,
25
- testId: testId && "".concat(testId, "--week")
26
- }, week.values.map(function (weekDay) {
27
- return jsx(DateComponent, {
28
- key: "".concat(week.id, "-").concat(weekDay.id),
29
- isDisabled: weekDay.isDisabled,
30
- isFocused: weekDay.isFocused,
31
- isToday: weekDay.isToday,
32
- dayLong: weekDay.weekDayName,
33
- month: weekDay.month,
34
- monthLong: monthsLong[weekDay.month - 1],
35
- onClick: handleClickDay,
36
- isPreviouslySelected: weekDay.isPreviouslySelected,
37
- isSelected: weekDay.isSelected,
38
- isSibling: weekDay.isSiblingMonth,
39
- year: weekDay.year,
40
- mode: mode,
41
- shouldSetFocus: shouldSetFocus,
42
- tabIndex: tabIndex,
43
- testId: testId
44
- }, weekDay.day);
45
- }));
46
- }))
47
- );
15
+ return jsx(Box, {
16
+ role: "rowgroup",
17
+ testId: testId && "".concat(testId, "--month")
18
+ }, weeks.map(function (week, i) {
19
+ return jsx(WeekdayGrid, {
20
+ key: i,
21
+ testId: testId && "".concat(testId, "--week")
22
+ }, week.values.map(function (weekDay) {
23
+ return jsx(DateComponent, {
24
+ key: "".concat(week.id, "-").concat(weekDay.id),
25
+ isDisabled: weekDay.isDisabled,
26
+ isFocused: weekDay.isFocused,
27
+ isToday: weekDay.isToday,
28
+ dayLong: weekDay.weekDayName,
29
+ month: weekDay.month,
30
+ monthLong: monthsLong[weekDay.month - 1],
31
+ onClick: handleClickDay,
32
+ isPreviouslySelected: weekDay.isPreviouslySelected,
33
+ isSelected: weekDay.isSelected,
34
+ isSibling: weekDay.isSiblingMonth,
35
+ year: weekDay.year,
36
+ mode: mode,
37
+ shouldSetFocus: shouldSetFocus,
38
+ tabIndex: tabIndex,
39
+ testId: testId
40
+ }, weekDay.day);
41
+ }));
42
+ }));
48
43
  });
49
44
  WeekDays.displayName = 'WeekDays';
50
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/calendar",
3
- "version": "13.3.1",
3
+ "version": "13.3.2",
4
4
  "description": "An interactive calendar for date selection experiences.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,15 +24,15 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@atlaskit/analytics-next": "^9.1.0",
27
- "@atlaskit/button": "^16.9.0",
28
- "@atlaskit/ds-explorations": "^2.2.0",
27
+ "@atlaskit/button": "^16.10.0",
28
+ "@atlaskit/ds-explorations": "^3.0.0",
29
29
  "@atlaskit/ds-lib": "^2.2.0",
30
- "@atlaskit/heading": "^1.3.0",
30
+ "@atlaskit/heading": "^1.4.0",
31
31
  "@atlaskit/icon": "^21.12.0",
32
32
  "@atlaskit/locale": "^2.5.0",
33
- "@atlaskit/primitives": "^1.3.0",
33
+ "@atlaskit/primitives": "^1.6.0",
34
34
  "@atlaskit/theme": "^12.6.0",
35
- "@atlaskit/tokens": "^1.18.0",
35
+ "@atlaskit/tokens": "^1.25.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@emotion/react": "^11.7.1",
38
38
  "date-fns": "^2.17.0",