@nurihaus/web-design-system 3.24.0 → 3.25.1

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
@@ -224,8 +224,10 @@
224
224
  --motion-progress-ease: var(--ease-out);
225
225
  --motion-indicate-spring-ease: var(--ease-spring-quick);
226
226
  --motion-indicate-spring-duration: var(--duration-spring-quick);
227
- --motion-flip-spring-ease: var(--ease-spring-medium);
228
- --motion-flip-spring-duration: var(--duration-spring-medium);
227
+ --motion-flip-spring-ease: var(--ease-spring-basic);
228
+ --motion-flip-spring-duration: var(--duration-spring-basic);
229
+ --motion-flip-lift: 56px;
230
+ --motion-flip-lift-ease: var(--ease-symmetric);
229
231
  --motion-tilt-spring-ease: var(--ease-spring-bounce);
230
232
  --motion-tilt-spring-duration: var(--duration-spring-bounce);
231
233
  --motion-tilt-follow: var(--duration-xs);
@@ -1345,7 +1347,8 @@ p {
1345
1347
  * 공용 키프레임. 컴포넌트 CSS 는 @keyframes 를 두지 않고 이 이름을 쓴다(빌드 R18).
1346
1348
  * 시간·곡선은 쓰는 쪽 animation 에서 --motion-{토큰}-* 로 준다. 여기는 모양만 정한다.
1347
1349
  * 쓰는 쪽이 두는 입력 변수: --motion-slide-offset(transform 값), --motion-swipe-from, --motion-swipe-to,
1348
- * --motion-content-height(펼친 높이. Radix 의 --radix-collapsible-content-height 등).
1350
+ * --motion-content-height(펼친 높이. Radix 의 --radix-collapsible-content-height 등),
1351
+ * --motion-flip-shadow(motion-flip-shadow 가 가장 떠올랐을 때의 drop-shadow 인자).
1349
1352
  * 아래쪽 공용 클래스의 입력 --i·--motion-reveal-delay·--motion-appear-delay 는 helpers/motion 이 둔다.
1350
1353
  */
1351
1354
  @keyframes motion-enter-fade {
@@ -1449,6 +1452,28 @@ p {
1449
1452
  transform: translateX(100%);
1450
1453
  }
1451
1454
  }
1455
+ /*
1456
+ * flip: 반 바퀴 도는 동안 카드가 보는 사람 쪽으로 떠올랐다 내려앉는다. transform 은 회전 전환이 쓰고 있어
1457
+ * 개별 속성 translate 로 띄운다. 회전 스프링이 90° 를 지나는 언저리(25%)에서 가장 높다. 그림자는 회전하는 판 밖(원근을 주는 요소)의 filter 라 실제 모양을 따른다
1458
+ */
1459
+ @keyframes motion-flip-lift {
1460
+ 0%,
1461
+ 100% {
1462
+ translate: 0 0 0;
1463
+ }
1464
+ 25% {
1465
+ translate: 0 0 var(--motion-flip-lift);
1466
+ }
1467
+ }
1468
+ @keyframes motion-flip-shadow {
1469
+ 0%,
1470
+ 100% {
1471
+ filter: drop-shadow(0 0 0 transparent);
1472
+ }
1473
+ 25% {
1474
+ filter: drop-shadow(var(--motion-flip-shadow));
1475
+ }
1476
+ }
1452
1477
  @keyframes motion-attention-blink {
1453
1478
  0%,
1454
1479
  100% {
@@ -3443,6 +3468,9 @@ p {
3443
3468
  text-align: start;
3444
3469
  /* 반 바퀴 돌 때의 원근. 카드 폭의 세 배쯤이라 가장자리가 과하게 커지지 않는다 */
3445
3470
  perspective: 1000px; /* raw-px */
3471
+ /* 뒤집다 가장 떠올랐을 때 카드 밑 그림자(drop-shadow 인자). 카드가 뜬 만큼 아래로 번진다 */
3472
+ --motion-flip-shadow: 0 var(--spacing-24) var(--spacing-20)
3473
+ color-mix(in srgb, var(--surface-overlay) 45%, transparent);
3446
3474
  }
3447
3475
  .member-card:is(button) {
3448
3476
  cursor: pointer;
@@ -3511,6 +3539,13 @@ p {
3511
3539
  .member-card[data-side='back'] .member-card-inner {
3512
3540
  transform: rotateY(180deg);
3513
3541
  }
3542
+ /* 뒤집는 동안: 보는 사람 쪽으로 떠올랐다 내려앉고 그림자가 따라 번졌다 줄어든다. 회전은 .member-card-inner 의 전환이 한다 */
3543
+ .member-card[data-flipping] {
3544
+ animation: motion-flip-shadow var(--motion-flip-spring-duration) var(--motion-flip-lift-ease);
3545
+ }
3546
+ .member-card[data-flipping] .member-card-inner {
3547
+ animation: motion-flip-lift var(--motion-flip-spring-duration) var(--motion-flip-lift-ease);
3548
+ }
3514
3549
  /*
3515
3550
  * depth 에서 손가락을 따라 기우는 판. 기울이는 동안만 data-tilt 가 붙어 transform 이 생기고,
3516
3551
  * 쉬면 transform 이 없어져 글자가 평평한 층에서 선명하게 그려진다
@@ -3764,7 +3799,8 @@ p {
3764
3799
  }
3765
3800
  /* depth ****************************************************************************************** */
3766
3801
  /*
3767
- * 두께. 기울이는 동안만 두 면을 앞뒤로 조금 띄우고 그 사이에 판 한 장을 둔다.
3802
+ * 두께. 기울이거나 뒤집는 동안만 두 면을 앞뒤로 조금 띄우고 그 사이에 판 한 장을 둔다.
3803
+ * 판의 양옆에는 두께만 한 옆면을 세워 두어 반 바퀴 도는 중간(90° 언저리)에 카드 옆면이 보인다.
3768
3804
  * 쉴 때 면을 띄워 두면 원근 때문에 글자가 미세하게 커져 흐려진다
3769
3805
  */
3770
3806
  .member-card-edge {
@@ -3772,17 +3808,59 @@ p {
3772
3808
  inset: 0;
3773
3809
  border-radius: inherit;
3774
3810
  background: color-mix(in srgb, var(--surface-highlight) 22%, var(--member-card-surface));
3811
+ /* 옆면(::before·::after)이 판에 눌려 납작해지지 않게 3D 를 잇는다 */
3812
+ transform-style: preserve-3d;
3775
3813
  visibility: hidden;
3776
3814
  }
3777
- .member-card-tilt[data-tilt] .member-card-edge {
3815
+ .member-card-tilt[data-tilt] .member-card-edge,.member-card[data-flipping] .member-card-edge {
3778
3816
  visibility: visible;
3779
3817
  }
3780
- .member-card-tilt[data-tilt] .member-card-face.front {
3818
+ /* 옆면. 세로 가장자리에 두께(앞뒤 면 사이)만 한 띠를 90° 세운다. 둥근 모서리 구간은 비운다 */
3819
+ .member-card-edge::before,.member-card-edge::after {
3820
+ content: '';
3821
+ position: absolute;
3822
+ top: var(--radius-surface);
3823
+ bottom: var(--radius-surface);
3824
+ width: calc(var(--spacing-2) * 2);
3825
+ background: linear-gradient(
3826
+ color-mix(in srgb, var(--surface-highlight) 45%, var(--member-card-surface)),
3827
+ color-mix(in srgb, var(--surface-highlight) 18%, var(--member-card-surface))
3828
+ );
3829
+ }
3830
+ .member-card-edge::before {
3831
+ left: 0;
3832
+ transform: translateX(-50%) rotateY(90deg);
3833
+ }
3834
+ .member-card-edge::after {
3835
+ right: 0;
3836
+ transform: translateX(50%) rotateY(90deg);
3837
+ }
3838
+ :is(.member-card-tilt[data-tilt], .member-card[data-flipping]) .member-card-face.front {
3781
3839
  transform: translateZ(var(--spacing-2));
3782
3840
  }
3783
- .member-card-tilt[data-tilt] .member-card-face.back {
3841
+ :is(.member-card-tilt[data-tilt], .member-card[data-flipping]) .member-card-face.back {
3784
3842
  transform: rotateY(180deg) translateZ(var(--spacing-2));
3785
3843
  }
3844
+ /* 뒤집는 동안 면 위로 비스듬히 지나가는 빛. 쉴 때는 숨는다 */
3845
+ .member-card-sheen {
3846
+ position: absolute;
3847
+ inset: 0;
3848
+ z-index: var(--z-raised);
3849
+ background: linear-gradient(
3850
+ 105deg,
3851
+ transparent 30%,
3852
+ color-mix(in srgb, var(--surface-highlight) 32%, transparent) 50%,
3853
+ transparent 70%
3854
+ );
3855
+ mix-blend-mode: screen;
3856
+ visibility: hidden;
3857
+ pointer-events: none;
3858
+ }
3859
+ .member-card[data-flipping] .member-card-sheen {
3860
+ visibility: visible;
3861
+ animation: motion-attention-shine var(--motion-flip-spring-duration)
3862
+ var(--motion-flip-lift-ease) both;
3863
+ }
3786
3864
  /* 반사광. 손가락 반대편이 밝다 */
3787
3865
  .member-card-glare {
3788
3866
  position: absolute;
@@ -3866,6 +3944,13 @@ p {
3866
3944
  box-shadow: inset 0 var(--hairline) 0 color-mix(in srgb, var(--surface-highlight) 50%, transparent);
3867
3945
  pointer-events: none;
3868
3946
  }
3947
+ /*
3948
+ * 펼친 동안 쉬는 카드는 집어 든 것처럼 자리를 비운다. 두면 70% 바탕 뒤로 비쳐, 펼친 카드가 뒤집히며 좁아질 때
3949
+ * 그 뒤에 눕힌 카드가 하나 더 보인다. 닫히면(data-state='closed') 다시 보여 View Transitions 의 새 장면에 잡힌다
3950
+ */
3951
+ .member-card.rest[data-state='open'] {
3952
+ visibility: hidden;
3953
+ }
3869
3954
  /* 펼치는 모션이 이 판과 펼친 카드를 같은 이름으로 잇는다. 이름은 한 번에 한 요소에만 있어야 해서 펼친 동안은 뗀다 */
3870
3955
  .member-card.rest[data-state='closed'] .member-card-tilt {
3871
3956
  view-transition-name: member-card;
@@ -3931,6 +4016,20 @@ p {
3931
4016
  color: var(--text-on-overlay);
3932
4017
  cursor: var(--cursor-button);
3933
4018
  }
4019
+ .member-card-flip {
4020
+ display: inline-flex;
4021
+ align-self: flex-end;
4022
+ align-items: center;
4023
+ justify-content: center;
4024
+ width: var(--touch-target);
4025
+ height: var(--touch-target);
4026
+ padding: 0;
4027
+ border: none;
4028
+ border-radius: var(--radius-circle);
4029
+ background: color-mix(in srgb, var(--text-on-overlay) 16%, transparent);
4030
+ color: var(--text-on-overlay);
4031
+ cursor: var(--cursor-button);
4032
+ }
3934
4033
  .member-card-detail {
3935
4034
  text-align: center;
3936
4035
  }
@@ -137,10 +137,12 @@ export declare const motionTokens: {
137
137
  readonly flip: {
138
138
  readonly spring: {
139
139
  readonly type: "spring";
140
- readonly stiffness: 270;
141
- readonly damping: 25;
140
+ readonly stiffness: 200;
141
+ readonly damping: 30;
142
142
  readonly mass: 1;
143
143
  };
144
+ readonly lift: "56px";
145
+ readonly "lift-ease": readonly [0.5, 0, 0.5, 1];
144
146
  };
145
147
  readonly tilt: {
146
148
  readonly spring: {
package/dist/tokens.css CHANGED
@@ -222,8 +222,10 @@
222
222
  --motion-progress-ease: var(--ease-out);
223
223
  --motion-indicate-spring-ease: var(--ease-spring-quick);
224
224
  --motion-indicate-spring-duration: var(--duration-spring-quick);
225
- --motion-flip-spring-ease: var(--ease-spring-medium);
226
- --motion-flip-spring-duration: var(--duration-spring-medium);
225
+ --motion-flip-spring-ease: var(--ease-spring-basic);
226
+ --motion-flip-spring-duration: var(--duration-spring-basic);
227
+ --motion-flip-lift: 56px;
228
+ --motion-flip-lift-ease: var(--ease-symmetric);
227
229
  --motion-tilt-spring-ease: var(--ease-spring-bounce);
228
230
  --motion-tilt-spring-duration: var(--duration-spring-bounce);
229
231
  --motion-tilt-follow: var(--duration-xs);
package/dist/tokens.js CHANGED
@@ -891,10 +891,12 @@ var motionTokens = {
891
891
  "flip": {
892
892
  "spring": {
893
893
  "type": "spring",
894
- "stiffness": 270,
895
- "damping": 25,
894
+ "stiffness": 200,
895
+ "damping": 30,
896
896
  "mass": 1
897
- }
897
+ },
898
+ "lift": "56px",
899
+ "lift-ease": [0.5, 0, 0.5, 1]
898
900
  },
899
901
  "tilt": {
900
902
  "spring": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nurihaus/web-design-system",
3
- "version": "3.24.0",
3
+ "version": "3.25.1",
4
4
  "description": "Nurihaus 디자인 시스템 — 컴포넌트와 디자인 토큰",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",