"use strict";

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

var React = _interopRequireWildcard(require("react"));

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

var _examplesList = _interopRequireDefault(require("./examples-list.js"));

var _examples$FILE_UPLOAD;

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

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _default = (_examples$FILE_UPLOAD = {}, _defineProperty(_examples$FILE_UPLOAD, _examplesList.default.FILE_UPLOADER_EXAMPLE, function FileUploaderBasic() {
  return React.createElement(React.Fragment, null, React.createElement(_index.FileUploader, null), React.createElement("br", null), React.createElement(_index.FileUploader, {
    progressAmount: 40,
    progressMessage: "Uploading... 8.24 of 45.08MB",
    onCancel: function onCancel() {
      return console.log('cancel');
    },
    onRetry: function onRetry() {
      return console.log('retry');
    }
  }), React.createElement("br", null), React.createElement(_index.FileUploader, {
    progressAmount: 40,
    progressMessage: "Uploading... 8.24 of 45.08MB",
    errorMessage: "Upload failed... connection was lost.",
    onCancel: function onCancel() {
      return console.log('cancel');
    },
    onRetry: function onRetry() {
      return console.log('retry');
    }
  }), React.createElement("br", null), React.createElement(_index.FileUploader, {
    progressMessage: "Uploading... hang tight.",
    onCancel: function onCancel() {
      return console.log('cancel');
    },
    onRetry: function onRetry() {
      return console.log('retry');
    }
  }));
}), _defineProperty(_examples$FILE_UPLOAD, _examplesList.default.FILE_UPLOADER_ACCEPT, function FileUploaderAccept() {
  return React.createElement(_index.FileUploader, {
    accept: ".jpeg"
  });
}), _defineProperty(_examples$FILE_UPLOAD, _examplesList.default.FILE_UPLOADER_DISABLED, function FileUploaderDisabled() {
  return React.createElement(_index.FileUploader, {
    disabled: true
  });
}), _defineProperty(_examples$FILE_UPLOAD, _examplesList.default.FILE_UPLOADER_OVERRIDES, function FileUploaderOverrides() {
  return React.createElement(_index.FileUploader, {
    overrides: {
      FileDragAndDrop: {
        style: function style(props) {
          return {
            borderColor: props.$isDragActive ? props.$theme.colors.positive : props.$theme.colors.warning
          };
        }
      },
      ContentMessage: {
        style: function style(props) {
          return {
            color: props.$theme.colors.warning
          };
        }
      },
      ContentSeparator: {
        style: function style(props) {
          return {
            color: props.$theme.colors.warning
          };
        }
      }
    }
  });
}), _examples$FILE_UPLOAD);

exports.default = _default;