Skip to content

Commit

Permalink
feat(react-datepicker-compat): Move DatePicker compat to stable (#27378)
Browse files Browse the repository at this point in the history
* moving react-datepicker-compat to stable

* change file

* reverting charting change

* changing change files type to none for beachball issues

* requested changes
  • Loading branch information
sopranopillow authored Apr 20, 2023
1 parent acbc5fc commit bb8dfe0
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "prerelease",
"type": "minor",
"comment": "feat: Add error handling to DatePicker.",
"packageName": "@fluentui/react-datepicker-compat",
"email": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "feat: Move DatePicker compat to stable.",
"packageName": "@fluentui/react-datepicker-compat",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "prerelease",
"type": "minor",
"comment": "feat: Refactor DatePicker to remove Field and error handling logic.",
"packageName": "@fluentui/react-datepicker-compat",
"email": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "prerelease",
"type": "patch",
"comment": "chore: adopt custom JSX pragma",
"packageName": "@fluentui/react-datepicker-compat",
"email": "[email protected]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ These are not production-ready components and **should never be used in product*
To import DatePicker:

```js
import { DatePicker } from '@fluentui/react-datepicker';
import { DatePicker } from '@fluentui/react-datepicker-compat';
```

### Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"beachball": {
"disallowedChangeTypes": [
"major",
"minor",
"patch"
"prerelease"
]
},
"exports": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
Picking a date can be tough without context. A date picker (DatePicker) offers a Popover control that’s optimized for picking a single date from a calendar view where contextual information like the day of the week or fullness of the calendar is important. You can modify the calendar to provide additional context or to limit available dates.

<!-- Don't allow prettier to collapse code block into single line -->
<!-- prettier-ignore -->
> **⚠️ Preview components are considered unstable:**
>
> ```jsx
>
> import { DatePicker } from '@fluentui/react-datepicker-compat';
>
> ```
>
> - Features and APIs may change before final release
> - Please contact us if you intend to use this in your product
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export { Required } from './DatePickerRequired.stories';
export { Disabled } from './DatePickerDisabled.stories';

export default {
title: 'Preview Components/DatePicker Compat',
title: 'Compat Components/DatePicker',
component: DatePicker,
parameters: {
docs: {
Expand Down

0 comments on commit bb8dfe0

Please sign in to comment.