@seed-design/css 1.2.0 → 1.2.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-design/css",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -73,6 +73,7 @@
73
73
  font-size: var(--seed-font-size-t8);
74
74
  line-height: var(--seed-line-height-t8);
75
75
  font-weight: var(--seed-font-weight-bold);
76
+ word-break: keep-all;
76
77
  margin: 0;
77
78
  }
78
79
  .seed-bottom-sheet__description {
@@ -80,6 +81,8 @@
80
81
  font-size: var(--seed-font-size-t5);
81
82
  line-height: var(--seed-line-height-t5);
82
83
  font-weight: var(--seed-font-weight-regular);
84
+ padding-left: var(--seed-dimension-spacing-x-global-gutter);
85
+ padding-right: var(--seed-dimension-spacing-x-global-gutter);
83
86
  margin: 0;
84
87
  white-space: pre-wrap;
85
88
  }
@@ -114,8 +117,8 @@
114
117
  justify-content: center;
115
118
  align-items: center;
116
119
  border: none;
117
- top: var(--seed-dimension-x5);
118
- right: var(--seed-dimension-x5);
120
+ top: var(--seed-dimension-x6);
121
+ right: var(--seed-dimension-x4);
119
122
  border-radius: var(--seed-radius-full);
120
123
  background: var(--seed-color-bg-neutral-weak);
121
124
  width: 28px;
@@ -134,16 +137,28 @@
134
137
  }
135
138
  .seed-bottom-sheet__header--headerAlign_left {
136
139
  justify-content: flex-start;
140
+ }
141
+ .seed-bottom-sheet__title--headerAlign_left {
142
+ padding-left: var(--seed-dimension-spacing-x-global-gutter);
143
+ padding-right: var(--seed-dimension-spacing-x-global-gutter);
144
+ }
145
+ .seed-bottom-sheet__title--headerAlign_left[data-show-close-button] {
137
146
  padding-left: var(--seed-dimension-spacing-x-global-gutter);
138
147
  padding-right: 50px;
139
148
  }
140
149
  .seed-bottom-sheet__header--headerAlign_center {
141
150
  justify-content: center;
142
- padding-left: 50px;
143
- padding-right: 50px;
144
151
  text-align: center;
145
152
  }
146
- .seed-bottom-sheet__backdrop--skipAnimation_false:is([data-state="open"], [data-open])[data-snap-points='false'] {
153
+ .seed-bottom-sheet__title--headerAlign_center {
154
+ padding-left: var(--seed-dimension-spacing-x-global-gutter);
155
+ padding-right: var(--seed-dimension-spacing-x-global-gutter);
156
+ }
157
+ .seed-bottom-sheet__title--headerAlign_center[data-show-close-button] {
158
+ padding-left: 60px;
159
+ padding-right: 60px;
160
+ }
161
+ .seed-bottom-sheet__backdrop--skipAnimation_false:is([data-state="open"], [data-open])[data-snap-points='false']:not([data-animation-done='true']) {
147
162
  animation-name: fade-in;
148
163
  animation-duration: var(--seed-duration-d6);
149
164
  animation-timing-function: var(--seed-timing-function-enter);
@@ -153,7 +168,7 @@
153
168
  animation-duration: var(--seed-duration-d4);
154
169
  animation-timing-function: var(--seed-timing-function-exit);
155
170
  }
156
- .seed-bottom-sheet__backdrop--skipAnimation_false:is([data-state="open"], [data-open])[data-snap-points='true'][data-should-overlay-animate='true'] {
171
+ .seed-bottom-sheet__backdrop--skipAnimation_false:is([data-state="open"], [data-open])[data-snap-points='true'][data-should-overlay-animate='true']:not([data-animation-done='true']) {
157
172
  animation-name: fade-in;
158
173
  animation-duration: var(--seed-duration-d6);
159
174
  animation-timing-function: var(--seed-timing-function-enter);
@@ -162,7 +177,7 @@
162
177
  animation-duration: var(--seed-duration-d6);
163
178
  animation-timing-function: var(--seed-timing-function-enter-expressive);
164
179
  }
165
- .seed-bottom-sheet__content--skipAnimation_false:is([data-state="open"], [data-open])[data-snap-points='false'] {
180
+ .seed-bottom-sheet__content--skipAnimation_false:is([data-state="open"], [data-open])[data-snap-points='false']:not([data-animation-done='true']) {
166
181
  animation-name: drawer-slide-from-bottom;
167
182
  animation-duration: var(--seed-duration-d6);
168
183
  animation-timing-function: var(--seed-timing-function-enter-expressive);
@@ -172,7 +187,7 @@
172
187
  animation-duration: var(--seed-duration-d4);
173
188
  animation-timing-function: var(--seed-timing-function-exit);
174
189
  }
175
- .seed-bottom-sheet__content--skipAnimation_false:is([data-state="open"], [data-open])[data-delayed-snap-points='true'] {
190
+ .seed-bottom-sheet__content--skipAnimation_false:is([data-state="open"], [data-open])[data-delayed-snap-points='true']:not([data-animation-done='true']) {
176
191
  animation-name: drawer-slide-from-bottom;
177
192
  animation-duration: var(--seed-duration-d6);
178
193
  animation-timing-function: var(--seed-timing-function-enter-expressive);
@@ -11,7 +11,7 @@
11
11
  height: var(--seed-dimension-x6);
12
12
  background: transparent;
13
13
  --seed-icon-size: var(--seed-dimension-x6);
14
- --seed-icon-color: var(--seed-color-fg-neutral-inverted);
14
+ --seed-icon-color: var(--seed-color-palette-static-white);
15
15
  }
16
16
  .seed-image-frame-reaction-button::before {
17
17
  content: '';
@@ -25,5 +25,5 @@
25
25
  outline: none;
26
26
  }
27
27
  .seed-image-frame-reaction-button:is([aria-pressed=true], [data-pressed]) {
28
- --seed-icon-color: var(--seed-color-fg-brand);
28
+ --seed-icon-color: var(--seed-color-bg-transparent);
29
29
  }
@@ -1,17 +1,15 @@
1
1
  .seed-image-frame {
2
2
  position: relative;
3
+ overflow: hidden;
4
+ border-radius: inherit;
3
5
  }
4
6
  .seed-image-frame > img, .seed-image-frame > video {
7
+ display: block;
8
+ width: 100%;
9
+ height: 100%;
5
10
  object-fit: cover;
11
+ border-radius: inherit;
6
12
  }
7
- .seed-image-frame--rounded_true {
8
- overflow: hidden;
9
- border-radius: var(--seed-radius-r2);
10
- }
11
- .seed-image-frame--rounded_true > img, .seed-image-frame--rounded_true > video {
12
- border-radius: var(--seed-radius-r2);
13
- }
14
- .seed-image-frame--rounded_false {}
15
13
  .seed-image-frame--stroke_true::after {
16
14
  content: '';
17
15
  position: absolute;
@@ -23,4 +21,8 @@
23
21
  border-radius: inherit;
24
22
  box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-subtle);
25
23
  }
26
- .seed-image-frame--stroke_false {}
24
+ .seed-image-frame--stroke_false {}
25
+ .seed-image-frame--rounded_true {
26
+ border-radius: var(--seed-radius-r2);
27
+ }
28
+ .seed-image-frame--rounded_false {}
@@ -2,11 +2,11 @@ declare interface ImageFrameVariant {
2
2
  /**
3
3
  * @default false
4
4
  */
5
- rounded: boolean;
5
+ stroke: boolean;
6
6
  /**
7
7
  * @default false
8
8
  */
9
- stroke: boolean;
9
+ rounded: boolean;
10
10
  }
11
11
 
12
12
  declare type ImageFrameVariantMap = {
@@ -2,18 +2,18 @@ import './image-frame.css';
2
2
  import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
3
 
4
4
  const defaultVariant = {
5
- "rounded": false,
6
- "stroke": false
5
+ "stroke": false,
6
+ "rounded": false
7
7
  };
8
8
 
9
9
  const compoundVariants = [];
10
10
 
11
11
  export const imageFrameVariantMap = {
12
- "rounded": [
12
+ "stroke": [
13
13
  true,
14
14
  false
15
15
  ],
16
- "stroke": [
16
+ "rounded": [
17
17
  true,
18
18
  false
19
19
  ]
@@ -42,27 +42,44 @@ export declare const vars: {
42
42
  "color": "var(--seed-color-fg-neutral-muted)",
43
43
  "fontSize": "var(--seed-font-size-t5)",
44
44
  "lineHeight": "var(--seed-line-height-t5)",
45
- "fontWeight": "var(--seed-font-weight-regular)"
45
+ "fontWeight": "var(--seed-font-weight-regular)",
46
+ "paddingX": "var(--seed-dimension-spacing-x-global-gutter)"
46
47
  },
47
48
  "closeButton": {
48
- "fromTop": "var(--seed-dimension-x5)",
49
- "fromRight": "var(--seed-dimension-x5)"
49
+ "fromTop": "var(--seed-dimension-x6)",
50
+ "fromRight": "var(--seed-dimension-x4)"
50
51
  }
51
52
  }
52
53
  },
53
- "headerAlignmentLeft": {
54
+ "headerAlignmentLeftCloseButtonTrue": {
54
55
  "enabled": {
55
- "header": {
56
+ "title": {
57
+ "paddingRight": "50px",
58
+ "paddingLeft": "var(--seed-dimension-spacing-x-global-gutter)"
59
+ }
60
+ }
61
+ },
62
+ "headerAlignmentLeftCloseButtonFalse": {
63
+ "enabled": {
64
+ "title": {
56
65
  "paddingLeft": "var(--seed-dimension-spacing-x-global-gutter)",
57
- "paddingRight": "50px"
66
+ "paddingRight": "var(--seed-dimension-spacing-x-global-gutter)"
58
67
  }
59
68
  }
60
69
  },
61
- "headerAlignmentCenter": {
70
+ "headerAlignmentCenterCloseButtonTrue": {
62
71
  "enabled": {
63
- "header": {
64
- "paddingLeft": "50px",
65
- "paddingRight": "50px"
72
+ "title": {
73
+ "paddingLeft": "60px",
74
+ "paddingRight": "60px"
75
+ }
76
+ }
77
+ },
78
+ "headerAlignmentCenterCloseButtonFalse": {
79
+ "enabled": {
80
+ "title": {
81
+ "paddingLeft": "var(--seed-dimension-spacing-x-global-gutter)",
82
+ "paddingRight": "var(--seed-dimension-spacing-x-global-gutter)"
66
83
  }
67
84
  }
68
85
  }
@@ -42,27 +42,44 @@ export const vars = {
42
42
  "color": "var(--seed-color-fg-neutral-muted)",
43
43
  "fontSize": "var(--seed-font-size-t5)",
44
44
  "lineHeight": "var(--seed-line-height-t5)",
45
- "fontWeight": "var(--seed-font-weight-regular)"
45
+ "fontWeight": "var(--seed-font-weight-regular)",
46
+ "paddingX": "var(--seed-dimension-spacing-x-global-gutter)"
46
47
  },
47
48
  "closeButton": {
48
- "fromTop": "var(--seed-dimension-x5)",
49
- "fromRight": "var(--seed-dimension-x5)"
49
+ "fromTop": "var(--seed-dimension-x6)",
50
+ "fromRight": "var(--seed-dimension-x4)"
50
51
  }
51
52
  }
52
53
  },
53
- "headerAlignmentLeft": {
54
+ "headerAlignmentLeftCloseButtonTrue": {
54
55
  "enabled": {
55
- "header": {
56
+ "title": {
57
+ "paddingRight": "50px",
58
+ "paddingLeft": "var(--seed-dimension-spacing-x-global-gutter)"
59
+ }
60
+ }
61
+ },
62
+ "headerAlignmentLeftCloseButtonFalse": {
63
+ "enabled": {
64
+ "title": {
56
65
  "paddingLeft": "var(--seed-dimension-spacing-x-global-gutter)",
57
- "paddingRight": "50px"
66
+ "paddingRight": "var(--seed-dimension-spacing-x-global-gutter)"
58
67
  }
59
68
  }
60
69
  },
61
- "headerAlignmentCenter": {
70
+ "headerAlignmentCenterCloseButtonTrue": {
62
71
  "enabled": {
63
- "header": {
64
- "paddingLeft": "50px",
65
- "paddingRight": "50px"
72
+ "title": {
73
+ "paddingLeft": "60px",
74
+ "paddingRight": "60px"
75
+ }
76
+ }
77
+ },
78
+ "headerAlignmentCenterCloseButtonFalse": {
79
+ "enabled": {
80
+ "title": {
81
+ "paddingLeft": "var(--seed-dimension-spacing-x-global-gutter)",
82
+ "paddingRight": "var(--seed-dimension-spacing-x-global-gutter)"
66
83
  }
67
84
  }
68
85
  }
@@ -3,27 +3,32 @@ export declare const vars: {
3
3
  "enabled": {
4
4
  /** 하트 아이콘 토글 버튼입니다. 이미지 위에서 좋아요 기능에 사용됩니다. */
5
5
  "root": {
6
- /** 버튼 배경색입니다. */
7
- "color": "var(--seed-color-palette-static-black-alpha-200)",
8
- "cornerRadius": "var(--seed-radius-full)",
9
6
  /** 보이는 버튼 크기입니다. */
10
7
  "size": "var(--seed-dimension-x6)",
11
8
  /** 터치 영역 크기입니다. */
12
9
  "targetSize": "var(--seed-dimension-x10)"
13
10
  },
14
- /** 하트 아이콘입니다. 기본 상태에서는 IconHeartLine, 선택 상태에서는 IconHeartFill을 사용합니다. */
15
- "icon": {
16
- /** 버튼 배경색입니다. */
17
- "color": "var(--seed-color-fg-neutral-inverted)",
11
+ /** lineIcon 아래에 내려가는 하트 아이콘입니다. */
12
+ "fillIcon": {
13
+ "gradient": "var(--seed-color-palette-static-black-alpha-300) 0%, var(--seed-color-palette-static-black-alpha-300) 100%",
14
+ /** 보이는 버튼 크기입니다. */
15
+ "size": "var(--seed-dimension-x6)"
16
+ },
17
+ /** fillIcon 위로 올라가는 하트 아이콘입니다. */
18
+ "lineIcon": {
19
+ "color": "var(--seed-color-palette-static-white)",
18
20
  /** 보이는 버튼 크기입니다. */
19
21
  "size": "var(--seed-dimension-x6)"
20
22
  }
21
23
  },
22
24
  "selected": {
23
- /** 하트 아이콘입니다. 기본 상태에서는 IconHeartLine, 선택 상태에서는 IconHeartFill을 사용합니다. */
24
- "icon": {
25
- /** 버튼 배경색입니다. */
26
- "color": "var(--seed-color-fg-brand)"
25
+ /** lineIcon 아래에 내려가는 하트 아이콘입니다. */
26
+ "fillIcon": {
27
+ "gradient": "#FF9A56 0%, #FF6600 100%"
28
+ },
29
+ /** fillIcon 위로 올라가는 하트 아이콘입니다. */
30
+ "lineIcon": {
31
+ "color": "var(--seed-color-bg-transparent)"
27
32
  }
28
33
  }
29
34
  }
@@ -2,19 +2,24 @@ export const vars = {
2
2
  "base": {
3
3
  "enabled": {
4
4
  "root": {
5
- "color": "var(--seed-color-palette-static-black-alpha-200)",
6
- "cornerRadius": "var(--seed-radius-full)",
7
5
  "size": "var(--seed-dimension-x6)",
8
6
  "targetSize": "var(--seed-dimension-x10)"
9
7
  },
10
- "icon": {
11
- "color": "var(--seed-color-fg-neutral-inverted)",
8
+ "fillIcon": {
9
+ "gradient": "var(--seed-color-palette-static-black-alpha-300) 0%, var(--seed-color-palette-static-black-alpha-300) 100%",
10
+ "size": "var(--seed-dimension-x6)"
11
+ },
12
+ "lineIcon": {
13
+ "color": "var(--seed-color-palette-static-white)",
12
14
  "size": "var(--seed-dimension-x6)"
13
15
  }
14
16
  },
15
17
  "selected": {
16
- "icon": {
17
- "color": "var(--seed-color-fg-brand)"
18
+ "fillIcon": {
19
+ "gradient": "#FF9A56 0%, #FF6600 100%"
20
+ },
21
+ "lineIcon": {
22
+ "color": "var(--seed-color-bg-transparent)"
18
23
  }
19
24
  }
20
25
  }
@@ -1,47 +1,53 @@
1
1
  export declare const vars: {
2
2
  /**
3
- * 모서리에 라운드 스타일을 적용합니다.
3
+ * 이미지 테두리에 스트로크를 표시합니다.
4
4
  */
5
- "roundedTrue": {
5
+ "strokeTrue": {
6
6
  "enabled": {
7
7
  "root": {
8
- /** rounded 옵션 사용 시 적용되는 모서리 반경입니다. */
9
- "cornerRadius": "var(--seed-radius-r2)"
8
+ /** stroke 옵션 사용 시 적용되는 테두리 색상입니다. */
9
+ "strokeColor": "var(--seed-color-stroke-neutral-subtle)",
10
+ /** stroke 옵션 사용 시 적용되는 테두리 두께입니다. */
11
+ "strokeWidth": "1px"
10
12
  }
11
13
  }
12
14
  },
13
15
  /**
14
- * 모서리를 직각으로 유지합니다.
16
+ * 테두리를 표시하지 않습니다.
15
17
  */
16
- "roundedFalse": {
18
+ "strokeFalse": {
17
19
  "enabled": {
18
20
  "root": {
19
- /** rounded 옵션 사용 시 적용되는 모서리 반경입니다. */
20
- "cornerRadius": "0px"
21
+ /** stroke 옵션 사용 시 적용되는 테두리 두께입니다. */
22
+ "strokeWidth": "0px"
21
23
  }
22
24
  }
23
25
  },
24
26
  /**
25
- * 이미지 테두리에 스트로크를 표시합니다.
27
+ * 모서리를 둥글게 처리합니다.
28
+ @deprecated `rounded` 옵션은 @seed-design/react@1.3.0에서 제거될 예정입니다. `borderRadius="r2"`를 사용하세요.
29
+ Reason: 모서리 스타일은 `borderRadius` prop으로 통일합니다.
30
+
26
31
  */
27
- "strokeTrue": {
32
+ "roundedTrue": {
28
33
  "enabled": {
29
34
  "root": {
30
- /** stroke 옵션 사용 시 적용되는 테두리 색상입니다. */
31
- "strokeColor": "var(--seed-color-stroke-neutral-subtle)",
32
- /** stroke 옵션 사용 시 적용되는 테두리 두께입니다. */
33
- "strokeWidth": "1px"
35
+ /** rounded 옵션 사용 시 적용되는 모서리 반경입니다. */
36
+ "cornerRadius": "var(--seed-radius-r2)"
34
37
  }
35
38
  }
36
39
  },
37
40
  /**
38
- * 테두리를 표시하지 않습니다.
41
+ * 모서리를 둥글게 처리하지 않습니다.
42
+ @deprecated `rounded` 옵션은 @seed-design/react@1.3.0에서 제거될 예정입니다. `borderRadius="r2"`를 사용하세요.
43
+ Reason: 모서리 스타일은 `borderRadius` prop으로 통일합니다.
44
+
39
45
  */
40
- "strokeFalse": {
46
+ "roundedFalse": {
41
47
  "enabled": {
42
48
  "root": {
43
- /** stroke 옵션 사용 시 적용되는 테두리 두께입니다. */
44
- "strokeWidth": "0px"
49
+ /** rounded 옵션 사용 시 적용되는 모서리 반경입니다. */
50
+ "cornerRadius": "0px"
45
51
  }
46
52
  }
47
53
  }
@@ -1,30 +1,30 @@
1
1
  export const vars = {
2
- "roundedTrue": {
2
+ "strokeTrue": {
3
3
  "enabled": {
4
4
  "root": {
5
- "cornerRadius": "var(--seed-radius-r2)"
5
+ "strokeColor": "var(--seed-color-stroke-neutral-subtle)",
6
+ "strokeWidth": "1px"
6
7
  }
7
8
  }
8
9
  },
9
- "roundedFalse": {
10
+ "strokeFalse": {
10
11
  "enabled": {
11
12
  "root": {
12
- "cornerRadius": "0px"
13
+ "strokeWidth": "0px"
13
14
  }
14
15
  }
15
16
  },
16
- "strokeTrue": {
17
+ "roundedTrue": {
17
18
  "enabled": {
18
19
  "root": {
19
- "strokeColor": "var(--seed-color-stroke-neutral-subtle)",
20
- "strokeWidth": "1px"
20
+ "cornerRadius": "var(--seed-radius-r2)"
21
21
  }
22
22
  }
23
23
  },
24
- "strokeFalse": {
24
+ "roundedFalse": {
25
25
  "enabled": {
26
26
  "root": {
27
- "strokeWidth": "0px"
27
+ "cornerRadius": "0px"
28
28
  }
29
29
  }
30
30
  }