@instructure/ui-date-time-input 9.0.2-snapshot-2 → 9.0.2-snapshot-4
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
|
-
## [9.0.2-snapshot-
|
|
6
|
+
## [9.0.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-4) (2024-06-05)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-date-time-input
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _class,
|
|
1
|
+
var _dec, _class, _DateTimeInput, _IconArrowOpenStartSo, _IconArrowOpenEndSoli;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -41,7 +41,7 @@ import { error } from '@instructure/console';
|
|
|
41
41
|
category: components
|
|
42
42
|
---
|
|
43
43
|
**/
|
|
44
|
-
let DateTimeInput = (_dec = testable(), _dec(_class = (
|
|
44
|
+
let DateTimeInput = (_dec = testable(), _dec(_class = (_DateTimeInput = class DateTimeInput extends Component {
|
|
45
45
|
constructor(props) {
|
|
46
46
|
super(props);
|
|
47
47
|
// State needs to be calculated because render could be called before
|
|
@@ -479,17 +479,17 @@ let DateTimeInput = (_dec = testable(), _dec(_class = (_class2 = class DateTimeI
|
|
|
479
479
|
allowNonStepInput: allowNonStepInput
|
|
480
480
|
}));
|
|
481
481
|
}
|
|
482
|
-
},
|
|
482
|
+
}, _DateTimeInput.displayName = "DateTimeInput", _DateTimeInput.DEFAULT_MESSAGE_FORMAT = 'LLLL', _DateTimeInput.propTypes = propTypes, _DateTimeInput.allowedProps = allowedProps, _DateTimeInput.defaultProps = {
|
|
483
483
|
layout: 'inline',
|
|
484
484
|
colSpacing: 'medium',
|
|
485
485
|
rowSpacing: 'small',
|
|
486
486
|
timeStep: 30,
|
|
487
487
|
showMessages: true,
|
|
488
|
-
messageFormat:
|
|
488
|
+
messageFormat: _DateTimeInput.DEFAULT_MESSAGE_FORMAT,
|
|
489
489
|
isRequired: false,
|
|
490
490
|
dateFormat: 'LL',
|
|
491
491
|
// Localized date with full month, e.g. "August 6, 2014"
|
|
492
492
|
allowNonStepInput: false
|
|
493
|
-
},
|
|
493
|
+
}, _DateTimeInput.contextType = ApplyLocaleContext, _DateTimeInput)) || _class);
|
|
494
494
|
export default DateTimeInput;
|
|
495
495
|
export { DateTimeInput };
|
|
@@ -20,7 +20,7 @@ var _IconArrowOpenEndSolid = require("@instructure/ui-icons/lib/IconArrowOpenEnd
|
|
|
20
20
|
var _IconArrowOpenStartSolid = require("@instructure/ui-icons/lib/IconArrowOpenStartSolid.js");
|
|
21
21
|
var _props = require("./props");
|
|
22
22
|
var _console = require("@instructure/console");
|
|
23
|
-
var _dec, _class,
|
|
23
|
+
var _dec, _class, _DateTimeInput, _IconArrowOpenStartSo, _IconArrowOpenEndSoli;
|
|
24
24
|
/*
|
|
25
25
|
* The MIT License (MIT)
|
|
26
26
|
*
|
|
@@ -49,7 +49,7 @@ var _dec, _class, _class2, _IconArrowOpenStartSo, _IconArrowOpenEndSoli;
|
|
|
49
49
|
category: components
|
|
50
50
|
---
|
|
51
51
|
**/
|
|
52
|
-
let DateTimeInput = exports.DateTimeInput = (_dec = (0, _testable.testable)(), _dec(_class = (
|
|
52
|
+
let DateTimeInput = exports.DateTimeInput = (_dec = (0, _testable.testable)(), _dec(_class = (_DateTimeInput = class DateTimeInput extends _react.Component {
|
|
53
53
|
constructor(props) {
|
|
54
54
|
super(props);
|
|
55
55
|
// State needs to be calculated because render could be called before
|
|
@@ -487,16 +487,16 @@ let DateTimeInput = exports.DateTimeInput = (_dec = (0, _testable.testable)(), _
|
|
|
487
487
|
allowNonStepInput: allowNonStepInput
|
|
488
488
|
}));
|
|
489
489
|
}
|
|
490
|
-
},
|
|
490
|
+
}, _DateTimeInput.displayName = "DateTimeInput", _DateTimeInput.DEFAULT_MESSAGE_FORMAT = 'LLLL', _DateTimeInput.propTypes = _props.propTypes, _DateTimeInput.allowedProps = _props.allowedProps, _DateTimeInput.defaultProps = {
|
|
491
491
|
layout: 'inline',
|
|
492
492
|
colSpacing: 'medium',
|
|
493
493
|
rowSpacing: 'small',
|
|
494
494
|
timeStep: 30,
|
|
495
495
|
showMessages: true,
|
|
496
|
-
messageFormat:
|
|
496
|
+
messageFormat: _DateTimeInput.DEFAULT_MESSAGE_FORMAT,
|
|
497
497
|
isRequired: false,
|
|
498
498
|
dateFormat: 'LL',
|
|
499
499
|
// Localized date with full month, e.g. "August 6, 2014"
|
|
500
500
|
allowNonStepInput: false
|
|
501
|
-
},
|
|
501
|
+
}, _DateTimeInput.contextType = _ApplyLocaleContext.ApplyLocaleContext, _DateTimeInput)) || _class);
|
|
502
502
|
var _default = exports.default = DateTimeInput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-date-time-input",
|
|
3
|
-
"version": "9.0.2-snapshot-
|
|
3
|
+
"version": "9.0.2-snapshot-4",
|
|
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,29 +23,29 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "9.0.2-snapshot-
|
|
27
|
-
"@instructure/ui-test-utils": "9.0.2-snapshot-
|
|
28
|
-
"@testing-library/jest-dom": "^6.
|
|
29
|
-
"@testing-library/react": "^
|
|
30
|
-
"@testing-library/user-event": "^14.5.
|
|
26
|
+
"@instructure/ui-babel-preset": "9.0.2-snapshot-4",
|
|
27
|
+
"@instructure/ui-test-utils": "9.0.2-snapshot-4",
|
|
28
|
+
"@testing-library/jest-dom": "^6.4.5",
|
|
29
|
+
"@testing-library/react": "^15.0.7",
|
|
30
|
+
"@testing-library/user-event": "^14.5.2"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/runtime": "^7.
|
|
34
|
-
"@instructure/console": "9.0.2-snapshot-
|
|
35
|
-
"@instructure/debounce": "9.0.2-snapshot-
|
|
36
|
-
"@instructure/emotion": "9.0.2-snapshot-
|
|
37
|
-
"@instructure/ui-a11y-content": "9.0.2-snapshot-
|
|
38
|
-
"@instructure/ui-buttons": "9.0.2-snapshot-
|
|
39
|
-
"@instructure/ui-calendar": "9.0.2-snapshot-
|
|
40
|
-
"@instructure/ui-date-input": "9.0.2-snapshot-
|
|
41
|
-
"@instructure/ui-form-field": "9.0.2-snapshot-
|
|
42
|
-
"@instructure/ui-i18n": "9.0.2-snapshot-
|
|
43
|
-
"@instructure/ui-icons": "9.0.2-snapshot-
|
|
44
|
-
"@instructure/ui-prop-types": "9.0.2-snapshot-
|
|
45
|
-
"@instructure/ui-react-utils": "9.0.2-snapshot-
|
|
46
|
-
"@instructure/ui-testable": "9.0.2-snapshot-
|
|
47
|
-
"@instructure/ui-time-select": "9.0.2-snapshot-
|
|
48
|
-
"@instructure/ui-utils": "9.0.2-snapshot-
|
|
33
|
+
"@babel/runtime": "^7.24.5",
|
|
34
|
+
"@instructure/console": "9.0.2-snapshot-4",
|
|
35
|
+
"@instructure/debounce": "9.0.2-snapshot-4",
|
|
36
|
+
"@instructure/emotion": "9.0.2-snapshot-4",
|
|
37
|
+
"@instructure/ui-a11y-content": "9.0.2-snapshot-4",
|
|
38
|
+
"@instructure/ui-buttons": "9.0.2-snapshot-4",
|
|
39
|
+
"@instructure/ui-calendar": "9.0.2-snapshot-4",
|
|
40
|
+
"@instructure/ui-date-input": "9.0.2-snapshot-4",
|
|
41
|
+
"@instructure/ui-form-field": "9.0.2-snapshot-4",
|
|
42
|
+
"@instructure/ui-i18n": "9.0.2-snapshot-4",
|
|
43
|
+
"@instructure/ui-icons": "9.0.2-snapshot-4",
|
|
44
|
+
"@instructure/ui-prop-types": "9.0.2-snapshot-4",
|
|
45
|
+
"@instructure/ui-react-utils": "9.0.2-snapshot-4",
|
|
46
|
+
"@instructure/ui-testable": "9.0.2-snapshot-4",
|
|
47
|
+
"@instructure/ui-time-select": "9.0.2-snapshot-4",
|
|
48
|
+
"@instructure/ui-utils": "9.0.2-snapshot-4",
|
|
49
49
|
"prop-types": "^15.8.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|