@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.umd.js CHANGED
@@ -6465,6 +6465,10 @@
6465
6465
  if (item.divider) {
6466
6466
  return (jsxRuntime.jsx("div", { className: "designbase-dropdown__divider", role: "separator" }, `divider-${index}`));
6467
6467
  }
6468
+ // 커스텀 컨텐츠가 있는 경우
6469
+ if (item.custom) {
6470
+ return (jsxRuntime.jsx("div", { className: "designbase-dropdown__custom", children: item.custom }, item.id));
6471
+ }
6468
6472
  const isDisabled = item.disabled || disabled;
6469
6473
  const isFocused = focusedIndex === index;
6470
6474
  const itemClasses = clsx('designbase-dropdown__item', {
@@ -6478,7 +6482,7 @@
6478
6482
  else {
6479
6483
  itemRefs.current.delete(item.id);
6480
6484
  }
6481
- }, 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));
6485
+ }, 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));
6482
6486
  }) })] }));
6483
6487
  };
6484
6488
  Dropdown.displayName = 'Dropdown';