"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Fullwidth = exports.Disabled = exports.hideTextInput = exports.RegularSlider = exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

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

var _Slider = _interopRequireDefault(require("../Slider"));

var _README = _interopRequireDefault(require("./README.mdx"));

var _default = {
  title: 'Components/Forms/Slider',
  component: _Slider.default,
  parameters: {
    componentSubtitle: 'Component',
    status: 'released',
    mdx: _README.default
  }
};
exports.default = _default;

var RegularSlider = function RegularSlider(args) {
  return /*#__PURE__*/_react.default.createElement(_Slider.default, (0, _extends2.default)({
    id: "slider2"
  }, args));
};

exports.RegularSlider = RegularSlider;
RegularSlider.args = {
  name: 'Form item name (name)',
  value: 25,
  min: 10,
  max: 50,
  step: 1,
  labelText: 'Slider Label',
  helperText: 'Additional helper text'
};

var hideTextInput = function hideTextInput(args) {
  return /*#__PURE__*/_react.default.createElement("div", {
    style: {
      marginTop: '2rem'
    }
  }, /*#__PURE__*/_react.default.createElement(_Slider.default, (0, _extends2.default)({
    id: "slider2"
  }, args)));
};

exports.hideTextInput = hideTextInput;
hideTextInput.args = {
  name: 'Form item name (name)',
  inputType: 'number',
  hideTextInput: true,
  value: 25,
  min: 0,
  max: 50,
  step: 1,
  labelText: 'Slider Label',
  helperText: 'Additional helper text'
};
hideTextInput.story = {
  name: 'Hide TextInput',
  parameters: {
    docs: {
      storyDescription: "Hide the number input box by setting `hideTextInput` property to **true**"
    }
  }
};

var Disabled = function Disabled(args) {
  return /*#__PURE__*/_react.default.createElement("div", {
    style: {
      marginTop: '2rem'
    }
  }, /*#__PURE__*/_react.default.createElement(_Slider.default, (0, _extends2.default)({
    id: "slider2"
  }, args)));
};

exports.Disabled = Disabled;
Disabled.args = {
  name: 'Form item name (name)',
  inputType: 'number',
  disabled: true,
  value: 50,
  min: 0,
  max: 100,
  step: 1,
  labelText: 'Slider Label',
  helperText: 'Additional helper text'
};
Disabled.story = {
  parameters: {
    docs: {
      storyDescription: "Specify whether a slider should be interactive or non-interactive by setting the `disabled` property to **true** or **false**"
    }
  }
};

var Fullwidth = function Fullwidth(args) {
  return /*#__PURE__*/_react.default.createElement("div", {
    style: {
      marginTop: '2rem'
    }
  }, /*#__PURE__*/_react.default.createElement(_Slider.default, (0, _extends2.default)({
    id: "slider2"
  }, args)));
};

exports.Fullwidth = Fullwidth;
Fullwidth.args = {
  name: 'Form item name (name)',
  inputType: 'number',
  fullWidth: true,
  value: 50,
  min: 0,
  max: 100,
  step: 1,
  labelText: 'Slider Label',
  helperText: 'Additional helper text'
};
Fullwidth.story = {
  parameters: {
    docs: {
      storyDescription: "Specify `fullWidth` property to be full to use the width of parent element"
    }
  }
};