elseware-ui 2.14.3 → 2.14.4
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/build/index.es.js +2 -1
- package/build/index.js +2 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -111708,9 +111708,10 @@ function ShowMore(_a) {
|
|
|
111708
111708
|
|
|
111709
111709
|
function BoxNavItem(_a) {
|
|
111710
111710
|
var icon = _a.icon, name = _a.name, to = _a.to, selected = _a.selected, onClick = _a.onClick;
|
|
111711
|
+
var normalizedTo = to.startsWith("/") ? to : "/".concat(to);
|
|
111711
111712
|
var handleClick = function (e) {
|
|
111712
111713
|
if (onClick)
|
|
111713
|
-
onClick(e,
|
|
111714
|
+
onClick(e, normalizedTo);
|
|
111714
111715
|
};
|
|
111715
111716
|
return (jsxs("button", __assign$1({ type: "button", onClick: handleClick, "aria-current": selected ? "page" : undefined, className: classnames("w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center", "hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer hover:text-eui-secondary-700", selected ? "text-secondary-700 bg-gray-300/10" : "text-gray-400", "eui-theme-transition") }, { children: [jsx("div", __assign$1({ className: "text-xl" }, { children: icon })), jsx("span", __assign$1({ className: "text-[11px]" }, { children: name }))] })));
|
|
111716
111717
|
}
|
package/build/index.js
CHANGED
|
@@ -111735,9 +111735,10 @@ function ShowMore(_a) {
|
|
|
111735
111735
|
|
|
111736
111736
|
function BoxNavItem(_a) {
|
|
111737
111737
|
var icon = _a.icon, name = _a.name, to = _a.to, selected = _a.selected, onClick = _a.onClick;
|
|
111738
|
+
var normalizedTo = to.startsWith("/") ? to : "/".concat(to);
|
|
111738
111739
|
var handleClick = function (e) {
|
|
111739
111740
|
if (onClick)
|
|
111740
|
-
onClick(e,
|
|
111741
|
+
onClick(e, normalizedTo);
|
|
111741
111742
|
};
|
|
111742
111743
|
return (jsxRuntime.jsxs("button", __assign$1({ type: "button", onClick: handleClick, "aria-current": selected ? "page" : undefined, className: classnames("w-full min-w-[80px] flex flex-col items-center justify-center py-3 text-center", "hover:text-secondary-700 hover:bg-gray-300/10 hover:cursor-pointer hover:text-eui-secondary-700", selected ? "text-secondary-700 bg-gray-300/10" : "text-gray-400", "eui-theme-transition") }, { children: [jsxRuntime.jsx("div", __assign$1({ className: "text-xl" }, { children: icon })), jsxRuntime.jsx("span", __assign$1({ className: "text-[11px]" }, { children: name }))] })));
|
|
111743
111744
|
}
|