@dust-tt/sparkle 0.1.39 → 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 +5 -3
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/DropdownMenu.d.ts +5 -3
- 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;
|
|
@@ -15,7 +17,7 @@ export interface DropdownButtonProps {
|
|
|
15
17
|
}
|
|
16
18
|
interface DropdownItemProps {
|
|
17
19
|
label: string;
|
|
18
|
-
href
|
|
20
|
+
href?: string;
|
|
19
21
|
disabled?: boolean;
|
|
20
22
|
key?: string;
|
|
21
23
|
onClick?: () => void;
|
package/dist/esm/index.js
CHANGED
|
@@ -698,8 +698,8 @@ var chevronClasses = {
|
|
|
698
698
|
},
|
|
699
699
|
};
|
|
700
700
|
function DropdownMenu(_a) {
|
|
701
|
-
var children = _a.children;
|
|
702
|
-
return (React__default.createElement(it, { as: "div", className: "s-relative s-inline-block" }, children));
|
|
701
|
+
var children = _a.children, _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
702
|
+
return (React__default.createElement(it, { as: "div", className: classNames(className, "s-relative s-inline-block") }, children));
|
|
703
703
|
}
|
|
704
704
|
DropdownMenu.Button = function (_a) {
|
|
705
705
|
var label = _a.label, icon = _a.icon, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c;
|