"use strict";

var _react = require("@emotion/react");

var _react2 = require("@storybook/react");

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

var _ = require(".");

var _Flex = require("../Flex");

var _Text = require("../Text");

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; }

var __jsx = _react3["default"].createElement;
var stories = (0, _react2.storiesOf)('Icons', module);

var Icons = function Icons() {
  var _useContext = (0, _react3.useContext)(_react.ThemeContext),
      iconPaths = _useContext.icons;

  return __jsx(_react3["default"].Fragment, null, Object.keys(iconPaths).map(function (icon) {
    return __jsx(_Flex.Flex, {
      border: "normal",
      borderColor: "gray.100",
      minWidth: "100px",
      p: "spacing-xs",
      mr: "spacing-xs",
      mb: "spacing-xs",
      display: "inline-flex",
      flexDirection: "column",
      alignItems: "center"
    }, __jsx(_.Icon, {
      name: icon,
      size: "24px"
    }), __jsx(_Text.Text, {
      mt: "spacing-xs",
      textAlign: "center"
    }, icon));
  }));
};

stories.add('Default', function () {
  return __jsx(Icons, null);
});
//# sourceMappingURL=examples.js.map