@amboss/design-system 1.5.11 → 1.5.13
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/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/src/components/Column/Columns.d.ts +2 -1
- package/build/src/components/Notification/ExpandedContent.d.ts +2 -0
- package/build/src/components/Notification/Notification.d.ts +16 -0
- package/build/src/index.d.ts +1 -0
- package/build/src/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { MQ, HorizontalAlignment, SpaceSizes, VerticalAlignment, ColumnSizes, Order } from "../../types";
|
|
2
|
+
import { MQ, HorizontalAlignment, SpaceSizes, VerticalAlignment, ColumnSizes, ColumnAlignment, Order } from "../../types";
|
|
3
3
|
export declare type ColumnsProps = {
|
|
4
4
|
children: React.ReactNode[] | React.ReactNode;
|
|
5
5
|
/** represents the size of both horizontal and vertical gap between children, can be a single string or an array of 3 strings
|
|
@@ -28,6 +28,7 @@ export declare type ColumnProps = {
|
|
|
28
28
|
/** specify the visual positioning of the column. [small screen column order, medium screen column order, large screen column order] to apply different order for different screen sizes
|
|
29
29
|
*/
|
|
30
30
|
order?: Order | MQ<Order>;
|
|
31
|
+
alignSelf?: ColumnAlignment | MQ<ColumnAlignment>;
|
|
31
32
|
"data-e2e-test-id"?: string;
|
|
32
33
|
};
|
|
33
34
|
export declare const Column: import("@emotion/styled").StyledComponent<{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconName } from "../Icon/Icon";
|
|
3
|
+
export declare type NotificationProps = {
|
|
4
|
+
"data-e2e-test-id"?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
icon?: IconName;
|
|
7
|
+
isDismissable?: boolean;
|
|
8
|
+
callToActionLabel?: string;
|
|
9
|
+
expandButtonLabel?: string;
|
|
10
|
+
shrinkButtonLabel?: string;
|
|
11
|
+
expandable?: boolean;
|
|
12
|
+
onClickCallToAction?: (e: React.MouseEvent) => void;
|
|
13
|
+
onClickDismiss?: () => void;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export declare function Notification({ text, icon, isDismissable, callToActionLabel, onClickDismiss, onClickCallToAction, expandable, expandButtonLabel, shrinkButtonLabel, children, "data-e2e-test-id": dataE2eTestId, }: NotificationProps): React.ReactElement;
|
package/build/src/index.d.ts
CHANGED
|
@@ -37,3 +37,4 @@ export { Container } from "./components/Container/Container";
|
|
|
37
37
|
export { PasswordInput } from "./components/Form/PasswordInput/PasswordInput";
|
|
38
38
|
export { Collapsible, CollapsibleHeader, } from "./components/Collapsible/Collapsible";
|
|
39
39
|
export { RoundButton } from "./components/RoundButton/RoundButton";
|
|
40
|
+
export { Notification } from "./components/Notification/Notification";
|
|
@@ -13,6 +13,8 @@ export declare const SpaceSizesRuntype: Union<[Literal<"zero">, Literal<"xxs">,
|
|
|
13
13
|
export declare type SpaceSizes = Static<typeof SpaceSizesRuntype>;
|
|
14
14
|
export declare const ColumsSizesRuntype: Union<[Literal<1>, Literal<2>, Literal<3>, Literal<4>, Literal<5>, Literal<6>, Literal<7>, Literal<8>, Literal<9>, Literal<10>, Literal<11>, Literal<12>, Literal<"auto">, Literal<"narrow">, Literal<"fill">]>;
|
|
15
15
|
export declare type ColumnSizes = Static<typeof ColumsSizesRuntype>;
|
|
16
|
+
export declare const ColumnAlignmentRunType: Union<[Literal<"auto">, Literal<"start">, Literal<"center">, Literal<"end">]>;
|
|
17
|
+
export declare type ColumnAlignment = Static<typeof ColumnAlignmentRunType>;
|
|
16
18
|
export declare const OrderRuntype: Union<[Literal<"first">, Literal<"last">, Literal<"unset">]>;
|
|
17
19
|
export declare type Order = Static<typeof OrderRuntype>;
|
|
18
20
|
export declare const BaseVariationsRuntype: Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>;
|