@stenajs-webui/panels 19.0.0-next.13 → 19.0.0-next.15
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/dist/components/collapsible/Collapsible.d.ts +3 -9
- package/dist/components/collapsible/CollapsibleGroupHeading.d.ts +2 -3
- package/dist/components/collapsible/CollapsibleList.d.ts +6 -0
- package/dist/components/notifications/Notification.d.ts +1 -0
- package/dist/components/notifications/NotificationHeader.d.ts +7 -2
- package/dist/components/notifications/NotificationList.d.ts +6 -0
- package/dist/components/notifications/UnreadDot.d.ts +6 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.es.js +455 -522
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/components/collapsible/CollapsibleClickableContent.d.ts +0 -6
- package/dist/components/collapsible/CollapsibleContent.d.ts +0 -7
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ClickableProps, DivProps } from "@stenajs-webui/core";
|
|
1
|
+
import { ButtonElementProps, DivProps } from "@stenajs-webui/core";
|
|
3
2
|
import * as React from "react";
|
|
4
|
-
export interface CollapsibleProps extends Omit<DivProps, "onClick"
|
|
3
|
+
export interface CollapsibleProps extends Omit<DivProps, "onClick"> {
|
|
5
4
|
label: string;
|
|
5
|
+
onClick?: ButtonElementProps["onClick"];
|
|
6
6
|
contentLeft?: React.ReactNode;
|
|
7
7
|
contentRight?: React.ReactNode;
|
|
8
8
|
collapsed?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
unmountOnCollapse?: boolean;
|
|
11
|
-
mountOnEnter?: boolean;
|
|
12
|
-
icon?: IconDefinition;
|
|
13
|
-
iconCollapsed?: IconDefinition;
|
|
14
|
-
iconSize?: number;
|
|
15
10
|
autoFocus?: boolean;
|
|
16
11
|
}
|
|
17
|
-
export declare const mapCSSTime: (value: string) => number;
|
|
18
12
|
export declare const Collapsible: React.ForwardRefExoticComponent<CollapsibleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DivProps } from "@stenajs-webui/core";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export interface CollapsibleGroupHeadingProps {
|
|
3
|
+
children: string;
|
|
5
4
|
}
|
|
6
5
|
export declare const CollapsibleGroupHeading: React.FC<CollapsibleGroupHeadingProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { NotificationHeaderProps } from "./NotificationHeader";
|
|
4
|
+
export declare type NotificationVariant = "standard" | "danger";
|
|
4
5
|
export interface NotificationProps extends NotificationHeaderProps {
|
|
5
6
|
children?: ReactNode;
|
|
6
7
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
import { CssPropColor } from "@stenajs-webui/theme";
|
|
4
|
+
import { NotificationVariant } from "./Notification";
|
|
3
5
|
export interface NotificationHeaderProps {
|
|
4
6
|
/** Text. */
|
|
5
7
|
text: string;
|
|
@@ -9,13 +11,16 @@ export interface NotificationHeaderProps {
|
|
|
9
11
|
icon?: IconDefinition;
|
|
10
12
|
/** Icon description for accessibility. */
|
|
11
13
|
iconAriaLabel?: string;
|
|
12
|
-
/** Icon colour. */
|
|
13
|
-
iconColor?: string;
|
|
14
14
|
/** Left content instead of icon. */
|
|
15
15
|
contentLeft?: React.ReactNode;
|
|
16
16
|
/** Right content. */
|
|
17
17
|
contentRight?: React.ReactNode;
|
|
18
18
|
/** What happens on clicking close. */
|
|
19
19
|
onClose?: () => void;
|
|
20
|
+
/** Mark the notification as unread */
|
|
21
|
+
unread?: boolean;
|
|
22
|
+
/** Notification variant. Will affect icon bg color */
|
|
23
|
+
variant: NotificationVariant;
|
|
20
24
|
}
|
|
21
25
|
export declare const NotificationHeader: React.FC<NotificationHeaderProps>;
|
|
26
|
+
export declare const getIconBgColor: (unread: boolean, variant: NotificationVariant) => CssPropColor | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,11 +10,13 @@ export * from "./components/nav-bar/NavBarNotificationButton";
|
|
|
10
10
|
export * from "./components/nav-bar/NavBarSearchField";
|
|
11
11
|
export * from "./components/nav-bar/NavBarUserButton";
|
|
12
12
|
export * from "./components/notifications/Notification";
|
|
13
|
+
export * from "./components/notifications/NotificationHeader";
|
|
14
|
+
export * from "./components/notifications/NotificationList";
|
|
15
|
+
export * from "./components/notifications/UnreadDot";
|
|
13
16
|
export * from "./components/notifications/Toast";
|
|
14
17
|
export * from "./components/collapsible/Collapsible";
|
|
18
|
+
export * from "./components/collapsible/CollapsibleList";
|
|
15
19
|
export * from "./components/collapsible/CollapsibleWithCheckbox";
|
|
16
|
-
export * from "./components/collapsible/CollapsibleContent";
|
|
17
|
-
export * from "./components/collapsible/CollapsibleClickableContent";
|
|
18
20
|
export * from "./components/collapsible/CollapsibleGroupHeading";
|
|
19
21
|
export * from "./components/collapsible/CollapsibleEmptyContent";
|
|
20
22
|
export * from "./components/error-panel/ErrorPanel";
|