@clayui/layout
Advanced tools
Comparing version 3.111.0 to 3.128.0
@@ -40,3 +40,3 @@ /** | ||
} | ||
declare const ClayCol: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLElement>>; | ||
export default ClayCol; | ||
declare const Col: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLElement>>; | ||
export default Col; |
"use strict"; | ||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,34 +8,31 @@ value: true | ||
exports.default = void 0; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _excluded = ["children", "className", "containerElement", "lg", "md", "size", "sm", "xl", "xs"]; | ||
/** | ||
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); } | ||
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } | ||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } | ||
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } | ||
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) { o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; } | ||
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } } return t; } | ||
/* eslint-disable @liferay/no-abbreviations */ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
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; } | ||
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 ClayCol = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var Col = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var _classNames; | ||
var children = _ref.children, | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
lg = _ref.lg, | ||
md = _ref.md, | ||
size = _ref.size, | ||
sm = _ref.sm, | ||
xl = _ref.xl, | ||
xs = _ref.xs, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
lg = _ref.lg, | ||
md = _ref.md, | ||
size = _ref.size, | ||
sm = _ref.sm, | ||
xl = _ref.xl, | ||
xs = _ref.xs, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
var noBreakPoints = !lg && !md && !sm && !xs && !xl && !size; | ||
@@ -50,5 +48,3 @@ xs = xs || size; | ||
}); | ||
ClayCol.displayName = 'ClayCol'; | ||
var _default = ClayCol; | ||
exports.default = _default; | ||
Col.displayName = 'ClayCol'; | ||
var _default = exports.default = Col; |
@@ -22,3 +22,3 @@ /** | ||
*/ | ||
fluidSize?: 'sm' | 'md' | 'lg' | 'xl'; | ||
fluidSize?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl'; | ||
/** | ||
@@ -37,3 +37,3 @@ * Adds the `.container-form-${formSize}` class to properly space | ||
} | ||
declare const ClayContainer: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLElement>>; | ||
export default ClayContainer; | ||
declare const Container: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLElement>>; | ||
export default Container; |
"use strict"; | ||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,32 +8,27 @@ value: true | ||
exports.default = void 0; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _excluded = ["children", "className", "containerElement", "fluid", "fluidSize", "formSize", "view"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
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; } | ||
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 ClayContainer = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
/** | ||
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); } | ||
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } | ||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } | ||
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } | ||
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) { o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; } | ||
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } } return t; } | ||
var Container = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var _classNames; | ||
var children = _ref.children, | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
fluid = _ref.fluid, | ||
fluidSize = _ref.fluidSize, | ||
formSize = _ref.formSize, | ||
view = _ref.view, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
fluid = _ref.fluid, | ||
fluidSize = _ref.fluidSize, | ||
formSize = _ref.formSize, | ||
view = _ref.view, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -46,5 +42,3 @@ className: (0, _classnames.default)(className, (_classNames = { | ||
}); | ||
ClayContainer.displayName = 'ClayContainer'; | ||
var _default = ClayContainer; | ||
exports.default = _default; | ||
Container.displayName = 'ClayContainer'; | ||
var _default = exports.default = Container; |
@@ -10,3 +10,3 @@ /** | ||
} | ||
declare const ClayContainerFluid: React.ForwardRefExoticComponent<Pick<IProps, "key" | "id" | "view" | "color" | "hidden" | "dir" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "containerElement" | "formSize"> & React.RefAttributes<HTMLElement>>; | ||
export default ClayContainerFluid; | ||
declare const ContainerFluid: React.ForwardRefExoticComponent<Pick<IProps, "containerElement" | "size" | "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "view" | "formSize" | "key"> & React.RefAttributes<HTMLElement>>; | ||
export default ContainerFluid; |
@@ -7,23 +7,18 @@ "use strict"; | ||
exports.default = void 0; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Container = _interopRequireDefault(require("./Container")); | ||
var _excluded = ["children", "size"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
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 ClayContainerFluid = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
/** | ||
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); } | ||
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) { o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; } | ||
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } } return t; } | ||
var ContainerFluid = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var children = _ref.children, | ||
_ref$size = _ref.size, | ||
size = _ref$size === void 0 ? 'xl' : _ref$size, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
_ref$size = _ref.size, | ||
size = _ref$size === void 0 ? 'xl' : _ref$size, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
return /*#__PURE__*/_react.default.createElement(_Container.default, _extends({}, otherProps, { | ||
@@ -35,5 +30,3 @@ fluid: true, | ||
}); | ||
ClayContainerFluid.displayName = 'ClayContainerFluid'; | ||
var _default = ClayContainerFluid; | ||
exports.default = _default; | ||
ContainerFluid.displayName = 'ClayContainerFluid'; | ||
var _default = exports.default = ContainerFluid; |
"use strict"; | ||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,34 +8,29 @@ value: true | ||
exports.ContentSection = exports.ContentRow = exports.ContentCol = void 0; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _excluded = ["children", "className", "containerElement", "float", "noGutters", "padded", "verticalAlign"], | ||
_excluded2 = ["children", "className", "containerElement", "expand", "float", "gutters", "shrink"], | ||
_excluded3 = ["children", "className", "containerElement"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
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; } | ||
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 ContentRow = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
_excluded2 = ["children", "className", "containerElement", "expand", "float", "gutters", "shrink"], | ||
_excluded3 = ["children", "className", "containerElement"]; | ||
/** | ||
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); } | ||
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } | ||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } | ||
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } | ||
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) { o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; } | ||
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } } return t; } | ||
var ContentRow = exports.ContentRow = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var _classNames; | ||
var children = _ref.children, | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
float = _ref.float, | ||
noGutters = _ref.noGutters, | ||
padded = _ref.padded, | ||
verticalAlign = _ref.verticalAlign, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
float = _ref.float, | ||
noGutters = _ref.noGutters, | ||
padded = _ref.padded, | ||
verticalAlign = _ref.verticalAlign, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -47,17 +43,13 @@ className: (0, _classnames.default)(className, 'autofit-row', (_classNames = { | ||
}); | ||
exports.ContentRow = ContentRow; | ||
ContentRow.displayName = 'ClayContentRow'; | ||
var ContentCol = /*#__PURE__*/_react.default.forwardRef(function (_ref2, ref) { | ||
var ContentCol = exports.ContentCol = /*#__PURE__*/_react.default.forwardRef(function (_ref2, ref) { | ||
var children = _ref2.children, | ||
className = _ref2.className, | ||
_ref2$containerElemen = _ref2.containerElement, | ||
ContainerElement = _ref2$containerElemen === void 0 ? 'div' : _ref2$containerElemen, | ||
expand = _ref2.expand, | ||
float = _ref2.float, | ||
gutters = _ref2.gutters, | ||
shrink = _ref2.shrink, | ||
otherProps = _objectWithoutProperties(_ref2, _excluded2); | ||
className = _ref2.className, | ||
_ref2$containerElemen = _ref2.containerElement, | ||
ContainerElement = _ref2$containerElemen === void 0 ? 'div' : _ref2$containerElemen, | ||
expand = _ref2.expand, | ||
float = _ref2.float, | ||
gutters = _ref2.gutters, | ||
shrink = _ref2.shrink, | ||
otherProps = _objectWithoutProperties(_ref2, _excluded2); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -72,13 +64,9 @@ className: (0, _classnames.default)(className, 'autofit-col', _defineProperty({ | ||
}); | ||
exports.ContentCol = ContentCol; | ||
ContentCol.displayName = 'ClayContentCol'; | ||
var ContentSection = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) { | ||
var ContentSection = exports.ContentSection = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) { | ||
var children = _ref3.children, | ||
className = _ref3.className, | ||
_ref3$containerElemen = _ref3.containerElement, | ||
ContainerElement = _ref3$containerElemen === void 0 ? 'div' : _ref3$containerElemen, | ||
otherProps = _objectWithoutProperties(_ref3, _excluded3); | ||
className = _ref3.className, | ||
_ref3$containerElemen = _ref3.containerElement, | ||
ContainerElement = _ref3$containerElemen === void 0 ? 'div' : _ref3$containerElemen, | ||
otherProps = _objectWithoutProperties(_ref3, _excluded3); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -89,4 +77,2 @@ className: (0, _classnames.default)(className, 'autofit-section'), | ||
}); | ||
exports.ContentSection = ContentSection; | ||
ContentSection.displayName = 'ClayContentSection'; |
@@ -30,3 +30,3 @@ /** | ||
var Container: import("react").ForwardRefExoticComponent<import("./Container").IProps & import("react").RefAttributes<HTMLElement>>; | ||
var ContainerFluid: import("react").ForwardRefExoticComponent<Pick<import("./ContainerFluid").IProps, "key" | "id" | "view" | "color" | "hidden" | "dir" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "containerElement" | "formSize"> & import("react").RefAttributes<HTMLElement>>; | ||
var ContainerFluid: import("react").ForwardRefExoticComponent<Pick<import("./ContainerFluid").IProps, "containerElement" | "size" | "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "view" | "formSize" | "key"> & import("react").RefAttributes<HTMLElement>>; | ||
var ContentCol: import("react").ForwardRefExoticComponent<import("./Content").IContentColProps & import("react").RefAttributes<HTMLElement>>; | ||
@@ -33,0 +33,0 @@ var ContentRow: import("react").ForwardRefExoticComponent<import("./Content").IContentRowProps & import("react").RefAttributes<HTMLElement>>; |
@@ -79,19 +79,10 @@ "use strict"; | ||
exports.default = void 0; | ||
var _warning = _interopRequireDefault(require("warning")); | ||
var _Col = _interopRequireDefault(require("./Col")); | ||
var _Container = _interopRequireDefault(require("./Container")); | ||
var _ContainerFluid = _interopRequireDefault(require("./ContainerFluid")); | ||
var _Content = require("./Content"); | ||
var _Row = _interopRequireDefault(require("./Row")); | ||
var _Sheet = require("./Sheet"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
/** | ||
@@ -101,2 +92,3 @@ * SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> | ||
*/ | ||
function ClayLayout() { | ||
@@ -106,3 +98,2 @@ "production" !== "production" ? (0, _warning.default)(true, "ClayLayout is a no-op and is not expected to be used by itself. Try using one of the many namespaced components like '<ClayLayout.ContainerFluid>'") : void 0; | ||
} | ||
ClayLayout.Col = _Col.default; | ||
@@ -120,3 +111,2 @@ ClayLayout.Container = _Container.default; | ||
ClayLayout.SheetRow = _Sheet.SheetRow; | ||
var _default = ClayLayout; | ||
exports.default = _default; | ||
var _default = exports.default = ClayLayout; |
@@ -24,3 +24,3 @@ /** | ||
} | ||
declare const ClayRow: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLElement>>; | ||
export default ClayRow; | ||
declare const Row: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLElement>>; | ||
export default Row; |
"use strict"; | ||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,29 +8,25 @@ value: true | ||
exports.default = void 0; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _excluded = ["children", "className", "containerElement", "gutters", "justify"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
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; } | ||
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 ClayRow = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
/** | ||
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); } | ||
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } | ||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } | ||
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } | ||
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) { o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; } | ||
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } } return t; } | ||
var Row = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var children = _ref.children, | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
_ref$gutters = _ref.gutters, | ||
gutters = _ref$gutters === void 0 ? true : _ref$gutters, | ||
justify = _ref.justify, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
_ref$gutters = _ref.gutters, | ||
gutters = _ref$gutters === void 0 ? true : _ref$gutters, | ||
justify = _ref.justify, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -42,5 +39,3 @@ className: (0, _classnames.default)('row', className, _defineProperty({ | ||
}); | ||
ClayRow.displayName = 'ClayRow'; | ||
var _default = ClayRow; | ||
exports.default = _default; | ||
Row.displayName = 'ClayRow'; | ||
var _default = exports.default = Row; |
105
lib/Sheet.js
"use strict"; | ||
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,30 +8,26 @@ value: true | ||
exports.SheetSection = exports.SheetRow = exports.SheetHeader = exports.SheetFooter = exports.Sheet = void 0; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _excluded = ["children", "className", "containerElement"], | ||
_excluded2 = ["children", "className", "containerElement"], | ||
_excluded3 = ["children", "className", "containerElement"], | ||
_excluded4 = ["children", "className", "containerElement"], | ||
_excluded5 = ["children", "className", "containerElement", "size"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
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; } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
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 SheetHeader = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
_excluded2 = ["children", "className", "containerElement"], | ||
_excluded3 = ["children", "className", "containerElement"], | ||
_excluded4 = ["children", "className", "containerElement"], | ||
_excluded5 = ["children", "className", "containerElement", "size"]; | ||
/** | ||
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } | ||
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } | ||
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } | ||
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); } | ||
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) { o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; } | ||
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } } return t; } | ||
var SheetHeader = exports.SheetHeader = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var children = _ref.children, | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
className = _ref.className, | ||
_ref$containerElement = _ref.containerElement, | ||
ContainerElement = _ref$containerElement === void 0 ? 'div' : _ref$containerElement, | ||
otherProps = _objectWithoutProperties(_ref, _excluded); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -41,13 +38,9 @@ className: (0, _classnames.default)(className, 'sheet-header'), | ||
}); | ||
exports.SheetHeader = SheetHeader; | ||
SheetHeader.displayName = 'ClaySheetHeader'; | ||
var SheetFooter = /*#__PURE__*/_react.default.forwardRef(function (_ref2, ref) { | ||
var SheetFooter = exports.SheetFooter = /*#__PURE__*/_react.default.forwardRef(function (_ref2, ref) { | ||
var children = _ref2.children, | ||
className = _ref2.className, | ||
_ref2$containerElemen = _ref2.containerElement, | ||
ContainerElement = _ref2$containerElemen === void 0 ? 'div' : _ref2$containerElemen, | ||
otherProps = _objectWithoutProperties(_ref2, _excluded2); | ||
className = _ref2.className, | ||
_ref2$containerElemen = _ref2.containerElement, | ||
ContainerElement = _ref2$containerElemen === void 0 ? 'div' : _ref2$containerElemen, | ||
otherProps = _objectWithoutProperties(_ref2, _excluded2); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -58,13 +51,9 @@ className: (0, _classnames.default)(className, 'sheet-footer'), | ||
}); | ||
exports.SheetFooter = SheetFooter; | ||
SheetFooter.displayName = 'ClaySheetFooter'; | ||
var SheetSection = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) { | ||
var SheetSection = exports.SheetSection = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) { | ||
var children = _ref3.children, | ||
className = _ref3.className, | ||
_ref3$containerElemen = _ref3.containerElement, | ||
ContainerElement = _ref3$containerElemen === void 0 ? 'div' : _ref3$containerElemen, | ||
otherProps = _objectWithoutProperties(_ref3, _excluded3); | ||
className = _ref3.className, | ||
_ref3$containerElemen = _ref3.containerElement, | ||
ContainerElement = _ref3$containerElemen === void 0 ? 'div' : _ref3$containerElemen, | ||
otherProps = _objectWithoutProperties(_ref3, _excluded3); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -75,13 +64,9 @@ className: (0, _classnames.default)(className, 'sheet-section'), | ||
}); | ||
exports.SheetSection = SheetSection; | ||
SheetSection.displayName = 'ClaySheetSection'; | ||
var SheetRow = /*#__PURE__*/_react.default.forwardRef(function (_ref4, ref) { | ||
var SheetRow = exports.SheetRow = /*#__PURE__*/_react.default.forwardRef(function (_ref4, ref) { | ||
var children = _ref4.children, | ||
className = _ref4.className, | ||
_ref4$containerElemen = _ref4.containerElement, | ||
ContainerElement = _ref4$containerElemen === void 0 ? 'div' : _ref4$containerElemen, | ||
otherProps = _objectWithoutProperties(_ref4, _excluded4); | ||
className = _ref4.className, | ||
_ref4$containerElemen = _ref4.containerElement, | ||
ContainerElement = _ref4$containerElemen === void 0 ? 'div' : _ref4$containerElemen, | ||
otherProps = _objectWithoutProperties(_ref4, _excluded4); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -92,14 +77,10 @@ className: (0, _classnames.default)(className, 'sheet-row'), | ||
}); | ||
exports.SheetRow = SheetRow; | ||
SheetRow.displayName = 'ClaySheetRow'; | ||
var Sheet = /*#__PURE__*/_react.default.forwardRef(function (_ref5, ref) { | ||
var Sheet = exports.Sheet = /*#__PURE__*/_react.default.forwardRef(function (_ref5, ref) { | ||
var children = _ref5.children, | ||
className = _ref5.className, | ||
_ref5$containerElemen = _ref5.containerElement, | ||
ContainerElement = _ref5$containerElemen === void 0 ? 'div' : _ref5$containerElemen, | ||
size = _ref5.size, | ||
otherProps = _objectWithoutProperties(_ref5, _excluded5); | ||
className = _ref5.className, | ||
_ref5$containerElemen = _ref5.containerElement, | ||
ContainerElement = _ref5$containerElemen === void 0 ? 'div' : _ref5$containerElemen, | ||
size = _ref5.size, | ||
otherProps = _objectWithoutProperties(_ref5, _excluded5); | ||
return /*#__PURE__*/_react.default.createElement(ContainerElement, _extends({}, otherProps, { | ||
@@ -110,4 +91,2 @@ className: (0, _classnames.default)(className, 'sheet', _defineProperty({}, "sheet-".concat(size), size)), | ||
}); | ||
exports.Sheet = Sheet; | ||
Sheet.displayName = 'ClaySheet'; |
{ | ||
"name": "@clayui/layout", | ||
"version": "3.111.0", | ||
"version": "3.128.0", | ||
"description": "ClayLayout component", | ||
@@ -38,3 +38,3 @@ "license": "BSD-3-Clause", | ||
], | ||
"gitHead": "7dae7b1ba2f61516876e5799dc95045a5adb2c18" | ||
"gitHead": "98d935035547358645741cbc137cae53a596f568" | ||
} |
704
46502
16