@instructure/ui-date-input 10.26.4 → 10.30.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 +35 -0
- package/es/DateInput2/index.js +1 -0
- package/lib/DateInput2/index.js +1 -0
- package/package.json +18 -18
- package/src/DateInput2/README.md +18 -9
- package/src/DateInput2/index.tsx +1 -0
- package/src/DateInput2/props.ts +5 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DateInput2/index.d.ts +3 -0
- package/types/DateInput2/index.d.ts.map +1 -1
- package/types/DateInput2/props.d.ts +4 -0
- package/types/DateInput2/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.30.0](https://github.com/instructure/instructure-ui/compare/v10.29.0...v10.30.0) (2026-02-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ui-date-input:** add missing role and aria-label to DateInput2 dialog ([1c459f2](https://github.com/instructure/instructure-ui/commit/1c459f2d7b68f01e0c6878c649459f654bb75778))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [10.29.0](https://github.com/instructure/instructure-ui/compare/v10.26.4...v10.29.0) (2026-01-14)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @instructure/ui-date-input
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [10.28.0](https://github.com/instructure/instructure-ui/compare/v10.26.4...v10.28.0) (2026-01-09)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @instructure/ui-date-input
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [10.27.0](https://github.com/instructure/instructure-ui/compare/v10.26.4...v10.27.0) (2026-01-07)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @instructure/ui-date-input
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [10.26.4](https://github.com/instructure/instructure-ui/compare/v10.26.3...v10.26.4) (2025-11-20)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @instructure/ui-date-input
|
package/es/DateInput2/index.js
CHANGED
|
@@ -258,6 +258,7 @@ const DateInput2 = /*#__PURE__*/forwardRef(({
|
|
|
258
258
|
shouldContainFocus: true,
|
|
259
259
|
shouldReturnFocus: true,
|
|
260
260
|
shouldCloseOnDocumentClick: true,
|
|
261
|
+
screenReaderLabel: screenReaderLabels.datePickerDialog,
|
|
261
262
|
children: _jsx(Calendar, {
|
|
262
263
|
withYearPicker: withYearPicker,
|
|
263
264
|
onDateSelected: handleDateSelected,
|
package/lib/DateInput2/index.js
CHANGED
|
@@ -268,6 +268,7 @@ const DateInput2 = exports.DateInput2 = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
268
268
|
shouldContainFocus: true,
|
|
269
269
|
shouldReturnFocus: true,
|
|
270
270
|
shouldCloseOnDocumentClick: true,
|
|
271
|
+
screenReaderLabel: screenReaderLabels.datePickerDialog,
|
|
271
272
|
children: (0, _jsxRuntime.jsx)(_Calendar.Calendar, {
|
|
272
273
|
withYearPicker: withYearPicker,
|
|
273
274
|
onDateSelected: handleDateSelected,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-date-input",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.30.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",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "10.
|
|
27
|
-
"@instructure/ui-buttons": "10.
|
|
28
|
-
"@instructure/ui-scripts": "10.
|
|
26
|
+
"@instructure/ui-babel-preset": "10.30.0",
|
|
27
|
+
"@instructure/ui-buttons": "10.30.0",
|
|
28
|
+
"@instructure/ui-scripts": "10.30.0",
|
|
29
29
|
"@testing-library/jest-dom": "^6.6.3",
|
|
30
30
|
"@testing-library/react": "^16.0.1",
|
|
31
31
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.27.6",
|
|
36
|
-
"@instructure/emotion": "10.
|
|
37
|
-
"@instructure/shared-types": "10.
|
|
38
|
-
"@instructure/ui-calendar": "10.
|
|
39
|
-
"@instructure/ui-form-field": "10.
|
|
40
|
-
"@instructure/ui-i18n": "10.
|
|
41
|
-
"@instructure/ui-icons": "10.
|
|
42
|
-
"@instructure/ui-popover": "10.
|
|
43
|
-
"@instructure/ui-position": "10.
|
|
44
|
-
"@instructure/ui-prop-types": "10.
|
|
45
|
-
"@instructure/ui-react-utils": "10.
|
|
46
|
-
"@instructure/ui-selectable": "10.
|
|
47
|
-
"@instructure/ui-testable": "10.
|
|
48
|
-
"@instructure/ui-text-input": "10.
|
|
49
|
-
"@instructure/ui-utils": "10.
|
|
36
|
+
"@instructure/emotion": "10.30.0",
|
|
37
|
+
"@instructure/shared-types": "10.30.0",
|
|
38
|
+
"@instructure/ui-calendar": "10.30.0",
|
|
39
|
+
"@instructure/ui-form-field": "10.30.0",
|
|
40
|
+
"@instructure/ui-i18n": "10.30.0",
|
|
41
|
+
"@instructure/ui-icons": "10.30.0",
|
|
42
|
+
"@instructure/ui-popover": "10.30.0",
|
|
43
|
+
"@instructure/ui-position": "10.30.0",
|
|
44
|
+
"@instructure/ui-prop-types": "10.30.0",
|
|
45
|
+
"@instructure/ui-react-utils": "10.30.0",
|
|
46
|
+
"@instructure/ui-selectable": "10.30.0",
|
|
47
|
+
"@instructure/ui-testable": "10.30.0",
|
|
48
|
+
"@instructure/ui-text-input": "10.30.0",
|
|
49
|
+
"@instructure/ui-utils": "10.30.0",
|
|
50
50
|
"moment-timezone": "^0.6.0",
|
|
51
51
|
"prop-types": "^15.8.1"
|
|
52
52
|
},
|
package/src/DateInput2/README.md
CHANGED
|
@@ -18,7 +18,8 @@ describes: DateInput2
|
|
|
18
18
|
screenReaderLabels={{
|
|
19
19
|
calendarIcon: 'Calendar',
|
|
20
20
|
nextMonthButton: 'Next month',
|
|
21
|
-
prevMonthButton: 'Previous month'
|
|
21
|
+
prevMonthButton: 'Previous month',
|
|
22
|
+
datePickerDialog: 'Date picker'
|
|
22
23
|
}}
|
|
23
24
|
value={this.state.inputValue}
|
|
24
25
|
width="20rem"
|
|
@@ -51,7 +52,8 @@ describes: DateInput2
|
|
|
51
52
|
screenReaderLabels={{
|
|
52
53
|
calendarIcon: 'Calendar',
|
|
53
54
|
nextMonthButton: 'Next month',
|
|
54
|
-
prevMonthButton: 'Previous month'
|
|
55
|
+
prevMonthButton: 'Previous month',
|
|
56
|
+
datePickerDialog: 'Date picker'
|
|
55
57
|
}}
|
|
56
58
|
value={inputValue}
|
|
57
59
|
width="20rem"
|
|
@@ -100,7 +102,8 @@ const Example = () => {
|
|
|
100
102
|
screenReaderLabels={{
|
|
101
103
|
calendarIcon: 'Calendar',
|
|
102
104
|
nextMonthButton: 'Next month',
|
|
103
|
-
prevMonthButton: 'Previous month'
|
|
105
|
+
prevMonthButton: 'Previous month',
|
|
106
|
+
datePickerDialog: 'Date picker'
|
|
104
107
|
}}
|
|
105
108
|
width="20rem"
|
|
106
109
|
value={value}
|
|
@@ -113,7 +116,8 @@ const Example = () => {
|
|
|
113
116
|
screenReaderLabels={{
|
|
114
117
|
calendarIcon: 'Calendar',
|
|
115
118
|
nextMonthButton: 'Next month',
|
|
116
|
-
prevMonthButton: 'Previous month'
|
|
119
|
+
prevMonthButton: 'Previous month',
|
|
120
|
+
datePickerDialog: 'Date picker'
|
|
117
121
|
}}
|
|
118
122
|
width="20rem"
|
|
119
123
|
value={value2}
|
|
@@ -127,7 +131,8 @@ const Example = () => {
|
|
|
127
131
|
screenReaderLabels={{
|
|
128
132
|
calendarIcon: 'Calendar',
|
|
129
133
|
nextMonthButton: 'Next month',
|
|
130
|
-
prevMonthButton: 'Previous month'
|
|
134
|
+
prevMonthButton: 'Previous month',
|
|
135
|
+
datePickerDialog: 'Date picker'
|
|
131
136
|
}}
|
|
132
137
|
width="20rem"
|
|
133
138
|
value={value3}
|
|
@@ -176,7 +181,8 @@ In the examples above you can see that the `onChange` callback also return a UTC
|
|
|
176
181
|
screenReaderLabels={{
|
|
177
182
|
calendarIcon: 'Calendar',
|
|
178
183
|
nextMonthButton: 'Next month',
|
|
179
|
-
prevMonthButton: 'Previous month'
|
|
184
|
+
prevMonthButton: 'Previous month',
|
|
185
|
+
datePickerDialog: 'Date picker'
|
|
180
186
|
}}
|
|
181
187
|
value={this.state.inputValue}
|
|
182
188
|
width="20rem"
|
|
@@ -214,7 +220,8 @@ In the examples above you can see that the `onChange` callback also return a UTC
|
|
|
214
220
|
screenReaderLabels={{
|
|
215
221
|
calendarIcon: 'Calendar',
|
|
216
222
|
nextMonthButton: 'Next month',
|
|
217
|
-
prevMonthButton: 'Previous month'
|
|
223
|
+
prevMonthButton: 'Previous month',
|
|
224
|
+
datePickerDialog: 'Date picker'
|
|
218
225
|
}}
|
|
219
226
|
value={inputValue}
|
|
220
227
|
width="20rem"
|
|
@@ -283,7 +290,8 @@ const Example = () => {
|
|
|
283
290
|
screenReaderLabels={{
|
|
284
291
|
calendarIcon: 'Calendar',
|
|
285
292
|
nextMonthButton: 'Next month',
|
|
286
|
-
prevMonthButton: 'Previous month'
|
|
293
|
+
prevMonthButton: 'Previous month',
|
|
294
|
+
datePickerDialog: 'Date picker'
|
|
287
295
|
}}
|
|
288
296
|
width="20rem"
|
|
289
297
|
value={value}
|
|
@@ -324,7 +332,8 @@ const Example = () => {
|
|
|
324
332
|
screenReaderLabels={{
|
|
325
333
|
calendarIcon: 'Calendar',
|
|
326
334
|
nextMonthButton: 'Next month',
|
|
327
|
-
prevMonthButton: 'Previous month'
|
|
335
|
+
prevMonthButton: 'Previous month',
|
|
336
|
+
datePickerDialog: 'Date picker'
|
|
328
337
|
}}
|
|
329
338
|
value={inputValue}
|
|
330
339
|
locale="en-us"
|
package/src/DateInput2/index.tsx
CHANGED
package/src/DateInput2/props.ts
CHANGED
|
@@ -40,10 +40,15 @@ type DateInput2OwnProps = {
|
|
|
40
40
|
* Specifies the input label.
|
|
41
41
|
*/
|
|
42
42
|
renderLabel: Renderable
|
|
43
|
+
/**
|
|
44
|
+
* Accessible labels for the calendar button, month navigation buttons, and date picker dialog.
|
|
45
|
+
*/
|
|
43
46
|
screenReaderLabels: {
|
|
44
47
|
calendarIcon: string
|
|
45
48
|
prevMonthButton: string
|
|
46
49
|
nextMonthButton: string
|
|
50
|
+
// TODO: Make this field required in the next newest version. Currently optional to avoid breaking change.
|
|
51
|
+
datePickerDialog?: string
|
|
47
52
|
}
|
|
48
53
|
/**
|
|
49
54
|
* Specifies the input value.
|