fomantic-ui-react
Version:
Fomantic-UI React -- A React Component Library.
72 lines (55 loc) • 2.43 kB
JavaScript
/**
* fomantic-ui-react v0.0.1-alpha.10
* (c) 2022 FireLoong <fireloong@foxmail.com>
* @license MIT
*/
import { _ as _defineProperty, a as _objectWithoutProperties } from '../_chunks/dep-9f1126c1.js';
import React from 'react';
import RevealContent from './RevealContent.js';
var _excluded = ["as", "className", "animated", "small", "image", "circular", "active", "instant", "disabled", "content", "children"];
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Reveal = function Reveal(_ref) {
var _ref$as = _ref.as,
as = _ref$as === void 0 ? "div" : _ref$as,
className = _ref.className,
animated = _ref.animated,
small = _ref.small,
image = _ref.image,
circular = _ref.circular,
active = _ref.active,
instant = _ref.instant,
disabled = _ref.disabled,
content = _ref.content,
children = _ref.children,
props = _objectWithoutProperties(_ref, _excluded);
var classNames = ["ui", animated, "reveal"];
if (small) {
classNames.push("small");
}
if (image) {
classNames.push("image");
}
if (circular) {
classNames.push("circular");
}
if (active) {
classNames.push("active");
}
if (instant) {
classNames.push("instant");
}
if (disabled) {
classNames.push("disabled");
}
if (className) {
classNames.push(className);
}
return /*#__PURE__*/React.createElement(as, _objectSpread({
className: classNames.join(" ")
}, props), children || content);
};
Reveal.displayName = "Reveal";
Reveal.Content = RevealContent;
export { Reveal as default };
//# sourceMappingURL=Reveal.js.map