import _defineProperty from "@babel/runtime/helpers/defineProperty";
import _extends from "@babel/runtime/helpers/extends";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

import React from 'react';
import markdown from './README.mdx';
import Link from '.';
export default {
  title: 'Components/UI Elements/Link (legacy)',
  component: Link,
  parameters: {
    componentSubtitle: 'Component',
    status: 'released',
    mdx: markdown
  }
};
export var Regular = function Regular(args) {
  return /*#__PURE__*/React.createElement(Link, args);
};
Regular.args = {
  children: 'WFP Homepage',
  href: 'https://www.wfp.org'
};
export var States = function States(args) {
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Link, _extends({}, args, {
    className: "wfp--link--hover"
  }), ":hover"), /*#__PURE__*/React.createElement(Link, _extends({}, args, {
    className: "wfp--link--focus"
  }), ":focus"), /*#__PURE__*/React.createElement(Link, _extends({}, args, {
    className: "wfp--link--active"
  }), ":active"), /*#__PURE__*/React.createElement(Link, _extends({}, args, {
    className: "wfp--link--visted"
  }), ":visited"));
};
States.args = _objectSpread(_objectSpread({}, Regular.args), {}, {
  style: {
    marginRight: '1rem'
  }
});
States.story = {
  parameters: {
    docs: {
      storyDescription: "The link component only uses minimalistic styles to indicate different states. By default, the link component does not use a visited style. Visited links indicate that a user has already opened the link so they can be a helpful indicator during task completion. Visited styles should be used sparingly because they often clutter the the page and add further visual noise as users are trying to navigate a product. They can be used if it is important that a user knows they have already clicked on a link.\n      "
    }
  }
};