"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.WithModifiedStroke = exports.UrgentMessage = exports.Transfer = exports.ThreeDotsO = exports.ThinChevron = exports.ThinArrow = exports.TaxPercentage = exports.SortArrow = exports.Profile = exports.Percent = exports.Inline = exports.Faq = exports.DifferentSizeAndFill = exports.DefaultUse = exports.Chevron = exports.CalendarO = exports.AvailableOldIcons = exports.AllOldIconsColored = exports.Account = void 0;
var _react = _interopRequireDefault(require("react"));
var _ = require("../..");
var _Display = require("../../common/Display");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
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(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
var meta = {
  title: 'Atoms / OldIcon'
};
var _default = exports.default = meta;
var DefaultUse = exports.DefaultUse = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.ArrowRight, null);
  }
};
var Inline = exports.Inline = {
  render: function render() {
    return _react.default.createElement(_react.default.Fragment, null, "You can put the ", _react.default.createElement(_.OldIcon.ArrowRight, {
      inline: true
    }), " directly in the text with inline prop!");
  }
};
var ThinArrow = exports.ThinArrow = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.ThinArrow, {
      direction: "up"
    });
  }
};
var ThinChevron = exports.ThinChevron = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.ThinChevron, {
      direction: "up"
    });
  }
};
var Chevron = exports.Chevron = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.Chevron, {
      direction: "up"
    });
  }
};
var SortArrow = exports.SortArrow = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.SortArrow, {
      direction: "ascending"
    });
  }
};
var Account = exports.Account = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.Account, {
      size: 10,
      fill: function fill(t) {
        return t.color.backgroundBlack;
      }
    });
  }
};
var CalendarO = exports.CalendarO = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.CalendarO, {
      size: 10,
      fill: function fill(t) {
        return t.color.backgroundBlack;
      }
    });
  }
};
var Faq = exports.Faq = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.FAQ, {
      size: 10,
      fill: function fill(t) {
        return t.color.cta;
      }
    });
  }
};
var Percent = exports.Percent = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.Percent, {
      size: 10,
      fill: function fill(t) {
        return t.color.backgroundBlack;
      }
    });
  }
};
var Profile = exports.Profile = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.Profile, {
      size: 10,
      fill: function fill(t) {
        return t.color.backgroundBlack;
      }
    });
  }
};
var ThreeDotsO = exports.ThreeDotsO = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.ThreeDotsO, {
      size: 10,
      fill: function fill(t) {
        return t.color.backgroundBlack;
      }
    });
  }
};
var TaxPercentage = exports.TaxPercentage = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.TaxPercentage, {
      size: 10,
      fill: function fill(t) {
        return t.color.backgroundBlack;
      }
    });
  }
};
var Transfer = exports.Transfer = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.Transfer, {
      size: 10,
      fill: function fill(t) {
        return t.color.backgroundBlack;
      }
    });
  }
};
var UrgentMessage = exports.UrgentMessage = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.UrgentMessage, {
      size: 10,
      fill: function fill(t) {
        return t.color.text;
      },
      stroke: function stroke(t) {
        return t.color.negative;
      }
    });
  }
};
var DifferentSizeAndFill = exports.DifferentSizeAndFill = {
  render: function render() {
    return _react.default.createElement(_.OldIcon.ArrowRight, {
      size: 10,
      fill: function fill(t) {
        return t.color.positive;
      }
    });
  }
};
var WithModifiedStroke = exports.WithModifiedStroke = {
  render: function render() {
    return _react.default.createElement(_Display.Display, {
      items: [{
        title: 'Star with stroke modified',
        component: _react.default.createElement(_.OldIcon.Star, {
          size: 10,
          stroke: function stroke(t) {
            return t.color.positive;
          }
        })
      }, {
        title: 'CrossThin with stroke modified',
        component: _react.default.createElement(_.OldIcon.CrossThin, {
          size: 10,
          stroke: function stroke(t) {
            return t.color.positive;
          }
        })
      }, {
        title: 'CheckMarkCircle with stroke modified',
        component: _react.default.createElement(_.OldIcon.CheckMarkCircle, {
          size: 10,
          fill: function fill(t) {
            return t.color.positive;
          },
          stroke: function stroke(t) {
            return t.color.negative;
          }
        })
      }, {
        title: 'CrossCircle with stroke modified',
        component: _react.default.createElement(_.OldIcon.CrossCircle, {
          size: 10,
          fill: function fill(t) {
            return t.color.positive;
          },
          stroke: function stroke(t) {
            return t.color.negative;
          }
        })
      }, {
        title: 'InfoCircle with stroke modified',
        component: _react.default.createElement(_.OldIcon.InfoCircle, {
          size: 10,
          fill: function fill(t) {
            return t.color.positive;
          },
          stroke: function stroke(t) {
            return t.color.negative;
          }
        })
      }, {
        title: 'WarningTriangle with stroke modified',
        component: _react.default.createElement(_.OldIcon.WarningTriangle, {
          size: 10,
          fill: function fill(t) {
            return t.color.positive;
          },
          stroke: function stroke(t) {
            return t.color.negative;
          }
        })
      }, {
        title: 'Star24 with both stroke modified',
        component: _react.default.createElement(_.OldIcon.Star24, {
          size: 10,
          stroke: function stroke(t) {
            return t.color.positive;
          }
        })
      }, {
        title: 'Star24 with both stroke and fill modified',
        component: _react.default.createElement(_.OldIcon.Star24, {
          size: 10,
          fill: function fill(t) {
            return t.color.positive;
          },
          stroke: function stroke(t) {
            return t.color.positive;
          }
        })
      }]
    });
  }
};
var AvailableOldIcons = exports.AvailableOldIcons = {
  render: function render() {
    var _Object$entries;
    return _react.default.createElement(_Display.Display, {
      items: Object === null || Object === void 0 || (_Object$entries = Object.entries(_.OldIcon)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(function (_ref) {
        var _ref2 = _slicedToArray(_ref, 2),
          iconName = _ref2[0],
          IconComponent = _ref2[1];
        return {
          title: iconName,
          component: _react.default.createElement("div", {
            style: {
              outline: '1px dashed #bbb',
              display: 'inline-block'
            }
          }, _react.default.createElement(IconComponent, iconName === 'SharevilleLogo' ? {
            id: 'shareville-logo'
          } : {}))
        };
      })
    });
  }
};
var AllOldIconsColored = exports.AllOldIconsColored = {
  render: function render() {
    var _Object$entries2;
    return _react.default.createElement(_react.default.Fragment, null, Object === null || Object === void 0 || (_Object$entries2 = Object.entries(_.OldIcon)) === null || _Object$entries2 === void 0 ? void 0 : _Object$entries2.map(function (_ref3) {
      var _ref4 = _slicedToArray(_ref3, 2),
        key = _ref4[0],
        IconComponent = _ref4[1];
      return _react.default.createElement("div", {
        key: key,
        style: {
          outline: '1px dashed #bbb',
          display: 'inline-block'
        }
      }, _react.default.createElement(IconComponent, _extends({
        color: function color(t) {
          return t.color.cta;
        },
        fill: function fill(t) {
          return t.color.cta;
        }
      }, key === 'SharevilleLogo' ? {
        id: 'shareville-logo'
      } : {})));
    }));
  },
  name: 'All old icons (colored)'
};