@uniai-fe/uds-primitives 0.6.1 → 0.6.2

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/dist/styles.css CHANGED
@@ -956,6 +956,10 @@
956
956
  font-weight: var(--alternate-layout-contents-font-weight);
957
957
  word-break: keep-all;
958
958
  }
959
+ .alternate-layout-contents :where(p) {
960
+ margin: 0;
961
+ line-height: inherit;
962
+ }
959
963
 
960
964
  .alternate-layout-text-button {
961
965
  display: inline;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-primitives",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "UNIAI Design System; Primitives Components Package",
5
5
  "type": "module",
6
6
  "private": false,
@@ -15,8 +15,27 @@ export default function AlternateLayoutContents({
15
15
  className,
16
16
  children,
17
17
  }: AlternateLayoutContentsProps) {
18
+ const contentsClassName = clsx("alternate-layout-contents", className);
19
+
20
+ if (
21
+ children === null ||
22
+ typeof children === "undefined" ||
23
+ typeof children === "boolean"
24
+ ) {
25
+ return children;
26
+ }
27
+
28
+ if (!["string", "number"].includes(typeof children)) {
29
+ // 변경: 복합 본문은 Contents anatomy 안에 유지해 paragraph/TextButton 구성도 동일 typography를 상속받게 한다.
30
+ return (
31
+ <Slot.Base as="div" className={contentsClassName}>
32
+ {children}
33
+ </Slot.Base>
34
+ );
35
+ }
36
+
18
37
  return (
19
- <Slot.Text as="p" className={clsx("alternate-layout-contents", className)}>
38
+ <Slot.Text as="p" className={contentsClassName}>
20
39
  {children}
21
40
  </Slot.Text>
22
41
  );
@@ -38,6 +38,12 @@
38
38
  letter-spacing: var(--alternate-layout-contents-letter-spacing);
39
39
  font-weight: var(--alternate-layout-contents-font-weight);
40
40
  word-break: keep-all;
41
+
42
+ :where(p) {
43
+ // 변경: 복합 Contents의 paragraph도 같은 typography 흐름 안에서 렌더링되도록 기본 문단 여백을 제거한다.
44
+ margin: 0;
45
+ line-height: inherit;
46
+ }
41
47
  }
42
48
 
43
49
  .alternate-layout-text-button {