@aizu-chat/react 0.0.5 → 0.0.6

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,13 +1,51 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
2
3
 
3
- interface ButtonProps {
4
- children: React.ReactNode;
5
- className?: string;
6
- onClick?: () => void;
7
- }
8
- declare function Button(props: ButtonProps): react_jsx_runtime.JSX.Element;
9
- declare namespace Button {
10
- var displayName: string;
4
+ declare const AizuChat: () => react_jsx_runtime.JSX.Element;
5
+
6
+ type ButtonProps = ComponentProps<"button">;
7
+ declare const Button: ({ children, className, onClick, ref, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
8
+
9
+ type LoadingProps = {
10
+ message?: string;
11
+ };
12
+ declare const Loading: ({ message }: LoadingProps) => react_jsx_runtime.JSX.Element;
13
+
14
+ declare enum MockResponseENUM {
15
+ CATEGORY_SMARTPHONE = "CATEGORY_SMARTPHONE",
16
+ CATEGORY_NOTEBOOK = "CATEGORY_NOTEBOOK",
17
+ QUICK_MENU_SHOP = "QUICK_MENU_SHOP",
18
+ ERROR = "ERROR",
19
+ CODE_CANT_USE = "CODE_CANT_USE",
20
+ BUDGET_INQUIRY = "BUDGET_INQUIRY",
21
+ PRODUCT_FOUND_LESS_10000 = "PRODUCT_FOUND_LESS_10000",
22
+ PRODUCT_FOUND_RANGE_10000_20000 = "PRODUCT_FOUND_RANGE_10000_20000",
23
+ PRODUCT_FOUND_RANGE_20000_30000 = "PRODUCT_FOUND_RANGE_20000_30000",
24
+ PRODUCT_FOUND_MORE_30000 = "PRODUCT_FOUND_MORE_30000",
25
+ SHIPPING_INFO = "SHIPPING_INFO",
26
+ PAYMENT_METHODS = "PAYMENT_METHODS",
27
+ WARRANTY_INFO = "WARRANTY_INFO",
28
+ RETURN_POLICY = "RETURN_POLICY",
29
+ PROMOTION_INFO = "PROMOTION_INFO",
30
+ STOCK_AVAILABLE = "STOCK_AVAILABLE",
31
+ OUT_OF_STOCK = "OUT_OF_STOCK",
32
+ SPEC_INQUIRY = "SPEC_INQUIRY"
11
33
  }
12
34
 
13
- export { Button, type ButtonProps };
35
+ type Menu = {
36
+ id: string;
37
+ title: string;
38
+ mockResponse: MockResponseENUM;
39
+ value?: string;
40
+ phoneNumber?: string;
41
+ imageUrl?: string;
42
+ };
43
+ type QuickMenusProps = {
44
+ bannerSrc?: string;
45
+ message?: string;
46
+ menus: Menu[];
47
+ handleClick: (menu: Menu) => Promise<void>;
48
+ };
49
+ declare const QuickMenus: ({ bannerSrc, message, menus, handleClick }: QuickMenusProps) => react_jsx_runtime.JSX.Element;
50
+
51
+ export { AizuChat, Button, type ButtonProps, Loading, type Menu, QuickMenus, type QuickMenusProps };
@@ -1,13 +1,51 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
2
3
 
3
- interface ButtonProps {
4
- children: React.ReactNode;
5
- className?: string;
6
- onClick?: () => void;
7
- }
8
- declare function Button(props: ButtonProps): react_jsx_runtime.JSX.Element;
9
- declare namespace Button {
10
- var displayName: string;
4
+ declare const AizuChat: () => react_jsx_runtime.JSX.Element;
5
+
6
+ type ButtonProps = ComponentProps<"button">;
7
+ declare const Button: ({ children, className, onClick, ref, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
8
+
9
+ type LoadingProps = {
10
+ message?: string;
11
+ };
12
+ declare const Loading: ({ message }: LoadingProps) => react_jsx_runtime.JSX.Element;
13
+
14
+ declare enum MockResponseENUM {
15
+ CATEGORY_SMARTPHONE = "CATEGORY_SMARTPHONE",
16
+ CATEGORY_NOTEBOOK = "CATEGORY_NOTEBOOK",
17
+ QUICK_MENU_SHOP = "QUICK_MENU_SHOP",
18
+ ERROR = "ERROR",
19
+ CODE_CANT_USE = "CODE_CANT_USE",
20
+ BUDGET_INQUIRY = "BUDGET_INQUIRY",
21
+ PRODUCT_FOUND_LESS_10000 = "PRODUCT_FOUND_LESS_10000",
22
+ PRODUCT_FOUND_RANGE_10000_20000 = "PRODUCT_FOUND_RANGE_10000_20000",
23
+ PRODUCT_FOUND_RANGE_20000_30000 = "PRODUCT_FOUND_RANGE_20000_30000",
24
+ PRODUCT_FOUND_MORE_30000 = "PRODUCT_FOUND_MORE_30000",
25
+ SHIPPING_INFO = "SHIPPING_INFO",
26
+ PAYMENT_METHODS = "PAYMENT_METHODS",
27
+ WARRANTY_INFO = "WARRANTY_INFO",
28
+ RETURN_POLICY = "RETURN_POLICY",
29
+ PROMOTION_INFO = "PROMOTION_INFO",
30
+ STOCK_AVAILABLE = "STOCK_AVAILABLE",
31
+ OUT_OF_STOCK = "OUT_OF_STOCK",
32
+ SPEC_INQUIRY = "SPEC_INQUIRY"
11
33
  }
12
34
 
13
- export { Button, type ButtonProps };
35
+ type Menu = {
36
+ id: string;
37
+ title: string;
38
+ mockResponse: MockResponseENUM;
39
+ value?: string;
40
+ phoneNumber?: string;
41
+ imageUrl?: string;
42
+ };
43
+ type QuickMenusProps = {
44
+ bannerSrc?: string;
45
+ message?: string;
46
+ menus: Menu[];
47
+ handleClick: (menu: Menu) => Promise<void>;
48
+ };
49
+ declare const QuickMenus: ({ bannerSrc, message, menus, handleClick }: QuickMenusProps) => react_jsx_runtime.JSX.Element;
50
+
51
+ export { AizuChat, Button, type ButtonProps, Loading, type Menu, QuickMenus, type QuickMenusProps };