@amboss/design-system 1.2.3 → 1.2.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
@@ -1,3 +1,25 @@
1
+ # v1.2.4 (Wed Apr 13 2022)
2
+
3
+ ### Release Notes
4
+
5
+ #### [SRCH-1413] Create `<Collapsible/>` Component in AMBOSS Design System ([#457](https://github.com/amboss-mededu/amboss-design-system/pull/457))
6
+
7
+ Put your release notes here
8
+
9
+ ---
10
+
11
+ #### 🐛 Bug Fix
12
+
13
+ - [SRCH-1413] Create `<Collapsible/>` Component in AMBOSS Design System [#457](https://github.com/amboss-mededu/amboss-design-system/pull/457) (anm@amboss.com [@Hadh](https://github.com/Hadh) [@anitamikas](https://github.com/anitamikas))
14
+
15
+ #### Authors: 3
16
+
17
+ - [@anitamikas](https://github.com/anitamikas)
18
+ - Anita (anm@amboss.com)
19
+ - Hadhemi Laouini ([@Hadh](https://github.com/Hadh))
20
+
21
+ ---
22
+
1
23
  # v1.2.3 (Tue Apr 12 2022)
2
24
 
3
25
  ### Release Notes
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ declare type CollapsibleProps = {
3
+ header: string;
4
+ /** always visible header */
5
+ children?: React.ReactElement | React.ReactNode[];
6
+ /** content visible after spreading the component */
7
+ isExpanded: boolean | undefined;
8
+ onClick?: (e: React.FormEvent<HTMLButtonElement>) => void;
9
+ };
10
+ export declare const CollapsibleContainer: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme;
12
+ as?: React.ElementType<any>;
13
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme;
16
+ as?: React.ElementType<any>;
17
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare function Collapsible({ header, isExpanded, onClick, children, }: CollapsibleProps): React.ReactElement;
19
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amboss/design-system",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "the design system for AMBOSS products",
5
5
  "author": "Bagrat Gobedashvili",
6
6
  "license": "ISC",