@occmundial/occ-atomic 3.0.0-beta.67 → 3.0.0-beta.68
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/build/SlideDown/SlideDown.js +8 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [3.0.0-beta.68](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.67...v3.0.0-beta.68) (2024-11-11)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* Add id property ([563eafa](https://github.com/occmundial/occ-atomic/commit/563eafa6ec44dd27b6584725d57e815ffc1a2506))
|
7
|
+
|
1
8
|
# [3.0.0-beta.67](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.66...v3.0.0-beta.67) (2024-10-10)
|
2
9
|
|
3
10
|
|
@@ -111,7 +111,8 @@ function SlideDown(_ref) {
|
|
111
111
|
divider = _ref.divider,
|
112
112
|
noPadding = _ref.noPadding,
|
113
113
|
disabled = _ref.disabled,
|
114
|
-
testId = _ref.testId
|
114
|
+
testId = _ref.testId,
|
115
|
+
id = _ref.id;
|
115
116
|
|
116
117
|
var _useState = (0, _react.useState)(!!expanded),
|
117
118
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -144,7 +145,8 @@ function SlideDown(_ref) {
|
|
144
145
|
}, !disabled && {
|
145
146
|
onClick: toggleContent
|
146
147
|
}, {
|
147
|
-
"data-testid": testId
|
148
|
+
"data-testid": testId,
|
149
|
+
id: id
|
148
150
|
}), /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
|
149
151
|
display: "flex",
|
150
152
|
justifyContent: !noJustified ? 'between' : null,
|
@@ -234,7 +236,10 @@ SlideDown.propTypes = {
|
|
234
236
|
disabled: _propTypes["default"].bool,
|
235
237
|
|
236
238
|
/** The testId property adds the data attribute data-testid to the main element and should be used for testing only. */
|
237
|
-
testId: _propTypes["default"].string
|
239
|
+
testId: _propTypes["default"].string,
|
240
|
+
|
241
|
+
/** Id of the component */
|
242
|
+
id: _propTypes["default"].string
|
238
243
|
};
|
239
244
|
var _default = SlideDown;
|
240
245
|
exports["default"] = _default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@occmundial/occ-atomic",
|
3
|
-
"version": "3.0.0-beta.
|
3
|
+
"version": "3.0.0-beta.68",
|
4
4
|
"description": "Collection of shareable styled React components for OCC applications.",
|
5
5
|
"homepage": "http://occmundial.github.io/occ-atomic",
|
6
6
|
"main": "build/index.js",
|