Skip to content

Commit

Permalink
Add mountnode datepicker compat (microsoft#28747)
Browse files Browse the repository at this point in the history
* Added mountNode to DatePicker compat

* yarn change

* Update packages/react-components/react-datepicker-compat/src/components/DatePicker/DatePicker.types.ts

Co-authored-by: Makoto Morimoto <[email protected]>

* Update packages/react-components/react-datepicker-compat/src/components/DatePicker/DatePicker.types.ts

Co-authored-by: Makoto Morimoto <[email protected]>

* Update change/@fluentui-react-datepicker-compat-d51eda0f-25b4-4190-b43a-79e3714272da.json

Co-authored-by: Makoto Morimoto <[email protected]>

* Update packages/react-components/react-datepicker-compat/src/components/DatePicker/DatePicker.types.ts

Co-authored-by: Makoto Morimoto <[email protected]>

---------

Co-authored-by: Makoto Morimoto <[email protected]>
  • Loading branch information
GeoffCoxMSFT and khmakoto authored Aug 9, 2023
1 parent 742ae8f commit 227120f
Show file tree
Hide file tree
Showing 5 changed files with 220 additions and 207 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "feat: Added mountNode to DatePicker compat.",
"packageName": "@fluentui/react-datepicker-compat",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type { ComponentProps } from '@fluentui/react-utilities';
import type { ComponentState } from '@fluentui/react-utilities';
import type { ForwardRefComponent } from '@fluentui/react-utilities';
import { Input } from '@fluentui/react-input';
import type { PortalProps } from '@fluentui/react-portal';
import type { PositioningProps } from '@fluentui/react-positioning';
import * as React_2 from 'react';
import type { Slot } from '@fluentui/react-utilities';
Expand Down Expand Up @@ -156,7 +157,7 @@ export const datePickerClassNames: SlotClassNames<DatePickerSlots>;
export type DatePickerErrorType = 'invalid-input' | 'out-of-bounds' | 'required-input';

// @public (undocumented)
export type DatePickerProps = Omit<ComponentProps<Partial<DatePickerSlots>>, 'defaultValue' | 'value'> & {
export type DatePickerProps = Omit<ComponentProps<Partial<DatePickerSlots>>, 'defaultValue' | 'value'> & Pick<PortalProps, 'mountNode'> & {
onSelectDate?: (date: Date | null | undefined) => void;
required?: boolean;
disabled?: boolean;
Expand Down
Loading

0 comments on commit 227120f

Please sign in to comment.