rechtspilot-ui 1.2.0 → 1.2.2

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/index.d.ts CHANGED
@@ -23,7 +23,7 @@ declare type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
23
23
  children?: React.ReactNode;
24
24
  };
25
25
 
26
- declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive';
26
+ declare type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'destructiveSubtle';
27
27
 
28
28
  declare type ButtonVariant_2 = 'base' | 'primary' | 'outline';
29
29
 
@@ -69,6 +69,7 @@ export declare const colors: {
69
69
  accent: {
70
70
  action: string;
71
71
  error: string;
72
+ errorHover: string;
72
73
  warning: string;
73
74
  };
74
75
  base: string;
@@ -80,6 +81,7 @@ export declare const colors: {
80
81
  secondary: string;
81
82
  elevated: string;
82
83
  tertiary: string;
84
+ gradient: string;
83
85
  };
84
86
  sf: {
85
87
  primary: string;
@@ -126,6 +128,21 @@ declare type DatePickerProps = {
126
128
 
127
129
  export declare function Dialog({ open, toggleDialog, children, ...props }: DialogProps): JSX.Element;
128
130
 
131
+ export declare const DialogAlert: ForwardRefExoticComponent<DialogAlertProps & RefAttributes<HTMLDivElement>>;
132
+
133
+ declare type DialogAlertProps = {
134
+ title: string;
135
+ description?: string;
136
+ closeLabel: string;
137
+ onClose: () => void;
138
+ loading?: boolean;
139
+ confirm?: {
140
+ label: string;
141
+ onConfirm: () => void;
142
+ destructive?: boolean;
143
+ };
144
+ };
145
+
129
146
  export declare const DialogContent: ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & RefAttributes<HTMLDivElement>, "ref"> & DialogContentProps & RefAttributes<HTMLDivElement>>;
130
147
 
131
148
  declare type DialogContentProps = {
@@ -156,6 +173,14 @@ declare type DialogProps = {
156
173
  children?: React.ReactNode;
157
174
  };
158
175
 
176
+ export declare const DialogSuccess: ForwardRefExoticComponent<DialogSuccessProps & RefAttributes<HTMLDivElement>>;
177
+
178
+ declare type DialogSuccessProps = {
179
+ description: string;
180
+ actionLabel: string;
181
+ onAction: () => void;
182
+ };
183
+
159
184
  export declare function Divider({ ...props }: {
160
185
  [x: string]: any;
161
186
  }): JSX.Element;