@commercetools-uikit/collapsible-motion 19.9.0 → 19.11.0

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.
@@ -177,7 +177,7 @@ CollapsibleMotion.defaultProps = defaultProps;
177
177
  var CollapsibleMotion$1 = CollapsibleMotion;
178
178
 
179
179
  // NOTE: This string will be replaced on build time with the package version.
180
- var version = "19.9.0";
180
+ var version = "19.11.0";
181
181
 
182
182
  exports["default"] = CollapsibleMotion$1;
183
183
  exports.version = version;
@@ -156,7 +156,7 @@ CollapsibleMotion.defaultProps = defaultProps;
156
156
  var CollapsibleMotion$1 = CollapsibleMotion;
157
157
 
158
158
  // NOTE: This string will be replaced on build time with the package version.
159
- var version = "19.9.0";
159
+ var version = "19.11.0";
160
160
 
161
161
  exports["default"] = CollapsibleMotion$1;
162
162
  exports.version = version;
@@ -160,6 +160,6 @@ CollapsibleMotion.defaultProps = defaultProps;
160
160
  var CollapsibleMotion$1 = CollapsibleMotion;
161
161
 
162
162
  // NOTE: This string will be replaced on build time with the package version.
163
- var version = "19.9.0";
163
+ var version = "19.11.0";
164
164
 
165
165
  export { CollapsibleMotion$1 as default, version };
@@ -13,10 +13,28 @@ export type TRenderFunctionOptions = {
13
13
  registerContentNode: TNodeRefObject;
14
14
  };
15
15
  export type TCollapsibleMotionProps = {
16
+ /**
17
+ * A render function, called with the following named arguments: `isOpen` (boolean), `toggle` (function),
18
+ * `containerStyles` (css-in-js object), `registerContentNode` (React reference to be used on the animated container).
19
+ * <br/>
20
+ * Siganture: `({ isOpen, containerStyles, toggle, registerContentNode }) => React.node`
21
+ */
16
22
  children: (options: TRenderFunctionOptions) => ReactNode;
23
+ /**ReactNode
24
+ * Determines the state of the toggle `isOpen`. Setting this prop will make the component **controlled**
25
+ */
17
26
  isClosed?: boolean;
27
+ /**
28
+ * A callback function called when the `toggle` function is called. This prop is required when the component is **controlled**.
29
+ */
18
30
  onToggle?: () => void;
31
+ /**
32
+ * The minimal height of the container being animated.
33
+ */
19
34
  minHeight?: number;
35
+ /**
36
+ *The initial value to the internal toggle state `isOpen`.
37
+ */
20
38
  isDefaultClosed?: boolean;
21
39
  };
22
40
  type TNodeRefObject = {
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.9.0",
4
+ "version": "19.11.0",
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.9.0",
25
- "@commercetools-uikit/utils": "19.9.0",
24
+ "@commercetools-uikit/hooks": "19.11.0",
25
+ "@commercetools-uikit/utils": "19.11.0",
26
26
  "@emotion/react": "^11.10.5",
27
27
  "@emotion/styled": "^11.10.5",
28
28
  "lodash": "4.17.21",