@uniai-fe/uds-primitives 0.3.11 → 0.3.12
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
|
@@ -59,8 +59,10 @@ const SelectTriggerBase = forwardRef<HTMLElement, SelectTriggerBaseProps>(
|
|
|
59
59
|
className: clsx("select-button", className),
|
|
60
60
|
"data-priority": priority,
|
|
61
61
|
"data-size": size,
|
|
62
|
-
|
|
62
|
+
...restProps,
|
|
63
|
+
// 변경: Radix Dropdown.Trigger가 주입하는 data-state(open|closed)를 최종 단계에서 덮어써 visual state를 고정한다.
|
|
63
64
|
"data-state": resolvedState,
|
|
65
|
+
// 변경: readOnly도 disabled와 동일한 시각 상태를 사용하고 텍스트 컬러만 별도 스타일로 분리한다.
|
|
64
66
|
"data-readonly": readOnly ? "true" : undefined,
|
|
65
67
|
"data-open": open || undefined,
|
|
66
68
|
"data-multiple": multiple || undefined,
|
|
@@ -68,7 +70,6 @@ const SelectTriggerBase = forwardRef<HTMLElement, SelectTriggerBaseProps>(
|
|
|
68
70
|
"aria-readonly": readOnly ? "true" : undefined,
|
|
69
71
|
"aria-haspopup": ariaHasPopup ?? "listbox",
|
|
70
72
|
"aria-expanded": ariaExpanded ?? open,
|
|
71
|
-
...restProps,
|
|
72
73
|
};
|
|
73
74
|
|
|
74
75
|
const elementSpecificProps =
|