@ncds/ui-admin 1.8.6 → 1.8.8

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 (33) hide show
  1. package/dist/cjs/src/components/data-display/table/Table.js +2 -0
  2. package/dist/cjs/src/components/data-display/table/useTableScrollbars.js +6 -2
  3. package/dist/cjs/src/components/forms-and-input/combo-box/ComboBox.js +3 -1
  4. package/dist/cjs/src/components/forms-and-input/image-file-input/ImageFileInput.js +13 -13
  5. package/dist/cjs/src/components/forms-and-input/select-box/SelectBox.js +3 -1
  6. package/dist/cjs/src/components/overlays/tooltip/Tooltip.js +5 -4
  7. package/dist/cjs/src/components/select-dropdown/SelectDropdown.js +1 -1
  8. package/dist/esm/src/components/data-display/table/Table.js +2 -0
  9. package/dist/esm/src/components/data-display/table/useTableScrollbars.js +6 -2
  10. package/dist/esm/src/components/forms-and-input/combo-box/ComboBox.js +3 -1
  11. package/dist/esm/src/components/forms-and-input/image-file-input/ImageFileInput.js +13 -13
  12. package/dist/esm/src/components/forms-and-input/select-box/SelectBox.js +3 -1
  13. package/dist/esm/src/components/overlays/tooltip/Tooltip.js +5 -4
  14. package/dist/esm/src/components/select-dropdown/SelectDropdown.js +1 -1
  15. package/dist/temp/src/components/data-display/table/Table.js +2 -0
  16. package/dist/temp/src/components/data-display/table/useTableScrollbars.d.ts +3 -1
  17. package/dist/temp/src/components/data-display/table/useTableScrollbars.js +7 -3
  18. package/dist/temp/src/components/forms-and-input/combo-box/ComboBox.d.ts +4 -0
  19. package/dist/temp/src/components/forms-and-input/combo-box/ComboBox.js +3 -2
  20. package/dist/temp/src/components/forms-and-input/image-file-input/ImageFileInput.js +2 -2
  21. package/dist/temp/src/components/forms-and-input/select-box/SelectBox.d.ts +4 -0
  22. package/dist/temp/src/components/forms-and-input/select-box/SelectBox.js +3 -2
  23. package/dist/temp/src/components/overlays/tooltip/Tooltip.d.ts +2 -1
  24. package/dist/temp/src/components/overlays/tooltip/Tooltip.js +4 -4
  25. package/dist/temp/src/components/select-dropdown/SelectDropdown.d.ts +1 -1
  26. package/dist/temp/src/components/select-dropdown/SelectDropdown.js +1 -1
  27. package/dist/types/src/components/data-display/table/useTableScrollbars.d.ts +3 -1
  28. package/dist/types/src/components/forms-and-input/combo-box/ComboBox.d.ts +4 -0
  29. package/dist/types/src/components/forms-and-input/select-box/SelectBox.d.ts +4 -0
  30. package/dist/types/src/components/overlays/tooltip/Tooltip.d.ts +2 -1
  31. package/dist/types/src/components/select-dropdown/SelectDropdown.d.ts +1 -1
  32. package/dist/ui-admin/assets/styles/style.css +29 -3
  33. package/package.json +1 -1
@@ -281,8 +281,10 @@ const TableComponent = /*#__PURE__*/(0, _react.forwardRef)((_ref0, ref) => {
281
281
  handleThumbMouseDown
282
282
  } = (0, _useTableScrollbars.useTableVerticalScrollbar)({
283
283
  enabled: fixedScrollEnabled,
284
+ layoutKey: horizontalScroll,
284
285
  scrollContainerRef,
285
286
  scrollAreaRef,
287
+ scrollbarRef,
286
288
  thumbRef
287
289
  });
288
290
  const {
@@ -72,10 +72,13 @@ const startDrag = (e, options) => {
72
72
  const useTableVerticalScrollbar = _ref => {
73
73
  let {
74
74
  enabled,
75
+ layoutKey,
75
76
  scrollContainerRef,
76
77
  scrollAreaRef,
78
+ scrollbarRef,
77
79
  thumbRef
78
80
  } = _ref;
81
+ // biome-ignore lint/correctness/useExhaustiveDependencies: layoutKey는 직접 참조하지 않지만 horizontalScroll 토글로 스크롤바 DOM이 리마운트될 때 effect를 재바인딩하기 위한 트리거로 의도적으로 포함한다.
79
82
  (0, _react.useEffect)(() => {
80
83
  if (!enabled) return;
81
84
  const scrollEl = scrollContainerRef.current;
@@ -91,7 +94,7 @@ const useTableVerticalScrollbar = _ref => {
91
94
  thumbEl.style.height = '0';
92
95
  return;
93
96
  }
94
- const trackHeight = (scrollAreaRef.current?.clientHeight ?? clientHeight) - TABLE_HEADER_HEIGHT - SCROLLBAR_TRACK_OFFSET;
97
+ const trackHeight = scrollbarRef.current?.clientHeight || (scrollAreaRef.current?.clientHeight ?? clientHeight) - TABLE_HEADER_HEIGHT - SCROLLBAR_TRACK_OFFSET;
95
98
  const thumbHeight = Math.max(SCROLLBAR_THUMB_MIN_HEIGHT, clientHeight / scrollHeight * trackHeight);
96
99
  const thumbTop = scrollTop / (scrollHeight - clientHeight) * (trackHeight - thumbHeight);
97
100
  thumbEl.style.height = `${thumbHeight}px`;
@@ -103,12 +106,13 @@ const useTableVerticalScrollbar = _ref => {
103
106
  const observer = new ResizeObserver(update);
104
107
  observer.observe(scrollEl);
105
108
  if (scrollAreaRef.current) observer.observe(scrollAreaRef.current);
109
+ if (scrollbarRef.current) observer.observe(scrollbarRef.current);
106
110
  update();
107
111
  return () => {
108
112
  scrollEl.removeEventListener('scroll', update);
109
113
  observer.disconnect();
110
114
  };
111
- }, [enabled, scrollContainerRef, scrollAreaRef, thumbRef]);
115
+ }, [enabled, layoutKey, scrollContainerRef, scrollAreaRef, scrollbarRef, thumbRef]);
112
116
  const handleThumbMouseDown = e => {
113
117
  const scrollEl = scrollContainerRef.current;
114
118
  const thumbEl = thumbRef.current;
@@ -50,6 +50,7 @@ const ComboBox = exports.ComboBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, r
50
50
  showFooterButtons = false,
51
51
  maxSelection,
52
52
  onEdit,
53
+ onComplete,
53
54
  ...props
54
55
  } = _ref;
55
56
  const internalRef = (0, _react.useRef)(null);
@@ -183,12 +184,13 @@ const ComboBox = exports.ComboBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, r
183
184
  const handleEdit = () => {
184
185
  onEdit?.();
185
186
  };
186
- const handleComplete = () => {
187
+ const handleComplete = completedValue => {
187
188
  if (!multiple) return;
188
189
  const tags = getSelectedTagsData();
189
190
  setSelectedTags(tags);
190
191
  setInputValue('');
191
192
  closeDropdown();
193
+ onComplete?.(completedValue);
192
194
  };
193
195
  const handleRemoveTag = tagId => {
194
196
  if (!onChange) return;
@@ -144,7 +144,7 @@ const ImageFileInput = exports.ImageFileInput = /*#__PURE__*/(0, _react.forwardR
144
144
  position: "bottom",
145
145
  tooltipType: "black",
146
146
  forceVisible: isButtonHovered && !disabled,
147
- disablePortal: true
147
+ panelClassName: (0, _classnames.default)('ncua-image-file-input__slot-tooltip', `ncua-image-file-input__slot-tooltip--${size}`)
148
148
  })]
149
149
  })]
150
150
  });
@@ -163,19 +163,19 @@ const ImageFileInput = exports.ImageFileInput = /*#__PURE__*/(0, _react.forwardR
163
163
  className: (0, _classnames.default)('ncua-image-file-input', `ncua-image-file-input--${size}`, {
164
164
  destructive: destructive
165
165
  }),
166
- children: [renderImagePreview(files), showFileInput && (0, _jsxRuntime.jsxs)("div", {
166
+ children: [renderImagePreview(files), (0, _jsxRuntime.jsx)("input", {
167
+ hidden: true,
168
+ ref: fileInputRef,
169
+ type: "file",
170
+ accept: accept,
171
+ multiple: multiple,
172
+ onChange: handleFileChange,
173
+ tabIndex: -1,
174
+ "aria-hidden": "true",
175
+ ...props
176
+ }), showFileInput && (0, _jsxRuntime.jsxs)("div", {
167
177
  className: (0, _classnames.default)('ncua-file-input', `ncua-file-input--${size}`),
168
- children: [(0, _jsxRuntime.jsx)("input", {
169
- hidden: true,
170
- ref: fileInputRef,
171
- type: "file",
172
- accept: accept,
173
- multiple: multiple,
174
- onChange: handleFileChange,
175
- tabIndex: -1,
176
- "aria-hidden": "true",
177
- ...props
178
- }), (0, _jsxRuntime.jsxs)("div", {
178
+ children: [(0, _jsxRuntime.jsxs)("div", {
179
179
  className: "ncua-file-input__input-container",
180
180
  children: [(0, _jsxRuntime.jsxs)("div", {
181
181
  className: "ncua-file-input__label",
@@ -89,6 +89,7 @@ const SelectBox = exports.SelectBox = /*#__PURE__*/(0, _react.forwardRef)((_ref2
89
89
  register,
90
90
  onChange,
91
91
  onEdit,
92
+ onComplete,
92
93
  ...props
93
94
  } = _ref2;
94
95
  const internalRef = (0, _react.useRef)(null);
@@ -173,10 +174,11 @@ const SelectBox = exports.SelectBox = /*#__PURE__*/(0, _react.forwardRef)((_ref2
173
174
  const handleEdit = () => {
174
175
  onEdit?.();
175
176
  };
176
- const handleComplete = () => {
177
+ const handleComplete = completedValue => {
177
178
  if (multiple) {
178
179
  const tags = getSelectedTagsData();
179
180
  setSelectedTags(tags);
181
+ onComplete?.(completedValue);
180
182
  }
181
183
  closeDropdown();
182
184
  };
@@ -128,7 +128,8 @@ const Tooltip = _ref => {
128
128
  className,
129
129
  zIndex,
130
130
  forceVisible,
131
- disablePortal = false
131
+ disablePortal = false,
132
+ panelClassName
132
133
  } = _ref;
133
134
  const iconSize = size === 'sm' ? ICON_SIZE_SM : ICON_SIZE_DEFAULT;
134
135
  const anchorRef = (0, _react.useRef)(null);
@@ -206,17 +207,17 @@ const Tooltip = _ref => {
206
207
  'ncua-tooltip--stroke': iconType === 'stroke',
207
208
  'ncua-tooltip--auto': position === 'auto'
208
209
  }, className), [size, type, hideArrow, iconType, position, className]);
209
- const panelClassName = (0, _react.useMemo)(() => (0, _classnames.default)({
210
+ const panelClasses = (0, _react.useMemo)(() => (0, _classnames.default)({
210
211
  'ncua-tooltip-panel': !disablePortal
211
212
  }, 'ncua-tooltip__bg', `ncua-tooltip__bg--${tooltipType}`, `ncua-tooltip__bg--${finalPosition}`, {
212
213
  'ncua-tooltip__bg--visible': effectiveVisible,
213
214
  'ncua-tooltip__bg--force-hidden': isManuallyClose && !forceVisible
214
- }), [tooltipType, finalPosition, effectiveVisible, isManuallyClose, forceVisible, disablePortal]);
215
+ }, panelClassName), [tooltipType, finalPosition, effectiveVisible, isManuallyClose, forceVisible, disablePortal, panelClassName]);
215
216
  const panelStyle = buildPanelStyle(disablePortal, coords, effectiveVisible, zIndex);
216
217
  const portalTarget = mounted ? resolvePortalTarget() : null;
217
218
  const panel = (0, _jsxRuntime.jsxs)("span", {
218
219
  ref: panelRef,
219
- className: panelClassName,
220
+ className: panelClasses,
220
221
  style: panelStyle,
221
222
  children: [title && (0, _jsxRuntime.jsx)("span", {
222
223
  className: "ncua-tooltip__title",
@@ -111,7 +111,7 @@ const SelectDropdown = exports.SelectDropdown = /*#__PURE__*/(0, _react.forwardR
111
111
  label: "\uC120\uD0DD \uC644\uB8CC",
112
112
  hierarchy: "secondary",
113
113
  size: "xs",
114
- onClick: onComplete
114
+ onClick: () => onComplete?.(value ?? [])
115
115
  })]
116
116
  })]
117
117
  })
@@ -274,8 +274,10 @@ const TableComponent = /*#__PURE__*/forwardRef((_ref0, ref) => {
274
274
  handleThumbMouseDown
275
275
  } = useTableVerticalScrollbar({
276
276
  enabled: fixedScrollEnabled,
277
+ layoutKey: horizontalScroll,
277
278
  scrollContainerRef,
278
279
  scrollAreaRef,
280
+ scrollbarRef,
279
281
  thumbRef
280
282
  });
281
283
  const {
@@ -66,10 +66,13 @@ const startDrag = (e, options) => {
66
66
  export const useTableVerticalScrollbar = _ref => {
67
67
  let {
68
68
  enabled,
69
+ layoutKey,
69
70
  scrollContainerRef,
70
71
  scrollAreaRef,
72
+ scrollbarRef,
71
73
  thumbRef
72
74
  } = _ref;
75
+ // biome-ignore lint/correctness/useExhaustiveDependencies: layoutKey는 직접 참조하지 않지만 horizontalScroll 토글로 스크롤바 DOM이 리마운트될 때 effect를 재바인딩하기 위한 트리거로 의도적으로 포함한다.
73
76
  useEffect(() => {
74
77
  if (!enabled) return;
75
78
  const scrollEl = scrollContainerRef.current;
@@ -85,7 +88,7 @@ export const useTableVerticalScrollbar = _ref => {
85
88
  thumbEl.style.height = '0';
86
89
  return;
87
90
  }
88
- const trackHeight = (scrollAreaRef.current?.clientHeight ?? clientHeight) - TABLE_HEADER_HEIGHT - SCROLLBAR_TRACK_OFFSET;
91
+ const trackHeight = scrollbarRef.current?.clientHeight || (scrollAreaRef.current?.clientHeight ?? clientHeight) - TABLE_HEADER_HEIGHT - SCROLLBAR_TRACK_OFFSET;
89
92
  const thumbHeight = Math.max(SCROLLBAR_THUMB_MIN_HEIGHT, clientHeight / scrollHeight * trackHeight);
90
93
  const thumbTop = scrollTop / (scrollHeight - clientHeight) * (trackHeight - thumbHeight);
91
94
  thumbEl.style.height = `${thumbHeight}px`;
@@ -97,12 +100,13 @@ export const useTableVerticalScrollbar = _ref => {
97
100
  const observer = new ResizeObserver(update);
98
101
  observer.observe(scrollEl);
99
102
  if (scrollAreaRef.current) observer.observe(scrollAreaRef.current);
103
+ if (scrollbarRef.current) observer.observe(scrollbarRef.current);
100
104
  update();
101
105
  return () => {
102
106
  scrollEl.removeEventListener('scroll', update);
103
107
  observer.disconnect();
104
108
  };
105
- }, [enabled, scrollContainerRef, scrollAreaRef, thumbRef]);
109
+ }, [enabled, layoutKey, scrollContainerRef, scrollAreaRef, scrollbarRef, thumbRef]);
106
110
  const handleThumbMouseDown = e => {
107
111
  const scrollEl = scrollContainerRef.current;
108
112
  const thumbEl = thumbRef.current;
@@ -43,6 +43,7 @@ const ComboBox = /*#__PURE__*/forwardRef((_ref, ref) => {
43
43
  showFooterButtons = false,
44
44
  maxSelection,
45
45
  onEdit,
46
+ onComplete,
46
47
  ...props
47
48
  } = _ref;
48
49
  const internalRef = useRef(null);
@@ -176,12 +177,13 @@ const ComboBox = /*#__PURE__*/forwardRef((_ref, ref) => {
176
177
  const handleEdit = () => {
177
178
  onEdit?.();
178
179
  };
179
- const handleComplete = () => {
180
+ const handleComplete = completedValue => {
180
181
  if (!multiple) return;
181
182
  const tags = getSelectedTagsData();
182
183
  setSelectedTags(tags);
183
184
  setInputValue('');
184
185
  closeDropdown();
186
+ onComplete?.(completedValue);
185
187
  };
186
188
  const handleRemoveTag = tagId => {
187
189
  if (!onChange) return;
@@ -137,7 +137,7 @@ export const ImageFileInput = /*#__PURE__*/forwardRef((_ref, ref) => {
137
137
  position: "bottom",
138
138
  tooltipType: "black",
139
139
  forceVisible: isButtonHovered && !disabled,
140
- disablePortal: true
140
+ panelClassName: classNames('ncua-image-file-input__slot-tooltip', `ncua-image-file-input__slot-tooltip--${size}`)
141
141
  })]
142
142
  })]
143
143
  });
@@ -156,19 +156,19 @@ export const ImageFileInput = /*#__PURE__*/forwardRef((_ref, ref) => {
156
156
  className: classNames('ncua-image-file-input', `ncua-image-file-input--${size}`, {
157
157
  destructive: destructive
158
158
  }),
159
- children: [renderImagePreview(files), showFileInput && _jsxs("div", {
159
+ children: [renderImagePreview(files), _jsx("input", {
160
+ hidden: true,
161
+ ref: fileInputRef,
162
+ type: "file",
163
+ accept: accept,
164
+ multiple: multiple,
165
+ onChange: handleFileChange,
166
+ tabIndex: -1,
167
+ "aria-hidden": "true",
168
+ ...props
169
+ }), showFileInput && _jsxs("div", {
160
170
  className: classNames('ncua-file-input', `ncua-file-input--${size}`),
161
- children: [_jsx("input", {
162
- hidden: true,
163
- ref: fileInputRef,
164
- type: "file",
165
- accept: accept,
166
- multiple: multiple,
167
- onChange: handleFileChange,
168
- tabIndex: -1,
169
- "aria-hidden": "true",
170
- ...props
171
- }), _jsxs("div", {
171
+ children: [_jsxs("div", {
172
172
  className: "ncua-file-input__input-container",
173
173
  children: [_jsxs("div", {
174
174
  className: "ncua-file-input__label",
@@ -82,6 +82,7 @@ const SelectBox = /*#__PURE__*/forwardRef((_ref2, ref
82
82
  register,
83
83
  onChange,
84
84
  onEdit,
85
+ onComplete,
85
86
  ...props
86
87
  } = _ref2;
87
88
  const internalRef = useRef(null);
@@ -166,10 +167,11 @@ const SelectBox = /*#__PURE__*/forwardRef((_ref2, ref
166
167
  const handleEdit = () => {
167
168
  onEdit?.();
168
169
  };
169
- const handleComplete = () => {
170
+ const handleComplete = completedValue => {
170
171
  if (multiple) {
171
172
  const tags = getSelectedTagsData();
172
173
  setSelectedTags(tags);
174
+ onComplete?.(completedValue);
173
175
  }
174
176
  closeDropdown();
175
177
  };
@@ -121,7 +121,8 @@ export const Tooltip = _ref => {
121
121
  className,
122
122
  zIndex,
123
123
  forceVisible,
124
- disablePortal = false
124
+ disablePortal = false,
125
+ panelClassName
125
126
  } = _ref;
126
127
  const iconSize = size === 'sm' ? ICON_SIZE_SM : ICON_SIZE_DEFAULT;
127
128
  const anchorRef = useRef(null);
@@ -199,17 +200,17 @@ export const Tooltip = _ref => {
199
200
  'ncua-tooltip--stroke': iconType === 'stroke',
200
201
  'ncua-tooltip--auto': position === 'auto'
201
202
  }, className), [size, type, hideArrow, iconType, position, className]);
202
- const panelClassName = useMemo(() => classNames({
203
+ const panelClasses = useMemo(() => classNames({
203
204
  'ncua-tooltip-panel': !disablePortal
204
205
  }, 'ncua-tooltip__bg', `ncua-tooltip__bg--${tooltipType}`, `ncua-tooltip__bg--${finalPosition}`, {
205
206
  'ncua-tooltip__bg--visible': effectiveVisible,
206
207
  'ncua-tooltip__bg--force-hidden': isManuallyClose && !forceVisible
207
- }), [tooltipType, finalPosition, effectiveVisible, isManuallyClose, forceVisible, disablePortal]);
208
+ }, panelClassName), [tooltipType, finalPosition, effectiveVisible, isManuallyClose, forceVisible, disablePortal, panelClassName]);
208
209
  const panelStyle = buildPanelStyle(disablePortal, coords, effectiveVisible, zIndex);
209
210
  const portalTarget = mounted ? resolvePortalTarget() : null;
210
211
  const panel = _jsxs("span", {
211
212
  ref: panelRef,
212
- className: panelClassName,
213
+ className: panelClasses,
213
214
  style: panelStyle,
214
215
  children: [title && _jsx("span", {
215
216
  className: "ncua-tooltip__title",
@@ -104,7 +104,7 @@ const SelectDropdown = /*#__PURE__*/forwardRef((_ref, ref) => {
104
104
  label: "\uC120\uD0DD \uC644\uB8CC",
105
105
  hierarchy: "secondary",
106
106
  size: "xs",
107
- onClick: onComplete
107
+ onClick: () => onComplete?.(value ?? [])
108
108
  })]
109
109
  })]
110
110
  })
@@ -136,8 +136,10 @@ const TableComponent = forwardRef(({ type = 'horizontal', fixedHeader = false, m
136
136
  const fixedScrollEnabled = !!(fixedHeader && maxHeight);
137
137
  const { handleThumbMouseDown } = useTableVerticalScrollbar({
138
138
  enabled: fixedScrollEnabled,
139
+ layoutKey: horizontalScroll,
139
140
  scrollContainerRef,
140
141
  scrollAreaRef,
142
+ scrollbarRef,
141
143
  thumbRef,
142
144
  });
143
145
  const { handleHThumbMouseDown } = useTableHorizontalScrollbar({
@@ -6,11 +6,13 @@ export declare const H_SCROLLBAR_SIDE_GAP = 8;
6
6
  export declare const SCROLLBAR_TRACK_OFFSET = 16;
7
7
  type VerticalScrollbarOptions = {
8
8
  enabled: boolean;
9
+ layoutKey: unknown;
9
10
  scrollContainerRef: RefObject<HTMLDivElement | null>;
10
11
  scrollAreaRef: RefObject<HTMLDivElement | null>;
12
+ scrollbarRef: RefObject<HTMLDivElement | null>;
11
13
  thumbRef: RefObject<HTMLDivElement | null>;
12
14
  };
13
- export declare const useTableVerticalScrollbar: ({ enabled, scrollContainerRef, scrollAreaRef, thumbRef, }: VerticalScrollbarOptions) => {
15
+ export declare const useTableVerticalScrollbar: ({ enabled, layoutKey, scrollContainerRef, scrollAreaRef, scrollbarRef, thumbRef, }: VerticalScrollbarOptions) => {
14
16
  handleThumbMouseDown: (e: MouseEvent<HTMLDivElement>) => void;
15
17
  };
16
18
  type HorizontalScrollbarOptions = {
@@ -51,7 +51,8 @@ const startDrag = (e, options) => {
51
51
  document.addEventListener('mousemove', onMove);
52
52
  document.addEventListener('mouseup', onUp);
53
53
  };
54
- export const useTableVerticalScrollbar = ({ enabled, scrollContainerRef, scrollAreaRef, thumbRef, }) => {
54
+ export const useTableVerticalScrollbar = ({ enabled, layoutKey, scrollContainerRef, scrollAreaRef, scrollbarRef, thumbRef, }) => {
55
+ // biome-ignore lint/correctness/useExhaustiveDependencies: layoutKey는 직접 참조하지 않지만 horizontalScroll 토글로 스크롤바 DOM이 리마운트될 때 effect를 재바인딩하기 위한 트리거로 의도적으로 포함한다.
55
56
  useEffect(() => {
56
57
  if (!enabled)
57
58
  return;
@@ -65,7 +66,8 @@ export const useTableVerticalScrollbar = ({ enabled, scrollContainerRef, scrollA
65
66
  thumbEl.style.height = '0';
66
67
  return;
67
68
  }
68
- const trackHeight = (scrollAreaRef.current?.clientHeight ?? clientHeight) - TABLE_HEADER_HEIGHT - SCROLLBAR_TRACK_OFFSET;
69
+ const trackHeight = scrollbarRef.current?.clientHeight ||
70
+ (scrollAreaRef.current?.clientHeight ?? clientHeight) - TABLE_HEADER_HEIGHT - SCROLLBAR_TRACK_OFFSET;
69
71
  const thumbHeight = Math.max(SCROLLBAR_THUMB_MIN_HEIGHT, (clientHeight / scrollHeight) * trackHeight);
70
72
  const thumbTop = (scrollTop / (scrollHeight - clientHeight)) * (trackHeight - thumbHeight);
71
73
  thumbEl.style.height = `${thumbHeight}px`;
@@ -76,12 +78,14 @@ export const useTableVerticalScrollbar = ({ enabled, scrollContainerRef, scrollA
76
78
  observer.observe(scrollEl);
77
79
  if (scrollAreaRef.current)
78
80
  observer.observe(scrollAreaRef.current);
81
+ if (scrollbarRef.current)
82
+ observer.observe(scrollbarRef.current);
79
83
  update();
80
84
  return () => {
81
85
  scrollEl.removeEventListener('scroll', update);
82
86
  observer.disconnect();
83
87
  };
84
- }, [enabled, scrollContainerRef, scrollAreaRef, thumbRef]);
88
+ }, [enabled, layoutKey, scrollContainerRef, scrollAreaRef, scrollbarRef, thumbRef]);
85
89
  const handleThumbMouseDown = (e) => {
86
90
  const scrollEl = scrollContainerRef.current;
87
91
  const thumbEl = thumbRef.current;
@@ -30,6 +30,10 @@ interface ComboBoxProps extends Omit<ComponentPropsWithRef<'div'>, 'size' | 'onC
30
30
  */
31
31
  maxSelection?: number | null;
32
32
  onEdit?: () => void;
33
+ /**
34
+ * 완료 버튼 클릭 시 호출되는 콜백 — 현재 선택된 값을 인자로 받음 (multiple 모드에서만 트리거)
35
+ */
36
+ onComplete?: OptionChangeHandler;
33
37
  }
34
38
  declare const ComboBox: import("react").ForwardRefExoticComponent<Omit<ComboBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
35
39
  export { defaultMaxHeight, ComboBox };
@@ -20,7 +20,7 @@ const notifyFormChange = (register, multiple, newValue) => {
20
20
  });
21
21
  }
22
22
  };
23
- const ComboBox = forwardRef(({ placeholder = '검색하세요', id, className, hintText, children, size = 'xs', destructive = false, value, optionItems = [], onChange, onSearch, disabled = false, register, maxHeight = defaultMaxHeight, searchValue = '', label, required = false, multiple = false, showFooterButtons = false, maxSelection, onEdit, ...props }, ref) => {
23
+ const ComboBox = forwardRef(({ placeholder = '검색하세요', id, className, hintText, children, size = 'xs', destructive = false, value, optionItems = [], onChange, onSearch, disabled = false, register, maxHeight = defaultMaxHeight, searchValue = '', label, required = false, multiple = false, showFooterButtons = false, maxSelection, onEdit, onComplete, ...props }, ref) => {
24
24
  const internalRef = useRef(null);
25
25
  const dropdownRef = useRef(null);
26
26
  const inputRef = useRef(null);
@@ -122,13 +122,14 @@ const ComboBox = forwardRef(({ placeholder = '검색하세요', id, className, h
122
122
  const handleEdit = () => {
123
123
  onEdit?.();
124
124
  };
125
- const handleComplete = () => {
125
+ const handleComplete = (completedValue) => {
126
126
  if (!multiple)
127
127
  return;
128
128
  const tags = getSelectedTagsData();
129
129
  setSelectedTags(tags);
130
130
  setInputValue('');
131
131
  closeDropdown();
132
+ onComplete?.(completedValue);
132
133
  };
133
134
  const handleRemoveTag = (tagId) => {
134
135
  if (!onChange)
@@ -85,12 +85,12 @@ export const ImageFileInput = forwardRef(({ size = 'sm', accept, multiple = fals
85
85
  };
86
86
  const renderImagePreview = (files = []) => {
87
87
  const showEmptySlot = maxFileCount ? files.length < maxFileCount : files.length === 0;
88
- return (_jsxs("div", { className: "ncua-image-file-input__previews", children: [files.map((file, index) => (_jsx(ImagePreview, { file: file, onRemove: () => handleRemoveFile(index) }, `${file.name}-${index}`))), showEmptySlot && (_jsxs("div", { className: "ncua-image-file-input__empty-slot-wrapper", onMouseEnter: () => !disabled && setIsButtonHovered(true), onMouseLeave: () => setIsButtonHovered(false), onClick: handleBrowseClick, children: [_jsx(Button, { onlyIcon: true, size: size, className: classNames('ncua-image-file-input__preview-container'), onClick: handleBrowseClick, disabled: disabled, label: imagePreviewTooltipLabel }), _jsx(Tooltip, { content: imagePreviewTooltipLabel, position: "bottom", tooltipType: "black", forceVisible: isButtonHovered && !disabled, disablePortal: true })] }))] }));
88
+ return (_jsxs("div", { className: "ncua-image-file-input__previews", children: [files.map((file, index) => (_jsx(ImagePreview, { file: file, onRemove: () => handleRemoveFile(index) }, `${file.name}-${index}`))), showEmptySlot && (_jsxs("div", { className: "ncua-image-file-input__empty-slot-wrapper", onMouseEnter: () => !disabled && setIsButtonHovered(true), onMouseLeave: () => setIsButtonHovered(false), onClick: handleBrowseClick, children: [_jsx(Button, { onlyIcon: true, size: size, className: classNames('ncua-image-file-input__preview-container'), onClick: handleBrowseClick, disabled: disabled, label: imagePreviewTooltipLabel }), _jsx(Tooltip, { content: imagePreviewTooltipLabel, position: "bottom", tooltipType: "black", forceVisible: isButtonHovered && !disabled, panelClassName: classNames('ncua-image-file-input__slot-tooltip', `ncua-image-file-input__slot-tooltip--${size}`) })] }))] }));
89
89
  };
90
90
  const renderHintList = () => {
91
91
  if (!hintItems || hintItems.length === 0)
92
92
  return null;
93
93
  return (_jsx("ul", { className: "ncua-file-input__hint-list", children: hintItems.map((hint) => (_jsx("li", { className: "ncua-file-input__hint-item", children: hint }, hint))) }));
94
94
  };
95
- return (_jsxs("div", { className: classNames('ncua-image-file-input', `ncua-image-file-input--${size}`, { destructive: destructive }), children: [renderImagePreview(files), showFileInput && (_jsxs("div", { className: classNames('ncua-file-input', `ncua-file-input--${size}`), children: [_jsx("input", { hidden: true, ref: fileInputRef, type: "file", accept: accept, multiple: multiple, onChange: handleFileChange, tabIndex: -1, "aria-hidden": "true", ...props }), _jsxs("div", { className: "ncua-file-input__input-container", children: [_jsxs("div", { className: "ncua-file-input__label", children: [_jsx(Label, { isRequired: isRequired, children: label }), showHelpIcon && _jsx(HelpCircle, { className: "ncua-input__help-icon" })] }), _jsx(Button, { size: "xs", onClick: handleBrowseClick, disabled: disabled, leadingIcon: { type: 'icon', icon: Upload01 }, label: buttonLabel }), showHintText && hintText && _jsx(HintText, { destructive: destructive, children: hintText })] }), showHintText && renderHintList()] }))] }));
95
+ return (_jsxs("div", { className: classNames('ncua-image-file-input', `ncua-image-file-input--${size}`, { destructive: destructive }), children: [renderImagePreview(files), _jsx("input", { hidden: true, ref: fileInputRef, type: "file", accept: accept, multiple: multiple, onChange: handleFileChange, tabIndex: -1, "aria-hidden": "true", ...props }), showFileInput && (_jsxs("div", { className: classNames('ncua-file-input', `ncua-file-input--${size}`), children: [_jsxs("div", { className: "ncua-file-input__input-container", children: [_jsxs("div", { className: "ncua-file-input__label", children: [_jsx(Label, { isRequired: isRequired, children: label }), showHelpIcon && _jsx(HelpCircle, { className: "ncua-input__help-icon" })] }), _jsx(Button, { size: "xs", onClick: handleBrowseClick, disabled: disabled, leadingIcon: { type: 'icon', icon: Upload01 }, label: buttonLabel }), showHintText && hintText && _jsx(HintText, { destructive: destructive, children: hintText })] }), showHintText && renderHintList()] }))] }));
96
96
  });
@@ -28,6 +28,10 @@ type SelectBoxProps = Omit<ComponentPropsWithRef<'div'>, 'size' | 'onChange'> &
28
28
  */
29
29
  maxSelection?: number | null;
30
30
  onEdit?: () => void;
31
+ /**
32
+ * 완료 버튼 클릭 시 호출되는 콜백 — 현재 선택된 값을 인자로 받음 (multiple 모드에서만 트리거)
33
+ */
34
+ onComplete?: OptionChangeHandler;
31
35
  align?: 'left' | 'right';
32
36
  /**
33
37
  * 옵션 패널을 React Portal로 body에 렌더한다.
@@ -40,7 +40,7 @@ function DisplayValue({ displayValue }) {
40
40
  }
41
41
  return (_jsxs("div", { className: "ncua-selectbox__value-container", children: [displayValue.icon && (_jsx("span", { className: "ncua-selectbox__value-icon", children: _jsx(displayValue.icon, { width: 16, height: 16 }) })), _jsx("span", { className: "ncua-selectbox__value-text", children: displayValue.label })] }));
42
42
  }
43
- const SelectBox = forwardRef(({ placeholder = '선택하세요', disabledPlaceholder = false, hintText, size = 'xs', type = 'default', autoWidth = true, destructive = false, value, optionItems = [], disabled = false, maxHeight = DEFAULT_MAX_HEIGHT, multiple = false, maxSelection, align = 'left', usePortal, id, className, children, register, onChange, onEdit, ...props }, ref
43
+ const SelectBox = forwardRef(({ placeholder = '선택하세요', disabledPlaceholder = false, hintText, size = 'xs', type = 'default', autoWidth = true, destructive = false, value, optionItems = [], disabled = false, maxHeight = DEFAULT_MAX_HEIGHT, multiple = false, maxSelection, align = 'left', usePortal, id, className, children, register, onChange, onEdit, onComplete, ...props }, ref
44
44
  // biome-ignore lint/complexity/noExcessiveCognitiveComplexity: 옵션/멀티/태그/포탈 등 필수 분기 통합
45
45
  ) => {
46
46
  const internalRef = useRef(null);
@@ -106,10 +106,11 @@ const SelectBox = forwardRef(({ placeholder = '선택하세요', disabledPlaceho
106
106
  const handleEdit = () => {
107
107
  onEdit?.();
108
108
  };
109
- const handleComplete = () => {
109
+ const handleComplete = (completedValue) => {
110
110
  if (multiple) {
111
111
  const tags = getSelectedTagsData();
112
112
  setSelectedTags(tags);
113
+ onComplete?.(completedValue);
113
114
  }
114
115
  closeDropdown();
115
116
  };
@@ -16,6 +16,7 @@ interface TooltipProps {
16
16
  forceVisible?: boolean;
17
17
  /** true이면 Portal 없이 앵커 내부에 패널을 인라인 렌더링. CSS 기반 위치 지정이 필요한 경우 사용 */
18
18
  disablePortal?: boolean;
19
+ panelClassName?: string;
19
20
  }
20
- export declare const Tooltip: ({ tooltipType, iconType, position, size, title, content, hideArrow, type, iconColor, iconStyle, className, zIndex, forceVisible, disablePortal, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const Tooltip: ({ tooltipType, iconType, position, size, title, content, hideArrow, type, iconColor, iconStyle, className, zIndex, forceVisible, disablePortal, panelClassName, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
21
22
  export {};
@@ -86,7 +86,7 @@ const renderIcon = (iconStyle, iconType, iconSize, iconColor) => {
86
86
  }
87
87
  return iconType === 'stroke' ? (_jsx(AlertCircle, { width: iconSize, height: iconSize, color: iconColor })) : (_jsx(AlertCircleFill, { width: iconSize, height: iconSize, color: iconColor }));
88
88
  };
89
- export const Tooltip = ({ tooltipType = 'white', iconType = 'stroke', position = 'auto', size = 'sm', title, content, hideArrow = false, type = 'short', iconColor = 'var(--gray-300)', iconStyle = 'help-circle', className, zIndex, forceVisible, disablePortal = false, }) => {
89
+ export const Tooltip = ({ tooltipType = 'white', iconType = 'stroke', position = 'auto', size = 'sm', title, content, hideArrow = false, type = 'short', iconColor = 'var(--gray-300)', iconStyle = 'help-circle', className, zIndex, forceVisible, disablePortal = false, panelClassName, }) => {
90
90
  const iconSize = size === 'sm' ? ICON_SIZE_SM : ICON_SIZE_DEFAULT;
91
91
  const anchorRef = useRef(null);
92
92
  const panelRef = useRef(null);
@@ -154,12 +154,12 @@ export const Tooltip = ({ tooltipType = 'white', iconType = 'stroke', position =
154
154
  'ncua-tooltip--stroke': iconType === 'stroke',
155
155
  'ncua-tooltip--auto': position === 'auto',
156
156
  }, className), [size, type, hideArrow, iconType, position, className]);
157
- const panelClassName = useMemo(() => classNames({ 'ncua-tooltip-panel': !disablePortal }, 'ncua-tooltip__bg', `ncua-tooltip__bg--${tooltipType}`, `ncua-tooltip__bg--${finalPosition}`, {
157
+ const panelClasses = useMemo(() => classNames({ 'ncua-tooltip-panel': !disablePortal }, 'ncua-tooltip__bg', `ncua-tooltip__bg--${tooltipType}`, `ncua-tooltip__bg--${finalPosition}`, {
158
158
  'ncua-tooltip__bg--visible': effectiveVisible,
159
159
  'ncua-tooltip__bg--force-hidden': isManuallyClose && !forceVisible,
160
- }), [tooltipType, finalPosition, effectiveVisible, isManuallyClose, forceVisible, disablePortal]);
160
+ }, panelClassName), [tooltipType, finalPosition, effectiveVisible, isManuallyClose, forceVisible, disablePortal, panelClassName]);
161
161
  const panelStyle = buildPanelStyle(disablePortal, coords, effectiveVisible, zIndex);
162
162
  const portalTarget = mounted ? resolvePortalTarget() : null;
163
- const panel = (_jsxs("span", { ref: panelRef, className: panelClassName, style: panelStyle, children: [title && _jsx("span", { className: "ncua-tooltip__title", children: title }), content && _jsx("span", { className: "ncua-tooltip__content", children: content }), type === 'long' && (_jsx(ButtonCloseX, { className: "ncua-tooltip__close-button", size: "xs", theme: tooltipType === 'white' ? 'dark' : 'light', onClick: handleCloseClick, "aria-label": "\uD234\uD301 \uB2EB\uAE30" }))] }));
163
+ const panel = (_jsxs("span", { ref: panelRef, className: panelClasses, style: panelStyle, children: [title && _jsx("span", { className: "ncua-tooltip__title", children: title }), content && _jsx("span", { className: "ncua-tooltip__content", children: content }), type === 'long' && (_jsx(ButtonCloseX, { className: "ncua-tooltip__close-button", size: "xs", theme: tooltipType === 'white' ? 'dark' : 'light', onClick: handleCloseClick, "aria-label": "\uD234\uD301 \uB2EB\uAE30" }))] }));
164
164
  return (_jsxs("span", { ref: anchorRef, className: tooltipClassName, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [renderIcon(iconStyle, iconType, iconSize, iconColor), disablePortal ? panel : portalTarget && createPortal(panel, portalTarget)] }));
165
165
  };
@@ -25,7 +25,7 @@ type SelectDropdownProps = ComponentPropsWithRef<'div'> & {
25
25
  showSelectAllAction?: boolean;
26
26
  onSelectAll?: () => void;
27
27
  onEdit?: () => void;
28
- onComplete?: () => void;
28
+ onComplete?: (value: OptionValue) => void;
29
29
  activeDescendantId?: string;
30
30
  componentType?: 'selectbox' | 'combobox';
31
31
  align?: 'left' | 'right';
@@ -20,7 +20,7 @@ const SelectDropdown = forwardRef(({ isOpen, direction = 'down', size = 'xs', op
20
20
  'ncua-select-dropdown__option--selected': isSelected,
21
21
  'ncua-select-dropdown__option--focused': isFocused,
22
22
  }), onClick: () => onOptionSelect(option), onMouseEnter: handleMouseEnter, role: "option", "aria-selected": isSelected, children: [option.icon && (_jsx("span", { className: "ncua-select-dropdown__option-icon", children: _jsx(option.icon, { width: 16, height: 16 }) })), _jsx("span", { className: "ncua-select-dropdown__option-text", children: option.label })] }, option.id));
23
- }), children] }) }), showFooterButtons && (_jsx("div", { className: "ncua-select-dropdown__footer", children: _jsxs("div", { className: "ncua-select-dropdown__footer-buttons", children: [_jsx("div", { className: "ncua-select-dropdown__footer-left", children: multiple && showSelectAllAction && (_jsx(Button, { label: selectAllButtonText, hierarchy: "text", size: "xs", onClick: onSelectAll, underline: true })) }), _jsxs("div", { className: "ncua-select-dropdown__footer-right", children: [_jsx(Button, { label: "\uD3B8\uC9D1", hierarchy: "secondary-gray", size: "xs", onClick: onEdit }), multiple && _jsx(Button, { label: "\uC120\uD0DD \uC644\uB8CC", hierarchy: "secondary", size: "xs", onClick: onComplete })] })] }) }))] }));
23
+ }), children] }) }), showFooterButtons && (_jsx("div", { className: "ncua-select-dropdown__footer", children: _jsxs("div", { className: "ncua-select-dropdown__footer-buttons", children: [_jsx("div", { className: "ncua-select-dropdown__footer-left", children: multiple && showSelectAllAction && (_jsx(Button, { label: selectAllButtonText, hierarchy: "text", size: "xs", onClick: onSelectAll, underline: true })) }), _jsxs("div", { className: "ncua-select-dropdown__footer-right", children: [_jsx(Button, { label: "\uD3B8\uC9D1", hierarchy: "secondary-gray", size: "xs", onClick: onEdit }), multiple && (_jsx(Button, { label: "\uC120\uD0DD \uC644\uB8CC", hierarchy: "secondary", size: "xs", onClick: () => onComplete?.(value ?? []) }))] })] }) }))] }));
24
24
  });
25
25
  SelectDropdown.displayName = 'SelectDropdown';
26
26
  export { SelectDropdown };
@@ -6,11 +6,13 @@ export declare const H_SCROLLBAR_SIDE_GAP = 8;
6
6
  export declare const SCROLLBAR_TRACK_OFFSET = 16;
7
7
  type VerticalScrollbarOptions = {
8
8
  enabled: boolean;
9
+ layoutKey: unknown;
9
10
  scrollContainerRef: RefObject<HTMLDivElement | null>;
10
11
  scrollAreaRef: RefObject<HTMLDivElement | null>;
12
+ scrollbarRef: RefObject<HTMLDivElement | null>;
11
13
  thumbRef: RefObject<HTMLDivElement | null>;
12
14
  };
13
- export declare const useTableVerticalScrollbar: ({ enabled, scrollContainerRef, scrollAreaRef, thumbRef, }: VerticalScrollbarOptions) => {
15
+ export declare const useTableVerticalScrollbar: ({ enabled, layoutKey, scrollContainerRef, scrollAreaRef, scrollbarRef, thumbRef, }: VerticalScrollbarOptions) => {
14
16
  handleThumbMouseDown: (e: MouseEvent<HTMLDivElement>) => void;
15
17
  };
16
18
  type HorizontalScrollbarOptions = {
@@ -30,6 +30,10 @@ interface ComboBoxProps extends Omit<ComponentPropsWithRef<'div'>, 'size' | 'onC
30
30
  */
31
31
  maxSelection?: number | null;
32
32
  onEdit?: () => void;
33
+ /**
34
+ * 완료 버튼 클릭 시 호출되는 콜백 — 현재 선택된 값을 인자로 받음 (multiple 모드에서만 트리거)
35
+ */
36
+ onComplete?: OptionChangeHandler;
33
37
  }
34
38
  declare const ComboBox: import("react").ForwardRefExoticComponent<Omit<ComboBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
35
39
  export { defaultMaxHeight, ComboBox };
@@ -28,6 +28,10 @@ type SelectBoxProps = Omit<ComponentPropsWithRef<'div'>, 'size' | 'onChange'> &
28
28
  */
29
29
  maxSelection?: number | null;
30
30
  onEdit?: () => void;
31
+ /**
32
+ * 완료 버튼 클릭 시 호출되는 콜백 — 현재 선택된 값을 인자로 받음 (multiple 모드에서만 트리거)
33
+ */
34
+ onComplete?: OptionChangeHandler;
31
35
  align?: 'left' | 'right';
32
36
  /**
33
37
  * 옵션 패널을 React Portal로 body에 렌더한다.
@@ -16,6 +16,7 @@ interface TooltipProps {
16
16
  forceVisible?: boolean;
17
17
  /** true이면 Portal 없이 앵커 내부에 패널을 인라인 렌더링. CSS 기반 위치 지정이 필요한 경우 사용 */
18
18
  disablePortal?: boolean;
19
+ panelClassName?: string;
19
20
  }
20
- export declare const Tooltip: ({ tooltipType, iconType, position, size, title, content, hideArrow, type, iconColor, iconStyle, className, zIndex, forceVisible, disablePortal, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const Tooltip: ({ tooltipType, iconType, position, size, title, content, hideArrow, type, iconColor, iconStyle, className, zIndex, forceVisible, disablePortal, panelClassName, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
21
22
  export {};
@@ -25,7 +25,7 @@ type SelectDropdownProps = ComponentPropsWithRef<'div'> & {
25
25
  showSelectAllAction?: boolean;
26
26
  onSelectAll?: () => void;
27
27
  onEdit?: () => void;
28
- onComplete?: () => void;
28
+ onComplete?: (value: OptionValue) => void;
29
29
  activeDescendantId?: string;
30
30
  componentType?: 'selectbox' | 'combobox';
31
31
  align?: 'left' | 'right';
@@ -3080,6 +3080,7 @@ button {
3080
3080
  display: flex;
3081
3081
  flex-direction: column;
3082
3082
  gap: 4px;
3083
+ width: max-content;
3083
3084
  max-width: 320px;
3084
3085
  overflow-wrap: anywhere;
3085
3086
  font-family: var(--font-families-commerce-sans);
@@ -5887,6 +5888,14 @@ button {
5887
5888
  gap: 16px;
5888
5889
  }
5889
5890
 
5891
+ .ncua-tooltip-panel.ncua-image-file-input__slot-tooltip--xs {
5892
+ transform: translateY(-19px);
5893
+ }
5894
+
5895
+ .ncua-tooltip-panel.ncua-image-file-input__slot-tooltip--sm {
5896
+ transform: translateY(-27px);
5897
+ }
5898
+
5890
5899
  .ncua-table-wrapper {
5891
5900
  display: flex;
5892
5901
  flex-direction: column;
@@ -6307,8 +6316,7 @@ button {
6307
6316
  .ncua-table--vertical .ncua-table .ncua-table__body > .ncua-table__row:last-child > .ncua-table__cell:last-child {
6308
6317
  border-bottom-right-radius: 0;
6309
6318
  }
6310
- .ncua-table--vertical .ncua-table__body > .ncua-table__row td,
6311
- .ncua-table--vertical .ncua-table__body > .ncua-table__row th {
6319
+ .ncua-table--vertical .ncua-table__body > .ncua-table__row {
6312
6320
  height: 48px;
6313
6321
  }
6314
6322
  .ncua-table--vertical .ncua-table__body > .ncua-table__row td:first-child,
@@ -6331,6 +6339,24 @@ button {
6331
6339
  text-align: left;
6332
6340
  font-weight: var(--font-weights-commerce-sans-0);
6333
6341
  }
6342
+ .ncua-table--vertical .ncua-table__body > .ncua-table__row td:first-child > div:has(> .ncua-tooltip),
6343
+ .ncua-table--vertical .ncua-table__body > .ncua-table__row th:first-child > div:has(> .ncua-tooltip) {
6344
+ display: flex;
6345
+ align-items: center;
6346
+ }
6347
+ .ncua-table--vertical .ncua-table__body > .ncua-table__row td:first-child > div:has(> .ncua-tooltip) > .ncua-tooltip,
6348
+ .ncua-table--vertical .ncua-table__body > .ncua-table__row th:first-child > div:has(> .ncua-tooltip) > .ncua-tooltip {
6349
+ display: inline-flex;
6350
+ align-items: center;
6351
+ line-height: 1;
6352
+ margin-left: var(--spacing-xs);
6353
+ }
6354
+ .ncua-table--vertical .ncua-table__body > .ncua-table__row td:first-child > div:has(> .ncua-tooltip) > .ncua-tooltip > .ncua-tooltip__icon,
6355
+ .ncua-table--vertical .ncua-table__body > .ncua-table__row th:first-child > div:has(> .ncua-tooltip) > .ncua-tooltip > .ncua-tooltip__icon {
6356
+ display: inline-flex;
6357
+ align-items: center;
6358
+ line-height: 1;
6359
+ }
6334
6360
  .ncua-table--vertical .ncua-table .ncua-table__body > .ncua-table__row td:first-child,
6335
6361
  .ncua-table--vertical .ncua-table .ncua-table__body > .ncua-table__row th:first-child {
6336
6362
  width: auto;
@@ -6354,7 +6380,7 @@ button {
6354
6380
  color: var(--primary-red-500, #ec1d31);
6355
6381
  font-size: var(--font-size-sm);
6356
6382
  font-weight: var(--font-weights-commerce-sans-1);
6357
- margin-right: 2px;
6383
+ margin-right: 4px;
6358
6384
  }
6359
6385
 
6360
6386
  .ncua-data-grid {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "1.8.6",
3
+ "version": "1.8.8",
4
4
  "description": "nhn-commerce의 어드민 디자인 시스템입니다.",
5
5
  "scripts": {
6
6
  "barrel": "node barrel.js",