@agility/plenum-ui 1.2.1 → 1.2.2

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.
@@ -12,7 +12,7 @@ export interface DropdownProps {
12
12
  items: ItemProp[][];
13
13
  IconElement: JSXElementConstructor<unknown>;
14
14
  label?: string;
15
- buttonClasses?: string;
15
+ className?: string;
16
16
  yPosition?: "top" | "bottom";
17
17
  xPosition?: "left" | "right";
18
18
  }
package/lib/index.esm.js CHANGED
@@ -7207,17 +7207,14 @@ var Combobox = function (_a) {
7207
7207
 
7208
7208
  /** Comment */
7209
7209
  var Dropdown = function (_a) {
7210
- var items = _a.items, IconElement = _a.IconElement, label = _a.label, buttonClasses = _a.buttonClasses, _b = _a.yPosition, yPosition = _b === void 0 ? "bottom" : _b, _c = _a.xPosition, xPosition = _c === void 0 ? "left" : _c;
7210
+ var items = _a.items, IconElement = _a.IconElement, label = _a.label, className = _a.className, _b = _a.yPosition, yPosition = _b === void 0 ? "bottom" : _b, _c = _a.xPosition, xPosition = _c === void 0 ? "left" : _c;
7211
7211
  if (!(items === null || items === void 0 ? void 0 : items.length))
7212
7212
  return null;
7213
7213
  return (React__default.createElement(We$1, { as: "div", className: "relative inline-block text-left " },
7214
7214
  React__default.createElement("div", null,
7215
- React__default.createElement(We$1.Button, { className: cn("z-20 flex items-center self-end rounded-md py-[2px] outline-purple-500 transition-all focus:ring-purple-500", buttonClasses
7216
- ? buttonClasses
7217
- : "text-gray-400 hover:bg-white hover:text-gray-600") },
7215
+ React__default.createElement(We$1.Button, { className: cn("z-20 flex items-center self-end rounded-md py-[2px] outline-purple-500 transition-all focus:ring-purple-500", className ? className : "text-gray-400 hover:bg-white hover:text-gray-600") },
7218
7216
  React__default.createElement("span", { className: "sr-only" }, "Dropdown Menu"),
7219
- label &&
7220
- React__default.createElement("span", { className: "pl-1" }, label),
7217
+ label && React__default.createElement("span", { className: "pl-1" }, label),
7221
7218
  IconElement && React__default.createElement(IconElement, null))),
7222
7219
  React__default.createElement(We, { as: Fragment, enter: "transition ease-out duration-100", enterFrom: "transform opacity-0 scale-95", enterTo: "transform opacity-100 scale-100", leave: "transition ease-in duration-75", leaveFrom: "transform opacity-100 scale-100", leaveTo: "transform opacity-0 scale-95" },
7223
7220
  React__default.createElement(We$1.Items, { className: cn("absolute right-0 mt-2 w-56 origin-bottom-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5", " z-20 divide-y divide-gray-100 focus:outline-none", yPosition === "top" ? "bottom-10" : "", xPosition === "right" ? "right-0" : "left-0"), slot: "" }, items.map(function (itemStack, i) {