"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.ChipDefault = void 0;
const react_1 = __importStar(require("react"));
const react_native_1 = require("react-native");
const chip_1 = require("@fluentui-react-native/chip");
const switch_1 = require("@fluentui-react-native/switch");
const text_1 = require("@fluentui-react-native/text");
const iconExamples_1 = require("../Common/iconExamples");
const ChipDefault = () => {
    const [showCloseIcon, setShowCloseIcon] = react_1.default.useState(false);
    const toggleActivityState = (0, react_1.useCallback)((_e, isActive) => setShowCloseIcon(isActive), []);
    const showToast = () => {
        react_native_1.ToastAndroid.show('Close icon clicked!', react_native_1.ToastAndroid.SHORT);
    };
    return (react_1.default.createElement(react_native_1.View, null,
        react_1.default.createElement(switch_1.Switch, { label: 'Show Close Icon', defaultChecked: showCloseIcon, onChange: toggleActivityState }),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { size: "small", style: styles.rowGap, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Neutral"),
            react_1.default.createElement(chip_1.Chip, { size: "medium", icon: { svgSource: iconExamples_1.svgProps }, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Neutral")),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { size: "small", style: styles.rowGap, disabled: true, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Disabled"),
            react_1.default.createElement(chip_1.Chip, { size: "medium", icon: { svgSource: iconExamples_1.svgProps }, disabled: true, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Disabled")),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { size: "small", chipColor: "brand", style: styles.rowGap, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Brand"),
            react_1.default.createElement(chip_1.Chip, { size: "medium", chipColor: "brand", icon: { svgSource: iconExamples_1.svgProps }, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Brand")),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { size: "small", chipColor: "danger", style: styles.rowGap, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Danger"),
            react_1.default.createElement(chip_1.Chip, { size: "medium", chipColor: "danger", icon: { svgSource: iconExamples_1.svgProps }, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Danger")),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { size: "small", chipColor: "severe", style: styles.rowGap, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Severe"),
            react_1.default.createElement(chip_1.Chip, { size: "medium", chipColor: "severe", icon: { svgSource: iconExamples_1.svgProps }, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Severe")),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { size: "small", chipColor: "warning", style: styles.rowGap, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Warning"),
            react_1.default.createElement(chip_1.Chip, { size: "medium", chipColor: "warning", icon: { svgSource: iconExamples_1.svgProps }, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Warning")),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { size: "small", chipColor: "success", style: styles.rowGap, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Success"),
            react_1.default.createElement(chip_1.Chip, { size: "medium", chipColor: "success", icon: { svgSource: iconExamples_1.svgProps }, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Success")),
        react_1.default.createElement(text_1.Text, null, "Search Bar Chip"),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { searchBar: true, size: "small", style: styles.rowGap, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Chip"),
            react_1.default.createElement(chip_1.Chip, { searchBar: true, size: "medium", icon: { svgSource: iconExamples_1.svgProps }, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Chip")),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { searchBar: true, size: "small", chipColor: "brand", style: styles.rowGap, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Brand"),
            react_1.default.createElement(chip_1.Chip, { searchBar: true, size: "medium", chipColor: "brand", icon: { svgSource: iconExamples_1.svgProps }, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Brand")),
        react_1.default.createElement(react_native_1.View, { style: styles.rowStyle },
            react_1.default.createElement(chip_1.Chip, { searchBar: true, size: "small", style: styles.rowGap, disabled: true, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Disabled"),
            react_1.default.createElement(chip_1.Chip, { searchBar: true, size: "medium", icon: { svgSource: iconExamples_1.svgProps }, disabled: true, showCloseIcon: showCloseIcon, closeIconOnPress: showToast }, "Disabled"))));
};
exports.ChipDefault = ChipDefault;
const styles = react_native_1.StyleSheet.create({
    rowStyle: { flexDirection: 'row', marginTop: 6 },
    rowGap: { marginRight: 6 },
});
//# sourceMappingURL=ChipDefault.js.map