"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.tests = exports.suite = void 0;

var React = _interopRequireWildcard(require("react"));

var _index = require("./index.js");

var _tests$SIMPLE_TOGGLE_;

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var onChange = function onChange(e) {
  // eslint-disable-next-line no-console
  console.log('Checked:', e.target.checked);
};

var suite = 'Checkbox Test Suite';
exports.suite = suite;
var tests = {
  SIMPLE_TOGGLE_EXAMPLE: 'Checkbox as toggle example',
  TOGGLE_DISABLED_EXAMPLE: 'Checkbox as disabled toggle example'
};
exports.tests = tests;

var _default = (_tests$SIMPLE_TOGGLE_ = {}, _defineProperty(_tests$SIMPLE_TOGGLE_, tests.SIMPLE_TOGGLE_EXAMPLE, function () {
  return React.createElement("div", {
    style: {
      width: '400px'
    }
  }, React.createElement(_index.StatefulCheckbox, {
    onChange: onChange,
    checkmarkType: _index.STYLE_TYPE.toggle
  }, "click this toggle"));
}), _defineProperty(_tests$SIMPLE_TOGGLE_, tests.TOGGLE_DISABLED_EXAMPLE, function () {
  return React.createElement("div", {
    style: {
      width: '400px'
    }
  }, React.createElement(_index.StatefulCheckbox, {
    onChange: onChange,
    disabled: true,
    checkmarkType: _index.STYLE_TYPE.toggle
  }, "this toggle is disabled"));
}), _tests$SIMPLE_TOGGLE_);

exports.default = _default;