@instructure/ui-date-input 11.2.1-snapshot-9 → 11.3.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,7 +3,7 @@
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
- ## [11.2.1-snapshot-9](https://github.com/instructure/instructure-ui/compare/v11.2.0...v11.2.1-snapshot-9) (2025-12-04)
6
+ # [11.3.0](https://github.com/instructure/instructure-ui/compare/v11.2.0...v11.3.0) (2026-01-12)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-date-input
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-date-input",
3
- "version": "11.2.1-snapshot-9",
3
+ "version": "11.3.0",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -18,25 +18,25 @@
18
18
  "@testing-library/react": "15.0.7",
19
19
  "@testing-library/user-event": "^14.6.1",
20
20
  "vitest": "^3.2.2",
21
- "@instructure/ui-babel-preset": "11.2.1-snapshot-9",
22
- "@instructure/ui-scripts": "11.2.1-snapshot-9",
23
- "@instructure/ui-buttons": "11.2.1-snapshot-9"
21
+ "@instructure/ui-babel-preset": "11.3.0",
22
+ "@instructure/ui-buttons": "11.3.0",
23
+ "@instructure/ui-scripts": "11.3.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.27.6",
27
27
  "moment-timezone": "^0.6.0",
28
- "@instructure/emotion": "11.2.1-snapshot-9",
29
- "@instructure/ui-calendar": "11.2.1-snapshot-9",
30
- "@instructure/shared-types": "11.2.1-snapshot-9",
31
- "@instructure/ui-form-field": "11.2.1-snapshot-9",
32
- "@instructure/ui-i18n": "11.2.1-snapshot-9",
33
- "@instructure/ui-icons": "11.2.1-snapshot-9",
34
- "@instructure/ui-popover": "11.2.1-snapshot-9",
35
- "@instructure/ui-react-utils": "11.2.1-snapshot-9",
36
- "@instructure/ui-text-input": "11.2.1-snapshot-9",
37
- "@instructure/ui-selectable": "11.2.1-snapshot-9",
38
- "@instructure/ui-position": "11.2.1-snapshot-9",
39
- "@instructure/ui-utils": "11.2.1-snapshot-9"
28
+ "@instructure/emotion": "11.3.0",
29
+ "@instructure/ui-form-field": "11.3.0",
30
+ "@instructure/shared-types": "11.3.0",
31
+ "@instructure/ui-i18n": "11.3.0",
32
+ "@instructure/ui-calendar": "11.3.0",
33
+ "@instructure/ui-icons": "11.3.0",
34
+ "@instructure/ui-popover": "11.3.0",
35
+ "@instructure/ui-position": "11.3.0",
36
+ "@instructure/ui-react-utils": "11.3.0",
37
+ "@instructure/ui-selectable": "11.3.0",
38
+ "@instructure/ui-text-input": "11.3.0",
39
+ "@instructure/ui-utils": "11.3.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": ">=18 <=19"
@@ -92,14 +92,14 @@ class Example extends React.Component {
92
92
  // could not be parsed and so the date is invalid
93
93
  if (!selectedDate && value) {
94
94
  return {
95
- messages: [{ type: 'error', text: 'This date is invalid' }],
95
+ messages: [{ type: 'newError', text: 'This date is invalid' }],
96
96
  }
97
97
  }
98
98
  // Display a message if the user has typed in a value that corresponds to a
99
99
  // disabledDate
100
100
  if (this.isDisabledDate(parseDate(selectedDate))) {
101
101
  return {
102
- messages: [{ type: 'error', text: 'This date is disabled' }],
102
+ messages: [{ type: 'newError', text: 'This date is disabled' }],
103
103
  }
104
104
  }
105
105
  })
@@ -197,12 +197,12 @@ const Example = () => {
197
197
  // don't validate empty input
198
198
  if (!utcIsoDate && inputValue.length > 0) {
199
199
  setMessages([{
200
- type: 'error',
200
+ type: 'newError',
201
201
  text: 'This is not a valid date'
202
202
  }])
203
203
  } else if (date < new Date('1990-01-01')) {
204
204
  setMessages([{
205
- type: 'error',
205
+ type: 'newError',
206
206
  text: 'Select date after January 1, 1990'
207
207
  }])
208
208
  } else {