@instructure/ui-calendar 10.4.0 → 10.4.1-snapshot-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
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [10.4.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1-snapshot-0) (2024-10-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-calendar
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.4.0](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.4.0) (2024-10-16)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-calendar",
|
|
3
|
-
"version": "10.4.0",
|
|
3
|
+
"version": "10.4.1-snapshot-0",
|
|
4
4
|
"description": "A calendar component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,31 +23,31 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "10.4.0",
|
|
27
|
-
"@instructure/ui-color-utils": "10.4.0",
|
|
28
|
-
"@instructure/ui-test-locator": "10.4.0",
|
|
29
|
-
"@instructure/ui-test-utils": "10.4.0",
|
|
30
|
-
"@instructure/ui-themes": "10.4.0",
|
|
26
|
+
"@instructure/ui-babel-preset": "10.4.1-snapshot-0",
|
|
27
|
+
"@instructure/ui-color-utils": "10.4.1-snapshot-0",
|
|
28
|
+
"@instructure/ui-test-locator": "10.4.1-snapshot-0",
|
|
29
|
+
"@instructure/ui-test-utils": "10.4.1-snapshot-0",
|
|
30
|
+
"@instructure/ui-themes": "10.4.1-snapshot-0",
|
|
31
31
|
"@testing-library/jest-dom": "^6.4.6",
|
|
32
32
|
"@testing-library/react": "^16.0.1",
|
|
33
33
|
"vitest": "^2.1.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.25.6",
|
|
37
|
-
"@instructure/console": "10.4.0",
|
|
38
|
-
"@instructure/emotion": "10.4.0",
|
|
39
|
-
"@instructure/shared-types": "10.4.0",
|
|
40
|
-
"@instructure/ui-a11y-content": "10.4.0",
|
|
41
|
-
"@instructure/ui-buttons": "10.4.0",
|
|
42
|
-
"@instructure/ui-i18n": "10.4.0",
|
|
43
|
-
"@instructure/ui-icons": "10.4.0",
|
|
44
|
-
"@instructure/ui-prop-types": "10.4.0",
|
|
45
|
-
"@instructure/ui-react-utils": "10.4.0",
|
|
46
|
-
"@instructure/ui-simple-select": "10.4.0",
|
|
47
|
-
"@instructure/ui-testable": "10.4.0",
|
|
48
|
-
"@instructure/ui-utils": "10.4.0",
|
|
49
|
-
"@instructure/ui-view": "10.4.0",
|
|
50
|
-
"@instructure/uid": "10.4.0",
|
|
37
|
+
"@instructure/console": "10.4.1-snapshot-0",
|
|
38
|
+
"@instructure/emotion": "10.4.1-snapshot-0",
|
|
39
|
+
"@instructure/shared-types": "10.4.1-snapshot-0",
|
|
40
|
+
"@instructure/ui-a11y-content": "10.4.1-snapshot-0",
|
|
41
|
+
"@instructure/ui-buttons": "10.4.1-snapshot-0",
|
|
42
|
+
"@instructure/ui-i18n": "10.4.1-snapshot-0",
|
|
43
|
+
"@instructure/ui-icons": "10.4.1-snapshot-0",
|
|
44
|
+
"@instructure/ui-prop-types": "10.4.1-snapshot-0",
|
|
45
|
+
"@instructure/ui-react-utils": "10.4.1-snapshot-0",
|
|
46
|
+
"@instructure/ui-simple-select": "10.4.1-snapshot-0",
|
|
47
|
+
"@instructure/ui-testable": "10.4.1-snapshot-0",
|
|
48
|
+
"@instructure/ui-utils": "10.4.1-snapshot-0",
|
|
49
|
+
"@instructure/ui-view": "10.4.1-snapshot-0",
|
|
50
|
+
"@instructure/uid": "10.4.1-snapshot-0",
|
|
51
51
|
"prop-types": "^15.8.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
package/src/Calendar/README.md
CHANGED
|
@@ -162,7 +162,7 @@ basic `Calendar` might be created using utilities from
|
|
|
162
162
|
|
|
163
163
|
return Array.apply(null, Array(Calendar.DAY_COUNT)).map(() => {
|
|
164
164
|
const currentDate = date.clone()
|
|
165
|
-
date.add({days: 1})
|
|
165
|
+
date.add({ days: 1 })
|
|
166
166
|
|
|
167
167
|
// This workaround is needed because moment's `.add({days: 1})` function has a bug that happens when the date added lands perfectly onto the DST cutoff,
|
|
168
168
|
// in these cases adding 1 day results in 23 hours added instead,
|
|
@@ -173,7 +173,7 @@ basic `Calendar` might be created using utilities from
|
|
|
173
173
|
// Please note that this causes one hour of time difference in the affected timezones/dates and to
|
|
174
174
|
// fully solve this bug we need to change to something like luxon which handles this properly
|
|
175
175
|
if (currentDate.clone().format('HH') === '23') {
|
|
176
|
-
return currentDate.clone().add({hours: 1})
|
|
176
|
+
return currentDate.clone().add({ hours: 1 })
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
return currentDate.clone()
|
|
@@ -287,7 +287,7 @@ basic `Calendar` might be created using utilities from
|
|
|
287
287
|
|
|
288
288
|
return Array.apply(null, Array(Calendar.DAY_COUNT)).map(() => {
|
|
289
289
|
const currentDate = date.clone()
|
|
290
|
-
date.add({days: 1})
|
|
290
|
+
date.add({ days: 1 })
|
|
291
291
|
|
|
292
292
|
// This workaround is needed because moment's `.add({days: 1})` function has a bug that happens when the date added lands perfectly onto the DST cutoff,
|
|
293
293
|
// in these cases adding 1 day results in 23 hours added instead,
|
|
@@ -298,7 +298,7 @@ basic `Calendar` might be created using utilities from
|
|
|
298
298
|
// Please note that this causes one hour of time difference in the affected timezones/dates and to
|
|
299
299
|
// fully solve this bug we need to change to something like luxon which handles this properly
|
|
300
300
|
if (currentDate.clone().format('HH') === '23') {
|
|
301
|
-
return currentDate.clone().add({hours: 1})
|
|
301
|
+
return currentDate.clone().add({ hours: 1 })
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
return currentDate.clone()
|
|
@@ -431,5 +431,5 @@ the abbreviation. ex. `[<AccessibleContent alt="Sunday">Sun</AccessibleContent>,
|
|
|
431
431
|
|
|
432
432
|
The `renderNextMonthButton` and `renderPrevMonthButton` can be supplied using the
|
|
433
433
|
[IconButton](#IconButton) component with the `size` prop set to
|
|
434
|
-
`small`, the `withBackground` and `withBorder` props both set to `false`, and the `renderIcon` prop set to [IconArrowOpenStart](#
|
|
435
|
-
[IconArrowOpenEnd](#
|
|
434
|
+
`small`, the `withBackground` and `withBorder` props both set to `false`, and the `renderIcon` prop set to [IconArrowOpenStart](#icons) or
|
|
435
|
+
[IconArrowOpenEnd](#icons).
|
package/src/Calendar/props.ts
CHANGED
|
@@ -106,14 +106,14 @@ type CalendarOwnProps = {
|
|
|
106
106
|
* A button to render in the navigation header. The recommendation is to
|
|
107
107
|
* compose it with the [IconButton](#IconButton) component by setting the `size`
|
|
108
108
|
* prop to `small`, `withBorder` and `withBackground` to `false`, and setting
|
|
109
|
-
* `renderIcon` to [IconArrowOpenEnd](#
|
|
109
|
+
* `renderIcon` to [IconArrowOpenEnd](#icons).
|
|
110
110
|
*/
|
|
111
111
|
renderNextMonthButton?: Renderable
|
|
112
112
|
/**
|
|
113
113
|
* A button to render in the navigation header. The recommendation is to
|
|
114
114
|
* compose it with the [IconButton](#Button) component by setting the `size`
|
|
115
115
|
* prop to `small`, `withBorder` and `withBackground` to `false`, and setting
|
|
116
|
-
* `renderIcon` to [IconArrowOpenStart](#
|
|
116
|
+
* `renderIcon` to [IconArrowOpenStart](#icons).
|
|
117
117
|
*/
|
|
118
118
|
renderPrevMonthButton?: Renderable
|
|
119
119
|
/**
|