-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'usr/agupta/plotlyExamples/bugFixes' of https://github.c…
…om/microsoft/fluentui into usr/agupta/plotlyExamples/bugFixes
- Loading branch information
Showing
148 changed files
with
1,851 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
apps/perf-test-react-components/src/scenarios/ColorPicker.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as React from 'react'; | ||
import { ColorPicker, ColorArea, ColorSlider, AlphaSlider } from '@fluentui/react-color-picker-preview'; | ||
import { FluentProvider } from '@fluentui/react-provider'; | ||
import { webLightTheme } from '@fluentui/react-theme'; | ||
|
||
const Scenario = () => ( | ||
<ColorPicker color={{ h: 109, s: 1, v: 0.91 }}> | ||
<ColorArea /> | ||
<ColorSlider /> | ||
<AlphaSlider /> | ||
</ColorPicker> | ||
); | ||
|
||
Scenario.decorator = (props: { children: React.ReactNode }) => ( | ||
<FluentProvider theme={webLightTheme}>{props.children}</FluentProvider> | ||
); | ||
|
||
export default Scenario; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
apps/vr-tests-react-components/src/stories/ColorPicker/ColorPicker.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import * as React from 'react'; | ||
import type { Meta } from '@storybook/react'; | ||
import { ColorPicker } from '@fluentui/react-color-picker-preview'; | ||
import { SampleColorPicker } from './utils'; | ||
import { Steps } from 'storywright'; | ||
|
||
import { DARK_MODE, getStoryVariant, HIGH_CONTRAST, RTL, withStoryWrightSteps } from '../../utilities'; | ||
|
||
export default { | ||
title: 'ColorPicker Converged', | ||
decorators: [ | ||
story => withStoryWrightSteps({ story, steps: new Steps().snapshot('default', { cropTo: '.testWrapper' }).end() }), | ||
], | ||
} satisfies Meta<typeof ColorPicker>; | ||
|
||
export const Default = () => <SampleColorPicker color={{ h: 109, s: 1, v: 0.91 }} />; | ||
|
||
export const DefaultDarkMode = getStoryVariant(Default, DARK_MODE); | ||
|
||
export const DefaultHighContrast = getStoryVariant(Default, HIGH_CONTRAST); | ||
|
||
export const DefaultRTL = getStoryVariant(Default, RTL); | ||
|
||
export const Shape = () => ( | ||
<> | ||
<SampleColorPicker color={{ h: 195, s: 0.85, v: 0.93 }} shape="square" /> | ||
<SampleColorPicker color={{ h: 195, s: 0.85, v: 0.913 }} shape="rounded" /> | ||
</> | ||
); | ||
Shape.storyName = 'shape'; |
16 changes: 16 additions & 0 deletions
16
apps/vr-tests-react-components/src/stories/ColorPicker/utils.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as React from 'react'; | ||
import { | ||
ColorPicker, | ||
ColorArea, | ||
AlphaSlider, | ||
ColorSlider, | ||
type ColorPickerProps, | ||
} from '@fluentui/react-color-picker-preview'; | ||
|
||
export const SampleColorPicker = (props: ColorPickerProps) => ( | ||
<ColorPicker {...props}> | ||
<ColorArea /> | ||
<ColorSlider /> | ||
<AlphaSlider /> | ||
</ColorPicker> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
export * from './TestWrapperDecorator'; | ||
export * from './getStoryVariant'; | ||
export * from './withStoryWrightSteps'; | ||
export { | ||
TestWrapperDecorator, | ||
TestWrapperDecoratorFixedWidth, | ||
TestWrapperDecoratorFullWidth, | ||
TestWrapperDecoratorTall, | ||
TestWrapperDecoratorTallFixedWidth, | ||
} from './TestWrapperDecorator'; | ||
export { DARK_MODE, HIGH_CONTRAST, RTL, getStoryVariant } from './getStoryVariant'; | ||
export { withStoryWrightSteps } from './withStoryWrightSteps'; |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-codemods-64d49103-6d6d-4ef0-93f0-2339233931e5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/codemods", | ||
"email": "olfedias@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-eslint-plugin-75e61142-a4e1-4046-9076-316b44c873ca.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/eslint-plugin", | ||
"email": "olfedias@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 0 additions & 7 deletions
7
change/@fluentui-react-charting-6dbae5bf-a46a-4276-a3bf-3629fd5542ec.json
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-conformance-33c0a62b-e18c-45a1-9fbd-bfd7089f997c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/react-conformance", | ||
"email": "olfedias@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 0 additions & 7 deletions
7
change/@fluentui-react-dialog-ce4d9fc2-0bea-4c0a-9683-8e86082cd6ad.json
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-icon-provider-a7f6eac5-5e7c-40b4-ae8c-4b3dab5bc372.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/react-icon-provider", | ||
"email": "olfedias@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 0 additions & 7 deletions
7
change/@fluentui-react-menu-0feb2146-938a-4fbf-bb2b-2d0d6b7e40b8.json
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-message-bar-72abc821-ab32-4cac-8dd2-4c8dce4c810e.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "refactor(MessageBar): migrate slide & fade to motion components", | ||
"packageName": "@fluentui/react-message-bar", | ||
"email": "robertpenner@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-motion-f4f8b668-785c-48d9-9d8f-2410472b12f4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "fix: handle case when Animation.persist() does not exist", | ||
"packageName": "@fluentui/react-motion", | ||
"email": "seanmonahan@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 0 additions & 7 deletions
7
change/@fluentui-react-popover-01148df2-489e-4ed3-8b39-6a65518b17c3.json
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
change/@fluentui-theme-576e3635-ea2b-48cd-b8bd-f35566e66189.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "chore: remove usage of \"export *\"", | ||
"packageName": "@fluentui/theme", | ||
"email": "olfedias@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@fluentui-web-components-f87a2b96-d977-4138-8cb9-8cad4b13d8a8.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "fix tooltip positioning styles for 'below-end' option", | ||
"packageName": "@fluentui/web-components", | ||
"email": "863023+radium-v@users.noreply.github.com", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
export * from './Button/buttonBehaviorDefinition'; | ||
export * from './Button/buttonGroupBehaviorDefinition'; | ||
export * from './Button/toggleButtonBehaviorDefinition'; | ||
export * from './Link/linkBehaviorDefinition'; | ||
export * from './MenuButton/menuButtonBehaviorDefinition'; | ||
export * from './Pill/pillActionBehaviorDefinition'; | ||
export * from './Pill/pillBehaviorDefinition'; | ||
export * from './Pill/pillOptionBehaviorDefinition'; | ||
export * from './Pill/pillGroupBehaviorDefinition'; | ||
export * from './Popup/popupBehaviorDefinition'; | ||
|
||
export * from './react-button/buttonAccessibilityBehaviorDefinition'; | ||
export { buttonBehaviorDefinition } from './Button/buttonBehaviorDefinition'; | ||
export { buttonGroupBehaviorDefinition } from './Button/buttonGroupBehaviorDefinition'; | ||
export { toggleButtonBehaviorDefinition } from './Button/toggleButtonBehaviorDefinition'; | ||
export { linkBehaviorDefinition } from './Link/linkBehaviorDefinition'; | ||
export { | ||
menuButtonBehaviorDefinition, | ||
menuButtonBehaviorDefinitionMenuSlot, | ||
menuButtonBehaviorDefinitionMenuSlotWithoutID, | ||
menuButtonBehaviorDefinitionTriggerSlotNotTabbable, | ||
menuButtonBehaviorDefinitionTriggerSlotTabbable, | ||
menuButtonBehaviorDefinitionTriggerSlotWithoutID, | ||
menuButtonBehaviorDefinitionTriggerWithTabIndex, | ||
} from './MenuButton/menuButtonBehaviorDefinition'; | ||
export { pillActionBehaviorDefinition } from './Pill/pillActionBehaviorDefinition'; | ||
export { pillBehaviorDefinition } from './Pill/pillBehaviorDefinition'; | ||
export { pillOptionBehaviorDefinition } from './Pill/pillOptionBehaviorDefinition'; | ||
export { pillGroupBehaviorDefinition } from './Pill/pillGroupBehaviorDefinition'; | ||
export { | ||
popupBehaviorDefinition, | ||
popupBehaviorDefinitionPopupSlot, | ||
popupBehaviorDefinitionTriggerSlotNotTabbable, | ||
popupBehaviorDefinitionTriggerSlotTabbable, | ||
popupBehaviorDefinitionTriggerSlotWithTabIndex, | ||
} from './Popup/popupBehaviorDefinition'; | ||
export { buttonAccessibilityBehaviorDefinition } from './react-button/buttonAccessibilityBehaviorDefinition'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './ComponentTestFacade'; | ||
export { ComponentTestFacade } from './ComponentTestFacade'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
export * from './types'; | ||
export * from './validators/index'; | ||
export * from './facades/index'; | ||
export * from './rules/index'; | ||
export * from './definitions/index'; | ||
export type { AccessibilityBehavior, PropValue, Props, Rule, Slot, TestFacade } from './types'; | ||
export { validateBehavior, validateSlot } from './validators/index'; | ||
export { ComponentTestFacade } from './facades/index'; | ||
export { BehaviorRule, SlotRule } from './rules/index'; | ||
export { | ||
buttonAccessibilityBehaviorDefinition, | ||
buttonBehaviorDefinition, | ||
buttonGroupBehaviorDefinition, | ||
linkBehaviorDefinition, | ||
menuButtonBehaviorDefinition, | ||
menuButtonBehaviorDefinitionMenuSlot, | ||
menuButtonBehaviorDefinitionMenuSlotWithoutID, | ||
menuButtonBehaviorDefinitionTriggerSlotNotTabbable, | ||
menuButtonBehaviorDefinitionTriggerSlotTabbable, | ||
menuButtonBehaviorDefinitionTriggerSlotWithoutID, | ||
menuButtonBehaviorDefinitionTriggerWithTabIndex, | ||
pillActionBehaviorDefinition, | ||
pillBehaviorDefinition, | ||
pillGroupBehaviorDefinition, | ||
pillOptionBehaviorDefinition, | ||
popupBehaviorDefinition, | ||
popupBehaviorDefinitionPopupSlot, | ||
popupBehaviorDefinitionTriggerSlotNotTabbable, | ||
popupBehaviorDefinitionTriggerSlotTabbable, | ||
popupBehaviorDefinitionTriggerSlotWithTabIndex, | ||
toggleButtonBehaviorDefinition, | ||
} from './definitions/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './rules'; | ||
export { BehaviorRule, SlotRule } from './rules'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './validate'; | ||
export { validateBehavior, validateSlot } from './validate'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.