@instructure/ui-date-input 8.26.3 → 8.26.4-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 CHANGED
@@ -3,6 +3,17 @@
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.4-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-6) (2022-07-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14)
7
18
 
8
19
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-date-input",
3
- "version": "8.26.3",
3
+ "version": "8.26.4-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,28 +23,28 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.26.3",
27
- "@instructure/ui-test-locator": "8.26.3",
28
- "@instructure/ui-test-utils": "8.26.3"
26
+ "@instructure/ui-babel-preset": "8.26.4-snapshot-6",
27
+ "@instructure/ui-test-locator": "8.26.4-snapshot-6",
28
+ "@instructure/ui-test-utils": "8.26.4-snapshot-6"
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.13.10",
32
- "@instructure/emotion": "8.26.3",
33
- "@instructure/ui-calendar": "8.26.3",
34
- "@instructure/ui-form-field": "8.26.3",
35
- "@instructure/ui-icons": "8.26.3",
36
- "@instructure/ui-popover": "8.26.3",
37
- "@instructure/ui-position": "8.26.3",
38
- "@instructure/ui-prop-types": "8.26.3",
39
- "@instructure/ui-react-utils": "8.26.3",
40
- "@instructure/ui-selectable": "8.26.3",
41
- "@instructure/ui-testable": "8.26.3",
42
- "@instructure/ui-text-input": "8.26.3",
43
- "@instructure/ui-utils": "8.26.3",
32
+ "@instructure/emotion": "8.26.4-snapshot-6",
33
+ "@instructure/ui-calendar": "8.26.4-snapshot-6",
34
+ "@instructure/ui-form-field": "8.26.4-snapshot-6",
35
+ "@instructure/ui-icons": "8.26.4-snapshot-6",
36
+ "@instructure/ui-popover": "8.26.4-snapshot-6",
37
+ "@instructure/ui-position": "8.26.4-snapshot-6",
38
+ "@instructure/ui-prop-types": "8.26.4-snapshot-6",
39
+ "@instructure/ui-react-utils": "8.26.4-snapshot-6",
40
+ "@instructure/ui-selectable": "8.26.4-snapshot-6",
41
+ "@instructure/ui-testable": "8.26.4-snapshot-6",
42
+ "@instructure/ui-text-input": "8.26.4-snapshot-6",
43
+ "@instructure/ui-utils": "8.26.4-snapshot-6",
44
44
  "prop-types": "^15"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": ">=16.8 <=17"
47
+ "react": ">=16.8 <=18"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -155,7 +155,7 @@ class DateInput extends Component<DateInputProps> {
155
155
  }
156
156
 
157
157
  renderDays(getOptionProps: SelectableRender['getOptionProps']) {
158
- const children = this.props.children as ReactElement<CalendarDayProps>
158
+ const children = this.props.children as ReactElement<CalendarDayProps>[]
159
159
 
160
160
  return Children.map(children, (day) => {
161
161
  const { date, isOutsideMonth } = day.props
@@ -35,6 +35,7 @@ import type { CalendarDayProps } from '@instructure/ui-calendar'
35
35
  import type { FormMessage } from '@instructure/ui-form-field'
36
36
  import type { PlacementPropValues } from '@instructure/ui-position'
37
37
  import type {
38
+ Renderable,
38
39
  OtherHTMLAttributes,
39
40
  PropValidators
40
41
  } from '@instructure/shared-types'
@@ -45,7 +46,7 @@ type DateInputOwnProps = {
45
46
  /**
46
47
  * Specifies the input label.
47
48
  */
48
- renderLabel: React.ReactNode | (() => React.ReactNode)
49
+ renderLabel: Renderable
49
50
  /**
50
51
  * Specifies the input value.
51
52
  */
@@ -181,14 +182,14 @@ type DateInputOwnProps = {
181
182
  * prop to `icon`, the `size` prop to `small`, and setting the `icon` prop to
182
183
  * [IconArrowOpenEnd](#iconography).
183
184
  */
184
- renderNextMonthButton?: (() => React.ReactNode) | React.ReactNode
185
+ renderNextMonthButton?: Renderable
185
186
  /**
186
187
  * A button to render in the calendar navigation header. The recommendation is
187
188
  * to compose it with the [Button](#Button) component, setting the `variant`
188
189
  * prop to `icon`, the `size` prop to `small`, and setting the `icon` prop to
189
190
  * [IconArrowOpenStart](#iconography).
190
191
  */
191
- renderPrevMonthButton?: (() => React.ReactNode) | React.ReactNode
192
+ renderPrevMonthButton?: Renderable
192
193
  /**
193
194
  * children of type `<DateInput.Day />` There should be exactly 42 provided (6
194
195
  * weeks).