Skip to content

Commit

Permalink
feat(ui-date-input): improve DateInput2 api, extend docs
Browse files Browse the repository at this point in the history
  • Loading branch information
balzss committed Sep 23, 2024
1 parent 4c55bc9 commit f369604
Show file tree
Hide file tree
Showing 6 changed files with 394 additions and 298 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/manual-release-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
run: npm ci
- name: Set up project
run: npm run bootstrap
- name: Run tests
run: npm run test:patchset
- name: Release to NPM
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
Expand Down
3 changes: 2 additions & 1 deletion packages/ui-calendar/src/Calendar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Calendar extends Component<CalendarProps, CalendarState> {
this.state.visibleMonth
.clone()
.locale('en')
.subtract({ months: 1 })
.add({ months: 1 })
.format('YYYY')
)
return (
Expand Down Expand Up @@ -318,6 +318,7 @@ class Calendar extends Component<CalendarProps, CalendarState> {
<SimpleSelect
width="90px"
renderLabel=""
placeholder="--"
assistiveText={withYearPicker.screenReaderLabel}
value={visibleMonth.format('YYYY')}
onChange={(
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-date-input/src/DateInput/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
describes: DateInput
---

> **Important:** You can now use are updated version [`DateInput2`](/#DateInput2) which is easier to configure for developers, has a better UX, better accessibility features and a year picker. We recommend using that instead of `DateInput` which will be deprecated in the future.
> *Note:* you can now try the updated (but still experimental) [`DateInput2`](/#DateInput2) which is easier to configure for developers, has a better UX, better accessibility features and a year picker. We recommend using that instead of `DateInput` which will be deprecated in the future.
The `DateInput` component provides a visual interface for inputting date data.

Expand Down
Loading

0 comments on commit f369604

Please sign in to comment.