@instructure/ui-calendar 8.56.2-snapshot-2 → 8.56.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 +12 -1
- package/es/Calendar/index.js +1 -1
- package/lib/Calendar/index.js +1 -1
- package/package.json +19 -19
- package/src/Calendar/index.tsx +8 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Calendar/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [8.56.
|
|
6
|
+
## [8.56.3](https://github.com/instructure/instructure-ui/compare/v8.56.2...v8.56.3) (2024-09-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-calendar,ui-color-picker:** fix code to remove unnecessary warnings ([f111d2e](https://github.com/instructure/instructure-ui/commit/f111d2efd8873dbc3d2fd6653af2d39b9691de81))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [8.56.2](https://github.com/instructure/instructure-ui/compare/v8.56.1...v8.56.2) (2024-08-06)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @instructure/ui-calendar
|
|
9
20
|
|
package/es/Calendar/index.js
CHANGED
|
@@ -286,7 +286,7 @@ let Calendar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
|
|
|
286
286
|
return jsx(Calendar.Day, {
|
|
287
287
|
key: dateStr,
|
|
288
288
|
date: dateStr,
|
|
289
|
-
isSelected: selectedDate ? date.isSame(selectedDate, 'day') : false,
|
|
289
|
+
isSelected: selectedDate ? date.isSame(DateTime.parse(selectedDate, this.locale(), this.timezone()), 'day') : false,
|
|
290
290
|
isToday: date.isSame(today, 'day'),
|
|
291
291
|
isOutsideMonth: !date.isSame(visibleMonth, 'month'),
|
|
292
292
|
label: date.format('D MMMM YYYY') // used by screen readers
|
package/lib/Calendar/index.js
CHANGED
|
@@ -297,7 +297,7 @@ let Calendar = exports.Calendar = (_dec = (0, _emotion.withStyle)(_styles.defaul
|
|
|
297
297
|
return (0, _emotion.jsx)(Calendar.Day, {
|
|
298
298
|
key: dateStr,
|
|
299
299
|
date: dateStr,
|
|
300
|
-
isSelected: selectedDate ? date.isSame(selectedDate, 'day') : false,
|
|
300
|
+
isSelected: selectedDate ? date.isSame(_DateTime.DateTime.parse(selectedDate, this.locale(), this.timezone()), 'day') : false,
|
|
301
301
|
isToday: date.isSame(today, 'day'),
|
|
302
302
|
isOutsideMonth: !date.isSame(visibleMonth, 'month'),
|
|
303
303
|
label: date.format('D MMMM YYYY') // used by screen readers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-calendar",
|
|
3
|
-
"version": "8.56.
|
|
3
|
+
"version": "8.56.3",
|
|
4
4
|
"description": "A calendar component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,29 +23,29 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.56.
|
|
27
|
-
"@instructure/ui-color-utils": "8.56.
|
|
28
|
-
"@instructure/ui-test-locator": "8.56.
|
|
29
|
-
"@instructure/ui-test-utils": "8.56.
|
|
30
|
-
"@instructure/ui-themes": "8.56.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.56.3",
|
|
27
|
+
"@instructure/ui-color-utils": "8.56.3",
|
|
28
|
+
"@instructure/ui-test-locator": "8.56.3",
|
|
29
|
+
"@instructure/ui-test-utils": "8.56.3",
|
|
30
|
+
"@instructure/ui-themes": "8.56.3",
|
|
31
31
|
"@testing-library/jest-dom": "^6.1.4",
|
|
32
32
|
"@testing-library/react": "^14.1.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.23.2",
|
|
36
|
-
"@instructure/console": "8.56.
|
|
37
|
-
"@instructure/emotion": "8.56.
|
|
38
|
-
"@instructure/shared-types": "8.56.
|
|
39
|
-
"@instructure/ui-a11y-content": "8.56.
|
|
40
|
-
"@instructure/ui-buttons": "8.56.
|
|
41
|
-
"@instructure/ui-i18n": "8.56.
|
|
42
|
-
"@instructure/ui-icons": "8.56.
|
|
43
|
-
"@instructure/ui-prop-types": "8.56.
|
|
44
|
-
"@instructure/ui-react-utils": "8.56.
|
|
45
|
-
"@instructure/ui-testable": "8.56.
|
|
46
|
-
"@instructure/ui-utils": "8.56.
|
|
47
|
-
"@instructure/ui-view": "8.56.
|
|
48
|
-
"@instructure/uid": "8.56.
|
|
36
|
+
"@instructure/console": "8.56.3",
|
|
37
|
+
"@instructure/emotion": "8.56.3",
|
|
38
|
+
"@instructure/shared-types": "8.56.3",
|
|
39
|
+
"@instructure/ui-a11y-content": "8.56.3",
|
|
40
|
+
"@instructure/ui-buttons": "8.56.3",
|
|
41
|
+
"@instructure/ui-i18n": "8.56.3",
|
|
42
|
+
"@instructure/ui-icons": "8.56.3",
|
|
43
|
+
"@instructure/ui-prop-types": "8.56.3",
|
|
44
|
+
"@instructure/ui-react-utils": "8.56.3",
|
|
45
|
+
"@instructure/ui-testable": "8.56.3",
|
|
46
|
+
"@instructure/ui-utils": "8.56.3",
|
|
47
|
+
"@instructure/ui-view": "8.56.3",
|
|
48
|
+
"@instructure/uid": "8.56.3",
|
|
49
49
|
"prop-types": "^15.8.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
package/src/Calendar/index.tsx
CHANGED
|
@@ -401,7 +401,14 @@ class Calendar extends Component<CalendarProps, CalendarState> {
|
|
|
401
401
|
<Calendar.Day
|
|
402
402
|
key={dateStr}
|
|
403
403
|
date={dateStr}
|
|
404
|
-
isSelected={
|
|
404
|
+
isSelected={
|
|
405
|
+
selectedDate
|
|
406
|
+
? date.isSame(
|
|
407
|
+
DateTime.parse(selectedDate, this.locale(), this.timezone()),
|
|
408
|
+
'day'
|
|
409
|
+
)
|
|
410
|
+
: false
|
|
411
|
+
}
|
|
405
412
|
isToday={date.isSame(today, 'day')}
|
|
406
413
|
isOutsideMonth={!date.isSame(visibleMonth, 'month')}
|
|
407
414
|
label={date.format('D MMMM YYYY')} // used by screen readers
|