"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.InverseFormLabel = exports.FormLabelWithHint = exports.FormLabelWithError = exports.FormLabelDefault = void 0;

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

var _FormLabel = _interopRequireDefault(require("./FormLabel"));

var _excluded = ["data"];

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var _default = {
  title: 'Components/FormLabel',
  component: _FormLabel.default,
  argTypes: {
    errorMessage: {
      control: {
        type: 'text'
      }
    },
    hint: {
      control: {
        type: 'text'
      }
    },
    requirementLabel: {
      control: {
        type: 'text'
      }
    }
  },
  args: {
    children: 'Sample Label'
  }
};
exports.default = _default;

var Template = function Template(_ref) {
  var data = _ref.data,
      args = _objectWithoutProperties(_ref, _excluded);

  return /*#__PURE__*/_react.default.createElement(_FormLabel.default, args);
};

var FormLabelDefault = Template.bind({});
exports.FormLabelDefault = FormLabelDefault;
var FormLabelWithHint = Template.bind({});
exports.FormLabelWithHint = FormLabelWithHint;
FormLabelWithHint.args = {
  hint: 'Example of a hint for a form label'
};
var FormLabelWithError = Template.bind({});
exports.FormLabelWithError = FormLabelWithError;
FormLabelWithError.args = {
  errorMessage: 'Example of an error for a form label'
};
var InverseFormLabel = Template.bind({});
exports.InverseFormLabel = InverseFormLabel;
InverseFormLabel.args = {
  inversed: true
};
InverseFormLabel.parameters = {
  backgrounds: {
    default: process.env.STORYBOOK_DS === 'medicare' ? 'Mgov dark' : 'Hcgov dark'
  }
};