@daeryun/dr_components 0.7.87 → 0.7.89

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.
Files changed (54) hide show
  1. package/dist/components/Daeryuntalk/ChatButton.jsx +3 -1
  2. package/dist/components/Daeryuntalk/ChatButton.tsx +3 -1
  3. package/dist/components/Daeryuntalk/ChatConversation.jsx +23 -5
  4. package/dist/components/Daeryuntalk/ChatConversation.tsx +27 -5
  5. package/dist/components/Daeryuntalk/ChatHomeView.jsx +28 -11
  6. package/dist/components/Daeryuntalk/ChatHomeView.tsx +34 -9
  7. package/dist/components/Daeryuntalk/ChatInput.tsx +1 -1
  8. package/dist/components/Daeryuntalk/ChatWidget.jsx +5 -2
  9. package/dist/components/Daeryuntalk/ChatWidget.tsx +5 -2
  10. package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +21 -3
  11. package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +32 -11
  12. package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +69 -23
  13. package/dist/components/Daeryuntalk/History/AuthForm.d.ts +8 -0
  14. package/dist/components/Daeryuntalk/History/AuthForm.jsx +149 -0
  15. package/dist/components/Daeryuntalk/History/AuthForm.tsx +196 -0
  16. package/dist/components/Daeryuntalk/HistoryView.d.ts +6 -0
  17. package/dist/components/Daeryuntalk/HistoryView.jsx +55 -35
  18. package/dist/components/Daeryuntalk/HistoryView.tsx +86 -47
  19. package/dist/components/Daeryuntalk/Tiptap/Tiptap.jsx +9 -1
  20. package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +10 -1
  21. package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.d.ts +12 -0
  22. package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.jsx +33 -0
  23. package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.tsx +67 -0
  24. package/dist/components/Daeryuntalk/Toast/Toast.d.ts +11 -0
  25. package/dist/components/Daeryuntalk/Toast/Toast.jsx +61 -0
  26. package/dist/components/Daeryuntalk/Toast/Toast.tsx +94 -0
  27. package/dist/components/Daeryuntalk/Viewer/ImageViewer.jsx +1 -1
  28. package/dist/components/Daeryuntalk/Viewer/ImageViewer.tsx +1 -1
  29. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.d.ts +29 -1
  30. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +98 -7
  31. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +136 -8
  32. package/dist/components/Daeryuntalk/_api/daeryuntalk/type/response.d.ts +13 -0
  33. package/dist/components/Daeryuntalk/_api/daeryuntalk/type/response.ts +17 -0
  34. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.d.ts +3 -2
  35. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.js +76 -8
  36. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.ts +88 -12
  37. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.d.ts +24 -0
  38. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.js +75 -0
  39. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.ts +90 -0
  40. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.d.ts +1 -0
  41. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +12 -2
  42. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +16 -2
  43. package/dist/components/Daeryuntalk/_lib/utils.d.ts +10 -0
  44. package/dist/components/Daeryuntalk/_lib/utils.js +25 -0
  45. package/dist/components/Daeryuntalk/_lib/utils.ts +39 -0
  46. package/dist/components/Daeryuntalk/_ui/buttons/Button2.d.ts +10 -0
  47. package/dist/components/Daeryuntalk/_ui/buttons/Button2.jsx +12 -0
  48. package/dist/components/Daeryuntalk/_ui/buttons/Button2.tsx +28 -0
  49. package/dist/components/Daeryuntalk/_ui/inputs/Input2.d.ts +13 -0
  50. package/dist/components/Daeryuntalk/_ui/inputs/Input2.jsx +9 -0
  51. package/dist/components/Daeryuntalk/_ui/inputs/Input2.tsx +42 -0
  52. package/dist/styles/globals.css +65 -0
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +1 -1
@@ -0,0 +1,75 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useCallback } from 'react';
11
+ import { DEFAULT_API_VERSION, getHistoryList, historyPhoneAuth, requestPhone } from '../../_api';
12
+ export const useHistoryHandler = ({ setLoading, setIsAuthenticated, setHistoryList }) => {
13
+ const goRequestPhone = useCallback((_a) => __awaiter(void 0, [_a], void 0, function* ({ name, cellPhoneNumber, version = DEFAULT_API_VERSION }) {
14
+ const consoleName = '점유 인증 번호 요청';
15
+ setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
16
+ if (!name)
17
+ throw new Error('이름이 없습니다.');
18
+ if (!cellPhoneNumber)
19
+ throw new Error('번호가 없습니다.');
20
+ try {
21
+ return yield requestPhone({ name, cellPhoneNumber, version });
22
+ }
23
+ catch (error) {
24
+ console.error(`[${consoleName} 실패]:`, error);
25
+ }
26
+ finally {
27
+ setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
28
+ }
29
+ }), []);
30
+ const goHistoryPhoneAuth = useCallback((_a) => __awaiter(void 0, [_a], void 0, function* ({ name, cellPhoneNumber, certificationNumber, version = DEFAULT_API_VERSION }) {
31
+ const consoleName = '점유 인증 번호 검증';
32
+ setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
33
+ if (!name)
34
+ throw new Error('이름이 없습니다.');
35
+ if (!cellPhoneNumber)
36
+ throw new Error('번호가 없습니다.');
37
+ if (!certificationNumber)
38
+ throw new Error('인증번호가 없습니다.');
39
+ try {
40
+ return yield historyPhoneAuth({ name, cellPhoneNumber, certificationNumber, version });
41
+ }
42
+ catch (error) {
43
+ console.error(`[${consoleName} 실패]:`, error);
44
+ }
45
+ finally {
46
+ setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
47
+ }
48
+ }), []);
49
+ const goGetHistoryList = useCallback((_a) => __awaiter(void 0, [_a], void 0, function* ({ version = DEFAULT_API_VERSION }) {
50
+ var _b;
51
+ const consoleName = '인증 이력 조회';
52
+ setLoading === null || setLoading === void 0 ? void 0 : setLoading(true);
53
+ try {
54
+ const res = yield getHistoryList({ version });
55
+ if (res.result_info.result_type_cd === '401') {
56
+ setIsAuthenticated === null || setIsAuthenticated === void 0 ? void 0 : setIsAuthenticated(false);
57
+ }
58
+ else {
59
+ setHistoryList === null || setHistoryList === void 0 ? void 0 : setHistoryList((_b = res.data.chat_inquiry_list) !== null && _b !== void 0 ? _b : []);
60
+ setIsAuthenticated === null || setIsAuthenticated === void 0 ? void 0 : setIsAuthenticated(true);
61
+ }
62
+ }
63
+ catch (error) {
64
+ console.error(`[${consoleName} 실패]:`, error);
65
+ }
66
+ finally {
67
+ setLoading === null || setLoading === void 0 ? void 0 : setLoading(false);
68
+ }
69
+ }), []);
70
+ return {
71
+ goRequestPhone,
72
+ goHistoryPhoneAuth,
73
+ goGetHistoryList
74
+ };
75
+ };
@@ -0,0 +1,90 @@
1
+ import { Dispatch, SetStateAction, useCallback } from 'react';
2
+ import { DEFAULT_API_VERSION, getHistoryList, historyPhoneAuth, requestPhone } from '../../_api';
3
+ import { History } from '../../_api/daeryuntalk/type/response';
4
+
5
+ interface props {
6
+ setLoading?: (loading: boolean) => void;
7
+ setIsAuthenticated?: Dispatch<SetStateAction<boolean>>;
8
+ setHistoryList?: Dispatch<SetStateAction<History[]>>;
9
+ }
10
+
11
+ export const useHistoryHandler = ({ setLoading, setIsAuthenticated, setHistoryList }: props) => {
12
+ const goRequestPhone = useCallback(
13
+ async ({
14
+ name,
15
+ cellPhoneNumber,
16
+ version = DEFAULT_API_VERSION
17
+ }: {
18
+ name: string;
19
+ cellPhoneNumber: string;
20
+ version?: string;
21
+ }) => {
22
+ const consoleName = '점유 인증 번호 요청';
23
+ setLoading?.(true);
24
+ if (!name) throw new Error('이름이 없습니다.');
25
+ if (!cellPhoneNumber) throw new Error('번호가 없습니다.');
26
+
27
+ try {
28
+ return await requestPhone({ name, cellPhoneNumber, version });
29
+ } catch (error) {
30
+ console.error(`[${consoleName} 실패]:`, error);
31
+ } finally {
32
+ setLoading?.(false);
33
+ }
34
+ },
35
+ []
36
+ );
37
+
38
+ const goHistoryPhoneAuth = useCallback(
39
+ async ({
40
+ name,
41
+ cellPhoneNumber,
42
+ certificationNumber,
43
+ version = DEFAULT_API_VERSION
44
+ }: {
45
+ name: string;
46
+ cellPhoneNumber: string;
47
+ certificationNumber: string;
48
+ version?: string;
49
+ }) => {
50
+ const consoleName = '점유 인증 번호 검증';
51
+ setLoading?.(true);
52
+ if (!name) throw new Error('이름이 없습니다.');
53
+ if (!cellPhoneNumber) throw new Error('번호가 없습니다.');
54
+ if (!certificationNumber) throw new Error('인증번호가 없습니다.');
55
+
56
+ try {
57
+ return await historyPhoneAuth({ name, cellPhoneNumber, certificationNumber, version });
58
+ } catch (error) {
59
+ console.error(`[${consoleName} 실패]:`, error);
60
+ } finally {
61
+ setLoading?.(false);
62
+ }
63
+ },
64
+ []
65
+ );
66
+
67
+ const goGetHistoryList = useCallback(async ({ version = DEFAULT_API_VERSION }: { version?: string }) => {
68
+ const consoleName = '인증 이력 조회';
69
+ setLoading?.(true);
70
+ try {
71
+ const res = await getHistoryList({ version });
72
+ if (res.result_info.result_type_cd === '401') {
73
+ setIsAuthenticated?.(false);
74
+ } else {
75
+ setHistoryList?.(res.data.chat_inquiry_list ?? []);
76
+ setIsAuthenticated?.(true);
77
+ }
78
+ } catch (error) {
79
+ console.error(`[${consoleName} 실패]:`, error);
80
+ } finally {
81
+ setLoading?.(false);
82
+ }
83
+ }, []);
84
+
85
+ return {
86
+ goRequestPhone,
87
+ goHistoryPhoneAuth,
88
+ goGetHistoryList
89
+ };
90
+ };
@@ -17,5 +17,6 @@ export declare const useSocketEventHandler: ({ setIsConnected, setIsLoading, set
17
17
  sendInquiryJoined: (chatInquiryNumber: string) => void;
18
18
  sendInquiryLeft: (chatInquiryNumber: string) => void;
19
19
  sendHistoryEntered: (chatInquiryNumbers: string[]) => void;
20
+ sendHistoryLeft: (chatInquiryNumbers: string[]) => void;
20
21
  };
21
22
  export {};
@@ -104,6 +104,16 @@ export const useSocketEventHandler = ({ setIsConnected, setIsLoading, setMessage
104
104
  console.log('[WebSocket] history.entered 전송');
105
105
  }
106
106
  }, []);
107
+ const sendHistoryLeft = useCallback((chatInquiryNumbers) => {
108
+ const socket = socketRef.current;
109
+ if (socket && socket.readyState === WebSocket.OPEN) {
110
+ socket.send(JSON.stringify({
111
+ type: 'history.exited',
112
+ payload: { chat_inquiry_numbers: chatInquiryNumbers }
113
+ }));
114
+ console.log('[WebSocket] history.exited 전송');
115
+ }
116
+ }, []);
107
117
  // Daeryuntalk API 초기화 메소드
108
118
  const initializeDaeryuntalk = useCallback((version) => __awaiter(void 0, void 0, void 0, function* () {
109
119
  console.log('[DaeryuntalkContext] 초기화 메소드 호출됨', version ? `버전: ${version}` : '기본 버전 사용');
@@ -128,7 +138,6 @@ export const useSocketEventHandler = ({ setIsConnected, setIsLoading, setMessage
128
138
  return isDuplicate ? prev : [...prev, newMessage];
129
139
  });
130
140
  }
131
- // 수정 기능 있었나??
132
141
  if (data.type === MessageSocketType.MESSAGE_UPDATED) {
133
142
  const newMessage = convertApiMessageToUiMessage(data.payload.message);
134
143
  setMessages(prev => {
@@ -203,6 +212,7 @@ export const useSocketEventHandler = ({ setIsConnected, setIsLoading, setMessage
203
212
  sendHeartbeat,
204
213
  sendInquiryJoined,
205
214
  sendInquiryLeft,
206
- sendHistoryEntered
215
+ sendHistoryEntered,
216
+ sendHistoryLeft
207
217
  };
208
218
  };
@@ -130,6 +130,19 @@ export const useSocketEventHandler = ({
130
130
  }
131
131
  }, []);
132
132
 
133
+ const sendHistoryLeft = useCallback((chatInquiryNumbers: string[]) => {
134
+ const socket = socketRef.current;
135
+ if (socket && socket.readyState === WebSocket.OPEN) {
136
+ socket.send(
137
+ JSON.stringify({
138
+ type: 'history.exited',
139
+ payload: { chat_inquiry_numbers: chatInquiryNumbers }
140
+ })
141
+ );
142
+ console.log('[WebSocket] history.exited 전송');
143
+ }
144
+ }, []);
145
+
133
146
  // Daeryuntalk API 초기화 메소드
134
147
  const initializeDaeryuntalk = useCallback(async (version?: string) => {
135
148
  console.log('[DaeryuntalkContext] 초기화 메소드 호출됨', version ? `버전: ${version}` : '기본 버전 사용');
@@ -156,7 +169,7 @@ export const useSocketEventHandler = ({
156
169
  return isDuplicate ? prev : [...prev, newMessage];
157
170
  });
158
171
  }
159
- // 수정 기능 있었나??
172
+
160
173
  if (data.type === MessageSocketType.MESSAGE_UPDATED) {
161
174
  const newMessage = convertApiMessageToUiMessage(data.payload.message);
162
175
  setMessages(prev => {
@@ -241,6 +254,7 @@ export const useSocketEventHandler = ({
241
254
  sendHeartbeat,
242
255
  sendInquiryJoined,
243
256
  sendInquiryLeft,
244
- sendHistoryEntered
257
+ sendHistoryEntered,
258
+ sendHistoryLeft
245
259
  };
246
260
  };
@@ -1,2 +1,12 @@
1
1
  export declare const formatFileSize: (size: number) => string;
2
2
  export declare const formatDateToKorean: (timestamp: string) => string;
3
+ export declare const onlyNumbers: (phoneNumber: string) => string;
4
+ export declare const phoneCheck: (value: string) => {
5
+ phoneNumber: string;
6
+ isValid: boolean;
7
+ };
8
+ export declare const nameFilter: (value: string) => {
9
+ name: string;
10
+ isValid: boolean;
11
+ };
12
+ export declare const formatSecondsToMMSS: (seconds: number) => string;
@@ -14,3 +14,28 @@ export const formatDateToKorean = (timestamp) => {
14
14
  const minute = date.getMinutes().toString().padStart(2, '0');
15
15
  return `${year}년 ${month}월 ${day}일 ${hour}:${minute}`;
16
16
  };
17
+ export const onlyNumbers = (phoneNumber) => {
18
+ return phoneNumber.replace(/\D/g, '');
19
+ };
20
+ export const phoneCheck = (value) => {
21
+ const phoneNumber = onlyNumbers(value);
22
+ // 10자리 또는 11자리만 통과
23
+ const isValid = /^010\d{7,8}$/.test(phoneNumber);
24
+ return { phoneNumber, isValid };
25
+ };
26
+ const keepOnlyKoreanCharacters = (text) => {
27
+ // 한글(자음, 모음, 결합된 문자)을 제외한 모든 문자를 제거하는 정규식
28
+ return text.replace(/[^\u3131-\u318E\uAC00-\uD7A3]+/g, '') || '';
29
+ };
30
+ export const nameFilter = (value) => {
31
+ const nameRegex = /^[가-힣]*$/;
32
+ const ko = keepOnlyKoreanCharacters(value);
33
+ return { name: ko, isValid: ko !== '' && ko.length >= 2 && ko.length <= 6 && nameRegex.test(ko) };
34
+ };
35
+ export const formatSecondsToMMSS = (seconds) => {
36
+ const min = Math.floor(seconds / 60);
37
+ const sec = seconds % 60;
38
+ const paddedMin = String(min).padStart(2, '0');
39
+ const paddedSec = String(sec).padStart(2, '0');
40
+ return `${paddedMin}:${paddedSec}`;
41
+ };
@@ -15,3 +15,42 @@ export const formatDateToKorean = (timestamp: string) => {
15
15
 
16
16
  return `${year}년 ${month}월 ${day}일 ${hour}:${minute}`;
17
17
  };
18
+
19
+ export const onlyNumbers = (phoneNumber: string): string => {
20
+ return phoneNumber.replace(/\D/g, '');
21
+ };
22
+
23
+ export const phoneCheck = (
24
+ value: string
25
+ ): {
26
+ phoneNumber: string;
27
+ isValid: boolean;
28
+ } => {
29
+ const phoneNumber = onlyNumbers(value);
30
+ // 10자리 또는 11자리만 통과
31
+ const isValid = /^010\d{7,8}$/.test(phoneNumber);
32
+ return { phoneNumber, isValid };
33
+ };
34
+
35
+ const keepOnlyKoreanCharacters = (text: string) => {
36
+ // 한글(자음, 모음, 결합된 문자)을 제외한 모든 문자를 제거하는 정규식
37
+ return text.replace(/[^\u3131-\u318E\uAC00-\uD7A3]+/g, '') || '';
38
+ };
39
+
40
+ export const nameFilter = (value: string): { name: string; isValid: boolean } => {
41
+ const nameRegex = /^[가-힣]*$/;
42
+
43
+ const ko = keepOnlyKoreanCharacters(value);
44
+
45
+ return { name: ko, isValid: ko !== '' && ko.length >= 2 && ko.length <= 6 && nameRegex.test(ko) };
46
+ };
47
+
48
+ export const formatSecondsToMMSS = (seconds: number): string => {
49
+ const min = Math.floor(seconds / 60);
50
+ const sec = seconds % 60;
51
+
52
+ const paddedMin = String(min).padStart(2, '0');
53
+ const paddedSec = String(sec).padStart(2, '0');
54
+
55
+ return `${paddedMin}:${paddedSec}`;
56
+ };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface Button2Props {
3
+ onClick?: () => void | Promise<void>;
4
+ type?: 'button' | 'submit' | 'reset';
5
+ className?: string;
6
+ children: React.ReactNode;
7
+ isDisabled?: boolean;
8
+ }
9
+ declare const Button2: ({ onClick, type, className, children, isDisabled }: Button2Props) => React.JSX.Element;
10
+ export default Button2;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ const Button2 = ({ onClick, type = 'button', className = '', children, isDisabled = false }) => {
3
+ return (<button disabled={isDisabled} type={type} onClick={onClick} className={`
4
+ h-[40px] rounded-[6px] bg-[#AA1D36] text-center text-[12px]
5
+ font-[400] leading-[140%] tracking-[-4%] text-white
6
+ disabled:bg-[#D2D2D2]
7
+ ${className}
8
+ `}>
9
+ {children}
10
+ </button>);
11
+ };
12
+ export default Button2;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+
3
+ interface Button2Props {
4
+ onClick?: () => void | Promise<void>;
5
+ type?: 'button' | 'submit' | 'reset';
6
+ className?: string;
7
+ children: React.ReactNode;
8
+ isDisabled?: boolean;
9
+ }
10
+ const Button2 = ({ onClick, type = 'button', className = '', children, isDisabled = false }: Button2Props) => {
11
+ return (
12
+ <button
13
+ disabled={isDisabled}
14
+ type={type}
15
+ onClick={onClick}
16
+ className={`
17
+ h-[40px] rounded-[6px] bg-[#AA1D36] text-center text-[12px]
18
+ font-[400] leading-[140%] tracking-[-4%] text-white
19
+ disabled:bg-[#D2D2D2]
20
+ ${className}
21
+ `}
22
+ >
23
+ {children}
24
+ </button>
25
+ );
26
+ };
27
+
28
+ export default Button2;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface Input2Props {
3
+ value?: string;
4
+ name?: string;
5
+ readOnly?: boolean;
6
+ className?: string;
7
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
+ placeholder?: string;
9
+ type?: string;
10
+ maxLength?: number;
11
+ }
12
+ declare const Input2: ({ value, name, readOnly, className, onChange, placeholder, type, maxLength }: Input2Props) => React.JSX.Element;
13
+ export default Input2;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ const Input2 = ({ value, name, readOnly = false, className = '', onChange, placeholder, type = 'text', maxLength = 99999 }) => {
3
+ return (<input type={type} readOnly={readOnly} name={name} value={value} onChange={onChange} maxLength={maxLength} placeholder={placeholder} className={`
4
+ h-[40px] w-full rounded-[6px] border-[1px] border-solid
5
+ border-[#D9D9D9] px-[8px] py-[12.5px] text-[14px] font-[400] leading-[110%] tracking-[-4%] outline-none
6
+ ${className}
7
+ `}/>);
8
+ };
9
+ export default Input2;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+
3
+ interface Input2Props {
4
+ value?: string;
5
+ name?: string;
6
+ readOnly?: boolean;
7
+ className?: string;
8
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
+ placeholder?: string;
10
+ type?: string;
11
+ maxLength?: number;
12
+ }
13
+
14
+ const Input2 = ({
15
+ value,
16
+ name,
17
+ readOnly = false,
18
+ className = '',
19
+ onChange,
20
+ placeholder,
21
+ type = 'text',
22
+ maxLength = 99999
23
+ }: Input2Props) => {
24
+ return (
25
+ <input
26
+ type={type}
27
+ readOnly={readOnly}
28
+ name={name}
29
+ value={value}
30
+ onChange={onChange}
31
+ maxLength={maxLength}
32
+ placeholder={placeholder}
33
+ className={`
34
+ h-[40px] w-full rounded-[6px] border-[1px] border-solid
35
+ border-[#D9D9D9] px-[8px] py-[12.5px] text-[14px] font-[400] leading-[110%] tracking-[-4%] outline-none
36
+ ${className}
37
+ `}
38
+ />
39
+ );
40
+ };
41
+
42
+ export default Input2;
@@ -998,6 +998,10 @@ video {
998
998
  right: 7.5%;
999
999
  }
1000
1000
 
1001
+ .right-\[8px\] {
1002
+ right: 8px;
1003
+ }
1004
+
1001
1005
  .top-0 {
1002
1006
  top: 0px;
1003
1007
  }
@@ -1038,6 +1042,10 @@ video {
1038
1042
  top: 14px;
1039
1043
  }
1040
1044
 
1045
+ .top-\[15px\] {
1046
+ top: 15px;
1047
+ }
1048
+
1041
1049
  .top-\[16px\] {
1042
1050
  top: 16px;
1043
1051
  }
@@ -1531,6 +1539,10 @@ video {
1531
1539
  margin-top: 0px;
1532
1540
  }
1533
1541
 
1542
+ .mt-0\.5 {
1543
+ margin-top: 0.125rem;
1544
+ }
1545
+
1534
1546
  .mt-1 {
1535
1547
  margin-top: 0.25rem;
1536
1548
  }
@@ -3314,6 +3326,11 @@ video {
3314
3326
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3315
3327
  }
3316
3328
 
3329
+ .-translate-y-\[96px\] {
3330
+ --tw-translate-y: -96px;
3331
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3332
+ }
3333
+
3317
3334
  .translate-x-\[-1px\] {
3318
3335
  --tw-translate-x: -1px;
3319
3336
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -3982,6 +3999,12 @@ video {
3982
3999
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
3983
4000
  }
3984
4001
 
4002
+ .space-x-\[6px\] > :not([hidden]) ~ :not([hidden]) {
4003
+ --tw-space-x-reverse: 0;
4004
+ margin-right: calc(6px * var(--tw-space-x-reverse));
4005
+ margin-left: calc(6px * calc(1 - var(--tw-space-x-reverse)));
4006
+ }
4007
+
3985
4008
  .overflow-hidden {
3986
4009
  overflow: hidden;
3987
4010
  }
@@ -4676,6 +4699,11 @@ video {
4676
4699
  background-color: rgb(65 70 76 / var(--tw-bg-opacity, 1));
4677
4700
  }
4678
4701
 
4702
+ .bg-\[\#505050\] {
4703
+ --tw-bg-opacity: 1;
4704
+ background-color: rgb(80 80 80 / var(--tw-bg-opacity, 1));
4705
+ }
4706
+
4679
4707
  .bg-\[\#545454\] {
4680
4708
  --tw-bg-opacity: 1;
4681
4709
  background-color: rgb(84 84 84 / var(--tw-bg-opacity, 1));
@@ -5294,6 +5322,11 @@ video {
5294
5322
  padding: 8px;
5295
5323
  }
5296
5324
 
5325
+ .\!py-\[12\.5px\] {
5326
+ padding-top: 12.5px !important;
5327
+ padding-bottom: 12.5px !important;
5328
+ }
5329
+
5297
5330
  .px-1 {
5298
5331
  padding-left: 0.25rem;
5299
5332
  padding-right: 0.25rem;
@@ -5444,11 +5477,21 @@ video {
5444
5477
  padding-right: 48px;
5445
5478
  }
5446
5479
 
5480
+ .px-\[5\.5px\] {
5481
+ padding-left: 5.5px;
5482
+ padding-right: 5.5px;
5483
+ }
5484
+
5447
5485
  .px-\[50px\] {
5448
5486
  padding-left: 50px;
5449
5487
  padding-right: 50px;
5450
5488
  }
5451
5489
 
5490
+ .px-\[8px\] {
5491
+ padding-left: 8px;
5492
+ padding-right: 8px;
5493
+ }
5494
+
5452
5495
  .py-1 {
5453
5496
  padding-top: 0.25rem;
5454
5497
  padding-bottom: 0.25rem;
@@ -5584,6 +5627,11 @@ video {
5584
5627
  padding-bottom: 36px;
5585
5628
  }
5586
5629
 
5630
+ .py-\[3px\] {
5631
+ padding-top: 3px;
5632
+ padding-bottom: 3px;
5633
+ }
5634
+
5587
5635
  .py-\[400px\] {
5588
5636
  padding-top: 400px;
5589
5637
  padding-bottom: 400px;
@@ -6538,6 +6586,10 @@ video {
6538
6586
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
6539
6587
  }
6540
6588
 
6589
+ .text-\[\#000\]\/80 {
6590
+ color: rgb(0 0 0 / 0.8);
6591
+ }
6592
+
6541
6593
  .text-\[\#04325A\] {
6542
6594
  --tw-text-opacity: 1;
6543
6595
  color: rgb(4 50 90 / var(--tw-text-opacity, 1));
@@ -6929,6 +6981,10 @@ video {
6929
6981
  color: rgb(255 255 255 / 0.8);
6930
6982
  }
6931
6983
 
6984
+ .text-opacity-90 {
6985
+ --tw-text-opacity: 0.9;
6986
+ }
6987
+
6932
6988
  .underline {
6933
6989
  text-decoration-line: underline;
6934
6990
  }
@@ -8284,6 +8340,10 @@ body {
8284
8340
  background-color: rgb(245 245 245 / var(--tw-bg-opacity, 1));
8285
8341
  }
8286
8342
 
8343
+ .hover\:bg-opacity-20:hover {
8344
+ --tw-bg-opacity: 0.2;
8345
+ }
8346
+
8287
8347
  .hover\:font-\[700\]:hover {
8288
8348
  font-weight: 700;
8289
8349
  }
@@ -8358,6 +8418,11 @@ body {
8358
8418
  border-color: rgb(219 219 219 / var(--tw-border-opacity, 1));
8359
8419
  }
8360
8420
 
8421
+ .disabled\:bg-\[\#D2D2D2\]:disabled {
8422
+ --tw-bg-opacity: 1;
8423
+ background-color: rgb(210 210 210 / var(--tw-bg-opacity, 1));
8424
+ }
8425
+
8361
8426
  .disabled\:bg-\[\#F5F5F5\]:disabled {
8362
8427
  --tw-bg-opacity: 1;
8363
8428
  background-color: rgb(245 245 245 / var(--tw-bg-opacity, 1));