@nurihaus/web-design-system 3.9.5 → 3.11.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/README.md +4 -4
- package/dist/ai/components.md +88 -19
- package/dist/ai/tokens.md +35 -33
- package/dist/chip-group.js +110 -24
- package/dist/chunk-7232.js +2 -2
- package/dist/chunk-7653.js +20 -0
- package/dist/{chunk-674.js → chunk-7687.js} +2 -56
- package/dist/{chunk-7460.js → chunk-7829.js} +39 -2
- package/dist/components/chip-group/base-chip-group.d.ts +2 -2
- package/dist/components/chip-group/chip-group-type.d.ts +29 -5
- package/dist/components/chip-group/chip-group.stories.d.ts +4 -1
- package/dist/components/drawer/drawer-props.d.ts +7 -0
- package/dist/components/drawer/drawer-type.d.ts +6 -1
- package/dist/components/drawer/drawer.stories.d.ts +8 -0
- package/dist/components/icon/icon-paths.d.ts +20 -0
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/list/list-footer.stories.d.ts +1 -1
- package/dist/components/list/list-row.stories.d.ts +9 -2
- package/dist/components/list/list-type.d.ts +10 -0
- package/dist/components/message/message.stories.d.ts +3 -3
- package/dist/components/notice/notice-props.d.ts +8 -0
- package/dist/components/notice/notice-type.d.ts +4 -2
- package/dist/components/notice/notice.stories.d.ts +11 -2
- package/dist/components/skeleton/skeleton-group-type.d.ts +1 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +1 -1
- package/dist/components.css +96 -2
- package/dist/drawer.js +7 -0
- package/dist/index.js +346 -133
- package/dist/list-row.js +78 -175
- package/dist/notice.js +8 -0
- package/dist/overlay.js +28 -26
- package/dist/radio.js +2 -0
- package/dist/skeleton-group.js +78 -25
- package/dist/skeleton.js +2 -1
- package/dist/styles/token/colors.d.ts +1 -1
- package/dist/styles.css +111 -34
- package/dist/toast.js +29 -27
- package/dist/tokens/generated/colors.d.ts +1 -1
- package/dist/tokens/generated/primitive.d.ts +3 -1
- package/dist/tokens/generated/semantic-app.d.ts +19 -19
- package/dist/tokens.css +34 -32
- package/dist/tokens.js +28 -26
- package/package.json +1 -1
|
@@ -297,12 +297,12 @@ declare const meta: {
|
|
|
297
297
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
|
|
298
298
|
time?: import("react").ReactNode;
|
|
299
299
|
key?: import("react").Key | null | undefined;
|
|
300
|
+
media?: import("react").ReactNode;
|
|
300
301
|
name?: import("react").ReactNode;
|
|
301
|
-
value?: string | number | readonly string[] | undefined;
|
|
302
302
|
motion?: (typeof motion)[number] | undefined;
|
|
303
|
-
|
|
304
|
-
dateTime?: string | undefined;
|
|
303
|
+
value?: string | number | readonly string[] | undefined;
|
|
305
304
|
side?: (typeof side)[number] | undefined;
|
|
305
|
+
dateTime?: string | undefined;
|
|
306
306
|
ref?: import("react").LegacyRef<HTMLLIElement> | undefined;
|
|
307
307
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
308
308
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const variant: readonly ["neutral", "success", "warning", "danger"];
|
|
2
2
|
/** 나타날 때 모션 세기. 주지 않으면 움직이지 않는다 (ADR 0008) */
|
|
3
3
|
export declare const motion: readonly ["weak", "strong"];
|
|
4
|
+
/** action 자리. below 는 본문 아래 줄, inline 은 본문 오른쪽 같은 줄 */
|
|
5
|
+
export declare const actionPlacement: readonly ["below", "inline"];
|
|
4
6
|
export declare const noticeProps: {
|
|
5
7
|
variant: {
|
|
6
8
|
type: "className";
|
|
@@ -13,4 +15,10 @@ export declare const noticeProps: {
|
|
|
13
15
|
className: string;
|
|
14
16
|
values: readonly ["weak", "strong"];
|
|
15
17
|
};
|
|
18
|
+
actionPlacement: {
|
|
19
|
+
type: "className";
|
|
20
|
+
className: string;
|
|
21
|
+
values: readonly ["below", "inline"];
|
|
22
|
+
default: "below";
|
|
23
|
+
};
|
|
16
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { TrackProps } from '../logging/logging-type';
|
|
3
|
-
import { motion, variant } from './notice-props';
|
|
3
|
+
import { actionPlacement, motion, variant } from './notice-props';
|
|
4
4
|
export type BaseNoticeProps = ComponentPropsWithRef<'div'>;
|
|
5
5
|
/** Toast 의 action 과 같은 모양. Notice 는 Radix Toast 가 아니라 altText 가 없다. track 은 버튼(CTAButton)이 보낸다 */
|
|
6
6
|
export interface NoticeAction extends TrackProps {
|
|
@@ -14,8 +14,10 @@ export interface NoticeProps extends Omit<ComponentPropsWithRef<'div'>, 'title'>
|
|
|
14
14
|
title?: ReactNode;
|
|
15
15
|
/** 본문 글 */
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
/**
|
|
17
|
+
/** 작은 버튼(CTAButton xs·primary·outline) 하나. 자리는 actionPlacement 가 정한다 */
|
|
18
18
|
action?: NoticeAction;
|
|
19
|
+
/** action 자리. 'below'(기본) 는 본문 아래 줄, 'inline' 은 본문 오른쪽 같은 줄(마지막 줄에 맞춘다). action 이 없으면 효과가 없다 */
|
|
20
|
+
actionPlacement?: (typeof actionPlacement)[number];
|
|
19
21
|
/** 조건부로 나타나는 안내만 준다. 나타날 때 흐려졌다 선명해진다 */
|
|
20
22
|
motion?: (typeof motion)[number];
|
|
21
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { motion, variant } from './notice-props';
|
|
2
|
+
import { actionPlacement, motion, variant } from './notice-props';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
parameters: {
|
|
@@ -23,6 +23,12 @@ declare const meta: {
|
|
|
23
23
|
};
|
|
24
24
|
options: readonly ["weak", "strong"];
|
|
25
25
|
};
|
|
26
|
+
actionPlacement: {
|
|
27
|
+
control: {
|
|
28
|
+
type: "select";
|
|
29
|
+
};
|
|
30
|
+
options: readonly ["below", "inline"];
|
|
31
|
+
};
|
|
26
32
|
};
|
|
27
33
|
args: {
|
|
28
34
|
children: string;
|
|
@@ -295,9 +301,10 @@ declare const meta: {
|
|
|
295
301
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
296
302
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
297
303
|
key?: import("react").Key | null | undefined;
|
|
298
|
-
variant?: (typeof variant)[number] | undefined;
|
|
299
304
|
motion?: (typeof motion)[number] | undefined;
|
|
305
|
+
variant?: (typeof variant)[number] | undefined;
|
|
300
306
|
action?: import("./notice-type").NoticeAction | undefined;
|
|
307
|
+
actionPlacement?: (typeof actionPlacement)[number] | undefined;
|
|
301
308
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
302
309
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
303
310
|
};
|
|
@@ -307,5 +314,7 @@ export declare const Default: Story;
|
|
|
307
314
|
export declare const Variants: Story;
|
|
308
315
|
export declare const WithTitle: Story;
|
|
309
316
|
export declare const WithAction: Story;
|
|
317
|
+
/** 짧은 안내와 버튼 하나를 같은 줄에 둔다. 본문이 길면 글만 줄바꿈되고 버튼은 마지막 줄 옆에 남는다 */
|
|
318
|
+
export declare const InlineAction: Story;
|
|
310
319
|
/** 버튼을 누르면 안내가 나타난다. weak·strong 을 견준다 */
|
|
311
320
|
export declare const Motion: Story;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StyleProps } from '../../helpers/types/common-props';
|
|
2
2
|
import type { PrimitiveTokens } from '../../tokens/generated';
|
|
3
3
|
import type { patterns } from './skeleton-group-props';
|
|
4
|
-
/** --spacing-* 의 이름. tokens/
|
|
4
|
+
/** --spacing-* 의 이름. tokens/tokens.json 에서 생성된 primitive.spacing 의 키다 */
|
|
5
5
|
export type SpacingToken = keyof PrimitiveTokens['spacing'];
|
|
6
6
|
export type SkeletonPattern = (typeof patterns)[number];
|
|
7
7
|
/** 묶음이 그리는 블록 하나. row 는 블록을 가로로 놓는다 */
|
|
@@ -312,9 +312,9 @@ declare const meta: {
|
|
|
312
312
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
313
313
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
314
314
|
key?: import("react").Key | null | undefined;
|
|
315
|
+
shape?: (typeof shapes)[number] | undefined;
|
|
315
316
|
height?: number | string | undefined;
|
|
316
317
|
width?: number | string | undefined;
|
|
317
|
-
shape?: (typeof shapes)[number] | undefined;
|
|
318
318
|
lines?: number | undefined;
|
|
319
319
|
animated?: boolean | undefined;
|
|
320
320
|
ref?: import("react").LegacyRef<HTMLSpanElement> | undefined;
|
package/dist/components.css
CHANGED
|
@@ -2647,6 +2647,13 @@
|
|
|
2647
2647
|
display: none;
|
|
2648
2648
|
}
|
|
2649
2649
|
|
|
2650
|
+
/* 여러 개 고르기는 폼 입력이라 칩을 다 보이게 줄을 바꾼다 */
|
|
2651
|
+
|
|
2652
|
+
.base-chip-group:where(.root.multiple) {
|
|
2653
|
+
flex-wrap: wrap;
|
|
2654
|
+
overflow-x: visible;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2650
2657
|
.base-chip-group:where(.chip) {
|
|
2651
2658
|
position: relative;
|
|
2652
2659
|
flex-shrink: 0;
|
|
@@ -3073,6 +3080,15 @@
|
|
|
3073
3080
|
--motion-slide-offset: translateY(100%);
|
|
3074
3081
|
}
|
|
3075
3082
|
|
|
3083
|
+
.drawer.side-bottom.fit-content {
|
|
3084
|
+
height: auto;
|
|
3085
|
+
max-height: var(--sheet-max-height);
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
.drawer.side-bottom.fit-screen {
|
|
3089
|
+
height: var(--sheet-max-height);
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3076
3092
|
.drawer[data-state='open'] {
|
|
3077
3093
|
animation: motion-enter-slide var(--motion-enter-duration) var(--motion-enter-ease);
|
|
3078
3094
|
}
|
|
@@ -4479,6 +4495,67 @@
|
|
|
4479
4495
|
content: none;
|
|
4480
4496
|
}
|
|
4481
4497
|
|
|
4498
|
+
/* 끌기 핸들이 있는 줄: 줄은 div 이고 여백·간격은 안쪽 누르는 영역(list-row-main)이 갖는다 */
|
|
4499
|
+
|
|
4500
|
+
.list-row.has-handle {
|
|
4501
|
+
gap: 0;
|
|
4502
|
+
padding: 0;
|
|
4503
|
+
}
|
|
4504
|
+
|
|
4505
|
+
.list-row-handle {
|
|
4506
|
+
display: flex;
|
|
4507
|
+
flex: none;
|
|
4508
|
+
align-items: center;
|
|
4509
|
+
padding-inline-start: var(--spacing-4);
|
|
4510
|
+
color: var(--icon-secondary);
|
|
4511
|
+
cursor: grab;
|
|
4512
|
+
touch-action: none;
|
|
4513
|
+
}
|
|
4514
|
+
|
|
4515
|
+
.list-row-main {
|
|
4516
|
+
display: flex;
|
|
4517
|
+
flex: 1;
|
|
4518
|
+
align-items: center;
|
|
4519
|
+
align-self: stretch;
|
|
4520
|
+
gap: var(--spacing-12);
|
|
4521
|
+
min-width: 0;
|
|
4522
|
+
padding: var(--spacing-10) var(--spacing-16) var(--spacing-10) var(--spacing-4);
|
|
4523
|
+
border: 0;
|
|
4524
|
+
background-color: transparent;
|
|
4525
|
+
color: inherit;
|
|
4526
|
+
font: inherit;
|
|
4527
|
+
text-align: start;
|
|
4528
|
+
text-decoration: none;
|
|
4529
|
+
}
|
|
4530
|
+
|
|
4531
|
+
.list-row-main:is(a[href],button) {
|
|
4532
|
+
cursor: pointer;
|
|
4533
|
+
}
|
|
4534
|
+
|
|
4535
|
+
.list-row-main:is(a[href],button):focus-visible {
|
|
4536
|
+
outline-offset: calc(var(--focus-ring-width) * -1);
|
|
4537
|
+
}
|
|
4538
|
+
|
|
4539
|
+
/* 하나만 다른 줄. 면 테두리 안쪽에 맞춘 모서리이고 위·아래 구분선은 그리지 않는다 */
|
|
4540
|
+
|
|
4541
|
+
.list-row.highlighted {
|
|
4542
|
+
border: var(--border-width-strong) solid var(--border-accent);
|
|
4543
|
+
border-radius: calc(var(--radius-surface) - var(--hairline));
|
|
4544
|
+
}
|
|
4545
|
+
|
|
4546
|
+
.list-row.highlighted::before,
|
|
4547
|
+
.list-row.highlighted + .list-row::before {
|
|
4548
|
+
content: none;
|
|
4549
|
+
}
|
|
4550
|
+
|
|
4551
|
+
.list-row.dragging {
|
|
4552
|
+
background-color: var(--surface-muted);
|
|
4553
|
+
}
|
|
4554
|
+
|
|
4555
|
+
.list-row.dragging .list-row-handle {
|
|
4556
|
+
cursor: grabbing;
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4482
4559
|
.list-row-leading {
|
|
4483
4560
|
display: flex;
|
|
4484
4561
|
flex: none;
|
|
@@ -5729,6 +5806,23 @@ button.modal-with-double-button-close-button {
|
|
|
5729
5806
|
align-self: flex-start;
|
|
5730
5807
|
}
|
|
5731
5808
|
|
|
5809
|
+
/* 같은 줄: 글은 줄바꿈되고 버튼은 줄지 않은 채 본문 마지막 줄 옆에 붙는다 */
|
|
5810
|
+
|
|
5811
|
+
.notice.action-placement-inline .notice-body {
|
|
5812
|
+
flex-direction: row;
|
|
5813
|
+
gap: var(--spacing-12);
|
|
5814
|
+
}
|
|
5815
|
+
|
|
5816
|
+
.notice.action-placement-inline .notice-text {
|
|
5817
|
+
flex: 1;
|
|
5818
|
+
min-width: 0;
|
|
5819
|
+
}
|
|
5820
|
+
|
|
5821
|
+
.notice.action-placement-inline .notice-action {
|
|
5822
|
+
flex: none;
|
|
5823
|
+
align-self: flex-end;
|
|
5824
|
+
}
|
|
5825
|
+
|
|
5732
5826
|
.base-pagination:where(.item) {
|
|
5733
5827
|
display: inline-flex;
|
|
5734
5828
|
align-items: center;
|
|
@@ -7063,7 +7157,7 @@ button.modal-with-double-button-close-button {
|
|
|
7063
7157
|
flex-shrink: 0;
|
|
7064
7158
|
|
|
7065
7159
|
/* 2. 테마 스타일 (Theme) */
|
|
7066
|
-
/*
|
|
7160
|
+
/* raw-px: 간격 토큰에 11px 가 없다. 탭 높이를 맞추는 값이라 숫자로 둔다 */
|
|
7067
7161
|
padding: 10px 30px 11px 30px; /* raw-px */
|
|
7068
7162
|
color: var(--text-placeholder);
|
|
7069
7163
|
font-size: var(--font-size-sm);
|
|
@@ -7118,7 +7212,7 @@ button.modal-with-double-button-close-button {
|
|
|
7118
7212
|
.tabs-trigger.variant-filled {
|
|
7119
7213
|
flex: 1; /* full-width logic integrated */
|
|
7120
7214
|
text-align: center;
|
|
7121
|
-
/*
|
|
7215
|
+
/* raw-px: 간격 토큰에 11px 가 없다. 탭 높이를 맞추는 값이라 숫자로 둔다 */
|
|
7122
7216
|
padding: 11px 30px; /* raw-px */
|
|
7123
7217
|
border-bottom: 0;
|
|
7124
7218
|
z-index: var(--z-raised);
|
package/dist/drawer.js
CHANGED
|
@@ -41,6 +41,7 @@ var common_props = __nuri_require__(7298);
|
|
|
41
41
|
|
|
42
42
|
var sizes = ['s', 'm', 'l'];
|
|
43
43
|
var sides = ['right', 'left', 'bottom'];
|
|
44
|
+
var fits = ['size', 'content', 'screen'];
|
|
44
45
|
var drawerContentProps = {
|
|
45
46
|
size: (0,common_props/* sizeProp */.lw)(sizes, 'm'),
|
|
46
47
|
side: {
|
|
@@ -48,6 +49,12 @@ var drawerContentProps = {
|
|
|
48
49
|
className: 'side',
|
|
49
50
|
values: sides,
|
|
50
51
|
"default": 'right'
|
|
52
|
+
},
|
|
53
|
+
fit: {
|
|
54
|
+
type: 'className',
|
|
55
|
+
className: 'fit',
|
|
56
|
+
values: fits,
|
|
57
|
+
"default": 'size'
|
|
51
58
|
}
|
|
52
59
|
};
|
|
53
60
|
;// ./components/drawer/drawer.tsx
|