@yamada-ui/notice 0.5.4 → 0.5.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.
@@ -1,7 +1,7 @@
1
1
  import { ThemeConfig } from '@yamada-ui/core';
2
2
  import { FC } from 'react';
3
3
 
4
- type NoticeProviderProps = Omit<Required<ThemeConfig>['notice'], 'options'>;
4
+ type NoticeProviderProps = Omit<Required<ThemeConfig>["notice"], "options">;
5
5
  declare const NoticeProvider: FC<NoticeProviderProps>;
6
6
 
7
7
  export { NoticeProvider, NoticeProviderProps };
@@ -1,7 +1,7 @@
1
1
  import { ThemeConfig } from '@yamada-ui/core';
2
2
  import { FC } from 'react';
3
3
 
4
- type NoticeProviderProps = Omit<Required<ThemeConfig>['notice'], 'options'>;
4
+ type NoticeProviderProps = Omit<Required<ThemeConfig>["notice"], "options">;
5
5
  declare const NoticeProvider: FC<NoticeProviderProps>;
6
6
 
7
7
  export { NoticeProvider, NoticeProviderProps };
package/dist/notice.d.mts CHANGED
@@ -6,8 +6,8 @@ type UseNoticeOptions = NoticeConfigOptions;
6
6
  type NoticeOptions = {
7
7
  id: string | number;
8
8
  placement: NoticePlacement;
9
- duration: UseNoticeOptions['duration'];
10
- status: UseNoticeOptions['status'];
9
+ duration: UseNoticeOptions["duration"];
10
+ status: UseNoticeOptions["status"];
11
11
  message: (props: NoticeComponentProps) => ReactNode;
12
12
  isDelete?: boolean;
13
13
  onDelete: () => void;
@@ -16,7 +16,7 @@ type NoticeOptions = {
16
16
  };
17
17
  declare const createNoticeFunc: (defaultOptions: UseNoticeOptions, theme: StyledTheme) => {
18
18
  (options?: UseNoticeOptions): string | number;
19
- update(id: string | number, options: Omit<UseNoticeOptions, 'id'>): void;
19
+ update(id: string | number, options: Omit<UseNoticeOptions, "id">): void;
20
20
  closeAll: (options?: {
21
21
  placement?: NoticePlacement[];
22
22
  }) => void;
@@ -36,7 +36,7 @@ type Store = {
36
36
  closeAll: (options?: {
37
37
  placement?: NoticePlacement[];
38
38
  }) => void;
39
- update: (id: string | number, options: Omit<UseNoticeOptions, 'id'>) => void;
39
+ update: (id: string | number, options: Omit<UseNoticeOptions, "id">) => void;
40
40
  remove: (id: string | number, placement: NoticePlacement) => void;
41
41
  isActive: (id: string | number) => boolean;
42
42
  };
package/dist/notice.d.ts CHANGED
@@ -6,8 +6,8 @@ type UseNoticeOptions = NoticeConfigOptions;
6
6
  type NoticeOptions = {
7
7
  id: string | number;
8
8
  placement: NoticePlacement;
9
- duration: UseNoticeOptions['duration'];
10
- status: UseNoticeOptions['status'];
9
+ duration: UseNoticeOptions["duration"];
10
+ status: UseNoticeOptions["status"];
11
11
  message: (props: NoticeComponentProps) => ReactNode;
12
12
  isDelete?: boolean;
13
13
  onDelete: () => void;
@@ -16,7 +16,7 @@ type NoticeOptions = {
16
16
  };
17
17
  declare const createNoticeFunc: (defaultOptions: UseNoticeOptions, theme: StyledTheme) => {
18
18
  (options?: UseNoticeOptions): string | number;
19
- update(id: string | number, options: Omit<UseNoticeOptions, 'id'>): void;
19
+ update(id: string | number, options: Omit<UseNoticeOptions, "id">): void;
20
20
  closeAll: (options?: {
21
21
  placement?: NoticePlacement[];
22
22
  }) => void;
@@ -36,7 +36,7 @@ type Store = {
36
36
  closeAll: (options?: {
37
37
  placement?: NoticePlacement[];
38
38
  }) => void;
39
- update: (id: string | number, options: Omit<UseNoticeOptions, 'id'>) => void;
39
+ update: (id: string | number, options: Omit<UseNoticeOptions, "id">) => void;
40
40
  remove: (id: string | number, placement: NoticePlacement) => void;
41
41
  isActive: (id: string | number) => boolean;
42
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/notice",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Yamada UI notice component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,11 +35,11 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.12.5",
39
- "@yamada-ui/close-button": "0.3.15",
40
- "@yamada-ui/alert": "0.5.10",
38
+ "@yamada-ui/core": "0.12.6",
39
+ "@yamada-ui/close-button": "0.3.16",
40
+ "@yamada-ui/alert": "0.5.11",
41
41
  "@yamada-ui/portal": "0.3.6",
42
- "@yamada-ui/motion": "0.4.15",
42
+ "@yamada-ui/motion": "0.4.16",
43
43
  "@yamada-ui/use-timeout": "0.2.5",
44
44
  "@yamada-ui/utils": "0.3.3"
45
45
  },