kitzo 2.2.13 → 2.2.14

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.
@@ -16,15 +16,8 @@ type ToastOptions = {
16
16
  showIcon?: boolean;
17
17
  };
18
18
 
19
- type ToastOptionsWithoutId = Omit<ToastOptions, 'id'>;
20
-
21
- type ToasterProps = {
22
- position?: Positions;
23
- richColors?: boolean;
24
- gap?: number | `${number}`;
25
- edgeOffset?: number | `${number}px` | `${number}rem` | `${number}%`;
26
- isDark?: boolean;
27
- };
19
+ type UpdateToastOptions = Omit<ToastOptions, 'id'>;
20
+ type CustomToastOptions = Omit<ToastOptions, 'showIcon'>;
28
21
 
29
22
  type Content = ReactNode | ((dismiss?: () => void) => ReactNode);
30
23
 
@@ -42,15 +35,24 @@ type Toast = {
42
35
  },
43
36
  options?: ToastOptions,
44
37
  ): void;
45
- custom(content: Content, options?: Omit<ToastOptions, 'showIcon'>): void;
38
+ custom(content: Content, options?: CustomToastOptions): void;
46
39
 
47
40
  update(
48
41
  id: string | number,
49
42
  content: Content,
50
- options?: ToastOptionsWithoutId,
43
+ options?: UpdateToastOptions,
51
44
  ): void;
52
45
  dismiss(id?: string | number): void;
53
46
  };
54
47
 
55
48
  export declare const toast: Toast;
49
+
50
+ type ToasterProps = {
51
+ position?: Positions;
52
+ richColors?: boolean;
53
+ gap?: number | `${number}`;
54
+ edgeOffset?: number | `${number}px` | `${number}rem` | `${number}%`;
55
+ isDark?: boolean;
56
+ };
57
+
56
58
  export declare function Toaster(props: ToasterProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitzo",
3
- "version": "2.2.13",
3
+ "version": "2.2.14",
4
4
  "description": "A lightweight React micro-utility.",
5
5
  "type": "module",
6
6
  "sideEffects": false,