@uniai-fe/uds-primitives 0.4.0 → 0.4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniai-fe/uds-primitives",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "UNIAI Design System; Primitives Components Package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
|
-
"packageManager": "pnpm@10.32.
|
|
18
|
+
"packageManager": "pnpm@10.32.1",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=24",
|
|
21
21
|
"pnpm": ">=10"
|
|
@@ -85,13 +85,13 @@
|
|
|
85
85
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
86
86
|
"@radix-ui/react-visually-hidden": "^1.2.4",
|
|
87
87
|
"clsx": "^2.1.1",
|
|
88
|
-
"dayjs": "^1.11.
|
|
88
|
+
"dayjs": "^1.11.20",
|
|
89
89
|
"react-daum-postcode": "^4.0.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@mantine/core": "^8.3.
|
|
93
|
-
"@mantine/dates": "^8.3.
|
|
94
|
-
"@mantine/hooks": "^8.3.
|
|
92
|
+
"@mantine/core": "^8.3.18",
|
|
93
|
+
"@mantine/dates": "^8.3.18",
|
|
94
|
+
"@mantine/hooks": "^8.3.18",
|
|
95
95
|
"@svgr/webpack": "^8.1.0",
|
|
96
96
|
"@types/node": "^24.10.2",
|
|
97
97
|
"@types/react": "^19.2.14",
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
"@uniai-fe/util-functions": "workspace:*",
|
|
104
104
|
"eslint": "^9.39.2",
|
|
105
105
|
"prettier": "^3.8.1",
|
|
106
|
-
"react-hook-form": "^7.
|
|
107
|
-
"sass": "^1.
|
|
106
|
+
"react-hook-form": "^7.72.0",
|
|
107
|
+
"sass": "^1.98.0",
|
|
108
108
|
"typescript": "~5.9.3"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -19,6 +19,7 @@ import { Slot } from "../../../slot";
|
|
|
19
19
|
export default function FormFieldHeader({
|
|
20
20
|
className,
|
|
21
21
|
label,
|
|
22
|
+
labelJsx,
|
|
22
23
|
labelAs: LabelTag = "h5",
|
|
23
24
|
labelId,
|
|
24
25
|
labelProps = {},
|
|
@@ -26,12 +27,15 @@ export default function FormFieldHeader({
|
|
|
26
27
|
children,
|
|
27
28
|
...headerAttrs
|
|
28
29
|
}: FormFieldHeaderProps) {
|
|
30
|
+
const resolvedLabel =
|
|
31
|
+
labelJsx ?? (label ? <Slot.Text>{label}</Slot.Text> : null);
|
|
32
|
+
|
|
29
33
|
return (
|
|
30
34
|
<header className={clsx("form-field-header", className)} {...headerAttrs}>
|
|
31
|
-
{
|
|
35
|
+
{resolvedLabel && (
|
|
32
36
|
<LabelTag className="form-field-label" {...labelProps} id={labelId}>
|
|
33
|
-
{/*
|
|
34
|
-
|
|
37
|
+
{/* JSX 라벨은 그대로 렌더하고, 문자열/숫자만 Slot.Text로 감싼다. */}
|
|
38
|
+
{resolvedLabel}
|
|
35
39
|
{required && <span className="form-field-required">*</span>}
|
|
36
40
|
</LabelTag>
|
|
37
41
|
)}
|
|
@@ -78,7 +78,6 @@ export default function InputBaseUtil({
|
|
|
78
78
|
return (
|
|
79
79
|
// 유틸리티 영역; 오른쪽 슬롯/clear/status 정렬
|
|
80
80
|
<div className="input-field-utilities">
|
|
81
|
-
{right && <InputBaseSideSlot type="right">{right}</InputBaseSideSlot>}
|
|
82
81
|
{showClearIcon ? (
|
|
83
82
|
<button
|
|
84
83
|
type="button"
|
|
@@ -106,6 +105,7 @@ export default function InputBaseUtil({
|
|
|
106
105
|
{resolvedStatusIcon}
|
|
107
106
|
</div>
|
|
108
107
|
) : null}
|
|
108
|
+
{right && <InputBaseSideSlot type="right">{right}</InputBaseSideSlot>}
|
|
109
109
|
</div>
|
|
110
110
|
);
|
|
111
111
|
}
|