@instructure/ui-date-time-input 8.25.1-snapshot.0 → 8.26.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 CHANGED
@@ -3,6 +3,10 @@
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.26.0](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.26.0) (2022-06-30)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-date-time-input
9
+
6
10
  # [8.25.0](https://github.com/instructure/instructure-ui/compare/v8.24.5...v8.25.0) (2022-06-03)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-date-time-input
@@ -49,7 +49,6 @@ let DateTimeInput = (_dec = testable(), _dec(_class = (_class2 = class DateTimeI
49
49
  super(props); // State needs to be calculated because render could be called before
50
50
  // componentDidMount()
51
51
 
52
- this.context = void 0;
53
52
  this.ref = null;
54
53
 
55
54
  this.handleRef = el => {
@@ -52,7 +52,6 @@ let DateTimeInput = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 =
52
52
  super(props); // State needs to be calculated because render could be called before
53
53
  // componentDidMount()
54
54
 
55
- this.context = void 0;
56
55
  this.ref = null;
57
56
 
58
57
  this.handleRef = el => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-date-time-input",
3
- "version": "8.25.1-snapshot.0+59b6babce",
3
+ "version": "8.26.0",
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.25.1-snapshot.0+59b6babce",
27
- "@instructure/ui-test-locator": "8.25.1-snapshot.0+59b6babce",
28
- "@instructure/ui-test-utils": "8.25.1-snapshot.0+59b6babce"
26
+ "@instructure/ui-babel-preset": "8.26.0",
27
+ "@instructure/ui-test-locator": "8.26.0",
28
+ "@instructure/ui-test-utils": "8.26.0"
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.13.10",
32
- "@instructure/debounce": "8.25.1-snapshot.0+59b6babce",
33
- "@instructure/emotion": "8.25.1-snapshot.0+59b6babce",
34
- "@instructure/ui-a11y-content": "8.25.1-snapshot.0+59b6babce",
35
- "@instructure/ui-buttons": "8.25.1-snapshot.0+59b6babce",
36
- "@instructure/ui-calendar": "8.25.1-snapshot.0+59b6babce",
37
- "@instructure/ui-date-input": "8.25.1-snapshot.0+59b6babce",
38
- "@instructure/ui-form-field": "8.25.1-snapshot.0+59b6babce",
39
- "@instructure/ui-i18n": "8.25.1-snapshot.0+59b6babce",
40
- "@instructure/ui-icons": "8.25.1-snapshot.0+59b6babce",
41
- "@instructure/ui-prop-types": "8.25.1-snapshot.0+59b6babce",
42
- "@instructure/ui-react-utils": "8.25.1-snapshot.0+59b6babce",
43
- "@instructure/ui-testable": "8.25.1-snapshot.0+59b6babce",
44
- "@instructure/ui-time-select": "8.25.1-snapshot.0+59b6babce",
45
- "@instructure/ui-utils": "8.25.1-snapshot.0+59b6babce",
32
+ "@instructure/debounce": "8.26.0",
33
+ "@instructure/emotion": "8.26.0",
34
+ "@instructure/ui-a11y-content": "8.26.0",
35
+ "@instructure/ui-buttons": "8.26.0",
36
+ "@instructure/ui-calendar": "8.26.0",
37
+ "@instructure/ui-date-input": "8.26.0",
38
+ "@instructure/ui-form-field": "8.26.0",
39
+ "@instructure/ui-i18n": "8.26.0",
40
+ "@instructure/ui-icons": "8.26.0",
41
+ "@instructure/ui-prop-types": "8.26.0",
42
+ "@instructure/ui-react-utils": "8.26.0",
43
+ "@instructure/ui-testable": "8.26.0",
44
+ "@instructure/ui-time-select": "8.26.0",
45
+ "@instructure/ui-utils": "8.26.0",
46
46
  "prop-types": "^15"
47
47
  },
48
48
  "peerDependencies": {
@@ -51,6 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "sideEffects": false,
55
- "gitHead": "59b6babce07a9242111475156f544ec11c1a9283"
54
+ "sideEffects": false
56
55
  }
@@ -64,8 +64,7 @@ class DateTimeInput extends Component<DateTimeInputProps, DateTimeInputState> {
64
64
  dateFormat: 'LL' // Localized date with full month, e.g. "August 6, 2014"
65
65
  } as const
66
66
 
67
- context!: React.ContextType<typeof ApplyLocaleContext>
68
-
67
+ declare context: React.ContextType<typeof ApplyLocaleContext>
69
68
  static contextType = ApplyLocaleContext
70
69
 
71
70
  ref: Element | null = null // This is used by Tooltip for positioning
@@ -69,22 +69,7 @@ type DateTimeInputProps = {
69
69
  /**
70
70
  * The label over the time input
71
71
  **/
72
- timeRenderLabel:
73
- | React.ReactNode
74
- | (({
75
- id,
76
- isDisabled,
77
- isSelected,
78
- isHighlighted,
79
- children
80
- }: // TODO type this better when Select is typed
81
- {
82
- id: any
83
- isDisabled: any
84
- isSelected: any
85
- isHighlighted: any
86
- children: any
87
- }) => React.ReactNode)
72
+ timeRenderLabel: React.ReactNode | (() => React.ReactNode)
88
73
  /**
89
74
  * The number of minutes to increment by when generating the allowable time options.
90
75
  */