@pop-ui/core 2.0.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @pop-ui/core
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4902447: Toggle이 controlled `checked` 변경을 트랙 색에 반영하고, uncontrolled 사용 시 `defaultChecked`로 초기화되도록 수정했습니다.
8
+
9
+ Modal에 `styles`를 넘기면 기본 스타일이 통째로 사라지던 문제를 슬롯별 병합(같은 속성은 사용자 값 우선)으로 수정했습니다. `fullScreen`일 때는 기본 `content.borderRadius`를 적용하지 않고, 함수형 `styles`는 그대로 전달합니다. body 기본값은 `paddingLeft`/`paddingRight: 0px` 대신 `paddingInline: 0`입니다.
10
+
11
+ **마이그레이션:** 이미 Modal에 `styles`를 넘기던 호출부는 이제 기본값(`content.borderRadius: 12px`, `title`의 `fontSize 16px`·`fontWeight 700`·`lineHeight 150%`·`color`, `header.padding: 16px`, `body.paddingInline: 0`)도 함께 상속합니다. 이전 모습을 유지하려면 해당 키를 명시적으로 지정하세요(예: 모서리를 없애려면 `styles={{ content: { borderRadius: 0 } }}`).
12
+
13
+ IButtonProps, TButtonVariant, IModalProps 등 컴포넌트 props 타입을 패키지 루트에서 type-only로 export합니다.
14
+
15
+ Button warning variant의 focus-visible 상태 텍스트가 red-50 배경 위 흰색으로 렌더되던 오타를 수정해, 다른 warning 상태와 같은 red-500으로 맞췄습니다.
16
+ - Updated dependencies
17
+ - @pop-ui/foundation@2.1.1
18
+
19
+ ## 2.1.0
20
+
21
+ ### Minor Changes
22
+
23
+ - Next.js 16 SSR 호환성을 보강하고 core의 Mantine 의존성 중복 설치를 방지하도록 패키지 계약을 정리했습니다. foundation에 기존 `IconPhoto` 이름을 alias로 복원해 PDS v2.0 아이콘 이름 변경으로 인한 소비 앱 오류를 방지합니다.
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+ - @pop-ui/foundation@2.1.0
29
+
3
30
  ## 2.0.0
4
31
 
5
32
  ### Patch Changes
package/README.md CHANGED
@@ -4,20 +4,21 @@ Pop UI의 공용 React 컴포넌트 패키지입니다.
4
4
 
5
5
  ## 요구 사항
6
6
 
7
- - React `19.2.x`
8
- - `react-dom` `19.2.x`
7
+ - React `18.x` 또는 `19.x`
8
+ - `react-dom` `18.x` 또는 `19.x`
9
+ - Mantine `8.3.x`: `@mantine/core`, `@mantine/dates`, `@mantine/dropzone`, `@mantine/hooks`, `@mantine/notifications`
9
10
 
10
11
  패키지는 `@pop-ui/core/styles.css`를 export 하므로, 앱 엔트리에서 한 번만 로드해야 합니다.
11
12
 
12
13
  ## 설치
13
14
 
14
15
  ```bash
15
- yarn add @pop-ui/core react react-dom
16
+ yarn add @pop-ui/core @mantine/core @mantine/dates @mantine/dropzone @mantine/hooks @mantine/notifications react react-dom
16
17
  ```
17
18
 
18
19
  ## 사용 방법
19
20
 
20
- `PopUiProvider`로 앱을 감싸고, 전역 스타일을 함께 불러오세요.
21
+ 앱 엔트리에서 `@pop-ui/core/styles.css`를 한 번만 import한 뒤, `PopUiProvider`로 앱을 감싸세요.
21
22
 
22
23
  ```tsx
23
24
  import '@pop-ui/core/styles.css';