@instructure/ui-date-input 11.7.3 → 11.7.4-pr-snapshot-1781695314229
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 -0
- package/LICENSE.md +1 -0
- package/{lib/DateInput/v1/styles.js → babel.config.cjs} +12 -28
- package/es/DateInput/v1/index.js +3 -3
- package/es/DateInput/v2/index.js +9 -4
- package/es/exports/a.js +3 -2
- package/es/exports/b.js +3 -2
- package/package.json +18 -23
- package/src/DateInput/v1/index.tsx +3 -2
- package/src/DateInput/v2/index.tsx +7 -6
- package/src/exports/a.ts +2 -2
- package/src/exports/b.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DateInput/v1/index.d.ts +1 -0
- package/types/DateInput/v1/index.d.ts.map +1 -1
- package/types/DateInput/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +2 -2
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +2 -2
- package/types/exports/b.d.ts.map +1 -1
- package/lib/DateInput/v1/index.js +0 -426
- package/lib/DateInput/v1/props.js +0 -31
- package/lib/DateInput/v2/index.js +0 -291
- package/lib/DateInput/v2/props.js +0 -5
- package/lib/DateInput2/v1/index.js +0 -290
- package/lib/DateInput2/v1/props.js +0 -5
- package/lib/exports/a.js +0 -19
- package/lib/exports/b.js +0 -19
- package/lib/package.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +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
|
+
## [11.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-date-input:** add scrollbar to dateinput v2 ([84f11c1](https://github.com/instructure/instructure-ui/commit/84f11c1c5638f9a91946b29125869115f66c5f0f))
|
|
12
|
+
* **ui-dialog,ui-date-input,ui-calendar:** add aria-live to calendar header, descriptive nav button labels with target month, aria-modal on focused dialogs ([ac11880](https://github.com/instructure/instructure-ui/commit/ac11880013be74f148558671177ed25c9286204f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
|
|
7
19
|
|
|
8
20
|
|
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
1
|
/*
|
|
8
2
|
* The MIT License (MIT)
|
|
9
3
|
*
|
|
@@ -28,25 +22,15 @@ exports.default = void 0;
|
|
|
28
22
|
* SOFTWARE.
|
|
29
23
|
*/
|
|
30
24
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
label: 'dateInput',
|
|
44
|
-
display: props.display
|
|
45
|
-
},
|
|
46
|
-
assistiveText: {
|
|
47
|
-
label: 'dateInput__assistiveText',
|
|
48
|
-
display: 'none'
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
var _default = exports.default = generateStyle;
|
|
25
|
+
module.exports = {
|
|
26
|
+
presets: [
|
|
27
|
+
[
|
|
28
|
+
require('@instructure/ui-babel-preset'),
|
|
29
|
+
{
|
|
30
|
+
esModules: Boolean(process.env.ES_MODULES),
|
|
31
|
+
removeConsole: process.env.NODE_ENV === 'production',
|
|
32
|
+
transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
]
|
|
36
|
+
}
|
package/es/DateInput/v1/index.js
CHANGED
|
@@ -33,8 +33,8 @@ import { createChainedFunction } from '@instructure/ui-utils';
|
|
|
33
33
|
import { getInteraction, callRenderProp, safeCloneElement, passthroughProps } from '@instructure/ui-react-utils';
|
|
34
34
|
import { DateTime, Locale } from '@instructure/ui-i18n';
|
|
35
35
|
import { withStyle } from '@instructure/emotion';
|
|
36
|
-
import generateStyle from
|
|
37
|
-
import { allowedProps } from
|
|
36
|
+
import generateStyle from './styles.js';
|
|
37
|
+
import { allowedProps } from './props.js';
|
|
38
38
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
39
39
|
/**
|
|
40
40
|
---
|
|
@@ -42,7 +42,7 @@ category: components
|
|
|
42
42
|
---
|
|
43
43
|
**/
|
|
44
44
|
let DateInput = (_dec = withStyle(generateStyle, null), _dec(_class = class DateInput extends Component {
|
|
45
|
-
static displayName =
|
|
45
|
+
static displayName = 'DateInput';
|
|
46
46
|
static componentId = 'DateInput';
|
|
47
47
|
static Day = Calendar.Day;
|
|
48
48
|
static allowedProps = allowedProps;
|
package/es/DateInput/v2/index.js
CHANGED
|
@@ -245,6 +245,7 @@ const DateInput = /*#__PURE__*/forwardRef(({
|
|
|
245
245
|
shouldContainFocus: true,
|
|
246
246
|
shouldReturnFocus: true,
|
|
247
247
|
shouldCloseOnDocumentClick: true,
|
|
248
|
+
shouldScrollContent: true,
|
|
248
249
|
screenReaderLabel: screenReaderLabels.datePickerDialog,
|
|
249
250
|
children: _jsx(Calendar, {
|
|
250
251
|
withYearPicker: withYearPicker,
|
|
@@ -255,23 +256,27 @@ const DateInput = /*#__PURE__*/forwardRef(({
|
|
|
255
256
|
visibleMonth: selectedDate,
|
|
256
257
|
locale: userLocale,
|
|
257
258
|
timezone: userTimezone,
|
|
258
|
-
renderNextMonthButton:
|
|
259
|
+
renderNextMonthButton: ({
|
|
260
|
+
targetMonthSrLabel
|
|
261
|
+
}) => _jsx(IconButton, {
|
|
259
262
|
size: "small",
|
|
260
263
|
withBackground: false,
|
|
261
264
|
withBorder: false,
|
|
262
265
|
renderIcon: _jsx(ChevronRightInstUIIcon, {
|
|
263
266
|
color: "baseColor"
|
|
264
267
|
}),
|
|
265
|
-
screenReaderLabel: screenReaderLabels.nextMonthButton
|
|
268
|
+
screenReaderLabel: `${screenReaderLabels.nextMonthButton}, ${targetMonthSrLabel}`
|
|
266
269
|
}),
|
|
267
|
-
renderPrevMonthButton:
|
|
270
|
+
renderPrevMonthButton: ({
|
|
271
|
+
targetMonthSrLabel
|
|
272
|
+
}) => _jsx(IconButton, {
|
|
268
273
|
size: "small",
|
|
269
274
|
withBackground: false,
|
|
270
275
|
withBorder: false,
|
|
271
276
|
renderIcon: _jsx(ChevronLeftInstUIIcon, {
|
|
272
277
|
color: "baseColor"
|
|
273
278
|
}),
|
|
274
|
-
screenReaderLabel: screenReaderLabels.prevMonthButton
|
|
279
|
+
screenReaderLabel: `${screenReaderLabels.prevMonthButton}, ${targetMonthSrLabel}`
|
|
275
280
|
})
|
|
276
281
|
})
|
|
277
282
|
})
|
package/es/exports/a.js
CHANGED
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { DateInput } from '../DateInput/v1/index.js';
|
|
26
|
+
export { DateInput2 } from '../DateInput2/v1/index.js';
|
package/es/exports/b.js
CHANGED
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { DateInput } from '../DateInput/v2/index.js';
|
|
26
|
+
export { DateInput2 } from '../DateInput2/v1/index.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-date-input",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.4-pr-snapshot-1781695314229",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
7
|
"module": "./es/index.js",
|
|
7
|
-
"main": "./lib/index.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -15,27 +15,27 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/emotion": "11.7.
|
|
19
|
-
"@instructure/ui-
|
|
20
|
-
"@instructure/ui-calendar": "11.7.
|
|
21
|
-
"@instructure/ui-
|
|
22
|
-
"@instructure/shared-types": "11.7.
|
|
23
|
-
"@instructure/ui-icons": "11.7.
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-selectable": "11.7.
|
|
27
|
-
"@instructure/ui-text-input": "11.7.
|
|
28
|
-
"@instructure/ui-utils": "11.7.
|
|
29
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
|
|
19
|
+
"@instructure/ui-i18n": "11.7.4-pr-snapshot-1781695314229",
|
|
20
|
+
"@instructure/ui-calendar": "11.7.4-pr-snapshot-1781695314229",
|
|
21
|
+
"@instructure/ui-form-field": "11.7.4-pr-snapshot-1781695314229",
|
|
22
|
+
"@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
|
|
23
|
+
"@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
|
|
24
|
+
"@instructure/ui-popover": "11.7.4-pr-snapshot-1781695314229",
|
|
25
|
+
"@instructure/ui-position": "11.7.4-pr-snapshot-1781695314229",
|
|
26
|
+
"@instructure/ui-selectable": "11.7.4-pr-snapshot-1781695314229",
|
|
27
|
+
"@instructure/ui-text-input": "11.7.4-pr-snapshot-1781695314229",
|
|
28
|
+
"@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
29
|
+
"@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@testing-library/jest-dom": "^6.6.3",
|
|
33
33
|
"@testing-library/react": "15.0.7",
|
|
34
34
|
"@testing-library/user-event": "^14.6.1",
|
|
35
35
|
"vitest": "^3.2.2",
|
|
36
|
-
"@instructure/ui-babel-preset": "11.7.
|
|
37
|
-
"@instructure/ui-
|
|
38
|
-
"@instructure/ui-
|
|
36
|
+
"@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
|
|
37
|
+
"@instructure/ui-buttons": "11.7.4-pr-snapshot-1781695314229",
|
|
38
|
+
"@instructure/ui-scripts": "11.7.4-pr-snapshot-1781695314229"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=18 <=19"
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"sideEffects": false,
|
|
47
47
|
"exports": {
|
|
48
|
-
"./lib/*": "./lib/*",
|
|
49
48
|
"./es/*": "./es/*",
|
|
50
49
|
"./types/*": "./types/*",
|
|
51
50
|
"./package.json": "./package.json",
|
|
@@ -54,28 +53,24 @@
|
|
|
54
53
|
"src": "./src/exports/a.ts",
|
|
55
54
|
"types": "./types/exports/a.d.ts",
|
|
56
55
|
"import": "./es/exports/a.js",
|
|
57
|
-
"require": "./lib/exports/a.js",
|
|
58
56
|
"default": "./es/exports/a.js"
|
|
59
57
|
},
|
|
60
58
|
"./v11_6": {
|
|
61
59
|
"src": "./src/exports/a.ts",
|
|
62
60
|
"types": "./types/exports/a.d.ts",
|
|
63
61
|
"import": "./es/exports/a.js",
|
|
64
|
-
"require": "./lib/exports/a.js",
|
|
65
62
|
"default": "./es/exports/a.js"
|
|
66
63
|
},
|
|
67
64
|
"./v11_7": {
|
|
68
65
|
"src": "./src/exports/b.ts",
|
|
69
66
|
"types": "./types/exports/b.d.ts",
|
|
70
67
|
"import": "./es/exports/b.js",
|
|
71
|
-
"require": "./lib/exports/b.js",
|
|
72
68
|
"default": "./es/exports/b.js"
|
|
73
69
|
},
|
|
74
70
|
"./latest": {
|
|
75
71
|
"src": "./src/exports/b.ts",
|
|
76
72
|
"types": "./types/exports/b.d.ts",
|
|
77
73
|
"import": "./es/exports/b.js",
|
|
78
|
-
"require": "./lib/exports/b.js",
|
|
79
74
|
"default": "./es/exports/b.js"
|
|
80
75
|
}
|
|
81
76
|
},
|
|
@@ -83,7 +78,7 @@
|
|
|
83
78
|
"lint": "ui-scripts lint",
|
|
84
79
|
"lint:fix": "ui-scripts lint --fix",
|
|
85
80
|
"clean": "ui-scripts clean",
|
|
86
|
-
"build": "ui-scripts build
|
|
81
|
+
"build": "ui-scripts build",
|
|
87
82
|
"build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
|
|
88
83
|
"build:types": "tsc -p tsconfig.build.json",
|
|
89
84
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
@@ -50,9 +50,9 @@ import { DateTime, ApplyLocaleContext, Locale } from '@instructure/ui-i18n'
|
|
|
50
50
|
|
|
51
51
|
import { withStyle } from '@instructure/emotion'
|
|
52
52
|
|
|
53
|
-
import generateStyle from './styles'
|
|
53
|
+
import generateStyle from './styles.js'
|
|
54
54
|
|
|
55
|
-
import { allowedProps } from './props'
|
|
55
|
+
import { allowedProps } from './props.js'
|
|
56
56
|
import type { DateInputProps, DateInputState } from './props'
|
|
57
57
|
import type { FormMessage } from '@instructure/ui-form-field/v11_6'
|
|
58
58
|
|
|
@@ -63,6 +63,7 @@ category: components
|
|
|
63
63
|
**/
|
|
64
64
|
@withStyle(generateStyle, null)
|
|
65
65
|
class DateInput extends Component<DateInputProps, DateInputState> {
|
|
66
|
+
static displayName = 'DateInput'
|
|
66
67
|
static readonly componentId = 'DateInput'
|
|
67
68
|
static Day = Calendar.Day
|
|
68
69
|
declare context: React.ContextType<typeof ApplyLocaleContext>
|
|
@@ -300,6 +300,7 @@ const DateInput = forwardRef(
|
|
|
300
300
|
shouldContainFocus
|
|
301
301
|
shouldReturnFocus
|
|
302
302
|
shouldCloseOnDocumentClick
|
|
303
|
+
shouldScrollContent
|
|
303
304
|
screenReaderLabel={screenReaderLabels.datePickerDialog}
|
|
304
305
|
>
|
|
305
306
|
<Calendar
|
|
@@ -311,24 +312,24 @@ const DateInput = forwardRef(
|
|
|
311
312
|
visibleMonth={selectedDate}
|
|
312
313
|
locale={userLocale}
|
|
313
314
|
timezone={userTimezone}
|
|
314
|
-
renderNextMonthButton={
|
|
315
|
+
renderNextMonthButton={({ targetMonthSrLabel }) => (
|
|
315
316
|
<IconButton
|
|
316
317
|
size="small"
|
|
317
318
|
withBackground={false}
|
|
318
319
|
withBorder={false}
|
|
319
320
|
renderIcon={<ChevronRightInstUIIcon color="baseColor" />}
|
|
320
|
-
screenReaderLabel={screenReaderLabels.nextMonthButton}
|
|
321
|
+
screenReaderLabel={`${screenReaderLabels.nextMonthButton}, ${targetMonthSrLabel}`}
|
|
321
322
|
/>
|
|
322
|
-
}
|
|
323
|
-
renderPrevMonthButton={
|
|
323
|
+
)}
|
|
324
|
+
renderPrevMonthButton={({ targetMonthSrLabel }) => (
|
|
324
325
|
<IconButton
|
|
325
326
|
size="small"
|
|
326
327
|
withBackground={false}
|
|
327
328
|
withBorder={false}
|
|
328
329
|
renderIcon={<ChevronLeftInstUIIcon color="baseColor" />}
|
|
329
|
-
screenReaderLabel={screenReaderLabels.prevMonthButton}
|
|
330
|
+
screenReaderLabel={`${screenReaderLabels.prevMonthButton}, ${targetMonthSrLabel}`}
|
|
330
331
|
/>
|
|
331
|
-
}
|
|
332
|
+
)}
|
|
332
333
|
/>
|
|
333
334
|
</Popover>
|
|
334
335
|
}
|
package/src/exports/a.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { DateInput } from '../DateInput/v1'
|
|
26
|
-
export { DateInput2 } from '../DateInput2/v1'
|
|
25
|
+
export { DateInput } from '../DateInput/v1/index.js'
|
|
26
|
+
export { DateInput2 } from '../DateInput2/v1/index.js'
|
|
27
27
|
export type { DateInputProps } from '../DateInput/v1/props'
|
|
28
28
|
export type { DateInput2Props } from '../DateInput2/v1/props'
|
package/src/exports/b.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { DateInput } from '../DateInput/v2'
|
|
26
|
-
export { DateInput2 } from '../DateInput2/v1'
|
|
25
|
+
export { DateInput } from '../DateInput/v2/index.js'
|
|
26
|
+
export { DateInput2 } from '../DateInput2/v1/index.js'
|
|
27
27
|
export type { DateInputProps } from '../DateInput/v2/props'
|
|
28
28
|
export type { DateInput2Props } from '../DateInput2/v1/props'
|