"use strict";

exports.__esModule = true;
exports.default = exports.Base = void 0;

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

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

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (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 _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _extends() { _extends = Object.assign || 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); }

var _default = {
  title: 'Design System/SHARED COMPONENT/Tags',
  component: _index.default,
  argTypes: {
    type: {
      options: [_index.TagsComponentType.LIST, _index.TagsComponentType.POPPER],
      control: {
        type: 'select'
      },
      description: 'Component type.',
      table: {
        defaultValue: {
          summary: _index.TagsComponentType.POPPER
        }
      }
    },
    direction: {
      options: ['row', 'column'],
      control: {
        type: 'select'
      },
      description: 'The direction of the list.',
      table: {
        defaultValue: {
          summary: 'column'
        }
      }
    },
    title: {
      control: {
        type: 'text'
      },
      description: 'The title of the list or the popper.',
      table: {
        defaultValue: {
          summary: ''
        }
      }
    }
  },
  args: {
    type: _index.TagsComponentType.POPPER,
    direction: 'column',
    title: ''
  }
};
/**
 * Example of a tag
 */

exports.default = _default;
const tags = [{
  id: 0,
  name: 'Gold partner',
  description: 'Gold Partner',
  color: '#f5e107',
  visible: true,
  visibility_boost: true,
  created_at: '2019-08-24T14:15:22Z',
  active: true,
  deleted: false
}, {
  id: 1,
  name: 'Silver partner',
  description: 'Silver Partner',
  color: '#918d8d',
  visible: true,
  visibility_boost: true,
  created_at: '2019-08-24T14:15:22Z',
  active: true,
  deleted: false
}, {
  id: 2,
  name: 'Bronze partner',
  description: 'Bronze Partner',
  color: '#d76f16',
  visible: true,
  visibility_boost: true,
  created_at: '2019-08-24T14:15:22Z',
  active: true,
  deleted: false
}];

const Template = args => /*#__PURE__*/_react.default.createElement(_index.default, _extends({
  tags: tags
}, args));

const Base = Template.bind({});
exports.Base = Base;
Base.args = {
  type: _index.TagsComponentType.POPPER
};