@pathscale/ui 0.0.82 → 0.0.83
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.
|
@@ -2,9 +2,7 @@ import { type JSX } from "solid-js";
|
|
|
2
2
|
import type { IComponentBaseProps } from "../types";
|
|
3
3
|
export type DropdownMenuProps = JSX.HTMLAttributes<HTMLUListElement> & IComponentBaseProps & {
|
|
4
4
|
id?: string;
|
|
5
|
-
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: JSX.CSSProperties;
|
|
5
|
+
hideOverflow?: boolean;
|
|
8
6
|
"aria-labelledby"?: string;
|
|
9
7
|
};
|
|
10
8
|
declare const DropdownMenu: (props: DropdownMenuProps) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -6921,9 +6921,13 @@ const DropdownMenu = (props)=>{
|
|
|
6921
6921
|
"dataTheme",
|
|
6922
6922
|
"style",
|
|
6923
6923
|
"id",
|
|
6924
|
+
"hideOverflow",
|
|
6924
6925
|
"aria-labelledby"
|
|
6925
6926
|
]);
|
|
6926
|
-
const
|
|
6927
|
+
const hideOverflowMemo = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local.hideOverflow ?? true);
|
|
6928
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>twMerge("dropdown-content menu p-2 shadow bg-base-100 overflow-y-auto flex-nowrap w-full rounded-box", dist_clsx({
|
|
6929
|
+
"max-h-50": hideOverflowMemo()
|
|
6930
|
+
}), local.class, local.className));
|
|
6927
6931
|
return (()=>{
|
|
6928
6932
|
var _el$ = DropdownMenu_tmpl$();
|
|
6929
6933
|
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|