@dust-tt/sparkle 0.1.40 → 0.1.41
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/cjs/components/DropdownMenu.d.ts +4 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/DropdownMenu.d.ts +4 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { ComponentType } from "react";
|
|
2
|
-
export
|
|
2
|
+
export interface DropdownMenuProps {
|
|
3
|
+
className?: string;
|
|
3
4
|
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
+
}
|
|
6
|
+
export declare function DropdownMenu({ children, className }: DropdownMenuProps): React.JSX.Element;
|
|
5
7
|
export declare namespace DropdownMenu {
|
|
6
8
|
var Button: ({ label, icon, className, disabled, }: DropdownButtonProps) => React.JSX.Element;
|
|
7
9
|
var Item: ({ label, href, disabled, key, onClick, }: DropdownItemProps) => React.JSX.Element;
|
package/dist/cjs/index.js
CHANGED
|
@@ -718,8 +718,8 @@ var chevronClasses = {
|
|
|
718
718
|
},
|
|
719
719
|
};
|
|
720
720
|
function DropdownMenu(_a) {
|
|
721
|
-
var children = _a.children;
|
|
722
|
-
return (React.createElement(it, { as: "div", className: "s-relative s-inline-block" }, children));
|
|
721
|
+
var children = _a.children, _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
722
|
+
return (React.createElement(it, { as: "div", className: classNames(className, "s-relative s-inline-block") }, children));
|
|
723
723
|
}
|
|
724
724
|
DropdownMenu.Button = function (_a) {
|
|
725
725
|
var label = _a.label, icon = _a.icon, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c;
|