import { __assign } from "tslib";
import * as React from 'react';
import { Platform, View } from 'react-native';
import { Stack } from '@fluentui-react-native/stack';
import { TextV1 as Text } from '@fluentui-react-native/text';
import { stackStyle } from '../Common/styles';
var RedCaptionBold = Text.customize({ variant: 'captionStandard', fontWeight: '700', color: '#ff0000' });
var OrangeSecondaryBold = Text.customize({ variant: 'secondaryStandard', fontWeight: '700', color: '#ff9900' });
var YellowBodyBold = Text.customize({ variant: 'bodyStandard', fontWeight: '700', color: '#f3ce00' });
var GreenSubheaderBold = Text.customize({ variant: 'subheaderStandard', fontWeight: '700', color: '#02c440' });
var BlueHeaderBold = Text.customize({ variant: 'headerStandard', fontWeight: '700', color: '#0229c4' });
var IndigoHeroBold = Text.customize({ variant: 'heroStandard', fontWeight: '700', color: '#4b0082' });
var PurpleHeroLargeBold = Text.customize({ variant: 'heroLargeStandard', fontWeight: '700', color: '#8402c4' });
// Android has a limited fontFamily support and unknown fonts fallback to sans-serif (Roboto).
// Custom fonts (ttf, otf) are supported but need to be linked using 'react-native link'
// The supported font families can be found as <aliases> at https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/fonts.xml
var CustomFontNames = __assign({}, Platform.select({
    android: {
        CourierNew: 'courier new',
        Georgia: 'georgia',
        TimesNewRoman: 'times new roman',
    },
    default: {
        CourierNew: 'Courier New',
        Georgia: 'Georgia',
        TimesNewRoman: 'Times New Roman',
    },
}));
var ArialBlack = Text.customize({ variant: 'heroLargeStandard', fontFamily: 'Arial Black' });
var BrushScriptMT = Text.customize({ variant: 'heroStandard', fontFamily: 'Brush Script MT' });
var CourierNew = Text.customize({ variant: 'headerStandard', fontFamily: CustomFontNames.CourierNew });
var Georgia = Text.customize({ variant: 'subheaderStandard', fontFamily: CustomFontNames.Georgia });
var TimesNewRoman = Text.customize({ variant: 'secondaryStandard', fontFamily: CustomFontNames.TimesNewRoman });
var Wingdings = Text.customize({ variant: 'captionStandard', fontFamily: 'Wingdings' });
// Examples of supported Android fonts.
var Casual = Text.customize({ variant: 'heroStandard', fontFamily: 'casual' });
var Cursive = Text.customize({ variant: 'heroStandard', fontFamily: 'cursive' });
// Examples of iOS fonts.
var Papyrus = Text.customize({ variant: 'heroLargeStandard', fontFamily: 'Papyrus' });
var Helvetica = Text.customize({ variant: 'heroLargeStandard', fontFamily: 'Helvetica' });
// Fonts supported on Android and iOS
var Arial = Text.customize({ variant: 'heroLargeStandard', fontFamily: 'arial' });
export var CustomizeUsage = function () {
    var BlockText = function () {
        return (React.createElement(React.Fragment, null,
            React.createElement(Text, { style: { textTransform: 'uppercase' }, font: "base", weight: "medium", truncate: true }, "I am going to be truncated since I am a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long block text."),
            React.createElement(Text, { font: "monospace", weight: "semibold", wrap: false }, "I am not going to be wrapped since I am a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long block text."),
            React.createElement(Text, { underline: true }, "Since text components are inside a View"),
            React.createElement(Text, null, "every block of text"),
            React.createElement(Text, { underline: true, strikethrough: true, align: "end" }, "gets its own line. This line has been underlined, striked through, and right aligned.")));
    };
    var NonBlockText = function () {
        return (React.createElement(Text, null,
            React.createElement(Text, { italic: true }, "I am italisized inline text."),
            React.createElement(Text, { weight: "medium" }, "Since text components are inside a Text, (medium) "),
            React.createElement(Text, { weight: "bold" }, "every block of text (bolded) "),
            React.createElement(Text, { size: 600 }, "gets placed inline.")));
    };
    var CustomUsageStack = function () {
        return (React.createElement(Stack, { style: stackStyle, gap: 5 },
            React.createElement(RedCaptionBold, null, "RedCaptionBold"),
            React.createElement(OrangeSecondaryBold, null, "OrangeSecondaryBold"),
            React.createElement(YellowBodyBold, null, "YellowBodyBold"),
            React.createElement(GreenSubheaderBold, null, "GreenSubheaderBold"),
            React.createElement(BlueHeaderBold, null, "BlueHeaderBold"),
            React.createElement(IndigoHeroBold, null, "IndigoHeroBold"),
            React.createElement(PurpleHeroLargeBold, null, "PurpleHeroLargeBold")));
    };
    var CustomFontStack = function () {
        return (React.createElement(Stack, { style: stackStyle, gap: 5 },
            React.createElement(ArialBlack, null, "Arial Black"),
            React.createElement(BrushScriptMT, null, "Brush Script MT"),
            React.createElement(CourierNew, null, "Courier New"),
            React.createElement(Georgia, null, "Georgia"),
            React.createElement(TimesNewRoman, null, "TimesNewRoman"),
            React.createElement(Wingdings, null, "Wingdings")));
    };
    var CustomFontStackAndroid = function () {
        return (React.createElement(Stack, { style: stackStyle, gap: 5 },
            React.createElement(Arial, null, "Arial"),
            React.createElement(Casual, null, "Casual"),
            React.createElement(Cursive, null, "Cursive"),
            React.createElement(CourierNew, null, "Courier New"),
            React.createElement(Georgia, null, "Georgia"),
            React.createElement(TimesNewRoman, null, "TimesNewRoman")));
    };
    var CustomFontStackiOS = function () {
        return (React.createElement(Stack, { style: stackStyle, gap: 5 },
            React.createElement(Arial, null, "Arial"),
            React.createElement(Papyrus, null, "Papyrus"),
            React.createElement(Helvetica, null, "Helvetica"),
            React.createElement(CourierNew, null, "Courier New"),
            React.createElement(Georgia, null, "Georgia"),
            React.createElement(TimesNewRoman, null, "TimesNewRoman")));
    };
    switch (Platform.OS) {
        case 'android':
            return (React.createElement(View, null,
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStackAndroid, null)));
        case 'ios':
            return (React.createElement(View, null,
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStackiOS, null)));
        default:
            return (React.createElement(View, null,
                React.createElement(BlockText, null),
                React.createElement(Text, null, '\n'),
                React.createElement(NonBlockText, null),
                React.createElement(Text, null, '\n'),
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStack, null)));
    }
};
//# sourceMappingURL=CustomizeUsage.js.map