@nurihaus/web-design-system 3.19.0 → 3.21.0
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/ai/components.md +75 -1
- package/dist/ai/motion.md +114 -89
- package/dist/ai/tokens.md +15 -0
- package/dist/bottom-nav.js +29 -4
- package/dist/chunk-8982.js +10 -1
- package/dist/components/bottom-nav/bottom-nav-type.d.ts +2 -0
- package/dist/components/bottom-nav/bottom-nav.stories.d.ts +2 -0
- package/dist/components/nudge/base-nudge.d.ts +4 -0
- package/dist/components/nudge/nudge-props.d.ts +4 -0
- package/dist/components/nudge/nudge-type.d.ts +36 -0
- package/dist/components/nudge/nudge.d.ts +5 -0
- package/dist/components/nudge/nudge.stories.d.ts +308 -0
- package/dist/components.css +271 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +336 -5
- package/dist/nudge.js +471 -0
- package/dist/styles.css +250 -0
- package/dist/tokens/generated/motion.d.ts +9 -0
- package/dist/tokens/generated/semantic-app.d.ts +2 -0
- package/dist/tokens.css +18 -0
- package/dist/tokens.js +12 -1
- package/package.json +5 -1
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,13 @@
|
|
|
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: 22px;
|
|
376
|
+
--nudge-dismiss-ring: 2px;
|
|
377
|
+
--nudge-badge-size: 18px;
|
|
364
378
|
|
|
365
379
|
/* 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) */
|
|
366
380
|
--layout-max-width: 480px;
|
|
@@ -666,6 +680,8 @@
|
|
|
666
680
|
--surface-danger-subtle: var(--color-accent-red-50);
|
|
667
681
|
--surface-success-subtle: var(--color-accent-green-50);
|
|
668
682
|
--surface-warning-subtle: var(--color-accent-orange-50);
|
|
683
|
+
--surface-warning: var(--color-accent-orange-700);
|
|
684
|
+
--surface-success: var(--color-accent-green-800);
|
|
669
685
|
--surface-member-card: var(--color-black);
|
|
670
686
|
--surface-aurora-grey: var(--color-grey-scale-400);
|
|
671
687
|
--surface-aurora-grey-light: var(--color-grey-scale-300);
|
|
@@ -1096,6 +1112,8 @@
|
|
|
1096
1112
|
--motion-result-description-delay: 0ms;
|
|
1097
1113
|
--motion-result-action-delay: 0ms;
|
|
1098
1114
|
--motion-result-blink: 0ms;
|
|
1115
|
+
--motion-cycle-duration: 0ms;
|
|
1116
|
+
--motion-cycle-exit-duration: 0ms;
|
|
1099
1117
|
}
|
|
1100
1118
|
}
|
|
1101
1119
|
/*
|
|
@@ -1550,6 +1568,31 @@ p {
|
|
|
1550
1568
|
.motion-press-dim:active:not(:disabled):not([data-disabled]):not([aria-disabled='true'])::after {
|
|
1551
1569
|
opacity: var(--motion-press-dim);
|
|
1552
1570
|
}
|
|
1571
|
+
/* cycle: 한 자리에서 항목이 바뀐다. 나가는 항목은 위로 오르며 흐려지고, 들어오는 항목은 작은 데서 커지며 또렷해진다 */
|
|
1572
|
+
@keyframes motion-cycle-in {
|
|
1573
|
+
from {
|
|
1574
|
+
opacity: 0;
|
|
1575
|
+
transform: scale(var(--motion-cycle-scale-from));
|
|
1576
|
+
filter: blur(var(--motion-cycle-blur));
|
|
1577
|
+
}
|
|
1578
|
+
to {
|
|
1579
|
+
opacity: 1;
|
|
1580
|
+
transform: none;
|
|
1581
|
+
filter: none;
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
@keyframes motion-cycle-out {
|
|
1585
|
+
from {
|
|
1586
|
+
opacity: 1;
|
|
1587
|
+
transform: none;
|
|
1588
|
+
filter: none;
|
|
1589
|
+
}
|
|
1590
|
+
to {
|
|
1591
|
+
opacity: 0;
|
|
1592
|
+
transform: translateY(var(--motion-cycle-offset));
|
|
1593
|
+
filter: blur(var(--motion-cycle-blur));
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1553
1596
|
@keyframes motion-unfold-open {
|
|
1554
1597
|
from {
|
|
1555
1598
|
opacity: 0;
|
|
@@ -2770,6 +2813,18 @@ p {
|
|
|
2770
2813
|
position: relative;
|
|
2771
2814
|
display: flex;
|
|
2772
2815
|
}
|
|
2816
|
+
.bottom-nav-image {
|
|
2817
|
+
width: var(--icon-size-l);
|
|
2818
|
+
height: var(--icon-size-l);
|
|
2819
|
+
border-radius: var(--radius-circle);
|
|
2820
|
+
-o-object-fit: cover;
|
|
2821
|
+
object-fit: cover;
|
|
2822
|
+
/* 링은 그림자로 그려 사진 크기가 아이콘과 같게 둔다. 지금 탭은 진한 링 */
|
|
2823
|
+
box-shadow: 0 0 0 var(--hairline) var(--border-default);
|
|
2824
|
+
}
|
|
2825
|
+
.bottom-nav-item[aria-current='page'] .bottom-nav-image {
|
|
2826
|
+
box-shadow: 0 0 0 var(--border-width-strong) var(--text-primary);
|
|
2827
|
+
}
|
|
2773
2828
|
.bottom-nav-badge {
|
|
2774
2829
|
position: absolute;
|
|
2775
2830
|
top: 0;
|
|
@@ -6653,6 +6708,201 @@ button.modal-with-double-button-close-button {
|
|
|
6653
6708
|
align-items: center;
|
|
6654
6709
|
gap: var(--spacing-10);
|
|
6655
6710
|
}
|
|
6711
|
+
/* 한 줄 높이 자리에서 항목을 차례로 돌려 보여 주는 알림 줄. 비면 높이가 0 으로 접힌다 */
|
|
6712
|
+
.base-nudge {
|
|
6713
|
+
height: var(--nudge-height);
|
|
6714
|
+
transition: height var(--motion-cycle-exit-duration) var(--motion-cycle-ease);
|
|
6715
|
+
}
|
|
6716
|
+
.base-nudge[data-state='closed'] {
|
|
6717
|
+
height: 0;
|
|
6718
|
+
overflow: hidden;
|
|
6719
|
+
}
|
|
6720
|
+
/***************************************************************************************************
|
|
6721
|
+
* *
|
|
6722
|
+
* nudge *
|
|
6723
|
+
* *
|
|
6724
|
+
***************************************************************************************************/
|
|
6725
|
+
.nudge-viewport {
|
|
6726
|
+
position: relative;
|
|
6727
|
+
height: 100%;
|
|
6728
|
+
/* 세로 스크롤은 브라우저가, 가로 밀기는 컴포넌트가 받는다 */
|
|
6729
|
+
touch-action: pan-y;
|
|
6730
|
+
}
|
|
6731
|
+
/* 들어오는 항목은 앞 항목이 나간 뒤에 나타난다. 나가는 항목이 없으면(처음) 바로 나타난다 */
|
|
6732
|
+
.nudge-item {
|
|
6733
|
+
position: relative;
|
|
6734
|
+
display: flex;
|
|
6735
|
+
align-items: center;
|
|
6736
|
+
gap: var(--spacing-12);
|
|
6737
|
+
box-sizing: border-box;
|
|
6738
|
+
height: 100%;
|
|
6739
|
+
padding: 0 var(--spacing-14);
|
|
6740
|
+
border-radius: var(--radius-surface);
|
|
6741
|
+
background-color: var(--surface-subtle);
|
|
6742
|
+
animation: motion-cycle-in var(--motion-cycle-duration) var(--motion-cycle-ease) backwards;
|
|
6743
|
+
}
|
|
6744
|
+
.nudge-item[data-leaving] {
|
|
6745
|
+
position: absolute;
|
|
6746
|
+
inset: 0;
|
|
6747
|
+
pointer-events: none;
|
|
6748
|
+
animation: motion-cycle-out var(--motion-cycle-duration) var(--motion-cycle-ease) forwards;
|
|
6749
|
+
}
|
|
6750
|
+
.nudge-item[data-leaving='dismiss'] {
|
|
6751
|
+
animation-duration: var(--motion-cycle-exit-duration);
|
|
6752
|
+
}
|
|
6753
|
+
.nudge-item[data-leaving='cycle'] + .nudge-item {
|
|
6754
|
+
animation-delay: var(--motion-cycle-duration);
|
|
6755
|
+
}
|
|
6756
|
+
.nudge-item[data-leaving='dismiss'] + .nudge-item {
|
|
6757
|
+
animation-delay: var(--motion-cycle-exit-duration);
|
|
6758
|
+
}
|
|
6759
|
+
/* 44 색 타일. 아이콘·짧은 글·꽉 차는 그림 */
|
|
6760
|
+
.nudge-tile {
|
|
6761
|
+
position: relative;
|
|
6762
|
+
display: flex;
|
|
6763
|
+
flex: none;
|
|
6764
|
+
align-items: center;
|
|
6765
|
+
justify-content: center;
|
|
6766
|
+
width: var(--nudge-tile-size);
|
|
6767
|
+
height: var(--nudge-tile-size);
|
|
6768
|
+
border-radius: var(--radius-control);
|
|
6769
|
+
font-size: var(--font-size-sm);
|
|
6770
|
+
font-weight: var(--font-weight-extrabold);
|
|
6771
|
+
}
|
|
6772
|
+
.nudge-tile > img {
|
|
6773
|
+
width: 100%;
|
|
6774
|
+
height: 100%;
|
|
6775
|
+
border-radius: inherit;
|
|
6776
|
+
-o-object-fit: cover;
|
|
6777
|
+
object-fit: cover;
|
|
6778
|
+
}
|
|
6779
|
+
.nudge-tile[data-tone='danger'] {
|
|
6780
|
+
background-color: var(--surface-danger);
|
|
6781
|
+
color: var(--text-on-brand);
|
|
6782
|
+
}
|
|
6783
|
+
.nudge-tile[data-tone='warning'] {
|
|
6784
|
+
background-color: var(--surface-warning);
|
|
6785
|
+
color: var(--text-on-brand);
|
|
6786
|
+
}
|
|
6787
|
+
.nudge-tile[data-tone='success'] {
|
|
6788
|
+
background-color: var(--surface-success);
|
|
6789
|
+
color: var(--text-on-brand);
|
|
6790
|
+
}
|
|
6791
|
+
.nudge-tile[data-tone='brand'] {
|
|
6792
|
+
background-color: var(--surface-brand-subtle);
|
|
6793
|
+
color: var(--text-brand);
|
|
6794
|
+
}
|
|
6795
|
+
.nudge-tile[data-tone='neutral'] {
|
|
6796
|
+
background-color: var(--surface-base);
|
|
6797
|
+
color: var(--text-brand-emphasis);
|
|
6798
|
+
}
|
|
6799
|
+
.nudge-tile-badge {
|
|
6800
|
+
position: absolute;
|
|
6801
|
+
top: calc(-1 * var(--spacing-4));
|
|
6802
|
+
right: calc(-1 * var(--spacing-4));
|
|
6803
|
+
display: flex;
|
|
6804
|
+
align-items: center;
|
|
6805
|
+
justify-content: center;
|
|
6806
|
+
box-sizing: border-box;
|
|
6807
|
+
min-width: var(--nudge-badge-size);
|
|
6808
|
+
height: var(--nudge-badge-size);
|
|
6809
|
+
padding: 0 var(--spacing-4);
|
|
6810
|
+
border-radius: var(--radius-pill);
|
|
6811
|
+
background-color: var(--surface-danger);
|
|
6812
|
+
color: var(--text-on-brand);
|
|
6813
|
+
font-size: var(--font-size-xsm);
|
|
6814
|
+
font-weight: var(--font-weight-extrabold);
|
|
6815
|
+
}
|
|
6816
|
+
.nudge-text {
|
|
6817
|
+
display: flex;
|
|
6818
|
+
flex: 1;
|
|
6819
|
+
flex-direction: column;
|
|
6820
|
+
gap: var(--spacing-2);
|
|
6821
|
+
min-width: 0;
|
|
6822
|
+
}
|
|
6823
|
+
.nudge-title,
|
|
6824
|
+
.nudge-description {
|
|
6825
|
+
overflow: hidden;
|
|
6826
|
+
white-space: nowrap;
|
|
6827
|
+
text-overflow: ellipsis;
|
|
6828
|
+
}
|
|
6829
|
+
.nudge-title {
|
|
6830
|
+
color: var(--text-primary);
|
|
6831
|
+
font-size: var(--font-size-sm);
|
|
6832
|
+
font-weight: var(--font-weight-bold);
|
|
6833
|
+
}
|
|
6834
|
+
.nudge-description {
|
|
6835
|
+
color: var(--text-secondary);
|
|
6836
|
+
font-size: var(--font-size-xsm);
|
|
6837
|
+
}
|
|
6838
|
+
/* 둥근 버튼. 색은 항목 tone. 보이는 높이 34, 누르는 자리는 세로 44 */
|
|
6839
|
+
.nudge-action {
|
|
6840
|
+
position: relative;
|
|
6841
|
+
display: inline-flex;
|
|
6842
|
+
flex: none;
|
|
6843
|
+
align-items: center;
|
|
6844
|
+
height: var(--nudge-action-height);
|
|
6845
|
+
padding: 0 var(--spacing-14);
|
|
6846
|
+
border: 0;
|
|
6847
|
+
border-radius: var(--radius-pill);
|
|
6848
|
+
font-size: var(--font-size-xsm);
|
|
6849
|
+
font-weight: var(--font-weight-extrabold);
|
|
6850
|
+
text-decoration: none;
|
|
6851
|
+
white-space: nowrap;
|
|
6852
|
+
cursor: pointer;
|
|
6853
|
+
}
|
|
6854
|
+
.nudge-action::before {
|
|
6855
|
+
content: '';
|
|
6856
|
+
position: absolute;
|
|
6857
|
+
top: 50%;
|
|
6858
|
+
left: 0;
|
|
6859
|
+
right: 0;
|
|
6860
|
+
height: var(--touch-target);
|
|
6861
|
+
transform: translateY(-50%);
|
|
6862
|
+
}
|
|
6863
|
+
.nudge-item[data-tone='danger'] .nudge-action {
|
|
6864
|
+
background-color: var(--surface-danger);
|
|
6865
|
+
color: var(--text-on-brand);
|
|
6866
|
+
}
|
|
6867
|
+
.nudge-item[data-tone='warning'] .nudge-action {
|
|
6868
|
+
background-color: var(--surface-warning);
|
|
6869
|
+
color: var(--text-on-brand);
|
|
6870
|
+
}
|
|
6871
|
+
.nudge-item[data-tone='brand'] .nudge-action {
|
|
6872
|
+
background-color: var(--surface-brand);
|
|
6873
|
+
color: var(--text-on-brand);
|
|
6874
|
+
}
|
|
6875
|
+
.nudge-item[data-tone='neutral'] .nudge-action {
|
|
6876
|
+
background-color: var(--surface-strong);
|
|
6877
|
+
color: var(--text-primary);
|
|
6878
|
+
}
|
|
6879
|
+
/* 모서리에 걸친 작은 ×. 바탕색 테두리로 카드와 떼어 보이고, 누르는 자리는 44 */
|
|
6880
|
+
.nudge-dismiss {
|
|
6881
|
+
position: absolute;
|
|
6882
|
+
top: calc(-1 * var(--spacing-6));
|
|
6883
|
+
right: calc(-1 * var(--spacing-6));
|
|
6884
|
+
display: flex;
|
|
6885
|
+
align-items: center;
|
|
6886
|
+
justify-content: center;
|
|
6887
|
+
width: var(--nudge-dismiss-size);
|
|
6888
|
+
height: var(--nudge-dismiss-size);
|
|
6889
|
+
padding: 0;
|
|
6890
|
+
border: 0;
|
|
6891
|
+
border-radius: var(--radius-circle);
|
|
6892
|
+
background-color: var(--surface-strong);
|
|
6893
|
+
box-shadow: 0 0 0 var(--nudge-dismiss-ring) var(--surface-base);
|
|
6894
|
+
color: var(--text-secondary);
|
|
6895
|
+
cursor: pointer;
|
|
6896
|
+
}
|
|
6897
|
+
.nudge-dismiss::before {
|
|
6898
|
+
content: '';
|
|
6899
|
+
position: absolute;
|
|
6900
|
+
top: 50%;
|
|
6901
|
+
left: 50%;
|
|
6902
|
+
width: var(--touch-target);
|
|
6903
|
+
height: var(--touch-target);
|
|
6904
|
+
transform: translate(-50%, -50%);
|
|
6905
|
+
}
|
|
6656
6906
|
.base-numeric-spinner:where(.root) {
|
|
6657
6907
|
display: inline-flex;
|
|
6658
6908
|
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,13 @@
|
|
|
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: 22px;
|
|
374
|
+
--nudge-dismiss-ring: 2px;
|
|
375
|
+
--nudge-badge-size: 18px;
|
|
362
376
|
|
|
363
377
|
/* 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) */
|
|
364
378
|
--layout-max-width: 480px;
|
|
@@ -664,6 +678,8 @@
|
|
|
664
678
|
--surface-danger-subtle: var(--color-accent-red-50);
|
|
665
679
|
--surface-success-subtle: var(--color-accent-green-50);
|
|
666
680
|
--surface-warning-subtle: var(--color-accent-orange-50);
|
|
681
|
+
--surface-warning: var(--color-accent-orange-700);
|
|
682
|
+
--surface-success: var(--color-accent-green-800);
|
|
667
683
|
--surface-member-card: var(--color-black);
|
|
668
684
|
--surface-aurora-grey: var(--color-grey-scale-400);
|
|
669
685
|
--surface-aurora-grey-light: var(--color-grey-scale-300);
|
|
@@ -1094,6 +1110,8 @@
|
|
|
1094
1110
|
--motion-result-description-delay: 0ms;
|
|
1095
1111
|
--motion-result-action-delay: 0ms;
|
|
1096
1112
|
--motion-result-blink: 0ms;
|
|
1113
|
+
--motion-cycle-duration: 0ms;
|
|
1114
|
+
--motion-cycle-exit-duration: 0ms;
|
|
1097
1115
|
}
|
|
1098
1116
|
}
|
|
1099
1117
|
/*
|
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.
|
|
3
|
+
"version": "3.21.0",
|
|
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"
|