@designbasekorea/ui 0.2.7 → 0.2.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.
package/dist/index.js CHANGED
@@ -6466,6 +6466,10 @@ const Dropdown = ({ items, trigger, label = '메뉴', triggerVariant = 'tertiary
6466
6466
  if (item.divider) {
6467
6467
  return (jsxRuntime.jsx("div", { className: "designbase-dropdown__divider", role: "separator" }, `divider-${index}`));
6468
6468
  }
6469
+ // 커스텀 컨텐츠가 있는 경우
6470
+ if (item.custom) {
6471
+ return (jsxRuntime.jsx("div", { className: "designbase-dropdown__custom", children: item.custom }, item.id));
6472
+ }
6469
6473
  const isDisabled = item.disabled || disabled;
6470
6474
  const isFocused = focusedIndex === index;
6471
6475
  const itemClasses = clsx('designbase-dropdown__item', {
@@ -6479,7 +6483,7 @@ const Dropdown = ({ items, trigger, label = '메뉴', triggerVariant = 'tertiary
6479
6483
  else {
6480
6484
  itemRefs.current.delete(item.id);
6481
6485
  }
6482
- }, className: itemClasses, role: "menuitem", disabled: isDisabled, onClick: () => handleItemClick(item), onFocus: () => setFocusedIndex(index), children: [item.icon && (jsxRuntime.jsx("span", { className: "designbase-dropdown__item-icon", children: jsxRuntime.jsx(item.icon, { size: iconSize }) })), jsxRuntime.jsx("span", { className: "designbase-dropdown__item-label", children: item.label })] }, item.id));
6486
+ }, className: itemClasses, role: "menuitem", disabled: isDisabled, onClick: () => handleItemClick(item), onFocus: () => setFocusedIndex(index), children: [item.icon && (jsxRuntime.jsx("span", { className: "designbase-dropdown__item-icon", children: jsxRuntime.jsx(item.icon, { size: iconSize }) })), item.label && (jsxRuntime.jsx("span", { className: "designbase-dropdown__item-label", children: item.label }))] }, item.id));
6483
6487
  }) })] }));
6484
6488
  };
6485
6489
  Dropdown.displayName = 'Dropdown';