@ceed/ads 1.24.1 → 1.25.1-next.1
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/README.md +19 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +1 -1
- package/dist/components/CurrencyInput/hooks/use-currency-setting.d.ts +2 -2
- package/dist/components/ProfileMenu/ProfileMenu.d.ts +1 -1
- package/dist/index.browser.js +12 -14
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +6 -9
- package/dist/index.js +6 -9
- package/framer/index.js +1 -1
- package/package.json +17 -12
package/README.md
CHANGED
|
@@ -10,6 +10,25 @@ npm install @ceed/ads
|
|
|
10
10
|
yarn add @ceed/ads
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
### Peer Dependencies
|
|
14
|
+
|
|
15
|
+
`@ceed/ads`는 아래 peer dependencies가 소비자 앱에 설치되어 있어야 합니다.
|
|
16
|
+
이미 설치된 패키지는 추가 설치가 필요 없습니다.
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @emotion/react @emotion/styled @mui/joy framer-motion
|
|
20
|
+
# @mui/icons-material 기반 컴포넌트 사용 시 추가:
|
|
21
|
+
npm install @mui/icons-material
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
| 패키지 | 필수 여부 | 비고 |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| `@emotion/react` | 필수 | MUI Joy 렌더링 기반 |
|
|
27
|
+
| `@emotion/styled` | 필수 | MUI Joy 스타일링 기반 |
|
|
28
|
+
| `@mui/joy` | 필수 | 디자인 시스템 기반 (ThemeProvider 포함) |
|
|
29
|
+
| `framer-motion` | 필수 | 애니메이션 컴포넌트 |
|
|
30
|
+
| `@mui/icons-material` | 선택 | 아이콘을 사용하는 컴포넌트에만 필요 |
|
|
31
|
+
|
|
13
32
|
## Usage
|
|
14
33
|
|
|
15
34
|
### With Bundler (Vite, Webpack, etc.)
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { InputProps } from '@mui/joy';
|
|
3
3
|
import { MotionProps } from 'framer-motion';
|
|
4
4
|
export interface CurrencyInputProps {
|
|
5
|
-
currency?: 'USD' | 'KRW';
|
|
5
|
+
currency?: 'USD' | 'KRW' | 'CAD';
|
|
6
6
|
max?: number;
|
|
7
7
|
value?: number;
|
|
8
8
|
defaultValue?: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const useCurrencySetting: (props: {
|
|
2
|
-
currency?: "USD" | "KRW" | "BHD" | undefined;
|
|
2
|
+
currency?: "USD" | "KRW" | "BHD" | "CAD" | undefined;
|
|
3
3
|
placeholder?: string | undefined;
|
|
4
4
|
}) => {
|
|
5
5
|
symbol: string;
|
|
6
6
|
thousandSeparator: string;
|
|
7
|
-
decimalSeparator: string;
|
|
7
|
+
decimalSeparator: string | undefined;
|
|
8
8
|
placeholder: string;
|
|
9
9
|
fixedDecimalScale: boolean;
|
|
10
10
|
decimalScale: number;
|