@instructure/ui-date-input 11.0.1-snapshot-1 → 11.0.1-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 +1 -1
- package/package.json +16 -16
- package/src/DateInput2/README.md +10 -77
- package/tsconfig.build.tsbuildinfo +1 -1
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
|
-
## [11.0.1-snapshot-
|
6
|
+
## [11.0.1-snapshot-3](https://github.com/instructure/instructure-ui/compare/v11.0.0...v11.0.1-snapshot-3) (2025-10-10)
|
7
7
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-date-input
|
9
9
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instructure/ui-date-input",
|
3
|
-
"version": "11.0.1-snapshot-
|
3
|
+
"version": "11.0.1-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,9 +23,9 @@
|
|
23
23
|
},
|
24
24
|
"license": "MIT",
|
25
25
|
"devDependencies": {
|
26
|
-
"@instructure/ui-babel-preset": "11.0.1-snapshot-
|
27
|
-
"@instructure/ui-buttons": "11.0.1-snapshot-
|
28
|
-
"@instructure/ui-scripts": "11.0.1-snapshot-
|
26
|
+
"@instructure/ui-babel-preset": "11.0.1-snapshot-3",
|
27
|
+
"@instructure/ui-buttons": "11.0.1-snapshot-3",
|
28
|
+
"@instructure/ui-scripts": "11.0.1-snapshot-3",
|
29
29
|
"@testing-library/jest-dom": "^6.6.3",
|
30
30
|
"@testing-library/react": "15.0.7",
|
31
31
|
"@testing-library/user-event": "^14.6.1",
|
@@ -33,18 +33,18 @@
|
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@babel/runtime": "^7.27.6",
|
36
|
-
"@instructure/emotion": "11.0.1-snapshot-
|
37
|
-
"@instructure/shared-types": "11.0.1-snapshot-
|
38
|
-
"@instructure/ui-calendar": "11.0.1-snapshot-
|
39
|
-
"@instructure/ui-form-field": "11.0.1-snapshot-
|
40
|
-
"@instructure/ui-i18n": "11.0.1-snapshot-
|
41
|
-
"@instructure/ui-icons": "11.0.1-snapshot-
|
42
|
-
"@instructure/ui-popover": "11.0.1-snapshot-
|
43
|
-
"@instructure/ui-position": "11.0.1-snapshot-
|
44
|
-
"@instructure/ui-react-utils": "11.0.1-snapshot-
|
45
|
-
"@instructure/ui-selectable": "11.0.1-snapshot-
|
46
|
-
"@instructure/ui-text-input": "11.0.1-snapshot-
|
47
|
-
"@instructure/ui-utils": "11.0.1-snapshot-
|
36
|
+
"@instructure/emotion": "11.0.1-snapshot-3",
|
37
|
+
"@instructure/shared-types": "11.0.1-snapshot-3",
|
38
|
+
"@instructure/ui-calendar": "11.0.1-snapshot-3",
|
39
|
+
"@instructure/ui-form-field": "11.0.1-snapshot-3",
|
40
|
+
"@instructure/ui-i18n": "11.0.1-snapshot-3",
|
41
|
+
"@instructure/ui-icons": "11.0.1-snapshot-3",
|
42
|
+
"@instructure/ui-popover": "11.0.1-snapshot-3",
|
43
|
+
"@instructure/ui-position": "11.0.1-snapshot-3",
|
44
|
+
"@instructure/ui-react-utils": "11.0.1-snapshot-3",
|
45
|
+
"@instructure/ui-selectable": "11.0.1-snapshot-3",
|
46
|
+
"@instructure/ui-text-input": "11.0.1-snapshot-3",
|
47
|
+
"@instructure/ui-utils": "11.0.1-snapshot-3",
|
48
48
|
"moment-timezone": "^0.6.0"
|
49
49
|
},
|
50
50
|
"peerDependencies": {
|
package/src/DateInput2/README.md
CHANGED
@@ -6,41 +6,10 @@ describes: DateInput2
|
|
6
6
|
|
7
7
|
### Minimal config
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
render() {
|
14
|
-
return (
|
15
|
-
<div>
|
16
|
-
<DateInput2
|
17
|
-
renderLabel="Choose a date"
|
18
|
-
screenReaderLabels={{
|
19
|
-
calendarIcon: 'Calendar',
|
20
|
-
nextMonthButton: 'Next month',
|
21
|
-
prevMonthButton: 'Previous month'
|
22
|
-
}}
|
23
|
-
value={this.state.inputValue}
|
24
|
-
width="20rem"
|
25
|
-
onChange={(e, inputValue, dateString) => {
|
26
|
-
this.setState({ dateString, inputValue })
|
27
|
-
}}
|
28
|
-
invalidDateErrorMessage="Invalid date"
|
29
|
-
/>
|
30
|
-
<p>
|
31
|
-
Input Value: <code>{this.state.inputValue}</code>
|
32
|
-
<br />
|
33
|
-
UTC Date String: <code>{this.state.dateString}</code>
|
34
|
-
</p>
|
35
|
-
</div>
|
36
|
-
)
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
render(<Example />)
|
41
|
-
```
|
42
|
-
|
43
|
-
- ```js
|
9
|
+
```js
|
10
|
+
---
|
11
|
+
type: example
|
12
|
+
---
|
44
13
|
const Example = () => {
|
45
14
|
const [inputValue, setInputValue] = useState('')
|
46
15
|
const [dateString, setDateString] = useState('')
|
@@ -71,7 +40,7 @@ describes: DateInput2
|
|
71
40
|
}
|
72
41
|
|
73
42
|
render(<Example />)
|
74
|
-
|
43
|
+
```
|
75
44
|
|
76
45
|
### Parsing and formatting dates
|
77
46
|
|
@@ -164,46 +133,10 @@ In the examples above you can see that the `onChange` callback also return a UTC
|
|
164
133
|
|
165
134
|
### With year picker
|
166
135
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
render() {
|
172
|
-
return (
|
173
|
-
<div>
|
174
|
-
<DateInput2
|
175
|
-
renderLabel="Choose a date"
|
176
|
-
screenReaderLabels={{
|
177
|
-
calendarIcon: 'Calendar',
|
178
|
-
nextMonthButton: 'Next month',
|
179
|
-
prevMonthButton: 'Previous month'
|
180
|
-
}}
|
181
|
-
value={this.state.inputValue}
|
182
|
-
width="20rem"
|
183
|
-
onChange={(e, inputValue, dateString) => {
|
184
|
-
this.setState({ dateString, inputValue })
|
185
|
-
}}
|
186
|
-
invalidDateErrorMessage="Invalid date"
|
187
|
-
withYearPicker={{
|
188
|
-
screenReaderLabel: 'Year picker',
|
189
|
-
startYear: 1900,
|
190
|
-
endYear: 2024
|
191
|
-
}}
|
192
|
-
/>
|
193
|
-
<p>
|
194
|
-
Input Value: <code>{this.state.inputValue}</code>
|
195
|
-
<br />
|
196
|
-
UTC Date String: <code>{this.state.dateString}</code>
|
197
|
-
</p>
|
198
|
-
</div>
|
199
|
-
)
|
200
|
-
}
|
201
|
-
}
|
202
|
-
|
203
|
-
render(<Example />)
|
204
|
-
```
|
205
|
-
|
206
|
-
- ```js
|
136
|
+
```js
|
137
|
+
---
|
138
|
+
type: example
|
139
|
+
---
|
207
140
|
const Example = () => {
|
208
141
|
const [inputValue, setInputValue] = useState('')
|
209
142
|
const [dateString, setDateString] = useState('')
|
@@ -239,7 +172,7 @@ In the examples above you can see that the `onChange` callback also return a UTC
|
|
239
172
|
}
|
240
173
|
|
241
174
|
render(<Example />)
|
242
|
-
|
175
|
+
```
|
243
176
|
|
244
177
|
### Date validation
|
245
178
|
|