@instructure/ui-date-time-input 8.52.1-snapshot-6 → 8.52.1-snapshot-11
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 +2 -1
- package/es/DateTimeInput/index.js +0 -4
- package/lib/DateTimeInput/index.js +0 -4
- package/package.json +18 -18
- package/src/DateTimeInput/index.tsx +0 -4
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DateTimeInput/index.d.ts +1 -1
- package/types/DateTimeInput/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +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
|
-
## [8.52.1-snapshot-
|
|
6
|
+
## [8.52.1-snapshot-11](https://github.com/instructure/instructure-ui/compare/v8.52.0...v8.52.1-snapshot-11) (2024-02-08)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
+
* **many:** provide defaults to dateInput for easier setup and use ([dcefc4e](https://github.com/instructure/instructure-ui/commit/dcefc4e259118264d76dfd248b01682a7c2ef661))
|
|
11
12
|
* **ui-date-time-input:** add placeholder to datetimeinput's timeselect ([3ec8cc3](https://github.com/instructure/instructure-ui/commit/3ec8cc31f06ee570b704f88b09739a0868da9ff7))
|
|
12
13
|
|
|
13
14
|
|
|
@@ -322,10 +322,6 @@ let DateTimeInput = (_dec = testable(), _dec(_class = (_class2 = class DateTimeI
|
|
|
322
322
|
this.changeStateIfNeeded(newState, event);
|
|
323
323
|
}
|
|
324
324
|
renderDays() {
|
|
325
|
-
if (!this.state.isShowingCalendar) {
|
|
326
|
-
// this is an expensive function, only execute if the calendar is open
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
325
|
const renderedDate = this.state.renderedDate;
|
|
330
326
|
// Sets it to the first local day of the week counting back from the start of the month.
|
|
331
327
|
// Note that first day depends on the locale, e.g. it's Sunday in the US and
|
|
@@ -330,10 +330,6 @@ let DateTimeInput = exports.DateTimeInput = (_dec = (0, _testable.testable)(), _
|
|
|
330
330
|
this.changeStateIfNeeded(newState, event);
|
|
331
331
|
}
|
|
332
332
|
renderDays() {
|
|
333
|
-
if (!this.state.isShowingCalendar) {
|
|
334
|
-
// this is an expensive function, only execute if the calendar is open
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
333
|
const renderedDate = this.state.renderedDate;
|
|
338
334
|
// Sets it to the first local day of the week counting back from the start of the month.
|
|
339
335
|
// Note that first day depends on the locale, e.g. it's Sunday in the US and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-date-time-input",
|
|
3
|
-
"version": "8.52.1-snapshot-
|
|
3
|
+
"version": "8.52.1-snapshot-11",
|
|
4
4
|
"description": "A UI component that allows to select date and time.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,26 +23,26 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.52.1-snapshot-
|
|
27
|
-
"@instructure/ui-test-locator": "8.52.1-snapshot-
|
|
28
|
-
"@instructure/ui-test-utils": "8.52.1-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "8.52.1-snapshot-11",
|
|
27
|
+
"@instructure/ui-test-locator": "8.52.1-snapshot-11",
|
|
28
|
+
"@instructure/ui-test-utils": "8.52.1-snapshot-11"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.23.2",
|
|
32
|
-
"@instructure/debounce": "8.52.1-snapshot-
|
|
33
|
-
"@instructure/emotion": "8.52.1-snapshot-
|
|
34
|
-
"@instructure/ui-a11y-content": "8.52.1-snapshot-
|
|
35
|
-
"@instructure/ui-buttons": "8.52.1-snapshot-
|
|
36
|
-
"@instructure/ui-calendar": "8.52.1-snapshot-
|
|
37
|
-
"@instructure/ui-date-input": "8.52.1-snapshot-
|
|
38
|
-
"@instructure/ui-form-field": "8.52.1-snapshot-
|
|
39
|
-
"@instructure/ui-i18n": "8.52.1-snapshot-
|
|
40
|
-
"@instructure/ui-icons": "8.52.1-snapshot-
|
|
41
|
-
"@instructure/ui-prop-types": "8.52.1-snapshot-
|
|
42
|
-
"@instructure/ui-react-utils": "8.52.1-snapshot-
|
|
43
|
-
"@instructure/ui-testable": "8.52.1-snapshot-
|
|
44
|
-
"@instructure/ui-time-select": "8.52.1-snapshot-
|
|
45
|
-
"@instructure/ui-utils": "8.52.1-snapshot-
|
|
32
|
+
"@instructure/debounce": "8.52.1-snapshot-11",
|
|
33
|
+
"@instructure/emotion": "8.52.1-snapshot-11",
|
|
34
|
+
"@instructure/ui-a11y-content": "8.52.1-snapshot-11",
|
|
35
|
+
"@instructure/ui-buttons": "8.52.1-snapshot-11",
|
|
36
|
+
"@instructure/ui-calendar": "8.52.1-snapshot-11",
|
|
37
|
+
"@instructure/ui-date-input": "8.52.1-snapshot-11",
|
|
38
|
+
"@instructure/ui-form-field": "8.52.1-snapshot-11",
|
|
39
|
+
"@instructure/ui-i18n": "8.52.1-snapshot-11",
|
|
40
|
+
"@instructure/ui-icons": "8.52.1-snapshot-11",
|
|
41
|
+
"@instructure/ui-prop-types": "8.52.1-snapshot-11",
|
|
42
|
+
"@instructure/ui-react-utils": "8.52.1-snapshot-11",
|
|
43
|
+
"@instructure/ui-testable": "8.52.1-snapshot-11",
|
|
44
|
+
"@instructure/ui-time-select": "8.52.1-snapshot-11",
|
|
45
|
+
"@instructure/ui-utils": "8.52.1-snapshot-11",
|
|
46
46
|
"prop-types": "^15.8.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
@@ -402,10 +402,6 @@ class DateTimeInput extends Component<DateTimeInputProps, DateTimeInputState> {
|
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
renderDays() {
|
|
405
|
-
if (!this.state.isShowingCalendar) {
|
|
406
|
-
// this is an expensive function, only execute if the calendar is open
|
|
407
|
-
return
|
|
408
|
-
}
|
|
409
405
|
const renderedDate = this.state.renderedDate
|
|
410
406
|
// Sets it to the first local day of the week counting back from the start of the month.
|
|
411
407
|
// Note that first day depends on the locale, e.g. it's Sunday in the US and
|