@instructure/ui-calendar 9.5.2 → 9.6.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,17 @@
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
+ # [9.6.0](https://github.com/instructure/instructure-ui/compare/v9.5.2...v9.6.0) (2024-08-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ui-calendar,ui-date-input:** improve DateInput2 onChange callback, add date formatting option, extend docs ([4e2c23c](https://github.com/instructure/instructure-ui/commit/4e2c23c3288885e49030f1f471d61b2fed29b54c))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [9.5.2](https://github.com/instructure/instructure-ui/compare/v9.5.1...v9.5.2) (2024-08-05)
7
18
 
8
19
 
@@ -143,7 +143,7 @@ let Calendar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
143
143
  visibleMonth: newDate
144
144
  });
145
145
  };
146
- // date is returned es a ISO string, like 2021-09-14T22:00:00.000Z
146
+ // date is returned as an ISO string, like 2021-09-14T22:00:00.000Z
147
147
  this.handleDayClick = (event, {
148
148
  date
149
149
  }) => {
@@ -154,7 +154,7 @@ let Calendar = exports.Calendar = (_dec = (0, _emotion.withStyle)(_styles.defaul
154
154
  visibleMonth: newDate
155
155
  });
156
156
  };
157
- // date is returned es a ISO string, like 2021-09-14T22:00:00.000Z
157
+ // date is returned as an ISO string, like 2021-09-14T22:00:00.000Z
158
158
  this.handleDayClick = (event, {
159
159
  date
160
160
  }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-calendar",
3
- "version": "9.5.2",
3
+ "version": "9.6.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": "9.5.2",
27
- "@instructure/ui-color-utils": "9.5.2",
28
- "@instructure/ui-test-locator": "9.5.2",
29
- "@instructure/ui-test-utils": "9.5.2",
30
- "@instructure/ui-themes": "9.5.2",
26
+ "@instructure/ui-babel-preset": "9.6.0",
27
+ "@instructure/ui-color-utils": "9.6.0",
28
+ "@instructure/ui-test-locator": "9.6.0",
29
+ "@instructure/ui-test-utils": "9.6.0",
30
+ "@instructure/ui-themes": "9.6.0",
31
31
  "@testing-library/jest-dom": "^6.4.6",
32
32
  "@testing-library/react": "^15.0.7",
33
33
  "vitest": "^2.0.2"
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.24.5",
37
- "@instructure/console": "9.5.2",
38
- "@instructure/emotion": "9.5.2",
39
- "@instructure/shared-types": "9.5.2",
40
- "@instructure/ui-a11y-content": "9.5.2",
41
- "@instructure/ui-buttons": "9.5.2",
42
- "@instructure/ui-i18n": "9.5.2",
43
- "@instructure/ui-icons": "9.5.2",
44
- "@instructure/ui-prop-types": "9.5.2",
45
- "@instructure/ui-react-utils": "9.5.2",
46
- "@instructure/ui-simple-select": "9.5.2",
47
- "@instructure/ui-testable": "9.5.2",
48
- "@instructure/ui-utils": "9.5.2",
49
- "@instructure/ui-view": "9.5.2",
50
- "@instructure/uid": "9.5.2",
37
+ "@instructure/console": "9.6.0",
38
+ "@instructure/emotion": "9.6.0",
39
+ "@instructure/shared-types": "9.6.0",
40
+ "@instructure/ui-a11y-content": "9.6.0",
41
+ "@instructure/ui-buttons": "9.6.0",
42
+ "@instructure/ui-i18n": "9.6.0",
43
+ "@instructure/ui-icons": "9.6.0",
44
+ "@instructure/ui-prop-types": "9.6.0",
45
+ "@instructure/ui-react-utils": "9.6.0",
46
+ "@instructure/ui-simple-select": "9.6.0",
47
+ "@instructure/ui-testable": "9.6.0",
48
+ "@instructure/ui-utils": "9.6.0",
49
+ "@instructure/ui-view": "9.6.0",
50
+ "@instructure/uid": "9.6.0",
51
51
  "prop-types": "^15.8.1"
52
52
  },
53
53
  "peerDependencies": {
@@ -465,7 +465,7 @@ class Calendar extends Component<CalendarProps, CalendarState> {
465
465
  return DateTime.browserTimeZone()
466
466
  }
467
467
 
468
- // date is returned es a ISO string, like 2021-09-14T22:00:00.000Z
468
+ // date is returned as an ISO string, like 2021-09-14T22:00:00.000Z
469
469
  handleDayClick = (event: MouseEvent<any>, { date }: { date: string }) => {
470
470
  if (this.props.onDateSelected) {
471
471
  const parsedDate = DateTime.parse(date, this.locale(), this.timezone())