@nurihaus/web-design-system 3.20.0 → 3.21.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
@@ -176,6 +176,7 @@
176
176
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
177
177
  --ease-symmetric: cubic-bezier(0.5, 0, 0.5, 1);
178
178
  --ease-linear: linear;
179
+ --ease-decelerate: cubic-bezier(0.2, 0.8, 0.2, 1);
179
180
  --ease-spring-rapid: linear(0, 0.0273, 0.0945, 0.184, 0.2834, 0.384, 0.4804, 0.5691, 0.6483, 0.7174, 0.7764, 0.8259, 0.8667, 0.8999, 0.9264, 0.9473, 0.9634, 0.9757, 0.9849, 0.9916, 0.9964, 0.9996, 1.0017, 1.003, 1.0037, 1.0039, 1.0039, 1.0037, 1.0033, 1.003, 1.0026, 1.0022, 1.0018, 1.0015, 1.0012, 1.001, 1.0007, 1.0006, 1.0004, 1.0003, 1);
180
181
  --duration-spring-rapid: 318ms;
181
182
  --ease-spring-quick: linear(0, 0.024, 0.0825, 0.1604, 0.247, 0.3352, 0.4205, 0.5002, 0.5728, 0.6377, 0.6948, 0.7445, 0.7872, 0.8237, 0.8546, 0.8806, 0.9023, 0.9204, 0.9354, 0.9477, 0.9578, 0.9661, 0.9728, 0.9783, 0.9827, 0.9863, 0.9891, 0.9914, 0.9933, 0.9947, 0.9959, 0.9968, 0.9975, 0.9981, 0.9985, 0.9989, 0.9991, 0.9993, 0.9995, 0.9996, 1);
@@ -267,6 +268,12 @@
267
268
  --motion-result-pop-scale: 0.4;
268
269
  --motion-result-latch-offset: -6px;
269
270
  --motion-result-latch-angle: -28deg;
271
+ --motion-cycle-duration: 400ms;
272
+ --motion-cycle-ease: var(--ease-decelerate);
273
+ --motion-cycle-exit-duration: 300ms;
274
+ --motion-cycle-offset: -6px;
275
+ --motion-cycle-scale-from: 0.94;
276
+ --motion-cycle-blur: 4px;
270
277
  /* 한 줄에 나란히 놓이는 컨트롤: button, drop-down, text-field */
271
278
  --control-height-xs: 28px;
272
279
  --control-height-s: 38px;
@@ -361,6 +368,14 @@
361
368
  --menu-min-width: 180px;
362
369
  /* 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 */
363
370
  --highlight-message-max-width: 280px;
371
+ /* 돌아가는 알림 줄(Nudge): 한 줄 높이, 44 타일, 둥근 버튼, 모서리에 걸친 작은 × */
372
+ --nudge-height: 76px;
373
+ --nudge-tile-size: var(--control-height-m);
374
+ --nudge-action-height: 34px;
375
+ --nudge-dismiss-size: 18px;
376
+ --nudge-dismiss-icon-size: 12px;
377
+ --nudge-dismiss-ring: 2px;
378
+ --nudge-badge-size: 18px;
364
379
 
365
380
  /* 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) */
366
381
  --layout-max-width: 480px;
@@ -666,6 +681,8 @@
666
681
  --surface-danger-subtle: var(--color-accent-red-50);
667
682
  --surface-success-subtle: var(--color-accent-green-50);
668
683
  --surface-warning-subtle: var(--color-accent-orange-50);
684
+ --surface-warning: var(--color-accent-orange-700);
685
+ --surface-success: var(--color-accent-green-800);
669
686
  --surface-member-card: var(--color-black);
670
687
  --surface-aurora-grey: var(--color-grey-scale-400);
671
688
  --surface-aurora-grey-light: var(--color-grey-scale-300);
@@ -1096,6 +1113,8 @@
1096
1113
  --motion-result-description-delay: 0ms;
1097
1114
  --motion-result-action-delay: 0ms;
1098
1115
  --motion-result-blink: 0ms;
1116
+ --motion-cycle-duration: 0ms;
1117
+ --motion-cycle-exit-duration: 0ms;
1099
1118
  }
1100
1119
  }
1101
1120
  /*
@@ -1550,6 +1569,31 @@ p {
1550
1569
  .motion-press-dim:active:not(:disabled):not([data-disabled]):not([aria-disabled='true'])::after {
1551
1570
  opacity: var(--motion-press-dim);
1552
1571
  }
1572
+ /* cycle: 한 자리에서 항목이 바뀐다. 나가는 항목은 위로 오르며 흐려지고, 들어오는 항목은 작은 데서 커지며 또렷해진다 */
1573
+ @keyframes motion-cycle-in {
1574
+ from {
1575
+ opacity: 0;
1576
+ transform: scale(var(--motion-cycle-scale-from));
1577
+ filter: blur(var(--motion-cycle-blur));
1578
+ }
1579
+ to {
1580
+ opacity: 1;
1581
+ transform: none;
1582
+ filter: none;
1583
+ }
1584
+ }
1585
+ @keyframes motion-cycle-out {
1586
+ from {
1587
+ opacity: 1;
1588
+ transform: none;
1589
+ filter: none;
1590
+ }
1591
+ to {
1592
+ opacity: 0;
1593
+ transform: translateY(var(--motion-cycle-offset));
1594
+ filter: blur(var(--motion-cycle-blur));
1595
+ }
1596
+ }
1553
1597
  @keyframes motion-unfold-open {
1554
1598
  from {
1555
1599
  opacity: 0;
@@ -6665,6 +6709,206 @@ button.modal-with-double-button-close-button {
6665
6709
  align-items: center;
6666
6710
  gap: var(--spacing-10);
6667
6711
  }
6712
+ /* 한 줄 높이 자리에서 항목을 차례로 돌려 보여 주는 알림 줄. 비면 높이가 0 으로 접힌다 */
6713
+ .base-nudge {
6714
+ height: var(--nudge-height);
6715
+ transition: height var(--motion-cycle-exit-duration) var(--motion-cycle-ease);
6716
+ }
6717
+ .base-nudge[data-state='closed'] {
6718
+ height: 0;
6719
+ overflow: hidden;
6720
+ }
6721
+ /***************************************************************************************************
6722
+ * *
6723
+ * nudge *
6724
+ * *
6725
+ ***************************************************************************************************/
6726
+ .nudge-viewport {
6727
+ position: relative;
6728
+ height: 100%;
6729
+ /* 세로 스크롤은 브라우저가, 가로 밀기는 컴포넌트가 받는다 */
6730
+ touch-action: pan-y;
6731
+ }
6732
+ /* 들어오는 항목은 앞 항목이 나간 뒤에 나타난다. 나가는 항목이 없으면(처음) 바로 나타난다 */
6733
+ .nudge-item {
6734
+ position: relative;
6735
+ display: flex;
6736
+ align-items: center;
6737
+ gap: var(--spacing-12);
6738
+ box-sizing: border-box;
6739
+ height: 100%;
6740
+ padding: 0 var(--spacing-14);
6741
+ border-radius: var(--radius-surface);
6742
+ background-color: var(--surface-subtle);
6743
+ animation: motion-cycle-in var(--motion-cycle-duration) var(--motion-cycle-ease) backwards;
6744
+ }
6745
+ .nudge-item[data-leaving] {
6746
+ position: absolute;
6747
+ inset: 0;
6748
+ pointer-events: none;
6749
+ animation: motion-cycle-out var(--motion-cycle-duration) var(--motion-cycle-ease) forwards;
6750
+ }
6751
+ .nudge-item[data-leaving='dismiss'] {
6752
+ animation-duration: var(--motion-cycle-exit-duration);
6753
+ }
6754
+ .nudge-item[data-leaving='cycle'] + .nudge-item {
6755
+ animation-delay: var(--motion-cycle-duration);
6756
+ }
6757
+ .nudge-item[data-leaving='dismiss'] + .nudge-item {
6758
+ animation-delay: var(--motion-cycle-exit-duration);
6759
+ }
6760
+ /* 44 색 타일. 아이콘·짧은 글·꽉 차는 그림 */
6761
+ .nudge-tile {
6762
+ position: relative;
6763
+ display: flex;
6764
+ flex: none;
6765
+ align-items: center;
6766
+ justify-content: center;
6767
+ width: var(--nudge-tile-size);
6768
+ height: var(--nudge-tile-size);
6769
+ border-radius: var(--radius-control);
6770
+ font-size: var(--font-size-sm);
6771
+ font-weight: var(--font-weight-extrabold);
6772
+ }
6773
+ .nudge-tile > img {
6774
+ width: 100%;
6775
+ height: 100%;
6776
+ border-radius: inherit;
6777
+ -o-object-fit: cover;
6778
+ object-fit: cover;
6779
+ }
6780
+ .nudge-tile[data-tone='danger'] {
6781
+ background-color: var(--surface-danger);
6782
+ color: var(--text-on-brand);
6783
+ }
6784
+ .nudge-tile[data-tone='warning'] {
6785
+ background-color: var(--surface-warning);
6786
+ color: var(--text-on-brand);
6787
+ }
6788
+ .nudge-tile[data-tone='success'] {
6789
+ background-color: var(--surface-success);
6790
+ color: var(--text-on-brand);
6791
+ }
6792
+ .nudge-tile[data-tone='brand'] {
6793
+ background-color: var(--surface-brand-subtle);
6794
+ color: var(--text-brand);
6795
+ }
6796
+ .nudge-tile[data-tone='neutral'] {
6797
+ background-color: var(--surface-base);
6798
+ color: var(--text-brand-emphasis);
6799
+ }
6800
+ .nudge-tile-badge {
6801
+ position: absolute;
6802
+ top: calc(-1 * var(--spacing-4));
6803
+ right: calc(-1 * var(--spacing-4));
6804
+ display: flex;
6805
+ align-items: center;
6806
+ justify-content: center;
6807
+ box-sizing: border-box;
6808
+ min-width: var(--nudge-badge-size);
6809
+ height: var(--nudge-badge-size);
6810
+ padding: 0 var(--spacing-4);
6811
+ border-radius: var(--radius-pill);
6812
+ background-color: var(--surface-danger);
6813
+ color: var(--text-on-brand);
6814
+ font-size: var(--font-size-xsm);
6815
+ font-weight: var(--font-weight-extrabold);
6816
+ }
6817
+ .nudge-text {
6818
+ display: flex;
6819
+ flex: 1;
6820
+ flex-direction: column;
6821
+ gap: var(--spacing-2);
6822
+ min-width: 0;
6823
+ }
6824
+ .nudge-title,
6825
+ .nudge-description {
6826
+ overflow: hidden;
6827
+ white-space: nowrap;
6828
+ text-overflow: ellipsis;
6829
+ }
6830
+ .nudge-title {
6831
+ color: var(--text-primary);
6832
+ font-size: var(--font-size-sm);
6833
+ font-weight: var(--font-weight-bold);
6834
+ }
6835
+ .nudge-description {
6836
+ color: var(--text-secondary);
6837
+ font-size: var(--font-size-xsm);
6838
+ }
6839
+ /* 둥근 버튼. 색은 항목 tone. 보이는 높이 34, 누르는 자리는 세로 44 */
6840
+ .nudge-action {
6841
+ position: relative;
6842
+ display: inline-flex;
6843
+ flex: none;
6844
+ align-items: center;
6845
+ height: var(--nudge-action-height);
6846
+ padding: 0 var(--spacing-14);
6847
+ border: 0;
6848
+ border-radius: var(--radius-pill);
6849
+ font-size: var(--font-size-xsm);
6850
+ font-weight: var(--font-weight-extrabold);
6851
+ text-decoration: none;
6852
+ white-space: nowrap;
6853
+ cursor: pointer;
6854
+ }
6855
+ .nudge-action::before {
6856
+ content: '';
6857
+ position: absolute;
6858
+ top: 50%;
6859
+ left: 0;
6860
+ right: 0;
6861
+ height: var(--touch-target);
6862
+ transform: translateY(-50%);
6863
+ }
6864
+ .nudge-item[data-tone='danger'] .nudge-action {
6865
+ background-color: var(--surface-danger);
6866
+ color: var(--text-on-brand);
6867
+ }
6868
+ .nudge-item[data-tone='warning'] .nudge-action {
6869
+ background-color: var(--surface-warning);
6870
+ color: var(--text-on-brand);
6871
+ }
6872
+ .nudge-item[data-tone='brand'] .nudge-action {
6873
+ background-color: var(--surface-brand);
6874
+ color: var(--text-on-brand);
6875
+ }
6876
+ .nudge-item[data-tone='neutral'] .nudge-action {
6877
+ background-color: var(--surface-strong);
6878
+ color: var(--text-primary);
6879
+ }
6880
+ /* 모서리에 걸친 작은 ×. 바탕색 테두리로 카드와 떼어 보이고, 누르는 자리는 44 */
6881
+ .nudge-dismiss {
6882
+ position: absolute;
6883
+ top: calc(-1 * var(--spacing-6));
6884
+ right: calc(-1 * var(--spacing-6));
6885
+ display: flex;
6886
+ align-items: center;
6887
+ justify-content: center;
6888
+ width: var(--nudge-dismiss-size);
6889
+ height: var(--nudge-dismiss-size);
6890
+ padding: 0;
6891
+ border: 0;
6892
+ border-radius: var(--radius-circle);
6893
+ background-color: var(--surface-strong);
6894
+ box-shadow: 0 0 0 var(--nudge-dismiss-ring) var(--surface-base);
6895
+ color: var(--text-secondary);
6896
+ cursor: pointer;
6897
+ }
6898
+ .nudge-dismiss::before {
6899
+ content: '';
6900
+ position: absolute;
6901
+ top: 50%;
6902
+ left: 50%;
6903
+ width: var(--touch-target);
6904
+ height: var(--touch-target);
6905
+ transform: translate(-50%, -50%);
6906
+ }
6907
+ /* 아이콘 크기 단계(xs 16)보다 작은 × — 동그라미 18 안에 12 */
6908
+ .nudge-dismiss > .icon.size-xs {
6909
+ width: var(--nudge-dismiss-icon-size);
6910
+ height: var(--nudge-dismiss-icon-size);
6911
+ }
6668
6912
  .base-numeric-spinner:where(.root) {
6669
6913
  display: inline-flex;
6670
6914
  align-items: center;
@@ -14,6 +14,7 @@ export declare const motionPresets: {
14
14
  readonly back: readonly [0.34, 1.56, 0.64, 1];
15
15
  readonly symmetric: readonly [0.5, 0, 0.5, 1];
16
16
  readonly linear: "linear";
17
+ readonly decelerate: readonly [0.2, 0.8, 0.2, 1];
17
18
  };
18
19
  readonly spring: {
19
20
  readonly rapid: {
@@ -205,5 +206,13 @@ export declare const motionTokens: {
205
206
  readonly "latch-offset": "-6px";
206
207
  readonly "latch-angle": "-28deg";
207
208
  };
209
+ readonly cycle: {
210
+ readonly duration: 0.4;
211
+ readonly ease: readonly [0.2, 0.8, 0.2, 1];
212
+ readonly "exit-duration": 0.3;
213
+ readonly offset: "-6px";
214
+ readonly "scale-from": 0.94;
215
+ readonly blur: "4px";
216
+ };
208
217
  };
209
218
  export type MotionToken = keyof typeof motionTokens;
@@ -175,6 +175,8 @@ export declare const semanticApp: {
175
175
  readonly "danger-subtle": "#FFF5F6";
176
176
  readonly "success-subtle": "#ECFDF3";
177
177
  readonly "warning-subtle": "#FFF7ED";
178
+ readonly warning: "#C2410C";
179
+ readonly success: "#166534";
178
180
  readonly "member-card": "#000000";
179
181
  readonly "aurora-grey": "#A1A1AA";
180
182
  readonly "aurora-grey-light": "#D4D4D8";
package/dist/tokens.css CHANGED
@@ -174,6 +174,7 @@
174
174
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
175
175
  --ease-symmetric: cubic-bezier(0.5, 0, 0.5, 1);
176
176
  --ease-linear: linear;
177
+ --ease-decelerate: cubic-bezier(0.2, 0.8, 0.2, 1);
177
178
  --ease-spring-rapid: linear(0, 0.0273, 0.0945, 0.184, 0.2834, 0.384, 0.4804, 0.5691, 0.6483, 0.7174, 0.7764, 0.8259, 0.8667, 0.8999, 0.9264, 0.9473, 0.9634, 0.9757, 0.9849, 0.9916, 0.9964, 0.9996, 1.0017, 1.003, 1.0037, 1.0039, 1.0039, 1.0037, 1.0033, 1.003, 1.0026, 1.0022, 1.0018, 1.0015, 1.0012, 1.001, 1.0007, 1.0006, 1.0004, 1.0003, 1);
178
179
  --duration-spring-rapid: 318ms;
179
180
  --ease-spring-quick: linear(0, 0.024, 0.0825, 0.1604, 0.247, 0.3352, 0.4205, 0.5002, 0.5728, 0.6377, 0.6948, 0.7445, 0.7872, 0.8237, 0.8546, 0.8806, 0.9023, 0.9204, 0.9354, 0.9477, 0.9578, 0.9661, 0.9728, 0.9783, 0.9827, 0.9863, 0.9891, 0.9914, 0.9933, 0.9947, 0.9959, 0.9968, 0.9975, 0.9981, 0.9985, 0.9989, 0.9991, 0.9993, 0.9995, 0.9996, 1);
@@ -265,6 +266,12 @@
265
266
  --motion-result-pop-scale: 0.4;
266
267
  --motion-result-latch-offset: -6px;
267
268
  --motion-result-latch-angle: -28deg;
269
+ --motion-cycle-duration: 400ms;
270
+ --motion-cycle-ease: var(--ease-decelerate);
271
+ --motion-cycle-exit-duration: 300ms;
272
+ --motion-cycle-offset: -6px;
273
+ --motion-cycle-scale-from: 0.94;
274
+ --motion-cycle-blur: 4px;
268
275
  /* 한 줄에 나란히 놓이는 컨트롤: button, drop-down, text-field */
269
276
  --control-height-xs: 28px;
270
277
  --control-height-s: 38px;
@@ -359,6 +366,14 @@
359
366
  --menu-min-width: 180px;
360
367
  /* 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 */
361
368
  --highlight-message-max-width: 280px;
369
+ /* 돌아가는 알림 줄(Nudge): 한 줄 높이, 44 타일, 둥근 버튼, 모서리에 걸친 작은 × */
370
+ --nudge-height: 76px;
371
+ --nudge-tile-size: var(--control-height-m);
372
+ --nudge-action-height: 34px;
373
+ --nudge-dismiss-size: 18px;
374
+ --nudge-dismiss-icon-size: 12px;
375
+ --nudge-dismiss-ring: 2px;
376
+ --nudge-badge-size: 18px;
362
377
 
363
378
  /* 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) */
364
379
  --layout-max-width: 480px;
@@ -664,6 +679,8 @@
664
679
  --surface-danger-subtle: var(--color-accent-red-50);
665
680
  --surface-success-subtle: var(--color-accent-green-50);
666
681
  --surface-warning-subtle: var(--color-accent-orange-50);
682
+ --surface-warning: var(--color-accent-orange-700);
683
+ --surface-success: var(--color-accent-green-800);
667
684
  --surface-member-card: var(--color-black);
668
685
  --surface-aurora-grey: var(--color-grey-scale-400);
669
686
  --surface-aurora-grey-light: var(--color-grey-scale-300);
@@ -1094,6 +1111,8 @@
1094
1111
  --motion-result-description-delay: 0ms;
1095
1112
  --motion-result-action-delay: 0ms;
1096
1113
  --motion-result-blink: 0ms;
1114
+ --motion-cycle-duration: 0ms;
1115
+ --motion-cycle-exit-duration: 0ms;
1097
1116
  }
1098
1117
  }
1099
1118
  /*
package/dist/tokens.js CHANGED
@@ -411,6 +411,8 @@ var semanticApp = {
411
411
  "danger-subtle": "#FFF5F6",
412
412
  "success-subtle": "#ECFDF3",
413
413
  "warning-subtle": "#FFF7ED",
414
+ "warning": "#C2410C",
415
+ "success": "#166534",
414
416
  "member-card": "#000000",
415
417
  "aurora-grey": "#A1A1AA",
416
418
  "aurora-grey-light": "#D4D4D8",
@@ -765,7 +767,8 @@ var motionPresets = {
765
767
  "in-out": [0.4, 0, 0.1, 1],
766
768
  "back": [0.34, 1.56, 0.64, 1],
767
769
  "symmetric": [0.5, 0, 0.5, 1],
768
- "linear": "linear"
770
+ "linear": "linear",
771
+ "decelerate": [0.2, 0.8, 0.2, 1]
769
772
  },
770
773
  "spring": {
771
774
  "rapid": {
@@ -956,6 +959,14 @@ var motionTokens = {
956
959
  "pop-scale": 0.4,
957
960
  "latch-offset": "-6px",
958
961
  "latch-angle": "-28deg"
962
+ },
963
+ "cycle": {
964
+ "duration": 0.4,
965
+ "ease": [0.2, 0.8, 0.2, 1],
966
+ "exit-duration": 0.3,
967
+ "offset": "-6px",
968
+ "scale-from": 0.94,
969
+ "blur": "4px"
959
970
  }
960
971
  };
961
972
  ;// ./tokens/generated/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nurihaus/web-design-system",
3
- "version": "3.20.0",
3
+ "version": "3.21.1",
4
4
  "description": "Nurihaus 디자인 시스템 — 컴포넌트와 디자인 토큰",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -334,6 +334,10 @@
334
334
  "types": "./dist/components/notice/notice.d.ts",
335
335
  "default": "./dist/notice.js"
336
336
  },
337
+ "./nudge": {
338
+ "types": "./dist/components/nudge/nudge.d.ts",
339
+ "default": "./dist/nudge.js"
340
+ },
337
341
  "./empty-state": {
338
342
  "types": "./dist/components/empty-state/empty-state.d.ts",
339
343
  "default": "./dist/empty-state.js"