"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomizeUsage = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var react_native_1 = require("react-native");
var react_native_2 = require("@fluentui/react-native");
var stack_1 = require("@fluentui-react-native/stack");
var styles_1 = require("../Common/styles");
var RedCaptionBold = react_native_2.Text.customize({ tokens: { variant: 'captionStandard', fontWeight: '700', color: '#ff0000' } });
var OrangeSecondaryBold = react_native_2.Text.customize({ tokens: { variant: 'secondaryStandard', fontWeight: '700', color: '#ff9900' } });
var YellowBodyBold = react_native_2.Text.customize({ tokens: { variant: 'bodyStandard', fontWeight: '700', color: '#f3ce00' } });
var GreenSubheaderBold = react_native_2.Text.customize({ tokens: { variant: 'subheaderStandard', fontWeight: '700', color: '#02c440' } });
var BlueHeaderBold = react_native_2.Text.customize({ tokens: { variant: 'headerStandard', fontWeight: '700', color: '#0229c4' } });
var IndigoHeroBold = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontWeight: '700', color: '#4b0082' } });
var PurpleHeroLargeBold = react_native_2.Text.customize({ tokens: { 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 = tslib_1.__assign({}, react_native_1.Platform.select({
    android: {
        CourierNew: 'courier new',
        Georgia: 'georgia',
        TimesNewRoman: 'times new roman',
    },
    default: {
        CourierNew: 'Courier New',
        Georgia: 'Georgia',
        TimesNewRoman: 'Times New Roman',
    },
}));
var ArialBlack = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontFamily: 'Arial Black' } });
var BrushScriptMT = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontFamily: 'Brush Script MT' } });
var CourierNew = react_native_2.Text.customize({ tokens: { variant: 'headerStandard', fontFamily: CustomFontNames.CourierNew } });
var Georgia = react_native_2.Text.customize({ tokens: { variant: 'subheaderStandard', fontFamily: CustomFontNames.Georgia } });
var TimesNewRoman = react_native_2.Text.customize({ tokens: { variant: 'secondaryStandard', fontFamily: CustomFontNames.TimesNewRoman } });
var Wingdings = react_native_2.Text.customize({ tokens: { variant: 'captionStandard', fontFamily: 'Wingdings' } });
// Examples of supported Android fonts.
var Casual = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontFamily: 'casual' } });
var Cursive = react_native_2.Text.customize({ tokens: { variant: 'heroStandard', fontFamily: 'cursive' } });
// Examples of iOS fonts.
var Papyrus = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontFamily: 'Papyrus' } });
var Helvetica = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontFamily: 'Helvetica' } });
// Fonts supported on Android and iOS
var Arial = react_native_2.Text.customize({ tokens: { variant: 'heroLargeStandard', fontFamily: 'arial' } });
var CustomizeUsage = function () {
    var CustomUsageStack = function () {
        return (React.createElement(stack_1.Stack, { style: styles_1.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_1.Stack, { style: styles_1.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_1.Stack, { style: styles_1.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_1.Stack, { style: styles_1.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 (react_native_1.Platform.OS) {
        case 'android':
            return (React.createElement(react_native_1.View, null,
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStackAndroid, null)));
        case 'ios':
            return (React.createElement(react_native_1.View, null,
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStackiOS, null)));
        default:
            return (React.createElement(react_native_1.View, null,
                React.createElement(CustomUsageStack, null),
                React.createElement(CustomFontStack, null)));
    }
};
exports.CustomizeUsage = CustomizeUsage;
//# sourceMappingURL=CustomizeUsage.js.map