@nurihaus/web-design-system 3.10.0 → 3.12.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 +16 -4
- package/dist/.storybook/patterns.d.ts +36 -0
- package/dist/.storybook/preview.d.ts +12 -0
- package/dist/.storybook/story-kit.d.ts +20 -2
- package/dist/ai/components.md +214 -14
- package/dist/ai/patterns.md +2899 -0
- package/dist/ai/tokens.md +42 -30
- package/dist/chip-group.js +110 -24
- package/dist/chunk-6459.js +3 -1
- package/dist/chunk-7232.js +2 -2
- package/dist/chunk-7653.js +4 -0
- package/dist/components/asset/asset.d.ts +5 -5
- package/dist/components/asset/asset.stories.d.ts +5 -5
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
- package/dist/components/breadcrumb/breadcrumb.stories.d.ts +1 -0
- package/dist/components/button/button.stories.d.ts +1 -0
- package/dist/components/check-box/check-box.stories.d.ts +1 -0
- 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 +5 -1
- package/dist/components/drawer/drawer.stories.d.ts +3 -0
- package/dist/components/drop-down/drop-down.stories.d.ts +1 -0
- package/dist/components/empty-state/empty-state.stories.d.ts +12 -12
- package/dist/components/icon/icon-paths.d.ts +4 -0
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/list/list-footer.stories.d.ts +7 -7
- package/dist/components/list/list-header.stories.d.ts +5 -5
- package/dist/components/list/list-row.stories.d.ts +8 -8
- package/dist/components/media/base-media.d.ts +2 -4
- package/dist/components/media/media-type.d.ts +6 -1
- package/dist/components/message/message.stories.d.ts +9 -9
- package/dist/components/modal/modal-with-double-button.stories.d.ts +1 -0
- package/dist/components/modal/modal.stories.d.ts +3 -0
- package/dist/components/notice/notice.stories.d.ts +5 -5
- package/dist/components/numeric-spinner/numeric-spinner.stories.d.ts +1 -0
- package/dist/components/overlay/overlay.stories.d.ts +1 -1
- package/dist/components/pagination/pagination.stories.d.ts +1 -0
- package/dist/components/radio/radio.stories.d.ts +1 -0
- package/dist/components/rating/rating.stories.d.ts +1 -0
- package/dist/components/segmented-control/segmented-control.stories.d.ts +1 -0
- package/dist/components/skeleton/skeleton-group-type.d.ts +1 -1
- package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +6 -6
- package/dist/components/slider/slider.stories.d.ts +1 -0
- package/dist/components/switch/switch.stories.d.ts +1 -0
- package/dist/components/table/table.stories.d.ts +20 -0
- package/dist/components/tabs/tabs.stories.d.ts +1 -0
- package/dist/components/text-field/text-field.stories.d.ts +1 -1
- package/dist/components/toast/toast.stories.d.ts +9 -6
- package/dist/components/tooltip/tooltip.stories.d.ts +2 -0
- package/dist/components/top/top.stories.d.ts +4 -4
- package/dist/components.css +282 -20
- package/dist/data-table.js +60 -56
- package/dist/docs/patterns/desktop/admin-bulk.stories.d.ts +17 -0
- package/dist/docs/patterns/desktop/admin-dashboard.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-detail.stories.d.ts +13 -0
- package/dist/docs/patterns/desktop/admin-form.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-list.stories.d.ts +13 -0
- package/dist/docs/patterns/desktop/admin-login.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-messages.stories.d.ts +17 -0
- package/dist/docs/patterns/desktop/admin-report.stories.d.ts +17 -0
- package/dist/docs/patterns/desktop/admin-review.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-settings.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-states.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-wizard.stories.d.ts +17 -0
- package/dist/docs/patterns/mobile/chat.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/confirm.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/detail.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/empty.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/feed.stories.d.ts +17 -0
- package/dist/docs/patterns/mobile/filter-sheet.stories.d.ts +17 -0
- package/dist/docs/patterns/mobile/form.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/home.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/list.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/loading.stories.d.ts +18 -0
- package/dist/docs/patterns/mobile/login.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/media.stories.d.ts +16 -0
- package/dist/docs/patterns/mobile/notifications.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/profile.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/result.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/review-write.stories.d.ts +17 -0
- package/dist/docs/patterns/mobile/rewards.stories.d.ts +19 -0
- package/dist/docs/patterns/mobile/search.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/secure-input.stories.d.ts +18 -0
- package/dist/docs/patterns/mobile/settings.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/wizard.stories.d.ts +15 -0
- package/dist/eslint/README.md +79 -0
- package/dist/eslint/index.js +36 -0
- package/dist/eslint/lib/ds-jsx.js +203 -0
- package/dist/eslint/rules/no-cta-in-list-row.js +18 -0
- package/dist/eslint/rules/no-fill-in-card.js +22 -0
- package/dist/eslint/rules/no-fill-in-empty-state.js +21 -0
- package/dist/eslint/rules/no-nav-with-cta.js +25 -0
- package/dist/eslint/rules/no-nested-card.js +18 -0
- package/dist/eslint/rules/no-raw-color.js +26 -0
- package/dist/eslint/rules/no-raw-radius.js +26 -0
- package/dist/eslint/rules/no-sheet-in-modal.js +23 -0
- package/dist/eslint/rules/one-primary-fill.js +20 -0
- package/dist/eslint/rules/single-top.js +20 -0
- package/dist/index.js +244 -116
- package/dist/media-thumbnail.js +2 -0
- package/dist/media-viewer.js +2 -0
- package/dist/pagination.js +32 -8
- package/dist/scripts/patterns-doc.d.mts +26 -0
- package/dist/search-field.js +3 -3
- package/dist/styles/token/colors.d.ts +1 -1
- package/dist/styles.css +283 -50
- package/dist/text-field.js +3 -3
- package/dist/tokens/generated/colors.d.ts +1 -1
- package/dist/tokens/generated/primitive.d.ts +7 -1
- package/dist/tokens/generated/semantic-app.d.ts +19 -19
- package/dist/tokens.css +36 -31
- package/dist/tokens.js +32 -26
- package/package.json +7 -4
- package/dist/.storybook/migration.d.ts +0 -1
package/dist/data-table.js
CHANGED
|
@@ -183,78 +183,82 @@ var DataTableBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs
|
|
|
183
183
|
var fixedClassName = function fixedClassName(index) {
|
|
184
184
|
return (0,classNames/* classNames */.x)(index < fixedRowsIndex && 'fixed', index === fixedRowsIndex - 1 && 'fixed-last');
|
|
185
185
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
className:
|
|
189
|
-
children:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
children: (0,jsx_runtime_.jsx)(base_table.
|
|
193
|
-
className: 'data-table-
|
|
186
|
+
// 좁은 화면에서 표가 이 감싸개 안에서 가로로 스크롤한다. ref·className 은 지금처럼 표에 둔다
|
|
187
|
+
return (0,jsx_runtime_.jsx)("div", {
|
|
188
|
+
className: 'data-table-scroll',
|
|
189
|
+
children: (0,jsx_runtime_.jsxs)(base_table, {
|
|
190
|
+
ref: ref,
|
|
191
|
+
className: (0,classNames/* classNames */.x)('data-table', className),
|
|
192
|
+
children: [(0,jsx_runtime_.jsx)(base_table.Header, {
|
|
193
|
+
className: 'data-table-header',
|
|
194
194
|
style: headerStyle,
|
|
195
|
-
children:
|
|
196
|
-
return (0,jsx_runtime_.jsx)(base_table.Cell, {
|
|
197
|
-
ref: function ref(el) {
|
|
198
|
-
var _a;
|
|
199
|
-
if (index < fixedRowsIndex && el) {
|
|
200
|
-
var leftPosition = 0;
|
|
201
|
-
var cells = (_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.fixed');
|
|
202
|
-
if (cells) {
|
|
203
|
-
for (var i = 0; i < index; i++) {
|
|
204
|
-
leftPosition += cells[i].offsetWidth;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
el.style.left = leftPosition + 'px';
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
className: (0,classNames/* classNames */.x)(fixedClassName(index), pressEffect && item.onClickRow && 'motion-press-dim'),
|
|
211
|
-
style: widthStyle(item),
|
|
212
|
-
onClick: function onClick() {
|
|
213
|
-
if (!item.onClickRow) return;
|
|
214
|
-
emit('click', item.id);
|
|
215
|
-
item.onClickRow(item.id);
|
|
216
|
-
},
|
|
217
|
-
children: item.value
|
|
218
|
-
}, item.id);
|
|
219
|
-
})
|
|
220
|
-
})
|
|
221
|
-
}), (0,jsx_runtime_.jsx)(base_table.Body, {
|
|
222
|
-
className: 'data-table',
|
|
223
|
-
children: columns.map(function (column, columnIndex) {
|
|
224
|
-
var columnKey = Object.keys(column).join('__');
|
|
225
|
-
return (0,jsx_runtime_.jsx)(base_table.Row, {
|
|
195
|
+
children: (0,jsx_runtime_.jsx)(base_table.Row, {
|
|
226
196
|
className: 'data-table-row',
|
|
227
|
-
style:
|
|
228
|
-
children: rows.map(function (item,
|
|
229
|
-
var cellData = column[item.id];
|
|
230
|
-
var cellValue = cellData === null || cellData === void 0 ? void 0 : cellData.value;
|
|
197
|
+
style: headerStyle,
|
|
198
|
+
children: rows.map(function (item, index) {
|
|
231
199
|
return (0,jsx_runtime_.jsx)(base_table.Cell, {
|
|
232
200
|
ref: function ref(el) {
|
|
233
201
|
var _a;
|
|
234
|
-
if (
|
|
202
|
+
if (index < fixedRowsIndex && el) {
|
|
235
203
|
var leftPosition = 0;
|
|
236
204
|
var cells = (_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.fixed');
|
|
237
205
|
if (cells) {
|
|
238
|
-
for (var
|
|
239
|
-
leftPosition += cells[
|
|
206
|
+
for (var i = 0; i < index; i++) {
|
|
207
|
+
leftPosition += cells[i].offsetWidth;
|
|
240
208
|
}
|
|
241
209
|
}
|
|
242
210
|
el.style.left = leftPosition + 'px';
|
|
243
211
|
}
|
|
244
212
|
},
|
|
245
|
-
className: (0,classNames/* classNames */.x)(fixedClassName(
|
|
246
|
-
|
|
213
|
+
className: (0,classNames/* classNames */.x)(fixedClassName(index), pressEffect && item.onClickRow && 'motion-press-dim'),
|
|
214
|
+
style: widthStyle(item),
|
|
247
215
|
onClick: function onClick() {
|
|
248
|
-
|
|
249
|
-
|
|
216
|
+
if (!item.onClickRow) return;
|
|
217
|
+
emit('click', item.id);
|
|
218
|
+
item.onClickRow(item.id);
|
|
250
219
|
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}, "".concat(columnKey, "__").concat(item.id));
|
|
220
|
+
children: item.value
|
|
221
|
+
}, item.id);
|
|
254
222
|
})
|
|
255
|
-
}
|
|
256
|
-
})
|
|
257
|
-
|
|
223
|
+
})
|
|
224
|
+
}), (0,jsx_runtime_.jsx)(base_table.Body, {
|
|
225
|
+
className: 'data-table',
|
|
226
|
+
children: columns.map(function (column, columnIndex) {
|
|
227
|
+
var columnKey = Object.keys(column).join('__');
|
|
228
|
+
return (0,jsx_runtime_.jsx)(base_table.Row, {
|
|
229
|
+
className: 'data-table-row',
|
|
230
|
+
style: rowStyle,
|
|
231
|
+
children: rows.map(function (item, i) {
|
|
232
|
+
var cellData = column[item.id];
|
|
233
|
+
var cellValue = cellData === null || cellData === void 0 ? void 0 : cellData.value;
|
|
234
|
+
return (0,jsx_runtime_.jsx)(base_table.Cell, {
|
|
235
|
+
ref: function ref(el) {
|
|
236
|
+
var _a;
|
|
237
|
+
if (i < fixedRowsIndex && el) {
|
|
238
|
+
var leftPosition = 0;
|
|
239
|
+
var cells = (_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.fixed');
|
|
240
|
+
if (cells) {
|
|
241
|
+
for (var j = 0; j < i; j++) {
|
|
242
|
+
leftPosition += cells[j].offsetWidth;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
el.style.left = leftPosition + 'px';
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
className: (0,classNames/* classNames */.x)(fixedClassName(i), pressEffect && (cellData === null || cellData === void 0 ? void 0 : cellData.onClickCell) && 'motion-press-dim'),
|
|
249
|
+
"data-id": item.id,
|
|
250
|
+
onClick: function onClick() {
|
|
251
|
+
var _a;
|
|
252
|
+
return (_a = cellData === null || cellData === void 0 ? void 0 : cellData.onClickCell) === null || _a === void 0 ? void 0 : _a.call(cellData);
|
|
253
|
+
},
|
|
254
|
+
style: bodyCellStyle(item),
|
|
255
|
+
children: typeof cellValue === 'function' ? cellValue(item) : cellValue
|
|
256
|
+
}, "".concat(columnKey, "__").concat(item.id));
|
|
257
|
+
})
|
|
258
|
+
}, "column__".concat(columnKey, "__").concat(columnIndex));
|
|
259
|
+
})
|
|
260
|
+
})]
|
|
261
|
+
})
|
|
258
262
|
});
|
|
259
263
|
});
|
|
260
264
|
DataTableBase.displayName = 'DataTable';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 고른 행이 없을 때. 바닥 바가 없고 어드민 목록과 같은 화면이다 */
|
|
15
|
+
export declare const NoSelection: Story;
|
|
16
|
+
/** 승인을 누른 뒤 처리 중. 승인은 loading, 반려와 체크는 막힌다. 끝나면 바가 사라지고 Toast 가 뜬다 */
|
|
17
|
+
export declare const Processing: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
/** 할 일과 알릴 것이 있는 평소 화면 */
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
/** 할 일을 다 끝냈을 때. 할 일 카드 안이 EmptyState success 가 되고 Notice 는 빠진다(무드 규칙 10 · 12) */
|
|
16
|
+
export declare const AllDone: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
/** 새 캠페인을 채우는 중인 평소 화면 */
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
/** 저장이 막혔을 때. 막힌 칸은 isError + helperText, 왼쪽 위 danger Notice 하나(무드 규칙 7 · 12) */
|
|
16
|
+
export declare const SaveBlocked: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
/** 처음 들어온 로그인 화면 */
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
/** 로그인이 막혔을 때. 칸 위 danger Notice 하나와 두 칸 isError. 어느 칸이 틀렸는지는 알리지 않는다 */
|
|
16
|
+
export declare const Failed: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 대화를 고르기 전. 오른쪽 카드에는 EmptyState 하나만 놓는다(무드 규칙 10) */
|
|
15
|
+
export declare const NoConversation: Story;
|
|
16
|
+
/** 긴 메시지. 말풍선은 줄바꿈을 그대로 보이고, 목록 행의 긴 이름 · 마지막 메시지는 한 줄로 잘린다 */
|
|
17
|
+
export declare const LongMessages: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 첫 게시물 전. 차트 줄과 표 카드가 EmptyState 하나가 되고 수치 타일은 0 으로 남는다(무드 규칙 10) */
|
|
15
|
+
export declare const NoData: Story;
|
|
16
|
+
/** 기간이 길 때. 막대가 12개를 넘어 첫 · 끝 라벨만 보이고, 표는 10행에 다섯 페이지다 */
|
|
17
|
+
export declare const LongPeriod: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
/** 검수 중인 제출물을 읽는 평소 화면 */
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
/** 반려를 눌렀을 때. 사유는 화면에 먼저 적고, 대화상자는 한 번 묻기만 한다(confirm 패턴) */
|
|
16
|
+
export declare const RejectConfirm: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
/** 일반 탭. 워크스페이스 정보 · 운영 스위치 · 위험 영역 */
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
/** 권한 탭. 역할은 행마다 DropDown 이고 바꾸면 바로 반영된다 */
|
|
16
|
+
export declare const Members: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
/** 필터 결과가 0건일 때. action 은 필터 지우기 neutral outline 하나(빈 상태 패턴의 데스크톱) */
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
/** 처음 불러오는 동안. 표 자리만 SkeletonGroup table 이고 필터 줄은 그대로다 */
|
|
16
|
+
export declare const Loading: Story;
|
|
17
|
+
/** 불러오지 못했을 때. warning 아이콘 · neutral 원 · 다시 시도 weak(무드 규칙 10) */
|
|
18
|
+
export declare const LoadFailed: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 마지막 단계. 폼 대신 요약과 안내 하나, 주 행동은 "만들기" 다 */
|
|
15
|
+
export declare const LastStep: Story;
|
|
16
|
+
/** "다음" 을 눌렀는데 값이 틀렸을 때. 오류는 칸 아래 한 줄이고 Toast 로 알리지 않는다(무드 규칙 7) */
|
|
17
|
+
export declare const ValidationError: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 긴 글. 브랜드 이름이 길면 제목이 줄을 바꾸고, 말풍선은 줄바꿈과 끊김 없는 링크를 폭 안에서 접는다 */
|
|
15
|
+
export declare const LongText: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 불러오지 못했을 때. 아이콘은 warning, 원은 neutral, 버튼은 다시 시도(무드 규칙 10) */
|
|
15
|
+
export declare const LoadFailed: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 사진 없는 글만. 둘째 글은 제목 두 줄 · 본문 세 줄 말줄임을 본다 */
|
|
15
|
+
export declare const TextOnly: Story;
|
|
16
|
+
/** 글이 하나도 없을 때. 글 자리에 EmptyState, 버튼은 weak(무드 규칙 10) */
|
|
17
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 적용한 뒤 시트가 닫힌 목록. 적용한 조건은 Tag 로 남고 하나씩 지운다 */
|
|
15
|
+
export declare const Applied: Story;
|
|
16
|
+
/** 조건에 맞는 캠페인이 없을 때. EmptyState 의 필터 결과 없음 상황 그대로다(무드 규칙 10) */
|
|
17
|
+
export declare const NoMatch: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
/** 목록 화면. Top · 검색 · 칩 · 탭 바는 진짜, 행 자리만 뼈대 다섯 줄 */
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
/** 홈 화면. 퀵 메뉴 · 섹션 제목은 진짜, 수치 카드 안 값과 목록 행만 뼈대 */
|
|
16
|
+
export declare const Home: Story;
|
|
17
|
+
/** 상세 화면. 목록에서 넘어온 이름은 Top 에 진짜로, 큰 이미지 · 요약 두 줄 · 본문 네 줄은 뼈대, 주 행동은 disabled */
|
|
18
|
+
export declare const Detail: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 비밀번호가 틀렸을 때. 오류는 그 칸 아래 한 줄이다(무드 규칙 7) */
|
|
15
|
+
export declare const PasswordError: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const ViewerOpen: Story;
|
|
15
|
+
/** 아직 제출한 콘텐츠가 없을 때. 격자 자리에 EmptyState, 버튼은 weak(무드 규칙 10) */
|
|
16
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 소식이 하나도 없을 때. 빈 목록이라 버튼이 없다(EmptyState usage 상황 표) */
|
|
15
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 신청하지 못했을 때. 경고 아이콘에 회색 원, 주 행동은 다시 시도, 홈은 글자 버튼으로 내린다(무드 규칙 1·10) */
|
|
15
|
+
export declare const Failed: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 후기가 최소 글자보다 짧을 때. 오류는 TextArea 의 isError + helperText 한 줄(무드 규칙 7) */
|
|
15
|
+
export declare const TooShort: Story;
|
|
16
|
+
/** 제출을 누른 뒤 보내는 중. 같은 버튼이 글자 폭을 지킨 채 loading 을 띄운다 */
|
|
17
|
+
export declare const Submitting: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 내역이 하나도 없을 때. 잔액 카드와 기간 전환은 두고 내역 자리만 EmptyState(무드 규칙 10) */
|
|
15
|
+
export declare const Empty: Story;
|
|
16
|
+
/**
|
|
17
|
+
* 출금 신청 시트가 열린 상태. 열린 시트는 포커스를 가두고 바깥 조작을 막아서 Docs 페이지에서는 빼고 캔버스에서만 본다
|
|
18
|
+
*/
|
|
19
|
+
export declare const WithdrawSheet: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
docs: {
|
|
7
|
+
page: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
/** 결과가 0건일 때. 빈 상태 아래에 추천을 남겨 갈 곳을 준다(무드 규칙 10) */
|
|
15
|
+
export declare const NoResults: Story;
|