@fluentui-react-native/tester 0.107.2 → 0.108.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +269 -1
- package/CHANGELOG.md +58 -2
- package/{src/FluentTester/test-data → assets}/test.svg +0 -0
- package/lib/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.d.ts +13 -0
- package/lib/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.d.ts.map +1 -0
- package/lib/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.js +36 -0
- package/lib/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.js.map +1 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.d.ts +2 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.d.ts.map +1 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.js +52 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.js.map +1 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.d.ts +2 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.d.ts.map +1 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.js +49 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.js.map +1 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.d.ts +2 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.d.ts.map +1 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.js +52 -0
- package/lib/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.js.map +1 -0
- package/lib/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.d.ts +41 -0
- package/lib/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.d.ts.map +1 -0
- package/lib/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.js +253 -0
- package/lib/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.js.map +1 -0
- package/lib/E2E/RadioGroupExperimental/specs/ExperimentalRadioGroup.spec.win.d.ts +1 -0
- package/lib/E2E/RadioGroupExperimental/specs/ExperimentalRadioGroup.spec.win.js +362 -2
- package/lib/E2E/RadioGroupExperimental/specs/ExperimentalRadioGroup.spec.win.js.map +1 -1
- package/lib/E2E/Shadow/pages/ShadowPageObject.d.ts +13 -0
- package/lib/E2E/Shadow/pages/ShadowPageObject.d.ts.map +1 -0
- package/lib/E2E/Shadow/pages/ShadowPageObject.js +36 -0
- package/lib/E2E/Shadow/pages/ShadowPageObject.js.map +1 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.ios.d.ts +2 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.ios.d.ts.map +1 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.ios.js +52 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.ios.js.map +1 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.macos.d.ts +2 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.macos.d.ts.map +1 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.macos.js +49 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.macos.js.map +1 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.win.d.ts +2 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.win.d.ts.map +1 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.win.js +52 -0
- package/lib/E2E/Shadow/specs/Shadow.spec.win.js.map +1 -0
- package/lib/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.d.ts +13 -0
- package/lib/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.d.ts.map +1 -0
- package/lib/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.js +36 -0
- package/lib/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.js.map +1 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.d.ts +2 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.d.ts.map +1 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.js +52 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.js.map +1 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.d.ts +2 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.d.ts.map +1 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.js +49 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.js.map +1 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.d.ts +2 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.d.ts.map +1 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.js +52 -0
- package/lib/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.js.map +1 -0
- package/lib/E2E/common/NavigateAppPage.d.ts +8 -0
- package/lib/E2E/common/NavigateAppPage.d.ts.map +1 -1
- package/lib/E2E/common/NavigateAppPage.js +84 -0
- package/lib/E2E/common/NavigateAppPage.js.map +1 -1
- package/lib/FluentTester.d.ts.map +1 -1
- package/lib/FluentTester.js +12 -5
- package/lib/FluentTester.js.map +1 -1
- package/lib/FluentTesterApp.js +1 -1
- package/lib/FluentTesterApp.js.map +1 -1
- package/lib/TestComponents/Avatar/BasicAvatar.d.ts.map +1 -1
- package/lib/TestComponents/Avatar/BasicAvatar.js +1 -5
- package/lib/TestComponents/Avatar/BasicAvatar.js.map +1 -1
- package/lib/TestComponents/Avatar/CustomizedAvatar.d.ts.map +1 -1
- package/lib/TestComponents/Avatar/CustomizedAvatar.js +1 -5
- package/lib/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
- package/lib/TestComponents/Badge/BasicBadgeTest.d.ts.map +1 -1
- package/lib/TestComponents/Badge/BasicBadgeTest.js +3 -8
- package/lib/TestComponents/Badge/BasicBadgeTest.js.map +1 -1
- package/lib/TestComponents/Badge/CounterBadgeTest.d.ts.map +1 -1
- package/lib/TestComponents/Badge/CounterBadgeTest.js +2 -6
- package/lib/TestComponents/Badge/CounterBadgeTest.js.map +1 -1
- package/lib/TestComponents/Button/ButtonHOCTestSection.d.ts.map +1 -1
- package/lib/TestComponents/Button/ButtonHOCTestSection.js +4 -9
- package/lib/TestComponents/Button/ButtonHOCTestSection.js.map +1 -1
- package/lib/TestComponents/Button/ButtonIconTestSection.android.d.ts +3 -0
- package/lib/TestComponents/Button/ButtonIconTestSection.android.d.ts.map +1 -0
- package/lib/TestComponents/Button/ButtonIconTestSection.android.js +19 -0
- package/lib/TestComponents/Button/ButtonIconTestSection.android.js.map +1 -0
- package/lib/TestComponents/Button/ButtonIconTestSection.d.ts.map +1 -1
- package/lib/TestComponents/Button/ButtonIconTestSection.js +3 -9
- package/lib/TestComponents/Button/ButtonIconTestSection.js.map +1 -1
- package/lib/TestComponents/Button/ButtonSizeTestSection.d.ts.map +1 -1
- package/lib/TestComponents/Button/ButtonSizeTestSection.js +21 -22
- package/lib/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
- package/lib/TestComponents/Button/ButtonTest.d.ts.map +1 -1
- package/lib/TestComponents/Button/ButtonTest.js +15 -12
- package/lib/TestComponents/Button/ButtonTest.js.map +1 -1
- package/lib/TestComponents/Button/ButtonVariantTestSection.android.d.ts +3 -0
- package/lib/TestComponents/Button/ButtonVariantTestSection.android.d.ts.map +1 -0
- package/lib/TestComponents/Button/ButtonVariantTestSection.android.js +23 -0
- package/lib/TestComponents/Button/ButtonVariantTestSection.android.js.map +1 -0
- package/lib/TestComponents/Button/ButtonVariantTestSection.d.ts.map +1 -1
- package/lib/TestComponents/Button/ButtonVariantTestSection.js +2 -12
- package/lib/TestComponents/Button/ButtonVariantTestSection.js.map +1 -1
- package/lib/TestComponents/Button/deprecated/ButtonIconTest.d.ts.map +1 -1
- package/lib/TestComponents/Button/deprecated/ButtonIconTest.js +1 -6
- package/lib/TestComponents/Button/deprecated/ButtonIconTest.js.map +1 -1
- package/lib/TestComponents/CheckboxExperimental/CheckboxTest.d.ts.map +1 -1
- package/lib/TestComponents/CheckboxExperimental/CheckboxTest.js +15 -3
- package/lib/TestComponents/CheckboxExperimental/CheckboxTest.js.map +1 -1
- package/lib/TestComponents/Common/iconExamples.d.ts +3 -1
- package/lib/TestComponents/Common/iconExamples.d.ts.map +1 -1
- package/lib/TestComponents/Common/iconExamples.js +4 -3
- package/lib/TestComponents/Common/iconExamples.js.map +1 -1
- package/lib/TestComponents/CornerRadius/CornerRadiusTest.d.ts +3 -0
- package/lib/TestComponents/CornerRadius/CornerRadiusTest.d.ts.map +1 -0
- package/lib/TestComponents/CornerRadius/CornerRadiusTest.js +60 -0
- package/lib/TestComponents/CornerRadius/CornerRadiusTest.js.map +1 -0
- package/lib/TestComponents/CornerRadius/consts.d.ts +3 -0
- package/lib/TestComponents/CornerRadius/consts.d.ts.map +1 -0
- package/lib/TestComponents/CornerRadius/consts.js +3 -0
- package/lib/TestComponents/CornerRadius/consts.js.map +1 -0
- package/lib/TestComponents/CornerRadius/index.d.ts +3 -0
- package/lib/TestComponents/CornerRadius/index.d.ts.map +1 -0
- package/lib/TestComponents/CornerRadius/index.js +3 -0
- package/lib/TestComponents/CornerRadius/index.js.map +1 -0
- package/lib/TestComponents/Drawer/DrawerTest.d.ts.map +1 -1
- package/lib/TestComponents/Drawer/DrawerTest.js +1 -5
- package/lib/TestComponents/Drawer/DrawerTest.js.map +1 -1
- package/lib/TestComponents/Icon/IconE2ETest.d.ts.map +1 -1
- package/lib/TestComponents/Icon/IconE2ETest.js +1 -1
- package/lib/TestComponents/Icon/IconE2ETest.js.map +1 -1
- package/lib/TestComponents/Icon/IconExperimental.js +1 -1
- package/lib/TestComponents/Icon/IconExperimental.js.map +1 -1
- package/lib/TestComponents/Icon/IconTest.d.ts.map +1 -1
- package/lib/TestComponents/Icon/IconTest.js +1 -7
- package/lib/TestComponents/Icon/IconTest.js.map +1 -1
- package/lib/TestComponents/MenuButton/NestedMenuButtonTest.d.ts.map +1 -1
- package/lib/TestComponents/MenuButton/NestedMenuButtonTest.js +2 -1
- package/lib/TestComponents/MenuButton/NestedMenuButtonTest.js.map +1 -1
- package/lib/TestComponents/MenuButton/StandardMenuButtonTest.d.ts.map +1 -1
- package/lib/TestComponents/MenuButton/StandardMenuButtonTest.js +2 -1
- package/lib/TestComponents/MenuButton/StandardMenuButtonTest.js.map +1 -1
- package/lib/TestComponents/MenuButton/testData.d.ts +1 -3
- package/lib/TestComponents/MenuButton/testData.d.ts.map +1 -1
- package/lib/TestComponents/MenuButton/testData.js +1 -6
- package/lib/TestComponents/MenuButton/testData.js.map +1 -1
- package/lib/TestComponents/MenuButtonExperimental/NestedMenuButtonTest.d.ts.map +1 -1
- package/lib/TestComponents/MenuButtonExperimental/NestedMenuButtonTest.js +2 -1
- package/lib/TestComponents/MenuButtonExperimental/NestedMenuButtonTest.js.map +1 -1
- package/lib/TestComponents/MenuButtonExperimental/StandardMenuButtonTest.d.ts.map +1 -1
- package/lib/TestComponents/MenuButtonExperimental/StandardMenuButtonTest.js +2 -1
- package/lib/TestComponents/MenuButtonExperimental/StandardMenuButtonTest.js.map +1 -1
- package/lib/TestComponents/MenuButtonExperimental/testData.d.ts +1 -3
- package/lib/TestComponents/MenuButtonExperimental/testData.d.ts.map +1 -1
- package/lib/TestComponents/MenuButtonExperimental/testData.js +1 -6
- package/lib/TestComponents/MenuButtonExperimental/testData.js.map +1 -1
- package/lib/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.d.ts +3 -0
- package/lib/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.d.ts.map +1 -0
- package/lib/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.js +222 -0
- package/lib/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.js.map +1 -0
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.d.ts +3 -0
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.d.ts.map +1 -0
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js +21 -0
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js.map +1 -0
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.d.ts.map +1 -1
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js +12 -0
- package/lib/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js.map +1 -1
- package/lib/TestComponents/RadioGroupExperimental/SubtextRadioGroup.js +3 -3
- package/lib/TestComponents/RadioGroupExperimental/SubtextRadioGroup.js.map +1 -1
- package/lib/TestComponents/RadioGroupExperimental/consts.d.ts +18 -0
- package/lib/TestComponents/RadioGroupExperimental/consts.d.ts.map +1 -1
- package/lib/TestComponents/RadioGroupExperimental/consts.js +23 -0
- package/lib/TestComponents/RadioGroupExperimental/consts.js.map +1 -1
- package/lib/TestComponents/Shadow/ShadowButtonTestSection.d.ts.map +1 -1
- package/lib/TestComponents/Shadow/ShadowButtonTestSection.js +4 -3
- package/lib/TestComponents/Shadow/ShadowButtonTestSection.js.map +1 -1
- package/lib/TestComponents/Shadow/ShadowTest.d.ts.map +1 -1
- package/lib/TestComponents/Shadow/ShadowTest.js +0 -2
- package/lib/TestComponents/Shadow/ShadowTest.js.map +1 -1
- package/lib/TestComponents/StrokeWidth/StrokeWidthTest.d.ts +3 -0
- package/lib/TestComponents/StrokeWidth/StrokeWidthTest.d.ts.map +1 -0
- package/lib/TestComponents/StrokeWidth/StrokeWidthTest.js +70 -0
- package/lib/TestComponents/StrokeWidth/StrokeWidthTest.js.map +1 -0
- package/lib/TestComponents/StrokeWidth/consts.d.ts +3 -0
- package/lib/TestComponents/StrokeWidth/consts.d.ts.map +1 -0
- package/lib/TestComponents/StrokeWidth/consts.js +3 -0
- package/lib/TestComponents/StrokeWidth/consts.js.map +1 -0
- package/lib/TestComponents/StrokeWidth/index.d.ts +3 -0
- package/lib/TestComponents/StrokeWidth/index.d.ts.map +1 -0
- package/lib/TestComponents/StrokeWidth/index.js +3 -0
- package/lib/TestComponents/StrokeWidth/index.js.map +1 -0
- package/lib/TestComponents/Svg/SvgTest.d.ts.map +1 -1
- package/lib/TestComponents/Svg/SvgTest.js +17 -0
- package/lib/TestComponents/Svg/SvgTest.js.map +1 -1
- package/lib/TestComponents/Tabs/TabsTest.d.ts.map +1 -1
- package/lib/TestComponents/Tabs/TabsTest.js +2 -5
- package/lib/TestComponents/Tabs/TabsTest.js.map +1 -1
- package/lib/TestComponents/TabsExperimental/TabsTest.d.ts.map +1 -1
- package/lib/TestComponents/TabsExperimental/TabsTest.js +1 -5
- package/lib/TestComponents/TabsExperimental/TabsTest.js.map +1 -1
- package/lib/testPages.d.ts.map +1 -1
- package/lib/testPages.js +35 -21
- package/lib/testPages.js.map +1 -1
- package/lib-commonjs/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.d.ts +13 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.d.ts.map +1 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.js +38 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.js.map +1 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.d.ts +2 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.d.ts.map +1 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.js +54 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.js.map +1 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.d.ts +2 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.d.ts.map +1 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.js +51 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.js.map +1 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.d.ts +2 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.d.ts.map +1 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.js +54 -0
- package/lib-commonjs/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.js.map +1 -0
- package/lib-commonjs/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.d.ts +41 -0
- package/lib-commonjs/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.d.ts.map +1 -0
- package/lib-commonjs/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.js +255 -0
- package/lib-commonjs/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.js.map +1 -0
- package/lib-commonjs/E2E/RadioGroupExperimental/specs/ExperimentalRadioGroup.spec.win.d.ts +1 -0
- package/lib-commonjs/E2E/RadioGroupExperimental/specs/ExperimentalRadioGroup.spec.win.js +363 -1
- package/lib-commonjs/E2E/RadioGroupExperimental/specs/ExperimentalRadioGroup.spec.win.js.map +1 -1
- package/lib-commonjs/E2E/Shadow/pages/ShadowPageObject.d.ts +13 -0
- package/lib-commonjs/E2E/Shadow/pages/ShadowPageObject.d.ts.map +1 -0
- package/lib-commonjs/E2E/Shadow/pages/ShadowPageObject.js +38 -0
- package/lib-commonjs/E2E/Shadow/pages/ShadowPageObject.js.map +1 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.ios.d.ts +2 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.ios.d.ts.map +1 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.ios.js +54 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.ios.js.map +1 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.macos.d.ts +2 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.macos.d.ts.map +1 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.macos.js +51 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.macos.js.map +1 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.win.d.ts +2 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.win.d.ts.map +1 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.win.js +54 -0
- package/lib-commonjs/E2E/Shadow/specs/Shadow.spec.win.js.map +1 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.d.ts +13 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.d.ts.map +1 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.js +38 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.js.map +1 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.d.ts +2 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.d.ts.map +1 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.js +54 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.js.map +1 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.d.ts +2 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.d.ts.map +1 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.js +51 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.js.map +1 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.d.ts +2 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.d.ts.map +1 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.js +54 -0
- package/lib-commonjs/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.js.map +1 -0
- package/lib-commonjs/E2E/common/NavigateAppPage.d.ts +8 -0
- package/lib-commonjs/E2E/common/NavigateAppPage.d.ts.map +1 -1
- package/lib-commonjs/E2E/common/NavigateAppPage.js +136 -52
- package/lib-commonjs/E2E/common/NavigateAppPage.js.map +1 -1
- package/lib-commonjs/FluentTester.d.ts.map +1 -1
- package/lib-commonjs/FluentTester.js +11 -4
- package/lib-commonjs/FluentTester.js.map +1 -1
- package/lib-commonjs/FluentTesterApp.js +1 -1
- package/lib-commonjs/FluentTesterApp.js.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/BasicAvatar.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/BasicAvatar.js +2 -6
- package/lib-commonjs/TestComponents/Avatar/BasicAvatar.js.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.js +2 -6
- package/lib-commonjs/TestComponents/Avatar/CustomizedAvatar.js.map +1 -1
- package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.js +5 -10
- package/lib-commonjs/TestComponents/Badge/BasicBadgeTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Badge/CounterBadgeTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Badge/CounterBadgeTest.js +2 -6
- package/lib-commonjs/TestComponents/Badge/CounterBadgeTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonHOCTestSection.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonHOCTestSection.js +4 -9
- package/lib-commonjs/TestComponents/Button/ButtonHOCTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.android.d.ts +3 -0
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.android.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.android.js +24 -0
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.android.js.map +1 -0
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.js +6 -12
- package/lib-commonjs/TestComponents/Button/ButtonIconTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonSizeTestSection.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonSizeTestSection.js +20 -21
- package/lib-commonjs/TestComponents/Button/ButtonSizeTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonTest.js +14 -12
- package/lib-commonjs/TestComponents/Button/ButtonTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.android.d.ts +3 -0
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.android.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.android.js +28 -0
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.android.js.map +1 -0
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.js +1 -11
- package/lib-commonjs/TestComponents/Button/ButtonVariantTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Button/deprecated/ButtonIconTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Button/deprecated/ButtonIconTest.js +3 -8
- package/lib-commonjs/TestComponents/Button/deprecated/ButtonIconTest.js.map +1 -1
- package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.js +14 -2
- package/lib-commonjs/TestComponents/CheckboxExperimental/CheckboxTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Common/iconExamples.d.ts +3 -1
- package/lib-commonjs/TestComponents/Common/iconExamples.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Common/iconExamples.js +6 -5
- package/lib-commonjs/TestComponents/Common/iconExamples.js.map +1 -1
- package/lib-commonjs/TestComponents/CornerRadius/CornerRadiusTest.d.ts +3 -0
- package/lib-commonjs/TestComponents/CornerRadius/CornerRadiusTest.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/CornerRadius/CornerRadiusTest.js +65 -0
- package/lib-commonjs/TestComponents/CornerRadius/CornerRadiusTest.js.map +1 -0
- package/lib-commonjs/TestComponents/CornerRadius/consts.d.ts +3 -0
- package/lib-commonjs/TestComponents/CornerRadius/consts.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/CornerRadius/consts.js +6 -0
- package/lib-commonjs/TestComponents/CornerRadius/consts.js.map +1 -0
- package/lib-commonjs/TestComponents/CornerRadius/index.d.ts +3 -0
- package/lib-commonjs/TestComponents/CornerRadius/index.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/CornerRadius/index.js +6 -0
- package/lib-commonjs/TestComponents/CornerRadius/index.js.map +1 -0
- package/lib-commonjs/TestComponents/Drawer/DrawerTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Drawer/DrawerTest.js +2 -6
- package/lib-commonjs/TestComponents/Drawer/DrawerTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Icon/IconE2ETest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Icon/IconE2ETest.js +2 -2
- package/lib-commonjs/TestComponents/Icon/IconE2ETest.js.map +1 -1
- package/lib-commonjs/TestComponents/Icon/IconExperimental.js +1 -1
- package/lib-commonjs/TestComponents/Icon/IconExperimental.js.map +1 -1
- package/lib-commonjs/TestComponents/Icon/IconTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Icon/IconTest.js +5 -11
- package/lib-commonjs/TestComponents/Icon/IconTest.js.map +1 -1
- package/lib-commonjs/TestComponents/MenuButton/NestedMenuButtonTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/MenuButton/NestedMenuButtonTest.js +2 -1
- package/lib-commonjs/TestComponents/MenuButton/NestedMenuButtonTest.js.map +1 -1
- package/lib-commonjs/TestComponents/MenuButton/StandardMenuButtonTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/MenuButton/StandardMenuButtonTest.js +2 -1
- package/lib-commonjs/TestComponents/MenuButton/StandardMenuButtonTest.js.map +1 -1
- package/lib-commonjs/TestComponents/MenuButton/testData.d.ts +1 -3
- package/lib-commonjs/TestComponents/MenuButton/testData.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/MenuButton/testData.js +4 -10
- package/lib-commonjs/TestComponents/MenuButton/testData.js.map +1 -1
- package/lib-commonjs/TestComponents/MenuButtonExperimental/NestedMenuButtonTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/MenuButtonExperimental/NestedMenuButtonTest.js +2 -1
- package/lib-commonjs/TestComponents/MenuButtonExperimental/NestedMenuButtonTest.js.map +1 -1
- package/lib-commonjs/TestComponents/MenuButtonExperimental/StandardMenuButtonTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/MenuButtonExperimental/StandardMenuButtonTest.js +2 -1
- package/lib-commonjs/TestComponents/MenuButtonExperimental/StandardMenuButtonTest.js.map +1 -1
- package/lib-commonjs/TestComponents/MenuButtonExperimental/testData.d.ts +1 -3
- package/lib-commonjs/TestComponents/MenuButtonExperimental/testData.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/MenuButtonExperimental/testData.js +4 -10
- package/lib-commonjs/TestComponents/MenuButtonExperimental/testData.js.map +1 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.d.ts +3 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.js +227 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.js.map +1 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.d.ts +3 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js +26 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.js.map +1 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js +12 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.js.map +1 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/SubtextRadioGroup.js +3 -3
- package/lib-commonjs/TestComponents/RadioGroupExperimental/SubtextRadioGroup.js.map +1 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/consts.d.ts +18 -0
- package/lib-commonjs/TestComponents/RadioGroupExperimental/consts.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/consts.js +24 -1
- package/lib-commonjs/TestComponents/RadioGroupExperimental/consts.js.map +1 -1
- package/lib-commonjs/TestComponents/Shadow/ShadowButtonTestSection.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Shadow/ShadowButtonTestSection.js +4 -3
- package/lib-commonjs/TestComponents/Shadow/ShadowButtonTestSection.js.map +1 -1
- package/lib-commonjs/TestComponents/Shadow/ShadowTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Shadow/ShadowTest.js +0 -2
- package/lib-commonjs/TestComponents/Shadow/ShadowTest.js.map +1 -1
- package/lib-commonjs/TestComponents/StrokeWidth/StrokeWidthTest.d.ts +3 -0
- package/lib-commonjs/TestComponents/StrokeWidth/StrokeWidthTest.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/StrokeWidth/StrokeWidthTest.js +75 -0
- package/lib-commonjs/TestComponents/StrokeWidth/StrokeWidthTest.js.map +1 -0
- package/lib-commonjs/TestComponents/StrokeWidth/consts.d.ts +3 -0
- package/lib-commonjs/TestComponents/StrokeWidth/consts.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/StrokeWidth/consts.js +6 -0
- package/lib-commonjs/TestComponents/StrokeWidth/consts.js.map +1 -0
- package/lib-commonjs/TestComponents/StrokeWidth/index.d.ts +3 -0
- package/lib-commonjs/TestComponents/StrokeWidth/index.d.ts.map +1 -0
- package/lib-commonjs/TestComponents/StrokeWidth/index.js +6 -0
- package/lib-commonjs/TestComponents/StrokeWidth/index.js.map +1 -0
- package/lib-commonjs/TestComponents/Svg/SvgTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Svg/SvgTest.js +17 -0
- package/lib-commonjs/TestComponents/Svg/SvgTest.js.map +1 -1
- package/lib-commonjs/TestComponents/Tabs/TabsTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/Tabs/TabsTest.js +2 -5
- package/lib-commonjs/TestComponents/Tabs/TabsTest.js.map +1 -1
- package/lib-commonjs/TestComponents/TabsExperimental/TabsTest.d.ts.map +1 -1
- package/lib-commonjs/TestComponents/TabsExperimental/TabsTest.js +4 -8
- package/lib-commonjs/TestComponents/TabsExperimental/TabsTest.js.map +1 -1
- package/lib-commonjs/testPages.d.ts.map +1 -1
- package/lib-commonjs/testPages.js +35 -21
- package/lib-commonjs/testPages.js.map +1 -1
- package/macos/Podfile.lock +227 -227
- package/package.json +32 -28
- package/src/E2E/CornerRadiusTokens/pages/CornerRadiusTokensPageObject.ts +21 -0
- package/src/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.ios.ts +22 -0
- package/src/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.macos.ts +21 -0
- package/src/E2E/CornerRadiusTokens/specs/CornerRadiusTokens.spec.win.ts +20 -0
- package/src/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalPageObject.ts +142 -0
- package/src/E2E/RadioGroupExperimental/specs/ExperimentalRadioGroup.spec.win.ts +134 -1
- package/src/E2E/Shadow/pages/ShadowPageObject.ts +21 -0
- package/src/E2E/Shadow/specs/Shadow.spec.ios.ts +22 -0
- package/src/E2E/Shadow/specs/Shadow.spec.macos.ts +21 -0
- package/src/E2E/Shadow/specs/Shadow.spec.win.ts +20 -0
- package/src/E2E/StrokeWidthTokens/pages/StrokeWidthTokensPageObject.ts +21 -0
- package/src/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.ios.ts +22 -0
- package/src/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.macos.ts +21 -0
- package/src/E2E/StrokeWidthTokens/specs/StrokeWidthTokens.spec.win.ts +20 -0
- package/src/E2E/common/NavigateAppPage.ts +36 -0
- package/src/FluentTester.tsx +15 -10
- package/src/FluentTesterApp.tsx +1 -1
- package/src/TestComponents/Avatar/BasicAvatar.tsx +1 -7
- package/src/TestComponents/Avatar/CustomizedAvatar.tsx +1 -6
- package/src/TestComponents/Badge/BasicBadgeTest.tsx +3 -9
- package/src/TestComponents/Badge/CounterBadgeTest.tsx +2 -8
- package/src/TestComponents/Button/ButtonHOCTestSection.tsx +4 -9
- package/src/TestComponents/Button/ButtonIconTestSection.android.tsx +30 -0
- package/src/TestComponents/Button/ButtonIconTestSection.tsx +3 -11
- package/src/TestComponents/Button/ButtonSizeTestSection.tsx +44 -38
- package/src/TestComponents/Button/ButtonTest.tsx +13 -11
- package/src/TestComponents/Button/ButtonVariantTestSection.android.tsx +45 -0
- package/src/TestComponents/Button/ButtonVariantTestSection.tsx +1 -16
- package/src/TestComponents/Button/deprecated/ButtonIconTest.tsx +1 -8
- package/src/TestComponents/CheckboxExperimental/CheckboxTest.tsx +24 -3
- package/src/TestComponents/Common/iconExamples.tsx +6 -4
- package/src/TestComponents/CornerRadius/CornerRadiusTest.tsx +87 -0
- package/src/TestComponents/CornerRadius/consts.ts +2 -0
- package/src/TestComponents/CornerRadius/index.ts +2 -0
- package/src/TestComponents/Drawer/DrawerTest.tsx +2 -8
- package/src/TestComponents/Icon/IconE2ETest.tsx +1 -2
- package/src/TestComponents/Icon/IconExperimental.tsx +1 -1
- package/src/TestComponents/Icon/IconTest.tsx +1 -9
- package/src/TestComponents/MenuButton/NestedMenuButtonTest.tsx +2 -1
- package/src/TestComponents/MenuButton/StandardMenuButtonTest.tsx +2 -1
- package/src/TestComponents/MenuButton/testData.ts +1 -8
- package/src/TestComponents/MenuButtonExperimental/NestedMenuButtonTest.tsx +2 -1
- package/src/TestComponents/MenuButtonExperimental/StandardMenuButtonTest.tsx +2 -1
- package/src/TestComponents/MenuButtonExperimental/testData.ts +1 -8
- package/src/TestComponents/RadioGroupExperimental/CustomizedRadioGroup.tsx +373 -0
- package/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalE2ETest.tsx +43 -0
- package/src/TestComponents/RadioGroupExperimental/RadioGroupExperimentalTest.tsx +12 -0
- package/src/TestComponents/RadioGroupExperimental/SubtextRadioGroup.tsx +3 -3
- package/src/TestComponents/RadioGroupExperimental/consts.ts +31 -0
- package/src/TestComponents/Shadow/ShadowButtonTestSection.tsx +10 -3
- package/src/TestComponents/Shadow/ShadowTest.tsx +0 -2
- package/src/TestComponents/StrokeWidth/StrokeWidthTest.tsx +93 -0
- package/src/TestComponents/StrokeWidth/consts.ts +2 -0
- package/src/TestComponents/StrokeWidth/index.ts +2 -0
- package/src/TestComponents/Svg/SvgTest.tsx +22 -0
- package/src/TestComponents/Tabs/TabsTest.tsx +2 -5
- package/src/TestComponents/TabsExperimental/TabsTest.tsx +1 -7
- package/src/testPages.ts +35 -21
- package/lib/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.d.ts +0 -1
- package/lib/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.d.ts.map +0 -1
- package/lib/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.js +0 -3
- package/lib/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.js.map +0 -1
- package/lib-commonjs/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.d.ts +0 -1
- package/lib-commonjs/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.d.ts.map +0 -1
- package/lib-commonjs/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.js +0 -3
- package/lib-commonjs/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.js.map +0 -1
- package/src/E2E/RadioGroupExperimental/pages/RadioGroupExperimentalTabsPageObject.win.ts +0 -1
- package/src/TestComponents/Badge/oof.svg +0 -3
- package/src/TestComponents/Button/test.svg +0 -1
- package/src/TestComponents/Icon/assets/test.svg +0 -1
- package/src/TestComponents/Tabs/icon_24x24.png +0 -0
- package/src/TestComponents/Tabs/test.svg +0 -1
- package/src/TestComponents/TabsExperimental/test.svg +0 -1
|
@@ -3,6 +3,7 @@ import { HOMEPAGE_AVATAR_BUTTON } from '../../TestComponents/Avatar/consts';
|
|
|
3
3
|
import { HOMEPAGE_BADGE_BUTTON } from '../../TestComponents/Badge/consts';
|
|
4
4
|
import { HOMEPAGE_CHECKBOX_BUTTON } from '../../TestComponents/Checkbox/consts';
|
|
5
5
|
import { HOMEPAGE_CHECKBOX_EXPERIMENTAL_BUTTON } from '../../TestComponents/CheckboxExperimental/consts';
|
|
6
|
+
import { HOMEPAGE_CORNERRADIUS_BUTTON } from '../../TestComponents/CornerRadius/consts';
|
|
6
7
|
import { HOMEPAGE_BUTTON_BUTTON } from '../../TestComponents/Button/consts';
|
|
7
8
|
import { HOMEPAGE_CALLOUT_BUTTON } from '../../TestComponents/Callout/consts';
|
|
8
9
|
import { HOMEPAGE_CONTEXTUALMENU_BUTTON } from '../../TestComponents/ContextualMenu/consts';
|
|
@@ -19,8 +20,11 @@ import { HOMEPAGE_PERSONA_BUTTON } from '../../TestComponents/Persona/consts';
|
|
|
19
20
|
import { HOMEPAGE_PERSONACOIN_BUTTON } from '../../TestComponents/PersonaCoin/consts';
|
|
20
21
|
import { HOMEPAGE_PRESSABLE_BUTTON } from '../../TestComponents/Pressable/consts';
|
|
21
22
|
import { HOMEPAGE_RADIOGROUP_BUTTON } from '../../TestComponents/RadioGroup/consts';
|
|
23
|
+
import { HOMEPAGE_RADIO_GROUP_EXPERIMENTAL_BUTTON } from '../../TestComponents/RadioGroupExperimental/consts';
|
|
22
24
|
import { HOMEPAGE_SEPARATOR_BUTTON } from '../../TestComponents/Separator/consts';
|
|
25
|
+
import { HOMEPAGE_SHADOW_BUTTON } from '../../TestComponents/Shadow/consts';
|
|
23
26
|
import { HOMEPAGE_SHIMMER_BUTTON } from '../../TestComponents/Shimmer/consts';
|
|
27
|
+
import { HOMEPAGE_STROKEWIDTH_BUTTON } from '../../TestComponents/StrokeWidth/consts';
|
|
24
28
|
import { HOMEPAGE_SVG_BUTTON } from '../../TestComponents/Svg/consts';
|
|
25
29
|
import { HOMEPAGE_SWITCH_BUTTON } from '../../TestComponents/Switch/consts';
|
|
26
30
|
import { HOMEPAGE_TEXT_BUTTON } from '../../TestComponents/Text/consts';
|
|
@@ -64,6 +68,10 @@ class NavigateAppPage extends BasePage {
|
|
|
64
68
|
await (await this.contextualMenuPage).click();
|
|
65
69
|
}
|
|
66
70
|
|
|
71
|
+
async clickAndGoToCornerRadiusTokensPage() {
|
|
72
|
+
await (await this.cornerRadiusTokensPage).click();
|
|
73
|
+
}
|
|
74
|
+
|
|
67
75
|
async clickAndGoToFocusTrapZonePage() {
|
|
68
76
|
await (await this.focusTrapZonePage).click();
|
|
69
77
|
}
|
|
@@ -112,14 +120,26 @@ class NavigateAppPage extends BasePage {
|
|
|
112
120
|
await (await this.radioGroupPage).click();
|
|
113
121
|
}
|
|
114
122
|
|
|
123
|
+
async clickAndGoToRadioGroupExperimentalPage() {
|
|
124
|
+
await (await this.radioGroupExperimentalPage).click();
|
|
125
|
+
}
|
|
126
|
+
|
|
115
127
|
async clickAndGoToSeparatorPage() {
|
|
116
128
|
await (await this.separatorPage).click();
|
|
117
129
|
}
|
|
118
130
|
|
|
131
|
+
async clickAndGoToShadowPage() {
|
|
132
|
+
await (await this.shadowPage).click();
|
|
133
|
+
}
|
|
134
|
+
|
|
119
135
|
async clickAndGoToShimmerPage() {
|
|
120
136
|
await (await this.shimmerPage).click();
|
|
121
137
|
}
|
|
122
138
|
|
|
139
|
+
async clickAndGoToStrokeWidthTokensPage() {
|
|
140
|
+
await (await this.strokeWidthTokensPage).click();
|
|
141
|
+
}
|
|
142
|
+
|
|
123
143
|
async clickAndGoToSvgPage() {
|
|
124
144
|
await (await this.svgPage).click();
|
|
125
145
|
}
|
|
@@ -192,6 +212,10 @@ class NavigateAppPage extends BasePage {
|
|
|
192
212
|
return By(HOMEPAGE_CONTEXTUALMENU_BUTTON);
|
|
193
213
|
}
|
|
194
214
|
|
|
215
|
+
private get cornerRadiusTokensPage() {
|
|
216
|
+
return By(HOMEPAGE_CORNERRADIUS_BUTTON);
|
|
217
|
+
}
|
|
218
|
+
|
|
195
219
|
private get focusTrapZonePage() {
|
|
196
220
|
return By(HOMEPAGE_FOCUSTRAPZONE_BUTTON);
|
|
197
221
|
}
|
|
@@ -240,14 +264,26 @@ class NavigateAppPage extends BasePage {
|
|
|
240
264
|
return By(HOMEPAGE_RADIOGROUP_BUTTON);
|
|
241
265
|
}
|
|
242
266
|
|
|
267
|
+
private get radioGroupExperimentalPage() {
|
|
268
|
+
return By(HOMEPAGE_RADIO_GROUP_EXPERIMENTAL_BUTTON);
|
|
269
|
+
}
|
|
270
|
+
|
|
243
271
|
private get separatorPage() {
|
|
244
272
|
return By(HOMEPAGE_SEPARATOR_BUTTON);
|
|
245
273
|
}
|
|
246
274
|
|
|
275
|
+
private get shadowPage() {
|
|
276
|
+
return By(HOMEPAGE_SHADOW_BUTTON);
|
|
277
|
+
}
|
|
278
|
+
|
|
247
279
|
private get shimmerPage() {
|
|
248
280
|
return By(HOMEPAGE_SHIMMER_BUTTON);
|
|
249
281
|
}
|
|
250
282
|
|
|
283
|
+
private get strokeWidthTokensPage() {
|
|
284
|
+
return By(HOMEPAGE_STROKEWIDTH_BUTTON);
|
|
285
|
+
}
|
|
286
|
+
|
|
251
287
|
private get svgPage() {
|
|
252
288
|
return By(HOMEPAGE_SVG_BUTTON);
|
|
253
289
|
}
|
package/src/FluentTester.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from '@fluentui-react-native/framework';
|
|
2
|
-
import {
|
|
2
|
+
import { Separator, Text } from '@fluentui/react-native';
|
|
3
3
|
import { ButtonV1 as Button } from '@fluentui-react-native/button';
|
|
4
4
|
import { themedStyleSheet } from '@fluentui-react-native/themed-stylesheet';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -78,6 +78,15 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
78
78
|
|
|
79
79
|
const themedStyles = getThemedStyles(useTheme());
|
|
80
80
|
|
|
81
|
+
// This is used to initially bring focus to the app on win32
|
|
82
|
+
const focusOnMountRef = React.useRef<View>();
|
|
83
|
+
|
|
84
|
+
React.useEffect(() => {
|
|
85
|
+
if (Platform.OS === ('win32' as any)) {
|
|
86
|
+
focusOnMountRef.current.focus();
|
|
87
|
+
}
|
|
88
|
+
}, []);
|
|
89
|
+
|
|
81
90
|
const RootView = Platform.select({
|
|
82
91
|
ios: SafeAreaView,
|
|
83
92
|
default: View,
|
|
@@ -147,6 +156,8 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
147
156
|
onClick={() => setSelectedTestIndex(index)}
|
|
148
157
|
style={fluentTesterStyles.testListItem}
|
|
149
158
|
testID={description.testPage}
|
|
159
|
+
// This ref so focus can be set on it when the app mounts in win32. Without this, focus won't be set anywhere.
|
|
160
|
+
{...(index === 0 && { componentRef: focusOnMountRef })}
|
|
150
161
|
>
|
|
151
162
|
{description.name}
|
|
152
163
|
</Button>
|
|
@@ -227,15 +238,9 @@ export const FluentTester: React.FunctionComponent<FluentTesterProps> = (props:
|
|
|
227
238
|
return (
|
|
228
239
|
// TODO: Figure out why making this view accessible breaks element querying on iOS.
|
|
229
240
|
<View accessible={Platform.OS !== 'ios'} testID={ROOT_VIEW} style={commonTestStyles.flex}>
|
|
230
|
-
{
|
|
231
|
-
<
|
|
232
|
-
|
|
233
|
-
</FocusTrapZone>
|
|
234
|
-
) : (
|
|
235
|
-
<RootView style={themedStyles.root}>
|
|
236
|
-
<TesterContent />
|
|
237
|
-
</RootView>
|
|
238
|
-
)}
|
|
241
|
+
<RootView style={themedStyles.root}>
|
|
242
|
+
<TesterContent />
|
|
243
|
+
</RootView>
|
|
239
244
|
</View>
|
|
240
245
|
);
|
|
241
246
|
};
|
package/src/FluentTesterApp.tsx
CHANGED
|
@@ -37,7 +37,7 @@ const useSizeClassIOS_DO_NOT_USE: () => SizeClassIOS = () => {
|
|
|
37
37
|
|
|
38
38
|
export const FluentTesterApp: React.FunctionComponent<FluentTesterProps> = (props) => {
|
|
39
39
|
const sizeClass = useSizeClassIOS_DO_NOT_USE();
|
|
40
|
-
const isMobile = Platform.OS
|
|
40
|
+
const isMobile = Platform.OS === 'android' || (Platform.OS === 'ios' && Platform.isPad === false);
|
|
41
41
|
|
|
42
42
|
// If on iPad we are presented in a Split View or Slide Over context, show the single pane view.
|
|
43
43
|
const shouldShowSinglePane = isMobile || (!isMobile && sizeClass === 'compact');
|
|
@@ -4,8 +4,7 @@ import { PresenceBadgeStatuses, PresenceBadgeStatus } from '@fluentui-react-nati
|
|
|
4
4
|
import { View, Text, Platform } from 'react-native';
|
|
5
5
|
import { satyaPhotoUrl, undefinedText } from './../PersonaCoin/styles';
|
|
6
6
|
import { commonTestStyles as commonStyles } from '../Common/styles';
|
|
7
|
-
import
|
|
8
|
-
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
7
|
+
import { svgProps } from '../Common/iconExamples';
|
|
9
8
|
import { StyledPicker } from '../Common/StyledPicker';
|
|
10
9
|
import { ToggleButton } from '@fluentui/react-native';
|
|
11
10
|
|
|
@@ -40,11 +39,6 @@ export const StandardUsage: FunctionComponent = () => {
|
|
|
40
39
|
codepoint: 0x2663,
|
|
41
40
|
};
|
|
42
41
|
|
|
43
|
-
const svgProps: SvgIconProps = {
|
|
44
|
-
src: TestSvg,
|
|
45
|
-
viewBox: '0 0 500 500',
|
|
46
|
-
};
|
|
47
|
-
|
|
48
42
|
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
|
|
49
43
|
const badgeStatus = presence === undefinedText ? undefined : presence;
|
|
50
44
|
|
|
@@ -4,8 +4,7 @@ import { View, Text, TextInput, Platform, StyleSheet } from 'react-native';
|
|
|
4
4
|
import { steveBallmerPhotoUrl } from './../PersonaCoin/styles';
|
|
5
5
|
import { commonTestStyles as commonStyles } from '../Common/styles';
|
|
6
6
|
import { FontWeight } from '@fluentui-react-native/theme-types';
|
|
7
|
-
import {
|
|
8
|
-
import TestSvg from '../../FluentTester/test-data/test.svg';
|
|
7
|
+
import { svgProps } from '../Common/iconExamples';
|
|
9
8
|
import { ToggleButton } from '@fluentui/react-native';
|
|
10
9
|
|
|
11
10
|
const styles = StyleSheet.create({
|
|
@@ -67,10 +66,6 @@ export const CustomizeUsage: React.FunctionComponent = () => {
|
|
|
67
66
|
]);
|
|
68
67
|
|
|
69
68
|
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
|
|
70
|
-
const svgProps: SvgIconProps = {
|
|
71
|
-
src: TestSvg,
|
|
72
|
-
viewBox: '0 0 500 500',
|
|
73
|
-
};
|
|
74
69
|
|
|
75
70
|
return (
|
|
76
71
|
<View style={commonStyles.root}>
|
|
@@ -15,12 +15,11 @@ import {
|
|
|
15
15
|
BadgeProps,
|
|
16
16
|
BadgeTokens,
|
|
17
17
|
} from '@fluentui-react-native/badge';
|
|
18
|
-
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
19
18
|
import { StyledPicker } from '../Common/StyledPicker';
|
|
20
19
|
import { satyaPhotoUrl } from './../PersonaCoin/styles';
|
|
21
|
-
import TestSvg from '../../FluentTester/test-data/test.svg';
|
|
22
20
|
import { ToggleButton } from '@fluentui/react-native';
|
|
23
21
|
import { useFluentTheme } from '@fluentui-react-native/framework';
|
|
22
|
+
import { svgProps, iconProps } from '../Common/iconExamples';
|
|
24
23
|
|
|
25
24
|
const badgeColors: BadgeColor[] = [...BadgeColors];
|
|
26
25
|
const badgeShapes: BadgeShape[] = [...BadgeShapes];
|
|
@@ -50,10 +49,6 @@ export const BasicBadge: React.FunctionComponent = () => {
|
|
|
50
49
|
const onShowIconChange = useCallback(() => setShowIcon(!showIcon), [showIcon, setShowIcon]);
|
|
51
50
|
|
|
52
51
|
const theme = useFluentTheme();
|
|
53
|
-
const svgProps: SvgIconProps = {
|
|
54
|
-
src: TestSvg,
|
|
55
|
-
viewBox: '0 0 500 500',
|
|
56
|
-
};
|
|
57
52
|
|
|
58
53
|
const fontBuiltInProps = {
|
|
59
54
|
fontFamily: 'Arial',
|
|
@@ -62,7 +57,6 @@ export const BasicBadge: React.FunctionComponent = () => {
|
|
|
62
57
|
};
|
|
63
58
|
|
|
64
59
|
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
|
|
65
|
-
const iconProps = { svgSource: svgProps, width: 20, height: 20 };
|
|
66
60
|
|
|
67
61
|
const shadow = showShadow ? theme.shadows.shadow4 : undefined;
|
|
68
62
|
const CustomBadge = useCustomizedBadge({ shadowToken: shadow });
|
|
@@ -126,12 +120,12 @@ export const BasicBadge: React.FunctionComponent = () => {
|
|
|
126
120
|
{svgIconsEnabled && (
|
|
127
121
|
<>
|
|
128
122
|
<Text>Badge with icon</Text>
|
|
129
|
-
<Badge icon={
|
|
123
|
+
<Badge icon={iconProps} iconPosition="after">
|
|
130
124
|
Badge with
|
|
131
125
|
<Image source={{ uri: satyaPhotoUrl }} style={{ width: 20, height: 20 }} />
|
|
132
126
|
<Text style={{ backgroundColor: 'yellow' }}>optional content</Text>
|
|
133
127
|
</Badge>
|
|
134
|
-
<Badge appearance="outline" icon={iconProps} />
|
|
128
|
+
<Badge appearance="outline" icon={{ ...iconProps, width: 20, height: 20 }} />
|
|
135
129
|
<Badge icon={{ fontSource: { ...fontBuiltInProps }, color: '#fff' }}>Badge with icon</Badge>
|
|
136
130
|
<Text>Customized Badge with icon</Text>
|
|
137
131
|
<StyledBadge icon={{ svgSource: svgProps }}>Styled badge</StyledBadge>
|
|
@@ -2,15 +2,9 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { View, Platform, Text } from 'react-native';
|
|
4
4
|
import { CounterBadge } from '@fluentui-react-native/badge';
|
|
5
|
-
import {
|
|
6
|
-
import TestSvg from '../../FluentTester/test-data/test.svg';
|
|
5
|
+
import { iconProps } from '../Common/iconExamples';
|
|
7
6
|
|
|
8
7
|
export const CounterBadgeTest: React.FunctionComponent = () => {
|
|
9
|
-
const svgProps: SvgIconProps = {
|
|
10
|
-
src: TestSvg,
|
|
11
|
-
viewBox: '0 0 500 500',
|
|
12
|
-
};
|
|
13
|
-
|
|
14
8
|
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
|
|
15
9
|
|
|
16
10
|
return (
|
|
@@ -26,7 +20,7 @@ export const CounterBadgeTest: React.FunctionComponent = () => {
|
|
|
26
20
|
<CounterBadge badgeColor="important" overflowCount={1000} count={777}></CounterBadge>
|
|
27
21
|
<CounterBadge badgeColor="danger" overflowCount={1000} count={1500}></CounterBadge>
|
|
28
22
|
<CounterBadge count={13} />
|
|
29
|
-
{svgIconsEnabled && <CounterBadge count={17} icon={
|
|
23
|
+
{svgIconsEnabled && <CounterBadge count={17} icon={iconProps} iconPosition="after" />}
|
|
30
24
|
</View>
|
|
31
25
|
);
|
|
32
26
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { ButtonV1 as Button } from '@fluentui/react-native';
|
|
2
2
|
import { TextV1 as Text } from '@fluentui-react-native/text';
|
|
3
|
-
import { Icon, SvgIconProps } from '@fluentui-react-native/icon';
|
|
4
3
|
import * as React from 'react';
|
|
5
|
-
import { Platform,
|
|
4
|
+
import { Platform, View } from 'react-native';
|
|
6
5
|
import { commonTestStyles, stackStyle } from '../Common/styles';
|
|
7
|
-
import TestSvg from './test.svg';
|
|
8
6
|
import { InteractionEvent, isGestureResponderEvent } from '@fluentui-react-native/interactive-hooks';
|
|
7
|
+
import { svgProps } from '../Common/iconExamples';
|
|
9
8
|
|
|
10
9
|
const CustomText = Text.customize({ fontSize: 'header', color: 'hotpink' });
|
|
11
10
|
const CustomButton = Button.customize({ backgroundColor: 'pink' });
|
|
12
11
|
const CustomIconButton = Button.customize({ iconColor: 'yellow' });
|
|
13
12
|
const ComposedButton = Button.compose({
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
14
|
+
// @ts-ignore Not all slots have to be overridden for compose to work
|
|
14
15
|
slots: {
|
|
15
|
-
root: Pressable,
|
|
16
|
-
icon: Icon,
|
|
17
16
|
content: CustomText,
|
|
18
17
|
},
|
|
19
18
|
slotProps: {
|
|
@@ -22,10 +21,6 @@ const ComposedButton = Button.compose({
|
|
|
22
21
|
},
|
|
23
22
|
},
|
|
24
23
|
});
|
|
25
|
-
const svgProps: SvgIconProps = {
|
|
26
|
-
src: TestSvg,
|
|
27
|
-
viewBox: '0 0 500 500',
|
|
28
|
-
};
|
|
29
24
|
|
|
30
25
|
export const ButtonHOCTest: React.FunctionComponent = () => {
|
|
31
26
|
const buttonRef = React.useRef(null);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ButtonV1 as Button } from '@fluentui/react-native';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
5
|
+
import { svgProps } from '../Common/iconExamples';
|
|
6
|
+
|
|
7
|
+
export const ButtonIconTest: React.FunctionComponent = () => {
|
|
8
|
+
const fontBuiltInProps = {
|
|
9
|
+
fontFamily: 'Arial',
|
|
10
|
+
codepoint: 0x2663,
|
|
11
|
+
fontSize: 24,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
15
|
+
const testImage = require('../../../../assets/icon_24x24.png');
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<View style={testContentRootViewStyle}>
|
|
19
|
+
<Button icon={{ fontSource: fontBuiltInProps }} style={commonTestStyles.vmargin}>
|
|
20
|
+
Font icon
|
|
21
|
+
</Button>
|
|
22
|
+
<Button appearance="accent" icon={{ svgSource: svgProps, color: 'black' }} style={commonTestStyles.vmargin}>
|
|
23
|
+
SVG
|
|
24
|
+
</Button>
|
|
25
|
+
<Button icon={testImage} style={commonTestStyles.vmargin}>
|
|
26
|
+
PNG
|
|
27
|
+
</Button>
|
|
28
|
+
</View>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -2,8 +2,7 @@ import { ButtonV1 as Button } from '@fluentui/react-native';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Platform, View, StyleSheet } from 'react-native';
|
|
4
4
|
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
5
|
-
import {
|
|
6
|
-
import TestSvg from './test.svg';
|
|
5
|
+
import { testImage, svgProps, iconProps } from '../Common/iconExamples';
|
|
7
6
|
import { SvgXml } from 'react-native-svg';
|
|
8
7
|
|
|
9
8
|
const styles = StyleSheet.create({
|
|
@@ -17,13 +16,6 @@ export const ButtonIconTest: React.FunctionComponent = () => {
|
|
|
17
16
|
fontSize: 24,
|
|
18
17
|
};
|
|
19
18
|
|
|
20
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
21
|
-
const testImage = require('../../../../assets/icon_24x24.png');
|
|
22
|
-
|
|
23
|
-
const svgProps: SvgIconProps = {
|
|
24
|
-
src: TestSvg,
|
|
25
|
-
viewBox: '0 0 500 500',
|
|
26
|
-
};
|
|
27
19
|
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
|
|
28
20
|
|
|
29
21
|
const chevronXml = `
|
|
@@ -54,7 +46,7 @@ export const ButtonIconTest: React.FunctionComponent = () => {
|
|
|
54
46
|
<Button appearance="primary" icon={{ svgSource: svgProps, color: 'red' }} style={commonTestStyles.vmargin}>
|
|
55
47
|
SVG
|
|
56
48
|
</Button>
|
|
57
|
-
<Button icon={
|
|
49
|
+
<Button icon={iconProps} style={commonTestStyles.vmargin}>
|
|
58
50
|
SVG
|
|
59
51
|
</Button>
|
|
60
52
|
</>
|
|
@@ -66,7 +58,7 @@ export const ButtonIconTest: React.FunctionComponent = () => {
|
|
|
66
58
|
PNG
|
|
67
59
|
</Button>
|
|
68
60
|
{svgIconsEnabled && (
|
|
69
|
-
<Button style={commonTestStyles.vmargin} icon={
|
|
61
|
+
<Button style={commonTestStyles.vmargin} icon={iconProps}>
|
|
70
62
|
Icon Button and Chevron
|
|
71
63
|
<View style={styles.chevron}>
|
|
72
64
|
<SvgXml xml={chevronXml} />
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { ButtonV1 as Button, CompoundButton } from '@fluentui/react-native';
|
|
2
|
-
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
1
|
+
import { ButtonV1 as Button, CompoundButton, FAB } from '@fluentui/react-native';
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { Platform, View } from 'react-native';
|
|
5
4
|
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
6
|
-
import
|
|
5
|
+
import { iconProps } from '../Common/iconExamples';
|
|
7
6
|
|
|
8
7
|
export const ButtonSizeTest: React.FunctionComponent = () => {
|
|
9
|
-
const svgProps: SvgIconProps = {
|
|
10
|
-
src: TestSvg,
|
|
11
|
-
viewBox: '0 0 500 500',
|
|
12
|
-
};
|
|
13
8
|
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
|
|
9
|
+
|
|
14
10
|
return (
|
|
15
11
|
<View style={testContentRootViewStyle}>
|
|
16
12
|
{svgIconsEnabled && (
|
|
@@ -18,7 +14,7 @@ export const ButtonSizeTest: React.FunctionComponent = () => {
|
|
|
18
14
|
<Button
|
|
19
15
|
iconOnly
|
|
20
16
|
size="small"
|
|
21
|
-
icon={
|
|
17
|
+
icon={iconProps}
|
|
22
18
|
accessibilityLabel="Small size button with accessibility icon"
|
|
23
19
|
style={commonTestStyles.vmargin}
|
|
24
20
|
tooltip="button tooltip"
|
|
@@ -26,26 +22,32 @@ export const ButtonSizeTest: React.FunctionComponent = () => {
|
|
|
26
22
|
<Button
|
|
27
23
|
iconOnly
|
|
28
24
|
size="medium"
|
|
29
|
-
icon={
|
|
25
|
+
icon={iconProps}
|
|
30
26
|
accessibilityLabel="Medium size button with accessibility icon"
|
|
31
27
|
style={commonTestStyles.vmargin}
|
|
32
28
|
/>
|
|
33
29
|
<Button
|
|
34
30
|
iconOnly
|
|
35
31
|
size="large"
|
|
36
|
-
icon={
|
|
32
|
+
icon={iconProps}
|
|
37
33
|
accessibilityLabel="Large size button with accessibility icon"
|
|
38
34
|
style={commonTestStyles.vmargin}
|
|
39
35
|
/>
|
|
40
|
-
<Button size="small" icon={
|
|
36
|
+
<Button size="small" icon={iconProps} style={commonTestStyles.vmargin}>
|
|
41
37
|
Small Button with icon
|
|
42
38
|
</Button>
|
|
43
|
-
<Button size="medium" icon={
|
|
39
|
+
<Button size="medium" icon={iconProps} style={commonTestStyles.vmargin}>
|
|
44
40
|
Medium Button with icon
|
|
45
41
|
</Button>
|
|
46
|
-
<Button size="large" icon={
|
|
42
|
+
<Button size="large" icon={iconProps} style={commonTestStyles.vmargin}>
|
|
47
43
|
Large Button with icon
|
|
48
44
|
</Button>
|
|
45
|
+
<FAB size="small" icon={iconProps} style={commonTestStyles.vmargin}>
|
|
46
|
+
Small FAB
|
|
47
|
+
</FAB>
|
|
48
|
+
<FAB size="large" icon={iconProps} style={commonTestStyles.vmargin}>
|
|
49
|
+
Large FAB
|
|
50
|
+
</FAB>
|
|
49
51
|
</>
|
|
50
52
|
)}
|
|
51
53
|
<Button size="small" style={commonTestStyles.vmargin}>
|
|
@@ -57,35 +59,39 @@ export const ButtonSizeTest: React.FunctionComponent = () => {
|
|
|
57
59
|
<Button size="large" style={commonTestStyles.vmargin}>
|
|
58
60
|
Large
|
|
59
61
|
</Button>
|
|
60
|
-
|
|
61
|
-
Loading Button Small
|
|
62
|
-
</Button>
|
|
63
|
-
<Button loading size="medium" style={commonTestStyles.vmargin}>
|
|
64
|
-
Loading Button Medium
|
|
65
|
-
</Button>
|
|
66
|
-
<Button loading size="large" style={commonTestStyles.vmargin}>
|
|
67
|
-
Loading Button Large
|
|
68
|
-
</Button>
|
|
69
|
-
<CompoundButton secondaryContent="Small compound button" size="small" style={commonTestStyles.vmargin}>
|
|
70
|
-
Compound Button
|
|
71
|
-
</CompoundButton>
|
|
72
|
-
<CompoundButton secondaryContent="Medium compound button" size="medium" style={commonTestStyles.vmargin}>
|
|
73
|
-
Compound Button
|
|
74
|
-
</CompoundButton>
|
|
75
|
-
<CompoundButton secondaryContent="Large compound button" size="large" style={commonTestStyles.vmargin}>
|
|
76
|
-
Compound Button
|
|
77
|
-
</CompoundButton>
|
|
78
|
-
{svgIconsEnabled && (
|
|
62
|
+
{Platform.OS !== 'android' && (
|
|
79
63
|
<>
|
|
80
|
-
<
|
|
81
|
-
|
|
64
|
+
<Button loading size="small" style={commonTestStyles.vmargin}>
|
|
65
|
+
Loading Button Small
|
|
66
|
+
</Button>
|
|
67
|
+
<Button loading size="medium" style={commonTestStyles.vmargin}>
|
|
68
|
+
Loading Button Medium
|
|
69
|
+
</Button>
|
|
70
|
+
<Button loading size="large" style={commonTestStyles.vmargin}>
|
|
71
|
+
Loading Button Large
|
|
72
|
+
</Button>
|
|
73
|
+
<CompoundButton secondaryContent="Small compound button" size="small" style={commonTestStyles.vmargin}>
|
|
74
|
+
Compound Button
|
|
82
75
|
</CompoundButton>
|
|
83
|
-
<CompoundButton
|
|
84
|
-
|
|
76
|
+
<CompoundButton secondaryContent="Medium compound button" size="medium" style={commonTestStyles.vmargin}>
|
|
77
|
+
Compound Button
|
|
85
78
|
</CompoundButton>
|
|
86
|
-
<CompoundButton
|
|
87
|
-
|
|
79
|
+
<CompoundButton secondaryContent="Large compound button" size="large" style={commonTestStyles.vmargin}>
|
|
80
|
+
Compound Button
|
|
88
81
|
</CompoundButton>
|
|
82
|
+
{svgIconsEnabled && (
|
|
83
|
+
<>
|
|
84
|
+
<CompoundButton icon={iconProps} secondaryContent="SecondaryContent" size="small" style={commonTestStyles.vmargin}>
|
|
85
|
+
Content
|
|
86
|
+
</CompoundButton>
|
|
87
|
+
<CompoundButton icon={iconProps} secondaryContent="SecondaryContent" size="medium" style={commonTestStyles.vmargin}>
|
|
88
|
+
Content
|
|
89
|
+
</CompoundButton>
|
|
90
|
+
<CompoundButton icon={iconProps} secondaryContent="SecondaryContent" size="large" style={commonTestStyles.vmargin}>
|
|
91
|
+
Content
|
|
92
|
+
</CompoundButton>
|
|
93
|
+
</>
|
|
94
|
+
)}
|
|
89
95
|
</>
|
|
90
96
|
)}
|
|
91
97
|
</View>
|
|
@@ -19,20 +19,22 @@ const buttonSections: TestSection[] = [
|
|
|
19
19
|
testID: BUTTON_TESTPAGE,
|
|
20
20
|
component: ButtonVariantTest,
|
|
21
21
|
},
|
|
22
|
-
{
|
|
23
|
-
name: 'Button Shape',
|
|
24
|
-
component: ButtonShapeTest,
|
|
25
|
-
},
|
|
26
22
|
{
|
|
27
23
|
name: 'Icon Button',
|
|
28
24
|
component: ButtonIconTest,
|
|
29
25
|
},
|
|
30
|
-
Platform.select({
|
|
31
|
-
android: null, //
|
|
32
|
-
default:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
...Platform.select({
|
|
27
|
+
android: [null], //Following sections are not supported from Fluent Android
|
|
28
|
+
default: [
|
|
29
|
+
{
|
|
30
|
+
name: 'Toggle Button',
|
|
31
|
+
component: ToggleButtonTest,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Button Shape',
|
|
35
|
+
component: ButtonShapeTest,
|
|
36
|
+
},
|
|
37
|
+
],
|
|
36
38
|
}),
|
|
37
39
|
{
|
|
38
40
|
name: 'Sizes',
|
|
@@ -66,7 +68,7 @@ export const ButtonTest: React.FunctionComponent = () => {
|
|
|
66
68
|
uwpStatus: 'Experimental',
|
|
67
69
|
iosStatus: 'Experimental',
|
|
68
70
|
macosStatus: 'Beta',
|
|
69
|
-
androidStatus: '
|
|
71
|
+
androidStatus: 'Experimental',
|
|
70
72
|
};
|
|
71
73
|
|
|
72
74
|
const description =
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Button, FAB } from '@fluentui-react-native/experimental-button';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
5
|
+
import { iconProps } from '../Common/iconExamples';
|
|
6
|
+
|
|
7
|
+
export const ButtonVariantTest: React.FunctionComponent = () => {
|
|
8
|
+
const [showFABText, setShowFABText] = React.useState(true);
|
|
9
|
+
const flipFABcontent = React.useCallback(() => setShowFABText(!showFABText), [showFABText]);
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<View style={testContentRootViewStyle}>
|
|
13
|
+
<Button style={commonTestStyles.vmargin}>Default</Button>
|
|
14
|
+
<Button disabled style={commonTestStyles.vmargin}>
|
|
15
|
+
Default Disabled
|
|
16
|
+
</Button>
|
|
17
|
+
<Button appearance="accent" style={commonTestStyles.vmargin}>
|
|
18
|
+
Accent
|
|
19
|
+
</Button>
|
|
20
|
+
<Button disabled appearance="accent" style={commonTestStyles.vmargin}>
|
|
21
|
+
Accent Disabled
|
|
22
|
+
</Button>
|
|
23
|
+
<Button appearance="outline" style={commonTestStyles.vmargin}>
|
|
24
|
+
Outline
|
|
25
|
+
</Button>
|
|
26
|
+
<Button appearance="outline" disabled style={commonTestStyles.vmargin}>
|
|
27
|
+
Outline Disabled
|
|
28
|
+
</Button>
|
|
29
|
+
<Button appearance="subtle" style={commonTestStyles.vmargin}>
|
|
30
|
+
Subtle
|
|
31
|
+
</Button>
|
|
32
|
+
<Button appearance="subtle" disabled style={commonTestStyles.vmargin}>
|
|
33
|
+
Subtle Disabled
|
|
34
|
+
</Button>
|
|
35
|
+
<FAB icon={iconProps} iconOnly disabled style={commonTestStyles.vmargin} />
|
|
36
|
+
<FAB icon={iconProps} style={commonTestStyles.vmargin} showContent={showFABText} onClick={flipFABcontent}>
|
|
37
|
+
Click Me!
|
|
38
|
+
</FAB>
|
|
39
|
+
<FAB appearance="subtle" iconOnly disabled icon={iconProps} style={commonTestStyles.vmargin} />
|
|
40
|
+
<FAB appearance="subtle" icon={iconProps} style={commonTestStyles.vmargin} showContent={showFABText} onClick={flipFABcontent}>
|
|
41
|
+
Click Me!
|
|
42
|
+
</FAB>
|
|
43
|
+
</View>
|
|
44
|
+
);
|
|
45
|
+
};
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import { Button, CompoundButton
|
|
1
|
+
import { Button, CompoundButton } from '@fluentui-react-native/experimental-button';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { commonTestStyles, testContentRootViewStyle } from '../Common/styles';
|
|
5
|
-
import { SvgIconProps } from '@fluentui-react-native/icon';
|
|
6
|
-
import TestSvg from './test.svg';
|
|
7
5
|
|
|
8
6
|
// Test also pulls button from deprecated package to ensure it's still working
|
|
9
7
|
export const ButtonVariantTest: React.FunctionComponent = () => {
|
|
10
|
-
const svgProps: SvgIconProps = {
|
|
11
|
-
src: TestSvg,
|
|
12
|
-
viewBox: '0 0 500 500',
|
|
13
|
-
};
|
|
14
|
-
const iconProps = { svgSource: svgProps, width: 20, height: 20 };
|
|
15
|
-
|
|
16
|
-
const [showFABText, setShowFABText] = React.useState(true);
|
|
17
|
-
const flipFABcontent = React.useCallback(() => setShowFABText(!showFABText), [showFABText]);
|
|
18
|
-
|
|
19
8
|
return (
|
|
20
9
|
<View style={testContentRootViewStyle}>
|
|
21
10
|
<Button style={commonTestStyles.vmargin}>Default</Button>
|
|
@@ -50,10 +39,6 @@ export const ButtonVariantTest: React.FunctionComponent = () => {
|
|
|
50
39
|
<CompoundButton appearance="subtle" secondaryContent="Compound" style={commonTestStyles.vmargin}>
|
|
51
40
|
Subtle
|
|
52
41
|
</CompoundButton>
|
|
53
|
-
<FAB icon={iconProps} style={commonTestStyles.vmargin} />
|
|
54
|
-
<FAB icon={iconProps} style={commonTestStyles.vmargin} showContent={showFABText} onClick={flipFABcontent}>
|
|
55
|
-
FAB
|
|
56
|
-
</FAB>
|
|
57
42
|
</View>
|
|
58
43
|
);
|
|
59
44
|
};
|
|
@@ -4,8 +4,7 @@ import { Stack } from '@fluentui-react-native/stack';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { Platform, View } from 'react-native';
|
|
6
6
|
import { stackStyle } from '../../Common/styles';
|
|
7
|
-
import {
|
|
8
|
-
import TestSvg from '../test.svg';
|
|
7
|
+
import { testImage, svgProps } from '../../Common/iconExamples';
|
|
9
8
|
|
|
10
9
|
const CustomizedIconButton = Button.customize({
|
|
11
10
|
tokens: { iconColor: 'red' },
|
|
@@ -14,12 +13,6 @@ const CustomizedIconButton = Button.customize({
|
|
|
14
13
|
|
|
15
14
|
export const ButtonIconTest_deprecated: React.FunctionComponent = () => {
|
|
16
15
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
17
|
-
const testImage = require('../../../../../assets/icon_24x24.png');
|
|
18
|
-
|
|
19
|
-
const svgProps: SvgIconProps = {
|
|
20
|
-
src: TestSvg,
|
|
21
|
-
viewBox: '0 0 500 500',
|
|
22
|
-
};
|
|
23
16
|
|
|
24
17
|
// SVG-based icons are not available on all platforms yet
|
|
25
18
|
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
|