@ncds/ui-admin 1.8.21-alpha.12 → 1.8.21-alpha.14

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.
Files changed (32) hide show
  1. package/dist/cjs/src/components/overlays/notification/CalloutNotification.js +6 -1
  2. package/dist/cjs/src/components/overlays/notification/Notification.js +22 -2
  3. package/dist/cjs/src/components/overlays/notification/__tests__/CalloutNotification.test.js +128 -0
  4. package/dist/cjs/src/components/overlays/notification/__tests__/Notification.test.js +83 -0
  5. package/dist/cjs/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +5 -1
  6. package/dist/cjs/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +2 -0
  7. package/dist/cjs/src/generated/scoped-css.js +1 -1
  8. package/dist/esm/src/components/overlays/notification/CalloutNotification.js +6 -1
  9. package/dist/esm/src/components/overlays/notification/Notification.js +22 -2
  10. package/dist/esm/src/components/overlays/notification/__tests__/CalloutNotification.test.js +125 -0
  11. package/dist/esm/src/components/overlays/notification/__tests__/Notification.test.js +80 -0
  12. package/dist/esm/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +5 -1
  13. package/dist/esm/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +2 -0
  14. package/dist/esm/src/generated/scoped-css.js +1 -1
  15. package/dist/temp/src/components/overlays/notification/CalloutNotification.d.ts +3 -1
  16. package/dist/temp/src/components/overlays/notification/CalloutNotification.js +5 -1
  17. package/dist/temp/src/components/overlays/notification/Notification.d.ts +12 -2
  18. package/dist/temp/src/components/overlays/notification/Notification.js +9 -4
  19. package/dist/temp/src/components/overlays/notification/__tests__/CalloutNotification.test.d.ts +1 -0
  20. package/dist/temp/src/components/overlays/notification/__tests__/CalloutNotification.test.js +108 -0
  21. package/dist/temp/src/components/overlays/notification/__tests__/Notification.test.d.ts +1 -0
  22. package/dist/temp/src/components/overlays/notification/__tests__/Notification.test.js +71 -0
  23. package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModal.js +5 -1
  24. package/dist/temp/src/components/overlays/postcode-search-modal/PostcodeSearchModalTip.js +1 -1
  25. package/dist/temp/src/generated/scoped-css.js +1 -1
  26. package/dist/types/src/components/overlays/notification/CalloutNotification.d.ts +3 -1
  27. package/dist/types/src/components/overlays/notification/Notification.d.ts +12 -2
  28. package/dist/types/src/components/overlays/notification/__tests__/CalloutNotification.test.d.ts +1 -0
  29. package/dist/types/src/components/overlays/notification/__tests__/Notification.test.d.ts +1 -0
  30. package/dist/ui-admin/assets/styles/style.css +17 -1
  31. package/dist/ui-admin/assets/styles/style.scoped.css +17 -1
  32. package/package.json +1 -1
@@ -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 };
@@ -2333,7 +2333,7 @@ button {
2333
2333
 
2334
2334
  .ncua-postcode-search-modal__list {
2335
2335
  padding-inline: var(--padding-inline);
2336
- margin-block: var(--spacing-m) 0;
2336
+ margin-block: 8px 0;
2337
2337
  }
2338
2338
 
2339
2339
  .ncua-postcode-search-modal__item {
@@ -2402,6 +2402,7 @@ button {
2402
2402
  }
2403
2403
 
2404
2404
  .ncua-postcode-search-modal__tip {
2405
+ margin-inline-start: 6px;
2405
2406
  padding-inline: var(--padding-inline);
2406
2407
  color: var(--gray-500);
2407
2408
  font-size: var(--font-size-xxs);
@@ -2448,6 +2449,14 @@ button {
2448
2449
  left: 0;
2449
2450
  }
2450
2451
 
2452
+ .ncua-postcode-search-modal__tip-combination {
2453
+ font-weight: var(--font-weights-commerce-sans-1);
2454
+ }
2455
+
2456
+ .ncua-postcode-search-modal__tip-example {
2457
+ font-weight: var(--font-weights-commerce-sans-0);
2458
+ }
2459
+
2451
2460
  .ncua-postcode-search-modal__pagination {
2452
2461
  display: flex;
2453
2462
  justify-content: center;
@@ -3065,6 +3074,13 @@ button {
3065
3074
  line-height: var(--line-heights-md);
3066
3075
  font-weight: var(--font-weights-commerce-sans-0);
3067
3076
  }
3077
+ .ncua-callout-notification--full {
3078
+ width: 100%;
3079
+ }
3080
+ .ncua-callout-notification--fit {
3081
+ width: fit-content;
3082
+ max-width: 100%;
3083
+ }
3068
3084
  .ncua-callout-notification--info {
3069
3085
  background-color: var(--blue-50);
3070
3086
  border-color: var(--blue-200);
@@ -2325,7 +2325,7 @@
2325
2325
 
2326
2326
  .ncua-postcode-search-modal__list {
2327
2327
  padding-inline: var(--padding-inline);
2328
- margin-block: var(--spacing-m) 0;
2328
+ margin-block: 8px 0;
2329
2329
  }
2330
2330
 
2331
2331
  .ncua-postcode-search-modal__item {
@@ -2394,6 +2394,7 @@
2394
2394
  }
2395
2395
 
2396
2396
  .ncua-postcode-search-modal__tip {
2397
+ margin-inline-start: 6px;
2397
2398
  padding-inline: var(--padding-inline);
2398
2399
  color: var(--gray-500);
2399
2400
  font-size: var(--font-size-xxs);
@@ -2440,6 +2441,14 @@
2440
2441
  left: 0;
2441
2442
  }
2442
2443
 
2444
+ .ncua-postcode-search-modal__tip-combination {
2445
+ font-weight: var(--font-weights-commerce-sans-1);
2446
+ }
2447
+
2448
+ .ncua-postcode-search-modal__tip-example {
2449
+ font-weight: var(--font-weights-commerce-sans-0);
2450
+ }
2451
+
2443
2452
  .ncua-postcode-search-modal__pagination {
2444
2453
  display: flex;
2445
2454
  justify-content: center;
@@ -3057,6 +3066,13 @@
3057
3066
  line-height: var(--line-heights-md);
3058
3067
  font-weight: var(--font-weights-commerce-sans-0);
3059
3068
  }
3069
+ .ncua-callout-notification--full {
3070
+ width: 100%;
3071
+ }
3072
+ .ncua-callout-notification--fit {
3073
+ width: fit-content;
3074
+ max-width: 100%;
3075
+ }
3060
3076
  .ncua-callout-notification--info {
3061
3077
  background-color: var(--blue-50);
3062
3078
  border-color: var(--blue-200);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "1.8.21-alpha.12",
3
+ "version": "1.8.21-alpha.14",
4
4
  "description": "nhn-commerce의 어드민 디자인 시스템입니다.",
5
5
  "scripts": {
6
6
  "barrel": "node barrel.js",