@uniai-fe/uds-primitives 0.3.49 → 0.3.50

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
@@ -1341,10 +1341,6 @@
1341
1341
  max-width: 100%;
1342
1342
  }
1343
1343
 
1344
- .calendar-trigger {
1345
- width: 100%;
1346
- }
1347
-
1348
1344
  .calendar-container {
1349
1345
  display: grid;
1350
1346
  gap: var(--spacing-gap-3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-primitives",
3
- "version": "0.3.49",
3
+ "version": "0.3.50",
4
4
  "description": "UNIAI Design System; Primitives Components Package",
5
5
  "type": "module",
6
6
  "private": false,
@@ -112,6 +112,13 @@ const CalendarRoot = forwardRef<HTMLElement, CalendarRootProps>(
112
112
  alignOffset={alignOffset}
113
113
  withPortal={withPortal}
114
114
  portalContainer={portalContainer}
115
+ onInteractOutside={event => {
116
+ // 변경 설명: trigger 클릭은 outside dismiss에서 제외해 close 후 즉시 reopen 경합을 방지한다.
117
+ const nextTarget = event.target as HTMLElement | null;
118
+ if (nextTarget?.closest(".calendar-trigger")) {
119
+ event.preventDefault();
120
+ }
121
+ }}
115
122
  >
116
123
  {/* calendar 스킨 class는 content 내부에 고정한다. */}
117
124
  <div className="calendar-root">{calendarNode}</div>
@@ -3,10 +3,6 @@
3
3
  max-width: 100%;
4
4
  }
5
5
 
6
- .calendar-trigger {
7
- width: 100%;
8
- }
9
-
10
6
  .calendar-container {
11
7
  display: grid;
12
8
  gap: var(--spacing-gap-3);