@loword/loword-design-system 0.7.4 → 0.7.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.
@@ -27,7 +27,7 @@ export interface LDEditorProps {
27
27
  * 글자 크기 mark가 없는 글의 툴바 표시도 이 값을 보여 준다.
28
28
  * 정적 렌더(`div.prose.prose-lg > div.ProseMirror`)는 **prose 루트(바깥 div)에 이 클래스(`ld-editor-render`)와 같은 `font-size`를 준다**.
29
29
  * 정적 렌더 내용 폭 = 에디터 바깥 폭 − 34px(테두리 1 + 여백 16, 양쪽). 렌더 루트 바깥 폭을 그만큼 좁히면(또는 같은 inline 좌우 여백을 주면) 줄바꿈이 같다.
30
- * 편집 영역은 스크롤바 자리를 항상 확보(`scrollbar-gutter: stable`)하고, `ld-editor-render`도 같은 거터를 확보한다(높이는 auto라 스크롤은 생기지 않음).
30
+ * 편집 영역은 스크롤바 자리를 항상 확보(`scrollbar-gutter: stable`)한다. 정적 렌더는 거터를 두지 않으므로 스크롤바가 폭을 차지하는 환경(Windows 등)에서는 그만큼 넓다.
31
31
  * `ld-editor-render`는 빈 문단(`<p></p>`)을 한 줄 높이로, 연속 공백·U+2028을 보존하고, 링크 글자·밑줄 색이 주변 글자 색을 따르게 해 편집 화면과 같게 그린다(붙이지 않으면 기존 렌더 그대로).
32
32
  * `LDViewer`는 같은 이름의 prop을 받는다.
33
33
  */
package/dist/index.css CHANGED
@@ -1824,9 +1824,6 @@
1824
1824
  .w-\[60px\] {
1825
1825
  width: 60px;
1826
1826
  }
1827
- .w-\[calc\(100\%-34px\)\] {
1828
- width: calc(100% - 34px);
1829
- }
1830
1827
  .w-auto {
1831
1828
  width: auto;
1832
1829
  }
@@ -2211,6 +2208,9 @@
2211
2208
  .overflow-hidden {
2212
2209
  overflow: hidden;
2213
2210
  }
2211
+ .overflow-visible {
2212
+ overflow: visible;
2213
+ }
2214
2214
  .overflow-x-auto {
2215
2215
  overflow-x: auto;
2216
2216
  }
@@ -4936,6 +4936,11 @@
4936
4936
  height: calc(var(--spacing) * 6);
4937
4937
  }
4938
4938
  }
4939
+ .\[\&_\.ProseMirror\]\:overflow-visible {
4940
+ & .ProseMirror {
4941
+ overflow: visible;
4942
+ }
4943
+ }
4939
4944
  .\[\&_svg\]\:icon-2xs {
4940
4945
  & svg {
4941
4946
  width: var(--control-icon-2xs);
@@ -5634,14 +5639,10 @@
5634
5639
  }
5635
5640
  }
5636
5641
  @layer components {
5637
- .ld-editor-render .ProseMirror, .ProseMirror.ld-editor-render {
5642
+ .ld-editor-render .ProseMirror :is(p, h1, h2, h3, h4, h5, h6), .ProseMirror.ld-editor-render :is(p, h1, h2, h3, h4, h5, h6) {
5638
5643
  white-space: pre-wrap;
5639
5644
  white-space: break-spaces;
5640
5645
  }
5641
- .ld-editor-render .ProseMirror:not([contenteditable='true']), .ProseMirror.ld-editor-render:not([contenteditable='true']) {
5642
- overflow-y: auto;
5643
- scrollbar-gutter: stable;
5644
- }
5645
5646
  }
5646
5647
  .ProseMirror img {
5647
5648
  max-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loword/loword-design-system",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "로워드 디자인 시스템 컴포넌트 패키지(Tailwind v4)",
5
5
  "keywords": [
6
6
  "react",
@@ -110,23 +110,14 @@
110
110
 
111
111
  /* 정적 렌더 옵트인(.ld-editor-render): 편집 화면과 같이 연속 공백·줄 구분 문자(U+2028 등)를 보존한다.
112
112
  tiptap은 편집 가능한 에디터에만 같은 규칙을 주입한다. 클래스가 없는 정적 렌더는 기존 그대로다.
113
+ 글이 들어가는 블록(문단·제목)에만 준다. 루트에 주면 블록 태그 사이 개행(서버가 정리해 저장한 HTML)이 빈 줄로 그려진다.
113
114
  앞 줄은 break-spaces 미지원 브라우저용 폴백. */
114
115
  @layer components {
115
- .ld-editor-render .ProseMirror,
116
- .ProseMirror.ld-editor-render {
116
+ .ld-editor-render .ProseMirror :is(p, h1, h2, h3, h4, h5, h6),
117
+ .ProseMirror.ld-editor-render :is(p, h1, h2, h3, h4, h5, h6) {
117
118
  white-space: pre-wrap;
118
119
  white-space: break-spaces;
119
120
  }
120
-
121
- /* 편집 영역은 고정 높이 + 내부 스크롤이라 스크롤바(classic 환경 15px)가 내용 폭을 줄인다.
122
- 편집 요소는 scrollbar-gutter: stable로 자리를 항상 확보하므로(LDEditor), 정적 렌더·LDViewer도
123
- 같은 거터를 확보해 줄바꿈이 같게 한다. 높이는 auto라 실제 스크롤은 생기지 않는다.
124
- 편집 요소(contenteditable="true")에도 ld-editor-render가 붙어 있어 제외한다. */
125
- .ld-editor-render .ProseMirror:not([contenteditable='true']),
126
- .ProseMirror.ld-editor-render:not([contenteditable='true']) {
127
- overflow-y: auto;
128
- scrollbar-gutter: stable;
129
- }
130
121
  }
131
122
 
132
123
  /* 이미지 정렬 스타일 */