@commercetools-uikit/collapsible-motion 15.13.2 → 15.14.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.
package/README.md CHANGED
@@ -68,7 +68,7 @@ export default Example;
68
68
  | Props | Type | Required | Default | Description |
69
69
  | ----------------- | ---------------------------------------------------- | :------: | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
70
70
  | `children` | `Function`<br/>[See signature.](#signature-children) | ✅ | | A render function, called with the following named arguments: `isOpen` (boolean), `toggle` (function),&#xA;`containerStyles` (css-in-js object), `registerContentNode` (React reference to be used on the animated container).&#xA;<br/>&#xA;Siganture: `({ isOpen, containerStyles, toggle, registerContentNode }) => React.node` |
71
- | `isClosed` | `boolean` | | | Determines the state of the toggle `isOpen`. Setting this prop will make the component **controlled** |
71
+ | `isClosed` | `boolean` | | | |
72
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
73
  | `minHeight` | `number` | | `0` | The minimal height of the container being animated. |
74
74
  | `isDefaultClosed` | `boolean` | | | The initial value to the internal toggle state `isOpen`. |
@@ -201,7 +201,7 @@ CollapsibleMotion.defaultProps = defaultProps;
201
201
  var CollapsibleMotion$1 = CollapsibleMotion;
202
202
 
203
203
  // NOTE: This string will be replaced on build time with the package version.
204
- var version = "15.13.2";
204
+ var version = "15.14.0";
205
205
 
206
206
  exports["default"] = CollapsibleMotion$1;
207
207
  exports.version = version;
@@ -180,7 +180,7 @@ CollapsibleMotion.defaultProps = defaultProps;
180
180
  var CollapsibleMotion$1 = CollapsibleMotion;
181
181
 
182
182
  // NOTE: This string will be replaced on build time with the package version.
183
- var version = "15.13.2";
183
+ var version = "15.14.0";
184
184
 
185
185
  exports["default"] = CollapsibleMotion$1;
186
186
  exports.version = version;
@@ -184,6 +184,6 @@ CollapsibleMotion.defaultProps = defaultProps;
184
184
  var CollapsibleMotion$1 = CollapsibleMotion;
185
185
 
186
186
  // NOTE: This string will be replaced on build time with the package version.
187
- var version = "15.13.2";
187
+ var version = "15.14.0";
188
188
 
189
189
  export { CollapsibleMotion$1 as default, version };
@@ -1,12 +1,12 @@
1
1
  import { ReactNode, CSSProperties, LegacyRef } from 'react';
2
- type TContainerStyles = {
2
+ export type TContainerStyles = {
3
3
  height?: string | number;
4
4
  overflow?: string;
5
5
  visibility?: string;
6
6
  name?: string;
7
7
  animation?: string;
8
8
  } & CSSProperties;
9
- type TRenderFunctionOptions = {
9
+ export type TRenderFunctionOptions = {
10
10
  isOpen: boolean;
11
11
  containerStyles: TContainerStyles;
12
12
  toggle: () => void;
@@ -0,0 +1,4 @@
1
+ import type { TCollapsibleMotionProps as CollapsibleMotionProps, TContainerStyles as ContainerStyles, TRenderFunctionOptions as RenderFunctionOptions } from './collapsible-motion';
2
+ export type TCollapsibleMotionProps = CollapsibleMotionProps;
3
+ export type TContainerStyles = ContainerStyles;
4
+ export type TRenderFunctionOptions = RenderFunctionOptions;
@@ -1,2 +1,3 @@
1
1
  export { default } from './collapsible-motion';
2
2
  export { default as version } from './version';
3
+ export * from './export-types';
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": "15.13.2",
4
+ "version": "15.14.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": "15.13.2",
25
- "@commercetools-uikit/utils": "15.13.2",
24
+ "@commercetools-uikit/hooks": "15.14.0",
25
+ "@commercetools-uikit/utils": "15.14.0",
26
26
  "@emotion/react": "^11.10.5",
27
27
  "@emotion/styled": "^11.10.5",
28
28
  "lodash": "4.17.21",