@instructure/ui-date-input 10.19.2-snapshot-4 → 10.19.2-snapshot-6
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 +5 -2
- package/es/DateInput/index.js +34 -34
- package/lib/DateInput/index.js +34 -34
- package/package.json +24 -24
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DateInput/index.d.ts.map +1 -1
- package/types/DateInput/styles.d.ts.map +1 -1
- package/types/DateInput2/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
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.19.2-snapshot-
|
|
6
|
+
## [10.19.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v10.19.1...v10.19.2-snapshot-6) (2025-06-12)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **many:** update dependencies, browsersdb and moment timezone database ([3813636](https://github.com/instructure/instructure-ui/commit/3813636458c901ad4bc74a4d5ae015cb55defcb2))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/DateInput/index.js
CHANGED
|
@@ -216,9 +216,9 @@ let DateInput = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec
|
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
renderMonthNavigationButton(type = 'prev') {
|
|
219
|
-
const _this$
|
|
220
|
-
renderPrevMonthButton = _this$
|
|
221
|
-
renderNextMonthButton = _this$
|
|
219
|
+
const _this$props0 = this.props,
|
|
220
|
+
renderPrevMonthButton = _this$props0.renderPrevMonthButton,
|
|
221
|
+
renderNextMonthButton = _this$props0.renderNextMonthButton;
|
|
222
222
|
const button = type === 'prev' ? renderPrevMonthButton : renderNextMonthButton;
|
|
223
223
|
return button && safeCloneElement(callRenderProp(button), {
|
|
224
224
|
tabIndex: -1
|
|
@@ -248,15 +248,15 @@ let DateInput = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec
|
|
|
248
248
|
getListProps,
|
|
249
249
|
getOptionProps
|
|
250
250
|
}) {
|
|
251
|
-
const _this$
|
|
252
|
-
onRequestRenderNextMonth = _this$
|
|
253
|
-
onRequestRenderPrevMonth = _this$
|
|
254
|
-
renderNavigationLabel = _this$
|
|
255
|
-
renderWeekdayLabels = _this$
|
|
256
|
-
value = _this$
|
|
257
|
-
onChange = _this$
|
|
258
|
-
disabledDates = _this$
|
|
259
|
-
currentDate = _this$
|
|
251
|
+
const _this$props1 = this.props,
|
|
252
|
+
onRequestRenderNextMonth = _this$props1.onRequestRenderNextMonth,
|
|
253
|
+
onRequestRenderPrevMonth = _this$props1.onRequestRenderPrevMonth,
|
|
254
|
+
renderNavigationLabel = _this$props1.renderNavigationLabel,
|
|
255
|
+
renderWeekdayLabels = _this$props1.renderWeekdayLabels,
|
|
256
|
+
value = _this$props1.value,
|
|
257
|
+
onChange = _this$props1.onChange,
|
|
258
|
+
disabledDates = _this$props1.disabledDates,
|
|
259
|
+
currentDate = _this$props1.currentDate;
|
|
260
260
|
const isValidDate = value ? DateTime.parse(value, this.locale(), this.timezone()).isValid() : false;
|
|
261
261
|
const noChildrenProps = this.props.children ? {} : {
|
|
262
262
|
disabledDates,
|
|
@@ -288,24 +288,24 @@ let DateInput = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec
|
|
|
288
288
|
getInputProps,
|
|
289
289
|
getTriggerProps
|
|
290
290
|
}) {
|
|
291
|
-
const _this$
|
|
292
|
-
renderLabel = _this$
|
|
293
|
-
value = _this$
|
|
294
|
-
placeholder = _this$
|
|
295
|
-
onBlur = _this$
|
|
296
|
-
isRequired = _this$
|
|
297
|
-
size = _this$
|
|
298
|
-
isInline = _this$
|
|
299
|
-
layout = _this$
|
|
300
|
-
width = _this$
|
|
301
|
-
onRequestValidateDate = _this$
|
|
302
|
-
onRequestShowCalendar = _this$
|
|
303
|
-
onRequestHideCalendar = _this$
|
|
304
|
-
onRequestSelectNextDay = _this$
|
|
305
|
-
onRequestSelectPrevDay = _this$
|
|
306
|
-
onRequestRenderNextMonth = _this$
|
|
307
|
-
onRequestRenderPrevMonth = _this$
|
|
308
|
-
rest = _objectWithoutProperties(_this$
|
|
291
|
+
const _this$props10 = this.props,
|
|
292
|
+
renderLabel = _this$props10.renderLabel,
|
|
293
|
+
value = _this$props10.value,
|
|
294
|
+
placeholder = _this$props10.placeholder,
|
|
295
|
+
onBlur = _this$props10.onBlur,
|
|
296
|
+
isRequired = _this$props10.isRequired,
|
|
297
|
+
size = _this$props10.size,
|
|
298
|
+
isInline = _this$props10.isInline,
|
|
299
|
+
layout = _this$props10.layout,
|
|
300
|
+
width = _this$props10.width,
|
|
301
|
+
onRequestValidateDate = _this$props10.onRequestValidateDate,
|
|
302
|
+
onRequestShowCalendar = _this$props10.onRequestShowCalendar,
|
|
303
|
+
onRequestHideCalendar = _this$props10.onRequestHideCalendar,
|
|
304
|
+
onRequestSelectNextDay = _this$props10.onRequestSelectNextDay,
|
|
305
|
+
onRequestSelectPrevDay = _this$props10.onRequestSelectPrevDay,
|
|
306
|
+
onRequestRenderNextMonth = _this$props10.onRequestRenderNextMonth,
|
|
307
|
+
onRequestRenderPrevMonth = _this$props10.onRequestRenderPrevMonth,
|
|
308
|
+
rest = _objectWithoutProperties(_this$props10, _excluded);
|
|
309
309
|
const interaction = this.interaction;
|
|
310
310
|
const _getTriggerProps = getTriggerProps(),
|
|
311
311
|
ref = _getTriggerProps.ref,
|
|
@@ -345,10 +345,10 @@ let DateInput = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
render() {
|
|
348
|
-
const _this$
|
|
349
|
-
placement = _this$
|
|
350
|
-
assistiveText = _this$
|
|
351
|
-
styles = _this$
|
|
348
|
+
const _this$props11 = this.props,
|
|
349
|
+
placement = _this$props11.placement,
|
|
350
|
+
assistiveText = _this$props11.assistiveText,
|
|
351
|
+
styles = _this$props11.styles;
|
|
352
352
|
const isShowingCalendar = this.shouldShowCalendar();
|
|
353
353
|
return _jsx(Selectable, {
|
|
354
354
|
isShowingOptions: isShowingCalendar,
|
package/lib/DateInput/index.js
CHANGED
|
@@ -226,9 +226,9 @@ let DateInput = exports.DateInput = (_dec = (0, _emotion.withStyle)(_styles.defa
|
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
renderMonthNavigationButton(type = 'prev') {
|
|
229
|
-
const _this$
|
|
230
|
-
renderPrevMonthButton = _this$
|
|
231
|
-
renderNextMonthButton = _this$
|
|
229
|
+
const _this$props0 = this.props,
|
|
230
|
+
renderPrevMonthButton = _this$props0.renderPrevMonthButton,
|
|
231
|
+
renderNextMonthButton = _this$props0.renderNextMonthButton;
|
|
232
232
|
const button = type === 'prev' ? renderPrevMonthButton : renderNextMonthButton;
|
|
233
233
|
return button && (0, _safeCloneElement.safeCloneElement)((0, _callRenderProp.callRenderProp)(button), {
|
|
234
234
|
tabIndex: -1
|
|
@@ -258,15 +258,15 @@ let DateInput = exports.DateInput = (_dec = (0, _emotion.withStyle)(_styles.defa
|
|
|
258
258
|
getListProps,
|
|
259
259
|
getOptionProps
|
|
260
260
|
}) {
|
|
261
|
-
const _this$
|
|
262
|
-
onRequestRenderNextMonth = _this$
|
|
263
|
-
onRequestRenderPrevMonth = _this$
|
|
264
|
-
renderNavigationLabel = _this$
|
|
265
|
-
renderWeekdayLabels = _this$
|
|
266
|
-
value = _this$
|
|
267
|
-
onChange = _this$
|
|
268
|
-
disabledDates = _this$
|
|
269
|
-
currentDate = _this$
|
|
261
|
+
const _this$props1 = this.props,
|
|
262
|
+
onRequestRenderNextMonth = _this$props1.onRequestRenderNextMonth,
|
|
263
|
+
onRequestRenderPrevMonth = _this$props1.onRequestRenderPrevMonth,
|
|
264
|
+
renderNavigationLabel = _this$props1.renderNavigationLabel,
|
|
265
|
+
renderWeekdayLabels = _this$props1.renderWeekdayLabels,
|
|
266
|
+
value = _this$props1.value,
|
|
267
|
+
onChange = _this$props1.onChange,
|
|
268
|
+
disabledDates = _this$props1.disabledDates,
|
|
269
|
+
currentDate = _this$props1.currentDate;
|
|
270
270
|
const isValidDate = value ? _DateTime.DateTime.parse(value, this.locale(), this.timezone()).isValid() : false;
|
|
271
271
|
const noChildrenProps = this.props.children ? {} : {
|
|
272
272
|
disabledDates,
|
|
@@ -298,24 +298,24 @@ let DateInput = exports.DateInput = (_dec = (0, _emotion.withStyle)(_styles.defa
|
|
|
298
298
|
getInputProps,
|
|
299
299
|
getTriggerProps
|
|
300
300
|
}) {
|
|
301
|
-
const _this$
|
|
302
|
-
renderLabel = _this$
|
|
303
|
-
value = _this$
|
|
304
|
-
placeholder = _this$
|
|
305
|
-
onBlur = _this$
|
|
306
|
-
isRequired = _this$
|
|
307
|
-
size = _this$
|
|
308
|
-
isInline = _this$
|
|
309
|
-
layout = _this$
|
|
310
|
-
width = _this$
|
|
311
|
-
onRequestValidateDate = _this$
|
|
312
|
-
onRequestShowCalendar = _this$
|
|
313
|
-
onRequestHideCalendar = _this$
|
|
314
|
-
onRequestSelectNextDay = _this$
|
|
315
|
-
onRequestSelectPrevDay = _this$
|
|
316
|
-
onRequestRenderNextMonth = _this$
|
|
317
|
-
onRequestRenderPrevMonth = _this$
|
|
318
|
-
rest = (0, _objectWithoutProperties2.default)(_this$
|
|
301
|
+
const _this$props10 = this.props,
|
|
302
|
+
renderLabel = _this$props10.renderLabel,
|
|
303
|
+
value = _this$props10.value,
|
|
304
|
+
placeholder = _this$props10.placeholder,
|
|
305
|
+
onBlur = _this$props10.onBlur,
|
|
306
|
+
isRequired = _this$props10.isRequired,
|
|
307
|
+
size = _this$props10.size,
|
|
308
|
+
isInline = _this$props10.isInline,
|
|
309
|
+
layout = _this$props10.layout,
|
|
310
|
+
width = _this$props10.width,
|
|
311
|
+
onRequestValidateDate = _this$props10.onRequestValidateDate,
|
|
312
|
+
onRequestShowCalendar = _this$props10.onRequestShowCalendar,
|
|
313
|
+
onRequestHideCalendar = _this$props10.onRequestHideCalendar,
|
|
314
|
+
onRequestSelectNextDay = _this$props10.onRequestSelectNextDay,
|
|
315
|
+
onRequestSelectPrevDay = _this$props10.onRequestSelectPrevDay,
|
|
316
|
+
onRequestRenderNextMonth = _this$props10.onRequestRenderNextMonth,
|
|
317
|
+
onRequestRenderPrevMonth = _this$props10.onRequestRenderPrevMonth,
|
|
318
|
+
rest = (0, _objectWithoutProperties2.default)(_this$props10, _excluded);
|
|
319
319
|
const interaction = this.interaction;
|
|
320
320
|
const _getTriggerProps = getTriggerProps(),
|
|
321
321
|
ref = _getTriggerProps.ref,
|
|
@@ -355,10 +355,10 @@ let DateInput = exports.DateInput = (_dec = (0, _emotion.withStyle)(_styles.defa
|
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
357
|
render() {
|
|
358
|
-
const _this$
|
|
359
|
-
placement = _this$
|
|
360
|
-
assistiveText = _this$
|
|
361
|
-
styles = _this$
|
|
358
|
+
const _this$props11 = this.props,
|
|
359
|
+
placement = _this$props11.placement,
|
|
360
|
+
assistiveText = _this$props11.assistiveText,
|
|
361
|
+
styles = _this$props11.styles;
|
|
362
362
|
const isShowingCalendar = this.shouldShowCalendar();
|
|
363
363
|
return (0, _jsxRuntime.jsx)(_Selectable.Selectable, {
|
|
364
364
|
isShowingOptions: isShowingCalendar,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-date-input",
|
|
3
|
-
"version": "10.19.2-snapshot-
|
|
3
|
+
"version": "10.19.2-snapshot-6",
|
|
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,33 +23,33 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.19.2-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "10.19.2-snapshot-
|
|
28
|
-
"@instructure/ui-buttons": "10.19.2-snapshot-
|
|
29
|
-
"@instructure/ui-scripts": "10.19.2-snapshot-
|
|
30
|
-
"@instructure/ui-test-utils": "10.19.2-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "10.19.2-snapshot-6",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.19.2-snapshot-6",
|
|
28
|
+
"@instructure/ui-buttons": "10.19.2-snapshot-6",
|
|
29
|
+
"@instructure/ui-scripts": "10.19.2-snapshot-6",
|
|
30
|
+
"@instructure/ui-test-utils": "10.19.2-snapshot-6",
|
|
31
31
|
"@testing-library/jest-dom": "^6.6.3",
|
|
32
32
|
"@testing-library/react": "^16.0.1",
|
|
33
|
-
"@testing-library/user-event": "^14.
|
|
34
|
-
"vitest": "^2.
|
|
33
|
+
"@testing-library/user-event": "^14.6.1",
|
|
34
|
+
"vitest": "^3.2.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@babel/runtime": "^7.
|
|
38
|
-
"@instructure/emotion": "10.19.2-snapshot-
|
|
39
|
-
"@instructure/shared-types": "10.19.2-snapshot-
|
|
40
|
-
"@instructure/ui-calendar": "10.19.2-snapshot-
|
|
41
|
-
"@instructure/ui-form-field": "10.19.2-snapshot-
|
|
42
|
-
"@instructure/ui-i18n": "10.19.2-snapshot-
|
|
43
|
-
"@instructure/ui-icons": "10.19.2-snapshot-
|
|
44
|
-
"@instructure/ui-popover": "10.19.2-snapshot-
|
|
45
|
-
"@instructure/ui-position": "10.19.2-snapshot-
|
|
46
|
-
"@instructure/ui-prop-types": "10.19.2-snapshot-
|
|
47
|
-
"@instructure/ui-react-utils": "10.19.2-snapshot-
|
|
48
|
-
"@instructure/ui-selectable": "10.19.2-snapshot-
|
|
49
|
-
"@instructure/ui-testable": "10.19.2-snapshot-
|
|
50
|
-
"@instructure/ui-text-input": "10.19.2-snapshot-
|
|
51
|
-
"@instructure/ui-utils": "10.19.2-snapshot-
|
|
52
|
-
"moment-timezone": "^0.
|
|
37
|
+
"@babel/runtime": "^7.27.6",
|
|
38
|
+
"@instructure/emotion": "10.19.2-snapshot-6",
|
|
39
|
+
"@instructure/shared-types": "10.19.2-snapshot-6",
|
|
40
|
+
"@instructure/ui-calendar": "10.19.2-snapshot-6",
|
|
41
|
+
"@instructure/ui-form-field": "10.19.2-snapshot-6",
|
|
42
|
+
"@instructure/ui-i18n": "10.19.2-snapshot-6",
|
|
43
|
+
"@instructure/ui-icons": "10.19.2-snapshot-6",
|
|
44
|
+
"@instructure/ui-popover": "10.19.2-snapshot-6",
|
|
45
|
+
"@instructure/ui-position": "10.19.2-snapshot-6",
|
|
46
|
+
"@instructure/ui-prop-types": "10.19.2-snapshot-6",
|
|
47
|
+
"@instructure/ui-react-utils": "10.19.2-snapshot-6",
|
|
48
|
+
"@instructure/ui-selectable": "10.19.2-snapshot-6",
|
|
49
|
+
"@instructure/ui-testable": "10.19.2-snapshot-6",
|
|
50
|
+
"@instructure/ui-text-input": "10.19.2-snapshot-6",
|
|
51
|
+
"@instructure/ui-utils": "10.19.2-snapshot-6",
|
|
52
|
+
"moment-timezone": "^0.6.0",
|
|
53
53
|
"prop-types": "^15.8.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|