forked from microsoft/fluentui-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Platforms Impacted - [x] iOS - [x] macOS - [x] win32 (Office) - [x] windows - [x] android ### Description of changes= This PR moves the experimental button into the component button, as we are close to finishing the Button for V2. This PR will NOT be committed until messaging and the component has had final sign off from @ejlayne. NOTE: It may be easier to review this commit-by-commit than all at once. 1. Old Button component is moved under a deprecated folder. 2. All experimental button files have been moved to the button package. The experimental button has been (temporarily) exported as `ButtonV2` to avoid name clashing with the already existing `Button`. 3. The experimental-button package now just reexports what it used to have from the button package. This is to minimize dropping changes we make to the V2 Button while migrating, and not have duplicate code. 4. Added deprecation messages to the experimental package and the old Button component: - Experimental package will have the message "The @fluentui-react-native/exprimental-button package is deprecated. The contents of this package have been moved to @fluentui-react-native/button. If you need to use the Button component from this package, please use ButtonV2 from @fluentui-react-native/button." - The old Button components will show in intellisense "This component is deprecated in favor of ButtonV2. This Button will be removed when the package moves to 1.0.0. At that point, ButtonV2 will be renamed to Button. Please see MIGRATION.md for details on how to move to the new Button." 5. I removed default exports for each control as I was worried that they would clash. This does not affect what gets exported from the package. 6. Merged the Button test pages for both buttons to one page. The old Button tests are now at the bottom of the Button test page. E2E tests have not been merged as I can't specify a test to look for more than two components. ### Verification Verified that deprecation message only shows on debug, not release bundle Verified that Button still loads out of experimental button. One test still pulls the button from the experimental-button package to ensure that it hasn't been broken. Verified that deprecation intellisense shows up. Verified that old Button is not affected via test page. Verified E2E tests run on both versions of the button. ### Pull request checklist This PR has considered (when applicable): - [x] Automated Tests - [x] Documentation and examples - [ ] Keyboard Accessibility - [ ] Voiceover - [ ] Internationalization and Right-to-left Layouts
- Loading branch information
1 parent
27fdfff
commit ffd67ea
Showing
124 changed files
with
1,402 additions
and
1,395 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
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
20 changes: 10 additions & 10 deletions
20
apps/fluent-tester/src/E2E/ButtonExperimental/pages/ButtonExperimentalPageObject.ts
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
2 changes: 1 addition & 1 deletion
2
...ttonExperimental/ButtonHOCTestSection.tsx → ...omponents/Button/ButtonHOCTestSection.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
2 changes: 1 addition & 1 deletion
2
...tonExperimental/ButtonIconTestSection.tsx → ...mponents/Button/ButtonIconTestSection.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
2 changes: 1 addition & 1 deletion
2
...onExperimental/ButtonShapeTestSection.tsx → ...ponents/Button/ButtonShapeTestSection.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
2 changes: 1 addition & 1 deletion
2
...tonExperimental/ButtonSizeTestSection.tsx → ...mponents/Button/ButtonSizeTestSection.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
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
2 changes: 1 addition & 1 deletion
2
...nExperimental/ToggleButtonTestSection.tsx → ...onents/Button/ToggleButtonTestSection.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
10 changes: 10 additions & 0 deletions
10
apps/fluent-tester/src/FluentTester/TestComponents/Button/consts.ts
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.