@uniai-fe/uds-templates 0.4.31 → 0.4.33

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
@@ -539,8 +539,10 @@
539
539
  }
540
540
 
541
541
  .uds-modal-container {
542
- display: flex;
543
- flex-direction: column;
542
+ display: grid;
543
+ grid-template-rows: auto minmax(0, 1fr) auto;
544
+ flex: 1 1 auto;
545
+ min-height: 0;
544
546
  width: 100%;
545
547
  }
546
548
 
@@ -550,11 +552,22 @@
550
552
  margin: 0;
551
553
  }
552
554
 
555
+ .uds-modal-header {
556
+ grid-row: 1;
557
+ }
558
+
559
+ .uds-modal-body {
560
+ grid-row: 2;
561
+ min-height: 0;
562
+ overflow: auto;
563
+ }
564
+
553
565
  .uds-modal-header-close-button {
554
566
  font-size: 0;
555
567
  }
556
568
 
557
569
  .uds-modal-footer {
570
+ grid-row: 3;
558
571
  padding: 0;
559
572
  border-top: none;
560
573
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-templates",
3
- "version": "0.4.31",
3
+ "version": "0.4.33",
4
4
  "description": "UNIAI Design System; UI Templates Package",
5
5
  "type": "module",
6
6
  "private": false,
@@ -42,13 +42,13 @@ export default function CCTVPaginationBaseButton({
42
42
  >
43
43
  {direction === "prev" && (
44
44
  <IconFigure className="cctv-prev-icon">
45
- <LeftIcon width={24} height={24} alt="Previous CCTV" />
45
+ <LeftIcon width={24} height={24} />
46
46
  </IconFigure>
47
47
  )}
48
48
  {children}
49
49
  {direction === "next" && (
50
50
  <IconFigure className="cctv-next-icon">
51
- <RightIcon width={24} height={24} alt="Next CCTV" />
51
+ <RightIcon width={24} height={24} />
52
52
  </IconFigure>
53
53
  )}
54
54
  </button>
@@ -8,7 +8,7 @@ export default function CCTVVideoError({
8
8
  return (
9
9
  <div className="cctv-video-error">
10
10
  <figure className="cctv-video-error-icon">
11
- <CCTVErrorIcon width={24} height={24} alt="CCTV 연결 오류" />
11
+ <CCTVErrorIcon width={24} height={24} />
12
12
  </figure>
13
13
  <p className="cctv-video-error-message">{children ?? "CCTV 연결 오류"}</p>
14
14
  </div>
@@ -19,7 +19,7 @@ export default function CCTVVideoOpenButton({
19
19
  className={clsx("cctv-video-open-button", { on: isLive === true })}
20
20
  onClick={onOpen}
21
21
  >
22
- <ViewerOpenIcon width={24} height={24} alt="크게 보기" />
22
+ <ViewerOpenIcon width={24} height={24} />
23
23
  </button>
24
24
  );
25
25
  }
@@ -12,7 +12,7 @@ export default function CCTVVideoCloseButton() {
12
12
 
13
13
  return (
14
14
  <button type="button" className="cctv-video-close-button" onClick={onClose}>
15
- <ViewerCloseIcon width={36} height={36} alt="닫기" />
15
+ <ViewerCloseIcon width={36} height={36} />
16
16
  </button>
17
17
  );
18
18
  }
@@ -30,7 +30,6 @@ export function ModalHeaderCloseButton({
30
30
  <CloseIcon
31
31
  width={20}
32
32
  height={20}
33
- alt={ariaLabel}
34
33
  viewBox="0 0 20 20"
35
34
  preserveAspectRatio="xMidYMid meet"
36
35
  />
@@ -1,6 +1,9 @@
1
1
  .uds-modal-container {
2
- display: flex;
3
- flex-direction: column;
2
+ // 변경: modal surface의 max-height 안에서 header/body/footer 3행 계약을 고정한다.
3
+ display: grid;
4
+ grid-template-rows: auto minmax(0, 1fr) auto;
5
+ flex: 1 1 auto;
6
+ min-height: 0;
4
7
  width: 100%;
5
8
  }
6
9
 
@@ -9,11 +12,23 @@
9
12
  padding: 0;
10
13
  margin: 0;
11
14
  }
15
+
16
+ .uds-modal-header {
17
+ grid-row: 1;
18
+ }
19
+
20
+ .uds-modal-body {
21
+ // 변경: body만 남는 높이를 차지하고 내부 스크롤을 담당한다.
22
+ grid-row: 2;
23
+ min-height: 0;
24
+ overflow: auto;
25
+ }
12
26
  .uds-modal-header-close-button {
13
27
  font-size: 0;
14
28
  }
15
29
 
16
30
  .uds-modal-footer {
31
+ grid-row: 3;
17
32
  padding: 0;
18
33
  border-top: none;
19
34
  }
@@ -36,9 +36,7 @@ export function MobileFrameHeader({
36
36
  aria-label="뒤로가기"
37
37
  >
38
38
  <span className="page-frame-mobile-header__back-icon">
39
- {backIcon ?? (
40
- <IconBackward width={24} height={24} alt="뒤로가기" />
41
- )}
39
+ {backIcon ?? <IconBackward width={24} height={24} />}
42
40
  </span>
43
41
  </button>
44
42
  ) : (