@lax-wp/design-system 0.3.79 → 0.3.81

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.
@@ -1,31 +1,27 @@
1
+ import React from "react";
1
2
  /**
2
3
  * Available banner status options
3
4
  */
4
- export type BannerStatus = "success" | "error" | "warning" | "info" | "archived" | "canceled" | "queued" | "paused" | "awaiting_action" | "skipped" | "pending";
5
+ export type BannerStatus = "success" | "error" | "warning" | "info" | "infoGrey" | "archived" | "canceled" | "queued" | "paused" | "awaiting_action" | "skipped" | "pending";
5
6
  /**
6
7
  * Props for the Banner component
7
8
  */
8
9
  export interface BannerProps {
9
- /** The banner status/color variant */
10
- status: BannerStatus;
11
10
  /** The main content to display */
12
11
  children: React.ReactNode;
12
+ /** The banner status/color variant */
13
+ status: BannerStatus;
13
14
  /** Additional content to display on the right side */
14
15
  additionalChildren?: React.ReactNode;
15
- /** Component to render when expanded (for error status) */
16
+ /** Component to render when expanded (for error status). Receives executionId as prop. */
16
17
  ExpandedComponent?: React.ComponentType<{
17
- children: React.ReactNode;
18
+ executionId?: string;
19
+ children?: React.ReactNode;
18
20
  }>;
19
- /** Whether the banner is expandable */
20
- expandable?: boolean;
21
- /** Custom icon to override default status icon */
22
- icon?: React.ReactNode;
21
+ /** Execution ID to pass to the ExpandedComponent */
22
+ executionId?: string;
23
23
  /** Additional CSS classes for the wrapper */
24
24
  className?: string;
25
- /** Callback when banner is clicked (if expandable) */
26
- onClick?: () => void;
27
- /** Custom aria-label for accessibility */
28
- "aria-label"?: string;
29
25
  }
30
26
  /**
31
27
  * Banner component displays important information with status-based styling
@@ -33,9 +29,9 @@ export interface BannerProps {
33
29
  * @example
34
30
  * ```tsx
35
31
  * <Banner status="success">Operation completed successfully</Banner>
36
- * <Banner status="error" expandable ExpandedComponent={ErrorDetails}>
32
+ * <Banner status="error" ExpandedComponent={FlowErrorBanner} executionId="123">
37
33
  * Error occurred
38
34
  * </Banner>
39
35
  * ```
40
36
  */
41
- export declare const Banner: import("react").ForwardRefExoticComponent<BannerProps & import("react").RefAttributes<HTMLDivElement>>;
37
+ export declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ export interface ArchivedIconProps {
3
+ className?: string;
4
+ size?: string;
5
+ fill?: string;
6
+ }
7
+ export declare const ArchivedIcon: FC<ArchivedIconProps>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ export interface CheckCircleProps {
3
+ fill?: string;
4
+ size?: number;
5
+ className?: string;
6
+ }
7
+ export declare const CheckCircle: FC<CheckCircleProps>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ export interface InfoAlertProps {
3
+ fill?: string;
4
+ size?: number;
5
+ className?: string;
6
+ }
7
+ export declare const InfoAlert: FC<InfoAlertProps>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ export interface InfoCircleIconProps {
3
+ fill?: string;
4
+ size?: number;
5
+ className?: string;
6
+ }
7
+ export declare const InfoCircleIcon: FC<InfoCircleIconProps>;
package/dist/index.d.ts CHANGED
@@ -93,8 +93,16 @@ export { LaxIcon } from "./components/icons/LaxIcon";
93
93
  export { ComingSoonIcon } from "./components/icons/ComingSoonIcon";
94
94
  export { CheckSmallIcon } from "./components/icons/CheckSmallIcon";
95
95
  export { EditIcon } from "./components/icons/EditIcon";
96
+ export { CheckCircle } from "./components/icons/CheckCircle";
97
+ export { InfoAlert } from "./components/icons/InfoAlert";
98
+ export { ArchivedIcon } from "./components/icons/ArchivedIcon";
99
+ export { InfoCircleIcon } from "./components/icons/InfoCircleIcon";
96
100
  export type { IconProps } from "./components/icons/LaxIcon";
97
101
  export type { EditIconProps } from "./components/icons/EditIcon";
102
+ export type { CheckCircleProps } from "./components/icons/CheckCircle";
103
+ export type { InfoAlertProps } from "./components/icons/InfoAlert";
104
+ export type { ArchivedIconProps } from "./components/icons/ArchivedIcon";
105
+ export type { InfoCircleIconProps } from "./components/icons/InfoCircleIcon";
98
106
  export { AccessDeniedModal } from "./components/data-display/access-denied-modal/AccessDeniedModal";
99
107
  export type { AccessDeniedModalProps } from "./components/data-display/access-denied-modal/AccessDeniedModal";
100
108
  export { InProgress } from "./components/data-display/in-progress/InProgress";