@instructure/ui-date-input 8.26.2 → 8.26.4-snapshot-3
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,23 @@
|
|
|
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-3](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-3) (2022-07-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **ui-color-picker,ui-date-input,ui-date-time-input,ui-select,ui-simple-select,ui-text-input,ui-time-select:** before/after elements should inherit input color ([7daf257](https://github.com/instructure/instructure-ui/commit/7daf257a8ee491f84de2f00a56becd22636891e3))
|
|
22
|
+
|
|
6
23
|
## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @instructure/ui-date-input
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-date-input",
|
|
3
|
-
"version": "8.26.
|
|
3
|
+
"version": "8.26.4-snapshot-3",
|
|
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.
|
|
27
|
-
"@instructure/ui-test-locator": "8.26.
|
|
28
|
-
"@instructure/ui-test-utils": "8.26.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.26.4-snapshot-3",
|
|
27
|
+
"@instructure/ui-test-locator": "8.26.4-snapshot-3",
|
|
28
|
+
"@instructure/ui-test-utils": "8.26.4-snapshot-3"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.13.10",
|
|
32
|
-
"@instructure/emotion": "8.26.
|
|
33
|
-
"@instructure/ui-calendar": "8.26.
|
|
34
|
-
"@instructure/ui-form-field": "8.26.
|
|
35
|
-
"@instructure/ui-icons": "8.26.
|
|
36
|
-
"@instructure/ui-popover": "8.26.
|
|
37
|
-
"@instructure/ui-position": "8.26.
|
|
38
|
-
"@instructure/ui-prop-types": "8.26.
|
|
39
|
-
"@instructure/ui-react-utils": "8.26.
|
|
40
|
-
"@instructure/ui-selectable": "8.26.
|
|
41
|
-
"@instructure/ui-testable": "8.26.
|
|
42
|
-
"@instructure/ui-text-input": "8.26.
|
|
43
|
-
"@instructure/ui-utils": "8.26.
|
|
32
|
+
"@instructure/emotion": "8.26.4-snapshot-3",
|
|
33
|
+
"@instructure/ui-calendar": "8.26.4-snapshot-3",
|
|
34
|
+
"@instructure/ui-form-field": "8.26.4-snapshot-3",
|
|
35
|
+
"@instructure/ui-icons": "8.26.4-snapshot-3",
|
|
36
|
+
"@instructure/ui-popover": "8.26.4-snapshot-3",
|
|
37
|
+
"@instructure/ui-position": "8.26.4-snapshot-3",
|
|
38
|
+
"@instructure/ui-prop-types": "8.26.4-snapshot-3",
|
|
39
|
+
"@instructure/ui-react-utils": "8.26.4-snapshot-3",
|
|
40
|
+
"@instructure/ui-selectable": "8.26.4-snapshot-3",
|
|
41
|
+
"@instructure/ui-testable": "8.26.4-snapshot-3",
|
|
42
|
+
"@instructure/ui-text-input": "8.26.4-snapshot-3",
|
|
43
|
+
"@instructure/ui-utils": "8.26.4-snapshot-3",
|
|
44
44
|
"prop-types": "^15"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"react": ">=16.8 <=
|
|
47
|
+
"react": ">=16.8 <=18"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
package/src/DateInput/index.tsx
CHANGED
|
@@ -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
|
package/src/DateInput/props.ts
CHANGED
|
@@ -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:
|
|
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?:
|
|
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?:
|
|
192
|
+
renderPrevMonthButton?: Renderable
|
|
192
193
|
/**
|
|
193
194
|
* children of type `<DateInput.Day />` There should be exactly 42 provided (6
|
|
194
195
|
* weeks).
|