"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.ListWithDifferentArrowPositions = exports.ItemSelected = exports.ItemDisabled = exports.ItemDefault = void 0;
var _react = _interopRequireDefault(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _SingleSelectList = require("./SingleSelectList");
var _Display = require("../../../../../common/Display");
var _2 = require("../../../../..");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = exports.default = {
  title: 'Molecules / Input / Select / SingleSelectList'
};
var ItemDefault = exports.ItemDefault = {
  render: function render() {
    return _react.default.createElement(_SingleSelectList.Option, {
      label: "First"
    });
  },
  name: 'Item default'
};
var ItemSelected = exports.ItemSelected = {
  render: function render() {
    return _react.default.createElement(_SingleSelectList.Option, {
      label: "First",
      selected: true
    });
  },
  name: 'Item selected'
};
var ItemDisabled = exports.ItemDisabled = {
  render: function render() {
    return _react.default.createElement(_SingleSelectList.Option, {
      label: "First",
      disabled: true
    });
  },
  name: 'Item disabled'
};
var DropdownBubbleWithPadding = (0, _styledComponents.default)(_2.DropdownBubble).withConfig({
  displayName: "SingleSelectListstories__DropdownBubbleWithPadding",
  componentId: "sc-at8jo7-0"
})(["padding-top:12px;padding-bottom:12px;width:300px;"]);
var Wrapper = function Wrapper(props) {
  return _react.default.createElement(DropdownBubbleWithPadding, {
    position: props.position,
    placement: props.placement,
    maxHeight: "200px"
  }, _react.default.createElement(_2.FadedScroll, {
    enableMobileFade: true
  }, props.children));
};
var ListWithDifferentArrowPositions = exports.ListWithDifferentArrowPositions = {
  render: function render() {
    var _Array$fill, _Array$fill2, _Array$fill3, _Array$fill4, _Array$fill5, _Array$fill6, _Array$fill7;
    return _react.default.createElement(_Display.Display, {
      items: [{
        component: _react.default.createElement(Wrapper, null, _react.default.createElement(_SingleSelectList.Option, {
          label: "Default?"
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "First",
          selected: true
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "SecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecond"
        }), (_Array$fill = new Array(10).fill(null)) === null || _Array$fill === void 0 ? void 0 : _Array$fill.map(function (_, i) {
          return _react.default.createElement(_SingleSelectList.Option, {
            key: i,
            label: "Disabled",
            disabled: true
          });
        })),
        title: 'Placement bottom, arrow default (right)'
      }, {
        component: _react.default.createElement(Wrapper, {
          position: "left"
        }, _react.default.createElement(_SingleSelectList.Option, {
          label: "Default?"
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "First",
          selected: true
        }), (_Array$fill2 = new Array(10).fill(null)) === null || _Array$fill2 === void 0 ? void 0 : _Array$fill2.map(function (_, i) {
          return _react.default.createElement(_SingleSelectList.Option, {
            key: i,
            label: "Disabled",
            disabled: true
          });
        })),
        title: 'Placement bottom, arrow left'
      }, {
        component: _react.default.createElement(Wrapper, {
          position: "center",
          placement: "top"
        }, _react.default.createElement(_SingleSelectList.Option, {
          label: "Default?"
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "First",
          selected: true
        }), (_Array$fill3 = new Array(10).fill(null)) === null || _Array$fill3 === void 0 ? void 0 : _Array$fill3.map(function (_, i) {
          return _react.default.createElement(_SingleSelectList.Option, {
            key: i,
            label: "Disabled",
            disabled: true
          });
        })),
        title: 'Placement top, arrow center'
      }, {
        component: _react.default.createElement(Wrapper, {
          position: "center"
        }, _react.default.createElement(_SingleSelectList.Option, {
          label: "Default?"
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "First",
          selected: true
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "Second"
        }), (_Array$fill4 = new Array(10).fill(null)) === null || _Array$fill4 === void 0 ? void 0 : _Array$fill4.map(function (_, i) {
          return _react.default.createElement(_SingleSelectList.Option, {
            key: i,
            label: "Disabled",
            disabled: true
          });
        })),
        title: 'Placement bottom, arrow center'
      }, {
        component: _react.default.createElement(Wrapper, {
          placement: "top"
        }, _react.default.createElement(_SingleSelectList.Option, {
          label: "Default?"
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "First",
          selected: true
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "SecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecondSecond"
        }), (_Array$fill5 = new Array(10).fill(null)) === null || _Array$fill5 === void 0 ? void 0 : _Array$fill5.map(function (_, i) {
          return _react.default.createElement(_SingleSelectList.Option, {
            key: i,
            label: "Disabled",
            disabled: true
          });
        })),
        title: 'Placement top, arrow default (right)'
      }, {
        component: _react.default.createElement(Wrapper, {
          position: "left",
          placement: "top"
        }, _react.default.createElement(_SingleSelectList.Option, {
          label: "Default?"
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "First",
          selected: true
        }), (_Array$fill6 = new Array(10).fill(null)) === null || _Array$fill6 === void 0 ? void 0 : _Array$fill6.map(function (_, i) {
          return _react.default.createElement(_SingleSelectList.Option, {
            key: i,
            label: "Disabled",
            disabled: true
          });
        })),
        title: 'Placement top, arrow left'
      }, {
        component: _react.default.createElement(Wrapper, {
          position: "center",
          placement: "top"
        }, _react.default.createElement(_SingleSelectList.Option, {
          label: "Default?"
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "First",
          selected: true
        }), _react.default.createElement(_SingleSelectList.Option, {
          label: "Second"
        }), (_Array$fill7 = new Array(10).fill(null)) === null || _Array$fill7 === void 0 ? void 0 : _Array$fill7.map(function (_, i) {
          return _react.default.createElement(_SingleSelectList.Option, {
            key: i,
            label: "Disabled",
            disabled: true
          });
        })),
        title: 'Placement top, arrow center'
      }]
    });
  },
  name: 'List with different arrow positions'
};