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