@doodl/slate 1.22.3 → 1.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.22.4](https://bitbucket.org/doodlltd/slate/compare/v1.22.3...v1.22.4) (2022-04-07)
|
|
6
|
+
|
|
5
7
|
### [1.22.3](https://bitbucket.org/doodlltd/slate/compare/v1.22.2...v1.22.3) (2022-02-13)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
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; }
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import styles from '../../../../scss/css-modules/section.module.scss';
|
|
6
|
-
|
|
7
|
-
var Section = function Section(props) {
|
|
6
|
+
var Section = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
8
7
|
var _classNames;
|
|
9
8
|
|
|
10
|
-
var
|
|
9
|
+
var id = props.id,
|
|
10
|
+
children = props.children,
|
|
11
11
|
_props$component = props.component,
|
|
12
12
|
Component = _props$component === void 0 ? 'section' : _props$component,
|
|
13
13
|
className = props.className,
|
|
@@ -21,8 +21,9 @@ var Section = function Section(props) {
|
|
|
21
21
|
removeRightPadding = _props$removeRightPad === void 0 ? false : _props$removeRightPad;
|
|
22
22
|
var classes = classNames(styles.section, (_classNames = {}, _defineProperty(_classNames, styles['remove-bottom-padding'], removeBottomPadding), _defineProperty(_classNames, styles['remove-top-padding'], removeTopPadding), _defineProperty(_classNames, styles['remove-left-padding'], removeLeftPadding), _defineProperty(_classNames, styles['remove-right-padding'], removeRightPadding), _classNames), className);
|
|
23
23
|
return /*#__PURE__*/React.createElement(Component, {
|
|
24
|
-
|
|
24
|
+
id: id,
|
|
25
|
+
className: classes,
|
|
26
|
+
ref: ref
|
|
25
27
|
}, children);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
+
});
|
|
28
29
|
export default Section;
|