@nurihaus/web-design-system 3.15.0 → 3.16.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/ai/components.md +87 -7
- package/dist/ai/migration.md +6 -0
- package/dist/ai/motion.md +118 -86
- package/dist/ai/patterns.md +25 -28
- package/dist/ai/tokens.md +36 -0
- package/dist/bottom-cta.js +38 -88
- package/dist/bottom-sheet.js +5 -5
- package/dist/chunk-3084.js +69 -0
- package/dist/chunk-5670.js +9 -2
- package/dist/chunk-7232.js +6 -0
- package/dist/chunk-7687.js +2 -2
- package/dist/chunk-829.js +12 -4
- package/dist/chunk-8982.js +20 -0
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
- package/dist/components/elements/text/text-props.d.ts +2 -2
- package/dist/components/elements/text/text.stories.d.ts +1 -1
- package/dist/components/empty-state/empty-state.stories.d.ts +12 -12
- package/dist/components/list/list-footer.stories.d.ts +8 -8
- package/dist/components/list/list-header.stories.d.ts +5 -5
- package/dist/components/list/list-row.stories.d.ts +9 -9
- package/dist/components/message/message.stories.d.ts +8 -8
- package/dist/components/notice/notice.stories.d.ts +6 -6
- package/dist/components/overlay/overlay.stories.d.ts +1 -1
- package/dist/components/result-screen/base-result-screen.d.ts +4 -0
- package/dist/components/result-screen/result-screen-props.d.ts +15 -0
- package/dist/components/result-screen/result-screen-type.d.ts +28 -0
- package/dist/components/result-screen/result-screen.d.ts +14 -0
- package/dist/components/result-screen/result-screen.stories.d.ts +57 -0
- package/dist/components/section-header/section-header.stories.d.ts +5 -5
- package/dist/components/skeleton/skeleton-group-type.d.ts +3 -0
- package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton-props.d.ts +7 -0
- package/dist/components/skeleton/skeleton-type.d.ts +3 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +16 -7
- package/dist/components/toast/toast.stories.d.ts +5 -5
- package/dist/components/top/top.stories.d.ts +4 -4
- package/dist/components.css +303 -4
- package/dist/cta-button.js +5 -5
- package/dist/docs/patterns/mobile/result.stories.d.ts +1 -1
- package/dist/full-secure-keypad.js +5 -5
- package/dist/helpers/hooks/useReturnFocus.d.ts +8 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +396 -77
- package/dist/modal-with-double-button.js +7 -7
- package/dist/modal.js +3 -3
- package/dist/notice.js +5 -5
- package/dist/overlay.js +18 -18
- package/dist/result-screen.js +572 -0
- package/dist/skeleton-group.js +13 -6
- package/dist/skeleton.js +2 -2
- package/dist/styles.css +282 -4
- package/dist/toast.js +5 -5
- package/dist/tokens/generated/colors.d.ts +6 -0
- package/dist/tokens/generated/motion.d.ts +20 -0
- package/dist/tokens/generated/primitive.d.ts +15 -0
- package/dist/tokens.css +35 -0
- package/dist/tokens.js +41 -0
- package/package.json +5 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { shapes } from './skeleton-props';
|
|
2
|
+
import { shapes, variants } from './skeleton-props';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
parameters: {
|
|
@@ -38,6 +38,12 @@ declare const meta: {
|
|
|
38
38
|
type: "boolean";
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
+
variant: {
|
|
42
|
+
control: {
|
|
43
|
+
type: "select";
|
|
44
|
+
};
|
|
45
|
+
options: readonly ["strong", "subtle"];
|
|
46
|
+
};
|
|
41
47
|
};
|
|
42
48
|
args: {
|
|
43
49
|
shape: "text";
|
|
@@ -45,9 +51,10 @@ declare const meta: {
|
|
|
45
51
|
animated: true;
|
|
46
52
|
};
|
|
47
53
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
48
|
-
|
|
54
|
+
slot?: string | undefined | undefined;
|
|
49
55
|
style?: import("react").CSSProperties | undefined;
|
|
50
|
-
|
|
56
|
+
title?: string | undefined | undefined;
|
|
57
|
+
key?: import("react").Key | null | undefined;
|
|
51
58
|
defaultChecked?: boolean | undefined | undefined;
|
|
52
59
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
53
60
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -55,6 +62,7 @@ declare const meta: {
|
|
|
55
62
|
accessKey?: string | undefined | undefined;
|
|
56
63
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
57
64
|
autoFocus?: boolean | undefined | undefined;
|
|
65
|
+
className?: string | undefined | undefined;
|
|
58
66
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
59
67
|
contextMenu?: string | undefined | undefined;
|
|
60
68
|
dir?: string | undefined | undefined;
|
|
@@ -64,10 +72,8 @@ declare const meta: {
|
|
|
64
72
|
id?: string | undefined | undefined;
|
|
65
73
|
lang?: string | undefined | undefined;
|
|
66
74
|
nonce?: string | undefined | undefined;
|
|
67
|
-
slot?: string | undefined | undefined;
|
|
68
75
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
69
76
|
tabIndex?: number | undefined | undefined;
|
|
70
|
-
title?: string | undefined | undefined;
|
|
71
77
|
translate?: "yes" | "no" | undefined | undefined;
|
|
72
78
|
radioGroup?: string | undefined | undefined;
|
|
73
79
|
role?: import("react").AriaRole | undefined;
|
|
@@ -150,6 +156,7 @@ declare const meta: {
|
|
|
150
156
|
"aria-valuemin"?: number | undefined | undefined;
|
|
151
157
|
"aria-valuenow"?: number | undefined | undefined;
|
|
152
158
|
"aria-valuetext"?: string | undefined | undefined;
|
|
159
|
+
children?: import("react").ReactNode;
|
|
153
160
|
dangerouslySetInnerHTML?: {
|
|
154
161
|
__html: string | TrustedHTML;
|
|
155
162
|
} | undefined | undefined;
|
|
@@ -311,10 +318,10 @@ declare const meta: {
|
|
|
311
318
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
312
319
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
313
320
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
314
|
-
|
|
321
|
+
shape?: (typeof shapes)[number] | undefined;
|
|
315
322
|
height?: number | string | undefined;
|
|
316
323
|
width?: number | string | undefined;
|
|
317
|
-
|
|
324
|
+
variant?: (typeof variants)[number] | undefined;
|
|
318
325
|
lines?: number | undefined;
|
|
319
326
|
animated?: boolean | undefined;
|
|
320
327
|
ref?: import("react").LegacyRef<HTMLSpanElement> | undefined;
|
|
@@ -328,6 +335,8 @@ export declare const Default: Story;
|
|
|
328
335
|
export declare const Shapes: Story;
|
|
329
336
|
/** text 는 lines 로 여러 줄을 그리고 마지막 줄이 짧다. */
|
|
330
337
|
export declare const Lines: Story;
|
|
338
|
+
/** variant 별 색이다. subtle 은 바탕에 거의 묻혀 화면이 바뀌는 느낌이 작다. 앱 웹뷰가 뜨는 동안 깔 때 쓴다. */
|
|
339
|
+
export declare const Variants: Story;
|
|
331
340
|
/** 200×120 사각형 스켈레톤이다. */
|
|
332
341
|
export declare const Rect: Story;
|
|
333
342
|
/** 지름 48px 원 스켈레톤이다. */
|
|
@@ -26,8 +26,11 @@ declare const meta: {
|
|
|
26
26
|
variant: "default";
|
|
27
27
|
};
|
|
28
28
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
29
|
-
|
|
29
|
+
slot?: string | undefined | undefined;
|
|
30
30
|
style?: import("react").CSSProperties | undefined;
|
|
31
|
+
title: import("react").ReactNode;
|
|
32
|
+
track?: string | undefined;
|
|
33
|
+
key?: import("react").Key | null | undefined;
|
|
31
34
|
defaultChecked?: boolean | undefined | undefined;
|
|
32
35
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
33
36
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -35,6 +38,7 @@ declare const meta: {
|
|
|
35
38
|
accessKey?: string | undefined | undefined;
|
|
36
39
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
37
40
|
autoFocus?: boolean | undefined | undefined;
|
|
41
|
+
className?: string | undefined;
|
|
38
42
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
39
43
|
contextMenu?: string | undefined | undefined;
|
|
40
44
|
dir?: string | undefined | undefined;
|
|
@@ -44,10 +48,8 @@ declare const meta: {
|
|
|
44
48
|
id?: string | undefined | undefined;
|
|
45
49
|
lang?: string | undefined | undefined;
|
|
46
50
|
nonce?: string | undefined | undefined;
|
|
47
|
-
slot?: string | undefined | undefined;
|
|
48
51
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
49
52
|
tabIndex?: number | undefined | undefined;
|
|
50
|
-
title: import("react").ReactNode;
|
|
51
53
|
translate?: "yes" | "no" | undefined | undefined;
|
|
52
54
|
radioGroup?: string | undefined | undefined;
|
|
53
55
|
role?: import("react").AriaRole | undefined;
|
|
@@ -291,8 +293,6 @@ declare const meta: {
|
|
|
291
293
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLLIElement> | undefined;
|
|
292
294
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
293
295
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
294
|
-
track?: string | undefined;
|
|
295
|
-
key?: import("react").Key | null | undefined;
|
|
296
296
|
value?: string | number | readonly string[] | undefined;
|
|
297
297
|
variant?: (typeof variants)[number] | undefined;
|
|
298
298
|
trackProps?: Record<string, string | number | boolean> | undefined;
|
|
@@ -30,8 +30,10 @@ declare const meta: {
|
|
|
30
30
|
subtitleBottom: string;
|
|
31
31
|
};
|
|
32
32
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
33
|
-
|
|
33
|
+
slot?: string | undefined | undefined;
|
|
34
34
|
style?: import("react").CSSProperties | undefined;
|
|
35
|
+
title: import("react").ReactNode;
|
|
36
|
+
key?: import("react").Key | null | undefined;
|
|
35
37
|
defaultChecked?: boolean | undefined | undefined;
|
|
36
38
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
37
39
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -39,6 +41,7 @@ declare const meta: {
|
|
|
39
41
|
accessKey?: string | undefined | undefined;
|
|
40
42
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
41
43
|
autoFocus?: boolean | undefined | undefined;
|
|
44
|
+
className?: string | undefined | undefined;
|
|
42
45
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
43
46
|
contextMenu?: string | undefined | undefined;
|
|
44
47
|
dir?: string | undefined | undefined;
|
|
@@ -48,10 +51,8 @@ declare const meta: {
|
|
|
48
51
|
id?: string | undefined | undefined;
|
|
49
52
|
lang?: string | undefined | undefined;
|
|
50
53
|
nonce?: string | undefined | undefined;
|
|
51
|
-
slot?: string | undefined | undefined;
|
|
52
54
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
53
55
|
tabIndex?: number | undefined | undefined;
|
|
54
|
-
title: import("react").ReactNode;
|
|
55
56
|
translate?: "yes" | "no" | undefined | undefined;
|
|
56
57
|
radioGroup?: string | undefined | undefined;
|
|
57
58
|
role?: import("react").AriaRole | undefined;
|
|
@@ -295,7 +296,6 @@ declare const meta: {
|
|
|
295
296
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
296
297
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
297
298
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
298
|
-
key?: import("react").Key | null | undefined;
|
|
299
299
|
right?: import("react").ReactNode;
|
|
300
300
|
titleLevel?: import("./top-type").TopTitleLevel | undefined;
|
|
301
301
|
subtitleTop?: import("react").ReactNode;
|
package/dist/components.css
CHANGED
|
@@ -574,6 +574,66 @@
|
|
|
574
574
|
animation: motion-attention-shine var(--motion-attention-shine) linear;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
+
/* result — ResultScreen 의 차례 등장 (ADR 0008 · tokens/motion.json result). 쉬는 모양이 마지막 모습이라 동작 줄이기에서 그대로 멈춘다 */
|
|
578
|
+
|
|
579
|
+
@keyframes motion-result-pop {
|
|
580
|
+
from {
|
|
581
|
+
opacity: 0;
|
|
582
|
+
transform: scale(var(--motion-result-pop-scale));
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
@keyframes motion-result-rise {
|
|
587
|
+
from {
|
|
588
|
+
opacity: 0;
|
|
589
|
+
transform: translateY(var(--motion-result-offset));
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/* stroke-dasharray 를 길이보다 크게 두고 offset 을 0 으로 — 선이 그려진다 */
|
|
594
|
+
|
|
595
|
+
@keyframes motion-result-draw {
|
|
596
|
+
from {
|
|
597
|
+
stroke-dashoffset: var(--result-stroke-length);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/* 자물쇠 고리가 내려와 잠긴다 */
|
|
602
|
+
|
|
603
|
+
@keyframes motion-result-latch {
|
|
604
|
+
from {
|
|
605
|
+
transform: translateY(var(--motion-result-latch-offset)) rotate(var(--motion-result-latch-angle));
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/* 무표정한 눈이 한 번 감았다 뜬다 — 간격(--motion-result-blink) 끝에서만 */
|
|
610
|
+
|
|
611
|
+
@keyframes motion-result-blink {
|
|
612
|
+
0%,
|
|
613
|
+
92%,
|
|
614
|
+
100% {
|
|
615
|
+
transform: scaleY(1);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
96% {
|
|
619
|
+
transform: scaleY(0.1);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/* 실패 타일이 한 번 흔들린다 */
|
|
624
|
+
|
|
625
|
+
@keyframes motion-result-shake {
|
|
626
|
+
20%,
|
|
627
|
+
60% {
|
|
628
|
+
transform: translateX(-4px);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
40%,
|
|
632
|
+
80% {
|
|
633
|
+
transform: translateX(4px);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
577
637
|
/* 로딩 가족의 색·늦게 보이기. 컴포넌트 CSS 보다 앞에 둔다 */
|
|
578
638
|
|
|
579
639
|
/*
|
|
@@ -1932,6 +1992,12 @@
|
|
|
1932
1992
|
animation-timing-function: var(--motion-enter-strong-ease), var(--motion-reject-ease);
|
|
1933
1993
|
}
|
|
1934
1994
|
|
|
1995
|
+
/* 열리면 창이 포커스를 받는다(useReturnFocus). Tab 으로 닿지 않는 자리라 링을 그리지 않는다 */
|
|
1996
|
+
|
|
1997
|
+
.bottom-sheet:focus-visible {
|
|
1998
|
+
outline: none;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
1935
2001
|
.bottom-sheet-panel {
|
|
1936
2002
|
padding: 0 var(--spacing-20);
|
|
1937
2003
|
padding-bottom: max(env(safe-area-inset-bottom), var(--spacing-20));
|
|
@@ -4458,6 +4524,30 @@
|
|
|
4458
4524
|
color: var(--color-accent-orange-900);
|
|
4459
4525
|
}
|
|
4460
4526
|
|
|
4527
|
+
.base-text.color-tiktok-cyan[class*='color-'] {
|
|
4528
|
+
color: var(--color-tiktok-cyan);
|
|
4529
|
+
}
|
|
4530
|
+
|
|
4531
|
+
.base-text.color-tiktok-red[class*='color-'] {
|
|
4532
|
+
color: var(--color-tiktok-red);
|
|
4533
|
+
}
|
|
4534
|
+
|
|
4535
|
+
.base-text.color-instagram-orange[class*='color-'] {
|
|
4536
|
+
color: var(--color-instagram-orange);
|
|
4537
|
+
}
|
|
4538
|
+
|
|
4539
|
+
.base-text.color-instagram-pink[class*='color-'] {
|
|
4540
|
+
color: var(--color-instagram-pink);
|
|
4541
|
+
}
|
|
4542
|
+
|
|
4543
|
+
.base-text.color-instagram-purple[class*='color-'] {
|
|
4544
|
+
color: var(--color-instagram-purple);
|
|
4545
|
+
}
|
|
4546
|
+
|
|
4547
|
+
.base-text.color-youtube-red[class*='color-'] {
|
|
4548
|
+
color: var(--color-youtube-red);
|
|
4549
|
+
}
|
|
4550
|
+
|
|
4461
4551
|
/* 빈 목록·오류·찾을 수 없음·준비 중 화면. 가운데 세로로 쌓는다 */
|
|
4462
4552
|
|
|
4463
4553
|
.base-empty-state {
|
|
@@ -4532,6 +4622,200 @@
|
|
|
4532
4622
|
margin-top: var(--spacing-8);
|
|
4533
4623
|
}
|
|
4534
4624
|
|
|
4625
|
+
/* 결과 화면 전체 — 그림·글을 세로 가운데에, 주 버튼은 BottomCTA 로 아래에 고정한다 */
|
|
4626
|
+
|
|
4627
|
+
.base-result-screen {
|
|
4628
|
+
display: flex;
|
|
4629
|
+
flex-direction: column;
|
|
4630
|
+
min-height: 100dvh;
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4633
|
+
/***************************************************************************************************
|
|
4634
|
+
* *
|
|
4635
|
+
* result-screen *
|
|
4636
|
+
* *
|
|
4637
|
+
***************************************************************************************************/
|
|
4638
|
+
|
|
4639
|
+
.result-screen {
|
|
4640
|
+
/* 그림 안 선이 그려질 길이 — motion-result-draw 가 이 값에서 0 으로 간다 */
|
|
4641
|
+
--result-stroke-length: 60;
|
|
4642
|
+
|
|
4643
|
+
background-color: var(--surface-base);
|
|
4644
|
+
|
|
4645
|
+
/* variant 는 타일 바탕과 그림 색을 정한다 */
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
.result-screen.variant-success .result-screen-tile,.result-screen.variant-security .result-screen-tile {
|
|
4649
|
+
background-color: var(--surface-brand-subtle);
|
|
4650
|
+
color: var(--icon-brand);
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
.result-screen.variant-neutral .result-screen-tile,.result-screen.variant-farewell .result-screen-tile {
|
|
4654
|
+
background-color: var(--surface-muted);
|
|
4655
|
+
color: var(--icon-secondary);
|
|
4656
|
+
}
|
|
4657
|
+
|
|
4658
|
+
.result-screen.variant-failure .result-screen-tile {
|
|
4659
|
+
background-color: var(--surface-danger-subtle);
|
|
4660
|
+
color: var(--text-danger);
|
|
4661
|
+
animation:
|
|
4662
|
+
motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
|
|
4663
|
+
var(--motion-result-figure-delay) both,
|
|
4664
|
+
motion-result-shake var(--motion-reject-duration) var(--motion-reject-ease) var(--motion-result-title-delay);
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4667
|
+
.result-screen-content {
|
|
4668
|
+
display: flex;
|
|
4669
|
+
flex: 1;
|
|
4670
|
+
flex-direction: column;
|
|
4671
|
+
justify-content: center;
|
|
4672
|
+
gap: var(--spacing-28);
|
|
4673
|
+
padding: var(--spacing-30) var(--spacing-20) 0;
|
|
4674
|
+
}
|
|
4675
|
+
|
|
4676
|
+
/* 그림 타일 — 모든 variant 가 같은 크기·모서리. 튀어 오르며 나타난다 */
|
|
4677
|
+
|
|
4678
|
+
.result-screen-tile {
|
|
4679
|
+
position: relative;
|
|
4680
|
+
display: grid;
|
|
4681
|
+
place-items: center;
|
|
4682
|
+
width: var(--result-screen-tile);
|
|
4683
|
+
height: var(--result-screen-tile);
|
|
4684
|
+
border-radius: var(--radius-surface);
|
|
4685
|
+
animation: motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
|
|
4686
|
+
var(--motion-result-figure-delay) both;
|
|
4687
|
+
}
|
|
4688
|
+
|
|
4689
|
+
.result-screen-tile > svg {
|
|
4690
|
+
width: var(--result-screen-glyph);
|
|
4691
|
+
overflow: visible;
|
|
4692
|
+
}
|
|
4693
|
+
|
|
4694
|
+
/* figure 는 쓰는 쪽 그림을 그대로. 같은 차례로 나타난다 */
|
|
4695
|
+
|
|
4696
|
+
.result-screen-figure {
|
|
4697
|
+
animation: motion-result-pop var(--motion-result-strong-duration) var(--motion-result-strong-ease)
|
|
4698
|
+
var(--motion-result-figure-delay) both;
|
|
4699
|
+
}
|
|
4700
|
+
|
|
4701
|
+
/* 선으로 그리는 표시(체크·입·느낌표) — 타일이 나타난 뒤 그려진다 */
|
|
4702
|
+
|
|
4703
|
+
.result-screen-draw {
|
|
4704
|
+
fill: none;
|
|
4705
|
+
stroke: currentColor;
|
|
4706
|
+
stroke-width: 5;
|
|
4707
|
+
stroke-linecap: round;
|
|
4708
|
+
stroke-linejoin: round;
|
|
4709
|
+
stroke-dasharray: var(--result-stroke-length);
|
|
4710
|
+
animation: motion-result-draw var(--motion-result-duration) var(--motion-result-ease) var(--motion-result-glyph-delay)
|
|
4711
|
+
both;
|
|
4712
|
+
}
|
|
4713
|
+
|
|
4714
|
+
.result-screen-fill {
|
|
4715
|
+
fill: currentColor;
|
|
4716
|
+
}
|
|
4717
|
+
|
|
4718
|
+
/* security: 고리가 내려와 잠긴다. 회전축(왼쪽 아래)·두께는 tsx 의 viewBox 0 0 48 52 좌표에 맞춘 값이다 */
|
|
4719
|
+
|
|
4720
|
+
.result-screen-shackle {
|
|
4721
|
+
fill: none;
|
|
4722
|
+
stroke: currentColor;
|
|
4723
|
+
stroke-width: 5;
|
|
4724
|
+
stroke-linecap: round;
|
|
4725
|
+
transform-box: fill-box;
|
|
4726
|
+
transform-origin: 10% 100%;
|
|
4727
|
+
animation: motion-result-latch var(--motion-result-strong-duration) var(--motion-result-strong-ease)
|
|
4728
|
+
var(--motion-result-glyph-delay) both;
|
|
4729
|
+
}
|
|
4730
|
+
|
|
4731
|
+
/* 자물쇠 열쇠 구멍은 타일 바탕색으로 뚫는다 */
|
|
4732
|
+
|
|
4733
|
+
.result-screen-cutout {
|
|
4734
|
+
fill: var(--surface-brand-subtle);
|
|
4735
|
+
}
|
|
4736
|
+
|
|
4737
|
+
.result-screen-badge {
|
|
4738
|
+
position: absolute;
|
|
4739
|
+
right: calc(var(--spacing-8) * -1.25);
|
|
4740
|
+
bottom: calc(var(--spacing-8) * -1.25);
|
|
4741
|
+
display: grid;
|
|
4742
|
+
place-items: center;
|
|
4743
|
+
width: var(--result-screen-badge);
|
|
4744
|
+
height: var(--result-screen-badge);
|
|
4745
|
+
border: var(--result-screen-badge-ring) solid var(--surface-base);
|
|
4746
|
+
border-radius: var(--radius-circle);
|
|
4747
|
+
background-color: var(--surface-brand);
|
|
4748
|
+
animation: motion-result-pop var(--motion-result-duration) var(--motion-result-strong-ease)
|
|
4749
|
+
var(--motion-result-action-delay) both;
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4752
|
+
.result-screen-badge svg {
|
|
4753
|
+
width: var(--result-screen-badge-glyph);
|
|
4754
|
+
fill: none;
|
|
4755
|
+
stroke: var(--icon-on-brand);
|
|
4756
|
+
stroke-width: 2.6;
|
|
4757
|
+
stroke-linecap: round;
|
|
4758
|
+
stroke-linejoin: round;
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4761
|
+
/* farewell: 무표정한 얼굴 — 타일을 거의 채우게 크다. 입이 그어지고 눈은 간격마다 한 번씩 세 번 깜빡이고 멈춘다(끝없이 돌면 로딩처럼 보인다, R21) */
|
|
4762
|
+
|
|
4763
|
+
.variant-farewell .result-screen-tile > svg {
|
|
4764
|
+
width: var(--result-screen-glyph-face);
|
|
4765
|
+
}
|
|
4766
|
+
|
|
4767
|
+
.result-screen-mouth {
|
|
4768
|
+
stroke-width: 4.6;
|
|
4769
|
+
}
|
|
4770
|
+
|
|
4771
|
+
.result-screen-eye {
|
|
4772
|
+
fill: currentColor;
|
|
4773
|
+
transform-box: fill-box;
|
|
4774
|
+
transform-origin: center;
|
|
4775
|
+
animation: motion-result-blink var(--motion-result-blink) var(--motion-result-ease) var(--motion-result-action-delay)
|
|
4776
|
+
3;
|
|
4777
|
+
}
|
|
4778
|
+
|
|
4779
|
+
/* failure: 느낌표 점은 선이 그려진 뒤 */
|
|
4780
|
+
|
|
4781
|
+
.result-screen-dot {
|
|
4782
|
+
animation: motion-result-pop var(--motion-result-duration) var(--motion-result-ease) var(--motion-result-title-delay)
|
|
4783
|
+
both;
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
.result-screen-text {
|
|
4787
|
+
display: flex;
|
|
4788
|
+
flex-direction: column;
|
|
4789
|
+
gap: var(--spacing-8);
|
|
4790
|
+
}
|
|
4791
|
+
|
|
4792
|
+
/* titleAs 가 h1·h2 여도 앱의 제목 여백을 받지 않는다 */
|
|
4793
|
+
|
|
4794
|
+
.result-screen-title {
|
|
4795
|
+
margin: 0;
|
|
4796
|
+
font-size: var(--font-size-2xl);
|
|
4797
|
+
font-weight: var(--font-weight-bold);
|
|
4798
|
+
color: var(--text-body);
|
|
4799
|
+
word-break: break-word;
|
|
4800
|
+
animation: motion-result-rise var(--motion-result-duration) var(--motion-result-ease) var(--motion-result-title-delay)
|
|
4801
|
+
both;
|
|
4802
|
+
}
|
|
4803
|
+
|
|
4804
|
+
.result-screen-description {
|
|
4805
|
+
margin: 0;
|
|
4806
|
+
font-size: var(--font-size-base);
|
|
4807
|
+
line-height: var(--line-height-base);
|
|
4808
|
+
color: var(--text-tertiary);
|
|
4809
|
+
white-space: pre-line;
|
|
4810
|
+
animation: motion-result-rise var(--motion-result-duration) var(--motion-result-ease)
|
|
4811
|
+
var(--motion-result-description-delay) both;
|
|
4812
|
+
}
|
|
4813
|
+
|
|
4814
|
+
.result-screen-secondary {
|
|
4815
|
+
display: flex;
|
|
4816
|
+
justify-content: center;
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4535
4819
|
/* reset.css 없이 components.css 만 가져온 앱에서도 글머리표·들여쓰기가 생기지 않게 한다 */
|
|
4536
4820
|
|
|
4537
4821
|
.base-grid-list:where(.root) {
|
|
@@ -5963,6 +6247,12 @@
|
|
|
5963
6247
|
margin-top: calc(var(--spacing-20) - var(--modal-scroll-inset));
|
|
5964
6248
|
}
|
|
5965
6249
|
|
|
6250
|
+
/* 열리면 창이 포커스를 받는다(useReturnFocus). Tab 으로 닿지 않는 자리라 링을 그리지 않는다 */
|
|
6251
|
+
|
|
6252
|
+
.base-modal.modal-container:focus-visible {
|
|
6253
|
+
outline: none;
|
|
6254
|
+
}
|
|
6255
|
+
|
|
5966
6256
|
/* force-mount 는 부르는 쪽이 마운트를 정한다. 마운트할 때 등장만 하고 퇴장은 없다 */
|
|
5967
6257
|
|
|
5968
6258
|
.base-modal.modal-container:is([data-state='open'],.force-mount) {
|
|
@@ -7174,16 +7464,25 @@ button.modal-with-double-button-close-button {
|
|
|
7174
7464
|
* *
|
|
7175
7465
|
***************************************************************************************************/
|
|
7176
7466
|
|
|
7177
|
-
/*
|
|
7467
|
+
/* 뼈대 색은 variant 가 정한다. 여러 줄 text 의 .skeleton-line 은 루트의 값을 물려받는다 */
|
|
7178
7468
|
|
|
7179
7469
|
.skeleton {
|
|
7470
|
+
--skeleton-fill: var(--surface-strong);
|
|
7471
|
+
--skeleton-sheen: var(--surface-muted);
|
|
7180
7472
|
position: relative;
|
|
7181
7473
|
overflow: hidden;
|
|
7182
7474
|
height: var(--skeleton-text-height);
|
|
7183
7475
|
border-radius: var(--radius-mark);
|
|
7184
|
-
background-color: var(--
|
|
7476
|
+
background-color: var(--skeleton-fill);
|
|
7185
7477
|
}
|
|
7186
7478
|
|
|
7479
|
+
.skeleton.variant-subtle {
|
|
7480
|
+
--skeleton-fill: var(--surface-muted);
|
|
7481
|
+
--skeleton-sheen: var(--surface-subtle);
|
|
7482
|
+
}
|
|
7483
|
+
|
|
7484
|
+
/* 단일 뼈대(text 한 줄·rect·circle)는 루트가, 여러 줄 text 는 각 .skeleton-line 이 뼈대다. */
|
|
7485
|
+
|
|
7187
7486
|
.skeleton.shape-circle {
|
|
7188
7487
|
border-radius: var(--radius-circle);
|
|
7189
7488
|
aspect-ratio: 1;
|
|
@@ -7206,7 +7505,7 @@ button.modal-with-double-button-close-button {
|
|
|
7206
7505
|
width: 100%;
|
|
7207
7506
|
height: var(--skeleton-text-height);
|
|
7208
7507
|
border-radius: var(--radius-mark);
|
|
7209
|
-
background-color: var(--
|
|
7508
|
+
background-color: var(--skeleton-fill);
|
|
7210
7509
|
}
|
|
7211
7510
|
|
|
7212
7511
|
.skeleton-line:last-child:not(:only-child) {
|
|
@@ -7221,7 +7520,7 @@ button.modal-with-double-button-close-button {
|
|
|
7221
7520
|
background: linear-gradient(
|
|
7222
7521
|
90deg,
|
|
7223
7522
|
transparent 0%,
|
|
7224
|
-
var(--
|
|
7523
|
+
var(--skeleton-sheen) 50%,
|
|
7225
7524
|
transparent 100%
|
|
7226
7525
|
);
|
|
7227
7526
|
transform: translateX(-100%);
|
package/dist/cta-button.js
CHANGED
|
@@ -317,13 +317,13 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
317
317
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
318
318
|
/******/ import * as __webpack_chunk_8__ from "./chunk-8734.js";
|
|
319
319
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
320
|
-
/******/ import * as __webpack_chunk_9__ from "./chunk-
|
|
320
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-7737.js";
|
|
321
321
|
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
322
|
-
/******/ import * as __webpack_chunk_10__ from "./chunk-
|
|
322
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-8933.js";
|
|
323
323
|
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
324
|
-
/******/ import * as __webpack_chunk_11__ from "./chunk-
|
|
324
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-8491.js";
|
|
325
325
|
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
326
|
-
/******/ import * as __webpack_chunk_12__ from "./chunk-
|
|
326
|
+
/******/ import * as __webpack_chunk_12__ from "./chunk-5302.js";
|
|
327
327
|
/******/ __nuri_require__.C(__webpack_chunk_12__);
|
|
328
328
|
/******/ import * as __webpack_chunk_13__ from "./chunk-2496.js";
|
|
329
329
|
/******/ __nuri_require__.C(__webpack_chunk_13__);
|
|
@@ -333,7 +333,7 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
333
333
|
/******/ // startup
|
|
334
334
|
/******/ // Load entry module and return exports
|
|
335
335
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
336
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,3640,1176,8734,8933,
|
|
336
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,3640,1176,8734,7737,8933,8491,5302,2496,948], () => (__nuri_require__(910)))
|
|
337
337
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
338
338
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
339
339
|
/******/ export { __webpack_exports__default as default };
|
|
@@ -11,5 +11,5 @@ declare const meta: {
|
|
|
11
11
|
export default meta;
|
|
12
12
|
type Story = StoryObj<typeof meta>;
|
|
13
13
|
export declare const Default: Story;
|
|
14
|
-
/** 신청하지 못했을 때.
|
|
14
|
+
/** 신청하지 못했을 때. failure — 주 행동은 다시 시도, 홈은 보조 길로 내린다(무드 규칙 1·10) */
|
|
15
15
|
export declare const Failed: Story;
|
|
@@ -493,13 +493,13 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
493
493
|
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
494
494
|
/******/ import * as __webpack_chunk_10__ from "./chunk-8734.js";
|
|
495
495
|
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
496
|
-
/******/ import * as __webpack_chunk_11__ from "./chunk-
|
|
496
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-7737.js";
|
|
497
497
|
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
498
|
-
/******/ import * as __webpack_chunk_12__ from "./chunk-
|
|
498
|
+
/******/ import * as __webpack_chunk_12__ from "./chunk-8933.js";
|
|
499
499
|
/******/ __nuri_require__.C(__webpack_chunk_12__);
|
|
500
|
-
/******/ import * as __webpack_chunk_13__ from "./chunk-
|
|
500
|
+
/******/ import * as __webpack_chunk_13__ from "./chunk-8491.js";
|
|
501
501
|
/******/ __nuri_require__.C(__webpack_chunk_13__);
|
|
502
|
-
/******/ import * as __webpack_chunk_14__ from "./chunk-
|
|
502
|
+
/******/ import * as __webpack_chunk_14__ from "./chunk-5302.js";
|
|
503
503
|
/******/ __nuri_require__.C(__webpack_chunk_14__);
|
|
504
504
|
/******/ import * as __webpack_chunk_15__ from "./chunk-2496.js";
|
|
505
505
|
/******/ __nuri_require__.C(__webpack_chunk_15__);
|
|
@@ -517,7 +517,7 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
517
517
|
/******/ // startup
|
|
518
518
|
/******/ // Load entry module and return exports
|
|
519
519
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
520
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,7653,3547,2777,3640,1176,8734,8933,
|
|
520
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,7653,3547,2777,3640,1176,8734,7737,8933,8491,5302,2496,4577,948,910,7593,6499], () => (__nuri_require__(2726)))
|
|
521
521
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
522
522
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
523
523
|
/******/ export { __webpack_exports__default as default };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Radix
|
|
3
|
-
*
|
|
2
|
+
* Radix Dialog 의 열 때·닫을 때 포커스. `focusOnOpen`(연 요소를 기억하고 창에 포커스)은 Content 의 onOpenAutoFocus, `returnFocus` 는 onCloseAutoFocus 에 단다.
|
|
3
|
+
*
|
|
4
|
+
* 열 때는 첫 버튼이 아니라 창(Content, tabindex=-1)에 포커스를 둔다. iOS WebKit 은 탭한 버튼에 포커스를 주지 않아
|
|
5
|
+
* 앞선 포커스가 없고, 그 상태의 스크립트 포커스를 키보드 포커스로 보아 첫 버튼에 링을 그린다. 창에 두면 링이 없고
|
|
6
|
+
* 스크린 리더는 창을 읽으며, Tab 이 창 안 첫 버튼으로 간다. 이때 연 요소를 기억한다.
|
|
7
|
+
*
|
|
8
|
+
* Radix 는 Dialog.Trigger 로 열었을 때만 포커스를 돌려준다. 부모가 연 경우 `returnFocus` 가 기억한 요소로 돌린다.
|
|
4
9
|
* 연 요소가 그사이 사라졌으면 Radix 기본 동작에 맡긴다.
|
|
5
10
|
*/
|
|
6
11
|
export declare const useReturnFocus: () => {
|
|
7
|
-
|
|
12
|
+
focusOnOpen: (event: Event) => void;
|
|
8
13
|
returnFocus: (event: Event) => void;
|
|
9
14
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export { default as Border } from './components/border/border';
|
|
|
50
50
|
export { default as TableRow } from './components/table-row/table-row';
|
|
51
51
|
export { default as Notice } from './components/notice/notice';
|
|
52
52
|
export { default as EmptyState } from './components/empty-state/empty-state';
|
|
53
|
+
export { default as ResultScreen } from './components/result-screen/result-screen';
|
|
53
54
|
export { default as Tag } from './components/tag/tag';
|
|
54
55
|
export { default as MessageThread } from './components/message/message-thread';
|
|
55
56
|
export { default as Message } from './components/message/message';
|
|
@@ -123,6 +124,7 @@ export type { GridListItemProps, GridListProps } from './components/grid-list/gr
|
|
|
123
124
|
export type { DescriptionListProps, DescriptionListItem, } from './components/description-list/description-list-type';
|
|
124
125
|
export type { NoticeProps } from './components/notice/notice-type';
|
|
125
126
|
export type { EmptyStateProps } from './components/empty-state/empty-state-type';
|
|
127
|
+
export type { ResultScreenProps } from './components/result-screen/result-screen-type';
|
|
126
128
|
export type { TagProps } from './components/tag/tag-type';
|
|
127
129
|
export type { MessageThreadProps, MessageProps, MessageEventProps, } from './components/message/message-type';
|
|
128
130
|
export type { MessageComposerProps } from './components/message-composer/message-composer-type';
|