"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

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

var _reactDom = _interopRequireDefault(require("react-dom"));

var _ = _interopRequireDefault(require(".."));

var _2 = require("../..");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

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

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

var steps = [['Step 1', 'Open the refrigerator door'], ['Step 2', 'Put the elephant in the refrigerator'], ['Step 3', 'Close the refrigerator door'], ['Step 4', 'Open the refrigerator door']].map(function (item, index) {
  return /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    "aria-current": index === 1 ? 'step' : null,
    key: index,
    title: item[0],
    content: item[1]
  });
});
var steps2 = [['Step 1'], ['Step 2'], ['Step 3'], ['Step 4']].map(function (item, index) {
  return /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    "aria-current": index === 1 ? 'step' : null,
    key: index,
    title: item
  });
});

var CreateDemo = function CreateDemo() {
  var _useState = (0, _react.useState)('medium'),
      _useState2 = _slicedToArray(_useState, 2),
      size = _useState2[0],
      setSize = _useState2[1];

  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_2.Radio.Group, {
    style: {
      padding: 30
    },
    shape: "button",
    value: size,
    onChange: function onChange(v) {
      return setSize(v);
    }
  }, /*#__PURE__*/_react["default"].createElement(_2.Radio, {
    value: 'medium'
  }, "medium"), /*#__PURE__*/_react["default"].createElement(_2.Radio, {
    value: 'small'
  }, "small")), /*#__PURE__*/_react["default"].createElement("h3", null, " Basic 2 "), /*#__PURE__*/_react["default"].createElement("p", null, "\u901A\u8FC7labelPlacement=\"hoz\"\u5C55\u793A"), /*#__PURE__*/_react["default"].createElement("h4", null, " Enabled "), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: -1,
    stretch: true,
    shape: "circle",
    size: size
  }, steps2), /*#__PURE__*/_react["default"].createElement("h4", null, " Active "), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    shape: "circle",
    size: size
  }, steps2), /*#__PURE__*/_react["default"].createElement("h4", null, " Disabled "), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    shape: "circle",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u5904\u7406\u5B8C\u6210",
    content: "\u8FD9\u91CC\u662F\u63CF\u8FF0\u6587\u6848",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u6B63\u5728\u5904\u7406",
    content: "\u8FD9\u91CC\u662F\u63CF\u8FF0\u6587\u6848",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u7B49\u5F85\u5904\u7406",
    content: "\u8FD9\u91CC\u662F\u63CF\u8FF0\u6587\u6848",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u7B49\u5F85\u5904\u7406",
    content: "\u8FD9\u91CC\u662F\u63CF\u8FF0\u6587\u6848",
    disabled: true
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "with Content"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 2,
    stretch: true,
    shape: "circle",
    size: size
  }, steps), /*#__PURE__*/_react["default"].createElement("h4", null, "Error"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    shape: "circle",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u5904\u7406\u5B8C\u6210\u5904\u7406\u5B8C\u6210\u5904\u7406\u5B8C\u6210\u5904\u7406\u5B8C\u6210",
    info: "\u5904\u7406\u5B8C\u6210\u5904\u7406\u5B8C\u6210\u5904\u7406\u5B8C\u6210\u5904\u7406\u5B8C\u6210"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u6B63\u5728\u5904\u7406",
    error: true,
    info: "123"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u7B49\u5F85\u5904\u7406"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u7B49\u5F85\u5904\u7406"
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "with Process"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    shape: "circle",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u5904\u7406\u5B8C\u6210",
    content: "\u8FD9\u91CC\u662F\u63CF\u8FF0\u6587\u6848"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u6B63\u5728\u5904\u7406",
    content: "\u8FD9\u91CC\u662F\u63CF\u8FF0\u6587\u6848",
    percent: 60
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u7B49\u5F85\u5904\u7406",
    content: "\u8FD9\u91CC\u662F\u63CF\u8FF0\u6587\u6848"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "\u7B49\u5F85\u5904\u7406",
    content: "\u8FD9\u91CC\u662F\u63CF\u8FF0\u6587\u6848"
  })), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("h3", null, "Basic3"), /*#__PURE__*/_react["default"].createElement("h4", null, "Enabled"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: -1,
    stretch: true,
    shape: "dot",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP1",
    content: "\u7B49\u5F85\u5904\u7406"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP2",
    content: "\u7B49\u5F85\u5904\u7406"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP3",
    content: "\u7B49\u5F85\u5904\u7406"
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Active"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    shape: "dot",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP1",
    content: "\u5904\u7406\u5B8C\u6210"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP2",
    content: "\u5F53\u524D"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP3",
    content: "\u7B49\u5F85\u5904\u7406"
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Disabled"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    shape: "dot",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP1",
    content: "\u5904\u7406\u5B8C\u6210",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP2",
    content: "\u5F53\u524D",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP3",
    content: "\u7B49\u5F85\u5904\u7406",
    disabled: true
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Error"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    shape: "dot",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP1",
    content: "\u5904\u7406\u5B8C\u6210"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP2",
    content: "\u5F53\u524D",
    error: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "STEP3",
    content: "\u7B49\u5F85\u5904\u7406"
  })), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("h3", null, "With Icon"), /*#__PURE__*/_react["default"].createElement("h4", null, "Enabled"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: -1,
    stretch: true,
    animation: false,
    labelPlacement: "ver",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door",
    icon: "calendar"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 2",
    content: "Put the elephant in the refrigerator",
    icon: "calendar"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 3",
    content: "Close the refrigerator door",
    icon: "smile"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 4",
    content: "Close the refrigerator door",
    icon: "smile"
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Active"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    animation: false,
    labelPlacement: "ver",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door",
    icon: "calendar"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 2",
    content: "Put the elephant in the refrigerator",
    icon: "calendar"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 3",
    content: "Close the refrigerator door",
    icon: "smile"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 4",
    content: "Close the refrigerator door",
    icon: "smile"
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Disabled"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    animation: false,
    labelPlacement: "ver",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door",
    icon: "calendar",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 2",
    content: "Put the elephant in the refrigerator",
    icon: "calendar",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 3",
    content: "Close the refrigerator door",
    icon: "smile",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 4",
    content: "Close the refrigerator door",
    icon: "smile",
    disabled: true
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Error"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    current: 1,
    stretch: true,
    animation: false,
    labelPlacement: "ver",
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door",
    icon: "calendar"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 2",
    content: "Put the elephant in the refrigerator",
    icon: "calendar",
    error: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 3",
    content: "Close the refrigerator door",
    icon: "smile"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 4",
    content: "Close the refrigerator door",
    icon: "smile"
  })), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("h3", null, "Rounded Bar"), /*#__PURE__*/_react["default"].createElement("h4", null, "Enabled"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    shape: "arrow",
    current: -1,
    stretch: true,
    animation: false,
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 2",
    content: "Put the elephant in the refrigerator"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 3",
    content: "Close the refrigerator door"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 4",
    content: "Close the refrigerator door"
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Active"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    shape: "arrow",
    current: 1,
    stretch: true,
    animation: false,
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 2",
    content: "Put the elephant in the refrigerator"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 3",
    content: "Close the refrigerator door"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 4",
    content: "Close the refrigerator door"
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Disabled"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    shape: "arrow",
    current: 3,
    stretch: true,
    animation: false,
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 2",
    content: "Put the elephant in the refrigerator",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 3",
    content: "Close the refrigerator door",
    disabled: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 4",
    content: "Close the refrigerator door",
    disabled: true
  })), /*#__PURE__*/_react["default"].createElement("h4", null, "Error"), /*#__PURE__*/_react["default"].createElement(_["default"], {
    shape: "arrow",
    current: 1,
    stretch: true,
    animation: false,
    size: size
  }, /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 1",
    content: "Open the refrigerator door"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 2",
    content: "Put the elephant in the refrigerator",
    error: true
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 3",
    content: "Close the refrigerator door"
  }), /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    title: "Step 4",
    content: "Close the refrigerator door"
  })));
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(CreateDemo, null), document.getElementById('step-demo-1'));