@seed-design/css 1.2.19 → 1.2.20

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.
@@ -8,6 +8,10 @@
8
8
  bottom: 0;
9
9
  left: 0;
10
10
  overscroll-behavior-y: none;
11
+ padding-top: max(var(--seed-safe-area-top), var(--seed-safe-area-bottom));
12
+ padding-right: var(--seed-safe-area-right);
13
+ padding-bottom: max(var(--seed-safe-area-top), var(--seed-safe-area-bottom));
14
+ padding-left: var(--seed-safe-area-left);
11
15
  --dialog-z-index: 2;
12
16
  z-index: calc(var(--dialog-z-index) + var(--layer-index, 0))
13
17
  }
@@ -31,6 +35,8 @@
31
35
  z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
32
36
  background: var(--seed-color-bg-layer-floating);
33
37
  max-width: 272px;
38
+ max-height: 100%;
39
+ overflow-y: auto;
34
40
  margin: auto var(--seed-dimension-x8);
35
41
  border-radius: var(--seed-radius-r5)
36
42
  }
@@ -1,6 +1,10 @@
1
1
  @layer seed-components {
2
2
  .seed-dialog__positioner {
3
3
  overscroll-behavior-y: none;
4
+ padding-top: max(var(--seed-safe-area-top), var(--seed-safe-area-bottom));
5
+ padding-right: var(--seed-safe-area-right);
6
+ padding-bottom: max(var(--seed-safe-area-top), var(--seed-safe-area-bottom));
7
+ padding-left: var(--seed-safe-area-left);
4
8
  --dialog-z-index: 2;
5
9
  z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
6
10
  justify-content: center;
@@ -23,6 +27,7 @@
23
27
  z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
24
28
  background: var(--seed-color-bg-layer-floating);
25
29
  max-width: 272px;
30
+ max-height: 100%;
26
31
  margin: auto var(--seed-dimension-x8);
27
32
  border-radius: var(--seed-radius-r5);
28
33
  outline: none;
@@ -30,6 +35,7 @@
30
35
  flex: 1;
31
36
  display: flex;
32
37
  position: relative;
38
+ overflow-y: auto;
33
39
  }
34
40
 
35
41
  .seed-dialog__header {
@@ -8,6 +8,8 @@
8
8
  bottom: 0;
9
9
  left: 0;
10
10
  overscroll-behavior-y: none;
11
+ padding-left: var(--seed-safe-area-left);
12
+ padding-right: var(--seed-safe-area-right);
11
13
  --sheet-z-index: 2;
12
14
  z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
13
15
  }
@@ -30,6 +32,7 @@
30
32
  word-break: break-all;
31
33
  z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
32
34
  background: var(--seed-color-bg-layer-floating);
35
+ max-height: min(0.9 * 100%, 100% - var(--seed-safe-area-top));
33
36
  padding-left: var(--seed-dimension-spacing-x-global-gutter);
34
37
  padding-right: var(--seed-dimension-spacing-x-global-gutter);
35
38
  padding-top: var(--seed-dimension-x4);
@@ -63,6 +66,7 @@
63
66
  display: flex;
64
67
  flex-direction: column;
65
68
  align-items: stretch;
69
+ overflow-y: auto;
66
70
  gap: var(--seed-dimension-x2_5);
67
71
  }
68
72
  .seed-menu-sheet__group {
@@ -70,6 +74,7 @@
70
74
  flex-direction: column;
71
75
  align-items: stretch;
72
76
  overflow: hidden;
77
+ flex-shrink: 0;
73
78
  border-radius: var(--seed-radius-r4);
74
79
  }
75
80
  .seed-menu-sheet__footer {
@@ -1,6 +1,8 @@
1
1
  @layer seed-components {
2
2
  .seed-menu-sheet__positioner {
3
3
  overscroll-behavior-y: none;
4
+ padding-left: var(--seed-safe-area-left);
5
+ padding-right: var(--seed-safe-area-right);
4
6
  --sheet-z-index: 2;
5
7
  z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
6
8
  justify-content: center;
@@ -22,6 +24,7 @@
22
24
  word-break: break-all;
23
25
  z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
24
26
  background: var(--seed-color-bg-layer-floating);
27
+ max-height: min(.9 * 100%, 100% - var(--seed-safe-area-top));
25
28
  padding-left: var(--seed-dimension-spacing-x-global-gutter);
26
29
  padding-right: var(--seed-dimension-spacing-x-global-gutter);
27
30
  padding-top: var(--seed-dimension-x4);
@@ -65,11 +68,13 @@
65
68
  gap: var(--seed-dimension-x2_5);
66
69
  flex-direction: column;
67
70
  display: flex;
71
+ overflow-y: auto;
68
72
  }
69
73
 
70
74
  .seed-menu-sheet__group {
71
75
  border-radius: var(--seed-radius-r4);
72
76
  flex-direction: column;
77
+ flex-shrink: 0;
73
78
  align-items: stretch;
74
79
  display: flex;
75
80
  overflow: hidden;
@@ -3,9 +3,9 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  align-items: center;
6
- left: calc(env(safe-area-inset-left, 0px));
7
- right: calc(env(safe-area-inset-right, 0px));
8
- bottom: calc(env(safe-area-inset-bottom, 0px) + var(--snackbar-region-offset, 0px));
6
+ left: var(--seed-safe-area-left);
7
+ right: var(--seed-safe-area-right);
8
+ bottom: calc(var(--seed-safe-area-bottom) + var(--snackbar-region-offset, 0px));
9
9
  padding-left: var(--seed-dimension-x2);
10
10
  padding-right: var(--seed-dimension-x2);
11
11
  padding-top: var(--seed-dimension-x2);
@@ -1,9 +1,9 @@
1
1
  @layer seed-components {
2
2
  .seed-snackbar-region {
3
3
  z-index: 2147483647;
4
- left: calc(env(safe-area-inset-left, 0px));
5
- right: calc(env(safe-area-inset-right, 0px));
6
- bottom: calc(env(safe-area-inset-bottom, 0px) + var(--snackbar-region-offset, 0px));
4
+ left: var(--seed-safe-area-left);
5
+ right: var(--seed-safe-area-right);
6
+ bottom: calc(var(--seed-safe-area-bottom) + var(--snackbar-region-offset, 0px));
7
7
  padding-left: var(--seed-dimension-x2);
8
8
  padding-right: var(--seed-dimension-x2);
9
9
  padding-top: var(--seed-dimension-x2);
@@ -10,9 +10,12 @@ export declare const vars: {
10
10
  "exitTimingFunction": "var(--seed-timing-function-exit)",
11
11
  "exitOpacity": "0"
12
12
  },
13
+ /** content는 가로 기준으로 안전 영역의 가운데에 놓이고, 하단 inset을 content의 하단 패딩으로 적용합니다. */
13
14
  "content": {
14
15
  "color": "var(--seed-color-bg-layer-floating)",
15
16
  "maxWidth": "640px",
17
+ /** inset을 빼지 않은 viewport height 또는 parent height에 대한 최대 비율입니다. 최대 높이는 min(maxHeightFraction × 높이, 상단 inset을 뺀 높이)이므로, content는 상단 안전 영역 경계까지만 커집니다. */
18
+ "maxHeightFraction": "0.9",
16
19
  "topCornerRadius": "var(--seed-radius-r6)",
17
20
  "enterDuration": "var(--seed-duration-d6)",
18
21
  "enterTimingFunction": "var(--seed-timing-function-enter-expressive)",
@@ -13,6 +13,7 @@ export const vars = {
13
13
  "content": {
14
14
  "color": "var(--seed-color-bg-layer-floating)",
15
15
  "maxWidth": "640px",
16
+ "maxHeightFraction": "0.9",
16
17
  "topCornerRadius": "var(--seed-radius-r6)",
17
18
  "enterDuration": "var(--seed-duration-d6)",
18
19
  "enterTimingFunction": "var(--seed-timing-function-enter-expressive)",
@@ -10,9 +10,11 @@ export declare const vars: {
10
10
  "exitTimingFunction": "var(--seed-timing-function-exit)",
11
11
  "exitOpacity": "0"
12
12
  },
13
+ /** content는 가로 기준으로 안전 영역의 가운데에 놓입니다. 세로 기준으로는 상단과 하단 inset 중 큰 값을 위아래에 똑같이 두어 화면 가운데에 놓이고, 높이는 그 사이 높이를 넘지 않습니다. */
13
14
  "content": {
14
15
  "color": "var(--seed-color-bg-layer-floating)",
15
16
  "cornerRadius": "var(--seed-radius-r5)",
17
+ /** content와 좌우 안전 영역 경계 사이의 최소 간격입니다. 화면 끝이 아니라 안전 영역 경계부터 잽니다. */
16
18
  "marginX": "var(--seed-dimension-x8)",
17
19
  "marginY": "var(--seed-dimension-x16)",
18
20
  "maxWidth": "272px",
@@ -10,11 +10,15 @@ export declare const vars: {
10
10
  "exitTimingFunction": "var(--seed-timing-function-exit)",
11
11
  "exitOpacity": "0"
12
12
  },
13
+ /** content는 가로 기준으로 안전 영역의 가운데에 놓입니다. */
13
14
  "content": {
14
15
  "color": "var(--seed-color-bg-layer-floating)",
15
16
  "maxWidth": "480px",
17
+ /** inset을 빼지 않은 viewport height 또는 parent height에 대한 최대 비율입니다. 최대 높이는 min(maxHeightFraction × 높이, 상단 inset을 뺀 높이)이므로, content는 상단 안전 영역 경계까지만 커집니다. */
18
+ "maxHeightFraction": "0.9",
16
19
  "paddingX": "var(--seed-dimension-spacing-x-global-gutter)",
17
20
  "paddingTop": "var(--seed-dimension-x6)",
21
+ /** 이 값은 하단 inset과 합산하여 적용합니다. */
18
22
  "paddingBottom": "var(--seed-dimension-x4)",
19
23
  "topCornerRadius": "var(--seed-radius-r5)",
20
24
  "enterDuration": "var(--seed-duration-d6)",
@@ -24,6 +28,7 @@ export declare const vars: {
24
28
  },
25
29
  "header": {
26
30
  "gap": "var(--seed-dimension-x1)",
31
+ /** 이 값은 하단 inset과 합산하여 적용합니다. */
27
32
  "paddingBottom": "var(--seed-dimension-x4)"
28
33
  },
29
34
  "title": {
@@ -13,6 +13,7 @@ export const vars = {
13
13
  "content": {
14
14
  "color": "var(--seed-color-bg-layer-floating)",
15
15
  "maxWidth": "480px",
16
+ "maxHeightFraction": "0.9",
16
17
  "paddingX": "var(--seed-dimension-spacing-x-global-gutter)",
17
18
  "paddingTop": "var(--seed-dimension-x6)",
18
19
  "paddingBottom": "var(--seed-dimension-x4)",
@@ -1,6 +1,7 @@
1
1
  export declare const vars: {
2
2
  "base": {
3
3
  "enabled": {
4
+ /** region은 좌우와 하단 안전 영역 경계 안쪽에 배치되므로, paddingX와 하단 쪽 paddingY는 안전 영역 경계부터 잽니다. */
4
5
  "region": {
5
6
  "paddingX": "var(--seed-dimension-x2)",
6
7
  "paddingY": "var(--seed-dimension-x2)",
@@ -2,7 +2,7 @@ export declare const vars: {
2
2
  "themeIos": {
3
3
  "enabled": {
4
4
  "root": {
5
- "height": "44px",
5
+ "height": "56px",
6
6
  "paddingX": "var(--seed-dimension-x4)"
7
7
  }
8
8
  }
@@ -2,7 +2,7 @@ export const vars = {
2
2
  "themeIos": {
3
3
  "enabled": {
4
4
  "root": {
5
- "height": "44px",
5
+ "height": "56px",
6
6
  "paddingX": "var(--seed-dimension-x4)"
7
7
  }
8
8
  }