@stenajs-webui/elements 19.0.4 → 19.0.5

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.
@@ -3,7 +3,7 @@ import { CssPropColor } from "@stenajs-webui/theme";
3
3
  import { IconProps } from "./Icon";
4
4
  import { MediumIcon, XlIcon } from "../../../icons/IconSizes";
5
5
  export declare type CircledIconSizeVariant = CircledIconSizeStandardVariant | CircledIconSizeXlVariant;
6
- export declare type CircledIconSizeStandardVariant = "medium" | "small";
6
+ export declare type CircledIconSizeStandardVariant = "medium" | "small" | "large";
7
7
  export declare type CircledIconSizeXlVariant = "xl";
8
8
  export declare type CircledIconVariant = "normal" | "whiteBg";
9
9
  export declare type CircledIconProps = CircledIconNormalProps | CircledIconXlProps;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { PropsWithChildren, ReactNode } from "react";
3
+ import { MediumIcon } from "../../../icons/IconSizes";
4
+ export interface AlertInfoModalProps extends PropsWithChildren {
5
+ heading: string;
6
+ text?: string;
7
+ buttons?: ReactNode;
8
+ icon?: MediumIcon;
9
+ onRequestClose?: () => void;
10
+ maxWidth?: string;
11
+ }
12
+ export declare const InfoAlert: React.FC<AlertInfoModalProps>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface ModalActionButtonsProps {
4
+ buttons: ReactNode;
5
+ }
6
+ export declare const ModalActionButtons: React.FC<ModalActionButtonsProps>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import { BoxProps } from "@stenajs-webui/core";
3
+ export interface ModalBodyProps extends Omit<BoxProps, "indent" | "spacing"> {
4
+ }
5
+ export declare const ModalBody: React.FC<ModalBodyProps>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export interface ModalHeaderProps {
3
+ heading?: string;
4
+ onClickClose?: () => void;
5
+ }
6
+ export declare const ModalHeader: React.FC<ModalHeaderProps>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ export interface ModalHeadingProps {
3
+ children: string;
4
+ }
5
+ export declare const ModalHeading: React.FC<ModalHeadingProps>;
package/dist/index.d.ts CHANGED
@@ -63,7 +63,12 @@ export * from "./components/ui/route-leg/RouteLeg";
63
63
  export * from "./components/ui/route-leg/TimeTag";
64
64
  export * from "./components/ui/dialog/UseDialog";
65
65
  export * from "./components/ui/dialog/UseDialogPromise";
66
+ export * from "./components/ui/dialog/DialogCommands";
66
67
  export * from "./components/ui/dialog/alert/UseAlertDialog";
67
68
  export * from "./components/ui/dialog/drawer/UseDrawerDialog";
68
69
  export * from "./components/ui/dialog/modal/UseModalDialog";
70
+ export * from "./components/ui/modal-types/InfoAlert";
71
+ export * from "./components/ui/modal-types/parts/ModalHeader";
72
+ export * from "./components/ui/modal-types/parts/ModalActionButtons";
73
+ export * from "./components/ui/modal-types/parts/ModalHeading";
69
74
  export * from "./components/ui/shimmer-box/ShimmerBox";