"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToggleButtonTest = void 0;
const React = __importStar(require("react"));
const react_native_1 = require("react-native");
const react_native_2 = require("@fluentui/react-native");
const react_native_3 = require("@fluentui/react-native");
const styles_1 = require("../Common/styles");
const styles = react_native_1.StyleSheet.create({
    row: {
        flexDirection: 'row',
    },
    checkbox: {
        ...styles_1.commonTestStyles.vmargin,
        marginHorizontal: 8,
    },
});
const ToggleButtonTest = () => {
    const [defaultChecked, setDefaultChecked] = React.useState(false);
    const onDefaultClicked = React.useCallback(() => setDefaultChecked(!defaultChecked), [defaultChecked, setDefaultChecked]);
    const [subtleChecked, setSubtleChecked] = React.useState(false);
    const onGhostClicked = React.useCallback(() => setSubtleChecked(!subtleChecked), [subtleChecked, setSubtleChecked]);
    return (React.createElement(react_native_1.View, { style: styles_1.testContentRootViewStyle },
        React.createElement(react_native_1.View, { style: styles.row },
            React.createElement(react_native_2.ToggleButton, { onClick: onDefaultClicked, checked: defaultChecked, style: styles_1.commonTestStyles.vmargin }, "Default Toggle"),
            React.createElement(react_native_3.Checkbox, { checked: defaultChecked, label: "Default Toggle is Checked", style: styles.checkbox })),
        React.createElement(react_native_2.ToggleButton, { checked: true, style: styles_1.commonTestStyles.vmargin }, "Checked Default Toggle"),
        React.createElement(react_native_2.ToggleButton, { checked: false, style: styles_1.commonTestStyles.vmargin }, "Unchecked Default Toggle"),
        React.createElement(react_native_2.ToggleButton, { appearance: "primary", defaultChecked: true, style: styles_1.commonTestStyles.vmargin }, "Checked Primary Toggle"),
        React.createElement(react_native_2.ToggleButton, { disabled: true, defaultChecked: true, appearance: "primary", style: styles_1.commonTestStyles.vmargin }, "Checked Primary Toggle Disabled"),
        React.createElement(react_native_2.ToggleButton, { appearance: "primary", style: styles_1.commonTestStyles.vmargin }, "Unchecked Primary Toggle"),
        React.createElement(react_native_1.View, { style: styles.row },
            React.createElement(react_native_2.ToggleButton, { appearance: "subtle", onClick: onGhostClicked, checked: subtleChecked, style: styles_1.commonTestStyles.vmargin }, "Subtle Toggle"),
            React.createElement(react_native_3.Checkbox, { checked: subtleChecked, label: "Subtle Toggle is Checked", style: styles.checkbox })),
        React.createElement(react_native_2.ToggleButton, { appearance: "subtle", checked: true, style: styles_1.commonTestStyles.vmargin }, "Checked Subtle Toggle"),
        React.createElement(react_native_2.ToggleButton, { appearance: "subtle", checked: false, style: styles_1.commonTestStyles.vmargin }, "Unchecked Subtle Toggle")));
};
exports.ToggleButtonTest = ToggleButtonTest;
//# sourceMappingURL=ToggleButtonTestSection.js.map