@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
package/package.json
CHANGED
|
@@ -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={
|
|
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 {
|