@ncds/ui-admin 1.8.22-alpha.3 → 1.8.22

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.
@@ -16,7 +16,7 @@ const BADGE_ICON_SIZE = 12;
16
16
  /** new-badge 박스 안에 들어가는 'N' 아이콘 크기. 박스는 sm 16px / md 20px 이며 아이콘은 그보다 작다(패딩 포함). */
17
17
  const NEW_BADGE_ICON_SIZE = {
18
18
  sm: 12,
19
- md: 14
19
+ md: 16
20
20
  };
21
21
  const Badge = _ref => {
22
22
  let {
@@ -19,8 +19,6 @@ const Modal = _ref => {
19
19
  size = 'md',
20
20
  closeOnBackdropClick = false,
21
21
  closeOnEsc = true,
22
- showHeaderDivider = false,
23
- showActionsDivider = false,
24
22
  className,
25
23
  zIndex,
26
24
  ...restProps
@@ -56,10 +54,7 @@ const Modal = _ref => {
56
54
  } : undefined,
57
55
  ...restProps,
58
56
  children: (0, _jsxRuntime.jsx)("div", {
59
- className: (0, _classnames.default)('ncua-modal', `ncua-modal--${size}`, {
60
- 'ncua-modal--divider-header': showHeaderDivider,
61
- 'ncua-modal--divider-actions': showActionsDivider
62
- }),
57
+ className: (0, _classnames.default)('ncua-modal', `ncua-modal--${size}`),
63
58
  children: children
64
59
  })
65
60
  });
@@ -74,31 +69,36 @@ Modal.Header = _ref2 => {
74
69
  title,
75
70
  subtitle,
76
71
  align = 'left',
72
+ showDivider = false,
77
73
  hideCloseButton = false
78
74
  } = _ref2;
79
- return (0, _jsxRuntime.jsxs)("header", {
80
- className: (0, _classnames.default)('ncua-modal__header', `ncua-modal__header--${align}`, {
81
- 'ncua-modal__header--close-button': !hideCloseButton
82
- }),
83
- children: [featuredIcon && (0, _jsxRuntime.jsx)(_featuredIcon.FeaturedIcon, {
84
- icon: featuredIcon.icon,
85
- color: featuredIcon.color,
86
- theme: featuredIcon.theme,
87
- size: "sm"
88
- }), (0, _jsxRuntime.jsxs)("div", {
89
- className: "ncua-modal__title",
90
- children: [(0, _jsxRuntime.jsx)("div", {
91
- className: "ncua-modal__title-text",
92
- children: title
93
- }), subtitle && (0, _jsxRuntime.jsx)("div", {
94
- className: "ncua-modal__title-subtitle",
95
- children: subtitle
75
+ return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
76
+ children: [(0, _jsxRuntime.jsxs)("header", {
77
+ className: (0, _classnames.default)('ncua-modal__header', `ncua-modal__header--${align}`, {
78
+ 'ncua-modal__header--close-button': !hideCloseButton
79
+ }),
80
+ children: [featuredIcon && (0, _jsxRuntime.jsx)(_featuredIcon.FeaturedIcon, {
81
+ icon: featuredIcon.icon,
82
+ color: featuredIcon.color,
83
+ theme: featuredIcon.theme,
84
+ size: "sm"
85
+ }), (0, _jsxRuntime.jsxs)("div", {
86
+ className: "ncua-modal__title",
87
+ children: [(0, _jsxRuntime.jsx)("div", {
88
+ className: "ncua-modal__title-text",
89
+ children: title
90
+ }), subtitle && (0, _jsxRuntime.jsx)("div", {
91
+ className: "ncua-modal__title-subtitle",
92
+ children: subtitle
93
+ })]
94
+ }), children, !hideCloseButton && (0, _jsxRuntime.jsx)(_ButtonCloseX.ButtonCloseX, {
95
+ className: "ncua-modal__close-button",
96
+ size: "sm",
97
+ theme: "light",
98
+ onClick: onClose
96
99
  })]
97
- }), children, !hideCloseButton && (0, _jsxRuntime.jsx)(_ButtonCloseX.ButtonCloseX, {
98
- className: "ncua-modal__close-button",
99
- size: "sm",
100
- theme: "light",
101
- onClick: onClose
100
+ }), showDivider && (0, _jsxRuntime.jsx)("div", {
101
+ className: "ncua-modal__header-divider"
102
102
  })]
103
103
  });
104
104
  };
@@ -144,23 +144,28 @@ Modal.Actions = _ref4 => {
144
144
  let {
145
145
  children,
146
146
  layout = 'vertical',
147
+ showDivider = false,
147
148
  align = 'stretch',
148
149
  checkboxContent,
149
150
  className
150
151
  } = _ref4;
151
- return (0, _jsxRuntime.jsxs)("div", {
152
- className: (0, _classnames.default)('ncua-modal__actions-wrapper', className, {
153
- 'ncua-modal__actions-wrapper--checkbox': layout === 'checkbox'
154
- }),
155
- children: [layout === 'checkbox' && (0, _jsxRuntime.jsx)("div", {
156
- className: "ncua-modal__actions-checkbox",
157
- children: (0, _jsxRuntime.jsx)("div", {
158
- className: "ncua-modal__actions-checkbox-content",
159
- children: checkboxContent
160
- })
161
- }), (0, _jsxRuntime.jsx)("div", {
162
- className: (0, _classnames.default)('ncua-modal__actions', `ncua-modal__actions--${layout}`, `ncua-modal__actions--${align}`),
163
- children: children
152
+ return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
153
+ children: [showDivider && (0, _jsxRuntime.jsx)("div", {
154
+ className: "ncua-modal__actions-divider"
155
+ }), (0, _jsxRuntime.jsxs)("div", {
156
+ className: (0, _classnames.default)('ncua-modal__actions-wrapper', className, {
157
+ 'ncua-modal__actions-wrapper--checkbox': layout === 'checkbox'
158
+ }),
159
+ children: [layout === 'checkbox' && (0, _jsxRuntime.jsx)("div", {
160
+ className: "ncua-modal__actions-checkbox",
161
+ children: (0, _jsxRuntime.jsx)("div", {
162
+ className: "ncua-modal__actions-checkbox-content",
163
+ children: checkboxContent
164
+ })
165
+ }), (0, _jsxRuntime.jsx)("div", {
166
+ className: (0, _classnames.default)('ncua-modal__actions', `ncua-modal__actions--${layout}`, `ncua-modal__actions--${align}`),
167
+ children: children
168
+ })]
164
169
  })]
165
170
  });
166
171
  };
@@ -152,10 +152,10 @@ const PostcodeSearchModal = _ref2 => {
152
152
  size: "md",
153
153
  zIndex: zIndex,
154
154
  className: className,
155
- showHeaderDivider: true,
156
155
  children: [(0, _jsxRuntime.jsx)(_modal.Modal.Header, {
157
156
  title: MODAL_TITLE,
158
- onClose: onClose
157
+ onClose: onClose,
158
+ showDivider: true
159
159
  }), (0, _jsxRuntime.jsx)(_modal.Modal.Content, {
160
160
  children: (0, _jsxRuntime.jsxs)("div", {
161
161
  className: "ncua-postcode-search-modal",