@ncds/ui-admin 1.8.21-alpha.8 → 1.8.21-alpha.9
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/cjs/src/components/navigation/pagination/Pagination.js +3 -1
- package/dist/cjs/src/components/navigation/pagination/__tests__/Pagination.test.js +74 -0
- package/dist/cjs/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +66 -90
- package/dist/cjs/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +70 -0
- package/dist/cjs/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.test.js +96 -39
- package/dist/cjs/src/generated/scoped-css.js +1 -1
- package/dist/esm/src/components/navigation/pagination/Pagination.js +3 -1
- package/dist/esm/src/components/navigation/pagination/__tests__/Pagination.test.js +74 -0
- package/dist/esm/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +66 -90
- package/dist/esm/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +63 -0
- package/dist/esm/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.test.js +96 -39
- package/dist/esm/src/generated/scoped-css.js +1 -1
- package/dist/temp/src/components/navigation/pagination/Pagination.js +3 -1
- package/dist/temp/src/components/navigation/pagination/__tests__/Pagination.test.js +74 -0
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModal.d.ts +3 -7
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +34 -27
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.d.ts +16 -0
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +24 -0
- package/dist/temp/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.test.js +82 -35
- package/dist/temp/src/generated/scoped-css.js +1 -1
- package/dist/types/src/components/overlays/postcode-search-modal/PostcodeSearchModal.d.ts +3 -7
- package/dist/types/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.d.ts +16 -0
- package/dist/ui-admin/assets/styles/style.css +43 -5
- package/dist/ui-admin/assets/styles/style.scoped.css +43 -5
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PostcodeSearchModalTipProps } from './PostcodeSearchModalTip';
|
|
1
2
|
/** 검색 결과 아이템 하나. */
|
|
2
3
|
interface PostcodeSearchResult {
|
|
3
4
|
/** 우편번호(5자리) */
|
|
@@ -32,17 +33,12 @@ interface PostcodeSearchModalProps {
|
|
|
32
33
|
errorCode?: PostcodeSearchErrorCode;
|
|
33
34
|
onSelect: (result: PostcodeSearchResult) => void;
|
|
34
35
|
}
|
|
35
|
-
interface PostcodeSearchModalTipProps {
|
|
36
|
-
/** 압축 모드 여부. 결과 30건 초과일 때 true */
|
|
37
|
-
compact?: boolean;
|
|
38
|
-
className?: string;
|
|
39
|
-
}
|
|
40
36
|
declare const PostcodeSearchModal: {
|
|
41
37
|
({ open, onClose, zIndex, className, searchQuery, onSearchQueryChange, onSearch, results, totalCount, currentPage, onPageChange, pageSize, loading, errorCode, onSelect, }: PostcodeSearchModalProps): import("react/jsx-runtime").JSX.Element;
|
|
42
38
|
displayName: string;
|
|
43
39
|
Tip: {
|
|
44
|
-
({
|
|
45
|
-
displayName: string;
|
|
40
|
+
({ className }: PostcodeSearchModalTipProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
displayName: string; /** 반응형 전환 기준 — assets/styles/base/_variable.scss 의 $breakpoint 와 동일 */
|
|
46
42
|
};
|
|
47
43
|
};
|
|
48
44
|
export { PostcodeSearchModal };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface PostcodeSearchModalTipProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
}
|
|
4
|
+
/** Tip 카드 첫 줄 안내 문구 (기획서 TIPS.searchTitle) */
|
|
5
|
+
declare const TIP_TITLE = "\uC544\uB798 \uC870\uD569\uC73C\uB85C \uAC80\uC0C9\uD558\uBA74 \uC6D0\uD558\uB294 \uC8FC\uC18C\uB97C \uB354 \uC27D\uAC8C \uCC3E\uC744 \uC218 \uC788\uC5B4\uC694.";
|
|
6
|
+
/**
|
|
7
|
+
* 검색어 조합을 안내하는 Tip 카드.
|
|
8
|
+
* 결과 목록이 없는 화면(초기·오류·결과 없음)에서만 노출된다.
|
|
9
|
+
* 결과가 있을 때는 모달이 안내 문구 한 줄만 검색 영역에 붙여 고정한다.
|
|
10
|
+
*/
|
|
11
|
+
declare const Tip: {
|
|
12
|
+
({ className }: PostcodeSearchModalTipProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export { Tip, TIP_TITLE };
|
|
16
|
+
export type { PostcodeSearchModalTipProps };
|
|
@@ -2254,27 +2254,63 @@ button {
|
|
|
2254
2254
|
.ncua-modal:has(.ncua-postcode-search-modal) {
|
|
2255
2255
|
height: 480px;
|
|
2256
2256
|
}
|
|
2257
|
+
.ncua-modal:has(.ncua-postcode-search-modal) .ncua-postcode-search-modal__item .ncua-radio-input {
|
|
2258
|
+
display: none;
|
|
2259
|
+
}
|
|
2257
2260
|
}
|
|
2258
2261
|
|
|
2259
2262
|
.ncua-modal__content:has(.ncua-postcode-search-modal) {
|
|
2260
2263
|
display: flex;
|
|
2261
2264
|
flex-direction: column;
|
|
2262
2265
|
padding-block-end: 91px;
|
|
2266
|
+
padding-inline: 0;
|
|
2263
2267
|
}
|
|
2264
2268
|
|
|
2265
2269
|
.ncua-postcode-search-modal {
|
|
2270
|
+
--padding-inline: 20px;
|
|
2266
2271
|
display: flex;
|
|
2267
2272
|
flex: 1;
|
|
2268
2273
|
flex-direction: column;
|
|
2269
2274
|
gap: var(--spacing-m);
|
|
2270
2275
|
}
|
|
2271
2276
|
|
|
2277
|
+
.ncua-postcode-search-modal__search-area {
|
|
2278
|
+
position: sticky;
|
|
2279
|
+
top: 0;
|
|
2280
|
+
z-index: 1;
|
|
2281
|
+
padding-inline: var(--padding-inline);
|
|
2282
|
+
display: flex;
|
|
2283
|
+
flex-direction: column;
|
|
2284
|
+
gap: var(--spacing-s);
|
|
2285
|
+
background-color: var(--base-white);
|
|
2286
|
+
padding-block-end: 12px;
|
|
2287
|
+
}
|
|
2288
|
+
.ncua-postcode-search-modal__search-area.is-fixed {
|
|
2289
|
+
border-block-end: 1px solid var(--gray-200);
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2272
2292
|
.ncua-postcode-search-modal__search {
|
|
2273
2293
|
display: flex;
|
|
2274
2294
|
align-items: flex-start;
|
|
2275
2295
|
gap: var(--spacing-s);
|
|
2276
2296
|
}
|
|
2277
2297
|
|
|
2298
|
+
.ncua-postcode-search-modal__search-area .ncua-postcode-search-modal__result-title {
|
|
2299
|
+
margin: 0 0 2px;
|
|
2300
|
+
color: var(--gray-500);
|
|
2301
|
+
font-size: var(--font-size-xs);
|
|
2302
|
+
font-weight: var(--font-weights-commerce-sans-1);
|
|
2303
|
+
line-height: var(--line-heights-xs);
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
.ncua-postcode-search-modal__result-desc {
|
|
2307
|
+
margin: 0;
|
|
2308
|
+
color: var(--gray-400);
|
|
2309
|
+
font-size: var(--font-size-xxs);
|
|
2310
|
+
font-weight: var(--font-weights-commerce-sans-0);
|
|
2311
|
+
line-height: var(--line-heights-xxs);
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2278
2314
|
.ncua-postcode-search-modal__search-input {
|
|
2279
2315
|
flex: 1;
|
|
2280
2316
|
min-width: 0;
|
|
@@ -2285,6 +2321,7 @@ button {
|
|
|
2285
2321
|
}
|
|
2286
2322
|
|
|
2287
2323
|
.ncua-postcode-search-modal__count {
|
|
2324
|
+
padding-inline: var(--padding-inline);
|
|
2288
2325
|
color: var(--gray-700);
|
|
2289
2326
|
font-size: var(--font-size-xs);
|
|
2290
2327
|
font-weight: var(--font-weights-commerce-sans-2);
|
|
@@ -2295,7 +2332,7 @@ button {
|
|
|
2295
2332
|
}
|
|
2296
2333
|
|
|
2297
2334
|
.ncua-postcode-search-modal__list {
|
|
2298
|
-
padding-
|
|
2335
|
+
padding-inline: var(--padding-inline);
|
|
2299
2336
|
margin-bottom: 0;
|
|
2300
2337
|
}
|
|
2301
2338
|
|
|
@@ -2361,6 +2398,7 @@ button {
|
|
|
2361
2398
|
}
|
|
2362
2399
|
|
|
2363
2400
|
.ncua-postcode-search-modal__tip {
|
|
2401
|
+
padding-inline: var(--padding-inline);
|
|
2364
2402
|
color: var(--gray-500);
|
|
2365
2403
|
font-size: var(--font-size-xxs);
|
|
2366
2404
|
line-height: var(--line-heights-xxs);
|
|
@@ -2413,15 +2451,15 @@ button {
|
|
|
2413
2451
|
padding-left: var(--spacing-s);
|
|
2414
2452
|
}
|
|
2415
2453
|
|
|
2416
|
-
.ncua-postcode-search-modal__tip-compact-text {
|
|
2417
|
-
margin: 0;
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
2454
|
.ncua-postcode-search-modal__pagination {
|
|
2421
2455
|
display: flex;
|
|
2422
2456
|
justify-content: center;
|
|
2423
2457
|
margin-top: auto;
|
|
2424
2458
|
padding-top: var(--spacing-m);
|
|
2459
|
+
padding-inline: var(--padding-inline);
|
|
2460
|
+
}
|
|
2461
|
+
.ncua-postcode-search-modal__pagination .ncua-pagination--mo {
|
|
2462
|
+
flex: 1;
|
|
2425
2463
|
}
|
|
2426
2464
|
|
|
2427
2465
|
.ncua-postcode-search-modal__empty {
|
|
@@ -2246,27 +2246,63 @@
|
|
|
2246
2246
|
.ncua-modal:has(.ncua-postcode-search-modal) {
|
|
2247
2247
|
height: 480px;
|
|
2248
2248
|
}
|
|
2249
|
+
.ncua-modal:has(.ncua-postcode-search-modal) .ncua-postcode-search-modal__item .ncua-radio-input {
|
|
2250
|
+
display: none;
|
|
2251
|
+
}
|
|
2249
2252
|
}
|
|
2250
2253
|
|
|
2251
2254
|
.ncua-modal__content:has(.ncua-postcode-search-modal) {
|
|
2252
2255
|
display: flex;
|
|
2253
2256
|
flex-direction: column;
|
|
2254
2257
|
padding-block-end: 91px;
|
|
2258
|
+
padding-inline: 0;
|
|
2255
2259
|
}
|
|
2256
2260
|
|
|
2257
2261
|
.ncua-postcode-search-modal {
|
|
2262
|
+
--padding-inline: 20px;
|
|
2258
2263
|
display: flex;
|
|
2259
2264
|
flex: 1;
|
|
2260
2265
|
flex-direction: column;
|
|
2261
2266
|
gap: var(--spacing-m);
|
|
2262
2267
|
}
|
|
2263
2268
|
|
|
2269
|
+
.ncua-postcode-search-modal__search-area {
|
|
2270
|
+
position: sticky;
|
|
2271
|
+
top: 0;
|
|
2272
|
+
z-index: 1;
|
|
2273
|
+
padding-inline: var(--padding-inline);
|
|
2274
|
+
display: flex;
|
|
2275
|
+
flex-direction: column;
|
|
2276
|
+
gap: var(--spacing-s);
|
|
2277
|
+
background-color: var(--base-white);
|
|
2278
|
+
padding-block-end: 12px;
|
|
2279
|
+
}
|
|
2280
|
+
.ncua-postcode-search-modal__search-area.is-fixed {
|
|
2281
|
+
border-block-end: 1px solid var(--gray-200);
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2264
2284
|
.ncua-postcode-search-modal__search {
|
|
2265
2285
|
display: flex;
|
|
2266
2286
|
align-items: flex-start;
|
|
2267
2287
|
gap: var(--spacing-s);
|
|
2268
2288
|
}
|
|
2269
2289
|
|
|
2290
|
+
.ncua-postcode-search-modal__search-area .ncua-postcode-search-modal__result-title {
|
|
2291
|
+
margin: 0 0 2px;
|
|
2292
|
+
color: var(--gray-500);
|
|
2293
|
+
font-size: var(--font-size-xs);
|
|
2294
|
+
font-weight: var(--font-weights-commerce-sans-1);
|
|
2295
|
+
line-height: var(--line-heights-xs);
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2298
|
+
.ncua-postcode-search-modal__result-desc {
|
|
2299
|
+
margin: 0;
|
|
2300
|
+
color: var(--gray-400);
|
|
2301
|
+
font-size: var(--font-size-xxs);
|
|
2302
|
+
font-weight: var(--font-weights-commerce-sans-0);
|
|
2303
|
+
line-height: var(--line-heights-xxs);
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2270
2306
|
.ncua-postcode-search-modal__search-input {
|
|
2271
2307
|
flex: 1;
|
|
2272
2308
|
min-width: 0;
|
|
@@ -2277,6 +2313,7 @@
|
|
|
2277
2313
|
}
|
|
2278
2314
|
|
|
2279
2315
|
.ncua-postcode-search-modal__count {
|
|
2316
|
+
padding-inline: var(--padding-inline);
|
|
2280
2317
|
color: var(--gray-700);
|
|
2281
2318
|
font-size: var(--font-size-xs);
|
|
2282
2319
|
font-weight: var(--font-weights-commerce-sans-2);
|
|
@@ -2287,7 +2324,7 @@
|
|
|
2287
2324
|
}
|
|
2288
2325
|
|
|
2289
2326
|
.ncua-postcode-search-modal__list {
|
|
2290
|
-
padding-
|
|
2327
|
+
padding-inline: var(--padding-inline);
|
|
2291
2328
|
margin-bottom: 0;
|
|
2292
2329
|
}
|
|
2293
2330
|
|
|
@@ -2353,6 +2390,7 @@
|
|
|
2353
2390
|
}
|
|
2354
2391
|
|
|
2355
2392
|
.ncua-postcode-search-modal__tip {
|
|
2393
|
+
padding-inline: var(--padding-inline);
|
|
2356
2394
|
color: var(--gray-500);
|
|
2357
2395
|
font-size: var(--font-size-xxs);
|
|
2358
2396
|
line-height: var(--line-heights-xxs);
|
|
@@ -2405,15 +2443,15 @@
|
|
|
2405
2443
|
padding-left: var(--spacing-s);
|
|
2406
2444
|
}
|
|
2407
2445
|
|
|
2408
|
-
.ncua-postcode-search-modal__tip-compact-text {
|
|
2409
|
-
margin: 0;
|
|
2410
|
-
}
|
|
2411
|
-
|
|
2412
2446
|
.ncua-postcode-search-modal__pagination {
|
|
2413
2447
|
display: flex;
|
|
2414
2448
|
justify-content: center;
|
|
2415
2449
|
margin-top: auto;
|
|
2416
2450
|
padding-top: var(--spacing-m);
|
|
2451
|
+
padding-inline: var(--padding-inline);
|
|
2452
|
+
}
|
|
2453
|
+
.ncua-postcode-search-modal__pagination .ncua-pagination--mo {
|
|
2454
|
+
flex: 1;
|
|
2417
2455
|
}
|
|
2418
2456
|
|
|
2419
2457
|
.ncua-postcode-search-modal__empty {
|