@ncds/ui-admin 1.8.21-alpha.9 → 1.8.22-alpha.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/cjs/src/components/forms-and-input/input-base/InputBase.js +13 -7
- package/dist/cjs/src/components/forms-and-input/input-base/__tests__/InputBase.test.js +16 -11
- package/dist/cjs/src/components/overlays/notification/CalloutNotification.js +6 -1
- package/dist/cjs/src/components/overlays/notification/Notification.js +22 -2
- package/dist/cjs/src/components/overlays/notification/__tests__/CalloutNotification.test.js +128 -0
- package/dist/cjs/src/components/overlays/notification/__tests__/Notification.test.js +83 -0
- package/dist/cjs/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +8 -2
- package/dist/cjs/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.test.js +1 -1
- package/dist/cjs/src/generated/scoped-css.js +1 -1
- package/dist/esm/src/components/forms-and-input/input-base/InputBase.js +13 -7
- package/dist/esm/src/components/forms-and-input/input-base/__tests__/InputBase.test.js +16 -11
- package/dist/esm/src/components/overlays/notification/CalloutNotification.js +6 -1
- package/dist/esm/src/components/overlays/notification/Notification.js +22 -2
- package/dist/esm/src/components/overlays/notification/__tests__/CalloutNotification.test.js +125 -0
- package/dist/esm/src/components/overlays/notification/__tests__/Notification.test.js +80 -0
- package/dist/esm/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +9 -3
- package/dist/esm/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.test.js +1 -1
- package/dist/esm/src/generated/scoped-css.js +1 -1
- package/dist/temp/src/components/forms-and-input/input-base/InputBase.js +10 -4
- package/dist/temp/src/components/forms-and-input/input-base/__tests__/InputBase.test.js +14 -12
- package/dist/temp/src/components/overlays/notification/CalloutNotification.d.ts +3 -1
- package/dist/temp/src/components/overlays/notification/CalloutNotification.js +5 -1
- package/dist/temp/src/components/overlays/notification/Notification.d.ts +12 -2
- package/dist/temp/src/components/overlays/notification/Notification.js +9 -4
- package/dist/temp/src/components/overlays/notification/__tests__/CalloutNotification.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/notification/__tests__/CalloutNotification.test.js +108 -0
- package/dist/temp/src/components/overlays/notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/temp/src/components/overlays/notification/__tests__/Notification.test.js +71 -0
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModal.d.ts +1 -1
- package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +6 -2
- package/dist/temp/src/components/overlays/postcode-search-modal/__tests__/PostcodeSearchModal.test.js +1 -1
- package/dist/temp/src/generated/scoped-css.js +1 -1
- package/dist/types/src/components/overlays/notification/CalloutNotification.d.ts +3 -1
- package/dist/types/src/components/overlays/notification/Notification.d.ts +12 -2
- package/dist/types/src/components/overlays/notification/__tests__/CalloutNotification.test.d.ts +1 -0
- package/dist/types/src/components/overlays/notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/types/src/components/overlays/postcode-search-modal/PostcodeSearchModal.d.ts +1 -1
- package/dist/ui-admin/assets/styles/style.css +38 -20
- package/package.json +1 -1
- package/dist/ui-admin/assets/styles/style.scoped.css +0 -8595
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
2
|
import type { NotificationColor } from './Notification';
|
|
3
|
+
type CalloutNotificationWidth = 'full' | 'fit';
|
|
3
4
|
interface CalloutNotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
4
5
|
color?: NotificationColor;
|
|
5
6
|
title?: ReactNode;
|
|
7
|
+
width?: CalloutNotificationWidth;
|
|
6
8
|
}
|
|
7
9
|
declare const CalloutNotification: import("react").ForwardRefExoticComponent<CalloutNotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export type { CalloutNotificationProps };
|
|
10
|
+
export type { CalloutNotificationProps, CalloutNotificationWidth };
|
|
9
11
|
export { CalloutNotification };
|
|
@@ -2,7 +2,7 @@ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
|
2
2
|
import type { ColorTone } from '../../../../constant/color';
|
|
3
3
|
import type { SlotIconComponent } from '../../../types/side-slot';
|
|
4
4
|
import type { ButtonTheme } from '../../action/button';
|
|
5
|
-
import { type CalloutNotificationProps } from './CalloutNotification';
|
|
5
|
+
import { type CalloutNotificationProps, type CalloutNotificationWidth } from './CalloutNotification';
|
|
6
6
|
type NotificationType = 'floating' | 'full-width' | 'message' | 'callout';
|
|
7
7
|
type NotificationColor = Extract<ColorTone, 'neutral' | 'error' | 'warning' | 'success' | 'info'>;
|
|
8
8
|
type NotificationSize = 'desktop' | 'mobile';
|
|
@@ -76,6 +76,16 @@ interface NotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title
|
|
|
76
76
|
* 표기가 통일되어 있지 않은 것은 현행 유지이며, 통일은 별도 결정 사항이다.
|
|
77
77
|
*/
|
|
78
78
|
hidePermanentlyLabel?: ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* supportingText 에 연결할 링크 URL (선택사항)
|
|
81
|
+
* full-width 타입에서 사용 가능
|
|
82
|
+
*/
|
|
83
|
+
supportTextLink?: string;
|
|
84
|
+
/**
|
|
85
|
+
* 너비 동작 (선택사항)
|
|
86
|
+
* callout 타입에서만 사용 가능. 미지정 시 부모 너비를 채운다(100%). 'fit' 은 콘텐츠 너비에 맞춘다
|
|
87
|
+
*/
|
|
88
|
+
width?: CalloutNotificationWidth;
|
|
79
89
|
/**
|
|
80
90
|
* Portal 마운트 여부. `floating` 타입에서만 동작한다.
|
|
81
91
|
*
|
|
@@ -92,5 +102,5 @@ interface NotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title
|
|
|
92
102
|
}
|
|
93
103
|
declare const Notification: import("react").ForwardRefExoticComponent<NotificationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
94
104
|
export type { NotificationType, NotificationColor, NotificationSize, NotificationAction, NotificationProps };
|
|
95
|
-
export type { CalloutNotificationProps };
|
|
105
|
+
export type { CalloutNotificationProps, CalloutNotificationWidth };
|
|
96
106
|
export { Notification };
|
package/dist/types/src/components/overlays/notification/__tests__/CalloutNotification.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -38,7 +38,7 @@ declare const PostcodeSearchModal: {
|
|
|
38
38
|
displayName: string;
|
|
39
39
|
Tip: {
|
|
40
40
|
({ className }: PostcodeSearchModalTipProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
displayName: string;
|
|
41
|
+
displayName: string;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
export { PostcodeSearchModal };
|
|
@@ -2257,33 +2257,35 @@ button {
|
|
|
2257
2257
|
.ncua-modal:has(.ncua-postcode-search-modal) .ncua-postcode-search-modal__item .ncua-radio-input {
|
|
2258
2258
|
display: none;
|
|
2259
2259
|
}
|
|
2260
|
+
.ncua-modal:has(.ncua-postcode-search-modal) .ncua-modal__content {
|
|
2261
|
+
padding-block-end: 20px;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
.ncua-modal:has(.ncua-postcode-search-modal) .ncua-modal__header-divider {
|
|
2266
|
+
margin: 0;
|
|
2260
2267
|
}
|
|
2261
2268
|
|
|
2262
2269
|
.ncua-modal__content:has(.ncua-postcode-search-modal) {
|
|
2263
2270
|
display: flex;
|
|
2264
2271
|
flex-direction: column;
|
|
2265
|
-
padding-block-end:
|
|
2272
|
+
padding-block-end: 32px;
|
|
2266
2273
|
padding-inline: 0;
|
|
2267
2274
|
}
|
|
2268
2275
|
|
|
2269
2276
|
.ncua-postcode-search-modal {
|
|
2270
2277
|
--padding-inline: 20px;
|
|
2271
|
-
display: flex;
|
|
2272
|
-
flex: 1;
|
|
2273
|
-
flex-direction: column;
|
|
2274
|
-
gap: var(--spacing-m);
|
|
2275
2278
|
}
|
|
2276
2279
|
|
|
2277
2280
|
.ncua-postcode-search-modal__search-area {
|
|
2278
2281
|
position: sticky;
|
|
2279
2282
|
top: 0;
|
|
2280
2283
|
z-index: 1;
|
|
2281
|
-
padding
|
|
2284
|
+
padding: 16px var(--padding-inline) 20px;
|
|
2282
2285
|
display: flex;
|
|
2283
2286
|
flex-direction: column;
|
|
2284
2287
|
gap: var(--spacing-s);
|
|
2285
2288
|
background-color: var(--base-white);
|
|
2286
|
-
padding-block-end: 12px;
|
|
2287
2289
|
}
|
|
2288
2290
|
.ncua-postcode-search-modal__search-area.is-fixed {
|
|
2289
2291
|
border-block-end: 1px solid var(--gray-200);
|
|
@@ -2292,7 +2294,7 @@ button {
|
|
|
2292
2294
|
.ncua-postcode-search-modal__search {
|
|
2293
2295
|
display: flex;
|
|
2294
2296
|
align-items: flex-start;
|
|
2295
|
-
gap: var(--spacing-
|
|
2297
|
+
gap: var(--spacing-xs);
|
|
2296
2298
|
}
|
|
2297
2299
|
|
|
2298
2300
|
.ncua-postcode-search-modal__search-area .ncua-postcode-search-modal__result-title {
|
|
@@ -2322,7 +2324,8 @@ button {
|
|
|
2322
2324
|
|
|
2323
2325
|
.ncua-postcode-search-modal__count {
|
|
2324
2326
|
padding-inline: var(--padding-inline);
|
|
2325
|
-
|
|
2327
|
+
margin-block-start: 12px;
|
|
2328
|
+
color: var(--gray-500);
|
|
2326
2329
|
font-size: var(--font-size-xs);
|
|
2327
2330
|
font-weight: var(--font-weights-commerce-sans-2);
|
|
2328
2331
|
line-height: var(--line-heights-xs);
|
|
@@ -2333,7 +2336,7 @@ button {
|
|
|
2333
2336
|
|
|
2334
2337
|
.ncua-postcode-search-modal__list {
|
|
2335
2338
|
padding-inline: var(--padding-inline);
|
|
2336
|
-
margin-
|
|
2339
|
+
margin-block: 8px 0;
|
|
2337
2340
|
}
|
|
2338
2341
|
|
|
2339
2342
|
.ncua-postcode-search-modal__item {
|
|
@@ -2346,6 +2349,10 @@ button {
|
|
|
2346
2349
|
align-items: center;
|
|
2347
2350
|
width: 100%;
|
|
2348
2351
|
}
|
|
2352
|
+
.ncua-postcode-search-modal__item .ncua-radio-field.has-text {
|
|
2353
|
+
gap: 16px;
|
|
2354
|
+
vertical-align: top;
|
|
2355
|
+
}
|
|
2349
2356
|
.ncua-postcode-search-modal__item .ncua-radio-field__input + span {
|
|
2350
2357
|
flex: 1;
|
|
2351
2358
|
}
|
|
@@ -2398,6 +2405,7 @@ button {
|
|
|
2398
2405
|
}
|
|
2399
2406
|
|
|
2400
2407
|
.ncua-postcode-search-modal__tip {
|
|
2408
|
+
margin-inline-start: 6px;
|
|
2401
2409
|
padding-inline: var(--padding-inline);
|
|
2402
2410
|
color: var(--gray-500);
|
|
2403
2411
|
font-size: var(--font-size-xxs);
|
|
@@ -2415,6 +2423,7 @@ button {
|
|
|
2415
2423
|
|
|
2416
2424
|
.ncua-postcode-search-modal__tip-icon {
|
|
2417
2425
|
flex-shrink: 0;
|
|
2426
|
+
color: var(--gray-400);
|
|
2418
2427
|
}
|
|
2419
2428
|
|
|
2420
2429
|
.ncua-postcode-search-modal__tip .ncua-postcode-search-modal__tip-title {
|
|
@@ -2444,18 +2453,17 @@ button {
|
|
|
2444
2453
|
}
|
|
2445
2454
|
|
|
2446
2455
|
.ncua-postcode-search-modal__tip-combination {
|
|
2447
|
-
|
|
2456
|
+
font-weight: var(--font-weights-commerce-sans-1);
|
|
2448
2457
|
}
|
|
2449
2458
|
|
|
2450
2459
|
.ncua-postcode-search-modal__tip-example {
|
|
2451
|
-
|
|
2460
|
+
font-weight: var(--font-weights-commerce-sans-0);
|
|
2452
2461
|
}
|
|
2453
2462
|
|
|
2454
2463
|
.ncua-postcode-search-modal__pagination {
|
|
2455
2464
|
display: flex;
|
|
2456
2465
|
justify-content: center;
|
|
2457
|
-
margin-top:
|
|
2458
|
-
padding-top: var(--spacing-m);
|
|
2466
|
+
margin-top: 20px;
|
|
2459
2467
|
padding-inline: var(--padding-inline);
|
|
2460
2468
|
}
|
|
2461
2469
|
.ncua-postcode-search-modal__pagination .ncua-pagination--mo {
|
|
@@ -2889,6 +2897,7 @@ button {
|
|
|
2889
2897
|
align-items: center;
|
|
2890
2898
|
justify-content: space-between;
|
|
2891
2899
|
gap: 24px;
|
|
2900
|
+
flex-wrap: wrap;
|
|
2892
2901
|
}
|
|
2893
2902
|
@media (max-width: 768px) {
|
|
2894
2903
|
.ncua-message-notification__content {
|
|
@@ -2902,7 +2911,7 @@ button {
|
|
|
2902
2911
|
display: flex;
|
|
2903
2912
|
align-items: center;
|
|
2904
2913
|
gap: 12px;
|
|
2905
|
-
min-width:
|
|
2914
|
+
min-width: 160px;
|
|
2906
2915
|
}
|
|
2907
2916
|
.ncua-message-notification__icon {
|
|
2908
2917
|
flex-shrink: 0;
|
|
@@ -2928,6 +2937,7 @@ button {
|
|
|
2928
2937
|
align-items: center;
|
|
2929
2938
|
gap: 12px;
|
|
2930
2939
|
flex-shrink: 0;
|
|
2940
|
+
margin-left: auto;
|
|
2931
2941
|
flex-wrap: wrap;
|
|
2932
2942
|
}
|
|
2933
2943
|
@media (max-width: 768px) {
|
|
@@ -3069,6 +3079,13 @@ button {
|
|
|
3069
3079
|
line-height: var(--line-heights-md);
|
|
3070
3080
|
font-weight: var(--font-weights-commerce-sans-0);
|
|
3071
3081
|
}
|
|
3082
|
+
.ncua-callout-notification--full {
|
|
3083
|
+
width: 100%;
|
|
3084
|
+
}
|
|
3085
|
+
.ncua-callout-notification--fit {
|
|
3086
|
+
width: fit-content;
|
|
3087
|
+
max-width: 100%;
|
|
3088
|
+
}
|
|
3072
3089
|
.ncua-callout-notification--info {
|
|
3073
3090
|
background-color: var(--blue-50);
|
|
3074
3091
|
border-color: var(--blue-200);
|
|
@@ -4095,17 +4112,17 @@ button {
|
|
|
4095
4112
|
list-style: none;
|
|
4096
4113
|
}
|
|
4097
4114
|
.ncua-pagination__item + .ncua-pagination__item {
|
|
4098
|
-
margin-inline-start:
|
|
4115
|
+
margin-inline-start: 2px;
|
|
4099
4116
|
margin-top: 0;
|
|
4100
4117
|
}
|
|
4101
4118
|
.ncua-pagination__page-num {
|
|
4102
|
-
font-size:
|
|
4103
|
-
font-weight:
|
|
4119
|
+
font-size: var(--font-size-xs);
|
|
4120
|
+
font-weight: var(--font-weights-commerce-sans-1);
|
|
4104
4121
|
display: inline-flex;
|
|
4105
4122
|
justify-content: center;
|
|
4106
4123
|
align-items: center;
|
|
4107
|
-
padding-inline:
|
|
4108
|
-
|
|
4124
|
+
padding-inline: 0;
|
|
4125
|
+
width: 32px;
|
|
4109
4126
|
height: 32px;
|
|
4110
4127
|
border-radius: 8px;
|
|
4111
4128
|
border: 0;
|
|
@@ -4152,6 +4169,7 @@ button {
|
|
|
4152
4169
|
color: var(--gray-400);
|
|
4153
4170
|
}
|
|
4154
4171
|
.ncua-pagination--mo .ncua-pagination__current-num {
|
|
4172
|
+
margin-inline-end: 5px;
|
|
4155
4173
|
font-style: normal;
|
|
4156
4174
|
color: var(--gray-700);
|
|
4157
4175
|
}
|