@commercetools-uikit/collapsible-motion 19.22.5 → 19.22.7
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/README.md
CHANGED
|
@@ -69,8 +69,8 @@ export default Example;
|
|
|
69
69
|
| ----------------- | ---------------------------------------------------- | :------: | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
70
70
|
| `children` | `Function`<br/>[See signature.](#signature-children) | ✅ | | A render function, called with the following named arguments: `isOpen` (boolean), `toggle` (function),
`containerStyles` (css-in-js object), `registerContentNode` (React reference to be used on the animated container).
<br/>
Siganture: `({ isOpen, containerStyles, toggle, registerContentNode }) => React.node` |
|
|
71
71
|
| `isClosed` | `boolean` | | | |
|
|
72
|
-
| `onToggle` | `Function`<br/>[See signature.](#signature-
|
|
73
|
-
| `minHeight` | `number` | |
|
|
72
|
+
| `onToggle` | `Function`<br/>[See signature.](#signature-ontoggle) | | | A callback function called when the `toggle` function is called. This prop is required when the component is **controlled**. |
|
|
73
|
+
| `minHeight` | `number` | | | The minimal height of the container being animated. |
|
|
74
74
|
| `isDefaultClosed` | `boolean` | | | The initial value to the internal toggle state `isOpen`. |
|
|
75
75
|
|
|
76
76
|
## Signatures
|
|
@@ -191,7 +191,7 @@ CollapsibleMotion.displayName = 'CollapsibleMotion';
|
|
|
191
191
|
var CollapsibleMotion$1 = CollapsibleMotion;
|
|
192
192
|
|
|
193
193
|
// NOTE: This string will be replaced on build time with the package version.
|
|
194
|
-
var version = "19.22.
|
|
194
|
+
var version = "19.22.7";
|
|
195
195
|
|
|
196
196
|
exports["default"] = CollapsibleMotion$1;
|
|
197
197
|
exports.version = version;
|
|
@@ -170,7 +170,7 @@ CollapsibleMotion.displayName = 'CollapsibleMotion';
|
|
|
170
170
|
var CollapsibleMotion$1 = CollapsibleMotion;
|
|
171
171
|
|
|
172
172
|
// NOTE: This string will be replaced on build time with the package version.
|
|
173
|
-
var version = "19.22.
|
|
173
|
+
var version = "19.22.7";
|
|
174
174
|
|
|
175
175
|
exports["default"] = CollapsibleMotion$1;
|
|
176
176
|
exports.version = version;
|
|
@@ -174,6 +174,6 @@ CollapsibleMotion.displayName = 'CollapsibleMotion';
|
|
|
174
174
|
var CollapsibleMotion$1 = CollapsibleMotion;
|
|
175
175
|
|
|
176
176
|
// NOTE: This string will be replaced on build time with the package version.
|
|
177
|
-
var version = "19.22.
|
|
177
|
+
var version = "19.22.7";
|
|
178
178
|
|
|
179
179
|
export { CollapsibleMotion$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/collapsible-motion",
|
|
3
3
|
"description": "A component which allows building collapsible elements with an arbitrary height.",
|
|
4
|
-
"version": "19.22.
|
|
4
|
+
"version": "19.22.7",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/hooks": "19.22.
|
|
25
|
-
"@commercetools-uikit/utils": "19.22.
|
|
24
|
+
"@commercetools-uikit/hooks": "19.22.7",
|
|
25
|
+
"@commercetools-uikit/utils": "19.22.7",
|
|
26
26
|
"@emotion/react": "^11.10.5",
|
|
27
27
|
"@emotion/styled": "^11.10.5",
|
|
28
28
|
"lodash": "4.17.21",
|