@uniai-fe/uds-primitives 0.3.39 → 0.3.41

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
@@ -586,10 +586,10 @@
586
586
  --select-text-large-line-height: var(--input-text-large-line-height);
587
587
  --select-text-large-letter-spacing: var(--input-text-large-letter-spacing);
588
588
  --select-text-large-weight: var(--input-text-large-weight);
589
- --select-icon-size-xsmall: 1.4rem;
590
- --select-icon-size-small: 1.6rem;
591
- --select-icon-size-medium: 2rem;
592
- --select-icon-size-large: 2rem;
589
+ --select-icon-size-xsmall: 14px;
590
+ --select-icon-size-small: 16px;
591
+ --select-icon-size-medium: 20px;
592
+ --select-icon-size-large: 20px;
593
593
  --select-primary-color-placeholder: var(--input-placeholder-color);
594
594
  /* 변경: placeholder disabled/readonly 토큰을 분리해 상태별 제어 지점을 고정한다. */
595
595
  --select-primary-color-placeholder-disabled: var(--color-label-disabled);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-primitives",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
4
4
  "description": "UNIAI Design System; Primitives Components Package",
5
5
  "type": "module",
6
6
  "private": false,
@@ -0,0 +1,16 @@
1
+ import clsx from "clsx";
2
+ import { Slot } from "../../../slot";
3
+
4
+ export default function DropdownMenuItemLabel({
5
+ className,
6
+ children,
7
+ }: {
8
+ className?: string;
9
+ children: React.ReactNode;
10
+ }) {
11
+ return (
12
+ <Slot.Text className={clsx("dropdown-menu-item-label", className)}>
13
+ {children}
14
+ </Slot.Text>
15
+ );
16
+ }
@@ -6,7 +6,7 @@ import { forwardRef } from "react";
6
6
 
7
7
  import type { DropdownMenuItemProps } from "../../types/props";
8
8
  import { Checkbox } from "../../../checkbox/markup/Checkbox";
9
- import { Slot } from "../../../slot";
9
+ import DropdownMenuItemLabel from "./Label";
10
10
 
11
11
  /**
12
12
  * Dropdown Foundation; Menu Item 옵션 렌더링 컴포넌트
@@ -94,17 +94,13 @@ const DropdownMenuItem = forwardRef<HTMLDivElement, DropdownMenuItemProps>(
94
94
  {/* 변경: description이 있을 때만 body wrapper를 렌더링해 불필요한 중첩 span을 줄인다. */}
95
95
  {description ? (
96
96
  <span className="dropdown-menu-item-body">
97
- <Slot.Text className="dropdown-menu-item-label">
98
- {label ?? children}
99
- </Slot.Text>
97
+ <DropdownMenuItemLabel>{label ?? children}</DropdownMenuItemLabel>
100
98
  <span className="dropdown-menu-item-description">
101
99
  {description}
102
100
  </span>
103
101
  </span>
104
102
  ) : (
105
- <Slot.Text className="dropdown-menu-item-label">
106
- {label ?? children}
107
- </Slot.Text>
103
+ <DropdownMenuItemLabel>{label ?? children}</DropdownMenuItemLabel>
108
104
  )}
109
105
  {right ? (
110
106
  <span className="dropdown-menu-item-right">{right}</span>
@@ -4,6 +4,7 @@ import DropdownMenuList from "./MenuList";
4
4
  import DropdownRoot from "./Root";
5
5
  import { DropdownProvider } from "./Provider";
6
6
  import DropdownTrigger from "./Trigger";
7
+ import DropdownMenuItemLabel from "./Label";
7
8
 
8
9
  /**
9
10
  * Dropdown; 기초 컴포넌트
@@ -13,6 +14,7 @@ import DropdownTrigger from "./Trigger";
13
14
  * - Menu
14
15
  * - Item
15
16
  * - List
17
+ * - Label
16
18
  * - Panel
17
19
  * - Trigger
18
20
  */
@@ -20,6 +22,10 @@ export const DropdownFoundation = {
20
22
  Provider: DropdownProvider,
21
23
  Root: DropdownRoot,
22
24
  Container: DropdownContainer,
23
- Menu: { Item: DropdownMenuItem, List: DropdownMenuList },
25
+ Menu: {
26
+ Item: DropdownMenuItem,
27
+ List: DropdownMenuList,
28
+ Label: DropdownMenuItemLabel,
29
+ },
24
30
  Trigger: DropdownTrigger,
25
31
  };
@@ -90,10 +90,10 @@
90
90
  --select-text-large-letter-spacing: var(--input-text-large-letter-spacing);
91
91
  --select-text-large-weight: var(--input-text-large-weight);
92
92
 
93
- --select-icon-size-xsmall: 1.4rem;
94
- --select-icon-size-small: 1.6rem;
95
- --select-icon-size-medium: 2rem;
96
- --select-icon-size-large: 2rem;
93
+ --select-icon-size-xsmall: 14px;
94
+ --select-icon-size-small: 16px;
95
+ --select-icon-size-medium: 20px;
96
+ --select-icon-size-large: 20px;
97
97
 
98
98
  --select-primary-color-placeholder: var(--input-placeholder-color);
99
99
  /* 변경: placeholder disabled/readonly 토큰을 분리해 상태별 제어 지점을 고정한다. */