@ncds/ui-admin 1.8.22-alpha.3 → 1.8.23-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.
@@ -12,14 +12,12 @@ type ModalProps = {
12
12
  children: ReactNode;
13
13
  closeOnBackdropClick?: boolean;
14
14
  closeOnEsc?: boolean;
15
- showHeaderDivider?: boolean;
16
- showActionsDivider?: boolean;
17
15
  className?: string;
18
16
  zIndex?: number;
19
17
  };
20
18
  declare const Modal: {
21
- ({ isOpen, onClose, children, size, closeOnBackdropClick, closeOnEsc, showHeaderDivider, showActionsDivider, className, zIndex, ...restProps }: ModalProps): import("react").ReactPortal | null;
22
- Header({ children, onClose, featuredIcon, title, subtitle, align, hideCloseButton, }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
19
+ ({ isOpen, onClose, children, size, closeOnBackdropClick, closeOnEsc, className, zIndex, ...restProps }: ModalProps): import("react").ReactPortal | null;
20
+ Header({ children, onClose, featuredIcon, title, subtitle, align, showDivider, hideCloseButton, }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
23
21
  Content({ children, className }: ModalContentProps): import("react/jsx-runtime").JSX.Element;
24
22
  /**
25
23
  * Modal.Actions - The actions area of the modal
@@ -49,7 +47,7 @@ declare const Modal: {
49
47
  * <Button size="sm" label="Confirm" onClick={handleConfirm} hierarchy="primary" />
50
48
  * </Modal.Actions>
51
49
  */
52
- Actions({ children, layout, align, checkboxContent, className, }: ModalActionsProps): import("react/jsx-runtime").JSX.Element;
50
+ Actions({ children, layout, showDivider, align, checkboxContent, className, }: ModalActionsProps): import("react/jsx-runtime").JSX.Element;
53
51
  };
54
52
  type ModalHeaderProps = {
55
53
  children?: ReactNode;
@@ -62,6 +60,7 @@ type ModalHeaderProps = {
62
60
  align?: ModalHeaderAlign;
63
61
  title?: string | ReactNode;
64
62
  subtitle?: string | ReactNode;
63
+ showDivider?: boolean;
65
64
  hideCloseButton?: boolean;
66
65
  };
67
66
  type ModalContentProps = {
@@ -72,6 +71,7 @@ type ModalActionsProps = {
72
71
  className?: string;
73
72
  children: ReactNode;
74
73
  layout?: ModalActionsLayout;
74
+ showDivider?: boolean;
75
75
  align?: ModalActionsAlign;
76
76
  checkboxContent?: ReactNode;
77
77
  };
@@ -2075,20 +2075,6 @@ button {
2075
2075
  }
2076
2076
  }
2077
2077
 
2078
- .ncua-modal--divider-header .ncua-modal__header {
2079
- border-block-end: 1px solid var(--gray-100);
2080
- }
2081
- .ncua-modal--divider-header .ncua-modal__content {
2082
- padding-block-start: 16px;
2083
- }
2084
-
2085
- .ncua-modal--divider-actions .ncua-modal__actions-wrapper {
2086
- border-block-start: 1px solid var(--gray-100);
2087
- }
2088
- .ncua-modal--divider-actions .ncua-modal__content {
2089
- padding-block-end: 16px;
2090
- }
2091
-
2092
2078
  .ncua-modal__header {
2093
2079
  padding: 0px 20px 16px;
2094
2080
  border-bottom: none;
@@ -2097,6 +2083,12 @@ button {
2097
2083
  flex-direction: column;
2098
2084
  gap: 8px;
2099
2085
  }
2086
+ .ncua-modal__header-divider {
2087
+ width: 100%;
2088
+ height: 1px;
2089
+ background-color: var(--gray-100);
2090
+ margin: 0;
2091
+ }
2100
2092
  .ncua-modal__header:has(.ncua-modal__close-button) {
2101
2093
  padding-right: 48px;
2102
2094
  }
@@ -2169,6 +2161,14 @@ button {
2169
2161
  }
2170
2162
  }
2171
2163
 
2164
+ .ncua-modal:has(.ncua-modal__header-divider) .ncua-modal__content {
2165
+ padding-block-start: 16px;
2166
+ }
2167
+
2168
+ .ncua-modal:has(.ncua-modal__actions-divider) .ncua-modal__content {
2169
+ padding-block-end: 16px;
2170
+ }
2171
+
2172
2172
  .ncua-modal__actions-wrapper {
2173
2173
  padding: 16px 20px 0px;
2174
2174
  }
@@ -2189,6 +2189,12 @@ button {
2189
2189
  display: flex;
2190
2190
  gap: 8px;
2191
2191
  }
2192
+ .ncua-modal__actions-divider {
2193
+ width: 100%;
2194
+ height: 1px;
2195
+ background-color: var(--gray-100);
2196
+ margin: 0;
2197
+ }
2192
2198
  .ncua-modal__actions--vertical {
2193
2199
  flex-direction: column;
2194
2200
  }
@@ -2265,7 +2271,7 @@ button {
2265
2271
  }
2266
2272
  }
2267
2273
 
2268
- .ncua-modal--divider-header:has(.ncua-postcode-search-modal) .ncua-modal__content {
2274
+ .ncua-modal:has(.ncua-modal__header-divider):has(.ncua-postcode-search-modal) .ncua-modal__content {
2269
2275
  padding-block-start: 0;
2270
2276
  }
2271
2277
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "1.8.22-alpha.3",
3
+ "version": "1.8.23-alpha.0",
4
4
  "description": "nhn-commerce의 어드민 디자인 시스템입니다.",
5
5
  "scripts": {
6
6
  "barrel": "node barrel.js",